@eloquentai/chat-sdk 0.24.0-dev → 0.24.1-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/chat.hook.d.ts +2 -1
- package/dist/components/chat/sdk-initialization.hook.d.ts +2 -1
- package/dist/{index-DLHceM4_.js → index-BUaoeTBT.js} +2 -2
- package/dist/{index-DLHceM4_.js.map → index-BUaoeTBT.js.map} +1 -1
- package/dist/{index-B3OStgEa.js → index-LT_qtZ6J.js} +912 -907
- package/dist/{index-B3OStgEa.js.map → index-LT_qtZ6J.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -36,7 +36,8 @@ export interface UseChatReturn {
|
|
|
36
36
|
* @param options The hook parameters
|
|
37
37
|
* @returns The chat hook return type
|
|
38
38
|
*/
|
|
39
|
-
export declare function useChat({ environment, appId, userId: initialUserId, userName: initialUserName, chatProps, isMobile: propIsMobile, initialOpen: propInitialOpen, proactiveMessageHideDelay, }: Readonly<Partial<UseChatProps> & {
|
|
39
|
+
export declare function useChat({ environment, apiUrl, appId, userId: initialUserId, userName: initialUserName, chatProps, isMobile: propIsMobile, initialOpen: propInitialOpen, proactiveMessageHideDelay, }: Readonly<Partial<UseChatProps> & {
|
|
40
40
|
environment: "test" | "live";
|
|
41
|
+
apiUrl?: string;
|
|
41
42
|
appId: string;
|
|
42
43
|
}>): UseChatReturn;
|
|
@@ -2,6 +2,7 @@ import { Message } from '../../type';
|
|
|
2
2
|
import { BootResponse, EloquentAiApiClient } from '../../lib/eloquent-ai-api-client';
|
|
3
3
|
export interface UseSdkInitializationProps {
|
|
4
4
|
environment: "test" | "live";
|
|
5
|
+
apiUrl?: string;
|
|
5
6
|
appId: string;
|
|
6
7
|
initialUserId?: string;
|
|
7
8
|
initialUserName?: string;
|
|
@@ -23,4 +24,4 @@ export interface UseSdkInitializationReturn {
|
|
|
23
24
|
* Hook to handle SDK initialization for the EloquentAI Chat SDK
|
|
24
25
|
* Handles API client initialization, saved conversation restoration, and SDK boot
|
|
25
26
|
*/
|
|
26
|
-
export declare function useSdkInitialization({ appId, initialUserId, initialUserName, }: UseSdkInitializationProps): UseSdkInitializationReturn;
|
|
27
|
+
export declare function useSdkInitialization({ apiUrl: apiUrlOverride, appId, initialUserId, initialUserName, }: UseSdkInitializationProps): UseSdkInitializationReturn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Me from "react";
|
|
2
2
|
import { version as Uu } from "react";
|
|
3
|
-
import { g as _p } from "./index-
|
|
3
|
+
import { g as _p } from "./index-LT_qtZ6J.js";
|
|
4
4
|
try {
|
|
5
5
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e461ea87-5715-448a-a7e9-5ee438989bf3", e._sentryDebugIdIdentifier = "sentry-dbid-e461ea87-5715-448a-a7e9-5ee438989bf3");
|
|
@@ -18552,4 +18552,4 @@ export {
|
|
|
18552
18552
|
Nk as wrapUseRoutesV7,
|
|
18553
18553
|
P1 as zodErrorsIntegration
|
|
18554
18554
|
};
|
|
18555
|
-
//# sourceMappingURL=index-
|
|
18555
|
+
//# sourceMappingURL=index-BUaoeTBT.js.map
|