@touchvue/chat 1.0.0-beta.42 → 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.
Files changed (75) hide show
  1. package/README.md +25 -25
  2. package/es/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.mjs +4816 -0
  3. package/es/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.mjs.map +1 -0
  4. package/es/package.json.css +1 -1
  5. package/es/package.json.mjs +2 -2
  6. package/es/packages/components/resolver.mjs.map +1 -1
  7. package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs +1 -1
  8. package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs.map +1 -1
  9. package/es/packages/components/touchchat/component/QuoteContent.vue.mjs +7 -0
  10. package/es/packages/components/touchchat/component/QuoteContent.vue.mjs.map +1 -0
  11. package/es/packages/components/touchchat/component/QuoteContent.vue2.mjs +29 -0
  12. package/es/packages/components/touchchat/component/QuoteContent.vue2.mjs.map +1 -0
  13. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +70 -13
  14. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
  15. package/es/packages/components/touchchat/src/AiChat/Chat/types.mjs +1 -0
  16. package/es/packages/components/touchchat/src/AiChat/Chat/types.mjs.map +1 -1
  17. package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs +21 -5
  18. package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs.map +1 -1
  19. package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs +34 -1
  20. package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs.map +1 -1
  21. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +20 -2
  22. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
  23. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs +51 -11
  24. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs.map +1 -1
  25. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +6 -3
  26. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -1
  27. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +21 -5
  28. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
  29. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +13 -5
  30. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
  31. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs +22 -9
  32. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs.map +1 -1
  33. package/es/packages/components/touchchat/src/index.vue2.mjs +20 -2
  34. package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
  35. package/es/packages/components/touchchat/utils/fetchStream.mjs.map +1 -1
  36. package/lib/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.js +4819 -0
  37. package/lib/node_modules/.pnpm/@touchvue_a2ui@1.0.0-beta.46/node_modules/@touchvue/a2ui/dist/index.js.map +1 -0
  38. package/lib/package.json.css +1 -1
  39. package/lib/package.json.js +2 -2
  40. package/lib/packages/components/resolver.js.map +1 -1
  41. package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js +1 -1
  42. package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js.map +1 -1
  43. package/lib/packages/components/touchchat/component/QuoteContent.vue.js +11 -0
  44. package/lib/packages/components/touchchat/component/QuoteContent.vue.js.map +1 -0
  45. package/lib/packages/components/touchchat/component/QuoteContent.vue2.js +33 -0
  46. package/lib/packages/components/touchchat/component/QuoteContent.vue2.js.map +1 -0
  47. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +69 -12
  48. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
  49. package/lib/packages/components/touchchat/src/AiChat/Chat/types.js +1 -0
  50. package/lib/packages/components/touchchat/src/AiChat/Chat/types.js.map +1 -1
  51. package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js +21 -5
  52. package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js.map +1 -1
  53. package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js +34 -1
  54. package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js.map +1 -1
  55. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +20 -2
  56. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
  57. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js +51 -11
  58. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js.map +1 -1
  59. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +6 -3
  60. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -1
  61. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +21 -5
  62. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
  63. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +12 -4
  64. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
  65. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js +22 -9
  66. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js.map +1 -1
  67. package/lib/packages/components/touchchat/src/index.vue2.js +20 -2
  68. package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
  69. package/lib/packages/components/touchchat/utils/fetchStream.js.map +1 -1
  70. package/package.json +2 -2
  71. package/theme/components/index.css +51 -0
  72. package/theme/font/iconfont.woff +0 -0
  73. package/theme/font/iconfont.woff2 +0 -0
  74. package/theme/index.css +51 -0
  75. package/theme/skin/default.css +51 -0
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # TouchVue UI 组件库
1
+ # TouchVue Chat 组件库
2
2
 
3
3
  ## 介绍
4
4
 
5
- TouchVue UI 是一个基于 Vue 3 的组件库,提供了一系列高质量的组件,帮助开发者快速构建应用。
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
- plugins: [
58
- vue(),
59
- Components({
60
- resolvers: [TouchVueResolver()],
61
- }),
62
- ],
63
- });
57
+ plugins: [
58
+ vue(),
59
+ Components({
60
+ resolvers: [TouchVueResolver()]
61
+ })
62
+ ]
63
+ })
64
64
  ```
65
65
 
66
66
  ## 组件列表