superdoc 2.2.1 → 2.4.0-next.1
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 +106 -0
- package/dist/chunks/FindReplaceSurface-BEW-1NhM.es.js +344 -0
- package/dist/chunks/FindReplaceSurface-Dx0llWqP.cjs +346 -0
- package/dist/chunks/PasswordPromptSurface-BA6HHqEa.es.js +111 -0
- package/dist/chunks/PasswordPromptSurface-BUUVC2ee.cjs +113 -0
- package/dist/chunks/PdfViewer-CNOtyS-I.es.js +531 -0
- package/dist/chunks/PdfViewer-qpvzwYMz.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-DP8RUPW-.cjs +7 -0
- package/dist/chunks/blank-docx-XRX6Ker2.es.js +2 -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-D4kk9AjM.es.js +9417 -0
- package/dist/chunks/create-super-doc-ui-DXdWuTzm.cjs +9680 -0
- package/dist/chunks/eventemitter3-Bt2s0X0a.es.js +131 -0
- package/dist/chunks/eventemitter3-DqY4aSMf.cjs +137 -0
- package/dist/chunks/jszip-C8srOKAO.es.js +4650 -0
- package/dist/chunks/jszip-Cs9JBLlJ.cjs +4691 -0
- package/dist/chunks/rolldown-runtime-1Y-nnZJ3.cjs +40 -0
- package/dist/chunks/rolldown-runtime-D7PMmH3s.es.js +27 -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/comment-create-attribution.d.ts +2 -0
- package/dist/document-api/src/comments/comments.d.ts +231 -0
- package/dist/document-api/src/comments/comments.types.d.ts +266 -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 +455 -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 +48 -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 +22 -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 +130 -0
- package/dist/layout-engine/painters/dom/src/page-content.d.ts +277 -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/persistent-page-surface.d.ts +144 -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 +625 -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 +3323 -0
- package/dist/style.layered.css +3323 -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 +3253 -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 +19 -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 +101 -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 +365 -0
- package/dist/superdoc/src/public/index.d.ts +182 -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 +700 -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 +2254 -0
- package/dist/superdoc.cjs +40494 -0
- package/dist/superdoc.es.js +40418 -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 +138 -24
- package/.npmignore +0 -4
- package/data.json +0 -17
- package/index.js +0 -2
- package/lib/Augmenter.js +0 -27
- package/lib/Runner.js +0 -80
- package/lib/Stopper.js +0 -71
- package/test/superdoc.js +0 -126
- package/utils/app.js +0 -18
- package/utils/server.js +0 -2
- package/web/index.js +0 -54
- package/web/public/style.css +0 -76
- package/web/views/index.ejs +0 -53
- package/web/views/layout.ejs +0 -13
- package/web/views/method.ejs +0 -59
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Direction Context Types
|
|
3
|
+
*
|
|
4
|
+
* Typed direction information that propagates from section to paragraph to run
|
|
5
|
+
* during pm-adapter conversion. Each container has its own context type so the
|
|
6
|
+
* orthogonal axes do not collapse:
|
|
7
|
+
*
|
|
8
|
+
* - section page direction (page numbers, columns) is independent of
|
|
9
|
+
* - paragraph inline base direction (ind, jc, tab) which is independent of
|
|
10
|
+
* - table visual direction (cell ordering) which is independent of
|
|
11
|
+
* - writing mode (horizontal vs vertical text flow).
|
|
12
|
+
*
|
|
13
|
+
* Per ECMA-376:
|
|
14
|
+
* - Section w:bidi affects section chrome only (§17.6.1).
|
|
15
|
+
* - Paragraph w:bidi affects paragraph-level properties only (§17.3.1.6).
|
|
16
|
+
* - Table w:bidiVisual affects cell ordering only (§17.4.1).
|
|
17
|
+
* - Writing mode (w:textDirection) inherits across containers when absent
|
|
18
|
+
* (§17.3.1.41) — the one exception that does propagate.
|
|
19
|
+
*
|
|
20
|
+
* The resolver chain in `pm-adapter/src/direction/` produces these contexts.
|
|
21
|
+
* Downstream consumers (DomPainter, layout-bridge, hit testing) read the
|
|
22
|
+
* resolved fields and never re-derive direction from raw attributes.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Inline base direction of text within a container.
|
|
26
|
+
* Maps to OOXML w:bidi (paragraph) and w:rtl (run).
|
|
27
|
+
*/
|
|
28
|
+
export type BaseDirection = 'ltr' | 'rtl';
|
|
29
|
+
/**
|
|
30
|
+
* Text flow direction ("writing mode").
|
|
31
|
+
* Maps to OOXML w:textDirection (ST_TextDirection §17.18.93).
|
|
32
|
+
*
|
|
33
|
+
* Limited to the values SuperDoc renders today; the full OOXML enum has
|
|
34
|
+
* twelve values for vertical-text variants (Wave 4 expands this).
|
|
35
|
+
*/
|
|
36
|
+
export type WritingMode = 'horizontal-tb' | 'vertical-rl' | 'vertical-lr';
|
|
37
|
+
/**
|
|
38
|
+
* Direction context for a section.
|
|
39
|
+
* Used by section-level chrome only (page numbers, columns, gutters).
|
|
40
|
+
* MUST NOT be used to determine paragraph inline direction.
|
|
41
|
+
*/
|
|
42
|
+
export type SectionDirectionContext = {
|
|
43
|
+
/** Section page direction; from w:sectPr/w:bidi. */
|
|
44
|
+
pageDirection: BaseDirection;
|
|
45
|
+
/** Default writing mode for paragraphs and cells in the section. */
|
|
46
|
+
writingMode: WritingMode;
|
|
47
|
+
/** Whether the page gutter is on the right; from w:sectPr/w:rtlGutter. */
|
|
48
|
+
rtlGutter: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Direction context for a table.
|
|
52
|
+
* Carries visual cell ordering only. Cell paragraph direction is independent.
|
|
53
|
+
*/
|
|
54
|
+
export type TableDirectionContext = {
|
|
55
|
+
/**
|
|
56
|
+
* Visual direction of cell ordering; from w:tblPr/w:bidiVisual.
|
|
57
|
+
* Undefined when not specified.
|
|
58
|
+
*
|
|
59
|
+
* This is the single load-bearing field: `getTableVisualDirection` and all
|
|
60
|
+
* downstream consumers (layout-table, DomPainter) read only `visualDirection`.
|
|
61
|
+
*/
|
|
62
|
+
visualDirection: BaseDirection | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Inherited from the parent section. Optional: producers that resolve only
|
|
65
|
+
* the table's own visual axis (e.g. the v2 layout adapter, which derives
|
|
66
|
+
* `visualDirection` from inline `w:bidiVisual` evidence) populate just
|
|
67
|
+
* `visualDirection`. Section inheritance is an orthogonal axis resolved
|
|
68
|
+
* elsewhere; no consumer reads `parentSection` today.
|
|
69
|
+
*/
|
|
70
|
+
parentSection?: SectionDirectionContext;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Direction context for a table cell.
|
|
74
|
+
* Carries cell-level writing mode (vertical text). Cell paragraph inline
|
|
75
|
+
* direction is decided per-paragraph, not by the cell.
|
|
76
|
+
*/
|
|
77
|
+
export type CellDirectionContext = {
|
|
78
|
+
/**
|
|
79
|
+
* Cell text flow direction; from w:tcPr/w:textDirection.
|
|
80
|
+
* Falls back to the section writing mode when absent.
|
|
81
|
+
*/
|
|
82
|
+
writingMode: WritingMode;
|
|
83
|
+
/** Inherited from the parent table. */
|
|
84
|
+
parentTable: TableDirectionContext;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Direction context for a paragraph.
|
|
88
|
+
* The single source of truth for paragraph direction-aware decisions.
|
|
89
|
+
*
|
|
90
|
+
* Consumers (logical-side resolution, alignment, indent, hit testing,
|
|
91
|
+
* DomPainter direction styling) read from here. They do NOT re-derive
|
|
92
|
+
* direction from raw attributes.
|
|
93
|
+
*/
|
|
94
|
+
export type ParagraphDirectionContext = {
|
|
95
|
+
/**
|
|
96
|
+
* Paragraph inline base direction; from w:pPr/w:bidi.
|
|
97
|
+
* Undefined when no explicit bidi is set; consumers should let the browser
|
|
98
|
+
* apply the Unicode Bidi Algorithm via missing or empty `dir` attribute.
|
|
99
|
+
*
|
|
100
|
+
* Section page direction MUST NOT propagate into this field. Per §17.6.1,
|
|
101
|
+
* section bidi only affects section chrome, not paragraph layout.
|
|
102
|
+
*/
|
|
103
|
+
inlineDirection: BaseDirection | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Writing mode (text flow) for the paragraph; from w:pPr/w:textDirection.
|
|
106
|
+
* Inherits from the section when absent. This is the one OOXML direction
|
|
107
|
+
* field that propagates across containers per §17.3.1.41.
|
|
108
|
+
*/
|
|
109
|
+
writingMode: WritingMode;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Run-level bidi signals: explicit overrides and embeddings.
|
|
113
|
+
* Direction signals only — script formatting lives in RunScriptContext.
|
|
114
|
+
*
|
|
115
|
+
* Maps to OOXML w:rPr/w:rtl (§17.3.2.30), w:dir (§17.3.2.8 embedding),
|
|
116
|
+
* w:bdo (§17.3.2.3 override).
|
|
117
|
+
*/
|
|
118
|
+
export type RunBidiContext = {
|
|
119
|
+
/**
|
|
120
|
+
* w:rPr/w:rtl. Preserves the source OOXML signal that the run carries
|
|
121
|
+
* the `w:rtl` flag. Per §17.3.2.30, `w:rtl` does two things at the model
|
|
122
|
+
* level:
|
|
123
|
+
* 1. Forces the complex-script formatting stack (bCs, iCs, szCs,
|
|
124
|
+
* rFonts/@cs). See RunScriptContext for the formatting half.
|
|
125
|
+
* 2. Acts as a Character Directionality Override for weak/neutral
|
|
126
|
+
* characters in the run (NOT a forced visual flip of strong-LTR text;
|
|
127
|
+
* §17.3.2.30 explicitly says behavior on strong-LTR is unspecified).
|
|
128
|
+
*
|
|
129
|
+
* `rtl: true` is the source signal, NOT a directive that every consumer
|
|
130
|
+
* must project to `dir="rtl"` in the rendered DOM. The painter decides
|
|
131
|
+
* the DOM projection per its Word-parity rules (see
|
|
132
|
+
* `features/inline-direction/resolveRunDirectionAttribute`). Exporters
|
|
133
|
+
* must preserve `rtl: true` on round-trip regardless of paint decisions,
|
|
134
|
+
* since dropping it would lose the source `w:rPr/w:rtl` semantics.
|
|
135
|
+
*/
|
|
136
|
+
rtl: boolean;
|
|
137
|
+
/** w:dir; bidi embedding direction (RLE/LRE). Wave 1c. */
|
|
138
|
+
embedding?: BaseDirection;
|
|
139
|
+
/** w:bdo; bidi override direction (RLO/LRO). Wave 1c. */
|
|
140
|
+
override?: BaseDirection;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Run-level script context: which formatting stack applies.
|
|
144
|
+
*
|
|
145
|
+
* Per ECMA Annex I, when w:rtl is set or w:cs is set, the run's formatting
|
|
146
|
+
* comes from the complex-script variants (bCs, iCs, szCs, rFonts/@cs).
|
|
147
|
+
* Otherwise it comes from the Latin variants (b, i, sz, rFonts/@ascii).
|
|
148
|
+
*
|
|
149
|
+
* This context is preservation-only in Wave 1a. Wave 1b implements the
|
|
150
|
+
* stack-selection logic (resolveRunScriptContext returns whether to render
|
|
151
|
+
* with the CS or Latin stack).
|
|
152
|
+
*/
|
|
153
|
+
export type RunScriptContext = {
|
|
154
|
+
/**
|
|
155
|
+
* w:rPr/w:cs (§17.3.2.7). Forces complex-script formatting regardless of Unicode.
|
|
156
|
+
* Per the spec, absence != false: when omitted, the value inherits from the style
|
|
157
|
+
* hierarchy and ultimately falls back to Unicode-based script detection. Only set
|
|
158
|
+
* this field when the source explicitly carries w:cs - leave undefined otherwise so
|
|
159
|
+
* downstream consumers can distinguish "not set" from "explicitly off".
|
|
160
|
+
*/
|
|
161
|
+
complexScript?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Per-script language metadata, kept on separate fields per ECMA §17.3.2.20
|
|
164
|
+
* because each maps to a different formatting stack (Latin / CS / East Asian).
|
|
165
|
+
* Wave 1b consumes these to gate spellcheck and font-stack selection.
|
|
166
|
+
*/
|
|
167
|
+
language?: {
|
|
168
|
+
/** w:rPr/w:lang/@val. Default (Latin) language tag. */
|
|
169
|
+
default?: string;
|
|
170
|
+
/** w:rPr/w:lang/@bidi. Complex-script language tag. */
|
|
171
|
+
complexScript?: string;
|
|
172
|
+
/** w:rPr/w:lang/@eastAsia. East Asian language tag. */
|
|
173
|
+
eastAsian?: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Read a paragraph's inline base direction from its attributes.
|
|
178
|
+
*
|
|
179
|
+
* Prefers the resolved {@link ParagraphDirectionContext} (SD-2776) when
|
|
180
|
+
* present. Falls back to `paragraphProperties.rightToLeft` for PM-node /
|
|
181
|
+
* editor paths that store direction on the raw OOXML properties rather
|
|
182
|
+
* than the typed direction context.
|
|
183
|
+
*
|
|
184
|
+
* Consumers should call this instead of inspecting attrs ad hoc so the
|
|
185
|
+
* direction source check stays in one place.
|
|
186
|
+
*/
|
|
187
|
+
export declare function getParagraphInlineDirection(attrs: {
|
|
188
|
+
directionContext?: {
|
|
189
|
+
inlineDirection?: BaseDirection | null;
|
|
190
|
+
} | null;
|
|
191
|
+
paragraphProperties?: {
|
|
192
|
+
rightToLeft?: boolean | null;
|
|
193
|
+
} | null;
|
|
194
|
+
} | null | undefined): BaseDirection | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Read a table's visual direction (cell ordering axis) from its attributes.
|
|
197
|
+
*
|
|
198
|
+
* Prefers the resolved {@link TableDirectionContext} when present, falls
|
|
199
|
+
* back to the legacy `tableProperties.rightToLeft` (or `bidiVisual` alias)
|
|
200
|
+
* for compatibility. The AIDEV-NOTE on the fallback branch names the
|
|
201
|
+
* retirement signal.
|
|
202
|
+
*
|
|
203
|
+
* Per ECMA-376 §17.4.1, `w:bidiVisual` affects only cell ordering and
|
|
204
|
+
* table-visual properties. Cell paragraph inline direction is independent;
|
|
205
|
+
* use {@link getParagraphInlineDirection} for that axis.
|
|
206
|
+
*
|
|
207
|
+
* Consumers should call this instead of reading `tableProperties.rightToLeft`
|
|
208
|
+
* directly so the source check stays in one place and the resolver can take
|
|
209
|
+
* over once pm-adapter populates `tableDirectionContext` everywhere.
|
|
210
|
+
*/
|
|
211
|
+
export declare function getTableVisualDirection(attrs: {
|
|
212
|
+
tableDirectionContext?: {
|
|
213
|
+
visualDirection?: BaseDirection | null;
|
|
214
|
+
} | null;
|
|
215
|
+
tableProperties?: {
|
|
216
|
+
rightToLeft?: boolean | null;
|
|
217
|
+
bidiVisual?: boolean | null;
|
|
218
|
+
} | null;
|
|
219
|
+
} | null | undefined): BaseDirection | undefined;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { DrawingKind } from './index.js';
|
|
2
|
+
/**
|
|
3
|
+
* How a visual-object family is treated by drawing rendering.
|
|
4
|
+
*
|
|
5
|
+
* - `supported`: projected into a real layout contract and rendered.
|
|
6
|
+
* - `fail-closed`: preserved for save/reopen, never silently dropped, and
|
|
7
|
+
* surfaced with a named diagnostic + placeholder instead of guessed output.
|
|
8
|
+
* - `deferred`: explicitly out of current scope; no support claim is made and
|
|
9
|
+
* no rendering path is added unless a later plan pulls it in.
|
|
10
|
+
*/
|
|
11
|
+
export type DrawingSupportLevel = 'supported' | 'fail-closed' | 'deferred';
|
|
12
|
+
/**
|
|
13
|
+
* Existing layout-contract target a supported family projects into. `none`
|
|
14
|
+
* marks families that are policies (e.g. `mc:AlternateContent` traversal) or
|
|
15
|
+
* have no layout target (fail-closed / deferred families).
|
|
16
|
+
*
|
|
17
|
+
* The string values intentionally match the public layout contract names in
|
|
18
|
+
* `index.ts` so the taxonomy is greppable against the real contracts.
|
|
19
|
+
*/
|
|
20
|
+
export type DrawingContractTarget = 'ImageRun' | 'ImageBlock' | 'ImageDrawing' | 'DrawingBlock' | 'selected-choice' | 'none';
|
|
21
|
+
/**
|
|
22
|
+
* The `DrawingBlock` discriminant a supported drawing family maps to, when its
|
|
23
|
+
* contract target is `DrawingBlock`. Reuses the layout contract `DrawingKind`
|
|
24
|
+
* union so the taxonomy cannot drift from the painter's accepted kinds.
|
|
25
|
+
*/
|
|
26
|
+
export type DrawingTaxonomyDrawingKind = Extract<DrawingKind, 'vectorShape' | 'shapeGroup' | 'image' | 'chart'>;
|
|
27
|
+
/**
|
|
28
|
+
* Frozen canonical diagnostic codes for drawing rendering.
|
|
29
|
+
*
|
|
30
|
+
* New extractor/adapter diagnostics MUST use these exact strings. Family-
|
|
31
|
+
* specific codes are required — do not collapse everything to
|
|
32
|
+
* `render.unsupported-inline-ooxml` (plan §4).
|
|
33
|
+
*/
|
|
34
|
+
export declare const DRAWING_DIAGNOSTIC_CODES: {
|
|
35
|
+
/** External image relationship (`r:link` / `TargetMode="External"`). Not fetched. */
|
|
36
|
+
readonly externalImageDeferred: "render.media.external-image-deferred";
|
|
37
|
+
/** Drawing references a relationship id that does not exist on the owner part. */
|
|
38
|
+
readonly missingRelationship: "render.drawing.missing-relationship";
|
|
39
|
+
/** Relationship resolves but the target media part bytes are missing/empty. */
|
|
40
|
+
readonly missingMediaPart: "render.media.missing-part";
|
|
41
|
+
/** Relationship exists but is not an image relationship type. */
|
|
42
|
+
readonly unsupportedRelationshipType: "render.drawing.unsupported-relationship-type";
|
|
43
|
+
/** Media MIME is not in the supported allowlist. */
|
|
44
|
+
readonly unsupportedMime: "render.media.unsupported-mime";
|
|
45
|
+
/** Media part exceeds the host byte-size policy before bytes are materialized. */
|
|
46
|
+
readonly imageTooLarge: "render.media.image-too-large";
|
|
47
|
+
/** SVG content rejected by the SVG safety policy. */
|
|
48
|
+
readonly unsafeSvg: "render.media.unsafe-svg";
|
|
49
|
+
/** Metafile / TIFF (EMF, WMF, TIFF) with no approved conversion path. */
|
|
50
|
+
readonly unsupportedFormat: "render.media.unsupported-format";
|
|
51
|
+
/** OLE / ActiveX / embedded package object. */
|
|
52
|
+
readonly embeddedObjectNotSupported: "render.embedded-object-not-supported";
|
|
53
|
+
/** SmartArt / diagram / unknown external graphic-data object. */
|
|
54
|
+
readonly unsupportedObject: "render.drawing.unsupported-object";
|
|
55
|
+
/** VML structure outside any supported image-like subset. */
|
|
56
|
+
readonly vmlUnsupported: "render.drawing.vml-unsupported";
|
|
57
|
+
/** VML image-like content that could not be promoted to a supported image. */
|
|
58
|
+
readonly vmlImageUnsupported: "render.drawing.vml-image-unsupported";
|
|
59
|
+
/** Custom geometry command the extractor does not implement (e.g. `arcTo`). */
|
|
60
|
+
readonly unsupportedGeometryCommand: "render.drawing.unsupported-geometry-command";
|
|
61
|
+
/** Anchor fields required for honest placement are unsupported. */
|
|
62
|
+
readonly anchorUnsupported: "render.drawing.anchor-unsupported";
|
|
63
|
+
/** Wrap fields required for honest placement are unsupported. */
|
|
64
|
+
readonly wrapUnsupported: "render.drawing.wrap-unsupported";
|
|
65
|
+
/** `mc:AlternateContent` had no supported choice and no usable fallback. */
|
|
66
|
+
readonly altContentNoSupportedChoice: "render.drawing.altcontent-no-supported-choice";
|
|
67
|
+
/** A child of an otherwise-supported group is unsupported. */
|
|
68
|
+
readonly groupChildUnsupported: "render.drawing.group-child-unsupported";
|
|
69
|
+
};
|
|
70
|
+
export type DrawingDiagnosticCode = (typeof DRAWING_DIAGNOSTIC_CODES)[keyof typeof DRAWING_DIAGNOSTIC_CODES];
|
|
71
|
+
/**
|
|
72
|
+
* Existing pre-Phase-15 diagnostic codes that remain valid compatibility
|
|
73
|
+
* aliases (plan §4: "Existing resolver codes can remain compatibility aliases
|
|
74
|
+
* when they already exist"). Each maps to the canonical code it aliases so
|
|
75
|
+
* consumers and the Labs oracles can normalize without renaming live emitters.
|
|
76
|
+
*
|
|
77
|
+
* These remain emitted by the host resolver / adapter for now; the taxonomy does
|
|
78
|
+
* not rename live emitters in this plan. Later plans may converge emitters onto
|
|
79
|
+
* the canonical codes, but the aliases must keep resolving here until then.
|
|
80
|
+
*/
|
|
81
|
+
export declare const DRAWING_DIAGNOSTIC_CODE_ALIASES: Readonly<Record<string, DrawingDiagnosticCode>>;
|
|
82
|
+
/**
|
|
83
|
+
* Every visual-object family the taxonomy classifies. Names are stable identifiers
|
|
84
|
+
* used by the extractor, adapter diagnostics, Labs summaries, and the closeout
|
|
85
|
+
* support matrix.
|
|
86
|
+
*/
|
|
87
|
+
export type DrawingFamily = 'inlineBitmap' | 'anchoredBitmap' | 'imageChildInGroup' | 'vectorShape' | 'shapeGroup' | 'chart' | 'alternateContent' | 'externalImage' | 'missingRelationship' | 'missingMediaPart' | 'wrongRelationshipType' | 'unsupportedMime' | 'oversizedMediaPart' | 'unsafeSvg' | 'metafileOrTiff' | 'embeddedObject' | 'smartArtOrDiagram' | 'vml' | 'vmlImageLike' | 'unsupportedGeometryCommand' | 'unsupportedAnchorFields' | 'unsupportedWrapFields' | 'alternateContentNoSupportedChoice' | 'groupChildUnsupported' | 'objectEditing' | 'customWrapPolygon' | 'chartFidelity' | 'vmlFidelity' | 'decorativeAccessibilityUi';
|
|
88
|
+
/** Frozen classification record for a single visual-object family. */
|
|
89
|
+
export interface DrawingFamilySpec {
|
|
90
|
+
readonly family: DrawingFamily;
|
|
91
|
+
readonly support: DrawingSupportLevel;
|
|
92
|
+
/** Human-facing one-line description for matrices and diagnostics. */
|
|
93
|
+
readonly description: string;
|
|
94
|
+
/** Layout-contract target for supported families; `none` otherwise. */
|
|
95
|
+
readonly contract: DrawingContractTarget;
|
|
96
|
+
/** `DrawingBlock` discriminant when `contract === 'DrawingBlock'`. */
|
|
97
|
+
readonly drawingKind?: DrawingTaxonomyDrawingKind;
|
|
98
|
+
/** Canonical diagnostic code for fail-closed families. */
|
|
99
|
+
readonly diagnostic?: DrawingDiagnosticCode;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The frozen drawing support taxonomy.
|
|
103
|
+
*
|
|
104
|
+
* Invariants (enforced by `drawing-taxonomy.test.ts`):
|
|
105
|
+
* - every `supported` family has a real contract target (`!== 'none'`);
|
|
106
|
+
* - every `DrawingBlock`-targeted family declares a `drawingKind`;
|
|
107
|
+
* - every `fail-closed` family declares a canonical `diagnostic`;
|
|
108
|
+
* - every canonical diagnostic code is referenced by at least one fail-closed
|
|
109
|
+
* family;
|
|
110
|
+
* - `deferred` families make no support claim (`contract: 'none'`, no
|
|
111
|
+
* diagnostic).
|
|
112
|
+
*/
|
|
113
|
+
export declare const DRAWING_SUPPORT_TAXONOMY: Readonly<Record<DrawingFamily, DrawingFamilySpec>>;
|
|
114
|
+
/** Every classified family, in declaration order. */
|
|
115
|
+
export declare const DRAWING_FAMILIES: readonly DrawingFamily[];
|
|
116
|
+
/** Resolve a family's frozen classification spec. */
|
|
117
|
+
export declare function getDrawingFamilySpec(family: DrawingFamily): DrawingFamilySpec;
|
|
118
|
+
/** True when the family renders into a real layout contract. */
|
|
119
|
+
export declare function isSupportedDrawingFamily(family: DrawingFamily): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Normalize a possibly-aliased diagnostic code to its canonical code.
|
|
122
|
+
* Returns the canonical code when `code` is itself canonical, the aliased
|
|
123
|
+
* canonical code when `code` is a known compatibility alias, or `null` when the
|
|
124
|
+
* code is outside the drawing diagnostic vocabulary.
|
|
125
|
+
*/
|
|
126
|
+
export declare function canonicalDrawingDiagnosticCode(code: string): DrawingDiagnosticCode | null;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @superdoc/engines-image-wrap contract
|
|
3
|
+
*
|
|
4
|
+
* Computes text wrapping exclusions for anchored images.
|
|
5
|
+
* Handles both rectangular (Square/TopAndBottom) and polygon-based (Tight/Through) wrapping.
|
|
6
|
+
*/
|
|
7
|
+
export interface WrapStyle {
|
|
8
|
+
type: 'None' | 'Square' | 'Tight' | 'Through' | 'TopAndBottom';
|
|
9
|
+
wrapText?: 'bothSides' | 'left' | 'right' | 'largest';
|
|
10
|
+
distTop?: number;
|
|
11
|
+
distBottom?: number;
|
|
12
|
+
distLeft?: number;
|
|
13
|
+
distRight?: number;
|
|
14
|
+
polygon?: number[][];
|
|
15
|
+
}
|
|
16
|
+
export interface Rect {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Scale an OOXML wrap polygon to absolute page coordinates.
|
|
24
|
+
*
|
|
25
|
+
* OOXML polygons are expressed in EMUs relative to the image's native size.
|
|
26
|
+
* This function scales them to match the rendered image dimensions and position.
|
|
27
|
+
*
|
|
28
|
+
* @param ooxml - Array of [x, y] coordinate pairs from OOXML (in EMUs, 0-based)
|
|
29
|
+
* @param imageRect - Rendered image rectangle in pt
|
|
30
|
+
* @returns Scaled polygon in absolute page coordinates (pt)
|
|
31
|
+
*/
|
|
32
|
+
export declare function scaleWrapPolygon(ooxml: number[][], imageRect: Rect): number[][];
|
|
33
|
+
/**
|
|
34
|
+
* Compute horizontal exclusion range for a line intersecting a wrapped image.
|
|
35
|
+
*
|
|
36
|
+
* For rectangular wrapping (Square/TopAndBottom):
|
|
37
|
+
* - Returns the image bounds + padding distances
|
|
38
|
+
*
|
|
39
|
+
* For polygon wrapping (Tight/Through):
|
|
40
|
+
* - Samples the polygon at the given Y coordinate
|
|
41
|
+
* - Returns the horizontal range occupied by the polygon at that height
|
|
42
|
+
*
|
|
43
|
+
* @param image - Image rectangle and wrap style
|
|
44
|
+
* @param lineY - Top Y coordinate of the text line (pt)
|
|
45
|
+
* @param lineHeight - Height of the text line (pt)
|
|
46
|
+
* @returns Exclusion range (left/right in pt), or null if no intersection
|
|
47
|
+
*/
|
|
48
|
+
export declare function computeWrapExclusion(image: {
|
|
49
|
+
rect: Rect;
|
|
50
|
+
wrap: WrapStyle;
|
|
51
|
+
}, lineY: number, lineHeight: number): {
|
|
52
|
+
left: number;
|
|
53
|
+
right: number;
|
|
54
|
+
} | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Engine contracts for Word-specific layout logic.
|
|
3
|
+
*
|
|
4
|
+
* These pure functions implement Word's layout mathematics and are consumed
|
|
5
|
+
* by both PM plugins and the standalone layout pipeline to ensure consistent results.
|
|
6
|
+
*
|
|
7
|
+
* Design principles:
|
|
8
|
+
* - Pure functions only (no DOM/PM dependencies)
|
|
9
|
+
* - Inputs/outputs in pt (points, 1/72 inch)
|
|
10
|
+
* - Deterministic (same input → same output)
|
|
11
|
+
* - Triple-tested (unit, PM-vs-layout parity, Word golden corpus)
|
|
12
|
+
*/
|
|
13
|
+
export * from './paragraph.js';
|
|
14
|
+
export * from './tabs.js';
|
|
15
|
+
export * from './lists.js';
|
|
16
|
+
export * from './image-wrap.js';
|
|
17
|
+
export * from './tables.js';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @superdoc/engines-lists contract
|
|
3
|
+
*
|
|
4
|
+
* Formats list labels and computes hanging indents for multi-level numbering.
|
|
5
|
+
* Extracted from PM list helpers and DOCX numbering utilities to ensure consistent
|
|
6
|
+
* marker generation across PM and layout.
|
|
7
|
+
*/
|
|
8
|
+
export interface NumberingLevel {
|
|
9
|
+
format: 'decimal' | 'lowerLetter' | 'upperLetter' | 'lowerRoman' | 'upperRoman' | 'bullet' | 'custom';
|
|
10
|
+
text: string;
|
|
11
|
+
start: number;
|
|
12
|
+
indent: {
|
|
13
|
+
left: number;
|
|
14
|
+
hanging: number;
|
|
15
|
+
};
|
|
16
|
+
alignment?: 'left' | 'center' | 'right';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Format a list label from a numbering level definition.
|
|
20
|
+
*
|
|
21
|
+
* Handles template substitution (e.g., "%1." → "1."), numbering formats
|
|
22
|
+
* (Arabic, Roman, alphabetic), and custom bullet characters.
|
|
23
|
+
*
|
|
24
|
+
* @param level - Numbering level definition
|
|
25
|
+
* @param indices - Array of indices for each level (e.g., [1, 2] for "1.b")
|
|
26
|
+
* @returns Formatted label text and estimated width in pt
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* formatListLabel(
|
|
30
|
+
* { format: 'decimal', text: '%1.', start: 1, ... },
|
|
31
|
+
* [3]
|
|
32
|
+
* ) // → { text: '3.', width: 12 }
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* formatListLabel(
|
|
36
|
+
* { format: 'lowerLetter', text: '%1)', start: 1, ... },
|
|
37
|
+
* [2]
|
|
38
|
+
* ) // → { text: 'b)', width: 10 }
|
|
39
|
+
*/
|
|
40
|
+
export declare function formatListLabel(level: NumberingLevel, indices: number[]): {
|
|
41
|
+
text: string;
|
|
42
|
+
width: number;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Compute hanging indent values for a list level.
|
|
46
|
+
*
|
|
47
|
+
* Returns the marker width, hanging indent (marker gutter), and first-line indent
|
|
48
|
+
* based on the level's DOCX-derived indent metadata.
|
|
49
|
+
*
|
|
50
|
+
* @param level - Numbering level definition
|
|
51
|
+
* @returns Indent values in pt
|
|
52
|
+
*/
|
|
53
|
+
export declare function computeListIndent(level: NumberingLevel): {
|
|
54
|
+
labelWidth: number;
|
|
55
|
+
hangingIndent: number;
|
|
56
|
+
firstLineIndent: number;
|
|
57
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @superdoc/engines-paragraph contract
|
|
3
|
+
*
|
|
4
|
+
* Resolves paragraph spacing and indentation from computed styles and numbering overrides.
|
|
5
|
+
* Consumed by both PM adapter and layout measurer to ensure consistent geometry.
|
|
6
|
+
*/
|
|
7
|
+
export interface ParagraphSpacing {
|
|
8
|
+
before: number;
|
|
9
|
+
after: number;
|
|
10
|
+
line: number;
|
|
11
|
+
lineUnit?: 'px' | 'multiplier';
|
|
12
|
+
lineRule: 'auto' | 'exact' | 'atLeast';
|
|
13
|
+
}
|
|
14
|
+
export interface ParagraphIndent {
|
|
15
|
+
left: number;
|
|
16
|
+
right: number;
|
|
17
|
+
firstLine: number;
|
|
18
|
+
hanging: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Minimal subset of ComputedStyle required for spacing/indent resolution.
|
|
22
|
+
* The full ComputedStyle lives in @superdoc/style-engine.
|
|
23
|
+
*/
|
|
24
|
+
export interface ParagraphStyleInput {
|
|
25
|
+
spacing?: {
|
|
26
|
+
before?: number;
|
|
27
|
+
after?: number;
|
|
28
|
+
line?: number;
|
|
29
|
+
lineRule?: 'auto' | 'exact' | 'atLeast';
|
|
30
|
+
};
|
|
31
|
+
indent?: {
|
|
32
|
+
left?: number;
|
|
33
|
+
right?: number;
|
|
34
|
+
firstLine?: number;
|
|
35
|
+
hanging?: number;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface NumberingStyleInput {
|
|
39
|
+
indent?: {
|
|
40
|
+
left?: number;
|
|
41
|
+
hanging?: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Resolve final spacing and indentation values from styles + numbering overrides.
|
|
46
|
+
*
|
|
47
|
+
* Word resolution rules:
|
|
48
|
+
* 1. Start with base paragraph style spacing/indent
|
|
49
|
+
* 2. Apply numbering definition overrides (if list item)
|
|
50
|
+
* 3. Apply direct formatting overrides
|
|
51
|
+
*
|
|
52
|
+
* @param style - Computed paragraph style slice
|
|
53
|
+
* @param numbering - Optional numbering overrides (for list items)
|
|
54
|
+
* @returns Resolved spacing and indent in pt
|
|
55
|
+
*/
|
|
56
|
+
export declare function resolveSpacingIndent(style: ParagraphStyleInput, numbering?: NumberingStyleInput): {
|
|
57
|
+
spacing: ParagraphSpacing;
|
|
58
|
+
indent: ParagraphIndent;
|
|
59
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @superdoc/engines-tables contract (placeholder)
|
|
3
|
+
*
|
|
4
|
+
* Column width resolution and row measurement for tables.
|
|
5
|
+
* This is a placeholder for future Phase 2 work (tables pod).
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* OOXML percentage divisor constant.
|
|
9
|
+
* OOXML stores percentages as 1/50ths of a percent:
|
|
10
|
+
* - 5000 = 100%
|
|
11
|
+
* - 2500 = 50%
|
|
12
|
+
* - 1000 = 20%
|
|
13
|
+
*/
|
|
14
|
+
export declare const OOXML_PCT_DIVISOR = 5000;
|
|
15
|
+
/**
|
|
16
|
+
* Table width attribute from OOXML format.
|
|
17
|
+
* Represents table width specification with different types.
|
|
18
|
+
*
|
|
19
|
+
* @property width - Width value (alternative to value property)
|
|
20
|
+
* @property value - Width value (alternative to width property)
|
|
21
|
+
* @property type - Width type: 'pct' for percentage, 'px' or 'pixel' for pixels
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // Percentage width (50%)
|
|
25
|
+
* { value: 2500, type: 'pct' }
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* // Pixel width
|
|
29
|
+
* { width: 600, type: 'px' }
|
|
30
|
+
*/
|
|
31
|
+
export interface TableWidthAttr {
|
|
32
|
+
width?: number;
|
|
33
|
+
value?: number;
|
|
34
|
+
type?: 'pct' | 'px' | 'pixel' | string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Extract a validated numeric width from a table width attribute object.
|
|
38
|
+
*
|
|
39
|
+
* Supports either `width` or `value` fields and rejects non-finite or non-positive
|
|
40
|
+
* values so callers can safely use the result in layout calculations.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveTableWidthAttr(value: unknown): {
|
|
43
|
+
width: number;
|
|
44
|
+
type?: TableWidthAttr['type'];
|
|
45
|
+
} | null;
|
|
46
|
+
export interface TableColumnSpec {
|
|
47
|
+
type: 'auto' | 'fixed' | 'pct';
|
|
48
|
+
width?: number;
|
|
49
|
+
minWidth?: number;
|
|
50
|
+
maxWidth?: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Resolve final column widths for a table.
|
|
54
|
+
*
|
|
55
|
+
* Implements Word's table width algorithm:
|
|
56
|
+
* - Fixed columns use their specified width
|
|
57
|
+
* - Percentage columns share proportionally
|
|
58
|
+
* - Auto columns distribute remaining space based on content
|
|
59
|
+
*
|
|
60
|
+
* @param columns - Column specifications from table grid
|
|
61
|
+
* @param availableWidth - Content area width in pt
|
|
62
|
+
* @returns Array of final column widths in pt
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* resolveColumnWidths(
|
|
66
|
+
* [
|
|
67
|
+
* { type: 'fixed', width: 100 },
|
|
68
|
+
* { type: 'auto' },
|
|
69
|
+
* { type: 'pct', width: 50 }
|
|
70
|
+
* ],
|
|
71
|
+
* 400
|
|
72
|
+
* ) // → [100, 150, 200] (fixed + auto + 50% of remaining)
|
|
73
|
+
*/
|
|
74
|
+
export declare function resolveColumnWidths(columns: TableColumnSpec[], availableWidth: number): number[];
|
|
75
|
+
/**
|
|
76
|
+
* Measure row heights for a table given column widths.
|
|
77
|
+
*
|
|
78
|
+
* Future implementation will:
|
|
79
|
+
* - Measure cell content at the specified column width
|
|
80
|
+
* - Handle vertical alignment (top/middle/bottom)
|
|
81
|
+
* - Account for cell padding and borders
|
|
82
|
+
* - Support min/max row heights
|
|
83
|
+
*
|
|
84
|
+
* @param cells - 2D array of cell content (by row, then column)
|
|
85
|
+
* @param columnWidths - Resolved column widths in pt
|
|
86
|
+
* @returns Array of row heights in pt
|
|
87
|
+
*/
|
|
88
|
+
export declare function measureRowHeights(cells: unknown[][], // Placeholder - will be CellContent[][] in real implementation
|
|
89
|
+
_columnWidths: number[]): number[];
|