@stll/docx-core 0.43.0 → 0.44.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.
@@ -1,4 +1,4 @@
1
- import { n as PreservedChild, r as PreservedMarkup, t as PreservedAttribute } from "./preservedMarkup-9L4lbGnE.js";
1
+ import { a as DeepReadonly, n as PreservedChild, o as RecordField, r as PreservedMarkup, s as WritableRecord, t as PreservedAttribute } from "./preservedMarkup-BWpGhchw.js";
2
2
  /**
3
3
  * GENERATED FILE — do not edit.
4
4
  *
@@ -26,7 +26,7 @@ type BorderStyle = (typeof BORDER_STYLES)[number];
26
26
  * parser reports it through `ParseContext` so the normalisation is visible,
27
27
  * and the serializer writes `raw` back unchanged.
28
28
  */
29
- type UnrecognisedBorderStyle = {
29
+ type UnrecognisedBorderStyle = WritableRecord & {
30
30
  readonly kind: "unrecognised";
31
31
  readonly raw: string;
32
32
  };
@@ -39,9 +39,9 @@ declare const borderStyleFrom: (value: string) => BorderStyleValue;
39
39
  /** The token to write back, whether or not the schema declares it. */
40
40
  declare const borderStyleToken: (style: BorderStyleValue) => string;
41
41
  /** `none`: the author cancelled a border inherited from the container. */
42
- declare const isBorderNone: (style: BorderStyleValue | undefined) => boolean;
42
+ declare const isBorderNone: (style: DeepReadonly<BorderStyleValue> | undefined) => boolean;
43
43
  /** `nil`: the author stated no border. */
44
- declare const isBorderNil: (style: BorderStyleValue | undefined) => boolean;
44
+ declare const isBorderNil: (style: DeepReadonly<BorderStyleValue> | undefined) => boolean;
45
45
  /**
46
46
  * Whether the edge paints nothing, by either reserved member.
47
47
  *
@@ -50,7 +50,7 @@ declare const isBorderNil: (style: BorderStyleValue | undefined) => boolean;
50
50
  * draw. Which one was written still matters on the way back out, which is why
51
51
  * the value keeps it.
52
52
  */
53
- declare const statesNoBorder: (style: BorderStyleValue | undefined) => boolean;
53
+ declare const statesNoBorder: (style: DeepReadonly<BorderStyleValue> | undefined) => boolean;
54
54
  /**
55
55
  * GENERATED FILE — do not edit.
56
56
  *
@@ -133,7 +133,7 @@ declare const THEME_COLOR_BY_SCHEME_COLOR_VALUE: {
133
133
  * treatment `w:val` on `CT_Border` already gets for a style outside
134
134
  * `ST_Border`.
135
135
  */
136
- type UnrecognisedThemeColor = {
136
+ type UnrecognisedThemeColor = WritableRecord & {
137
137
  readonly kind: "unrecognised";
138
138
  readonly raw: string;
139
139
  };
@@ -151,18 +151,18 @@ declare const readThemeColor: (raw: string | null | undefined) => ThemeColorValu
151
151
  /** The token to write back, whether or not the schema enumerates it. */
152
152
  declare const themeColorToken: (value: ThemeColorValue) => string;
153
153
  /** The schema token, or `undefined` for one the model only carries verbatim. */
154
- declare const knownThemeColor: (value: ThemeColorValue) => ThemeColor | undefined;
154
+ declare const knownThemeColor: (value: DeepReadonly<ThemeColorValue>) => ThemeColor | undefined;
155
155
  /**
156
156
  * The theme slot a reference paints with, or `undefined` when it names none.
157
157
  *
158
158
  * `undefined` covers both `none`, which cancels an inherited theme colour, and
159
159
  * a token the schema does not enumerate.
160
160
  */
161
- declare const themeColorSlot: (value: ThemeColorValue) => SchemeColorSlot | undefined;
161
+ declare const themeColorSlot: (value: DeepReadonly<ThemeColorValue>) => SchemeColorSlot | undefined;
162
162
  /**
163
163
  * Color value - can be direct RGB, theme reference, or auto
164
164
  */
165
- type ColorValue = {
165
+ type ColorValue = WritableRecord & {
166
166
  /** RGB hex value without # (e.g., "FF0000") */
167
167
  rgb?: string;
168
168
  /**
@@ -180,7 +180,7 @@ type ColorValue = {
180
180
  /**
181
181
  * Border specification for any border (paragraph, table, page)
182
182
  */
183
- type BorderSpec = {
183
+ type BorderSpec = WritableRecord & {
184
184
  /**
185
185
  * `w:val`: an `ST_Border` member, or the raw token when the file wrote one
186
186
  * the schema does not declare. Ask `statesNoBorder`/`isBorderNone`/
@@ -223,7 +223,7 @@ type BorderSpec = {
223
223
  /**
224
224
  * Shading/background properties
225
225
  */
226
- type ShadingProperties = {
226
+ type ShadingProperties = WritableRecord & {
227
227
  /** Pattern fill color */
228
228
  color?: ColorValue;
229
229
  /** Background fill color */
@@ -442,11 +442,11 @@ declare const NO_PARAGRAPH_NUMBERING: {
442
442
  * bytes, so `ilvl` stays optional inside `reference`: collapsing it turns an
443
443
  * untouched save into a document that states something its source did not.
444
444
  */
445
- type ParagraphNumberingSlots = {
445
+ type ParagraphNumberingSlots = WritableRecord & {
446
446
  numId?: number;
447
447
  ilvl?: number;
448
448
  };
449
- type ParagraphNumberingReferenceOptions<NumId extends number, Level extends number | undefined> = {
449
+ type ParagraphNumberingReferenceOptions<NumId extends number, Level extends number | undefined> = WritableRecord & {
450
450
  numId: Exclude<NumId, typeof NO_NUMBERING_NUM_ID>;
451
451
  ilvl?: Level | undefined;
452
452
  };
@@ -516,7 +516,7 @@ type EmphasisMark = "none" | "dot" | "comma" | "circle" | "underDot";
516
516
  /**
517
517
  * Complete text formatting properties (w:rPr)
518
518
  */
519
- type TextFormatting = OwnFieldPresence<{
519
+ type TextFormatting = WritableRecord & OwnFieldPresence<{
520
520
  /** Bold (w:b) */
521
521
  bold?: boolean;
522
522
  /** Bold complex script (w:bCs) */
@@ -526,7 +526,7 @@ type TextFormatting = OwnFieldPresence<{
526
526
  /** Italic complex script (w:iCs) */
527
527
  italicCs?: boolean;
528
528
  /** Underline style and color (w:u) */
529
- underline?: {
529
+ underline?: WritableRecord & {
530
530
  style: UnderlineStyle;
531
531
  color?: ColorValue;
532
532
  };
@@ -555,7 +555,7 @@ type TextFormatting = OwnFieldPresence<{
555
555
  /** Font size complex script (w:szCs) */
556
556
  fontSizeCs?: number;
557
557
  /** Font family (w:rFonts) */
558
- fontFamily?: {
558
+ fontFamily?: WritableRecord & {
559
559
  ascii?: string;
560
560
  hAnsi?: string;
561
561
  eastAsia?: string;
@@ -569,7 +569,7 @@ type TextFormatting = OwnFieldPresence<{
569
569
  csTheme?: string;
570
570
  };
571
571
  /** Run language metadata (`w:lang`) used by spelling and line breaking. */
572
- language?: {
572
+ language?: WritableRecord & {
573
573
  val?: string;
574
574
  eastAsia?: string;
575
575
  bidi?: string;
@@ -624,7 +624,7 @@ type TabLeader = "none" | "dot" | "hyphen" | "underscore" | "heavy" | "middleDot
624
624
  /**
625
625
  * Tab stop definition
626
626
  */
627
- type TabStop = {
627
+ type TabStop = WritableRecord & {
628
628
  /** Position in twips from left margin */
629
629
  position: number;
630
630
  /** Alignment at tab stop */
@@ -641,11 +641,11 @@ type LineSpacingRule = "auto" | "exact" | "atLeast";
641
641
  /**
642
642
  * Complete paragraph formatting properties (w:pPr)
643
643
  */
644
- type SpacingExplicit = {
644
+ type SpacingExplicit = WritableRecord & {
645
645
  before?: boolean;
646
646
  after?: boolean;
647
647
  };
648
- type ParagraphFormatting = OwnFieldPresence<{
648
+ type ParagraphFormatting = WritableRecord & OwnFieldPresence<{
649
649
  /** Paragraph alignment (w:jc) */
650
650
  alignment?: ParagraphAlignment;
651
651
  /** Text direction (w:bidi) */
@@ -698,7 +698,7 @@ type ParagraphFormatting = OwnFieldPresence<{
698
698
  */
699
699
  indentPreservedAttributes?: PreservedAttribute[];
700
700
  /** Paragraph borders (w:pBdr) */
701
- borders?: {
701
+ borders?: WritableRecord & {
702
702
  top?: BorderSpec;
703
703
  bottom?: BorderSpec;
704
704
  left?: BorderSpec;
@@ -764,7 +764,7 @@ type ParagraphFormatting = OwnFieldPresence<{
764
764
  /** Paragraph style ID (w:pStyle) */
765
765
  styleId?: string;
766
766
  /** Text frame properties (w:framePr) */
767
- frame?: {
767
+ frame?: WritableRecord & {
768
768
  dropCap?: "none" | "drop" | "margin";
769
769
  lines?: number;
770
770
  width?: number;
@@ -818,7 +818,7 @@ type TableWidthType = "auto" | "dxa" | "nil" | "pct";
818
818
  /**
819
819
  * Table measurement (width or height)
820
820
  */
821
- type TableMeasurement = {
821
+ type TableMeasurement = WritableRecord & {
822
822
  /** Value in twips (for dxa) or fifths of a percent (for pct) */
823
823
  value: number;
824
824
  /** Measurement type */
@@ -827,7 +827,7 @@ type TableMeasurement = {
827
827
  /**
828
828
  * Table borders
829
829
  */
830
- type TableBorders = {
830
+ type TableBorders = WritableRecord & {
831
831
  top?: BorderSpec;
832
832
  bottom?: BorderSpec;
833
833
  left?: BorderSpec;
@@ -839,14 +839,14 @@ type TableBorders = {
839
839
  * Table cell borders, including w:tl2br (top-left to bottom-right) and
840
840
  * w:tr2bl (top-right to bottom-left).
841
841
  */
842
- type TableCellBorders = TableBorders & {
842
+ type TableCellBorders = TableBorders & WritableRecord & {
843
843
  topLeftToBottomRight?: BorderSpec;
844
844
  topRightToBottomLeft?: BorderSpec;
845
845
  };
846
846
  /**
847
847
  * Cell margins
848
848
  */
849
- type CellMargins = {
849
+ type CellMargins = WritableRecord & {
850
850
  top?: TableMeasurement;
851
851
  bottom?: TableMeasurement;
852
852
  left?: TableMeasurement;
@@ -864,7 +864,7 @@ type CellMargins = {
864
864
  *
865
865
  * Read one with `resolveTableLook`, never on its own.
866
866
  */
867
- type TableLook = {
867
+ type TableLook = WritableRecord & {
868
868
  /**
869
869
  * `w:val`, the legacy `ST_ShortHexNumber` bitmask, kept as the author spelled
870
870
  * it. Producers older than the attribute form write only this.
@@ -880,7 +880,7 @@ type TableLook = {
880
880
  /**
881
881
  * Floating table properties
882
882
  */
883
- type FloatingTableProperties = {
883
+ type FloatingTableProperties = WritableRecord & {
884
884
  /** Horizontal anchor */
885
885
  horzAnchor?: "margin" | "page" | "text";
886
886
  /** Vertical anchor */
@@ -910,7 +910,7 @@ type FloatingTableProperties = {
910
910
  * a column of width zero: `undefined` is what says the snapshot recorded a
911
911
  * column and no measure for it.
912
912
  */
913
- type TableGridChange = {
913
+ type TableGridChange = WritableRecord & {
914
914
  /** `@w:id`: a physical revision id, re-minted on every save. */
915
915
  id: number;
916
916
  /** One entry per `w:gridCol`, in source order. */
@@ -919,7 +919,7 @@ type TableGridChange = {
919
919
  /**
920
920
  * Table formatting properties (w:tblPr)
921
921
  */
922
- type TableFormatting = {
922
+ type TableFormatting = WritableRecord & {
923
923
  /** Table width */
924
924
  width?: TableMeasurement;
925
925
  /** Table placement (`w:tblPr/w:jc`) */
@@ -991,11 +991,11 @@ type TableFormatting = {
991
991
  sourceXml?: string;
992
992
  };
993
993
  /** Table properties a row may override in `w:tblPrEx`. */
994
- type TablePropertyExceptionFormatting = Pick<TableFormatting, "width" | "justification" | "cellSpacing" | "indent" | "borders" | "shading" | "layout" | "cellMargins" | "look" | "preserved" | "sourceXml">;
994
+ type TablePropertyExceptionFormatting = WritableRecord & Pick<TableFormatting, "width" | "justification" | "cellSpacing" | "indent" | "borders" | "shading" | "layout" | "cellMargins" | "look" | "preserved" | "sourceXml">;
995
995
  /**
996
996
  * Table row formatting properties (w:trPr)
997
997
  */
998
- type TableRowFormatting = {
998
+ type TableRowFormatting = WritableRecord & {
999
999
  /** Number of table grid columns omitted before the first cell */
1000
1000
  gridBefore?: number;
1001
1001
  /** Preferred width of the omitted leading grid columns */
@@ -1039,7 +1039,7 @@ type TableRowFormatting = {
1039
1039
  /**
1040
1040
  * Conditional format style
1041
1041
  */
1042
- type ConditionalFormatStyle = {
1042
+ type ConditionalFormatStyle = WritableRecord & {
1043
1043
  /** First row */
1044
1044
  firstRow?: boolean;
1045
1045
  /** Last row */
@@ -1068,7 +1068,7 @@ type ConditionalFormatStyle = {
1068
1068
  /**
1069
1069
  * Table cell formatting properties (w:tcPr)
1070
1070
  */
1071
- type TableCellFormatting = {
1071
+ type TableCellFormatting = WritableRecord & {
1072
1072
  /** Cell width */
1073
1073
  width?: TableMeasurement;
1074
1074
  /** Cell borders */
@@ -1133,7 +1133,7 @@ type LevelSuffix = "tab" | "space" | "nothing";
1133
1133
  * an absent flag and an explicit `w:legacy="0"` are different states and the
1134
1134
  * element is recorded by presence.
1135
1135
  */
1136
- type LevelLegacy = {
1136
+ type LevelLegacy = WritableRecord & {
1137
1137
  legacy?: boolean;
1138
1138
  legacySpace?: number;
1139
1139
  legacyIndent?: number;
@@ -1141,7 +1141,7 @@ type LevelLegacy = {
1141
1141
  /**
1142
1142
  * List level definition
1143
1143
  */
1144
- type ListLevel = {
1144
+ type ListLevel = WritableRecord & {
1145
1145
  /** Level index (0-8) */
1146
1146
  ilvl: number;
1147
1147
  /** `w:tplc`: the template code Word keys the level's gallery entry by. */
@@ -1187,7 +1187,7 @@ type ListLevel = {
1187
1187
  /**
1188
1188
  * Abstract numbering definition (w:abstractNum)
1189
1189
  */
1190
- type AbstractNumbering = {
1190
+ type AbstractNumbering = WritableRecord & {
1191
1191
  /** Abstract numbering ID */
1192
1192
  abstractNumId: number;
1193
1193
  /**
@@ -1216,7 +1216,7 @@ type AbstractNumbering = {
1216
1216
  preservedAttributes?: PreservedAttribute[];
1217
1217
  };
1218
1218
  /** One `w:lvlOverride`: what a concrete instance changes about one level. */
1219
- type LevelOverride = {
1219
+ type LevelOverride = WritableRecord & {
1220
1220
  ilvl: number;
1221
1221
  startOverride?: number;
1222
1222
  lvl?: ListLevel;
@@ -1228,7 +1228,7 @@ type LevelOverride = {
1228
1228
  /**
1229
1229
  * Numbering instance (w:num)
1230
1230
  */
1231
- type NumberingInstance = {
1231
+ type NumberingInstance = WritableRecord & {
1232
1232
  /** Numbering ID (referenced by paragraphs) */
1233
1233
  numId: number;
1234
1234
  /** Reference to abstract numbering */
@@ -1241,11 +1241,11 @@ type NumberingInstance = {
1241
1241
  preservedAttributes?: PreservedAttribute[];
1242
1242
  };
1243
1243
  /** Typography from numbering-level `w:rPr` that applies to the marker glyphs. */
1244
- type ListMarkerFormatting = Pick<TextFormatting, "fontFamily" | "fontSize" | "fontSizeCs" | "bold" | "boldCs" | "italic" | "italicCs" | "rtl" | "cs" | "color">;
1244
+ type ListMarkerFormatting = WritableRecord & Pick<TextFormatting, "fontFamily" | "fontSize" | "fontSizeCs" | "bold" | "boldCs" | "italic" | "italicCs" | "rtl" | "cs" | "color">;
1245
1245
  /**
1246
1246
  * Computed list rendering info
1247
1247
  */
1248
- type ListRendering = {
1248
+ type ListRendering = WritableRecord & {
1249
1249
  /** Computed marker text (e.g., "1.", "a)", "•") */
1250
1250
  marker: string;
1251
1251
  /** Source `w:lvlText` pattern retained so newly inserted siblings can be numbered. */
@@ -1316,7 +1316,7 @@ type ListRendering = {
1316
1316
  /**
1317
1317
  * Complete numbering definitions
1318
1318
  */
1319
- type NumberingDefinitions = {
1319
+ type NumberingDefinitions = WritableRecord & {
1320
1320
  /** Abstract numbering definitions */
1321
1321
  abstractNums: AbstractNumbering[];
1322
1322
  /** Numbering instances */
@@ -1325,6 +1325,12 @@ type NumberingDefinitions = {
1325
1325
  preserved?: PreservedMarkup;
1326
1326
  /** Attributes of `w:numbering` the model has no field for. */
1327
1327
  preservedAttributes?: PreservedAttribute[];
1328
+ /**
1329
+ * `w:numId` values a paragraph or style names that resolve to no list, in
1330
+ * ascending order. The reader shows those paragraphs unnumbered, while a
1331
+ * paragraph saved as read still names the id: a new list never takes one.
1332
+ */
1333
+ danglingNumIds?: number[];
1328
1334
  };
1329
1335
  /**
1330
1336
  * GENERATED FILE — do not edit.
@@ -1351,7 +1357,7 @@ type PresetLineDashVal = (typeof PRESET_LINE_DASH_VALS)[number];
1351
1357
  * it through `ParseContext` so the normalisation is visible, and the
1352
1358
  * serializer writes `raw` back unchanged.
1353
1359
  */
1354
- type UnrecognisedPresetLineDash = {
1360
+ type UnrecognisedPresetLineDash = WritableRecord & {
1355
1361
  readonly kind: "unrecognised";
1356
1362
  readonly raw: string;
1357
1363
  };
@@ -1460,7 +1466,7 @@ declare const mintRelationshipId: (ordinal: number) => RelationshipId;
1460
1466
  /**
1461
1467
  * Plain text content
1462
1468
  */
1463
- type TextContent = {
1469
+ type TextContent = WritableRecord & {
1464
1470
  type: "text";
1465
1471
  /** The text string */
1466
1472
  text: string;
@@ -1468,12 +1474,12 @@ type TextContent = {
1468
1474
  /**
1469
1475
  * Tab character
1470
1476
  */
1471
- type PositionalTab = {
1477
+ type PositionalTab = WritableRecord & {
1472
1478
  relativeTo?: "margin" | "indent";
1473
1479
  alignment?: "left" | "center" | "right";
1474
1480
  leader?: "none" | "dot" | "hyphen" | "underscore" | "middleDot";
1475
1481
  };
1476
- type TabContent = {
1482
+ type TabContent = WritableRecord & {
1477
1483
  type: "tab";
1478
1484
  /** Word positional-tab properties (`w:ptab`); absent for a regular `w:tab`. */
1479
1485
  positional?: PositionalTab;
@@ -1481,7 +1487,7 @@ type TabContent = {
1481
1487
  /**
1482
1488
  * Line break
1483
1489
  */
1484
- type BreakContent = {
1490
+ type BreakContent = WritableRecord & ({
1485
1491
  type: "break";
1486
1492
  /** The distinct carriage-return element, which cannot carry break attributes. */
1487
1493
  sourceElement: "cr";
@@ -1495,11 +1501,11 @@ type BreakContent = {
1495
1501
  breakType?: "page" | "column" | "textWrapping";
1496
1502
  /** Clear type for text wrapping break */
1497
1503
  clear?: "none" | "left" | "right" | "all";
1498
- };
1504
+ });
1499
1505
  /**
1500
1506
  * Symbol character (special font character)
1501
1507
  */
1502
- type SymbolContent = {
1508
+ type SymbolContent = WritableRecord & {
1503
1509
  type: "symbol";
1504
1510
  /** Font name */
1505
1511
  font: string;
@@ -1511,7 +1517,7 @@ declare const isOoxmlSymbolCharacter: (value: string) => boolean;
1511
1517
  /**
1512
1518
  * Footnote or endnote reference
1513
1519
  */
1514
- type NoteReferenceContent = {
1520
+ type NoteReferenceContent = WritableRecord & {
1515
1521
  type: "footnoteRef" | "endnoteRef";
1516
1522
  /** Note ID */
1517
1523
  id: number;
@@ -1519,14 +1525,14 @@ type NoteReferenceContent = {
1519
1525
  customMarkFollows?: boolean;
1520
1526
  };
1521
1527
  /** The authored automatic reference mark inside a note body (w:footnoteRef/w:endnoteRef). */
1522
- type NoteMarkerContent = {
1528
+ type NoteMarkerContent = WritableRecord & {
1523
1529
  type: "noteMarker";
1524
1530
  kind: "footnote" | "endnote";
1525
1531
  };
1526
1532
  /**
1527
1533
  * Field character (begin/separate/end)
1528
1534
  */
1529
- type FieldCharContent = {
1535
+ type FieldCharContent = WritableRecord & {
1530
1536
  type: "fieldChar";
1531
1537
  /** Field character type */
1532
1538
  charType: "begin" | "separate" | "end";
@@ -1546,7 +1552,7 @@ type FieldCharContent = {
1546
1552
  /**
1547
1553
  * Field instruction text
1548
1554
  */
1549
- type InstrTextContent = {
1555
+ type InstrTextContent = WritableRecord & {
1550
1556
  type: "instrText";
1551
1557
  /** Field instruction */
1552
1558
  text: string;
@@ -1554,17 +1560,17 @@ type InstrTextContent = {
1554
1560
  /**
1555
1561
  * Soft hyphen
1556
1562
  */
1557
- type SoftHyphenContent = {
1563
+ type SoftHyphenContent = WritableRecord & {
1558
1564
  type: "softHyphen";
1559
1565
  };
1560
1566
  /**
1561
1567
  * Non-breaking hyphen
1562
1568
  */
1563
- type NoBreakHyphenContent = {
1569
+ type NoBreakHyphenContent = WritableRecord & {
1564
1570
  type: "noBreakHyphen";
1565
1571
  };
1566
1572
  /** Cached pagination boundary emitted by a previous layout pass. */
1567
- type RenderedPageBreakContent = {
1573
+ type RenderedPageBreakContent = WritableRecord & {
1568
1574
  type: "renderedPageBreak";
1569
1575
  };
1570
1576
  /**
@@ -1577,7 +1583,7 @@ type RenderedPageBreakContent = {
1577
1583
  * save 2 differs from save 1. Holding the markup in the model is what makes
1578
1584
  * parse∘serialize a fixed point for the whole class at once.
1579
1585
  */
1580
- type PreservedXmlContent = {
1586
+ type PreservedXmlContent = WritableRecord & {
1581
1587
  type: "preservedXml";
1582
1588
  /** Replayable markup for one run child, as `captureVerbatimXml` wrote it. */
1583
1589
  xml: string;
@@ -1597,7 +1603,7 @@ declare const DRAWING_RAW_XML_MODES: {
1597
1603
  /** Raw XML handling mode for a drawing. */
1598
1604
  type DrawingRawXmlMode = (typeof DRAWING_RAW_XML_MODES)[keyof typeof DRAWING_RAW_XML_MODES];
1599
1605
  /** Drawing/image reference with replayable XML required for preservation-only content. */
1600
- type DrawingContent = {
1606
+ type DrawingContent = WritableRecord & ({
1601
1607
  type: "drawing";
1602
1608
  /** Image data */
1603
1609
  image: Image;
@@ -1623,7 +1629,7 @@ type DrawingContent = {
1623
1629
  /** Required: a stale fingerprint is what marks the preview unsaveable rather than regenerable. */
1624
1630
  rawImageFingerprint: string;
1625
1631
  rawXmlMode: typeof DRAWING_RAW_XML_MODES.PREVIEW_ONLY;
1626
- };
1632
+ });
1627
1633
  /**
1628
1634
  * The `mc:AlternateContent` element a shape was read from.
1629
1635
  *
@@ -1633,7 +1639,7 @@ type DrawingContent = {
1633
1639
  * the shape is unedited. A text-only edit updates both branches; other edits
1634
1640
  * regenerate the Choice and drop the Fallback rather than replaying stale geometry.
1635
1641
  */
1636
- type ShapeAlternateContent = {
1642
+ type ShapeAlternateContent = WritableRecord & {
1637
1643
  /** The whole element, every branch included, as `captureVerbatimXml` wrote it. */
1638
1644
  verbatimXml: string;
1639
1645
  /** Fingerprint of the modeled shape when the element was captured. */
@@ -1643,7 +1649,7 @@ type ShapeAlternateContent = {
1643
1649
  /**
1644
1650
  * Shape reference
1645
1651
  */
1646
- type ShapeContent = {
1652
+ type ShapeContent = WritableRecord & {
1647
1653
  type: "shape";
1648
1654
  /** Shape data */
1649
1655
  shape: Shape;
@@ -1657,7 +1663,7 @@ type RunContent = TextContent | TabContent | BreakContent | SymbolContent | Note
1657
1663
  /**
1658
1664
  * A run is a contiguous region of text with the same formatting
1659
1665
  */
1660
- type Run = {
1666
+ type Run = WritableRecord & {
1661
1667
  type: "run";
1662
1668
  /** Text formatting properties */
1663
1669
  formatting?: TextFormatting;
@@ -1678,7 +1684,7 @@ type Run = {
1678
1684
  /**
1679
1685
  * Hyperlink (w:hyperlink)
1680
1686
  */
1681
- type Hyperlink = {
1687
+ type Hyperlink = WritableRecord & {
1682
1688
  type: "hyperlink";
1683
1689
  /** Relationship ID for external link */
1684
1690
  rId?: string;
@@ -1729,19 +1735,41 @@ type DisplacedByCustomXml = "next" | "prev";
1729
1735
  * is the element's attribute set rather than a hand-picked subset of it. Every
1730
1736
  * marker that lost attributes on save lost them by declaring its own fields.
1731
1737
  */
1732
- type MarkupRangeMarker = {
1738
+ type MarkupRangeMarker = WritableRecord & {
1733
1739
  /** Pairs a start with its end (`w:id`). */
1734
1740
  id: number;
1735
1741
  displacedByCustomXml?: DisplacedByCustomXml;
1742
+ /**
1743
+ * Review state, never written: a resolution kept this marker from removed
1744
+ * content and it stands between pieces of a record that content cut,
1745
+ * waiting for them to meet.
1746
+ */
1747
+ keptCut?: KeptCut;
1748
+ };
1749
+ /**
1750
+ * The cut a kept range marker stands in: the date of the revision it was kept
1751
+ * from, and, where only one side of it is a piece of that cut (`piece`), that
1752
+ * side: its record, or the pending change beside the marker once resolved,
1753
+ * takes the marker with no alike record across from it.
1754
+ */
1755
+ type KeptCut = WritableRecord & {
1756
+ keptFrom: string;
1757
+ piece?: KeptCutPiece;
1736
1758
  };
1759
+ /**
1760
+ * The side of a kept marker whose record, or the pending change that took
1761
+ * its seam, is a piece of its cut; `both` where pending changes either side
1762
+ * took it.
1763
+ */
1764
+ type KeptCutPiece = "before" | "after" | "both";
1737
1765
  /** Added-revision ancestors that own a copied bookmark or move boundary. */
1738
1766
  type CopyOriginAncestorOrdinals = readonly [number, ...number[]];
1739
- type CopyOriginMarker = {
1767
+ type CopyOriginMarker = WritableRecord & {
1740
1768
  /** Nearest added revision ancestor is ordinal 0. */
1741
1769
  copyOriginAncestors?: CopyOriginAncestorOrdinals;
1742
1770
  };
1743
1771
  /** `CT_Bookmark`: a named range, optionally scoped to table columns. */
1744
- type BookmarkRangeMarker = MarkupRangeMarker & {
1772
+ type BookmarkRangeMarker = MarkupRangeMarker & WritableRecord & {
1745
1773
  name: string;
1746
1774
  /** Column index for table bookmarks */
1747
1775
  colFirst?: number;
@@ -1756,20 +1784,20 @@ type BookmarkRangeMarker = MarkupRangeMarker & {
1756
1784
  * but a date folio does not have is not a date it may invent, so a document
1757
1785
  * that arrived without one keeps arriving without one.
1758
1786
  */
1759
- type MoveBookmarkMarker = BookmarkRangeMarker & {
1787
+ type MoveBookmarkMarker = BookmarkRangeMarker & WritableRecord & {
1760
1788
  author: string;
1761
1789
  date?: string;
1762
1790
  };
1763
1791
  /**
1764
1792
  * Bookmark start marker (w:bookmarkStart)
1765
1793
  */
1766
- type BookmarkStart = {
1794
+ type BookmarkStart = WritableRecord & {
1767
1795
  type: "bookmarkStart";
1768
1796
  } & BookmarkRangeMarker & CopyOriginMarker;
1769
1797
  /**
1770
1798
  * Bookmark end marker (w:bookmarkEnd)
1771
1799
  */
1772
- type BookmarkEnd = {
1800
+ type BookmarkEnd = WritableRecord & {
1773
1801
  type: "bookmarkEnd";
1774
1802
  } & MarkupRangeMarker & CopyOriginMarker;
1775
1803
  /**
@@ -1788,7 +1816,7 @@ type BookmarkEnd = {
1788
1816
  * which is the same honest cost {@link TableRow.preserved} carries and the
1789
1817
  * reason {@link BlockContent} admits the marker as a member wherever it can.
1790
1818
  */
1791
- type PositionedBookmarkMarker = {
1819
+ type PositionedBookmarkMarker = WritableRecord & {
1792
1820
  /** Modelled siblings (rows for a table, cells for a row) that preceded it. */
1793
1821
  index: number;
1794
1822
  marker: BookmarkStart | BookmarkEnd;
@@ -1805,7 +1833,7 @@ type FieldType = "PAGE" | "NUMPAGES" | "NUMWORDS" | "NUMCHARS" | "DATE" | "TIME"
1805
1833
  /**
1806
1834
  * Simple field (w:fldSimple)
1807
1835
  */
1808
- type SimpleField = {
1836
+ type SimpleField = WritableRecord & {
1809
1837
  type: "simpleField";
1810
1838
  /** Field instruction (e.g., "PAGE \\* MERGEFORMAT") */
1811
1839
  instruction: string;
@@ -1827,7 +1855,7 @@ type SimpleField = {
1827
1855
  /**
1828
1856
  * Complex field (w:fldChar begin/separate/end with w:instrText)
1829
1857
  */
1830
- type ComplexField = {
1858
+ type ComplexField = WritableRecord & {
1831
1859
  type: "complexField";
1832
1860
  /** Field instruction */
1833
1861
  instruction: string;
@@ -1863,7 +1891,7 @@ type Field = SimpleField | ComplexField;
1863
1891
  /**
1864
1892
  * Image size specification
1865
1893
  */
1866
- type ImageSize = {
1894
+ type ImageSize = WritableRecord & {
1867
1895
  /** Width in EMUs (English Metric Units) */
1868
1896
  width: number;
1869
1897
  /** Height in EMUs */
@@ -1873,7 +1901,7 @@ type ImageSize = {
1873
1901
  * The four wrap insets, in EMU. Tri-state per key: absent is the element having
1874
1902
  * stated none, which OOXML reads as zero only once no other carrier states one.
1875
1903
  */
1876
- type WrapDistances = {
1904
+ type WrapDistances = WritableRecord & {
1877
1905
  distT?: number;
1878
1906
  distB?: number;
1879
1907
  distL?: number;
@@ -1888,7 +1916,7 @@ type WrapDistances = {
1888
1916
  * writes each inset back on the element that stated it instead of collecting
1889
1917
  * them all onto the drawing.
1890
1918
  */
1891
- type WrapDistanceSlots = {
1919
+ type WrapDistanceSlots = WritableRecord & {
1892
1920
  /** `wp:inline`, or `wp:anchor` for a floating drawing. */
1893
1921
  drawing?: WrapDistances;
1894
1922
  /** The `wp:wrap*` child of an anchor. */
@@ -1904,14 +1932,14 @@ type WrapDistanceSlots = {
1904
1932
  * records rather than one, so a rebuild writes each back on the element that
1905
1933
  * stated it instead of collecting both onto the drawing.
1906
1934
  */
1907
- type EffectExtentSlots = {
1935
+ type EffectExtentSlots = WritableRecord & {
1908
1936
  /** `wp:inline`, or `wp:anchor` for a floating drawing. */
1909
1937
  drawing?: ImagePadding;
1910
1938
  /** The `wp:wrapSquare` or `wp:wrapTopAndBottom` child of an anchor. */
1911
1939
  wrapChild?: ImagePadding;
1912
1940
  };
1913
1941
  /** A point on a wrap polygon. */
1914
- type WrapPolygonPoint = {
1942
+ type WrapPolygonPoint = WritableRecord & {
1915
1943
  x: number;
1916
1944
  y: number;
1917
1945
  };
@@ -1921,7 +1949,7 @@ type WrapPolygonPoint = {
1921
1949
  * The coordinates are the type's own relative space (a 21600-unit box over the
1922
1950
  * drawing's extent), not EMU, and are kept exactly as authored.
1923
1951
  */
1924
- type ImageWrapPolygon = {
1952
+ type ImageWrapPolygon = WritableRecord & {
1925
1953
  /** `@edited`: absent states nothing, `false` is an explicit "generated". */
1926
1954
  edited?: boolean;
1927
1955
  /** `wp:start`, which `CT_WrapPath` requires. */
@@ -1932,7 +1960,7 @@ type ImageWrapPolygon = {
1932
1960
  /**
1933
1961
  * Image wrap type for floating images
1934
1962
  */
1935
- type ImageWrap = {
1963
+ type ImageWrap = WritableRecord & {
1936
1964
  type: "inline" | "square" | "tight" | "through" | "topAndBottom" | "behind" | "inFront";
1937
1965
  /** Wrap text direction */
1938
1966
  wrapText?: "bothSides" | "left" | "right" | "largest";
@@ -1953,7 +1981,7 @@ type ImageWrap = {
1953
1981
  * `wp:docPr`, `pic:cNvPr` and `wps:cNvPr` each have their own set, and they are
1954
1982
  * the object's accessible name and alt text rather than folio's to mint.
1955
1983
  */
1956
- type NonVisualDrawingNames = {
1984
+ type NonVisualDrawingNames = WritableRecord & {
1957
1985
  /** `@name`, schema-required, so `""` means the object was never named. */
1958
1986
  name?: string;
1959
1987
  /** `@descr`: alt text, accessibility content. */
@@ -1973,11 +2001,11 @@ type NonVisualDrawingNames = {
1973
2001
  * rebuild then writes OOXML's own default for the five `CT_Anchor` requires
1974
2002
  * rather than a value folio chose.
1975
2003
  */
1976
- type DrawingAnchor = {
2004
+ type DrawingAnchor = WritableRecord & {
1977
2005
  /** `@simplePos`: position from `wp:simplePos` rather than `positionH`/`positionV`. */
1978
2006
  useSimplePosition?: boolean;
1979
2007
  /** `wp:simplePos` itself, in EMUs. */
1980
- simplePosition?: {
2008
+ simplePosition?: WritableRecord & {
1981
2009
  x: number;
1982
2010
  y: number;
1983
2011
  };
@@ -1995,15 +2023,15 @@ type DrawingAnchor = {
1995
2023
  /**
1996
2024
  * Position for floating images
1997
2025
  */
1998
- type ImagePosition = {
2026
+ type ImagePosition = WritableRecord & {
1999
2027
  /** Horizontal positioning */
2000
- horizontal: {
2028
+ horizontal: WritableRecord & {
2001
2029
  relativeTo: "character" | "column" | "insideMargin" | "leftMargin" | "margin" | "outsideMargin" | "page" | "rightMargin";
2002
2030
  alignment?: "left" | "right" | "center" | "inside" | "outside";
2003
2031
  posOffset?: number;
2004
2032
  };
2005
2033
  /** Vertical positioning */
2006
- vertical: {
2034
+ vertical: WritableRecord & {
2007
2035
  relativeTo: "insideMargin" | "line" | "margin" | "outsideMargin" | "page" | "paragraph" | "topMargin" | "bottomMargin";
2008
2036
  alignment?: "top" | "bottom" | "center" | "inside" | "outside";
2009
2037
  posOffset?: number;
@@ -2012,7 +2040,7 @@ type ImagePosition = {
2012
2040
  /**
2013
2041
  * Image transformation
2014
2042
  */
2015
- type ImageTransform = {
2043
+ type ImageTransform = WritableRecord & {
2016
2044
  /** Rotation in degrees */
2017
2045
  rotation?: number;
2018
2046
  /** Flip horizontal */
@@ -2023,7 +2051,7 @@ type ImageTransform = {
2023
2051
  /**
2024
2052
  * Image padding/margins
2025
2053
  */
2026
- type ImagePadding = {
2054
+ type ImagePadding = WritableRecord & {
2027
2055
  top?: number;
2028
2056
  bottom?: number;
2029
2057
  left?: number;
@@ -2036,7 +2064,7 @@ type ImagePadding = {
2036
2064
  *
2037
2065
  * eigenpal #424 (image-crop subset).
2038
2066
  */
2039
- type ImageCrop = {
2067
+ type ImageCrop = WritableRecord & {
2040
2068
  left?: number;
2041
2069
  top?: number;
2042
2070
  right?: number;
@@ -2047,7 +2075,7 @@ type ImageCrop = {
2047
2075
  * attribute order. A field is undefined when the authored XML omits the
2048
2076
  * attribute, so a round-trip never materializes a lock the author never wrote.
2049
2077
  */
2050
- type ImageFrameLocks = {
2078
+ type ImageFrameLocks = WritableRecord & {
2051
2079
  noGrp?: boolean;
2052
2080
  noDrilldown?: boolean;
2053
2081
  noSelect?: boolean;
@@ -2059,14 +2087,14 @@ type ImageFrameLocks = {
2059
2087
  * A `wp:docPr` link as authored. `rId` is the target it named, so comparing it
2060
2088
  * with the model's tells a retargeted link from an untouched one.
2061
2089
  */
2062
- type ImageDocPrLink = {
2090
+ type ImageDocPrLink = WritableRecord & {
2063
2091
  xml: string;
2064
2092
  rId?: string;
2065
2093
  };
2066
2094
  /**
2067
2095
  * Embedded image (w:drawing)
2068
2096
  */
2069
- type Image = {
2097
+ type Image = WritableRecord & {
2070
2098
  type: "image";
2071
2099
  /** Unique ID */
2072
2100
  id?: string;
@@ -2172,7 +2200,7 @@ type Image = {
2172
2200
  /** Image outline/border */
2173
2201
  outline?: ShapeOutline;
2174
2202
  /** Image effects */
2175
- effects?: {
2203
+ effects?: WritableRecord & {
2176
2204
  brightness?: number;
2177
2205
  contrast?: number;
2178
2206
  saturation?: number;
@@ -2183,14 +2211,14 @@ type Image = {
2183
2211
  */
2184
2212
  type ShapeType = "rect" | "roundRect" | "ellipse" | "triangle" | "rtTriangle" | "parallelogram" | "trapezoid" | "pentagon" | "hexagon" | "heptagon" | "octagon" | "decagon" | "dodecagon" | "star4" | "star5" | "star6" | "star7" | "star8" | "star10" | "star12" | "star16" | "star24" | "star32" | "line" | "straightConnector1" | "bentConnector2" | "bentConnector3" | "bentConnector4" | "bentConnector5" | "curvedConnector2" | "curvedConnector3" | "curvedConnector4" | "curvedConnector5" | "rightArrow" | "leftArrow" | "upArrow" | "downArrow" | "leftRightArrow" | "upDownArrow" | "quadArrow" | "leftRightUpArrow" | "bentArrow" | "uturnArrow" | "leftUpArrow" | "bentUpArrow" | "curvedRightArrow" | "curvedLeftArrow" | "curvedUpArrow" | "curvedDownArrow" | "stripedRightArrow" | "notchedRightArrow" | "homePlate" | "chevron" | "rightArrowCallout" | "downArrowCallout" | "leftArrowCallout" | "upArrowCallout" | "leftRightArrowCallout" | "quadArrowCallout" | "circularArrow" | "flowChartProcess" | "flowChartAlternateProcess" | "flowChartDecision" | "flowChartInputOutput" | "flowChartPredefinedProcess" | "flowChartInternalStorage" | "flowChartDocument" | "flowChartMultidocument" | "flowChartTerminator" | "flowChartPreparation" | "flowChartManualInput" | "flowChartManualOperation" | "flowChartConnector" | "flowChartOffpageConnector" | "flowChartPunchedCard" | "flowChartPunchedTape" | "flowChartSummingJunction" | "flowChartOr" | "flowChartCollate" | "flowChartSort" | "flowChartExtract" | "flowChartMerge" | "flowChartOnlineStorage" | "flowChartDelay" | "flowChartMagneticTape" | "flowChartMagneticDisk" | "flowChartMagneticDrum" | "flowChartDisplay" | "wedgeRectCallout" | "wedgeRoundRectCallout" | "wedgeEllipseCallout" | "cloudCallout" | "borderCallout1" | "borderCallout2" | "borderCallout3" | "accentCallout1" | "accentCallout2" | "accentCallout3" | "callout1" | "callout2" | "callout3" | "accentBorderCallout1" | "accentBorderCallout2" | "accentBorderCallout3" | "actionButtonBlank" | "actionButtonHome" | "actionButtonHelp" | "actionButtonInformation" | "actionButtonBackPrevious" | "actionButtonForwardNext" | "actionButtonBeginning" | "actionButtonEnd" | "actionButtonReturn" | "actionButtonDocument" | "actionButtonSound" | "actionButtonMovie" | "irregularSeal1" | "irregularSeal2" | "frame" | "halfFrame" | "corner" | "diagStripe" | "chord" | "arc" | "bracketPair" | "bracePair" | "leftBracket" | "rightBracket" | "leftBrace" | "rightBrace" | "can" | "cube" | "bevel" | "donut" | "noSmoking" | "blockArc" | "foldedCorner" | "smileyFace" | "heart" | "lightningBolt" | "sun" | "moon" | "cloud" | "snip1Rect" | "snip2SameRect" | "snip2DiagRect" | "snipRoundRect" | "round1Rect" | "round2SameRect" | "round2DiagRect" | "plaque" | "teardrop" | "mathPlus" | "mathMinus" | "mathMultiply" | "mathDivide" | "mathEqual" | "mathNotEqual" | "gear6" | "gear9" | "funnel" | "pieWedge" | "pie" | "leftCircularArrow" | "leftRightCircularArrow" | "swooshArrow" | "textBox";
2185
2213
  /** Authored adjustment formula for a preset DrawingML geometry. */
2186
- type ShapeGeometryAdjustment = {
2214
+ type ShapeGeometryAdjustment = WritableRecord & {
2187
2215
  name: string;
2188
2216
  formula: string;
2189
2217
  };
2190
2218
  /**
2191
2219
  * Shape fill type
2192
2220
  */
2193
- type ShapeFill = {
2221
+ type ShapeFill = WritableRecord & {
2194
2222
  type: "none" | "solid" | "gradient" | "pattern" | "picture";
2195
2223
  /**
2196
2224
  * Authored DrawingML retained when the normalized projection is incomplete.
@@ -2200,7 +2228,7 @@ type ShapeFill = {
2200
2228
  /** Solid fill color */
2201
2229
  color?: ColorValue;
2202
2230
  /** Gradient stops for gradient fill */
2203
- gradient?: {
2231
+ gradient?: WritableRecord & {
2204
2232
  type: "linear" | "radial" | "rectangular" | "path";
2205
2233
  angle?: number;
2206
2234
  /**
@@ -2208,16 +2236,16 @@ type ShapeFill = {
2208
2236
  * with the fill region (ECMA-376 §20.1.8.41). Absent means not stated.
2209
2237
  */
2210
2238
  scaled?: boolean;
2211
- stops: {
2239
+ stops: (WritableRecord & {
2212
2240
  position: number;
2213
2241
  color: ColorValue;
2214
- }[];
2242
+ })[];
2215
2243
  };
2216
2244
  };
2217
2245
  /**
2218
2246
  * Shape outline/stroke
2219
2247
  */
2220
- type ShapeOutline = {
2248
+ type ShapeOutline = WritableRecord & {
2221
2249
  /**
2222
2250
  * Authored DrawingML retained for lossless round-trips. Serializers prefer
2223
2251
  * this value; callers modifying structured outline fields must omit it.
@@ -2240,14 +2268,16 @@ type ShapeOutline = {
2240
2268
  /** Line join */
2241
2269
  join?: "bevel" | "miter" | "round";
2242
2270
  /** Head arrow */
2243
- headEnd?: {
2244
- type: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2271
+ headEnd?: WritableRecord & {
2272
+ /** `@type`; absent when the source omits it (the schema default is none). */
2273
+ type?: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2245
2274
  width?: "sm" | "med" | "lg";
2246
2275
  length?: "sm" | "med" | "lg";
2247
2276
  };
2248
2277
  /** Tail arrow */
2249
- tailEnd?: {
2250
- type: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2278
+ tailEnd?: WritableRecord & {
2279
+ /** `@type`; absent when the source omits it (the schema default is none). */
2280
+ type?: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2251
2281
  width?: "sm" | "med" | "lg";
2252
2282
  length?: "sm" | "med" | "lg";
2253
2283
  };
@@ -2255,9 +2285,9 @@ type ShapeOutline = {
2255
2285
  /**
2256
2286
  * Text body inside a shape
2257
2287
  */
2258
- type ShapeTextBody = {
2288
+ type ShapeTextBody = WritableRecord & {
2259
2289
  /** Authored DrawingML WordArt metadata. */
2260
- wordArt?: {
2290
+ wordArt?: WritableRecord & {
2261
2291
  /** Authored `wps:bodyPr/@fromWordArt`; omitted when the source omitted it. */
2262
2292
  fromWordArt?: boolean;
2263
2293
  preset?: string;
@@ -2276,7 +2306,7 @@ type ShapeTextBody = {
2276
2306
  /** Horizontal text wrapping inside the shape */
2277
2307
  textWrap?: "square" | "none";
2278
2308
  /** Text margins */
2279
- margins?: {
2309
+ margins?: WritableRecord & {
2280
2310
  top?: number;
2281
2311
  bottom?: number;
2282
2312
  left?: number;
@@ -2294,7 +2324,7 @@ type ShapeTextBody = {
2294
2324
  * than a drawing of its own: a writer puts the text back into the group and
2295
2325
  * writes no second drawing for it.
2296
2326
  */
2297
- type DrawingGroupChild = {
2327
+ type DrawingGroupChild = WritableRecord & {
2298
2328
  /**
2299
2329
  * Element indices from the `wpg:wgp` down to the `wps:wsp`, one per level,
2300
2330
  * passing through any nested `wpg:grpSp`.
@@ -2308,7 +2338,7 @@ type DrawingGroupChild = {
2308
2338
  /**
2309
2339
  * Shape/drawing object (wps:wsp)
2310
2340
  */
2311
- type Shape = {
2341
+ type Shape = WritableRecord & {
2312
2342
  type: "shape";
2313
2343
  /** Shape type preset */
2314
2344
  shapeType: ShapeType;
@@ -2352,7 +2382,7 @@ type Shape = {
2352
2382
  /**
2353
2383
  * Text box (floating text container)
2354
2384
  */
2355
- type TextBox = {
2385
+ type TextBox = WritableRecord & {
2356
2386
  type: "textBox";
2357
2387
  /** Unique ID */
2358
2388
  id?: string;
@@ -2387,7 +2417,7 @@ type TextBox = {
2387
2417
  /** Vertical text alignment inside the box */
2388
2418
  verticalAlign?: ShapeTextBody["anchor"];
2389
2419
  /** Internal margins */
2390
- margins?: {
2420
+ margins?: WritableRecord & {
2391
2421
  top?: number;
2392
2422
  bottom?: number;
2393
2423
  left?: number;
@@ -2399,7 +2429,7 @@ type TextBox = {
2399
2429
  /**
2400
2430
  * Table cell
2401
2431
  */
2402
- type TableCell = {
2432
+ type TableCell = WritableRecord & {
2403
2433
  type: "tableCell";
2404
2434
  /** Authored cell identifier (`w:tc/@w:id`). */
2405
2435
  id?: string;
@@ -2432,31 +2462,31 @@ type TableCell = {
2432
2462
  * marker inside its authored wrapper and prevents one control from being
2433
2463
  * rebuilt as two wrappers around the children on either side of it.
2434
2464
  */
2435
- type TablePreservedMarkup = {
2436
- children?: (PreservedChild & {
2465
+ type TablePreservedMarkup = WritableRecord & {
2466
+ children?: (PreservedChild & WritableRecord & {
2437
2467
  contentControls?: SdtProperties[];
2438
2468
  carrierStack?: TableContentCarrier[];
2439
2469
  })[];
2440
2470
  };
2441
2471
  /** Replayable shell for a transparent custom-XML wrapper around table structure. */
2442
- type TableCustomXmlWrapper = {
2472
+ type TableCustomXmlWrapper = WritableRecord & {
2443
2473
  /** Parser-assigned identity; equal shell markup can still name distinct wrappers. */
2444
2474
  id: number;
2445
2475
  openingXml: string;
2446
2476
  closingXml: string;
2447
2477
  };
2448
2478
  /** Ordered transparent carrier stack on table, row and cell children. */
2449
- type TableContentCarrier = {
2479
+ type TableContentCarrier = WritableRecord & ({
2450
2480
  type: "customXml";
2451
2481
  wrapper: TableCustomXmlWrapper;
2452
2482
  } | {
2453
2483
  type: "sdt";
2454
2484
  properties: SdtProperties;
2455
- };
2485
+ });
2456
2486
  /**
2457
2487
  * Table row
2458
2488
  */
2459
- type TableRow = {
2489
+ type TableRow = WritableRecord & {
2460
2490
  type: "tableRow";
2461
2491
  /** Row formatting */
2462
2492
  formatting?: TableRowFormatting;
@@ -2540,7 +2570,7 @@ type TableRow = {
2540
2570
  /**
2541
2571
  * Table (w:tbl)
2542
2572
  */
2543
- type Table = {
2573
+ type Table = WritableRecord & {
2544
2574
  type: "table";
2545
2575
  /** Table formatting */
2546
2576
  formatting?: TableFormatting;
@@ -2577,10 +2607,10 @@ type Table = {
2577
2607
  /**
2578
2608
  * A comment (w:comment) from comments.xml
2579
2609
  */
2580
- type Comment = {
2610
+ type Comment = WritableRecord & {
2581
2611
  /** Comment ID (matches commentRangeStart/End) */
2582
2612
  id: number;
2583
- /** Whether the author selected content or placed a point annotation. */
2613
+ /** Whether the author selected content or placed a point annotation; absent for an unanchored source definition. */
2584
2614
  anchorKind?: "point" | "range";
2585
2615
  /** Author name */
2586
2616
  author: string;
@@ -2596,6 +2626,12 @@ type Comment = {
2596
2626
  parentId?: number;
2597
2627
  /** Whether the comment is resolved/done */
2598
2628
  done?: boolean;
2629
+ /**
2630
+ * The pending suggestion that proposed this comment. In memory only, never
2631
+ * written to a file: a save leaves a proposed comment out, accepting its
2632
+ * suggestion clears this, and rejecting it removes the comment.
2633
+ */
2634
+ suggestionId?: string;
2599
2635
  /**
2600
2636
  * Body markup `content` cannot hold: a table, an equation, a content
2601
2637
  * control, a bookmark or range marker, a tracked-change wrapper. The
@@ -2608,27 +2644,27 @@ type Comment = {
2608
2644
  /**
2609
2645
  * Comment range start marker in paragraph content
2610
2646
  */
2611
- type CommentRangeStart = {
2647
+ type CommentRangeStart = WritableRecord & {
2612
2648
  type: "commentRangeStart";
2613
2649
  } & MarkupRangeMarker;
2614
2650
  /**
2615
2651
  * Comment range end marker in paragraph content
2616
2652
  */
2617
- type CommentRangeEnd = {
2653
+ type CommentRangeEnd = WritableRecord & {
2618
2654
  type: "commentRangeEnd";
2619
2655
  } & MarkupRangeMarker;
2620
2656
  /**
2621
2657
  * Point comment reference (w:commentReference without an explicit range).
2622
2658
  * Word sometimes stores comments this way; we anchor them to nearby text for display.
2623
2659
  */
2624
- type CommentReference = {
2660
+ type CommentReference = WritableRecord & {
2625
2661
  type: "commentReference";
2626
2662
  id: number;
2627
2663
  };
2628
2664
  /**
2629
2665
  * Math equation content (m:oMath or m:oMathPara)
2630
2666
  */
2631
- type MathEquation = {
2667
+ type MathEquation = WritableRecord & {
2632
2668
  type: "mathEquation";
2633
2669
  /** Whether this is a block (oMathPara) or inline (oMath) equation */
2634
2670
  display: "inline" | "block";
@@ -2660,7 +2696,7 @@ declare function normalizeRevisionId(id: number): number;
2660
2696
  /**
2661
2697
  * Tracked change metadata (w:ins, w:del attributes)
2662
2698
  */
2663
- type TrackedChangeInfo = {
2699
+ type TrackedChangeInfo = WritableRecord & {
2664
2700
  /** Revision ID */
2665
2701
  id: number;
2666
2702
  /** Author who made the change */
@@ -2678,7 +2714,7 @@ type TrackedChangeInfo = {
2678
2714
  * namespace the part declares on its root, and re-emitting it under a
2679
2715
  * prefix of our choosing would name one that is not there.
2680
2716
  */
2681
- utcDate?: {
2717
+ utcDate?: WritableRecord & {
2682
2718
  attribute: string;
2683
2719
  value: string;
2684
2720
  };
@@ -2693,7 +2729,7 @@ type TrackedChangeInfo = {
2693
2729
  /**
2694
2730
  * Generic tracked property-change wrapper metadata (w:*PrChange)
2695
2731
  */
2696
- type PropertyChangeInfo = {
2732
+ type PropertyChangeInfo = WritableRecord & {
2697
2733
  /** Optional revision session ID */
2698
2734
  rsid?: string;
2699
2735
  } & TrackedChangeInfo;
@@ -2712,8 +2748,18 @@ type TrackedRunContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | Comment
2712
2748
  declare const INSERTION_SEAM_POLICIES: {
2713
2749
  readonly MERGE_PLAIN_RUNS: "merge-plain-runs";
2714
2750
  };
2751
+ /**
2752
+ * Whether an insertion marked as what its paragraph stands for had resolution
2753
+ * joins of its own: without, its zero depths only carry the marker, and it
2754
+ * resolves as an insertion with no joins.
2755
+ */
2756
+ declare const HELD_PARAGRAPH_JOINS: {
2757
+ readonly OWN: "own-joins";
2758
+ readonly NONE: "no-joins";
2759
+ };
2760
+ type HeldParagraphJoins = (typeof HELD_PARAGRAPH_JOINS)[keyof typeof HELD_PARAGRAPH_JOINS];
2715
2761
  /** Operation-created seams only; source OOXML has no such provenance. */
2716
- type TrackedResolutionJoins = {
2762
+ type TrackedResolutionJoins = WritableRecord & {
2717
2763
  /** Editor text acceptance joins only the inserted payload's plain-run seams. */
2718
2764
  acceptance?: typeof INSERTION_SEAM_POLICIES.MERGE_PLAIN_RUNS;
2719
2765
  /** Exact join depths when the wrapper is retained and unwrapped. */
@@ -2722,32 +2768,86 @@ type TrackedResolutionJoins = {
2722
2768
  /** Exact join depth when the wrapper is removed. */
2723
2769
  remove: number;
2724
2770
  /**
2725
- * Sides where the wrapper now meets accepted new content rather than a
2726
- * source piece: resolving it joins plain runs there and nothing else.
2771
+ * Sides where the wrapper meets no source piece of its cut: accepted new
2772
+ * content beside it, or, at the edge of accepted content it stands in,
2773
+ * whatever lies beyond that content. Resolving it joins plain runs there
2774
+ * and nothing else; a join recorded there takes the kept range markers that
2775
+ * name its side inside the content, as deep as it says.
2727
2776
  */
2728
2777
  plainSides?: readonly ("before" | "after")[];
2778
+ /**
2779
+ * An acceptance took every record of the container this insertion stands
2780
+ * in other than pending insertions. Rejecting the last of them empties the
2781
+ * container away, as accepting that content last does.
2782
+ */
2783
+ emptiedHolder?: true;
2784
+ /**
2785
+ * The paragraph this insertion stands in ends a block content control or
2786
+ * stands before a block it cannot join, and its added mark was rejected
2787
+ * while the paragraph held only pending insertions: it stands only for
2788
+ * them, as there was nothing to join. Rejecting the last of them removes the paragraph, as rejecting
2789
+ * the mark and them at once does. The value says whether the insertion
2790
+ * had joins of its own when marked; resolving it reads it without the
2791
+ * marker either way.
2792
+ */
2793
+ holdsParagraph?: HeldParagraphJoins;
2794
+ /**
2795
+ * This deletion is all its content control holds: it deleted exactly the
2796
+ * control's text. Accepting it leaves the control, emptied, as deleting
2797
+ * that text directly does.
2798
+ */
2799
+ holdsControlText?: true;
2800
+ /**
2801
+ * Edges of the container this change stands in where accepted content
2802
+ * meets it that its insertion joined to nothing there. A resolution that
2803
+ * empties the container leaves it standing there, emptied, as resolving
2804
+ * the change before that acceptance does.
2805
+ */
2806
+ closedHolder?: readonly ("before" | "after")[];
2729
2807
  /** A split seam survives only while all intervening insertions await rejection. */
2730
- deferredRemove?: readonly {
2808
+ deferredRemove?: readonly (WritableRecord & {
2731
2809
  depth: number;
2732
2810
  blockers: readonly number[];
2733
- }[];
2811
+ /**
2812
+ * On a pending deletion or move source that holds a piece of the cut
2813
+ * record: the edge of it where that piece meets the seam. Rejecting it
2814
+ * joins there; accepting it retires the seam.
2815
+ */
2816
+ edge?: "start" | "end";
2817
+ })[];
2734
2818
  /** Source identities handed to the retained suffix when a deleted prefix goes. */
2735
- retainedAfter?: readonly {
2819
+ retainedAfter?: readonly (WritableRecord & {
2736
2820
  depth: number;
2737
- source: readonly {
2821
+ source: readonly (WritableRecord & {
2738
2822
  space: "revision" | "control";
2739
2823
  id: number;
2740
- }[];
2741
- target: readonly {
2824
+ })[];
2825
+ target: readonly (WritableRecord & {
2742
2826
  space: "revision" | "control";
2743
2827
  id: number;
2744
- }[];
2745
- }[];
2828
+ })[];
2829
+ })[];
2830
+ /**
2831
+ * Identities of the record `levels` above this wrapper, handed to the
2832
+ * piece of it that an edit cut off after this wrapper, when removing this
2833
+ * wrapper leaves that record empty. Saved as its own ignorable attribute.
2834
+ */
2835
+ retainedEnclosing?: readonly (WritableRecord & {
2836
+ levels: number;
2837
+ source: readonly (WritableRecord & {
2838
+ space: "revision" | "control";
2839
+ id: number;
2840
+ })[];
2841
+ target: readonly (WritableRecord & {
2842
+ space: "revision" | "control";
2843
+ id: number;
2844
+ })[];
2845
+ })[];
2746
2846
  };
2747
2847
  /**
2748
2848
  * Insertion wrapper (w:ins) — runs inserted by tracked changes
2749
2849
  */
2750
- type Insertion = {
2850
+ type Insertion = WritableRecord & {
2751
2851
  type: "insertion";
2752
2852
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2753
2853
  resolutionJoins?: TrackedResolutionJoins;
@@ -2759,7 +2859,7 @@ type Insertion = {
2759
2859
  /**
2760
2860
  * Deletion wrapper (w:del) — runs deleted by tracked changes
2761
2861
  */
2762
- type Deletion = {
2862
+ type Deletion = WritableRecord & {
2763
2863
  type: "deletion";
2764
2864
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2765
2865
  resolutionJoins?: TrackedResolutionJoins;
@@ -2771,7 +2871,7 @@ type Deletion = {
2771
2871
  /**
2772
2872
  * Move-from wrapper (w:moveFrom) — content moved away from this position
2773
2873
  */
2774
- type MoveFrom = {
2874
+ type MoveFrom = WritableRecord & {
2775
2875
  type: "moveFrom";
2776
2876
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2777
2877
  resolutionJoins?: TrackedResolutionJoins;
@@ -2783,7 +2883,7 @@ type MoveFrom = {
2783
2883
  /**
2784
2884
  * Move-to wrapper (w:moveTo) — content moved into this position
2785
2885
  */
2786
- type MoveTo = {
2886
+ type MoveTo = WritableRecord & {
2787
2887
  type: "moveTo";
2788
2888
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2789
2889
  resolutionJoins?: TrackedResolutionJoins;
@@ -2831,7 +2931,7 @@ type BidiControl = (typeof BIDI_CONTROLS)[keyof typeof BIDI_CONTROLS];
2831
2931
  * - `smartTag` is `w:smartTag` — §17.5.1.9.
2832
2932
  * - `customXml` is the run-level `w:customXml` — §17.5.1.6.
2833
2933
  */
2834
- type InlineWrapper = {
2934
+ type InlineWrapper = WritableRecord & ({
2835
2935
  type: "inlineWrapper";
2836
2936
  kind: "bidi";
2837
2937
  control: BidiControl;
@@ -2864,31 +2964,31 @@ type InlineWrapper = {
2864
2964
  /** `w:customXmlPr` verbatim; see the `smartTag` branch. */
2865
2965
  propertiesXml?: string;
2866
2966
  content: ParagraphContent[];
2867
- };
2967
+ });
2868
2968
  /**
2869
2969
  * Move-from range start marker (w:moveFromRangeStart) — ECMA-376 §17.13.5.22
2870
2970
  * Pairs with moveFromRangeEnd to delimit the source of a move in the document.
2871
2971
  */
2872
- type MoveFromRangeStart = {
2972
+ type MoveFromRangeStart = WritableRecord & {
2873
2973
  type: "moveFromRangeStart";
2874
2974
  } & MoveBookmarkMarker & CopyOriginMarker;
2875
2975
  /**
2876
2976
  * Move-from range end marker (w:moveFromRangeEnd)
2877
2977
  */
2878
- type MoveFromRangeEnd = {
2978
+ type MoveFromRangeEnd = WritableRecord & {
2879
2979
  type: "moveFromRangeEnd";
2880
2980
  } & MarkupRangeMarker & CopyOriginMarker;
2881
2981
  /**
2882
2982
  * Move-to range start marker (w:moveToRangeStart) — ECMA-376 §17.13.5.24
2883
2983
  * Pairs with moveToRangeEnd to delimit the destination of a move.
2884
2984
  */
2885
- type MoveToRangeStart = {
2985
+ type MoveToRangeStart = WritableRecord & {
2886
2986
  type: "moveToRangeStart";
2887
2987
  } & MoveBookmarkMarker & CopyOriginMarker;
2888
2988
  /**
2889
2989
  * Move-to range end marker (w:moveToRangeEnd)
2890
2990
  */
2891
- type MoveToRangeEnd = {
2991
+ type MoveToRangeEnd = WritableRecord & {
2892
2992
  type: "moveToRangeEnd";
2893
2993
  } & MarkupRangeMarker & CopyOriginMarker;
2894
2994
  /**
@@ -2898,7 +2998,7 @@ type TrackedRunChange = Insertion | Deletion | MoveFrom | MoveTo;
2898
2998
  /**
2899
2999
  * Run property change (w:rPrChange)
2900
3000
  */
2901
- type RunPropertyChange = {
3001
+ type RunPropertyChange = WritableRecord & {
2902
3002
  type: "runPropertyChange";
2903
3003
  /** Cuts created by this action; omitted on imported OOXML records. */
2904
3004
  boundaryJoins?: readonly ("before" | "after")[];
@@ -2912,10 +3012,18 @@ type RunPropertyChange = {
2912
3012
  /**
2913
3013
  * Paragraph property change (w:pPrChange)
2914
3014
  */
2915
- type ParagraphPropertyChange = {
3015
+ type ParagraphPropertyChange = WritableRecord & {
2916
3016
  type: "paragraphPropertyChange";
2917
3017
  /** Tracked change metadata */
2918
3018
  info: PropertyChangeInfo;
3019
+ /**
3020
+ * The revision this change belongs to: the paragraph-mark deletion of the
3021
+ * tracked join that set these properties. Accepting or rejecting that
3022
+ * revision resolves this change the same way; this change alone still
3023
+ * resolves by its own id. Folio review history (`folio:resolvesWith`);
3024
+ * omitted on an ordinary property change.
3025
+ */
3026
+ resolvesWith?: number;
2919
3027
  /** Paragraph properties before the tracked change */
2920
3028
  previousFormatting?: ParagraphFormatting;
2921
3029
  /** Paragraph properties after the tracked change (editor model convenience) */
@@ -2924,7 +3032,7 @@ type ParagraphPropertyChange = {
2924
3032
  /**
2925
3033
  * Table property change (w:tblPrChange)
2926
3034
  */
2927
- type TablePropertyChange = {
3035
+ type TablePropertyChange = WritableRecord & {
2928
3036
  type: "tablePropertyChange";
2929
3037
  /** Tracked change metadata */
2930
3038
  info: PropertyChangeInfo;
@@ -2940,7 +3048,7 @@ type TablePropertyChange = {
2940
3048
  * subset and is written as a different element in a different container. A
2941
3049
  * shared discriminator would let one reach the other's serializer.
2942
3050
  */
2943
- type TablePropertyExceptionChange = {
3051
+ type TablePropertyExceptionChange = WritableRecord & {
2944
3052
  type: "tablePropertyExceptionChange";
2945
3053
  /** Tracked change metadata */
2946
3054
  info: PropertyChangeInfo;
@@ -2952,7 +3060,7 @@ type TablePropertyExceptionChange = {
2952
3060
  /**
2953
3061
  * Table row property change (w:trPrChange)
2954
3062
  */
2955
- type TableRowPropertyChange = {
3063
+ type TableRowPropertyChange = WritableRecord & {
2956
3064
  type: "tableRowPropertyChange";
2957
3065
  /** Tracked change metadata */
2958
3066
  info: PropertyChangeInfo;
@@ -2964,7 +3072,7 @@ type TableRowPropertyChange = {
2964
3072
  /**
2965
3073
  * Table cell property change (w:tcPrChange)
2966
3074
  */
2967
- type TableCellPropertyChange = {
3075
+ type TableCellPropertyChange = WritableRecord & {
2968
3076
  type: "tableCellPropertyChange";
2969
3077
  /** Tracked change metadata */
2970
3078
  info: PropertyChangeInfo;
@@ -2986,14 +3094,14 @@ type TableCellPropertyChange = {
2986
3094
  /**
2987
3095
  * Section property change (w:sectPrChange)
2988
3096
  */
2989
- type SectionPropertyChange = {
3097
+ type SectionPropertyChange = WritableRecord & {
2990
3098
  type: "sectionPropertyChange";
2991
3099
  /** Tracked change metadata */
2992
3100
  info: PropertyChangeInfo;
2993
3101
  /** Section properties before the tracked change */
2994
3102
  previousProperties?: SectionProperties;
2995
3103
  /** Complete prior header/footer selection, stored in Folio's ignorable MCE extension. */
2996
- previousReferences?: {
3104
+ previousReferences?: WritableRecord & {
2997
3105
  headerReferences?: HeaderReference[];
2998
3106
  footerReferences?: FooterReference[];
2999
3107
  };
@@ -3033,7 +3141,7 @@ declare const PROPERTY_REVISION_KINDS: Readonly<{
3033
3141
  /**
3034
3142
  * Table structural tracked change metadata (row/cell insert/delete/merge)
3035
3143
  */
3036
- type TableStructuralChangeInfo = {
3144
+ type TableStructuralChangeInfo = WritableRecord & ({
3037
3145
  type: "tableRowInsertion" | "tableRowDeletion" | "tableCellInsertion" | "tableCellDeletion";
3038
3146
  /** Tracked change metadata */
3039
3147
  info: TrackedChangeInfo;
@@ -3045,7 +3153,7 @@ type TableStructuralChangeInfo = {
3045
3153
  verticalMerge?: "continue" | "rest";
3046
3154
  /** Vertical merge state that existed before the revision. */
3047
3155
  verticalMergeOriginal?: "continue" | "rest";
3048
- };
3156
+ });
3049
3157
  /**
3050
3158
  * SDT type (content control type)
3051
3159
  */
@@ -3061,7 +3169,7 @@ type SdtType = "richText" | "plainText" | "date" | "dropdown" | "comboBox" | "ch
3061
3169
  * sequence gives them. Together the two are the whole element: the serializer
3062
3170
  * writes both halves and nothing replays the source's bytes whole.
3063
3171
  */
3064
- type SdtProperties = {
3172
+ type SdtProperties = WritableRecord & {
3065
3173
  /** SDT type (a projection of the control-kind element the set holds). */
3066
3174
  sdtType: SdtType;
3067
3175
  /** Numeric id (`w:id/@w:val`). */
@@ -3089,10 +3197,10 @@ type SdtProperties = {
3089
3197
  */
3090
3198
  dateValueISO?: string;
3091
3199
  /** Dropdown/combobox list items. */
3092
- listItems?: {
3200
+ listItems?: (WritableRecord & {
3093
3201
  displayText: string;
3094
3202
  value: string;
3095
- }[];
3203
+ })[];
3096
3204
  /**
3097
3205
  * Selected dropdown / comboBox value (`w:dropDownList@w:lastValue`).
3098
3206
  * Persisted as the OOXML value, independent of the body display text.
@@ -3145,7 +3253,7 @@ type SdtProperties = {
3145
3253
  * absent element does not, which is why presence is the record rather than a
3146
3254
  * flag on {@link SdtProperties}.
3147
3255
  */
3148
- type SdtEndProperties = {
3256
+ type SdtEndProperties = WritableRecord & {
3149
3257
  /** `w:sdtEndPr/w:rPr`, absent when the element declared none. */
3150
3258
  runProperties?: TextFormatting;
3151
3259
  };
@@ -3167,7 +3275,7 @@ type SdtEndProperties = {
3167
3275
  * `EG_RangeMarkupElements` and retain their authored position inside the
3168
3276
  * control when the editor resolves nearby content.
3169
3277
  */
3170
- type InlineSdt = {
3278
+ type InlineSdt = WritableRecord & {
3171
3279
  type: "inlineSdt";
3172
3280
  /** SDT properties */
3173
3281
  properties: SdtProperties;
@@ -3181,7 +3289,7 @@ type InlineSdt = {
3181
3289
  * OOXML allows block SDTs to nest — e.g. a repeating-section control
3182
3290
  * whose row is itself a content control.
3183
3291
  */
3184
- type BlockSdt = {
3292
+ type BlockSdt = WritableRecord & {
3185
3293
  type: "blockSdt";
3186
3294
  /** SDT properties; `properties.preserved` carries what the model does not. */
3187
3295
  properties: SdtProperties;
@@ -3189,7 +3297,7 @@ type BlockSdt = {
3189
3297
  content: BlockContent[];
3190
3298
  };
3191
3299
  /** Transparent block-level `w:customXml` wrapper. */
3192
- type BlockCustomXml = {
3300
+ type BlockCustomXml = WritableRecord & {
3193
3301
  type: "blockCustomXml";
3194
3302
  /** Replayable start tag, including attributes and in-scope namespace bindings. */
3195
3303
  openingXml: string;
@@ -3218,7 +3326,7 @@ type BlockCustomXml = {
3218
3326
  * markup puts on the line, which is empty for everything except a transparent
3219
3327
  * wrapper such as `w:customXml`.
3220
3328
  */
3221
- type PreservedInline = {
3329
+ type PreservedInline = WritableRecord & {
3222
3330
  type: "preservedInline";
3223
3331
  /** Replayable markup for one child, as `captureVerbatimXml` wrote it. */
3224
3332
  xml: string;
@@ -3238,13 +3346,13 @@ type PreservedInline = {
3238
3346
  * otherwise be. A capture is hidden only while the paragraph's marker shows
3239
3347
  * it; anywhere else it is replaced by this item, which shows on the line.
3240
3348
  */
3241
- type FoldedListNumber = {
3349
+ type FoldedListNumber = (WritableRecord & {
3242
3350
  kind: "field";
3243
3351
  field: ComplexField;
3244
- } | {
3352
+ }) | (WritableRecord & {
3245
3353
  kind: "tab";
3246
3354
  run: Run;
3247
- };
3355
+ });
3248
3356
  /**
3249
3357
  * Paragraph content types
3250
3358
  */
@@ -3268,11 +3376,18 @@ declare const PARAGRAPH_MARK_CHANGE_KINDS: readonly ["moveFrom", "moveTo", "ins"
3268
3376
  /** One of {@link PARAGRAPH_MARK_CHANGE_KINDS}. */
3269
3377
  type ParagraphMarkChangeKind = (typeof PARAGRAPH_MARK_CHANGE_KINDS)[number];
3270
3378
  /** A paragraph-mark tracked change, written under `<w:pPr><w:rPr>`. */
3271
- type ParagraphMarkChange = {
3379
+ type ParagraphMarkChange = WritableRecord & {
3272
3380
  kind: ParagraphMarkChangeKind;
3273
3381
  info: TrackedChangeInfo;
3274
3382
  /** Exact source-cut depth for rejection; absent in ordinary imported revisions. */
3275
3383
  resolutionJoin?: number | undefined;
3384
+ /**
3385
+ * When the split whose cut `resolutionJoin` records was made, on a deleted
3386
+ * mark that holds the cut of the inserted break it deletes after that
3387
+ * insertion was accepted. Saved as folio's own ignorable review
3388
+ * provenance; a reader that does not know it joins at the deletion's date.
3389
+ */
3390
+ splitDate?: string | undefined;
3276
3391
  /**
3277
3392
  * Which paragraph rejecting this inserted mark keeps: `"first"` when the
3278
3393
  * paragraph after it took over the mark this one had, so this one is the
@@ -3281,6 +3396,17 @@ type ParagraphMarkChange = {
3281
3396
  * reader that does not know it joins as any rejected mark does.
3282
3397
  */
3283
3398
  survivor?: "first" | undefined;
3399
+ /**
3400
+ * A later pending deletion of this added mark, `w:del` written beside its
3401
+ * `w:ins` or `w:moveTo`: another author deleted the break an insertion
3402
+ * made, and either can be resolved first. Absent on deleted and
3403
+ * moved-from marks.
3404
+ */
3405
+ deletion?: ParagraphMarkDeletion | undefined;
3406
+ };
3407
+ /** The later deletion an added paragraph mark holds beside its insertion. */
3408
+ type ParagraphMarkDeletion = WritableRecord & {
3409
+ info: TrackedChangeInfo;
3284
3410
  };
3285
3411
  declare const REVIEW_CARRIERS: {
3286
3412
  readonly TERMINAL_TABLE: "terminal-table";
@@ -3288,7 +3414,7 @@ declare const REVIEW_CARRIERS: {
3288
3414
  /** A Folio-private untracked paragraph used to resolve a terminal table deletion. */
3289
3415
  type ReviewCarrier = (typeof REVIEW_CARRIERS)[keyof typeof REVIEW_CARRIERS];
3290
3416
  /** Paragraph (w:p) */
3291
- type Paragraph = {
3417
+ type Paragraph = WritableRecord & {
3292
3418
  type: "paragraph";
3293
3419
  /** Unique paragraph ID */
3294
3420
  paraId?: string;
@@ -3308,7 +3434,10 @@ type Paragraph = {
3308
3434
  listRendering?: ListRendering;
3309
3435
  /** Word's cached layout says this paragraph started on a new rendered page. */
3310
3436
  renderedPageBreakBefore?: boolean;
3311
- /** Section properties (if this paragraph ends a section) */
3437
+ /**
3438
+ * Section properties, if this paragraph ends a section. A section ends
3439
+ * outside every table: no operation puts one on a paragraph in a cell.
3440
+ */
3312
3441
  sectionProperties?: SectionProperties | undefined;
3313
3442
  /**
3314
3443
  * Attributes `w:p` carried that this record has no field for.
@@ -3330,18 +3459,18 @@ type HeaderFooterType = "default" | "first" | "even";
3330
3459
  /**
3331
3460
  * Header or footer reference
3332
3461
  */
3333
- type HeaderReference = {
3462
+ type HeaderReference = WritableRecord & {
3334
3463
  type: HeaderFooterType;
3335
3464
  rId: string;
3336
3465
  };
3337
- type FooterReference = {
3466
+ type FooterReference = WritableRecord & {
3338
3467
  type: HeaderFooterType;
3339
3468
  rId: string;
3340
3469
  };
3341
3470
  /**
3342
3471
  * Header or footer content
3343
3472
  */
3344
- type HeaderFooter = {
3473
+ type HeaderFooter = WritableRecord & {
3345
3474
  type: "header" | "footer";
3346
3475
  /** Header/footer type */
3347
3476
  hdrFtrType: HeaderFooterType;
@@ -3388,7 +3517,7 @@ type HeaderFooter = {
3388
3517
  * Document watermark (MS Word's behind-content page decoration).
3389
3518
  */
3390
3519
  type Watermark = TextWatermark | PictureWatermark;
3391
- type TextWatermark = {
3520
+ type TextWatermark = WritableRecord & {
3392
3521
  kind: "text";
3393
3522
  /** Visible string. Required. */
3394
3523
  text: string;
@@ -3412,7 +3541,7 @@ type TextWatermark = {
3412
3541
  */
3413
3542
  opacity?: number;
3414
3543
  };
3415
- type PictureWatermark = {
3544
+ type PictureWatermark = WritableRecord & {
3416
3545
  kind: "picture";
3417
3546
  /** Relationship id of the image part in `word/_rels/header*.xml.rels`. */
3418
3547
  imageRId: string;
@@ -3465,7 +3594,7 @@ type NoteNumberRestart = "continuous" | "eachSect" | "eachPage";
3465
3594
  /**
3466
3595
  * Footnote properties
3467
3596
  */
3468
- type FootnoteProperties = {
3597
+ type FootnoteProperties = WritableRecord & {
3469
3598
  position?: FootnotePosition;
3470
3599
  numFmt?: NumberFormat;
3471
3600
  /** `w:numFmt/@w:format`, as authored. */
@@ -3476,7 +3605,7 @@ type FootnoteProperties = {
3476
3605
  /**
3477
3606
  * Endnote properties
3478
3607
  */
3479
- type EndnoteProperties = {
3608
+ type EndnoteProperties = WritableRecord & {
3480
3609
  position?: EndnotePosition;
3481
3610
  numFmt?: NumberFormat;
3482
3611
  /** `w:numFmt/@w:format`, as authored. */
@@ -3487,7 +3616,7 @@ type EndnoteProperties = {
3487
3616
  /**
3488
3617
  * Footnote (w:footnote)
3489
3618
  */
3490
- type Footnote = {
3619
+ type Footnote = WritableRecord & {
3491
3620
  type: "footnote";
3492
3621
  /** Footnote ID */
3493
3622
  id: number;
@@ -3505,7 +3634,7 @@ type Footnote = {
3505
3634
  /**
3506
3635
  * Endnote (w:endnote)
3507
3636
  */
3508
- type Endnote = {
3637
+ type Endnote = WritableRecord & {
3509
3638
  type: "endnote";
3510
3639
  /** Endnote ID */
3511
3640
  id: number;
@@ -3536,7 +3665,7 @@ type LineNumberRestart = "continuous" | "newPage" | "newSection";
3536
3665
  /**
3537
3666
  * Column definition
3538
3667
  */
3539
- type Column = {
3668
+ type Column = WritableRecord & {
3540
3669
  /** Column width in twips */
3541
3670
  width?: number;
3542
3671
  /** Space after column in twips */
@@ -3545,7 +3674,7 @@ type Column = {
3545
3674
  /**
3546
3675
  * Section properties (w:sectPr)
3547
3676
  */
3548
- type SectionProperties = {
3677
+ type SectionProperties = WritableRecord & {
3549
3678
  /** Page width in twips */
3550
3679
  pageWidth?: number;
3551
3680
  /** Page height in twips */
@@ -3593,21 +3722,21 @@ type SectionProperties = {
3593
3722
  /** Different odd/even page headers/footers */
3594
3723
  evenAndOddHeaders?: boolean;
3595
3724
  /** Line numbering settings */
3596
- lineNumbers?: {
3725
+ lineNumbers?: WritableRecord & {
3597
3726
  start?: number;
3598
3727
  countBy?: number;
3599
3728
  distance?: number;
3600
3729
  restart?: LineNumberRestart;
3601
3730
  };
3602
3731
  /** Page numbering settings */
3603
- pageNumbering?: {
3732
+ pageNumbering?: WritableRecord & {
3604
3733
  format?: NumberFormat;
3605
3734
  start?: number;
3606
3735
  chapterStyle?: number;
3607
3736
  chapterSeparator?: string;
3608
3737
  };
3609
3738
  /** Page borders */
3610
- pageBorders?: {
3739
+ pageBorders?: WritableRecord & {
3611
3740
  top?: BorderSpec;
3612
3741
  bottom?: BorderSpec;
3613
3742
  left?: BorderSpec;
@@ -3620,7 +3749,7 @@ type SectionProperties = {
3620
3749
  zOrder?: "front" | "back";
3621
3750
  };
3622
3751
  /** Page background */
3623
- background?: {
3752
+ background?: WritableRecord & {
3624
3753
  color?: ColorValue;
3625
3754
  themeColor?: ThemeColorValue;
3626
3755
  themeTint?: string;
@@ -3633,7 +3762,7 @@ type SectionProperties = {
3633
3762
  /** Endnote properties for this section */
3634
3763
  endnotePr?: EndnoteProperties;
3635
3764
  /** Document grid */
3636
- docGrid?: {
3765
+ docGrid?: WritableRecord & {
3637
3766
  type?: "default" | "lines" | "linesAndChars" | "snapToChars";
3638
3767
  linePitch?: number;
3639
3768
  charSpace?: number;
@@ -3679,7 +3808,7 @@ type SectionProperties = {
3679
3808
  * looking for any of those may skip it, and every walker that rebuilds block
3680
3809
  * content must write it back.
3681
3810
  */
3682
- type PreservedBlock = {
3811
+ type PreservedBlock = WritableRecord & {
3683
3812
  type: "preservedBlock";
3684
3813
  /** Replayable markup for one child, as `captureVerbatimXml` wrote it. */
3685
3814
  xml: string;
@@ -3710,7 +3839,7 @@ type TableCellBlock = BlockContent;
3710
3839
  /**
3711
3840
  * Section (implicit or explicit based on sectPr)
3712
3841
  */
3713
- type Section = {
3842
+ type Section = WritableRecord & {
3714
3843
  /** Section properties */
3715
3844
  properties: SectionProperties;
3716
3845
  /** Content in this section */
@@ -3727,12 +3856,12 @@ type Section = {
3727
3856
  * inventing an editable projection for legacy VML/DrawingML page art while the
3728
3857
  * surrounding background attributes remain typed.
3729
3858
  */
3730
- type DocumentBackgroundDrawing = {
3859
+ type DocumentBackgroundDrawing = WritableRecord & {
3731
3860
  /** Replayable `w:drawing` markup, as the source wrote it. */
3732
3861
  rawXml: string;
3733
3862
  };
3734
3863
  /** Page background declared directly under `w:document`. */
3735
- type DocumentBackground = {
3864
+ type DocumentBackground = WritableRecord & {
3736
3865
  /** Direct colour or the `auto` sentinel. */
3737
3866
  color?: ColorValue;
3738
3867
  /** Theme colour token, including the explicit `none` cancellation. */
@@ -3747,7 +3876,7 @@ type DocumentBackground = {
3747
3876
  /**
3748
3877
  * Document body (w:body)
3749
3878
  */
3750
- type DocumentBody = {
3879
+ type DocumentBody = WritableRecord & {
3751
3880
  /** Optional `w:document/w:background`, serialized before the body. */
3752
3881
  background?: DocumentBackground;
3753
3882
  /** All content (paragraphs, tables) */
@@ -3774,7 +3903,7 @@ type ContentControlChange = "editContent" | "removeControl";
3774
3903
  */
3775
3904
  declare const contentControlLockAllows: (lock: ContentControlLock | null | undefined, change: ContentControlChange) => boolean;
3776
3905
  /** A content control, on the caller's position scale. */
3777
- type LockedControlSpan = {
3906
+ type LockedControlSpan = WritableRecord & {
3778
3907
  lock: ContentControlLock;
3779
3908
  /** Before the control. */
3780
3909
  from: number;
@@ -3792,13 +3921,13 @@ type LockedControlSpan = {
3792
3921
  * standing (a text edit across a whole control rewrites its content). An
3793
3922
  * insertion is an `edit` whose `from` equals `to`.
3794
3923
  */
3795
- type LockedControlTouch = {
3924
+ type LockedControlTouch = WritableRecord & {
3796
3925
  from: number;
3797
3926
  to: number;
3798
3927
  effect: "remove" | "edit";
3799
3928
  };
3800
3929
  /** Why a lock refuses a change. */
3801
- type LockedControlViolation = {
3930
+ type LockedControlViolation = WritableRecord & {
3802
3931
  lock: ContentControlLock;
3803
3932
  change: ContentControlChange;
3804
3933
  };
@@ -3812,6 +3941,15 @@ declare const firstLockedControlViolation: (controls: Iterable<LockedControlSpan
3812
3941
  declare const lockedControlMessage: ({ lock, change }: LockedControlViolation) => string;
3813
3942
  /** Set modeled comments while keeping an empty comments part out of the document model. */
3814
3943
  declare const setDocumentBodyComments: (body: DocumentBody, comments: Comment[]) => void;
3944
+ /**
3945
+ * The sides of `w:spacing` a paragraph's own properties state, as the parser
3946
+ * reads them: a side is explicit exactly when the record holds its value.
3947
+ *
3948
+ * The one rule for the field. The parser marks a record it reads with it, and
3949
+ * an operation that states a paragraph's spacing states the field with it, so
3950
+ * a paragraph an edit changed has the field the saved file reopens to.
3951
+ */
3952
+ declare const paragraphSpacingExplicit: (formatting: ParagraphFormatting) => SpacingExplicit | undefined;
3815
3953
  /**
3816
3954
  * Finish paragraph formatting at a model boundary.
3817
3955
  *
@@ -3822,20 +3960,6 @@ declare const setDocumentBodyComments: (body: DocumentBody, comments: Comment[])
3822
3960
  declare const finalizeParagraphFormatting: (formatting: ParagraphFormatting | undefined) => ParagraphFormatting | undefined;
3823
3961
  /** Whether paragraph formatting states no modeled properties. */
3824
3962
  declare const isCanonicallyEmptyParagraphFormatting: (formatting: ParagraphFormatting | undefined) => boolean;
3825
- /**
3826
- * What folio normalised to open a document, as data rather than as prose.
3827
- *
3828
- * Word accepts input the schema does not describe, so folio accepts it too and
3829
- * normalises at the parse boundary. Every such decision is recorded here: a
3830
- * stable `code`, the part it happened in, the best position that part can
3831
- * name, and the value folio declined to read. A host can count them, group
3832
- * them, or decide on one; the human-readable string the parser has always
3833
- * exposed is derived from this, never written by hand at the call site, so the
3834
- * two cannot drift.
3835
- *
3836
- * It lives beside `Document` because it is part of the parsed document, and a
3837
- * `Document` may be produced by anything that builds this model.
3838
- */
3839
3963
  /**
3840
3964
  * Every normalisation the parse boundary is allowed to make.
3841
3965
  *
@@ -3859,10 +3983,22 @@ declare const PARSE_WARNING_CODES: {
3859
3983
  readonly missingCommentId: "missing-comment-id";
3860
3984
  /** A later `w:footnote`/`w:endnote` repeating an id an earlier one defines. */
3861
3985
  readonly duplicateNoteId: "duplicate-note-id";
3986
+ /** An automatic note mark outside its matching note story, kept verbatim. */
3987
+ readonly misplacedNoteMark: "misplaced-note-mark";
3862
3988
  /** A comment marker naming a comment `comments.xml` never defines. */
3863
3989
  readonly danglingCommentReference: "dangling-comment-reference";
3864
3990
  /** A comment range with no matching start or end, re-anchored as a point. */
3865
3991
  readonly unbalancedCommentRange: "unbalanced-comment-range";
3992
+ /** A comment range boundary with no partner, dropped: the comment's reference anchors it. */
3993
+ readonly unpairedCommentRangeBoundary: "unpaired-comment-range-boundary";
3994
+ /** A comment reference repeating one its comment already has, dropped. */
3995
+ readonly duplicateCommentReference: "duplicate-comment-reference";
3996
+ /** A comment's full range after its first, dropped: a comment holds one range. */
3997
+ readonly droppedCommentRange: "dropped-comment-range";
3998
+ /** A comment range no `w:commentReference` names, given one after its end. */
3999
+ readonly missingCommentReference: "missing-comment-reference";
4000
+ /** A `comments.xml` paragraph repeating an earlier one's `w14:paraId`, given a minted id. */
4001
+ readonly repeatedCommentParagraphId: "repeated-comment-paragraph-id";
3866
4002
  /** A `w:headerReference` naming a header part the package does not carry. */
3867
4003
  readonly danglingHeaderReference: "dangling-header-reference";
3868
4004
  /** A `w:footerReference` naming a footer part the package does not carry. */
@@ -3875,6 +4011,8 @@ declare const PARSE_WARNING_CODES: {
3875
4011
  readonly unnumberedStyle: "unnumbered-style";
3876
4012
  /** A tracked move range with no matching start or end. */
3877
4013
  readonly unbalancedMoveRange: "unbalanced-move-range";
4014
+ /** A tracked move range after the first of its id, dropped: a move holds one range. */
4015
+ readonly droppedMoveRange: "dropped-move-range";
3878
4016
  /** A `w:type` outside `ST_HdrFtr`, read as the enumeration's default. */
3879
4017
  readonly headerFooterTypeOutsideEnum: "header-footer-type-outside-enum";
3880
4018
  /** A value outside `ST_OnOff`'s six spellings. */
@@ -3917,7 +4055,7 @@ declare const IMPORTED_ID_COLLISION_KINDS: {
3917
4055
  type ImportedIdCollisionKind = (typeof IMPORTED_ID_COLLISION_KINDS)[keyof typeof IMPORTED_ID_COLLISION_KINDS];
3918
4056
  type ParseWarningCode = (typeof PARSE_WARNING_CODES)[keyof typeof PARSE_WARNING_CODES];
3919
4057
  /** Where a warning happened, as precisely as the part can say. */
3920
- type ParseWarningLocation = {
4058
+ type ParseWarningLocation = WritableRecord & {
3921
4059
  /** The package part, e.g. `word/document.xml`. `package` for the container. */
3922
4060
  part: string;
3923
4061
  /** The element as written, prefix included, when one is known. */
@@ -3929,7 +4067,7 @@ type ParseWarningLocation = {
3929
4067
  */
3930
4068
  at?: string;
3931
4069
  };
3932
- type ParseWarning = {
4070
+ type ParseWarning = WritableRecord & {
3933
4071
  code: ParseWarningCode;
3934
4072
  /** The identity domain, for imported collision diagnostics. */
3935
4073
  identityKind?: ImportedIdCollisionKind;
@@ -3959,7 +4097,7 @@ type StyleType = "paragraph" | "character" | "numbering" | "table";
3959
4097
  /**
3960
4098
  * Style definition
3961
4099
  */
3962
- type Style = {
4100
+ type Style = WritableRecord & {
3963
4101
  /** Style ID */
3964
4102
  styleId: string;
3965
4103
  /** Style type */
@@ -3997,19 +4135,19 @@ type Style = {
3997
4135
  /** Table cell properties */
3998
4136
  tcPr?: TableCellFormatting;
3999
4137
  /** Conditional table style parts */
4000
- tblStylePr?: {
4138
+ tblStylePr?: (WritableRecord & {
4001
4139
  type: "band1Horz" | "band1Vert" | "band2Horz" | "band2Vert" | "firstCol" | "firstRow" | "lastCol" | "lastRow" | "neCell" | "nwCell" | "seCell" | "swCell" | "wholeTable";
4002
4140
  pPr?: ParagraphFormatting;
4003
4141
  rPr?: TextFormatting;
4004
4142
  tblPr?: TableFormatting;
4005
4143
  trPr?: TableRowFormatting;
4006
4144
  tcPr?: TableCellFormatting;
4007
- }[];
4145
+ })[];
4008
4146
  };
4009
4147
  /**
4010
4148
  * Document defaults (w:docDefaults)
4011
4149
  */
4012
- type DocDefaults = {
4150
+ type DocDefaults = WritableRecord & {
4013
4151
  /** Default run properties */
4014
4152
  rPr?: TextFormatting;
4015
4153
  /** Default paragraph properties */
@@ -4018,11 +4156,11 @@ type DocDefaults = {
4018
4156
  /**
4019
4157
  * Style definitions from styles.xml
4020
4158
  */
4021
- type StyleDefinitions = {
4159
+ type StyleDefinitions = WritableRecord & {
4022
4160
  /** Document defaults */
4023
4161
  docDefaults?: DocDefaults;
4024
4162
  /** Latent styles */
4025
- latentStyles?: {
4163
+ latentStyles?: WritableRecord & {
4026
4164
  defLockedState?: boolean;
4027
4165
  defUIPriority?: number;
4028
4166
  defSemiHidden?: boolean;
@@ -4036,7 +4174,7 @@ type StyleDefinitions = {
4036
4174
  /**
4037
4175
  * Theme color scheme (a:clrScheme)
4038
4176
  */
4039
- type ThemeColorScheme = {
4177
+ type ThemeColorScheme = WritableRecord & {
4040
4178
  /** Dark 1 color (usually black) */
4041
4179
  dk1?: string;
4042
4180
  /** Light 1 color (usually white) */
@@ -4060,7 +4198,7 @@ type ThemeColorScheme = {
4060
4198
  /**
4061
4199
  * Theme font (with script variants)
4062
4200
  */
4063
- type ThemeFont = {
4201
+ type ThemeFont = WritableRecord & {
4064
4202
  /** Latin font */
4065
4203
  latin?: string;
4066
4204
  /** East Asian font */
@@ -4068,12 +4206,12 @@ type ThemeFont = {
4068
4206
  /** Complex script font */
4069
4207
  cs?: string;
4070
4208
  /** Script-specific fonts */
4071
- fonts?: Record<string, string>;
4209
+ fonts?: WritableRecord & Record<string, string>;
4072
4210
  };
4073
4211
  /**
4074
4212
  * Theme font scheme (a:fontScheme)
4075
4213
  */
4076
- type ThemeFontScheme = {
4214
+ type ThemeFontScheme = WritableRecord & {
4077
4215
  /** Major font (headings) */
4078
4216
  majorFont?: ThemeFont;
4079
4217
  /** Minor font (body text) */
@@ -4082,7 +4220,7 @@ type ThemeFontScheme = {
4082
4220
  /**
4083
4221
  * Theme (from theme1.xml)
4084
4222
  */
4085
- type Theme = {
4223
+ type Theme = WritableRecord & {
4086
4224
  /** Theme name */
4087
4225
  name?: string;
4088
4226
  /** Color scheme */
@@ -4090,7 +4228,7 @@ type Theme = {
4090
4228
  /** Font scheme */
4091
4229
  fontScheme?: ThemeFontScheme;
4092
4230
  /** Format scheme (fills, lines, effects) - simplified */
4093
- formatScheme?: {
4231
+ formatScheme?: WritableRecord & {
4094
4232
  name?: string;
4095
4233
  };
4096
4234
  };
@@ -4100,7 +4238,7 @@ type Theme = {
4100
4238
  * Two attributes of one element rather than two fields on the font, because
4101
4239
  * `w:charset` is the thing that carries both and a producer may write either.
4102
4240
  */
4103
- type FontCharset = {
4241
+ type FontCharset = WritableRecord & {
4104
4242
  /** `w:val`: the code page as a two-digit hexadecimal number. */
4105
4243
  val?: string;
4106
4244
  /** `w:characterSet`: the same set named (`ANSI_CHARSET`) rather than numbered. */
@@ -4113,7 +4251,7 @@ type FontCharset = {
4113
4251
  * GUID the `.odttf` is obfuscated with, so a package that keeps the id and
4114
4252
  * drops the key keeps a pointer to bytes nothing can decode.
4115
4253
  */
4116
- type EmbeddedFontRef = {
4254
+ type EmbeddedFontRef = WritableRecord & {
4117
4255
  /** `r:id` of the relationship to the font binary, in `word/_rels/fontTable.xml.rels`. */
4118
4256
  id: string;
4119
4257
  /** `w:fontKey`: the obfuscation GUID, e.g. `{XXXXXXXX-…}`. */
@@ -4124,7 +4262,7 @@ type EmbeddedFontRef = {
4124
4262
  /**
4125
4263
  * Font info from fontTable.xml
4126
4264
  */
4127
- type FontInfo = {
4265
+ type FontInfo = WritableRecord & {
4128
4266
  /** Font name */
4129
4267
  name: string;
4130
4268
  /** Alternate names */
@@ -4138,7 +4276,7 @@ type FontInfo = {
4138
4276
  /** Pitch (fixed or variable) */
4139
4277
  pitch?: "default" | "fixed" | "variable";
4140
4278
  /** Signature */
4141
- sig?: {
4279
+ sig?: WritableRecord & {
4142
4280
  usb0?: string;
4143
4281
  usb1?: string;
4144
4282
  usb2?: string;
@@ -4159,7 +4297,7 @@ type FontInfo = {
4159
4297
  /**
4160
4298
  * Font table from fontTable.xml
4161
4299
  */
4162
- type FontTable = {
4300
+ type FontTable = WritableRecord & {
4163
4301
  fonts: FontInfo[];
4164
4302
  /** Children of `w:fonts` that are not `w:font`, in source position. */
4165
4303
  preserved?: PreservedMarkup;
@@ -4179,7 +4317,7 @@ type RelationshipType = string;
4179
4317
  /**
4180
4318
  * Relationship entry
4181
4319
  */
4182
- type Relationship = {
4320
+ type Relationship = WritableRecord & {
4183
4321
  /** Relationship ID (e.g., "rId1") */
4184
4322
  id: string;
4185
4323
  /** Relationship type URI */
@@ -4196,7 +4334,7 @@ type RelationshipMap = Map<string, Relationship>;
4196
4334
  /**
4197
4335
  * Media file from word/media/
4198
4336
  */
4199
- type MediaFile = {
4337
+ type MediaFile = WritableRecord & {
4200
4338
  /** File path in ZIP */
4201
4339
  path: string;
4202
4340
  /** Original filename */
@@ -4224,18 +4362,18 @@ type MediaFile = {
4224
4362
  * type ExhaustiveBorder = ExhaustiveFields<BorderSpec, ClassifiedBorderField>;
4225
4363
  * ```
4226
4364
  */
4227
- type ExhaustiveFields<Source, Classified extends keyof Source> = Exclude<keyof Source, Classified> extends never ? Source : never;
4365
+ type ExhaustiveFields<Source, Classified extends RecordField<Source>> = Exclude<RecordField<Source>, Classified> extends never ? Source : never;
4228
4366
  /** Resolve only defined numbering levels; preserve unsupported source values elsewhere. */
4229
4367
  declare const isNumberingLevel: (value: number) => boolean;
4230
- type NumberingLevelResolution = {
4368
+ type NumberingLevelResolution = (WritableRecord & {
4231
4369
  kind: "level";
4232
4370
  level: ListLevel;
4233
4371
  source: "abstract" | "override" | "styleLink";
4234
- } | {
4372
+ }) | (WritableRecord & {
4235
4373
  kind: "undefined";
4236
4374
  reason: "levelOutOfRange" | "noInstance" | "noAbstract" | "unresolvedStyleLink" | "levelNotDefined";
4237
- };
4238
- type NumberingLevelEntry = {
4375
+ });
4376
+ type NumberingLevelEntry = WritableRecord & {
4239
4377
  numId: number;
4240
4378
  ilvl: number;
4241
4379
  level: ListLevel;
@@ -4278,7 +4416,7 @@ declare const DEFAULT_TAB_STOP_TWIPS = 720;
4278
4416
  * Document-wide settings parsed from `word/settings.xml`.
4279
4417
  * Extend as more settings.xml fields enter the layout pipeline.
4280
4418
  */
4281
- type DocumentSettings = {
4419
+ type DocumentSettings = WritableRecord & {
4282
4420
  /**
4283
4421
  * Application compatibility generation from
4284
4422
  * `w:compat/w:compatSetting[@w:name="compatibilityMode"]`.
@@ -4324,7 +4462,7 @@ type DocumentSettings = {
4324
4462
  * `<a:ea>`/`<a:cs>` theme font slots from the script-specific
4325
4463
  * `<a:font script="…">` entries. Absent for non-CJK/bidi docs.
4326
4464
  */
4327
- themeFontLang?: {
4465
+ themeFontLang?: WritableRecord & {
4328
4466
  eastAsia?: string;
4329
4467
  bidi?: string;
4330
4468
  };
@@ -4337,12 +4475,12 @@ type DocumentSettings = {
4337
4475
  /** Legacy hyphenation zone (`w:hyphenationZone`) in twips; retained for compatibility tooling. */
4338
4476
  hyphenationZoneTwips?: number;
4339
4477
  /** Word/OOXML document-wide line-breaking overrides. */
4340
- lineBreakRules?: {
4341
- noLineBreaksBefore?: {
4478
+ lineBreakRules?: WritableRecord & {
4479
+ noLineBreaksBefore?: WritableRecord & {
4342
4480
  language?: string;
4343
4481
  characters: string;
4344
4482
  };
4345
- noLineBreaksAfter?: {
4483
+ noLineBreaksAfter?: WritableRecord & {
4346
4484
  language?: string;
4347
4485
  characters: string;
4348
4486
  };
@@ -4365,7 +4503,7 @@ declare const DOCX_CONFORMANCE_CLASSES: Readonly<{
4365
4503
  /** Conformance class detected from a DOCX package. */
4366
4504
  type DocxConformanceClass = (typeof DOCX_CONFORMANCE_CLASSES)[keyof typeof DOCX_CONFORMANCE_CLASSES];
4367
4505
  /** Complete DOCX package structure. */
4368
- type DocxPackage = {
4506
+ type DocxPackage = WritableRecord & {
4369
4507
  /** Conformance class detected from the main document namespace. */
4370
4508
  conformanceClass?: DocxConformanceClass;
4371
4509
  /** Document body */
@@ -4393,7 +4531,7 @@ type DocxPackage = {
4393
4531
  /** Media files */
4394
4532
  media?: Map<string, MediaFile> | undefined;
4395
4533
  /** Document properties */
4396
- properties?: {
4534
+ properties?: WritableRecord & {
4397
4535
  title?: string;
4398
4536
  subject?: string;
4399
4537
  creator?: string;
@@ -4408,7 +4546,7 @@ type DocxPackage = {
4408
4546
  /**
4409
4547
  * Complete parsed DOCX document
4410
4548
  */
4411
- type Document = {
4549
+ type Document = WritableRecord & {
4412
4550
  /** DOCX package with all parsed content */
4413
4551
  package: DocxPackage;
4414
4552
  /** Original ArrayBuffer for round-trip */
@@ -4433,4 +4571,4 @@ declare const COMMENT_PART_RELATIONSHIPS: {
4433
4571
  readonly target: "commentsExtended.xml";
4434
4572
  };
4435
4573
  };
4436
- export { locksContent as $, TEXT_DIRECTION_FLOWS as $i, ShapeGeometryAdjustment as $n, NumberingDefinitions as $r, ImageWrapPolygon as $t, ThemeColorScheme as A, BORDER_STYLES as Aa, mergeParagraphNumbering as Ai, PositionedBookmarkMarker as An, isOoxmlSymbolCharacter as Ar, EndnoteProperties as At, finalizeParagraphFormatting as B, HeadingOutlineLevel as Bi, RunContent as Bn, presetLineDashFrom as Br, HeaderFooterType as Bt, Relationship as C, UnrecognisedBorderStyle as Ca, NO_NUMBERING_NUM_ID as Ci, Paragraph as Cn, TrackedRunChange as Cr, DrawingAnchor as Ct, StyleDefinitions as D, isBorderNone as Da, ParagraphNumberingSlots as Di, ParagraphPropertyChange as Dn, WrapDistanceSlots as Dr, EffectExtentSlots as Dt, Style as E, isBorderNil as Ea, ParagraphNumberingReference as Ei, ParagraphMarkChangeKind as En, Watermark as Er, DrawingRawXmlMode as Et, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as F, paragraphNumberingSlots as Fi, PropertyChangeInfo as Fn, PreviewDescriptor as Fr, FooterReference as Ft, ContentControlLock as G, outlineLevelStatedValue as Gi, Section as Gn, COUNTER_FORMATS as Gr, ImageCrop as Gt, setDocumentBodyComments as H, headingLevelOf as Hi, SdtEndProperties as Hn, PRESET_LINE_DASH_VALS as Hr, Hyperlink as Ht, PARSE_WARNING_CODES as I, resolveParagraphNumbering as Ii, PropertyRevisionKind as In, PreviewShape as Ir, Footnote as It, LockedControlViolation as J, PARAGRAPH_ALIGNMENTS as Ji, SectionStart as Jn, LevelOverride as Jr, ImagePadding as Jt, LockedControlSpan as K, NUMBER_FORMATS as Ki, SectionProperties as Kn, CounterFormat as Kr, ImageDocPrLink as Kt, ParseWarning as L, sameEffectiveParagraphNumbering as Li, REVIEW_CARRIERS as Ln, PresetLineDashValue as Lr, FootnotePosition as Lt, ThemeFontScheme as M, paragraphNumberingLevel as Mi, PreservedInline as Mn, RelationshipId as Mr, FieldCharContent as Mt, IMPORTED_ID_COLLISION_KINDS as N, paragraphNumberingReference as Ni, PreservedXmlContent as Nn, mintRelationshipId as Nr, FieldType as Nt, StyleType as O, isBorderStyle as Oa, ResolvedParagraphNumbering as Oi, PictureWatermark as On, WrapDistances as Or, Endnote as Ot, ImportedIdCollisionKind as P, paragraphNumberingReferenceId as Pi, PropertyChange as Pn, relationshipIdOf as Pr, FoldedListNumber as Pt, lockedControlViolation as Q, TEXT_DIRECTIONS as Qi, ShapeFill as Qn, ListRendering as Qr, ImageWrap as Qt, ParseWarningCode as R, sameStatedParagraphNumbering as Ri, ReviewCarrier as Rn, UnrecognisedPresetLineDash as Rr, FootnoteProperties as Rt, MediaFile as S, BorderStyleValue as Sa, UnderlineStyle as Si, PageOrientation as Sn, TrackedChangeInfo as Sr, DocumentBody as St, RelationshipType as T, borderStyleToken as Ta, ParagraphNumberingOverride as Ti, ParagraphMarkChange as Tn, VerticalAlign as Tr, DrawingGroupChild as Tt, CONTENT_CONTROL_LOCK as U, headingOutlineLevel as Ui, SdtProperties as Un, PresetLineDashVal as Ur, INSERTION_SEAM_POLICIES as Ut, isCanonicallyEmptyParagraphFormatting as V, OutlineLevel as Vi, RunPropertyChange as Vn, presetLineDashToken as Vr, HeaderReference as Vt, ContentControlChange as W, outlineLevelFromStatedValue as Wi, SdtType as Wn, AbstractNumbering as Wr, Image as Wt, firstLockedControlViolation as X, TABLE_ALIGNMENTS as Xi, ShapeAlternateContent as Xn, ListLevel as Xr, ImageSize as Xt, contentControlLockAllows as Y, ParagraphAlignment as Yi, Shape as Yn, LevelSuffix as Yr, ImagePosition as Yt, lockedControlMessage as Z, TAB_STOP_ALIGNMENTS as Zi, ShapeContent as Zn, ListMarkerFormatting as Zr, ImageTransform as Zt, DocDefaults as _, themeColorToken as _a, TablePropertyExceptionFormatting as _i, NoteMarkerContent as _n, TableRowPropertyChange as _r, DRAWING_RAW_XML_MODES as _t, DocumentSettings as a, BorderSpec as aa, LineSpacingRule as ai, MAX_REVISION_ID as an, SymbolContent as ar, BlockCustomXml as at, FontInfo as b, THEME_COLORS as ba, TextEffect as bi, PARAGRAPH_MARK_CHANGE_KINDS as bn, TextContent as br, DocumentBackground as bt, NumberingLevelEntry as c, SCHEME_COLOR_VALUE_BY_THEME_COLOR as ca, TabLeader as ci, MoveBookmarkMarker as cn, TableCell as cr, BookmarkRangeMarker as ct, numberingInstanceResolves as d, UnrecognisedThemeColor as da, TableCellBorders as di, MoveFromRangeStart as dn, TableContentCarrier as dr, Column as dt, TEXT_DIRECTION_FLOW_BY_TOKEN as ea, NumberingInstance as ei, InlineSdt as en, ShapeOutline as er, locksControl as et, numberingLevelEntries as f, isSchemeColorValue as fa, TableCellFormatting as fi, MoveTo as fn, TableCustomXmlWrapper as fr, Comment as ft, ExhaustiveFields as g, themeColorSlot as ga, TableMeasurement as gi, NonVisualDrawingNames as gn, TableRow as gr, ComplexField as gt, isNumberingLevel as h, readThemeColor as ha, TableLook as hi, NoBreakHyphenContent as hn, TablePropertyExceptionChange as hr, CommentReference as ht, Document as i, TextDirectionFlow as ia, FloatingTableProperties as ii, LineNumberRestart as in, SoftHyphenContent as ir, BlockContent as it, ThemeFont as j, BorderStyle as ja, paragraphNumberingFromSlots as ji, PreservedBlock as jn, normalizeRevisionId as jr, Field as jt, Theme as k, statesNoBorder as ka, isNumberingReference as ki, PositionalTab as kn, WrapPolygonPoint as kr, EndnotePosition as kt, NumberingLevelResolution as l, THEME_COLOR_BY_SCHEME_COLOR_VALUE as la, TabStop as li, MoveFrom as ln, TableCellBlock as lr, BookmarkStart as lt, resolveNumberingLevel as m, knownThemeColor as ma, TableGridChange as mi, MoveToRangeStart as mn, TablePropertyChange as mr, CommentRangeStart as mt, DEFAULT_TAB_STOP_TWIPS as n, TableAlignment as na, ConditionalFormatStyle as ni, Insertion as nn, ShapeType as nr, BIDI_CONTROLS as nt, DocxConformanceClass as o, ColorValue as oa, ParagraphFormatting as oi, MarkupRangeMarker as on, TabContent as or, BlockSdt as ot, numberingLevelHasMarkerSlot as p, isThemeColor as pa, TableFormatting as pi, MoveToRangeEnd as pn, TablePreservedMarkup as pr, CommentRangeEnd as pt, LockedControlTouch as q, NumberFormat as qi, SectionPropertyChange as qn, LevelLegacy as qr, ImageFrameLocks as qt, DOCX_CONFORMANCE_CLASSES as r, TextDirection as ra, EmphasisMark as ri, InstrTextContent as rn, SimpleField as rr, BidiControl as rt, DocxPackage as s, ShadingProperties as sa, SpacingExplicit as si, MathEquation as sn, Table as sr, BookmarkEnd as st, COMMENT_PART_RELATIONSHIPS as t, TabStopAlignment as ta, CellMargins as ti, InlineWrapper as tn, ShapeTextBody as tr, getSingularRunPropertyChange as tt, levelShowsMarker as u, ThemeColorValue as ua, TableBorders as ui, MoveFromRangeEnd as un, TableCellPropertyChange as ur, BreakContent as ut, EmbeddedFontRef as v, SchemeColorSlot as va, TableRowFormatting as vi, NoteNumberRestart as vn, TableStructuralChangeInfo as vr, Deletion as vt, RelationshipMap as w, borderStyleFrom as wa, NO_PARAGRAPH_NUMBERING as wi, ParagraphContent as wn, TrackedRunContent as wr, DrawingContent as wt, FontTable as x, ThemeColor as xa, TextFormatting as xi, PROPERTY_REVISION_KINDS as xn, TextWatermark as xr, DocumentBackgroundDrawing as xt, FontCharset as y, SchemeColorValue as ya, TableWidthType as yi, NoteReferenceContent as yn, TextBox as yr, DisplacedByCustomXml as yt, ParseWarningLocation as z, BODY_TEXT_OUTLINE_LEVEL as zi, Run as zn, isPresetLineDashVal as zr, HeaderFooter as zt };
4574
+ export { lockedControlViolation as $, ParagraphAlignment as $i, Shape as $n, LevelSuffix as $r, ImageWrap as $t, ThemeColorScheme as A, isBorderNil as Aa, ParagraphNumberingReference as Ai, ParagraphMarkDeletion as An, Watermark as Ar, EndnotePosition as At, finalizeParagraphFormatting as B, resolveParagraphNumbering as Bi, PropertyRevisionKind as Bn, PreviewShape as Br, HeaderFooter as Bt, Relationship as C, SchemeColorValue as Ca, TableWidthType as Ci, PARAGRAPH_MARK_CHANGE_KINDS as Cn, TextBox as Cr, DocumentBody as Ct, StyleDefinitions as D, UnrecognisedBorderStyle as Da, NO_NUMBERING_NUM_ID as Di, ParagraphContent as Dn, TrackedRunChange as Dr, DrawingRawXmlMode as Dt, Style as E, BorderStyleValue as Ea, UnderlineStyle as Ei, Paragraph as En, TrackedChangeInfo as Er, DrawingGroupChild as Et, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as F, BorderStyle as Fa, paragraphNumberingFromSlots as Fi, PreservedBlock as Fn, normalizeRevisionId as Fr, FoldedListNumber as Ft, ContentControlChange as G, OutlineLevel as Gi, RunPropertyChange as Gn, presetLineDashToken as Gr, Image as Gt, paragraphSpacingExplicit as H, sameStatedParagraphNumbering as Hi, ReviewCarrier as Hn, UnrecognisedPresetLineDash as Hr, HeaderReference as Ht, PARSE_WARNING_CODES as I, paragraphNumberingLevel as Ii, PreservedInline as In, RelationshipId as Ir, FooterReference as It, LockedControlTouch as J, outlineLevelFromStatedValue as Ji, SdtType as Jn, AbstractNumbering as Jr, ImageFrameLocks as Jt, ContentControlLock as K, headingLevelOf as Ki, SdtEndProperties as Kn, PRESET_LINE_DASH_VALS as Kr, ImageCrop as Kt, ParseWarning as L, paragraphNumberingReference as Li, PreservedXmlContent as Ln, mintRelationshipId as Lr, Footnote as Lt, ThemeFontScheme as M, isBorderStyle as Ma, ResolvedParagraphNumbering as Mi, PictureWatermark as Mn, WrapDistances as Mr, Field as Mt, IMPORTED_ID_COLLISION_KINDS as N, statesNoBorder as Na, isNumberingReference as Ni, PositionalTab as Nn, WrapPolygonPoint as Nr, FieldCharContent as Nt, StyleType as O, borderStyleFrom as Oa, NO_PARAGRAPH_NUMBERING as Oi, ParagraphMarkChange as On, TrackedRunContent as Or, EffectExtentSlots as Ot, ImportedIdCollisionKind as P, BORDER_STYLES as Pa, mergeParagraphNumbering as Pi, PositionedBookmarkMarker as Pn, isOoxmlSymbolCharacter as Pr, FieldType as Pt, lockedControlMessage as Q, PARAGRAPH_ALIGNMENTS as Qi, SectionStart as Qn, LevelOverride as Qr, ImageTransform as Qt, ParseWarningCode as R, paragraphNumberingReferenceId as Ri, PropertyChange as Rn, relationshipIdOf as Rr, FootnotePosition as Rt, MediaFile as S, SchemeColorSlot as Sa, TableRowFormatting as Si, NoteReferenceContent as Sn, TableStructuralChangeInfo as Sr, DocumentBackgroundDrawing as St, RelationshipType as T, ThemeColor as Ta, TextFormatting as Ti, PageOrientation as Tn, TextWatermark as Tr, DrawingContent as Tt, setDocumentBodyComments as U, BODY_TEXT_OUTLINE_LEVEL as Ui, Run as Un, isPresetLineDashVal as Ur, Hyperlink as Ut, isCanonicallyEmptyParagraphFormatting as V, sameEffectiveParagraphNumbering as Vi, REVIEW_CARRIERS as Vn, PresetLineDashValue as Vr, HeaderFooterType as Vt, CONTENT_CONTROL_LOCK as W, HeadingOutlineLevel as Wi, RunContent as Wn, presetLineDashFrom as Wr, INSERTION_SEAM_POLICIES as Wt, contentControlLockAllows as X, NUMBER_FORMATS as Xi, SectionProperties as Xn, CounterFormat as Xr, ImagePosition as Xt, LockedControlViolation as Y, outlineLevelStatedValue as Yi, Section as Yn, COUNTER_FORMATS as Yr, ImagePadding as Yt, firstLockedControlViolation as Z, NumberFormat as Zi, SectionPropertyChange as Zn, LevelLegacy as Zr, ImageSize as Zt, DocDefaults as _, isThemeColor as _a, TableFormatting as _i, MoveToRangeStart as _n, TablePreservedMarkup as _r, ComplexField as _t, DocumentSettings as a, TabStopAlignment as aa, CellMargins as ai, KeptCut as an, ShapeTextBody as ar, BlockContent as at, FontInfo as b, themeColorSlot as ba, TableMeasurement as bi, NoteMarkerContent as bn, TableRow as br, DisplacedByCustomXml as bt, NumberingLevelEntry as c, TextDirectionFlow as ca, FloatingTableProperties as ci, MAX_REVISION_ID as cn, SoftHyphenContent as cr, BookmarkEnd as ct, numberingInstanceResolves as d, ShadingProperties as da, SpacingExplicit as di, MoveBookmarkMarker as dn, Table as dr, BreakContent as dt, TABLE_ALIGNMENTS as ea, ListLevel as ei, ImageWrapPolygon as en, ShapeAlternateContent as er, locksContent as et, numberingLevelEntries as f, SCHEME_COLOR_VALUE_BY_THEME_COLOR as fa, TabLeader as fi, MoveFrom as fn, TableCell as fr, Column as ft, ExhaustiveFields as g, isSchemeColorValue as ga, TableCellFormatting as gi, MoveToRangeEnd as gn, TableCustomXmlWrapper as gr, CommentReference as gt, isNumberingLevel as h, UnrecognisedThemeColor as ha, TableCellBorders as hi, MoveTo as hn, TableContentCarrier as hr, CommentRangeStart as ht, Document as i, TEXT_DIRECTION_FLOW_BY_TOKEN as ia, NumberingInstance as ii, InstrTextContent as in, ShapeOutline as ir, BidiControl as it, ThemeFont as j, isBorderNone as ja, ParagraphNumberingSlots as ji, ParagraphPropertyChange as jn, WrapDistanceSlots as jr, EndnoteProperties as jt, Theme as k, borderStyleToken as ka, ParagraphNumberingOverride as ki, ParagraphMarkChangeKind as kn, VerticalAlign as kr, Endnote as kt, NumberingLevelResolution as l, BorderSpec as la, LineSpacingRule as li, MarkupRangeMarker as ln, SymbolContent as lr, BookmarkRangeMarker as lt, resolveNumberingLevel as m, ThemeColorValue as ma, TableBorders as mi, MoveFromRangeStart as mn, TableCellPropertyChange as mr, CommentRangeEnd as mt, DEFAULT_TAB_STOP_TWIPS as n, TEXT_DIRECTIONS as na, ListRendering as ni, InlineWrapper as nn, ShapeFill as nr, getSingularRunPropertyChange as nt, DocxConformanceClass as o, TableAlignment as oa, ConditionalFormatStyle as oi, KeptCutPiece as on, ShapeType as or, BlockCustomXml as ot, numberingLevelHasMarkerSlot as p, THEME_COLOR_BY_SCHEME_COLOR_VALUE as pa, TabStop as pi, MoveFromRangeEnd as pn, TableCellBlock as pr, Comment as pt, LockedControlSpan as q, headingOutlineLevel as qi, SdtProperties as qn, PresetLineDashVal as qr, ImageDocPrLink as qt, DOCX_CONFORMANCE_CLASSES as r, TEXT_DIRECTION_FLOWS as ra, NumberingDefinitions as ri, Insertion as rn, ShapeGeometryAdjustment as rr, BIDI_CONTROLS as rt, DocxPackage as s, TextDirection as sa, EmphasisMark as si, LineNumberRestart as sn, SimpleField as sr, BlockSdt as st, COMMENT_PART_RELATIONSHIPS as t, TAB_STOP_ALIGNMENTS as ta, ListMarkerFormatting as ti, InlineSdt as tn, ShapeContent as tr, locksControl as tt, levelShowsMarker as u, ColorValue as ua, ParagraphFormatting as ui, MathEquation as un, TabContent as ur, BookmarkStart as ut, EmbeddedFontRef as v, knownThemeColor as va, TableGridChange as vi, NoBreakHyphenContent as vn, TablePropertyChange as vr, DRAWING_RAW_XML_MODES as vt, RelationshipMap as w, THEME_COLORS as wa, TextEffect as wi, PROPERTY_REVISION_KINDS as wn, TextContent as wr, DrawingAnchor as wt, FontTable as x, themeColorToken as xa, TablePropertyExceptionFormatting as xi, NoteNumberRestart as xn, TableRowPropertyChange as xr, DocumentBackground as xt, FontCharset as y, readThemeColor as ya, TableLook as yi, NonVisualDrawingNames as yn, TablePropertyExceptionChange as yr, Deletion as yt, ParseWarningLocation as z, paragraphNumberingSlots as zi, PropertyChangeInfo as zn, PreviewDescriptor as zr, FootnoteProperties as zt };