@agentscope-ai/chat 1.1.4 → 1.1.8

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 (686) hide show
  1. package/LICENSE +74 -0
  2. package/README.md +156 -56
  3. package/README.zh-CN.md +188 -0
  4. package/lib/AGUI/components/HelpModal/icons.d.ts +5 -0
  5. package/lib/AGUI/components/HelpModal/icons.js +84 -0
  6. package/lib/AGUI/components/HelpModal/index.d.ts +1 -0
  7. package/lib/AGUI/components/HelpModal/index.js +1 -0
  8. package/lib/AGUI/components/HelpModal/modal.d.ts +1 -0
  9. package/lib/AGUI/components/HelpModal/modal.js +104 -0
  10. package/lib/AGUI/components/chat/Button.d.ts +2 -0
  11. package/lib/AGUI/components/chat/Button.js +27 -0
  12. package/lib/AGUI/components/chat/Chat.d.ts +242 -0
  13. package/lib/AGUI/components/chat/Chat.js +634 -0
  14. package/lib/AGUI/components/chat/ChatContext.d.ts +142 -0
  15. package/lib/AGUI/components/chat/ChatContext.js +75 -0
  16. package/lib/AGUI/components/chat/CodeBlock.d.ts +12 -0
  17. package/lib/AGUI/components/chat/CodeBlock.js +398 -0
  18. package/lib/AGUI/components/chat/Header.d.ts +2 -0
  19. package/lib/AGUI/components/chat/Header.js +28 -0
  20. package/lib/AGUI/components/chat/Icons.d.ts +16 -0
  21. package/lib/AGUI/components/chat/Icons.js +247 -0
  22. package/lib/AGUI/components/chat/ImageUploadQueue.d.ts +11 -0
  23. package/lib/AGUI/components/chat/ImageUploadQueue.js +65 -0
  24. package/lib/AGUI/components/chat/Input.d.ts +2 -0
  25. package/lib/AGUI/components/chat/Input.js +30 -0
  26. package/lib/AGUI/components/chat/Markdown.d.ts +7 -0
  27. package/lib/AGUI/components/chat/Markdown.js +187 -0
  28. package/lib/AGUI/components/chat/Messages.d.ts +7 -0
  29. package/lib/AGUI/components/chat/Messages.js +242 -0
  30. package/lib/AGUI/components/chat/Modal.d.ts +43 -0
  31. package/lib/AGUI/components/chat/Modal.js +113 -0
  32. package/lib/AGUI/components/chat/Popup.d.ts +49 -0
  33. package/lib/AGUI/components/chat/Popup.js +64 -0
  34. package/lib/AGUI/components/chat/PoweredByTag.d.ts +3 -0
  35. package/lib/AGUI/components/chat/PoweredByTag.js +27 -0
  36. package/lib/AGUI/components/chat/Sidebar.d.ts +2 -0
  37. package/lib/AGUI/components/chat/Sidebar.js +85 -0
  38. package/lib/AGUI/components/chat/Suggestion.d.ts +16 -0
  39. package/{dist/voice-chat/VoiceChatService/index.js → lib/AGUI/components/chat/Suggestion.js} +138 -201
  40. package/lib/AGUI/components/chat/Suggestions.d.ts +2 -0
  41. package/lib/AGUI/components/chat/Suggestions.js +21 -0
  42. package/lib/AGUI/components/chat/Textarea.d.ts +11 -0
  43. package/lib/AGUI/components/chat/Textarea.js +60 -0
  44. package/lib/AGUI/components/chat/Window.d.ts +2 -0
  45. package/lib/AGUI/components/chat/Window.js +115 -0
  46. package/lib/AGUI/components/chat/index.d.ts +11 -0
  47. package/lib/AGUI/components/chat/index.js +11 -0
  48. package/lib/AGUI/components/chat/messages/AssistantMessage.d.ts +2 -0
  49. package/lib/AGUI/components/chat/messages/AssistantMessage.js +56 -0
  50. package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.d.ts +2 -0
  51. package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.js +114 -0
  52. package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.d.ts +2 -0
  53. package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.js +97 -0
  54. package/lib/AGUI/components/chat/messages/RenderImageMessage.d.ts +2 -0
  55. package/lib/AGUI/components/chat/messages/RenderImageMessage.js +61 -0
  56. package/lib/AGUI/components/chat/messages/RenderResultMessage.d.ts +2 -0
  57. package/lib/AGUI/components/chat/messages/RenderResultMessage.js +27 -0
  58. package/lib/AGUI/components/chat/messages/RenderTextMessage.d.ts +2 -0
  59. package/lib/AGUI/components/chat/messages/RenderTextMessage.js +47 -0
  60. package/lib/AGUI/components/chat/messages/UserMessage.d.ts +2 -0
  61. package/lib/AGUI/components/chat/messages/UserMessage.js +9 -0
  62. package/lib/AGUI/components/chat/props.d.ts +157 -0
  63. package/lib/AGUI/components/index.d.ts +1 -0
  64. package/lib/AGUI/components/index.js +1 -0
  65. package/lib/AGUI/context/index.d.ts +1 -0
  66. package/lib/AGUI/hooks/index.d.ts +1 -0
  67. package/lib/AGUI/hooks/index.js +1 -0
  68. package/lib/AGUI/hooks/use-copilot-chat-suggestions.d.ts +87 -0
  69. package/lib/AGUI/hooks/use-copilot-chat-suggestions.js +95 -0
  70. package/lib/AGUI/hooks/use-copy-to-clipboard.d.ts +7 -0
  71. package/{dist/theme/genStyleUtils.js → lib/AGUI/hooks/use-copy-to-clipboard.js} +27 -42
  72. package/lib/AGUI/hooks/use-dark-mode.d.ts +1 -0
  73. package/lib/AGUI/hooks/use-dark-mode.js +4 -0
  74. package/lib/AGUI/hooks/use-push-to-talk.d.ts +16 -0
  75. package/lib/AGUI/hooks/use-push-to-talk.js +260 -0
  76. package/lib/AGUI/index.d.ts +4 -0
  77. package/lib/AGUI/index.js +4 -0
  78. package/lib/AGUI/lib/utils.d.ts +2 -0
  79. package/lib/AGUI/lib/utils.js +52 -0
  80. package/lib/AGUI/types/index.d.ts +1 -0
  81. package/lib/AGUI/types/suggestions.d.ts +6 -0
  82. package/lib/Accordion/Accordion.d.ts +64 -0
  83. package/{dist/accordion → lib/Accordion}/Accordion.js +101 -40
  84. package/{dist/accordion → lib/Accordion}/BodyContent.d.ts +1 -1
  85. package/lib/Accordion/BodyContent.js +23 -0
  86. package/lib/Accordion/DeepThinking.d.ts +28 -0
  87. package/lib/Accordion/DeepThinking.js +35 -0
  88. package/lib/Accordion/SoftLightTitle.d.ts +3 -0
  89. package/lib/Accordion/SoftLightTitle.js +17 -0
  90. package/lib/Accordion/index.d.ts +2 -0
  91. package/lib/Accordion/style.d.ts +2 -0
  92. package/lib/Accordion/style.js +60 -0
  93. package/lib/Attachments/DropArea.d.ts +24 -0
  94. package/{dist/attachments → lib/Attachments}/DropArea.js +5 -11
  95. package/lib/Attachments/FileList/AudioIcon.d.ts +1 -0
  96. package/lib/Attachments/FileList/AudioIcon.js +24 -0
  97. package/lib/Attachments/FileList/FileListCard.d.ts +36 -0
  98. package/{dist/attachments → lib/Attachments}/FileList/FileListCard.js +109 -83
  99. package/lib/Attachments/FileList/Progress.d.ts +13 -0
  100. package/{dist/attachments → lib/Attachments}/FileList/Progress.js +7 -5
  101. package/lib/Attachments/FileList/VideoIcon.d.ts +1 -0
  102. package/lib/Attachments/FileList/VideoIcon.js +24 -0
  103. package/lib/Attachments/FileList/index.d.ts +56 -0
  104. package/{dist/attachments → lib/Attachments}/FileList/index.js +48 -48
  105. package/lib/Attachments/PlaceholderUploader.d.ts +49 -0
  106. package/{dist/attachments → lib/Attachments}/PlaceholderUploader.js +33 -28
  107. package/lib/Attachments/SilentUploader.d.ts +21 -0
  108. package/lib/Attachments/SilentUploader.js +30 -0
  109. package/lib/Attachments/context.d.ts +9 -0
  110. package/lib/Attachments/index.d.ts +97 -0
  111. package/lib/Attachments/index.en-US.md.bk +10 -0
  112. package/{dist/attachments → lib/Attachments}/index.js +51 -55
  113. package/lib/Attachments/index.zh-CN.md.bk +10 -0
  114. package/lib/Attachments/style/fileCard.d.ts +2 -0
  115. package/lib/Attachments/style/fileCard.js +68 -0
  116. package/lib/Attachments/style/index.d.ts +2 -0
  117. package/lib/Attachments/style/index.js +98 -0
  118. package/{dist/bubble → lib/Bubble}/Avatar.d.ts +0 -1
  119. package/{dist/bubble → lib/Bubble}/Avatar.js +8 -5
  120. package/lib/Bubble/Bubble.d.ts +19 -0
  121. package/{dist/bubble → lib/Bubble}/Bubble.js +39 -52
  122. package/lib/Bubble/BubbleList.d.ts +41 -0
  123. package/lib/Bubble/BubbleList.js +64 -0
  124. package/{dist/bubble → lib/Bubble}/Cards.d.ts +2 -8
  125. package/{dist/bubble → lib/Bubble}/Cards.js +9 -9
  126. package/{dist/bubble → lib/Bubble}/ScrollToBottom.d.ts +0 -1
  127. package/{dist/bubble → lib/Bubble}/ScrollToBottom.js +15 -14
  128. package/lib/Bubble/Spin.d.ts +1 -0
  129. package/lib/Bubble/Spin.js +21 -0
  130. package/lib/Bubble/hooks/useListData.d.ts +0 -0
  131. package/lib/Bubble/hooks/useListData.js +0 -0
  132. package/lib/Bubble/interface.d.ts +62 -0
  133. package/lib/Bubble/loading.js +17 -0
  134. package/lib/Bubble/style/avatar.d.ts +2 -0
  135. package/lib/Bubble/style/avatar.js +8 -0
  136. package/lib/Bubble/style/index.d.ts +2 -0
  137. package/lib/Bubble/style/index.js +46 -0
  138. package/lib/Bubble/style/list.d.ts +2 -0
  139. package/lib/Bubble/style/list.js +16 -0
  140. package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.d.ts +0 -1
  141. package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.js +39 -28
  142. package/lib/ChatAnywhere/Chat/style.d.ts +2 -0
  143. package/lib/ChatAnywhere/Chat/style.js +14 -0
  144. package/lib/ChatAnywhere/Header/index.d.ts +1 -0
  145. package/lib/ChatAnywhere/Header/index.js +39 -0
  146. package/lib/ChatAnywhere/Header/style.d.ts +2 -0
  147. package/lib/ChatAnywhere/Header/style.js +12 -0
  148. package/lib/ChatAnywhere/Input/index.d.ts +3 -0
  149. package/{dist/chat-anywhere → lib/ChatAnywhere}/Input/index.js +92 -70
  150. package/lib/ChatAnywhere/Input/style.d.ts +2 -0
  151. package/lib/ChatAnywhere/Input/style.js +6 -0
  152. package/{dist/chat-anywhere → lib/ChatAnywhere}/Layout/index.d.ts +1 -2
  153. package/lib/ChatAnywhere/Layout/index.js +91 -0
  154. package/lib/ChatAnywhere/Layout/style.d.ts +2 -0
  155. package/lib/ChatAnywhere/Layout/style.js +16 -0
  156. package/lib/ChatAnywhere/SessionList/index.d.ts +3 -0
  157. package/{dist/chat-anywhere → lib/ChatAnywhere}/SessionList/index.js +67 -55
  158. package/lib/ChatAnywhere/SessionList/style.d.ts +2 -0
  159. package/lib/ChatAnywhere/SessionList/style.js +14 -0
  160. package/lib/ChatAnywhere/hooks/ChatAnywhereProvider.d.ts +148 -0
  161. package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/ChatAnywhereProvider.js +11 -5
  162. package/lib/ChatAnywhere/hooks/types.d.ts +312 -0
  163. package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.d.ts +2 -0
  164. package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.js +8 -2
  165. package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.d.ts +3 -1
  166. package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.js +10 -2
  167. package/{dist/chat-anywhere → lib/ChatAnywhere}/index.d.ts +4 -1
  168. package/{dist/chat-anywhere → lib/ChatAnywhere}/index.js +28 -15
  169. package/{dist/conversations → lib/Conversations}/GroupTitle.d.ts +4 -0
  170. package/{dist/conversations → lib/Conversations}/GroupTitle.js +7 -5
  171. package/{dist/conversations → lib/Conversations}/Item.d.ts +1 -0
  172. package/lib/Conversations/Item.js +208 -0
  173. package/lib/Conversations/hooks/useGroupable.d.ts +8 -0
  174. package/lib/Conversations/index.d.ts +55 -0
  175. package/{dist/conversations → lib/Conversations}/index.js +50 -61
  176. package/lib/Conversations/interface.d.ts +56 -0
  177. package/lib/Conversations/style.d.ts +2 -0
  178. package/lib/Conversations/style.js +60 -0
  179. package/{dist/default-cards/DeepThink → lib/DefaultCards/DeepThinking}/index.d.ts +2 -3
  180. package/lib/DefaultCards/DeepThinking/index.js +12 -0
  181. package/lib/DefaultCards/Files/index.d.ts +1 -0
  182. package/lib/DefaultCards/Files/index.js +56 -0
  183. package/{dist/default-cards → lib/DefaultCards}/Footer/index.d.ts +3 -4
  184. package/lib/DefaultCards/Footer/index.js +74 -0
  185. package/lib/DefaultCards/Images/index.d.ts +1 -0
  186. package/lib/DefaultCards/Images/index.js +49 -0
  187. package/{dist/default-cards → lib/DefaultCards}/Interrupted/index.d.ts +1 -3
  188. package/lib/DefaultCards/Interrupted/index.js +54 -0
  189. package/lib/DefaultCards/Text/index.d.ts +1 -0
  190. package/{dist/default-cards → lib/DefaultCards}/Text/index.js +4 -2
  191. package/lib/DefaultCards/count/index.d.ts +1 -0
  192. package/lib/DefaultCards/count/index.js +36 -0
  193. package/{dist/default-cards → lib/DefaultCards}/index.d.ts +1 -1
  194. package/{dist/default-cards → lib/DefaultCards}/index.js +1 -1
  195. package/lib/Disclaimer/index.d.ts +22 -0
  196. package/lib/Disclaimer/index.js +26 -0
  197. package/lib/Disclaimer/style.d.ts +2 -0
  198. package/lib/Disclaimer/style.js +10 -0
  199. package/lib/ImageGenerator/index.d.ts +41 -0
  200. package/lib/ImageGenerator/index.js +75 -0
  201. package/lib/ImageGenerator/style.d.ts +2 -0
  202. package/lib/ImageGenerator/style.js +20 -0
  203. package/{dist/markdown → lib/Markdown}/Citation.js +19 -14
  204. package/{dist/markdown → lib/Markdown}/CodeBlock.d.ts +1 -0
  205. package/{dist/markdown → lib/Markdown}/CodeBlock.js +51 -30
  206. package/lib/Markdown/ImageOrMedia.d.ts +1 -0
  207. package/lib/Markdown/ImageOrMedia.js +113 -0
  208. package/lib/Markdown/Link.js +48 -0
  209. package/{dist/markdown → lib/Markdown}/Markdown.js +22 -11
  210. package/lib/Markdown/cursor/Dot.d.ts +1 -0
  211. package/lib/Markdown/cursor/Dot.js +36 -0
  212. package/lib/Markdown/cursor/Underline.d.ts +1 -0
  213. package/lib/Markdown/cursor/Underline.js +20 -0
  214. package/lib/Markdown/hooks/index.d.ts +0 -0
  215. package/lib/Markdown/hooks/index.js +0 -0
  216. package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.js +1 -1
  217. package/lib/Markdown/index.d.ts +63 -0
  218. package/lib/Markdown/index.js +40 -0
  219. package/lib/Markdown/style.d.ts +2 -0
  220. package/lib/Markdown/style.js +30 -0
  221. package/lib/Markdown/type.d.ts +186 -0
  222. package/{dist/markdown → lib/Markdown}/utils.js +1 -2
  223. package/lib/Mermaid/index.d.ts +18 -0
  224. package/{dist/voice-chat/Recorder → lib/Mermaid}/index.js +144 -160
  225. package/{dist/provider → lib/Provider}/CustomCardsProvider.d.ts +2 -1
  226. package/{dist/provider → lib/Provider}/CustomCardsProvider.js +5 -3
  227. package/{dist/provider → lib/Provider}/GlobalProvider.d.ts +1 -1
  228. package/{dist/provider → lib/Provider}/GlobalProvider.js +5 -3
  229. package/{dist/provider → lib/Provider}/index.d.ts +1 -2
  230. package/{dist/provider → lib/Provider}/index.js +9 -6
  231. package/lib/Provider/types.d.ts +24 -0
  232. package/lib/Provider/types.js +1 -0
  233. package/lib/ResponsesAPI/index.d.ts +0 -0
  234. package/lib/ResponsesAPI/index.js +0 -0
  235. package/lib/Sender/ModeSelect/index.d.ts +17 -0
  236. package/lib/Sender/ModeSelect/index.js +109 -0
  237. package/lib/Sender/ModeSelect/styles.d.ts +0 -0
  238. package/lib/Sender/ModeSelect/styles.js +0 -0
  239. package/lib/Sender/SenderHeader.d.ts +63 -0
  240. package/{dist/sender → lib/Sender}/SenderHeader.js +40 -32
  241. package/{dist/sender → lib/Sender}/StopLoading.d.ts +1 -1
  242. package/lib/Sender/StopLoading.js +25 -0
  243. package/lib/Sender/components/ActionButton.d.ts +72 -0
  244. package/{dist/sender → lib/Sender}/components/ActionButton.js +9 -5
  245. package/lib/Sender/components/ClearButton.js +19 -0
  246. package/lib/Sender/components/LoadingButton.js +28 -0
  247. package/lib/Sender/components/SendButton.js +20 -0
  248. package/lib/Sender/components/SpeechButton/RecordingIcon.d.ts +8 -0
  249. package/lib/Sender/components/SpeechButton/RecordingIcon.js +54 -0
  250. package/lib/Sender/components/SpeechButton/index.js +35 -0
  251. package/lib/Sender/index.d.ts +142 -0
  252. package/{dist/sender → lib/Sender}/index.js +128 -121
  253. package/lib/Sender/style/index.d.ts +2 -0
  254. package/lib/Sender/style/index.js +41 -0
  255. package/{dist/stream → lib/Stream}/index.d.ts +4 -2
  256. package/{dist/stream → lib/Stream}/index.js +1 -1
  257. package/lib/Util/createStyle.d.ts +5 -0
  258. package/lib/Util/createStyle.js +20 -0
  259. package/lib/Util/sleep.d.ts +1 -0
  260. package/lib/Util/sleep.js +5 -0
  261. package/lib/Util/type.js +1 -0
  262. package/{dist/_util → lib/Util}/warning.d.ts +2 -2
  263. package/lib/Voice/Recorder.d.ts +1 -0
  264. package/lib/Voice/Recorder.js +6 -0
  265. package/lib/Voice/index.d.ts +0 -0
  266. package/lib/Voice/index.js +0 -0
  267. package/lib/Welcome/index.d.ts +24 -0
  268. package/lib/Welcome/index.js +39 -0
  269. package/lib/index.d.ts +25 -0
  270. package/lib/index.js +24 -0
  271. package/package.json +28 -14
  272. package/dist/accordion/Accordion.d.ts +0 -22
  273. package/dist/accordion/BodyContent.js +0 -18
  274. package/dist/accordion/DeepThink.d.ts +0 -7
  275. package/dist/accordion/DeepThink.js +0 -35
  276. package/dist/accordion/index.d.ts +0 -2
  277. package/dist/accordion/index.less +0 -170
  278. package/dist/attachments/DropArea.d.ts +0 -8
  279. package/dist/attachments/FileList/AudioIcon.d.ts +0 -2
  280. package/dist/attachments/FileList/AudioIcon.js +0 -19
  281. package/dist/attachments/FileList/FileListCard.d.ts +0 -12
  282. package/dist/attachments/FileList/Progress.d.ts +0 -6
  283. package/dist/attachments/FileList/VideoIcon.d.ts +0 -2
  284. package/dist/attachments/FileList/VideoIcon.js +0 -19
  285. package/dist/attachments/FileList/index.d.ts +0 -16
  286. package/dist/attachments/PlaceholderUploader.d.ts +0 -17
  287. package/dist/attachments/SilentUploader.d.ts +0 -9
  288. package/dist/attachments/SilentUploader.js +0 -23
  289. package/dist/attachments/context.d.ts +0 -5
  290. package/dist/attachments/index.d.ts +0 -33
  291. package/dist/attachments/style/fileCard.d.ts +0 -4
  292. package/dist/attachments/style/fileCard.js +0 -124
  293. package/dist/attachments/style/index.d.ts +0 -10
  294. package/dist/attachments/style/index.js +0 -211
  295. package/dist/bubble/Bubble.d.ts +0 -11
  296. package/dist/bubble/BubbleList.d.ts +0 -15
  297. package/dist/bubble/BubbleList.js +0 -44
  298. package/dist/bubble/Spin.d.ts +0 -2
  299. package/dist/bubble/Spin.js +0 -18
  300. package/dist/bubble/interface.d.ts +0 -26
  301. package/dist/bubble/loading.js +0 -17
  302. package/dist/bubble/style/avatar.less +0 -40
  303. package/dist/bubble/style/content.d.ts +0 -4
  304. package/dist/bubble/style/content.js +0 -43
  305. package/dist/bubble/style/index.d.ts +0 -9
  306. package/dist/bubble/style/index.js +0 -53
  307. package/dist/bubble/style/list.less +0 -15
  308. package/dist/bubble/style/scrollToBottom.less +0 -174
  309. package/dist/chat-anywhere/Chat/index.less +0 -54
  310. package/dist/chat-anywhere/Header/index.d.ts +0 -3
  311. package/dist/chat-anywhere/Header/index.js +0 -32
  312. package/dist/chat-anywhere/Header/index.less +0 -24
  313. package/dist/chat-anywhere/Input/index.d.ts +0 -3
  314. package/dist/chat-anywhere/Input/index.less +0 -12
  315. package/dist/chat-anywhere/Layout/index.js +0 -73
  316. package/dist/chat-anywhere/Layout/index.less +0 -61
  317. package/dist/chat-anywhere/SessionList/index.d.ts +0 -5
  318. package/dist/chat-anywhere/SessionList/index.less +0 -52
  319. package/dist/chat-anywhere/hooks/ChatAnywhereProvider.d.ts +0 -43
  320. package/dist/chat-anywhere/hooks/types.d.ts +0 -57
  321. package/dist/conversations/Item.js +0 -96
  322. package/dist/conversations/hooks/useGroupable.d.ts +0 -9
  323. package/dist/conversations/index.d.ts +0 -62
  324. package/dist/conversations/interface.d.ts +0 -60
  325. package/dist/conversations/style/index.d.ts +0 -9
  326. package/dist/conversations/style/index.js +0 -80
  327. package/dist/default-cards/Count/index.d.ts +0 -3
  328. package/dist/default-cards/Count/index.js +0 -16
  329. package/dist/default-cards/Count/index.less +0 -19
  330. package/dist/default-cards/DeepThink/index.js +0 -11
  331. package/dist/default-cards/Files/index.d.ts +0 -2
  332. package/dist/default-cards/Files/index.js +0 -18
  333. package/dist/default-cards/Footer/index.js +0 -50
  334. package/dist/default-cards/Footer/index.less +0 -41
  335. package/dist/default-cards/Images/index.d.ts +0 -3
  336. package/dist/default-cards/Images/index.js +0 -33
  337. package/dist/default-cards/Images/index.less +0 -17
  338. package/dist/default-cards/Interrupted/index.js +0 -40
  339. package/dist/default-cards/Interrupted/index.less +0 -57
  340. package/dist/default-cards/Text/index.d.ts +0 -2
  341. package/dist/disclaimer/index.d.ts +0 -11
  342. package/dist/disclaimer/index.js +0 -26
  343. package/dist/docs/1896.async.js +0 -457
  344. package/dist/docs/2710.async.js +0 -62
  345. package/dist/docs/2863.async.js +0 -400
  346. package/dist/docs/3057.async.js +0 -46
  347. package/dist/docs/3364.async.js +0 -25
  348. package/dist/docs/404.html +0 -15
  349. package/dist/docs/4820.async.js +0 -1381
  350. package/dist/docs/5623.async.js +0 -60
  351. package/dist/docs/5757.async.js +0 -1
  352. package/dist/docs/5804.async.js +0 -271
  353. package/dist/docs/6198.async.js +0 -18
  354. package/dist/docs/6671.async.js +0 -137
  355. package/dist/docs/7195.async.js +0 -1
  356. package/dist/docs/7485.async.js +0 -29
  357. package/dist/docs/7931.async.js +0 -19
  358. package/dist/docs/7997.async.js +0 -5
  359. package/dist/docs/8156.async.js +0 -110
  360. package/dist/docs/8368.async.js +0 -2
  361. package/dist/docs/8480.async.js +0 -1449
  362. package/dist/docs/8618.async.js +0 -246
  363. package/dist/docs/9016.async.js +0 -32
  364. package/dist/docs/9016.chunk.css +0 -1
  365. package/dist/docs/9335.async.js +0 -11
  366. package/dist/docs/accordion__demos.async.js +0 -9
  367. package/dist/docs/attachments__demos.async.js +0 -1
  368. package/dist/docs/bubble__demos.async.js +0 -50
  369. package/dist/docs/components/accordion/index.html +0 -15
  370. package/dist/docs/components/accordion-cn/index.html +0 -15
  371. package/dist/docs/components/attachments/index.html +0 -15
  372. package/dist/docs/components/attachments-cn/index.html +0 -15
  373. package/dist/docs/components/bubble/index.html +0 -15
  374. package/dist/docs/components/bubble-cn/index.html +0 -15
  375. package/dist/docs/components/bubble-list/index.html +0 -15
  376. package/dist/docs/components/bubble-list-cn/index.html +0 -15
  377. package/dist/docs/components/conversations/index.html +0 -15
  378. package/dist/docs/components/conversations-cn/index.html +0 -15
  379. package/dist/docs/components/disclaimer/index.html +0 -15
  380. package/dist/docs/components/disclaimer-cn/index.html +0 -15
  381. package/dist/docs/components/footer/index.html +0 -15
  382. package/dist/docs/components/footer-cn/index.html +0 -15
  383. package/dist/docs/components/markdown/index.html +0 -15
  384. package/dist/docs/components/markdown-cn/index.html +0 -15
  385. package/dist/docs/components/sender/index.html +0 -15
  386. package/dist/docs/components/sender-cn/index.html +0 -15
  387. package/dist/docs/components/status/index.html +0 -15
  388. package/dist/docs/components/status-cn/index.html +0 -15
  389. package/dist/docs/components/welcome/index.html +0 -15
  390. package/dist/docs/components/welcome-cn/index.html +0 -15
  391. package/dist/docs/components__accordion__index.en-US.md.async.js +0 -6
  392. package/dist/docs/components__accordion__index.en-US.md.chunk.css +0 -1
  393. package/dist/docs/components__accordion__index.zh-CN.md.async.js +0 -6
  394. package/dist/docs/components__accordion__index.zh-CN.md.chunk.css +0 -1
  395. package/dist/docs/components__attachments__index.en-US.md.async.js +0 -1
  396. package/dist/docs/components__attachments__index.en-US.md.chunk.css +0 -1
  397. package/dist/docs/components__attachments__index.zh-CN.md.async.js +0 -1
  398. package/dist/docs/components__attachments__index.zh-CN.md.chunk.css +0 -1
  399. package/dist/docs/components__bubble-list__index.en-US.md.async.js +0 -2
  400. package/dist/docs/components__bubble-list__index.en-US.md.chunk.css +0 -1
  401. package/dist/docs/components__bubble-list__index.zh-CN.md.async.js +0 -2
  402. package/dist/docs/components__bubble-list__index.zh-CN.md.chunk.css +0 -1
  403. package/dist/docs/components__bubble__index.en-US.md.async.js +0 -1
  404. package/dist/docs/components__bubble__index.en-US.md.chunk.css +0 -1
  405. package/dist/docs/components__bubble__index.zh-CN.md.async.js +0 -1
  406. package/dist/docs/components__bubble__index.zh-CN.md.chunk.css +0 -1
  407. package/dist/docs/components__conversations__index.en-US.md.async.js +0 -2
  408. package/dist/docs/components__conversations__index.en-US.md.chunk.css +0 -1
  409. package/dist/docs/components__conversations__index.zh-CN.md.async.js +0 -1
  410. package/dist/docs/components__conversations__index.zh-CN.md.chunk.css +0 -1
  411. package/dist/docs/components__disclaimer__index.en-US.md.async.js +0 -1
  412. package/dist/docs/components__disclaimer__index.en-US.md.chunk.css +0 -1
  413. package/dist/docs/components__disclaimer__index.zh-CN.md.async.js +0 -1
  414. package/dist/docs/components__disclaimer__index.zh-CN.md.chunk.css +0 -1
  415. package/dist/docs/components__footer__index.en-US.md.async.js +0 -1
  416. package/dist/docs/components__footer__index.en-US.md.chunk.css +0 -1
  417. package/dist/docs/components__footer__index.zh-CN.md.async.js +0 -2
  418. package/dist/docs/components__footer__index.zh-CN.md.chunk.css +0 -1
  419. package/dist/docs/components__markdown__index.en-US.md.async.js +0 -1
  420. package/dist/docs/components__markdown__index.en-US.md.chunk.css +0 -1
  421. package/dist/docs/components__markdown__index.zh-CN.md.async.js +0 -1
  422. package/dist/docs/components__markdown__index.zh-CN.md.chunk.css +0 -1
  423. package/dist/docs/components__sender__index.en-US.md.async.js +0 -1
  424. package/dist/docs/components__sender__index.en-US.md.chunk.css +0 -1
  425. package/dist/docs/components__sender__index.zh-CN.md.async.js +0 -1
  426. package/dist/docs/components__sender__index.zh-CN.md.chunk.css +0 -1
  427. package/dist/docs/components__status__index.en-US.md.async.js +0 -1
  428. package/dist/docs/components__status__index.en-US.md.chunk.css +0 -1
  429. package/dist/docs/components__status__index.zh-CN.md.async.js +0 -2
  430. package/dist/docs/components__status__index.zh-CN.md.chunk.css +0 -1
  431. package/dist/docs/components__welcome__index.en-US.md.async.js +0 -2
  432. package/dist/docs/components__welcome__index.en-US.md.chunk.css +0 -1
  433. package/dist/docs/components__welcome__index.zh-CN.md.async.js +0 -2
  434. package/dist/docs/components__welcome__index.zh-CN.md.chunk.css +0 -1
  435. package/dist/docs/conversations__demos.async.js +0 -1
  436. package/dist/docs/demos.async.js +0 -47
  437. package/dist/docs/demos.chunk.css +0 -1
  438. package/dist/docs/disclaimer__demos.async.js +0 -1
  439. package/dist/docs/docs/development/ag-ui/index.html +0 -15
  440. package/dist/docs/docs/development/ag-ui-cn/index.html +0 -15
  441. package/dist/docs/docs/development/backend/index.html +0 -15
  442. package/dist/docs/docs/development/backend-cn/index.html +0 -15
  443. package/dist/docs/docs/development/cards/index.html +0 -15
  444. package/dist/docs/docs/development/cards-cn/index.html +0 -15
  445. package/dist/docs/docs/development/chatanywhere/index.html +0 -15
  446. package/dist/docs/docs/development/chatanywhere-api/index.html +0 -15
  447. package/dist/docs/docs/development/chatanywhere-api-cn/index.html +0 -15
  448. package/dist/docs/docs/development/chatanywhere-cn/index.html +0 -15
  449. package/dist/docs/docs/development/custom/index.html +0 -15
  450. package/dist/docs/docs/development/custom-cn/index.html +0 -15
  451. package/dist/docs/docs/development/overview/index.html +0 -15
  452. package/dist/docs/docs/development/overview-cn/index.html +0 -15
  453. package/dist/docs/docs/development/qwen/index.html +0 -15
  454. package/dist/docs/docs/development/qwen-cn/index.html +0 -15
  455. package/dist/docs/docs/templates/copilot/index.html +0 -15
  456. package/dist/docs/docs/templates/copilot-cn/index.html +0 -15
  457. package/dist/docs/docs/templates/native/index.html +0 -15
  458. package/dist/docs/docs/templates/native-cn/index.html +0 -15
  459. package/dist/docs/docs/templates/voice/index.html +0 -15
  460. package/dist/docs/docs/templates/voice-cn/index.html +0 -15
  461. package/dist/docs/docs__development__ag-ui.en-US.md.async.js +0 -210
  462. package/dist/docs/docs__development__ag-ui.en-US.md.chunk.css +0 -1
  463. package/dist/docs/docs__development__ag-ui.zh-CN.md.async.js +0 -210
  464. package/dist/docs/docs__development__ag-ui.zh-CN.md.chunk.css +0 -1
  465. package/dist/docs/docs__development__backend.en-US.md.async.js +0 -12
  466. package/dist/docs/docs__development__backend.en-US.md.chunk.css +0 -1
  467. package/dist/docs/docs__development__backend.zh-CN.md.async.js +0 -12
  468. package/dist/docs/docs__development__backend.zh-CN.md.chunk.css +0 -1
  469. package/dist/docs/docs__development__cards.en-US.md.async.js +0 -27
  470. package/dist/docs/docs__development__cards.en-US.md.chunk.css +0 -1
  471. package/dist/docs/docs__development__cards.zh-CN.md.async.js +0 -27
  472. package/dist/docs/docs__development__cards.zh-CN.md.chunk.css +0 -1
  473. package/dist/docs/docs__development__chatanywhere-api.en-US.md.async.js +0 -69
  474. package/dist/docs/docs__development__chatanywhere-api.en-US.md.chunk.css +0 -1
  475. package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.async.js +0 -69
  476. package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.chunk.css +0 -1
  477. package/dist/docs/docs__development__chatanywhere.en-US.md.async.js +0 -77
  478. package/dist/docs/docs__development__chatanywhere.en-US.md.chunk.css +0 -1
  479. package/dist/docs/docs__development__chatanywhere.zh-CN.md.async.js +0 -77
  480. package/dist/docs/docs__development__chatanywhere.zh-CN.md.chunk.css +0 -1
  481. package/dist/docs/docs__development__custom.en-US.md.async.js +0 -22
  482. package/dist/docs/docs__development__custom.en-US.md.chunk.css +0 -1
  483. package/dist/docs/docs__development__custom.zh-CN.md.async.js +0 -22
  484. package/dist/docs/docs__development__custom.zh-CN.md.chunk.css +0 -1
  485. package/dist/docs/docs__development__overview.en-US.md.async.js +0 -21
  486. package/dist/docs/docs__development__overview.en-US.md.chunk.css +0 -1
  487. package/dist/docs/docs__development__overview.zh-CN.md.async.js +0 -21
  488. package/dist/docs/docs__development__overview.zh-CN.md.chunk.css +0 -1
  489. package/dist/docs/docs__development__qwen.en-US.md.async.js +0 -25
  490. package/dist/docs/docs__development__qwen.en-US.md.chunk.css +0 -1
  491. package/dist/docs/docs__development__qwen.zh-CN.md.async.js +0 -25
  492. package/dist/docs/docs__development__qwen.zh-CN.md.chunk.css +0 -1
  493. package/dist/docs/docs__templates__copilot.en-US.md.async.js +0 -1
  494. package/dist/docs/docs__templates__copilot.en-US.md.chunk.css +0 -1
  495. package/dist/docs/docs__templates__copilot.zh-CN.md.async.js +0 -1
  496. package/dist/docs/docs__templates__copilot.zh-CN.md.chunk.css +0 -1
  497. package/dist/docs/docs__templates__native.en-US.md.async.js +0 -1
  498. package/dist/docs/docs__templates__native.en-US.md.chunk.css +0 -1
  499. package/dist/docs/docs__templates__native.zh-CN.md.async.js +0 -1
  500. package/dist/docs/docs__templates__native.zh-CN.md.chunk.css +0 -1
  501. package/dist/docs/docs__templates__voice.en-US.md.async.js +0 -20
  502. package/dist/docs/docs__templates__voice.en-US.md.chunk.css +0 -1
  503. package/dist/docs/docs__templates__voice.zh-CN.md.async.js +0 -1
  504. package/dist/docs/docs__templates__voice.zh-CN.md.chunk.css +0 -1
  505. package/dist/docs/dumi__pages__index__index.en-US.async.js +0 -1
  506. package/dist/docs/dumi__pages__index__index.en-US.chunk.css +0 -1
  507. package/dist/docs/dumi__pages__index__index.zh-CN.async.js +0 -1
  508. package/dist/docs/dumi__pages__index__index.zh-CN.chunk.css +0 -1
  509. package/dist/docs/dumi__theme__layouts__DocLayout__index.async.js +0 -1
  510. package/dist/docs/dumi__theme__layouts__DocLayout__index.chunk.css +0 -1
  511. package/dist/docs/dumi__theme__layouts__GlobalLayout__index.async.js +0 -18
  512. package/dist/docs/dumi__theme__layouts__GlobalLayout__index.chunk.css +0 -1
  513. package/dist/docs/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +0 -1
  514. package/dist/docs/index/index.html +0 -15
  515. package/dist/docs/index-cn/index.html +0 -15
  516. package/dist/docs/markdown__demos.async.js +0 -164
  517. package/dist/docs/meta__components__en-US.async.js +0 -9
  518. package/dist/docs/meta__components__zh-CN.async.js +0 -10
  519. package/dist/docs/meta__docs__en-US.async.js +0 -475
  520. package/dist/docs/meta__docs__en-US.chunk.css +0 -1
  521. package/dist/docs/meta__docs__zh-CN.async.js +0 -456
  522. package/dist/docs/meta__docs__zh-CN.chunk.css +0 -1
  523. package/dist/docs/nm__dumi__dist__client__pages__404.async.js +0 -1
  524. package/dist/docs/nm__dumi__dist__client__pages__Demo__index.async.js +0 -1
  525. package/dist/docs/nm__dumi__dist__client__pages__Demo__index.chunk.css +0 -1
  526. package/dist/docs/preload_helper.js +0 -1
  527. package/dist/docs/sender__demos.async.js +0 -1
  528. package/dist/docs/umi.css +0 -1
  529. package/dist/docs/umi.js +0 -107
  530. package/dist/docs/welcome__demos.async.js +0 -1
  531. package/dist/docs/~demos/:id/index.html +0 -15
  532. package/dist/docs/~demos/accordion-demo-inline/index.html +0 -15
  533. package/dist/docs/~demos/accordion-demo-mutisteps/index.html +0 -15
  534. package/dist/docs/~demos/accordion-demo-thinking/index.html +0 -15
  535. package/dist/docs/~demos/attachments-demo-files/index.html +0 -15
  536. package/dist/docs/~demos/bubble-demo-basic/index.html +0 -15
  537. package/dist/docs/~demos/bubble-demo-havestopped/index.html +0 -15
  538. package/dist/docs/~demos/bubble-demo-userwithfile/index.html +0 -15
  539. package/dist/docs/~demos/bubble-demo-userwithimage/index.html +0 -15
  540. package/dist/docs/~demos/bubble-demo-userwithnormal/index.html +0 -15
  541. package/dist/docs/~demos/bubble-demo-withavatar/index.html +0 -15
  542. package/dist/docs/~demos/bubble-demo-withcode/index.html +0 -15
  543. package/dist/docs/~demos/bubble-demo-witherror/index.html +0 -15
  544. package/dist/docs/~demos/bubble-demo-witherrordetail/index.html +0 -15
  545. package/dist/docs/~demos/bubble-demo-withimage/index.html +0 -15
  546. package/dist/docs/~demos/bubble-demo-withusage/index.html +0 -15
  547. package/dist/docs/~demos/bubble-demo-withwaitingmessage/index.html +0 -15
  548. package/dist/docs/~demos/components-bubble-list-demo-basic/index.html +0 -15
  549. package/dist/docs/~demos/components-footer-demo-basic/index.html +0 -15
  550. package/dist/docs/~demos/components-footer-demo-withusage/index.html +0 -15
  551. package/dist/docs/~demos/components-status-demo-basic/index.html +0 -15
  552. package/dist/docs/~demos/conversations-demo-basic/index.html +0 -15
  553. package/dist/docs/~demos/disclaimer-demo-demo/index.html +0 -15
  554. package/dist/docs/~demos/disclaimer-demo-withlink/index.html +0 -15
  555. package/dist/docs/~demos/docs-development-ag-ui-demo-with-copilotkit/index.html +0 -15
  556. package/dist/docs/~demos/docs-development-cards-demo-file/index.html +0 -15
  557. package/dist/docs/~demos/docs-development-cards-demo-footer/index.html +0 -15
  558. package/dist/docs/~demos/docs-development-cards-demo-image/index.html +0 -15
  559. package/dist/docs/~demos/docs-development-cards-demo-text/index.html +0 -15
  560. package/dist/docs/~demos/docs-development-custom-demo-custom/index.html +0 -15
  561. package/dist/docs/~demos/docs-templates-copilot-demo-copilot/index.html +0 -15
  562. package/dist/docs/~demos/docs-templates-native-demo-basic/index.html +0 -15
  563. package/dist/docs/~demos/docs-templates-voice-demo-demo/index.html +0 -15
  564. package/dist/docs/~demos/markdown-demo-citations/index.html +0 -15
  565. package/dist/docs/~demos/markdown-demo-cursor/index.html +0 -15
  566. package/dist/docs/~demos/markdown-demo-mathjax/index.html +0 -15
  567. package/dist/docs/~demos/markdown-demo-md/index.html +0 -15
  568. package/dist/docs/~demos/sender-demo-basic/index.html +0 -15
  569. package/dist/docs/~demos/sender-demo-disabled/index.html +0 -15
  570. package/dist/docs/~demos/sender-demo-loading/index.html +0 -15
  571. package/dist/docs/~demos/sender-demo-moreprefixaction/index.html +0 -15
  572. package/dist/docs/~demos/sender-demo-withfile/index.html +0 -15
  573. package/dist/docs/~demos/welcome-demo-demo0/index.html +0 -15
  574. package/dist/docs/~demos/welcome-demo-demo1/index.html +0 -15
  575. package/dist/docs/~demos/welcome-demo-demo2/index.html +0 -15
  576. package/dist/index.d.ts +0 -26
  577. package/dist/index.js +0 -20
  578. package/dist/index.less +0 -1
  579. package/dist/markdown/ImageOrVideo.d.ts +0 -2
  580. package/dist/markdown/ImageOrVideo.js +0 -81
  581. package/dist/markdown/Link.js +0 -28
  582. package/dist/markdown/cursor/Blur.d.ts +0 -3
  583. package/dist/markdown/cursor/Blur.js +0 -7
  584. package/dist/markdown/cursor/Dot.d.ts +0 -3
  585. package/dist/markdown/cursor/Dot.js +0 -16
  586. package/dist/markdown/cursor/Underline.d.ts +0 -3
  587. package/dist/markdown/cursor/Underline.js +0 -7
  588. package/dist/markdown/cursor/index.less +0 -124
  589. package/dist/markdown/hooks/index.d.ts +0 -1
  590. package/dist/markdown/hooks/index.js +0 -49
  591. package/dist/markdown/index.d.ts +0 -16
  592. package/dist/markdown/index.js +0 -37
  593. package/dist/markdown/index.less +0 -204
  594. package/dist/markdown/type.d.ts +0 -46
  595. package/dist/provider/types.d.ts +0 -8
  596. package/dist/sender/SenderHeader.d.ts +0 -19
  597. package/dist/sender/StopLoading.js +0 -20
  598. package/dist/sender/components/ActionButton.d.ts +0 -22
  599. package/dist/sender/components/ClearButton.js +0 -13
  600. package/dist/sender/components/LoadingButton.js +0 -22
  601. package/dist/sender/components/SendButton.js +0 -14
  602. package/dist/sender/components/SpeechButton/RecordingIcon.d.ts +0 -5
  603. package/dist/sender/components/SpeechButton/RecordingIcon.js +0 -49
  604. package/dist/sender/components/SpeechButton/index.js +0 -30
  605. package/dist/sender/index.d.ts +0 -61
  606. package/dist/sender/style/header.d.ts +0 -4
  607. package/dist/sender/style/header.js +0 -46
  608. package/dist/sender/style/index.d.ts +0 -10
  609. package/dist/sender/style/index.js +0 -123
  610. package/dist/stream/index.en-US.md.bk +0 -50
  611. package/dist/stream/index.zh-CN.md.bk +0 -51
  612. package/dist/theme/components.d.ts +0 -10
  613. package/dist/theme/cssinjs-utils.d.ts +0 -14
  614. package/dist/theme/genStyleUtils.d.ts +0 -28
  615. package/dist/theme/useToken.d.ts +0 -18
  616. package/dist/theme/useToken.js +0 -110
  617. package/dist/voice-chat/Recorder/index.d.ts +0 -26
  618. package/dist/voice-chat/VoiceChatProvider/context.d.ts +0 -22
  619. package/dist/voice-chat/VoiceChatProvider/context.js +0 -3
  620. package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.d.ts +0 -1
  621. package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.js +0 -5
  622. package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.d.ts +0 -8
  623. package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.js +0 -31
  624. package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.d.ts +0 -5
  625. package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.js +0 -48
  626. package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.d.ts +0 -4
  627. package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.js +0 -10
  628. package/dist/voice-chat/VoiceChatProvider/index.d.ts +0 -9
  629. package/dist/voice-chat/VoiceChatProvider/index.js +0 -55
  630. package/dist/voice-chat/VoiceChatService/index.d.ts +0 -34
  631. package/dist/voice-chat/index.d.ts +0 -2
  632. package/dist/voice-chat/index.js +0 -2
  633. package/dist/voice-chat/types/index.d.ts +0 -12
  634. package/dist/voice-chat/types/index.js +0 -4
  635. package/dist/welcome/icon.d.ts +0 -2
  636. package/dist/welcome/icon.js +0 -38
  637. package/dist/welcome/index.d.ts +0 -9
  638. package/dist/welcome/index.js +0 -57
  639. /package/{dist/_util/type.js → lib/AGUI/components/chat/props.js} +0 -0
  640. /package/{dist/bubble/interface.js → lib/AGUI/context/index.js} +0 -0
  641. /package/{dist/bubble/hooks/useDisplayData.d.ts → lib/AGUI/styles.css} +0 -0
  642. /package/{dist/bubble/hooks/useDisplayData.js → lib/AGUI/types/css.d.ts} +0 -0
  643. /package/{dist/bubble/hooks/useListData.d.ts → lib/AGUI/types/css.js} +0 -0
  644. /package/{dist/chat-anywhere/hooks/types.js → lib/AGUI/types/index.js} +0 -0
  645. /package/{dist/conversations/interface.js → lib/AGUI/types/suggestions.js} +0 -0
  646. /package/{dist/accordion → lib/Accordion}/index.js +0 -0
  647. /package/{dist/attachments → lib/Attachments}/context.js +0 -0
  648. /package/{dist/attachments → lib/Attachments}/util.d.ts +0 -0
  649. /package/{dist/attachments → lib/Attachments}/util.js +0 -0
  650. /package/{dist/bubble/hooks/useListData.js → lib/Bubble/hooks/useDisplayData.d.ts} +0 -0
  651. /package/{dist/default-cards/DeepThink/index.less → lib/Bubble/hooks/useDisplayData.js} +0 -0
  652. /package/{dist/bubble → lib/Bubble}/index.d.ts +0 -0
  653. /package/{dist/bubble → lib/Bubble}/index.js +0 -0
  654. /package/{dist/markdown/type.js → lib/Bubble/interface.js} +0 -0
  655. /package/{dist/bubble → lib/Bubble}/loading.d.ts +0 -0
  656. /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.d.ts +0 -0
  657. /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.js +0 -0
  658. /package/{dist/provider → lib/ChatAnywhere/hooks}/types.js +0 -0
  659. /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.d.ts +0 -0
  660. /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.js +0 -0
  661. /package/{dist/conversations → lib/Conversations}/hooks/useGroupable.js +0 -0
  662. /package/{dist/theme/components.js → lib/Conversations/interface.js} +0 -0
  663. /package/{dist/markdown → lib/Markdown}/Citation.d.ts +0 -0
  664. /package/{dist/markdown → lib/Markdown}/Link.d.ts +0 -0
  665. /package/{dist/markdown → lib/Markdown}/Markdown.d.ts +0 -0
  666. /package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.d.ts +0 -0
  667. /package/{dist/markdown → lib/Markdown}/plugins/footnote.d.ts +0 -0
  668. /package/{dist/markdown → lib/Markdown}/plugins/footnote.js +0 -0
  669. /package/{dist/markdown → lib/Markdown}/plugins/katexDir.d.ts +0 -0
  670. /package/{dist/markdown → lib/Markdown}/plugins/katexDir.js +0 -0
  671. /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.d.ts +0 -0
  672. /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.js +0 -0
  673. /package/{dist/theme/cssinjs-utils.js → lib/Markdown/type.js} +0 -0
  674. /package/{dist/markdown → lib/Markdown}/utils.d.ts +0 -0
  675. /package/{dist/sender → lib/Sender}/components/ClearButton.d.ts +0 -0
  676. /package/{dist/sender → lib/Sender}/components/LoadingButton.d.ts +0 -0
  677. /package/{dist/sender → lib/Sender}/components/SendButton.d.ts +0 -0
  678. /package/{dist/sender → lib/Sender}/components/SpeechButton/index.d.ts +0 -0
  679. /package/{dist/sender → lib/Sender}/useSpeech.d.ts +0 -0
  680. /package/{dist/sender → lib/Sender}/useSpeech.js +0 -0
  681. /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.d.ts +0 -0
  682. /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.js +0 -0
  683. /package/{dist/_util → lib/Util}/type.d.ts +0 -0
  684. /package/{dist/_util → lib/Util}/warning.js +0 -0
  685. /package/{dist/version → lib/Version}/index.d.ts +0 -0
  686. /package/{dist/version → lib/Version}/index.js +0 -0
@@ -1,15 +0,0 @@
1
- @import '../../index.less';
2
-
3
-
4
- .@{ant-prefix}-bubble-list-wrapper {
5
- position: relative;
6
- overflow: hidden;
7
-
8
- }
9
-
10
- .@{ant-prefix}-bubble-list {
11
- display: flex;
12
- flex-direction: column;
13
- gap: 24px;
14
- padding: 16px;
15
- }
@@ -1,174 +0,0 @@
1
- @import '../../index.less';
2
-
3
- .@{ant-prefix}-bubble-list-scroll-to-bottom {
4
- position: absolute;
5
- left: 0;
6
- right: 0;
7
- bottom: 10px;
8
- display: flex;
9
- justify-content: center;
10
- transition: all 0.2s;
11
- z-index: 10;
12
-
13
- &-hide {
14
- opacity: 0;
15
- transform: translateY(100%);
16
- pointer-events: none;
17
- }
18
-
19
- &-show {
20
- opacity: 1;
21
- transform: translateY(0%);
22
- }
23
-
24
- button {
25
- &:hover {
26
- border-color: e('var(--@{ant-prefix}-color-primary-border)') !important;
27
- background-color: e('var(--@{ant-prefix}-color-primary-bg)') !important;
28
- color: e('var(--@{ant-prefix}-color-primary)') !important;
29
- }
30
- }
31
- }
32
-
33
- .@{ant-prefix}-bubble-loading {
34
- position: relative;
35
- display: flex;
36
- align-items: center;
37
- gap: 4px;
38
- line-height: 1.7;
39
- filter: invert(1) brightness(100%) saturate(0%);
40
-
41
- &-text {
42
- opacity: 0;
43
- }
44
-
45
- &-dot1 {
46
- width: 4px;
47
- height: 4px;
48
- border-radius: 999px;
49
- background: linear-gradient(
50
- e('var(--@{ant-prefix}-color-text)'),
51
- e('var(--@{ant-prefix}-color-text)')
52
- ),
53
- linear-gradient(
54
- e('var(--@{ant-prefix}-color-bg-base)'),
55
- e('var(--@{ant-prefix}-color-bg-base)')
56
- );
57
- background-blend-mode: multiply;
58
- animation: dot_01 2.5s infinite ease;
59
- }
60
- &-dot2 {
61
- width: 3px;
62
- height: 3px;
63
- border-radius: 999px;
64
- background: linear-gradient(
65
- e('var(--@{ant-prefix}-color-text-tertiary)'),
66
- e('var(--@{ant-prefix}-color-text-tertiary)')
67
- ),
68
- linear-gradient(
69
- e('var(--@{ant-prefix}-color-bg-base)'),
70
- e('var(--@{ant-prefix}-color-bg-base)')
71
- );
72
- background-blend-mode: multiply;
73
- animation: dot_02 2.5s infinite ease;
74
- }
75
- &-dot3 {
76
- width: 4px;
77
- height: 4px;
78
- border-radius: 999px;
79
- background: linear-gradient(
80
- e('var(--@{ant-prefix}-color-text-secondary)'),
81
- e('var(--@{ant-prefix}-color-text-secondary)')
82
- ),
83
- linear-gradient(
84
- e('var(--@{ant-prefix}-color-bg-base)'),
85
- e('var(--@{ant-prefix}-color-bg-base)')
86
- );
87
- background-blend-mode: multiply;
88
- animation: dot_03 2.5s infinite ease;
89
- }
90
- }
91
-
92
- @keyframes dot_01 {
93
- 0% {
94
- transform: translateX(0px) scale(1);
95
- z-index: 3;
96
- }
97
-
98
- 30.3% {
99
- transform: translateX(15px) scale(1);
100
- z-index: 3;
101
- }
102
- 33.3% {
103
- transform: translateX(15px) scale(1);
104
- z-index: 1;
105
- }
106
- 63.6% {
107
- transform: translateX(7.5px) scale(0.75);
108
- z-index: 1;
109
- }
110
- 66.6% {
111
- transform: translateX(7.5px) scale(0.75);
112
- z-index: 2;
113
- }
114
- 97% {
115
- transform: translateX(0px) scale(1);
116
- z-index: 2;
117
- }
118
- }
119
-
120
- @keyframes dot_02 {
121
- 0% {
122
- transform: translateX(0px) scale(1);
123
- z-index: 2;
124
- }
125
- 23.3% {
126
- transform: translateX(-7.5px) scale(1.33333);
127
- z-index: 2;
128
- }
129
-
130
- 30.3% {
131
- transform: translateX(-7.5px) scale(1.33333);
132
- z-index: 3;
133
- }
134
- 56.6% {
135
- transform: translateX(7.5px) scale(1.33333);
136
- z-index: 3;
137
- }
138
- 63.6% {
139
- transform: translateX(7.5px) scale(1.33333);
140
- z-index: 1;
141
- }
142
- 97% {
143
- transform: translateX(0px) scale(1);
144
- z-index: 1;
145
- }
146
- }
147
-
148
- @keyframes dot_03 {
149
- 0% {
150
- transform: translateX(0px) scale(1);
151
- z-index: 1;
152
- }
153
- 23.3% {
154
- transform: translateX(-7.5px) scale(0.75);
155
- z-index: 1;
156
- }
157
-
158
- 30.3% {
159
- transform: translateX(-7.5px) scale(0.75);
160
- z-index: 2;
161
- }
162
- 56.6% {
163
- transform: translateX(-15px) scale(1);
164
- z-index: 2;
165
- }
166
- 63.6% {
167
- transform: translateX(-15px) scale(1);
168
- z-index: 3;
169
- }
170
- 97% {
171
- transform: translateX(0px) scale(1);
172
- z-index: 3;
173
- }
174
- }
@@ -1,54 +0,0 @@
1
- @import '../../index.less';
2
-
3
- .@{ant-prefix}-chat-anywhere-chat {
4
- position: relative;
5
- height: 100%;
6
- display: flex;
7
- flex-direction: column;
8
- transition: all 0.3s;
9
- opacity: 1;
10
-
11
- .@{ant-prefix}-bubble-list {
12
- position: relative;
13
- margin: 0 auto;
14
- max-width: 850px;
15
- min-width: 300px;
16
- }
17
-
18
- .@{ant-prefix}-chat-anywhere-sender-wrapper {
19
- max-width: 850px;
20
- min-width: 300px;
21
- padding: 16px;
22
- margin: 0 auto;
23
- }
24
-
25
- &-hide {
26
- opacity: 0;
27
- }
28
-
29
- &-welcome {
30
- max-width: 850px;
31
- min-width: 300px;
32
- width: -webkit-fill-available;
33
- padding: 16px;
34
- margin: 0 auto;
35
- height: 100%;
36
- display: flex;
37
- align-items: center;
38
- justify-content: center;
39
- }
40
- }
41
-
42
-
43
-
44
-
45
- @media screen and (max-width: 768px) {
46
- button {
47
- cursor: default !important;
48
- }
49
-
50
- .@{ant-prefix}-conversations .@{ant-prefix}-conversations-item {
51
- cursor: default !important;
52
-
53
- }
54
- }
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import './index.less';
3
- export default function (): React.JSX.Element;
@@ -1,32 +0,0 @@
1
- import React from "react";
2
- import { useProviderContext } from "../..";
3
- import "./index.less";
4
- import { Button } from "antd";
5
- import { MenuFoldOutlined, MenuUnfoldOutlined } from "@ant-design/icons";
6
- import { isMobileHook } from "../Layout";
7
- import { useChatAnywhere } from "../hooks/ChatAnywhereProvider";
8
- import { useSessionList } from "../hooks/useSessionList";
9
- export default function () {
10
- var _useProviderContext = useProviderContext(),
11
- getPrefixCls = _useProviderContext.getPrefixCls;
12
- var prefixCls = getPrefixCls('chat-anywhere-header');
13
- var uiConfig = useChatAnywhere(function (v) {
14
- return v.uiConfig;
15
- });
16
- var _useSessionList = useSessionList(),
17
- sessionListShow = _useSessionList.sessionListShow,
18
- setSessionListShow = _useSessionList.setSessionListShow;
19
- var isMobile = isMobileHook();
20
- return /*#__PURE__*/React.createElement("div", {
21
- className: prefixCls
22
- }, isMobile && /*#__PURE__*/React.createElement(Button, {
23
- style: {
24
- marginLeft: 12
25
- },
26
- type: "text",
27
- onClick: function onClick() {
28
- return setSessionListShow(!sessionListShow);
29
- },
30
- icon: !sessionListShow ? /*#__PURE__*/React.createElement(MenuUnfoldOutlined, null) : /*#__PURE__*/React.createElement(MenuFoldOutlined, null)
31
- }), uiConfig.header);
32
- }
@@ -1,24 +0,0 @@
1
- @import '../../index.less';
2
-
3
- .@{ant-prefix}-chat-anywhere-header {
4
- height: 64px;
5
- position: absolute;
6
- left: 0;
7
- right: 0;
8
- top: 0;
9
- backdrop-filter: blur(100px);
10
- z-index: 1;
11
- display: flex;
12
- align-items: center;
13
- }
14
-
15
- .@{ant-prefix}-chat-anywhere-header
16
- ~ .@{ant-prefix}-chat-anywhere-chat
17
- .@{ant-prefix}-bubble-list {
18
- &::before {
19
- content: ' ';
20
- display: block;
21
- height: 24px;
22
- flex: 0 0 24px;
23
- }
24
- }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export default function (): React.JSX.Element;
@@ -1,12 +0,0 @@
1
- @import '../../index.less';
2
-
3
- .@{ant-prefix}-chat-anywhere-sender-wrapper {
4
- position: relative;
5
-
6
- &-header {
7
- display: flex;
8
- gap: 8px;
9
- margin-bottom: 12px;
10
- }
11
- }
12
-
@@ -1,73 +0,0 @@
1
- import React, { useEffect } from 'react';
2
- import "./index.less";
3
- import classnames from 'classnames';
4
- import { useProviderContext } from "../..";
5
- import { Drawer } from 'antd';
6
- import { useResponsive } from 'ahooks';
7
- import { useChatAnywhere } from "../hooks/ChatAnywhereProvider";
8
- function Left(props) {
9
- var _useChatAnywhere = useChatAnywhere(function (v) {
10
- return {
11
- sessionListShow: v.sessionListShow,
12
- setSessionListShow: v.setSessionListShow
13
- };
14
- }),
15
- sessionListShow = _useChatAnywhere.sessionListShow,
16
- setSessionListShow = _useChatAnywhere.setSessionListShow;
17
- var _useProviderContext = useProviderContext(),
18
- getPrefixCls = _useProviderContext.getPrefixCls;
19
- var prefixCls = getPrefixCls('chat-anywhere-layout');
20
- var isMobile = isMobileHook();
21
- useEffect(function () {
22
- setSessionListShow(!isMobile);
23
- }, [isMobile]);
24
- if (!props.left) return null;
25
- if (!isMobile) return /*#__PURE__*/React.createElement("div", {
26
- className: classnames("".concat(prefixCls, "-left"), sessionListShow ? '' : "".concat(prefixCls, "-left-hide"))
27
- }, props.left);
28
- return /*#__PURE__*/React.createElement(Drawer, {
29
- width: "80vw",
30
- styles: {
31
- body: {
32
- padding: 0
33
- }
34
- },
35
- open: sessionListShow,
36
- onClose: function onClose() {
37
- setSessionListShow(false);
38
- },
39
- title: null,
40
- closable: false,
41
- placement: "left"
42
- }, /*#__PURE__*/React.createElement("div", {
43
- style: {
44
- display: 'flex',
45
- flexDirection: 'column'
46
- }
47
- }, props.left));
48
- }
49
- export default function (props) {
50
- var _useProviderContext2 = useProviderContext(),
51
- getPrefixCls = _useProviderContext2.getPrefixCls;
52
- var prefixCls = getPrefixCls('chat-anywhere-layout');
53
- var uiConfig = useChatAnywhere(function (state) {
54
- return state.uiConfig;
55
- });
56
- return /*#__PURE__*/React.createElement("div", {
57
- className: prefixCls
58
- }, /*#__PURE__*/React.createElement("div", {
59
- className: "".concat(prefixCls, "-main")
60
- }, /*#__PURE__*/React.createElement(Left, props), /*#__PURE__*/React.createElement("div", {
61
- className: "".concat(prefixCls, "-right"),
62
- style: {
63
- background: uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.background
64
- }
65
- }, props.top, props.right)));
66
- }
67
- export var isMobileHook = function isMobileHook() {
68
- var responsive = useResponsive();
69
- var uiConfig = useChatAnywhere(function (state) {
70
- return state.uiConfig;
71
- });
72
- return !responsive.md || (uiConfig === null || uiConfig === void 0 ? void 0 : uiConfig.narrowScreen);
73
- };
@@ -1,61 +0,0 @@
1
- @import '../../index.less';
2
-
3
- #root {
4
- display: flex;
5
- flex-direction: column;
6
- height: 100vh;
7
- }
8
-
9
- .@{ant-prefix}-chat-anywhere-layout {
10
- *::-webkit-scrollbar {
11
- display: none;
12
- }
13
-
14
- font-family: e('var(--@{ant-prefix}-font-family)');
15
- overflow: hidden;
16
- position: relative;
17
- height: 100%;
18
- background: e('var(--@{ant-prefix}-color-bg-base)');
19
-
20
- &-main {
21
- display: flex;
22
- height: 100%;
23
- background: e('var(--@{ant-prefix}-color-bg-base)');
24
- }
25
-
26
- &-left {
27
- display: flex;
28
- flex-direction: column;
29
- height: 100vh;
30
- box-sizing: border-box;
31
- background-color: e('var(--@{ant-prefix}-color-bg-base)');
32
- width: 240px;
33
- transition: all 0.2s;
34
-
35
- &-hide {
36
- margin-left: -168px;
37
- background-color: transparent;
38
- }
39
- }
40
-
41
- &-right {
42
- position: relative;
43
- width: 0;
44
- flex: 1;
45
- box-sizing: border-box;
46
- background: e('var(--@{ant-prefix}-color-fill-tertiary)');
47
- }
48
- }
49
-
50
- * {
51
- box-sizing: border-box;
52
- }
53
-
54
- .i-icon,
55
- .ant-btn-icon {
56
- line-height: 1;
57
- }
58
-
59
- *[data-tauri-drag-region] {
60
- -webkit-app-region: drag;
61
- }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export default function (): React.JSX.Element;
4
- export declare function InnerSession(): React.JSX.Element;
5
- export declare function InnerAdder(): React.JSX.Element;
@@ -1,52 +0,0 @@
1
- @import '../../index.less';
2
-
3
- .@{ant-prefix}-chat-anywhere-session-list {
4
- display: flex;
5
- flex-direction: column;
6
- height: 0;
7
- flex: 1;
8
- width: 100%;
9
-
10
- .@{ant-prefix}-conversations {
11
- // padding: 8px 20px;
12
-
13
- height: 100%;
14
- }
15
-
16
- &-session {
17
- height: 0;
18
- flex: 1;
19
- padding: 8px 20px;
20
-
21
- }
22
-
23
- &-logo {
24
- display: flex;
25
- align-items: center;
26
- justify-content: space-between;
27
- padding: 0 20px;
28
- height: 64px;
29
- }
30
-
31
- &-adder {
32
- padding: 0 20px 8px 20px;
33
- button {
34
- border-radius: 6px;
35
- box-shadow: 15px 0px 30px -10px rgba(131, 88, 246, 0.4),
36
- 0px 0px 30px -10px rgba(255, 142, 168, 0.4),
37
- -15px 0px 30px -10px rgba(225, 163, 37, 0.4);
38
- }
39
- }
40
-
41
- &-hide {
42
- .@{ant-prefix}-chat-anywhere-session-list-adder-logo > div {
43
- opacity: 0;
44
- }
45
- .@{ant-prefix}-chat-anywhere-session-list-adder {
46
- opacity: 0;
47
- }
48
- .@{ant-prefix}-chat-anywhere-session-list-session {
49
- opacity: 0;
50
- }
51
- }
52
- }
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import { TMessage, TSession, IChatAnywhereConfig } from './types';
3
- import { useSessionList } from './useSessionList';
4
- import { useMessages } from './useMessages';
5
- import { useInput } from './useInput';
6
- import { ScrollToBottomOptions } from 'use-stick-to-bottom';
7
- export declare function ChatAnywhereProvider(props: IChatAnywhereConfig & {
8
- children: React.ReactNode;
9
- }): React.JSX.Element;
10
- export declare const ChatAnywhereContext: import("use-context-selector").Context<IChatAnywhereContext>;
11
- export declare function useChatAnywhere<Selected>(selector: (value: IChatAnywhereContext) => Selected): Selected;
12
- export interface IChatAnywhereContext {
13
- sessionList: TSession[];
14
- setSessionList: React.Dispatch<React.SetStateAction<TSession[]>>;
15
- getSessionList: () => TSession[];
16
- currentSessionKey: string;
17
- setCurrentSessionKey: React.Dispatch<React.SetStateAction<string>>;
18
- getCurrentSessionKey: () => string;
19
- messages: TMessage[];
20
- setMessages: React.Dispatch<React.SetStateAction<TMessage[]>>;
21
- getMessages: () => TMessage[];
22
- loading: boolean;
23
- setLoading: React.Dispatch<React.SetStateAction<boolean>>;
24
- getLoading: () => boolean;
25
- disabled: boolean;
26
- setDisabled: React.Dispatch<React.SetStateAction<boolean>>;
27
- getDisabled: () => boolean;
28
- sessionListShow: boolean;
29
- setSessionListShow: React.Dispatch<React.SetStateAction<boolean>>;
30
- getSessionListShow: () => boolean;
31
- currentRegenerateIndex: number;
32
- setCurrentRegenerateIndex: React.Dispatch<React.SetStateAction<number>>;
33
- getCurrentRegenerateIndex: () => number;
34
- onInput?: IChatAnywhereConfig['onInput'];
35
- onStop?: IChatAnywhereConfig['onStop'];
36
- onUpload?: IChatAnywhereConfig['onUpload'];
37
- onSessionKeyChange?: IChatAnywhereConfig['onSessionKeyChange'];
38
- uiConfig?: IChatAnywhereConfig['uiConfig'];
39
- }
40
- export type ChatAnywhereRef = ReturnType<typeof useMessages> & ReturnType<typeof useInput> & ReturnType<typeof useSessionList> & {
41
- scrollToBottom: (options?: ScrollToBottomOptions) => void;
42
- reload: () => void;
43
- };
@@ -1,57 +0,0 @@
1
- /// <reference types="react" />
2
- import { GetProp, Upload, UploadFile } from 'antd';
3
- export interface TSession {
4
- key: string;
5
- messages: TMessage[][];
6
- label: string;
7
- }
8
- export interface TMessage {
9
- id: string;
10
- content?: string;
11
- cards?: {
12
- id?: string;
13
- code: string;
14
- component?: React.FC;
15
- data?: string | any;
16
- }[];
17
- role: 'user' | 'assistant' | 'system';
18
- msgStatus?: 'finished' | 'interrupted' | 'generating' | 'error';
19
- }
20
- export interface IChatAnywhereConfig {
21
- cardConfig?: {
22
- [key: string]: React.FC<any>;
23
- };
24
- uiConfig?: {
25
- narrowScreen?: boolean;
26
- background?: string;
27
- header?: React.ReactElement;
28
- quickInput?: React.ReactElement | React.ReactElement[];
29
- logo?: React.ReactElement;
30
- welcome?: React.ReactElement;
31
- disclaimer?: React.ReactElement | string;
32
- };
33
- onInput: {
34
- morePrefixActions?: React.ReactElement | React.ReactElement[];
35
- hide?: boolean;
36
- header?: React.ReactElement | React.ReactElement[];
37
- onSubmit(data: {
38
- query: string;
39
- fileList?: UploadFile[][];
40
- }): void;
41
- maxLength?: number;
42
- beforeSubmit?: () => Promise<Boolean>;
43
- zoomable?: boolean;
44
- };
45
- onStop(): void;
46
- onRegenerate?(msg: Partial<TMessage>): void;
47
- onSessionKeyChange?(key: string): void;
48
- onUpload?: {
49
- renderType?: 'simple' | 'default';
50
- maxCount?: GetProp<typeof Upload, 'maxCount'>;
51
- beforeUpload?: GetProp<typeof Upload, 'beforeUpload'>;
52
- customRequest: GetProp<typeof Upload, 'customRequest'>;
53
- multiple?: boolean;
54
- accept?: string;
55
- icon?: string | React.ReactElement;
56
- }[];
57
- }