@docx-editor.dev/core 2.32.0 → 2.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -0
  3. package/dist/automation.cjs +1 -1
  4. package/dist/automation.d.ts +14 -52
  5. package/dist/automation.js +1 -1
  6. package/dist/binding.cjs +1 -1
  7. package/dist/binding.d.ts +14 -14
  8. package/dist/binding.js +1 -1
  9. package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-DY0xsXm_.d.ts} +231 -125
  10. package/dist/chunk-37IYWENL.cjs +1 -0
  11. package/dist/chunk-37RNWL45.js +4 -0
  12. package/dist/chunk-5HUVQXET.cjs +4 -0
  13. package/dist/chunk-5JP3QQF7.js +7 -0
  14. package/dist/chunk-5KOLFKOB.cjs +5 -0
  15. package/dist/chunk-6MF5PN2E.js +236 -0
  16. package/dist/chunk-77JT2AU7.js +2 -0
  17. package/dist/{chunk-ETDZFNMI.js → chunk-7FUORGCW.js} +1 -1
  18. package/dist/chunk-A5BTVPET.cjs +236 -0
  19. package/dist/chunk-AFXFH2T2.js +3 -0
  20. package/dist/chunk-AVCYP7OY.js +5 -0
  21. package/dist/chunk-BL2E4QRA.js +1 -0
  22. package/dist/chunk-DB7X4Y6O.js +4 -0
  23. package/dist/chunk-DR6W23TB.cjs +2 -0
  24. package/dist/chunk-DYLB5U42.js +1 -0
  25. package/dist/chunk-E5BKDHIP.cjs +1 -0
  26. package/dist/chunk-IWXBRUPG.cjs +4 -0
  27. package/dist/{chunk-L5TYBFDB.js → chunk-KCUXXO3Q.js} +1 -1
  28. package/dist/chunk-KYA4Y2YB.js +1 -0
  29. package/dist/{chunk-6UDJUI3W.cjs → chunk-L74TCGVH.cjs} +1 -1
  30. package/dist/chunk-NBSSQSKY.js +30 -0
  31. package/dist/{chunk-OKMEMSKB.cjs → chunk-NEM774E3.cjs} +1 -1
  32. package/dist/chunk-NKZVMMHU.cjs +1 -0
  33. package/dist/chunk-TXIO5WYQ.cjs +32 -0
  34. package/dist/chunk-UKG2TXWH.cjs +7 -0
  35. package/dist/chunk-V7CO55DO.cjs +3 -0
  36. package/dist/chunk-VLQDQNSS.js +1 -0
  37. package/dist/chunk-VQOAC3VI.cjs +30 -0
  38. package/dist/chunk-YWJSQA2O.js +32 -0
  39. package/dist/chunk-ZJ74LCFI.cjs +1 -0
  40. package/dist/collaboration/replication.cjs +1 -1
  41. package/dist/collaboration/replication.d.ts +13 -4
  42. package/dist/collaboration/replication.js +1 -1
  43. package/dist/collaboration.d.ts +3 -3
  44. package/dist/contracts/document.d.ts +3 -3
  45. package/dist/contracts/editor.d.ts +10 -10
  46. package/dist/contracts/interaction.d.ts +2 -2
  47. package/dist/contracts/modules.d.ts +12 -12
  48. package/dist/contracts/types.d.ts +4 -4
  49. package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
  50. package/dist/diagnostic-context-CkZKkKvB.d.ts +98 -0
  51. package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +3 -3
  52. package/dist/{document-protection-NaniLHWF.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
  53. package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +161 -18
  54. package/dist/drawing-preview-package-fFjXpOMS.d.ts +115 -0
  55. package/dist/{editor-DZwOTmlR.d.ts → editor-DDCkWqfD.d.ts} +125 -21
  56. package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +4 -4
  59. package/dist/editor.d.ts +387 -78
  60. package/dist/editor.js +1 -1
  61. package/dist/export.cjs +2 -2
  62. package/dist/export.d.ts +47 -12
  63. package/dist/export.js +2 -2
  64. package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.ts +38 -23
  67. package/dist/index.js +1 -1
  68. package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
  69. package/dist/layout.cjs +1 -1
  70. package/dist/layout.d.ts +434 -199
  71. package/dist/layout.js +1 -1
  72. package/dist/metafile-drawing-Ce6TuWLm.d.ts +115 -0
  73. package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
  74. package/dist/output.cjs +1 -1
  75. package/dist/output.d.ts +77 -13
  76. package/dist/output.js +1 -1
  77. package/dist/{protocol-DKa4qt7F.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
  78. package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
  79. package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
  80. package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
  81. package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
  82. package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-BYDZbTiY.d.ts} +16 -9
  83. package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
  84. package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-CzZiWMY8.d.ts} +348 -132
  85. package/dist/store.cjs +1 -1
  86. package/dist/store.d.ts +526 -19
  87. package/dist/store.js +1 -1
  88. package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-DKvJSH8T.d.ts} +1024 -501
  89. package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-Cl3BkWXF.d.ts} +8 -3
  90. package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-BL50pqs8.d.ts} +15 -8
  91. package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
  92. package/licenses/ECMA-376.md +29 -0
  93. package/package.json +2 -2
  94. package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
  95. package/dist/chunk-25EXMBV2.cjs +0 -5
  96. package/dist/chunk-3IEXDEFH.cjs +0 -7
  97. package/dist/chunk-65XBN67F.cjs +0 -2
  98. package/dist/chunk-6NVZNB7O.cjs +0 -3
  99. package/dist/chunk-ACLR4DMK.js +0 -1
  100. package/dist/chunk-B2BEELUE.js +0 -1
  101. package/dist/chunk-DDFHKQFU.js +0 -30
  102. package/dist/chunk-E4IAO4CY.cjs +0 -2
  103. package/dist/chunk-FDSL5OJU.cjs +0 -30
  104. package/dist/chunk-FS7CMYLT.js +0 -4
  105. package/dist/chunk-GDS24SZN.js +0 -30
  106. package/dist/chunk-GIY6NT2X.js +0 -5
  107. package/dist/chunk-GWM3AKUD.js +0 -18
  108. package/dist/chunk-HDOXACHP.js +0 -2
  109. package/dist/chunk-IILEENID.js +0 -1
  110. package/dist/chunk-MNF2K7NN.cjs +0 -30
  111. package/dist/chunk-O324RB6R.cjs +0 -1
  112. package/dist/chunk-QXJKYNYZ.js +0 -1
  113. package/dist/chunk-RALTVLB6.js +0 -2
  114. package/dist/chunk-SRVKFUFI.js +0 -3
  115. package/dist/chunk-TELQ52LG.cjs +0 -1
  116. package/dist/chunk-TJHE5EET.cjs +0 -1
  117. package/dist/chunk-UMMRURPE.js +0 -7
  118. package/dist/chunk-XJYZVGQR.cjs +0 -1
  119. package/dist/chunk-ZGTIE3QJ.cjs +0 -4
  120. package/dist/chunk-ZOZI27AW.cjs +0 -18
  121. package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
@@ -1,122 +1,5 @@
1
- import { aE as AutomationTableMutation, Q as RevisionBatchResult, K as RevisionAuthorResult } from './tree-op-types-C_S2niXW.js';
2
- import { c as HeaderFooterVariant, N as NoteKind } from './tree-package-store-CRHvMyNj.js';
3
-
4
- /** Word's shape types, as `Word.ShapeType` spells them. */
5
- type AutomationShapeType = 'TextBox' | 'GeometricShape' | 'Picture' | 'Group' | 'Canvas' | 'Unsupported';
6
- /** What a shape read answers. */
7
- interface AutomationShapeRead {
8
- readonly id: number;
9
- readonly name: string;
10
- readonly type: AutomationShapeType;
11
- }
12
-
13
- interface AutomationInlinePictureRead {
14
- readonly width: number;
15
- readonly height: number;
16
- readonly lockAspectRatio: boolean;
17
- readonly altTextDescription: string;
18
- }
19
- interface AutomationInlinePictureWrite {
20
- readonly width?: number;
21
- readonly height?: number;
22
- readonly lockAspectRatio?: boolean;
23
- readonly altTextDescription?: string;
24
- }
25
-
26
- /** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
27
- type AutomationAlignment = 'Mixed' | 'Unknown' | 'Left' | 'Centered' | 'Right' | 'Justified';
28
- /**
29
- * A paragraph's base direction (`w:bidi`) as this protocol publishes it: the direction the
30
- * paragraph reads in, after its style cascade.
31
- */
32
- type AutomationReadingOrder = 'LeftToRight' | 'RightToLeft';
33
- /**
34
- * What a range agrees about its characters' formatting.
35
- *
36
- * `null` means "no agreed value": the runs disagree, or none of them authors the property. The
37
- * two are one answer on purpose — a caller that must not guess is told not to guess, and a
38
- * caller writing a value writes it unconditionally either way.
39
- */
40
- interface AutomationFontRead {
41
- readonly bold: boolean | null;
42
- readonly italic: boolean | null;
43
- readonly underline: string | null;
44
- readonly strikeThrough: boolean | null;
45
- readonly highlightColor: string | null;
46
- readonly subscript: boolean | null;
47
- readonly superscript: boolean | null;
48
- /** `w:rFonts/@w:ascii`. */
49
- readonly name: string | null;
50
- /** Points. */
51
- readonly size: number | null;
52
- /** `#RRGGBB`. `null` for `auto`, which names no colour. */
53
- readonly color: string | null;
54
- }
55
- /** What a caller asks to author. Every field is optional; an empty request is refused. */
56
- interface AutomationFontWrite {
57
- readonly bold?: boolean;
58
- readonly italic?: boolean;
59
- readonly underline?: string;
60
- readonly strikeThrough?: boolean;
61
- readonly highlightColor?: string | null;
62
- readonly subscript?: boolean;
63
- readonly superscript?: boolean;
64
- readonly name?: string;
65
- readonly size?: number;
66
- readonly color?: string;
67
- }
68
- /** One paragraph's own paragraph properties, in points. `null` = the paragraph authors none. */
69
- interface AutomationParagraphFormatRead {
70
- readonly alignment: AutomationAlignment;
71
- /**
72
- * The paragraph style's NAME, or null where the document names none.
73
- *
74
- * Read here rather than through its own operation so that one load of a paragraph's properties is
75
- * one round trip: the style lives in the same `w:pPr`, and a caller asking for its name and its
76
- * indent should not pay for two.
77
- */
78
- readonly style: string | null;
79
- readonly firstLineIndent: number | null;
80
- readonly leftIndent: number | null;
81
- readonly rightIndent: number | null;
82
- readonly lineSpacing: number | null;
83
- readonly spaceBefore: number | null;
84
- readonly spaceAfter: number | null;
85
- readonly widowControl: boolean | null;
86
- /** The direction the paragraph reads in: its own `w:bidi` if any, else the style cascade's. */
87
- readonly readingOrder: AutomationReadingOrder;
88
- }
89
- /**
90
- * A paragraph-property write. Every field optional; omitted means "leave alone".
91
- *
92
- * Deliberately ONE request covering style and spacing together, because both rewrite `w:pPr` —
93
- * two ops naming the same paragraph in one batch are refused, since the second would carry
94
- * properties the first had already replaced.
95
- */
96
- interface AutomationParagraphFormatWrite {
97
- readonly alignment?: AutomationAlignment;
98
- /**
99
- * A paragraph style name the document already defines. An unknown name is refused.
100
- *
101
- * In the same request as the rest so that applying a style and adjusting a spacing is ONE write:
102
- * both rewrite `w:pPr`, and two ops naming it in one batch are refused because the second would
103
- * carry properties the first had already replaced.
104
- */
105
- readonly style?: string;
106
- readonly firstLineIndent?: number;
107
- readonly leftIndent?: number;
108
- readonly rightIndent?: number;
109
- readonly lineSpacing?: number;
110
- readonly spaceBefore?: number;
111
- readonly spaceAfter?: number;
112
- readonly widowControl?: boolean;
113
- /**
114
- * The direction the paragraph should read in. Nothing is written when it already does. Else the
115
- * paragraph's own `w:bidi` is removed when that alone set the other direction, or stated:
116
- * `<w:bidi/>`, or `<w:bidi w:val="0"/>` over a right-to-left style.
117
- */
118
- readonly readingOrder?: AutomationReadingOrder;
119
- }
1
+ import { aB as AutomationTableMutation, Q as RevisionBatchResult, K as RevisionAuthorResult } from './tree-op-types-DKvJSH8T.js';
2
+ import { H as HeaderFooterVariant, N as NoteKind } from './tree-package-store-Cl3BkWXF.js';
120
3
 
121
4
  declare const MEMBERS: {
122
5
  readonly author: readonly ["http://purl.org/dc/elements/1.1/", 'creator'];
@@ -151,6 +34,28 @@ interface AutomationListLevelFormat {
151
34
  readonly bulletNumberPictureIndent?: number;
152
35
  }
153
36
 
37
+ interface AutomationInlinePictureRead {
38
+ readonly width: number;
39
+ readonly height: number;
40
+ readonly lockAspectRatio: boolean;
41
+ readonly altTextDescription: string;
42
+ }
43
+ interface AutomationInlinePictureWrite {
44
+ readonly width?: number;
45
+ readonly height?: number;
46
+ readonly lockAspectRatio?: boolean;
47
+ readonly altTextDescription?: string;
48
+ }
49
+
50
+ /** Word's shape types, as `Word.ShapeType` spells them. */
51
+ type AutomationShapeType = 'TextBox' | 'GeometricShape' | 'Picture' | 'Group' | 'Canvas' | 'Unsupported';
52
+ /** What a shape read answers. */
53
+ interface AutomationShapeRead {
54
+ readonly id: number;
55
+ readonly name: string;
56
+ readonly type: AutomationShapeType;
57
+ }
58
+
154
59
  /** Table, picture, field, break, and list authoring transport operations. */
155
60
  type AutomationAuthoringOperation = {
156
61
  readonly op: 'getFields';
@@ -312,6 +217,101 @@ type AutomationAuthoringOperation = {
312
217
  readonly location: 'Whole' | 'Content' | 'Start' | 'End' | 'Before' | 'After';
313
218
  };
314
219
 
220
+ /** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
221
+ type AutomationAlignment = 'Mixed' | 'Unknown' | 'Left' | 'Centered' | 'Right' | 'Justified';
222
+ /**
223
+ * A paragraph's base direction (`w:bidi`) as this protocol publishes it: the direction the
224
+ * paragraph reads in, after its style cascade.
225
+ */
226
+ type AutomationReadingOrder = 'LeftToRight' | 'RightToLeft';
227
+ /**
228
+ * What a range agrees about its characters' formatting.
229
+ *
230
+ * `null` means "no agreed value": the runs disagree, or none of them authors the property. The
231
+ * two are one answer on purpose — a caller that must not guess is told not to guess, and a
232
+ * caller writing a value writes it unconditionally either way.
233
+ */
234
+ interface AutomationFontRead {
235
+ readonly bold: boolean | null;
236
+ readonly italic: boolean | null;
237
+ readonly underline: string | null;
238
+ readonly strikeThrough: boolean | null;
239
+ readonly highlightColor: string | null;
240
+ readonly subscript: boolean | null;
241
+ readonly superscript: boolean | null;
242
+ /** `w:rFonts/@w:ascii`. */
243
+ readonly name: string | null;
244
+ /** Points. */
245
+ readonly size: number | null;
246
+ /** `#RRGGBB`. `null` for `auto`, which names no colour. */
247
+ readonly color: string | null;
248
+ }
249
+ /** What a caller asks to author. Every field is optional; an empty request is refused. */
250
+ interface AutomationFontWrite {
251
+ readonly bold?: boolean;
252
+ readonly italic?: boolean;
253
+ readonly underline?: string;
254
+ readonly strikeThrough?: boolean;
255
+ readonly highlightColor?: string | null;
256
+ readonly subscript?: boolean;
257
+ readonly superscript?: boolean;
258
+ readonly name?: string;
259
+ readonly size?: number;
260
+ readonly color?: string;
261
+ }
262
+ /** One paragraph's own paragraph properties, in points. `null` = the paragraph authors none. */
263
+ interface AutomationParagraphFormatRead {
264
+ readonly alignment: AutomationAlignment;
265
+ /**
266
+ * The paragraph style's NAME, or null where the document names none.
267
+ *
268
+ * Read here rather than through its own operation so that one load of a paragraph's properties is
269
+ * one round trip: the style lives in the same `w:pPr`, and a caller asking for its name and its
270
+ * indent should not pay for two.
271
+ */
272
+ readonly style: string | null;
273
+ readonly firstLineIndent: number | null;
274
+ readonly leftIndent: number | null;
275
+ readonly rightIndent: number | null;
276
+ readonly lineSpacing: number | null;
277
+ readonly spaceBefore: number | null;
278
+ readonly spaceAfter: number | null;
279
+ readonly widowControl: boolean | null;
280
+ /** The direction the paragraph reads in: its own `w:bidi` if any, else the style cascade's. */
281
+ readonly readingOrder: AutomationReadingOrder;
282
+ }
283
+ /**
284
+ * A paragraph-property write. Every field optional; omitted means "leave alone".
285
+ *
286
+ * Deliberately ONE request covering style and spacing together, because both rewrite `w:pPr` —
287
+ * two ops naming the same paragraph in one batch are refused, since the second would carry
288
+ * properties the first had already replaced.
289
+ */
290
+ interface AutomationParagraphFormatWrite {
291
+ readonly alignment?: AutomationAlignment;
292
+ /**
293
+ * A paragraph style name the document already defines. An unknown name is refused.
294
+ *
295
+ * In the same request as the rest so that applying a style and adjusting a spacing is ONE write:
296
+ * both rewrite `w:pPr`, and two ops naming it in one batch are refused because the second would
297
+ * carry properties the first had already replaced.
298
+ */
299
+ readonly style?: string;
300
+ readonly firstLineIndent?: number;
301
+ readonly leftIndent?: number;
302
+ readonly rightIndent?: number;
303
+ readonly lineSpacing?: number;
304
+ readonly spaceBefore?: number;
305
+ readonly spaceAfter?: number;
306
+ readonly widowControl?: boolean;
307
+ /**
308
+ * The direction the paragraph should read in. Nothing is written when it already does. Else the
309
+ * paragraph's own `w:bidi` is removed when that alone set the other direction, or stated:
310
+ * `<w:bidi/>`, or `<w:bidi w:val="0"/>` over a right-to-left style.
311
+ */
312
+ readonly readingOrder?: AutomationReadingOrder;
313
+ }
314
+
315
315
  /**
316
316
  * Which way round a page is, in OOXML's own lower-case spelling.
317
317
  *
@@ -491,6 +491,23 @@ type AutomationOperation = AutomationAuthoringOperation | {
491
491
  } | {
492
492
  readonly op: 'getDocumentProperty';
493
493
  readonly name: DocumentPropertyName;
494
+ }
495
+ /**
496
+ * The styles `styles.xml` defines, of every kind, in part order. `setStyle` accepts paragraph
497
+ * style names only; character, table, and numbering names are listed but refused there.
498
+ *
499
+ * Give at most one of these to ask a narrower question:
500
+ * - `name`: the answer holds at most the one style that name finds. Names compare without case
501
+ * and surrounding spaces, as `setStyle` compares them, and a paragraph style wins over another
502
+ * kind with the same name. A name longer than 255 characters finds nothing.
503
+ * - `id`: the answer holds at most the listed style with that `w:styleId`.
504
+ * - `count: true`: the answer is the number of listed styles, as a `number` value.
505
+ */
506
+ | {
507
+ readonly op: 'getStyles';
508
+ readonly name?: string;
509
+ readonly id?: string;
510
+ readonly count?: true;
494
511
  } | {
495
512
  readonly op: 'setDocumentProperties';
496
513
  readonly values: DocumentPropertyWrites;
@@ -1453,6 +1470,48 @@ interface AutomationCustomNodePayload {
1453
1470
  /** Just the `op` discriminants of {@link AutomationOperation}, for dispatch tables. */
1454
1471
  type AutomationOperationKind = AutomationOperation['op'];
1455
1472
 
1473
+ /** The style kinds a listing names, in the part's own `w:type` vocabulary. */
1474
+ type AutomationStyleKind = 'paragraph' | 'character' | 'table' | 'numbering';
1475
+ /**
1476
+ * One style the styles part defines, as a listing answers it.
1477
+ *
1478
+ * `name` is the part's own `w:name`. A paragraph `setStyle` write accepts it only when `type` is
1479
+ * `paragraph`; character, table, and numbering names are refused there. A reference to another
1480
+ * style answers that style's NAME, or null where the part names none or names a style this field
1481
+ * does not allow.
1482
+ */
1483
+ interface AutomationStyleRead {
1484
+ /** The `w:styleId`. Names can repeat across kinds; the id tells two listed styles apart. */
1485
+ readonly id: string;
1486
+ /** The `w:name`, as the part declares it. */
1487
+ readonly name: string;
1488
+ /** The `w:type`, in the part's own vocabulary. */
1489
+ readonly type: AutomationStyleKind;
1490
+ /** False when the part marks the style `w:customStyle`. */
1491
+ readonly builtIn: boolean;
1492
+ /** The `w:basedOn` style, when it is a listed style of the same kind. */
1493
+ readonly basedOn: string | null;
1494
+ /**
1495
+ * The style of the paragraph after this one, always a listed paragraph style. A paragraph style
1496
+ * that states no `w:next` names itself. Null for every other kind, and where `w:next` names a
1497
+ * style that is not a listed paragraph style.
1498
+ */
1499
+ readonly next: string | null;
1500
+ /**
1501
+ * Whether `w:link` pairs this style with a listed style of the other linkable kind: a paragraph
1502
+ * style with a character style, or a character style with a paragraph style.
1503
+ */
1504
+ readonly linked: boolean;
1505
+ /** Whether the part marks the style `w:semiHidden` or `w:hidden`. */
1506
+ readonly hidden: boolean;
1507
+ /** The `w:uiPriority`, or null where the part states no valid one. */
1508
+ readonly uiPriority: number | null;
1509
+ /** Whether the part marks the style `w:qFormat`. */
1510
+ readonly quickStyle: boolean;
1511
+ /** Whether the part marks the style `w:unhideWhenUsed`. */
1512
+ readonly unhideWhenUsed: boolean;
1513
+ }
1514
+
1456
1515
  /**
1457
1516
  * What kind of document object a handle names.
1458
1517
  *
@@ -1704,6 +1763,11 @@ type AutomationValue = {
1704
1763
  readonly kind: 'style';
1705
1764
  readonly name: string | null;
1706
1765
  }
1766
+ /** The styles a document defines, in the order its styles part writes them. */
1767
+ | {
1768
+ readonly kind: 'styles';
1769
+ readonly styles: readonly AutomationStyleRead[];
1770
+ }
1707
1771
  /** A command that committed. The observable effect is the response's revision/changed. */
1708
1772
  | {
1709
1773
  readonly kind: 'applied';
@@ -1810,4 +1874,4 @@ interface AutomationHost {
1810
1874
  dispose(): void;
1811
1875
  }
1812
1876
 
1813
- export type { AutomationOperation as A, AutomationOperationKind as B, AutomationOperationResult as C, AutomationPageOrientation as D, AutomationPageSetupRead as E, AutomationPageSetupWrite as F, AutomationParagraphFormatRead as G, AutomationParagraphFormatWrite as H, AutomationParagraphRef as I, AutomationPoint as J, AutomationReadingOrder as K, AutomationSaveResult as L, AutomationSearchOptions as M, AutomationSelectionMode as N, AutomationShapeRead as O, AutomationShapeType as P, AutomationSpan as Q, AutomationSpanRef as R, AutomationTextProjection as S, AutomationUnsubscribe as T, AutomationValue as U, AutomationCapabilities as a, AutomationHost as b, AutomationAlignment as c, AutomationAuthoringOperation as d, AutomationBatchRequest as e, AutomationBatchResponse as f, AutomationChangeEvent as g, AutomationContentControlLock as h, AutomationContentControlRangeLocation as i, AutomationContentControlScope as j, AutomationContentControlSubtype as k, AutomationContentControlValue as l, AutomationCustomNodePayload as m, AutomationEndpoint as n, AutomationError as o, AutomationErrorCode as p, AutomationFontRead as q, AutomationFontWrite as r, AutomationHandle as s, AutomationHandleRef as t, AutomationInlinePictureRead as u, AutomationInlinePictureWrite as v, AutomationListBullet as w, AutomationListLevelFormat as x, AutomationListNumbering as y, AutomationObjectKind as z };
1877
+ export type { AutomationOperation as A, AutomationOperationKind as B, AutomationOperationResult as C, AutomationPageOrientation as D, AutomationPageSetupRead as E, AutomationPageSetupWrite as F, AutomationParagraphFormatRead as G, AutomationParagraphFormatWrite as H, AutomationParagraphRef as I, AutomationPoint as J, AutomationReadingOrder as K, AutomationSaveResult as L, AutomationSearchOptions as M, AutomationSelectionMode as N, AutomationShapeRead as O, AutomationShapeType as P, AutomationSpan as Q, AutomationSpanRef as R, AutomationStyleKind as S, AutomationStyleRead as T, AutomationTextProjection as U, AutomationUnsubscribe as V, AutomationValue as W, AutomationCapabilities as a, AutomationHost as b, AutomationAlignment as c, AutomationAuthoringOperation as d, AutomationBatchRequest as e, AutomationBatchResponse as f, AutomationChangeEvent as g, AutomationContentControlLock as h, AutomationContentControlRangeLocation as i, AutomationContentControlScope as j, AutomationContentControlSubtype as k, AutomationContentControlValue as l, AutomationCustomNodePayload as m, AutomationEndpoint as n, AutomationError as o, AutomationErrorCode as p, AutomationFontRead as q, AutomationFontWrite as r, AutomationHandle as s, AutomationHandleRef as t, AutomationInlinePictureRead as u, AutomationInlinePictureWrite as v, AutomationListBullet as w, AutomationListLevelFormat as x, AutomationListNumbering as y, AutomationObjectKind as z };
@@ -1,4 +1,4 @@
1
- import { a4 as OoxmlNode, av as OoxmlElement, aw as OoxmlContentControlNode, ax as OoxmlGenericElementNode, ay as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './tree-op-types-C_S2niXW.js';
1
+ import { a4 as OoxmlNode, av as OoxmlElement, aw as OoxmlContentControlNode, ax as OoxmlGenericElementNode, ay as OoxmlContentControlContentNode, C as CommentRecord, O as OoxmlPart } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** Nested content-control wrappers deeper than this stop flattening; content stays preserved. */
4
4
  declare const MAX_CONTENT_CONTROL_NESTING = 32;
@@ -1,4 +1,4 @@
1
- import { a4 as OoxmlNode } from './tree-op-types-C_S2niXW.js';
1
+ import { a4 as OoxmlNode } from './tree-op-types-DKvJSH8T.js';
2
2
 
3
3
  /** Named revision colors. Identifiers are stable and never contain CSS. @public */
4
4
  declare const REVISION_MARKUP_COLORS: readonly ['black', 'blue', 'turquoise', 'green', 'pink', 'red', 'yellow', 'white', 'darkBlue', 'teal', 'darkGreen', 'violet', 'darkRed', 'darkYellow', 'gray50', 'gray25', 'lightBlue', 'lightYellow', 'lightOrange', 'lightPurple', 'lightGreen', 'gray'];
@@ -1,5 +1,5 @@
1
- import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-CJoHLoOl.js';
2
- import { I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, g as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, h as TableRowFragmentRecord, i as TableCellFragmentRecord } from './semantic-records-BvN-WWst.js';
1
+ import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-QeuzEtAk.js';
2
+ import { I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, e as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, f as TableRowFragmentRecord, g as TableCellFragmentRecord } from './semantic-records-CzZiWMY8.js';
3
3
 
4
4
  /** A point in the coordinate space named by the function taking it. */
5
5
  interface HitPoint {
@@ -1,4 +1,4 @@
1
- import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, g as StyleSpanRecord } from './semantic-records-BvN-WWst.js';
1
+ import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, e as StyleSpanRecord } from './semantic-records-CzZiWMY8.js';
2
2
 
3
3
  /** How `moveCaret` resolves a motion. */
4
4
  interface MoveCaretOptions {
@@ -92,8 +92,6 @@ type NavigationCommand = 'left' | 'right' | 'up' | 'down' | 'wordLeft' | 'wordRi
92
92
  * motion in the interaction lane instead of making it a second consumer of the model.
93
93
  */
94
94
  declare function paragraphTextFromLayout(layout: SemanticLayout, paragraphId: string): string;
95
- /** Visible deletion boundaries split words without changing canonical text offsets. */
96
- declare function deletedTextBoundaries(layout: SemanticLayout, paragraphId: string): ReadonlySet<number>;
97
95
 
98
96
  /** Move a caret; vertical movement carries a desired X through shorter lines. */
99
97
  declare function moveCaret(layout: SemanticLayout, position: SemanticPosition, command: NavigationCommand, desiredX?: number | null, options?: MoveCaretOptions): {
@@ -131,5 +129,5 @@ declare function spansInSelection(layout: SemanticLayout, selection: SemanticSel
131
129
  */
132
130
  order: readonly string[]): StyleSpanRecord[];
133
131
 
134
- export { caretAt as d, caretStops as e, caretStopsForBlocks as f, compositionAnchor as g, contentControlsInLayout as h, deletedTextBoundaries as i, moveCaret as m, paragraphTextFromLayout as p, spansInSelection as s };
132
+ export { caretAt as d, caretStops as e, caretStopsForBlocks as f, compositionAnchor as g, contentControlsInLayout as h, moveCaret as m, paragraphTextFromLayout as p, spansInSelection as s };
135
133
  export type { CaretGeometry as C, MoveCaretOptions as M, NavigationCommand as N, SemanticPosition as S, SemanticSelection as a, SelectionRect as b, CaretAtOptions as c };
@@ -1,7 +1,7 @@
1
- import { d as ResolvedRevisionMarkup } from './revision-projection-Cn6rZJ7H.js';
2
- import { ap as ValidatedImageBytesHandle, al as RenderableImageMime, av as OoxmlElement } from './tree-op-types-C_S2niXW.js';
3
- import { a as PageRecord, C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-BvN-WWst.js';
4
- import { S as SemanticRootStoryKind } from './semantic-record-queries-C0rJ3sB4.js';
1
+ import { d as ResolvedRevisionMarkup } from './revision-projection-DwFhgIR0.js';
2
+ import { ap as ValidatedImageBytesHandle, al as RenderableImageMime, av as OoxmlElement } from './tree-op-types-DKvJSH8T.js';
3
+ import { a as PageRecord, C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-CzZiWMY8.js';
4
+ import { S as SemanticRootStoryKind } from './semantic-record-queries-Bf5bgQL3.js';
5
5
 
6
6
  /**
7
7
  * Everything a host can say about ONE author's presentation. Every field is optional and
@@ -119,14 +119,14 @@ interface RevisionStyleContext {
119
119
  readonly key: string;
120
120
  }
121
121
 
122
- /** Host port for safe blob URLs — only called for {@link ImageResourceState.kind} `ready`. */
123
- interface PaintImageUrlPort {
124
- create(handle: ValidatedImageBytesHandle, mime: RenderableImageMime): string;
125
- revoke(url: string): void;
126
- }
127
122
  /** Localized refusal labels; adapters supply i18n-backed implementations. */
128
123
  interface DrawingPaintStrings {
129
124
  readonly unsupportedFormat: (format: string) => string;
125
+ /**
126
+ * The whole label of a placeholder for a graphic that is not a picture. `kind` is a
127
+ * `DrawingPlaceholderKind` (`chart`, `diagram`, `shape`, `group`, `textbox`, `canvas` or
128
+ * `graphic`); the label names that kind, so a chart reads as a chart that is not shown.
129
+ */
130
130
  readonly nonPictureGraphic: (kind: string) => string;
131
131
  readonly missingResource: string;
132
132
  readonly externalResource: string;
@@ -137,6 +137,12 @@ interface DrawingPaintStrings {
137
137
  readonly pendingResource: string;
138
138
  }
139
139
 
140
+ /** Host port for safe blob URLs — only called for {@link ImageResourceState.kind} `ready`. */
141
+ interface PaintImageUrlPort {
142
+ create(handle: ValidatedImageBytesHandle, mime: RenderableImageMime): string;
143
+ revoke(url: string): void;
144
+ }
145
+
140
146
  /** Localized break labels; adapters supply i18n-backed implementations. */
141
147
  interface BreakMarkStrings {
142
148
  readonly pageBreak: string;
@@ -201,6 +207,7 @@ declare const DEFAULT_FIELD_SHADING: FieldShadingMode;
201
207
  */
202
208
  interface PaintOptions {
203
209
  readonly unsupportedOwnerPartName?: (nodeId: string) => string;
210
+ readonly includePartial?: boolean;
204
211
  readonly unsupportedSource?: (nodeId: string, ownerPartName?: string) => OoxmlElement | null;
205
212
  /** Points to CSS pixels. 96/72 renders a point as a CSS point at 100% zoom. */
206
213
  readonly scale?: number;
@@ -1,4 +1,4 @@
1
- import { I as InlineDrawingRecord, A as AnchoredDrawingRecord, P as ParagraphFragmentRecord, L as LineRecord, a as PageRecord, N as NoteAreaRecord, b as LayoutBox, H as HeaderFooterStoryRecord, c as NoteStoryRecord, B as BlockFragmentRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, d as ContentControlLock } from './semantic-records-BvN-WWst.js';
1
+ import { I as InlineDrawingRecord, A as AnchoredDrawingRecord, P as ParagraphFragmentRecord, L as LineRecord, a as PageRecord, N as NoteAreaRecord, b as LayoutBox, H as HeaderFooterStoryRecord, c as NoteStoryRecord, B as BlockFragmentRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, d as ContentControlLock } from './semantic-records-CzZiWMY8.js';
2
2
 
3
3
  /**
4
4
  * Depth-first paragraph fragments of one page, in reading order.