@agentscope-ai/chat 1.1.4 → 1.1.7
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.
- package/LICENSE +74 -0
- package/README.md +156 -56
- package/README.zh-CN.md +188 -0
- package/lib/AGUI/components/HelpModal/icons.d.ts +5 -0
- package/lib/AGUI/components/HelpModal/icons.js +84 -0
- package/lib/AGUI/components/HelpModal/index.d.ts +1 -0
- package/lib/AGUI/components/HelpModal/index.js +1 -0
- package/lib/AGUI/components/HelpModal/modal.d.ts +1 -0
- package/lib/AGUI/components/HelpModal/modal.js +104 -0
- package/lib/AGUI/components/chat/Button.d.ts +2 -0
- package/lib/AGUI/components/chat/Button.js +27 -0
- package/lib/AGUI/components/chat/Chat.d.ts +242 -0
- package/lib/AGUI/components/chat/Chat.js +634 -0
- package/lib/AGUI/components/chat/ChatContext.d.ts +142 -0
- package/lib/AGUI/components/chat/ChatContext.js +75 -0
- package/lib/AGUI/components/chat/CodeBlock.d.ts +12 -0
- package/lib/AGUI/components/chat/CodeBlock.js +398 -0
- package/lib/AGUI/components/chat/Header.d.ts +2 -0
- package/lib/AGUI/components/chat/Header.js +28 -0
- package/lib/AGUI/components/chat/Icons.d.ts +16 -0
- package/lib/AGUI/components/chat/Icons.js +247 -0
- package/lib/AGUI/components/chat/ImageUploadQueue.d.ts +11 -0
- package/lib/AGUI/components/chat/ImageUploadQueue.js +65 -0
- package/lib/AGUI/components/chat/Input.d.ts +2 -0
- package/lib/AGUI/components/chat/Input.js +30 -0
- package/lib/AGUI/components/chat/Markdown.d.ts +7 -0
- package/lib/AGUI/components/chat/Markdown.js +187 -0
- package/lib/AGUI/components/chat/Messages.d.ts +7 -0
- package/lib/AGUI/components/chat/Messages.js +242 -0
- package/lib/AGUI/components/chat/Modal.d.ts +43 -0
- package/lib/AGUI/components/chat/Modal.js +113 -0
- package/lib/AGUI/components/chat/Popup.d.ts +49 -0
- package/lib/AGUI/components/chat/Popup.js +64 -0
- package/lib/AGUI/components/chat/PoweredByTag.d.ts +3 -0
- package/lib/AGUI/components/chat/PoweredByTag.js +27 -0
- package/lib/AGUI/components/chat/Sidebar.d.ts +2 -0
- package/lib/AGUI/components/chat/Sidebar.js +85 -0
- package/lib/AGUI/components/chat/Suggestion.d.ts +16 -0
- package/{dist/voice-chat/VoiceChatService/index.js → lib/AGUI/components/chat/Suggestion.js} +138 -201
- package/lib/AGUI/components/chat/Suggestions.d.ts +2 -0
- package/lib/AGUI/components/chat/Suggestions.js +21 -0
- package/lib/AGUI/components/chat/Textarea.d.ts +11 -0
- package/lib/AGUI/components/chat/Textarea.js +60 -0
- package/lib/AGUI/components/chat/Window.d.ts +2 -0
- package/lib/AGUI/components/chat/Window.js +115 -0
- package/lib/AGUI/components/chat/index.d.ts +11 -0
- package/lib/AGUI/components/chat/index.js +11 -0
- package/lib/AGUI/components/chat/messages/AssistantMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/AssistantMessage.js +56 -0
- package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.js +114 -0
- package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.js +97 -0
- package/lib/AGUI/components/chat/messages/RenderImageMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderImageMessage.js +61 -0
- package/lib/AGUI/components/chat/messages/RenderResultMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderResultMessage.js +27 -0
- package/lib/AGUI/components/chat/messages/RenderTextMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderTextMessage.js +47 -0
- package/lib/AGUI/components/chat/messages/UserMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/UserMessage.js +9 -0
- package/lib/AGUI/components/chat/props.d.ts +157 -0
- package/lib/AGUI/components/index.d.ts +1 -0
- package/lib/AGUI/components/index.js +1 -0
- package/lib/AGUI/context/index.d.ts +1 -0
- package/lib/AGUI/hooks/index.d.ts +1 -0
- package/lib/AGUI/hooks/index.js +1 -0
- package/lib/AGUI/hooks/use-copilot-chat-suggestions.d.ts +87 -0
- package/lib/AGUI/hooks/use-copilot-chat-suggestions.js +95 -0
- package/lib/AGUI/hooks/use-copy-to-clipboard.d.ts +7 -0
- package/{dist/theme/genStyleUtils.js → lib/AGUI/hooks/use-copy-to-clipboard.js} +27 -42
- package/lib/AGUI/hooks/use-dark-mode.d.ts +1 -0
- package/lib/AGUI/hooks/use-dark-mode.js +4 -0
- package/lib/AGUI/hooks/use-push-to-talk.d.ts +16 -0
- package/lib/AGUI/hooks/use-push-to-talk.js +260 -0
- package/lib/AGUI/index.d.ts +4 -0
- package/lib/AGUI/index.js +4 -0
- package/lib/AGUI/lib/utils.d.ts +2 -0
- package/lib/AGUI/lib/utils.js +52 -0
- package/lib/AGUI/types/index.d.ts +1 -0
- package/lib/AGUI/types/suggestions.d.ts +6 -0
- package/lib/Accordion/Accordion.d.ts +64 -0
- package/{dist/accordion → lib/Accordion}/Accordion.js +101 -40
- package/{dist/accordion → lib/Accordion}/BodyContent.d.ts +1 -1
- package/lib/Accordion/BodyContent.js +23 -0
- package/lib/Accordion/DeepThinking.d.ts +28 -0
- package/lib/Accordion/DeepThinking.js +35 -0
- package/lib/Accordion/SoftLightTitle.d.ts +3 -0
- package/lib/Accordion/SoftLightTitle.js +17 -0
- package/lib/Accordion/index.d.ts +2 -0
- package/lib/Accordion/style.d.ts +2 -0
- package/lib/Accordion/style.js +60 -0
- package/lib/Attachments/DropArea.d.ts +24 -0
- package/{dist/attachments → lib/Attachments}/DropArea.js +5 -11
- package/lib/Attachments/FileList/AudioIcon.d.ts +1 -0
- package/lib/Attachments/FileList/AudioIcon.js +24 -0
- package/lib/Attachments/FileList/FileListCard.d.ts +36 -0
- package/{dist/attachments → lib/Attachments}/FileList/FileListCard.js +109 -83
- package/lib/Attachments/FileList/Progress.d.ts +13 -0
- package/{dist/attachments → lib/Attachments}/FileList/Progress.js +7 -5
- package/lib/Attachments/FileList/VideoIcon.d.ts +1 -0
- package/lib/Attachments/FileList/VideoIcon.js +24 -0
- package/lib/Attachments/FileList/index.d.ts +56 -0
- package/{dist/attachments → lib/Attachments}/FileList/index.js +48 -48
- package/lib/Attachments/PlaceholderUploader.d.ts +49 -0
- package/{dist/attachments → lib/Attachments}/PlaceholderUploader.js +33 -28
- package/lib/Attachments/SilentUploader.d.ts +21 -0
- package/lib/Attachments/SilentUploader.js +30 -0
- package/lib/Attachments/context.d.ts +9 -0
- package/lib/Attachments/index.d.ts +97 -0
- package/lib/Attachments/index.en-US.md.bk +10 -0
- package/{dist/attachments → lib/Attachments}/index.js +51 -55
- package/lib/Attachments/index.zh-CN.md.bk +10 -0
- package/lib/Attachments/style/fileCard.d.ts +2 -0
- package/lib/Attachments/style/fileCard.js +68 -0
- package/lib/Attachments/style/index.d.ts +2 -0
- package/lib/Attachments/style/index.js +98 -0
- package/{dist/bubble → lib/Bubble}/Avatar.d.ts +0 -1
- package/{dist/bubble → lib/Bubble}/Avatar.js +8 -5
- package/lib/Bubble/Bubble.d.ts +19 -0
- package/{dist/bubble → lib/Bubble}/Bubble.js +39 -52
- package/lib/Bubble/BubbleList.d.ts +41 -0
- package/lib/Bubble/BubbleList.js +64 -0
- package/{dist/bubble → lib/Bubble}/Cards.d.ts +2 -8
- package/{dist/bubble → lib/Bubble}/Cards.js +9 -9
- package/{dist/bubble → lib/Bubble}/ScrollToBottom.d.ts +0 -1
- package/{dist/bubble → lib/Bubble}/ScrollToBottom.js +15 -14
- package/lib/Bubble/Spin.d.ts +1 -0
- package/lib/Bubble/Spin.js +21 -0
- package/lib/Bubble/hooks/useListData.d.ts +0 -0
- package/lib/Bubble/hooks/useListData.js +0 -0
- package/lib/Bubble/interface.d.ts +62 -0
- package/lib/Bubble/loading.js +17 -0
- package/lib/Bubble/style/avatar.d.ts +2 -0
- package/lib/Bubble/style/avatar.js +8 -0
- package/lib/Bubble/style/index.d.ts +2 -0
- package/lib/Bubble/style/index.js +46 -0
- package/lib/Bubble/style/list.d.ts +2 -0
- package/lib/Bubble/style/list.js +16 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.d.ts +0 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.js +39 -28
- package/lib/ChatAnywhere/Chat/style.d.ts +2 -0
- package/lib/ChatAnywhere/Chat/style.js +14 -0
- package/lib/ChatAnywhere/Header/index.d.ts +1 -0
- package/lib/ChatAnywhere/Header/index.js +39 -0
- package/lib/ChatAnywhere/Header/style.d.ts +2 -0
- package/lib/ChatAnywhere/Header/style.js +12 -0
- package/lib/ChatAnywhere/Input/index.d.ts +3 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Input/index.js +87 -68
- package/lib/ChatAnywhere/Input/style.d.ts +2 -0
- package/lib/ChatAnywhere/Input/style.js +6 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Layout/index.d.ts +1 -2
- package/lib/ChatAnywhere/Layout/index.js +91 -0
- package/lib/ChatAnywhere/Layout/style.d.ts +2 -0
- package/lib/ChatAnywhere/Layout/style.js +16 -0
- package/lib/ChatAnywhere/SessionList/index.d.ts +3 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/SessionList/index.js +67 -55
- package/lib/ChatAnywhere/SessionList/style.d.ts +2 -0
- package/lib/ChatAnywhere/SessionList/style.js +14 -0
- package/lib/ChatAnywhere/hooks/ChatAnywhereProvider.d.ts +148 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/ChatAnywhereProvider.js +11 -5
- package/lib/ChatAnywhere/hooks/types.d.ts +312 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.d.ts +3 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.js +10 -2
- package/{dist/chat-anywhere → lib/ChatAnywhere}/index.d.ts +4 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/index.js +28 -15
- package/{dist/conversations → lib/Conversations}/GroupTitle.d.ts +4 -0
- package/{dist/conversations → lib/Conversations}/GroupTitle.js +7 -5
- package/{dist/conversations → lib/Conversations}/Item.d.ts +1 -0
- package/lib/Conversations/Item.js +208 -0
- package/lib/Conversations/hooks/useGroupable.d.ts +8 -0
- package/lib/Conversations/index.d.ts +55 -0
- package/{dist/conversations → lib/Conversations}/index.js +50 -61
- package/lib/Conversations/interface.d.ts +56 -0
- package/lib/Conversations/style.d.ts +2 -0
- package/lib/Conversations/style.js +60 -0
- package/{dist/default-cards/DeepThink → lib/DefaultCards/DeepThinking}/index.d.ts +2 -3
- package/lib/DefaultCards/DeepThinking/index.js +12 -0
- package/lib/DefaultCards/Files/index.d.ts +1 -0
- package/lib/DefaultCards/Files/index.js +56 -0
- package/{dist/default-cards → lib/DefaultCards}/Footer/index.d.ts +3 -4
- package/lib/DefaultCards/Footer/index.js +74 -0
- package/lib/DefaultCards/Images/index.d.ts +1 -0
- package/lib/DefaultCards/Images/index.js +49 -0
- package/{dist/default-cards → lib/DefaultCards}/Interrupted/index.d.ts +1 -3
- package/lib/DefaultCards/Interrupted/index.js +54 -0
- package/lib/DefaultCards/Text/index.d.ts +1 -0
- package/{dist/default-cards → lib/DefaultCards}/Text/index.js +4 -2
- package/lib/DefaultCards/count/index.d.ts +1 -0
- package/lib/DefaultCards/count/index.js +36 -0
- package/{dist/default-cards → lib/DefaultCards}/index.d.ts +1 -1
- package/{dist/default-cards → lib/DefaultCards}/index.js +1 -1
- package/lib/Disclaimer/index.d.ts +22 -0
- package/lib/Disclaimer/index.js +26 -0
- package/lib/Disclaimer/style.d.ts +2 -0
- package/lib/Disclaimer/style.js +10 -0
- package/lib/ImageGenerator/index.d.ts +41 -0
- package/lib/ImageGenerator/index.js +75 -0
- package/lib/ImageGenerator/style.d.ts +2 -0
- package/lib/ImageGenerator/style.js +20 -0
- package/{dist/markdown → lib/Markdown}/Citation.js +19 -14
- package/{dist/markdown → lib/Markdown}/CodeBlock.d.ts +1 -0
- package/{dist/markdown → lib/Markdown}/CodeBlock.js +51 -30
- package/lib/Markdown/ImageOrMedia.d.ts +1 -0
- package/lib/Markdown/ImageOrMedia.js +113 -0
- package/lib/Markdown/Link.js +48 -0
- package/{dist/markdown → lib/Markdown}/Markdown.js +22 -11
- package/lib/Markdown/cursor/Dot.d.ts +1 -0
- package/lib/Markdown/cursor/Dot.js +35 -0
- package/lib/Markdown/cursor/Underline.d.ts +1 -0
- package/lib/Markdown/cursor/Underline.js +19 -0
- package/lib/Markdown/hooks/index.d.ts +0 -0
- package/lib/Markdown/hooks/index.js +0 -0
- package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.js +1 -1
- package/lib/Markdown/index.d.ts +63 -0
- package/lib/Markdown/index.js +44 -0
- package/lib/Markdown/style.d.ts +2 -0
- package/lib/Markdown/style.js +36 -0
- package/lib/Markdown/type.d.ts +186 -0
- package/{dist/markdown → lib/Markdown}/utils.js +1 -2
- package/lib/Mermaid/index.d.ts +18 -0
- package/{dist/voice-chat/Recorder → lib/Mermaid}/index.js +144 -160
- package/{dist/provider → lib/Provider}/CustomCardsProvider.d.ts +2 -1
- package/{dist/provider → lib/Provider}/CustomCardsProvider.js +5 -3
- package/{dist/provider → lib/Provider}/GlobalProvider.d.ts +1 -1
- package/{dist/provider → lib/Provider}/GlobalProvider.js +5 -3
- package/{dist/provider → lib/Provider}/index.d.ts +1 -2
- package/{dist/provider → lib/Provider}/index.js +9 -6
- package/lib/Provider/types.d.ts +24 -0
- package/lib/Provider/types.js +1 -0
- package/lib/Sender/ModeSelect/index.d.ts +17 -0
- package/lib/Sender/ModeSelect/index.js +109 -0
- package/lib/Sender/ModeSelect/styles.d.ts +0 -0
- package/lib/Sender/ModeSelect/styles.js +0 -0
- package/lib/Sender/SenderHeader.d.ts +63 -0
- package/{dist/sender → lib/Sender}/SenderHeader.js +40 -32
- package/{dist/sender → lib/Sender}/StopLoading.d.ts +1 -1
- package/lib/Sender/StopLoading.js +25 -0
- package/lib/Sender/components/ActionButton.d.ts +72 -0
- package/{dist/sender → lib/Sender}/components/ActionButton.js +9 -5
- package/lib/Sender/components/ClearButton.js +19 -0
- package/lib/Sender/components/LoadingButton.js +28 -0
- package/lib/Sender/components/SendButton.js +20 -0
- package/lib/Sender/components/SpeechButton/RecordingIcon.d.ts +8 -0
- package/lib/Sender/components/SpeechButton/RecordingIcon.js +54 -0
- package/lib/Sender/components/SpeechButton/index.js +35 -0
- package/lib/Sender/index.d.ts +142 -0
- package/{dist/sender → lib/Sender}/index.js +128 -121
- package/lib/Sender/style/index.d.ts +2 -0
- package/lib/Sender/style/index.js +41 -0
- package/{dist/stream → lib/Stream}/index.d.ts +4 -2
- package/{dist/stream → lib/Stream}/index.js +1 -1
- package/lib/Util/createStyle.d.ts +5 -0
- package/lib/Util/createStyle.js +20 -0
- package/lib/Util/sleep.d.ts +1 -0
- package/lib/Util/sleep.js +5 -0
- package/lib/Util/type.js +1 -0
- package/{dist/_util → lib/Util}/warning.d.ts +2 -2
- package/lib/Voice/Recorder.d.ts +1 -0
- package/lib/Voice/Recorder.js +6 -0
- package/lib/Voice/index.d.ts +0 -0
- package/lib/Voice/index.js +0 -0
- package/lib/Welcome/index.d.ts +24 -0
- package/lib/Welcome/index.js +39 -0
- package/lib/index.d.ts +25 -0
- package/lib/index.js +24 -0
- package/lib/index.less +0 -0
- package/package.json +27 -13
- package/dist/accordion/Accordion.d.ts +0 -22
- package/dist/accordion/BodyContent.js +0 -18
- package/dist/accordion/DeepThink.d.ts +0 -7
- package/dist/accordion/DeepThink.js +0 -35
- package/dist/accordion/index.d.ts +0 -2
- package/dist/accordion/index.less +0 -170
- package/dist/attachments/DropArea.d.ts +0 -8
- package/dist/attachments/FileList/AudioIcon.d.ts +0 -2
- package/dist/attachments/FileList/AudioIcon.js +0 -19
- package/dist/attachments/FileList/FileListCard.d.ts +0 -12
- package/dist/attachments/FileList/Progress.d.ts +0 -6
- package/dist/attachments/FileList/VideoIcon.d.ts +0 -2
- package/dist/attachments/FileList/VideoIcon.js +0 -19
- package/dist/attachments/FileList/index.d.ts +0 -16
- package/dist/attachments/PlaceholderUploader.d.ts +0 -17
- package/dist/attachments/SilentUploader.d.ts +0 -9
- package/dist/attachments/SilentUploader.js +0 -23
- package/dist/attachments/context.d.ts +0 -5
- package/dist/attachments/index.d.ts +0 -33
- package/dist/attachments/style/fileCard.d.ts +0 -4
- package/dist/attachments/style/fileCard.js +0 -124
- package/dist/attachments/style/index.d.ts +0 -10
- package/dist/attachments/style/index.js +0 -211
- package/dist/bubble/Bubble.d.ts +0 -11
- package/dist/bubble/BubbleList.d.ts +0 -15
- package/dist/bubble/BubbleList.js +0 -44
- package/dist/bubble/Spin.d.ts +0 -2
- package/dist/bubble/Spin.js +0 -18
- package/dist/bubble/interface.d.ts +0 -26
- package/dist/bubble/loading.js +0 -17
- package/dist/bubble/style/avatar.less +0 -40
- package/dist/bubble/style/content.d.ts +0 -4
- package/dist/bubble/style/content.js +0 -43
- package/dist/bubble/style/index.d.ts +0 -9
- package/dist/bubble/style/index.js +0 -53
- package/dist/bubble/style/list.less +0 -15
- package/dist/bubble/style/scrollToBottom.less +0 -174
- package/dist/chat-anywhere/Chat/index.less +0 -54
- package/dist/chat-anywhere/Header/index.d.ts +0 -3
- package/dist/chat-anywhere/Header/index.js +0 -32
- package/dist/chat-anywhere/Header/index.less +0 -24
- package/dist/chat-anywhere/Input/index.d.ts +0 -3
- package/dist/chat-anywhere/Input/index.less +0 -12
- package/dist/chat-anywhere/Layout/index.js +0 -73
- package/dist/chat-anywhere/Layout/index.less +0 -61
- package/dist/chat-anywhere/SessionList/index.d.ts +0 -5
- package/dist/chat-anywhere/SessionList/index.less +0 -52
- package/dist/chat-anywhere/hooks/ChatAnywhereProvider.d.ts +0 -43
- package/dist/chat-anywhere/hooks/types.d.ts +0 -57
- package/dist/conversations/Item.js +0 -96
- package/dist/conversations/hooks/useGroupable.d.ts +0 -9
- package/dist/conversations/index.d.ts +0 -62
- package/dist/conversations/interface.d.ts +0 -60
- package/dist/conversations/style/index.d.ts +0 -9
- package/dist/conversations/style/index.js +0 -80
- package/dist/default-cards/Count/index.d.ts +0 -3
- package/dist/default-cards/Count/index.js +0 -16
- package/dist/default-cards/Count/index.less +0 -19
- package/dist/default-cards/DeepThink/index.js +0 -11
- package/dist/default-cards/Files/index.d.ts +0 -2
- package/dist/default-cards/Files/index.js +0 -18
- package/dist/default-cards/Footer/index.js +0 -50
- package/dist/default-cards/Footer/index.less +0 -41
- package/dist/default-cards/Images/index.d.ts +0 -3
- package/dist/default-cards/Images/index.js +0 -33
- package/dist/default-cards/Images/index.less +0 -17
- package/dist/default-cards/Interrupted/index.js +0 -40
- package/dist/default-cards/Interrupted/index.less +0 -57
- package/dist/default-cards/Text/index.d.ts +0 -2
- package/dist/disclaimer/index.d.ts +0 -11
- package/dist/disclaimer/index.js +0 -26
- package/dist/docs/1896.async.js +0 -457
- package/dist/docs/2710.async.js +0 -62
- package/dist/docs/2863.async.js +0 -400
- package/dist/docs/3057.async.js +0 -46
- package/dist/docs/3364.async.js +0 -25
- package/dist/docs/404.html +0 -15
- package/dist/docs/4820.async.js +0 -1381
- package/dist/docs/5623.async.js +0 -60
- package/dist/docs/5757.async.js +0 -1
- package/dist/docs/5804.async.js +0 -271
- package/dist/docs/6198.async.js +0 -18
- package/dist/docs/6671.async.js +0 -137
- package/dist/docs/7195.async.js +0 -1
- package/dist/docs/7485.async.js +0 -29
- package/dist/docs/7931.async.js +0 -19
- package/dist/docs/7997.async.js +0 -5
- package/dist/docs/8156.async.js +0 -110
- package/dist/docs/8368.async.js +0 -2
- package/dist/docs/8480.async.js +0 -1449
- package/dist/docs/8618.async.js +0 -246
- package/dist/docs/9016.async.js +0 -32
- package/dist/docs/9016.chunk.css +0 -1
- package/dist/docs/9335.async.js +0 -11
- package/dist/docs/accordion__demos.async.js +0 -9
- package/dist/docs/attachments__demos.async.js +0 -1
- package/dist/docs/bubble__demos.async.js +0 -50
- package/dist/docs/components/accordion/index.html +0 -15
- package/dist/docs/components/accordion-cn/index.html +0 -15
- package/dist/docs/components/attachments/index.html +0 -15
- package/dist/docs/components/attachments-cn/index.html +0 -15
- package/dist/docs/components/bubble/index.html +0 -15
- package/dist/docs/components/bubble-cn/index.html +0 -15
- package/dist/docs/components/bubble-list/index.html +0 -15
- package/dist/docs/components/bubble-list-cn/index.html +0 -15
- package/dist/docs/components/conversations/index.html +0 -15
- package/dist/docs/components/conversations-cn/index.html +0 -15
- package/dist/docs/components/disclaimer/index.html +0 -15
- package/dist/docs/components/disclaimer-cn/index.html +0 -15
- package/dist/docs/components/footer/index.html +0 -15
- package/dist/docs/components/footer-cn/index.html +0 -15
- package/dist/docs/components/markdown/index.html +0 -15
- package/dist/docs/components/markdown-cn/index.html +0 -15
- package/dist/docs/components/sender/index.html +0 -15
- package/dist/docs/components/sender-cn/index.html +0 -15
- package/dist/docs/components/status/index.html +0 -15
- package/dist/docs/components/status-cn/index.html +0 -15
- package/dist/docs/components/welcome/index.html +0 -15
- package/dist/docs/components/welcome-cn/index.html +0 -15
- package/dist/docs/components__accordion__index.en-US.md.async.js +0 -6
- package/dist/docs/components__accordion__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__accordion__index.zh-CN.md.async.js +0 -6
- package/dist/docs/components__accordion__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__attachments__index.en-US.md.async.js +0 -1
- package/dist/docs/components__attachments__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__attachments__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__attachments__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__bubble-list__index.en-US.md.async.js +0 -2
- package/dist/docs/components__bubble-list__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__bubble-list__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__bubble-list__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__bubble__index.en-US.md.async.js +0 -1
- package/dist/docs/components__bubble__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__bubble__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__bubble__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__conversations__index.en-US.md.async.js +0 -2
- package/dist/docs/components__conversations__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__conversations__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__conversations__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__disclaimer__index.en-US.md.async.js +0 -1
- package/dist/docs/components__disclaimer__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__disclaimer__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__disclaimer__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__footer__index.en-US.md.async.js +0 -1
- package/dist/docs/components__footer__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__footer__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__footer__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__markdown__index.en-US.md.async.js +0 -1
- package/dist/docs/components__markdown__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__markdown__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__markdown__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__sender__index.en-US.md.async.js +0 -1
- package/dist/docs/components__sender__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__sender__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__sender__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__status__index.en-US.md.async.js +0 -1
- package/dist/docs/components__status__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__status__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__status__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__welcome__index.en-US.md.async.js +0 -2
- package/dist/docs/components__welcome__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__welcome__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__welcome__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/conversations__demos.async.js +0 -1
- package/dist/docs/demos.async.js +0 -47
- package/dist/docs/demos.chunk.css +0 -1
- package/dist/docs/disclaimer__demos.async.js +0 -1
- package/dist/docs/docs/development/ag-ui/index.html +0 -15
- package/dist/docs/docs/development/ag-ui-cn/index.html +0 -15
- package/dist/docs/docs/development/backend/index.html +0 -15
- package/dist/docs/docs/development/backend-cn/index.html +0 -15
- package/dist/docs/docs/development/cards/index.html +0 -15
- package/dist/docs/docs/development/cards-cn/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-api/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-api-cn/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-cn/index.html +0 -15
- package/dist/docs/docs/development/custom/index.html +0 -15
- package/dist/docs/docs/development/custom-cn/index.html +0 -15
- package/dist/docs/docs/development/overview/index.html +0 -15
- package/dist/docs/docs/development/overview-cn/index.html +0 -15
- package/dist/docs/docs/development/qwen/index.html +0 -15
- package/dist/docs/docs/development/qwen-cn/index.html +0 -15
- package/dist/docs/docs/templates/copilot/index.html +0 -15
- package/dist/docs/docs/templates/copilot-cn/index.html +0 -15
- package/dist/docs/docs/templates/native/index.html +0 -15
- package/dist/docs/docs/templates/native-cn/index.html +0 -15
- package/dist/docs/docs/templates/voice/index.html +0 -15
- package/dist/docs/docs/templates/voice-cn/index.html +0 -15
- package/dist/docs/docs__development__ag-ui.en-US.md.async.js +0 -210
- package/dist/docs/docs__development__ag-ui.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__ag-ui.zh-CN.md.async.js +0 -210
- package/dist/docs/docs__development__ag-ui.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__backend.en-US.md.async.js +0 -12
- package/dist/docs/docs__development__backend.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__backend.zh-CN.md.async.js +0 -12
- package/dist/docs/docs__development__backend.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__cards.en-US.md.async.js +0 -27
- package/dist/docs/docs__development__cards.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__cards.zh-CN.md.async.js +0 -27
- package/dist/docs/docs__development__cards.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.async.js +0 -69
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.async.js +0 -69
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere.en-US.md.async.js +0 -77
- package/dist/docs/docs__development__chatanywhere.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.async.js +0 -77
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__custom.en-US.md.async.js +0 -22
- package/dist/docs/docs__development__custom.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__custom.zh-CN.md.async.js +0 -22
- package/dist/docs/docs__development__custom.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__overview.en-US.md.async.js +0 -21
- package/dist/docs/docs__development__overview.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__overview.zh-CN.md.async.js +0 -21
- package/dist/docs/docs__development__overview.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__qwen.en-US.md.async.js +0 -25
- package/dist/docs/docs__development__qwen.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__qwen.zh-CN.md.async.js +0 -25
- package/dist/docs/docs__development__qwen.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__copilot.en-US.md.async.js +0 -1
- package/dist/docs/docs__templates__copilot.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__copilot.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__copilot.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__native.en-US.md.async.js +0 -1
- package/dist/docs/docs__templates__native.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__native.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__native.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__voice.en-US.md.async.js +0 -20
- package/dist/docs/docs__templates__voice.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__voice.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__voice.zh-CN.md.chunk.css +0 -1
- package/dist/docs/dumi__pages__index__index.en-US.async.js +0 -1
- package/dist/docs/dumi__pages__index__index.en-US.chunk.css +0 -1
- package/dist/docs/dumi__pages__index__index.zh-CN.async.js +0 -1
- package/dist/docs/dumi__pages__index__index.zh-CN.chunk.css +0 -1
- package/dist/docs/dumi__theme__layouts__DocLayout__index.async.js +0 -1
- package/dist/docs/dumi__theme__layouts__DocLayout__index.chunk.css +0 -1
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.async.js +0 -18
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.chunk.css +0 -1
- package/dist/docs/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +0 -1
- package/dist/docs/index/index.html +0 -15
- package/dist/docs/index-cn/index.html +0 -15
- package/dist/docs/markdown__demos.async.js +0 -164
- package/dist/docs/meta__components__en-US.async.js +0 -9
- package/dist/docs/meta__components__zh-CN.async.js +0 -10
- package/dist/docs/meta__docs__en-US.async.js +0 -475
- package/dist/docs/meta__docs__en-US.chunk.css +0 -1
- package/dist/docs/meta__docs__zh-CN.async.js +0 -456
- package/dist/docs/meta__docs__zh-CN.chunk.css +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__404.async.js +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.async.js +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.chunk.css +0 -1
- package/dist/docs/preload_helper.js +0 -1
- package/dist/docs/sender__demos.async.js +0 -1
- package/dist/docs/umi.css +0 -1
- package/dist/docs/umi.js +0 -107
- package/dist/docs/welcome__demos.async.js +0 -1
- package/dist/docs/~demos/:id/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-inline/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-mutisteps/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-thinking/index.html +0 -15
- package/dist/docs/~demos/attachments-demo-files/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-basic/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-havestopped/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithfile/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithimage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithnormal/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withavatar/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withcode/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-witherror/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-witherrordetail/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withimage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withusage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withwaitingmessage/index.html +0 -15
- package/dist/docs/~demos/components-bubble-list-demo-basic/index.html +0 -15
- package/dist/docs/~demos/components-footer-demo-basic/index.html +0 -15
- package/dist/docs/~demos/components-footer-demo-withusage/index.html +0 -15
- package/dist/docs/~demos/components-status-demo-basic/index.html +0 -15
- package/dist/docs/~demos/conversations-demo-basic/index.html +0 -15
- package/dist/docs/~demos/disclaimer-demo-demo/index.html +0 -15
- package/dist/docs/~demos/disclaimer-demo-withlink/index.html +0 -15
- package/dist/docs/~demos/docs-development-ag-ui-demo-with-copilotkit/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-file/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-footer/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-image/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-text/index.html +0 -15
- package/dist/docs/~demos/docs-development-custom-demo-custom/index.html +0 -15
- package/dist/docs/~demos/docs-templates-copilot-demo-copilot/index.html +0 -15
- package/dist/docs/~demos/docs-templates-native-demo-basic/index.html +0 -15
- package/dist/docs/~demos/docs-templates-voice-demo-demo/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-citations/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-cursor/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-mathjax/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-md/index.html +0 -15
- package/dist/docs/~demos/sender-demo-basic/index.html +0 -15
- package/dist/docs/~demos/sender-demo-disabled/index.html +0 -15
- package/dist/docs/~demos/sender-demo-loading/index.html +0 -15
- package/dist/docs/~demos/sender-demo-moreprefixaction/index.html +0 -15
- package/dist/docs/~demos/sender-demo-withfile/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo0/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo1/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo2/index.html +0 -15
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -20
- package/dist/index.less +0 -1
- package/dist/markdown/ImageOrVideo.d.ts +0 -2
- package/dist/markdown/ImageOrVideo.js +0 -81
- package/dist/markdown/Link.js +0 -28
- package/dist/markdown/cursor/Blur.d.ts +0 -3
- package/dist/markdown/cursor/Blur.js +0 -7
- package/dist/markdown/cursor/Dot.d.ts +0 -3
- package/dist/markdown/cursor/Dot.js +0 -16
- package/dist/markdown/cursor/Underline.d.ts +0 -3
- package/dist/markdown/cursor/Underline.js +0 -7
- package/dist/markdown/cursor/index.less +0 -124
- package/dist/markdown/hooks/index.d.ts +0 -1
- package/dist/markdown/hooks/index.js +0 -49
- package/dist/markdown/index.d.ts +0 -16
- package/dist/markdown/index.js +0 -37
- package/dist/markdown/index.less +0 -204
- package/dist/markdown/type.d.ts +0 -46
- package/dist/provider/types.d.ts +0 -8
- package/dist/sender/SenderHeader.d.ts +0 -19
- package/dist/sender/StopLoading.js +0 -20
- package/dist/sender/components/ActionButton.d.ts +0 -22
- package/dist/sender/components/ClearButton.js +0 -13
- package/dist/sender/components/LoadingButton.js +0 -22
- package/dist/sender/components/SendButton.js +0 -14
- package/dist/sender/components/SpeechButton/RecordingIcon.d.ts +0 -5
- package/dist/sender/components/SpeechButton/RecordingIcon.js +0 -49
- package/dist/sender/components/SpeechButton/index.js +0 -30
- package/dist/sender/index.d.ts +0 -61
- package/dist/sender/style/header.d.ts +0 -4
- package/dist/sender/style/header.js +0 -46
- package/dist/sender/style/index.d.ts +0 -10
- package/dist/sender/style/index.js +0 -123
- package/dist/stream/index.en-US.md.bk +0 -50
- package/dist/stream/index.zh-CN.md.bk +0 -51
- package/dist/theme/components.d.ts +0 -10
- package/dist/theme/cssinjs-utils.d.ts +0 -14
- package/dist/theme/genStyleUtils.d.ts +0 -28
- package/dist/theme/useToken.d.ts +0 -18
- package/dist/theme/useToken.js +0 -110
- package/dist/voice-chat/Recorder/index.d.ts +0 -26
- package/dist/voice-chat/VoiceChatProvider/context.d.ts +0 -22
- package/dist/voice-chat/VoiceChatProvider/context.js +0 -3
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.d.ts +0 -1
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.js +0 -5
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.d.ts +0 -8
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.js +0 -31
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.d.ts +0 -5
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.js +0 -48
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.d.ts +0 -4
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.js +0 -10
- package/dist/voice-chat/VoiceChatProvider/index.d.ts +0 -9
- package/dist/voice-chat/VoiceChatProvider/index.js +0 -55
- package/dist/voice-chat/VoiceChatService/index.d.ts +0 -34
- package/dist/voice-chat/index.d.ts +0 -2
- package/dist/voice-chat/index.js +0 -2
- package/dist/voice-chat/types/index.d.ts +0 -12
- package/dist/voice-chat/types/index.js +0 -4
- package/dist/welcome/icon.d.ts +0 -2
- package/dist/welcome/icon.js +0 -38
- package/dist/welcome/index.d.ts +0 -9
- package/dist/welcome/index.js +0 -57
- /package/{dist/_util/type.js → lib/AGUI/components/chat/props.js} +0 -0
- /package/{dist/bubble/interface.js → lib/AGUI/context/index.js} +0 -0
- /package/{dist/bubble/hooks/useDisplayData.d.ts → lib/AGUI/styles.css} +0 -0
- /package/{dist/bubble/hooks/useDisplayData.js → lib/AGUI/types/css.d.ts} +0 -0
- /package/{dist/bubble/hooks/useListData.d.ts → lib/AGUI/types/css.js} +0 -0
- /package/{dist/chat-anywhere/hooks/types.js → lib/AGUI/types/index.js} +0 -0
- /package/{dist/conversations/interface.js → lib/AGUI/types/suggestions.js} +0 -0
- /package/{dist/accordion → lib/Accordion}/index.js +0 -0
- /package/{dist/attachments → lib/Attachments}/context.js +0 -0
- /package/{dist/attachments → lib/Attachments}/util.d.ts +0 -0
- /package/{dist/attachments → lib/Attachments}/util.js +0 -0
- /package/{dist/bubble/hooks/useListData.js → lib/Bubble/hooks/useDisplayData.d.ts} +0 -0
- /package/{dist/default-cards/DeepThink/index.less → lib/Bubble/hooks/useDisplayData.js} +0 -0
- /package/{dist/bubble → lib/Bubble}/index.d.ts +0 -0
- /package/{dist/bubble → lib/Bubble}/index.js +0 -0
- /package/{dist/markdown/type.js → lib/Bubble/interface.js} +0 -0
- /package/{dist/bubble → lib/Bubble}/loading.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.js +0 -0
- /package/{dist/provider → lib/ChatAnywhere/hooks}/types.js +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.js +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.js +0 -0
- /package/{dist/conversations → lib/Conversations}/hooks/useGroupable.js +0 -0
- /package/{dist/theme/components.js → lib/Conversations/interface.js} +0 -0
- /package/{dist/markdown → lib/Markdown}/Citation.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/Link.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/Markdown.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/footnote.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/footnote.js +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/katexDir.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/katexDir.js +0 -0
- /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.js +0 -0
- /package/{dist/theme/cssinjs-utils.js → lib/Markdown/type.js} +0 -0
- /package/{dist/markdown → lib/Markdown}/utils.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/ClearButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/LoadingButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/SendButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/SpeechButton/index.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/useSpeech.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/useSpeech.js +0 -0
- /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.d.ts +0 -0
- /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.js +0 -0
- /package/{dist/_util → lib/Util}/type.d.ts +0 -0
- /package/{dist/_util → lib/Util}/warning.js +0 -0
- /package/{dist/version → lib/Version}/index.d.ts +0 -0
- /package/{dist/version → lib/Version}/index.js +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
7
|
import { Avatar as AAvatar } from 'antd';
|
|
6
8
|
import classnames from 'classnames';
|
|
7
9
|
import React from 'react';
|
|
8
|
-
import "
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
11
|
var Avatar = function Avatar(props) {
|
|
10
12
|
var avatar = props.avatar,
|
|
11
13
|
msgStatus = props.msgStatus,
|
|
@@ -13,10 +15,11 @@ var Avatar = function Avatar(props) {
|
|
|
13
15
|
prefixCls = props.prefixCls,
|
|
14
16
|
className = props.className,
|
|
15
17
|
style = props.style;
|
|
16
|
-
var avatarNode = /*#__PURE__*/React.isValidElement(avatar) ? avatar : /*#__PURE__*/
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
+
var avatarNode = /*#__PURE__*/React.isValidElement(avatar) ? avatar : /*#__PURE__*/_jsx(AAvatar, _objectSpread({}, avatar));
|
|
19
|
+
return /*#__PURE__*/_jsx("div", {
|
|
18
20
|
className: classnames("".concat(prefixCls, "-avatar"), _defineProperty({}, "".concat(prefixCls, "-avatar-loading"), isAssistant && msgStatus === 'generating'), className),
|
|
19
|
-
style: style
|
|
20
|
-
|
|
21
|
+
style: style,
|
|
22
|
+
children: avatarNode
|
|
23
|
+
});
|
|
21
24
|
};
|
|
22
25
|
export default Avatar;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BubbleProps } from './interface';
|
|
3
|
+
export interface BubbleRef {
|
|
4
|
+
/**
|
|
5
|
+
* @description 气泡组件的原生DOM元素引用,用于直接操作DOM
|
|
6
|
+
* @descriptionEn Native DOM element reference of the bubble component for direct DOM manipulation
|
|
7
|
+
*/
|
|
8
|
+
nativeElement: HTMLElement;
|
|
9
|
+
}
|
|
10
|
+
export interface BubbleContextProps {
|
|
11
|
+
/**
|
|
12
|
+
* @description 气泡内容更新时的回调函数,用于触发重新渲染
|
|
13
|
+
* @descriptionEn Callback function when bubble content updates for triggering re-render
|
|
14
|
+
*/
|
|
15
|
+
onUpdate?: VoidFunction;
|
|
16
|
+
}
|
|
17
|
+
export declare const BubbleContext: React.Context<BubbleContextProps>;
|
|
18
|
+
declare const _default: React.NamedExoticComponent<BubbleProps<string>>;
|
|
19
|
+
export default _default;
|
|
@@ -4,24 +4,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
7
|
import classnames from 'classnames';
|
|
14
8
|
import React from 'react';
|
|
15
|
-
import
|
|
16
|
-
import useStyle from "./style";
|
|
9
|
+
import useStyle from "./style/index";
|
|
17
10
|
import { Markdown, useProviderContext } from "./..";
|
|
18
11
|
import Cards from "./Cards";
|
|
19
12
|
import Spin from "./Spin";
|
|
20
13
|
import Avatar from "./Avatar";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
17
|
export var BubbleContext = /*#__PURE__*/React.createContext({});
|
|
22
18
|
var Bubble = function Bubble(props) {
|
|
23
|
-
var
|
|
24
|
-
className = props.className,
|
|
19
|
+
var className = props.className,
|
|
25
20
|
rootClassName = props.rootClassName,
|
|
26
21
|
style = props.style,
|
|
27
22
|
_props$classNames = props.classNames,
|
|
@@ -32,31 +27,26 @@ var Bubble = function Bubble(props) {
|
|
|
32
27
|
_props$content = props.content,
|
|
33
28
|
content = _props$content === void 0 ? '' : _props$content,
|
|
34
29
|
cards = props.cards,
|
|
35
|
-
variant = props.variant,
|
|
36
|
-
shape = props.shape,
|
|
37
30
|
msgStatus = props.msgStatus,
|
|
38
31
|
id = props.id,
|
|
39
|
-
role = props.role
|
|
32
|
+
role = props.role,
|
|
33
|
+
variant = props.variant;
|
|
40
34
|
var placement = {
|
|
41
35
|
'assistant': 'start',
|
|
42
36
|
'user': 'end'
|
|
43
37
|
}[role] || 'start';
|
|
44
38
|
var _useProviderContext = useProviderContext(),
|
|
45
39
|
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
46
|
-
var prefixCls = getPrefixCls('bubble'
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
wrapCSSVar = _useStyle2[0],
|
|
50
|
-
hashId = _useStyle2[1],
|
|
51
|
-
cssVarCls = _useStyle2[2];
|
|
52
|
-
var mergedCls = classnames(prefixCls, rootClassName, className, hashId, cssVarCls, "".concat(prefixCls, "-").concat(placement));
|
|
40
|
+
var prefixCls = getPrefixCls('bubble');
|
|
41
|
+
var Style = useStyle();
|
|
42
|
+
var mergedCls = classnames(prefixCls, rootClassName, className, "".concat(prefixCls, "-").concat(placement));
|
|
53
43
|
var contentNode;
|
|
54
44
|
// @ts-ignore
|
|
55
45
|
var isEmpty = !(content !== null && content !== void 0 && content.length) && !(cards !== null && cards !== void 0 && cards.length);
|
|
56
46
|
if (props.msgStatus === 'generating' && isEmpty) {
|
|
57
|
-
contentNode = /*#__PURE__*/
|
|
47
|
+
contentNode = /*#__PURE__*/_jsx(Spin, {});
|
|
58
48
|
} else {
|
|
59
|
-
contentNode = content ? /*#__PURE__*/
|
|
49
|
+
contentNode = content ? /*#__PURE__*/_jsx(Markdown, {
|
|
60
50
|
typing: true,
|
|
61
51
|
content: content,
|
|
62
52
|
cursor: props.msgStatus === 'generating'
|
|
@@ -64,39 +54,36 @@ var Bubble = function Bubble(props) {
|
|
|
64
54
|
}
|
|
65
55
|
var isAssistant = placement === 'assistant' || placement === 'start';
|
|
66
56
|
var variantClassname = "".concat(prefixCls, "-content-").concat(variant || (isAssistant ? 'borderless' : 'filled'));
|
|
67
|
-
var fullContent = /*#__PURE__*/
|
|
68
|
-
direction: "vertical",
|
|
57
|
+
var fullContent = /*#__PURE__*/_jsxs("div", {
|
|
69
58
|
style: !isAssistant && contentNode ? {
|
|
70
59
|
flexDirection: 'column-reverse'
|
|
71
60
|
} : {},
|
|
72
61
|
className: "".concat(prefixCls, "-content-wrapper"),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
62
|
+
children: [/*#__PURE__*/_jsx(Cards, {
|
|
63
|
+
cards: cards,
|
|
64
|
+
id: id,
|
|
65
|
+
className: classnames("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-wrapper-card"), variantClassname, classNames.content)
|
|
66
|
+
}), contentNode && /*#__PURE__*/_jsx("div", {
|
|
67
|
+
style: _objectSpread({}, styles.content),
|
|
68
|
+
className: classnames("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-wrapper-card"), variantClassname, classNames.content),
|
|
69
|
+
children: contentNode
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
72
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
73
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
74
|
+
style: style,
|
|
75
|
+
className: mergedCls,
|
|
76
|
+
id: id,
|
|
77
|
+
"data-role": role,
|
|
78
|
+
children: [avatar && /*#__PURE__*/_jsx(Avatar, {
|
|
79
|
+
avatar: avatar,
|
|
80
|
+
msgStatus: msgStatus,
|
|
81
|
+
isAssistant: isAssistant,
|
|
82
|
+
prefixCls: prefixCls,
|
|
83
|
+
className: classNames.avatar,
|
|
84
|
+
style: styles.avatar
|
|
85
|
+
}), fullContent]
|
|
86
|
+
})]
|
|
87
|
+
});
|
|
98
88
|
};
|
|
99
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
100
|
-
Bubble.displayName = 'Bubble';
|
|
101
|
-
}
|
|
102
89
|
export default /*#__PURE__*/React.memo(Bubble);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { BubbleProps } from './interface';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface BubbleListRef {
|
|
4
|
+
/**
|
|
5
|
+
* @description 滚动到列表底部的方法,用于自动滚动到最新消息
|
|
6
|
+
* @descriptionEn Method to scroll to the bottom of the list for auto-scrolling to latest messages
|
|
7
|
+
*/
|
|
8
|
+
scrollToBottom(): void;
|
|
9
|
+
}
|
|
10
|
+
export type BubbleDataType = BubbleProps & {
|
|
11
|
+
key?: string | number;
|
|
12
|
+
role?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
};
|
|
15
|
+
export interface BubbleListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
/**
|
|
17
|
+
* @description 气泡消息数据数组,用于渲染消息列表
|
|
18
|
+
* @descriptionEn Bubble message data array for rendering message list
|
|
19
|
+
*/
|
|
20
|
+
items?: BubbleDataType[];
|
|
21
|
+
/**
|
|
22
|
+
* @description 自定义子元素,用于扩展组件功能或自定义渲染
|
|
23
|
+
* @descriptionEn Custom child elements for extending component functionality or custom rendering
|
|
24
|
+
*/
|
|
25
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
26
|
+
/**
|
|
27
|
+
* @description 是否启用平滑滚动效果,影响滚动动画的流畅度
|
|
28
|
+
* @descriptionEn Whether to enable smooth scrolling effect, affects scrolling animation smoothness
|
|
29
|
+
*/
|
|
30
|
+
smooth?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description 语义化CSS类名,用于为不同区域添加自定义类名
|
|
33
|
+
* @descriptionEn Semantic CSS class names for adding custom classes to different areas
|
|
34
|
+
*/
|
|
35
|
+
classNames?: {
|
|
36
|
+
wrapper?: string;
|
|
37
|
+
list?: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
declare const ForwardBubbleList: React.ForwardRefExoticComponent<BubbleListProps & React.RefAttributes<BubbleListRef>>;
|
|
41
|
+
export default ForwardBubbleList;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["key"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import Bubble from "./Bubble";
|
|
11
|
+
import ScrollToBottom from "./ScrollToBottom";
|
|
12
|
+
import { StickToBottom } from 'use-stick-to-bottom';
|
|
13
|
+
import useStyle from "./style/list";
|
|
14
|
+
import { useProviderContext } from "./..";
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import cls from 'classnames';
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
import { createElement as _createElement } from "react";
|
|
19
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
|
+
var BubbleList = function BubbleList(props, ref) {
|
|
22
|
+
var _props$classNames, _props$classNames2;
|
|
23
|
+
var _props$items = props.items,
|
|
24
|
+
items = _props$items === void 0 ? [] : _props$items,
|
|
25
|
+
_props$smooth = props.smooth,
|
|
26
|
+
smooth = _props$smooth === void 0 ? true : _props$smooth;
|
|
27
|
+
var scrollToBottomRef = React.useRef();
|
|
28
|
+
var _useProviderContext = useProviderContext(),
|
|
29
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
30
|
+
var prefixCls = getPrefixCls('bubble-list');
|
|
31
|
+
var Style = useStyle();
|
|
32
|
+
React.useImperativeHandle(ref, function () {
|
|
33
|
+
return {
|
|
34
|
+
scrollToBottom: function scrollToBottom() {
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
scrollToBottomRef.current.scrollToBottom();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
var resize = smooth ? 'smooth' : 'instant';
|
|
41
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
42
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs(StickToBottom, {
|
|
43
|
+
id: props.id,
|
|
44
|
+
className: cls("".concat(prefixCls, "-wrapper"), (_props$classNames = props.classNames) === null || _props$classNames === void 0 ? void 0 : _props$classNames.wrapper),
|
|
45
|
+
resize: resize,
|
|
46
|
+
initial: resize,
|
|
47
|
+
style: props.style,
|
|
48
|
+
children: [/*#__PURE__*/_jsx(StickToBottom.Content, {
|
|
49
|
+
className: cls("".concat(prefixCls), (_props$classNames2 = props.classNames) === null || _props$classNames2 === void 0 ? void 0 : _props$classNames2.list),
|
|
50
|
+
children: props.children ? props.children : items.map(function (_ref) {
|
|
51
|
+
var key = _ref.key,
|
|
52
|
+
bubble = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
+
return /*#__PURE__*/_createElement(Bubble, _objectSpread(_objectSpread({}, bubble), {}, {
|
|
54
|
+
key: bubble.id || key
|
|
55
|
+
}));
|
|
56
|
+
})
|
|
57
|
+
}), /*#__PURE__*/_jsx(ScrollToBottom, {
|
|
58
|
+
ref: scrollToBottomRef
|
|
59
|
+
})]
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
var ForwardBubbleList = /*#__PURE__*/React.forwardRef(BubbleList);
|
|
64
|
+
export default ForwardBubbleList;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function Card(props: {
|
|
3
|
-
code: string;
|
|
4
|
-
component?: React.FC;
|
|
5
|
-
data?: string | any;
|
|
6
|
-
index: number;
|
|
7
|
-
id: string;
|
|
8
|
-
}): any;
|
|
9
2
|
export default function Cards(props: {
|
|
10
3
|
cards: {
|
|
4
|
+
id?: string;
|
|
11
5
|
code: string;
|
|
12
6
|
component?: React.FC;
|
|
13
7
|
data?: string | any;
|
|
14
8
|
}[];
|
|
15
9
|
id: string;
|
|
16
10
|
className?: string;
|
|
17
|
-
}):
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element[];
|
|
18
12
|
export declare function createCard(code: string, data: any): {
|
|
19
13
|
code: string;
|
|
20
14
|
data: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { useCustomCardsContext } from "./..";
|
|
3
|
-
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var Card = /*#__PURE__*/React.memo(function (props) {
|
|
4
5
|
var cardConfig = useCustomCardsContext();
|
|
5
6
|
var Component = useMemo(function () {
|
|
6
7
|
if (props.component) return props.component;
|
|
@@ -10,7 +11,7 @@ export function Card(props) {
|
|
|
10
11
|
};
|
|
11
12
|
}, []);
|
|
12
13
|
if (typeof Component === 'function') {
|
|
13
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
14
15
|
code: props.code,
|
|
15
16
|
data: props.data,
|
|
16
17
|
index: props.index,
|
|
@@ -19,23 +20,22 @@ export function Card(props) {
|
|
|
19
20
|
} else {
|
|
20
21
|
return Component;
|
|
21
22
|
}
|
|
22
|
-
}
|
|
23
|
+
});
|
|
23
24
|
export default function Cards(props) {
|
|
24
25
|
var cards = props.cards;
|
|
25
26
|
if (!(cards !== null && cards !== void 0 && cards.length)) return null;
|
|
26
27
|
return cards.map(function (card, index) {
|
|
27
|
-
var cardComp = /*#__PURE__*/
|
|
28
|
-
key: index,
|
|
28
|
+
var cardComp = /*#__PURE__*/_jsx(Card, {
|
|
29
29
|
code: card.code,
|
|
30
30
|
component: card.component,
|
|
31
31
|
data: card.data,
|
|
32
32
|
index: index,
|
|
33
33
|
id: props.id
|
|
34
|
-
});
|
|
35
|
-
if (card.code === 'Text') return /*#__PURE__*/
|
|
34
|
+
}, (card === null || card === void 0 ? void 0 : card.id) || index + card.code);
|
|
35
|
+
if (card.code === 'Text') return /*#__PURE__*/_jsx("div", {
|
|
36
36
|
className: props.className,
|
|
37
|
-
|
|
38
|
-
},
|
|
37
|
+
children: cardComp
|
|
38
|
+
}, index);
|
|
39
39
|
return cardComp;
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useProviderContext } from "./..";
|
|
3
|
-
import "./style/scrollToBottom.less";
|
|
4
|
-
import { Button } from 'antd';
|
|
5
|
-
import { ArrowDownOutlined } from '@ant-design/icons';
|
|
6
3
|
import cls from 'classnames';
|
|
7
4
|
import { useStickToBottomContext } from 'use-stick-to-bottom';
|
|
5
|
+
import { IconButton } from "@ali/agentscope-ai-design";
|
|
6
|
+
import { SparkDownArrowLine } from '@agentscope-ai/icons';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var ScrollToBottomButton = function ScrollToBottomButton(_, ref) {
|
|
9
9
|
var _useProviderContext = useProviderContext(),
|
|
10
10
|
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
@@ -30,16 +30,17 @@ var ScrollToBottomButton = function ScrollToBottomButton(_, ref) {
|
|
|
30
30
|
};
|
|
31
31
|
});
|
|
32
32
|
var prefixCls = getPrefixCls('bubble-list-scroll-to-bottom');
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
-
className: cls(prefixCls, "".concat(prefixCls, "-").concat(!isAtBottom ? 'show' : 'hide'))
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
return /*#__PURE__*/_jsx("div", {
|
|
34
|
+
className: cls(prefixCls, "".concat(prefixCls, "-").concat(!isAtBottom ? 'show' : 'hide')),
|
|
35
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
36
|
+
icon: /*#__PURE__*/_jsx(SparkDownArrowLine, {}),
|
|
37
|
+
shape: "circle",
|
|
38
|
+
onClick: function onClick() {
|
|
39
|
+
return scrollToBottom({
|
|
40
|
+
animation: 'instant'
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
});
|
|
44
45
|
};
|
|
45
46
|
export default /*#__PURE__*/React.forwardRef(ScrollToBottomButton);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useProviderContext } from "./..";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
export default function () {
|
|
5
|
+
var _useProviderContext = useProviderContext(),
|
|
6
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
7
|
+
var prefixCls = getPrefixCls('bubble-loading');
|
|
8
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
9
|
+
className: prefixCls,
|
|
10
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
11
|
+
className: "".concat(prefixCls, "-dot1")
|
|
12
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
13
|
+
className: "".concat(prefixCls, "-dot2")
|
|
14
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
15
|
+
className: "".concat(prefixCls, "-dot3")
|
|
16
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
17
|
+
className: "".concat(prefixCls, "-text"),
|
|
18
|
+
children: "-"
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AvatarProps } from 'antd';
|
|
3
|
+
import type { AnyObject } from '../Util/type';
|
|
4
|
+
type SemanticType = 'avatar' | 'content' | 'header' | 'footer';
|
|
5
|
+
export type BubbleContentType = React.ReactNode | AnyObject;
|
|
6
|
+
export interface BubbleProps<ContentType extends BubbleContentType = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
7
|
+
/**
|
|
8
|
+
* @description 自定义CSS类名前缀,用于样式隔离和主题定制
|
|
9
|
+
* @descriptionEn Custom CSS class name prefix for style isolation and theme customization
|
|
10
|
+
*/
|
|
11
|
+
prefixCls?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description 自定义根容器的CSS类名,用于覆盖默认样式
|
|
14
|
+
* @descriptionEn Custom CSS class name for the root container to override default styles
|
|
15
|
+
*/
|
|
16
|
+
rootClassName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @description 语义化样式对象,用于精确控制不同区域的样式
|
|
19
|
+
* @descriptionEn Semantic style object for precise control of different area styles
|
|
20
|
+
*/
|
|
21
|
+
styles?: Partial<Record<SemanticType, React.CSSProperties>>;
|
|
22
|
+
/**
|
|
23
|
+
* @description 语义化CSS类名,用于为不同区域添加自定义类名
|
|
24
|
+
* @descriptionEn Semantic CSS class names for adding custom classes to different areas
|
|
25
|
+
*/
|
|
26
|
+
classNames?: Partial<Record<SemanticType, string>>;
|
|
27
|
+
/**
|
|
28
|
+
* @description 用户头像配置,支持Antd Avatar属性或自定义React元素
|
|
29
|
+
* @descriptionEn User avatar configuration, supports Antd Avatar props or custom React elements
|
|
30
|
+
*/
|
|
31
|
+
avatar?: AvatarProps | React.ReactElement;
|
|
32
|
+
/**
|
|
33
|
+
* @description 是否显示加载状态,影响组件的视觉反馈
|
|
34
|
+
* @descriptionEn Whether to display loading state, affects visual feedback of the component
|
|
35
|
+
*/
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @description 气泡内容,支持文本、React元素或复杂数据结构
|
|
39
|
+
* @descriptionEn Bubble content, supports text, React elements, or complex data structures
|
|
40
|
+
*/
|
|
41
|
+
content?: BubbleContentType;
|
|
42
|
+
/**
|
|
43
|
+
* @description 自定义渲染卡片配置,用于展示特殊类型的内容
|
|
44
|
+
* @descriptionEn Custom render card configuration for displaying special types of content
|
|
45
|
+
*/
|
|
46
|
+
cards?: {
|
|
47
|
+
code: string;
|
|
48
|
+
data?: string | any;
|
|
49
|
+
component?: any;
|
|
50
|
+
}[];
|
|
51
|
+
/**
|
|
52
|
+
* @description 消息处理状态,影响显示样式和交互行为
|
|
53
|
+
* @descriptionEn Message processing status that affects display style and interaction behavior
|
|
54
|
+
*/
|
|
55
|
+
msgStatus?: 'finished' | 'generating' | 'interrupted' | 'error';
|
|
56
|
+
/**
|
|
57
|
+
* @description 消息的唯一标识符,用于状态管理和事件处理
|
|
58
|
+
* @descriptionEn Unique identifier for the message, used for state management and event handling
|
|
59
|
+
*/
|
|
60
|
+
id?: any;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
var Loading = function Loading(_ref) {
|
|
5
|
+
var prefixCls = _ref.prefixCls;
|
|
6
|
+
return /*#__PURE__*/_jsxs("span", {
|
|
7
|
+
className: "".concat(prefixCls, "-dot"),
|
|
8
|
+
children: [/*#__PURE__*/_jsx("i", {
|
|
9
|
+
className: "".concat(prefixCls, "-dot-item")
|
|
10
|
+
}, "item-".concat(1)), /*#__PURE__*/_jsx("i", {
|
|
11
|
+
className: "".concat(prefixCls, "-dot-item")
|
|
12
|
+
}, "item-".concat(2)), /*#__PURE__*/_jsx("i", {
|
|
13
|
+
className: "".concat(prefixCls, "-dot-item")
|
|
14
|
+
}, "item-".concat(3))]
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export default Loading;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { createGlobalStyle } from "../..";
|
|
4
|
+
export default createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-bubble-avatar {\n display: inline-flex;\n justify-content: center;\n align-self: flex-start;\n\n &-loading .", "-avatar::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n width: 100%;\n height: 200%;\n background-image: url('data:image/png;base64,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');\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n transform: rotate(-45deg);\n filter: blur(2px);\n animation: light_sweeping 1.5s infinite linear;\n }\n}\n\n@keyframes light_sweeping {\n 0% {\n transform: translate(-40%, -80%);\n opacity: 0.2;\n }\n\n 45% {\n transform: translate(20%, 20%);\n opacity: 0.8;\n }\n\n 100% {\n transform: translate(40%, 80%);\n opacity: 0.2;\n }\n}\n\n"])), function (p) {
|
|
5
|
+
return p.prefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.prefix;
|
|
8
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { createGlobalStyle } from "../..";
|
|
4
|
+
export default createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-bubble {\n display: flex;\n\n &-end,\n &-user {\n justify-content: flex-end;\n\n .", "-bubble-content-wrapper {\n align-items: flex-end;\n }\n }\n\n &-content-wrapper {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n }\n\n &-content-wrapper-card {\n }\n\n &-content {\n position: relative;\n box-sizing: border-box;\n min-width: 0;\n max-width: 100%;\n color: ", ";\n font-size: ", "px;\n line-height: ", ";\n word-break: break-word;\n }\n}\n\n.", "-bubble {\n &-content {\n &-filled {\n padding: 12px 16px;\n border-radius: ", "px;\n background-color: ", ";\n }\n }\n}\n\n\n\n.", "-bubble-loading {\n position: relative;\n display: flex;\n align-items: center;\n gap: 4px;\n filter: invert(1) brightness(100%) saturate(0%);\n\n &-text {\n opacity: 0;\n }\n\n &-dot1 {\n width: 4px;\n height: 4px;\n border-radius: 999px;\n background: linear-gradient(\n ", ",\n ", "\n ),\n linear-gradient(\n ", ",\n ", "\n );\n background-blend-mode: multiply;\n animation: dot_01 2.5s infinite ease;\n }\n &-dot2 {\n width: 4px;\n height: 4px;\n border-radius: 999px;\n background: linear-gradient(\n ", ",\n ", "\n ),\n linear-gradient(\n ", ",\n ", "\n );\n background-blend-mode: multiply;\n animation: dot_02 2.5s infinite ease;\n }\n &-dot3 {\n width: 4px;\n height: 4px;\n border-radius: 999px;\n background: linear-gradient(\n ", ",\n ", "\n ),\n linear-gradient(\n ", ",\n ", "\n );\n background-blend-mode: multiply;\n animation: dot_03 2.5s infinite ease;\n }\n}\n\n@keyframes dot_01 {\n 0% {\n transform: translateX(0px) scale(1);\n z-index: 3;\n }\n\n 30.3% {\n transform: translateX(15px) scale(1);\n z-index: 3;\n }\n 33.3% {\n transform: translateX(15px) scale(1);\n z-index: 1;\n }\n 63.6% {\n transform: translateX(7.5px) scale(0.75);\n z-index: 1;\n }\n 66.6% {\n transform: translateX(7.5px) scale(0.75);\n z-index: 2;\n }\n 97% {\n transform: translateX(0px) scale(1);\n z-index: 2;\n }\n}\n\n@keyframes dot_02 {\n 0% {\n transform: translateX(0px) scale(1);\n z-index: 2;\n }\n 23.3% {\n transform: translateX(-7.5px) scale(1.33333);\n z-index: 2;\n }\n\n 30.3% {\n transform: translateX(-7.5px) scale(1.33333);\n z-index: 3;\n }\n 56.6% {\n transform: translateX(7.5px) scale(1.33333);\n z-index: 3;\n }\n 63.6% {\n transform: translateX(7.5px) scale(1.33333);\n z-index: 1;\n }\n 97% {\n transform: translateX(0px) scale(1);\n z-index: 1;\n }\n}\n\n@keyframes dot_03 {\n 0% {\n transform: translateX(0px) scale(1);\n z-index: 1;\n }\n 23.3% {\n transform: translateX(-7.5px) scale(0.75);\n z-index: 1;\n }\n\n 30.3% {\n transform: translateX(-7.5px) scale(0.75);\n z-index: 2;\n }\n 56.6% {\n transform: translateX(-15px) scale(1);\n z-index: 2;\n }\n 63.6% {\n transform: translateX(-15px) scale(1);\n z-index: 3;\n }\n 97% {\n transform: translateX(0px) scale(1);\n z-index: 3;\n }\n}\n"])), function (p) {
|
|
5
|
+
return p.prefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.prefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.theme.colorText;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.theme.fontSize;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.theme.lineHeight;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.prefix;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.theme.borderRadiusLG;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.theme.colorPrimaryBg;
|
|
20
|
+
}, function (p) {
|
|
21
|
+
return p.prefix;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.theme.colorText;
|
|
24
|
+
}, function (p) {
|
|
25
|
+
return p.theme.colorText;
|
|
26
|
+
}, function (p) {
|
|
27
|
+
return p.theme.colorBgBase;
|
|
28
|
+
}, function (p) {
|
|
29
|
+
return p.theme.colorBgBase;
|
|
30
|
+
}, function (p) {
|
|
31
|
+
return p.theme.colorTextTertiary;
|
|
32
|
+
}, function (p) {
|
|
33
|
+
return p.theme.colorTextTertiary;
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return p.theme.colorBgBase;
|
|
36
|
+
}, function (p) {
|
|
37
|
+
return p.theme.colorBgBase;
|
|
38
|
+
}, function (p) {
|
|
39
|
+
return p.theme.colorTextSecondary;
|
|
40
|
+
}, function (p) {
|
|
41
|
+
return p.theme.colorTextSecondary;
|
|
42
|
+
}, function (p) {
|
|
43
|
+
return p.theme.colorBgBase;
|
|
44
|
+
}, function (p) {
|
|
45
|
+
return p.theme.colorBgBase;
|
|
46
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { createGlobalStyle } from "../..";
|
|
4
|
+
export default createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-bubble-list-wrapper {\n position: relative;\n overflow: hidden;\n mask-image: linear-gradient(to bottom, white 98%, transparent);\n}\n\n.", "-bubble-list {\n display: flex;\n flex-direction: column;\n gap: 24px;\n padding: 16px 16px 0 16px;\n\n &::after {\n display: block;\n content: ' ';\n height: 16px;\n }\n}\n\n.", "-bubble-list-scroll-to-bottom {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 10px;\n display: flex;\n justify-content: center;\n transition: all 0.2s;\n z-index: 10;\n\n &-hide {\n opacity: 0;\n transform: translateY(100%);\n pointer-events: none;\n }\n\n &-show {\n opacity: 1;\n transform: translateY(0%);\n }\n\n button {\n &:hover {\n border-color: ", " !important;\n background-color: ", " !important;\n color: ", " !important;\n }\n }\n}\n"])), function (p) {
|
|
5
|
+
return p.prefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.prefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.prefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.theme.colorPrimaryBorder;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.theme.colorPrimaryBg;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.theme.colorPrimary;
|
|
16
|
+
});
|