@somecat/ai-assist-sdk 1.3.7 → 2.0.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,113 +1,116 @@
1
- {
2
- "name": "@somecat/ai-assist-sdk",
3
- "version": "1.3.7",
4
- "type": "module",
5
- "description": "AI助手 SDK — 支持 React 和 Vue3 的可嵌入AI对话组件",
6
- "main": "./dist/index.mjs",
7
- "module": "./dist/index.mjs",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.mjs"
13
- },
14
- "./react": {
15
- "types": "./dist/react/index.d.ts",
16
- "import": "./dist/react/index.mjs"
17
- },
18
- "./vue": {
19
- "types": "./dist/vue/index.d.ts",
20
- "import": "./dist/vue/index.mjs"
21
- },
22
- "./styles": {
23
- "types": "./styles.d.ts",
24
- "default": "./dist/ai-assist-sdk.css"
25
- }
26
- },
27
- "license": "MIT",
28
- "repository": {
29
- "type": "git",
30
- "url": "https://github.com/zzzttt1017/ai-assist-sdk.git"
31
- },
32
- "publishConfig": {
33
- "access": "public"
34
- },
35
- "files": [
36
- "dist",
37
- "styles.d.ts"
38
- ],
39
- "scripts": {
40
- "dev": "vite --host --open /",
41
- "dev:vue": "vite --host --open /index-vue.html",
42
- "build": "vite build",
43
- "build:lib": "vite build --mode lib",
44
- "preview": "vite preview",
45
- "prepublishOnly": "pnpm build:lib"
46
- },
47
- "dependencies": {
48
- "@ant-design/icons": "^5.6.1",
49
- "@ant-design/icons-vue": "^7.0.1",
50
- "@microsoft/fetch-event-source": "^2.0.1",
51
- "antd": "^5.24.0",
52
- "axios": "^1.9.0",
53
- "dompurify": "^3.2.6",
54
- "highlight.js": "^11.11.1",
55
- "markdown-it": "^14.1.0",
56
- "markdown-it-highlightjs": "^4.2.0",
57
- "markdown-it-multimd-table": "^4.2.3"
58
- },
59
- "peerDependencies": {
60
- "@iconify/react": ">=5.0.0",
61
- "@iconify/vue": ">=4.0.0",
62
- "react": ">=17.0.0",
63
- "react-dom": ">=17.0.0",
64
- "react-markdown": ">=9.0.0",
65
- "rehype-highlight": ">=7.0.0",
66
- "remark-gfm": ">=4.0.0",
67
- "vue": ">=3.0.0"
68
- },
69
- "peerDependenciesMeta": {
70
- "@iconify/react": {
71
- "optional": true
72
- },
73
- "@iconify/vue": {
74
- "optional": true
75
- },
76
- "react": {
77
- "optional": true
78
- },
79
- "react-dom": {
80
- "optional": true
81
- },
82
- "vue": {
83
- "optional": true
84
- },
85
- "react-markdown": {
86
- "optional": true
87
- },
88
- "remark-gfm": {
89
- "optional": true
90
- },
91
- "rehype-highlight": {
92
- "optional": true
93
- }
94
- },
95
- "devDependencies": {
96
- "@iconify/react": "^6.0.2",
97
- "@iconify/vue": "^5.0.1",
98
- "@types/dompurify": "^3.2.0",
99
- "@types/markdown-it": "^14.1.2",
100
- "@types/node": "^25.9.1",
101
- "@types/react": "^19.1.0",
102
- "@types/react-dom": "^19.1.0",
103
- "@vitejs/plugin-react": "^4.4.0",
104
- "@vitejs/plugin-vue": "^5.0.0",
105
- "less": "^4.3.0",
106
- "react": "^19.1.0",
107
- "react-dom": "^19.1.0",
108
- "typescript": "^5.8.0",
109
- "vite": "^6.3.0",
110
- "vite-plugin-dts": "^4.5.0",
111
- "vue": "^3.4.0"
112
- }
113
- }
1
+ {
2
+ "name": "@somecat/ai-assist-sdk",
3
+ "version": "2.0.0",
4
+ "type": "module",
5
+ "description": "AI助手 SDK — 支持 React 和 Vue3 的可嵌入AI对话组件",
6
+ "main": "./dist/index.mjs",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.mjs"
13
+ },
14
+ "./react": {
15
+ "types": "./dist/react/index.d.ts",
16
+ "import": "./dist/react/index.mjs"
17
+ },
18
+ "./vue": {
19
+ "types": "./dist/vue/index.d.ts",
20
+ "import": "./dist/vue/index.mjs"
21
+ },
22
+ "./styles": {
23
+ "types": "./styles.d.ts",
24
+ "default": "./dist/ai-assist-sdk.css"
25
+ }
26
+ },
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/zzzttt1017/ai-assist-sdk.git"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "styles.d.ts"
38
+ ],
39
+ "scripts": {
40
+ "dev": "vite --host --open /",
41
+ "dev:vue": "vite --host --open /index-vue.html",
42
+ "build": "vite build",
43
+ "gen:icons": "node scripts/gen-icons.mjs",
44
+ "build:lib": "pnpm gen:icons && vite build --mode lib",
45
+ "preview": "vite preview",
46
+ "prepublishOnly": "pnpm build:lib"
47
+ },
48
+ "dependencies": {
49
+ "@ant-design/icons": "^5.6.1",
50
+ "@ant-design/icons-vue": "^7.0.1",
51
+ "@microsoft/fetch-event-source": "^2.0.1",
52
+ "antd": "^5.24.0",
53
+ "axios": "^1.9.0",
54
+ "dompurify": "^3.2.6",
55
+ "highlight.js": "^11.11.1",
56
+ "markdown-it": "^14.1.0",
57
+ "markdown-it-highlightjs": "^4.2.0",
58
+ "markdown-it-multimd-table": "^4.2.3"
59
+ },
60
+ "peerDependencies": {
61
+ "@iconify/react": ">=5.0.0",
62
+ "react": ">=17.0.0",
63
+ "react-dom": ">=17.0.0",
64
+ "react-markdown": ">=9.0.0",
65
+ "rehype-highlight": ">=7.0.0",
66
+ "remark-gfm": ">=4.0.0",
67
+ "vue": ">=3.0.0"
68
+ },
69
+ "peerDependenciesMeta": {
70
+ "@iconify/react": {
71
+ "optional": true
72
+ },
73
+ "react": {
74
+ "optional": true
75
+ },
76
+ "react-dom": {
77
+ "optional": true
78
+ },
79
+ "vue": {
80
+ "optional": true
81
+ },
82
+ "react-markdown": {
83
+ "optional": true
84
+ },
85
+ "remark-gfm": {
86
+ "optional": true
87
+ },
88
+ "rehype-highlight": {
89
+ "optional": true
90
+ }
91
+ },
92
+ "devDependencies": {
93
+ "@iconify-json/boxicons": "^1.2.0",
94
+ "@iconify-json/ep": "^1.2.4",
95
+ "@iconify-json/fluent-color": "^1.2.21",
96
+ "@iconify-json/heroicons-solid": "^1.2.1",
97
+ "@iconify-json/ic": "^1.2.4",
98
+ "@iconify-json/material-symbols": "^1.2.101",
99
+ "@iconify-json/mingcute": "^1.2.10",
100
+ "@iconify/react": "^6.0.2",
101
+ "@types/dompurify": "^3.2.0",
102
+ "@types/markdown-it": "^14.1.2",
103
+ "@types/node": "^25.9.1",
104
+ "@types/react": "^19.1.0",
105
+ "@types/react-dom": "^19.1.0",
106
+ "@vitejs/plugin-react": "^4.4.0",
107
+ "@vitejs/plugin-vue": "^5.0.0",
108
+ "less": "^4.3.0",
109
+ "react": "^19.1.0",
110
+ "react-dom": "^19.1.0",
111
+ "typescript": "^5.8.0",
112
+ "vite": "^6.3.0",
113
+ "vite-plugin-dts": "^4.5.0",
114
+ "vue": "^3.4.0"
115
+ }
116
+ }