@elia-assistant/chatui 1.0.3 → 1.0.5
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/chatui.css +1 -1
- package/dist/chatui.iife.css +1 -1
- package/dist/chatui.iife.js +7 -7
- package/dist/components/ChatView.d.ts +3 -1
- package/dist/hooks/useCta.d.ts +1 -1
- package/dist/index.js +765 -748
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
onOpenSettings: () => void;
|
|
3
|
+
/** When provided, renders a close (X) button in the header. Omit for permanent fullscreen layouts. */
|
|
4
|
+
onClose?: () => void;
|
|
3
5
|
}
|
|
4
|
-
export declare function ChatView({ onOpenSettings }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function ChatView({ onOpenSettings, onClose }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
export {};
|
package/dist/hooks/useCta.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatConfig } from '../types/index.ts';
|
|
2
|
-
export declare function useCta(config: ChatConfig, language: string): {
|
|
2
|
+
export declare function useCta(config: ChatConfig, language: string, isWindow: boolean): {
|
|
3
3
|
showCta: boolean;
|
|
4
4
|
ctaText: string;
|
|
5
5
|
dismiss: () => void;
|