@melony/react 0.1.28 → 0.1.29
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.cjs +573 -628
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.js +572 -629
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -300,7 +300,6 @@ declare function SidebarToggle({ side, className }: SidebarToggleProps): react_j
|
|
|
300
300
|
interface ThreadListProps {
|
|
301
301
|
className?: string;
|
|
302
302
|
emptyState?: React$1.ReactNode;
|
|
303
|
-
onThreadSelect?: (threadId: string) => void;
|
|
304
303
|
}
|
|
305
304
|
declare const ThreadList: React$1.FC<ThreadListProps>;
|
|
306
305
|
|
|
@@ -310,7 +309,6 @@ interface ThreadPopoverProps {
|
|
|
310
309
|
buttonVariant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link";
|
|
311
310
|
buttonSize?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
312
311
|
emptyState?: React$1.ReactNode;
|
|
313
|
-
onThreadSelect?: (threadId: string) => void;
|
|
314
312
|
}
|
|
315
313
|
declare const ThreadPopover: React$1.FC<ThreadPopoverProps>;
|
|
316
314
|
|
|
@@ -323,12 +321,12 @@ interface CreateThreadButtonProps {
|
|
|
323
321
|
}
|
|
324
322
|
declare const CreateThreadButton: React$1.FC<CreateThreadButtonProps>;
|
|
325
323
|
|
|
326
|
-
interface
|
|
324
|
+
interface AccountButtonProps {
|
|
327
325
|
className?: string;
|
|
328
326
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
329
327
|
size?: "default" | "sm" | "lg" | "icon";
|
|
330
328
|
}
|
|
331
|
-
declare const
|
|
329
|
+
declare const AccountButton: React$1.FC<AccountButtonProps>;
|
|
332
330
|
|
|
333
331
|
declare function ThemeToggle(): react_jsx_runtime.JSX.Element;
|
|
334
332
|
|
|
@@ -342,6 +340,23 @@ interface UIRendererProps {
|
|
|
342
340
|
*/
|
|
343
341
|
declare function UIRenderer({ node }: UIRendererProps): react_jsx_runtime.JSX.Element;
|
|
344
342
|
|
|
343
|
+
interface DropdownProps {
|
|
344
|
+
className?: string;
|
|
345
|
+
trigger?: React$1.ReactNode;
|
|
346
|
+
triggerClassName?: string;
|
|
347
|
+
items: {
|
|
348
|
+
label: string;
|
|
349
|
+
icon: React$1.ReactNode;
|
|
350
|
+
onClick: () => void;
|
|
351
|
+
}[];
|
|
352
|
+
}
|
|
353
|
+
declare const Dropdown: React$1.FC<DropdownProps>;
|
|
354
|
+
|
|
355
|
+
interface CreateThreadNavItemProps {
|
|
356
|
+
className?: string;
|
|
357
|
+
}
|
|
358
|
+
declare const CreateThreadNavItem: React$1.FC<CreateThreadNavItemProps>;
|
|
359
|
+
|
|
345
360
|
type Spacing = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
346
361
|
type FontSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
347
362
|
type FontWeight = "normal" | "medium" | "semibold" | "bold";
|
|
@@ -474,4 +489,4 @@ declare const Badge: React__default.FC<BadgeProps>;
|
|
|
474
489
|
|
|
475
490
|
declare function groupEventsToMessages(events: Event[]): Message[];
|
|
476
491
|
|
|
477
|
-
export {
|
|
492
|
+
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, CreateThreadNavItem, type CreateThreadNavItemProps, Divider, Dropdown, type DropdownProps, Form, FullChat, type FullChatProps, Heading, Image, Input, Label, List, ListItem, MelonyContext, type MelonyContextValue, MelonyProvider, type MelonyProviderProps, type Message, 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, type UseMelonyOptions, type User, WelcomeScreen, type WelcomeScreenProps, groupEventsToMessages, useAuth, useMelony, useScreenSize, useSidebar, useTheme, useThreads };
|
package/dist/index.d.ts
CHANGED
|
@@ -300,7 +300,6 @@ declare function SidebarToggle({ side, className }: SidebarToggleProps): react_j
|
|
|
300
300
|
interface ThreadListProps {
|
|
301
301
|
className?: string;
|
|
302
302
|
emptyState?: React$1.ReactNode;
|
|
303
|
-
onThreadSelect?: (threadId: string) => void;
|
|
304
303
|
}
|
|
305
304
|
declare const ThreadList: React$1.FC<ThreadListProps>;
|
|
306
305
|
|
|
@@ -310,7 +309,6 @@ interface ThreadPopoverProps {
|
|
|
310
309
|
buttonVariant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link";
|
|
311
310
|
buttonSize?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
312
311
|
emptyState?: React$1.ReactNode;
|
|
313
|
-
onThreadSelect?: (threadId: string) => void;
|
|
314
312
|
}
|
|
315
313
|
declare const ThreadPopover: React$1.FC<ThreadPopoverProps>;
|
|
316
314
|
|
|
@@ -323,12 +321,12 @@ interface CreateThreadButtonProps {
|
|
|
323
321
|
}
|
|
324
322
|
declare const CreateThreadButton: React$1.FC<CreateThreadButtonProps>;
|
|
325
323
|
|
|
326
|
-
interface
|
|
324
|
+
interface AccountButtonProps {
|
|
327
325
|
className?: string;
|
|
328
326
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
329
327
|
size?: "default" | "sm" | "lg" | "icon";
|
|
330
328
|
}
|
|
331
|
-
declare const
|
|
329
|
+
declare const AccountButton: React$1.FC<AccountButtonProps>;
|
|
332
330
|
|
|
333
331
|
declare function ThemeToggle(): react_jsx_runtime.JSX.Element;
|
|
334
332
|
|
|
@@ -342,6 +340,23 @@ interface UIRendererProps {
|
|
|
342
340
|
*/
|
|
343
341
|
declare function UIRenderer({ node }: UIRendererProps): react_jsx_runtime.JSX.Element;
|
|
344
342
|
|
|
343
|
+
interface DropdownProps {
|
|
344
|
+
className?: string;
|
|
345
|
+
trigger?: React$1.ReactNode;
|
|
346
|
+
triggerClassName?: string;
|
|
347
|
+
items: {
|
|
348
|
+
label: string;
|
|
349
|
+
icon: React$1.ReactNode;
|
|
350
|
+
onClick: () => void;
|
|
351
|
+
}[];
|
|
352
|
+
}
|
|
353
|
+
declare const Dropdown: React$1.FC<DropdownProps>;
|
|
354
|
+
|
|
355
|
+
interface CreateThreadNavItemProps {
|
|
356
|
+
className?: string;
|
|
357
|
+
}
|
|
358
|
+
declare const CreateThreadNavItem: React$1.FC<CreateThreadNavItemProps>;
|
|
359
|
+
|
|
345
360
|
type Spacing = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
346
361
|
type FontSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
347
362
|
type FontWeight = "normal" | "medium" | "semibold" | "bold";
|
|
@@ -474,4 +489,4 @@ declare const Badge: React__default.FC<BadgeProps>;
|
|
|
474
489
|
|
|
475
490
|
declare function groupEventsToMessages(events: Event[]): Message[];
|
|
476
491
|
|
|
477
|
-
export {
|
|
492
|
+
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, CreateThreadNavItem, type CreateThreadNavItemProps, Divider, Dropdown, type DropdownProps, Form, FullChat, type FullChatProps, Heading, Image, Input, Label, List, ListItem, MelonyContext, type MelonyContextValue, MelonyProvider, type MelonyProviderProps, type Message, 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, type UseMelonyOptions, type User, WelcomeScreen, type WelcomeScreenProps, groupEventsToMessages, useAuth, useMelony, useScreenSize, useSidebar, useTheme, useThreads };
|