@melony/react 0.1.46 → 0.1.49

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
@@ -4,6 +4,7 @@ import { ClientState, MelonyClient } from 'melony/client';
4
4
  import { Message, 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
+ export * from '@tabler/icons-react';
7
8
 
8
9
  interface MelonyContextValue extends ClientState {
9
10
  messages: Message[];
@@ -412,6 +413,7 @@ type InputProps = BaseComponentProps & UIContract["input"] & {
412
413
  disabled?: boolean;
413
414
  value?: string;
414
415
  };
416
+ type HiddenProps = BaseComponentProps & UIContract["hidden"];
415
417
  type ButtonProps = BaseComponentProps & UIContract["button"] & {
416
418
  fullWidth?: boolean;
417
419
  type?: "button" | "submit";
@@ -420,7 +422,17 @@ type LabelProps = BaseComponentProps & UIContract["label"] & {
420
422
  size?: FontSize;
421
423
  weight?: FontWeight;
422
424
  };
423
- type UploadProps = BaseComponentProps & UIContract["upload"];
425
+ type ColorPickerProps = BaseComponentProps & UIContract["colorPicker"] & {
426
+ value?: string;
427
+ disabled?: boolean;
428
+ };
429
+ type UploadProps = BaseComponentProps & UIContract["upload"] & {
430
+ initialFiles?: {
431
+ name: string;
432
+ url: string;
433
+ }[];
434
+ mode?: "append" | "replace";
435
+ };
424
436
  type TextareaProps = BaseComponentProps & UIContract["textarea"] & {
425
437
  value?: string;
426
438
  disabled?: boolean;
@@ -483,4 +495,8 @@ declare const Text: React__default.FC<TextProps>;
483
495
 
484
496
  declare const Badge: React__default.FC<BadgeProps>;
485
497
 
486
- export { AccountButton, type AccountButtonProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, Badge, Box, Button, Card, Chart, ChatHeader, type ChatHeaderProps, Checkbox, Col, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, CreateThreadListItem, type CreateThreadListItemProps, Divider, Dropdown, type DropdownProps, Form, FullChat, type FullChatProps, Heading, Image, Input, Label, List, ListItem, MelonyContext, type MelonyContextValue, MelonyProvider, type MelonyProviderProps, PopupChat, type PopupChatProps, RadioGroup, Row, type ScreenSize, Select, Sidebar, SidebarContext, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, 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, Upload, type UseMelonyOptions, type User, WelcomeScreen, type WelcomeScreenProps, useAuth, useMelony, useScreenSize, useSidebar, useTheme, useThreads };
498
+ declare const Hidden: React__default.FC<HiddenProps>;
499
+
500
+ declare const ColorPicker: React__default.FC<ColorPickerProps>;
501
+
502
+ export { AccountButton, type AccountButtonProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, Badge, Box, Button, Card, Chart, ChatHeader, type ChatHeaderProps, Checkbox, Col, ColorPicker, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, CreateThreadListItem, type CreateThreadListItemProps, Divider, Dropdown, type DropdownProps, Form, FullChat, type FullChatProps, Heading, Hidden, Image, Input, Label, List, ListItem, MelonyContext, type MelonyContextValue, MelonyProvider, type MelonyProviderProps, PopupChat, type PopupChatProps, RadioGroup, Row, type ScreenSize, Select, Sidebar, SidebarContext, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, 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, Upload, type UseMelonyOptions, type User, WelcomeScreen, type WelcomeScreenProps, useAuth, useMelony, useScreenSize, useSidebar, useTheme, useThreads };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { ClientState, MelonyClient } from 'melony/client';
4
4
  import { Message, 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
+ export * from '@tabler/icons-react';
7
8
 
8
9
  interface MelonyContextValue extends ClientState {
9
10
  messages: Message[];
@@ -412,6 +413,7 @@ type InputProps = BaseComponentProps & UIContract["input"] & {
412
413
  disabled?: boolean;
413
414
  value?: string;
414
415
  };
416
+ type HiddenProps = BaseComponentProps & UIContract["hidden"];
415
417
  type ButtonProps = BaseComponentProps & UIContract["button"] & {
416
418
  fullWidth?: boolean;
417
419
  type?: "button" | "submit";
@@ -420,7 +422,17 @@ type LabelProps = BaseComponentProps & UIContract["label"] & {
420
422
  size?: FontSize;
421
423
  weight?: FontWeight;
422
424
  };
423
- type UploadProps = BaseComponentProps & UIContract["upload"];
425
+ type ColorPickerProps = BaseComponentProps & UIContract["colorPicker"] & {
426
+ value?: string;
427
+ disabled?: boolean;
428
+ };
429
+ type UploadProps = BaseComponentProps & UIContract["upload"] & {
430
+ initialFiles?: {
431
+ name: string;
432
+ url: string;
433
+ }[];
434
+ mode?: "append" | "replace";
435
+ };
424
436
  type TextareaProps = BaseComponentProps & UIContract["textarea"] & {
425
437
  value?: string;
426
438
  disabled?: boolean;
@@ -483,4 +495,8 @@ declare const Text: React__default.FC<TextProps>;
483
495
 
484
496
  declare const Badge: React__default.FC<BadgeProps>;
485
497
 
486
- export { AccountButton, type AccountButtonProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, Badge, Box, Button, Card, Chart, ChatHeader, type ChatHeaderProps, Checkbox, Col, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, CreateThreadListItem, type CreateThreadListItemProps, Divider, Dropdown, type DropdownProps, Form, FullChat, type FullChatProps, Heading, Image, Input, Label, List, ListItem, MelonyContext, type MelonyContextValue, MelonyProvider, type MelonyProviderProps, PopupChat, type PopupChatProps, RadioGroup, Row, type ScreenSize, Select, Sidebar, SidebarContext, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, 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, Upload, type UseMelonyOptions, type User, WelcomeScreen, type WelcomeScreenProps, useAuth, useMelony, useScreenSize, useSidebar, useTheme, useThreads };
498
+ declare const Hidden: React__default.FC<HiddenProps>;
499
+
500
+ declare const ColorPicker: React__default.FC<ColorPickerProps>;
501
+
502
+ export { AccountButton, type AccountButtonProps, AuthContext, type AuthContextValue, AuthProvider, type AuthProviderProps, type AuthService, Badge, Box, Button, Card, Chart, ChatHeader, type ChatHeaderProps, Checkbox, Col, ColorPicker, Composer, type ComposerOption, type ComposerOptionGroup, CreateThreadButton, type CreateThreadButtonProps, CreateThreadListItem, type CreateThreadListItemProps, Divider, Dropdown, type DropdownProps, Form, FullChat, type FullChatProps, Heading, Hidden, Image, Input, Label, List, ListItem, MelonyContext, type MelonyContextValue, MelonyProvider, type MelonyProviderProps, PopupChat, type PopupChatProps, RadioGroup, Row, type ScreenSize, Select, Sidebar, SidebarContext, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, 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, Upload, type UseMelonyOptions, type User, WelcomeScreen, type WelcomeScreenProps, useAuth, useMelony, useScreenSize, useSidebar, useTheme, useThreads };