mcp-v0.12.0
·
88 commits
to stable
since this release
What's New
- Textbox editing β Click, type, and select text directly inside VML and DrawingML textboxes; full caret and selection support.
- Font family combobox β Browse and select fonts from the toolbar; font selection flows through custom UI.
- Font size API β
ui.viewportexposes available font sizes for custom toolbars and programmatic queries. - Comments API: activate-only highlight β
ui.comments.setActive()marks a comment active without scrolling or moving selection. - Pending selection on comment events β
pending-comments-updateevent carriespendingSelectioncaptured before the live DOM selection clears. - Scroll container access β
ui.viewport.getScrollContainer()returns the editor's resolved scroll element for overlay consumers. - Text range viewport geometry β
ui.viewport.getRect()now accepts Document API text addresses and targets, not just entities. - Sidebar viewport observation β
ui.viewport.observefires when the comments rail opens or closes. - Zoom modes β Manual and fit-width zoom modes with observable transitions, viewport metrics,
useSuperDocZoomReact hook, and toolbar command. - Table of contents hover β Hovering TOC entries highlights corresponding document sections.
Improvements
- Multi-column section balancing β Continuous sections now balance correctly; explicit per-column widths preserved throughout layout.
- Column spacing precision β Per-column gaps drive separator positions per ECMA-376; unequal-width columns honor per-column
w:spacevalues. - Font substitutes load before measurement β Metric-compatible fallbacks for Calibri, Cambria, Arial, Times New Roman, and Courier New load upfront; no reflow.
- Tracked table changes consolidation β Inline cell edits fold into a single review item instead of separate entries; one decision applies to the whole table.
Fixes
- Paragraphs styled with
pageBreakBeforeno longer insert blank pages when directly following explicit page breaks. - Textbox text alignment now matches Word behavior when tables are nested inside textboxes.
- Table cell selection highlights render over empty space; multiline selections show full-width interior lines.
- Plan engine recovers from stale block identities on recompile without crashes.
- Tab carets anchor to line top (not bottom); soft-break continuation carets position at line start with alignment-aware offset.
- DOCX export preserves generated line breaks as
<w:br/>elements instead of raw newlines. - Font toolbar no longer races on editor handoff; combobox selection handles edge cases correctly.
- Viewport geometry invalidates on sidebar toggle without pixel-level jitter.
- Zoom state β PDF documents contribute to viewport metrics; mode-only transitions emit correctly.
- TOC anchor navigation preserves
bookmarkStart/bookmarkEndorder. - Image alpha modifiers process correctly on import and export.
- Font picker keyboard behavior consistent across selection modes.
- Formatting is preserved when typing text over a toolbar font selection.