@docx-editor.dev/core 2.9.2 → 2.11.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.cts +14 -5
- package/dist/automation.d.ts +14 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +78 -13
- package/dist/binding.d.ts +78 -13
- package/dist/binding.js +1 -1
- package/dist/chunk-34BNQUD4.js +10 -0
- package/dist/chunk-5AVHO75P.cjs +19 -0
- package/dist/chunk-6HMSC7UV.js +2 -0
- package/dist/chunk-6JIJOZDW.js +1 -0
- package/dist/chunk-76Y3Y45J.cjs +2 -0
- package/dist/chunk-BP7ANXGA.js +1 -0
- package/dist/chunk-BTQKU64Q.cjs +1 -0
- package/dist/chunk-CRZR6K5Z.js +19 -0
- package/dist/chunk-D5EHDHYV.js +1 -0
- package/dist/chunk-EJATEGJZ.cjs +1 -0
- package/dist/{chunk-PSZH2VXP.js → chunk-GOEBQ26R.js} +1 -1
- package/dist/chunk-GRDFEH5Q.cjs +2 -0
- package/dist/chunk-GWV65NQW.cjs +10 -0
- package/dist/chunk-GXLZCXEH.js +2 -0
- package/dist/chunk-JUQOPVSK.cjs +2 -0
- package/dist/chunk-LAETEBHD.js +1 -0
- package/dist/chunk-M6Z3KFXM.cjs +5 -0
- package/dist/{chunk-YMYCPY5Y.cjs → chunk-OHJQ7GPZ.cjs} +1 -1
- package/dist/chunk-UQFOYZJO.cjs +18 -0
- package/dist/chunk-WPQMPHNR.cjs +1 -0
- package/dist/chunk-WXQ245MQ.js +18 -0
- package/dist/chunk-WZHIFNSU.js +5 -0
- package/dist/chunk-X7A5XART.js +2 -0
- package/dist/chunk-ZKWRCLT2.cjs +1 -0
- package/dist/collaboration/replication.cjs +1 -0
- package/dist/collaboration/replication.d.cts +216 -0
- package/dist/collaboration/replication.d.ts +216 -0
- package/dist/collaboration/replication.js +1 -0
- package/dist/collaboration.cjs +1 -0
- package/dist/collaboration.d.cts +176 -0
- package/dist/collaboration.d.ts +176 -0
- package/dist/collaboration.js +1 -0
- package/dist/contracts/document.d.cts +6 -1
- package/dist/contracts/document.d.ts +6 -1
- package/dist/contracts/editor.cjs +1 -1
- package/dist/contracts/editor.d.cts +8 -9
- package/dist/contracts/editor.d.ts +8 -9
- package/dist/contracts/editor.js +1 -1
- package/dist/contracts/interaction.d.cts +8 -9
- package/dist/contracts/interaction.d.ts +8 -9
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.cts +20 -8
- package/dist/contracts/modules.d.ts +20 -8
- package/dist/contracts/modules.js +1 -1
- package/dist/custom-node-writes-CwkYRw3V.d.cts +310 -0
- package/dist/custom-node-writes-JfTn-Sy6.d.ts +310 -0
- package/dist/document-properties-D6Ahr8D6.d.cts +28 -0
- package/dist/document-properties-D6Ahr8D6.d.ts +28 -0
- package/dist/{editor-Cvd7Geoc.d.ts → editor-BogcVHXk.d.ts} +176 -59
- package/dist/{editor-cAEf1uXW.d.cts → editor-C8edZgy5.d.cts} +176 -59
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -7698
- package/dist/editor.d.cts +26 -25
- package/dist/editor.d.ts +26 -25
- package/dist/editor.js +1 -1
- package/dist/failure-BnGjoXf0.d.cts +64 -0
- package/dist/failure-BnGjoXf0.d.ts +64 -0
- package/dist/{index-DRqY5JVF.d.ts → index-BNv-ZLQP.d.ts} +327 -86
- package/dist/{index-wb-iOxfh.d.cts → index-Dn0lOp9Z.d.cts} +327 -86
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +20 -19
- package/dist/index.d.ts +20 -19
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +92 -55
- package/dist/layout.d.ts +92 -55
- package/dist/layout.js +1 -1
- package/dist/{note-properties-jvnw_DGG.d.ts → note-properties-BmoSdyKS.d.ts} +1 -1
- package/dist/{note-properties-CQlxjic_.d.cts → note-properties-BvGfHk5e.d.cts} +1 -1
- package/dist/{omml-equation-Dd3mBep-.d.ts → omml-equation-Ciq5rgb7.d.ts} +1 -1
- package/dist/{omml-equation-BD-LsmWE.d.cts → omml-equation-CqQOt_dD.d.cts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -8
- package/dist/output.d.ts +6 -8
- package/dist/output.js +1 -1
- package/dist/{protocol-UuZOcOp7.d.cts → protocol-BB-WP3zk.d.cts} +2 -2
- package/dist/{protocol-C7ahrdUx.d.ts → protocol-Ckl7hWsv.d.ts} +2 -2
- package/dist/{review-items-bdGxFWNA.d.ts → review-items-BdeLNRi2.d.cts} +1 -2
- package/dist/{review-items-B8tffIXj.d.cts → review-items-CkYyXhXM.d.ts} +1 -2
- package/dist/{review-reads-Bxz03tHG.d.cts → review-reads-BOLSBm5w.d.cts} +2 -2
- package/dist/{review-reads-CHODU0LI.d.ts → review-reads-Crf0Xn42.d.ts} +2 -2
- package/dist/{revision-projection-CILpvv4M.d.ts → revision-projection-Ae2CWa8E.d.ts} +1 -1
- package/dist/{revision-projection-Cc4wz30g.d.cts → revision-projection-C2S8PSQm.d.cts} +1 -1
- package/dist/{semantic-cell-selection-BPzx6DdT.d.cts → semantic-cell-selection-C0OFD4D9.d.cts} +4 -4
- package/dist/{semantic-cell-selection-CsHcr-yk.d.ts → semantic-cell-selection-DdmoxC-y.d.ts} +4 -4
- package/dist/{semantic-interaction-D-RZ9Ust.d.ts → semantic-interaction-COyhZ9WH.d.ts} +21 -2
- package/dist/{semantic-interaction-BfWDD_0V.d.cts → semantic-interaction-Cs2jErnt.d.cts} +21 -2
- package/dist/{semantic-paint-WhVtSDJK.d.ts → semantic-paint-UHaj3sBY.d.cts} +2 -2
- package/dist/{semantic-paint-Bd7EqzXV.d.cts → semantic-paint-vA-oLSdV.d.ts} +2 -2
- package/dist/{semantic-records-DadVT_E1.d.cts → semantic-records-5AOQJmLX.d.cts} +20 -5
- package/dist/{semantic-records-DCt-ZwKU.d.ts → semantic-records-9xhwbJ23.d.ts} +20 -5
- package/dist/{shaped-measurer-CninrHr_.d.cts → shaped-measurer-NeF2mPSu.d.cts} +1 -1
- package/dist/{shaped-measurer-B9f4A7QA.d.ts → shaped-measurer-vzsY88oK.d.ts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +193 -19
- package/dist/store.d.ts +193 -19
- package/dist/store.js +1 -1
- package/dist/tree-op-types-BPyXNxyL.d.cts +3053 -0
- package/dist/tree-op-types-DnzAOnc9.d.ts +3053 -0
- package/dist/{custom-node-writes-D6SGwebL.d.ts → tree-package-fragment-BjZ3RWAS.d.cts} +128 -312
- package/dist/{custom-node-writes-Dy3b20PS.d.cts → tree-package-fragment-CDER0G3B.d.ts} +128 -312
- package/dist/{tree-session-ZuBFOhIh.d.ts → tree-session-contract-BF2FVBOM.d.cts} +52 -106
- package/dist/{tree-session-Df02ajqc.d.cts → tree-session-contract-DhdsFT_z.d.ts} +52 -106
- package/dist/{tree-store-B_sJBMIS.d.cts → tree-store-CNZ3O83s.d.ts} +130 -25
- package/dist/{tree-store-DgETo6Mf.d.ts → tree-store-DfZi7FqY.d.cts} +130 -25
- package/package.json +14 -3
- package/dist/chunk-6JWP2H7K.js +0 -2
- package/dist/chunk-6KNLLEUW.cjs +0 -18
- package/dist/chunk-7ADTI533.cjs +0 -10
- package/dist/chunk-7ETDCPF6.cjs +0 -2
- package/dist/chunk-7I3BSGGS.js +0 -1
- package/dist/chunk-7UU5YFCD.cjs +0 -2
- package/dist/chunk-7VQ7YLW3.cjs +0 -1
- package/dist/chunk-CKDAK3MV.js +0 -10
- package/dist/chunk-DIMEYVNS.js +0 -2
- package/dist/chunk-GQQOL4PV.js +0 -1
- package/dist/chunk-H2656QDI.cjs +0 -1
- package/dist/chunk-KQGENNL5.cjs +0 -15
- package/dist/chunk-LIXPSV4T.js +0 -18
- package/dist/chunk-O4UULRAQ.cjs +0 -5
- package/dist/chunk-SIIFNE6U.js +0 -15
- package/dist/chunk-VXYECPKA.js +0 -5
- package/dist/hf-references-Dvk6De4Q.d.cts +0 -70
- package/dist/hf-references-z5Y4N1ab.d.ts +0 -70
- package/dist/image-resources-BgA9EQxY.d.ts +0 -203
- package/dist/image-resources-BiA-IXgo.d.cts +0 -203
- package/dist/note-nodes-BNCANoGN.d.ts +0 -108
- package/dist/note-nodes-DL-Au22P.d.cts +0 -108
- package/dist/ooxml-package-CdEy9ufK.d.cts +0 -1222
- package/dist/ooxml-package-CdEy9ufK.d.ts +0 -1222
- package/dist/tree-op-types-CnRb7AYo.d.ts +0 -1589
- package/dist/tree-op-types-D1vNJ7XC.d.cts +0 -1589
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
|
|
2
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-
|
|
3
|
-
export { A as AuthoredNoteNumbering, C as CanResult,
|
|
4
|
-
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-
|
|
2
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-CkYyXhXM.js';
|
|
3
|
+
export { A as AuthoredNoteNumbering, C as CanResult, r as DocumentChange, t as DocumentEditingMode, u as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, w as EditorCommandShape, x as EditorCommands, y as EditorError, z as EditorEvents, E as EditorFontError, B as EditorFontErrorCode, G as EditorFormatPainterCommands, H as EditorHeaderFooterCommands, J as EditorNoteCommands, K as EditorPosition, L as EditorQueries, M as EditorQuery, N as EditorQueryResults, O as EditorScope, P as EditorSelection, a as EditorSnapshot, F as FontConfiguration, n as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, Q as FormatPainterLevel, R as FormatPainterMode, m as FormatPainterSurfaceState, U as FurnitureVariant, W as HeaderFooterSlotArgs, X as HeaderFooterState, Y as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, a1 as NoteKind, a2 as NotePropertiesSide, a3 as NotePropertiesState, a4 as PageSetup, a5 as ResolvedNoteNumbering, a6 as ReviewActivationOptions, a7 as ReviewCommentPlacement, a8 as ReviewCustomPlacement, a9 as ReviewItemPlacement, aa as ReviewItemPlacementBase, ab as ReviewItemQuery, ac as ReviewRevisionPlacement, S as SelectedImageState, ad as SemanticIdentity, ae as SemanticTarget, T as TableBorderEdgeTarget, o as TableBorderSpec, p as TableBorderStyle, af as TableBorderTarget, ag as TableCellVerticalAlignment, ah as TableColumnDividerResizeTarget, ai as TableColumnOccurrenceTarget, q as TableContext, aj as TableRightEdgeResizeTarget, ak as TableRowOccurrenceTarget, al as TextMatch, V as ViewScope, am as ZoomFitTarget, Z as ZoomMode } from '../editor-BogcVHXk.js';
|
|
4
|
+
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-COyhZ9WH.js';
|
|
5
|
+
export { z as DrawingHorizontalReferenceFrame, D as DrawingKind, w as DrawingLocks, v as DrawingPositionInput, A as DrawingVerticalReferenceFrame, x as ImageResourceState, u as ImageWrapTarget, P as PreservedImageMime, t as RenderableImageMime, R as RevisionAddress, y as SupportedImageMime, V as ValidatedImageBytesHandle, B as VectorImageMime } from '../tree-op-types-DnzAOnc9.js';
|
|
5
6
|
export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './types.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '../
|
|
9
|
-
import '../
|
|
10
|
-
import '../revision-projection-CILpvv4M.js';
|
|
11
|
-
import '../omml-equation-Dd3mBep-.js';
|
|
7
|
+
import '../failure-BnGjoXf0.js';
|
|
8
|
+
import '../semantic-records-9xhwbJ23.js';
|
|
9
|
+
import '../revision-projection-Ae2CWa8E.js';
|
|
10
|
+
import '../omml-equation-Ciq5rgb7.js';
|
package/dist/contracts/editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as EditorFontError}from'../chunk-
|
|
1
|
+
export{a as EditorFontError}from'../chunk-GOEBQ26R.js';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { O as EditorScope, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, ad as SemanticIdentity, ae as SemanticTarget, V as ViewScope } from '../editor-C8edZgy5.cjs';
|
|
2
2
|
import './document.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
|
-
import '../review-items-
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../semantic-
|
|
8
|
-
import '../
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../omml-equation-BD-LsmWE.cjs';
|
|
4
|
+
import '../review-items-BdeLNRi2.cjs';
|
|
5
|
+
import '../tree-op-types-BPyXNxyL.cjs';
|
|
6
|
+
import '../semantic-interaction-Cs2jErnt.cjs';
|
|
7
|
+
import '../semantic-records-5AOQJmLX.cjs';
|
|
8
|
+
import '../revision-projection-C2S8PSQm.cjs';
|
|
9
|
+
import '../omml-equation-CqQOt_dD.cjs';
|
|
10
|
+
import '../failure-BnGjoXf0.cjs';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { O as EditorScope, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, ad as SemanticIdentity, ae as SemanticTarget, V as ViewScope } from '../editor-BogcVHXk.js';
|
|
2
2
|
import './document.js';
|
|
3
3
|
import './types.js';
|
|
4
|
-
import '../review-items-
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../semantic-
|
|
8
|
-
import '../
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../omml-equation-Dd3mBep-.js';
|
|
4
|
+
import '../review-items-CkYyXhXM.js';
|
|
5
|
+
import '../tree-op-types-DnzAOnc9.js';
|
|
6
|
+
import '../semantic-interaction-COyhZ9WH.js';
|
|
7
|
+
import '../semantic-records-9xhwbJ23.js';
|
|
8
|
+
import '../revision-projection-Ae2CWa8E.js';
|
|
9
|
+
import '../omml-equation-Ciq5rgb7.js';
|
|
10
|
+
import '../failure-BnGjoXf0.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZKWRCLT2_cjs=require('../chunk-ZKWRCLT2.cjs');Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunkZKWRCLT2_cjs.a}});
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { O as OoxmlPart } from '../
|
|
2
|
-
export { R as RevisionAddress } from '../tree-op-types-
|
|
3
|
-
import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-
|
|
4
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-
|
|
5
|
-
import {
|
|
1
|
+
import { O as OoxmlPart } from '../tree-op-types-BPyXNxyL.cjs';
|
|
2
|
+
export { R as RevisionAddress } from '../tree-op-types-BPyXNxyL.cjs';
|
|
3
|
+
import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-BdeLNRi2.cjs';
|
|
4
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-BdeLNRi2.cjs';
|
|
5
|
+
import { CollaborationModuleContribution } from '../collaboration.cjs';
|
|
6
|
+
import { R as RevisionDisplayMode } from '../revision-projection-C2S8PSQm.cjs';
|
|
6
7
|
import './types.cjs';
|
|
8
|
+
import '../tree-package-fragment-BjZ3RWAS.cjs';
|
|
9
|
+
import '../tree-store-DfZi7FqY.cjs';
|
|
10
|
+
import '../collaboration/replication.cjs';
|
|
11
|
+
import '../failure-BnGjoXf0.cjs';
|
|
7
12
|
|
|
8
13
|
/**
|
|
9
14
|
* `@docx-editor.dev/core/contracts/modules` — the `EditorModule` seam.
|
|
@@ -59,6 +64,7 @@ interface ReviewModuleContribution {
|
|
|
59
64
|
*/
|
|
60
65
|
readonly revisionItemsOfParagraph: (part: OoxmlPart, paragraphId: string) => readonly ReviewRevisionItem[];
|
|
61
66
|
}
|
|
67
|
+
|
|
62
68
|
/**
|
|
63
69
|
* One registered capability module. Registration is construction-time
|
|
64
70
|
* (`createDocxEditor({ modules })`) and immutable for the instance's lifetime.
|
|
@@ -70,6 +76,11 @@ interface EditorModule {
|
|
|
70
76
|
readonly id: string;
|
|
71
77
|
/** Review capability: queue derivation, commands gate, display modes. */
|
|
72
78
|
readonly review?: ReviewModuleContribution;
|
|
79
|
+
/**
|
|
80
|
+
* Collaboration replica. Absent, the editor stays single-user: local undo
|
|
81
|
+
* stays the authority, and `snapshot().collaborationStatus` is `'inactive'`.
|
|
82
|
+
*/
|
|
83
|
+
readonly collaboration?: CollaborationModuleContribution;
|
|
73
84
|
/**
|
|
74
85
|
* Custom inline node definitions. Reserved: the definition shape lands with
|
|
75
86
|
* the custom-nodes lane; the registry carries them opaquely until then.
|
|
@@ -101,11 +112,12 @@ interface EditorModule {
|
|
|
101
112
|
}
|
|
102
113
|
/**
|
|
103
114
|
* The resolved registry the editor instance holds: at most one review
|
|
104
|
-
* contribution
|
|
105
|
-
* registration order.
|
|
115
|
+
* contribution and at most one collaboration contribution (first registration
|
|
116
|
+
* wins for each), all custom node definitions in registration order.
|
|
106
117
|
*/
|
|
107
118
|
interface EditorModuleRegistry {
|
|
108
119
|
readonly review: ReviewModuleContribution | null;
|
|
120
|
+
readonly collaboration: CollaborationModuleContribution | null;
|
|
109
121
|
readonly customNodes: readonly unknown[];
|
|
110
122
|
/** Every claimed payload namespace, deduplicated, in registration order. */
|
|
111
123
|
readonly customNodePayloadNamespaces: readonly string[];
|
|
@@ -115,4 +127,4 @@ interface EditorModuleRegistry {
|
|
|
115
127
|
/** Resolve construction-time modules into the registry the instance dispatches over. */
|
|
116
128
|
declare function resolveEditorModules(modules: readonly EditorModule[] | undefined): EditorModuleRegistry;
|
|
117
129
|
|
|
118
|
-
export { type CollectReviewItems, type EditorModule, type EditorModuleRegistry, OoxmlPart, ReviewItem, ReviewModelInput, type ReviewModuleContribution, ReviewRevisionItem, RevisionDisplayMode, resolveEditorModules };
|
|
130
|
+
export { CollaborationModuleContribution, type CollectReviewItems, type EditorModule, type EditorModuleRegistry, OoxmlPart, ReviewItem, ReviewModelInput, type ReviewModuleContribution, ReviewRevisionItem, RevisionDisplayMode, resolveEditorModules };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { O as OoxmlPart } from '../
|
|
2
|
-
export { R as RevisionAddress } from '../tree-op-types-
|
|
3
|
-
import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-
|
|
4
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-
|
|
5
|
-
import {
|
|
1
|
+
import { O as OoxmlPart } from '../tree-op-types-DnzAOnc9.js';
|
|
2
|
+
export { R as RevisionAddress } from '../tree-op-types-DnzAOnc9.js';
|
|
3
|
+
import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-CkYyXhXM.js';
|
|
4
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-CkYyXhXM.js';
|
|
5
|
+
import { CollaborationModuleContribution } from '../collaboration.js';
|
|
6
|
+
import { R as RevisionDisplayMode } from '../revision-projection-Ae2CWa8E.js';
|
|
6
7
|
import './types.js';
|
|
8
|
+
import '../tree-package-fragment-CDER0G3B.js';
|
|
9
|
+
import '../tree-store-CNZ3O83s.js';
|
|
10
|
+
import '../collaboration/replication.js';
|
|
11
|
+
import '../failure-BnGjoXf0.js';
|
|
7
12
|
|
|
8
13
|
/**
|
|
9
14
|
* `@docx-editor.dev/core/contracts/modules` — the `EditorModule` seam.
|
|
@@ -59,6 +64,7 @@ interface ReviewModuleContribution {
|
|
|
59
64
|
*/
|
|
60
65
|
readonly revisionItemsOfParagraph: (part: OoxmlPart, paragraphId: string) => readonly ReviewRevisionItem[];
|
|
61
66
|
}
|
|
67
|
+
|
|
62
68
|
/**
|
|
63
69
|
* One registered capability module. Registration is construction-time
|
|
64
70
|
* (`createDocxEditor({ modules })`) and immutable for the instance's lifetime.
|
|
@@ -70,6 +76,11 @@ interface EditorModule {
|
|
|
70
76
|
readonly id: string;
|
|
71
77
|
/** Review capability: queue derivation, commands gate, display modes. */
|
|
72
78
|
readonly review?: ReviewModuleContribution;
|
|
79
|
+
/**
|
|
80
|
+
* Collaboration replica. Absent, the editor stays single-user: local undo
|
|
81
|
+
* stays the authority, and `snapshot().collaborationStatus` is `'inactive'`.
|
|
82
|
+
*/
|
|
83
|
+
readonly collaboration?: CollaborationModuleContribution;
|
|
73
84
|
/**
|
|
74
85
|
* Custom inline node definitions. Reserved: the definition shape lands with
|
|
75
86
|
* the custom-nodes lane; the registry carries them opaquely until then.
|
|
@@ -101,11 +112,12 @@ interface EditorModule {
|
|
|
101
112
|
}
|
|
102
113
|
/**
|
|
103
114
|
* The resolved registry the editor instance holds: at most one review
|
|
104
|
-
* contribution
|
|
105
|
-
* registration order.
|
|
115
|
+
* contribution and at most one collaboration contribution (first registration
|
|
116
|
+
* wins for each), all custom node definitions in registration order.
|
|
106
117
|
*/
|
|
107
118
|
interface EditorModuleRegistry {
|
|
108
119
|
readonly review: ReviewModuleContribution | null;
|
|
120
|
+
readonly collaboration: CollaborationModuleContribution | null;
|
|
109
121
|
readonly customNodes: readonly unknown[];
|
|
110
122
|
/** Every claimed payload namespace, deduplicated, in registration order. */
|
|
111
123
|
readonly customNodePayloadNamespaces: readonly string[];
|
|
@@ -115,4 +127,4 @@ interface EditorModuleRegistry {
|
|
|
115
127
|
/** Resolve construction-time modules into the registry the instance dispatches over. */
|
|
116
128
|
declare function resolveEditorModules(modules: readonly EditorModule[] | undefined): EditorModuleRegistry;
|
|
117
129
|
|
|
118
|
-
export { type CollectReviewItems, type EditorModule, type EditorModuleRegistry, OoxmlPart, ReviewItem, ReviewModelInput, type ReviewModuleContribution, ReviewRevisionItem, RevisionDisplayMode, resolveEditorModules };
|
|
130
|
+
export { CollaborationModuleContribution, type CollectReviewItems, type EditorModule, type EditorModuleRegistry, OoxmlPart, ReviewItem, ReviewModelInput, type ReviewModuleContribution, ReviewRevisionItem, RevisionDisplayMode, resolveEditorModules };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as resolveEditorModules}from'../chunk-
|
|
1
|
+
export{a as resolveEditorModules}from'../chunk-D5EHDHYV.js';
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { b as OoxmlPackage, O as OoxmlPart, a as OoxmlNode, r as TreeOpRejection } from './tree-op-types-BPyXNxyL.cjs';
|
|
2
|
+
import { T as TreeModelChange, a as TreeDocumentStore } from './tree-store-DfZi7FqY.cjs';
|
|
3
|
+
|
|
4
|
+
/** Which of a family's four faces an embedded font relationship supplies. */
|
|
5
|
+
type FontStyleKey = 'regular' | 'bold' | 'italic' | 'boldItalic';
|
|
6
|
+
/**
|
|
7
|
+
* One font whose bytes travel inside the package.
|
|
8
|
+
*
|
|
9
|
+
* The family name is the DOCUMENT's and is not validated — it is attacker-controlled, so it is
|
|
10
|
+
* escaped into CSS and never registered globally on `document.fonts`, where it would shadow the
|
|
11
|
+
* host application's own fonts.
|
|
12
|
+
*/
|
|
13
|
+
interface EmbeddedFont {
|
|
14
|
+
/** The family as the document names it. Not validated against anything. */
|
|
15
|
+
readonly family: string;
|
|
16
|
+
readonly style: FontStyleKey;
|
|
17
|
+
/** Deobfuscated bytes, ready to be offered to a font validator. */
|
|
18
|
+
readonly bytes: Uint8Array;
|
|
19
|
+
/** The part they came from, for diagnostics. */
|
|
20
|
+
readonly partName: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Undo Word's embedded-font obfuscation (ECMA-376 Part 4 §2.8.1).
|
|
24
|
+
*
|
|
25
|
+
* The key is the `w:fontKey` GUID's 16 bytes in REVERSED order — not the per-group
|
|
26
|
+
* little-endian reading a GUID usually gets. It is XORed over the first 32 bytes of the
|
|
27
|
+
* part, applied twice. Getting the order wrong produces a font that looks corrupt rather
|
|
28
|
+
* than obfuscated, which is indistinguishable from a damaged file at the point it fails.
|
|
29
|
+
*
|
|
30
|
+
* Pure XOR, so the same operation obfuscates and deobfuscates.
|
|
31
|
+
*/
|
|
32
|
+
declare function deobfuscateFont(bytes: Uint8Array, fontKey: string): Uint8Array | null;
|
|
33
|
+
/** Limits and instrumentation for reading embedded fonts out of a package. */
|
|
34
|
+
interface ReadEmbeddedFontsOptions {
|
|
35
|
+
/** Refuse a font part larger than this. Defaults to 16 MB. */
|
|
36
|
+
readonly maxFontBytes?: number;
|
|
37
|
+
/** Refuse more than this many fonts. Defaults to 64. */
|
|
38
|
+
readonly maxFonts?: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Every font the package embeds, deobfuscated.
|
|
42
|
+
*
|
|
43
|
+
* Silently skips anything malformed rather than rejecting the document: a broken font table
|
|
44
|
+
* is a reason to fall back to substitution, never a reason to refuse to open the file.
|
|
45
|
+
*/
|
|
46
|
+
declare function readEmbeddedFonts(pkg: OoxmlPackage, fontTable: OoxmlPart | undefined, options?: ReadEmbeddedFontsOptions): EmbeddedFont[];
|
|
47
|
+
|
|
48
|
+
/** The two list kinds a toolbar offers. */
|
|
49
|
+
type ListKind = 'bullet' | 'ordered';
|
|
50
|
+
interface EnsuredListDefinition {
|
|
51
|
+
readonly pkg: OoxmlPackage;
|
|
52
|
+
/** The `w:numId` a paragraph's `w:numPr` should name. */
|
|
53
|
+
readonly numId: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Find or create a list definition of `kind`, returning the package that holds it.
|
|
57
|
+
*
|
|
58
|
+
* An existing abstract definition of the same kind is reused, but every disconnected list
|
|
59
|
+
* gets a fresh `w:num` instance. Counters belong to `w:num`, so reusing that instance would
|
|
60
|
+
* continue an earlier list. Returns null only when the part cannot be built at all.
|
|
61
|
+
*/
|
|
62
|
+
declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind): EnsuredListDefinition | null;
|
|
63
|
+
/**
|
|
64
|
+
* Declare `level` in the definition `numId` names, with Word's default format for that
|
|
65
|
+
* level, or refuse.
|
|
66
|
+
*
|
|
67
|
+
* Word never greys Increase Indent out on a list item: demoting past the deepest level a
|
|
68
|
+
* `w:abstractNum` declares makes Word DEFINE the level, cycling its stock bullets
|
|
69
|
+
* (Symbol •, Courier `o`, Wingdings ▪) or number formats (decimal, lowerLetter,
|
|
70
|
+
* lowerRoman) by depth. This is that write. An already-declared level returns the package
|
|
71
|
+
* unchanged, so callers may ask first and act second without a second lookup.
|
|
72
|
+
*
|
|
73
|
+
* A delegating definition (`w:numStyleLink`, 17.9.21) is refused: its levels live on the
|
|
74
|
+
* linked style's definition, and a `w:lvl` grafted here would be shadowed the moment the
|
|
75
|
+
* link resolves.
|
|
76
|
+
*/
|
|
77
|
+
declare function ensureNumberingLevel(pkg: OoxmlPackage, numId: string, level: number, kind: ListKind): OoxmlPackage | null;
|
|
78
|
+
|
|
79
|
+
/** One bookmark's name and the range its marker pair currently encloses. */
|
|
80
|
+
interface BookmarkAnchor {
|
|
81
|
+
readonly name: string;
|
|
82
|
+
/** Canonical node id of the paragraph the marker sits in. */
|
|
83
|
+
readonly paragraphId: string;
|
|
84
|
+
/** UTF-16 offset within that paragraph, in `paragraphTextOf`'s vocabulary. */
|
|
85
|
+
readonly offset: number;
|
|
86
|
+
}
|
|
87
|
+
/** Bookmarks by name. A name the document declares twice resolves to the first in order. */
|
|
88
|
+
type BookmarkIndex = ReadonlyMap<string, BookmarkAnchor>;
|
|
89
|
+
/**
|
|
90
|
+
* Build `name -> position` for every bookmark start in a part, in document order.
|
|
91
|
+
*
|
|
92
|
+
* FIRST IN DOCUMENT ORDER WINS on a duplicate name. Word treats a repeated bookmark name as
|
|
93
|
+
* the same bookmark and jumps to the first, and the alternative — last-wins — makes a jump
|
|
94
|
+
* target move when an edit far away happens to duplicate a name.
|
|
95
|
+
*
|
|
96
|
+
* The offset is measured the way the ops measure: text of the runs before the marker inside
|
|
97
|
+
* its own paragraph, hyperlink runs included, so the position a jump places the caret at is a
|
|
98
|
+
* position `setSelection` accepts.
|
|
99
|
+
*/
|
|
100
|
+
declare function buildBookmarkIndex(part: OoxmlPart): BookmarkIndex;
|
|
101
|
+
|
|
102
|
+
/** What the document asks for. Every field defaults to "the document said nothing". */
|
|
103
|
+
interface DocumentTrackingSettings {
|
|
104
|
+
/** `w:trackRevisions` — the document asks for edits to be tracked. */
|
|
105
|
+
readonly trackRevisions: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* `w:documentProtection/@w:edit="trackedChanges"` — tracking may not be turned OFF.
|
|
108
|
+
*
|
|
109
|
+
* Advisory. Presenting it as enforcement would be a lie about a file anyone can edit.
|
|
110
|
+
*/
|
|
111
|
+
readonly restrictedToTrackedChanges: boolean;
|
|
112
|
+
/** `w:doNotTrackMoves` — write a move as a delete and an insert. */
|
|
113
|
+
readonly doNotTrackMoves: boolean;
|
|
114
|
+
/** `w:doNotTrackFormatting` — apply formatting without recording a `w:rPrChange`. */
|
|
115
|
+
readonly doNotTrackFormatting: boolean;
|
|
116
|
+
}
|
|
117
|
+
/** The frozen "nothing is tracked" settings — what a document with no `w:trackChanges` gets. */
|
|
118
|
+
declare const NO_TRACKING_SETTINGS: DocumentTrackingSettings;
|
|
119
|
+
/** Read the tracking settings from a `settings.xml` root, or the defaults when it has none. */
|
|
120
|
+
declare function readTrackingSettings(settingsRoot: OoxmlNode | null | undefined): DocumentTrackingSettings;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The payload half of an insert: which store, which node, and what it holds.
|
|
124
|
+
*
|
|
125
|
+
* `data` is opaque here. The lane that owns a schema is the one that declared it, and a store
|
|
126
|
+
* that parsed payloads would be a second opinion about what a host's node means.
|
|
127
|
+
*/
|
|
128
|
+
interface CustomNodePayloadWrite {
|
|
129
|
+
/** Namespace of the store's root element — what identifies one store among several. */
|
|
130
|
+
readonly namespaceUri: string;
|
|
131
|
+
/** Local name of that root. An NCName; anything else refuses. */
|
|
132
|
+
readonly rootLocalName: string;
|
|
133
|
+
/** The node's own id, which the binding's xpath quotes. */
|
|
134
|
+
readonly nodeId: string;
|
|
135
|
+
/** The text the control shows. Word paints this from the store, so an empty one is an empty chip. */
|
|
136
|
+
readonly label: string;
|
|
137
|
+
/** The payload, serialized. JSON by convention; never parsed here. */
|
|
138
|
+
readonly data: string;
|
|
139
|
+
}
|
|
140
|
+
/** Where the control goes, what it says, and the payload it carries. */
|
|
141
|
+
interface InsertCustomNodeWrite {
|
|
142
|
+
readonly paragraphId: string;
|
|
143
|
+
readonly offset: number;
|
|
144
|
+
/**
|
|
145
|
+
* Wrap rather than insert: the text from `offset` to here is removed first.
|
|
146
|
+
*
|
|
147
|
+
* The node's label REPLACES the words it covered, because that is what turning a stretch of a
|
|
148
|
+
* sentence into a citation means. Removed inside the same transaction, so a refused insert
|
|
149
|
+
* leaves the text where it was.
|
|
150
|
+
*/
|
|
151
|
+
readonly replaceUntil?: number;
|
|
152
|
+
/**
|
|
153
|
+
* Rewrite an existing control: it and the payload it bound go first, in this transaction.
|
|
154
|
+
*
|
|
155
|
+
* An UPDATE is remove-and-reinsert, because the tag codec has no in-place rewrite and
|
|
156
|
+
* pretending it did would put a second write path beside this one. Doing both halves here is
|
|
157
|
+
* what keeps it one undo step, and what stops an update from leaving a label and a payload
|
|
158
|
+
* that disagree.
|
|
159
|
+
*/
|
|
160
|
+
readonly replaceControlId?: string;
|
|
161
|
+
readonly tag: string;
|
|
162
|
+
readonly text: string;
|
|
163
|
+
readonly alias?: string;
|
|
164
|
+
/** Defaults to none. Callers that want Word's own "cannot type into it" pass `contentLocked`. */
|
|
165
|
+
readonly lock?: 'sdtLocked' | 'sdtContentLocked' | 'contentLocked';
|
|
166
|
+
/** Omitted authors an ordinary tagged control with no store — the pre-payload behaviour. */
|
|
167
|
+
readonly payload?: CustomNodePayloadWrite;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Why a payload write was refused.
|
|
171
|
+
*
|
|
172
|
+
* The tree rejections pass through unchanged, so a locked paragraph refuses a bound insert for
|
|
173
|
+
* the same named reason it refuses a plain one. The three added here are the payload's own.
|
|
174
|
+
*/
|
|
175
|
+
type CustomNodeWriteRejection = TreeOpRejection
|
|
176
|
+
/** The id, root name or namespace cannot be spelled in an XPath, so no binding could name it. */
|
|
177
|
+
| 'unaddressable-payload'
|
|
178
|
+
/** The store could not be authored — see `withCustomXmlDataPart` for every way that happens. */
|
|
179
|
+
| 'store-not-authored'
|
|
180
|
+
/** The payload or the label is past the cap. */
|
|
181
|
+
| 'payload-too-large';
|
|
182
|
+
type CustomNodeWriteResult = {
|
|
183
|
+
readonly ok: true;
|
|
184
|
+
readonly change: TreeModelChange | null;
|
|
185
|
+
/**
|
|
186
|
+
* The control this write authored, when it authored one. A rewrite replaces the control
|
|
187
|
+
* rather than editing it, so the id the caller passed in names nothing afterwards.
|
|
188
|
+
*/
|
|
189
|
+
readonly nodeId?: string;
|
|
190
|
+
} | {
|
|
191
|
+
readonly ok: false;
|
|
192
|
+
readonly reason: CustomNodeWriteRejection;
|
|
193
|
+
readonly detail?: string;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* The largest payload one node may carry, in UTF-16 code units.
|
|
197
|
+
*
|
|
198
|
+
* Same figure as the read side's (`parseCustomNodeData`) and for the same reason: far past any
|
|
199
|
+
* legitimate chip, far short of anything that hurts. Checked on the WRITE too, so a document
|
|
200
|
+
* cannot be authored here holding a payload the reader will later refuse to parse.
|
|
201
|
+
*/
|
|
202
|
+
declare const MAX_CUSTOM_NODE_PAYLOAD_LENGTH: number;
|
|
203
|
+
/** The longest label a binding may paint. Word renders it as the control's whole content. */
|
|
204
|
+
declare const MAX_CUSTOM_NODE_LABEL_LENGTH = 4096;
|
|
205
|
+
/**
|
|
206
|
+
* Insert one custom node, with its payload, as a single transaction.
|
|
207
|
+
*
|
|
208
|
+
* Answers the store transaction's own change so the caller can publish it — a payload write is a
|
|
209
|
+
* package write reaching through a story store, exactly as a comment is, and the coordinator
|
|
210
|
+
* needs the change to know which paragraphs went dirty.
|
|
211
|
+
*/
|
|
212
|
+
declare function insertCustomNodeWrite(store: TreeDocumentStore, write: InsertCustomNodeWrite,
|
|
213
|
+
/**
|
|
214
|
+
* The part the customXml store hangs off, defaulting to the story being written.
|
|
215
|
+
*
|
|
216
|
+
* A chip in a header is written against the HEADER store, but Word enumerates the data
|
|
217
|
+
* store from the main document part — a store authored off a header is one Word never
|
|
218
|
+
* sees. So the caller passes the main part while the control itself lands in the story.
|
|
219
|
+
*/
|
|
220
|
+
dataOwnerPartName?: string): CustomNodeWriteResult;
|
|
221
|
+
/**
|
|
222
|
+
* Remove a control and, in the same transaction, the payload it bound.
|
|
223
|
+
*
|
|
224
|
+
* The sweep would collect the node eventually — that is what makes deletion in Word survivable —
|
|
225
|
+
* but "eventually" is the next open, and a document saved in between carries a payload for a
|
|
226
|
+
* chip that is gone. Doing it here means the ordinary case is exact and the sweep is a backstop.
|
|
227
|
+
*/
|
|
228
|
+
declare function removeCustomNodeWrite(store: TreeDocumentStore, controlNodeId: string): CustomNodeWriteResult;
|
|
229
|
+
/**
|
|
230
|
+
* What one sweep collected, or why it collected nothing.
|
|
231
|
+
*
|
|
232
|
+
* `ok: false` is NOT "the document was already tidy" — that is `ok: true` with an empty
|
|
233
|
+
* `removed`. It means a store this sweep was asked to tidy refused the rewrite, which a caller
|
|
234
|
+
* that keeps saving into the same document should know about rather than silently retry forever.
|
|
235
|
+
*/
|
|
236
|
+
type CustomNodeSweepResult = {
|
|
237
|
+
readonly ok: true;
|
|
238
|
+
readonly pkg: OoxmlPackage;
|
|
239
|
+
/** Node ids removed, across every store swept. Empty means there were no orphans. */
|
|
240
|
+
readonly removed: readonly string[];
|
|
241
|
+
} | {
|
|
242
|
+
readonly ok: false;
|
|
243
|
+
readonly reason: string;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Drop every payload no control binds, in the stores whose namespaces a host claims.
|
|
247
|
+
*
|
|
248
|
+
* ON OPEN, NOT ON SAVE. A chip cut to the clipboard is unbound for as long as it sits there, so a
|
|
249
|
+
* save mid-cut would destroy the payload the user is about to paste. On open the only unbound
|
|
250
|
+
* nodes are ones a control genuinely lost — deleted here, or deleted in Word, which is the case
|
|
251
|
+
* nothing else can collect.
|
|
252
|
+
*
|
|
253
|
+
* `namespaces` is the claim, and it is what keeps this off other people's stores: Word's own Cover
|
|
254
|
+
* Page Properties store rides in most templates, and a sweep that walked every customXml part
|
|
255
|
+
* would be deleting from it on the strength of a name collision.
|
|
256
|
+
*/
|
|
257
|
+
declare function sweepCustomNodePayloads(pkg: OoxmlPackage, storyPartName: string, namespaces: readonly string[]): CustomNodeSweepResult;
|
|
258
|
+
/** One control's payload, as the store holds it. Both strings are untrusted file input. */
|
|
259
|
+
interface CustomNodePayloadRead {
|
|
260
|
+
/** The store node's own id. */
|
|
261
|
+
readonly nodeId: string;
|
|
262
|
+
/** The text Word paints the control from. */
|
|
263
|
+
readonly label: string;
|
|
264
|
+
/** The payload as authored. JSON by convention, unparsed here. */
|
|
265
|
+
readonly data: string;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* The payload every control in a story binds to, keyed by the CONTROL's canonical node id.
|
|
269
|
+
*
|
|
270
|
+
* Keyed by the control rather than by the store node because that is the question a reader
|
|
271
|
+
* actually has — "what does this chip carry" — and because two stores may each hold a `cx1`.
|
|
272
|
+
* Resolved here rather than by a capability package: the stores are package parts, and a
|
|
273
|
+
* derivation that only gets story parts has no way to reach them.
|
|
274
|
+
*
|
|
275
|
+
* Every store the story relates to, so a document carrying two definitions' payloads answers
|
|
276
|
+
* for both without anyone naming a namespace.
|
|
277
|
+
*/
|
|
278
|
+
declare function customNodePayloadsByControl(pkg: OoxmlPackage, storyPartName: string,
|
|
279
|
+
/**
|
|
280
|
+
* The part that RELATES the customXml store, when it is not the story's own.
|
|
281
|
+
*
|
|
282
|
+
* Two different questions wear one name here: which part holds the CONTROLS, and which part
|
|
283
|
+
* relates the STORE they bind into. Word only reads a store hung off the main document part,
|
|
284
|
+
* so {@link writeCustomNode} already takes them separately — this read did not, and answered
|
|
285
|
+
* with the body's controls whatever story it was asked about. A chip in a header therefore
|
|
286
|
+
* read as having no payload at all, and an update that meant to keep the existing data
|
|
287
|
+
* dropped it.
|
|
288
|
+
*/
|
|
289
|
+
dataOwnerPartName?: string): ReadonlyMap<string, CustomNodePayloadRead>;
|
|
290
|
+
/** Every payload one store holds, for a caller resolving a control's `data`. */
|
|
291
|
+
declare function customNodePayloadsOf(pkg: OoxmlPackage, storyPartName: string, namespaceUri: string): ReadonlyMap<string, {
|
|
292
|
+
readonly label: string;
|
|
293
|
+
readonly data: string;
|
|
294
|
+
}>;
|
|
295
|
+
/**
|
|
296
|
+
* What the session answers for a sweep: the ids collected, or the reason none were.
|
|
297
|
+
*
|
|
298
|
+
* Narrower than {@link CustomNodeSweepResult}, which also carries the rewritten package — the
|
|
299
|
+
* session has already installed that, and handing it back would invite a caller to install it
|
|
300
|
+
* twice.
|
|
301
|
+
*/
|
|
302
|
+
type CustomNodeSweepOutcome = {
|
|
303
|
+
readonly ok: true;
|
|
304
|
+
readonly removed: readonly string[];
|
|
305
|
+
} | {
|
|
306
|
+
readonly ok: false;
|
|
307
|
+
readonly reason: string;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export { type BookmarkIndex as B, type CustomNodeWriteResult as C, type DocumentTrackingSettings as D, type EmbeddedFont as E, type FontStyleKey as F, type InsertCustomNodeWrite as I, type ListKind as L, MAX_CUSTOM_NODE_LABEL_LENGTH as M, NO_TRACKING_SETTINGS as N, type ReadEmbeddedFontsOptions as R, type CustomNodeSweepOutcome as a, type BookmarkAnchor as b, type CustomNodePayloadRead as c, type CustomNodePayloadWrite as d, type CustomNodeSweepResult as e, type CustomNodeWriteRejection as f, MAX_CUSTOM_NODE_PAYLOAD_LENGTH as g, buildBookmarkIndex as h, customNodePayloadsByControl as i, customNodePayloadsOf as j, deobfuscateFont as k, ensureListDefinition as l, ensureNumberingLevel as m, insertCustomNodeWrite as n, readTrackingSettings as o, removeCustomNodeWrite as p, readEmbeddedFonts as r, sweepCustomNodePayloads as s };
|