teodor-new-chat-ui 4.3.425 → 4.3.427
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/features/messaging/components/chat/ChatWidget.d.ts +1 -3
- package/dist/features/messaging/components/chat/NewChatButton.d.ts +13 -0
- package/dist/features/messaging/components/chat/index.d.ts +2 -0
- package/dist/index.esm.js +1482 -1472
- package/dist/index.umd.js +19 -19
- package/package.json +1 -1
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { type ChatProvidersProps } from "@/features/core";
|
|
2
2
|
export interface ChatWidgetProps extends Omit<ChatProvidersProps, "children"> {
|
|
3
3
|
className?: string;
|
|
4
|
-
triggerClassName?: string;
|
|
5
4
|
placeholder?: string;
|
|
6
|
-
initialOpen?: boolean;
|
|
7
5
|
isAuthenticated?: boolean;
|
|
8
6
|
onMessageSent?: (message: string) => void;
|
|
9
7
|
widgetTitle?: string;
|
|
10
8
|
widgetSubtitle?: string;
|
|
11
9
|
}
|
|
12
|
-
export declare function ChatWidget({ className,
|
|
10
|
+
export declare function ChatWidget({ className, placeholder, isAuthenticated, onMessageSent, widgetTitle, widgetSubtitle, ...providerProps }: ChatWidgetProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ButtonProps } from "@/features/ui/components/ui/button";
|
|
2
|
+
export interface NewChatButtonProps extends ButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* Optional text label to display next to the icon. Defaults to "New chat".
|
|
5
|
+
* If `children` is provided, it takes precedence.
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A reusable call-to-action for creating a new chat/thread.
|
|
11
|
+
* Designed for hosts that want to surface the action in their own headers.
|
|
12
|
+
*/
|
|
13
|
+
export declare function NewChatButton({ label, children, className, variant, size, ...props }: NewChatButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,3 +5,5 @@ export { ChatInput } from "./ChatInput";
|
|
|
5
5
|
export type { ChatInputProps } from "./ChatInput";
|
|
6
6
|
export { ChatWidget } from "./ChatWidget";
|
|
7
7
|
export type { ChatWidgetProps } from "./ChatWidget";
|
|
8
|
+
export { NewChatButton } from "./NewChatButton";
|
|
9
|
+
export type { NewChatButtonProps } from "./NewChatButton";
|