@sciol/xyzen 0.3.16 → 0.3.18
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/components/layouts/components/ChatBubble.d.ts +1 -2
- package/dist/components/layouts/components/ChatToolbar.d.ts +4 -1
- package/dist/components/layouts/components/LoadingMessage.d.ts +2 -1
- package/dist/components/modals/ConfirmationModal.d.ts +21 -2
- package/dist/components/modals/EditAgentModal.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts +14 -0
- package/dist/configs/chatThemes.d.ts +1 -1
- package/dist/defaults/agents/avatar1.png +0 -0
- package/dist/defaults/agents/avatar2.png +0 -0
- package/dist/defaults/agents/avatar3.png +0 -0
- package/dist/defaults/agents/avatar4.png +0 -0
- package/dist/xyzen.css +1 -1
- package/dist/xyzen.es.js +51721 -51344
- package/dist/xyzen.umd.js +139 -128
- package/package.json +3 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Message } from '../../../store/types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
interface ChatBubbleProps {
|
|
4
3
|
message: Message;
|
|
5
4
|
}
|
|
6
|
-
declare
|
|
5
|
+
declare function ChatBubble({ message }: ChatBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default ChatBubble;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
interface ChatToolbarProps {
|
|
2
2
|
onShowHistory: () => void;
|
|
3
3
|
onHeightChange?: (height: number) => void;
|
|
4
|
+
showHistory: boolean;
|
|
5
|
+
handleCloseHistory: () => void;
|
|
6
|
+
handleSelectTopic: (topic: string) => void;
|
|
4
7
|
}
|
|
5
|
-
export default function ChatToolbar({ onShowHistory, onHeightChange, }: ChatToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function ChatToolbar({ onShowHistory, onHeightChange, showHistory, handleCloseHistory, handleSelectTopic, }: ChatToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface LoadingMessageProps {
|
|
2
|
+
size?: "small" | "medium" | "large";
|
|
2
3
|
className?: string;
|
|
3
4
|
}
|
|
4
|
-
export default function LoadingMessage({ className, }: LoadingMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default function LoadingMessage({ size, className, }: LoadingMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the confirmation dialog.
|
|
4
|
+
*/
|
|
1
5
|
interface ConfirmationModalProps {
|
|
2
6
|
isOpen: boolean;
|
|
3
7
|
onClose: () => void;
|
|
4
8
|
onConfirm: () => void;
|
|
5
9
|
title: string;
|
|
6
10
|
message: string;
|
|
11
|
+
confirmLabel?: string;
|
|
12
|
+
cancelLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* If true, styles the confirm action as destructive (red).
|
|
15
|
+
*/
|
|
16
|
+
destructive?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Optional className to extend the content panel styling.
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
7
21
|
}
|
|
8
|
-
|
|
9
|
-
|
|
22
|
+
/**
|
|
23
|
+
* A unified confirmation modal using shadcn/Radix AlertDialog primitives.
|
|
24
|
+
* Replaces the former Headless UI + custom Modal implementation to avoid nested focus traps.
|
|
25
|
+
*/
|
|
26
|
+
declare function ConfirmationModal({ isOpen, onClose, onConfirm, title, message, confirmLabel, cancelLabel, destructive, className, }: ConfirmationModalProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare const _default: React.MemoExoticComponent<typeof ConfirmationModal>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XyzenChatConfig } from '../hooks/useXyzenChat';
|
|
2
1
|
import { WorkShopChatConfig } from '../hooks/useWorkShopChat';
|
|
2
|
+
import { XyzenChatConfig } from '../hooks/useXyzenChat';
|
|
3
3
|
export declare const XYZEN_CHAT_CONFIG: XyzenChatConfig;
|
|
4
4
|
export declare const WORKSHOP_CHAT_CONFIG: WorkShopChatConfig;
|
|
5
5
|
export declare const CHAT_THEMES: {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|