@envive-ai/react-toolkit-v3 0.3.27 → 0.3.29

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.
Files changed (188) hide show
  1. package/dist/AnimatedText/AnimatedText.d.cts +3 -3
  2. package/dist/AnimatedText/AnimatedText.d.ts +3 -3
  3. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
  4. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
  5. package/dist/Carousel/Carousel.cjs +1 -1
  6. package/dist/Carousel/Carousel.d.cts +2 -2
  7. package/dist/Carousel/Carousel.d.ts +2 -2
  8. package/dist/Carousel/Carousel.js +1 -1
  9. package/dist/Carousel/components/Container.cjs +2 -2
  10. package/dist/Carousel/components/Container.js +2 -2
  11. package/dist/ChatFooter/ChatFooter.cjs +2 -1
  12. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  13. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  14. package/dist/ChatFooter/ChatFooter.js +2 -1
  15. package/dist/ChatFooter/components/Layout.cjs +2 -2
  16. package/dist/ChatFooter/components/Layout.js +2 -2
  17. package/dist/ChatFooter/components/index.d.cts +6 -5
  18. package/dist/ChatFooter/components/index.d.ts +6 -5
  19. package/dist/ChatFooter/types/types.d.cts +3 -2
  20. package/dist/ChatFooter/types/types.d.ts +3 -2
  21. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  22. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  23. package/dist/ChatHeader/components/Handle.cjs +2 -2
  24. package/dist/ChatHeader/components/Handle.js +2 -2
  25. package/dist/ChatHeader/components/Toggle.cjs +3 -3
  26. package/dist/ChatHeader/components/Toggle.js +3 -3
  27. package/dist/ChatPreview/ChatPreview.cjs +1 -1
  28. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  29. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  30. package/dist/ChatPreview/ChatPreview.js +1 -1
  31. package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
  32. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  33. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  34. package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
  35. package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
  36. package/dist/ChatPreviewComparison/components/Headline.js +2 -2
  37. package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
  38. package/dist/ChatPreviewComparison/components/Layout.js +4 -4
  39. package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
  40. package/dist/ChatPreviewComparison/components/Message.js +2 -2
  41. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  42. package/dist/Container/Container.d.cts +218 -218
  43. package/dist/Container/Container.d.ts +51 -51
  44. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  45. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  46. package/dist/Disclaimer/components/Container.cjs +2 -2
  47. package/dist/Disclaimer/components/Container.js +2 -2
  48. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  49. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  50. package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
  51. package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
  52. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
  53. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
  54. package/dist/DocumentRetrievalCard/components/ViewArticleButton.cjs +1 -1
  55. package/dist/DocumentRetrievalCard/components/ViewArticleButton.js +1 -1
  56. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  57. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  58. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  59. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  60. package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
  61. package/dist/FloatingChat/components/ChatMessages.js +1 -1
  62. package/dist/FloatingChat/components/Layout.cjs +3 -3
  63. package/dist/FloatingChat/components/Layout.js +3 -3
  64. package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
  65. package/dist/FloatingChat/components/ResultsGridView.js +1 -1
  66. package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +1 -1
  67. package/dist/FloatingChat/components/SalesAgentBadgeContent.js +1 -1
  68. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +44 -10
  69. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
  70. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
  71. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +44 -10
  72. package/dist/FullPageSalesAgent/components/Layout.cjs +24 -27
  73. package/dist/FullPageSalesAgent/components/Layout.js +24 -27
  74. package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +37 -20
  75. package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +37 -20
  76. package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.cjs +1 -0
  77. package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.js +1 -0
  78. package/dist/Image/Image.d.cts +2 -2
  79. package/dist/Image/Image.d.ts +2 -2
  80. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  81. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  82. package/dist/ImageGallery/components/Layout.cjs +1 -1
  83. package/dist/ImageGallery/components/Layout.js +1 -1
  84. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  85. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  86. package/dist/Message/components/LinkButton.cjs +2 -2
  87. package/dist/Message/components/LinkButton.js +2 -2
  88. package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
  89. package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
  90. package/dist/ProductCard/ProductCard.cjs +2 -2
  91. package/dist/ProductCard/ProductCard.d.cts +2 -2
  92. package/dist/ProductCard/ProductCard.d.ts +2 -2
  93. package/dist/ProductCard/ProductCard.js +2 -2
  94. package/dist/PromptButton/PromptButton.d.cts +2 -2
  95. package/dist/PromptButton/PromptButton.d.ts +2 -2
  96. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  97. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  98. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +1 -1
  99. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
  100. package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
  101. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  102. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  103. package/dist/PromptCarousel/PromptCarousel.js +3 -3
  104. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  105. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  106. package/dist/ReviewCard/components/Container.cjs +2 -2
  107. package/dist/ReviewCard/components/Container.js +2 -2
  108. package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
  109. package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
  110. package/dist/ReviewCard/components/index.d.cts +6 -6
  111. package/dist/ReviewCard/components/index.d.ts +6 -6
  112. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  113. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  114. package/dist/SalesAgentProductCard/components/Container.cjs +2 -2
  115. package/dist/SalesAgentProductCard/components/Container.js +2 -2
  116. package/dist/SalesAgentProductCard/components/index.d.cts +6 -6
  117. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  118. package/dist/SocialProof/SocialProof.cjs +1 -1
  119. package/dist/SocialProof/SocialProof.d.cts +2 -2
  120. package/dist/SocialProof/SocialProof.d.ts +2 -2
  121. package/dist/SocialProof/SocialProof.js +1 -1
  122. package/dist/SocialProof/components/Headline.cjs +3 -3
  123. package/dist/SocialProof/components/Headline.js +3 -3
  124. package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
  125. package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
  126. package/dist/SocialProof/components/Subheadline.cjs +1 -1
  127. package/dist/SocialProof/components/Subheadline.js +1 -1
  128. package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
  129. package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
  130. package/dist/Stack/Stack.d.cts +2 -2
  131. package/dist/Stack/Stack.d.ts +2 -2
  132. package/dist/TextField/TextField.cjs +7 -3
  133. package/dist/TextField/TextField.d.cts +1 -0
  134. package/dist/TextField/TextField.d.ts +1 -0
  135. package/dist/TextField/TextField.js +7 -3
  136. package/dist/TextField/components/Input.cjs +31 -2
  137. package/dist/TextField/components/Input.js +31 -2
  138. package/dist/TextField/components/Layout.cjs +7 -2
  139. package/dist/TextField/components/Layout.js +7 -2
  140. package/dist/TextField/hooks/useAutoResize.cjs +17 -0
  141. package/dist/TextField/hooks/useAutoResize.js +16 -0
  142. package/dist/TextField/hooks/usePlaceholderAnimation.cjs +58 -0
  143. package/dist/TextField/hooks/usePlaceholderAnimation.js +57 -0
  144. package/dist/TextField/types/index.d.cts +7 -1
  145. package/dist/TextField/types/index.d.ts +7 -1
  146. package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
  147. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  148. package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
  149. package/dist/Tokens/index.cjs +1 -1
  150. package/dist/Tokens/index.js +1 -1
  151. package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
  152. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  153. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  154. package/dist/TypingAnimation/TypingAnimation.js +1 -1
  155. package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
  156. package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
  157. package/dist/Typography/Typography.d.cts +4 -4
  158. package/dist/Typography/Typography.d.ts +4 -4
  159. package/dist/WelcomeMessage/components/Container.cjs +2 -2
  160. package/dist/WelcomeMessage/components/Container.js +2 -2
  161. package/dist/WidgetTextField/WidgetTextField.cjs +4 -4
  162. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  163. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  164. package/dist/WidgetTextField/WidgetTextField.js +1 -1
  165. package/dist/WidgetTextField/components/Container.cjs +2 -2
  166. package/dist/WidgetTextField/components/Container.js +2 -2
  167. package/dist/WidgetTextField/components/Icon.cjs +1 -1
  168. package/dist/WidgetTextField/components/Icon.js +1 -1
  169. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  170. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  171. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  172. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  173. package/dist/styles.css +1 -1
  174. package/package.json +1 -1
  175. package/src/components/ChatFooter/ChatFooter.tsx +1 -0
  176. package/src/components/ChatFooter/components/TextField.tsx +4 -1
  177. package/src/components/ChatFooter/types/types.ts +3 -2
  178. package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +76 -9
  179. package/src/components/FullPageSalesAgent/components/Layout.tsx +4 -1
  180. package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +52 -17
  181. package/src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts +1 -0
  182. package/src/components/TextField/TextField.tsx +7 -1
  183. package/src/components/TextField/components/Input.tsx +43 -9
  184. package/src/components/TextField/components/Layout.tsx +7 -1
  185. package/src/components/TextField/hooks/useAutoResize.ts +14 -0
  186. package/src/components/TextField/hooks/usePlaceholderAnimation.ts +67 -0
  187. package/src/components/TextField/hooks/useTextFieldSubmit.ts +1 -1
  188. package/src/components/TextField/types/index.ts +7 -1
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime24 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime27 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) => react_jsx_runtime24.JSX.Element;
12
+ }: DesignTokensProps) => react_jsx_runtime27.JSX.Element;
13
13
  //#endregion
14
14
  export { DesignTokens, DesignTokensProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime25 from "react/jsx-runtime";
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) => react_jsx_runtime25.JSX.Element;
12
+ }: DesignTokensProps) => react_jsx_runtime30.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 react_jsx_runtime32 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime22 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) => react_jsx_runtime32.JSX.Element;
19
+ }: DocumentRetrievalCardProps) => react_jsx_runtime22.JSX.Element;
20
20
  //#endregion
21
21
  export { DocumentRetrievalCard };
@@ -1,5 +1,5 @@
1
1
  import { DocumentRetrievalCardProps } from "./types/index.js";
2
- import * as react_jsx_runtime31 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime17 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) => react_jsx_runtime31.JSX.Element;
19
+ }: DocumentRetrievalCardProps) => react_jsx_runtime17.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 react_jsx_runtime13 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime26 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) => react_jsx_runtime13.JSX.Element;
21
+ }: FloatingButtonProps) => react_jsx_runtime26.JSX.Element;
22
22
  //#endregion
23
23
  export { FloatingButton };
@@ -1,5 +1,5 @@
1
1
  import { FloatingButtonProps } from "./types/types.js";
2
- import * as react_jsx_runtime30 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime22 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) => react_jsx_runtime30.JSX.Element;
21
+ }: FloatingButtonProps) => react_jsx_runtime22.JSX.Element;
22
22
  //#endregion
23
23
  export { FloatingButton };
@@ -1,5 +1,5 @@
1
1
  import { FloatingChatProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
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: ({
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
19
19
  onSwipeClose,
20
20
  onToggleCXButton,
21
21
  setIsResultsModalOpen
22
- }: FloatingChatProps) => react_jsx_runtime3.JSX.Element;
22
+ }: FloatingChatProps) => react_jsx_runtime25.JSX.Element;
23
23
  //#endregion
24
24
  export { FloatingChat };
@@ -1,5 +1,5 @@
1
1
  import { FloatingChatProps } from "./types/types.js";
2
- import * as react_jsx_runtime23 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 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) => react_jsx_runtime23.JSX.Element;
22
+ }: FloatingChatProps) => react_jsx_runtime18.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 require_Stack = require('../../Stack/Stack.cjs');
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 require_resolveTheme = require('../../utils/resolveTheme.cjs');
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 { Stack } from "../../Stack/Stack.js";
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 { resolveTheme } from "../../utils/resolveTheme.js";
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 overlayEnabled = typeof welcomeOverlayTitle === "string" && !!welcomeOverlayTitle;
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,
@@ -266,19 +294,25 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
266
294
  headerContainer,
267
295
  autoHeight,
268
296
  scrollContainerRef,
269
- backgroundStyle,
270
- overlay: overlayEnabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WelcomeOverlay.WelcomeOverlay, {
297
+ overlay: overlayEnabled && showOverlay ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WelcomeOverlay.WelcomeOverlay, {
271
298
  show: showOverlay,
272
299
  theme: resolvedTheme,
273
300
  suggestionButtonType,
274
301
  sparkleColor,
275
- title: welcomeOverlayTitle,
302
+ title: overlayTitle,
276
303
  promptSuggestions: overlayPromptSuggestions,
277
- productCarouselTitle: welcomeOverlayProductCarouselTitle,
304
+ productCarouselTitle,
278
305
  productIds: overlayProductIds,
279
306
  backgroundStyle,
280
307
  chatFooter: showOverlay ? motionFooter : null,
281
- onSuggestionClick: handleOverlaySuggestionClick
308
+ onSuggestionClick: handleOverlaySuggestionClick,
309
+ onSuggestionHover: onOverlayHover,
310
+ onSuggestionDrag: onOverlayDrag,
311
+ onSuggestionMouseDown: onOverlayMouseDown,
312
+ onSuggestionMouseUp: onOverlayMouseUp,
313
+ onSuggestionTouchStart: onOverlayTouchStart,
314
+ onSuggestionTouchEnd: onOverlayTouchEnd,
315
+ onProductCardClick: handleProductCardClick
282
316
  }) : null
283
317
  }) });
284
318
  };
@@ -1,5 +1,5 @@
1
1
  import { Theme } from "../tokens/theme/theme.cjs";
2
- import * as react_jsx_runtime30 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime21 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) => react_jsx_runtime30.JSX.Element;
22
+ }: FullPageSalesAgentProps) => react_jsx_runtime21.JSX.Element;
23
23
  //#endregion
24
24
  export { FullPageSalesAgent };
@@ -1,5 +1,5 @@
1
1
  import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
2
- import * as react_jsx_runtime21 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime14 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) => react_jsx_runtime21.JSX.Element;
22
+ }: FullPageSalesAgentProps) => react_jsx_runtime14.JSX.Element;
23
23
  //#endregion
24
24
  export { FullPageSalesAgent };
@@ -1,6 +1,6 @@
1
1
  import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
2
- import { resolveTheme } from "../utils/resolveTheme.js";
3
2
  import "../Tokens/index.js";
3
+ import { resolveTheme } from "../utils/resolveTheme.js";
4
4
  import { useSetAtom } from "../node_modules/jotai/esm/react.js";
5
5
  import { usePromptCarouselAnalytics } from "../PromptCarousel/hooks/usePromptCarouselAnalytics.js";
6
6
  import { PromptButtonVariant } from "../PromptButton/types/index.js";
@@ -43,6 +43,15 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
43
43
  const { isMobile } = useIsMobile();
44
44
  const { trackWidgetInteraction } = useWidgetInteraction();
45
45
  const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = usePromptCarouselAnalytics(WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, (text) => text);
46
+ const getOverlaySuggestionId = useCallback((text) => {
47
+ const rawValues = hardcopyContent?.rawValues;
48
+ if (rawValues) for (const raw of Object.values(rawValues)) {
49
+ const found = (Array.isArray(raw) ? raw : [raw]).find((s) => s.value === text);
50
+ if (found) return found.id;
51
+ }
52
+ return text;
53
+ }, [hardcopyContent?.rawValues]);
54
+ const { onDrag: onOverlayDrag, onHover: onOverlayHover, onMouseDown: onOverlayMouseDown, onMouseUp: onOverlayMouseUp, onTouchStart: onOverlayTouchStart, onTouchEnd: onOverlayTouchEnd } = usePromptCarouselAnalytics(WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, getOverlaySuggestionId);
46
55
  const setListeningToSpeech = useSetAtom(listeningToSpeechAtom);
47
56
  const { ignoreFirstModelResponse, neverShowSingleProductCards, showVerifiedBuyer, showEnviveLogo } = floatingChatConfig;
48
57
  const { headerContainer, autoHeight, sparkleColor = "var(--envive-colors-accent-primary)", suggestionButtonType = PromptButtonVariant.LIGHT, useBackgroundImage, mobileBackgroundImage, desktopBackgroundImage, backgroundColor } = widgetConfig;
@@ -65,8 +74,9 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
65
74
  isMobile
66
75
  ]);
67
76
  const { agentName } = lookAndFeelConfig;
68
- const { chatFooterTextFieldPlaceholderText, disclaimerText, welcomeOverlayTitle, welcomeOverlayPromptSuggestions, welcomeOverlayProductCarouselTitle, welcomeOverlayProductIds } = hardcopyContent?.values ?? {};
69
- const overlayEnabled = typeof welcomeOverlayTitle === "string" && !!welcomeOverlayTitle;
77
+ const { chatFooterTextFieldPlaceholderText, disclaimerText, welcomeOverlayTitle, welcomeOverlayAnimatedPlaceholder, welcomeOverlayPromptSuggestions, welcomeOverlayProductCarouselTitle, welcomeOverlayProductIds } = hardcopyContent?.values ?? {};
78
+ const overlayTitle = Array.isArray(welcomeOverlayTitle) && welcomeOverlayTitle.length > 0 ? welcomeOverlayTitle[0] : welcomeOverlayTitle;
79
+ const overlayEnabled = typeof overlayTitle === "string" && !!welcomeOverlayTitle;
70
80
  const [showOverlay, setShowOverlay] = useState(overlayEnabled);
71
81
  const { footerStyles, footerClasses } = useGetFooterStyles({ showOverlay });
72
82
  const overlayPromptSuggestions = Array.isArray(welcomeOverlayPromptSuggestions) ? welcomeOverlayPromptSuggestions : [];
@@ -132,9 +142,24 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
132
142
  });
133
143
  }, [trackWidgetInteraction]);
134
144
  const handleOverlayDismiss = useCallback(() => {
145
+ trackWidgetInteraction({
146
+ eventName: EnviveMetricsEventName.WidgetInteraction,
147
+ trigger: {
148
+ widget: WidgetInteractionComponent.FULL_PAGE_SALES_AGENT,
149
+ widget_interaction: WidgetInteractionType.OVERLAY_DISMISSED
150
+ }
151
+ });
135
152
  setShowOverlay(false);
136
- }, []);
153
+ }, [trackWidgetInteraction]);
137
154
  const handleOverlaySuggestionClick = useCallback((buttonText) => {
155
+ trackWidgetInteraction({
156
+ eventName: EnviveMetricsEventName.WidgetInteraction,
157
+ trigger: {
158
+ widget: WidgetInteractionComponent.FULL_PAGE_SALES_AGENT,
159
+ widget_interaction: WidgetInteractionType.SUGGESTION_CLICKED,
160
+ widget_interaction_data: { suggestion_clicked: { suggestion_id: getOverlaySuggestionId(buttonText) } }
161
+ }
162
+ });
138
163
  onTypedMessageSubmitted({
139
164
  query: buttonText,
140
165
  userTyped: true,
@@ -145,6 +170,8 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
145
170
  setGeneralSuggestions([]);
146
171
  setShowOverlay(false);
147
172
  }, [
173
+ getOverlaySuggestionId,
174
+ trackWidgetInteraction,
148
175
  onTypedMessageSubmitted,
149
176
  setListeningToSpeech,
150
177
  setAnswerSuggestions,
@@ -168,7 +195,7 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
168
195
  disabled: isPendingResponse || isResponseStreaming,
169
196
  isLoadingPromptSuggestions: isPendingResponse || isResponseStreaming || generalSuggestions.length === 0,
170
197
  hideEnviveWatermark: showOverlay || !showEnviveLogo,
171
- textFieldPlaceholderText: chatFooterTextFieldPlaceholderText,
198
+ textFieldPlaceholderText: showOverlay ? welcomeOverlayAnimatedPlaceholder : chatFooterTextFieldPlaceholderText,
172
199
  promptSuggestions,
173
200
  handleButtonClick: (buttonText) => {
174
201
  const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
@@ -254,6 +281,7 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
254
281
  layoutId: "fpsa-chat-footer",
255
282
  children: footer
256
283
  });
284
+ const productCarouselTitle = Array.isArray(welcomeOverlayProductCarouselTitle) ? welcomeOverlayProductCarouselTitle[0] : welcomeOverlayProductCarouselTitle;
257
285
  return /* @__PURE__ */ jsx(LayoutGroup, { children: /* @__PURE__ */ jsx(FullPageSAComponents.Layout, {
258
286
  theme: resolvedTheme,
259
287
  welcomeMessage: null,
@@ -265,19 +293,25 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
265
293
  headerContainer,
266
294
  autoHeight,
267
295
  scrollContainerRef,
268
- backgroundStyle,
269
- overlay: overlayEnabled ? /* @__PURE__ */ jsx(WelcomeOverlay, {
296
+ overlay: overlayEnabled && showOverlay ? /* @__PURE__ */ jsx(WelcomeOverlay, {
270
297
  show: showOverlay,
271
298
  theme: resolvedTheme,
272
299
  suggestionButtonType,
273
300
  sparkleColor,
274
- title: welcomeOverlayTitle,
301
+ title: overlayTitle,
275
302
  promptSuggestions: overlayPromptSuggestions,
276
- productCarouselTitle: welcomeOverlayProductCarouselTitle,
303
+ productCarouselTitle,
277
304
  productIds: overlayProductIds,
278
305
  backgroundStyle,
279
306
  chatFooter: showOverlay ? motionFooter : null,
280
- onSuggestionClick: handleOverlaySuggestionClick
307
+ onSuggestionClick: handleOverlaySuggestionClick,
308
+ onSuggestionHover: onOverlayHover,
309
+ onSuggestionDrag: onOverlayDrag,
310
+ onSuggestionMouseDown: onOverlayMouseDown,
311
+ onSuggestionMouseUp: onOverlayMouseUp,
312
+ onSuggestionTouchStart: onOverlayTouchStart,
313
+ onSuggestionTouchEnd: onOverlayTouchEnd,
314
+ onProductCardClick: handleProductCardClick
281
315
  }) : null
282
316
  }) });
283
317
  };