Skip to content

Commit 0caff9c

Browse files
chore(release): 1.31.0 [skip ci]
### What's New - **ui.document.dirty** β€” Tracks unsaved changes; flips true on any doc transaction and clears on export or file replacement. - **ui.trackChanges** β€” Separate surface for tracked changes with items, state, and accept/reject/navigate methods; use alongside ui.comments for custom review sidebars. - **ui.comments.reply()** β€” Create threaded replies that inherit the parent comment's anchor automatically. - **ui.comments.createFromCapture()** β€” Post comments against a frozen selection snapshot, solving focus-loss in inline composers. - **Public type exports** β€” Config, Modules, DocumentApi, BlocksListResult, BookmarkInfo, and 30+ additional types now importable from superdoc instead of deep paths. - **Story-aware bookmarks** β€” Navigate and manage bookmarks independently in headers, footers, and body; requires disambiguation for unqualified names in multiple stories. - **Build-your-own-ui example** β€” Reference implementation showing how to wire custom toolbar, sidebars, and commands to the controller with DOCX round-trip. ### Improvements - **Custom command routing** β€” execute() callbacks now receive the active editor routed to the current story context (body, header, or footer). - **Type safety** β€” ~100 type collapses to any fixed via stricter JSDoc-to-TypeScript alignment; public typedefs checked at every import site. - **Comment ranges** β€” Comments spanning paragraph boundaries now emit a single OOXML anchor pair per comment ID, conforming to ECMA-376. - **AutoFit table columns** β€” Column widths now recalculate based on content demand while respecting authored grids. - **Wide table rendering** β€” Tables wider than margins now render outside bounds with proper x-positioning for centered and right-aligned layouts. ### Breaking Changes - **ui.review removed** β€” Merged comments + tracked-changes feed replaced by separate ui.comments and ui.trackChanges surfaces.
1 parent c05951e commit 0caff9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

β€Žpackages/superdoc/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "superdoc",
33
"type": "module",
4-
"version": "1.30.1",
4+
"version": "1.31.0",
55
"license": "AGPL-3.0",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
Β (0)