@envive-ai/react-toolkit-v3 0.3.27 → 0.3.28
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/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/Carousel/Carousel.cjs +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/Carousel.js +1 -1
- package/dist/Carousel/components/Container.cjs +2 -2
- package/dist/Carousel/components/Container.js +2 -2
- package/dist/ChatFooter/ChatFooter.cjs +2 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +2 -1
- package/dist/ChatFooter/components/Layout.cjs +2 -2
- package/dist/ChatFooter/components/Layout.js +2 -2
- package/dist/ChatFooter/components/index.d.cts +6 -5
- package/dist/ChatFooter/components/index.d.ts +4 -3
- package/dist/ChatFooter/types/types.d.cts +3 -2
- package/dist/ChatFooter/types/types.d.ts +3 -2
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/components/Handle.cjs +2 -2
- package/dist/ChatHeader/components/Handle.js +2 -2
- package/dist/ChatHeader/components/Toggle.cjs +3 -3
- package/dist/ChatHeader/components/Toggle.js +3 -3
- package/dist/ChatPreview/ChatPreview.cjs +1 -1
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
- package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Headline.js +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
- package/dist/ChatPreviewComparison/components/Layout.js +4 -4
- package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Message.js +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +219 -219
- package/dist/Container/Container.d.ts +57 -57
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/Disclaimer/components/Container.cjs +2 -2
- package/dist/Disclaimer/components/Container.js +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +3 -3
- package/dist/FloatingChat/components/Layout.js +3 -3
- package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
- package/dist/FloatingChat/components/ResultsGridView.js +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +43 -8
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +43 -8
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +10 -3
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +10 -3
- package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.cjs +1 -0
- package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.js +1 -0
- 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 +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/components/LinkButton.cjs +2 -2
- package/dist/Message/components/LinkButton.js +2 -2
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +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/PromptButtonsCarousel.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +3 -3
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +2 -2
- package/dist/ReviewCard/components/Container.js +2 -2
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
- 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/Container.cjs +2 -2
- package/dist/SalesAgentProductCard/components/Container.js +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +6 -6
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +1 -1
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +1 -1
- package/dist/SocialProof/components/Headline.cjs +3 -3
- package/dist/SocialProof/components/Headline.js +3 -3
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/SocialProof/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.js +1 -1
- 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/TextField/TextField.cjs +7 -3
- package/dist/TextField/TextField.d.cts +1 -0
- package/dist/TextField/TextField.d.ts +1 -0
- package/dist/TextField/TextField.js +7 -3
- package/dist/TextField/components/Input.cjs +31 -2
- package/dist/TextField/components/Input.js +31 -2
- package/dist/TextField/components/Layout.cjs +7 -2
- package/dist/TextField/components/Layout.js +7 -2
- package/dist/TextField/hooks/useAutoResize.cjs +17 -0
- package/dist/TextField/hooks/useAutoResize.js +16 -0
- package/dist/TextField/hooks/usePlaceholderAnimation.cjs +58 -0
- package/dist/TextField/hooks/usePlaceholderAnimation.js +57 -0
- package/dist/TextField/types/index.d.cts +7 -1
- package/dist/TextField/types/index.d.ts +7 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
- package/dist/Tokens/index.cjs +1 -1
- package/dist/Tokens/index.js +1 -1
- package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +2 -2
- package/dist/WelcomeMessage/components/Container.js +2 -2
- package/dist/WidgetTextField/WidgetTextField.cjs +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetTextField/components/Container.cjs +2 -2
- package/dist/WidgetTextField/components/Container.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +1 -1
- package/dist/WidgetTextField/components/Icon.js +1 -1
- 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/package.json +1 -1
- package/src/components/ChatFooter/ChatFooter.tsx +1 -0
- package/src/components/ChatFooter/components/TextField.tsx +4 -1
- package/src/components/ChatFooter/types/types.ts +3 -2
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +75 -7
- package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +22 -0
- package/src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts +1 -0
- package/src/components/TextField/TextField.tsx +7 -1
- package/src/components/TextField/components/Input.tsx +43 -9
- package/src/components/TextField/components/Layout.tsx +7 -1
- package/src/components/TextField/hooks/useAutoResize.ts +14 -0
- package/src/components/TextField/hooks/usePlaceholderAnimation.ts +67 -0
- package/src/components/TextField/hooks/useTextFieldSubmit.ts +1 -1
- package/src/components/TextField/types/index.ts +7 -1
|
@@ -18,63 +18,20 @@ declare const Container: ({
|
|
|
18
18
|
centerContent,
|
|
19
19
|
...props
|
|
20
20
|
}: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react10.DetailedReactHTMLElement<{
|
|
21
|
-
color?: string | undefined;
|
|
22
|
-
slot?: string | undefined;
|
|
23
|
-
title?: string | undefined;
|
|
24
|
-
"aria-label"?: string | undefined;
|
|
25
21
|
onClick?: react10.MouseEventHandler<HTMLElement>;
|
|
26
|
-
onChange?: react10.FormEventHandler<HTMLElement>;
|
|
27
|
-
onSubmit?: react10.FormEventHandler<HTMLElement>;
|
|
28
22
|
onFocus?: react10.FocusEventHandler<HTMLElement>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
onMouseDown?: react10.MouseEventHandler<HTMLElement>;
|
|
24
|
+
onMouseUp?: react10.MouseEventHandler<HTMLElement>;
|
|
25
|
+
onTouchStart?: react10.TouchEventHandler<HTMLElement>;
|
|
26
|
+
onTouchEnd?: react10.TouchEventHandler<HTMLElement>;
|
|
27
|
+
onToggle?: react10.ToggleEventHandler<HTMLElement>;
|
|
28
|
+
slot?: string | undefined;
|
|
29
|
+
title?: string | undefined;
|
|
32
30
|
suppressHydrationWarning?: boolean | undefined;
|
|
33
|
-
|
|
34
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
35
|
-
autoFocus?: boolean | undefined;
|
|
36
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
37
|
-
contextMenu?: string | undefined;
|
|
38
|
-
dir?: string | undefined;
|
|
39
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
40
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
41
|
-
hidden?: boolean | undefined;
|
|
31
|
+
color?: string | undefined;
|
|
42
32
|
lang?: string | undefined;
|
|
43
|
-
nonce?: string | undefined;
|
|
44
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
45
|
-
tabIndex?: number | undefined;
|
|
46
|
-
translate?: "yes" | "no" | undefined;
|
|
47
|
-
radioGroup?: string | undefined;
|
|
48
33
|
role?: react10.AriaRole | undefined;
|
|
49
|
-
|
|
50
|
-
content?: string | undefined;
|
|
51
|
-
datatype?: string | undefined;
|
|
52
|
-
inlist?: any;
|
|
53
|
-
prefix?: string | undefined;
|
|
54
|
-
property?: string | undefined;
|
|
55
|
-
rel?: string | undefined;
|
|
56
|
-
resource?: string | undefined;
|
|
57
|
-
rev?: string | undefined;
|
|
58
|
-
typeof?: string | undefined;
|
|
59
|
-
vocab?: string | undefined;
|
|
60
|
-
autoCorrect?: string | undefined;
|
|
61
|
-
autoSave?: string | undefined;
|
|
62
|
-
itemProp?: string | undefined;
|
|
63
|
-
itemScope?: boolean | undefined;
|
|
64
|
-
itemType?: string | undefined;
|
|
65
|
-
itemID?: string | undefined;
|
|
66
|
-
itemRef?: string | undefined;
|
|
67
|
-
results?: number | undefined;
|
|
68
|
-
security?: string | undefined;
|
|
69
|
-
unselectable?: "on" | "off" | undefined;
|
|
70
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
71
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
72
|
-
popoverTarget?: string | undefined;
|
|
73
|
-
inert?: boolean | undefined;
|
|
74
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
75
|
-
is?: string | undefined;
|
|
76
|
-
exportparts?: string | undefined;
|
|
77
|
-
part?: string | undefined;
|
|
34
|
+
tabIndex?: number | undefined;
|
|
78
35
|
"aria-activedescendant"?: string | undefined;
|
|
79
36
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
80
37
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -101,6 +58,7 @@ declare const Container: ({
|
|
|
101
58
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
102
59
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
103
60
|
"aria-keyshortcuts"?: string | undefined;
|
|
61
|
+
"aria-label"?: string | undefined;
|
|
104
62
|
"aria-labelledby"?: string | undefined;
|
|
105
63
|
"aria-level"?: number | undefined;
|
|
106
64
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
@@ -145,6 +103,7 @@ declare const Container: ({
|
|
|
145
103
|
onFocusCapture?: react10.FocusEventHandler<HTMLElement>;
|
|
146
104
|
onBlur?: react10.FocusEventHandler<HTMLElement>;
|
|
147
105
|
onBlurCapture?: react10.FocusEventHandler<HTMLElement>;
|
|
106
|
+
onChange?: react10.FormEventHandler<HTMLElement>;
|
|
148
107
|
onChangeCapture?: react10.FormEventHandler<HTMLElement>;
|
|
149
108
|
onBeforeInput?: react10.InputEventHandler<HTMLElement>;
|
|
150
109
|
onBeforeInputCapture?: react10.FormEventHandler<HTMLElement>;
|
|
@@ -152,6 +111,7 @@ declare const Container: ({
|
|
|
152
111
|
onInputCapture?: react10.FormEventHandler<HTMLElement>;
|
|
153
112
|
onReset?: react10.FormEventHandler<HTMLElement>;
|
|
154
113
|
onResetCapture?: react10.FormEventHandler<HTMLElement>;
|
|
114
|
+
onSubmit?: react10.FormEventHandler<HTMLElement>;
|
|
155
115
|
onSubmitCapture?: react10.FormEventHandler<HTMLElement>;
|
|
156
116
|
onInvalid?: react10.FormEventHandler<HTMLElement>;
|
|
157
117
|
onInvalidCapture?: react10.FormEventHandler<HTMLElement>;
|
|
@@ -232,7 +192,6 @@ declare const Container: ({
|
|
|
232
192
|
onDragStartCapture?: react10.DragEventHandler<HTMLElement>;
|
|
233
193
|
onDrop?: react10.DragEventHandler<HTMLElement>;
|
|
234
194
|
onDropCapture?: react10.DragEventHandler<HTMLElement>;
|
|
235
|
-
onMouseDown?: react10.MouseEventHandler<HTMLElement>;
|
|
236
195
|
onMouseDownCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
237
196
|
onMouseEnter?: react10.MouseEventHandler<HTMLElement>;
|
|
238
197
|
onMouseLeave?: react10.MouseEventHandler<HTMLElement>;
|
|
@@ -242,17 +201,14 @@ declare const Container: ({
|
|
|
242
201
|
onMouseOutCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
243
202
|
onMouseOver?: react10.MouseEventHandler<HTMLElement>;
|
|
244
203
|
onMouseOverCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
245
|
-
onMouseUp?: react10.MouseEventHandler<HTMLElement>;
|
|
246
204
|
onMouseUpCapture?: react10.MouseEventHandler<HTMLElement>;
|
|
247
205
|
onSelect?: react10.ReactEventHandler<HTMLElement>;
|
|
248
206
|
onSelectCapture?: react10.ReactEventHandler<HTMLElement>;
|
|
249
207
|
onTouchCancel?: react10.TouchEventHandler<HTMLElement>;
|
|
250
208
|
onTouchCancelCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
251
|
-
onTouchEnd?: react10.TouchEventHandler<HTMLElement>;
|
|
252
209
|
onTouchEndCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
253
210
|
onTouchMove?: react10.TouchEventHandler<HTMLElement>;
|
|
254
211
|
onTouchMoveCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
255
|
-
onTouchStart?: react10.TouchEventHandler<HTMLElement>;
|
|
256
212
|
onTouchStartCapture?: react10.TouchEventHandler<HTMLElement>;
|
|
257
213
|
onPointerDown?: react10.PointerEventHandler<HTMLElement>;
|
|
258
214
|
onPointerDownCapture?: react10.PointerEventHandler<HTMLElement>;
|
|
@@ -284,7 +240,6 @@ declare const Container: ({
|
|
|
284
240
|
onAnimationEndCapture?: react10.AnimationEventHandler<HTMLElement>;
|
|
285
241
|
onAnimationIteration?: react10.AnimationEventHandler<HTMLElement>;
|
|
286
242
|
onAnimationIterationCapture?: react10.AnimationEventHandler<HTMLElement>;
|
|
287
|
-
onToggle?: react10.ToggleEventHandler<HTMLElement>;
|
|
288
243
|
onBeforeToggle?: react10.ToggleEventHandler<HTMLElement>;
|
|
289
244
|
onTransitionCancel?: react10.TransitionEventHandler<HTMLElement>;
|
|
290
245
|
onTransitionCancelCapture?: react10.TransitionEventHandler<HTMLElement>;
|
|
@@ -294,6 +249,51 @@ declare const Container: ({
|
|
|
294
249
|
onTransitionRunCapture?: react10.TransitionEventHandler<HTMLElement>;
|
|
295
250
|
onTransitionStart?: react10.TransitionEventHandler<HTMLElement>;
|
|
296
251
|
onTransitionStartCapture?: react10.TransitionEventHandler<HTMLElement>;
|
|
252
|
+
defaultChecked?: boolean | undefined;
|
|
253
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
254
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
255
|
+
accessKey?: string | undefined;
|
|
256
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
257
|
+
autoFocus?: boolean | undefined;
|
|
258
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
259
|
+
contextMenu?: string | undefined;
|
|
260
|
+
dir?: string | undefined;
|
|
261
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
262
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
263
|
+
hidden?: boolean | undefined;
|
|
264
|
+
nonce?: string | undefined;
|
|
265
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
266
|
+
translate?: "yes" | "no" | undefined;
|
|
267
|
+
radioGroup?: string | undefined;
|
|
268
|
+
about?: string | undefined;
|
|
269
|
+
content?: string | undefined;
|
|
270
|
+
datatype?: string | undefined;
|
|
271
|
+
inlist?: any;
|
|
272
|
+
prefix?: string | undefined;
|
|
273
|
+
property?: string | undefined;
|
|
274
|
+
rel?: string | undefined;
|
|
275
|
+
resource?: string | undefined;
|
|
276
|
+
rev?: string | undefined;
|
|
277
|
+
typeof?: string | undefined;
|
|
278
|
+
vocab?: string | undefined;
|
|
279
|
+
autoCorrect?: string | undefined;
|
|
280
|
+
autoSave?: string | undefined;
|
|
281
|
+
itemProp?: string | undefined;
|
|
282
|
+
itemScope?: boolean | undefined;
|
|
283
|
+
itemType?: string | undefined;
|
|
284
|
+
itemID?: string | undefined;
|
|
285
|
+
itemRef?: string | undefined;
|
|
286
|
+
results?: number | undefined;
|
|
287
|
+
security?: string | undefined;
|
|
288
|
+
unselectable?: "on" | "off" | undefined;
|
|
289
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
290
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
291
|
+
popoverTarget?: string | undefined;
|
|
292
|
+
inert?: boolean | undefined;
|
|
293
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
294
|
+
is?: string | undefined;
|
|
295
|
+
exportparts?: string | undefined;
|
|
296
|
+
part?: string | undefined;
|
|
297
297
|
className: string;
|
|
298
298
|
style: react10.CSSProperties;
|
|
299
299
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 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_runtime26.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 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_runtime26.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DesignTokens, DesignTokensProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
|
-
require('../../Stack/index.cjs');
|
|
4
2
|
const require_Container = require('../../Container/Container.cjs');
|
|
5
3
|
require('../../Container/index.cjs');
|
|
4
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
|
+
require('../../Stack/index.cjs');
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let classnames = require("classnames");
|
|
8
8
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
-
import "../../Stack/index.js";
|
|
3
1
|
import { Container } from "../../Container/Container.js";
|
|
4
2
|
import "../../Container/index.js";
|
|
3
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
4
|
+
import "../../Stack/index.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 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_runtime24.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,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
|
-
require('../../Stack/index.cjs');
|
|
4
2
|
const require_Container = require('../../Container/Container.cjs');
|
|
5
3
|
require('../../Container/index.cjs');
|
|
4
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
|
+
require('../../Stack/index.cjs');
|
|
6
6
|
const require_useGetThemeProperties = require('../hooks/useGetThemeProperties.cjs');
|
|
7
7
|
const require_useGetStackLayoutProperties = require('../hooks/useGetStackLayoutProperties.cjs');
|
|
8
8
|
const require_useGetCardWidthProperties = require('../hooks/useGetCardWidthProperties.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
-
import "../../Stack/index.js";
|
|
3
1
|
import { Container } from "../../Container/Container.js";
|
|
4
2
|
import "../../Container/index.js";
|
|
3
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
4
|
+
import "../../Stack/index.js";
|
|
5
5
|
import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
|
|
6
6
|
import { useGetStackLayoutProperties } from "../hooks/useGetStackLayoutProperties.js";
|
|
7
7
|
import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
|
|
2
3
|
const require_Stack = require('../../../../Stack/Stack.cjs');
|
|
3
4
|
require('../../../../Stack/index.cjs');
|
|
4
|
-
const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let classnames = require("classnames");
|
|
7
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CustomIcon } from "../../../../utils/CustomIcon.js";
|
|
1
2
|
import { Stack } from "../../../../Stack/Stack.js";
|
|
2
3
|
import "../../../../Stack/index.js";
|
|
3
|
-
import { CustomIcon } from "../../../../utils/CustomIcon.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import Document from "@envive-ai/react-icons/Document";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_openUrlInNewTab = require('../../Message/utils/openUrlInNewTab.cjs');
|
|
2
3
|
const require_useGetThemeProperties = require('../hooks/useGetThemeProperties.cjs');
|
|
3
4
|
const require_index = require('./ViewArticleButton/components/index.cjs');
|
|
4
|
-
const require_openUrlInNewTab = require('../../Message/utils/openUrlInNewTab.cjs');
|
|
5
5
|
const require_functions = require('../utils/functions.cjs');
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { openUrlInNewTab } from "../../Message/utils/openUrlInNewTab.js";
|
|
1
2
|
import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
|
|
2
3
|
import { ViewArticleButtonComponents } from "./ViewArticleButton/components/index.js";
|
|
3
|
-
import { openUrlInNewTab } from "../../Message/utils/openUrlInNewTab.js";
|
|
4
4
|
import { shouldShowIcon, shouldUnderlineLabel } from "../utils/functions.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 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_runtime21.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_runtime23 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_runtime23.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { FloatingButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime8.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime24.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
3
4
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
5
|
require('../../Stack/index.cjs');
|
|
5
6
|
const require_index = require('../../Typography/types/index.cjs');
|
|
6
7
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
7
8
|
require('../../Typography/index.cjs');
|
|
8
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_functions = require('../utils/functions.cjs');
|
|
10
10
|
const require_index$1 = require('../../Message/types/index.cjs');
|
|
11
11
|
const require_Message = require('../../Message/Message.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
3
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
4
|
import "../../Stack/index.js";
|
|
4
5
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
5
6
|
import { Typography } from "../../Typography/Typography.js";
|
|
6
7
|
import "../../Typography/index.js";
|
|
7
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { checkIfHideAgentName, getGroupableMessages } from "../utils/functions.js";
|
|
9
9
|
import { MessageVariant } from "../../Message/types/index.js";
|
|
10
10
|
import { Message } from "../../Message/Message.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const
|
|
4
|
-
require('../../Stack/index.cjs');
|
|
3
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
5
4
|
const require_Container = require('../../Container/Container.cjs');
|
|
6
5
|
require('../../Container/index.cjs');
|
|
7
|
-
const
|
|
6
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
7
|
+
require('../../Stack/index.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let classnames = require("classnames");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import {
|
|
3
|
-
import "../../Stack/index.js";
|
|
2
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
4
3
|
import { Container } from "../../Container/Container.js";
|
|
5
4
|
import "../../Container/index.js";
|
|
6
|
-
import {
|
|
5
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
6
|
+
import "../../Stack/index.js";
|
|
7
7
|
import { isValidElement } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import classNames from "classnames";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
2
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
4
|
require('../../Stack/index.cjs');
|
|
4
5
|
const require_index = require('../../Typography/types/index.cjs');
|
|
5
6
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
6
7
|
require('../../Typography/index.cjs');
|
|
7
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
8
8
|
const require_types = require('../../SalesAgentProductCard/types/types.cjs');
|
|
9
9
|
const require_SalesAgentProductCard = require('../../SalesAgentProductCard/SalesAgentProductCard.cjs');
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
1
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
3
|
import "../../Stack/index.js";
|
|
3
4
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
4
5
|
import { Typography } from "../../Typography/Typography.js";
|
|
5
6
|
import "../../Typography/index.js";
|
|
6
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
7
7
|
import { SalesAgentProductCardVariant } from "../../SalesAgentProductCard/types/types.js";
|
|
8
8
|
import { SalesAgentProductCard } from "../../SalesAgentProductCard/SalesAgentProductCard.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
|
-
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
4
3
|
const require_index = require('../../Typography/types/index.cjs');
|
|
5
4
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
6
5
|
require('../../Typography/index.cjs');
|
|
6
|
+
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
7
7
|
const require_functions = require('../utils/functions.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_rolldown_runtime.__toESM(react);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
-
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
3
2
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
4
3
|
import { Typography } from "../../Typography/Typography.js";
|
|
5
4
|
import "../../Typography/index.js";
|
|
5
|
+
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
6
6
|
import { MOST_RELEVANT_DISPLAY_LIMIT } from "../utils/functions.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
3
|
require('../Tokens/index.cjs');
|
|
4
|
+
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
5
|
const require_react = require('../node_modules/jotai/esm/react.cjs');
|
|
6
6
|
const require_usePromptCarouselAnalytics = require('../PromptCarousel/hooks/usePromptCarouselAnalytics.cjs');
|
|
7
7
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
@@ -44,6 +44,15 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
44
44
|
const { isMobile } = require_useIsMobile.useIsMobile();
|
|
45
45
|
const { trackWidgetInteraction } = (0, __envive_ai_react_hooks_hooks_WidgetInteraction.useWidgetInteraction)();
|
|
46
46
|
const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = require_usePromptCarouselAnalytics.usePromptCarouselAnalytics(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, (text) => text);
|
|
47
|
+
const getOverlaySuggestionId = (0, react.useCallback)((text) => {
|
|
48
|
+
const rawValues = hardcopyContent?.rawValues;
|
|
49
|
+
if (rawValues) for (const raw of Object.values(rawValues)) {
|
|
50
|
+
const found = (Array.isArray(raw) ? raw : [raw]).find((s) => s.value === text);
|
|
51
|
+
if (found) return found.id;
|
|
52
|
+
}
|
|
53
|
+
return text;
|
|
54
|
+
}, [hardcopyContent?.rawValues]);
|
|
55
|
+
const { onDrag: onOverlayDrag, onHover: onOverlayHover, onMouseDown: onOverlayMouseDown, onMouseUp: onOverlayMouseUp, onTouchStart: onOverlayTouchStart, onTouchEnd: onOverlayTouchEnd } = require_usePromptCarouselAnalytics.usePromptCarouselAnalytics(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, getOverlaySuggestionId);
|
|
47
56
|
const setListeningToSpeech = require_react.useSetAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
|
|
48
57
|
const { ignoreFirstModelResponse, neverShowSingleProductCards, showVerifiedBuyer, showEnviveLogo } = floatingChatConfig;
|
|
49
58
|
const { headerContainer, autoHeight, sparkleColor = "var(--envive-colors-accent-primary)", suggestionButtonType = require_PromptButton_types_index.PromptButtonVariant.LIGHT, useBackgroundImage, mobileBackgroundImage, desktopBackgroundImage, backgroundColor } = widgetConfig;
|
|
@@ -66,8 +75,9 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
66
75
|
isMobile
|
|
67
76
|
]);
|
|
68
77
|
const { agentName } = lookAndFeelConfig;
|
|
69
|
-
const { chatFooterTextFieldPlaceholderText, disclaimerText, welcomeOverlayTitle, welcomeOverlayPromptSuggestions, welcomeOverlayProductCarouselTitle, welcomeOverlayProductIds } = hardcopyContent?.values ?? {};
|
|
70
|
-
const
|
|
78
|
+
const { chatFooterTextFieldPlaceholderText, disclaimerText, welcomeOverlayTitle, welcomeOverlayAnimatedPlaceholder, welcomeOverlayPromptSuggestions, welcomeOverlayProductCarouselTitle, welcomeOverlayProductIds } = hardcopyContent?.values ?? {};
|
|
79
|
+
const overlayTitle = Array.isArray(welcomeOverlayTitle) && welcomeOverlayTitle.length > 0 ? welcomeOverlayTitle[0] : welcomeOverlayTitle;
|
|
80
|
+
const overlayEnabled = typeof overlayTitle === "string" && !!welcomeOverlayTitle;
|
|
71
81
|
const [showOverlay, setShowOverlay] = (0, react.useState)(overlayEnabled);
|
|
72
82
|
const { footerStyles, footerClasses } = require_useGetFooterStyles.useGetFooterStyles({ showOverlay });
|
|
73
83
|
const overlayPromptSuggestions = Array.isArray(welcomeOverlayPromptSuggestions) ? welcomeOverlayPromptSuggestions : [];
|
|
@@ -133,9 +143,24 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
133
143
|
});
|
|
134
144
|
}, [trackWidgetInteraction]);
|
|
135
145
|
const handleOverlayDismiss = (0, react.useCallback)(() => {
|
|
146
|
+
trackWidgetInteraction({
|
|
147
|
+
eventName: __envive_ai_react_hooks_contexts_amplitudeContext.EnviveMetricsEventName.WidgetInteraction,
|
|
148
|
+
trigger: {
|
|
149
|
+
widget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT,
|
|
150
|
+
widget_interaction: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionType.OVERLAY_DISMISSED
|
|
151
|
+
}
|
|
152
|
+
});
|
|
136
153
|
setShowOverlay(false);
|
|
137
|
-
}, []);
|
|
154
|
+
}, [trackWidgetInteraction]);
|
|
138
155
|
const handleOverlaySuggestionClick = (0, react.useCallback)((buttonText) => {
|
|
156
|
+
trackWidgetInteraction({
|
|
157
|
+
eventName: __envive_ai_react_hooks_contexts_amplitudeContext.EnviveMetricsEventName.WidgetInteraction,
|
|
158
|
+
trigger: {
|
|
159
|
+
widget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT,
|
|
160
|
+
widget_interaction: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionType.SUGGESTION_CLICKED,
|
|
161
|
+
widget_interaction_data: { suggestion_clicked: { suggestion_id: getOverlaySuggestionId(buttonText) } }
|
|
162
|
+
}
|
|
163
|
+
});
|
|
139
164
|
onTypedMessageSubmitted({
|
|
140
165
|
query: buttonText,
|
|
141
166
|
userTyped: true,
|
|
@@ -146,6 +171,8 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
146
171
|
setGeneralSuggestions([]);
|
|
147
172
|
setShowOverlay(false);
|
|
148
173
|
}, [
|
|
174
|
+
getOverlaySuggestionId,
|
|
175
|
+
trackWidgetInteraction,
|
|
149
176
|
onTypedMessageSubmitted,
|
|
150
177
|
setListeningToSpeech,
|
|
151
178
|
setAnswerSuggestions,
|
|
@@ -169,7 +196,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
169
196
|
disabled: isPendingResponse || isResponseStreaming,
|
|
170
197
|
isLoadingPromptSuggestions: isPendingResponse || isResponseStreaming || generalSuggestions.length === 0,
|
|
171
198
|
hideEnviveWatermark: showOverlay || !showEnviveLogo,
|
|
172
|
-
textFieldPlaceholderText: chatFooterTextFieldPlaceholderText,
|
|
199
|
+
textFieldPlaceholderText: showOverlay ? welcomeOverlayAnimatedPlaceholder : chatFooterTextFieldPlaceholderText,
|
|
173
200
|
promptSuggestions,
|
|
174
201
|
handleButtonClick: (buttonText) => {
|
|
175
202
|
const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
|
|
@@ -255,6 +282,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
255
282
|
layoutId: "fpsa-chat-footer",
|
|
256
283
|
children: footer
|
|
257
284
|
});
|
|
285
|
+
const productCarouselTitle = Array.isArray(welcomeOverlayProductCarouselTitle) ? welcomeOverlayProductCarouselTitle[0] : welcomeOverlayProductCarouselTitle;
|
|
258
286
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.LayoutGroup, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FullPageSAComponents.Layout, {
|
|
259
287
|
theme: resolvedTheme,
|
|
260
288
|
welcomeMessage: null,
|
|
@@ -272,13 +300,20 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
272
300
|
theme: resolvedTheme,
|
|
273
301
|
suggestionButtonType,
|
|
274
302
|
sparkleColor,
|
|
275
|
-
title:
|
|
303
|
+
title: overlayTitle,
|
|
276
304
|
promptSuggestions: overlayPromptSuggestions,
|
|
277
|
-
productCarouselTitle
|
|
305
|
+
productCarouselTitle,
|
|
278
306
|
productIds: overlayProductIds,
|
|
279
307
|
backgroundStyle,
|
|
280
308
|
chatFooter: showOverlay ? motionFooter : null,
|
|
281
|
-
onSuggestionClick: handleOverlaySuggestionClick
|
|
309
|
+
onSuggestionClick: handleOverlaySuggestionClick,
|
|
310
|
+
onSuggestionHover: onOverlayHover,
|
|
311
|
+
onSuggestionDrag: onOverlayDrag,
|
|
312
|
+
onSuggestionMouseDown: onOverlayMouseDown,
|
|
313
|
+
onSuggestionMouseUp: onOverlayMouseUp,
|
|
314
|
+
onSuggestionTouchStart: onOverlayTouchStart,
|
|
315
|
+
onSuggestionTouchEnd: onOverlayTouchEnd,
|
|
316
|
+
onProductCardClick: handleProductCardClick
|
|
282
317
|
}) : null
|
|
283
318
|
}) });
|
|
284
319
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../tokens/theme/theme.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
3
|
import { FloatingChatConfig, FullPageSalesAgentWidgetV3Config, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
@@ -19,6 +19,6 @@ declare const FullPageSalesAgent: ({
|
|
|
19
19
|
widgetConfig,
|
|
20
20
|
hardcopyContent,
|
|
21
21
|
voiceInputEnabled
|
|
22
|
-
}: FullPageSalesAgentProps) =>
|
|
22
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime22.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FullPageSalesAgent };
|