@ibiz-template-plugin/ai-chat 0.0.1
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/LICENSE +21 -0
- package/README.en.md +36 -0
- package/README.md +37 -0
- package/dist/assets/svg/AIChat.svg +1 -0
- package/dist/index.es.js +1655 -0
- package/dist/index.legacy.js +1 -0
- package/dist/polyfills.legacy.js +1 -0
- package/dist/style.css +1 -0
- package/dist/types/app.d.ts +1 -0
- package/dist/types/components/chat-container/chat-container.d.ts +59 -0
- package/dist/types/components/chat-input/chat-input.d.ts +12 -0
- package/dist/types/components/chat-message-item/chat-message-item.d.ts +23 -0
- package/dist/types/components/chat-message-item/error-message/error-message.d.ts +13 -0
- package/dist/types/components/chat-message-item/markdown-message/markdown-message.d.ts +22 -0
- package/dist/types/components/chat-message-item/unknown-message/unknown-message.d.ts +13 -0
- package/dist/types/components/chat-message-item/user-message/user-message.d.ts +13 -0
- package/dist/types/components/chat-messages/chat-messages.d.ts +12 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/controller/ai-chat/ai-chat.controller.d.ts +78 -0
- package/dist/types/controller/chat/chat.controller.d.ts +51 -0
- package/dist/types/controller/index.d.ts +2 -0
- package/dist/types/entity/chat-message/chat-message.d.ts +28 -0
- package/dist/types/entity/index.d.ts +1 -0
- package/dist/types/global.d.ts +2 -0
- package/dist/types/icons/close-svg.d.ts +1 -0
- package/dist/types/icons/fill-svg.d.ts +1 -0
- package/dist/types/icons/index.d.ts +3 -0
- package/dist/types/icons/send-svg.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/interface/i-chat-container/i-chat-container.d.ts +58 -0
- package/dist/types/interface/i-chat-message/i-chat-message.d.ts +83 -0
- package/dist/types/interface/i-chat-options/i-chat-options.d.ts +46 -0
- package/dist/types/interface/i-message-item-provider/i-message-item-provider.d.ts +18 -0
- package/dist/types/interface/i-portal-async-action/i-portal-async-action.d.ts +90 -0
- package/dist/types/interface/index.d.ts +4 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/namespace/namespace.d.ts +147 -0
- package/dist/types/utils/plugin-static-resource/plugin-static-resource.d.ts +63 -0
- package/dist/types/utils/util/util.d.ts +9 -0
- package/package.json +81 -0
package/package.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ibiz-template-plugin/ai-chat",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
|
+
"main": "dist/index.es.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"system": "dist/index.legacy.js",
|
|
9
|
+
"styles": [
|
|
10
|
+
"dist/index.min.css"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"author": "chitanda",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"build": "vite build",
|
|
20
|
+
"build:watch": "vite build --watch",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
23
|
+
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
24
|
+
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
|
|
25
|
+
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@ibiz-template/theme": "^0.1.24",
|
|
29
|
+
"@preact/signals": "^1.2.1",
|
|
30
|
+
"autosize": "^6.0.1",
|
|
31
|
+
"cherry-markdown": "^0.8.26",
|
|
32
|
+
"interactjs": "^1.10.19",
|
|
33
|
+
"path-browserify": "^1.0.1",
|
|
34
|
+
"preact": "^10.18.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@commitlint/cli": "^17.7.2",
|
|
38
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
39
|
+
"@preact/preset-vite": "^2.5.0",
|
|
40
|
+
"@qx-chitanda/vite-plugin-lib-legacy": "^4.1.1",
|
|
41
|
+
"@types/autosize": "^4.0.1",
|
|
42
|
+
"@types/lodash-es": "^4.17.9",
|
|
43
|
+
"@types/node": "^20.8.5",
|
|
44
|
+
"@types/path-browserify": "^1.0.0",
|
|
45
|
+
"@types/qs": "^6.9.8",
|
|
46
|
+
"@types/ramda": "^0.29.6",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
48
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
49
|
+
"eslint": "^8.51.0",
|
|
50
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
51
|
+
"eslint-config-prettier": "^9.0.0",
|
|
52
|
+
"eslint-plugin-import": "^2.28.1",
|
|
53
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
54
|
+
"eslint-plugin-react": "^7.33.2",
|
|
55
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
56
|
+
"husky": "^8.0.3",
|
|
57
|
+
"lint-staged": "^14.0.1",
|
|
58
|
+
"prettier": "^3.0.3",
|
|
59
|
+
"sass": "^1.69.3",
|
|
60
|
+
"stylelint": "^15.10.3",
|
|
61
|
+
"stylelint-config-ali": "^1.1.0",
|
|
62
|
+
"stylelint-config-prettier": "^9.0.5",
|
|
63
|
+
"stylelint-config-recess-order": "^4.3.0",
|
|
64
|
+
"stylelint-config-standard": "^34.0.0",
|
|
65
|
+
"stylelint-config-standard-scss": "^11.0.0",
|
|
66
|
+
"stylelint-scss": "^5.2.1",
|
|
67
|
+
"typescript": "^5.2.2",
|
|
68
|
+
"vite": "^4.4.11",
|
|
69
|
+
"vite-plugin-dts": "^3.6.0",
|
|
70
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
71
|
+
"vue-tsc": "^1.8.19"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"cherry-markdown": "^0.8.26",
|
|
75
|
+
"interactjs": "^1.10.19"
|
|
76
|
+
},
|
|
77
|
+
"lint-staged": {
|
|
78
|
+
"*.ts": "eslint --fix",
|
|
79
|
+
"*.scss": "stylelint --custom-syntax=postcss-scss"
|
|
80
|
+
}
|
|
81
|
+
}
|