docx 9.4.0 → 9.5.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/index.d.cts CHANGED
@@ -405,8 +405,8 @@ declare class DeletedTextRunWrapper extends XmlComponent {
405
405
 
406
406
  declare type DocPropertiesOptions = {
407
407
  readonly name: string;
408
- readonly description: string;
409
- readonly title: string;
408
+ readonly description?: string;
409
+ readonly title?: string;
410
410
  };
411
411
 
412
412
  export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
@@ -1523,7 +1523,7 @@ export declare type ISectionPropertiesOptions = {
1523
1523
  readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
1524
1524
  readonly lineNumbers?: ILineNumberAttributes;
1525
1525
  readonly titlePage?: boolean;
1526
- readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
1526
+ readonly verticalAlign?: SectionVerticalAlign;
1527
1527
  readonly column?: IColumnsAttributes;
1528
1528
  readonly type?: (typeof SectionType)[keyof typeof SectionType];
1529
1529
  };
@@ -1617,7 +1617,7 @@ export declare type ITableCellOptions = {
1617
1617
  declare type ITableCellPropertiesOptions = {
1618
1618
  readonly shading?: IShadingAttributesProperties;
1619
1619
  readonly margins?: ITableCellMarginOptions;
1620
- readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
1620
+ readonly verticalAlign?: TableVerticalAlign;
1621
1621
  readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
1622
1622
  readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
1623
1623
  readonly width?: ITableWidthProperties;
@@ -2498,6 +2498,8 @@ export declare class SectionTypeAttributes extends XmlAttributeComponent<{
2498
2498
  };
2499
2499
  }
2500
2500
 
2501
+ export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
2502
+
2501
2503
  declare class Separate extends XmlComponent {
2502
2504
  constructor(dirty?: boolean);
2503
2505
  }
@@ -2763,6 +2765,8 @@ export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
2763
2765
  constructor(options: ITableRowPropertiesOptions);
2764
2766
  }
2765
2767
 
2768
+ export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
2769
+
2766
2770
  export declare class TableWidthElement extends XmlComponent {
2767
2771
  constructor(name: string, { type, size }: ITableWidthProperties);
2768
2772
  }
@@ -2895,9 +2899,10 @@ export declare const universalMeasureValue: (val: UniversalMeasure) => Universal
2895
2899
  export declare const unsignedDecimalNumber: (val: number) => number;
2896
2900
 
2897
2901
  export declare const VerticalAlign: {
2898
- readonly BOTTOM: "bottom";
2899
- readonly CENTER: "center";
2902
+ readonly BOTH: "both";
2900
2903
  readonly TOP: "top";
2904
+ readonly CENTER: "center";
2905
+ readonly BOTTOM: "bottom";
2901
2906
  };
2902
2907
 
2903
2908
  export declare class VerticalAlignAttributes extends XmlAttributeComponent<{
@@ -2912,6 +2917,19 @@ export declare class VerticalAlignElement extends XmlComponent {
2912
2917
  constructor(value: (typeof VerticalAlign)[keyof typeof VerticalAlign]);
2913
2918
  }
2914
2919
 
2920
+ export declare const VerticalAlignSection: {
2921
+ readonly BOTH: "both";
2922
+ readonly TOP: "top";
2923
+ readonly CENTER: "center";
2924
+ readonly BOTTOM: "bottom";
2925
+ };
2926
+
2927
+ export declare const VerticalAlignTable: {
2928
+ readonly TOP: "top";
2929
+ readonly CENTER: "center";
2930
+ readonly BOTTOM: "bottom";
2931
+ };
2932
+
2915
2933
  export declare class VerticalMerge extends XmlComponent {
2916
2934
  constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
2917
2935
  }
package/dist/index.d.ts CHANGED
@@ -405,8 +405,8 @@ declare class DeletedTextRunWrapper extends XmlComponent {
405
405
 
406
406
  declare type DocPropertiesOptions = {
407
407
  readonly name: string;
408
- readonly description: string;
409
- readonly title: string;
408
+ readonly description?: string;
409
+ readonly title?: string;
410
410
  };
411
411
 
412
412
  export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
@@ -1523,7 +1523,7 @@ export declare type ISectionPropertiesOptions = {
1523
1523
  readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
1524
1524
  readonly lineNumbers?: ILineNumberAttributes;
1525
1525
  readonly titlePage?: boolean;
1526
- readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
1526
+ readonly verticalAlign?: SectionVerticalAlign;
1527
1527
  readonly column?: IColumnsAttributes;
1528
1528
  readonly type?: (typeof SectionType)[keyof typeof SectionType];
1529
1529
  };
@@ -1617,7 +1617,7 @@ export declare type ITableCellOptions = {
1617
1617
  declare type ITableCellPropertiesOptions = {
1618
1618
  readonly shading?: IShadingAttributesProperties;
1619
1619
  readonly margins?: ITableCellMarginOptions;
1620
- readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
1620
+ readonly verticalAlign?: TableVerticalAlign;
1621
1621
  readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
1622
1622
  readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
1623
1623
  readonly width?: ITableWidthProperties;
@@ -2498,6 +2498,8 @@ export declare class SectionTypeAttributes extends XmlAttributeComponent<{
2498
2498
  };
2499
2499
  }
2500
2500
 
2501
+ export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
2502
+
2501
2503
  declare class Separate extends XmlComponent {
2502
2504
  constructor(dirty?: boolean);
2503
2505
  }
@@ -2763,6 +2765,8 @@ export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
2763
2765
  constructor(options: ITableRowPropertiesOptions);
2764
2766
  }
2765
2767
 
2768
+ export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
2769
+
2766
2770
  export declare class TableWidthElement extends XmlComponent {
2767
2771
  constructor(name: string, { type, size }: ITableWidthProperties);
2768
2772
  }
@@ -2895,9 +2899,10 @@ export declare const universalMeasureValue: (val: UniversalMeasure) => Universal
2895
2899
  export declare const unsignedDecimalNumber: (val: number) => number;
2896
2900
 
2897
2901
  export declare const VerticalAlign: {
2898
- readonly BOTTOM: "bottom";
2899
- readonly CENTER: "center";
2902
+ readonly BOTH: "both";
2900
2903
  readonly TOP: "top";
2904
+ readonly CENTER: "center";
2905
+ readonly BOTTOM: "bottom";
2901
2906
  };
2902
2907
 
2903
2908
  export declare class VerticalAlignAttributes extends XmlAttributeComponent<{
@@ -2912,6 +2917,19 @@ export declare class VerticalAlignElement extends XmlComponent {
2912
2917
  constructor(value: (typeof VerticalAlign)[keyof typeof VerticalAlign]);
2913
2918
  }
2914
2919
 
2920
+ export declare const VerticalAlignSection: {
2921
+ readonly BOTH: "both";
2922
+ readonly TOP: "top";
2923
+ readonly CENTER: "center";
2924
+ readonly BOTTOM: "bottom";
2925
+ };
2926
+
2927
+ export declare const VerticalAlignTable: {
2928
+ readonly TOP: "top";
2929
+ readonly CENTER: "center";
2930
+ readonly BOTTOM: "bottom";
2931
+ };
2932
+
2915
2933
  export declare class VerticalMerge extends XmlComponent {
2916
2934
  constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
2917
2935
  }