@stll/docx-core 0.18.0 → 0.19.1

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.
@@ -28,6 +28,27 @@ function normalizeRevisionId(id) {
28
28
  if (id > 2147483647) return id % 2147483648;
29
29
  return id;
30
30
  }
31
+ /**
32
+ * The kinds a paragraph-mark tracked change can be (ECMA-376 §17.13.5).
33
+ *
34
+ * Written as a child of `<w:pPr><w:rPr>` — `<w:ins/>` when the paragraph
35
+ * break itself was inserted in track-changes mode (the user pressed Enter
36
+ * mid-paragraph), `<w:del/>` when the paragraph break is pending deletion
37
+ * (Backspace at paragraph start or Delete at paragraph end). The mark is
38
+ * independent of the inline runs the paragraph carries.
39
+ *
40
+ * A relocated paragraph's break is `<w:moveFrom/>` at the source and
41
+ * `<w:moveTo/>` at the destination. They resolve exactly as `del` and `ins`
42
+ * do — a move is a deletion and an insertion that a reader is told belong
43
+ * together — but they are not those kinds: writing `w:del` on a moved
44
+ * paragraph's mark reports the relocation as a deletion as well.
45
+ */
46
+ const PARAGRAPH_MARK_CHANGE_KINDS = Object.freeze([
47
+ "moveFrom",
48
+ "moveTo",
49
+ "ins",
50
+ "del"
51
+ ]);
31
52
  //#endregion
32
53
  //#region src/model/document.ts
33
54
  /** DOCX package conformance classes. */
@@ -37,4 +58,4 @@ const DOCX_CONFORMANCE_CLASSES = Object.freeze({
37
58
  UNKNOWN: "unknown"
38
59
  });
39
60
  //#endregion
40
- export { normalizeRevisionId as a, isOoxmlSymbolCharacter as i, DRAWING_RAW_XML_MODES as n, MAX_REVISION_ID as r, DOCX_CONFORMANCE_CLASSES as t };
61
+ export { isOoxmlSymbolCharacter as a, PARAGRAPH_MARK_CHANGE_KINDS as i, DRAWING_RAW_XML_MODES as n, normalizeRevisionId as o, MAX_REVISION_ID as r, DOCX_CONFORMANCE_CLASSES as t };
@@ -409,6 +409,31 @@ type TableFormatting = {
409
409
  floating?: FloatingTableProperties;
410
410
  /** Right to left table */
411
411
  bidi?: boolean;
412
+ /**
413
+ * The table's `w:tblGrid`, verbatim.
414
+ *
415
+ * The grid is a sibling of `w:tblPr` rather than a child of it, but it is
416
+ * the table's own property set that travels through the editable model, so
417
+ * it rides along here. Rebuilding the grid from the column widths alone
418
+ * drops `w:tblGridChange` — the tracked record of a grid a reviewer resized
419
+ * — which nothing else in the model carries.
420
+ */
421
+ gridSourceXml?: string;
422
+ /**
423
+ * The element this formatting was parsed from, verbatim.
424
+ *
425
+ * A typed model covers what the editor understands, and a document carries
426
+ * more than that: conditional-format flags, properties a later revision of
427
+ * the format added, properties a producer wrote that nothing here reads.
428
+ * Rebuilding the element from the model alone drops every one of them, so a
429
+ * save that rewrites an untouched table would change it.
430
+ *
431
+ * The source therefore travels with the parse, and the serializer writes it
432
+ * back unchanged while nothing in the model has moved. It is dropped the
433
+ * moment an edit changes a modelled value, because the two would then
434
+ * disagree and the source is the stale one.
435
+ */
436
+ sourceXml?: string;
412
437
  };
413
438
  /**
414
439
  * Table row formatting properties (w:trPr)
@@ -436,6 +461,21 @@ type TableRowFormatting = {
436
461
  hidden?: boolean;
437
462
  /** Conditional format style */
438
463
  conditionalFormat?: ConditionalFormatStyle;
464
+ /**
465
+ * The element this formatting was parsed from, verbatim.
466
+ *
467
+ * A typed model covers what the editor understands, and a document carries
468
+ * more than that: conditional-format flags, properties a later revision of
469
+ * the format added, properties a producer wrote that nothing here reads.
470
+ * Rebuilding the element from the model alone drops every one of them, so a
471
+ * save that rewrites an untouched table would change it.
472
+ *
473
+ * The source therefore travels with the parse, and the serializer writes it
474
+ * back unchanged while nothing in the model has moved. It is dropped the
475
+ * moment an edit changes a modelled value, because the two would then
476
+ * disagree and the source is the stale one.
477
+ */
478
+ sourceXml?: string;
439
479
  };
440
480
  /**
441
481
  * Conditional format style
@@ -494,6 +534,21 @@ type TableCellFormatting = {
494
534
  hideMark?: boolean;
495
535
  /** Conditional format style */
496
536
  conditionalFormat?: ConditionalFormatStyle;
537
+ /**
538
+ * The element this formatting was parsed from, verbatim.
539
+ *
540
+ * A typed model covers what the editor understands, and a document carries
541
+ * more than that: conditional-format flags, properties a later revision of
542
+ * the format added, properties a producer wrote that nothing here reads.
543
+ * Rebuilding the element from the model alone drops every one of them, so a
544
+ * save that rewrites an untouched table would change it.
545
+ *
546
+ * The source therefore travels with the parse, and the serializer writes it
547
+ * back unchanged while nothing in the model has moved. It is dropped the
548
+ * moment an edit changes a modelled value, because the two would then
549
+ * disagree and the source is the stale one.
550
+ */
551
+ sourceXml?: string;
497
552
  };
498
553
  //#endregion
499
554
  //#region src/model/lists.d.ts
@@ -1295,6 +1350,16 @@ type TrackedChangeInfo = {
1295
1350
  * and carried through the round-trip when present on the source document.
1296
1351
  */
1297
1352
  initials?: string;
1353
+ /**
1354
+ * The UTC companion to `w:date` a recent producer writes alongside it, kept
1355
+ * with the prefix the document bound it under: the attribute names a
1356
+ * namespace the part declares on its root, and re-emitting it under a
1357
+ * prefix of our choosing would name one that is not there.
1358
+ */
1359
+ utcDate?: {
1360
+ attribute: string;
1361
+ value: string;
1362
+ };
1298
1363
  };
1299
1364
  /**
1300
1365
  * Generic tracked property-change wrapper metadata (w:*PrChange)
@@ -1303,6 +1368,8 @@ type PropertyChangeInfo = {
1303
1368
  /** Optional revision session ID */
1304
1369
  rsid?: string;
1305
1370
  } & TrackedChangeInfo;
1371
+ /** Inline content that may sit inside a run-level tracked-change wrapper. */
1372
+ type TrackedRunContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | TrackedRunChange;
1306
1373
  /**
1307
1374
  * Insertion wrapper (w:ins) — runs inserted by tracked changes
1308
1375
  */
@@ -1311,7 +1378,7 @@ type Insertion = {
1311
1378
  /** Tracked change metadata */
1312
1379
  info: TrackedChangeInfo;
1313
1380
  /** Inserted content */
1314
- content: (Run | Hyperlink)[];
1381
+ content: TrackedRunContent[];
1315
1382
  };
1316
1383
  /**
1317
1384
  * Deletion wrapper (w:del) — runs deleted by tracked changes
@@ -1321,7 +1388,7 @@ type Deletion = {
1321
1388
  /** Tracked change metadata */
1322
1389
  info: TrackedChangeInfo;
1323
1390
  /** Deleted content */
1324
- content: (Run | Hyperlink)[];
1391
+ content: TrackedRunContent[];
1325
1392
  };
1326
1393
  /**
1327
1394
  * Move-from wrapper (w:moveFrom) — content moved away from this position
@@ -1331,7 +1398,7 @@ type MoveFrom = {
1331
1398
  /** Tracked change metadata */
1332
1399
  info: TrackedChangeInfo;
1333
1400
  /** Moved content */
1334
- content: (Run | Hyperlink)[];
1401
+ content: TrackedRunContent[];
1335
1402
  };
1336
1403
  /**
1337
1404
  * Move-to wrapper (w:moveTo) — content moved into this position
@@ -1341,7 +1408,7 @@ type MoveTo = {
1341
1408
  /** Tracked change metadata */
1342
1409
  info: TrackedChangeInfo;
1343
1410
  /** Moved content */
1344
- content: (Run | Hyperlink)[];
1411
+ content: TrackedRunContent[];
1345
1412
  };
1346
1413
  /**
1347
1414
  * Move-from range start marker (w:moveFromRangeStart) — ECMA-376 §17.13.5.22
@@ -1579,21 +1646,29 @@ type BlockSdt = {
1579
1646
  */
1580
1647
  type ParagraphContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | InlineSdt | CommentRangeStart | CommentRangeEnd | CommentReference | Insertion | Deletion | MoveFrom | MoveTo | MoveFromRangeStart | MoveFromRangeEnd | MoveToRangeStart | MoveToRangeEnd | MathEquation;
1581
1648
  /**
1582
- * Paragraph (w:p)
1583
- */
1584
- /**
1585
- * Paragraph-mark tracked-change marker (ECMA-376 §17.13.5).
1649
+ * The kinds a paragraph-mark tracked change can be (ECMA-376 §17.13.5).
1586
1650
  *
1587
- * Word writes this as a child of `<w:pPr><w:rPr>` — `<w:ins/>` when the
1588
- * paragraph break itself was inserted in track-changes mode (the user
1589
- * pressed Enter mid-paragraph), `<w:del/>` when the paragraph break is
1590
- * pending deletion (Backspace at paragraph start or Delete at paragraph
1591
- * end). The mark is independent of the inline runs the paragraph carries.
1592
- */
1651
+ * Written as a child of `<w:pPr><w:rPr>` — `<w:ins/>` when the paragraph
1652
+ * break itself was inserted in track-changes mode (the user pressed Enter
1653
+ * mid-paragraph), `<w:del/>` when the paragraph break is pending deletion
1654
+ * (Backspace at paragraph start or Delete at paragraph end). The mark is
1655
+ * independent of the inline runs the paragraph carries.
1656
+ *
1657
+ * A relocated paragraph's break is `<w:moveFrom/>` at the source and
1658
+ * `<w:moveTo/>` at the destination. They resolve exactly as `del` and `ins`
1659
+ * do — a move is a deletion and an insertion that a reader is told belong
1660
+ * together — but they are not those kinds: writing `w:del` on a moved
1661
+ * paragraph's mark reports the relocation as a deletion as well.
1662
+ */
1663
+ declare const PARAGRAPH_MARK_CHANGE_KINDS: readonly ["moveFrom", "moveTo", "ins", "del"];
1664
+ /** One of {@link PARAGRAPH_MARK_CHANGE_KINDS}. */
1665
+ type ParagraphMarkChangeKind = (typeof PARAGRAPH_MARK_CHANGE_KINDS)[number];
1666
+ /** A paragraph-mark tracked change, written under `<w:pPr><w:rPr>`. */
1593
1667
  type ParagraphMarkChange = {
1594
- kind: "ins" | "del";
1668
+ kind: ParagraphMarkChangeKind;
1595
1669
  info: TrackedChangeInfo;
1596
1670
  };
1671
+ /** Paragraph (w:p) */
1597
1672
  type Paragraph = {
1598
1673
  type: "paragraph";
1599
1674
  /** Unique paragraph ID */
@@ -2308,4 +2383,4 @@ type Document = {
2308
2383
  warnings?: string[];
2309
2384
  };
2310
2385
  //#endregion
2311
- export { ImagePosition as $, TextBox as $t, ComplexField as A, TableFormatting as An, SdtType as At, FieldCharContent as B, KnownBorderStyle as Bn, ShapeTextBody as Bt, BookmarkStart as C, SpacingExplicit as Cn, PictureWatermark as Ct, CommentRangeEnd as D, TableBorders as Dn, RunContent as Dt, Comment as E, TabStopAlignment as En, Run as Et, DrawingRawXmlMode as F, TextEffect as Fn, Shape as Ft, FootnoteProperties as G, TabContent as Gt, FooterReference as H, ThemeColorSlot as Hn, SimpleField as Ht, Endnote as I, TextFormatting as In, ShapeContent as It, HeaderReference as J, TableCellPropertyChange as Jt, HeaderFooter as K, Table as Kt, EndnotePosition as L, UnderlineStyle as Ln, ShapeFill as Lt, Deletion as M, TableMeasurement as Mn, SectionProperties as Mt, DocumentBody as N, TableRowFormatting as Nn, SectionPropertyChange as Nt, CommentRangeStart as O, TableCellBorders as On, RunPropertyChange as Ot, DrawingContent as P, TableWidthType as Pn, SectionStart as Pt, ImagePadding as Q, TableStructuralChangeInfo as Qt, EndnoteProperties as R, BorderSpec as Rn, ShapeGeometryAdjustment as Rt, BookmarkEnd as S, ParagraphFormatting as Sn, ParagraphPropertyChange as St, Column as T, TabStop as Tn, PropertyChangeInfo as Tt, Footnote as U, SoftHyphenContent as Ut, FieldType as V, ShadingProperties as Vn, ShapeType as Vt, FootnotePosition as W, SymbolContent as Wt, Image as X, TableRow as Xt, Hyperlink as Y, TablePropertyChange as Yt, ImageCrop as Z, TableRowPropertyChange as Zt, ThemeColorScheme as _, ConditionalFormatStyle as _n, NoteReferenceContent as _t, DocxPackage as a, Watermark as an, InstrTextContent as at, BlockContent as b, LineSpacingRule as bn, ParagraphContent as bt, FontTable as c, AbstractNumbering as cn, MathEquation as ct, RelationshipMap as d, ListMarkerFormatting as dn, MoveFromRangeStart as dt, TextContent as en, ImageSize as et, RelationshipType as f, ListRendering as fn, MoveTo as ft, Theme as g, CellMargins as gn, NoteNumberRestart as gt, StyleType as h, NumberingInstance as hn, NoBreakHyphenContent as ht, DocxConformanceClass as i, VerticalAlign as in, Insertion as it, DRAWING_RAW_XML_MODES as j, TableLook as jn, Section as jt, CommentReference as k, TableCellFormatting as kn, SdtProperties as kt, MediaFile as l, LevelSuffix as ln, MoveFrom as lt, StyleDefinitions as m, NumberingDefinitions as mn, MoveToRangeStart as mt, Document as n, TrackedChangeInfo as nn, ImageWrap as nt, DocDefaults as o, isOoxmlSymbolCharacter as on, LineNumberRestart as ot, Style as p, NumberFormat as pn, MoveToRangeEnd as pt, HeaderFooterType as q, TableCell as qt, DocumentSettings as r, TrackedRunChange as rn, InlineSdt as rt, FontInfo as s, normalizeRevisionId as sn, MAX_REVISION_ID as st, DOCX_CONFORMANCE_CLASSES as t, TextWatermark as tn, ImageTransform as tt, Relationship as u, ListLevel as un, MoveFromRangeEnd as ut, ThemeFont as v, EmphasisMark as vn, PageOrientation as vt, BreakContent as w, TabLeader as wn, PositionalTab as wt, BlockSdt as x, ParagraphAlignment as xn, ParagraphMarkChange as xt, ThemeFontScheme as y, FloatingTableProperties as yn, Paragraph as yt, Field as z, ColorValue as zn, ShapeOutline as zt };
2386
+ export { ImagePosition as $, TableRowPropertyChange as $t, ComplexField as A, TableBorders as An, RunPropertyChange as At, FieldCharContent as B, UnderlineStyle as Bn, ShapeGeometryAdjustment as Bt, BookmarkStart as C, LineSpacingRule as Cn, ParagraphMarkChangeKind as Ct, CommentRangeEnd as D, TabLeader as Dn, PropertyChangeInfo as Dt, Comment as E, SpacingExplicit as En, PositionalTab as Et, DrawingRawXmlMode as F, TableMeasurement as Fn, SectionPropertyChange as Ft, FootnoteProperties as G, ThemeColorSlot as Gn, SoftHyphenContent as Gt, FooterReference as H, ColorValue as Hn, ShapeTextBody as Ht, Endnote as I, TableRowFormatting as In, SectionStart as It, HeaderReference as J, Table as Jt, HeaderFooter as K, SymbolContent as Kt, EndnotePosition as L, TableWidthType as Ln, Shape as Lt, Deletion as M, TableCellFormatting as Mn, SdtType as Mt, DocumentBody as N, TableFormatting as Nn, Section as Nt, CommentRangeStart as O, TabStop as On, Run as Ot, DrawingContent as P, TableLook as Pn, SectionProperties as Pt, ImagePadding as Q, TableRow as Qt, EndnoteProperties as R, TextEffect as Rn, ShapeContent as Rt, BookmarkEnd as S, FloatingTableProperties as Sn, ParagraphMarkChange as St, Column as T, ParagraphFormatting as Tn, PictureWatermark as Tt, Footnote as U, KnownBorderStyle as Un, ShapeType as Ut, FieldType as V, BorderSpec as Vn, ShapeOutline as Vt, FootnotePosition as W, ShadingProperties as Wn, SimpleField as Wt, Image as X, TableCellPropertyChange as Xt, Hyperlink as Y, TableCell as Yt, ImageCrop as Z, TablePropertyChange as Zt, ThemeColorScheme as _, NumberingDefinitions as _n, NoteReferenceContent as _t, DocxPackage as a, TrackedRunChange as an, InstrTextContent as at, BlockContent as b, ConditionalFormatStyle as bn, Paragraph as bt, FontTable as c, Watermark as cn, MathEquation as ct, RelationshipMap as d, AbstractNumbering as dn, MoveFromRangeStart as dt, TableStructuralChangeInfo as en, ImageSize as et, RelationshipType as f, LevelSuffix as fn, MoveTo as ft, Theme as g, NumberFormat as gn, NoteNumberRestart as gt, StyleType as h, ListRendering as hn, NoBreakHyphenContent as ht, DocxConformanceClass as i, TrackedChangeInfo as in, Insertion as it, DRAWING_RAW_XML_MODES as j, TableCellBorders as jn, SdtProperties as jt, CommentReference as k, TabStopAlignment as kn, RunContent as kt, MediaFile as l, isOoxmlSymbolCharacter as ln, MoveFrom as lt, StyleDefinitions as m, ListMarkerFormatting as mn, MoveToRangeStart as mt, Document as n, TextContent as nn, ImageWrap as nt, DocDefaults as o, TrackedRunContent as on, LineNumberRestart as ot, Style as p, ListLevel as pn, MoveToRangeEnd as pt, HeaderFooterType as q, TabContent as qt, DocumentSettings as r, TextWatermark as rn, InlineSdt as rt, FontInfo as s, VerticalAlign as sn, MAX_REVISION_ID as st, DOCX_CONFORMANCE_CLASSES as t, TextBox as tn, ImageTransform as tt, Relationship as u, normalizeRevisionId as un, MoveFromRangeEnd as ut, ThemeFont as v, NumberingInstance as vn, PARAGRAPH_MARK_CHANGE_KINDS as vt, BreakContent as w, ParagraphAlignment as wn, ParagraphPropertyChange as wt, BlockSdt as x, EmphasisMark as xn, ParagraphContent as xt, ThemeFontScheme as y, CellMargins as yn, PageOrientation as yt, Field as z, TextFormatting as zn, ShapeFill as zt };
Binary file
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Dt as RunContent, Et as Run, Kt as Table, Mt as SectionProperties, N as DocumentBody, Xt as TableRow, a as DocxPackage, b as BlockContent, bt as ParagraphContent, en as TextContent, i as DocxConformanceClass, mn as NumberingDefinitions, n as Document, p as Style, qt as TableCell, t as DOCX_CONFORMANCE_CLASSES, w as BreakContent, wt as PositionalTab, yt as Paragraph } from "./document-C4ms2O35.js";
1
+ import { Et as PositionalTab, Jt as Table, N as DocumentBody, Ot as Run, Pt as SectionProperties, Qt as TableRow, Yt as TableCell, _n as NumberingDefinitions, a as DocxPackage, b as BlockContent, bt as Paragraph, i as DocxConformanceClass, kt as RunContent, n as Document, nn as TextContent, p as Style, t as DOCX_CONFORMANCE_CLASSES, w as BreakContent, xt as ParagraphContent } from "./document-DKOrHPfO.js";
2
2
  import { Buffer } from "node:buffer";
3
3
  //#region src/legal-source/types.d.ts
4
4
  type LegalDocumentKind = "agreement" | "letter" | "memo" | "checklist" | "pleading" | "other";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as isOoxmlSymbolCharacter, t as DOCX_CONFORMANCE_CLASSES } from "./document-BPDUWV3O.js";
1
+ import { a as isOoxmlSymbolCharacter, t as DOCX_CONFORMANCE_CLASSES } from "./document-Cj4uqQEw.js";
2
2
  import JSZip from "jszip";
3
3
  import { panic } from "better-result";
4
4
  import { XMLParser, XMLValidator } from "fast-xml-parser";
@@ -704,7 +704,10 @@ const validateHyperlinkChild = (child, path, ctx) => {
704
704
  };
705
705
  const validateTrackedRunChange = (change, path, ctx) => {
706
706
  if (change.info.author.trim() === "") addError(ctx, `${path}.info.author`, "Tracked change author is empty.");
707
- for (const [index, child] of change.content.entries()) validateFieldChild(child, `${path}.content[${index}]`, ctx);
707
+ for (const [index, child] of change.content.entries()) {
708
+ const childPath = `${path}.content[${index}]`;
709
+ validateParagraphContent(child, childPath, ctx);
710
+ }
708
711
  };
709
712
  const validateImage = (image, path, ctx, options = {}) => {
710
713
  if (!image.rId && !image.src?.startsWith("data:") && !options.hasPreservedRawDrawing) addError(ctx, `${path}.rId`, "Image must have a relationship id.");
@@ -1,2 +1,2 @@
1
- import { $ as ImagePosition, $t as TextBox, A as ComplexField, An as TableFormatting, At as SdtType, B as FieldCharContent, Bn as KnownBorderStyle, Bt as ShapeTextBody, C as BookmarkStart, Cn as SpacingExplicit, Ct as PictureWatermark, D as CommentRangeEnd, Dn as TableBorders, Dt as RunContent, E as Comment, En as TabStopAlignment, Et as Run, F as DrawingRawXmlMode, Fn as TextEffect, Ft as Shape, G as FootnoteProperties, Gt as TabContent, H as FooterReference, Hn as ThemeColorSlot, Ht as SimpleField, I as Endnote, In as TextFormatting, It as ShapeContent, J as HeaderReference, Jt as TableCellPropertyChange, K as HeaderFooter, Kt as Table, L as EndnotePosition, Ln as UnderlineStyle, Lt as ShapeFill, M as Deletion, Mn as TableMeasurement, Mt as SectionProperties, N as DocumentBody, Nn as TableRowFormatting, Nt as SectionPropertyChange, O as CommentRangeStart, On as TableCellBorders, Ot as RunPropertyChange, P as DrawingContent, Pn as TableWidthType, Pt as SectionStart, Q as ImagePadding, Qt as TableStructuralChangeInfo, R as EndnoteProperties, Rn as BorderSpec, Rt as ShapeGeometryAdjustment, S as BookmarkEnd, Sn as ParagraphFormatting, St as ParagraphPropertyChange, T as Column, Tn as TabStop, Tt as PropertyChangeInfo, U as Footnote, Ut as SoftHyphenContent, V as FieldType, Vn as ShadingProperties, Vt as ShapeType, W as FootnotePosition, Wt as SymbolContent, X as Image, Xt as TableRow, Y as Hyperlink, Yt as TablePropertyChange, Z as ImageCrop, Zt as TableRowPropertyChange, _ as ThemeColorScheme, _n as ConditionalFormatStyle, _t as NoteReferenceContent, a as DocxPackage, an as Watermark, at as InstrTextContent, b as BlockContent, bn as LineSpacingRule, bt as ParagraphContent, c as FontTable, cn as AbstractNumbering, ct as MathEquation, d as RelationshipMap, dn as ListMarkerFormatting, dt as MoveFromRangeStart, en as TextContent, et as ImageSize, f as RelationshipType, fn as ListRendering, ft as MoveTo, g as Theme, gn as CellMargins, gt as NoteNumberRestart, h as StyleType, hn as NumberingInstance, ht as NoBreakHyphenContent, i as DocxConformanceClass, in as VerticalAlign, it as Insertion, j as DRAWING_RAW_XML_MODES, jn as TableLook, jt as Section, k as CommentReference, kn as TableCellFormatting, kt as SdtProperties, l as MediaFile, ln as LevelSuffix, lt as MoveFrom, m as StyleDefinitions, mn as NumberingDefinitions, mt as MoveToRangeStart, n as Document, nn as TrackedChangeInfo, nt as ImageWrap, o as DocDefaults, on as isOoxmlSymbolCharacter, ot as LineNumberRestart, p as Style, pn as NumberFormat, pt as MoveToRangeEnd, q as HeaderFooterType, qt as TableCell, r as DocumentSettings, rn as TrackedRunChange, rt as InlineSdt, s as FontInfo, sn as normalizeRevisionId, st as MAX_REVISION_ID, t as DOCX_CONFORMANCE_CLASSES, tn as TextWatermark, tt as ImageTransform, u as Relationship, un as ListLevel, ut as MoveFromRangeEnd, v as ThemeFont, vn as EmphasisMark, vt as PageOrientation, w as BreakContent, wn as TabLeader, wt as PositionalTab, x as BlockSdt, xn as ParagraphAlignment, xt as ParagraphMarkChange, y as ThemeFontScheme, yn as FloatingTableProperties, yt as Paragraph, z as Field, zn as ColorValue, zt as ShapeOutline } from "../document-C4ms2O35.js";
2
- export { type AbstractNumbering, type BlockContent, type BlockSdt, type BookmarkEnd, type BookmarkStart, type BorderSpec, type BreakContent, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type Deletion, type DocDefaults, Document, type DocumentBody, DocumentSettings, DocxConformanceClass, DocxPackage, type DrawingContent, type DrawingRawXmlMode, type EmphasisMark, type Endnote, type EndnotePosition, type EndnoteProperties, type Field, type FieldCharContent, type FieldType, type FloatingTableProperties, type FontInfo, type FontTable, type FooterReference, type Footnote, type FootnotePosition, type FootnoteProperties, type HeaderFooter, type HeaderFooterType, type HeaderReference, type Hyperlink, type Image, type ImageCrop, type ImagePadding, type ImagePosition, type ImageSize, type ImageTransform, type ImageWrap, type InlineSdt, type Insertion, type InstrTextContent, type KnownBorderStyle, type LevelSuffix, type LineNumberRestart, type LineSpacingRule, type ListLevel, type ListMarkerFormatting, type ListRendering, MAX_REVISION_ID, type MathEquation, type MediaFile, type MoveFrom, type MoveFromRangeEnd, type MoveFromRangeStart, type MoveTo, type MoveToRangeEnd, type MoveToRangeStart, type NoBreakHyphenContent, type NoteNumberRestart, type NoteReferenceContent, type NumberFormat, type NumberingDefinitions, type NumberingInstance, type PageOrientation, type Paragraph, type ParagraphAlignment, type ParagraphContent, type ParagraphFormatting, type ParagraphMarkChange, type ParagraphPropertyChange, type PictureWatermark, type PositionalTab, type PropertyChangeInfo, type Relationship, type RelationshipMap, type RelationshipType, type Run, type RunContent, type RunPropertyChange, type SdtProperties, type SdtType, type Section, type SectionProperties, type SectionPropertyChange, type SectionStart, type ShadingProperties, type Shape, 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, type TabContent, type TabLeader, type TabStop, type TabStopAlignment, type Table, type TableBorders, type TableCell, type TableCellBorders, type TableCellFormatting, type TableCellPropertyChange, type TableFormatting, type TableLook, type TableMeasurement, type TablePropertyChange, type TableRow, type TableRowFormatting, type TableRowPropertyChange, type TableStructuralChangeInfo, type TableWidthType, type TextBox, type TextContent, type TextEffect, type TextFormatting, type TextWatermark, type Theme, type ThemeColorScheme, type ThemeColorSlot, type ThemeFont, type ThemeFontScheme, type TrackedChangeInfo, type TrackedRunChange, type UnderlineStyle, type VerticalAlign, type Watermark, isOoxmlSymbolCharacter, normalizeRevisionId };
1
+ import { $ as ImagePosition, $t as TableRowPropertyChange, A as ComplexField, An as TableBorders, At as RunPropertyChange, B as FieldCharContent, Bn as UnderlineStyle, Bt as ShapeGeometryAdjustment, C as BookmarkStart, Cn as LineSpacingRule, Ct as ParagraphMarkChangeKind, D as CommentRangeEnd, Dn as TabLeader, Dt as PropertyChangeInfo, E as Comment, En as SpacingExplicit, Et as PositionalTab, F as DrawingRawXmlMode, Fn as TableMeasurement, Ft as SectionPropertyChange, G as FootnoteProperties, Gn as ThemeColorSlot, Gt as SoftHyphenContent, H as FooterReference, Hn as ColorValue, Ht as ShapeTextBody, I as Endnote, In as TableRowFormatting, It as SectionStart, J as HeaderReference, Jt as Table, K as HeaderFooter, Kt as SymbolContent, L as EndnotePosition, Ln as TableWidthType, Lt as Shape, M as Deletion, Mn as TableCellFormatting, Mt as SdtType, N as DocumentBody, Nn as TableFormatting, Nt as Section, O as CommentRangeStart, On as TabStop, Ot as Run, P as DrawingContent, Pn as TableLook, Pt as SectionProperties, Q as ImagePadding, Qt as TableRow, R as EndnoteProperties, Rn as TextEffect, Rt as ShapeContent, S as BookmarkEnd, Sn as FloatingTableProperties, St as ParagraphMarkChange, T as Column, Tn as ParagraphFormatting, Tt as PictureWatermark, U as Footnote, Un as KnownBorderStyle, Ut as ShapeType, V as FieldType, Vn as BorderSpec, Vt as ShapeOutline, W as FootnotePosition, Wn as ShadingProperties, Wt as SimpleField, X as Image, Xt as TableCellPropertyChange, Y as Hyperlink, Yt as TableCell, Z as ImageCrop, Zt as TablePropertyChange, _ as ThemeColorScheme, _n as NumberingDefinitions, _t as NoteReferenceContent, a as DocxPackage, an as TrackedRunChange, at as InstrTextContent, b as BlockContent, bn as ConditionalFormatStyle, bt as Paragraph, c as FontTable, cn as Watermark, ct as MathEquation, d as RelationshipMap, dn as AbstractNumbering, dt as MoveFromRangeStart, en as TableStructuralChangeInfo, et as ImageSize, f as RelationshipType, fn as LevelSuffix, ft as MoveTo, g as Theme, gn as NumberFormat, gt as NoteNumberRestart, h as StyleType, hn as ListRendering, ht as NoBreakHyphenContent, i as DocxConformanceClass, in as TrackedChangeInfo, it as Insertion, j as DRAWING_RAW_XML_MODES, jn as TableCellBorders, jt as SdtProperties, k as CommentReference, kn as TabStopAlignment, kt as RunContent, l as MediaFile, ln as isOoxmlSymbolCharacter, lt as MoveFrom, m as StyleDefinitions, mn as ListMarkerFormatting, mt as MoveToRangeStart, n as Document, nn as TextContent, nt as ImageWrap, o as DocDefaults, on as TrackedRunContent, ot as LineNumberRestart, p as Style, pn as ListLevel, pt as MoveToRangeEnd, q as HeaderFooterType, qt as TabContent, r as DocumentSettings, rn as TextWatermark, rt as InlineSdt, s as FontInfo, sn as VerticalAlign, st as MAX_REVISION_ID, t as DOCX_CONFORMANCE_CLASSES, tn as TextBox, tt as ImageTransform, u as Relationship, un as normalizeRevisionId, ut as MoveFromRangeEnd, v as ThemeFont, vn as NumberingInstance, vt as PARAGRAPH_MARK_CHANGE_KINDS, w as BreakContent, wn as ParagraphAlignment, wt as ParagraphPropertyChange, x as BlockSdt, xn as EmphasisMark, xt as ParagraphContent, y as ThemeFontScheme, yn as CellMargins, yt as PageOrientation, z as Field, zn as TextFormatting, zt as ShapeFill } from "../document-DKOrHPfO.js";
2
+ export { type AbstractNumbering, type BlockContent, type BlockSdt, type BookmarkEnd, type BookmarkStart, type BorderSpec, type BreakContent, type CellMargins, type ColorValue, type Column, type Comment, type CommentRangeEnd, type CommentRangeStart, type CommentReference, type ComplexField, type ConditionalFormatStyle, DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, type Deletion, type DocDefaults, Document, type DocumentBody, DocumentSettings, DocxConformanceClass, DocxPackage, type DrawingContent, type DrawingRawXmlMode, type EmphasisMark, type Endnote, type EndnotePosition, type EndnoteProperties, type Field, type FieldCharContent, type FieldType, type FloatingTableProperties, type FontInfo, type FontTable, type FooterReference, type Footnote, type FootnotePosition, type FootnoteProperties, type HeaderFooter, type HeaderFooterType, type HeaderReference, type Hyperlink, type Image, type ImageCrop, type ImagePadding, type ImagePosition, type ImageSize, type ImageTransform, type ImageWrap, type InlineSdt, type Insertion, type InstrTextContent, type KnownBorderStyle, type LevelSuffix, type LineNumberRestart, type LineSpacingRule, type ListLevel, type ListMarkerFormatting, type ListRendering, MAX_REVISION_ID, type MathEquation, type MediaFile, type MoveFrom, type MoveFromRangeEnd, type MoveFromRangeStart, type MoveTo, type MoveToRangeEnd, type MoveToRangeStart, type NoBreakHyphenContent, type NoteNumberRestart, type NoteReferenceContent, type NumberFormat, type NumberingDefinitions, type NumberingInstance, PARAGRAPH_MARK_CHANGE_KINDS, type PageOrientation, type Paragraph, type ParagraphAlignment, type ParagraphContent, type ParagraphFormatting, type ParagraphMarkChange, type ParagraphMarkChangeKind, type ParagraphPropertyChange, type PictureWatermark, type PositionalTab, type PropertyChangeInfo, type Relationship, type RelationshipMap, type RelationshipType, type Run, type RunContent, type RunPropertyChange, type SdtProperties, type SdtType, type Section, type SectionProperties, type SectionPropertyChange, type SectionStart, type ShadingProperties, type Shape, 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, type TabContent, type TabLeader, type TabStop, type TabStopAlignment, type Table, type TableBorders, type TableCell, type TableCellBorders, type TableCellFormatting, type TableCellPropertyChange, type TableFormatting, type TableLook, type TableMeasurement, type TablePropertyChange, type TableRow, type TableRowFormatting, type TableRowPropertyChange, type TableStructuralChangeInfo, type TableWidthType, type TextBox, type TextContent, type TextEffect, type TextFormatting, type TextWatermark, type Theme, type ThemeColorScheme, type ThemeColorSlot, type ThemeFont, type ThemeFontScheme, type TrackedChangeInfo, type TrackedRunChange, type TrackedRunContent, type UnderlineStyle, type VerticalAlign, type Watermark, isOoxmlSymbolCharacter, normalizeRevisionId };
@@ -1,2 +1,2 @@
1
- import { a as normalizeRevisionId, i as isOoxmlSymbolCharacter, n as DRAWING_RAW_XML_MODES, r as MAX_REVISION_ID, t as DOCX_CONFORMANCE_CLASSES } from "../document-BPDUWV3O.js";
2
- export { DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, MAX_REVISION_ID, isOoxmlSymbolCharacter, normalizeRevisionId };
1
+ import { a as isOoxmlSymbolCharacter, i as PARAGRAPH_MARK_CHANGE_KINDS, n as DRAWING_RAW_XML_MODES, o as normalizeRevisionId, r as MAX_REVISION_ID, t as DOCX_CONFORMANCE_CLASSES } from "../document-Cj4uqQEw.js";
2
+ export { DOCX_CONFORMANCE_CLASSES, DRAWING_RAW_XML_MODES, MAX_REVISION_ID, PARAGRAPH_MARK_CHANGE_KINDS, isOoxmlSymbolCharacter, normalizeRevisionId };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/docx-core",
3
- "version": "0.18.0",
3
+ "version": "0.19.1",
4
4
  "description": "Typed OOXML/DOCX model, validation, serialization, legal-source compilation, and browser-native package projection.",
5
5
  "keywords": [
6
6
  "document-model",
@@ -66,7 +66,7 @@
66
66
  "marked": "^18.0.5"
67
67
  },
68
68
  "devDependencies": {
69
- "bun-types": "1.4.0",
69
+ "bun-types": "1.4.1",
70
70
  "tsdown": "0.22.9"
71
71
  },
72
72
  "main": "./dist/index.js",