docx 9.0.0 → 9.0.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.
- package/build/index.cjs +3220 -2347
- package/build/index.d.ts +6 -6
- package/build/index.iife.js +3214 -2341
- package/build/index.mjs +3220 -2347
- package/build/index.umd.js +3214 -2341
- package/package.json +5 -4
package/build/index.d.ts
CHANGED
|
@@ -50,9 +50,7 @@ export declare type AttributeData = {
|
|
|
50
50
|
readonly [key: string]: boolean | number | string;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
readonly [P in keyof T]: string;
|
|
55
|
-
};
|
|
53
|
+
declare type AttributeMap<T> = Record<keyof T, string>;
|
|
56
54
|
|
|
57
55
|
export declare type AttributePayload<T> = {
|
|
58
56
|
readonly [P in keyof T]: {
|
|
@@ -680,6 +678,8 @@ export declare class GridSpan extends XmlComponent {
|
|
|
680
678
|
constructor(value: number);
|
|
681
679
|
}
|
|
682
680
|
|
|
681
|
+
export declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
|
|
682
|
+
|
|
683
683
|
export declare class Header {
|
|
684
684
|
readonly options: IHeaderOptions;
|
|
685
685
|
constructor(options?: IHeaderOptions);
|
|
@@ -1189,8 +1189,6 @@ export declare type ILineNumberAttributes = {
|
|
|
1189
1189
|
};
|
|
1190
1190
|
|
|
1191
1191
|
export declare class ImageRun extends Run {
|
|
1192
|
-
private readonly key;
|
|
1193
|
-
private readonly fallbackKey;
|
|
1194
1192
|
private readonly imageData;
|
|
1195
1193
|
constructor(options: IImageOptions);
|
|
1196
1194
|
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
@@ -2972,7 +2970,9 @@ export declare class WrapTopAndBottom extends XmlComponent {
|
|
|
2972
2970
|
constructor(margins?: IMargins);
|
|
2973
2971
|
}
|
|
2974
2972
|
|
|
2975
|
-
export declare abstract class XmlAttributeComponent<T extends
|
|
2973
|
+
export declare abstract class XmlAttributeComponent<T extends {
|
|
2974
|
+
readonly [key: string]: any;
|
|
2975
|
+
}> extends BaseXmlComponent {
|
|
2976
2976
|
private readonly root;
|
|
2977
2977
|
protected readonly xmlKeys?: AttributeMap<T>;
|
|
2978
2978
|
constructor(root: T);
|