@arbidocs/blocks 0.5.135 → 0.5.137
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/{ConnectedCallDock-ZNS5BS2R.cjs → ConnectedCallDock-L27WYW4Y.cjs} +21 -21
- package/dist/{ConnectedCallDock-ZNS5BS2R.cjs.map → ConnectedCallDock-L27WYW4Y.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-ACNVSFH7.cjs → ConnectedCallRoom-ZXSS6CVG.cjs} +14 -14
- package/dist/{ConnectedCallRoom-ACNVSFH7.cjs.map → ConnectedCallRoom-ZXSS6CVG.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs → ConnectedNativeDocxComparison-X2O5OIYZ.cjs} +16 -16
- package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs.map → ConnectedNativeDocxComparison-X2O5OIYZ.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-3JXN6SRT.cjs → ConnectedPresentation-XVCFF25X.cjs} +16 -16
- package/dist/{ConnectedPresentation-3JXN6SRT.cjs.map → ConnectedPresentation-XVCFF25X.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs → ConnectedProductionSetDialog-GM5D7IUG.cjs} +3 -3
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs.map → ConnectedProductionSetDialog-GM5D7IUG.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-IECS2MJI.cjs → ConnectedSlidesTab-UG2NUFPS.cjs} +14 -14
- package/dist/{ConnectedSlidesTab-IECS2MJI.cjs.map → ConnectedSlidesTab-UG2NUFPS.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs → ConnectedStreamedWordArtifact-BI6WFIAW.cjs} +16 -16
- package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs.map → ConnectedStreamedWordArtifact-BI6WFIAW.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-SOWXEXMC.cjs} +15 -15
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-SOWXEXMC.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-IFF2JR2A.cjs → FilesViewerDialog-A5OAV2YP.cjs} +45 -45
- package/dist/{FilesViewerDialog-IFF2JR2A.cjs.map → FilesViewerDialog-A5OAV2YP.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-HMQ6PXUC.cjs → WorkspaceTableView-B5FAVVVA.cjs} +8 -8
- package/dist/{WorkspaceTableView-HMQ6PXUC.cjs.map → WorkspaceTableView-B5FAVVVA.cjs.map} +1 -1
- package/dist/agents/index.cjs +297 -297
- package/dist/{ai-QEXZ4SYR.cjs → ai-XVDR2XYV.cjs} +25 -25
- package/dist/ai-XVDR2XYV.cjs.map +1 -0
- package/dist/calls/index.cjs +121 -121
- package/dist/chat/index.cjs +1 -1
- package/dist/{chunk-LG36LSVZ.cjs → chunk-2WHI2PAJ.cjs} +4 -4
- package/dist/{chunk-LG36LSVZ.cjs.map → chunk-2WHI2PAJ.cjs.map} +1 -1
- package/dist/{chunk-TOYKBRAU.cjs → chunk-6JI4AXAY.cjs} +12 -12
- package/dist/{chunk-TOYKBRAU.cjs.map → chunk-6JI4AXAY.cjs.map} +1 -1
- package/dist/{chunk-VCDD763Y.cjs → chunk-7HU2NQVO.cjs} +3 -3
- package/dist/{chunk-VCDD763Y.cjs.map → chunk-7HU2NQVO.cjs.map} +1 -1
- package/dist/{chunk-BN33PC5F.cjs → chunk-7QZ7F3YL.cjs} +76 -76
- package/dist/{chunk-BN33PC5F.cjs.map → chunk-7QZ7F3YL.cjs.map} +1 -1
- package/dist/{chunk-X46QYO4S.cjs → chunk-ALR6NCVR.cjs} +4 -4
- package/dist/{chunk-X46QYO4S.cjs.map → chunk-ALR6NCVR.cjs.map} +1 -1
- package/dist/{chunk-TXBXIUTX.cjs → chunk-CYA7MDHZ.cjs} +6 -6
- package/dist/{chunk-TXBXIUTX.cjs.map → chunk-CYA7MDHZ.cjs.map} +1 -1
- package/dist/{chunk-UWTCK5IN.cjs → chunk-DNWJUTK6.cjs} +6 -6
- package/dist/{chunk-UWTCK5IN.cjs.map → chunk-DNWJUTK6.cjs.map} +1 -1
- package/dist/{chunk-QFXOTJ6G.cjs → chunk-DT4ORVVI.cjs} +3 -3
- package/dist/{chunk-QFXOTJ6G.cjs.map → chunk-DT4ORVVI.cjs.map} +1 -1
- package/dist/{chunk-MEYQLQWS.cjs → chunk-EHFSR633.cjs} +13 -13
- package/dist/{chunk-MEYQLQWS.cjs.map → chunk-EHFSR633.cjs.map} +1 -1
- package/dist/{chunk-IFJBE7M5.cjs → chunk-EY23TOPI.cjs} +11 -11
- package/dist/{chunk-IFJBE7M5.cjs.map → chunk-EY23TOPI.cjs.map} +1 -1
- package/dist/{chunk-TENWM7BH.cjs → chunk-G7E5IJST.cjs} +5 -5
- package/dist/{chunk-TENWM7BH.cjs.map → chunk-G7E5IJST.cjs.map} +1 -1
- package/dist/{chunk-5GHGIDZP.cjs → chunk-GRRD7SEY.cjs} +15 -15
- package/dist/{chunk-5GHGIDZP.cjs.map → chunk-GRRD7SEY.cjs.map} +1 -1
- package/dist/{chunk-ZN2JXV65.cjs → chunk-HQ7M75LU.cjs} +64 -64
- package/dist/{chunk-ZN2JXV65.cjs.map → chunk-HQ7M75LU.cjs.map} +1 -1
- package/dist/{chunk-MMKMQZ2B.cjs → chunk-HVVD4YSE.cjs} +50 -50
- package/dist/{chunk-MMKMQZ2B.cjs.map → chunk-HVVD4YSE.cjs.map} +1 -1
- package/dist/{chunk-RSQGDXAF.cjs → chunk-K3WSXEEI.cjs} +3 -3
- package/dist/{chunk-RSQGDXAF.cjs.map → chunk-K3WSXEEI.cjs.map} +1 -1
- package/dist/{chunk-LLD4PNBW.cjs → chunk-K424CT35.cjs} +4 -4
- package/dist/{chunk-LLD4PNBW.cjs.map → chunk-K424CT35.cjs.map} +1 -1
- package/dist/{chunk-OOW7H2YD.cjs → chunk-KZWPBL2P.cjs} +6 -6
- package/dist/{chunk-OOW7H2YD.cjs.map → chunk-KZWPBL2P.cjs.map} +1 -1
- package/dist/{chunk-LFMOQALU.cjs → chunk-LWWPIYFD.cjs} +48 -48
- package/dist/{chunk-LFMOQALU.cjs.map → chunk-LWWPIYFD.cjs.map} +1 -1
- package/dist/{chunk-VPKKPHJY.cjs → chunk-M5EQGQRC.cjs} +4 -4
- package/dist/{chunk-VPKKPHJY.cjs.map → chunk-M5EQGQRC.cjs.map} +1 -1
- package/dist/{chunk-ECSOXKJQ.cjs → chunk-N5UI363Q.cjs} +3 -3
- package/dist/{chunk-ECSOXKJQ.cjs.map → chunk-N5UI363Q.cjs.map} +1 -1
- package/dist/{chunk-FYFL3CET.cjs → chunk-NB6XGPEB.cjs} +4 -4
- package/dist/{chunk-FYFL3CET.cjs.map → chunk-NB6XGPEB.cjs.map} +1 -1
- package/dist/{chunk-C5APAFUY.cjs → chunk-PA7YEXL3.cjs} +4 -4
- package/dist/{chunk-C5APAFUY.cjs.map → chunk-PA7YEXL3.cjs.map} +1 -1
- package/dist/{chunk-R5NTEW4L.cjs → chunk-PTLILY4Q.cjs} +27 -27
- package/dist/{chunk-R5NTEW4L.cjs.map → chunk-PTLILY4Q.cjs.map} +1 -1
- package/dist/{chunk-EYXU32D7.cjs → chunk-Q77OKXYM.cjs} +6 -6
- package/dist/{chunk-EYXU32D7.cjs.map → chunk-Q77OKXYM.cjs.map} +1 -1
- package/dist/{chunk-U6XMZG6G.cjs → chunk-RDBUQCAS.cjs} +3 -3
- package/dist/{chunk-U6XMZG6G.cjs.map → chunk-RDBUQCAS.cjs.map} +1 -1
- package/dist/{chunk-FABKMTAI.cjs → chunk-REP5GA2Z.cjs} +10 -10
- package/dist/{chunk-FABKMTAI.cjs.map → chunk-REP5GA2Z.cjs.map} +1 -1
- package/dist/{chunk-ZTHYJP4G.cjs → chunk-RFPZKHZ6.cjs} +7 -7
- package/dist/{chunk-ZTHYJP4G.cjs.map → chunk-RFPZKHZ6.cjs.map} +1 -1
- package/dist/{chunk-IEAZX7L6.cjs → chunk-RIONTVEH.cjs} +7 -7
- package/dist/{chunk-IEAZX7L6.cjs.map → chunk-RIONTVEH.cjs.map} +1 -1
- package/dist/{chunk-6CGMSJLB.cjs → chunk-RJE6KXJQ.cjs} +3 -3
- package/dist/{chunk-6CGMSJLB.cjs.map → chunk-RJE6KXJQ.cjs.map} +1 -1
- package/dist/{chunk-VIUEPJ3Y.cjs → chunk-RUKEMF6Q.cjs} +35 -35
- package/dist/{chunk-VIUEPJ3Y.cjs.map → chunk-RUKEMF6Q.cjs.map} +1 -1
- package/dist/{chunk-JJZOL5MG.cjs → chunk-RYVZDFVO.cjs} +3 -3
- package/dist/{chunk-JJZOL5MG.cjs.map → chunk-RYVZDFVO.cjs.map} +1 -1
- package/dist/{chunk-MMMGOZYH.cjs → chunk-SUPCMKLP.cjs} +4 -4
- package/dist/{chunk-MMMGOZYH.cjs.map → chunk-SUPCMKLP.cjs.map} +1 -1
- package/dist/{chunk-VF26CUE3.cjs → chunk-TCVDV5RF.cjs} +3 -3
- package/dist/{chunk-VF26CUE3.cjs.map → chunk-TCVDV5RF.cjs.map} +1 -1
- package/dist/{chunk-SK6LFIU2.cjs → chunk-TIBTTITZ.cjs} +3 -3
- package/dist/{chunk-SK6LFIU2.cjs.map → chunk-TIBTTITZ.cjs.map} +1 -1
- package/dist/{chunk-JYZ6UE5X.cjs → chunk-ZHGIAVAC.cjs} +28 -28
- package/dist/{chunk-JYZ6UE5X.cjs.map → chunk-ZHGIAVAC.cjs.map} +1 -1
- package/dist/connect/docx.cjs +19 -19
- package/dist/connect/index.cjs +991 -991
- package/dist/connect/viewer.cjs +33 -33
- package/dist/dashboards/index.cjs +1 -1
- package/dist/embed/index.cjs +39 -39
- package/dist/files/index.cjs +224 -224
- package/dist/index.cjs +1590 -1590
- package/dist/settings/index.cjs +146 -146
- package/dist/shell/index.cjs +87 -87
- package/dist/studio/index.cjs +28 -28
- 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 +53 -53
- 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/dist/ai-QEXZ4SYR.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
|
@@ -9,43 +9,49 @@
|
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
export { D as
|
|
12
|
+
import { O as OoxmlPart, b5 as TreeDocColorValue, r as ColorValue, aa as DrawingPositionInput, G as ParagraphTabStop, ar as Watermark } from './tree-op-types-Df4oY2u4.js';
|
|
13
|
+
export { b6 as DEFAULT_IMAGE_RESOURCE_LIMITS, b7 as IMAGE_WRAP_TARGETS, ad as ImageDecodePort, ae as ImageResourceLimits, ag as ImageWrapTarget, F as ParagraphFlags, al as RenderableImageMime, R as ReviewModelInput, an as SupportedImageMime, b8 as TEXT_FORM_FORMATS, aq as VectorImageMime, b9 as resolveImageResourceLimits, ba as resolveSvgIntrinsicSize, bb as sniffImageMime, bc as validateRasterHeader } from './tree-op-types-Df4oY2u4.js';
|
|
14
|
+
export { C as ContentLockPolicy, F as FieldResultsMode } from './tree-package-store-DXhX1PE-.js';
|
|
15
|
+
export { D as DrawingGraphicKind, a as DrawingSupport, b as DrawingSupportIssue } from './drawing-graphic-kind-CXYGYbB3.js';
|
|
16
|
+
import { B as BookmarkNameProblem, D as DrawingPreviewPackageLimits, a as DrawingPreviewPackageResult } from './drawing-preview-package-B9lSLRg4.js';
|
|
17
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-CF2625mv.js';
|
|
18
|
+
export { a as TreeApplyResult } from './tree-session-contract-CF2625mv.js';
|
|
16
19
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, RevisionMarkupDialog, RevisionMarkupDialogHost, resolveEditorModules } from './contracts/modules.js';
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, F as FONT_RESOLVER_BRAND, a as FONT_RESOLVER_MARK_KEY, b as FontConfigurationBase, c as FontConfigurationFragment, d as FontOrigin, e as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, m as MAX_RESOLVER_FAMILIES, M as MarkedFontResolver, W as WORD_DEFAULT_FONT, i as composeFontConfiguration, j as composeFontOrigins, k as defineFontResolver, l as isFontResolver } from './font-resolver-
|
|
24
|
-
import {
|
|
25
|
-
export {
|
|
26
|
-
import { a as AutomationCapabilities, b as AutomationHost } from './protocol-
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export {
|
|
20
|
+
import { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
|
|
21
|
+
import { J as EditorFontError, W as EditorSnapshot, x as Editor, b as EditorCommand, C as CanResult, aQ as ZoomMode, g as ClearAnchorHighlightOptions, c as AnchorHighlightOptions, aw as ScrollToAnchorOptions, av as ScrollPlacement, A as AnchorHighlightAnimation, a4 as HighlightRange, a6 as HighlightResult, a3 as HighlightOptions, aL as TextMatch, f as BookmarkSummary, B as BookmarkPlace } from './editor-B7OOAAie.js';
|
|
22
|
+
export { a2 as HighlightHit, a5 as HighlightRect, a9 as ImageContext, aa as ImageCropPercent, aR as ImageCropPermille, an as ReviewItemHit, ax as SelectedImageState, aN as TrackedChangeFilterMode, aO as TrackedChangePredicate, aS as cropPercentFromCropPermille, aT as cropPercentFromPermille, aU as cropPercentFromSourceCrop, aV as cropPermilleFromCropPercent, aW as cropPermilleFromPercent, aX as sourceCropFromCropPercent, aY as validateImageCropPercent } from './editor-B7OOAAie.js';
|
|
23
|
+
import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-Ci_BTnSU.js';
|
|
24
|
+
export { d as disposeLayoutShaping } from './layout-shaping-Ci_BTnSU.js';
|
|
25
|
+
import { F as FontConfiguration } from './editor-fonts-D_-vjuJi.js';
|
|
26
|
+
export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, F as FONT_RESOLVER_BRAND, a as FONT_RESOLVER_MARK_KEY, b as FontConfigurationBase, c as FontConfigurationFragment, d as FontOrigin, e as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, m as MAX_RESOLVER_FAMILIES, M as MarkedFontResolver, W as WORD_DEFAULT_FONT, i as composeFontConfiguration, j as composeFontOrigins, k as defineFontResolver, l as isFontResolver } from './font-resolver-Bm9XqTNO.js';
|
|
27
|
+
import { ae as PaginatedSurfaceOptions, af as OpenPaginatedResult, ag as PaginatedSurface, ah as TableCommandPlan, z as DocxEditorInstance, ai as SurfaceFormatting } from './chrome-print-CrPI9ZQc.js';
|
|
28
|
+
export { aj as AnchorFrameOrigin, A as AttachOptions, B as BlankDocumentOptions, a as BookmarkChromeHandlers, b as BookmarkMarkInfo, c as BookmarkMarkOptions, ak as BookmarkMarkOptionsSource, C as CHROME_GROUPS, d as CHROME_MENUS, al as CHROME_UNAVAILABLE_KEY, am as ChromeControl, an as ChromeControlId, ao as ChromeControlState, e as ChromeExportError, f as ChromeExportFormat, g as ChromeExportHandlers, h as ChromeExportResult, i as ChromeExportView, ap as ChromeGroup, aq as ChromeGroupId, j as ChromeMenu, k as ChromeMenuEntry, l as ChromeMenuId, m as ChromeMenuItemEntry, n as ChromeMenuSeparatorEntry, o as ChromeMenuSubmenuEntry, p as ChromePrintError, q as ChromePrintErrorCode, r as ChromePrintJob, s as ChromePrintOptions, t as ChromeSlotId, u as CommentDraftChromeHandlers, v as ContentControlWidgetChromeHandlers, w as ContentControlWidgetSession, x as CustomFontsOptions, y as CustomFontsResolver, ar as DEFAULT_TABLE_CHROME_DRAFT, D as DocxEditorConfig, as as DrawingSelectionIntent, at as EMU_PER_POINT, au as EditorCommandExecute, E as EquationActivation, F as EquationChromeHandlers, av as EquationOps, aw as FinalizedImageOverlayInteraction, G as FontLoadFailure, H as FontLoadFailureReason, I as FontMeasurementState, J as FontUrlSource, ax as FormattingBarOptions, K as GoToChromeHandlers, L as HistoryGroupBinding, M as HistoryGroupBindingOptions, N as HyperlinkActivation, O as HyperlinkChromeHandlers, ay as HyperlinkOps, az as IMAGE_OVERLAY_NUDGE_PT, aA as IMAGE_OVERLAY_NUDGE_SHIFT_PT, aB as ImageInteractionSession, aC as ImageOverlayScrollPort, aD as ImageResizeHandle, aE as ImageResizeResult, P as InvalidTextFormFieldChromeHandlers, Q as InvalidTextFormFieldSession, R as LoadFontsRequest, S as LoadFontsResult, T as LockedControlNavigation, aF as OpeningIndicatorHost, aG as OverlayFrameRect, aH as PaginatedSurfaceState, aI as ParagraphPropertyEdit, U as PopupChromeRegistrationOptions, aJ as RemoteCaretLabelAnchor, aK as RemoteCaretLabelHost, aL as ReviewWriteIntent, aM as RunTableChromeCommandResult, aN as SectionAnchor, aO as SectionBreakInsertType, aP as SelectedDrawingOverlayTarget, V as SurfaceEquation, W as SurfaceHyperlink, aQ as SurfaceInsertImageInput, aR as SurfaceNavigation, aS as SurfaceOverlayCoordinates, aT as SurfaceParagraphFormat, aU as TABLE_BORDER_STYLE_OPTIONS, aV as TABLE_BORDER_TARGET_OPTIONS, aW as TABLE_BORDER_WIDTH_OPTIONS, aX as TABLE_CHROME_SLOT_IDS, aY as TableBorderStyleOption, aZ as TableBorderTargetOption, a_ as TableBorderTargetValue, a$ as TableBorderWidthOption, b0 as TableChromeDraft, b1 as TableChromePick, X as TableChromeSlotId, b2 as TableInteractionLabelKey, b3 as TextFormFieldChromeHandlers, b4 as TextFormFieldDialogSession, Y as ToolbarCommandState, b5 as ToolbarSlotValue, Z as ToolbarValueMap, _ as ToolbarValueSlot, b6 as applyTableChromePick, $ as bindHistoryGroup, a0 as blankDocumentBytes, b7 as canExecuteImageCommand, b8 as captureImageMutationPreconditions, b9 as chromeControlCount, a1 as chromeMenuSlots, ba as chromeProbeForSlot, bb as chromeSlotId, bc as chromeSlotIsToggle, bd as commandExecOptions, a2 as commandForSlot, a3 as commandForSlotValue, be as commandForTableChromeSlotValue, bf as computeImageResizeResult, bg as computeMovedImagePosition, bh as computeResizedImageExtentEmu, a4 as createDocxEditor, a5 as createFontSource, bi as createImageOverlayScrollPort, bj as cssPixelsToLayoutPoints, a6 as customFonts, bk as defaultChromeGroups, bl as defaultTableLabel, a7 as deferFonts, bm as emuToOverlayPoints, bn as equationAtPosition, bo as executeImageCommand, bp as finalizeImageOverlayInteraction, bq as formattingBarChromeGroups, a8 as isChromePrintShortcut, br as isStaleImageInteractionCommit, bs as isTableChromeSlot, bt as layoutPointsToCssPixels, a9 as loadFonts, bu as overlayFrameToSheetCssPixels, bv as overlayHostOrigin, bw as pointsToEmu, bx as probeTableChromeCommand, by as resizePreservesAspect, aa as runChromeExport, ab as runChromePrint, bz as runSave, bA as runTableChromeCommand, bB as runTableCommand, ac as runToolbarCommand, bC as selectedDrawingOverlayTargetOf, bD as selectedImageStateOf, bE as surfacePaintScale, bF as tableChromeIconPaths, bG as tableChromeLabelKeyForTarget, bH as tableChromeToolbarState, bI as tableChromeVisible, bJ as tableCommandToolbarState, ad as toolbarCommandState, bK as toolbarCommandStates } from './chrome-print-CrPI9ZQc.js';
|
|
29
|
+
import { a as AutomationCapabilities, b as AutomationHost, e as AutomationBatchRequest, f as AutomationBatchResponse } from './protocol-Cp_QzVxS.js';
|
|
30
|
+
import { c as HistoryGroup } from './editor-scope-CA6egMaK.js';
|
|
31
|
+
export { d as HistoryGroupOptions } from './editor-scope-CA6egMaK.js';
|
|
32
|
+
import { E as EditDiagnosticCode, R as ReviewDiagnosticCode, k as ReviewOperation } from './diagnostic-hints-BtCaCqQC.js';
|
|
33
|
+
import { S as SemanticLayout, T as TextMeasurer, U as UnsupportedElement } from './semantic-records-DoK0lNjS.js';
|
|
34
|
+
export { t as SectionProperties, e as UnsupportedElementLayout, f as UnsupportedElementRule, u as unsupportedElementRuleMatches } from './semantic-records-DoK0lNjS.js';
|
|
35
|
+
import { ReviewPaneOverflow } from './contracts/types.js';
|
|
36
|
+
export { CommentMarkerStyle, DEFAULT_REVIEW_PANE, ResolvedReviewPane, ReviewPaneItemFields, ReviewPaneOpening, ReviewPaneOptions, RevisionDisplay, resolveReviewPane, reviewPaneListsItem } from './contracts/types.js';
|
|
37
|
+
export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, e as RevisionChangedLinesMark, f as RevisionDeletionMark, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup } from './revision-projection-OVusTS77.js';
|
|
38
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BbA4dgEo.js';
|
|
39
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-B5JcIv9c.js';
|
|
40
|
+
export { U as UnsupportedElementHost, o as observeUnsupportedElements } from './unsupported-elements-CUojsaCr.js';
|
|
32
41
|
export { CollaborationModuleContribution } from './collaboration.js';
|
|
33
|
-
import './
|
|
34
|
-
import '
|
|
42
|
+
import './custom-node-writes-AqY5KpVx.js';
|
|
43
|
+
import 'prosemirror-model';
|
|
44
|
+
import './collaboration/replication.js';
|
|
45
|
+
import './failure-6KGFrDO9.js';
|
|
46
|
+
import './document-protection-BvbpSXbQ.js';
|
|
35
47
|
import './contracts/document.js';
|
|
36
48
|
import './contracts/interaction.js';
|
|
37
|
-
import './
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import './custom-node-writes-Bn6uciLb.js';
|
|
41
|
-
import './headless-document-view-pp3q7wIh.js';
|
|
42
|
-
import 'prosemirror-model';
|
|
43
|
-
import './note-properties-qQUjO1GQ.js';
|
|
44
|
-
import './semantic-cell-selection-eYag3P47.js';
|
|
45
|
-
import './semantic-record-queries-Bsgth6lv.js';
|
|
49
|
+
import './note-properties-DCIJUKIy.js';
|
|
50
|
+
import './semantic-cell-selection-CoI5hHBm.js';
|
|
51
|
+
import './semantic-record-queries-DnO8J5_j.js';
|
|
46
52
|
|
|
47
53
|
declare function toEditorFontError(error: unknown): EditorFontError;
|
|
48
|
-
declare function createLayoutShaping(configuration: FontConfiguration, instrumentation?: LayoutShapingInstrumentation): Promise<LayoutShapingOptions>;
|
|
54
|
+
declare function createLayoutShaping(configuration: FontConfiguration, instrumentation?: LayoutShapingInstrumentation, execution?: FontShapingOptions): Promise<LayoutShapingOptions>;
|
|
49
55
|
|
|
50
56
|
/**
|
|
51
57
|
* What `snapshot()` reports before an editor exists: loading, not editable, nothing
|
|
@@ -55,6 +61,68 @@ declare function createLayoutShaping(configuration: FontConfiguration, instrumen
|
|
|
55
61
|
*/
|
|
56
62
|
declare const LOADING_SNAPSHOT: EditorSnapshot;
|
|
57
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Scroll `scroller` to its right end, and keep it there while its content or padding
|
|
66
|
+
* changes, until the reader scrolls away from the end. Scrolling back to the end resumes it.
|
|
67
|
+
* Returns the cleanup.
|
|
68
|
+
*
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
declare function keepScrollAtInlineEnd(scroller: HTMLElement): () => void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The `left` and `top` of a submenu panel beside its parent row, in client pixels.
|
|
75
|
+
*
|
|
76
|
+
* The panel opens on the row's inline-end side: to the right in a left-to-right menu, to the
|
|
77
|
+
* left in a right-to-left one, where the submenu caret points. It takes the other side when
|
|
78
|
+
* it would not fit, and keeps `SUBMENU_EDGE_INSET` from the window edges. It aligns its top
|
|
79
|
+
* with the row's, then rises so a submenu on the last row of a tall menu stays in view.
|
|
80
|
+
*
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
declare function placeSubmenu(row: {
|
|
84
|
+
readonly left: number;
|
|
85
|
+
readonly right: number;
|
|
86
|
+
readonly top: number;
|
|
87
|
+
}, panel: {
|
|
88
|
+
readonly width: number;
|
|
89
|
+
readonly height: number;
|
|
90
|
+
}, view: {
|
|
91
|
+
readonly width: number;
|
|
92
|
+
readonly height: number;
|
|
93
|
+
}, rtl: boolean): {
|
|
94
|
+
readonly left: number;
|
|
95
|
+
readonly top: number;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* The keys that open and close a submenu: the inline-end arrow opens, the start one closes.
|
|
99
|
+
*
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
declare function submenuKeys(rtl: boolean): {
|
|
103
|
+
readonly open: string;
|
|
104
|
+
readonly close: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The direction the nearest `dir` attribute declares for `node`: the value is
|
|
109
|
+
* case-insensitive, `auto` and unknown values defer to the next ancestor, and the search
|
|
110
|
+
* continues from a shadow root to its host. `'ltr'` when no ancestor declares one. Reading
|
|
111
|
+
* attributes forces no style pass, unlike computed style. It does not resolve `auto` from
|
|
112
|
+
* the text, and it follows the light tree, not slot assignment.
|
|
113
|
+
*
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
declare function hostDirectionOf(node: Element | null): 'ltr' | 'rtl';
|
|
117
|
+
/**
|
|
118
|
+
* Call `onChange` when a `dir` attribute changes on `node` or one of its ancestors, in its
|
|
119
|
+
* document or in any shadow root between them. Changes inside `node` are ignored. Returns
|
|
120
|
+
* the cleanup.
|
|
121
|
+
*
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
declare function observeHostDirection(node: Element, onChange: () => void): () => void;
|
|
125
|
+
|
|
58
126
|
/**
|
|
59
127
|
* True when the engine's PASTE lanes will land user-visible content from this payload, so
|
|
60
128
|
* a host's image-FILE lane must stand down or insert a duplicate.
|
|
@@ -88,6 +156,348 @@ declare function clipboardPasteLandsContent(transfer: DataTransfer | null | unde
|
|
|
88
156
|
*/
|
|
89
157
|
declare function clipboardDropLandsText(transfer: DataTransfer | null | undefined): boolean;
|
|
90
158
|
|
|
159
|
+
/** Options for {@link openEditorWindow}. @public */
|
|
160
|
+
interface OpenEditorWindowOptions {
|
|
161
|
+
/**
|
|
162
|
+
* A same-origin page to open. Defaults to `about:blank`, which needs no file on your server.
|
|
163
|
+
* A served page (an empty HTML file) gives the window a real URL and lets it load its own
|
|
164
|
+
* scripts or fonts first.
|
|
165
|
+
*/
|
|
166
|
+
readonly url?: string;
|
|
167
|
+
/**
|
|
168
|
+
* The window name passed to `window.open`. Defaults to `docx-editor`. Windows opened with
|
|
169
|
+
* the same name are one browser window, so give each editor its own name.
|
|
170
|
+
*/
|
|
171
|
+
readonly name?: string;
|
|
172
|
+
/** The `window.open` features. Defaults to `popup,width=1000,height=900`. */
|
|
173
|
+
readonly features?: string;
|
|
174
|
+
/** The pop-out's title. */
|
|
175
|
+
readonly title?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Copy the opener's stylesheets, and keep copying the ones it adds later. Defaults to `true`.
|
|
178
|
+
* Pass `false` to style the window yourself, or a function that copies and returns a stop.
|
|
179
|
+
*/
|
|
180
|
+
readonly styles?: boolean | ((from: Document, to: Document) => () => void);
|
|
181
|
+
}
|
|
182
|
+
/** A pop-out window opened by {@link openEditorWindow}. @public */
|
|
183
|
+
interface EditorWindow {
|
|
184
|
+
/** The pop-out window. */
|
|
185
|
+
readonly window: Window;
|
|
186
|
+
/** The mount point: attach the editor, or render the editor panel, here. */
|
|
187
|
+
readonly element: HTMLElement;
|
|
188
|
+
/**
|
|
189
|
+
* Run `listener` once when the window goes away: the user closed it, or you called
|
|
190
|
+
* `close()`. It runs while the window's document still exists, so move the editor back
|
|
191
|
+
* from here. Returns a function that removes the listener.
|
|
192
|
+
*/
|
|
193
|
+
onClose(listener: () => void): () => void;
|
|
194
|
+
/** Close the window. Runs the `onClose` listeners first. */
|
|
195
|
+
close(): void;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Open a pop-out window ready for the editor: same origin, styled like this page, with an
|
|
199
|
+
* empty mount point that fills it.
|
|
200
|
+
*
|
|
201
|
+
* Resolves to `null` when the browser blocks the window, so call it from a user gesture such
|
|
202
|
+
* as a button click. The React `DocxEditor.Window` and Vue `DocxEditorWindow` components use
|
|
203
|
+
* it; call it directly when you mount the editor without an adapter.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* ```ts
|
|
207
|
+
* const popup = await openEditorWindow({ title: 'Contract' });
|
|
208
|
+
* if (popup) {
|
|
209
|
+
* editor.attach(popup.element);
|
|
210
|
+
* popup.onClose(() => editor.attach(homeElement));
|
|
211
|
+
* }
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
declare function openEditorWindow(options?: OpenEditorWindowOptions): Promise<EditorWindow | null>;
|
|
217
|
+
/**
|
|
218
|
+
* Copy every stylesheet of `from` into `to`, and keep copying the ones `from` adds later.
|
|
219
|
+
*
|
|
220
|
+
* Covers `<link rel="stylesheet">` and `<style>` elements added, changed or removed at any
|
|
221
|
+
* time; rules inserted into a same-origin `<style>` through the CSSOM (CSS-in-JS libraries in
|
|
222
|
+
* production), checked every 250 ms on the pop-out's own clock while it is open; constructed
|
|
223
|
+
* `adoptedStyleSheets`, checked the same way; and the theme attributes on `<html>` such as `class` and `data-theme`. Rules
|
|
224
|
+
* inserted into a `<link>` sheet, or any sheet of another origin, are not copied. Returns a
|
|
225
|
+
* function that stops the mirroring.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* ```ts
|
|
229
|
+
* const stop = copyEditorStyles(document, popup.document);
|
|
230
|
+
* // Later, when the pop-out closes:
|
|
231
|
+
* stop();
|
|
232
|
+
* ```
|
|
233
|
+
*
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
declare function copyEditorStyles(from: Document, to: Document): () => void;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Where to place the label bar of an open header, footer, or note, in viewport pixels.
|
|
240
|
+
*
|
|
241
|
+
* The bar sits just above its story. A story with no room above it on its sheet, such as a
|
|
242
|
+
* header that starts at the paper edge, takes the bar just below it instead, so the bar never
|
|
243
|
+
* covers the gap between sheets or the ruler.
|
|
244
|
+
*
|
|
245
|
+
* @param storyRect - The painted story's viewport rectangle.
|
|
246
|
+
* @param sheetTop - The viewport top of the sheet the story is on, or undefined when unknown.
|
|
247
|
+
* @param barHeight - The bar's height in pixels.
|
|
248
|
+
* @param clearance - The gap between the bar and the story, in pixels.
|
|
249
|
+
* @returns The bar's viewport top.
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* ```ts
|
|
253
|
+
* const top = storyLabelTop(band.getBoundingClientRect(), sheet.getBoundingClientRect().top, 28, 6);
|
|
254
|
+
* ```
|
|
255
|
+
*
|
|
256
|
+
* @public
|
|
257
|
+
*/
|
|
258
|
+
declare function storyLabelTop(storyRect: {
|
|
259
|
+
readonly top: number;
|
|
260
|
+
readonly bottom: number;
|
|
261
|
+
}, sheetTop: number | undefined, barHeight: number, clearance: number): number;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* The message key saying why a selected text box frame takes no caret or offers no handles, or
|
|
265
|
+
* null when it does both. Only in editing mode: viewing and suggesting refuse the edit
|
|
266
|
+
* themselves, so the box is not what stops it.
|
|
267
|
+
*
|
|
268
|
+
* @param target - The overlay target of the selected drawing.
|
|
269
|
+
* @param editingMode - The surface's editing mode.
|
|
270
|
+
* @returns `imageOverlay.textLocked`, `imageOverlay.locked`, or null.
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* ```ts
|
|
274
|
+
* const key = textboxFrameReason(target, editor.surface!.editingMode());
|
|
275
|
+
* const title = key ? t(key) : undefined;
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
declare function textboxFrameReason(target: {
|
|
281
|
+
readonly textbox?: boolean;
|
|
282
|
+
readonly textEditable?: boolean;
|
|
283
|
+
readonly canMove: boolean;
|
|
284
|
+
readonly canResize: boolean;
|
|
285
|
+
}, editingMode: string): 'imageOverlay.textLocked' | 'imageOverlay.locked' | null;
|
|
286
|
+
|
|
287
|
+
/** The window type of a realm: its own timers, observers and constructors. */
|
|
288
|
+
type HostWindow = Window & typeof globalThis;
|
|
289
|
+
/**
|
|
290
|
+
* The document that owns `node`, or the script's own document when `node` is absent.
|
|
291
|
+
* Without a DOM (server rendering) and without a node, this is `undefined` despite its type:
|
|
292
|
+
* call it from effects and event handlers, not during render.
|
|
293
|
+
*
|
|
294
|
+
* Use it to add document-level listeners (`selectionchange`, `pointerup`, `keydown`) and to
|
|
295
|
+
* read `activeElement` for an editor that may live in another window.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* ```ts
|
|
299
|
+
* const doc = hostDocumentOf(menuElement);
|
|
300
|
+
* doc.addEventListener('pointerdown', onOutsidePress, true);
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* @public
|
|
304
|
+
*/
|
|
305
|
+
declare function hostDocumentOf(node: Node | null | undefined): Document;
|
|
306
|
+
/**
|
|
307
|
+
* The window that owns `node`: its timers, animation frames, observers and viewport size.
|
|
308
|
+
*
|
|
309
|
+
* Falls back to the script's own window when the node's document has no window (an inert
|
|
310
|
+
* document from `DOMParser`, or a window that closed), and to `globalThis` without a DOM.
|
|
311
|
+
*
|
|
312
|
+
* @example
|
|
313
|
+
* ```ts
|
|
314
|
+
* const win = hostWindowOf(anchorElement);
|
|
315
|
+
* const handle = win.setTimeout(close, 300);
|
|
316
|
+
* const maxX = win.innerWidth - menuWidth;
|
|
317
|
+
* ```
|
|
318
|
+
*
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
declare function hostWindowOf(node: Node | null | undefined): HostWindow;
|
|
322
|
+
/**
|
|
323
|
+
* The element `editor` is mounted in, or `null` while it is detached or headless.
|
|
324
|
+
*
|
|
325
|
+
* Use it to tell which editor an event belongs to when several share a window.
|
|
326
|
+
*
|
|
327
|
+
* @example
|
|
328
|
+
* ```ts
|
|
329
|
+
* const mine = editorHostElement(editor)?.contains(event.target as Node) ?? false;
|
|
330
|
+
* ```
|
|
331
|
+
*
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
declare function editorHostElement(editor: Editor): Element | null;
|
|
335
|
+
/**
|
|
336
|
+
* The document `editor` is mounted in: a pop-out window's or an iframe's when it is
|
|
337
|
+
* attached there. While the editor is detached, the script's own document.
|
|
338
|
+
*
|
|
339
|
+
* Use it in custom chrome that is not inside the editor's own DOM, such as a toolbar
|
|
340
|
+
* popover, to add document listeners and to read focus.
|
|
341
|
+
*
|
|
342
|
+
* @example
|
|
343
|
+
* ```ts
|
|
344
|
+
* const doc = editorHostDocument(editor);
|
|
345
|
+
* doc.addEventListener('keydown', onShortcut);
|
|
346
|
+
* ```
|
|
347
|
+
*
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
declare function editorHostDocument(editor: Editor): Document;
|
|
351
|
+
/**
|
|
352
|
+
* The window `editor` is mounted in: its timers, frames, viewport size and clipboard.
|
|
353
|
+
* While the editor is detached, the script's own window.
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
* ```ts
|
|
357
|
+
* const win = editorHostWindow(editor);
|
|
358
|
+
* await win.navigator.clipboard.writeText(text);
|
|
359
|
+
* ```
|
|
360
|
+
*
|
|
361
|
+
* @public
|
|
362
|
+
*/
|
|
363
|
+
declare function editorHostWindow(editor: Editor): HostWindow;
|
|
364
|
+
/**
|
|
365
|
+
* Whether `value` is a DOM element of any window. Use it instead of `instanceof Element`,
|
|
366
|
+
* which is false for an element of a pop-out window or an iframe.
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
* ```ts
|
|
370
|
+
* if (isElementNode(event.target)) event.target.closest('[data-docx-hf]');
|
|
371
|
+
* ```
|
|
372
|
+
*
|
|
373
|
+
* @public
|
|
374
|
+
*/
|
|
375
|
+
declare function isElementNode(value: unknown): value is Element;
|
|
376
|
+
/**
|
|
377
|
+
* Whether `value` is an HTML (not SVG or MathML) element of any window.
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* ```ts
|
|
381
|
+
* if (isHTMLElementNode(event.target)) event.target.focus();
|
|
382
|
+
* ```
|
|
383
|
+
*
|
|
384
|
+
* @public
|
|
385
|
+
*/
|
|
386
|
+
declare function isHTMLElementNode(value: unknown): value is HTMLElement;
|
|
387
|
+
/**
|
|
388
|
+
* Whether `value` is a DOM text node of any window.
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```ts
|
|
392
|
+
* const anchor = selection.anchorNode;
|
|
393
|
+
* const element = isTextNode(anchor) ? anchor.parentElement : anchor;
|
|
394
|
+
* ```
|
|
395
|
+
*
|
|
396
|
+
* @public
|
|
397
|
+
*/
|
|
398
|
+
declare function isTextNode(value: unknown): value is Text;
|
|
399
|
+
/**
|
|
400
|
+
* Whether `value` is a DOM node of any window.
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* ```ts
|
|
404
|
+
* if (isDomNode(event.target) && panel.contains(event.target)) return;
|
|
405
|
+
* ```
|
|
406
|
+
*
|
|
407
|
+
* @public
|
|
408
|
+
*/
|
|
409
|
+
declare function isDomNode(value: unknown): value is Node;
|
|
410
|
+
/**
|
|
411
|
+
* Timers that run on the window `node` belongs to, resolved at each call.
|
|
412
|
+
*
|
|
413
|
+
* A handle is cleared on the window that issued it, so a timer set before the editor moved
|
|
414
|
+
* to another window is still cancelled after the move. Handles are this object's own numbers:
|
|
415
|
+
* two windows count their native handles independently, so a native number alone could name
|
|
416
|
+
* a timer in either one. Clear them with this object, never with the global `clearTimeout`.
|
|
417
|
+
*
|
|
418
|
+
* @public
|
|
419
|
+
*/
|
|
420
|
+
interface HostTimers {
|
|
421
|
+
setTimeout(run: () => void, delay?: number): number;
|
|
422
|
+
clearTimeout(handle: number | null | undefined): void;
|
|
423
|
+
requestAnimationFrame(run: (time: number) => void): number;
|
|
424
|
+
cancelAnimationFrame(handle: number | null | undefined): void;
|
|
425
|
+
/**
|
|
426
|
+
* Move pending work to the window the node lives in now. Every other call does this first;
|
|
427
|
+
* call it yourself where you only check whether something is pending. A hidden opener runs
|
|
428
|
+
* no frames and fires no `pagehide`, so work left there would wait until it is shown again.
|
|
429
|
+
*/
|
|
430
|
+
migrate(): void;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* {@link HostTimers} bound to whatever window `node()` lives in when each call runs.
|
|
434
|
+
*
|
|
435
|
+
* Use it for debounces and frames in chrome that can end up in a pop-out window: the opener's
|
|
436
|
+
* timers are throttled while it is hidden, and a pop-out's never run once it closes.
|
|
437
|
+
*
|
|
438
|
+
* @example
|
|
439
|
+
* ```ts
|
|
440
|
+
* const timers = hostTimers(() => panelElement);
|
|
441
|
+
* let pending: number | null = null;
|
|
442
|
+
* function schedule() {
|
|
443
|
+
* timers.clearTimeout(pending);
|
|
444
|
+
* pending = timers.setTimeout(refresh, 150);
|
|
445
|
+
* }
|
|
446
|
+
* ```
|
|
447
|
+
*
|
|
448
|
+
* @public
|
|
449
|
+
*
|
|
450
|
+
* A window that goes away (a pop-out the user closes) never runs what is pending in it, and a
|
|
451
|
+
* dropped commit, notification or search is worse than a late one. So each window with pending
|
|
452
|
+
* work is watched for `pagehide`, and its pending timers and frames move to the window the node
|
|
453
|
+
* lives in by then, or to the script's own window.
|
|
454
|
+
*/
|
|
455
|
+
declare function hostTimers(node: () => Node | null | undefined): HostTimers;
|
|
456
|
+
/**
|
|
457
|
+
* Whether `event` is a keyboard event, from any window.
|
|
458
|
+
*
|
|
459
|
+
* @example
|
|
460
|
+
* ```ts
|
|
461
|
+
* if (isKeyboardEvent(event) && event.key === 'Escape') close();
|
|
462
|
+
* ```
|
|
463
|
+
*
|
|
464
|
+
* @public
|
|
465
|
+
*/
|
|
466
|
+
declare function isKeyboardEvent(event: Event): event is KeyboardEvent;
|
|
467
|
+
/**
|
|
468
|
+
* Whether `event` is a pointer event, from any window.
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```ts
|
|
472
|
+
* if (isPointerEvent(event) && event.button !== 0) return;
|
|
473
|
+
* ```
|
|
474
|
+
*
|
|
475
|
+
* @public
|
|
476
|
+
*/
|
|
477
|
+
declare function isPointerEvent(event: Event): event is PointerEvent;
|
|
478
|
+
/**
|
|
479
|
+
* Whether `event` is a mouse (or pointer) event, from any window.
|
|
480
|
+
*
|
|
481
|
+
* @example
|
|
482
|
+
* ```ts
|
|
483
|
+
* const point = isMouseEvent(event) ? { x: event.clientX, y: event.clientY } : null;
|
|
484
|
+
* ```
|
|
485
|
+
*
|
|
486
|
+
* @public
|
|
487
|
+
*/
|
|
488
|
+
declare function isMouseEvent(event: Event): event is MouseEvent;
|
|
489
|
+
/**
|
|
490
|
+
* Whether `event` is an `input` or `beforeinput` event, from any window.
|
|
491
|
+
*
|
|
492
|
+
* @example
|
|
493
|
+
* ```ts
|
|
494
|
+
* if (isInputEvent(event) && event.inputType === 'insertText') track(event.data);
|
|
495
|
+
* ```
|
|
496
|
+
*
|
|
497
|
+
* @public
|
|
498
|
+
*/
|
|
499
|
+
declare function isInputEvent(event: Event): event is InputEvent;
|
|
500
|
+
|
|
91
501
|
/**
|
|
92
502
|
* Mount a paginated surface over DOCX bytes.
|
|
93
503
|
*
|
|
@@ -226,6 +636,35 @@ declare function snapTwips(value: number, unit: RulerUnit, precise: boolean): nu
|
|
|
226
636
|
* while the box itself is still in range. The drag stops when the LEADING marker lands.
|
|
227
637
|
*/
|
|
228
638
|
declare function dragIndent(handle: RulerIndentHandle, positionTwips: number, indent: RulerIndent, page: RulerPageMetrics, options?: RulerDragOptions): RulerIndent;
|
|
639
|
+
/**
|
|
640
|
+
* Where a tab stop sits, in twips from the page's left sheet edge. `tabTwips` counts from the
|
|
641
|
+
* paragraph's leading margin, as `w:tab/@w:pos` does: leftward from the right margin when
|
|
642
|
+
* `indent.rtl` is set.
|
|
643
|
+
*
|
|
644
|
+
* @public
|
|
645
|
+
*/
|
|
646
|
+
declare function rulerTabPosition(tabTwips: number, page: RulerPageMetrics, indent: Pick<RulerIndent, 'rtl'>): number;
|
|
647
|
+
/**
|
|
648
|
+
* One horizontal ruler tick, in twips from the page's left sheet edge.
|
|
649
|
+
*
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
interface RulerMarginTick {
|
|
653
|
+
/** Twips from the page's left sheet edge. */
|
|
654
|
+
readonly position: number;
|
|
655
|
+
/** Tick length in CSS pixels: 8 for a whole unit, 5 for a half, 3 or 2 for minor ticks. */
|
|
656
|
+
readonly height: number;
|
|
657
|
+
/** Whole units from the paragraph's leading margin; omitted at the margin and on minor ticks. */
|
|
658
|
+
readonly label?: string;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Horizontal ruler ticks counted from the margin the paragraph starts at: the left margin, or
|
|
662
|
+
* the right margin when `indent.rtl` is set. Labels count whole units outward on both sides,
|
|
663
|
+
* so the margin zone also reads 1, 2, and so on toward the sheet edge.
|
|
664
|
+
*
|
|
665
|
+
* @public
|
|
666
|
+
*/
|
|
667
|
+
declare function rulerMarginTicks(page: RulerPageMetrics, indent: Pick<RulerIndent, 'rtl'>, unit: RulerUnit): RulerMarginTick[];
|
|
229
668
|
|
|
230
669
|
/**
|
|
231
670
|
* Stable value identity for a command, including nested payloads.
|
|
@@ -511,6 +950,13 @@ declare function readAvailableWidth(bar: HTMLElement, style: CSSStyleDeclaration
|
|
|
511
950
|
* @internal
|
|
512
951
|
*/
|
|
513
952
|
declare function chordLetter(event: KeyboardEvent): string;
|
|
953
|
+
/**
|
|
954
|
+
* The Go To chord: Ctrl+G, or Cmd+Option+G on Apple platforms. F5 is not used: browsers
|
|
955
|
+
* reload on it. Cmd+G alone is left to the browser's find-next on macOS.
|
|
956
|
+
*
|
|
957
|
+
* @public
|
|
958
|
+
*/
|
|
959
|
+
declare function isGoToChord(event: KeyboardEvent, apple?: boolean): boolean;
|
|
514
960
|
|
|
515
961
|
/** Planner-backed can/plan pair — production gate for table commands. Task 9 maps chrome slots. */
|
|
516
962
|
declare function tableCommandState(command: EditorCommand, surface: PaginatedSurface): {
|
|
@@ -518,6 +964,32 @@ declare function tableCommandState(command: EditorCommand, surface: PaginatedSur
|
|
|
518
964
|
readonly plan: TableCommandPlan;
|
|
519
965
|
};
|
|
520
966
|
|
|
967
|
+
/**
|
|
968
|
+
* One automation run inside a history group: every batch it executes is a frame of the
|
|
969
|
+
* group, and the run settles once into one outcome on the handle.
|
|
970
|
+
*
|
|
971
|
+
* @internal
|
|
972
|
+
*/
|
|
973
|
+
interface HistoryGroupRun {
|
|
974
|
+
/** Execute one batch; `null`, executing nothing, once the group is no longer open. */
|
|
975
|
+
execute(request: AutomationBatchRequest): AutomationBatchResponse | null;
|
|
976
|
+
/** Settle the run's outcome on the handle. Safe to call more than once. */
|
|
977
|
+
finish(): void;
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* An automation host over a live editor.
|
|
981
|
+
*
|
|
982
|
+
* @public
|
|
983
|
+
*/
|
|
984
|
+
interface BrowserAutomationHost extends AutomationHost {
|
|
985
|
+
/**
|
|
986
|
+
* Begin one run inside `group`, or `null` when `group` is not an open handle from this
|
|
987
|
+
* editor. Used by the browser runtime's `run({ historyToken }, callback)`.
|
|
988
|
+
*
|
|
989
|
+
* @internal
|
|
990
|
+
*/
|
|
991
|
+
beginHistoryGroupRun(group: HistoryGroup): HistoryGroupRun | null;
|
|
992
|
+
}
|
|
521
993
|
/**
|
|
522
994
|
* What a browser host can do.
|
|
523
995
|
*
|
|
@@ -537,7 +1009,63 @@ declare const BROWSER_AUTOMATION_CAPABILITIES: AutomationCapabilities;
|
|
|
537
1009
|
* return `transaction-refused`. For autosaving from change callbacks, use the asynchronous
|
|
538
1010
|
* `editor.save()`, which waits for the active edit to finish.
|
|
539
1011
|
*/
|
|
540
|
-
declare function createBrowserAutomationHost(editor: DocxEditorInstance):
|
|
1012
|
+
declare function createBrowserAutomationHost(editor: DocxEditorInstance): BrowserAutomationHost;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Why a preview could not begin.
|
|
1016
|
+
*
|
|
1017
|
+
* - `no-document`: the editor is detached, still opening, or holds no document.
|
|
1018
|
+
* - `viewing`: the editor is open for viewing, so a commit could never write.
|
|
1019
|
+
* - `blocked`: an external refresh is replacing the document.
|
|
1020
|
+
* - `composing`: an input method composition is in progress in the editor.
|
|
1021
|
+
* - `preview-active`: another preview is already open on this editor.
|
|
1022
|
+
*
|
|
1023
|
+
* @internal
|
|
1024
|
+
*/
|
|
1025
|
+
type EditorPreviewRefusal = 'no-document' | 'viewing' | 'blocked' | 'composing' | 'preview-active';
|
|
1026
|
+
/**
|
|
1027
|
+
* One open preview over a live editor.
|
|
1028
|
+
*
|
|
1029
|
+
* @internal
|
|
1030
|
+
*/
|
|
1031
|
+
interface EditorPreviewFork {
|
|
1032
|
+
/** Defer host event listeners until a synchronous commit finishes. */
|
|
1033
|
+
deferEvents<T>(run: () => T): T;
|
|
1034
|
+
/** An automation host over the fork. Its writes never reach the live editor. */
|
|
1035
|
+
readonly host: AutomationHost;
|
|
1036
|
+
/**
|
|
1037
|
+
* Paint the fork over the live pages and refuse live writes from now on. False when it
|
|
1038
|
+
* cannot mount; nothing changes then.
|
|
1039
|
+
*/
|
|
1040
|
+
show(): boolean;
|
|
1041
|
+
/** Whether the fork is painted now. */
|
|
1042
|
+
readonly shown: boolean;
|
|
1043
|
+
/** Bring the first body paragraph the fork changed into view. False when there is none. */
|
|
1044
|
+
reveal(): boolean;
|
|
1045
|
+
/** Whether the preview has ended. Final. */
|
|
1046
|
+
readonly ended: boolean;
|
|
1047
|
+
/** Restore the live pages and lift the write guard. Idempotent. */
|
|
1048
|
+
end(): void;
|
|
1049
|
+
/** Told once when the preview ends, by `end()` or because the editor remounted. */
|
|
1050
|
+
onEnd(listener: () => void): () => void;
|
|
1051
|
+
}
|
|
1052
|
+
/** Whether a preview is painted over `editor`, so its writes are refused. @internal */
|
|
1053
|
+
declare function editorPreviewActive(editor: object): boolean;
|
|
1054
|
+
/**
|
|
1055
|
+
* Open a preview over `editor`'s current document.
|
|
1056
|
+
*
|
|
1057
|
+
* Flushes buffered typing first, so the fork starts from the revision the caller compares
|
|
1058
|
+
* against at commit. Writes nothing and refuses nothing on the live editor until `show()`.
|
|
1059
|
+
*
|
|
1060
|
+
* @internal
|
|
1061
|
+
*/
|
|
1062
|
+
declare function beginEditorPreview(editor: DocxEditorInstance): {
|
|
1063
|
+
readonly ok: true;
|
|
1064
|
+
readonly fork: EditorPreviewFork;
|
|
1065
|
+
} | {
|
|
1066
|
+
readonly ok: false;
|
|
1067
|
+
readonly reason: EditorPreviewRefusal;
|
|
1068
|
+
};
|
|
541
1069
|
|
|
542
1070
|
/**
|
|
543
1071
|
* The facade's anonymous diagnostics: builds each {@link EditorDiagnostic} from codes and
|
|
@@ -555,6 +1083,12 @@ declare function createBrowserAutomationHost(editor: DocxEditorInstance): Automa
|
|
|
555
1083
|
* refusal; a value the engine does not know is left out of the diagnostic.
|
|
556
1084
|
*/
|
|
557
1085
|
declare function reportAutomationRefusal(editor: object, code: EditDiagnosticCode, tracked: boolean, cause?: string): void;
|
|
1086
|
+
/**
|
|
1087
|
+
* Report a tracked-change decision an editing API batch refused into the diagnostics of the
|
|
1088
|
+
* editor it ran on, as one `review.skipped` event. `cause` is the structure behind the skip; a
|
|
1089
|
+
* value the engine does not know is left out. Does nothing for an object that is not an editor.
|
|
1090
|
+
*/
|
|
1091
|
+
declare function reportAutomationReviewSkip(editor: object, code: ReviewDiagnosticCode, operation?: ReviewOperation, cause?: string): void;
|
|
558
1092
|
/**
|
|
559
1093
|
* Report an editing API batch that threw an engine error, not a refusal, into the diagnostics of
|
|
560
1094
|
* the editor it ran on: `edit.internal-invariant` with the error's class, never its message.
|
|
@@ -607,6 +1141,23 @@ declare function lowerColorValueForFill(color: ColorValue, themeColors: readonly
|
|
|
607
1141
|
/** Resolve any public colour to a CSS `#RRGGBB` string for chrome display. */
|
|
608
1142
|
declare function resolveColorValueToCss(color: ColorValue | undefined | null, themeColors: readonly DocumentThemeColorEntry[], defaultHex?: string): string;
|
|
609
1143
|
|
|
1144
|
+
/** The keys that undo and redo, shared by the text surface and every overlay that takes focus. */
|
|
1145
|
+
/** Modifier and key state of one keydown, as both DOM and framework key events carry it. */
|
|
1146
|
+
interface HistoryShortcutKeys {
|
|
1147
|
+
readonly key: string;
|
|
1148
|
+
readonly metaKey: boolean;
|
|
1149
|
+
readonly ctrlKey: boolean;
|
|
1150
|
+
readonly shiftKey: boolean;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Which history step a keydown asks for, or `null` for any other key.
|
|
1154
|
+
*
|
|
1155
|
+
* Ctrl+Y is the Windows redo; Ctrl/Cmd+Shift+Z is the macOS one. Both are accepted on every
|
|
1156
|
+
* platform. Focused chrome, such as the picture selection overlay, calls this so history keys
|
|
1157
|
+
* reach the editor instead of stopping at the control that holds focus.
|
|
1158
|
+
*/
|
|
1159
|
+
declare function historyShortcutOf(event: HistoryShortcutKeys): 'undo' | 'redo' | null;
|
|
1160
|
+
|
|
610
1161
|
interface SurfaceExtent {
|
|
611
1162
|
readonly width: number;
|
|
612
1163
|
readonly height: number;
|
|
@@ -747,6 +1298,29 @@ interface PopupFocusLeaveOptions {
|
|
|
747
1298
|
* @internal
|
|
748
1299
|
*/
|
|
749
1300
|
declare function listenForPopupFocusLeave(options: PopupFocusLeaveOptions): () => void;
|
|
1301
|
+
/** How {@link listenForOutsidePress} decides. @internal */
|
|
1302
|
+
interface OutsidePressOptions {
|
|
1303
|
+
/** A node of the popup. Its host document receives the listener. */
|
|
1304
|
+
readonly popup: Node | null | undefined;
|
|
1305
|
+
/** Whether a node belongs to the popup. Defaults to the popup's own `contains`. */
|
|
1306
|
+
readonly contains?: (node: Node) => boolean;
|
|
1307
|
+
/** Close the popup. */
|
|
1308
|
+
readonly close: (event: PointerEvent) => void;
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Close an open popup when a press lands outside it. Returns the disposer.
|
|
1312
|
+
*
|
|
1313
|
+
* The listener is a capture-phase `pointerdown` on the popup's host document. Capture runs
|
|
1314
|
+
* before the surface cancels the press or stops its propagation, so a press on the painted
|
|
1315
|
+
* pages closes the popup too. A press counts as inside when any node on its composed path
|
|
1316
|
+
* belongs to the popup, so a popup in a shadow root, or one that holds a shadow root,
|
|
1317
|
+
* recognises its own presses.
|
|
1318
|
+
*
|
|
1319
|
+
* Shared adapter glue, not for hosts.
|
|
1320
|
+
*
|
|
1321
|
+
* @internal
|
|
1322
|
+
*/
|
|
1323
|
+
declare function listenForOutsidePress(options: OutsidePressOptions): () => void;
|
|
750
1324
|
|
|
751
1325
|
/** Validate a position input, refusing offsets or bases outside what OOXML allows. */
|
|
752
1326
|
declare function validateDrawingPositionInput(position: DrawingPositionInput): boolean;
|
|
@@ -1035,6 +1609,46 @@ declare function withTabStop(stops: readonly ParagraphTabStop[], stop: Paragraph
|
|
|
1035
1609
|
*/
|
|
1036
1610
|
declare function trapTabWithin(panel: HTMLElement, event: KeyboardEvent): boolean;
|
|
1037
1611
|
|
|
1612
|
+
/** Shared count reading and defaults for Split cells dialogs. */
|
|
1613
|
+
|
|
1614
|
+
/** The most rows and columns a cell splits into, as `splitCellConfig` answers. @public */
|
|
1615
|
+
interface SplitCellLimits {
|
|
1616
|
+
readonly maxRows: number;
|
|
1617
|
+
readonly maxCols: number;
|
|
1618
|
+
}
|
|
1619
|
+
/** The highest count a dialog offers when the editor gives no limit. @public */
|
|
1620
|
+
declare const SPLIT_CELL_FALLBACK_MAX = 63;
|
|
1621
|
+
/** Why typed counts cannot split, before the engine is asked. @public */
|
|
1622
|
+
type SplitCellCountProblem = {
|
|
1623
|
+
readonly kind: 'range';
|
|
1624
|
+
readonly field: 'columns' | 'rows';
|
|
1625
|
+
readonly max: number;
|
|
1626
|
+
} | {
|
|
1627
|
+
readonly kind: 'oneCell';
|
|
1628
|
+
};
|
|
1629
|
+
/** Typed split counts read against the cell's limits. @public */
|
|
1630
|
+
interface SplitCellCounts {
|
|
1631
|
+
/** The counts to ask the engine about, or null while a problem stands. */
|
|
1632
|
+
readonly counts: {
|
|
1633
|
+
readonly rows: number;
|
|
1634
|
+
readonly cols: number;
|
|
1635
|
+
} | null;
|
|
1636
|
+
readonly problem: SplitCellCountProblem | null;
|
|
1637
|
+
}
|
|
1638
|
+
/** Read the typed column and row counts of a Split cells dialog. @public */
|
|
1639
|
+
declare function readSplitCellCounts(columns: string, rows: string, limits: SplitCellLimits | null): SplitCellCounts;
|
|
1640
|
+
/**
|
|
1641
|
+
* The counts a Split cells dialog opens with: two columns, else two rows, else as many rows as
|
|
1642
|
+
* a merged cell spans, whichever the engine honours first.
|
|
1643
|
+
* @public
|
|
1644
|
+
*/
|
|
1645
|
+
declare function initialSplitCellCounts(limits: SplitCellLimits | null, can: (command: Extract<EditorCommand, {
|
|
1646
|
+
type: 'splitCell';
|
|
1647
|
+
}>) => CanResult): {
|
|
1648
|
+
readonly columns: string;
|
|
1649
|
+
readonly rows: string;
|
|
1650
|
+
};
|
|
1651
|
+
|
|
1038
1652
|
/** One cell of a month grid. @public */
|
|
1039
1653
|
interface CalendarDay {
|
|
1040
1654
|
/** Local calendar date as `YYYY-MM-DD`. */
|
|
@@ -1138,6 +1752,56 @@ declare function createContentControlListNavigation(locale?: string): ContentCon
|
|
|
1138
1752
|
/** The `accept` list of the engine's picker: what `replaceImage` takes. */
|
|
1139
1753
|
declare const CONTENT_CONTROL_PICTURE_ACCEPT = "image/png,image/jpeg,image/gif,image/bmp,image/webp";
|
|
1140
1754
|
|
|
1755
|
+
/** The multiples the line-spacing menu offers, in lines. @public */
|
|
1756
|
+
declare const LINE_SPACING_PRESETS: readonly number[];
|
|
1757
|
+
/** The line spacing a menu row stands for: lines for `multiple`, points otherwise. @public */
|
|
1758
|
+
type LineSpacingMenuValue = NonNullable<SurfaceFormatting['lineSpacing']>;
|
|
1759
|
+
/** One row of the line-spacing menu. @public */
|
|
1760
|
+
interface LineSpacingMenuRow {
|
|
1761
|
+
/** The spacing the row stands for. */
|
|
1762
|
+
readonly spacing: LineSpacingMenuValue;
|
|
1763
|
+
/**
|
|
1764
|
+
* What picking the row executes, or null for the selected row: it already holds, and
|
|
1765
|
+
* its value is the read rounded to two decimals, so writing it back would quietly move
|
|
1766
|
+
* an authored `w:line="253"` to 252. Picking a null row only closes the menu.
|
|
1767
|
+
*/
|
|
1768
|
+
readonly command: Extract<EditorCommand, {
|
|
1769
|
+
type: 'setLineSpacing';
|
|
1770
|
+
}> | null;
|
|
1771
|
+
/**
|
|
1772
|
+
* The number as the row shows it: one decimal for a multiple unless it needs two (`1.0`,
|
|
1773
|
+
* `1.15`), and the point value for `exact` and `atLeast`.
|
|
1774
|
+
*/
|
|
1775
|
+
readonly text: string;
|
|
1776
|
+
/**
|
|
1777
|
+
* The i18n key whose `{value}` placeholder takes `text`, or null when `text` is the
|
|
1778
|
+
* whole label (a multiple).
|
|
1779
|
+
*/
|
|
1780
|
+
readonly labelKey: 'lineSpacing.exactlyPoints' | 'lineSpacing.atLeastPoints' | null;
|
|
1781
|
+
/** Whether this is the spacing in force across the whole selection. */
|
|
1782
|
+
readonly selected: boolean;
|
|
1783
|
+
/** False for the extra row that shows a current spacing no preset matches. */
|
|
1784
|
+
readonly preset: boolean;
|
|
1785
|
+
}
|
|
1786
|
+
/**
|
|
1787
|
+
* The line-spacing menu rows for the spacing in force.
|
|
1788
|
+
*
|
|
1789
|
+
* A current multiple that is not a preset joins the list in order, ticked; a current
|
|
1790
|
+
* `exact` or `atLeast` leads the list as its own ticked row. A selection whose paragraphs
|
|
1791
|
+
* disagree (`current` null) ticks nothing, because no one row is true of all of it.
|
|
1792
|
+
* @public
|
|
1793
|
+
*/
|
|
1794
|
+
declare function lineSpacingMenuRows(current: SurfaceFormatting['lineSpacing']): readonly LineSpacingMenuRow[];
|
|
1795
|
+
/**
|
|
1796
|
+
* A row's visible label, with its number in `locale`'s format (`1,5` in German).
|
|
1797
|
+
*
|
|
1798
|
+
* `label` resolves an i18n key without interpolation, as a toolbar's host translation
|
|
1799
|
+
* does, so the `{value}` placeholder is filled here. Without a `locale` the number reads
|
|
1800
|
+
* as `text` does.
|
|
1801
|
+
* @public
|
|
1802
|
+
*/
|
|
1803
|
+
declare function lineSpacingMenuRowLabel(row: LineSpacingMenuRow, label: (key: string) => string, locale?: string): string;
|
|
1804
|
+
|
|
1141
1805
|
/** A processor location in the returned document's body, including table paragraphs. @public */
|
|
1142
1806
|
interface RefreshLocation {
|
|
1143
1807
|
/** OOXML w14:paraId: eight hexadecimal digits, 00000001 through 7FFFFFFF. Case-insensitive. Use this or paragraphIndex, not both. */
|
|
@@ -1411,5 +2075,141 @@ interface DocumentSearch {
|
|
|
1411
2075
|
*/
|
|
1412
2076
|
declare function createDocumentSearch(editor: Editor): DocumentSearch;
|
|
1413
2077
|
|
|
1414
|
-
|
|
1415
|
-
|
|
2078
|
+
/** The font a text watermark uses when its options name none. @public */
|
|
2079
|
+
declare const DEFAULT_WATERMARK_FONT = "Calibri";
|
|
2080
|
+
/** A width and a height in points. @public */
|
|
2081
|
+
interface WatermarkSize {
|
|
2082
|
+
readonly width: number;
|
|
2083
|
+
readonly height: number;
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* The shape box, in points, that `setWatermark` writes for `watermark` on a page whose text
|
|
2087
|
+
* area (page size less margins) is `area`. The box is centered on the text area, and a
|
|
2088
|
+
* diagonal text box turns 45 degrees counterclockwise about its center. Null when the
|
|
2089
|
+
* options name no text and no readable picture. Pass a measurer for the exact text
|
|
2090
|
+
* advance; without one the advance is an estimate.
|
|
2091
|
+
*
|
|
2092
|
+
* @example
|
|
2093
|
+
* ```ts
|
|
2094
|
+
* const box = watermarkShapeBox({ text: 'DRAFT' }, { width: 468, height: 648 });
|
|
2095
|
+
* ```
|
|
2096
|
+
* @public
|
|
2097
|
+
*/
|
|
2098
|
+
declare function watermarkShapeBox(watermark: Watermark, area: WatermarkSize, measurer?: TextMeasurer): WatermarkSize | null;
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* How the Bookmark dialog orders its list: by name, or by where each bookmark is.
|
|
2102
|
+
*
|
|
2103
|
+
* @public
|
|
2104
|
+
*/
|
|
2105
|
+
type BookmarkSortOrder = 'name' | 'location';
|
|
2106
|
+
/**
|
|
2107
|
+
* The bookmarks the dialog lists. Hidden bookmarks show only when asked for. Names sort
|
|
2108
|
+
* without case and with numbers in order, and location sorts by document order.
|
|
2109
|
+
*
|
|
2110
|
+
* @public
|
|
2111
|
+
*/
|
|
2112
|
+
declare function bookmarkDialogRows(bookmarks: readonly BookmarkSummary[], options: {
|
|
2113
|
+
readonly sortBy: BookmarkSortOrder;
|
|
2114
|
+
readonly showHidden: boolean;
|
|
2115
|
+
}): readonly BookmarkSummary[];
|
|
2116
|
+
/**
|
|
2117
|
+
* The bookmarks a Go To name box offers for what was typed: those whose name contains it,
|
|
2118
|
+
* compared without case, in the dialog's order. Names that start with it come first. An empty
|
|
2119
|
+
* query offers every row. Sorted by location, the rows are in the order
|
|
2120
|
+
* {@link goToBookmarkGroups} shows them: by place first, so moving through the list follows
|
|
2121
|
+
* the screen.
|
|
2122
|
+
*
|
|
2123
|
+
* @public
|
|
2124
|
+
*/
|
|
2125
|
+
declare function goToBookmarkRows(bookmarks: readonly BookmarkSummary[], options: {
|
|
2126
|
+
readonly query: string;
|
|
2127
|
+
readonly sortBy: BookmarkSortOrder;
|
|
2128
|
+
readonly showHidden: boolean;
|
|
2129
|
+
}): readonly BookmarkSummary[];
|
|
2130
|
+
/**
|
|
2131
|
+
* The bookmark a Go To name box means: the one whose name equals what was typed, compared
|
|
2132
|
+
* without case, hidden or not; else the first row offered. Null when there is none.
|
|
2133
|
+
*
|
|
2134
|
+
* @public
|
|
2135
|
+
*/
|
|
2136
|
+
declare function goToBookmarkTarget(bookmarks: readonly BookmarkSummary[], query: string, offered: readonly BookmarkSummary[]): BookmarkSummary | null;
|
|
2137
|
+
/**
|
|
2138
|
+
* Where the typed text sits in a bookmark name, compared without case, for showing the match.
|
|
2139
|
+
* Null when the text is empty or the name does not contain it.
|
|
2140
|
+
*
|
|
2141
|
+
* @public
|
|
2142
|
+
*/
|
|
2143
|
+
declare function goToBookmarkMatch(name: string, query: string): {
|
|
2144
|
+
readonly start: number;
|
|
2145
|
+
readonly end: number;
|
|
2146
|
+
} | null;
|
|
2147
|
+
/**
|
|
2148
|
+
* One section of a Go To list sorted by location: the rows of one place, each with its index
|
|
2149
|
+
* in the full list.
|
|
2150
|
+
*
|
|
2151
|
+
* @public
|
|
2152
|
+
*/
|
|
2153
|
+
interface GoToBookmarkGroup {
|
|
2154
|
+
/** The place every row of the section is in. */
|
|
2155
|
+
readonly place: BookmarkPlace;
|
|
2156
|
+
/** The section's rows, each with its index in the full list (the one the highlight uses). */
|
|
2157
|
+
readonly rows: readonly {
|
|
2158
|
+
readonly row: BookmarkSummary;
|
|
2159
|
+
readonly index: number;
|
|
2160
|
+
}[];
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
* The rows of a Go To list grouped by place: the main text, then headers, footers, footnotes
|
|
2164
|
+
* and endnotes. Places with no row are left out. Rows keep their order within a place.
|
|
2165
|
+
*
|
|
2166
|
+
* @public
|
|
2167
|
+
*/
|
|
2168
|
+
declare function goToBookmarkGroups(rows: readonly BookmarkSummary[]): readonly GoToBookmarkGroup[];
|
|
2169
|
+
/**
|
|
2170
|
+
* The name the dialog starts with: the visible bookmark the selection is in, or an empty name.
|
|
2171
|
+
*
|
|
2172
|
+
* @public
|
|
2173
|
+
*/
|
|
2174
|
+
declare function bookmarkDialogInitialName(bookmarks: readonly BookmarkSummary[]): string;
|
|
2175
|
+
/**
|
|
2176
|
+
* What the typed name allows in the Bookmark dialog.
|
|
2177
|
+
*
|
|
2178
|
+
* @public
|
|
2179
|
+
*/
|
|
2180
|
+
interface BookmarkDialogNameState {
|
|
2181
|
+
/** Why Add cannot use the name, or null when it can. Hidden names cannot be added. */
|
|
2182
|
+
readonly problem: BookmarkNameProblem | null;
|
|
2183
|
+
/** The bookmark the name already belongs to, compared without case, or null. */
|
|
2184
|
+
readonly existing: BookmarkSummary | null;
|
|
2185
|
+
/** Add bookmarks the selection under the name; an existing bookmark moves. */
|
|
2186
|
+
readonly canAdd: boolean;
|
|
2187
|
+
/** Delete and Go To act on an existing bookmark. */
|
|
2188
|
+
readonly canDelete: boolean;
|
|
2189
|
+
readonly canGoTo: boolean;
|
|
2190
|
+
}
|
|
2191
|
+
/**
|
|
2192
|
+
* Evaluate the name typed in the Bookmark dialog against the document's bookmarks.
|
|
2193
|
+
* `writable` is whether the document accepts edits; Go To works either way.
|
|
2194
|
+
*
|
|
2195
|
+
* @public
|
|
2196
|
+
*/
|
|
2197
|
+
declare function bookmarkDialogNameState(bookmarks: readonly BookmarkSummary[], name: string, writable: boolean): BookmarkDialogNameState;
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* A small DOCX that holds one drawing from the editor's current document, including unsaved
|
|
2201
|
+
* edits, for an external renderer. It equals `createDrawingPreviewPackage` on the document as
|
|
2202
|
+
* a save would write it now; see that function for the page and renderer rules.
|
|
2203
|
+
*
|
|
2204
|
+
* Pass an occurrence that an `UnsupportedElement` component receives, and the editor from
|
|
2205
|
+
* `useDocxEditor()`, returning early on `null`. The call is synchronous and serializes the
|
|
2206
|
+
* drawing's parts: make it in an effect keyed on `element.source`, not during render, and
|
|
2207
|
+
* spread out or queue the calls when there are many drawings. By default a package copies at
|
|
2208
|
+
* most 64 parts and 64 MiB; pass `limits` to change that.
|
|
2209
|
+
*
|
|
2210
|
+
* @public
|
|
2211
|
+
*/
|
|
2212
|
+
declare function drawingPreviewDocx(editor: DocxEditorInstance, element: Pick<UnsupportedElement, 'ownerPartName' | 'nodeId'>, limits?: DrawingPreviewPackageLimits): DrawingPreviewPackageResult;
|
|
2213
|
+
|
|
2214
|
+
export { AUTO_ZOOM_MODE, AnchorHighlightAnimation, AnchorHighlightOptions, BROWSER_AUTOMATION_CAPABILITIES, CONTENT_CONTROL_PICTURE_ACCEPT, ClearAnchorHighlightOptions, DEFAULT_WATERMARK_FONT, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocumentRefreshError, DocxEditorInstance, DrawingPositionInput, DrawingPreviewPackageLimits, DrawingPreviewPackageResult, FIT_WIDTH_ZOOM_MODE, FontShapingOptions, HIGHLIGHT_REFRESH_MS, HighlightOptions, HighlightRange, HighlightResult, HistoryGroup, LINE_SPACING_PRESETS, LOADING_SNAPSHOT, NO_MIXED_FIELDS, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, ParagraphTabStop, REVIEW_MARKERS_GUTTER_PX, ReviewDiagnosticCode, ReviewOperation, ReviewPaneOverflow, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, SPLIT_CELL_FALLBACK_MAX, ScrollPlacement, ScrollToAnchorOptions, SurfaceFormatting, TAB_ALIGNMENT_LABELS, TOOLBAR_COLLAPSE_ORDER, TOOLBAR_OVERFLOW_HYSTERESIS, TOOLBAR_PANEL_EDGE_MARGIN, TOOLBAR_PINNED_GROUPS, TWIPS_PER_CM, TWIPS_PER_INCH, TextMatch, TextMeasurer, TreeDocxSessionView, UnsupportedElement, ZOOM_MAX, ZOOM_MIN, alignmentAfterDirectionChange, applyThemeShade, applyThemeTint, arrangeToolbarGroups, barRoomWidth, beginEditorPreview, bookmarkDialogInitialName, bookmarkDialogNameState, bookmarkDialogRows, calendarDateForKey, calendarDateFromText, calendarDateText, calendarMonth, calendarMonthNames, calendarMonthTitle, calendarWeekdays, changedFields, chordLetter, clipboardDropLandsText, clipboardPasteLandsContent, collapseOrder, collapsibleGroupCost, contentControlPopupKeyDown, contentControlPopupOpener, controlsOverflow, copyEditorStyles, createBrowserAutomationHost, createContentControlListNavigation, createDocumentRefresh, createDocumentSearch, createLayoutShaping, dragIndent, drawingPreviewDocx, editorCommandKey, editorHostDocument, editorHostElement, editorHostWindow, editorInstanceScope, editorPreviewActive, firstDayOfWeek, formatInches, generateRulerTicks, goToBookmarkGroups, goToBookmarkMatch, goToBookmarkRows, goToBookmarkTarget, handlePosition, hasOpenNestedPopup, historyShortcutOf, hostDirectionOf, hostDocumentOf, hostTimers, hostWindowOf, inchesToTwips, initialSplitCellCounts, isDomNode, isElementNode, isGoToChord, isHTMLElementNode, isInputEvent, isKeyboardEvent, isMouseEvent, isPointerEvent, isTextNode, isoDateOf, keepScrollAtInlineEnd, lineSpacingMenuRowLabel, lineSpacingMenuRows, listenForOutsidePress, listenForPopupEscape, listenForPopupFocusLeave, lowerColorValueForBorder, lowerColorValueForFill, mixedFieldsOf, mountPaginatedSurface, observeContentControlPopup, observeHostDirection, openEditorWindow, parseIsoDate, partOfNodeId, placeSubmenu, positionContentControlPopup, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, readAvailableWidth, readColumnGap, readInlineMargins, readSplitCellCounts, reportAutomationException, reportAutomationRefusal, reportAutomationReviewSkip, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, reviewPaneEntitledZoom, rulerMarginTicks, rulerPageBox, rulerTabPosition, sameOverflow, sameTabStops, sameZoomMode, seedFields, separatorLeadingCost, shiftMonth, signedFirstLineOf, snapTwips, specialOf, storyLabelTop, submenuKeys, surfaceExtent, tableCommandState, textboxFrameReason, toEditorFontError, toolbarGroupPriority, toolbarOverflowGroups, toolbarPanelPlacement, toolbarPopupLeft, trailingGapCost, trapTabWithin, twipsToInches, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier, watchHighlights, watermarkShapeBox, withTabStop };
|
|
2215
|
+
export type { BarRoomInput, BookmarkDialogNameState, BookmarkSortOrder, BrowserAutomationHost, CalendarDay, CalendarMonth, CalendarMonthOptions, ClearRefreshHighlightsOptions, ColorLowerResult, ContentControlListNavigation, DocumentRefresh, DocumentRefreshState, DocumentSearch, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, DocumentSearchState, EditorPreviewFork, EditorPreviewRefusal, EditorWindow, GoToBookmarkGroup, HighlightSource, HighlightWatch, HistoryGroupRun, HistoryShortcutKeys, HostTimers, HostWindow, LineSpacingMenuRow, LineSpacingMenuValue, NavigateToChangeOptions, OpenEditorWindowOptions, OutsidePressOptions, ParagraphDialogFields, ParagraphDialogMixed, ParagraphFlagKey, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, PopupEscapeOptions, PopupFocusLeaveOptions, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, RulerDragOptions, RulerIndent, RulerIndentHandle, RulerMarginTick, RulerPageMetrics, RulerTick, RulerUnit, SpecialIndent, SplitCellCountProblem, SplitCellCounts, SplitCellLimits, SurfaceExtent, TabAlignment, TabLeaderName, ToolbarFitInput, ToolbarHostGroupPlacement, ToolbarPanelPlacement, WatchHighlightsOptions, WatermarkSize };
|