@stll/docx-core 0.32.0 → 0.33.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.
@@ -1225,5 +1225,16 @@ const DOCX_CONFORMANCE_CLASSES = Object.freeze({
1225
1225
  TRANSITIONAL: "transitional",
1226
1226
  UNKNOWN: "unknown"
1227
1227
  });
1228
+ /** Standard package relationships owned by semantic comment operations. */
1229
+ const COMMENT_PART_RELATIONSHIPS = {
1230
+ comments: {
1231
+ type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",
1232
+ target: "comments.xml"
1233
+ },
1234
+ commentsExtended: {
1235
+ type: "http://schemas.microsoft.com/office/2011/relationships/commentsExtended",
1236
+ target: "commentsExtended.xml"
1237
+ }
1238
+ };
1228
1239
  //#endregion
1229
- export { paragraphNumberingFromSlots as $, TEXT_DIRECTION_FLOWS as A, THEME_COLORS as B, statesNoBorder as C, TABLE_ALIGNMENTS as D, PARAGRAPH_ALIGNMENTS as E, isThemeColor as F, headingOutlineLevel as G, relationshipIdOf as H, knownThemeColor as I, isNumberingLevel as J, outlineLevelFromStatedValue as K, readThemeColor as L, SCHEME_COLOR_VALUE_BY_THEME_COLOR as M, THEME_COLOR_BY_SCHEME_COLOR_VALUE as N, TAB_STOP_ALIGNMENTS as O, isSchemeColorValue as P, mergeParagraphNumbering as Q, themeColorSlot as R, isBorderStyle as S, NUMBER_FORMATS as T, BODY_TEXT_OUTLINE_LEVEL as U, mintRelationshipId as V, headingLevelOf as W, NO_PARAGRAPH_NUMBERING as X, NO_NUMBERING_NUM_ID as Y, isNumberingReference as Z, PRESET_LINE_DASH_VALS as _, INSERTION_SEAM_POLICIES as a, sameEffectiveParagraphNumbering as at, isBorderNil as b, PROPERTY_REVISION_KINDS as c, PARSE_WARNING_CODES as ct, isOoxmlSymbolCharacter as d, paragraphNumberingLevel as et, normalizeRevisionId as f, presetLineDashToken as g, presetLineDashFrom as h, DRAWING_RAW_XML_MODES as i, resolveParagraphNumbering as it, TEXT_DIRECTION_FLOW_BY_TOKEN as j, TEXT_DIRECTIONS as k, REVIEW_CARRIERS as l, isPresetLineDashVal as m, DOCX_CONFORMANCE_CLASSES as n, paragraphNumberingReferenceId as nt, MAX_REVISION_ID as o, sameStatedParagraphNumbering as ot, COUNTER_FORMATS as p, outlineLevelStatedValue as q, BIDI_CONTROLS as r, paragraphNumberingSlots as rt, PARAGRAPH_MARK_CHANGE_KINDS as s, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as st, DEFAULT_TAB_STOP_TWIPS as t, paragraphNumberingReference as tt, isNoteReferenceId as u, borderStyleFrom as v, BORDER_STYLES as w, isBorderNone as x, borderStyleToken as y, themeColorToken as z };
1240
+ export { mergeParagraphNumbering as $, TEXT_DIRECTIONS as A, themeColorToken as B, isBorderStyle as C, PARAGRAPH_ALIGNMENTS as D, NUMBER_FORMATS as E, isSchemeColorValue as F, headingLevelOf as G, mintRelationshipId as H, isThemeColor as I, outlineLevelStatedValue as J, headingOutlineLevel as K, knownThemeColor as L, TEXT_DIRECTION_FLOW_BY_TOKEN as M, SCHEME_COLOR_VALUE_BY_THEME_COLOR as N, TABLE_ALIGNMENTS as O, THEME_COLOR_BY_SCHEME_COLOR_VALUE as P, isNumberingReference as Q, readThemeColor as R, isBorderNone as S, BORDER_STYLES as T, relationshipIdOf as U, THEME_COLORS as V, BODY_TEXT_OUTLINE_LEVEL as W, NO_NUMBERING_NUM_ID as X, isNumberingLevel as Y, NO_PARAGRAPH_NUMBERING as Z, presetLineDashToken as _, DRAWING_RAW_XML_MODES as a, resolveParagraphNumbering as at, borderStyleToken as b, PARAGRAPH_MARK_CHANGE_KINDS as c, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as ct, isNoteReferenceId as d, paragraphNumberingFromSlots as et, isOoxmlSymbolCharacter as f, presetLineDashFrom as g, isPresetLineDashVal as h, BIDI_CONTROLS as i, paragraphNumberingSlots as it, TEXT_DIRECTION_FLOWS as j, TAB_STOP_ALIGNMENTS as k, PROPERTY_REVISION_KINDS as l, PARSE_WARNING_CODES as lt, COUNTER_FORMATS as m, DEFAULT_TAB_STOP_TWIPS as n, paragraphNumberingReference as nt, INSERTION_SEAM_POLICIES as o, sameEffectiveParagraphNumbering as ot, normalizeRevisionId as p, outlineLevelFromStatedValue as q, DOCX_CONFORMANCE_CLASSES as r, paragraphNumberingReferenceId as rt, MAX_REVISION_ID as s, sameStatedParagraphNumbering as st, COMMENT_PART_RELATIONSHIPS as t, paragraphNumberingLevel as tt, REVIEW_CARRIERS as u, PRESET_LINE_DASH_VALS as v, statesNoBorder as w, isBorderNil as x, borderStyleFrom as y, themeColorSlot as z };
@@ -1820,7 +1820,7 @@ type SimpleField = {
1820
1820
  * `EG_PContent` admits can sit here, `w:bdo` / `w:dir` / `w:smartTag` /
1821
1821
  * `w:customXml` among them.
1822
1822
  */
1823
- content: (Run | Hyperlink | InlineWrapper | PreservedInline)[];
1823
+ content: (Run | Hyperlink | InlineWrapper | PreservedInline | TrackedRunChange)[];
1824
1824
  /** `@w:fldLock`: absent states nothing, `false` is an explicit unlock. */
1825
1825
  fldLock?: boolean;
1826
1826
  /** `@w:dirty`: absent states nothing, `false` explicitly forbids a recompute. */
@@ -4281,5 +4281,16 @@ type Document = {
4281
4281
  /** The same warnings as data: a stable code, a location, and the value. */
4282
4282
  parseWarnings?: ParseWarning[];
4283
4283
  };
4284
+ /** Standard package relationships owned by semantic comment operations. */
4285
+ declare const COMMENT_PART_RELATIONSHIPS: {
4286
+ readonly comments: {
4287
+ readonly type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";
4288
+ readonly target: "comments.xml";
4289
+ };
4290
+ readonly commentsExtended: {
4291
+ readonly type: "http://schemas.microsoft.com/office/2011/relationships/commentsExtended";
4292
+ readonly target: "commentsExtended.xml";
4293
+ };
4294
+ };
4284
4295
  //#endregion
4285
- export { DrawingGroupChild as $, borderStyleToken as $i, VerticalAlign as $n, ParagraphNumberingOverride as $r, ParagraphMarkChange as $t, BIDI_CONTROLS as A, TableAlignment as Ai, ShapeType as An, ConditionalFormatStyle as Ar, Insertion as At, Comment as B, isSchemeColorValue as Bi, TableCustomXmlWrapper as Bn, TableCellFormatting as Br, MoveTo as Bt, ThemeFont as C, ParagraphAlignment as Ci, Shape as Cn, LevelSuffix as Cr, ImagePosition as Ct, ParseWarning as D, TEXT_DIRECTION_FLOWS as Di, ShapeGeometryAdjustment as Dn, NumberingDefinitions as Dr, ImageWrapPolygon as Dt, PARSE_WARNING_CODES as E, TEXT_DIRECTIONS as Ei, ShapeFill as En, ListRendering as Er, ImageWrap as Et, BookmarkEnd as F, ShadingProperties as Fi, Table as Fn, SpacingExplicit as Fr, MathEquation as Ft, DRAWING_RAW_XML_MODES as G, themeColorToken as Gi, TableRowPropertyChange as Gn, TablePropertyExceptionFormatting as Gr, NoteMarkerContent as Gt, CommentRangeStart as H, knownThemeColor as Hi, TablePropertyChange as Hn, TableGridChange as Hr, MoveToRangeStart as Ht, BookmarkRangeMarker as I, SCHEME_COLOR_VALUE_BY_THEME_COLOR as Ii, TableCell as In, TabLeader as Ir, MoveBookmarkMarker as It, DocumentBackground as J, THEME_COLORS as Ji, TextContent as Jn, TextEffect as Jr, PARAGRAPH_MARK_CHANGE_KINDS as Jt, Deletion as K, SchemeColorSlot as Ki, TableStructuralChangeInfo as Kn, TableRowFormatting as Kr, NoteNumberRestart as Kt, BookmarkStart as L, THEME_COLOR_BY_SCHEME_COLOR_VALUE as Li, TableCellBlock as Ln, TabStop as Lr, MoveFrom as Lt, BlockContent as M, TextDirectionFlow as Mi, SoftHyphenContent as Mn, FloatingTableProperties as Mr, LineNumberRestart as Mt, BlockCustomXml as N, BorderSpec as Ni, SymbolContent as Nn, LineSpacingRule as Nr, MAX_REVISION_ID as Nt, ParseWarningCode as O, TEXT_DIRECTION_FLOW_BY_TOKEN as Oi, ShapeOutline as On, NumberingInstance as Or, InlineSdt as Ot, BlockSdt as P, ColorValue as Pi, TabContent as Pn, ParagraphFormatting as Pr, MarkupRangeMarker as Pt, DrawingContent as Q, borderStyleFrom as Qi, TrackedRunContent as Qn, NO_PARAGRAPH_NUMBERING as Qr, ParagraphContent as Qt, BreakContent as R, ThemeColorValue as Ri, TableCellPropertyChange as Rn, TableBorders as Rr, MoveFromRangeEnd as Rt, ThemeColorScheme as S, PARAGRAPH_ALIGNMENTS as Si, SectionStart as Sn, LevelOverride as Sr, ImagePadding as St, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as T, TAB_STOP_ALIGNMENTS as Ti, ShapeContent as Tn, ListMarkerFormatting as Tr, ImageTransform as Tt, CommentReference as U, readThemeColor as Ui, TablePropertyExceptionChange as Un, TableLook as Ur, NoBreakHyphenContent as Ut, CommentRangeEnd as V, isThemeColor as Vi, TablePreservedMarkup as Vn, TableFormatting as Vr, MoveToRangeEnd as Vt, ComplexField as W, themeColorSlot as Wi, TableRow as Wn, TableMeasurement as Wr, NonVisualDrawingNames as Wt, DocumentBody as X, BorderStyleValue as Xi, TrackedChangeInfo as Xn, UnderlineStyle as Xr, PageOrientation as Xt, DocumentBackgroundDrawing as Y, ThemeColor as Yi, TextWatermark as Yn, TextFormatting as Yr, PROPERTY_REVISION_KINDS as Yt, DrawingAnchor as Z, UnrecognisedBorderStyle as Zi, TrackedRunChange as Zn, NO_NUMBERING_NUM_ID as Zr, Paragraph as Zt, RelationshipType as _, headingOutlineLevel as _i, SdtProperties as _n, PreviewShape as _r, INSERTION_SEAM_POLICIES as _t, DocxConformanceClass as a, BorderStyle as aa, paragraphNumberingFromSlots as ai, PreservedBlock as an, normalizeRevisionId as ar, Field as at, StyleType as b, NUMBER_FORMATS as bi, SectionProperties as bn, CounterFormat as br, ImageDocPrLink as bt, ExhaustiveFields as c, paragraphNumberingReferenceId as ci, PropertyChange as cn, isPresetLineDashVal as cr, FoldedListNumber as ct, FontCharset as d, sameEffectiveParagraphNumbering as di, REVIEW_CARRIERS as dn, PRESET_LINE_DASH_VALS as dr, FootnotePosition as dt, isBorderNil as ea, ParagraphNumberingReference as ei, ParagraphMarkChangeKind as en, Watermark as er, DrawingRawXmlMode as et, FontInfo as f, sameStatedParagraphNumbering as fi, ReviewCarrier as fn, PresetLineDashVal as fr, FootnoteProperties as ft, RelationshipMap as g, headingLevelOf as gi, SdtEndProperties as gn, PreviewDescriptor as gr, Hyperlink as gt, Relationship as h, OutlineLevel as hi, RunPropertyChange as hn, relationshipIdOf as hr, HeaderReference as ht, DocumentSettings as i, BORDER_STYLES as ia, mergeParagraphNumbering as ii, PositionedBookmarkMarker as in, isOoxmlSymbolCharacter as ir, EndnoteProperties as it, BidiControl as j, TextDirection as ji, SimpleField as jn, EmphasisMark as jr, InstrTextContent as jt, ParseWarningLocation as k, TabStopAlignment as ki, ShapeTextBody as kn, CellMargins as kr, InlineWrapper as kt, DocDefaults as l, paragraphNumberingSlots as li, PropertyChangeInfo as ln, presetLineDashFrom as lr, FooterReference as lt, MediaFile as m, HeadingOutlineLevel as mi, RunContent as mn, mintRelationshipId as mr, HeaderFooterType as mt, DOCX_CONFORMANCE_CLASSES as n, isBorderStyle as na, ResolvedParagraphNumbering as ni, PictureWatermark as nn, WrapDistances as nr, Endnote as nt, DocxPackage as o, paragraphNumberingLevel as oi, PreservedInline as on, PresetLineDashValue as or, FieldCharContent as ot, FontTable as p, BODY_TEXT_OUTLINE_LEVEL as pi, Run as pn, RelationshipId as pr, HeaderFooter as pt, DisplacedByCustomXml as q, SchemeColorValue as qi, TextBox as qn, TableWidthType as qr, NoteReferenceContent as qt, Document as r, statesNoBorder as ra, isNumberingReference as ri, PositionalTab as rn, WrapPolygonPoint as rr, EndnotePosition as rt, isNumberingLevel as s, paragraphNumberingReference as si, PreservedXmlContent as sn, UnrecognisedPresetLineDash as sr, FieldType as st, DEFAULT_TAB_STOP_TWIPS as t, isBorderNone as ta, ParagraphNumberingSlots as ti, ParagraphPropertyChange as tn, WrapDistanceSlots as tr, EffectExtentSlots as tt, EmbeddedFontRef as u, resolveParagraphNumbering as ui, PropertyRevisionKind as un, presetLineDashToken as ur, Footnote as ut, Style as v, outlineLevelFromStatedValue as vi, SdtType as vn, AbstractNumbering as vr, Image as vt, ThemeFontScheme as w, TABLE_ALIGNMENTS as wi, ShapeAlternateContent as wn, ListLevel as wr, ImageSize as wt, Theme as x, NumberFormat as xi, SectionPropertyChange as xn, LevelLegacy as xr, ImageFrameLocks as xt, StyleDefinitions as y, outlineLevelStatedValue as yi, Section as yn, COUNTER_FORMATS as yr, ImageCrop as yt, Column as z, UnrecognisedThemeColor as zi, TableContentCarrier as zn, TableCellBorders as zr, MoveFromRangeStart as zt };
4296
+ export { DrawingContent as $, borderStyleFrom as $i, TrackedRunContent as $n, NO_PARAGRAPH_NUMBERING as $r, ParagraphContent as $t, ParseWarningLocation as A, TabStopAlignment as Ai, ShapeTextBody as An, CellMargins as Ar, InlineWrapper as At, Column as B, UnrecognisedThemeColor as Bi, TableContentCarrier as Bn, TableCellBorders as Br, MoveFromRangeStart as Bt, ThemeColorScheme as C, PARAGRAPH_ALIGNMENTS as Ci, SectionStart as Cn, LevelOverride as Cr, ImagePadding as Ct, PARSE_WARNING_CODES as D, TEXT_DIRECTIONS as Di, ShapeFill as Dn, ListRendering as Dr, ImageWrap as Dt, MAX_RETAINED_PARSE_WARNINGS_PER_CODE as E, TAB_STOP_ALIGNMENTS as Ei, ShapeContent as En, ListMarkerFormatting as Er, ImageTransform as Et, BlockSdt as F, ColorValue as Fi, TabContent as Fn, ParagraphFormatting as Fr, MarkupRangeMarker as Ft, ComplexField as G, themeColorSlot as Gi, TableRow as Gn, TableMeasurement as Gr, NonVisualDrawingNames as Gt, CommentRangeEnd as H, isThemeColor as Hi, TablePreservedMarkup as Hn, TableFormatting as Hr, MoveToRangeEnd as Ht, BookmarkEnd as I, ShadingProperties as Ii, Table as In, SpacingExplicit as Ir, MathEquation as It, DisplacedByCustomXml as J, SchemeColorValue as Ji, TextBox as Jn, TableWidthType as Jr, NoteReferenceContent as Jt, DRAWING_RAW_XML_MODES as K, themeColorToken as Ki, TableRowPropertyChange as Kn, TablePropertyExceptionFormatting as Kr, NoteMarkerContent as Kt, BookmarkRangeMarker as L, SCHEME_COLOR_VALUE_BY_THEME_COLOR as Li, TableCell as Ln, TabLeader as Lr, MoveBookmarkMarker as Lt, BidiControl as M, TextDirection as Mi, SimpleField as Mn, EmphasisMark as Mr, InstrTextContent as Mt, BlockContent as N, TextDirectionFlow as Ni, SoftHyphenContent as Nn, FloatingTableProperties as Nr, LineNumberRestart as Nt, ParseWarning as O, TEXT_DIRECTION_FLOWS as Oi, ShapeGeometryAdjustment as On, NumberingDefinitions as Or, ImageWrapPolygon as Ot, BlockCustomXml as P, BorderSpec as Pi, SymbolContent as Pn, LineSpacingRule as Pr, MAX_REVISION_ID as Pt, DrawingAnchor as Q, UnrecognisedBorderStyle as Qi, TrackedRunChange as Qn, NO_NUMBERING_NUM_ID as Qr, Paragraph as Qt, BookmarkStart as R, THEME_COLOR_BY_SCHEME_COLOR_VALUE as Ri, TableCellBlock as Rn, TabStop as Rr, MoveFrom as Rt, Theme as S, NumberFormat as Si, SectionPropertyChange as Sn, LevelLegacy as Sr, ImageFrameLocks as St, ThemeFontScheme as T, TABLE_ALIGNMENTS as Ti, ShapeAlternateContent as Tn, ListLevel as Tr, ImageSize as Tt, CommentRangeStart as U, knownThemeColor as Ui, TablePropertyChange as Un, TableGridChange as Ur, MoveToRangeStart as Ut, Comment as V, isSchemeColorValue as Vi, TableCustomXmlWrapper as Vn, TableCellFormatting as Vr, MoveTo as Vt, CommentReference as W, readThemeColor as Wi, TablePropertyExceptionChange as Wn, TableLook as Wr, NoBreakHyphenContent as Wt, DocumentBackgroundDrawing as X, ThemeColor as Xi, TextWatermark as Xn, TextFormatting as Xr, PROPERTY_REVISION_KINDS as Xt, DocumentBackground as Y, THEME_COLORS as Yi, TextContent as Yn, TextEffect as Yr, PARAGRAPH_MARK_CHANGE_KINDS as Yt, DocumentBody as Z, BorderStyleValue as Zi, TrackedChangeInfo as Zn, UnderlineStyle as Zr, PageOrientation as Zt, RelationshipMap as _, headingLevelOf as _i, SdtEndProperties as _n, PreviewDescriptor as _r, Hyperlink as _t, DocumentSettings as a, BORDER_STYLES as aa, mergeParagraphNumbering as ai, PositionedBookmarkMarker as an, isOoxmlSymbolCharacter as ar, EndnoteProperties as at, StyleDefinitions as b, outlineLevelStatedValue as bi, Section as bn, COUNTER_FORMATS as br, ImageCrop as bt, isNumberingLevel as c, paragraphNumberingReference as ci, PreservedXmlContent as cn, UnrecognisedPresetLineDash as cr, FieldType as ct, EmbeddedFontRef as d, resolveParagraphNumbering as di, PropertyRevisionKind as dn, presetLineDashToken as dr, Footnote as dt, borderStyleToken as ea, ParagraphNumberingOverride as ei, ParagraphMarkChange as en, VerticalAlign as er, DrawingGroupChild as et, FontCharset as f, sameEffectiveParagraphNumbering as fi, REVIEW_CARRIERS as fn, PRESET_LINE_DASH_VALS as fr, FootnotePosition as ft, Relationship as g, OutlineLevel as gi, RunPropertyChange as gn, relationshipIdOf as gr, HeaderReference as gt, MediaFile as h, HeadingOutlineLevel as hi, RunContent as hn, mintRelationshipId as hr, HeaderFooterType as ht, Document as i, statesNoBorder as ia, isNumberingReference as ii, PositionalTab as in, WrapPolygonPoint as ir, EndnotePosition as it, BIDI_CONTROLS as j, TableAlignment as ji, ShapeType as jn, ConditionalFormatStyle as jr, Insertion as jt, ParseWarningCode as k, TEXT_DIRECTION_FLOW_BY_TOKEN as ki, ShapeOutline as kn, NumberingInstance as kr, InlineSdt as kt, ExhaustiveFields as l, paragraphNumberingReferenceId as li, PropertyChange as ln, isPresetLineDashVal as lr, FoldedListNumber as lt, FontTable as m, BODY_TEXT_OUTLINE_LEVEL as mi, Run as mn, RelationshipId as mr, HeaderFooter as mt, DEFAULT_TAB_STOP_TWIPS as n, isBorderNone as na, ParagraphNumberingSlots as ni, ParagraphPropertyChange as nn, WrapDistanceSlots as nr, EffectExtentSlots as nt, DocxConformanceClass as o, BorderStyle as oa, paragraphNumberingFromSlots as oi, PreservedBlock as on, normalizeRevisionId as or, Field as ot, FontInfo as p, sameStatedParagraphNumbering as pi, ReviewCarrier as pn, PresetLineDashVal as pr, FootnoteProperties as pt, Deletion as q, SchemeColorSlot as qi, TableStructuralChangeInfo as qn, TableRowFormatting as qr, NoteNumberRestart as qt, DOCX_CONFORMANCE_CLASSES as r, isBorderStyle as ra, ResolvedParagraphNumbering as ri, PictureWatermark as rn, WrapDistances as rr, Endnote as rt, DocxPackage as s, paragraphNumberingLevel as si, PreservedInline as sn, PresetLineDashValue as sr, FieldCharContent as st, COMMENT_PART_RELATIONSHIPS as t, isBorderNil as ta, ParagraphNumberingReference as ti, ParagraphMarkChangeKind as tn, Watermark as tr, DrawingRawXmlMode as tt, DocDefaults as u, paragraphNumberingSlots as ui, PropertyChangeInfo as un, presetLineDashFrom as ur, FooterReference as ut, RelationshipType as v, headingOutlineLevel as vi, SdtProperties as vn, PreviewShape as vr, INSERTION_SEAM_POLICIES as vt, ThemeFont as w, ParagraphAlignment as wi, Shape as wn, LevelSuffix as wr, ImagePosition as wt, StyleType as x, NUMBER_FORMATS as xi, SectionProperties as xn, CounterFormat as xr, ImageDocPrLink as xt, Style as y, outlineLevelFromStatedValue as yi, SdtType as yn, AbstractNumbering as yr, Image as yt, BreakContent as z, ThemeColorValue as zi, TableCellPropertyChange as zn, TableBorders as zr, MoveFromRangeEnd as zt };
Binary file
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Dr as NumberingDefinitions, Fn as Table, In as TableCell, J as DocumentBackground, Jn as TextContent, M as BlockContent, Qt as ParagraphContent, R as BreakContent, Wn as TableRow, X as DocumentBody, Y as DocumentBackgroundDrawing, Zt as Paragraph, a as DocxConformanceClass, bn as SectionProperties, mn as RunContent, n as DOCX_CONFORMANCE_CLASSES, o as DocxPackage, pn as Run, r as Document, rn as PositionalTab, v as Style } from "./document-C73n0FqK.js";
1
+ import { $t as ParagraphContent, Gn as TableRow, In as Table, Ln as TableCell, N as BlockContent, Or as NumberingDefinitions, Qt as Paragraph, X as DocumentBackgroundDrawing, Y as DocumentBackground, Yn as TextContent, Z as DocumentBody, hn as RunContent, i as Document, in as PositionalTab, mn as Run, o as DocxConformanceClass, r as DOCX_CONFORMANCE_CLASSES, s as DocxPackage, xn as SectionProperties, y as Style, z as BreakContent } from "./document-YlRuGzLX.js";
2
2
  import JSZip from "jszip";
3
3
  import { Buffer } from "node:buffer";
4
4
  //#region src/legal-source/types.d.ts
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as statesNoBorder, G as headingOutlineLevel, d as isOoxmlSymbolCharacter, et as paragraphNumberingLevel, n as DOCX_CONFORMANCE_CLASSES, nt as paragraphNumberingReferenceId, o as MAX_REVISION_ID, rt as paragraphNumberingSlots, tt as paragraphNumberingReference, u as isNoteReferenceId, y as borderStyleToken } from "./document-3WKQA1r3.js";
1
+ import { K as headingOutlineLevel, b as borderStyleToken, d as isNoteReferenceId, f as isOoxmlSymbolCharacter, it as paragraphNumberingSlots, nt as paragraphNumberingReference, r as DOCX_CONFORMANCE_CLASSES, rt as paragraphNumberingReferenceId, s as MAX_REVISION_ID, tt as paragraphNumberingLevel, w as statesNoBorder } from "./document-CQ0oovh0.js";
2
2
  import { writeZipPart } from "./zip/writeZipPart.js";
3
3
  import { i as serializeSequenceChildren } from "./sequenceChildren-B8ODeI3J.js";
4
4
  import { a as hasIllegalXmlCharacters, i as escapeXmlText, n as sanitizeMarkdownHref, o as sanitizeXmlCharacters, r as escapeXmlAttribute, t as sanitizeExternalUrl } from "./href-2XSCK-T8.js";
@@ -1489,7 +1489,7 @@ const validateFieldChild = (child, path, ctx) => {
1489
1489
  return;
1490
1490
  }
1491
1491
  if (child.type === "preservedInline") return;
1492
- if (child.type === "inlineWrapper") {
1492
+ if (child.type !== "hyperlink") {
1493
1493
  validateParagraphContent(child, path, ctx);
1494
1494
  return;
1495
1495
  }
@@ -1,3 +1,3 @@
1
- import { $ as DrawingGroupChild, $i as borderStyleToken, $n as VerticalAlign, $r as ParagraphNumberingOverride, $t as ParagraphMarkChange, A as BIDI_CONTROLS, Ai as TableAlignment, An as ShapeType, Ar as ConditionalFormatStyle, At as Insertion, B as Comment, Bi as isSchemeColorValue, Bn as TableCustomXmlWrapper, Br as TableCellFormatting, Bt as MoveTo, C as ThemeFont, Ci as ParagraphAlignment, Cn as Shape, Cr as LevelSuffix, Ct as ImagePosition, D as ParseWarning, Di as TEXT_DIRECTION_FLOWS, Dn as ShapeGeometryAdjustment, Dr as NumberingDefinitions, Dt as ImageWrapPolygon, E as PARSE_WARNING_CODES, Ei as TEXT_DIRECTIONS, En as ShapeFill, Er as ListRendering, Et as ImageWrap, F as BookmarkEnd, Fi as ShadingProperties, Fn as Table, Fr as SpacingExplicit, Ft as MathEquation, G as DRAWING_RAW_XML_MODES, Gi as themeColorToken, Gn as TableRowPropertyChange, Gr as TablePropertyExceptionFormatting, Gt as NoteMarkerContent, H as CommentRangeStart, Hi as knownThemeColor, Hn as TablePropertyChange, Hr as TableGridChange, Ht as MoveToRangeStart, I as BookmarkRangeMarker, Ii as SCHEME_COLOR_VALUE_BY_THEME_COLOR, In as TableCell, Ir as TabLeader, It as MoveBookmarkMarker, J as DocumentBackground, Ji as THEME_COLORS, Jn as TextContent, Jr as TextEffect, Jt as PARAGRAPH_MARK_CHANGE_KINDS, K as Deletion, Ki as SchemeColorSlot, Kn as TableStructuralChangeInfo, Kr as TableRowFormatting, Kt as NoteNumberRestart, L as BookmarkStart, Li as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Ln as TableCellBlock, Lr as TabStop, Lt as MoveFrom, M as BlockContent, Mi as TextDirectionFlow, Mn as SoftHyphenContent, Mr as FloatingTableProperties, Mt as LineNumberRestart, N as BlockCustomXml, Ni as BorderSpec, Nn as SymbolContent, Nr as LineSpacingRule, Nt as MAX_REVISION_ID, O as ParseWarningCode, Oi as TEXT_DIRECTION_FLOW_BY_TOKEN, On as ShapeOutline, Or as NumberingInstance, Ot as InlineSdt, P as BlockSdt, Pi as ColorValue, Pn as TabContent, Pr as ParagraphFormatting, Pt as MarkupRangeMarker, Q as DrawingContent, Qi as borderStyleFrom, Qn as TrackedRunContent, Qr as NO_PARAGRAPH_NUMBERING, Qt as ParagraphContent, R as BreakContent, Ri as ThemeColorValue, Rn as TableCellPropertyChange, Rr as TableBorders, Rt as MoveFromRangeEnd, S as ThemeColorScheme, Si as PARAGRAPH_ALIGNMENTS, Sn as SectionStart, Sr as LevelOverride, St as ImagePadding, T as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Ti as TAB_STOP_ALIGNMENTS, Tn as ShapeContent, Tr as ListMarkerFormatting, Tt as ImageTransform, U as CommentReference, Ui as readThemeColor, Un as TablePropertyExceptionChange, Ur as TableLook, Ut as NoBreakHyphenContent, V as CommentRangeEnd, Vi as isThemeColor, Vn as TablePreservedMarkup, Vr as TableFormatting, Vt as MoveToRangeEnd, W as ComplexField, Wi as themeColorSlot, Wn as TableRow, Wr as TableMeasurement, Wt as NonVisualDrawingNames, X as DocumentBody, Xi as BorderStyleValue, Xn as TrackedChangeInfo, Xr as UnderlineStyle, Xt as PageOrientation, Y as DocumentBackgroundDrawing, Yi as ThemeColor, Yn as TextWatermark, Yr as TextFormatting, Yt as PROPERTY_REVISION_KINDS, Z as DrawingAnchor, Zi as UnrecognisedBorderStyle, Zn as TrackedRunChange, Zr as NO_NUMBERING_NUM_ID, Zt as Paragraph, _ as RelationshipType, _i as headingOutlineLevel, _n as SdtProperties, _r as PreviewShape, a as DocxConformanceClass, aa as BorderStyle, ai as paragraphNumberingFromSlots, an as PreservedBlock, ar as normalizeRevisionId, at as Field, b as StyleType, bi as NUMBER_FORMATS, bn as SectionProperties, br as CounterFormat, bt as ImageDocPrLink, c as ExhaustiveFields, ci as paragraphNumberingReferenceId, cn as PropertyChange, cr as isPresetLineDashVal, ct as FoldedListNumber, d as FontCharset, di as sameEffectiveParagraphNumbering, dn as REVIEW_CARRIERS, dr as PRESET_LINE_DASH_VALS, dt as FootnotePosition, ea as isBorderNil, ei as ParagraphNumberingReference, en as ParagraphMarkChangeKind, er as Watermark, et as DrawingRawXmlMode, f as FontInfo, fi as sameStatedParagraphNumbering, fn as ReviewCarrier, fr as PresetLineDashVal, ft as FootnoteProperties, g as RelationshipMap, gi as headingLevelOf, gn as SdtEndProperties, gr as PreviewDescriptor, gt as Hyperlink, h as Relationship, hi as OutlineLevel, hn as RunPropertyChange, hr as relationshipIdOf, ht as HeaderReference, i as DocumentSettings, ia as BORDER_STYLES, ii as mergeParagraphNumbering, in as PositionedBookmarkMarker, ir as isOoxmlSymbolCharacter, it as EndnoteProperties, j as BidiControl, ji as TextDirection, jn as SimpleField, jr as EmphasisMark, jt as InstrTextContent, k as ParseWarningLocation, ki as TabStopAlignment, kn as ShapeTextBody, kr as CellMargins, kt as InlineWrapper, l as DocDefaults, li as paragraphNumberingSlots, ln as PropertyChangeInfo, lr as presetLineDashFrom, lt as FooterReference, m as MediaFile, mi as HeadingOutlineLevel, mn as RunContent, mr as mintRelationshipId, mt as HeaderFooterType, n as DOCX_CONFORMANCE_CLASSES, na as isBorderStyle, ni as ResolvedParagraphNumbering, nn as PictureWatermark, nr as WrapDistances, nt as Endnote, o as DocxPackage, oi as paragraphNumberingLevel, on as PreservedInline, or as PresetLineDashValue, ot as FieldCharContent, p as FontTable, pi as BODY_TEXT_OUTLINE_LEVEL, pn as Run, pr as RelationshipId, pt as HeaderFooter, q as DisplacedByCustomXml, qi as SchemeColorValue, qn as TextBox, qr as TableWidthType, qt as NoteReferenceContent, r as Document, ra as statesNoBorder, ri as isNumberingReference, rn as PositionalTab, rr as WrapPolygonPoint, rt as EndnotePosition, s as isNumberingLevel, si as paragraphNumberingReference, sn as PreservedXmlContent, sr as UnrecognisedPresetLineDash, st as FieldType, t as DEFAULT_TAB_STOP_TWIPS, ta as isBorderNone, ti as ParagraphNumberingSlots, tn as ParagraphPropertyChange, tr as WrapDistanceSlots, tt as EffectExtentSlots, u as EmbeddedFontRef, ui as resolveParagraphNumbering, un as PropertyRevisionKind, ur as presetLineDashToken, ut as Footnote, v as Style, vi as outlineLevelFromStatedValue, vn as SdtType, vr as AbstractNumbering, vt as Image, w as ThemeFontScheme, wi as TABLE_ALIGNMENTS, wn as ShapeAlternateContent, wr as ListLevel, wt as ImageSize, x as Theme, xi as NumberFormat, xn as SectionPropertyChange, xr as LevelLegacy, xt as ImageFrameLocks, y as StyleDefinitions, yi as outlineLevelStatedValue, yn as Section, yr as COUNTER_FORMATS, yt as ImageCrop, z as Column, zi as UnrecognisedThemeColor, zn as TableContentCarrier, zr as TableCellBorders, zt as MoveFromRangeStart } from "../document-C73n0FqK.js";
1
+ import { $ as DrawingContent, $i as borderStyleFrom, $n as TrackedRunContent, $r as NO_PARAGRAPH_NUMBERING, $t as ParagraphContent, A as ParseWarningLocation, Ai as TabStopAlignment, An as ShapeTextBody, Ar as CellMargins, At as InlineWrapper, B as Column, Bi as UnrecognisedThemeColor, Bn as TableContentCarrier, Br as TableCellBorders, Bt as MoveFromRangeStart, C as ThemeColorScheme, Ci as PARAGRAPH_ALIGNMENTS, Cn as SectionStart, Cr as LevelOverride, Ct as ImagePadding, D as PARSE_WARNING_CODES, Di as TEXT_DIRECTIONS, Dn as ShapeFill, Dr as ListRendering, Dt as ImageWrap, E as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, Ei as TAB_STOP_ALIGNMENTS, En as ShapeContent, Er as ListMarkerFormatting, Et as ImageTransform, F as BlockSdt, Fi as ColorValue, Fn as TabContent, Fr as ParagraphFormatting, Ft as MarkupRangeMarker, G as ComplexField, Gi as themeColorSlot, Gn as TableRow, Gr as TableMeasurement, Gt as NonVisualDrawingNames, H as CommentRangeEnd, Hi as isThemeColor, Hn as TablePreservedMarkup, Hr as TableFormatting, Ht as MoveToRangeEnd, I as BookmarkEnd, Ii as ShadingProperties, In as Table, Ir as SpacingExplicit, It as MathEquation, J as DisplacedByCustomXml, Ji as SchemeColorValue, Jn as TextBox, Jr as TableWidthType, Jt as NoteReferenceContent, K as DRAWING_RAW_XML_MODES, Ki as themeColorToken, Kn as TableRowPropertyChange, Kr as TablePropertyExceptionFormatting, Kt as NoteMarkerContent, L as BookmarkRangeMarker, Li as SCHEME_COLOR_VALUE_BY_THEME_COLOR, Ln as TableCell, Lr as TabLeader, Lt as MoveBookmarkMarker, M as BidiControl, Mi as TextDirection, Mn as SimpleField, Mr as EmphasisMark, Mt as InstrTextContent, N as BlockContent, Ni as TextDirectionFlow, Nn as SoftHyphenContent, Nr as FloatingTableProperties, Nt as LineNumberRestart, O as ParseWarning, Oi as TEXT_DIRECTION_FLOWS, On as ShapeGeometryAdjustment, Or as NumberingDefinitions, Ot as ImageWrapPolygon, P as BlockCustomXml, Pi as BorderSpec, Pn as SymbolContent, Pr as LineSpacingRule, Pt as MAX_REVISION_ID, Q as DrawingAnchor, Qi as UnrecognisedBorderStyle, Qn as TrackedRunChange, Qr as NO_NUMBERING_NUM_ID, Qt as Paragraph, R as BookmarkStart, Ri as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Rn as TableCellBlock, Rr as TabStop, Rt as MoveFrom, S as Theme, Si as NumberFormat, Sn as SectionPropertyChange, Sr as LevelLegacy, St as ImageFrameLocks, T as ThemeFontScheme, Ti as TABLE_ALIGNMENTS, Tn as ShapeAlternateContent, Tr as ListLevel, Tt as ImageSize, U as CommentRangeStart, Ui as knownThemeColor, Un as TablePropertyChange, Ur as TableGridChange, Ut as MoveToRangeStart, V as Comment, Vi as isSchemeColorValue, Vn as TableCustomXmlWrapper, Vr as TableCellFormatting, Vt as MoveTo, W as CommentReference, Wi as readThemeColor, Wn as TablePropertyExceptionChange, Wr as TableLook, Wt as NoBreakHyphenContent, X as DocumentBackgroundDrawing, Xi as ThemeColor, Xn as TextWatermark, Xr as TextFormatting, Xt as PROPERTY_REVISION_KINDS, Y as DocumentBackground, Yi as THEME_COLORS, Yn as TextContent, Yr as TextEffect, Yt as PARAGRAPH_MARK_CHANGE_KINDS, Z as DocumentBody, Zi as BorderStyleValue, Zn as TrackedChangeInfo, Zr as UnderlineStyle, Zt as PageOrientation, _ as RelationshipMap, _i as headingLevelOf, _n as SdtEndProperties, _r as PreviewDescriptor, _t as Hyperlink, a as DocumentSettings, aa as BORDER_STYLES, ai as mergeParagraphNumbering, an as PositionedBookmarkMarker, ar as isOoxmlSymbolCharacter, at as EndnoteProperties, b as StyleDefinitions, bi as outlineLevelStatedValue, bn as Section, br as COUNTER_FORMATS, bt as ImageCrop, c as isNumberingLevel, ci as paragraphNumberingReference, cn as PreservedXmlContent, cr as UnrecognisedPresetLineDash, ct as FieldType, d as EmbeddedFontRef, di as resolveParagraphNumbering, dn as PropertyRevisionKind, dr as presetLineDashToken, dt as Footnote, ea as borderStyleToken, ei as ParagraphNumberingOverride, en as ParagraphMarkChange, er as VerticalAlign, et as DrawingGroupChild, f as FontCharset, fi as sameEffectiveParagraphNumbering, fn as REVIEW_CARRIERS, fr as PRESET_LINE_DASH_VALS, ft as FootnotePosition, g as Relationship, gi as OutlineLevel, gn as RunPropertyChange, gr as relationshipIdOf, gt as HeaderReference, h as MediaFile, hi as HeadingOutlineLevel, hn as RunContent, hr as mintRelationshipId, ht as HeaderFooterType, i as Document, ia as statesNoBorder, ii as isNumberingReference, in as PositionalTab, ir as WrapPolygonPoint, it as EndnotePosition, j as BIDI_CONTROLS, ji as TableAlignment, jn as ShapeType, jr as ConditionalFormatStyle, jt as Insertion, k as ParseWarningCode, ki as TEXT_DIRECTION_FLOW_BY_TOKEN, kn as ShapeOutline, kr as NumberingInstance, kt as InlineSdt, l as ExhaustiveFields, li as paragraphNumberingReferenceId, ln as PropertyChange, lr as isPresetLineDashVal, lt as FoldedListNumber, m as FontTable, mi as BODY_TEXT_OUTLINE_LEVEL, mn as Run, mr as RelationshipId, mt as HeaderFooter, n as DEFAULT_TAB_STOP_TWIPS, na as isBorderNone, ni as ParagraphNumberingSlots, nn as ParagraphPropertyChange, nr as WrapDistanceSlots, nt as EffectExtentSlots, o as DocxConformanceClass, oa as BorderStyle, oi as paragraphNumberingFromSlots, on as PreservedBlock, or as normalizeRevisionId, ot as Field, p as FontInfo, pi as sameStatedParagraphNumbering, pn as ReviewCarrier, pr as PresetLineDashVal, pt as FootnoteProperties, q as Deletion, qi as SchemeColorSlot, qn as TableStructuralChangeInfo, qr as TableRowFormatting, qt as NoteNumberRestart, r as DOCX_CONFORMANCE_CLASSES, ra as isBorderStyle, ri as ResolvedParagraphNumbering, rn as PictureWatermark, rr as WrapDistances, rt as Endnote, s as DocxPackage, si as paragraphNumberingLevel, sn as PreservedInline, sr as PresetLineDashValue, st as FieldCharContent, t as COMMENT_PART_RELATIONSHIPS, ta as isBorderNil, ti as ParagraphNumberingReference, tn as ParagraphMarkChangeKind, tr as Watermark, tt as DrawingRawXmlMode, u as DocDefaults, ui as paragraphNumberingSlots, un as PropertyChangeInfo, ur as presetLineDashFrom, ut as FooterReference, v as RelationshipType, vi as headingOutlineLevel, vn as SdtProperties, vr as PreviewShape, w as ThemeFont, wi as ParagraphAlignment, wn as Shape, wr as LevelSuffix, wt as ImagePosition, x as StyleType, xi as NUMBER_FORMATS, xn as SectionProperties, xr as CounterFormat, xt as ImageDocPrLink, y as Style, yi as outlineLevelFromStatedValue, yn as SdtType, yr as AbstractNumbering, yt as Image, z as BreakContent, zi as ThemeColorValue, zn as TableCellPropertyChange, zr as TableBorders, zt as MoveFromRangeEnd } from "../document-YlRuGzLX.js";
2
2
  import { n as PreservedChild, r as PreservedMarkup, t as PreservedAttribute } from "../preservedMarkup-G8XjWhs2.js";
3
- export { type AbstractNumbering, BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, type BidiControl, type BlockContent, type BlockCustomXml, type BlockSdt, type BookmarkEnd, type BookmarkRangeMarker, type BookmarkStart, type BorderSpec, type BorderStyle, type BorderStyleValue, type BreakContent, COUNTER_FORMATS, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, type CounterFormat, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type Deletion, type DisplacedByCustomXml, type DocDefaults, Document, type DocumentBackground, type DocumentBackgroundDrawing, type DocumentBody, DocumentSettings, DocxConformanceClass, DocxPackage, type DrawingAnchor, type DrawingContent, type DrawingGroupChild, type DrawingRawXmlMode, type EffectExtentSlots, type EmbeddedFontRef, type EmphasisMark, type Endnote, type EndnotePosition, type EndnoteProperties, type ExhaustiveFields, type Field, type FieldCharContent, type FieldType, type FloatingTableProperties, type FoldedListNumber, type FontCharset, type FontInfo, type FontTable, type FooterReference, type Footnote, type FootnotePosition, type FootnoteProperties, type HeaderFooter, type HeaderFooterType, type HeaderReference, type HeadingOutlineLevel, type Hyperlink, type Image, type ImageCrop, type ImageDocPrLink, type ImageFrameLocks, type ImagePadding, type ImagePosition, type ImageSize, type ImageTransform, type ImageWrap, type ImageWrapPolygon, type InlineSdt, type InlineWrapper, type Insertion, type InstrTextContent, type LevelLegacy, type LevelOverride, type LevelSuffix, type LineNumberRestart, type LineSpacingRule, type ListLevel, type ListMarkerFormatting, type ListRendering, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, type MarkupRangeMarker, type MathEquation, type MediaFile, type MoveBookmarkMarker, type MoveFrom, type MoveFromRangeEnd, type MoveFromRangeStart, type MoveTo, type MoveToRangeEnd, type MoveToRangeStart, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, type NoBreakHyphenContent, type NonVisualDrawingNames, type NoteMarkerContent, type NoteNumberRestart, type NoteReferenceContent, type NumberFormat, type NumberingDefinitions, type NumberingInstance, type OutlineLevel, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, type PageOrientation, type Paragraph, type ParagraphAlignment, type ParagraphContent, type ParagraphFormatting, type ParagraphMarkChange, type ParagraphMarkChangeKind, type ParagraphNumberingOverride, type ParagraphNumberingReference, type ParagraphNumberingSlots, type ParagraphPropertyChange, type ParseWarning, type ParseWarningCode, type ParseWarningLocation, type PictureWatermark, type PositionalTab, type PositionedBookmarkMarker, type PreservedAttribute, type PreservedBlock, type PreservedChild, type PreservedInline, type PreservedMarkup, type PreservedXmlContent, type PresetLineDashVal, type PresetLineDashValue, type PreviewDescriptor, type PreviewShape, type PropertyChange, type PropertyChangeInfo, type PropertyRevisionKind, REVIEW_CARRIERS, type Relationship, type RelationshipId, type RelationshipMap, type RelationshipType, type ResolvedParagraphNumbering, type ReviewCarrier, type Run, type RunContent, type RunPropertyChange, SCHEME_COLOR_VALUE_BY_THEME_COLOR, type SchemeColorSlot, type SchemeColorValue, type SdtEndProperties, type SdtProperties, type SdtType, type Section, type SectionProperties, type SectionPropertyChange, type SectionStart, type ShadingProperties, type Shape, type ShapeAlternateContent, type ShapeContent, type ShapeFill, type ShapeGeometryAdjustment, type ShapeOutline, type ShapeTextBody, type ShapeType, type SimpleField, type SoftHyphenContent, type SpacingExplicit, type Style, type StyleDefinitions, type StyleType, type SymbolContent, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, type TabContent, type TabLeader, type TabStop, type TabStopAlignment, type Table, type TableAlignment, type TableBorders, type TableCell, type TableCellBlock, type TableCellBorders, type TableCellFormatting, type TableCellPropertyChange, type TableContentCarrier, type TableCustomXmlWrapper, type TableFormatting, type TableGridChange, type TableLook, type TableMeasurement, type TablePreservedMarkup, type TablePropertyChange, type TablePropertyExceptionChange, type TablePropertyExceptionFormatting, type TableRow, type TableRowFormatting, type TableRowPropertyChange, type TableStructuralChangeInfo, type TableWidthType, type TextBox, type TextContent, type TextDirection, type TextDirectionFlow, type TextEffect, type TextFormatting, type TextWatermark, type Theme, type ThemeColor, type ThemeColorScheme, type ThemeColorValue, type ThemeFont, type ThemeFontScheme, type TrackedChangeInfo, type TrackedRunChange, type TrackedRunContent, type UnderlineStyle, type UnrecognisedBorderStyle, type UnrecognisedPresetLineDash, type UnrecognisedThemeColor, type VerticalAlign, type Watermark, type WrapDistanceSlots, type WrapDistances, type WrapPolygonPoint, borderStyleFrom, borderStyleToken, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
3
+ export { type AbstractNumbering, BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, type BidiControl, type BlockContent, type BlockCustomXml, type BlockSdt, type BookmarkEnd, type BookmarkRangeMarker, type BookmarkStart, type BorderSpec, type BorderStyle, type BorderStyleValue, type BreakContent, COMMENT_PART_RELATIONSHIPS, COUNTER_FORMATS, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, type CounterFormat, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type Deletion, type DisplacedByCustomXml, type DocDefaults, Document, type DocumentBackground, type DocumentBackgroundDrawing, type DocumentBody, DocumentSettings, DocxConformanceClass, DocxPackage, type DrawingAnchor, type DrawingContent, type DrawingGroupChild, type DrawingRawXmlMode, type EffectExtentSlots, type EmbeddedFontRef, type EmphasisMark, type Endnote, type EndnotePosition, type EndnoteProperties, type ExhaustiveFields, type Field, type FieldCharContent, type FieldType, type FloatingTableProperties, type FoldedListNumber, type FontCharset, type FontInfo, type FontTable, type FooterReference, type Footnote, type FootnotePosition, type FootnoteProperties, type HeaderFooter, type HeaderFooterType, type HeaderReference, type HeadingOutlineLevel, type Hyperlink, type Image, type ImageCrop, type ImageDocPrLink, type ImageFrameLocks, type ImagePadding, type ImagePosition, type ImageSize, type ImageTransform, type ImageWrap, type ImageWrapPolygon, type InlineSdt, type InlineWrapper, type Insertion, type InstrTextContent, type LevelLegacy, type LevelOverride, type LevelSuffix, type LineNumberRestart, type LineSpacingRule, type ListLevel, type ListMarkerFormatting, type ListRendering, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, type MarkupRangeMarker, type MathEquation, type MediaFile, type MoveBookmarkMarker, type MoveFrom, type MoveFromRangeEnd, type MoveFromRangeStart, type MoveTo, type MoveToRangeEnd, type MoveToRangeStart, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, type NoBreakHyphenContent, type NonVisualDrawingNames, type NoteMarkerContent, type NoteNumberRestart, type NoteReferenceContent, type NumberFormat, type NumberingDefinitions, type NumberingInstance, type OutlineLevel, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, type PageOrientation, type Paragraph, type ParagraphAlignment, type ParagraphContent, type ParagraphFormatting, type ParagraphMarkChange, type ParagraphMarkChangeKind, type ParagraphNumberingOverride, type ParagraphNumberingReference, type ParagraphNumberingSlots, type ParagraphPropertyChange, type ParseWarning, type ParseWarningCode, type ParseWarningLocation, type PictureWatermark, type PositionalTab, type PositionedBookmarkMarker, type PreservedAttribute, type PreservedBlock, type PreservedChild, type PreservedInline, type PreservedMarkup, type PreservedXmlContent, type PresetLineDashVal, type PresetLineDashValue, type PreviewDescriptor, type PreviewShape, type PropertyChange, type PropertyChangeInfo, type PropertyRevisionKind, REVIEW_CARRIERS, type Relationship, type RelationshipId, type RelationshipMap, type RelationshipType, type ResolvedParagraphNumbering, type ReviewCarrier, type Run, type RunContent, type RunPropertyChange, SCHEME_COLOR_VALUE_BY_THEME_COLOR, type SchemeColorSlot, type SchemeColorValue, type SdtEndProperties, type SdtProperties, type SdtType, type Section, type SectionProperties, type SectionPropertyChange, type SectionStart, type ShadingProperties, type Shape, type ShapeAlternateContent, type ShapeContent, type ShapeFill, type ShapeGeometryAdjustment, type ShapeOutline, type ShapeTextBody, type ShapeType, type SimpleField, type SoftHyphenContent, type SpacingExplicit, type Style, type StyleDefinitions, type StyleType, type SymbolContent, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, type TabContent, type TabLeader, type TabStop, type TabStopAlignment, type Table, type TableAlignment, type TableBorders, type TableCell, type TableCellBlock, type TableCellBorders, type TableCellFormatting, type TableCellPropertyChange, type TableContentCarrier, type TableCustomXmlWrapper, type TableFormatting, type TableGridChange, type TableLook, type TableMeasurement, type TablePreservedMarkup, type TablePropertyChange, type TablePropertyExceptionChange, type TablePropertyExceptionFormatting, type TableRow, type TableRowFormatting, type TableRowPropertyChange, type TableStructuralChangeInfo, type TableWidthType, type TextBox, type TextContent, type TextDirection, type TextDirectionFlow, type TextEffect, type TextFormatting, type TextWatermark, type Theme, type ThemeColor, type ThemeColorScheme, type ThemeColorValue, type ThemeFont, type ThemeFontScheme, type TrackedChangeInfo, type TrackedRunChange, type TrackedRunContent, type UnderlineStyle, type UnrecognisedBorderStyle, type UnrecognisedPresetLineDash, type UnrecognisedThemeColor, type VerticalAlign, type Watermark, type WrapDistanceSlots, type WrapDistances, type WrapPolygonPoint, borderStyleFrom, borderStyleToken, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
@@ -1,2 +1,2 @@
1
- import { $ as paragraphNumberingFromSlots, A as TEXT_DIRECTION_FLOWS, B as THEME_COLORS, C as statesNoBorder, D as TABLE_ALIGNMENTS, E as PARAGRAPH_ALIGNMENTS, F as isThemeColor, G as headingOutlineLevel, H as relationshipIdOf, I as knownThemeColor, J as isNumberingLevel, K as outlineLevelFromStatedValue, L as readThemeColor, M as SCHEME_COLOR_VALUE_BY_THEME_COLOR, N as THEME_COLOR_BY_SCHEME_COLOR_VALUE, O as TAB_STOP_ALIGNMENTS, P as isSchemeColorValue, Q as mergeParagraphNumbering, R as themeColorSlot, S as isBorderStyle, T as NUMBER_FORMATS, U as BODY_TEXT_OUTLINE_LEVEL, V as mintRelationshipId, W as headingLevelOf, X as NO_PARAGRAPH_NUMBERING, Y as NO_NUMBERING_NUM_ID, Z as isNumberingReference, _ as PRESET_LINE_DASH_VALS, at as sameEffectiveParagraphNumbering, b as isBorderNil, c as PROPERTY_REVISION_KINDS, ct as PARSE_WARNING_CODES, d as isOoxmlSymbolCharacter, et as paragraphNumberingLevel, f as normalizeRevisionId, g as presetLineDashToken, h as presetLineDashFrom, i as DRAWING_RAW_XML_MODES, it as resolveParagraphNumbering, j as TEXT_DIRECTION_FLOW_BY_TOKEN, k as TEXT_DIRECTIONS, l as REVIEW_CARRIERS, m as isPresetLineDashVal, n as DOCX_CONFORMANCE_CLASSES, nt as paragraphNumberingReferenceId, o as MAX_REVISION_ID, ot as sameStatedParagraphNumbering, p as COUNTER_FORMATS, q as outlineLevelStatedValue, r as BIDI_CONTROLS, rt as paragraphNumberingSlots, s as PARAGRAPH_MARK_CHANGE_KINDS, st as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, t as DEFAULT_TAB_STOP_TWIPS, tt as paragraphNumberingReference, v as borderStyleFrom, w as BORDER_STYLES, x as isBorderNone, y as borderStyleToken, z as themeColorToken } from "../document-3WKQA1r3.js";
2
- export { BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, COUNTER_FORMATS, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, REVIEW_CARRIERS, SCHEME_COLOR_VALUE_BY_THEME_COLOR, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, borderStyleFrom, borderStyleToken, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
1
+ import { $ as mergeParagraphNumbering, A as TEXT_DIRECTIONS, B as themeColorToken, C as isBorderStyle, D as PARAGRAPH_ALIGNMENTS, E as NUMBER_FORMATS, F as isSchemeColorValue, G as headingLevelOf, H as mintRelationshipId, I as isThemeColor, J as outlineLevelStatedValue, K as headingOutlineLevel, L as knownThemeColor, M as TEXT_DIRECTION_FLOW_BY_TOKEN, N as SCHEME_COLOR_VALUE_BY_THEME_COLOR, O as TABLE_ALIGNMENTS, P as THEME_COLOR_BY_SCHEME_COLOR_VALUE, Q as isNumberingReference, R as readThemeColor, S as isBorderNone, T as BORDER_STYLES, U as relationshipIdOf, V as THEME_COLORS, W as BODY_TEXT_OUTLINE_LEVEL, X as NO_NUMBERING_NUM_ID, Y as isNumberingLevel, Z as NO_PARAGRAPH_NUMBERING, _ as presetLineDashToken, a as DRAWING_RAW_XML_MODES, at as resolveParagraphNumbering, b as borderStyleToken, c as PARAGRAPH_MARK_CHANGE_KINDS, ct as MAX_RETAINED_PARSE_WARNINGS_PER_CODE, et as paragraphNumberingFromSlots, f as isOoxmlSymbolCharacter, g as presetLineDashFrom, h as isPresetLineDashVal, i as BIDI_CONTROLS, it as paragraphNumberingSlots, j as TEXT_DIRECTION_FLOWS, k as TAB_STOP_ALIGNMENTS, l as PROPERTY_REVISION_KINDS, lt as PARSE_WARNING_CODES, m as COUNTER_FORMATS, n as DEFAULT_TAB_STOP_TWIPS, nt as paragraphNumberingReference, ot as sameEffectiveParagraphNumbering, p as normalizeRevisionId, q as outlineLevelFromStatedValue, r as DOCX_CONFORMANCE_CLASSES, rt as paragraphNumberingReferenceId, s as MAX_REVISION_ID, st as sameStatedParagraphNumbering, t as COMMENT_PART_RELATIONSHIPS, tt as paragraphNumberingLevel, u as REVIEW_CARRIERS, v as PRESET_LINE_DASH_VALS, w as statesNoBorder, x as isBorderNil, y as borderStyleFrom, z as themeColorSlot } from "../document-CQ0oovh0.js";
2
+ export { BIDI_CONTROLS, BODY_TEXT_OUTLINE_LEVEL, BORDER_STYLES, COMMENT_PART_RELATIONSHIPS, COUNTER_FORMATS, DEFAULT_TAB_STOP_TWIPS, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, MAX_RETAINED_PARSE_WARNINGS_PER_CODE, MAX_REVISION_ID, NO_NUMBERING_NUM_ID, NO_PARAGRAPH_NUMBERING, NUMBER_FORMATS, PARAGRAPH_ALIGNMENTS, PARAGRAPH_MARK_CHANGE_KINDS, PARSE_WARNING_CODES, PRESET_LINE_DASH_VALS, PROPERTY_REVISION_KINDS, REVIEW_CARRIERS, SCHEME_COLOR_VALUE_BY_THEME_COLOR, TABLE_ALIGNMENTS, TAB_STOP_ALIGNMENTS, TEXT_DIRECTIONS, TEXT_DIRECTION_FLOWS, TEXT_DIRECTION_FLOW_BY_TOKEN, THEME_COLORS, THEME_COLOR_BY_SCHEME_COLOR_VALUE, borderStyleFrom, borderStyleToken, headingLevelOf, headingOutlineLevel, isBorderNil, isBorderNone, isBorderStyle, isNumberingLevel, isNumberingReference, isOoxmlSymbolCharacter, isPresetLineDashVal, isSchemeColorValue, isThemeColor, knownThemeColor, mergeParagraphNumbering, mintRelationshipId, normalizeRevisionId, outlineLevelFromStatedValue, outlineLevelStatedValue, paragraphNumberingFromSlots, paragraphNumberingLevel, paragraphNumberingReference, paragraphNumberingReferenceId, paragraphNumberingSlots, presetLineDashFrom, presetLineDashToken, readThemeColor, relationshipIdOf, resolveParagraphNumbering, sameEffectiveParagraphNumbering, sameStatedParagraphNumbering, statesNoBorder, themeColorSlot, themeColorToken };
@@ -1,4 +1,4 @@
1
- import { $t as ParagraphMarkChange, Br as TableCellFormatting, Dr as NumberingDefinitions, Fn as Table, Kr as TableRowFormatting, M as BlockContent, Or as NumberingInstance, Pn as TabContent, Pr as ParagraphFormatting, Qt as ParagraphContent, R as BreakContent, Vr as TableFormatting, Wn as TableRow, X as DocumentBody, Yr as TextFormatting, Zt as Paragraph, _t as INSERTION_SEAM_POLICIES, bn as SectionProperties, c as ExhaustiveFields, h as Relationship, i as DocumentSettings, m as MediaFile, mi as HeadingOutlineLevel, mn as RunContent, mt as HeaderFooterType, nt as Endnote, o as DocxPackage, pn as Run, pt as HeaderFooter, r as Document, tn as ParagraphPropertyChange, ut as Footnote, vr as AbstractNumbering, y as StyleDefinitions, yn as Section } from "../document-C73n0FqK.js";
1
+ import { $t as ParagraphContent, Fn as TabContent, Fr as ParagraphFormatting, Gn as TableRow, Hr as TableFormatting, In as Table, N as BlockContent, Or as NumberingDefinitions, Qt as Paragraph, V as Comment, Vr as TableCellFormatting, Xr as TextFormatting, Z as DocumentBody, a as DocumentSettings, b as StyleDefinitions, bn as Section, dt as Footnote, en as ParagraphMarkChange, g as Relationship, h as MediaFile, hi as HeadingOutlineLevel, hn as RunContent, ht as HeaderFooterType, i as Document, kr as NumberingInstance, l as ExhaustiveFields, mn as Run, mt as HeaderFooter, nn as ParagraphPropertyChange, qr as TableRowFormatting, rt as Endnote, s as DocxPackage, vt as INSERTION_SEAM_POLICIES, xn as SectionProperties, yr as AbstractNumbering, z as BreakContent } from "../document-YlRuGzLX.js";
2
2
  import { Result } from "better-result";
3
3
  //#region src/ops/noteMarks.d.ts
4
4
  declare const noteUsesCustomMark: (document: Document, note: Footnote | Endnote) => boolean;
@@ -57,7 +57,7 @@ type SectionViewChange = {
57
57
  * and paragraph operations, and the review operations `setParagraphReview`,
58
58
  * `replaceInline` and `resolveRevision`.
59
59
  */
60
- declare const DOCUMENT_OP_SCHEMA_VERSION = 9;
60
+ declare const DOCUMENT_OP_SCHEMA_VERSION = 10;
61
61
  /**
62
62
  * The main story has a fixed address; other editable parts use their stable
63
63
  * relationship id or note id. Comment bodies are not yet editable stories.
@@ -172,8 +172,13 @@ declare const SECTION_BOUNDARY_POLICIES: Readonly<{
172
172
  readonly REMOVE: "remove";
173
173
  readonly REPLACE: "replace";
174
174
  }>;
175
- /** The operation kinds of schema version 9. */
175
+ /** The operation kinds of schema version 10. */
176
176
  declare const DOCUMENT_OP_TYPES: Readonly<{
177
+ readonly CREATE_COMMENT: "createComment";
178
+ readonly UPDATE_COMMENT_CONTENT: "updateCommentContent";
179
+ readonly SET_COMMENT_RESOLUTION: "setCommentResolution";
180
+ readonly DELETE_COMMENT: "deleteComment";
181
+ readonly RESTORE_COMMENT_STATE: "restoreCommentState";
177
182
  readonly CREATE_HEADER_FOOTER: "createHeaderFooter";
178
183
  readonly REMOVE_HEADER_FOOTER: "removeHeaderFooter";
179
184
  readonly ADD_NOTE: "addNote";
@@ -819,6 +824,18 @@ type SetSectionPropsOp = {
819
824
  };
820
825
  /** JSON-safe lifecycle deltas: omitted fields are unowned, null restores absence. */
821
826
  type StoryParts = {
827
+ /** Owned fields whose source explicitly had an undefined own property. */
828
+ undefinedFields?: readonly ({
829
+ target: "body";
830
+ keys: readonly (keyof NonNullable<StoryParts["body"]>)[];
831
+ } | {
832
+ target: "package";
833
+ keys: readonly (keyof Omit<StoryParts, "body" | "sections" | "undefinedFields">)[];
834
+ } | {
835
+ target: "section";
836
+ index: number;
837
+ keys: readonly (keyof Omit<NonNullable<StoryParts["sections"]>[number], "index">)[];
838
+ })[];
822
839
  body?: { [Key in keyof Omit<DocumentBody, "sections">]?: Key extends "content" ? DocumentBody[Key] : Exclude<DocumentBody[Key], undefined> | null; };
823
840
  /** Section contents remain derived from the body's content and are never duplicated. */
824
841
  sections?: readonly {
@@ -901,8 +918,74 @@ type TableEditOp = InsertColumnOp | DeleteColumnOp | MergeCellsOp | SplitCellOp
901
918
  type TableIntentOperation = { [Kind in TableEditOp["type"]]: Omit<Extract<TableEditOp, {
902
919
  type: Kind;
903
920
  }>, "revision" | "newIds" | "newBlockIds">; }[TableEditOp["type"]];
904
- /** A schema-version-9 document operation. */
905
- type DocumentOp = (CreateHeaderFooterOp | RemoveHeaderFooterOp | AddNoteOp | RemoveNoteOp | SetSectionPropsOp | RestoreStoryPartsOp | DeleteBlocksOp | InsertTableOp | DeleteTableOp | SetContainerBlocksOp | InsertBlocksOp | InsertTextOp | InsertContentOp | DeleteRangeOp | SplitInlineOp | JoinInlineOp | SetRunPropsOp | SetParagraphPropsOp | SplitBlockOp | JoinBlocksOp | ReplaceBlocksOp | SetParagraphReviewOp | ReplaceInlineOp | ResolveRevisionOp | InsertRowOp | DeleteRowOp | SetTableRowsOp | TableEditOp | SetTableOp | CreateNumberingInstanceOp | DeleteNumberingInstanceOp | SetSectionEndpointOp | SetPackageResourcesOp) & {
921
+ /** A comment definition owns one range, point, thread relation or revision association. */
922
+ type CommentAnchor = {
923
+ kind: "range";
924
+ from: TextPosition;
925
+ to: TextPosition;
926
+ } | {
927
+ kind: "point";
928
+ at: TextPosition;
929
+ } | {
930
+ kind: "reply";
931
+ parentId: number;
932
+ } | {
933
+ kind: "revision";
934
+ story: OpStory;
935
+ revisionId: number;
936
+ };
937
+ type CreateCommentOp = {
938
+ type: typeof DOCUMENT_OP_TYPES.CREATE_COMMENT;
939
+ comment: Omit<Comment, "parentId">;
940
+ anchor: CommentAnchor;
941
+ newIds?: NewIds;
942
+ };
943
+ type UpdateCommentContentOp = {
944
+ type: typeof DOCUMENT_OP_TYPES.UPDATE_COMMENT_CONTENT;
945
+ id: number;
946
+ content: readonly Paragraph[];
947
+ patch?: FormattingPatch<Pick<Comment, "author" | "initials" | "date">>;
948
+ };
949
+ type SetCommentResolutionOp = {
950
+ type: typeof DOCUMENT_OP_TYPES.SET_COMMENT_RESOLUTION;
951
+ id: number;
952
+ status: "open" | "resolved";
953
+ };
954
+ type DeleteCommentOp = {
955
+ type: typeof DOCUMENT_OP_TYPES.DELETE_COMMENT;
956
+ id: number;
957
+ scope: "thread" | "reply";
958
+ };
959
+ /** Exact owned comment records and the paragraph fragments containing their anchors. */
960
+ type CommentState = {
961
+ relationshipPresence: "absent" | "undefined" | "present";
962
+ relationships: readonly {
963
+ index: number;
964
+ key: string;
965
+ relationship: Relationship;
966
+ }[];
967
+ listPresence: "absent" | "undefined" | "present";
968
+ records: readonly {
969
+ index: number;
970
+ comment: Comment;
971
+ }[];
972
+ anchors: readonly {
973
+ story: OpStory;
974
+ blockId: string;
975
+ content: readonly ParagraphContent[];
976
+ }[];
977
+ };
978
+ type RestoreCommentStateOp = {
979
+ type: typeof DOCUMENT_OP_TYPES.RESTORE_COMMENT_STATE;
980
+ ids: readonly number[];
981
+ /** Only identities introduced or retired by anchor scaffolding cuts. */
982
+ scaffoldIds: NewIds;
983
+ expected: CommentState;
984
+ state: CommentState;
985
+ };
986
+ type CommentOp = CreateCommentOp | UpdateCommentContentOp | SetCommentResolutionOp | DeleteCommentOp | RestoreCommentStateOp;
987
+ /** A schema-version-10 document operation. */
988
+ type DocumentOp = (CommentOp | CreateHeaderFooterOp | RemoveHeaderFooterOp | AddNoteOp | RemoveNoteOp | SetSectionPropsOp | RestoreStoryPartsOp | DeleteBlocksOp | InsertTableOp | DeleteTableOp | SetContainerBlocksOp | InsertBlocksOp | InsertTextOp | InsertContentOp | DeleteRangeOp | SplitInlineOp | JoinInlineOp | SetRunPropsOp | SetParagraphPropsOp | SplitBlockOp | JoinBlocksOp | ReplaceBlocksOp | SetParagraphReviewOp | ReplaceInlineOp | ResolveRevisionOp | InsertRowOp | DeleteRowOp | SetTableRowsOp | TableEditOp | SetTableOp | CreateNumberingInstanceOp | DeleteNumberingInstanceOp | SetSectionEndpointOp | SetPackageResourcesOp) & {
906
989
  /** Own undefined fields recorded by the operation capture boundary. */
907
990
  undefinedFields?: readonly (readonly string[])[];
908
991
  };
@@ -1374,6 +1457,8 @@ declare const packageParagraphIds: (pkg: DocxPackage) => string[];
1374
1457
  declare const idKey: (id: string) => string;
1375
1458
  //#endregion
1376
1459
  //#region src/ops/plan.d.ts
1460
+ /** Package-aware explicit pools for every semantic comment anchor cut, including replies. */
1461
+ declare const allocateCommentAnchorIds: (document: Document, op: CreateCommentOp) => Result<NewIds, DocumentOpRefusal>;
1377
1462
  /**
1378
1463
  * How many `newIds.revision` entries an operation takes on a document,
1379
1464
  * besides its stamp's id: the length of the shortest list of unused ids it
@@ -1529,4 +1614,13 @@ declare const createClient: (document: Document) => {
1529
1614
  readonly notices: readonly ClientNotice[];
1530
1615
  };
1531
1616
  //#endregion
1532
- export { type AddNoteOp, type AppliedDocumentOp, BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, type BatchRejectionReason, type BlockInsertionPoint, type CreateHeaderFooterOp, type CreateNumberingInstanceOp, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, type DeleteBlocksOp, type DeleteColumnOp, type DeleteNumberingInstanceOp, type DeleteRangeOp, type DeleteRowOp, type DeleteTableOp, type DocumentBatch, type DocumentOp, type DocumentOpEnvelope, DocumentOpRefusal, type DocumentOpRefusalReason, type DocumentOpType, DocumentOpsContractError, EMPTY_PROPERTY_SETS, type EditorIntent, type EditorIntentMode, type EmptyPropertySet, type FormattingPatch, type HeaderFooterStory, INHERIT_RUN_PROPS, type InlineSlice, type InsertBlocksOp, type InsertColumnOp, type InsertContentOp, type InsertRowOp, type InsertTableOp, type InsertTextOp, type InsertedRunProps, type JoinBlocksOp, type JoinInlineOp, MAX_BATCH_WIRE_BYTES, type MergeCellsOp, type NewIds, type NoteStory, type NumberingPartState, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, type OpStory, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, type PackageResourceEntry, type PackageResourceEntryChange, type PackageResourceMapChange, type PackageResourceMedia, type PackageResourcePart, type PackageResources, type ParagraphPropsPatch, type ParagraphReviewFields, type PlanTrackedDeletionOptions, type PlanTrackedReplaceOptions, REVISION_DECISIONS, type RemoveHeaderFooterOp, type RemoveNoteOp, type ReplaceBlocksOp, type ReplaceInlineOp, type ResolveRevisionOp, type RestoreStoryPartsOp, type RevisionDecision, type RevisionStamp, type RunPropsPatch, SPLIT_HALVES, type SectionEndpoint, type SectionMapState, type SectionPropertiesState, type SectionViewEntry, type SectionViewState, type SequencedBatch, type SetCellPropsOp, type SetContainerBlocksOp, type SetPackageResourcesOp, type SetParagraphPropsOp, type SetParagraphReviewOp, type SetRowPropsOp, type SetRunPropsOp, type SetSectionEndpointOp, type SetSectionPropsOp, type SetTableGridOp, type SetTableOp, type SetTablePropsOp, type SetTableRowsOp, type SplitBlockOp, type SplitCellOp, type SplitHalf, type SplitInlineOp, type SplitParagraphFields, type TableEditOp, type TableIntentOperation, type TextPosition, type TouchedBlocks, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, findStoryBody, formattingEquals, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, planTrackedDeletion, planTrackedReplace, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, zeroWidthLeavesAt };
1617
+ //#region src/ops/comments.d.ts
1618
+ /**
1619
+ * Shared loaded-comment activation contract; legacy parentId revision associations stay explicit.
1620
+ * `allowedOrphans` names unanchored root comments the caller accepts ("all" for a loaded package).
1621
+ */
1622
+ declare const commentDocumentIssue: (document: Document, allowedOrphans?: ReadonlySet<number> | "all") => string | undefined;
1623
+ /** Allocate from the package's annotation domains without a hidden mutable counter. */
1624
+ declare const freshCommentId: (document: Document) => Result<number, DocumentOpRefusal>;
1625
+ //#endregion
1626
+ export { type AddNoteOp, type AppliedDocumentOp, BATCH_REJECTION_REASONS, BATCH_WIRE_OP_TYPES, BatchRejection, type BatchRejectionReason, type BlockInsertionPoint, type CommentAnchor, type CommentState, type CreateCommentOp, type CreateHeaderFooterOp, type CreateNumberingInstanceOp, DOCUMENT_OP_REFUSAL_REASONS, DOCUMENT_OP_SCHEMA_VERSION, DOCUMENT_OP_TYPES, type DeleteBlocksOp, type DeleteColumnOp, type DeleteCommentOp, type DeleteNumberingInstanceOp, type DeleteRangeOp, type DeleteRowOp, type DeleteTableOp, type DocumentBatch, type DocumentOp, type DocumentOpEnvelope, DocumentOpRefusal, type DocumentOpRefusalReason, type DocumentOpType, DocumentOpsContractError, EMPTY_PROPERTY_SETS, type EditorIntent, type EditorIntentMode, type EmptyPropertySet, type FormattingPatch, type HeaderFooterStory, INHERIT_RUN_PROPS, type InlineSlice, type InsertBlocksOp, type InsertColumnOp, type InsertContentOp, type InsertRowOp, type InsertTableOp, type InsertTextOp, type InsertedRunProps, type JoinBlocksOp, type JoinInlineOp, MAX_BATCH_WIRE_BYTES, type MergeCellsOp, type NewIds, type NoteStory, type NumberingPartState, OBJECT_REPLACEMENT_CHARACTER, OP_STORIES, type OpStory, PARAGRAPH_MARK_FORMATTING_KEYS, PROPERTY_REVIEW_POLICIES, type PackageResourceEntry, type PackageResourceEntryChange, type PackageResourceMapChange, type PackageResourceMedia, type PackageResourcePart, type PackageResources, type ParagraphPropsPatch, type ParagraphReviewFields, type PlanTrackedDeletionOptions, type PlanTrackedReplaceOptions, REVISION_DECISIONS, type RemoveHeaderFooterOp, type RemoveNoteOp, type ReplaceBlocksOp, type ReplaceInlineOp, type ResolveRevisionOp, type RestoreCommentStateOp, type RestoreStoryPartsOp, type RevisionDecision, type RevisionStamp, type RunPropsPatch, SPLIT_HALVES, type SectionEndpoint, type SectionMapState, type SectionPropertiesState, type SectionViewEntry, type SectionViewState, type SequencedBatch, type SetCellPropsOp, type SetCommentResolutionOp, type SetContainerBlocksOp, type SetPackageResourcesOp, type SetParagraphPropsOp, type SetParagraphReviewOp, type SetRowPropsOp, type SetRunPropsOp, type SetSectionEndpointOp, type SetSectionPropsOp, type SetTableGridOp, type SetTableOp, type SetTablePropsOp, type SetTableRowsOp, type SplitBlockOp, type SplitCellOp, type SplitHalf, type SplitInlineOp, type SplitParagraphFields, type TableEditOp, type TableIntentOperation, type TextPosition, type TouchedBlocks, type UpdateCommentContentOp, allocateCommentAnchorIds, applyDocumentOp, applyDocumentOpEnvelope, applyDocumentOps, captureDocumentOp, combineEdits, commentDocumentIssue, compareGaps, compileEditorIntent, createClient, createEditorIntentIdAllocator, createSequencer, defaultInsertionGap, documentStories, editorParagraphGroups, findStoryBody, formattingEquals, freshCommentId, idKey, inlineLeafSpans, isTextOnlyRun, mapTocBookmarkPosition, mergeRunContent, normalizeForOps, noteUsesCustomMark, packageParagraphIds, packageResourcesOpOf, paragraphLength, paragraphLogicalText, paragraphVisibleText, parseDocumentBatch, physicalOffsetAtVisibleOffset, planTrackedDeletion, planTrackedReplace, revisionIdDemand, runsMergeable, sameStory, sectionPropertiesAt, storyBody, toOpEnvelope, transformBatch, validateDocumentBatch, validateOpsDocument, validateSequencedBatch, zeroWidthLeavesAt };