docx-kit 0.1.0 → 0.3.0
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 +13 -15
- package/dist/browser.d.ts +65 -44
- package/dist/browser.js +73 -30
- package/dist/node.d.ts +58 -53
- package/dist/node.js +78 -16
- package/package.json +68 -48
- package/dist/compileDocument-BvuU28Yj.js +0 -750
- package/dist/errors-c9CC63Ti.js +0 -63
- package/dist/fs-DF8ug9Wi.js +0 -43
- package/dist/image-6yS25Ggr.js +0 -76
- package/dist/index.d.ts +0 -1032
- package/dist/index.js +0 -683
- package/dist/pack-0Jsv03Sk.js +0 -79
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docx-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "CSS-like DOCX API Kit — a type-safe, plugin-extensible DOCX generation library built on dolanmiu/docx.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"document",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"homepage": "https://github.com/ntnyq/docx-kit#readme",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "ntnyq/docx-kit"
|
|
24
|
+
"url": "https://github.com/ntnyq/docx-kit",
|
|
25
|
+
"directory": "packages/docx-kit"
|
|
25
26
|
},
|
|
26
27
|
"bugs": {
|
|
27
28
|
"url": "https://github.com/ntnyq/docx-kit/issues"
|
|
@@ -29,20 +30,48 @@
|
|
|
29
30
|
"exports": {
|
|
30
31
|
"./package.json": "./package.json",
|
|
31
32
|
".": {
|
|
32
|
-
"types": "./dist/
|
|
33
|
-
"default": "./dist/
|
|
33
|
+
"types": "./dist/browser.d.ts",
|
|
34
|
+
"default": "./dist/browser.js"
|
|
35
|
+
},
|
|
36
|
+
"./ai": {
|
|
37
|
+
"types": "./dist/ai-proxy.d.ts",
|
|
38
|
+
"default": "./dist/ai-proxy.js"
|
|
34
39
|
},
|
|
35
40
|
"./browser": {
|
|
36
41
|
"types": "./dist/browser.d.ts",
|
|
37
42
|
"default": "./dist/browser.js"
|
|
38
43
|
},
|
|
44
|
+
"./loader": {
|
|
45
|
+
"types": "./dist/loader-proxy.d.ts",
|
|
46
|
+
"default": "./dist/loader-proxy.js"
|
|
47
|
+
},
|
|
48
|
+
"./loader/browser": {
|
|
49
|
+
"types": "./dist/loader-proxy.d.ts",
|
|
50
|
+
"default": "./dist/loader-proxy.js"
|
|
51
|
+
},
|
|
52
|
+
"./loader/node": {
|
|
53
|
+
"types": "./dist/loader-proxy.d.ts",
|
|
54
|
+
"default": "./dist/loader-proxy.js"
|
|
55
|
+
},
|
|
56
|
+
"./mcp": {
|
|
57
|
+
"types": "./dist/mcp-proxy.d.ts",
|
|
58
|
+
"default": "./dist/mcp-proxy.js"
|
|
59
|
+
},
|
|
39
60
|
"./node": {
|
|
40
61
|
"types": "./dist/node.d.ts",
|
|
41
62
|
"default": "./dist/node.js"
|
|
63
|
+
},
|
|
64
|
+
"./pdk": {
|
|
65
|
+
"types": "./dist/pdk-proxy.d.ts",
|
|
66
|
+
"default": "./dist/pdk-proxy.js"
|
|
67
|
+
},
|
|
68
|
+
"./registry": {
|
|
69
|
+
"types": "./dist/registry-proxy.d.ts",
|
|
70
|
+
"default": "./dist/registry-proxy.js"
|
|
42
71
|
}
|
|
43
72
|
},
|
|
44
|
-
"main": "./dist/
|
|
45
|
-
"types": "./dist/
|
|
73
|
+
"main": "./dist/browser.js",
|
|
74
|
+
"types": "./dist/browser.d.ts",
|
|
46
75
|
"files": [
|
|
47
76
|
"dist"
|
|
48
77
|
],
|
|
@@ -51,52 +80,43 @@
|
|
|
51
80
|
},
|
|
52
81
|
"sideEffects": false,
|
|
53
82
|
"peerDependencies": {
|
|
54
|
-
"echarts": ">=5.0.0",
|
|
55
|
-
"qrcode": ">=1.5.0"
|
|
56
|
-
},
|
|
57
|
-
"peerDependenciesMeta": {
|
|
58
|
-
"echarts": {
|
|
59
|
-
"optional": true
|
|
60
|
-
},
|
|
61
|
-
"qrcode": {
|
|
62
|
-
"optional": true
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"dependencies": {
|
|
66
83
|
"docx": "^9.7.1"
|
|
67
84
|
},
|
|
68
|
-
"
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
"
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"@docxkit/ai": "0.3.0",
|
|
87
|
+
"@docxkit/loader": "0.3.0",
|
|
88
|
+
"@docxkit/mcp": "0.3.0",
|
|
89
|
+
"@docxkit/plugin-code-block": "0.3.0",
|
|
90
|
+
"@docxkit/core": "0.3.0",
|
|
91
|
+
"@docxkit/plugin-callout": "0.3.0",
|
|
92
|
+
"@docxkit/pdk": "0.3.0",
|
|
93
|
+
"@docxkit/plugin-invoice": "0.3.0",
|
|
94
|
+
"@docxkit/plugin-badge": "0.3.0",
|
|
95
|
+
"@docxkit/plugin-cover-page": "0.3.0",
|
|
96
|
+
"@docxkit/plugin-changelog": "0.3.0",
|
|
97
|
+
"@docxkit/plugin-divider": "0.3.0",
|
|
98
|
+
"@docxkit/plugin-letterhead": "0.3.0",
|
|
99
|
+
"@docxkit/plugin-echarts": "0.3.0",
|
|
100
|
+
"@docxkit/plugin-property-table": "0.3.0",
|
|
101
|
+
"@docxkit/plugin-timeline": "0.3.0",
|
|
102
|
+
"@docxkit/plugin-meeting-minutes": "0.3.0",
|
|
103
|
+
"@docxkit/plugin-signature-block": "0.3.0",
|
|
104
|
+
"@docxkit/plugin-watermark": "0.3.0",
|
|
105
|
+
"@docxkit/preset-academic": "0.3.0",
|
|
106
|
+
"@docxkit/plugin-data-table": "0.3.0",
|
|
107
|
+
"@docxkit/plugin-qrcode": "0.3.0",
|
|
108
|
+
"@docxkit/plugin-toc": "0.3.0",
|
|
109
|
+
"@docxkit/preset-classic": "0.3.0",
|
|
110
|
+
"@docxkit/plugin-page-number": "0.3.0",
|
|
111
|
+
"@docxkit/theme-ocean": "0.3.0",
|
|
112
|
+
"@docxkit/renderer": "0.3.0",
|
|
113
|
+
"@docxkit/theme-warm": "0.3.0",
|
|
114
|
+
"@docxkit/preset-modern": "0.3.0",
|
|
115
|
+
"@docxkit/theme-minimal": "0.3.0",
|
|
116
|
+
"@docxkit/registry": "0.3.0"
|
|
89
117
|
},
|
|
90
118
|
"scripts": {
|
|
91
119
|
"build": "tsdown",
|
|
92
|
-
"dev": "tsdown --watch"
|
|
93
|
-
"docs:build": "pnpm -C docs run build",
|
|
94
|
-
"docs:dev": "pnpm -C docs run dev",
|
|
95
|
-
"lint": "eslint",
|
|
96
|
-
"release": "run-s release:check release:version",
|
|
97
|
-
"release:check": "run-s lint typecheck test",
|
|
98
|
-
"release:version": "bumpp",
|
|
99
|
-
"test": "vitest",
|
|
100
|
-
"typecheck": "tsc --noEmit"
|
|
120
|
+
"dev": "tsdown --watch"
|
|
101
121
|
}
|
|
102
122
|
}
|