@alquimia-ai/ui 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/chunk-6EP6KTGV.mjs +1529 -0
- package/dist/chunk-6EP6KTGV.mjs.map +1 -0
- package/dist/chunk-HGMICDIH.mjs +21 -0
- package/dist/chunk-HGMICDIH.mjs.map +1 -0
- package/dist/index.d.mts +653 -0
- package/dist/index.d.ts +653 -0
- package/dist/index.js +4344 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1663 -0
- package/dist/index.mjs.map +1 -0
- package/dist/pdf-viewer-J3ENKRHZ.mjs +177 -0
- package/dist/pdf-viewer-J3ENKRHZ.mjs.map +1 -0
- package/dist/plain-text-viewer-Q3O4LAOE.mjs +244 -0
- package/dist/plain-text-viewer-Q3O4LAOE.mjs.map +1 -0
- package/package.json +93 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
6
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
7
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
8
|
+
import * as vaul from 'vaul';
|
|
9
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
10
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
11
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
12
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
13
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
14
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
15
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
16
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
17
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
18
|
+
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
19
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
20
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
21
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
22
|
+
import { Message } from 'ai';
|
|
23
|
+
import { AlquimiaSDK } from '@alquimia-ai/tools/sdk';
|
|
24
|
+
import { RatingData as RatingData$1, ActionResponse as ActionResponse$1 } from '@alquimia-ai/tools/types';
|
|
25
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
26
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
27
|
+
import { LucideIcon } from 'lucide-react';
|
|
28
|
+
import { Toaster as Toaster$2 } from 'sonner';
|
|
29
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
30
|
+
import { ClassValue } from 'clsx';
|
|
31
|
+
|
|
32
|
+
declare const buttonVariants: (props?: ({
|
|
33
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
34
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
35
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
36
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
}
|
|
39
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
40
|
+
|
|
41
|
+
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
42
|
+
}
|
|
43
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
44
|
+
|
|
45
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
46
|
+
}
|
|
47
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
48
|
+
|
|
49
|
+
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
50
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
52
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
53
|
+
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
58
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
|
|
60
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
61
|
+
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
62
|
+
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
63
|
+
|
|
64
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
|
|
67
|
+
interface RichTextProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
68
|
+
content: string;
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
declare function RichText({ content, className }: RichTextProps): React$1.JSX.Element;
|
|
72
|
+
|
|
73
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
78
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
79
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
80
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
|
|
82
|
+
declare const Drawer: {
|
|
83
|
+
({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): React$1.JSX.Element;
|
|
84
|
+
displayName: string;
|
|
85
|
+
};
|
|
86
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
87
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
88
|
+
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
89
|
+
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
declare const DrawerHeader: {
|
|
92
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
93
|
+
displayName: string;
|
|
94
|
+
};
|
|
95
|
+
declare const DrawerFooter: {
|
|
96
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
97
|
+
displayName: string;
|
|
98
|
+
};
|
|
99
|
+
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
100
|
+
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
101
|
+
|
|
102
|
+
interface TypographyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
103
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span";
|
|
104
|
+
typeStyle: "display" | "heading1" | "heading2" | "heading3" | "heading4" | "small" | "tiny";
|
|
105
|
+
}
|
|
106
|
+
declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
107
|
+
|
|
108
|
+
declare const badgeVariants: (props?: ({
|
|
109
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
110
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
111
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
112
|
+
}
|
|
113
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
114
|
+
|
|
115
|
+
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
116
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
117
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
118
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
119
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
120
|
+
|
|
121
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
122
|
+
|
|
123
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
124
|
+
|
|
125
|
+
declare const toggleVariants: (props?: ({
|
|
126
|
+
variant?: "default" | "outline" | null | undefined;
|
|
127
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
128
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
129
|
+
declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
130
|
+
variant?: "default" | "outline" | null | undefined;
|
|
131
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
132
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
133
|
+
|
|
134
|
+
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
135
|
+
|
|
136
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
137
|
+
|
|
138
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
139
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
140
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
141
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
142
|
+
|
|
143
|
+
declare const AspectRatio: React$1.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
144
|
+
|
|
145
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
146
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
147
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
148
|
+
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
149
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
150
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
151
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
152
|
+
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
153
|
+
|
|
154
|
+
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
155
|
+
separator?: React$1.ReactNode;
|
|
156
|
+
} & React$1.RefAttributes<HTMLElement>>;
|
|
157
|
+
declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
158
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
159
|
+
declare const BreadcrumbLink: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
160
|
+
asChild?: boolean;
|
|
161
|
+
} & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
162
|
+
declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
163
|
+
declare const BreadcrumbSeparator: {
|
|
164
|
+
({ children, className, ...props }: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
165
|
+
displayName: string;
|
|
166
|
+
};
|
|
167
|
+
declare const BreadcrumbEllipsis: {
|
|
168
|
+
({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
169
|
+
displayName: string;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
173
|
+
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
174
|
+
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
175
|
+
declare const AlertDialogOverlay: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
176
|
+
declare const AlertDialogContent: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
177
|
+
declare const AlertDialogHeader: {
|
|
178
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
179
|
+
displayName: string;
|
|
180
|
+
};
|
|
181
|
+
declare const AlertDialogFooter: {
|
|
182
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
183
|
+
displayName: string;
|
|
184
|
+
};
|
|
185
|
+
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
186
|
+
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
187
|
+
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
188
|
+
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
189
|
+
|
|
190
|
+
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
191
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
192
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
193
|
+
|
|
194
|
+
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
195
|
+
children?: React$1.ReactNode;
|
|
196
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
197
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
198
|
+
} & {
|
|
199
|
+
asChild?: boolean;
|
|
200
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
201
|
+
label?: string;
|
|
202
|
+
shouldFilter?: boolean;
|
|
203
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
204
|
+
defaultValue?: string;
|
|
205
|
+
value?: string;
|
|
206
|
+
onValueChange?: (value: string) => void;
|
|
207
|
+
loop?: boolean;
|
|
208
|
+
disablePointerSelection?: boolean;
|
|
209
|
+
vimBindings?: boolean;
|
|
210
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
|
+
interface CommandDialogProps extends DialogProps {
|
|
212
|
+
}
|
|
213
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React$1.JSX.Element;
|
|
214
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
215
|
+
ref?: React$1.Ref<HTMLInputElement>;
|
|
216
|
+
} & {
|
|
217
|
+
asChild?: boolean;
|
|
218
|
+
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
219
|
+
value?: string;
|
|
220
|
+
onValueChange?: (search: string) => void;
|
|
221
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
222
|
+
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
223
|
+
children?: React$1.ReactNode;
|
|
224
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
225
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
226
|
+
} & {
|
|
227
|
+
asChild?: boolean;
|
|
228
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
229
|
+
label?: string;
|
|
230
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
231
|
+
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
232
|
+
children?: React$1.ReactNode;
|
|
233
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
234
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
235
|
+
} & {
|
|
236
|
+
asChild?: boolean;
|
|
237
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
239
|
+
children?: React$1.ReactNode;
|
|
240
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
241
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
242
|
+
} & {
|
|
243
|
+
asChild?: boolean;
|
|
244
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
245
|
+
heading?: React$1.ReactNode;
|
|
246
|
+
value?: string;
|
|
247
|
+
forceMount?: boolean;
|
|
248
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
249
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
250
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
251
|
+
} & {
|
|
252
|
+
asChild?: boolean;
|
|
253
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
254
|
+
alwaysRender?: boolean;
|
|
255
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
256
|
+
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
257
|
+
children?: React$1.ReactNode;
|
|
258
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
259
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
260
|
+
} & {
|
|
261
|
+
asChild?: boolean;
|
|
262
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
263
|
+
disabled?: boolean;
|
|
264
|
+
onSelect?: (value: string) => void;
|
|
265
|
+
value?: string;
|
|
266
|
+
keywords?: string[];
|
|
267
|
+
forceMount?: boolean;
|
|
268
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
269
|
+
declare const CommandShortcut: {
|
|
270
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
|
271
|
+
displayName: string;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
275
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
276
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
277
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
278
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
279
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
280
|
+
declare const DialogHeader: {
|
|
281
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
282
|
+
displayName: string;
|
|
283
|
+
};
|
|
284
|
+
declare const DialogFooter: {
|
|
285
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
286
|
+
displayName: string;
|
|
287
|
+
};
|
|
288
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
289
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
290
|
+
|
|
291
|
+
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
292
|
+
declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
293
|
+
declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
294
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
295
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
296
|
+
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
297
|
+
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
298
|
+
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
299
|
+
declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
300
|
+
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
|
|
301
|
+
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
302
|
+
|
|
303
|
+
declare const loaderVariants: (props?: ({
|
|
304
|
+
size?: "small" | "medium" | "large" | "xl" | null | undefined;
|
|
305
|
+
colorVariant?: "default" | "destructive" | "secondary" | "primary" | null | undefined;
|
|
306
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
307
|
+
interface LoaderProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof loaderVariants> {
|
|
308
|
+
}
|
|
309
|
+
declare const Loader: React$1.ForwardRefExoticComponent<LoaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
310
|
+
|
|
311
|
+
declare function Toaster$1(): React$1.JSX.Element;
|
|
312
|
+
|
|
313
|
+
interface MessagesWindowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
314
|
+
}
|
|
315
|
+
declare const MessagesWindow: React$1.ForwardRefExoticComponent<MessagesWindowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
316
|
+
|
|
317
|
+
interface QueryBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
318
|
+
}
|
|
319
|
+
declare const QueryBox: React$1.ForwardRefExoticComponent<QueryBoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
320
|
+
|
|
321
|
+
interface HeroProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
322
|
+
}
|
|
323
|
+
declare const Hero: React$1.ForwardRefExoticComponent<HeroProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
324
|
+
interface HeroContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
325
|
+
}
|
|
326
|
+
declare const HeroContent: React$1.ForwardRefExoticComponent<HeroContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
327
|
+
|
|
328
|
+
interface CardWithImageHeadingDescriptionProps {
|
|
329
|
+
orientation: "vertical" | "horizontal";
|
|
330
|
+
showBorder?: boolean;
|
|
331
|
+
image: React.ReactNode;
|
|
332
|
+
heading: React.ReactNode;
|
|
333
|
+
description: React.ReactNode;
|
|
334
|
+
}
|
|
335
|
+
declare const CardWithImageHeadingDescriptionVertical: (props: CardWithImageHeadingDescriptionProps) => React$1.JSX.Element;
|
|
336
|
+
declare const CardImageWithHeadingAndDescriptionHorizontal: (props: CardWithImageHeadingDescriptionProps) => React$1.JSX.Element;
|
|
337
|
+
|
|
338
|
+
interface CardWithImageHeadingDescriptionAvatarProps {
|
|
339
|
+
orientation: "vertical" | "horizontal";
|
|
340
|
+
showBorder?: boolean;
|
|
341
|
+
image: React.ReactNode;
|
|
342
|
+
heading: React.ReactNode;
|
|
343
|
+
description: React.ReactNode;
|
|
344
|
+
avatarImage: string;
|
|
345
|
+
userName: string;
|
|
346
|
+
email: string;
|
|
347
|
+
}
|
|
348
|
+
declare const CardWithImageHeadingDescriptionAvatarVertical: (props: CardWithImageHeadingDescriptionAvatarProps) => React$1.JSX.Element;
|
|
349
|
+
declare const CardImageWithHeadingAndDescriptionAvatarHorizontal: (props: CardWithImageHeadingDescriptionAvatarProps) => React$1.JSX.Element;
|
|
350
|
+
|
|
351
|
+
interface WhisperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
352
|
+
message: Message;
|
|
353
|
+
isMessageStreaming: boolean;
|
|
354
|
+
textToSpeech: (content: string) => Promise<Blob>;
|
|
355
|
+
}
|
|
356
|
+
declare function Whisper({ className, message, isMessageStreaming, textToSpeech, }: WhisperProps): React$1.JSX.Element;
|
|
357
|
+
|
|
358
|
+
interface SpeechToTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
359
|
+
RecordAudioIcon: React.ReactElement;
|
|
360
|
+
IdleAudioIcon: React.ReactElement;
|
|
361
|
+
speechToText: (audio: string) => Promise<string>;
|
|
362
|
+
handleReplaceInput: (text: string) => void;
|
|
363
|
+
setIsAudioRecording: React.Dispatch<React.SetStateAction<boolean>>;
|
|
364
|
+
}
|
|
365
|
+
declare function SpeechToText({ className, speechToText, RecordAudioIcon, IdleAudioIcon, handleReplaceInput, setIsAudioRecording, ...props }: SpeechToTextProps): React$1.JSX.Element;
|
|
366
|
+
|
|
367
|
+
interface AssistantProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
368
|
+
sdk: AlquimiaSDK;
|
|
369
|
+
title?: string;
|
|
370
|
+
description?: string;
|
|
371
|
+
}
|
|
372
|
+
declare const Assistant: React$1.ForwardRefExoticComponent<AssistantProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
373
|
+
interface MessageAction {
|
|
374
|
+
label: string;
|
|
375
|
+
icon: React$1.ReactNode;
|
|
376
|
+
onClick: (message?: Message) => Promise<void>;
|
|
377
|
+
}
|
|
378
|
+
interface AssistantMessageAreaProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
379
|
+
messages: (Message & {
|
|
380
|
+
error_code?: string;
|
|
381
|
+
created_at?: string;
|
|
382
|
+
error_detail?: string;
|
|
383
|
+
additionalInfo?: string;
|
|
384
|
+
})[];
|
|
385
|
+
actions?: MessageAction[];
|
|
386
|
+
messagesEndRef: any;
|
|
387
|
+
isMessageStreaming?: boolean;
|
|
388
|
+
streamingMessageId: string | null;
|
|
389
|
+
}
|
|
390
|
+
declare const AssistantMessageArea: React$1.ForwardRefExoticComponent<AssistantMessageAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
391
|
+
interface AssistantInputProps extends React$1.FormHTMLAttributes<HTMLFormElement> {
|
|
392
|
+
sendMessageFunc: (event: React$1.FormEvent<HTMLFormElement>) => Promise<void>;
|
|
393
|
+
isButtonDisabled: boolean;
|
|
394
|
+
input: string;
|
|
395
|
+
handleInputChange: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
396
|
+
isMessageStreaming: boolean;
|
|
397
|
+
}
|
|
398
|
+
declare const AssistantInput: React$1.ForwardRefExoticComponent<AssistantInputProps & React$1.RefAttributes<HTMLFormElement>>;
|
|
399
|
+
|
|
400
|
+
interface RatingDialogProps {
|
|
401
|
+
topicId: string;
|
|
402
|
+
assistantId: string;
|
|
403
|
+
sendRating: (ratingData: RatingData$1) => Promise<any>;
|
|
404
|
+
isOpen: boolean;
|
|
405
|
+
onOpenChange: (open: boolean) => void;
|
|
406
|
+
setHasRatedTopic: (hasRated: boolean) => void;
|
|
407
|
+
onError?: (componentName: string, error: Error) => void;
|
|
408
|
+
}
|
|
409
|
+
declare function RatingDialog({ sendRating, topicId, assistantId, isOpen, onOpenChange, setHasRatedTopic, }: RatingDialogProps): React$1.JSX.Element;
|
|
410
|
+
|
|
411
|
+
interface PageContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
412
|
+
}
|
|
413
|
+
declare const PageContainer: React$1.ForwardRefExoticComponent<PageContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
414
|
+
|
|
415
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
416
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
417
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
418
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
419
|
+
type CarouselProps = {
|
|
420
|
+
opts?: CarouselOptions;
|
|
421
|
+
plugins?: CarouselPlugin;
|
|
422
|
+
orientation?: "horizontal" | "vertical";
|
|
423
|
+
setApi?: (api: CarouselApi) => void;
|
|
424
|
+
};
|
|
425
|
+
declare const Carousel: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & CarouselProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
426
|
+
declare const CarouselContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
427
|
+
declare const CarouselItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
428
|
+
declare const CarouselPrevious: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
429
|
+
declare const CarouselNext: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
430
|
+
|
|
431
|
+
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
432
|
+
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
433
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
434
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
435
|
+
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
436
|
+
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
437
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
438
|
+
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
439
|
+
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
440
|
+
|
|
441
|
+
declare const sidebarVariants: (props?: ({
|
|
442
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
443
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
444
|
+
interface SidebarItem {
|
|
445
|
+
name: string;
|
|
446
|
+
icon?: LucideIcon;
|
|
447
|
+
disabled?: boolean;
|
|
448
|
+
isLink?: boolean;
|
|
449
|
+
link?: string;
|
|
450
|
+
}
|
|
451
|
+
type SidebarBaseProps = {
|
|
452
|
+
items: SidebarItem[];
|
|
453
|
+
selectedSection?: SidebarItem;
|
|
454
|
+
onSelect?: (item: SidebarItem) => void;
|
|
455
|
+
footerContent?: React$1.ReactNode;
|
|
456
|
+
selectedVariant?: "default" | "secondary" | "ghost" | "link";
|
|
457
|
+
defaultVariant?: "default" | "secondary" | "ghost" | "link";
|
|
458
|
+
buttonClassName?: string;
|
|
459
|
+
};
|
|
460
|
+
interface SidebarProps extends SidebarBaseProps, Omit<React$1.HTMLAttributes<HTMLDivElement>, keyof SidebarBaseProps>, VariantProps<typeof sidebarVariants> {
|
|
461
|
+
}
|
|
462
|
+
declare const SidebarFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
463
|
+
declare const Sidebar: React$1.ForwardRefExoticComponent<SidebarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
464
|
+
|
|
465
|
+
type ToasterProps = React$1.ComponentProps<typeof Toaster$2>;
|
|
466
|
+
declare const Toaster: ({ ...props }: ToasterProps) => React$1.JSX.Element;
|
|
467
|
+
|
|
468
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
469
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
470
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
471
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
472
|
+
interface RatingStarsProps {
|
|
473
|
+
currentRating: number;
|
|
474
|
+
isLoading: boolean;
|
|
475
|
+
onRate: (rating: number) => void;
|
|
476
|
+
className?: string;
|
|
477
|
+
}
|
|
478
|
+
declare const RatingStars: React$1.ForwardRefExoticComponent<RatingStarsProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
479
|
+
|
|
480
|
+
interface RatingThumbsProps {
|
|
481
|
+
currentRating: string;
|
|
482
|
+
isLoading: boolean;
|
|
483
|
+
onRate: (rating: "thumbsUp" | "thumbsDown" | "") => void;
|
|
484
|
+
direction?: "row" | "column";
|
|
485
|
+
className?: string;
|
|
486
|
+
}
|
|
487
|
+
declare const RatingThumbs: React$1.ForwardRefExoticComponent<RatingThumbsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
488
|
+
|
|
489
|
+
interface RatingCommentProps {
|
|
490
|
+
currentRating: string;
|
|
491
|
+
onRate: (comment: string) => void;
|
|
492
|
+
className?: string;
|
|
493
|
+
isLoading?: boolean;
|
|
494
|
+
}
|
|
495
|
+
declare const RatingComment: React$1.ForwardRefExoticComponent<RatingCommentProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
496
|
+
|
|
497
|
+
type AlquimiaDocument = {
|
|
498
|
+
id: string;
|
|
499
|
+
name: string;
|
|
500
|
+
description?: string;
|
|
501
|
+
isActive: boolean;
|
|
502
|
+
contentType: string;
|
|
503
|
+
url: string;
|
|
504
|
+
updatedAt?: string;
|
|
505
|
+
};
|
|
506
|
+
type AlquimiaTopic = {
|
|
507
|
+
id: string;
|
|
508
|
+
externalCollectionId: string;
|
|
509
|
+
isActive: boolean;
|
|
510
|
+
name: string;
|
|
511
|
+
description: string;
|
|
512
|
+
createdAt?: string;
|
|
513
|
+
updatedAt?: string;
|
|
514
|
+
files: AlquimiaDocument[];
|
|
515
|
+
ratings?: TopicRating[];
|
|
516
|
+
};
|
|
517
|
+
type TopicRating = {
|
|
518
|
+
id: number;
|
|
519
|
+
sessionId: string;
|
|
520
|
+
};
|
|
521
|
+
type AlquimiaFile = {
|
|
522
|
+
id: string;
|
|
523
|
+
file: Blob;
|
|
524
|
+
};
|
|
525
|
+
declare enum EditingStatus {
|
|
526
|
+
EDITING = "EDITING",
|
|
527
|
+
FINISHED = "FINISHED"
|
|
528
|
+
}
|
|
529
|
+
interface RatingData {
|
|
530
|
+
assistantId: string;
|
|
531
|
+
sessionId: string;
|
|
532
|
+
topicId: number;
|
|
533
|
+
score?: number;
|
|
534
|
+
emoji?: string;
|
|
535
|
+
description?: string;
|
|
536
|
+
}
|
|
537
|
+
interface ActionResponse<T = void> {
|
|
538
|
+
success: boolean;
|
|
539
|
+
data?: T;
|
|
540
|
+
error?: ActionError;
|
|
541
|
+
}
|
|
542
|
+
type ActionError = {
|
|
543
|
+
message: string;
|
|
544
|
+
code?: string;
|
|
545
|
+
details?: ErrorDetails;
|
|
546
|
+
};
|
|
547
|
+
type ErrorDetails = {
|
|
548
|
+
status: string;
|
|
549
|
+
statusText?: string;
|
|
550
|
+
};
|
|
551
|
+
type ApiError = Error & {
|
|
552
|
+
message: string;
|
|
553
|
+
name: string;
|
|
554
|
+
cause: string;
|
|
555
|
+
code?: string | number;
|
|
556
|
+
status?: string | number;
|
|
557
|
+
};
|
|
558
|
+
interface TWYDServerActions {
|
|
559
|
+
getDocument?: (id: string) => Promise<ActionResponse<Blob>>;
|
|
560
|
+
sendRating?: (ratingData: RatingData) => Promise<any>;
|
|
561
|
+
logError?: (message: string, error: Error, data?: Record<string, any>) => Promise<any>;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
type DocumentSelectorProps = {
|
|
565
|
+
documents: AlquimiaDocument[];
|
|
566
|
+
getDocument: (id: string) => Promise<ActionResponse$1<Blob>>;
|
|
567
|
+
logInfoMessage: (info: string, data: any) => void;
|
|
568
|
+
};
|
|
569
|
+
declare const DocumentSelector: ({ documents, getDocument, logInfoMessage }: DocumentSelectorProps) => React__default.JSX.Element;
|
|
570
|
+
|
|
571
|
+
interface CallOutMessage {
|
|
572
|
+
id: string;
|
|
573
|
+
role: "user" | "assistant";
|
|
574
|
+
content: string;
|
|
575
|
+
timestamp: Date;
|
|
576
|
+
}
|
|
577
|
+
interface CallOutActionProps {
|
|
578
|
+
label: string;
|
|
579
|
+
icon: React$1.ReactNode;
|
|
580
|
+
onClick: (message?: Message) => Promise<void>;
|
|
581
|
+
}
|
|
582
|
+
interface CallOutProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
583
|
+
message?: Message;
|
|
584
|
+
}
|
|
585
|
+
declare const CallOut: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & CallOutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
586
|
+
declare const CallOutDate: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
587
|
+
declare const CallOutActions: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
588
|
+
actions: CallOutActionProps[];
|
|
589
|
+
role: "user" | "assistant";
|
|
590
|
+
message?: Message;
|
|
591
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
592
|
+
declare const CallOutResponse: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
593
|
+
role: Message["role"];
|
|
594
|
+
additionalInfo?: string;
|
|
595
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
596
|
+
|
|
597
|
+
type ToasterToast = ToastProps & {
|
|
598
|
+
id: string;
|
|
599
|
+
title?: React$1.ReactNode;
|
|
600
|
+
description?: React$1.ReactNode;
|
|
601
|
+
action?: ToastActionElement;
|
|
602
|
+
};
|
|
603
|
+
declare const actionTypes: {
|
|
604
|
+
readonly ADD_TOAST: "ADD_TOAST";
|
|
605
|
+
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
606
|
+
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
607
|
+
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
608
|
+
};
|
|
609
|
+
type ActionType = typeof actionTypes;
|
|
610
|
+
type Action = {
|
|
611
|
+
type: ActionType["ADD_TOAST"];
|
|
612
|
+
toast: ToasterToast;
|
|
613
|
+
} | {
|
|
614
|
+
type: ActionType["UPDATE_TOAST"];
|
|
615
|
+
toast: Partial<ToasterToast>;
|
|
616
|
+
} | {
|
|
617
|
+
type: ActionType["DISMISS_TOAST"];
|
|
618
|
+
toastId?: ToasterToast["id"];
|
|
619
|
+
} | {
|
|
620
|
+
type: ActionType["REMOVE_TOAST"];
|
|
621
|
+
toastId?: ToasterToast["id"];
|
|
622
|
+
};
|
|
623
|
+
interface State {
|
|
624
|
+
toasts: ToasterToast[];
|
|
625
|
+
}
|
|
626
|
+
declare const reducer: (state: State, action: Action) => State;
|
|
627
|
+
type Toast = Omit<ToasterToast, "id">;
|
|
628
|
+
declare function toast({ ...props }: Toast): {
|
|
629
|
+
id: string;
|
|
630
|
+
dismiss: () => void;
|
|
631
|
+
update: (props: ToasterToast) => void;
|
|
632
|
+
};
|
|
633
|
+
declare function useToast(): {
|
|
634
|
+
toast: typeof toast;
|
|
635
|
+
dismiss: (toastId?: string) => void;
|
|
636
|
+
toasts: ToasterToast[];
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
declare const useDocumentReader: (url: string, getDocument: (id: string) => Promise<ActionResponse$1<Blob>>) => {
|
|
640
|
+
document: Blob | null;
|
|
641
|
+
loading: boolean;
|
|
642
|
+
fetchDocument: () => Promise<void>;
|
|
643
|
+
resetDocument: () => void;
|
|
644
|
+
error: string | null;
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
648
|
+
declare function parseTextToSpeech(content: string): string;
|
|
649
|
+
declare function blobToBase64(blob: Blob): Promise<string>;
|
|
650
|
+
declare const truncateString: (str: string, maxLength: number) => string;
|
|
651
|
+
declare function getCookies(name: string): string | undefined;
|
|
652
|
+
|
|
653
|
+
export { type ActionError, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AlquimiaDocument, type AlquimiaFile, type AlquimiaTopic, type ApiError, AspectRatio, Assistant, AssistantInput, AssistantMessageArea, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CallOut, CallOutActions, CallOutDate, type CallOutMessage, type CallOutProps, CallOutResponse, Card, CardContent, CardDescription, CardFooter, CardHeader, CardImageWithHeadingAndDescriptionAvatarHorizontal, CardImageWithHeadingAndDescriptionHorizontal, CardTitle, type CardWithImageHeadingDescriptionAvatarProps, CardWithImageHeadingDescriptionAvatarVertical, type CardWithImageHeadingDescriptionProps, CardWithImageHeadingDescriptionVertical, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DocumentSelector, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, EditingStatus, type ErrorDetails, Hero, HeroContent, type HeroContentProps, type HeroProps, Input, type InputProps, Label, Loader, MessagesWindow, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageContainer, Popover, PopoverContent, PopoverTrigger, QueryBox, RatingComment, type RatingData, RatingDialog, RatingStars, RatingThumbs, RichText, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, SidebarFooter, type SidebarItem, type SidebarProps, Skeleton, Slider, Toaster as SonnerToaster, SpeechToText, Switch, type TWYDServerActions, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster$1 as Toaster, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TopicRating, Typography, type TypographyProps, Whisper, badgeVariants, blobToBase64, buttonVariants, cn, getCookies, navigationMenuTriggerStyle, parseTextToSpeech, reducer, toast, toggleVariants, truncateString, useDocumentReader, useToast };
|