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>
10 files changed,
+181
−86
fixtures/editor-entry.js+10 −2fixtures/jump-to.mjs+13 −0fixtures/menu.mjs+68 −37fixtures/menu.test.mjs+41 −12fixtures/shortcuts.mjs+10 −12fixtures/toolbar.mjs+8 −1fixtures/toolbar.test.mjs+17 −8internal/docs/static/{editor.7b3340607b1f951f.js => editor.1407830d50c4f292.js}+13 −13internal/docs/static/jumpto.58ca95c441b1bd49.js+1 −0internal/docs/static/jumpto.5da80b47f2ea7b28.js+0 −1
fixtures/editor-entry.jsLoading diff…
fixtures/jump-to.mjsLoading diff…
fixtures/menu.mjsLoading diff…
fixtures/menu.test.mjsLoading diff…
fixtures/shortcuts.mjsLoading diff…
fixtures/toolbar.mjsLoading diff…
fixtures/toolbar.test.mjsLoading diff…
internal/docs/static/{editor.7b3340607b1f951f.js => editor.1407830d50c4f292.js}Loading diff…
internal/docs/static/jumpto.58ca95c441b1bd49.jsLoading diff…
internal/docs/static/jumpto.5da80b47f2ea7b28.jsLoading diff…