Skip to content

cli-v0.20.0

Choose a tag to compare

@superdoc-bot superdoc-bot released this 23 Jun 15:14

What's New

  • Footnotes and endnotes β€” Double-click reference markers to navigate to notes; delete from either side removes both marker and note; insert via editor.commands.insertFootnote(); caret and arrow navigation track correctly in multi-paragraph notes.
  • Textbox selection, resize, and move β€” Click within 6px of a textbox border to select it; resize with corner handles and live feedback; drag to move with margin-offset preservation in body, headers, and footers.
  • Document API β€” image manipulation β€” New operations for crop, rotate, scale, flip, and replace-source; full control over alt text, captions, z-order, wrapping, and anchor; TIFF support added.
  • Document API β€” hyperlinks β€” New operations for insert, wrap, list, patch, and remove; pasted URLs automatically convert to real DOCX link elements.
  • Document API β€” list operations β€” New operations for apply, continue, restart, remove, and getState; control bullets, numbering, alignment, marker fonts, and indentation per level.
  • Document API β€” block operations β€” blocks.merge preserves first paragraph properties; blocks.split and blocks.move return affected ranges and transaction IDs.
  • Document API β€” paragraph numbering β€” format.paragraph.setNumbering attaches numbering to paragraphs; blocks.list surfaces list state; format.paragraph.setMarkRunProps controls marker appearance.
  • Search in tracked deletions β€” Find & Replace now searches text within deleted tracked changes, not just insertions.
  • Cross-reference navigation β€” Double-click a REF or NOTEREF field pointing at a footnote or endnote to navigate to that note.
  • Mutations planning β€” mutations.planExecute plans and executes mutations in a single operation with per-entry transactions and failure semantics.
  • HTML extraction β€” New getHtml operation to read document content as HTML.
  • Vector shape improvements β€” Outer shadow effects on shapes; shape-group transforms with rotation and flip; images clipped to preset shape geometry; improved anchoring and z-order; Word-compatible preset geometry.

Improvements

  • List rendering β€” First-line indent lists compute marker suffix tab width from actual rendered tab stops; justified text width is now correct.
  • Footnote performance β€” Warm-start reserve convergence reduces keystroke cost on 25-footnote documents from 75ms to 12ms; single pagination per keystroke instead of nine.
  • Editor performance β€” Block-node metadata transactions no longer trigger full-document numbering diffs; saves ~16ms per keystroke on 776-paragraph documents.
  • Toolbar refresh β€” Coalesce headless toolbar snapshots per microtask to eliminate redundant rebuilds.
  • IME composition β€” Defer layout rerender and track-changes rewriting during input method editing to prevent conflicts.
  • Font configuration β€” Malformed fonts.bundled configuration no longer crashes; defaults to full bundled pack with warning.
  • Track changes β€” Cross-paragraph deletes no longer split paragraphs in suggesting mode; position mapping no longer crashes; accept/reject now reports which decision was taken.
  • URL paste detection β€” Auto-linking now requires explicit URL intent (www., http(s)://, mailto:, tel:, sms:) to prevent plain text or relative paths from being mistakenly linked.

Fixes

  • Footnotes rendering β€” Terminal-page reserve bump ensures footnotes render when body fills last page.
  • Note caret and selection β€” Multi-paragraph notes now track caret and selection correctly; arrow navigation no longer skips lines; goal-column preserved across presses.
  • Note paragraph styles β€” FootnoteText style now preserved on Enter, paste, and every paragraph-creation path.
  • Header/footer activation β€” Double-click resolves note references only in body fragments; header/footer with behindDoc textboxes no longer break.
  • Tracked-change review β€” Navigation no longer jumps and leaves the UI in inconsistent states.
  • Comment behavior β€” Repaired regression in comment behavior after recent refactors.
  • Format persistence β€” w:caps now persists on export via text transform.
  • List export β€” Document XML syncs before numbering pruning to preserve list definitions.
  • Image resize handles β€” Alignment with actual image position corrected.
  • Link popover rendering β€” Popovers mount outside overflow:hidden containers to prevent clipping.
  • Security β€” Remediated critical and high penetration test findings.