superdoc 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +337 -0
- package/LICENSE +661 -0
- package/NOTICE +8 -0
- package/README.md +107 -0
- package/dist/chunks/FindReplaceSurface-BEW-1NhM.es.js +344 -0
- package/dist/chunks/FindReplaceSurface-DLxnCQOB.cjs +346 -0
- package/dist/chunks/PasswordPromptSurface-BA6HHqEa.es.js +111 -0
- package/dist/chunks/PasswordPromptSurface-DMbfDvpQ.cjs +113 -0
- package/dist/chunks/PdfViewer-CNOtyS-I.es.js +531 -0
- package/dist/chunks/PdfViewer-CoFiGAhm.cjs +535 -0
- package/dist/chunks/_plugin-vue_export-helper-BTwbGDKw.cjs +11 -0
- package/dist/chunks/_plugin-vue_export-helper-CInC0bKI.es.js +6 -0
- package/dist/chunks/blank-docx-CJAXnJKp.es.js +2 -0
- package/dist/chunks/blank-docx-DA-G-3VB.cjs +7 -0
- package/dist/chunks/constants-CY3R3_kF.es.js +3 -0
- package/dist/chunks/constants-sbCZ2O_A.cjs +14 -0
- package/dist/chunks/create-super-doc-ui-CXCqHc2m.cjs +9451 -0
- package/dist/chunks/create-super-doc-ui-fxF2Q8Ib.es.js +9188 -0
- package/dist/chunks/eventemitter3-B60Fsz-a.es.js +131 -0
- package/dist/chunks/eventemitter3-DCfwFVNn.cjs +137 -0
- package/dist/chunks/jszip-BdUBlUeG.cjs +4679 -0
- package/dist/chunks/jszip-DzmwAHr3.es.js +4650 -0
- package/dist/chunks/rolldown-runtime-BJVcqBbz.es.js +43 -0
- package/dist/chunks/rolldown-runtime-_dR15c8t.cjs +68 -0
- package/dist/chunks/uuid-B2Sqk-3p.es.js +32 -0
- package/dist/chunks/uuid-CFp0WGVU.cjs +38 -0
- package/dist/collaboration-upgrade-engine.cjs +37 -0
- package/dist/collaboration-upgrade-engine.es.js +30 -0
- package/dist/document-api/src/authorities/authorities.d.ts +29 -0
- package/dist/document-api/src/authorities/authorities.types.d.ts +113 -0
- package/dist/document-api/src/blocks/blocks.d.ts +29 -0
- package/dist/document-api/src/bookmarks/bookmarks.d.ts +15 -0
- package/dist/document-api/src/bookmarks/bookmarks.types.d.ts +82 -0
- package/dist/document-api/src/capabilities/capabilities.d.ts +82 -0
- package/dist/document-api/src/captions/captions.d.ts +17 -0
- package/dist/document-api/src/captions/captions.types.d.ts +61 -0
- package/dist/document-api/src/citations/citations.d.ts +39 -0
- package/dist/document-api/src/citations/citations.types.d.ts +151 -0
- package/dist/document-api/src/clear-content/clear-content.d.ts +25 -0
- package/dist/document-api/src/clipboard/clipboard.d.ts +11 -0
- package/dist/document-api/src/comments/comments.d.ts +222 -0
- package/dist/document-api/src/comments/comments.types.d.ts +227 -0
- package/dist/document-api/src/content-controls/content-controls.d.ts +136 -0
- package/dist/document-api/src/content-controls/content-controls.types.d.ts +453 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +17 -0
- package/dist/document-api/src/contract/index.d.ts +9 -0
- package/dist/document-api/src/contract/metadata-types.d.ts +30 -0
- package/dist/document-api/src/contract/operation-definitions.d.ts +3645 -0
- package/dist/document-api/src/contract/operation-map.d.ts +5 -0
- package/dist/document-api/src/contract/operation-registry.d.ts +2002 -0
- package/dist/document-api/src/contract/reference-aliases.d.ts +19 -0
- package/dist/document-api/src/contract/reference-doc-map.d.ts +12 -0
- package/dist/document-api/src/contract/schemas.d.ts +35 -0
- package/dist/document-api/src/contract/step-op-catalog.d.ts +26 -0
- package/dist/document-api/src/contract/types.d.ts +31 -0
- package/dist/document-api/src/create/create.d.ts +27 -0
- package/dist/document-api/src/cross-refs/cross-refs.d.ts +15 -0
- package/dist/document-api/src/cross-refs/cross-refs.types.d.ts +68 -0
- package/dist/document-api/src/customXml/customXml.d.ts +19 -0
- package/dist/document-api/src/customXml/customXml.types.d.ts +148 -0
- package/dist/document-api/src/delete/delete.d.ts +20 -0
- package/dist/document-api/src/diff/diff.d.ts +14 -0
- package/dist/document-api/src/diff/diff.types.d.ts +83 -0
- package/dist/document-api/src/diff/index.d.ts +3 -0
- package/dist/document-api/src/errors.d.ts +11 -0
- package/dist/document-api/src/export/export.d.ts +10 -0
- package/dist/document-api/src/export/export.types.d.ts +40 -0
- package/dist/document-api/src/extract/extract.d.ts +15 -0
- package/dist/document-api/src/fields/fields.d.ts +15 -0
- package/dist/document-api/src/fields/fields.types.d.ts +90 -0
- package/dist/document-api/src/find/find.d.ts +52 -0
- package/dist/document-api/src/footnotes/footnotes.d.ts +17 -0
- package/dist/document-api/src/footnotes/footnotes.types.d.ts +104 -0
- package/dist/document-api/src/format/format.d.ts +92 -0
- package/dist/document-api/src/format/inline-run-patch.d.ts +138 -0
- package/dist/document-api/src/get/get.d.ts +19 -0
- package/dist/document-api/src/get-html/get-html.d.ts +27 -0
- package/dist/document-api/src/get-markdown/get-markdown.d.ts +22 -0
- package/dist/document-api/src/get-node/get-node.d.ts +46 -0
- package/dist/document-api/src/get-text/get-text.d.ts +22 -0
- package/dist/document-api/src/header-footers/header-footers.d.ts +37 -0
- package/dist/document-api/src/header-footers/header-footers.types.d.ts +116 -0
- package/dist/document-api/src/history/history.d.ts +38 -0
- package/dist/document-api/src/history/history.types.d.ts +100 -0
- package/dist/document-api/src/hyperlinks/hyperlinks.d.ts +17 -0
- package/dist/document-api/src/hyperlinks/hyperlinks.types.d.ts +112 -0
- package/dist/document-api/src/images/images.d.ts +63 -0
- package/dist/document-api/src/images/images.types.d.ts +209 -0
- package/dist/document-api/src/images/z-order.d.ts +10 -0
- package/dist/document-api/src/index/index.d.ts +29 -0
- package/dist/document-api/src/index/index.types.d.ts +125 -0
- package/dist/document-api/src/index.d.ts +560 -0
- package/dist/document-api/src/info/info.d.ts +19 -0
- package/dist/document-api/src/inline-semantics/directives.d.ts +95 -0
- package/dist/document-api/src/inline-semantics/error-types.d.ts +68 -0
- package/dist/document-api/src/inline-semantics/index.d.ts +20 -0
- package/dist/document-api/src/inline-semantics/property-ids.d.ts +24 -0
- package/dist/document-api/src/inline-semantics/token-parsers.d.ts +59 -0
- package/dist/document-api/src/inline-semantics/token-sets.d.ts +34 -0
- package/dist/document-api/src/insert/insert.d.ts +65 -0
- package/dist/document-api/src/invoke/invoke.d.ts +17 -0
- package/dist/document-api/src/lists/lists.d.ts +100 -0
- package/dist/document-api/src/lists/lists.types.d.ts +499 -0
- package/dist/document-api/src/markdown-to-fragment/markdown-to-fragment.d.ts +15 -0
- package/dist/document-api/src/metadata/anchored-metadata.d.ts +33 -0
- package/dist/document-api/src/metadata/anchored-metadata.types.d.ts +175 -0
- package/dist/document-api/src/paragraphs/paragraphs.d.ts +84 -0
- package/dist/document-api/src/paragraphs/paragraphs.types.d.ts +214 -0
- package/dist/document-api/src/permission-ranges/permission-ranges.d.ts +15 -0
- package/dist/document-api/src/permission-ranges/permission-ranges.types.d.ts +49 -0
- package/dist/document-api/src/plan/plan.d.ts +73 -0
- package/dist/document-api/src/protection/protection.d.ts +11 -0
- package/dist/document-api/src/protection/protection.types.d.ts +47 -0
- package/dist/document-api/src/ranges/index.d.ts +2 -0
- package/dist/document-api/src/ranges/ranges.types.d.ts +121 -0
- package/dist/document-api/src/ranges/resolve.d.ts +2 -0
- package/dist/document-api/src/receipt-bridge.d.ts +30 -0
- package/dist/document-api/src/replace/replace.d.ts +24 -0
- package/dist/document-api/src/sections/sections.d.ts +42 -0
- package/dist/document-api/src/sections/sections.types.d.ts +236 -0
- package/dist/document-api/src/selection/selection.d.ts +23 -0
- package/dist/document-api/src/selection/selection.types.d.ts +85 -0
- package/dist/document-api/src/selection-mutation.d.ts +46 -0
- package/dist/document-api/src/styles/apply.d.ts +142 -0
- package/dist/document-api/src/styles/catalog.d.ts +154 -0
- package/dist/document-api/src/styles/index.d.ts +14 -0
- package/dist/document-api/src/styles/registry.d.ts +43 -0
- package/dist/document-api/src/styles/schema.d.ts +9 -0
- package/dist/document-api/src/styles/validation.d.ts +38 -0
- package/dist/document-api/src/tables/color-formats.d.ts +12 -0
- package/dist/document-api/src/tables/tables.d.ts +83 -0
- package/dist/document-api/src/templates/apply.d.ts +160 -0
- package/dist/document-api/src/templates/index.d.ts +7 -0
- package/dist/document-api/src/toc/toc.d.ts +25 -0
- package/dist/document-api/src/toc/toc.types.d.ts +247 -0
- package/dist/document-api/src/track-changes/track-changes.d.ts +177 -0
- package/dist/document-api/src/types/adapter-result.d.ts +10 -0
- package/dist/document-api/src/types/address.d.ts +169 -0
- package/dist/document-api/src/types/base.d.ts +89 -0
- package/dist/document-api/src/types/blocks.types.d.ts +190 -0
- package/dist/document-api/src/types/clipboard.d.ts +216 -0
- package/dist/document-api/src/types/comments.types.d.ts +17 -0
- package/dist/document-api/src/types/create.types.d.ts +56 -0
- package/dist/document-api/src/types/discovery.d.ts +99 -0
- package/dist/document-api/src/types/extract.types.d.ts +163 -0
- package/dist/document-api/src/types/fragment.d.ts +29 -0
- package/dist/document-api/src/types/index.d.ts +30 -0
- package/dist/document-api/src/types/info.types.d.ts +109 -0
- package/dist/document-api/src/types/inline.types.d.ts +28 -0
- package/dist/document-api/src/types/media.types.d.ts +72 -0
- package/dist/document-api/src/types/mutation-plan.types.d.ts +264 -0
- package/dist/document-api/src/types/node.d.ts +9 -0
- package/dist/document-api/src/types/paragraph.types.d.ts +61 -0
- package/dist/document-api/src/types/placement.d.ts +24 -0
- package/dist/document-api/src/types/query-match.types.d.ts +212 -0
- package/dist/document-api/src/types/query.d.ts +133 -0
- package/dist/document-api/src/types/receipt.d.ts +191 -0
- package/dist/document-api/src/types/references.types.d.ts +9 -0
- package/dist/document-api/src/types/sd-contract.d.ts +54 -0
- package/dist/document-api/src/types/sd-envelope.d.ts +59 -0
- package/dist/document-api/src/types/sd-nodes.d.ts +375 -0
- package/dist/document-api/src/types/sd-objects.d.ts +144 -0
- package/dist/document-api/src/types/sd-props.d.ts +240 -0
- package/dist/document-api/src/types/sd-sections.d.ts +126 -0
- package/dist/document-api/src/types/sd-styles.d.ts +36 -0
- package/dist/document-api/src/types/step-manifest.types.d.ts +30 -0
- package/dist/document-api/src/types/story.types.d.ts +123 -0
- package/dist/document-api/src/types/structural-input.d.ts +40 -0
- package/dist/document-api/src/types/structured.types.d.ts +21 -0
- package/dist/document-api/src/types/style-policy.types.d.ts +49 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +618 -0
- package/dist/document-api/src/types/tables.types.d.ts +43 -0
- package/dist/document-api/src/types/toc.types.d.ts +1 -0
- package/dist/document-api/src/types/track-changes.types.d.ts +703 -0
- package/dist/document-api/src/validation/create-location-validator.d.ts +2 -0
- package/dist/document-api/src/validation/fragment-validator.d.ts +13 -0
- package/dist/document-api/src/validation/selection-target-validator.d.ts +7 -0
- package/dist/document-api/src/validation/story-validator.d.ts +12 -0
- package/dist/document-api/src/validation-primitives.d.ts +29 -0
- package/dist/document-api/src/write/locator.d.ts +24 -0
- package/dist/document-api/src/write/write.d.ts +73 -0
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/checkmark.svg +5 -0
- package/dist/images/comment-actionsButton.svg +3 -0
- package/dist/images/comment-closeButton.svg +3 -0
- package/dist/images/comment-editButton.svg +8 -0
- package/dist/images/comment-popup-editButton.svg +5 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/editor-toolbar-edit.svg +3 -0
- package/dist/images/findbarButton-next.svg +3 -0
- package/dist/images/findbarButton-previous.svg +3 -0
- package/dist/images/gv-toolbarButton-download.svg +3 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/loading.svg +1 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_info.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/images/pages_closeButton.svg +3 -0
- package/dist/images/pages_selected.svg +7 -0
- package/dist/images/pages_viewArrow.svg +3 -0
- package/dist/images/pages_viewButton.svg +3 -0
- package/dist/images/secondaryToolbarButton-documentProperties.svg +3 -0
- package/dist/images/secondaryToolbarButton-firstPage.svg +3 -0
- package/dist/images/secondaryToolbarButton-handTool.svg +3 -0
- package/dist/images/secondaryToolbarButton-lastPage.svg +3 -0
- package/dist/images/secondaryToolbarButton-rotateCcw.svg +3 -0
- package/dist/images/secondaryToolbarButton-rotateCw.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollPage.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollVertical.svg +3 -0
- package/dist/images/secondaryToolbarButton-scrollWrapped.svg +3 -0
- package/dist/images/secondaryToolbarButton-selectTool.svg +3 -0
- package/dist/images/secondaryToolbarButton-spreadEven.svg +3 -0
- package/dist/images/secondaryToolbarButton-spreadNone.svg +3 -0
- package/dist/images/secondaryToolbarButton-spreadOdd.svg +3 -0
- package/dist/images/toolbarButton-bookmark.svg +3 -0
- package/dist/images/toolbarButton-currentOutlineItem.svg +3 -0
- package/dist/images/toolbarButton-download.svg +4 -0
- package/dist/images/toolbarButton-editorFreeText.svg +5 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-editorInk.svg +4 -0
- package/dist/images/toolbarButton-editorSignature.svg +6 -0
- package/dist/images/toolbarButton-editorStamp.svg +8 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/images/toolbarButton-openFile.svg +3 -0
- package/dist/images/toolbarButton-pageDown.svg +3 -0
- package/dist/images/toolbarButton-pageUp.svg +3 -0
- package/dist/images/toolbarButton-presentationMode.svg +3 -0
- package/dist/images/toolbarButton-print.svg +3 -0
- package/dist/images/toolbarButton-search.svg +3 -0
- package/dist/images/toolbarButton-secondaryToolbarToggle.svg +3 -0
- package/dist/images/toolbarButton-viewAttachments.svg +3 -0
- package/dist/images/toolbarButton-viewLayers.svg +3 -0
- package/dist/images/toolbarButton-viewOutline.svg +3 -0
- package/dist/images/toolbarButton-viewThumbnail.svg +3 -0
- package/dist/images/toolbarButton-viewsManagerToggle.svg +3 -0
- package/dist/images/toolbarButton-zoomIn.svg +3 -0
- package/dist/images/toolbarButton-zoomOut.svg +3 -0
- package/dist/images/treeitem-collapsed.svg +1 -0
- package/dist/images/treeitem-expanded.svg +1 -0
- package/dist/layout-engine/contracts/src/author-colors.d.ts +56 -0
- package/dist/layout-engine/contracts/src/cell-spacing.d.ts +12 -0
- package/dist/layout-engine/contracts/src/clip-path-inset.d.ts +27 -0
- package/dist/layout-engine/contracts/src/column-layout.d.ts +79 -0
- package/dist/layout-engine/contracts/src/direction-context.d.ts +219 -0
- package/dist/layout-engine/contracts/src/drawing-taxonomy.d.ts +126 -0
- package/dist/layout-engine/contracts/src/engines/image-wrap.d.ts +54 -0
- package/dist/layout-engine/contracts/src/engines/index.d.ts +17 -0
- package/dist/layout-engine/contracts/src/engines/lists.d.ts +57 -0
- package/dist/layout-engine/contracts/src/engines/paragraph.d.ts +59 -0
- package/dist/layout-engine/contracts/src/engines/tables.d.ts +89 -0
- package/dist/layout-engine/contracts/src/engines/tabs.d.ts +117 -0
- package/dist/layout-engine/contracts/src/graphic-placement.d.ts +76 -0
- package/dist/layout-engine/contracts/src/header-footer-inheritance.d.ts +22 -0
- package/dist/layout-engine/contracts/src/header-footer-resolution.d.ts +28 -0
- package/dist/layout-engine/contracts/src/incremental-dependency.d.ts +10 -0
- package/dist/layout-engine/contracts/src/index.d.ts +2459 -0
- package/dist/layout-engine/contracts/src/justify-utils.d.ts +98 -0
- package/dist/layout-engine/contracts/src/layout-identity.d.ts +136 -0
- package/dist/layout-engine/contracts/src/ooxml-z-index.d.ts +46 -0
- package/dist/layout-engine/contracts/src/page-number-formatting.d.ts +26 -0
- package/dist/layout-engine/contracts/src/page-ref-anchor.d.ts +2 -0
- package/dist/layout-engine/contracts/src/pm-range.d.ts +45 -0
- package/dist/layout-engine/contracts/src/resolved-layout.d.ts +541 -0
- package/dist/layout-engine/contracts/src/run-helpers.d.ts +23 -0
- package/dist/layout-engine/contracts/src/sdt-container.d.ts +13 -0
- package/dist/layout-engine/contracts/src/segment-geometry.d.ts +192 -0
- package/dist/layout-engine/contracts/src/semantic-colors.d.ts +150 -0
- package/dist/layout-engine/contracts/src/table-cell-spacing.d.ts +12 -0
- package/dist/layout-engine/contracts/src/table-column-rescale.d.ts +13 -0
- package/dist/layout-engine/contracts/src/vertical-text.d.ts +43 -0
- package/dist/layout-engine/dom-contract/src/class-names.d.ts +62 -0
- package/dist/layout-engine/dom-contract/src/data-attrs.d.ts +103 -0
- package/dist/layout-engine/dom-contract/src/index.d.ts +18 -0
- package/dist/layout-engine/dom-contract/src/selectors.d.ts +47 -0
- package/dist/layout-engine/layout-bridge/src/cache-warmer.d.ts +73 -0
- package/dist/layout-engine/layout-bridge/src/cache.d.ts +143 -0
- package/dist/layout-engine/layout-bridge/src/cacheInvalidation.d.ts +117 -0
- package/dist/layout-engine/layout-bridge/src/cursor-renderer.d.ts +201 -0
- package/dist/layout-engine/layout-bridge/src/debounced-passes.d.ts +130 -0
- package/dist/layout-engine/layout-bridge/src/diff.d.ts +36 -0
- package/dist/layout-engine/layout-bridge/src/dirty-tracker.d.ts +128 -0
- package/dist/layout-engine/layout-bridge/src/dom-mapping.d.ts +80 -0
- package/dist/layout-engine/layout-bridge/src/featureFlags.d.ts +95 -0
- package/dist/layout-engine/layout-bridge/src/field-annotation-key.d.ts +2 -0
- package/dist/layout-engine/layout-bridge/src/focus-watchdog.d.ts +170 -0
- package/dist/layout-engine/layout-bridge/src/font-metrics-cache.d.ts +164 -0
- package/dist/layout-engine/layout-bridge/src/footnote-scorer.d.ts +63 -0
- package/dist/layout-engine/layout-bridge/src/headerFooterUtils.d.ts +218 -0
- package/dist/layout-engine/layout-bridge/src/ime-handler.d.ts +81 -0
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +390 -0
- package/dist/layout-engine/layout-bridge/src/index.d.ts +211 -0
- package/dist/layout-engine/layout-bridge/src/instrumentation.d.ts +245 -0
- package/dist/layout-engine/layout-bridge/src/layoutHeaderFooter.d.ts +123 -0
- package/dist/layout-engine/layout-bridge/src/list-indent-utils.d.ts +205 -0
- package/dist/layout-engine/layout-bridge/src/local-paragraph-layout.d.ts +93 -0
- package/dist/layout-engine/layout-bridge/src/neutral-hit.d.ts +142 -0
- package/dist/layout-engine/layout-bridge/src/neutral-segment-geometry.d.ts +32 -0
- package/dist/layout-engine/layout-bridge/src/page-geometry-helper.d.ts +197 -0
- package/dist/layout-engine/layout-bridge/src/paragraph-hash-utils.d.ts +126 -0
- package/dist/layout-engine/layout-bridge/src/paragraph-line-cache.d.ts +152 -0
- package/dist/layout-engine/layout-bridge/src/performance-metrics.d.ts +249 -0
- package/dist/layout-engine/layout-bridge/src/pm-dom-fallback.d.ts +188 -0
- package/dist/layout-engine/layout-bridge/src/pm-position-validator.d.ts +100 -0
- package/dist/layout-engine/layout-bridge/src/position-hit.d.ts +167 -0
- package/dist/layout-engine/layout-bridge/src/remeasure.d.ts +75 -0
- package/dist/layout-engine/layout-bridge/src/resolveHeaderFooterTokens.d.ts +76 -0
- package/dist/layout-engine/layout-bridge/src/rtl-text-geometry.d.ts +34 -0
- package/dist/layout-engine/layout-bridge/src/run-visual-marks.d.ts +12 -0
- package/dist/layout-engine/layout-bridge/src/safety-net.d.ts +234 -0
- package/dist/layout-engine/layout-bridge/src/sectionAwareHeaderFooter.d.ts +15 -0
- package/dist/layout-engine/layout-bridge/src/table-handler.d.ts +86 -0
- package/dist/layout-engine/layout-bridge/src/text-boundaries.d.ts +17 -0
- package/dist/layout-engine/layout-bridge/src/text-measurement.d.ts +69 -0
- package/dist/layout-engine/layout-bridge/src/track-changes-handler.d.ts +90 -0
- package/dist/layout-engine/layout-bridge/src/tracked-changes-utils.d.ts +41 -0
- package/dist/layout-engine/layout-engine/src/anchors.d.ts +52 -0
- package/dist/layout-engine/layout-engine/src/column-balancing.d.ts +255 -0
- package/dist/layout-engine/layout-engine/src/column-utils.d.ts +1 -0
- package/dist/layout-engine/layout-engine/src/floating-objects.d.ts +60 -0
- package/dist/layout-engine/layout-engine/src/floating-table-anchor.d.ts +21 -0
- package/dist/layout-engine/layout-engine/src/index.d.ts +349 -0
- package/dist/layout-engine/layout-engine/src/layout-drawing.d.ts +60 -0
- package/dist/layout-engine/layout-engine/src/layout-image.d.ts +16 -0
- package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +101 -0
- package/dist/layout-engine/layout-engine/src/layout-table.d.ts +71 -0
- package/dist/layout-engine/layout-engine/src/layout-textbox.d.ts +4 -0
- package/dist/layout-engine/layout-engine/src/layout-utils.d.ts +104 -0
- package/dist/layout-engine/layout-engine/src/normalize-header-footer-fragments.d.ts +45 -0
- package/dist/layout-engine/layout-engine/src/pageNumbering.d.ts +73 -0
- package/dist/layout-engine/layout-engine/src/paginator.d.ts +131 -0
- package/dist/layout-engine/layout-engine/src/paragraph-layout-eligibility.d.ts +1 -0
- package/dist/layout-engine/layout-engine/src/resolvePageRefs.d.ts +31 -0
- package/dist/layout-engine/layout-engine/src/resolvePageTokens.d.ts +82 -0
- package/dist/layout-engine/layout-engine/src/section-breaks.d.ts +98 -0
- package/dist/layout-engine/layout-engine/src/section-props.d.ts +65 -0
- package/dist/layout-engine/layout-engine/src/table-cell-slice.d.ts +98 -0
- package/dist/layout-engine/painters/dom/src/_test-utils.d.ts +21 -0
- package/dist/layout-engine/painters/dom/src/chart-renderer.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/constants.d.ts +10 -0
- package/dist/layout-engine/painters/dom/src/css-token.d.ts +10 -0
- package/dist/layout-engine/painters/dom/src/features/feature-registry.d.ts +41 -0
- package/dist/layout-engine/painters/dom/src/features/inline-direction/index.d.ts +22 -0
- package/dist/layout-engine/painters/dom/src/features/inline-direction/rtl-styles.d.ts +27 -0
- package/dist/layout-engine/painters/dom/src/features/inline-direction/run-direction.d.ts +75 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/accent.d.ts +25 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/bar.d.ts +16 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/box.d.ts +38 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/delimiter.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/equation-array.d.ts +19 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/fraction.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/function.d.ts +16 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/group-character.d.ts +26 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/index.d.ts +27 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/lower-limit.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/math-run.d.ts +47 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/matrix.d.ts +23 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/nary.d.ts +23 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/phantom.d.ts +17 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/pre-sub-superscript.d.ts +25 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/radical.d.ts +14 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/sub-superscript.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/subscript.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/superscript.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/features/math/converters/upper-limit.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/features/math/index.d.ts +14 -0
- package/dist/layout-engine/painters/dom/src/features/math/omml-to-mathml.d.ts +18 -0
- package/dist/layout-engine/painters/dom/src/features/math/types.d.ts +41 -0
- package/dist/layout-engine/painters/dom/src/images/drawing-image.d.ts +5 -0
- package/dist/layout-engine/painters/dom/src/images/hyperlink.d.ts +2 -0
- package/dist/layout-engine/painters/dom/src/images/image-block.d.ts +15 -0
- package/dist/layout-engine/painters/dom/src/images/image-clip-path.d.ts +17 -0
- package/dist/layout-engine/painters/dom/src/images/image-fragment.d.ts +34 -0
- package/dist/layout-engine/painters/dom/src/images/image-selectors.d.ts +9 -0
- package/dist/layout-engine/painters/dom/src/images/types.d.ts +2 -0
- package/dist/layout-engine/painters/dom/src/index.d.ts +125 -0
- package/dist/layout-engine/painters/dom/src/page-content.d.ts +209 -0
- package/dist/layout-engine/painters/dom/src/paragraph/block-version.d.ts +8 -0
- package/dist/layout-engine/painters/dom/src/paragraph/borders/border-layer.d.ts +59 -0
- package/dist/layout-engine/painters/dom/src/paragraph/borders/group-analysis.d.ts +38 -0
- package/dist/layout-engine/painters/dom/src/paragraph/borders/index.d.ts +18 -0
- package/dist/layout-engine/painters/dom/src/paragraph/frame.d.ts +3 -0
- package/dist/layout-engine/painters/dom/src/paragraph/indentation.d.ts +25 -0
- package/dist/layout-engine/painters/dom/src/paragraph/list-marker.d.ts +51 -0
- package/dist/layout-engine/painters/dom/src/paragraph/marker-tracked-change.d.ts +34 -0
- package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphContent.d.ts +87 -0
- package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphFragment.d.ts +33 -0
- package/dist/layout-engine/painters/dom/src/paragraph/styles.d.ts +3 -0
- package/dist/layout-engine/painters/dom/src/paragraph-hash-utils.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/pm-position-validation.d.ts +149 -0
- package/dist/layout-engine/painters/dom/src/renderer.d.ts +681 -0
- package/dist/layout-engine/painters/dom/src/ruler/index.d.ts +41 -0
- package/dist/layout-engine/painters/dom/src/ruler/ruler-core.d.ts +195 -0
- package/dist/layout-engine/painters/dom/src/ruler/ruler-renderer.d.ts +97 -0
- package/dist/layout-engine/painters/dom/src/ruler/ruler-styles.d.ts +31 -0
- package/dist/layout-engine/painters/dom/src/runs/field-annotation-run.d.ts +14 -0
- package/dist/layout-engine/painters/dom/src/runs/font-synthesis.d.ts +1 -0
- package/dist/layout-engine/painters/dom/src/runs/formatting-marks.d.ts +3 -0
- package/dist/layout-engine/painters/dom/src/runs/hash.d.ts +82 -0
- package/dist/layout-engine/painters/dom/src/runs/image-run.d.ts +37 -0
- package/dist/layout-engine/painters/dom/src/runs/index.d.ts +13 -0
- package/dist/layout-engine/painters/dom/src/runs/links.d.ts +58 -0
- package/dist/layout-engine/painters/dom/src/runs/math-run.d.ts +7 -0
- package/dist/layout-engine/painters/dom/src/runs/render-line.d.ts +2 -0
- package/dist/layout-engine/painters/dom/src/runs/render-run.d.ts +12 -0
- package/dist/layout-engine/painters/dom/src/runs/tab-run.d.ts +66 -0
- package/dist/layout-engine/painters/dom/src/runs/text-run.d.ts +35 -0
- package/dist/layout-engine/painters/dom/src/runs/tracked-changes.d.ts +90 -0
- package/dist/layout-engine/painters/dom/src/runs/types.d.ts +67 -0
- package/dist/layout-engine/painters/dom/src/sdt/boundaries.d.ts +16 -0
- package/dist/layout-engine/painters/dom/src/sdt/container.d.ts +32 -0
- package/dist/layout-engine/painters/dom/src/sdt/dataset.d.ts +7 -0
- package/dist/layout-engine/painters/dom/src/sdt/inline.d.ts +9 -0
- package/dist/layout-engine/painters/dom/src/sdt/snapshot.d.ts +29 -0
- package/dist/layout-engine/painters/dom/src/styles.d.ts +71 -0
- package/dist/layout-engine/painters/dom/src/svg-utils.d.ts +101 -0
- package/dist/layout-engine/painters/dom/src/table/border-utils.d.ts +185 -0
- package/dist/layout-engine/painters/dom/src/table/grid-geometry.d.ts +69 -0
- package/dist/layout-engine/painters/dom/src/table/renderTableCell.d.ts +170 -0
- package/dist/layout-engine/painters/dom/src/table/renderTableFragment.d.ts +132 -0
- package/dist/layout-engine/painters/dom/src/table/renderTableRow.d.ts +146 -0
- package/dist/layout-engine/painters/dom/src/test-utils/normalize-line.d.ts +39 -0
- package/dist/layout-engine/painters/dom/src/utils/anchor-helpers.d.ts +3 -0
- package/dist/layout-engine/painters/dom/src/utils/apply-styles.d.ts +1 -0
- package/dist/layout-engine/painters/dom/src/utils/layout-identity.d.ts +9 -0
- package/dist/layout-engine/painters/dom/src/utils/source-anchor.d.ts +2 -0
- package/dist/layout-engine/style-engine/src/bench/resolveSdtMetadata.bench.d.ts +1 -0
- package/dist/layout-engine/style-engine/src/cascade.d.ts +43 -0
- package/dist/layout-engine/style-engine/src/index.d.ts +121 -0
- package/dist/layout-engine/style-engine/src/normalize/colors.d.ts +13 -0
- package/dist/layout-engine/style-engine/src/normalize/index.d.ts +13 -0
- package/dist/layout-engine/style-engine/src/normalize/paragraph-attrs.d.ts +3 -0
- package/dist/layout-engine/style-engine/src/normalize/run-attrs.d.ts +17 -0
- package/dist/layout-engine/style-engine/src/normalize/types.d.ts +36 -0
- package/dist/layout-engine/style-engine/src/normalize/units.d.ts +13 -0
- package/dist/layout-engine/style-engine/src/ooxml/index.d.ts +64 -0
- package/dist/layout-engine/style-engine/src/ooxml/numbering-types.d.ts +126 -0
- package/dist/layout-engine/style-engine/src/ooxml/styles-types.d.ts +363 -0
- package/dist/layout-engine/style-engine/src/ooxml/table-style-selection.d.ts +86 -0
- package/dist/layout-engine/style-engine/src/ooxml/types.d.ts +459 -0
- package/dist/layout-engine/style-engine/src/ooxml/word-style-model/parse-theme.d.ts +33 -0
- package/dist/layout-engine/style-engine/src/ooxml/word-style-model/parse-xml.d.ts +29 -0
- package/dist/public/ui-react.cjs +175 -0
- package/dist/public/ui-react.es.js +159 -0
- package/dist/public/ui.cjs +5 -0
- package/dist/public/ui.es.js +2 -0
- package/dist/shared/common/comments-types.d.ts +102 -0
- package/dist/shared/common/layout-constants.d.ts +7 -0
- package/dist/shared/common/list-marker-utils.d.ts +186 -0
- package/dist/shared/common/list-numbering/index.d.ts +16 -0
- package/dist/shared/font-system/src/activation.d.ts +64 -0
- package/dist/shared/font-system/src/bundled-manifest.d.ts +32 -0
- package/dist/shared/font-system/src/bundled.d.ts +41 -0
- package/dist/shared/font-system/src/document-font-options.d.ts +53 -0
- package/dist/shared/font-system/src/epoch.d.ts +6 -0
- package/dist/shared/font-system/src/font-offerings.d.ts +120 -0
- package/dist/shared/font-system/src/index.d.ts +35 -0
- package/dist/shared/font-system/src/os2.d.ts +30 -0
- package/dist/shared/font-system/src/registry.d.ts +188 -0
- package/dist/shared/font-system/src/report.d.ts +98 -0
- package/dist/shared/font-system/src/resolver.d.ts +215 -0
- package/dist/shared/font-system/src/substitution-evidence.d.ts +103 -0
- package/dist/shared/font-system/src/types.d.ts +128 -0
- package/dist/style.css +3316 -0
- package/dist/style.layered.css +3316 -0
- package/dist/superdoc/src/SuperDoc.vue.d.ts +88 -0
- package/dist/superdoc/src/cdn-entry.d.ts +2 -0
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +62 -0
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +26 -0
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +19 -0
- package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +30 -0
- package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +10 -0
- package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +1 -0
- package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +6 -0
- package/dist/superdoc/src/components/CommentsLayer/comment-schemas.d.ts +18 -0
- package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +9 -0
- package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +21 -0
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +28 -0
- package/dist/superdoc/src/components/CommentsLayer/helpers.d.ts +7 -0
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +2 -0
- package/dist/superdoc/src/components/CommentsLayer/types.d.ts +3 -0
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +8 -0
- package/dist/superdoc/src/components/CommentsLayer/use-conversation.d.ts +22 -0
- package/dist/superdoc/src/components/CommentsLayer/use-floating-comment.d.ts +11 -0
- package/dist/superdoc/src/components/HtmlViewer/HtmlViewer.vue.d.ts +10 -0
- package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +61 -0
- package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +21 -0
- package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +24 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +19 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +17 -0
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +18 -0
- package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +19 -0
- package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +17 -0
- package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +12 -0
- package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +19 -0
- package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +10 -0
- package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +31 -0
- package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +5 -0
- package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +32 -0
- package/dist/superdoc/src/composables/replace-continuation.d.ts +37 -0
- package/dist/superdoc/src/composables/use-ai.d.ts +10 -0
- package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +10 -0
- package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +21 -0
- package/dist/superdoc/src/composables/use-document.d.ts +34 -0
- package/dist/superdoc/src/composables/use-field.d.ts +33 -0
- package/dist/superdoc/src/composables/use-find-replace.d.ts +83 -0
- package/dist/superdoc/src/composables/use-high-contrast-mode.d.ts +4 -0
- package/dist/superdoc/src/composables/use-link-popover.d.ts +221 -0
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +33 -0
- package/dist/superdoc/src/composables/use-selected-text.d.ts +16 -0
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +50 -0
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +24 -0
- package/dist/superdoc/src/core/EventEmitter.d.ts +55 -0
- package/dist/superdoc/src/core/SuperDoc.d.ts +775 -0
- package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +4 -0
- package/dist/superdoc/src/core/collaboration/collaboration.d.ts +28 -0
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +8 -0
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +19 -0
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +99 -0
- package/dist/superdoc/src/core/collaboration/room-overwrite.d.ts +22 -0
- package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +57 -0
- package/dist/superdoc/src/core/config/merge-defined.d.ts +35 -0
- package/dist/superdoc/src/core/config/normalize-interaction-config.d.ts +15 -0
- package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +23 -0
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +62 -0
- package/dist/superdoc/src/core/create-app.d.ts +32 -0
- package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +9 -0
- package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +117 -0
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -0
- package/dist/superdoc/src/core/editor-runtime/root-marker.d.ts +33 -0
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +405 -0
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +185 -0
- package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +47 -0
- package/dist/superdoc/src/core/extensions/define.d.ts +56 -0
- package/dist/superdoc/src/core/extensions/index.d.ts +2 -0
- package/dist/superdoc/src/core/extensions/types.d.ts +519 -0
- package/dist/superdoc/src/core/helpers/export.d.ts +2 -0
- package/dist/superdoc/src/core/helpers/file.d.ts +43 -0
- package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +60 -0
- package/dist/superdoc/src/core/helpers/normalize-user.d.ts +13 -0
- package/dist/superdoc/src/core/index.d.ts +1 -0
- package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -0
- package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -0
- package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -0
- package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -0
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +66 -0
- package/dist/superdoc/src/core/surface-manager.d.ts +90 -0
- package/dist/superdoc/src/core/theme/create-theme.d.ts +82 -0
- package/dist/superdoc/src/core/types/index.d.ts +3006 -0
- package/dist/superdoc/src/core/v2-integration/browser-peer-runtime.d.ts +3 -0
- package/dist/superdoc/src/core/v2-integration/cdn-engine-loader.d.ts +16 -0
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +97 -0
- package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +247 -0
- package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +251 -0
- package/dist/superdoc/src/core/whiteboard/WhiteboardRenderer.d.ts +2 -0
- package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +1 -0
- package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -0
- package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -0
- package/dist/superdoc/src/helpers/collect-touched-tracked-change-ids.d.ts +11 -0
- package/dist/superdoc/src/helpers/comment-focus.d.ts +4 -0
- package/dist/superdoc/src/helpers/comment-small-screen.d.ts +14 -0
- package/dist/superdoc/src/helpers/deprecation.d.ts +26 -0
- package/dist/superdoc/src/helpers/floor.d.ts +1 -0
- package/dist/superdoc/src/helpers/group-changes.d.ts +1 -0
- package/dist/superdoc/src/helpers/interaction-trace.d.ts +26 -0
- package/dist/superdoc/src/helpers/selection-source.d.ts +1 -0
- package/dist/superdoc/src/helpers/transaction-touches-structural-change.d.ts +19 -0
- package/dist/superdoc/src/helpers/use-selection.d.ts +17 -0
- package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +22 -0
- package/dist/superdoc/src/helpers/v2-remote-review-hydration.d.ts +12 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +15 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +19 -0
- package/dist/superdoc/src/helpers/v2-review-target.d.ts +7 -0
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +12 -0
- package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +5 -0
- package/dist/superdoc/src/icons.d.ts +11 -0
- package/dist/superdoc/src/index.d.cts +13 -0
- package/dist/superdoc/src/index.d.ts +11 -0
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +21 -0
- package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +6 -0
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +10 -0
- package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +10 -0
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +10 -0
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +10 -0
- package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +14 -0
- package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +13 -0
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +37 -0
- package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +12 -0
- package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +10 -0
- package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +34 -0
- package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +14 -0
- package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +8 -0
- package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +6 -0
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +4 -0
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +24 -0
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +11 -0
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +18 -0
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +38 -0
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +8 -0
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +24 -0
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +102 -0
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +17 -0
- package/dist/superdoc/src/internal/toolbar/built-in/font-options.d.ts +1 -0
- package/dist/superdoc/src/internal/toolbar/built-in/font-typeahead.d.ts +11 -0
- package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +5 -0
- package/dist/superdoc/src/internal/toolbar/built-in/general.d.ts +1 -0
- package/dist/superdoc/src/internal/toolbar/built-in/helpers.d.ts +5 -0
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +10 -0
- package/dist/superdoc/src/internal/toolbar/built-in/scroll-helpers.d.ts +4 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +1 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +76 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +58 -0
- package/dist/superdoc/src/internal/toolbar/built-in/url-safety.d.ts +8 -0
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +48 -0
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +237 -0
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +59 -0
- package/dist/superdoc/src/internal/toolbar/image-upload.d.ts +63 -0
- package/dist/superdoc/src/internal/toolbar/index.d.ts +10 -0
- package/dist/superdoc/src/main.d.ts +1 -0
- package/dist/superdoc/src/public/browser-document-api.d.ts +53 -0
- package/dist/superdoc/src/public/collaboration-upgrade-engine.d.cts +26 -0
- package/dist/superdoc/src/public/collaboration-upgrade-engine.d.ts +130 -0
- package/dist/superdoc/src/public/index.d.cts +359 -0
- package/dist/superdoc/src/public/index.d.ts +179 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +249 -0
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +18 -0
- package/dist/superdoc/src/public/ui/entity-at.d.ts +29 -0
- package/dist/superdoc/src/public/ui/equality.d.ts +10 -0
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +36 -0
- package/dist/superdoc/src/public/ui/react.d.ts +81 -0
- package/dist/superdoc/src/public/ui/reasons.d.ts +99 -0
- package/dist/superdoc/src/public/ui/types.d.ts +1425 -0
- package/dist/superdoc/src/public/ui-react.d.cts +20 -0
- package/dist/superdoc/src/public/ui-react.d.ts +20 -0
- package/dist/superdoc/src/public/ui.d.cts +194 -0
- package/dist/superdoc/src/public/ui.d.ts +29 -0
- package/dist/superdoc/src/stores/comments-store.d.ts +676 -0
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +14 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +14 -0
- package/dist/superdoc/src/stores/hrbr-fields-store.d.ts +43 -0
- package/dist/superdoc/src/stores/superdoc-store.d.ts +2182 -0
- package/dist/superdoc.cjs +36521 -0
- package/dist/superdoc.es.js +36449 -0
- package/dist/word-layout/src/index.d.ts +64 -0
- package/dist/word-layout/src/list-marker.d.ts +68 -0
- package/dist/word-layout/src/marker-utils.d.ts +20 -0
- package/dist/word-layout/src/numbering-manager.d.ts +85 -0
- package/dist/word-layout/src/tab-layout.d.ts +193 -0
- package/dist/word-layout/src/types.d.ts +106 -0
- package/dist/word-layout/src/unit-conversions.d.ts +120 -0
- package/dist-cdn/style.layered.css +2 -0
- package/dist-cdn/superdoc.min.css +2 -0
- package/dist-cdn/superdoc.min.js +108 -0
- package/package.json +137 -24
- package/.npmignore +0 -4
- package/data.json +0 -17
- package/index.js +0 -2
- package/lib/Augmenter.js +0 -27
- package/lib/Runner.js +0 -80
- package/lib/Stopper.js +0 -71
- package/test/superdoc.js +0 -126
- package/utils/app.js +0 -18
- package/utils/server.js +0 -2
- package/web/index.js +0 -54
- package/web/public/style.css +0 -76
- package/web/views/index.ejs +0 -53
- package/web/views/layout.ejs +0 -13
- package/web/views/method.ejs +0 -59
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export function readSuperDocV2BrowserRuntime(globalObject?: typeof globalThis): any;
|
|
2
|
+
export function installSuperDocV2BrowserRuntime(runtime?: {}, globalObject?: typeof globalThis): any;
|
|
3
|
+
export const SUPERDOC_V2_BROWSER_RUNTIME_GLOBAL_KEY: "__SUPERDOC_V2_BROWSER_RUNTIME__";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {typeof globalThis} globalObject
|
|
3
|
+
* @param {string} engineVersion
|
|
4
|
+
* @param {string | null} buildOverride
|
|
5
|
+
*/
|
|
6
|
+
export function resolveDocxEngineCdnBaseUrl(globalObject: typeof globalThis, engineVersion: string, buildOverride?: string | null): any;
|
|
7
|
+
/** @param {{ engineVersion: string, buildBaseUrl: string | null }} options */
|
|
8
|
+
export function configureCdnEngineLoader({ engineVersion, buildBaseUrl }: {
|
|
9
|
+
engineVersion: string;
|
|
10
|
+
buildBaseUrl: string | null;
|
|
11
|
+
}): void;
|
|
12
|
+
/**
|
|
13
|
+
* @param {string} url
|
|
14
|
+
* @returns {Promise<void>}
|
|
15
|
+
*/
|
|
16
|
+
export function loadStylesheetOnce(url: string): Promise<void>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replace the package loader before engine loading starts. The CDN entry uses
|
|
3
|
+
* this seam to fetch the exact engine version from its public package URL.
|
|
4
|
+
*
|
|
5
|
+
* @param {() => Promise<unknown>} loader
|
|
6
|
+
*/
|
|
7
|
+
export function configureDefaultV2IntegrationLoader(loader: () => Promise<unknown>): void;
|
|
8
|
+
/** Load the engine before Vue evaluates the synchronous integration seam. */
|
|
9
|
+
export function loadDefaultV2Integration(): Promise<void>;
|
|
10
|
+
/** Load the engine for editor startup, preserving the fail-closed stub on failure. */
|
|
11
|
+
export function loadDefaultV2IntegrationOrFallback(): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* @param {unknown} item
|
|
14
|
+
* @returns {boolean}
|
|
15
|
+
*/
|
|
16
|
+
export function isSyntheticTrackedChangeCommentLaneItem(item: unknown): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @param {{ trackedChange?: unknown, trackedChangeAnchorKey?: unknown } | null | undefined} row
|
|
19
|
+
* @returns {boolean}
|
|
20
|
+
*/
|
|
21
|
+
export function isV2SyntheticTrackedChangeRow(row: {
|
|
22
|
+
trackedChange?: unknown;
|
|
23
|
+
trackedChangeAnchorKey?: unknown;
|
|
24
|
+
} | null | undefined): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @returns {SuperDocV2Integration}
|
|
27
|
+
*/
|
|
28
|
+
export function createStubV2Integration(): SuperDocV2Integration;
|
|
29
|
+
/**
|
|
30
|
+
* Build the default v2 integration the runtime always uses. The v2
|
|
31
|
+
* browser shell is the only source of the editor runtime; no customer-provided
|
|
32
|
+
* integration is consulted. Falls back to the local stub only if the engine
|
|
33
|
+
* shell throws during construction (defensive, never selects v1).
|
|
34
|
+
*
|
|
35
|
+
* @returns {SuperDocV2Integration}
|
|
36
|
+
*/
|
|
37
|
+
export function createDefaultV2Integration(): SuperDocV2Integration;
|
|
38
|
+
/**
|
|
39
|
+
* Backwards-compatible alias. The v2 branch no longer reads any customer
|
|
40
|
+
* config; the parameter is ignored and retained only so existing call sites do
|
|
41
|
+
* not need to change in lockstep with this internalization.
|
|
42
|
+
*
|
|
43
|
+
* @returns {SuperDocV2Integration}
|
|
44
|
+
*/
|
|
45
|
+
export function resolveV2Integration(): SuperDocV2Integration;
|
|
46
|
+
/**
|
|
47
|
+
* @param {SuperDocV2Integration | null | undefined} integration
|
|
48
|
+
* @returns {boolean}
|
|
49
|
+
*/
|
|
50
|
+
export function hasRealV2Integration(integration: SuperDocV2Integration | null | undefined): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* @typedef {Object} SuperDocV2Integration
|
|
53
|
+
* @property {number} version Integration contract version.
|
|
54
|
+
* @property {unknown} [capabilities] Optional capability snapshot/hints.
|
|
55
|
+
* @property {unknown} EditorComponent Vue component that boots the V2 DOCX editor.
|
|
56
|
+
* @property {unknown} [RulerComponent] Optional Vue component for the V2 ruler.
|
|
57
|
+
* @property {(...args: unknown[]) => unknown} [createGeometryPublisher] Factory for the V2 geometry publisher.
|
|
58
|
+
* @property {(...args: unknown[]) => unknown} [createReviewHydrationController] Factory for the V2 review-row hydration controller.
|
|
59
|
+
* @property {(value: unknown) => boolean} [isSyntheticTrackedChangeCommentLaneItem] Predicate for synthetic tracked-change comment-lane items.
|
|
60
|
+
* @property {(value: unknown) => boolean} [isV2SyntheticTrackedChangeRow] Predicate for synthesized V2 tracked-change rows.
|
|
61
|
+
*/
|
|
62
|
+
/** Default version for the local stub integration (V1-compatible). */
|
|
63
|
+
export const SUPERDOC_V2_INTEGRATION_VERSION: 1;
|
|
64
|
+
export type SuperDocV2Integration = {
|
|
65
|
+
/**
|
|
66
|
+
* Integration contract version.
|
|
67
|
+
*/
|
|
68
|
+
version: number;
|
|
69
|
+
/**
|
|
70
|
+
* Optional capability snapshot/hints.
|
|
71
|
+
*/
|
|
72
|
+
capabilities?: unknown;
|
|
73
|
+
/**
|
|
74
|
+
* Vue component that boots the V2 DOCX editor.
|
|
75
|
+
*/
|
|
76
|
+
EditorComponent: unknown;
|
|
77
|
+
/**
|
|
78
|
+
* Optional Vue component for the V2 ruler.
|
|
79
|
+
*/
|
|
80
|
+
RulerComponent?: unknown;
|
|
81
|
+
/**
|
|
82
|
+
* Factory for the V2 geometry publisher.
|
|
83
|
+
*/
|
|
84
|
+
createGeometryPublisher?: ((...args: unknown[]) => unknown) | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Factory for the V2 review-row hydration controller.
|
|
87
|
+
*/
|
|
88
|
+
createReviewHydrationController?: ((...args: unknown[]) => unknown) | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Predicate for synthetic tracked-change comment-lane items.
|
|
91
|
+
*/
|
|
92
|
+
isSyntheticTrackedChangeCommentLaneItem?: ((value: unknown) => boolean) | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Predicate for synthesized V2 tracked-change rows.
|
|
95
|
+
*/
|
|
96
|
+
isV2SyntheticTrackedChangeRow?: ((value: unknown) => boolean) | undefined;
|
|
97
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { EventEmitter } from '../EventEmitter.js';
|
|
2
|
+
import { WhiteboardPage } from './WhiteboardPage.js';
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {{ width: number, height: number, originalWidth?: number, originalHeight?: number }} WhiteboardPageSize
|
|
5
|
+
*
|
|
6
|
+
* The page-level serialized shape is the normalized one (matches what
|
|
7
|
+
* `WhiteboardPage.toJSON()` actually returns). SD-3213 follow-up:
|
|
8
|
+
* the previous `any[]` typing meant consumers reading
|
|
9
|
+
* `whiteboard.getWhiteboardData().pages[0].strokes` had no
|
|
10
|
+
* IntelliSense — and a wrong assumption that fields like `.points`
|
|
11
|
+
* or `.x` would be present (runtime gives `pointsN` / `xN`).
|
|
12
|
+
*
|
|
13
|
+
* @typedef {import('./WhiteboardPage.js').WhiteboardStoredPageData} WhiteboardPageData
|
|
14
|
+
*
|
|
15
|
+
* Per-page size snapshot recorded in `WhiteboardDataMeta.pageSizes`.
|
|
16
|
+
* `originalWidth` / `originalHeight` are `number | null` because
|
|
17
|
+
* `getWhiteboardData()` writes `page.originalSize?.width ?? null` when
|
|
18
|
+
* the original size is unknown.
|
|
19
|
+
*
|
|
20
|
+
* @typedef {{ width: number, height: number, originalWidth: number | null, originalHeight: number | null }} WhiteboardPageSizeSnapshot
|
|
21
|
+
*
|
|
22
|
+
* @typedef {{ pageSizes: Record<string, WhiteboardPageSizeSnapshot> }} WhiteboardDataMeta
|
|
23
|
+
*
|
|
24
|
+
* `WhiteboardData` is the **output** shape: what `getWhiteboardData()`
|
|
25
|
+
* returns and what the `change` event payload carries. All three
|
|
26
|
+
* fields are required because the runtime always populates them.
|
|
27
|
+
* Consumers reading the change payload can write
|
|
28
|
+
* `data.meta.pageSizes` without optional chaining.
|
|
29
|
+
*
|
|
30
|
+
* @typedef {{ pages: Record<string, WhiteboardPageData>, meta: WhiteboardDataMeta, version: 1 }} WhiteboardData
|
|
31
|
+
*
|
|
32
|
+
* `WhiteboardDataInput` is the **input** shape accepted by
|
|
33
|
+
* `setWhiteboardData(json)`. All fields are optional because the
|
|
34
|
+
* runtime only reads `json?.pages`; callers can pass
|
|
35
|
+
* `{ pages: {...} }` without supplying `meta` or `version`. A round
|
|
36
|
+
* trip works (`setWhiteboardData(getWhiteboardData())`) because
|
|
37
|
+
* `WhiteboardData` is structurally assignable to `WhiteboardDataInput`.
|
|
38
|
+
*
|
|
39
|
+
* @typedef {{ pages?: Record<string, WhiteboardPageData>, meta?: WhiteboardDataMeta, version?: number }} WhiteboardDataInput
|
|
40
|
+
*
|
|
41
|
+
* Registry items the host can attach for UI palettes (stickers,
|
|
42
|
+
* comments, etc.). The shape is intentionally extensible: `id` is the
|
|
43
|
+
* one field the runtime actually relies on (filter, dedup); everything
|
|
44
|
+
* else is consumer-typed via `unknown` so palettes for new domains
|
|
45
|
+
* don't need a contract change.
|
|
46
|
+
*
|
|
47
|
+
* @typedef {{ id?: string | number, [key: string]: unknown }} WhiteboardRegistryItem
|
|
48
|
+
*
|
|
49
|
+
* Event map for `whiteboard.on(name, fn)` / `whiteboard.emit(name, ...)`.
|
|
50
|
+
* Closed map (no DefaultEventMap fallback) because every event the
|
|
51
|
+
* runtime emits is enumerated here; an unknown event name should be a
|
|
52
|
+
* type error, not an `unknown[]` payload. SD-3213 follow-up to the
|
|
53
|
+
* EventEmitter `unknown[]` drain: that change only fixed the
|
|
54
|
+
* untyped-event fallback; without this map, listeners on Whiteboard
|
|
55
|
+
* still received `unknown[]` because no event was named.
|
|
56
|
+
*
|
|
57
|
+
* @typedef {{
|
|
58
|
+
* tool: [string],
|
|
59
|
+
* enabled: [boolean],
|
|
60
|
+
* opacity: [number],
|
|
61
|
+
* setData: [WhiteboardPage[]],
|
|
62
|
+
* change: [WhiteboardData],
|
|
63
|
+
* }} WhiteboardEventMap
|
|
64
|
+
*
|
|
65
|
+
* @typedef {{
|
|
66
|
+
* Renderer?: any,
|
|
67
|
+
* superdoc?: any,
|
|
68
|
+
* enabled?: boolean,
|
|
69
|
+
* onChange?: (data: WhiteboardData) => void,
|
|
70
|
+
* onSetData?: (pages: WhiteboardPage[]) => void,
|
|
71
|
+
* onEnabledChange?: (enabled: boolean) => void,
|
|
72
|
+
* }} WhiteboardInit
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Whiteboard manager for multi-page annotations.
|
|
76
|
+
*
|
|
77
|
+
* @extends {EventEmitter<WhiteboardEventMap>}
|
|
78
|
+
*/
|
|
79
|
+
export class Whiteboard extends EventEmitter<WhiteboardEventMap> {
|
|
80
|
+
/**
|
|
81
|
+
* Initialize the whiteboard instance.
|
|
82
|
+
* @param {WhiteboardInit} [props]
|
|
83
|
+
*/
|
|
84
|
+
constructor(props?: WhiteboardInit);
|
|
85
|
+
/**
|
|
86
|
+
* Register items for a UI palette type (e.g. stickers, comments).
|
|
87
|
+
* @param {string} type
|
|
88
|
+
* @param {WhiteboardRegistryItem[]} items
|
|
89
|
+
*/
|
|
90
|
+
register(type: string, items: WhiteboardRegistryItem[]): void;
|
|
91
|
+
/**
|
|
92
|
+
* Get registered items by type.
|
|
93
|
+
* @param {string} type
|
|
94
|
+
* @returns {WhiteboardRegistryItem[] | undefined}
|
|
95
|
+
*/
|
|
96
|
+
getType(type: string): WhiteboardRegistryItem[] | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Set current tool for all pages.
|
|
99
|
+
* @param {string} tool
|
|
100
|
+
*/
|
|
101
|
+
setTool(tool: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Get current tool.
|
|
104
|
+
* @returns {string}
|
|
105
|
+
*/
|
|
106
|
+
getTool(): string;
|
|
107
|
+
/**
|
|
108
|
+
* Enable/disable interactivity for all pages.
|
|
109
|
+
* @param {boolean} enabled
|
|
110
|
+
*/
|
|
111
|
+
setEnabled(enabled: boolean): void;
|
|
112
|
+
/**
|
|
113
|
+
* @returns {boolean}
|
|
114
|
+
*/
|
|
115
|
+
isEnabled(): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Set overlay opacity.
|
|
118
|
+
* @param {number} opacity
|
|
119
|
+
*/
|
|
120
|
+
setOpacity(opacity: number): void;
|
|
121
|
+
/**
|
|
122
|
+
* @returns {number}
|
|
123
|
+
*/
|
|
124
|
+
getOpacity(): number;
|
|
125
|
+
/**
|
|
126
|
+
* Return all page instances.
|
|
127
|
+
* @returns {WhiteboardPage[]}
|
|
128
|
+
*/
|
|
129
|
+
getPages(): WhiteboardPage[];
|
|
130
|
+
/**
|
|
131
|
+
* Re-render all pages.
|
|
132
|
+
*/
|
|
133
|
+
rerender(): void;
|
|
134
|
+
/**
|
|
135
|
+
* Set size for a page (creates page if missing).
|
|
136
|
+
* @param {number} pageIndex
|
|
137
|
+
* @param {WhiteboardPageSize} size
|
|
138
|
+
*/
|
|
139
|
+
setPageSize(pageIndex: number, size: WhiteboardPageSize): void;
|
|
140
|
+
/**
|
|
141
|
+
* Get a page by index.
|
|
142
|
+
* @param {number} pageIndex
|
|
143
|
+
* @returns {WhiteboardPage}
|
|
144
|
+
*/
|
|
145
|
+
getPage(pageIndex: number): WhiteboardPage;
|
|
146
|
+
/**
|
|
147
|
+
* Serialize whiteboard data.
|
|
148
|
+
* @returns {WhiteboardData}
|
|
149
|
+
*/
|
|
150
|
+
getWhiteboardData(): WhiteboardData;
|
|
151
|
+
/**
|
|
152
|
+
* Load whiteboard data from JSON.
|
|
153
|
+
* @param {WhiteboardDataInput} json
|
|
154
|
+
*/
|
|
155
|
+
setWhiteboardData(json: WhiteboardDataInput): void;
|
|
156
|
+
#private;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The page-level serialized shape is the normalized one (matches what
|
|
160
|
+
* `WhiteboardPage.toJSON()` actually returns). SD-3213 follow-up:
|
|
161
|
+
* the previous `any[]` typing meant consumers reading
|
|
162
|
+
* `whiteboard.getWhiteboardData().pages[0].strokes` had no
|
|
163
|
+
* IntelliSense — and a wrong assumption that fields like `.points`
|
|
164
|
+
* or `.x` would be present (runtime gives `pointsN` / `xN`).
|
|
165
|
+
*/
|
|
166
|
+
export type WhiteboardPageSize = {
|
|
167
|
+
width: number;
|
|
168
|
+
height: number;
|
|
169
|
+
originalWidth?: number;
|
|
170
|
+
originalHeight?: number;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Per-page size snapshot recorded in `WhiteboardDataMeta.pageSizes`.
|
|
174
|
+
* `originalWidth` / `originalHeight` are `number | null` because
|
|
175
|
+
* `getWhiteboardData()` writes `page.originalSize?.width ?? null` when
|
|
176
|
+
* the original size is unknown.
|
|
177
|
+
*/
|
|
178
|
+
export type WhiteboardPageData = import('./WhiteboardPage.js').WhiteboardStoredPageData;
|
|
179
|
+
export type WhiteboardPageSizeSnapshot = {
|
|
180
|
+
width: number;
|
|
181
|
+
height: number;
|
|
182
|
+
originalWidth: number | null;
|
|
183
|
+
originalHeight: number | null;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* `WhiteboardData` is the **output** shape: what `getWhiteboardData()`
|
|
187
|
+
* returns and what the `change` event payload carries. All three
|
|
188
|
+
* fields are required because the runtime always populates them.
|
|
189
|
+
* Consumers reading the change payload can write
|
|
190
|
+
* `data.meta.pageSizes` without optional chaining.
|
|
191
|
+
*/
|
|
192
|
+
export type WhiteboardDataMeta = {
|
|
193
|
+
pageSizes: Record<string, WhiteboardPageSizeSnapshot>;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* `WhiteboardDataInput` is the **input** shape accepted by
|
|
197
|
+
* `setWhiteboardData(json)`. All fields are optional because the
|
|
198
|
+
* runtime only reads `json?.pages`; callers can pass
|
|
199
|
+
* `{ pages: {...} }` without supplying `meta` or `version`. A round
|
|
200
|
+
* trip works (`setWhiteboardData(getWhiteboardData())`) because
|
|
201
|
+
* `WhiteboardData` is structurally assignable to `WhiteboardDataInput`.
|
|
202
|
+
*/
|
|
203
|
+
export type WhiteboardData = {
|
|
204
|
+
pages: Record<string, WhiteboardPageData>;
|
|
205
|
+
meta: WhiteboardDataMeta;
|
|
206
|
+
version: 1;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Registry items the host can attach for UI palettes (stickers,
|
|
210
|
+
* comments, etc.). The shape is intentionally extensible: `id` is the
|
|
211
|
+
* one field the runtime actually relies on (filter, dedup); everything
|
|
212
|
+
* else is consumer-typed via `unknown` so palettes for new domains
|
|
213
|
+
* don't need a contract change.
|
|
214
|
+
*/
|
|
215
|
+
export type WhiteboardDataInput = {
|
|
216
|
+
pages?: Record<string, WhiteboardPageData>;
|
|
217
|
+
meta?: WhiteboardDataMeta;
|
|
218
|
+
version?: number;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Event map for `whiteboard.on(name, fn)` / `whiteboard.emit(name, ...)`.
|
|
222
|
+
* Closed map (no DefaultEventMap fallback) because every event the
|
|
223
|
+
* runtime emits is enumerated here; an unknown event name should be a
|
|
224
|
+
* type error, not an `unknown[]` payload. SD-3213 follow-up to the
|
|
225
|
+
* EventEmitter `unknown[]` drain: that change only fixed the
|
|
226
|
+
* untyped-event fallback; without this map, listeners on Whiteboard
|
|
227
|
+
* still received `unknown[]` because no event was named.
|
|
228
|
+
*/
|
|
229
|
+
export type WhiteboardRegistryItem = {
|
|
230
|
+
id?: string | number;
|
|
231
|
+
[key: string]: unknown;
|
|
232
|
+
};
|
|
233
|
+
export type WhiteboardEventMap = {
|
|
234
|
+
tool: [string];
|
|
235
|
+
enabled: [boolean];
|
|
236
|
+
opacity: [number];
|
|
237
|
+
setData: [WhiteboardPage[]];
|
|
238
|
+
change: [WhiteboardData];
|
|
239
|
+
};
|
|
240
|
+
export type WhiteboardInit = {
|
|
241
|
+
Renderer?: any;
|
|
242
|
+
superdoc?: any;
|
|
243
|
+
enabled?: boolean;
|
|
244
|
+
onChange?: (data: WhiteboardData) => void;
|
|
245
|
+
onSetData?: (pages: WhiteboardPage[]) => void;
|
|
246
|
+
onEnabledChange?: (enabled: boolean) => void;
|
|
247
|
+
};
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {{ width: number, height: number, originalWidth?: number, originalHeight?: number }} WhiteboardPageSize
|
|
3
|
+
* @typedef {{ x: number, y: number }} Point
|
|
4
|
+
*
|
|
5
|
+
* Authored input shapes — what `addStroke`/`addText`/`addImage` accept
|
|
6
|
+
* from a consumer (pixel-space coordinates, optional ids). The
|
|
7
|
+
* add* methods normalize these into the stored shapes below.
|
|
8
|
+
*
|
|
9
|
+
* @typedef {{ points: number[][], color?: string, width?: number, type?: 'draw'|'erase' }} WhiteboardStroke
|
|
10
|
+
* @typedef {{ id?: string|number, x: number, y: number, content: string, fontSize?: number, width?: number }} WhiteboardTextItem
|
|
11
|
+
* @typedef {{ id?: string|number, stickerId?: string, x: number, y: number, src: string, width?: number, height?: number, type?: string }} WhiteboardImageItem
|
|
12
|
+
*
|
|
13
|
+
* Stored / normalized shapes — what the page actually holds in
|
|
14
|
+
* `this.strokes` / `this.text` / `this.images` and what gets
|
|
15
|
+
* serialized via `toJSON()` and re-applied via `applyData()`. Fields
|
|
16
|
+
* suffixed with `N` (pointsN, xN, yN, widthN, heightN, fontSizeN) are
|
|
17
|
+
* normalized to the page's 0..1 coordinate space; raw `width`/`height`
|
|
18
|
+
* pairs are kept where consumers expect pixel sizes.
|
|
19
|
+
*
|
|
20
|
+
* SD-3213 follow-up: the public types were previously `any[]` for the
|
|
21
|
+
* fields and the toJSON / applyData signatures; consumers reading
|
|
22
|
+
* `page.strokes[0].points` would have hit pointsN at runtime with no
|
|
23
|
+
* IntelliSense. The named shapes below restore typing without
|
|
24
|
+
* over-committing the authored shapes (which the add* methods
|
|
25
|
+
* normalize away).
|
|
26
|
+
*
|
|
27
|
+
* @typedef {{ pointsN: number[][], widthN?: number, color?: string, type?: 'draw'|'erase' }} WhiteboardStoredStroke
|
|
28
|
+
* @typedef {{ id: string|number, xN: number, yN: number, content: string, fontSizeN?: number, widthN?: number | null }} WhiteboardStoredTextItem
|
|
29
|
+
* @typedef {{ id: string|number, stickerId?: string | number | null, xN: number, yN: number, src: string, widthN?: number | null, heightN?: number | null, type?: string }} WhiteboardStoredImageItem
|
|
30
|
+
*
|
|
31
|
+
* @typedef {{
|
|
32
|
+
* strokes?: WhiteboardStoredStroke[],
|
|
33
|
+
* text?: WhiteboardStoredTextItem[],
|
|
34
|
+
* images?: WhiteboardStoredImageItem[],
|
|
35
|
+
* }} WhiteboardStoredPageData
|
|
36
|
+
*
|
|
37
|
+
* @typedef {{
|
|
38
|
+
* pageIndex: number,
|
|
39
|
+
* enabled: boolean,
|
|
40
|
+
* Renderer: any,
|
|
41
|
+
* onChange?: () => void,
|
|
42
|
+
* onToolChange?: (tool: string) => void,
|
|
43
|
+
* }} WhiteboardPageInit
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Per-page whiteboard renderer/controller.
|
|
47
|
+
*/
|
|
48
|
+
export class WhiteboardPage {
|
|
49
|
+
/**
|
|
50
|
+
* Create a page controller.
|
|
51
|
+
* @param {WhiteboardPageInit} props
|
|
52
|
+
*/
|
|
53
|
+
constructor(props: WhiteboardPageInit);
|
|
54
|
+
/** @type {number|null} */
|
|
55
|
+
pageIndex: number | null;
|
|
56
|
+
/** @type {WhiteboardStoredStroke[]} */
|
|
57
|
+
strokes: WhiteboardStoredStroke[];
|
|
58
|
+
/** @type {WhiteboardStoredTextItem[]} */
|
|
59
|
+
text: WhiteboardStoredTextItem[];
|
|
60
|
+
/** @type {WhiteboardStoredImageItem[]} */
|
|
61
|
+
images: WhiteboardStoredImageItem[];
|
|
62
|
+
/** @type {WhiteboardPageSize|null} */
|
|
63
|
+
size: WhiteboardPageSize | null;
|
|
64
|
+
/** @type {{ width: number|null, height: number|null }|null} */
|
|
65
|
+
originalSize: {
|
|
66
|
+
width: number | null;
|
|
67
|
+
height: number | null;
|
|
68
|
+
} | null;
|
|
69
|
+
/**
|
|
70
|
+
* Set tool for this page.
|
|
71
|
+
* @param {string} tool
|
|
72
|
+
*/
|
|
73
|
+
setTool(tool: string): void;
|
|
74
|
+
/**
|
|
75
|
+
* Get current tool for this page.
|
|
76
|
+
* @returns {string}
|
|
77
|
+
*/
|
|
78
|
+
getTool(): string;
|
|
79
|
+
/**
|
|
80
|
+
* Enable/disable interactivity for this page.
|
|
81
|
+
* @param {boolean} enabled
|
|
82
|
+
*/
|
|
83
|
+
setEnabled(enabled: boolean): void;
|
|
84
|
+
/**
|
|
85
|
+
* @returns {boolean}
|
|
86
|
+
*/
|
|
87
|
+
isEnabled(): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Store page size (does not resize canvas).
|
|
90
|
+
* @param {WhiteboardPageSize} size
|
|
91
|
+
*/
|
|
92
|
+
setSize(size: WhiteboardPageSize): void;
|
|
93
|
+
/**
|
|
94
|
+
* Resize the Konva stage.
|
|
95
|
+
* @param {number} width
|
|
96
|
+
* @param {number} height
|
|
97
|
+
*/
|
|
98
|
+
resize(width: number, height: number): void;
|
|
99
|
+
/**
|
|
100
|
+
* Mount Konva stage into a container.
|
|
101
|
+
* @param {HTMLElement} container
|
|
102
|
+
*/
|
|
103
|
+
mount(container: HTMLElement): void;
|
|
104
|
+
/**
|
|
105
|
+
* Re-render all content for this page.
|
|
106
|
+
*/
|
|
107
|
+
render(): void;
|
|
108
|
+
/**
|
|
109
|
+
* Render stroke paths.
|
|
110
|
+
*/
|
|
111
|
+
renderStrokes(): void;
|
|
112
|
+
/**
|
|
113
|
+
* Render text nodes.
|
|
114
|
+
*/
|
|
115
|
+
renderText(): void;
|
|
116
|
+
/**
|
|
117
|
+
* Render image/sticker nodes.
|
|
118
|
+
* NOTE: Images are reconciled by id to avoid re-creating nodes (prevents flicker).
|
|
119
|
+
* If src changes for an existing id, this path does not reload the image.
|
|
120
|
+
*/
|
|
121
|
+
renderImages(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Destroy Konva stage and clean up listeners.
|
|
124
|
+
*/
|
|
125
|
+
destroy(): void;
|
|
126
|
+
/**
|
|
127
|
+
* Serialize page data.
|
|
128
|
+
* Returns the page's serializable shape. SD-3213 follow-up: fixed
|
|
129
|
+
* stale JSDoc that said `stickers` (which never existed on the
|
|
130
|
+
* runtime return) and typed the values as the stored normalized
|
|
131
|
+
* shapes instead of `any[]`.
|
|
132
|
+
*
|
|
133
|
+
* @returns {{ strokes: WhiteboardStoredStroke[], text: WhiteboardStoredTextItem[], images: WhiteboardStoredImageItem[] }}
|
|
134
|
+
*/
|
|
135
|
+
toJSON(): {
|
|
136
|
+
strokes: WhiteboardStoredStroke[];
|
|
137
|
+
text: WhiteboardStoredTextItem[];
|
|
138
|
+
images: WhiteboardStoredImageItem[];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Apply data to this page and re-render.
|
|
142
|
+
* @param {WhiteboardStoredPageData} data
|
|
143
|
+
*/
|
|
144
|
+
applyData(data?: WhiteboardStoredPageData): void;
|
|
145
|
+
/**
|
|
146
|
+
* Add a stroke to the model.
|
|
147
|
+
* @param {WhiteboardStroke} stroke
|
|
148
|
+
*/
|
|
149
|
+
addStroke(stroke: WhiteboardStroke): void;
|
|
150
|
+
/**
|
|
151
|
+
* Add a text item to the model.
|
|
152
|
+
* @param {WhiteboardTextItem} item
|
|
153
|
+
*/
|
|
154
|
+
addText(item: WhiteboardTextItem): void;
|
|
155
|
+
/**
|
|
156
|
+
* Add an image/sticker to the model.
|
|
157
|
+
* @param {WhiteboardImageItem} item
|
|
158
|
+
*/
|
|
159
|
+
addImage(item: WhiteboardImageItem): void;
|
|
160
|
+
#private;
|
|
161
|
+
}
|
|
162
|
+
export type WhiteboardPageSize = {
|
|
163
|
+
width: number;
|
|
164
|
+
height: number;
|
|
165
|
+
originalWidth?: number;
|
|
166
|
+
originalHeight?: number;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Authored input shapes — what `addStroke`/`addText`/`addImage` accept
|
|
170
|
+
* from a consumer (pixel-space coordinates, optional ids). The
|
|
171
|
+
* add* methods normalize these into the stored shapes below.
|
|
172
|
+
*/
|
|
173
|
+
export type Point = {
|
|
174
|
+
x: number;
|
|
175
|
+
y: number;
|
|
176
|
+
};
|
|
177
|
+
export type WhiteboardStroke = {
|
|
178
|
+
points: number[][];
|
|
179
|
+
color?: string;
|
|
180
|
+
width?: number;
|
|
181
|
+
type?: "draw" | "erase";
|
|
182
|
+
};
|
|
183
|
+
export type WhiteboardTextItem = {
|
|
184
|
+
id?: string | number;
|
|
185
|
+
x: number;
|
|
186
|
+
y: number;
|
|
187
|
+
content: string;
|
|
188
|
+
fontSize?: number;
|
|
189
|
+
width?: number;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Stored / normalized shapes — what the page actually holds in
|
|
193
|
+
* `this.strokes` / `this.text` / `this.images` and what gets
|
|
194
|
+
* serialized via `toJSON()` and re-applied via `applyData()`. Fields
|
|
195
|
+
* suffixed with `N` (pointsN, xN, yN, widthN, heightN, fontSizeN) are
|
|
196
|
+
* normalized to the page's 0..1 coordinate space; raw `width`/`height`
|
|
197
|
+
* pairs are kept where consumers expect pixel sizes.
|
|
198
|
+
*
|
|
199
|
+
* SD-3213 follow-up: the public types were previously `any[]` for the
|
|
200
|
+
* fields and the toJSON / applyData signatures; consumers reading
|
|
201
|
+
* `page.strokes[0].points` would have hit pointsN at runtime with no
|
|
202
|
+
* IntelliSense. The named shapes below restore typing without
|
|
203
|
+
* over-committing the authored shapes (which the add* methods
|
|
204
|
+
* normalize away).
|
|
205
|
+
*/
|
|
206
|
+
export type WhiteboardImageItem = {
|
|
207
|
+
id?: string | number;
|
|
208
|
+
stickerId?: string;
|
|
209
|
+
x: number;
|
|
210
|
+
y: number;
|
|
211
|
+
src: string;
|
|
212
|
+
width?: number;
|
|
213
|
+
height?: number;
|
|
214
|
+
type?: string;
|
|
215
|
+
};
|
|
216
|
+
export type WhiteboardStoredStroke = {
|
|
217
|
+
pointsN: number[][];
|
|
218
|
+
widthN?: number;
|
|
219
|
+
color?: string;
|
|
220
|
+
type?: "draw" | "erase";
|
|
221
|
+
};
|
|
222
|
+
export type WhiteboardStoredTextItem = {
|
|
223
|
+
id: string | number;
|
|
224
|
+
xN: number;
|
|
225
|
+
yN: number;
|
|
226
|
+
content: string;
|
|
227
|
+
fontSizeN?: number;
|
|
228
|
+
widthN?: number | null;
|
|
229
|
+
};
|
|
230
|
+
export type WhiteboardStoredImageItem = {
|
|
231
|
+
id: string | number;
|
|
232
|
+
stickerId?: string | number | null;
|
|
233
|
+
xN: number;
|
|
234
|
+
yN: number;
|
|
235
|
+
src: string;
|
|
236
|
+
widthN?: number | null;
|
|
237
|
+
heightN?: number | null;
|
|
238
|
+
type?: string;
|
|
239
|
+
};
|
|
240
|
+
export type WhiteboardStoredPageData = {
|
|
241
|
+
strokes?: WhiteboardStoredStroke[];
|
|
242
|
+
text?: WhiteboardStoredTextItem[];
|
|
243
|
+
images?: WhiteboardStoredImageItem[];
|
|
244
|
+
};
|
|
245
|
+
export type WhiteboardPageInit = {
|
|
246
|
+
pageIndex: number;
|
|
247
|
+
enabled: boolean;
|
|
248
|
+
Renderer: any;
|
|
249
|
+
onChange?: () => void;
|
|
250
|
+
onToolChange?: (tool: string) => void;
|
|
251
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function createTextarea(options?: {}): HTMLTextAreaElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function flattenPoints(points: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getRandomId(prefix?: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collect tracked-change mark IDs from ranges touched by an editor transaction.
|
|
3
|
+
*
|
|
4
|
+
* @param {import('../core/types/index.js').EditorTransactionLike} transaction
|
|
5
|
+
* @param {object} [options]
|
|
6
|
+
* @param {object|null} [options.trackChangesPluginKey] - The TrackChangesBasePluginKey to read metadata from
|
|
7
|
+
* @returns {Set<string>} Set of tracked-change mark IDs
|
|
8
|
+
*/
|
|
9
|
+
export function collectTouchedTrackedChangeIds(transaction: import('../core/types/index.js').EditorTransactionLike, { trackChangesPluginKey }?: {
|
|
10
|
+
trackChangesPluginKey?: object | null | undefined;
|
|
11
|
+
}): Set<string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function getPreferredCommentFocusTargetClientY(): number;
|
|
2
|
+
export function getVisibleThreadAnchorClientY(layersElement: any, positionEntry: any): any;
|
|
3
|
+
export function getVisibleThreadHighlightClientY(threadIds: any): any;
|
|
4
|
+
export function scrollThreadAnchorToFocusTarget(presentation: any, primaryThreadId: any, fallbackThreadId: any, targetClientY: any): any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalize adaptive comments UI policy fields.
|
|
3
|
+
*
|
|
4
|
+
* @param {false | Record<string, unknown> | undefined} commentsConfig
|
|
5
|
+
* @returns {false | Record<string, unknown> | undefined}
|
|
6
|
+
*/
|
|
7
|
+
export function normalizeCommentsUiPolicy(commentsConfig: false | Record<string, unknown> | undefined): false | Record<string, unknown> | undefined;
|
|
8
|
+
export const COMPACT_ANCHOR_SELECTOR: "[data-track-change-id], .superdoc-comment-highlight, .sd-comment-anchor";
|
|
9
|
+
export const DEFAULT_COMMENTS_SIDEBAR_LANE_PX: 320;
|
|
10
|
+
export const DEFAULT_COMMENTS_MIN_GUTTER_PX: 24;
|
|
11
|
+
export const DEFAULT_DOCUMENT_VISIBLE_MIN_WIDTH_PX: 816;
|
|
12
|
+
export const RIGHT_CLICK_COMMENT_SUPPRESS_MS: 250;
|
|
13
|
+
export const DEFAULT_COMMENTS_DISPLAY_MODE: "sidebar";
|
|
14
|
+
export const VALID_COMMENTS_DISPLAY_MODES: Set<string>;
|