docx-plus 0.0.11 → 0.0.13
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 +21001 -18733
- package/dist/index.d.cts +29 -1
- package/dist/index.d.mts +29 -1
- package/dist/index.iife.js +21003 -18733
- package/dist/index.mjs +21015 -18724
- package/dist/index.umd.js +21005 -18737
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DataType } from "undio";
|
|
2
|
-
import { Element } from "xml-js";
|
|
3
2
|
import { Readable } from "stream";
|
|
4
3
|
//#region src/file/file-child.d.ts
|
|
5
4
|
declare class FileChild extends XmlComponent {
|
|
@@ -2497,6 +2496,9 @@ interface ICompatibilityOptions {
|
|
|
2497
2496
|
readonly ignoreVerticalAlignmentInTextboxes?: boolean;
|
|
2498
2497
|
readonly useAnsiKerningPairs?: boolean;
|
|
2499
2498
|
readonly cachedColumnBalance?: boolean;
|
|
2499
|
+
readonly overrideTableStyleFontSizeAndJustification?: boolean;
|
|
2500
|
+
readonly enableOpenTypeFeatures?: boolean;
|
|
2501
|
+
readonly doNotFlipMirrorIndents?: boolean;
|
|
2500
2502
|
}
|
|
2501
2503
|
//#endregion
|
|
2502
2504
|
//#region src/file/settings/settings.d.ts
|
|
@@ -2508,6 +2510,7 @@ interface ISettingsOptions {
|
|
|
2508
2510
|
readonly compatibility?: ICompatibilityOptions;
|
|
2509
2511
|
readonly defaultTabStop?: number;
|
|
2510
2512
|
readonly hyphenation?: IHyphenationOptions;
|
|
2513
|
+
readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
2511
2514
|
}
|
|
2512
2515
|
interface IHyphenationOptions {
|
|
2513
2516
|
readonly autoHyphenation?: boolean;
|
|
@@ -3064,6 +3067,7 @@ interface IPropertiesOptions {
|
|
|
3064
3067
|
readonly defaultTabStop?: number;
|
|
3065
3068
|
readonly fonts?: readonly FontOptions[];
|
|
3066
3069
|
readonly hyphenation?: IHyphenationOptions;
|
|
3070
|
+
readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
3067
3071
|
}
|
|
3068
3072
|
declare class CoreProperties extends XmlComponent {
|
|
3069
3073
|
constructor(options: Omit<IPropertiesOptions, "sections">);
|
|
@@ -3261,6 +3265,30 @@ declare class Attributes extends XmlAttributeComponent<{
|
|
|
3261
3265
|
};
|
|
3262
3266
|
}
|
|
3263
3267
|
//#endregion
|
|
3268
|
+
//#region node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/types/index.d.ts
|
|
3269
|
+
interface Attributes$1 {
|
|
3270
|
+
[key: string]: string | number | undefined;
|
|
3271
|
+
}
|
|
3272
|
+
interface DeclarationAttributes {
|
|
3273
|
+
version?: string | number;
|
|
3274
|
+
encoding?: 'utf-8' | string;
|
|
3275
|
+
standalone?: 'yes' | 'no';
|
|
3276
|
+
}
|
|
3277
|
+
interface Element {
|
|
3278
|
+
declaration?: {
|
|
3279
|
+
attributes?: DeclarationAttributes;
|
|
3280
|
+
};
|
|
3281
|
+
instruction?: string;
|
|
3282
|
+
attributes?: Attributes$1;
|
|
3283
|
+
cdata?: string;
|
|
3284
|
+
doctype?: string;
|
|
3285
|
+
comment?: string;
|
|
3286
|
+
text?: string | number | boolean;
|
|
3287
|
+
type?: string;
|
|
3288
|
+
name?: string;
|
|
3289
|
+
elements?: Array<Element>;
|
|
3290
|
+
}
|
|
3291
|
+
//#endregion
|
|
3264
3292
|
//#region src/file/xml-components/imported-xml-component.d.ts
|
|
3265
3293
|
declare const convertToXmlComponent: (element: Element) => ImportedXmlComponent | string | undefined;
|
|
3266
3294
|
declare class ImportedXmlComponent extends XmlComponent {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Element } from "xml-js";
|
|
2
1
|
import { DataType } from "undio";
|
|
3
2
|
import { Buffer } from "\u0000polyfill-node.buffer";
|
|
4
3
|
import { Readable } from "stream";
|
|
@@ -2499,6 +2498,9 @@ interface ICompatibilityOptions {
|
|
|
2499
2498
|
readonly ignoreVerticalAlignmentInTextboxes?: boolean;
|
|
2500
2499
|
readonly useAnsiKerningPairs?: boolean;
|
|
2501
2500
|
readonly cachedColumnBalance?: boolean;
|
|
2501
|
+
readonly overrideTableStyleFontSizeAndJustification?: boolean;
|
|
2502
|
+
readonly enableOpenTypeFeatures?: boolean;
|
|
2503
|
+
readonly doNotFlipMirrorIndents?: boolean;
|
|
2502
2504
|
}
|
|
2503
2505
|
//#endregion
|
|
2504
2506
|
//#region src/file/settings/settings.d.ts
|
|
@@ -2510,6 +2512,7 @@ interface ISettingsOptions {
|
|
|
2510
2512
|
readonly compatibility?: ICompatibilityOptions;
|
|
2511
2513
|
readonly defaultTabStop?: number;
|
|
2512
2514
|
readonly hyphenation?: IHyphenationOptions;
|
|
2515
|
+
readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
2513
2516
|
}
|
|
2514
2517
|
interface IHyphenationOptions {
|
|
2515
2518
|
readonly autoHyphenation?: boolean;
|
|
@@ -3066,6 +3069,7 @@ interface IPropertiesOptions {
|
|
|
3066
3069
|
readonly defaultTabStop?: number;
|
|
3067
3070
|
readonly fonts?: readonly FontOptions[];
|
|
3068
3071
|
readonly hyphenation?: IHyphenationOptions;
|
|
3072
|
+
readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
|
|
3069
3073
|
}
|
|
3070
3074
|
declare class CoreProperties extends XmlComponent {
|
|
3071
3075
|
constructor(options: Omit<IPropertiesOptions, "sections">);
|
|
@@ -3263,6 +3267,30 @@ declare class Attributes extends XmlAttributeComponent<{
|
|
|
3263
3267
|
};
|
|
3264
3268
|
}
|
|
3265
3269
|
//#endregion
|
|
3270
|
+
//#region node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/types/index.d.ts
|
|
3271
|
+
interface Attributes$1 {
|
|
3272
|
+
[key: string]: string | number | undefined;
|
|
3273
|
+
}
|
|
3274
|
+
interface DeclarationAttributes {
|
|
3275
|
+
version?: string | number;
|
|
3276
|
+
encoding?: 'utf-8' | string;
|
|
3277
|
+
standalone?: 'yes' | 'no';
|
|
3278
|
+
}
|
|
3279
|
+
interface Element {
|
|
3280
|
+
declaration?: {
|
|
3281
|
+
attributes?: DeclarationAttributes;
|
|
3282
|
+
};
|
|
3283
|
+
instruction?: string;
|
|
3284
|
+
attributes?: Attributes$1;
|
|
3285
|
+
cdata?: string;
|
|
3286
|
+
doctype?: string;
|
|
3287
|
+
comment?: string;
|
|
3288
|
+
text?: string | number | boolean;
|
|
3289
|
+
type?: string;
|
|
3290
|
+
name?: string;
|
|
3291
|
+
elements?: Array<Element>;
|
|
3292
|
+
}
|
|
3293
|
+
//#endregion
|
|
3266
3294
|
//#region src/file/xml-components/imported-xml-component.d.ts
|
|
3267
3295
|
declare const convertToXmlComponent: (element: Element) => ImportedXmlComponent | string | undefined;
|
|
3268
3296
|
declare class ImportedXmlComponent extends XmlComponent {
|