Repository navigation
v0.3.6
- Upstream WordCraft moved to
eae2421(308 commits). Highlights: a pure header and footer design with a page parameter, pictures leave the caret after them, andkrillacomes from craft-libs. The patches were rebased; Cargo.toml now copies upstream's[patch.crates-io]on every sync. Upstream now opens on Home whenever preferences are applied, sosetPrefskeeps the tab (and the File view) showing unless the change names one. - Comments owned by your app ✦ (
comments: { exclusive: true }, ornativePane: false):- The native pane never opens, from the selection toolbar, ribbon, right-click menu, Ctrl+Alt+M, phone palette or a balloon.
- Compose before create: every New Comment asks for a composer on the selection, yours (
onRequestCompose) or the package's drawer. Nothing exists until it is submitted with text; cancelling leaves nothing. - A host API outside the command ids:
editor.comments.create,reply,edit,delete,resolve,reopen,list,focusandonChange, never blocked bydisabledCommands. - The drawer: Edit and Delete are icons under the text, it fits any width, and
<CommentsDrawer/>is exported on its own.
- One
uiprop ✦ with a boolean for every surface: title bar, ribbon (with its tab row), status bar, selection toolbar, context menu, rulers, Navigation pane, the workspace row (Ask, Comments, Checks, Tools, Voice each), presence, Share, mode switch, zoom, page-view buttons, File menu and the phone palette.falseremoves the surface, its room and its shortcuts, live, with no remount.ui="paper"leaves the page alone.ribbonalso takesfalse. - A headless API ✦ for your own toolbar:
editor.state(),onStateChange,isActiveandcan, pluseditor.onHostEvent. icons✦: your own icons for Ask, Comments, Checks, Tools, Voice, Share, Back and History.- Your own top bar ✦ (
topBar): left, centre and right zones of built-in items (back with an unsaved check, quick access, title, save state, presence in cursor colours with follow and "+N" and "Guest", Share with a disabled reason, the user menu, comments, history) and your own buttons and components. At narrow widths the title shortens first, then avatars collapse, then Share becomes an icon; nothing overflows at 360px. It can be a function of{ permission, user, collaborators }. - The File menu, item by item ✦ (
fileMenu): show, hide, rename, disable with a reason, replace with your action, reorder, group into sections and add your own items. Share is a File item, and each export format has its own id (export.pdf,export.docx...). Hidden or disabled items' shortcuts are off.onSharetakes Share from WordCraft's dialog. - Tests:
smoke-host.mjsruns ten New Comments in a row with no native pane, the drawer's and the host's composers, the switches toggled live, the File menu, the top bar at 1360px and 360px, two live collaborators, and a snapshot of the default chrome. The late letterhead check stays insmoke-features.mjs.
Upstream WordCraft: storytold/wordcraft@eae2421