@touchvue/chat 1.0.0-beta.4 → 1.0.0-beta.41

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 (899) hide show
  1. package/README.md +70 -70
  2. package/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
  3. package/es/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
  4. package/es/index.mjs.map +1 -1
  5. package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs +1380 -0
  6. package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
  7. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +469 -0
  8. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
  9. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +63 -0
  10. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
  11. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +9 -0
  12. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
  13. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +9 -0
  14. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
  15. package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs +7824 -0
  16. package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs.map +1 -0
  17. package/es/node_modules/.pnpm/{linkify-it@3.0.3 → linkify-it@5.0.0}/node_modules/linkify-it/index.mjs +162 -157
  18. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
  19. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +195 -0
  20. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
  21. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/common/html_blocks.mjs +6 -3
  22. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
  23. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs +26 -0
  24. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
  25. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs +291 -0
  26. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
  27. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs +6 -0
  28. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
  29. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +81 -0
  30. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
  31. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +18 -10
  32. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
  33. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +70 -0
  34. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
  35. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/index.mjs +81 -107
  36. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.mjs.map +1 -0
  37. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs +135 -0
  38. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
  39. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs +63 -0
  40. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
  41. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
  42. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
  43. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/commonmark.mjs +24 -11
  44. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
  45. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/default.mjs +21 -10
  46. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
  47. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/zero.mjs +25 -11
  48. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
  49. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/renderer.mjs +72 -95
  50. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
  51. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/ruler.mjs +37 -50
  52. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
  53. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/blockquote.mjs +48 -121
  54. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
  55. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/code.mjs +13 -12
  56. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
  57. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/fence.mjs +30 -29
  58. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
  59. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs +55 -0
  60. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
  61. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs +44 -0
  62. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
  63. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
  64. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
  65. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/lheading.mjs +33 -29
  66. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
  67. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/list.mjs +92 -123
  68. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
  69. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs +49 -0
  70. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
  71. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs +211 -0
  72. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
  73. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/state_block.mjs +49 -61
  74. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
  75. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs +232 -0
  76. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
  77. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/block.mjs +5 -5
  78. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
  79. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/inline.mjs +6 -6
  80. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
  81. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs +138 -0
  82. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
  83. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/normalize.mjs +8 -7
  84. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
  85. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/replacements.mjs +32 -25
  86. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
  87. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +50 -55
  88. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
  89. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/state_core.mjs +5 -7
  90. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
  91. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs +46 -0
  92. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
  93. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs +75 -0
  94. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
  95. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/backticks.mjs +20 -18
  96. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
  97. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +33 -34
  98. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
  99. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +48 -52
  100. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
  101. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs +55 -0
  102. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
  103. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs +73 -0
  104. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
  105. package/es/node_modules/.pnpm/{markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.mjs → markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs} +17 -9
  106. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
  107. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +54 -0
  108. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
  109. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/image.mjs +31 -43
  110. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
  111. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/link.mjs +34 -41
  112. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
  113. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs +59 -0
  114. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
  115. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/newline.mjs +11 -13
  116. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
  117. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +31 -62
  118. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
  119. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +42 -42
  120. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
  121. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs +89 -0
  122. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
  123. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/token.mjs +22 -29
  124. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.mjs.map +1 -0
  125. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +5 -0
  126. package/es/{_virtual → node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl}/index.mjs.map +1 -1
  127. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/decode.mjs +32 -40
  128. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
  129. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/encode.mjs +22 -29
  130. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
  131. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/format.mjs +5 -5
  132. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
  133. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/parse.mjs +101 -84
  134. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
  135. package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs +443 -0
  136. package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs.map +1 -0
  137. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +4 -0
  138. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
  139. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +4 -0
  140. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
  141. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +4 -0
  142. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
  143. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +4 -0
  144. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
  145. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +4 -0
  146. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
  147. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +7 -0
  148. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
  149. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +4 -0
  150. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
  151. package/es/package.json.css +1 -1
  152. package/es/package.json.mjs +1 -1
  153. package/es/packages/components/index.mjs +1 -1
  154. package/es/packages/components/resolver.mjs.map +1 -1
  155. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue.mjs +3 -2
  156. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue.mjs.map +1 -1
  157. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs +219 -159
  158. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs.map +1 -1
  159. package/es/packages/components/touchchat/component/AiRobot/face.vue.mjs +3 -2
  160. package/es/packages/components/touchchat/component/AiRobot/face.vue.mjs.map +1 -1
  161. package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs +27 -13
  162. package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs.map +1 -1
  163. package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs +3 -2
  164. package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs.map +1 -1
  165. package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs +169 -40
  166. package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs.map +1 -1
  167. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.mjs +3 -2
  168. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.mjs.map +1 -1
  169. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs +15 -10
  170. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs.map +1 -1
  171. package/es/packages/components/touchchat/component/AiRobot/start.vue.mjs +3 -2
  172. package/es/packages/components/touchchat/component/AiRobot/start.vue.mjs.map +1 -1
  173. package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs +18 -11
  174. package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs.map +1 -1
  175. package/es/packages/components/touchchat/component/CardView.vue.mjs +3 -2
  176. package/es/packages/components/touchchat/component/CardView.vue.mjs.map +1 -1
  177. package/es/packages/components/touchchat/component/CardView.vue2.mjs +66 -42
  178. package/es/packages/components/touchchat/component/CardView.vue2.mjs.map +1 -1
  179. package/es/packages/components/touchchat/component/FileContent.vue.mjs +7 -0
  180. package/es/packages/components/touchchat/component/FileContent.vue.mjs.map +1 -0
  181. package/es/packages/components/touchchat/component/FileContent.vue2.mjs +201 -0
  182. package/es/packages/components/touchchat/component/FileContent.vue2.mjs.map +1 -0
  183. package/es/packages/components/touchchat/component/FileView.vue.mjs +3 -2
  184. package/es/packages/components/touchchat/component/FileView.vue.mjs.map +1 -1
  185. package/es/packages/components/touchchat/component/FileView.vue2.mjs +17 -4
  186. package/es/packages/components/touchchat/component/FileView.vue2.mjs.map +1 -1
  187. package/es/packages/components/touchchat/component/HelloChat.vue.mjs +3 -2
  188. package/es/packages/components/touchchat/component/HelloChat.vue.mjs.map +1 -1
  189. package/es/packages/components/touchchat/component/HelloChat.vue2.mjs +26 -14
  190. package/es/packages/components/touchchat/component/HelloChat.vue2.mjs.map +1 -1
  191. package/es/packages/components/touchchat/component/ImageFile.vue.mjs +7 -0
  192. package/es/packages/components/touchchat/component/ImageFile.vue.mjs.map +1 -0
  193. package/es/packages/components/touchchat/component/ImageFile.vue2.mjs +162 -0
  194. package/es/packages/components/touchchat/component/ImageFile.vue2.mjs.map +1 -0
  195. package/es/packages/components/touchchat/component/ImageView.vue.mjs +3 -2
  196. package/es/packages/components/touchchat/component/ImageView.vue.mjs.map +1 -1
  197. package/es/packages/components/touchchat/component/ImageView.vue2.mjs +1 -1
  198. package/es/packages/components/touchchat/component/ImageView.vue2.mjs.map +1 -1
  199. package/es/packages/components/touchchat/component/LinkView.vue.mjs +3 -2
  200. package/es/packages/components/touchchat/component/LinkView.vue.mjs.map +1 -1
  201. package/es/packages/components/touchchat/component/LinkView.vue2.mjs +19 -5
  202. package/es/packages/components/touchchat/component/LinkView.vue2.mjs.map +1 -1
  203. package/es/packages/components/touchchat/component/MarkLayer.vue.mjs +7 -0
  204. package/es/packages/components/touchchat/component/MarkLayer.vue.mjs.map +1 -0
  205. package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs +56 -0
  206. package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs.map +1 -0
  207. package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs +7 -0
  208. package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs.map +1 -0
  209. package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs +121 -0
  210. package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs.map +1 -0
  211. package/es/packages/components/touchchat/component/PDFFile.vue.mjs +7 -0
  212. package/es/packages/components/touchchat/component/PDFFile.vue.mjs.map +1 -0
  213. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs +205 -0
  214. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs.map +1 -0
  215. package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs +7 -0
  216. package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs.map +1 -0
  217. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs +160 -0
  218. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs.map +1 -0
  219. package/es/packages/components/touchchat/component/Screenshot.vue.mjs +7 -0
  220. package/es/packages/components/touchchat/component/Screenshot.vue.mjs.map +1 -0
  221. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs +199 -0
  222. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs.map +1 -0
  223. package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs +7 -0
  224. package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs.map +1 -0
  225. package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs +69 -0
  226. package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs.map +1 -0
  227. package/es/packages/components/touchchat/component/UploadView.vue.mjs +7 -0
  228. package/es/packages/components/touchchat/component/UploadView.vue.mjs.map +1 -0
  229. package/es/packages/components/touchchat/component/UploadView.vue2.mjs +146 -0
  230. package/es/packages/components/touchchat/component/UploadView.vue2.mjs.map +1 -0
  231. package/es/packages/components/touchchat/component/UploadView_api.vue.mjs +7 -0
  232. package/es/packages/components/touchchat/component/UploadView_api.vue.mjs.map +1 -0
  233. package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs +166 -0
  234. package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs.map +1 -0
  235. package/es/packages/components/touchchat/component/VoiceView.vue.mjs +7 -0
  236. package/es/packages/components/touchchat/component/VoiceView.vue.mjs.map +1 -0
  237. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs +165 -0
  238. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs.map +1 -0
  239. package/es/packages/components/touchchat/img/file/doc.png.mjs +4 -0
  240. package/es/packages/components/touchchat/img/file/doc.png.mjs.map +1 -0
  241. package/es/packages/components/touchchat/img/file/docx.png.mjs +4 -0
  242. package/es/packages/components/touchchat/img/file/docx.png.mjs.map +1 -0
  243. package/es/packages/components/touchchat/img/file/gif.png.mjs +4 -0
  244. package/es/packages/components/touchchat/img/file/gif.png.mjs.map +1 -0
  245. package/es/packages/components/touchchat/img/file/html.png.mjs +4 -0
  246. package/es/packages/components/touchchat/img/file/html.png.mjs.map +1 -0
  247. package/es/packages/components/touchchat/img/file/jpg.png.mjs +4 -0
  248. package/es/packages/components/touchchat/img/file/jpg.png.mjs.map +1 -0
  249. package/es/packages/components/touchchat/img/file/mp3.png.mjs +4 -0
  250. package/es/packages/components/touchchat/img/file/mp3.png.mjs.map +1 -0
  251. package/es/packages/components/touchchat/img/file/mp4.png.mjs +4 -0
  252. package/es/packages/components/touchchat/img/file/mp4.png.mjs.map +1 -0
  253. package/es/packages/components/touchchat/img/file/music.png.mjs +4 -0
  254. package/es/packages/components/touchchat/img/file/music.png.mjs.map +1 -0
  255. package/es/packages/components/touchchat/img/file/pdf.png.mjs +4 -0
  256. package/es/packages/components/touchchat/img/file/pdf.png.mjs.map +1 -0
  257. package/es/packages/components/touchchat/img/file/png.png.mjs +4 -0
  258. package/es/packages/components/touchchat/img/file/png.png.mjs.map +1 -0
  259. package/es/packages/components/touchchat/img/file/ppt.png.mjs +4 -0
  260. package/es/packages/components/touchchat/img/file/ppt.png.mjs.map +1 -0
  261. package/es/packages/components/touchchat/img/file/pptx.png.mjs +4 -0
  262. package/es/packages/components/touchchat/img/file/pptx.png.mjs.map +1 -0
  263. package/es/packages/components/touchchat/img/file/txt.png.mjs +4 -0
  264. package/es/packages/components/touchchat/img/file/txt.png.mjs.map +1 -0
  265. package/es/packages/components/touchchat/img/file/xls.png.mjs +4 -0
  266. package/es/packages/components/touchchat/img/file/xls.png.mjs.map +1 -0
  267. package/es/packages/components/touchchat/img/file/xlsx.png.mjs +4 -0
  268. package/es/packages/components/touchchat/img/file/xlsx.png.mjs.map +1 -0
  269. package/es/packages/components/touchchat/img/svg/reset.svg.mjs +4 -0
  270. package/es/packages/components/touchchat/img/svg/reset.svg.mjs.map +1 -0
  271. package/es/packages/components/touchchat/index.mjs +5 -5
  272. package/es/packages/components/touchchat/index.mjs.map +1 -1
  273. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs +7 -0
  274. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs.map +1 -0
  275. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs +59 -0
  276. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs.map +1 -0
  277. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue.mjs +3 -2
  278. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue.mjs.map +1 -1
  279. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +218 -131
  280. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
  281. package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs +18 -0
  282. package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs.map +1 -0
  283. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue.mjs +3 -2
  284. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue.mjs.map +1 -1
  285. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +444 -44
  286. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
  287. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue.mjs +3 -2
  288. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue.mjs.map +1 -1
  289. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs +180 -98
  290. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs.map +1 -1
  291. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue.mjs +3 -2
  292. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue.mjs.map +1 -1
  293. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs +29 -12
  294. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs.map +1 -1
  295. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue.mjs +3 -2
  296. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue.mjs.map +1 -1
  297. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs +134 -61
  298. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs.map +1 -1
  299. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs +3 -2
  300. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs.map +1 -1
  301. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs +14 -8
  302. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs.map +1 -1
  303. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs +7 -0
  304. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs.map +1 -0
  305. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +986 -0
  306. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -0
  307. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue.mjs +3 -2
  308. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue.mjs.map +1 -1
  309. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +753 -384
  310. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
  311. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue.mjs +3 -2
  312. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue.mjs.map +1 -1
  313. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +327 -123
  314. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
  315. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue.mjs +3 -2
  316. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue.mjs.map +1 -1
  317. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs +128 -61
  318. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs.map +1 -1
  319. package/es/packages/components/touchchat/src/index.vue.mjs +3 -2
  320. package/es/packages/components/touchchat/src/index.vue.mjs.map +1 -1
  321. package/es/packages/components/touchchat/src/index.vue2.mjs +207 -128
  322. package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
  323. package/es/packages/components/touchchat/src/types/a2a.mjs +11 -0
  324. package/es/packages/components/touchchat/src/types/a2a.mjs.map +1 -0
  325. package/es/packages/components/touchchat/utils/a2aService.mjs +309 -0
  326. package/es/packages/components/touchchat/utils/a2aService.mjs.map +1 -0
  327. package/es/packages/components/touchchat/utils/fetchStream.mjs +6 -1
  328. package/es/packages/components/touchchat/utils/fetchStream.mjs.map +1 -1
  329. package/es/packages/components/touchchat/utils/markdown.mjs +3 -3
  330. package/es/packages/components/touchchat/utils/markdown.mjs.map +1 -1
  331. package/es/packages/utils/config.mjs.map +1 -1
  332. package/es/packages/utils/types.mjs.map +1 -1
  333. package/global.d.ts +2 -2
  334. package/lib/_virtual/_plugin-vue_export-helper.js +14 -0
  335. package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
  336. package/lib/index.js.map +1 -1
  337. package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js +1384 -0
  338. package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js.map +1 -0
  339. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +477 -0
  340. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
  341. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +66 -0
  342. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
  343. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +13 -0
  344. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
  345. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +13 -0
  346. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
  347. package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js +7828 -0
  348. package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -0
  349. package/lib/node_modules/.pnpm/{linkify-it@3.0.3 → linkify-it@5.0.0}/node_modules/linkify-it/index.js +163 -156
  350. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js.map +1 -0
  351. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +199 -0
  352. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js.map +1 -0
  353. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/common/html_blocks.js +8 -3
  354. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js.map +1 -0
  355. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +29 -0
  356. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js.map +1 -0
  357. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +308 -0
  358. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js.map +1 -0
  359. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +12 -0
  360. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js.map +1 -0
  361. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +85 -0
  362. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +1 -0
  363. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/helpers/parse_link_label.js +20 -10
  364. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +1 -0
  365. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +74 -0
  366. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +1 -0
  367. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/index.js +81 -106
  368. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js.map +1 -0
  369. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/parser_block.js +42 -43
  370. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js.map +1 -0
  371. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/parser_core.js +21 -25
  372. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js.map +1 -0
  373. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/parser_inline.js +69 -67
  374. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js.map +1 -0
  375. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/commonmark.js +26 -11
  376. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js.map +1 -0
  377. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/default.js +23 -10
  378. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js.map +1 -0
  379. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/zero.js +27 -11
  380. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js.map +1 -0
  381. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/renderer.js +79 -100
  382. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js.map +1 -0
  383. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/ruler.js +39 -50
  384. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js.map +1 -0
  385. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/blockquote.js +50 -121
  386. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js.map +1 -0
  387. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/code.js +15 -12
  388. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js.map +1 -0
  389. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/fence.js +32 -29
  390. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js.map +1 -0
  391. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +59 -0
  392. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js.map +1 -0
  393. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +48 -0
  394. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js.map +1 -0
  395. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +77 -0
  396. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js.map +1 -0
  397. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/lheading.js +35 -29
  398. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js.map +1 -0
  399. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/list.js +96 -125
  400. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js.map +1 -0
  401. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +53 -0
  402. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js.map +1 -0
  403. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +215 -0
  404. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js.map +1 -0
  405. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/state_block.js +56 -66
  406. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js.map +1 -0
  407. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +236 -0
  408. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js.map +1 -0
  409. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/block.js +7 -5
  410. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js.map +1 -0
  411. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +18 -0
  412. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js.map +1 -0
  413. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +142 -0
  414. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js.map +1 -0
  415. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/normalize.js +10 -7
  416. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js.map +1 -0
  417. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/replacements.js +34 -25
  418. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js.map +1 -0
  419. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/smartquotes.js +52 -55
  420. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +1 -0
  421. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/state_core.js +7 -7
  422. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js.map +1 -0
  423. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +50 -0
  424. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js.map +1 -0
  425. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +79 -0
  426. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js.map +1 -0
  427. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/backticks.js +22 -18
  428. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js.map +1 -0
  429. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +35 -34
  430. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +1 -0
  431. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/emphasis.js +48 -52
  432. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +1 -0
  433. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +59 -0
  434. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js.map +1 -0
  435. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +77 -0
  436. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js.map +1 -0
  437. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +45 -0
  438. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js.map +1 -0
  439. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +58 -0
  440. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +1 -0
  441. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/image.js +34 -44
  442. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js.map +1 -0
  443. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/link.js +37 -42
  444. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js.map +1 -0
  445. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +63 -0
  446. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js.map +1 -0
  447. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/newline.js +14 -14
  448. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js.map +1 -0
  449. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +129 -0
  450. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +1 -0
  451. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/strikethrough.js +42 -42
  452. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +1 -0
  453. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +93 -0
  454. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js.map +1 -0
  455. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/token.js +24 -29
  456. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js.map +1 -0
  457. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +14 -0
  458. package/lib/{_virtual → node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl}/index.js.map +1 -1
  459. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/decode.js +34 -40
  460. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js.map +1 -0
  461. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/encode.js +23 -28
  462. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js.map +1 -0
  463. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/format.js +7 -5
  464. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js.map +1 -0
  465. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/parse.js +103 -84
  466. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js.map +1 -0
  467. package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +453 -0
  468. package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js.map +1 -0
  469. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +8 -0
  470. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js.map +1 -0
  471. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +8 -0
  472. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js.map +1 -0
  473. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +8 -0
  474. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js.map +1 -0
  475. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +8 -0
  476. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js.map +1 -0
  477. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +8 -0
  478. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js.map +1 -0
  479. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +18 -0
  480. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js.map +1 -0
  481. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +8 -0
  482. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js.map +1 -0
  483. package/lib/package.json.css +1 -1
  484. package/lib/package.json.js +1 -1
  485. package/lib/packages/components/index.js +2 -2
  486. package/lib/packages/components/resolver.js.map +1 -1
  487. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue.js +3 -2
  488. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue.js.map +1 -1
  489. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js +219 -159
  490. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js.map +1 -1
  491. package/lib/packages/components/touchchat/component/AiRobot/face.vue.js +3 -2
  492. package/lib/packages/components/touchchat/component/AiRobot/face.vue.js.map +1 -1
  493. package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js +26 -12
  494. package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js.map +1 -1
  495. package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js +3 -2
  496. package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js.map +1 -1
  497. package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js +168 -39
  498. package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js.map +1 -1
  499. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.js +3 -2
  500. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.js.map +1 -1
  501. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js +15 -10
  502. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js.map +1 -1
  503. package/lib/packages/components/touchchat/component/AiRobot/start.vue.js +3 -2
  504. package/lib/packages/components/touchchat/component/AiRobot/start.vue.js.map +1 -1
  505. package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js +17 -10
  506. package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js.map +1 -1
  507. package/lib/packages/components/touchchat/component/CardView.vue.js +3 -2
  508. package/lib/packages/components/touchchat/component/CardView.vue.js.map +1 -1
  509. package/lib/packages/components/touchchat/component/CardView.vue2.js +66 -42
  510. package/lib/packages/components/touchchat/component/CardView.vue2.js.map +1 -1
  511. package/lib/packages/components/touchchat/component/FileContent.vue.js +11 -0
  512. package/lib/packages/components/touchchat/component/FileContent.vue.js.map +1 -0
  513. package/lib/packages/components/touchchat/component/FileContent.vue2.js +205 -0
  514. package/lib/packages/components/touchchat/component/FileContent.vue2.js.map +1 -0
  515. package/lib/packages/components/touchchat/component/FileView.vue.js +3 -2
  516. package/lib/packages/components/touchchat/component/FileView.vue.js.map +1 -1
  517. package/lib/packages/components/touchchat/component/FileView.vue2.js +16 -3
  518. package/lib/packages/components/touchchat/component/FileView.vue2.js.map +1 -1
  519. package/lib/packages/components/touchchat/component/HelloChat.vue.js +3 -2
  520. package/lib/packages/components/touchchat/component/HelloChat.vue.js.map +1 -1
  521. package/lib/packages/components/touchchat/component/HelloChat.vue2.js +26 -14
  522. package/lib/packages/components/touchchat/component/HelloChat.vue2.js.map +1 -1
  523. package/lib/packages/components/touchchat/component/ImageFile.vue.js +11 -0
  524. package/lib/packages/components/touchchat/component/ImageFile.vue.js.map +1 -0
  525. package/lib/packages/components/touchchat/component/ImageFile.vue2.js +166 -0
  526. package/lib/packages/components/touchchat/component/ImageFile.vue2.js.map +1 -0
  527. package/lib/packages/components/touchchat/component/ImageView.vue.js +3 -2
  528. package/lib/packages/components/touchchat/component/ImageView.vue.js.map +1 -1
  529. package/lib/packages/components/touchchat/component/ImageView.vue2.js +1 -1
  530. package/lib/packages/components/touchchat/component/ImageView.vue2.js.map +1 -1
  531. package/lib/packages/components/touchchat/component/LinkView.vue.js +3 -2
  532. package/lib/packages/components/touchchat/component/LinkView.vue.js.map +1 -1
  533. package/lib/packages/components/touchchat/component/LinkView.vue2.js +18 -4
  534. package/lib/packages/components/touchchat/component/LinkView.vue2.js.map +1 -1
  535. package/lib/packages/components/touchchat/component/MarkLayer.vue.js +11 -0
  536. package/lib/packages/components/touchchat/component/MarkLayer.vue.js.map +1 -0
  537. package/lib/packages/components/touchchat/component/MarkLayer.vue2.js +60 -0
  538. package/lib/packages/components/touchchat/component/MarkLayer.vue2.js.map +1 -0
  539. package/lib/packages/components/touchchat/component/ModuleSelect.vue.js +11 -0
  540. package/lib/packages/components/touchchat/component/ModuleSelect.vue.js.map +1 -0
  541. package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js +125 -0
  542. package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js.map +1 -0
  543. package/lib/packages/components/touchchat/component/PDFFile.vue.js +11 -0
  544. package/lib/packages/components/touchchat/component/PDFFile.vue.js.map +1 -0
  545. package/lib/packages/components/touchchat/component/PDFFile.vue2.js +209 -0
  546. package/lib/packages/components/touchchat/component/PDFFile.vue2.js.map +1 -0
  547. package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js +11 -0
  548. package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js.map +1 -0
  549. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js +164 -0
  550. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js.map +1 -0
  551. package/lib/packages/components/touchchat/component/Screenshot.vue.js +11 -0
  552. package/lib/packages/components/touchchat/component/Screenshot.vue.js.map +1 -0
  553. package/lib/packages/components/touchchat/component/Screenshot.vue2.js +203 -0
  554. package/lib/packages/components/touchchat/component/Screenshot.vue2.js.map +1 -0
  555. package/lib/packages/components/touchchat/component/ThoughtChain.vue.js +11 -0
  556. package/lib/packages/components/touchchat/component/ThoughtChain.vue.js.map +1 -0
  557. package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js +73 -0
  558. package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js.map +1 -0
  559. package/lib/packages/components/touchchat/component/UploadView.vue.js +11 -0
  560. package/lib/packages/components/touchchat/component/UploadView.vue.js.map +1 -0
  561. package/lib/packages/components/touchchat/component/UploadView.vue2.js +150 -0
  562. package/lib/packages/components/touchchat/component/UploadView.vue2.js.map +1 -0
  563. package/lib/packages/components/touchchat/component/UploadView_api.vue.js +11 -0
  564. package/lib/packages/components/touchchat/component/UploadView_api.vue.js.map +1 -0
  565. package/lib/packages/components/touchchat/component/UploadView_api.vue2.js +170 -0
  566. package/lib/packages/components/touchchat/component/UploadView_api.vue2.js.map +1 -0
  567. package/lib/packages/components/touchchat/component/VoiceView.vue.js +11 -0
  568. package/lib/packages/components/touchchat/component/VoiceView.vue.js.map +1 -0
  569. package/lib/packages/components/touchchat/component/VoiceView.vue2.js +169 -0
  570. package/lib/packages/components/touchchat/component/VoiceView.vue2.js.map +1 -0
  571. package/lib/packages/components/touchchat/img/file/doc.png.js +8 -0
  572. package/lib/packages/components/touchchat/img/file/doc.png.js.map +1 -0
  573. package/lib/packages/components/touchchat/img/file/docx.png.js +8 -0
  574. package/lib/packages/components/touchchat/img/file/docx.png.js.map +1 -0
  575. package/lib/packages/components/touchchat/img/file/gif.png.js +8 -0
  576. package/lib/packages/components/touchchat/img/file/gif.png.js.map +1 -0
  577. package/lib/packages/components/touchchat/img/file/html.png.js +8 -0
  578. package/lib/packages/components/touchchat/img/file/html.png.js.map +1 -0
  579. package/lib/packages/components/touchchat/img/file/jpg.png.js +8 -0
  580. package/lib/packages/components/touchchat/img/file/jpg.png.js.map +1 -0
  581. package/lib/packages/components/touchchat/img/file/mp3.png.js +8 -0
  582. package/lib/packages/components/touchchat/img/file/mp3.png.js.map +1 -0
  583. package/lib/packages/components/touchchat/img/file/mp4.png.js +8 -0
  584. package/lib/packages/components/touchchat/img/file/mp4.png.js.map +1 -0
  585. package/lib/packages/components/touchchat/img/file/music.png.js +8 -0
  586. package/lib/packages/components/touchchat/img/file/music.png.js.map +1 -0
  587. package/lib/packages/components/touchchat/img/file/pdf.png.js +8 -0
  588. package/lib/packages/components/touchchat/img/file/pdf.png.js.map +1 -0
  589. package/lib/packages/components/touchchat/img/file/png.png.js +8 -0
  590. package/lib/packages/components/touchchat/img/file/png.png.js.map +1 -0
  591. package/lib/packages/components/touchchat/img/file/ppt.png.js +8 -0
  592. package/lib/packages/components/touchchat/img/file/ppt.png.js.map +1 -0
  593. package/lib/packages/components/touchchat/img/file/pptx.png.js +8 -0
  594. package/lib/packages/components/touchchat/img/file/pptx.png.js.map +1 -0
  595. package/lib/packages/components/touchchat/img/file/txt.png.js +8 -0
  596. package/lib/packages/components/touchchat/img/file/txt.png.js.map +1 -0
  597. package/lib/packages/components/touchchat/img/file/xls.png.js +8 -0
  598. package/lib/packages/components/touchchat/img/file/xls.png.js.map +1 -0
  599. package/lib/packages/components/touchchat/img/file/xlsx.png.js +8 -0
  600. package/lib/packages/components/touchchat/img/file/xlsx.png.js.map +1 -0
  601. package/lib/packages/components/touchchat/img/svg/reset.svg.js +8 -0
  602. package/lib/packages/components/touchchat/img/svg/reset.svg.js.map +1 -0
  603. package/lib/packages/components/touchchat/index.js +6 -6
  604. package/lib/packages/components/touchchat/index.js.map +1 -1
  605. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js +11 -0
  606. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js.map +1 -0
  607. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js +63 -0
  608. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js.map +1 -0
  609. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue.js +3 -2
  610. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue.js.map +1 -1
  611. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +217 -130
  612. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
  613. package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js +21 -0
  614. package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js.map +1 -0
  615. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue.js +3 -2
  616. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue.js.map +1 -1
  617. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +443 -43
  618. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
  619. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue.js +3 -2
  620. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue.js.map +1 -1
  621. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js +179 -97
  622. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js.map +1 -1
  623. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue.js +3 -2
  624. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue.js.map +1 -1
  625. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js +28 -11
  626. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js.map +1 -1
  627. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue.js +3 -2
  628. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue.js.map +1 -1
  629. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js +133 -60
  630. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js.map +1 -1
  631. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js +3 -2
  632. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js.map +1 -1
  633. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js +14 -8
  634. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js.map +1 -1
  635. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js +11 -0
  636. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js.map +1 -0
  637. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +990 -0
  638. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -0
  639. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue.js +3 -2
  640. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue.js.map +1 -1
  641. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +752 -383
  642. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
  643. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue.js +3 -2
  644. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue.js.map +1 -1
  645. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +326 -122
  646. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
  647. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue.js +3 -2
  648. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue.js.map +1 -1
  649. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js +127 -60
  650. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js.map +1 -1
  651. package/lib/packages/components/touchchat/src/index.vue.js +3 -2
  652. package/lib/packages/components/touchchat/src/index.vue.js.map +1 -1
  653. package/lib/packages/components/touchchat/src/index.vue2.js +206 -127
  654. package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
  655. package/lib/packages/components/touchchat/src/types/a2a.js +13 -0
  656. package/lib/packages/components/touchchat/src/types/a2a.js.map +1 -0
  657. package/lib/packages/components/touchchat/utils/a2aService.js +312 -0
  658. package/lib/packages/components/touchchat/utils/a2aService.js.map +1 -0
  659. package/lib/packages/components/touchchat/utils/fetchStream.js +6 -1
  660. package/lib/packages/components/touchchat/utils/fetchStream.js.map +1 -1
  661. package/lib/packages/components/touchchat/utils/markdown.js +2 -2
  662. package/lib/packages/components/touchchat/utils/markdown.js.map +1 -1
  663. package/lib/packages/utils/config.js.map +1 -1
  664. package/lib/packages/utils/types.js.map +1 -1
  665. package/package.json +1 -1
  666. package/theme/components/index.css +867 -50
  667. package/theme/font/iconfont.woff +0 -0
  668. package/theme/font/iconfont.woff2 +0 -0
  669. package/theme/index.css +867 -50
  670. package/theme/skin/default.css +867 -50
  671. package/types/global.d.ts +2 -2
  672. package/es/_virtual/emphasis.mjs +0 -4
  673. package/es/_virtual/emphasis.mjs.map +0 -1
  674. package/es/_virtual/html_re.mjs +0 -4
  675. package/es/_virtual/html_re.mjs.map +0 -1
  676. package/es/_virtual/index.mjs +0 -4
  677. package/es/_virtual/index2.mjs +0 -4
  678. package/es/_virtual/index2.mjs.map +0 -1
  679. package/es/_virtual/index3.mjs +0 -4
  680. package/es/_virtual/index3.mjs.map +0 -1
  681. package/es/_virtual/strikethrough.mjs +0 -4
  682. package/es/_virtual/strikethrough.mjs.map +0 -1
  683. package/es/_virtual/utils.mjs +0 -4
  684. package/es/_virtual/utils.mjs.map +0 -1
  685. package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs +0 -4253
  686. package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs.map +0 -1
  687. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.mjs.map +0 -1
  688. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs +0 -196
  689. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs.map +0 -1
  690. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs +0 -9
  691. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs.map +0 -1
  692. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs +0 -7
  693. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs.map +0 -1
  694. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.mjs.map +0 -1
  695. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs +0 -29
  696. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs.map +0 -1
  697. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs +0 -324
  698. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs.map +0 -1
  699. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  700. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs.map +0 -1
  701. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -83
  702. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +0 -1
  703. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +0 -1
  704. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -56
  705. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +0 -1
  706. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.mjs.map +0 -1
  707. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs +0 -138
  708. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs.map +0 -1
  709. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs +0 -69
  710. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs.map +0 -1
  711. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  712. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs.map +0 -1
  713. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.mjs.map +0 -1
  714. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.mjs.map +0 -1
  715. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.mjs.map +0 -1
  716. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.mjs.map +0 -1
  717. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.mjs.map +0 -1
  718. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +0 -1
  719. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.mjs.map +0 -1
  720. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.mjs.map +0 -1
  721. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -57
  722. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs.map +0 -1
  723. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -47
  724. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs.map +0 -1
  725. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -76
  726. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +0 -1
  727. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +0 -1
  728. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.mjs.map +0 -1
  729. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -50
  730. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +0 -1
  731. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -197
  732. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs.map +0 -1
  733. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +0 -1
  734. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs +0 -223
  735. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs.map +0 -1
  736. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.mjs.map +0 -1
  737. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.mjs.map +0 -1
  738. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -132
  739. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +0 -1
  740. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +0 -1
  741. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +0 -1
  742. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +0 -1
  743. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +0 -1
  744. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -74
  745. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +0 -1
  746. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +0 -1
  747. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +0 -1
  748. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +0 -1
  749. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  750. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +0 -1
  751. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -54
  752. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +0 -1
  753. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -48
  754. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +0 -1
  755. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.mjs.map +0 -1
  756. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.mjs.map +0 -1
  757. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +0 -1
  758. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +0 -1
  759. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +0 -1
  760. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -56
  761. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs.map +0 -1
  762. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.mjs.map +0 -1
  763. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.mjs.map +0 -1
  764. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.mjs.map +0 -1
  765. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.mjs.map +0 -1
  766. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.mjs.map +0 -1
  767. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs +0 -13
  768. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs.map +0 -1
  769. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.mjs.map +0 -1
  770. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs +0 -12
  771. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs.map +0 -1
  772. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs +0 -12
  773. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs.map +0 -1
  774. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs +0 -4
  775. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs.map +0 -1
  776. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs +0 -12
  777. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs.map +0 -1
  778. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs +0 -23
  779. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs.map +0 -1
  780. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs +0 -12
  781. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs.map +0 -1
  782. package/es/packages/components/touchchat/src/AiChat/Scene.vue.mjs +0 -6
  783. package/es/packages/components/touchchat/src/AiChat/Scene.vue.mjs.map +0 -1
  784. package/es/packages/components/touchchat/src/AiChat/Scene.vue2.mjs +0 -42
  785. package/es/packages/components/touchchat/src/AiChat/Scene.vue2.mjs.map +0 -1
  786. package/lib/_virtual/emphasis.js +0 -6
  787. package/lib/_virtual/emphasis.js.map +0 -1
  788. package/lib/_virtual/html_re.js +0 -6
  789. package/lib/_virtual/html_re.js.map +0 -1
  790. package/lib/_virtual/index.js +0 -6
  791. package/lib/_virtual/index2.js +0 -6
  792. package/lib/_virtual/index2.js.map +0 -1
  793. package/lib/_virtual/index3.js +0 -6
  794. package/lib/_virtual/index3.js.map +0 -1
  795. package/lib/_virtual/strikethrough.js +0 -6
  796. package/lib/_virtual/strikethrough.js.map +0 -1
  797. package/lib/_virtual/utils.js +0 -6
  798. package/lib/_virtual/utils.js.map +0 -1
  799. package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js +0 -6380
  800. package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js.map +0 -1
  801. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.js.map +0 -1
  802. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js +0 -198
  803. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js.map +0 -1
  804. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js +0 -13
  805. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js.map +0 -1
  806. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js +0 -9
  807. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js.map +0 -1
  808. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.js.map +0 -1
  809. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js +0 -33
  810. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js.map +0 -1
  811. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js +0 -326
  812. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js.map +0 -1
  813. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js +0 -15
  814. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js.map +0 -1
  815. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -85
  816. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +0 -1
  817. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +0 -1
  818. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -58
  819. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +0 -1
  820. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.js.map +0 -1
  821. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.js.map +0 -1
  822. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.js.map +0 -1
  823. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.js.map +0 -1
  824. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.js.map +0 -1
  825. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.js.map +0 -1
  826. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.js.map +0 -1
  827. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.js.map +0 -1
  828. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.js.map +0 -1
  829. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.js.map +0 -1
  830. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.js.map +0 -1
  831. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.js.map +0 -1
  832. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js +0 -59
  833. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js.map +0 -1
  834. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js +0 -49
  835. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js.map +0 -1
  836. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js +0 -78
  837. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js.map +0 -1
  838. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.js.map +0 -1
  839. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.js.map +0 -1
  840. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -52
  841. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js.map +0 -1
  842. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js +0 -199
  843. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js.map +0 -1
  844. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.js.map +0 -1
  845. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js +0 -225
  846. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js.map +0 -1
  847. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.js.map +0 -1
  848. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js +0 -16
  849. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js.map +0 -1
  850. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js +0 -134
  851. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js.map +0 -1
  852. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.js.map +0 -1
  853. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.js.map +0 -1
  854. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +0 -1
  855. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.js.map +0 -1
  856. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -76
  857. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js.map +0 -1
  858. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.js.map +0 -1
  859. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +0 -1
  860. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +0 -1
  861. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js +0 -53
  862. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js.map +0 -1
  863. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js +0 -56
  864. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js.map +0 -1
  865. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -50
  866. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +0 -1
  867. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.js.map +0 -1
  868. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.js.map +0 -1
  869. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.js.map +0 -1
  870. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -158
  871. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +0 -1
  872. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +0 -1
  873. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js +0 -58
  874. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js.map +0 -1
  875. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js +0 -35
  876. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js.map +0 -1
  877. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.js.map +0 -1
  878. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js.map +0 -1
  879. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js.map +0 -1
  880. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js.map +0 -1
  881. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +0 -17
  882. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js.map +0 -1
  883. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js.map +0 -1
  884. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +0 -14
  885. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js.map +0 -1
  886. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +0 -14
  887. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js.map +0 -1
  888. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +0 -6
  889. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js.map +0 -1
  890. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +0 -14
  891. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js.map +0 -1
  892. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +0 -25
  893. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js.map +0 -1
  894. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +0 -14
  895. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js.map +0 -1
  896. package/lib/packages/components/touchchat/src/AiChat/Scene.vue.js +0 -10
  897. package/lib/packages/components/touchchat/src/AiChat/Scene.vue.js.map +0 -1
  898. package/lib/packages/components/touchchat/src/AiChat/Scene.vue2.js +0 -46
  899. package/lib/packages/components/touchchat/src/AiChat/Scene.vue2.js.map +0 -1
@@ -1,47 +1,50 @@
1
- import { defineComponent, ref, inject, computed, nextTick, watch, openBlock, createElementBlock, createElementVNode, renderSlot, createCommentVNode, normalizeClass, createTextVNode, toDisplayString, Fragment, createVNode, Transition, withCtx, withDirectives, vShow, unref, createBlock, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, ref, inject, computed, onMounted, openBlock, createElementBlock, createCommentVNode, createElementVNode, renderSlot, normalizeClass, createTextVNode, toDisplayString, Fragment, createVNode, Transition, withCtx, withDirectives, vShow, unref, createBlock, resolveDynamicComponent } from 'vue';
2
2
  import _imports_0 from '../../img/aiAvatar.png.mjs';
3
3
  import markdown from '../../utils/markdown.mjs';
4
- import _sfc_main$3 from '../../component/FileView.vue2.mjs';
5
- import _sfc_main$4 from '../../component/ImageView.vue2.mjs';
6
- import _sfc_main$5 from '../../component/LinkView.vue2.mjs';
7
- import _sfc_main$6 from '../../component/CardView.vue2.mjs';
8
- import _sfc_main$2 from './MessageActions.vue2.mjs';
9
- import _sfc_main$7 from '../../component/AiRobot/face.vue2.mjs';
10
- import _sfc_main$8 from '../../component/AiRobot/meterialPrepare.vue2.mjs';
11
- import _sfc_main$1 from '../../component/AiRobot/letter.vue2.mjs';
4
+ import FileView from '../../component/FileView.vue.mjs';
5
+ import ImageView from '../../component/ImageView.vue.mjs';
6
+ import LinkView from '../../component/LinkView.vue.mjs';
7
+ import CardView from '../../component/CardView.vue.mjs';
8
+ import MessageActions from './MessageActions.vue.mjs';
9
+ import Face from '../../component/AiRobot/face.vue.mjs';
10
+ import MeterialPrepare from '../../component/AiRobot/meterialPrepare.vue.mjs';
11
+ import Letter from '../../component/AiRobot/letter.vue.mjs';
12
+ import ThoughtChain from '../../component/ThoughtChain.vue.mjs';
12
13
 
13
14
  var _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  __name: "AiMessage",
15
16
  props: {
16
17
  item: {},
17
- index: {}
18
+ index: {},
19
+ hasRetry: { type: Boolean, default: true }
18
20
  },
19
21
  emits: ["copy", "retry", "like", "dislike", "contentRendered", "completeRendered", "toggle-sidebar"],
20
22
  setup(__props, { emit: __emit }) {
21
23
  const componentMap = {
22
- FileView: _sfc_main$3,
23
- ImageView: _sfc_main$4,
24
- LinkView: _sfc_main$5,
25
- CardView: _sfc_main$6,
26
- Face: _sfc_main$7,
27
- MeterialPrepare: _sfc_main$8
24
+ FileView,
25
+ ImageView,
26
+ LinkView,
27
+ CardView,
28
+ Face,
29
+ MeterialPrepare
28
30
  };
29
31
  const props = __props;
30
32
  const emits = __emit;
31
- const htmlContentRef = ref(null);
32
- const thinkingContentRef = ref(null);
33
- const reasoningContentRef = ref(null);
34
33
  const collapse = ref(true);
35
34
  const isShowAvatar = ref(true);
36
35
  const aiAvatarPath = ref(_imports_0);
37
- const rootMap = inject("rootMap", {});
38
- const isAvatar = inject("isAvatar", true);
36
+ const components = inject("components", {});
37
+ const avatar = inject("avatar", true);
39
38
  const scripts = inject("scripts", []);
39
+ const layout = inject("layout", "side, think, upload, chain");
40
+ const chainAble = layout.includes("chain");
41
+ const showComponent = ref(false);
42
+ const showFn = ref(false);
40
43
  const init = () => {
41
- isShowAvatar.value = isAvatar;
44
+ isShowAvatar.value = avatar;
42
45
  };
43
46
  const componentName = computed(() => {
44
- const slotMap = rootMap;
47
+ const slotMap = components;
45
48
  const newMap = {
46
49
  ...slotMap,
47
50
  ...componentMap
@@ -54,140 +57,224 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
54
57
  const reasoningContentShow = computed(() => {
55
58
  return props.item.reasoningContent;
56
59
  });
60
+ const processedContent = computed(() => {
61
+ var _a;
62
+ return props.item.content ? ((_a = markdown) == null ? void 0 : _a.render(props.item.content, { isReasoning: false })) || "" : "";
63
+ });
64
+ const processedThinkContent = computed(() => {
65
+ var _a;
66
+ return props.item.thinkContent ? ((_a = markdown) == null ? void 0 : _a.render(props.item.thinkContent, { isReasoning: true })) || "" : "";
67
+ });
68
+ const processedReasoningContent = computed(() => {
69
+ var _a;
70
+ return props.item.reasoningContent ? ((_a = markdown) == null ? void 0 : _a.render(props.item.reasoningContent, { isReasoning: true })) || "" : "";
71
+ });
57
72
  const contentShow = computed(() => {
58
73
  return props.item.content;
59
74
  });
60
75
  const toggleSidebarClick = (item, index) => {
61
76
  emits("toggle-sidebar", item, index);
62
77
  };
63
- nextTick(() => {
64
- renderContent();
78
+ onMounted(() => {
79
+ init();
65
80
  });
66
- watch(
67
- () => [props.item.content, props.item.thinkContent, props.item.reasoningContent],
68
- () => {
69
- nextTick(() => renderContent());
70
- },
71
- { deep: true }
72
- );
73
- const renderContent = () => {
74
- var _a, _b, _c;
75
- if (htmlContentRef.value) {
76
- htmlContentRef.value.innerHTML = props.item.content ? markdown && ((_a = markdown) == null ? void 0 : _a.render(props.item.content, { isReasoning: false })) || "" : "";
77
- emits("contentRendered", htmlContentRef.value);
78
- }
79
- if (thinkingContentRef.value) {
80
- thinkingContentRef.value.innerHTML = props.item.thinkContent ? markdown && ((_b = markdown) == null ? void 0 : _b.render(props.item.thinkContent, { isReasoning: true })) || "" : "";
81
- emits("contentRendered", thinkingContentRef.value);
82
- }
83
- if (reasoningContentRef.value) {
84
- reasoningContentRef.value.innerHTML = props.item.reasoningContent ? markdown && ((_c = markdown) == null ? void 0 : _c.render(props.item.reasoningContent, { isReasoning: true })) || "" : "";
85
- emits("contentRendered", reasoningContentRef.value);
81
+ const completeCompentent = () => {
82
+ var _a;
83
+ emits("completeRendered", ((_a = props.item) == null ? void 0 : _a.chatId) || "");
84
+ showFn.value = true;
85
+ };
86
+ const completeLetter = () => {
87
+ var _a;
88
+ showComponent.value = true;
89
+ if (!props.item.componentName) {
90
+ emits("completeRendered", ((_a = props.item) == null ? void 0 : _a.chatId) || "");
91
+ showFn.value = true;
86
92
  }
87
- init();
88
93
  };
89
- const complete = () => {
90
- emits("completeRendered");
94
+ const startCompentent = () => {
95
+ console.log("startCompentent");
96
+ };
97
+ const startLetter = () => {
98
+ showComponent.value = false;
99
+ showFn.value = false;
91
100
  };
92
101
  const onCopy = () => emits("copy", props.index);
93
102
  const onRetry = () => emits("retry", props.index);
94
103
  const onLike = () => emits("like", props.index);
95
104
  const onDislike = () => emits("dislike", props.index);
96
105
  return (_ctx, _cache) => {
97
- return openBlock(), createElementBlock("div", { class: "touchchat-ai" }, [
106
+ return openBlock(), createElementBlock("div", {
107
+ class: "touchchat-ai touchchat-item",
108
+ "data-chat-id": __props.item.chatId
109
+ }, [
110
+ createCommentVNode(" \u5934\u50CF\u533A\u57DF "),
98
111
  createElementVNode("div", { class: "touchchat-ai-avatar" }, [
99
112
  renderSlot(_ctx.$slots, "aiAvatar", {}, () => [
100
113
  isShowAvatar.value ? (openBlock(), createElementBlock("img", {
101
114
  key: 0,
102
115
  src: aiAvatarPath.value,
103
116
  class: "touchchat-ai-avatar-pic"
104
- }, null, 8, ["src"])) : createCommentVNode("", true)
117
+ }, null, 8, ["src"])) : createCommentVNode("v-if", true)
105
118
  ])
106
119
  ]),
107
- createElementVNode("div", {
108
- class: normalizeClass(["touchchat-ai-content", { "is-full": !_ctx.item.isChating && _ctx.item.componentName }])
109
- }, [
110
- createElementVNode("div", { class: "touchchat-ai-bubble" }, [
111
- thinkContentShow.value ? (openBlock(), createElementBlock("div", {
112
- key: 0,
113
- ref: (el) => thinkingContentRef.value = el,
114
- class: "touchchat-ai-think"
115
- }, null, 512)) : createCommentVNode("", true),
116
- reasoningContentShow.value ? (openBlock(), createElementBlock("div", {
117
- key: 1,
118
- class: "touchchat-ai-think"
119
- }, [
120
- createElementVNode("div", { class: "touchchat-ai-think-header" }, [
121
- createElementVNode("div", { class: "touchchat-ai-think-state" }, [
122
- createTextVNode(toDisplayString(_ctx.item.thinkStatus === "thinking" ? "\u6DF1\u5EA6\u601D\u8003\u4E2D..." : _ctx.item.thinkStatus === "completed" ? "\u5DF2\u6DF1\u5EA6\u601D\u8003" : "\u601D\u8003\u5DF2\u505C\u6B62") + " ", 1),
123
- _ctx.item.thinkStatus === "completed" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
124
- createTextVNode("\uFF08\u7528\u65F6" + toDisplayString((_ctx.item.thinkTime || 0) / 1e3) + "\u79D2\uFF09", 1)
125
- ], 64)) : createCommentVNode("", true)
120
+ createCommentVNode(" \u5185\u5BB9\u533A\u57DF "),
121
+ createElementVNode(
122
+ "div",
123
+ {
124
+ class: normalizeClass(["touchchat-ai-content", { "is-full": !__props.item.isChating && __props.item.componentName }])
125
+ },
126
+ [
127
+ createCommentVNode(" \u6C14\u6CE1 "),
128
+ createElementVNode("div", { class: "touchchat-ai-bubble" }, [
129
+ createCommentVNode(" \u601D\u8003\u5185\u5BB9 "),
130
+ thinkContentShow.value ? (openBlock(), createElementBlock("div", {
131
+ key: 0,
132
+ class: "touchchat-ai-think",
133
+ innerHTML: processedThinkContent.value
134
+ }, null, 8, ["innerHTML"])) : createCommentVNode("v-if", true),
135
+ createCommentVNode(" \u63A8\u7406\u5185\u5BB9 "),
136
+ reasoningContentShow.value ? (openBlock(), createElementBlock("div", {
137
+ key: 1,
138
+ class: "touchchat-ai-think"
139
+ }, [
140
+ createElementVNode("div", { class: "touchchat-ai-think-header" }, [
141
+ createElementVNode("div", { class: "touchchat-ai-think-state" }, [
142
+ createTextVNode(
143
+ toDisplayString(__props.item.thinkStatus === "thinking" ? "\u6DF1\u5EA6\u601D\u8003\u4E2D..." : __props.item.thinkStatus === "completed" ? "\u5DF2\u6DF1\u5EA6\u601D\u8003" : "\u601D\u8003\u5DF2\u505C\u6B62") + " ",
144
+ 1
145
+ /* TEXT */
146
+ ),
147
+ __props.item.thinkStatus === "completed" ? (openBlock(), createElementBlock(
148
+ Fragment,
149
+ { key: 0 },
150
+ [
151
+ createTextVNode(
152
+ "\uFF08\u7528\u65F6" + toDisplayString((__props.item.thinkTime || 0) / 1e3) + "\u79D2\uFF09",
153
+ 1
154
+ /* TEXT */
155
+ )
156
+ ],
157
+ 64
158
+ /* STABLE_FRAGMENT */
159
+ )) : createCommentVNode("v-if", true)
160
+ ]),
161
+ createElementVNode("div", {
162
+ class: normalizeClass(["touchchat-ai-think-toggle", collapse.value ? "" : "is-expand"]),
163
+ onClick: ($event) => collapse.value = !collapse.value
164
+ }, [
165
+ createElementVNode("span", { class: "touchchat-ai-think-toggle-icon" })
166
+ ], 10, ["onClick"])
126
167
  ]),
127
- createElementVNode("div", {
128
- class: normalizeClass(["touchchat-ai-think-toggle", collapse.value ? "" : "is-expand"]),
129
- onClick: ($event) => collapse.value = !collapse.value
130
- }, [
131
- createElementVNode("span", { class: "touchchat-ai-think-toggle-icon" })
132
- ], 10, ["onClick"])
168
+ createVNode(Transition, {
169
+ name: "touchchat-ai-think-collpase",
170
+ persisted: ""
171
+ }, {
172
+ default: withCtx(() => [
173
+ withDirectives(createElementVNode("div", {
174
+ class: "touchchat-ai-think-content",
175
+ innerHTML: processedReasoningContent.value
176
+ }, null, 8, ["innerHTML"]), [
177
+ [vShow, collapse.value && !unref(chainAble)]
178
+ ])
179
+ ]),
180
+ _: 1
181
+ /* STABLE */
182
+ }),
183
+ createVNode(Transition, {
184
+ name: "touchchat-ai-think-collpase",
185
+ persisted: ""
186
+ }, {
187
+ default: withCtx(() => [
188
+ withDirectives(createVNode(
189
+ ThoughtChain,
190
+ null,
191
+ null,
192
+ 512
193
+ /* NEED_PATCH */
194
+ ), [
195
+ [vShow, collapse.value && unref(chainAble)]
196
+ ])
197
+ ]),
198
+ _: 1
199
+ /* STABLE */
200
+ })
201
+ ])) : createCommentVNode("v-if", true),
202
+ createCommentVNode(" \u4E3B\u5185\u5BB9 "),
203
+ renderSlot(_ctx.$slots, "aimsg", {
204
+ item: __props.item,
205
+ index: __props.index
206
+ }, () => [
207
+ contentShow.value && unref(scripts) && unref(scripts).length === 0 ? (openBlock(), createElementBlock("div", {
208
+ key: 0,
209
+ class: "touchchat-ai-bubble-text touchchat-markdown",
210
+ innerHTML: processedContent.value
211
+ }, null, 8, ["innerHTML"])) : createCommentVNode("v-if", true)
133
212
  ]),
134
- createVNode(Transition, { name: "touchchat-ai-think-collpase" }, {
135
- default: withCtx(() => [
136
- withDirectives(createElementVNode("div", {
137
- ref: (el) => reasoningContentRef.value = el,
138
- class: "touchchat-ai-think-content"
139
- }, null, 512), [
140
- [vShow, collapse.value]
141
- ])
142
- ]),
143
- _: 1
144
- })
145
- ])) : createCommentVNode("", true),
146
- contentShow.value && unref(scripts) && unref(scripts).length === 0 ? (openBlock(), createElementBlock("div", {
147
- key: 2,
148
- ref: (el) => htmlContentRef.value = el,
149
- class: "touchchat-ai-bubble-text touchchat-markdown"
150
- }, null, 512)) : createCommentVNode("", true),
151
- unref(scripts) && unref(scripts).length > 0 && !_ctx.item.componentName ? (openBlock(), createBlock(_sfc_main$1, {
152
- key: 3,
153
- data: _ctx.item.content,
154
- onComplete: complete
155
- }, null, 8, ["data"])) : createCommentVNode("", true),
156
- !_ctx.item.isChating ? renderSlot(_ctx.$slots, "aiMessageContent", {
157
- key: 4,
158
- item: _ctx.item,
159
- index: _ctx.index
213
+ createCommentVNode(" && !item.componentName "),
214
+ createCommentVNode(" <span>letter111{{item}}</span> "),
215
+ unref(scripts) && unref(scripts).length > 0 ? (openBlock(), createBlock(Letter, {
216
+ key: 2,
217
+ "auto-start": "",
218
+ data: __props.item.content,
219
+ onStart: startLetter,
220
+ onComplete: completeLetter
221
+ }, null, 8, ["data"])) : createCommentVNode("v-if", true),
222
+ createCommentVNode(" <span>letter222</span> "),
223
+ unref(scripts).length > 0 && (showComponent.value || !__props.item.content) || !unref(scripts).length && !__props.item.isChating ? renderSlot(_ctx.$slots, "msg", {
224
+ key: 3,
225
+ item: __props.item,
226
+ index: __props.index
227
+ }, () => [
228
+ (openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
229
+ index: __props.index,
230
+ item: __props.item,
231
+ onStart: startCompentent,
232
+ onComplete: completeCompentent,
233
+ onToggleSidebar: toggleSidebarClick
234
+ }, null, 40, ["index", "item"]))
235
+ ]) : createCommentVNode("v-if", true),
236
+ createCommentVNode(" \u65B0\u589E\u52A0\u8F7D\u72B6\u6001\u533A\u57DF "),
237
+ __props.item.isChating ? (openBlock(), createElementBlock("div", {
238
+ key: 4,
239
+ class: "touchchat-ai-loading"
240
+ }, [
241
+ createElementVNode("div", { class: "touchchat-ai-loading-icon" }),
242
+ createElementVNode("span", { class: "touchchat-ai-loading-text" }, "\u52A0\u8F7D\u4E2D...")
243
+ ])) : createCommentVNode("v-if", true)
244
+ ]),
245
+ renderSlot(_ctx.$slots, "fn", {
246
+ item: __props.item,
247
+ index: __props.index
160
248
  }, () => [
161
- (openBlock(), createBlock(resolveDynamicComponent(componentName.value), {
162
- index: _ctx.index,
163
- item: _ctx.item,
164
- onComplete: complete,
165
- onToggleSidebar: toggleSidebarClick
166
- }, null, 40, ["index", "item"]))
167
- ]) : createCommentVNode("", true),
168
- _ctx.item.isChating ? (openBlock(), createElementBlock("div", {
169
- key: 5,
170
- class: "touchchat-ai-loading"
171
- }, [
172
- createElementVNode("div", { class: "touchchat-ai-loading-icon" }),
173
- createElementVNode("span", { class: "touchchat-ai-loading-text" }, "\u52A0\u8F7D\u4E2D...")
174
- ])) : createCommentVNode("", true)
175
- ]),
176
- withDirectives(createVNode(_sfc_main$2, {
177
- "message-type": "ai",
178
- index: _ctx.index,
179
- "is-show-like": _ctx.item.isShowLike,
180
- "is-liked": _ctx.item.isLiked,
181
- "is-disliked": _ctx.item.isDisliked,
182
- onCopy,
183
- onRetry,
184
- onLike,
185
- onDislike
186
- }, null, 8, ["index", "is-show-like", "is-liked", "is-disliked"]), [
187
- [vShow, !_ctx.item.isChating && !unref(scripts).length]
188
- ])
189
- ], 2)
190
- ]);
249
+ withDirectives(createVNode(MessageActions, {
250
+ item: __props.item,
251
+ "message-type": "ai",
252
+ index: __props.index,
253
+ "has-retry": __props.hasRetry,
254
+ "show-copy": true,
255
+ onCopy,
256
+ onRetry,
257
+ onLike,
258
+ onDislike
259
+ }, {
260
+ extendsFn: withCtx(() => [
261
+ renderSlot(_ctx.$slots, "extendsFn", {
262
+ item: __props.item,
263
+ index: __props.index
264
+ })
265
+ ]),
266
+ _: 3
267
+ /* FORWARDED */
268
+ }, 8, ["item", "index", "has-retry"]), [
269
+ [vShow, showFn.value && unref(scripts).length > 0 || !unref(scripts).length && !__props.item.isChating]
270
+ ])
271
+ ]),
272
+ createCommentVNode(" && !scripts.length ")
273
+ ],
274
+ 2
275
+ /* CLASS */
276
+ )
277
+ ], 8, ["data-chat-id"]);
191
278
  };
192
279
  }
193
280
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AiMessage.vue2.mjs","sources":["../../../../../../../packages/components/touchchat/src/AiChat/AiMessage.vue"],"sourcesContent":["<template>\n\t<div class=\"touchchat-ai\">\n\t\t<!-- 头像区域 -->\n\t\t<div class=\"touchchat-ai-avatar\">\n\t\t\t<slot name=\"aiAvatar\">\n\t\t\t\t<img v-if=\"isShowAvatar\" :src=\"aiAvatarPath\" class=\"touchchat-ai-avatar-pic\" />\n\t\t\t</slot>\n\t\t</div>\n\n\t\t<!-- 内容区域 -->\n\t\t<div class=\"touchchat-ai-content\" :class=\"{ 'is-full': !item.isChating && item.componentName }\">\n\t\t\t<!-- 气泡 -->\n\t\t\t<div class=\"touchchat-ai-bubble\">\n\t\t\t\t<!-- 思考内容 -->\n\t\t\t\t<div v-if=\"thinkContentShow\" :ref=\"el => (thinkingContentRef = el as HTMLElement)\" class=\"touchchat-ai-think\"></div>\n\n\t\t\t\t<!-- 推理内容 -->\n\t\t\t\t<div v-if=\"reasoningContentShow\" class=\"touchchat-ai-think\">\n\t\t\t\t\t<div class=\"touchchat-ai-think-header\">\n\t\t\t\t\t\t<div class=\"touchchat-ai-think-state\">\n\t\t\t\t\t\t\t{{ item.thinkStatus === 'thinking' ? '深度思考中...' : item.thinkStatus === 'completed' ? '已深度思考' : '思考已停止' }}\n\t\t\t\t\t\t\t<template v-if=\"item.thinkStatus === 'completed'\">(用时{{ (item.thinkTime || 0) / 1000 }}秒)</template>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"touchchat-ai-think-toggle\" :class=\"collapse ? '' : 'is-expand'\" @click=\"collapse = !collapse\">\n\t\t\t\t\t\t\t<span class=\"touchchat-ai-think-toggle-icon\"></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<transition name=\"touchchat-ai-think-collpase\">\n\t\t\t\t\t\t<div v-show=\"collapse\" :ref=\"el => (reasoningContentRef = el as HTMLElement)\" class=\"touchchat-ai-think-content\"></div>\n\t\t\t\t\t</transition>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- 主内容 -->\n\t\t\t\t<div v-if=\"contentShow && scripts && scripts.length === 0\" :ref=\"el => (htmlContentRef = el as HTMLElement)\" class=\"touchchat-ai-bubble-text touchchat-markdown\"></div>\n\n\t\t\t\t<letter v-if=\"scripts && scripts.length > 0 && !item.componentName\" :data=\"item.content\" @complete=\"complete\"></letter>\n\n\t\t\t\t<slot v-if=\"!item.isChating\" name=\"aiMessageContent\" :item=\"item\" :index=\"index\">\n\t\t\t\t\t<component :is=\"componentName\" :index=\"index\" :item=\"item\" @complete=\"complete\" @toggle-sidebar=\"toggleSidebarClick\"></component>\n\t\t\t\t</slot>\n\n\t\t\t\t<!-- 新增加载状态区域 -->\n\t\t\t\t<div v-if=\"item.isChating\" class=\"touchchat-ai-loading\">\n\t\t\t\t\t<div class=\"touchchat-ai-loading-icon\"></div>\n\t\t\t\t\t<span class=\"touchchat-ai-loading-text\">加载中...</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<MessageActions v-show=\"!item.isChating && !scripts.length\" message-type=\"ai\" :index=\"index\" :is-show-like=\"item.isShowLike\" :is-liked=\"item.isLiked\" :is-disliked=\"item.isDisliked\" @copy=\"onCopy\" @retry=\"onRetry\" @like=\"onLike\" @dislike=\"onDislike\" />\n\t\t</div>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n// useSlots, Comment,\nimport { ref, nextTick, watch, computed, inject } from 'vue'\nimport type { ChatMessage } from './TouchChat.vue'\nimport aiAvatarBase from '../../img/aiAvatar.png'\nimport markdown from '../../utils/markdown.ts'\nimport FileView from '../../component/FileView.vue'\nimport ImageView from '../../component/ImageView.vue'\nimport LinkView from '../../component/LinkView.vue'\nimport CardView from '../../component/CardView.vue'\nimport MessageActions from './MessageActions.vue'\nimport Face from '../../component/AiRobot/face.vue'\nimport MeterialPrepare from '../../component/AiRobot/meterialPrepare.vue'\nimport Letter from '../../component/AiRobot/letter.vue'\n\n// 为组件映射表定义接口\ninterface ComponentMap {\n\t[key: string]: any // 允许任何字符串键\n\tFileView: typeof FileView\n\tImageView: typeof ImageView\n\tLinkView: typeof LinkView\n\tCardView: typeof CardView\n}\n\n// 创建组件映射表\nconst componentMap: ComponentMap = {\n\tFileView,\n\tImageView,\n\tLinkView,\n\tCardView,\n\tFace,\n\tMeterialPrepare\n}\n\nconst props = withDefaults(\n\tdefineProps<{\n\t\titem: ChatMessage\n\t\tindex: number\n\t}>(),\n\t{}\n)\n\nconst emits = defineEmits<{\n\t(e: 'copy', index: number): void\n\t(e: 'retry', index: number): void\n\t(e: 'like', index: number): void\n\t(e: 'dislike', index: number): void\n\t(e: 'contentRendered', element: HTMLElement): void\n\t(e: 'completeRendered'): void\n\t(e: 'toggle-sidebar', item: any, index: number): void\n}>()\n\nconst htmlContentRef = ref<HTMLElement | null>(null)\nconst thinkingContentRef = ref<HTMLElement | null>(null)\nconst reasoningContentRef = ref<HTMLElement | null>(null)\nconst collapse = ref(true)\nconst isShowAvatar = ref(true)\nconst aiAvatarPath = ref(aiAvatarBase)\nconst rootMap = inject<Record<string, any>>('rootMap', {}) // 指定类型并提供默认值 {}\nconst isAvatar = inject<boolean>('isAvatar', true)\nconst scripts = inject<any[]>('scripts', [])\n\nconst init = () => {\n\tisShowAvatar.value = isAvatar\n}\n\nconst componentName = computed(() => {\n\tconst slotMap = rootMap\n\n\t// 明确newMap的类型,允许字符串索引\n\tconst newMap: Record<string, any> = {\n\t\t...slotMap,\n\t\t...componentMap\n\t}\n\n\treturn newMap[props.item.componentName as string] || null\n})\n\nconst thinkContentShow = computed(() => {\n\treturn props.item.thinkContent\n\t// && !props.item.componentName;\n})\n\nconst reasoningContentShow = computed(() => {\n\treturn props.item.reasoningContent\n})\n\nconst contentShow = computed(() => {\n\treturn props.item.content\n})\n\nconst toggleSidebarClick = (item: ChatMessage, index: number) => {\n\temits('toggle-sidebar', item, index)\n}\n\n// 初始化渲染\nnextTick(() => {\n\trenderContent()\n})\n\n// 添加数据变化监听\nwatch(\n\t() => [props.item.content, props.item.thinkContent, props.item.reasoningContent],\n\t() => {\n\t\tnextTick(() => renderContent())\n\t},\n\t{ deep: true }\n)\n\nconst renderContent = () => {\n\tif (htmlContentRef.value) {\n\t\thtmlContentRef.value.innerHTML = props.item.content ? (markdown && markdown?.render(props.item.content, { isReasoning: false })) || '' : ''\n\t\temits('contentRendered', htmlContentRef.value)\n\t}\n\tif (thinkingContentRef.value) {\n\t\tthinkingContentRef.value.innerHTML = props.item.thinkContent ? (markdown && markdown?.render(props.item.thinkContent, { isReasoning: true })) || '' : ''\n\t\temits('contentRendered', thinkingContentRef.value)\n\t}\n\tif (reasoningContentRef.value) {\n\t\treasoningContentRef.value.innerHTML = props.item.reasoningContent ? (markdown && markdown?.render(props.item.reasoningContent, { isReasoning: true })) || '' : ''\n\t\temits('contentRendered', reasoningContentRef.value)\n\t}\n\tinit()\n}\n\nconst complete = () => {\n\temits('completeRendered')\n}\n\nconst onCopy = () => emits('copy', props.index)\nconst onRetry = () => emits('retry', props.index)\nconst onLike = () => emits('like', props.index)\nconst onDislike = () => emits('dislike', props.index)\n</script>\n<!-- <style lang=\"less\" scoped>\n@import '../../style/ChatView.less';\n@import '../../style/AiMessage.less';\n</style> -->\n"],"names":["FileView","ImageView","LinkView","CardView","Face","MeterialPrepare","aiAvatarBase","_createElementBlock","_createElementVNode","_renderSlot","_normalizeClass","item","_Fragment","_createTextVNode","_createVNode","_Transition","_unref","_createBlock","Letter","index","_openBlock","_resolveDynamicComponent","MessageActions"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6EA,IAAA,MAAM,YAA6B,GAAA;A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.vue"],"sourcesContent":["<template>\n\t<div class=\"touchchat-ai touchchat-item\" :data-chat-id=\"item.chatId\">\n\t\t<!-- 头像区域 -->\n\t\t<div class=\"touchchat-ai-avatar\">\n\t\t\t<slot name=\"aiAvatar\">\n\t\t\t\t<img v-if=\"isShowAvatar\" :src=\"aiAvatarPath\" class=\"touchchat-ai-avatar-pic\" />\n\t\t\t</slot>\n\t\t</div>\n\n\t\t<!-- 内容区域 -->\n\t\t<div class=\"touchchat-ai-content\" :class=\"{ 'is-full': !item.isChating && item.componentName }\">\n\t\t\t<!-- 气泡 -->\n\t\t\t<div class=\"touchchat-ai-bubble\">\n\t\t\t\t<!-- 思考内容 -->\n\t\t\t\t<div v-if=\"thinkContentShow\" class=\"touchchat-ai-think\" v-html=\"processedThinkContent\"></div>\n\n\t\t\t\t<!-- 推理内容 -->\n\t\t\t\t<div v-if=\"reasoningContentShow\" class=\"touchchat-ai-think\">\n\t\t\t\t\t<div class=\"touchchat-ai-think-header\">\n\t\t\t\t\t\t<div class=\"touchchat-ai-think-state\">\n\t\t\t\t\t\t\t{{ item.thinkStatus === 'thinking' ? '深度思考中...' : item.thinkStatus === 'completed' ? '已深度思考' : '思考已停止' }}\n\t\t\t\t\t\t\t<template v-if=\"item.thinkStatus === 'completed'\">(用时{{ (item.thinkTime || 0) / 1000 }}秒)</template>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"touchchat-ai-think-toggle\" :class=\"collapse ? '' : 'is-expand'\" @click=\"collapse = !collapse\">\n\t\t\t\t\t\t\t<span class=\"touchchat-ai-think-toggle-icon\"></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<transition name=\"touchchat-ai-think-collpase\">\n\t\t\t\t\t\t<div v-show=\"collapse && !chainAble\" class=\"touchchat-ai-think-content\" v-html=\"processedReasoningContent\"></div>\n\t\t\t\t\t</transition>\n\t\t\t\t\t<transition name=\"touchchat-ai-think-collpase\">\n\t\t\t\t\t\t<thought-chain v-show=\"collapse && chainAble\"></thought-chain>\n\t\t\t\t\t</transition>\n\t\t\t\t</div>\n\n\t\t\t\t<!-- 主内容 -->\n\t\t\t\t<slot name=\"aimsg\" :item=\"item\" :index=\"index\">\n\t\t\t\t\t<div v-if=\"contentShow && scripts && scripts.length === 0\" class=\"touchchat-ai-bubble-text touchchat-markdown\" v-html=\"processedContent\"></div>\n\t\t\t\t</slot>\n\n\t\t\t\t<!-- && !item.componentName -->\n\t\t\t\t<!-- <span>letter111{{item}}</span> -->\n\t\t\t\t<letter v-if=\"scripts && scripts.length > 0\" auto-start :data=\"item.content\" @start=\"startLetter\" @complete=\"completeLetter\"> </letter>\n\t\t\t\t<!-- <span>letter222</span> -->\n\n\t\t\t\t<slot v-if=\"(scripts.length > 0 && (showComponent || !item.content)) || (!scripts.length && !item.isChating)\" name=\"msg\" :item=\"item\" :index=\"index\">\n\t\t\t\t\t<component :is=\"componentName\" :index=\"index\" :item=\"item\" @start=\"startCompentent\" @complete=\"completeCompentent\" @toggle-sidebar=\"toggleSidebarClick\"></component>\n\t\t\t\t</slot>\n\n\t\t\t\t<!-- 新增加载状态区域 -->\n\t\t\t\t<div v-if=\"item.isChating\" class=\"touchchat-ai-loading\">\n\t\t\t\t\t<div class=\"touchchat-ai-loading-icon\"></div>\n\t\t\t\t\t<span class=\"touchchat-ai-loading-text\">加载中...</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<slot name=\"fn\" :item=\"item\" :index=\"index\">\n\t\t\t\t<MessageActions v-show=\"(showFn && scripts.length > 0) || (!scripts.length && !item.isChating)\" :item=\"item\" message-type=\"ai\" :index=\"index\" :has-retry=\"hasRetry\" :show-copy=\"true\" @copy=\"onCopy\" @retry=\"onRetry\" @like=\"onLike\" @dislike=\"onDislike\">\n\t\t\t\t\t<!-- <slot name=\"extendsFn\" :item=\"item\" :index=\"index\"></slot> -->\n\t\t\t\t\t<template #extendsFn>\n\t\t\t\t\t\t<slot name=\"extendsFn\" :item=\"item\" :index=\"index\" />\n\t\t\t\t\t</template>\n\t\t\t\t</MessageActions>\n\t\t\t</slot>\n\t\t\t<!-- && !scripts.length -->\n\t\t</div>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n// useSlots, Comment, watch\nimport { ref, computed, inject, onMounted } from 'vue'\nimport type { ChatMessage } from './TouchChat.vue'\nimport aiAvatarBase from '../../img/aiAvatar.png'\nimport markdown from '../../utils/markdown.ts'\nimport FileView from '../../component/FileView.vue'\nimport ImageView from '../../component/ImageView.vue'\nimport LinkView from '../../component/LinkView.vue'\nimport CardView from '../../component/CardView.vue'\nimport MessageActions from './MessageActions.vue'\nimport Face from '../../component/AiRobot/face.vue'\nimport MeterialPrepare from '../../component/AiRobot/meterialPrepare.vue'\nimport Letter from '../../component/AiRobot/letter.vue'\nimport ThoughtChain from '../../component/ThoughtChain.vue'\n\n// 为组件映射表定义接口\ninterface ComponentMap {\n\t[key: string]: any // 允许任何字符串键\n\tFileView: typeof FileView\n\tImageView: typeof ImageView\n\tLinkView: typeof LinkView\n\tCardView: typeof CardView\n}\n\n// 创建组件映射表\nconst componentMap: ComponentMap = {\n\tFileView,\n\tImageView,\n\tLinkView,\n\tCardView,\n\tFace,\n\tMeterialPrepare\n}\n\nconst props = withDefaults(\n\tdefineProps<{\n\t\titem: ChatMessage\n\t\tindex: number\n\t\thasRetry: boolean\n\t}>(),\n\t{\n\t\thasRetry: true\n\t}\n)\n\nconst emits = defineEmits<{\n\t(e: 'copy', index: number): void\n\t(e: 'retry', index: number): void\n\t(e: 'like', index: number): void\n\t(e: 'dislike', index: number): void\n\t(e: 'contentRendered', element: HTMLElement): void\n\t(e: 'completeRendered', chatId: string): void\n\t(e: 'toggle-sidebar', item: any, index: number): void\n}>()\n\nconst collapse = ref(true)\nconst isShowAvatar = ref(true)\nconst aiAvatarPath = ref(aiAvatarBase)\nconst components = inject<Record<string, any>>('components', {}) // 指定类型并提供默认值 {}\nconst avatar = inject<boolean>('avatar', true)\nconst scripts = inject<any[]>('scripts', [])\nconst layout = inject<string>('layout', 'side, think, upload, chain')\nconst chainAble = layout.includes('chain')\nconst showComponent = ref(false)\nconst showFn = ref(false)\n\nconst init = () => {\n\tisShowAvatar.value = avatar\n}\n\nconst componentName = computed(() => {\n\tconst slotMap = components\n\n\t// 明确newMap的类型,允许字符串索引\n\tconst newMap: Record<string, any> = {\n\t\t...slotMap,\n\t\t...componentMap\n\t}\n\treturn newMap[props.item.componentName as string] || null\n})\n\nconst thinkContentShow = computed(() => {\n\treturn props.item.thinkContent\n\t// && !props.item.componentName;\n})\n\nconst reasoningContentShow = computed(() => {\n\treturn props.item.reasoningContent\n})\n\nconst processedContent = computed(() => {\n\treturn props.item.content ? markdown?.render(props.item.content, { isReasoning: false }) || '' : ''\n})\n\nconst processedThinkContent = computed(() => {\n\treturn props.item.thinkContent ? markdown?.render(props.item.thinkContent, { isReasoning: true }) || '' : ''\n})\n\nconst processedReasoningContent = computed(() => {\n\treturn props.item.reasoningContent ? markdown?.render(props.item.reasoningContent, { isReasoning: true }) || '' : ''\n})\n\nconst contentShow = computed(() => {\n\treturn props.item.content\n})\n\nconst toggleSidebarClick = (item: ChatMessage, index: number) => {\n\temits('toggle-sidebar', item, index)\n}\n\nonMounted(() => {\n\tinit()\n})\n\nconst completeCompentent = () => {\n\temits('completeRendered', props.item?.chatId || '')\n\tshowFn.value = true\n}\nconst completeLetter = () => {\n\tshowComponent.value = true\n\tif (!props.item.componentName) {\n\t\temits('completeRendered', props.item?.chatId || '')\n\t\tshowFn.value = true\n\t}\n}\n\nconst startCompentent = () => {\n\tconsole.log('startCompentent')\n}\nconst startLetter = () => {\n\tshowComponent.value = false\n\tshowFn.value = false\n}\n\nconst onCopy = () => emits('copy', props.index)\nconst onRetry = () => emits('retry', props.index)\nconst onLike = () => emits('like', props.index)\nconst onDislike = () => emits('dislike', props.index)\n</script>\n"],"names":["aiAvatarBase","_createElementBlock","_createCommentVNode","_createElementVNode","_renderSlot","_normalizeClass","_createTextVNode","_toDispl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A,EAAA;AAAA,gBALgF,MAAM,OAAI,CAAA,IAAA;AAAA,gBAAE,cAAa,EAAA,IAAA;AAAA,gBAAM,OAAO,OAAK,CAAA,KAAA;AAAA,gBAAG,aAAW,OAAQ,CAAA,QAAA;AAAA,gBAAG,WAAW,EAAA,IAAA;AAAA,gBAAO,MAAA;AAAA,gBAAe,OAAA;AAAA,gBAAiB,MAAA;AAAA,gBAAe,SAAA;AAAA;gBAE1N,SAAA,UACV,MAAqD;AAAA,kBAArDL,UAAA,CAAqD,IAAA,CAAA,MAAA,EAAA,WAAA,EAAA;AAAA,oBAA7B,MAAM,OAAI,CAAA,IAAA;AAAA,oBAAG,OAAO,OAAK,CAAA,KAAA;AAAA;;;;;sBAH1B,EAAA,MAAA,CAAM,KAAI,IAAAQ,KAAA,CAAO,OAAA,CAAC,CAAA,MAAA,GAAM,CAAA,IAAA,CAAWA,MAAO,OAAA,CAAA,CAAC,UAAM,CAAK,OAAA,CAAI,KAAC,SAAS,CAAA;AAAA;;YAO9FV,mBAA2B,sBAAA,CAAA;AAAA;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ var MessageAction = /* @__PURE__ */ ((MessageAction2) => {
2
+ MessageAction2["COPY"] = "copy";
3
+ MessageAction2["EDIT"] = "edit";
4
+ MessageAction2["DELETE"] = "delete";
5
+ MessageAction2["RETRY"] = "retry";
6
+ MessageAction2["LIKE"] = "like";
7
+ MessageAction2["DISLIKE"] = "dislike";
8
+ return MessageAction2;
9
+ })(MessageAction || {});
10
+ var ThinkStatus = /* @__PURE__ */ ((ThinkStatus2) => {
11
+ ThinkStatus2["THINKING"] = "thinking";
12
+ ThinkStatus2["COMPLETED"] = "completed";
13
+ ThinkStatus2["STOPPED"] = "stopped";
14
+ return ThinkStatus2;
15
+ })(ThinkStatus || {});
16
+
17
+ export { MessageAction, ThinkStatus };
18
+ //# sourceMappingURL=TouchChat.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TouchChat.mjs","sources":["../../../../../../../../packages/components/touchchat/src/AiChat/Chat/TouchChat.ts"],"sourcesContent":["// 类型定义\ninterface ChatMessage {\n\tchatId?: string\n\tuser: string\n\ttype: string\n\tcontent: string\n\tisChating?: boolean\n\tthinkContent?: string\n\treasoningContent?: string\n\tisLiked?: boolean\n\tisDisliked?: boolean\n\tisShowLike?: boolean\n\tisEditing?: boolean\n\teditContent?: string\n\tcomponentName?: string\n\tthinkStatus?: string\n\tthinkStartTime?: number\n\tthinkTime?: number\n\t[key: string]: any\n}\n\ninterface RenderData {\n\tmainContent: string\n\tthinkContent: string\n\treasoningContent: string\n}\n\ninterface ScriptContent {\n\tuser: string\n\tdata?: string\n\talias?: string[]\n\ttype?: string\n\tfile?: string\n\tagents?: string\n}\n\ninterface Script {\n\tname: string\n\tid?: string\n\tsubTitle?: string\n\tcontent: ScriptContent[]\n}\n\ninterface AgentsItem {\n\tname: string\n\tintro: string\n}\n\ninterface FileItem {\n\tfile: File\n\tisUploading: boolean\n\tuploadProgress: number\n\tuploadSuccess: boolean\n\tuploadError: boolean\n\tfileSize: string\n\tfileType: string\n\tname: string\n\tid: string\n\tbase64: string | null\n}\n\n// 枚举定义\nconst enum MessageAction {\n\tCOPY = 'copy',\n\tEDIT = 'edit',\n\tDELETE = 'delete',\n\tRETRY = 'retry',\n\tLIKE = 'like',\n\tDISLIKE = 'dislike'\n}\n\nconst enum ThinkStatus {\n\tTHINKING = 'thinking',\n\tCOMPLETED = 'completed',\n\tSTOPPED = 'stopped'\n}\n\ninterface BodyConfig {\n\tmodel: string\n\tmessages: Array<{\n\t\trole: string\n\t\tcontent: string\n\t}>\n\tstream: boolean\n}\n\n// 定义 respoKey 返回值的类型\ninterface RespoKeyConfig {\n\tcategory: string\n\tcontentCategory: string\n\tcontent: string\n\tall: string\n\tallCategory: string\n}\n\ninterface ModuleItem {\n\tname: string\n\tconfig: {\n\t\taction: string\n\t\theaders: () => object\n\t\tbody: () => BodyConfig // 修改为具体类型\n\t\trespoKey: () => RespoKeyConfig // 修改为具体类型\n\t}\n}\n\nexport {\n\ttype ChatMessage,\n\ttype RenderData,\n\ttype ScriptContent,\n\ttype Script,\n\ttype AgentsItem,\n\ttype FileItem,\n\tMessageAction,\n\tThinkStatus,\n\ttype BodyConfig, // 导出 BodyConfig 类型\n\ttype RespoKeyConfig, // 导出 RespoKeyConfig 类型\n\ttype ModuleItem // 导出 ModuleItem 类型\n}\n"],"names":["MessageAction","ThinkStatus"],"mappings":"AA8DW,IAAA,aAAA,qBAAAA,cAAX,KAAA;AACC,EAAAA,eAAA,MAAO,CAAA,GAAA,MAAA,CAAA;AACP,EAAAA,eAAA,MAAO,CAAA,GAAA,MAAA,CAAA;AACP,EAAAA,eAAA,QAAS,CAAA,GAAA,QAAA,CAAA;AACT,EAAAA,eAAA,OAAQ,CAAA,GAAA,OAAA,CAAA;AACR,EAAAA,eAAA,MAAO,CAAA,GAAA,MAAA,CAAA;AACP,EAAAA,eAAA,SAAU,CAAA,GAAA,SAAA,CAAA;AANA,EAAAA,OAAAA,cAAAA,CAAAA;AAAA,CAAA,EAAA,aAAA,IAAA,EAAA,EAAA;AASA,IAAA,WAAA,qBAAAC,YAAX,KAAA;AACC,EAAAA,aAAA,UAAW,CAAA,GAAA,UAAA,CAAA;AACX,EAAAA,aAAA,WAAY,CAAA,GAAA,WAAA,CAAA;AACZ,EAAAA,aAAA,SAAU,CAAA,GAAA,SAAA,CAAA;AAHA,EAAAA,OAAAA,YAAAA,CAAAA;AAAA,CAAA,EAAA,WAAA,IAAA,EAAA;;;;"}
@@ -1,6 +1,7 @@
1
1
  import _sfc_main from './ChatInput.vue2.mjs';
2
+ import _export_sfc from '../../../../../_virtual/_plugin-vue_export-helper.mjs';
2
3
 
4
+ var ChatInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "ChatInput.vue"]]);
3
5
 
4
-
5
- export { _sfc_main as default };
6
+ export { ChatInput as default };
6
7
  //# sourceMappingURL=ChatInput.vue.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatInput.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"ChatInput.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}