@docx-editor.dev/core 2.32.0 → 2.34.0
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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +14 -52
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +14 -14
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-DY0xsXm_.d.ts} +231 -125
- package/dist/chunk-37IYWENL.cjs +1 -0
- package/dist/chunk-37RNWL45.js +4 -0
- package/dist/chunk-5HUVQXET.cjs +4 -0
- package/dist/chunk-5JP3QQF7.js +7 -0
- package/dist/chunk-5KOLFKOB.cjs +5 -0
- package/dist/chunk-6MF5PN2E.js +236 -0
- package/dist/chunk-77JT2AU7.js +2 -0
- package/dist/{chunk-ETDZFNMI.js → chunk-7FUORGCW.js} +1 -1
- package/dist/chunk-A5BTVPET.cjs +236 -0
- package/dist/chunk-AFXFH2T2.js +3 -0
- package/dist/chunk-AVCYP7OY.js +5 -0
- package/dist/chunk-BL2E4QRA.js +1 -0
- package/dist/chunk-DB7X4Y6O.js +4 -0
- package/dist/chunk-DR6W23TB.cjs +2 -0
- package/dist/chunk-DYLB5U42.js +1 -0
- package/dist/chunk-E5BKDHIP.cjs +1 -0
- package/dist/chunk-IWXBRUPG.cjs +4 -0
- package/dist/{chunk-L5TYBFDB.js → chunk-KCUXXO3Q.js} +1 -1
- package/dist/chunk-KYA4Y2YB.js +1 -0
- package/dist/{chunk-6UDJUI3W.cjs → chunk-L74TCGVH.cjs} +1 -1
- package/dist/chunk-NBSSQSKY.js +30 -0
- package/dist/{chunk-OKMEMSKB.cjs → chunk-NEM774E3.cjs} +1 -1
- package/dist/chunk-NKZVMMHU.cjs +1 -0
- package/dist/chunk-TXIO5WYQ.cjs +32 -0
- package/dist/chunk-UKG2TXWH.cjs +7 -0
- package/dist/chunk-V7CO55DO.cjs +3 -0
- package/dist/chunk-VLQDQNSS.js +1 -0
- package/dist/chunk-VQOAC3VI.cjs +30 -0
- package/dist/chunk-YWJSQA2O.js +32 -0
- package/dist/chunk-ZJ74LCFI.cjs +1 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +13 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +10 -10
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +12 -12
- package/dist/contracts/types.d.ts +4 -4
- package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
- package/dist/diagnostic-context-CkZKkKvB.d.ts +98 -0
- package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +3 -3
- package/dist/{document-protection-NaniLHWF.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
- package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +161 -18
- package/dist/drawing-preview-package-fFjXpOMS.d.ts +115 -0
- package/dist/{editor-DZwOTmlR.d.ts → editor-DDCkWqfD.d.ts} +125 -21
- package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +4 -4
- package/dist/editor.d.ts +387 -78
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +47 -12
- package/dist/export.js +2 -2
- package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +38 -23
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +434 -199
- package/dist/layout.js +1 -1
- package/dist/metafile-drawing-Ce6TuWLm.d.ts +115 -0
- package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +77 -13
- package/dist/output.js +1 -1
- package/dist/{protocol-DKa4qt7F.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
- package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
- package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
- package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
- package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-BYDZbTiY.d.ts} +16 -9
- package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
- package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-CzZiWMY8.d.ts} +348 -132
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +526 -19
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-DKvJSH8T.d.ts} +1024 -501
- package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-Cl3BkWXF.d.ts} +8 -3
- package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-BL50pqs8.d.ts} +15 -8
- package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
- package/licenses/ECMA-376.md +29 -0
- package/package.json +2 -2
- package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
- package/dist/chunk-25EXMBV2.cjs +0 -5
- package/dist/chunk-3IEXDEFH.cjs +0 -7
- package/dist/chunk-65XBN67F.cjs +0 -2
- package/dist/chunk-6NVZNB7O.cjs +0 -3
- package/dist/chunk-ACLR4DMK.js +0 -1
- package/dist/chunk-B2BEELUE.js +0 -1
- package/dist/chunk-DDFHKQFU.js +0 -30
- package/dist/chunk-E4IAO4CY.cjs +0 -2
- package/dist/chunk-FDSL5OJU.cjs +0 -30
- package/dist/chunk-FS7CMYLT.js +0 -4
- package/dist/chunk-GDS24SZN.js +0 -30
- package/dist/chunk-GIY6NT2X.js +0 -5
- package/dist/chunk-GWM3AKUD.js +0 -18
- package/dist/chunk-HDOXACHP.js +0 -2
- package/dist/chunk-IILEENID.js +0 -1
- package/dist/chunk-MNF2K7NN.cjs +0 -30
- package/dist/chunk-O324RB6R.cjs +0 -1
- package/dist/chunk-QXJKYNYZ.js +0 -1
- package/dist/chunk-RALTVLB6.js +0 -2
- package/dist/chunk-SRVKFUFI.js +0 -3
- package/dist/chunk-TELQ52LG.cjs +0 -1
- package/dist/chunk-TJHE5EET.cjs +0 -1
- package/dist/chunk-UMMRURPE.js +0 -7
- package/dist/chunk-XJYZVGQR.cjs +0 -1
- package/dist/chunk-ZGTIE3QJ.cjs +0 -4
- package/dist/chunk-ZOZI27AW.cjs +0 -18
- package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
package/README.md
CHANGED
|
@@ -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
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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
|
package/dist/automation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkUKG2TXWH_cjs=require('./chunk-UKG2TXWH.cjs');require('./chunk-ZJ74LCFI.cjs'),require('./chunk-TXIO5WYQ.cjs'),require('./chunk-L74TCGVH.cjs'),require('./chunk-NEM774E3.cjs'),require('./chunk-E5BKDHIP.cjs'),require('./chunk-5HUVQXET.cjs'),require('./chunk-37IYWENL.cjs'),require('./chunk-A5BTVPET.cjs');Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.i}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.h}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.j}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.g}});Object.defineProperty(exports,"SERVER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.r}});Object.defineProperty(exports,"byteSizeBucket",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.A}});Object.defineProperty(exports,"countBucket",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.B}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.p}});Object.defineProperty(exports,"createDiagnosticEmitter",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.C}});Object.defineProperty(exports,"createServerAutomationHost",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.s}});Object.defineProperty(exports,"diagnosticCause",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.E}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.D}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.v}});Object.defineProperty(exports,"diagnosticErrorName",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.H}});Object.defineProperty(exports,"documentPartKind",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.I}});Object.defineProperty(exports,"exceptionCause",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.G}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.u}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.l}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.k}});Object.defineProperty(exports,"openDiagnosticCode",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.w}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.n}});Object.defineProperty(exports,"reviewCodeOfSkip",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.y}});Object.defineProperty(exports,"reviewDiagnosticCode",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.z}});Object.defineProperty(exports,"reviewSkipOfReason",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.F}});Object.defineProperty(exports,"storeEditDiagnosticCode",{enumerable:true,get:function(){return chunkUKG2TXWH_cjs.x}});
|
package/dist/automation.d.ts
CHANGED
|
@@ -11,19 +11,18 @@
|
|
|
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 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
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
export {
|
|
19
|
-
import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-
|
|
20
|
-
import { H as HeadlessDocumentView } from './
|
|
14
|
+
import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-Dn44dL4M.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 AutomationStyleKind, T as AutomationStyleRead, U as AutomationTextProjection, V as AutomationUnsubscribe, W as AutomationValue } from './protocol-Dn44dL4M.js';
|
|
16
|
+
import { H as HeaderFooterVariant, N as NoteKind, C as ContentLockPolicy } from './tree-package-store-Cl3BkWXF.js';
|
|
17
|
+
import { az as OoxmlPackageLimits, aA as OoxmlPackageRejection } from './tree-op-types-DKvJSH8T.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-DKvJSH8T.js';
|
|
19
|
+
import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-CzZiWMY8.js';
|
|
20
|
+
import { H as HeadlessDocumentView } from './drawing-graphic-kind-CK0cMc7H.js';
|
|
21
21
|
import { CollaborationModuleContribution } from './collaboration.js';
|
|
22
|
-
|
|
23
|
-
export { C as CollaborationDiagnosticCode,
|
|
24
|
-
export {
|
|
25
|
-
|
|
26
|
-
import './revision-projection-Cn6rZJ7H.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-CkZKkKvB.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-BTyb8yzX.js';
|
|
24
|
+
export { c as HistoryGroup, H as HistoryGroupOutcome } from './editor-scope-CA6egMaK.js';
|
|
25
|
+
import './revision-projection-DwFhgIR0.js';
|
|
27
26
|
import './collaboration/replication.js';
|
|
28
27
|
import './failure-6KGFrDO9.js';
|
|
29
28
|
|
|
@@ -62,7 +61,7 @@ type AutomationShapeOwnerStory = {
|
|
|
62
61
|
};
|
|
63
62
|
|
|
64
63
|
/** Operations that read. They never open a transaction. */
|
|
65
|
-
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"];
|
|
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", "getStyles", "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"];
|
|
66
65
|
/** Operations that write. Every one of these goes through the single transaction path. */
|
|
67
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"];
|
|
68
67
|
/**
|
|
@@ -164,42 +163,5 @@ interface ServerAutomationHostOptions {
|
|
|
164
163
|
*/
|
|
165
164
|
declare function createServerAutomationHost(bytes: Uint8Array, options?: ServerAutomationHostOptions): ServerAutomationHostResult;
|
|
166
165
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
* archive reports it WITH the limit it crossed, a single XML part reports it without one.
|
|
170
|
-
*
|
|
171
|
-
* @public
|
|
172
|
-
*/
|
|
173
|
-
declare function openDiagnosticCode(reason: string, limit?: string): DocumentOpenDiagnosticCode;
|
|
174
|
-
/**
|
|
175
|
-
* The public code for a store or host refusal reason, or `null` for a reason this table does
|
|
176
|
-
* not know (a sentence, a binding reason). `unsupported-revision:<kind>` counts as
|
|
177
|
-
* `unsupported-revision`, except `unsupported-revision:foreign-insertion`, which has its own
|
|
178
|
-
* code.
|
|
179
|
-
*
|
|
180
|
-
* @public
|
|
181
|
-
*/
|
|
182
|
-
declare function storeEditDiagnosticCode(reason: string): EditDiagnosticCode | null;
|
|
183
|
-
/** The public code for a skipped tracked change, or null for a reason with no public code. */
|
|
184
|
-
declare function reviewDiagnosticCode(reason: string): ReviewDiagnosticCode | null;
|
|
185
|
-
/** The power-of-two bucket of a byte size. */
|
|
186
|
-
declare function byteSizeBucket(bytes: number): ByteSizeBucket;
|
|
187
|
-
/** The order-of-magnitude bucket of a count. */
|
|
188
|
-
declare function countBucket(count: number): CountBucket;
|
|
189
|
-
/** A diagnostic without the fields the emitter adds. Distributes over the union. */
|
|
190
|
-
type DiagnosticPayload<T> = T extends unknown ? Omit<T, 'schemaVersion' | 'editorSessionId' | 'time'> : never;
|
|
191
|
-
/** One delivery path for one editor or runtime instance. */
|
|
192
|
-
interface DiagnosticEmitter<E> {
|
|
193
|
-
/** Random for this instance and never stored. */
|
|
194
|
-
readonly editorSessionId: string;
|
|
195
|
-
/** Stamp the payload and hand it to every listener. A listener that throws is ignored. */
|
|
196
|
-
deliver(payload: DiagnosticPayload<E>): void;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* A delivery path over `listeners`, read at each delivery so a later listener is heard. Generic
|
|
200
|
-
* over the event union, which the editor contracts own: this lane never names them.
|
|
201
|
-
*/
|
|
202
|
-
declare function createDiagnosticEmitter<E>(listeners: () => Iterable<(event: E) => unknown>, now?: () => number): DiagnosticEmitter<E>;
|
|
203
|
-
|
|
204
|
-
export { AUTOMATION_COMMAND_OPERATIONS, AUTOMATION_QUERY_OPERATIONS, AUTOMATION_SOLITARY_OPERATIONS, AutomationCapabilities, AutomationHost, AutomationOperation, ByteSizeBucket, ContentLockPolicy, CountBucket, DocumentOpenDiagnosticCode, EditDiagnosticCode, HEADER_FOOTER_VARIANTS, ReviewDiagnosticCode, SERVER_AUTOMATION_CAPABILITIES, byteSizeBucket, countBucket, createAutomationPaginationProvider, createDiagnosticEmitter, createServerAutomationHost, isAutomationCommand, isSolitaryAutomationCommand, openDiagnosticCode, paginationSnapshotOf, reviewDiagnosticCode, storeEditDiagnosticCode };
|
|
205
|
-
export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationShapeOwnerStory, 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 };
|
package/dist/automation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{i as AUTOMATION_COMMAND_OPERATIONS,h as AUTOMATION_QUERY_OPERATIONS,j as AUTOMATION_SOLITARY_OPERATIONS,g as HEADER_FOOTER_VARIANTS,r as SERVER_AUTOMATION_CAPABILITIES,A as byteSizeBucket,B as countBucket,p as createAutomationPaginationProvider,C as createDiagnosticEmitter,s as createServerAutomationHost,E as diagnosticCause,D as diagnosticCauses,v as diagnosticCodes,H as diagnosticErrorName,I as documentPartKind,G as exceptionCause,u as explainDiagnostic,l as isAutomationCommand,k as isSolitaryAutomationCommand,w as openDiagnosticCode,n as paginationSnapshotOf,y as reviewCodeOfSkip,z as reviewDiagnosticCode,F as reviewSkipOfReason,x as storeEditDiagnosticCode}from'./chunk-5JP3QQF7.js';import'./chunk-KYA4Y2YB.js';import'./chunk-YWJSQA2O.js';import'./chunk-7FUORGCW.js';import'./chunk-KCUXXO3Q.js';import'./chunk-VLQDQNSS.js';import'./chunk-DB7X4Y6O.js';import'./chunk-DYLB5U42.js';import'./chunk-6MF5PN2E.js';
|
package/dist/binding.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk5KOLFKOB_cjs=require('./chunk-5KOLFKOB.cjs');require('./chunk-NKZVMMHU.cjs'),require('./chunk-L74TCGVH.cjs'),require('./chunk-NEM774E3.cjs'),require('./chunk-E5BKDHIP.cjs'),require('./chunk-5HUVQXET.cjs'),require('./chunk-37IYWENL.cjs'),require('./chunk-A5BTVPET.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.o}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.p}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.m}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunk5KOLFKOB_cjs.e}});
|
package/dist/binding.d.ts
CHANGED
|
@@ -9,28 +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, 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-
|
|
15
|
-
import { C as ContentLockPolicy } from './tree-package-store-
|
|
16
|
-
export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-
|
|
12
|
+
import { aC as OoxmlProperty, aD as OoxmlPackageResult, aA as OoxmlPackageRejection } from './tree-op-types-DKvJSH8T.js';
|
|
13
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-BL50pqs8.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-BL50pqs8.js';
|
|
15
|
+
import { C as ContentLockPolicy } from './tree-package-store-Cl3BkWXF.js';
|
|
16
|
+
export { S as StoryScope, a as StoryTargetRejection } from './tree-package-store-Cl3BkWXF.js';
|
|
17
17
|
import { ReviewModuleContribution } from './contracts/modules.js';
|
|
18
18
|
import { EditorView } from 'prosemirror-view';
|
|
19
|
-
import './editor-scope-
|
|
20
|
-
import './custom-node-writes-
|
|
21
|
-
import './
|
|
19
|
+
import './editor-scope-CA6egMaK.js';
|
|
20
|
+
import './custom-node-writes-DparEcZK.js';
|
|
21
|
+
import './drawing-graphic-kind-CK0cMc7H.js';
|
|
22
22
|
import './collaboration/replication.js';
|
|
23
|
-
import './revision-projection-
|
|
23
|
+
import './revision-projection-DwFhgIR0.js';
|
|
24
24
|
import './contracts/types.js';
|
|
25
25
|
import './failure-6KGFrDO9.js';
|
|
26
|
-
import './document-protection-
|
|
27
|
-
import './editor-
|
|
26
|
+
import './document-protection-DdWxihIN.js';
|
|
27
|
+
import './editor-DDCkWqfD.js';
|
|
28
28
|
import './editor-fonts-D_-vjuJi.js';
|
|
29
|
-
import './diagnostic-hints-
|
|
29
|
+
import './diagnostic-hints-BTyb8yzX.js';
|
|
30
30
|
import './contracts/document.js';
|
|
31
31
|
import './contracts/interaction.js';
|
|
32
|
-
import './semantic-interaction-
|
|
33
|
-
import './semantic-records-
|
|
32
|
+
import './semantic-interaction-QeuzEtAk.js';
|
|
33
|
+
import './semantic-records-CzZiWMY8.js';
|
|
34
34
|
import './collaboration.js';
|
|
35
35
|
|
|
36
36
|
/** Attributes carried by a projected paragraph. */
|
package/dist/binding.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{o as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,p as mountTreeSurface,m as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-AVCYP7OY.js';import'./chunk-BL2E4QRA.js';import'./chunk-7FUORGCW.js';import'./chunk-KCUXXO3Q.js';import'./chunk-VLQDQNSS.js';import'./chunk-DB7X4Y6O.js';import'./chunk-DYLB5U42.js';import'./chunk-6MF5PN2E.js';
|