vpschatbotwidget 1.2.1 → 1.2.3
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/README.md +56 -16
- package/dist-lib/types/chatbot/api/chatbot-types.d.ts +8 -1
- package/dist-lib/types/chatbot/core/AgentReasoning.d.ts +4 -1
- package/dist-lib/types/chatbot/core/ChatContext.d.ts +5 -1
- package/dist-lib/types/chatbot/core/ChatHeader.d.ts +2 -0
- package/dist-lib/types/chatbot/core/ChatInlineCitation.d.ts +5 -0
- package/dist-lib/types/chatbot/core/ChatInput.d.ts +5 -0
- package/dist-lib/types/chatbot/core/ChatMarkdown.d.ts +4 -1
- package/dist-lib/types/chatbot/core/ChatMessage.d.ts +1 -0
- package/dist-lib/types/chatbot/core/ChatMessageActions.d.ts +7 -0
- package/dist-lib/types/chatbot/core/ChatMessageList.d.ts +3 -1
- package/dist-lib/types/chatbot/core/ChatProvider.d.ts +2 -2
- package/dist-lib/types/chatbot/core/GroundedSources.d.ts +5 -0
- package/dist-lib/types/chatbot/embedded/EmbeddedChatbot.d.ts +2 -2
- package/dist-lib/types/chatbot/hooks/useCopyText.d.ts +4 -0
- package/dist-lib/types/chatbot/hooks/useResponseSound.d.ts +6 -0
- package/dist-lib/types/chatbot/index.d.ts +1 -1
- package/dist-lib/types/chatbot/widget/ChatbotWidget.d.ts +2 -2
- package/dist-lib/types/components/ai-elements/inline-citation.d.ts +52 -0
- package/dist-lib/types/components/ai-elements/reasoning.d.ts +21 -0
- package/dist-lib/types/components/ai-elements/suggestion.d.ts +9 -0
- package/dist-lib/types/components/ui/bubble.d.ts +6 -0
- package/dist-lib/types/components/ui/button.d.ts +8 -0
- package/dist-lib/types/components/ui/hover-card.d.ts +5 -0
- package/dist-lib/types/components/ui/input-group.d.ts +5 -0
- package/dist-lib/types/components/ui/marker.d.ts +6 -0
- package/dist-lib/types/components/ui/message.d.ts +8 -0
- package/dist-lib/types/components/ui/trace.d.ts +19 -0
- package/dist-lib/types/lib/safeHref.d.ts +1 -0
- package/dist-lib/vps-chatbot.cjs +110 -29
- package/dist-lib/vps-chatbot.js +9540 -1654
- package/package.json +6 -2
- package/src/chatbot/api/chatbot-api.ts +1 -0
- package/src/chatbot/api/chatbot-types.ts +9 -1
- package/src/chatbot/chatbot.test.tsx +125 -7
- package/src/chatbot/core/AgentReasoning.tsx +68 -36
- package/src/chatbot/core/ChatContext.tsx +5 -0
- package/src/chatbot/core/ChatEmptyState.tsx +14 -13
- package/src/chatbot/core/ChatError.tsx +20 -12
- package/src/chatbot/core/ChatHeader.tsx +17 -1
- package/src/chatbot/core/ChatInlineCitation.tsx +63 -0
- package/src/chatbot/core/ChatInput.tsx +73 -51
- package/src/chatbot/core/ChatMarkdown.tsx +70 -24
- package/src/chatbot/core/ChatMessage.tsx +77 -88
- package/src/chatbot/core/ChatMessageActions.tsx +51 -0
- package/src/chatbot/core/ChatMessageList.tsx +15 -7
- package/src/chatbot/core/ChatPanel.tsx +19 -7
- package/src/chatbot/core/ChatProvider.tsx +58 -10
- package/src/chatbot/core/ChatSuggestions.tsx +14 -34
- package/src/chatbot/core/GroundedSources.tsx +113 -90
- package/src/chatbot/core/grounding.test.tsx +111 -4
- package/src/chatbot/embedded/EmbeddedChatbot.tsx +2 -2
- package/src/chatbot/hooks/useCopyText.ts +23 -0
- package/src/chatbot/hooks/useResponseSound.ts +74 -0
- package/src/chatbot/index.ts +1 -0
- package/src/chatbot/widget/ChatbotWidget.tsx +2 -2
- package/src/components/ai-elements/inline-citation.tsx +299 -0
- package/src/components/ai-elements/reasoning.tsx +126 -0
- package/src/components/ai-elements/suggestion.tsx +42 -0
- package/src/components/ui/bubble.tsx +18 -0
- package/src/components/ui/button.tsx +43 -0
- package/src/components/ui/hover-card.tsx +43 -0
- package/src/components/ui/input-group.tsx +18 -0
- package/src/components/ui/marker.tsx +18 -0
- package/src/components/ui/message.tsx +26 -0
- package/src/components/ui/trace.tsx +68 -0
- package/src/index.css +579 -272
- package/src/lib/safeHref.ts +6 -0