@docx-editor.dev/core 2.29.0 → 2.31.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/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +22 -26
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +47 -40
- package/dist/binding.js +1 -1
- package/dist/bookmark-names-DDuAra_V.d.ts +37 -0
- package/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-BWvaVEhD.d.ts} +577 -243
- package/dist/chunk-243W4WW2.cjs +2 -0
- package/dist/{chunk-G4HOFIKJ.js → chunk-2E2RPEKX.js} +1 -1
- package/dist/chunk-4S24UOPG.js +30 -0
- package/dist/chunk-5JPIEN54.cjs +3 -0
- package/dist/{chunk-7WQ7AAHW.cjs → chunk-5SO5QDMV.cjs} +1 -1
- package/dist/{chunk-UHHYFIDT.cjs → chunk-6IDOVU6L.cjs} +1 -1
- package/dist/chunk-DBOOTED4.cjs +30 -0
- package/dist/chunk-EOTAXOJY.cjs +5 -0
- package/dist/chunk-FDAKJ2SJ.cjs +30 -0
- package/dist/chunk-FNNOJNGY.js +3 -0
- package/dist/chunk-FT33HRZP.js +5 -0
- package/dist/{chunk-W35WTWAO.cjs → chunk-HC6YNKUI.cjs} +1 -1
- package/dist/chunk-HZ66UCIS.js +2 -0
- package/dist/{chunk-MM5QBMTE.cjs → chunk-IBRBNT37.cjs} +1 -1
- package/dist/chunk-IVIN7X43.js +30 -0
- package/dist/chunk-LZY6B6IV.js +4 -0
- package/dist/chunk-MOYYRVFV.cjs +2 -0
- package/dist/{chunk-OMCG63ZF.js → chunk-N6B3BXCL.js} +1 -1
- package/dist/chunk-Q5K2GGNG.js +2 -0
- package/dist/chunk-R2XINWVE.js +7 -0
- package/dist/chunk-SUEXVBPR.js +1 -0
- package/dist/chunk-T2QQHG5C.js +18 -0
- package/dist/{chunk-LSZ6KPKK.js → chunk-VWIJKH4A.js} +1 -1
- package/dist/chunk-WO4V6PNS.cjs +18 -0
- package/dist/chunk-XMJKFURD.cjs +4 -0
- package/dist/{chunk-BY2ACZZ6.cjs → chunk-XSTGE3NI.cjs} +1 -1
- package/dist/chunk-YQWMI6J5.cjs +7 -0
- package/dist/{chunk-RCLZXP3B.js → chunk-ZCJS7D7S.js} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +4 -5
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -4
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +8 -9
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +12 -13
- package/dist/contracts/types.d.ts +2 -2
- package/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-TeUvMP13.d.ts} +2 -2
- package/dist/{diagnostic-context-B8M79cfK.d.ts → diagnostic-context-DJ0P1uZE.d.ts} +3 -2
- package/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-C9JlLz1L.d.ts} +12 -5
- package/dist/{document-protection-CUb55pl_.d.ts → document-protection-C8x3P2J6.d.ts} +1 -1
- package/dist/{editor-CZQZmTIU.d.ts → editor-B2ShlO23.d.ts} +368 -52
- package/dist/{editor-scope-7o9xweiJ.d.ts → editor-scope-C7ke1KJG.d.ts} +57 -4
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +5 -3
- package/dist/editor.d.ts +606 -34
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +17 -15
- package/dist/export.js +2 -2
- package/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-CWh40DYp.d.ts} +1 -1
- package/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
- package/dist/{headless-document-view-pp3q7wIh.d.ts → headless-document-view-qOpaCF82.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +24 -24
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-CWS3j0Xr.d.ts} +3 -2
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +112 -44
- package/dist/layout.js +1 -1
- package/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-QsKh24sM.d.ts} +1 -1
- package/dist/{omml-equation-BUbU0utM.d.ts → omml-equation-BsLAa2lX.d.ts} +38 -8
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +20 -10
- package/dist/output.js +1 -1
- package/dist/{protocol-DYzzz2ej.d.ts → protocol-COZJUKUY.d.ts} +94 -2
- package/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-C_QbCKcH.d.ts} +1 -1
- package/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-Cub9FDa8.d.ts} +2 -2
- package/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-dApRIYpt.d.ts} +1 -1
- package/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-DLzA8sjP.d.ts} +3 -3
- package/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-3yp9o11g.d.ts} +1 -1
- package/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-B-akgRch.d.ts} +207 -139
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +49 -136
- package/dist/store.js +1 -1
- package/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-B8l8DX3Z.d.ts} +612 -428
- package/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-DeLRqohz.d.ts} +28 -13
- package/dist/{types-barrel-DuC5QBNC.d.ts → types-barrel-CkF2JbU4.d.ts} +1146 -745
- package/package.json +2 -2
- package/dist/chunk-236O4YQW.js +0 -2
- package/dist/chunk-6JPL6ZAS.cjs +0 -5
- package/dist/chunk-6ZQP4HQ7.js +0 -3
- package/dist/chunk-BCXH4BXB.js +0 -5
- package/dist/chunk-CAJEXXVG.cjs +0 -4
- package/dist/chunk-CPWLFPWC.js +0 -30
- package/dist/chunk-D7ZMDMPX.cjs +0 -3
- package/dist/chunk-DOHF6FA7.cjs +0 -30
- package/dist/chunk-DVX32P2P.js +0 -27
- package/dist/chunk-E4LOMDNL.js +0 -1
- package/dist/chunk-EKLM7NWB.cjs +0 -7
- package/dist/chunk-G3K63G7P.cjs +0 -27
- package/dist/chunk-JLVBDYVQ.cjs +0 -2
- package/dist/chunk-LQX36Z5P.js +0 -7
- package/dist/chunk-OSFOJTHU.cjs +0 -18
- package/dist/chunk-T6K2QYNZ.cjs +0 -2
- package/dist/chunk-TRGAVV2Y.js +0 -4
- package/dist/chunk-U4JZVSOE.js +0 -2
- package/dist/chunk-YQ5G6LC7.js +0 -18
- package/dist/image-resources-tXLQShoC.d.ts +0 -211
package/dist/automation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkYQWMI6J5_cjs=require('./chunk-YQWMI6J5.cjs');require('./chunk-HC6YNKUI.cjs'),require('./chunk-DBOOTED4.cjs'),require('./chunk-5SO5QDMV.cjs'),require('./chunk-IBRBNT37.cjs'),require('./chunk-243W4WW2.cjs'),require('./chunk-6IDOVU6L.cjs'),require('./chunk-WO4V6PNS.cjs');Object.defineProperty(exports,"AUTOMATION_COMMAND_OPERATIONS",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.e}});Object.defineProperty(exports,"AUTOMATION_QUERY_OPERATIONS",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.d}});Object.defineProperty(exports,"AUTOMATION_SOLITARY_OPERATIONS",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.f}});Object.defineProperty(exports,"HEADER_FOOTER_VARIANTS",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.c}});Object.defineProperty(exports,"SERVER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.n}});Object.defineProperty(exports,"byteSizeBucket",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.v}});Object.defineProperty(exports,"countBucket",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.w}});Object.defineProperty(exports,"createAutomationPaginationProvider",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.l}});Object.defineProperty(exports,"createDiagnosticEmitter",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.x}});Object.defineProperty(exports,"createServerAutomationHost",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.o}});Object.defineProperty(exports,"diagnosticCause",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.z}});Object.defineProperty(exports,"diagnosticCauses",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.y}});Object.defineProperty(exports,"diagnosticCodes",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.r}});Object.defineProperty(exports,"diagnosticErrorName",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.B}});Object.defineProperty(exports,"documentPartKind",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.C}});Object.defineProperty(exports,"exceptionCause",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.A}});Object.defineProperty(exports,"explainDiagnostic",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.q}});Object.defineProperty(exports,"isAutomationCommand",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.h}});Object.defineProperty(exports,"isSolitaryAutomationCommand",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.g}});Object.defineProperty(exports,"openDiagnosticCode",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.s}});Object.defineProperty(exports,"paginationSnapshotOf",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.j}});Object.defineProperty(exports,"reviewDiagnosticCode",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.u}});Object.defineProperty(exports,"storeEditDiagnosticCode",{enumerable:true,get:function(){return chunkYQWMI6J5_cjs.t}});
|
package/dist/automation.d.ts
CHANGED
|
@@ -11,20 +11,19 @@
|
|
|
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 AutomationBatchRequest, e as AutomationBatchResponse, f as AutomationChangeEvent, g as AutomationContentControlLock, h as AutomationContentControlRangeLocation, i as AutomationContentControlScope, j as AutomationContentControlSubtype, k as AutomationContentControlValue, l as AutomationError, m as AutomationErrorCode, n as AutomationFontRead, o as AutomationFontWrite, p as AutomationHandle, q as AutomationHandleRef, r as AutomationObjectKind, s as AutomationOperationKind, t as AutomationOperationResult, u as AutomationPageOrientation, v as AutomationPageSetupRead, w as AutomationPageSetupWrite, x as AutomationParagraphFormatRead, y as AutomationParagraphFormatWrite, z as AutomationParagraphRef, B as AutomationPoint, C as AutomationReadingOrder, D as AutomationSaveResult, E as AutomationSearchOptions, F as AutomationSelectionMode, G as AutomationSpan, H as AutomationSpanRef, I as AutomationTextProjection, J as AutomationUnsubscribe, K as AutomationValue } from './protocol-
|
|
16
|
-
import { c as HeaderFooterVariant, N as NoteKind } from './tree-package-store-
|
|
17
|
-
import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-
|
|
18
|
-
import { H as HeadlessDocumentView } from './headless-document-view-
|
|
19
|
-
import {
|
|
20
|
-
export {
|
|
14
|
+
import { A as AutomationOperation, a as AutomationCapabilities, b as AutomationHost } from './protocol-COZJUKUY.js';
|
|
15
|
+
export { c as AutomationAlignment, d as AutomationBatchRequest, e as AutomationBatchResponse, f as AutomationChangeEvent, g as AutomationContentControlLock, h as AutomationContentControlRangeLocation, i as AutomationContentControlScope, j as AutomationContentControlSubtype, k as AutomationContentControlValue, l as AutomationError, m as AutomationErrorCode, n as AutomationFontRead, o as AutomationFontWrite, p as AutomationHandle, q as AutomationHandleRef, r as AutomationObjectKind, s as AutomationOperationKind, t as AutomationOperationResult, u as AutomationPageOrientation, v as AutomationPageSetupRead, w as AutomationPageSetupWrite, x as AutomationParagraphFormatRead, y as AutomationParagraphFormatWrite, z as AutomationParagraphRef, B as AutomationPoint, C as AutomationReadingOrder, D as AutomationSaveResult, E as AutomationSearchOptions, F as AutomationSelectionMode, G as AutomationSpan, H as AutomationSpanRef, I as AutomationTextProjection, J as AutomationUnsubscribe, K as AutomationValue } from './protocol-COZJUKUY.js';
|
|
16
|
+
import { c as HeaderFooterVariant, N as NoteKind, C as ContentLockPolicy } from './tree-package-store-B8l8DX3Z.js';
|
|
17
|
+
import { T as TextMeasurer, S as SemanticLayout } from './semantic-records-B-akgRch.js';
|
|
18
|
+
import { H as HeadlessDocumentView } from './headless-document-view-qOpaCF82.js';
|
|
19
|
+
import { av as OoxmlPackageLimits, as as OoxmlPackageRejection } from './types-barrel-CkF2JbU4.js';
|
|
20
|
+
export { aw as RevisionAuthorEntry, ab as RevisionAuthorResult, ax as RevisionAuthorSkipReason, ay as RevisionBatchEntry, ac as RevisionBatchResult, az as RevisionBatchSkipDetail, aA as RevisionBatchSkipReason, aB as RevisionSiteRefusal } from './types-barrel-CkF2JbU4.js';
|
|
21
21
|
import { CollaborationModuleContribution } from './collaboration.js';
|
|
22
|
-
import { B as ByteSizeBucket, b as CountBucket, f as DocumentOpenDiagnosticCode,
|
|
23
|
-
export { C as CollaborationDiagnosticCode, c as CustomNodeDiagnosticCode, d as DiagnosticCode, D as DiagnosticErrorName, e as DiagnosticExplanation, a as DocumentPartKind, F as FailureStage,
|
|
24
|
-
export { a as diagnosticCause, d as diagnosticCauses, b as diagnosticErrorName, c as documentPartKind, e as exceptionCause } from './diagnostic-context-
|
|
25
|
-
|
|
26
|
-
import './omml-equation-
|
|
27
|
-
import './editor-scope-7o9xweiJ.js';
|
|
22
|
+
import { B as ByteSizeBucket, b as CountBucket, f as DocumentOpenDiagnosticCode, j as ReviewDiagnosticCode, E as EditDiagnosticCode } from './diagnostic-hints-C9JlLz1L.js';
|
|
23
|
+
export { C as CollaborationDiagnosticCode, c as CustomNodeDiagnosticCode, d as DiagnosticCode, D as DiagnosticErrorName, e as DiagnosticExplanation, a as DocumentPartKind, g as DocumentSaveDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, R as ReviewChangeKind, k as ReviewOperation, l as diagnosticCodes, m as explainDiagnostic } from './diagnostic-hints-C9JlLz1L.js';
|
|
24
|
+
export { a as diagnosticCause, d as diagnosticCauses, b as diagnosticErrorName, c as documentPartKind, e as exceptionCause } from './diagnostic-context-DJ0P1uZE.js';
|
|
25
|
+
export { b as HistoryGroup, d as HistoryGroupOutcome } from './editor-scope-C7ke1KJG.js';
|
|
26
|
+
import './omml-equation-BsLAa2lX.js';
|
|
28
27
|
import './collaboration/replication.js';
|
|
29
28
|
import './failure-NS2lsya4.js';
|
|
30
29
|
|
|
@@ -63,9 +62,9 @@ type AutomationShapeOwnerStory = {
|
|
|
63
62
|
};
|
|
64
63
|
|
|
65
64
|
/** 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"];
|
|
65
|
+
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", "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
66
|
/** 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"];
|
|
67
|
+
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", "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
68
|
/**
|
|
70
69
|
* Commands that commit as a PACKAGE transaction and therefore share a batch with nothing.
|
|
71
70
|
*
|
|
@@ -151,6 +150,11 @@ interface ServerAutomationHostOptions {
|
|
|
151
150
|
* not attach a replica.
|
|
152
151
|
*/
|
|
153
152
|
readonly collaborationModel?: CollaborationModuleContribution;
|
|
153
|
+
/**
|
|
154
|
+
* Opt-in relaxation of `w:lock` for run-property writes (`setFont`): content-locked controls
|
|
155
|
+
* can be restyled but not retyped. Absent, they refuse both.
|
|
156
|
+
*/
|
|
157
|
+
readonly contentLockPolicy?: ContentLockPolicy;
|
|
154
158
|
}
|
|
155
159
|
/**
|
|
156
160
|
* Open DOCX bytes into a headless automation host.
|
|
@@ -160,15 +164,6 @@ interface ServerAutomationHostOptions {
|
|
|
160
164
|
*/
|
|
161
165
|
declare function createServerAutomationHost(bytes: Uint8Array, options?: ServerAutomationHostOptions): ServerAutomationHostResult;
|
|
162
166
|
|
|
163
|
-
/**
|
|
164
|
-
* Anonymous diagnostics, the neutral half: store reasons → public codes, size and count
|
|
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
167
|
/**
|
|
173
168
|
* The public code for a refused open. `too-large` is the one reason two layers share: the
|
|
174
169
|
* archive reports it WITH the limit it crossed, a single XML part reports it without one.
|
|
@@ -179,7 +174,8 @@ declare function openDiagnosticCode(reason: string, limit?: string): DocumentOpe
|
|
|
179
174
|
/**
|
|
180
175
|
* The public code for a store or host refusal reason, or `null` for a reason this table does
|
|
181
176
|
* not know (a sentence, a binding reason). `unsupported-revision:<kind>` counts as
|
|
182
|
-
* `unsupported-revision
|
|
177
|
+
* `unsupported-revision`, except `unsupported-revision:foreign-insertion`, which has its own
|
|
178
|
+
* code.
|
|
183
179
|
*
|
|
184
180
|
* @public
|
|
185
181
|
*/
|
|
@@ -205,5 +201,5 @@ interface DiagnosticEmitter<E> {
|
|
|
205
201
|
*/
|
|
206
202
|
declare function createDiagnosticEmitter<E>(listeners: () => Iterable<(event: E) => unknown>, now?: () => number): DiagnosticEmitter<E>;
|
|
207
203
|
|
|
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 };
|
|
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 };
|
|
209
205
|
export type { AutomationPaginationOptions, AutomationPaginationProvider, AutomationPaginationSnapshot, AutomationStoryId, DiagnosticEmitter, DiagnosticPayload, ServerAutomationHostOptions, ServerAutomationHostRejection, ServerAutomationHostResult };
|
package/dist/automation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{e as AUTOMATION_COMMAND_OPERATIONS,d as AUTOMATION_QUERY_OPERATIONS,f as AUTOMATION_SOLITARY_OPERATIONS,c as HEADER_FOOTER_VARIANTS,n as SERVER_AUTOMATION_CAPABILITIES,
|
|
1
|
+
export{e as AUTOMATION_COMMAND_OPERATIONS,d as AUTOMATION_QUERY_OPERATIONS,f as AUTOMATION_SOLITARY_OPERATIONS,c as HEADER_FOOTER_VARIANTS,n as SERVER_AUTOMATION_CAPABILITIES,v as byteSizeBucket,w as countBucket,l as createAutomationPaginationProvider,x as createDiagnosticEmitter,o as createServerAutomationHost,z as diagnosticCause,y as diagnosticCauses,r as diagnosticCodes,B as diagnosticErrorName,C as documentPartKind,A as exceptionCause,q as explainDiagnostic,h as isAutomationCommand,g as isSolitaryAutomationCommand,s as openDiagnosticCode,j as paginationSnapshotOf,u as reviewDiagnosticCode,t as storeEditDiagnosticCode}from'./chunk-R2XINWVE.js';import'./chunk-SUEXVBPR.js';import'./chunk-4S24UOPG.js';import'./chunk-ZCJS7D7S.js';import'./chunk-VWIJKH4A.js';import'./chunk-Q5K2GGNG.js';import'./chunk-N6B3BXCL.js';import'./chunk-T2QQHG5C.js';
|
package/dist/binding.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkEOTAXOJY_cjs=require('./chunk-EOTAXOJY.cjs');require('./chunk-XSTGE3NI.cjs'),require('./chunk-5SO5QDMV.cjs'),require('./chunk-IBRBNT37.cjs'),require('./chunk-243W4WW2.cjs'),require('./chunk-6IDOVU6L.cjs'),require('./chunk-WO4V6PNS.cjs');Object.defineProperty(exports,"PROJECTION_ORIGIN",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.l}});Object.defineProperty(exports,"bodyParagraphs",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.c}});Object.defineProperty(exports,"docToTreeOps",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.f}});Object.defineProperty(exports,"mountTreeSurface",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.m}});Object.defineProperty(exports,"openTreeSession",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.j}});Object.defineProperty(exports,"partHasNode",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.g}});Object.defineProperty(exports,"reconcileDoc",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.h}});Object.defineProperty(exports,"runPropsOf",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.b}});Object.defineProperty(exports,"treeSchema",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.a}});Object.defineProperty(exports,"treeToDoc",{enumerable:true,get:function(){return chunkEOTAXOJY_cjs.e}});
|
package/dist/binding.d.ts
CHANGED
|
@@ -9,26 +9,26 @@
|
|
|
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 { at as OoxmlProperty, au as OoxmlPackageResult, as as OoxmlPackageRejection } from './types-barrel-CkF2JbU4.js';
|
|
13
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-DeLRqohz.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-DeLRqohz.js';
|
|
15
|
+
import { C as ContentLockPolicy } from './tree-package-store-B8l8DX3Z.js';
|
|
16
|
+
export { S as StoryScope, b as StoryTargetRejection } from './tree-package-store-B8l8DX3Z.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-C7ke1KJG.js';
|
|
20
|
+
import './custom-node-writes-TeUvMP13.js';
|
|
21
|
+
import './headless-document-view-qOpaCF82.js';
|
|
22
22
|
import './collaboration/replication.js';
|
|
23
|
-
import './semantic-records-
|
|
24
|
-
import './omml-equation-
|
|
25
|
-
import './editor-
|
|
23
|
+
import './semantic-records-B-akgRch.js';
|
|
24
|
+
import './omml-equation-BsLAa2lX.js';
|
|
25
|
+
import './editor-B2ShlO23.js';
|
|
26
|
+
import './diagnostic-hints-C9JlLz1L.js';
|
|
27
|
+
import './failure-NS2lsya4.js';
|
|
26
28
|
import './contracts/document.js';
|
|
27
29
|
import './contracts/interaction.js';
|
|
28
|
-
import './semantic-interaction-
|
|
29
|
-
import './document-protection-
|
|
30
|
-
import './failure-NS2lsya4.js';
|
|
31
|
-
import './diagnostic-hints-BeVjfNOv.js';
|
|
30
|
+
import './semantic-interaction-dApRIYpt.js';
|
|
31
|
+
import './document-protection-C8x3P2J6.js';
|
|
32
32
|
import './collaboration.js';
|
|
33
33
|
|
|
34
34
|
/** Attributes carried by a projected paragraph. */
|
|
@@ -56,28 +56,22 @@ declare const treeSchema: Schema<'doc' | 'paragraph' | 'text' | 'tab' | 'hardBre
|
|
|
56
56
|
/** The accepted run properties carried by a text node, or an empty list. */
|
|
57
57
|
declare function runPropsOf(node: Node): readonly OoxmlProperty[];
|
|
58
58
|
|
|
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;
|
|
59
|
+
/** How `openTreeSession` opens a package. */
|
|
60
|
+
interface OpenTreeSessionOptions {
|
|
69
61
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* races the next keystroke.
|
|
62
|
+
* The review module's derivation hooks, contributed through the editor's
|
|
63
|
+
* `EditorModule` seam. Absent — the free engine — the session's
|
|
64
|
+
* `reviewItems()` reports the typed empty queue; parse, preservation, and
|
|
65
|
+
* `hasReviewContent` are unaffected.
|
|
75
66
|
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
|
|
67
|
+
readonly reviewModel?: ReviewModuleContribution;
|
|
68
|
+
/**
|
|
69
|
+
* Opt-in relaxation of `w:lock` for run formatting: `contentLocked` / `sdtContentLocked`
|
|
70
|
+
* controls can be restyled (bold, color, font …) but not retyped. Absent, they refuse both.
|
|
71
|
+
* See {@link ContentLockPolicy}.
|
|
72
|
+
*/
|
|
73
|
+
readonly contentLockPolicy?: ContentLockPolicy;
|
|
79
74
|
}
|
|
80
|
-
|
|
81
75
|
/**
|
|
82
76
|
* Why bytes could not be opened: any bounded-reader rejection, plus the package that parsed but
|
|
83
77
|
* carried no main document tree.
|
|
@@ -99,15 +93,28 @@ type OpenTreeSessionResult = {
|
|
|
99
93
|
readonly reason: 'no-main-document-tree';
|
|
100
94
|
readonly detail?: string;
|
|
101
95
|
};
|
|
102
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Binding-only session methods that exchange ProseMirror projections.
|
|
98
|
+
*
|
|
99
|
+
* Editor surfaces expose {@link TreeDocxSessionView}. Only the binding lane sees this extension.
|
|
100
|
+
*/
|
|
101
|
+
interface TreeDocxSession extends TreeDocxSessionView {
|
|
102
|
+
/** Project the current BODY revision into a ProseMirror doc. */
|
|
103
|
+
projectDoc(): Node;
|
|
104
|
+
/** Re-project incrementally from the last committed change, reusing untouched paragraphs. */
|
|
105
|
+
reconcile(previousDoc: Node): Node;
|
|
103
106
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
107
|
+
* Whether the last commit changed the BLOCK SEQUENCE (a split, join, insert or delete).
|
|
108
|
+
*
|
|
109
|
+
* A host needs this to decide whether the view must be re-projected at all. After a pure
|
|
110
|
+
* text edit, the view already holds what the model holds. Re-projecting wastes work and
|
|
111
|
+
* races the next keystroke.
|
|
108
112
|
*/
|
|
109
|
-
|
|
113
|
+
lastCommitWasStructural(): boolean;
|
|
114
|
+
/** Map an edited BODY doc to tree ops and commit them as one transaction. */
|
|
115
|
+
applyPmDoc(doc: Node): TreeApplyResult;
|
|
110
116
|
}
|
|
117
|
+
|
|
111
118
|
/**
|
|
112
119
|
* Open DOCX bytes into a tree-backed session.
|
|
113
120
|
*
|
package/dist/binding.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{l as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,m as mountTreeSurface,j as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-
|
|
1
|
+
export{l as PROJECTION_ORIGIN,c as bodyParagraphs,f as docToTreeOps,m as mountTreeSurface,j as openTreeSession,g as partHasNode,h as reconcileDoc,b as runPropsOf,a as treeSchema,e as treeToDoc}from'./chunk-FT33HRZP.js';import'./chunk-2E2RPEKX.js';import'./chunk-ZCJS7D7S.js';import'./chunk-VWIJKH4A.js';import'./chunk-Q5K2GGNG.js';import'./chunk-N6B3BXCL.js';import'./chunk-T2QQHG5C.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** The longest name a bookmark is written with. */
|
|
2
|
+
declare const MAX_AUTHORED_BOOKMARK_NAME_LENGTH = 40;
|
|
3
|
+
/**
|
|
4
|
+
* Why a name cannot be written, or null when it can.
|
|
5
|
+
*
|
|
6
|
+
* - `empty`: no characters.
|
|
7
|
+
* - `tooLong`: more than {@link MAX_AUTHORED_BOOKMARK_NAME_LENGTH} characters.
|
|
8
|
+
* - `invalidStart`: the first character is not a letter or an underscore.
|
|
9
|
+
* - `invalidCharacter`: a later character is not a letter, a digit or an underscore.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
type BookmarkNameProblem = 'empty' | 'tooLong' | 'invalidStart' | 'invalidCharacter';
|
|
14
|
+
/**
|
|
15
|
+
* Check a name before it is written. Measured in code points, so a letter outside the Basic
|
|
16
|
+
* Multilingual Plane counts once.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
declare function bookmarkNameProblem(name: string): BookmarkNameProblem | null;
|
|
21
|
+
/**
|
|
22
|
+
* Whether a bookmark is hidden: its name starts with an underscore. Hidden bookmarks are the
|
|
23
|
+
* ones applications write for themselves, such as the targets of a table of contents.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
declare function isHiddenBookmarkName(name: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The key two names are compared by. Names are case-insensitive, so `Intro` and `intro`
|
|
30
|
+
* share a key.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
declare function bookmarkNameKey(name: string): string;
|
|
35
|
+
|
|
36
|
+
export { MAX_AUTHORED_BOOKMARK_NAME_LENGTH as M, bookmarkNameProblem as a, bookmarkNameKey as b, isHiddenBookmarkName as i };
|
|
37
|
+
export type { BookmarkNameProblem as B };
|