fix(deps): update superdoc - #90
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.22.1-next.1→0.22.1-next.21.21.2-next.1→1.21.2-next.21.39.0-next.5→1.45.1-next.2Release Notes
superdoc/docx-editor (superdoc)
v1.45.1-next.2Compare Source
v1.45.1-next.1Compare Source
v1.45.0Compare Source
Improvements
v1.44.2Compare Source
Fixes
v1.44.1Compare Source
Based on my analysis of the code changes, here are the release notes for v1.44.1:
Fixes
v1.44.0Compare Source
Based on my analysis of the commits and codebase changes, here are the release notes:
What's New
trackChanges.decide()with thesideparameter ('inserted'/'deleted'), leaving the other half as a standalone pending change.trackChanges.list()and can be accepted/rejected viatrackChanges.decide().blocks.listreturns computed numbering (marker, path, kind) for numbered list items and numbered headings, plus aparagraphNumberingreference field so agents can read legal clause numbers.blocks.listnow exposes paragraph indentation (left, right, firstLine, hanging in twips) for layout-aware document analysis.lists.attach()now supports tracked mode for list property changes.execute-codecommand for running JavaScript directly against documents in headless mode.Fixes
comments.list()export.tablesClearShading()now removes the background attribute correctly.blocks.listskip deleted runs — no longer reports styling from pending deletions.v1.43.2Compare Source
What's New
Fixes
Table rendering fidelity improvements — Compound borders (double, triple, thinThick variants) now render with correct band widths. Border conflict resolution follows ECMA-376 spec to prevent doubled or dropped lines on shared cell edges. Table style shading and conditional styling regions now render correctly. Auto tables content-size like Word; percent-width tables honor authored grid proportions.
Merged and overhanging cells — vMerge-only rows maintain minimum height instead of collapsing. Interior row boundaries paint as continuous lines across extended rows with no gaps.
Nested structured content (SDT) rendering — Content controls nested inside other controls now display correctly.
Image rendering in textboxes — Images inside shape containers now measure and render properly.
Toolbar font selection — Now shows blank when multiple fonts are selected, instead of falling back to Arial.
Tracked rewrite performance — Large single tracked mutations now use coarse-grained replacement path instead of granular word-level diffs, preventing anchor corruption in accepted text.
Tracked changes in editing mode — Direct edits during editing mode stay plain instead of being marked as tracked changes.
Font picker dropdown — Now opens correctly when clicking the input field.
CJK line breaking — Fixed wrapping after numeric runs in long-word text.
Heading style conflicts — Conflicting heading styles now resolve to inherit Word's built-in styles.
Document diffing — Now detects and applies header/footer differences as part of comparison flow.
Breaking Changes
Removed deprecated Document API operations that were unsupported:
blocks.split(),blocks.merge(),blocks.move()lists.getState(),lists.apply(),lists.continueV2(),lists.restartV2(),lists.removeV2()paragraphs.setMarkRunProps()tables.moveRow()v1.43.1Compare Source
Fixes
Editing-mode direct inserts now stay plain inside tracked changes — When track changes are off, typing or pasting directly inside another user's tracked insertion or deletion no longer expands the suggestion or becomes a tracked change itself. The suggestion is split around the inserted text, preserving its original id and content.
Pasted review marks are preserved on paste-inside-suggestion — Pasting a SuperDoc slice that carries its own tracked-change metadata into another suggestion now keeps the pasted marks intact, instead of silently stripping them. Only the enclosing suggestion's inherited marks are removed from the new text.
v1.43.0Compare Source
Based on my analysis of the commits and code changes, here are the release notes:
What's New
coverandfillmodes.Improvements
wrapNonemedia render as absolute overlays; non-page-relative overlays position from container origin; decoration stacking respects authored z-index order.vector-effect: non-scaling-stroke.Testing
v1.42.0Compare Source
What's New
Footnotes and endnotes — full editor integration — Double-click a reference marker to navigate to the note; delete from either side removes both marker and note; staged Backspace selects then removes; insert via
editor.commands.insertFootnote(); caret and arrow navigation now track correctly in multi-paragraph notes; Font sizing respects document defaults.Textbox selection, resize, and move — Click within 6px of a textbox border to select it (ProseMirror NodeSelection); resize via corner handles with live feedback; drag to move with margin-offset preservation; works in body, headers, and footers.
Document API — image manipulation —
images.crop,images.rotate,images.scale,images.flip,images.replace-source; full control over alt text, captions, z-order, wrapping, and anchor; TIFF support added.Document API — hyperlinks —
hyperlinks.insert,hyperlinks.wrap,hyperlinks.list,hyperlinks.patch,hyperlinks.remove; pasted URLs automatically convert to real DOCX link elements.Document API — list operations —
lists.apply,lists.continue,lists.restart,lists.remove,lists.getState; level-specific formatting; control bullets, numbering, alignment, marker fonts, and indentation.Document API — block operations (v2 sessions) —
blocks.mergepreserves first paragraph properties;blocks.split;blocks.move; returns affected ranges and transaction IDs.Document API — paragraph numbering —
format.paragraph.setNumberingattaches numbering to paragraphs;blocks.listsurfaces list state;format.paragraph.setMarkRunPropscontrols 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/endnote to navigate to that note.
Mutations planning —
mutations.planExecuteplans and executes mutations in a single operation with per-entry transactions and failure semantics.HTML extraction — New
getHtmloperation to read document content as HTML.V2 package and runtime — Unified v2 editor runtime with improved performance; v1 compatibility wiring for backward compatibility.
Improvements
List rendering fidelity — First-line indent lists now compute marker suffix tab width from actual rendered tab stops instead of stale targets; justified text width is now correct.
Footnote performance — Warm-start reserve convergence reduces keystroke cost on 25-footnote documents from 75ms to 12ms; ONE 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; eliminates redundant rebuilds on transaction + selectionUpdate bursts.
IME composition — Defer layout rerender and track-changes rewriting during input method editing to prevent conflicts.
Font configuration robustness — Malformed
fonts.bundledconfiguration no longer crashes; defaults to full bundled pack with warning.Track changes — deletion handling — 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 intent 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.Passthrough nodes — Inline passthrough nodes no longer attach content; instruction text lives in attrs.originalXml to fix MERGEFIELD export.
Fixes
Footnotes rendering — Terminal-page reserve bump now ensures footnotes render when body fills last page (was silently dropping 0 of 6).
Note caret and selection — Multi-paragraph notes now track caret and selection correctly; arrow navigation no longer skips lines; goal-column preserved across presses; resolves against stale painted ranges via block identity.
Note paragraph styles — FootnoteText style now preserved on Enter, paste, and every paragraph-creation path; appendTransaction guard stamps missing styles after async mutations.
Header/footer activation — Double-click resolves note references only in body fragments; header/footer with behindDoc textboxes no longer break.
Tracked-change review navigation — Navigation no longer jumps and leaves the UI in inconsistent states.
Comment behavior regressions — Repaired regression in comment behavior after recent refactors.
Format persistence —
w:capsnow persists on export via text transform.List export — Sync document XML before numbering pruning to preserve list definitions on export.
Image resize handles — Alignment with actual image position corrected.
Link popover rendering — Mount external popovers outside overflow:hidden containers to prevent clipping.
Orphan references — Removed orphan function calls that left the codebase in an inconsistent state.
Security findings — Remediated critical and high penetration test findings.
v1.41.0Compare Source
What's New
@superdoc-dev/fonts package — Optional package containing 6 MB of
.woff2font binaries for reviewed metric-compatible substitutes, published to npm under the org scope so the core stays small for apps that skip the pack.Config-gated bundled font availability — Font availability is now explicit: without a configured pack, SuperDoc shows a conservative baseline (Arial, Times New Roman, Courier New), and documents render their original font names with system fonts; configuring the pack lights up the full reviewed set, so toolbar and rendering show the curated families you enable.
Font curation API —
createSuperDocFonts({ include / exclude })validates family names against the pack and curates availability at setup time, so typos fail fast and a no-pack or curated document never reuses another document's full-pack measures.Improvements
Better baseline behavior — Unconfigured SuperDoc now shows one safe Word font per CSS generic instead of fetching missing substitutes from nowhere, and a one-time warning surfaces if the pack fails to load instead of silently degrading.
Document-scoped font resolution — Availability and curation are per-document in the resolver and offerings, keeping each editor's toolbar and rendering independent when multiple documents share a page.
CDN-ready fonts — The
@superdoc-dev/fontsbrowser build exports a globalSuperDocFontswith the same API, so<script>tag pages load the reviewed pack from jsDelivr, unpkg, or self-hosted servers with no bundler and no path config.Updated examples and docs — Getting-started guides for Angular, Laravel, Next.js, Nuxt, React, Solid, Vanilla, and Vue now import and use
@superdoc-dev/fonts.v1.40.1Compare Source
Fixes
v1.40.0Compare Source
Now I have enough context. Let me write the release notes based on the actual changes:
What's New
manualorfit-width(auto-fit to container).ui.zoomexposes mode, value, calculated fit-zoom, bounds, and viewport metrics; PDF documents measure at their rendered scale.viewport-changeevent fires on container resize with measurements (document width, available width, fit-zoom). Consume viewport metrics fromgetViewportMetrics()to implement responsive zoom without polling.ui.comments.setActive()highlights a comment without scrolling;pendingSelectionon pending comment events gives consumers the captured selection to pass to comment creation APIs.ui.viewport.getRect()now accepts Document API text targets (addresses and segments), resolving to painted DOM rects for custom overlay and floating-UI anchoring.ui.viewport.getScrollContainer()returns the actual scrollable ancestor (or null for document/window scroll), letting overlay consumers attach scroll listeners to the right element.ui.viewport.observefires when the comments rail opens/closes, invalidating cached viewport geometry.Improvements
<w:br/>elements; read model treats lineBreak nodes as\nso search/query/rewrite stay consistent.Fixes
.superdoc-lineelements across browsers.\n, so a match spanning text+lineBreak+text coalesces to one contiguous range./devtools/visual-testing; layout validation now runs in the standard test suite.v1.39.0What's New
Fonts API for custom registration and per-document mapping
superdoc.fonts.add({ family, weight, style }, url)registers custom fonts and awaits them before layoutsuperdoc.fonts.map({ 'Calibri': 'Carlito', ... })maps logical families per editor — custom substitutes override bundled defaultssuperdoc.fonts.preload(['Georgia', ...])loads families before measurementsuperdoc.fonts.getReport(),getMissingFonts(),getDocumentFonts()surface font diagnosticsfonts-changedevents with load status and resolution reasonsBundled font substitutes for common Word families
Structural tracked changes for tables
PAGEREF field resolution to live target page numbers
\p→ "on page N", "above", "below")SEQ sequence field support
NUMPAGES field formatting with numeric pictures and ordinal
\# "0"(numeric picture) and\* Ordinalformat switches on insert and importPAGE field formatting with numeric pictures
\# "0"(numeric pictures) and\*general-format switches (Arabic, Roman, Alphabetic, ArabicDash)SECTIONPAGES field support
Document background
Nested content controls
Templates can be applied to documents
doc.template.apply(templateDoc)applies formatting, styles, and structure from template to active documentAuthor colors for tracked changes
Improvements
Multi-column sections now render with explicit per-column widths and gaps
Footnote pagination matches Word's behavior
Tracked change rendering
Table border and shading fidelity
Header/footer refs inherit across multiple sections
Field-annotation pills resolve fonts per document
Anchored tables reposition with per-wrap padding
Fixes
v1.39.0-next.30Compare Source
Bug Fixes
Features
v1.39.0-next.29Compare Source
Bug Fixes
v1.39.0-next.28Compare Source
Bug Fixes
Features
v1.39.0-next.27Compare Source
Features
v1.39.0-next.26Compare Source
Features
v1.39.0-next.25Compare Source
Features
v1.39.0-next.24Compare Source
Features
v1.39.0-next.23Compare Source
Bug Fixes
Features
v1.39.0-next.22Compare Source
Bug Fixes
Features
v1.39.0-next.21Compare Source
Bug Fixes
Features
v1.39.0-next.20Compare Source
Features
v1.39.0-next.19Compare Source
Bug Fixes
v1.39.0-next.18Compare Source
Features
v1.39.0-next.17Compare Source
Features
v1.39.0-next.16Compare Source
Bug Fixes
Features
v1.39.0-next.15Compare Source
Features
v1.39.0-next.14Compare Source
Bug Fixes
v1.39.0-next.13Compare Source
Bug Fixes
v1.39.0-next.12Compare Source
Bug Fixes
v1.39.0-next.11Compare Source
Bug Fixes
Features
v1.39.0-next.10Compare Source
Bug Fixes
Features
v1.39.0-next.9Compare Source
Bug Fixes
v1.39.0-next.8Compare Source
Bug Fixes
Features
v1.39.0-next.7Compare Source
Bug Fixes
v1.39.0-next.6Compare Source
Features
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.