@melony/react 0.1.27 → 0.1.28
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -68,13 +68,13 @@ interface MelonyContextValue extends ClientState {
|
|
|
68
68
|
config?: Config;
|
|
69
69
|
}
|
|
70
70
|
declare const MelonyContext: React__default.Context<MelonyContextValue | undefined>;
|
|
71
|
-
interface
|
|
71
|
+
interface MelonyProviderProps {
|
|
72
72
|
children: ReactNode;
|
|
73
73
|
client: MelonyClient;
|
|
74
74
|
initialEvents?: Event[];
|
|
75
75
|
queryClient?: QueryClient;
|
|
76
76
|
}
|
|
77
|
-
declare const
|
|
77
|
+
declare const MelonyProvider: React__default.FC<MelonyProviderProps>;
|
|
78
78
|
|
|
79
79
|
interface WelcomeScreenProps {
|
|
80
80
|
title?: string;
|
|
@@ -474,4 +474,4 @@ declare const Badge: React__default.FC<BadgeProps>;
|
|
|
474
474
|
|
|
475
475
|
declare function groupEventsToMessages(events: Event[]): Message[];
|
|
476
476
|
|
|
477
|
-
export { AccountDialog, type AccountDialogProps, 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, Divider, Form, FullChat, type FullChatProps, Heading, Image, Input, Label, List, ListItem,
|
|
477
|
+
export { AccountDialog, type AccountDialogProps, 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, Divider, 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
|
@@ -68,13 +68,13 @@ interface MelonyContextValue extends ClientState {
|
|
|
68
68
|
config?: Config;
|
|
69
69
|
}
|
|
70
70
|
declare const MelonyContext: React__default.Context<MelonyContextValue | undefined>;
|
|
71
|
-
interface
|
|
71
|
+
interface MelonyProviderProps {
|
|
72
72
|
children: ReactNode;
|
|
73
73
|
client: MelonyClient;
|
|
74
74
|
initialEvents?: Event[];
|
|
75
75
|
queryClient?: QueryClient;
|
|
76
76
|
}
|
|
77
|
-
declare const
|
|
77
|
+
declare const MelonyProvider: React__default.FC<MelonyProviderProps>;
|
|
78
78
|
|
|
79
79
|
interface WelcomeScreenProps {
|
|
80
80
|
title?: string;
|
|
@@ -474,4 +474,4 @@ declare const Badge: React__default.FC<BadgeProps>;
|
|
|
474
474
|
|
|
475
475
|
declare function groupEventsToMessages(events: Event[]): Message[];
|
|
476
476
|
|
|
477
|
-
export { AccountDialog, type AccountDialogProps, 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, Divider, Form, FullChat, type FullChatProps, Heading, Image, Input, Label, List, ListItem,
|
|
477
|
+
export { AccountDialog, type AccountDialogProps, 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, Divider, 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.js
CHANGED
|
@@ -150,7 +150,7 @@ var MelonyContextProviderInner = ({
|
|
|
150
150
|
}, [value, setContextValue]);
|
|
151
151
|
return /* @__PURE__ */ jsx(NuqsAdapter, { children });
|
|
152
152
|
};
|
|
153
|
-
var
|
|
153
|
+
var MelonyProvider = ({
|
|
154
154
|
children,
|
|
155
155
|
client,
|
|
156
156
|
initialEvents,
|
|
@@ -2791,7 +2791,7 @@ function Thread({
|
|
|
2791
2791
|
"div",
|
|
2792
2792
|
{
|
|
2793
2793
|
className: cn(
|
|
2794
|
-
"max-w-
|
|
2794
|
+
"max-w-[48rem] mx-auto w-full p-4",
|
|
2795
2795
|
showStarterPrompts && "min-h-full flex flex-col"
|
|
2796
2796
|
),
|
|
2797
2797
|
children: isLoadingEvents && messages.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-20", children: /* @__PURE__ */ jsx(LoadingIndicator, { status: { message: "Loading messages..." } }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2816,7 +2816,7 @@ function Thread({
|
|
|
2816
2816
|
),
|
|
2817
2817
|
/* @__PURE__ */ jsx("div", { ref: messagesEndRef })
|
|
2818
2818
|
] }),
|
|
2819
|
-
/* @__PURE__ */ jsx("div", { className: "absolute bottom-0 p-4 w-full", children: /* @__PURE__ */ jsx("div", { className: "max-w-
|
|
2819
|
+
/* @__PURE__ */ jsx("div", { className: "absolute bottom-0 p-4 w-full", children: /* @__PURE__ */ jsx("div", { className: "max-w-[48rem] mx-auto", children: /* @__PURE__ */ jsx(
|
|
2820
2820
|
Composer,
|
|
2821
2821
|
{
|
|
2822
2822
|
value: input,
|
|
@@ -3695,6 +3695,6 @@ function ThemeToggle() {
|
|
|
3695
3695
|
);
|
|
3696
3696
|
}
|
|
3697
3697
|
|
|
3698
|
-
export { AccountDialog, AuthContext, AuthProvider, Badge2 as Badge, Box, Button2 as Button, Card2 as Card, Chart, ChatHeader, Checkbox, Col, Composer, CreateThreadButton, Divider, Form, FullChat, Heading, Image, Input2 as Input, Label2 as Label, List, ListItem,
|
|
3698
|
+
export { AccountDialog, AuthContext, AuthProvider, Badge2 as Badge, Box, Button2 as Button, Card2 as Card, Chart, ChatHeader, Checkbox, Col, Composer, CreateThreadButton, Divider, Form, FullChat, Heading, Image, Input2 as Input, Label2 as Label, List, ListItem, MelonyContext, MelonyProvider, PopupChat, RadioGroup, Row, Select2 as Select, Sidebar, SidebarContext, SidebarProvider, SidebarToggle, Spacer, Text, Textarea2 as Textarea, ThemeProvider, ThemeToggle, Thread, ThreadContext, ThreadList, ThreadPopover, ThreadProvider, UIRenderer, WelcomeScreen, groupEventsToMessages, useAuth, useMelony, useScreenSize, useSidebar, useTheme, useThreads };
|
|
3699
3699
|
//# sourceMappingURL=index.js.map
|
|
3700
3700
|
//# sourceMappingURL=index.js.map
|