@agentscope-ai/chat 1.1.4 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +74 -0
- package/README.md +156 -56
- package/README.zh-CN.md +188 -0
- package/lib/AGUI/components/HelpModal/icons.d.ts +5 -0
- package/lib/AGUI/components/HelpModal/icons.js +84 -0
- package/lib/AGUI/components/HelpModal/index.d.ts +1 -0
- package/lib/AGUI/components/HelpModal/index.js +1 -0
- package/lib/AGUI/components/HelpModal/modal.d.ts +1 -0
- package/lib/AGUI/components/HelpModal/modal.js +104 -0
- package/lib/AGUI/components/chat/Button.d.ts +2 -0
- package/lib/AGUI/components/chat/Button.js +27 -0
- package/lib/AGUI/components/chat/Chat.d.ts +242 -0
- package/lib/AGUI/components/chat/Chat.js +634 -0
- package/lib/AGUI/components/chat/ChatContext.d.ts +142 -0
- package/lib/AGUI/components/chat/ChatContext.js +75 -0
- package/lib/AGUI/components/chat/CodeBlock.d.ts +12 -0
- package/lib/AGUI/components/chat/CodeBlock.js +398 -0
- package/lib/AGUI/components/chat/Header.d.ts +2 -0
- package/lib/AGUI/components/chat/Header.js +28 -0
- package/lib/AGUI/components/chat/Icons.d.ts +16 -0
- package/lib/AGUI/components/chat/Icons.js +247 -0
- package/lib/AGUI/components/chat/ImageUploadQueue.d.ts +11 -0
- package/lib/AGUI/components/chat/ImageUploadQueue.js +65 -0
- package/lib/AGUI/components/chat/Input.d.ts +2 -0
- package/lib/AGUI/components/chat/Input.js +30 -0
- package/lib/AGUI/components/chat/Markdown.d.ts +7 -0
- package/lib/AGUI/components/chat/Markdown.js +187 -0
- package/lib/AGUI/components/chat/Messages.d.ts +7 -0
- package/lib/AGUI/components/chat/Messages.js +242 -0
- package/lib/AGUI/components/chat/Modal.d.ts +43 -0
- package/lib/AGUI/components/chat/Modal.js +113 -0
- package/lib/AGUI/components/chat/Popup.d.ts +49 -0
- package/lib/AGUI/components/chat/Popup.js +64 -0
- package/lib/AGUI/components/chat/PoweredByTag.d.ts +3 -0
- package/lib/AGUI/components/chat/PoweredByTag.js +27 -0
- package/lib/AGUI/components/chat/Sidebar.d.ts +2 -0
- package/lib/AGUI/components/chat/Sidebar.js +85 -0
- package/lib/AGUI/components/chat/Suggestion.d.ts +16 -0
- package/{dist/voice-chat/VoiceChatService/index.js → lib/AGUI/components/chat/Suggestion.js} +138 -201
- package/lib/AGUI/components/chat/Suggestions.d.ts +2 -0
- package/lib/AGUI/components/chat/Suggestions.js +21 -0
- package/lib/AGUI/components/chat/Textarea.d.ts +11 -0
- package/lib/AGUI/components/chat/Textarea.js +60 -0
- package/lib/AGUI/components/chat/Window.d.ts +2 -0
- package/lib/AGUI/components/chat/Window.js +115 -0
- package/lib/AGUI/components/chat/index.d.ts +11 -0
- package/lib/AGUI/components/chat/index.js +11 -0
- package/lib/AGUI/components/chat/messages/AssistantMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/AssistantMessage.js +56 -0
- package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.js +114 -0
- package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.js +97 -0
- package/lib/AGUI/components/chat/messages/RenderImageMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderImageMessage.js +61 -0
- package/lib/AGUI/components/chat/messages/RenderResultMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderResultMessage.js +27 -0
- package/lib/AGUI/components/chat/messages/RenderTextMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderTextMessage.js +47 -0
- package/lib/AGUI/components/chat/messages/UserMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/UserMessage.js +9 -0
- package/lib/AGUI/components/chat/props.d.ts +157 -0
- package/lib/AGUI/components/index.d.ts +1 -0
- package/lib/AGUI/components/index.js +1 -0
- package/lib/AGUI/context/index.d.ts +1 -0
- package/lib/AGUI/hooks/index.d.ts +1 -0
- package/lib/AGUI/hooks/index.js +1 -0
- package/lib/AGUI/hooks/use-copilot-chat-suggestions.d.ts +87 -0
- package/lib/AGUI/hooks/use-copilot-chat-suggestions.js +95 -0
- package/lib/AGUI/hooks/use-copy-to-clipboard.d.ts +7 -0
- package/{dist/theme/genStyleUtils.js → lib/AGUI/hooks/use-copy-to-clipboard.js} +27 -42
- package/lib/AGUI/hooks/use-dark-mode.d.ts +1 -0
- package/lib/AGUI/hooks/use-dark-mode.js +4 -0
- package/lib/AGUI/hooks/use-push-to-talk.d.ts +16 -0
- package/lib/AGUI/hooks/use-push-to-talk.js +260 -0
- package/lib/AGUI/index.d.ts +4 -0
- package/lib/AGUI/index.js +4 -0
- package/lib/AGUI/lib/utils.d.ts +2 -0
- package/lib/AGUI/lib/utils.js +52 -0
- package/lib/AGUI/types/index.d.ts +1 -0
- package/lib/AGUI/types/suggestions.d.ts +6 -0
- package/lib/Accordion/Accordion.d.ts +64 -0
- package/{dist/accordion → lib/Accordion}/Accordion.js +101 -40
- package/{dist/accordion → lib/Accordion}/BodyContent.d.ts +1 -1
- package/lib/Accordion/BodyContent.js +23 -0
- package/lib/Accordion/DeepThinking.d.ts +28 -0
- package/lib/Accordion/DeepThinking.js +35 -0
- package/lib/Accordion/SoftLightTitle.d.ts +3 -0
- package/lib/Accordion/SoftLightTitle.js +17 -0
- package/lib/Accordion/index.d.ts +2 -0
- package/lib/Accordion/style.d.ts +2 -0
- package/lib/Accordion/style.js +60 -0
- package/lib/Attachments/DropArea.d.ts +24 -0
- package/{dist/attachments → lib/Attachments}/DropArea.js +5 -11
- package/lib/Attachments/FileList/AudioIcon.d.ts +1 -0
- package/lib/Attachments/FileList/AudioIcon.js +24 -0
- package/lib/Attachments/FileList/FileListCard.d.ts +36 -0
- package/{dist/attachments → lib/Attachments}/FileList/FileListCard.js +109 -83
- package/lib/Attachments/FileList/Progress.d.ts +13 -0
- package/{dist/attachments → lib/Attachments}/FileList/Progress.js +7 -5
- package/lib/Attachments/FileList/VideoIcon.d.ts +1 -0
- package/lib/Attachments/FileList/VideoIcon.js +24 -0
- package/lib/Attachments/FileList/index.d.ts +56 -0
- package/{dist/attachments → lib/Attachments}/FileList/index.js +48 -48
- package/lib/Attachments/PlaceholderUploader.d.ts +49 -0
- package/{dist/attachments → lib/Attachments}/PlaceholderUploader.js +33 -28
- package/lib/Attachments/SilentUploader.d.ts +21 -0
- package/lib/Attachments/SilentUploader.js +30 -0
- package/lib/Attachments/context.d.ts +9 -0
- package/lib/Attachments/index.d.ts +97 -0
- package/lib/Attachments/index.en-US.md.bk +10 -0
- package/{dist/attachments → lib/Attachments}/index.js +51 -55
- package/lib/Attachments/index.zh-CN.md.bk +10 -0
- package/lib/Attachments/style/fileCard.d.ts +2 -0
- package/lib/Attachments/style/fileCard.js +68 -0
- package/lib/Attachments/style/index.d.ts +2 -0
- package/lib/Attachments/style/index.js +98 -0
- package/{dist/bubble → lib/Bubble}/Avatar.d.ts +0 -1
- package/{dist/bubble → lib/Bubble}/Avatar.js +8 -5
- package/lib/Bubble/Bubble.d.ts +19 -0
- package/{dist/bubble → lib/Bubble}/Bubble.js +39 -52
- package/lib/Bubble/BubbleList.d.ts +41 -0
- package/lib/Bubble/BubbleList.js +64 -0
- package/{dist/bubble → lib/Bubble}/Cards.d.ts +2 -8
- package/{dist/bubble → lib/Bubble}/Cards.js +9 -9
- package/{dist/bubble → lib/Bubble}/ScrollToBottom.d.ts +0 -1
- package/{dist/bubble → lib/Bubble}/ScrollToBottom.js +15 -14
- package/lib/Bubble/Spin.d.ts +1 -0
- package/lib/Bubble/Spin.js +21 -0
- package/lib/Bubble/hooks/useListData.d.ts +0 -0
- package/lib/Bubble/hooks/useListData.js +0 -0
- package/lib/Bubble/interface.d.ts +62 -0
- package/lib/Bubble/loading.js +17 -0
- package/lib/Bubble/style/avatar.d.ts +2 -0
- package/lib/Bubble/style/avatar.js +8 -0
- package/lib/Bubble/style/index.d.ts +2 -0
- package/lib/Bubble/style/index.js +46 -0
- package/lib/Bubble/style/list.d.ts +2 -0
- package/lib/Bubble/style/list.js +16 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.d.ts +0 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.js +39 -28
- package/lib/ChatAnywhere/Chat/style.d.ts +2 -0
- package/lib/ChatAnywhere/Chat/style.js +14 -0
- package/lib/ChatAnywhere/Header/index.d.ts +1 -0
- package/lib/ChatAnywhere/Header/index.js +39 -0
- package/lib/ChatAnywhere/Header/style.d.ts +2 -0
- package/lib/ChatAnywhere/Header/style.js +12 -0
- package/lib/ChatAnywhere/Input/index.d.ts +3 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Input/index.js +87 -68
- package/lib/ChatAnywhere/Input/style.d.ts +2 -0
- package/lib/ChatAnywhere/Input/style.js +6 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Layout/index.d.ts +1 -2
- package/lib/ChatAnywhere/Layout/index.js +91 -0
- package/lib/ChatAnywhere/Layout/style.d.ts +2 -0
- package/lib/ChatAnywhere/Layout/style.js +16 -0
- package/lib/ChatAnywhere/SessionList/index.d.ts +3 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/SessionList/index.js +67 -55
- package/lib/ChatAnywhere/SessionList/style.d.ts +2 -0
- package/lib/ChatAnywhere/SessionList/style.js +14 -0
- package/lib/ChatAnywhere/hooks/ChatAnywhereProvider.d.ts +148 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/ChatAnywhereProvider.js +11 -5
- package/lib/ChatAnywhere/hooks/types.d.ts +312 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.d.ts +3 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.js +10 -2
- package/{dist/chat-anywhere → lib/ChatAnywhere}/index.d.ts +4 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/index.js +28 -15
- package/{dist/conversations → lib/Conversations}/GroupTitle.d.ts +4 -0
- package/{dist/conversations → lib/Conversations}/GroupTitle.js +7 -5
- package/{dist/conversations → lib/Conversations}/Item.d.ts +1 -0
- package/lib/Conversations/Item.js +208 -0
- package/lib/Conversations/hooks/useGroupable.d.ts +8 -0
- package/lib/Conversations/index.d.ts +55 -0
- package/{dist/conversations → lib/Conversations}/index.js +50 -61
- package/lib/Conversations/interface.d.ts +56 -0
- package/lib/Conversations/style.d.ts +2 -0
- package/lib/Conversations/style.js +60 -0
- package/{dist/default-cards/DeepThink → lib/DefaultCards/DeepThinking}/index.d.ts +2 -3
- package/lib/DefaultCards/DeepThinking/index.js +12 -0
- package/lib/DefaultCards/Files/index.d.ts +1 -0
- package/lib/DefaultCards/Files/index.js +56 -0
- package/{dist/default-cards → lib/DefaultCards}/Footer/index.d.ts +3 -4
- package/lib/DefaultCards/Footer/index.js +74 -0
- package/lib/DefaultCards/Images/index.d.ts +1 -0
- package/lib/DefaultCards/Images/index.js +49 -0
- package/{dist/default-cards → lib/DefaultCards}/Interrupted/index.d.ts +1 -3
- package/lib/DefaultCards/Interrupted/index.js +54 -0
- package/lib/DefaultCards/Text/index.d.ts +1 -0
- package/{dist/default-cards → lib/DefaultCards}/Text/index.js +4 -2
- package/lib/DefaultCards/count/index.d.ts +1 -0
- package/lib/DefaultCards/count/index.js +36 -0
- package/{dist/default-cards → lib/DefaultCards}/index.d.ts +1 -1
- package/{dist/default-cards → lib/DefaultCards}/index.js +1 -1
- package/lib/Disclaimer/index.d.ts +22 -0
- package/lib/Disclaimer/index.js +26 -0
- package/lib/Disclaimer/style.d.ts +2 -0
- package/lib/Disclaimer/style.js +10 -0
- package/lib/ImageGenerator/index.d.ts +41 -0
- package/lib/ImageGenerator/index.js +75 -0
- package/lib/ImageGenerator/style.d.ts +2 -0
- package/lib/ImageGenerator/style.js +20 -0
- package/{dist/markdown → lib/Markdown}/Citation.js +19 -14
- package/{dist/markdown → lib/Markdown}/CodeBlock.d.ts +1 -0
- package/{dist/markdown → lib/Markdown}/CodeBlock.js +51 -30
- package/lib/Markdown/ImageOrMedia.d.ts +1 -0
- package/lib/Markdown/ImageOrMedia.js +113 -0
- package/lib/Markdown/Link.js +48 -0
- package/{dist/markdown → lib/Markdown}/Markdown.js +22 -11
- package/lib/Markdown/cursor/Dot.d.ts +1 -0
- package/lib/Markdown/cursor/Dot.js +35 -0
- package/lib/Markdown/cursor/Underline.d.ts +1 -0
- package/lib/Markdown/cursor/Underline.js +19 -0
- package/lib/Markdown/hooks/index.d.ts +0 -0
- package/lib/Markdown/hooks/index.js +0 -0
- package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.js +1 -1
- package/lib/Markdown/index.d.ts +63 -0
- package/lib/Markdown/index.js +44 -0
- package/lib/Markdown/style.d.ts +2 -0
- package/lib/Markdown/style.js +36 -0
- package/lib/Markdown/type.d.ts +186 -0
- package/{dist/markdown → lib/Markdown}/utils.js +1 -2
- package/lib/Mermaid/index.d.ts +18 -0
- package/{dist/voice-chat/Recorder → lib/Mermaid}/index.js +144 -160
- package/{dist/provider → lib/Provider}/CustomCardsProvider.d.ts +2 -1
- package/{dist/provider → lib/Provider}/CustomCardsProvider.js +5 -3
- package/{dist/provider → lib/Provider}/GlobalProvider.d.ts +1 -1
- package/{dist/provider → lib/Provider}/GlobalProvider.js +5 -3
- package/{dist/provider → lib/Provider}/index.d.ts +1 -2
- package/{dist/provider → lib/Provider}/index.js +9 -6
- package/lib/Provider/types.d.ts +24 -0
- package/lib/Provider/types.js +1 -0
- package/lib/Sender/ModeSelect/index.d.ts +17 -0
- package/lib/Sender/ModeSelect/index.js +109 -0
- package/lib/Sender/ModeSelect/styles.d.ts +0 -0
- package/lib/Sender/ModeSelect/styles.js +0 -0
- package/lib/Sender/SenderHeader.d.ts +63 -0
- package/{dist/sender → lib/Sender}/SenderHeader.js +40 -32
- package/{dist/sender → lib/Sender}/StopLoading.d.ts +1 -1
- package/lib/Sender/StopLoading.js +25 -0
- package/lib/Sender/components/ActionButton.d.ts +72 -0
- package/{dist/sender → lib/Sender}/components/ActionButton.js +9 -5
- package/lib/Sender/components/ClearButton.js +19 -0
- package/lib/Sender/components/LoadingButton.js +28 -0
- package/lib/Sender/components/SendButton.js +20 -0
- package/lib/Sender/components/SpeechButton/RecordingIcon.d.ts +8 -0
- package/lib/Sender/components/SpeechButton/RecordingIcon.js +54 -0
- package/lib/Sender/components/SpeechButton/index.js +35 -0
- package/lib/Sender/index.d.ts +142 -0
- package/{dist/sender → lib/Sender}/index.js +128 -121
- package/lib/Sender/style/index.d.ts +2 -0
- package/lib/Sender/style/index.js +41 -0
- package/{dist/stream → lib/Stream}/index.d.ts +4 -2
- package/{dist/stream → lib/Stream}/index.js +1 -1
- package/lib/Util/createStyle.d.ts +5 -0
- package/lib/Util/createStyle.js +20 -0
- package/lib/Util/sleep.d.ts +1 -0
- package/lib/Util/sleep.js +5 -0
- package/lib/Util/type.js +1 -0
- package/{dist/_util → lib/Util}/warning.d.ts +2 -2
- package/lib/Voice/Recorder.d.ts +1 -0
- package/lib/Voice/Recorder.js +6 -0
- package/lib/Voice/index.d.ts +0 -0
- package/lib/Voice/index.js +0 -0
- package/lib/Welcome/index.d.ts +24 -0
- package/lib/Welcome/index.js +39 -0
- package/lib/index.d.ts +25 -0
- package/lib/index.js +24 -0
- package/lib/index.less +0 -0
- package/package.json +27 -13
- package/dist/accordion/Accordion.d.ts +0 -22
- package/dist/accordion/BodyContent.js +0 -18
- package/dist/accordion/DeepThink.d.ts +0 -7
- package/dist/accordion/DeepThink.js +0 -35
- package/dist/accordion/index.d.ts +0 -2
- package/dist/accordion/index.less +0 -170
- package/dist/attachments/DropArea.d.ts +0 -8
- package/dist/attachments/FileList/AudioIcon.d.ts +0 -2
- package/dist/attachments/FileList/AudioIcon.js +0 -19
- package/dist/attachments/FileList/FileListCard.d.ts +0 -12
- package/dist/attachments/FileList/Progress.d.ts +0 -6
- package/dist/attachments/FileList/VideoIcon.d.ts +0 -2
- package/dist/attachments/FileList/VideoIcon.js +0 -19
- package/dist/attachments/FileList/index.d.ts +0 -16
- package/dist/attachments/PlaceholderUploader.d.ts +0 -17
- package/dist/attachments/SilentUploader.d.ts +0 -9
- package/dist/attachments/SilentUploader.js +0 -23
- package/dist/attachments/context.d.ts +0 -5
- package/dist/attachments/index.d.ts +0 -33
- package/dist/attachments/style/fileCard.d.ts +0 -4
- package/dist/attachments/style/fileCard.js +0 -124
- package/dist/attachments/style/index.d.ts +0 -10
- package/dist/attachments/style/index.js +0 -211
- package/dist/bubble/Bubble.d.ts +0 -11
- package/dist/bubble/BubbleList.d.ts +0 -15
- package/dist/bubble/BubbleList.js +0 -44
- package/dist/bubble/Spin.d.ts +0 -2
- package/dist/bubble/Spin.js +0 -18
- package/dist/bubble/interface.d.ts +0 -26
- package/dist/bubble/loading.js +0 -17
- package/dist/bubble/style/avatar.less +0 -40
- package/dist/bubble/style/content.d.ts +0 -4
- package/dist/bubble/style/content.js +0 -43
- package/dist/bubble/style/index.d.ts +0 -9
- package/dist/bubble/style/index.js +0 -53
- package/dist/bubble/style/list.less +0 -15
- package/dist/bubble/style/scrollToBottom.less +0 -174
- package/dist/chat-anywhere/Chat/index.less +0 -54
- package/dist/chat-anywhere/Header/index.d.ts +0 -3
- package/dist/chat-anywhere/Header/index.js +0 -32
- package/dist/chat-anywhere/Header/index.less +0 -24
- package/dist/chat-anywhere/Input/index.d.ts +0 -3
- package/dist/chat-anywhere/Input/index.less +0 -12
- package/dist/chat-anywhere/Layout/index.js +0 -73
- package/dist/chat-anywhere/Layout/index.less +0 -61
- package/dist/chat-anywhere/SessionList/index.d.ts +0 -5
- package/dist/chat-anywhere/SessionList/index.less +0 -52
- package/dist/chat-anywhere/hooks/ChatAnywhereProvider.d.ts +0 -43
- package/dist/chat-anywhere/hooks/types.d.ts +0 -57
- package/dist/conversations/Item.js +0 -96
- package/dist/conversations/hooks/useGroupable.d.ts +0 -9
- package/dist/conversations/index.d.ts +0 -62
- package/dist/conversations/interface.d.ts +0 -60
- package/dist/conversations/style/index.d.ts +0 -9
- package/dist/conversations/style/index.js +0 -80
- package/dist/default-cards/Count/index.d.ts +0 -3
- package/dist/default-cards/Count/index.js +0 -16
- package/dist/default-cards/Count/index.less +0 -19
- package/dist/default-cards/DeepThink/index.js +0 -11
- package/dist/default-cards/Files/index.d.ts +0 -2
- package/dist/default-cards/Files/index.js +0 -18
- package/dist/default-cards/Footer/index.js +0 -50
- package/dist/default-cards/Footer/index.less +0 -41
- package/dist/default-cards/Images/index.d.ts +0 -3
- package/dist/default-cards/Images/index.js +0 -33
- package/dist/default-cards/Images/index.less +0 -17
- package/dist/default-cards/Interrupted/index.js +0 -40
- package/dist/default-cards/Interrupted/index.less +0 -57
- package/dist/default-cards/Text/index.d.ts +0 -2
- package/dist/disclaimer/index.d.ts +0 -11
- package/dist/disclaimer/index.js +0 -26
- package/dist/docs/1896.async.js +0 -457
- package/dist/docs/2710.async.js +0 -62
- package/dist/docs/2863.async.js +0 -400
- package/dist/docs/3057.async.js +0 -46
- package/dist/docs/3364.async.js +0 -25
- package/dist/docs/404.html +0 -15
- package/dist/docs/4820.async.js +0 -1381
- package/dist/docs/5623.async.js +0 -60
- package/dist/docs/5757.async.js +0 -1
- package/dist/docs/5804.async.js +0 -271
- package/dist/docs/6198.async.js +0 -18
- package/dist/docs/6671.async.js +0 -137
- package/dist/docs/7195.async.js +0 -1
- package/dist/docs/7485.async.js +0 -29
- package/dist/docs/7931.async.js +0 -19
- package/dist/docs/7997.async.js +0 -5
- package/dist/docs/8156.async.js +0 -110
- package/dist/docs/8368.async.js +0 -2
- package/dist/docs/8480.async.js +0 -1449
- package/dist/docs/8618.async.js +0 -246
- package/dist/docs/9016.async.js +0 -32
- package/dist/docs/9016.chunk.css +0 -1
- package/dist/docs/9335.async.js +0 -11
- package/dist/docs/accordion__demos.async.js +0 -9
- package/dist/docs/attachments__demos.async.js +0 -1
- package/dist/docs/bubble__demos.async.js +0 -50
- package/dist/docs/components/accordion/index.html +0 -15
- package/dist/docs/components/accordion-cn/index.html +0 -15
- package/dist/docs/components/attachments/index.html +0 -15
- package/dist/docs/components/attachments-cn/index.html +0 -15
- package/dist/docs/components/bubble/index.html +0 -15
- package/dist/docs/components/bubble-cn/index.html +0 -15
- package/dist/docs/components/bubble-list/index.html +0 -15
- package/dist/docs/components/bubble-list-cn/index.html +0 -15
- package/dist/docs/components/conversations/index.html +0 -15
- package/dist/docs/components/conversations-cn/index.html +0 -15
- package/dist/docs/components/disclaimer/index.html +0 -15
- package/dist/docs/components/disclaimer-cn/index.html +0 -15
- package/dist/docs/components/footer/index.html +0 -15
- package/dist/docs/components/footer-cn/index.html +0 -15
- package/dist/docs/components/markdown/index.html +0 -15
- package/dist/docs/components/markdown-cn/index.html +0 -15
- package/dist/docs/components/sender/index.html +0 -15
- package/dist/docs/components/sender-cn/index.html +0 -15
- package/dist/docs/components/status/index.html +0 -15
- package/dist/docs/components/status-cn/index.html +0 -15
- package/dist/docs/components/welcome/index.html +0 -15
- package/dist/docs/components/welcome-cn/index.html +0 -15
- package/dist/docs/components__accordion__index.en-US.md.async.js +0 -6
- package/dist/docs/components__accordion__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__accordion__index.zh-CN.md.async.js +0 -6
- package/dist/docs/components__accordion__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__attachments__index.en-US.md.async.js +0 -1
- package/dist/docs/components__attachments__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__attachments__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__attachments__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__bubble-list__index.en-US.md.async.js +0 -2
- package/dist/docs/components__bubble-list__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__bubble-list__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__bubble-list__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__bubble__index.en-US.md.async.js +0 -1
- package/dist/docs/components__bubble__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__bubble__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__bubble__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__conversations__index.en-US.md.async.js +0 -2
- package/dist/docs/components__conversations__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__conversations__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__conversations__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__disclaimer__index.en-US.md.async.js +0 -1
- package/dist/docs/components__disclaimer__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__disclaimer__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__disclaimer__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__footer__index.en-US.md.async.js +0 -1
- package/dist/docs/components__footer__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__footer__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__footer__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__markdown__index.en-US.md.async.js +0 -1
- package/dist/docs/components__markdown__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__markdown__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__markdown__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__sender__index.en-US.md.async.js +0 -1
- package/dist/docs/components__sender__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__sender__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__sender__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__status__index.en-US.md.async.js +0 -1
- package/dist/docs/components__status__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__status__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__status__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__welcome__index.en-US.md.async.js +0 -2
- package/dist/docs/components__welcome__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__welcome__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__welcome__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/conversations__demos.async.js +0 -1
- package/dist/docs/demos.async.js +0 -47
- package/dist/docs/demos.chunk.css +0 -1
- package/dist/docs/disclaimer__demos.async.js +0 -1
- package/dist/docs/docs/development/ag-ui/index.html +0 -15
- package/dist/docs/docs/development/ag-ui-cn/index.html +0 -15
- package/dist/docs/docs/development/backend/index.html +0 -15
- package/dist/docs/docs/development/backend-cn/index.html +0 -15
- package/dist/docs/docs/development/cards/index.html +0 -15
- package/dist/docs/docs/development/cards-cn/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-api/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-api-cn/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-cn/index.html +0 -15
- package/dist/docs/docs/development/custom/index.html +0 -15
- package/dist/docs/docs/development/custom-cn/index.html +0 -15
- package/dist/docs/docs/development/overview/index.html +0 -15
- package/dist/docs/docs/development/overview-cn/index.html +0 -15
- package/dist/docs/docs/development/qwen/index.html +0 -15
- package/dist/docs/docs/development/qwen-cn/index.html +0 -15
- package/dist/docs/docs/templates/copilot/index.html +0 -15
- package/dist/docs/docs/templates/copilot-cn/index.html +0 -15
- package/dist/docs/docs/templates/native/index.html +0 -15
- package/dist/docs/docs/templates/native-cn/index.html +0 -15
- package/dist/docs/docs/templates/voice/index.html +0 -15
- package/dist/docs/docs/templates/voice-cn/index.html +0 -15
- package/dist/docs/docs__development__ag-ui.en-US.md.async.js +0 -210
- package/dist/docs/docs__development__ag-ui.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__ag-ui.zh-CN.md.async.js +0 -210
- package/dist/docs/docs__development__ag-ui.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__backend.en-US.md.async.js +0 -12
- package/dist/docs/docs__development__backend.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__backend.zh-CN.md.async.js +0 -12
- package/dist/docs/docs__development__backend.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__cards.en-US.md.async.js +0 -27
- package/dist/docs/docs__development__cards.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__cards.zh-CN.md.async.js +0 -27
- package/dist/docs/docs__development__cards.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.async.js +0 -69
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.async.js +0 -69
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere.en-US.md.async.js +0 -77
- package/dist/docs/docs__development__chatanywhere.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.async.js +0 -77
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__custom.en-US.md.async.js +0 -22
- package/dist/docs/docs__development__custom.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__custom.zh-CN.md.async.js +0 -22
- package/dist/docs/docs__development__custom.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__overview.en-US.md.async.js +0 -21
- package/dist/docs/docs__development__overview.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__overview.zh-CN.md.async.js +0 -21
- package/dist/docs/docs__development__overview.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__qwen.en-US.md.async.js +0 -25
- package/dist/docs/docs__development__qwen.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__qwen.zh-CN.md.async.js +0 -25
- package/dist/docs/docs__development__qwen.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__copilot.en-US.md.async.js +0 -1
- package/dist/docs/docs__templates__copilot.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__copilot.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__copilot.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__native.en-US.md.async.js +0 -1
- package/dist/docs/docs__templates__native.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__native.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__native.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__voice.en-US.md.async.js +0 -20
- package/dist/docs/docs__templates__voice.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__voice.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__voice.zh-CN.md.chunk.css +0 -1
- package/dist/docs/dumi__pages__index__index.en-US.async.js +0 -1
- package/dist/docs/dumi__pages__index__index.en-US.chunk.css +0 -1
- package/dist/docs/dumi__pages__index__index.zh-CN.async.js +0 -1
- package/dist/docs/dumi__pages__index__index.zh-CN.chunk.css +0 -1
- package/dist/docs/dumi__theme__layouts__DocLayout__index.async.js +0 -1
- package/dist/docs/dumi__theme__layouts__DocLayout__index.chunk.css +0 -1
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.async.js +0 -18
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.chunk.css +0 -1
- package/dist/docs/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +0 -1
- package/dist/docs/index/index.html +0 -15
- package/dist/docs/index-cn/index.html +0 -15
- package/dist/docs/markdown__demos.async.js +0 -164
- package/dist/docs/meta__components__en-US.async.js +0 -9
- package/dist/docs/meta__components__zh-CN.async.js +0 -10
- package/dist/docs/meta__docs__en-US.async.js +0 -475
- package/dist/docs/meta__docs__en-US.chunk.css +0 -1
- package/dist/docs/meta__docs__zh-CN.async.js +0 -456
- package/dist/docs/meta__docs__zh-CN.chunk.css +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__404.async.js +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.async.js +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.chunk.css +0 -1
- package/dist/docs/preload_helper.js +0 -1
- package/dist/docs/sender__demos.async.js +0 -1
- package/dist/docs/umi.css +0 -1
- package/dist/docs/umi.js +0 -107
- package/dist/docs/welcome__demos.async.js +0 -1
- package/dist/docs/~demos/:id/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-inline/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-mutisteps/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-thinking/index.html +0 -15
- package/dist/docs/~demos/attachments-demo-files/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-basic/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-havestopped/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithfile/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithimage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithnormal/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withavatar/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withcode/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-witherror/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-witherrordetail/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withimage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withusage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withwaitingmessage/index.html +0 -15
- package/dist/docs/~demos/components-bubble-list-demo-basic/index.html +0 -15
- package/dist/docs/~demos/components-footer-demo-basic/index.html +0 -15
- package/dist/docs/~demos/components-footer-demo-withusage/index.html +0 -15
- package/dist/docs/~demos/components-status-demo-basic/index.html +0 -15
- package/dist/docs/~demos/conversations-demo-basic/index.html +0 -15
- package/dist/docs/~demos/disclaimer-demo-demo/index.html +0 -15
- package/dist/docs/~demos/disclaimer-demo-withlink/index.html +0 -15
- package/dist/docs/~demos/docs-development-ag-ui-demo-with-copilotkit/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-file/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-footer/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-image/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-text/index.html +0 -15
- package/dist/docs/~demos/docs-development-custom-demo-custom/index.html +0 -15
- package/dist/docs/~demos/docs-templates-copilot-demo-copilot/index.html +0 -15
- package/dist/docs/~demos/docs-templates-native-demo-basic/index.html +0 -15
- package/dist/docs/~demos/docs-templates-voice-demo-demo/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-citations/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-cursor/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-mathjax/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-md/index.html +0 -15
- package/dist/docs/~demos/sender-demo-basic/index.html +0 -15
- package/dist/docs/~demos/sender-demo-disabled/index.html +0 -15
- package/dist/docs/~demos/sender-demo-loading/index.html +0 -15
- package/dist/docs/~demos/sender-demo-moreprefixaction/index.html +0 -15
- package/dist/docs/~demos/sender-demo-withfile/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo0/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo1/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo2/index.html +0 -15
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -20
- package/dist/index.less +0 -1
- package/dist/markdown/ImageOrVideo.d.ts +0 -2
- package/dist/markdown/ImageOrVideo.js +0 -81
- package/dist/markdown/Link.js +0 -28
- package/dist/markdown/cursor/Blur.d.ts +0 -3
- package/dist/markdown/cursor/Blur.js +0 -7
- package/dist/markdown/cursor/Dot.d.ts +0 -3
- package/dist/markdown/cursor/Dot.js +0 -16
- package/dist/markdown/cursor/Underline.d.ts +0 -3
- package/dist/markdown/cursor/Underline.js +0 -7
- package/dist/markdown/cursor/index.less +0 -124
- package/dist/markdown/hooks/index.d.ts +0 -1
- package/dist/markdown/hooks/index.js +0 -49
- package/dist/markdown/index.d.ts +0 -16
- package/dist/markdown/index.js +0 -37
- package/dist/markdown/index.less +0 -204
- package/dist/markdown/type.d.ts +0 -46
- package/dist/provider/types.d.ts +0 -8
- package/dist/sender/SenderHeader.d.ts +0 -19
- package/dist/sender/StopLoading.js +0 -20
- package/dist/sender/components/ActionButton.d.ts +0 -22
- package/dist/sender/components/ClearButton.js +0 -13
- package/dist/sender/components/LoadingButton.js +0 -22
- package/dist/sender/components/SendButton.js +0 -14
- package/dist/sender/components/SpeechButton/RecordingIcon.d.ts +0 -5
- package/dist/sender/components/SpeechButton/RecordingIcon.js +0 -49
- package/dist/sender/components/SpeechButton/index.js +0 -30
- package/dist/sender/index.d.ts +0 -61
- package/dist/sender/style/header.d.ts +0 -4
- package/dist/sender/style/header.js +0 -46
- package/dist/sender/style/index.d.ts +0 -10
- package/dist/sender/style/index.js +0 -123
- package/dist/stream/index.en-US.md.bk +0 -50
- package/dist/stream/index.zh-CN.md.bk +0 -51
- package/dist/theme/components.d.ts +0 -10
- package/dist/theme/cssinjs-utils.d.ts +0 -14
- package/dist/theme/genStyleUtils.d.ts +0 -28
- package/dist/theme/useToken.d.ts +0 -18
- package/dist/theme/useToken.js +0 -110
- package/dist/voice-chat/Recorder/index.d.ts +0 -26
- package/dist/voice-chat/VoiceChatProvider/context.d.ts +0 -22
- package/dist/voice-chat/VoiceChatProvider/context.js +0 -3
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.d.ts +0 -1
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.js +0 -5
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.d.ts +0 -8
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.js +0 -31
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.d.ts +0 -5
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.js +0 -48
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.d.ts +0 -4
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.js +0 -10
- package/dist/voice-chat/VoiceChatProvider/index.d.ts +0 -9
- package/dist/voice-chat/VoiceChatProvider/index.js +0 -55
- package/dist/voice-chat/VoiceChatService/index.d.ts +0 -34
- package/dist/voice-chat/index.d.ts +0 -2
- package/dist/voice-chat/index.js +0 -2
- package/dist/voice-chat/types/index.d.ts +0 -12
- package/dist/voice-chat/types/index.js +0 -4
- package/dist/welcome/icon.d.ts +0 -2
- package/dist/welcome/icon.js +0 -38
- package/dist/welcome/index.d.ts +0 -9
- package/dist/welcome/index.js +0 -57
- /package/{dist/_util/type.js → lib/AGUI/components/chat/props.js} +0 -0
- /package/{dist/bubble/interface.js → lib/AGUI/context/index.js} +0 -0
- /package/{dist/bubble/hooks/useDisplayData.d.ts → lib/AGUI/styles.css} +0 -0
- /package/{dist/bubble/hooks/useDisplayData.js → lib/AGUI/types/css.d.ts} +0 -0
- /package/{dist/bubble/hooks/useListData.d.ts → lib/AGUI/types/css.js} +0 -0
- /package/{dist/chat-anywhere/hooks/types.js → lib/AGUI/types/index.js} +0 -0
- /package/{dist/conversations/interface.js → lib/AGUI/types/suggestions.js} +0 -0
- /package/{dist/accordion → lib/Accordion}/index.js +0 -0
- /package/{dist/attachments → lib/Attachments}/context.js +0 -0
- /package/{dist/attachments → lib/Attachments}/util.d.ts +0 -0
- /package/{dist/attachments → lib/Attachments}/util.js +0 -0
- /package/{dist/bubble/hooks/useListData.js → lib/Bubble/hooks/useDisplayData.d.ts} +0 -0
- /package/{dist/default-cards/DeepThink/index.less → lib/Bubble/hooks/useDisplayData.js} +0 -0
- /package/{dist/bubble → lib/Bubble}/index.d.ts +0 -0
- /package/{dist/bubble → lib/Bubble}/index.js +0 -0
- /package/{dist/markdown/type.js → lib/Bubble/interface.js} +0 -0
- /package/{dist/bubble → lib/Bubble}/loading.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.js +0 -0
- /package/{dist/provider → lib/ChatAnywhere/hooks}/types.js +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.js +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.js +0 -0
- /package/{dist/conversations → lib/Conversations}/hooks/useGroupable.js +0 -0
- /package/{dist/theme/components.js → lib/Conversations/interface.js} +0 -0
- /package/{dist/markdown → lib/Markdown}/Citation.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/Link.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/Markdown.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/footnote.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/footnote.js +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/katexDir.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/katexDir.js +0 -0
- /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.js +0 -0
- /package/{dist/theme/cssinjs-utils.js → lib/Markdown/type.js} +0 -0
- /package/{dist/markdown → lib/Markdown}/utils.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/ClearButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/LoadingButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/SendButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/SpeechButton/index.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/useSpeech.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/useSpeech.js +0 -0
- /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.d.ts +0 -0
- /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.js +0 -0
- /package/{dist/_util → lib/Util}/type.d.ts +0 -0
- /package/{dist/_util → lib/Util}/warning.js +0 -0
- /package/{dist/version → lib/Version}/index.d.ts +0 -0
- /package/{dist/version → lib/Version}/index.js +0 -0
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function VideoIcon() {
|
|
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, "video"), /*#__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 M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",
|
|
17
|
-
fill: "currentColor"
|
|
18
|
-
})));
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type UploadProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { Attachment } from '..';
|
|
4
|
-
export interface FileListProps {
|
|
5
|
-
prefixCls: string;
|
|
6
|
-
items: Attachment[];
|
|
7
|
-
onRemove: (item: Attachment) => void;
|
|
8
|
-
overflow?: 'scrollX' | 'scrollY' | 'wrap';
|
|
9
|
-
upload: UploadProps;
|
|
10
|
-
listClassName?: string;
|
|
11
|
-
listStyle?: React.CSSProperties;
|
|
12
|
-
itemClassName?: string;
|
|
13
|
-
itemStyle?: React.CSSProperties;
|
|
14
|
-
renderType?: 'default';
|
|
15
|
-
}
|
|
16
|
-
export default function FileList(props: FileListProps): React.JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type UploadProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface PlaceholderConfig {
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
title?: React.ReactNode;
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export type PlaceholderType = PlaceholderConfig | React.ReactElement;
|
|
9
|
-
export interface PlaceholderProps {
|
|
10
|
-
prefixCls: string;
|
|
11
|
-
placeholder?: PlaceholderType;
|
|
12
|
-
upload?: UploadProps;
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: React.ForwardRefExoticComponent<PlaceholderProps & React.RefAttributes<import("antd/es/upload/Upload").UploadRef<any>>>;
|
|
17
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type UploadProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface SilentUploaderProps {
|
|
4
|
-
children: React.ReactElement;
|
|
5
|
-
upload: UploadProps;
|
|
6
|
-
rootClassName?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: React.ForwardRefExoticComponent<SilentUploaderProps & React.RefAttributes<import("antd/es/upload/Upload").UploadRef<any>>>;
|
|
9
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import { Upload } from 'antd';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
/**
|
|
5
|
-
* SilentUploader is only wrap children with antd Upload component.
|
|
6
|
-
*/
|
|
7
|
-
function SilentUploader(props, ref) {
|
|
8
|
-
var children = props.children,
|
|
9
|
-
upload = props.upload,
|
|
10
|
-
rootClassName = props.rootClassName;
|
|
11
|
-
var uploadRef = React.useRef(null);
|
|
12
|
-
React.useImperativeHandle(ref, function () {
|
|
13
|
-
return uploadRef.current;
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
// ============================ Render ============================
|
|
17
|
-
return /*#__PURE__*/React.createElement(Upload, _extends({}, upload, {
|
|
18
|
-
showUploadList: false,
|
|
19
|
-
rootClassName: rootClassName,
|
|
20
|
-
ref: uploadRef
|
|
21
|
-
}), children);
|
|
22
|
-
}
|
|
23
|
-
export default /*#__PURE__*/React.forwardRef(SilentUploader);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type GetProp, type UploadProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { type FileListProps } from './FileList';
|
|
4
|
-
import FileListCard from './FileList/FileListCard';
|
|
5
|
-
import { type PlaceholderType } from './PlaceholderUploader';
|
|
6
|
-
export type SemanticType = 'list' | 'item' | 'placeholder';
|
|
7
|
-
export type Attachment = GetProp<UploadProps, 'fileList'>[number] & {
|
|
8
|
-
description?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
export interface AttachmentsProps extends Omit<UploadProps, 'fileList'> {
|
|
11
|
-
prefixCls?: string;
|
|
12
|
-
rootClassName?: string;
|
|
13
|
-
rootStyle?: React.CSSProperties;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
className?: string;
|
|
16
|
-
classNames?: Partial<Record<SemanticType, string>>;
|
|
17
|
-
styles?: Partial<Record<SemanticType, React.CSSProperties>>;
|
|
18
|
-
children?: React.ReactElement;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
placeholder?: PlaceholderType | ((type: 'inline' | 'drop') => PlaceholderType);
|
|
21
|
-
getDropContainer?: null | (() => HTMLElement | null | undefined);
|
|
22
|
-
items?: Attachment[];
|
|
23
|
-
overflow?: FileListProps['overflow'];
|
|
24
|
-
renderType?: 'default';
|
|
25
|
-
}
|
|
26
|
-
export interface AttachmentsRef {
|
|
27
|
-
nativeElement: HTMLDivElement | null;
|
|
28
|
-
upload: (file: File) => void;
|
|
29
|
-
}
|
|
30
|
-
declare const ForwardAttachments: React.ForwardRefExoticComponent<AttachmentsProps & React.RefAttributes<AttachmentsRef>> & {
|
|
31
|
-
FileCard: typeof FileListCard;
|
|
32
|
-
};
|
|
33
|
-
export default ForwardAttachments;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
-
var genFileCardStyle = function genFileCardStyle(token) {
|
|
6
|
-
var componentCls = token.componentCls,
|
|
7
|
-
calc = token.calc;
|
|
8
|
-
var cardCls = "".concat(componentCls, "-list-card");
|
|
9
|
-
return _defineProperty(_defineProperty({}, cardCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
10
|
-
borderRadius: 8,
|
|
11
|
-
position: 'relative',
|
|
12
|
-
background: token.colorBgContainer,
|
|
13
|
-
borderWidth: token.lineWidth,
|
|
14
|
-
borderStyle: 'solid',
|
|
15
|
-
borderColor: token.colorBorderSecondary,
|
|
16
|
-
flex: 'none'
|
|
17
|
-
}, "".concat(cardCls, "-name,").concat(cardCls, "-desc"), {
|
|
18
|
-
overflow: 'hidden',
|
|
19
|
-
textOverflow: 'ellipsis',
|
|
20
|
-
whiteSpace: 'nowrap',
|
|
21
|
-
maxWidth: '100%'
|
|
22
|
-
}), "".concat(cardCls, "-ellipsis-prefix"), {
|
|
23
|
-
flex: '0 1 auto',
|
|
24
|
-
minWidth: 0,
|
|
25
|
-
overflow: 'hidden',
|
|
26
|
-
textOverflow: 'ellipsis',
|
|
27
|
-
whiteSpace: 'nowrap'
|
|
28
|
-
}), "".concat(cardCls, "-ellipsis-suffix"), {
|
|
29
|
-
flex: 'none'
|
|
30
|
-
}), '&-type-overview', _defineProperty(_defineProperty(_defineProperty({
|
|
31
|
-
padding: '0 8px',
|
|
32
|
-
display: 'flex',
|
|
33
|
-
height: 56,
|
|
34
|
-
gap: token.paddingXS,
|
|
35
|
-
alignItems: 'center',
|
|
36
|
-
width: 140
|
|
37
|
-
}, "".concat(cardCls, "-icon"), {
|
|
38
|
-
fontSize: calc(token.fontSizeLG).mul(2).equal(),
|
|
39
|
-
lineHeight: 1,
|
|
40
|
-
flex: 'none'
|
|
41
|
-
}), "".concat(cardCls, "-content"), {
|
|
42
|
-
flex: 'auto',
|
|
43
|
-
minWidth: 0,
|
|
44
|
-
display: 'flex',
|
|
45
|
-
flexDirection: 'column',
|
|
46
|
-
alignItems: 'stretch',
|
|
47
|
-
fontSize: token.fontSize,
|
|
48
|
-
color: token.colorText
|
|
49
|
-
}), "".concat(cardCls, "-desc"), {
|
|
50
|
-
marginTop: token.marginXXS,
|
|
51
|
-
color: token.colorTextQuaternary,
|
|
52
|
-
fontSize: token.fontSizeSM
|
|
53
|
-
})), '&-type-preview', _defineProperty(_defineProperty(_defineProperty({
|
|
54
|
-
width: 56,
|
|
55
|
-
height: 56,
|
|
56
|
-
lineHeight: 1,
|
|
57
|
-
// Img
|
|
58
|
-
img: {
|
|
59
|
-
width: '100%',
|
|
60
|
-
height: '100%',
|
|
61
|
-
verticalAlign: 'top',
|
|
62
|
-
objectFit: 'cover',
|
|
63
|
-
borderRadius: 'inherit'
|
|
64
|
-
}
|
|
65
|
-
}, "".concat(cardCls, "-img-mask"), {
|
|
66
|
-
position: 'absolute',
|
|
67
|
-
inset: 0,
|
|
68
|
-
display: 'flex',
|
|
69
|
-
justifyContent: 'center',
|
|
70
|
-
alignItems: 'center',
|
|
71
|
-
background: "rgba(0, 0, 0, ".concat(token.opacityLoading, ")"),
|
|
72
|
-
borderRadius: 'inherit'
|
|
73
|
-
}), "&".concat(cardCls, "-status-error"), _defineProperty(_defineProperty({}, "img, ".concat(cardCls, "-img-mask"), {
|
|
74
|
-
borderRadius: calc(token.borderRadius).sub(token.lineWidth).equal()
|
|
75
|
-
}), "".concat(cardCls, "-desc"), {
|
|
76
|
-
paddingInline: token.paddingXXS
|
|
77
|
-
})), "".concat(cardCls, "-progress"), {})), "".concat(cardCls, "-remove"), {
|
|
78
|
-
position: 'absolute',
|
|
79
|
-
top: 0,
|
|
80
|
-
insetInlineEnd: 0,
|
|
81
|
-
border: 0,
|
|
82
|
-
padding: token.paddingXXS,
|
|
83
|
-
lineHeight: 1,
|
|
84
|
-
transform: 'scale(.75) translate(50%, -50%)',
|
|
85
|
-
fontSize: 12,
|
|
86
|
-
cursor: 'pointer',
|
|
87
|
-
display: 'none',
|
|
88
|
-
color: token.colorText,
|
|
89
|
-
backgroundColor: token.colorBgContainer,
|
|
90
|
-
borderWidth: 1,
|
|
91
|
-
borderStyle: 'solid',
|
|
92
|
-
borderColor: token.colorBorder,
|
|
93
|
-
borderRadius: '50%',
|
|
94
|
-
'&:dir(rtl)': {
|
|
95
|
-
transform: 'translate(-50%, -50%)'
|
|
96
|
-
}
|
|
97
|
-
}), "&:hover ".concat(cardCls, "-remove"), {
|
|
98
|
-
display: 'block'
|
|
99
|
-
}), '&-status-error', _defineProperty({
|
|
100
|
-
borderColor: token.colorError
|
|
101
|
-
}, "".concat(cardCls, "-desc"), {
|
|
102
|
-
color: token.colorError
|
|
103
|
-
})), '&-motion', {
|
|
104
|
-
transition: ['opacity', 'width', 'margin', 'padding'].map(function (prop) {
|
|
105
|
-
return "".concat(prop, " ").concat(token.motionDurationSlow);
|
|
106
|
-
}).join(','),
|
|
107
|
-
'&-appear-start': {
|
|
108
|
-
width: 0,
|
|
109
|
-
transition: 'none'
|
|
110
|
-
},
|
|
111
|
-
'&-leave-active': {
|
|
112
|
-
opacity: 0,
|
|
113
|
-
width: 0,
|
|
114
|
-
paddingInline: 0,
|
|
115
|
-
borderInlineWidth: 0,
|
|
116
|
-
marginInlineEnd: calc(token.paddingSM).mul(-1).equal()
|
|
117
|
-
}
|
|
118
|
-
})), "".concat(cardCls, "-hoverable"), {
|
|
119
|
-
'&:hover': {
|
|
120
|
-
borderColor: token.colorPrimary
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
export default genFileCardStyle;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GetDefaultToken } from '../../theme/cssinjs-utils';
|
|
3
|
-
export interface ComponentToken {
|
|
4
|
-
colorBgPlaceholderHover: string;
|
|
5
|
-
}
|
|
6
|
-
export interface AttachmentsToken extends FullToken<'Attachments'> {
|
|
7
|
-
}
|
|
8
|
-
export declare const prepareComponentToken: GetDefaultToken<'Attachments'>;
|
|
9
|
-
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, string, string];
|
|
10
|
-
export default _default;
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { mergeToken } from '@ant-design/cssinjs-utils';
|
|
8
|
-
import { FastColor } from '@ant-design/fast-color';
|
|
9
|
-
import { genStyleHooks } from "../../theme/genStyleUtils";
|
|
10
|
-
import genFileCardStyle from "./fileCard";
|
|
11
|
-
|
|
12
|
-
// biome-ignore lint/suspicious/noEmptyInterface: ComponentToken need to be empty by default
|
|
13
|
-
|
|
14
|
-
var anyBoxSizing = {
|
|
15
|
-
'&, *': {
|
|
16
|
-
boxSizing: 'border-box'
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
var genAttachmentsStyle = function genAttachmentsStyle(token) {
|
|
20
|
-
var componentCls = token.componentCls,
|
|
21
|
-
calc = token.calc,
|
|
22
|
-
antCls = token.antCls;
|
|
23
|
-
var dropAreaCls = "".concat(componentCls, "-drop-area");
|
|
24
|
-
var placeholderCls = "".concat(componentCls, "-placeholder");
|
|
25
|
-
return _defineProperty(_defineProperty({}, dropAreaCls, _objectSpread(_objectSpread({
|
|
26
|
-
position: 'absolute',
|
|
27
|
-
inset: 0,
|
|
28
|
-
zIndex: token.zIndexPopupBase
|
|
29
|
-
}, anyBoxSizing), {}, _defineProperty({
|
|
30
|
-
'&-on-body': {
|
|
31
|
-
position: 'fixed',
|
|
32
|
-
inset: 0
|
|
33
|
-
},
|
|
34
|
-
'&-hide-placement': _defineProperty({}, "".concat(placeholderCls, "-inner"), {
|
|
35
|
-
display: 'none'
|
|
36
|
-
})
|
|
37
|
-
}, placeholderCls, {
|
|
38
|
-
padding: 0
|
|
39
|
-
}))), '&', _defineProperty({}, placeholderCls, _objectSpread(_objectSpread({
|
|
40
|
-
height: '100%',
|
|
41
|
-
borderRadius: token.borderRadius,
|
|
42
|
-
borderWidth: token.lineWidthBold,
|
|
43
|
-
borderStyle: 'dashed',
|
|
44
|
-
borderColor: 'transparent',
|
|
45
|
-
padding: token.padding,
|
|
46
|
-
position: 'relative',
|
|
47
|
-
backdropFilter: 'blur(10px)',
|
|
48
|
-
background: token.colorBgPlaceholderHover
|
|
49
|
-
}, anyBoxSizing), {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(antCls, "-upload-wrapper ").concat(antCls, "-upload").concat(antCls, "-upload-btn"), {
|
|
50
|
-
padding: 0
|
|
51
|
-
}), "&".concat(placeholderCls, "-drag-in"), {
|
|
52
|
-
borderColor: token.colorPrimaryHover
|
|
53
|
-
}), "&".concat(placeholderCls, "-disabled"), {
|
|
54
|
-
opacity: 0.25,
|
|
55
|
-
pointerEvents: 'none'
|
|
56
|
-
}), "".concat(placeholderCls, "-inner"), {
|
|
57
|
-
gap: calc(token.paddingXXS).div(2).equal()
|
|
58
|
-
}), "".concat(placeholderCls, "-icon"), {
|
|
59
|
-
fontSize: token.fontSizeHeading2,
|
|
60
|
-
lineHeight: 1
|
|
61
|
-
}), "".concat(placeholderCls, "-title").concat(placeholderCls, "-title"), {
|
|
62
|
-
margin: 0,
|
|
63
|
-
fontSize: token.fontSize,
|
|
64
|
-
lineHeight: token.lineHeight
|
|
65
|
-
}), "".concat(placeholderCls, "-description"), {}))));
|
|
66
|
-
};
|
|
67
|
-
var genFileListStyle = function genFileListStyle(token) {
|
|
68
|
-
var componentCls = token.componentCls,
|
|
69
|
-
calc = token.calc;
|
|
70
|
-
var fileListCls = "".concat(componentCls, "-list");
|
|
71
|
-
var cardHeight = calc(token.fontSize).mul(token.lineHeight).mul(2).add(token.paddingSM).add(token.paddingSM).equal();
|
|
72
|
-
return _defineProperty({}, componentCls, _objectSpread(_objectSpread({
|
|
73
|
-
position: 'relative',
|
|
74
|
-
width: '100%'
|
|
75
|
-
}, anyBoxSizing), {}, _defineProperty({}, fileListCls, {
|
|
76
|
-
display: 'flex',
|
|
77
|
-
gap: token.paddingSM,
|
|
78
|
-
fontSize: token.fontSize,
|
|
79
|
-
lineHeight: token.lineHeight,
|
|
80
|
-
color: token.colorText,
|
|
81
|
-
// flexWrap: 'wrap',
|
|
82
|
-
// paddingBlock: token.paddingSM,
|
|
83
|
-
// paddingInline: token.padding,
|
|
84
|
-
// background: token.colorBgContainer,
|
|
85
|
-
width: '100%',
|
|
86
|
-
overflow: 'auto',
|
|
87
|
-
padding: token.padding,
|
|
88
|
-
paddingBottom: 0,
|
|
89
|
-
// Hide scrollbar
|
|
90
|
-
scrollbarWidth: 'none',
|
|
91
|
-
'-ms-overflow-style': 'none',
|
|
92
|
-
'&::-webkit-scrollbar': {
|
|
93
|
-
display: 'none'
|
|
94
|
-
},
|
|
95
|
-
// Scroll
|
|
96
|
-
'&-overflow-scrollX, &-overflow-scrollY': {
|
|
97
|
-
'&:before, &:after': {
|
|
98
|
-
content: '""',
|
|
99
|
-
position: 'absolute',
|
|
100
|
-
opacity: 0,
|
|
101
|
-
transition: "opacity ".concat(token.motionDurationSlow),
|
|
102
|
-
zIndex: 1
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
'&-overflow-ping-start:before': {
|
|
106
|
-
opacity: 1
|
|
107
|
-
},
|
|
108
|
-
'&-overflow-ping-end:after': {
|
|
109
|
-
opacity: 1
|
|
110
|
-
},
|
|
111
|
-
'&-overflow-scrollX': {
|
|
112
|
-
overflowX: 'auto',
|
|
113
|
-
overflowY: 'hidden',
|
|
114
|
-
flexWrap: 'nowrap',
|
|
115
|
-
'&:before, &:after': {
|
|
116
|
-
insetBlock: 0,
|
|
117
|
-
width: 8
|
|
118
|
-
},
|
|
119
|
-
'&:before': {
|
|
120
|
-
insetInlineStart: 0,
|
|
121
|
-
background: "linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"
|
|
122
|
-
},
|
|
123
|
-
'&:after': {
|
|
124
|
-
insetInlineEnd: 0,
|
|
125
|
-
background: "linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"
|
|
126
|
-
},
|
|
127
|
-
'&:dir(rtl)': {
|
|
128
|
-
'&:before': {
|
|
129
|
-
background: "linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"
|
|
130
|
-
},
|
|
131
|
-
'&:after': {
|
|
132
|
-
background: "linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
'&-overflow-scrollY': {
|
|
137
|
-
overflowX: 'hidden',
|
|
138
|
-
overflowY: 'auto',
|
|
139
|
-
maxHeight: calc(cardHeight).mul(3).equal(),
|
|
140
|
-
'&:before, &:after': {
|
|
141
|
-
insetInline: 0,
|
|
142
|
-
height: 8
|
|
143
|
-
},
|
|
144
|
-
'&:before': {
|
|
145
|
-
insetBlockStart: 0,
|
|
146
|
-
background: "linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"
|
|
147
|
-
},
|
|
148
|
-
'&:after': {
|
|
149
|
-
insetBlockEnd: 0,
|
|
150
|
-
background: "linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
// ======================================================================
|
|
154
|
-
// == Upload ==
|
|
155
|
-
// ======================================================================
|
|
156
|
-
'&-upload-btn': {
|
|
157
|
-
width: cardHeight,
|
|
158
|
-
height: cardHeight,
|
|
159
|
-
fontSize: token.fontSizeHeading2,
|
|
160
|
-
color: '#999'
|
|
161
|
-
},
|
|
162
|
-
// ======================================================================
|
|
163
|
-
// == PrevNext ==
|
|
164
|
-
// ======================================================================
|
|
165
|
-
'&-prev-btn, &-next-btn': {
|
|
166
|
-
position: 'absolute',
|
|
167
|
-
top: '50%',
|
|
168
|
-
transform: 'translateY(-50%)',
|
|
169
|
-
boxShadow: token.boxShadowTertiary,
|
|
170
|
-
opacity: 0,
|
|
171
|
-
pointerEvents: 'none'
|
|
172
|
-
},
|
|
173
|
-
'&-prev-btn': {
|
|
174
|
-
left: {
|
|
175
|
-
_skip_check_: true,
|
|
176
|
-
value: token.padding
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
'&-next-btn': {
|
|
180
|
-
right: {
|
|
181
|
-
_skip_check_: true,
|
|
182
|
-
value: token.padding
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
'&:dir(ltr)': _defineProperty(_defineProperty({}, "&".concat(fileListCls, "-overflow-ping-start ").concat(fileListCls, "-prev-btn"), {
|
|
186
|
-
opacity: 1,
|
|
187
|
-
pointerEvents: 'auto'
|
|
188
|
-
}), "&".concat(fileListCls, "-overflow-ping-end ").concat(fileListCls, "-next-btn"), {
|
|
189
|
-
opacity: 1,
|
|
190
|
-
pointerEvents: 'auto'
|
|
191
|
-
}),
|
|
192
|
-
'&:dir(rtl)': _defineProperty(_defineProperty({}, "&".concat(fileListCls, "-overflow-ping-end ").concat(fileListCls, "-prev-btn"), {
|
|
193
|
-
opacity: 1,
|
|
194
|
-
pointerEvents: 'auto'
|
|
195
|
-
}), "&".concat(fileListCls, "-overflow-ping-start ").concat(fileListCls, "-next-btn"), {
|
|
196
|
-
opacity: 1,
|
|
197
|
-
pointerEvents: 'auto'
|
|
198
|
-
})
|
|
199
|
-
})));
|
|
200
|
-
};
|
|
201
|
-
export var prepareComponentToken = function prepareComponentToken(token) {
|
|
202
|
-
var colorBgContainer = token.colorBgContainer;
|
|
203
|
-
var colorBgPlaceholderHover = new FastColor(colorBgContainer).setA(0.85);
|
|
204
|
-
return {
|
|
205
|
-
colorBgPlaceholderHover: colorBgPlaceholderHover.toRgbString()
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
export default genStyleHooks('Attachments', function (token) {
|
|
209
|
-
var compToken = mergeToken(token, {});
|
|
210
|
-
return [genAttachmentsStyle(compToken), genFileListStyle(compToken), genFileCardStyle(compToken)];
|
|
211
|
-
}, prepareComponentToken);
|
package/dist/bubble/Bubble.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { BubbleProps } from './interface';
|
|
3
|
-
export interface BubbleRef {
|
|
4
|
-
nativeElement: HTMLElement;
|
|
5
|
-
}
|
|
6
|
-
export interface BubbleContextProps {
|
|
7
|
-
onUpdate?: VoidFunction;
|
|
8
|
-
}
|
|
9
|
-
export declare const BubbleContext: React.Context<BubbleContextProps>;
|
|
10
|
-
declare const _default: React.NamedExoticComponent<BubbleProps<string>>;
|
|
11
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { BubbleProps } from './interface';
|
|
3
|
-
import './style/list.less';
|
|
4
|
-
export interface BubbleListRef {
|
|
5
|
-
scrollToBottom(): void;
|
|
6
|
-
}
|
|
7
|
-
export type BubbleDataType = BubbleProps & {
|
|
8
|
-
key?: string | number;
|
|
9
|
-
role?: string;
|
|
10
|
-
};
|
|
11
|
-
export interface BubbleListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
-
items?: BubbleDataType[];
|
|
13
|
-
}
|
|
14
|
-
declare const ForwardBubbleList: React.ForwardRefExoticComponent<BubbleListProps & React.RefAttributes<BubbleListRef>>;
|
|
15
|
-
export default ForwardBubbleList;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var _excluded = ["key"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { useProviderContext } from "./..";
|
|
7
|
-
import Bubble from "./Bubble";
|
|
8
|
-
import ScrollToBottom from "./ScrollToBottom";
|
|
9
|
-
import { StickToBottom } from 'use-stick-to-bottom';
|
|
10
|
-
import "./style/list.less";
|
|
11
|
-
var BubbleList = function BubbleList(props, ref) {
|
|
12
|
-
var _props$items = props.items,
|
|
13
|
-
items = _props$items === void 0 ? [] : _props$items;
|
|
14
|
-
var scrollToBottomRef = React.useRef();
|
|
15
|
-
var _useProviderContext = useProviderContext(),
|
|
16
|
-
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
17
|
-
var prefixCls = getPrefixCls('bubble-list');
|
|
18
|
-
React.useImperativeHandle(ref, function () {
|
|
19
|
-
return {
|
|
20
|
-
scrollToBottom: function scrollToBottom() {
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
scrollToBottomRef.current.scrollToBottom();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
return /*#__PURE__*/React.createElement(StickToBottom, {
|
|
27
|
-
className: "".concat(prefixCls, "-wrapper"),
|
|
28
|
-
resize: "smooth",
|
|
29
|
-
initial: "smooth",
|
|
30
|
-
style: props.style
|
|
31
|
-
}, /*#__PURE__*/React.createElement(StickToBottom.Content, {
|
|
32
|
-
className: "".concat(prefixCls)
|
|
33
|
-
}, items.map(function (_ref) {
|
|
34
|
-
var key = _ref.key,
|
|
35
|
-
bubble = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
-
return /*#__PURE__*/React.createElement(Bubble, _extends({}, bubble, {
|
|
37
|
-
key: bubble.id || key
|
|
38
|
-
}));
|
|
39
|
-
})), /*#__PURE__*/React.createElement(ScrollToBottom, {
|
|
40
|
-
ref: scrollToBottomRef
|
|
41
|
-
}));
|
|
42
|
-
};
|
|
43
|
-
var ForwardBubbleList = /*#__PURE__*/React.forwardRef(BubbleList);
|
|
44
|
-
export default ForwardBubbleList;
|
package/dist/bubble/Spin.d.ts
DELETED
package/dist/bubble/Spin.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useProviderContext } from "./..";
|
|
3
|
-
export default function () {
|
|
4
|
-
var _useProviderContext = useProviderContext(),
|
|
5
|
-
getPrefixCls = _useProviderContext.getPrefixCls;
|
|
6
|
-
var prefixCls = getPrefixCls('bubble-loading');
|
|
7
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
-
className: prefixCls
|
|
9
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: "".concat(prefixCls, "-dot1")
|
|
11
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className: "".concat(prefixCls, "-dot2")
|
|
13
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
className: "".concat(prefixCls, "-dot3")
|
|
15
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
className: "".concat(prefixCls, "-text")
|
|
17
|
-
}, "-"));
|
|
18
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { AvatarProps } from 'antd';
|
|
3
|
-
import type { AnyObject } from '../_util/type';
|
|
4
|
-
type SemanticType = 'avatar' | 'content' | 'header' | 'footer';
|
|
5
|
-
export type BubbleContentType = React.ReactNode | AnyObject;
|
|
6
|
-
export interface BubbleProps<ContentType extends BubbleContentType = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
7
|
-
prefixCls?: string;
|
|
8
|
-
rootClassName?: string;
|
|
9
|
-
styles?: Partial<Record<SemanticType, React.CSSProperties>>;
|
|
10
|
-
classNames?: Partial<Record<SemanticType, string>>;
|
|
11
|
-
avatar?: AvatarProps | React.ReactElement;
|
|
12
|
-
placement?: 'start' | 'end' | 'user' | 'assistant';
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
content?: BubbleContentType;
|
|
15
|
-
cards?: {
|
|
16
|
-
code: string;
|
|
17
|
-
data?: string | any;
|
|
18
|
-
}[];
|
|
19
|
-
msgStatus?: 'finished' | 'generating' | 'interrupted' | 'error';
|
|
20
|
-
id?: any;
|
|
21
|
-
messageRender?: (content: ContentType) => React.ReactNode;
|
|
22
|
-
loadingRender?: () => React.ReactNode;
|
|
23
|
-
variant?: 'filled' | 'borderless' | 'outlined' | 'shadow';
|
|
24
|
-
shape?: 'round' | 'corner';
|
|
25
|
-
}
|
|
26
|
-
export {};
|
package/dist/bubble/loading.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
var Loading = function Loading(_ref) {
|
|
3
|
-
var prefixCls = _ref.prefixCls;
|
|
4
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
5
|
-
className: "".concat(prefixCls, "-dot")
|
|
6
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
7
|
-
className: "".concat(prefixCls, "-dot-item"),
|
|
8
|
-
key: "item-".concat(1)
|
|
9
|
-
}), /*#__PURE__*/React.createElement("i", {
|
|
10
|
-
className: "".concat(prefixCls, "-dot-item"),
|
|
11
|
-
key: "item-".concat(2)
|
|
12
|
-
}), /*#__PURE__*/React.createElement("i", {
|
|
13
|
-
className: "".concat(prefixCls, "-dot-item"),
|
|
14
|
-
key: "item-".concat(3)
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
export default Loading;
|