@stll/docx-core 0.20.0 → 0.20.2
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.
|
@@ -665,6 +665,12 @@ type ListRendering = {
|
|
|
665
665
|
markerSuffix?: LevelSuffix;
|
|
666
666
|
/** Number format for each level from 0 through this paragraph's level. */
|
|
667
667
|
levelNumFmts?: NumberFormat[];
|
|
668
|
+
/**
|
|
669
|
+
* `w:start` for each level from 0 through this paragraph's level. Layout
|
|
670
|
+
* seeds each level's counter from it, so a list whose definition starts at
|
|
671
|
+
* 5 renders "5., 6." rather than "1., 2.".
|
|
672
|
+
*/
|
|
673
|
+
levelStarts?: number[];
|
|
668
674
|
/** Abstract numbering definition shared by one or more numIds. */
|
|
669
675
|
abstractNumId?: number;
|
|
670
676
|
/** Start override for this numId/level, if the numbering instance defines one. */
|
|
@@ -1139,6 +1145,13 @@ type ShapeOutline = {
|
|
|
1139
1145
|
* Text body inside a shape
|
|
1140
1146
|
*/
|
|
1141
1147
|
type ShapeTextBody = {
|
|
1148
|
+
/** Authored DrawingML WordArt metadata. */
|
|
1149
|
+
wordArt?: {
|
|
1150
|
+
/** Authored `wps:bodyPr/@fromWordArt`; omitted when the source omitted it. */
|
|
1151
|
+
fromWordArt?: boolean;
|
|
1152
|
+
preset?: string;
|
|
1153
|
+
adjustments?: ShapeGeometryAdjustment[];
|
|
1154
|
+
};
|
|
1142
1155
|
/** Text direction */
|
|
1143
1156
|
vertical?: boolean;
|
|
1144
1157
|
/** Rotation */
|
|
@@ -1212,6 +1225,8 @@ type TextBox = {
|
|
|
1212
1225
|
transform?: ImageTransform;
|
|
1213
1226
|
/** Text and table content */
|
|
1214
1227
|
content: (Paragraph | Table)[];
|
|
1228
|
+
/** Authored DrawingML WordArt metadata. */
|
|
1229
|
+
wordArt?: ShapeTextBody["wordArt"];
|
|
1215
1230
|
/** Text fitting behavior */
|
|
1216
1231
|
autoFit?: ShapeTextBody["autoFit"];
|
|
1217
1232
|
/** Horizontal text wrapping inside the box */
|
|
@@ -1750,6 +1765,16 @@ type HeaderFooter = {
|
|
|
1750
1765
|
* mutate the modeled watermark via the headless API.
|
|
1751
1766
|
*/
|
|
1752
1767
|
rawWatermarkXml?: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* Verbatim XML of the whole part, captured at parse time so an unedited
|
|
1770
|
+
* header or footer re-emits byte-identically on save (VML OLE wrappers,
|
|
1771
|
+
* smart tags, and other constructs the model cannot fully represent).
|
|
1772
|
+
* Replayed only while `verbatimFingerprint` still matches the modeled
|
|
1773
|
+
* fields; cleared on first edit.
|
|
1774
|
+
*/
|
|
1775
|
+
verbatimXml?: string;
|
|
1776
|
+
/** Fingerprint of the modeled fields when `verbatimXml` was captured. */
|
|
1777
|
+
verbatimFingerprint?: string;
|
|
1753
1778
|
/**
|
|
1754
1779
|
* Index where the watermark paragraph sat among block-level siblings
|
|
1755
1780
|
* in the source header. The serializer inserts the watermark (raw or
|
|
@@ -2300,6 +2325,11 @@ type DocumentSettings = {
|
|
|
2300
2325
|
* it is a document-wide flag; absent means odd/even share one header.
|
|
2301
2326
|
*/
|
|
2302
2327
|
evenAndOddHeaders?: boolean;
|
|
2328
|
+
/**
|
|
2329
|
+
* `w:mirrorMargins` (§17.15.1.57) — swap left and right section margins
|
|
2330
|
+
* on even physical pages so a bound document keeps its inside gutter.
|
|
2331
|
+
*/
|
|
2332
|
+
mirrorMargins?: boolean;
|
|
2303
2333
|
/**
|
|
2304
2334
|
* `w:adjustLineHeightInTable` (§17.15.3.1): apply the section line-grid
|
|
2305
2335
|
* pitch to paragraphs inside table cells.
|
package/dist/docx_kernel_bg.wasm
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as Run, Et as PositionalTab, It as SectionProperties, N as DocumentBody, Xt as Table, Zt as TableCell, a as DocxPackage, b as BlockContent, bt as Paragraph, en as TableRow, i as DocxConformanceClass, in as TextContent, jt as RunContent, n as Document, p as Style, t as DOCX_CONFORMANCE_CLASSES, w as BreakContent, xt as ParagraphContent, yn as NumberingDefinitions } from "./document-
|
|
1
|
+
import { At as Run, Et as PositionalTab, It as SectionProperties, N as DocumentBody, Xt as Table, Zt as TableCell, a as DocxPackage, b as BlockContent, bt as Paragraph, en as TableRow, i as DocxConformanceClass, in as TextContent, jt as RunContent, n as Document, p as Style, t as DOCX_CONFORMANCE_CLASSES, w as BreakContent, xt as ParagraphContent, yn as NumberingDefinitions } from "./document-Dqed2Ilk.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/model/document.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ImagePosition, $t as TablePropertyChange, A as ComplexField, An as TabStop, At as Run, B as FieldCharContent, Bn as TextEffect, Bt as ShapeContent, C as BookmarkStart, Cn as EmphasisMark, Ct as ParagraphMarkChangeKind, D as CommentRangeEnd, Dn as ParagraphFormatting, Dt as PropertyChangeInfo, E as Comment, En as ParagraphAlignment, Et as PositionalTab, F as DrawingRawXmlMode, Fn as TableFormatting, Ft as Section, G as FootnoteProperties, Gn as KnownBorderStyle, Gt as ShapeType, H as FooterReference, Hn as UnderlineStyle, Ht as ShapeGeometryAdjustment, I as Endnote, In as TableLook, It as SectionProperties, J as HeaderReference, Jt as SymbolContent, K as HeaderFooter, Kn as ShadingProperties, Kt as SimpleField, L as EndnotePosition, Ln as TableMeasurement, Lt as SectionPropertyChange, M as Deletion, Mn as TableBorders, Mt as RunPropertyChange, N as DocumentBody, Nn as TableCellBorders, Nt as SdtProperties, O as CommentRangeStart, On as SpacingExplicit, Ot as REVIEW_CARRIERS, P as DrawingContent, Pn as TableCellFormatting, Pt as SdtType, Q as ImagePadding, Qt as TableCellPropertyChange, R as EndnoteProperties, Rn as TableRowFormatting, Rt as SectionStart, S as BookmarkEnd, Sn as ConditionalFormatStyle, St as ParagraphMarkChange, T as Column, Tn as LineSpacingRule, Tt as PictureWatermark, U as Footnote, Un as BorderSpec, Ut as ShapeOutline, V as FieldType, Vn as TextFormatting, Vt as ShapeFill, W as FootnotePosition, Wn as ColorValue, Wt as ShapeTextBody, X as Image, Xt as Table, Y as Hyperlink, Yt as TabContent, Z as ImageCrop, Zt as TableCell, _ as ThemeColorScheme, _n as ListRendering, _t as NoteReferenceContent, a as DocxPackage, an as TextWatermark, at as InstrTextContent, b as BlockContent, bn as NumberingInstance, bt as Paragraph, c as FontTable, cn as TrackedRunContent, ct as MathEquation, d as RelationshipMap, dn as isOoxmlSymbolCharacter, dt as MoveFromRangeStart, en as TableRow, et as ImageSize, f as RelationshipType, fn as normalizeRevisionId, ft as MoveTo, g as Theme, gn as ListMarkerFormatting, gt as NoteNumberRestart, h as StyleType, hn as ListLevel, ht as NoBreakHyphenContent, i as DocxConformanceClass, in as TextContent, it as Insertion, j as DRAWING_RAW_XML_MODES, jn as TabStopAlignment, jt as RunContent, k as CommentReference, kn as TabLeader, kt as ReviewCarrier, l as MediaFile, ln as VerticalAlign, lt as MoveFrom, m as StyleDefinitions, mn as LevelSuffix, mt as MoveToRangeStart, n as Document, nn as TableStructuralChangeInfo, nt as ImageWrap, o as DocDefaults, on as TrackedChangeInfo, ot as LineNumberRestart, p as Style, pn as AbstractNumbering, pt as MoveToRangeEnd, q as HeaderFooterType, qn as ThemeColorSlot, qt as SoftHyphenContent, r as DocumentSettings, rn as TextBox, rt as InlineSdt, s as FontInfo, sn as TrackedRunChange, st as MAX_REVISION_ID, t as DOCX_CONFORMANCE_CLASSES, tn as TableRowPropertyChange, tt as ImageTransform, u as Relationship, un as Watermark, ut as MoveFromRangeEnd, v as ThemeFont, vn as NumberFormat, vt as PARAGRAPH_MARK_CHANGE_KINDS, w as BreakContent, wn as FloatingTableProperties, wt as ParagraphPropertyChange, x as BlockSdt, xn as CellMargins, xt as ParagraphContent, y as ThemeFontScheme, yn as NumberingDefinitions, yt as PageOrientation, z as Field, zn as TableWidthType, zt as Shape } from "../document-
|
|
1
|
+
import { $ as ImagePosition, $t as TablePropertyChange, A as ComplexField, An as TabStop, At as Run, B as FieldCharContent, Bn as TextEffect, Bt as ShapeContent, C as BookmarkStart, Cn as EmphasisMark, Ct as ParagraphMarkChangeKind, D as CommentRangeEnd, Dn as ParagraphFormatting, Dt as PropertyChangeInfo, E as Comment, En as ParagraphAlignment, Et as PositionalTab, F as DrawingRawXmlMode, Fn as TableFormatting, Ft as Section, G as FootnoteProperties, Gn as KnownBorderStyle, Gt as ShapeType, H as FooterReference, Hn as UnderlineStyle, Ht as ShapeGeometryAdjustment, I as Endnote, In as TableLook, It as SectionProperties, J as HeaderReference, Jt as SymbolContent, K as HeaderFooter, Kn as ShadingProperties, Kt as SimpleField, L as EndnotePosition, Ln as TableMeasurement, Lt as SectionPropertyChange, M as Deletion, Mn as TableBorders, Mt as RunPropertyChange, N as DocumentBody, Nn as TableCellBorders, Nt as SdtProperties, O as CommentRangeStart, On as SpacingExplicit, Ot as REVIEW_CARRIERS, P as DrawingContent, Pn as TableCellFormatting, Pt as SdtType, Q as ImagePadding, Qt as TableCellPropertyChange, R as EndnoteProperties, Rn as TableRowFormatting, Rt as SectionStart, S as BookmarkEnd, Sn as ConditionalFormatStyle, St as ParagraphMarkChange, T as Column, Tn as LineSpacingRule, Tt as PictureWatermark, U as Footnote, Un as BorderSpec, Ut as ShapeOutline, V as FieldType, Vn as TextFormatting, Vt as ShapeFill, W as FootnotePosition, Wn as ColorValue, Wt as ShapeTextBody, X as Image, Xt as Table, Y as Hyperlink, Yt as TabContent, Z as ImageCrop, Zt as TableCell, _ as ThemeColorScheme, _n as ListRendering, _t as NoteReferenceContent, a as DocxPackage, an as TextWatermark, at as InstrTextContent, b as BlockContent, bn as NumberingInstance, bt as Paragraph, c as FontTable, cn as TrackedRunContent, ct as MathEquation, d as RelationshipMap, dn as isOoxmlSymbolCharacter, dt as MoveFromRangeStart, en as TableRow, et as ImageSize, f as RelationshipType, fn as normalizeRevisionId, ft as MoveTo, g as Theme, gn as ListMarkerFormatting, gt as NoteNumberRestart, h as StyleType, hn as ListLevel, ht as NoBreakHyphenContent, i as DocxConformanceClass, in as TextContent, it as Insertion, j as DRAWING_RAW_XML_MODES, jn as TabStopAlignment, jt as RunContent, k as CommentReference, kn as TabLeader, kt as ReviewCarrier, l as MediaFile, ln as VerticalAlign, lt as MoveFrom, m as StyleDefinitions, mn as LevelSuffix, mt as MoveToRangeStart, n as Document, nn as TableStructuralChangeInfo, nt as ImageWrap, o as DocDefaults, on as TrackedChangeInfo, ot as LineNumberRestart, p as Style, pn as AbstractNumbering, pt as MoveToRangeEnd, q as HeaderFooterType, qn as ThemeColorSlot, qt as SoftHyphenContent, r as DocumentSettings, rn as TextBox, rt as InlineSdt, s as FontInfo, sn as TrackedRunChange, st as MAX_REVISION_ID, t as DOCX_CONFORMANCE_CLASSES, tn as TableRowPropertyChange, tt as ImageTransform, u as Relationship, un as Watermark, ut as MoveFromRangeEnd, v as ThemeFont, vn as NumberFormat, vt as PARAGRAPH_MARK_CHANGE_KINDS, w as BreakContent, wn as FloatingTableProperties, wt as ParagraphPropertyChange, x as BlockSdt, xn as CellMargins, xt as ParagraphContent, y as ThemeFontScheme, yn as NumberingDefinitions, yt as PageOrientation, z as Field, zn as TableWidthType, zt as Shape } from "../document-Dqed2Ilk.js";
|
|
2
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, REVIEW_CARRIERS, type Relationship, type RelationshipMap, type RelationshipType, type ReviewCarrier, 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/package.json
CHANGED