@docx-editor.dev/core 2.6.1 → 2.8.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.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +8 -7
- package/dist/binding.d.ts +8 -7
- package/dist/binding.js +1 -1
- package/dist/chunk-2WIXJ7CW.js +10 -0
- package/dist/chunk-42PRWWVE.js +2 -0
- package/dist/chunk-5XKD3VFP.js +18 -0
- package/dist/{chunk-SFMAIFEN.cjs → chunk-HCSWWXS2.cjs} +2 -2
- package/dist/chunk-HTJLSGBH.cjs +18 -0
- package/dist/chunk-JEHWQPXS.cjs +1 -0
- package/dist/chunk-KCJLRAKT.js +5 -0
- package/dist/chunk-KTL3UMPK.js +2 -0
- package/dist/chunk-M6ZIVJUA.cjs +2 -0
- package/dist/chunk-NU57YOQE.js +15 -0
- package/dist/chunk-RUS2YBWU.cjs +10 -0
- package/dist/chunk-TJEWP7MX.cjs +15 -0
- package/dist/chunk-UGUPVZDY.cjs +5 -0
- package/dist/chunk-XJRMFS6O.js +1 -0
- package/dist/chunk-XN634HAC.js +2 -0
- package/dist/chunk-XRDTD4X3.cjs +2 -0
- package/dist/contracts/document.d.cts +25 -3
- package/dist/contracts/document.d.ts +25 -3
- package/dist/contracts/editor.d.cts +7 -7
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.cts +6 -6
- package/dist/contracts/interaction.d.ts +6 -6
- package/dist/contracts/modules.d.cts +4 -3
- package/dist/contracts/modules.d.ts +4 -3
- package/dist/contracts/types.d.cts +110 -2
- package/dist/contracts/types.d.ts +110 -2
- package/dist/{custom-node-writes-tJw8U9MO.d.ts → custom-node-writes-BdVl-LAC.d.ts} +19 -10
- package/dist/{custom-node-writes-D9G3GKQ7.d.cts → custom-node-writes-Bu8JIqfA.d.cts} +19 -10
- package/dist/{editor-BZEJL3vv.d.cts → editor-CWlj33GH.d.cts} +80 -69
- package/dist/{editor-D2zOJztO.d.ts → editor-D52SD4jG.d.ts} +80 -69
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.cts +63 -31
- package/dist/editor.d.ts +63 -31
- package/dist/editor.js +1 -1
- package/dist/{image-resources-BaHz4QAd.d.cts → image-resources-BveffuKp.d.cts} +1 -1
- package/dist/{image-resources-Cl5_cNi9.d.ts → image-resources-D63k8w5f.d.ts} +1 -1
- package/dist/{index-_xF7n_z0.d.cts → index-39yzaZO_.d.cts} +1573 -1429
- package/dist/{index-D8L8WrNF.d.ts → index-ZuqIj0b9.d.ts} +1573 -1429
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +220 -23
- package/dist/layout.d.ts +220 -23
- package/dist/layout.js +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -5
- package/dist/output.d.ts +6 -5
- package/dist/output.js +1 -1
- package/dist/{review-reads-HDvoQXK2.d.ts → review-reads-B_pXe43J.d.ts} +1 -1
- package/dist/{review-reads-Dr0CpW6u.d.cts → review-reads-Bn7aZU4u.d.cts} +1 -1
- package/dist/{review-support-D4ZBdUXa.d.ts → review-support--I4ChuzF.d.ts} +1 -1
- package/dist/{review-support-T-riLz4Y.d.cts → review-support-CG7aVSPh.d.cts} +1 -1
- package/dist/{semantic-cell-selection-BTQFpN0S.d.cts → semantic-cell-selection-C45Gn4K-.d.cts} +14 -2
- package/dist/{semantic-cell-selection-B5vfPz4Q.d.ts → semantic-cell-selection-I-uAmi0q.d.ts} +14 -2
- package/dist/{semantic-interaction-CDNEU_Tx.d.cts → semantic-interaction-Bu_3IPaV.d.ts} +14 -2
- package/dist/{semantic-interaction-lvpzZRpA.d.ts → semantic-interaction-DVUqu_47.d.cts} +14 -2
- package/dist/{semantic-paint-BBPL3u5w.d.ts → semantic-paint-BKiiDJol.d.ts} +8 -2
- package/dist/{semantic-paint-IjbL-4CT.d.cts → semantic-paint-COQY0Lnq.d.cts} +8 -2
- package/dist/{semantic-records-CdQvpUj1.d.ts → semantic-records-DHcMZM2-.d.ts} +35 -36
- package/dist/{semantic-records-DEOs3_tE.d.cts → semantic-records-rAKWaD-1.d.cts} +35 -36
- package/dist/{shaped-measurer-C2SJAjV0.d.cts → shaped-measurer-BRL__nm2.d.cts} +1 -1
- package/dist/{shaped-measurer-l4o5ITJ0.d.ts → shaped-measurer-Cw45Nu5R.d.ts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +55 -9
- package/dist/store.d.ts +55 -9
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-CUCwPWjT.d.cts → tree-op-types-A-SLSKzK.d.cts} +62 -9
- package/dist/{tree-op-types-D0fTNBVW.d.ts → tree-op-types-BbzrA-kg.d.ts} +62 -9
- package/dist/{tree-session-b7bggR-S.d.cts → tree-session-C2NsEgfW.d.cts} +41 -6
- package/dist/{tree-session-CH1oA75f.d.ts → tree-session-DeNJa86l.d.ts} +41 -6
- package/dist/{tree-store-CIKASRHk.d.ts → tree-store-CKswbQl3.d.ts} +13 -1
- package/dist/{tree-store-BqgeCa1Q.d.cts → tree-store-Dob9Us6Y.d.cts} +13 -1
- package/package.json +2 -2
- package/dist/chunk-4GQXAXTZ.js +0 -5
- package/dist/chunk-DGUHCJPF.cjs +0 -18
- package/dist/chunk-DY3QVCWC.cjs +0 -10
- package/dist/chunk-E7BXJ4BF.js +0 -1
- package/dist/chunk-F7Z6PWAZ.cjs +0 -2
- package/dist/chunk-IJ4V3LGV.cjs +0 -2
- package/dist/chunk-JEMP5YI5.cjs +0 -15
- package/dist/chunk-JZXK4DKV.cjs +0 -1
- package/dist/chunk-NIGGABAA.js +0 -15
- package/dist/chunk-OPKOTVQQ.js +0 -18
- package/dist/chunk-R75OLPL6.js +0 -10
- package/dist/chunk-SKWYEZCO.cjs +0 -5
- package/dist/chunk-SMRD66T5.js +0 -2
- package/dist/chunk-UVIUNAQ6.js +0 -2
- package/dist/chunk-WAVN7MAT.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.cjs';
|
|
2
|
-
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-support-
|
|
3
|
-
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-
|
|
4
|
-
import { ExecErrorCode,
|
|
5
|
-
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-
|
|
6
|
-
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-
|
|
2
|
+
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-support-CG7aVSPh.cjs';
|
|
3
|
+
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-DVUqu_47.cjs';
|
|
4
|
+
import { ColorValue, ExecErrorCode, ParagraphFormatCommand, Watermark, DocAnchor, ExecResult, ContentControlFilter, DocRange, RunFormatting, Revision, Rect, SelectionPin, Unsubscribe } from './contracts/types.cjs';
|
|
5
|
+
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-A-SLSKzK.cjs';
|
|
6
|
+
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-BveffuKp.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `@docx-editor.dev/core/contracts/interaction` — semantic addressing and interaction outcomes.
|
|
@@ -282,6 +282,67 @@ declare function cropPercentFromCropPermille(crop: ImageCropPermille): ImageCrop
|
|
|
282
282
|
*/
|
|
283
283
|
declare function validateImageCropPercent(crop: ImageCropPercent): boolean;
|
|
284
284
|
|
|
285
|
+
/** Which cell edges a table border command targets. */
|
|
286
|
+
type TableBorderTarget = 'all' | 'outside' | 'inside' | 'none' | 'top' | 'bottom' | 'left' | 'right';
|
|
287
|
+
/** Concrete scopes that apply a complete border spec. */
|
|
288
|
+
type TableBorderEdgeTarget = Exclude<TableBorderTarget, 'none'>;
|
|
289
|
+
/**
|
|
290
|
+
* Allowlisted OOXML table border line styles.
|
|
291
|
+
*
|
|
292
|
+
* Kept identical to `store/table-border-style.ts`; `table-border-style-parity.test-d.ts`
|
|
293
|
+
* fails if the contract and store vocabularies drift.
|
|
294
|
+
*/
|
|
295
|
+
type TableBorderStyle = 'single' | 'dashed' | 'dotted' | 'double' | 'triple' | 'thick';
|
|
296
|
+
/** Complete border spec for {@link EditorCommands.setTableBorders}. Size is in eighths of a point. */
|
|
297
|
+
interface TableBorderSpec {
|
|
298
|
+
readonly style: TableBorderStyle;
|
|
299
|
+
readonly size: number;
|
|
300
|
+
readonly color: ColorValue;
|
|
301
|
+
}
|
|
302
|
+
/** Vertical placement of content inside selected table cells. @public */
|
|
303
|
+
type TableCellVerticalAlignment = 'top' | 'center' | 'bottom';
|
|
304
|
+
/**
|
|
305
|
+
* Adjacent grid columns addressed by an internal divider resize gesture.
|
|
306
|
+
*
|
|
307
|
+
* `sourceRevision` is the PACKAGE revision of the layout the target was read from — the number
|
|
308
|
+
* `getDocumentHandle()` reports, never one story's own. Commit MUST refuse when it no longer
|
|
309
|
+
* equals the current one, even if an older layout remains published for geometry.
|
|
310
|
+
*/
|
|
311
|
+
interface TableColumnDividerResizeTarget {
|
|
312
|
+
readonly sourceRevision: number;
|
|
313
|
+
readonly tableId: string;
|
|
314
|
+
readonly leftGridColumnId: string;
|
|
315
|
+
readonly rightGridColumnId: string;
|
|
316
|
+
readonly isHeaderRepeat: boolean;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Last grid column and table width addressed by an outer-right-edge resize gesture.
|
|
320
|
+
*
|
|
321
|
+
* `sourceRevision` follows the same rule as {@link TableColumnDividerResizeTarget}: the package
|
|
322
|
+
* revision of the layout the target was read from, and commit refuses once it no longer equals
|
|
323
|
+
* the current one.
|
|
324
|
+
*/
|
|
325
|
+
interface TableRightEdgeResizeTarget {
|
|
326
|
+
readonly sourceRevision: number;
|
|
327
|
+
readonly tableId: string;
|
|
328
|
+
readonly gridColumnId: string;
|
|
329
|
+
readonly isHeaderRepeat: boolean;
|
|
330
|
+
}
|
|
331
|
+
/** Explicit row occurrence. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
|
|
332
|
+
interface TableRowOccurrenceTarget {
|
|
333
|
+
readonly sourceRevision: number;
|
|
334
|
+
readonly tableId: string;
|
|
335
|
+
readonly rowId: string;
|
|
336
|
+
readonly isHeaderRepeat: boolean;
|
|
337
|
+
}
|
|
338
|
+
/** Explicit column occurrence. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
|
|
339
|
+
interface TableColumnOccurrenceTarget {
|
|
340
|
+
readonly sourceRevision: number;
|
|
341
|
+
readonly tableId: string;
|
|
342
|
+
readonly gridColumnId: string;
|
|
343
|
+
readonly isHeaderRepeat: boolean;
|
|
344
|
+
}
|
|
345
|
+
|
|
285
346
|
/**
|
|
286
347
|
* `@docx-editor.dev/core/contracts/editor` — the `Editor` contract adapters are written against.
|
|
287
348
|
*
|
|
@@ -304,7 +365,7 @@ declare function validateImageCropPercent(crop: ImageCropPercent): boolean;
|
|
|
304
365
|
* breaking change.
|
|
305
366
|
*/
|
|
306
367
|
interface DocumentHandle {
|
|
307
|
-
/**
|
|
368
|
+
/** Package revision: rises for every edit, wherever it landed. Safe to compare. */
|
|
308
369
|
readonly revision: number;
|
|
309
370
|
}
|
|
310
371
|
/**
|
|
@@ -387,7 +448,7 @@ declare class EditorFontError extends Error {
|
|
|
387
448
|
* be prohibitive for large documents. Call `save()` to get bytes on demand.
|
|
388
449
|
*/
|
|
389
450
|
interface DocumentChange {
|
|
390
|
-
/**
|
|
451
|
+
/** Package revision after this change — `getDocumentHandle()`'s number, monotonic. */
|
|
391
452
|
readonly revision: number;
|
|
392
453
|
/** Block ids created/deleted/edited by this change, when the engine reports them. */
|
|
393
454
|
readonly created?: readonly string[];
|
|
@@ -635,7 +696,7 @@ interface Editor {
|
|
|
635
696
|
readonly italic?: boolean;
|
|
636
697
|
readonly underline?: boolean;
|
|
637
698
|
} | null;
|
|
638
|
-
/** Find matches for a query, for the find/replace dialog. */
|
|
699
|
+
/** Find matches for a query, for the find/replace dialog. The BODY story only. */
|
|
639
700
|
findMatches(query: string, options?: {
|
|
640
701
|
readonly matchCase?: boolean;
|
|
641
702
|
readonly wholeWord?: boolean;
|
|
@@ -1078,66 +1139,7 @@ type ReviewItemPlacement = ReviewCommentPlacement | ReviewRevisionPlacement | Re
|
|
|
1078
1139
|
* arrives as a proposal somebody else accepts or rejects.
|
|
1079
1140
|
*/
|
|
1080
1141
|
type DocumentEditingMode = 'editing' | 'suggesting' | 'viewing';
|
|
1081
|
-
|
|
1082
|
-
type TableBorderTarget = 'all' | 'outside' | 'inside' | 'none' | 'top' | 'bottom' | 'left' | 'right';
|
|
1083
|
-
/** Concrete scopes that apply a complete border spec. */
|
|
1084
|
-
type TableBorderEdgeTarget = Exclude<TableBorderTarget, 'none'>;
|
|
1085
|
-
/**
|
|
1086
|
-
* Allowlisted OOXML table border line styles.
|
|
1087
|
-
*
|
|
1088
|
-
* Kept identical to `store/table-border-style.ts`; `table-border-style-parity.test-d.ts`
|
|
1089
|
-
* fails if the contract and store vocabularies drift.
|
|
1090
|
-
*/
|
|
1091
|
-
type TableBorderStyle = 'single' | 'dashed' | 'dotted' | 'double' | 'triple' | 'thick';
|
|
1092
|
-
/** Complete border spec for {@link EditorCommands.setTableBorders}. Size is in eighths of a point. */
|
|
1093
|
-
interface TableBorderSpec {
|
|
1094
|
-
readonly style: TableBorderStyle;
|
|
1095
|
-
readonly size: number;
|
|
1096
|
-
readonly color: ColorValue;
|
|
1097
|
-
}
|
|
1098
|
-
/** Vertical placement of content inside selected table cells. @public */
|
|
1099
|
-
type TableCellVerticalAlignment = 'top' | 'center' | 'bottom';
|
|
1100
|
-
/**
|
|
1101
|
-
* Adjacent grid columns addressed by an internal divider resize gesture.
|
|
1102
|
-
*
|
|
1103
|
-
* `sourceRevision` is captured from the store revision when the target is built.
|
|
1104
|
-
* Commit MUST refuse when it does not equal the current store revision, even if an older layout
|
|
1105
|
-
* remains published for geometry.
|
|
1106
|
-
*/
|
|
1107
|
-
interface TableColumnDividerResizeTarget {
|
|
1108
|
-
readonly sourceRevision: number;
|
|
1109
|
-
readonly tableId: string;
|
|
1110
|
-
readonly leftGridColumnId: string;
|
|
1111
|
-
readonly rightGridColumnId: string;
|
|
1112
|
-
readonly isHeaderRepeat: boolean;
|
|
1113
|
-
}
|
|
1114
|
-
/**
|
|
1115
|
-
* Last grid column and table width addressed by an outer-right-edge resize gesture.
|
|
1116
|
-
*
|
|
1117
|
-
* `sourceRevision` is captured from the store revision when the target is built.
|
|
1118
|
-
* Commit MUST refuse when it does not equal the current store revision, even if an older layout
|
|
1119
|
-
* remains published for geometry.
|
|
1120
|
-
*/
|
|
1121
|
-
interface TableRightEdgeResizeTarget {
|
|
1122
|
-
readonly sourceRevision: number;
|
|
1123
|
-
readonly tableId: string;
|
|
1124
|
-
readonly gridColumnId: string;
|
|
1125
|
-
readonly isHeaderRepeat: boolean;
|
|
1126
|
-
}
|
|
1127
|
-
/** Explicit row occurrence for furniture/context commands. */
|
|
1128
|
-
interface TableRowOccurrenceTarget {
|
|
1129
|
-
readonly sourceRevision: number;
|
|
1130
|
-
readonly tableId: string;
|
|
1131
|
-
readonly rowId: string;
|
|
1132
|
-
readonly isHeaderRepeat: boolean;
|
|
1133
|
-
}
|
|
1134
|
-
/** Explicit column occurrence for furniture/context commands. */
|
|
1135
|
-
interface TableColumnOccurrenceTarget {
|
|
1136
|
-
readonly sourceRevision: number;
|
|
1137
|
-
readonly tableId: string;
|
|
1138
|
-
readonly gridColumnId: string;
|
|
1139
|
-
readonly isHeaderRepeat: boolean;
|
|
1140
|
-
}
|
|
1142
|
+
|
|
1141
1143
|
/**
|
|
1142
1144
|
* Every command the editor accepts, keyed by name with its payload as the value.
|
|
1143
1145
|
*
|
|
@@ -1226,6 +1228,15 @@ interface EditorCommands extends EditorCommandShape<DocEdits>, EditorHeaderFoote
|
|
|
1226
1228
|
right?: number | null;
|
|
1227
1229
|
firstLine?: number | null;
|
|
1228
1230
|
};
|
|
1231
|
+
/**
|
|
1232
|
+
* The Paragraph dialog as one command: alignment, indents, spacing, line spacing and
|
|
1233
|
+
* the five paragraph flags, applied to every paragraph the selection touches.
|
|
1234
|
+
*
|
|
1235
|
+
* ONE undo step, because a dialog is one gesture. The single-purpose commands beside it
|
|
1236
|
+
* (`setAlignment`, `setIndent`, `setLineSpacing`, `setParagraphSpacing`) stay the right
|
|
1237
|
+
* choice for a toolbar button; this is for chrome that changes several at once.
|
|
1238
|
+
*/
|
|
1239
|
+
setParagraphFormat: ParagraphFormatCommand;
|
|
1229
1240
|
toggleList: {
|
|
1230
1241
|
kind: 'bullet' | 'ordered';
|
|
1231
1242
|
};
|
|
@@ -1827,4 +1838,4 @@ interface EditorEvents {
|
|
|
1827
1838
|
error: (error: EditorError) => void;
|
|
1828
1839
|
}
|
|
1829
1840
|
|
|
1830
|
-
export { type NotePropertiesState as $, type AuthoredNoteNumbering as A, type EditorHeaderFooterCommands as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorNoteCommands as G, type EditorPosition as H, type ImageContext as I, type EditorQueries as J, type EditorQuery as K, type EditorQueryResults as L, type EditorScope as M, type EditorSelection as N, type FurnitureVariant as O, type HeaderFooterSlotArgs as P, type HeaderFooterState as Q, type HyperlinkInfo as R, type SelectedImageState as S, type TableBorderEdgeTarget as T, type InteractionAffinity as U, type ViewScope as V, type InteractionOutcome as W, type InteractionOutcomeCode as X, type NoteKind as Y, type ZoomMode as Z, type NotePropertiesSide as _, type EditorSnapshot as a, type PageSetup as a0, type ResolvedNoteNumbering as a1, type ReviewActivationOptions as a2, type ReviewCommentPlacement as a3, type ReviewCustomPlacement as a4, type ReviewItemPlacement as a5, type ReviewItemPlacementBase as a6, type ReviewItemQuery as a7, type ReviewRevisionPlacement as a8, type SemanticIdentity as a9, type SemanticTarget as aa, type TableBorderTarget as ab, type TableCellVerticalAlignment as ac, type TableColumnDividerResizeTarget as ad, type TableColumnOccurrenceTarget as ae, type TableRightEdgeResizeTarget as af, type TableRowOccurrenceTarget as ag, type TextMatch as ah, type ZoomFitTarget as ai, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, cropPercentFromCropPermille as e, cropPercentFromPermille as f, cropPercentFromSourceCrop as g, cropPermilleFromCropPercent as h, cropPermilleFromPercent as i, type FontSource as j, type FontSourceSubstitution as k, type
|
|
1841
|
+
export { type NotePropertiesState as $, type AuthoredNoteNumbering as A, type EditorHeaderFooterCommands as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorNoteCommands as G, type EditorPosition as H, type ImageContext as I, type EditorQueries as J, type EditorQuery as K, type EditorQueryResults as L, type EditorScope as M, type EditorSelection as N, type FurnitureVariant as O, type HeaderFooterSlotArgs as P, type HeaderFooterState as Q, type HyperlinkInfo as R, type SelectedImageState as S, type TableBorderEdgeTarget as T, type InteractionAffinity as U, type ViewScope as V, type InteractionOutcome as W, type InteractionOutcomeCode as X, type NoteKind as Y, type ZoomMode as Z, type NotePropertiesSide as _, type EditorSnapshot as a, type PageSetup as a0, type ResolvedNoteNumbering as a1, type ReviewActivationOptions as a2, type ReviewCommentPlacement as a3, type ReviewCustomPlacement as a4, type ReviewItemPlacement as a5, type ReviewItemPlacementBase as a6, type ReviewItemQuery as a7, type ReviewRevisionPlacement as a8, type SemanticIdentity as a9, type SemanticTarget as aa, type TableBorderTarget as ab, type TableCellVerticalAlignment as ac, type TableColumnDividerResizeTarget as ad, type TableColumnOccurrenceTarget as ae, type TableRightEdgeResizeTarget as af, type TableRowOccurrenceTarget as ag, type TextMatch as ah, type ZoomFitTarget as ai, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, cropPercentFromCropPermille as e, cropPercentFromPermille as f, cropPercentFromSourceCrop as g, cropPermilleFromCropPercent as h, cropPermilleFromPercent as i, type FontSource as j, type FontSourceSubstitution as k, type Editor as l, type FontFaceRequest as m, type TableBorderSpec as n, type TableBorderStyle as o, type TableContext as p, type DocumentChange as q, type DocumentEditingMode as r, sourceCropFromCropPercent as s, type DocumentHandle as t, type EditorCommandShape as u, validateImageCropPercent as v, type EditorCommands as w, type EditorError as x, type EditorEvents as y, type EditorFontErrorCode as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.js';
|
|
2
|
-
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-support
|
|
3
|
-
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-
|
|
4
|
-
import { ExecErrorCode,
|
|
5
|
-
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-
|
|
6
|
-
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-
|
|
2
|
+
import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-support--I4ChuzF.js';
|
|
3
|
+
import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-Bu_3IPaV.js';
|
|
4
|
+
import { ColorValue, ExecErrorCode, ParagraphFormatCommand, Watermark, DocAnchor, ExecResult, ContentControlFilter, DocRange, RunFormatting, Revision, Rect, SelectionPin, Unsubscribe } from './contracts/types.js';
|
|
5
|
+
import { S as SourceCrop, b as ImageWrapTarget, c as DrawingKind, d as DrawingPositionInput, e as DrawingLocks } from './tree-op-types-BbzrA-kg.js';
|
|
6
|
+
import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-D63k8w5f.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `@docx-editor.dev/core/contracts/interaction` — semantic addressing and interaction outcomes.
|
|
@@ -282,6 +282,67 @@ declare function cropPercentFromCropPermille(crop: ImageCropPermille): ImageCrop
|
|
|
282
282
|
*/
|
|
283
283
|
declare function validateImageCropPercent(crop: ImageCropPercent): boolean;
|
|
284
284
|
|
|
285
|
+
/** Which cell edges a table border command targets. */
|
|
286
|
+
type TableBorderTarget = 'all' | 'outside' | 'inside' | 'none' | 'top' | 'bottom' | 'left' | 'right';
|
|
287
|
+
/** Concrete scopes that apply a complete border spec. */
|
|
288
|
+
type TableBorderEdgeTarget = Exclude<TableBorderTarget, 'none'>;
|
|
289
|
+
/**
|
|
290
|
+
* Allowlisted OOXML table border line styles.
|
|
291
|
+
*
|
|
292
|
+
* Kept identical to `store/table-border-style.ts`; `table-border-style-parity.test-d.ts`
|
|
293
|
+
* fails if the contract and store vocabularies drift.
|
|
294
|
+
*/
|
|
295
|
+
type TableBorderStyle = 'single' | 'dashed' | 'dotted' | 'double' | 'triple' | 'thick';
|
|
296
|
+
/** Complete border spec for {@link EditorCommands.setTableBorders}. Size is in eighths of a point. */
|
|
297
|
+
interface TableBorderSpec {
|
|
298
|
+
readonly style: TableBorderStyle;
|
|
299
|
+
readonly size: number;
|
|
300
|
+
readonly color: ColorValue;
|
|
301
|
+
}
|
|
302
|
+
/** Vertical placement of content inside selected table cells. @public */
|
|
303
|
+
type TableCellVerticalAlignment = 'top' | 'center' | 'bottom';
|
|
304
|
+
/**
|
|
305
|
+
* Adjacent grid columns addressed by an internal divider resize gesture.
|
|
306
|
+
*
|
|
307
|
+
* `sourceRevision` is the PACKAGE revision of the layout the target was read from — the number
|
|
308
|
+
* `getDocumentHandle()` reports, never one story's own. Commit MUST refuse when it no longer
|
|
309
|
+
* equals the current one, even if an older layout remains published for geometry.
|
|
310
|
+
*/
|
|
311
|
+
interface TableColumnDividerResizeTarget {
|
|
312
|
+
readonly sourceRevision: number;
|
|
313
|
+
readonly tableId: string;
|
|
314
|
+
readonly leftGridColumnId: string;
|
|
315
|
+
readonly rightGridColumnId: string;
|
|
316
|
+
readonly isHeaderRepeat: boolean;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Last grid column and table width addressed by an outer-right-edge resize gesture.
|
|
320
|
+
*
|
|
321
|
+
* `sourceRevision` follows the same rule as {@link TableColumnDividerResizeTarget}: the package
|
|
322
|
+
* revision of the layout the target was read from, and commit refuses once it no longer equals
|
|
323
|
+
* the current one.
|
|
324
|
+
*/
|
|
325
|
+
interface TableRightEdgeResizeTarget {
|
|
326
|
+
readonly sourceRevision: number;
|
|
327
|
+
readonly tableId: string;
|
|
328
|
+
readonly gridColumnId: string;
|
|
329
|
+
readonly isHeaderRepeat: boolean;
|
|
330
|
+
}
|
|
331
|
+
/** Explicit row occurrence. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
|
|
332
|
+
interface TableRowOccurrenceTarget {
|
|
333
|
+
readonly sourceRevision: number;
|
|
334
|
+
readonly tableId: string;
|
|
335
|
+
readonly rowId: string;
|
|
336
|
+
readonly isHeaderRepeat: boolean;
|
|
337
|
+
}
|
|
338
|
+
/** Explicit column occurrence. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
|
|
339
|
+
interface TableColumnOccurrenceTarget {
|
|
340
|
+
readonly sourceRevision: number;
|
|
341
|
+
readonly tableId: string;
|
|
342
|
+
readonly gridColumnId: string;
|
|
343
|
+
readonly isHeaderRepeat: boolean;
|
|
344
|
+
}
|
|
345
|
+
|
|
285
346
|
/**
|
|
286
347
|
* `@docx-editor.dev/core/contracts/editor` — the `Editor` contract adapters are written against.
|
|
287
348
|
*
|
|
@@ -304,7 +365,7 @@ declare function validateImageCropPercent(crop: ImageCropPercent): boolean;
|
|
|
304
365
|
* breaking change.
|
|
305
366
|
*/
|
|
306
367
|
interface DocumentHandle {
|
|
307
|
-
/**
|
|
368
|
+
/** Package revision: rises for every edit, wherever it landed. Safe to compare. */
|
|
308
369
|
readonly revision: number;
|
|
309
370
|
}
|
|
310
371
|
/**
|
|
@@ -387,7 +448,7 @@ declare class EditorFontError extends Error {
|
|
|
387
448
|
* be prohibitive for large documents. Call `save()` to get bytes on demand.
|
|
388
449
|
*/
|
|
389
450
|
interface DocumentChange {
|
|
390
|
-
/**
|
|
451
|
+
/** Package revision after this change — `getDocumentHandle()`'s number, monotonic. */
|
|
391
452
|
readonly revision: number;
|
|
392
453
|
/** Block ids created/deleted/edited by this change, when the engine reports them. */
|
|
393
454
|
readonly created?: readonly string[];
|
|
@@ -635,7 +696,7 @@ interface Editor {
|
|
|
635
696
|
readonly italic?: boolean;
|
|
636
697
|
readonly underline?: boolean;
|
|
637
698
|
} | null;
|
|
638
|
-
/** Find matches for a query, for the find/replace dialog. */
|
|
699
|
+
/** Find matches for a query, for the find/replace dialog. The BODY story only. */
|
|
639
700
|
findMatches(query: string, options?: {
|
|
640
701
|
readonly matchCase?: boolean;
|
|
641
702
|
readonly wholeWord?: boolean;
|
|
@@ -1078,66 +1139,7 @@ type ReviewItemPlacement = ReviewCommentPlacement | ReviewRevisionPlacement | Re
|
|
|
1078
1139
|
* arrives as a proposal somebody else accepts or rejects.
|
|
1079
1140
|
*/
|
|
1080
1141
|
type DocumentEditingMode = 'editing' | 'suggesting' | 'viewing';
|
|
1081
|
-
|
|
1082
|
-
type TableBorderTarget = 'all' | 'outside' | 'inside' | 'none' | 'top' | 'bottom' | 'left' | 'right';
|
|
1083
|
-
/** Concrete scopes that apply a complete border spec. */
|
|
1084
|
-
type TableBorderEdgeTarget = Exclude<TableBorderTarget, 'none'>;
|
|
1085
|
-
/**
|
|
1086
|
-
* Allowlisted OOXML table border line styles.
|
|
1087
|
-
*
|
|
1088
|
-
* Kept identical to `store/table-border-style.ts`; `table-border-style-parity.test-d.ts`
|
|
1089
|
-
* fails if the contract and store vocabularies drift.
|
|
1090
|
-
*/
|
|
1091
|
-
type TableBorderStyle = 'single' | 'dashed' | 'dotted' | 'double' | 'triple' | 'thick';
|
|
1092
|
-
/** Complete border spec for {@link EditorCommands.setTableBorders}. Size is in eighths of a point. */
|
|
1093
|
-
interface TableBorderSpec {
|
|
1094
|
-
readonly style: TableBorderStyle;
|
|
1095
|
-
readonly size: number;
|
|
1096
|
-
readonly color: ColorValue;
|
|
1097
|
-
}
|
|
1098
|
-
/** Vertical placement of content inside selected table cells. @public */
|
|
1099
|
-
type TableCellVerticalAlignment = 'top' | 'center' | 'bottom';
|
|
1100
|
-
/**
|
|
1101
|
-
* Adjacent grid columns addressed by an internal divider resize gesture.
|
|
1102
|
-
*
|
|
1103
|
-
* `sourceRevision` is captured from the store revision when the target is built.
|
|
1104
|
-
* Commit MUST refuse when it does not equal the current store revision, even if an older layout
|
|
1105
|
-
* remains published for geometry.
|
|
1106
|
-
*/
|
|
1107
|
-
interface TableColumnDividerResizeTarget {
|
|
1108
|
-
readonly sourceRevision: number;
|
|
1109
|
-
readonly tableId: string;
|
|
1110
|
-
readonly leftGridColumnId: string;
|
|
1111
|
-
readonly rightGridColumnId: string;
|
|
1112
|
-
readonly isHeaderRepeat: boolean;
|
|
1113
|
-
}
|
|
1114
|
-
/**
|
|
1115
|
-
* Last grid column and table width addressed by an outer-right-edge resize gesture.
|
|
1116
|
-
*
|
|
1117
|
-
* `sourceRevision` is captured from the store revision when the target is built.
|
|
1118
|
-
* Commit MUST refuse when it does not equal the current store revision, even if an older layout
|
|
1119
|
-
* remains published for geometry.
|
|
1120
|
-
*/
|
|
1121
|
-
interface TableRightEdgeResizeTarget {
|
|
1122
|
-
readonly sourceRevision: number;
|
|
1123
|
-
readonly tableId: string;
|
|
1124
|
-
readonly gridColumnId: string;
|
|
1125
|
-
readonly isHeaderRepeat: boolean;
|
|
1126
|
-
}
|
|
1127
|
-
/** Explicit row occurrence for furniture/context commands. */
|
|
1128
|
-
interface TableRowOccurrenceTarget {
|
|
1129
|
-
readonly sourceRevision: number;
|
|
1130
|
-
readonly tableId: string;
|
|
1131
|
-
readonly rowId: string;
|
|
1132
|
-
readonly isHeaderRepeat: boolean;
|
|
1133
|
-
}
|
|
1134
|
-
/** Explicit column occurrence for furniture/context commands. */
|
|
1135
|
-
interface TableColumnOccurrenceTarget {
|
|
1136
|
-
readonly sourceRevision: number;
|
|
1137
|
-
readonly tableId: string;
|
|
1138
|
-
readonly gridColumnId: string;
|
|
1139
|
-
readonly isHeaderRepeat: boolean;
|
|
1140
|
-
}
|
|
1142
|
+
|
|
1141
1143
|
/**
|
|
1142
1144
|
* Every command the editor accepts, keyed by name with its payload as the value.
|
|
1143
1145
|
*
|
|
@@ -1226,6 +1228,15 @@ interface EditorCommands extends EditorCommandShape<DocEdits>, EditorHeaderFoote
|
|
|
1226
1228
|
right?: number | null;
|
|
1227
1229
|
firstLine?: number | null;
|
|
1228
1230
|
};
|
|
1231
|
+
/**
|
|
1232
|
+
* The Paragraph dialog as one command: alignment, indents, spacing, line spacing and
|
|
1233
|
+
* the five paragraph flags, applied to every paragraph the selection touches.
|
|
1234
|
+
*
|
|
1235
|
+
* ONE undo step, because a dialog is one gesture. The single-purpose commands beside it
|
|
1236
|
+
* (`setAlignment`, `setIndent`, `setLineSpacing`, `setParagraphSpacing`) stay the right
|
|
1237
|
+
* choice for a toolbar button; this is for chrome that changes several at once.
|
|
1238
|
+
*/
|
|
1239
|
+
setParagraphFormat: ParagraphFormatCommand;
|
|
1229
1240
|
toggleList: {
|
|
1230
1241
|
kind: 'bullet' | 'ordered';
|
|
1231
1242
|
};
|
|
@@ -1827,4 +1838,4 @@ interface EditorEvents {
|
|
|
1827
1838
|
error: (error: EditorError) => void;
|
|
1828
1839
|
}
|
|
1829
1840
|
|
|
1830
|
-
export { type NotePropertiesState as $, type AuthoredNoteNumbering as A, type EditorHeaderFooterCommands as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorNoteCommands as G, type EditorPosition as H, type ImageContext as I, type EditorQueries as J, type EditorQuery as K, type EditorQueryResults as L, type EditorScope as M, type EditorSelection as N, type FurnitureVariant as O, type HeaderFooterSlotArgs as P, type HeaderFooterState as Q, type HyperlinkInfo as R, type SelectedImageState as S, type TableBorderEdgeTarget as T, type InteractionAffinity as U, type ViewScope as V, type InteractionOutcome as W, type InteractionOutcomeCode as X, type NoteKind as Y, type ZoomMode as Z, type NotePropertiesSide as _, type EditorSnapshot as a, type PageSetup as a0, type ResolvedNoteNumbering as a1, type ReviewActivationOptions as a2, type ReviewCommentPlacement as a3, type ReviewCustomPlacement as a4, type ReviewItemPlacement as a5, type ReviewItemPlacementBase as a6, type ReviewItemQuery as a7, type ReviewRevisionPlacement as a8, type SemanticIdentity as a9, type SemanticTarget as aa, type TableBorderTarget as ab, type TableCellVerticalAlignment as ac, type TableColumnDividerResizeTarget as ad, type TableColumnOccurrenceTarget as ae, type TableRightEdgeResizeTarget as af, type TableRowOccurrenceTarget as ag, type TextMatch as ah, type ZoomFitTarget as ai, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, cropPercentFromCropPermille as e, cropPercentFromPermille as f, cropPercentFromSourceCrop as g, cropPermilleFromCropPercent as h, cropPermilleFromPercent as i, type FontSource as j, type FontSourceSubstitution as k, type
|
|
1841
|
+
export { type NotePropertiesState as $, type AuthoredNoteNumbering as A, type EditorHeaderFooterCommands as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorNoteCommands as G, type EditorPosition as H, type ImageContext as I, type EditorQueries as J, type EditorQuery as K, type EditorQueryResults as L, type EditorScope as M, type EditorSelection as N, type FurnitureVariant as O, type HeaderFooterSlotArgs as P, type HeaderFooterState as Q, type HyperlinkInfo as R, type SelectedImageState as S, type TableBorderEdgeTarget as T, type InteractionAffinity as U, type ViewScope as V, type InteractionOutcome as W, type InteractionOutcomeCode as X, type NoteKind as Y, type ZoomMode as Z, type NotePropertiesSide as _, type EditorSnapshot as a, type PageSetup as a0, type ResolvedNoteNumbering as a1, type ReviewActivationOptions as a2, type ReviewCommentPlacement as a3, type ReviewCustomPlacement as a4, type ReviewItemPlacement as a5, type ReviewItemPlacementBase as a6, type ReviewItemQuery as a7, type ReviewRevisionPlacement as a8, type SemanticIdentity as a9, type SemanticTarget as aa, type TableBorderTarget as ab, type TableCellVerticalAlignment as ac, type TableColumnDividerResizeTarget as ad, type TableColumnOccurrenceTarget as ae, type TableRightEdgeResizeTarget as af, type TableRowOccurrenceTarget as ag, type TextMatch as ah, type ZoomFitTarget as ai, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, cropPercentFromCropPermille as e, cropPercentFromPermille as f, cropPercentFromSourceCrop as g, cropPermilleFromCropPercent as h, cropPermilleFromPercent as i, type FontSource as j, type FontSourceSubstitution as k, type Editor as l, type FontFaceRequest as m, type TableBorderSpec as n, type TableBorderStyle as o, type TableContext as p, type DocumentChange as q, type DocumentEditingMode as r, sourceCropFromCropPercent as s, type DocumentHandle as t, type EditorCommandShape as u, validateImageCropPercent as v, type EditorCommands as w, type EditorError as x, type EditorEvents as y, type EditorFontErrorCode as z };
|
package/dist/editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkJEMP5YI5_cjs=require('./chunk-JEMP5YI5.cjs');require('./chunk-F7Z6PWAZ.cjs'),require('./chunk-DGUHCJPF.cjs'),require('./chunk-JZXK4DKV.cjs'),require('./chunk-SKWYEZCO.cjs'),require('./chunk-IJ4V3LGV.cjs'),require('./chunk-SFMAIFEN.cjs');var chunkDY3QVCWC_cjs=require('./chunk-DY3QVCWC.cjs');require('./chunk-YMYCPY5Y.cjs');var chunk7VQ7YLW3_cjs=require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ga}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.La}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ua}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ya}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ba}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.X}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.P}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ha}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.N}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.O}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.l}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.k}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.r}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.q}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ba}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.aa}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ca}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Y}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.p}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.o}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Fa}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ea}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.da}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.x}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.w}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.h}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.L}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.K}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Aa}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.za}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ha}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.va}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ia}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ka}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.g}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Sa}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.U}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.T}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ma}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ka}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.j}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ta}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.H}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.F}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.C}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.G}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.E}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Pa}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.wa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Z}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.u}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ta}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.S}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.M}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ua}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.xa}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.m}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.s}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.V}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs._}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Oa}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.i}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.z}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.A}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Da}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Qa}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.R}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ea}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ra}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.B}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.y}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ia}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.n}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.qa}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.oa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.sa}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.pa}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ja}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Q}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.J}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.t}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.D}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Ca}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.Na}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ga}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.fa}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.la}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.$}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.W}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ra}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.ma}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.na}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.I}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkJEMP5YI5_cjs.v}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.E}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.vf}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.wf}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.Xa}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.yf}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.xf}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.F}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.ob}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.kb}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.uf}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.pb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkDY3QVCWC_cjs.zf}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunk7VQ7YLW3_cjs.a}});
|
|
1
|
+
'use strict';var chunkTJEWP7MX_cjs=require('./chunk-TJEWP7MX.cjs');require('./chunk-M6ZIVJUA.cjs'),require('./chunk-HTJLSGBH.cjs'),require('./chunk-JEHWQPXS.cjs'),require('./chunk-UGUPVZDY.cjs'),require('./chunk-XRDTD4X3.cjs'),require('./chunk-HCSWWXS2.cjs');var chunkRUS2YBWU_cjs=require('./chunk-RUS2YBWU.cjs');require('./chunk-YMYCPY5Y.cjs');var chunk7VQ7YLW3_cjs=require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ha}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ma}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.va}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.za}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ca}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Y}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Q}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ia}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.O}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.P}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.m}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.l}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.s}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.r}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ca}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ba}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.da}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Z}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.q}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.p}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ga}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Fa}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ea}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.y}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.x}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.h}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.M}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.L}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ba}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Aa}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ia}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.wa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ja}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.la}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ka}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.g}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ta}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.V}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.U}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Na}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.La}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.k}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ua}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.I}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.G}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.D}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.H}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.F}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Qa}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.xa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs._}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.v}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ua}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.T}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.N}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Va}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ya}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.n}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.t}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.W}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.$}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Pa}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.j}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.A}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.B}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ea}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ra}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.i}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.S}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.fa}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Sa}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.C}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.z}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ja}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.o}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ra}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.pa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ta}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.qa}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Ka}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.R}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.K}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.u}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.E}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Da}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.Oa}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ha}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ga}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.ma}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.aa}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.X}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.sa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.na}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.oa}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.J}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkTJEWP7MX_cjs.w}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.E}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.vf}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.wf}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.Xa}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.yf}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.xf}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.F}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.ob}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.kb}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.uf}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.pb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkRUS2YBWU_cjs.zf}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunk7VQ7YLW3_cjs.a}});
|
package/dist/editor.d.cts
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-BveffuKp.cjs';
|
|
2
|
+
import { l as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-A-SLSKzK.cjs';
|
|
3
|
+
export { m as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-A-SLSKzK.cjs';
|
|
4
|
+
import { ColorValue } from './contracts/types.cjs';
|
|
5
|
+
export { ParagraphFlags, ParagraphTabStop } from './contracts/types.cjs';
|
|
6
|
+
import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-C2NsEgfW.cjs';
|
|
7
|
+
export { a as TreeApplyResult } from './tree-session-C2NsEgfW.cjs';
|
|
8
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-CWlj33GH.cjs';
|
|
9
|
+
export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-CWlj33GH.cjs';
|
|
10
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-BRL__nm2.cjs';
|
|
11
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-39yzaZO_.cjs';
|
|
12
|
+
export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as ParagraphPropertyEdit, W as RunTableChromeCommandResult, X as SectionAnchor, Y as SelectedDrawingOverlayTarget, Z as SurfaceFormatting, _ as SurfaceHyperlink, $ as SurfaceNavigation, a0 as SurfaceOverlayCoordinates, a1 as SurfaceParagraphFormat, a2 as TABLE_BORDER_STYLE_OPTIONS, a3 as TABLE_BORDER_TARGET_OPTIONS, a4 as TABLE_BORDER_WIDTH_OPTIONS, a5 as TABLE_CHROME_SLOT_IDS, a6 as TableBorderStyleOption, a7 as TableBorderTargetOption, a8 as TableBorderTargetValue, a9 as TableBorderWidthOption, aa as TableChromeDraft, ab as TableChromePick, ac as TableChromeSlotId, ad as TableInteractionLabelKey, ae as ToolbarCommandState, af as WORD_DEFAULT_FONT, ag as applyTableChromePick, ah as blankDocumentBytes, ai as canExecuteImageCommand, aj as captureImageMutationPreconditions, ak as chromeControlCount, al as chromeMenuSlots, am as chromeProbeForSlot, an as chromeSlotId, ao as commandForSlot, ap as commandForSlotValue, aq as commandForTableChromeSlotValue, ar as composeFontConfiguration, as as computeImageResizeResult, at as computeMovedImagePosition, au as computeResizedImageExtentEmu, av as createDocxEditor, aw as createFontSource, ax as createImageOverlayScrollPort, ay as cssPixelsToLayoutPoints, az as defaultChromeGroups, aA as defaultTableLabel, aB as emuToOverlayPoints, aC as executeImageCommand, aD as finalizeImageOverlayInteraction, aE as formattingBarChromeGroups, aF as isStaleImageInteractionCommit, aG as isTableChromeSlot, aH as layoutPointsToCssPixels, aI as loadFonts, aJ as overlayFrameToSheetCssPixels, aK as pointsToEmu, aL as probeTableChromeCommand, aM as resizePreservesAspect, aN as runSave, aO as runTableChromeCommand, aP as runTableCommand, aQ as runToolbarCommand, aR as selectedDrawingOverlayTargetOf, aS as selectedImageStateOf, aT as surfacePaintScale, aU as tableChromeIconPaths, aV as tableChromeLabelKeyForTarget, aW as tableChromeToolbarState, aX as tableChromeVisible, aY as tableCommandToolbarState, aZ as toolbarCommandState, a_ as toolbarCommandStates } from './index-39yzaZO_.cjs';
|
|
13
|
+
import { e as OoxmlPart } from './ooxml-tree-BU0e3DVi.cjs';
|
|
11
14
|
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-CD7slqvl.cjs';
|
|
12
15
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-IjbL-4CT.cjs';
|
|
16
|
+
import { S as SemanticLayout } from './semantic-records-rAKWaD-1.cjs';
|
|
17
|
+
export { T as TextMeasurer } from './semantic-records-rAKWaD-1.cjs';
|
|
18
|
+
export { S as SectionProperties } from './semantic-cell-selection-C45Gn4K-.cjs';
|
|
19
|
+
export { R as ReviewModelInput } from './review-support-CG7aVSPh.cjs';
|
|
20
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-DVUqu_47.cjs';
|
|
21
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-COQY0Lnq.cjs';
|
|
20
22
|
import './ooxml-package-CR5us6ad.cjs';
|
|
21
|
-
import './
|
|
22
|
-
import './custom-node-writes-D9G3GKQ7.cjs';
|
|
23
|
+
import './custom-node-writes-Bu8JIqfA.cjs';
|
|
23
24
|
import './hf-references-CgEOSw3i.cjs';
|
|
24
25
|
import './note-nodes-C6DLxlvj.cjs';
|
|
25
|
-
import './tree-store-
|
|
26
|
+
import './tree-store-Dob9Us6Y.cjs';
|
|
26
27
|
import 'prosemirror-model';
|
|
27
28
|
import './contracts/document.cjs';
|
|
28
29
|
import './revision-projection-WzlQGBJx.cjs';
|
|
29
|
-
import './review-reads-
|
|
30
|
+
import './review-reads-Bn7aZU4u.cjs';
|
|
30
31
|
|
|
31
32
|
interface LayoutShapingInstrumentation {
|
|
32
33
|
readonly onFontByteCopy?: () => void;
|
|
@@ -59,6 +60,46 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
|
|
|
59
60
|
*/
|
|
60
61
|
declare const LOADING_SNAPSHOT: EditorSnapshot;
|
|
61
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Mount a paginated surface over DOCX bytes.
|
|
65
|
+
*
|
|
66
|
+
* Returns a typed rejection rather than throwing: a failure here is a property of the file,
|
|
67
|
+
* and a host must be able to tell "not a package" from "no body" without parsing an error
|
|
68
|
+
* message.
|
|
69
|
+
*/
|
|
70
|
+
declare function mountPaginatedSurface(container: HTMLElement, bytes: Uint8Array, options?: PaginatedSurfaceOptions): OpenPaginatedResult;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The story a NODE lives in, which is what a write about that node must target.
|
|
74
|
+
*
|
|
75
|
+
* The open scope is a near-enough proxy most of the time and wrong exactly when it matters:
|
|
76
|
+
* nothing binds a node id to it, so a verb invoked on a control, a chip or a paragraph the
|
|
77
|
+
* reader is not currently standing in wrote against the wrong store — or, where the id came
|
|
78
|
+
* from a body-only index, against body content the reader could not see.
|
|
79
|
+
*
|
|
80
|
+
* Answered from the id's own PART NAME. Node ids are minted `${partName}#${path}`, so the
|
|
81
|
+
* question is constant-time and needs no store to be opened. That last part is load-bearing:
|
|
82
|
+
* asking each scope for its paragraph list instead OPENS a story store, the store cap is 64,
|
|
83
|
+
* and a store whose part is still in the package is never evicted — on a many-section
|
|
84
|
+
* document that left later headers unopenable for the rest of the session.
|
|
85
|
+
*
|
|
86
|
+
* Falls back to `fallback` for an id no story claims, so the store refuses it rather than this.
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* The part a NODE lives in, WITHOUT opening a story store.
|
|
90
|
+
*
|
|
91
|
+
* `session.partFor(scope)` resolves a scope by opening that story's store, and an open store is
|
|
92
|
+
* retained for as long as its part is in the package. The cap is 64. So routing a pure READ —
|
|
93
|
+
* "is this control locked", "what is its tab index" — through `partFor` spent a permanent slot
|
|
94
|
+
* per part touched, and an id naming no node at all still spent one, because the part name is
|
|
95
|
+
* matched from the id's prefix before anything is looked up. Sixty-four such reads and no
|
|
96
|
+
* further header could be opened for the rest of the session, silently.
|
|
97
|
+
*
|
|
98
|
+
* Read straight from the live package instead. Ids carry the canonical part name, so this is a
|
|
99
|
+
* map lookup.
|
|
100
|
+
*/
|
|
101
|
+
declare function partOfNodeId(session: Pick<TreeDocxSessionView, 'currentPackage' | 'part'>, nodeId: string | undefined): OoxmlPart | null;
|
|
102
|
+
|
|
62
103
|
/** The engine paints at 96 px per inch (twips / 15, 1440 twips per inch). */
|
|
63
104
|
declare const PX_PER_INCH = 96;
|
|
64
105
|
/** Painted pixels per centimetre, derived from {@link PX_PER_INCH}. */
|
|
@@ -149,15 +190,6 @@ declare function snapTwips(value: number, unit: RulerUnit, precise: boolean): nu
|
|
|
149
190
|
*/
|
|
150
191
|
declare function dragIndent(handle: RulerIndentHandle, positionTwips: number, indent: RulerIndent, page: RulerPageMetrics, options?: RulerDragOptions): RulerIndent;
|
|
151
192
|
|
|
152
|
-
/**
|
|
153
|
-
* Mount a paginated surface over DOCX bytes.
|
|
154
|
-
*
|
|
155
|
-
* Returns a typed rejection rather than throwing: a failure here is a property of the file,
|
|
156
|
-
* and a host must be able to tell "not a package" from "no body" without parsing an error
|
|
157
|
-
* message.
|
|
158
|
-
*/
|
|
159
|
-
declare function mountPaginatedSurface(container: HTMLElement, bytes: Uint8Array, options?: PaginatedSurfaceOptions): OpenPaginatedResult;
|
|
160
|
-
|
|
161
193
|
/**
|
|
162
194
|
* Stable value identity for a command, including nested payloads.
|
|
163
195
|
*
|
|
@@ -324,4 +356,4 @@ declare function validateSetImagePositionCommand(command: {
|
|
|
324
356
|
readonly relativeToV?: string;
|
|
325
357
|
}, mode: 'frame' | 'simple'): boolean;
|
|
326
358
|
|
|
327
|
-
export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
|
|
359
|
+
export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
|