@timbal-ai/timbal-react 0.8.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +100 -6
  3. package/dist/app.cjs +2538 -1262
  4. package/dist/app.d.cts +11 -6
  5. package/dist/app.d.ts +11 -6
  6. package/dist/app.esm.js +43 -6
  7. package/dist/{button-ClSgD6OF.d.cts → button-BoyX5pM_.d.cts} +1 -1
  8. package/dist/{button-ClSgD6OF.d.ts → button-BoyX5pM_.d.ts} +1 -1
  9. package/dist/{chart-artifact-Bl67kre7.d.ts → chart-artifact-BZp7nmaf.d.ts} +430 -14
  10. package/dist/{chart-artifact-BzcvblDe.d.cts → chart-artifact-CX-rh9nq.d.cts} +430 -14
  11. package/dist/{chat-Bed4FQSl.d.cts → chat-DCms8pJ_.d.cts} +31 -4
  12. package/dist/{chat-Bed4FQSl.d.ts → chat-DCms8pJ_.d.ts} +31 -4
  13. package/dist/chat.cjs +1111 -776
  14. package/dist/chat.d.cts +1 -1
  15. package/dist/chat.d.ts +1 -1
  16. package/dist/chat.esm.js +3 -3
  17. package/dist/{chunk-QVAUCVQA.esm.js → chunk-4AKJ6FKE.esm.js} +277 -4
  18. package/dist/chunk-6HWMJNZT.esm.js +3439 -0
  19. package/dist/{chunk-VWHHKAHN.esm.js → chunk-FRZOEYBO.esm.js} +4 -4
  20. package/dist/chunk-JEAUF54A.esm.js +52 -0
  21. package/dist/{chunk-OISVICYF.esm.js → chunk-P3KDAYX6.esm.js} +1 -1
  22. package/dist/{chunk-6YVKCVEP.esm.js → chunk-TK2AGIME.esm.js} +1106 -298
  23. package/dist/{chunk-CFU3YDTV.esm.js → chunk-XCM3V6RK.esm.js} +5 -5
  24. package/dist/{chunk-5ZKLPWVN.esm.js → chunk-YXZ22OJN.esm.js} +849 -667
  25. package/dist/index.cjs +6070 -1605
  26. package/dist/index.d.cts +8 -6
  27. package/dist/index.d.ts +8 -6
  28. package/dist/index.esm.js +427 -11
  29. package/dist/pill-segmented-tabs-Ba5q0feL.d.cts +500 -0
  30. package/dist/pill-segmented-tabs-Ba5q0feL.d.ts +500 -0
  31. package/dist/studio.cjs +1333 -998
  32. package/dist/studio.d.cts +2 -2
  33. package/dist/studio.d.ts +2 -2
  34. package/dist/studio.esm.js +5 -5
  35. package/dist/styles.css +220 -0
  36. package/dist/ui.cjs +3592 -89
  37. package/dist/ui.d.cts +72 -96
  38. package/dist/ui.d.ts +72 -96
  39. package/dist/ui.esm.js +400 -6
  40. package/dist/{welcome-COOb05a5.d.cts → welcome-CRqOPKMp.d.cts} +1 -1
  41. package/dist/{welcome-DE08m9ca.d.ts → welcome-DlHUa3OL.d.ts} +1 -1
  42. package/package.json +9 -3
  43. package/dist/chunk-P4SN7M67.esm.js +0 -435
package/dist/ui.esm.js CHANGED
@@ -1,4 +1,82 @@
1
1
  import {
2
+ Accordion,
3
+ AccordionContent,
4
+ AccordionItem,
5
+ AccordionTrigger,
6
+ Alert,
7
+ AlertDescription,
8
+ AlertDialog,
9
+ AlertDialogAction,
10
+ AlertDialogCancel,
11
+ AlertDialogContent,
12
+ AlertDialogDescription,
13
+ AlertDialogFooter,
14
+ AlertDialogHeader,
15
+ AlertDialogOverlay,
16
+ AlertDialogPortal,
17
+ AlertDialogTitle,
18
+ AlertDialogTrigger,
19
+ AlertTitle,
20
+ AspectRatio,
21
+ Badge,
22
+ Breadcrumb,
23
+ BreadcrumbEllipsis,
24
+ BreadcrumbItem,
25
+ BreadcrumbLink,
26
+ BreadcrumbList,
27
+ BreadcrumbPage,
28
+ BreadcrumbSeparator,
29
+ Calendar,
30
+ CalendarDayButton,
31
+ Card,
32
+ CardContent,
33
+ CardDescription,
34
+ CardFooter,
35
+ CardHeader,
36
+ CardTitle,
37
+ Collapsible,
38
+ CollapsibleContent,
39
+ CollapsibleTrigger,
40
+ Combobox,
41
+ ComboboxAnchor,
42
+ ComboboxCommand,
43
+ ComboboxContent,
44
+ ComboboxEmpty,
45
+ ComboboxGroup,
46
+ ComboboxInput,
47
+ ComboboxItem,
48
+ ComboboxList,
49
+ ComboboxSeparator,
50
+ ComboboxShortcut,
51
+ ComboboxTrigger,
52
+ Command,
53
+ CommandDialog,
54
+ CommandEmpty,
55
+ CommandGroup,
56
+ CommandInput,
57
+ CommandItem,
58
+ CommandList,
59
+ CommandSeparator,
60
+ CommandShortcut,
61
+ ContextMenu,
62
+ ContextMenuCheckboxItem,
63
+ ContextMenuContent,
64
+ ContextMenuGroup,
65
+ ContextMenuItem,
66
+ ContextMenuLabel,
67
+ ContextMenuRadioGroup,
68
+ ContextMenuRadioItem,
69
+ ContextMenuSeparator,
70
+ ContextMenuShortcut,
71
+ ContextMenuSub,
72
+ ContextMenuSubContent,
73
+ ContextMenuSubTrigger,
74
+ ContextMenuTrigger,
75
+ DatePicker,
76
+ DatePickerButton,
77
+ DatePickerCalendar,
78
+ DatePickerContent,
79
+ DatePickerTrigger,
2
80
  DropdownMenu,
3
81
  DropdownMenuCheckboxItem,
4
82
  DropdownMenuContent,
@@ -13,10 +91,67 @@ import {
13
91
  DropdownMenuSubContent,
14
92
  DropdownMenuSubTrigger,
15
93
  DropdownMenuTrigger,
94
+ Form,
95
+ FormControl,
96
+ FormField,
97
+ FormItem,
98
+ FormLabel,
99
+ FormMessage,
100
+ FormSubmit,
101
+ HoverCard,
102
+ HoverCardContent,
103
+ HoverCardTrigger,
104
+ Input,
105
+ InputGroup,
106
+ InputGroupAddon,
107
+ InputGroupInput,
108
+ InputGroupText,
109
+ InputOTP,
110
+ InputOTPGroup,
111
+ InputOTPHiddenInput,
112
+ InputOTPSeparator,
113
+ InputOTPSlot,
114
+ Kbd,
115
+ KbdGroup,
116
+ Label,
117
+ Menubar,
118
+ MenubarCheckboxItem,
119
+ MenubarContent,
120
+ MenubarItem,
121
+ MenubarLabel,
122
+ MenubarMenu,
123
+ MenubarRadioGroup,
124
+ MenubarRadioItem,
125
+ MenubarSeparator,
126
+ MenubarShortcut,
127
+ MenubarSub,
128
+ MenubarSubContent,
129
+ MenubarSubTrigger,
130
+ MenubarTrigger,
131
+ NavigationMenu,
132
+ NavigationMenuContent,
133
+ NavigationMenuIndicator,
134
+ NavigationMenuItem,
135
+ NavigationMenuLink,
136
+ NavigationMenuList,
137
+ NavigationMenuTrigger,
138
+ NavigationMenuViewport,
139
+ Pagination,
140
+ PaginationContent,
141
+ PaginationEllipsis,
142
+ PaginationItem,
143
+ PaginationLink,
144
+ PaginationNext,
145
+ PaginationPrevious,
16
146
  Popover,
17
147
  PopoverAnchor,
18
148
  PopoverContent,
19
149
  PopoverTrigger,
150
+ Progress,
151
+ RadioGroup,
152
+ RadioGroupItem,
153
+ ScrollArea,
154
+ ScrollBar,
20
155
  Select,
21
156
  SelectContent,
22
157
  SelectGroup,
@@ -26,17 +161,73 @@ import {
26
161
  SelectScrollUpButton,
27
162
  SelectSeparator,
28
163
  SelectTrigger,
29
- SelectValue
30
- } from "./chunk-P4SN7M67.esm.js";
164
+ SelectValue,
165
+ Separator,
166
+ Sheet,
167
+ SheetClose,
168
+ SheetContent,
169
+ SheetDescription,
170
+ SheetFooter,
171
+ SheetHeader,
172
+ SheetTitle,
173
+ SheetTrigger,
174
+ Slider,
175
+ Spinner,
176
+ Switch,
177
+ Table,
178
+ TableBody,
179
+ TableCaption,
180
+ TableCell,
181
+ TableFooter,
182
+ TableHead,
183
+ TableHeader,
184
+ TableRow,
185
+ Textarea,
186
+ Toast,
187
+ ToastAction,
188
+ ToastClose,
189
+ ToastDescription,
190
+ ToastProvider,
191
+ ToastTitle,
192
+ ToastViewport,
193
+ Toaster,
194
+ Toggle,
195
+ ToggleGroup,
196
+ ToggleGroupItem,
197
+ Toolbar,
198
+ ToolbarButton,
199
+ ToolbarLink,
200
+ ToolbarSeparator,
201
+ ToolbarToggleGroup,
202
+ ToolbarToggleItem,
203
+ alertVariants,
204
+ badgeVariants,
205
+ formatPickerDate,
206
+ navigationMenuTriggerStyle,
207
+ toast,
208
+ toggleVariants,
209
+ useToast
210
+ } from "./chunk-6HWMJNZT.esm.js";
211
+ import {
212
+ Checkbox,
213
+ Skeleton
214
+ } from "./chunk-JEAUF54A.esm.js";
31
215
  import {
32
216
  MemoPillSegmentedTabs,
33
217
  PillSegmentedTabs
34
- } from "./chunk-OISVICYF.esm.js";
218
+ } from "./chunk-P3KDAYX6.esm.js";
35
219
  import {
36
220
  Avatar,
37
221
  AvatarFallback,
38
222
  AvatarImage,
39
223
  Button,
224
+ CONTROL_SIZE,
225
+ ChartContainer,
226
+ ChartLegend,
227
+ ChartLegendContent,
228
+ ChartStyle,
229
+ ChartTooltip,
230
+ ChartTooltipContent,
40
231
  Dialog,
41
232
  DialogClose,
42
233
  DialogContent,
@@ -52,13 +243,106 @@ import {
52
243
  Tooltip,
53
244
  TooltipContent,
54
245
  TooltipProvider,
55
- TooltipTrigger
56
- } from "./chunk-QVAUCVQA.esm.js";
246
+ TooltipTrigger,
247
+ controlClass,
248
+ controlSurfaceClass,
249
+ overlayAnimationClass,
250
+ overlayItemClass,
251
+ overlayListPanelClass,
252
+ overlaySurfaceClass,
253
+ useChart
254
+ } from "./chunk-4AKJ6FKE.esm.js";
57
255
  export {
256
+ Accordion,
257
+ AccordionContent,
258
+ AccordionItem,
259
+ AccordionTrigger,
260
+ Alert,
261
+ AlertDescription,
262
+ AlertDialog,
263
+ AlertDialogAction,
264
+ AlertDialogCancel,
265
+ AlertDialogContent,
266
+ AlertDialogDescription,
267
+ AlertDialogFooter,
268
+ AlertDialogHeader,
269
+ AlertDialogOverlay,
270
+ AlertDialogPortal,
271
+ AlertDialogTitle,
272
+ AlertDialogTrigger,
273
+ AlertTitle,
274
+ AspectRatio,
58
275
  Avatar,
59
276
  AvatarFallback,
60
277
  AvatarImage,
278
+ Badge,
279
+ Breadcrumb,
280
+ BreadcrumbEllipsis,
281
+ BreadcrumbItem,
282
+ BreadcrumbLink,
283
+ BreadcrumbList,
284
+ BreadcrumbPage,
285
+ BreadcrumbSeparator,
61
286
  Button,
287
+ CONTROL_SIZE,
288
+ Calendar,
289
+ CalendarDayButton,
290
+ Card,
291
+ CardContent,
292
+ CardDescription,
293
+ CardFooter,
294
+ CardHeader,
295
+ CardTitle,
296
+ ChartContainer,
297
+ ChartLegend,
298
+ ChartLegendContent,
299
+ ChartStyle,
300
+ ChartTooltip,
301
+ ChartTooltipContent,
302
+ Checkbox,
303
+ Collapsible,
304
+ CollapsibleContent,
305
+ CollapsibleTrigger,
306
+ Combobox,
307
+ ComboboxAnchor,
308
+ ComboboxCommand,
309
+ ComboboxContent,
310
+ ComboboxEmpty,
311
+ ComboboxGroup,
312
+ ComboboxInput,
313
+ ComboboxItem,
314
+ ComboboxList,
315
+ ComboboxSeparator,
316
+ ComboboxShortcut,
317
+ ComboboxTrigger,
318
+ Command,
319
+ CommandDialog,
320
+ CommandEmpty,
321
+ CommandGroup,
322
+ CommandInput,
323
+ CommandItem,
324
+ CommandList,
325
+ CommandSeparator,
326
+ CommandShortcut,
327
+ ContextMenu,
328
+ ContextMenuCheckboxItem,
329
+ ContextMenuContent,
330
+ ContextMenuGroup,
331
+ ContextMenuItem,
332
+ ContextMenuLabel,
333
+ ContextMenuRadioGroup,
334
+ ContextMenuRadioItem,
335
+ ContextMenuSeparator,
336
+ ContextMenuShortcut,
337
+ ContextMenuSub,
338
+ ContextMenuSubContent,
339
+ ContextMenuSubTrigger,
340
+ ContextMenuTrigger,
341
+ DatePicker,
342
+ DatePickerButton,
343
+ DatePickerCalendar,
344
+ DatePickerContent,
345
+ DatePickerTrigger,
62
346
  Dialog,
63
347
  DialogClose,
64
348
  DialogContent,
@@ -83,12 +367,69 @@ export {
83
367
  DropdownMenuSubContent,
84
368
  DropdownMenuSubTrigger,
85
369
  DropdownMenuTrigger,
370
+ Form,
371
+ FormControl,
372
+ FormField,
373
+ FormItem,
374
+ FormLabel,
375
+ FormMessage,
376
+ FormSubmit,
377
+ HoverCard,
378
+ HoverCardContent,
379
+ HoverCardTrigger,
380
+ Input,
381
+ InputGroup,
382
+ InputGroupAddon,
383
+ InputGroupInput,
384
+ InputGroupText,
385
+ InputOTP,
386
+ InputOTPGroup,
387
+ InputOTPHiddenInput,
388
+ InputOTPSeparator,
389
+ InputOTPSlot,
390
+ Kbd,
391
+ KbdGroup,
392
+ Label,
86
393
  MemoPillSegmentedTabs,
394
+ Menubar,
395
+ MenubarCheckboxItem,
396
+ MenubarContent,
397
+ MenubarItem,
398
+ MenubarLabel,
399
+ MenubarMenu,
400
+ MenubarRadioGroup,
401
+ MenubarRadioItem,
402
+ MenubarSeparator,
403
+ MenubarShortcut,
404
+ MenubarSub,
405
+ MenubarSubContent,
406
+ MenubarSubTrigger,
407
+ MenubarTrigger,
408
+ NavigationMenu,
409
+ NavigationMenuContent,
410
+ NavigationMenuIndicator,
411
+ NavigationMenuItem,
412
+ NavigationMenuLink,
413
+ NavigationMenuList,
414
+ NavigationMenuTrigger,
415
+ NavigationMenuViewport,
416
+ Pagination,
417
+ PaginationContent,
418
+ PaginationEllipsis,
419
+ PaginationItem,
420
+ PaginationLink,
421
+ PaginationNext,
422
+ PaginationPrevious,
87
423
  PillSegmentedTabs,
88
424
  Popover,
89
425
  PopoverAnchor,
90
426
  PopoverContent,
91
427
  PopoverTrigger,
428
+ Progress,
429
+ RadioGroup,
430
+ RadioGroupItem,
431
+ ScrollArea,
432
+ ScrollBar,
92
433
  Select,
93
434
  SelectContent,
94
435
  SelectGroup,
@@ -99,10 +440,63 @@ export {
99
440
  SelectSeparator,
100
441
  SelectTrigger,
101
442
  SelectValue,
443
+ Separator,
444
+ Sheet,
445
+ SheetClose,
446
+ SheetContent,
447
+ SheetDescription,
448
+ SheetFooter,
449
+ SheetHeader,
450
+ SheetTitle,
451
+ SheetTrigger,
102
452
  Shimmer,
453
+ Skeleton,
454
+ Slider,
455
+ Spinner,
456
+ Switch,
457
+ Table,
458
+ TableBody,
459
+ TableCaption,
460
+ TableCell,
461
+ TableFooter,
462
+ TableHead,
463
+ TableHeader,
464
+ TableRow,
465
+ Textarea,
103
466
  TimbalV2Button,
467
+ Toast,
468
+ ToastAction,
469
+ ToastClose,
470
+ ToastDescription,
471
+ ToastProvider,
472
+ ToastTitle,
473
+ ToastViewport,
474
+ Toaster,
475
+ Toggle,
476
+ ToggleGroup,
477
+ ToggleGroupItem,
478
+ Toolbar,
479
+ ToolbarButton,
480
+ ToolbarLink,
481
+ ToolbarSeparator,
482
+ ToolbarToggleGroup,
483
+ ToolbarToggleItem,
104
484
  Tooltip,
105
485
  TooltipContent,
106
486
  TooltipProvider,
107
- TooltipTrigger
487
+ TooltipTrigger,
488
+ alertVariants,
489
+ badgeVariants,
490
+ controlClass,
491
+ controlSurfaceClass,
492
+ formatPickerDate,
493
+ navigationMenuTriggerStyle,
494
+ overlayAnimationClass,
495
+ overlayItemClass,
496
+ overlayListPanelClass,
497
+ overlaySurfaceClass,
498
+ toast,
499
+ toggleVariants,
500
+ useChart,
501
+ useToast
108
502
  };
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { b as TimbalChatProps, u as ThreadWelcomeProps } from './chat-Bed4FQSl.cjs';
2
+ import { c as TimbalChatProps, v as ThreadWelcomeProps } from './chat-DCms8pJ_.cjs';
3
3
  import { WorkforceItem } from '@timbal-ai/timbal-sdk';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { b as TimbalChatProps, u as ThreadWelcomeProps } from './chat-Bed4FQSl.js';
2
+ import { c as TimbalChatProps, v as ThreadWelcomeProps } from './chat-DCms8pJ_.js';
3
3
  import { WorkforceItem } from '@timbal-ai/timbal-sdk';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timbal-ai/timbal-react",
3
- "version": "0.8.2",
3
+ "version": "1.1.0",
4
4
  "description": "React components and runtime for building Timbal chat and studio apps",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -64,7 +64,8 @@
64
64
  "@assistant-ui/react": ">=0.12",
65
65
  "@timbal-ai/timbal-sdk": ">=0.4",
66
66
  "react": ">=19",
67
- "react-dom": ">=19"
67
+ "react-dom": ">=19",
68
+ "react-is": ">=19"
68
69
  },
69
70
  "dependencies": {
70
71
  "@assistant-ui/react-markdown": "^0.12.3",
@@ -75,10 +76,13 @@
75
76
  "@radix-ui/react-tooltip": "^1.2.8",
76
77
  "class-variance-authority": "^0.7.1",
77
78
  "clsx": "^2.1.1",
79
+ "cmdk": "^1.1.1",
78
80
  "katex": "^0.16.28",
79
81
  "lucide-react": "^0.574.0",
80
82
  "motion": "^12.23.24",
81
83
  "radix-ui": "^1.4.3",
84
+ "react-day-picker": "^10.0.1",
85
+ "recharts": "^3.8.1",
82
86
  "rehype-katex": "^7.0.1",
83
87
  "remark-gfm": "^4.0.1",
84
88
  "remark-math": "^6.0.0",
@@ -94,10 +98,12 @@
94
98
  "@timbal-ai/timbal-sdk": "0.4.9",
95
99
  "@types/react": "^19.2.4",
96
100
  "@types/react-dom": "^19.2.3",
101
+ "@types/react-is": "^19.2.0",
102
+ "dependency-cruiser": "^16.10.4",
97
103
  "happy-dom": "^20.8.9",
98
104
  "react": "^19.2.0",
99
105
  "react-dom": "^19.2.0",
100
- "dependency-cruiser": "^16.10.4",
106
+ "react-is": "^19.2.0",
101
107
  "tsup": "^8.5.0",
102
108
  "typescript": "~5.8.3"
103
109
  },