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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docx-kit",
3
3
  "type": "module",
4
- "version": "0.1.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/index.d.ts",
33
- "default": "./dist/index.js"
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/index.js",
45
- "types": "./dist/index.d.ts",
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
- "devDependencies": {
69
- "@ntnyq/eslint-config": "^6.1.5",
70
- "@ntnyq/prettier-config": "^3.0.1",
71
- "@types/node": "^25.9.2",
72
- "@types/qrcode": "^1.5.6",
73
- "bumpp": "^11.1.0",
74
- "echarts": "^6.1.0",
75
- "eslint": "^10.4.1",
76
- "husky": "^9.1.7",
77
- "nano-staged": "^1.0.2",
78
- "npm-run-all2": "^9.0.1",
79
- "prettier": "^3.8.4",
80
- "qrcode": "^1.5.4",
81
- "tsdown": "^0.22.2",
82
- "typescript": "^6.0.3",
83
- "vite": "^8.0.16",
84
- "vitest": "^4.1.8"
85
- },
86
- "nano-staged": {
87
- "*.{js,ts,mjs,cjs,md,vue,yml,yaml,toml,json}": "eslint --fix",
88
- "*.{css,scss,html}": "prettier -uw"
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
  }