@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
|
@@ -1,29 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { V as ViewScope, a as EditorExecOptions } from './editor-scope-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import { d as FontOrigin, M as MarkedFontResolver, c as FontConfigurationFragment, g as FontResolver, f as FontResolutionRequest } from './font-resolver-Bm9XqTNO.js';
|
|
2
|
+
import { F as FontConfiguration, a as FontFaceRequest, b as FontSource } from './editor-fonts-D_-vjuJi.js';
|
|
3
|
+
import { V as ViewScope, a as EditorExecOptions } from './editor-scope-CA6egMaK.js';
|
|
4
|
+
import { au as TreeDocOp, aU as TextFormFieldRange, aV as TextFormFieldOptions, ad as ImageDecodePort, ao as Unsubscribe, E as ExecResult, aa as DrawingPositionInput, aW as DrawingTransform, G as ParagraphTabStop, y as IndentFormatting, F as ParagraphFlags, A as ParagraphDisagreements, aJ as DrawingTreeDocOp, an as SupportedImageMime, am as SelectionPin, a5 as OoxmlPackage, g as ReviewRevisionKind, aH as PackageWatermarkWrite, ag as ImageWrapTarget } from './tree-op-types-Df4oY2u4.js';
|
|
5
|
+
import { e as BookmarkStory, u as DocumentSource, aQ as ZoomMode, J as EditorFontError, x as Editor, b as EditorCommand, C as CanResult, ax as SelectedImageState, _ as FormatPainterSurfaceState, f as BookmarkSummary, av as ScrollPlacement, aO as TrackedChangePredicate, aN as TrackedChangeFilterMode, a9 as ImageContext, aB as TableBorderEdgeTarget, aC as TableBorderSpec, aD as TableBorderStyle, aI as TableContext } from './editor-B7OOAAie.js';
|
|
6
|
+
import { T as TextMeasurer, f as UnsupportedElementRule, S as SemanticLayout, C as ContentControlBoundaryRecord, t as SectionProperties } from './semantic-records-DoK0lNjS.js';
|
|
7
|
+
import { a as ReviewDisplayMode, d as ResolvedRevisionMarkup, k as RevisionMarkupOptions, g as RevisionMarkupChromeHandlers } from './revision-projection-OVusTS77.js';
|
|
8
|
+
import { F as FieldResultsMode, C as ContentLockPolicy, I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, i as ImageIntentResult } from './tree-package-store-DXhX1PE-.js';
|
|
9
|
+
import { ReviewPaneOptions } from './contracts/types.js';
|
|
10
|
+
import { F as FontShapingOptions } from './font-shaping-policy-BvpkrfxM.js';
|
|
11
|
+
import { CollaborationModuleContribution, EditorCollaborationSession, CollaborationRemoteSelection } from './collaboration.js';
|
|
12
|
+
import { F as FieldShadingMode, c as RevisionStyles, f as DrawingPaintStrings, R as ReviewAuthorInfo, b as RevisionAuthorStyle } from './semantic-paint-B5JcIv9c.js';
|
|
13
|
+
import { ReviewModuleContribution, EditorModule } from './contracts/modules.js';
|
|
14
|
+
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-BbA4dgEo.js';
|
|
15
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-DCIJUKIy.js';
|
|
16
|
+
import { B as BookmarkIndex } from './custom-node-writes-AqY5KpVx.js';
|
|
17
|
+
import { C as CellSelection } from './semantic-cell-selection-CoI5hHBm.js';
|
|
18
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-CF2625mv.js';
|
|
19
|
+
import { a as CollaborationStatus } from './failure-6KGFrDO9.js';
|
|
17
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Load an origin's faces after the document first paints, instead of before.
|
|
23
|
+
*
|
|
24
|
+
* The editor opens the document with the faces the other origins supply, then lays it out
|
|
25
|
+
* again when these arrive. Use it for faces that are large or slow to fetch. Leave an origin
|
|
26
|
+
* unwrapped to install its faces with the document's other waiting fonts: a large document
|
|
27
|
+
* (over about 512 KB of uncompressed content) waits up to 2 seconds for them before its
|
|
28
|
+
* first paint.
|
|
29
|
+
*
|
|
30
|
+
* ```ts
|
|
31
|
+
* const fonts = [packagedFonts(), deferFonts(myBrandFonts())];
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* A document export that receives this origin waits for its faces, so exported pages use them.
|
|
35
|
+
* The faces never change the configuration settings, such as `defaultFont` or `maxFontBytes`:
|
|
36
|
+
* those come from the origins that answer at once, so the document does not change its
|
|
37
|
+
* default font after it paints.
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
declare function deferFonts(origin: FontOrigin): MarkedFontResolver;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* How a blank document starts.
|
|
45
|
+
*
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
interface BlankDocumentOptions {
|
|
49
|
+
/**
|
|
50
|
+
* `'rtl'` starts the document right to left: its paragraphs (`w:bidi` in the paragraph
|
|
51
|
+
* defaults) and its section (`w:sectPr/w:bidi`) read right to left, as a new document does
|
|
52
|
+
* when a right-to-left editing language is the default. `'ltr'` is the default.
|
|
53
|
+
*/
|
|
54
|
+
readonly direction?: 'ltr' | 'rtl';
|
|
55
|
+
/**
|
|
56
|
+
* The language of right-to-left and complex-script text, as a BCP 47 tag such as `ar-SA`
|
|
57
|
+
* or `he-IL`, written as the run defaults' `w:lang/@w:bidi`. Layout follows it: European
|
|
58
|
+
* digits in an Arabic-script language draw in the Latin face. A value that is not a
|
|
59
|
+
* language tag is ignored.
|
|
60
|
+
*/
|
|
61
|
+
readonly bidiLanguage?: string;
|
|
62
|
+
}
|
|
18
63
|
/**
|
|
19
64
|
* A blank document, freshly zipped per call (the caller may hand the
|
|
20
65
|
* bytes to a loader that takes ownership). Calibri 11pt and Word's Normal paragraph
|
|
21
66
|
* spacing are authored in `w:docDefaults`, Word's built-in style gallery in `styles.xml`,
|
|
22
67
|
* and US Letter geometry in the section. Word opens the saved file.
|
|
23
68
|
*
|
|
69
|
+
* A right-to-left interface usually wants `{ direction: 'rtl', bidiLanguage: 'ar-SA' }` (or
|
|
70
|
+
* the reader's own language), so the first paragraph is ready for right-to-left typing.
|
|
71
|
+
*
|
|
24
72
|
* @public
|
|
25
73
|
*/
|
|
26
|
-
declare function blankDocumentBytes(): Uint8Array;
|
|
74
|
+
declare function blankDocumentBytes(options?: BlankDocumentOptions): Uint8Array;
|
|
27
75
|
|
|
28
76
|
type TableCommandSelectionPolicy = {
|
|
29
77
|
readonly kind: 'preserveSelection';
|
|
@@ -136,29 +184,47 @@ interface TextFormFieldChromeHandlers {
|
|
|
136
184
|
readonly onRequest?: (session: TextFormFieldDialogSession) => void;
|
|
137
185
|
}
|
|
138
186
|
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
187
|
+
/** One addressable inline equation and its compact editable projection. */
|
|
188
|
+
interface SurfaceEquation {
|
|
189
|
+
readonly id: string;
|
|
190
|
+
readonly paragraphId: string;
|
|
191
|
+
readonly start: number;
|
|
192
|
+
readonly end: number;
|
|
193
|
+
readonly linear: string;
|
|
194
|
+
readonly fallbackText: string;
|
|
195
|
+
/** True when every source construct belongs to the editable subset. */
|
|
196
|
+
readonly supported: boolean;
|
|
197
|
+
}
|
|
198
|
+
/** A user click on one painted equation. */
|
|
199
|
+
interface EquationActivation {
|
|
200
|
+
readonly equation: SurfaceEquation;
|
|
201
|
+
readonly rect: {
|
|
202
|
+
readonly left: number;
|
|
203
|
+
readonly top: number;
|
|
204
|
+
readonly right: number;
|
|
205
|
+
readonly bottom: number;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
/** Boundary-inclusive lookup, matching the hyperlink and field atom popovers. */
|
|
209
|
+
declare function equationAtPosition(equations: readonly SurfaceEquation[], position: SemanticPosition): SurfaceEquation | null;
|
|
210
|
+
type EquationAction = 'replace' | 'remove';
|
|
211
|
+
/** Engine-owned capability result for equation editing chrome. */
|
|
212
|
+
type EquationCanResult = {
|
|
213
|
+
readonly ok: true;
|
|
214
|
+
} | {
|
|
215
|
+
readonly ok: false;
|
|
216
|
+
readonly code: 'locked' | 'notFound' | 'unsupported';
|
|
217
|
+
readonly reason: string;
|
|
218
|
+
};
|
|
219
|
+
/** Surface equation reads and atomic replace/remove writes. */
|
|
220
|
+
interface EquationOps {
|
|
221
|
+
equationsInCaretParagraph(): SurfaceEquation[];
|
|
222
|
+
equationAtCaret(): SurfaceEquation | null;
|
|
223
|
+
equationById(equationId: string): SurfaceEquation | null;
|
|
224
|
+
/** Whether equation chrome can run an action, with the engine-owned refusal reason. */
|
|
225
|
+
can(equationId: string, action: EquationAction): EquationCanResult;
|
|
226
|
+
applyEquation(equationId: string, linear: string): boolean;
|
|
227
|
+
removeEquation(equationId: string): boolean;
|
|
162
228
|
}
|
|
163
229
|
|
|
164
230
|
/**
|
|
@@ -240,10 +306,18 @@ interface HyperlinkActivation {
|
|
|
240
306
|
*/
|
|
241
307
|
interface SurfaceNavigation {
|
|
242
308
|
/** Snap to a semantic position using layout geometry, then place the caret there. */
|
|
309
|
+
/**
|
|
310
|
+
* With `orShow`, a story that cannot be opened is scrolled to without moving the caret into
|
|
311
|
+
* it, and the answer is `'shown'`. With `center`, the target is centered in the viewport
|
|
312
|
+
* unless it is already well inside it, so it never lands under chrome at the top edge.
|
|
313
|
+
*/
|
|
243
314
|
goToPosition(position: {
|
|
244
315
|
paragraphId: string;
|
|
245
316
|
offset: number;
|
|
246
|
-
}
|
|
317
|
+
}, options?: {
|
|
318
|
+
readonly orShow?: boolean;
|
|
319
|
+
readonly center?: boolean;
|
|
320
|
+
}): boolean | 'shown';
|
|
247
321
|
/**
|
|
248
322
|
* Scroll a bookmark into view and place the caret at it. Answers false for a name no
|
|
249
323
|
* bookmark declares — an inert click, which is what Word does with a dangling anchor.
|
|
@@ -257,47 +331,252 @@ interface SurfaceNavigation {
|
|
|
257
331
|
destroy(): void;
|
|
258
332
|
}
|
|
259
333
|
|
|
260
|
-
/**
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
readonly
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
334
|
+
/**
|
|
335
|
+
* The surface's view of the mark options.
|
|
336
|
+
*
|
|
337
|
+
* @public
|
|
338
|
+
*/
|
|
339
|
+
interface BookmarkMarkOptionsSource {
|
|
340
|
+
readonly current: () => BookmarkMarkOptions;
|
|
341
|
+
/** Name the repaint to run when the options change. One slot: a remount replaces it. */
|
|
342
|
+
readonly onChange: (repaint: (() => void) | null) => void;
|
|
343
|
+
/** Report an error a host callback threw while marks were painted. */
|
|
344
|
+
readonly reportError: (error: unknown) => void;
|
|
270
345
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* How the caret moves through an inline content control whose effective lock is
|
|
349
|
+
* `contentLocked` or `sdtContentLocked`.
|
|
350
|
+
*
|
|
351
|
+
* - `'characters'` (the default) — the caret walks through the control's characters, as in Word.
|
|
352
|
+
* - `'atomic'` — the control is one caret unit, as a `w:showingPlcHdr` prompt already is. Arrows
|
|
353
|
+
* step over it, Shift+arrows select it whole, and a press or double click inside it selects it
|
|
354
|
+
* whole. A press on its edge still places a caret beside it.
|
|
355
|
+
*
|
|
356
|
+
* It applies in the body, headers and footers; notes and text boxes publish no control
|
|
357
|
+
* boundaries, so they keep character navigation.
|
|
358
|
+
*
|
|
359
|
+
* Navigation only: what a lock refuses does not change. The rule covers keyboard motions and
|
|
360
|
+
* the engine's own pointer gestures. A selection set in code (`setSelection`, find) is kept as
|
|
361
|
+
* given, and `pointer: 'native'` leaves caret placement to the browser.
|
|
362
|
+
*
|
|
363
|
+
* @public
|
|
364
|
+
*/
|
|
365
|
+
type LockedControlNavigation = 'characters' | 'atomic';
|
|
366
|
+
/**
|
|
367
|
+
* How a paginated surface opens. Every field is optional.
|
|
368
|
+
*
|
|
369
|
+
* `measurer` is the injection seam that keeps layout DOM-free — supply one to lay a document out
|
|
370
|
+
* on a server, or leave it off in a browser to get the canvas measurer.
|
|
371
|
+
*/
|
|
372
|
+
interface PaginatedSurfaceOptions {
|
|
373
|
+
/** UI labels for shared form controls; omitted keys fall back to English. */
|
|
374
|
+
readonly translate?: (key: string, params?: Record<string, string | number>) => string;
|
|
375
|
+
/** Regional conventions for new date input; defaults to en-US. */
|
|
376
|
+
readonly locale?: string;
|
|
377
|
+
/**
|
|
378
|
+
* The collaboration module's replica for this surface's session. Absent,
|
|
379
|
+
* the surface does not attach, and local store history remains the undo
|
|
380
|
+
* authority.
|
|
381
|
+
*/
|
|
382
|
+
readonly collaborationModel?: CollaborationModuleContribution;
|
|
383
|
+
/**
|
|
384
|
+
* How saved field results are edited. `atomic` (the default) keeps every field one unit.
|
|
385
|
+
* `editable` lets the reader type, delete, and select inside the saved result of a DATE,
|
|
386
|
+
* MERGEFIELD, HYPERLINK, or similar field. Results must be unnested; simple fields inside
|
|
387
|
+
* complex field results are not supported. Refused with a {@link collaborationModel}.
|
|
388
|
+
*/
|
|
389
|
+
readonly fieldResults?: FieldResultsMode;
|
|
390
|
+
readonly measurer?: TextMeasurer;
|
|
391
|
+
/** Ambient author for tracked edits. Required before suggesting can write anything. */
|
|
392
|
+
readonly author?: string;
|
|
393
|
+
/** Opening mode; changeable at runtime with `setEditingMode`. */
|
|
394
|
+
readonly editingMode?: SurfaceEditingMode;
|
|
395
|
+
/**
|
|
396
|
+
* True while the active band covers both halves of a replacement: when the review UI lists
|
|
397
|
+
* a replacement as one card, or while an activation of the whole replacement holds. Read
|
|
398
|
+
* on each band paint. Set by the editor; a host changes `revisionsIn` instead.
|
|
399
|
+
*
|
|
400
|
+
* @internal
|
|
401
|
+
*/
|
|
402
|
+
readonly pairsReplacements?: () => boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Identifies the measurer for cache invalidation.
|
|
405
|
+
*
|
|
406
|
+
* Fonts resolve asynchronously, so a host that swaps its measurer must change this or the
|
|
407
|
+
* cached pre-font layout is served for the rest of the session.
|
|
408
|
+
*/
|
|
409
|
+
readonly producer?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Maps a document-declared font family to the alias its registered bytes live under, so
|
|
412
|
+
* painted runs can use embedded glyphs without the file's family name entering the
|
|
413
|
+
* page-global CSS font namespace.
|
|
414
|
+
*/
|
|
415
|
+
readonly fontAlias?: (family: string) => string | undefined;
|
|
416
|
+
/** Points to CSS pixels. */
|
|
417
|
+
readonly scale?: number;
|
|
418
|
+
/**
|
|
419
|
+
* How revisions project into layout and paint. Omitted keeps the layout default
|
|
420
|
+
* (`all-markup`). The editor facade passes `proposed` when no review module is
|
|
421
|
+
* registered — the free tier's final-state rendering; the machinery below this
|
|
422
|
+
* option is shared either way.
|
|
423
|
+
*/
|
|
424
|
+
readonly revisionDisplayMode?: ReviewDisplayMode;
|
|
425
|
+
/** Authors whose changes open in their accepted view-time projection. */
|
|
426
|
+
readonly hiddenRevisionAuthors?: readonly string[];
|
|
427
|
+
/**
|
|
428
|
+
* When a field's result wears Word's grey shading. Omitted keeps Word's own default,
|
|
429
|
+
* `when-selected`.
|
|
430
|
+
*
|
|
431
|
+
* Applies to ORDINARY fields only. Legacy form fields follow the document's
|
|
432
|
+
* `w:doNotShadeFormData`, because a form's blanks are the document's own statement about
|
|
433
|
+
* itself rather than a reader's preference.
|
|
434
|
+
*
|
|
435
|
+
* A paint-level option, not a layout one: it changes no geometry, so switching it repaints
|
|
436
|
+
* without remeasuring a single line.
|
|
437
|
+
*/
|
|
438
|
+
readonly fieldShading?: FieldShadingMode;
|
|
439
|
+
/** Show paragraph-end furniture without changing document content. */
|
|
440
|
+
readonly showParagraphMarks?: boolean;
|
|
441
|
+
readonly onToggleParagraphMarks?: () => void;
|
|
442
|
+
/** Show bracket marks at bookmarks. Paint-level; the document does not change. */
|
|
443
|
+
readonly showBookmarks?: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* How tracked changes are coloured: by AUTHOR (the default), by kind, or by author with
|
|
446
|
+
* host-pinned colours. A paint-level option like {@link fieldShading}: it changes no
|
|
447
|
+
* geometry, so switching it repaints without remeasuring a line. Applies wherever
|
|
448
|
+
* revision markup paints, whatever the {@link revisionDisplayMode} leaves visible.
|
|
449
|
+
*/
|
|
450
|
+
readonly revisionStyles?: RevisionStyles;
|
|
451
|
+
readonly unsupportedElementRules?: readonly UnsupportedElementRule[];
|
|
452
|
+
readonly revisionMarkup?: ResolvedRevisionMarkup;
|
|
453
|
+
/**
|
|
454
|
+
* The review module's derivation hooks for this surface's session. Absent,
|
|
455
|
+
* `session.reviewItems()` is the typed empty queue and every review affordance
|
|
456
|
+
* built on it stays inert.
|
|
457
|
+
*/
|
|
458
|
+
readonly reviewModel?: ReviewModuleContribution;
|
|
459
|
+
/**
|
|
460
|
+
* Opt-in relaxation of `w:lock` for run-property writes: `contentLocked` / `sdtContentLocked`
|
|
461
|
+
* controls can be restyled (toolbar, shortcuts, automation `setFont`) but not retyped.
|
|
462
|
+
* Absent, they refuse both, as ECMA-376 / Word do.
|
|
463
|
+
*/
|
|
464
|
+
readonly contentLockPolicy?: ContentLockPolicy;
|
|
465
|
+
/**
|
|
466
|
+
* The family a run with no authored font is reported as by `formatting()` AND painted
|
|
467
|
+
* in — the face the measurer falls back to. Absent, such a run reports
|
|
468
|
+
* `fontFamily: null` and paints in whatever font the page inherits, which the measurer
|
|
469
|
+
* did not measure: visible glyphs drift from wrap points and caret geometry.
|
|
470
|
+
*/
|
|
471
|
+
readonly defaultFontFamily?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Who resolves a pointer to a caret.
|
|
474
|
+
*
|
|
475
|
+
* `'engine'` (the default) answers from the layout records, which is what makes a click in
|
|
476
|
+
* a margin, an indent or a cell's padding land where it was aimed. `'native'` binds no
|
|
477
|
+
* pointer handlers and leaves the browser's own caret placement in charge.
|
|
478
|
+
*/
|
|
479
|
+
readonly pointer?: 'engine' | 'native';
|
|
480
|
+
/** How the caret moves through a content-locked inline control; see `LockedControlNavigation`. */
|
|
481
|
+
readonly lockedControlNavigation?: LockedControlNavigation;
|
|
482
|
+
readonly onChange?: (state: PaginatedSurfaceState) => void;
|
|
483
|
+
/**
|
|
484
|
+
* Told each time an edit is refused, with the raw reason: a store code such as `'locked'`,
|
|
485
|
+
* or the surface's own refusal sentence. The raw reason can be a sentence, so a listener
|
|
486
|
+
* maps it to a public code before it reports anything.
|
|
487
|
+
*/
|
|
488
|
+
readonly onRejection?: (reason: string) => void;
|
|
489
|
+
/**
|
|
490
|
+
* The pages turned up in another document without a `moveTo`: a host moved the mount
|
|
491
|
+
* element itself (a Vue `Teleport` retargeted, or a plain `appendChild`). The surface has
|
|
492
|
+
* already re-bound its own listeners; the owner re-registers what is per document.
|
|
493
|
+
*/
|
|
494
|
+
readonly onHostMoved?: (document: Document) => void;
|
|
495
|
+
/**
|
|
496
|
+
* Told the milliseconds of each layout pass and each paint. For `'input'`, told the browser
|
|
497
|
+
* timestamp of each key press or pointer press on the pages, so a listener can time it to
|
|
498
|
+
* the next frame. Numbers only.
|
|
499
|
+
*/
|
|
500
|
+
readonly onTiming?: (phase: 'layout' | 'paint' | 'input', value: number) => void;
|
|
501
|
+
/**
|
|
502
|
+
* Told once for each local edit that changed the document, with `typing` true for buffered
|
|
503
|
+
* typing, which can land inside a later command's commit. Remote edits are not local.
|
|
504
|
+
*/
|
|
505
|
+
readonly onEdit?: (typing: boolean) => void;
|
|
506
|
+
/**
|
|
507
|
+
* A plain click on an external (or inert) hyperlink, for a host to open its popover with.
|
|
508
|
+
*
|
|
509
|
+
* Absent means such a click does nothing. That is deliberate: a host with no popover
|
|
510
|
+
* mounted must not have clicks silently opening tabs, and the popover is the only path to
|
|
511
|
+
* activation (see the navigation module's single `window.open` gate).
|
|
512
|
+
*/
|
|
513
|
+
readonly onHyperlinkPopover?: (activation: HyperlinkActivation) => void;
|
|
514
|
+
readonly onEquationPopover?: (activation: EquationActivation) => void;
|
|
515
|
+
/**
|
|
516
|
+
* Ctrl/Cmd+K — Word's Insert Hyperlink. The engine reports the request; the host's chrome
|
|
517
|
+
* decides what a link dialog looks like. A host that passes nothing leaves the key alone
|
|
518
|
+
* rather than doing something surprising with it.
|
|
519
|
+
*/
|
|
520
|
+
readonly onRequestHyperlink?: () => void;
|
|
521
|
+
/**
|
|
522
|
+
* Ctrl/Cmd+Shift+F5: open the host's bookmark dialog. Answers whether chrome took the
|
|
523
|
+
* request; when none did, or when this is absent, the key is left to the browser.
|
|
524
|
+
*/
|
|
525
|
+
readonly onRequestBookmark?: () => boolean;
|
|
526
|
+
/** Ctrl+G (Cmd+Option+G on macOS): open the host's Go To UI; answers whether chrome took it. */
|
|
527
|
+
readonly onRequestGoTo?: () => boolean;
|
|
528
|
+
/**
|
|
529
|
+
* The host's Show bookmarks options, read on every paint. `onChange` names the repaint to
|
|
530
|
+
* run when the host changes them.
|
|
531
|
+
*/
|
|
532
|
+
readonly bookmarkMarks?: BookmarkMarkOptionsSource;
|
|
533
|
+
/** Return true when host chrome handles this session. */
|
|
534
|
+
readonly onRequestTextFormField?: (session: TextFormFieldDialogSession) => boolean;
|
|
535
|
+
readonly onRequestContentControlWidget?: (session: ContentControlWidgetSession) => boolean;
|
|
536
|
+
readonly onRequestInvalidTextFormField?: (session: InvalidTextFormFieldSession) => boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Localized accessible names for core-owned table insertion furniture.
|
|
539
|
+
* Defaults to English from `@docx-editor.dev/i18n` when omitted.
|
|
540
|
+
*/
|
|
541
|
+
readonly tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
|
|
542
|
+
/** Localized drawing refusal labels; defaults to English when omitted. */
|
|
543
|
+
readonly drawingStrings?: DrawingPaintStrings;
|
|
544
|
+
/** Override raster decode for package image intents; defaults to browser/headless. */
|
|
545
|
+
readonly imageDecodePort?: ImageDecodePort;
|
|
546
|
+
/**
|
|
547
|
+
* Localized name for a generated TOC, written as the control's `w:alias` on insert.
|
|
548
|
+
*
|
|
549
|
+
* The update ACTIONS are not here: they are rows in the host's context menu, which owns
|
|
550
|
+
* its own labels. The engine paints no menu of its own.
|
|
551
|
+
*/
|
|
552
|
+
readonly tocLabels?: {
|
|
553
|
+
readonly title: string;
|
|
279
554
|
};
|
|
280
555
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Receives the element that shows the loading indicator below the laid-out pages, while a
|
|
559
|
+
* large document lays out its remaining pages.
|
|
560
|
+
*
|
|
561
|
+
* @example
|
|
562
|
+
* ```ts
|
|
563
|
+
* editor.setOpeningIndicatorHost({
|
|
564
|
+
* publish(element) {
|
|
565
|
+
* // Render your indicator into `element`, or remove it when `element` is null.
|
|
566
|
+
* },
|
|
567
|
+
* });
|
|
568
|
+
* ```
|
|
569
|
+
*
|
|
570
|
+
* @public
|
|
571
|
+
*/
|
|
572
|
+
interface OpeningIndicatorHost {
|
|
573
|
+
/**
|
|
574
|
+
* Called with the indicator element when the first pages show, and with `null` when the
|
|
575
|
+
* remaining pages are laid out or the open is abandoned. The element is empty while a host
|
|
576
|
+
* is set: render the host's content into it. It is centered in a band below the last
|
|
577
|
+
* laid-out page, as wide as the page, and scrolls with the document.
|
|
578
|
+
*/
|
|
579
|
+
publish(element: HTMLElement | null): void;
|
|
301
580
|
}
|
|
302
581
|
|
|
303
582
|
/**
|
|
@@ -342,6 +621,8 @@ interface DocxEditorConfig {
|
|
|
342
621
|
* requests — the engine never supplies one, so that stays your call.
|
|
343
622
|
*/
|
|
344
623
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
624
|
+
/** Explicit shaping execution limits. Omitted, the per-face byte ceiling remains 16 MiB. */
|
|
625
|
+
fontShaping?: FontShapingOptions;
|
|
345
626
|
author?: string;
|
|
346
627
|
/** BCP-47 locale for regional date input and generated labels; defaults to en-US. */
|
|
347
628
|
locale?: string;
|
|
@@ -354,6 +635,14 @@ interface DocxEditorConfig {
|
|
|
354
635
|
* reason. See {@link EditorModule}.
|
|
355
636
|
*/
|
|
356
637
|
modules?: readonly EditorModule[];
|
|
638
|
+
/**
|
|
639
|
+
* Opt-in relaxation of content-control `w:lock`: with `allowFormattingInLockedContent`,
|
|
640
|
+
* `contentLocked` / `sdtContentLocked` controls refuse typing, pasting and deleting their
|
|
641
|
+
* text as always, but accept run formatting (toolbar, shortcuts, automation `setFont`) —
|
|
642
|
+
* for hosts that protect WHAT a control says and let authors style it. Default: Word's
|
|
643
|
+
* behaviour, where a content lock refuses every edit including formatting.
|
|
644
|
+
*/
|
|
645
|
+
contentLockPolicy?: ContentLockPolicy;
|
|
357
646
|
/**
|
|
358
647
|
* The mode the editor opens in — one prop, matching the toolbar's three-state pill.
|
|
359
648
|
*
|
|
@@ -389,6 +678,8 @@ interface DocxEditorConfig {
|
|
|
389
678
|
* the proposed view still marks surviving insertions.
|
|
390
679
|
*/
|
|
391
680
|
revisionStyles?: RevisionStyles;
|
|
681
|
+
/** Ordered unsupported-content registrations; the first matching rule reserves a layout box. */
|
|
682
|
+
unsupportedElementRules?: readonly UnsupportedElementRule[];
|
|
392
683
|
/** Initial local revision presentation and tracking preferences. */
|
|
393
684
|
revisionMarkup?: RevisionMarkupOptions;
|
|
394
685
|
/** Initial review projection. Markup modes require a review module. */
|
|
@@ -410,6 +701,12 @@ interface DocxEditorConfig {
|
|
|
410
701
|
* shared paragraph text keeps every field one unit.
|
|
411
702
|
*/
|
|
412
703
|
fieldResults?: FieldResultsMode;
|
|
704
|
+
/**
|
|
705
|
+
* How the caret moves through an inline control with a content lock. `'atomic'` makes such a
|
|
706
|
+
* control one caret unit; `'characters'` (the default) walks through its characters, as Word
|
|
707
|
+
* does. Fixed for the instance.
|
|
708
|
+
*/
|
|
709
|
+
lockedControlNavigation?: LockedControlNavigation;
|
|
413
710
|
/** Override raster decode for insert/replace image commands; defaults to browser/headless. */
|
|
414
711
|
imageDecodePort?: ImageDecodePort;
|
|
415
712
|
/**
|
|
@@ -420,48 +717,144 @@ interface DocxEditorConfig {
|
|
|
420
717
|
*/
|
|
421
718
|
zoom?: number;
|
|
422
719
|
/**
|
|
423
|
-
* Where the scale comes from. Defaults to `'auto'` — fit the page width, between 50% and
|
|
424
|
-
* 100% — unless {@link DocxEditorConfig.zoom} is supplied, which means fixed.
|
|
425
|
-
*
|
|
426
|
-
* `'auto'` leaves a window wide enough for the sheet exactly where it is today and shrinks
|
|
427
|
-
* a narrower one instead of growing a horizontal scrollbar. Pass `{ type: 'fixed' }` for
|
|
428
|
-
* the old unconditional behaviour.
|
|
720
|
+
* Where the scale comes from. Defaults to `'auto'` — fit the page width, between 50% and
|
|
721
|
+
* 100% — unless {@link DocxEditorConfig.zoom} is supplied, which means fixed.
|
|
722
|
+
*
|
|
723
|
+
* `'auto'` leaves a window wide enough for the sheet exactly where it is today and shrinks
|
|
724
|
+
* a narrower one instead of growing a horizontal scrollbar. Pass `{ type: 'fixed' }` for
|
|
725
|
+
* the old unconditional behaviour.
|
|
726
|
+
*/
|
|
727
|
+
zoomMode?: ZoomMode | 'auto';
|
|
728
|
+
onFontError?: (error: EditorFontError) => void;
|
|
729
|
+
/** Localized labels for table insertion furniture on the painted surface. */
|
|
730
|
+
tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Which measurer the current document's layout runs on, and whether shaped resolution is
|
|
734
|
+
* still in flight. Returned by {@link DocxEditorInstance.fontMeasurement}.
|
|
735
|
+
*/
|
|
736
|
+
interface FontMeasurementState {
|
|
737
|
+
/** `fixed` estimates advance widths; `shaped` measures real font bytes with HarfBuzz. */
|
|
738
|
+
readonly measurer: 'fixed' | 'shaped';
|
|
739
|
+
/** True while font resolution for the current document is still running. */
|
|
740
|
+
readonly resolving: boolean;
|
|
741
|
+
/** The shaped measurer's identity (admitted face hashes); absent while fixed. */
|
|
742
|
+
readonly producer?: string;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* The host chrome that answers the engine's hyperlink gestures.
|
|
746
|
+
*
|
|
747
|
+
* A CLICK on an external link and Ctrl/Cmd+K both mean "the user wants the link UI", and the
|
|
748
|
+
* engine deliberately does not know what that looks like. Registered rather than passed at
|
|
749
|
+
* construction because the chrome mounts after the editor does, and it survives a document
|
|
750
|
+
* reload — the surface is rebuilt, the handlers are not.
|
|
751
|
+
*/
|
|
752
|
+
interface HyperlinkChromeHandlers {
|
|
753
|
+
/** A plain click on an external or inert link: show the popover at `activation.rect`. */
|
|
754
|
+
readonly onPopover?: (activation: HyperlinkActivation) => void;
|
|
755
|
+
/** Ctrl/Cmd+K: open insert-or-edit for the selection. */
|
|
756
|
+
readonly onRequest?: () => void;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Host chrome for bookmarks.
|
|
760
|
+
*
|
|
761
|
+
* @public
|
|
762
|
+
*/
|
|
763
|
+
interface BookmarkChromeHandlers {
|
|
764
|
+
/**
|
|
765
|
+
* Open the Bookmark dialog for the selection: the `openBookmarkDialog` command, which the
|
|
766
|
+
* Insert menu row and Ctrl/Cmd+Shift+F5 send.
|
|
767
|
+
*/
|
|
768
|
+
readonly onRequest?: () => void;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Host chrome for comment drafts: the review rail, or the host's own comment UI.
|
|
772
|
+
*
|
|
773
|
+
* @public
|
|
774
|
+
*/
|
|
775
|
+
interface CommentDraftChromeHandlers {
|
|
776
|
+
/**
|
|
777
|
+
* Open a comment draft on the selection: the `review.addComment` control's press. The
|
|
778
|
+
* handler takes no arguments. It reads the selection with `getSelectionPlacement`, and can
|
|
779
|
+
* pin it with `retainSelection` while the draft is open. The most recent registration
|
|
780
|
+
* receives each request.
|
|
781
|
+
*/
|
|
782
|
+
readonly onRequest?: () => void;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Host chrome for Go To: the Go to tab of `DocxEditor.Navigation`, or the host's own.
|
|
786
|
+
*
|
|
787
|
+
* @public
|
|
788
|
+
*/
|
|
789
|
+
interface GoToChromeHandlers {
|
|
790
|
+
/** Open the Go To UI: the `openGoTo` command, which its shortcut also sends. */
|
|
791
|
+
readonly onRequest?: () => void;
|
|
792
|
+
/**
|
|
793
|
+
* Whether Ctrl+G (Cmd+Option+G on macOS) in the document opens this UI. Defaults to `true`.
|
|
794
|
+
* With `false` the chord is left to the browser; `openGoTo` still opens the UI. The most
|
|
795
|
+
* recent registration decides. It is read when the chord arrives, so a getter can follow a
|
|
796
|
+
* setting without registering again.
|
|
429
797
|
*/
|
|
430
|
-
|
|
431
|
-
onFontError?: (error: EditorFontError) => void;
|
|
432
|
-
/** Localized labels for table insertion furniture on the painted surface. */
|
|
433
|
-
tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
|
|
798
|
+
readonly shortcut?: boolean;
|
|
434
799
|
}
|
|
435
800
|
/**
|
|
436
|
-
*
|
|
437
|
-
*
|
|
801
|
+
* One painted bookmark mark, as `BookmarkMarkOptions` callbacks see it.
|
|
802
|
+
*
|
|
803
|
+
* @public
|
|
438
804
|
*/
|
|
439
|
-
interface
|
|
440
|
-
/**
|
|
441
|
-
readonly
|
|
442
|
-
/**
|
|
443
|
-
readonly
|
|
444
|
-
/** The
|
|
445
|
-
readonly
|
|
805
|
+
interface BookmarkMarkInfo {
|
|
806
|
+
/** The bookmark's name as the document writes it. */
|
|
807
|
+
readonly name: string;
|
|
808
|
+
/** Whether the name starts with an underscore. */
|
|
809
|
+
readonly hidden: boolean;
|
|
810
|
+
/** The story the bookmark is in. */
|
|
811
|
+
readonly story: BookmarkStory;
|
|
812
|
+
/** Which mark this is: the start bracket, the end bracket, or a point bookmark's I-beam. */
|
|
813
|
+
readonly edge: 'start' | 'end' | 'point';
|
|
446
814
|
}
|
|
447
815
|
/**
|
|
448
|
-
*
|
|
816
|
+
* How Show bookmarks paints its marks. Register with `setBookmarkMarks`.
|
|
449
817
|
*
|
|
450
|
-
*
|
|
451
|
-
* engine deliberately does not know what that looks like. Registered rather than passed at
|
|
452
|
-
* construction because the chrome mounts after the editor does, and it survives a document
|
|
453
|
-
* reload — the surface is rebuilt, the handlers are not.
|
|
818
|
+
* @public
|
|
454
819
|
*/
|
|
455
|
-
interface
|
|
456
|
-
/**
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
820
|
+
interface BookmarkMarkOptions {
|
|
821
|
+
/**
|
|
822
|
+
* Which bookmarks get marks: `'visible'` (the default) skips hidden bookmarks, `'all'`
|
|
823
|
+
* includes them, and a function decides per bookmark.
|
|
824
|
+
*/
|
|
825
|
+
readonly include?: 'visible' | 'all' | ((bookmark: Omit<BookmarkMarkInfo, 'edge'>) => boolean);
|
|
826
|
+
/**
|
|
827
|
+
* Adjust each mark before it is placed: add a class, a `title` tooltip, or attributes.
|
|
828
|
+
* Return another element to replace the mark. The editor positions whatever comes back.
|
|
829
|
+
* Marks ignore the pointer; set `pointer-events: auto` on a mark that shows a tooltip.
|
|
830
|
+
*/
|
|
831
|
+
readonly decorate?: (element: HTMLElement, mark: BookmarkMarkInfo) => HTMLElement | void;
|
|
832
|
+
/** Keep the marks when the browser prints the page. Exports never include them. */
|
|
833
|
+
readonly print?: boolean;
|
|
460
834
|
}
|
|
461
835
|
/** Host chrome that edits a clicked Office Math equation. */
|
|
462
836
|
interface EquationChromeHandlers {
|
|
463
837
|
readonly onPopover?: (activation: EquationActivation) => void;
|
|
464
838
|
}
|
|
839
|
+
/**
|
|
840
|
+
* How {@link DocxEditorInstance.attach} moves an open document.
|
|
841
|
+
*
|
|
842
|
+
* @example
|
|
843
|
+
* ```ts
|
|
844
|
+
* // Bring the editor home from a pop-out and keep typing there.
|
|
845
|
+
* editor.attach(mainSlot, { focus: true });
|
|
846
|
+
* ```
|
|
847
|
+
*
|
|
848
|
+
* @public
|
|
849
|
+
*/
|
|
850
|
+
interface AttachOptions {
|
|
851
|
+
/**
|
|
852
|
+
* Focus the pages after the move, so the caret shows and typing continues. Default: focus
|
|
853
|
+
* returns only when the pages had it before the move or the `detach()`. A first mount from
|
|
854
|
+
* bytes does not take focus.
|
|
855
|
+
*/
|
|
856
|
+
readonly focus?: boolean;
|
|
857
|
+
}
|
|
465
858
|
/**
|
|
466
859
|
* The concrete facade type: the full `Editor` contract plus the instance-only surface.
|
|
467
860
|
*
|
|
@@ -470,6 +863,17 @@ interface EquationChromeHandlers {
|
|
|
470
863
|
* need. Production adapters program against `Editor` for everything else.
|
|
471
864
|
*/
|
|
472
865
|
interface DocxEditorInstance extends Editor {
|
|
866
|
+
/**
|
|
867
|
+
* Replace host font resources without replacing the document or its edit history.
|
|
868
|
+
* Old resolution is cancelled. Existing host faces are removed before the new
|
|
869
|
+
* resolver runs; no answer keeps the bounded fallback. Document-embedded faces
|
|
870
|
+
* remain independent of host fonts. Failures report through `onFontError`.
|
|
871
|
+
*
|
|
872
|
+
* The session, selection, undo, protection, and collaboration state stay intact.
|
|
873
|
+
* Throws after `destroy()`. This does not grant permission to load native fonts.
|
|
874
|
+
* @public
|
|
875
|
+
*/
|
|
876
|
+
setFonts(fonts: DocxEditorConfig['fonts']): Promise<void>;
|
|
473
877
|
/** Bumps on mount, detach, destroy, and document reload — guards async image intents. */
|
|
474
878
|
readonly mountGeneration: number;
|
|
475
879
|
/**
|
|
@@ -486,6 +890,28 @@ interface DocxEditorInstance extends Editor {
|
|
|
486
890
|
* command needs.
|
|
487
891
|
*/
|
|
488
892
|
setHyperlinkChrome(handlers: HyperlinkChromeHandlers): Unsubscribe;
|
|
893
|
+
/**
|
|
894
|
+
* Wire the host's bookmark dialog to Ctrl/Cmd+Shift+F5. Returns an unsubscribe that
|
|
895
|
+
* restores whatever was registered before, like {@link DocxEditorInstance.setHyperlinkChrome}.
|
|
896
|
+
*/
|
|
897
|
+
setBookmarkChrome(handlers: BookmarkChromeHandlers): Unsubscribe;
|
|
898
|
+
/**
|
|
899
|
+
* Wire the host's Go To UI to the `openGoTo` command. Returns an unsubscribe that restores
|
|
900
|
+
* whatever was registered before. `DocxEditor.Navigation` registers its Go to tab.
|
|
901
|
+
*/
|
|
902
|
+
setGoToChrome(handlers: GoToChromeHandlers): Unsubscribe;
|
|
903
|
+
/**
|
|
904
|
+
* Wire the host's comment draft UI to the `review.addComment` control. Returns an
|
|
905
|
+
* unsubscribe that restores whatever was registered before. While nothing is registered,
|
|
906
|
+
* the control is disabled, because nothing could open the draft. The review rail registers
|
|
907
|
+
* when it mounts.
|
|
908
|
+
*/
|
|
909
|
+
setCommentDraftChrome(handlers: CommentDraftChromeHandlers): Unsubscribe;
|
|
910
|
+
/**
|
|
911
|
+
* Choose which bookmarks Show bookmarks marks and customize each mark. Returns an
|
|
912
|
+
* unsubscribe that restores the previous options.
|
|
913
|
+
*/
|
|
914
|
+
setBookmarkMarks(options: BookmarkMarkOptions): Unsubscribe;
|
|
489
915
|
/**
|
|
490
916
|
* Register local revision settings chrome. Disposal cancels its active sessions.
|
|
491
917
|
* Manual renderers take priority over fallback renderers. Pass null to use native chrome
|
|
@@ -669,6 +1095,8 @@ interface DocxEditorInstance extends Editor {
|
|
|
669
1095
|
* of calling it. Call it directly from headless and non-React hosts.
|
|
670
1096
|
*/
|
|
671
1097
|
setRevisionStyles(styles: RevisionStyles): void;
|
|
1098
|
+
/** Replace registrations while preserving document edits and undo history. */
|
|
1099
|
+
setUnsupportedElementRules(rules: readonly UnsupportedElementRule[]): void;
|
|
672
1100
|
/** Merge local preferences and emit revisionMarkupChange after a change.
|
|
673
1101
|
* Invalid settings throw TypeError without changing the previous settings.
|
|
674
1102
|
*/
|
|
@@ -694,20 +1122,42 @@ interface DocxEditorInstance extends Editor {
|
|
|
694
1122
|
*/
|
|
695
1123
|
setReviewPaneOptions(options: ReviewPaneOptions): ExecResult;
|
|
696
1124
|
/**
|
|
697
|
-
* Mount into `el
|
|
698
|
-
*
|
|
699
|
-
* fonts have resolved in the meantime. Attaching while already mounted elsewhere moves
|
|
700
|
-
* the live content via `session.save()`.
|
|
1125
|
+
* Mount into `el`, which may belong to another document: a pop-out window opened with
|
|
1126
|
+
* `window.open`, or a same-origin iframe.
|
|
701
1127
|
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
*
|
|
1128
|
+
* A document that is already open MOVES into `el`, from another element or from a
|
|
1129
|
+
* previous `detach()`: the undo history, the selection, other editing state (such as an
|
|
1130
|
+
* armed format painter) and any collaboration session stay as they are. The reading
|
|
1131
|
+
* position is kept, and keyboard focus returns when the pages had it before (see
|
|
1132
|
+
* {@link AttachOptions.focus}). Focus, selection, pointer, scroll and resize listeners,
|
|
1133
|
+
* timers and registered font faces follow `el`'s window. Pending document bytes (an
|
|
1134
|
+
* instance created without a container, or a `load` while detached) mount now instead, as
|
|
1135
|
+
* a fresh session.
|
|
1136
|
+
*
|
|
1137
|
+
* The host copies the editor stylesheet and any web fonts it loads into `el`'s document.
|
|
1138
|
+
* Move the editor back, or `destroy()` it, before that window closes. An element whose
|
|
1139
|
+
* window has closed (or that has no window) is refused with an `invalidTarget` error and
|
|
1140
|
+
* the editor stays where it is. After `destroy()` this is a no-op that emits a typed
|
|
1141
|
+
* `error` event: a destroyed instance never remounts.
|
|
1142
|
+
*
|
|
1143
|
+
* @example
|
|
1144
|
+
* ```ts
|
|
1145
|
+
* // Pop the editor out into its own window and bring it back later.
|
|
1146
|
+
* const popup = window.open('', 'editor', 'width=900,height=1000')!;
|
|
1147
|
+
* copyStyles(document, popup.document); // host-owned: the editor CSS and fonts
|
|
1148
|
+
* const slot = popup.document.createElement('div');
|
|
1149
|
+
* popup.document.body.append(slot);
|
|
1150
|
+
* editor.attach(slot);
|
|
1151
|
+
* popup.addEventListener('pagehide', () => editor.attach(mainSlot), { once: true });
|
|
1152
|
+
* ```
|
|
705
1153
|
*/
|
|
706
|
-
attach(el: HTMLElement): void;
|
|
1154
|
+
attach(el: HTMLElement, options?: AttachOptions): void;
|
|
707
1155
|
/**
|
|
708
|
-
*
|
|
709
|
-
*
|
|
710
|
-
*
|
|
1156
|
+
* Take the editor out of its element and keep it, with its undo history, selection and
|
|
1157
|
+
* collaboration session, for a later `attach`. While detached the instance still saves,
|
|
1158
|
+
* runs commands and receives remote edits; it paints when attached again. A `load` while
|
|
1159
|
+
* detached replaces the kept document. `destroy()` releases everything. No-op when already
|
|
1160
|
+
* detached or destroyed.
|
|
711
1161
|
*/
|
|
712
1162
|
detach(): void;
|
|
713
1163
|
}
|
|
@@ -838,6 +1288,11 @@ interface ImageOverlayScrollPort {
|
|
|
838
1288
|
interface SelectedDrawingOverlayTarget {
|
|
839
1289
|
/** Keep the text area available for pointer editing through the frame. */
|
|
840
1290
|
readonly textbox?: boolean;
|
|
1291
|
+
/**
|
|
1292
|
+
* False for a text box whose text takes no caret: rotated or vertical text, or a story
|
|
1293
|
+
* holding a table. Absent for a drawing that is not a text box.
|
|
1294
|
+
*/
|
|
1295
|
+
readonly textEditable?: boolean;
|
|
841
1296
|
readonly id: string;
|
|
842
1297
|
readonly pageIndex: number;
|
|
843
1298
|
readonly x: number;
|
|
@@ -1290,153 +1745,27 @@ interface RemoteCaretLabelHost {
|
|
|
1290
1745
|
publish(anchors: readonly RemoteCaretLabelAnchor[]): void;
|
|
1291
1746
|
}
|
|
1292
1747
|
|
|
1293
|
-
/**
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
* complex field results are not supported. Refused with a {@link collaborationModel}.
|
|
1315
|
-
*/
|
|
1316
|
-
readonly fieldResults?: FieldResultsMode;
|
|
1317
|
-
readonly measurer?: TextMeasurer;
|
|
1318
|
-
/** Ambient author for tracked edits. Required before suggesting can write anything. */
|
|
1319
|
-
readonly author?: string;
|
|
1320
|
-
/** Opening mode; changeable at runtime with `setEditingMode`. */
|
|
1321
|
-
readonly editingMode?: SurfaceEditingMode;
|
|
1322
|
-
/**
|
|
1323
|
-
* Identifies the measurer for cache invalidation.
|
|
1324
|
-
*
|
|
1325
|
-
* Fonts resolve asynchronously, so a host that swaps its measurer must change this or the
|
|
1326
|
-
* cached pre-font layout is served for the rest of the session.
|
|
1327
|
-
*/
|
|
1328
|
-
readonly producer?: string;
|
|
1329
|
-
/**
|
|
1330
|
-
* Maps a document-declared font family to the alias its registered bytes live under, so
|
|
1331
|
-
* painted runs can use embedded glyphs without the file's family name entering the
|
|
1332
|
-
* page-global CSS font namespace.
|
|
1333
|
-
*/
|
|
1334
|
-
readonly fontAlias?: (family: string) => string | undefined;
|
|
1335
|
-
/** Points to CSS pixels. */
|
|
1336
|
-
readonly scale?: number;
|
|
1337
|
-
/**
|
|
1338
|
-
* How revisions project into layout and paint. Omitted keeps the layout default
|
|
1339
|
-
* (`all-markup`). The editor facade passes `proposed` when no review module is
|
|
1340
|
-
* registered — the free tier's final-state rendering; the machinery below this
|
|
1341
|
-
* option is shared either way.
|
|
1342
|
-
*/
|
|
1343
|
-
readonly revisionDisplayMode?: ReviewDisplayMode;
|
|
1344
|
-
/** Authors whose changes open in their accepted view-time projection. */
|
|
1345
|
-
readonly hiddenRevisionAuthors?: readonly string[];
|
|
1346
|
-
/**
|
|
1347
|
-
* When a field's result wears Word's grey shading. Omitted keeps Word's own default,
|
|
1348
|
-
* `when-selected`.
|
|
1349
|
-
*
|
|
1350
|
-
* Applies to ORDINARY fields only. Legacy form fields follow the document's
|
|
1351
|
-
* `w:doNotShadeFormData`, because a form's blanks are the document's own statement about
|
|
1352
|
-
* itself rather than a reader's preference.
|
|
1353
|
-
*
|
|
1354
|
-
* A paint-level option, not a layout one: it changes no geometry, so switching it repaints
|
|
1355
|
-
* without remeasuring a single line.
|
|
1356
|
-
*/
|
|
1357
|
-
readonly fieldShading?: FieldShadingMode;
|
|
1358
|
-
/** Show paragraph-end furniture without changing document content. */
|
|
1359
|
-
readonly showParagraphMarks?: boolean;
|
|
1360
|
-
readonly onToggleParagraphMarks?: () => void;
|
|
1361
|
-
/**
|
|
1362
|
-
* How tracked changes are coloured: by AUTHOR (the default), by kind, or by author with
|
|
1363
|
-
* host-pinned colours. A paint-level option like {@link fieldShading}: it changes no
|
|
1364
|
-
* geometry, so switching it repaints without remeasuring a line. Applies wherever
|
|
1365
|
-
* revision markup paints, whatever the {@link revisionDisplayMode} leaves visible.
|
|
1366
|
-
*/
|
|
1367
|
-
readonly revisionStyles?: RevisionStyles;
|
|
1368
|
-
readonly revisionMarkup?: ResolvedRevisionMarkup;
|
|
1369
|
-
/**
|
|
1370
|
-
* The review module's derivation hooks for this surface's session. Absent,
|
|
1371
|
-
* `session.reviewItems()` is the typed empty queue and every review affordance
|
|
1372
|
-
* built on it stays inert.
|
|
1373
|
-
*/
|
|
1374
|
-
readonly reviewModel?: ReviewModuleContribution;
|
|
1375
|
-
/**
|
|
1376
|
-
* The family a run with no authored font is reported as by `formatting()` AND painted
|
|
1377
|
-
* in — the face the measurer falls back to. Absent, such a run reports
|
|
1378
|
-
* `fontFamily: null` and paints in whatever font the page inherits, which the measurer
|
|
1379
|
-
* did not measure: visible glyphs drift from wrap points and caret geometry.
|
|
1380
|
-
*/
|
|
1381
|
-
readonly defaultFontFamily?: string;
|
|
1382
|
-
/**
|
|
1383
|
-
* Who resolves a pointer to a caret.
|
|
1384
|
-
*
|
|
1385
|
-
* `'engine'` (the default) answers from the layout records, which is what makes a click in
|
|
1386
|
-
* a margin, an indent or a cell's padding land where it was aimed. `'native'` binds no
|
|
1387
|
-
* pointer handlers and leaves the browser's own caret placement in charge.
|
|
1388
|
-
*/
|
|
1389
|
-
readonly pointer?: 'engine' | 'native';
|
|
1390
|
-
readonly onChange?: (state: PaginatedSurfaceState) => void;
|
|
1391
|
-
/**
|
|
1392
|
-
* Told each time an edit is refused, with the raw reason: a store code such as `'locked'`,
|
|
1393
|
-
* or the surface's own refusal sentence. The raw reason can be a sentence, so a listener
|
|
1394
|
-
* maps it to a public code before it reports anything.
|
|
1395
|
-
*/
|
|
1396
|
-
readonly onRejection?: (reason: string) => void;
|
|
1397
|
-
/**
|
|
1398
|
-
* Told the milliseconds of each layout pass and each paint. For `'input'`, told the browser
|
|
1399
|
-
* timestamp of each key press or pointer press on the pages, so a listener can time it to
|
|
1400
|
-
* the next frame. Numbers only.
|
|
1401
|
-
*/
|
|
1402
|
-
readonly onTiming?: (phase: 'layout' | 'paint' | 'input', value: number) => void;
|
|
1403
|
-
/**
|
|
1404
|
-
* A plain click on an external (or inert) hyperlink, for a host to open its popover with.
|
|
1405
|
-
*
|
|
1406
|
-
* Absent means such a click does nothing. That is deliberate: a host with no popover
|
|
1407
|
-
* mounted must not have clicks silently opening tabs, and the popover is the only path to
|
|
1408
|
-
* activation (see the navigation module's single `window.open` gate).
|
|
1409
|
-
*/
|
|
1410
|
-
readonly onHyperlinkPopover?: (activation: HyperlinkActivation) => void;
|
|
1411
|
-
readonly onEquationPopover?: (activation: EquationActivation) => void;
|
|
1412
|
-
/**
|
|
1413
|
-
* Ctrl/Cmd+K — Word's Insert Hyperlink. The engine reports the request; the host's chrome
|
|
1414
|
-
* decides what a link dialog looks like. A host that passes nothing leaves the key alone
|
|
1415
|
-
* rather than doing something surprising with it.
|
|
1416
|
-
*/
|
|
1417
|
-
readonly onRequestHyperlink?: () => void;
|
|
1418
|
-
/** Return true when host chrome handles this session. */
|
|
1419
|
-
readonly onRequestTextFormField?: (session: TextFormFieldDialogSession) => boolean;
|
|
1420
|
-
readonly onRequestContentControlWidget?: (session: ContentControlWidgetSession) => boolean;
|
|
1421
|
-
readonly onRequestInvalidTextFormField?: (session: InvalidTextFormFieldSession) => boolean;
|
|
1422
|
-
/**
|
|
1423
|
-
* Localized accessible names for core-owned table insertion furniture.
|
|
1424
|
-
* Defaults to English from `@docx-editor.dev/i18n` when omitted.
|
|
1425
|
-
*/
|
|
1426
|
-
readonly tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
|
|
1427
|
-
/** Localized drawing refusal labels; defaults to English when omitted. */
|
|
1428
|
-
readonly drawingStrings?: DrawingPaintStrings;
|
|
1429
|
-
/** Override raster decode for package image intents; defaults to browser/headless. */
|
|
1430
|
-
readonly imageDecodePort?: ImageDecodePort;
|
|
1431
|
-
/**
|
|
1432
|
-
* Localized name for a generated TOC, written as the control's `w:alias` on insert.
|
|
1433
|
-
*
|
|
1434
|
-
* The update ACTIONS are not here: they are rows in the host's context menu, which owns
|
|
1435
|
-
* its own labels. The engine paints no menu of its own.
|
|
1436
|
-
*/
|
|
1437
|
-
readonly tocLabels?: {
|
|
1438
|
-
readonly title: string;
|
|
1439
|
-
};
|
|
1748
|
+
/** The surface's bookmark lane. */
|
|
1749
|
+
interface SurfaceBookmarks {
|
|
1750
|
+
/** Every bookmark in the document: body first, then headers, footers and notes. */
|
|
1751
|
+
list(): readonly BookmarkSummary[];
|
|
1752
|
+
/** Why `insert(name)` would be refused now, or null. */
|
|
1753
|
+
insertRefusal(name: string): string | null;
|
|
1754
|
+
/** Bookmark the selection under `name`, moving a bookmark that already has it. */
|
|
1755
|
+
insert(name: string): boolean;
|
|
1756
|
+
/** Remove the bookmark with this name, compared without case, and its copies. */
|
|
1757
|
+
remove(name: string): boolean;
|
|
1758
|
+
/** Keep the first bookmark with this name and remove its copies, in one transaction. */
|
|
1759
|
+
keepFirst(name: string): boolean;
|
|
1760
|
+
/** Why a bookmark write cannot happen now, or null. */
|
|
1761
|
+
writeRefusal(): string | null;
|
|
1762
|
+
/** Select the bookmark's range and scroll it into view. */
|
|
1763
|
+
goTo(name: string): boolean;
|
|
1764
|
+
/** Whether the marks are shown. */
|
|
1765
|
+
shown(): boolean;
|
|
1766
|
+
setShown(shown: boolean): void;
|
|
1767
|
+
/** Paint the marks for one rendered frame. */
|
|
1768
|
+
paint(frame: SurfaceOverlayFrame): void;
|
|
1440
1769
|
}
|
|
1441
1770
|
|
|
1442
1771
|
/**
|
|
@@ -1465,7 +1794,8 @@ interface SurfaceFormatting {
|
|
|
1465
1794
|
/**
|
|
1466
1795
|
* `w:spacing`'s line rule and its value: LINES for `multiple`, points for the other two
|
|
1467
1796
|
* (`w:line` is 240ths of a line under `auto` and twentieths of a point otherwise).
|
|
1468
|
-
*
|
|
1797
|
+
* The effective value: a paragraph whose cascade states none reads as single spacing
|
|
1798
|
+
* (`multiple`, 1). Null when the selection's paragraphs disagree.
|
|
1469
1799
|
*/
|
|
1470
1800
|
readonly lineSpacing: {
|
|
1471
1801
|
readonly rule: 'multiple' | 'exact' | 'atLeast';
|
|
@@ -1637,12 +1967,16 @@ interface PaginatedSurface {
|
|
|
1637
1967
|
readonly commitGuard?: () => boolean;
|
|
1638
1968
|
}): Promise<ImageIntentResult>;
|
|
1639
1969
|
layout(): SemanticLayout;
|
|
1970
|
+
/** The measurer layout uses; sizes engine-authored shapes such as a watermark. */
|
|
1971
|
+
textMeasurer?(): TextMeasurer;
|
|
1640
1972
|
state(): PaginatedSurfaceState;
|
|
1641
1973
|
/** One-based page at the caret, or at the centre of the mounted viewport. */
|
|
1642
1974
|
currentPage(mode?: 'viewport' | 'caret'): number;
|
|
1643
1975
|
type(text: string): void;
|
|
1644
1976
|
/** Author one explicit tracked text change without changing the editing mode. */
|
|
1645
1977
|
proposeTextChange(kind: 'insertion' | 'deletion' | 'replacement', text: string, author?: string): boolean;
|
|
1978
|
+
/** Replace a paragraph range of the active story in place; suggesting tracks it. */
|
|
1979
|
+
replaceTextInPlace(paragraphId: string, start: number, end: number, text: string): boolean;
|
|
1646
1980
|
/**
|
|
1647
1981
|
* Queue plain typed text for a batched commit at the caret.
|
|
1648
1982
|
*
|
|
@@ -1703,11 +2037,11 @@ interface PaginatedSurface {
|
|
|
1703
2037
|
*/
|
|
1704
2038
|
adjustIndent(direction: 'increase' | 'decrease'): boolean;
|
|
1705
2039
|
/**
|
|
1706
|
-
* Tab (`increase`) or Shift+Tab (`decrease`) over a selection outside a list
|
|
1707
|
-
* indent and keep the text.
|
|
2040
|
+
* Tab (`increase`) or Shift+Tab (`decrease`) over a selection outside a list and outside a
|
|
2041
|
+
* table cell (the key moves between cells there): change the indent and keep the text.
|
|
1708
2042
|
*
|
|
1709
|
-
* A selection over two or more paragraphs, or a cell rectangle
|
|
1710
|
-
* each paragraph. A selection in one paragraph that starts at the paragraph start, whole or
|
|
2043
|
+
* A selection over two or more paragraphs, or a cell rectangle (only from a host calling
|
|
2044
|
+
* this directly), steps the left indent of each paragraph. A selection in one paragraph that starts at the paragraph start, whole or
|
|
1711
2045
|
* partial, works on the first line: Tab sets a first-line indent of one default tab stop
|
|
1712
2046
|
* (`w:defaultTabStop`), or steps the left indent when the first line already has that
|
|
1713
2047
|
* indent or more, or a hanging indent. Shift+Tab clears a first-line indent that the
|
|
@@ -1823,16 +2157,17 @@ interface PaginatedSurface {
|
|
|
1823
2157
|
* caret-preserving edits (Backspace, Delete, Enter) and IME composition, and is
|
|
1824
2158
|
* discarded when the caret moves elsewhere or the document is undone. A property the
|
|
1825
2159
|
* store cannot author is refused at arm time rather than left to poison the keystroke.
|
|
2160
|
+
* Returns the document's refusal reason, or null when the write landed, armed, or did nothing.
|
|
1826
2161
|
*/
|
|
1827
|
-
toggleRunProperty(localName: string, attributes?: Record<string, string>):
|
|
2162
|
+
toggleRunProperty(localName: string, attributes?: Record<string, string>): string | null;
|
|
1828
2163
|
/**
|
|
1829
2164
|
* SET a run property over the selection, rather than toggling it.
|
|
1830
2165
|
*
|
|
1831
2166
|
* Font family, size and colour are values, not switches: picking Arial twice must leave
|
|
1832
2167
|
* the text in Arial, which a toggle would not. Arms at a collapsed caret on the same
|
|
1833
|
-
* terms as `toggleRunProperty
|
|
2168
|
+
* terms as `toggleRunProperty`, and returns a refusal the same way.
|
|
1834
2169
|
*/
|
|
1835
|
-
setRunProperty(localName: string, attributes?: Record<string, string>):
|
|
2170
|
+
setRunProperty(localName: string, attributes?: Record<string, string>): string | null;
|
|
1836
2171
|
/**
|
|
1837
2172
|
* Set a property on every paragraph the selection touches — alignment, style, spacing.
|
|
1838
2173
|
*
|
|
@@ -2006,6 +2341,11 @@ interface PaginatedSurface {
|
|
|
2006
2341
|
* with code `destroyed`. Does not change focus.
|
|
2007
2342
|
*/
|
|
2008
2343
|
save(): Uint8Array;
|
|
2344
|
+
/**
|
|
2345
|
+
* {@link save} in steps a caller can pause between. Everything `save` does before it
|
|
2346
|
+
* serializes happens at the call, and the document is captured then.
|
|
2347
|
+
*/
|
|
2348
|
+
saveSteps(): Generator<void, Uint8Array>;
|
|
2009
2349
|
/** Whether a body paragraph belongs to a detected TOC boundary or cached result. */
|
|
2010
2350
|
isInsideToc(paragraphId: string): boolean;
|
|
2011
2351
|
/**
|
|
@@ -2013,6 +2353,8 @@ interface PaginatedSurface {
|
|
|
2013
2353
|
* calls `openExternal`; nothing else in the engine may call `window.open`.
|
|
2014
2354
|
*/
|
|
2015
2355
|
readonly navigation: SurfaceNavigation;
|
|
2356
|
+
/** List, add, delete and jump to bookmarks, and show their marks. */
|
|
2357
|
+
readonly bookmarkEditing: SurfaceBookmarks;
|
|
2016
2358
|
/**
|
|
2017
2359
|
* Pin the current selection so it stays VISIBLY selected while focus is elsewhere.
|
|
2018
2360
|
*
|
|
@@ -2076,6 +2418,7 @@ interface PaginatedSurface {
|
|
|
2076
2418
|
*/
|
|
2077
2419
|
setRevisionMarkup(settings: ResolvedRevisionMarkup): void;
|
|
2078
2420
|
setRevisionStyles(colors: RevisionStyles | undefined): void;
|
|
2421
|
+
setUnsupportedElementRules(rules: readonly UnsupportedElementRule[]): void;
|
|
2079
2422
|
/** Toggle paragraph-end furniture without layout or document changes. */
|
|
2080
2423
|
setShowParagraphMarks(show: boolean): void;
|
|
2081
2424
|
/**
|
|
@@ -2149,11 +2492,19 @@ interface PaginatedSurface {
|
|
|
2149
2492
|
* pages painting text the tree no longer had, every card anchored where it used to be, and
|
|
2150
2493
|
* the caret past the end of the paragraph — after which every keystroke was refused with
|
|
2151
2494
|
* `offset-out-of-range` until the user happened to click somewhere else.
|
|
2495
|
+
*
|
|
2496
|
+
* Returns null when the write went through, and otherwise why it did not: the external
|
|
2497
|
+
* refresh when the write guard skipped the commit, a gate's reason (viewing, collaboration)
|
|
2498
|
+
* when `run` never ran, or the reason `run` reported. A `run` that commits nothing without a
|
|
2499
|
+
* reason counts as refused (`'rejected'`). Gate and `run` reasons also become
|
|
2500
|
+
* `lastRejection`; a skipped refresh changes nothing, `lastRejection` included.
|
|
2501
|
+
*
|
|
2502
|
+
* `run` receives the store history token of this commit, for the store write it performs.
|
|
2152
2503
|
*/
|
|
2153
|
-
commitReviewOps(run: () => {
|
|
2504
|
+
commitReviewOps(run: (historyToken: symbol | undefined) => {
|
|
2154
2505
|
readonly committed: boolean;
|
|
2155
2506
|
readonly reason?: unknown;
|
|
2156
|
-
}, intent?: ReviewWriteIntent):
|
|
2507
|
+
}, intent?: ReviewWriteIntent): string | null;
|
|
2157
2508
|
/**
|
|
2158
2509
|
* The layout as last PUBLISHED, without forcing pending work.
|
|
2159
2510
|
*
|
|
@@ -2209,9 +2560,11 @@ interface PaginatedSurface {
|
|
|
2209
2560
|
* other order repainted the bands and reported state while the caret was still the only
|
|
2210
2561
|
* evidence, so a host saw the wrong twin active for one frame and then a correction. Omit it
|
|
2211
2562
|
* to pin against the live selection, which is what a header or note scope has already set.
|
|
2563
|
+
* `preventScroll` installs `selection` with no scroll, now or on a later repaint.
|
|
2212
2564
|
*/
|
|
2213
2565
|
activateReview(key: string, selection?: SemanticSelection, options?: {
|
|
2214
2566
|
readonly allowExcluded?: boolean;
|
|
2567
|
+
readonly preventScroll?: boolean;
|
|
2215
2568
|
}): void;
|
|
2216
2569
|
/**
|
|
2217
2570
|
* The key {@link activateReview} pinned, or null once its selection is no longer live.
|
|
@@ -2251,14 +2604,14 @@ interface PaginatedSurface {
|
|
|
2251
2604
|
selectedText(): string;
|
|
2252
2605
|
/**
|
|
2253
2606
|
* Every clipboard flavour for the current selection: plain text, and the interop HTML
|
|
2254
|
-
* carrying the embedded fragment when the selection is a body-story range. A cell
|
|
2255
|
-
*
|
|
2256
|
-
*
|
|
2607
|
+
* carrying the embedded fragment when the selection is a body-story range. A cell rectangle
|
|
2608
|
+
* answers grid text plus a flattened table; `html` is null where only plain text should be
|
|
2609
|
+
* written. A chart refuses as `'chart-content'`, another object as `'unsupported-content'`.
|
|
2257
2610
|
*/
|
|
2258
2611
|
copyFlavours(): {
|
|
2259
2612
|
readonly text: string;
|
|
2260
2613
|
readonly html: string | null;
|
|
2261
|
-
readonly reason?: 'unsupported-content';
|
|
2614
|
+
readonly reason?: 'unsupported-content' | 'chart-content';
|
|
2262
2615
|
};
|
|
2263
2616
|
/**
|
|
2264
2617
|
* Route one paste payload by fidelity: embedded fragment, then external HTML, then
|
|
@@ -2289,6 +2642,25 @@ interface PaginatedSurface {
|
|
|
2289
2642
|
* @public
|
|
2290
2643
|
*/
|
|
2291
2644
|
setTableInteractionLabel(resolver: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string): void;
|
|
2645
|
+
/**
|
|
2646
|
+
* Move the painted pages into `container`, which may belong to another document: a pop-out
|
|
2647
|
+
* window or an iframe. The session, undo history, selection and collaboration replica stay
|
|
2648
|
+
* as they are; only the DOM and the document- and window-level listeners move. Open
|
|
2649
|
+
* content-control menus close.
|
|
2650
|
+
*/
|
|
2651
|
+
moveTo(container: HTMLElement, options?: {
|
|
2652
|
+
readonly focus?: boolean;
|
|
2653
|
+
}): void;
|
|
2654
|
+
/**
|
|
2655
|
+
* Take the pages out of their container and keep them, with all editing state, for a later
|
|
2656
|
+
* `moveTo`. A parked surface still accepts commands and remote edits; it paints into a
|
|
2657
|
+
* private, disconnected holder until it moves again.
|
|
2658
|
+
*/
|
|
2659
|
+
park(): void;
|
|
2660
|
+
/** Whether the surface is parked: mounted nowhere, state kept. */
|
|
2661
|
+
parked(): boolean;
|
|
2662
|
+
/** The element the pages are in now: the host's, or a private holder while parked. */
|
|
2663
|
+
hostElement(): HTMLElement;
|
|
2292
2664
|
destroy(): void;
|
|
2293
2665
|
/**
|
|
2294
2666
|
* The section a painted page belongs to, and the page that section starts on.
|
|
@@ -2338,8 +2710,10 @@ interface PaginatedSurface {
|
|
|
2338
2710
|
* Flushes layout so the next enter/rebind sees the new resolution.
|
|
2339
2711
|
*/
|
|
2340
2712
|
applyHeaderFooterLifecycle(op: {
|
|
2341
|
-
readonly op: 'createHeaderFooter' | 'deleteHeaderFooter' | 'linkToPrevious' | 'unlinkFromPrevious' | 'setSectionFurnitureOptions' | 'setDocumentProtection';
|
|
2713
|
+
readonly op: 'createHeaderFooter' | 'deleteHeaderFooter' | 'linkToPrevious' | 'unlinkFromPrevious' | 'setSectionFurnitureOptions' | 'setDocumentProtection' | 'setWatermark';
|
|
2342
2714
|
readonly sectionIndex?: number;
|
|
2715
|
+
/** `setWatermark` only: the new watermark, or null to remove it. */
|
|
2716
|
+
readonly watermark?: PackageWatermarkWrite | null;
|
|
2343
2717
|
/** `setDocumentProtection` only: enforce filling-in-forms protection, or lift it. */
|
|
2344
2718
|
readonly enforce?: boolean;
|
|
2345
2719
|
readonly kind?: 'header' | 'footer';
|
|
@@ -3081,6 +3455,15 @@ declare const CHROME_GROUPS: readonly [{
|
|
|
3081
3455
|
readonly state: {
|
|
3082
3456
|
readonly kind: 'command';
|
|
3083
3457
|
};
|
|
3458
|
+
}, {
|
|
3459
|
+
readonly id: 'bookmarks';
|
|
3460
|
+
readonly shape: 'icon';
|
|
3461
|
+
readonly labelKey: 'formattingBar.showBookmarks';
|
|
3462
|
+
readonly defaultToolbar: false;
|
|
3463
|
+
readonly paths: readonly string[];
|
|
3464
|
+
readonly state: {
|
|
3465
|
+
readonly kind: 'command';
|
|
3466
|
+
};
|
|
3084
3467
|
}, {
|
|
3085
3468
|
readonly id: 'protectDocument';
|
|
3086
3469
|
readonly shape: 'icon';
|
|
@@ -3249,6 +3632,20 @@ declare const CHROME_GROUPS: readonly [{
|
|
|
3249
3632
|
readonly state: {
|
|
3250
3633
|
readonly kind: 'value';
|
|
3251
3634
|
};
|
|
3635
|
+
}, {
|
|
3636
|
+
readonly id: 'mergeCells';
|
|
3637
|
+
readonly labelKey: 'table.mergeCells';
|
|
3638
|
+
readonly paths: readonly string[];
|
|
3639
|
+
readonly state: {
|
|
3640
|
+
readonly kind: 'command';
|
|
3641
|
+
};
|
|
3642
|
+
}, {
|
|
3643
|
+
readonly id: 'splitCell';
|
|
3644
|
+
readonly labelKey: 'table.splitCell';
|
|
3645
|
+
readonly paths: readonly string[];
|
|
3646
|
+
readonly state: {
|
|
3647
|
+
readonly kind: 'command';
|
|
3648
|
+
};
|
|
3252
3649
|
}];
|
|
3253
3650
|
}, {
|
|
3254
3651
|
readonly id: 'paragraph';
|
|
@@ -3390,6 +3787,27 @@ declare const CHROME_GROUPS: readonly [{
|
|
|
3390
3787
|
readonly state: {
|
|
3391
3788
|
readonly kind: 'command';
|
|
3392
3789
|
};
|
|
3790
|
+
}, {
|
|
3791
|
+
readonly id: 'bookmark';
|
|
3792
|
+
readonly labelKey: 'toolbar.bookmark';
|
|
3793
|
+
readonly paths: readonly string[];
|
|
3794
|
+
readonly state: {
|
|
3795
|
+
readonly kind: 'command';
|
|
3796
|
+
};
|
|
3797
|
+
}, {
|
|
3798
|
+
readonly id: 'goToBookmark';
|
|
3799
|
+
readonly labelKey: 'toolbar.goToBookmark';
|
|
3800
|
+
readonly paths: readonly string[];
|
|
3801
|
+
readonly state: {
|
|
3802
|
+
readonly kind: 'command';
|
|
3803
|
+
};
|
|
3804
|
+
}, {
|
|
3805
|
+
readonly id: 'watermark';
|
|
3806
|
+
readonly labelKey: 'toolbar.watermark';
|
|
3807
|
+
readonly paths: readonly string[];
|
|
3808
|
+
readonly state: {
|
|
3809
|
+
readonly kind: 'command';
|
|
3810
|
+
};
|
|
3393
3811
|
}];
|
|
3394
3812
|
}];
|
|
3395
3813
|
/**
|
|
@@ -3406,7 +3824,7 @@ type ChromeGroupId = 'history' | 'zoom' | 'styles' | 'font' | 'text' | 'script'
|
|
|
3406
3824
|
*
|
|
3407
3825
|
* @public
|
|
3408
3826
|
*/
|
|
3409
|
-
type ChromeSlotId = 'history.undo' | 'history.redo' | 'zoom.level' | 'styles.style' | 'font.family' | 'font.size' | 'text.bold' | 'text.italic' | 'text.underline' | 'text.strike' | 'text.color' | 'text.highlight' | 'text.link' | 'script.super' | 'script.sub' | 'alignment.left' | 'alignment.center' | 'alignment.right' | 'alignment.justify' | 'direction.ltr' | 'direction.rtl' | 'list.bullet' | 'list.numbered' | 'list.outdent' | 'list.indent' | 'list.lineSpacing' | 'format.painter' | 'format.clear' | 'review.revisionMarkup' | 'review.comments' | 'review.addComment' | 'review.paragraphMarks' | 'review.protectDocument' | 'review.simpleMarkup' | 'review.allMarkup' | 'review.noMarkup' | 'review.original' | 'review.previousChange' | 'review.nextChange' | 'review.acceptAllChanges' | 'review.rejectAllChanges' | 'review.authors' | 'review.editingMode' | 'contentControl.showAll' | 'contentControl.formFill' | 'contentControl.inspector' | 'contentControl.remove' | 'image.insert' | 'image.properties' | 'image.wrap' | 'image.altText' | 'table.insert' | 'table.borderTarget' | 'table.borderColor' | 'table.borderStyle' | 'table.borderWidth' | 'table.cellFill' | 'file.open' | 'file.save' | 'file.exportMarkdown' | 'file.exportPdf' | 'file.print' | 'paragraph.dialog' | 'file.pageSetup' | 'insert.textBox' | 'insert.footnote' | 'insert.endnote' | 'insert.pageNumber' | 'insert.totalPages' | 'insert.sectionPages' | 'insert.pageXofY' | 'insert.pageBreak' | 'insert.sectionBreakNextPage' | 'insert.sectionBreakContinuous' | 'insert.toc';
|
|
3827
|
+
type ChromeSlotId = 'history.undo' | 'history.redo' | 'zoom.level' | 'styles.style' | 'font.family' | 'font.size' | 'text.bold' | 'text.italic' | 'text.underline' | 'text.strike' | 'text.color' | 'text.highlight' | 'text.link' | 'script.super' | 'script.sub' | 'alignment.left' | 'alignment.center' | 'alignment.right' | 'alignment.justify' | 'direction.ltr' | 'direction.rtl' | 'list.bullet' | 'list.numbered' | 'list.outdent' | 'list.indent' | 'list.lineSpacing' | 'format.painter' | 'format.clear' | 'review.revisionMarkup' | 'review.comments' | 'review.addComment' | 'review.paragraphMarks' | 'review.bookmarks' | 'review.protectDocument' | 'review.simpleMarkup' | 'review.allMarkup' | 'review.noMarkup' | 'review.original' | 'review.previousChange' | 'review.nextChange' | 'review.acceptAllChanges' | 'review.rejectAllChanges' | 'review.authors' | 'review.editingMode' | 'contentControl.showAll' | 'contentControl.formFill' | 'contentControl.inspector' | 'contentControl.remove' | 'image.insert' | 'image.properties' | 'image.wrap' | 'image.altText' | 'table.insert' | 'table.borderTarget' | 'table.borderColor' | 'table.borderStyle' | 'table.borderWidth' | 'table.cellFill' | 'table.mergeCells' | 'table.splitCell' | 'file.open' | 'file.save' | 'file.exportMarkdown' | 'file.exportPdf' | 'file.print' | 'paragraph.dialog' | 'file.pageSetup' | 'insert.textBox' | 'insert.footnote' | 'insert.endnote' | 'insert.pageNumber' | 'insert.totalPages' | 'insert.sectionPages' | 'insert.pageXofY' | 'insert.pageBreak' | 'insert.sectionBreakNextPage' | 'insert.sectionBreakContinuous' | 'insert.toc' | 'insert.bookmark' | 'insert.goToBookmark' | 'insert.watermark';
|
|
3410
3828
|
/**
|
|
3411
3829
|
* Every control id in the chrome, as a literal union. Unique WITHIN a group, not
|
|
3412
3830
|
* globally (`image.insert` / `table.insert`) — key consumers on {@link ChromeSlotId}.
|
|
@@ -3436,15 +3854,20 @@ declare function chromeSlotId(group: {
|
|
|
3436
3854
|
* @public
|
|
3437
3855
|
*/
|
|
3438
3856
|
declare function defaultChromeGroups(): readonly ChromeGroup[];
|
|
3857
|
+
/** Options for {@link formattingBarChromeGroups}. @public */
|
|
3858
|
+
interface FormattingBarOptions {
|
|
3859
|
+
/** Show `direction.ltr` and `direction.rtl` after alignment, as for a right-to-left UI. */
|
|
3860
|
+
readonly direction?: boolean;
|
|
3861
|
+
}
|
|
3439
3862
|
/**
|
|
3440
|
-
* The formatting-bar groups for one editor snapshot: the default bar,
|
|
3441
|
-
*
|
|
3442
|
-
* lives in the packaged Insert menu (`CHROME_MENUS`), not in
|
|
3443
|
-
* a bar button places `DocxEditor.Toolbar.ImageInsert` itself.
|
|
3863
|
+
* The formatting-bar groups for one editor snapshot: the default bar, the contextual `image`
|
|
3864
|
+
* group when a drawing is selected, and the direction group when `options.direction` asks.
|
|
3865
|
+
* Insertion without a selection lives in the packaged Insert menu (`CHROME_MENUS`), not in
|
|
3866
|
+
* the bar — a host that wants a bar button places `DocxEditor.Toolbar.ImageInsert` itself.
|
|
3444
3867
|
*
|
|
3445
3868
|
* @public
|
|
3446
3869
|
*/
|
|
3447
|
-
declare function formattingBarChromeGroups(image: ImageContext | null): readonly ChromeGroup[];
|
|
3870
|
+
declare function formattingBarChromeGroups(image: ImageContext | null, options?: FormattingBarOptions): readonly ChromeGroup[];
|
|
3448
3871
|
|
|
3449
3872
|
/**
|
|
3450
3873
|
* The menu bar the chrome shows above the toolbar, in bar order: File, Format, Insert, Review,
|
|
@@ -3738,7 +4161,8 @@ declare function runTableCommand(editor: Editor | null, command: EditorCommand,
|
|
|
3738
4161
|
*
|
|
3739
4162
|
* Construction is separate from mounting. Pass a `container` and the document mounts
|
|
3740
4163
|
* immediately; omit it and nothing touches the DOM until `attach(el)` — the provider-first
|
|
3741
|
-
* shape. `detach()`
|
|
4164
|
+
* shape. `detach()` parks the live document and a later `attach(el)` moves it in, with undo,
|
|
4165
|
+
* selection and collaboration intact, even into another window (a pop-out or an iframe).
|
|
3742
4166
|
*
|
|
3743
4167
|
* `snapshot()` is version-cached: the same reference until state actually moves, with
|
|
3744
4168
|
* reference-stable sub-objects, so it is safe as a `useSyncExternalStore` source.
|
|
@@ -3875,5 +4299,5 @@ interface ChromePrintJob {
|
|
|
3875
4299
|
*/
|
|
3876
4300
|
declare function runChromePrint(editor: Pick<Editor, 'save'> & Partial<Pick<Editor, 'snapshot'>>, handlers?: ChromeExportHandlers, container?: Document | Element): Promise<ChromePrintJob>;
|
|
3877
4301
|
|
|
3878
|
-
export { bindHistoryGroup as
|
|
3879
|
-
export type {
|
|
4302
|
+
export { bindHistoryGroup as $, CHROME_GROUPS as C, blankDocumentBytes as a0, chromeMenuSlots as a1, commandForSlot as a2, commandForSlotValue as a3, createDocxEditor as a4, createFontSource as a5, customFonts as a6, deferFonts as a7, isChromePrintShortcut as a8, loadFonts as a9, IMAGE_OVERLAY_NUDGE_SHIFT_PT as aA, TABLE_BORDER_STYLE_OPTIONS as aU, TABLE_BORDER_TARGET_OPTIONS as aV, TABLE_BORDER_WIDTH_OPTIONS as aW, TABLE_CHROME_SLOT_IDS as aX, runChromeExport as aa, runChromePrint as ab, runToolbarCommand as ac, toolbarCommandState as ad, CHROME_UNAVAILABLE_KEY as al, DEFAULT_TABLE_CHROME_DRAFT as ar, EMU_PER_POINT as at, IMAGE_OVERLAY_NUDGE_PT as az, applyTableChromePick as b6, canExecuteImageCommand as b7, captureImageMutationPreconditions as b8, chromeControlCount as b9, runTableChromeCommand as bA, runTableCommand as bB, selectedDrawingOverlayTargetOf as bC, selectedImageStateOf as bD, surfacePaintScale as bE, tableChromeIconPaths as bF, tableChromeLabelKeyForTarget as bG, tableChromeToolbarState as bH, tableChromeVisible as bI, tableCommandToolbarState as bJ, toolbarCommandStates as bK, chromeProbeForSlot as ba, chromeSlotId as bb, chromeSlotIsToggle as bc, commandExecOptions as bd, commandForTableChromeSlotValue as be, computeImageResizeResult as bf, computeMovedImagePosition as bg, computeResizedImageExtentEmu as bh, createImageOverlayScrollPort as bi, cssPixelsToLayoutPoints as bj, defaultChromeGroups as bk, defaultTableLabel as bl, emuToOverlayPoints as bm, equationAtPosition as bn, executeImageCommand as bo, finalizeImageOverlayInteraction as bp, formattingBarChromeGroups as bq, isStaleImageInteractionCommit as br, isTableChromeSlot as bs, layoutPointsToCssPixels as bt, overlayFrameToSheetCssPixels as bu, overlayHostOrigin as bv, pointsToEmu as bw, probeTableChromeCommand as bx, resizePreservesAspect as by, runSave as bz, CHROME_MENUS as d, ChromeExportError as e, ChromePrintError as p };
|
|
4303
|
+
export type { AttachOptions as A, BlankDocumentOptions as B, DocxEditorConfig as D, EquationActivation as E, EquationChromeHandlers as F, FontLoadFailure as G, FontLoadFailureReason as H, FontMeasurementState as I, FontUrlSource as J, GoToChromeHandlers as K, HistoryGroupBinding as L, HistoryGroupBindingOptions as M, HyperlinkActivation as N, HyperlinkChromeHandlers as O, InvalidTextFormFieldChromeHandlers as P, InvalidTextFormFieldSession as Q, LoadFontsRequest as R, LoadFontsResult as S, LockedControlNavigation as T, PopupChromeRegistrationOptions as U, SurfaceEquation as V, SurfaceHyperlink as W, TableChromeSlotId as X, ToolbarCommandState as Y, ToolbarValueMap as Z, ToolbarValueSlot as _, BookmarkChromeHandlers as a, TableBorderWidthOption as a$, ImageInteractionSession as aB, ImageOverlayScrollPort as aC, ImageResizeHandle as aD, ImageResizeResult as aE, OpeningIndicatorHost as aF, OverlayFrameRect as aG, PaginatedSurfaceState as aH, ParagraphPropertyEdit as aI, RemoteCaretLabelAnchor as aJ, RemoteCaretLabelHost as aK, ReviewWriteIntent as aL, RunTableChromeCommandResult as aM, SectionAnchor as aN, SectionBreakInsertType as aO, SelectedDrawingOverlayTarget as aP, SurfaceInsertImageInput as aQ, SurfaceNavigation as aR, SurfaceOverlayCoordinates as aS, SurfaceParagraphFormat as aT, TableBorderStyleOption as aY, TableBorderTargetOption as aZ, TableBorderTargetValue as a_, PaginatedSurfaceOptions as ae, OpenPaginatedResult as af, PaginatedSurface as ag, TableCommandPlan as ah, SurfaceFormatting as ai, AnchorFrameOrigin as aj, BookmarkMarkOptionsSource as ak, ChromeControl as am, ChromeControlId as an, ChromeControlState as ao, ChromeGroup as ap, ChromeGroupId as aq, DrawingSelectionIntent as as, EditorCommandExecute as au, EquationOps as av, FinalizedImageOverlayInteraction as aw, FormattingBarOptions as ax, HyperlinkOps as ay, BookmarkMarkInfo as b, TableChromeDraft as b0, TableChromePick as b1, TableInteractionLabelKey as b2, TextFormFieldChromeHandlers as b3, TextFormFieldDialogSession as b4, ToolbarSlotValue as b5, BookmarkMarkOptions as c, ChromeExportFormat as f, ChromeExportHandlers as g, ChromeExportResult as h, ChromeExportView as i, ChromeMenu as j, ChromeMenuEntry as k, ChromeMenuId as l, ChromeMenuItemEntry as m, ChromeMenuSeparatorEntry as n, ChromeMenuSubmenuEntry as o, ChromePrintErrorCode as q, ChromePrintJob as r, ChromePrintOptions as s, ChromeSlotId as t, CommentDraftChromeHandlers as u, ContentControlWidgetChromeHandlers as v, ContentControlWidgetSession as w, CustomFontsOptions as x, CustomFontsResolver as y, DocxEditorInstance as z };
|