docx 8.2.0 → 8.2.2
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/README.md +0 -3
- package/build/export/formatter.spec.d.ts +1 -0
- package/build/export/packer/image-replacer.spec.d.ts +1 -0
- package/build/export/packer/next-compiler.spec.d.ts +1 -0
- package/build/export/packer/packer.spec.d.ts +1 -0
- package/build/file/border/border.spec.d.ts +1 -0
- package/build/file/checkbox/checkbox-util.spec.d.ts +1 -0
- package/build/file/checkbox/checkbox.spec.d.ts +1 -0
- package/build/file/content-types/content-types.spec.d.ts +1 -0
- package/build/file/core-properties/properties.spec.d.ts +1 -0
- package/build/file/custom-properties/custom-properties.spec.d.ts +1 -0
- package/build/file/document/body/body.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/columns.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/doc-grid.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/header-footer-reference.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-borders.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-size.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-text-direction.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/section-type.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/section-properties.spec.d.ts +1 -0
- package/build/file/document/document-background/document-background.spec.d.ts +1 -0
- package/build/file/document/document.spec.d.ts +1 -0
- package/build/file/document-wrapper.spec.d.ts +1 -0
- package/build/file/drawing/anchor/anchor.spec.d.ts +1 -0
- package/build/file/drawing/doc-properties/doc-properties-children.spec.d.ts +1 -0
- package/build/file/drawing/drawing.spec.d.ts +1 -0
- package/build/file/drawing/floating/align.spec.d.ts +1 -0
- package/build/file/drawing/floating/horizontal-position.spec.d.ts +1 -0
- package/build/file/drawing/floating/position-offset.spec.d.ts +1 -0
- package/build/file/drawing/floating/simple-pos.spec.d.ts +1 -0
- package/build/file/drawing/floating/vertical-position.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.d.ts +4 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts +4 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.spec.d.ts +1 -0
- package/build/file/file.spec.d.ts +1 -0
- package/build/file/footer/footer.spec.d.ts +1 -0
- package/build/file/footer/index.d.ts +1 -0
- package/build/file/footer-wrapper.spec.d.ts +1 -0
- package/build/file/footnotes/footnote/footnote.spec.d.ts +1 -0
- package/build/file/footnotes-wrapper.spec.d.ts +1 -0
- package/build/file/header/header.spec.d.ts +1 -0
- package/build/file/header/index.d.ts +1 -0
- package/build/file/header-wrapper.spec.d.ts +1 -0
- package/build/file/media/media.spec.d.ts +1 -0
- package/build/file/numbering/abstract-numbering.spec.d.ts +1 -0
- package/build/file/numbering/concrete-numbering.spec.d.ts +1 -0
- package/build/file/numbering/level.spec.d.ts +1 -0
- package/build/file/numbering/numbering.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/alignment.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/border.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/break.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/indent.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/spacing.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/style.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/tab-stop.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/unordered-list.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/width.d.ts +0 -0
- package/build/file/paragraph/formatting/word-wrap.spec.d.ts +1 -0
- package/build/file/paragraph/frame/frame-properties.spec.d.ts +1 -0
- package/build/file/paragraph/links/bookmark.spec.d.ts +1 -0
- package/build/file/paragraph/links/hyperlink.spec.d.ts +1 -0
- package/build/file/paragraph/links/outline-level.spec.d.ts +1 -0
- package/build/file/paragraph/links/pageref-field-instruction.spec.d.ts +1 -0
- package/build/file/paragraph/links/pageref.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-angled-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-beginning-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-bracket-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-curly-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-ending-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-round-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-square-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-denominator.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-fraction.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-numerator.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function-name.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/math-run.spec.d.ts +1 -0
- package/build/file/paragraph/math/math-text.spec.d.ts +1 -0
- package/build/file/paragraph/math/math.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-accent-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-base.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-integral.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-limit-location.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-n-ary-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sub-script-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sub-script.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sum.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-super-script-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-super-script.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-degree-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-degree.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-radical-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-radical.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/super-script/math-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/super-script/math-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/paragraph.spec.d.ts +1 -0
- package/build/file/paragraph/properties.spec.d.ts +1 -0
- package/build/file/paragraph/run/break.spec.d.ts +1 -0
- package/build/file/paragraph/run/comment-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/emphasis-mark.spec.d.ts +1 -0
- package/build/file/paragraph/run/empty-children.spec.d.ts +1 -0
- package/build/file/paragraph/run/formatting.spec.d.ts +1 -0
- package/build/file/paragraph/run/image-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/language.spec.d.ts +1 -0
- package/build/file/paragraph/run/page-number.spec.d.ts +1 -0
- package/build/file/paragraph/run/positional-tab.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-components/symbol.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-components/text.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-fonts.spec.d.ts +1 -0
- package/build/file/paragraph/run/run.spec.d.ts +1 -0
- package/build/file/paragraph/run/script.spec.d.ts +1 -0
- package/build/file/paragraph/run/sequential-identifier.spec.d.ts +1 -0
- package/build/file/paragraph/run/simple-field.spec.d.ts +1 -0
- package/build/file/paragraph/run/symbol-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/text-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/underline.spec.d.ts +1 -0
- package/build/file/relationships/relationships.spec.d.ts +1 -0
- package/build/file/settings/compatibility-setting/compatibility-setting.spec.d.ts +1 -0
- package/build/file/settings/compatibility.spec.d.ts +1 -0
- package/build/file/settings/settings.spec.d.ts +1 -0
- package/build/file/shading/shading.spec.d.ts +1 -0
- package/build/file/styles/defaults/document-defaults.spec.d.ts +1 -0
- package/build/file/styles/external-styles-factory.spec.d.ts +1 -0
- package/build/file/styles/latent-styles/exceptions.d.ts +20 -0
- package/build/file/styles/latent-styles/exceptions.spec.d.ts +1 -0
- package/build/file/styles/latent-styles/index.d.ts +1 -0
- package/build/file/styles/latent-styles/latent-styles.d.ts +5 -0
- package/build/file/styles/latent-styles/latent-styles.spec.d.ts +1 -0
- package/build/file/styles/sample/default-style.d.ts +1 -0
- package/build/file/styles/sample/default-style.spec.d.ts +1 -0
- package/build/file/styles/sample/index.d.ts +1 -0
- package/build/file/styles/style/character-style.spec.d.ts +1 -0
- package/build/file/styles/style/components.spec.d.ts +1 -0
- package/build/file/styles/style/default-styles.spec.d.ts +1 -0
- package/build/file/styles/style/paragraph-style.spec.d.ts +1 -0
- package/build/file/styles/style/style.spec.d.ts +1 -0
- package/build/file/styles/styles.spec.d.ts +1 -0
- package/build/file/table/grid.spec.d.ts +1 -0
- package/build/file/table/table-cell/table-cell-properties.spec.d.ts +1 -0
- package/build/file/table/table-cell/table-cell.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-borders.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-cell-margin.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-float-properties.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-properties.spec.d.ts +1 -0
- package/build/file/table/table-row/table-row-properties.spec.d.ts +1 -0
- package/build/file/table/table-row/table-row.spec.d.ts +1 -0
- package/build/file/table/table.spec.d.ts +1 -0
- package/build/file/table-of-contents/table-of-contents.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-page-number.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-text-run.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-text.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/inserted-text-run.spec.d.ts +1 -0
- package/build/file/xml-components/attribute.spec.d.ts +1 -0
- package/build/file/xml-components/imported-xml-component.spec.d.ts +1 -0
- package/build/file/xml-components/simple-elements.spec.d.ts +1 -0
- package/build/file/xml-components/xml-component.spec.d.ts +1 -0
- package/build/index.cjs +1002 -1002
- package/build/index.iife.js +1002 -1002
- package/build/index.js +1002 -1002
- package/build/index.spec.d.ts +1 -0
- package/build/{index.umd.cjs → index.umd.js} +1002 -1002
- package/build/patcher/content-types-manager.spec.d.ts +1 -0
- package/build/patcher/from-docx.d.ts +1 -1
- package/build/patcher/from-docx.spec.d.ts +1 -0
- package/build/patcher/paragraph-split-inject.spec.d.ts +1 -0
- package/build/patcher/paragraph-token-replacer.spec.d.ts +1 -0
- package/build/patcher/relationship-manager.spec.d.ts +1 -0
- package/build/patcher/replacer.spec.d.ts +1 -0
- package/build/patcher/run-renderer.spec.d.ts +1 -0
- package/build/patcher/traverser.spec.d.ts +1 -0
- package/build/patcher/util.spec.d.ts +1 -0
- package/build/tests/utility.d.ts +3 -0
- package/build/util/convenience-functions.spec.d.ts +1 -0
- package/build/util/values.spec.d.ts +1 -0
- package/package.json +7 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -21,5 +21,5 @@ export interface PatchDocumentOptions {
|
|
|
21
21
|
readonly [key: string]: IPatch;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export declare const patchDocument: (data: InputDataType, options: PatchDocumentOptions) => Promise<
|
|
24
|
+
export declare const patchDocument: (data: InputDataType, options: PatchDocumentOptions) => Promise<Uint8Array>;
|
|
25
25
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docx",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "build/index.umd.
|
|
6
|
+
"main": "build/index.umd.js",
|
|
7
7
|
"module": "./build/index.js",
|
|
8
8
|
"types": "./build/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"browser": {
|
|
12
|
-
"default": "./build/index.umd.cjs"
|
|
13
|
-
},
|
|
14
11
|
"require": "./build/index.cjs",
|
|
15
12
|
"types": "./build/index.d.ts",
|
|
16
13
|
"import": "./build/index.js",
|
|
@@ -58,7 +55,6 @@
|
|
|
58
55
|
],
|
|
59
56
|
"dependencies": {
|
|
60
57
|
"@types/node": "^20.3.1",
|
|
61
|
-
"fflate": "^0.8.0",
|
|
62
58
|
"jszip": "^3.10.1",
|
|
63
59
|
"nanoid": "^4.0.2",
|
|
64
60
|
"xml": "^1.0.1",
|
|
@@ -78,8 +74,8 @@
|
|
|
78
74
|
"@types/xml": "^1.0.8",
|
|
79
75
|
"@typescript-eslint/eslint-plugin": "^5.36.1",
|
|
80
76
|
"@typescript-eslint/parser": "^5.36.1",
|
|
81
|
-
"@vitest/coverage-v8": "^0.
|
|
82
|
-
"@vitest/ui": "^0.
|
|
77
|
+
"@vitest/coverage-v8": "^0.33.0",
|
|
78
|
+
"@vitest/ui": "^0.33.0",
|
|
83
79
|
"cspell": "^6.2.2",
|
|
84
80
|
"docsify-cli": "^4.3.0",
|
|
85
81
|
"eslint": "^8.23.0",
|
|
@@ -98,13 +94,13 @@
|
|
|
98
94
|
"ts-node": "^10.2.1",
|
|
99
95
|
"tsconfig-paths": "^4.0.0",
|
|
100
96
|
"typedoc": "^0.24.8",
|
|
101
|
-
"typescript": "5.1.
|
|
97
|
+
"typescript": "5.1.6",
|
|
102
98
|
"unzipper": "^0.10.11",
|
|
103
99
|
"vite": "^4.3.2",
|
|
104
|
-
"vite-plugin-dts": "^
|
|
100
|
+
"vite-plugin-dts": "^3.3.1",
|
|
105
101
|
"vite-plugin-node-polyfills": "^0.9.0",
|
|
106
102
|
"vite-tsconfig-paths": "^4.2.0",
|
|
107
|
-
"vitest": "^0.
|
|
103
|
+
"vitest": "^0.33.0"
|
|
108
104
|
},
|
|
109
105
|
"engines": {
|
|
110
106
|
"node": ">=10"
|