@stll/docx-core 0.43.1 → 0.45.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 */
@@ -1357,7 +1357,7 @@ type PresetLineDashVal = (typeof PRESET_LINE_DASH_VALS)[number];
1357
1357
  * it through `ParseContext` so the normalisation is visible, and the
1358
1358
  * serializer writes `raw` back unchanged.
1359
1359
  */
1360
- type UnrecognisedPresetLineDash = {
1360
+ type UnrecognisedPresetLineDash = WritableRecord & {
1361
1361
  readonly kind: "unrecognised";
1362
1362
  readonly raw: string;
1363
1363
  };
@@ -1466,7 +1466,7 @@ declare const mintRelationshipId: (ordinal: number) => RelationshipId;
1466
1466
  /**
1467
1467
  * Plain text content
1468
1468
  */
1469
- type TextContent = {
1469
+ type TextContent = WritableRecord & {
1470
1470
  type: "text";
1471
1471
  /** The text string */
1472
1472
  text: string;
@@ -1474,12 +1474,12 @@ type TextContent = {
1474
1474
  /**
1475
1475
  * Tab character
1476
1476
  */
1477
- type PositionalTab = {
1477
+ type PositionalTab = WritableRecord & {
1478
1478
  relativeTo?: "margin" | "indent";
1479
1479
  alignment?: "left" | "center" | "right";
1480
1480
  leader?: "none" | "dot" | "hyphen" | "underscore" | "middleDot";
1481
1481
  };
1482
- type TabContent = {
1482
+ type TabContent = WritableRecord & {
1483
1483
  type: "tab";
1484
1484
  /** Word positional-tab properties (`w:ptab`); absent for a regular `w:tab`. */
1485
1485
  positional?: PositionalTab;
@@ -1487,7 +1487,7 @@ type TabContent = {
1487
1487
  /**
1488
1488
  * Line break
1489
1489
  */
1490
- type BreakContent = {
1490
+ type BreakContent = WritableRecord & ({
1491
1491
  type: "break";
1492
1492
  /** The distinct carriage-return element, which cannot carry break attributes. */
1493
1493
  sourceElement: "cr";
@@ -1501,11 +1501,11 @@ type BreakContent = {
1501
1501
  breakType?: "page" | "column" | "textWrapping";
1502
1502
  /** Clear type for text wrapping break */
1503
1503
  clear?: "none" | "left" | "right" | "all";
1504
- };
1504
+ });
1505
1505
  /**
1506
1506
  * Symbol character (special font character)
1507
1507
  */
1508
- type SymbolContent = {
1508
+ type SymbolContent = WritableRecord & {
1509
1509
  type: "symbol";
1510
1510
  /** Font name */
1511
1511
  font: string;
@@ -1517,7 +1517,7 @@ declare const isOoxmlSymbolCharacter: (value: string) => boolean;
1517
1517
  /**
1518
1518
  * Footnote or endnote reference
1519
1519
  */
1520
- type NoteReferenceContent = {
1520
+ type NoteReferenceContent = WritableRecord & {
1521
1521
  type: "footnoteRef" | "endnoteRef";
1522
1522
  /** Note ID */
1523
1523
  id: number;
@@ -1525,14 +1525,14 @@ type NoteReferenceContent = {
1525
1525
  customMarkFollows?: boolean;
1526
1526
  };
1527
1527
  /** The authored automatic reference mark inside a note body (w:footnoteRef/w:endnoteRef). */
1528
- type NoteMarkerContent = {
1528
+ type NoteMarkerContent = WritableRecord & {
1529
1529
  type: "noteMarker";
1530
1530
  kind: "footnote" | "endnote";
1531
1531
  };
1532
1532
  /**
1533
1533
  * Field character (begin/separate/end)
1534
1534
  */
1535
- type FieldCharContent = {
1535
+ type FieldCharContent = WritableRecord & {
1536
1536
  type: "fieldChar";
1537
1537
  /** Field character type */
1538
1538
  charType: "begin" | "separate" | "end";
@@ -1552,7 +1552,7 @@ type FieldCharContent = {
1552
1552
  /**
1553
1553
  * Field instruction text
1554
1554
  */
1555
- type InstrTextContent = {
1555
+ type InstrTextContent = WritableRecord & {
1556
1556
  type: "instrText";
1557
1557
  /** Field instruction */
1558
1558
  text: string;
@@ -1560,17 +1560,17 @@ type InstrTextContent = {
1560
1560
  /**
1561
1561
  * Soft hyphen
1562
1562
  */
1563
- type SoftHyphenContent = {
1563
+ type SoftHyphenContent = WritableRecord & {
1564
1564
  type: "softHyphen";
1565
1565
  };
1566
1566
  /**
1567
1567
  * Non-breaking hyphen
1568
1568
  */
1569
- type NoBreakHyphenContent = {
1569
+ type NoBreakHyphenContent = WritableRecord & {
1570
1570
  type: "noBreakHyphen";
1571
1571
  };
1572
1572
  /** Cached pagination boundary emitted by a previous layout pass. */
1573
- type RenderedPageBreakContent = {
1573
+ type RenderedPageBreakContent = WritableRecord & {
1574
1574
  type: "renderedPageBreak";
1575
1575
  };
1576
1576
  /**
@@ -1583,7 +1583,7 @@ type RenderedPageBreakContent = {
1583
1583
  * save 2 differs from save 1. Holding the markup in the model is what makes
1584
1584
  * parse∘serialize a fixed point for the whole class at once.
1585
1585
  */
1586
- type PreservedXmlContent = {
1586
+ type PreservedXmlContent = WritableRecord & {
1587
1587
  type: "preservedXml";
1588
1588
  /** Replayable markup for one run child, as `captureVerbatimXml` wrote it. */
1589
1589
  xml: string;
@@ -1603,7 +1603,7 @@ declare const DRAWING_RAW_XML_MODES: {
1603
1603
  /** Raw XML handling mode for a drawing. */
1604
1604
  type DrawingRawXmlMode = (typeof DRAWING_RAW_XML_MODES)[keyof typeof DRAWING_RAW_XML_MODES];
1605
1605
  /** Drawing/image reference with replayable XML required for preservation-only content. */
1606
- type DrawingContent = {
1606
+ type DrawingContent = WritableRecord & ({
1607
1607
  type: "drawing";
1608
1608
  /** Image data */
1609
1609
  image: Image;
@@ -1629,7 +1629,7 @@ type DrawingContent = {
1629
1629
  /** Required: a stale fingerprint is what marks the preview unsaveable rather than regenerable. */
1630
1630
  rawImageFingerprint: string;
1631
1631
  rawXmlMode: typeof DRAWING_RAW_XML_MODES.PREVIEW_ONLY;
1632
- };
1632
+ });
1633
1633
  /**
1634
1634
  * The `mc:AlternateContent` element a shape was read from.
1635
1635
  *
@@ -1639,7 +1639,7 @@ type DrawingContent = {
1639
1639
  * the shape is unedited. A text-only edit updates both branches; other edits
1640
1640
  * regenerate the Choice and drop the Fallback rather than replaying stale geometry.
1641
1641
  */
1642
- type ShapeAlternateContent = {
1642
+ type ShapeAlternateContent = WritableRecord & {
1643
1643
  /** The whole element, every branch included, as `captureVerbatimXml` wrote it. */
1644
1644
  verbatimXml: string;
1645
1645
  /** Fingerprint of the modeled shape when the element was captured. */
@@ -1649,7 +1649,7 @@ type ShapeAlternateContent = {
1649
1649
  /**
1650
1650
  * Shape reference
1651
1651
  */
1652
- type ShapeContent = {
1652
+ type ShapeContent = WritableRecord & {
1653
1653
  type: "shape";
1654
1654
  /** Shape data */
1655
1655
  shape: Shape;
@@ -1663,7 +1663,7 @@ type RunContent = TextContent | TabContent | BreakContent | SymbolContent | Note
1663
1663
  /**
1664
1664
  * A run is a contiguous region of text with the same formatting
1665
1665
  */
1666
- type Run = {
1666
+ type Run = WritableRecord & {
1667
1667
  type: "run";
1668
1668
  /** Text formatting properties */
1669
1669
  formatting?: TextFormatting;
@@ -1684,7 +1684,7 @@ type Run = {
1684
1684
  /**
1685
1685
  * Hyperlink (w:hyperlink)
1686
1686
  */
1687
- type Hyperlink = {
1687
+ type Hyperlink = WritableRecord & {
1688
1688
  type: "hyperlink";
1689
1689
  /** Relationship ID for external link */
1690
1690
  rId?: string;
@@ -1735,19 +1735,50 @@ type DisplacedByCustomXml = "next" | "prev";
1735
1735
  * is the element's attribute set rather than a hand-picked subset of it. Every
1736
1736
  * marker that lost attributes on save lost them by declaring its own fields.
1737
1737
  */
1738
- type MarkupRangeMarker = {
1738
+ type MarkupRangeMarker = WritableRecord & {
1739
1739
  /** Pairs a start with its end (`w:id`). */
1740
1740
  id: number;
1741
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 the pending changes beside the marker that took its seam and hold
1752
+ * a piece of that cut (`holders`): resolved, such a change takes the marker
1753
+ * with no alike record across from it.
1754
+ */
1755
+ type KeptCut = WritableRecord & {
1756
+ keptFrom: string;
1757
+ holders?: KeptCutHolders;
1742
1758
  };
1759
+ /**
1760
+ * The revision ids of the pending changes either side of a kept marker that
1761
+ * hold a piece of its cut: the one before it, the one after it, or both. A
1762
+ * holder no longer standing beside the marker holds nothing. A seam-scoped
1763
+ * marker waits on the whole cut, even where it has a holder on one side.
1764
+ */
1765
+ type KeptCutHolders = WritableRecord & {
1766
+ scope?: "seam";
1767
+ } & ({
1768
+ before: number;
1769
+ after?: number;
1770
+ } | {
1771
+ before?: number;
1772
+ after: number;
1773
+ });
1743
1774
  /** Added-revision ancestors that own a copied bookmark or move boundary. */
1744
1775
  type CopyOriginAncestorOrdinals = readonly [number, ...number[]];
1745
- type CopyOriginMarker = {
1776
+ type CopyOriginMarker = WritableRecord & {
1746
1777
  /** Nearest added revision ancestor is ordinal 0. */
1747
1778
  copyOriginAncestors?: CopyOriginAncestorOrdinals;
1748
1779
  };
1749
1780
  /** `CT_Bookmark`: a named range, optionally scoped to table columns. */
1750
- type BookmarkRangeMarker = MarkupRangeMarker & {
1781
+ type BookmarkRangeMarker = MarkupRangeMarker & WritableRecord & {
1751
1782
  name: string;
1752
1783
  /** Column index for table bookmarks */
1753
1784
  colFirst?: number;
@@ -1762,20 +1793,20 @@ type BookmarkRangeMarker = MarkupRangeMarker & {
1762
1793
  * but a date folio does not have is not a date it may invent, so a document
1763
1794
  * that arrived without one keeps arriving without one.
1764
1795
  */
1765
- type MoveBookmarkMarker = BookmarkRangeMarker & {
1796
+ type MoveBookmarkMarker = BookmarkRangeMarker & WritableRecord & {
1766
1797
  author: string;
1767
1798
  date?: string;
1768
1799
  };
1769
1800
  /**
1770
1801
  * Bookmark start marker (w:bookmarkStart)
1771
1802
  */
1772
- type BookmarkStart = {
1803
+ type BookmarkStart = WritableRecord & {
1773
1804
  type: "bookmarkStart";
1774
1805
  } & BookmarkRangeMarker & CopyOriginMarker;
1775
1806
  /**
1776
1807
  * Bookmark end marker (w:bookmarkEnd)
1777
1808
  */
1778
- type BookmarkEnd = {
1809
+ type BookmarkEnd = WritableRecord & {
1779
1810
  type: "bookmarkEnd";
1780
1811
  } & MarkupRangeMarker & CopyOriginMarker;
1781
1812
  /**
@@ -1794,7 +1825,7 @@ type BookmarkEnd = {
1794
1825
  * which is the same honest cost {@link TableRow.preserved} carries and the
1795
1826
  * reason {@link BlockContent} admits the marker as a member wherever it can.
1796
1827
  */
1797
- type PositionedBookmarkMarker = {
1828
+ type PositionedBookmarkMarker = WritableRecord & {
1798
1829
  /** Modelled siblings (rows for a table, cells for a row) that preceded it. */
1799
1830
  index: number;
1800
1831
  marker: BookmarkStart | BookmarkEnd;
@@ -1811,7 +1842,7 @@ type FieldType = "PAGE" | "NUMPAGES" | "NUMWORDS" | "NUMCHARS" | "DATE" | "TIME"
1811
1842
  /**
1812
1843
  * Simple field (w:fldSimple)
1813
1844
  */
1814
- type SimpleField = {
1845
+ type SimpleField = WritableRecord & {
1815
1846
  type: "simpleField";
1816
1847
  /** Field instruction (e.g., "PAGE \\* MERGEFORMAT") */
1817
1848
  instruction: string;
@@ -1833,7 +1864,7 @@ type SimpleField = {
1833
1864
  /**
1834
1865
  * Complex field (w:fldChar begin/separate/end with w:instrText)
1835
1866
  */
1836
- type ComplexField = {
1867
+ type ComplexField = WritableRecord & {
1837
1868
  type: "complexField";
1838
1869
  /** Field instruction */
1839
1870
  instruction: string;
@@ -1869,7 +1900,7 @@ type Field = SimpleField | ComplexField;
1869
1900
  /**
1870
1901
  * Image size specification
1871
1902
  */
1872
- type ImageSize = {
1903
+ type ImageSize = WritableRecord & {
1873
1904
  /** Width in EMUs (English Metric Units) */
1874
1905
  width: number;
1875
1906
  /** Height in EMUs */
@@ -1879,7 +1910,7 @@ type ImageSize = {
1879
1910
  * The four wrap insets, in EMU. Tri-state per key: absent is the element having
1880
1911
  * stated none, which OOXML reads as zero only once no other carrier states one.
1881
1912
  */
1882
- type WrapDistances = {
1913
+ type WrapDistances = WritableRecord & {
1883
1914
  distT?: number;
1884
1915
  distB?: number;
1885
1916
  distL?: number;
@@ -1894,7 +1925,7 @@ type WrapDistances = {
1894
1925
  * writes each inset back on the element that stated it instead of collecting
1895
1926
  * them all onto the drawing.
1896
1927
  */
1897
- type WrapDistanceSlots = {
1928
+ type WrapDistanceSlots = WritableRecord & {
1898
1929
  /** `wp:inline`, or `wp:anchor` for a floating drawing. */
1899
1930
  drawing?: WrapDistances;
1900
1931
  /** The `wp:wrap*` child of an anchor. */
@@ -1910,14 +1941,14 @@ type WrapDistanceSlots = {
1910
1941
  * records rather than one, so a rebuild writes each back on the element that
1911
1942
  * stated it instead of collecting both onto the drawing.
1912
1943
  */
1913
- type EffectExtentSlots = {
1944
+ type EffectExtentSlots = WritableRecord & {
1914
1945
  /** `wp:inline`, or `wp:anchor` for a floating drawing. */
1915
1946
  drawing?: ImagePadding;
1916
1947
  /** The `wp:wrapSquare` or `wp:wrapTopAndBottom` child of an anchor. */
1917
1948
  wrapChild?: ImagePadding;
1918
1949
  };
1919
1950
  /** A point on a wrap polygon. */
1920
- type WrapPolygonPoint = {
1951
+ type WrapPolygonPoint = WritableRecord & {
1921
1952
  x: number;
1922
1953
  y: number;
1923
1954
  };
@@ -1927,7 +1958,7 @@ type WrapPolygonPoint = {
1927
1958
  * The coordinates are the type's own relative space (a 21600-unit box over the
1928
1959
  * drawing's extent), not EMU, and are kept exactly as authored.
1929
1960
  */
1930
- type ImageWrapPolygon = {
1961
+ type ImageWrapPolygon = WritableRecord & {
1931
1962
  /** `@edited`: absent states nothing, `false` is an explicit "generated". */
1932
1963
  edited?: boolean;
1933
1964
  /** `wp:start`, which `CT_WrapPath` requires. */
@@ -1938,7 +1969,7 @@ type ImageWrapPolygon = {
1938
1969
  /**
1939
1970
  * Image wrap type for floating images
1940
1971
  */
1941
- type ImageWrap = {
1972
+ type ImageWrap = WritableRecord & {
1942
1973
  type: "inline" | "square" | "tight" | "through" | "topAndBottom" | "behind" | "inFront";
1943
1974
  /** Wrap text direction */
1944
1975
  wrapText?: "bothSides" | "left" | "right" | "largest";
@@ -1959,7 +1990,7 @@ type ImageWrap = {
1959
1990
  * `wp:docPr`, `pic:cNvPr` and `wps:cNvPr` each have their own set, and they are
1960
1991
  * the object's accessible name and alt text rather than folio's to mint.
1961
1992
  */
1962
- type NonVisualDrawingNames = {
1993
+ type NonVisualDrawingNames = WritableRecord & {
1963
1994
  /** `@name`, schema-required, so `""` means the object was never named. */
1964
1995
  name?: string;
1965
1996
  /** `@descr`: alt text, accessibility content. */
@@ -1979,11 +2010,11 @@ type NonVisualDrawingNames = {
1979
2010
  * rebuild then writes OOXML's own default for the five `CT_Anchor` requires
1980
2011
  * rather than a value folio chose.
1981
2012
  */
1982
- type DrawingAnchor = {
2013
+ type DrawingAnchor = WritableRecord & {
1983
2014
  /** `@simplePos`: position from `wp:simplePos` rather than `positionH`/`positionV`. */
1984
2015
  useSimplePosition?: boolean;
1985
2016
  /** `wp:simplePos` itself, in EMUs. */
1986
- simplePosition?: {
2017
+ simplePosition?: WritableRecord & {
1987
2018
  x: number;
1988
2019
  y: number;
1989
2020
  };
@@ -2001,15 +2032,15 @@ type DrawingAnchor = {
2001
2032
  /**
2002
2033
  * Position for floating images
2003
2034
  */
2004
- type ImagePosition = {
2035
+ type ImagePosition = WritableRecord & {
2005
2036
  /** Horizontal positioning */
2006
- horizontal: {
2037
+ horizontal: WritableRecord & {
2007
2038
  relativeTo: "character" | "column" | "insideMargin" | "leftMargin" | "margin" | "outsideMargin" | "page" | "rightMargin";
2008
2039
  alignment?: "left" | "right" | "center" | "inside" | "outside";
2009
2040
  posOffset?: number;
2010
2041
  };
2011
2042
  /** Vertical positioning */
2012
- vertical: {
2043
+ vertical: WritableRecord & {
2013
2044
  relativeTo: "insideMargin" | "line" | "margin" | "outsideMargin" | "page" | "paragraph" | "topMargin" | "bottomMargin";
2014
2045
  alignment?: "top" | "bottom" | "center" | "inside" | "outside";
2015
2046
  posOffset?: number;
@@ -2018,7 +2049,7 @@ type ImagePosition = {
2018
2049
  /**
2019
2050
  * Image transformation
2020
2051
  */
2021
- type ImageTransform = {
2052
+ type ImageTransform = WritableRecord & {
2022
2053
  /** Rotation in degrees */
2023
2054
  rotation?: number;
2024
2055
  /** Flip horizontal */
@@ -2029,7 +2060,7 @@ type ImageTransform = {
2029
2060
  /**
2030
2061
  * Image padding/margins
2031
2062
  */
2032
- type ImagePadding = {
2063
+ type ImagePadding = WritableRecord & {
2033
2064
  top?: number;
2034
2065
  bottom?: number;
2035
2066
  left?: number;
@@ -2042,7 +2073,7 @@ type ImagePadding = {
2042
2073
  *
2043
2074
  * eigenpal #424 (image-crop subset).
2044
2075
  */
2045
- type ImageCrop = {
2076
+ type ImageCrop = WritableRecord & {
2046
2077
  left?: number;
2047
2078
  top?: number;
2048
2079
  right?: number;
@@ -2053,7 +2084,7 @@ type ImageCrop = {
2053
2084
  * attribute order. A field is undefined when the authored XML omits the
2054
2085
  * attribute, so a round-trip never materializes a lock the author never wrote.
2055
2086
  */
2056
- type ImageFrameLocks = {
2087
+ type ImageFrameLocks = WritableRecord & {
2057
2088
  noGrp?: boolean;
2058
2089
  noDrilldown?: boolean;
2059
2090
  noSelect?: boolean;
@@ -2065,14 +2096,14 @@ type ImageFrameLocks = {
2065
2096
  * A `wp:docPr` link as authored. `rId` is the target it named, so comparing it
2066
2097
  * with the model's tells a retargeted link from an untouched one.
2067
2098
  */
2068
- type ImageDocPrLink = {
2099
+ type ImageDocPrLink = WritableRecord & {
2069
2100
  xml: string;
2070
2101
  rId?: string;
2071
2102
  };
2072
2103
  /**
2073
2104
  * Embedded image (w:drawing)
2074
2105
  */
2075
- type Image = {
2106
+ type Image = WritableRecord & {
2076
2107
  type: "image";
2077
2108
  /** Unique ID */
2078
2109
  id?: string;
@@ -2178,7 +2209,7 @@ type Image = {
2178
2209
  /** Image outline/border */
2179
2210
  outline?: ShapeOutline;
2180
2211
  /** Image effects */
2181
- effects?: {
2212
+ effects?: WritableRecord & {
2182
2213
  brightness?: number;
2183
2214
  contrast?: number;
2184
2215
  saturation?: number;
@@ -2189,14 +2220,14 @@ type Image = {
2189
2220
  */
2190
2221
  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";
2191
2222
  /** Authored adjustment formula for a preset DrawingML geometry. */
2192
- type ShapeGeometryAdjustment = {
2223
+ type ShapeGeometryAdjustment = WritableRecord & {
2193
2224
  name: string;
2194
2225
  formula: string;
2195
2226
  };
2196
2227
  /**
2197
2228
  * Shape fill type
2198
2229
  */
2199
- type ShapeFill = {
2230
+ type ShapeFill = WritableRecord & {
2200
2231
  type: "none" | "solid" | "gradient" | "pattern" | "picture";
2201
2232
  /**
2202
2233
  * Authored DrawingML retained when the normalized projection is incomplete.
@@ -2206,7 +2237,7 @@ type ShapeFill = {
2206
2237
  /** Solid fill color */
2207
2238
  color?: ColorValue;
2208
2239
  /** Gradient stops for gradient fill */
2209
- gradient?: {
2240
+ gradient?: WritableRecord & {
2210
2241
  type: "linear" | "radial" | "rectangular" | "path";
2211
2242
  angle?: number;
2212
2243
  /**
@@ -2214,16 +2245,16 @@ type ShapeFill = {
2214
2245
  * with the fill region (ECMA-376 §20.1.8.41). Absent means not stated.
2215
2246
  */
2216
2247
  scaled?: boolean;
2217
- stops: {
2248
+ stops: (WritableRecord & {
2218
2249
  position: number;
2219
2250
  color: ColorValue;
2220
- }[];
2251
+ })[];
2221
2252
  };
2222
2253
  };
2223
2254
  /**
2224
2255
  * Shape outline/stroke
2225
2256
  */
2226
- type ShapeOutline = {
2257
+ type ShapeOutline = WritableRecord & {
2227
2258
  /**
2228
2259
  * Authored DrawingML retained for lossless round-trips. Serializers prefer
2229
2260
  * this value; callers modifying structured outline fields must omit it.
@@ -2246,14 +2277,16 @@ type ShapeOutline = {
2246
2277
  /** Line join */
2247
2278
  join?: "bevel" | "miter" | "round";
2248
2279
  /** Head arrow */
2249
- headEnd?: {
2250
- type: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2280
+ headEnd?: WritableRecord & {
2281
+ /** `@type`; absent when the source omits it (the schema default is none). */
2282
+ type?: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2251
2283
  width?: "sm" | "med" | "lg";
2252
2284
  length?: "sm" | "med" | "lg";
2253
2285
  };
2254
2286
  /** Tail arrow */
2255
- tailEnd?: {
2256
- type: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2287
+ tailEnd?: WritableRecord & {
2288
+ /** `@type`; absent when the source omits it (the schema default is none). */
2289
+ type?: "none" | "triangle" | "stealth" | "diamond" | "oval" | "arrow";
2257
2290
  width?: "sm" | "med" | "lg";
2258
2291
  length?: "sm" | "med" | "lg";
2259
2292
  };
@@ -2261,9 +2294,9 @@ type ShapeOutline = {
2261
2294
  /**
2262
2295
  * Text body inside a shape
2263
2296
  */
2264
- type ShapeTextBody = {
2297
+ type ShapeTextBody = WritableRecord & {
2265
2298
  /** Authored DrawingML WordArt metadata. */
2266
- wordArt?: {
2299
+ wordArt?: WritableRecord & {
2267
2300
  /** Authored `wps:bodyPr/@fromWordArt`; omitted when the source omitted it. */
2268
2301
  fromWordArt?: boolean;
2269
2302
  preset?: string;
@@ -2282,7 +2315,7 @@ type ShapeTextBody = {
2282
2315
  /** Horizontal text wrapping inside the shape */
2283
2316
  textWrap?: "square" | "none";
2284
2317
  /** Text margins */
2285
- margins?: {
2318
+ margins?: WritableRecord & {
2286
2319
  top?: number;
2287
2320
  bottom?: number;
2288
2321
  left?: number;
@@ -2300,7 +2333,7 @@ type ShapeTextBody = {
2300
2333
  * than a drawing of its own: a writer puts the text back into the group and
2301
2334
  * writes no second drawing for it.
2302
2335
  */
2303
- type DrawingGroupChild = {
2336
+ type DrawingGroupChild = WritableRecord & {
2304
2337
  /**
2305
2338
  * Element indices from the `wpg:wgp` down to the `wps:wsp`, one per level,
2306
2339
  * passing through any nested `wpg:grpSp`.
@@ -2314,7 +2347,7 @@ type DrawingGroupChild = {
2314
2347
  /**
2315
2348
  * Shape/drawing object (wps:wsp)
2316
2349
  */
2317
- type Shape = {
2350
+ type Shape = WritableRecord & {
2318
2351
  type: "shape";
2319
2352
  /** Shape type preset */
2320
2353
  shapeType: ShapeType;
@@ -2358,7 +2391,7 @@ type Shape = {
2358
2391
  /**
2359
2392
  * Text box (floating text container)
2360
2393
  */
2361
- type TextBox = {
2394
+ type TextBox = WritableRecord & {
2362
2395
  type: "textBox";
2363
2396
  /** Unique ID */
2364
2397
  id?: string;
@@ -2393,7 +2426,7 @@ type TextBox = {
2393
2426
  /** Vertical text alignment inside the box */
2394
2427
  verticalAlign?: ShapeTextBody["anchor"];
2395
2428
  /** Internal margins */
2396
- margins?: {
2429
+ margins?: WritableRecord & {
2397
2430
  top?: number;
2398
2431
  bottom?: number;
2399
2432
  left?: number;
@@ -2405,7 +2438,7 @@ type TextBox = {
2405
2438
  /**
2406
2439
  * Table cell
2407
2440
  */
2408
- type TableCell = {
2441
+ type TableCell = WritableRecord & {
2409
2442
  type: "tableCell";
2410
2443
  /** Authored cell identifier (`w:tc/@w:id`). */
2411
2444
  id?: string;
@@ -2438,31 +2471,31 @@ type TableCell = {
2438
2471
  * marker inside its authored wrapper and prevents one control from being
2439
2472
  * rebuilt as two wrappers around the children on either side of it.
2440
2473
  */
2441
- type TablePreservedMarkup = {
2442
- children?: (PreservedChild & {
2474
+ type TablePreservedMarkup = WritableRecord & {
2475
+ children?: (PreservedChild & WritableRecord & {
2443
2476
  contentControls?: SdtProperties[];
2444
2477
  carrierStack?: TableContentCarrier[];
2445
2478
  })[];
2446
2479
  };
2447
2480
  /** Replayable shell for a transparent custom-XML wrapper around table structure. */
2448
- type TableCustomXmlWrapper = {
2481
+ type TableCustomXmlWrapper = WritableRecord & {
2449
2482
  /** Parser-assigned identity; equal shell markup can still name distinct wrappers. */
2450
2483
  id: number;
2451
2484
  openingXml: string;
2452
2485
  closingXml: string;
2453
2486
  };
2454
2487
  /** Ordered transparent carrier stack on table, row and cell children. */
2455
- type TableContentCarrier = {
2488
+ type TableContentCarrier = WritableRecord & ({
2456
2489
  type: "customXml";
2457
2490
  wrapper: TableCustomXmlWrapper;
2458
2491
  } | {
2459
2492
  type: "sdt";
2460
2493
  properties: SdtProperties;
2461
- };
2494
+ });
2462
2495
  /**
2463
2496
  * Table row
2464
2497
  */
2465
- type TableRow = {
2498
+ type TableRow = WritableRecord & {
2466
2499
  type: "tableRow";
2467
2500
  /** Row formatting */
2468
2501
  formatting?: TableRowFormatting;
@@ -2546,7 +2579,7 @@ type TableRow = {
2546
2579
  /**
2547
2580
  * Table (w:tbl)
2548
2581
  */
2549
- type Table = {
2582
+ type Table = WritableRecord & {
2550
2583
  type: "table";
2551
2584
  /** Table formatting */
2552
2585
  formatting?: TableFormatting;
@@ -2583,10 +2616,10 @@ type Table = {
2583
2616
  /**
2584
2617
  * A comment (w:comment) from comments.xml
2585
2618
  */
2586
- type Comment = {
2619
+ type Comment = WritableRecord & {
2587
2620
  /** Comment ID (matches commentRangeStart/End) */
2588
2621
  id: number;
2589
- /** Whether the author selected content or placed a point annotation. */
2622
+ /** Whether the author selected content or placed a point annotation; absent for an unanchored source definition. */
2590
2623
  anchorKind?: "point" | "range";
2591
2624
  /** Author name */
2592
2625
  author: string;
@@ -2620,27 +2653,27 @@ type Comment = {
2620
2653
  /**
2621
2654
  * Comment range start marker in paragraph content
2622
2655
  */
2623
- type CommentRangeStart = {
2656
+ type CommentRangeStart = WritableRecord & {
2624
2657
  type: "commentRangeStart";
2625
2658
  } & MarkupRangeMarker;
2626
2659
  /**
2627
2660
  * Comment range end marker in paragraph content
2628
2661
  */
2629
- type CommentRangeEnd = {
2662
+ type CommentRangeEnd = WritableRecord & {
2630
2663
  type: "commentRangeEnd";
2631
2664
  } & MarkupRangeMarker;
2632
2665
  /**
2633
2666
  * Point comment reference (w:commentReference without an explicit range).
2634
2667
  * Word sometimes stores comments this way; we anchor them to nearby text for display.
2635
2668
  */
2636
- type CommentReference = {
2669
+ type CommentReference = WritableRecord & {
2637
2670
  type: "commentReference";
2638
2671
  id: number;
2639
2672
  };
2640
2673
  /**
2641
2674
  * Math equation content (m:oMath or m:oMathPara)
2642
2675
  */
2643
- type MathEquation = {
2676
+ type MathEquation = WritableRecord & {
2644
2677
  type: "mathEquation";
2645
2678
  /** Whether this is a block (oMathPara) or inline (oMath) equation */
2646
2679
  display: "inline" | "block";
@@ -2672,7 +2705,7 @@ declare function normalizeRevisionId(id: number): number;
2672
2705
  /**
2673
2706
  * Tracked change metadata (w:ins, w:del attributes)
2674
2707
  */
2675
- type TrackedChangeInfo = {
2708
+ type TrackedChangeInfo = WritableRecord & {
2676
2709
  /** Revision ID */
2677
2710
  id: number;
2678
2711
  /** Author who made the change */
@@ -2690,7 +2723,7 @@ type TrackedChangeInfo = {
2690
2723
  * namespace the part declares on its root, and re-emitting it under a
2691
2724
  * prefix of our choosing would name one that is not there.
2692
2725
  */
2693
- utcDate?: {
2726
+ utcDate?: WritableRecord & {
2694
2727
  attribute: string;
2695
2728
  value: string;
2696
2729
  };
@@ -2705,7 +2738,7 @@ type TrackedChangeInfo = {
2705
2738
  /**
2706
2739
  * Generic tracked property-change wrapper metadata (w:*PrChange)
2707
2740
  */
2708
- type PropertyChangeInfo = {
2741
+ type PropertyChangeInfo = WritableRecord & {
2709
2742
  /** Optional revision session ID */
2710
2743
  rsid?: string;
2711
2744
  } & TrackedChangeInfo;
@@ -2724,8 +2757,18 @@ type TrackedRunContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | Comment
2724
2757
  declare const INSERTION_SEAM_POLICIES: {
2725
2758
  readonly MERGE_PLAIN_RUNS: "merge-plain-runs";
2726
2759
  };
2760
+ /**
2761
+ * Whether an insertion marked as what its paragraph stands for had resolution
2762
+ * joins of its own: without, its zero depths only carry the marker, and it
2763
+ * resolves as an insertion with no joins.
2764
+ */
2765
+ declare const HELD_PARAGRAPH_JOINS: {
2766
+ readonly OWN: "own-joins";
2767
+ readonly NONE: "no-joins";
2768
+ };
2769
+ type HeldParagraphJoins = (typeof HELD_PARAGRAPH_JOINS)[keyof typeof HELD_PARAGRAPH_JOINS];
2727
2770
  /** Operation-created seams only; source OOXML has no such provenance. */
2728
- type TrackedResolutionJoins = {
2771
+ type TrackedResolutionJoins = WritableRecord & {
2729
2772
  /** Editor text acceptance joins only the inserted payload's plain-run seams. */
2730
2773
  acceptance?: typeof INSERTION_SEAM_POLICIES.MERGE_PLAIN_RUNS;
2731
2774
  /** Exact join depths when the wrapper is retained and unwrapped. */
@@ -2734,48 +2777,86 @@ type TrackedResolutionJoins = {
2734
2777
  /** Exact join depth when the wrapper is removed. */
2735
2778
  remove: number;
2736
2779
  /**
2737
- * Sides where the wrapper now meets accepted new content rather than a
2738
- * source piece: resolving it joins plain runs there and nothing else.
2780
+ * Sides where the wrapper meets no source piece of its cut: accepted new
2781
+ * content beside it, or, at the edge of accepted content it stands in,
2782
+ * whatever lies beyond that content. Resolving it joins plain runs there
2783
+ * and nothing else; a join recorded there takes the kept range markers that
2784
+ * name its side inside the content, as deep as it says.
2739
2785
  */
2740
2786
  plainSides?: readonly ("before" | "after")[];
2787
+ /**
2788
+ * An acceptance took every record of the container this insertion stands
2789
+ * in other than pending insertions. Rejecting the last of them empties the
2790
+ * container away, as accepting that content last does.
2791
+ */
2792
+ emptiedHolder?: true;
2793
+ /**
2794
+ * The paragraph this insertion stands in ends a block content control or
2795
+ * stands before a block it cannot join, and its added mark was rejected
2796
+ * while the paragraph held only pending insertions: it stands only for
2797
+ * them, as there was nothing to join. Rejecting the last of them removes the paragraph, as rejecting
2798
+ * the mark and them at once does. The value says whether the insertion
2799
+ * had joins of its own when marked; resolving it reads it without the
2800
+ * marker either way.
2801
+ */
2802
+ holdsParagraph?: HeldParagraphJoins;
2803
+ /**
2804
+ * This deletion is all its content control holds: it deleted exactly the
2805
+ * control's text. Accepting it leaves the control, emptied, as deleting
2806
+ * that text directly does.
2807
+ */
2808
+ holdsControlText?: true;
2809
+ /**
2810
+ * Edges of the container this change stands in where accepted content
2811
+ * meets it that its insertion joined to nothing there. A resolution that
2812
+ * empties the container leaves it standing there, emptied, as resolving
2813
+ * the change before that acceptance does.
2814
+ */
2815
+ closedHolder?: readonly ("before" | "after")[];
2741
2816
  /** A split seam survives only while all intervening insertions await rejection. */
2742
- deferredRemove?: readonly {
2817
+ deferredRemove?: readonly (WritableRecord & {
2743
2818
  depth: number;
2744
2819
  blockers: readonly number[];
2745
- }[];
2820
+ /**
2821
+ * On a pending deletion or move source that holds a piece of the cut
2822
+ * record: the edge of it where that piece meets the seam. Rejecting it
2823
+ * joins there; accepting it retires the seam.
2824
+ */
2825
+ edge?: "start" | "end";
2826
+ })[];
2746
2827
  /** Source identities handed to the retained suffix when a deleted prefix goes. */
2747
- retainedAfter?: readonly {
2828
+ retainedAfter?: readonly (WritableRecord & {
2748
2829
  depth: number;
2749
- source: readonly {
2830
+ source: readonly (WritableRecord & {
2750
2831
  space: "revision" | "control";
2751
2832
  id: number;
2752
- }[];
2753
- target: readonly {
2833
+ })[];
2834
+ target: readonly (WritableRecord & {
2754
2835
  space: "revision" | "control";
2755
2836
  id: number;
2756
- }[];
2757
- }[];
2837
+ })[];
2838
+ })[];
2758
2839
  /**
2759
2840
  * Identities of the record `levels` above this wrapper, handed to the
2760
2841
  * piece of it that an edit cut off after this wrapper, when removing this
2761
2842
  * wrapper leaves that record empty. Saved as its own ignorable attribute.
2762
2843
  */
2763
- retainedEnclosing?: readonly {
2844
+ retainedEnclosing?: readonly (WritableRecord & {
2764
2845
  levels: number;
2765
- source: readonly {
2846
+ source: readonly (WritableRecord & {
2766
2847
  space: "revision" | "control";
2767
2848
  id: number;
2768
- }[];
2769
- target: readonly {
2849
+ })[];
2850
+ target: readonly (WritableRecord & {
2770
2851
  space: "revision" | "control";
2771
2852
  id: number;
2772
- }[];
2773
- }[];
2853
+ })[];
2854
+ })[];
2774
2855
  };
2775
2856
  /**
2776
2857
  * Insertion wrapper (w:ins) — runs inserted by tracked changes
2777
2858
  */
2778
- type Insertion = {
2859
+ type Insertion = WritableRecord & {
2779
2860
  type: "insertion";
2780
2861
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2781
2862
  resolutionJoins?: TrackedResolutionJoins;
@@ -2787,7 +2868,7 @@ type Insertion = {
2787
2868
  /**
2788
2869
  * Deletion wrapper (w:del) — runs deleted by tracked changes
2789
2870
  */
2790
- type Deletion = {
2871
+ type Deletion = WritableRecord & {
2791
2872
  type: "deletion";
2792
2873
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2793
2874
  resolutionJoins?: TrackedResolutionJoins;
@@ -2799,7 +2880,7 @@ type Deletion = {
2799
2880
  /**
2800
2881
  * Move-from wrapper (w:moveFrom) — content moved away from this position
2801
2882
  */
2802
- type MoveFrom = {
2883
+ type MoveFrom = WritableRecord & {
2803
2884
  type: "moveFrom";
2804
2885
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2805
2886
  resolutionJoins?: TrackedResolutionJoins;
@@ -2811,7 +2892,7 @@ type MoveFrom = {
2811
2892
  /**
2812
2893
  * Move-to wrapper (w:moveTo) — content moved into this position
2813
2894
  */
2814
- type MoveTo = {
2895
+ type MoveTo = WritableRecord & {
2815
2896
  type: "moveTo";
2816
2897
  /** In-memory cut provenance; imported OOXML wrappers omit this field. */
2817
2898
  resolutionJoins?: TrackedResolutionJoins;
@@ -2859,7 +2940,7 @@ type BidiControl = (typeof BIDI_CONTROLS)[keyof typeof BIDI_CONTROLS];
2859
2940
  * - `smartTag` is `w:smartTag` — §17.5.1.9.
2860
2941
  * - `customXml` is the run-level `w:customXml` — §17.5.1.6.
2861
2942
  */
2862
- type InlineWrapper = {
2943
+ type InlineWrapper = WritableRecord & ({
2863
2944
  type: "inlineWrapper";
2864
2945
  kind: "bidi";
2865
2946
  control: BidiControl;
@@ -2892,31 +2973,31 @@ type InlineWrapper = {
2892
2973
  /** `w:customXmlPr` verbatim; see the `smartTag` branch. */
2893
2974
  propertiesXml?: string;
2894
2975
  content: ParagraphContent[];
2895
- };
2976
+ });
2896
2977
  /**
2897
2978
  * Move-from range start marker (w:moveFromRangeStart) — ECMA-376 §17.13.5.22
2898
2979
  * Pairs with moveFromRangeEnd to delimit the source of a move in the document.
2899
2980
  */
2900
- type MoveFromRangeStart = {
2981
+ type MoveFromRangeStart = WritableRecord & {
2901
2982
  type: "moveFromRangeStart";
2902
2983
  } & MoveBookmarkMarker & CopyOriginMarker;
2903
2984
  /**
2904
2985
  * Move-from range end marker (w:moveFromRangeEnd)
2905
2986
  */
2906
- type MoveFromRangeEnd = {
2987
+ type MoveFromRangeEnd = WritableRecord & {
2907
2988
  type: "moveFromRangeEnd";
2908
2989
  } & MarkupRangeMarker & CopyOriginMarker;
2909
2990
  /**
2910
2991
  * Move-to range start marker (w:moveToRangeStart) — ECMA-376 §17.13.5.24
2911
2992
  * Pairs with moveToRangeEnd to delimit the destination of a move.
2912
2993
  */
2913
- type MoveToRangeStart = {
2994
+ type MoveToRangeStart = WritableRecord & {
2914
2995
  type: "moveToRangeStart";
2915
2996
  } & MoveBookmarkMarker & CopyOriginMarker;
2916
2997
  /**
2917
2998
  * Move-to range end marker (w:moveToRangeEnd)
2918
2999
  */
2919
- type MoveToRangeEnd = {
3000
+ type MoveToRangeEnd = WritableRecord & {
2920
3001
  type: "moveToRangeEnd";
2921
3002
  } & MarkupRangeMarker & CopyOriginMarker;
2922
3003
  /**
@@ -2926,7 +3007,7 @@ type TrackedRunChange = Insertion | Deletion | MoveFrom | MoveTo;
2926
3007
  /**
2927
3008
  * Run property change (w:rPrChange)
2928
3009
  */
2929
- type RunPropertyChange = {
3010
+ type RunPropertyChange = WritableRecord & {
2930
3011
  type: "runPropertyChange";
2931
3012
  /** Cuts created by this action; omitted on imported OOXML records. */
2932
3013
  boundaryJoins?: readonly ("before" | "after")[];
@@ -2940,10 +3021,18 @@ type RunPropertyChange = {
2940
3021
  /**
2941
3022
  * Paragraph property change (w:pPrChange)
2942
3023
  */
2943
- type ParagraphPropertyChange = {
3024
+ type ParagraphPropertyChange = WritableRecord & {
2944
3025
  type: "paragraphPropertyChange";
2945
3026
  /** Tracked change metadata */
2946
3027
  info: PropertyChangeInfo;
3028
+ /**
3029
+ * The revision this change belongs to: the paragraph-mark deletion of the
3030
+ * tracked join that set these properties. Accepting or rejecting that
3031
+ * revision resolves this change the same way; this change alone still
3032
+ * resolves by its own id. Folio review history (`folio:resolvesWith`);
3033
+ * omitted on an ordinary property change.
3034
+ */
3035
+ resolvesWith?: number;
2947
3036
  /** Paragraph properties before the tracked change */
2948
3037
  previousFormatting?: ParagraphFormatting;
2949
3038
  /** Paragraph properties after the tracked change (editor model convenience) */
@@ -2952,7 +3041,7 @@ type ParagraphPropertyChange = {
2952
3041
  /**
2953
3042
  * Table property change (w:tblPrChange)
2954
3043
  */
2955
- type TablePropertyChange = {
3044
+ type TablePropertyChange = WritableRecord & {
2956
3045
  type: "tablePropertyChange";
2957
3046
  /** Tracked change metadata */
2958
3047
  info: PropertyChangeInfo;
@@ -2968,7 +3057,7 @@ type TablePropertyChange = {
2968
3057
  * subset and is written as a different element in a different container. A
2969
3058
  * shared discriminator would let one reach the other's serializer.
2970
3059
  */
2971
- type TablePropertyExceptionChange = {
3060
+ type TablePropertyExceptionChange = WritableRecord & {
2972
3061
  type: "tablePropertyExceptionChange";
2973
3062
  /** Tracked change metadata */
2974
3063
  info: PropertyChangeInfo;
@@ -2980,7 +3069,7 @@ type TablePropertyExceptionChange = {
2980
3069
  /**
2981
3070
  * Table row property change (w:trPrChange)
2982
3071
  */
2983
- type TableRowPropertyChange = {
3072
+ type TableRowPropertyChange = WritableRecord & {
2984
3073
  type: "tableRowPropertyChange";
2985
3074
  /** Tracked change metadata */
2986
3075
  info: PropertyChangeInfo;
@@ -2992,7 +3081,7 @@ type TableRowPropertyChange = {
2992
3081
  /**
2993
3082
  * Table cell property change (w:tcPrChange)
2994
3083
  */
2995
- type TableCellPropertyChange = {
3084
+ type TableCellPropertyChange = WritableRecord & {
2996
3085
  type: "tableCellPropertyChange";
2997
3086
  /** Tracked change metadata */
2998
3087
  info: PropertyChangeInfo;
@@ -3014,14 +3103,14 @@ type TableCellPropertyChange = {
3014
3103
  /**
3015
3104
  * Section property change (w:sectPrChange)
3016
3105
  */
3017
- type SectionPropertyChange = {
3106
+ type SectionPropertyChange = WritableRecord & {
3018
3107
  type: "sectionPropertyChange";
3019
3108
  /** Tracked change metadata */
3020
3109
  info: PropertyChangeInfo;
3021
3110
  /** Section properties before the tracked change */
3022
3111
  previousProperties?: SectionProperties;
3023
3112
  /** Complete prior header/footer selection, stored in Folio's ignorable MCE extension. */
3024
- previousReferences?: {
3113
+ previousReferences?: WritableRecord & {
3025
3114
  headerReferences?: HeaderReference[];
3026
3115
  footerReferences?: FooterReference[];
3027
3116
  };
@@ -3061,7 +3150,7 @@ declare const PROPERTY_REVISION_KINDS: Readonly<{
3061
3150
  /**
3062
3151
  * Table structural tracked change metadata (row/cell insert/delete/merge)
3063
3152
  */
3064
- type TableStructuralChangeInfo = {
3153
+ type TableStructuralChangeInfo = WritableRecord & ({
3065
3154
  type: "tableRowInsertion" | "tableRowDeletion" | "tableCellInsertion" | "tableCellDeletion";
3066
3155
  /** Tracked change metadata */
3067
3156
  info: TrackedChangeInfo;
@@ -3073,7 +3162,7 @@ type TableStructuralChangeInfo = {
3073
3162
  verticalMerge?: "continue" | "rest";
3074
3163
  /** Vertical merge state that existed before the revision. */
3075
3164
  verticalMergeOriginal?: "continue" | "rest";
3076
- };
3165
+ });
3077
3166
  /**
3078
3167
  * SDT type (content control type)
3079
3168
  */
@@ -3089,7 +3178,7 @@ type SdtType = "richText" | "plainText" | "date" | "dropdown" | "comboBox" | "ch
3089
3178
  * sequence gives them. Together the two are the whole element: the serializer
3090
3179
  * writes both halves and nothing replays the source's bytes whole.
3091
3180
  */
3092
- type SdtProperties = {
3181
+ type SdtProperties = WritableRecord & {
3093
3182
  /** SDT type (a projection of the control-kind element the set holds). */
3094
3183
  sdtType: SdtType;
3095
3184
  /** Numeric id (`w:id/@w:val`). */
@@ -3117,10 +3206,10 @@ type SdtProperties = {
3117
3206
  */
3118
3207
  dateValueISO?: string;
3119
3208
  /** Dropdown/combobox list items. */
3120
- listItems?: {
3209
+ listItems?: (WritableRecord & {
3121
3210
  displayText: string;
3122
3211
  value: string;
3123
- }[];
3212
+ })[];
3124
3213
  /**
3125
3214
  * Selected dropdown / comboBox value (`w:dropDownList@w:lastValue`).
3126
3215
  * Persisted as the OOXML value, independent of the body display text.
@@ -3173,7 +3262,7 @@ type SdtProperties = {
3173
3262
  * absent element does not, which is why presence is the record rather than a
3174
3263
  * flag on {@link SdtProperties}.
3175
3264
  */
3176
- type SdtEndProperties = {
3265
+ type SdtEndProperties = WritableRecord & {
3177
3266
  /** `w:sdtEndPr/w:rPr`, absent when the element declared none. */
3178
3267
  runProperties?: TextFormatting;
3179
3268
  };
@@ -3195,7 +3284,7 @@ type SdtEndProperties = {
3195
3284
  * `EG_RangeMarkupElements` and retain their authored position inside the
3196
3285
  * control when the editor resolves nearby content.
3197
3286
  */
3198
- type InlineSdt = {
3287
+ type InlineSdt = WritableRecord & {
3199
3288
  type: "inlineSdt";
3200
3289
  /** SDT properties */
3201
3290
  properties: SdtProperties;
@@ -3209,7 +3298,7 @@ type InlineSdt = {
3209
3298
  * OOXML allows block SDTs to nest — e.g. a repeating-section control
3210
3299
  * whose row is itself a content control.
3211
3300
  */
3212
- type BlockSdt = {
3301
+ type BlockSdt = WritableRecord & {
3213
3302
  type: "blockSdt";
3214
3303
  /** SDT properties; `properties.preserved` carries what the model does not. */
3215
3304
  properties: SdtProperties;
@@ -3217,7 +3306,7 @@ type BlockSdt = {
3217
3306
  content: BlockContent[];
3218
3307
  };
3219
3308
  /** Transparent block-level `w:customXml` wrapper. */
3220
- type BlockCustomXml = {
3309
+ type BlockCustomXml = WritableRecord & {
3221
3310
  type: "blockCustomXml";
3222
3311
  /** Replayable start tag, including attributes and in-scope namespace bindings. */
3223
3312
  openingXml: string;
@@ -3246,7 +3335,7 @@ type BlockCustomXml = {
3246
3335
  * markup puts on the line, which is empty for everything except a transparent
3247
3336
  * wrapper such as `w:customXml`.
3248
3337
  */
3249
- type PreservedInline = {
3338
+ type PreservedInline = WritableRecord & {
3250
3339
  type: "preservedInline";
3251
3340
  /** Replayable markup for one child, as `captureVerbatimXml` wrote it. */
3252
3341
  xml: string;
@@ -3266,13 +3355,13 @@ type PreservedInline = {
3266
3355
  * otherwise be. A capture is hidden only while the paragraph's marker shows
3267
3356
  * it; anywhere else it is replaced by this item, which shows on the line.
3268
3357
  */
3269
- type FoldedListNumber = {
3358
+ type FoldedListNumber = (WritableRecord & {
3270
3359
  kind: "field";
3271
3360
  field: ComplexField;
3272
- } | {
3361
+ }) | (WritableRecord & {
3273
3362
  kind: "tab";
3274
3363
  run: Run;
3275
- };
3364
+ });
3276
3365
  /**
3277
3366
  * Paragraph content types
3278
3367
  */
@@ -3296,11 +3385,18 @@ declare const PARAGRAPH_MARK_CHANGE_KINDS: readonly ["moveFrom", "moveTo", "ins"
3296
3385
  /** One of {@link PARAGRAPH_MARK_CHANGE_KINDS}. */
3297
3386
  type ParagraphMarkChangeKind = (typeof PARAGRAPH_MARK_CHANGE_KINDS)[number];
3298
3387
  /** A paragraph-mark tracked change, written under `<w:pPr><w:rPr>`. */
3299
- type ParagraphMarkChange = {
3388
+ type ParagraphMarkChange = WritableRecord & {
3300
3389
  kind: ParagraphMarkChangeKind;
3301
3390
  info: TrackedChangeInfo;
3302
3391
  /** Exact source-cut depth for rejection; absent in ordinary imported revisions. */
3303
3392
  resolutionJoin?: number | undefined;
3393
+ /**
3394
+ * When the split whose cut `resolutionJoin` records was made, on a deleted
3395
+ * mark that holds the cut of the inserted break it deletes after that
3396
+ * insertion was accepted. Saved as folio's own ignorable review
3397
+ * provenance; a reader that does not know it joins at the deletion's date.
3398
+ */
3399
+ splitDate?: string | undefined;
3304
3400
  /**
3305
3401
  * Which paragraph rejecting this inserted mark keeps: `"first"` when the
3306
3402
  * paragraph after it took over the mark this one had, so this one is the
@@ -3309,6 +3405,31 @@ type ParagraphMarkChange = {
3309
3405
  * reader that does not know it joins as any rejected mark does.
3310
3406
  */
3311
3407
  survivor?: "first" | undefined;
3408
+ /**
3409
+ * With `survivor: "first"`: the revision id of the tracked mark the
3410
+ * paragraph after took over (at the end of a chain of such marks), which
3411
+ * that paragraph holds. When the paragraph holding it goes (rejected, joined
3412
+ * on or deleted), the mark keeps the paragraph after on rejection, the one
3413
+ * that was there before both; when the mark is accepted, the paragraph
3414
+ * stays and the id goes. Absent when the taken-over mark was no tracked
3415
+ * change. Saved as folio's own ignorable review provenance.
3416
+ *
3417
+ * Compatibility: a file saved before folio recorded it carries
3418
+ * `survivor: "first"` alone, read as that same positional flag. Remove that
3419
+ * reading when no supported document can still carry the flag alone.
3420
+ */
3421
+ takenOverMark?: number | undefined;
3422
+ /**
3423
+ * A later pending deletion of this added mark, `w:del` written beside its
3424
+ * `w:ins` or `w:moveTo`: another author deleted the break an insertion
3425
+ * made, and either can be resolved first. Absent on deleted and
3426
+ * moved-from marks.
3427
+ */
3428
+ deletion?: ParagraphMarkDeletion | undefined;
3429
+ };
3430
+ /** The later deletion an added paragraph mark holds beside its insertion. */
3431
+ type ParagraphMarkDeletion = WritableRecord & {
3432
+ info: TrackedChangeInfo;
3312
3433
  };
3313
3434
  declare const REVIEW_CARRIERS: {
3314
3435
  readonly TERMINAL_TABLE: "terminal-table";
@@ -3316,7 +3437,7 @@ declare const REVIEW_CARRIERS: {
3316
3437
  /** A Folio-private untracked paragraph used to resolve a terminal table deletion. */
3317
3438
  type ReviewCarrier = (typeof REVIEW_CARRIERS)[keyof typeof REVIEW_CARRIERS];
3318
3439
  /** Paragraph (w:p) */
3319
- type Paragraph = {
3440
+ type Paragraph = WritableRecord & {
3320
3441
  type: "paragraph";
3321
3442
  /** Unique paragraph ID */
3322
3443
  paraId?: string;
@@ -3336,7 +3457,10 @@ type Paragraph = {
3336
3457
  listRendering?: ListRendering;
3337
3458
  /** Word's cached layout says this paragraph started on a new rendered page. */
3338
3459
  renderedPageBreakBefore?: boolean;
3339
- /** Section properties (if this paragraph ends a section) */
3460
+ /**
3461
+ * Section properties, if this paragraph ends a section. A section ends
3462
+ * outside every table: no operation puts one on a paragraph in a cell.
3463
+ */
3340
3464
  sectionProperties?: SectionProperties | undefined;
3341
3465
  /**
3342
3466
  * Attributes `w:p` carried that this record has no field for.
@@ -3358,18 +3482,18 @@ type HeaderFooterType = "default" | "first" | "even";
3358
3482
  /**
3359
3483
  * Header or footer reference
3360
3484
  */
3361
- type HeaderReference = {
3485
+ type HeaderReference = WritableRecord & {
3362
3486
  type: HeaderFooterType;
3363
3487
  rId: string;
3364
3488
  };
3365
- type FooterReference = {
3489
+ type FooterReference = WritableRecord & {
3366
3490
  type: HeaderFooterType;
3367
3491
  rId: string;
3368
3492
  };
3369
3493
  /**
3370
3494
  * Header or footer content
3371
3495
  */
3372
- type HeaderFooter = {
3496
+ type HeaderFooter = WritableRecord & {
3373
3497
  type: "header" | "footer";
3374
3498
  /** Header/footer type */
3375
3499
  hdrFtrType: HeaderFooterType;
@@ -3416,7 +3540,7 @@ type HeaderFooter = {
3416
3540
  * Document watermark (MS Word's behind-content page decoration).
3417
3541
  */
3418
3542
  type Watermark = TextWatermark | PictureWatermark;
3419
- type TextWatermark = {
3543
+ type TextWatermark = WritableRecord & {
3420
3544
  kind: "text";
3421
3545
  /** Visible string. Required. */
3422
3546
  text: string;
@@ -3440,7 +3564,7 @@ type TextWatermark = {
3440
3564
  */
3441
3565
  opacity?: number;
3442
3566
  };
3443
- type PictureWatermark = {
3567
+ type PictureWatermark = WritableRecord & {
3444
3568
  kind: "picture";
3445
3569
  /** Relationship id of the image part in `word/_rels/header*.xml.rels`. */
3446
3570
  imageRId: string;
@@ -3493,7 +3617,7 @@ type NoteNumberRestart = "continuous" | "eachSect" | "eachPage";
3493
3617
  /**
3494
3618
  * Footnote properties
3495
3619
  */
3496
- type FootnoteProperties = {
3620
+ type FootnoteProperties = WritableRecord & {
3497
3621
  position?: FootnotePosition;
3498
3622
  numFmt?: NumberFormat;
3499
3623
  /** `w:numFmt/@w:format`, as authored. */
@@ -3504,7 +3628,7 @@ type FootnoteProperties = {
3504
3628
  /**
3505
3629
  * Endnote properties
3506
3630
  */
3507
- type EndnoteProperties = {
3631
+ type EndnoteProperties = WritableRecord & {
3508
3632
  position?: EndnotePosition;
3509
3633
  numFmt?: NumberFormat;
3510
3634
  /** `w:numFmt/@w:format`, as authored. */
@@ -3515,7 +3639,7 @@ type EndnoteProperties = {
3515
3639
  /**
3516
3640
  * Footnote (w:footnote)
3517
3641
  */
3518
- type Footnote = {
3642
+ type Footnote = WritableRecord & {
3519
3643
  type: "footnote";
3520
3644
  /** Footnote ID */
3521
3645
  id: number;
@@ -3533,7 +3657,7 @@ type Footnote = {
3533
3657
  /**
3534
3658
  * Endnote (w:endnote)
3535
3659
  */
3536
- type Endnote = {
3660
+ type Endnote = WritableRecord & {
3537
3661
  type: "endnote";
3538
3662
  /** Endnote ID */
3539
3663
  id: number;
@@ -3564,7 +3688,7 @@ type LineNumberRestart = "continuous" | "newPage" | "newSection";
3564
3688
  /**
3565
3689
  * Column definition
3566
3690
  */
3567
- type Column = {
3691
+ type Column = WritableRecord & {
3568
3692
  /** Column width in twips */
3569
3693
  width?: number;
3570
3694
  /** Space after column in twips */
@@ -3573,7 +3697,7 @@ type Column = {
3573
3697
  /**
3574
3698
  * Section properties (w:sectPr)
3575
3699
  */
3576
- type SectionProperties = {
3700
+ type SectionProperties = WritableRecord & {
3577
3701
  /** Page width in twips */
3578
3702
  pageWidth?: number;
3579
3703
  /** Page height in twips */
@@ -3621,21 +3745,21 @@ type SectionProperties = {
3621
3745
  /** Different odd/even page headers/footers */
3622
3746
  evenAndOddHeaders?: boolean;
3623
3747
  /** Line numbering settings */
3624
- lineNumbers?: {
3748
+ lineNumbers?: WritableRecord & {
3625
3749
  start?: number;
3626
3750
  countBy?: number;
3627
3751
  distance?: number;
3628
3752
  restart?: LineNumberRestart;
3629
3753
  };
3630
3754
  /** Page numbering settings */
3631
- pageNumbering?: {
3755
+ pageNumbering?: WritableRecord & {
3632
3756
  format?: NumberFormat;
3633
3757
  start?: number;
3634
3758
  chapterStyle?: number;
3635
3759
  chapterSeparator?: string;
3636
3760
  };
3637
3761
  /** Page borders */
3638
- pageBorders?: {
3762
+ pageBorders?: WritableRecord & {
3639
3763
  top?: BorderSpec;
3640
3764
  bottom?: BorderSpec;
3641
3765
  left?: BorderSpec;
@@ -3648,7 +3772,7 @@ type SectionProperties = {
3648
3772
  zOrder?: "front" | "back";
3649
3773
  };
3650
3774
  /** Page background */
3651
- background?: {
3775
+ background?: WritableRecord & {
3652
3776
  color?: ColorValue;
3653
3777
  themeColor?: ThemeColorValue;
3654
3778
  themeTint?: string;
@@ -3661,7 +3785,7 @@ type SectionProperties = {
3661
3785
  /** Endnote properties for this section */
3662
3786
  endnotePr?: EndnoteProperties;
3663
3787
  /** Document grid */
3664
- docGrid?: {
3788
+ docGrid?: WritableRecord & {
3665
3789
  type?: "default" | "lines" | "linesAndChars" | "snapToChars";
3666
3790
  linePitch?: number;
3667
3791
  charSpace?: number;
@@ -3707,7 +3831,7 @@ type SectionProperties = {
3707
3831
  * looking for any of those may skip it, and every walker that rebuilds block
3708
3832
  * content must write it back.
3709
3833
  */
3710
- type PreservedBlock = {
3834
+ type PreservedBlock = WritableRecord & {
3711
3835
  type: "preservedBlock";
3712
3836
  /** Replayable markup for one child, as `captureVerbatimXml` wrote it. */
3713
3837
  xml: string;
@@ -3738,7 +3862,7 @@ type TableCellBlock = BlockContent;
3738
3862
  /**
3739
3863
  * Section (implicit or explicit based on sectPr)
3740
3864
  */
3741
- type Section = {
3865
+ type Section = WritableRecord & {
3742
3866
  /** Section properties */
3743
3867
  properties: SectionProperties;
3744
3868
  /** Content in this section */
@@ -3755,12 +3879,12 @@ type Section = {
3755
3879
  * inventing an editable projection for legacy VML/DrawingML page art while the
3756
3880
  * surrounding background attributes remain typed.
3757
3881
  */
3758
- type DocumentBackgroundDrawing = {
3882
+ type DocumentBackgroundDrawing = WritableRecord & {
3759
3883
  /** Replayable `w:drawing` markup, as the source wrote it. */
3760
3884
  rawXml: string;
3761
3885
  };
3762
3886
  /** Page background declared directly under `w:document`. */
3763
- type DocumentBackground = {
3887
+ type DocumentBackground = WritableRecord & {
3764
3888
  /** Direct colour or the `auto` sentinel. */
3765
3889
  color?: ColorValue;
3766
3890
  /** Theme colour token, including the explicit `none` cancellation. */
@@ -3775,7 +3899,7 @@ type DocumentBackground = {
3775
3899
  /**
3776
3900
  * Document body (w:body)
3777
3901
  */
3778
- type DocumentBody = {
3902
+ type DocumentBody = WritableRecord & {
3779
3903
  /** Optional `w:document/w:background`, serialized before the body. */
3780
3904
  background?: DocumentBackground;
3781
3905
  /** All content (paragraphs, tables) */
@@ -3802,7 +3926,7 @@ type ContentControlChange = "editContent" | "removeControl";
3802
3926
  */
3803
3927
  declare const contentControlLockAllows: (lock: ContentControlLock | null | undefined, change: ContentControlChange) => boolean;
3804
3928
  /** A content control, on the caller's position scale. */
3805
- type LockedControlSpan = {
3929
+ type LockedControlSpan = WritableRecord & {
3806
3930
  lock: ContentControlLock;
3807
3931
  /** Before the control. */
3808
3932
  from: number;
@@ -3820,13 +3944,13 @@ type LockedControlSpan = {
3820
3944
  * standing (a text edit across a whole control rewrites its content). An
3821
3945
  * insertion is an `edit` whose `from` equals `to`.
3822
3946
  */
3823
- type LockedControlTouch = {
3947
+ type LockedControlTouch = WritableRecord & {
3824
3948
  from: number;
3825
3949
  to: number;
3826
3950
  effect: "remove" | "edit";
3827
3951
  };
3828
3952
  /** Why a lock refuses a change. */
3829
- type LockedControlViolation = {
3953
+ type LockedControlViolation = WritableRecord & {
3830
3954
  lock: ContentControlLock;
3831
3955
  change: ContentControlChange;
3832
3956
  };
@@ -3840,6 +3964,15 @@ declare const firstLockedControlViolation: (controls: Iterable<LockedControlSpan
3840
3964
  declare const lockedControlMessage: ({ lock, change }: LockedControlViolation) => string;
3841
3965
  /** Set modeled comments while keeping an empty comments part out of the document model. */
3842
3966
  declare const setDocumentBodyComments: (body: DocumentBody, comments: Comment[]) => void;
3967
+ /**
3968
+ * The sides of `w:spacing` a paragraph's own properties state, as the parser
3969
+ * reads them: a side is explicit exactly when the record holds its value.
3970
+ *
3971
+ * The one rule for the field. The parser marks a record it reads with it, and
3972
+ * an operation that states a paragraph's spacing states the field with it, so
3973
+ * a paragraph an edit changed has the field the saved file reopens to.
3974
+ */
3975
+ declare const paragraphSpacingExplicit: (formatting: ParagraphFormatting) => SpacingExplicit | undefined;
3843
3976
  /**
3844
3977
  * Finish paragraph formatting at a model boundary.
3845
3978
  *
@@ -3850,20 +3983,6 @@ declare const setDocumentBodyComments: (body: DocumentBody, comments: Comment[])
3850
3983
  declare const finalizeParagraphFormatting: (formatting: ParagraphFormatting | undefined) => ParagraphFormatting | undefined;
3851
3984
  /** Whether paragraph formatting states no modeled properties. */
3852
3985
  declare const isCanonicallyEmptyParagraphFormatting: (formatting: ParagraphFormatting | undefined) => boolean;
3853
- /**
3854
- * What folio normalised to open a document, as data rather than as prose.
3855
- *
3856
- * Word accepts input the schema does not describe, so folio accepts it too and
3857
- * normalises at the parse boundary. Every such decision is recorded here: a
3858
- * stable `code`, the part it happened in, the best position that part can
3859
- * name, and the value folio declined to read. A host can count them, group
3860
- * them, or decide on one; the human-readable string the parser has always
3861
- * exposed is derived from this, never written by hand at the call site, so the
3862
- * two cannot drift.
3863
- *
3864
- * It lives beside `Document` because it is part of the parsed document, and a
3865
- * `Document` may be produced by anything that builds this model.
3866
- */
3867
3986
  /**
3868
3987
  * Every normalisation the parse boundary is allowed to make.
3869
3988
  *
@@ -3887,10 +4006,22 @@ declare const PARSE_WARNING_CODES: {
3887
4006
  readonly missingCommentId: "missing-comment-id";
3888
4007
  /** A later `w:footnote`/`w:endnote` repeating an id an earlier one defines. */
3889
4008
  readonly duplicateNoteId: "duplicate-note-id";
4009
+ /** An automatic note mark outside its matching note story, kept verbatim. */
4010
+ readonly misplacedNoteMark: "misplaced-note-mark";
3890
4011
  /** A comment marker naming a comment `comments.xml` never defines. */
3891
4012
  readonly danglingCommentReference: "dangling-comment-reference";
3892
4013
  /** A comment range with no matching start or end, re-anchored as a point. */
3893
4014
  readonly unbalancedCommentRange: "unbalanced-comment-range";
4015
+ /** A comment range boundary with no partner, dropped: the comment's reference anchors it. */
4016
+ readonly unpairedCommentRangeBoundary: "unpaired-comment-range-boundary";
4017
+ /** A comment reference repeating one its comment already has, dropped. */
4018
+ readonly duplicateCommentReference: "duplicate-comment-reference";
4019
+ /** A comment's full range after its first, dropped: a comment holds one range. */
4020
+ readonly droppedCommentRange: "dropped-comment-range";
4021
+ /** A comment range no `w:commentReference` names, given one after its end. */
4022
+ readonly missingCommentReference: "missing-comment-reference";
4023
+ /** A `comments.xml` paragraph repeating an earlier one's `w14:paraId`, given a minted id. */
4024
+ readonly repeatedCommentParagraphId: "repeated-comment-paragraph-id";
3894
4025
  /** A `w:headerReference` naming a header part the package does not carry. */
3895
4026
  readonly danglingHeaderReference: "dangling-header-reference";
3896
4027
  /** A `w:footerReference` naming a footer part the package does not carry. */
@@ -3903,6 +4034,8 @@ declare const PARSE_WARNING_CODES: {
3903
4034
  readonly unnumberedStyle: "unnumbered-style";
3904
4035
  /** A tracked move range with no matching start or end. */
3905
4036
  readonly unbalancedMoveRange: "unbalanced-move-range";
4037
+ /** A tracked move range after the first of its id, dropped: a move holds one range. */
4038
+ readonly droppedMoveRange: "dropped-move-range";
3906
4039
  /** A `w:type` outside `ST_HdrFtr`, read as the enumeration's default. */
3907
4040
  readonly headerFooterTypeOutsideEnum: "header-footer-type-outside-enum";
3908
4041
  /** A value outside `ST_OnOff`'s six spellings. */
@@ -3945,7 +4078,7 @@ declare const IMPORTED_ID_COLLISION_KINDS: {
3945
4078
  type ImportedIdCollisionKind = (typeof IMPORTED_ID_COLLISION_KINDS)[keyof typeof IMPORTED_ID_COLLISION_KINDS];
3946
4079
  type ParseWarningCode = (typeof PARSE_WARNING_CODES)[keyof typeof PARSE_WARNING_CODES];
3947
4080
  /** Where a warning happened, as precisely as the part can say. */
3948
- type ParseWarningLocation = {
4081
+ type ParseWarningLocation = WritableRecord & {
3949
4082
  /** The package part, e.g. `word/document.xml`. `package` for the container. */
3950
4083
  part: string;
3951
4084
  /** The element as written, prefix included, when one is known. */
@@ -3957,7 +4090,7 @@ type ParseWarningLocation = {
3957
4090
  */
3958
4091
  at?: string;
3959
4092
  };
3960
- type ParseWarning = {
4093
+ type ParseWarning = WritableRecord & {
3961
4094
  code: ParseWarningCode;
3962
4095
  /** The identity domain, for imported collision diagnostics. */
3963
4096
  identityKind?: ImportedIdCollisionKind;
@@ -3987,7 +4120,7 @@ type StyleType = "paragraph" | "character" | "numbering" | "table";
3987
4120
  /**
3988
4121
  * Style definition
3989
4122
  */
3990
- type Style = {
4123
+ type Style = WritableRecord & {
3991
4124
  /** Style ID */
3992
4125
  styleId: string;
3993
4126
  /** Style type */
@@ -4025,19 +4158,19 @@ type Style = {
4025
4158
  /** Table cell properties */
4026
4159
  tcPr?: TableCellFormatting;
4027
4160
  /** Conditional table style parts */
4028
- tblStylePr?: {
4161
+ tblStylePr?: (WritableRecord & {
4029
4162
  type: "band1Horz" | "band1Vert" | "band2Horz" | "band2Vert" | "firstCol" | "firstRow" | "lastCol" | "lastRow" | "neCell" | "nwCell" | "seCell" | "swCell" | "wholeTable";
4030
4163
  pPr?: ParagraphFormatting;
4031
4164
  rPr?: TextFormatting;
4032
4165
  tblPr?: TableFormatting;
4033
4166
  trPr?: TableRowFormatting;
4034
4167
  tcPr?: TableCellFormatting;
4035
- }[];
4168
+ })[];
4036
4169
  };
4037
4170
  /**
4038
4171
  * Document defaults (w:docDefaults)
4039
4172
  */
4040
- type DocDefaults = {
4173
+ type DocDefaults = WritableRecord & {
4041
4174
  /** Default run properties */
4042
4175
  rPr?: TextFormatting;
4043
4176
  /** Default paragraph properties */
@@ -4046,11 +4179,11 @@ type DocDefaults = {
4046
4179
  /**
4047
4180
  * Style definitions from styles.xml
4048
4181
  */
4049
- type StyleDefinitions = {
4182
+ type StyleDefinitions = WritableRecord & {
4050
4183
  /** Document defaults */
4051
4184
  docDefaults?: DocDefaults;
4052
4185
  /** Latent styles */
4053
- latentStyles?: {
4186
+ latentStyles?: WritableRecord & {
4054
4187
  defLockedState?: boolean;
4055
4188
  defUIPriority?: number;
4056
4189
  defSemiHidden?: boolean;
@@ -4064,7 +4197,7 @@ type StyleDefinitions = {
4064
4197
  /**
4065
4198
  * Theme color scheme (a:clrScheme)
4066
4199
  */
4067
- type ThemeColorScheme = {
4200
+ type ThemeColorScheme = WritableRecord & {
4068
4201
  /** Dark 1 color (usually black) */
4069
4202
  dk1?: string;
4070
4203
  /** Light 1 color (usually white) */
@@ -4088,7 +4221,7 @@ type ThemeColorScheme = {
4088
4221
  /**
4089
4222
  * Theme font (with script variants)
4090
4223
  */
4091
- type ThemeFont = {
4224
+ type ThemeFont = WritableRecord & {
4092
4225
  /** Latin font */
4093
4226
  latin?: string;
4094
4227
  /** East Asian font */
@@ -4096,12 +4229,12 @@ type ThemeFont = {
4096
4229
  /** Complex script font */
4097
4230
  cs?: string;
4098
4231
  /** Script-specific fonts */
4099
- fonts?: Record<string, string>;
4232
+ fonts?: WritableRecord & Record<string, string>;
4100
4233
  };
4101
4234
  /**
4102
4235
  * Theme font scheme (a:fontScheme)
4103
4236
  */
4104
- type ThemeFontScheme = {
4237
+ type ThemeFontScheme = WritableRecord & {
4105
4238
  /** Major font (headings) */
4106
4239
  majorFont?: ThemeFont;
4107
4240
  /** Minor font (body text) */
@@ -4110,7 +4243,7 @@ type ThemeFontScheme = {
4110
4243
  /**
4111
4244
  * Theme (from theme1.xml)
4112
4245
  */
4113
- type Theme = {
4246
+ type Theme = WritableRecord & {
4114
4247
  /** Theme name */
4115
4248
  name?: string;
4116
4249
  /** Color scheme */
@@ -4118,7 +4251,7 @@ type Theme = {
4118
4251
  /** Font scheme */
4119
4252
  fontScheme?: ThemeFontScheme;
4120
4253
  /** Format scheme (fills, lines, effects) - simplified */
4121
- formatScheme?: {
4254
+ formatScheme?: WritableRecord & {
4122
4255
  name?: string;
4123
4256
  };
4124
4257
  };
@@ -4128,7 +4261,7 @@ type Theme = {
4128
4261
  * Two attributes of one element rather than two fields on the font, because
4129
4262
  * `w:charset` is the thing that carries both and a producer may write either.
4130
4263
  */
4131
- type FontCharset = {
4264
+ type FontCharset = WritableRecord & {
4132
4265
  /** `w:val`: the code page as a two-digit hexadecimal number. */
4133
4266
  val?: string;
4134
4267
  /** `w:characterSet`: the same set named (`ANSI_CHARSET`) rather than numbered. */
@@ -4141,7 +4274,7 @@ type FontCharset = {
4141
4274
  * GUID the `.odttf` is obfuscated with, so a package that keeps the id and
4142
4275
  * drops the key keeps a pointer to bytes nothing can decode.
4143
4276
  */
4144
- type EmbeddedFontRef = {
4277
+ type EmbeddedFontRef = WritableRecord & {
4145
4278
  /** `r:id` of the relationship to the font binary, in `word/_rels/fontTable.xml.rels`. */
4146
4279
  id: string;
4147
4280
  /** `w:fontKey`: the obfuscation GUID, e.g. `{XXXXXXXX-…}`. */
@@ -4152,7 +4285,7 @@ type EmbeddedFontRef = {
4152
4285
  /**
4153
4286
  * Font info from fontTable.xml
4154
4287
  */
4155
- type FontInfo = {
4288
+ type FontInfo = WritableRecord & {
4156
4289
  /** Font name */
4157
4290
  name: string;
4158
4291
  /** Alternate names */
@@ -4166,7 +4299,7 @@ type FontInfo = {
4166
4299
  /** Pitch (fixed or variable) */
4167
4300
  pitch?: "default" | "fixed" | "variable";
4168
4301
  /** Signature */
4169
- sig?: {
4302
+ sig?: WritableRecord & {
4170
4303
  usb0?: string;
4171
4304
  usb1?: string;
4172
4305
  usb2?: string;
@@ -4187,7 +4320,7 @@ type FontInfo = {
4187
4320
  /**
4188
4321
  * Font table from fontTable.xml
4189
4322
  */
4190
- type FontTable = {
4323
+ type FontTable = WritableRecord & {
4191
4324
  fonts: FontInfo[];
4192
4325
  /** Children of `w:fonts` that are not `w:font`, in source position. */
4193
4326
  preserved?: PreservedMarkup;
@@ -4207,7 +4340,7 @@ type RelationshipType = string;
4207
4340
  /**
4208
4341
  * Relationship entry
4209
4342
  */
4210
- type Relationship = {
4343
+ type Relationship = WritableRecord & {
4211
4344
  /** Relationship ID (e.g., "rId1") */
4212
4345
  id: string;
4213
4346
  /** Relationship type URI */
@@ -4224,7 +4357,7 @@ type RelationshipMap = Map<string, Relationship>;
4224
4357
  /**
4225
4358
  * Media file from word/media/
4226
4359
  */
4227
- type MediaFile = {
4360
+ type MediaFile = WritableRecord & {
4228
4361
  /** File path in ZIP */
4229
4362
  path: string;
4230
4363
  /** Original filename */
@@ -4252,18 +4385,18 @@ type MediaFile = {
4252
4385
  * type ExhaustiveBorder = ExhaustiveFields<BorderSpec, ClassifiedBorderField>;
4253
4386
  * ```
4254
4387
  */
4255
- type ExhaustiveFields<Source, Classified extends keyof Source> = Exclude<keyof Source, Classified> extends never ? Source : never;
4388
+ type ExhaustiveFields<Source, Classified extends RecordField<Source>> = Exclude<RecordField<Source>, Classified> extends never ? Source : never;
4256
4389
  /** Resolve only defined numbering levels; preserve unsupported source values elsewhere. */
4257
4390
  declare const isNumberingLevel: (value: number) => boolean;
4258
- type NumberingLevelResolution = {
4391
+ type NumberingLevelResolution = (WritableRecord & {
4259
4392
  kind: "level";
4260
4393
  level: ListLevel;
4261
4394
  source: "abstract" | "override" | "styleLink";
4262
- } | {
4395
+ }) | (WritableRecord & {
4263
4396
  kind: "undefined";
4264
4397
  reason: "levelOutOfRange" | "noInstance" | "noAbstract" | "unresolvedStyleLink" | "levelNotDefined";
4265
- };
4266
- type NumberingLevelEntry = {
4398
+ });
4399
+ type NumberingLevelEntry = WritableRecord & {
4267
4400
  numId: number;
4268
4401
  ilvl: number;
4269
4402
  level: ListLevel;
@@ -4306,7 +4439,7 @@ declare const DEFAULT_TAB_STOP_TWIPS = 720;
4306
4439
  * Document-wide settings parsed from `word/settings.xml`.
4307
4440
  * Extend as more settings.xml fields enter the layout pipeline.
4308
4441
  */
4309
- type DocumentSettings = {
4442
+ type DocumentSettings = WritableRecord & {
4310
4443
  /**
4311
4444
  * Application compatibility generation from
4312
4445
  * `w:compat/w:compatSetting[@w:name="compatibilityMode"]`.
@@ -4352,7 +4485,7 @@ type DocumentSettings = {
4352
4485
  * `<a:ea>`/`<a:cs>` theme font slots from the script-specific
4353
4486
  * `<a:font script="…">` entries. Absent for non-CJK/bidi docs.
4354
4487
  */
4355
- themeFontLang?: {
4488
+ themeFontLang?: WritableRecord & {
4356
4489
  eastAsia?: string;
4357
4490
  bidi?: string;
4358
4491
  };
@@ -4365,12 +4498,12 @@ type DocumentSettings = {
4365
4498
  /** Legacy hyphenation zone (`w:hyphenationZone`) in twips; retained for compatibility tooling. */
4366
4499
  hyphenationZoneTwips?: number;
4367
4500
  /** Word/OOXML document-wide line-breaking overrides. */
4368
- lineBreakRules?: {
4369
- noLineBreaksBefore?: {
4501
+ lineBreakRules?: WritableRecord & {
4502
+ noLineBreaksBefore?: WritableRecord & {
4370
4503
  language?: string;
4371
4504
  characters: string;
4372
4505
  };
4373
- noLineBreaksAfter?: {
4506
+ noLineBreaksAfter?: WritableRecord & {
4374
4507
  language?: string;
4375
4508
  characters: string;
4376
4509
  };
@@ -4393,7 +4526,7 @@ declare const DOCX_CONFORMANCE_CLASSES: Readonly<{
4393
4526
  /** Conformance class detected from a DOCX package. */
4394
4527
  type DocxConformanceClass = (typeof DOCX_CONFORMANCE_CLASSES)[keyof typeof DOCX_CONFORMANCE_CLASSES];
4395
4528
  /** Complete DOCX package structure. */
4396
- type DocxPackage = {
4529
+ type DocxPackage = WritableRecord & {
4397
4530
  /** Conformance class detected from the main document namespace. */
4398
4531
  conformanceClass?: DocxConformanceClass;
4399
4532
  /** Document body */
@@ -4421,7 +4554,7 @@ type DocxPackage = {
4421
4554
  /** Media files */
4422
4555
  media?: Map<string, MediaFile> | undefined;
4423
4556
  /** Document properties */
4424
- properties?: {
4557
+ properties?: WritableRecord & {
4425
4558
  title?: string;
4426
4559
  subject?: string;
4427
4560
  creator?: string;
@@ -4436,7 +4569,7 @@ type DocxPackage = {
4436
4569
  /**
4437
4570
  * Complete parsed DOCX document
4438
4571
  */
4439
- type Document = {
4572
+ type Document = WritableRecord & {
4440
4573
  /** DOCX package with all parsed content */
4441
4574
  package: DocxPackage;
4442
4575
  /** Original ArrayBuffer for round-trip */
@@ -4461,4 +4594,4 @@ declare const COMMENT_PART_RELATIONSHIPS: {
4461
4594
  readonly target: "commentsExtended.xml";
4462
4595
  };
4463
4596
  };
4464
- 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 };
4597
+ 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, KeptCutHolders 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 };