docx 9.1.0 → 9.1.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.
@@ -48,7 +48,7 @@ declare class AppProperties extends XmlComponent {
48
48
 
49
49
  export declare type AttributeData = Record<string, boolean | number | string>;
50
50
 
51
- declare type AttributeMap<T> = Record<keyof T, string>;
51
+ export declare type AttributeMap<T> = Record<keyof T, string>;
52
52
 
53
53
  export declare type AttributePayload<T> = {
54
54
  readonly [P in keyof T]: {
@@ -388,48 +388,51 @@ declare class Document_2 extends XmlComponent {
388
388
  get Body(): Body_2;
389
389
  }
390
390
 
391
+ export declare type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
392
+
393
+ export declare const DocumentAttributeNamespaces: {
394
+ wpc: string;
395
+ mc: string;
396
+ o: string;
397
+ r: string;
398
+ m: string;
399
+ v: string;
400
+ wp14: string;
401
+ wp: string;
402
+ w10: string;
403
+ w: string;
404
+ w14: string;
405
+ w15: string;
406
+ wpg: string;
407
+ wpi: string;
408
+ wne: string;
409
+ wps: string;
410
+ cp: string;
411
+ dc: string;
412
+ dcterms: string;
413
+ dcmitype: string;
414
+ xsi: string;
415
+ cx: string;
416
+ cx1: string;
417
+ cx2: string;
418
+ cx3: string;
419
+ cx4: string;
420
+ cx5: string;
421
+ cx6: string;
422
+ cx7: string;
423
+ cx8: string;
424
+ aink: string;
425
+ am3d: string;
426
+ w16cex: string;
427
+ w16cid: string;
428
+ w16: string;
429
+ w16sdtdh: string;
430
+ w16se: string;
431
+ };
432
+
391
433
  export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
392
- protected readonly xmlKeys: {
393
- wpc: string;
394
- mc: string;
395
- o: string;
396
- r: string;
397
- m: string;
398
- v: string;
399
- wp14: string;
400
- wp: string;
401
- w10: string;
402
- w: string;
403
- w14: string;
404
- w15: string;
405
- wpg: string;
406
- wpi: string;
407
- wne: string;
408
- wps: string;
409
- Ignorable: string;
410
- cp: string;
411
- dc: string;
412
- dcterms: string;
413
- dcmitype: string;
414
- xsi: string;
415
- type: string;
416
- cx: string;
417
- cx1: string;
418
- cx2: string;
419
- cx3: string;
420
- cx4: string;
421
- cx5: string;
422
- cx6: string;
423
- cx7: string;
424
- cx8: string;
425
- aink: string;
426
- am3d: string;
427
- w16cex: string;
428
- w16cid: string;
429
- w16: string;
430
- w16sdtdh: string;
431
- w16se: string;
432
- };
434
+ protected readonly xmlKeys: AttributeMap<IDocumentAttributesProperties>;
435
+ constructor(ns: readonly DocumentAttributeNamespace[], Ignorable?: string);
433
436
  }
434
437
 
435
438
  export declare class DocumentBackground extends XmlComponent {
@@ -1005,46 +1008,8 @@ export declare type IDocGridAttributesProperties = {
1005
1008
  readonly charSpace?: number;
1006
1009
  };
1007
1010
 
1008
- export declare type IDocumentAttributesProperties = {
1009
- readonly wpc?: string;
1010
- readonly mc?: string;
1011
- readonly o?: string;
1012
- readonly r?: string;
1013
- readonly m?: string;
1014
- readonly v?: string;
1015
- readonly wp14?: string;
1016
- readonly wp?: string;
1017
- readonly w10?: string;
1018
- readonly w?: string;
1019
- readonly w14?: string;
1020
- readonly w15?: string;
1021
- readonly wpg?: string;
1022
- readonly wpi?: string;
1023
- readonly wne?: string;
1024
- readonly wps?: string;
1011
+ export declare type IDocumentAttributesProperties = Partial<Record<DocumentAttributeNamespace, string>> & {
1025
1012
  readonly Ignorable?: string;
1026
- readonly cp?: string;
1027
- readonly dc?: string;
1028
- readonly dcterms?: string;
1029
- readonly dcmitype?: string;
1030
- readonly xsi?: string;
1031
- readonly type?: string;
1032
- readonly cx?: string;
1033
- readonly cx1?: string;
1034
- readonly cx2?: string;
1035
- readonly cx3?: string;
1036
- readonly cx4?: string;
1037
- readonly cx5?: string;
1038
- readonly cx6?: string;
1039
- readonly cx7?: string;
1040
- readonly cx8?: string;
1041
- readonly aink?: string;
1042
- readonly am3d?: string;
1043
- readonly w16cex?: string;
1044
- readonly w16cid?: string;
1045
- readonly w16?: string;
1046
- readonly w16sdtdh?: string;
1047
- readonly w16se?: string;
1048
1013
  };
1049
1014
 
1050
1015
  export declare type IDocumentBackgroundOptions = {