@eloquentai/chat-sdk 0.30.23-dev → 0.30.24
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/chat/index.d.ts +16 -1
- package/dist/components/chat-interface/index.d.ts +2 -0
- package/dist/components/chat-interface/shared.d.ts +2 -1
- package/dist/{index-BXXeE2NZ.js → index-7er7goSm.js} +975 -958
- package/dist/{index-BXXeE2NZ.js.map → index-7er7goSm.js.map} +1 -1
- package/dist/{index-CmrIGKcf.js → index-ruZLsx1O.js} +2 -2
- package/dist/{index-CmrIGKcf.js.map → index-ruZLsx1O.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
import { Message } from '../../type';
|
|
1
2
|
import { UseChatProps } from './chat.hook';
|
|
2
|
-
|
|
3
|
+
/** @internal */
|
|
4
|
+
type InternalChatProps = {
|
|
5
|
+
INTERNAL_ONLY_CHAT_INTERFACE_ONLY?: boolean;
|
|
6
|
+
INTERNAL_ONLY_BLOCK_STYLE?: boolean;
|
|
7
|
+
INTERNAL_ONLY_FEATURE_HIDE_PROACTIVE_MESSAGE?: boolean;
|
|
8
|
+
INTERNAL_ONLY_SHOW_CLEAR_CHAT_BUTTON?: boolean;
|
|
9
|
+
INTERNAL_ONLY_ENVIRONMENT?: "test" | "live";
|
|
10
|
+
INTERNAL_ONLY_API_URL?: string;
|
|
11
|
+
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK?: (message: Message) => void;
|
|
12
|
+
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK?: () => void;
|
|
13
|
+
INTERNAL_ONLY_FEATURE_HIDE_COPY_BUTTON?: boolean;
|
|
14
|
+
INTERNAL_ONLY_DISABLE_INITIAL_OPEN_ANIMATION?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type ChatProps = UseChatProps & InternalChatProps;
|
|
3
17
|
export declare function Chat(props: Readonly<ChatProps>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -25,5 +25,7 @@ export interface ChatInterfaceProps {
|
|
|
25
25
|
isChatClosed?: boolean;
|
|
26
26
|
onStartNewChat?: () => void;
|
|
27
27
|
onRateChat?: (rating: number) => void;
|
|
28
|
+
/** @internal Skips the open/close animation for the initial render when the chat starts open. */
|
|
29
|
+
disableInitialOpenAnimation?: boolean;
|
|
28
30
|
}
|
|
29
31
|
export declare function ChatInterface(props: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
|