@stll/docx-core 0.16.0 → 0.17.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.
@@ -1070,6 +1070,8 @@ type ShapeTextBody = {
1070
1070
  anchorCenter?: boolean;
1071
1071
  /** Auto fit */
1072
1072
  autoFit?: "none" | "normal" | "shape";
1073
+ /** Horizontal text wrapping inside the shape */
1074
+ textWrap?: "square" | "none";
1073
1075
  /** Text margins */
1074
1076
  margins?: {
1075
1077
  top?: number;
@@ -1129,6 +1131,8 @@ type TextBox = {
1129
1131
  content: (Paragraph | Table)[];
1130
1132
  /** Text fitting behavior */
1131
1133
  autoFit?: ShapeTextBody["autoFit"];
1134
+ /** Horizontal text wrapping inside the box */
1135
+ textWrap?: ShapeTextBody["textWrap"];
1132
1136
  /** Internal margins */
1133
1137
  margins?: {
1134
1138
  top?: number;
@@ -1854,7 +1858,7 @@ type SectionProperties = {
1854
1858
  };
1855
1859
  /** Page numbering settings */
1856
1860
  pageNumbering?: {
1857
- format?: string;
1861
+ format?: NumberFormat;
1858
1862
  start?: number;
1859
1863
  chapterStyle?: number;
1860
1864
  chapterSeparator?: string;
Binary file
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { At as SectionProperties, M as DocumentBody, St as PositionalTab, Tt as RunContent, Ut as Table, Wt as TableCell, Zt as TextContent, _t as Paragraph, a as DocxPackage, b as BlockContent, i as DocxConformanceClass, n as Document, p as Style, qt as TableRow, t as DOCX_CONFORMANCE_CLASSES, vt as ParagraphContent, w as BreakContent, wt as Run } from "./document-BBf3sBoZ.js";
1
+ import { At as SectionProperties, M as DocumentBody, St as PositionalTab, Tt as RunContent, Ut as Table, Wt as TableCell, Zt as TextContent, _t as Paragraph, a as DocxPackage, b as BlockContent, i as DocxConformanceClass, n as Document, p as Style, qt as TableRow, t as DOCX_CONFORMANCE_CLASSES, vt as ParagraphContent, w as BreakContent, wt as Run } from "./document-tediyzsy.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";
@@ -1,2 +1,2 @@
1
- import { $ as ImageTransform, $t as TrackedChangeInfo, A as ComplexField, An as TableRowFormatting, At as SectionProperties, B as FooterReference, Bt as SoftHyphenContent, C as BookmarkStart, Cn as TabStopAlignment, Ct as PropertyChangeInfo, D as CommentRangeEnd, Dn as TableFormatting, Dt as SdtProperties, E as Comment, En as TableCellFormatting, Et as RunPropertyChange, F as EndnotePosition, Fn as BorderSpec, Ft as ShapeFill, G as HeaderFooterType, Gt as TableCellPropertyChange, H as FootnotePosition, Ht as TabContent, I as EndnoteProperties, In as ColorValue, It as ShapeOutline, J as Image, Jt as TableRowPropertyChange, K as HeaderReference, Kt as TablePropertyChange, L as Field, Ln as KnownBorderStyle, Lt as ShapeTextBody, M as DocumentBody, Mn as TextEffect, Mt as SectionStart, N as DrawingContent, Nn as TextFormatting, Nt as Shape, O as CommentRangeStart, On as TableLook, Ot as SdtType, P as Endnote, Pn as UnderlineStyle, Pt as ShapeContent, Q as ImageSize, Qt as TextWatermark, R as FieldCharContent, Rn as ShadingProperties, Rt as ShapeType, S as BookmarkEnd, Sn as TabStop, St as PositionalTab, T as Column, Tn as TableCellBorders, Tt as RunContent, U as FootnoteProperties, Ut as Table, V as Footnote, Vt as SymbolContent, W as HeaderFooter, Wt as TableCell, X as ImagePadding, Xt as TextBox, Y as ImageCrop, Yt as TableStructuralChangeInfo, Z as ImagePosition, Zt as TextContent, _ as ThemeColorScheme, _n as LineSpacingRule, _t as Paragraph, a as DocxPackage, an as AbstractNumbering, at as MAX_REVISION_ID, b as BlockContent, bn as SpacingExplicit, bt as ParagraphPropertyChange, c as FontTable, cn as ListMarkerFormatting, ct as MoveFromRangeEnd, d as RelationshipMap, dn as NumberingDefinitions, dt as MoveToRangeEnd, en as TrackedRunChange, et as ImageWrap, f as RelationshipType, fn as NumberingInstance, ft as MoveToRangeStart, g as Theme, gn as FloatingTableProperties, gt as PageOrientation, h as StyleType, hn as EmphasisMark, ht as NoteReferenceContent, i as DocxConformanceClass, in as normalizeRevisionId, it as LineNumberRestart, j as Deletion, jn as TableWidthType, jt as SectionPropertyChange, k as CommentReference, kn as TableMeasurement, kt as Section, l as MediaFile, ln as ListRendering, lt as MoveFromRangeStart, m as StyleDefinitions, mn as ConditionalFormatStyle, mt as NoteNumberRestart, n as Document, nn as Watermark, nt as Insertion, o as DocDefaults, on as LevelSuffix, ot as MathEquation, p as Style, pn as CellMargins, pt as NoBreakHyphenContent, q as Hyperlink, qt as TableRow, r as DocumentSettings, rn as isOoxmlSymbolCharacter, rt as InstrTextContent, s as FontInfo, sn as ListLevel, st as MoveFrom, t as DOCX_CONFORMANCE_CLASSES, tn as VerticalAlign, tt as InlineSdt, u as Relationship, un as NumberFormat, ut as MoveTo, v as ThemeFont, vn as ParagraphAlignment, vt as ParagraphContent, w as BreakContent, wn as TableBorders, wt as Run, x as BlockSdt, xn as TabLeader, xt as PictureWatermark, y as ThemeFontScheme, yn as ParagraphFormatting, yt as ParagraphMarkChange, z as FieldType, zn as ThemeColorSlot, zt as SimpleField } from "../document-BBf3sBoZ.js";
1
+ import { $ as ImageTransform, $t as TrackedChangeInfo, A as ComplexField, An as TableRowFormatting, At as SectionProperties, B as FooterReference, Bt as SoftHyphenContent, C as BookmarkStart, Cn as TabStopAlignment, Ct as PropertyChangeInfo, D as CommentRangeEnd, Dn as TableFormatting, Dt as SdtProperties, E as Comment, En as TableCellFormatting, Et as RunPropertyChange, F as EndnotePosition, Fn as BorderSpec, Ft as ShapeFill, G as HeaderFooterType, Gt as TableCellPropertyChange, H as FootnotePosition, Ht as TabContent, I as EndnoteProperties, In as ColorValue, It as ShapeOutline, J as Image, Jt as TableRowPropertyChange, K as HeaderReference, Kt as TablePropertyChange, L as Field, Ln as KnownBorderStyle, Lt as ShapeTextBody, M as DocumentBody, Mn as TextEffect, Mt as SectionStart, N as DrawingContent, Nn as TextFormatting, Nt as Shape, O as CommentRangeStart, On as TableLook, Ot as SdtType, P as Endnote, Pn as UnderlineStyle, Pt as ShapeContent, Q as ImageSize, Qt as TextWatermark, R as FieldCharContent, Rn as ShadingProperties, Rt as ShapeType, S as BookmarkEnd, Sn as TabStop, St as PositionalTab, T as Column, Tn as TableCellBorders, Tt as RunContent, U as FootnoteProperties, Ut as Table, V as Footnote, Vt as SymbolContent, W as HeaderFooter, Wt as TableCell, X as ImagePadding, Xt as TextBox, Y as ImageCrop, Yt as TableStructuralChangeInfo, Z as ImagePosition, Zt as TextContent, _ as ThemeColorScheme, _n as LineSpacingRule, _t as Paragraph, a as DocxPackage, an as AbstractNumbering, at as MAX_REVISION_ID, b as BlockContent, bn as SpacingExplicit, bt as ParagraphPropertyChange, c as FontTable, cn as ListMarkerFormatting, ct as MoveFromRangeEnd, d as RelationshipMap, dn as NumberingDefinitions, dt as MoveToRangeEnd, en as TrackedRunChange, et as ImageWrap, f as RelationshipType, fn as NumberingInstance, ft as MoveToRangeStart, g as Theme, gn as FloatingTableProperties, gt as PageOrientation, h as StyleType, hn as EmphasisMark, ht as NoteReferenceContent, i as DocxConformanceClass, in as normalizeRevisionId, it as LineNumberRestart, j as Deletion, jn as TableWidthType, jt as SectionPropertyChange, k as CommentReference, kn as TableMeasurement, kt as Section, l as MediaFile, ln as ListRendering, lt as MoveFromRangeStart, m as StyleDefinitions, mn as ConditionalFormatStyle, mt as NoteNumberRestart, n as Document, nn as Watermark, nt as Insertion, o as DocDefaults, on as LevelSuffix, ot as MathEquation, p as Style, pn as CellMargins, pt as NoBreakHyphenContent, q as Hyperlink, qt as TableRow, r as DocumentSettings, rn as isOoxmlSymbolCharacter, rt as InstrTextContent, s as FontInfo, sn as ListLevel, st as MoveFrom, t as DOCX_CONFORMANCE_CLASSES, tn as VerticalAlign, tt as InlineSdt, u as Relationship, un as NumberFormat, ut as MoveTo, v as ThemeFont, vn as ParagraphAlignment, vt as ParagraphContent, w as BreakContent, wn as TableBorders, wt as Run, x as BlockSdt, xn as TabLeader, xt as PictureWatermark, y as ThemeFontScheme, yn as ParagraphFormatting, yt as ParagraphMarkChange, z as FieldType, zn as ThemeColorSlot, zt as SimpleField } from "../document-tediyzsy.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, type Deletion, type DocDefaults, Document, type DocumentBody, DocumentSettings, DocxConformanceClass, DocxPackage, type DrawingContent, 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 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/docx-core",
3
- "version": "0.16.0",
3
+ "version": "0.17.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",