docx 9.5.2 → 9.5.3
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.cjs +1149 -493
- package/dist/index.d.cts +19 -16
- package/dist/index.d.ts +19 -16
- package/dist/index.iife.js +1151 -495
- package/dist/index.mjs +1149 -493
- package/dist/index.umd.cjs +1151 -495
- package/package.json +10 -10
package/dist/index.d.cts
CHANGED
|
@@ -133,10 +133,7 @@ export declare class Bookmark {
|
|
|
133
133
|
readonly start: BookmarkStart;
|
|
134
134
|
readonly children: readonly ParagraphChild[];
|
|
135
135
|
readonly end: BookmarkEnd;
|
|
136
|
-
constructor(options:
|
|
137
|
-
readonly id: string;
|
|
138
|
-
readonly children: readonly ParagraphChild[];
|
|
139
|
-
});
|
|
136
|
+
constructor(options: IBookmarkOptions);
|
|
140
137
|
}
|
|
141
138
|
|
|
142
139
|
export declare class BookmarkEnd extends XmlComponent {
|
|
@@ -542,14 +539,8 @@ export declare class EndnoteReference extends EmptyElement {
|
|
|
542
539
|
}
|
|
543
540
|
|
|
544
541
|
export declare class ExternalHyperlink extends XmlComponent {
|
|
545
|
-
readonly options:
|
|
546
|
-
|
|
547
|
-
readonly link: string;
|
|
548
|
-
};
|
|
549
|
-
constructor(options: {
|
|
550
|
-
readonly children: readonly ParagraphChild[];
|
|
551
|
-
readonly link: string;
|
|
552
|
-
});
|
|
542
|
+
readonly options: IExternalHyperlinkOptions;
|
|
543
|
+
constructor(options: IExternalHyperlinkOptions);
|
|
553
544
|
}
|
|
554
545
|
|
|
555
546
|
declare class FieldInstruction extends XmlComponent {
|
|
@@ -849,6 +840,11 @@ export declare type IBaseParagraphStyleOptions = {
|
|
|
849
840
|
readonly run?: IRunStylePropertiesOptions;
|
|
850
841
|
} & IStyleOptions;
|
|
851
842
|
|
|
843
|
+
export declare type IBookmarkOptions = {
|
|
844
|
+
readonly id: string;
|
|
845
|
+
readonly children: readonly ParagraphChild[];
|
|
846
|
+
};
|
|
847
|
+
|
|
852
848
|
export declare type IBorderOptions = {
|
|
853
849
|
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
854
850
|
readonly color?: string;
|
|
@@ -1067,6 +1063,11 @@ export declare type IDrawingOptions = {
|
|
|
1067
1063
|
readonly outline?: OutlineOptions;
|
|
1068
1064
|
};
|
|
1069
1065
|
|
|
1066
|
+
export declare type IExternalHyperlinkOptions = {
|
|
1067
|
+
readonly children: readonly ParagraphChild[];
|
|
1068
|
+
readonly link: string;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1070
1071
|
export declare type IFloating = {
|
|
1071
1072
|
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
1072
1073
|
readonly verticalPosition: IVerticalPositionOptions;
|
|
@@ -1139,6 +1140,11 @@ export declare type IIndentAttributesProperties = {
|
|
|
1139
1140
|
|
|
1140
1141
|
declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
|
|
1141
1142
|
|
|
1143
|
+
export declare type IInternalHyperlinkOptions = {
|
|
1144
|
+
readonly children: readonly ParagraphChild[];
|
|
1145
|
+
readonly anchor: string;
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1142
1148
|
declare type ILanguageOptions = {
|
|
1143
1149
|
readonly value?: string;
|
|
1144
1150
|
readonly eastAsia?: string;
|
|
@@ -1310,10 +1316,7 @@ export declare class InsertedTextRun extends XmlComponent {
|
|
|
1310
1316
|
}
|
|
1311
1317
|
|
|
1312
1318
|
export declare class InternalHyperlink extends ConcreteHyperlink {
|
|
1313
|
-
constructor(options:
|
|
1314
|
-
readonly children: readonly ParagraphChild[];
|
|
1315
|
-
readonly anchor: string;
|
|
1316
|
-
});
|
|
1319
|
+
constructor(options: IInternalHyperlinkOptions);
|
|
1317
1320
|
}
|
|
1318
1321
|
|
|
1319
1322
|
export declare type INumberedItemReferenceOptions = {
|
package/dist/index.d.ts
CHANGED
|
@@ -133,10 +133,7 @@ export declare class Bookmark {
|
|
|
133
133
|
readonly start: BookmarkStart;
|
|
134
134
|
readonly children: readonly ParagraphChild[];
|
|
135
135
|
readonly end: BookmarkEnd;
|
|
136
|
-
constructor(options:
|
|
137
|
-
readonly id: string;
|
|
138
|
-
readonly children: readonly ParagraphChild[];
|
|
139
|
-
});
|
|
136
|
+
constructor(options: IBookmarkOptions);
|
|
140
137
|
}
|
|
141
138
|
|
|
142
139
|
export declare class BookmarkEnd extends XmlComponent {
|
|
@@ -542,14 +539,8 @@ export declare class EndnoteReference extends EmptyElement {
|
|
|
542
539
|
}
|
|
543
540
|
|
|
544
541
|
export declare class ExternalHyperlink extends XmlComponent {
|
|
545
|
-
readonly options:
|
|
546
|
-
|
|
547
|
-
readonly link: string;
|
|
548
|
-
};
|
|
549
|
-
constructor(options: {
|
|
550
|
-
readonly children: readonly ParagraphChild[];
|
|
551
|
-
readonly link: string;
|
|
552
|
-
});
|
|
542
|
+
readonly options: IExternalHyperlinkOptions;
|
|
543
|
+
constructor(options: IExternalHyperlinkOptions);
|
|
553
544
|
}
|
|
554
545
|
|
|
555
546
|
declare class FieldInstruction extends XmlComponent {
|
|
@@ -849,6 +840,11 @@ export declare type IBaseParagraphStyleOptions = {
|
|
|
849
840
|
readonly run?: IRunStylePropertiesOptions;
|
|
850
841
|
} & IStyleOptions;
|
|
851
842
|
|
|
843
|
+
export declare type IBookmarkOptions = {
|
|
844
|
+
readonly id: string;
|
|
845
|
+
readonly children: readonly ParagraphChild[];
|
|
846
|
+
};
|
|
847
|
+
|
|
852
848
|
export declare type IBorderOptions = {
|
|
853
849
|
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
854
850
|
readonly color?: string;
|
|
@@ -1067,6 +1063,11 @@ export declare type IDrawingOptions = {
|
|
|
1067
1063
|
readonly outline?: OutlineOptions;
|
|
1068
1064
|
};
|
|
1069
1065
|
|
|
1066
|
+
export declare type IExternalHyperlinkOptions = {
|
|
1067
|
+
readonly children: readonly ParagraphChild[];
|
|
1068
|
+
readonly link: string;
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1070
1071
|
export declare type IFloating = {
|
|
1071
1072
|
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
1072
1073
|
readonly verticalPosition: IVerticalPositionOptions;
|
|
@@ -1139,6 +1140,11 @@ export declare type IIndentAttributesProperties = {
|
|
|
1139
1140
|
|
|
1140
1141
|
declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
|
|
1141
1142
|
|
|
1143
|
+
export declare type IInternalHyperlinkOptions = {
|
|
1144
|
+
readonly children: readonly ParagraphChild[];
|
|
1145
|
+
readonly anchor: string;
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1142
1148
|
declare type ILanguageOptions = {
|
|
1143
1149
|
readonly value?: string;
|
|
1144
1150
|
readonly eastAsia?: string;
|
|
@@ -1310,10 +1316,7 @@ export declare class InsertedTextRun extends XmlComponent {
|
|
|
1310
1316
|
}
|
|
1311
1317
|
|
|
1312
1318
|
export declare class InternalHyperlink extends ConcreteHyperlink {
|
|
1313
|
-
constructor(options:
|
|
1314
|
-
readonly children: readonly ParagraphChild[];
|
|
1315
|
-
readonly anchor: string;
|
|
1316
|
-
});
|
|
1319
|
+
constructor(options: IInternalHyperlinkOptions);
|
|
1317
1320
|
}
|
|
1318
1321
|
|
|
1319
1322
|
export declare type INumberedItemReferenceOptions = {
|