Commit 34ffb33
committed
chore(cli): 0.7.0 [skip ci]
### What's New
- **superdoc.min.js CDN bundle** — Shipped as minified IIFE (1.46 MB gzipped); `window.SuperDoc` constructor exposed directly for script-tag loading.
- **10 math equation converters** — Added m:m, m:groupChr, m:phant, m:nary, m:acc, m:sPre, m:limLow, m:limUpp, m:rad, m:eqArr per ECMA-376 spec.
- **Word-level diffing** — Granular text change tracking for collaborative editing.
- **doc.extract()** — RAG extraction API returns blocks with text, comments with anchored refs, tracked changes with excerpts; all IDs work with scrollToElement() for citation navigation.
- **contentControls.create with text range wrapping** — Optional `at` field wraps arbitrary ranges without dropping to editor internals.
- **Toolbar headless API** — State and execute methods for programmatic toolbar control.
- **CLI collaboration custom params** — New `params` field forwarded to y-websocket and Hocuspocus provider.
### Improvements
- **Centered images in indented paragraphs** — Fixed centering math to account for w:ind; shapes now position correctly regardless of indentation.
- **Selection rectangles in headers/footers** — Fixed selection overlay rendering for header/footer shapes.
- **Live collaborative table updates** — Table cell block cache invalidates correctly during active editing.
- **Browser-first export types** — exportDocx() defaults to Promise<Blob> (browser); Node consumers opt in with exportDocx<Buffer>().
- **Tracked-change replacement text** — Fixed text rendering in change bubbles.
- **Justified paragraph first-line indent** — Fixed character overlap and selection drift with hanging indent + justify.
- **Tracked change undo/redo sync** — Comments resync correctly on peer undo/redo replay.
- **MCP tool definitions for efficient workflows** — Optimized guidance on markdown inserts, mutations batching, and multi-item operations.
- **Test coverage: 64% → 90%** — Added suites for PDF, comments, composables, canvas; integrated Codecov.
### Fixes
- **Collaborative export data loss** — Fixed endnotes, settings.xml, custom XML not persisting after export in collab sessions.
- **Watermark and comment rendering** — Fixed watermark layout, comment metadata, bubble placement, header anchor shapes.
- **Run key stale state** — Narrowed lost-keys preservation; unrelated inline keys no longer inherit state from accept/reject.
- **Context menu types** — Typed customItems as ContextMenuSection[]; widened callbacks to include full ContextMenuContext.
- **Schema validation for additionalProperties** — Fixed CLI crash on object schemas missing explicit properties map.1 parent c1ba6f1 commit 34ffb33
6 files changed
Lines changed: 6 additions & 6 deletions
File tree
- apps/cli
- platforms
- cli-darwin-arm64
- cli-darwin-x64
- cli-linux-arm64
- cli-linux-x64
- cli-windows-x64
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments