@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.
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 +9 -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 +8 -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
@@ -776,6 +776,10 @@
776
776
  flex-direction: column;
777
777
  gap: 1em;
778
778
  }
779
+ .touchchat-dialog-withDraw {
780
+ text-align: center;
781
+ color: #868686;
782
+ }
779
783
  table.touchchat-table {
780
784
  width: 100%;
781
785
  border-collapse: separate;
@@ -868,16 +872,23 @@ table.touchchat-table tr:hover {
868
872
  --action-refresh-content: '\e606';
869
873
  --action-good-content: '\e60a';
870
874
  --action-bad-content: '\e601';
875
+ --action-quote-content: '\e616';
876
+ --action-share-content: '\e615';
877
+ --action-enter-content: '\e673';
871
878
  --action-good-on-content: '\e60e';
872
879
  --action-bad-on-content: '\e60d';
873
880
  --action-good-on-color: red;
874
881
  --action-bad-on-color: red;
882
+ --user-read-on-color: #3bb346;
875
883
  --action-tip-padding: 0.5em 1em;
876
884
  --action-tip-bg: rgba(0, 0, 0, 0.9);
877
885
  --action-tip-color: #fff;
878
886
  --action-tip-lh: 1.3em;
879
887
  --action-tip-radius: 0.25em;
880
888
  --action-tip-arrow-size: 0.4em;
889
+ --user-read-content: '\ea42';
890
+ --user-is-read-content: '\e63c';
891
+ --quote-close-fill-content: '\e724';
881
892
  }
882
893
  .touchchat-action-item {
883
894
  position: relative;
@@ -915,6 +926,27 @@ table.touchchat-table tr:hover {
915
926
  .touchchat-action-item.value-refresh {
916
927
  --action-icon-content: var(--action-refresh-content);
917
928
  }
929
+ .touchchat-action-item.value-quote {
930
+ --action-icon-content: var(--action-quote-content);
931
+ }
932
+ .touchchat-action-item.value-enter {
933
+ --action-icon-content: var(--action-enter-content);
934
+ }
935
+ .touchchat-action-item.value-share {
936
+ --action-icon-content: var(--action-share-content);
937
+ }
938
+ .touchchat-action-item.value-read {
939
+ --action-icon-content: var(--user-read-content);
940
+ --action-item-height: 1em;
941
+ }
942
+ .touchchat-action-item.value-read.is-read {
943
+ --action-icon-content: var(--user-is-read-content);
944
+ color: var(--user-read-on-color);
945
+ --action-item-height: 1em;
946
+ }
947
+ .touchchat-action-item.value-close-fill {
948
+ --action-icon-content: var(--quote-close-fill-content);
949
+ }
918
950
  .touchchat-action-item.value-good.is-on {
919
951
  --action-icon-content: var(--action-good-on-content);
920
952
  color: var(--action-good-on-color);
@@ -1638,6 +1670,10 @@ table.touchchat-table tr:hover {
1638
1670
  border-radius: var(--user-avatar-pic-radius);
1639
1671
  order: 2;
1640
1672
  }
1673
+ .touch-user-wrapper {
1674
+ display: flex;
1675
+ align-items: flex-end;
1676
+ }
1641
1677
  .touchchat-user-bubble {
1642
1678
  flex: 1;
1643
1679
  background: var(--user-bubble-bg);
@@ -1664,6 +1700,9 @@ table.touchchat-table tr:hover {
1664
1700
  font-weight: var(--user-bubble-text-weight);
1665
1701
  font-family: var(--user-bubble-text-family);
1666
1702
  }
1703
+ .touchchat-action-item.value-read.no-hover:hover {
1704
+ background: transparent;
1705
+ }
1667
1706
  .touchchat-user-edit {
1668
1707
  border: var(--user-edit-border);
1669
1708
  overflow: hidden;
@@ -2147,6 +2186,18 @@ table.touchchat-table tr:hover {
2147
2186
  border: 1px solid var(--Border-Border-, #d8dce4);
2148
2187
  background: var(--Neutral-colors-White, #fff);
2149
2188
  }
2189
+ .quote-content {
2190
+ display: flex;
2191
+ align-items: center;
2192
+ gap: 0.75em;
2193
+ }
2194
+ .quote-content-text {
2195
+ border-radius: 0.5em;
2196
+ background: #eaecf0b3;
2197
+ font-size: 1em;
2198
+ padding: 0.625em 0.5em 0.6875em 0.875em;
2199
+ color: #434c59;
2200
+ }
2150
2201
  .image-file {
2151
2202
  --image-file-pd: 0.75em;
2152
2203
  }
Binary file
Binary file
package/theme/index.css CHANGED
@@ -779,6 +779,10 @@
779
779
  flex-direction: column;
780
780
  gap: 1em;
781
781
  }
782
+ .touchchat-dialog-withDraw {
783
+ text-align: center;
784
+ color: #868686;
785
+ }
782
786
  table.touchchat-table {
783
787
  width: 100%;
784
788
  border-collapse: separate;
@@ -871,16 +875,23 @@ table.touchchat-table tr:hover {
871
875
  --action-refresh-content: '\e606';
872
876
  --action-good-content: '\e60a';
873
877
  --action-bad-content: '\e601';
878
+ --action-quote-content: '\e616';
879
+ --action-share-content: '\e615';
880
+ --action-enter-content: '\e673';
874
881
  --action-good-on-content: '\e60e';
875
882
  --action-bad-on-content: '\e60d';
876
883
  --action-good-on-color: red;
877
884
  --action-bad-on-color: red;
885
+ --user-read-on-color: #3bb346;
878
886
  --action-tip-padding: 0.5em 1em;
879
887
  --action-tip-bg: rgba(0, 0, 0, 0.9);
880
888
  --action-tip-color: #fff;
881
889
  --action-tip-lh: 1.3em;
882
890
  --action-tip-radius: 0.25em;
883
891
  --action-tip-arrow-size: 0.4em;
892
+ --user-read-content: '\ea42';
893
+ --user-is-read-content: '\e63c';
894
+ --quote-close-fill-content: '\e724';
884
895
  }
885
896
  .touchchat-action-item {
886
897
  position: relative;
@@ -918,6 +929,27 @@ table.touchchat-table tr:hover {
918
929
  .touchchat-action-item.value-refresh {
919
930
  --action-icon-content: var(--action-refresh-content);
920
931
  }
932
+ .touchchat-action-item.value-quote {
933
+ --action-icon-content: var(--action-quote-content);
934
+ }
935
+ .touchchat-action-item.value-enter {
936
+ --action-icon-content: var(--action-enter-content);
937
+ }
938
+ .touchchat-action-item.value-share {
939
+ --action-icon-content: var(--action-share-content);
940
+ }
941
+ .touchchat-action-item.value-read {
942
+ --action-icon-content: var(--user-read-content);
943
+ --action-item-height: 1em;
944
+ }
945
+ .touchchat-action-item.value-read.is-read {
946
+ --action-icon-content: var(--user-is-read-content);
947
+ color: var(--user-read-on-color);
948
+ --action-item-height: 1em;
949
+ }
950
+ .touchchat-action-item.value-close-fill {
951
+ --action-icon-content: var(--quote-close-fill-content);
952
+ }
921
953
  .touchchat-action-item.value-good.is-on {
922
954
  --action-icon-content: var(--action-good-on-content);
923
955
  color: var(--action-good-on-color);
@@ -1641,6 +1673,10 @@ table.touchchat-table tr:hover {
1641
1673
  border-radius: var(--user-avatar-pic-radius);
1642
1674
  order: 2;
1643
1675
  }
1676
+ .touch-user-wrapper {
1677
+ display: flex;
1678
+ align-items: flex-end;
1679
+ }
1644
1680
  .touchchat-user-bubble {
1645
1681
  flex: 1;
1646
1682
  background: var(--user-bubble-bg);
@@ -1667,6 +1703,9 @@ table.touchchat-table tr:hover {
1667
1703
  font-weight: var(--user-bubble-text-weight);
1668
1704
  font-family: var(--user-bubble-text-family);
1669
1705
  }
1706
+ .touchchat-action-item.value-read.no-hover:hover {
1707
+ background: transparent;
1708
+ }
1670
1709
  .touchchat-user-edit {
1671
1710
  border: var(--user-edit-border);
1672
1711
  overflow: hidden;
@@ -2150,6 +2189,18 @@ table.touchchat-table tr:hover {
2150
2189
  border: 1px solid var(--Border-Border-, #d8dce4);
2151
2190
  background: var(--Neutral-colors-White, #fff);
2152
2191
  }
2192
+ .quote-content {
2193
+ display: flex;
2194
+ align-items: center;
2195
+ gap: 0.75em;
2196
+ }
2197
+ .quote-content-text {
2198
+ border-radius: 0.5em;
2199
+ background: #eaecf0b3;
2200
+ font-size: 1em;
2201
+ padding: 0.625em 0.5em 0.6875em 0.875em;
2202
+ color: #434c59;
2203
+ }
2153
2204
  .image-file {
2154
2205
  --image-file-pd: 0.75em;
2155
2206
  }
@@ -779,6 +779,10 @@
779
779
  flex-direction: column;
780
780
  gap: 1em;
781
781
  }
782
+ .touchchat-dialog-withDraw {
783
+ text-align: center;
784
+ color: #868686;
785
+ }
782
786
  table.touchchat-table {
783
787
  width: 100%;
784
788
  border-collapse: separate;
@@ -871,16 +875,23 @@ table.touchchat-table tr:hover {
871
875
  --action-refresh-content: '\e606';
872
876
  --action-good-content: '\e60a';
873
877
  --action-bad-content: '\e601';
878
+ --action-quote-content: '\e616';
879
+ --action-share-content: '\e615';
880
+ --action-enter-content: '\e673';
874
881
  --action-good-on-content: '\e60e';
875
882
  --action-bad-on-content: '\e60d';
876
883
  --action-good-on-color: red;
877
884
  --action-bad-on-color: red;
885
+ --user-read-on-color: #3bb346;
878
886
  --action-tip-padding: 0.5em 1em;
879
887
  --action-tip-bg: rgba(0, 0, 0, 0.9);
880
888
  --action-tip-color: #fff;
881
889
  --action-tip-lh: 1.3em;
882
890
  --action-tip-radius: 0.25em;
883
891
  --action-tip-arrow-size: 0.4em;
892
+ --user-read-content: '\ea42';
893
+ --user-is-read-content: '\e63c';
894
+ --quote-close-fill-content: '\e724';
884
895
  }
885
896
  .touchchat-action-item {
886
897
  position: relative;
@@ -918,6 +929,27 @@ table.touchchat-table tr:hover {
918
929
  .touchchat-action-item.value-refresh {
919
930
  --action-icon-content: var(--action-refresh-content);
920
931
  }
932
+ .touchchat-action-item.value-quote {
933
+ --action-icon-content: var(--action-quote-content);
934
+ }
935
+ .touchchat-action-item.value-enter {
936
+ --action-icon-content: var(--action-enter-content);
937
+ }
938
+ .touchchat-action-item.value-share {
939
+ --action-icon-content: var(--action-share-content);
940
+ }
941
+ .touchchat-action-item.value-read {
942
+ --action-icon-content: var(--user-read-content);
943
+ --action-item-height: 1em;
944
+ }
945
+ .touchchat-action-item.value-read.is-read {
946
+ --action-icon-content: var(--user-is-read-content);
947
+ color: var(--user-read-on-color);
948
+ --action-item-height: 1em;
949
+ }
950
+ .touchchat-action-item.value-close-fill {
951
+ --action-icon-content: var(--quote-close-fill-content);
952
+ }
921
953
  .touchchat-action-item.value-good.is-on {
922
954
  --action-icon-content: var(--action-good-on-content);
923
955
  color: var(--action-good-on-color);
@@ -1641,6 +1673,10 @@ table.touchchat-table tr:hover {
1641
1673
  border-radius: var(--user-avatar-pic-radius);
1642
1674
  order: 2;
1643
1675
  }
1676
+ .touch-user-wrapper {
1677
+ display: flex;
1678
+ align-items: flex-end;
1679
+ }
1644
1680
  .touchchat-user-bubble {
1645
1681
  flex: 1;
1646
1682
  background: var(--user-bubble-bg);
@@ -1667,6 +1703,9 @@ table.touchchat-table tr:hover {
1667
1703
  font-weight: var(--user-bubble-text-weight);
1668
1704
  font-family: var(--user-bubble-text-family);
1669
1705
  }
1706
+ .touchchat-action-item.value-read.no-hover:hover {
1707
+ background: transparent;
1708
+ }
1670
1709
  .touchchat-user-edit {
1671
1710
  border: var(--user-edit-border);
1672
1711
  overflow: hidden;
@@ -2150,6 +2189,18 @@ table.touchchat-table tr:hover {
2150
2189
  border: 1px solid var(--Border-Border-, #d8dce4);
2151
2190
  background: var(--Neutral-colors-White, #fff);
2152
2191
  }
2192
+ .quote-content {
2193
+ display: flex;
2194
+ align-items: center;
2195
+ gap: 0.75em;
2196
+ }
2197
+ .quote-content-text {
2198
+ border-radius: 0.5em;
2199
+ background: #eaecf0b3;
2200
+ font-size: 1em;
2201
+ padding: 0.625em 0.5em 0.6875em 0.875em;
2202
+ color: #434c59;
2203
+ }
2153
2204
  .image-file {
2154
2205
  --image-file-pd: 0.75em;
2155
2206
  }