@touchvue/chat 1.0.0-beta.47 → 1.0.0-beta.48

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 (60) hide show
  1. package/es/package.json.css +1 -1
  2. package/es/package.json.mjs +1 -1
  3. package/es/packages/components/touchchat/component/FileContent.vue2.mjs +6 -1
  4. package/es/packages/components/touchchat/component/FileContent.vue2.mjs.map +1 -1
  5. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs +7 -1
  6. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs.map +1 -1
  7. package/es/packages/components/touchchat/component/VideoFile.vue.mjs +7 -0
  8. package/es/packages/components/touchchat/component/VideoFile.vue.mjs.map +1 -0
  9. package/es/packages/components/touchchat/component/VideoFile.vue2.mjs +33 -0
  10. package/es/packages/components/touchchat/component/VideoFile.vue2.mjs.map +1 -0
  11. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +39 -1
  12. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
  13. package/es/packages/components/touchchat/src/AiChat/Chat/types.mjs.map +1 -1
  14. package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs +7 -4
  15. package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs.map +1 -1
  16. package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs +38 -86
  17. package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs.map +1 -1
  18. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +2 -0
  19. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -1
  20. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +16 -3
  21. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
  22. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +6 -0
  23. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
  24. package/es/packages/components/touchchat/src/index.vue2.mjs +10 -1
  25. package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
  26. package/es/packages/components/touchchat/utils/a2aService.mjs +18 -12
  27. package/es/packages/components/touchchat/utils/a2aService.mjs.map +1 -1
  28. package/lib/package.json.css +1 -1
  29. package/lib/package.json.js +1 -1
  30. package/lib/packages/components/touchchat/component/FileContent.vue2.js +6 -1
  31. package/lib/packages/components/touchchat/component/FileContent.vue2.js.map +1 -1
  32. package/lib/packages/components/touchchat/component/PDFFile.vue2.js +7 -1
  33. package/lib/packages/components/touchchat/component/PDFFile.vue2.js.map +1 -1
  34. package/lib/packages/components/touchchat/component/VideoFile.vue.js +11 -0
  35. package/lib/packages/components/touchchat/component/VideoFile.vue.js.map +1 -0
  36. package/lib/packages/components/touchchat/component/VideoFile.vue2.js +37 -0
  37. package/lib/packages/components/touchchat/component/VideoFile.vue2.js.map +1 -0
  38. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +39 -1
  39. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
  40. package/lib/packages/components/touchchat/src/AiChat/Chat/types.js.map +1 -1
  41. package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js +7 -4
  42. package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js.map +1 -1
  43. package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js +38 -86
  44. package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js.map +1 -1
  45. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +2 -0
  46. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -1
  47. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +15 -2
  48. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
  49. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +6 -0
  50. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
  51. package/lib/packages/components/touchchat/src/index.vue2.js +10 -1
  52. package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
  53. package/lib/packages/components/touchchat/utils/a2aService.js +18 -12
  54. package/lib/packages/components/touchchat/utils/a2aService.js.map +1 -1
  55. package/package.json +1 -1
  56. package/theme/components/index.css +26 -0
  57. package/theme/font/iconfont.woff +0 -0
  58. package/theme/font/iconfont.woff2 +0 -0
  59. package/theme/index.css +26 -0
  60. package/theme/skin/default.css +26 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchvue/chat",
3
- "version": "1.0.0-beta.47",
3
+ "version": "1.0.0-beta.48",
4
4
  "description": "TouchVue Chat Component Library",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -290,6 +290,22 @@
290
290
  opacity: 0;
291
291
  overflow: hidden;
292
292
  }
293
+ .touchchat-ai-may-like {
294
+ margin-top: 0.5em;
295
+ display: flex;
296
+ flex-direction: column;
297
+ gap: 0.4em;
298
+ }
299
+ .touchchat-ai-may-like .touchchat-ai-may-like-item {
300
+ display: inline-block;
301
+ cursor: pointer;
302
+ background-color: #ededed;
303
+ padding: 0.5em 0.8em;
304
+ border-radius: 0.8em;
305
+ }
306
+ .touchchat-ai-may-like .touchchat-ai-may-like-item:hover {
307
+ background-color: #d6d6d6;
308
+ }
293
309
  @keyframes loading {
294
310
  0% {
295
311
  transform: rotate(0deg);
@@ -889,6 +905,8 @@ table.touchchat-table tr:hover {
889
905
  --user-read-content: '\ea42';
890
906
  --user-is-read-content: '\e63c';
891
907
  --quote-close-fill-content: '\e724';
908
+ --ai-may-like-item-icon-content: '\e72c';
909
+ --ai-may-like-item-icon-color: #000;
892
910
  }
893
911
  .touchchat-action-item {
894
912
  position: relative;
@@ -947,6 +965,14 @@ table.touchchat-table tr:hover {
947
965
  .touchchat-action-item.value-close-fill {
948
966
  --action-icon-content: var(--quote-close-fill-content);
949
967
  }
968
+ .touchchat-action-item.value-right-arrow {
969
+ --action-icon-content: var(--ai-may-like-item-icon-content);
970
+ color: var(--ai-may-like-item-icon-color);
971
+ }
972
+ .touchchat-action-item.value-right-arrow:hover {
973
+ background-color: transparent;
974
+ color: var(--ai-may-like-item-icon-color);
975
+ }
950
976
  .touchchat-action-item.value-good.is-on {
951
977
  --action-icon-content: var(--action-good-on-content);
952
978
  color: var(--action-good-on-color);
Binary file
Binary file
package/theme/index.css CHANGED
@@ -293,6 +293,22 @@
293
293
  opacity: 0;
294
294
  overflow: hidden;
295
295
  }
296
+ .touchchat-ai-may-like {
297
+ margin-top: 0.5em;
298
+ display: flex;
299
+ flex-direction: column;
300
+ gap: 0.4em;
301
+ }
302
+ .touchchat-ai-may-like .touchchat-ai-may-like-item {
303
+ display: inline-block;
304
+ cursor: pointer;
305
+ background-color: #ededed;
306
+ padding: 0.5em 0.8em;
307
+ border-radius: 0.8em;
308
+ }
309
+ .touchchat-ai-may-like .touchchat-ai-may-like-item:hover {
310
+ background-color: #d6d6d6;
311
+ }
296
312
  @keyframes loading {
297
313
  0% {
298
314
  transform: rotate(0deg);
@@ -892,6 +908,8 @@ table.touchchat-table tr:hover {
892
908
  --user-read-content: '\ea42';
893
909
  --user-is-read-content: '\e63c';
894
910
  --quote-close-fill-content: '\e724';
911
+ --ai-may-like-item-icon-content: '\e72c';
912
+ --ai-may-like-item-icon-color: #000;
895
913
  }
896
914
  .touchchat-action-item {
897
915
  position: relative;
@@ -950,6 +968,14 @@ table.touchchat-table tr:hover {
950
968
  .touchchat-action-item.value-close-fill {
951
969
  --action-icon-content: var(--quote-close-fill-content);
952
970
  }
971
+ .touchchat-action-item.value-right-arrow {
972
+ --action-icon-content: var(--ai-may-like-item-icon-content);
973
+ color: var(--ai-may-like-item-icon-color);
974
+ }
975
+ .touchchat-action-item.value-right-arrow:hover {
976
+ background-color: transparent;
977
+ color: var(--ai-may-like-item-icon-color);
978
+ }
953
979
  .touchchat-action-item.value-good.is-on {
954
980
  --action-icon-content: var(--action-good-on-content);
955
981
  color: var(--action-good-on-color);
@@ -293,6 +293,22 @@
293
293
  opacity: 0;
294
294
  overflow: hidden;
295
295
  }
296
+ .touchchat-ai-may-like {
297
+ margin-top: 0.5em;
298
+ display: flex;
299
+ flex-direction: column;
300
+ gap: 0.4em;
301
+ }
302
+ .touchchat-ai-may-like .touchchat-ai-may-like-item {
303
+ display: inline-block;
304
+ cursor: pointer;
305
+ background-color: #ededed;
306
+ padding: 0.5em 0.8em;
307
+ border-radius: 0.8em;
308
+ }
309
+ .touchchat-ai-may-like .touchchat-ai-may-like-item:hover {
310
+ background-color: #d6d6d6;
311
+ }
296
312
  @keyframes loading {
297
313
  0% {
298
314
  transform: rotate(0deg);
@@ -892,6 +908,8 @@ table.touchchat-table tr:hover {
892
908
  --user-read-content: '\ea42';
893
909
  --user-is-read-content: '\e63c';
894
910
  --quote-close-fill-content: '\e724';
911
+ --ai-may-like-item-icon-content: '\e72c';
912
+ --ai-may-like-item-icon-color: #000;
895
913
  }
896
914
  .touchchat-action-item {
897
915
  position: relative;
@@ -950,6 +968,14 @@ table.touchchat-table tr:hover {
950
968
  .touchchat-action-item.value-close-fill {
951
969
  --action-icon-content: var(--quote-close-fill-content);
952
970
  }
971
+ .touchchat-action-item.value-right-arrow {
972
+ --action-icon-content: var(--ai-may-like-item-icon-content);
973
+ color: var(--ai-may-like-item-icon-color);
974
+ }
975
+ .touchchat-action-item.value-right-arrow:hover {
976
+ background-color: transparent;
977
+ color: var(--ai-may-like-item-icon-color);
978
+ }
953
979
  .touchchat-action-item.value-good.is-on {
954
980
  --action-icon-content: var(--action-good-on-content);
955
981
  color: var(--action-good-on-color);