@arbidocs/blocks 0.5.135 → 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/{DocumentReviewCard-EM2AJUF3.cjs → DocumentReviewCard-UV3DLFCB.cjs} +3 -3
- package/dist/{DocumentReviewCard-EM2AJUF3.cjs.map → DocumentReviewCard-UV3DLFCB.cjs.map} +1 -1
- package/dist/connect/index.cjs +9 -9
- package/dist/index.cjs +22 -22
- 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 +1 -1
- 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/node_modules/@docx-editor.dev/core/dist/chunk-236O4YQW.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JIJOZDW.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-6JPL6ZAS.cjs +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-6ZQP4HQ7.js +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-7WQ7AAHW.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-BCXH4BXB.js +0 -5
- package/node_modules/@docx-editor.dev/core/dist/chunk-BTQKU64Q.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-BY2ACZZ6.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-CAJEXXVG.cjs +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-CPWLFPWC.js +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-D7ZMDMPX.cjs +0 -3
- package/node_modules/@docx-editor.dev/core/dist/chunk-DOHF6FA7.cjs +0 -30
- package/node_modules/@docx-editor.dev/core/dist/chunk-DVX32P2P.js +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-E4LOMDNL.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-EKLM7NWB.cjs +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-G3K63G7P.cjs +0 -27
- package/node_modules/@docx-editor.dev/core/dist/chunk-G4HOFIKJ.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-JLVBDYVQ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-LQX36Z5P.js +0 -7
- package/node_modules/@docx-editor.dev/core/dist/chunk-LSZ6KPKK.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-MM5QBMTE.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OMCG63ZF.js +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-OSFOJTHU.cjs +0 -18
- package/node_modules/@docx-editor.dev/core/dist/chunk-RCLZXP3B.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-T6K2QYNZ.cjs +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-TRGAVV2Y.js +0 -4
- package/node_modules/@docx-editor.dev/core/dist/chunk-U4JZVSOE.js +0 -2
- package/node_modules/@docx-editor.dev/core/dist/chunk-UHHYFIDT.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-W35WTWAO.cjs +0 -1
- package/node_modules/@docx-editor.dev/core/dist/chunk-YQ5G6LC7.js +0 -18
- package/node_modules/@docx-editor.dev/core/dist/diagnostic-context-B8M79cfK.d.ts +0 -30
- package/node_modules/@docx-editor.dev/core/dist/editor-scope-7o9xweiJ.d.ts +0 -84
- package/node_modules/@docx-editor.dev/core/dist/headless-document-view-pp3q7wIh.d.ts +0 -143
- package/node_modules/@docx-editor.dev/core/dist/image-resources-tXLQShoC.d.ts +0 -211
- package/node_modules/@docx-editor.dev/core/dist/omml-equation-BUbU0utM.d.ts +0 -85
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/coedit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.136",
|
|
4
4
|
"description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"typecheck": "tsc --noEmit"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@docx-editor.dev/core": "2.
|
|
56
|
+
"@docx-editor.dev/core": "2.33.0",
|
|
57
57
|
"@hocuspocus/provider": "^4.6.0",
|
|
58
58
|
"fflate": "^0.8.2",
|
|
59
59
|
"y-protocols": "^1.0.6",
|
|
@@ -30,7 +30,7 @@ Node.js requires `^20.16.0 || >=22.3.0`.
|
|
|
30
30
|
## Features
|
|
31
31
|
|
|
32
32
|
- [Read and save DOCX files](https://www.docx-editor.dev/docs/2.x/guides/loading-and-saving).
|
|
33
|
-
- [Lay out and render document pages](https://www.docx-editor.dev/docs/2.x/word-fidelity).
|
|
33
|
+
- [Lay out and render document pages](https://www.docx-editor.dev/docs/2.x/word-fidelity). Charts, SmartArt saved without its drawing, shape effects, and WordArt need [`@docx-editor.dev/pro/drawing`](https://www.docx-editor.dev/docs/2.x/pro/drawing).
|
|
34
34
|
- [Build an editor with shared commands and controls](https://www.docx-editor.dev/docs/2.x/guides/chrome-slots).
|
|
35
35
|
- [Configure fonts for text measurement](https://www.docx-editor.dev/docs/2.x/guides/fonts).
|
|
36
36
|
|
|
@@ -114,6 +114,30 @@ Treat DOCX files as untrusted input. The engine validates URLs and limits XML en
|
|
|
114
114
|
|
|
115
115
|
Anything you render from document data (a font name, a hyperlink target, a comment body) is still attacker-controlled at your boundary. Render it as text; do not build markup or URLs from it.
|
|
116
116
|
|
|
117
|
+
## Which API for which job
|
|
118
|
+
|
|
119
|
+
| Job | Use |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| Build a review UI in the browser | The React or Vue adapter hooks, plus the review hooks and `DocxEditorReview` from `@docx-editor.dev/pro/react` or `@docx-editor.dev/pro/vue`. |
|
|
122
|
+
| Edit in a headless, server, or agent pipeline | The editing API in `@docx-editor.dev/editor-api`, which follows the Office.js object model. |
|
|
123
|
+
|
|
124
|
+
| Task | Browser host (React or Vue) | Headless, server, or agent |
|
|
125
|
+
| --- | --- | --- |
|
|
126
|
+
| [Comment on found text](https://www.docx-editor.dev/docs/2.x/recipes/comment-on-found-text) | `editor.findMatches`, `editor.selectMatch`, then `useReview().comment` | `body.search`, then `Range.insertComment` |
|
|
127
|
+
| Reply to a thread | `useReview().reply(item, text)` | `Comment.reply(text)` |
|
|
128
|
+
| [Record a tracked replacement](https://www.docx-editor.dev/docs/2.x/recipes/tracked-replacement) | Suggesting mode, then `editor.exec({ type: 'replaceMatch', match, text })` | `document.changeTrackingMode = 'TrackMineOnly'`, then `Range.insertText(text, 'Replace')` |
|
|
129
|
+
| [Propose an AI rewrite as tracked changes](https://www.docx-editor.dev/docs/2.x/recipes/propose-rewrite) | The same code through `DocxEditor.createBrowser` from `@docx-editor.dev/editor-api/browser` | `prepareRewrite` from `@docx-editor.dev/editor-api/agent` |
|
|
130
|
+
| [Accept or reject a change](https://www.docx-editor.dev/docs/2.x/recipes/accept-reject-without-scrolling) | `useReview().accept(item)` or `useReview().reject(item)` | `Revision.accept()` or `Revision.reject()` |
|
|
131
|
+
| [Open or reveal a change without scrolling](https://www.docx-editor.dev/docs/2.x/recipes/accept-reject-without-scrolling) | `useReview().setActive(key, { reveal: false })` | Not applicable: no viewport |
|
|
132
|
+
| [Highlight ranges](https://www.docx-editor.dev/docs/2.x/recipes/highlight-ranges) | `useHighlights(name, source, options)` | Not applicable |
|
|
133
|
+
| [Custom review rail cards](https://www.docx-editor.dev/docs/2.x/recipes/custom-review-cards) | `DocxEditorReview` with `preset` set to `false`, `useReview().items`, `useStackedReviewPositions`, and `useReviewRailMetrics` | Not applicable |
|
|
134
|
+
| Comment-on-selection button | `DocxEditorReview.AddComment` as a direct child of `DocxEditorReview`, or `useEditorCommand('review.addComment')` | Not applicable |
|
|
135
|
+
| Page setup and paragraph dialogs from a custom toolbar | `DocxEditor.PageSetupDialog` or `DocxEditor.ParagraphDialog` with `open` and a close handler (`onClose` in React, `@close` in Vue); enable the button from `usePageSetup().isEnabled` or `useParagraphFormat().isEnabled` | `Section.pageSetup`, and `Paragraph` properties such as `alignment` |
|
|
136
|
+
|
|
137
|
+
The review hooks need `reviewModule()` from `@docx-editor.dev/pro` in the editor's modules, and an editor `author` for comments and tracked changes. The editing API takes its author from the `author` option of `DocxEditor.createServer`, imported from `@docx-editor.dev/editor-api`, or of `DocxEditor.createBrowser`, imported from `@docx-editor.dev/editor-api/browser`.
|
|
138
|
+
|
|
139
|
+
This package ships the task recipes in [`docs/index.md`](./docs/index.md). They are also on the site: [Task recipes](https://www.docx-editor.dev/docs/2.x/recipes).
|
|
140
|
+
|
|
117
141
|
## Documentation
|
|
118
142
|
|
|
119
143
|
- [Core overview](https://www.docx-editor.dev/docs/2.x/core)
|
|
@@ -19,6 +19,7 @@ This package also ships prebuilt third-party assets that are not esbuild inputs,
|
|
|
19
19
|
so they cannot appear below. Their licenses travel with the package in
|
|
20
20
|
`licenses/`:
|
|
21
21
|
|
|
22
|
+
- `licenses/ECMA-376.md`
|
|
22
23
|
- `licenses/HarfBuzz-COPYING.txt`
|
|
23
24
|
|
|
24
25
|
## Bundled packages
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZWO4JHNN_cjs=require('./chunk-ZWO4JHNN.cjs');require('./chunk-AXU63LYW.cjs'),require('./chunk-2DEY5NUC.cjs'),require('./chunk-PXMTQ73F.cjs'),require('./chunk-RFUNFTGV.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-X34QRAUU.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.g}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.f}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.h}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.e}});Object.defineProperty(exports,"SERVER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.p}});Object.defineProperty(exports,"byteSizeBucket",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.y}});Object.defineProperty(exports,"countBucket",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.z}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.n}});Object.defineProperty(exports,"createDiagnosticEmitter",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.A}});Object.defineProperty(exports,"createServerAutomationHost",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.q}});Object.defineProperty(exports,"diagnosticCause",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.C}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.B}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.t}});Object.defineProperty(exports,"diagnosticErrorName",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.F}});Object.defineProperty(exports,"documentPartKind",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.G}});Object.defineProperty(exports,"exceptionCause",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.E}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.s}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.j}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.i}});Object.defineProperty(exports,"openDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.u}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.l}});Object.defineProperty(exports,"reviewCodeOfSkip",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.w}});Object.defineProperty(exports,"reviewDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.x}});Object.defineProperty(exports,"reviewSkipOfReason",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.D}});Object.defineProperty(exports,"storeEditDiagnosticCode",{enumerable:true,get:function(){return chunkZWO4JHNN_cjs.v}});
|
|
@@ -11,22 +11,20 @@
|
|
|
11
11
|
* @packageDocumentation
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-
|
|
15
|
-
export { c as AutomationAlignment, d as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
|
|
14
|
+
import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-Cp_QzVxS.js';
|
|
15
|
+
export { c as AutomationAlignment, d as AutomationAuthoringOperation, e as AutomationBatchRequest, f as AutomationBatchResponse, g as AutomationChangeEvent, h as AutomationContentControlLock, i as AutomationContentControlRangeLocation, j as AutomationContentControlScope, k as AutomationContentControlSubtype, l as AutomationContentControlValue, m as AutomationCustomNodePayload, n as AutomationEndpoint, o as AutomationError, p as AutomationErrorCode, q as AutomationFontRead, r as AutomationFontWrite, s as AutomationHandle, t as AutomationHandleRef, u as AutomationInlinePictureRead, v as AutomationInlinePictureWrite, w as AutomationListBullet, x as AutomationListLevelFormat, y as AutomationListNumbering, z as AutomationObjectKind, B as AutomationOperationKind, C as AutomationOperationResult, D as AutomationPageOrientation, E as AutomationPageSetupRead, F as AutomationPageSetupWrite, G as AutomationParagraphFormatRead, H as AutomationParagraphFormatWrite, I as AutomationParagraphRef, J as AutomationPoint, K as AutomationReadingOrder, L as AutomationSaveResult, M as AutomationSearchOptions, N as AutomationSelectionMode, O as AutomationShapeRead, P as AutomationShapeType, Q as AutomationSpan, R as AutomationSpanRef, S as AutomationTextProjection, T as AutomationUnsubscribe, U as AutomationValue } from './protocol-Cp_QzVxS.js';
|
|
16
|
+
import { H as HeaderFooterVariant, N as NoteKind, C as ContentLockPolicy } from './tree-package-store-DXhX1PE-.js';
|
|
17
|
+
import { az as OoxmlPackageLimits, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
|
|
18
|
+
export { aB as AutomationTableMutation, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal } from './tree-op-types-Df4oY2u4.js';
|
|
19
|
+
import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-DoK0lNjS.js';
|
|
20
|
+
import { H as HeadlessDocumentView } from './drawing-graphic-kind-CXYGYbB3.js';
|
|
21
21
|
import { CollaborationModuleContribution } from './collaboration.js';
|
|
22
|
-
|
|
23
|
-
export { C as CollaborationDiagnosticCode,
|
|
24
|
-
export {
|
|
25
|
-
import './
|
|
26
|
-
import './omml-equation-BUbU0utM.js';
|
|
27
|
-
import './editor-scope-7o9xweiJ.js';
|
|
22
|
+
export { D as DiagnosticEmitter, a as DiagnosticPayload, b as byteSizeBucket, c as countBucket, e as createDiagnosticEmitter, f as diagnosticCause, d as diagnosticCauses, g as diagnosticErrorName, h as documentPartKind, i as exceptionCause, o as openDiagnosticCode, r as reviewCodeOfSkip, j as reviewDiagnosticCode, k as reviewSkipOfReason, s as storeEditDiagnosticCode } from './diagnostic-context-CuzhOX0g.js';
|
|
23
|
+
export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, a as CountBucket, b as CustomNodeDiagnosticCode, D as DiagnosticCode, c as DiagnosticErrorName, d as DiagnosticExplanation, e as DocumentOpenDiagnosticCode, f as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, R as ReviewDiagnosticCode, k as ReviewOperation, l as diagnosticCodes, m as explainDiagnostic } from './diagnostic-hints-BtCaCqQC.js';
|
|
24
|
+
export { c as HistoryGroup, H as HistoryGroupOutcome } from './editor-scope-CA6egMaK.js';
|
|
25
|
+
import './revision-projection-OVusTS77.js';
|
|
28
26
|
import './collaboration/replication.js';
|
|
29
|
-
import './failure-
|
|
27
|
+
import './failure-6KGFrDO9.js';
|
|
30
28
|
|
|
31
29
|
/** The variants a section can declare furniture for. */
|
|
32
30
|
declare const HEADER_FOOTER_VARIANTS: readonly HeaderFooterVariant[];
|
|
@@ -63,9 +61,9 @@ type AutomationShapeOwnerStory = {
|
|
|
63
61
|
};
|
|
64
62
|
|
|
65
63
|
/** Operations that read. They never open a transaction. */
|
|
66
|
-
declare const AUTOMATION_QUERY_OPERATIONS: readonly ["getTables", "getTable", "getTableRows", "getTableCells", "getTableCell", "getTableCellProperties", "getTableCellBody", "getFields", "getField", "getInlinePictures", "getInlinePicture", "getShapes", "getShape", "getShapeBody", "getChangeTrackingMode", "getDocument", "getDocumentProperty", "getBody", "getParagraphs", "getRange", "getSpanParagraphs", "getText", "getSpanText", "getParagraphId", "search", "getFont", "getParagraphFormat", "getStyle", "getSections", "getPageSetup", "getFurniture", "getNotes", "getNoteBody", "getNoteText", "getNoteKind", "getLists", "getListId", "getListById", "getListParagraphs", "getParagraphList", "getListLevel", "getHyperlink", "getBookmarks", "getBookmarkName", "getBookmarkRange", "getComments", "getCommentReplies", "getCommentId", "getCommentAuthor", "getCommentDate", "getCommentText", "getCommentRange", "getCommentResolved", "getRevisions", "getRevisionType", "getRevisionAuthor", "getRevisionDate", "getRevisionRange", "getContentControls", "getContentControlById", "getContentControlsByTag", "getContentControlsByTitle", "getContentControlTag", "getContentControlTitle", "getContentControlFileId", "getContentControlSubtype", "getContentControlLock", "getContentControlIsBound", "getContentControlPlaceholderShown", "getContentControlTemporary", "getContentControlText", "getContentControlParagraphs", "getContentControlRange"];
|
|
64
|
+
declare const AUTOMATION_QUERY_OPERATIONS: readonly ["getTables", "getTable", "getTableRows", "getTableCells", "getTableCell", "getMergedTableCell", "getTableCellProperties", "getTableCellBody", "getFields", "getField", "getFieldResult", "getInlinePictures", "getInlinePicture", "getShapes", "getShape", "getShapeBody", "getChangeTrackingMode", "getDocument", "getDocumentProperty", "getBody", "getParagraphs", "getRange", "getSpanParagraphs", "getText", "getSpanText", "getTextRanges", "expandSpan", "getReviewedText", "getParagraphId", "search", "getFont", "getParagraphFormat", "getStyle", "getSections", "getPageSetup", "getFurniture", "getNotes", "getNoteBody", "getNoteText", "getNoteKind", "getLists", "getListId", "getListById", "getListParagraphs", "getParagraphList", "getListLevel", "getHyperlink", "getBookmarks", "getBookmarkName", "getBookmarkRange", "getBookmarkNames", "getBookmarkRangeByName", "getComments", "getCommentReplies", "getCommentId", "getCommentAuthor", "getCommentDate", "getCommentText", "getCommentRange", "getCommentResolved", "getRevisions", "getRevisionType", "getRevisionAuthor", "getRevisionDate", "getRevisionRange", "getReviewItemRange", "getContentControls", "getContentControlById", "getContentControlsByTag", "getContentControlsByTitle", "getContentControlTag", "getContentControlTitle", "getContentControlFileId", "getContentControlSubtype", "getContentControlLock", "getContentControlIsBound", "getContentControlPlaceholderShown", "getContentControlTemporary", "getContentControlText", "getContentControlParagraphs", "getContentControlRange"];
|
|
67
65
|
/** Operations that write. Every one of these goes through the single transaction path. */
|
|
68
|
-
declare const AUTOMATION_COMMAND_OPERATIONS: readonly ["removeDocumentInformation", "setDocumentProperties", "insertTableRows", "insertTable", "updateTable", "updateTableCell", "setInlinePicture", "deleteInlinePicture", "insertField", "setFieldCode", "deleteField", "updateFieldResult", "insertInlinePicture", "insertBreak", "setChangeTrackingMode", "proposeInsertion", "proposeDeletion", "proposeReplacement", "insertText", "replaceSpan", "replaceStoryBlocks", "insertParagraph", "splitParagraph", "deleteParagraph", "selectSpan", "selectBookmark", "setFont", "setParagraphFormat", "setStyle", "setPageSetup", "deleteNote", "setListLevel", "startNewList", "attachToList", "detachFromList", "setListLevelFormat", "insertListParagraph", "setHyperlink", "insertComment", "setCommentResolved", "replyToComment", "deleteComment", "acceptRevision", "rejectRevision", "resolveRevisionBatch", "setRevisionAuthorBatch", "acceptAllRevisions", "rejectAllRevisions", "setContentControlValue", "setContentControlProperties", "deleteContentControl", "insertContentControlText", "insertContentControl", "insertCustomNode"];
|
|
66
|
+
declare const AUTOMATION_COMMAND_OPERATIONS: readonly ["removeDocumentInformation", "setDocumentProperties", "insertTableRows", "insertTable", "updateTable", "updateTableCell", "splitTableCell", "setInlinePicture", "deleteInlinePicture", "insertField", "insertOoxml", "setFieldCode", "setFieldResult", "deleteField", "updateFieldResult", "insertInlinePicture", "insertBreak", "setChangeTrackingMode", "proposeInsertion", "proposeDeletion", "proposeReplacement", "insertText", "replaceSpan", "replaceStoryBlocks", "insertParagraph", "splitParagraph", "deleteParagraph", "selectSpan", "selectBookmark", "insertBookmark", "deleteBookmark", "setFont", "setParagraphFormat", "setStyle", "setPageSetup", "deleteNote", "setListLevel", "startNewList", "attachToList", "detachFromList", "setListLevelFormat", "insertListParagraph", "setHyperlink", "insertComment", "setCommentResolved", "replyToComment", "deleteComment", "acceptRevision", "rejectRevision", "resolveRevisionBatch", "setRevisionAuthorBatch", "acceptAllRevisions", "rejectAllRevisions", "setContentControlValue", "setContentControlProperties", "deleteContentControl", "insertContentControlText", "insertContentControl", "insertCustomNode"];
|
|
69
67
|
/**
|
|
70
68
|
* Commands that commit as a PACKAGE transaction and therefore share a batch with nothing.
|
|
71
69
|
*
|
|
@@ -151,6 +149,11 @@ interface ServerAutomationHostOptions {
|
|
|
151
149
|
* not attach a replica.
|
|
152
150
|
*/
|
|
153
151
|
readonly collaborationModel?: CollaborationModuleContribution;
|
|
152
|
+
/**
|
|
153
|
+
* Opt-in relaxation of `w:lock` for run-property writes (`setFont`): content-locked controls
|
|
154
|
+
* can be restyled but not retyped. Absent, they refuse both.
|
|
155
|
+
*/
|
|
156
|
+
readonly contentLockPolicy?: ContentLockPolicy;
|
|
154
157
|
}
|
|
155
158
|
/**
|
|
156
159
|
* Open DOCX bytes into a headless automation host.
|
|
@@ -160,50 +163,5 @@ interface ServerAutomationHostOptions {
|
|
|
160
163
|
*/
|
|
161
164
|
declare function createServerAutomationHost(bytes: Uint8Array, options?: ServerAutomationHostOptions): ServerAutomationHostResult;
|
|
162
165
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
* buckets, and one delivery path. The browser editor and the headless automation runtime both
|
|
166
|
-
* build their diagnostics here, so a refusal gets the same public code on either host.
|
|
167
|
-
*
|
|
168
|
-
* Only the RESULT of a lookup leaves the engine. A raw reason can be a sentence, and a package
|
|
169
|
-
* `detail` can name parts of the file, so neither is ever copied into a diagnostic.
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The public code for a refused open. `too-large` is the one reason two layers share: the
|
|
174
|
-
* archive reports it WITH the limit it crossed, a single XML part reports it without one.
|
|
175
|
-
*
|
|
176
|
-
* @public
|
|
177
|
-
*/
|
|
178
|
-
declare function openDiagnosticCode(reason: string, limit?: string): DocumentOpenDiagnosticCode;
|
|
179
|
-
/**
|
|
180
|
-
* The public code for a store or host refusal reason, or `null` for a reason this table does
|
|
181
|
-
* not know (a sentence, a binding reason). `unsupported-revision:<kind>` counts as
|
|
182
|
-
* `unsupported-revision`.
|
|
183
|
-
*
|
|
184
|
-
* @public
|
|
185
|
-
*/
|
|
186
|
-
declare function storeEditDiagnosticCode(reason: string): EditDiagnosticCode | null;
|
|
187
|
-
/** The public code for a skipped tracked change, or null for a reason with no public code. */
|
|
188
|
-
declare function reviewDiagnosticCode(reason: string): ReviewDiagnosticCode | null;
|
|
189
|
-
/** The power-of-two bucket of a byte size. */
|
|
190
|
-
declare function byteSizeBucket(bytes: number): ByteSizeBucket;
|
|
191
|
-
/** The order-of-magnitude bucket of a count. */
|
|
192
|
-
declare function countBucket(count: number): CountBucket;
|
|
193
|
-
/** A diagnostic without the fields the emitter adds. Distributes over the union. */
|
|
194
|
-
type DiagnosticPayload<T> = T extends unknown ? Omit<T, 'schemaVersion' | 'editorSessionId' | 'time'> : never;
|
|
195
|
-
/** One delivery path for one editor or runtime instance. */
|
|
196
|
-
interface DiagnosticEmitter<E> {
|
|
197
|
-
/** Random for this instance and never stored. */
|
|
198
|
-
readonly editorSessionId: string;
|
|
199
|
-
/** Stamp the payload and hand it to every listener. A listener that throws is ignored. */
|
|
200
|
-
deliver(payload: DiagnosticPayload<E>): void;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* A delivery path over `listeners`, read at each delivery so a later listener is heard. Generic
|
|
204
|
-
* over the event union, which the editor contracts own: this lane never names them.
|
|
205
|
-
*/
|
|
206
|
-
declare function createDiagnosticEmitter<E>(listeners: () => Iterable<(event: E) => unknown>, now?: () => number): DiagnosticEmitter<E>;
|
|
207
|
-
|
|
208
|
-
export { AUTOMATION_COMMAND_OPERATIONS, AUTOMATION_QUERY_OPERATIONS, AUTOMATION_SOLITARY_OPERATIONS, AutomationCapabilities, AutomationHost, AutomationOperation, ByteSizeBucket, CountBucket, DocumentOpenDiagnosticCode, EditDiagnosticCode, HEADER_FOOTER_VARIANTS, ReviewDiagnosticCode, SERVER_AUTOMATION_CAPABILITIES, byteSizeBucket, countBucket, createAutomationPaginationProvider, createDiagnosticEmitter, createServerAutomationHost, isAutomationCommand, isSolitaryAutomationCommand, openDiagnosticCode, paginationSnapshotOf, reviewDiagnosticCode, storeEditDiagnosticCode };
|
|
209
|
-
export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationStoryId, DiagnosticEmitter, DiagnosticPayload, ServerAutomationHostOptions, ServerAutomationHostRejection, ServerAutomationHostResult };
|
|
166
|
+
export { AUTOMATION_COMMAND_OPERATIONS, AUTOMATION_QUERY_OPERATIONS, AUTOMATION_SOLITARY_OPERATIONS, AutomationCapabilities, AutomationHost, AutomationOperation, ContentLockPolicy, HEADER_FOOTER_VARIANTS, SERVER_AUTOMATION_CAPABILITIES, createAutomationPaginationProvider, createServerAutomationHost, isAutomationCommand, isSolitaryAutomationCommand, paginationSnapshotOf };
|
|
167
|
+
export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationShapeOwnerStory, AutomationStoryId, ServerAutomationHostOptions, ServerAutomationHostRejection, ServerAutomationHostResult };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{g as AUTOMATION_COMMAND_OPERATIONS,f as AUTOMATION_QUERY_OPERATIONS,h as AUTOMATION_SOLITARY_OPERATIONS,e as HEADER_FOOTER_VARIANTS,p as SERVER_AUTOMATION_CAPABILITIES,y as byteSizeBucket,z as countBucket,n as createAutomationPaginationProvider,A as createDiagnosticEmitter,q as createServerAutomationHost,C as diagnosticCause,B as diagnosticCauses,t as diagnosticCodes,F as diagnosticErrorName,G as documentPartKind,E as exceptionCause,s as explainDiagnostic,j as isAutomationCommand,i as isSolitaryAutomationCommand,u as openDiagnosticCode,l as paginationSnapshotOf,w as reviewCodeOfSkip,x as reviewDiagnosticCode,D as reviewSkipOfReason,v as storeEditDiagnosticCode}from'./chunk-JG4A6W6I.js';import'./chunk-R4R3AAE4.js';import'./chunk-CM5VZRBV.js';import'./chunk-2F2UEAE2.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-2DR4TH6B.js';import'./chunk-AU33YWEJ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2GPGAFOJ_cjs=require('./chunk-2GPGAFOJ.cjs');require('./chunk-UYCGCVZ2.cjs'),require('./chunk-PXMTQ73F.cjs'),require('./chunk-RFUNFTGV.cjs'),require('./chunk-DYUVJNDD.cjs'),require('./chunk-ZDFJW5XS.cjs'),require('./chunk-X34QRAUU.cjs'),require('./chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.n}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.o}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.l}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunk2GPGAFOJ_cjs.e}});
|
|
@@ -9,26 +9,28 @@
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
import { Node, Schema } from 'prosemirror-model';
|
|
12
|
-
import {
|
|
13
|
-
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-
|
|
14
|
-
export { D as DocumentStyleEntry, M as MapResult, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-
|
|
12
|
+
import { aC as OoxmlProperty, aD as OoxmlPackageResult, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
|
|
13
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-CF2625mv.js';
|
|
14
|
+
export { D as DocumentStyleEntry, M as MapResult, P as PackageWriteOptions, b as TreeApplyOptions, c as TreeBindingRejection, d as bodyParagraphs, e as docToTreeOps, p as partHasNode, r as reconcileDoc, t as treeToDoc } from './tree-session-contract-CF2625mv.js';
|
|
15
|
+
import { C as ContentLockPolicy } from './tree-package-store-DXhX1PE-.js';
|
|
16
|
+
export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-DXhX1PE-.js';
|
|
15
17
|
import { ReviewModuleContribution } from './contracts/modules.js';
|
|
16
|
-
export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-CovjNARF.js';
|
|
17
18
|
import { EditorView } from 'prosemirror-view';
|
|
18
|
-
import './editor-scope-
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './headless-document-view-pp3q7wIh.js';
|
|
19
|
+
import './editor-scope-CA6egMaK.js';
|
|
20
|
+
import './custom-node-writes-AqY5KpVx.js';
|
|
21
|
+
import './drawing-graphic-kind-CXYGYbB3.js';
|
|
22
22
|
import './collaboration/replication.js';
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
23
|
+
import './revision-projection-OVusTS77.js';
|
|
24
|
+
import './contracts/types.js';
|
|
25
|
+
import './failure-6KGFrDO9.js';
|
|
26
|
+
import './document-protection-BvbpSXbQ.js';
|
|
27
|
+
import './editor-B7OOAAie.js';
|
|
28
|
+
import './editor-fonts-D_-vjuJi.js';
|
|
29
|
+
import './diagnostic-hints-BtCaCqQC.js';
|
|
26
30
|
import './contracts/document.js';
|
|
27
31
|
import './contracts/interaction.js';
|
|
28
|
-
import './semantic-interaction-
|
|
29
|
-
import './
|
|
30
|
-
import './failure-NS2lsya4.js';
|
|
31
|
-
import './diagnostic-hints-BeVjfNOv.js';
|
|
32
|
+
import './semantic-interaction-BbA4dgEo.js';
|
|
33
|
+
import './semantic-records-DoK0lNjS.js';
|
|
32
34
|
import './collaboration.js';
|
|
33
35
|
|
|
34
36
|
/** Attributes carried by a projected paragraph. */
|
|
@@ -56,28 +58,22 @@ declare const treeSchema: Schema<'doc' | 'paragraph' | 'text' | 'tab' | 'hardBre
|
|
|
56
58
|
/** The accepted run properties carried by a text node, or an empty list. */
|
|
57
59
|
declare function runPropsOf(node: Node): readonly OoxmlProperty[];
|
|
58
60
|
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
* Editor surfaces expose {@link TreeDocxSessionView}. Only the binding lane sees this extension.
|
|
63
|
-
*/
|
|
64
|
-
interface TreeDocxSession extends TreeDocxSessionView {
|
|
65
|
-
/** Project the current BODY revision into a ProseMirror doc. */
|
|
66
|
-
projectDoc(): Node;
|
|
67
|
-
/** Re-project incrementally from the last committed change, reusing untouched paragraphs. */
|
|
68
|
-
reconcile(previousDoc: Node): Node;
|
|
61
|
+
/** How `openTreeSession` opens a package. */
|
|
62
|
+
interface OpenTreeSessionOptions {
|
|
69
63
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* races the next keystroke.
|
|
64
|
+
* The review module's derivation hooks, contributed through the editor's
|
|
65
|
+
* `EditorModule` seam. Absent — the free engine — the session's
|
|
66
|
+
* `reviewItems()` reports the typed empty queue; parse, preservation, and
|
|
67
|
+
* `hasReviewContent` are unaffected.
|
|
75
68
|
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
|
|
69
|
+
readonly reviewModel?: ReviewModuleContribution;
|
|
70
|
+
/**
|
|
71
|
+
* Opt-in relaxation of `w:lock` for run formatting: `contentLocked` / `sdtContentLocked`
|
|
72
|
+
* controls can be restyled (bold, color, font …) but not retyped. Absent, they refuse both.
|
|
73
|
+
* See {@link ContentLockPolicy}.
|
|
74
|
+
*/
|
|
75
|
+
readonly contentLockPolicy?: ContentLockPolicy;
|
|
79
76
|
}
|
|
80
|
-
|
|
81
77
|
/**
|
|
82
78
|
* Why bytes could not be opened: any bounded-reader rejection, plus the package that parsed but
|
|
83
79
|
* carried no main document tree.
|
|
@@ -99,15 +95,28 @@ type OpenTreeSessionResult = {
|
|
|
99
95
|
readonly reason: 'no-main-document-tree';
|
|
100
96
|
readonly detail?: string;
|
|
101
97
|
};
|
|
102
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Binding-only session methods that exchange ProseMirror projections.
|
|
100
|
+
*
|
|
101
|
+
* Editor surfaces expose {@link TreeDocxSessionView}. Only the binding lane sees this extension.
|
|
102
|
+
*/
|
|
103
|
+
interface TreeDocxSession extends TreeDocxSessionView {
|
|
104
|
+
/** Project the current BODY revision into a ProseMirror doc. */
|
|
105
|
+
projectDoc(): Node;
|
|
106
|
+
/** Re-project incrementally from the last committed change, reusing untouched paragraphs. */
|
|
107
|
+
reconcile(previousDoc: Node): Node;
|
|
103
108
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
109
|
+
* Whether the last commit changed the BLOCK SEQUENCE (a split, join, insert or delete).
|
|
110
|
+
*
|
|
111
|
+
* A host needs this to decide whether the view must be re-projected at all. After a pure
|
|
112
|
+
* text edit, the view already holds what the model holds. Re-projecting wastes work and
|
|
113
|
+
* races the next keystroke.
|
|
108
114
|
*/
|
|
109
|
-
|
|
115
|
+
lastCommitWasStructural(): boolean;
|
|
116
|
+
/** Map an edited BODY doc to tree ops and commit them as one transaction. */
|
|
117
|
+
applyPmDoc(doc: Node): TreeApplyResult;
|
|
110
118
|
}
|
|
119
|
+
|
|
111
120
|
/**
|
|
112
121
|
* Open DOCX bytes into a tree-backed session.
|
|
113
122
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{n as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,o as mountTreeSurface,l as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-F7TGQMVR.js';import'./chunk-D7FAFFTN.js';import'./chunk-2F2UEAE2.js';import'./chunk-L3YXJDPX.js';import'./chunk-PLKDS4JT.js';import'./chunk-JNGLSBPH.js';import'./chunk-2DR4TH6B.js';import'./chunk-AU33YWEJ.js';
|