vdb-ai-chat 1.0.77 → 1.0.78
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/chat-widget.js +461 -1
- package/lib/commonjs/api.js +27 -55
- package/lib/commonjs/api.js.map +1 -1
- package/lib/commonjs/components/ChatHeader.js +0 -2
- package/lib/commonjs/components/ChatHeader.js.map +1 -1
- package/lib/commonjs/components/ChatWidget.js +21 -55
- package/lib/commonjs/components/ChatWidget.js.map +1 -1
- package/lib/commonjs/components/LazyProductsFetcher.js +3 -5
- package/lib/commonjs/components/LazyProductsFetcher.js.map +1 -1
- package/lib/commonjs/components/utils.js +34 -42
- package/lib/commonjs/components/utils.js.map +1 -1
- package/lib/commonjs/contexts/ThemeProvider.js +21 -44
- package/lib/commonjs/contexts/ThemeProvider.js.map +1 -1
- package/lib/commonjs/index.web.js +6 -17
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/storage.js +4 -14
- package/lib/commonjs/storage.js.map +1 -1
- package/lib/commonjs/theme.js +1 -229
- package/lib/commonjs/theme.js.map +1 -1
- package/lib/module/api.js +27 -53
- package/lib/module/api.js.map +1 -1
- package/lib/module/components/ChatHeader.js +0 -2
- package/lib/module/components/ChatHeader.js.map +1 -1
- package/lib/module/components/ChatWidget.js +22 -56
- package/lib/module/components/ChatWidget.js.map +1 -1
- package/lib/module/components/LazyProductsFetcher.js +3 -5
- package/lib/module/components/LazyProductsFetcher.js.map +1 -1
- package/lib/module/components/utils.js +34 -42
- package/lib/module/components/utils.js.map +1 -1
- package/lib/module/contexts/ThemeProvider.js +16 -39
- package/lib/module/contexts/ThemeProvider.js.map +1 -1
- package/lib/module/index.web.js +6 -17
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/storage.js +4 -14
- package/lib/module/storage.js.map +1 -1
- package/lib/module/theme.js +0 -228
- package/lib/module/theme.js.map +1 -1
- package/lib/typescript/api.d.ts +2 -12
- package/lib/typescript/api.d.ts.map +1 -1
- package/lib/typescript/components/ChatHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChatWidget.d.ts.map +1 -1
- package/lib/typescript/components/LazyProductsFetcher.d.ts +0 -3
- package/lib/typescript/components/LazyProductsFetcher.d.ts.map +1 -1
- package/lib/typescript/components/utils.d.ts +1 -0
- package/lib/typescript/components/utils.d.ts.map +1 -1
- package/lib/typescript/contexts/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/index.web.d.ts +1 -23
- package/lib/typescript/index.web.d.ts.map +1 -1
- package/lib/typescript/storage.d.ts.map +1 -1
- package/lib/typescript/theme.d.ts +0 -228
- package/lib/typescript/theme.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +0 -4
- package/lib/typescript/types.d.ts.map +1 -1
- package/package.json +1 -2
- package/src/api.ts +24 -60
- package/src/components/ChatHeader.tsx +0 -2
- package/src/components/ChatWidget.tsx +86 -137
- package/src/components/LazyProductsFetcher.tsx +2 -7
- package/src/components/utils.ts +34 -42
- package/src/contexts/ThemeProvider.tsx +10 -32
- package/src/index.web.tsx +13 -59
- package/src/storage.ts +4 -14
- package/src/theme.ts +0 -230
- package/src/types.ts +0 -4
- package/lib/commonjs/components/ButtonContent.js +0 -54
- package/lib/commonjs/components/ButtonContent.js.map +0 -1
- package/lib/commonjs/components/FloatingChatButton.js +0 -197
- package/lib/commonjs/components/FloatingChatButton.js.map +0 -1
- package/lib/commonjs/config/storeConfigLoader.js +0 -161
- package/lib/commonjs/config/storeConfigLoader.js.map +0 -1
- package/lib/commonjs/config/types.js +0 -2
- package/lib/commonjs/config/types.js.map +0 -1
- package/lib/commonjs/utils/pluginUrlBuilder.js +0 -288
- package/lib/commonjs/utils/pluginUrlBuilder.js.map +0 -1
- package/lib/module/components/ButtonContent.js +0 -48
- package/lib/module/components/ButtonContent.js.map +0 -1
- package/lib/module/components/FloatingChatButton.js +0 -190
- package/lib/module/components/FloatingChatButton.js.map +0 -1
- package/lib/module/config/storeConfigLoader.js +0 -153
- package/lib/module/config/storeConfigLoader.js.map +0 -1
- package/lib/module/config/types.js +0 -2
- package/lib/module/config/types.js.map +0 -1
- package/lib/module/utils/pluginUrlBuilder.js +0 -279
- package/lib/module/utils/pluginUrlBuilder.js.map +0 -1
- package/lib/typescript/components/ButtonContent.d.ts +0 -5
- package/lib/typescript/components/ButtonContent.d.ts.map +0 -1
- package/lib/typescript/components/FloatingChatButton.d.ts +0 -8
- package/lib/typescript/components/FloatingChatButton.d.ts.map +0 -1
- package/lib/typescript/config/storeConfigLoader.d.ts +0 -25
- package/lib/typescript/config/storeConfigLoader.d.ts.map +0 -1
- package/lib/typescript/config/types.d.ts +0 -49
- package/lib/typescript/config/types.d.ts.map +0 -1
- package/lib/typescript/utils/pluginUrlBuilder.d.ts +0 -43
- package/lib/typescript/utils/pluginUrlBuilder.d.ts.map +0 -1
- package/src/components/ButtonContent.tsx +0 -54
- package/src/components/FloatingChatButton.tsx +0 -204
- package/src/config/storeConfigLoader.ts +0 -175
- package/src/config/types.ts +0 -51
- package/src/utils/pluginUrlBuilder.ts +0 -528
package/lib/module/theme.js
CHANGED
|
@@ -19,232 +19,4 @@ export function mergeTheme(overrides) {
|
|
|
19
19
|
...(overrides || {})
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export const defaultThemeObject = {
|
|
23
|
-
transparent: "transparent",
|
|
24
|
-
"link-hover": "#292735",
|
|
25
|
-
"link-static": "#3378F6",
|
|
26
|
-
"primary-cont": "#ffffff",
|
|
27
|
-
"tertiary-cont": "#292735",
|
|
28
|
-
"secondary-cont": "#292735",
|
|
29
|
-
"primary-bg-hover": "#37363F",
|
|
30
|
-
"primary-bg-static": "#292735",
|
|
31
|
-
"secondary-bg-hover": "#E3E3E9",
|
|
32
|
-
"tertiary-bg-static": "#E3E3E9",
|
|
33
|
-
"primary-bg-disabled": "#D5D5DC",
|
|
34
|
-
"secondary-bor-hover": "#37363F",
|
|
35
|
-
"secondary-bor-static": "#292735",
|
|
36
|
-
"tertiary-bg-disabled": "#D5D5DC",
|
|
37
|
-
"primary-cont-disabled": "#ACACB3",
|
|
38
|
-
"secondary-bor-disabled": "#D5D5DC",
|
|
39
|
-
"tertiary-cont-disabled": "#ACACB3",
|
|
40
|
-
"secondary-cont-disabled": "#ACACB3",
|
|
41
|
-
"header-cont": "#ffffff",
|
|
42
|
-
"header-btn-cont": "#ffffff",
|
|
43
|
-
"header-bg-static": "#37363F",
|
|
44
|
-
"header-btn-bg-hover": "#37363F",
|
|
45
|
-
"header-btn-bg-active": "#E3E3E9",
|
|
46
|
-
"header-btn-bg-static": "#292735",
|
|
47
|
-
"header-btn-bor-hover": "#292735",
|
|
48
|
-
"header-btn-cont-active": "#292735",
|
|
49
|
-
"knob-bor": "#292735",
|
|
50
|
-
"knob-cont": "#ffffff",
|
|
51
|
-
"option-cont": "#4F4E57",
|
|
52
|
-
"toggle-cont": "#ffffff",
|
|
53
|
-
"toggle-bg-on": "#292735",
|
|
54
|
-
"knob-bg-hover": "#E4E4EC",
|
|
55
|
-
"knob-bg-active": "#292735",
|
|
56
|
-
"knob-bg-static": "#ffffff",
|
|
57
|
-
"option-bg-hover": "#DADAE0",
|
|
58
|
-
"option-bg-active": "#A1A0AB",
|
|
59
|
-
"option-bg-static": "#E4E4EC",
|
|
60
|
-
"toggle-bg-static": "#DADAE0",
|
|
61
|
-
"option-bg-disabled": "#D5D5DC",
|
|
62
|
-
"option-cont-active": "#ffffff",
|
|
63
|
-
"toggle-bg-disabled": "#D5D5DC",
|
|
64
|
-
"knob-bg-disabled-on": "#D5D5DC",
|
|
65
|
-
"knob-bg-disabled-off": "#EDEDF2",
|
|
66
|
-
"option-cont-disabled": "#ACACB3",
|
|
67
|
-
"toggle-cont-disabled": "#EDEDF2",
|
|
68
|
-
"knob-cont-disabled-on": "#ffffff",
|
|
69
|
-
"core-01": "#ffffff",
|
|
70
|
-
"core-02": "#EDEDF2",
|
|
71
|
-
"core-03": "#D5D5DC",
|
|
72
|
-
"core-04": "#ACACB3",
|
|
73
|
-
"core-05": "#020001",
|
|
74
|
-
"core-06": "#4F4E57",
|
|
75
|
-
"main-01": "#292735",
|
|
76
|
-
"main-02": "#37363F",
|
|
77
|
-
"main-03": "#E3E3E9",
|
|
78
|
-
"main-04": "#3378F6",
|
|
79
|
-
"main-05": "#ffffff",
|
|
80
|
-
"main-06": "#292735",
|
|
81
|
-
"extra-01": "#A1A0AB",
|
|
82
|
-
"extra-02": "#292735",
|
|
83
|
-
"extra-03": "#E4E4EC",
|
|
84
|
-
"extra-04": "#DADAE0",
|
|
85
|
-
"extra-05": "#ffffff",
|
|
86
|
-
"extra-06": "#4F4E57",
|
|
87
|
-
"cont-00": "#ffffff",
|
|
88
|
-
"warn-01": "#FFA500",
|
|
89
|
-
"warn-02": "#FFF8DB",
|
|
90
|
-
"error-01": "#D0021B",
|
|
91
|
-
"error-02": "#FFE2E0",
|
|
92
|
-
"success-01": "#00B140",
|
|
93
|
-
"success-02": "#DBFFE4",
|
|
94
|
-
"jewelry-01": "#58B8A5",
|
|
95
|
-
"jewelry-02": "#4CA191",
|
|
96
|
-
"jewelry-03": "#D6F1ED",
|
|
97
|
-
"jewelry-04": "#27AC92",
|
|
98
|
-
"jewelry-05": "#ffffff",
|
|
99
|
-
"jewelry-06": "#27AC92",
|
|
100
|
-
"over-01": "#000000b3",
|
|
101
|
-
"over-02": "rgba(55,54,64,0.3)",
|
|
102
|
-
"over-03": "rgba(255,255,255,0.7)",
|
|
103
|
-
"over-04": "#ffffff",
|
|
104
|
-
"diam-01": "#804195",
|
|
105
|
-
"diam-02": "#713782",
|
|
106
|
-
"diam-03": "#EEE1F3",
|
|
107
|
-
"diam-04": "#9138AE",
|
|
108
|
-
"diam-05": "#ffffff",
|
|
109
|
-
"diam-06": "#9138AE",
|
|
110
|
-
"gem-01": "#3B72CC",
|
|
111
|
-
"gem-02": "#3C62A0",
|
|
112
|
-
"gem-03": "#DCE6F6",
|
|
113
|
-
"gem-04": "#3E76D2",
|
|
114
|
-
"gem-05": "#ffffff",
|
|
115
|
-
"gem-06": "#3E76D2",
|
|
116
|
-
"lab-01": "#E97F5B",
|
|
117
|
-
"lab-02": "#DA704B",
|
|
118
|
-
"lab-03": "#F9E2D9",
|
|
119
|
-
"lab-04": "#E87B56",
|
|
120
|
-
"lab-05": "#ffffff",
|
|
121
|
-
"lab-06": "#E87B56",
|
|
122
|
-
Shadows: {
|
|
123
|
-
Huge: {
|
|
124
|
-
x: "2",
|
|
125
|
-
y: "16",
|
|
126
|
-
blur: "32",
|
|
127
|
-
type: "dropShadow",
|
|
128
|
-
color: "#37364066",
|
|
129
|
-
spread: "-8"
|
|
130
|
-
},
|
|
131
|
-
Gentle: {
|
|
132
|
-
x: "1",
|
|
133
|
-
y: "2",
|
|
134
|
-
blur: "4",
|
|
135
|
-
type: "dropShadow",
|
|
136
|
-
color: "#37364014",
|
|
137
|
-
spread: "-2"
|
|
138
|
-
},
|
|
139
|
-
Normal: {
|
|
140
|
-
x: "2",
|
|
141
|
-
y: "8",
|
|
142
|
-
blur: "24",
|
|
143
|
-
type: "dropShadow",
|
|
144
|
-
color: "#37364042",
|
|
145
|
-
spread: "-6"
|
|
146
|
-
},
|
|
147
|
-
"Bottom-scroll": {
|
|
148
|
-
x: "0",
|
|
149
|
-
y: "-8",
|
|
150
|
-
blur: "24",
|
|
151
|
-
type: "dropShadow",
|
|
152
|
-
color: "#37364029",
|
|
153
|
-
spread: "-8"
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
export const defaultTypography = {
|
|
158
|
-
"NAV-M": {
|
|
159
|
-
fontSize: 14,
|
|
160
|
-
fontFamily: "Roboto-Medium",
|
|
161
|
-
fontWeight: "500",
|
|
162
|
-
letterSpacing: 1,
|
|
163
|
-
textDecorationLine: "none"
|
|
164
|
-
},
|
|
165
|
-
"NAV-R": {
|
|
166
|
-
fontSize: 14,
|
|
167
|
-
fontFamily: "Roboto-Regular",
|
|
168
|
-
fontWeight: "400",
|
|
169
|
-
letterSpacing: 1,
|
|
170
|
-
textDecorationLine: "none"
|
|
171
|
-
},
|
|
172
|
-
"H1-B": {
|
|
173
|
-
fontSize: 18,
|
|
174
|
-
fontFamily: "Roboto-Bold",
|
|
175
|
-
fontWeight: "700",
|
|
176
|
-
letterSpacing: 0,
|
|
177
|
-
textDecorationLine: "none"
|
|
178
|
-
},
|
|
179
|
-
"H2-M": {
|
|
180
|
-
fontSize: 17,
|
|
181
|
-
fontFamily: "Roboto-Medium",
|
|
182
|
-
fontWeight: "500",
|
|
183
|
-
letterSpacing: 0,
|
|
184
|
-
textDecorationLine: "none"
|
|
185
|
-
},
|
|
186
|
-
"H2-R": {
|
|
187
|
-
fontSize: 17,
|
|
188
|
-
fontFamily: "Roboto-Regular",
|
|
189
|
-
fontWeight: "400",
|
|
190
|
-
letterSpacing: 0,
|
|
191
|
-
textDecorationLine: "none"
|
|
192
|
-
},
|
|
193
|
-
"H3-M": {
|
|
194
|
-
fontSize: 16,
|
|
195
|
-
fontFamily: "Roboto-Medium",
|
|
196
|
-
fontWeight: "500",
|
|
197
|
-
letterSpacing: 0,
|
|
198
|
-
textDecorationLine: "none"
|
|
199
|
-
},
|
|
200
|
-
"H3-R": {
|
|
201
|
-
fontSize: 16,
|
|
202
|
-
fontFamily: "Roboto-Regular",
|
|
203
|
-
fontWeight: "400",
|
|
204
|
-
letterSpacing: 0,
|
|
205
|
-
textDecorationLine: "none"
|
|
206
|
-
},
|
|
207
|
-
"Body-M": {
|
|
208
|
-
fontSize: 14,
|
|
209
|
-
fontFamily: "Roboto-Medium",
|
|
210
|
-
fontWeight: "500",
|
|
211
|
-
letterSpacing: 0,
|
|
212
|
-
textDecorationLine: "none"
|
|
213
|
-
},
|
|
214
|
-
"Body-R": {
|
|
215
|
-
fontSize: 14,
|
|
216
|
-
fontFamily: "Roboto-Regular",
|
|
217
|
-
fontWeight: "400",
|
|
218
|
-
letterSpacing: 0,
|
|
219
|
-
textDecorationLine: "none"
|
|
220
|
-
},
|
|
221
|
-
"Lead-M": {
|
|
222
|
-
fontSize: 21,
|
|
223
|
-
fontFamily: "Roboto-Medium",
|
|
224
|
-
fontWeight: "500",
|
|
225
|
-
letterSpacing: 0,
|
|
226
|
-
textDecorationLine: "none"
|
|
227
|
-
},
|
|
228
|
-
"Large-B": {
|
|
229
|
-
fontSize: 24,
|
|
230
|
-
fontFamily: "Roboto-Medium",
|
|
231
|
-
fontWeight: "500",
|
|
232
|
-
letterSpacing: 0,
|
|
233
|
-
textDecorationLine: "none"
|
|
234
|
-
},
|
|
235
|
-
"Minor-M": {
|
|
236
|
-
fontSize: 13,
|
|
237
|
-
fontFamily: "Roboto-Medium",
|
|
238
|
-
fontWeight: "500",
|
|
239
|
-
letterSpacing: 0,
|
|
240
|
-
textDecorationLine: "none"
|
|
241
|
-
},
|
|
242
|
-
"Minor-R": {
|
|
243
|
-
fontSize: 13,
|
|
244
|
-
fontFamily: "Roboto-Regular",
|
|
245
|
-
fontWeight: "400",
|
|
246
|
-
letterSpacing: 0,
|
|
247
|
-
textDecorationLine: "none"
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
22
|
//# sourceMappingURL=theme.js.map
|
package/lib/module/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["defaultTheme","primaryColor","backgroundColor","inputColor","inputBackgroundColor","inputBorderRadius","inputTextColor","userBubbleColor","userTextColor","botBubbleColor","botTextColor","borderRadius","fontFamily","undefined","fontSize","mergeTheme","overrides"
|
|
1
|
+
{"version":3,"names":["defaultTheme","primaryColor","backgroundColor","inputColor","inputBackgroundColor","inputBorderRadius","inputTextColor","userBubbleColor","userTextColor","botBubbleColor","botTextColor","borderRadius","fontFamily","undefined","fontSize","mergeTheme","overrides"],"sourceRoot":"../../src","sources":["theme.ts"],"mappings":"AAEA,OAAO,MAAMA,YAAuB,GAAG;EACrCC,YAAY,EAAE,SAAS;EACvBC,eAAe,EAAE,SAAS;EAC1BC,UAAU,EAAE,MAAM;EAClBC,oBAAoB,EAAE,SAAS;EAC/BC,iBAAiB,EAAE,CAAC;EACpBC,cAAc,EAAE,SAAS;EACzBC,eAAe,EAAE,SAAS;EAC1BC,aAAa,EAAE,SAAS;EACxBC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAEC,SAAS;EACrBC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,SAASC,UAAUA,CAACC,SAA8B,EAAa;EACpE,OAAO;IAAE,GAAGhB,YAAY;IAAE,IAAIgB,SAAS,IAAI,CAAC,CAAC;EAAE,CAAC;AAClD","ignoreList":[]}
|
package/lib/typescript/api.d.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { FeedbackAction } from "./components/utils";
|
|
2
2
|
import type { ChatMessage } from "./types";
|
|
3
|
-
import type { SearchApiDefaults } from "./config/types";
|
|
4
3
|
export type ChatApiParams = Record<string, any>;
|
|
5
|
-
/**
|
|
6
|
-
* Set a token override that will be used instead of reading from storage.
|
|
7
|
-
* Pass null to clear the override and revert to storage-based token.
|
|
8
|
-
*/
|
|
9
|
-
export declare function setTokenOverride(token: string | null): void;
|
|
10
|
-
/**
|
|
11
|
-
* Get the current token override (if any).
|
|
12
|
-
*/
|
|
13
|
-
export declare function getTokenOverride(): string | null;
|
|
14
4
|
export interface StoredConversations {
|
|
15
5
|
token: string;
|
|
16
6
|
conversations: Record<string, {
|
|
@@ -36,8 +26,8 @@ export declare function fetchInitialMessages(apiUrl: string, _params?: ChatApiPa
|
|
|
36
26
|
export declare function fetchOlderMessages(apiUrl: string, priceMode: string | null, cursor?: string | number, pageNumber?: number): Promise<PaginatedMessagesResponse>;
|
|
37
27
|
export declare function sendUserMessage(apiUrl: string, userMessage: string, _params: ChatApiParams, _history: ChatMessage[], priceMode: any, classic_search_filters?: any): Promise<any>;
|
|
38
28
|
export declare function clearChatHistory(apiUrl: string, priceMode: any): Promise<void>;
|
|
39
|
-
export declare function getProducts(apiUrl: string, params: ChatApiParams
|
|
40
|
-
export declare function getProductsPaginated(apiUrl: string, params: ChatApiParams, pageNumber?: number
|
|
29
|
+
export declare function getProducts(apiUrl: string, params: ChatApiParams): Promise<any>;
|
|
30
|
+
export declare function getProductsPaginated(apiUrl: string, params: ChatApiParams, pageNumber?: number): Promise<any>;
|
|
41
31
|
export declare const handleFeedbackActionApi: (apiUrl: string, action: FeedbackAction, conversation_id: string, message_id: string) => Promise<Response>;
|
|
42
32
|
export interface RecommendationItem {
|
|
43
33
|
diamond_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAIf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAIf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AA+BhD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA2CD,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBzE;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,OAAO,CAAC,CAU9D;AAED,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,MAAM,GAAG,IAAI,GACvB,OAAO,CAAC,W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ACb,OAAO,EAAE,MAAM,CAAC;IAChB,sBAAsB,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACpC;AAED,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,kBAAkB,EAAE,GACjC,OAAO,CAAC,sBAAsB,CAAC,CAoBjC;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,GAAG,GACX,kBAAkB,CAkBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ChatHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAwC1B,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"ChatHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ChatHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAwC1B,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4CzC,CAAC;AA+DF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatWidget.d.ts","sourceRoot":"","sources":["../../../src/components/ChatWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAkBf,OAAO,KAAK,EAAe,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatWidget.d.ts","sourceRoot":"","sources":["../../../src/components/ChatWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAkBf,OAAO,KAAK,EAAe,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA+C5E,eAAO,MAAM,UAAU,uFAkmDtB,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { SearchApiDefaults } from "../config/types";
|
|
3
2
|
interface LazyProductsFetcherProps {
|
|
4
3
|
messageId: string;
|
|
5
4
|
payload: Record<string, any> | undefined | null;
|
|
6
5
|
onFetched: (messageId: string, data: any) => void;
|
|
7
6
|
priceMode: string | null;
|
|
8
7
|
apiUrl: string;
|
|
9
|
-
useAsPlugin?: boolean;
|
|
10
|
-
searchApiDefaults?: SearchApiDefaults;
|
|
11
8
|
}
|
|
12
9
|
declare const LazyProductsFetcher: React.FC<LazyProductsFetcherProps>;
|
|
13
10
|
export default LazyProductsFetcher;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyProductsFetcher.d.ts","sourceRoot":"","sources":["../../../src/components/LazyProductsFetcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LazyProductsFetcher.d.ts","sourceRoot":"","sources":["../../../src/components/LazyProductsFetcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,UAAU,wBAAwB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;IAChD,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAClD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6B3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -49,6 +49,7 @@ export declare enum AIEventTypes {
|
|
|
49
49
|
SHOW_ALL_RESULTS_CLICKED = "show_all_results_clicked",
|
|
50
50
|
SEARCH_INITIATED = "search_initiated",
|
|
51
51
|
NO_RESULTS_FOUND = "no_results_found",
|
|
52
|
+
CLASSIC_SEARCH_FILTERS = "classic_search_filters",
|
|
52
53
|
RECOMMENDATION_REQUESTED = "recommendation_requested",
|
|
53
54
|
RECOMMENDATION_RECEIVED = "recommendation_received"
|
|
54
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,eAAO,MAAM,WAAW,mCAA2B,CAAC;AAEpD,KAAK,iBAAiB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;AAEhE,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAa5E;AAED,oBAAY,cAAc;IACxB,IAAI,MAAM;IACV,OAAO,MAAM;IACb,KAAK,MAAM;CACZ;AAeD,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,KACjB,OAAO,CAAC,MAAM,GAAG,IAAI,CAqBvB,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,MAAM,GAAG,IAAI,CAInE,CAAC;AAEF,eA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C,IAAI,GAAG;;;;;CA2kBR,CAAC;AAEF,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,oBAAY,UAAU;IACpB,OAAO,IAAA;IACP,SAAS,IAAA;IACT,QAAQ,IAAA;CACT;AAED,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,iBAAiB,sBAAsB;IACvC,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,gBAAgB,sBAAsB;CACvC;AAED,eAAO,MAAM,eAAe,GAAI,aAAa,MAAM,GAAG,SAAS,KAAG,GAiBjE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM,GAAG,SAAS,mDAenE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,cAAc,EACxB,MAAM,UAAU,EAChB,UAAU,OAAO,KAChB,mBAwFF,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,yBAAyB,MAAM,wBAMhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,SAAS,OAAO,EAAE,aAAa,GAAG,QAoDrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC/B;AAED,QAAA,MAAM,aAAa,GAAI,cAAc,KAAK,mDA0DzC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,25 +1,3 @@
|
|
|
1
1
|
import type { ChatTheme } from "./types";
|
|
2
|
-
export
|
|
3
|
-
domElement: HTMLElement;
|
|
4
|
-
apiUrl: string;
|
|
5
|
-
theme?: Partial<ChatTheme>;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
onClearChat?: () => void;
|
|
8
|
-
segmentWriteKey?: string;
|
|
9
|
-
onViewAllPress?: (url: string, payload: any) => void;
|
|
10
|
-
onItemPress?: (url: string, item: any) => void;
|
|
11
|
-
isBetaMode?: boolean;
|
|
12
|
-
useAsPlugin?: boolean;
|
|
13
|
-
s3ConfigUrl?: string;
|
|
14
|
-
classic_search_filters?: any;
|
|
15
|
-
userToken?: string;
|
|
16
|
-
priceMode?: string;
|
|
17
|
-
userName?: string;
|
|
18
|
-
activeProductType?: string;
|
|
19
|
-
trackAnalyticsEvent?: (eventName: string, eventData?: any) => void;
|
|
20
|
-
modalHeight?: number;
|
|
21
|
-
locale?: string;
|
|
22
|
-
translations?: Record<string, string>;
|
|
23
|
-
}
|
|
24
|
-
export declare function renderChatApp(domElement: HTMLElement, apiUrl: string, theme?: Partial<ChatTheme>, onClose?: () => void, onClearChat?: () => void, segmentWriteKey?: string, onViewAllPress?: (url: string, payload: any) => void, onItemPress?: (url: string, item: any) => void, isBetaMode?: boolean, classic_search_filters?: any, userToken?: string, priceMode?: string, userName?: string, activeProductType?: string, trackAnalyticsEvent?: (eventName: string, eventData?: any) => void, modalHeight?: number, locale?: string, translations?: Record<string, string>, useAsPlugin?: boolean, s3ConfigUrl?: string): void;
|
|
2
|
+
export declare function renderChatApp(domElement: HTMLElement, apiUrl: string, theme?: Partial<ChatTheme>, onClose?: () => void, onClearChat?: () => void, segmentWriteKey?: string, onViewAllPress?: (url: string, payload: any) => void, onItemPress?: (url: string, item: any) => void, isBetaMode?: boolean, classic_search_filters?: any): void;
|
|
25
3
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,wBAAgB,aAAa,CAC3B,UAAU,EAAE,WAAW,EACvB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,EACpB,WAAW,CAAC,EAAE,MAAM,IAAI,EACxB,eAAe,CAAC,EAAE,MAAM,EACxB,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,EACpD,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI,EAC9C,UAAU,CAAC,EAAE,OAAO,EACpB,sBAAsB,CAAC,EAAE,GAAG,QAgG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAGA,UAAU,gBAAgB;IACxB,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAGA,UAAU,gBAAgB;IACxB,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C;AA2DD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,YAAY,EAAE,gBAAgB,GAAG,IAAI,CAGhE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAK9C;AA8BD,eAAO,MAAM,OAAO;mBACG,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;mBAI/B,MAAM,SAAS,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;sBAIlC,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;cAK9B,CAAC,aACV,MAAM,iBACG,CAAC,GAAG,IAAI,KACrB,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;mBAaC,MAAM,SAAS,GAAG,KAAG,OAAO,CAAC,IAAI,CAAC;CAOxD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,232 +1,4 @@
|
|
|
1
1
|
import type { ChatTheme } from "./types";
|
|
2
2
|
export declare const defaultTheme: ChatTheme;
|
|
3
3
|
export declare function mergeTheme(overrides?: Partial<ChatTheme>): ChatTheme;
|
|
4
|
-
export declare const defaultThemeObject: {
|
|
5
|
-
transparent: string;
|
|
6
|
-
"link-hover": string;
|
|
7
|
-
"link-static": string;
|
|
8
|
-
"primary-cont": string;
|
|
9
|
-
"tertiary-cont": string;
|
|
10
|
-
"secondary-cont": string;
|
|
11
|
-
"primary-bg-hover": string;
|
|
12
|
-
"primary-bg-static": string;
|
|
13
|
-
"secondary-bg-hover": string;
|
|
14
|
-
"tertiary-bg-static": string;
|
|
15
|
-
"primary-bg-disabled": string;
|
|
16
|
-
"secondary-bor-hover": string;
|
|
17
|
-
"secondary-bor-static": string;
|
|
18
|
-
"tertiary-bg-disabled": string;
|
|
19
|
-
"primary-cont-disabled": string;
|
|
20
|
-
"secondary-bor-disabled": string;
|
|
21
|
-
"tertiary-cont-disabled": string;
|
|
22
|
-
"secondary-cont-disabled": string;
|
|
23
|
-
"header-cont": string;
|
|
24
|
-
"header-btn-cont": string;
|
|
25
|
-
"header-bg-static": string;
|
|
26
|
-
"header-btn-bg-hover": string;
|
|
27
|
-
"header-btn-bg-active": string;
|
|
28
|
-
"header-btn-bg-static": string;
|
|
29
|
-
"header-btn-bor-hover": string;
|
|
30
|
-
"header-btn-cont-active": string;
|
|
31
|
-
"knob-bor": string;
|
|
32
|
-
"knob-cont": string;
|
|
33
|
-
"option-cont": string;
|
|
34
|
-
"toggle-cont": string;
|
|
35
|
-
"toggle-bg-on": string;
|
|
36
|
-
"knob-bg-hover": string;
|
|
37
|
-
"knob-bg-active": string;
|
|
38
|
-
"knob-bg-static": string;
|
|
39
|
-
"option-bg-hover": string;
|
|
40
|
-
"option-bg-active": string;
|
|
41
|
-
"option-bg-static": string;
|
|
42
|
-
"toggle-bg-static": string;
|
|
43
|
-
"option-bg-disabled": string;
|
|
44
|
-
"option-cont-active": string;
|
|
45
|
-
"toggle-bg-disabled": string;
|
|
46
|
-
"knob-bg-disabled-on": string;
|
|
47
|
-
"knob-bg-disabled-off": string;
|
|
48
|
-
"option-cont-disabled": string;
|
|
49
|
-
"toggle-cont-disabled": string;
|
|
50
|
-
"knob-cont-disabled-on": string;
|
|
51
|
-
"core-01": string;
|
|
52
|
-
"core-02": string;
|
|
53
|
-
"core-03": string;
|
|
54
|
-
"core-04": string;
|
|
55
|
-
"core-05": string;
|
|
56
|
-
"core-06": string;
|
|
57
|
-
"main-01": string;
|
|
58
|
-
"main-02": string;
|
|
59
|
-
"main-03": string;
|
|
60
|
-
"main-04": string;
|
|
61
|
-
"main-05": string;
|
|
62
|
-
"main-06": string;
|
|
63
|
-
"extra-01": string;
|
|
64
|
-
"extra-02": string;
|
|
65
|
-
"extra-03": string;
|
|
66
|
-
"extra-04": string;
|
|
67
|
-
"extra-05": string;
|
|
68
|
-
"extra-06": string;
|
|
69
|
-
"cont-00": string;
|
|
70
|
-
"warn-01": string;
|
|
71
|
-
"warn-02": string;
|
|
72
|
-
"error-01": string;
|
|
73
|
-
"error-02": string;
|
|
74
|
-
"success-01": string;
|
|
75
|
-
"success-02": string;
|
|
76
|
-
"jewelry-01": string;
|
|
77
|
-
"jewelry-02": string;
|
|
78
|
-
"jewelry-03": string;
|
|
79
|
-
"jewelry-04": string;
|
|
80
|
-
"jewelry-05": string;
|
|
81
|
-
"jewelry-06": string;
|
|
82
|
-
"over-01": string;
|
|
83
|
-
"over-02": string;
|
|
84
|
-
"over-03": string;
|
|
85
|
-
"over-04": string;
|
|
86
|
-
"diam-01": string;
|
|
87
|
-
"diam-02": string;
|
|
88
|
-
"diam-03": string;
|
|
89
|
-
"diam-04": string;
|
|
90
|
-
"diam-05": string;
|
|
91
|
-
"diam-06": string;
|
|
92
|
-
"gem-01": string;
|
|
93
|
-
"gem-02": string;
|
|
94
|
-
"gem-03": string;
|
|
95
|
-
"gem-04": string;
|
|
96
|
-
"gem-05": string;
|
|
97
|
-
"gem-06": string;
|
|
98
|
-
"lab-01": string;
|
|
99
|
-
"lab-02": string;
|
|
100
|
-
"lab-03": string;
|
|
101
|
-
"lab-04": string;
|
|
102
|
-
"lab-05": string;
|
|
103
|
-
"lab-06": string;
|
|
104
|
-
Shadows: {
|
|
105
|
-
Huge: {
|
|
106
|
-
x: string;
|
|
107
|
-
y: string;
|
|
108
|
-
blur: string;
|
|
109
|
-
type: string;
|
|
110
|
-
color: string;
|
|
111
|
-
spread: string;
|
|
112
|
-
};
|
|
113
|
-
Gentle: {
|
|
114
|
-
x: string;
|
|
115
|
-
y: string;
|
|
116
|
-
blur: string;
|
|
117
|
-
type: string;
|
|
118
|
-
color: string;
|
|
119
|
-
spread: string;
|
|
120
|
-
};
|
|
121
|
-
Normal: {
|
|
122
|
-
x: string;
|
|
123
|
-
y: string;
|
|
124
|
-
blur: string;
|
|
125
|
-
type: string;
|
|
126
|
-
color: string;
|
|
127
|
-
spread: string;
|
|
128
|
-
};
|
|
129
|
-
"Bottom-scroll": {
|
|
130
|
-
x: string;
|
|
131
|
-
y: string;
|
|
132
|
-
blur: string;
|
|
133
|
-
type: string;
|
|
134
|
-
color: string;
|
|
135
|
-
spread: string;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
export declare const defaultTypography: {
|
|
140
|
-
"NAV-M": {
|
|
141
|
-
fontSize: number;
|
|
142
|
-
fontFamily: string;
|
|
143
|
-
fontWeight: string;
|
|
144
|
-
letterSpacing: number;
|
|
145
|
-
textDecorationLine: string;
|
|
146
|
-
};
|
|
147
|
-
"NAV-R": {
|
|
148
|
-
fontSize: number;
|
|
149
|
-
fontFamily: string;
|
|
150
|
-
fontWeight: string;
|
|
151
|
-
letterSpacing: number;
|
|
152
|
-
textDecorationLine: string;
|
|
153
|
-
};
|
|
154
|
-
"H1-B": {
|
|
155
|
-
fontSize: number;
|
|
156
|
-
fontFamily: string;
|
|
157
|
-
fontWeight: string;
|
|
158
|
-
letterSpacing: number;
|
|
159
|
-
textDecorationLine: string;
|
|
160
|
-
};
|
|
161
|
-
"H2-M": {
|
|
162
|
-
fontSize: number;
|
|
163
|
-
fontFamily: string;
|
|
164
|
-
fontWeight: string;
|
|
165
|
-
letterSpacing: number;
|
|
166
|
-
textDecorationLine: string;
|
|
167
|
-
};
|
|
168
|
-
"H2-R": {
|
|
169
|
-
fontSize: number;
|
|
170
|
-
fontFamily: string;
|
|
171
|
-
fontWeight: string;
|
|
172
|
-
letterSpacing: number;
|
|
173
|
-
textDecorationLine: string;
|
|
174
|
-
};
|
|
175
|
-
"H3-M": {
|
|
176
|
-
fontSize: number;
|
|
177
|
-
fontFamily: string;
|
|
178
|
-
fontWeight: string;
|
|
179
|
-
letterSpacing: number;
|
|
180
|
-
textDecorationLine: string;
|
|
181
|
-
};
|
|
182
|
-
"H3-R": {
|
|
183
|
-
fontSize: number;
|
|
184
|
-
fontFamily: string;
|
|
185
|
-
fontWeight: string;
|
|
186
|
-
letterSpacing: number;
|
|
187
|
-
textDecorationLine: string;
|
|
188
|
-
};
|
|
189
|
-
"Body-M": {
|
|
190
|
-
fontSize: number;
|
|
191
|
-
fontFamily: string;
|
|
192
|
-
fontWeight: string;
|
|
193
|
-
letterSpacing: number;
|
|
194
|
-
textDecorationLine: string;
|
|
195
|
-
};
|
|
196
|
-
"Body-R": {
|
|
197
|
-
fontSize: number;
|
|
198
|
-
fontFamily: string;
|
|
199
|
-
fontWeight: string;
|
|
200
|
-
letterSpacing: number;
|
|
201
|
-
textDecorationLine: string;
|
|
202
|
-
};
|
|
203
|
-
"Lead-M": {
|
|
204
|
-
fontSize: number;
|
|
205
|
-
fontFamily: string;
|
|
206
|
-
fontWeight: string;
|
|
207
|
-
letterSpacing: number;
|
|
208
|
-
textDecorationLine: string;
|
|
209
|
-
};
|
|
210
|
-
"Large-B": {
|
|
211
|
-
fontSize: number;
|
|
212
|
-
fontFamily: string;
|
|
213
|
-
fontWeight: string;
|
|
214
|
-
letterSpacing: number;
|
|
215
|
-
textDecorationLine: string;
|
|
216
|
-
};
|
|
217
|
-
"Minor-M": {
|
|
218
|
-
fontSize: number;
|
|
219
|
-
fontFamily: string;
|
|
220
|
-
fontWeight: string;
|
|
221
|
-
letterSpacing: number;
|
|
222
|
-
textDecorationLine: string;
|
|
223
|
-
};
|
|
224
|
-
"Minor-R": {
|
|
225
|
-
fontSize: number;
|
|
226
|
-
fontFamily: string;
|
|
227
|
-
fontWeight: string;
|
|
228
|
-
letterSpacing: number;
|
|
229
|
-
textDecorationLine: string;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
4
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,YAAY,EAAE,SAc1B,CAAC;AAEF,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAEpE
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,YAAY,EAAE,SAc1B,CAAC;AAEF,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAEpE"}
|
|
@@ -54,10 +54,6 @@ export interface ChatWidgetProps {
|
|
|
54
54
|
onItemPress?: (deepLinkUrl: string, item: any) => void;
|
|
55
55
|
/** When true, shows beta labels and disclaimer. */
|
|
56
56
|
isBetaMode?: boolean;
|
|
57
|
-
/** When true, generates Shopify plugin-compatible URLs for onViewAll and onItemPress. */
|
|
58
|
-
useAsPlugin?: boolean;
|
|
59
|
-
/** Base URL for store configuration files in S3 (used when useAsPlugin is true). */
|
|
60
|
-
s3ConfigUrl?: string;
|
|
61
57
|
activeProductType?: string;
|
|
62
58
|
trackAnalyticsEvent?: (eventName: string, eventData: Record<string, any>) => void;
|
|
63
59
|
fromFilterScreen?: boolean;
|