@docx-editor.dev/core 2.27.0 → 2.28.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 (116) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +26 -13
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +20 -9
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-2GO5T2JU.cjs +1 -0
  8. package/dist/chunk-2RC2EPND.js +3 -0
  9. package/dist/chunk-4GBTELJV.cjs +28 -0
  10. package/dist/chunk-4R3TEXMN.js +18 -0
  11. package/dist/chunk-5CSUYANV.js +1 -0
  12. package/dist/chunk-6APGXLBB.cjs +3 -0
  13. package/dist/chunk-6AWEKBLB.cjs +1 -0
  14. package/dist/chunk-6EYYL7FL.js +1 -0
  15. package/dist/chunk-E7BQA6UP.js +2 -0
  16. package/dist/chunk-EO4C5QJW.cjs +2 -0
  17. package/dist/chunk-ETTO6GK3.js +1 -0
  18. package/dist/chunk-FIJZIQXA.cjs +18 -0
  19. package/dist/chunk-FRXAOVTB.js +28 -0
  20. package/dist/chunk-J6BVWIDB.js +2 -0
  21. package/dist/chunk-JGNVNT2A.cjs +2 -0
  22. package/dist/chunk-K5U2PLDP.cjs +2 -0
  23. package/dist/chunk-KKIJG3C6.js +2 -0
  24. package/dist/chunk-LWDSDCMO.js +27 -0
  25. package/dist/chunk-O2AL2HSJ.cjs +1 -0
  26. package/dist/chunk-QMLCVPCD.cjs +1 -0
  27. package/dist/chunk-RCHS4ZEH.cjs +27 -0
  28. package/dist/chunk-SRPILEWV.cjs +5 -0
  29. package/dist/chunk-TSLBZ26X.js +1 -0
  30. package/dist/chunk-VDNNLG6X.js +2 -0
  31. package/dist/chunk-VHAVHCQY.js +7 -0
  32. package/dist/chunk-VX43VBAX.cjs +7 -0
  33. package/dist/chunk-Z6WBFXJU.js +5 -0
  34. package/dist/{chunk-2GK7YQB2.cjs → chunk-ZUHOMK52.cjs} +1 -1
  35. package/dist/collaboration/replication.cjs +1 -1
  36. package/dist/collaboration/replication.d.ts +41 -5
  37. package/dist/collaboration/replication.js +1 -1
  38. package/dist/collaboration.cjs +1 -1
  39. package/dist/collaboration.d.ts +98 -6
  40. package/dist/collaboration.js +1 -1
  41. package/dist/contracts/document.d.ts +17 -2
  42. package/dist/contracts/editor.d.ts +19 -9
  43. package/dist/contracts/interaction.d.ts +29 -0
  44. package/dist/contracts/modules.d.ts +31 -7
  45. package/dist/contracts/types.d.ts +10 -1
  46. package/dist/{custom-node-writes-Vzpq9I8_.d.ts → custom-node-writes-cvL5rhcD.d.ts} +2 -2
  47. package/dist/{document-protection-9zpIHWTE.d.ts → document-protection-BAGVGqaP.d.ts} +1 -1
  48. package/dist/{editor-B3OBYNrF.d.ts → editor-Ci7IZGmG.d.ts} +392 -140
  49. package/dist/editor.cjs +1 -1
  50. package/dist/editor.css +5 -5
  51. package/dist/editor.d.ts +415 -30
  52. package/dist/editor.js +1 -1
  53. package/dist/export.cjs +2 -2
  54. package/dist/export.d.ts +23 -13
  55. package/dist/export.js +2 -2
  56. package/dist/failure-NS2lsya4.d.ts +115 -0
  57. package/dist/{font-resolver-DN0xNOf_.d.ts → font-resolver-BVQB14qT.d.ts} +1 -1
  58. package/dist/{headless-document-view-ICYqNkQ1.d.ts → headless-document-view-qH331moE.d.ts} +2 -2
  59. package/dist/{image-resources-BDFxcu7W.d.ts → image-resources-BN-hUgCn.d.ts} +9 -9
  60. package/dist/{index-CkQVRJtJ.d.ts → index-Bsg7oIKP.d.ts} +234 -111
  61. package/dist/index.cjs +1 -1
  62. package/dist/index.d.ts +46 -19
  63. package/dist/index.js +1 -1
  64. package/dist/{layout-shaping-BvZD_VKP.d.ts → layout-shaping-BEyuiQOk.d.ts} +1 -1
  65. package/dist/layout.cjs +1 -1
  66. package/dist/layout.d.ts +170 -78
  67. package/dist/layout.js +1 -1
  68. package/dist/{note-properties-CkAk7g-n.d.ts → note-properties-4Y9o6Gyk.d.ts} +1 -1
  69. package/dist/{omml-equation-DuczgG5o.d.ts → omml-equation-CuzBL5DD.d.ts} +1 -1
  70. package/dist/output.cjs +1 -1
  71. package/dist/output.d.ts +18 -8
  72. package/dist/output.js +1 -1
  73. package/dist/{protocol-aKYr8r3u.d.ts → protocol-Bqk4Izjc.d.ts} +44 -4
  74. package/dist/review-pane-D9jm8DcY.d.ts +128 -0
  75. package/dist/{review-paragraph-order-Ddj5d6rp.d.ts → review-paragraph-order-DT-n6ouC.d.ts} +5 -2
  76. package/dist/{revision-projection-CSNFudZY.d.ts → revision-projection-DZ4kKVev.d.ts} +1 -1
  77. package/dist/{semantic-cell-selection-DoqYCz_F.d.ts → semantic-cell-selection-D9D1KSXq.d.ts} +8 -6
  78. package/dist/{semantic-interaction-G0bjmmmk.d.ts → semantic-interaction-CIC-PooQ.d.ts} +25 -34
  79. package/dist/{semantic-paint-CsMzF8-O.d.ts → semantic-paint-BME37OMv.d.ts} +4 -4
  80. package/dist/{semantic-record-queries-1du6lQqS.d.ts → semantic-record-queries-CBlZqZNa.d.ts} +1 -1
  81. package/dist/{semantic-records-B9OolWGN.d.ts → semantic-records-4B3WwFAi.d.ts} +74 -42
  82. package/dist/store.cjs +1 -1
  83. package/dist/store.d.ts +157 -134
  84. package/dist/store.js +1 -1
  85. package/dist/{tree-package-fragment-DYZIk1rY.d.ts → tree-package-fragment-BeeKxDw8.d.ts} +77 -57
  86. package/dist/{tree-session-contract-DQVJOOkv.d.ts → tree-session-contract-CVbmlMlq.d.ts} +7 -5
  87. package/dist/{types-barrel-BFKR8Pzp.d.ts → types-barrel-D3xCgQX6.d.ts} +462 -362
  88. package/package.json +2 -2
  89. package/dist/chunk-4KZ6L5YF.cjs +0 -15
  90. package/dist/chunk-55AT3MOU.cjs +0 -25
  91. package/dist/chunk-6ZQMII6V.js +0 -1
  92. package/dist/chunk-7IGCWG4H.js +0 -2
  93. package/dist/chunk-7MYITTAH.js +0 -5
  94. package/dist/chunk-AVKVRU7Z.cjs +0 -5
  95. package/dist/chunk-CWRBFNK5.cjs +0 -5
  96. package/dist/chunk-DGPA3TST.cjs +0 -27
  97. package/dist/chunk-DNXVNQEO.js +0 -1
  98. package/dist/chunk-FQN4KSFL.cjs +0 -7
  99. package/dist/chunk-GVUOWHTO.cjs +0 -1
  100. package/dist/chunk-GWQJ5774.js +0 -5
  101. package/dist/chunk-HAQ72KD7.js +0 -1
  102. package/dist/chunk-HO5XFO32.cjs +0 -3
  103. package/dist/chunk-IGR23DV2.js +0 -1
  104. package/dist/chunk-JSIX2EOH.js +0 -3
  105. package/dist/chunk-K246T47S.cjs +0 -1
  106. package/dist/chunk-KAXOGCGA.js +0 -1
  107. package/dist/chunk-LZLTN5A3.cjs +0 -1
  108. package/dist/chunk-OHAXVTWG.cjs +0 -1
  109. package/dist/chunk-S74GRBNE.js +0 -7
  110. package/dist/chunk-UBLUVNZR.js +0 -27
  111. package/dist/chunk-UMRSBLO7.js +0 -15
  112. package/dist/chunk-VIPMGGUT.js +0 -25
  113. package/dist/chunk-WG4KMSX2.cjs +0 -2
  114. package/dist/chunk-WRLKVNNR.cjs +0 -1
  115. package/dist/chunk-ZU7IVN6G.js +0 -2
  116. package/dist/failure-BIPVQbRm.d.ts +0 -65
@@ -1072,6 +1072,56 @@ interface InsertBuildingBlockOp {
1072
1072
  readonly blocks: readonly OoxmlNode[];
1073
1073
  }
1074
1074
 
1075
+ /**
1076
+ * Why a zip was refused at the trust boundary.
1077
+ *
1078
+ * `too-large` and `too-many-entries` are the zip-bomb guards; `bad-name` catches path traversal —
1079
+ * an entry with `..` or a leading `/` is rejected rather than normalized.
1080
+ */
1081
+ type ZipRejection = 'too-many-entries' | 'too-large' | 'bad-name' | 'inflate-error';
1082
+ /** Archive caps: entry count, total decompressed bytes, and the decompression ratio. */
1083
+ interface ZipLimits {
1084
+ readonly maxEntries: number;
1085
+ /** Max total UNCOMPRESSED bytes across the archive. */
1086
+ readonly maxTotalBytes: number;
1087
+ /**
1088
+ * Max ratio of the archive's total declared uncompressed bytes to the archive's own byte
1089
+ * length (zip-bomb guard). Applies once that total exceeds 8 MiB, so a small archive is
1090
+ * never refused for compressing well.
1091
+ */
1092
+ readonly maxRatio?: number;
1093
+ }
1094
+ /** The archive caps in force when a host configures none. Conservative and finite. */
1095
+ declare const DEFAULT_ZIP_LIMITS: ZipLimits;
1096
+ /** The read entries, or the typed refusal. Never throws — the bytes are untrusted. */
1097
+ type ZipReadResult = {
1098
+ readonly ok: true;
1099
+ readonly entries: ReadonlyMap<string, Uint8Array>;
1100
+ } | {
1101
+ readonly ok: false;
1102
+ readonly reason: ZipRejection;
1103
+ readonly detail?: string;
1104
+ readonly limit?: 'zip.maxTotalBytes' | 'zip.maxRatio';
1105
+ };
1106
+ /**
1107
+ * Inflate a ZIP archive with bounds + OPC name normalization. Entry name, count, archive
1108
+ * ratio, and total-uncompressed-size limits are enforced BEFORE each entry is decompressed
1109
+ * (via fflate's pre-inflation filter), so a zip bomb or a traversal name is rejected without
1110
+ * ever being inflated. Keys are canonical part names.
1111
+ *
1112
+ * The budgets count each entry's DECLARED sizes, and the declared size is also a hard cap on
1113
+ * what the entry may produce: fflate inflates into a buffer of exactly `originalSize` bytes
1114
+ * and never grows it, so an entry whose stream holds more than it declares is truncated (or
1115
+ * refused as `inflate-error`), never expanded past its budget. A stored entry is copied at
1116
+ * its compressed size, so the larger of its two declared sizes is what counts.
1117
+ */
1118
+ declare function readZip(bytes: Uint8Array, limits?: ZipLimits): ZipReadResult;
1119
+ /** Deflate a set of canonical-part-name -> bytes into a ZIP archive. Every part name
1120
+ * is re-validated through the OPC normalization profile before writing, so a
1121
+ * traversal/encoded/normalized-alias name from an untrusted serialized model can
1122
+ * never be smuggled into a ZIP entry (write-side path-traversal guard). */
1123
+ declare function writeZip(entries: ReadonlyMap<string, Uint8Array>): Uint8Array;
1124
+
1075
1125
  /**
1076
1126
  * Why a part or relationship name was refused.
1077
1127
  *
@@ -1128,91 +1178,6 @@ declare function resolveInternalTarget(ownerPartName: string, rawTarget: string)
1128
1178
  */
1129
1179
  declare function validateExternalTarget(raw: string): NameResult;
1130
1180
 
1131
- /** One `<Default>`: a file extension mapped to a content type. */
1132
- interface DefaultRecord {
1133
- readonly extension: string;
1134
- readonly contentType: string;
1135
- readonly order: number;
1136
- }
1137
- /** One `<Override>`: a specific part name mapped to a content type. Beats any Default. */
1138
- interface OverrideRecord {
1139
- readonly partName: string;
1140
- readonly contentType: string;
1141
- readonly order: number;
1142
- }
1143
- /**
1144
- * The authored `[Content_Types].xml` records, in significant order.
1145
- *
1146
- * Retained rather than collapsed into a lookup, because the file's lexical form and ordering are
1147
- * part of what a lossless save re-emits.
1148
- */
1149
- interface ContentTypeRecords {
1150
- readonly defaults: readonly DefaultRecord[];
1151
- readonly overrides: readonly OverrideRecord[];
1152
- }
1153
- /**
1154
- * Why content-type records could not be indexed.
1155
- *
1156
- * All fail CLOSED: conflicting Defaults on one extension, duplicate normalized Override names, or
1157
- * invalid MIME syntax are refused rather than resolved by picking one.
1158
- */
1159
- type ContentTypeError = {
1160
- readonly code: 'invalid-mime';
1161
- readonly value: string;
1162
- } | {
1163
- readonly code: 'conflicting-default';
1164
- readonly extension: string;
1165
- } | {
1166
- readonly code: 'duplicate-override';
1167
- readonly partName: string;
1168
- } | {
1169
- readonly code: 'invalid-override-name';
1170
- readonly partName: string;
1171
- } | {
1172
- readonly code: 'too-many-records';
1173
- readonly limit: number;
1174
- };
1175
- /** Whether a string is syntactically a MIME type. Syntax only — no registry lookup. */
1176
- declare function isValidMime(value: string): boolean;
1177
- /** ASCII-case-insensitive extension key (leading dot removed; ASCII-only fold). */
1178
- declare function extensionKey(extension: string): string;
1179
- /** The resolved lookup: Override by case-folded part name, Default by case-insensitive extension. */
1180
- interface ContentTypeIndex {
1181
- /** ext key -> single MIME (identical duplicates collapsed). */
1182
- readonly defaults: ReadonlyMap<string, string>;
1183
- /** case-folded part name -> MIME. */
1184
- readonly overrides: ReadonlyMap<string, string>;
1185
- }
1186
- /** The built index, or the conflict that made it impossible. */
1187
- type IndexResult = {
1188
- readonly ok: true;
1189
- readonly index: ContentTypeIndex;
1190
- } | {
1191
- readonly ok: false;
1192
- readonly error: ContentTypeError;
1193
- };
1194
- /**
1195
- * Build a resolved content-type index, failing closed on conflict/duplicate/MIME
1196
- * errors. `maxRecords` bounds the combined record count (N/N+1 gate).
1197
- */
1198
- declare function buildContentTypeIndex(records: ContentTypeRecords, maxRecords?: number): IndexResult;
1199
- /**
1200
- * A part's content type, or why it has none.
1201
- *
1202
- * An orphan record never determines a part's type — a Default with no matching part is preserved
1203
- * inertly rather than applied.
1204
- */
1205
- type ResolveResult = {
1206
- readonly ok: true;
1207
- readonly contentType: string;
1208
- readonly source: 'override' | 'default';
1209
- } | {
1210
- readonly ok: false;
1211
- readonly reason: 'unknown';
1212
- };
1213
- /** Resolve a part's content type: Override wins over Default; else unknown. */
1214
- declare function resolveContentType(index: ContentTypeIndex, partName: string): ResolveResult;
1215
-
1216
1181
  /** OOXML image relationship type for embedded or linked media parts. */
1217
1182
  declare const IMAGE_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
1218
1183
  /**
@@ -1295,55 +1260,90 @@ type ImageRelationshipResolution = {
1295
1260
  */
1296
1261
  declare function resolveImageRelationship(records: readonly RelationshipRecord[] | undefined, ownerPart: string, relationshipId: string): ImageRelationshipResolution;
1297
1262
 
1263
+ /** One `<Default>`: a file extension mapped to a content type. */
1264
+ interface DefaultRecord {
1265
+ readonly extension: string;
1266
+ readonly contentType: string;
1267
+ readonly order: number;
1268
+ }
1269
+ /** One `<Override>`: a specific part name mapped to a content type. Beats any Default. */
1270
+ interface OverrideRecord {
1271
+ readonly partName: string;
1272
+ readonly contentType: string;
1273
+ readonly order: number;
1274
+ }
1298
1275
  /**
1299
- * Why a zip was refused at the trust boundary.
1276
+ * The authored `[Content_Types].xml` records, in significant order.
1300
1277
  *
1301
- * `too-large` and `too-many-entries` are the zip-bomb guards; `bad-name` catches path traversal —
1302
- * an entry with `..` or a leading `/` is rejected rather than normalized.
1278
+ * Retained rather than collapsed into a lookup, because the file's lexical form and ordering are
1279
+ * part of what a lossless save re-emits.
1303
1280
  */
1304
- type ZipRejection = 'too-many-entries' | 'too-large' | 'bad-name' | 'inflate-error';
1305
- /** Archive caps: entry count, total decompressed bytes, and the decompression ratio. */
1306
- interface ZipLimits {
1307
- readonly maxEntries: number;
1308
- /** Max total UNCOMPRESSED bytes across the archive. */
1309
- readonly maxTotalBytes: number;
1310
- /**
1311
- * Max ratio of the archive's total declared uncompressed bytes to the archive's own byte
1312
- * length (zip-bomb guard). Applies once that total exceeds 8 MiB, so a small archive is
1313
- * never refused for compressing well.
1314
- */
1315
- readonly maxRatio?: number;
1281
+ interface ContentTypeRecords {
1282
+ readonly defaults: readonly DefaultRecord[];
1283
+ readonly overrides: readonly OverrideRecord[];
1316
1284
  }
1317
- /** The archive caps in force when a host configures none. Conservative and finite. */
1318
- declare const DEFAULT_ZIP_LIMITS: ZipLimits;
1319
- /** The read entries, or the typed refusal. Never throws — the bytes are untrusted. */
1320
- type ZipReadResult = {
1285
+ /**
1286
+ * Why content-type records could not be indexed.
1287
+ *
1288
+ * All fail CLOSED: conflicting Defaults on one extension, duplicate normalized Override names, or
1289
+ * invalid MIME syntax are refused rather than resolved by picking one.
1290
+ */
1291
+ type ContentTypeError = {
1292
+ readonly code: 'invalid-mime';
1293
+ readonly value: string;
1294
+ } | {
1295
+ readonly code: 'conflicting-default';
1296
+ readonly extension: string;
1297
+ } | {
1298
+ readonly code: 'duplicate-override';
1299
+ readonly partName: string;
1300
+ } | {
1301
+ readonly code: 'invalid-override-name';
1302
+ readonly partName: string;
1303
+ } | {
1304
+ readonly code: 'too-many-records';
1305
+ readonly limit: number;
1306
+ };
1307
+ /** Whether a string is syntactically a MIME type. Syntax only — no registry lookup. */
1308
+ declare function isValidMime(value: string): boolean;
1309
+ /** ASCII-case-insensitive extension key (leading dot removed; ASCII-only fold). */
1310
+ declare function extensionKey(extension: string): string;
1311
+ /** The resolved lookup: Override by case-folded part name, Default by case-insensitive extension. */
1312
+ interface ContentTypeIndex {
1313
+ /** ext key -> single MIME (identical duplicates collapsed). */
1314
+ readonly defaults: ReadonlyMap<string, string>;
1315
+ /** case-folded part name -> MIME. */
1316
+ readonly overrides: ReadonlyMap<string, string>;
1317
+ }
1318
+ /** The built index, or the conflict that made it impossible. */
1319
+ type IndexResult = {
1321
1320
  readonly ok: true;
1322
- readonly entries: ReadonlyMap<string, Uint8Array>;
1321
+ readonly index: ContentTypeIndex;
1323
1322
  } | {
1324
1323
  readonly ok: false;
1325
- readonly reason: ZipRejection;
1326
- readonly detail?: string;
1327
- readonly limit?: 'zip.maxTotalBytes' | 'zip.maxRatio';
1324
+ readonly error: ContentTypeError;
1328
1325
  };
1329
1326
  /**
1330
- * Inflate a ZIP archive with bounds + OPC name normalization. Entry name, count, archive
1331
- * ratio, and total-uncompressed-size limits are enforced BEFORE each entry is decompressed
1332
- * (via fflate's pre-inflation filter), so a zip bomb or a traversal name is rejected without
1333
- * ever being inflated. Keys are canonical part names.
1327
+ * Build a resolved content-type index, failing closed on conflict/duplicate/MIME
1328
+ * errors. `maxRecords` bounds the combined record count (N/N+1 gate).
1329
+ */
1330
+ declare function buildContentTypeIndex(records: ContentTypeRecords, maxRecords?: number): IndexResult;
1331
+ /**
1332
+ * A part's content type, or why it has none.
1334
1333
  *
1335
- * The budgets count each entry's DECLARED sizes, and the declared size is also a hard cap on
1336
- * what the entry may produce: fflate inflates into a buffer of exactly `originalSize` bytes
1337
- * and never grows it, so an entry whose stream holds more than it declares is truncated (or
1338
- * refused as `inflate-error`), never expanded past its budget. A stored entry is copied at
1339
- * its compressed size, so the larger of its two declared sizes is what counts.
1334
+ * An orphan record never determines a part's type — a Default with no matching part is preserved
1335
+ * inertly rather than applied.
1340
1336
  */
1341
- declare function readZip(bytes: Uint8Array, limits?: ZipLimits): ZipReadResult;
1342
- /** Deflate a set of canonical-part-name -> bytes into a ZIP archive. Every part name
1343
- * is re-validated through the OPC normalization profile before writing, so a
1344
- * traversal/encoded/normalized-alias name from an untrusted serialized model can
1345
- * never be smuggled into a ZIP entry (write-side path-traversal guard). */
1346
- declare function writeZip(entries: ReadonlyMap<string, Uint8Array>): Uint8Array;
1337
+ type ResolveResult = {
1338
+ readonly ok: true;
1339
+ readonly contentType: string;
1340
+ readonly source: 'override' | 'default';
1341
+ } | {
1342
+ readonly ok: false;
1343
+ readonly reason: 'unknown';
1344
+ };
1345
+ /** Resolve a part's content type: Override wins over Default; else unknown. */
1346
+ declare function resolveContentType(index: ContentTypeIndex, partName: string): ResolveResult;
1347
1347
 
1348
1348
  type ShapeSchemeColorResolver = (scheme: string) => string | null;
1349
1349
  type ShapeStyleMatrixResolver = (kind: 'fill' | 'line', index: number) => OoxmlElement | null;
@@ -1432,6 +1432,11 @@ interface TextboxStoryProjection {
1432
1432
  readonly verticalAnchor: 'top' | 'center' | 'bottom';
1433
1433
  /** Autofit child of `wps:bodyPr`; extent stays authoritative either way (diagnostic only). */
1434
1434
  readonly autofit: 'none' | 'shape' | 'normal';
1435
+ /**
1436
+ * `wps:bodyPr/@wrap="none"` (VML `mso-wrap-style:none`): lines never wrap at the box edge,
1437
+ * and the box takes the width of its widest line plus the insets. Absent for wrapped text.
1438
+ */
1439
+ readonly noWrap?: true;
1435
1440
  /** Solid fill of the hosting shape, painted behind the story; null for no fill. */
1436
1441
  readonly fillHex: string | null;
1437
1442
  /** Solid outline of the hosting shape; null for no outline. */
@@ -1465,6 +1470,26 @@ interface DrawingImageEffects {
1465
1470
  readonly bilevel?: number;
1466
1471
  }
1467
1472
 
1473
+ /** One text box member of a drawing group. */
1474
+ interface GroupTextboxProjection {
1475
+ /** Canonical node id of the member `wps:wsp`; namespaces the story's line ids. */
1476
+ readonly memberNodeId: string;
1477
+ /** The member box in the group's extent space, in EMU (origin at the extent's top-left). */
1478
+ readonly frameEmu: Readonly<{
1479
+ x: number;
1480
+ y: number;
1481
+ cx: number;
1482
+ cy: number;
1483
+ }>;
1484
+ /** The member's story, projected at the scaled member size. */
1485
+ readonly story: TextboxStoryProjection;
1486
+ /**
1487
+ * Clockwise turn of the member's text about the member box center, in degrees [0, 360):
1488
+ * the member's `rot`, plus 180 for `flipV`. `flipH` never mirrors the text.
1489
+ */
1490
+ readonly rotationDegrees: number;
1491
+ }
1492
+
1468
1493
  /** The relationship namespace `r:id` lives in. */
1469
1494
  declare const OFFICE_RELATIONSHIP_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
1470
1495
  /** The `Type` a hyperlink relationship declares. */
@@ -1699,6 +1724,8 @@ interface DrawingProjection {
1699
1724
  /** The picture member of a `wpg:wgp` group; `picture` stays null for a group. */
1700
1725
  readonly groupPicture: GroupPictureProjection | null;
1701
1726
  readonly textboxStory: TextboxStoryProjection | null;
1727
+ /** Text box members of a `wpg:wgp` group, laid out read-only; absent when none has text. */
1728
+ readonly groupTextboxes?: readonly GroupTextboxProjection[];
1702
1729
  /** Read-only preview of the supported native VML subset; the canonical XML is untouched. */
1703
1730
  readonly legacyGraphic?: LegacyGraphicProjection;
1704
1731
  readonly locks: DrawingLocks;
@@ -1930,239 +1957,12 @@ declare function commentsOfPart(part: OoxmlPart): CommentRecord[];
1930
1957
  */
1931
1958
  declare function threadStateOfPart(part: OoxmlPart): Map<string, CommentThreadState>;
1932
1959
  /**
1933
- * Whether the package holds any `w:comment` record — the cheap gate before a reap.
1934
- *
1935
- * Overflow cannot prove the package is comment-free, so it returns true and the reap still
1936
- * runs rather than skipping cleanup.
1937
- */
1938
- declare function hasAnyComment(pkg: OoxmlPackage): boolean;
1939
-
1940
- /** How deep controls may nest before a walk stops descending. Shared by every lane. */
1941
- declare const MAX_CONTENT_CONTROL_NESTING = 32;
1942
- /** Cap on controls one walk reports, so a hostile file cannot make a read unbounded. */
1943
- declare const MAX_CONTENT_CONTROLS_PER_PART = 10000;
1944
- /** `CT_SdtPr/w:id` is `ST_DecimalNumber`; Word treats it as a signed 32-bit integer. */
1945
- declare const CONTENT_CONTROL_ID_MAX = 2147483647;
1946
- /** `ST_Lock` (§17.5.2.24). An absent `w:lock` is `unlocked`. */
1947
- /**
1948
- * `w:lock` — what a control refuses.
1949
- *
1950
- * `sdtLocked` protects the wrapper, `contentLocked` the text inside it, and `sdtContentLocked`
1951
- * both. A control inside a locked one is locked in effect regardless of its own value.
1952
- */
1953
- type ContentControlLock = 'unlocked' | 'sdtLocked' | 'contentLocked' | 'sdtContentLocked';
1954
- /**
1955
- * What kind of control this is.
1956
- *
1957
- * `checkbox` is the Microsoft `w14:checkbox` extension rather than an ECMA-376 type
1958
- * element, and the two are not mutually exclusive with "declares no type": four controls
1959
- * in the comprehensive fixture declare the extension and no `w:`-prefixed type, so a scan
1960
- * that read only the ECMA-376 choice reported them untyped. `untyped` means the control
1961
- * declares neither — a rich-text container, which is what Word treats it as.
1962
- */
1963
- /** Which kind of control a `w:sdt` is, and therefore what a written value must look like. */
1964
- type ContentControlKind = 'richText' | 'plainText' | 'checkbox' | 'dropDownList' | 'comboBox' | 'date' | 'picture' | 'docPartObj' | 'docPartList' | 'group' | 'citation' | 'bibliography' | 'equation' | 'untyped';
1965
- /** One declared option of a dropdown or combo box: its display text and its stored value. */
1966
- interface ContentControlListItem {
1967
- readonly displayText: string;
1968
- readonly value: string;
1969
- }
1970
- /** A date picker's authored format and locale, for rendering and for parsing what it stores. */
1971
- interface ContentControlDateFormat {
1972
- readonly fullDate?: string;
1973
- readonly dateFormat?: string;
1974
- readonly lid?: string;
1975
- readonly storeMappedDataAs?: string;
1976
- readonly calendar?: string;
1977
- }
1978
- /** One of a checkbox's two glyphs: the font and code point it is drawn with. */
1979
- interface ContentControlCheckboxState {
1980
- /** The `w14:val` hex code point of the glyph, exactly as the control declares it. */
1981
- readonly value: string;
1982
- readonly font?: string;
1983
- }
1984
- /**
1985
- * A checkbox's state and the two glyphs it chooses between.
1986
- *
1987
- * Both glyphs matter on a write: setting the value has to update `w14:checked` AND the run's
1988
- * character, or the document's glyph and its recorded state disagree.
1989
- */
1990
- interface ContentControlCheckbox {
1991
- readonly checked: boolean;
1992
- readonly checkedState?: ContentControlCheckboxState;
1993
- readonly uncheckedState?: ContentControlCheckboxState;
1994
- }
1995
- /** `CT_DataBinding` — preserved metadata. Never resolved, never fetched. */
1996
- /** `w:dataBinding` — the custom-XML part and XPath a control's value is bound to. */
1997
- interface ContentControlDataBinding {
1998
- readonly xpath?: string;
1999
- readonly storeItemID?: string;
2000
- readonly prefixMappings?: string;
2001
- }
2002
- /**
2003
- * A control's whole `w:sdtPr`, projected into one typed shape.
2004
- *
2005
- * What every other lane reads instead of walking `localName` strings — which also means a Word
2006
- * re-save that demotes the properties node to generic does not break the projection.
2007
- */
2008
- interface ContentControlProperties {
2009
- readonly type: ContentControlKind;
2010
- readonly alias?: string;
2011
- readonly tag?: string;
2012
- /** `@w:val` of `w:id` when the file declares a parseable one. Never fabricated. */
2013
- readonly id?: number;
2014
- readonly lock: ContentControlLock;
2015
- /** The glossary entry named by `w:placeholder/w:docPart`. Preserved, never loaded. */
2016
- readonly placeholderDocPart?: string;
2017
- readonly temporary: boolean;
2018
- readonly showingPlaceholder: boolean;
2019
- readonly dataBinding?: ContentControlDataBinding;
2020
- readonly label?: string;
2021
- readonly tabIndex?: number;
2022
- /** Items a dropdown or combo box offers. Empty for every other type. */
2023
- readonly listItems: readonly ContentControlListItem[];
2024
- readonly lastValue?: string;
2025
- readonly date?: ContentControlDateFormat;
2026
- readonly multiLine?: boolean;
2027
- readonly checkbox?: ContentControlCheckbox;
2028
- }
2029
- /** Whether a node is a `w:sdt` wrapper. */
2030
- declare function isContentControlNode(node: OoxmlNode): node is OoxmlContentControlNode;
2031
- /** Whether a node is a `w:sdtContent` — the container holding a control's actual content. */
2032
- declare function isContentControlContentNode(node: OoxmlNode): node is OoxmlContentControlContentNode;
2033
- /**
2034
- * A `w:sdt` wrapper, TYPED or DEMOTED.
2035
- *
2036
- * Flattening predates typing and must not stop at a control the reader refused to type: a
2037
- * demoted wrapper still renders its content in place in Word, so a walk that only saw the
2038
- * typed kind would drop every paragraph inside a malformed control out of the story.
2039
- */
2040
- declare function isContentControlWrapper(node: OoxmlNode): boolean;
2041
- /**
2042
- * The children of a wrapper's `w:sdtContent`, typed or demoted, in order.
2043
- *
2044
- * The one place that knows a control's content is reached through an intermediate element,
2045
- * so the four flattening walks (story blocks, layout, header/footer references, list
2046
- * resolution) ask the same question rather than each re-deriving it.
2047
- */
2048
- declare function contentControlContentChildren(wrapper: OoxmlNode): readonly OoxmlNode[];
2049
- /**
2050
- * A container's children with every content-control wrapper flattened away, bounded in depth.
2051
- *
2052
- * ONE unwrap rule, for the places where a control sits between a container and the children that
2053
- * container is defined in terms of. `CT_SdtRow` puts it between `w:tbl` and `w:tr`, `CT_SdtCell`
2054
- * between `w:tr` and `w:tc`, and a walk that filtered on the child's kind dropped the row or cell
2055
- * entirely: not measured, not painted, not addressable. Flattening at the point of the filter
2056
- * means a controlled row is the same row to the grid pass, the pagination pass and the story walk.
2057
- *
2058
- * Returns the SAME array identity when there is nothing to unwrap, so the tables that carry no
2059
- * controls — nearly all of them — allocate nothing and the incremental layout cache still sees
2060
- * its own inputs.
2061
- */
2062
- declare function flattenContentControls(children: readonly OoxmlNode[], maxDepth?: number): readonly OoxmlNode[];
2063
- /** A control's `w:sdtPr`, or null. Matches structurally, so a Word-demoted node still resolves. */
2064
- declare function contentControlPropertiesNodeOf(control: OoxmlNode): OoxmlContentControlPropertiesNode | undefined;
2065
- /** A control's `w:sdtEndPr` — the run properties applied to its closing marker. */
2066
- declare function contentControlEndPropertiesNodeOf(control: OoxmlNode): OoxmlContentControlEndPropertiesNode | undefined;
2067
- /** A control's `w:sdtContent`, or null when the wrapper has none. */
2068
- declare function contentControlContentNodeOf(control: OoxmlNode): OoxmlContentControlContentNode | undefined;
2069
- /** A signed 32-bit `ST_DecimalNumber`, or undefined when the file wrote something else. */
2070
- declare function parseContentControlId(raw: string | undefined): number | undefined;
2071
- /**
2072
- * Read a control's properties.
2073
- *
2074
- * Total: a control with no `w:sdtPr` at all answers the same shape with the defaults an
2075
- * absent property means, so no caller has to branch on the container's existence.
2076
- */
2077
- declare function contentControlPropertiesOf(control: OoxmlNode): ContentControlProperties;
2078
- /** Where a control sits, read off what its content holds. */
2079
- type ContentControlLevel = 'block' | 'inline' | 'row' | 'cell' | 'empty';
2080
- /**
2081
- * How deeply a control is nested inside other controls.
2082
- *
2083
- * Bounded by {@link MAX_CONTENT_CONTROL_NESTING}: nesting depth comes from a file and is a
2084
- * recursion bound.
2085
- */
2086
- declare function contentControlLevelOf(control: OoxmlNode): ContentControlLevel;
2087
- /** One control, plus how deeply it is nested and the controls that enclose it. */
2088
- interface ContentControlEntry {
2089
- readonly node: OoxmlContentControlNode;
2090
- /** 0 for a top-level control; the nesting depth otherwise. */
2091
- readonly depth: number;
2092
- /** Enclosing controls, outermost first. Empty at depth 0. */
2093
- readonly ancestors: readonly OoxmlContentControlNode[];
2094
- }
2095
- /**
2096
- * Every control under a node, in document order, bounded in depth and in count.
2097
- *
2098
- * ONE walk, shared. The nesting bound is the same one layout flattens with, so a control
2099
- * a lane can address is a control every lane can address — and a file that nests past it
2100
- * keeps its content in the tree (the serializer never stops) while no walk recurses
2101
- * further.
2102
- */
2103
- declare function contentControlsIn(root: OoxmlNode, options?: {
2104
- readonly maxDepth?: number;
2105
- readonly limit?: number;
2106
- }): readonly ContentControlEntry[];
2107
- /** Find one control by canonical node id, with the same bounded walk. */
2108
- declare function findContentControl(root: OoxmlNode, nodeId: string): ContentControlEntry | null;
2109
- /**
2110
- * The plain text a control's content holds, in reading order.
2111
- *
2112
- * `w:delText` is excluded: struck text is not the control's value, and a dropdown whose
2113
- * old item is still present as a tracked deletion would otherwise report both.
2114
- *
2115
- * A manual line break is left out unless `lineBreak` names the text to report it as.
2116
- * With that option, column breaks report U+000E so callers cannot silently discard them.
2117
- */
2118
- declare function contentControlTextOf(control: OoxmlNode, lineBreak?: string): string;
2119
- /**
2120
- * Resolve the lock a position inherits from the controls enclosing it.
2121
- *
2122
- * CONSERVATIVE, because a template that says a field cannot be edited and sits inside a
2123
- * section that says it cannot be removed means both. Each half of `ST_Lock` is taken
2124
- * independently and the strongest wins, so an unlocked control inside a `contentLocked`
2125
- * one is still content-locked — a nested control cannot grant a permission its parent
2126
- * withheld, which is the only reading under which a lock is a lock.
2127
- */
2128
- declare function resolveContentControlLock(chain: readonly ContentControlLock[]): ContentControlLock;
2129
- /** Whether a resolved lock forbids editing the content it covers. */
2130
- declare function lockForbidsEdit(lock: ContentControlLock): boolean;
2131
- /** Whether a resolved lock forbids removing the control itself. */
2132
- declare function lockForbidsRemoval(lock: ContentControlLock): boolean;
2133
- /**
2134
- * `CT_SdtPr`'s declared child order (§17.5.2.38), followed by the type choice.
2135
- *
2136
- * Serialization re-emits children in tree order, so the ONLY way a write keeps the
2137
- * sequence valid is to place the child it authors at its schema position — which is what
2138
- * {@link orderedContentControlProperties} does.
2139
- */
2140
- declare const CONTENT_CONTROL_PROPERTY_ORDER: readonly string[];
2141
- /**
2142
- * Rebuild a `w:sdtPr`'s children in schema order.
2143
- *
2144
- * Modelled children sort to their declared position and the type element follows them,
2145
- * as the sequence requires. Everything else — a `w15:repeatingSection`, a vendor
2146
- * extension, the `w14:checkbox` that is not part of the ECMA-376 choice — keeps the order
2147
- * it was authored in and follows the modelled block, so a write that touches one property
2148
- * neither drops nor reorders anything it does not name.
2149
- */
2150
- declare function orderedContentControlProperties(children: readonly OoxmlNode[]): readonly OoxmlNode[];
2151
- /**
2152
- * The next `w:id` to write.
2153
- *
2154
- * Solo: one past the document's own maximum. Never a clock, a timestamp, a random source
2155
- * or a hash: those collide with ids already in the file and produce values Word rejects.
2156
- * Null when the document already reaches the signed 32-bit bound, so the caller refuses
2157
- * rather than wrapping into a negative id. Hostile or out-of-range existing values are
2158
- * ignored for seeding rather than counted past.
2159
- *
2160
- * When a collaboration actor is bound (explicit argument or the open store transaction),
2161
- * the next id is the next unused value in that actor's stripe. Two peers inserting a
2162
- * generic content control — including a custom node authored as `w:sdt` — from the same
2163
- * snapshot then cannot share a `w:id`.
1960
+ * Whether the package holds any `w:comment` record — the cheap gate before a reap.
1961
+ *
1962
+ * Overflow cannot prove the package is comment-free, so it returns true and the reap still
1963
+ * runs rather than skipping cleanup.
2164
1964
  */
2165
- declare function allocateContentControlId(root: OoxmlNode, actorId?: string): number | null;
1965
+ declare function hasAnyComment(pkg: OoxmlPackage): boolean;
2166
1966
 
2167
1967
  /** A position in the model offset space of one story. */
2168
1968
  interface ReviewPosition {
@@ -2186,8 +1986,8 @@ interface ReviewRange {
2186
1986
  */
2187
1987
  type ReviewRevisionKind = 'insert' | 'delete'
2188
1988
  /**
2189
- * A combined decision supplied by a custom review provider.
2190
- * The built-in reader exposes text replacements as separate deletion and insertion decisions.
1989
+ * A combined deletion and insertion decision. The built-in reader lists them separately,
1990
+ * unless a review query asks to pair replacements or a custom review provider combines them.
2191
1991
  */
2192
1992
  | 'replace' | 'moveFrom' | 'moveTo'
2193
1993
  /** `w:rPrChange` / `w:pPrChange` — the words are unchanged, their formatting is not. */
@@ -2225,8 +2025,11 @@ interface ReviewRevisionItem {
2225
2025
  readonly structuralChanges?: readonly ('rowInsert' | 'rowDelete' | 'cellInsert' | 'cellDelete' | 'cellMerge' | 'numberingInsert')[];
2226
2026
  /** Changed direct formatting values, ready for localized review summaries. */
2227
2027
  readonly formattingChanges?: readonly {
2228
- readonly property: 'bold' | 'italic' | 'underline' | 'strike' | 'fontFamily' | 'fontSize' | 'color' | 'alignment' | 'leftIndent' | 'rightIndent' | 'firstLineIndent' | 'hangingIndent' | 'spaceBefore' | 'spaceAfter';
2229
- /** New direct value; null means inherit. Sizes and distances are in points. */
2028
+ readonly property: 'bold' | 'italic' | 'underline' | 'strike' | 'fontFamily' | 'fontSize' | 'color' | 'alignment' | 'leftIndent' | 'rightIndent' | 'firstLineIndent' | 'hangingIndent' | 'spaceBefore' | 'spaceAfter' | 'direction';
2029
+ /**
2030
+ * New direct value; null means inherit. Sizes and distances are in points. A direction is
2031
+ * `rtl` or `ltr`.
2032
+ */
2230
2033
  readonly value: string | null;
2231
2034
  }[];
2232
2035
  /** Newly applied proofing language codes in a tracked formatting change. */
@@ -2456,6 +2259,233 @@ declare function activeReviewItem(items: readonly ReviewItem[], position: Review
2456
2259
  */
2457
2260
  declare function reviewThreadRootOf(items: readonly ReviewItem[], comment: ReviewCommentItem): ReviewItem;
2458
2261
 
2262
+ /** How deep controls may nest before a walk stops descending. Shared by every lane. */
2263
+ declare const MAX_CONTENT_CONTROL_NESTING = 32;
2264
+ /** Cap on controls one walk reports, so a hostile file cannot make a read unbounded. */
2265
+ declare const MAX_CONTENT_CONTROLS_PER_PART = 10000;
2266
+ /** `CT_SdtPr/w:id` is `ST_DecimalNumber`; Word treats it as a signed 32-bit integer. */
2267
+ declare const CONTENT_CONTROL_ID_MAX = 2147483647;
2268
+ /** `ST_Lock` (§17.5.2.24). An absent `w:lock` is `unlocked`. */
2269
+ /**
2270
+ * `w:lock` — what a control refuses.
2271
+ *
2272
+ * `sdtLocked` protects the wrapper, `contentLocked` the text inside it, and `sdtContentLocked`
2273
+ * both. A control inside a locked one is locked in effect regardless of its own value.
2274
+ */
2275
+ type ContentControlLock = 'unlocked' | 'sdtLocked' | 'contentLocked' | 'sdtContentLocked';
2276
+ /**
2277
+ * What kind of control this is.
2278
+ *
2279
+ * `checkbox` is the Microsoft `w14:checkbox` extension rather than an ECMA-376 type
2280
+ * element, and the two are not mutually exclusive with "declares no type": four controls
2281
+ * in the comprehensive fixture declare the extension and no `w:`-prefixed type, so a scan
2282
+ * that read only the ECMA-376 choice reported them untyped. `untyped` means the control
2283
+ * declares neither — a rich-text container, which is what Word treats it as.
2284
+ */
2285
+ /** Which kind of control a `w:sdt` is, and therefore what a written value must look like. */
2286
+ type ContentControlKind = 'richText' | 'plainText' | 'checkbox' | 'dropDownList' | 'comboBox' | 'date' | 'picture' | 'docPartObj' | 'docPartList' | 'group' | 'citation' | 'bibliography' | 'equation' | 'untyped';
2287
+ /** One declared option of a dropdown or combo box: its display text and its stored value. */
2288
+ interface ContentControlListItem {
2289
+ readonly displayText: string;
2290
+ readonly value: string;
2291
+ }
2292
+ /** A date picker's authored format and locale, for rendering and for parsing what it stores. */
2293
+ interface ContentControlDateFormat {
2294
+ readonly fullDate?: string;
2295
+ readonly dateFormat?: string;
2296
+ readonly lid?: string;
2297
+ readonly storeMappedDataAs?: string;
2298
+ readonly calendar?: string;
2299
+ }
2300
+ /** One of a checkbox's two glyphs: the font and code point it is drawn with. */
2301
+ interface ContentControlCheckboxState {
2302
+ /** The `w14:val` hex code point of the glyph, exactly as the control declares it. */
2303
+ readonly value: string;
2304
+ readonly font?: string;
2305
+ }
2306
+ /**
2307
+ * A checkbox's state and the two glyphs it chooses between.
2308
+ *
2309
+ * Both glyphs matter on a write: setting the value has to update `w14:checked` AND the run's
2310
+ * character, or the document's glyph and its recorded state disagree.
2311
+ */
2312
+ interface ContentControlCheckbox {
2313
+ readonly checked: boolean;
2314
+ readonly checkedState?: ContentControlCheckboxState;
2315
+ readonly uncheckedState?: ContentControlCheckboxState;
2316
+ }
2317
+ /** `CT_DataBinding` — preserved metadata. Never resolved, never fetched. */
2318
+ /** `w:dataBinding` — the custom-XML part and XPath a control's value is bound to. */
2319
+ interface ContentControlDataBinding {
2320
+ readonly xpath?: string;
2321
+ readonly storeItemID?: string;
2322
+ readonly prefixMappings?: string;
2323
+ }
2324
+ /**
2325
+ * A control's whole `w:sdtPr`, projected into one typed shape.
2326
+ *
2327
+ * What every other lane reads instead of walking `localName` strings — which also means a Word
2328
+ * re-save that demotes the properties node to generic does not break the projection.
2329
+ */
2330
+ interface ContentControlProperties {
2331
+ readonly type: ContentControlKind;
2332
+ readonly alias?: string;
2333
+ readonly tag?: string;
2334
+ /** `@w:val` of `w:id` when the file declares a parseable one. Never fabricated. */
2335
+ readonly id?: number;
2336
+ readonly lock: ContentControlLock;
2337
+ /** The glossary entry named by `w:placeholder/w:docPart`. Preserved, never loaded. */
2338
+ readonly placeholderDocPart?: string;
2339
+ readonly temporary: boolean;
2340
+ readonly showingPlaceholder: boolean;
2341
+ readonly dataBinding?: ContentControlDataBinding;
2342
+ readonly label?: string;
2343
+ readonly tabIndex?: number;
2344
+ /** Items a dropdown or combo box offers. Empty for every other type. */
2345
+ readonly listItems: readonly ContentControlListItem[];
2346
+ readonly lastValue?: string;
2347
+ readonly date?: ContentControlDateFormat;
2348
+ readonly multiLine?: boolean;
2349
+ readonly checkbox?: ContentControlCheckbox;
2350
+ }
2351
+ /** Whether a node is a `w:sdt` wrapper. */
2352
+ declare function isContentControlNode(node: OoxmlNode): node is OoxmlContentControlNode;
2353
+ /** Whether a node is a `w:sdtContent` — the container holding a control's actual content. */
2354
+ declare function isContentControlContentNode(node: OoxmlNode): node is OoxmlContentControlContentNode;
2355
+ /**
2356
+ * A `w:sdt` wrapper, TYPED or DEMOTED.
2357
+ *
2358
+ * Flattening predates typing and must not stop at a control the reader refused to type: a
2359
+ * demoted wrapper still renders its content in place in Word, so a walk that only saw the
2360
+ * typed kind would drop every paragraph inside a malformed control out of the story.
2361
+ */
2362
+ declare function isContentControlWrapper(node: OoxmlNode): boolean;
2363
+ /**
2364
+ * The children of a wrapper's `w:sdtContent`, typed or demoted, in order.
2365
+ *
2366
+ * The one place that knows a control's content is reached through an intermediate element,
2367
+ * so the four flattening walks (story blocks, layout, header/footer references, list
2368
+ * resolution) ask the same question rather than each re-deriving it.
2369
+ */
2370
+ declare function contentControlContentChildren(wrapper: OoxmlNode): readonly OoxmlNode[];
2371
+ /**
2372
+ * A container's children with every content-control wrapper flattened away, bounded in depth.
2373
+ *
2374
+ * ONE unwrap rule, for the places where a control sits between a container and the children that
2375
+ * container is defined in terms of. `CT_SdtRow` puts it between `w:tbl` and `w:tr`, `CT_SdtCell`
2376
+ * between `w:tr` and `w:tc`, and a walk that filtered on the child's kind dropped the row or cell
2377
+ * entirely: not measured, not painted, not addressable. Flattening at the point of the filter
2378
+ * means a controlled row is the same row to the grid pass, the pagination pass and the story walk.
2379
+ *
2380
+ * Returns the SAME array identity when there is nothing to unwrap, so the tables that carry no
2381
+ * controls — nearly all of them — allocate nothing and the incremental layout cache still sees
2382
+ * its own inputs.
2383
+ */
2384
+ declare function flattenContentControls(children: readonly OoxmlNode[], maxDepth?: number): readonly OoxmlNode[];
2385
+ /** A control's `w:sdtPr`, or null. Matches structurally, so a Word-demoted node still resolves. */
2386
+ declare function contentControlPropertiesNodeOf(control: OoxmlNode): OoxmlContentControlPropertiesNode | undefined;
2387
+ /** A control's `w:sdtEndPr` — the run properties applied to its closing marker. */
2388
+ declare function contentControlEndPropertiesNodeOf(control: OoxmlNode): OoxmlContentControlEndPropertiesNode | undefined;
2389
+ /** A control's `w:sdtContent`, or null when the wrapper has none. */
2390
+ declare function contentControlContentNodeOf(control: OoxmlNode): OoxmlContentControlContentNode | undefined;
2391
+ /** A signed 32-bit `ST_DecimalNumber`, or undefined when the file wrote something else. */
2392
+ declare function parseContentControlId(raw: string | undefined): number | undefined;
2393
+ /**
2394
+ * Read a control's properties.
2395
+ *
2396
+ * Total: a control with no `w:sdtPr` at all answers the same shape with the defaults an
2397
+ * absent property means, so no caller has to branch on the container's existence.
2398
+ */
2399
+ declare function contentControlPropertiesOf(control: OoxmlNode): ContentControlProperties;
2400
+ /** Where a control sits, read off what its content holds. */
2401
+ type ContentControlLevel = 'block' | 'inline' | 'row' | 'cell' | 'empty';
2402
+ /**
2403
+ * How deeply a control is nested inside other controls.
2404
+ *
2405
+ * Bounded by {@link MAX_CONTENT_CONTROL_NESTING}: nesting depth comes from a file and is a
2406
+ * recursion bound.
2407
+ */
2408
+ declare function contentControlLevelOf(control: OoxmlNode): ContentControlLevel;
2409
+ /** One control, plus how deeply it is nested and the controls that enclose it. */
2410
+ interface ContentControlEntry {
2411
+ readonly node: OoxmlContentControlNode;
2412
+ /** 0 for a top-level control; the nesting depth otherwise. */
2413
+ readonly depth: number;
2414
+ /** Enclosing controls, outermost first. Empty at depth 0. */
2415
+ readonly ancestors: readonly OoxmlContentControlNode[];
2416
+ }
2417
+ /**
2418
+ * Every control under a node, in document order, bounded in depth and in count.
2419
+ *
2420
+ * ONE walk, shared. The nesting bound is the same one layout flattens with, so a control
2421
+ * a lane can address is a control every lane can address — and a file that nests past it
2422
+ * keeps its content in the tree (the serializer never stops) while no walk recurses
2423
+ * further.
2424
+ */
2425
+ declare function contentControlsIn(root: OoxmlNode, options?: {
2426
+ readonly maxDepth?: number;
2427
+ readonly limit?: number;
2428
+ }): readonly ContentControlEntry[];
2429
+ /** Find one control by canonical node id, with the same bounded walk. */
2430
+ declare function findContentControl(root: OoxmlNode, nodeId: string): ContentControlEntry | null;
2431
+ /**
2432
+ * The plain text a control's content holds, in reading order.
2433
+ *
2434
+ * `w:delText` is excluded: struck text is not the control's value, and a dropdown whose
2435
+ * old item is still present as a tracked deletion would otherwise report both.
2436
+ *
2437
+ * A manual line break is left out unless `lineBreak` names the text to report it as.
2438
+ * With that option, column breaks report U+000E so callers cannot silently discard them.
2439
+ */
2440
+ declare function contentControlTextOf(control: OoxmlNode, lineBreak?: string): string;
2441
+ /**
2442
+ * Resolve the lock a position inherits from the controls enclosing it.
2443
+ *
2444
+ * CONSERVATIVE, because a template that says a field cannot be edited and sits inside a
2445
+ * section that says it cannot be removed means both. Each half of `ST_Lock` is taken
2446
+ * independently and the strongest wins, so an unlocked control inside a `contentLocked`
2447
+ * one is still content-locked — a nested control cannot grant a permission its parent
2448
+ * withheld, which is the only reading under which a lock is a lock.
2449
+ */
2450
+ declare function resolveContentControlLock(chain: readonly ContentControlLock[]): ContentControlLock;
2451
+ /** Whether a resolved lock forbids editing the content it covers. */
2452
+ declare function lockForbidsEdit(lock: ContentControlLock): boolean;
2453
+ /** Whether a resolved lock forbids removing the control itself. */
2454
+ declare function lockForbidsRemoval(lock: ContentControlLock): boolean;
2455
+ /**
2456
+ * `CT_SdtPr`'s declared child order (§17.5.2.38), followed by the type choice.
2457
+ *
2458
+ * Serialization re-emits children in tree order, so the ONLY way a write keeps the
2459
+ * sequence valid is to place the child it authors at its schema position — which is what
2460
+ * {@link orderedContentControlProperties} does.
2461
+ */
2462
+ declare const CONTENT_CONTROL_PROPERTY_ORDER: readonly string[];
2463
+ /**
2464
+ * Rebuild a `w:sdtPr`'s children in schema order.
2465
+ *
2466
+ * Modelled children sort to their declared position and the type element follows them,
2467
+ * as the sequence requires. Everything else — a `w15:repeatingSection`, a vendor
2468
+ * extension, the `w14:checkbox` that is not part of the ECMA-376 choice — keeps the order
2469
+ * it was authored in and follows the modelled block, so a write that touches one property
2470
+ * neither drops nor reorders anything it does not name.
2471
+ */
2472
+ declare function orderedContentControlProperties(children: readonly OoxmlNode[]): readonly OoxmlNode[];
2473
+ /**
2474
+ * The next `w:id` to write.
2475
+ *
2476
+ * Solo: one past the document's own maximum. Never a clock, a timestamp, a random source
2477
+ * or a hash: those collide with ids already in the file and produce values Word rejects.
2478
+ * Null when the document already reaches the signed 32-bit bound, so the caller refuses
2479
+ * rather than wrapping into a negative id. Hostile or out-of-range existing values are
2480
+ * ignored for seeding rather than counted past.
2481
+ *
2482
+ * When a collaboration actor is bound (explicit argument or the open store transaction),
2483
+ * the next id is the next unused value in that actor's stripe. Two peers inserting a
2484
+ * generic content control — including a custom node authored as `w:sdt` — from the same
2485
+ * snapshot then cannot share a `w:id`.
2486
+ */
2487
+ declare function allocateContentControlId(root: OoxmlNode, actorId?: string): number | null;
2488
+
2459
2489
  /** The value a control accepts, by what kind of control it is. */
2460
2490
  type ContentControlValueInput = {
2461
2491
  readonly kind: 'text';
@@ -2509,6 +2539,48 @@ declare function planRevisionBatch(part: OoxmlPart, action: 'accept' | 'reject',
2509
2539
  result: RevisionBatchResult;
2510
2540
  };
2511
2541
 
2542
+ /** Why a requested change keeps its attribution. @public */
2543
+ type RevisionAuthorSkipReason = 'unknown-revision' | 'unsupported-revision';
2544
+ /**
2545
+ * One reattributed change. `key` and `author` describe the change after the update, because
2546
+ * review keys include the author. @public
2547
+ */
2548
+ interface RevisionAuthorEntry extends RevisionBatchEntry {
2549
+ /**
2550
+ * The key the caller selected the change by. It differs from `key` when the attribution
2551
+ * changed, because review keys include the author and date.
2552
+ */
2553
+ readonly previousKey: string;
2554
+ /** The author the change had before the update. */
2555
+ readonly previousAuthor: string;
2556
+ }
2557
+ /** Outcome of one attribution change. Counts refer to review decisions, not XML markers. @public */
2558
+ interface RevisionAuthorResult {
2559
+ /** Changes that now carry the requested attribution, in selection order. */
2560
+ readonly updated: readonly RevisionAuthorEntry[];
2561
+ /** Requested changes that kept their attribution. */
2562
+ readonly skipped: readonly {
2563
+ readonly key: string;
2564
+ readonly reason: RevisionAuthorSkipReason;
2565
+ readonly revision?: RevisionBatchEntry;
2566
+ }[];
2567
+ }
2568
+ /** A planned attribution change: its ops, and how to name the result once they commit. */
2569
+ interface RevisionAuthorPlan {
2570
+ readonly ops: readonly TreeDocOp[];
2571
+ /** The outcome before commit. Updated entries still carry their previous keys. */
2572
+ readonly result: RevisionAuthorResult;
2573
+ /** The outcome against the committed part, with each updated change under its new key. */
2574
+ finish(after: OoxmlPart): RevisionAuthorResult;
2575
+ }
2576
+ /**
2577
+ * Plan an attribution change for selected review keys. Omitted keys select every change.
2578
+ * `authors` keeps only the changes those authors made.
2579
+ * Callers validate `revision` with `invalidRevisionAuthorInput` first.
2580
+ * @internal
2581
+ */
2582
+ declare function planRevisionAuthorChange(part: OoxmlPart, revision: RevisionAttributionInput, keys?: readonly string[], scopeRoot?: OoxmlNode, authors?: readonly string[]): RevisionAuthorPlan;
2583
+
2512
2584
  /** Allowlisted OOXML table border line styles — store/layout authority. */
2513
2585
  declare const TABLE_BORDER_STYLES: readonly ['single', 'dashed', 'dotted', 'double', 'triple', 'thick'];
2514
2586
  /**
@@ -2654,8 +2726,11 @@ interface DocRange {
2654
2726
  */
2655
2727
  type ExecResult = {
2656
2728
  ok: true;
2729
+ /** Whether the DOCUMENT changed; view-only calls (pane, activation, mode) always report `false`. */
2657
2730
  changed: boolean;
2658
2731
  revisions?: RevisionBatchResult;
2732
+ /** Present on `setReviewChangesAuthor`: the changes it updated and the ones it skipped. */
2733
+ revisionAuthors?: RevisionAuthorResult;
2659
2734
  history?: HistoryGroupOutcome;
2660
2735
  } | {
2661
2736
  ok: false;
@@ -2663,6 +2738,7 @@ type ExecResult = {
2663
2738
  reason: string;
2664
2739
  target?: DocTarget;
2665
2740
  revisions?: RevisionBatchResult;
2741
+ revisionAuthors?: RevisionAuthorResult;
2666
2742
  };
2667
2743
  /**
2668
2744
  * Why a write was refused, as a value to branch on.
@@ -3268,6 +3344,18 @@ type TreeDocOp = SetFieldCodeOp | {
3268
3344
  readonly siteNodeIds?: readonly string[];
3269
3345
  /** Internal shared-notes scope. When present, this must be the canonical id of a note root. */
3270
3346
  readonly scopeRootId?: string;
3347
+ } | {
3348
+ /**
3349
+ * Attribute pending revisions to another author, and optionally another date, without
3350
+ * deciding them. `sites` name revision elements and move range starts. Sites sharing a
3351
+ * `renumber` label take one fresh `w:id`, so the change cannot merge with another one.
3352
+ */
3353
+ readonly op: 'setRevisionAttribution';
3354
+ readonly revision: RevisionAttributionInput;
3355
+ readonly sites: readonly {
3356
+ readonly nodeId: string;
3357
+ readonly renumber?: string;
3358
+ }[];
3271
3359
  } | {
3272
3360
  readonly op: 'rejectAllRevisions';
3273
3361
  /** Exact canonical sites selected by bulk preflight. */
@@ -4081,7 +4169,19 @@ type TreeOpRejection = 'unknown-op' | 'unknown-paragraph' | 'not-a-paragraph' |
4081
4169
  * a real offset that is not a PLACE — refused rather than resolved to the nearest one, so a
4082
4170
  * caller learns the node would not have landed where they asked.
4083
4171
  */
4084
- | 'indivisible-content' | 'unknown-block' | 'not-a-block' | 'block-required' | 'carries-section-mark'
4172
+ | 'indivisible-content'
4173
+ /**
4174
+ * The range has one end inside a field's editable saved result and the other outside it.
4175
+ * Deleting it would leave the field's begin, separate, and end markers unbalanced, so it is
4176
+ * refused. A range that covers the whole field removes the field.
4177
+ */
4178
+ | 'field-structure'
4179
+ /**
4180
+ * In the editable field-result mode, an op other than typing, deletion, or run formatting
4181
+ * addresses a position inside a field's saved result. Splits, tabs, links, notes, and
4182
+ * fragments there are not supported yet.
4183
+ */
4184
+ | 'field-result-unsupported' | 'unknown-block' | 'not-a-block' | 'block-required' | 'carries-section-mark'
4085
4185
  /** The transaction named a part the package does not hold. */
4086
4186
  | 'unknown-part'
4087
4187
  /**
@@ -4165,5 +4265,5 @@ type TreeOpResult = {
4165
4265
  readonly detail?: string;
4166
4266
  };
4167
4267
 
4168
- export { IMAGE_WRAP_TARGETS as aE, TEXT_FORM_FORMATS as aF, ACCEPTED_PARAGRAPH_PROPERTIES as aW, ACCEPTED_RUN_PROPERTIES as aX, CONTENT_CONTROL_ID_MAX as aY, CONTENT_CONTROL_PROPERTY_ORDER as aZ, DEFAULT_OOXML_PACKAGE_LIMITS as be, DEFAULT_ZIP_LIMITS as bf, HYPERLINK_RELATIONSHIP_TYPE as bi, IMAGE_RELATIONSHIP_TYPE as bl, MAX_CONTENT_CONTROLS_PER_PART as br, MAX_CONTENT_CONTROL_NESTING as bs, OFFICE_RELATIONSHIP_NAMESPACE_URI as bv, OOXML_NODE_IDENTITY_RULES as bw, isContentControlWrapper as c$, allocateContentControlId as cA, asciiFold as cB, buildContentTypeIndex as cC, buildRelationshipSet as cD, childElements as cE, commentAnchorsOfStory as cF, commentsOfPart as cG, contentControlContentChildren as cH, contentControlContentNodeOf as cI, contentControlEndPropertiesNodeOf as cJ, contentControlLevelOf as cK, contentControlPropertiesNodeOf as cL, contentControlPropertiesOf as cM, contentControlTextOf as cN, contentControlsIn as cO, detectDuplicateNames as cP, extensionKey as cQ, findContentControl as cR, findElement as cS, firstReviewRange as cT, flattenContentControls as cU, hasAnyComment as cV, hyperlinkAnchorOf as cW, hyperlinkRelationshipIdOf as cX, hyperlinkTargetOf as cY, isContentControlContentNode as cZ, isContentControlNode as c_, TABLE_BORDER_STYLES as ch, W15_NAMESPACE_URI as cp, WML_NAMESPACE_URI as cq, XMLNS_NAMESPACE_URI as cr, XML_NAMESPACE_URI as cs, isContentRevisionKind as d0, isHyperlinkNode as d1, isRangeMarkerKind as d2, isValidMime as d3, legacyCheckboxFieldsOf as d4, lockForbidsEdit as d5, lockForbidsRemoval as d6, normalizePartName as d7, orderedContentControlProperties as d8, parseContentControlId as d9, reviewItemsAt as dA, reviewThreadRootOf as dB, partNameKey as da, planRevisionBatch as db, projectDrawing as dc, readOnOffChild as dd, readOoxmlPackage as de, readOoxmlPart as df, readXml as dg, readZip as dh, resolveContentControlLock as di, resolveContentType as dj, resolveImageRelationship as dk, resolveInternalTarget as dl, resolveRelationship as dm, reviewItemKey as dn, reviewItemRanges as dp, textContent as dq, textFormFieldsOf as dr, threadStateOfPart as ds, validateExternalTarget as dt, withPart as du, writeOoxmlPackage as dv, writeZip as dw, activeReviewItem as dy, reviewItemPositionRank as dz };
4169
- export type { OoxmlContentControlContentNode as $, ParagraphTabStop as A, Block as B, CommentRecord as C, DocxDocument as D, ExecResult as E, RevisionType as F, Section as G, HeaderFooterSet as H, InsertableContentControlType as I, SectionProperties as J, StyleDefinition as K, Theme as L, ThemeColorScheme as M, OoxmlNode as N, OoxmlPart as O, Paragraph as P, OoxmlPackage as Q, ReviewModelInput as R, StyleDefinitions as S, Table as T, OoxmlNodeId as U, OoxmlGenericElementNode as V, TreeDocOp as W, OoxmlProperty as X, OoxmlPackageRejection as Y, OoxmlElement as Z, OoxmlContentControlNode as _, ReviewItem as a, CommentPosition as a$, DrawingProjection as a0, OoxmlPackageLimits as a1, RevisionBatchEntry as a2, RevisionBatchResult as a3, RevisionBatchSkipReason as a4, TreeOpRejection as a5, AutomationTableMutation as a6, RevisionAttributionInput as a7, SourceCrop as a8, DrawingKind as a9, OoxmlSeparatorNode as aA, DrawingTreeDocOp as aB, ImpactClass as aC, TreeDocColorValue as aD, TableBorderStyle as aG, DrawingAccessibility as aH, DrawingImageEffects as aI, DrawingTransform as aJ, VectorShapeProjection as aK, OoxmlDrawingNode as aL, OoxmlInvariantResult as aM, OoxmlFldCharNode as aN, OoxmlFldSimpleNode as aO, OoxmlInstrTextNode as aP, OoxmlInvariantIssue as aQ, TreeOpResult as aR, RelationshipRecord as aS, OoxmlHardBreakNode as aT, OoxmlAttribute as aU, CommentThreadState as aV, CommentAnchor as a_, ImageWrapTarget as aa, DrawingPositionInput as ab, DrawingLocks as ac, ParagraphFormatCommand as ad, Watermark as ae, Rect as af, SelectionPin as ag, Unsubscribe as ah, DocxDocumentJSON as ai, DrawingHorizontalReferenceFrame as aj, DrawingVerticalReferenceFrame as ak, FontDefinition as al, NumberingRef as am, PageMargins as an, ParagraphDisagreements as ao, Point as ap, Run as aq, TableCell as ar, TableRow as as, OoxmlParagraphNode as at, OoxmlNoteNode as au, OoxmlContinuationSeparatorNode as av, OoxmlEndnotesNode as aw, OoxmlFootnotesNode as ax, OoxmlNoteRefNode as ay, OoxmlNoteReferenceNode as az, ReviewRevisionItem as b, OoxmlReadRejection as b$, CommitTextFormFieldOp as b0, ContentControlCheckbox as b1, ContentControlCheckboxState as b2, ContentControlDataBinding as b3, ContentControlDateFormat as b4, ContentControlEntry as b5, ContentControlKind as b6, ContentControlLevel as b7, ContentControlListItem as b8, ContentControlLock as b9, OoxmlContentControlCalendarNode as bA, OoxmlContentControlCheckboxNode as bB, OoxmlContentControlCheckedNode as bC, OoxmlContentControlCheckedStateNode as bD, OoxmlContentControlComboBoxNode as bE, OoxmlContentControlDataBindingNode as bF, OoxmlContentControlDateFormatNode as bG, OoxmlContentControlDateNode as bH, OoxmlContentControlDropDownListNode as bI, OoxmlContentControlEndPropertiesNode as bJ, OoxmlContentControlLidNode as bK, OoxmlContentControlListItemNode as bL, OoxmlContentControlPropertiesNode as bM, OoxmlContentControlStoreMappedDataAsNode as bN, OoxmlContentControlTextNode as bO, OoxmlContentControlUncheckedStateNode as bP, OoxmlDocumentNode as bQ, OoxmlExternalTarget as bR, OoxmlGenericExtensionAttribute as bS, OoxmlHyperlinkNode as bT, OoxmlInvariantIssueCode as bU, OoxmlKnownNodeAttribute as bV, OoxmlNamespaceBinding as bW, OoxmlNodeIdentityRules as bX, OoxmlPackageResult as bY, OoxmlParagraphPropertiesNode as bZ, OoxmlPartMetadata as b_, ContentControlProperties as ba, ContentTypeError as bb, ContentTypeIndex as bc, ContentTypeRecords as bd, DefaultRecord as bg, DeleteTextOp as bh, HyperlinkKind as bj, HyperlinkTarget as bk, ImageRelationshipResolution as bm, IndexResult as bn, InsertBuildingBlockOp as bo, InsertTextOp as bp, LegacyCheckboxFieldRange as bq, NameRejection as bt, NameResult as bu, OoxmlBodyNode as bx, OoxmlBookmarkEndNode as by, OoxmlBookmarkStartNode as bz, ReviewCommentItem as c, OoxmlReadResult as c0, OoxmlRunNode as c1, OoxmlRunPropertiesNode as c2, OoxmlTabNode as c3, OoxmlTextElementNode as c4, OoxmlTextNode as c5, OoxmlWmlValAttribute as c6, OoxmlXmlSpaceAttribute as c7, OverrideRecord as c8, RelationshipError as c9, RelationshipSetResult as ca, RelationshipTargetResolver as cb, ResolveResult as cc, ResolvedRelationship as cd, SetLegacyCheckboxOp as ce, SetLegacyDropdownOp as cf, SetTextFormFieldDefaultOp as cg, TabStopWrite as ci, TargetMode as cj, TextFormFieldOptions as ck, TextFormFieldRange as cl, TextFormFieldType as cm, TreeDocOpKind as cn, TreeOpEffect as co, XmlLimits as ct, XmlNode as cu, XmlRejection as cv, XmlResult as cw, ZipLimits as cx, ZipReadResult as cy, ZipRejection as cz, ReviewCustomItem as d, VectorShapeComponent as dx, ReviewPosition as e, ReviewRange as f, ReviewRevisionKind as g, RevisionAddress as h, ContentControlType as i, DocTarget as j, RunFormatting as k, Extent as l, ContainerRef as m, ContentControlFilter as n, DocRange as o, Revision as p, DocComment as q, ColorValue as r, ContentControl as s, DocAnchor as t, DocAnchorRange as u, DocLocation as v, DocumentBody as w, ExecErrorCode as x, IndentFormatting as y, ParagraphFlags as z };
4268
+ export { CONTENT_CONTROL_ID_MAX as a$, IMAGE_WRAP_TARGETS as aH, TEXT_FORM_FORMATS as aI, ACCEPTED_PARAGRAPH_PROPERTIES as aZ, ACCEPTED_RUN_PROPERTIES as a_, CONTENT_CONTROL_PROPERTY_ORDER as b0, DEFAULT_OOXML_PACKAGE_LIMITS as bh, DEFAULT_ZIP_LIMITS as bi, HYPERLINK_RELATIONSHIP_TYPE as bl, IMAGE_RELATIONSHIP_TYPE as bo, MAX_CONTENT_CONTROLS_PER_PART as bu, MAX_CONTENT_CONTROL_NESTING as bv, OFFICE_RELATIONSHIP_NAMESPACE_URI as by, OOXML_NODE_IDENTITY_RULES as bz, hyperlinkTargetOf as c$, allocateContentControlId as cD, asciiFold as cE, buildContentTypeIndex as cF, buildRelationshipSet as cG, childElements as cH, commentAnchorsOfStory as cI, commentsOfPart as cJ, contentControlContentChildren as cK, contentControlContentNodeOf as cL, contentControlEndPropertiesNodeOf as cM, contentControlLevelOf as cN, contentControlPropertiesNodeOf as cO, contentControlPropertiesOf as cP, contentControlTextOf as cQ, contentControlsIn as cR, detectDuplicateNames as cS, extensionKey as cT, findContentControl as cU, findElement as cV, firstReviewRange as cW, flattenContentControls as cX, hasAnyComment as cY, hyperlinkAnchorOf as cZ, hyperlinkRelationshipIdOf as c_, TABLE_BORDER_STYLES as ck, W15_NAMESPACE_URI as cs, WML_NAMESPACE_URI as ct, XMLNS_NAMESPACE_URI as cu, XML_NAMESPACE_URI as cv, isContentControlContentNode as d0, isContentControlNode as d1, isContentControlWrapper as d2, isContentRevisionKind as d3, isHyperlinkNode as d4, isRangeMarkerKind as d5, isValidMime as d6, legacyCheckboxFieldsOf as d7, lockForbidsEdit as d8, lockForbidsRemoval as d9, writeZip as dA, activeReviewItem as dC, reviewItemPositionRank as dD, reviewItemsAt as dE, reviewThreadRootOf as dF, normalizePartName as da, orderedContentControlProperties as db, parseContentControlId as dc, partNameKey as dd, planRevisionAuthorChange as de, planRevisionBatch as df, projectDrawing as dg, readOnOffChild as dh, readOoxmlPackage as di, readOoxmlPart as dj, readXml as dk, readZip as dl, resolveContentControlLock as dm, resolveContentType as dn, resolveImageRelationship as dp, resolveInternalTarget as dq, resolveRelationship as dr, reviewItemKey as ds, reviewItemRanges as dt, textContent as du, textFormFieldsOf as dv, threadStateOfPart as dw, validateExternalTarget as dx, withPart as dy, writeOoxmlPackage as dz };
4269
+ export type { OoxmlContentControlContentNode as $, ParagraphTabStop as A, Block as B, CommentRecord as C, DocxDocument as D, ExecResult as E, RevisionType as F, Section as G, HeaderFooterSet as H, InsertableContentControlType as I, SectionProperties as J, StyleDefinition as K, Theme as L, ThemeColorScheme as M, OoxmlNode as N, OoxmlPart as O, Paragraph as P, OoxmlPackage as Q, ReviewModelInput as R, StyleDefinitions as S, Table as T, OoxmlNodeId as U, OoxmlGenericElementNode as V, TreeDocOp as W, OoxmlProperty as X, OoxmlPackageRejection as Y, OoxmlElement as Z, OoxmlContentControlNode as _, ReviewItem as a, DrawingProjection as a0, OoxmlPackageLimits as a1, RevisionAuthorEntry as a2, RevisionAuthorResult as a3, RevisionAuthorSkipReason as a4, RevisionBatchEntry as a5, RevisionBatchResult as a6, RevisionBatchSkipReason as a7, TreeOpRejection as a8, AutomationTableMutation as a9, PageMargins as aA, ParagraphDisagreements as aB, Point as aC, Run as aD, TableCell as aE, TableRow as aF, TreeDocColorValue as aG, TableBorderStyle as aJ, DrawingAccessibility as aK, DrawingImageEffects as aL, DrawingTransform as aM, VectorShapeProjection as aN, OoxmlDrawingNode as aO, OoxmlInvariantResult as aP, OoxmlInvariantIssue as aQ, OoxmlFldCharNode as aR, OoxmlFldSimpleNode as aS, OoxmlInstrTextNode as aT, TreeOpResult as aU, RelationshipRecord as aV, OoxmlHardBreakNode as aW, OoxmlAttribute as aX, CommentThreadState as aY, RevisionAttributionInput as aa, OoxmlParagraphNode as ab, OoxmlNoteNode as ac, OoxmlContinuationSeparatorNode as ad, OoxmlEndnotesNode as ae, OoxmlFootnotesNode as af, OoxmlNoteRefNode as ag, OoxmlNoteReferenceNode as ah, OoxmlSeparatorNode as ai, DrawingTreeDocOp as aj, ImpactClass as ak, SourceCrop as al, DrawingKind as am, ImageWrapTarget as an, DrawingPositionInput as ao, DrawingLocks as ap, ParagraphFormatCommand as aq, Watermark as ar, Rect as as, SelectionPin as at, Unsubscribe as au, DocxDocumentJSON as av, DrawingHorizontalReferenceFrame as aw, DrawingVerticalReferenceFrame as ax, FontDefinition as ay, NumberingRef as az, ReviewRevisionItem as b, OoxmlPackageResult as b$, CommentAnchor as b1, CommentPosition as b2, CommitTextFormFieldOp as b3, ContentControlCheckbox as b4, ContentControlCheckboxState as b5, ContentControlDataBinding as b6, ContentControlDateFormat as b7, ContentControlEntry as b8, ContentControlKind as b9, OoxmlBodyNode as bA, OoxmlBookmarkEndNode as bB, OoxmlBookmarkStartNode as bC, OoxmlContentControlCalendarNode as bD, OoxmlContentControlCheckboxNode as bE, OoxmlContentControlCheckedNode as bF, OoxmlContentControlCheckedStateNode as bG, OoxmlContentControlComboBoxNode as bH, OoxmlContentControlDataBindingNode as bI, OoxmlContentControlDateFormatNode as bJ, OoxmlContentControlDateNode as bK, OoxmlContentControlDropDownListNode as bL, OoxmlContentControlEndPropertiesNode as bM, OoxmlContentControlLidNode as bN, OoxmlContentControlListItemNode as bO, OoxmlContentControlPropertiesNode as bP, OoxmlContentControlStoreMappedDataAsNode as bQ, OoxmlContentControlTextNode as bR, OoxmlContentControlUncheckedStateNode as bS, OoxmlDocumentNode as bT, OoxmlExternalTarget as bU, OoxmlGenericExtensionAttribute as bV, OoxmlHyperlinkNode as bW, OoxmlInvariantIssueCode as bX, OoxmlKnownNodeAttribute as bY, OoxmlNamespaceBinding as bZ, OoxmlNodeIdentityRules as b_, ContentControlLevel as ba, ContentControlListItem as bb, ContentControlLock as bc, ContentControlProperties as bd, ContentTypeError as be, ContentTypeIndex as bf, ContentTypeRecords as bg, DefaultRecord as bj, DeleteTextOp as bk, HyperlinkKind as bm, HyperlinkTarget as bn, ImageRelationshipResolution as bp, IndexResult as bq, InsertBuildingBlockOp as br, InsertTextOp as bs, LegacyCheckboxFieldRange as bt, NameRejection as bw, NameResult as bx, ReviewCommentItem as c, OoxmlParagraphPropertiesNode as c0, OoxmlPartMetadata as c1, OoxmlReadRejection as c2, OoxmlReadResult as c3, OoxmlRunNode as c4, OoxmlRunPropertiesNode as c5, OoxmlTabNode as c6, OoxmlTextElementNode as c7, OoxmlTextNode as c8, OoxmlWmlValAttribute as c9, ZipLimits as cA, ZipReadResult as cB, ZipRejection as cC, OoxmlXmlSpaceAttribute as ca, OverrideRecord as cb, RelationshipError as cc, RelationshipSetResult as cd, RelationshipTargetResolver as ce, ResolveResult as cf, ResolvedRelationship as cg, SetLegacyCheckboxOp as ch, SetLegacyDropdownOp as ci, SetTextFormFieldDefaultOp as cj, TabStopWrite as cl, TargetMode as cm, TextFormFieldOptions as cn, TextFormFieldRange as co, TextFormFieldType as cp, TreeDocOpKind as cq, TreeOpEffect as cr, XmlLimits as cw, XmlNode as cx, XmlRejection as cy, XmlResult as cz, ReviewCustomItem as d, VectorShapeComponent as dB, ReviewPosition as e, ReviewRange as f, ReviewRevisionKind as g, RevisionAddress as h, ContentControlType as i, DocTarget as j, RunFormatting as k, Extent as l, ContainerRef as m, ContentControlFilter as n, DocRange as o, Revision as p, DocComment as q, ColorValue as r, ContentControl as s, DocAnchor as t, DocAnchorRange as u, DocLocation as v, DocumentBody as w, ExecErrorCode as x, IndentFormatting as y, ParagraphFlags as z };