@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.
@@ -1,4 +1,4 @@
1
- export declare const isProduction = true;
1
+ export declare const isProduction = false;
2
2
  declare const API_BASE_URL: string;
3
3
  export declare const WEBSOCKET_BASE_URL: string;
4
4
  declare const ENABLE_MIXPANEL = true;
@@ -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: string;
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 {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@debales/ai",
3
3
  "private": false,
4
4
  "access": "public",
5
- "version": "1.1.3",
5
+ "version": "1.1.5-canary.0",
6
6
  "type": "module",
7
7
  "main": "./dist/module/ai.js",
8
8
  "types": "./dist/module/index.d.ts",
@@ -50,9 +50,9 @@
50
50
  "typescript-eslint": "^8.24.1",
51
51
  "vite": "^6.2.0",
52
52
  "vite-plugin-dts": "^4.5.3",
53
- "@debales/typescript-config": "0.0.0",
54
53
  "@debales/eslint-config": "0.0.0",
55
- "@debales/shared": "0.0.1"
54
+ "@debales/shared": "0.0.1",
55
+ "@debales/typescript-config": "0.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": "^18.0.0 || ^19.0.0",