@agentscope-ai/chat 1.1.4 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +74 -0
- package/README.md +156 -56
- package/README.zh-CN.md +188 -0
- package/lib/AGUI/components/HelpModal/icons.d.ts +5 -0
- package/lib/AGUI/components/HelpModal/icons.js +84 -0
- package/lib/AGUI/components/HelpModal/index.d.ts +1 -0
- package/lib/AGUI/components/HelpModal/index.js +1 -0
- package/lib/AGUI/components/HelpModal/modal.d.ts +1 -0
- package/lib/AGUI/components/HelpModal/modal.js +104 -0
- package/lib/AGUI/components/chat/Button.d.ts +2 -0
- package/lib/AGUI/components/chat/Button.js +27 -0
- package/lib/AGUI/components/chat/Chat.d.ts +242 -0
- package/lib/AGUI/components/chat/Chat.js +634 -0
- package/lib/AGUI/components/chat/ChatContext.d.ts +142 -0
- package/lib/AGUI/components/chat/ChatContext.js +75 -0
- package/lib/AGUI/components/chat/CodeBlock.d.ts +12 -0
- package/lib/AGUI/components/chat/CodeBlock.js +398 -0
- package/lib/AGUI/components/chat/Header.d.ts +2 -0
- package/lib/AGUI/components/chat/Header.js +28 -0
- package/lib/AGUI/components/chat/Icons.d.ts +16 -0
- package/lib/AGUI/components/chat/Icons.js +247 -0
- package/lib/AGUI/components/chat/ImageUploadQueue.d.ts +11 -0
- package/lib/AGUI/components/chat/ImageUploadQueue.js +65 -0
- package/lib/AGUI/components/chat/Input.d.ts +2 -0
- package/lib/AGUI/components/chat/Input.js +30 -0
- package/lib/AGUI/components/chat/Markdown.d.ts +7 -0
- package/lib/AGUI/components/chat/Markdown.js +187 -0
- package/lib/AGUI/components/chat/Messages.d.ts +7 -0
- package/lib/AGUI/components/chat/Messages.js +242 -0
- package/lib/AGUI/components/chat/Modal.d.ts +43 -0
- package/lib/AGUI/components/chat/Modal.js +113 -0
- package/lib/AGUI/components/chat/Popup.d.ts +49 -0
- package/lib/AGUI/components/chat/Popup.js +64 -0
- package/lib/AGUI/components/chat/PoweredByTag.d.ts +3 -0
- package/lib/AGUI/components/chat/PoweredByTag.js +27 -0
- package/lib/AGUI/components/chat/Sidebar.d.ts +2 -0
- package/lib/AGUI/components/chat/Sidebar.js +85 -0
- package/lib/AGUI/components/chat/Suggestion.d.ts +16 -0
- package/{dist/voice-chat/VoiceChatService/index.js → lib/AGUI/components/chat/Suggestion.js} +138 -201
- package/lib/AGUI/components/chat/Suggestions.d.ts +2 -0
- package/lib/AGUI/components/chat/Suggestions.js +21 -0
- package/lib/AGUI/components/chat/Textarea.d.ts +11 -0
- package/lib/AGUI/components/chat/Textarea.js +60 -0
- package/lib/AGUI/components/chat/Window.d.ts +2 -0
- package/lib/AGUI/components/chat/Window.js +115 -0
- package/lib/AGUI/components/chat/index.d.ts +11 -0
- package/lib/AGUI/components/chat/index.js +11 -0
- package/lib/AGUI/components/chat/messages/AssistantMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/AssistantMessage.js +56 -0
- package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderActionExecutionMessage.js +114 -0
- package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderAgentStateMessage.js +97 -0
- package/lib/AGUI/components/chat/messages/RenderImageMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderImageMessage.js +61 -0
- package/lib/AGUI/components/chat/messages/RenderResultMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderResultMessage.js +27 -0
- package/lib/AGUI/components/chat/messages/RenderTextMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/RenderTextMessage.js +47 -0
- package/lib/AGUI/components/chat/messages/UserMessage.d.ts +2 -0
- package/lib/AGUI/components/chat/messages/UserMessage.js +9 -0
- package/lib/AGUI/components/chat/props.d.ts +157 -0
- package/lib/AGUI/components/index.d.ts +1 -0
- package/lib/AGUI/components/index.js +1 -0
- package/lib/AGUI/context/index.d.ts +1 -0
- package/lib/AGUI/hooks/index.d.ts +1 -0
- package/lib/AGUI/hooks/index.js +1 -0
- package/lib/AGUI/hooks/use-copilot-chat-suggestions.d.ts +87 -0
- package/lib/AGUI/hooks/use-copilot-chat-suggestions.js +95 -0
- package/lib/AGUI/hooks/use-copy-to-clipboard.d.ts +7 -0
- package/{dist/theme/genStyleUtils.js → lib/AGUI/hooks/use-copy-to-clipboard.js} +27 -42
- package/lib/AGUI/hooks/use-dark-mode.d.ts +1 -0
- package/lib/AGUI/hooks/use-dark-mode.js +4 -0
- package/lib/AGUI/hooks/use-push-to-talk.d.ts +16 -0
- package/lib/AGUI/hooks/use-push-to-talk.js +260 -0
- package/lib/AGUI/index.d.ts +4 -0
- package/lib/AGUI/index.js +4 -0
- package/lib/AGUI/lib/utils.d.ts +2 -0
- package/lib/AGUI/lib/utils.js +52 -0
- package/lib/AGUI/types/index.d.ts +1 -0
- package/lib/AGUI/types/suggestions.d.ts +6 -0
- package/lib/Accordion/Accordion.d.ts +64 -0
- package/{dist/accordion → lib/Accordion}/Accordion.js +101 -40
- package/{dist/accordion → lib/Accordion}/BodyContent.d.ts +1 -1
- package/lib/Accordion/BodyContent.js +23 -0
- package/lib/Accordion/DeepThinking.d.ts +28 -0
- package/lib/Accordion/DeepThinking.js +35 -0
- package/lib/Accordion/SoftLightTitle.d.ts +3 -0
- package/lib/Accordion/SoftLightTitle.js +17 -0
- package/lib/Accordion/index.d.ts +2 -0
- package/lib/Accordion/style.d.ts +2 -0
- package/lib/Accordion/style.js +60 -0
- package/lib/Attachments/DropArea.d.ts +24 -0
- package/{dist/attachments → lib/Attachments}/DropArea.js +5 -11
- package/lib/Attachments/FileList/AudioIcon.d.ts +1 -0
- package/lib/Attachments/FileList/AudioIcon.js +24 -0
- package/lib/Attachments/FileList/FileListCard.d.ts +36 -0
- package/{dist/attachments → lib/Attachments}/FileList/FileListCard.js +109 -83
- package/lib/Attachments/FileList/Progress.d.ts +13 -0
- package/{dist/attachments → lib/Attachments}/FileList/Progress.js +7 -5
- package/lib/Attachments/FileList/VideoIcon.d.ts +1 -0
- package/lib/Attachments/FileList/VideoIcon.js +24 -0
- package/lib/Attachments/FileList/index.d.ts +56 -0
- package/{dist/attachments → lib/Attachments}/FileList/index.js +48 -48
- package/lib/Attachments/PlaceholderUploader.d.ts +49 -0
- package/{dist/attachments → lib/Attachments}/PlaceholderUploader.js +33 -28
- package/lib/Attachments/SilentUploader.d.ts +21 -0
- package/lib/Attachments/SilentUploader.js +30 -0
- package/lib/Attachments/context.d.ts +9 -0
- package/lib/Attachments/index.d.ts +97 -0
- package/lib/Attachments/index.en-US.md.bk +10 -0
- package/{dist/attachments → lib/Attachments}/index.js +51 -55
- package/lib/Attachments/index.zh-CN.md.bk +10 -0
- package/lib/Attachments/style/fileCard.d.ts +2 -0
- package/lib/Attachments/style/fileCard.js +68 -0
- package/lib/Attachments/style/index.d.ts +2 -0
- package/lib/Attachments/style/index.js +98 -0
- package/{dist/bubble → lib/Bubble}/Avatar.d.ts +0 -1
- package/{dist/bubble → lib/Bubble}/Avatar.js +8 -5
- package/lib/Bubble/Bubble.d.ts +19 -0
- package/{dist/bubble → lib/Bubble}/Bubble.js +39 -52
- package/lib/Bubble/BubbleList.d.ts +41 -0
- package/lib/Bubble/BubbleList.js +64 -0
- package/{dist/bubble → lib/Bubble}/Cards.d.ts +2 -8
- package/{dist/bubble → lib/Bubble}/Cards.js +9 -9
- package/{dist/bubble → lib/Bubble}/ScrollToBottom.d.ts +0 -1
- package/{dist/bubble → lib/Bubble}/ScrollToBottom.js +15 -14
- package/lib/Bubble/Spin.d.ts +1 -0
- package/lib/Bubble/Spin.js +21 -0
- package/lib/Bubble/hooks/useListData.d.ts +0 -0
- package/lib/Bubble/hooks/useListData.js +0 -0
- package/lib/Bubble/interface.d.ts +62 -0
- package/lib/Bubble/loading.js +17 -0
- package/lib/Bubble/style/avatar.d.ts +2 -0
- package/lib/Bubble/style/avatar.js +8 -0
- package/lib/Bubble/style/index.d.ts +2 -0
- package/lib/Bubble/style/index.js +46 -0
- package/lib/Bubble/style/list.d.ts +2 -0
- package/lib/Bubble/style/list.js +16 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.d.ts +0 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/index.js +39 -28
- package/lib/ChatAnywhere/Chat/style.d.ts +2 -0
- package/lib/ChatAnywhere/Chat/style.js +14 -0
- package/lib/ChatAnywhere/Header/index.d.ts +1 -0
- package/lib/ChatAnywhere/Header/index.js +39 -0
- package/lib/ChatAnywhere/Header/style.d.ts +2 -0
- package/lib/ChatAnywhere/Header/style.js +12 -0
- package/lib/ChatAnywhere/Input/index.d.ts +3 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Input/index.js +92 -70
- package/lib/ChatAnywhere/Input/style.d.ts +2 -0
- package/lib/ChatAnywhere/Input/style.js +6 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/Layout/index.d.ts +1 -2
- package/lib/ChatAnywhere/Layout/index.js +91 -0
- package/lib/ChatAnywhere/Layout/style.d.ts +2 -0
- package/lib/ChatAnywhere/Layout/style.js +16 -0
- package/lib/ChatAnywhere/SessionList/index.d.ts +3 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/SessionList/index.js +67 -55
- package/lib/ChatAnywhere/SessionList/style.d.ts +2 -0
- package/lib/ChatAnywhere/SessionList/style.js +14 -0
- package/lib/ChatAnywhere/hooks/ChatAnywhereProvider.d.ts +148 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/ChatAnywhereProvider.js +11 -5
- package/lib/ChatAnywhere/hooks/types.d.ts +312 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.d.ts +2 -0
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useInput.js +8 -2
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.d.ts +3 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useMessages.js +10 -2
- package/{dist/chat-anywhere → lib/ChatAnywhere}/index.d.ts +4 -1
- package/{dist/chat-anywhere → lib/ChatAnywhere}/index.js +28 -15
- package/{dist/conversations → lib/Conversations}/GroupTitle.d.ts +4 -0
- package/{dist/conversations → lib/Conversations}/GroupTitle.js +7 -5
- package/{dist/conversations → lib/Conversations}/Item.d.ts +1 -0
- package/lib/Conversations/Item.js +208 -0
- package/lib/Conversations/hooks/useGroupable.d.ts +8 -0
- package/lib/Conversations/index.d.ts +55 -0
- package/{dist/conversations → lib/Conversations}/index.js +50 -61
- package/lib/Conversations/interface.d.ts +56 -0
- package/lib/Conversations/style.d.ts +2 -0
- package/lib/Conversations/style.js +60 -0
- package/{dist/default-cards/DeepThink → lib/DefaultCards/DeepThinking}/index.d.ts +2 -3
- package/lib/DefaultCards/DeepThinking/index.js +12 -0
- package/lib/DefaultCards/Files/index.d.ts +1 -0
- package/lib/DefaultCards/Files/index.js +56 -0
- package/{dist/default-cards → lib/DefaultCards}/Footer/index.d.ts +3 -4
- package/lib/DefaultCards/Footer/index.js +74 -0
- package/lib/DefaultCards/Images/index.d.ts +1 -0
- package/lib/DefaultCards/Images/index.js +49 -0
- package/{dist/default-cards → lib/DefaultCards}/Interrupted/index.d.ts +1 -3
- package/lib/DefaultCards/Interrupted/index.js +54 -0
- package/lib/DefaultCards/Text/index.d.ts +1 -0
- package/{dist/default-cards → lib/DefaultCards}/Text/index.js +4 -2
- package/lib/DefaultCards/count/index.d.ts +1 -0
- package/lib/DefaultCards/count/index.js +36 -0
- package/{dist/default-cards → lib/DefaultCards}/index.d.ts +1 -1
- package/{dist/default-cards → lib/DefaultCards}/index.js +1 -1
- package/lib/Disclaimer/index.d.ts +22 -0
- package/lib/Disclaimer/index.js +26 -0
- package/lib/Disclaimer/style.d.ts +2 -0
- package/lib/Disclaimer/style.js +10 -0
- package/lib/ImageGenerator/index.d.ts +41 -0
- package/lib/ImageGenerator/index.js +75 -0
- package/lib/ImageGenerator/style.d.ts +2 -0
- package/lib/ImageGenerator/style.js +20 -0
- package/{dist/markdown → lib/Markdown}/Citation.js +19 -14
- package/{dist/markdown → lib/Markdown}/CodeBlock.d.ts +1 -0
- package/{dist/markdown → lib/Markdown}/CodeBlock.js +51 -30
- package/lib/Markdown/ImageOrMedia.d.ts +1 -0
- package/lib/Markdown/ImageOrMedia.js +113 -0
- package/lib/Markdown/Link.js +48 -0
- package/{dist/markdown → lib/Markdown}/Markdown.js +22 -11
- package/lib/Markdown/cursor/Dot.d.ts +1 -0
- package/lib/Markdown/cursor/Dot.js +36 -0
- package/lib/Markdown/cursor/Underline.d.ts +1 -0
- package/lib/Markdown/cursor/Underline.js +20 -0
- package/lib/Markdown/hooks/index.d.ts +0 -0
- package/lib/Markdown/hooks/index.js +0 -0
- package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.js +1 -1
- package/lib/Markdown/index.d.ts +63 -0
- package/lib/Markdown/index.js +40 -0
- package/lib/Markdown/style.d.ts +2 -0
- package/lib/Markdown/style.js +30 -0
- package/lib/Markdown/type.d.ts +186 -0
- package/{dist/markdown → lib/Markdown}/utils.js +1 -2
- package/lib/Mermaid/index.d.ts +18 -0
- package/{dist/voice-chat/Recorder → lib/Mermaid}/index.js +144 -160
- package/{dist/provider → lib/Provider}/CustomCardsProvider.d.ts +2 -1
- package/{dist/provider → lib/Provider}/CustomCardsProvider.js +5 -3
- package/{dist/provider → lib/Provider}/GlobalProvider.d.ts +1 -1
- package/{dist/provider → lib/Provider}/GlobalProvider.js +5 -3
- package/{dist/provider → lib/Provider}/index.d.ts +1 -2
- package/{dist/provider → lib/Provider}/index.js +9 -6
- package/lib/Provider/types.d.ts +24 -0
- package/lib/Provider/types.js +1 -0
- package/lib/ResponsesAPI/index.d.ts +0 -0
- package/lib/ResponsesAPI/index.js +0 -0
- package/lib/Sender/ModeSelect/index.d.ts +17 -0
- package/lib/Sender/ModeSelect/index.js +109 -0
- package/lib/Sender/ModeSelect/styles.d.ts +0 -0
- package/lib/Sender/ModeSelect/styles.js +0 -0
- package/lib/Sender/SenderHeader.d.ts +63 -0
- package/{dist/sender → lib/Sender}/SenderHeader.js +40 -32
- package/{dist/sender → lib/Sender}/StopLoading.d.ts +1 -1
- package/lib/Sender/StopLoading.js +25 -0
- package/lib/Sender/components/ActionButton.d.ts +72 -0
- package/{dist/sender → lib/Sender}/components/ActionButton.js +9 -5
- package/lib/Sender/components/ClearButton.js +19 -0
- package/lib/Sender/components/LoadingButton.js +28 -0
- package/lib/Sender/components/SendButton.js +20 -0
- package/lib/Sender/components/SpeechButton/RecordingIcon.d.ts +8 -0
- package/lib/Sender/components/SpeechButton/RecordingIcon.js +54 -0
- package/lib/Sender/components/SpeechButton/index.js +35 -0
- package/lib/Sender/index.d.ts +142 -0
- package/{dist/sender → lib/Sender}/index.js +128 -121
- package/lib/Sender/style/index.d.ts +2 -0
- package/lib/Sender/style/index.js +41 -0
- package/{dist/stream → lib/Stream}/index.d.ts +4 -2
- package/{dist/stream → lib/Stream}/index.js +1 -1
- package/lib/Util/createStyle.d.ts +5 -0
- package/lib/Util/createStyle.js +20 -0
- package/lib/Util/sleep.d.ts +1 -0
- package/lib/Util/sleep.js +5 -0
- package/lib/Util/type.js +1 -0
- package/{dist/_util → lib/Util}/warning.d.ts +2 -2
- package/lib/Voice/Recorder.d.ts +1 -0
- package/lib/Voice/Recorder.js +6 -0
- package/lib/Voice/index.d.ts +0 -0
- package/lib/Voice/index.js +0 -0
- package/lib/Welcome/index.d.ts +24 -0
- package/lib/Welcome/index.js +39 -0
- package/lib/index.d.ts +25 -0
- package/lib/index.js +24 -0
- package/package.json +28 -14
- package/dist/accordion/Accordion.d.ts +0 -22
- package/dist/accordion/BodyContent.js +0 -18
- package/dist/accordion/DeepThink.d.ts +0 -7
- package/dist/accordion/DeepThink.js +0 -35
- package/dist/accordion/index.d.ts +0 -2
- package/dist/accordion/index.less +0 -170
- package/dist/attachments/DropArea.d.ts +0 -8
- package/dist/attachments/FileList/AudioIcon.d.ts +0 -2
- package/dist/attachments/FileList/AudioIcon.js +0 -19
- package/dist/attachments/FileList/FileListCard.d.ts +0 -12
- package/dist/attachments/FileList/Progress.d.ts +0 -6
- package/dist/attachments/FileList/VideoIcon.d.ts +0 -2
- package/dist/attachments/FileList/VideoIcon.js +0 -19
- package/dist/attachments/FileList/index.d.ts +0 -16
- package/dist/attachments/PlaceholderUploader.d.ts +0 -17
- package/dist/attachments/SilentUploader.d.ts +0 -9
- package/dist/attachments/SilentUploader.js +0 -23
- package/dist/attachments/context.d.ts +0 -5
- package/dist/attachments/index.d.ts +0 -33
- package/dist/attachments/style/fileCard.d.ts +0 -4
- package/dist/attachments/style/fileCard.js +0 -124
- package/dist/attachments/style/index.d.ts +0 -10
- package/dist/attachments/style/index.js +0 -211
- package/dist/bubble/Bubble.d.ts +0 -11
- package/dist/bubble/BubbleList.d.ts +0 -15
- package/dist/bubble/BubbleList.js +0 -44
- package/dist/bubble/Spin.d.ts +0 -2
- package/dist/bubble/Spin.js +0 -18
- package/dist/bubble/interface.d.ts +0 -26
- package/dist/bubble/loading.js +0 -17
- package/dist/bubble/style/avatar.less +0 -40
- package/dist/bubble/style/content.d.ts +0 -4
- package/dist/bubble/style/content.js +0 -43
- package/dist/bubble/style/index.d.ts +0 -9
- package/dist/bubble/style/index.js +0 -53
- package/dist/bubble/style/list.less +0 -15
- package/dist/bubble/style/scrollToBottom.less +0 -174
- package/dist/chat-anywhere/Chat/index.less +0 -54
- package/dist/chat-anywhere/Header/index.d.ts +0 -3
- package/dist/chat-anywhere/Header/index.js +0 -32
- package/dist/chat-anywhere/Header/index.less +0 -24
- package/dist/chat-anywhere/Input/index.d.ts +0 -3
- package/dist/chat-anywhere/Input/index.less +0 -12
- package/dist/chat-anywhere/Layout/index.js +0 -73
- package/dist/chat-anywhere/Layout/index.less +0 -61
- package/dist/chat-anywhere/SessionList/index.d.ts +0 -5
- package/dist/chat-anywhere/SessionList/index.less +0 -52
- package/dist/chat-anywhere/hooks/ChatAnywhereProvider.d.ts +0 -43
- package/dist/chat-anywhere/hooks/types.d.ts +0 -57
- package/dist/conversations/Item.js +0 -96
- package/dist/conversations/hooks/useGroupable.d.ts +0 -9
- package/dist/conversations/index.d.ts +0 -62
- package/dist/conversations/interface.d.ts +0 -60
- package/dist/conversations/style/index.d.ts +0 -9
- package/dist/conversations/style/index.js +0 -80
- package/dist/default-cards/Count/index.d.ts +0 -3
- package/dist/default-cards/Count/index.js +0 -16
- package/dist/default-cards/Count/index.less +0 -19
- package/dist/default-cards/DeepThink/index.js +0 -11
- package/dist/default-cards/Files/index.d.ts +0 -2
- package/dist/default-cards/Files/index.js +0 -18
- package/dist/default-cards/Footer/index.js +0 -50
- package/dist/default-cards/Footer/index.less +0 -41
- package/dist/default-cards/Images/index.d.ts +0 -3
- package/dist/default-cards/Images/index.js +0 -33
- package/dist/default-cards/Images/index.less +0 -17
- package/dist/default-cards/Interrupted/index.js +0 -40
- package/dist/default-cards/Interrupted/index.less +0 -57
- package/dist/default-cards/Text/index.d.ts +0 -2
- package/dist/disclaimer/index.d.ts +0 -11
- package/dist/disclaimer/index.js +0 -26
- package/dist/docs/1896.async.js +0 -457
- package/dist/docs/2710.async.js +0 -62
- package/dist/docs/2863.async.js +0 -400
- package/dist/docs/3057.async.js +0 -46
- package/dist/docs/3364.async.js +0 -25
- package/dist/docs/404.html +0 -15
- package/dist/docs/4820.async.js +0 -1381
- package/dist/docs/5623.async.js +0 -60
- package/dist/docs/5757.async.js +0 -1
- package/dist/docs/5804.async.js +0 -271
- package/dist/docs/6198.async.js +0 -18
- package/dist/docs/6671.async.js +0 -137
- package/dist/docs/7195.async.js +0 -1
- package/dist/docs/7485.async.js +0 -29
- package/dist/docs/7931.async.js +0 -19
- package/dist/docs/7997.async.js +0 -5
- package/dist/docs/8156.async.js +0 -110
- package/dist/docs/8368.async.js +0 -2
- package/dist/docs/8480.async.js +0 -1449
- package/dist/docs/8618.async.js +0 -246
- package/dist/docs/9016.async.js +0 -32
- package/dist/docs/9016.chunk.css +0 -1
- package/dist/docs/9335.async.js +0 -11
- package/dist/docs/accordion__demos.async.js +0 -9
- package/dist/docs/attachments__demos.async.js +0 -1
- package/dist/docs/bubble__demos.async.js +0 -50
- package/dist/docs/components/accordion/index.html +0 -15
- package/dist/docs/components/accordion-cn/index.html +0 -15
- package/dist/docs/components/attachments/index.html +0 -15
- package/dist/docs/components/attachments-cn/index.html +0 -15
- package/dist/docs/components/bubble/index.html +0 -15
- package/dist/docs/components/bubble-cn/index.html +0 -15
- package/dist/docs/components/bubble-list/index.html +0 -15
- package/dist/docs/components/bubble-list-cn/index.html +0 -15
- package/dist/docs/components/conversations/index.html +0 -15
- package/dist/docs/components/conversations-cn/index.html +0 -15
- package/dist/docs/components/disclaimer/index.html +0 -15
- package/dist/docs/components/disclaimer-cn/index.html +0 -15
- package/dist/docs/components/footer/index.html +0 -15
- package/dist/docs/components/footer-cn/index.html +0 -15
- package/dist/docs/components/markdown/index.html +0 -15
- package/dist/docs/components/markdown-cn/index.html +0 -15
- package/dist/docs/components/sender/index.html +0 -15
- package/dist/docs/components/sender-cn/index.html +0 -15
- package/dist/docs/components/status/index.html +0 -15
- package/dist/docs/components/status-cn/index.html +0 -15
- package/dist/docs/components/welcome/index.html +0 -15
- package/dist/docs/components/welcome-cn/index.html +0 -15
- package/dist/docs/components__accordion__index.en-US.md.async.js +0 -6
- package/dist/docs/components__accordion__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__accordion__index.zh-CN.md.async.js +0 -6
- package/dist/docs/components__accordion__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__attachments__index.en-US.md.async.js +0 -1
- package/dist/docs/components__attachments__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__attachments__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__attachments__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__bubble-list__index.en-US.md.async.js +0 -2
- package/dist/docs/components__bubble-list__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__bubble-list__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__bubble-list__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__bubble__index.en-US.md.async.js +0 -1
- package/dist/docs/components__bubble__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__bubble__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__bubble__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__conversations__index.en-US.md.async.js +0 -2
- package/dist/docs/components__conversations__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__conversations__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__conversations__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__disclaimer__index.en-US.md.async.js +0 -1
- package/dist/docs/components__disclaimer__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__disclaimer__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__disclaimer__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__footer__index.en-US.md.async.js +0 -1
- package/dist/docs/components__footer__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__footer__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__footer__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__markdown__index.en-US.md.async.js +0 -1
- package/dist/docs/components__markdown__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__markdown__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__markdown__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__sender__index.en-US.md.async.js +0 -1
- package/dist/docs/components__sender__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__sender__index.zh-CN.md.async.js +0 -1
- package/dist/docs/components__sender__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__status__index.en-US.md.async.js +0 -1
- package/dist/docs/components__status__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__status__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__status__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/components__welcome__index.en-US.md.async.js +0 -2
- package/dist/docs/components__welcome__index.en-US.md.chunk.css +0 -1
- package/dist/docs/components__welcome__index.zh-CN.md.async.js +0 -2
- package/dist/docs/components__welcome__index.zh-CN.md.chunk.css +0 -1
- package/dist/docs/conversations__demos.async.js +0 -1
- package/dist/docs/demos.async.js +0 -47
- package/dist/docs/demos.chunk.css +0 -1
- package/dist/docs/disclaimer__demos.async.js +0 -1
- package/dist/docs/docs/development/ag-ui/index.html +0 -15
- package/dist/docs/docs/development/ag-ui-cn/index.html +0 -15
- package/dist/docs/docs/development/backend/index.html +0 -15
- package/dist/docs/docs/development/backend-cn/index.html +0 -15
- package/dist/docs/docs/development/cards/index.html +0 -15
- package/dist/docs/docs/development/cards-cn/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-api/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-api-cn/index.html +0 -15
- package/dist/docs/docs/development/chatanywhere-cn/index.html +0 -15
- package/dist/docs/docs/development/custom/index.html +0 -15
- package/dist/docs/docs/development/custom-cn/index.html +0 -15
- package/dist/docs/docs/development/overview/index.html +0 -15
- package/dist/docs/docs/development/overview-cn/index.html +0 -15
- package/dist/docs/docs/development/qwen/index.html +0 -15
- package/dist/docs/docs/development/qwen-cn/index.html +0 -15
- package/dist/docs/docs/templates/copilot/index.html +0 -15
- package/dist/docs/docs/templates/copilot-cn/index.html +0 -15
- package/dist/docs/docs/templates/native/index.html +0 -15
- package/dist/docs/docs/templates/native-cn/index.html +0 -15
- package/dist/docs/docs/templates/voice/index.html +0 -15
- package/dist/docs/docs/templates/voice-cn/index.html +0 -15
- package/dist/docs/docs__development__ag-ui.en-US.md.async.js +0 -210
- package/dist/docs/docs__development__ag-ui.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__ag-ui.zh-CN.md.async.js +0 -210
- package/dist/docs/docs__development__ag-ui.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__backend.en-US.md.async.js +0 -12
- package/dist/docs/docs__development__backend.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__backend.zh-CN.md.async.js +0 -12
- package/dist/docs/docs__development__backend.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__cards.en-US.md.async.js +0 -27
- package/dist/docs/docs__development__cards.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__cards.zh-CN.md.async.js +0 -27
- package/dist/docs/docs__development__cards.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.async.js +0 -69
- package/dist/docs/docs__development__chatanywhere-api.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.async.js +0 -69
- package/dist/docs/docs__development__chatanywhere-api.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere.en-US.md.async.js +0 -77
- package/dist/docs/docs__development__chatanywhere.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.async.js +0 -77
- package/dist/docs/docs__development__chatanywhere.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__custom.en-US.md.async.js +0 -22
- package/dist/docs/docs__development__custom.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__custom.zh-CN.md.async.js +0 -22
- package/dist/docs/docs__development__custom.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__overview.en-US.md.async.js +0 -21
- package/dist/docs/docs__development__overview.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__overview.zh-CN.md.async.js +0 -21
- package/dist/docs/docs__development__overview.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__development__qwen.en-US.md.async.js +0 -25
- package/dist/docs/docs__development__qwen.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__development__qwen.zh-CN.md.async.js +0 -25
- package/dist/docs/docs__development__qwen.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__copilot.en-US.md.async.js +0 -1
- package/dist/docs/docs__templates__copilot.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__copilot.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__copilot.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__native.en-US.md.async.js +0 -1
- package/dist/docs/docs__templates__native.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__native.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__native.zh-CN.md.chunk.css +0 -1
- package/dist/docs/docs__templates__voice.en-US.md.async.js +0 -20
- package/dist/docs/docs__templates__voice.en-US.md.chunk.css +0 -1
- package/dist/docs/docs__templates__voice.zh-CN.md.async.js +0 -1
- package/dist/docs/docs__templates__voice.zh-CN.md.chunk.css +0 -1
- package/dist/docs/dumi__pages__index__index.en-US.async.js +0 -1
- package/dist/docs/dumi__pages__index__index.en-US.chunk.css +0 -1
- package/dist/docs/dumi__pages__index__index.zh-CN.async.js +0 -1
- package/dist/docs/dumi__pages__index__index.zh-CN.chunk.css +0 -1
- package/dist/docs/dumi__theme__layouts__DocLayout__index.async.js +0 -1
- package/dist/docs/dumi__theme__layouts__DocLayout__index.chunk.css +0 -1
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.async.js +0 -18
- package/dist/docs/dumi__theme__layouts__GlobalLayout__index.chunk.css +0 -1
- package/dist/docs/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +0 -1
- package/dist/docs/index/index.html +0 -15
- package/dist/docs/index-cn/index.html +0 -15
- package/dist/docs/markdown__demos.async.js +0 -164
- package/dist/docs/meta__components__en-US.async.js +0 -9
- package/dist/docs/meta__components__zh-CN.async.js +0 -10
- package/dist/docs/meta__docs__en-US.async.js +0 -475
- package/dist/docs/meta__docs__en-US.chunk.css +0 -1
- package/dist/docs/meta__docs__zh-CN.async.js +0 -456
- package/dist/docs/meta__docs__zh-CN.chunk.css +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__404.async.js +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.async.js +0 -1
- package/dist/docs/nm__dumi__dist__client__pages__Demo__index.chunk.css +0 -1
- package/dist/docs/preload_helper.js +0 -1
- package/dist/docs/sender__demos.async.js +0 -1
- package/dist/docs/umi.css +0 -1
- package/dist/docs/umi.js +0 -107
- package/dist/docs/welcome__demos.async.js +0 -1
- package/dist/docs/~demos/:id/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-inline/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-mutisteps/index.html +0 -15
- package/dist/docs/~demos/accordion-demo-thinking/index.html +0 -15
- package/dist/docs/~demos/attachments-demo-files/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-basic/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-havestopped/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithfile/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithimage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-userwithnormal/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withavatar/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withcode/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-witherror/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-witherrordetail/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withimage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withusage/index.html +0 -15
- package/dist/docs/~demos/bubble-demo-withwaitingmessage/index.html +0 -15
- package/dist/docs/~demos/components-bubble-list-demo-basic/index.html +0 -15
- package/dist/docs/~demos/components-footer-demo-basic/index.html +0 -15
- package/dist/docs/~demos/components-footer-demo-withusage/index.html +0 -15
- package/dist/docs/~demos/components-status-demo-basic/index.html +0 -15
- package/dist/docs/~demos/conversations-demo-basic/index.html +0 -15
- package/dist/docs/~demos/disclaimer-demo-demo/index.html +0 -15
- package/dist/docs/~demos/disclaimer-demo-withlink/index.html +0 -15
- package/dist/docs/~demos/docs-development-ag-ui-demo-with-copilotkit/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-file/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-footer/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-image/index.html +0 -15
- package/dist/docs/~demos/docs-development-cards-demo-text/index.html +0 -15
- package/dist/docs/~demos/docs-development-custom-demo-custom/index.html +0 -15
- package/dist/docs/~demos/docs-templates-copilot-demo-copilot/index.html +0 -15
- package/dist/docs/~demos/docs-templates-native-demo-basic/index.html +0 -15
- package/dist/docs/~demos/docs-templates-voice-demo-demo/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-citations/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-cursor/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-mathjax/index.html +0 -15
- package/dist/docs/~demos/markdown-demo-md/index.html +0 -15
- package/dist/docs/~demos/sender-demo-basic/index.html +0 -15
- package/dist/docs/~demos/sender-demo-disabled/index.html +0 -15
- package/dist/docs/~demos/sender-demo-loading/index.html +0 -15
- package/dist/docs/~demos/sender-demo-moreprefixaction/index.html +0 -15
- package/dist/docs/~demos/sender-demo-withfile/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo0/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo1/index.html +0 -15
- package/dist/docs/~demos/welcome-demo-demo2/index.html +0 -15
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -20
- package/dist/index.less +0 -1
- package/dist/markdown/ImageOrVideo.d.ts +0 -2
- package/dist/markdown/ImageOrVideo.js +0 -81
- package/dist/markdown/Link.js +0 -28
- package/dist/markdown/cursor/Blur.d.ts +0 -3
- package/dist/markdown/cursor/Blur.js +0 -7
- package/dist/markdown/cursor/Dot.d.ts +0 -3
- package/dist/markdown/cursor/Dot.js +0 -16
- package/dist/markdown/cursor/Underline.d.ts +0 -3
- package/dist/markdown/cursor/Underline.js +0 -7
- package/dist/markdown/cursor/index.less +0 -124
- package/dist/markdown/hooks/index.d.ts +0 -1
- package/dist/markdown/hooks/index.js +0 -49
- package/dist/markdown/index.d.ts +0 -16
- package/dist/markdown/index.js +0 -37
- package/dist/markdown/index.less +0 -204
- package/dist/markdown/type.d.ts +0 -46
- package/dist/provider/types.d.ts +0 -8
- package/dist/sender/SenderHeader.d.ts +0 -19
- package/dist/sender/StopLoading.js +0 -20
- package/dist/sender/components/ActionButton.d.ts +0 -22
- package/dist/sender/components/ClearButton.js +0 -13
- package/dist/sender/components/LoadingButton.js +0 -22
- package/dist/sender/components/SendButton.js +0 -14
- package/dist/sender/components/SpeechButton/RecordingIcon.d.ts +0 -5
- package/dist/sender/components/SpeechButton/RecordingIcon.js +0 -49
- package/dist/sender/components/SpeechButton/index.js +0 -30
- package/dist/sender/index.d.ts +0 -61
- package/dist/sender/style/header.d.ts +0 -4
- package/dist/sender/style/header.js +0 -46
- package/dist/sender/style/index.d.ts +0 -10
- package/dist/sender/style/index.js +0 -123
- package/dist/stream/index.en-US.md.bk +0 -50
- package/dist/stream/index.zh-CN.md.bk +0 -51
- package/dist/theme/components.d.ts +0 -10
- package/dist/theme/cssinjs-utils.d.ts +0 -14
- package/dist/theme/genStyleUtils.d.ts +0 -28
- package/dist/theme/useToken.d.ts +0 -18
- package/dist/theme/useToken.js +0 -110
- package/dist/voice-chat/Recorder/index.d.ts +0 -26
- package/dist/voice-chat/VoiceChatProvider/context.d.ts +0 -22
- package/dist/voice-chat/VoiceChatProvider/context.js +0 -3
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.d.ts +0 -1
- package/dist/voice-chat/VoiceChatProvider/hooks/useChatState.js +0 -5
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.d.ts +0 -8
- package/dist/voice-chat/VoiceChatProvider/hooks/useMessages.js +0 -31
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.d.ts +0 -5
- package/dist/voice-chat/VoiceChatProvider/hooks/useRecorder.js +0 -48
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.d.ts +0 -4
- package/dist/voice-chat/VoiceChatProvider/hooks/useVoiceChat.js +0 -10
- package/dist/voice-chat/VoiceChatProvider/index.d.ts +0 -9
- package/dist/voice-chat/VoiceChatProvider/index.js +0 -55
- package/dist/voice-chat/VoiceChatService/index.d.ts +0 -34
- package/dist/voice-chat/index.d.ts +0 -2
- package/dist/voice-chat/index.js +0 -2
- package/dist/voice-chat/types/index.d.ts +0 -12
- package/dist/voice-chat/types/index.js +0 -4
- package/dist/welcome/icon.d.ts +0 -2
- package/dist/welcome/icon.js +0 -38
- package/dist/welcome/index.d.ts +0 -9
- package/dist/welcome/index.js +0 -57
- /package/{dist/_util/type.js → lib/AGUI/components/chat/props.js} +0 -0
- /package/{dist/bubble/interface.js → lib/AGUI/context/index.js} +0 -0
- /package/{dist/bubble/hooks/useDisplayData.d.ts → lib/AGUI/styles.css} +0 -0
- /package/{dist/bubble/hooks/useDisplayData.js → lib/AGUI/types/css.d.ts} +0 -0
- /package/{dist/bubble/hooks/useListData.d.ts → lib/AGUI/types/css.js} +0 -0
- /package/{dist/chat-anywhere/hooks/types.js → lib/AGUI/types/index.js} +0 -0
- /package/{dist/conversations/interface.js → lib/AGUI/types/suggestions.js} +0 -0
- /package/{dist/accordion → lib/Accordion}/index.js +0 -0
- /package/{dist/attachments → lib/Attachments}/context.js +0 -0
- /package/{dist/attachments → lib/Attachments}/util.d.ts +0 -0
- /package/{dist/attachments → lib/Attachments}/util.js +0 -0
- /package/{dist/bubble/hooks/useListData.js → lib/Bubble/hooks/useDisplayData.d.ts} +0 -0
- /package/{dist/default-cards/DeepThink/index.less → lib/Bubble/hooks/useDisplayData.js} +0 -0
- /package/{dist/bubble → lib/Bubble}/index.d.ts +0 -0
- /package/{dist/bubble → lib/Bubble}/index.js +0 -0
- /package/{dist/markdown/type.js → lib/Bubble/interface.js} +0 -0
- /package/{dist/bubble → lib/Bubble}/loading.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/Chat/Ref.js +0 -0
- /package/{dist/provider → lib/ChatAnywhere/hooks}/types.js +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.d.ts +0 -0
- /package/{dist/chat-anywhere → lib/ChatAnywhere}/hooks/useSessionList.js +0 -0
- /package/{dist/conversations → lib/Conversations}/hooks/useGroupable.js +0 -0
- /package/{dist/theme/components.js → lib/Conversations/interface.js} +0 -0
- /package/{dist/markdown → lib/Markdown}/Citation.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/Link.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/Markdown.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/hooks/useTypedEffect.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/footnote.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/footnote.js +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/katexDir.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/plugins/katexDir.js +0 -0
- /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.d.ts +0 -0
- /package/{dist/markdown → lib/Markdown}/rehype/fadeIn.js +0 -0
- /package/{dist/theme/cssinjs-utils.js → lib/Markdown/type.js} +0 -0
- /package/{dist/markdown → lib/Markdown}/utils.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/ClearButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/LoadingButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/SendButton.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/components/SpeechButton/index.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/useSpeech.d.ts +0 -0
- /package/{dist/sender → lib/Sender}/useSpeech.js +0 -0
- /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.d.ts +0 -0
- /package/{dist/_util → lib/Util}/hooks/use-proxy-imperative-handle.js +0 -0
- /package/{dist/_util → lib/Util}/type.d.ts +0 -0
- /package/{dist/_util → lib/Util}/warning.js +0 -0
- /package/{dist/version → lib/Version}/index.d.ts +0 -0
- /package/{dist/version → lib/Version}/index.js +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Icons for CopilotChat component.
|
|
4
|
+
*/
|
|
5
|
+
export interface CopilotChatIcons {
|
|
6
|
+
/**
|
|
7
|
+
* The icon to use for the open chat button.
|
|
8
|
+
* @default <OpenIcon />
|
|
9
|
+
*/
|
|
10
|
+
openIcon?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The icon to use for the close chat button.
|
|
13
|
+
* @default <CloseIcon />
|
|
14
|
+
*/
|
|
15
|
+
closeIcon?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The icon to use for the close chat button in the header.
|
|
18
|
+
* @default <HeaderCloseIcon />
|
|
19
|
+
*/
|
|
20
|
+
headerCloseIcon?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The icon to use for the send button.
|
|
23
|
+
* @default <SendIcon />
|
|
24
|
+
*/
|
|
25
|
+
sendIcon?: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* The icon to use for the activity indicator.
|
|
28
|
+
* @default <ActivityIcon />
|
|
29
|
+
*/
|
|
30
|
+
activityIcon?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* The icon to use for the spinner.
|
|
33
|
+
* @default <SpinnerIcon />
|
|
34
|
+
*/
|
|
35
|
+
spinnerIcon?: React.ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* The icon to use for the stop button.
|
|
38
|
+
* @default <StopIcon />
|
|
39
|
+
*/
|
|
40
|
+
stopIcon?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* The icon to use for the regenerate button.
|
|
43
|
+
* @default <RegenerateIcon />
|
|
44
|
+
*/
|
|
45
|
+
regenerateIcon?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* The icons to use for push to talk.
|
|
48
|
+
* @default <PushToTalkIcon />
|
|
49
|
+
*/
|
|
50
|
+
pushToTalkIcon?: React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* The icons to use for copy assistant response
|
|
53
|
+
* @default <CopyIcon />
|
|
54
|
+
*/
|
|
55
|
+
copyIcon?: React.ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* The icon to use for thumbs up/response approval.
|
|
58
|
+
* @default <ThumbsUpIcon />
|
|
59
|
+
*/
|
|
60
|
+
thumbsUpIcon?: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* The icon to use for thumbs down/response rejection.
|
|
63
|
+
* @default <ThumbsDownIcon />
|
|
64
|
+
*/
|
|
65
|
+
thumbsDownIcon?: React.ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* The icon to use for the upload button.
|
|
68
|
+
* @default <UploadIcon />
|
|
69
|
+
*/
|
|
70
|
+
uploadIcon?: React.ReactNode;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Labels for CopilotChat component.
|
|
74
|
+
*/
|
|
75
|
+
export interface CopilotChatLabels {
|
|
76
|
+
/**
|
|
77
|
+
* The initial message(s) to display in the chat window.
|
|
78
|
+
*/
|
|
79
|
+
initial?: string | string[];
|
|
80
|
+
/**
|
|
81
|
+
* The title to display in the header.
|
|
82
|
+
* @default "CopilotKit"
|
|
83
|
+
*/
|
|
84
|
+
title?: string;
|
|
85
|
+
/**
|
|
86
|
+
* The placeholder to display in the input.
|
|
87
|
+
* @default "Type a message..."
|
|
88
|
+
*/
|
|
89
|
+
placeholder?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The message to display when an error occurs.
|
|
92
|
+
* @default "❌ An error occurred. Please try again."
|
|
93
|
+
*/
|
|
94
|
+
error?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The label to display on the stop button.
|
|
97
|
+
* @default "Stop generating"
|
|
98
|
+
*/
|
|
99
|
+
stopGenerating?: string;
|
|
100
|
+
/**
|
|
101
|
+
* The label to display on the regenerate button.
|
|
102
|
+
* @default "Regenerate response"
|
|
103
|
+
*/
|
|
104
|
+
regenerateResponse?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The label for the copy button.
|
|
107
|
+
* @default "Copy to clipboard"
|
|
108
|
+
*/
|
|
109
|
+
copyToClipboard?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The label for the thumbs up button.
|
|
112
|
+
* @default "Thumbs up"
|
|
113
|
+
*/
|
|
114
|
+
thumbsUp?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The label for the thumbs down button.
|
|
117
|
+
* @default "Thumbs down"
|
|
118
|
+
*/
|
|
119
|
+
thumbsDown?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The text to display when content is copied.
|
|
122
|
+
* @default "Copied!"
|
|
123
|
+
*/
|
|
124
|
+
copied?: string;
|
|
125
|
+
}
|
|
126
|
+
interface ChatContext {
|
|
127
|
+
labels: Required<CopilotChatLabels>;
|
|
128
|
+
icons: Required<CopilotChatIcons>;
|
|
129
|
+
open: boolean;
|
|
130
|
+
setOpen: (open: boolean) => void;
|
|
131
|
+
}
|
|
132
|
+
export declare const ChatContext: React.Context<ChatContext>;
|
|
133
|
+
export declare function useChatContext(): ChatContext;
|
|
134
|
+
interface ChatContextProps {
|
|
135
|
+
labels?: CopilotChatLabels;
|
|
136
|
+
icons?: CopilotChatIcons;
|
|
137
|
+
children?: React.ReactNode;
|
|
138
|
+
open: boolean;
|
|
139
|
+
setOpen: (open: boolean) => void;
|
|
140
|
+
}
|
|
141
|
+
export declare const ChatContextProvider: ({ labels, icons, children, open, setOpen, }: ChatContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
142
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
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 React, { useMemo } from "react";
|
|
8
|
+
import * as DefaultIcons from "./Icons";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Icons for CopilotChat component.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Labels for CopilotChat component.
|
|
16
|
+
*/
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
export var ChatContext = /*#__PURE__*/React.createContext(undefined);
|
|
19
|
+
export function useChatContext() {
|
|
20
|
+
var context = React.useContext(ChatContext);
|
|
21
|
+
if (context === undefined) {
|
|
22
|
+
throw new Error("Context not found. Did you forget to wrap your app in a <ChatContextProvider> component?");
|
|
23
|
+
}
|
|
24
|
+
return context;
|
|
25
|
+
}
|
|
26
|
+
export var ChatContextProvider = function ChatContextProvider(_ref) {
|
|
27
|
+
var labels = _ref.labels,
|
|
28
|
+
icons = _ref.icons,
|
|
29
|
+
children = _ref.children,
|
|
30
|
+
open = _ref.open,
|
|
31
|
+
setOpen = _ref.setOpen;
|
|
32
|
+
var memoizedLabels = useMemo(function () {
|
|
33
|
+
return _objectSpread(_objectSpread({}, {
|
|
34
|
+
initial: "",
|
|
35
|
+
title: "CopilotKit",
|
|
36
|
+
placeholder: "Type a message...",
|
|
37
|
+
error: "❌ An error occurred. Please try again.",
|
|
38
|
+
stopGenerating: "Stop generating",
|
|
39
|
+
regenerateResponse: "Regenerate response",
|
|
40
|
+
copyToClipboard: "Copy to clipboard",
|
|
41
|
+
thumbsUp: "Thumbs up",
|
|
42
|
+
thumbsDown: "Thumbs down",
|
|
43
|
+
copied: "Copied!"
|
|
44
|
+
}), labels);
|
|
45
|
+
}, [labels]);
|
|
46
|
+
var memoizedIcons = useMemo(function () {
|
|
47
|
+
return _objectSpread(_objectSpread({}, {
|
|
48
|
+
openIcon: DefaultIcons.OpenIcon,
|
|
49
|
+
closeIcon: DefaultIcons.CloseIcon,
|
|
50
|
+
headerCloseIcon: DefaultIcons.HeaderCloseIcon,
|
|
51
|
+
sendIcon: DefaultIcons.SendIcon,
|
|
52
|
+
activityIcon: DefaultIcons.ActivityIcon,
|
|
53
|
+
spinnerIcon: DefaultIcons.SpinnerIcon,
|
|
54
|
+
stopIcon: DefaultIcons.StopIcon,
|
|
55
|
+
regenerateIcon: DefaultIcons.RegenerateIcon,
|
|
56
|
+
pushToTalkIcon: DefaultIcons.MicrophoneIcon,
|
|
57
|
+
copyIcon: DefaultIcons.CopyIcon,
|
|
58
|
+
thumbsUpIcon: DefaultIcons.ThumbsUpIcon,
|
|
59
|
+
thumbsDownIcon: DefaultIcons.ThumbsDownIcon,
|
|
60
|
+
uploadIcon: DefaultIcons.UploadIcon
|
|
61
|
+
}), icons);
|
|
62
|
+
}, [icons]);
|
|
63
|
+
var context = useMemo(function () {
|
|
64
|
+
return {
|
|
65
|
+
labels: memoizedLabels,
|
|
66
|
+
icons: memoizedIcons,
|
|
67
|
+
open: open,
|
|
68
|
+
setOpen: setOpen
|
|
69
|
+
};
|
|
70
|
+
}, [memoizedLabels, memoizedIcons, open, setOpen]);
|
|
71
|
+
return /*#__PURE__*/_jsx(ChatContext.Provider, {
|
|
72
|
+
value: context,
|
|
73
|
+
children: children
|
|
74
|
+
});
|
|
75
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
language: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
interface languageMap {
|
|
7
|
+
[key: string]: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const programmingLanguages: languageMap;
|
|
10
|
+
export declare const generateRandomString: (length: number, lowercase?: boolean) => string;
|
|
11
|
+
declare const CodeBlock: FC<Props>;
|
|
12
|
+
export { CodeBlock };
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { memo } from "react";
|
|
2
|
+
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
3
|
+
import { useCopyToClipboard } from "../../hooks/use-copy-to-clipboard";
|
|
4
|
+
import { CheckIcon, CopyIcon, DownloadIcon } from "./Icons";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export var programmingLanguages = {
|
|
8
|
+
javascript: ".js",
|
|
9
|
+
python: ".py",
|
|
10
|
+
java: ".java",
|
|
11
|
+
c: ".c",
|
|
12
|
+
cpp: ".cpp",
|
|
13
|
+
"c++": ".cpp",
|
|
14
|
+
"c#": ".cs",
|
|
15
|
+
ruby: ".rb",
|
|
16
|
+
php: ".php",
|
|
17
|
+
swift: ".swift",
|
|
18
|
+
"objective-c": ".m",
|
|
19
|
+
kotlin: ".kt",
|
|
20
|
+
typescript: ".ts",
|
|
21
|
+
go: ".go",
|
|
22
|
+
perl: ".pl",
|
|
23
|
+
rust: ".rs",
|
|
24
|
+
scala: ".scala",
|
|
25
|
+
haskell: ".hs",
|
|
26
|
+
lua: ".lua",
|
|
27
|
+
shell: ".sh",
|
|
28
|
+
sql: ".sql",
|
|
29
|
+
html: ".html",
|
|
30
|
+
css: ".css"
|
|
31
|
+
// add more file extensions here, make sure the key is same as language prop in CodeBlock.tsx component
|
|
32
|
+
};
|
|
33
|
+
export var generateRandomString = function generateRandomString(length) {
|
|
34
|
+
var lowercase = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
35
|
+
var chars = "ABCDEFGHJKLMNPQRSTUVWXY3456789"; // excluding similar looking characters like Z, 2, I, 1, O, 0
|
|
36
|
+
var result = "";
|
|
37
|
+
for (var i = 0; i < length; i++) {
|
|
38
|
+
result += chars.charAt(Math.floor(Math.random() * chars.length));
|
|
39
|
+
}
|
|
40
|
+
return lowercase ? result.toLowerCase() : result;
|
|
41
|
+
};
|
|
42
|
+
var CodeBlock = /*#__PURE__*/memo(function (_ref) {
|
|
43
|
+
var language = _ref.language,
|
|
44
|
+
value = _ref.value;
|
|
45
|
+
var _useCopyToClipboard = useCopyToClipboard({
|
|
46
|
+
timeout: 2000
|
|
47
|
+
}),
|
|
48
|
+
isCopied = _useCopyToClipboard.isCopied,
|
|
49
|
+
copyToClipboard = _useCopyToClipboard.copyToClipboard;
|
|
50
|
+
var downloadAsFile = function downloadAsFile() {
|
|
51
|
+
if (typeof window === "undefined") {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
var fileExtension = programmingLanguages[language] || ".file";
|
|
55
|
+
var suggestedFileName = "file-".concat(generateRandomString(3, true)).concat(fileExtension);
|
|
56
|
+
var fileName = window.prompt("Enter file name" || "", suggestedFileName);
|
|
57
|
+
if (!fileName) {
|
|
58
|
+
// User pressed cancel on prompt.
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
var blob = new Blob([value], {
|
|
62
|
+
type: "text/plain"
|
|
63
|
+
});
|
|
64
|
+
var url = URL.createObjectURL(blob);
|
|
65
|
+
var link = document.createElement("a");
|
|
66
|
+
link.download = fileName;
|
|
67
|
+
link.href = url;
|
|
68
|
+
link.style.display = "none";
|
|
69
|
+
document.body.appendChild(link);
|
|
70
|
+
link.click();
|
|
71
|
+
document.body.removeChild(link);
|
|
72
|
+
URL.revokeObjectURL(url);
|
|
73
|
+
};
|
|
74
|
+
var onCopy = function onCopy() {
|
|
75
|
+
if (isCopied) return;
|
|
76
|
+
copyToClipboard(value);
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
79
|
+
className: "copilotKitCodeBlock",
|
|
80
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
81
|
+
className: "copilotKitCodeBlockToolbar",
|
|
82
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
83
|
+
className: "copilotKitCodeBlockToolbarLanguage",
|
|
84
|
+
children: language
|
|
85
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
86
|
+
className: "copilotKitCodeBlockToolbarButtons",
|
|
87
|
+
children: [/*#__PURE__*/_jsx("button", {
|
|
88
|
+
className: "copilotKitCodeBlockToolbarButton",
|
|
89
|
+
onClick: downloadAsFile,
|
|
90
|
+
children: DownloadIcon
|
|
91
|
+
}), /*#__PURE__*/_jsx("button", {
|
|
92
|
+
className: "copilotKitCodeBlockToolbarButton",
|
|
93
|
+
onClick: onCopy,
|
|
94
|
+
children: isCopied ? CheckIcon : CopyIcon
|
|
95
|
+
})]
|
|
96
|
+
})]
|
|
97
|
+
}), /*#__PURE__*/_jsx(SyntaxHighlighter, {
|
|
98
|
+
language: language,
|
|
99
|
+
style: highlightStyle,
|
|
100
|
+
PreTag: "div",
|
|
101
|
+
customStyle: {
|
|
102
|
+
margin: 0,
|
|
103
|
+
borderBottomLeftRadius: "0.375rem",
|
|
104
|
+
borderBottomRightRadius: "0.375rem"
|
|
105
|
+
},
|
|
106
|
+
children: value
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
CodeBlock.displayName = "CodeBlock";
|
|
111
|
+
export { CodeBlock };
|
|
112
|
+
|
|
113
|
+
// import { vscDarkPlus as highlightStyle } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
114
|
+
// As a workaround, we inline the vscDarkPlus from react-syntax-highlighter.
|
|
115
|
+
// Importing it as recommended in the documentation leads to build errors in the non app router
|
|
116
|
+
// (Next.js classic) setup.
|
|
117
|
+
var highlightStyle = {
|
|
118
|
+
'pre[class*="language-"]': {
|
|
119
|
+
color: "#d4d4d4",
|
|
120
|
+
fontSize: "13px",
|
|
121
|
+
textShadow: "none",
|
|
122
|
+
fontFamily: 'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',
|
|
123
|
+
direction: "ltr",
|
|
124
|
+
textAlign: "left",
|
|
125
|
+
whiteSpace: "pre",
|
|
126
|
+
wordSpacing: "normal",
|
|
127
|
+
wordBreak: "normal",
|
|
128
|
+
lineHeight: "1.5",
|
|
129
|
+
MozTabSize: "4",
|
|
130
|
+
OTabSize: "4",
|
|
131
|
+
tabSize: "4",
|
|
132
|
+
WebkitHyphens: "none",
|
|
133
|
+
MozHyphens: "none",
|
|
134
|
+
msHyphens: "none",
|
|
135
|
+
hyphens: "none",
|
|
136
|
+
padding: "1em",
|
|
137
|
+
margin: ".5em 0",
|
|
138
|
+
overflow: "auto",
|
|
139
|
+
background: "#1e1e1e"
|
|
140
|
+
},
|
|
141
|
+
'code[class*="language-"]': {
|
|
142
|
+
color: "#d4d4d4",
|
|
143
|
+
fontSize: "13px",
|
|
144
|
+
textShadow: "none",
|
|
145
|
+
fontFamily: 'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',
|
|
146
|
+
direction: "ltr",
|
|
147
|
+
textAlign: "left",
|
|
148
|
+
whiteSpace: "pre",
|
|
149
|
+
wordSpacing: "normal",
|
|
150
|
+
wordBreak: "normal",
|
|
151
|
+
lineHeight: "1.5",
|
|
152
|
+
MozTabSize: "4",
|
|
153
|
+
OTabSize: "4",
|
|
154
|
+
tabSize: "4",
|
|
155
|
+
WebkitHyphens: "none",
|
|
156
|
+
MozHyphens: "none",
|
|
157
|
+
msHyphens: "none",
|
|
158
|
+
hyphens: "none"
|
|
159
|
+
},
|
|
160
|
+
'pre[class*="language-"]::selection': {
|
|
161
|
+
textShadow: "none",
|
|
162
|
+
background: "#264F78"
|
|
163
|
+
},
|
|
164
|
+
'code[class*="language-"]::selection': {
|
|
165
|
+
textShadow: "none",
|
|
166
|
+
background: "#264F78"
|
|
167
|
+
},
|
|
168
|
+
'pre[class*="language-"] *::selection': {
|
|
169
|
+
textShadow: "none",
|
|
170
|
+
background: "#264F78"
|
|
171
|
+
},
|
|
172
|
+
'code[class*="language-"] *::selection': {
|
|
173
|
+
textShadow: "none",
|
|
174
|
+
background: "#264F78"
|
|
175
|
+
},
|
|
176
|
+
':not(pre) > code[class*="language-"]': {
|
|
177
|
+
padding: ".1em .3em",
|
|
178
|
+
borderRadius: ".3em",
|
|
179
|
+
color: "#db4c69",
|
|
180
|
+
background: "#1e1e1e"
|
|
181
|
+
},
|
|
182
|
+
".namespace": {
|
|
183
|
+
Opacity: ".7"
|
|
184
|
+
},
|
|
185
|
+
"doctype.doctype-tag": {
|
|
186
|
+
color: "#569CD6"
|
|
187
|
+
},
|
|
188
|
+
"doctype.name": {
|
|
189
|
+
color: "#9cdcfe"
|
|
190
|
+
},
|
|
191
|
+
comment: {
|
|
192
|
+
color: "#6a9955"
|
|
193
|
+
},
|
|
194
|
+
prolog: {
|
|
195
|
+
color: "#6a9955"
|
|
196
|
+
},
|
|
197
|
+
punctuation: {
|
|
198
|
+
color: "#d4d4d4"
|
|
199
|
+
},
|
|
200
|
+
".language-html .language-css .token.punctuation": {
|
|
201
|
+
color: "#d4d4d4"
|
|
202
|
+
},
|
|
203
|
+
".language-html .language-javascript .token.punctuation": {
|
|
204
|
+
color: "#d4d4d4"
|
|
205
|
+
},
|
|
206
|
+
property: {
|
|
207
|
+
color: "#9cdcfe"
|
|
208
|
+
},
|
|
209
|
+
tag: {
|
|
210
|
+
color: "#569cd6"
|
|
211
|
+
},
|
|
212
|
+
boolean: {
|
|
213
|
+
color: "#569cd6"
|
|
214
|
+
},
|
|
215
|
+
number: {
|
|
216
|
+
color: "#b5cea8"
|
|
217
|
+
},
|
|
218
|
+
constant: {
|
|
219
|
+
color: "#9cdcfe"
|
|
220
|
+
},
|
|
221
|
+
symbol: {
|
|
222
|
+
color: "#b5cea8"
|
|
223
|
+
},
|
|
224
|
+
inserted: {
|
|
225
|
+
color: "#b5cea8"
|
|
226
|
+
},
|
|
227
|
+
unit: {
|
|
228
|
+
color: "#b5cea8"
|
|
229
|
+
},
|
|
230
|
+
selector: {
|
|
231
|
+
color: "#d7ba7d"
|
|
232
|
+
},
|
|
233
|
+
"attr-name": {
|
|
234
|
+
color: "#9cdcfe"
|
|
235
|
+
},
|
|
236
|
+
string: {
|
|
237
|
+
color: "#ce9178"
|
|
238
|
+
},
|
|
239
|
+
char: {
|
|
240
|
+
color: "#ce9178"
|
|
241
|
+
},
|
|
242
|
+
builtin: {
|
|
243
|
+
color: "#ce9178"
|
|
244
|
+
},
|
|
245
|
+
deleted: {
|
|
246
|
+
color: "#ce9178"
|
|
247
|
+
},
|
|
248
|
+
".language-css .token.string.url": {
|
|
249
|
+
textDecoration: "underline"
|
|
250
|
+
},
|
|
251
|
+
operator: {
|
|
252
|
+
color: "#d4d4d4"
|
|
253
|
+
},
|
|
254
|
+
entity: {
|
|
255
|
+
color: "#569cd6"
|
|
256
|
+
},
|
|
257
|
+
"operator.arrow": {
|
|
258
|
+
color: "#569CD6"
|
|
259
|
+
},
|
|
260
|
+
atrule: {
|
|
261
|
+
color: "#ce9178"
|
|
262
|
+
},
|
|
263
|
+
"atrule.rule": {
|
|
264
|
+
color: "#c586c0"
|
|
265
|
+
},
|
|
266
|
+
"atrule.url": {
|
|
267
|
+
color: "#9cdcfe"
|
|
268
|
+
},
|
|
269
|
+
"atrule.url.function": {
|
|
270
|
+
color: "#dcdcaa"
|
|
271
|
+
},
|
|
272
|
+
"atrule.url.punctuation": {
|
|
273
|
+
color: "#d4d4d4"
|
|
274
|
+
},
|
|
275
|
+
keyword: {
|
|
276
|
+
color: "#569CD6"
|
|
277
|
+
},
|
|
278
|
+
"keyword.module": {
|
|
279
|
+
color: "#c586c0"
|
|
280
|
+
},
|
|
281
|
+
"keyword.control-flow": {
|
|
282
|
+
color: "#c586c0"
|
|
283
|
+
},
|
|
284
|
+
function: {
|
|
285
|
+
color: "#dcdcaa"
|
|
286
|
+
},
|
|
287
|
+
"function.maybe-class-name": {
|
|
288
|
+
color: "#dcdcaa"
|
|
289
|
+
},
|
|
290
|
+
regex: {
|
|
291
|
+
color: "#d16969"
|
|
292
|
+
},
|
|
293
|
+
important: {
|
|
294
|
+
color: "#569cd6"
|
|
295
|
+
},
|
|
296
|
+
italic: {
|
|
297
|
+
fontStyle: "italic"
|
|
298
|
+
},
|
|
299
|
+
"class-name": {
|
|
300
|
+
color: "#4ec9b0"
|
|
301
|
+
},
|
|
302
|
+
"maybe-class-name": {
|
|
303
|
+
color: "#4ec9b0"
|
|
304
|
+
},
|
|
305
|
+
console: {
|
|
306
|
+
color: "#9cdcfe"
|
|
307
|
+
},
|
|
308
|
+
parameter: {
|
|
309
|
+
color: "#9cdcfe"
|
|
310
|
+
},
|
|
311
|
+
interpolation: {
|
|
312
|
+
color: "#9cdcfe"
|
|
313
|
+
},
|
|
314
|
+
"punctuation.interpolation-punctuation": {
|
|
315
|
+
color: "#569cd6"
|
|
316
|
+
},
|
|
317
|
+
variable: {
|
|
318
|
+
color: "#9cdcfe"
|
|
319
|
+
},
|
|
320
|
+
"imports.maybe-class-name": {
|
|
321
|
+
color: "#9cdcfe"
|
|
322
|
+
},
|
|
323
|
+
"exports.maybe-class-name": {
|
|
324
|
+
color: "#9cdcfe"
|
|
325
|
+
},
|
|
326
|
+
escape: {
|
|
327
|
+
color: "#d7ba7d"
|
|
328
|
+
},
|
|
329
|
+
"tag.punctuation": {
|
|
330
|
+
color: "#808080"
|
|
331
|
+
},
|
|
332
|
+
cdata: {
|
|
333
|
+
color: "#808080"
|
|
334
|
+
},
|
|
335
|
+
"attr-value": {
|
|
336
|
+
color: "#ce9178"
|
|
337
|
+
},
|
|
338
|
+
"attr-value.punctuation": {
|
|
339
|
+
color: "#ce9178"
|
|
340
|
+
},
|
|
341
|
+
"attr-value.punctuation.attr-equals": {
|
|
342
|
+
color: "#d4d4d4"
|
|
343
|
+
},
|
|
344
|
+
namespace: {
|
|
345
|
+
color: "#4ec9b0"
|
|
346
|
+
},
|
|
347
|
+
'pre[class*="language-javascript"]': {
|
|
348
|
+
color: "#9cdcfe"
|
|
349
|
+
},
|
|
350
|
+
'code[class*="language-javascript"]': {
|
|
351
|
+
color: "#9cdcfe"
|
|
352
|
+
},
|
|
353
|
+
'pre[class*="language-jsx"]': {
|
|
354
|
+
color: "#9cdcfe"
|
|
355
|
+
},
|
|
356
|
+
'code[class*="language-jsx"]': {
|
|
357
|
+
color: "#9cdcfe"
|
|
358
|
+
},
|
|
359
|
+
'pre[class*="language-typescript"]': {
|
|
360
|
+
color: "#9cdcfe"
|
|
361
|
+
},
|
|
362
|
+
'code[class*="language-typescript"]': {
|
|
363
|
+
color: "#9cdcfe"
|
|
364
|
+
},
|
|
365
|
+
'pre[class*="language-tsx"]': {
|
|
366
|
+
color: "#9cdcfe"
|
|
367
|
+
},
|
|
368
|
+
'code[class*="language-tsx"]': {
|
|
369
|
+
color: "#9cdcfe"
|
|
370
|
+
},
|
|
371
|
+
'pre[class*="language-css"]': {
|
|
372
|
+
color: "#ce9178"
|
|
373
|
+
},
|
|
374
|
+
'code[class*="language-css"]': {
|
|
375
|
+
color: "#ce9178"
|
|
376
|
+
},
|
|
377
|
+
'pre[class*="language-html"]': {
|
|
378
|
+
color: "#d4d4d4"
|
|
379
|
+
},
|
|
380
|
+
'code[class*="language-html"]': {
|
|
381
|
+
color: "#d4d4d4"
|
|
382
|
+
},
|
|
383
|
+
".language-regex .token.anchor": {
|
|
384
|
+
color: "#dcdcaa"
|
|
385
|
+
},
|
|
386
|
+
".language-html .token.punctuation": {
|
|
387
|
+
color: "#808080"
|
|
388
|
+
},
|
|
389
|
+
'pre[class*="language-"] > code[class*="language-"]': {
|
|
390
|
+
position: "relative",
|
|
391
|
+
zIndex: "1"
|
|
392
|
+
},
|
|
393
|
+
".line-highlight.line-highlight": {
|
|
394
|
+
background: "#f7ebc6",
|
|
395
|
+
boxShadow: "inset 5px 0 0 #f7d87c",
|
|
396
|
+
zIndex: "0"
|
|
397
|
+
}
|
|
398
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
2
|
+
import { useChatContext } from "./ChatContext";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
export var Header = function Header(_ref) {
|
|
7
|
+
_objectDestructuringEmpty(_ref);
|
|
8
|
+
var _useChatContext = useChatContext(),
|
|
9
|
+
setOpen = _useChatContext.setOpen,
|
|
10
|
+
icons = _useChatContext.icons,
|
|
11
|
+
labels = _useChatContext.labels;
|
|
12
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
13
|
+
className: "copilotKitHeader",
|
|
14
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
15
|
+
children: labels.title
|
|
16
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
17
|
+
className: "copilotKitHeaderControls",
|
|
18
|
+
children: /*#__PURE__*/_jsx("button", {
|
|
19
|
+
onClick: function onClick() {
|
|
20
|
+
return setOpen(false);
|
|
21
|
+
},
|
|
22
|
+
"aria-label": "Close",
|
|
23
|
+
className: "copilotKitHeaderCloseButton",
|
|
24
|
+
children: icons.headerCloseIcon
|
|
25
|
+
})
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const OpenIcon: import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const CloseIcon: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const HeaderCloseIcon: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SendIcon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const MicrophoneIcon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const StopIcon: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const RegenerateIcon: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const CopyIcon: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const SmallSpinnerIcon: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SpinnerIcon: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ActivityIcon: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ThumbsUpIcon: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const ThumbsDownIcon: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const DownloadIcon: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const UploadIcon: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const CheckIcon: import("react/jsx-runtime").JSX.Element;
|