@melony/react 0.1.23 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ReactNode } from 'react';
2
+ import React__default, { ReactNode, CSSProperties } from 'react';
3
3
  import { ClientState, MelonyClient } from 'melony/client';
4
- import { Role, Event, UINode } from 'melony';
4
+ import { Role, Event, Config, UINode, UIContract } from 'melony';
5
5
  import { QueryClient } from '@tanstack/react-query';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
@@ -65,10 +65,7 @@ interface MelonyContextValue extends ClientState {
65
65
  }) => Promise<void>;
66
66
  reset: (events?: Event[]) => void;
67
67
  client: MelonyClient;
68
- config?: {
69
- starterPrompts: any[];
70
- options: any[];
71
- };
68
+ config?: Config;
72
69
  }
73
70
  declare const MelonyContext: React__default.Context<MelonyContextValue | undefined>;
74
71
  interface MelonyClientProviderProps {
@@ -76,7 +73,6 @@ interface MelonyClientProviderProps {
76
73
  client: MelonyClient;
77
74
  initialEvents?: Event[];
78
75
  queryClient?: QueryClient;
79
- configApi?: string;
80
76
  }
81
77
  declare const MelonyClientProvider: React__default.FC<MelonyClientProviderProps>;
82
78
 
@@ -135,6 +131,20 @@ declare const useAuth: () => AuthContextValue;
135
131
 
136
132
  declare const useThreads: () => ThreadContextValue;
137
133
 
134
+ interface ScreenSize {
135
+ width: number;
136
+ height: number;
137
+ isMobile: boolean;
138
+ isTablet: boolean;
139
+ isDesktop: boolean;
140
+ }
141
+ /**
142
+ * Hook to detect screen size and breakpoints
143
+ * @param mobileBreakpoint - Breakpoint for mobile (default: 768px, Tailwind's md)
144
+ * @param tabletBreakpoint - Breakpoint for tablet (default: 1024px, Tailwind's lg)
145
+ */
146
+ declare function useScreenSize(mobileBreakpoint?: number, tabletBreakpoint?: number): ScreenSize;
147
+
138
148
  interface ThreadProps {
139
149
  className?: string;
140
150
  placeholder?: string;
@@ -156,8 +166,14 @@ interface ComposerProps {
156
166
  options?: ComposerOptionGroup[];
157
167
  autoFocus?: boolean;
158
168
  defaultSelectedIds?: string[];
169
+ fileAttachments?: {
170
+ enabled?: boolean;
171
+ accept?: string;
172
+ maxFiles?: number;
173
+ maxFileSize?: number;
174
+ };
159
175
  }
160
- declare function Composer({ value, onChange, onSubmit, placeholder, isLoading, className, options, autoFocus, defaultSelectedIds, }: ComposerProps): react_jsx_runtime.JSX.Element;
176
+ declare function Composer({ value, onChange, onSubmit, placeholder, isLoading, className, options, autoFocus, defaultSelectedIds, fileAttachments, }: ComposerProps): react_jsx_runtime.JSX.Element;
161
177
 
162
178
  interface ChatHeaderProps {
163
179
  /**
@@ -189,7 +205,7 @@ interface ChatHeaderProps {
189
205
  * A shared, customizable header component for chat interfaces.
190
206
  * Used consistently across ChatFull, ChatSidebar, and ChatPopup components.
191
207
  */
192
- declare function ChatHeader({ title, leftContent, rightContent, className, titleClassName, children, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
208
+ declare function ChatHeader({ leftContent, rightContent, className, children, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
193
209
 
194
210
  interface ChatPopupProps {
195
211
  title?: string;
@@ -252,38 +268,6 @@ interface ChatFullProps {
252
268
  * Custom className for the right sidebar container
253
269
  */
254
270
  rightSidebarClassName?: string;
255
- /**
256
- * Whether the left sidebar is collapsible
257
- */
258
- leftSidebarCollapsible?: boolean;
259
- /**
260
- * Whether the right sidebar is collapsible
261
- */
262
- rightSidebarCollapsible?: boolean;
263
- /**
264
- * Default collapsed state for the left sidebar
265
- */
266
- defaultLeftSidebarCollapsed?: boolean;
267
- /**
268
- * Default collapsed state for the right sidebar
269
- */
270
- defaultRightSidebarCollapsed?: boolean;
271
- /**
272
- * Controlled collapsed state for the left sidebar. If provided, component becomes controlled.
273
- */
274
- leftSidebarCollapsed?: boolean;
275
- /**
276
- * Controlled collapsed state for the right sidebar. If provided, component becomes controlled.
277
- */
278
- rightSidebarCollapsed?: boolean;
279
- /**
280
- * Callback when left sidebar collapse state changes
281
- */
282
- onLeftSidebarCollapseChange?: (collapsed: boolean) => void;
283
- /**
284
- * Callback when right sidebar collapse state changes
285
- */
286
- onRightSidebarCollapseChange?: (collapsed: boolean) => void;
287
271
  /**
288
272
  * Whether the composer should be auto focused
289
273
  */
@@ -293,7 +277,24 @@ interface ChatFullProps {
293
277
  */
294
278
  defaultSelectedIds?: string[];
295
279
  }
296
- declare function ChatFull({ title, placeholder, starterPrompts, options, className, headerProps, leftSidebar, rightSidebar, leftSidebarClassName, rightSidebarClassName, leftSidebarCollapsible, rightSidebarCollapsible, defaultLeftSidebarCollapsed, defaultRightSidebarCollapsed, leftSidebarCollapsed: controlledLeftCollapsed, rightSidebarCollapsed: controlledRightCollapsed, onLeftSidebarCollapseChange, onRightSidebarCollapseChange, autoFocus, defaultSelectedIds, }: ChatFullProps): react_jsx_runtime.JSX.Element;
280
+ declare function ChatFull({ title, placeholder, starterPrompts, options, className, headerProps, leftSidebar, rightSidebar, leftSidebarClassName, rightSidebarClassName, autoFocus, defaultSelectedIds, }: ChatFullProps): react_jsx_runtime.JSX.Element;
281
+
282
+ interface SidebarToggleProps {
283
+ side: "left" | "right";
284
+ className?: string;
285
+ }
286
+ declare function SidebarToggle({ side, className }: SidebarToggleProps): react_jsx_runtime.JSX.Element | null;
287
+
288
+ interface ChatSidebarContextValue {
289
+ leftCollapsed: boolean;
290
+ rightCollapsed: boolean;
291
+ setLeftCollapsed: (collapsed: boolean) => void;
292
+ setRightCollapsed: (collapsed: boolean) => void;
293
+ leftCollapsible: boolean;
294
+ rightCollapsible: boolean;
295
+ }
296
+ declare const ChatSidebarContext: React__default.Context<ChatSidebarContextValue | undefined>;
297
+ declare function useChatSidebar(): ChatSidebarContextValue;
297
298
 
298
299
  interface ThreadListProps {
299
300
  className?: string;
@@ -340,6 +341,136 @@ interface UIRendererProps {
340
341
  */
341
342
  declare function UIRenderer({ node }: UIRendererProps): react_jsx_runtime.JSX.Element;
342
343
 
344
+ type Spacing = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
345
+ type FontSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
346
+ type FontWeight = "normal" | "medium" | "semibold" | "bold";
347
+
348
+ type Size = "sm" | "md" | "lg";
349
+ type Align = "start" | "center" | "end" | "stretch";
350
+ type Justify = "start" | "center" | "end" | "between" | "around";
351
+ type Orientation = "horizontal" | "vertical";
352
+ interface BaseComponentProps {
353
+ className?: string;
354
+ style?: CSSProperties;
355
+ }
356
+ type CardProps = BaseComponentProps & UIContract["card"] & {
357
+ children?: React__default.ReactNode[];
358
+ };
359
+ type RowProps = BaseComponentProps & UIContract["row"] & {
360
+ children?: React__default.ReactNode[];
361
+ };
362
+ type ColProps = BaseComponentProps & UIContract["col"] & {
363
+ children?: React__default.ReactNode[] | React__default.ReactNode;
364
+ overflow?: "visible" | "hidden" | "scroll" | "auto";
365
+ position?: "static" | "relative" | "absolute" | "fixed" | "sticky";
366
+ };
367
+ type BoxProps = BaseComponentProps & UIContract["box"] & {
368
+ children?: React__default.ReactNode | React__default.ReactNode[];
369
+ overflow?: "visible" | "hidden" | "scroll" | "auto";
370
+ };
371
+ type SpacerProps = BaseComponentProps & UIContract["spacer"];
372
+ type DividerProps = BaseComponentProps & UIContract["divider"] & {
373
+ size?: Size;
374
+ };
375
+ type ListProps = BaseComponentProps & {
376
+ children?: React__default.ReactNode;
377
+ width?: string | number;
378
+ };
379
+ type ListItemProps = BaseComponentProps & UIContract["listItem"] & {
380
+ children?: React__default.ReactNode;
381
+ orientation?: Orientation;
382
+ align?: Align;
383
+ justify?: Justify;
384
+ width?: string | number;
385
+ padding?: Spacing;
386
+ };
387
+ type ImageProps = BaseComponentProps & UIContract["image"] & {
388
+ fallbackText?: string;
389
+ showFallbackIcon?: boolean;
390
+ };
391
+ type ChartProps = BaseComponentProps & UIContract["chart"] & {
392
+ size?: Size;
393
+ showValues?: boolean;
394
+ showGrid?: boolean;
395
+ showTooltips?: boolean;
396
+ };
397
+ type BadgeProps = BaseComponentProps & UIContract["badge"];
398
+ type TextProps = BaseComponentProps & UIContract["text"];
399
+ type HeadingProps = BaseComponentProps & UIContract["heading"];
400
+ type FormProps = BaseComponentProps & UIContract["form"] & {
401
+ children?: React__default.ReactNode[];
402
+ };
403
+ type InputProps = BaseComponentProps & UIContract["input"] & {
404
+ disabled?: boolean;
405
+ value?: string;
406
+ };
407
+ type ButtonProps = BaseComponentProps & UIContract["button"] & {
408
+ fullWidth?: boolean;
409
+ };
410
+ type LabelProps = BaseComponentProps & UIContract["label"] & {
411
+ size?: FontSize;
412
+ weight?: FontWeight;
413
+ };
414
+ type TextareaProps = BaseComponentProps & UIContract["textarea"] & {
415
+ value?: string;
416
+ disabled?: boolean;
417
+ };
418
+ type SelectProps = BaseComponentProps & UIContract["select"] & {
419
+ value?: string;
420
+ disabled?: boolean;
421
+ };
422
+ type CheckboxProps = BaseComponentProps & UIContract["checkbox"] & {
423
+ defaultChecked?: boolean;
424
+ disabled?: boolean;
425
+ };
426
+ type RadioGroupProps = BaseComponentProps & UIContract["radioGroup"] & {
427
+ value?: string;
428
+ defaultValue?: string;
429
+ disabled?: boolean;
430
+ };
431
+
432
+ declare const Button: React__default.FC<ButtonProps>;
433
+
434
+ declare const Input: React__default.FC<InputProps>;
435
+
436
+ declare const Textarea: React__default.FC<TextareaProps>;
437
+
438
+ declare const Select: React__default.FC<SelectProps>;
439
+
440
+ declare const Checkbox: React__default.FC<CheckboxProps>;
441
+
442
+ declare const RadioGroup: React__default.FC<RadioGroupProps>;
443
+
444
+ declare const Form: React__default.FC<FormProps>;
445
+
446
+ declare const Heading: React__default.FC<HeadingProps>;
447
+
448
+ declare const Image: React__default.FC<ImageProps>;
449
+
450
+ declare const Label: React__default.FC<LabelProps>;
451
+
452
+ declare const List: React__default.FC<ListProps>;
453
+
454
+ declare const ListItem: React__default.FC<ListItemProps>;
455
+
456
+ declare const Spacer: React__default.FC<SpacerProps>;
457
+
458
+ declare const Divider: React__default.FC<DividerProps>;
459
+
460
+ declare const Box: React__default.FC<BoxProps>;
461
+
462
+ declare const Chart: React__default.FC<ChartProps>;
463
+
464
+ declare const Card: React__default.FC<CardProps>;
465
+
466
+ declare const Row: React__default.FC<RowProps>;
467
+
468
+ declare const Col: React__default.FC<ColProps>;
469
+
470
+ declare const Text: React__default.FC<TextProps>;
471
+
472
+ declare const Badge: React__default.FC<BadgeProps>;
473
+
343
474
  declare function groupEventsToMessages(events: Event[]): Message[];
344
475
 
345
- export { AccountDialog, type AccountDialogProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, ChatFull, type ChatFullProps, ChatHeader, type ChatHeaderProps, ChatPopup, type ChatPopupProps, ChatSidebar, type ChatSidebarProps, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, MelonyClientProvider, type MelonyClientProviderProps, MelonyContext, type MelonyContextValue, type Message, type StarterPrompt, ThemeProvider, ThemeToggle, Thread, ThreadContext, type ThreadContextValue, type ThreadData, ThreadList, type ThreadListProps, ThreadPopover, type ThreadPopoverProps, ThreadProvider, type ThreadProviderProps, type ThreadService, UIRenderer, type UIRendererProps, type UseMelonyOptions, type User, groupEventsToMessages, useAuth, useMelony, useTheme, useThreads };
476
+ export { AccountDialog, type AccountDialogProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, Badge, Box, Button, Card, Chart, ChatFull, type ChatFullProps, ChatHeader, type ChatHeaderProps, ChatPopup, type ChatPopupProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarProps, Checkbox, Col, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, Divider, Form, Heading, Image, Input, Label, List, ListItem, MelonyClientProvider, type MelonyClientProviderProps, MelonyContext, type MelonyContextValue, type Message, RadioGroup, Row, type ScreenSize, Select, SidebarToggle, type SidebarToggleProps, Spacer, type StarterPrompt, Text, Textarea, ThemeProvider, ThemeToggle, Thread, ThreadContext, type ThreadContextValue, type ThreadData, ThreadList, type ThreadListProps, ThreadPopover, type ThreadPopoverProps, ThreadProvider, type ThreadProviderProps, type ThreadService, UIRenderer, type UIRendererProps, type UseMelonyOptions, type User, groupEventsToMessages, useAuth, useChatSidebar, useMelony, useScreenSize, useTheme, useThreads };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ReactNode } from 'react';
2
+ import React__default, { ReactNode, CSSProperties } from 'react';
3
3
  import { ClientState, MelonyClient } from 'melony/client';
4
- import { Role, Event, UINode } from 'melony';
4
+ import { Role, Event, Config, UINode, UIContract } from 'melony';
5
5
  import { QueryClient } from '@tanstack/react-query';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
 
@@ -65,10 +65,7 @@ interface MelonyContextValue extends ClientState {
65
65
  }) => Promise<void>;
66
66
  reset: (events?: Event[]) => void;
67
67
  client: MelonyClient;
68
- config?: {
69
- starterPrompts: any[];
70
- options: any[];
71
- };
68
+ config?: Config;
72
69
  }
73
70
  declare const MelonyContext: React__default.Context<MelonyContextValue | undefined>;
74
71
  interface MelonyClientProviderProps {
@@ -76,7 +73,6 @@ interface MelonyClientProviderProps {
76
73
  client: MelonyClient;
77
74
  initialEvents?: Event[];
78
75
  queryClient?: QueryClient;
79
- configApi?: string;
80
76
  }
81
77
  declare const MelonyClientProvider: React__default.FC<MelonyClientProviderProps>;
82
78
 
@@ -135,6 +131,20 @@ declare const useAuth: () => AuthContextValue;
135
131
 
136
132
  declare const useThreads: () => ThreadContextValue;
137
133
 
134
+ interface ScreenSize {
135
+ width: number;
136
+ height: number;
137
+ isMobile: boolean;
138
+ isTablet: boolean;
139
+ isDesktop: boolean;
140
+ }
141
+ /**
142
+ * Hook to detect screen size and breakpoints
143
+ * @param mobileBreakpoint - Breakpoint for mobile (default: 768px, Tailwind's md)
144
+ * @param tabletBreakpoint - Breakpoint for tablet (default: 1024px, Tailwind's lg)
145
+ */
146
+ declare function useScreenSize(mobileBreakpoint?: number, tabletBreakpoint?: number): ScreenSize;
147
+
138
148
  interface ThreadProps {
139
149
  className?: string;
140
150
  placeholder?: string;
@@ -156,8 +166,14 @@ interface ComposerProps {
156
166
  options?: ComposerOptionGroup[];
157
167
  autoFocus?: boolean;
158
168
  defaultSelectedIds?: string[];
169
+ fileAttachments?: {
170
+ enabled?: boolean;
171
+ accept?: string;
172
+ maxFiles?: number;
173
+ maxFileSize?: number;
174
+ };
159
175
  }
160
- declare function Composer({ value, onChange, onSubmit, placeholder, isLoading, className, options, autoFocus, defaultSelectedIds, }: ComposerProps): react_jsx_runtime.JSX.Element;
176
+ declare function Composer({ value, onChange, onSubmit, placeholder, isLoading, className, options, autoFocus, defaultSelectedIds, fileAttachments, }: ComposerProps): react_jsx_runtime.JSX.Element;
161
177
 
162
178
  interface ChatHeaderProps {
163
179
  /**
@@ -189,7 +205,7 @@ interface ChatHeaderProps {
189
205
  * A shared, customizable header component for chat interfaces.
190
206
  * Used consistently across ChatFull, ChatSidebar, and ChatPopup components.
191
207
  */
192
- declare function ChatHeader({ title, leftContent, rightContent, className, titleClassName, children, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
208
+ declare function ChatHeader({ leftContent, rightContent, className, children, }: ChatHeaderProps): react_jsx_runtime.JSX.Element;
193
209
 
194
210
  interface ChatPopupProps {
195
211
  title?: string;
@@ -252,38 +268,6 @@ interface ChatFullProps {
252
268
  * Custom className for the right sidebar container
253
269
  */
254
270
  rightSidebarClassName?: string;
255
- /**
256
- * Whether the left sidebar is collapsible
257
- */
258
- leftSidebarCollapsible?: boolean;
259
- /**
260
- * Whether the right sidebar is collapsible
261
- */
262
- rightSidebarCollapsible?: boolean;
263
- /**
264
- * Default collapsed state for the left sidebar
265
- */
266
- defaultLeftSidebarCollapsed?: boolean;
267
- /**
268
- * Default collapsed state for the right sidebar
269
- */
270
- defaultRightSidebarCollapsed?: boolean;
271
- /**
272
- * Controlled collapsed state for the left sidebar. If provided, component becomes controlled.
273
- */
274
- leftSidebarCollapsed?: boolean;
275
- /**
276
- * Controlled collapsed state for the right sidebar. If provided, component becomes controlled.
277
- */
278
- rightSidebarCollapsed?: boolean;
279
- /**
280
- * Callback when left sidebar collapse state changes
281
- */
282
- onLeftSidebarCollapseChange?: (collapsed: boolean) => void;
283
- /**
284
- * Callback when right sidebar collapse state changes
285
- */
286
- onRightSidebarCollapseChange?: (collapsed: boolean) => void;
287
271
  /**
288
272
  * Whether the composer should be auto focused
289
273
  */
@@ -293,7 +277,24 @@ interface ChatFullProps {
293
277
  */
294
278
  defaultSelectedIds?: string[];
295
279
  }
296
- declare function ChatFull({ title, placeholder, starterPrompts, options, className, headerProps, leftSidebar, rightSidebar, leftSidebarClassName, rightSidebarClassName, leftSidebarCollapsible, rightSidebarCollapsible, defaultLeftSidebarCollapsed, defaultRightSidebarCollapsed, leftSidebarCollapsed: controlledLeftCollapsed, rightSidebarCollapsed: controlledRightCollapsed, onLeftSidebarCollapseChange, onRightSidebarCollapseChange, autoFocus, defaultSelectedIds, }: ChatFullProps): react_jsx_runtime.JSX.Element;
280
+ declare function ChatFull({ title, placeholder, starterPrompts, options, className, headerProps, leftSidebar, rightSidebar, leftSidebarClassName, rightSidebarClassName, autoFocus, defaultSelectedIds, }: ChatFullProps): react_jsx_runtime.JSX.Element;
281
+
282
+ interface SidebarToggleProps {
283
+ side: "left" | "right";
284
+ className?: string;
285
+ }
286
+ declare function SidebarToggle({ side, className }: SidebarToggleProps): react_jsx_runtime.JSX.Element | null;
287
+
288
+ interface ChatSidebarContextValue {
289
+ leftCollapsed: boolean;
290
+ rightCollapsed: boolean;
291
+ setLeftCollapsed: (collapsed: boolean) => void;
292
+ setRightCollapsed: (collapsed: boolean) => void;
293
+ leftCollapsible: boolean;
294
+ rightCollapsible: boolean;
295
+ }
296
+ declare const ChatSidebarContext: React__default.Context<ChatSidebarContextValue | undefined>;
297
+ declare function useChatSidebar(): ChatSidebarContextValue;
297
298
 
298
299
  interface ThreadListProps {
299
300
  className?: string;
@@ -340,6 +341,136 @@ interface UIRendererProps {
340
341
  */
341
342
  declare function UIRenderer({ node }: UIRendererProps): react_jsx_runtime.JSX.Element;
342
343
 
344
+ type Spacing = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
345
+ type FontSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
346
+ type FontWeight = "normal" | "medium" | "semibold" | "bold";
347
+
348
+ type Size = "sm" | "md" | "lg";
349
+ type Align = "start" | "center" | "end" | "stretch";
350
+ type Justify = "start" | "center" | "end" | "between" | "around";
351
+ type Orientation = "horizontal" | "vertical";
352
+ interface BaseComponentProps {
353
+ className?: string;
354
+ style?: CSSProperties;
355
+ }
356
+ type CardProps = BaseComponentProps & UIContract["card"] & {
357
+ children?: React__default.ReactNode[];
358
+ };
359
+ type RowProps = BaseComponentProps & UIContract["row"] & {
360
+ children?: React__default.ReactNode[];
361
+ };
362
+ type ColProps = BaseComponentProps & UIContract["col"] & {
363
+ children?: React__default.ReactNode[] | React__default.ReactNode;
364
+ overflow?: "visible" | "hidden" | "scroll" | "auto";
365
+ position?: "static" | "relative" | "absolute" | "fixed" | "sticky";
366
+ };
367
+ type BoxProps = BaseComponentProps & UIContract["box"] & {
368
+ children?: React__default.ReactNode | React__default.ReactNode[];
369
+ overflow?: "visible" | "hidden" | "scroll" | "auto";
370
+ };
371
+ type SpacerProps = BaseComponentProps & UIContract["spacer"];
372
+ type DividerProps = BaseComponentProps & UIContract["divider"] & {
373
+ size?: Size;
374
+ };
375
+ type ListProps = BaseComponentProps & {
376
+ children?: React__default.ReactNode;
377
+ width?: string | number;
378
+ };
379
+ type ListItemProps = BaseComponentProps & UIContract["listItem"] & {
380
+ children?: React__default.ReactNode;
381
+ orientation?: Orientation;
382
+ align?: Align;
383
+ justify?: Justify;
384
+ width?: string | number;
385
+ padding?: Spacing;
386
+ };
387
+ type ImageProps = BaseComponentProps & UIContract["image"] & {
388
+ fallbackText?: string;
389
+ showFallbackIcon?: boolean;
390
+ };
391
+ type ChartProps = BaseComponentProps & UIContract["chart"] & {
392
+ size?: Size;
393
+ showValues?: boolean;
394
+ showGrid?: boolean;
395
+ showTooltips?: boolean;
396
+ };
397
+ type BadgeProps = BaseComponentProps & UIContract["badge"];
398
+ type TextProps = BaseComponentProps & UIContract["text"];
399
+ type HeadingProps = BaseComponentProps & UIContract["heading"];
400
+ type FormProps = BaseComponentProps & UIContract["form"] & {
401
+ children?: React__default.ReactNode[];
402
+ };
403
+ type InputProps = BaseComponentProps & UIContract["input"] & {
404
+ disabled?: boolean;
405
+ value?: string;
406
+ };
407
+ type ButtonProps = BaseComponentProps & UIContract["button"] & {
408
+ fullWidth?: boolean;
409
+ };
410
+ type LabelProps = BaseComponentProps & UIContract["label"] & {
411
+ size?: FontSize;
412
+ weight?: FontWeight;
413
+ };
414
+ type TextareaProps = BaseComponentProps & UIContract["textarea"] & {
415
+ value?: string;
416
+ disabled?: boolean;
417
+ };
418
+ type SelectProps = BaseComponentProps & UIContract["select"] & {
419
+ value?: string;
420
+ disabled?: boolean;
421
+ };
422
+ type CheckboxProps = BaseComponentProps & UIContract["checkbox"] & {
423
+ defaultChecked?: boolean;
424
+ disabled?: boolean;
425
+ };
426
+ type RadioGroupProps = BaseComponentProps & UIContract["radioGroup"] & {
427
+ value?: string;
428
+ defaultValue?: string;
429
+ disabled?: boolean;
430
+ };
431
+
432
+ declare const Button: React__default.FC<ButtonProps>;
433
+
434
+ declare const Input: React__default.FC<InputProps>;
435
+
436
+ declare const Textarea: React__default.FC<TextareaProps>;
437
+
438
+ declare const Select: React__default.FC<SelectProps>;
439
+
440
+ declare const Checkbox: React__default.FC<CheckboxProps>;
441
+
442
+ declare const RadioGroup: React__default.FC<RadioGroupProps>;
443
+
444
+ declare const Form: React__default.FC<FormProps>;
445
+
446
+ declare const Heading: React__default.FC<HeadingProps>;
447
+
448
+ declare const Image: React__default.FC<ImageProps>;
449
+
450
+ declare const Label: React__default.FC<LabelProps>;
451
+
452
+ declare const List: React__default.FC<ListProps>;
453
+
454
+ declare const ListItem: React__default.FC<ListItemProps>;
455
+
456
+ declare const Spacer: React__default.FC<SpacerProps>;
457
+
458
+ declare const Divider: React__default.FC<DividerProps>;
459
+
460
+ declare const Box: React__default.FC<BoxProps>;
461
+
462
+ declare const Chart: React__default.FC<ChartProps>;
463
+
464
+ declare const Card: React__default.FC<CardProps>;
465
+
466
+ declare const Row: React__default.FC<RowProps>;
467
+
468
+ declare const Col: React__default.FC<ColProps>;
469
+
470
+ declare const Text: React__default.FC<TextProps>;
471
+
472
+ declare const Badge: React__default.FC<BadgeProps>;
473
+
343
474
  declare function groupEventsToMessages(events: Event[]): Message[];
344
475
 
345
- export { AccountDialog, type AccountDialogProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, ChatFull, type ChatFullProps, ChatHeader, type ChatHeaderProps, ChatPopup, type ChatPopupProps, ChatSidebar, type ChatSidebarProps, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, MelonyClientProvider, type MelonyClientProviderProps, MelonyContext, type MelonyContextValue, type Message, type StarterPrompt, ThemeProvider, ThemeToggle, Thread, ThreadContext, type ThreadContextValue, type ThreadData, ThreadList, type ThreadListProps, ThreadPopover, type ThreadPopoverProps, ThreadProvider, type ThreadProviderProps, type ThreadService, UIRenderer, type UIRendererProps, type UseMelonyOptions, type User, groupEventsToMessages, useAuth, useMelony, useTheme, useThreads };
476
+ export { AccountDialog, type AccountDialogProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, Badge, Box, Button, Card, Chart, ChatFull, type ChatFullProps, ChatHeader, type ChatHeaderProps, ChatPopup, type ChatPopupProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarProps, Checkbox, Col, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, Divider, Form, Heading, Image, Input, Label, List, ListItem, MelonyClientProvider, type MelonyClientProviderProps, MelonyContext, type MelonyContextValue, type Message, RadioGroup, Row, type ScreenSize, Select, SidebarToggle, type SidebarToggleProps, Spacer, type StarterPrompt, Text, Textarea, ThemeProvider, ThemeToggle, Thread, ThreadContext, type ThreadContextValue, type ThreadData, ThreadList, type ThreadListProps, ThreadPopover, type ThreadPopoverProps, ThreadProvider, type ThreadProviderProps, type ThreadService, UIRenderer, type UIRendererProps, type UseMelonyOptions, type User, groupEventsToMessages, useAuth, useChatSidebar, useMelony, useScreenSize, useTheme, useThreads };