@developer.notchatbot/webchat 1.4.3 → 1.4.5
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/utils/messaging.d.ts +2 -1
- package/dist/webchat-bundle.min.js +1208 -1205
- package/dist/webchat-bundle.min.umd.cjs +16 -16
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export interface SendMessagePayload {
|
|
|
16
16
|
chatbotUid: string;
|
|
17
17
|
newMessages: any[];
|
|
18
18
|
note?: string;
|
|
19
|
+
currentUrl?: string;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Creates a fallback bot message for error scenarios
|
|
@@ -34,7 +35,7 @@ export declare const createFallbackMessage: () => Message;
|
|
|
34
35
|
export declare const buildMessagePayload: (conversationId: string, messages: Message[], newMessages: Message[], config: {
|
|
35
36
|
apiKey: string;
|
|
36
37
|
note?: string;
|
|
37
|
-
}, sessionId: string) => SendMessagePayload;
|
|
38
|
+
}, sessionId: string, currentUrl?: string) => SendMessagePayload;
|
|
38
39
|
/**
|
|
39
40
|
* Sends messages to the chat API
|
|
40
41
|
* @param payload Message payload
|