@docx-editor.dev/core 2.7.0 → 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.
Files changed (90) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.js +1 -1
  3. package/dist/binding.cjs +1 -1
  4. package/dist/binding.d.cts +8 -7
  5. package/dist/binding.d.ts +8 -7
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-2WIXJ7CW.js +10 -0
  8. package/dist/chunk-5XKD3VFP.js +18 -0
  9. package/dist/{chunk-DTR64XCS.cjs → chunk-HCSWWXS2.cjs} +2 -2
  10. package/dist/chunk-HTJLSGBH.cjs +18 -0
  11. package/dist/{chunk-O4VILLOM.cjs → chunk-JEHWQPXS.cjs} +1 -1
  12. package/dist/chunk-KCJLRAKT.js +5 -0
  13. package/dist/chunk-KTL3UMPK.js +2 -0
  14. package/dist/chunk-M6ZIVJUA.cjs +2 -0
  15. package/dist/chunk-NU57YOQE.js +15 -0
  16. package/dist/chunk-RUS2YBWU.cjs +10 -0
  17. package/dist/chunk-TJEWP7MX.cjs +15 -0
  18. package/dist/chunk-UGUPVZDY.cjs +5 -0
  19. package/dist/{chunk-NDTLLSG7.js → chunk-XJRMFS6O.js} +1 -1
  20. package/dist/chunk-XN634HAC.js +2 -0
  21. package/dist/contracts/document.d.cts +25 -3
  22. package/dist/contracts/document.d.ts +25 -3
  23. package/dist/contracts/editor.d.cts +7 -7
  24. package/dist/contracts/editor.d.ts +7 -7
  25. package/dist/contracts/interaction.d.cts +6 -6
  26. package/dist/contracts/interaction.d.ts +6 -6
  27. package/dist/contracts/modules.d.cts +4 -3
  28. package/dist/contracts/modules.d.ts +4 -3
  29. package/dist/contracts/types.d.cts +101 -1
  30. package/dist/contracts/types.d.ts +101 -1
  31. package/dist/{custom-node-writes-BpOBjNzo.d.ts → custom-node-writes-BdVl-LAC.d.ts} +19 -4
  32. package/dist/{custom-node-writes-C_AlNvds.d.cts → custom-node-writes-Bu8JIqfA.d.cts} +19 -4
  33. package/dist/{editor-CXaGlcUa.d.cts → editor-CWlj33GH.d.cts} +78 -67
  34. package/dist/{editor-C--WWCBA.d.ts → editor-D52SD4jG.d.ts} +78 -67
  35. package/dist/editor.cjs +1 -1
  36. package/dist/editor.d.cts +63 -31
  37. package/dist/editor.d.ts +63 -31
  38. package/dist/editor.js +1 -1
  39. package/dist/{image-resources-Bkmu1Jei.d.cts → image-resources-BveffuKp.d.cts} +1 -1
  40. package/dist/{image-resources-BWd5u-op.d.ts → image-resources-D63k8w5f.d.ts} +1 -1
  41. package/dist/{index-QsE1xXyT.d.cts → index-39yzaZO_.d.cts} +1573 -1429
  42. package/dist/{index-DW0TsrYl.d.ts → index-ZuqIj0b9.d.ts} +1573 -1429
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.d.cts +14 -14
  45. package/dist/index.d.ts +14 -14
  46. package/dist/index.js +1 -1
  47. package/dist/layout.cjs +1 -1
  48. package/dist/layout.d.cts +149 -21
  49. package/dist/layout.d.ts +149 -21
  50. package/dist/layout.js +1 -1
  51. package/dist/output.cjs +1 -1
  52. package/dist/output.d.cts +6 -5
  53. package/dist/output.d.ts +6 -5
  54. package/dist/output.js +1 -1
  55. package/dist/{review-reads-C5E7u-pt.d.ts → review-reads-B_pXe43J.d.ts} +1 -1
  56. package/dist/{review-reads-ChgUq41I.d.cts → review-reads-Bn7aZU4u.d.cts} +1 -1
  57. package/dist/{review-support-Cr2n7f1-.d.ts → review-support--I4ChuzF.d.ts} +1 -1
  58. package/dist/{review-support-oQrX6Xu3.d.cts → review-support-CG7aVSPh.d.cts} +1 -1
  59. package/dist/{semantic-cell-selection-CQOgvtbT.d.cts → semantic-cell-selection-C45Gn4K-.d.cts} +14 -2
  60. package/dist/{semantic-cell-selection-C8RC0VnN.d.ts → semantic-cell-selection-I-uAmi0q.d.ts} +14 -2
  61. package/dist/{semantic-interaction-C45D_oG2.d.ts → semantic-interaction-Bu_3IPaV.d.ts} +14 -2
  62. package/dist/{semantic-interaction-f4GyBQ_1.d.cts → semantic-interaction-DVUqu_47.d.cts} +14 -2
  63. package/dist/{semantic-paint-DUkGLJ_L.d.ts → semantic-paint-BKiiDJol.d.ts} +2 -2
  64. package/dist/{semantic-paint-BUt0ePEW.d.cts → semantic-paint-COQY0Lnq.d.cts} +2 -2
  65. package/dist/{semantic-records-DoW_xNgJ.d.ts → semantic-records-DHcMZM2-.d.ts} +22 -30
  66. package/dist/{semantic-records-CuT3Wsd-.d.cts → semantic-records-rAKWaD-1.d.cts} +22 -30
  67. package/dist/{shaped-measurer-CDcHzjhf.d.cts → shaped-measurer-BRL__nm2.d.cts} +1 -1
  68. package/dist/{shaped-measurer-CakZ7g1s.d.ts → shaped-measurer-Cw45Nu5R.d.ts} +1 -1
  69. package/dist/store.cjs +1 -1
  70. package/dist/store.d.cts +21 -9
  71. package/dist/store.d.ts +21 -9
  72. package/dist/store.js +1 -1
  73. package/dist/{tree-op-types-QujrzgCz.d.cts → tree-op-types-A-SLSKzK.d.cts} +54 -9
  74. package/dist/{tree-op-types-fZgbrR5F.d.ts → tree-op-types-BbzrA-kg.d.ts} +54 -9
  75. package/dist/{tree-session-5UWKAQ41.d.cts → tree-session-C2NsEgfW.d.cts} +41 -6
  76. package/dist/{tree-session--6LDTNjR.d.ts → tree-session-DeNJa86l.d.ts} +41 -6
  77. package/dist/{tree-store-Dy9FZ1pa.d.ts → tree-store-CKswbQl3.d.ts} +13 -1
  78. package/dist/{tree-store-DhYIACNE.d.cts → tree-store-Dob9Us6Y.d.cts} +13 -1
  79. package/package.json +2 -2
  80. package/dist/chunk-32HTRN7R.js +0 -10
  81. package/dist/chunk-BRBRYJKE.cjs +0 -2
  82. package/dist/chunk-EMQSFPJO.cjs +0 -15
  83. package/dist/chunk-GBK7Z6F4.cjs +0 -5
  84. package/dist/chunk-GPJXQDHC.js +0 -2
  85. package/dist/chunk-JLSB6KNZ.js +0 -5
  86. package/dist/chunk-LEV2X47E.cjs +0 -18
  87. package/dist/chunk-OB6JFVYA.js +0 -15
  88. package/dist/chunk-QTUZFJ4O.js +0 -18
  89. package/dist/chunk-UE7KTQLK.js +0 -2
  90. package/dist/chunk-WC3LI6FC.cjs +0 -10
@@ -1,10 +1,10 @@
1
1
  import { e as OoxmlPart, O as OoxmlNode } from './ooxml-tree-BU0e3DVi.cjs';
2
2
  import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
3
- import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-Bkmu1Jei.cjs';
4
- import { h as DrawingTreeDocOp, a as TreeOpRejection, T as TreeDocOp } from './tree-op-types-QujrzgCz.cjs';
3
+ import { S as SupportedImageMime, b as ImageDecodePort } from './image-resources-BveffuKp.cjs';
4
+ import { h as DrawingTreeDocOp, a as TreeOpRejection, T as TreeDocOp } from './tree-op-types-A-SLSKzK.cjs';
5
5
  import { c as HeaderFooterKind, H as HeaderFooterVariant } from './hf-references-CgEOSw3i.cjs';
6
6
  import { N as NoteKind } from './note-nodes-C6DLxlvj.cjs';
7
- import { T as TreeModelChange, a as TreeStoryRef, b as TreeDocumentStore, c as TransactionContext, d as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-DhYIACNE.cjs';
7
+ import { T as TreeModelChange, a as TreeStoryRef, b as TreeDocumentStore, c as TransactionContext, d as TransactOptions, S as SelectionMark, e as TreeDocumentCheckpoint } from './tree-store-Dob9Us6Y.cjs';
8
8
 
9
9
  /** A freshly allocated drawing property id, or the reason one could not be minted. */
10
10
  type DrawingPropertyIdResult = {
@@ -616,8 +616,12 @@ declare class TreePackageStore {
616
616
  redo(): TreeModelChange | null;
617
617
  selectionForUndo(): SelectionMark | null;
618
618
  selectionForRedo(): SelectionMark | null;
619
+ /** See {@link openStoryPartsOf}. */
620
+ openStoryParts(): readonly OoxmlPart[];
619
621
  /** How many story stores are open (body counts as one). */
620
622
  openedStoryCount(): number;
623
+ /** See {@link openStoryTokenOf}. */
624
+ openStoryToken(): string;
621
625
  /**
622
626
  * Insert a validated raster image as one package undo unit (task 12).
623
627
  */
@@ -870,7 +874,18 @@ interface CustomNodePayloadRead {
870
874
  * Every store the story relates to, so a document carrying two definitions' payloads answers
871
875
  * for both without anyone naming a namespace.
872
876
  */
873
- declare function customNodePayloadsByControl(pkg: OoxmlPackage, storyPartName: string): ReadonlyMap<string, CustomNodePayloadRead>;
877
+ declare function customNodePayloadsByControl(pkg: OoxmlPackage, storyPartName: string,
878
+ /**
879
+ * The part that RELATES the customXml store, when it is not the story's own.
880
+ *
881
+ * Two different questions wear one name here: which part holds the CONTROLS, and which part
882
+ * relates the STORE they bind into. Word only reads a store hung off the main document part,
883
+ * so {@link writeCustomNode} already takes them separately — this read did not, and answered
884
+ * with the body's controls whatever story it was asked about. A chip in a header therefore
885
+ * read as having no payload at all, and an update that meant to keep the existing data
886
+ * dropped it.
887
+ */
888
+ dataOwnerPartName?: string): ReadonlyMap<string, CustomNodePayloadRead>;
874
889
  /** Every payload one store holds, for a caller resolving a control's `data`. */
875
890
  declare function customNodePayloadsOf(pkg: OoxmlPackage, storyPartName: string, namespaceUri: string): ReadonlyMap<string, {
876
891
  readonly label: string;
@@ -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-oQrX6Xu3.cjs';
3
- import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-f4GyBQ_1.cjs';
4
- import { ExecErrorCode, ColorValue, 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-QujrzgCz.cjs';
6
- import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-Bkmu1Jei.cjs';
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
  *
@@ -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
- /** Which cell edges a table border command targets. */
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 the PACKAGE revision of the layout the target was read from — the number
1104
- * `getDocumentHandle()` reports, never one story's own. Commit MUST refuse when it no longer
1105
- * equals the current one, even if an older layout 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` follows the same rule as {@link TableColumnDividerResizeTarget}: the package
1118
- * revision of the layout the target was read from, and commit refuses once it no longer equals
1119
- * the current one.
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. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
1128
- interface TableRowOccurrenceTarget {
1129
- readonly sourceRevision: number;
1130
- readonly tableId: string;
1131
- readonly rowId: string;
1132
- readonly isHeaderRepeat: boolean;
1133
- }
1134
- /** Explicit column occurrence. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
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 FontFaceRequest as l, type Editor 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 };
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-Cr2n7f1-.js';
3
- import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-C45D_oG2.js';
4
- import { ExecErrorCode, ColorValue, 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-fZgbrR5F.js';
6
- import { S as SupportedImageMime, I as ImageResourceState } from './image-resources-BWd5u-op.js';
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
  *
@@ -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
- /** Which cell edges a table border command targets. */
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 the PACKAGE revision of the layout the target was read from — the number
1104
- * `getDocumentHandle()` reports, never one story's own. Commit MUST refuse when it no longer
1105
- * equals the current one, even if an older layout 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` follows the same rule as {@link TableColumnDividerResizeTarget}: the package
1118
- * revision of the layout the target was read from, and commit refuses once it no longer equals
1119
- * the current one.
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. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
1128
- interface TableRowOccurrenceTarget {
1129
- readonly sourceRevision: number;
1130
- readonly tableId: string;
1131
- readonly rowId: string;
1132
- readonly isHeaderRepeat: boolean;
1133
- }
1134
- /** Explicit column occurrence. `sourceRevision` per {@link TableColumnDividerResizeTarget}. */
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 FontFaceRequest as l, type Editor 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 };
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 chunkEMQSFPJO_cjs=require('./chunk-EMQSFPJO.cjs');require('./chunk-BRBRYJKE.cjs'),require('./chunk-LEV2X47E.cjs'),require('./chunk-O4VILLOM.cjs'),require('./chunk-GBK7Z6F4.cjs'),require('./chunk-XRDTD4X3.cjs'),require('./chunk-DTR64XCS.cjs');var chunkWC3LI6FC_cjs=require('./chunk-WC3LI6FC.cjs');require('./chunk-YMYCPY5Y.cjs');var chunk7VQ7YLW3_cjs=require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ga}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.La}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ua}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ya}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ba}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.X}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.P}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ha}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.N}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.O}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.l}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.k}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.r}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.q}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ba}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.aa}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ca}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Y}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.p}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.o}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Fa}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ea}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.da}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.x}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.w}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.h}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.L}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.K}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Aa}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.za}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ha}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.va}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ia}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ka}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.g}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Sa}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.U}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.T}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ma}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ka}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.j}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ta}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.H}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.F}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.C}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.G}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.E}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Pa}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.wa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Z}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.u}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ta}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.S}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.M}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ua}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.xa}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.m}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.s}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.V}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs._}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Oa}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.i}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.z}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.A}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Da}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Qa}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.R}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ea}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ra}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.B}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.y}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ia}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.n}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.qa}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.oa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.sa}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.pa}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ja}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Q}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.J}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.t}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.D}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Ca}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.Na}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ga}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.fa}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.la}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.$}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.W}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ra}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.ma}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.na}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.I}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkEMQSFPJO_cjs.v}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.E}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.wf}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.xf}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.Xa}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.zf}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.yf}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.F}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.ob}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.kb}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.vf}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.pb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkWC3LI6FC_cjs.Af}});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-Bkmu1Jei.cjs';
2
- import { i as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-QujrzgCz.cjs';
3
- export { j as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-QujrzgCz.cjs';
4
- import { g as DocumentThemeColorEntry } from './tree-session-5UWKAQ41.cjs';
5
- export { a as TreeApplyResult, c as TreeDocxSessionView } from './tree-session-5UWKAQ41.cjs';
6
- import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-CXaGlcUa.cjs';
7
- 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-CXaGlcUa.cjs';
8
- import { L as LayoutShapingOptions } from './shaped-measurer-CDcHzjhf.cjs';
9
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-QsE1xXyT.cjs';
10
- 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 RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-QsE1xXyT.cjs';
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 { ColorValue } from './contracts/types.cjs';
14
- import { S as SemanticLayout } from './semantic-records-CuT3Wsd-.cjs';
15
- export { T as TextMeasurer } from './semantic-records-CuT3Wsd-.cjs';
16
- export { S as SectionProperties } from './semantic-cell-selection-CQOgvtbT.cjs';
17
- export { R as ReviewModelInput } from './review-support-oQrX6Xu3.cjs';
18
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-f4GyBQ_1.cjs';
19
- export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-BUt0ePEW.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 './ooxml-tree-BU0e3DVi.cjs';
22
- import './custom-node-writes-C_AlNvds.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-DhYIACNE.cjs';
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-ChgUq41I.cjs';
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 };