@sveda-ai/vue 0.1.0
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 +21 -0
- package/README.md +9 -0
- package/dist/appearance.d.ts +52 -0
- package/dist/appearance.d.ts.map +1 -0
- package/dist/components/chat/AnimatedStreamBlock.vue.d.ts +16 -0
- package/dist/components/chat/AnimatedStreamBlock.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatHistoryDropdown.vue.d.ts +17 -0
- package/dist/components/chat/ChatHistoryDropdown.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatInput.vue.d.ts +30 -0
- package/dist/components/chat/ChatInput.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatMessageActivityBlock.vue.d.ts +13 -0
- package/dist/components/chat/ChatMessageActivityBlock.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatMessageItem.vue.d.ts +15 -0
- package/dist/components/chat/ChatMessageItem.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatMessageList.vue.d.ts +31 -0
- package/dist/components/chat/ChatMessageList.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatPendingIndicator.vue.d.ts +12 -0
- package/dist/components/chat/ChatPendingIndicator.vue.d.ts.map +1 -0
- package/dist/components/chat/ReasoningStream.vue.d.ts +11 -0
- package/dist/components/chat/ReasoningStream.vue.d.ts.map +1 -0
- package/dist/components/chat/index.d.ts +9 -0
- package/dist/components/chat/index.d.ts.map +1 -0
- package/dist/components/shell/SvedaAgentCompletedNotice.vue.d.ts +9 -0
- package/dist/components/shell/SvedaAgentCompletedNotice.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaAgentTasksPanel.vue.d.ts +12 -0
- package/dist/components/shell/SvedaAgentTasksPanel.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaChat.vue.d.ts +22 -0
- package/dist/components/shell/SvedaChat.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaContextUsageBar.vue.d.ts +10 -0
- package/dist/components/shell/SvedaContextUsageBar.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaHistorySheet.vue.d.ts +15 -0
- package/dist/components/shell/SvedaHistorySheet.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaHistorySidebar.vue.d.ts +15 -0
- package/dist/components/shell/SvedaHistorySidebar.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaInputSection.vue.d.ts +25 -0
- package/dist/components/shell/SvedaInputSection.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaLandingView.vue.d.ts +40 -0
- package/dist/components/shell/SvedaLandingView.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaMaxStepsNotice.vue.d.ts +13 -0
- package/dist/components/shell/SvedaMaxStepsNotice.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaMinimizedTrigger.vue.d.ts +15 -0
- package/dist/components/shell/SvedaMinimizedTrigger.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaModelControls.vue.d.ts +12 -0
- package/dist/components/shell/SvedaModelControls.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaModelSelect.vue.d.ts +10 -0
- package/dist/components/shell/SvedaModelSelect.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaQuickPrompts.vue.d.ts +13 -0
- package/dist/components/shell/SvedaQuickPrompts.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaResizeHandles.vue.d.ts +11 -0
- package/dist/components/shell/SvedaResizeHandles.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaTabs.vue.d.ts +17 -0
- package/dist/components/shell/SvedaTabs.vue.d.ts.map +1 -0
- package/dist/components/shell/SvedaToolbar.vue.d.ts +33 -0
- package/dist/components/shell/SvedaToolbar.vue.d.ts.map +1 -0
- package/dist/composables/useSvedaAgentTasks.d.ts +57 -0
- package/dist/composables/useSvedaAgentTasks.d.ts.map +1 -0
- package/dist/composables/useSvedaBootstrap.d.ts +18 -0
- package/dist/composables/useSvedaBootstrap.d.ts.map +1 -0
- package/dist/composables/useSvedaChat.d.ts +264 -0
- package/dist/composables/useSvedaChat.d.ts.map +1 -0
- package/dist/composables/useSvedaChatLayout.d.ts +39 -0
- package/dist/composables/useSvedaChatLayout.d.ts.map +1 -0
- package/dist/composables/useSvedaChatPage.d.ts +309 -0
- package/dist/composables/useSvedaChatPage.d.ts.map +1 -0
- package/dist/composables/useSvedaContextWindow.d.ts +10 -0
- package/dist/composables/useSvedaContextWindow.d.ts.map +1 -0
- package/dist/composables/useSvedaDocuments.d.ts +20 -0
- package/dist/composables/useSvedaDocuments.d.ts.map +1 -0
- package/dist/composables/useSvedaMaxStepsContinue.d.ts +12 -0
- package/dist/composables/useSvedaMaxStepsContinue.d.ts.map +1 -0
- package/dist/composables/useSvedaMessaging.d.ts +55 -0
- package/dist/composables/useSvedaMessaging.d.ts.map +1 -0
- package/dist/composables/useSvedaModel.d.ts +16 -0
- package/dist/composables/useSvedaModel.d.ts.map +1 -0
- package/dist/composables/useSvedaPrompts.d.ts +18 -0
- package/dist/composables/useSvedaPrompts.d.ts.map +1 -0
- package/dist/composables/useSvedaReadable.d.ts +3 -0
- package/dist/composables/useSvedaReadable.d.ts.map +1 -0
- package/dist/composables/useSvedaScroll.d.ts +19 -0
- package/dist/composables/useSvedaScroll.d.ts.map +1 -0
- package/dist/composables/useSvedaShell.d.ts +29 -0
- package/dist/composables/useSvedaShell.d.ts.map +1 -0
- package/dist/composables/useSvedaStreaming.d.ts +46 -0
- package/dist/composables/useSvedaStreaming.d.ts.map +1 -0
- package/dist/composables/useSvedaTool.d.ts +4 -0
- package/dist/composables/useSvedaTool.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +18 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.d.ts.map +1 -0
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6612 -0
- package/dist/launcherIcons.d.ts +5 -0
- package/dist/launcherIcons.d.ts.map +1 -0
- package/dist/lib/assistantMessage.d.ts +89 -0
- package/dist/lib/assistantMessage.d.ts.map +1 -0
- package/dist/lib/chatHistoryMerge.d.ts +20 -0
- package/dist/lib/chatHistoryMerge.d.ts.map +1 -0
- package/dist/lib/chatI18nKeys.d.ts +2 -0
- package/dist/lib/chatI18nKeys.d.ts.map +1 -0
- package/dist/lib/chatMessageVisibility.d.ts +4 -0
- package/dist/lib/chatMessageVisibility.d.ts.map +1 -0
- package/dist/lib/chatTabs.d.ts +9 -0
- package/dist/lib/chatTabs.d.ts.map +1 -0
- package/dist/lib/chatTitle.d.ts +3 -0
- package/dist/lib/chatTitle.d.ts.map +1 -0
- package/dist/lib/chatUiStorage.d.ts +4 -0
- package/dist/lib/chatUiStorage.d.ts.map +1 -0
- package/dist/lib/finalizeMessages.d.ts +21 -0
- package/dist/lib/finalizeMessages.d.ts.map +1 -0
- package/dist/lib/markdown.d.ts +8 -0
- package/dist/lib/markdown.d.ts.map +1 -0
- package/dist/lib/modelLabels.d.ts +3 -0
- package/dist/lib/modelLabels.d.ts.map +1 -0
- package/dist/lib/pendingStatusRotation.d.ts +3 -0
- package/dist/lib/pendingStatusRotation.d.ts.map +1 -0
- package/dist/lib/useAnimatedText.d.ts +8 -0
- package/dist/lib/useAnimatedText.d.ts.map +1 -0
- package/dist/lib/userMessage.d.ts +17 -0
- package/dist/lib/userMessage.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/plugin.d.ts +64 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/styles.css +5 -0
- package/dist/ui/alert-dialog/AlertDialog.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialog.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogAction.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogCancel.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
- package/dist/ui/alert-dialog/AlertDialogContent.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogDescription.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/ui/alert-dialog/AlertDialogFooter.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/ui/alert-dialog/AlertDialogHeader.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/ui/alert-dialog/AlertDialogTitle.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +14 -0
- package/dist/ui/alert-dialog/AlertDialogTrigger.vue.d.ts.map +1 -0
- package/dist/ui/alert-dialog/index.d.ts +10 -0
- package/dist/ui/alert-dialog/index.d.ts.map +1 -0
- package/dist/ui/badge/Badge.vue.d.ts +19 -0
- package/dist/ui/badge/Badge.vue.d.ts.map +1 -0
- package/dist/ui/badge/index.d.ts +7 -0
- package/dist/ui/badge/index.d.ts.map +1 -0
- package/dist/ui/button/Button.vue.d.ts +23 -0
- package/dist/ui/button/Button.vue.d.ts.map +1 -0
- package/dist/ui/button/index.d.ts +9 -0
- package/dist/ui/button/index.d.ts.map +1 -0
- package/dist/ui/card/Card.vue.d.ts +17 -0
- package/dist/ui/card/Card.vue.d.ts.map +1 -0
- package/dist/ui/card/CardContent.vue.d.ts +17 -0
- package/dist/ui/card/CardContent.vue.d.ts.map +1 -0
- package/dist/ui/card/CardDescription.vue.d.ts +17 -0
- package/dist/ui/card/CardDescription.vue.d.ts.map +1 -0
- package/dist/ui/card/CardFooter.vue.d.ts +17 -0
- package/dist/ui/card/CardFooter.vue.d.ts.map +1 -0
- package/dist/ui/card/CardHeader.vue.d.ts +17 -0
- package/dist/ui/card/CardHeader.vue.d.ts.map +1 -0
- package/dist/ui/card/CardTitle.vue.d.ts +17 -0
- package/dist/ui/card/CardTitle.vue.d.ts.map +1 -0
- package/dist/ui/card/index.d.ts +7 -0
- package/dist/ui/card/index.d.ts.map +1 -0
- package/dist/ui/checkbox/Checkbox.vue.d.ts +30 -0
- package/dist/ui/checkbox/Checkbox.vue.d.ts.map +1 -0
- package/dist/ui/checkbox/index.d.ts +2 -0
- package/dist/ui/checkbox/index.d.ts.map +1 -0
- package/dist/ui/dialog/Dialog.vue.d.ts +18 -0
- package/dist/ui/dialog/Dialog.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogClose.vue.d.ts +14 -0
- package/dist/ui/dialog/DialogClose.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogContent.vue.d.ts +32 -0
- package/dist/ui/dialog/DialogContent.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/ui/dialog/DialogDescription.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/ui/dialog/DialogFooter.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/ui/dialog/DialogHeader.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogScrollContent.vue.d.ts +32 -0
- package/dist/ui/dialog/DialogScrollContent.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/ui/dialog/DialogTitle.vue.d.ts.map +1 -0
- package/dist/ui/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist/ui/dialog/DialogTrigger.vue.d.ts.map +1 -0
- package/dist/ui/dialog/index.d.ts +10 -0
- package/dist/ui/dialog/index.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenu.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenu.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +24 -0
- package/dist/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist/ui/dropdown-menu/DropdownMenuContent.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +14 -0
- package/dist/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +19 -0
- package/dist/ui/dropdown-menu/DropdownMenuItem.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +19 -0
- package/dist/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +22 -0
- package/dist/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
- package/dist/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +17 -0
- package/dist/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenuSub.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +34 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +18 -0
- package/dist/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
- package/dist/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts.map +1 -0
- package/dist/ui/dropdown-menu/index.d.ts +16 -0
- package/dist/ui/dropdown-menu/index.d.ts.map +1 -0
- package/dist/ui/input/Input.vue.d.ts +13 -0
- package/dist/ui/input/Input.vue.d.ts.map +1 -0
- package/dist/ui/input/index.d.ts +2 -0
- package/dist/ui/input/index.d.ts.map +1 -0
- package/dist/ui/label/Label.vue.d.ts +18 -0
- package/dist/ui/label/Label.vue.d.ts.map +1 -0
- package/dist/ui/label/index.d.ts +2 -0
- package/dist/ui/label/index.d.ts.map +1 -0
- package/dist/ui/responsive-dialog/ResponsiveDialog.vue.d.ts +32 -0
- package/dist/ui/responsive-dialog/ResponsiveDialog.vue.d.ts.map +1 -0
- package/dist/ui/responsive-dialog/index.d.ts +2 -0
- package/dist/ui/responsive-dialog/index.d.ts.map +1 -0
- package/dist/ui/scroll-area/ScrollArea.vue.d.ts +18 -0
- package/dist/ui/scroll-area/ScrollArea.vue.d.ts.map +1 -0
- package/dist/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
- package/dist/ui/scroll-area/ScrollBar.vue.d.ts.map +1 -0
- package/dist/ui/scroll-area/index.d.ts +3 -0
- package/dist/ui/scroll-area/index.d.ts.map +1 -0
- package/dist/ui/select/Select.vue.d.ts +21 -0
- package/dist/ui/select/Select.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectContent.vue.d.ts +28 -0
- package/dist/ui/select/SelectContent.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectGroup.vue.d.ts +18 -0
- package/dist/ui/select/SelectGroup.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectItem.vue.d.ts +18 -0
- package/dist/ui/select/SelectItem.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectItemText.vue.d.ts +14 -0
- package/dist/ui/select/SelectItemText.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectLabel.vue.d.ts +18 -0
- package/dist/ui/select/SelectLabel.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/ui/select/SelectScrollDownButton.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/ui/select/SelectScrollUpButton.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectSeparator.vue.d.ts +8 -0
- package/dist/ui/select/SelectSeparator.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectTrigger.vue.d.ts +18 -0
- package/dist/ui/select/SelectTrigger.vue.d.ts.map +1 -0
- package/dist/ui/select/SelectValue.vue.d.ts +14 -0
- package/dist/ui/select/SelectValue.vue.d.ts.map +1 -0
- package/dist/ui/select/index.d.ts +12 -0
- package/dist/ui/select/index.d.ts.map +1 -0
- package/dist/ui/sheet/Sheet.vue.d.ts +18 -0
- package/dist/ui/sheet/Sheet.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetClose.vue.d.ts +14 -0
- package/dist/ui/sheet/SheetClose.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetContent.vue.d.ts +34 -0
- package/dist/ui/sheet/SheetContent.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/ui/sheet/SheetDescription.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/ui/sheet/SheetFooter.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/ui/sheet/SheetHeader.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/ui/sheet/SheetTitle.vue.d.ts.map +1 -0
- package/dist/ui/sheet/SheetTrigger.vue.d.ts +14 -0
- package/dist/ui/sheet/SheetTrigger.vue.d.ts.map +1 -0
- package/dist/ui/sheet/index.d.ts +14 -0
- package/dist/ui/sheet/index.d.ts.map +1 -0
- package/dist/ui/switch/Switch.vue.d.ts +23 -0
- package/dist/ui/switch/Switch.vue.d.ts.map +1 -0
- package/dist/ui/switch/index.d.ts +2 -0
- package/dist/ui/switch/index.d.ts.map +1 -0
- package/dist/ui/textarea/Textarea.vue.d.ts +13 -0
- package/dist/ui/textarea/Textarea.vue.d.ts.map +1 -0
- package/dist/ui/textarea/index.d.ts +2 -0
- package/dist/ui/textarea/index.d.ts.map +1 -0
- package/dist/ui/toast/Toast.vue.d.ts +96 -0
- package/dist/ui/toast/Toast.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastAction.vue.d.ts +18 -0
- package/dist/ui/toast/ToastAction.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastClose.vue.d.ts +8 -0
- package/dist/ui/toast/ToastClose.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastDescription.vue.d.ts +18 -0
- package/dist/ui/toast/ToastDescription.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastProvider.vue.d.ts +14 -0
- package/dist/ui/toast/ToastProvider.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastTitle.vue.d.ts +18 -0
- package/dist/ui/toast/ToastTitle.vue.d.ts.map +1 -0
- package/dist/ui/toast/ToastViewport.vue.d.ts +8 -0
- package/dist/ui/toast/ToastViewport.vue.d.ts.map +1 -0
- package/dist/ui/toast/Toaster.vue.d.ts +3 -0
- package/dist/ui/toast/Toaster.vue.d.ts.map +1 -0
- package/dist/ui/toast/index.d.ts +23 -0
- package/dist/ui/toast/index.d.ts.map +1 -0
- package/dist/ui/toast/use-toast.d.ts +23 -0
- package/dist/ui/toast/use-toast.d.ts.map +1 -0
- package/dist/ui/tooltip/Tooltip.vue.d.ts +18 -0
- package/dist/ui/tooltip/Tooltip.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/TooltipContent.vue.d.ts +26 -0
- package/dist/ui/tooltip/TooltipContent.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/TooltipProvider.vue.d.ts +14 -0
- package/dist/ui/tooltip/TooltipProvider.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/ui/tooltip/TooltipTrigger.vue.d.ts.map +1 -0
- package/dist/ui/tooltip/index.d.ts +5 -0
- package/dist/ui/tooltip/index.d.ts.map +1 -0
- package/dist/ui/utils.d.ts +2 -0
- package/dist/ui/utils.d.ts.map +1 -0
- package/dist/vue.css +1 -0
- package/package.json +64 -0
- package/src/appearance.ts +568 -0
- package/src/components/chat/AnimatedStreamBlock.vue +94 -0
- package/src/components/chat/ChatHistoryDropdown.vue +226 -0
- package/src/components/chat/ChatInput.vue +571 -0
- package/src/components/chat/ChatMessageActivityBlock.vue +447 -0
- package/src/components/chat/ChatMessageItem.vue +357 -0
- package/src/components/chat/ChatMessageList.vue +178 -0
- package/src/components/chat/ChatPendingIndicator.vue +163 -0
- package/src/components/chat/ReasoningStream.vue +112 -0
- package/src/components/chat/index.ts +8 -0
- package/src/components/shell/SvedaAgentCompletedNotice.vue +25 -0
- package/src/components/shell/SvedaAgentTasksPanel.vue +146 -0
- package/src/components/shell/SvedaChat.vue +514 -0
- package/src/components/shell/SvedaContextUsageBar.vue +33 -0
- package/src/components/shell/SvedaHistorySheet.vue +52 -0
- package/src/components/shell/SvedaHistorySidebar.vue +41 -0
- package/src/components/shell/SvedaInputSection.vue +53 -0
- package/src/components/shell/SvedaLandingView.vue +93 -0
- package/src/components/shell/SvedaMaxStepsNotice.vue +33 -0
- package/src/components/shell/SvedaMinimizedTrigger.vue +43 -0
- package/src/components/shell/SvedaModelControls.vue +47 -0
- package/src/components/shell/SvedaModelSelect.vue +32 -0
- package/src/components/shell/SvedaQuickPrompts.vue +44 -0
- package/src/components/shell/SvedaResizeHandles.vue +31 -0
- package/src/components/shell/SvedaTabs.vue +123 -0
- package/src/components/shell/SvedaToolbar.vue +171 -0
- package/src/composables/useSvedaAgentTasks.ts +93 -0
- package/src/composables/useSvedaBootstrap.ts +36 -0
- package/src/composables/useSvedaChat.ts +593 -0
- package/src/composables/useSvedaChatLayout.ts +539 -0
- package/src/composables/useSvedaChatPage.ts +339 -0
- package/src/composables/useSvedaContextWindow.ts +31 -0
- package/src/composables/useSvedaDocuments.ts +115 -0
- package/src/composables/useSvedaMaxStepsContinue.ts +68 -0
- package/src/composables/useSvedaMessaging.ts +99 -0
- package/src/composables/useSvedaModel.ts +85 -0
- package/src/composables/useSvedaPrompts.ts +59 -0
- package/src/composables/useSvedaReadable.ts +33 -0
- package/src/composables/useSvedaScroll.ts +93 -0
- package/src/composables/useSvedaShell.ts +91 -0
- package/src/composables/useSvedaStreaming.ts +408 -0
- package/src/composables/useSvedaTool.ts +18 -0
- package/src/i18n/index.ts +72 -0
- package/src/i18n/locales/en.ts +58 -0
- package/src/i18n/locales/ru.ts +59 -0
- package/src/index.ts +141 -0
- package/src/launcherIcons.ts +39 -0
- package/src/lib/assistantMessage.ts +437 -0
- package/src/lib/chatHistoryMerge.ts +93 -0
- package/src/lib/chatI18nKeys.ts +62 -0
- package/src/lib/chatMessageVisibility.ts +50 -0
- package/src/lib/chatTabs.ts +54 -0
- package/src/lib/chatTitle.ts +30 -0
- package/src/lib/chatUiStorage.ts +33 -0
- package/src/lib/finalizeMessages.ts +81 -0
- package/src/lib/markdown.ts +90 -0
- package/src/lib/modelLabels.ts +24 -0
- package/src/lib/pendingStatusRotation.ts +26 -0
- package/src/lib/shims-vue.d.ts +6 -0
- package/src/lib/useAnimatedText.ts +78 -0
- package/src/lib/userMessage.ts +55 -0
- package/src/lib/utils.ts +6 -0
- package/src/plugin.ts +164 -0
- package/src/styles.css +5 -0
- package/src/theme.css +95 -0
- package/src/theme.test.mjs +80 -0
- package/src/ui/alert-dialog/AlertDialog.vue +14 -0
- package/src/ui/alert-dialog/AlertDialogAction.vue +17 -0
- package/src/ui/alert-dialog/AlertDialogCancel.vue +24 -0
- package/src/ui/alert-dialog/AlertDialogContent.vue +39 -0
- package/src/ui/alert-dialog/AlertDialogDescription.vue +22 -0
- package/src/ui/alert-dialog/AlertDialogFooter.vue +21 -0
- package/src/ui/alert-dialog/AlertDialogHeader.vue +16 -0
- package/src/ui/alert-dialog/AlertDialogTitle.vue +19 -0
- package/src/ui/alert-dialog/AlertDialogTrigger.vue +11 -0
- package/src/ui/alert-dialog/index.ts +9 -0
- package/src/ui/badge/Badge.vue +16 -0
- package/src/ui/badge/index.ts +27 -0
- package/src/ui/button/Button.vue +56 -0
- package/src/ui/button/index.ts +50 -0
- package/src/ui/card/Card.vue +14 -0
- package/src/ui/card/CardContent.vue +14 -0
- package/src/ui/card/CardDescription.vue +14 -0
- package/src/ui/card/CardFooter.vue +14 -0
- package/src/ui/card/CardHeader.vue +14 -0
- package/src/ui/card/CardTitle.vue +14 -0
- package/src/ui/card/index.ts +6 -0
- package/src/ui/checkbox/Checkbox.vue +41 -0
- package/src/ui/checkbox/index.ts +1 -0
- package/src/ui/dialog/Dialog.vue +14 -0
- package/src/ui/dialog/DialogClose.vue +11 -0
- package/src/ui/dialog/DialogContent.vue +50 -0
- package/src/ui/dialog/DialogDescription.vue +24 -0
- package/src/ui/dialog/DialogFooter.vue +19 -0
- package/src/ui/dialog/DialogHeader.vue +16 -0
- package/src/ui/dialog/DialogScrollContent.vue +59 -0
- package/src/ui/dialog/DialogTitle.vue +29 -0
- package/src/ui/dialog/DialogTrigger.vue +11 -0
- package/src/ui/dialog/index.ts +9 -0
- package/src/ui/dropdown-menu/DropdownMenu.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +42 -0
- package/src/ui/dropdown-menu/DropdownMenuContent.vue +40 -0
- package/src/ui/dropdown-menu/DropdownMenuGroup.vue +11 -0
- package/src/ui/dropdown-menu/DropdownMenuItem.vue +30 -0
- package/src/ui/dropdown-menu/DropdownMenuLabel.vue +21 -0
- package/src/ui/dropdown-menu/DropdownMenuRadioGroup.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuRadioItem.vue +43 -0
- package/src/ui/dropdown-menu/DropdownMenuSeparator.vue +21 -0
- package/src/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuSub.vue +14 -0
- package/src/ui/dropdown-menu/DropdownMenuSubContent.vue +30 -0
- package/src/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/src/ui/dropdown-menu/DropdownMenuTrigger.vue +13 -0
- package/src/ui/dropdown-menu/index.ts +16 -0
- package/src/ui/input/Input.vue +32 -0
- package/src/ui/input/index.ts +1 -0
- package/src/ui/label/Label.vue +22 -0
- package/src/ui/label/index.ts +1 -0
- package/src/ui/responsive-dialog/ResponsiveDialog.vue +55 -0
- package/src/ui/responsive-dialog/index.ts +1 -0
- package/src/ui/scroll-area/ScrollArea.vue +29 -0
- package/src/ui/scroll-area/ScrollBar.vue +30 -0
- package/src/ui/scroll-area/index.ts +2 -0
- package/src/ui/select/Select.vue +15 -0
- package/src/ui/select/SelectContent.vue +53 -0
- package/src/ui/select/SelectGroup.vue +19 -0
- package/src/ui/select/SelectItem.vue +44 -0
- package/src/ui/select/SelectItemText.vue +11 -0
- package/src/ui/select/SelectLabel.vue +13 -0
- package/src/ui/select/SelectScrollDownButton.vue +24 -0
- package/src/ui/select/SelectScrollUpButton.vue +24 -0
- package/src/ui/select/SelectSeparator.vue +17 -0
- package/src/ui/select/SelectTrigger.vue +31 -0
- package/src/ui/select/SelectValue.vue +11 -0
- package/src/ui/select/index.ts +11 -0
- package/src/ui/sheet/Sheet.vue +14 -0
- package/src/ui/sheet/SheetClose.vue +11 -0
- package/src/ui/sheet/SheetContent.vue +53 -0
- package/src/ui/sheet/SheetDescription.vue +19 -0
- package/src/ui/sheet/SheetFooter.vue +12 -0
- package/src/ui/sheet/SheetHeader.vue +12 -0
- package/src/ui/sheet/SheetTitle.vue +19 -0
- package/src/ui/sheet/SheetTrigger.vue +11 -0
- package/src/ui/sheet/index.ts +29 -0
- package/src/ui/switch/Switch.vue +55 -0
- package/src/ui/switch/index.ts +1 -0
- package/src/ui/textarea/Textarea.vue +24 -0
- package/src/ui/textarea/index.ts +1 -0
- package/src/ui/toast/Toast.vue +28 -0
- package/src/ui/toast/ToastAction.vue +19 -0
- package/src/ui/toast/ToastClose.vue +22 -0
- package/src/ui/toast/ToastDescription.vue +19 -0
- package/src/ui/toast/ToastProvider.vue +11 -0
- package/src/ui/toast/ToastTitle.vue +19 -0
- package/src/ui/toast/ToastViewport.vue +17 -0
- package/src/ui/toast/Toaster.vue +48 -0
- package/src/ui/toast/index.ts +39 -0
- package/src/ui/toast/use-toast.ts +109 -0
- package/src/ui/tooltip/Tooltip.vue +14 -0
- package/src/ui/tooltip/TooltipContent.vue +39 -0
- package/src/ui/tooltip/TooltipProvider.vue +11 -0
- package/src/ui/tooltip/TooltipTrigger.vue +11 -0
- package/src/ui/tooltip/index.ts +4 -0
- package/src/ui/utils.ts +1 -0
package/src/plugin.ts
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { SvedaClient } from '@sveda-ai/core';
|
|
2
|
+
import { inject, type App, type InjectionKey } from 'vue';
|
|
3
|
+
import { applySvedaAppearance, type SvedaAppearance } from './appearance';
|
|
4
|
+
import {
|
|
5
|
+
createSvedaI18n,
|
|
6
|
+
installSvedaI18n,
|
|
7
|
+
type SvedaI18n,
|
|
8
|
+
type SvedaMessages,
|
|
9
|
+
} from './i18n/index';
|
|
10
|
+
import en from './i18n/locales/en';
|
|
11
|
+
import ru from './i18n/locales/ru';
|
|
12
|
+
import { chatComponentI18nKeys } from './lib/chatI18nKeys';
|
|
13
|
+
|
|
14
|
+
export interface SvedaModelOption {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
supportsThinking?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface SvedaQuickPrompt {
|
|
21
|
+
label: string;
|
|
22
|
+
prompt: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SvedaBrand {
|
|
26
|
+
name?: string;
|
|
27
|
+
logoUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface SvedaPluginOptions {
|
|
31
|
+
endpoints: {
|
|
32
|
+
stream: string;
|
|
33
|
+
message?: string;
|
|
34
|
+
histories?: string;
|
|
35
|
+
documentsExtract?: string;
|
|
36
|
+
};
|
|
37
|
+
protocolMode?: 'sveda' | 'vercel';
|
|
38
|
+
headers?: Record<string, string> | (() => Record<string, string>);
|
|
39
|
+
credentials?: RequestCredentials;
|
|
40
|
+
locale?: string;
|
|
41
|
+
messages?: Record<string, Record<string, string>>;
|
|
42
|
+
brand?: SvedaBrand;
|
|
43
|
+
models?: SvedaModelOption[];
|
|
44
|
+
quickPrompts?: SvedaQuickPrompt[];
|
|
45
|
+
appearance?: SvedaAppearance | null;
|
|
46
|
+
theme?: 'light' | 'dark';
|
|
47
|
+
hostEmbed?: boolean;
|
|
48
|
+
hideLauncher?: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface SvedaConfig {
|
|
52
|
+
brand: {
|
|
53
|
+
name: string;
|
|
54
|
+
logoUrl: string | null;
|
|
55
|
+
};
|
|
56
|
+
models: SvedaModelOption[];
|
|
57
|
+
quickPrompts: SvedaQuickPrompt[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface SvedaPlugin {
|
|
61
|
+
client: SvedaClient;
|
|
62
|
+
i18n: SvedaI18n;
|
|
63
|
+
config: SvedaConfig;
|
|
64
|
+
install(app: App): void;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const SvedaClientKey: InjectionKey<SvedaClient> = Symbol('sveda-client');
|
|
68
|
+
|
|
69
|
+
export const SvedaConfigKey: InjectionKey<SvedaConfig> = Symbol('sveda-config');
|
|
70
|
+
|
|
71
|
+
export const SvedaHostEmbedKey: InjectionKey<boolean> = Symbol('sveda-host-embed');
|
|
72
|
+
|
|
73
|
+
export const SvedaFillHostKey: InjectionKey<boolean> = Symbol('sveda-fill-host');
|
|
74
|
+
|
|
75
|
+
export const SvedaHideLauncherKey: InjectionKey<boolean> = Symbol('sveda-hide-launcher');
|
|
76
|
+
|
|
77
|
+
const DEFAULT_CONFIG: SvedaConfig = {
|
|
78
|
+
brand: { name: 'Sveda', logoUrl: null },
|
|
79
|
+
models: [],
|
|
80
|
+
quickPrompts: [],
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export function createSveda(options: SvedaPluginOptions): SvedaPlugin {
|
|
84
|
+
const client = new SvedaClient({
|
|
85
|
+
endpoints: options.endpoints,
|
|
86
|
+
protocolMode: options.protocolMode,
|
|
87
|
+
headers: options.headers,
|
|
88
|
+
credentials: options.credentials,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
const messages: Record<string, SvedaMessages> = {};
|
|
92
|
+
const mergeMessages = (locale: string, localeMessages: SvedaMessages) => {
|
|
93
|
+
messages[locale] = { ...(messages[locale] ?? {}), ...localeMessages };
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
for (const [locale, localeMessages] of Object.entries({ en, ru })) {
|
|
97
|
+
mergeMessages(locale, localeMessages);
|
|
98
|
+
}
|
|
99
|
+
for (const [locale, localeMessages] of Object.entries(chatComponentI18nKeys)) {
|
|
100
|
+
mergeMessages(locale, localeMessages);
|
|
101
|
+
}
|
|
102
|
+
for (const [locale, localeMessages] of Object.entries(options.messages ?? {})) {
|
|
103
|
+
mergeMessages(locale, localeMessages);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const i18n = createSvedaI18n({
|
|
107
|
+
locale: options.locale ?? 'en',
|
|
108
|
+
messages,
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
const config: SvedaConfig = {
|
|
112
|
+
brand: {
|
|
113
|
+
name: options.brand?.name ?? 'Sveda',
|
|
114
|
+
logoUrl: options.brand?.logoUrl ?? null,
|
|
115
|
+
},
|
|
116
|
+
models: options.models ?? [],
|
|
117
|
+
quickPrompts: options.quickPrompts ?? [],
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
if (options.appearance !== undefined || options.theme !== undefined) {
|
|
121
|
+
if (options.appearance === null && options.theme === undefined) {
|
|
122
|
+
applySvedaAppearance(null);
|
|
123
|
+
} else {
|
|
124
|
+
applySvedaAppearance({
|
|
125
|
+
...(options.appearance && typeof options.appearance === 'object' ? options.appearance : {}),
|
|
126
|
+
...(options.theme ? { theme: options.theme } : {}),
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
client,
|
|
133
|
+
i18n,
|
|
134
|
+
config,
|
|
135
|
+
install(app: App) {
|
|
136
|
+
app.provide(SvedaClientKey, client);
|
|
137
|
+
app.provide(SvedaConfigKey, config);
|
|
138
|
+
app.provide(SvedaHostEmbedKey, Boolean(options.hostEmbed));
|
|
139
|
+
app.provide(SvedaHideLauncherKey, Boolean(options.hideLauncher));
|
|
140
|
+
installSvedaI18n(app, i18n);
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function useSvedaClient(): SvedaClient {
|
|
146
|
+
const client = inject(SvedaClientKey, null);
|
|
147
|
+
if (!client) {
|
|
148
|
+
throw new Error('[sveda] Sveda plugin is not installed. Call app.use(createSveda(...)) first.');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return client;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function useSvedaConfig(): SvedaConfig {
|
|
155
|
+
return inject(SvedaConfigKey, DEFAULT_CONFIG);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const svedaPlugin = {
|
|
159
|
+
install(app: App, options: SvedaPluginOptions) {
|
|
160
|
+
createSveda(options).install(app);
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export default svedaPlugin;
|
package/src/styles.css
ADDED
package/src/theme.css
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
:where(.sveda-chat, sveda-chat) {
|
|
2
|
+
--sveda-background: 210 20% 98%;
|
|
3
|
+
--sveda-foreground: 0 0% 3.9%;
|
|
4
|
+
--sveda-card: 0 0% 100%;
|
|
5
|
+
--sveda-card-foreground: 0 0% 3.9%;
|
|
6
|
+
--sveda-popover: 0 0% 100%;
|
|
7
|
+
--sveda-popover-foreground: 0 0% 3.9%;
|
|
8
|
+
--sveda-primary: 0 0% 9%;
|
|
9
|
+
--sveda-primary-foreground: 0 0% 98%;
|
|
10
|
+
--sveda-secondary: 0 0% 92.1%;
|
|
11
|
+
--sveda-secondary-foreground: 0 0% 9%;
|
|
12
|
+
--sveda-muted: 0 0% 96.1%;
|
|
13
|
+
--sveda-muted-foreground: 0 0% 45.1%;
|
|
14
|
+
--sveda-accent: 0 0% 96.1%;
|
|
15
|
+
--sveda-accent-foreground: 0 0% 9%;
|
|
16
|
+
--sveda-destructive: 0 84.2% 60.2%;
|
|
17
|
+
--sveda-destructive-foreground: 0 0% 98%;
|
|
18
|
+
--sveda-border: 220 13% 91%;
|
|
19
|
+
--sveda-input: 220 14% 96%;
|
|
20
|
+
--sveda-ring: 0 0% 3.9%;
|
|
21
|
+
--sveda-radius: 0;
|
|
22
|
+
--sveda-brand: 0 0% 9%;
|
|
23
|
+
--sveda-brand-foreground: 0 0% 98%;
|
|
24
|
+
--sveda-surface: color-mix(in hsl, hsl(var(--sveda-background)) 95%, hsl(0 0% 0%));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sveda-chat,
|
|
28
|
+
sveda-chat {
|
|
29
|
+
--color-background: hsl(var(--sveda-background));
|
|
30
|
+
--color-foreground: hsl(var(--sveda-foreground));
|
|
31
|
+
--color-card: hsl(var(--sveda-card));
|
|
32
|
+
--color-card-foreground: hsl(var(--sveda-card-foreground));
|
|
33
|
+
--color-popover: hsl(var(--sveda-popover));
|
|
34
|
+
--color-popover-foreground: hsl(var(--sveda-popover-foreground));
|
|
35
|
+
--color-primary: hsl(var(--sveda-primary));
|
|
36
|
+
--color-primary-foreground: hsl(var(--sveda-primary-foreground));
|
|
37
|
+
--color-secondary: hsl(var(--sveda-secondary));
|
|
38
|
+
--color-secondary-foreground: hsl(var(--sveda-secondary-foreground));
|
|
39
|
+
--color-muted: hsl(var(--sveda-muted));
|
|
40
|
+
--color-muted-foreground: hsl(var(--sveda-muted-foreground));
|
|
41
|
+
--color-accent: hsl(var(--sveda-accent));
|
|
42
|
+
--color-accent-foreground: hsl(var(--sveda-accent-foreground));
|
|
43
|
+
--color-destructive: hsl(var(--sveda-destructive));
|
|
44
|
+
--color-destructive-foreground: hsl(var(--sveda-destructive-foreground));
|
|
45
|
+
--color-border: hsl(var(--sveda-border));
|
|
46
|
+
--color-input: hsl(var(--sveda-input));
|
|
47
|
+
--color-ring: hsl(var(--sveda-ring));
|
|
48
|
+
--color-brand-primary-purple: hsl(var(--sveda-brand));
|
|
49
|
+
--color-brand-primary-purple-foreground: hsl(var(--sveda-brand-foreground));
|
|
50
|
+
--radius: var(--sveda-radius);
|
|
51
|
+
--radius-xs: var(--sveda-radius);
|
|
52
|
+
--radius-sm: var(--sveda-radius);
|
|
53
|
+
--radius-md: var(--sveda-radius);
|
|
54
|
+
--radius-lg: var(--sveda-radius);
|
|
55
|
+
--radius-xl: var(--sveda-radius);
|
|
56
|
+
--radius-2xl: var(--sveda-radius);
|
|
57
|
+
--radius-3xl: var(--sveda-radius);
|
|
58
|
+
--radius-4xl: var(--sveda-radius);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.dark .sveda-chat, .dark sveda-chat, .sveda-chat.dark, sveda-chat.dark) {
|
|
62
|
+
--sveda-background: 222.2 47.4% 11.2%;
|
|
63
|
+
--sveda-foreground: 210 40% 98%;
|
|
64
|
+
--sveda-card: 222.2 47.4% 14%;
|
|
65
|
+
--sveda-card-foreground: 210 40% 98%;
|
|
66
|
+
--sveda-popover: 222.2 47.4% 14%;
|
|
67
|
+
--sveda-popover-foreground: 210 40% 98%;
|
|
68
|
+
--sveda-primary: 210 40% 98%;
|
|
69
|
+
--sveda-primary-foreground: 222.2 47.4% 11.2%;
|
|
70
|
+
--sveda-secondary: 217.2 32.6% 17.5%;
|
|
71
|
+
--sveda-secondary-foreground: 210 40% 98%;
|
|
72
|
+
--sveda-muted: 217.2 32.6% 17.5%;
|
|
73
|
+
--sveda-muted-foreground: 215 20.2% 65.1%;
|
|
74
|
+
--sveda-accent: 217.2 32.6% 17.5%;
|
|
75
|
+
--sveda-accent-foreground: 210 40% 98%;
|
|
76
|
+
--sveda-destructive: 0 62.8% 30.6%;
|
|
77
|
+
--sveda-destructive-foreground: 210 40% 98%;
|
|
78
|
+
--sveda-border: 217.2 32.6% 17.5%;
|
|
79
|
+
--sveda-input: 217.2 32.6% 17.5%;
|
|
80
|
+
--sveda-ring: 212.7 26.8% 83.9%;
|
|
81
|
+
--sveda-brand: 210 40% 98%;
|
|
82
|
+
--sveda-brand-foreground: 222.2 47.4% 11.2%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sveda-chat-surface {
|
|
86
|
+
background-color: var(
|
|
87
|
+
--sveda-surface,
|
|
88
|
+
color-mix(in hsl, hsl(var(--sveda-background)) 95%, hsl(0 0% 0%))
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
body.sveda-chat-immersive-mode {
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
overscroll-behavior: none;
|
|
95
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { dirname, join } from 'node:path';
|
|
4
|
+
import { test } from 'node:test';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
|
|
7
|
+
const dir = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const theme = readFileSync(join(dir, 'theme.css'), 'utf8');
|
|
9
|
+
const chat = readFileSync(join(dir, 'components/shell/SvedaChat.vue'), 'utf8');
|
|
10
|
+
const appearance = readFileSync(join(dir, 'appearance.ts'), 'utf8');
|
|
11
|
+
const trigger = readFileSync(join(dir, 'components/shell/SvedaMinimizedTrigger.vue'), 'utf8');
|
|
12
|
+
const selectContent = readFileSync(join(dir, 'ui/select/SelectContent.vue'), 'utf8');
|
|
13
|
+
const tooltipContent = readFileSync(join(dir, 'ui/tooltip/TooltipContent.vue'), 'utf8');
|
|
14
|
+
const switchUi = readFileSync(join(dir, 'ui/switch/Switch.vue'), 'utf8');
|
|
15
|
+
|
|
16
|
+
test('theme.css exposes zero-specificity public sveda tokens without cycling host variables', () => {
|
|
17
|
+
assert.match(theme, /:where\(\.sveda-chat, sveda-chat\)/);
|
|
18
|
+
assert.match(theme, /--sveda-background:/);
|
|
19
|
+
assert.match(theme, /--sveda-foreground:/);
|
|
20
|
+
assert.match(theme, /--sveda-brand:/);
|
|
21
|
+
assert.match(theme, /--sveda-radius:\s*0/);
|
|
22
|
+
assert.match(theme, /\.sveda-chat-surface/);
|
|
23
|
+
assert.match(theme, /body\.sveda-chat-immersive-mode/);
|
|
24
|
+
assert.doesNotMatch(theme, /--background:\s*var\(--sveda-background\)/);
|
|
25
|
+
assert.doesNotMatch(theme, /--foreground:\s*var\(--sveda-foreground\)/);
|
|
26
|
+
assert.match(chat, /'sveda-chat'/);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test('portaled select and tooltip keep sveda tokens and popover backgrounds', () => {
|
|
30
|
+
assert.match(selectContent, /sveda-chat/);
|
|
31
|
+
assert.match(selectContent, /bg-popover/);
|
|
32
|
+
assert.doesNotMatch(selectContent, /bg-input text-popover-foreground/);
|
|
33
|
+
assert.match(tooltipContent, /sveda-chat/);
|
|
34
|
+
assert.match(tooltipContent, /bg-popover/);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test('appearance helper injects radius and token declarations onto .sveda-chat', () => {
|
|
38
|
+
assert.match(appearance, /SVEDA_APPEARANCE_STYLE_ID = 'sveda-appearance'/);
|
|
39
|
+
assert.match(appearance, /export const applySvedaAppearance/);
|
|
40
|
+
assert.match(appearance, /export const resolveSvedaAppearance/);
|
|
41
|
+
assert.match(appearance, /SVEDA_APPEARANCE_PRESETS/);
|
|
42
|
+
assert.match(appearance, /preset: 'lms'/);
|
|
43
|
+
assert.match(appearance, /preset: 'ocean'/);
|
|
44
|
+
assert.match(appearance, /preset: 'forest'/);
|
|
45
|
+
assert.match(appearance, /preset: 'sunset'/);
|
|
46
|
+
assert.match(appearance, /preset: 'sand'/);
|
|
47
|
+
assert.match(appearance, /'166 72% 32%'/);
|
|
48
|
+
assert.match(appearance, /\.sveda-chat\{/);
|
|
49
|
+
assert.match(appearance, /\.dark \.sveda-chat,\.sveda-chat\.dark/);
|
|
50
|
+
assert.match(appearance, /sanitizeSvedaTheme/);
|
|
51
|
+
assert.match(appearance, /theme === 'dark'/);
|
|
52
|
+
assert.match(appearance, /theme === 'light'/);
|
|
53
|
+
assert.match(appearance, /SVEDA_LAUNCHER_ICON_IDS/);
|
|
54
|
+
assert.match(appearance, /useSvedaLauncher/);
|
|
55
|
+
assert.match(appearance, /sanitizeSvedaLauncher/);
|
|
56
|
+
assert.match(appearance, /sanitizeSvedaLauncherImage/);
|
|
57
|
+
assert.match(appearance, /SVEDA_LAUNCHER_IMAGE_MAX_BYTES/);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test('thinking switch stays a pill with a raised thumb', () => {
|
|
61
|
+
assert.match(switchUi, /rounded-full/);
|
|
62
|
+
assert.match(switchUi, /shadow-inner/);
|
|
63
|
+
assert.match(switchUi, /size === 'sm'/);
|
|
64
|
+
assert.doesNotMatch(switchUi, /rounded-\[var\(--sveda-radius\)\]/);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
test('minimized trigger uses launcher label, icon, and image', () => {
|
|
68
|
+
assert.match(trigger, /svedaLauncherIconComponent/);
|
|
69
|
+
assert.match(chat, /chat.launcherLabel/);
|
|
70
|
+
assert.match(chat, /chat.launcherIcon/);
|
|
71
|
+
assert.match(chat, /chat.launcherImage/);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
test('toast viewport stays inside the chat window', () => {
|
|
75
|
+
const viewport = readFileSync(join(dir, 'ui/toast/ToastViewport.vue'), 'utf8');
|
|
76
|
+
assert.match(viewport, /pointer-events-none/);
|
|
77
|
+
assert.match(viewport, /absolute inset-x-0 bottom-0/);
|
|
78
|
+
assert.match(viewport, /max-h-48/);
|
|
79
|
+
assert.doesNotMatch(viewport, /max-h-screen/);
|
|
80
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { type AlertDialogEmits, type AlertDialogProps, AlertDialogRoot, useForwardPropsEmits } from 'reka-ui'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<AlertDialogProps>()
|
|
5
|
+
const emits = defineEmits<AlertDialogEmits>()
|
|
6
|
+
|
|
7
|
+
const forwarded = useForwardPropsEmits(props, emits)
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<AlertDialogRoot v-bind="forwarded">
|
|
12
|
+
<slot />
|
|
13
|
+
</AlertDialogRoot>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
4
|
+
import { AlertDialogAction, type AlertDialogActionProps } from 'reka-ui'
|
|
5
|
+
import { cn } from '../../lib/utils.js'
|
|
6
|
+
import { buttonVariants } from '../button/index.js'
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AlertDialogActionProps & { class?: HTMLAttributes['class'] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<AlertDialogAction v-bind="delegatedProps" :class="cn(buttonVariants(), props.class)">
|
|
15
|
+
<slot />
|
|
16
|
+
</AlertDialogAction>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
4
|
+
import { AlertDialogCancel, type AlertDialogCancelProps } from 'reka-ui'
|
|
5
|
+
import { cn } from '../../lib/utils.js'
|
|
6
|
+
import { buttonVariants } from '../button/index.js'
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AlertDialogCancelProps & { class?: HTMLAttributes['class'] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<AlertDialogCancel
|
|
15
|
+
v-bind="delegatedProps"
|
|
16
|
+
:class="cn(
|
|
17
|
+
buttonVariants({ variant: 'outline' }),
|
|
18
|
+
'mt-2 main-sm:mt-0',
|
|
19
|
+
props.class,
|
|
20
|
+
)"
|
|
21
|
+
>
|
|
22
|
+
<slot />
|
|
23
|
+
</AlertDialogCancel>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
4
|
+
import {
|
|
5
|
+
AlertDialogContent,
|
|
6
|
+
type AlertDialogContentEmits,
|
|
7
|
+
type AlertDialogContentProps,
|
|
8
|
+
AlertDialogOverlay,
|
|
9
|
+
AlertDialogPortal,
|
|
10
|
+
useForwardPropsEmits,
|
|
11
|
+
} from 'reka-ui'
|
|
12
|
+
import { cn } from '../../lib/utils.js'
|
|
13
|
+
|
|
14
|
+
const props = defineProps<AlertDialogContentProps & { class?: HTMLAttributes['class'] }>()
|
|
15
|
+
const emits = defineEmits<AlertDialogContentEmits>()
|
|
16
|
+
|
|
17
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
18
|
+
|
|
19
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<AlertDialogPortal>
|
|
24
|
+
<AlertDialogOverlay
|
|
25
|
+
class="fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
26
|
+
/>
|
|
27
|
+
<AlertDialogContent
|
|
28
|
+
v-bind="forwarded"
|
|
29
|
+
:class="
|
|
30
|
+
cn(
|
|
31
|
+
'sveda-chat fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-card text-card-foreground p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] main-sm:rounded-[var(--sveda-radius)]',
|
|
32
|
+
props.class,
|
|
33
|
+
)
|
|
34
|
+
"
|
|
35
|
+
>
|
|
36
|
+
<slot />
|
|
37
|
+
</AlertDialogContent>
|
|
38
|
+
</AlertDialogPortal>
|
|
39
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
4
|
+
import {
|
|
5
|
+
AlertDialogDescription,
|
|
6
|
+
type AlertDialogDescriptionProps,
|
|
7
|
+
} from 'reka-ui'
|
|
8
|
+
import { cn } from '../../lib/utils.js'
|
|
9
|
+
|
|
10
|
+
const props = defineProps<AlertDialogDescriptionProps & { class?: HTMLAttributes['class'] }>()
|
|
11
|
+
|
|
12
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<AlertDialogDescription
|
|
17
|
+
v-bind="delegatedProps"
|
|
18
|
+
:class="cn('text-sm text-muted-foreground', props.class)"
|
|
19
|
+
>
|
|
20
|
+
<slot />
|
|
21
|
+
</AlertDialogDescription>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { cn } from '../../lib/utils.js'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
:class="
|
|
13
|
+
cn(
|
|
14
|
+
'flex flex-col-reverse main-sm:flex-row main-sm:justify-end main-sm:gap-x-2',
|
|
15
|
+
props.class,
|
|
16
|
+
)
|
|
17
|
+
"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { cn } from '../../lib/utils.js'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes['class']
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
:class="cn('flex flex-col gap-y-2 text-center main-sm:text-left', props.class)"
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
4
|
+
import { AlertDialogTitle, type AlertDialogTitleProps } from 'reka-ui'
|
|
5
|
+
import { cn } from '../../lib/utils.js'
|
|
6
|
+
|
|
7
|
+
const props = defineProps<AlertDialogTitleProps & { class?: HTMLAttributes['class'] }>()
|
|
8
|
+
|
|
9
|
+
const delegatedProps = reactiveOmit(props, 'class')
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<AlertDialogTitle
|
|
14
|
+
v-bind="delegatedProps"
|
|
15
|
+
:class="cn('text-lg font-semibold', props.class)"
|
|
16
|
+
>
|
|
17
|
+
<slot />
|
|
18
|
+
</AlertDialogTitle>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { AlertDialogTrigger, type AlertDialogTriggerProps } from 'reka-ui'
|
|
3
|
+
|
|
4
|
+
const props = defineProps<AlertDialogTriggerProps>()
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<AlertDialogTrigger v-bind="props">
|
|
9
|
+
<slot />
|
|
10
|
+
</AlertDialogTrigger>
|
|
11
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AlertDialog } from './AlertDialog.vue'
|
|
2
|
+
export { default as AlertDialogAction } from './AlertDialogAction.vue'
|
|
3
|
+
export { default as AlertDialogCancel } from './AlertDialogCancel.vue'
|
|
4
|
+
export { default as AlertDialogContent } from './AlertDialogContent.vue'
|
|
5
|
+
export { default as AlertDialogDescription } from './AlertDialogDescription.vue'
|
|
6
|
+
export { default as AlertDialogFooter } from './AlertDialogFooter.vue'
|
|
7
|
+
export { default as AlertDialogHeader } from './AlertDialogHeader.vue'
|
|
8
|
+
export { default as AlertDialogTitle } from './AlertDialogTitle.vue'
|
|
9
|
+
export { default as AlertDialogTrigger } from './AlertDialogTrigger.vue'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { cn } from '../../lib/utils.js'
|
|
4
|
+
import { type BadgeVariants, badgeVariants } from './index.js'
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
variant?: BadgeVariants['variant']
|
|
8
|
+
class?: HTMLAttributes['class']
|
|
9
|
+
}>()
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div :class="cn(badgeVariants({ variant }), props.class)">
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cva, type VariantProps } from 'class-variance-authority'
|
|
2
|
+
|
|
3
|
+
export { default as Badge } from './Badge.vue'
|
|
4
|
+
|
|
5
|
+
export const badgeVariants = cva(
|
|
6
|
+
'inline-flex items-center rounded-[var(--sveda-radius)] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default:
|
|
11
|
+
'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
|
|
12
|
+
primary:
|
|
13
|
+
'border-transparent text-white bg-brand-primary-purple',
|
|
14
|
+
secondary:
|
|
15
|
+
'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
16
|
+
destructive:
|
|
17
|
+
'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
|
|
18
|
+
outline: 'text-card-foreground',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
variant: 'default',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
export type BadgeVariants = VariantProps<typeof badgeVariants>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from 'vue'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
import { cn } from '../../lib/utils.js'
|
|
5
|
+
import { Primitive, type PrimitiveProps } from 'reka-ui'
|
|
6
|
+
import { type ButtonVariants, buttonVariants, buttonHoverStyles } from './index.js'
|
|
7
|
+
|
|
8
|
+
interface Props extends PrimitiveProps {
|
|
9
|
+
variant?: ButtonVariants['variant']
|
|
10
|
+
size?: ButtonVariants['size']
|
|
11
|
+
class?: HTMLAttributes['class']
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
+
as: 'button',
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const isHovered = ref<boolean>(false);
|
|
19
|
+
|
|
20
|
+
const handleTouchStart = (): void => {
|
|
21
|
+
isHovered.value = true;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const handleTouchEnd = (): void => {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
isHovered.value = false;
|
|
27
|
+
}, 150);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const handleMouseEnter = (): void => {
|
|
31
|
+
isHovered.value = true;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const handleMouseLeave = (): void => {
|
|
35
|
+
isHovered.value = false;
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<template>
|
|
40
|
+
<Primitive
|
|
41
|
+
:as="as"
|
|
42
|
+
:as-child="asChild"
|
|
43
|
+
:class="
|
|
44
|
+
cn(
|
|
45
|
+
buttonVariants({ variant, size }),
|
|
46
|
+
{ [buttonHoverStyles[variant ?? 'default']]: isHovered },
|
|
47
|
+
props.class
|
|
48
|
+
)"
|
|
49
|
+
@touchstart.passive="handleTouchStart"
|
|
50
|
+
@touchend.passive="handleTouchEnd"
|
|
51
|
+
@mouseenter="handleMouseEnter"
|
|
52
|
+
@mouseleave="handleMouseLeave"
|
|
53
|
+
>
|
|
54
|
+
<slot />
|
|
55
|
+
</Primitive>
|
|
56
|
+
</template>
|