@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
|
@@ -12,12 +12,14 @@ export type SSEFields = 'data' | 'event' | 'id' | 'retry';
|
|
|
12
12
|
export type SSEOutput = Partial<Record<SSEFields, any>>;
|
|
13
13
|
export interface StreamOptions<Output> {
|
|
14
14
|
/**
|
|
15
|
-
* @description
|
|
15
|
+
* @description 二进制数据的可读流
|
|
16
|
+
* @descriptionEn Readable stream of binary data
|
|
16
17
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream
|
|
17
18
|
*/
|
|
18
19
|
readableStream: ReadableStream<Uint8Array>;
|
|
19
20
|
/**
|
|
20
|
-
* @description
|
|
21
|
+
* @description 支持自定义转换流来转换数据流
|
|
22
|
+
* @descriptionEn Support customizable transformStream to transform streams
|
|
21
23
|
* @default sseTransformStream
|
|
22
24
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/TransformStream
|
|
23
25
|
*/
|
|
@@ -180,7 +180,7 @@ function Stream(options, config) {
|
|
|
180
180
|
return _context.abrupt("continue", 1);
|
|
181
181
|
case 11:
|
|
182
182
|
_context.next = 13;
|
|
183
|
-
return config.openaiCompatible ? _objectSpread(_objectSpread({}, value), {}, {
|
|
183
|
+
return config !== null && config !== void 0 && config.openaiCompatible ? _objectSpread(_objectSpread({}, value), {}, {
|
|
184
184
|
data: value.data.slice(1)
|
|
185
185
|
}) : value;
|
|
186
186
|
case 13:
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CSSStyle } from 'antd-style';
|
|
2
|
+
import { GlobalTheme } from 'antd-style/lib/factories/createGlobalStyle';
|
|
3
|
+
export default function createGlobalStyle(...styles: CSSStyle<GlobalTheme & {
|
|
4
|
+
prefix: string;
|
|
5
|
+
}>): () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createGlobalStyle as originCreateGlobalStyle } from 'antd-style';
|
|
2
|
+
import { useProviderContext } from "../Provider";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export default function createGlobalStyle() {
|
|
5
|
+
for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6
|
+
styles[_key] = arguments[_key];
|
|
7
|
+
}
|
|
8
|
+
return function () {
|
|
9
|
+
var _useProviderContext = useProviderContext(),
|
|
10
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
11
|
+
var prefix = getPrefixCls();
|
|
12
|
+
var Style = originCreateGlobalStyle.apply(void 0, styles);
|
|
13
|
+
return function () {
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
return /*#__PURE__*/_jsx(Style, {
|
|
16
|
+
prefix: prefix
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function sleep(ms: number): Promise<unknown>;
|
package/lib/Util/type.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -15,8 +15,8 @@ type TypeWarning = BaseTypeWarning & {
|
|
|
15
15
|
};
|
|
16
16
|
export interface WarningContextProps {
|
|
17
17
|
/**
|
|
18
|
-
* @
|
|
19
|
-
* @
|
|
18
|
+
* @description 设置警告等级,当设置为false时会将废弃相关信息聚合为单条信息
|
|
19
|
+
* @descriptionEn Set the warning level. When set to `false`, discard related information will be aggregated into a single message.
|
|
20
20
|
*/
|
|
21
21
|
strict?: boolean;
|
|
22
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Recorder(): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IWelcomeProps {
|
|
3
|
+
/**
|
|
4
|
+
* @description 欢迎页面的主标题,支持文本或React元素
|
|
5
|
+
* @descriptionEn Main title of the welcome page, supports text or React elements
|
|
6
|
+
*/
|
|
7
|
+
title?: React.ReactNode | string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 欢迎页面的描述文本,用于补充说明或引导用户
|
|
10
|
+
* @descriptionEn Description text of the welcome page for supplementary explanation or user guidance
|
|
11
|
+
*/
|
|
12
|
+
desc?: React.ReactNode | string;
|
|
13
|
+
/**
|
|
14
|
+
* @description 欢迎页面的品牌标识,支持图片URL或自定义React元素
|
|
15
|
+
* @descriptionEn Brand logo of the welcome page, supports image URL or custom React elements
|
|
16
|
+
*/
|
|
17
|
+
logo?: React.ReactNode | string;
|
|
18
|
+
/**
|
|
19
|
+
* @description 欢迎组件的内联样式对象,用于自定义外观
|
|
20
|
+
* @descriptionEn Inline style object for the welcome component for customizing appearance
|
|
21
|
+
*/
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
export default function (props: IWelcomeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
+
var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-welcome {\n display: flex;\n align-items: center;\n\n &-logo {\n display: block;\n margin-right: 20px;\n }\n\n &-title {\n font-size: 24px;\n line-height: 36px;\n font-weight: bold;\n color: ", ";\n }\n\n &-desc {\n margin-top: 4px;\n font-size: 24px;\n line-height: 36px;\n color: ", ";\n }\n}\n"])), function (p) {
|
|
9
|
+
return p.prefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.theme.colorText;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.theme.colorTextSecondary;
|
|
14
|
+
});
|
|
15
|
+
export default function (props) {
|
|
16
|
+
var _useProviderContext = useProviderContext(),
|
|
17
|
+
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
18
|
+
var prefix = getPrefixCls('welcome');
|
|
19
|
+
var logoEle = typeof props.logo === 'string' ? /*#__PURE__*/_jsx("img", {
|
|
20
|
+
className: prefix + '-logo',
|
|
21
|
+
src: props.logo
|
|
22
|
+
}) : props.logo;
|
|
23
|
+
var Style = useStyle();
|
|
24
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
25
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
26
|
+
className: prefix,
|
|
27
|
+
style: props.style,
|
|
28
|
+
children: [logoEle, /*#__PURE__*/_jsxs("div", {
|
|
29
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
30
|
+
className: prefix + '-title',
|
|
31
|
+
children: props.title
|
|
32
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
33
|
+
className: prefix + '-desc',
|
|
34
|
+
children: props.desc
|
|
35
|
+
})]
|
|
36
|
+
})]
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { ConfigProvider } from 'antd';
|
|
2
|
+
export { default as version } from './Version';
|
|
3
|
+
export * from '@copilotkit/react-core';
|
|
4
|
+
export * from './AGUI';
|
|
5
|
+
export { CustomCardsContext, CustomCardsProvider, default as SparkChatProvider, useCustomCardsContext, useGlobalContext, useProviderContext, } from './Provider';
|
|
6
|
+
export { default as Stream } from './Stream';
|
|
7
|
+
export type { StreamOptions as StreamOptions } from './Stream';
|
|
8
|
+
export { createCard } from './Bubble/Cards';
|
|
9
|
+
export { default as ChatAnywhere, useChatAnywhere, useInput, useMessages, useSessionList, uuid, } from './ChatAnywhere';
|
|
10
|
+
export type { ChatAnywhereRef, TMessage, TSession } from './ChatAnywhere';
|
|
11
|
+
export * as DefaultCards from './DefaultCards';
|
|
12
|
+
export { Accordion, Accordion as Process, type IAccordionProps, type IAccordionProps as IProcess, } from './Accordion';
|
|
13
|
+
export { default as DeepThink, default as DeepThinking, type IDeepThinking, } from './Accordion/DeepThinking';
|
|
14
|
+
export { default as Attachments, type AttachmentsProps, type AttachmentsProps as IAttachmentsProps, } from './Attachments';
|
|
15
|
+
export { default as Bubble, type BubbleProps, type BubbleProps as IBubbleProps, } from './Bubble';
|
|
16
|
+
export { default as Conversations, default as HistoryPanel, type ConversationsProps, type ConversationsProps as IHistoryPanel, } from './Conversations';
|
|
17
|
+
export { default as Disclaimer, type IDisclaimerProps } from './Disclaimer';
|
|
18
|
+
export { default as ImageGenerator, type IImageGeneratorProps, } from './ImageGenerator';
|
|
19
|
+
export { default as Markdown, type MarkdownProps as IMarkdownProps, type MarkdownProps, } from './Markdown';
|
|
20
|
+
export { default as useTypedEffect } from './Markdown/hooks/useTypedEffect';
|
|
21
|
+
export { default as Mermaid, type IMermaidProps } from './Mermaid';
|
|
22
|
+
export { default as ChatInput, default as Sender, type SenderProps as IChatInputProps, type SenderProps, } from './Sender';
|
|
23
|
+
export { default as createGlobalStyle } from './Util/createStyle';
|
|
24
|
+
export { default as sleep } from './Util/sleep';
|
|
25
|
+
export { default as Welcome, type IWelcomeProps } from './Welcome';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { ConfigProvider } from 'antd';
|
|
2
|
+
export { default as version } from "./Version";
|
|
3
|
+
export * from '@copilotkit/react-core';
|
|
4
|
+
export * from "./AGUI";
|
|
5
|
+
export { CustomCardsContext, CustomCardsProvider, default as SparkChatProvider, useCustomCardsContext, useGlobalContext, useProviderContext } from "./Provider";
|
|
6
|
+
export { default as Stream } from "./Stream";
|
|
7
|
+
export { createCard } from "./Bubble/Cards";
|
|
8
|
+
export { default as ChatAnywhere, useChatAnywhere, useInput, useMessages, useSessionList, uuid } from "./ChatAnywhere";
|
|
9
|
+
import * as _DefaultCards from "./DefaultCards";
|
|
10
|
+
export { _DefaultCards as DefaultCards };
|
|
11
|
+
export { Accordion, Accordion as Process } from "./Accordion";
|
|
12
|
+
export { default as DeepThink, default as DeepThinking } from "./Accordion/DeepThinking";
|
|
13
|
+
export { default as Attachments } from "./Attachments";
|
|
14
|
+
export { default as Bubble } from "./Bubble";
|
|
15
|
+
export { default as Conversations, default as HistoryPanel } from "./Conversations";
|
|
16
|
+
export { default as Disclaimer } from "./Disclaimer";
|
|
17
|
+
export { default as ImageGenerator } from "./ImageGenerator";
|
|
18
|
+
export { default as Markdown } from "./Markdown";
|
|
19
|
+
export { default as useTypedEffect } from "./Markdown/hooks/useTypedEffect";
|
|
20
|
+
export { default as Mermaid } from "./Mermaid";
|
|
21
|
+
export { default as ChatInput, default as Sender } from "./Sender";
|
|
22
|
+
export { default as createGlobalStyle } from "./Util/createStyle";
|
|
23
|
+
export { default as sleep } from "./Util/sleep";
|
|
24
|
+
export { default as Welcome } from "./Welcome";
|
package/lib/index.less
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentscope-ai/chat",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "a free and open-source chat framework for building excellent LLM-powered chat experiences",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.less",
|
|
7
7
|
"*.css",
|
|
8
8
|
"*.scss"
|
|
9
9
|
],
|
|
10
|
-
"module": "
|
|
11
|
-
"types": "
|
|
10
|
+
"module": "lib/index.js",
|
|
11
|
+
"types": "lib/index.d.ts",
|
|
12
12
|
"files": [
|
|
13
|
-
"
|
|
13
|
+
"lib"
|
|
14
14
|
],
|
|
15
|
+
"license": "Apache-2.0",
|
|
15
16
|
"scripts": {
|
|
16
17
|
"build": "npm run src:build && npm run docs:build",
|
|
18
|
+
"build:doc-api": "rm -rf node_modules && tnpm i && npm run start",
|
|
17
19
|
"build:watch": "father dev",
|
|
18
20
|
"dev": "dumi dev",
|
|
19
21
|
"docs:build": "dumi build",
|
|
@@ -22,6 +24,7 @@
|
|
|
22
24
|
"lint": "npm run lint:es && npm run lint:css",
|
|
23
25
|
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
24
26
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
27
|
+
"llms:build": "rm -rf llms && LLM=true dumi build",
|
|
25
28
|
"prepare": "husky install && dumi setup",
|
|
26
29
|
"prepublishOnly": "npm run build",
|
|
27
30
|
"src:build": "father build",
|
|
@@ -50,10 +53,16 @@
|
|
|
50
53
|
]
|
|
51
54
|
},
|
|
52
55
|
"dependencies": {
|
|
56
|
+
"@agentscope-ai/icons": "^1.0.8",
|
|
57
|
+
"@agentscope-ai/icons-override-antd": "^6.0.0",
|
|
58
|
+
"@agentscope-ai/icons-svg-override-antd": "^4.4.2",
|
|
53
59
|
"@ant-design/cssinjs-utils": "^1.1.3",
|
|
54
60
|
"@ant-design/icons": "^5.0.1",
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
61
|
+
"@copilotkit/react-core": "^1.9",
|
|
62
|
+
"@copilotkit/react-ui": "^1.9.1",
|
|
63
|
+
"@copilotkit/runtime": "^1.9",
|
|
64
|
+
"@copilotkit/runtime-client-gql": "^1.9",
|
|
65
|
+
"@rc-component/motion": "^1.1.4",
|
|
57
66
|
"ahooks": "^3.8.4",
|
|
58
67
|
"antd-style": "^3.7.1",
|
|
59
68
|
"antd-token-previewer": "^2.0.8",
|
|
@@ -62,9 +71,10 @@
|
|
|
62
71
|
"framer-motion": "^12.12.1",
|
|
63
72
|
"immer": "^10.1.1",
|
|
64
73
|
"lodash": "^4.17.21",
|
|
65
|
-
"
|
|
74
|
+
"mermaid": "^11.6.0",
|
|
66
75
|
"react-infinite-scroll-component": "^6.1.0",
|
|
67
76
|
"react-markdown": "^10.1.0",
|
|
77
|
+
"react-transition-group": "^4.4.5",
|
|
68
78
|
"recorder-core": "^1.3.25011100",
|
|
69
79
|
"rehype-katex": "^7.0.1",
|
|
70
80
|
"rehype-raw": "^7.0.0",
|
|
@@ -80,12 +90,14 @@
|
|
|
80
90
|
"zustand": "^5.0.3"
|
|
81
91
|
},
|
|
82
92
|
"devDependencies": {
|
|
83
|
-
"@
|
|
93
|
+
"@ali/agentscope-ai-design": "^4.6.0",
|
|
94
|
+
"@ali/dumi-plugin-api-parser": "^1.0.3",
|
|
95
|
+
"@ali/dumi-plugin-llms": "^1.0.3",
|
|
96
|
+
"@ali/dumi-theme-spark": "^0.0.94",
|
|
97
|
+
"@ant-design/charts": "^2.6.2",
|
|
84
98
|
"@commitlint/cli": "^17.1.2",
|
|
85
99
|
"@commitlint/config-conventional": "^17.1.0",
|
|
86
|
-
"@
|
|
87
|
-
"@copilotkit/runtime": "1.8.12-next.4",
|
|
88
|
-
"@copilotkit/runtime-client-gql": "1.8.12-next.4",
|
|
100
|
+
"@makotot/ghostui": "^2.0.0",
|
|
89
101
|
"@types/react": "^18.0.0",
|
|
90
102
|
"@types/react-dom": "^18.0.0",
|
|
91
103
|
"@umijs/lint": "^4.0.0",
|
|
@@ -103,10 +115,12 @@
|
|
|
103
115
|
"react": "^18.0.0",
|
|
104
116
|
"react-dom": "^18.0.0",
|
|
105
117
|
"stylelint": "^14.9.1",
|
|
106
|
-
"tailwindcss": "^3.4.17"
|
|
118
|
+
"tailwindcss": "^3.4.17",
|
|
119
|
+
"vaso": "^0.4.0"
|
|
107
120
|
},
|
|
108
121
|
"peerDependencies": {
|
|
109
|
-
"@
|
|
122
|
+
"@agentscope-ai/design": "^1.0.0",
|
|
123
|
+
"@ali/agentscope-ai-design": "^4.6.0",
|
|
110
124
|
"@ant-design/icons": "^5.0.1",
|
|
111
125
|
"antd": "^5.18.0",
|
|
112
126
|
"classnames": "^2.5.1",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface AccordionProps {
|
|
4
|
-
status?: 'finished' | 'interrupted' | 'generating' | 'error';
|
|
5
|
-
title: string | React.ReactElement;
|
|
6
|
-
children?: string | React.ReactElement;
|
|
7
|
-
icon?: string | React.ReactElement;
|
|
8
|
-
id?: string;
|
|
9
|
-
rightChildren?: string | React.ReactElement;
|
|
10
|
-
steps?: AccordionProps[];
|
|
11
|
-
defaultOpen?: boolean;
|
|
12
|
-
bodyStyle?: React.CSSProperties;
|
|
13
|
-
inline?: boolean;
|
|
14
|
-
level?: number;
|
|
15
|
-
isLast?: boolean;
|
|
16
|
-
isFirst?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare function Accordion(props: AccordionProps): React.JSX.Element;
|
|
19
|
-
declare namespace Accordion {
|
|
20
|
-
var BodyContent: typeof import("./BodyContent").default;
|
|
21
|
-
}
|
|
22
|
-
export default Accordion;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useProviderContext } from "./..";
|
|
3
|
-
export default function (props) {
|
|
4
|
-
var _useProviderContext = useProviderContext(),
|
|
5
|
-
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
6
|
-
var prefixCls = getPrefixCls('accordion-content-body');
|
|
7
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
-
className: prefixCls
|
|
9
|
-
}, props.headerLeft || props.headerRight ? /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: "".concat(prefixCls, "-header")
|
|
11
|
-
}, props.headerLeft, /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
style: {
|
|
13
|
-
flex: 1
|
|
14
|
-
}
|
|
15
|
-
}), props.headerRight) : null, /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
className: "".concat(prefixCls, "-body")
|
|
17
|
-
}, props.children));
|
|
18
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Accordion } from "./..";
|
|
3
|
-
import { useProviderContext } from "./..";
|
|
4
|
-
import { theme as AntdTheme } from 'antd';
|
|
5
|
-
export default function (props) {
|
|
6
|
-
var _useProviderContext = useProviderContext(),
|
|
7
|
-
getPrefixCls = _useProviderContext.getPrefixCls,
|
|
8
|
-
theme = _useProviderContext.theme;
|
|
9
|
-
var prefixCls = getPrefixCls('accordion-deepthink');
|
|
10
|
-
var isDarkMode = theme.algorithm === AntdTheme.darkAlgorithm;
|
|
11
|
-
var icon = /*#__PURE__*/React.createElement("img", {
|
|
12
|
-
style: {
|
|
13
|
-
display: 'block',
|
|
14
|
-
width: 16,
|
|
15
|
-
height: 16,
|
|
16
|
-
filter: isDarkMode ? 'invert(1) brightness(100%) saturate(0%)' : ''
|
|
17
|
-
},
|
|
18
|
-
src: "https://img.alicdn.com/imgextra/i2/O1CN01QZgWRv1I4JM0BAZ9O_!!6000000000839-54-tps-56-56.apng"
|
|
19
|
-
});
|
|
20
|
-
var titleString = /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: props.loading ? "".concat(prefixCls, "-title-loading") : '',
|
|
22
|
-
style: isDarkMode ? {} : {
|
|
23
|
-
color: 'rgba(38, 36, 76, 0.88)'
|
|
24
|
-
}
|
|
25
|
-
}, "".concat(props.title || 'Deep think').concat(props.loading ? '...' : ''));
|
|
26
|
-
return /*#__PURE__*/React.createElement(Accordion, {
|
|
27
|
-
title: titleString,
|
|
28
|
-
status: props.loading ? 'generating' : 'finished',
|
|
29
|
-
icon: props.loading ? icon : null,
|
|
30
|
-
defaultOpen: props.defaultOpen,
|
|
31
|
-
inline: true
|
|
32
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
33
|
-
className: prefixCls
|
|
34
|
-
}, props.content || '...'));
|
|
35
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
@import '../index.less';
|
|
2
|
-
|
|
3
|
-
.@{ant-prefix}-accordion-group {
|
|
4
|
-
.anticon-spin::before,
|
|
5
|
-
.anticon-spin {
|
|
6
|
-
animation-duration: 2s;
|
|
7
|
-
}
|
|
8
|
-
&-icon-success {
|
|
9
|
-
color: e('var(--@{ant-prefix}-color-success)');
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-icon-error {
|
|
13
|
-
color: e('var(--@{ant-prefix}-color-error)');
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-header {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
gap: 4px;
|
|
20
|
-
color: e('var(--@{ant-prefix}-color-text-secondary)');
|
|
21
|
-
padding: 8px 12px;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
line-height: 1;
|
|
25
|
-
|
|
26
|
-
&-close {
|
|
27
|
-
border-radius: 8px;
|
|
28
|
-
border: 1px solid e('var(--@{ant-prefix}-color-border-secondary)');
|
|
29
|
-
display: inline-flex;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-icon {
|
|
33
|
-
position: relative;
|
|
34
|
-
display: flex;
|
|
35
|
-
width: 16px;
|
|
36
|
-
height: 16px;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
font-size: 14px;
|
|
40
|
-
|
|
41
|
-
&::before,
|
|
42
|
-
&::after {
|
|
43
|
-
content: '';
|
|
44
|
-
position: absolute;
|
|
45
|
-
width: 1px;
|
|
46
|
-
height: 7px;
|
|
47
|
-
background-color: e('var(--@{ant-prefix}-color-border)');
|
|
48
|
-
left: 50%;
|
|
49
|
-
transform: translateX(-50%);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&::before {
|
|
53
|
-
top: -9px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&::after {
|
|
57
|
-
bottom: -9px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&-last::after {
|
|
61
|
-
content: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-first::before {
|
|
65
|
-
content: none;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&-arrow {
|
|
70
|
-
font-size: 10px;
|
|
71
|
-
transform: scaleY(0.75);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&-open {
|
|
76
|
-
border-radius: 8px;
|
|
77
|
-
border: 1px solid e('var(--@{ant-prefix}-color-border-secondary)');
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&-body {
|
|
81
|
-
margin: 8px;
|
|
82
|
-
color: e('var(--@{ant-prefix}-color-text)');
|
|
83
|
-
font-size: 12px;
|
|
84
|
-
border-radius: 8px;
|
|
85
|
-
overflow: hidden;
|
|
86
|
-
|
|
87
|
-
&-close {
|
|
88
|
-
display: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.@{ant-prefix}-accordion-group-header-close,
|
|
92
|
-
.@{ant-prefix}-accordion-group-open {
|
|
93
|
-
border: 1px solid transparent;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&-inline-open {
|
|
97
|
-
padding: 8px 0;
|
|
98
|
-
margin: 0;
|
|
99
|
-
display: block;
|
|
100
|
-
background-color: transparent;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
> .@{ant-prefix}-accordion-group {
|
|
104
|
-
background-color: e('var(--@{ant-prefix}-color-fill-tertiary)');
|
|
105
|
-
|
|
106
|
-
&-open {
|
|
107
|
-
border-radius: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.@{ant-prefix}-accordion-deepthink {
|
|
114
|
-
font-size: 12px;
|
|
115
|
-
color: e('var(--@{ant-prefix}-color-text-tertiary)');
|
|
116
|
-
white-space: pre-wrap;
|
|
117
|
-
line-height: 20px;
|
|
118
|
-
padding: 0 12px;
|
|
119
|
-
border-left: 1px solid e('var(--@{ant-prefix}-color-border-secondary)');
|
|
120
|
-
|
|
121
|
-
&-title-loading {
|
|
122
|
-
font-size: 12px;
|
|
123
|
-
position: relative;
|
|
124
|
-
display: inline-block;
|
|
125
|
-
top: 0;
|
|
126
|
-
left: 0;
|
|
127
|
-
width: 100%;
|
|
128
|
-
height: 100%;
|
|
129
|
-
mask-image: linear-gradient(
|
|
130
|
-
270deg,
|
|
131
|
-
rgba(231, 231, 237, 0.88) 20%,
|
|
132
|
-
rgba(231, 231, 237, 0.5) 50%,
|
|
133
|
-
rgba(255, 255, 255, 0.4) 52%,
|
|
134
|
-
rgba(231, 231, 237, 0.5) 70%,
|
|
135
|
-
rgba(231, 231, 237, 0.88) 80%
|
|
136
|
-
);
|
|
137
|
-
mask-size: 200% 100%;
|
|
138
|
-
animation: softlight-text 3s linear infinite;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@keyframes softlight-text {
|
|
143
|
-
0% {
|
|
144
|
-
mask-position: 100% 0;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
100% {
|
|
148
|
-
mask-position: -100% 0;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.@{ant-prefix}-accordion-content-body {
|
|
153
|
-
border: 1px solid e('var(--@{ant-prefix}-color-border-secondary)');
|
|
154
|
-
border-radius: 8px;
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
&-header {
|
|
157
|
-
display: flex;
|
|
158
|
-
height: 24px;
|
|
159
|
-
align-items: center;
|
|
160
|
-
justify-content: space-between;
|
|
161
|
-
padding: 0 12px;
|
|
162
|
-
border-bottom: 1px solid e('var(--@{ant-prefix}-color-border-secondary)');
|
|
163
|
-
background-color: e('var(--@{ant-prefix}-color-fill-tertiary)');
|
|
164
|
-
color: e('var(--@{ant-prefix}-color-text)');
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&-body {
|
|
168
|
-
background-color: e('var(--@{ant-prefix}-color-bg-base)');
|
|
169
|
-
}
|
|
170
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DropUploaderProps {
|
|
3
|
-
prefixCls: string;
|
|
4
|
-
className: string;
|
|
5
|
-
getDropContainer?: null | (() => HTMLElement | null | undefined);
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export default function DropArea(props: DropUploaderProps): React.ReactPortal;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function AudioIcon() {
|
|
3
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
4
|
-
width: "1em",
|
|
5
|
-
height: "1em",
|
|
6
|
-
viewBox: "0 0 16 16",
|
|
7
|
-
version: "1.1",
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
10
|
-
}, /*#__PURE__*/React.createElement("title", null, "audio"), /*#__PURE__*/React.createElement("g", {
|
|
11
|
-
stroke: "none",
|
|
12
|
-
"stroke-width": "1",
|
|
13
|
-
fill: "none",
|
|
14
|
-
"fill-rule": "evenodd"
|
|
15
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
16
|
-
d: "M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",
|
|
17
|
-
fill: "currentColor"
|
|
18
|
-
})));
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Attachment } from '..';
|
|
3
|
-
export interface FileListCardProps {
|
|
4
|
-
prefixCls?: string;
|
|
5
|
-
item: Attachment;
|
|
6
|
-
onRemove?: (item: Attachment) => void;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
renderType?: 'default';
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<FileListCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export default _default;
|