@touchvue/chat 1.0.0-beta.43 → 1.0.0-beta.44
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 +25 -25
- package/es/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.mjs +4816 -0
- package/es/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.mjs.map +1 -0
- package/es/package.json.css +1 -1
- package/es/package.json.mjs +2 -2
- package/es/packages/components/resolver.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs +1 -1
- package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/QuoteContent.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/QuoteContent.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/QuoteContent.vue2.mjs +29 -0
- package/es/packages/components/touchchat/component/QuoteContent.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +70 -13
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/types.mjs +1 -0
- package/es/packages/components/touchchat/src/AiChat/Chat/types.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs +21 -5
- package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs +34 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +20 -2
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs +51 -11
- package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +6 -3
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +21 -5
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +9 -5
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs +22 -9
- package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/index.vue2.mjs +20 -2
- package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/utils/fetchStream.mjs.map +1 -1
- package/lib/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.js +4819 -0
- package/lib/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.js.map +1 -0
- package/lib/package.json.css +1 -1
- package/lib/package.json.js +2 -2
- package/lib/packages/components/resolver.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/QuoteContent.vue.js +11 -0
- package/lib/packages/components/touchchat/component/QuoteContent.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/QuoteContent.vue2.js +33 -0
- package/lib/packages/components/touchchat/component/QuoteContent.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +69 -12
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/types.js +1 -0
- package/lib/packages/components/touchchat/src/AiChat/Chat/types.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js +21 -5
- package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js +34 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +20 -2
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js +51 -11
- package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +6 -3
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +21 -5
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +8 -4
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js +22 -9
- package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/index.vue2.js +20 -2
- package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/utils/fetchStream.js.map +1 -1
- package/package.json +2 -2
- package/theme/components/index.css +51 -0
- package/theme/font/iconfont.woff +0 -0
- package/theme/font/iconfont.woff2 +0 -0
- package/theme/index.css +51 -0
- package/theme/skin/default.css +51 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# TouchVue
|
|
1
|
+
# TouchVue Chat 组件库
|
|
2
2
|
|
|
3
3
|
## 介绍
|
|
4
4
|
|
|
5
|
-
TouchVue
|
|
5
|
+
TouchVue Chat 是一个基于 Vue 3 的 AI 聊天组件库,提供了一系列高质量的组件,帮助开发者快速构建应用。
|
|
6
6
|
|
|
7
7
|
## 安装
|
|
8
8
|
|
|
@@ -19,14 +19,14 @@ pnpm add @touchvue/ui
|
|
|
19
19
|
### 完整引入
|
|
20
20
|
|
|
21
21
|
```js
|
|
22
|
-
import { createApp } from 'vue'
|
|
23
|
-
import TouchVueUI from '@touchvue/ui'
|
|
24
|
-
import '@touchvue/ui/theme/index.css'
|
|
25
|
-
import App from './App.vue'
|
|
26
|
-
|
|
27
|
-
const app = createApp(App)
|
|
28
|
-
app.use(TouchVueUI)
|
|
29
|
-
app.mount('#app')
|
|
22
|
+
import { createApp } from 'vue'
|
|
23
|
+
import TouchVueUI from '@touchvue/ui'
|
|
24
|
+
import '@touchvue/ui/theme/index.css'
|
|
25
|
+
import App from './App.vue'
|
|
26
|
+
|
|
27
|
+
const app = createApp(App)
|
|
28
|
+
app.use(TouchVueUI)
|
|
29
|
+
app.mount('#app')
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### 按需引入
|
|
@@ -34,9 +34,9 @@ app.mount('#app');
|
|
|
34
34
|
#### 手动引入
|
|
35
35
|
|
|
36
36
|
```js
|
|
37
|
-
import { ToButton, ToIcon } from '@touchvue/ui'
|
|
38
|
-
import '@touchvue/ui/theme/button/index.css'
|
|
39
|
-
import '@touchvue/ui/theme/icon/index.css'
|
|
37
|
+
import { ToButton, ToIcon } from '@touchvue/ui'
|
|
38
|
+
import '@touchvue/ui/theme/button/index.css'
|
|
39
|
+
import '@touchvue/ui/theme/icon/index.css'
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
#### 自动引入(推荐)
|
|
@@ -47,20 +47,20 @@ import '@touchvue/ui/theme/icon/index.css';
|
|
|
47
47
|
|
|
48
48
|
```js
|
|
49
49
|
// vite.config.js
|
|
50
|
-
import { defineConfig } from 'vite'
|
|
51
|
-
import vue from '@vitejs/plugin-vue'
|
|
52
|
-
import AutoImport from 'unplugin-auto-import/vite'
|
|
53
|
-
import Components from 'unplugin-vue-components/vite'
|
|
54
|
-
import { TouchVueResolver } from '@touchvue/ui'
|
|
50
|
+
import { defineConfig } from 'vite'
|
|
51
|
+
import vue from '@vitejs/plugin-vue'
|
|
52
|
+
import AutoImport from 'unplugin-auto-import/vite'
|
|
53
|
+
import Components from 'unplugin-vue-components/vite'
|
|
54
|
+
import { TouchVueResolver } from '@touchvue/ui'
|
|
55
55
|
|
|
56
56
|
export default defineConfig({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
})
|
|
57
|
+
plugins: [
|
|
58
|
+
vue(),
|
|
59
|
+
Components({
|
|
60
|
+
resolvers: [TouchVueResolver()]
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
})
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## 组件列表
|