@debales/ai 1.1.3 → 1.1.5-canary.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/browser/ai-browser.js +217 -221
- package/dist/browser/constants/index.d.ts +1 -1
- package/dist/browser/types/debales.d.ts +2 -0
- package/dist/browser/types/index.d.ts +3 -2
- package/dist/module/ai.js +12805 -12810
- package/dist/module/ai.umd.js +305 -309
- package/dist/module/constants/index.d.ts +1 -1
- package/dist/module/types/debales.d.ts +2 -0
- package/dist/module/types/index.d.ts +3 -2
- package/package.json +3 -3
|
@@ -13,6 +13,7 @@ export interface DebalesContextType {
|
|
|
13
13
|
uiData: UiData | null;
|
|
14
14
|
storeMetaData: ShopifyStoreMeta | null;
|
|
15
15
|
suggestedQuestions: SuggestedQuestionAnswer[];
|
|
16
|
+
needUserInfo: boolean;
|
|
16
17
|
onSendMessage: (message: string, answer?: string, products?: Product[], fromKlaviyo?: boolean, leading_queries?: string[]) => Promise<void>;
|
|
17
18
|
setIsKlaviyoMessage: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
19
|
setShowUserInfoModel: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -27,6 +28,7 @@ export interface DebalesContextType {
|
|
|
27
28
|
saveConversation: (messages: Message[]) => void;
|
|
28
29
|
loadConversation: () => Message[];
|
|
29
30
|
setSuggestedQuestions: React.Dispatch<React.SetStateAction<SuggestedQuestionAnswer[]>>;
|
|
31
|
+
setNeedUserInfo: React.Dispatch<React.SetStateAction<boolean>>;
|
|
30
32
|
}
|
|
31
33
|
export interface WebsocketMessageEvent extends MessageEvent {
|
|
32
34
|
type: typeof EventType.MESSAGE | typeof EventType.USER_ACTION;
|
|
@@ -65,12 +65,11 @@ interface UiData {
|
|
|
65
65
|
removeLogoBackground?: boolean;
|
|
66
66
|
collectedUserInfo: CollectedUserInfo;
|
|
67
67
|
countryCode?: string;
|
|
68
|
-
geoData?: unknown;
|
|
69
68
|
zIndex: number;
|
|
70
69
|
}
|
|
71
70
|
export interface Product {
|
|
72
71
|
name: string;
|
|
73
|
-
price
|
|
72
|
+
price?: string | null;
|
|
74
73
|
image: [string];
|
|
75
74
|
link: string;
|
|
76
75
|
product_id: string;
|
|
@@ -88,6 +87,7 @@ export interface SuggestedQuestionAnswer {
|
|
|
88
87
|
enable?: boolean;
|
|
89
88
|
leading_queries?: string[];
|
|
90
89
|
type?: "static" | "dynamic";
|
|
90
|
+
Follow_up_Question?: string;
|
|
91
91
|
}
|
|
92
92
|
export interface Message {
|
|
93
93
|
text: string;
|
|
@@ -114,6 +114,7 @@ export interface Message {
|
|
|
114
114
|
Variants_quantity?: string;
|
|
115
115
|
monthlyChatLimitReached?: boolean | undefined;
|
|
116
116
|
isBot?: boolean;
|
|
117
|
+
hideConfirmation?: boolean;
|
|
117
118
|
}
|
|
118
119
|
export type { ChatBoxProps, UiData };
|
|
119
120
|
export interface ShopifyStoreMeta {
|