@eloquentai/chat-sdk 0.30.11-dev → 0.30.12-dev
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/persistence.hook.d.ts +2 -0
- package/dist/components/chat/sdk-initialization.hook.d.ts +1 -0
- package/dist/{index-BNqluWK5.js → index-BVamj76p.js} +4444 -4400
- package/dist/index-BVamj76p.js.map +1 -0
- package/dist/{index-1SsEY50b.js → index-D5p4GnZ2.js} +2 -2
- package/dist/{index-1SsEY50b.js.map → index-D5p4GnZ2.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/index-BNqluWK5.js.map +0 -1
|
@@ -6,6 +6,7 @@ export interface ChatData {
|
|
|
6
6
|
deviceId: string | null;
|
|
7
7
|
messages: Message[];
|
|
8
8
|
lastActivity?: number;
|
|
9
|
+
isChatClosed?: boolean;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* Hook to manage persistence of chat data, including conversation ID, user ID, last activity time, and messages.
|
|
@@ -19,4 +20,5 @@ export declare function usePersistence({ appId }: {
|
|
|
19
20
|
clearChatData: () => void;
|
|
20
21
|
getSavedChatData: () => ChatData;
|
|
21
22
|
updateLastActivity: () => void;
|
|
23
|
+
markChatClosed: () => void;
|
|
22
24
|
};
|