@gram-ai/elements 1.33.2 → 1.35.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 (243) hide show
  1. package/dist/compat-shims-CO9JXXV4.cjs.map +1 -1
  2. package/dist/compat-shims-DxtUrORi.js.map +1 -1
  3. package/dist/compat-shims.d.ts +9 -8
  4. package/dist/components/Chat/index.d.ts +2 -1
  5. package/dist/components/ChatHistory.d.ts +1 -1
  6. package/dist/components/FrontendTools/index.d.ts +1 -1
  7. package/dist/components/Replay.d.ts +1 -1
  8. package/dist/components/Replay.stories.d.ts +2 -2
  9. package/dist/components/ShadowRoot.d.ts +1 -1
  10. package/dist/components/ShareButton/index.d.ts +1 -1
  11. package/dist/components/ui/avatar.d.ts +3 -3
  12. package/dist/components/ui/button.d.ts +2 -2
  13. package/dist/components/ui/buttonVariants.d.ts +2 -2
  14. package/dist/components/ui/calendar.d.ts +2 -1
  15. package/dist/components/ui/collapsible.d.ts +3 -3
  16. package/dist/components/ui/dialog.d.ts +10 -10
  17. package/dist/components/ui/popover.d.ts +4 -4
  18. package/dist/components/ui/skeleton.d.ts +1 -1
  19. package/dist/components/ui/time-range-picker.d.ts +18 -1
  20. package/dist/components/ui/time-range-picker.test.d.ts +1 -0
  21. package/dist/components/ui/tool-ui.d.ts +7 -7
  22. package/dist/components/ui/tooltip.d.ts +4 -4
  23. package/dist/contexts/ConnectionStatusContext.d.ts +1 -1
  24. package/dist/contexts/ElementsProvider.d.ts +1 -1
  25. package/dist/contexts/ToolApprovalContext.d.ts +2 -2
  26. package/dist/contexts/ToolExecutionContext.d.ts +1 -1
  27. package/dist/contexts/portal-container.d.ts +1 -1
  28. package/dist/elements.cjs +1 -1
  29. package/dist/elements.css +1 -1
  30. package/dist/elements.js +19 -16
  31. package/dist/hooks/useDensity.d.ts +1 -1
  32. package/dist/hooks/useElements.d.ts +2 -1
  33. package/dist/hooks/useGramThreadListAdapter.d.ts +26 -0
  34. package/dist/hooks/useRadius.d.ts +1 -1
  35. package/dist/hooks/useThemeProps.d.ts +1 -1
  36. package/dist/hooks/useToolApproval.d.ts +2 -1
  37. package/dist/{index-reVrRxP1.js → index-BhIowiZF.js} +9744 -9493
  38. package/dist/index-BhIowiZF.js.map +1 -0
  39. package/dist/{index-DAWGW1Nj.cjs → index-D0jIGQr7.cjs} +43 -43
  40. package/dist/index-D0jIGQr7.cjs.map +1 -0
  41. package/dist/{index-CGoLfO5p.js → index-Dz13dSDa.js} +108 -51
  42. package/dist/index-Dz13dSDa.js.map +1 -0
  43. package/dist/index-PXd3rs95.cjs +194 -0
  44. package/dist/index-PXd3rs95.cjs.map +1 -0
  45. package/dist/index.d.ts +4 -1
  46. package/dist/lib/errorTracking.d.ts +1 -1
  47. package/dist/lib/messageConverter.d.ts +58 -8
  48. package/dist/lib/models.d.ts +1 -1
  49. package/dist/lib/tools.d.ts +11 -10
  50. package/dist/lib/utils.d.ts +2 -0
  51. package/dist/plugins/generative-ui/catalog.d.ts +3 -3
  52. package/dist/plugins/generative-ui/ui/accordion-wrapper.d.ts +2 -2
  53. package/dist/plugins/generative-ui/ui/accordion.d.ts +4 -4
  54. package/dist/plugins/generative-ui/ui/action-button.d.ts +1 -1
  55. package/dist/plugins/generative-ui/ui/alert-wrapper.d.ts +2 -1
  56. package/dist/plugins/generative-ui/ui/alert.d.ts +3 -3
  57. package/dist/plugins/generative-ui/ui/avatar-wrapper.d.ts +2 -1
  58. package/dist/plugins/generative-ui/ui/avatar.d.ts +6 -6
  59. package/dist/plugins/generative-ui/ui/badge.d.ts +2 -2
  60. package/dist/plugins/generative-ui/ui/button-wrapper.d.ts +2 -1
  61. package/dist/plugins/generative-ui/ui/button.d.ts +3 -3
  62. package/dist/plugins/generative-ui/ui/card-wrapper.d.ts +1 -1
  63. package/dist/plugins/generative-ui/ui/card.d.ts +7 -7
  64. package/dist/plugins/generative-ui/ui/checkbox-wrapper.d.ts +2 -1
  65. package/dist/plugins/generative-ui/ui/checkbox.d.ts +1 -1
  66. package/dist/plugins/generative-ui/ui/data-table.d.ts +1 -1
  67. package/dist/plugins/generative-ui/ui/dialog.d.ts +10 -10
  68. package/dist/plugins/generative-ui/ui/dropdown-menu.d.ts +15 -15
  69. package/dist/plugins/generative-ui/ui/grid.d.ts +1 -1
  70. package/dist/plugins/generative-ui/ui/index.d.ts +57 -40
  71. package/dist/plugins/generative-ui/ui/input-wrapper.d.ts +2 -1
  72. package/dist/plugins/generative-ui/ui/input.d.ts +1 -1
  73. package/dist/plugins/generative-ui/ui/label.d.ts +1 -1
  74. package/dist/plugins/generative-ui/ui/list.d.ts +2 -1
  75. package/dist/plugins/generative-ui/ui/metric.d.ts +1 -1
  76. package/dist/plugins/generative-ui/ui/pagination.d.ts +7 -7
  77. package/dist/plugins/generative-ui/ui/popover.d.ts +7 -7
  78. package/dist/plugins/generative-ui/ui/progress.d.ts +1 -1
  79. package/dist/plugins/generative-ui/ui/radio-group.d.ts +2 -2
  80. package/dist/plugins/generative-ui/ui/select-wrapper.d.ts +2 -1
  81. package/dist/plugins/generative-ui/ui/select.d.ts +10 -10
  82. package/dist/plugins/generative-ui/ui/separator.d.ts +1 -1
  83. package/dist/plugins/generative-ui/ui/skeleton-wrapper.d.ts +2 -1
  84. package/dist/plugins/generative-ui/ui/skeleton.d.ts +1 -1
  85. package/dist/plugins/generative-ui/ui/stack.d.ts +1 -1
  86. package/dist/plugins/generative-ui/ui/switch.d.ts +1 -1
  87. package/dist/plugins/generative-ui/ui/table.d.ts +8 -8
  88. package/dist/plugins/generative-ui/ui/tabs-wrapper.d.ts +2 -2
  89. package/dist/plugins/generative-ui/ui/tabs.d.ts +4 -4
  90. package/dist/plugins/generative-ui/ui/text.d.ts +1 -1
  91. package/dist/plugins/generative-ui/ui/textarea.d.ts +1 -1
  92. package/dist/plugins/generative-ui/ui/tooltip.d.ts +4 -4
  93. package/dist/plugins.cjs +1 -1
  94. package/dist/plugins.js +1 -1
  95. package/dist/{profiler-noho3NG9.js → profiler-CtGKTWWP.js} +2 -2
  96. package/dist/{profiler-noho3NG9.js.map → profiler-CtGKTWWP.js.map} +1 -1
  97. package/dist/{profiler-B3tfiOx4.cjs → profiler-l7_HjTyw.cjs} +2 -2
  98. package/dist/{profiler-B3tfiOx4.cjs.map → profiler-l7_HjTyw.cjs.map} +1 -1
  99. package/dist/react-shim.cjs.map +1 -1
  100. package/dist/react-shim.d.ts +1 -1
  101. package/dist/react-shim.js +1 -4
  102. package/dist/react-shim.js.map +1 -1
  103. package/dist/server/bun.cjs.map +1 -1
  104. package/dist/server/bun.js.map +1 -1
  105. package/dist/server/express.cjs.map +1 -1
  106. package/dist/server/express.js.map +1 -1
  107. package/dist/server/fastify.cjs.map +1 -1
  108. package/dist/server/fastify.js.map +1 -1
  109. package/dist/server/hono.cjs.map +1 -1
  110. package/dist/server/hono.js.map +1 -1
  111. package/dist/server/nextjs.cjs.map +1 -1
  112. package/dist/server/nextjs.js.map +1 -1
  113. package/dist/server/tanstack-start.cjs.map +1 -1
  114. package/dist/server/tanstack-start.js.map +1 -1
  115. package/dist/{startRecording-7Oy6wM18.cjs → startRecording-DEw2Aeq4.cjs} +2 -2
  116. package/dist/{startRecording-7Oy6wM18.cjs.map → startRecording-DEw2Aeq4.cjs.map} +1 -1
  117. package/dist/{startRecording-mkmig-2n.js → startRecording-iYEL0-vr.js} +2 -2
  118. package/dist/{startRecording-mkmig-2n.js.map → startRecording-iYEL0-vr.js.map} +1 -1
  119. package/dist/types/index.d.ts +93 -4
  120. package/package.json +8 -9
  121. package/src/compat-shims.ts +16 -2
  122. package/src/components/Chat/index.tsx +4 -1
  123. package/src/components/Chat/stories/FrontendTools.stories.tsx +1 -1
  124. package/src/components/Chat/stories/ToolApproval.stories.tsx +2 -2
  125. package/src/components/Chat/stories/Tools.stories.tsx +13 -5
  126. package/src/components/ChatHistory.tsx +3 -1
  127. package/src/components/FrontendTools/index.tsx +1 -1
  128. package/src/components/MessageContent.tsx +1 -0
  129. package/src/components/Replay.stories.tsx +2 -3
  130. package/src/components/Replay.tsx +17 -10
  131. package/src/components/ShadowRoot.tsx +2 -2
  132. package/src/components/ShareButton/index.tsx +4 -2
  133. package/src/components/assistant-ui/assistant-modal.tsx +5 -3
  134. package/src/components/assistant-ui/attachment.tsx +1 -1
  135. package/src/components/assistant-ui/error-boundary.tsx +1 -1
  136. package/src/components/assistant-ui/markdown-text.tsx +1 -1
  137. package/src/components/assistant-ui/thread.tsx +256 -14
  138. package/src/components/assistant-ui/tool-mention-autocomplete.tsx +1 -1
  139. package/src/components/ui/avatar.tsx +3 -3
  140. package/src/components/ui/calendar.tsx +1 -1
  141. package/src/components/ui/collapsible.tsx +7 -3
  142. package/src/components/ui/dialog.tsx +18 -10
  143. package/src/components/ui/generative-ui.tsx +9 -4
  144. package/src/components/ui/popover.tsx +4 -4
  145. package/src/components/ui/skeleton.tsx +4 -1
  146. package/src/components/ui/time-range-picker.stories.tsx +164 -154
  147. package/src/components/ui/time-range-picker.test.ts +57 -0
  148. package/src/components/ui/time-range-picker.tsx +40 -9
  149. package/src/components/ui/tool-ui.tsx +18 -9
  150. package/src/components/ui/tooltip.tsx +4 -4
  151. package/src/contexts/ChatIdContext.tsx +1 -1
  152. package/src/contexts/ConnectionStatusContext.tsx +6 -5
  153. package/src/contexts/ElementsProvider.tsx +109 -37
  154. package/src/contexts/ReplayContext.ts +1 -1
  155. package/src/contexts/ToolApprovalContext.tsx +5 -1
  156. package/src/contexts/ToolExecutionContext.tsx +1 -1
  157. package/src/contexts/portal-container.tsx +1 -1
  158. package/src/hooks/useAuth.ts +2 -1
  159. package/src/hooks/useDensity.ts +1 -1
  160. package/src/hooks/useElements.ts +2 -1
  161. package/src/hooks/useFollowOnSuggestions.ts +3 -6
  162. package/src/hooks/useGramThreadListAdapter.tsx +118 -9
  163. package/src/hooks/useMCPTools.ts +2 -2
  164. package/src/hooks/useModel.ts +1 -3
  165. package/src/hooks/usePluginComponents.ts +3 -1
  166. package/src/hooks/useRadius.ts +1 -1
  167. package/src/hooks/useSession.ts +3 -1
  168. package/src/hooks/useThemeProps.ts +5 -5
  169. package/src/hooks/useToolApproval.ts +2 -1
  170. package/src/index.ts +16 -0
  171. package/src/lib/cassette.ts +21 -27
  172. package/src/lib/contextCompaction.test.ts +2 -2
  173. package/src/lib/contextCompaction.ts +20 -8
  174. package/src/lib/errorTracking.ts +1 -4
  175. package/src/lib/messageConverter.test.ts +11 -13
  176. package/src/lib/messageConverter.ts +105 -58
  177. package/src/lib/models.ts +19 -7
  178. package/src/lib/token.ts +2 -5
  179. package/src/lib/tool-mentions.ts +5 -2
  180. package/src/lib/tools.byte-cap.test.ts +1 -1
  181. package/src/lib/tools.test.ts +1 -1
  182. package/src/lib/tools.ts +15 -5
  183. package/src/lib/utils.ts +22 -2
  184. package/src/lib.d.ts +8 -1
  185. package/src/plugins/chart/chart.test.ts +3 -4
  186. package/src/plugins/chart/component.tsx +7 -6
  187. package/src/plugins/chart/ui/area-chart.tsx +1 -1
  188. package/src/plugins/chart/ui/line-chart.tsx +1 -1
  189. package/src/plugins/generative-ui/ui/accordion-wrapper.tsx +2 -2
  190. package/src/plugins/generative-ui/ui/accordion.tsx +4 -4
  191. package/src/plugins/generative-ui/ui/action-button.tsx +4 -2
  192. package/src/plugins/generative-ui/ui/alert-wrapper.tsx +1 -1
  193. package/src/plugins/generative-ui/ui/alert.tsx +7 -3
  194. package/src/plugins/generative-ui/ui/avatar-wrapper.tsx +5 -1
  195. package/src/plugins/generative-ui/ui/avatar.tsx +12 -6
  196. package/src/plugins/generative-ui/ui/badge.tsx +1 -1
  197. package/src/plugins/generative-ui/ui/button-wrapper.tsx +1 -1
  198. package/src/plugins/generative-ui/ui/button.tsx +1 -1
  199. package/src/plugins/generative-ui/ui/card-wrapper.tsx +1 -1
  200. package/src/plugins/generative-ui/ui/card.tsx +28 -7
  201. package/src/plugins/generative-ui/ui/checkbox-wrapper.tsx +1 -1
  202. package/src/plugins/generative-ui/ui/checkbox.tsx +1 -1
  203. package/src/plugins/generative-ui/ui/data-table.tsx +1 -1
  204. package/src/plugins/generative-ui/ui/dialog.tsx +15 -10
  205. package/src/plugins/generative-ui/ui/dropdown-menu.tsx +33 -15
  206. package/src/plugins/generative-ui/ui/grid.tsx +1 -1
  207. package/src/plugins/generative-ui/ui/index.ts +154 -40
  208. package/src/plugins/generative-ui/ui/input-wrapper.tsx +1 -1
  209. package/src/plugins/generative-ui/ui/input.tsx +5 -1
  210. package/src/plugins/generative-ui/ui/label.tsx +1 -1
  211. package/src/plugins/generative-ui/ui/list.tsx +5 -1
  212. package/src/plugins/generative-ui/ui/metric.tsx +2 -1
  213. package/src/plugins/generative-ui/ui/pagination.tsx +12 -7
  214. package/src/plugins/generative-ui/ui/popover.tsx +13 -7
  215. package/src/plugins/generative-ui/ui/progress.tsx +1 -1
  216. package/src/plugins/generative-ui/ui/radio-group.tsx +2 -2
  217. package/src/plugins/generative-ui/ui/select-wrapper.tsx +1 -1
  218. package/src/plugins/generative-ui/ui/select.tsx +14 -10
  219. package/src/plugins/generative-ui/ui/separator.tsx +1 -1
  220. package/src/plugins/generative-ui/ui/skeleton-wrapper.tsx +1 -1
  221. package/src/plugins/generative-ui/ui/skeleton.tsx +4 -1
  222. package/src/plugins/generative-ui/ui/stack.tsx +1 -1
  223. package/src/plugins/generative-ui/ui/switch.tsx +1 -1
  224. package/src/plugins/generative-ui/ui/table.tsx +29 -8
  225. package/src/plugins/generative-ui/ui/tabs-wrapper.tsx +5 -2
  226. package/src/plugins/generative-ui/ui/tabs.tsx +4 -4
  227. package/src/plugins/generative-ui/ui/text.tsx +1 -1
  228. package/src/plugins/generative-ui/ui/textarea.tsx +4 -1
  229. package/src/plugins/generative-ui/ui/tooltip.tsx +4 -4
  230. package/src/react-shim.ts +9 -4
  231. package/src/server/bun.ts +1 -1
  232. package/src/server/express.ts +1 -1
  233. package/src/server/fastify.ts +1 -1
  234. package/src/server/hono.ts +1 -1
  235. package/src/server/nextjs.ts +1 -1
  236. package/src/server/tanstack-start.ts +1 -1
  237. package/src/storybook.d.ts +5 -0
  238. package/src/types/index.ts +112 -4
  239. package/dist/index-BCV7Zf9E.cjs +0 -194
  240. package/dist/index-BCV7Zf9E.cjs.map +0 -1
  241. package/dist/index-CGoLfO5p.js.map +0 -1
  242. package/dist/index-DAWGW1Nj.cjs.map +0 -1
  243. package/dist/index-reVrRxP1.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -19,8 +19,11 @@ export type { FrontendTool } from './lib/tools';
19
19
  export { trackError } from './lib/errorTracking';
20
20
  export type { ErrorContext } from './lib/errorTracking';
21
21
  export { CREDITS_EXHAUSTED_MESSAGE, describeStreamError, } from './lib/streamErrorMessage';
22
- export type { AttachmentsConfig, COLOR_SCHEMES, ColorScheme, ComponentOverrides, ComposerConfig, DangerousApiKeyAuthConfig, DENSITIES, Density, Dimension, Dimensions, ElementsConfig, ErrorTrackingConfigOption, GetSessionFn, HistoryConfig, MCPServerEntry, ModalConfig, ModalTriggerPosition, Model, ModelConfig, RADII, Radius, SidecarConfig, Suggestion, ThemeConfig, ToolMentionsConfig, ToolsConfig, ToolsFilter, UnifiedSessionAuthConfig, Variant, VARIANTS, WelcomeConfig, } from './types';
22
+ export type { AttachmentsConfig, COLOR_SCHEMES, ColorScheme, ComponentOverrides, ComposerConfig, DangerousApiKeyAuthConfig, DENSITIES, Density, Dimension, Dimensions, ElementsConfig, ElementsTransportContext, ElementsTransportFactory, ErrorTrackingConfigOption, GetSessionFn, HistoryConfig, MCPServerEntry, ModalConfig, ModalTriggerPosition, Model, ModelConfig, RADII, Radius, SidecarConfig, Suggestion, ThemeConfig, ToolMentionsConfig, ToolsConfig, ToolsFilter, UnifiedSessionAuthConfig, Variant, VARIANTS, WelcomeConfig, } from './types';
23
23
  export { MODELS } from './lib/models';
24
+ export { convertGramMessagesToUIMessages, convertGramMessagesToExported, } from './lib/messageConverter';
25
+ export { sleep } from './lib/utils';
26
+ export type { GramChat, GramChatMessage, GramChatOverview, } from './lib/messageConverter';
24
27
  export type { Plugin } from './types/plugins';
25
28
  export { TimeRangePicker, getPresetRange, PRESETS, } from './components/ui/time-range-picker';
26
29
  export type { TimeRange, TimeRangePreset, TimeRangePickerProps, DateRangePreset, } from './components/ui/time-range-picker';
@@ -17,7 +17,7 @@ export declare function initErrorTracking(config?: ErrorTrackingConfig): void;
17
17
  * Track an error to Datadog RUM.
18
18
  * Includes context about where the error originated.
19
19
  */
20
- export declare function trackError(error: Error | unknown, context: ErrorContext): void;
20
+ export declare function trackError(error: unknown, context: ErrorContext): void;
21
21
  /**
22
22
  * Check if error tracking is currently enabled.
23
23
  */
@@ -1,15 +1,63 @@
1
1
  import { ExportedMessageRepository } from '@assistant-ui/react';
2
- import { Message, UserMessage, AssistantMessage, ToolResponseMessage } from '@openrouter/sdk/models';
3
2
  import { UIMessage } from 'ai';
4
3
  /**
5
- * Represents a chat message from the Gram API.
6
- * This mirrors the ChatMessage type from @gram/sdk without requiring the SDK dependency.
4
+ * A single text part of a multi-modal chat message.
7
5
  */
8
- export type GramChatMessage = Message & {
6
+ export interface GramChatTextPart {
7
+ type: "text";
8
+ text: string;
9
+ }
10
+ /**
11
+ * A single image part of a multi-modal chat message. The wire shape mirrors the
12
+ * upstream OpenAI/OpenRouter chat schema (`image_url.url`) so the converter can
13
+ * read it without normalisation.
14
+ */
15
+ export interface GramChatImagePart {
16
+ type: "image_url";
17
+ image_url?: {
18
+ url?: string;
19
+ };
20
+ }
21
+ /**
22
+ * A single audio part of a multi-modal chat message. Mirrors the OpenAI/OpenRouter
23
+ * `input_audio.{data, format}` shape on the wire.
24
+ */
25
+ export interface GramChatAudioPart {
26
+ type: "input_audio";
27
+ input_audio?: {
28
+ data?: string;
29
+ format?: string;
30
+ };
31
+ }
32
+ /**
33
+ * Content part of a multi-modal chat message.
34
+ */
35
+ export type GramChatContentPart = GramChatTextPart | GramChatImagePart | GramChatAudioPart;
36
+ /**
37
+ * Content of a chat message — either a plain string or an array of parts for
38
+ * multi-modal messages.
39
+ */
40
+ export type GramChatContent = string | GramChatContentPart[];
41
+ /**
42
+ * Represents a chat message from the Gram API. Only fields actually surfaced
43
+ * through Elements' public converters are modelled; provider-specific extras
44
+ * remain on the wire shape but are intentionally not part of the contract.
45
+ *
46
+ * `tool_calls` is the JSON-encoded string the Gram chat service stores on
47
+ * assistant rows; `tool_call_id` is the id the corresponding tool-response row
48
+ * carries when `role === "tool"`.
49
+ */
50
+ export interface GramChatMessage {
9
51
  id: string;
10
52
  model: string;
11
53
  created_at: Date | string;
12
- };
54
+ role: "system" | "developer" | "user" | "assistant" | "tool";
55
+ content?: GramChatContent | null;
56
+ name?: string;
57
+ tool_calls?: string;
58
+ tool_call_id?: string;
59
+ reasoning?: string | null;
60
+ }
13
61
  /**
14
62
  * Represents a chat from the Gram API.
15
63
  */
@@ -37,8 +85,10 @@ export interface GramChatOverview {
37
85
  * Converts an array of Gram ChatMessages to an ExportedMessageRepository.
38
86
  * Creates parent-child relationships based on message order.
39
87
  *
40
- * Note: System messages are filtered out because assistant-ui's
41
- * `fromThreadMessageLike` doesn't support them in the exported format.
88
+ * Note: system, developer, and tool messages are filtered out. assistant-ui's
89
+ * exported format only models user/assistant turns; system/developer rows are
90
+ * pre-prompt instructions the UI doesn't render, and tool rows are folded into
91
+ * the preceding assistant message as `tool-call` parts via `tool_calls`.
42
92
  */
43
93
  export declare function convertGramMessagesToExported(messages: GramChatMessage[]): ExportedMessageRepository;
44
94
  export declare function convertGramMessagesToUIMessages(messages: GramChatMessage[]): {
@@ -48,4 +98,4 @@ export declare function convertGramMessagesToUIMessages(messages: GramChatMessag
48
98
  message: UIMessage;
49
99
  }[];
50
100
  };
51
- export declare function convertGramMessagePartsToUIMessageParts(msg: UserMessage | AssistantMessage, toolResults: Map<string, ToolResponseMessage>, seenToolCallIds?: Set<string>): UIMessage["parts"];
101
+ export declare function convertGramMessagePartsToUIMessageParts(msg: GramChatMessage, toolResults: Map<string, GramChatMessage>, seenToolCallIds?: Set<string>): UIMessage["parts"];
@@ -1 +1 @@
1
- export declare const MODELS: readonly ["anthropic/claude-opus-4.6", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-4.5", "anthropic/claude-opus-4.5", "anthropic/claude-haiku-4.5", "anthropic/claude-opus-4.1", "anthropic/claude-sonnet-4", "openai/gpt-5.4", "openai/gpt-5.4-mini", "openai/gpt-5.1", "openai/gpt-5.1-codex", "openai/gpt-5", "openai/gpt-4.1", "openai/o4-mini", "openai/o3", "google/gemini-3.1-pro-preview", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "deepseek/deepseek-r1", "deepseek/deepseek-v3.2", "meta-llama/llama-4-maverick", "x-ai/grok-4", "qwen/qwen3-coder", "moonshotai/kimi-k2.5", "mistralai/mistral-medium-3.1", "mistralai/codestral-2508", "mistralai/devstral-small"];
1
+ export declare const MODELS: readonly ["anthropic/claude-opus-4.8", "anthropic/claude-opus-4.7", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-4.5", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.5", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5.4", "openai/gpt-5.4-mini", "openai/gpt-5.4-nano", "openai/gpt-5.3-codex", "openai/gpt-5.1", "openai/gpt-5", "openai/gpt-4.1", "openai/o4-mini", "openai/o3", "google/gemini-3.5-flash", "google/gemini-3.1-pro-preview", "google/gemini-3.1-flash-lite", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "deepseek/deepseek-v4-pro", "deepseek/deepseek-v4-flash", "deepseek/deepseek-v3.2", "deepseek/deepseek-r1", "meta-llama/llama-4-maverick", "x-ai/grok-4.3", "x-ai/grok-4.20", "qwen/qwen3.7-max", "qwen/qwen3-coder", "moonshotai/kimi-k2.6", "moonshotai/kimi-k2.5", "mistralai/mistral-medium-3-5", "mistralai/codestral-2508", "mistralai/devstral-2512", "mistralai/mistral-medium-3.1"];
@@ -5,22 +5,23 @@ import { FC } from 'react';
5
5
  /**
6
6
  * Converts from assistant-ui tool format to the AI SDK tool shape
7
7
  */
8
- export declare const toAISDKTools: (tools: Record<string, Tool>) => {
9
- [k: string]: {
10
- parameters: JSONSchema7;
11
- description?: string | undefined;
12
- };
13
- };
8
+ export declare const toAISDKTools: (tools: Record<string, Tool>) => Record<string, {
9
+ description?: string;
10
+ parameters: JSONSchema7;
11
+ }>;
14
12
  /**
15
13
  * Returns only frontend tools that are enabled
16
14
  */
17
- export declare const getEnabledTools: (tools: Record<string, Tool>) => {
18
- [k: string]: Tool;
19
- };
15
+ export declare const getEnabledTools: (tools: Record<string, Tool>) => Record<string, Tool>;
20
16
  /**
21
17
  * A frontend tool is a tool that is defined by the user and can be used in the chat.
18
+ *
19
+ * Shape mirrors assistant-ui's `AssistantTool`: an `FC` (rendered with no props
20
+ * at runtime to register the tool) plus an `unstable_tool` describing the tool
21
+ * itself. Keeping the FC unparameterised here matches the SDK and allows tools
22
+ * with different `TArgs`/`TResult` to coexist in a `Record<string, FrontendTool<...>>`.
22
23
  */
23
- export type FrontendTool<TArgs extends Record<string, unknown>, TResult> = FC<AssistantToolProps<TArgs, TResult>> & {
24
+ export type FrontendTool<TArgs extends Record<string, unknown>, TResult> = FC & {
24
25
  unstable_tool: AssistantToolProps<TArgs, TResult>;
25
26
  };
26
27
  /**
@@ -2,3 +2,5 @@ import { ClassValue } from 'clsx';
2
2
  export declare function cn(...inputs: ClassValue[]): string;
3
3
  export declare function assertNever(value: unknown): never;
4
4
  export declare function assert(condition: unknown, message: string): asserts condition;
5
+ /** Sleep that respects AbortSignal for clean cancellation. */
6
+ export declare function sleep(ms: number, signal?: AbortSignal): Promise<void>;
@@ -156,8 +156,8 @@ export declare const catalog: import('@json-render/core').Catalog<{
156
156
  Accordion: {
157
157
  props: z.ZodObject<{
158
158
  type: z.ZodOptional<z.ZodEnum<{
159
- single: "single";
160
159
  multiple: "multiple";
160
+ single: "single";
161
161
  }>>;
162
162
  }, z.core.$strip>;
163
163
  hasChildren: true;
@@ -200,8 +200,8 @@ export declare const catalog: import('@json-render/core').Catalog<{
200
200
  ghost: "ghost";
201
201
  }>>;
202
202
  size: z.ZodOptional<z.ZodEnum<{
203
- default: "default";
204
203
  icon: "icon";
204
+ default: "default";
205
205
  sm: "sm";
206
206
  lg: "lg";
207
207
  }>>;
@@ -224,8 +224,8 @@ export declare const catalog: import('@json-render/core').Catalog<{
224
224
  ghost: "ghost";
225
225
  }>>;
226
226
  size: z.ZodOptional<z.ZodEnum<{
227
- default: "default";
228
227
  icon: "icon";
228
+ default: "default";
229
229
  sm: "sm";
230
230
  lg: "lg";
231
231
  }>>;
@@ -6,7 +6,7 @@ export interface AccordionWrapperProps {
6
6
  /**
7
7
  * Accordion wrapper that adapts the compound Accordion to the catalog's props-based API.
8
8
  */
9
- export declare function AccordionWrapper({ type, children, }: AccordionWrapperProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function AccordionWrapper({ type, children, }: AccordionWrapperProps): React.JSX.Element;
10
10
  export interface AccordionItemWrapperProps {
11
11
  value: string;
12
12
  title: string;
@@ -15,4 +15,4 @@ export interface AccordionItemWrapperProps {
15
15
  /**
16
16
  * AccordionItem wrapper that takes title as a prop and renders trigger + content.
17
17
  */
18
- export declare function AccordionItemWrapper({ value, title, children, }: AccordionItemWrapperProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function AccordionItemWrapper({ value, title, children, }: AccordionItemWrapperProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { Accordion as AccordionPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
- declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): React.JSX.Element;
4
+ declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): React.JSX.Element;
5
+ declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): React.JSX.Element;
6
+ declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): React.JSX.Element;
7
7
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -7,4 +7,4 @@ export interface ActionButtonProps extends Omit<React.ComponentProps<"button">,
7
7
  action: string;
8
8
  args?: Record<string, unknown>;
9
9
  }
10
- export declare function ActionButton({ label, action, args, variant, size, className, disabled, ...props }: ActionButtonProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function ActionButton({ label, action, args, variant, size, className, disabled, ...props }: ActionButtonProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  export interface AlertWrapperProps {
2
3
  title: string;
3
4
  description?: string;
@@ -6,4 +7,4 @@ export interface AlertWrapperProps {
6
7
  /**
7
8
  * Alert wrapper that takes title and description as props.
8
9
  */
9
- export declare function AlertWrapper({ title, description, variant, }: AlertWrapperProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function AlertWrapper({ title, description, variant, }: AlertWrapperProps): React.JSX.Element;
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  declare const alertVariants: (props?: ({
4
4
  variant?: "default" | "destructive" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
7
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
9
  export { Alert, AlertTitle, AlertDescription };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  export interface AvatarWrapperProps {
2
3
  src?: string;
3
4
  alt?: string;
@@ -6,4 +7,4 @@ export interface AvatarWrapperProps {
6
7
  /**
7
8
  * Avatar wrapper that takes src, alt, and fallback as props.
8
9
  */
9
- export declare function AvatarWrapper({ src, alt, fallback }: AvatarWrapperProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function AvatarWrapper({ src, alt, fallback, }: AvatarWrapperProps): React.JSX.Element;
@@ -2,10 +2,10 @@ import { Avatar as AvatarPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
3
  declare function Avatar({ className, size, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root> & {
4
4
  size?: "default" | "sm" | "lg";
5
- }): import("react/jsx-runtime").JSX.Element;
6
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
7
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
8
- declare function AvatarBadge({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
- declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
6
+ declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): React.JSX.Element;
7
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): React.JSX.Element;
8
+ declare function AvatarBadge({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
9
+ declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
11
  export { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount, };
@@ -1,12 +1,12 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "success" | "default" | "error" | "destructive" | "secondary" | "warning" | "outline" | null | undefined;
4
+ variant?: "error" | "success" | "default" | "destructive" | "secondary" | "warning" | "outline" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  interface BadgeProps extends React.ComponentProps<"span">, VariantProps<typeof badgeVariants> {
7
7
  asChild?: boolean;
8
8
  /** Content text (matches LLM prompt) - rendered as children */
9
9
  content?: string;
10
10
  }
11
- declare function Badge({ className, variant, asChild, content, children, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function Badge({ className, variant, asChild, content, children, ...props }: BadgeProps): React.JSX.Element;
12
12
  export { Badge, badgeVariants };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  export interface ButtonWrapperProps {
2
3
  label: string;
3
4
  variant?: "default" | "secondary" | "destructive" | "outline" | "ghost";
@@ -12,4 +13,4 @@ export interface ButtonWrapperProps {
12
13
  * Button wrapper that takes label as a prop.
13
14
  * The action/actionParams props are for future backend integration.
14
15
  */
15
- export declare function ButtonWrapper({ label, variant, size, disabled, }: ButtonWrapperProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function ButtonWrapper({ label, variant, size, disabled, }: ButtonWrapperProps): React.JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "default" | "link" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
5
- size?: "default" | "icon" | "sm" | "lg" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
5
+ size?: "icon" | "default" | "sm" | "lg" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): React.JSX.Element;
10
10
  export { Button, buttonVariants };
@@ -7,4 +7,4 @@ export interface CardWrapperProps extends React.ComponentProps<"div"> {
7
7
  * It has no border or shadow since it's rendered inside MacOSWindowFrame.
8
8
  * Children are spaced using flex gap for proper composition.
9
9
  */
10
- export declare function CardWrapper({ title, className, children, ...props }: CardWrapperProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function CardWrapper({ title, className, children, ...props }: CardWrapperProps): React.JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
- declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
- declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
2
+ declare function Card({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
3
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
4
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
5
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
6
+ declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
7
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
9
  export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  export interface CheckboxWrapperProps {
2
3
  label?: string;
3
4
  /** Path for form state management (future use) */
@@ -7,4 +8,4 @@ export interface CheckboxWrapperProps {
7
8
  /**
8
9
  * Checkbox wrapper that adds label support.
9
10
  */
10
- export declare function CheckboxWrapper({ label, valuePath, defaultChecked, }: CheckboxWrapperProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function CheckboxWrapper({ label, valuePath, defaultChecked, }: CheckboxWrapperProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { Checkbox as CheckboxPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
4
4
  export { Checkbox };
@@ -7,4 +7,4 @@ export interface DataTableProps extends React.ComponentProps<"div"> {
7
7
  * DataTable adapts the compound Table component to a simple props-based API
8
8
  * for use with the json-render catalog.
9
9
  */
10
- export declare function DataTable({ headers, rows, className, ...props }: DataTableProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function DataTable({ headers, rows, className, ...props }: DataTableProps): React.JSX.Element;
@@ -1,17 +1,17 @@
1
1
  import { Dialog as DialogPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
8
8
  declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
9
  showCloseButton?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
+ }): React.JSX.Element;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
12
  declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
13
13
  showCloseButton?: boolean;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
16
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
14
+ }): React.JSX.Element;
15
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
16
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
17
17
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -1,25 +1,25 @@
1
1
  import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
8
8
  declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
9
  inset?: boolean;
10
10
  variant?: "default" | "destructive";
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
- declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
15
15
  declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
16
  inset?: boolean;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
20
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
17
+ }): React.JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
21
21
  declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
22
  inset?: boolean;
23
- }): import("react/jsx-runtime").JSX.Element;
24
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
23
+ }): React.JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
25
25
  export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -3,4 +3,4 @@ export interface GridProps extends React.ComponentProps<"div"> {
3
3
  columns?: number;
4
4
  gap?: "sm" | "md" | "lg";
5
5
  }
6
- export declare function Grid({ columns, gap, className, ...props }: GridProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function Grid({ columns, gap, className, ...props }: GridProps): React.JSX.Element;
@@ -1,40 +1,57 @@
1
- export * from './accordion';
2
- export * from './alert';
3
- export * from './avatar';
4
- export * from './badge';
5
- export * from './button';
6
- export * from './card';
7
- export * from './checkbox';
8
- export * from './dialog';
9
- export * from './dropdown-menu';
10
- export * from './input';
11
- export * from './label';
12
- export * from './pagination';
13
- export * from './popover';
14
- export * from './progress';
15
- export * from './radio-group';
16
- export * from './select';
17
- export * from './separator';
18
- export * from './skeleton';
19
- export * from './switch';
20
- export * from './table';
21
- export * from './tabs';
22
- export * from './textarea';
23
- export * from './tooltip';
24
- export * from './accordion-wrapper';
25
- export * from './action-button';
26
- export * from './alert-wrapper';
27
- export * from './avatar-wrapper';
28
- export * from './button-wrapper';
29
- export * from './card-wrapper';
30
- export * from './checkbox-wrapper';
31
- export * from './data-table';
32
- export * from './grid';
33
- export * from './input-wrapper';
34
- export * from './list';
35
- export * from './metric';
36
- export * from './select-wrapper';
37
- export * from './skeleton-wrapper';
38
- export * from './stack';
39
- export * from './tabs-wrapper';
40
- export * from './text';
1
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from './accordion';
2
+ export { Alert, AlertDescription, AlertTitle } from './alert';
3
+ export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, } from './avatar';
4
+ export { Badge, badgeVariants } from './badge';
5
+ export { Button, buttonVariants } from './button';
6
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from './card';
7
+ export { Checkbox } from './checkbox';
8
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from './dialog';
9
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from './dropdown-menu';
10
+ export { Input } from './input';
11
+ export { Label } from './label';
12
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './pagination';
13
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from './popover';
14
+ export { Progress } from './progress';
15
+ export { RadioGroup, RadioGroupItem } from './radio-group';
16
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from './select';
17
+ export { Separator } from './separator';
18
+ export { Skeleton } from './skeleton';
19
+ export { Switch } from './switch';
20
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from './table';
21
+ export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants, } from './tabs';
22
+ export { Textarea } from './textarea';
23
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from './tooltip';
24
+ export { AccordionItemWrapper, AccordionWrapper } from './accordion-wrapper';
25
+ export type { AccordionItemWrapperProps, AccordionWrapperProps, } from './accordion-wrapper';
26
+ export { ActionButton } from './action-button';
27
+ export type { ActionButtonProps } from './action-button';
28
+ export { AlertWrapper } from './alert-wrapper';
29
+ export type { AlertWrapperProps } from './alert-wrapper';
30
+ export { AvatarWrapper } from './avatar-wrapper';
31
+ export type { AvatarWrapperProps } from './avatar-wrapper';
32
+ export { ButtonWrapper } from './button-wrapper';
33
+ export type { ButtonWrapperProps } from './button-wrapper';
34
+ export { CardWrapper } from './card-wrapper';
35
+ export type { CardWrapperProps } from './card-wrapper';
36
+ export { CheckboxWrapper } from './checkbox-wrapper';
37
+ export type { CheckboxWrapperProps } from './checkbox-wrapper';
38
+ export { DataTable } from './data-table';
39
+ export type { DataTableProps } from './data-table';
40
+ export { Grid } from './grid';
41
+ export type { GridProps } from './grid';
42
+ export { InputWrapper } from './input-wrapper';
43
+ export type { InputWrapperProps } from './input-wrapper';
44
+ export { List } from './list';
45
+ export type { ListProps } from './list';
46
+ export { Metric } from './metric';
47
+ export type { MetricProps } from './metric';
48
+ export { SelectWrapper } from './select-wrapper';
49
+ export type { SelectWrapperProps } from './select-wrapper';
50
+ export { SkeletonWrapper } from './skeleton-wrapper';
51
+ export type { SkeletonWrapperProps } from './skeleton-wrapper';
52
+ export { Stack } from './stack';
53
+ export type { StackProps } from './stack';
54
+ export { TabContentWrapper, TabsWrapper } from './tabs-wrapper';
55
+ export type { TabContentWrapperProps, TabsWrapperProps } from './tabs-wrapper';
56
+ export { Text } from './text';
57
+ export type { TextProps } from './text';
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  export interface InputWrapperProps {
2
3
  label?: string;
3
4
  placeholder?: string;
@@ -8,4 +9,4 @@ export interface InputWrapperProps {
8
9
  /**
9
10
  * Input wrapper that adds label support.
10
11
  */
11
- export declare function InputWrapper({ label, placeholder, type, valuePath, }: InputWrapperProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function InputWrapper({ label, placeholder, type, valuePath, }: InputWrapperProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import * as React from "react";
2
- declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
2
+ declare function Input({ className, type, ...props }: React.ComponentProps<"input">): React.JSX.Element;
3
3
  export { Input };
@@ -1,4 +1,4 @@
1
1
  import { Label as LabelPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): React.JSX.Element;
4
4
  export { Label };
@@ -1,6 +1,7 @@
1
+ import * as React from "react";
1
2
  export interface ListProps {
2
3
  items: string[];
3
4
  ordered?: boolean;
4
5
  className?: string;
5
6
  }
6
- export declare function List({ items, ordered, className }: ListProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function List({ items, ordered, className, }: ListProps): React.JSX.Element;