@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.
- 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 +92 -70
- 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/useInput.d.ts +2 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.js +8 -2
- 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 +36 -0
- package/lib/Markdown/cursor/Underline.d.ts +1 -0
- package/lib/Markdown/cursor/Underline.js +20 -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 +40 -0
- package/lib/Markdown/style.d.ts +2 -0
- package/lib/Markdown/style.js +30 -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/ResponsesAPI/index.d.ts +0 -0
- package/lib/ResponsesAPI/index.js +0 -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/package.json +28 -14
- 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/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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AnyObject } from '../Util/type';
|
|
3
|
+
import type { GroupTitleProps } from './GroupTitle';
|
|
4
|
+
type GroupType = string;
|
|
5
|
+
export interface Conversation extends AnyObject {
|
|
6
|
+
/**
|
|
7
|
+
* @description 会话的唯一标识符,用于区分不同的聊天会话
|
|
8
|
+
* @descriptionEn Unique identifier for the conversation to distinguish different chat sessions
|
|
9
|
+
*/
|
|
10
|
+
key: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description 会话的显示名称,支持文本或React元素
|
|
13
|
+
* @descriptionEn Display name for the conversation, supports text or React elements
|
|
14
|
+
*/
|
|
15
|
+
label?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* @description 会话创建或最后活动的时间戳,用于排序和显示
|
|
18
|
+
* @descriptionEn Timestamp of conversation creation or last activity for sorting and display
|
|
19
|
+
*/
|
|
20
|
+
timestamp?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @description 会话的图标元素,用于视觉识别
|
|
23
|
+
* @descriptionEn Icon element for the conversation for visual identification
|
|
24
|
+
*/
|
|
25
|
+
icon?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* @description 是否禁用该会话,影响交互功能
|
|
28
|
+
* @descriptionEn Whether to disable this conversation, affects interaction functionality
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description 是否在时间线中显示该会话,用于分组显示
|
|
33
|
+
* @descriptionEn Whether to show this conversation in timeline for grouped display
|
|
34
|
+
*/
|
|
35
|
+
timeline?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type GroupSorter = Parameters<GroupType[]['sort']>[0];
|
|
38
|
+
export type GroupTitleRenderComponents = {
|
|
39
|
+
components: {
|
|
40
|
+
GroupTitle: React.ComponentType<GroupTitleProps>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export type GroupTitleRender = ((group: GroupType, info: GroupTitleRenderComponents) => React.ReactNode) | undefined;
|
|
44
|
+
export interface Groupable {
|
|
45
|
+
/**
|
|
46
|
+
* @description 会话分组的排序函数,用于自定义排序逻辑
|
|
47
|
+
* @descriptionEn Sorting function for conversation grouping for custom sorting logic
|
|
48
|
+
*/
|
|
49
|
+
sort?: GroupSorter;
|
|
50
|
+
/**
|
|
51
|
+
* @description 自定义分组标题的渲染函数,用于个性化显示
|
|
52
|
+
* @descriptionEn Custom rendering function for group titles for personalized display
|
|
53
|
+
*/
|
|
54
|
+
title?: GroupTitleRender;
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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.", "-conversations {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 0;\n overflow-y: hidden;\n margin: 0;\n\n &-rtl {\n direction: rtl;\n }\n\n &-list {\n display: flex;\n gap: ", "px;\n flex-direction: column;\n\n .", "-conversations-item {\n padding-inline-start: ", "px;\n }\n\n .", "-conversations-label {\n color: ", ";\n }\n }\n\n &-timeline {\n position: relative;\n z-index: 1;\n width: 8px;\n height: 8px;\n border-radius: 8px;\n background-color: ", ";\n border: 1px solid ", ";\n margin-right: 8px;\n }\n\n &-content {\n height: 36px;\n display: flex;\n align-items: center;\n padding: 6px 2px 6px 16px;\n }\n\n &-desc {\n font-size: 12px;\n padding: 0 16px 6px 16px;\n color: ", ";\n }\n\n &-item {\n position: relative;\n border-radius: ", "px;\n cursor: pointer;\n transition: background-color 0.3s ease;\n\n &-timeline {\n &::before {\n content: '';\n position: absolute;\n left: 19.5px;\n top: 0;\n bottom: -8px;\n width: 1px;\n background: ", ";\n }\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &-active {\n background-color: ", ";\n\n .", "-conversations-label,\n .", "-conversations-menu-icon {\n color: ", ";\n }\n }\n\n &-disabled {\n cursor: not-allowed;\n\n .", "-conversations-label {\n color: ", ";\n }\n\n .", "-conversations-menu-icon {\n opacity: 0;\n }\n }\n\n &:hover,\n &-active {\n .", "-conversations-menu-icon {\n opacity: 1;\n }\n }\n\n &:focus-within {\n background-color: ", ";\n \n \n }\n }\n\n &-label {\n flex: 1;\n color: ", ";\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n\n &-label-edit {\n font-size: 14px;\n color: ", ";\n font-family: ", ";\n flex: 1;\n border: none;\n height: 22px;\n line-height: 22px;\n outline: none;\n background-color: transparent;\n padding: 0;\n }\n\n\n &-menu-icon {\n opacity: 0;\n transition: all 0.3s;\n font-size: ", "px;\n }\n\n &-group-title {\n display: flex;\n align-items: center;\n height: ", "px;\n min-height: ", "px;\n padding: 0 ", "px;\n }\n}"])), function (p) {
|
|
5
|
+
return p.prefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.theme.paddingXXS;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.prefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.theme.paddingXL;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.prefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.theme.colorTextSecondary;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.theme.colorBgBase;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.theme.colorBorder;
|
|
20
|
+
}, function (p) {
|
|
21
|
+
return p.theme.colorTextSecondary;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.theme.borderRadiusLG;
|
|
24
|
+
}, function (p) {
|
|
25
|
+
return p.theme.colorBorder;
|
|
26
|
+
}, function (p) {
|
|
27
|
+
return p.theme.colorFillTertiary;
|
|
28
|
+
}, function (p) {
|
|
29
|
+
return p.theme.colorFillTertiary;
|
|
30
|
+
}, function (p) {
|
|
31
|
+
return p.prefix;
|
|
32
|
+
}, function (p) {
|
|
33
|
+
return p.prefix;
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return p.theme.colorText;
|
|
36
|
+
}, function (p) {
|
|
37
|
+
return p.prefix;
|
|
38
|
+
}, function (p) {
|
|
39
|
+
return p.theme.colorTextDisabled;
|
|
40
|
+
}, function (p) {
|
|
41
|
+
return p.prefix;
|
|
42
|
+
}, function (p) {
|
|
43
|
+
return p.prefix;
|
|
44
|
+
}, function (p) {
|
|
45
|
+
return p.theme.colorFillTertiary;
|
|
46
|
+
}, function (p) {
|
|
47
|
+
return p.theme.colorText;
|
|
48
|
+
}, function (p) {
|
|
49
|
+
return p.theme.colorText;
|
|
50
|
+
}, function (p) {
|
|
51
|
+
return p.theme.fontFamily;
|
|
52
|
+
}, function (p) {
|
|
53
|
+
return p.theme.fontSizeXL;
|
|
54
|
+
}, function (p) {
|
|
55
|
+
return p.theme.controlHeightLG;
|
|
56
|
+
}, function (p) {
|
|
57
|
+
return p.theme.controlHeightLG;
|
|
58
|
+
}, function (p) {
|
|
59
|
+
return p.theme.paddingXS;
|
|
60
|
+
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
1
|
interface IProps {
|
|
4
2
|
data: {
|
|
5
3
|
title?: string;
|
|
6
4
|
loading?: boolean;
|
|
7
5
|
content?: string;
|
|
6
|
+
className?: string;
|
|
8
7
|
};
|
|
9
8
|
}
|
|
10
|
-
export default function (props: IProps):
|
|
9
|
+
export default function (props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DeepThinking } from "../..";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export default function (props) {
|
|
5
|
+
return /*#__PURE__*/_jsx(DeepThinking, {
|
|
6
|
+
defaultOpen: true,
|
|
7
|
+
title: props.data.title,
|
|
8
|
+
loading: props.data.loading,
|
|
9
|
+
content: props.data.content,
|
|
10
|
+
className: props.data.className
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Files(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { Space } from 'antd';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Attachments } from "../..";
|
|
6
|
+
import { createGlobalStyle, useProviderContext } from "../..";
|
|
7
|
+
import { SparkDownloadLine } from '@agentscope-ai/icons';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-bubble-files-file {\n position: relative;\n}\n\n.", "-bubble-files-download {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0,0,0,0.5);\n z-index: 1;\n opacity: 0;\n font-size: 16px;\n border-radius: ", "px;\n cursor: pointer;\n color: ", ";\n transition: opacity ", "\n\n}\n\n.", "-bubble-files-file:hover .", "-bubble-files-download {\n opacity: 1;\n}\n"])), function (p) {
|
|
12
|
+
return p.prefix;
|
|
13
|
+
}, function (p) {
|
|
14
|
+
return p.prefix;
|
|
15
|
+
}, function (p) {
|
|
16
|
+
return p.theme.borderRadius;
|
|
17
|
+
}, function (p) {
|
|
18
|
+
return p.theme.colorWhite;
|
|
19
|
+
}, function (p) {
|
|
20
|
+
return p.theme.motionDurationSlow;
|
|
21
|
+
}, function (p) {
|
|
22
|
+
return p.prefix;
|
|
23
|
+
}, function (p) {
|
|
24
|
+
return p.prefix;
|
|
25
|
+
});
|
|
26
|
+
export default function Files(props) {
|
|
27
|
+
var _useProviderContext = useProviderContext(),
|
|
28
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
29
|
+
var prefixCls = getPrefixCls('bubble-files');
|
|
30
|
+
var Style = useStyle();
|
|
31
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Space, {
|
|
33
|
+
className: prefixCls,
|
|
34
|
+
children: props.data.map(function (file, index) {
|
|
35
|
+
var fileInfo = {
|
|
36
|
+
name: file.name || file.filename,
|
|
37
|
+
size: file.size || file.bytes,
|
|
38
|
+
url: file.url
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
41
|
+
className: "".concat(prefixCls, "-file"),
|
|
42
|
+
children: [/*#__PURE__*/_jsx(Attachments.FileCard, {
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
item: fileInfo
|
|
45
|
+
}), fileInfo.url && /*#__PURE__*/_jsx("div", {
|
|
46
|
+
className: "".concat(prefixCls, "-download"),
|
|
47
|
+
onClick: function onClick() {
|
|
48
|
+
window.open(fileInfo.url, '_blank');
|
|
49
|
+
},
|
|
50
|
+
children: /*#__PURE__*/_jsx(SparkDownloadLine, {})
|
|
51
|
+
})]
|
|
52
|
+
}, index);
|
|
53
|
+
})
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import './index.less';
|
|
3
2
|
export default function Footer(props: {
|
|
4
3
|
data: {
|
|
5
4
|
left?: React.ReactElement;
|
|
6
5
|
right?: React.ReactElement;
|
|
7
6
|
};
|
|
8
7
|
id: string;
|
|
9
|
-
}):
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export declare function FooterActions(props: {
|
|
11
10
|
data: {
|
|
12
11
|
icon: string | ReactElement;
|
|
13
12
|
label?: string;
|
|
14
13
|
onClick: () => void;
|
|
15
14
|
}[];
|
|
16
|
-
}):
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
16
|
export declare function FooterCount(props: {
|
|
18
17
|
data: [string | number, string | number][];
|
|
19
|
-
}):
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,74 @@
|
|
|
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 React from 'react';
|
|
4
|
+
import { createGlobalStyle, useProviderContext } from "../..";
|
|
5
|
+
import { IconButton } from "@agentscope-ai/design";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
+
var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-bubble-footer {\n width: 100%;\n margin-top: 8px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n overflow: hidden;\n}\n\n.", "-bubble-footer-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n\n &-item {\n cursor: pointer;\n color: ", "\n }\n}\n\n.", "-bubble-footer-count {\n display: flex;\n align-items: center;\n\n &-item {\n color: ", ";\n line-height: 1;\n padding-right: 13px;\n margin-left: 13px;\n border-right: 1px solid ", ";\n white-space: nowrap;\n\n &:last-of-type {\n padding-right: 0;\n border-right: 0;\n }\n }\n}\n"])), function (p) {
|
|
10
|
+
return p.prefix;
|
|
11
|
+
}, function (p) {
|
|
12
|
+
return p.prefix;
|
|
13
|
+
}, function (p) {
|
|
14
|
+
return p.theme.colorText;
|
|
15
|
+
}, function (p) {
|
|
16
|
+
return p.prefix;
|
|
17
|
+
}, function (p) {
|
|
18
|
+
return p.theme.colorTextTertiary;
|
|
19
|
+
}, function (p) {
|
|
20
|
+
return p.theme.colorBorder;
|
|
21
|
+
});
|
|
22
|
+
export default function Footer(props) {
|
|
23
|
+
var _useProviderContext = useProviderContext(),
|
|
24
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
25
|
+
var prefixCls = getPrefixCls('bubble-footer');
|
|
26
|
+
var Style = useStyle();
|
|
27
|
+
var _props$data = props.data,
|
|
28
|
+
left = _props$data.left,
|
|
29
|
+
right = _props$data.right;
|
|
30
|
+
if (left && !left.type || right && !right.type) return null;
|
|
31
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
33
|
+
className: prefixCls,
|
|
34
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
35
|
+
className: "".concat(prefixCls, "-left"),
|
|
36
|
+
children: props.data.left
|
|
37
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
38
|
+
className: "".concat(prefixCls, "-right"),
|
|
39
|
+
children: props.data.right
|
|
40
|
+
})]
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export function FooterActions(props) {
|
|
45
|
+
var _useProviderContext2 = useProviderContext(),
|
|
46
|
+
getPrefixCls = _useProviderContext2.getPrefixCls;
|
|
47
|
+
var prefixCls = getPrefixCls('bubble-footer-actions');
|
|
48
|
+
return /*#__PURE__*/_jsx("div", {
|
|
49
|
+
className: prefixCls,
|
|
50
|
+
children: props.data.map(function (item, index) {
|
|
51
|
+
return /*#__PURE__*/_jsx(IconButton, {
|
|
52
|
+
bordered: false,
|
|
53
|
+
icon: item.icon,
|
|
54
|
+
size: "small",
|
|
55
|
+
onClick: item.onClick
|
|
56
|
+
}, index);
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
;
|
|
61
|
+
export function FooterCount(props) {
|
|
62
|
+
var _useProviderContext3 = useProviderContext(),
|
|
63
|
+
getPrefixCls = _useProviderContext3.getPrefixCls;
|
|
64
|
+
var prefixCls = getPrefixCls('bubble-footer-count');
|
|
65
|
+
return /*#__PURE__*/_jsx("div", {
|
|
66
|
+
className: prefixCls,
|
|
67
|
+
children: props.data.map(function (item) {
|
|
68
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
69
|
+
className: "".concat(prefixCls, "-item"),
|
|
70
|
+
children: [item[0], "\uFF1A", item[1]]
|
|
71
|
+
}, item[0]);
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Files(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
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, useProviderContext } from "../..";
|
|
4
|
+
import { Space, Image as AntdImage, ConfigProvider } from 'antd';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-bubble-image {\n border-radius: 8px;\n overflow: hidden;\n\n .", "-image-img {\n object-fit: cover;\n }\n\n .", "-image-mask-info {\n span {\n margin-inline-end: 0 !important;\n }\n }\n}\n"])), function (p) {
|
|
9
|
+
return p.prefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.prefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.prefix;
|
|
14
|
+
});
|
|
15
|
+
function Image(image) {
|
|
16
|
+
var _useProviderContext = useProviderContext(),
|
|
17
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
18
|
+
var prefixCls = getPrefixCls('bubble-image');
|
|
19
|
+
var Style = useStyle();
|
|
20
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
21
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx("div", {
|
|
22
|
+
className: "".concat(prefixCls),
|
|
23
|
+
children: /*#__PURE__*/_jsx(AntdImage, {
|
|
24
|
+
src: image.url,
|
|
25
|
+
width: 56,
|
|
26
|
+
height: 56,
|
|
27
|
+
preview: {
|
|
28
|
+
transitionName: ''
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export default function Files(props) {
|
|
35
|
+
return /*#__PURE__*/_jsx(ConfigProvider, {
|
|
36
|
+
locale: {
|
|
37
|
+
Image: {
|
|
38
|
+
preview: ''
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
children: /*#__PURE__*/_jsx(Space, {
|
|
42
|
+
children: props.data.map(function (image, index) {
|
|
43
|
+
return /*#__PURE__*/_jsx(Image, {
|
|
44
|
+
url: image.url
|
|
45
|
+
}, index);
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
1
|
interface IProps {
|
|
4
2
|
data: {
|
|
5
3
|
title?: string;
|
|
@@ -7,5 +5,5 @@ interface IProps {
|
|
|
7
5
|
desc?: string;
|
|
8
6
|
};
|
|
9
7
|
}
|
|
10
|
-
export default function
|
|
8
|
+
export default function Interrupted(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { useProviderContext, createGlobalStyle } from "../..";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { SparkErrorCircleFill, SparkStopCircleLine } from '@agentscope-ai/icons';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
+
var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-interrupted {\n display: inline-flex;\n flex-direction: column;\n font-size: 12px;\n font-weight: 500;\n line-height: 18px;\n letter-spacing: 0px;\n background-color: ", ";\n padding: 10px 12px;\n line-height: 1;\n border-radius: 8px;\n gap: 8px;\n}\n.", "-interrupted-desc {\n font-weight: normal;\n}\n\n.", "-interrupted-header {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: ", ";\n\n &-icon-wrapper {\n width: 16px;\n height: 16px;\n flex: 0 0 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n &-error {\n color: ", ";\n font-size: 16px;\n }\n\n &-interrupted {\n font-size: 16px;\n }\n \n}\n\n"])), function (p) {
|
|
10
|
+
return p.prefix;
|
|
11
|
+
}, function (p) {
|
|
12
|
+
return p.theme.colorFillSecondary;
|
|
13
|
+
}, function (p) {
|
|
14
|
+
return p.prefix;
|
|
15
|
+
}, function (p) {
|
|
16
|
+
return p.prefix;
|
|
17
|
+
}, function (p) {
|
|
18
|
+
return p.theme.colorText;
|
|
19
|
+
}, function (p) {
|
|
20
|
+
return p.theme.colorError;
|
|
21
|
+
});
|
|
22
|
+
export default function Interrupted(props) {
|
|
23
|
+
var _props$data = props.data,
|
|
24
|
+
_props$data$title = _props$data.title,
|
|
25
|
+
title = _props$data$title === void 0 ? 'Answers have stopped' : _props$data$title,
|
|
26
|
+
_props$data$type = _props$data.type,
|
|
27
|
+
type = _props$data$type === void 0 ? 'interrupted' : _props$data$type,
|
|
28
|
+
desc = _props$data.desc;
|
|
29
|
+
var _useProviderContext = useProviderContext(),
|
|
30
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
31
|
+
var prefixCls = getPrefixCls('interrupted');
|
|
32
|
+
var Style = useStyle();
|
|
33
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
34
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
35
|
+
className: "".concat(prefixCls),
|
|
36
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
37
|
+
className: "".concat(prefixCls, "-header"),
|
|
38
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
39
|
+
className: "".concat(prefixCls, "-icon-wrapper"),
|
|
40
|
+
children: type === 'interrupted' ? /*#__PURE__*/_jsx(SparkStopCircleLine, {
|
|
41
|
+
className: "".concat(prefixCls, "-header-interrupted")
|
|
42
|
+
}) : /*#__PURE__*/_jsx(SparkErrorCircleFill, {
|
|
43
|
+
className: "".concat(prefixCls, "-header-error")
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
46
|
+
children: title
|
|
47
|
+
})]
|
|
48
|
+
}), desc && /*#__PURE__*/_jsx("div", {
|
|
49
|
+
className: "".concat(prefixCls, "-desc"),
|
|
50
|
+
children: desc
|
|
51
|
+
})]
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Markdown } from "../..";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
4
|
export default function (props) {
|
|
4
|
-
return /*#__PURE__*/
|
|
5
|
+
return /*#__PURE__*/_jsx(Markdown, {
|
|
5
6
|
raw: props.data.raw,
|
|
6
7
|
content: props.data.content,
|
|
7
8
|
cursor: props.data.msgStatus === 'generating',
|
|
8
9
|
typing: props.data.typing,
|
|
9
10
|
citations: props.data.citations,
|
|
10
|
-
citationsMap: props.data.citationsMap
|
|
11
|
+
citationsMap: props.data.citationsMap,
|
|
12
|
+
className: props.data.className
|
|
11
13
|
});
|
|
12
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
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, useProviderContext } from "../..";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-bubble-count {\n display: flex;\n font-size: 12px;\n line-height: 1;\n padding: 4px 0;\n color: ", ";\n\n .", "-bubble-count-item + .", "-bubble-count-item {\n border-left: 1px solid ", "\n padding: 0 6px;\n }\n\n .", "-bubble-count-item {\n padding-right: 6px;\n }\n}\n"])), function (p) {
|
|
8
|
+
return p.prefix;
|
|
9
|
+
}, function (p) {
|
|
10
|
+
return p.theme.colorTextQuaternary;
|
|
11
|
+
}, function (p) {
|
|
12
|
+
return p.prefix;
|
|
13
|
+
}, function (p) {
|
|
14
|
+
return p.prefix;
|
|
15
|
+
}, function (p) {
|
|
16
|
+
return p.theme.colorTextQuaternary;
|
|
17
|
+
}, function (p) {
|
|
18
|
+
return p.prefix;
|
|
19
|
+
});
|
|
20
|
+
export default function (props) {
|
|
21
|
+
var _useProviderContext = useProviderContext(),
|
|
22
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
23
|
+
var prefixCls = getPrefixCls('bubble-count');
|
|
24
|
+
var Style = useStyle();
|
|
25
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
26
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx("div", {
|
|
27
|
+
className: prefixCls,
|
|
28
|
+
children: props.data.map(function (item) {
|
|
29
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
30
|
+
className: "".concat(prefixCls, "-item"),
|
|
31
|
+
children: [item[0], "\uFF1A", item[1]]
|
|
32
|
+
}, item[0]);
|
|
33
|
+
})
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IDisclaimerProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 免责声明的文本内容,用于提醒用户AI的局限性
|
|
5
|
+
* @descriptionEn Disclaimer text content for reminding users of AI limitations
|
|
6
|
+
*/
|
|
7
|
+
desc?: React.ReactElement | string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 免责声明组件的内联样式对象,用于自定义外观
|
|
10
|
+
* @descriptionEn Inline style object for the disclaimer component for customizing appearance
|
|
11
|
+
*/
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/**
|
|
14
|
+
* @description 免责声明后的链接配置,用于提供更多相关信息
|
|
15
|
+
* @descriptionEn Link configuration after disclaimer for providing additional relevant information
|
|
16
|
+
*/
|
|
17
|
+
afterLink?: {
|
|
18
|
+
href: string;
|
|
19
|
+
text: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export default function (props: IDisclaimerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import useStyle from "./style";
|
|
3
|
+
import { useProviderContext } from "./..";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
7
|
+
export default function (props) {
|
|
8
|
+
var _props$desc = props.desc,
|
|
9
|
+
desc = _props$desc === void 0 ? 'AI can also make mistakes, so please check carefully and use it with caution' : _props$desc;
|
|
10
|
+
var Style = useStyle();
|
|
11
|
+
var _useProviderContext = useProviderContext(),
|
|
12
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
13
|
+
var prefixCls = getPrefixCls('disclaimer');
|
|
14
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
15
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
16
|
+
className: prefixCls,
|
|
17
|
+
style: props.style,
|
|
18
|
+
children: [desc, props.afterLink && /*#__PURE__*/_jsx("a", {
|
|
19
|
+
className: "".concat(prefixCls, "-after-link"),
|
|
20
|
+
href: props.afterLink.href,
|
|
21
|
+
target: "_blank",
|
|
22
|
+
children: props.afterLink.text
|
|
23
|
+
})]
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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.", "-disclaimer {\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n line-height: 1.5;\n color: ", ";\n padding: 8px 12px;\n}\n\n.", "-disclaimer-after-link {\n padding-left: 8px;\n}\n"])), function (p) {
|
|
5
|
+
return p.prefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.theme.colorTextTertiary;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.prefix;
|
|
10
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface IImageGeneratorProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 生成图片的宽度,单位为像素
|
|
5
|
+
* @descriptionEn Width of the generated image in pixels
|
|
6
|
+
* @default 320
|
|
7
|
+
*/
|
|
8
|
+
width?: number;
|
|
9
|
+
/**
|
|
10
|
+
* @description 生成图片的高度,单位为像素
|
|
11
|
+
* @descriptionEn Height of the generated image in pixels
|
|
12
|
+
* @default 320
|
|
13
|
+
*/
|
|
14
|
+
height?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @description 图片的URL地址,为空时显示加载状态
|
|
17
|
+
* @descriptionEn URL address of the image, shows loading state when empty
|
|
18
|
+
* @default ''
|
|
19
|
+
*/
|
|
20
|
+
src?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @description 图片生成过程中的提示文本
|
|
23
|
+
* @descriptionEn Prompt text during image generation process
|
|
24
|
+
* @default 'Painting...'
|
|
25
|
+
*/
|
|
26
|
+
loadingText?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @description 图片生成完成后的提示文本
|
|
29
|
+
* @descriptionEn Prompt text after image generation is completed
|
|
30
|
+
* @default 'Paint Completed'
|
|
31
|
+
*/
|
|
32
|
+
doneText?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @description 自定义骨架屏组件,用于加载状态显示
|
|
35
|
+
* @descriptionEn Custom skeleton screen component for loading state display
|
|
36
|
+
* @default null
|
|
37
|
+
*/
|
|
38
|
+
skeleton?: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
declare const ImageGenerator: React.FC<IImageGeneratorProps>;
|
|
41
|
+
export default ImageGenerator;
|