@uipath/apollo-wind 2.69.0 → 2.71.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/dist/components/custom/demo-composer.cjs +80 -0
- package/dist/components/custom/demo-composer.d.ts +11 -0
- package/dist/components/custom/demo-composer.js +46 -0
- package/dist/components/custom/panel-flow.cjs +2 -2
- package/dist/components/custom/panel-flow.js +2 -2
- package/dist/components/forms/field-control.cjs +3 -2
- package/dist/components/forms/field-control.js +3 -2
- package/dist/components/forms/validation-converter.cjs +14 -5
- package/dist/components/forms/validation-converter.js +14 -5
- package/dist/components/ui/chat-composer.cjs +429 -0
- package/dist/components/ui/chat-composer.d.ts +157 -0
- package/dist/components/ui/chat-composer.js +359 -0
- package/dist/components/ui/chat-hero.cjs +244 -0
- package/dist/components/ui/chat-hero.d.ts +51 -0
- package/dist/components/ui/chat-hero.js +189 -0
- package/dist/components/ui/citation.cjs +188 -0
- package/dist/components/ui/citation.d.ts +42 -0
- package/dist/components/ui/citation.js +148 -0
- package/dist/components/ui/date-picker.cjs +6 -5
- package/dist/components/ui/date-picker.js +7 -6
- package/dist/components/ui/datetime-picker.cjs +7 -10
- package/dist/components/ui/datetime-picker.js +8 -11
- package/dist/components/ui/dropzone-overlay.cjs +142 -0
- package/dist/components/ui/dropzone-overlay.d.ts +27 -0
- package/dist/components/ui/dropzone-overlay.js +105 -0
- package/dist/components/ui/file-upload.cjs +5 -29
- package/dist/components/ui/file-upload.js +2 -26
- package/dist/components/ui/file-validation.cjs +91 -0
- package/dist/components/ui/file-validation.d.ts +24 -0
- package/dist/components/ui/file-validation.js +51 -0
- package/dist/components/ui/hover-card.cjs +15 -8
- package/dist/components/ui/hover-card.d.ts +4 -1
- package/dist/components/ui/hover-card.js +16 -9
- package/dist/components/ui/index.cjs +304 -216
- package/dist/components/ui/index.d.ts +8 -0
- package/dist/components/ui/index.js +8 -0
- package/dist/components/ui/input-group.cjs +1 -1
- package/dist/components/ui/input-group.d.ts +2 -1
- package/dist/components/ui/input-group.js +1 -1
- package/dist/components/ui/message-actions.cjs +302 -0
- package/dist/components/ui/message-actions.d.ts +102 -0
- package/dist/components/ui/message-actions.js +241 -0
- package/dist/components/ui/message.cjs +1 -1
- package/dist/components/ui/message.d.ts +2 -0
- package/dist/components/ui/message.js +1 -1
- package/dist/components/ui/prompt-suggestions.cjs +133 -0
- package/dist/components/ui/prompt-suggestions.d.ts +52 -0
- package/dist/components/ui/prompt-suggestions.js +90 -0
- package/dist/components/ui/quick-form-field/components/field-header.cjs +9 -4
- package/dist/components/ui/quick-form-field/components/field-header.d.ts +4 -1
- package/dist/components/ui/quick-form-field/components/field-header.js +9 -4
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.cjs +2 -2
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.d.ts +5 -4
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.js +2 -2
- package/dist/components/ui/quick-form-field/index.d.ts +1 -1
- package/dist/components/ui/quick-form-field/quick-form-field.cjs +158 -222
- package/dist/components/ui/quick-form-field/quick-form-field.d.ts +6 -4
- package/dist/components/ui/quick-form-field/quick-form-field.js +159 -223
- package/dist/components/ui/quick-form-field/types.cjs +2 -2
- package/dist/components/ui/quick-form-field/types.d.ts +39 -32
- package/dist/components/ui/quick-form-field/types.js +2 -2
- package/dist/components/ui/quick-form-field/utils.cjs +5 -59
- package/dist/components/ui/quick-form-field/utils.d.ts +2 -24
- package/dist/components/ui/quick-form-field/utils.js +3 -48
- package/dist/components/ui/sources.cjs +175 -0
- package/dist/components/ui/sources.d.ts +44 -0
- package/dist/components/ui/sources.js +132 -0
- package/dist/index.cjs +156 -7
- package/dist/index.d.ts +17 -1
- package/dist/index.js +9 -1
- package/dist/lib/date-value.cjs +46 -0
- package/dist/lib/date-value.d.ts +8 -0
- package/dist/lib/date-value.js +12 -0
- package/dist/lib/index.cjs +8 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +2 -1
- package/dist/lib/url.cjs +54 -0
- package/dist/lib/url.d.ts +8 -0
- package/dist/lib/url.js +17 -0
- package/dist/styles.css +239 -78
- package/dist/tailwind.utilities.css +15 -0
- package/package.json +1 -1
- package/dist/components/custom/chat-composer.cjs +0 -134
- package/dist/components/custom/chat-composer.d.ts +0 -14
- package/dist/components/custom/chat-composer.js +0 -100
- package/dist/components/custom/chat-first-experience.cjs +0 -87
- package/dist/components/custom/chat-first-experience.d.ts +0 -24
- package/dist/components/custom/chat-first-experience.js +0 -53
- package/dist/components/custom/chat-prompt-suggestions.cjs +0 -49
- package/dist/components/custom/chat-prompt-suggestions.d.ts +0 -18
- package/dist/components/custom/chat-prompt-suggestions.js +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -42,8 +42,14 @@ export { Calendar } from './components/ui/calendar';
|
|
|
42
42
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from './components/ui/card';
|
|
43
43
|
export type { ChartConfig } from './components/ui/chart';
|
|
44
44
|
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, } from './components/ui/chart';
|
|
45
|
+
export type { ChatComposerAttachButtonProps, ChatComposerAttachmentItem, ChatComposerAttachmentsProps, ChatComposerContextValue, ChatComposerDensity, ChatComposerErrorProps, ChatComposerFooterProps, ChatComposerInputGroupProps, ChatComposerProps, ChatComposerStatus, ChatComposerStrings, ChatComposerSubmitDetails, ChatComposerSubmitProps, ChatComposerTextareaProps, ChatComposerToolbarProps, } from './components/ui/chat-composer';
|
|
46
|
+
export { ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, chatComposerErrorVariants, chatComposerVariants, DEFAULT_CHAT_COMPOSER_STRINGS, useChatComposer, } from './components/ui/chat-composer';
|
|
47
|
+
export type { ChatHeroDensity, ChatHeroLayout, ChatHeroProps, ChatHeroTitleProps, } from './components/ui/chat-hero';
|
|
48
|
+
export { ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, } from './components/ui/chat-hero';
|
|
45
49
|
export type { CheckboxProps } from './components/ui/checkbox';
|
|
46
50
|
export { Checkbox } from './components/ui/checkbox';
|
|
51
|
+
export type { CitationData, CitationProps, CitationStrings } from './components/ui/citation';
|
|
52
|
+
export { Citation, citationVariants, DEFAULT_CITATION_STRINGS } from './components/ui/citation';
|
|
47
53
|
export type { CodeBlockHeaderProps, CodeBlockProps, CodeBlockStrings, } from './components/ui/code-block';
|
|
48
54
|
export { CodeBlock, CodeBlockHeader, DEFAULT_CODE_BLOCK_STRINGS, } from './components/ui/code-block';
|
|
49
55
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger, } from './components/ui/collapsible';
|
|
@@ -60,6 +66,8 @@ export { DateTimePicker } from './components/ui/datetime-picker';
|
|
|
60
66
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, } from './components/ui/dialog';
|
|
61
67
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, } from './components/ui/drawer';
|
|
62
68
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from './components/ui/dropdown-menu';
|
|
69
|
+
export type { DropzoneOverlayProps, DropzoneOverlayStrings, } from './components/ui/dropzone-overlay';
|
|
70
|
+
export { DEFAULT_DROPZONE_OVERLAY_STRINGS, DropzoneOverlay, } from './components/ui/dropzone-overlay';
|
|
63
71
|
export type { EditableCellMeta, EditableCellType, } from './components/ui/editable-cell';
|
|
64
72
|
export { createEditableColumn, EditableCell, } from './components/ui/editable-cell';
|
|
65
73
|
export type { EmptyStateProps } from './components/ui/empty-state';
|
|
@@ -70,6 +78,8 @@ export type { BuiltInValueModesOptions, FieldMenuItem, FieldMenuMode, FieldMenuP
|
|
|
70
78
|
export { BUILTIN_VALUE_MODES, builtInValueModes, DEFAULT_VALUE_MODE_STRINGS, FieldMenu, ValueModeIndicator, ValueModeSwitchDialog, } from './components/ui/field-addons';
|
|
71
79
|
export type { FileUploadProps } from './components/ui/file-upload';
|
|
72
80
|
export { FileUpload } from './components/ui/file-upload';
|
|
81
|
+
export type { FileRejection, FileRejectionReason, FileValidationOptions, } from './components/ui/file-validation';
|
|
82
|
+
export { formatFileSize, isFileTypeAccepted, validateFiles, } from './components/ui/file-validation';
|
|
73
83
|
export type { FolderPickerContentProps, FolderPickerEntry, FolderPickerLoadChildren, FolderPickerProps, } from './components/ui/folder-picker';
|
|
74
84
|
export { FolderPicker, FolderPickerContent, keepFolderSearchOnEscape, } from './components/ui/folder-picker';
|
|
75
85
|
export type { FormFieldDescriptionProps, FormFieldErrorProps, FormFieldHeaderProps, FormFieldLabelProps, FormFieldProps, } from './components/ui/form-field';
|
|
@@ -101,6 +111,8 @@ export type { MarkerProps } from './components/ui/marker';
|
|
|
101
111
|
export { Marker, MarkerContent, MarkerIcon, markerVariants } from './components/ui/marker';
|
|
102
112
|
export type { MessageProps } from './components/ui/message';
|
|
103
113
|
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, } from './components/ui/message';
|
|
114
|
+
export type { MessageActionCopyProps, MessageActionCopyStrings, MessageActionFeedbackProps, MessageActionFeedbackStrings, MessageActionItem, MessageActionProps, MessageActionsOverflowProps, MessageActionsOverflowStrings, MessageActionsProps, MessageActionsStrings, MessageFeedbackValue, } from './components/ui/message-actions';
|
|
115
|
+
export { DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, messageActionsVariants, } from './components/ui/message-actions';
|
|
104
116
|
export type { MessageScrollerButtonProps, MessageScrollerButtonStrings, MessageScrollerContentProps, MessageScrollerDefaultScrollPosition, MessageScrollerItemProps, MessageScrollerProps, MessageScrollerScrollable, MessageScrollerScrollAlign, MessageScrollerScrollOptions, MessageScrollerViewportProps, MessageScrollerViewportStrings, MessageScrollerVisibilityState, } from './components/ui/message-scroller';
|
|
105
117
|
export { DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from './components/ui/message-scroller';
|
|
106
118
|
export type { AnnotatedModel, ByomDetails, CostTier, DeprecationDetails, DeriveModelTagsContext, DiscoveryModel, FolderSwitcherFolder, FolderSwitcherProps, GroupHeaderProps, GroupModelsContext, GroupStrategy, ModelBadgeDefinition, ModelBadgeKind, ModelCostDetails, ModelDetails, ModelFlatCosts, ModelGeography, ModelGroup, ModelOptionRowProps, ModelPickerChangeHandler, ModelPickerLabels, ModelPickerProps, ModelPickerSlotContext, ModelPickerSlots, ModelPickerVariant, ModelSubscriptionType, ModelTag, ModelTagChipProps, ModelTagKind, ModelTieredCost, ModelType, ModelVendor, OptionListProps, PickerPopupProps, PickerSearchInputProps, PickerTriggerProps, RoutingDetails, StaticLabelKey, UseModelPickerStateOptions, UseModelPickerStateResult, } from './components/ui/model-picker';
|
|
@@ -114,9 +126,11 @@ export { PortalContainerProvider } from './components/ui/portal-container';
|
|
|
114
126
|
export { Progress } from './components/ui/progress';
|
|
115
127
|
export type { MarkdownPreviewTokenOverride, PromptEditorAutoCompleteOption, PromptEditorAutocompleteMenuProps, PromptEditorDiffType, PromptEditorMode, PromptEditorProps, PromptEditorRef, PromptEditorRenderTokenPill, PromptEditorStrings, PromptEditorToken, PromptEditorTokenPillSlotProps, PromptEditorTokenType, PromptEditorToolbarActiveFormats, PromptTokenNode, TokenPillProps, TokenPillWithTooltipProps, } from './components/ui/prompt-editor';
|
|
116
128
|
export { $insertTokenAtCursor, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, DEFAULT_PROMPT_EDITOR_STRINGS, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, InputTokenNode, inferTokenTypeFromPath, isPromptTokenNode, normalizeRichTextTokens, normalizeVariablePath, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, PromptEditor, ResourceTokenNode, StateTokenNode, setEditorTokens, TokenPill, TokenPillWithTooltip, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, WORD_JOINER, } from './components/ui/prompt-editor';
|
|
129
|
+
export type { PromptSuggestionItem, PromptSuggestionsDensity, PromptSuggestionsOrientation, PromptSuggestionsProps, PromptSuggestionsStrings, } from './components/ui/prompt-suggestions';
|
|
130
|
+
export { DEFAULT_PROMPT_SUGGESTIONS_STRINGS, PromptSuggestions, promptSuggestionsListVariants, promptSuggestionVariants, } from './components/ui/prompt-suggestions';
|
|
117
131
|
export type { PromptValueControlProps } from './components/ui/prompt-value-control';
|
|
118
132
|
export { PromptValueControl } from './components/ui/prompt-value-control';
|
|
119
|
-
export type { QuickFieldType, QuickFormFieldMode, QuickFormFieldMoreActions, QuickFormFieldOption, QuickFormFieldProps, QuickFormFieldStrings, VariableInsertContext, } from './components/ui/quick-form-field';
|
|
133
|
+
export type { QuickFieldType, QuickFormFieldControlProps, QuickFormFieldMode, QuickFormFieldMoreActions, QuickFormFieldOption, QuickFormFieldProps, QuickFormFieldStrings, VariableInsertContext, } from './components/ui/quick-form-field';
|
|
120
134
|
export { DEFAULT_QUICK_FORM_FIELD_STRINGS, FIELD_TYPE_META, FIELD_TYPE_ORDER, QuickFormField, } from './components/ui/quick-form-field';
|
|
121
135
|
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
|
|
122
136
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from './components/ui/resizable';
|
|
@@ -132,6 +146,8 @@ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupActio
|
|
|
132
146
|
export { Skeleton } from './components/ui/skeleton';
|
|
133
147
|
export { Slider } from './components/ui/slider';
|
|
134
148
|
export { Toaster, toast } from './components/ui/sonner';
|
|
149
|
+
export type { SourceData, SourceItemProps, SourcesProps, SourcesStrings, } from './components/ui/sources';
|
|
150
|
+
export { DEFAULT_SOURCES_STRINGS, SourceItem, Sources, SourcesList, } from './components/ui/sources';
|
|
135
151
|
export type { SpinnerProps } from './components/ui/spinner';
|
|
136
152
|
export { Spinner, spinnerVariants } from './components/ui/spinner';
|
|
137
153
|
export type { StatsCardProps } from './components/ui/stats-card';
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,10 @@ import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "./components
|
|
|
27
27
|
import { Calendar } from "./components/ui/calendar.js";
|
|
28
28
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/ui/card.js";
|
|
29
29
|
import { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/ui/chart.js";
|
|
30
|
+
import { ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, DEFAULT_CHAT_COMPOSER_STRINGS, chatComposerErrorVariants, chatComposerVariants, useChatComposer } from "./components/ui/chat-composer.js";
|
|
31
|
+
import { ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants } from "./components/ui/chat-hero.js";
|
|
30
32
|
import { Checkbox } from "./components/ui/checkbox.js";
|
|
33
|
+
import { Citation, DEFAULT_CITATION_STRINGS, citationVariants } from "./components/ui/citation.js";
|
|
31
34
|
import { CodeBlock, CodeBlockHeader, DEFAULT_CODE_BLOCK_STRINGS } from "./components/ui/code-block.js";
|
|
32
35
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./components/ui/collapsible.js";
|
|
33
36
|
import { Combobox } from "./components/ui/combobox.js";
|
|
@@ -39,11 +42,13 @@ import { DateTimePicker } from "./components/ui/datetime-picker.js";
|
|
|
39
42
|
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger } from "./components/ui/dialog.js";
|
|
40
43
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./components/ui/drawer.js";
|
|
41
44
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
45
|
+
import { DEFAULT_DROPZONE_OVERLAY_STRINGS, DropzoneOverlay } from "./components/ui/dropzone-overlay.js";
|
|
42
46
|
import { EditableCell, createEditableColumn } from "./components/ui/editable-cell.js";
|
|
43
47
|
import { EmptyState } from "./components/ui/empty-state.js";
|
|
44
48
|
import { AiAssistAction, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, InsertVariableAction } from "./components/ui/field-actions/index.js";
|
|
45
49
|
import { BUILTIN_VALUE_MODES, DEFAULT_VALUE_MODE_STRINGS, FieldMenu, ValueModeIndicator, ValueModeSwitchDialog, builtInValueModes } from "./components/ui/field-addons/index.js";
|
|
46
50
|
import { FileUpload } from "./components/ui/file-upload.js";
|
|
51
|
+
import { formatFileSize, isFileTypeAccepted, validateFiles } from "./components/ui/file-validation.js";
|
|
47
52
|
import { FolderPicker, FolderPickerContent, keepFolderSearchOnEscape } from "./components/ui/folder-picker/index.js";
|
|
48
53
|
import { FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel } from "./components/ui/form-field.js";
|
|
49
54
|
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./components/ui/hover-card.js";
|
|
@@ -60,6 +65,7 @@ import { LockableValueField } from "./components/ui/lockable-value-field/index.j
|
|
|
60
65
|
import { DEFAULT_MARKDOWN_STRINGS, Markdown } from "./components/ui/markdown.js";
|
|
61
66
|
import { Marker, MarkerContent, MarkerIcon, markerVariants } from "./components/ui/marker.js";
|
|
62
67
|
import { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./components/ui/message.js";
|
|
68
|
+
import { DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, messageActionsVariants } from "./components/ui/message-actions.js";
|
|
63
69
|
import { DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "./components/ui/message-scroller/index.js";
|
|
64
70
|
import { DEFAULT_MODEL_PICKER_LABELS, FolderSwitcher, GroupHeader, GroupedOptionList, MODEL_BADGES, ModelOptionRow, ModelPicker, ModelTagChip, PickerPopup, PickerSearchInput, PickerTrigger, VirtualOptionList, defaultCostTier, defaultRowActions, deriveModelTags, filterModels, formatContextWindow, getSubstitutionTarget, groupModels, isTextGenerationModel, optionDomId, resolveHomeGeography, resolveLabels, useModelPickerState } from "./components/ui/model-picker/index.js";
|
|
65
71
|
import { DEFAULT_MULTI_SELECT_STRINGS, MultiSelect } from "./components/ui/multi-select.js";
|
|
@@ -68,6 +74,7 @@ import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./compon
|
|
|
68
74
|
import { PortalContainerProvider } from "./components/ui/portal-container.js";
|
|
69
75
|
import { Progress } from "./components/ui/progress.js";
|
|
70
76
|
import { $insertTokenAtCursor, DEFAULT_PROMPT_EDITOR_STRINGS, InputTokenNode, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, PromptEditor, ResourceTokenNode, StateTokenNode, TokenPill, TokenPillWithTooltip, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, WORD_JOINER, createInputTokenNode, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, inferTokenTypeFromPath, isPromptTokenNode, normalizeRichTextTokens, normalizeVariablePath, setEditorTokens } from "./components/ui/prompt-editor/index.js";
|
|
77
|
+
import { DEFAULT_PROMPT_SUGGESTIONS_STRINGS, PromptSuggestions, promptSuggestionVariants, promptSuggestionsListVariants } from "./components/ui/prompt-suggestions.js";
|
|
71
78
|
import { PromptValueControl } from "./components/ui/prompt-value-control.js";
|
|
72
79
|
import { DEFAULT_QUICK_FORM_FIELD_STRINGS, FIELD_TYPE_META, FIELD_TYPE_ORDER, QuickFormField } from "./components/ui/quick-form-field/index.js";
|
|
73
80
|
import { RadioGroup, RadioGroupItem } from "./components/ui/radio-group.js";
|
|
@@ -81,6 +88,7 @@ import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupActio
|
|
|
81
88
|
import { Skeleton } from "./components/ui/skeleton.js";
|
|
82
89
|
import { Slider } from "./components/ui/slider.js";
|
|
83
90
|
import { Toaster, toast } from "./components/ui/sonner.js";
|
|
91
|
+
import { DEFAULT_SOURCES_STRINGS, SourceItem, Sources, SourcesList } from "./components/ui/sources.js";
|
|
84
92
|
import { Spinner, spinnerVariants } from "./components/ui/spinner.js";
|
|
85
93
|
import { StatsCard } from "./components/ui/stats-card.js";
|
|
86
94
|
import { Stepper } from "./components/ui/stepper.js";
|
|
@@ -99,4 +107,4 @@ import tree_view, { TreeView } from "./components/ui/tree-view.js";
|
|
|
99
107
|
import { VariablePicker, VariablePickerContent } from "./components/ui/variable-picker/index.js";
|
|
100
108
|
import { VariableValueControl } from "./components/ui/variable-value-control.js";
|
|
101
109
|
import { cn } from "./lib/utils.js";
|
|
102
|
-
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeBlock, CodeBlockHeader, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableCell, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadingDotsVariants, markerVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validationPlugin, workflowPlugin };
|
|
110
|
+
export { $insertTokenAtCursor, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AiAssistAction, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Avatar, AvatarFallback, AvatarImage, BUILTIN_VALUE_MODES, Badge, BooleanRadioGroup, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, ChatComposer, ChatComposerAttachButton, ChatComposerAttachments, ChatComposerError, ChatComposerFooter, ChatComposerInputGroup, ChatComposerSubmit, ChatComposerTextarea, ChatComposerToolbar, ChatHero, ChatHeroDescription, ChatHeroHeader, ChatHeroLogo, ChatHeroTitle, Checkbox, Citation, CodeBlock, CodeBlockHeader, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_AI_ASSIST_ACTION_STRINGS, DEFAULT_BOOLEAN_RADIO_GROUP_STRINGS, DEFAULT_CHAT_COMPOSER_STRINGS, DEFAULT_CITATION_STRINGS, DEFAULT_CODE_BLOCK_STRINGS, DEFAULT_DROPZONE_OVERLAY_STRINGS, DEFAULT_INSERT_VARIABLE_ACTION_STRINGS, DEFAULT_JSON_TREE_VIEW_STRINGS, DEFAULT_LOADING_DOTS_STRINGS, DEFAULT_MARKDOWN_STRINGS, DEFAULT_MESSAGE_ACTIONS_OVERFLOW_STRINGS, DEFAULT_MESSAGE_ACTIONS_STRINGS, DEFAULT_MESSAGE_ACTION_COPY_STRINGS, DEFAULT_MESSAGE_ACTION_FEEDBACK_STRINGS, DEFAULT_MESSAGE_SCROLLER_BUTTON_STRINGS, DEFAULT_MESSAGE_SCROLLER_VIEWPORT_STRINGS, DEFAULT_METADATA_FORM_STRINGS, DEFAULT_MODEL_PICKER_LABELS, DEFAULT_MULTI_SELECT_STRINGS, DEFAULT_PROMPT_EDITOR_STRINGS, DEFAULT_PROMPT_SUGGESTIONS_STRINGS, DEFAULT_QUICK_FORM_FIELD_STRINGS, DEFAULT_SOURCES_STRINGS, DEFAULT_THINKING_INDICATOR_STRINGS, DEFAULT_TOOL_CALL_STRINGS, DEFAULT_VALUE_MODE_STRINGS, DataFetcher, DataSourceBuilder, DataTable, DataTableColumnHeader, DataTableSelectColumn, DataTransformers, DatePicker, DateRangePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropzoneOverlay, EditableCell, EmptyState, ExpressionBuilder, FIELD_CONTROL_GEOMETRY, FIELD_TYPE_META, FIELD_TYPE_ORDER, FetchAdapter, FieldControl, FieldMenu, tree_view as FileTreeView, FileUpload, FolderPicker, FolderPickerContent, FolderSwitcher, FormDesigner, FormField, FormFieldDescription, FormFieldError, FormFieldHeader, FormFieldLabel, FormFieldRenderer, FormStateViewer, Grid, GroupHeader, GroupedOptionList, HoverCard, HoverCardContent, HoverCardTrigger, InfoTooltip, Input, InputGroup, InputGroupAddon, InputGroupBody, InputGroupButton, InputGroupInput, InputGroupPopoverTrigger, InputGroupRow, InputGroupText, InputGroupTextarea, InputGroupTrigger, InputTokenNode, InsertVariableAction, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, Label, LiveRegion, LoadingDots, LockableValueField, MODEL_BADGES, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAction, MessageActionCopy, MessageActionFeedback, MessageActions, MessageActionsOverflow, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, MetadataForm, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, ModeAwareField, ModelOptionRow, ModelPicker, ModelTagChip, MultiSelect, OutputTokenNode, PROMPT_EDITOR_RICH_TRANSFORMERS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelTabs, PanelTabsContent, PanelTabsList, PanelTabsStrip, PanelTabsTrigger, PickerPopup, PickerSearchInput, PickerTrigger, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, PromptEditor, PromptSuggestions, PromptValueControl, QuickFormField, RadioGroup, RadioGroupItem, RequiredIndicator, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResourceTokenNode, Row, RuleBuilder, RulesEngine, ScrollArea, ScrollBar, ScrollableTabsList, Search, SearchWithSuggestions, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SourceItem, Sources, SourcesList, Spinner, StateTokenNode, StatsCard, Stepper, StringListField, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThinkingIndicator, Toaster, Toggle, ToggleGroup, ToggleGroupItem, TokenPill, TokenPillWithTooltip, ToolCall, ToolCallContent, ToolCallError, ToolCallHeader, ToolCallInput, ToolCallOutput, ToolCallSection, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, TreeView, VALUE_MODE_OPAQUE, VARIABLE_DRAG_MIME, VARIABLE_PATH_REGEX, ValueModeIndicator, ValueModeSwitchDialog, VariablePicker, VariablePickerContent, VariableValueControl, VirtualOptionList, WORD_JOINER, analyticsPlugin, appendPathSegment, attachmentVariants, auditPlugin, autoSavePlugin, badgeVariants, bubbleVariants, buildJsonTree, builtInValueModes, buttonVariants, chatComposerErrorVariants, chatComposerVariants, chatHeroDescriptionVariants, chatHeroTitleVariants, chatHeroVariants, citationVariants, cn, collectContainerPaths, copyTextToClipboard, createAiAssistAction, createClearAction, createEditableColumn, createInputTokenNode, createInsertVariableAction, createOutputTokenNode, createResourceTokenNode, createStateTokenNode, createTokenNodeForOption, defaultCostTier, defaultRowActions, deriveModelTags, envelopeCodec, filterModels, flattenJsonTree, formatContextWindow, formatFileSize, formatLeafValue, formatTemplate, formattingPlugin, getAllPromptTokenNodes, getEditorTokens, getPromptEditorTokenColors, getPromptEditorTokenTypeLabel, getSubstitutionTarget, getValueAtPath, groupModels, hasMinMaxStep, hasOptions, inferTokenTypeFromPath, inferValueType, inputGroupVariants, isArrayItemTemplateRoot, isCustomField, isEmptyModeValue, isFileField, isFileTypeAccepted, isJsonObject, isPathCollapsed, isPromptTokenNode, isTextGenerationModel, isValueModeEnvelope, keepFolderSearchOnEscape, literalValues, loadingDotsVariants, markerVariants, messageActionsVariants, normalizeRichTextTokens, normalizeVariablePath, optionDomId, promptSuggestionVariants, promptSuggestionsListVariants, removeValueAtPath, resolveHomeGeography, resolveLabels, resolveVariables, schemaDisplayType, setEditorTokens, setValueAtPath, sidebarMenuButtonVariants, spinnerVariants, thinkingIndicatorVariants, toast, toggleVariants, toolCallVariants, useChatComposer, useInputGroup, useJsonTreeViewStrings, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, useModelPickerState, useSidebar, useWatch, validateFiles, validationPlugin, workflowPlugin };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
toDateValue: ()=>toDateValue
|
|
28
|
+
});
|
|
29
|
+
const external_date_fns_namespaceObject = require("date-fns");
|
|
30
|
+
const DATE_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
31
|
+
const DATE_TIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?$/;
|
|
32
|
+
function toDateValue(value) {
|
|
33
|
+
if (value instanceof Date) {
|
|
34
|
+
if ((0, external_date_fns_namespaceObject.isValid)(value)) return value;
|
|
35
|
+
} else if ('string' == typeof value && (DATE_PATTERN.test(value) || DATE_TIME_PATTERN.test(value))) {
|
|
36
|
+
const date = (0, external_date_fns_namespaceObject.parseISO)(value);
|
|
37
|
+
if ((0, external_date_fns_namespaceObject.isValid)(date)) return date;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.toDateValue = __webpack_exports__.toDateValue;
|
|
41
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
42
|
+
"toDateValue"
|
|
43
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
44
|
+
Object.defineProperty(exports, '__esModule', {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads a date or date-time value from untyped input, such as JSON-sourced form data.
|
|
3
|
+
*
|
|
4
|
+
* Accepts a valid `Date` or an RFC 3339 date / date-time string; a date-only string is a local
|
|
5
|
+
* calendar date. Anything else is no value: the standard parsers disagree on numbers, digit-only
|
|
6
|
+
* and locale strings, so they are not guessed at.
|
|
7
|
+
*/
|
|
8
|
+
export declare function toDateValue(value: unknown): Date | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isValid, parseISO } from "date-fns";
|
|
2
|
+
const DATE_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
|
|
3
|
+
const DATE_TIME_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?$/;
|
|
4
|
+
function toDateValue(value) {
|
|
5
|
+
if (value instanceof Date) {
|
|
6
|
+
if (isValid(value)) return value;
|
|
7
|
+
} else if ('string' == typeof value && (DATE_PATTERN.test(value) || DATE_TIME_PATTERN.test(value))) {
|
|
8
|
+
const date = parseISO(value);
|
|
9
|
+
if (isValid(date)) return date;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export { toDateValue };
|
package/dist/lib/index.cjs
CHANGED
|
@@ -25,20 +25,27 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
composeRefs: ()=>external_utils_cjs_namespaceObject.composeRefs,
|
|
28
|
+
safeHref: ()=>external_url_cjs_namespaceObject.safeHref,
|
|
28
29
|
cn: ()=>external_utils_cjs_namespaceObject.cn,
|
|
30
|
+
isSafeHref: ()=>external_url_cjs_namespaceObject.isSafeHref,
|
|
29
31
|
get: ()=>external_utils_cjs_namespaceObject.get,
|
|
30
32
|
deepEqual: ()=>external_utils_cjs_namespaceObject.deepEqual
|
|
31
33
|
});
|
|
34
|
+
const external_url_cjs_namespaceObject = require("./url.cjs");
|
|
32
35
|
const external_utils_cjs_namespaceObject = require("./utils.cjs");
|
|
33
36
|
exports.cn = __webpack_exports__.cn;
|
|
34
37
|
exports.composeRefs = __webpack_exports__.composeRefs;
|
|
35
38
|
exports.deepEqual = __webpack_exports__.deepEqual;
|
|
36
39
|
exports.get = __webpack_exports__.get;
|
|
40
|
+
exports.isSafeHref = __webpack_exports__.isSafeHref;
|
|
41
|
+
exports.safeHref = __webpack_exports__.safeHref;
|
|
37
42
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
38
43
|
"cn",
|
|
39
44
|
"composeRefs",
|
|
40
45
|
"deepEqual",
|
|
41
|
-
"get"
|
|
46
|
+
"get",
|
|
47
|
+
"isSafeHref",
|
|
48
|
+
"safeHref"
|
|
42
49
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
43
50
|
Object.defineProperty(exports, '__esModule', {
|
|
44
51
|
value: true
|
package/dist/lib/index.d.ts
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/lib/url.cjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
isSafeHref: ()=>isSafeHref,
|
|
28
|
+
safeHref: ()=>safeHref
|
|
29
|
+
});
|
|
30
|
+
const SAFE_HREF_PROTOCOLS = new Set([
|
|
31
|
+
'http:',
|
|
32
|
+
'https:',
|
|
33
|
+
'mailto:',
|
|
34
|
+
'tel:'
|
|
35
|
+
]);
|
|
36
|
+
function isSafeHref(href) {
|
|
37
|
+
try {
|
|
38
|
+
return SAFE_HREF_PROTOCOLS.has(new URL(href, 'https://relative.invalid').protocol);
|
|
39
|
+
} catch {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function safeHref(href) {
|
|
44
|
+
return href && isSafeHref(href) ? href : void 0;
|
|
45
|
+
}
|
|
46
|
+
exports.isSafeHref = __webpack_exports__.isSafeHref;
|
|
47
|
+
exports.safeHref = __webpack_exports__.safeHref;
|
|
48
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
49
|
+
"isSafeHref",
|
|
50
|
+
"safeHref"
|
|
51
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
52
|
+
Object.defineProperty(exports, '__esModule', {
|
|
53
|
+
value: true
|
|
54
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an href is safe to render as a link or open. Model or user supplied URLs can carry
|
|
3
|
+
* `javascript:`, `data:` or `vbscript:`; the URL parser lowercases the scheme and strips the
|
|
4
|
+
* whitespace and control characters that defeat substring checks. Relative URLs are allowed.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isSafeHref(href: string): boolean;
|
|
7
|
+
/** `href` when it passes {@link isSafeHref}, otherwise `undefined`. */
|
|
8
|
+
export declare function safeHref(href: string | undefined): string | undefined;
|
package/dist/lib/url.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const SAFE_HREF_PROTOCOLS = new Set([
|
|
2
|
+
'http:',
|
|
3
|
+
'https:',
|
|
4
|
+
'mailto:',
|
|
5
|
+
'tel:'
|
|
6
|
+
]);
|
|
7
|
+
function isSafeHref(href) {
|
|
8
|
+
try {
|
|
9
|
+
return SAFE_HREF_PROTOCOLS.has(new URL(href, 'https://relative.invalid').protocol);
|
|
10
|
+
} catch {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function safeHref(href) {
|
|
15
|
+
return href && isSafeHref(href) ? href : void 0;
|
|
16
|
+
}
|
|
17
|
+
export { isSafeHref, safeHref };
|