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,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SDM/1 property models: run, paragraph, table, list, image, drawing props.
|
|
3
|
+
*
|
|
4
|
+
* These define the direct formatting ("authored") property bags carried by
|
|
5
|
+
* style-bearing nodes. Resolved/provenance fields are separate concerns
|
|
6
|
+
* populated at read time by the style-engine.
|
|
7
|
+
*/
|
|
8
|
+
export type SDThemeFontRef = 'majorAscii' | 'majorHAnsi' | 'majorEastAsia' | 'majorBidi' | 'minorAscii' | 'minorHAnsi' | 'minorEastAsia' | 'minorBidi';
|
|
9
|
+
export interface SDRunFonts {
|
|
10
|
+
ascii?: string;
|
|
11
|
+
hAnsi?: string;
|
|
12
|
+
eastAsia?: string;
|
|
13
|
+
cs?: string;
|
|
14
|
+
asciiTheme?: SDThemeFontRef;
|
|
15
|
+
hAnsiTheme?: SDThemeFontRef;
|
|
16
|
+
eastAsiaTheme?: SDThemeFontRef;
|
|
17
|
+
csTheme?: SDThemeFontRef;
|
|
18
|
+
hint?: 'default' | 'eastAsia' | 'cs';
|
|
19
|
+
}
|
|
20
|
+
export interface SDRunLanguages {
|
|
21
|
+
val?: string;
|
|
22
|
+
eastAsia?: string;
|
|
23
|
+
bidi?: string;
|
|
24
|
+
}
|
|
25
|
+
export type SDThemeColorName = 'dk1' | 'dk2' | 'lt1' | 'lt2' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'accent5' | 'accent6' | 'hyperlink' | 'followedHyperlink';
|
|
26
|
+
export type SDColorRef = {
|
|
27
|
+
model: 'rgb';
|
|
28
|
+
value: string;
|
|
29
|
+
} | {
|
|
30
|
+
model: 'theme';
|
|
31
|
+
theme: SDThemeColorName;
|
|
32
|
+
tint?: number;
|
|
33
|
+
shade?: number;
|
|
34
|
+
} | {
|
|
35
|
+
model: 'auto';
|
|
36
|
+
};
|
|
37
|
+
export type SDHighlightColor = 'black' | 'blue' | 'cyan' | 'green' | 'magenta' | 'red' | 'yellow' | 'white' | 'darkBlue' | 'darkCyan' | 'darkGreen' | 'darkMagenta' | 'darkRed' | 'darkYellow' | 'darkGray' | 'lightGray' | 'none';
|
|
38
|
+
export type SDUnderlineStyle = 'none' | 'single' | 'words' | 'double' | 'thick' | 'dotted' | 'dottedHeavy' | 'dash' | 'dashedHeavy' | 'dashLong' | 'dashLongHeavy' | 'dotDash' | 'dashDotHeavy' | 'dotDotDash' | 'dashDotDotHeavy' | 'wave' | 'wavyHeavy' | 'wavyDouble';
|
|
39
|
+
export interface SDUnderline {
|
|
40
|
+
style?: SDUnderlineStyle;
|
|
41
|
+
color?: SDColorRef;
|
|
42
|
+
}
|
|
43
|
+
export interface SDShading {
|
|
44
|
+
pattern?: string;
|
|
45
|
+
fill?: SDColorRef;
|
|
46
|
+
color?: SDColorRef;
|
|
47
|
+
}
|
|
48
|
+
export interface SDRunBorder {
|
|
49
|
+
style?: string;
|
|
50
|
+
width?: number;
|
|
51
|
+
space?: number;
|
|
52
|
+
color?: SDColorRef;
|
|
53
|
+
frame?: boolean;
|
|
54
|
+
shadow?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export type SDTabAlignment = 'left' | 'center' | 'right' | 'decimal' | 'bar' | 'clear' | 'num';
|
|
57
|
+
export type SDTabLeader = 'none' | 'dot' | 'hyphen' | 'underscore' | 'middleDot' | 'heavy' | 'line';
|
|
58
|
+
export interface SDTabStop {
|
|
59
|
+
kind: 'set' | 'clear';
|
|
60
|
+
/** Position in points. */
|
|
61
|
+
position: number;
|
|
62
|
+
alignment?: SDTabAlignment;
|
|
63
|
+
leader?: SDTabLeader;
|
|
64
|
+
}
|
|
65
|
+
export interface SDParagraphBorders {
|
|
66
|
+
top?: SDRunBorder;
|
|
67
|
+
left?: SDRunBorder;
|
|
68
|
+
bottom?: SDRunBorder;
|
|
69
|
+
right?: SDRunBorder;
|
|
70
|
+
between?: SDRunBorder;
|
|
71
|
+
bar?: SDRunBorder;
|
|
72
|
+
}
|
|
73
|
+
export interface SDRunProps {
|
|
74
|
+
fonts?: SDRunFonts;
|
|
75
|
+
/** Convenience alias when one family applies across scripts. */
|
|
76
|
+
fontFamily?: string;
|
|
77
|
+
lang?: SDRunLanguages;
|
|
78
|
+
/** Font size in points. */
|
|
79
|
+
fontSize?: number;
|
|
80
|
+
/** Complex-script font size in points. */
|
|
81
|
+
fontSizeCs?: number;
|
|
82
|
+
color?: SDColorRef;
|
|
83
|
+
highlight?: SDHighlightColor;
|
|
84
|
+
shading?: SDShading;
|
|
85
|
+
cs?: boolean;
|
|
86
|
+
rtl?: boolean;
|
|
87
|
+
bold?: boolean;
|
|
88
|
+
boldCs?: boolean;
|
|
89
|
+
italic?: boolean;
|
|
90
|
+
italicCs?: boolean;
|
|
91
|
+
underline?: SDUnderline;
|
|
92
|
+
strikethrough?: boolean;
|
|
93
|
+
doubleStrikethrough?: boolean;
|
|
94
|
+
caps?: boolean;
|
|
95
|
+
smallCaps?: boolean;
|
|
96
|
+
outline?: boolean;
|
|
97
|
+
shadow?: boolean;
|
|
98
|
+
emboss?: boolean;
|
|
99
|
+
imprint?: boolean;
|
|
100
|
+
verticalAlign?: 'baseline' | 'superscript' | 'subscript';
|
|
101
|
+
/** Character spacing in points. */
|
|
102
|
+
characterSpacing?: number;
|
|
103
|
+
/** Character scale as percentage. */
|
|
104
|
+
characterScale?: number;
|
|
105
|
+
/** Kerning threshold in points. */
|
|
106
|
+
kern?: number;
|
|
107
|
+
/** Baseline shift in points. */
|
|
108
|
+
baselineShift?: number;
|
|
109
|
+
/** Fit-text target width in points. */
|
|
110
|
+
fitTextWidth?: number;
|
|
111
|
+
vanish?: boolean;
|
|
112
|
+
webHidden?: boolean;
|
|
113
|
+
specVanish?: boolean;
|
|
114
|
+
border?: SDRunBorder;
|
|
115
|
+
textEffect?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface SDParagraphProps {
|
|
118
|
+
alignment?: 'left' | 'center' | 'right' | 'justify' | 'start' | 'end' | 'distributed' | 'numTab' | 'lowKashida' | 'mediumKashida' | 'highKashida' | 'thaiDistribute';
|
|
119
|
+
indent?: {
|
|
120
|
+
/** Start indent in points. */
|
|
121
|
+
start?: number;
|
|
122
|
+
/** End indent in points. */
|
|
123
|
+
end?: number;
|
|
124
|
+
/** Left indent in points. */
|
|
125
|
+
left?: number;
|
|
126
|
+
/** Right indent in points. */
|
|
127
|
+
right?: number;
|
|
128
|
+
/** First line indent in points. */
|
|
129
|
+
firstLine?: number;
|
|
130
|
+
/** Hanging indent in points. */
|
|
131
|
+
hanging?: number;
|
|
132
|
+
};
|
|
133
|
+
spacing?: {
|
|
134
|
+
/** Space before in points. */
|
|
135
|
+
before?: number;
|
|
136
|
+
/** Space after in points. */
|
|
137
|
+
after?: number;
|
|
138
|
+
beforeLines?: number;
|
|
139
|
+
afterLines?: number;
|
|
140
|
+
beforeAutoSpacing?: boolean;
|
|
141
|
+
afterAutoSpacing?: boolean;
|
|
142
|
+
/** Line spacing: multiplier when lineRule=auto, otherwise points. */
|
|
143
|
+
line?: number;
|
|
144
|
+
lineRule?: 'auto' | 'multiple' | 'exact' | 'atLeast';
|
|
145
|
+
};
|
|
146
|
+
keepWithNext?: boolean;
|
|
147
|
+
keepLines?: boolean;
|
|
148
|
+
pageBreakBefore?: boolean;
|
|
149
|
+
widowControl?: boolean;
|
|
150
|
+
numbering?: {
|
|
151
|
+
numId?: string;
|
|
152
|
+
/** Numbering level 0..8. */
|
|
153
|
+
level?: number;
|
|
154
|
+
};
|
|
155
|
+
tabs?: SDTabStop[];
|
|
156
|
+
borders?: SDParagraphBorders;
|
|
157
|
+
shading?: SDShading;
|
|
158
|
+
bidi?: boolean;
|
|
159
|
+
textDirection?: 'lrTb' | 'tbRl' | 'btLr' | 'lrTbV' | 'tbLrV';
|
|
160
|
+
mirrorIndents?: boolean;
|
|
161
|
+
adjustRightIndent?: boolean;
|
|
162
|
+
textAlignment?: 'top' | 'center' | 'baseline' | 'bottom' | 'auto';
|
|
163
|
+
eastAsianLineBreak?: {
|
|
164
|
+
kinsoku?: boolean;
|
|
165
|
+
wordWrap?: boolean;
|
|
166
|
+
overflowPunctuation?: boolean;
|
|
167
|
+
topLinePunctuation?: boolean;
|
|
168
|
+
autoSpaceDE?: boolean;
|
|
169
|
+
autoSpaceDN?: boolean;
|
|
170
|
+
snapToGrid?: boolean;
|
|
171
|
+
};
|
|
172
|
+
markRunProps?: SDRunProps;
|
|
173
|
+
outlineLevel?: number;
|
|
174
|
+
}
|
|
175
|
+
export interface SDListProps {
|
|
176
|
+
tight?: boolean;
|
|
177
|
+
}
|
|
178
|
+
export type SDTableWidth = {
|
|
179
|
+
kind: 'auto';
|
|
180
|
+
} | {
|
|
181
|
+
kind: 'points';
|
|
182
|
+
value: number;
|
|
183
|
+
} | {
|
|
184
|
+
kind: 'percent';
|
|
185
|
+
value: number;
|
|
186
|
+
} | {
|
|
187
|
+
kind: 'none';
|
|
188
|
+
};
|
|
189
|
+
export interface SDTableProps {
|
|
190
|
+
width?: SDTableWidth;
|
|
191
|
+
layout?: 'fixed' | 'autofit';
|
|
192
|
+
alignment?: 'left' | 'center' | 'right' | 'inside' | 'outside';
|
|
193
|
+
borders?: {
|
|
194
|
+
top?: string;
|
|
195
|
+
right?: string;
|
|
196
|
+
bottom?: string;
|
|
197
|
+
left?: string;
|
|
198
|
+
insideH?: string;
|
|
199
|
+
insideV?: string;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export interface SDRowProps {
|
|
203
|
+
/** Minimum row height in points. */
|
|
204
|
+
minHeight?: number;
|
|
205
|
+
cantSplit?: boolean;
|
|
206
|
+
}
|
|
207
|
+
export interface SDCellProps {
|
|
208
|
+
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
209
|
+
shading?: SDColorRef;
|
|
210
|
+
/** Cell padding in points. */
|
|
211
|
+
padding?: {
|
|
212
|
+
top?: number;
|
|
213
|
+
right?: number;
|
|
214
|
+
bottom?: number;
|
|
215
|
+
left?: number;
|
|
216
|
+
};
|
|
217
|
+
borders?: {
|
|
218
|
+
top?: string;
|
|
219
|
+
right?: string;
|
|
220
|
+
bottom?: string;
|
|
221
|
+
left?: string;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
export interface SDImageProps {
|
|
225
|
+
alignment?: 'left' | 'center' | 'right';
|
|
226
|
+
/** Opacity 0..1. */
|
|
227
|
+
opacity?: number;
|
|
228
|
+
}
|
|
229
|
+
export interface SDDrawingProps {
|
|
230
|
+
alignment?: 'left' | 'center' | 'right';
|
|
231
|
+
/** Opacity 0..1. */
|
|
232
|
+
opacity?: number;
|
|
233
|
+
}
|
|
234
|
+
export interface SDDocumentMeta {
|
|
235
|
+
title?: string;
|
|
236
|
+
subject?: string;
|
|
237
|
+
author?: string;
|
|
238
|
+
description?: string;
|
|
239
|
+
keywords?: string[];
|
|
240
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { SDContentNode } from './sd-nodes.js';
|
|
2
|
+
import { SDRunProps, SDParagraphProps } from './sd-props.js';
|
|
3
|
+
export interface SDNumberingCatalog {
|
|
4
|
+
definitions?: Record<string, {
|
|
5
|
+
levels: Array<{
|
|
6
|
+
level: number;
|
|
7
|
+
kind: 'ordered' | 'bullet';
|
|
8
|
+
format?: string;
|
|
9
|
+
text?: string;
|
|
10
|
+
start?: number;
|
|
11
|
+
restartAfterLevel?: number | null;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export interface SDSection {
|
|
16
|
+
id: string;
|
|
17
|
+
breakType?: 'continuous' | 'nextPage' | 'evenPage' | 'oddPage';
|
|
18
|
+
pageSetup?: {
|
|
19
|
+
width?: number;
|
|
20
|
+
height?: number;
|
|
21
|
+
orientation?: 'portrait' | 'landscape';
|
|
22
|
+
paperSize?: string;
|
|
23
|
+
};
|
|
24
|
+
margins?: {
|
|
25
|
+
top?: number;
|
|
26
|
+
right?: number;
|
|
27
|
+
bottom?: number;
|
|
28
|
+
left?: number;
|
|
29
|
+
gutter?: number;
|
|
30
|
+
};
|
|
31
|
+
headerFooterMargins?: {
|
|
32
|
+
header?: number;
|
|
33
|
+
footer?: number;
|
|
34
|
+
};
|
|
35
|
+
columns?: {
|
|
36
|
+
count?: number;
|
|
37
|
+
gap?: number;
|
|
38
|
+
equalWidth?: boolean;
|
|
39
|
+
};
|
|
40
|
+
lineNumbering?: {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
countBy?: number;
|
|
43
|
+
start?: number;
|
|
44
|
+
distance?: number;
|
|
45
|
+
restart?: 'continuous' | 'newPage' | 'newSection';
|
|
46
|
+
};
|
|
47
|
+
pageNumbering?: {
|
|
48
|
+
start?: number;
|
|
49
|
+
format?: 'decimal' | 'lowerLetter' | 'upperLetter' | 'lowerRoman' | 'upperRoman' | 'numberInDash';
|
|
50
|
+
chapterStyle?: number;
|
|
51
|
+
chapterSeparator?: 'hyphen' | 'period' | 'colon' | 'emDash' | 'enDash';
|
|
52
|
+
};
|
|
53
|
+
titlePage?: boolean;
|
|
54
|
+
oddEvenHeadersFooters?: boolean;
|
|
55
|
+
verticalAlign?: 'top' | 'center' | 'bottom' | 'both';
|
|
56
|
+
sectionDirection?: 'ltr' | 'rtl';
|
|
57
|
+
headerContent?: {
|
|
58
|
+
default?: SDContentNode[];
|
|
59
|
+
first?: SDContentNode[];
|
|
60
|
+
even?: SDContentNode[];
|
|
61
|
+
};
|
|
62
|
+
footerContent?: {
|
|
63
|
+
default?: SDContentNode[];
|
|
64
|
+
first?: SDContentNode[];
|
|
65
|
+
even?: SDContentNode[];
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface SDCitationSource {
|
|
69
|
+
sourceId: string;
|
|
70
|
+
tag?: string;
|
|
71
|
+
type?: string;
|
|
72
|
+
fields?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
export interface SDReferenceCatalogs {
|
|
75
|
+
citationSources?: SDCitationSource[];
|
|
76
|
+
}
|
|
77
|
+
export interface SDAnchorRange {
|
|
78
|
+
kind: 'text';
|
|
79
|
+
segments: Array<{
|
|
80
|
+
blockId: string;
|
|
81
|
+
start: number;
|
|
82
|
+
end: number;
|
|
83
|
+
}>;
|
|
84
|
+
}
|
|
85
|
+
export interface SDBookmark {
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
target: SDAnchorRange;
|
|
89
|
+
}
|
|
90
|
+
export interface SDCommentThread {
|
|
91
|
+
id: string;
|
|
92
|
+
status: 'open' | 'resolved';
|
|
93
|
+
target: SDAnchorRange;
|
|
94
|
+
comments: Array<{
|
|
95
|
+
id: string;
|
|
96
|
+
author?: string;
|
|
97
|
+
createdAt?: string;
|
|
98
|
+
text: string;
|
|
99
|
+
}>;
|
|
100
|
+
}
|
|
101
|
+
export interface SDTrackedChange {
|
|
102
|
+
id: string;
|
|
103
|
+
/**
|
|
104
|
+
* Tracked-change broad type. Accepts the canonical v2 spec vocabulary
|
|
105
|
+
* (`insertion` / `deletion` / `replacement` / `formatting` / `move` /
|
|
106
|
+
* `structural`) and the legacy `insert` / `delete` / `format` aliases
|
|
107
|
+
* during the vocabulary migration.
|
|
108
|
+
*/
|
|
109
|
+
type: 'insertion' | 'deletion' | 'replacement' | 'formatting' | 'move' | 'structural' | 'insert' | 'delete' | 'format';
|
|
110
|
+
author?: string;
|
|
111
|
+
date?: string;
|
|
112
|
+
target?: SDAnchorRange;
|
|
113
|
+
excerpt?: string;
|
|
114
|
+
formatChange?: {
|
|
115
|
+
scope?: 'run' | 'paragraph';
|
|
116
|
+
runPropsBefore?: Partial<SDRunProps>;
|
|
117
|
+
runPropsAfter?: Partial<SDRunProps>;
|
|
118
|
+
paragraphPropsBefore?: Partial<SDParagraphProps>;
|
|
119
|
+
paragraphPropsAfter?: Partial<SDParagraphProps>;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export interface SDAnnotations {
|
|
123
|
+
bookmarks?: SDBookmark[];
|
|
124
|
+
comments?: SDCommentThread[];
|
|
125
|
+
trackedChanges?: SDTrackedChange[];
|
|
126
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SDRunProps, SDParagraphProps, SDTableProps, SDThemeColorName } from './sd-props.js';
|
|
2
|
+
export interface SDStyleBase<TProps> {
|
|
3
|
+
name?: string;
|
|
4
|
+
basedOn?: string;
|
|
5
|
+
next?: string;
|
|
6
|
+
linked?: string;
|
|
7
|
+
props?: TProps;
|
|
8
|
+
}
|
|
9
|
+
export type SDParagraphStyleDef = SDStyleBase<SDParagraphProps>;
|
|
10
|
+
export type SDCharacterStyleDef = SDStyleBase<SDRunProps>;
|
|
11
|
+
export type SDTableStyleDef = SDStyleBase<SDTableProps>;
|
|
12
|
+
export interface SDStyles {
|
|
13
|
+
paragraph?: Record<string, SDParagraphStyleDef>;
|
|
14
|
+
character?: Record<string, SDCharacterStyleDef>;
|
|
15
|
+
table?: Record<string, SDTableStyleDef>;
|
|
16
|
+
}
|
|
17
|
+
export interface SDTheme {
|
|
18
|
+
colorScheme: Record<SDThemeColorName, string>;
|
|
19
|
+
fontScheme?: {
|
|
20
|
+
major?: {
|
|
21
|
+
latin?: string;
|
|
22
|
+
eastAsia?: string;
|
|
23
|
+
complexScript?: string;
|
|
24
|
+
};
|
|
25
|
+
minor?: {
|
|
26
|
+
latin?: string;
|
|
27
|
+
eastAsia?: string;
|
|
28
|
+
complexScript?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface SDDocDefaults {
|
|
33
|
+
run?: SDRunProps;
|
|
34
|
+
paragraph?: SDParagraphProps;
|
|
35
|
+
table?: SDTableProps;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step manifest types: public, engine-agnostic metadata for step ops.
|
|
3
|
+
*
|
|
4
|
+
* These types describe a rich manifest model for mutation step operations.
|
|
5
|
+
* The current catalog used by docs and capabilities lives in
|
|
6
|
+
* `contract/step-op-catalog.ts`; this type remains available for future
|
|
7
|
+
* expansion to schema-level per-step metadata.
|
|
8
|
+
*/
|
|
9
|
+
export interface IdentityStrategy {
|
|
10
|
+
refType: string;
|
|
11
|
+
stableAcrossUndoRedo: boolean;
|
|
12
|
+
stableAcrossConcurrentEdits: boolean;
|
|
13
|
+
usableInWhere: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface StepCapabilities {
|
|
16
|
+
idempotency: 'idempotent' | 'non-idempotent';
|
|
17
|
+
supportsDryRun: boolean;
|
|
18
|
+
supportsTrackedMode: boolean;
|
|
19
|
+
possibleFailureCodes: string[];
|
|
20
|
+
deterministicTargetResolution: boolean;
|
|
21
|
+
identityStrategy: IdentityStrategy;
|
|
22
|
+
}
|
|
23
|
+
export interface StepManifest {
|
|
24
|
+
opId: string;
|
|
25
|
+
domain: string;
|
|
26
|
+
argsSchema: Record<string, unknown>;
|
|
27
|
+
outcomeSchema: Record<string, unknown>;
|
|
28
|
+
capabilities: StepCapabilities;
|
|
29
|
+
compatibleDomains?: string[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { SectionAddress } from '../sections/sections.types.js';
|
|
2
|
+
/** All recognized story types. */
|
|
3
|
+
export declare const STORY_TYPES: readonly ["body", "headerFooterSlot", "headerFooterPart", "footnote", "endnote", "textbox"];
|
|
4
|
+
/** Valid header/footer story kinds. */
|
|
5
|
+
export declare const STORY_HEADER_FOOTER_KINDS: readonly ["header", "footer"];
|
|
6
|
+
/** Valid header/footer slot variants. */
|
|
7
|
+
export declare const STORY_HEADER_FOOTER_VARIANTS: readonly ["default", "first", "even"];
|
|
8
|
+
/** Valid header/footer slot resolution modes. */
|
|
9
|
+
export declare const STORY_HEADER_FOOTER_RESOLUTIONS: readonly ["effective", "explicit"];
|
|
10
|
+
/** Valid header/footer slot write modes. */
|
|
11
|
+
export declare const STORY_HEADER_FOOTER_ON_WRITE_VALUES: readonly ["materializeIfInherited", "editResolvedPart", "error"];
|
|
12
|
+
export type StoryType = (typeof STORY_TYPES)[number];
|
|
13
|
+
export type StoryHeaderFooterKind = (typeof STORY_HEADER_FOOTER_KINDS)[number];
|
|
14
|
+
export type StoryHeaderFooterVariant = (typeof STORY_HEADER_FOOTER_VARIANTS)[number];
|
|
15
|
+
export type StoryHeaderFooterResolution = (typeof STORY_HEADER_FOOTER_RESOLUTIONS)[number];
|
|
16
|
+
export type StoryHeaderFooterOnWrite = (typeof STORY_HEADER_FOOTER_ON_WRITE_VALUES)[number];
|
|
17
|
+
/** The main document body. */
|
|
18
|
+
export interface BodyStoryLocator {
|
|
19
|
+
kind: 'story';
|
|
20
|
+
storyType: 'body';
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A header/footer slot identified by section, kind, and variant.
|
|
24
|
+
*
|
|
25
|
+
* This is the high-level "logical" locator: it represents a slot that may
|
|
26
|
+
* resolve to an explicit part in the targeted section or inherit from an
|
|
27
|
+
* earlier section.
|
|
28
|
+
*
|
|
29
|
+
* - `resolution` controls whether the locator resolves to the effective part
|
|
30
|
+
* (following inheritance) or only matches an explicit local reference.
|
|
31
|
+
* Defaults to `'effective'` when omitted.
|
|
32
|
+
* - `onWrite` controls mutation behavior when the slot is inherited:
|
|
33
|
+
* - `'materializeIfInherited'`: creates a local copy before editing (default).
|
|
34
|
+
* - `'editResolvedPart'`: edits the inherited part in place.
|
|
35
|
+
* - `'error'`: fails if the slot is not explicitly defined in this section.
|
|
36
|
+
*/
|
|
37
|
+
export interface HeaderFooterSlotStoryLocator {
|
|
38
|
+
kind: 'story';
|
|
39
|
+
storyType: 'headerFooterSlot';
|
|
40
|
+
section: SectionAddress;
|
|
41
|
+
headerFooterKind: StoryHeaderFooterKind;
|
|
42
|
+
variant: StoryHeaderFooterVariant;
|
|
43
|
+
/** Resolution strategy. Defaults to `'effective'` when omitted. */
|
|
44
|
+
resolution?: StoryHeaderFooterResolution;
|
|
45
|
+
/** Write behavior when the slot is inherited. Defaults to `'materializeIfInherited'`. */
|
|
46
|
+
onWrite?: StoryHeaderFooterOnWrite;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A header/footer part identified by its relationship ID.
|
|
50
|
+
*
|
|
51
|
+
* This is the low-level "physical" locator: it points directly at a specific
|
|
52
|
+
* header or footer XML part, bypassing section-level resolution.
|
|
53
|
+
*/
|
|
54
|
+
export interface HeaderFooterPartStoryLocator {
|
|
55
|
+
kind: 'story';
|
|
56
|
+
storyType: 'headerFooterPart';
|
|
57
|
+
refId: string;
|
|
58
|
+
}
|
|
59
|
+
/** A footnote story identified by its note ID. */
|
|
60
|
+
export interface FootnoteStoryLocator {
|
|
61
|
+
kind: 'story';
|
|
62
|
+
storyType: 'footnote';
|
|
63
|
+
noteId: string;
|
|
64
|
+
}
|
|
65
|
+
/** An endnote story identified by its note ID. */
|
|
66
|
+
export interface EndnoteStoryLocator {
|
|
67
|
+
kind: 'story';
|
|
68
|
+
storyType: 'endnote';
|
|
69
|
+
noteId: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A textbox story identified by a stable textbox id.
|
|
73
|
+
*
|
|
74
|
+
* The supported subset is DrawingML textbox content (`w:txbxContent` inside
|
|
75
|
+
* `w:drawing`) hosted in the main body story. VML textbox content
|
|
76
|
+
* (`v:textbox` / `w:pict`), linked textbox chains (`w:linkedTxbxContent`),
|
|
77
|
+
* nested textbox stories, and textbox stories inside headers/footers are
|
|
78
|
+
* rejected at admission time with named diagnostics rather than silently
|
|
79
|
+
* widened.
|
|
80
|
+
*/
|
|
81
|
+
export interface TextboxStoryLocator {
|
|
82
|
+
kind: 'story';
|
|
83
|
+
storyType: 'textbox';
|
|
84
|
+
textboxId: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Identifies a content story within a document.
|
|
88
|
+
*
|
|
89
|
+
* Discriminate on `storyType` to narrow to a specific variant.
|
|
90
|
+
*/
|
|
91
|
+
export type StoryLocator = BodyStoryLocator | HeaderFooterSlotStoryLocator | HeaderFooterPartStoryLocator | FootnoteStoryLocator | EndnoteStoryLocator | TextboxStoryLocator;
|
|
92
|
+
/**
|
|
93
|
+
* Type guard: returns `true` if `value` is a valid {@link StoryLocator}.
|
|
94
|
+
*
|
|
95
|
+
* Checks the full discriminated-union shape so malformed partial locators do
|
|
96
|
+
* not leak through validation and fail later with raw property-access errors.
|
|
97
|
+
*/
|
|
98
|
+
export declare function isStoryLocator(value: unknown): value is StoryLocator;
|
|
99
|
+
/**
|
|
100
|
+
* Type guard: returns `true` if `locator` targets the document body.
|
|
101
|
+
*/
|
|
102
|
+
export declare function isBodyStory(locator: StoryLocator): locator is BodyStoryLocator;
|
|
103
|
+
/**
|
|
104
|
+
* Returns the effective resolution mode for a header/footer slot locator.
|
|
105
|
+
*/
|
|
106
|
+
export declare function getStoryHeaderFooterResolution(locator: Pick<HeaderFooterSlotStoryLocator, 'resolution'>): StoryHeaderFooterResolution;
|
|
107
|
+
/**
|
|
108
|
+
* Returns the effective write mode for a header/footer slot locator.
|
|
109
|
+
*/
|
|
110
|
+
export declare function getStoryHeaderFooterOnWrite(locator: Pick<HeaderFooterSlotStoryLocator, 'onWrite'>): StoryHeaderFooterOnWrite;
|
|
111
|
+
/**
|
|
112
|
+
* Converts a {@link StoryLocator} to a canonical string key.
|
|
113
|
+
*
|
|
114
|
+
* The key is deterministic and suitable for use as a map key or cache key.
|
|
115
|
+
* Round-tripping is NOT guaranteed: this is a one-way serialization.
|
|
116
|
+
*
|
|
117
|
+
* Examples:
|
|
118
|
+
* - `{ kind: 'story', storyType: 'body' }` → `'story:body'`
|
|
119
|
+
* - `{ kind: 'story', storyType: 'footnote', noteId: 'fn1' }` → `'story:footnote:fn1'`
|
|
120
|
+
* - `{ kind: 'story', storyType: 'headerFooterSlot', section: { kind: 'section', sectionId: 's1' }, headerFooterKind: 'header', variant: 'default' }` → `'story:headerFooterSlot:s1:header:default:effective:materializeIfInherited'`
|
|
121
|
+
* - `{ kind: 'story', storyType: 'headerFooterPart', refId: 'rId7' }` → `'story:headerFooterPart:rId7'`
|
|
122
|
+
*/
|
|
123
|
+
export declare function storyLocatorToKey(locator: StoryLocator): string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BlockNodeAddress } from './base.js';
|
|
2
|
+
import { SelectionTarget } from './address.js';
|
|
3
|
+
import { SDFragment } from './fragment.js';
|
|
4
|
+
import { Placement, NestingPolicy } from './placement.js';
|
|
5
|
+
import { StoryLocator } from './story.types.js';
|
|
6
|
+
/** Structural shape for the insert operation. */
|
|
7
|
+
export interface SDInsertInput {
|
|
8
|
+
/** Optional insertion target. When omitted, inserts at the end of the document. */
|
|
9
|
+
target?: BlockNodeAddress;
|
|
10
|
+
/** Structural content to insert. */
|
|
11
|
+
content: SDFragment;
|
|
12
|
+
/** Target a specific document story (body, header, footer, footnote, endnote). */
|
|
13
|
+
in?: StoryLocator;
|
|
14
|
+
/** Where to place content relative to the target. Defaults to 'after'. */
|
|
15
|
+
placement?: Placement;
|
|
16
|
+
/** Nesting policy. Defaults to { tables: 'forbid' }. */
|
|
17
|
+
nestingPolicy?: NestingPolicy;
|
|
18
|
+
}
|
|
19
|
+
/** Structural shape for the replace operation. */
|
|
20
|
+
type StructuralReplaceLocator = {
|
|
21
|
+
/** Target to replace. BlockNodeAddress replaces the entire block; SelectionTarget replaces a contiguous selection. */
|
|
22
|
+
target: BlockNodeAddress | SelectionTarget;
|
|
23
|
+
/** Opaque ref string (alternative to `target`). */
|
|
24
|
+
ref?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
/** Opaque ref string (alternative to `target`). */
|
|
27
|
+
ref: string;
|
|
28
|
+
/** Target to replace. BlockNodeAddress replaces the entire block; SelectionTarget replaces a contiguous selection. */
|
|
29
|
+
target?: undefined;
|
|
30
|
+
};
|
|
31
|
+
/** Structural shape for the replace operation. */
|
|
32
|
+
export type SDReplaceInput = StructuralReplaceLocator & {
|
|
33
|
+
/** Structural content to replace with. */
|
|
34
|
+
content: SDFragment;
|
|
35
|
+
/** Target a specific document story (body, header, footer, footnote, endnote). */
|
|
36
|
+
in?: StoryLocator;
|
|
37
|
+
/** Nesting policy. Defaults to { tables: 'forbid' }. */
|
|
38
|
+
nestingPolicy?: NestingPolicy;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseNodeInfo } from './base.js';
|
|
2
|
+
export type { ContentControlInfo } from '../content-controls/content-controls.types.js';
|
|
3
|
+
export interface BookmarkNodeInfo extends BaseNodeInfo {
|
|
4
|
+
nodeType: 'bookmark';
|
|
5
|
+
kind: 'inline';
|
|
6
|
+
properties: BookmarkProperties;
|
|
7
|
+
}
|
|
8
|
+
export interface HyperlinkNodeInfo extends BaseNodeInfo {
|
|
9
|
+
nodeType: 'hyperlink';
|
|
10
|
+
kind: 'inline';
|
|
11
|
+
properties: HyperlinkProperties;
|
|
12
|
+
}
|
|
13
|
+
export interface BookmarkProperties {
|
|
14
|
+
name?: string;
|
|
15
|
+
bookmarkId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface HyperlinkProperties {
|
|
18
|
+
href?: string;
|
|
19
|
+
anchor?: string;
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CorePropertyId } from '../inline-semantics/property-ids.js';
|
|
2
|
+
export type NonUniformStrategy = 'error' | 'useLeadingRun' | 'majority' | 'union';
|
|
3
|
+
/**
|
|
4
|
+
* Canonical mark key set: derived from inline-semantics property IDs.
|
|
5
|
+
* Retained for backward compatibility; prefer {@link CORE_PROPERTY_IDS} in new code.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MARK_KEYS: readonly ["bold", "italic", "underline", "strike"];
|
|
8
|
+
/** A single canonical mark key. Equivalent to {@link CorePropertyId}. */
|
|
9
|
+
export type MarkKey = CorePropertyId;
|
|
10
|
+
/** Runtime set for O(1) mark key validation. Equivalent to {@link CORE_PROPERTY_ID_SET}. */
|
|
11
|
+
export declare const MARK_KEY_SET: ReadonlySet<string>;
|
|
12
|
+
/** Canonical directive vocabulary for inline toggle properties. */
|
|
13
|
+
export declare const INLINE_DIRECTIVES: readonly ["on", "off", "clear"];
|
|
14
|
+
/** A single inline toggle directive. */
|
|
15
|
+
export type InlineToggleDirective = (typeof INLINE_DIRECTIVES)[number];
|
|
16
|
+
/** Runtime set for O(1) directive validation. */
|
|
17
|
+
export declare const INLINE_DIRECTIVE_SET: ReadonlySet<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Inline toggle directives for core-4 marks.
|
|
20
|
+
*
|
|
21
|
+
* - `'on'` : write direct ON formatting.
|
|
22
|
+
* - `'off'` : write explicit run-level OFF/negation override.
|
|
23
|
+
* - `'clear'`: remove direct run-level property (inherit from style cascade).
|
|
24
|
+
*/
|
|
25
|
+
export interface SetMarks {
|
|
26
|
+
bold?: InlineToggleDirective;
|
|
27
|
+
italic?: InlineToggleDirective;
|
|
28
|
+
underline?: InlineToggleDirective;
|
|
29
|
+
strike?: InlineToggleDirective;
|
|
30
|
+
}
|
|
31
|
+
export interface InlineStylePolicy {
|
|
32
|
+
mode: 'preserve' | 'set' | 'clear' | 'merge';
|
|
33
|
+
requireUniform?: boolean;
|
|
34
|
+
onNonUniform?: NonUniformStrategy;
|
|
35
|
+
setMarks?: SetMarks;
|
|
36
|
+
}
|
|
37
|
+
export interface ParagraphStylePolicy {
|
|
38
|
+
mode: 'preserve' | 'set' | 'clear';
|
|
39
|
+
}
|
|
40
|
+
export interface StylePolicy {
|
|
41
|
+
inline: InlineStylePolicy;
|
|
42
|
+
paragraph?: ParagraphStylePolicy;
|
|
43
|
+
}
|
|
44
|
+
export interface InsertStylePolicy {
|
|
45
|
+
inline: {
|
|
46
|
+
mode: 'inherit' | 'set' | 'clear';
|
|
47
|
+
setMarks?: SetMarks;
|
|
48
|
+
};
|
|
49
|
+
}
|