@arbidocs/blocks 0.5.134 → 0.5.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs → ConnectedNativeDocxComparison-W4KIGO54.cjs} +8 -8
- package/dist/{ConnectedNativeDocxComparison-H72RQJKH.cjs.map → ConnectedNativeDocxComparison-W4KIGO54.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs → ConnectedStreamedWordArtifact-764NSXPQ.cjs} +8 -8
- package/dist/{ConnectedStreamedWordArtifact-T7PZIRBY.cjs.map → ConnectedStreamedWordArtifact-764NSXPQ.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-UV3DLFCB.cjs} +3 -3
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-UV3DLFCB.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-PA2B7O7I.cjs → FilesViewerDialog-IFF2JR2A.cjs} +6 -6
- package/dist/{FilesViewerDialog-PA2B7O7I.cjs.map → FilesViewerDialog-IFF2JR2A.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-XZAEU5QU.cjs → NativeDocxEditor-KM6U4ZLA.cjs} +6 -6
- package/dist/{NativeDocxEditor-XZAEU5QU.cjs.map → NativeDocxEditor-KM6U4ZLA.cjs.map} +1 -1
- package/dist/{chunk-T2DUNNYY.cjs → chunk-C6DF6WB2.cjs} +745 -21
- package/dist/chunk-C6DF6WB2.cjs.map +1 -0
- package/dist/{chunk-64247UHS.cjs → chunk-DBGBAD4J.cjs} +4 -4
- package/dist/{chunk-64247UHS.cjs.map → chunk-DBGBAD4J.cjs.map} +1 -1
- package/dist/{chunk-UOZ237OW.cjs → chunk-FABKMTAI.cjs} +42 -5
- package/dist/chunk-FABKMTAI.cjs.map +1 -0
- package/dist/{chunk-L4Y6UMRC.cjs → chunk-FDRZJFNV.cjs} +5 -5
- package/dist/{chunk-L4Y6UMRC.cjs.map → chunk-FDRZJFNV.cjs.map} +1 -1
- package/dist/{chunk-O5WVYUFT.cjs → chunk-IEAZX7L6.cjs} +4 -4
- package/dist/{chunk-O5WVYUFT.cjs.map → chunk-IEAZX7L6.cjs.map} +1 -1
- package/dist/{chunk-2SWS7ESM.cjs → chunk-L62EU3TQ.cjs} +3 -3
- package/dist/{chunk-2SWS7ESM.cjs.map → chunk-L62EU3TQ.cjs.map} +1 -1
- package/dist/{chunk-IN3KXI3K.cjs → chunk-LG36LSVZ.cjs} +6 -6
- package/dist/{chunk-IN3KXI3K.cjs.map → chunk-LG36LSVZ.cjs.map} +1 -1
- package/dist/{chunk-RZSBHRQL.cjs → chunk-MMKMQZ2B.cjs} +5 -5
- package/dist/{chunk-RZSBHRQL.cjs.map → chunk-MMKMQZ2B.cjs.map} +1 -1
- package/dist/chunk-MMMGOZYH.cjs +18 -0
- package/dist/{chunk-KWD5Q4XH.cjs.map → chunk-MMMGOZYH.cjs.map} +1 -1
- package/dist/{chunk-V6SFJ44C.cjs → chunk-ZN2JXV65.cjs} +50 -13
- package/dist/chunk-ZN2JXV65.cjs.map +1 -0
- package/dist/connect/docx.cjs +12 -12
- package/dist/connect/index.cjs +86 -86
- package/dist/connect/viewer.cjs +4 -4
- package/dist/connection/docx/ConnectedNativeDocxEditor.js +39 -2
- package/dist/connection/docx/ConnectedNativeDocxEditor.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +43 -6
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/docx/NativeDocxEditor.d.ts +12 -1
- package/dist/docx/NativeDocxEditor.js +513 -20
- package/dist/docx/NativeDocxEditor.js.map +3 -3
- package/dist/docx/index.cjs +38 -38
- package/dist/docx/recoveryStore.d.ts +8 -0
- package/dist/docx/recoveryStore.js +208 -0
- package/dist/docx/recoveryStore.js.map +7 -0
- package/dist/docx/temporaryRecovery.d.ts +8 -0
- package/dist/docx/temporaryRecovery.js +37 -0
- package/dist/docx/temporaryRecovery.js.map +7 -0
- package/dist/index.cjs +72 -72
- package/dist/styles.css +1 -1
- package/dist/vite/index.cjs +11 -1
- package/dist/vite/index.cjs.map +1 -1
- package/dist/vite/index.d.ts +13 -0
- package/dist/vite/index.js +11 -1
- package/dist/vite/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +10 -10
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +18 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +2 -2
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +2 -2
- package/node_modules/@arbidocs/coedit/dist/commands.js +18 -1
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.cts → port-DXBNxZYw.d.cts} +2 -0
- package/node_modules/@arbidocs/coedit/dist/{port-BbN5OZHx.d.ts → port-DXBNxZYw.d.ts} +2 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs +16 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +16 -0
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +2 -2
- package/node_modules/@docx-editor.dev/core/README.md +25 -1
- package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +1 -0
- package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +21 -63
- package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +49 -40
- package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-CrPI9ZQc.d.ts} +714 -290
- package/node_modules/@docx-editor.dev/core/dist/chunk-23MKR33J.js +4 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2CWQY27B.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2DEY5NUC.cjs +32 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2DR4TH6B.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2F2UEAE2.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2GPGAFOJ.cjs +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ALD626VU.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-AU33YWEJ.js +236 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-AXU63LYW.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-CM5VZRBV.js +32 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-D7FAFFTN.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-DYUVJNDD.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ESYUKD5D.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-F7TGQMVR.js +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-FLW7KIQX.js +30 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-JG4A6W6I.js +7 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-JNGLSBPH.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-KE6ZWRIY.cjs +236 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-L3YXJDPX.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-LI42N7OW.cjs +4 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-PLKDS4JT.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-PXMTQ73F.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-R4R3AAE4.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-RFUNFTGV.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-SVM6PGMS.js +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-SZURLHR3.cjs +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-UYCGCVZ2.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-WN7ICTA5.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-X34QRAUU.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-XNBYG4XJ.cjs +30 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ZDFJW5XS.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ZWO4JHNN.cjs +7 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +29 -5
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +5 -6
- package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +3 -3
- package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +13 -10
- package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +2 -2
- package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +15 -13
- package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +135 -2
- package/node_modules/@docx-editor.dev/core/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
- package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/node_modules/@docx-editor.dev/core/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +14 -7
- package/node_modules/@docx-editor.dev/core/dist/{document-protection-CUb55pl_.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
- package/node_modules/@docx-editor.dev/core/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/node_modules/@docx-editor.dev/core/dist/{editor-CZQZmTIU.d.ts → editor-B7OOAAie.d.ts} +536 -283
- package/node_modules/@docx-editor.dev/core/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-CA6egMaK.d.ts +141 -0
- package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/editor.css +6 -4
- package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +834 -34
- package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -2
- package/node_modules/@docx-editor.dev/core/dist/export.d.ts +52 -21
- package/node_modules/@docx-editor.dev/core/dist/export.js +2 -2
- package/node_modules/@docx-editor.dev/core/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
- package/node_modules/@docx-editor.dev/core/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
- package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/index.d.ts +44 -27
- package/node_modules/@docx-editor.dev/core/dist/index.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-Ci_BTnSU.d.ts} +3 -2
- package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +276 -126
- package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/node_modules/@docx-editor.dev/core/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/output.d.ts +24 -10
- package/node_modules/@docx-editor.dev/core/dist/output.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{protocol-DYzzz2ej.d.ts → protocol-Cp_QzVxS.d.ts} +167 -5
- package/node_modules/@docx-editor.dev/core/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/revision-projection-OVusTS77.d.ts +258 -0
- package/node_modules/@docx-editor.dev/core/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/node_modules/@docx-editor.dev/core/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
- package/node_modules/@docx-editor.dev/core/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-DoK0lNjS.d.ts} +697 -608
- package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -1
- package/node_modules/@docx-editor.dev/core/dist/store.d.ts +527 -123
- package/node_modules/@docx-editor.dev/core/dist/store.js +1 -1
- package/node_modules/@docx-editor.dev/core/dist/{types-barrel-DuC5QBNC.d.ts → tree-op-types-Df4oY2u4.d.ts} +1723 -765
- package/node_modules/@docx-editor.dev/core/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-DXhX1PE-.d.ts} +617 -428
- package/node_modules/@docx-editor.dev/core/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-CF2625mv.d.ts} +28 -13
- package/node_modules/@docx-editor.dev/core/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
- package/node_modules/@docx-editor.dev/core/docs/accept-reject-without-scrolling.md +95 -0
- package/node_modules/@docx-editor.dev/core/docs/comment-on-found-text.md +72 -0
- package/node_modules/@docx-editor.dev/core/docs/custom-review-cards.md +178 -0
- package/node_modules/@docx-editor.dev/core/docs/highlight-ranges.md +48 -0
- package/node_modules/@docx-editor.dev/core/docs/index.md +36 -0
- package/node_modules/@docx-editor.dev/core/docs/propose-rewrite.md +247 -0
- package/node_modules/@docx-editor.dev/core/docs/tracked-replacement.md +68 -0
- package/node_modules/@docx-editor.dev/core/licenses/ECMA-376.md +29 -0
- package/node_modules/@docx-editor.dev/core/package.json +3 -2
- package/node_modules/@docx-editor.dev/react/README.md +71 -0
- package/node_modules/@docx-editor.dev/react/dist/index.d.mts +936 -86
- package/node_modules/@docx-editor.dev/react/dist/index.d.ts +936 -86
- package/node_modules/@docx-editor.dev/react/dist/index.js +3 -3
- package/node_modules/@docx-editor.dev/react/dist/index.mjs +3 -3
- package/node_modules/@docx-editor.dev/react/docs/accept-reject-without-scrolling.md +72 -0
- package/node_modules/@docx-editor.dev/react/docs/comment-on-found-text.md +47 -0
- package/node_modules/@docx-editor.dev/react/docs/custom-review-cards.md +105 -0
- package/node_modules/@docx-editor.dev/react/docs/highlight-ranges.md +25 -0
- package/node_modules/@docx-editor.dev/react/docs/index.md +36 -0
- package/node_modules/@docx-editor.dev/react/docs/propose-rewrite.md +247 -0
- package/node_modules/@docx-editor.dev/react/docs/tracked-replacement.md +45 -0
- package/node_modules/@docx-editor.dev/react/package.json +4 -3
- package/package.json +8 -8
- package/src/docx/styles.css +37 -7
- package/dist/chunk-KWD5Q4XH.cjs +0 -18
- package/dist/chunk-T2DUNNYY.cjs.map +0 -1
- package/dist/chunk-UOZ237OW.cjs.map +0 -1
- package/dist/chunk-V6SFJ44C.cjs.map +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-236O4YQW.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JPL6ZAS.cjs +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-6ZQP4HQ7.js +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-7WQ7AAHW.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-BCXH4BXB.js +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-BY2ACZZ6.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-CAJEXXVG.cjs +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-CPWLFPWC.js +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-D7ZMDMPX.cjs +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-DOHF6FA7.cjs +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-DVX32P2P.js +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-E4LOMDNL.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-EKLM7NWB.cjs +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-G3K63G7P.cjs +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-G4HOFIKJ.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-JLVBDYVQ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-LQX36Z5P.js +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-LSZ6KPKK.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-MM5QBMTE.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OMCG63ZF.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OSFOJTHU.cjs +0 -18
- package/node_modules/@docx-editor.dev/core/dist/chunk-RCLZXP3B.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-T6K2QYNZ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-TRGAVV2Y.js +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-U4JZVSOE.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-UHHYFIDT.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-W35WTWAO.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-YQ5G6LC7.js +0 -18
- package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-B8M79cfK.d.ts +0 -30
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-7o9xweiJ.d.ts +0 -84
- package/node_modules/@docx-editor.dev/core/dist/headless-document-view-pp3q7wIh.d.ts +0 -143
- package/node_modules/@docx-editor.dev/core/dist/image-resources-tXLQShoC.d.ts +0 -211
- package/node_modules/@docx-editor.dev/core/dist/omml-equation-BUbU0utM.d.ts +0 -85
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
import * as react from 'react';
|
|
12
|
-
import react__default, { ReactNode, CSSProperties, ReactElement, ComponentType, ForwardRefExoticComponent, RefAttributes, HTMLAttributes, Ref } from 'react';
|
|
13
|
-
import { RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, InvalidTextFormFieldSession, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, TextFormFieldDialogSession, RevisionAuthorStyle, ParagraphDialogFields, ParagraphDialogMixed, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, DocxEditorInstance, FontConfigurationFragment, FontResolver, EditorModule, ReviewDisplayMode, FieldResultsMode, ImageDecodePort, ChromeGroupId, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, DocumentSearchHighlight, DocumentSearchFindOptions, SurfaceHyperlink, FontOrigin, MarkedFontResolver, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, RulerIndent, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
|
|
14
|
-
export { CHROME_GROUPS, CHROME_MENUS, ChromeExportFormat, ChromeExportHandlers, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, ClearRefreshHighlightsOptions, DEFAULT_FONT, DocumentRefresh, DocumentRefreshError, DocumentRefreshState, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, HIGHLIGHT_REFRESH_MS, HighlightSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, NavigateToChangeOptions, PX_PER_CM, PX_PER_INCH, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, ParagraphTabStop, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, ResolvedRevisionMarkup, ReviewAuthorInfo, ReviewDisplayMode, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionChangedLinesMark, RevisionDeletionMark, RevisionMarkupChromeHandlers, RevisionMarkupColor, RevisionMarkupDialogSession, RevisionMarkupMark, RevisionMarkupNamedColor, RevisionMarkupOptions, RevisionStyles, RulerTick, RulerUnit, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, ToolbarCommandState, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
|
|
15
|
-
import { Editor, ViewScope, EditorCommand, DocumentSource, FontConfiguration, ZoomMode, DocumentChange, EditorFontError, TextMatch, DocumentHandle, EditorExecOptions,
|
|
16
|
-
export { AnchorHighlightAnimation, AnchorHighlightOptions, ClearAnchorHighlightOptions, Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, HighlightHit, HighlightOptions, HighlightRange, HighlightRect, HighlightResult, PageSetup, ScrollToAnchorOptions, TextMatch } from '@docx-editor.dev/core/contracts/editor';
|
|
12
|
+
import react__default, { ReactNode, CSSProperties, ReactElement, ComponentType, ButtonHTMLAttributes, ForwardRefExoticComponent, RefAttributes, HTMLAttributes, Ref } from 'react';
|
|
13
|
+
import { UnsupportedElementRule, UnsupportedElement, RevisionMarkupDialogSession, ResolvedRevisionMarkup, RevisionMarkupOptions, ChromeExportFormat, InvalidTextFormFieldSession, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, TextFormFieldDialogSession, RevisionAuthorStyle, ParagraphDialogFields, ParagraphDialogMixed, BookmarkSortOrder, SplitCellLimits, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, DocxEditorInstance, FontConfigurationFragment, FontResolver, FontShapingOptions, EditorModule, ReviewDisplayMode, FieldResultsMode, ContentLockPolicy, LockedControlNavigation, ImageDecodePort, ChromeGroupId, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, DocumentSearchHighlight, DocumentSearchFindOptions, SurfaceHyperlink, FontOrigin, MarkedFontResolver, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, RulerIndent, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
|
|
14
|
+
export { CHROME_GROUPS, CHROME_MENUS, ChromeExportFormat, ChromeExportHandlers, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, ClearRefreshHighlightsOptions, DEFAULT_FONT, DocumentRefresh, DocumentRefreshError, DocumentRefreshState, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, HIGHLIGHT_REFRESH_MS, HighlightSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, NavigateToChangeOptions, PX_PER_CM, PX_PER_INCH, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, ParagraphTabStop, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, ResolvedRevisionMarkup, ReviewAuthorInfo, ReviewDisplayMode, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionChangedLinesMark, RevisionDeletionMark, RevisionMarkupChromeHandlers, RevisionMarkupColor, RevisionMarkupDialogSession, RevisionMarkupMark, RevisionMarkupNamedColor, RevisionMarkupOptions, RevisionStyles, RulerTick, RulerUnit, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, ToolbarCommandState, UnsupportedElement, UnsupportedElementLayout, UnsupportedElementRule, WORD_DEFAULT_FONT, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, deferFonts, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
|
|
15
|
+
import { Editor, ViewScope, EditorCommand, WatermarkState, BookmarkSummary, DocumentSource, FontConfiguration, ZoomMode, DocumentChange, EditorFontError, TextMatch, ExecResult, DocumentOpenFailure, DocumentHandle, EditorExecOptions, EditorScope, EditorSnapshot, Watermark, EditorEvents, HighlightOptions, HighlightResult, HighlightRange, HighlightHit, PageSetup, IndentFormatting, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
|
|
16
|
+
export { AnchorHighlightAnimation, AnchorHighlightOptions, ClearAnchorHighlightOptions, DocumentOpenFailure, DocumentOpenFailureReason, Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, HighlightHit, HighlightOptions, HighlightRange, HighlightRect, HighlightResult, PageSetup, ScrollToAnchorOptions, TextMatch, Watermark, WatermarkState } from '@docx-editor.dev/core/contracts/editor';
|
|
17
17
|
import { TFunction, Translations, LocaleStrings } from '@docx-editor.dev/i18n';
|
|
18
18
|
export { TranslationKey } from '@docx-editor.dev/i18n';
|
|
19
19
|
import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
|
|
20
20
|
export { DocxDocument } from '@docx-editor.dev/core/contracts/types';
|
|
21
|
+
export { DrawingGraphicKind, DrawingSupport, DrawingSupportIssue } from '@docx-editor.dev/core/store';
|
|
21
22
|
|
|
22
23
|
/** @public */
|
|
23
24
|
declare const VERSION: string;
|
|
@@ -35,6 +36,39 @@ type MaybeRefOrGetter<T> = T;
|
|
|
35
36
|
*/
|
|
36
37
|
type DocxEditorChildren = ReactNode;
|
|
37
38
|
|
|
39
|
+
/** Props for a registered unsupported-content renderer. @public */
|
|
40
|
+
interface DocxEditorUnsupportedElementProps extends UnsupportedElementRule {
|
|
41
|
+
/**
|
|
42
|
+
* Include partially rendered drawings (`support: 'partial'`). Defaults to `false`.
|
|
43
|
+
* Excludes fully supported drawings, hidden drawings, and drawings without a layout position.
|
|
44
|
+
* Excludes shapes with editable text. Partially rendered shapes without text remain eligible.
|
|
45
|
+
*/
|
|
46
|
+
includePartial?: UnsupportedElementRule['includePartial'];
|
|
47
|
+
/**
|
|
48
|
+
* Render this occurrence. Empty content preserves the drawing or placeholder.
|
|
49
|
+
* Empty content includes `null`, `false`, empty fragments or arrays, and whitespace.
|
|
50
|
+
* Child components can return empty content while an image loads.
|
|
51
|
+
* The editor calls this function for each occurrence. Put hooks in a returned child component.
|
|
52
|
+
* Use `drawingPreviewDocx` from `@docx-editor.dev/core/editor` to create a preview DOCX.
|
|
53
|
+
*/
|
|
54
|
+
children: (props: {
|
|
55
|
+
element: UnsupportedElement;
|
|
56
|
+
}) => ReactNode;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Register a renderer under DocxEditor or DocxEditor.Root.
|
|
60
|
+
* The first mounted matching declaration wins. Prop updates retain its priority.
|
|
61
|
+
* Omit match for a catch-all. Returning `null`, `false`, an empty fragment or array, or
|
|
62
|
+
* whitespace keeps what the editor shows.
|
|
63
|
+
* Layout uses points and only sizes content without an existing layout box. Custom content
|
|
64
|
+
* gets the occurrence's box (`element.bounds`); size it to 100% of the width and height.
|
|
65
|
+
* Clicking a custom preview selects the underlying drawing for moving, resizing, or deletion.
|
|
66
|
+
* Links, buttons, and form fields retain their normal behavior.
|
|
67
|
+
* Components can remount when pagination or virtualization removes an occurrence.
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
declare function DocxEditorUnsupportedElement({ match, layout, includePartial, children, }: DocxEditorUnsupportedElementProps): react.JSX.Element[];
|
|
71
|
+
|
|
38
72
|
/**
|
|
39
73
|
* Presentation overrides for a dialog part. @public
|
|
40
74
|
*
|
|
@@ -547,8 +581,9 @@ interface DocxEditorContentProps {
|
|
|
547
581
|
}
|
|
548
582
|
/**
|
|
549
583
|
* The element the engine paints pages into. Must render inside a
|
|
550
|
-
* `DocxEditor.Viewport`; the facade attaches here and detaches on unmount
|
|
551
|
-
* the
|
|
584
|
+
* `DocxEditor.Viewport`; the facade attaches here and detaches on unmount. Detaching parks
|
|
585
|
+
* the editor, so mounting the content elsewhere, even in another window, moves it with its
|
|
586
|
+
* undo history, selection and reading position.
|
|
552
587
|
*
|
|
553
588
|
* Its centring margin lives in the STYLESHEET, not in an inline style here, and behind
|
|
554
589
|
* `:where()` so it carries no specificity: a host that places the page itself — inside its
|
|
@@ -560,6 +595,58 @@ interface DocxEditorContentProps {
|
|
|
560
595
|
*/
|
|
561
596
|
declare function DocxEditorContent({ className }: DocxEditorContentProps): react.JSX.Element;
|
|
562
597
|
|
|
598
|
+
/** Props for `DocxEditor.Window`. @public */
|
|
599
|
+
interface DocxEditorWindowProps {
|
|
600
|
+
/** Render `children` in a pop-out window. While `false`, they render in place. */
|
|
601
|
+
open: boolean;
|
|
602
|
+
/** A same-origin page to open. Defaults to `about:blank`. */
|
|
603
|
+
url?: string;
|
|
604
|
+
/**
|
|
605
|
+
* The window name. Defaults to `docx-editor`. Two `DocxEditor.Window` components with the
|
|
606
|
+
* same name share one browser window, so give each editor its own name.
|
|
607
|
+
*/
|
|
608
|
+
name?: string;
|
|
609
|
+
/** The `window.open` features. Defaults to `popup,width=1000,height=900`. */
|
|
610
|
+
features?: string;
|
|
611
|
+
/** The pop-out's title. */
|
|
612
|
+
title?: string;
|
|
613
|
+
/** Copy this page's stylesheets into the window, and keep copying new ones. Default `true`. */
|
|
614
|
+
styles?: boolean | ((from: Document, to: Document) => () => void);
|
|
615
|
+
/**
|
|
616
|
+
* The pop-out went away: the user closed it, or the browser blocked it. Set `open` to
|
|
617
|
+
* `false` here. The panel is already back in place when this runs.
|
|
618
|
+
*/
|
|
619
|
+
onClose?: () => void;
|
|
620
|
+
/** The editor panel: toolbar, viewport and content, or any part of them. */
|
|
621
|
+
children?: DocxEditorChildren;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Render the editor panel in its own browser window while `open` is `true`.
|
|
625
|
+
*
|
|
626
|
+
* Place it inside `DocxEditor.Root` around the parts to pop out. The Root stays in this
|
|
627
|
+
* window, so the editor moves into the pop-out and back with its undo history, selection and
|
|
628
|
+
* collaboration session. The window gets this page's stylesheets, and closing it brings the
|
|
629
|
+
* panel back and calls `onClose`.
|
|
630
|
+
*
|
|
631
|
+
* @example
|
|
632
|
+
* ```tsx
|
|
633
|
+
* const [popped, setPopped] = useState(false);
|
|
634
|
+
*
|
|
635
|
+
* <DocxEditor.Root document={bytes}>
|
|
636
|
+
* <button onClick={() => setPopped(!popped)}>Pop out</button>
|
|
637
|
+
* <DocxEditor.Window open={popped} onClose={() => setPopped(false)}>
|
|
638
|
+
* <DocxEditor.Toolbar />
|
|
639
|
+
* <DocxEditor.Viewport>
|
|
640
|
+
* <DocxEditor.Content />
|
|
641
|
+
* </DocxEditor.Viewport>
|
|
642
|
+
* </DocxEditor.Window>
|
|
643
|
+
* </DocxEditor.Root>
|
|
644
|
+
* ```
|
|
645
|
+
*
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
declare function DocxEditorWindow({ open, onClose, children, url, name, features, title, styles, }: DocxEditorWindowProps): react.JSX.Element;
|
|
649
|
+
|
|
563
650
|
/** Props for `DocxEditor.Loading`. @public */
|
|
564
651
|
interface DocxEditorLoadingProps {
|
|
565
652
|
/**
|
|
@@ -586,8 +673,8 @@ interface DocxEditorLoadingProps {
|
|
|
586
673
|
style?: CSSProperties;
|
|
587
674
|
/**
|
|
588
675
|
* Your own loading indicator, in place of the packaged spinner. The packaged screen keeps
|
|
589
|
-
* its page and centers this on it. With `overlay`, it then moves
|
|
590
|
-
*
|
|
676
|
+
* its page and centers this on it. With `overlay`, it then moves below the laid-out pages
|
|
677
|
+
* while a large document lays out its remaining pages, and scrolls with them.
|
|
591
678
|
*
|
|
592
679
|
* Include text for screen readers, as the packaged indicator does.
|
|
593
680
|
*
|
|
@@ -599,8 +686,8 @@ interface DocxEditorLoadingProps {
|
|
|
599
686
|
/**
|
|
600
687
|
* The whole first loading screen, in place of the packaged page. Compose your own around
|
|
601
688
|
* `DocxEditor.Loading.Spinner` to keep the packaged indicator beside your own copy. To
|
|
602
|
-
* change only the indicator, and keep it
|
|
603
|
-
* `indicator`.
|
|
689
|
+
* change only the indicator, and keep it below the laid-out pages as the document opens,
|
|
690
|
+
* use `indicator`.
|
|
604
691
|
*/
|
|
605
692
|
children?: DocxEditorChildren;
|
|
606
693
|
}
|
|
@@ -650,7 +737,7 @@ interface DocxEditorLoadingComponent {
|
|
|
650
737
|
* LARGE document opens — the engine mounts it behind one painted frame precisely so this
|
|
651
738
|
* screen can paint before the blocking parse and layout — it holds until the pages land;
|
|
652
739
|
* pass `overlay` to pin it over the previous document for that window. With `overlay`, once
|
|
653
|
-
* the first pages show, the indicator moves
|
|
740
|
+
* the first pages show, the indicator moves below the laid-out pages until the rest are laid out.
|
|
654
741
|
* Pass `indicator` to replace only the spinner, in both places:
|
|
655
742
|
*
|
|
656
743
|
* ```tsx
|
|
@@ -730,6 +817,24 @@ interface DocxEditorAuthorStyleProps extends RevisionAuthorStyle {
|
|
|
730
817
|
*/
|
|
731
818
|
declare function DocxEditorAuthorStyle(props: DocxEditorAuthorStyleProps): null;
|
|
732
819
|
|
|
820
|
+
/**
|
|
821
|
+
* Why a picture could not be inserted. Replace it through `popups.imageInsertError`, or pass
|
|
822
|
+
* `false` there to show nothing.
|
|
823
|
+
* @public
|
|
824
|
+
*/
|
|
825
|
+
interface DocxEditorImageInsertErrorDialogProps {
|
|
826
|
+
/** The translated reason the picture was refused. */
|
|
827
|
+
message: string;
|
|
828
|
+
/** Close the dialog. */
|
|
829
|
+
onClose(): void;
|
|
830
|
+
className?: string;
|
|
831
|
+
style?: CSSProperties;
|
|
832
|
+
/** Replaces the packaged header, message and button. */
|
|
833
|
+
children?: DocxEditorChildren;
|
|
834
|
+
}
|
|
835
|
+
/** The packaged picture refusal: an editor dialog, never a page-blocking browser alert. @public */
|
|
836
|
+
declare function DocxEditorImageInsertErrorDialog({ message, onClose, className, style, children, }: DocxEditorImageInsertErrorDialogProps): react.JSX.Element;
|
|
837
|
+
|
|
733
838
|
/** A render callback for an automatic popup. `false` disables automatic rendering. @public */
|
|
734
839
|
type DocxEditorPopup<Props extends object> = false | ((props: Props) => DocxEditorChildren | null);
|
|
735
840
|
/**
|
|
@@ -767,7 +872,15 @@ interface PageSetupDialogFields {
|
|
|
767
872
|
/** Page Setup draft and actions. @public */
|
|
768
873
|
interface UsePageSetupDialogReturn extends UseDialogReturn<PageSetupDialogFields> {
|
|
769
874
|
}
|
|
770
|
-
/**
|
|
875
|
+
/**
|
|
876
|
+
* Read the enclosing Page Setup dialog draft.
|
|
877
|
+
*
|
|
878
|
+
* Call it in a child of the dialog. It does not open the dialog. To open the dialog from your
|
|
879
|
+
* own toolbar, keep its `open` state and render `DocxEditor.PageSetupDialog` with `open` and
|
|
880
|
+
* `onClose`. Take the button's enabled state from `usePageSetup().isEnabled`.
|
|
881
|
+
*
|
|
882
|
+
* @public
|
|
883
|
+
*/
|
|
771
884
|
declare function usePageSetupDialog(): UsePageSetupDialogReturn;
|
|
772
885
|
/** Page Setup with replaceable controls and layout. @public */
|
|
773
886
|
declare const DocxEditorPageSetupDialog: typeof PageSetupDialogRoot & {
|
|
@@ -815,7 +928,15 @@ declare function ParagraphDialogRoot({ open, onClose, className, style, children
|
|
|
815
928
|
interface UseParagraphDialogReturn extends UseDialogReturn<ParagraphDialogFields> {
|
|
816
929
|
readonly mixed: ParagraphDialogMixed;
|
|
817
930
|
}
|
|
818
|
-
/**
|
|
931
|
+
/**
|
|
932
|
+
* Read the enclosing Paragraph Options draft.
|
|
933
|
+
*
|
|
934
|
+
* Call it in a child of the dialog. It does not open the dialog. To open the dialog from your
|
|
935
|
+
* own toolbar, keep its `open` state and render `DocxEditor.ParagraphDialog` with `open` and
|
|
936
|
+
* `onClose`. Take the button's enabled state from `useParagraphFormat().isEnabled`.
|
|
937
|
+
*
|
|
938
|
+
* @public
|
|
939
|
+
*/
|
|
819
940
|
declare function useParagraphDialog(): UseParagraphDialogReturn;
|
|
820
941
|
/** Paragraph Options with replaceable controls and layout. @public */
|
|
821
942
|
declare const DocxEditorParagraphDialog: typeof ParagraphDialogRoot & {
|
|
@@ -845,6 +966,210 @@ declare const DocxEditorParagraphDialog: typeof ParagraphDialogRoot & {
|
|
|
845
966
|
}) => react.ReactNode;
|
|
846
967
|
};
|
|
847
968
|
|
|
969
|
+
/** How a text watermark crosses the page. @public */
|
|
970
|
+
type WatermarkDialogLayout = NonNullable<WatermarkState['layout']>;
|
|
971
|
+
/** Which watermark the dialog writes. @public */
|
|
972
|
+
type WatermarkDialogKind = 'none' | 'picture' | 'text';
|
|
973
|
+
/** The Watermark dialog draft. Transparency is 0 to 1, color is `RRGGBB`. @public */
|
|
974
|
+
interface WatermarkDialogFields {
|
|
975
|
+
kind: WatermarkDialogKind;
|
|
976
|
+
/** The picture bytes, or null when no picture is chosen. */
|
|
977
|
+
imageData: Uint8Array | null;
|
|
978
|
+
/** The chosen file name. Null for no picture or for the document's current picture. */
|
|
979
|
+
imageName: string | null;
|
|
980
|
+
/** A factor of the picture's natural size. Null is Auto. */
|
|
981
|
+
scale: number | null;
|
|
982
|
+
washout: boolean;
|
|
983
|
+
text: string;
|
|
984
|
+
fontFamily: string;
|
|
985
|
+
/** Points. Null is Auto. */
|
|
986
|
+
fontSizePt: number | null;
|
|
987
|
+
bold: boolean;
|
|
988
|
+
italic: boolean;
|
|
989
|
+
transparency: number;
|
|
990
|
+
color: string;
|
|
991
|
+
layout: WatermarkDialogLayout;
|
|
992
|
+
}
|
|
993
|
+
/** The text choices the dialog offers when the host passes no `presets`. @public */
|
|
994
|
+
declare const DEFAULT_WATERMARK_PRESETS: readonly string[];
|
|
995
|
+
|
|
996
|
+
/** Props for `DocxEditor.WatermarkDialog`. @public */
|
|
997
|
+
interface DocxEditorWatermarkDialogProps extends DialogCustomizationProps {
|
|
998
|
+
/** Whether the dialog is shown. The host owns this state. */
|
|
999
|
+
open: boolean;
|
|
1000
|
+
/** Called on Cancel, Escape, overlay click, and after a successful Apply. */
|
|
1001
|
+
onClose: () => void;
|
|
1002
|
+
/** The text choices offered for a text watermark. Defaults to `DEFAULT_WATERMARK_PRESETS`. */
|
|
1003
|
+
presets?: readonly string[];
|
|
1004
|
+
}
|
|
1005
|
+
/** Named controls a host can replace with `DocxEditor.WatermarkDialog.Field`. @public */
|
|
1006
|
+
type WatermarkDialogFieldName = 'noWatermark' | 'pictureWatermark' | 'picture' | 'scale' | 'washout' | 'textWatermark' | 'preset' | 'text' | 'fontFamily' | 'fontSizePt' | 'bold' | 'italic' | 'transparency' | 'color' | 'layout';
|
|
1007
|
+
/** Watermark dialog draft and actions. @public */
|
|
1008
|
+
interface UseWatermarkDialogReturn extends UseDialogReturn<WatermarkDialogFields> {
|
|
1009
|
+
}
|
|
1010
|
+
/** Read the enclosing Watermark dialog draft. @public */
|
|
1011
|
+
declare function useWatermarkDialog(): UseWatermarkDialogReturn;
|
|
1012
|
+
declare function WatermarkDialogRoot({ open, onClose, presets, className, style, children, preset, }: DocxEditorWatermarkDialogProps): ReactElement | null;
|
|
1013
|
+
/**
|
|
1014
|
+
* Watermark dialog: no watermark, a picture, or text, with a live page preview and
|
|
1015
|
+
* replaceable controls and layout. Applies the whole form as one undoable `setWatermark`
|
|
1016
|
+
* command, and writes nothing when the form is unchanged.
|
|
1017
|
+
*
|
|
1018
|
+
* @public
|
|
1019
|
+
*/
|
|
1020
|
+
declare const DocxEditorWatermarkDialog: typeof WatermarkDialogRoot & {
|
|
1021
|
+
Header: (props: DialogPartProps & {
|
|
1022
|
+
name?: WatermarkDialogFieldName | undefined;
|
|
1023
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1024
|
+
Title: (props: DialogPartProps & {
|
|
1025
|
+
name?: WatermarkDialogFieldName | undefined;
|
|
1026
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1027
|
+
Body: (props: DialogPartProps & {
|
|
1028
|
+
name?: WatermarkDialogFieldName | undefined;
|
|
1029
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1030
|
+
/** The page preview of the current draft. Decorative (`aria-hidden`). */
|
|
1031
|
+
Preview: (props: DialogPartProps) => ReactNode;
|
|
1032
|
+
Footer: (props: DialogPartProps & {
|
|
1033
|
+
name?: WatermarkDialogFieldName | undefined;
|
|
1034
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1035
|
+
Apply: (props: DialogPartProps & {
|
|
1036
|
+
name?: WatermarkDialogFieldName | undefined;
|
|
1037
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1038
|
+
Cancel: (props: DialogPartProps & {
|
|
1039
|
+
name?: WatermarkDialogFieldName | undefined;
|
|
1040
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1041
|
+
Error: (props: DialogPartProps & {
|
|
1042
|
+
name?: WatermarkDialogFieldName | undefined;
|
|
1043
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1044
|
+
Field: (props: DialogPartProps & {
|
|
1045
|
+
name: WatermarkDialogFieldName;
|
|
1046
|
+
}) => ReactNode;
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
/** Props for `DocxEditor.BookmarkDialog`. @public */
|
|
1050
|
+
interface DocxEditorBookmarkDialogProps extends DialogCustomizationProps {
|
|
1051
|
+
/** Whether the dialog is shown. The host owns this state. */
|
|
1052
|
+
open: boolean;
|
|
1053
|
+
/** Called on Cancel, Escape, overlay click, and after a successful Add. */
|
|
1054
|
+
onClose: () => void;
|
|
1055
|
+
}
|
|
1056
|
+
/** The Bookmark dialog's draft. @public */
|
|
1057
|
+
interface BookmarkDialogFields {
|
|
1058
|
+
/** The name typed or picked from the list. */
|
|
1059
|
+
name: string;
|
|
1060
|
+
sortBy: BookmarkSortOrder;
|
|
1061
|
+
/** Whether hidden bookmarks (names starting with an underscore) are listed. */
|
|
1062
|
+
showHidden: boolean;
|
|
1063
|
+
}
|
|
1064
|
+
/** Bookmark dialog draft and actions. `apply` is Add. @public */
|
|
1065
|
+
interface UseBookmarkDialogReturn extends UseDialogReturn<BookmarkDialogFields> {
|
|
1066
|
+
/** The bookmarks the list shows, in the chosen order. */
|
|
1067
|
+
readonly rows: readonly BookmarkSummary[];
|
|
1068
|
+
/** Whether Delete and Go To can act on the typed name. */
|
|
1069
|
+
readonly canDelete: boolean;
|
|
1070
|
+
readonly canGoTo: boolean;
|
|
1071
|
+
/**
|
|
1072
|
+
* How many other places carry the typed bookmark's name, which collaborators adding one name
|
|
1073
|
+
* offline can leave. 0 for a name with one bookmark, or no bookmark.
|
|
1074
|
+
*/
|
|
1075
|
+
readonly duplicates: number;
|
|
1076
|
+
remove(): void;
|
|
1077
|
+
goTo(): void;
|
|
1078
|
+
/** Keep the first bookmark with the typed name and remove its copies. */
|
|
1079
|
+
keepFirst(): void;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* The dialog is mounted only while it is open, so a closed dialog reads no bookmarks on each
|
|
1083
|
+
* editor update. Each opening starts a fresh draft.
|
|
1084
|
+
*/
|
|
1085
|
+
declare function BookmarkDialogRoot(props: DocxEditorBookmarkDialogProps): ReactElement | null;
|
|
1086
|
+
/** Read the enclosing Bookmark dialog draft. @public */
|
|
1087
|
+
declare function useBookmarkDialog(): UseBookmarkDialogReturn;
|
|
1088
|
+
type PartComponent = (props: DialogPartProps) => ReactNode;
|
|
1089
|
+
/** The Bookmark dialog with replaceable controls and layout. @public */
|
|
1090
|
+
declare const DocxEditorBookmarkDialog: typeof BookmarkDialogRoot & {
|
|
1091
|
+
Header: (props: DialogPartProps & {
|
|
1092
|
+
name?: "list" | "name" | "showHidden" | "sortBy" | undefined;
|
|
1093
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1094
|
+
Title: (props: DialogPartProps & {
|
|
1095
|
+
name?: "list" | "name" | "showHidden" | "sortBy" | undefined;
|
|
1096
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1097
|
+
Body: (props: DialogPartProps & {
|
|
1098
|
+
name?: "list" | "name" | "showHidden" | "sortBy" | undefined;
|
|
1099
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1100
|
+
Footer: (props: DialogPartProps & {
|
|
1101
|
+
name?: "list" | "name" | "showHidden" | "sortBy" | undefined;
|
|
1102
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1103
|
+
/** Add: bookmark the selection under the typed name. */
|
|
1104
|
+
Apply: (props: DialogPartProps & {
|
|
1105
|
+
name?: "list" | "name" | "showHidden" | "sortBy" | undefined;
|
|
1106
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1107
|
+
Cancel: (props: DialogPartProps & {
|
|
1108
|
+
name?: "list" | "name" | "showHidden" | "sortBy" | undefined;
|
|
1109
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1110
|
+
Error: (props: DialogPartProps & {
|
|
1111
|
+
name?: "list" | "name" | "showHidden" | "sortBy" | undefined;
|
|
1112
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1113
|
+
Field: (props: DialogPartProps & {
|
|
1114
|
+
name: "list" | "name" | "showHidden" | "sortBy";
|
|
1115
|
+
}) => ReactNode;
|
|
1116
|
+
Delete: PartComponent;
|
|
1117
|
+
GoTo: PartComponent;
|
|
1118
|
+
/** Shown while the typed name has copies: keep the first, remove the rest. */
|
|
1119
|
+
KeepFirst: PartComponent;
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
/** Props for `DocxEditor.SplitCellDialog`. @public */
|
|
1123
|
+
interface DocxEditorSplitCellDialogProps extends DialogCustomizationProps {
|
|
1124
|
+
/** Whether the dialog is shown. The host owns this state. */
|
|
1125
|
+
open: boolean;
|
|
1126
|
+
/** Called on Cancel, Escape, overlay click, and after a successful Split. */
|
|
1127
|
+
onClose: () => void;
|
|
1128
|
+
}
|
|
1129
|
+
/** The Split cells dialog's draft, as typed. @public */
|
|
1130
|
+
interface SplitCellDialogFields {
|
|
1131
|
+
/** The number of columns, as typed. */
|
|
1132
|
+
columns: string;
|
|
1133
|
+
/** The number of rows, as typed. */
|
|
1134
|
+
rows: string;
|
|
1135
|
+
}
|
|
1136
|
+
/** Split cells dialog draft and actions. `apply` is Split. @public */
|
|
1137
|
+
interface UseSplitCellDialogReturn extends UseDialogReturn<SplitCellDialogFields> {
|
|
1138
|
+
/** The most columns and rows the cell splits into, or null outside a cell that splits. */
|
|
1139
|
+
readonly limits: SplitCellLimits | null;
|
|
1140
|
+
}
|
|
1141
|
+
declare function SplitCellDialogRoot(props: DocxEditorSplitCellDialogProps): ReactElement | null;
|
|
1142
|
+
/** Read the enclosing Split cells dialog draft. @public */
|
|
1143
|
+
declare function useSplitCellDialog(): UseSplitCellDialogReturn;
|
|
1144
|
+
/** The Split cells dialog with replaceable controls and layout. @public */
|
|
1145
|
+
declare const DocxEditorSplitCellDialog: typeof SplitCellDialogRoot & {
|
|
1146
|
+
Header: (props: DialogPartProps & {
|
|
1147
|
+
name?: "columns" | "rows" | undefined;
|
|
1148
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1149
|
+
Title: (props: DialogPartProps & {
|
|
1150
|
+
name?: "columns" | "rows" | undefined;
|
|
1151
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1152
|
+
Body: (props: DialogPartProps & {
|
|
1153
|
+
name?: "columns" | "rows" | undefined;
|
|
1154
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1155
|
+
Footer: (props: DialogPartProps & {
|
|
1156
|
+
name?: "columns" | "rows" | undefined;
|
|
1157
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1158
|
+
/** Split: divide the cell at the selection into the typed counts. */
|
|
1159
|
+
Apply: (props: DialogPartProps & {
|
|
1160
|
+
name?: "columns" | "rows" | undefined;
|
|
1161
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1162
|
+
Cancel: (props: DialogPartProps & {
|
|
1163
|
+
name?: "columns" | "rows" | undefined;
|
|
1164
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1165
|
+
Error: (props: DialogPartProps & {
|
|
1166
|
+
name?: "columns" | "rows" | undefined;
|
|
1167
|
+
}) => string | number | bigint | boolean | react.JSX.Element | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | ReactElement<unknown, string | react.JSXElementConstructor<any>> | react.ReactPortal | null | undefined> | null;
|
|
1168
|
+
Field: (props: DialogPartProps & {
|
|
1169
|
+
name: "columns" | "rows";
|
|
1170
|
+
}) => react.ReactNode;
|
|
1171
|
+
};
|
|
1172
|
+
|
|
848
1173
|
/** Shared props for every part. @public */
|
|
849
1174
|
interface HyperLinkPartProps {
|
|
850
1175
|
className?: string;
|
|
@@ -1374,6 +1699,14 @@ declare const ContextMenuInsertColumnLeft: (({ icon, labelKey, className, hidden
|
|
|
1374
1699
|
declare const ContextMenuInsertColumnRight: (({ icon, labelKey, className, hidden, destructive }: ContextMenuTableRowProps) => react.JSX.Element | null) & {
|
|
1375
1700
|
docxRow: string;
|
|
1376
1701
|
};
|
|
1702
|
+
/** Merge the selected cells into one cell. @public */
|
|
1703
|
+
declare const ContextMenuMergeCells: (({ icon, labelKey, className, hidden, destructive }: ContextMenuTableRowProps) => react.JSX.Element | null) & {
|
|
1704
|
+
docxRow: string;
|
|
1705
|
+
};
|
|
1706
|
+
/** Open the Split cells dialog for the cell at the selection. @public */
|
|
1707
|
+
declare const ContextMenuSplitCell: (({ icon, labelKey, className, hidden }: ContextMenuCommandProps) => react.JSX.Element | null) & {
|
|
1708
|
+
docxRow: string;
|
|
1709
|
+
};
|
|
1377
1710
|
/** Delete the current table row. @public */
|
|
1378
1711
|
declare const ContextMenuDeleteTableRow: (({ icon, labelKey, className, hidden, destructive }: ContextMenuTableRowProps) => react.JSX.Element | null) & {
|
|
1379
1712
|
docxRow: string;
|
|
@@ -1475,6 +1808,8 @@ interface DocxEditorContextMenuNamespace {
|
|
|
1475
1808
|
readonly InsertRowBelow: typeof ContextMenuInsertRowBelow;
|
|
1476
1809
|
readonly InsertColumnLeft: typeof ContextMenuInsertColumnLeft;
|
|
1477
1810
|
readonly InsertColumnRight: typeof ContextMenuInsertColumnRight;
|
|
1811
|
+
readonly MergeCells: typeof ContextMenuMergeCells;
|
|
1812
|
+
readonly SplitCell: typeof ContextMenuSplitCell;
|
|
1478
1813
|
readonly DeleteTableRow: typeof ContextMenuDeleteTableRow;
|
|
1479
1814
|
readonly DeleteTableColumn: typeof ContextMenuDeleteTableColumn;
|
|
1480
1815
|
readonly DeleteTable: typeof ContextMenuDeleteTable;
|
|
@@ -1568,6 +1903,8 @@ interface DocxEditorPopups {
|
|
|
1568
1903
|
*/
|
|
1569
1904
|
contentControlPicture?: DocxEditorPopup<DocxEditorContentControlWidgetProps>;
|
|
1570
1905
|
invalidTextFormField?: DocxEditorPopup<DocxEditorInvalidTextFormFieldDialogProps>;
|
|
1906
|
+
/** Why a chosen or pasted picture could not be inserted. False shows nothing. */
|
|
1907
|
+
imageInsertError?: DocxEditorPopup<DocxEditorImageInsertErrorDialogProps>;
|
|
1571
1908
|
imageProperties?: DocxEditorPopup<DocxEditorImagePropertiesDialogProps>;
|
|
1572
1909
|
imageAltText?: DocxEditorPopup<DocxEditorImageAltTextPopupProps>;
|
|
1573
1910
|
noteProperties?: DocxEditorPopup<DocxEditorNotePropertiesDialogProps>;
|
|
@@ -1575,6 +1912,12 @@ interface DocxEditorPopups {
|
|
|
1575
1912
|
notesContextMenu?: DocxEditorPopup<DocxEditorNotesContextMenuProps>;
|
|
1576
1913
|
pageSetup?: DocxEditorPopup<DocxEditorPageSetupDialogProps>;
|
|
1577
1914
|
paragraph?: DocxEditorPopup<DocxEditorParagraphDialogProps>;
|
|
1915
|
+
/** The Watermark dialog the Insert menu opens. Pass `presets` here to change its text choices. */
|
|
1916
|
+
watermark?: DocxEditorPopup<DocxEditorWatermarkDialogProps>;
|
|
1917
|
+
/** The Bookmark dialog the Insert menu and Ctrl/Cmd+Shift+F5 open. */
|
|
1918
|
+
bookmark?: DocxEditorPopup<DocxEditorBookmarkDialogProps>;
|
|
1919
|
+
/** The Split cells dialog the table context menu and toolbar open. */
|
|
1920
|
+
splitCell?: DocxEditorPopup<DocxEditorSplitCellDialogProps>;
|
|
1578
1921
|
revisionMarkup?: DocxEditorPopup<DocxEditorRevisionMarkupDialogProps>;
|
|
1579
1922
|
textFormField?: DocxEditorPopup<DocxEditorTextFormFieldDialogProps>;
|
|
1580
1923
|
hyperlink?: DocxEditorPopup<HyperLinkProps>;
|
|
@@ -1606,17 +1949,50 @@ declare function useDocxEditor(): DocxEditorInstance | null;
|
|
|
1606
1949
|
* legitimately compose two rails.
|
|
1607
1950
|
*/
|
|
1608
1951
|
interface ReviewRailRegistry {
|
|
1952
|
+
/**
|
|
1953
|
+
* Review columns registered through `register`: the packaged rail, and any column that
|
|
1954
|
+
* serves comment drafts. The Add comment controls in the toolbar and the context menu
|
|
1955
|
+
* appear only while this is above zero.
|
|
1956
|
+
*/
|
|
1609
1957
|
readonly mounted: number;
|
|
1958
|
+
/**
|
|
1959
|
+
* Register a review column that serves comment drafts. Also reserves the review gutter.
|
|
1960
|
+
* Call it on mount, together with `registerCommentDraft`. Returns the unregister function.
|
|
1961
|
+
*/
|
|
1610
1962
|
readonly register: () => () => void;
|
|
1963
|
+
/**
|
|
1964
|
+
* Claims registered through `reserveGutter`: columns that need the review gutter but
|
|
1965
|
+
* serve no comment draft. The viewport reserves the gutter while `mounted + gutters` is
|
|
1966
|
+
* above zero.
|
|
1967
|
+
*/
|
|
1968
|
+
readonly gutters?: number;
|
|
1969
|
+
/** Reserve the review gutter without showing comment controls. Returns the release. */
|
|
1970
|
+
readonly reserveGutter?: () => () => void;
|
|
1971
|
+
/**
|
|
1972
|
+
* Receive the Add comment requests. The handler takes no arguments: it reads the
|
|
1973
|
+
* selection's position with `getSelectionPlacement`, pins the selection with
|
|
1974
|
+
* `retainSelection`, and opens the pane. Release the pin with `releaseSelection` when the
|
|
1975
|
+
* draft closes or is cancelled. The most recently registered handler receives each request. Do not register
|
|
1976
|
+
* while the column cannot open a draft, such as in viewing mode: a request counts as
|
|
1977
|
+
* served once a handler runs. While a handler is registered, the `review.addComment`
|
|
1978
|
+
* control is enabled. Returns the unregister function.
|
|
1979
|
+
*/
|
|
1611
1980
|
readonly registerCommentDraft: (handler: () => void) => () => void;
|
|
1981
|
+
/**
|
|
1982
|
+
* Send an Add comment request through the `review.addComment` control. The most recent
|
|
1983
|
+
* registration receives it: a handler registered here, or one registered with
|
|
1984
|
+
* `useCommentDraftRequest`. Returns `true` when a handler ran, even if it then opened
|
|
1985
|
+
* nothing, and `false` when the control is disabled.
|
|
1986
|
+
*/
|
|
1612
1987
|
readonly requestCommentDraft: () => boolean;
|
|
1613
1988
|
}
|
|
1614
1989
|
declare const ReviewRailContext: react.Context<ReviewRailRegistry | null>;
|
|
1615
1990
|
|
|
1616
1991
|
/**
|
|
1617
|
-
* Props for `DocxEditor.Root`.
|
|
1618
|
-
*
|
|
1619
|
-
*
|
|
1992
|
+
* Props for `DocxEditor.Root`. `document` and `imageDecodePort` identity changes remount the
|
|
1993
|
+
* editor. Changing `fontShaping.maxFontBytes` also remounts. Later `fonts`, `author`, `locale`,
|
|
1994
|
+
* `mode`, `translate`, `zoom`, and `zoomMode` changes use instance setters, so edits, selection
|
|
1995
|
+
* and undo history survive them. `modules` is sampled at mount only.
|
|
1620
1996
|
*
|
|
1621
1997
|
* @public
|
|
1622
1998
|
*/
|
|
@@ -1632,10 +2008,13 @@ interface DocxEditorRootProps {
|
|
|
1632
2008
|
* uses a fixed-width estimate; fonts embedded in the document are wired automatically
|
|
1633
2009
|
* either way. Pass `await loadDefaultFonts()` from `@docx-editor.dev/fonts` for
|
|
1634
2010
|
* Word's default faces — a bare fragment is accepted — or compose several origins
|
|
1635
|
-
* with `composeFontConfiguration`.
|
|
1636
|
-
*
|
|
2011
|
+
* with `composeFontConfiguration`. An identity change replaces the fonts in place
|
|
2012
|
+
* (`setFonts`), keeping the document, selection and undo history; keep the reference stable
|
|
2013
|
+
* across renders. Failures degrade to the fixed measurer and report through `onFontError`.
|
|
1637
2014
|
*/
|
|
1638
2015
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
2016
|
+
/** Explicit shaping byte ceiling; a changed maxFontBytes value remounts. */
|
|
2017
|
+
fontShaping?: FontShapingOptions;
|
|
1639
2018
|
/** Author for later comments, replies, and tracked changes. Changes apply without a remount. */
|
|
1640
2019
|
author?: string;
|
|
1641
2020
|
/**
|
|
@@ -1691,6 +2070,20 @@ interface DocxEditorRootProps {
|
|
|
1691
2070
|
* with a collaboration module.
|
|
1692
2071
|
*/
|
|
1693
2072
|
fieldResults?: FieldResultsMode;
|
|
2073
|
+
/**
|
|
2074
|
+
* Opt-in relaxation of content-control locks. With `allowFormattingInLockedContent: true`,
|
|
2075
|
+
* readers can format `contentLocked` and `sdtContentLocked` controls while their text stays
|
|
2076
|
+
* protected. Read once, when the editor is created: a later change in value is ignored,
|
|
2077
|
+
* with a development warning.
|
|
2078
|
+
*/
|
|
2079
|
+
contentLockPolicy?: ContentLockPolicy;
|
|
2080
|
+
/**
|
|
2081
|
+
* How the caret moves through an inline content control whose content is locked.
|
|
2082
|
+
* `'characters'` (the default) walks through its characters, as Word does. `'atomic'` makes
|
|
2083
|
+
* the control one caret unit. Read once, when the editor is created: a later change is
|
|
2084
|
+
* ignored, with a development warning.
|
|
2085
|
+
*/
|
|
2086
|
+
lockedControlNavigation?: LockedControlNavigation;
|
|
1694
2087
|
/** Fired once per instance, after it is published to the tree (and after any
|
|
1695
2088
|
* `DocxEditor.Content` in the same commit has attached its mount point). A large
|
|
1696
2089
|
* document mounts behind one painted frame; `onReady` fires AFTER that mount lands,
|
|
@@ -2386,6 +2779,10 @@ interface DocxEditorToolbarNamespace {
|
|
|
2386
2779
|
readonly TableBorderWidth: TableBorderWidthNamespace;
|
|
2387
2780
|
/** Cell background fill split compound (quick-apply main + swatch dialog). */
|
|
2388
2781
|
readonly TableCellFill: TableCellFillNamespace;
|
|
2782
|
+
/** Merge the selected cells. */
|
|
2783
|
+
readonly TableMergeCells: ToolbarPartComponent;
|
|
2784
|
+
/** Open the Split cells dialog. */
|
|
2785
|
+
readonly TableSplitCell: ToolbarPartComponent;
|
|
2389
2786
|
readonly Comments: ToolbarPartComponent;
|
|
2390
2787
|
readonly FontFamily: typeof FontFamily;
|
|
2391
2788
|
readonly FontSize: ToolbarSlotPartComponent;
|
|
@@ -2409,6 +2806,32 @@ interface DocxEditorToolbarNamespace {
|
|
|
2409
2806
|
*/
|
|
2410
2807
|
declare const DocxEditorToolbar: DocxEditorToolbarNamespace;
|
|
2411
2808
|
|
|
2809
|
+
/**
|
|
2810
|
+
* The Watermark dialog, from the Insert menu.
|
|
2811
|
+
*
|
|
2812
|
+
* Same shape as page setup: no fixed command to dispatch, so the row asks through the
|
|
2813
|
+
* slot's probe and is disabled with the engine's own words on a document it cannot rewrite.
|
|
2814
|
+
*/
|
|
2815
|
+
declare function MenuWatermarkImpl({ className, hidden }: MenuActionProps): react.JSX.Element | null;
|
|
2816
|
+
/** Insert › Watermark, so a host can hide it or place it elsewhere by name. @public */
|
|
2817
|
+
declare const MenuWatermark: typeof MenuWatermarkImpl & {
|
|
2818
|
+
docxSlot: 'insert.watermark';
|
|
2819
|
+
};
|
|
2820
|
+
|
|
2821
|
+
declare function MenuBookmarkImpl({ className, hidden }: MenuActionProps): react.JSX.Element;
|
|
2822
|
+
/**
|
|
2823
|
+
* Insert › Bookmark, so a host can hide it or place it elsewhere by name.
|
|
2824
|
+
*
|
|
2825
|
+
* An ordinary command row: the slot runs `openBookmarkDialog`, which opens the `bookmark`
|
|
2826
|
+
* popup through the editor, the same request Ctrl/Cmd+Shift+F5 sends. The row is disabled
|
|
2827
|
+
* while no bookmark dialog is registered, for example when the popup is `false`.
|
|
2828
|
+
*
|
|
2829
|
+
* @public
|
|
2830
|
+
*/
|
|
2831
|
+
declare const MenuBookmark: typeof MenuBookmarkImpl & {
|
|
2832
|
+
docxSlot: 'insert.bookmark';
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2412
2835
|
/** Props for `DocxEditor.Menu.ReportIssue`. @public */
|
|
2413
2836
|
interface MenuReportIssueProps {
|
|
2414
2837
|
className?: string;
|
|
@@ -2546,6 +2969,9 @@ interface DocxEditorMenuNamespace {
|
|
|
2546
2969
|
readonly PageSetup: typeof MenuPageSetup;
|
|
2547
2970
|
/** Insert › Image, so a host can hide it or place it elsewhere by name. */
|
|
2548
2971
|
readonly ImageInsert: typeof MenuImageInsert;
|
|
2972
|
+
/** Insert › Watermark, so a host can hide it or place it elsewhere by name. */
|
|
2973
|
+
readonly Watermark: typeof MenuWatermark;
|
|
2974
|
+
readonly Bookmark: typeof MenuBookmark;
|
|
2549
2975
|
/** Review > Markup Options > Reviewers. */
|
|
2550
2976
|
readonly Reviewers: typeof MenuReviewers;
|
|
2551
2977
|
/** Help › Report issue, so a host can drop it or point it elsewhere by name. */
|
|
@@ -2619,64 +3045,8 @@ interface DocxEditorDocumentOutlineProps {
|
|
|
2619
3045
|
*/
|
|
2620
3046
|
declare function DocxEditorDocumentOutline(props: DocxEditorDocumentOutlineProps): ReactElement | null;
|
|
2621
3047
|
|
|
2622
|
-
/**
|
|
2623
|
-
|
|
2624
|
-
/**
|
|
2625
|
-
* Which matches to mark: every match with the active one emphasized (`'all'`), only the
|
|
2626
|
-
* active match (`'active'`), or none (`'none'`). Default: `'all'`.
|
|
2627
|
-
*/
|
|
2628
|
-
readonly highlight?: DocumentSearchHighlight;
|
|
2629
|
-
}
|
|
2630
|
-
/** What `useDocumentSearch` answers. @public */
|
|
2631
|
-
interface UseDocumentSearchResult {
|
|
2632
|
-
/** The text in the search box, updated synchronously as the user types. */
|
|
2633
|
-
readonly query: string;
|
|
2634
|
-
/** Update the typed query. The search runs after a short debounce. */
|
|
2635
|
-
readonly setQuery: (query: string) => void;
|
|
2636
|
-
/**
|
|
2637
|
-
* Search now and return the matches. `selectFirst` selects the first match; `highlight`
|
|
2638
|
-
* highlights the results until `clear()`, even without this hook's own request.
|
|
2639
|
-
*/
|
|
2640
|
-
readonly find: (query: string, options?: DocumentSearchFindOptions) => readonly TextMatch[];
|
|
2641
|
-
readonly matchCase: boolean;
|
|
2642
|
-
readonly setMatchCase: (value: boolean) => void;
|
|
2643
|
-
readonly wholeWord: boolean;
|
|
2644
|
-
readonly setWholeWord: (value: boolean) => void;
|
|
2645
|
-
/** Matches for the last RUN query, in document order. */
|
|
2646
|
-
readonly matches: readonly TextMatch[];
|
|
2647
|
-
/**
|
|
2648
|
-
* Whether the engine stopped at its cap with matches still ahead of it, so a count
|
|
2649
|
-
* should read "2000+" rather than an exact total. A search that lands on exactly the cap
|
|
2650
|
-
* reports true; over-reporting by one is the honest direction.
|
|
2651
|
-
*/
|
|
2652
|
-
readonly truncated: boolean;
|
|
2653
|
-
/** Index of the match the caret was last sent to, or `-1` before any navigation. */
|
|
2654
|
-
readonly activeIndex: number;
|
|
2655
|
-
/** The current match, or `null` before any navigation. */
|
|
2656
|
-
readonly activeMatch: TextMatch | null;
|
|
2657
|
-
/**
|
|
2658
|
-
* Select a match by index and bring its page into view. Focus stays where it is, so a
|
|
2659
|
-
* search box keeps it. Returns false for an index without a match.
|
|
2660
|
-
*/
|
|
2661
|
-
readonly goTo: (index: number) => boolean;
|
|
2662
|
-
/** Next / previous match, wrapping at the ends the way Word's arrows do. */
|
|
2663
|
-
readonly next: () => boolean;
|
|
2664
|
-
readonly previous: () => boolean;
|
|
2665
|
-
/** Empty the box and drop the results, without touching the selection. */
|
|
2666
|
-
readonly clear: () => void;
|
|
2667
|
-
/** Whether a typed query is waiting for its debounce to elapse. */
|
|
2668
|
-
readonly isPending: boolean;
|
|
2669
|
-
}
|
|
2670
|
-
/**
|
|
2671
|
-
* The editor's shared search, with no UI attached. The packaged Find pane uses the same
|
|
2672
|
-
* session, so state set here shows there.
|
|
2673
|
-
*
|
|
2674
|
-
* @public
|
|
2675
|
-
*/
|
|
2676
|
-
declare function useDocumentSearch(options?: UseDocumentSearchOptions): UseDocumentSearchResult;
|
|
2677
|
-
|
|
2678
|
-
/** The pane's tabs. Word's Replace tab is a later slice; nothing here pretends it exists. */
|
|
2679
|
-
type NavigationTab$1 = 'headings' | 'find';
|
|
3048
|
+
/** The pane's tabs: the outline, Find, and Go to (bookmarks). */
|
|
3049
|
+
type NavigationTab$1 = 'headings' | 'find' | 'goto';
|
|
2680
3050
|
/** How `useNavigationPane` is configured. @public */
|
|
2681
3051
|
interface UseNavigationPaneOptions {
|
|
2682
3052
|
/** Open state for the first render when the pane is uncontrolled. Defaults to closed. */
|
|
@@ -2781,6 +3151,70 @@ declare function NavigationFind({ className, style }: NavigationPartProps): Reac
|
|
|
2781
3151
|
*/
|
|
2782
3152
|
declare function NavigationToggle({ className, style, children, }: NavigationPartProps): ReactElement;
|
|
2783
3153
|
|
|
3154
|
+
/**
|
|
3155
|
+
* The Bookmarks panel: a bookmark search box, the sort order and hidden-bookmarks toggle, and
|
|
3156
|
+
* the bookmarks it offers, grouped by place when sorted by location.
|
|
3157
|
+
*
|
|
3158
|
+
* @public
|
|
3159
|
+
*/
|
|
3160
|
+
declare function NavigationGoTo({ className, style }: NavigationPartProps): ReactElement;
|
|
3161
|
+
|
|
3162
|
+
/** How `useDocumentSearch` behaves. @public */
|
|
3163
|
+
interface UseDocumentSearchOptions {
|
|
3164
|
+
/**
|
|
3165
|
+
* Which matches to mark: every match with the active one emphasized (`'all'`), only the
|
|
3166
|
+
* active match (`'active'`), or none (`'none'`). Default: `'all'`.
|
|
3167
|
+
*/
|
|
3168
|
+
readonly highlight?: DocumentSearchHighlight;
|
|
3169
|
+
}
|
|
3170
|
+
/** What `useDocumentSearch` answers. @public */
|
|
3171
|
+
interface UseDocumentSearchResult {
|
|
3172
|
+
/** The text in the search box, updated synchronously as the user types. */
|
|
3173
|
+
readonly query: string;
|
|
3174
|
+
/** Update the typed query. The search runs after a short debounce. */
|
|
3175
|
+
readonly setQuery: (query: string) => void;
|
|
3176
|
+
/**
|
|
3177
|
+
* Search now and return the matches. `selectFirst` selects the first match; `highlight`
|
|
3178
|
+
* highlights the results until `clear()`, even without this hook's own request.
|
|
3179
|
+
*/
|
|
3180
|
+
readonly find: (query: string, options?: DocumentSearchFindOptions) => readonly TextMatch[];
|
|
3181
|
+
readonly matchCase: boolean;
|
|
3182
|
+
readonly setMatchCase: (value: boolean) => void;
|
|
3183
|
+
readonly wholeWord: boolean;
|
|
3184
|
+
readonly setWholeWord: (value: boolean) => void;
|
|
3185
|
+
/** Matches for the last RUN query, in document order. */
|
|
3186
|
+
readonly matches: readonly TextMatch[];
|
|
3187
|
+
/**
|
|
3188
|
+
* Whether the engine stopped at its cap with matches still ahead of it, so a count
|
|
3189
|
+
* should read "2000+" rather than an exact total. A search that lands on exactly the cap
|
|
3190
|
+
* reports true; over-reporting by one is the honest direction.
|
|
3191
|
+
*/
|
|
3192
|
+
readonly truncated: boolean;
|
|
3193
|
+
/** Index of the match the caret was last sent to, or `-1` before any navigation. */
|
|
3194
|
+
readonly activeIndex: number;
|
|
3195
|
+
/** The current match, or `null` before any navigation. */
|
|
3196
|
+
readonly activeMatch: TextMatch | null;
|
|
3197
|
+
/**
|
|
3198
|
+
* Select a match by index and bring its page into view. Focus stays where it is, so a
|
|
3199
|
+
* search box keeps it. Returns false for an index without a match.
|
|
3200
|
+
*/
|
|
3201
|
+
readonly goTo: (index: number) => boolean;
|
|
3202
|
+
/** Next / previous match, wrapping at the ends the way Word's arrows do. */
|
|
3203
|
+
readonly next: () => boolean;
|
|
3204
|
+
readonly previous: () => boolean;
|
|
3205
|
+
/** Empty the box and drop the results, without touching the selection. */
|
|
3206
|
+
readonly clear: () => void;
|
|
3207
|
+
/** Whether a typed query is waiting for its debounce to elapse. */
|
|
3208
|
+
readonly isPending: boolean;
|
|
3209
|
+
}
|
|
3210
|
+
/**
|
|
3211
|
+
* The editor's shared search, with no UI attached. The packaged Find pane uses the same
|
|
3212
|
+
* session, so state set here shows there.
|
|
3213
|
+
*
|
|
3214
|
+
* @public
|
|
3215
|
+
*/
|
|
3216
|
+
declare function useDocumentSearch(options?: UseDocumentSearchOptions): UseDocumentSearchResult;
|
|
3217
|
+
|
|
2784
3218
|
/** Props for `DocxEditor.Navigation`. @public */
|
|
2785
3219
|
interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
|
|
2786
3220
|
/**
|
|
@@ -2810,6 +3244,12 @@ interface DocxEditorNavigationProps extends UseNavigationPaneOptions {
|
|
|
2810
3244
|
* browser's own search. Set `false` to leave the shortcut to the browser everywhere.
|
|
2811
3245
|
*/
|
|
2812
3246
|
findShortcut?: boolean;
|
|
3247
|
+
/**
|
|
3248
|
+
* Whether Ctrl+G (Cmd+Option+G on macOS) opens the pane on the Go to tab. Defaults to
|
|
3249
|
+
* `true`, and applies only while focus is in this editor. The `openGoTo` editor command
|
|
3250
|
+
* opens the tab either way.
|
|
3251
|
+
*/
|
|
3252
|
+
goToShortcut?: boolean;
|
|
2813
3253
|
className?: string;
|
|
2814
3254
|
style?: CSSProperties;
|
|
2815
3255
|
/** Replaces the default composition (header, tabs, both panels). */
|
|
@@ -2835,10 +3275,68 @@ interface DocxEditorNavigationNamespace {
|
|
|
2835
3275
|
readonly Tab: typeof NavigationTab;
|
|
2836
3276
|
readonly Headings: typeof NavigationHeadings;
|
|
2837
3277
|
readonly Find: typeof NavigationFind;
|
|
3278
|
+
readonly GoTo: typeof NavigationGoTo;
|
|
2838
3279
|
readonly Toggle: typeof NavigationToggle;
|
|
2839
3280
|
}
|
|
2840
3281
|
declare const Navigation: DocxEditorNavigationNamespace;
|
|
2841
3282
|
|
|
3283
|
+
/**
|
|
3284
|
+
* Why a Go To jump did not happen: nothing was typed, no bookmark has the name, or the editor
|
|
3285
|
+
* refused the jump for another reason (it is not ready, or the story could not be shown).
|
|
3286
|
+
*
|
|
3287
|
+
* @public
|
|
3288
|
+
*/
|
|
3289
|
+
type GoToBookmarkProblem = 'empty' | 'notFound' | 'failed';
|
|
3290
|
+
/** How `useGoToBookmark` is configured. @public */
|
|
3291
|
+
interface UseGoToBookmarkOptions {
|
|
3292
|
+
/**
|
|
3293
|
+
* Whether to read the document's bookmarks. Defaults to `true`. Pass `false` while your UI
|
|
3294
|
+
* is hidden: the list is then empty and the document is not read on each change.
|
|
3295
|
+
*/
|
|
3296
|
+
readonly enabled?: boolean;
|
|
3297
|
+
}
|
|
3298
|
+
/** What `useGoToBookmark` answers. @public */
|
|
3299
|
+
interface UseGoToBookmarkReturn {
|
|
3300
|
+
/** The text in the name box. */
|
|
3301
|
+
readonly query: string;
|
|
3302
|
+
/** Change the text. The highlight goes back to none. */
|
|
3303
|
+
readonly setQuery: (query: string) => void;
|
|
3304
|
+
readonly sortBy: BookmarkSortOrder;
|
|
3305
|
+
readonly setSortBy: (sortBy: BookmarkSortOrder) => void;
|
|
3306
|
+
/** Whether hidden bookmarks (names starting with an underscore) are offered. */
|
|
3307
|
+
readonly showHidden: boolean;
|
|
3308
|
+
readonly setShowHidden: (showHidden: boolean) => void;
|
|
3309
|
+
/** The bookmarks offered for the query: names that start with it first. */
|
|
3310
|
+
readonly rows: readonly BookmarkSummary[];
|
|
3311
|
+
/** Every bookmark the document declares, hidden ones included. Empty while disabled. */
|
|
3312
|
+
readonly bookmarks: readonly BookmarkSummary[];
|
|
3313
|
+
/**
|
|
3314
|
+
* Index into `rows` of the highlighted row, or -1 when none is. The highlight follows its
|
|
3315
|
+
* bookmark when rows move, and clears when that bookmark goes away.
|
|
3316
|
+
*/
|
|
3317
|
+
readonly activeIndex: number;
|
|
3318
|
+
/** Move the highlight by `delta` rows, wrapping at either end. */
|
|
3319
|
+
readonly move: (delta: number) => void;
|
|
3320
|
+
/** Highlight the row at `index` of `rows`, or none with -1. */
|
|
3321
|
+
readonly setActiveIndex: (index: number) => void;
|
|
3322
|
+
/**
|
|
3323
|
+
* Jump to `name`, or else to what the name box means: the highlighted row, the bookmark
|
|
3324
|
+
* named exactly as typed, or the first row offered. Answers the `goToBookmark` result and
|
|
3325
|
+
* sets `problem` when it is refused.
|
|
3326
|
+
*/
|
|
3327
|
+
readonly go: (name?: string) => ExecResult;
|
|
3328
|
+
/** Why the last jump did not happen, or null. Cleared when the query changes. */
|
|
3329
|
+
readonly problem: GoToBookmarkProblem | null;
|
|
3330
|
+
/** The name the last refused jump asked for, for a message. Empty when nothing was typed. */
|
|
3331
|
+
readonly problemName: string;
|
|
3332
|
+
}
|
|
3333
|
+
/**
|
|
3334
|
+
* Go To for bookmarks: filter by name, move through the offered rows, and jump.
|
|
3335
|
+
*
|
|
3336
|
+
* @public
|
|
3337
|
+
*/
|
|
3338
|
+
declare function useGoToBookmark(options?: UseGoToBookmarkOptions): UseGoToBookmarkReturn;
|
|
3339
|
+
|
|
2842
3340
|
/**
|
|
2843
3341
|
* One heading of the engine's outline: text, 0-based level, and the block id
|
|
2844
3342
|
* `Editor.scrollToBlock` accepts.
|
|
@@ -3015,6 +3513,162 @@ interface DocxEditorFontNoticeProps {
|
|
|
3015
3513
|
*/
|
|
3016
3514
|
declare function DocxEditorFontNotice({ className, style, t: tProp }: DocxEditorFontNoticeProps): react.JSX.Element | null;
|
|
3017
3515
|
|
|
3516
|
+
/** The current refused open, with the packaged message and a way to dismiss it. @public */
|
|
3517
|
+
interface UseOpenFailureReturn {
|
|
3518
|
+
/** The refused open, or `null` when there is none or the person dismissed it. */
|
|
3519
|
+
readonly failure: DocumentOpenFailure | null;
|
|
3520
|
+
/** The packaged, translated message for {@link UseOpenFailureReturn.failure}. */
|
|
3521
|
+
readonly message: string | null;
|
|
3522
|
+
/**
|
|
3523
|
+
* Hide this refusal. A later refusal shows again, even for the same file. Pass the failure
|
|
3524
|
+
* your UI showed, such as from a toast's close callback, so a late call cannot hide a newer
|
|
3525
|
+
* refusal. It also works as a click handler directly, such as `onClick={dismiss}`: an event
|
|
3526
|
+
* hides the refusal on screen.
|
|
3527
|
+
*/
|
|
3528
|
+
dismiss(failure?: DocumentOpenFailure | Event | {
|
|
3529
|
+
readonly nativeEvent: Event;
|
|
3530
|
+
}): void;
|
|
3531
|
+
}
|
|
3532
|
+
/** Options for {@link useOpenFailure}. @public */
|
|
3533
|
+
interface UseOpenFailureOptions {
|
|
3534
|
+
/** Translator override; defaults to the ambient locale context. */
|
|
3535
|
+
t?: TFunction;
|
|
3536
|
+
}
|
|
3537
|
+
/**
|
|
3538
|
+
* Reads the document the editor refused to open, for a host that shows it in its own UI,
|
|
3539
|
+
* such as a toast. Pair it with `openFailure={false}` on `<DocxEditor>`, so the packaged
|
|
3540
|
+
* dialog does not show as well. Call it inside a `DocxEditor.Root`.
|
|
3541
|
+
*
|
|
3542
|
+
* ```tsx
|
|
3543
|
+
* function OpenFailureToast() {
|
|
3544
|
+
* const { failure, message, dismiss } = useOpenFailure();
|
|
3545
|
+
* if (!failure) return null;
|
|
3546
|
+
* return <Toast title={message} detail={failure.code} onClose={() => dismiss(failure)} />;
|
|
3547
|
+
* }
|
|
3548
|
+
* ```
|
|
3549
|
+
*
|
|
3550
|
+
* @public
|
|
3551
|
+
*/
|
|
3552
|
+
declare function useOpenFailure(options?: UseOpenFailureOptions): UseOpenFailureReturn;
|
|
3553
|
+
/** What `actions` and `children` receive. @public */
|
|
3554
|
+
interface DocxEditorOpenFailureContext {
|
|
3555
|
+
/** The refused open: its stable `code` and its `reason`. */
|
|
3556
|
+
readonly failure: DocumentOpenFailure;
|
|
3557
|
+
/** The packaged, translated message for the failure. */
|
|
3558
|
+
readonly message: string;
|
|
3559
|
+
/** Close the dialog. It calls `onDismiss`, as **Close** does. */
|
|
3560
|
+
dismiss(): void;
|
|
3561
|
+
}
|
|
3562
|
+
/** Props for `DocxEditor.OpenFailure.Action`. @public */
|
|
3563
|
+
interface DocxEditorOpenFailureActionProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
3564
|
+
/** `primary` is filled, `secondary` is outlined. Defaults to `secondary`. */
|
|
3565
|
+
variant?: 'primary' | 'secondary';
|
|
3566
|
+
/** Close the dialog after `onClick` runs, unless the handler called `preventDefault()`. */
|
|
3567
|
+
dismiss?: boolean;
|
|
3568
|
+
/** Render your own element, such as a link, with the button's classes and handler. */
|
|
3569
|
+
asChild?: boolean;
|
|
3570
|
+
children?: DocxEditorChildren;
|
|
3571
|
+
}
|
|
3572
|
+
/**
|
|
3573
|
+
* A button in the open-failure dialog, styled as the packaged **Close**. Use it in `actions`,
|
|
3574
|
+
* or in your own `children`. With `asChild`, it styles your own element instead, such as a
|
|
3575
|
+
* link to your support page:
|
|
3576
|
+
*
|
|
3577
|
+
* ```tsx
|
|
3578
|
+
* <DocxEditor.OpenFailure
|
|
3579
|
+
* actions={({ failure }) => (
|
|
3580
|
+
* <DocxEditor.OpenFailure.Action asChild>
|
|
3581
|
+
* <a href={`/support?code=${failure.code}`}>Get help</a>
|
|
3582
|
+
* </DocxEditor.OpenFailure.Action>
|
|
3583
|
+
* )}
|
|
3584
|
+
* />
|
|
3585
|
+
* ```
|
|
3586
|
+
*
|
|
3587
|
+
* @public
|
|
3588
|
+
*/
|
|
3589
|
+
declare function DocxEditorOpenFailureAction({ variant, dismiss, asChild, className, onClick, children, type, ...rest }: DocxEditorOpenFailureActionProps): react.JSX.Element;
|
|
3590
|
+
/**
|
|
3591
|
+
* A message for the open-failure dialog: text, content, or a function of the failure. It
|
|
3592
|
+
* renders in a `div`, so block content is valid.
|
|
3593
|
+
*
|
|
3594
|
+
* @public
|
|
3595
|
+
*/
|
|
3596
|
+
type DocxEditorOpenFailureMessage = string | DocxEditorChildren | ((failure: DocumentOpenFailure) => string | DocxEditorChildren);
|
|
3597
|
+
/** Props for `DocxEditor.OpenFailure`. @public */
|
|
3598
|
+
interface DocxEditorOpenFailureProps {
|
|
3599
|
+
/**
|
|
3600
|
+
* The dialog title. Defaults to the translated `openFailure.title`. It also names the dialog
|
|
3601
|
+
* for screen readers, including when your own content replaces the packaged one.
|
|
3602
|
+
*/
|
|
3603
|
+
title?: string;
|
|
3604
|
+
/** Your own message in place of the packaged one, as content or per failure. */
|
|
3605
|
+
message?: DocxEditorOpenFailureMessage;
|
|
3606
|
+
/** Show the stable error code under the message. Defaults to `true`. */
|
|
3607
|
+
showCode?: boolean;
|
|
3608
|
+
/**
|
|
3609
|
+
* Your own buttons, before **Close**. Build them from `DocxEditor.OpenFailure.Action` so
|
|
3610
|
+
* they match the dialog. The dialog shows no contact of its own.
|
|
3611
|
+
*/
|
|
3612
|
+
actions?: (context: DocxEditorOpenFailureContext) => DocxEditorChildren;
|
|
3613
|
+
/** The label of the **Close** button. Defaults to the translated `common.close`. */
|
|
3614
|
+
closeLabel?: string;
|
|
3615
|
+
/**
|
|
3616
|
+
* Show the packaged **Close** button. Defaults to `true`. Turn it off only when `actions`
|
|
3617
|
+
* gives a way out. Escape still closes the dialog.
|
|
3618
|
+
*/
|
|
3619
|
+
showClose?: boolean;
|
|
3620
|
+
/** Called after the person closes the dialog, by any route. */
|
|
3621
|
+
onDismiss?: (failure: DocumentOpenFailure) => void;
|
|
3622
|
+
/**
|
|
3623
|
+
* Your own dialog content, in place of the packaged header, body and footer. The dialog
|
|
3624
|
+
* frame, its focus handling and Escape stay.
|
|
3625
|
+
*/
|
|
3626
|
+
children?: (context: DocxEditorOpenFailureContext) => DocxEditorChildren;
|
|
3627
|
+
/** Appended after the load-bearing `docx-dialog` class. */
|
|
3628
|
+
className?: string;
|
|
3629
|
+
/** Inline styles for the dialog element. */
|
|
3630
|
+
style?: CSSProperties;
|
|
3631
|
+
/** Translator override; defaults to the ambient locale context. */
|
|
3632
|
+
t?: TFunction;
|
|
3633
|
+
}
|
|
3634
|
+
/**
|
|
3635
|
+
* The open-failure part with its button attached as a static.
|
|
3636
|
+
*
|
|
3637
|
+
* @public
|
|
3638
|
+
*/
|
|
3639
|
+
interface DocxEditorOpenFailureComponent {
|
|
3640
|
+
/** Renders the dialog while a refused open is waiting, and nothing otherwise. */
|
|
3641
|
+
(props: DocxEditorOpenFailureProps): ReactNode;
|
|
3642
|
+
/** A button styled for the dialog, for `actions` and custom `children`. */
|
|
3643
|
+
readonly Action: typeof DocxEditorOpenFailureAction;
|
|
3644
|
+
}
|
|
3645
|
+
/**
|
|
3646
|
+
* A dialog that explains why a file did not open. It shows nothing until the editor refuses a
|
|
3647
|
+
* document, and shows again for each later refusal. `<DocxEditor>` renders it by default;
|
|
3648
|
+
* compose it yourself inside a `DocxEditor.Root`:
|
|
3649
|
+
*
|
|
3650
|
+
* ```tsx
|
|
3651
|
+
* <DocxEditor.Root document={bytes}>
|
|
3652
|
+
* <DocxEditor.OpenFailure
|
|
3653
|
+
* actions={({ failure }) => (
|
|
3654
|
+
* <DocxEditor.OpenFailure.Action variant="primary" onClick={() => report(failure.code)}>
|
|
3655
|
+
* Report
|
|
3656
|
+
* </DocxEditor.OpenFailure.Action>
|
|
3657
|
+
* )}
|
|
3658
|
+
* />
|
|
3659
|
+
* <DocxEditor.Viewport>
|
|
3660
|
+
* <DocxEditor.Content />
|
|
3661
|
+
* </DocxEditor.Viewport>
|
|
3662
|
+
* </DocxEditor.Root>
|
|
3663
|
+
* ```
|
|
3664
|
+
*
|
|
3665
|
+
* The packaged message is generic and names no contact. For a toast or banner instead of a
|
|
3666
|
+
* dialog, use `useOpenFailure`.
|
|
3667
|
+
*
|
|
3668
|
+
* @public
|
|
3669
|
+
*/
|
|
3670
|
+
declare const DocxEditorOpenFailure: DocxEditorOpenFailureComponent;
|
|
3671
|
+
|
|
3018
3672
|
/** Props for `DocxEditor.HeaderFooterChrome`. @public */
|
|
3019
3673
|
interface DocxEditorHeaderFooterChromeProps {
|
|
3020
3674
|
className?: string;
|
|
@@ -3041,8 +3695,8 @@ interface DocxEditorProps {
|
|
|
3041
3695
|
/** Customize automatically mounted popups. Set an entry to false for manual ownership. */
|
|
3042
3696
|
popups?: DocxEditorPopups;
|
|
3043
3697
|
/**
|
|
3044
|
-
*
|
|
3045
|
-
*
|
|
3698
|
+
* Font sources for layout and paint. A new value replaces the fonts in place, keeping the
|
|
3699
|
+
* document, selection and undo history; keep the reference stable across renders.
|
|
3046
3700
|
*
|
|
3047
3701
|
* Optional, but it decides layout FIDELITY. With it, the engine shapes text through
|
|
3048
3702
|
* HarfBuzz and measures line and page breaks from real font metrics. Without it, layout
|
|
@@ -3051,6 +3705,10 @@ interface DocxEditorProps {
|
|
|
3051
3705
|
* measured. Omit it to mount in one line; supply it when break positions matter.
|
|
3052
3706
|
*/
|
|
3053
3707
|
fonts?: FontConfiguration | FontConfigurationFragment | FontResolver;
|
|
3708
|
+
/** Explicit shaping byte ceiling. A changed maxFontBytes value remounts; equal values keep the instance. */
|
|
3709
|
+
fontShaping?: FontShapingOptions;
|
|
3710
|
+
/** Inject image decoding and preserved-image conversion. A changed port identity remounts the editor. */
|
|
3711
|
+
imageDecodePort?: ImageDecodePort;
|
|
3054
3712
|
/**
|
|
3055
3713
|
* Title-bar slots. The host owns what goes here — brand lockup, switchers, theme
|
|
3056
3714
|
* toggle, Open/New/Save controls — and passes them in; the editor renders them
|
|
@@ -3058,6 +3716,23 @@ interface DocxEditorProps {
|
|
|
3058
3716
|
*/
|
|
3059
3717
|
readonly renderTitleBarLeft?: () => DocxEditorChildren;
|
|
3060
3718
|
readonly renderTitleBarRight?: () => DocxEditorChildren;
|
|
3719
|
+
/**
|
|
3720
|
+
* Your own buttons in the dialog for a file that does not open, before **Close**. Build
|
|
3721
|
+
* them from `DocxEditor.OpenFailure.Action`. It is the same as `openFailure.actions`; pass
|
|
3722
|
+
* only one. With `openFailure={false}` there is no dialog, so it renders nothing.
|
|
3723
|
+
*
|
|
3724
|
+
* ```tsx
|
|
3725
|
+
* <DocxEditor
|
|
3726
|
+
* document={bytes}
|
|
3727
|
+
* renderOpenFailureActions={({ failure }) => (
|
|
3728
|
+
* <DocxEditor.OpenFailure.Action asChild>
|
|
3729
|
+
* <a href={`/support?code=${failure.code}`}>Get help</a>
|
|
3730
|
+
* </DocxEditor.OpenFailure.Action>
|
|
3731
|
+
* )}
|
|
3732
|
+
* />
|
|
3733
|
+
* ```
|
|
3734
|
+
*/
|
|
3735
|
+
readonly renderOpenFailureActions?: (context: DocxEditorOpenFailureContext) => DocxEditorChildren;
|
|
3061
3736
|
/**
|
|
3062
3737
|
* Your own loading indicator, in place of the packaged spinner. It shows centered on a
|
|
3063
3738
|
* blank page before the document arrives, then on the document's first page while a large
|
|
@@ -3187,6 +3862,15 @@ interface DocxEditorProps {
|
|
|
3187
3862
|
* `navigation={{ findShortcut: false }}` leaves the shortcut to the browser.
|
|
3188
3863
|
*/
|
|
3189
3864
|
navigation?: boolean | DocxEditorNavigationProps;
|
|
3865
|
+
/**
|
|
3866
|
+
* The dialog that explains a file the editor refused to open, on by default. A refused
|
|
3867
|
+
* open leaves the pages blank, so without it the reader sees nothing.
|
|
3868
|
+
*
|
|
3869
|
+
* An object is `DocxEditorOpenFailureProps`, passed straight through: change the title or
|
|
3870
|
+
* message, hide the error code, or add your own support action with `actions`. `false`
|
|
3871
|
+
* removes the dialog, for a host that reports the failure itself through `useOpenFailure`.
|
|
3872
|
+
*/
|
|
3873
|
+
openFailure?: boolean | DocxEditorOpenFailureProps;
|
|
3190
3874
|
/**
|
|
3191
3875
|
* Horizontal and vertical rulers, on by default with the packaged chrome.
|
|
3192
3876
|
*
|
|
@@ -3239,6 +3923,20 @@ interface DocxEditorProps {
|
|
|
3239
3923
|
* with a collaboration module.
|
|
3240
3924
|
*/
|
|
3241
3925
|
fieldResults?: FieldResultsMode;
|
|
3926
|
+
/**
|
|
3927
|
+
* Opt-in relaxation of content-control locks. With `allowFormattingInLockedContent: true`,
|
|
3928
|
+
* readers can format `contentLocked` and `sdtContentLocked` controls while their text stays
|
|
3929
|
+
* protected. Read once, when the editor is created: a later change in value is ignored,
|
|
3930
|
+
* with a development warning.
|
|
3931
|
+
*/
|
|
3932
|
+
contentLockPolicy?: ContentLockPolicy;
|
|
3933
|
+
/**
|
|
3934
|
+
* How the caret moves through an inline content control whose content is locked.
|
|
3935
|
+
* `'characters'` (the default) walks through its characters, as Word does. `'atomic'` makes
|
|
3936
|
+
* the control one caret unit. Read once, when the editor is created: a later change is
|
|
3937
|
+
* ignored, with a development warning.
|
|
3938
|
+
*/
|
|
3939
|
+
lockedControlNavigation?: LockedControlNavigation;
|
|
3242
3940
|
/**
|
|
3243
3941
|
* BCP-47 locale for regional date input and engine-generated labels. Defaults to en-US.
|
|
3244
3942
|
* Changes apply to subsequent edits without a remount; stored date formats are preserved.
|
|
@@ -3307,6 +4005,8 @@ interface DocxEditorNamespace extends ForwardRefExoticComponent<DocxEditorProps
|
|
|
3307
4005
|
readonly Root: typeof DocxEditorRoot;
|
|
3308
4006
|
readonly Viewport: typeof DocxEditorViewport;
|
|
3309
4007
|
readonly Content: typeof DocxEditorContent;
|
|
4008
|
+
/** The editor panel in a pop-out window while `open`; see the pop-out guide. */
|
|
4009
|
+
readonly Window: typeof DocxEditorWindow;
|
|
3310
4010
|
readonly Toolbar: typeof DocxEditorToolbar;
|
|
3311
4011
|
/**
|
|
3312
4012
|
* The menu bar — File · Format · Insert · Help — with its parts as statics (`.File`,
|
|
@@ -3319,6 +4019,7 @@ interface DocxEditorNamespace extends ForwardRefExoticComponent<DocxEditorProps
|
|
|
3319
4019
|
readonly ColorByChangeType: typeof DocxEditorColorByChangeType;
|
|
3320
4020
|
readonly RevisionMarkupDialog: typeof DocxEditorRevisionMarkupDialog;
|
|
3321
4021
|
readonly RevisionMarkup: typeof DocxEditorRevisionMarkup;
|
|
4022
|
+
readonly UnsupportedElement: typeof DocxEditorUnsupportedElement;
|
|
3322
4023
|
readonly AuthorStyle: typeof DocxEditorAuthorStyle;
|
|
3323
4024
|
/** Context-fed horizontal ruler with draggable margins (props-driven export stays). */
|
|
3324
4025
|
readonly HorizontalRuler: typeof DocxEditorHorizontalRuler;
|
|
@@ -3338,6 +4039,12 @@ interface DocxEditorNamespace extends ForwardRefExoticComponent<DocxEditorProps
|
|
|
3338
4039
|
readonly PrintDialog: typeof DocxEditorPrintDialog;
|
|
3339
4040
|
/** Page Setup dialog — size, orientation, margins — applied as one undo step. */
|
|
3340
4041
|
readonly PageSetupDialog: typeof DocxEditorPageSetupDialog;
|
|
4042
|
+
/** Watermark dialog — none, picture or text — applied as one undo step. */
|
|
4043
|
+
readonly WatermarkDialog: typeof DocxEditorWatermarkDialog;
|
|
4044
|
+
/** Bookmark dialog — list, add, delete and go to bookmarks. */
|
|
4045
|
+
readonly BookmarkDialog: typeof DocxEditorBookmarkDialog;
|
|
4046
|
+
/** Split cells dialog — split the cell at the selection into columns and rows. */
|
|
4047
|
+
readonly SplitCellDialog: typeof DocxEditorSplitCellDialog;
|
|
3341
4048
|
/** The Paragraph dialog: alignment, indentation, spacing and the paragraph flags. */
|
|
3342
4049
|
readonly TextFormFieldDialog: typeof DocxEditorTextFormFieldDialog;
|
|
3343
4050
|
readonly ParagraphDialog: typeof DocxEditorParagraphDialog;
|
|
@@ -3345,6 +4052,11 @@ interface DocxEditorNamespace extends ForwardRefExoticComponent<DocxEditorProps
|
|
|
3345
4052
|
readonly PageNumber: typeof DocxEditorPageNumber;
|
|
3346
4053
|
/** Word-style notice when document fonts render in substitute faces. */
|
|
3347
4054
|
readonly FontNotice: typeof DocxEditorFontNotice;
|
|
4055
|
+
/**
|
|
4056
|
+
* The dialog that explains a file the editor refused to open. Mounted by default;
|
|
4057
|
+
* `openFailure={false}` removes it.
|
|
4058
|
+
*/
|
|
4059
|
+
readonly OpenFailure: typeof DocxEditorOpenFailure;
|
|
3348
4060
|
/** Header/footer scope chrome while editing page furniture. */
|
|
3349
4061
|
readonly HeaderFooterChrome: typeof DocxEditorHeaderFooterChrome;
|
|
3350
4062
|
readonly NotesChrome: typeof DocxEditorNotesChrome;
|
|
@@ -3397,7 +4109,6 @@ interface UseEditorStateOptions {
|
|
|
3397
4109
|
*/
|
|
3398
4110
|
declare function useEditorState<T>(selector: (snapshot: EditorSnapshot) => T, isEqual?: (a: T, b: T) => boolean, options?: UseEditorStateOptions): T;
|
|
3399
4111
|
|
|
3400
|
-
/** Coalesced deferred notifier for editor state ticks. @internal */
|
|
3401
4112
|
/** Decide the scheduling lane for one coalesced notification. @internal */
|
|
3402
4113
|
declare function notificationYieldsToTask(): boolean;
|
|
3403
4114
|
|
|
@@ -3414,6 +4125,49 @@ declare function notificationYieldsToTask(): boolean;
|
|
|
3414
4125
|
*/
|
|
3415
4126
|
declare function useScopeClassName(): '' | 'docx-editor ';
|
|
3416
4127
|
|
|
4128
|
+
/** What `useWatermark` returns. @public */
|
|
4129
|
+
interface UseWatermarkReturn {
|
|
4130
|
+
/** The document's watermark, or null when it has none. Reference-stable while unchanged. */
|
|
4131
|
+
readonly watermark: WatermarkState | null;
|
|
4132
|
+
/** Whether the engine can write a watermark right now (mounted, editable). */
|
|
4133
|
+
readonly isEnabled: boolean;
|
|
4134
|
+
/** The full current watermark, with picture bytes, through `query({ type: 'watermark' })`. */
|
|
4135
|
+
readonly read: () => Watermark | null;
|
|
4136
|
+
/** Set the watermark as one undo step. Null removes it. */
|
|
4137
|
+
readonly apply: (watermark: Watermark | null) => ExecResult;
|
|
4138
|
+
}
|
|
4139
|
+
/**
|
|
4140
|
+
* The document watermark plus the command to change it.
|
|
4141
|
+
*
|
|
4142
|
+
* @public
|
|
4143
|
+
*/
|
|
4144
|
+
declare function useWatermark(): UseWatermarkReturn;
|
|
4145
|
+
|
|
4146
|
+
/** What `useBookmarks` returns. @public */
|
|
4147
|
+
interface UseBookmarksReturn {
|
|
4148
|
+
/** Every bookmark, hidden ones included, in document order. Reference-stable while unchanged. */
|
|
4149
|
+
readonly bookmarks: readonly BookmarkSummary[];
|
|
4150
|
+
/** Whether the document accepts bookmark edits now. Go To works either way. */
|
|
4151
|
+
readonly isWritable: boolean;
|
|
4152
|
+
/** Bookmark the selection under `name`. A bookmark with the name moves. */
|
|
4153
|
+
readonly insert: (name: string) => ExecResult;
|
|
4154
|
+
/** Delete the bookmark with this name. The text stays. */
|
|
4155
|
+
readonly remove: (name: string) => ExecResult;
|
|
4156
|
+
/** Select the bookmark and scroll to it. */
|
|
4157
|
+
readonly goTo: (name: string) => ExecResult;
|
|
4158
|
+
/**
|
|
4159
|
+
* Keep the first bookmark with this name and remove its copies, which collaborators adding
|
|
4160
|
+
* one name offline can leave. The selection does not move.
|
|
4161
|
+
*/
|
|
4162
|
+
readonly keepFirst: (name: string) => ExecResult;
|
|
4163
|
+
}
|
|
4164
|
+
/**
|
|
4165
|
+
* The document's bookmarks plus the commands that change them.
|
|
4166
|
+
*
|
|
4167
|
+
* @public
|
|
4168
|
+
*/
|
|
4169
|
+
declare function useBookmarks(): UseBookmarksReturn;
|
|
4170
|
+
|
|
3417
4171
|
/** Full reservation: the 300px card column plus its 16px gutter off the page edge. */
|
|
3418
4172
|
declare const REVIEW_PANE_GUTTER = 316;
|
|
3419
4173
|
/** The marker strip: anchors and the add-comment button, no cards. */
|
|
@@ -3487,13 +4241,40 @@ declare function Slot({ children, ...slotProps }: SlotProps): ReactElement<unkno
|
|
|
3487
4241
|
|
|
3488
4242
|
interface LocaleProviderProps {
|
|
3489
4243
|
i18n?: Translations;
|
|
4244
|
+
/**
|
|
4245
|
+
* The writing direction of the editor chrome. Defaults to the catalog's `_dir`, then to a
|
|
4246
|
+
* right-to-left `_lang`, then to the direction of an outer provider. With `'rtl'`, the
|
|
4247
|
+
* toolbar, menu bar, dialogs, context menu, panes, and review column mirror without a
|
|
4248
|
+
* wrapper element. `'ltr'` keeps a left-to-right chrome on a right-to-left host page.
|
|
4249
|
+
* Without any of these, as with the shipped left-to-right catalogs, the chrome inherits
|
|
4250
|
+
* the host page direction.
|
|
4251
|
+
*/
|
|
4252
|
+
dir?: 'ltr' | 'rtl';
|
|
3490
4253
|
children: DocxEditorChildren;
|
|
3491
4254
|
}
|
|
3492
|
-
declare function LocaleProvider({ i18n, children }: LocaleProviderProps): react.JSX.Element;
|
|
4255
|
+
declare function LocaleProvider({ i18n, dir, children }: LocaleProviderProps): react.JSX.Element;
|
|
4256
|
+
/**
|
|
4257
|
+
* The active catalogue's `t()`, the catalogue itself, its language tag (`_lang`, `en` by
|
|
4258
|
+
* default), which formats numbers the way the strings around them read, and the providers'
|
|
4259
|
+
* writing direction (`dir`). `dir` is `'ltr'` when the chrome inherits a right-to-left host
|
|
4260
|
+
* page; `useChromeDir()` returns the direction a provider decided, or `undefined` then.
|
|
4261
|
+
*/
|
|
3493
4262
|
declare function useTranslation(): {
|
|
3494
4263
|
t: TFunction;
|
|
3495
4264
|
catalogue: LocaleStrings;
|
|
4265
|
+
lang: string;
|
|
4266
|
+
dir: 'ltr' | 'rtl';
|
|
3496
4267
|
};
|
|
4268
|
+
/**
|
|
4269
|
+
* The `dir` attribute a chrome part sets on its root: the direction a provider decided
|
|
4270
|
+
* (its `dir` prop, the catalog's `_dir`, or a right-to-left `_lang`), otherwise nothing, so
|
|
4271
|
+
* the part keeps the host page direction.
|
|
4272
|
+
*
|
|
4273
|
+
* Read it in your own controls to follow the editor chrome: `undefined` means the chrome
|
|
4274
|
+
* inherits the host page direction, so set no `dir` then.
|
|
4275
|
+
* @public
|
|
4276
|
+
*/
|
|
4277
|
+
declare function useChromeDir(): 'ltr' | 'rtl' | undefined;
|
|
3497
4278
|
|
|
3498
4279
|
/**
|
|
3499
4280
|
* A chrome-part label resolver: plain string keys, optional interpolation params.
|
|
@@ -4023,7 +4804,8 @@ declare function useEditorValueCommand<K extends keyof ToolbarValueMap>(slotId:
|
|
|
4023
4804
|
/** @public */
|
|
4024
4805
|
type DocxEditorRefCallback<T> = (node: T | null) => void;
|
|
4025
4806
|
|
|
4026
|
-
|
|
4807
|
+
/** Where a scoped chrome anchor sits relative to its story: before it, after it, or on its label. */
|
|
4808
|
+
type ScopedChromeAnchorPlacement = 'before' | 'after' | 'story-label';
|
|
4027
4809
|
interface ScopedChromeAnchor {
|
|
4028
4810
|
readonly ref: DocxEditorRefCallback<HTMLDivElement>;
|
|
4029
4811
|
readonly style: CSSProperties;
|
|
@@ -4035,7 +4817,7 @@ interface ScopedChromeAnchor {
|
|
|
4035
4817
|
* portal controls into a header, footer, or note node. This hook keeps the controls as a
|
|
4036
4818
|
* sibling overlay and derives only their screen placement from the current painted host.
|
|
4037
4819
|
*/
|
|
4038
|
-
declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HTMLElement | null, placement:
|
|
4820
|
+
declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HTMLElement | null, placement: ScopedChromeAnchorPlacement): ScopedChromeAnchor;
|
|
4039
4821
|
|
|
4040
4822
|
/**
|
|
4041
4823
|
* Subscribe to an editor event (`'change'`, `'selectionChange'`, `'error'`, …) for the
|
|
@@ -4046,6 +4828,71 @@ declare function useScopedChromeAnchor(findAnchor: (viewport: HTMLElement) => HT
|
|
|
4046
4828
|
*/
|
|
4047
4829
|
declare function useEditorEvent<E extends keyof EditorEvents>(event: E, handler: EditorEvents[E]): void;
|
|
4048
4830
|
|
|
4831
|
+
/**
|
|
4832
|
+
* Open the host's own comment draft when the `review.addComment` control is pressed.
|
|
4833
|
+
*
|
|
4834
|
+
* While the component is mounted and `handler` is set, the control is enabled (subject to the
|
|
4835
|
+
* engine's other rules: the review module, the editing mode, and a selection). Without any
|
|
4836
|
+
* registration the control is disabled, because nothing could open the draft. The most recent
|
|
4837
|
+
* registration receives each request. Pass `null` to stop serving requests, for example while
|
|
4838
|
+
* your comment UI cannot open a draft.
|
|
4839
|
+
*
|
|
4840
|
+
* The handler takes no arguments. Read the selection with `editor.getSelectionPlacement()`,
|
|
4841
|
+
* and pin it with `editor.retainSelection()` while the draft is open.
|
|
4842
|
+
*
|
|
4843
|
+
* @example
|
|
4844
|
+
* ```tsx
|
|
4845
|
+
* function CommentButton() {
|
|
4846
|
+
* const [drafting, setDrafting] = useState(false);
|
|
4847
|
+
* useCommentDraftRequest(() => setDrafting(true));
|
|
4848
|
+
* const addComment = useEditorCommand('review.addComment');
|
|
4849
|
+
* return (
|
|
4850
|
+
* <>
|
|
4851
|
+
* <button
|
|
4852
|
+
* disabled={!addComment.isEnabled}
|
|
4853
|
+
* title={addComment.disabledReason ?? 'Add comment'}
|
|
4854
|
+
* onClick={() => addComment.execute()}
|
|
4855
|
+
* >
|
|
4856
|
+
* Add comment
|
|
4857
|
+
* </button>
|
|
4858
|
+
* {drafting ? <MyCommentDraft onClose={() => setDrafting(false)} /> : null}
|
|
4859
|
+
* </>
|
|
4860
|
+
* );
|
|
4861
|
+
* }
|
|
4862
|
+
* ```
|
|
4863
|
+
*
|
|
4864
|
+
* @public
|
|
4865
|
+
*/
|
|
4866
|
+
declare function useCommentDraftRequest(handler: (() => void) | null | undefined): void;
|
|
4867
|
+
|
|
4868
|
+
/** What {@link useEditorHostDocument} returns: the host document, or `null` on the server. @public */
|
|
4869
|
+
type UseEditorHostDocumentReturn = Document | null;
|
|
4870
|
+
/**
|
|
4871
|
+
* The document the editor's pages are mounted in: a pop-out window's or an iframe's when the
|
|
4872
|
+
* host attached the editor there, otherwise the page's own. `null` during server rendering.
|
|
4873
|
+
*
|
|
4874
|
+
* Custom chrome that adds document listeners, reads focus, or injects a `<style>` uses this
|
|
4875
|
+
* instead of the global `document`, which belongs to the window the script runs in. The value
|
|
4876
|
+
* changes when the editor moves to another window, so effects keyed on it re-bind.
|
|
4877
|
+
* Its `defaultView` is the editor's window, for timers, viewport size and the clipboard.
|
|
4878
|
+
*
|
|
4879
|
+
* @example
|
|
4880
|
+
* ```tsx
|
|
4881
|
+
* function ShortcutListener() {
|
|
4882
|
+
* const hostDocument = useEditorHostDocument();
|
|
4883
|
+
* useEffect(() => {
|
|
4884
|
+
* if (!hostDocument) return;
|
|
4885
|
+
* hostDocument.addEventListener('keydown', onShortcut);
|
|
4886
|
+
* return () => hostDocument.removeEventListener('keydown', onShortcut);
|
|
4887
|
+
* }, [hostDocument]);
|
|
4888
|
+
* return null;
|
|
4889
|
+
* }
|
|
4890
|
+
* ```
|
|
4891
|
+
*
|
|
4892
|
+
* @public
|
|
4893
|
+
*/
|
|
4894
|
+
declare function useEditorHostDocument(): UseEditorHostDocumentReturn;
|
|
4895
|
+
|
|
4049
4896
|
/**
|
|
4050
4897
|
* Highlight text ranges as the named set while the component is mounted, and keep them
|
|
4051
4898
|
* current as the document changes. Returns what the last application resolved.
|
|
@@ -4061,6 +4908,8 @@ declare function useEditorEvent<E extends keyof EditorEvents>(event: E, handler:
|
|
|
4061
4908
|
* );
|
|
4062
4909
|
* useHighlights('glossary', findTerms, { className: 'glossary-term' });
|
|
4063
4910
|
* ```
|
|
4911
|
+
*
|
|
4912
|
+
* @see {@link https://www.docx-editor.dev/docs/2.x/recipes/highlight-ranges | Highlight ranges}
|
|
4064
4913
|
* @public
|
|
4065
4914
|
*/
|
|
4066
4915
|
declare function useHighlights(name: string, source: HighlightSource, options?: HighlightOptions): HighlightResult;
|
|
@@ -4661,7 +5510,8 @@ declare function Toolbar(explicitProps: ToolbarProps): react__default.JSX.Elemen
|
|
|
4661
5510
|
*/
|
|
4662
5511
|
type RulerPageSetup = NonNullable<ReturnType<Editor['getPageSetup']>>;
|
|
4663
5512
|
/**
|
|
4664
|
-
* A tab stop the ruler paints. `position` is twips from the
|
|
5513
|
+
* A tab stop the ruler paints. `position` is twips from the paragraph's leading margin
|
|
5514
|
+
* (the right one for a right-to-left paragraph) —
|
|
4665
5515
|
* the same value the `removeTabMark` command takes as `positionTwips`.
|
|
4666
5516
|
*/
|
|
4667
5517
|
interface RulerTabStop {
|
|
@@ -4924,5 +5774,5 @@ interface UseHistoryGroupReturn {
|
|
|
4924
5774
|
/** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
|
|
4925
5775
|
declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
|
|
4926
5776
|
|
|
4927
|
-
export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorVerticalRuler, DocxEditorViewport, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_MIN_PAGE_ROOM, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneOverlays, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, useProvidedDocxEditor as provideDocxEditor, reviewGutter, useChromeTranslate, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useZoom };
|
|
4928
|
-
export type { ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocxEditorAuthorStyleProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorViewportProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontsInput, HeaderFooterState, HorizontalRulerProps$1 as HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemBaseProps, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuBaseProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, SlotProps, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps$1 as ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseFontFamilyResult, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseTextFormFieldDialogReturn, UseZoomResult, VerticalRulerProps };
|
|
5777
|
+
export { CONTENT_CONTROL_SLOTS, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuMergeCells, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuSelectAll, ContextMenuSplitCell, DEFAULT_WATERMARK_PRESETS, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorBookmarkDialog, DocxEditorColorByChangeType, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImageInsertErrorDialog, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorOpenFailure, DocxEditorOpenFailureAction, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorSplitCellDialog, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorUnsupportedElement, DocxEditorVerticalRuler, DocxEditorViewport, DocxEditorWatermarkDialog, DocxEditorWindow, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_MIN_PAGE_ROOM, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationGoTo, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneOverlays, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, useProvidedDocxEditor as provideDocxEditor, reviewGutter, useBookmarkDialog, useBookmarks, useChromeDir, useChromeTranslate, useCommentDraftRequest, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorCommand, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useGoToBookmark, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, useOpenFailure, usePageSetup, usePageSetupDialog, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useSplitCellDialog, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useWatermark, useWatermarkDialog, useZoom };
|
|
5778
|
+
export type { BookmarkDialogFields, ChromeTranslate, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocumentStyleSummary, DocxEditorAuthorStyleProps, DocxEditorBookmarkDialogProps, DocxEditorChildren, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImageInsertErrorDialogProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorOpenFailureActionProps, DocxEditorOpenFailureComponent, DocxEditorOpenFailureContext, DocxEditorOpenFailureMessage, DocxEditorOpenFailureProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRefCallback, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorSplitCellDialogProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorUnsupportedElementProps, DocxEditorViewportProps, DocxEditorWatermarkDialogProps, DocxEditorWindowProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontOption, FontsInput, FormattingAction, GoToBookmarkProblem, HeaderFooterState, HorizontalRulerProps$1 as HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, ListState, ListType, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemBaseProps, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuBaseProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphAlignment, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, ScopedChromeAnchorPlacement, SelectionFormatting, SlotProps, SplitCellDialogFields, TableAction, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps$1 as ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseBookmarkDialogReturn, UseBookmarksReturn, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseEditorHostDocumentReturn, UseFontFamilyResult, UseGoToBookmarkOptions, UseGoToBookmarkReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseSplitCellDialogReturn, UseTextFormFieldDialogReturn, UseWatermarkDialogReturn, UseWatermarkReturn, UseZoomResult, VerticalRulerProps, WatermarkDialogFieldName, WatermarkDialogFields, WatermarkDialogKind, WatermarkDialogLayout };
|