@timbal-ai/timbal-react 1.4.0 → 1.6.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 (57) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +43 -4
  3. package/dist/app.cjs +3770 -1506
  4. package/dist/app.d.cts +76 -31
  5. package/dist/app.d.ts +76 -31
  6. package/dist/app.esm.js +30 -8
  7. package/dist/{chart-artifact-C8-Py6lc.d.cts → chart-artifact-C2pZQsaP.d.ts} +247 -41
  8. package/dist/{chart-artifact-CMnDys2t.d.ts → chart-artifact-VAqgH-My.d.cts} +247 -41
  9. package/dist/{chat-ClmzWzCX.d.cts → chat-DDsp-Vzz.d.cts} +1 -1
  10. package/dist/{chat-ClmzWzCX.d.ts → chat-DDsp-Vzz.d.ts} +1 -1
  11. package/dist/chat.cjs +280 -123
  12. package/dist/chat.d.cts +3 -3
  13. package/dist/chat.d.ts +3 -3
  14. package/dist/chat.esm.js +4 -3
  15. package/dist/chunk-24B4I4XC.esm.js +232 -0
  16. package/dist/{chunk-VOWNCS3F.esm.js → chunk-6SQMTBPL.esm.js} +1669 -504
  17. package/dist/chunk-EDEKQYSU.esm.js +10 -0
  18. package/dist/{chunk-QIABF4KB.esm.js → chunk-ELEY66OH.esm.js} +2 -2
  19. package/dist/{chunk-THBA27QY.esm.js → chunk-HSL36SJ4.esm.js} +243 -124
  20. package/dist/chunk-JJOO4PR5.esm.js +391 -0
  21. package/dist/{chunk-QU7ET55D.esm.js → chunk-MBS7XHV2.esm.js} +335 -192
  22. package/dist/chunk-NO5AWNWT.esm.js +1066 -0
  23. package/dist/{chunk-VXMM2HX7.esm.js → chunk-R4RQT2XQ.esm.js} +3 -3
  24. package/dist/{chunk-OFWC4MIY.esm.js → chunk-TMP7RIA7.esm.js} +5 -3
  25. package/dist/{chunk-GQBYZRD7.esm.js → chunk-WQIQW7EM.esm.js} +40 -28
  26. package/dist/{chunk-OH23AX2V.esm.js → chunk-YYEI6XME.esm.js} +441 -957
  27. package/dist/{circular-progress-Ci8L-Hfa.d.cts → circular-progress-B9nnwzCu.d.cts} +20 -78
  28. package/dist/{circular-progress-Ci8L-Hfa.d.ts → circular-progress-B9nnwzCu.d.ts} +20 -78
  29. package/dist/index.cjs +5547 -3192
  30. package/dist/index.d.cts +10 -8
  31. package/dist/index.d.ts +10 -8
  32. package/dist/index.esm.js +76 -44
  33. package/dist/kanban-FFBeaZPS.d.cts +212 -0
  34. package/dist/kanban-FFBeaZPS.d.ts +212 -0
  35. package/dist/{layout-BTJyU8wd.d.ts → layout-CuKeSY74.d.ts} +1 -1
  36. package/dist/{layout-C2G-FcER.d.cts → layout-PzVwkJyL.d.cts} +1 -1
  37. package/dist/site.cjs +429 -0
  38. package/dist/site.d.cts +198 -0
  39. package/dist/site.d.ts +198 -0
  40. package/dist/site.esm.js +23 -0
  41. package/dist/studio.cjs +722 -363
  42. package/dist/studio.d.cts +2 -2
  43. package/dist/studio.d.ts +2 -2
  44. package/dist/studio.esm.js +8 -6
  45. package/dist/styles.css +56 -0
  46. package/dist/{timbal-v2-button-CNfdwGq4.d.cts → timbal-v2-button-DCAZNyUx.d.cts} +3 -3
  47. package/dist/{timbal-v2-button-CNfdwGq4.d.ts → timbal-v2-button-DCAZNyUx.d.ts} +3 -3
  48. package/dist/ui.cjs +1553 -708
  49. package/dist/ui.d.cts +11 -4
  50. package/dist/ui.d.ts +11 -4
  51. package/dist/ui.esm.js +45 -36
  52. package/dist/{welcome-DXqsGTwH.d.ts → welcome-B00oH5Io.d.cts} +5 -1
  53. package/dist/{welcome-BFGRoNfK.d.cts → welcome-DU-4NTjZ.d.ts} +5 -1
  54. package/package.json +9 -1
  55. package/dist/button-BoyX5pM_.d.cts +0 -18
  56. package/dist/button-BoyX5pM_.d.ts +0 -18
  57. package/dist/chunk-UCGVL7ZY.esm.js +0 -52
package/dist/chat.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- export { d as ChatAttachment, e as ChatMessage, f as Composer, g as ComposerProps, h as ContentPart, S as SendOptions, i as Suggestions, j as SuggestionsComponent, k as SuggestionsSlotProps, l as SuggestionsSource, m as TextContentPart, n as ThinkingContentPart, o as Thread, p as ThreadArtifactsConfig, q as ThreadComponents, r as ThreadProps, s as ThreadSuggestion, t as ThreadSuggestionsProps, T as ThreadVariant, u as ThreadWelcomeConfig, v as ThreadWelcomeProps, b as TimbalChat, c as TimbalChatProps, w as TimbalRuntimeProvider, x as TimbalRuntimeProviderProps, y as TimbalStreamApi, z as ToolCallContentPart, U as UseTimbalStreamOptions, A as useResolvedSuggestions, B as useTimbalRuntime, D as useTimbalStream } from './chat-ClmzWzCX.cjs';
2
- export { M as MarkdownText, T as THREAD_DEFAULT_MAX_WIDTH, a as ToolFallback, b as TooltipIconButton, c as TooltipIconButtonProps, W as WorkforceSelector, d as WorkforceSelectorProps, e as assistantMessageContentClass, f as assistantMessageRootClass, t as threadMessageColumnClass, u as useToolRunning, g as userMessageRootClass } from './layout-C2G-FcER.cjs';
1
+ export { C as ChatAttachment, a as ChatMessage, b as Composer, c as ComposerProps, d as ContentPart, S as SendOptions, e as Suggestions, f as SuggestionsComponent, g as SuggestionsSlotProps, h as SuggestionsSource, T as TextContentPart, i as ThinkingContentPart, j as Thread, k as ThreadArtifactsConfig, l as ThreadComponents, m as ThreadProps, n as ThreadSuggestion, o as ThreadSuggestionsProps, p as ThreadVariant, q as ThreadWelcomeConfig, r as ThreadWelcomeProps, s as TimbalChat, t as TimbalChatProps, u as TimbalRuntimeProvider, v as TimbalRuntimeProviderProps, w as TimbalStreamApi, x as ToolCallContentPart, U as UseTimbalStreamOptions, y as useResolvedSuggestions, z as useTimbalRuntime, A as useTimbalStream } from './chat-DDsp-Vzz.cjs';
2
+ export { M as MarkdownText, T as THREAD_DEFAULT_MAX_WIDTH, a as ToolFallback, b as TooltipIconButton, c as TooltipIconButtonProps, W as WorkforceSelector, d as WorkforceSelectorProps, e as assistantMessageContentClass, f as assistantMessageRootClass, t as threadMessageColumnClass, u as useToolRunning, g as userMessageRootClass } from './layout-PzVwkJyL.cjs';
3
3
  import { FC } from 'react';
4
4
  import 'react/jsx-runtime';
5
5
  import '@assistant-ui/react';
6
6
  import '@timbal-ai/timbal-sdk';
7
- import './timbal-v2-button-CNfdwGq4.cjs';
7
+ import './timbal-v2-button-DCAZNyUx.cjs';
8
8
 
9
9
  declare const UserMessageAttachments: FC;
10
10
  declare const ComposerAttachments: FC;
package/dist/chat.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { d as ChatAttachment, e as ChatMessage, f as Composer, g as ComposerProps, h as ContentPart, S as SendOptions, i as Suggestions, j as SuggestionsComponent, k as SuggestionsSlotProps, l as SuggestionsSource, m as TextContentPart, n as ThinkingContentPart, o as Thread, p as ThreadArtifactsConfig, q as ThreadComponents, r as ThreadProps, s as ThreadSuggestion, t as ThreadSuggestionsProps, T as ThreadVariant, u as ThreadWelcomeConfig, v as ThreadWelcomeProps, b as TimbalChat, c as TimbalChatProps, w as TimbalRuntimeProvider, x as TimbalRuntimeProviderProps, y as TimbalStreamApi, z as ToolCallContentPart, U as UseTimbalStreamOptions, A as useResolvedSuggestions, B as useTimbalRuntime, D as useTimbalStream } from './chat-ClmzWzCX.js';
2
- export { M as MarkdownText, T as THREAD_DEFAULT_MAX_WIDTH, a as ToolFallback, b as TooltipIconButton, c as TooltipIconButtonProps, W as WorkforceSelector, d as WorkforceSelectorProps, e as assistantMessageContentClass, f as assistantMessageRootClass, t as threadMessageColumnClass, u as useToolRunning, g as userMessageRootClass } from './layout-BTJyU8wd.js';
1
+ export { C as ChatAttachment, a as ChatMessage, b as Composer, c as ComposerProps, d as ContentPart, S as SendOptions, e as Suggestions, f as SuggestionsComponent, g as SuggestionsSlotProps, h as SuggestionsSource, T as TextContentPart, i as ThinkingContentPart, j as Thread, k as ThreadArtifactsConfig, l as ThreadComponents, m as ThreadProps, n as ThreadSuggestion, o as ThreadSuggestionsProps, p as ThreadVariant, q as ThreadWelcomeConfig, r as ThreadWelcomeProps, s as TimbalChat, t as TimbalChatProps, u as TimbalRuntimeProvider, v as TimbalRuntimeProviderProps, w as TimbalStreamApi, x as ToolCallContentPart, U as UseTimbalStreamOptions, y as useResolvedSuggestions, z as useTimbalRuntime, A as useTimbalStream } from './chat-DDsp-Vzz.js';
2
+ export { M as MarkdownText, T as THREAD_DEFAULT_MAX_WIDTH, a as ToolFallback, b as TooltipIconButton, c as TooltipIconButtonProps, W as WorkforceSelector, d as WorkforceSelectorProps, e as assistantMessageContentClass, f as assistantMessageRootClass, t as threadMessageColumnClass, u as useToolRunning, g as userMessageRootClass } from './layout-CuKeSY74.js';
3
3
  import { FC } from 'react';
4
4
  import 'react/jsx-runtime';
5
5
  import '@assistant-ui/react';
6
6
  import '@timbal-ai/timbal-sdk';
7
- import './timbal-v2-button-CNfdwGq4.js';
7
+ import './timbal-v2-button-DCAZNyUx.js';
8
8
 
9
9
  declare const UserMessageAttachments: FC;
10
10
  declare const ComposerAttachments: FC;
package/dist/chat.esm.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-KC5QLVUG.esm.js";
8
8
  import {
9
9
  WorkforceSelector
10
- } from "./chunk-OFWC4MIY.esm.js";
10
+ } from "./chunk-TMP7RIA7.esm.js";
11
11
  import {
12
12
  Composer,
13
13
  ComposerAddAttachment,
@@ -24,8 +24,9 @@ import {
24
24
  useTimbalRuntime,
25
25
  useTimbalStream,
26
26
  useToolRunning
27
- } from "./chunk-GQBYZRD7.esm.js";
28
- import "./chunk-QU7ET55D.esm.js";
27
+ } from "./chunk-WQIQW7EM.esm.js";
28
+ import "./chunk-MBS7XHV2.esm.js";
29
+ import "./chunk-EDEKQYSU.esm.js";
29
30
  export {
30
31
  Composer,
31
32
  ComposerAddAttachment,
@@ -0,0 +1,232 @@
1
+ import {
2
+ overlayItemClass,
3
+ overlayListPanelClass
4
+ } from "./chunk-MBS7XHV2.esm.js";
5
+ import {
6
+ cn
7
+ } from "./chunk-EDEKQYSU.esm.js";
8
+
9
+ // src/ui/dropdown-menu.tsx
10
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
11
+ import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ function DropdownMenu({
14
+ ...props
15
+ }) {
16
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
17
+ }
18
+ function DropdownMenuTrigger({
19
+ ...props
20
+ }) {
21
+ return /* @__PURE__ */ jsx(
22
+ DropdownMenuPrimitive.Trigger,
23
+ {
24
+ "data-slot": "dropdown-menu-trigger",
25
+ ...props
26
+ }
27
+ );
28
+ }
29
+ function DropdownMenuGroup({
30
+ ...props
31
+ }) {
32
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
33
+ }
34
+ function DropdownMenuContent({
35
+ className,
36
+ sideOffset = 4,
37
+ ...props
38
+ }) {
39
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
40
+ DropdownMenuPrimitive.Content,
41
+ {
42
+ "data-slot": "dropdown-menu-content",
43
+ sideOffset,
44
+ className: cn(
45
+ overlayListPanelClass,
46
+ "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto p-1",
47
+ className
48
+ ),
49
+ ...props
50
+ }
51
+ ) });
52
+ }
53
+ function DropdownMenuItem({
54
+ className,
55
+ inset,
56
+ variant = "default",
57
+ ...props
58
+ }) {
59
+ return /* @__PURE__ */ jsx(
60
+ DropdownMenuPrimitive.Item,
61
+ {
62
+ "data-slot": "dropdown-menu-item",
63
+ "data-inset": inset,
64
+ "data-variant": variant,
65
+ className: cn(
66
+ overlayItemClass,
67
+ "data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10",
68
+ className
69
+ ),
70
+ ...props
71
+ }
72
+ );
73
+ }
74
+ function DropdownMenuCheckboxItem({
75
+ className,
76
+ children,
77
+ checked,
78
+ ...props
79
+ }) {
80
+ return /* @__PURE__ */ jsxs(
81
+ DropdownMenuPrimitive.CheckboxItem,
82
+ {
83
+ "data-slot": "dropdown-menu-checkbox-item",
84
+ className: cn(overlayItemClass, "py-1 pr-2 pl-8", className),
85
+ checked,
86
+ ...props,
87
+ children: [
88
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
89
+ children
90
+ ]
91
+ }
92
+ );
93
+ }
94
+ function DropdownMenuRadioGroup({
95
+ ...props
96
+ }) {
97
+ return /* @__PURE__ */ jsx(
98
+ DropdownMenuPrimitive.RadioGroup,
99
+ {
100
+ "data-slot": "dropdown-menu-radio-group",
101
+ ...props
102
+ }
103
+ );
104
+ }
105
+ function DropdownMenuRadioItem({
106
+ className,
107
+ children,
108
+ ...props
109
+ }) {
110
+ return /* @__PURE__ */ jsxs(
111
+ DropdownMenuPrimitive.RadioItem,
112
+ {
113
+ "data-slot": "dropdown-menu-radio-item",
114
+ className: cn(overlayItemClass, "py-1 pr-2 pl-8", className),
115
+ ...props,
116
+ children: [
117
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
118
+ children
119
+ ]
120
+ }
121
+ );
122
+ }
123
+ function DropdownMenuLabel({
124
+ className,
125
+ inset,
126
+ ...props
127
+ }) {
128
+ return /* @__PURE__ */ jsx(
129
+ DropdownMenuPrimitive.Label,
130
+ {
131
+ "data-slot": "dropdown-menu-label",
132
+ "data-inset": inset,
133
+ className: cn(
134
+ "px-2 py-1.5 text-xs font-medium text-muted-foreground data-[inset]:pl-8",
135
+ className
136
+ ),
137
+ ...props
138
+ }
139
+ );
140
+ }
141
+ function DropdownMenuSeparator({
142
+ className,
143
+ ...props
144
+ }) {
145
+ return /* @__PURE__ */ jsx(
146
+ DropdownMenuPrimitive.Separator,
147
+ {
148
+ "data-slot": "dropdown-menu-separator",
149
+ className: cn("-mx-1 my-1 h-px bg-border", className),
150
+ ...props
151
+ }
152
+ );
153
+ }
154
+ function DropdownMenuShortcut({
155
+ className,
156
+ ...props
157
+ }) {
158
+ return /* @__PURE__ */ jsx(
159
+ "span",
160
+ {
161
+ "data-slot": "dropdown-menu-shortcut",
162
+ className: cn(
163
+ "ml-auto text-xs tracking-widest text-muted-foreground",
164
+ className
165
+ ),
166
+ ...props
167
+ }
168
+ );
169
+ }
170
+ function DropdownMenuSub({
171
+ ...props
172
+ }) {
173
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
174
+ }
175
+ function DropdownMenuSubTrigger({
176
+ className,
177
+ inset,
178
+ children,
179
+ ...props
180
+ }) {
181
+ return /* @__PURE__ */ jsxs(
182
+ DropdownMenuPrimitive.SubTrigger,
183
+ {
184
+ "data-slot": "dropdown-menu-sub-trigger",
185
+ "data-inset": inset,
186
+ className: cn(
187
+ overlayItemClass,
188
+ "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-[inset]:pl-8",
189
+ className
190
+ ),
191
+ ...props,
192
+ children: [
193
+ children,
194
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
195
+ ]
196
+ }
197
+ );
198
+ }
199
+ function DropdownMenuSubContent({
200
+ className,
201
+ ...props
202
+ }) {
203
+ return /* @__PURE__ */ jsx(
204
+ DropdownMenuPrimitive.SubContent,
205
+ {
206
+ "data-slot": "dropdown-menu-sub-content",
207
+ className: cn(
208
+ overlayListPanelClass,
209
+ "min-w-[8rem] origin-[var(--radix-dropdown-menu-content-transform-origin)] overflow-hidden p-1",
210
+ className
211
+ ),
212
+ ...props
213
+ }
214
+ );
215
+ }
216
+
217
+ export {
218
+ DropdownMenu,
219
+ DropdownMenuTrigger,
220
+ DropdownMenuGroup,
221
+ DropdownMenuContent,
222
+ DropdownMenuItem,
223
+ DropdownMenuCheckboxItem,
224
+ DropdownMenuRadioGroup,
225
+ DropdownMenuRadioItem,
226
+ DropdownMenuLabel,
227
+ DropdownMenuSeparator,
228
+ DropdownMenuShortcut,
229
+ DropdownMenuSub,
230
+ DropdownMenuSubTrigger,
231
+ DropdownMenuSubContent
232
+ };