superdoc 2.2.0 → 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 -74
- package/web/views/index.ejs +0 -53
- package/web/views/layout.ejs +0 -13
- package/web/views/method.ejs +0 -59
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MutationOptions } from '../write/write.js';
|
|
2
|
+
import { TocGetInput, TocInfo, TocConfigureInput, TocUpdateInput, TocRemoveInput, TocMutationResult, TocListQuery, TocListResult, TocMarkEntryInput, TocUnmarkEntryInput, TocListEntriesQuery, TocListEntriesResult, TocGetEntryInput, TocEntryInfo, TocEditEntryInput, TocEntryMutationResult } from './toc.types.js';
|
|
3
|
+
export interface TocApi {
|
|
4
|
+
list(query?: TocListQuery): TocListResult;
|
|
5
|
+
get(input: TocGetInput): TocInfo;
|
|
6
|
+
configure(input: TocConfigureInput, options?: MutationOptions): TocMutationResult;
|
|
7
|
+
update(input: TocUpdateInput, options?: MutationOptions): TocMutationResult;
|
|
8
|
+
remove(input: TocRemoveInput, options?: MutationOptions): TocMutationResult;
|
|
9
|
+
markEntry(input: TocMarkEntryInput, options?: MutationOptions): TocEntryMutationResult;
|
|
10
|
+
unmarkEntry(input: TocUnmarkEntryInput, options?: MutationOptions): TocEntryMutationResult;
|
|
11
|
+
listEntries(query?: TocListEntriesQuery): TocListEntriesResult;
|
|
12
|
+
getEntry(input: TocGetEntryInput): TocEntryInfo;
|
|
13
|
+
editEntry(input: TocEditEntryInput, options?: MutationOptions): TocEntryMutationResult;
|
|
14
|
+
}
|
|
15
|
+
export type TocAdapter = TocApi;
|
|
16
|
+
export declare function executeTocList(adapter: TocAdapter, query?: TocListQuery): TocListResult;
|
|
17
|
+
export declare function executeTocGet(adapter: TocAdapter, input: TocGetInput): TocInfo;
|
|
18
|
+
export declare function executeTocConfigure(adapter: TocAdapter, input: TocConfigureInput, options?: MutationOptions): TocMutationResult;
|
|
19
|
+
export declare function executeTocUpdate(adapter: TocAdapter, input: TocUpdateInput, options?: MutationOptions): TocMutationResult;
|
|
20
|
+
export declare function executeTocRemove(adapter: TocAdapter, input: TocRemoveInput, options?: MutationOptions): TocMutationResult;
|
|
21
|
+
export declare function executeTocMarkEntry(adapter: TocAdapter, input: TocMarkEntryInput, options?: MutationOptions): TocEntryMutationResult;
|
|
22
|
+
export declare function executeTocUnmarkEntry(adapter: TocAdapter, input: TocUnmarkEntryInput, options?: MutationOptions): TocEntryMutationResult;
|
|
23
|
+
export declare function executeTocListEntries(adapter: TocAdapter, query?: TocListEntriesQuery): TocListEntriesResult;
|
|
24
|
+
export declare function executeTocGetEntry(adapter: TocAdapter, input: TocGetEntryInput): TocEntryInfo;
|
|
25
|
+
export declare function executeTocEditEntry(adapter: TocAdapter, input: TocEditEntryInput, options?: MutationOptions): TocEntryMutationResult;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { BaseNodeInfo, BlockNodeAddress } from '../types/base.js';
|
|
2
|
+
import { DiscoveryOutput } from '../types/discovery.js';
|
|
3
|
+
import { ReceiptFailure } from '../types/receipt.js';
|
|
4
|
+
export interface TocAddress {
|
|
5
|
+
kind: 'block';
|
|
6
|
+
nodeType: 'tableOfContents';
|
|
7
|
+
nodeId: string;
|
|
8
|
+
}
|
|
9
|
+
/** Configurable source switches. */
|
|
10
|
+
export interface TocSourceConfig {
|
|
11
|
+
/** Outline heading level range from \o switch. */
|
|
12
|
+
outlineLevels?: {
|
|
13
|
+
from: number;
|
|
14
|
+
to: number;
|
|
15
|
+
};
|
|
16
|
+
/** Whether to use applied paragraph outline level (\u switch). */
|
|
17
|
+
useAppliedOutlineLevel?: boolean;
|
|
18
|
+
/** TC field identifier filter (\f switch). Only TC fields with this identifier are collected. */
|
|
19
|
+
tcFieldIdentifier?: string;
|
|
20
|
+
/** TC field level range filter (\l switch). Only TC fields within this range are collected. */
|
|
21
|
+
tcFieldLevels?: {
|
|
22
|
+
from: number;
|
|
23
|
+
to: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Configurable display switches. */
|
|
27
|
+
export interface TocDisplayConfig {
|
|
28
|
+
/** Make TOC entries hyperlinks (\h switch). */
|
|
29
|
+
hyperlinks?: boolean;
|
|
30
|
+
/** Hide tab leader and page numbers in web layout view (\z switch). */
|
|
31
|
+
hideInWebView?: boolean;
|
|
32
|
+
/** Omit page numbers for specified levels (\n switch). */
|
|
33
|
+
omitPageNumberLevels?: {
|
|
34
|
+
from: number;
|
|
35
|
+
to: number;
|
|
36
|
+
};
|
|
37
|
+
/** Separator character between entry text and page number (\p switch). */
|
|
38
|
+
separator?: string;
|
|
39
|
+
/** Whether page numbers are included. Convenience projection of the \n switch. */
|
|
40
|
+
includePageNumbers?: boolean;
|
|
41
|
+
/** Tab leader style between entry text and page number. */
|
|
42
|
+
tabLeader?: 'none' | 'dot' | 'hyphen' | 'underscore' | 'middleDot';
|
|
43
|
+
/** Whether TOC entry page numbers use right-aligned tab stops. Stored as a PM node attribute (not a field switch). */
|
|
44
|
+
rightAlignPageNumbers?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/** Round-tripped but not configurable via toc.configure. */
|
|
47
|
+
export interface TocPreservedSwitches {
|
|
48
|
+
/** Custom styles from \t switch. */
|
|
49
|
+
customStyles?: Array<{
|
|
50
|
+
styleName: string;
|
|
51
|
+
level: number;
|
|
52
|
+
}>;
|
|
53
|
+
/** Bookmark name from \b switch. */
|
|
54
|
+
bookmarkName?: string;
|
|
55
|
+
/** Caption type from \a switch. */
|
|
56
|
+
captionType?: string;
|
|
57
|
+
/** SEQ field identifier from \c switch. */
|
|
58
|
+
seqFieldIdentifier?: string;
|
|
59
|
+
/** Separator for SEQ/chapter numbers from \d switch. */
|
|
60
|
+
chapterSeparator?: string;
|
|
61
|
+
/** Chapter number source from \s switch. */
|
|
62
|
+
chapterNumberSource?: string;
|
|
63
|
+
/** Preserve tab entries from \w switch. */
|
|
64
|
+
preserveTabEntries?: boolean;
|
|
65
|
+
/** Completely unrecognized switches stored verbatim. */
|
|
66
|
+
rawExtensions?: string[];
|
|
67
|
+
}
|
|
68
|
+
/** Full parsed switch model used internally by the parser/serializer. */
|
|
69
|
+
export interface TocSwitchConfig {
|
|
70
|
+
source: TocSourceConfig;
|
|
71
|
+
display: TocDisplayConfig;
|
|
72
|
+
preserved: TocPreservedSwitches;
|
|
73
|
+
}
|
|
74
|
+
/** Patch for toc.configure: only configurable fields, all optional. */
|
|
75
|
+
export type TocConfigurePatch = TocSourceConfig & TocDisplayConfig;
|
|
76
|
+
export interface TableOfContentsProperties {
|
|
77
|
+
instruction: string;
|
|
78
|
+
sourceConfig: TocSourceConfig;
|
|
79
|
+
displayConfig: TocDisplayConfig;
|
|
80
|
+
preservedSwitches: TocPreservedSwitches;
|
|
81
|
+
entryCount: number;
|
|
82
|
+
}
|
|
83
|
+
export interface TableOfContentsNodeInfo extends BaseNodeInfo {
|
|
84
|
+
nodeType: 'tableOfContents';
|
|
85
|
+
kind: 'block';
|
|
86
|
+
properties: TableOfContentsProperties;
|
|
87
|
+
}
|
|
88
|
+
export interface TocDomain {
|
|
89
|
+
address: TocAddress;
|
|
90
|
+
instruction: string;
|
|
91
|
+
sourceConfig: TocSourceConfig;
|
|
92
|
+
displayConfig: TocDisplayConfig;
|
|
93
|
+
preserved: TocPreservedSwitches;
|
|
94
|
+
entryCount: number;
|
|
95
|
+
}
|
|
96
|
+
export type TocListQuery = {
|
|
97
|
+
limit?: number;
|
|
98
|
+
offset?: number;
|
|
99
|
+
};
|
|
100
|
+
export type TocListResult = DiscoveryOutput<TocDomain>;
|
|
101
|
+
export interface TocGetInput {
|
|
102
|
+
target: TocAddress;
|
|
103
|
+
}
|
|
104
|
+
export type TocInfo = TableOfContentsNodeInfo;
|
|
105
|
+
export interface TocConfigureInput {
|
|
106
|
+
target: TocAddress;
|
|
107
|
+
patch: TocConfigurePatch;
|
|
108
|
+
}
|
|
109
|
+
export interface TocUpdateInput {
|
|
110
|
+
target: TocAddress;
|
|
111
|
+
/** Update mode. 'all' rebuilds from sources; 'pageNumbers' updates only page numbers. */
|
|
112
|
+
mode?: 'all' | 'pageNumbers';
|
|
113
|
+
}
|
|
114
|
+
export interface TocRemoveInput {
|
|
115
|
+
target: TocAddress;
|
|
116
|
+
}
|
|
117
|
+
export interface TocMutationSuccess {
|
|
118
|
+
success: true;
|
|
119
|
+
toc: TocAddress;
|
|
120
|
+
}
|
|
121
|
+
export interface TocMutationFailure {
|
|
122
|
+
success: false;
|
|
123
|
+
failure: ReceiptFailure;
|
|
124
|
+
}
|
|
125
|
+
export type TocMutationResult = TocMutationSuccess | TocMutationFailure;
|
|
126
|
+
export type TocCreateLocation = {
|
|
127
|
+
kind: 'documentStart';
|
|
128
|
+
} | {
|
|
129
|
+
kind: 'documentEnd';
|
|
130
|
+
} | {
|
|
131
|
+
kind: 'before';
|
|
132
|
+
target: BlockNodeAddress;
|
|
133
|
+
} | {
|
|
134
|
+
kind: 'after';
|
|
135
|
+
target: BlockNodeAddress;
|
|
136
|
+
};
|
|
137
|
+
export interface CreateTableOfContentsInput {
|
|
138
|
+
at?: TocCreateLocation;
|
|
139
|
+
/**
|
|
140
|
+
* Optional raw TOC field instruction to preserve non-default switch shapes
|
|
141
|
+
* such as custom-style mappings (`\\t`) or omitted default switches.
|
|
142
|
+
* When provided, the adapter parses this instruction as the base TOC config
|
|
143
|
+
* before applying any config patch overrides.
|
|
144
|
+
*/
|
|
145
|
+
instruction?: string;
|
|
146
|
+
config?: TocConfigurePatch;
|
|
147
|
+
}
|
|
148
|
+
export interface CreateTableOfContentsSuccess {
|
|
149
|
+
success: true;
|
|
150
|
+
toc: TocAddress;
|
|
151
|
+
}
|
|
152
|
+
export interface CreateTableOfContentsFailure {
|
|
153
|
+
success: false;
|
|
154
|
+
failure: ReceiptFailure;
|
|
155
|
+
}
|
|
156
|
+
export type CreateTableOfContentsResult = CreateTableOfContentsSuccess | CreateTableOfContentsFailure;
|
|
157
|
+
/** Address for a single TC field node in the document. */
|
|
158
|
+
export interface TocEntryAddress {
|
|
159
|
+
kind: 'inline';
|
|
160
|
+
nodeType: 'tableOfContentsEntry';
|
|
161
|
+
/** Public ID (FNV-1a hash of instruction + position, revision-scoped). */
|
|
162
|
+
nodeId: string;
|
|
163
|
+
}
|
|
164
|
+
/** Insertion target for toc.markEntry: anchored to a paragraph. */
|
|
165
|
+
export interface TocEntryInsertionTarget {
|
|
166
|
+
kind: 'inline-insert';
|
|
167
|
+
/** Insert TC field adjacent to a block-addressed paragraph. */
|
|
168
|
+
anchor: {
|
|
169
|
+
nodeType: 'paragraph';
|
|
170
|
+
/** Target paragraph's sdBlockId. */
|
|
171
|
+
nodeId: string;
|
|
172
|
+
};
|
|
173
|
+
/** Where within the paragraph to insert. Default: 'end'. */
|
|
174
|
+
position?: 'start' | 'end';
|
|
175
|
+
}
|
|
176
|
+
export interface TocMarkEntryInput {
|
|
177
|
+
target: TocEntryInsertionTarget;
|
|
178
|
+
/** Entry text: required (v1: explicit text only). */
|
|
179
|
+
text: string;
|
|
180
|
+
/** TC \l switch level. Default: 1. */
|
|
181
|
+
level?: number;
|
|
182
|
+
/** TC \f switch table identifier. */
|
|
183
|
+
tableIdentifier?: string;
|
|
184
|
+
/** TC \n switch: omit page number for this entry. Default: false. */
|
|
185
|
+
omitPageNumber?: boolean;
|
|
186
|
+
}
|
|
187
|
+
export interface TocUnmarkEntryInput {
|
|
188
|
+
target: TocEntryAddress;
|
|
189
|
+
}
|
|
190
|
+
export interface TocListEntriesQuery {
|
|
191
|
+
/** Filter by TC \f value. */
|
|
192
|
+
tableIdentifier?: string;
|
|
193
|
+
/** Filter by level range. */
|
|
194
|
+
levelRange?: {
|
|
195
|
+
from: number;
|
|
196
|
+
to: number;
|
|
197
|
+
};
|
|
198
|
+
limit?: number;
|
|
199
|
+
offset?: number;
|
|
200
|
+
}
|
|
201
|
+
export interface TocGetEntryInput {
|
|
202
|
+
target: TocEntryAddress;
|
|
203
|
+
}
|
|
204
|
+
export interface TocEditEntryInput {
|
|
205
|
+
target: TocEntryAddress;
|
|
206
|
+
patch: {
|
|
207
|
+
text?: string;
|
|
208
|
+
level?: number;
|
|
209
|
+
tableIdentifier?: string;
|
|
210
|
+
omitPageNumber?: boolean;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
export interface TocEntryProperties {
|
|
214
|
+
/** Raw TC instruction string. */
|
|
215
|
+
instruction: string;
|
|
216
|
+
/** Entry display text. */
|
|
217
|
+
text: string;
|
|
218
|
+
/** TOC level (from \l switch, default 1). */
|
|
219
|
+
level: number;
|
|
220
|
+
/** Table identifier from \f switch, if present. */
|
|
221
|
+
tableIdentifier?: string;
|
|
222
|
+
/** Whether page number is omitted (\n switch). */
|
|
223
|
+
omitPageNumber: boolean;
|
|
224
|
+
}
|
|
225
|
+
export interface TocEntryInfo {
|
|
226
|
+
nodeType: 'tableOfContentsEntry';
|
|
227
|
+
kind: 'inline';
|
|
228
|
+
properties: TocEntryProperties;
|
|
229
|
+
}
|
|
230
|
+
export interface TocEntryDomain {
|
|
231
|
+
address: TocEntryAddress;
|
|
232
|
+
instruction: string;
|
|
233
|
+
text: string;
|
|
234
|
+
level: number;
|
|
235
|
+
tableIdentifier?: string;
|
|
236
|
+
omitPageNumber: boolean;
|
|
237
|
+
}
|
|
238
|
+
export type TocListEntriesResult = DiscoveryOutput<TocEntryDomain>;
|
|
239
|
+
export interface TocEntryMutationSuccess {
|
|
240
|
+
success: true;
|
|
241
|
+
entry: TocEntryAddress;
|
|
242
|
+
}
|
|
243
|
+
export interface TocEntryMutationFailure {
|
|
244
|
+
success: false;
|
|
245
|
+
failure: ReceiptFailure;
|
|
246
|
+
}
|
|
247
|
+
export type TocEntryMutationResult = TocEntryMutationSuccess | TocEntryMutationFailure;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { Receipt, TrackChangeInfo, TrackChangesListQuery, TrackChangesListResult } from '../types/index.js';
|
|
2
|
+
import { StoryLocator } from '../types/story.types.js';
|
|
3
|
+
import { TextCoordinateSpace, TextTarget } from '../types/address.js';
|
|
4
|
+
import { RevisionGuardOptions } from '../write/write.js';
|
|
5
|
+
export type TrackChangesListInput = TrackChangesListQuery;
|
|
6
|
+
export interface TrackChangesGetInput {
|
|
7
|
+
id: string;
|
|
8
|
+
/** Story containing the tracked change. Omit for body (backward compatible). */
|
|
9
|
+
story?: StoryLocator;
|
|
10
|
+
}
|
|
11
|
+
export interface TrackChangesAcceptInput {
|
|
12
|
+
id: string;
|
|
13
|
+
/** Story containing the tracked change. Omit for body (backward compatible). */
|
|
14
|
+
story?: StoryLocator;
|
|
15
|
+
}
|
|
16
|
+
export interface TrackChangesRejectInput {
|
|
17
|
+
id: string;
|
|
18
|
+
/** Story containing the tracked change. Omit for body (backward compatible). */
|
|
19
|
+
story?: StoryLocator;
|
|
20
|
+
}
|
|
21
|
+
export interface TrackChangesAcceptAllInput {
|
|
22
|
+
story?: StoryLocator | 'all';
|
|
23
|
+
}
|
|
24
|
+
export interface TrackChangesRejectAllInput {
|
|
25
|
+
story?: StoryLocator | 'all';
|
|
26
|
+
}
|
|
27
|
+
export interface TrackChangesRangeInput {
|
|
28
|
+
range: TextTarget;
|
|
29
|
+
story?: StoryLocator;
|
|
30
|
+
/** Coordinate space of the TextTarget offsets. Omitted preserves legacy tracked-space behavior. */
|
|
31
|
+
coordinateSpace?: TextCoordinateSpace;
|
|
32
|
+
}
|
|
33
|
+
export type ReviewDecideTargetSide = 'insert' | 'inserted' | 'delete' | 'deleted' | 'source' | 'destination';
|
|
34
|
+
export type ReviewDecideIdTargetSide = 'insert' | 'inserted' | 'delete' | 'deleted';
|
|
35
|
+
/**
|
|
36
|
+
* Tracked-move pairing assertion for a decide target. Callers that resolved an
|
|
37
|
+
* ambiguous shape (e.g. surface guesses a paragraph delete+insert might be a
|
|
38
|
+
* move) can ask the decide adapter to verify the projection before applying
|
|
39
|
+
* the decision. `'pair'` asserts the resolved entry must be a paired move;
|
|
40
|
+
* `'source'` / `'destination'` further narrow to a specific half. When the
|
|
41
|
+
* assertion does not hold the adapter fails closed with an explicit failure
|
|
42
|
+
* code instead of silently treating the target as a non-move decision.
|
|
43
|
+
*/
|
|
44
|
+
export type ReviewDecideTargetMoveRole = 'pair' | 'source' | 'destination';
|
|
45
|
+
export interface ReviewDecideRangeTargetOptions {
|
|
46
|
+
/**
|
|
47
|
+
* Optional logical overlap selector for callers that already resolved an
|
|
48
|
+
* ambiguous overlap surface. The adapter owns interpretation.
|
|
49
|
+
*/
|
|
50
|
+
overlap?: string;
|
|
51
|
+
/** Optional revision side for paired replacement or move targets. */
|
|
52
|
+
side?: ReviewDecideTargetSide;
|
|
53
|
+
/** Optional story containing the range. */
|
|
54
|
+
story?: StoryLocator;
|
|
55
|
+
/** Compatibility alias used by older range callers; interpretation is adapter-owned. */
|
|
56
|
+
part?: string;
|
|
57
|
+
}
|
|
58
|
+
export type ReviewDecideTextRangeTarget = ReviewDecideRangeTargetOptions & {
|
|
59
|
+
kind: 'range';
|
|
60
|
+
range: TextTarget;
|
|
61
|
+
/** Coordinate space of `range`. Omitted preserves legacy tracked-space behavior. */
|
|
62
|
+
coordinateSpace?: TextCoordinateSpace;
|
|
63
|
+
};
|
|
64
|
+
export type ReviewDecideLogicalRangeTarget = ReviewDecideRangeTargetOptions & {
|
|
65
|
+
kind: 'range';
|
|
66
|
+
range: {
|
|
67
|
+
anchor: string;
|
|
68
|
+
relativeStart: number;
|
|
69
|
+
relativeEnd: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
/** Semantic target for {@link ReviewDecideInput}. */
|
|
73
|
+
export type ReviewDecideTarget = {
|
|
74
|
+
kind: 'id';
|
|
75
|
+
id: string;
|
|
76
|
+
story?: StoryLocator;
|
|
77
|
+
side?: ReviewDecideIdTargetSide;
|
|
78
|
+
moveRole?: ReviewDecideTargetMoveRole;
|
|
79
|
+
} | {
|
|
80
|
+
/** Resolve several whole logical changes in one atomic history unit. */
|
|
81
|
+
kind: 'ids';
|
|
82
|
+
ids: string[];
|
|
83
|
+
} | ReviewDecideTextRangeTarget | ReviewDecideLogicalRangeTarget | {
|
|
84
|
+
kind: 'all';
|
|
85
|
+
story?: StoryLocator | 'all';
|
|
86
|
+
};
|
|
87
|
+
/** Legacy compatibility shapes accepted by the validator. */
|
|
88
|
+
export type LegacyReviewDecideTarget = {
|
|
89
|
+
id: string;
|
|
90
|
+
story?: StoryLocator;
|
|
91
|
+
moveRole?: ReviewDecideTargetMoveRole;
|
|
92
|
+
} | {
|
|
93
|
+
scope: 'all';
|
|
94
|
+
story?: StoryLocator | 'all';
|
|
95
|
+
};
|
|
96
|
+
export type ReviewDecisionTarget = ReviewDecideTarget | LegacyReviewDecideTarget;
|
|
97
|
+
export interface ReviewDecideInput {
|
|
98
|
+
decision: 'accept' | 'reject';
|
|
99
|
+
target: ReviewDecideTarget | LegacyReviewDecideTarget;
|
|
100
|
+
/**
|
|
101
|
+
* Backward-compatible alias for `options.expectedRevision`. Explicit options
|
|
102
|
+
* take precedence when both are supplied.
|
|
103
|
+
*/
|
|
104
|
+
expectedRevision?: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Internal canonical decide target — the legacy shapes have been promoted to
|
|
108
|
+
* `{ kind: 'id' }` / `{ kind: 'all' }`. Adapters consume this normalized
|
|
109
|
+
* form so the kernel side does not need to re-handle legacy aliases.
|
|
110
|
+
*/
|
|
111
|
+
export interface ReviewDecideRangeInput {
|
|
112
|
+
decision: 'accept' | 'reject';
|
|
113
|
+
target: ReviewDecideTarget;
|
|
114
|
+
}
|
|
115
|
+
export interface TrackChangesAdapter {
|
|
116
|
+
/** List tracked changes matching the given query. */
|
|
117
|
+
list(input?: TrackChangesListInput): TrackChangesListResult;
|
|
118
|
+
/** Retrieve full information for a single tracked change. */
|
|
119
|
+
get(input: TrackChangesGetInput): TrackChangeInfo;
|
|
120
|
+
/**
|
|
121
|
+
* Apply an accept / reject decision against the document. By-id, range,
|
|
122
|
+
* routes by-id, range, and bulk targets through this single entrypoint;
|
|
123
|
+
* legacy `accept` / `reject` / `acceptAll` / `rejectAll` adapter methods
|
|
124
|
+
* remain as compatibility shims until callers migrate.
|
|
125
|
+
*/
|
|
126
|
+
decide?(input: ReviewDecideRangeInput, options?: RevisionGuardOptions): Receipt;
|
|
127
|
+
/** Accept a tracked change, applying it to the document. */
|
|
128
|
+
accept(input: TrackChangesAcceptInput, options?: RevisionGuardOptions): Receipt;
|
|
129
|
+
/** Reject a tracked change, reverting it from the document. */
|
|
130
|
+
reject(input: TrackChangesRejectInput, options?: RevisionGuardOptions): Receipt;
|
|
131
|
+
/** Accept all tracked changes matching the requested bulk filter. */
|
|
132
|
+
acceptAll(input: TrackChangesAcceptAllInput, options?: RevisionGuardOptions): Receipt;
|
|
133
|
+
/** Reject all tracked changes matching the requested bulk filter. */
|
|
134
|
+
rejectAll(input: TrackChangesRejectAllInput, options?: RevisionGuardOptions): Receipt;
|
|
135
|
+
/**
|
|
136
|
+
* Compatibility range entrypoint for adapters that predate the canonical
|
|
137
|
+
* `decide` method but can still resolve TextTarget range decisions.
|
|
138
|
+
*/
|
|
139
|
+
decideRange?(input: {
|
|
140
|
+
decision: 'accept' | 'reject';
|
|
141
|
+
} & TrackChangesRangeInput, options?: RevisionGuardOptions): Receipt;
|
|
142
|
+
}
|
|
143
|
+
/** Public surface for trackChanges on DocumentApi. */
|
|
144
|
+
export interface TrackChangesApi {
|
|
145
|
+
list(input?: TrackChangesListInput): TrackChangesListResult;
|
|
146
|
+
get(input: TrackChangesGetInput): TrackChangeInfo;
|
|
147
|
+
decide(input: ReviewDecideInput, options?: RevisionGuardOptions): Receipt;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Execute wrappers below are the canonical interception point for input
|
|
151
|
+
* normalization and validation before delegating to the adapter.
|
|
152
|
+
*/
|
|
153
|
+
export declare function executeTrackChangesList(adapter: TrackChangesAdapter, input?: TrackChangesListInput): TrackChangesListResult;
|
|
154
|
+
export declare function executeTrackChangesGet(adapter: TrackChangesAdapter, input: TrackChangesGetInput): TrackChangeInfo;
|
|
155
|
+
/**
|
|
156
|
+
* Executes the consolidated `trackChanges.decide` operation by routing to the
|
|
157
|
+
* appropriate adapter method based on the discriminated input.
|
|
158
|
+
*
|
|
159
|
+
* Accepting/rejecting changes is a resolution action, not a content mutation -
|
|
160
|
+
* changeMode and dryRun are not applicable, so this accepts
|
|
161
|
+
* {@link RevisionGuardOptions} rather than `MutationOptions`.
|
|
162
|
+
*
|
|
163
|
+
* Validates the canonical discriminated target shape
|
|
164
|
+
* (`{ kind: 'id' | 'ids' | 'range' | 'all' }`) and transparently promotes the
|
|
165
|
+
* legacy `{ id, story? }` / `{ scope: 'all' }` shapes. Adapters that
|
|
166
|
+
* implement the new {@link TrackChangesAdapter.decide} entrypoint receive
|
|
167
|
+
* the normalized canonical input; older adapters that only expose
|
|
168
|
+
* accept/reject/acceptAll/rejectAll still work for id targets without a side
|
|
169
|
+
* selector and all targets.
|
|
170
|
+
*/
|
|
171
|
+
export declare function executeTrackChangesDecide(adapter: TrackChangesAdapter, rawInput: ReviewDecideInput, options?: RevisionGuardOptions): Receipt;
|
|
172
|
+
/**
|
|
173
|
+
* Validate and normalize a `trackChanges.decide` input into the canonical
|
|
174
|
+
* `{ kind: 'id' | 'ids' | 'range' | 'all' }` target shape. Exposed for adapters /
|
|
175
|
+
* tests that need to share the same validation surface.
|
|
176
|
+
*/
|
|
177
|
+
export declare function validateReviewDecideInput(rawInput: ReviewDecideInput): ReviewDecideRangeInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReceiptFailure } from './receipt.js';
|
|
2
|
+
/**
|
|
3
|
+
* Shared failure shape for optional adapter namespace mutation results.
|
|
4
|
+
* Per-entity success types vary (different property names for entity addresses),
|
|
5
|
+
* but all failure types share this identical shape.
|
|
6
|
+
*/
|
|
7
|
+
export interface AdapterMutationFailure {
|
|
8
|
+
success: false;
|
|
9
|
+
failure: ReceiptFailure;
|
|
10
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { BlockNodeType } from './base.js';
|
|
2
|
+
import { StoryLocator } from './story.types.js';
|
|
3
|
+
import { BookmarkAddress } from '../bookmarks/bookmarks.types.js';
|
|
4
|
+
export type Range = {
|
|
5
|
+
/** Inclusive start offset (0-based, UTF-16 code units). */
|
|
6
|
+
start: number;
|
|
7
|
+
/** Exclusive end offset (0-based, UTF-16 code units). */
|
|
8
|
+
end: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Paragraph-local coordinate space used by text offsets.
|
|
12
|
+
*
|
|
13
|
+
* `visible` is the default and counts rendered document text. `tracked` is
|
|
14
|
+
* additive metadata for ranges that intentionally include deletion-side tracked
|
|
15
|
+
* text such as `<w:delText>`.
|
|
16
|
+
*/
|
|
17
|
+
export type TextCoordinateSpace = 'visible' | 'tracked';
|
|
18
|
+
export type TextAddress = {
|
|
19
|
+
kind: 'text';
|
|
20
|
+
blockId: string;
|
|
21
|
+
range: Range;
|
|
22
|
+
/** Story containing this text. Omit for body (backward compatible). */
|
|
23
|
+
story?: StoryLocator;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A single anchored text segment within one block.
|
|
27
|
+
*
|
|
28
|
+
* Unlike {@link TextAddress} (used for mutation inputs), TextSegment is a
|
|
29
|
+
* lightweight component of a {@link TextTarget}: it carries no `kind`
|
|
30
|
+
* discriminant because the parent TextTarget already provides it.
|
|
31
|
+
*/
|
|
32
|
+
export type TextSegment = {
|
|
33
|
+
blockId: string;
|
|
34
|
+
range: Range;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Multi-segment text target returned by comment read operations.
|
|
38
|
+
*
|
|
39
|
+
* A single comment can span multiple discontinuous text ranges (e.g. when Word
|
|
40
|
+
* applies the same comment ID across separate marked runs or across blocks).
|
|
41
|
+
* TextTarget faithfully represents all anchored segments in document order.
|
|
42
|
+
*
|
|
43
|
+
* Invariants:
|
|
44
|
+
* - `segments` is non-empty (at least one segment).
|
|
45
|
+
* - Segments are sorted in document order.
|
|
46
|
+
* - Segment bounds are valid integers (start >= 0, start <= end).
|
|
47
|
+
*/
|
|
48
|
+
export type TextTarget = {
|
|
49
|
+
kind: 'text';
|
|
50
|
+
segments: [TextSegment, ...TextSegment[]];
|
|
51
|
+
/** Story containing this text target. Omit for body (backward compatible). */
|
|
52
|
+
story?: StoryLocator;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Block node types valid as `nodeEdge` selection anchors.
|
|
56
|
+
*
|
|
57
|
+
* Excludes:
|
|
58
|
+
* - `tableRow`, `tableCell`: row/column semantics out of scope
|
|
59
|
+
* - `listItem`: derived from paragraph attrs, no distinct PM wrapper node
|
|
60
|
+
*/
|
|
61
|
+
export type SelectionEdgeNodeType = Exclude<BlockNodeType, 'tableRow' | 'tableCell' | 'listItem'>;
|
|
62
|
+
export declare const SELECTION_EDGE_NODE_TYPES: readonly ["paragraph", "heading", "table", "tableOfContents", "sdt", "image"];
|
|
63
|
+
/** Block node address valid as a `nodeEdge` selection anchor. */
|
|
64
|
+
export type SelectionEdgeNodeAddress = {
|
|
65
|
+
kind: 'block';
|
|
66
|
+
nodeType: SelectionEdgeNodeType;
|
|
67
|
+
nodeId: string;
|
|
68
|
+
/** Story containing this node. Omit for body (backward compatible). */
|
|
69
|
+
story?: StoryLocator;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* A point within a document selection.
|
|
73
|
+
*
|
|
74
|
+
* - `text`: A character offset within a specific block's flattened text model.
|
|
75
|
+
* - `nodeEdge`: The boundary of a block-level node (before or after).
|
|
76
|
+
*/
|
|
77
|
+
export type SelectionPoint = {
|
|
78
|
+
kind: 'text';
|
|
79
|
+
blockId: string;
|
|
80
|
+
offset: number;
|
|
81
|
+
/** Story containing this point. Omit for body (backward compatible). */ story?: StoryLocator;
|
|
82
|
+
} | {
|
|
83
|
+
kind: 'nodeEdge';
|
|
84
|
+
node: SelectionEdgeNodeAddress;
|
|
85
|
+
edge: 'before' | 'after';
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* A contiguous document selection: the canonical public target for the core
|
|
89
|
+
* selection-mutation family (`delete`, `replace`, `format.apply`, `mutations.apply`).
|
|
90
|
+
*
|
|
91
|
+
* Other range-targeted APIs (comments, hyperlinks) continue to use `TextAddress`.
|
|
92
|
+
*/
|
|
93
|
+
export type SelectionTarget = {
|
|
94
|
+
kind: 'selection';
|
|
95
|
+
start: SelectionPoint;
|
|
96
|
+
end: SelectionPoint;
|
|
97
|
+
/** Story containing this selection. Omit for body (backward compatible). */
|
|
98
|
+
story?: StoryLocator;
|
|
99
|
+
/**
|
|
100
|
+
* Coordinate space for text endpoint offsets. Omitted means `visible`.
|
|
101
|
+
* Present as `tracked` for targets that include deletion-side tracked text,
|
|
102
|
+
* including additive search matches and live review selections.
|
|
103
|
+
*/
|
|
104
|
+
coordinateSpace?: TextCoordinateSpace;
|
|
105
|
+
};
|
|
106
|
+
/** Discriminated input for direct operations: either an explicit target or a ref string. */
|
|
107
|
+
export type TargetLocator = {
|
|
108
|
+
target: SelectionTarget;
|
|
109
|
+
ref?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
ref: string;
|
|
112
|
+
target?: undefined;
|
|
113
|
+
};
|
|
114
|
+
/** Delete behavior mode. */
|
|
115
|
+
export type DeleteBehavior = 'selection' | 'exact';
|
|
116
|
+
export type EntityType = 'comment' | 'trackedChange';
|
|
117
|
+
export type CommentAddress = {
|
|
118
|
+
kind: 'entity';
|
|
119
|
+
entityType: 'comment';
|
|
120
|
+
/**
|
|
121
|
+
* Comment navigation is currently body-scoped only.
|
|
122
|
+
*
|
|
123
|
+
* Unlike bookmark and tracked-change navigation, `navigateTo()` does not yet
|
|
124
|
+
* accept a `story` locator for comments.
|
|
125
|
+
*/
|
|
126
|
+
entityId: string;
|
|
127
|
+
};
|
|
128
|
+
export type TrackedChangeAddress = {
|
|
129
|
+
kind: 'entity';
|
|
130
|
+
entityType: 'trackedChange';
|
|
131
|
+
entityId: string;
|
|
132
|
+
/** Story containing this tracked change. Omit for body (backward compatible). */
|
|
133
|
+
story?: StoryLocator;
|
|
134
|
+
/** Preferred rendered page instance for repeated stories such as headers and footers. */
|
|
135
|
+
pageIndex?: number;
|
|
136
|
+
};
|
|
137
|
+
export type EntityAddress = CommentAddress | TrackedChangeAddress;
|
|
138
|
+
/**
|
|
139
|
+
* Address for navigating to a block-level element by its node ID.
|
|
140
|
+
*
|
|
141
|
+
* The `nodeId` maps to `paraId` (from OOXML) when available, with fallback
|
|
142
|
+
* to `sdBlockId` (session-scoped). Use the value returned by Document API
|
|
143
|
+
* queries (e.g. `query.match`, `find`, `getNode`) as the `nodeId`.
|
|
144
|
+
*
|
|
145
|
+
* When `nodeType` is omitted, the lookup searches across all block types.
|
|
146
|
+
*
|
|
147
|
+
* Block navigation is currently body-scoped only. For non-body stories such
|
|
148
|
+
* as headers, footers, footnotes, and endnotes, `navigateTo()` currently
|
|
149
|
+
* supports story-aware bookmark and tracked-change targets instead.
|
|
150
|
+
*/
|
|
151
|
+
export type BlockNavigationAddress = {
|
|
152
|
+
kind: 'block';
|
|
153
|
+
nodeId: string;
|
|
154
|
+
nodeType?: SelectionEdgeNodeType;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Union of all address types accepted by `navigateTo()`.
|
|
158
|
+
*
|
|
159
|
+
* Supports navigation to:
|
|
160
|
+
* - Blocks by `nodeId` in the body story
|
|
161
|
+
* - Bookmarks by `name`, optionally scoped to a `story`
|
|
162
|
+
* - Comments by `entityId` in the body story
|
|
163
|
+
* - Tracked changes by `entityId`, optionally scoped to a `story`
|
|
164
|
+
*
|
|
165
|
+
* Story-aware navigation is currently supported for bookmarks and tracked
|
|
166
|
+
* changes. Block and comment targets remain body-only until the runtime gains
|
|
167
|
+
* equivalent non-body resolution paths.
|
|
168
|
+
*/
|
|
169
|
+
export type NavigableAddress = BlockNavigationAddress | BookmarkAddress | CommentAddress | TrackedChangeAddress;
|