@envive-ai/react-toolkit-v3 0.3.19 → 0.3.21
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/AnimatedText/AnimatedText.d.cts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +5 -5
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +175 -175
- package/dist/Container/Container.d.ts +175 -175
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.cjs +25 -22
- package/dist/FloatingChat/FloatingChat.d.cts +4 -3
- package/dist/FloatingChat/FloatingChat.d.ts +4 -3
- package/dist/FloatingChat/FloatingChat.js +26 -23
- package/dist/FloatingChat/components/AgentMessage.cjs +2 -8
- package/dist/FloatingChat/components/AgentMessage.js +2 -8
- package/dist/FloatingChat/components/ProductResultsModal.cjs +62 -0
- package/dist/FloatingChat/components/ProductResultsModal.js +60 -0
- package/dist/FloatingChat/components/ResultsGridView.cjs +17 -3
- package/dist/FloatingChat/components/ResultsGridView.js +15 -4
- package/dist/FloatingChat/components/SlideChatContent.cjs +3 -2
- package/dist/FloatingChat/components/SlideChatContent.js +4 -3
- package/dist/FloatingChat/components/index.cjs +2 -0
- package/dist/FloatingChat/components/index.js +2 -0
- package/dist/FloatingChat/hooks/useProductResultsView.cjs +14 -1
- package/dist/FloatingChat/hooks/useProductResultsView.js +15 -2
- package/dist/FloatingChat/hooks/useSnapSetup.cjs +2 -2
- package/dist/FloatingChat/types/types.d.cts +4 -0
- package/dist/FloatingChat/types/types.d.ts +4 -0
- package/dist/FloatingChat/utils/functions.cjs +24 -16
- package/dist/FloatingChat/utils/functions.js +24 -17
- package/dist/FloatingChat/utils/trackProductCardInteraction.cjs +18 -0
- package/dist/FloatingChat/utils/trackProductCardInteraction.js +17 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +29 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +29 -7
- package/dist/FullPageSalesAgent/components/Layout.cjs +2 -1
- package/dist/FullPageSalesAgent/components/Layout.js +2 -1
- package/dist/FullPageSalesAgent/hooks/useIsMobile.cjs +2 -2
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/ImageGallery/components/Layout.cjs +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +2 -2
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +2 -2
- package/dist/PromptCarousel/PromptCarousel.cjs +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/index.d.cts +6 -6
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +2 -2
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +2 -2
- package/dist/SocialProof/components/LayoutSingle.cjs +2 -2
- package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/dist/utils/useCheckIsMobile.d.cts +9 -0
- package/dist/utils/useCheckIsMobile.d.ts +9 -0
- package/package.json +5 -1
- package/src/components/FloatingChat/FloatingChat.tsx +35 -34
- package/src/components/FloatingChat/components/AgentMessage.tsx +2 -12
- package/src/components/FloatingChat/components/ProductResultsModal.tsx +87 -0
- package/src/components/FloatingChat/components/ResultsGridView.tsx +26 -2
- package/src/components/FloatingChat/components/SlideChatContent.tsx +9 -1
- package/src/components/FloatingChat/components/index.ts +2 -0
- package/src/components/FloatingChat/hooks/useProductResultsView.ts +26 -2
- package/src/components/FloatingChat/types/types.ts +4 -0
- package/src/components/FloatingChat/utils/functions.ts +34 -19
- package/src/components/FloatingChat/utils/trackProductCardInteraction.ts +26 -0
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +54 -5
- package/src/components/FullPageSalesAgent/components/Layout.tsx +7 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContainerProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react2 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Container/Container.d.ts
|
|
5
5
|
|
|
@@ -17,19 +17,10 @@ declare const Container: ({
|
|
|
17
17
|
fluid,
|
|
18
18
|
centerContent,
|
|
19
19
|
...props
|
|
20
|
-
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) =>
|
|
21
|
-
onClick?: react13.MouseEventHandler<HTMLElement>;
|
|
22
|
-
onFocus?: react13.FocusEventHandler<HTMLElement>;
|
|
23
|
-
onMouseDown?: react13.MouseEventHandler<HTMLElement>;
|
|
24
|
-
onMouseUp?: react13.MouseEventHandler<HTMLElement>;
|
|
25
|
-
onTouchStart?: react13.TouchEventHandler<HTMLElement>;
|
|
26
|
-
onTouchEnd?: react13.TouchEventHandler<HTMLElement>;
|
|
27
|
-
content?: string | undefined;
|
|
28
|
-
color?: string | undefined;
|
|
29
|
-
onChange?: react13.FormEventHandler<HTMLElement>;
|
|
30
|
-
onSubmit?: react13.FormEventHandler<HTMLElement>;
|
|
31
|
-
slot?: string | undefined;
|
|
20
|
+
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react2.DetailedReactHTMLElement<{
|
|
32
21
|
title?: string | undefined;
|
|
22
|
+
onClick?: react2.MouseEventHandler<HTMLElement>;
|
|
23
|
+
content?: string | undefined;
|
|
33
24
|
defaultChecked?: boolean | undefined;
|
|
34
25
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
35
26
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -45,11 +36,12 @@ declare const Container: ({
|
|
|
45
36
|
hidden?: boolean | undefined;
|
|
46
37
|
lang?: string | undefined;
|
|
47
38
|
nonce?: string | undefined;
|
|
39
|
+
slot?: string | undefined;
|
|
48
40
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
49
41
|
tabIndex?: number | undefined;
|
|
50
42
|
translate?: "yes" | "no" | undefined;
|
|
51
43
|
radioGroup?: string | undefined;
|
|
52
|
-
role?:
|
|
44
|
+
role?: react2.AriaRole | undefined;
|
|
53
45
|
about?: string | undefined;
|
|
54
46
|
datatype?: string | undefined;
|
|
55
47
|
inlist?: any;
|
|
@@ -62,6 +54,7 @@ declare const Container: ({
|
|
|
62
54
|
vocab?: string | undefined;
|
|
63
55
|
autoCorrect?: string | undefined;
|
|
64
56
|
autoSave?: string | undefined;
|
|
57
|
+
color?: string | undefined;
|
|
65
58
|
itemProp?: string | undefined;
|
|
66
59
|
itemScope?: boolean | undefined;
|
|
67
60
|
itemType?: string | undefined;
|
|
@@ -134,168 +127,175 @@ declare const Container: ({
|
|
|
134
127
|
dangerouslySetInnerHTML?: {
|
|
135
128
|
__html: string | TrustedHTML;
|
|
136
129
|
} | undefined;
|
|
137
|
-
onCopy?:
|
|
138
|
-
onCopyCapture?:
|
|
139
|
-
onCut?:
|
|
140
|
-
onCutCapture?:
|
|
141
|
-
onPaste?:
|
|
142
|
-
onPasteCapture?:
|
|
143
|
-
onCompositionEnd?:
|
|
144
|
-
onCompositionEndCapture?:
|
|
145
|
-
onCompositionStart?:
|
|
146
|
-
onCompositionStartCapture?:
|
|
147
|
-
onCompositionUpdate?:
|
|
148
|
-
onCompositionUpdateCapture?:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
130
|
+
onCopy?: react2.ClipboardEventHandler<HTMLElement>;
|
|
131
|
+
onCopyCapture?: react2.ClipboardEventHandler<HTMLElement>;
|
|
132
|
+
onCut?: react2.ClipboardEventHandler<HTMLElement>;
|
|
133
|
+
onCutCapture?: react2.ClipboardEventHandler<HTMLElement>;
|
|
134
|
+
onPaste?: react2.ClipboardEventHandler<HTMLElement>;
|
|
135
|
+
onPasteCapture?: react2.ClipboardEventHandler<HTMLElement>;
|
|
136
|
+
onCompositionEnd?: react2.CompositionEventHandler<HTMLElement>;
|
|
137
|
+
onCompositionEndCapture?: react2.CompositionEventHandler<HTMLElement>;
|
|
138
|
+
onCompositionStart?: react2.CompositionEventHandler<HTMLElement>;
|
|
139
|
+
onCompositionStartCapture?: react2.CompositionEventHandler<HTMLElement>;
|
|
140
|
+
onCompositionUpdate?: react2.CompositionEventHandler<HTMLElement>;
|
|
141
|
+
onCompositionUpdateCapture?: react2.CompositionEventHandler<HTMLElement>;
|
|
142
|
+
onFocus?: react2.FocusEventHandler<HTMLElement>;
|
|
143
|
+
onFocusCapture?: react2.FocusEventHandler<HTMLElement>;
|
|
144
|
+
onBlur?: react2.FocusEventHandler<HTMLElement>;
|
|
145
|
+
onBlurCapture?: react2.FocusEventHandler<HTMLElement>;
|
|
146
|
+
onChange?: react2.FormEventHandler<HTMLElement>;
|
|
147
|
+
onChangeCapture?: react2.FormEventHandler<HTMLElement>;
|
|
148
|
+
onBeforeInput?: react2.InputEventHandler<HTMLElement>;
|
|
149
|
+
onBeforeInputCapture?: react2.FormEventHandler<HTMLElement>;
|
|
150
|
+
onInput?: react2.FormEventHandler<HTMLElement>;
|
|
151
|
+
onInputCapture?: react2.FormEventHandler<HTMLElement>;
|
|
152
|
+
onReset?: react2.FormEventHandler<HTMLElement>;
|
|
153
|
+
onResetCapture?: react2.FormEventHandler<HTMLElement>;
|
|
154
|
+
onSubmit?: react2.FormEventHandler<HTMLElement>;
|
|
155
|
+
onSubmitCapture?: react2.FormEventHandler<HTMLElement>;
|
|
156
|
+
onInvalid?: react2.FormEventHandler<HTMLElement>;
|
|
157
|
+
onInvalidCapture?: react2.FormEventHandler<HTMLElement>;
|
|
158
|
+
onLoad?: react2.ReactEventHandler<HTMLElement>;
|
|
159
|
+
onLoadCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
160
|
+
onError?: react2.ReactEventHandler<HTMLElement>;
|
|
161
|
+
onErrorCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
162
|
+
onKeyDown?: react2.KeyboardEventHandler<HTMLElement>;
|
|
163
|
+
onKeyDownCapture?: react2.KeyboardEventHandler<HTMLElement>;
|
|
164
|
+
onKeyPress?: react2.KeyboardEventHandler<HTMLElement>;
|
|
165
|
+
onKeyPressCapture?: react2.KeyboardEventHandler<HTMLElement>;
|
|
166
|
+
onKeyUp?: react2.KeyboardEventHandler<HTMLElement>;
|
|
167
|
+
onKeyUpCapture?: react2.KeyboardEventHandler<HTMLElement>;
|
|
168
|
+
onAbort?: react2.ReactEventHandler<HTMLElement>;
|
|
169
|
+
onAbortCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
170
|
+
onCanPlay?: react2.ReactEventHandler<HTMLElement>;
|
|
171
|
+
onCanPlayCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
172
|
+
onCanPlayThrough?: react2.ReactEventHandler<HTMLElement>;
|
|
173
|
+
onCanPlayThroughCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
174
|
+
onDurationChange?: react2.ReactEventHandler<HTMLElement>;
|
|
175
|
+
onDurationChangeCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
176
|
+
onEmptied?: react2.ReactEventHandler<HTMLElement>;
|
|
177
|
+
onEmptiedCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
178
|
+
onEncrypted?: react2.ReactEventHandler<HTMLElement>;
|
|
179
|
+
onEncryptedCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
180
|
+
onEnded?: react2.ReactEventHandler<HTMLElement>;
|
|
181
|
+
onEndedCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
182
|
+
onLoadedData?: react2.ReactEventHandler<HTMLElement>;
|
|
183
|
+
onLoadedDataCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
184
|
+
onLoadedMetadata?: react2.ReactEventHandler<HTMLElement>;
|
|
185
|
+
onLoadedMetadataCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
186
|
+
onLoadStart?: react2.ReactEventHandler<HTMLElement>;
|
|
187
|
+
onLoadStartCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
188
|
+
onPause?: react2.ReactEventHandler<HTMLElement>;
|
|
189
|
+
onPauseCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
190
|
+
onPlay?: react2.ReactEventHandler<HTMLElement>;
|
|
191
|
+
onPlayCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
192
|
+
onPlaying?: react2.ReactEventHandler<HTMLElement>;
|
|
193
|
+
onPlayingCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
194
|
+
onProgress?: react2.ReactEventHandler<HTMLElement>;
|
|
195
|
+
onProgressCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
196
|
+
onRateChange?: react2.ReactEventHandler<HTMLElement>;
|
|
197
|
+
onRateChangeCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
198
|
+
onSeeked?: react2.ReactEventHandler<HTMLElement>;
|
|
199
|
+
onSeekedCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
200
|
+
onSeeking?: react2.ReactEventHandler<HTMLElement>;
|
|
201
|
+
onSeekingCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
202
|
+
onStalled?: react2.ReactEventHandler<HTMLElement>;
|
|
203
|
+
onStalledCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
204
|
+
onSuspend?: react2.ReactEventHandler<HTMLElement>;
|
|
205
|
+
onSuspendCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
206
|
+
onTimeUpdate?: react2.ReactEventHandler<HTMLElement>;
|
|
207
|
+
onTimeUpdateCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
208
|
+
onVolumeChange?: react2.ReactEventHandler<HTMLElement>;
|
|
209
|
+
onVolumeChangeCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
210
|
+
onWaiting?: react2.ReactEventHandler<HTMLElement>;
|
|
211
|
+
onWaitingCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
212
|
+
onAuxClick?: react2.MouseEventHandler<HTMLElement>;
|
|
213
|
+
onAuxClickCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
214
|
+
onClickCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
215
|
+
onContextMenu?: react2.MouseEventHandler<HTMLElement>;
|
|
216
|
+
onContextMenuCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
217
|
+
onDoubleClick?: react2.MouseEventHandler<HTMLElement>;
|
|
218
|
+
onDoubleClickCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
219
|
+
onDrag?: react2.DragEventHandler<HTMLElement>;
|
|
220
|
+
onDragCapture?: react2.DragEventHandler<HTMLElement>;
|
|
221
|
+
onDragEnd?: react2.DragEventHandler<HTMLElement>;
|
|
222
|
+
onDragEndCapture?: react2.DragEventHandler<HTMLElement>;
|
|
223
|
+
onDragEnter?: react2.DragEventHandler<HTMLElement>;
|
|
224
|
+
onDragEnterCapture?: react2.DragEventHandler<HTMLElement>;
|
|
225
|
+
onDragExit?: react2.DragEventHandler<HTMLElement>;
|
|
226
|
+
onDragExitCapture?: react2.DragEventHandler<HTMLElement>;
|
|
227
|
+
onDragLeave?: react2.DragEventHandler<HTMLElement>;
|
|
228
|
+
onDragLeaveCapture?: react2.DragEventHandler<HTMLElement>;
|
|
229
|
+
onDragOver?: react2.DragEventHandler<HTMLElement>;
|
|
230
|
+
onDragOverCapture?: react2.DragEventHandler<HTMLElement>;
|
|
231
|
+
onDragStart?: react2.DragEventHandler<HTMLElement>;
|
|
232
|
+
onDragStartCapture?: react2.DragEventHandler<HTMLElement>;
|
|
233
|
+
onDrop?: react2.DragEventHandler<HTMLElement>;
|
|
234
|
+
onDropCapture?: react2.DragEventHandler<HTMLElement>;
|
|
235
|
+
onMouseDown?: react2.MouseEventHandler<HTMLElement>;
|
|
236
|
+
onMouseDownCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
237
|
+
onMouseEnter?: react2.MouseEventHandler<HTMLElement>;
|
|
238
|
+
onMouseLeave?: react2.MouseEventHandler<HTMLElement>;
|
|
239
|
+
onMouseMove?: react2.MouseEventHandler<HTMLElement>;
|
|
240
|
+
onMouseMoveCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
241
|
+
onMouseOut?: react2.MouseEventHandler<HTMLElement>;
|
|
242
|
+
onMouseOutCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
243
|
+
onMouseOver?: react2.MouseEventHandler<HTMLElement>;
|
|
244
|
+
onMouseOverCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
245
|
+
onMouseUp?: react2.MouseEventHandler<HTMLElement>;
|
|
246
|
+
onMouseUpCapture?: react2.MouseEventHandler<HTMLElement>;
|
|
247
|
+
onSelect?: react2.ReactEventHandler<HTMLElement>;
|
|
248
|
+
onSelectCapture?: react2.ReactEventHandler<HTMLElement>;
|
|
249
|
+
onTouchCancel?: react2.TouchEventHandler<HTMLElement>;
|
|
250
|
+
onTouchCancelCapture?: react2.TouchEventHandler<HTMLElement>;
|
|
251
|
+
onTouchEnd?: react2.TouchEventHandler<HTMLElement>;
|
|
252
|
+
onTouchEndCapture?: react2.TouchEventHandler<HTMLElement>;
|
|
253
|
+
onTouchMove?: react2.TouchEventHandler<HTMLElement>;
|
|
254
|
+
onTouchMoveCapture?: react2.TouchEventHandler<HTMLElement>;
|
|
255
|
+
onTouchStart?: react2.TouchEventHandler<HTMLElement>;
|
|
256
|
+
onTouchStartCapture?: react2.TouchEventHandler<HTMLElement>;
|
|
257
|
+
onPointerDown?: react2.PointerEventHandler<HTMLElement>;
|
|
258
|
+
onPointerDownCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
259
|
+
onPointerMove?: react2.PointerEventHandler<HTMLElement>;
|
|
260
|
+
onPointerMoveCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
261
|
+
onPointerUp?: react2.PointerEventHandler<HTMLElement>;
|
|
262
|
+
onPointerUpCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
263
|
+
onPointerCancel?: react2.PointerEventHandler<HTMLElement>;
|
|
264
|
+
onPointerCancelCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
265
|
+
onPointerEnter?: react2.PointerEventHandler<HTMLElement>;
|
|
266
|
+
onPointerLeave?: react2.PointerEventHandler<HTMLElement>;
|
|
267
|
+
onPointerOver?: react2.PointerEventHandler<HTMLElement>;
|
|
268
|
+
onPointerOverCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
269
|
+
onPointerOut?: react2.PointerEventHandler<HTMLElement>;
|
|
270
|
+
onPointerOutCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
271
|
+
onGotPointerCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
272
|
+
onGotPointerCaptureCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
273
|
+
onLostPointerCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
274
|
+
onLostPointerCaptureCapture?: react2.PointerEventHandler<HTMLElement>;
|
|
275
|
+
onScroll?: react2.UIEventHandler<HTMLElement>;
|
|
276
|
+
onScrollCapture?: react2.UIEventHandler<HTMLElement>;
|
|
277
|
+
onScrollEnd?: react2.UIEventHandler<HTMLElement>;
|
|
278
|
+
onScrollEndCapture?: react2.UIEventHandler<HTMLElement>;
|
|
279
|
+
onWheel?: react2.WheelEventHandler<HTMLElement>;
|
|
280
|
+
onWheelCapture?: react2.WheelEventHandler<HTMLElement>;
|
|
281
|
+
onAnimationStart?: react2.AnimationEventHandler<HTMLElement>;
|
|
282
|
+
onAnimationStartCapture?: react2.AnimationEventHandler<HTMLElement>;
|
|
283
|
+
onAnimationEnd?: react2.AnimationEventHandler<HTMLElement>;
|
|
284
|
+
onAnimationEndCapture?: react2.AnimationEventHandler<HTMLElement>;
|
|
285
|
+
onAnimationIteration?: react2.AnimationEventHandler<HTMLElement>;
|
|
286
|
+
onAnimationIterationCapture?: react2.AnimationEventHandler<HTMLElement>;
|
|
287
|
+
onToggle?: react2.ToggleEventHandler<HTMLElement>;
|
|
288
|
+
onBeforeToggle?: react2.ToggleEventHandler<HTMLElement>;
|
|
289
|
+
onTransitionCancel?: react2.TransitionEventHandler<HTMLElement>;
|
|
290
|
+
onTransitionCancelCapture?: react2.TransitionEventHandler<HTMLElement>;
|
|
291
|
+
onTransitionEnd?: react2.TransitionEventHandler<HTMLElement>;
|
|
292
|
+
onTransitionEndCapture?: react2.TransitionEventHandler<HTMLElement>;
|
|
293
|
+
onTransitionRun?: react2.TransitionEventHandler<HTMLElement>;
|
|
294
|
+
onTransitionRunCapture?: react2.TransitionEventHandler<HTMLElement>;
|
|
295
|
+
onTransitionStart?: react2.TransitionEventHandler<HTMLElement>;
|
|
296
|
+
onTransitionStartCapture?: react2.TransitionEventHandler<HTMLElement>;
|
|
297
297
|
className: string;
|
|
298
|
-
style:
|
|
298
|
+
style: react2.CSSProperties;
|
|
299
299
|
id: string;
|
|
300
300
|
'data-testid': string;
|
|
301
301
|
}, HTMLElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
2
2
|
import { Config } from "tailwindcss";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DesignTokens/DesignTokensComponent.d.ts
|
|
@@ -9,6 +9,6 @@ type DesignTokensProps = {
|
|
|
9
9
|
declare const DesignTokens: ({
|
|
10
10
|
selectedMerchant,
|
|
11
11
|
config
|
|
12
|
-
}: DesignTokensProps) =>
|
|
12
|
+
}: DesignTokensProps) => react_jsx_runtime30.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
2
|
import { Config } from "tailwindcss";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DesignTokens/DesignTokensComponent.d.ts
|
|
@@ -9,6 +9,6 @@ type DesignTokensProps = {
|
|
|
9
9
|
declare const DesignTokens: ({
|
|
10
10
|
selectedMerchant,
|
|
11
11
|
config
|
|
12
|
-
}: DesignTokensProps) =>
|
|
12
|
+
}: DesignTokensProps) => react_jsx_runtime20.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
|
|
5
5
|
declare const DocumentRetrievalCard: ({
|
|
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
|
|
|
16
16
|
onViewArticle,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
viewArticleLabel
|
|
19
|
-
}: DocumentRetrievalCardProps) =>
|
|
19
|
+
}: DocumentRetrievalCardProps) => react_jsx_runtime16.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DocumentRetrievalCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
|
|
5
5
|
declare const DocumentRetrievalCard: ({
|
|
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
|
|
|
16
16
|
onViewArticle,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
viewArticleLabel
|
|
19
|
-
}: DocumentRetrievalCardProps) =>
|
|
19
|
+
}: DocumentRetrievalCardProps) => react_jsx_runtime28.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DocumentRetrievalCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -18,6 +18,6 @@ declare const FloatingButton: ({
|
|
|
18
18
|
onMouseOver,
|
|
19
19
|
ariaLabel,
|
|
20
20
|
previewMode
|
|
21
|
-
}: FloatingButtonProps) =>
|
|
21
|
+
}: FloatingButtonProps) => react_jsx_runtime31.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { FloatingButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -18,6 +18,6 @@ declare const FloatingButton: ({
|
|
|
18
18
|
onMouseOver,
|
|
19
19
|
ariaLabel,
|
|
20
20
|
previewMode
|
|
21
|
-
}: FloatingButtonProps) =>
|
|
21
|
+
}: FloatingButtonProps) => react_jsx_runtime30.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { FloatingButton };
|
|
@@ -21,7 +21,7 @@ const require_useScrollToBottom = require('./hooks/useScrollToBottom.cjs');
|
|
|
21
21
|
const require_useSnapSetup = require('./hooks/useSnapSetup.cjs');
|
|
22
22
|
const require_useFilteredChatMessages = require('./hooks/useFilteredChatMessages.cjs');
|
|
23
23
|
const require_useSnapCalculator = require('./hooks/useSnapCalculator.cjs');
|
|
24
|
-
const
|
|
24
|
+
const require_trackProductCardInteraction = require('./utils/trackProductCardInteraction.cjs');
|
|
25
25
|
const require_ModalSheet = require('./components/ModalSheet.cjs');
|
|
26
26
|
const require_index$1 = require('./components/index.cjs');
|
|
27
27
|
let react = require("react");
|
|
@@ -33,7 +33,7 @@ let framer_motion = require("framer-motion");
|
|
|
33
33
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
34
34
|
|
|
35
35
|
//#region src/components/FloatingChat/FloatingChat.tsx
|
|
36
|
-
const FloatingChat = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, debugBar, onClose, onSwipeClose, onToggleCXButton }) => {
|
|
36
|
+
const FloatingChat = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, debugBar, onClose, onSwipeClose, onToggleCXButton, setIsResultsModalOpen }) => {
|
|
37
37
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
38
38
|
const { trackWidgetInteraction } = (0, __envive_ai_react_hooks_hooks_WidgetInteraction.useWidgetInteraction)();
|
|
39
39
|
const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = require_usePromptCarouselAnalytics.usePromptCarouselAnalytics(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FLOATING_CHAT, (text) => text);
|
|
@@ -76,7 +76,15 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
76
76
|
footerHeight: 160,
|
|
77
77
|
isOpen: isFloatingChatOpen
|
|
78
78
|
});
|
|
79
|
-
const { resultsViewData,
|
|
79
|
+
const { resultsViewData, isResultsView, scrollContainerRef, isResultsViewRef, handleBackToChat, handleExploreAllResults } = require_useProductResultsView.useProductResultsView({ scrollToBottom });
|
|
80
|
+
(0, react.useEffect)(() => {
|
|
81
|
+
setIsResultsModalOpen?.(!isMobile && isResultsView && resultsViewData !== null);
|
|
82
|
+
}, [
|
|
83
|
+
isMobile,
|
|
84
|
+
isResultsView,
|
|
85
|
+
resultsViewData,
|
|
86
|
+
setIsResultsModalOpen
|
|
87
|
+
]);
|
|
80
88
|
(0, react.useEffect)(() => {
|
|
81
89
|
if (isFloatingChatOpen) trackWidgetInteraction({
|
|
82
90
|
eventName: __envive_ai_react_hooks_contexts_amplitudeContext.EnviveMetricsEventName.WidgetInteraction,
|
|
@@ -112,14 +120,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
112
120
|
modalSheetControl
|
|
113
121
|
});
|
|
114
122
|
const handleProductCardClick = (product) => {
|
|
115
|
-
trackWidgetInteraction
|
|
116
|
-
eventName: __envive_ai_react_hooks_contexts_amplitudeContext.EnviveMetricsEventName.WidgetInteraction,
|
|
117
|
-
trigger: {
|
|
118
|
-
widget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FLOATING_CHAT,
|
|
119
|
-
widget_interaction: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionType.PRODUCT_CARD_CLICKED,
|
|
120
|
-
widget_interaction_data: { product_card_clicked: { product_id: product.id } }
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
+
require_trackProductCardInteraction.trackProductCardClicked(trackWidgetInteraction, __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FLOATING_CHAT, product);
|
|
123
124
|
};
|
|
124
125
|
const header = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ChatHeader.ChatHeader, {
|
|
125
126
|
logoDark: chatHeaderLogoDarkSrc,
|
|
@@ -206,16 +207,6 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
206
207
|
text: welcomeMessageText,
|
|
207
208
|
theme: finalTheme
|
|
208
209
|
});
|
|
209
|
-
const handleExploreAllResults = (firstProductMessageId) => {
|
|
210
|
-
const blockIndex = messages.findIndex((block) => block.some((msg) => msg.type === __envive_ai_react_hooks_application_models.MessageType.Product && msg.id === firstProductMessageId));
|
|
211
|
-
if (blockIndex < 0) return;
|
|
212
|
-
const products = require_functions.getCleanProducts(messages[blockIndex].filter((msg) => msg.type === __envive_ai_react_hooks_application_models.MessageType.Product));
|
|
213
|
-
if (products.length === 0) return;
|
|
214
|
-
setResultsViewData({
|
|
215
|
-
products,
|
|
216
|
-
searchQuery: require_functions.getSearchQueryFromMessageBlock(messages, blockIndex)
|
|
217
|
-
});
|
|
218
|
-
};
|
|
219
210
|
const chatMessages = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FloatingChatComponents.ChatMessages, {
|
|
220
211
|
theme: finalTheme,
|
|
221
212
|
ref: chatMessagesRef,
|
|
@@ -230,7 +221,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
230
221
|
showVerifiedBuyer,
|
|
231
222
|
onFormResponseSubmitted,
|
|
232
223
|
parentWidget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FLOATING_CHAT,
|
|
233
|
-
onExploreAllResults: handleExploreAllResults
|
|
224
|
+
onExploreAllResults: (firstProductMessageId) => handleExploreAllResults(firstProductMessageId, filteredMessages)
|
|
234
225
|
});
|
|
235
226
|
const middleContent = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FloatingChatComponents.SlideChatContent, {
|
|
236
227
|
isResultsView,
|
|
@@ -293,6 +284,18 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
293
284
|
isFloatingFooterLayout: isFloatingLayout,
|
|
294
285
|
scrollContainerRef
|
|
295
286
|
});
|
|
287
|
+
if (!isMobile && isResultsView && resultsViewData) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FloatingChatComponents.ProductResultsModal, {
|
|
288
|
+
theme: finalTheme,
|
|
289
|
+
resultsViewData,
|
|
290
|
+
onBackToChat: handleBackToChat,
|
|
291
|
+
onProductCardClick: handleProductCardClick,
|
|
292
|
+
onClose,
|
|
293
|
+
logoDark: chatHeaderLogoDarkSrc,
|
|
294
|
+
logoLight: chatHeaderLogoLightSrc,
|
|
295
|
+
headerBgColor: headerBackgroundColor,
|
|
296
|
+
headerMode,
|
|
297
|
+
footer
|
|
298
|
+
});
|
|
296
299
|
return isMobile ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ModalSheet.ModalSheet, {
|
|
297
300
|
animationKey,
|
|
298
301
|
open: isOpen,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -17,7 +17,8 @@ declare const FloatingChat: ({
|
|
|
17
17
|
debugBar,
|
|
18
18
|
onClose,
|
|
19
19
|
onSwipeClose,
|
|
20
|
-
onToggleCXButton
|
|
21
|
-
|
|
20
|
+
onToggleCXButton,
|
|
21
|
+
setIsResultsModalOpen
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime25.JSX.Element;
|
|
22
23
|
//#endregion
|
|
23
24
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -17,7 +17,8 @@ declare const FloatingChat: ({
|
|
|
17
17
|
debugBar,
|
|
18
18
|
onClose,
|
|
19
19
|
onSwipeClose,
|
|
20
|
-
onToggleCXButton
|
|
21
|
-
|
|
20
|
+
onToggleCXButton,
|
|
21
|
+
setIsResultsModalOpen
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime26.JSX.Element;
|
|
22
23
|
//#endregion
|
|
23
24
|
export { FloatingChat };
|