@eloquentai/chat-sdk 0.35.0-dev.3 → 0.35.0-dev.4

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.
@@ -16,6 +16,8 @@ type InternalChatProps = {
16
16
  INTERNAL_ONLY_API_URL?: string;
17
17
  INTERNAL_ONLY_FEATURE_MESSAGE_CLICK?: (message: Message) => void;
18
18
  INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK?: () => void;
19
+ /** Called with the backend chat id whenever it changes (`null` after a clear). */
20
+ INTERNAL_ONLY_ON_CHAT_ID?: (chatId: string | null) => void;
19
21
  };
20
22
  export type ChatProps = UseChatProps & InternalChatProps;
21
23
  export declare function Chat(props: Readonly<ChatProps>): import("react").JSX.Element;
@@ -33,6 +33,8 @@ export interface UseChatReturn {
33
33
  /** Effective clear-chat-button visibility (boot chat_settings.clean_chat_button ?? prop). */
34
34
  hasCleanChatButton: boolean;
35
35
  isMobile: boolean;
36
+ /** Backend chat id of the current conversation; `null` before the first message and after a clear. */
37
+ chatId: string | null;
36
38
  chatInterfaceProps: Partial<ChatInterfaceProps>;
37
39
  chatOpen: boolean;
38
40
  chatOpenDebounced: boolean;