@arbidocs/blocks 0.5.134 → 0.5.136
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/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs → ConnectedNativeDocxComparison-W4KIGO54.cjs} +8 -8
- package/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs.map → ConnectedNativeDocxComparison-W4KIGO54.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs → ConnectedStreamedWordArtifact-764NSXPQ.cjs} +8 -8
- package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs.map → ConnectedStreamedWordArtifact-764NSXPQ.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-UV3DLFCB.cjs} +3 -3
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-UV3DLFCB.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-PA2B7O7I.cjs → FilesViewerDialog-IFF2JR2A.cjs} +6 -6
- package/dist/{FilesViewerDialog-PA2B7O7I.cjs.map → FilesViewerDialog-IFF2JR2A.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-XZAEU5QU.cjs → NativeDocxEditor-KM6U4ZLA.cjs} +6 -6
- package/dist/{NativeDocxEditor-XZAEU5QU.cjs.map → NativeDocxEditor-KM6U4ZLA.cjs.map} +1 -1
- package/dist/{chunk-T2DUNNYY.cjs → chunk-C6DF6WB2.cjs} +745 -21
- package/dist/chunk-C6DF6WB2.cjs.map +1 -0
- package/dist/{chunk-64247UHS.cjs → chunk-DBGBAD4J.cjs} +4 -4
- package/dist/{chunk-64247UHS.cjs.map → chunk-DBGBAD4J.cjs.map} +1 -1
- package/dist/{chunk-UOZ237OW.cjs → chunk-FABKMTAI.cjs} +42 -5
- package/dist/chunk-FABKMTAI.cjs.map +1 -0
- package/dist/{chunk-L4Y6UMRC.cjs → chunk-FDRZJFNV.cjs} +5 -5
- package/dist/{chunk-L4Y6UMRC.cjs.map → chunk-FDRZJFNV.cjs.map} +1 -1
- package/dist/{chunk-O5WVYUFT.cjs → chunk-IEAZX7L6.cjs} +4 -4
- package/dist/{chunk-O5WVYUFT.cjs.map → chunk-IEAZX7L6.cjs.map} +1 -1
- package/dist/{chunk-2SWS7ESM.cjs → chunk-L62EU3TQ.cjs} +3 -3
- package/dist/{chunk-2SWS7ESM.cjs.map → chunk-L62EU3TQ.cjs.map} +1 -1
- package/dist/{chunk-IN3KXI3K.cjs → chunk-LG36LSVZ.cjs} +6 -6
- package/dist/{chunk-IN3KXI3K.cjs.map → chunk-LG36LSVZ.cjs.map} +1 -1
- package/dist/{chunk-RZSBHRQL.cjs → chunk-MMKMQZ2B.cjs} +5 -5
- package/dist/{chunk-RZSBHRQL.cjs.map → chunk-MMKMQZ2B.cjs.map} +1 -1
- package/dist/chunk-MMMGOZYH.cjs +18 -0
- package/dist/{chunk-KWD5Q4XH.cjs.map → chunk-MMMGOZYH.cjs.map} +1 -1
- package/dist/{chunk-V6SFJ44C.cjs → chunk-ZN2JXV65.cjs} +50 -13
- package/dist/chunk-ZN2JXV65.cjs.map +1 -0
- package/dist/connect/docx.cjs +12 -12
- package/dist/connect/index.cjs +86 -86
- package/dist/connect/viewer.cjs +4 -4
- package/dist/connection/docx/ConnectedNativeDocxEditor.js +39 -2
- package/dist/connection/docx/ConnectedNativeDocxEditor.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +43 -6
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/docx/NativeDocxEditor.d.ts +12 -1
- package/dist/docx/NativeDocxEditor.js +513 -20
- package/dist/docx/NativeDocxEditor.js.map +3 -3
- package/dist/docx/index.cjs +38 -38
- package/dist/docx/recoveryStore.d.ts +8 -0
- package/dist/docx/recoveryStore.js +208 -0
- package/dist/docx/recoveryStore.js.map +7 -0
- package/dist/docx/temporaryRecovery.d.ts +8 -0
- package/dist/docx/temporaryRecovery.js +37 -0
- package/dist/docx/temporaryRecovery.js.map +7 -0
- package/dist/index.cjs +72 -72
- package/dist/styles.css +1 -1
- package/dist/vite/index.cjs +11 -1
- package/dist/vite/index.cjs.map +1 -1
- package/dist/vite/index.d.ts +13 -0
- package/dist/vite/index.js +11 -1
- package/dist/vite/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +10 -10
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +18 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +2 -2
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +2 -2
- package/node_modules/@arbidocs/coedit/dist/commands.js +18 -1
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.cts → port-DXBNxZYw.d.cts} +2 -0
- package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.ts → port-DXBNxZYw.d.ts} +2 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs +16 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +16 -0
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +2 -2
- package/node_modules/@docx-editor.dev/core/README.md +25 -1
- package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +1 -0
- package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +21 -63
- package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +49 -40
- package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-CrPI9ZQc.d.ts} +714 -290
- package/node_modules/@docx-editor.dev/core/dist/chunk-23MKR33J.js +4 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2CWQY27B.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2DEY5NUC.cjs +32 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2DR4TH6B.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2F2UEAE2.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2GPGAFOJ.cjs +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ALD626VU.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-AU33YWEJ.js +236 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-AXU63LYW.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-CM5VZRBV.js +32 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-D7FAFFTN.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-DYUVJNDD.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ESYUKD5D.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-F7TGQMVR.js +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-FLW7KIQX.js +30 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-JG4A6W6I.js +7 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-JNGLSBPH.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-KE6ZWRIY.cjs +236 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-L3YXJDPX.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-LI42N7OW.cjs +4 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-PLKDS4JT.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-PXMTQ73F.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-R4R3AAE4.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-RFUNFTGV.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-SVM6PGMS.js +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-SZURLHR3.cjs +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-UYCGCVZ2.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-WN7ICTA5.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-X34QRAUU.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-XNBYG4XJ.cjs +30 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ZDFJW5XS.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ZWO4JHNN.cjs +7 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +29 -5
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +5 -6
- package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +3 -3
- package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +13 -10
- package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +2 -2
- package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +15 -13
- package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +135 -2
- package/node_modules/@docx-editor.dev/core/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
- package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/node_modules/@docx-editor.dev/core/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +14 -7
- package/node_modules/@docx-editor.dev/core/dist/{document-protection-CUb55pl_.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
- package/node_modules/@docx-editor.dev/core/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/node_modules/@docx-editor.dev/core/dist/{editor-CZQZmTIU.d.ts → editor-B7OOAAie.d.ts} +536 -283
- package/node_modules/@docx-editor.dev/core/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-CA6egMaK.d.ts +141 -0
- package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/editor.css +6 -4
- package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +834 -34
- package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -2
- package/node_modules/@docx-editor.dev/core/dist/export.d.ts +52 -21
- package/node_modules/@docx-editor.dev/core/dist/export.js +2 -2
- package/node_modules/@docx-editor.dev/core/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
- package/node_modules/@docx-editor.dev/core/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
- package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/index.d.ts +44 -27
- package/node_modules/@docx-editor.dev/core/dist/index.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-Ci_BTnSU.d.ts} +3 -2
- package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +276 -126
- package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/node_modules/@docx-editor.dev/core/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/output.d.ts +24 -10
- package/node_modules/@docx-editor.dev/core/dist/output.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{protocol-DYzzz2ej.d.ts → protocol-Cp_QzVxS.d.ts} +167 -5
- package/node_modules/@docx-editor.dev/core/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/revision-projection-OVusTS77.d.ts +258 -0
- package/node_modules/@docx-editor.dev/core/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/node_modules/@docx-editor.dev/core/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
- package/node_modules/@docx-editor.dev/core/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-DoK0lNjS.d.ts} +697 -608
- package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/store.d.ts +527 -123
- package/node_modules/@docx-editor.dev/core/dist/store.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{types-barrel-DuC5QBNC.d.ts → tree-op-types-Df4oY2u4.d.ts} +1723 -765
- package/node_modules/@docx-editor.dev/core/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DXhX1PE-.d.ts} +617 -428
- package/node_modules/@docx-editor.dev/core/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CF2625mv.d.ts} +28 -13
- package/node_modules/@docx-editor.dev/core/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
- package/node_modules/@docx-editor.dev/core/docs/accept-reject-without-scrolling.md +95 -0
- package/node_modules/@docx-editor.dev/core/docs/comment-on-found-text.md +72 -0
- package/node_modules/@docx-editor.dev/core/docs/custom-review-cards.md +178 -0
- package/node_modules/@docx-editor.dev/core/docs/highlight-ranges.md +48 -0
- package/node_modules/@docx-editor.dev/core/docs/index.md +36 -0
- package/node_modules/@docx-editor.dev/core/docs/propose-rewrite.md +247 -0
- package/node_modules/@docx-editor.dev/core/docs/tracked-replacement.md +68 -0
- package/node_modules/@docx-editor.dev/core/licenses/ECMA-376.md +29 -0
- package/node_modules/@docx-editor.dev/core/package.json +3 -2
- package/node_modules/@docx-editor.dev/react/README.md +71 -0
- package/node_modules/@docx-editor.dev/react/dist/index.d.mts +936 -86
- package/node_modules/@docx-editor.dev/react/dist/index.d.ts +936 -86
- package/node_modules/@docx-editor.dev/react/dist/index.js +3 -3
- package/node_modules/@docx-editor.dev/react/dist/index.mjs +3 -3
- package/node_modules/@docx-editor.dev/react/docs/accept-reject-without-scrolling.md +72 -0
- package/node_modules/@docx-editor.dev/react/docs/comment-on-found-text.md +47 -0
- package/node_modules/@docx-editor.dev/react/docs/custom-review-cards.md +105 -0
- package/node_modules/@docx-editor.dev/react/docs/highlight-ranges.md +25 -0
- package/node_modules/@docx-editor.dev/react/docs/index.md +36 -0
- package/node_modules/@docx-editor.dev/react/docs/propose-rewrite.md +247 -0
- package/node_modules/@docx-editor.dev/react/docs/tracked-replacement.md +45 -0
- package/node_modules/@docx-editor.dev/react/package.json +4 -3
- package/package.json +8 -8
- package/src/docx/styles.css +37 -7
- package/dist/chunk-KWD5Q4XH.cjs +0 -18
- package/dist/chunk-T2DUNNYY.cjs.map +0 -1
- package/dist/chunk-UOZ237OW.cjs.map +0 -1
- package/dist/chunk-V6SFJ44C.cjs.map +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-236O4YQW.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JPL6ZAS.cjs +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-6ZQP4HQ7.js +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-7WQ7AAHW.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-BCXH4BXB.js +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-BY2ACZZ6.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-CAJEXXVG.cjs +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-CPWLFPWC.js +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-D7ZMDMPX.cjs +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-DOHF6FA7.cjs +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-DVX32P2P.js +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-E4LOMDNL.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-EKLM7NWB.cjs +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-G3K63G7P.cjs +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-G4HOFIKJ.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-JLVBDYVQ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-LQX36Z5P.js +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-LSZ6KPKK.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-MM5QBMTE.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OMCG63ZF.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OSFOJTHU.cjs +0 -18
- package/node_modules/@docx-editor.dev/core/dist/chunk-RCLZXP3B.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-T6K2QYNZ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-TRGAVV2Y.js +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-U4JZVSOE.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-UHHYFIDT.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-W35WTWAO.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-YQ5G6LC7.js +0 -18
- package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-B8M79cfK.d.ts +0 -30
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-7o9xweiJ.d.ts +0 -84
- package/node_modules/@docx-editor.dev/core/dist/headless-document-view-pp3q7wIh.d.ts +0 -143
- package/node_modules/@docx-editor.dev/core/dist/image-resources-tXLQShoC.d.ts +0 -211
- package/node_modules/@docx-editor.dev/core/dist/omml-equation-BUbU0utM.d.ts +0 -85
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{R as DEFAULT_CANVAS_FONT_STACK,b as HARFBUZZ_SHAPING_LIBRARY,e as HarfBuzzShapingError,k as LayoutShapingConfigurationError,K as ResolvedCache,fa as SYNTHETIC_BOLD_ADVANCE_EM,z as WORD_SEGMENTER_LOCALE,$ as anchorLineY,C as boundedFallbackWordSegments,I as captureOperationSnapshot,ka as cellSelectionBetween,oa as cellSelectionRects,pa as cellSelectionText,_ as contentControlBoundaries,D as createBoundedFallbackWordBoundary,E as createDefaultWordBoundary,g as createHarfBuzzTextShaper,B as createIntlWordBoundary,ja as createLayoutScheduler,ha as createLayoutShapedMeasurer,r as createLayoutShaping,ga as createShapedMeasurer,t as disposeLayoutShaping,L as exportSourceRangeOf,M as forEachSemanticSpan,J as guardOperationSnapshot,f as harfBuzzFontValidator,c as initializeHarfBuzz,U as isCanvasMeasurementAvailable,x as isCumulativeGeometryTrustedFromLineOrigin,w as isGeometryTrustedCaretOffset,d as isHarfBuzzInitialized,A as isIntlWordSegmenterAvailable,v as isWholeGraphemeHorizontalBoundary,q as layoutFontConfigurationFingerprint,X as pageRefPageNumbersFromLayout,ia as pagesToMaterialize,ma as paragraphsInCells,Y as planRefFieldResultRefresh,o as prepareLayoutFontConfiguration,W as resolveDefaultSurfaceMeasurer,F as resolveDefaultWordBoundary,aa as reviewAnchorIndex,ba as reviewItemGeometry,a as roundFontUnitToFixedPoint,G as segmentWords,y as semanticHorizontalBoundaries,u as shapedHorizontalBoundaries,ea as shapedRunOutline,na as spansInCells,ua as tabLeaderPattern,qa as tableContextAt,V as tryCreateCanvasMeasurer,N as vectorShapeInkClip,H as wordSegmentsToGraphemeRecords}from'./chunk-SVM6PGMS.js';export{a as setHarfBuzzWasmUrl}from'./chunk-RIYSCEFQ.js';export{Q as AUTO_PARAGRAPH_SPACING_PT,oc as AUTO_PREFERRED_WIDTH,pc as CELL_PAD,J as COMPOUND_BORDER_MIN_GAP_PT,I as COMPOUND_BORDER_MIN_STROKE_PT,qc as DEFAULT_CELL_MARGINS,Aa as DEFAULT_PAGE_GEOMETRY,db as DEFAULT_REVISION_DISPLAY_MODE,ea as DEFAULT_RUN_STYLE,Dd as DEFAULT_SECTION_PROPERTIES,Bb as DEFAULT_TAB_INTERVAL_PT,Ab as DEFAULT_TAB_INTERVAL_TWIPS,ae as DEFAULT_VERTICAL_WEIGHT,cd as EMPTY_NUMBERING_INDEX,Db as EMPTY_TAB_STOPS,d as FontResolutionError,na as GRAPHEME_SEGMENTER_LOCALE,c as HARD_MAX_AGGREGATE_FONT_BYTES,a as HARD_MAX_FONT_BYTES,b as HARD_MAX_FONT_SOURCES,P as MAX_BORDER_SPACE_PT,O as MAX_BORDER_WIDTH_PT,Cd as MAX_DOCUMENT_SECTIONS,Zf as MAX_EACH_PAGE_MARK_CANDIDATES,$c as MAX_LVL_OVERRIDES,wc as MAX_LVL_TEXT_LENGTH,vc as MAX_MARKER_TEXT_LENGTH,Gf as MAX_NOTES_LAID_OUT,Hf as MAX_NOTE_FRAGMENTS,Yf as MAX_NOTE_OVERFLOW_PAGES,Xf as MAX_NOTE_REFLOW_ATTEMPTS,_c as MAX_NUMBERING_DEFINITIONS,N as MAX_PARAGRAPH_SPACING_PT,o as MAX_SHAPING_CONTEXT,id as MAX_STYLE_BASED_ON_DEPTH,Qe as MAX_STYLE_DEFINITIONS,cc as MAX_TABLE_BORDER_STROKES,Yd as MAX_TABLE_NESTING,nf as MAX_TABLE_ROW_FRAGMENTS,Zd as MAX_TABLE_ROW_HEIGHT_PT,zb as MAX_TAB_POSITION_TWIPS,yb as MAX_TAB_STOPS,yd as PAGE_BORDER_SIDES,S as PARAGRAPH_BORDER_SIDES,R as SINGLE_LINE_SPACING,Cb as TAB_LEADER_GLYPH,of as TablePaginationError,xa as UnsupportedScriptError,da as appliedSpaceBefore,W as applyLineSpacing,cg as attachNotesToLayout,E as automaticTextColor,ja as baselineShiftPtOf,jc as borderExtentPt,gc as borderWeight,aa as bottomBorderExtentPt,l as boundedStructuralFontValidator,ad as buildNumberingIndex,$f as buildPageRefIndex,Re as buildStyleCascadeTable,te as caretAt,ke as caretBoxOnLine,re as caretStops,se as caretStopsForBlocks,Se as cascadeParagraphFormatting,Ve as cascadeRunProperties,Ue as cascadedBottomBorder,Z as cascadedParagraphBorders,Eb as cascadedTabStops,xc as clampListValue,ca as collapsedSpaceBefore,ze as compositionAnchor,L as compoundBorderStrokesForExtentPt,K as computeDoubleBorderMetricsPt,bg as computeFootnoteReserves,he as contentControlAtPoint,qe as contentControlAtSemantic,zf as contentControlHoldingParagraph,yf as contentControlRecordsInPart,ue as contentControlsInLayout,Na as contentControlsOfLayout,sf as createDocumentFurnitureSource,vf as createDocumentLinkProjectors,tf as createDocumentNotesInput,ef as createDocumentStyleDependencies,wf as createFieldLinkRegistry,ma as createFixedMeasurer,m as createFontResourceSnapshot,hg as createLayoutSession,pd as createListCounterState,Oe as createParagraphLayoutCache,u as createShapedRun,r as createShapingEnvironment,tb as createUnsupportedContentProjector,Nf as defaultNoteSeparatorRuleStyle,Hb as defaultTabIntervalFromSettings,xe as deletedTextBoundaries,vd as deriveNoteDisplayMarks,wd as deriveNoteDisplayMarksResolved,ga as displayText,Xa as documentOrder,uf as documentRelationshipTargetIn,bc as effectiveBorderSide,Pa as effectiveContentControlLock,vb as emptyTocPlaceholderParagraphIds,wb as emptyTocSuppressedResultParagraphIds,Jd as enumerateDocumentSections,Ld as enumerateDocumentSectionsBounded,Ya as everyStoryOrder,Fc as expandLvlText,ag as filterRefsOnPage,le as findDrawingOverlayFrameInLayout,Kf as findSeparatorNote,n as fixedPoint,h as fontRequestKey,Ja as forEachSemanticDrawing,Ha as forEachSemanticStory,Ka as forEachStoryParagraphFragment,yc as formatDecimal,zc as formatDecimalZero,Dc as formatLowerLetter,Bc as formatLowerRoman,Ec as formatNumFmt,Vc as formatPageNumber,nb as formatRevisionOf,Cc as formatUpperLetter,Ac as formatUpperRoman,_f as fragmentOwnsAtomOffset,La as fragmentsOfParagraph,Md as geometryOfSection,ka as glyphSizeFactorOf,qa as graphemeBoundaryEpoch,ua as graphemeCount,wa as graphemeOffsetToUtf16,sb as groupPictureLayerDrawing,ee as hitTestPage,pe as hitTestSemantic,ge as hitTestSheet,pa as intlGraphemeBoundary,ce as isFurniturePoint,oa as isIntlSegmenterAvailable,Of as isMarkerOnlySeparatorNote,ed as isValidStyleId,ya as itemizeScriptFontSlots,Ee as keyedRangeRects,tc as layoutEquation,rf as layoutHeaderFooterStory,Mf as layoutNoteById,Pf as layoutNoteSeparator,Lf as layoutNoteStory,ig as layoutSemanticDocument,Ma as lineAtPosition,ie as lineEndOffset,Qa as lineSegments,Ea as linesOf,Lb as listMarkerBox,lb as markRevisionRemovesMark,ha as measureDisplayText,od as mergeListIndent,ye as moveCaret,Ib as nextTabDestination,Jf as normalNotesOf,xd as noteDisplayMarkMap,If as noteLineIdPrefix,Ud as noteMarkKey,Rf as noteSeparatorAreaBox,Ff as noteSeparatorRuleBox,$e as noteStoryBlocks,be as pageAtY,Ef as pageBorderFrame,Ad as pageBordersFingerprint,$ as paragraphBorderExtentPt,_ as paragraphBorderStrokeWidthPt,Y as paragraphBorders,ba as paragraphBordersFingerprint,M as paragraphBreaksBefore,X as paragraphContextualSpacing,Ca as paragraphFragmentsOf,Da as paragraphFragmentsOfBlocks,Ne as paragraphLayoutKey,V as paragraphLineSpacing,kc as paragraphMarkDeleted,jb as paragraphMarkFormatRevisionOf,mb as paragraphMarkRevisionOf,ib as paragraphMarkRevisionsOf,Hd as paragraphSectionNode,C as paragraphShading,D as paragraphShadingBox,U as paragraphSpacing,Fb as paragraphTabStops,we as paragraphTextFromLayout,Pc as parseAutonumInstruction,zd as parsePageBorders,Ed as parsePageNumbering,Oc as parseRefInstruction,Fd as parseSectionProperties,Qb as positionPastDeletion,Vd as projectedNoteMarkText,Kd as projectedSectionSourceIndexes,dg as provisionalNoteMarks,dc as readBorderSide,fc as readCellBorders,rd as readNumPr,Id as readSectionProperties,ec as readTableBorders,_d as readTableStructure,ta as resetGraphemeBoundary,hc as resolveBorderConflict,bd as resolveNumberingLevel,A as resolveOoxmlShadingFill,We as resolveParagraphLayoutInputs,fa as resolveRunStyle,td as resolveStoryListItems,Pd as resolveStoryRefFields,z as resolveStrictHexFill,ic as resolveTableCellBorderGrid,gb as revisionAuthorFilter,mc as revisionRemovesParagraph,ob as revisionsAreDeletion,hb as revisionsVisible,dd as runBorderStrokesForLine,ia as runStylesEqual,ra as segmentGraphemes,Be as selectionRects,sa as setGraphemeBoundary,B as shadingFillFromElement,v as shapedRunComparatorInputs,t as shapingEnvironmentFingerprint,s as shapingEnvironmentFingerprintInputs,kb as shownMarkRevision,je as spanOffsetX,Ae as spansInSelection,_e as storyBlocks,za as styleForFontSlot,Qf as syntheticSeparatorBox,Jb as tabAdvanceWidth,Kb as tabStopsFingerprint,Xd as tableOriginX,ub as tocFieldChromeParagraphIds,Oa as unionLayoutBoxes,va as utf16OffsetToGrapheme,Qc as walkStoryParagraphs,Gb as withDefaultTabInterval,sd as withNumberingStyleLinks,ud as withResolvedListItems,ne as wordBoundary}from'./chunk-CM5VZRBV.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';export{bd as MAX_SDT_NESTING,qm as MAX_TABLE_COLUMNS,wj as W15_NAMESPACE_URI,_k as activeReviewItem,gd as collectFlowBlocks,El as commentBodyText,Gl as commentInitials,fd as contentControlContentChildren,Wk as firstReviewRange,cd as isContentControl,dd as isContentControlContent,d as mapSymbolPuaText,zk as paragraphOrderOfPart,Qk as reviewItemKey,Xk as reviewItemPositionRank,Vk as reviewItemRanges,Yk as reviewItemsAt,$k as reviewThreadRootOf,f as sha256FontBytes}from'./chunk-AU33YWEJ.js';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/** A 2D affine matrix `[a, b, c, d, e, f]`: x' = a·x + c·y + e, y' = b·x + d·y + f. @internal */
|
|
2
|
+
type MetafileMatrix = readonly [number, number, number, number, number, number];
|
|
3
|
+
/** One path command in canvas pixels, y down. @internal */
|
|
4
|
+
type MetafilePathCommand = {
|
|
5
|
+
readonly op: 'M' | 'L';
|
|
6
|
+
readonly x: number;
|
|
7
|
+
readonly y: number;
|
|
8
|
+
} | {
|
|
9
|
+
readonly op: 'C';
|
|
10
|
+
readonly x1: number;
|
|
11
|
+
readonly y1: number;
|
|
12
|
+
readonly x2: number;
|
|
13
|
+
readonly y2: number;
|
|
14
|
+
readonly x: number;
|
|
15
|
+
readonly y: number;
|
|
16
|
+
} | {
|
|
17
|
+
readonly op: 'Z';
|
|
18
|
+
};
|
|
19
|
+
/** A solid paint: 0–255 channels and 0–1 alpha. @internal */
|
|
20
|
+
interface MetafilePaint {
|
|
21
|
+
readonly r: number;
|
|
22
|
+
readonly g: number;
|
|
23
|
+
readonly b: number;
|
|
24
|
+
readonly alpha: number;
|
|
25
|
+
}
|
|
26
|
+
/** The face a text command names. @internal */
|
|
27
|
+
interface MetafileFont {
|
|
28
|
+
readonly family: string;
|
|
29
|
+
readonly sizePx: number;
|
|
30
|
+
readonly bold: boolean;
|
|
31
|
+
readonly italic: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** Raster content a metafile draws. @internal */
|
|
34
|
+
type MetafileRaster = {
|
|
35
|
+
readonly kind: 'rgba';
|
|
36
|
+
readonly width: number;
|
|
37
|
+
readonly height: number;
|
|
38
|
+
readonly data: Uint8Array;
|
|
39
|
+
} | {
|
|
40
|
+
readonly kind: 'encoded';
|
|
41
|
+
readonly mime: 'image/png' | 'image/jpeg';
|
|
42
|
+
readonly width: number;
|
|
43
|
+
readonly height: number;
|
|
44
|
+
readonly bytes: Uint8Array;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* One recorded drawing command. Paths are in canvas pixels with the transform already
|
|
48
|
+
* applied. `matrix` on an image maps its unit square (y down) into canvas pixels; on text and
|
|
49
|
+
* a nested drawing it is the transform in force when it was drawn.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
type MetafileCommand = {
|
|
53
|
+
readonly kind: 'save';
|
|
54
|
+
} | {
|
|
55
|
+
readonly kind: 'restore';
|
|
56
|
+
} | {
|
|
57
|
+
readonly kind: 'fill';
|
|
58
|
+
readonly path: readonly MetafilePathCommand[];
|
|
59
|
+
readonly evenOdd: boolean;
|
|
60
|
+
readonly paint: MetafilePaint;
|
|
61
|
+
} | {
|
|
62
|
+
readonly kind: 'stroke';
|
|
63
|
+
readonly path: readonly MetafilePathCommand[];
|
|
64
|
+
readonly width: number;
|
|
65
|
+
readonly dash: readonly number[];
|
|
66
|
+
readonly paint: MetafilePaint;
|
|
67
|
+
} | {
|
|
68
|
+
readonly kind: 'clip';
|
|
69
|
+
readonly path: readonly MetafilePathCommand[];
|
|
70
|
+
readonly evenOdd: boolean;
|
|
71
|
+
} | {
|
|
72
|
+
readonly kind: 'image';
|
|
73
|
+
readonly raster: MetafileRaster;
|
|
74
|
+
readonly matrix: MetafileMatrix;
|
|
75
|
+
} | {
|
|
76
|
+
readonly kind: 'text';
|
|
77
|
+
readonly text: string;
|
|
78
|
+
readonly font: MetafileFont;
|
|
79
|
+
readonly x: number;
|
|
80
|
+
readonly y: number;
|
|
81
|
+
readonly align: 'left' | 'center' | 'right';
|
|
82
|
+
readonly baseline: 'alphabetic' | 'top' | 'bottom' | 'middle';
|
|
83
|
+
readonly matrix: MetafileMatrix;
|
|
84
|
+
readonly paint: MetafilePaint;
|
|
85
|
+
} | {
|
|
86
|
+
readonly kind: 'drawing';
|
|
87
|
+
readonly drawing: MetafileDrawing;
|
|
88
|
+
readonly matrix: MetafileMatrix;
|
|
89
|
+
};
|
|
90
|
+
/** A replayed metafile: its canvas size in pixels and its commands in order. @internal */
|
|
91
|
+
interface MetafileDrawing {
|
|
92
|
+
readonly width: number;
|
|
93
|
+
readonly height: number;
|
|
94
|
+
readonly commands: readonly MetafileCommand[];
|
|
95
|
+
}
|
|
96
|
+
/** What a metafile renderer reads beside the bytes. @internal */
|
|
97
|
+
interface MetafileRenderOptions {
|
|
98
|
+
/** Advance width of `text` in `font`, in pixels at `font.sizePx`. */
|
|
99
|
+
readonly textAdvance: (text: string, font: MetafileFont) => number;
|
|
100
|
+
}
|
|
101
|
+
/** A replayed metafile. `complete` is false when a bound stopped recording early. @internal */
|
|
102
|
+
interface MetafileReplay {
|
|
103
|
+
readonly drawing: MetafileDrawing;
|
|
104
|
+
readonly complete: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type { MetafileFont as M, MetafileReplay as a, MetafileCommand as b, MetafileDrawing as c, MetafileMatrix as d, MetafilePaint as e, MetafilePathCommand as f, MetafileRaster as g, MetafileRenderOptions as h };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OoxmlPart,
|
|
1
|
+
import { O as OoxmlPart, a4 as OoxmlNode, a5 as OoxmlPackage } from './tree-op-types-Df4oY2u4.js';
|
|
2
2
|
|
|
3
3
|
/** `w:pos` — where a section's footnotes are laid out. */
|
|
4
4
|
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkLI42N7OW_cjs=require('./chunk-LI42N7OW.cjs');require('./chunk-SZURLHR3.cjs'),require('./chunk-2DEY5NUC.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"DEFAULT_FIELD_SHADING",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.p}});Object.defineProperty(exports,"collectPageChangeBars",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.j}});Object.defineProperty(exports,"lumTransfer",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.k}});Object.defineProperty(exports,"observeUnsupportedElements",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.a}});Object.defineProperty(exports,"paintSelectionOverlay",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.u}});Object.defineProperty(exports,"paintSemanticLayout",{enumerable:true,get:function(){return chunkLI42N7OW_cjs.s}});
|
|
@@ -8,14 +8,17 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
import { R as ReviewAuthorInfo } from './semantic-paint-
|
|
12
|
-
export { B as BreakMarkStrings, C as ChangeBarsMode, D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PageChangeBars,
|
|
13
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
11
|
+
import { R as ReviewAuthorInfo } from './semantic-paint-B5JcIv9c.js';
|
|
12
|
+
export { B as BreakMarkStrings, C as ChangeBarsMode, D as DEFAULT_FIELD_SHADING, F as FieldShadingMode, P as PageChangeBars, d as PaintOptions, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles, e as collectPageChangeBars, p as paintSemanticLayout } from './semantic-paint-B5JcIv9c.js';
|
|
13
|
+
import { S as SemanticLayout } from './semantic-records-DoK0lNjS.js';
|
|
14
|
+
export { U as UnsupportedElement, e as UnsupportedElementLayout, f as UnsupportedElementRule } from './semantic-records-DoK0lNjS.js';
|
|
15
|
+
export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-CUojsaCr.js';
|
|
16
|
+
export { D as DrawingGraphicKind, a as DrawingSupport, b as DrawingSupportIssue } from './drawing-graphic-kind-CXYGYbB3.js';
|
|
17
|
+
import './revision-projection-OVusTS77.js';
|
|
18
|
+
import './tree-op-types-Df4oY2u4.js';
|
|
19
|
+
import './editor-scope-CA6egMaK.js';
|
|
20
|
+
import './semantic-record-queries-DnO8J5_j.js';
|
|
21
|
+
import './tree-package-store-DXhX1PE-.js';
|
|
19
22
|
|
|
20
23
|
/** A rectangle in page-content coordinates, on a named page. */
|
|
21
24
|
interface OverlayRect {
|
|
@@ -92,5 +95,16 @@ interface SelectionOverlayOptions {
|
|
|
92
95
|
*/
|
|
93
96
|
declare function paintSelectionOverlay(layer: HTMLElement, layout: SemanticLayout, rects: readonly OverlayRect[], options: SelectionOverlayOptions): void;
|
|
94
97
|
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
/** `out = slope * in + intercept` over sRGB channels in [0, 1]. */
|
|
99
|
+
interface LumTransfer {
|
|
100
|
+
readonly slope: number;
|
|
101
|
+
readonly intercept: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Word's `a:lum` transfer for `bright`/`contrast` given in percent (`70.001` for `70001`).
|
|
105
|
+
* Returns `null` for the identity transfer and for non-finite input.
|
|
106
|
+
*/
|
|
107
|
+
declare function lumTransfer(brightPercent: number, contrastPercent: number): LumTransfer | null;
|
|
108
|
+
|
|
109
|
+
export { ReviewAuthorInfo, lumTransfer, paintSelectionOverlay };
|
|
110
|
+
export type { LumTransfer, OverlayRect, SelectionOverlayOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{p as DEFAULT_FIELD_SHADING,j as collectPageChangeBars,k as lumTransfer,a as observeUnsupportedElements,u as paintSelectionOverlay,s as paintSemanticLayout}from'./chunk-23MKR33J.js';import'./chunk-SVM6PGMS.js';import'./chunk-RIYSCEFQ.js';import'./chunk-CM5VZRBV.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-AU33YWEJ.js';
|
package/node_modules/@docx-editor.dev/core/dist/{protocol-DYzzz2ej.d.ts → protocol-Cp_QzVxS.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { aB as AutomationTableMutation, Q as RevisionBatchResult, K as RevisionAuthorResult } from './tree-op-types-Df4oY2u4.js';
|
|
2
|
+
import { H as HeaderFooterVariant, N as NoteKind } from './tree-package-store-DXhX1PE-.js';
|
|
3
3
|
|
|
4
4
|
/** Word's shape types, as `Word.ShapeType` spells them. */
|
|
5
5
|
type AutomationShapeType = 'TextBox' | 'GeometricShape' | 'Picture' | 'Group' | 'Canvas' | 'Unsupported';
|
|
@@ -162,6 +162,25 @@ type AutomationAuthoringOperation = {
|
|
|
162
162
|
readonly op: 'setFieldCode';
|
|
163
163
|
readonly field: AutomationHandle;
|
|
164
164
|
readonly code: string;
|
|
165
|
+
}
|
|
166
|
+
/** The text of a field's cached result, read as a range over the field reads it. */
|
|
167
|
+
| {
|
|
168
|
+
readonly op: 'getFieldResult';
|
|
169
|
+
readonly field: AutomationHandle;
|
|
170
|
+
readonly projection?: AutomationTextProjection;
|
|
171
|
+
}
|
|
172
|
+
/** Replace a field's cached result with plain text. The instruction never changes. */
|
|
173
|
+
| {
|
|
174
|
+
readonly op: 'setFieldResult';
|
|
175
|
+
readonly field: AutomationHandle;
|
|
176
|
+
readonly text: string;
|
|
177
|
+
}
|
|
178
|
+
/** Insert the one equation a Flat OPC package holds. See `equation-snippet.ts`. */
|
|
179
|
+
| {
|
|
180
|
+
readonly op: 'insertOoxml';
|
|
181
|
+
readonly span: AutomationSpanRef;
|
|
182
|
+
readonly location: 'Before' | 'After' | 'Start' | 'End' | 'Replace';
|
|
183
|
+
readonly ooxml: string;
|
|
165
184
|
} | {
|
|
166
185
|
readonly op: 'insertField';
|
|
167
186
|
readonly span: AutomationSpanRef;
|
|
@@ -189,6 +208,15 @@ type AutomationAuthoringOperation = {
|
|
|
189
208
|
readonly table: AutomationHandle;
|
|
190
209
|
readonly rowIndex: number;
|
|
191
210
|
readonly cellIndex: number;
|
|
211
|
+
}
|
|
212
|
+
/** The cell a merge of this rectangle merges into, read before the merge applies. */
|
|
213
|
+
| {
|
|
214
|
+
readonly op: 'getMergedTableCell';
|
|
215
|
+
readonly table: AutomationHandle;
|
|
216
|
+
readonly topRow: number;
|
|
217
|
+
readonly firstCell: number;
|
|
218
|
+
readonly bottomRow: number;
|
|
219
|
+
readonly lastCell: number;
|
|
192
220
|
} | {
|
|
193
221
|
readonly op: 'getTableCellProperties' | 'getTableCellBody';
|
|
194
222
|
readonly cell: AutomationHandle;
|
|
@@ -199,6 +227,8 @@ type AutomationAuthoringOperation = {
|
|
|
199
227
|
kind: 'cell';
|
|
200
228
|
} | {
|
|
201
229
|
kind: 'insertRows';
|
|
230
|
+
} | {
|
|
231
|
+
kind: 'splitCell';
|
|
202
232
|
}>;
|
|
203
233
|
} | {
|
|
204
234
|
readonly op: 'updateTableCell';
|
|
@@ -208,6 +238,13 @@ type AutomationAuthoringOperation = {
|
|
|
208
238
|
} | {
|
|
209
239
|
kind: 'insertRows';
|
|
210
240
|
}>, 'kind' | 'cellId'>;
|
|
241
|
+
}
|
|
242
|
+
/** Split one cell into `rowCount` by `columnCount` cells. */
|
|
243
|
+
| {
|
|
244
|
+
readonly op: 'splitTableCell';
|
|
245
|
+
readonly cell: AutomationHandle;
|
|
246
|
+
readonly rowCount: number;
|
|
247
|
+
readonly columnCount: number;
|
|
211
248
|
} | {
|
|
212
249
|
readonly op: 'insertTable';
|
|
213
250
|
readonly span: AutomationSpanRef;
|
|
@@ -344,16 +381,20 @@ type AutomationSpanRef = {
|
|
|
344
381
|
readonly body: AutomationHandle;
|
|
345
382
|
};
|
|
346
383
|
/**
|
|
347
|
-
* Where to look for content controls: a whole story,
|
|
384
|
+
* Where to look for content controls: a whole story, inside one control, or across a span.
|
|
348
385
|
*
|
|
349
386
|
* A control's own scope is how nesting is expressed. Listing every control of a story flat
|
|
350
387
|
* would answer a form field and the group wrapping it as siblings, which is not what either of
|
|
351
|
-
* them is.
|
|
388
|
+
* them is. A SPAN scope is the exception on purpose: it answers every control the span
|
|
389
|
+
* overlaps, at any depth, including a control that holds the whole span, because a caller asks
|
|
390
|
+
* a range for its controls to learn what an edit through it would touch.
|
|
352
391
|
*/
|
|
353
392
|
type AutomationContentControlScope = {
|
|
354
393
|
readonly body: AutomationHandle;
|
|
355
394
|
} | {
|
|
356
395
|
readonly contentControl: AutomationHandle;
|
|
396
|
+
} | {
|
|
397
|
+
readonly span: AutomationSpanRef;
|
|
357
398
|
};
|
|
358
399
|
/** The value a control accepts, by what kind of control it is. */
|
|
359
400
|
type AutomationContentControlValue = {
|
|
@@ -496,6 +537,35 @@ type AutomationOperation = AutomationAuthoringOperation | {
|
|
|
496
537
|
readonly span: AutomationSpanRef;
|
|
497
538
|
readonly projection?: AutomationTextProjection;
|
|
498
539
|
}
|
|
540
|
+
/**
|
|
541
|
+
* A span split into ranges that each end after one of `endingMarks`, or at a paragraph end.
|
|
542
|
+
*
|
|
543
|
+
* Boundaries come from the model text, so a field, an equation, or another atom is never
|
|
544
|
+
* split. `trimSpacing` removes spaces, tabs, and column breaks from each range's edges and
|
|
545
|
+
* drops a range left empty. A range the projection shows no character of is not answered.
|
|
546
|
+
*/
|
|
547
|
+
| {
|
|
548
|
+
readonly op: 'getTextRanges';
|
|
549
|
+
readonly scope: AutomationSpanRef;
|
|
550
|
+
readonly endingMarks: readonly string[];
|
|
551
|
+
readonly trimSpacing?: boolean;
|
|
552
|
+
readonly projection?: AutomationTextProjection;
|
|
553
|
+
}
|
|
554
|
+
/** The smallest span covering both spans. Both must be in one story. */
|
|
555
|
+
| {
|
|
556
|
+
readonly op: 'expandSpan';
|
|
557
|
+
readonly span: AutomationSpanRef;
|
|
558
|
+
readonly to: AutomationSpanRef;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* A span's text as if every pending revision were accepted (`current`) or rejected
|
|
562
|
+
* (`original`), with a carriage return at each paragraph mark that view keeps.
|
|
563
|
+
*/
|
|
564
|
+
| {
|
|
565
|
+
readonly op: 'getReviewedText';
|
|
566
|
+
readonly span: AutomationSpanRef;
|
|
567
|
+
readonly version: 'original' | 'current';
|
|
568
|
+
}
|
|
499
569
|
/**
|
|
500
570
|
* A paragraph's own identity as the DOCUMENT writes it (`w14:paraId`).
|
|
501
571
|
*
|
|
@@ -877,6 +947,50 @@ type AutomationOperation = AutomationAuthoringOperation | {
|
|
|
877
947
|
readonly op: 'getBookmarkRange';
|
|
878
948
|
readonly bookmark: AutomationHandle;
|
|
879
949
|
}
|
|
950
|
+
/**
|
|
951
|
+
* The names of the bookmarks a span overlaps, in document order: `Range.getBookmarks`.
|
|
952
|
+
*
|
|
953
|
+
* A non-empty span holds a bookmark when the two share text, and a point bookmark when the
|
|
954
|
+
* point is inside the span. An empty span holds the bookmarks around it. `includeAdjacent`
|
|
955
|
+
* adds the bookmarks that only touch the span; `includeHidden` adds names starting with `_`.
|
|
956
|
+
*/
|
|
957
|
+
| {
|
|
958
|
+
readonly op: 'getBookmarkNames';
|
|
959
|
+
readonly scope: AutomationSpanRef;
|
|
960
|
+
readonly includeHidden: boolean;
|
|
961
|
+
readonly includeAdjacent: boolean;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* The range of the bookmark with this name, compared without case, in any story: main text
|
|
965
|
+
* first, then headers, footers and notes. Answers no span when nothing declares the name.
|
|
966
|
+
*/
|
|
967
|
+
| {
|
|
968
|
+
readonly op: 'getBookmarkRangeByName';
|
|
969
|
+
readonly document: AutomationHandle;
|
|
970
|
+
readonly name: string;
|
|
971
|
+
}
|
|
972
|
+
/**
|
|
973
|
+
* Add a bookmark around a span, or at a point. A bookmark any story declares under the same
|
|
974
|
+
* name, compared without case, moves here in the same write.
|
|
975
|
+
*/
|
|
976
|
+
| {
|
|
977
|
+
readonly op: 'insertBookmark';
|
|
978
|
+
readonly span: AutomationSpanRef;
|
|
979
|
+
readonly name: string;
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Remove a bookmark: by name anywhere in the document, or the one a handle names. The text
|
|
983
|
+
* stays. A name nothing declares is not an error and changes nothing.
|
|
984
|
+
*/
|
|
985
|
+
| {
|
|
986
|
+
readonly op: 'deleteBookmark';
|
|
987
|
+
readonly target: {
|
|
988
|
+
readonly document: AutomationHandle;
|
|
989
|
+
readonly name: string;
|
|
990
|
+
} | {
|
|
991
|
+
readonly bookmark: AutomationHandle;
|
|
992
|
+
};
|
|
993
|
+
}
|
|
880
994
|
/**
|
|
881
995
|
* The comments anchored in a scope, in document order — the TOP-LEVEL ones.
|
|
882
996
|
*
|
|
@@ -990,6 +1104,31 @@ type AutomationOperation = AutomationAuthoringOperation | {
|
|
|
990
1104
|
readonly op: 'getRevisions';
|
|
991
1105
|
readonly body: AutomationHandle;
|
|
992
1106
|
}
|
|
1107
|
+
/**
|
|
1108
|
+
* The listed tracked changes whose characters a span overlaps, in document order. A collapsed
|
|
1109
|
+
* span lists the changes it touches. Handles are the story-wide listing's handles.
|
|
1110
|
+
*/
|
|
1111
|
+
| {
|
|
1112
|
+
readonly op: 'getRevisions';
|
|
1113
|
+
readonly scope: AutomationSpanRef;
|
|
1114
|
+
}
|
|
1115
|
+
/**
|
|
1116
|
+
* The listed tracked changes a review-queue key names: one, or the two halves of a paired
|
|
1117
|
+
* replacement. A key naming nothing answers no handles.
|
|
1118
|
+
*/
|
|
1119
|
+
| {
|
|
1120
|
+
readonly op: 'getRevisions';
|
|
1121
|
+
readonly key: string;
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* The stretch a review-queue key names: `revision-<id>`, a paired `revision-replace:<a>+<b>`,
|
|
1125
|
+
* or `comment-<id>`. Answers `spans` holding one span covering every range of the item, or no
|
|
1126
|
+
* span when the key names nothing this document holds.
|
|
1127
|
+
*/
|
|
1128
|
+
| {
|
|
1129
|
+
readonly op: 'getReviewItemRange';
|
|
1130
|
+
readonly key: string;
|
|
1131
|
+
}
|
|
993
1132
|
/** Resolve eligible decisions in one story. Omit revisions to select every canonical decision. */
|
|
994
1133
|
| {
|
|
995
1134
|
readonly op: 'resolveRevisionBatch';
|
|
@@ -1061,6 +1200,24 @@ type AutomationOperation = AutomationAuthoringOperation | {
|
|
|
1061
1200
|
readonly op: 'rejectAllRevisions';
|
|
1062
1201
|
readonly document: AutomationHandle;
|
|
1063
1202
|
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Accept or reject every change a span overlaps, or the changes a review-queue key names, as
|
|
1205
|
+
* one transaction. Structural changes absent from listings are included. Refused whole when
|
|
1206
|
+
* any of them is read-only or cannot be resolved, and when the key names nothing.
|
|
1207
|
+
*/
|
|
1208
|
+
| {
|
|
1209
|
+
readonly op: 'acceptAllRevisions';
|
|
1210
|
+
readonly scope: AutomationSpanRef;
|
|
1211
|
+
} | {
|
|
1212
|
+
readonly op: 'rejectAllRevisions';
|
|
1213
|
+
readonly scope: AutomationSpanRef;
|
|
1214
|
+
} | {
|
|
1215
|
+
readonly op: 'acceptAllRevisions';
|
|
1216
|
+
readonly key: string;
|
|
1217
|
+
} | {
|
|
1218
|
+
readonly op: 'rejectAllRevisions';
|
|
1219
|
+
readonly key: string;
|
|
1220
|
+
}
|
|
1064
1221
|
/**
|
|
1065
1222
|
* Put the reader's selection on a span. Requires the `selection` capability, so a headless
|
|
1066
1223
|
* host refuses it rather than pretending to have a caret.
|
|
@@ -1493,6 +1650,11 @@ type AutomationValue = {
|
|
|
1493
1650
|
} | {
|
|
1494
1651
|
readonly kind: 'text';
|
|
1495
1652
|
readonly text: string;
|
|
1653
|
+
}
|
|
1654
|
+
/** Several strings, in document order: the names of the bookmarks a range holds. */
|
|
1655
|
+
| {
|
|
1656
|
+
readonly kind: 'texts';
|
|
1657
|
+
readonly texts: readonly string[];
|
|
1496
1658
|
} | {
|
|
1497
1659
|
readonly kind: 'span';
|
|
1498
1660
|
readonly span: AutomationSpan;
|
|
@@ -1648,4 +1810,4 @@ interface AutomationHost {
|
|
|
1648
1810
|
dispose(): void;
|
|
1649
1811
|
}
|
|
1650
1812
|
|
|
1651
|
-
export type { AutomationOperation as A,
|
|
1813
|
+
export type { AutomationOperation as A, AutomationOperationKind as B, AutomationOperationResult as C, AutomationPageOrientation as D, AutomationPageSetupRead as E, AutomationPageSetupWrite as F, AutomationParagraphFormatRead as G, AutomationParagraphFormatWrite as H, AutomationParagraphRef as I, AutomationPoint as J, AutomationReadingOrder as K, AutomationSaveResult as L, AutomationSearchOptions as M, AutomationSelectionMode as N, AutomationShapeRead as O, AutomationShapeType as P, AutomationSpan as Q, AutomationSpanRef as R, AutomationTextProjection as S, AutomationUnsubscribe as T, AutomationValue as U, AutomationCapabilities as a, AutomationHost as b, AutomationAlignment as c, AutomationAuthoringOperation as d, AutomationBatchRequest as e, AutomationBatchResponse as f, AutomationChangeEvent as g, AutomationContentControlLock as h, AutomationContentControlRangeLocation as i, AutomationContentControlScope as j, AutomationContentControlSubtype as k, AutomationContentControlValue as l, AutomationCustomNodePayload as m, AutomationEndpoint as n, AutomationError as o, AutomationErrorCode as p, AutomationFontRead as q, AutomationFontWrite as r, AutomationHandle as s, AutomationHandleRef as t, AutomationInlinePictureRead as u, AutomationInlinePictureWrite as v, AutomationListBullet as w, AutomationListLevelFormat as x, AutomationListNumbering as y, AutomationObjectKind as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a4 as OoxmlNode, av as OoxmlElement, aw as OoxmlContentControlNode, ax as OoxmlGenericElementNode, ay as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './tree-op-types-Df4oY2u4.js';
|
|
2
2
|
|
|
3
3
|
/** Nested content-control wrappers deeper than this stop flattening; content stays preserved. */
|
|
4
4
|
declare const MAX_CONTENT_CONTROL_NESTING = 32;
|