oficina / docs Public

Move the menu bar's script onto estilo's menu markup, and rebuild the bundles

menu.mjs, shortcuts.mjs and editor-entry.js read estilo's
[estilo-menubar], [estilo-menubar-menu], [estilo-menubar-title] and
[estilo-menu-item] instead of [docs-menu*]. menu.mjs gains the check
column (aria-pressed kept in step with the view mode, the paragraph
style and the alignment, through toolbar.mjs's new isPressed), keeps a
checked item enabled ("Body text" was drawn disabled while current), and
opens the menu under the pointer while another is open. The
data-docs-unavailable path is gone with the unbuilt items. jump-to.mjs
turns File > Open a document... into the palette. Both hashed bundles are
rebuilt with fixtures/build-bundles.mjs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 62e20f8d60236edb74dc25d3c7779f07d3e053ed parent 6f17f59
10 files changed, +181 −86
  • fixtures/editor-entry.js +10 −2
  • fixtures/jump-to.mjs +13 −0
  • fixtures/menu.mjs +68 −37
  • fixtures/menu.test.mjs +41 −12
  • fixtures/shortcuts.mjs +10 −12
  • fixtures/toolbar.mjs +8 −1
  • fixtures/toolbar.test.mjs +17 −8
  • internal/docs/static/{editor.7b3340607b1f951f.js => editor.1407830d50c4f292.js} +13 −13
  • internal/docs/static/jumpto.58ca95c441b1bd49.js +1 −0
  • internal/docs/static/jumpto.5da80b47f2ea7b28.js +0 −1
fixtures/editor-entry.js

Loading diff…

fixtures/jump-to.mjs

Loading diff…

fixtures/menu.mjs

Loading diff…

fixtures/menu.test.mjs

Loading diff…

fixtures/shortcuts.mjs

Loading diff…

fixtures/toolbar.mjs

Loading diff…

fixtures/toolbar.test.mjs

Loading diff…

internal/docs/static/{editor.7b3340607b1f951f.js => editor.1407830d50c4f292.js}

Loading diff…

internal/docs/static/jumpto.58ca95c441b1bd49.js

Loading diff…

internal/docs/static/jumpto.5da80b47f2ea7b28.js

Loading diff…