@timbal-ai/timbal-react 0.6.0 → 0.7.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 (44) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +24 -5
  3. package/dist/app.cjs +2282 -738
  4. package/dist/app.d.cts +4 -1
  5. package/dist/app.d.ts +4 -1
  6. package/dist/app.esm.js +58 -5
  7. package/dist/button-CIKzUrJI.d.cts +18 -0
  8. package/dist/button-CIKzUrJI.d.ts +18 -0
  9. package/dist/chart-artifact-BFDz8Tf9.d.ts +756 -0
  10. package/dist/chart-artifact-bWUa-iSG.d.cts +756 -0
  11. package/dist/chat.cjs +872 -562
  12. package/dist/chat.d.cts +2 -2
  13. package/dist/chat.d.ts +2 -2
  14. package/dist/chat.esm.js +3 -3
  15. package/dist/{chunk-4TCJQSIX.esm.js → chunk-2XZ3S4OP.esm.js} +14 -3
  16. package/dist/chunk-533MK5EA.esm.js +2294 -0
  17. package/dist/{chunk-OVHR7J3J.esm.js → chunk-7O5VY3TP.esm.js} +38 -11
  18. package/dist/{chunk-WLTW56MC.esm.js → chunk-N3PYVTY5.esm.js} +2 -2
  19. package/dist/{chunk-IYENDIRY.esm.js → chunk-TDIJHV4I.esm.js} +1 -1
  20. package/dist/{chunk-YJQLLFKP.esm.js → chunk-TLUF2RUL.esm.js} +813 -507
  21. package/dist/{chunk-OFHLFNJH.esm.js → chunk-Z27GBSOT.esm.js} +3 -1
  22. package/dist/index.cjs +2587 -1016
  23. package/dist/index.d.cts +6 -5
  24. package/dist/index.d.ts +6 -5
  25. package/dist/index.esm.js +57 -7
  26. package/dist/{layout-CQWngNQ7.d.ts → layout-BTJyU8wd.d.ts} +1 -1
  27. package/dist/{layout-B9VayJhZ.d.cts → layout-C2G-FcER.d.cts} +1 -1
  28. package/dist/studio.cjs +1127 -788
  29. package/dist/studio.d.cts +1 -1
  30. package/dist/studio.d.ts +1 -1
  31. package/dist/studio.esm.js +6 -6
  32. package/dist/{timbal-v2-button-F4-z7m33.d.ts → timbal-v2-button-CNfdwGq4.d.cts} +1 -1
  33. package/dist/{timbal-v2-button-F4-z7m33.d.cts → timbal-v2-button-CNfdwGq4.d.ts} +1 -1
  34. package/dist/ui.cjs +12 -3
  35. package/dist/ui.d.cts +5 -16
  36. package/dist/ui.d.ts +5 -16
  37. package/dist/ui.esm.js +2 -2
  38. package/dist/{welcome-BOizSp5h.d.ts → welcome-BBmB3tl7.d.ts} +4 -3
  39. package/dist/{welcome--80i_O0p.d.cts → welcome-C89Mgdaw.d.cts} +4 -3
  40. package/package.json +2 -1
  41. package/vite/local-dev.mjs +91 -5
  42. package/dist/chart-artifact-C71dk4xI.d.ts +0 -329
  43. package/dist/chart-artifact-CPEpOmtV.d.cts +0 -329
  44. package/dist/chunk-M4V6Q6XO.esm.js +0 -1082
package/dist/chat.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  export { c as ChatAttachment, d as ChatMessage, e as Composer, f as ComposerProps, g as ContentPart, S as SendOptions, h as Suggestions, i as SuggestionsComponent, j as SuggestionsSlotProps, k as SuggestionsSource, l as TextContentPart, m as ThinkingContentPart, n as Thread, o as ThreadArtifactsConfig, p as ThreadComponents, q as ThreadProps, r as ThreadSuggestion, s as ThreadSuggestionsProps, T as ThreadVariant, t as ThreadWelcomeConfig, u as ThreadWelcomeProps, a as TimbalChat, b as TimbalChatProps, v as TimbalRuntimeProvider, w as TimbalRuntimeProviderProps, x as TimbalStreamApi, y as ToolCallContentPart, U as UseTimbalStreamOptions, z as useResolvedSuggestions, A as useTimbalRuntime, B as useTimbalStream } from './chat-CWtQWDtJ.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-B9VayJhZ.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';
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-F4-z7m33.cjs';
7
+ import './timbal-v2-button-CNfdwGq4.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
1
  export { c as ChatAttachment, d as ChatMessage, e as Composer, f as ComposerProps, g as ContentPart, S as SendOptions, h as Suggestions, i as SuggestionsComponent, j as SuggestionsSlotProps, k as SuggestionsSource, l as TextContentPart, m as ThinkingContentPart, n as Thread, o as ThreadArtifactsConfig, p as ThreadComponents, q as ThreadProps, r as ThreadSuggestion, s as ThreadSuggestionsProps, T as ThreadVariant, t as ThreadWelcomeConfig, u as ThreadWelcomeProps, a as TimbalChat, b as TimbalChatProps, v as TimbalRuntimeProvider, w as TimbalRuntimeProviderProps, x as TimbalStreamApi, y as ToolCallContentPart, U as UseTimbalStreamOptions, z as useResolvedSuggestions, A as useTimbalRuntime, B as useTimbalStream } from './chat-CWtQWDtJ.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-CQWngNQ7.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';
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-F4-z7m33.js';
7
+ import './timbal-v2-button-CNfdwGq4.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-WLTW56MC.esm.js";
10
+ } from "./chunk-N3PYVTY5.esm.js";
11
11
  import {
12
12
  Composer,
13
13
  ComposerAddAttachment,
@@ -24,8 +24,8 @@ import {
24
24
  useTimbalRuntime,
25
25
  useTimbalStream,
26
26
  useToolRunning
27
- } from "./chunk-YJQLLFKP.esm.js";
28
- import "./chunk-4TCJQSIX.esm.js";
27
+ } from "./chunk-TLUF2RUL.esm.js";
28
+ import "./chunk-2XZ3S4OP.esm.js";
29
29
  export {
30
30
  Composer,
31
31
  ComposerAddAttachment,
@@ -103,6 +103,10 @@ var TIMBAL_V2_SWITCH_THUMB = cn(
103
103
  TIMBAL_V2_ELEVATED_GRADIENT,
104
104
  "border border-border/80 shadow-sm"
105
105
  );
106
+ var TIMBAL_V2_ELEVATED_SURFACE = cn(
107
+ TIMBAL_V2_ELEVATED_GRADIENT,
108
+ "border border-border shadow-card"
109
+ );
106
110
  var TIMBAL_V2_SECONDARY_CHROME = [
107
111
  TIMBAL_V2_ELEVATED_GRADIENT,
108
112
  "border border-border shadow-card",
@@ -110,6 +114,11 @@ var TIMBAL_V2_SECONDARY_CHROME = [
110
114
  "hover:from-secondary-fill-hover-from hover:to-secondary-fill-hover-to",
111
115
  "active:from-secondary-fill-active-from active:to-secondary-fill-active-to"
112
116
  ].join(" ");
117
+ var TIMBAL_V2_LOGO_TILE = cn(
118
+ "bg-gradient-to-b from-white to-neutral-100",
119
+ "border border-neutral-200",
120
+ "shadow-[0_1px_2px_-0.5px_rgba(0,0,0,0.08)]"
121
+ );
113
122
 
114
123
  // src/ui/timbal-v2-button.tsx
115
124
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -152,7 +161,7 @@ var TimbalV2Button = React.forwardRef(function TimbalV2Button2({
152
161
  isIconOnly = false,
153
162
  isLoading = false,
154
163
  fullWidth = false,
155
- shape = "pill",
164
+ shape: _shape = "pill",
156
165
  asChild = false,
157
166
  className,
158
167
  disabled,
@@ -162,7 +171,7 @@ var TimbalV2Button = React.forwardRef(function TimbalV2Button2({
162
171
  }, ref) {
163
172
  const isDisabled = disabled || isLoading;
164
173
  const sizeClass = isIconOnly ? TIMBAL_V2_SIZE_ICON[size] : TIMBAL_V2_SIZE_HEIGHT[size];
165
- const radiusClass = variant === "link" || variant === "ghost" ? "rounded-md" : shape === "rect" ? "rounded-md" : "rounded-full";
174
+ const radiusClass = "rounded-full";
166
175
  const sharedRootClass = cn(
167
176
  "relative box-border inline-flex items-center justify-center gap-2 whitespace-nowrap border-0 text-sm font-normal shadow-none transition duration-200 ease-in-out",
168
177
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-1 focus-visible:ring-offset-background",
@@ -484,7 +493,7 @@ function Button({
484
493
  "data-size": size,
485
494
  variant: v2Variant,
486
495
  size: v2Size,
487
- shape: "rect",
496
+ shape: "pill",
488
497
  isIconOnly,
489
498
  asChild,
490
499
  className: cn(buttonVariants({ variant, size, className })),
@@ -544,7 +553,9 @@ export {
544
553
  TIMBAL_V2_ELEVATED_GRADIENT,
545
554
  TIMBAL_V2_SWITCH_TRACK_OFF,
546
555
  TIMBAL_V2_SWITCH_THUMB,
556
+ TIMBAL_V2_ELEVATED_SURFACE,
547
557
  TIMBAL_V2_SECONDARY_CHROME,
558
+ TIMBAL_V2_LOGO_TILE,
548
559
  TimbalV2Button,
549
560
  TooltipProvider,
550
561
  Tooltip,