ns-chatbot-widget 1.0.0-beta.8 → 1.0.0
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/index.cjs.js +13 -28
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +3185 -5040
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function ChatWidget({ token, chatbotUrl, merchantId, autoOpen }:
|
|
|
11
11
|
export declare type ChatWidgetProps = {
|
|
12
12
|
token: string;
|
|
13
13
|
chatbotUrl: string;
|
|
14
|
-
merchantId?:
|
|
14
|
+
merchantId?: string;
|
|
15
15
|
autoOpen?: boolean;
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ export declare type Message = {
|
|
|
23
23
|
usage?: ChatUsage;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export declare function useChatbot(token: string, chatbotUrl: string, merchantId?:
|
|
26
|
+
export declare function useChatbot(token: string, chatbotUrl: string, merchantId?: string): {
|
|
27
27
|
messages: Message[];
|
|
28
28
|
suggestedReplies: string[];
|
|
29
29
|
loading: boolean;
|