@arbidocs/blocks 0.4.100 → 0.4.102
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/agents/index.cjs +207 -207
- package/dist/agents/index.js +2 -2
- package/dist/{chunk-NJX774HB.js → chunk-5NQIBJPP.js} +3 -3
- package/dist/{chunk-NJX774HB.js.map → chunk-5NQIBJPP.js.map} +1 -1
- package/dist/chunk-6MG62I5B.cjs +272 -0
- package/dist/chunk-6MG62I5B.cjs.map +1 -0
- package/dist/{chunk-NW3LFDZL.cjs → chunk-DDYXFALG.cjs} +3 -3
- package/dist/{chunk-NW3LFDZL.cjs.map → chunk-DDYXFALG.cjs.map} +1 -1
- package/dist/chunk-EQB3WELX.js +269 -0
- package/dist/chunk-EQB3WELX.js.map +1 -0
- package/dist/{chunk-B7P73VHX.cjs → chunk-FAGQTB3D.cjs} +30 -214
- package/dist/chunk-FAGQTB3D.cjs.map +1 -0
- package/dist/{chunk-6HZNFOHW.js → chunk-G5JH2YMQ.js} +3 -3
- package/dist/{chunk-6HZNFOHW.js.map → chunk-G5JH2YMQ.js.map} +1 -1
- package/dist/{chunk-72PQ42YI.js → chunk-MYALCKDR.js} +34 -217
- package/dist/chunk-MYALCKDR.js.map +1 -0
- package/dist/{chunk-O24WPHLD.cjs → chunk-Y5XW57U4.cjs} +5 -5
- package/dist/{chunk-O24WPHLD.cjs.map → chunk-Y5XW57U4.cjs.map} +1 -1
- package/dist/{chunk-E2QWWLK5.js → chunk-YGREW5TZ.js} +3 -3
- package/dist/{chunk-E2QWWLK5.js.map → chunk-YGREW5TZ.js.map} +1 -1
- package/dist/{chunk-IE55TWIG.cjs → chunk-ZT2EBBSC.cjs} +5 -5
- package/dist/{chunk-IE55TWIG.cjs.map → chunk-ZT2EBBSC.cjs.map} +1 -1
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +3 -3
- package/dist/connect/index.js +2 -2
- package/dist/document-tools/AdoptSignatureDialog.d.ts +25 -0
- package/dist/document-tools/DocumentToolButtons.d.ts +2 -0
- package/dist/document-tools/SignatureRequestBanner.d.ts +18 -0
- package/dist/document-tools/index.cjs +175 -0
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.ts +3 -1
- package/dist/document-tools/index.js +168 -3
- package/dist/document-tools/index.js.map +1 -1
- package/dist/document-tools/viewer/GuidedSigningViewer.d.ts +26 -0
- package/dist/document-tools/viewer/SignatureFieldsOverlay.d.ts +41 -0
- package/dist/document-tools/viewer/SignatureRequestEditor.d.ts +26 -0
- package/dist/document-tools/viewer/index.cjs +983 -0
- package/dist/document-tools/viewer/index.cjs.map +1 -1
- package/dist/document-tools/viewer/index.d.ts +3 -0
- package/dist/document-tools/viewer/index.js +983 -5
- package/dist/document-tools/viewer/index.js.map +1 -1
- package/dist/docx/NativeDocxEditor.d.ts +1 -1
- package/dist/docx/definitions/DefinedTerms.d.ts +1 -12
- package/dist/docx/definitions/commands.d.ts +3 -27
- package/dist/docx/index.cjs +35 -39
- package/dist/docx/index.d.ts +1 -1
- package/dist/docx/index.js +3 -3
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +253 -253
- package/dist/index.js +3 -3
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/workflow-canvas/index.cjs +9 -9
- package/dist/workflow-canvas/index.js +2 -2
- package/node_modules/@arbidocs/coedit/LICENSE +21 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.cjs +751 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.cjs.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.d.cts +192 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.d.ts +192 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.js +716 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.js.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +1759 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.cts +39 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.ts +39 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +1736 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/index.cjs +1692 -0
- package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/index.d.cts +16 -0
- package/node_modules/@arbidocs/coedit/dist/index.d.ts +16 -0
- package/node_modules/@arbidocs/coedit/dist/index.js +1664 -0
- package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs +1852 -0
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +43 -0
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +43 -0
- package/node_modules/@arbidocs/coedit/dist/server.js +1822 -0
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/session-Cf9iu1Vt.d.cts +82 -0
- package/node_modules/@arbidocs/coedit/dist/session-Cf9iu1Vt.d.ts +82 -0
- package/node_modules/@arbidocs/coedit/dist/template.cjs +1627 -0
- package/node_modules/@arbidocs/coedit/dist/template.cjs.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/template.d.cts +125 -0
- package/node_modules/@arbidocs/coedit/dist/template.d.ts +125 -0
- package/node_modules/@arbidocs/coedit/dist/template.js +1612 -0
- package/node_modules/@arbidocs/coedit/dist/template.js.map +1 -0
- package/node_modules/@arbidocs/coedit/dist/versions-DXiFQMA6.d.cts +8 -0
- package/node_modules/@arbidocs/coedit/dist/versions-DXiFQMA6.d.ts +8 -0
- package/node_modules/@arbidocs/coedit/package.json +68 -0
- package/node_modules/@docx-editor.dev/core/LICENSE +201 -0
- package/node_modules/@docx-editor.dev/core/README.md +125 -0
- package/node_modules/@docx-editor.dev/core/THIRD_PARTY_NOTICES.md +56 -0
- package/node_modules/@docx-editor.dev/core/dist/automation.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/automation.d.ts +162 -0
- package/node_modules/@docx-editor.dev/core/dist/automation.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/binding.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/binding.d.ts +164 -0
- package/node_modules/@docx-editor.dev/core/dist/binding.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2GO5T2JU.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-2RC2EPND.js +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-4GBTELJV.cjs +28 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-4R3TEXMN.js +18 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-5CSUYANV.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-6APGXLBB.cjs +3 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-6AWEKBLB.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-6EYYL7FL.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-E7BQA6UP.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-EO4C5QJW.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ETTO6GK3.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-FIJZIQXA.cjs +18 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-FRXAOVTB.js +28 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-J6BVWIDB.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-JGNVNT2A.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-K5U2PLDP.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-KKIJG3C6.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-LWDSDCMO.js +27 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-NBCVVZOM.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-O2AL2HSJ.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-O5INAWZQ.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-QMLCVPCD.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-RCHS4ZEH.cjs +27 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-RIYSCEFQ.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-S6J4O5XP.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-SRPILEWV.cjs +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-TSLBZ26X.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-UKVVUHZL.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-VDNNLG6X.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-VHAVHCQY.js +7 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-VX43VBAX.cjs +7 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-Z6WBFXJU.js +5 -0
- package/node_modules/@docx-editor.dev/core/dist/chunk-ZUHOMK52.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.d.ts +270 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration/replication.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration.d.ts +269 -0
- package/node_modules/@docx-editor.dev/core/dist/collaboration.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/document.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/document.d.ts +290 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/document.js +0 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/editor.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/editor.d.ts +22 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/editor.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.d.ts +103 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/interaction.js +0 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/modules.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/modules.d.ts +143 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/modules.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/types.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/types.d.ts +11 -0
- package/node_modules/@docx-editor.dev/core/dist/contracts/types.js +0 -0
- package/node_modules/@docx-editor.dev/core/dist/custom-node-writes-cvL5rhcD.d.ts +323 -0
- package/node_modules/@docx-editor.dev/core/dist/dist-PKZR6RSH.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/document-protection-BAGVGqaP.d.ts +20 -0
- package/node_modules/@docx-editor.dev/core/dist/editor-Ci7IZGmG.d.ts +2448 -0
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-OHPwVQ5l.d.ts +84 -0
- package/node_modules/@docx-editor.dev/core/dist/editor.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/editor.css +15 -0
- package/node_modules/@docx-editor.dev/core/dist/editor.d.ts +1394 -0
- package/node_modules/@docx-editor.dev/core/dist/editor.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/export.cjs +2 -0
- package/node_modules/@docx-editor.dev/core/dist/export.d.ts +391 -0
- package/node_modules/@docx-editor.dev/core/dist/export.js +2 -0
- package/node_modules/@docx-editor.dev/core/dist/failure-NS2lsya4.d.ts +115 -0
- package/node_modules/@docx-editor.dev/core/dist/font-resolver-BVQB14qT.d.ts +256 -0
- package/node_modules/@docx-editor.dev/core/dist/harfbuzz.wasm +0 -0
- package/node_modules/@docx-editor.dev/core/dist/headless-document-view-qH331moE.d.ts +143 -0
- package/node_modules/@docx-editor.dev/core/dist/image-resources-BN-hUgCn.d.ts +211 -0
- package/node_modules/@docx-editor.dev/core/dist/index-Bsg7oIKP.d.ts +3869 -0
- package/node_modules/@docx-editor.dev/core/dist/index.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/index.d.ts +53 -0
- package/node_modules/@docx-editor.dev/core/dist/index.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/layout-shaping-BEyuiQOk.d.ts +246 -0
- package/node_modules/@docx-editor.dev/core/dist/layout.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/layout.d.ts +3151 -0
- package/node_modules/@docx-editor.dev/core/dist/layout.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/node-module-shim-TTKTT66I.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/note-properties-4Y9o6Gyk.d.ts +68 -0
- package/node_modules/@docx-editor.dev/core/dist/omml-equation-CuzBL5DD.d.ts +85 -0
- package/node_modules/@docx-editor.dev/core/dist/output.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/output.d.ts +97 -0
- package/node_modules/@docx-editor.dev/core/dist/output.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/protocol-Bqk4Izjc.d.ts +1651 -0
- package/node_modules/@docx-editor.dev/core/dist/review-pane-D9jm8DcY.d.ts +128 -0
- package/node_modules/@docx-editor.dev/core/dist/review-paragraph-order-DT-n6ouC.d.ts +85 -0
- package/node_modules/@docx-editor.dev/core/dist/revision-projection-DZ4kKVev.d.ts +242 -0
- package/node_modules/@docx-editor.dev/core/dist/semantic-cell-selection-D9D1KSXq.d.ts +464 -0
- package/node_modules/@docx-editor.dev/core/dist/semantic-interaction-CIC-PooQ.d.ts +135 -0
- package/node_modules/@docx-editor.dev/core/dist/semantic-paint-BME37OMv.d.ts +326 -0
- package/node_modules/@docx-editor.dev/core/dist/semantic-record-queries-CBlZqZNa.d.ts +177 -0
- package/node_modules/@docx-editor.dev/core/dist/semantic-records-4B3WwFAi.d.ts +3532 -0
- package/node_modules/@docx-editor.dev/core/dist/store.cjs +1 -0
- package/node_modules/@docx-editor.dev/core/dist/store.d.ts +2706 -0
- package/node_modules/@docx-editor.dev/core/dist/store.js +1 -0
- package/node_modules/@docx-editor.dev/core/dist/tree-package-fragment-BeeKxDw8.d.ts +1201 -0
- package/node_modules/@docx-editor.dev/core/dist/tree-session-contract-CVbmlMlq.d.ts +664 -0
- package/node_modules/@docx-editor.dev/core/dist/types-barrel-D3xCgQX6.d.ts +4269 -0
- package/node_modules/@docx-editor.dev/core/licenses/HarfBuzz-COPYING.txt +42 -0
- package/node_modules/@docx-editor.dev/core/package.json +140 -0
- package/node_modules/@docx-editor.dev/react/LICENSE +201 -0
- package/node_modules/@docx-editor.dev/react/README.md +141 -0
- package/node_modules/@docx-editor.dev/react/THIRD_PARTY_NOTICES.md +18 -0
- package/node_modules/@docx-editor.dev/react/dist/index.d.mts +4928 -0
- package/node_modules/@docx-editor.dev/react/dist/index.d.ts +4928 -0
- package/node_modules/@docx-editor.dev/react/dist/index.js +4 -0
- package/node_modules/@docx-editor.dev/react/dist/index.mjs +4 -0
- package/node_modules/@docx-editor.dev/react/package.json +74 -0
- package/node_modules/@docx-editor.dev/react/src/styles/editor.css +6 -0
- package/node_modules/@docx-editor.dev/react/src/styles/zIndex.ts +28 -0
- package/package.json +26 -15
- package/src/docx/README.md +2 -3
- package/dist/chunk-72PQ42YI.js.map +0 -1
- package/dist/chunk-B7P73VHX.cjs.map +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When the review pane opens by itself.
|
|
3
|
+
*
|
|
4
|
+
* - `'auto'`: the pane opens when a document with review items loads, and when a tracked
|
|
5
|
+
* change is made while it is closed, in both cases when the pane has items to list. With
|
|
6
|
+
* `revisionsIn: 'balloons'` the pane lists no tracked change and no reply to one, so
|
|
7
|
+
* tracked changes and their replies alone do not open it.
|
|
8
|
+
* - `'manual'`: the pane stays closed until the host or the user opens it. Use it when the
|
|
9
|
+
* host shows review items its own way, such as in balloons or margin markers.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
type ReviewPaneOpening = 'auto' | 'manual';
|
|
14
|
+
/**
|
|
15
|
+
* What the open review pane does when its full card column does not fit beside the page at
|
|
16
|
+
* the page's zoom.
|
|
17
|
+
*
|
|
18
|
+
* - `'float'`: the pane shrinks to a strip of markers, and the open card floats over the
|
|
19
|
+
* page.
|
|
20
|
+
* - `'shrinkPage'`: under a fit zoom mode, the page may shrink down to the mode's
|
|
21
|
+
* `minZoom` (or 10%) so that the full column fits. The pane changes to the marker strip
|
|
22
|
+
* only when the column does not fit at that floor either. A fixed zoom behaves as
|
|
23
|
+
* `'float'`.
|
|
24
|
+
* - `'scroll'`: the page keeps the size it has beside the closed pane's marker strip, and
|
|
25
|
+
* the full column stands beside it. The document and the column scroll together: the
|
|
26
|
+
* viewport scrolls sideways to reach the cards.
|
|
27
|
+
*
|
|
28
|
+
* The setting applies to the review pane only. The navigation pane stays docked at its side
|
|
29
|
+
* in every mode: it never scrolls with the document, and it takes its room beside the page
|
|
30
|
+
* exactly as it does with no review pane.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
type ReviewPaneOverflow = 'float' | 'shrinkPage' | 'scroll';
|
|
35
|
+
/**
|
|
36
|
+
* Where tracked changes open.
|
|
37
|
+
*
|
|
38
|
+
* - `'pane'`: the review pane lists tracked changes as cards beside the comments.
|
|
39
|
+
* - `'balloons'`: the pane lists comments only, except comments that reply to a tracked
|
|
40
|
+
* change: the change's balloon shows those. A tracked change opens in a balloon at its
|
|
41
|
+
* text when the reader clicks it, or when Next Change, Previous Change, or
|
|
42
|
+
* `setActiveReviewItem(key, { announce: true })` reaches it.
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
type RevisionDisplay = 'pane' | 'balloons';
|
|
47
|
+
/**
|
|
48
|
+
* How a collapsed comment marker looks.
|
|
49
|
+
*
|
|
50
|
+
* - `'initials'`: a badge with the thread author's initials in the author's color, a reply
|
|
51
|
+
* count, and a check mark when the thread is resolved.
|
|
52
|
+
* - `'icon'`: the comment icon.
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
type CommentMarkerStyle = 'initials' | 'icon';
|
|
57
|
+
/**
|
|
58
|
+
* Review pane settings to change. Every field is optional, and an omitted field keeps its
|
|
59
|
+
* current value.
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
interface ReviewPaneOptions {
|
|
64
|
+
/** Default `'auto'`. */
|
|
65
|
+
readonly opening?: ReviewPaneOpening;
|
|
66
|
+
/** Default `'float'`. */
|
|
67
|
+
readonly overflow?: ReviewPaneOverflow;
|
|
68
|
+
/** Default `'pane'`. */
|
|
69
|
+
readonly revisionsIn?: RevisionDisplay;
|
|
70
|
+
/** Default `'icon'`. */
|
|
71
|
+
readonly commentMarkers?: CommentMarkerStyle;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The review pane settings in force, with every field resolved.
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
interface ResolvedReviewPane {
|
|
79
|
+
/** When the pane opens by itself. */
|
|
80
|
+
readonly opening: ReviewPaneOpening;
|
|
81
|
+
/** What the open pane does when its card column does not fit beside the page. */
|
|
82
|
+
readonly overflow: ReviewPaneOverflow;
|
|
83
|
+
/** Where tracked changes open. */
|
|
84
|
+
readonly revisionsIn: RevisionDisplay;
|
|
85
|
+
/** How a collapsed comment marker looks. */
|
|
86
|
+
readonly commentMarkers: CommentMarkerStyle;
|
|
87
|
+
}
|
|
88
|
+
/** The settings an editor starts with when nothing sets them. @public */
|
|
89
|
+
declare const DEFAULT_REVIEW_PANE: ResolvedReviewPane;
|
|
90
|
+
/**
|
|
91
|
+
* Merge `options` over `base`. Throws a `TypeError` for an unknown field or value, so a
|
|
92
|
+
* misspelled setting fails loudly instead of being ignored. Returns `base` itself when
|
|
93
|
+
* nothing changes, so the snapshot keeps its reference.
|
|
94
|
+
*
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
declare function resolveReviewPane(options: ReviewPaneOptions | undefined, base?: ResolvedReviewPane): ResolvedReviewPane;
|
|
98
|
+
/**
|
|
99
|
+
* The fields of a review item that decide whether the review pane lists it. A
|
|
100
|
+
* `ReviewItem` and a review item placement both have them.
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
interface ReviewPaneItemFields {
|
|
105
|
+
/** The item kind, as `ReviewItem.kind` gives it. */
|
|
106
|
+
readonly kind: 'revision' | 'comment' | 'custom';
|
|
107
|
+
/** For a comment, the tracked change it replies to. */
|
|
108
|
+
readonly parentRevisionId?: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Whether the review pane lists a card for `item` under `revisionsIn`.
|
|
112
|
+
*
|
|
113
|
+
* With `'balloons'`, a balloon at the text shows every tracked change and every comment
|
|
114
|
+
* that replies to a tracked change, so the pane lists neither. Give the item as an
|
|
115
|
+
* unfiltered `getReviewItems()` read returns it: a query that excludes revision kinds
|
|
116
|
+
* removes `parentRevisionId` from replies to the changes it drops.
|
|
117
|
+
*
|
|
118
|
+
* The engine applies this rule to every review item when it decides whether the pane opens
|
|
119
|
+
* by itself or closes after a settings change. A review pane must apply the same rule before
|
|
120
|
+
* its own filters, such as a hidden kind or a host filter. Those filters can hide every card,
|
|
121
|
+
* and then the pane that the engine opens is empty.
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
declare function reviewPaneListsItem(revisionsIn: RevisionDisplay, item: ReviewPaneItemFields): boolean;
|
|
126
|
+
|
|
127
|
+
export { DEFAULT_REVIEW_PANE as D, reviewPaneListsItem as f, resolveReviewPane as r };
|
|
128
|
+
export type { CommentMarkerStyle as C, ReviewPaneOptions as R, ResolvedReviewPane as a, ReviewPaneOverflow as b, ReviewPaneItemFields as c, ReviewPaneOpening as d, RevisionDisplay as e };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { N as OoxmlNode, Z as OoxmlElement, _ as OoxmlContentControlNode, V as OoxmlGenericElementNode, $ as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './types-barrel-D3xCgQX6.js';
|
|
2
|
+
|
|
3
|
+
/** Nested content-control wrappers deeper than this stop flattening; content stays preserved. */
|
|
4
|
+
declare const MAX_CONTENT_CONTROL_NESTING = 32;
|
|
5
|
+
type ContentControlLike = OoxmlContentControlNode | OoxmlGenericElementNode;
|
|
6
|
+
type ContentControlContentLike = OoxmlContentControlContentNode | OoxmlGenericElementNode;
|
|
7
|
+
/**
|
|
8
|
+
* Block or inline structured-document-tag wrapper — typed or generic during migration.
|
|
9
|
+
*
|
|
10
|
+
* Generic fallback requires the WordprocessingML namespace so foreign-namespace
|
|
11
|
+
* `<x:sdt>` elements stay opaque wrappers and are never treated as Word controls.
|
|
12
|
+
*/
|
|
13
|
+
declare function isContentControl(node: OoxmlNode): node is ContentControlLike;
|
|
14
|
+
/**
|
|
15
|
+
* True when `node` is the control's content container (`w:sdtContent`).
|
|
16
|
+
*
|
|
17
|
+
* Generic `sdtContent` requires the WML namespace — same foreign-namespace rule as
|
|
18
|
+
* {@link isContentControl}.
|
|
19
|
+
*/
|
|
20
|
+
declare function isContentControlContent(node: OoxmlNode): node is ContentControlContentLike;
|
|
21
|
+
/** Children of the first `w:sdtContent` under a control, or null when absent or not a control. */
|
|
22
|
+
declare function contentControlContentOf(node: OoxmlNode): readonly OoxmlNode[] | null;
|
|
23
|
+
/**
|
|
24
|
+
* Children of every `w:sdtContent` under a control, in document order.
|
|
25
|
+
*
|
|
26
|
+
* Does not recurse into nested controls. Block callers use
|
|
27
|
+
* {@link MAX_CONTENT_CONTROL_NESTING}; paragraph callers use
|
|
28
|
+
* {@link MAX_INLINE_CONTAINER_DEPTH} across all transparent containers.
|
|
29
|
+
*/
|
|
30
|
+
declare function contentControlContentChildren(control: OoxmlNode): readonly OoxmlNode[];
|
|
31
|
+
/**
|
|
32
|
+
* Collect paragraph and table blocks from a sibling list, flattening through transparent block
|
|
33
|
+
* wrappers up to {@link MAX_CONTENT_CONTROL_NESTING}.
|
|
34
|
+
*
|
|
35
|
+
* `accept` filters which typed blocks are kept (e.g. skip revision-removed paragraphs). When
|
|
36
|
+
* nesting exceeds the bound the wrapper is skipped entirely — same fail-closed rule as the
|
|
37
|
+
* historical `storyBlocks` walk.
|
|
38
|
+
*/
|
|
39
|
+
declare function collectFlowBlocks(children: readonly OoxmlNode[], depth?: number, accept?: (block: OoxmlElement) => boolean): OoxmlElement[];
|
|
40
|
+
/**
|
|
41
|
+
* Story blocks in document order, flattening transparent block wrappers — same shape as layout's
|
|
42
|
+
* `storyBlocks` and store `bodyBlocks`.
|
|
43
|
+
*/
|
|
44
|
+
declare function walkStoryBlocks(children: readonly OoxmlNode[], depth: number, visit: (block: OoxmlElement) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* Every story paragraph in reading order — body, table cells, and flattened block controls.
|
|
47
|
+
*/
|
|
48
|
+
declare function walkAllStoryParagraphs(children: readonly OoxmlNode[], sdtDepth: number, visit: (paragraph: OoxmlElement) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* Paragraph-level inline sequence — runs and their bounded containers in document order.
|
|
51
|
+
*
|
|
52
|
+
* `visit` receives each direct `w:r` and any other inline node the caller treats as opaque
|
|
53
|
+
* (bookmarks, drawings, …). Hyperlinks and controls are descended transparently. Callers
|
|
54
|
+
* that address the runs inside tracked revisions can opt into descending those wrappers too.
|
|
55
|
+
*/
|
|
56
|
+
declare function walkParagraphInline(children: readonly OoxmlNode[], depth: number, visit: (child: OoxmlNode) => void, options?: {
|
|
57
|
+
readonly descendRevisions?: boolean;
|
|
58
|
+
}): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Plain text of a comment's body, as a card shows it: a non-breaking hyphen is U+2011, an
|
|
62
|
+
* optional hyphen shows nothing, and a symbol shows its glyph. A card never re-implements the
|
|
63
|
+
* run walk.
|
|
64
|
+
*/
|
|
65
|
+
declare function commentBodyText(comment: CommentRecord): string;
|
|
66
|
+
/**
|
|
67
|
+
* Author initials for an avatar, from `@w:initials` or the name, at most three characters.
|
|
68
|
+
* Characters are code points, so a surrogate pair is never split.
|
|
69
|
+
*/
|
|
70
|
+
declare function commentInitials(comment: CommentRecord): string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Paragraph node id → document position, from the tree rather than from layout.
|
|
74
|
+
*
|
|
75
|
+
* Memoized on the immutable root: a derivation pass can ask repeatedly, and the shared answer
|
|
76
|
+
* stays read-only so a caller cannot poison later readers.
|
|
77
|
+
*/
|
|
78
|
+
declare function paragraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
79
|
+
/**
|
|
80
|
+
* Like {@link paragraphOrderOfPart}, but descends into paragraphs so textbox paragraphs rank
|
|
81
|
+
* immediately after their host. Shallow order remains available for separate-story walks.
|
|
82
|
+
*/
|
|
83
|
+
declare function deepParagraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
84
|
+
|
|
85
|
+
export { MAX_CONTENT_CONTROL_NESTING as M, commentBodyText as a, commentInitials as b, collectFlowBlocks as c, contentControlContentOf as d, deepParagraphOrderOfPart as e, isContentControlContent as f, walkParagraphInline as g, walkStoryBlocks as h, isContentControl as i, contentControlContentChildren as j, paragraphOrderOfPart as p, walkAllStoryParagraphs as w };
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { N as OoxmlNode } from './types-barrel-D3xCgQX6.js';
|
|
2
|
+
|
|
3
|
+
/** Named revision colors. Identifiers are stable and never contain CSS. @public */
|
|
4
|
+
declare const REVISION_MARKUP_COLORS: readonly ['black', 'blue', 'turquoise', 'green', 'pink', 'red', 'yellow', 'white', 'darkBlue', 'teal', 'darkGreen', 'violet', 'darkRed', 'darkYellow', 'gray50', 'gray25', 'lightBlue', 'lightYellow', 'lightOrange', 'lightPurple', 'lightGreen', 'gray'];
|
|
5
|
+
/** @public */
|
|
6
|
+
type RevisionMarkupNamedColor = (typeof REVISION_MARKUP_COLORS)[number];
|
|
7
|
+
/** @public */
|
|
8
|
+
type RevisionMarkupColor = RevisionMarkupNamedColor | 'byAuthor' | 'auto';
|
|
9
|
+
/** @public */
|
|
10
|
+
type RevisionMarkupMark = 'none' | 'colorOnly' | 'bold' | 'italic' | 'underline' | 'doubleUnderline' | 'strikethrough' | 'doubleStrikethrough';
|
|
11
|
+
/** @public */
|
|
12
|
+
type RevisionDeletionMark = RevisionMarkupMark | 'hidden' | 'caret' | 'pound';
|
|
13
|
+
/** @public */
|
|
14
|
+
type RevisionChangedLinesMark = 'none' | 'leftBorder' | 'rightBorder' | 'outsideBorder';
|
|
15
|
+
/** @public */
|
|
16
|
+
interface RevisionMarkupStyle<Mark extends string = RevisionMarkupMark> {
|
|
17
|
+
readonly mark: Mark;
|
|
18
|
+
readonly color: RevisionMarkupColor;
|
|
19
|
+
}
|
|
20
|
+
/** Viewer-only text styling. Document highlighting remains unchanged. @public */
|
|
21
|
+
interface RevisionMarkupTextStyle<Mark extends string = RevisionMarkupMark> extends RevisionMarkupStyle<Mark> {
|
|
22
|
+
/** Background color behind revision text. Defaults to `none`. */
|
|
23
|
+
readonly background: RevisionMarkupNamedColor | 'byAuthor' | 'none';
|
|
24
|
+
}
|
|
25
|
+
/** Fully resolved, immutable viewer preferences. @public */
|
|
26
|
+
interface ResolvedRevisionMarkup {
|
|
27
|
+
readonly insertions: RevisionMarkupTextStyle;
|
|
28
|
+
readonly deletions: RevisionMarkupTextStyle<RevisionDeletionMark>;
|
|
29
|
+
readonly movedFrom: RevisionMarkupTextStyle<RevisionDeletionMark>;
|
|
30
|
+
readonly movedTo: RevisionMarkupTextStyle;
|
|
31
|
+
readonly formatting: RevisionMarkupTextStyle;
|
|
32
|
+
readonly changedLines: RevisionMarkupStyle<RevisionChangedLinesMark>;
|
|
33
|
+
readonly cells: {
|
|
34
|
+
readonly inserted: RevisionMarkupNamedColor | 'byAuthor' | 'none';
|
|
35
|
+
readonly deleted: RevisionMarkupNamedColor | 'byAuthor' | 'none';
|
|
36
|
+
readonly merged: RevisionMarkupNamedColor | 'byAuthor' | 'none';
|
|
37
|
+
readonly split: RevisionMarkupNamedColor | 'byAuthor' | 'none';
|
|
38
|
+
};
|
|
39
|
+
readonly trackMoves: boolean;
|
|
40
|
+
readonly trackFormatting: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** Partial viewer preferences. Omitted values keep the previous value. @public */
|
|
43
|
+
type RevisionMarkupOptions = {
|
|
44
|
+
readonly [K in keyof ResolvedRevisionMarkup]?: ResolvedRevisionMarkup[K] extends boolean ? boolean : Partial<ResolvedRevisionMarkup[K]>;
|
|
45
|
+
};
|
|
46
|
+
/** Initial viewer preferences. @public */
|
|
47
|
+
declare const DEFAULT_REVISION_MARKUP: ResolvedRevisionMarkup;
|
|
48
|
+
/** Validate and merge preferences without modifying the input. @public */
|
|
49
|
+
declare function resolveRevisionMarkup(input?: RevisionMarkupOptions, previous?: ResolvedRevisionMarkup): ResolvedRevisionMarkup;
|
|
50
|
+
/** A local settings draft owned by the editor. @public */
|
|
51
|
+
interface RevisionMarkupDialogSession {
|
|
52
|
+
/** Aborts on close, replacement, load, detach, destroy, or renderer disposal. */
|
|
53
|
+
readonly signal: AbortSignal;
|
|
54
|
+
/** Read the immutable draft. */
|
|
55
|
+
get(): ResolvedRevisionMarkup;
|
|
56
|
+
/** Merge validated options into the draft without committing preferences. */
|
|
57
|
+
set(options: RevisionMarkupOptions): void;
|
|
58
|
+
/** Restore default preferences in the draft only. */
|
|
59
|
+
reset(): void;
|
|
60
|
+
/** Observe draft changes, including effective external preference changes. */
|
|
61
|
+
subscribe(listener: () => void): () => void;
|
|
62
|
+
canApply(): boolean;
|
|
63
|
+
/** Commit the draft and close. Returns false after cancellation. */
|
|
64
|
+
apply(): boolean;
|
|
65
|
+
/** Close without committing the draft. */
|
|
66
|
+
cancel(): void;
|
|
67
|
+
}
|
|
68
|
+
/** Host rendering for the Track changes options dialog. @public */
|
|
69
|
+
interface RevisionMarkupChromeHandlers {
|
|
70
|
+
readonly onRequest?: (session: RevisionMarkupDialogSession) => void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* What a revision wrapper asserts about the content inside it.
|
|
75
|
+
*
|
|
76
|
+
* `moveFrom` / `moveTo` are deliberately distinct from `delete` / `insert`: a move is one
|
|
77
|
+
* decision with two halves, and presenting it as an unrelated deletion and insertion invites
|
|
78
|
+
* resolving one without the other, which duplicates or loses the content.
|
|
79
|
+
*/
|
|
80
|
+
type RevisionKind = 'insert' | 'delete' | 'moveFrom' | 'moveTo' | 'format';
|
|
81
|
+
/**
|
|
82
|
+
* One revision wrapper's provenance, as authored.
|
|
83
|
+
*
|
|
84
|
+
* `id` is the verbatim `@w:id` string rather than a number: `ST_DecimalNumber` restricts
|
|
85
|
+
* `xsd:integer` with no bounds, so a file may carry a value outside the safe integer range, and
|
|
86
|
+
* parsing it to a number would silently merge two distinct revisions.
|
|
87
|
+
*
|
|
88
|
+
* `date` is absent when the file omits it. `@w:date` is optional on `CT_TrackChange`, and
|
|
89
|
+
* inventing one is a silent content change.
|
|
90
|
+
*/
|
|
91
|
+
interface RevisionAttribution {
|
|
92
|
+
readonly kind: RevisionKind;
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly author: string;
|
|
95
|
+
readonly date?: string;
|
|
96
|
+
/** The wrapper's node id, so a surface can address this exact site. */
|
|
97
|
+
readonly nodeId: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Which revisions layout resolves before producing pages.
|
|
101
|
+
*
|
|
102
|
+
* - `all-markup` shows both halves of every change.
|
|
103
|
+
* - `proposed` shows what the document becomes if every change is accepted.
|
|
104
|
+
* - `original` shows what it was before any of them.
|
|
105
|
+
*
|
|
106
|
+
* The last two are specified as equal to accept-all and reject-all OUTPUT, which is what makes
|
|
107
|
+
* them testable, without either applying an op.
|
|
108
|
+
*/
|
|
109
|
+
type RevisionDisplayMode = 'all-markup' | 'proposed' | 'original';
|
|
110
|
+
/**
|
|
111
|
+
* The views the review chrome offers, in Word's terms: the three layout projections plus
|
|
112
|
+
* Simple Markup, which reads as the proposed result with a red change bar beside every line
|
|
113
|
+
* a change touched — the document as accepting everything would leave it, and where.
|
|
114
|
+
*/
|
|
115
|
+
type ReviewDisplayMode = RevisionDisplayMode | 'simple-markup';
|
|
116
|
+
/**
|
|
117
|
+
* How a document renders tracked changes when nothing says otherwise.
|
|
118
|
+
*
|
|
119
|
+
* `all-markup` matches Word's own default: a reader who opens a document with pending changes
|
|
120
|
+
* sees them, rather than a clean-looking document hiding edits nobody has accepted.
|
|
121
|
+
*/
|
|
122
|
+
declare const DEFAULT_REVISION_DISPLAY_MODE: RevisionDisplayMode;
|
|
123
|
+
/**
|
|
124
|
+
* A view-time tracked-change filter. Revisions rejected by `includes` use the filter's accepted
|
|
125
|
+
* or rejected projection, while included revisions keep the display mode's normal projection.
|
|
126
|
+
*
|
|
127
|
+
* `cacheKey` is a canonical, content-based identity for layout caches. The set itself is kept
|
|
128
|
+
* because author names are attacker-controlled strings and must never be parsed back from a
|
|
129
|
+
* delimiter-based key.
|
|
130
|
+
*/
|
|
131
|
+
interface RevisionFilter {
|
|
132
|
+
readonly revisionMarkup?: ResolvedRevisionMarkup;
|
|
133
|
+
readonly hiddenAuthors: ReadonlySet<string>;
|
|
134
|
+
readonly includes?: (revision: RevisionAttribution) => boolean;
|
|
135
|
+
readonly includesNode?: (nodeId: string, author: string) => boolean;
|
|
136
|
+
/** Accepted/original projection for a revision excluded by `includesNode`. */
|
|
137
|
+
readonly excludedNodeMode?: (nodeId: string, author: string) => 'proposed' | 'original';
|
|
138
|
+
/**
|
|
139
|
+
* In a resolved view, content the view keeps paints as ORDINARY text: no author ink, no
|
|
140
|
+
* decoration, no change bar of its own. This is Word's No Markup, Original and Simple
|
|
141
|
+
* Markup, which the review chrome asks for. Without it the accepted projection keeps the
|
|
142
|
+
* attribution on kept insertions, which is what the engine paints when no review module
|
|
143
|
+
* is registered — colour by author, deletions resolved — and what its roster reads.
|
|
144
|
+
*/
|
|
145
|
+
readonly resolvedMarkup?: 'plain';
|
|
146
|
+
readonly cacheKey: string;
|
|
147
|
+
}
|
|
148
|
+
/** @deprecated Use {@link RevisionFilter}. */
|
|
149
|
+
interface RevisionAuthorFilter extends RevisionFilter {
|
|
150
|
+
}
|
|
151
|
+
/** Build a canonical reviewer filter. An empty input returns `undefined` for the fast path. */
|
|
152
|
+
declare function revisionAuthorFilter(hiddenAuthors: Iterable<string>): RevisionAuthorFilter | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Whether content under this stack of revisions is laid out in the given mode.
|
|
155
|
+
*
|
|
156
|
+
* Containment governs, so a single enclosing wrapper the mode resolves away suppresses
|
|
157
|
+
* everything inside it regardless of what the inner wrappers say. An insertion inside a
|
|
158
|
+
* deletion does not survive the proposed result: the deletion it sits in was accepted.
|
|
159
|
+
*/
|
|
160
|
+
declare function revisionsVisible(revisions: readonly RevisionAttribution[], mode: RevisionDisplayMode, authorFilter?: RevisionAuthorFilter): boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Every revision on a paragraph's own MARK, from `w:pPr/w:rPr/w:ins|w:del|w:moveFrom|w:moveTo`.
|
|
163
|
+
*
|
|
164
|
+
* All four members of `EG_ParaRPrTrackChanges`. A moved paragraph carries `w:moveFrom` on the
|
|
165
|
+
* mark of the copy it left and `w:moveTo` on the mark of the copy it arrived at, so a move
|
|
166
|
+
* that spans whole paragraphs is recorded here and nowhere else.
|
|
167
|
+
*
|
|
168
|
+
* `EG_ParaRPrTrackChanges` records that the pilcrow itself was inserted or deleted, which is how
|
|
169
|
+
* Word writes a paragraph split or merge. It is not content — there is no text to decorate — so
|
|
170
|
+
* a surface shows it as a mark of its own beside the paragraph, the way Word draws a struck-
|
|
171
|
+
* through ¶.
|
|
172
|
+
*
|
|
173
|
+
* A LIST, because the group is `ins? del? moveFrom? moveTo?` and the first two can both be
|
|
174
|
+
* there: that pair is what Word writes when a second author proposes removing a mark the first
|
|
175
|
+
* proposed adding, and it is what this engine's own writer emits (`tree-op-tracked.ts`).
|
|
176
|
+
* Answering with the first one hid the second author's decision from the PAGE. The review pane
|
|
177
|
+
* walks the tree itself and always listed both, which is the worse shape of the two: a card
|
|
178
|
+
* offering a decision the reader could see no sign of.
|
|
179
|
+
*
|
|
180
|
+
* Ordered as the file orders them, which is the order the group declares.
|
|
181
|
+
*
|
|
182
|
+
* Property-position `w:ins`/`w:del` stay `generic` in the tree deliberately, so this reads them
|
|
183
|
+
* by name rather than by kind.
|
|
184
|
+
*/
|
|
185
|
+
declare function paragraphMarkRevisionsOf(paragraph: OoxmlNode): readonly RevisionAttribution[];
|
|
186
|
+
/**
|
|
187
|
+
* The tracked FORMAT change on a paragraph's own mark, from `w:pPr/w:rPr/w:rPrChange`.
|
|
188
|
+
*
|
|
189
|
+
* `CT_ParaRPr` ends with it (§17.13.5.32), and Word writes it when a user changes the mark's
|
|
190
|
+
* own run properties with tracking on. It reaches the fragment rather than a span because it
|
|
191
|
+
* decorates no characters, and it is not in `props`: a fragment's `props` carry the mark's
|
|
192
|
+
* `w:rPr` by NAME only, with none of its children.
|
|
193
|
+
*
|
|
194
|
+
* Note that `w:rPrChange/w:rPr` is `CT_ParaRPrOriginal`, which may carry its own revision
|
|
195
|
+
* marks. Those describe the mark as it WAS and must not be read as live ones, which is why
|
|
196
|
+
* this reads the change element's own attributes and never descends into it.
|
|
197
|
+
*/
|
|
198
|
+
declare function paragraphMarkFormatRevisionOf(paragraph: OoxmlNode): RevisionAttribution | null;
|
|
199
|
+
/**
|
|
200
|
+
* The single decision a one-field reader sees.
|
|
201
|
+
*
|
|
202
|
+
* A DELETION wins when a mark carries both, for the reason paint draws it that way: a break
|
|
203
|
+
* proposed and then unproposed ends up removed, so that is the decision a reader who can only
|
|
204
|
+
* see one must see. One function decides it, so the deprecated field, the deprecated function
|
|
205
|
+
* and the painted glyph cannot answer differently.
|
|
206
|
+
*/
|
|
207
|
+
declare function shownMarkRevision(revisions: readonly RevisionAttribution[]): RevisionAttribution | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* Does this decision, taken, remove the paragraph mark?
|
|
210
|
+
*
|
|
211
|
+
* A deletion does, and so does a `moveFrom`: the copy the paragraph moved OUT of goes away
|
|
212
|
+
* when the move is accepted. `insert` and `moveTo` are the other half of each pair, and they
|
|
213
|
+
* keep the break. Paint, the change bar and the resolved views all ask this one question, so
|
|
214
|
+
* a `moveFrom` cannot end up struck through in the margin and blue on the glyph.
|
|
215
|
+
*/
|
|
216
|
+
declare function markRevisionRemovesMark(revision: RevisionAttribution): boolean;
|
|
217
|
+
/**
|
|
218
|
+
* The one decision on a paragraph's mark that a single-field reader sees.
|
|
219
|
+
*
|
|
220
|
+
* @deprecated Reads one of the revisions a mark can carry. Use {@link paragraphMarkRevisionsOf},
|
|
221
|
+
* which answers with all of them.
|
|
222
|
+
*/
|
|
223
|
+
declare function paragraphMarkRevisionOf(paragraph: OoxmlNode): RevisionAttribution | null;
|
|
224
|
+
/**
|
|
225
|
+
* The tracked FORMAT change on a property list, from `w:rPrChange` or `w:pPrChange`.
|
|
226
|
+
*
|
|
227
|
+
* A property change alters no characters, so it has no span of its own to strike or underline.
|
|
228
|
+
* Word marks the affected text and says what changed; the minimum a reader needs is to see that
|
|
229
|
+
* this text's formatting is itself a pending decision.
|
|
230
|
+
*
|
|
231
|
+
* Read from the flattened property list because that is what layout already carries — the
|
|
232
|
+
* change wrapper is a `w:rPr`/`w:pPr` child like any other.
|
|
233
|
+
*/
|
|
234
|
+
declare function formatRevisionOf(properties: readonly {
|
|
235
|
+
readonly localName: string;
|
|
236
|
+
readonly attributes?: Readonly<Record<string, string>>;
|
|
237
|
+
}[]): RevisionAttribution | null;
|
|
238
|
+
/** True when this stack of revisions marks its content as deleted from the live document. */
|
|
239
|
+
declare function revisionsAreDeletion(revisions: readonly RevisionAttribution[]): boolean;
|
|
240
|
+
|
|
241
|
+
export { revisionsVisible as A, shownMarkRevision as B, DEFAULT_REVISION_MARKUP as D, REVISION_MARKUP_COLORS as f, DEFAULT_REVISION_DISPLAY_MODE as p, resolveRevisionMarkup as r, formatRevisionOf as t, markRevisionRemovesMark as u, paragraphMarkFormatRevisionOf as v, paragraphMarkRevisionOf as w, paragraphMarkRevisionsOf as x, revisionAuthorFilter as y, revisionsAreDeletion as z };
|
|
242
|
+
export type { RevisionMarkupDialogSession as R, ReviewDisplayMode as a, RevisionDisplayMode as b, RevisionAuthorFilter as c, ResolvedRevisionMarkup as d, RevisionMarkupOptions as e, RevisionChangedLinesMark as g, RevisionDeletionMark as h, RevisionMarkupChromeHandlers as i, RevisionMarkupColor as j, RevisionMarkupMark as k, RevisionMarkupNamedColor as l, RevisionMarkupStyle as m, RevisionMarkupTextStyle as n, RevisionAttribution as o, RevisionFilter as q, RevisionKind as s };
|