@oneclick.dev/cms-kit 0.0.1
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 +1 -0
- package/components/ui/apple-emoji/AppleEmoji.vue +32 -0
- package/components/ui/apple-emoji/index.ts +1 -0
- package/components/ui/avatar/Avatar.vue +18 -0
- package/components/ui/avatar/AvatarFallback.vue +23 -0
- package/components/ui/avatar/AvatarImage.vue +16 -0
- package/components/ui/avatar/index.ts +3 -0
- package/components/ui/badge/Badge.vue +39 -0
- package/components/ui/badge/index.ts +1 -0
- package/components/ui/breadcrumb/Breadcrumb.vue +17 -0
- package/components/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
- package/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
- package/components/ui/breadcrumb/BreadcrumbLink.vue +20 -0
- package/components/ui/breadcrumb/BreadcrumbList.vue +17 -0
- package/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
- package/components/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
- package/components/ui/breadcrumb/index.ts +7 -0
- package/components/ui/button/Button.vue +39 -0
- package/components/ui/button/index.ts +36 -0
- package/components/ui/calendar/Calendar.vue +63 -0
- package/components/ui/calendar/CalendarCell.vue +25 -0
- package/components/ui/calendar/CalendarCellTrigger.vue +41 -0
- package/components/ui/calendar/CalendarGrid.vue +25 -0
- package/components/ui/calendar/CalendarGridBody.vue +14 -0
- package/components/ui/calendar/CalendarGridHead.vue +15 -0
- package/components/ui/calendar/CalendarGridRow.vue +24 -0
- package/components/ui/calendar/CalendarHeadCell.vue +25 -0
- package/components/ui/calendar/CalendarHeader.vue +25 -0
- package/components/ui/calendar/CalendarHeading.vue +32 -0
- package/components/ui/calendar/CalendarNextButton.vue +34 -0
- package/components/ui/calendar/CalendarPrevButton.vue +34 -0
- package/components/ui/calendar/index.ts +12 -0
- package/components/ui/card/Card.vue +22 -0
- package/components/ui/card/CardAction.vue +17 -0
- package/components/ui/card/CardContent.vue +17 -0
- package/components/ui/card/CardDescription.vue +17 -0
- package/components/ui/card/CardFooter.vue +17 -0
- package/components/ui/card/CardHeader.vue +17 -0
- package/components/ui/card/CardTitle.vue +17 -0
- package/components/ui/card/index.ts +7 -0
- package/components/ui/checkbox/Checkbox.vue +37 -0
- package/components/ui/checkbox/index.ts +1 -0
- package/components/ui/code-editor/CodeEditor.vue +88 -0
- package/components/ui/code-editor/index.ts +1 -0
- package/components/ui/code-editor/interpolationHighlight.ts +39 -0
- package/components/ui/collapsible/Collapsible.vue +19 -0
- package/components/ui/collapsible/CollapsibleContent.vue +14 -0
- package/components/ui/collapsible/CollapsibleTrigger.vue +14 -0
- package/components/ui/collapsible/index.ts +3 -0
- package/components/ui/combobox/Combobox.vue +17 -0
- package/components/ui/combobox/ComboboxAnchor.vue +26 -0
- package/components/ui/combobox/ComboboxEmpty.vue +24 -0
- package/components/ui/combobox/ComboboxGroup.vue +30 -0
- package/components/ui/combobox/ComboboxInput.vue +47 -0
- package/components/ui/combobox/ComboboxItem.vue +27 -0
- package/components/ui/combobox/ComboboxItemIndicator.vue +26 -0
- package/components/ui/combobox/ComboboxList.vue +31 -0
- package/components/ui/combobox/ComboboxSeparator.vue +24 -0
- package/components/ui/combobox/ComboboxTrigger.vue +27 -0
- package/components/ui/combobox/ComboboxViewport.vue +26 -0
- package/components/ui/combobox/index.ts +12 -0
- package/components/ui/command/Command.vue +93 -0
- package/components/ui/command/CommandDialog.vue +31 -0
- package/components/ui/command/CommandEmpty.vue +29 -0
- package/components/ui/command/CommandGroup.vue +47 -0
- package/components/ui/command/CommandInput.vue +41 -0
- package/components/ui/command/CommandItem.vue +79 -0
- package/components/ui/command/CommandList.vue +28 -0
- package/components/ui/command/CommandSeparator.vue +24 -0
- package/components/ui/command/CommandShortcut.vue +17 -0
- package/components/ui/command/index.ts +25 -0
- package/components/ui/context-menu/ContextMenu.vue +18 -0
- package/components/ui/context-menu/ContextMenuCheckboxItem.vue +41 -0
- package/components/ui/context-menu/ContextMenuContent.vue +37 -0
- package/components/ui/context-menu/ContextMenuGroup.vue +14 -0
- package/components/ui/context-menu/ContextMenuItem.vue +42 -0
- package/components/ui/context-menu/ContextMenuLabel.vue +24 -0
- package/components/ui/context-menu/ContextMenuPortal.vue +14 -0
- package/components/ui/context-menu/ContextMenuRadioGroup.vue +22 -0
- package/components/ui/context-menu/ContextMenuRadioItem.vue +41 -0
- package/components/ui/context-menu/ContextMenuSeparator.vue +24 -0
- package/components/ui/context-menu/ContextMenuShortcut.vue +17 -0
- package/components/ui/context-menu/ContextMenuSub.vue +22 -0
- package/components/ui/context-menu/ContextMenuSubContent.vue +36 -0
- package/components/ui/context-menu/ContextMenuSubTrigger.vue +35 -0
- package/components/ui/context-menu/ContextMenuTrigger.vue +16 -0
- package/components/ui/context-menu/index.ts +14 -0
- package/components/ui/custom-dialog/CustomDialog.vue +31 -0
- package/components/ui/custom-dialog/index.ts +1 -0
- package/components/ui/dialog/Dialog.vue +17 -0
- package/components/ui/dialog/DialogClose.vue +14 -0
- package/components/ui/dialog/DialogContent.vue +49 -0
- package/components/ui/dialog/DialogDescription.vue +25 -0
- package/components/ui/dialog/DialogFooter.vue +15 -0
- package/components/ui/dialog/DialogHeader.vue +17 -0
- package/components/ui/dialog/DialogOverlay.vue +23 -0
- package/components/ui/dialog/DialogScrollContent.vue +59 -0
- package/components/ui/dialog/DialogTitle.vue +25 -0
- package/components/ui/dialog/DialogTrigger.vue +14 -0
- package/components/ui/dialog/index.ts +10 -0
- package/components/ui/drawer/Drawer.vue +22 -0
- package/components/ui/drawer/DrawerClose.vue +15 -0
- package/components/ui/drawer/DrawerContent.vue +34 -0
- package/components/ui/drawer/DrawerDescription.vue +24 -0
- package/components/ui/drawer/DrawerFooter.vue +17 -0
- package/components/ui/drawer/DrawerHeader.vue +17 -0
- package/components/ui/drawer/DrawerOverlay.vue +22 -0
- package/components/ui/drawer/DrawerTitle.vue +24 -0
- package/components/ui/drawer/DrawerTrigger.vue +15 -0
- package/components/ui/drawer/index.ts +9 -0
- package/components/ui/dropdown-menu/DropdownMenu.vue +17 -0
- package/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +41 -0
- package/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
- package/components/ui/dropdown-menu/DropdownMenuGroup.vue +14 -0
- package/components/ui/dropdown-menu/DropdownMenuItem.vue +30 -0
- package/components/ui/dropdown-menu/DropdownMenuLabel.vue +22 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +22 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +42 -0
- package/components/ui/dropdown-menu/DropdownMenuSeparator.vue +26 -0
- package/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
- package/components/ui/dropdown-menu/DropdownMenuSubContent.vue +31 -0
- package/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +30 -0
- package/components/ui/dropdown-menu/DropdownMenuTrigger.vue +16 -0
- package/components/ui/dropdown-menu/index.ts +16 -0
- package/components/ui/emoji-picker/EmojiPicker.vue +71 -0
- package/components/ui/emoji-picker/index.ts +1 -0
- package/components/ui/flow-builder/FlowBuilder.vue +48 -0
- package/components/ui/flow-builder/FlowBuilderSelect.vue +33 -0
- package/components/ui/flow-builder/components/Builder.vue +287 -0
- package/components/ui/flow-builder/components/DropzoneBackground.vue +13 -0
- package/components/ui/flow-builder/components/EdgeEditor.vue +36 -0
- package/components/ui/flow-builder/components/Menu.vue +78 -0
- package/components/ui/flow-builder/components/NodeEditor.vue +181 -0
- package/components/ui/flow-builder/components/edge-editor/DataEdgeEditor.vue +64 -0
- package/components/ui/flow-builder/components/edges/DataEdge.vue +87 -0
- package/components/ui/flow-builder/components/node-editor/ApiRequestEditor.vue +150 -0
- package/components/ui/flow-builder/components/node-editor/ConfettiEditor.vue +23 -0
- package/components/ui/flow-builder/components/node-editor/ConfirmEditor.vue +30 -0
- package/components/ui/flow-builder/components/node-editor/FinishFlowEditor.vue +33 -0
- package/components/ui/flow-builder/components/node-editor/IntegrationActionEditor.vue +50 -0
- package/components/ui/flow-builder/components/node-editor/SetVariableEditor.vue +71 -0
- package/components/ui/flow-builder/components/node-editor/ShowDialogEditor.vue +26 -0
- package/components/ui/flow-builder/components/node-editor/ShowModuleEditor.vue +92 -0
- package/components/ui/flow-builder/components/node-editor/ShowToastEditor.vue +28 -0
- package/components/ui/flow-builder/components/node-editor/TransformDataEditor.vue +27 -0
- package/components/ui/flow-builder/components/node-editor/VisitUrlEditor.vue +31 -0
- package/components/ui/flow-builder/components/nodes/ApiRequestNode.vue +45 -0
- package/components/ui/flow-builder/components/nodes/ConfettiNode.vue +32 -0
- package/components/ui/flow-builder/components/nodes/ConfirmNode.vue +45 -0
- package/components/ui/flow-builder/components/nodes/EmptyNode.vue +26 -0
- package/components/ui/flow-builder/components/nodes/FinishFlowNode.vue +30 -0
- package/components/ui/flow-builder/components/nodes/IntegrationActionNode.vue +52 -0
- package/components/ui/flow-builder/components/nodes/SetVariableNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/ShowDialogNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/ShowModuleNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/ShowToastNode.vue +35 -0
- package/components/ui/flow-builder/components/nodes/StartNode.vue +27 -0
- package/components/ui/flow-builder/components/nodes/TransformDataNode.vue +34 -0
- package/components/ui/flow-builder/components/nodes/VisitUrlNode.vue +34 -0
- package/components/ui/flow-builder/components/toolbars/ApiRequestToolbar.vue +45 -0
- package/components/ui/flow-builder/components/toolbars/ConfirmToolbar.vue +45 -0
- package/components/ui/flow-builder/components/toolbars/DefaultToolbar.vue +42 -0
- package/components/ui/flow-builder/components/toolbars/IntegrationActionToolbar.vue +45 -0
- package/components/ui/flow-builder/components/variables/Widget.vue +137 -0
- package/components/ui/flow-builder/composables/outputRegistry.ts +33 -0
- package/components/ui/flow-builder/composables/taskHandlers.js +185 -0
- package/components/ui/flow-builder/composables/useLayout.js +60 -0
- package/components/ui/flow-builder/composables/useProcessNodeLogic.js +55 -0
- package/components/ui/flow-builder/composables/useRunProcess.js +267 -0
- package/components/ui/flow-builder/index.ts +5 -0
- package/components/ui/flow-builder/types.ts +7 -0
- package/components/ui/form/FormControl.vue +17 -0
- package/components/ui/form/FormDescription.vue +21 -0
- package/components/ui/form/FormItem.vue +22 -0
- package/components/ui/form/FormLabel.vue +25 -0
- package/components/ui/form/FormMessage.vue +22 -0
- package/components/ui/form/index.ts +7 -0
- package/components/ui/form/injectionKeys.ts +4 -0
- package/components/ui/form/useFormField.ts +30 -0
- package/components/ui/form-builder/FormBuilder.vue +45 -0
- package/components/ui/form-builder/FormBuilderSelect.vue +42 -0
- package/components/ui/form-builder/FormDisplayer.vue +39 -0
- package/components/ui/form-builder/components/AdminElementEditor.vue +48 -0
- package/components/ui/form-builder/components/AdminToolbar.vue +60 -0
- package/components/ui/form-builder/components/AdminToolbarView.vue +19 -0
- package/components/ui/form-builder/components/CustomDashboard.vue +312 -0
- package/components/ui/form-builder/components/FormBuilderWrapper.vue +333 -0
- package/components/ui/form-builder/components/admin/Transformer.vue +25 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Button.vue +30 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Checkbox.vue +23 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Label.vue +13 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Radios.vue +85 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Scanner.vue +15 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Select.vue +75 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Text.vue +13 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Textarea.vue +20 -0
- package/components/ui/form-builder/components/admin/element-setting-views/Textfield.vue +20 -0
- package/components/ui/form-builder/components/admin/element-setting-views/index.ts +21 -0
- package/components/ui/form-builder/components/admin/setting-views/ApiActionsView.vue +111 -0
- package/components/ui/form-builder/components/admin/setting-views/NewElementView.vue +200 -0
- package/components/ui/form-builder/components/admin/setting-views/VariablesView.vue +19 -0
- package/components/ui/form-builder/components/admin/setting-views/new-element-view/DraggableElement.vue +107 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/ApiActionVariables.vue +27 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/RouteQueryParams.vue +47 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/Transformers.vue +61 -0
- package/components/ui/form-builder/components/admin/setting-views/variables-view/Variables.vue +74 -0
- package/components/ui/form-builder/components/elements/button/Button.vue +60 -0
- package/components/ui/form-builder/components/elements/button/index.ts +1 -0
- package/components/ui/form-builder/components/elements/checkbox/Checkbox.vue +40 -0
- package/components/ui/form-builder/components/elements/checkbox/index.ts +1 -0
- package/components/ui/form-builder/components/elements/file/File.vue +6 -0
- package/components/ui/form-builder/components/elements/file/index.ts +1 -0
- package/components/ui/form-builder/components/elements/images/Images.vue +28 -0
- package/components/ui/form-builder/components/elements/images/index.ts +1 -0
- package/components/ui/form-builder/components/elements/index.ts +31 -0
- package/components/ui/form-builder/components/elements/items/Items.vue +6 -0
- package/components/ui/form-builder/components/elements/items/index.ts +1 -0
- package/components/ui/form-builder/components/elements/label/Label.vue +20 -0
- package/components/ui/form-builder/components/elements/label/index.ts +1 -0
- package/components/ui/form-builder/components/elements/location/Location.vue +6 -0
- package/components/ui/form-builder/components/elements/location/index.ts +1 -0
- package/components/ui/form-builder/components/elements/radios/Radios.vue +42 -0
- package/components/ui/form-builder/components/elements/radios/index.ts +1 -0
- package/components/ui/form-builder/components/elements/richtext/Richtext.vue +6 -0
- package/components/ui/form-builder/components/elements/richtext/index.ts +1 -0
- package/components/ui/form-builder/components/elements/scanner/Scanner.vue +173 -0
- package/components/ui/form-builder/components/elements/scanner/index.ts +1 -0
- package/components/ui/form-builder/components/elements/select/Select.vue +49 -0
- package/components/ui/form-builder/components/elements/select/index.ts +1 -0
- package/components/ui/form-builder/components/elements/text/Text.vue +20 -0
- package/components/ui/form-builder/components/elements/text/index.ts +1 -0
- package/components/ui/form-builder/components/elements/textarea/Textarea.vue +30 -0
- package/components/ui/form-builder/components/elements/textarea/index.ts +1 -0
- package/components/ui/form-builder/components/elements/textfield/Textfield.vue +30 -0
- package/components/ui/form-builder/components/elements/textfield/index.ts +1 -0
- package/components/ui/form-builder/index.ts +3 -0
- package/components/ui/input/Input.vue +33 -0
- package/components/ui/input/index.ts +1 -0
- package/components/ui/integration-action-builder/IntegrationActionBuilder.vue +193 -0
- package/components/ui/integration-action-builder/InterpolationField.vue +29 -0
- package/components/ui/integration-action-builder/index.ts +1 -0
- package/components/ui/integration-action-builder/integrations/firebase/AddDocument.vue +43 -0
- package/components/ui/integration-action-builder/integrations/firebase/DeleteDocument.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/GetCollections.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/GetDocumentById.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/QueryCollectionGroup.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/QueryFirestore.vue +165 -0
- package/components/ui/integration-action-builder/integrations/firebase/UpdateDocument.vue +6 -0
- package/components/ui/integration-action-builder/integrations/firebase/index.ts +204 -0
- package/components/ui/integration-action-builder/integrations/index.ts +9 -0
- package/components/ui/integration-action-builder/integrations/openai/AddDocument.vue +43 -0
- package/components/ui/integration-action-builder/integrations/openai/GenerateText.vue +40 -0
- package/components/ui/integration-action-builder/integrations/openai/components/ModelSelector.vue +75 -0
- package/components/ui/integration-action-builder/integrations/openai/index.ts +116 -0
- package/components/ui/integration-action-builder/integrations/twilio/MakeCall.vue +40 -0
- package/components/ui/integration-action-builder/integrations/twilio/SendSMS.vue +39 -0
- package/components/ui/integration-action-builder/integrations/twilio/components/ModelSelector.vue +75 -0
- package/components/ui/integration-action-builder/integrations/twilio/index.ts +68 -0
- package/components/ui/integration-icon/IntegrationIcon.vue +18 -0
- package/components/ui/integration-icon/index.ts +1 -0
- package/components/ui/label/Label.vue +28 -0
- package/components/ui/label/index.ts +1 -0
- package/components/ui/lucide-icon-selector/LucideIconPicker.vue +34 -0
- package/components/ui/lucide-icon-selector/LucideIconSelector.vue +55 -0
- package/components/ui/lucide-icon-selector/index.ts +2 -0
- package/components/ui/media-picker/MediaPicker.vue +40 -0
- package/components/ui/media-picker/MediaPickerDialog.vue +306 -0
- package/components/ui/media-picker/MediaPickerItems.vue +342 -0
- package/components/ui/media-picker/index.ts +2 -0
- package/components/ui/media-picker/media-picker-dialog/Dropzone.vue +104 -0
- package/components/ui/media-picker/media-picker-dialog/FileItem.vue +108 -0
- package/components/ui/media-picker/media-picker-dialog/Filters.vue +78 -0
- package/components/ui/menubar/Menubar.vue +36 -0
- package/components/ui/menubar/MenubarCheckboxItem.vue +41 -0
- package/components/ui/menubar/MenubarContent.vue +44 -0
- package/components/ui/menubar/MenubarGroup.vue +14 -0
- package/components/ui/menubar/MenubarItem.vue +37 -0
- package/components/ui/menubar/MenubarLabel.vue +19 -0
- package/components/ui/menubar/MenubarMenu.vue +14 -0
- package/components/ui/menubar/MenubarRadioGroup.vue +22 -0
- package/components/ui/menubar/MenubarRadioItem.vue +41 -0
- package/components/ui/menubar/MenubarSeparator.vue +23 -0
- package/components/ui/menubar/MenubarShortcut.vue +17 -0
- package/components/ui/menubar/MenubarSub.vue +22 -0
- package/components/ui/menubar/MenubarSubContent.vue +39 -0
- package/components/ui/menubar/MenubarSubTrigger.vue +27 -0
- package/components/ui/menubar/MenubarTrigger.vue +30 -0
- package/components/ui/menubar/index.ts +15 -0
- package/components/ui/number-field/NumberField.vue +23 -0
- package/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/components/ui/number-field/NumberFieldDecrement.vue +25 -0
- package/components/ui/number-field/NumberFieldIncrement.vue +25 -0
- package/components/ui/number-field/NumberFieldInput.vue +16 -0
- package/components/ui/number-field/index.ts +5 -0
- package/components/ui/pagination/PaginationEllipsis.vue +22 -0
- package/components/ui/pagination/PaginationFirst.vue +29 -0
- package/components/ui/pagination/PaginationLast.vue +29 -0
- package/components/ui/pagination/PaginationNext.vue +29 -0
- package/components/ui/pagination/PaginationPrev.vue +29 -0
- package/components/ui/pagination/index.ts +10 -0
- package/components/ui/popover/Popover.vue +18 -0
- package/components/ui/popover/PopoverAnchor.vue +15 -0
- package/components/ui/popover/PopoverContent.vue +49 -0
- package/components/ui/popover/PopoverTrigger.vue +14 -0
- package/components/ui/popover/index.ts +4 -0
- package/components/ui/query-builder-dialog/QueryBuilderDialog.vue +389 -0
- package/components/ui/query-builder-dialog/index.ts +1 -0
- package/components/ui/radio-group/RadioGroup.vue +30 -0
- package/components/ui/radio-group/RadioGroupItem.vue +43 -0
- package/components/ui/radio-group/index.ts +2 -0
- package/components/ui/range-calendar/RangeCalendar.vue +57 -0
- package/components/ui/range-calendar/RangeCalendarCell.vue +21 -0
- package/components/ui/range-calendar/RangeCalendarCellTrigger.vue +37 -0
- package/components/ui/range-calendar/RangeCalendarGrid.vue +21 -0
- package/components/ui/range-calendar/RangeCalendarGridBody.vue +11 -0
- package/components/ui/range-calendar/RangeCalendarGridHead.vue +11 -0
- package/components/ui/range-calendar/RangeCalendarGridRow.vue +18 -0
- package/components/ui/range-calendar/RangeCalendarHeadCell.vue +18 -0
- package/components/ui/range-calendar/RangeCalendarHeader.vue +18 -0
- package/components/ui/range-calendar/RangeCalendarHeading.vue +28 -0
- package/components/ui/range-calendar/RangeCalendarNextButton.vue +29 -0
- package/components/ui/range-calendar/RangeCalendarPrevButton.vue +29 -0
- package/components/ui/range-calendar/index.ts +12 -0
- package/components/ui/resizable/ResizableHandle.vue +27 -0
- package/components/ui/resizable/ResizablePanel.vue +18 -0
- package/components/ui/resizable/ResizablePanelGroup.vue +25 -0
- package/components/ui/resizable/index.ts +3 -0
- package/components/ui/ripple-button/RippleButton.vue +97 -0
- package/components/ui/ripple-button/index.ts +1 -0
- package/components/ui/sandbox/Sandbox.vue +35 -0
- package/components/ui/sandbox/index.ts +1 -0
- package/components/ui/scroll-area/ScrollArea.vue +36 -0
- package/components/ui/scroll-area/ScrollBar.vue +34 -0
- package/components/ui/scroll-area/index.ts +2 -0
- package/components/ui/segmented-control/SegmentedControl.vue +121 -0
- package/components/ui/segmented-control/SegmentedControlButton.vue +64 -0
- package/components/ui/segmented-control/index.ts +2 -0
- package/components/ui/select/Select.vue +18 -0
- package/components/ui/select/SelectContent.vue +55 -0
- package/components/ui/select/SelectGroup.vue +14 -0
- package/components/ui/select/SelectItem.vue +45 -0
- package/components/ui/select/SelectItemText.vue +14 -0
- package/components/ui/select/SelectLabel.vue +16 -0
- package/components/ui/select/SelectScrollDownButton.vue +28 -0
- package/components/ui/select/SelectScrollUpButton.vue +28 -0
- package/components/ui/select/SelectSeparator.vue +21 -0
- package/components/ui/select/SelectTrigger.vue +32 -0
- package/components/ui/select/SelectValue.vue +15 -0
- package/components/ui/select/index.ts +11 -0
- package/components/ui/separator/Separator.vue +28 -0
- package/components/ui/separator/index.ts +1 -0
- package/components/ui/sheet/Sheet.vue +17 -0
- package/components/ui/sheet/SheetClose.vue +14 -0
- package/components/ui/sheet/SheetContent.vue +65 -0
- package/components/ui/sheet/SheetDescription.vue +20 -0
- package/components/ui/sheet/SheetFooter.vue +16 -0
- package/components/ui/sheet/SheetHeader.vue +15 -0
- package/components/ui/sheet/SheetOverlay.vue +24 -0
- package/components/ui/sheet/SheetTitle.vue +20 -0
- package/components/ui/sheet/SheetTrigger.vue +14 -0
- package/components/ui/sheet/index.ts +8 -0
- package/components/ui/sidebar/Sidebar.vue +96 -0
- package/components/ui/sidebar/SidebarContent.vue +18 -0
- package/components/ui/sidebar/SidebarFooter.vue +18 -0
- package/components/ui/sidebar/SidebarGroup.vue +18 -0
- package/components/ui/sidebar/SidebarGroupAction.vue +27 -0
- package/components/ui/sidebar/SidebarGroupContent.vue +18 -0
- package/components/ui/sidebar/SidebarGroupLabel.vue +25 -0
- package/components/ui/sidebar/SidebarHeader.vue +18 -0
- package/components/ui/sidebar/SidebarInput.vue +22 -0
- package/components/ui/sidebar/SidebarInset.vue +21 -0
- package/components/ui/sidebar/SidebarMenu.vue +18 -0
- package/components/ui/sidebar/SidebarMenuAction.vue +34 -0
- package/components/ui/sidebar/SidebarMenuBadge.vue +26 -0
- package/components/ui/sidebar/SidebarMenuButton.vue +49 -0
- package/components/ui/sidebar/SidebarMenuButtonChild.vue +34 -0
- package/components/ui/sidebar/SidebarMenuItem.vue +18 -0
- package/components/ui/sidebar/SidebarMenuSkeleton.vue +34 -0
- package/components/ui/sidebar/SidebarMenuSub.vue +22 -0
- package/components/ui/sidebar/SidebarMenuSubButton.vue +36 -0
- package/components/ui/sidebar/SidebarMenuSubItem.vue +18 -0
- package/components/ui/sidebar/SidebarProvider.vue +81 -0
- package/components/ui/sidebar/SidebarRail.vue +33 -0
- package/components/ui/sidebar/SidebarSeparator.vue +19 -0
- package/components/ui/sidebar/SidebarTrigger.vue +27 -0
- package/components/ui/sidebar/index.ts +60 -0
- package/components/ui/sidebar/utils.ts +19 -0
- package/components/ui/skeleton/Skeleton.vue +17 -0
- package/components/ui/skeleton/index.ts +1 -0
- package/components/ui/sonner/Sonner.vue +18 -0
- package/components/ui/sonner/index.ts +1 -0
- package/components/ui/spring-calendar/SpringCalendar.vue +110 -0
- package/components/ui/spring-calendar/TextMorph.vue +160 -0
- package/components/ui/spring-calendar/index.ts +2 -0
- package/components/ui/switch/Switch.vue +41 -0
- package/components/ui/switch/index.ts +1 -0
- package/components/ui/table/Table.vue +16 -0
- package/components/ui/table/TableBody.vue +17 -0
- package/components/ui/table/TableCaption.vue +17 -0
- package/components/ui/table/TableCell.vue +22 -0
- package/components/ui/table/TableEmpty.vue +37 -0
- package/components/ui/table/TableFooter.vue +17 -0
- package/components/ui/table/TableHead.vue +17 -0
- package/components/ui/table/TableHeader.vue +17 -0
- package/components/ui/table/TableRow.vue +17 -0
- package/components/ui/table/index.ts +9 -0
- package/components/ui/table/utils.ts +9 -0
- package/components/ui/tabs/Tabs.vue +15 -0
- package/components/ui/tabs/TabsContent.vue +22 -0
- package/components/ui/tabs/TabsList.vue +25 -0
- package/components/ui/tabs/TabsTrigger.vue +29 -0
- package/components/ui/tabs/index.ts +4 -0
- package/components/ui/tailwind-color-picker/TailwindColorPicker.vue +58 -0
- package/components/ui/tailwind-color-picker/index.ts +1 -0
- package/components/ui/textarea/Textarea.vue +28 -0
- package/components/ui/textarea/index.ts +1 -0
- package/components/ui/toggle/Toggle.vue +32 -0
- package/components/ui/toggle/index.ts +27 -0
- package/components/ui/tooltip/Tooltip.vue +17 -0
- package/components/ui/tooltip/TooltipContent.vue +33 -0
- package/components/ui/tooltip/TooltipProvider.vue +13 -0
- package/components/ui/tooltip/TooltipTrigger.vue +14 -0
- package/components/ui/tooltip/index.ts +4 -0
- package/composables/useCms.ts +11 -0
- package/index.ts +10 -0
- package/lib/interpolation.ts +77 -0
- package/lib/utils.ts +24 -0
- package/package.json +52 -0
- package/styles/components/code-editor.css +52 -0
- package/styles/components/flow-builder.css +159 -0
- package/styles/index.css +2 -0
- package/tsconfig.json +19 -0
- package/types/index.ts +41 -0
- package/vite.config.ts +25 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import InterpolationField from '../../InterpolationField.vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: Object,
|
|
7
|
+
required: true
|
|
8
|
+
}
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
const emit = defineEmits(['update:modelValue'])
|
|
12
|
+
|
|
13
|
+
const form = computed({
|
|
14
|
+
get() {
|
|
15
|
+
return props.modelValue
|
|
16
|
+
},
|
|
17
|
+
set(value) {
|
|
18
|
+
emit('update:modelValue', value)
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div>
|
|
25
|
+
<h2 class="text-lg font-semibold mb-2">Add document</h2>
|
|
26
|
+
|
|
27
|
+
<div class="flex flex-col gap-2">
|
|
28
|
+
<div class="flex flex-col gap-1">
|
|
29
|
+
<p class="text-sm font-semibold">Collection</p>
|
|
30
|
+
<InterpolationField v-model="form.collection" />
|
|
31
|
+
</div>
|
|
32
|
+
<div class="flex flex-col gap-1">
|
|
33
|
+
<p class="text-sm font-semibold">Document ID</p>
|
|
34
|
+
<InterpolationField v-model="form.documentId" />
|
|
35
|
+
<p class="text-xs text-muted-foreground">Leave blank to let Firestore generate a random ID</p>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="flex flex-col gap-1">
|
|
38
|
+
<p class="text-sm font-semibold">Data</p>
|
|
39
|
+
<InterpolationField v-model="form.data" />
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import InterpolationField from '../../InterpolationField.vue'
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
import ModelSelector from './components/ModelSelector.vue'
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Object,
|
|
9
|
+
required: true
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const emit = defineEmits(['update:modelValue'])
|
|
14
|
+
|
|
15
|
+
const form = computed({
|
|
16
|
+
get() {
|
|
17
|
+
return props.modelValue
|
|
18
|
+
},
|
|
19
|
+
set(value) {
|
|
20
|
+
emit('update:modelValue', value)
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<div>
|
|
27
|
+
<h2 class="text-lg font-semibold mb-2">Generate text</h2>
|
|
28
|
+
|
|
29
|
+
<div class="flex flex-col gap-2">
|
|
30
|
+
<div class="flex flex-col gap-1">
|
|
31
|
+
<p class="text-sm font-semibold">Model</p>
|
|
32
|
+
<ModelSelector v-model="form.model" />
|
|
33
|
+
</div>
|
|
34
|
+
<div class="flex flex-col gap-1">
|
|
35
|
+
<p class="text-sm font-semibold">Prompt</p>
|
|
36
|
+
<InterpolationField v-model="form.prompt" />
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
package/components/ui/integration-action-builder/integrations/openai/components/ModelSelector.vue
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true
|
|
8
|
+
}
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
const emit = defineEmits(['update:modelValue'])
|
|
12
|
+
|
|
13
|
+
const mutableValue = computed({
|
|
14
|
+
get() {
|
|
15
|
+
return props.modelValue
|
|
16
|
+
},
|
|
17
|
+
set(value) {
|
|
18
|
+
emit('update:modelValue', value)
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<Select v-model="mutableValue">
|
|
25
|
+
<SelectTrigger class="w-[180px]">
|
|
26
|
+
<SelectValue placeholder="Select a model" />
|
|
27
|
+
</SelectTrigger>
|
|
28
|
+
<SelectContent>
|
|
29
|
+
<SelectGroup>
|
|
30
|
+
<SelectLabel>Reasoning models</SelectLabel>
|
|
31
|
+
<SelectItem value="o4-mini">
|
|
32
|
+
o4-mini
|
|
33
|
+
</SelectItem>
|
|
34
|
+
<SelectItem value="o3">
|
|
35
|
+
o3
|
|
36
|
+
</SelectItem>
|
|
37
|
+
<SelectItem value="o3-pro">
|
|
38
|
+
o3-pro
|
|
39
|
+
</SelectItem>
|
|
40
|
+
<SelectItem value="o3-mini">
|
|
41
|
+
o3-mini
|
|
42
|
+
</SelectItem>
|
|
43
|
+
<SelectItem value="o1">
|
|
44
|
+
o1
|
|
45
|
+
</SelectItem>
|
|
46
|
+
<SelectItem value="o1-pro">
|
|
47
|
+
o1-pro
|
|
48
|
+
</SelectItem>
|
|
49
|
+
<SelectLabel>Flagship chat models</SelectLabel>
|
|
50
|
+
<SelectItem value="gpt-4.1">
|
|
51
|
+
GPT-4.1
|
|
52
|
+
</SelectItem>
|
|
53
|
+
<SelectItem value="gpt-4o">
|
|
54
|
+
GPT-4o
|
|
55
|
+
</SelectItem>
|
|
56
|
+
<SelectLabel>Cost-optimized models</SelectLabel>
|
|
57
|
+
<SelectItem value="o4-mini">
|
|
58
|
+
o4-mini
|
|
59
|
+
</SelectItem>
|
|
60
|
+
<SelectItem value="gpt-4.1-mini">
|
|
61
|
+
GPT-4.1 mini
|
|
62
|
+
</SelectItem>
|
|
63
|
+
<SelectItem value="gpt-4.1-nano">
|
|
64
|
+
GPT-4.1 nano
|
|
65
|
+
</SelectItem>
|
|
66
|
+
<SelectItem value="o3-mini">
|
|
67
|
+
o3-mini
|
|
68
|
+
</SelectItem>
|
|
69
|
+
<SelectItem value="gpt-4o-mini">
|
|
70
|
+
GPT-4o mini
|
|
71
|
+
</SelectItem>
|
|
72
|
+
</SelectGroup>
|
|
73
|
+
</SelectContent>
|
|
74
|
+
</Select>
|
|
75
|
+
</template>
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import GenerateText from "./GenerateText.vue"
|
|
2
|
+
import AddDocument from "./AddDocument.vue"
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: "OpenAI",
|
|
6
|
+
serviceTypes: {
|
|
7
|
+
text: {
|
|
8
|
+
name: "Text",
|
|
9
|
+
actionTypes: {
|
|
10
|
+
generateText: {
|
|
11
|
+
name: "Generate text",
|
|
12
|
+
component: GenerateText,
|
|
13
|
+
outputs: {
|
|
14
|
+
success: [
|
|
15
|
+
{
|
|
16
|
+
name: "result",
|
|
17
|
+
type: {
|
|
18
|
+
success: "true",
|
|
19
|
+
response: "string",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
error: [
|
|
24
|
+
{
|
|
25
|
+
name: "result",
|
|
26
|
+
type: {
|
|
27
|
+
success: "false",
|
|
28
|
+
error: "string | { message: string; code?: string }",
|
|
29
|
+
statusCode: "number?",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
chatWithMemory: {
|
|
36
|
+
name: "Chat with memory",
|
|
37
|
+
component: AddDocument,
|
|
38
|
+
outputs: {
|
|
39
|
+
success: [
|
|
40
|
+
{
|
|
41
|
+
name: "result",
|
|
42
|
+
type: {
|
|
43
|
+
success: "boolean",
|
|
44
|
+
documentId: "string",
|
|
45
|
+
message: "string?",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
error: [
|
|
50
|
+
{
|
|
51
|
+
name: "result",
|
|
52
|
+
type: {
|
|
53
|
+
success: "false",
|
|
54
|
+
error: "string | { message: string; code?: string }",
|
|
55
|
+
statusCode: "number?",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
moderation: {
|
|
62
|
+
name: "Moderation",
|
|
63
|
+
component: AddDocument,
|
|
64
|
+
outputs: {
|
|
65
|
+
success: [
|
|
66
|
+
{
|
|
67
|
+
name: "result",
|
|
68
|
+
type: {
|
|
69
|
+
success: "true",
|
|
70
|
+
approved: "boolean",
|
|
71
|
+
feedback: "string?"
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
error: [
|
|
76
|
+
{
|
|
77
|
+
name: "result",
|
|
78
|
+
type: {
|
|
79
|
+
success: "false",
|
|
80
|
+
error: "string | { message: string; code?: string }",
|
|
81
|
+
statusCode: "number?",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
imageGeneration: {
|
|
88
|
+
name: "Image generation",
|
|
89
|
+
component: AddDocument,
|
|
90
|
+
outputs: {
|
|
91
|
+
success: [
|
|
92
|
+
{
|
|
93
|
+
name: "result",
|
|
94
|
+
type: {
|
|
95
|
+
success: "boolean",
|
|
96
|
+
documentId: "string",
|
|
97
|
+
message: "string?",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
error: [
|
|
102
|
+
{
|
|
103
|
+
name: "result",
|
|
104
|
+
type: {
|
|
105
|
+
success: "false",
|
|
106
|
+
error: "string | { message: string; code?: string }",
|
|
107
|
+
statusCode: "number?",
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import InterpolationField from '../../InterpolationField.vue'
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
import ModelSelector from './components/ModelSelector.vue'
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Object,
|
|
9
|
+
required: true
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const emit = defineEmits(['update:modelValue'])
|
|
14
|
+
|
|
15
|
+
const form = computed({
|
|
16
|
+
get() {
|
|
17
|
+
return props.modelValue
|
|
18
|
+
},
|
|
19
|
+
set(value) {
|
|
20
|
+
emit('update:modelValue', value)
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
26
|
+
<div>
|
|
27
|
+
<h2 class="text-lg font-semibold mb-2">Generate text</h2>
|
|
28
|
+
|
|
29
|
+
<div class="flex flex-col gap-2">
|
|
30
|
+
<div class="flex flex-col gap-1">
|
|
31
|
+
<p class="text-sm font-semibold">Model</p>
|
|
32
|
+
<ModelSelector v-model="form.model" />
|
|
33
|
+
</div>
|
|
34
|
+
<div class="flex flex-col gap-1">
|
|
35
|
+
<p class="text-sm font-semibold">Prompt</p>
|
|
36
|
+
<InterpolationField v-model="form.prompt" />
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
import InterpolationField from '../../InterpolationField.vue'
|
|
4
|
+
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true
|
|
9
|
+
}
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const emit = defineEmits(['update:modelValue'])
|
|
13
|
+
|
|
14
|
+
const form = computed({
|
|
15
|
+
get() {
|
|
16
|
+
return props.modelValue
|
|
17
|
+
},
|
|
18
|
+
set(value) {
|
|
19
|
+
emit('update:modelValue', value)
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div>
|
|
26
|
+
<h2 class="text-lg font-semibold mb-2">Send SMS</h2>
|
|
27
|
+
|
|
28
|
+
<div class="flex flex-col gap-2">
|
|
29
|
+
<div class="flex flex-col gap-1">
|
|
30
|
+
<p class="text-sm font-semibold">To</p>
|
|
31
|
+
<InterpolationField v-model="form.to" placeholder="+123456789" />
|
|
32
|
+
</div>
|
|
33
|
+
<div class="flex flex-col gap-1">
|
|
34
|
+
<p class="text-sm font-semibold">Body</p>
|
|
35
|
+
<InterpolationField v-model="form.body" placeholder="Hello, this is a test message" />
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
package/components/ui/integration-action-builder/integrations/twilio/components/ModelSelector.vue
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true
|
|
8
|
+
}
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
const emit = defineEmits(['update:modelValue'])
|
|
12
|
+
|
|
13
|
+
const mutableValue = computed({
|
|
14
|
+
get() {
|
|
15
|
+
return props.modelValue
|
|
16
|
+
},
|
|
17
|
+
set(value) {
|
|
18
|
+
emit('update:modelValue', value)
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<Select v-model="mutableValue">
|
|
25
|
+
<SelectTrigger class="w-[180px]">
|
|
26
|
+
<SelectValue placeholder="Select a model" />
|
|
27
|
+
</SelectTrigger>
|
|
28
|
+
<SelectContent>
|
|
29
|
+
<SelectGroup>
|
|
30
|
+
<SelectLabel>Reasoning models</SelectLabel>
|
|
31
|
+
<SelectItem value="o4-mini">
|
|
32
|
+
o4-mini
|
|
33
|
+
</SelectItem>
|
|
34
|
+
<SelectItem value="o3">
|
|
35
|
+
o3
|
|
36
|
+
</SelectItem>
|
|
37
|
+
<SelectItem value="o3-pro">
|
|
38
|
+
o3-pro
|
|
39
|
+
</SelectItem>
|
|
40
|
+
<SelectItem value="o3-mini">
|
|
41
|
+
o3-mini
|
|
42
|
+
</SelectItem>
|
|
43
|
+
<SelectItem value="o1">
|
|
44
|
+
o1
|
|
45
|
+
</SelectItem>
|
|
46
|
+
<SelectItem value="o1-pro">
|
|
47
|
+
o1-pro
|
|
48
|
+
</SelectItem>
|
|
49
|
+
<SelectLabel>Flagship chat models</SelectLabel>
|
|
50
|
+
<SelectItem value="gpt-4.1">
|
|
51
|
+
GPT-4.1
|
|
52
|
+
</SelectItem>
|
|
53
|
+
<SelectItem value="gpt-4o">
|
|
54
|
+
GPT-4o
|
|
55
|
+
</SelectItem>
|
|
56
|
+
<SelectLabel>Cost-optimized models</SelectLabel>
|
|
57
|
+
<SelectItem value="o4-mini">
|
|
58
|
+
o4-mini
|
|
59
|
+
</SelectItem>
|
|
60
|
+
<SelectItem value="gpt-4.1-mini">
|
|
61
|
+
GPT-4.1 mini
|
|
62
|
+
</SelectItem>
|
|
63
|
+
<SelectItem value="gpt-4.1-nano">
|
|
64
|
+
GPT-4.1 nano
|
|
65
|
+
</SelectItem>
|
|
66
|
+
<SelectItem value="o3-mini">
|
|
67
|
+
o3-mini
|
|
68
|
+
</SelectItem>
|
|
69
|
+
<SelectItem value="gpt-4o-mini">
|
|
70
|
+
GPT-4o mini
|
|
71
|
+
</SelectItem>
|
|
72
|
+
</SelectGroup>
|
|
73
|
+
</SelectContent>
|
|
74
|
+
</Select>
|
|
75
|
+
</template>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import SendSMS from "./SendSMS.vue"
|
|
2
|
+
import MakeCall from "./MakeCall.vue"
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: "Twilio",
|
|
6
|
+
serviceTypes: {
|
|
7
|
+
messaging: {
|
|
8
|
+
name: "Messaging",
|
|
9
|
+
actionTypes: {
|
|
10
|
+
sendSms: {
|
|
11
|
+
name: "Send SMS",
|
|
12
|
+
component: SendSMS,
|
|
13
|
+
outputs: {
|
|
14
|
+
success: [
|
|
15
|
+
{
|
|
16
|
+
name: "result",
|
|
17
|
+
type: {
|
|
18
|
+
success: "true",
|
|
19
|
+
response: "string",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
error: [
|
|
24
|
+
{
|
|
25
|
+
name: "result",
|
|
26
|
+
type: {
|
|
27
|
+
success: "false",
|
|
28
|
+
error: "string | { message: string; code?: string }",
|
|
29
|
+
statusCode: "number?",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
// voice: {
|
|
38
|
+
// name: "Voice",
|
|
39
|
+
// actionTypes: {
|
|
40
|
+
// makeCall: {
|
|
41
|
+
// name: "Make call",
|
|
42
|
+
// component: MakeCall,
|
|
43
|
+
// outputs: {
|
|
44
|
+
// success: [
|
|
45
|
+
// {
|
|
46
|
+
// name: "result",
|
|
47
|
+
// type: {
|
|
48
|
+
// success: "true",
|
|
49
|
+
// response: "string",
|
|
50
|
+
// },
|
|
51
|
+
// },
|
|
52
|
+
// ],
|
|
53
|
+
// error: [
|
|
54
|
+
// {
|
|
55
|
+
// name: "result",
|
|
56
|
+
// type: {
|
|
57
|
+
// success: "false",
|
|
58
|
+
// error: "string | { message: string; code?: string }",
|
|
59
|
+
// statusCode: "number?",
|
|
60
|
+
// },
|
|
61
|
+
// },
|
|
62
|
+
// ],
|
|
63
|
+
// },
|
|
64
|
+
// },
|
|
65
|
+
// },
|
|
66
|
+
// },
|
|
67
|
+
},
|
|
68
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineProps({
|
|
3
|
+
type: {
|
|
4
|
+
type: String,
|
|
5
|
+
required: true
|
|
6
|
+
}
|
|
7
|
+
})
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<img src="@/assets/icons/firebase.webp" v-if="type === 'FIREBASE'" />
|
|
12
|
+
<img src="@/assets/icons/postgresql.webp" v-else-if="type === 'POSTGRESQL'" />
|
|
13
|
+
<img src="@/assets/icons/mysql.webp" v-else-if="type === 'MYSQL'" />
|
|
14
|
+
<img src="@/assets/icons/SFTP.webp" v-else-if="type === 'SFTP'" />
|
|
15
|
+
<img src="@/assets/icons/cloudflare.webp" v-else-if="type === 'CLOUDFLARE_R2'" />
|
|
16
|
+
<img src="@/assets/icons/openai.webp" v-else-if="type === 'OPENAI'" />
|
|
17
|
+
<img src="@/assets/icons/twilio.webp" v-else-if="type === 'TWILIO'" />
|
|
18
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IntegrationIcon } from './IntegrationIcon.vue'
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { cn } from '../../../lib/utils'
|
|
3
|
+
import { Label, type LabelProps } from 'reka-ui'
|
|
4
|
+
import { computed, type HTMLAttributes } from 'vue'
|
|
5
|
+
|
|
6
|
+
const props = defineProps<LabelProps & { class?: HTMLAttributes['class'] }>()
|
|
7
|
+
|
|
8
|
+
const delegatedProps = computed(() => {
|
|
9
|
+
const { class: _, ...delegated } = props
|
|
10
|
+
|
|
11
|
+
return delegated
|
|
12
|
+
})
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<Label
|
|
17
|
+
data-slot="label"
|
|
18
|
+
v-bind="delegatedProps"
|
|
19
|
+
:class="
|
|
20
|
+
cn(
|
|
21
|
+
'flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
22
|
+
props.class,
|
|
23
|
+
)
|
|
24
|
+
"
|
|
25
|
+
>
|
|
26
|
+
<slot />
|
|
27
|
+
</Label>
|
|
28
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Label } from './Label.vue'
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useVModel } from "@vueuse/core";
|
|
3
|
+
import LucideIconSelector from "./LucideIconSelector.vue";
|
|
4
|
+
import { icons } from "lucide-vue-next";
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
modelValue?: string
|
|
8
|
+
}>()
|
|
9
|
+
|
|
10
|
+
const emits = defineEmits<{
|
|
11
|
+
(e: 'update:modelValue', payload: string): void
|
|
12
|
+
}>()
|
|
13
|
+
|
|
14
|
+
const modelValue = useVModel(props, 'modelValue', emits, {
|
|
15
|
+
passive: true,
|
|
16
|
+
})
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<Popover>
|
|
21
|
+
<PopoverTrigger asChild>
|
|
22
|
+
<Button variant="outline" class="w-full">
|
|
23
|
+
<div v-if="modelValue" class="flex items-center gap-2 overflow-hidden px-2">
|
|
24
|
+
<component :is="icons[modelValue]" />
|
|
25
|
+
<span class="truncate text-xs text-muted-foreground">{{ modelValue }}</span>
|
|
26
|
+
</div>
|
|
27
|
+
<span class="text-xs text-muted-foreground" v-else>Select icon</span>
|
|
28
|
+
</Button>
|
|
29
|
+
</PopoverTrigger>
|
|
30
|
+
<PopoverContent class="flex flex-col h-full w-[420px] max-h-[420px] overflow-hidden">
|
|
31
|
+
<LucideIconSelector v-model="modelValue" />
|
|
32
|
+
</PopoverContent>
|
|
33
|
+
</Popover>
|
|
34
|
+
</template>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { icons } from "lucide-vue-next";
|
|
3
|
+
import { useVModel } from "@vueuse/core";
|
|
4
|
+
import { ref, computed } from "vue";
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
modelValue?: string
|
|
8
|
+
}>()
|
|
9
|
+
|
|
10
|
+
const emits = defineEmits<{
|
|
11
|
+
(e: 'update:modelValue', payload: string): void
|
|
12
|
+
}>()
|
|
13
|
+
|
|
14
|
+
const modelValue = useVModel(props, 'modelValue', emits, {
|
|
15
|
+
passive: true,
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const search = ref('')
|
|
19
|
+
|
|
20
|
+
const filteredIcons = computed(() => {
|
|
21
|
+
const searchTerm = search.value.toLowerCase();
|
|
22
|
+
let filtered = Object.entries(icons).reduce((acc, [iconName, IconComponent]) => {
|
|
23
|
+
if (iconName.toLowerCase().includes(searchTerm)) {
|
|
24
|
+
acc[iconName] = IconComponent;
|
|
25
|
+
}
|
|
26
|
+
return acc;
|
|
27
|
+
}, {});
|
|
28
|
+
return filtered
|
|
29
|
+
})
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<div class="flex flex-col w-[calc(100%+1rem)] h-full max-w-[800px] mx-auto overflow-hidden p-1 -ml-2 -mt-2">
|
|
34
|
+
<Input
|
|
35
|
+
v-model="search"
|
|
36
|
+
placeholder="Search icon..."
|
|
37
|
+
class="mb-4 shrink-0"
|
|
38
|
+
/>
|
|
39
|
+
|
|
40
|
+
<div class="grid gap-4 grid-cols-[repeat(auto-fill,_minmax(50px,_1fr))] overflow-y-auto">
|
|
41
|
+
<div
|
|
42
|
+
v-for="(IconComponent, iconName) in filteredIcons"
|
|
43
|
+
:key="iconName"
|
|
44
|
+
class="flex flex-col items-center text-center cursor-pointer p-2 rounded-xl"
|
|
45
|
+
:class="{
|
|
46
|
+
'bg-primary text-primary-foreground': modelValue === iconName,
|
|
47
|
+
}"
|
|
48
|
+
@click="modelValue = iconName"
|
|
49
|
+
>
|
|
50
|
+
<!-- Render the icon dynamically -->
|
|
51
|
+
<component :is="IconComponent" class="size-6" />
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { provide, ref, watch } from 'vue'
|
|
3
|
+
import MediaPickerItems from './MediaPickerItems.vue'
|
|
4
|
+
|
|
5
|
+
interface MediaItem {
|
|
6
|
+
url: string
|
|
7
|
+
name?: string
|
|
8
|
+
[key: string]: any
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type MediaItemType = string | MediaItem
|
|
12
|
+
|
|
13
|
+
const props = defineProps<{
|
|
14
|
+
modelValue: MediaItemType[],
|
|
15
|
+
sources: any[]
|
|
16
|
+
}>()
|
|
17
|
+
|
|
18
|
+
const emit = defineEmits<{
|
|
19
|
+
'update:modelValue': [value: MediaItemType[]]
|
|
20
|
+
}>()
|
|
21
|
+
|
|
22
|
+
const updateItems = (newItems: MediaItemType[]) => {
|
|
23
|
+
emit('update:modelValue', newItems)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const items = ref<MediaItemType[]>([...(props.modelValue || [])])
|
|
27
|
+
|
|
28
|
+
watch(() => props.modelValue, (newVal) => {
|
|
29
|
+
items.value = [...(newVal || [])]
|
|
30
|
+
}, { deep: true })
|
|
31
|
+
|
|
32
|
+
const mediaSources = computed(() => props.sources)
|
|
33
|
+
provide('media-items', items)
|
|
34
|
+
provide('update-media-items', updateItems)
|
|
35
|
+
provide('sources', mediaSources)
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<MediaPickerItems />
|
|
40
|
+
</template>
|