@stll/docx-core 0.18.0 → 0.19.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.
- package/dist/{document-C4ms2O35.d.ts → document-CR8P25Qh.d.ts} +26 -16
- package/dist/{document-BPDUWV3O.js → document-Cj4uqQEw.js} +22 -1
- package/dist/docx_kernel_bg.wasm +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/dist/model/document.d.ts +2 -2
- package/dist/model/document.js +2 -2
- package/package.json +2 -2
|
@@ -1303,6 +1303,8 @@ type PropertyChangeInfo = {
|
|
|
1303
1303
|
/** Optional revision session ID */
|
|
1304
1304
|
rsid?: string;
|
|
1305
1305
|
} & TrackedChangeInfo;
|
|
1306
|
+
/** Inline content that may sit inside a run-level tracked-change wrapper. */
|
|
1307
|
+
type TrackedRunContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | TrackedRunChange;
|
|
1306
1308
|
/**
|
|
1307
1309
|
* Insertion wrapper (w:ins) — runs inserted by tracked changes
|
|
1308
1310
|
*/
|
|
@@ -1311,7 +1313,7 @@ type Insertion = {
|
|
|
1311
1313
|
/** Tracked change metadata */
|
|
1312
1314
|
info: TrackedChangeInfo;
|
|
1313
1315
|
/** Inserted content */
|
|
1314
|
-
content:
|
|
1316
|
+
content: TrackedRunContent[];
|
|
1315
1317
|
};
|
|
1316
1318
|
/**
|
|
1317
1319
|
* Deletion wrapper (w:del) — runs deleted by tracked changes
|
|
@@ -1321,7 +1323,7 @@ type Deletion = {
|
|
|
1321
1323
|
/** Tracked change metadata */
|
|
1322
1324
|
info: TrackedChangeInfo;
|
|
1323
1325
|
/** Deleted content */
|
|
1324
|
-
content:
|
|
1326
|
+
content: TrackedRunContent[];
|
|
1325
1327
|
};
|
|
1326
1328
|
/**
|
|
1327
1329
|
* Move-from wrapper (w:moveFrom) — content moved away from this position
|
|
@@ -1331,7 +1333,7 @@ type MoveFrom = {
|
|
|
1331
1333
|
/** Tracked change metadata */
|
|
1332
1334
|
info: TrackedChangeInfo;
|
|
1333
1335
|
/** Moved content */
|
|
1334
|
-
content:
|
|
1336
|
+
content: TrackedRunContent[];
|
|
1335
1337
|
};
|
|
1336
1338
|
/**
|
|
1337
1339
|
* Move-to wrapper (w:moveTo) — content moved into this position
|
|
@@ -1341,7 +1343,7 @@ type MoveTo = {
|
|
|
1341
1343
|
/** Tracked change metadata */
|
|
1342
1344
|
info: TrackedChangeInfo;
|
|
1343
1345
|
/** Moved content */
|
|
1344
|
-
content:
|
|
1346
|
+
content: TrackedRunContent[];
|
|
1345
1347
|
};
|
|
1346
1348
|
/**
|
|
1347
1349
|
* Move-from range start marker (w:moveFromRangeStart) — ECMA-376 §17.13.5.22
|
|
@@ -1579,21 +1581,29 @@ type BlockSdt = {
|
|
|
1579
1581
|
*/
|
|
1580
1582
|
type ParagraphContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | InlineSdt | CommentRangeStart | CommentRangeEnd | CommentReference | Insertion | Deletion | MoveFrom | MoveTo | MoveFromRangeStart | MoveFromRangeEnd | MoveToRangeStart | MoveToRangeEnd | MathEquation;
|
|
1581
1583
|
/**
|
|
1582
|
-
*
|
|
1583
|
-
*/
|
|
1584
|
-
/**
|
|
1585
|
-
* Paragraph-mark tracked-change marker (ECMA-376 §17.13.5).
|
|
1584
|
+
* The kinds a paragraph-mark tracked change can be (ECMA-376 §17.13.5).
|
|
1586
1585
|
*
|
|
1587
|
-
*
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1590
|
-
*
|
|
1591
|
-
*
|
|
1592
|
-
|
|
1586
|
+
* Written as a child of `<w:pPr><w:rPr>` — `<w:ins/>` when the paragraph
|
|
1587
|
+
* break itself was inserted in track-changes mode (the user pressed Enter
|
|
1588
|
+
* mid-paragraph), `<w:del/>` when the paragraph break is pending deletion
|
|
1589
|
+
* (Backspace at paragraph start or Delete at paragraph end). The mark is
|
|
1590
|
+
* independent of the inline runs the paragraph carries.
|
|
1591
|
+
*
|
|
1592
|
+
* A relocated paragraph's break is `<w:moveFrom/>` at the source and
|
|
1593
|
+
* `<w:moveTo/>` at the destination. They resolve exactly as `del` and `ins`
|
|
1594
|
+
* do — a move is a deletion and an insertion that a reader is told belong
|
|
1595
|
+
* together — but they are not those kinds: writing `w:del` on a moved
|
|
1596
|
+
* paragraph's mark reports the relocation as a deletion as well.
|
|
1597
|
+
*/
|
|
1598
|
+
declare const PARAGRAPH_MARK_CHANGE_KINDS: readonly ["moveFrom", "moveTo", "ins", "del"];
|
|
1599
|
+
/** One of {@link PARAGRAPH_MARK_CHANGE_KINDS}. */
|
|
1600
|
+
type ParagraphMarkChangeKind = (typeof PARAGRAPH_MARK_CHANGE_KINDS)[number];
|
|
1601
|
+
/** A paragraph-mark tracked change, written under `<w:pPr><w:rPr>`. */
|
|
1593
1602
|
type ParagraphMarkChange = {
|
|
1594
|
-
kind:
|
|
1603
|
+
kind: ParagraphMarkChangeKind;
|
|
1595
1604
|
info: TrackedChangeInfo;
|
|
1596
1605
|
};
|
|
1606
|
+
/** Paragraph (w:p) */
|
|
1597
1607
|
type Paragraph = {
|
|
1598
1608
|
type: "paragraph";
|
|
1599
1609
|
/** Unique paragraph ID */
|
|
@@ -2308,4 +2318,4 @@ type Document = {
|
|
|
2308
2318
|
warnings?: string[];
|
|
2309
2319
|
};
|
|
2310
2320
|
//#endregion
|
|
2311
|
-
export { ImagePosition as $,
|
|
2321
|
+
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 };
|
|
@@ -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 {
|
|
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 };
|
package/dist/docx_kernel_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-CR8P25Qh.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 {
|
|
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())
|
|
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.");
|
package/dist/model/document.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ImagePosition, $t as
|
|
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-CR8P25Qh.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 };
|
package/dist/model/document.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
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.
|
|
3
|
+
"version": "0.19.0",
|
|
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.
|
|
69
|
+
"bun-types": "1.4.1",
|
|
70
70
|
"tsdown": "0.22.9"
|
|
71
71
|
},
|
|
72
72
|
"main": "./dist/index.js",
|