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

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 (142) 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.ts +2 -2
  4. package/dist/Carousel/Carousel.d.cts +2 -2
  5. package/dist/Carousel/Carousel.d.ts +2 -2
  6. package/dist/ChatFooter/ChatFooter.cjs +1 -0
  7. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  8. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  9. package/dist/ChatFooter/ChatFooter.js +1 -0
  10. package/dist/ChatFooter/components/Layout.cjs +2 -2
  11. package/dist/ChatFooter/components/Layout.d.cts +1 -0
  12. package/dist/ChatFooter/components/Layout.d.ts +1 -0
  13. package/dist/ChatFooter/components/Layout.js +2 -2
  14. package/dist/ChatFooter/components/index.d.cts +3 -2
  15. package/dist/ChatFooter/components/index.d.ts +6 -5
  16. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  17. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  18. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  19. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  20. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  21. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  22. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  23. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  24. package/dist/Container/Container.d.cts +175 -175
  25. package/dist/Container/Container.d.ts +175 -175
  26. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  27. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  28. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  29. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  30. package/dist/DocumentRetrievalCard/components/ViewArticleButton.cjs +1 -1
  31. package/dist/DocumentRetrievalCard/components/ViewArticleButton.js +1 -1
  32. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  33. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  34. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  35. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  36. package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +5 -1
  37. package/dist/FloatingChat/components/SalesAgentBadgeContent.js +5 -1
  38. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +2 -1
  39. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +2 -1
  40. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +89 -25
  41. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +5 -7
  42. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +5 -7
  43. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +90 -26
  44. package/dist/FullPageSalesAgent/components/Layout.cjs +34 -27
  45. package/dist/FullPageSalesAgent/components/Layout.js +34 -27
  46. package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +102 -0
  47. package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +100 -0
  48. package/dist/FullPageSalesAgent/components/index.cjs +1 -0
  49. package/dist/FullPageSalesAgent/components/index.js +1 -0
  50. package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.cjs +16 -6
  51. package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.js +16 -6
  52. package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.cjs +43 -0
  53. package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.js +41 -0
  54. package/dist/Image/Image.d.cts +2 -2
  55. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  56. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  57. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  58. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  59. package/dist/Message/components/LinkButton.cjs +1 -1
  60. package/dist/Message/components/LinkButton.js +1 -1
  61. package/dist/ProductCard/ProductCard.d.cts +2 -2
  62. package/dist/ProductCard/ProductCard.d.ts +2 -2
  63. package/dist/PromptButton/PromptButton.d.cts +2 -2
  64. package/dist/PromptButton/PromptButton.d.ts +2 -2
  65. package/dist/PromptButton/hooks/useGetLayoutBaseProperties.cjs +1 -1
  66. package/dist/PromptButton/hooks/useGetLayoutBaseProperties.js +1 -1
  67. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  68. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  69. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  70. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  71. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  72. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  73. package/dist/ReviewCard/components/index.d.cts +6 -6
  74. package/dist/ReviewCard/components/index.d.ts +6 -6
  75. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  76. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  77. package/dist/SalesAgentProductCard/components/Price.cjs +2 -2
  78. package/dist/SalesAgentProductCard/components/Price.js +2 -2
  79. package/dist/SalesAgentProductCard/components/Rate.cjs +1 -1
  80. package/dist/SalesAgentProductCard/components/Rate.js +1 -1
  81. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  82. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  83. package/dist/SocialProof/SocialProof.cjs +4 -3
  84. package/dist/SocialProof/SocialProof.d.cts +2 -2
  85. package/dist/SocialProof/SocialProof.d.ts +2 -2
  86. package/dist/SocialProof/SocialProof.js +4 -3
  87. package/dist/SocialProof/components/Headline.cjs +1 -1
  88. package/dist/SocialProof/components/Headline.js +1 -1
  89. package/dist/SocialProof/components/LayoutSingle.cjs +3 -4
  90. package/dist/SocialProof/components/LayoutSingle.js +3 -4
  91. package/dist/SocialProof/hooks/useSocialProofCount.cjs +3 -2
  92. package/dist/SocialProof/hooks/useSocialProofCount.d.cts +2 -0
  93. package/dist/SocialProof/hooks/useSocialProofCount.d.ts +2 -0
  94. package/dist/SocialProof/hooks/useSocialProofCount.js +3 -2
  95. package/dist/SocialProof/types/types.d.cts +5 -0
  96. package/dist/SocialProof/types/types.d.ts +5 -0
  97. package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
  98. package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
  99. package/dist/Stack/Stack.d.cts +2 -2
  100. package/dist/Stack/Stack.d.ts +2 -2
  101. package/dist/TextField/TextField.cjs +3 -0
  102. package/dist/TextField/TextField.js +3 -0
  103. package/dist/TextField/hooks/useVoiceInput.cjs +9 -1
  104. package/dist/TextField/hooks/useVoiceInput.js +9 -1
  105. package/dist/TextField/types/index.d.cts +12 -0
  106. package/dist/TextField/types/index.d.ts +12 -0
  107. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  108. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  109. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  110. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  111. package/dist/Typography/Typography.d.cts +4 -4
  112. package/dist/Typography/Typography.d.ts +4 -4
  113. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  114. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  115. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  116. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  117. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  118. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  119. package/dist/styles.css +1 -1
  120. package/package.json +1 -1
  121. package/src/components/ChatFooter/ChatFooter.tsx +1 -0
  122. package/src/components/ChatFooter/components/Layout.tsx +3 -1
  123. package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -0
  124. package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +3 -0
  125. package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +139 -49
  126. package/src/components/FullPageSalesAgent/components/Layout.tsx +10 -3
  127. package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +121 -0
  128. package/src/components/FullPageSalesAgent/components/index.ts +2 -0
  129. package/src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts +15 -5
  130. package/src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts +51 -0
  131. package/src/components/PromptButton/hooks/useGetLayoutBaseProperties.ts +3 -1
  132. package/src/components/SalesAgentProductCard/components/Price.tsx +2 -2
  133. package/src/components/SalesAgentProductCard/components/Rate.tsx +1 -1
  134. package/src/components/SocialProof/SocialProof.tsx +4 -2
  135. package/src/components/SocialProof/components/Headline.tsx +1 -1
  136. package/src/components/SocialProof/components/LayoutSingle.tsx +6 -5
  137. package/src/components/SocialProof/hooks/useSocialProofCount.ts +8 -1
  138. package/src/components/SocialProof/types/types.ts +6 -0
  139. package/src/components/TextField/TextField.tsx +10 -2
  140. package/src/components/TextField/__tests__/VoiceInputButton.test.tsx +22 -58
  141. package/src/components/TextField/hooks/useVoiceInput.ts +8 -0
  142. package/src/components/TextField/types/index.ts +12 -0
@@ -2,8 +2,8 @@ import { Theme } from "../../tokens/theme/theme.cjs";
2
2
  import { ContainerProps } from "./Container.cjs";
3
3
  import { RatingProps } from "./Rating.cjs";
4
4
  import { ReadMoreButtonProps } from "./ReadMoreButton.cjs";
5
- import * as react7 from "react";
6
- import * as react_jsx_runtime20 from "react/jsx-runtime";
5
+ import * as react6 from "react";
6
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
7
7
 
8
8
  //#region src/components/ReviewCard/components/index.d.ts
9
9
  declare const ReviewCardComponents: {
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
31
31
  verifiedBuyerLabel?: string;
32
32
  className?: string;
33
33
  style?: React.CSSProperties;
34
- }) => react_jsx_runtime20.JSX.Element;
34
+ }) => react_jsx_runtime19.JSX.Element;
35
35
  Rating: ({
36
36
  rating,
37
37
  theme,
38
38
  style
39
- }: RatingProps) => react_jsx_runtime20.JSX.Element;
39
+ }: RatingProps) => react_jsx_runtime19.JSX.Element;
40
40
  StarIcon: ({
41
41
  theme,
42
42
  style,
@@ -45,7 +45,7 @@ declare const ReviewCardComponents: {
45
45
  theme: Theme;
46
46
  style?: React.CSSProperties;
47
47
  className?: string;
48
- }) => react7.ReactElement<react7.SVGProps<SVGSVGElement>, string | react7.JSXElementConstructor<any>>;
48
+ }) => react6.ReactElement<react6.SVGProps<SVGSVGElement>, string | react6.JSXElementConstructor<any>>;
49
49
  ReviewText: ({
50
50
  reviewText,
51
51
  isExpanded,
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
56
56
  isExpanded: boolean;
57
57
  className?: string;
58
58
  style?: React.CSSProperties;
59
- }) => react_jsx_runtime20.JSX.Element;
59
+ }) => react_jsx_runtime19.JSX.Element;
60
60
  ReadMoreButton: ({
61
61
  isExpanded,
62
62
  onToggle,
@@ -2,8 +2,8 @@ import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
2
2
  import { ContainerProps } from "./Container.js";
3
3
  import { RatingProps } from "./Rating.js";
4
4
  import { ReadMoreButtonProps } from "./ReadMoreButton.js";
5
- import * as react2 from "react";
6
- import * as react_jsx_runtime12 from "react/jsx-runtime";
5
+ import * as react4 from "react";
6
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
7
7
 
8
8
  //#region src/components/ReviewCard/components/index.d.ts
9
9
  declare const ReviewCardComponents: {
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
31
31
  verifiedBuyerLabel?: string;
32
32
  className?: string;
33
33
  style?: React.CSSProperties;
34
- }) => react_jsx_runtime12.JSX.Element;
34
+ }) => react_jsx_runtime7.JSX.Element;
35
35
  Rating: ({
36
36
  rating,
37
37
  theme,
38
38
  style
39
- }: RatingProps) => react_jsx_runtime12.JSX.Element;
39
+ }: RatingProps) => react_jsx_runtime7.JSX.Element;
40
40
  StarIcon: ({
41
41
  theme,
42
42
  style,
@@ -45,7 +45,7 @@ declare const ReviewCardComponents: {
45
45
  theme: Theme;
46
46
  style?: React.CSSProperties;
47
47
  className?: string;
48
- }) => react2.ReactElement<react2.SVGProps<SVGSVGElement>, string | react2.JSXElementConstructor<any>>;
48
+ }) => react4.ReactElement<react4.SVGProps<SVGSVGElement>, string | react4.JSXElementConstructor<any>>;
49
49
  ReviewText: ({
50
50
  reviewText,
51
51
  isExpanded,
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
56
56
  isExpanded: boolean;
57
57
  className?: string;
58
58
  style?: React.CSSProperties;
59
- }) => react_jsx_runtime12.JSX.Element;
59
+ }) => react_jsx_runtime7.JSX.Element;
60
60
  ReadMoreButton: ({
61
61
  isExpanded,
62
62
  onToggle,
@@ -1,5 +1,5 @@
1
1
  import { SalesAgentProductCardProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
5
5
 
@@ -30,6 +30,6 @@ declare const SalesAgentProductCard: ({
30
30
  url,
31
31
  target,
32
32
  onClick
33
- }: SalesAgentProductCardProps) => react_jsx_runtime8.JSX.Element;
33
+ }: SalesAgentProductCardProps) => react_jsx_runtime10.JSX.Element;
34
34
  //#endregion
35
35
  export { SalesAgentProductCard };
@@ -1,5 +1,5 @@
1
1
  import { SalesAgentProductCardProps } from "./types/types.js";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
5
5
 
@@ -30,6 +30,6 @@ declare const SalesAgentProductCard: ({
30
30
  url,
31
31
  target,
32
32
  onClick
33
- }: SalesAgentProductCardProps) => react_jsx_runtime3.JSX.Element;
33
+ }: SalesAgentProductCardProps) => react_jsx_runtime15.JSX.Element;
34
34
  //#endregion
35
35
  export { SalesAgentProductCard };
@@ -16,11 +16,11 @@ const Price = ({ previousPrice, currentPrice, pricePrefix, forceShowCurrentPrice
16
16
  direction: "column",
17
17
  children: [(showSalePrice || forceShowCurrentPriceSpace) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
18
18
  variant: require_index.TypographyVariant.B3_RG,
19
- color: require_index.TypographyColor.TEXT_SECONDARY,
19
+ color: require_index.TypographyColor.TEXT_PRIMARY,
20
20
  children: forceShowCurrentPriceSpace && !showSalePrice ? "ㅤ" : formattedCurrentPrice
21
21
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
22
22
  variant: require_index.TypographyVariant.B3_RG,
23
- color: require_index.TypographyColor.TEXT_SECONDARY,
23
+ color: require_index.TypographyColor.TEXT_PRIMARY,
24
24
  className: showSalePrice ? "envive-tw-line-through" : "",
25
25
  children: formattedPreviousPrice
26
26
  })]
@@ -15,11 +15,11 @@ const Price = ({ previousPrice, currentPrice, pricePrefix, forceShowCurrentPrice
15
15
  direction: "column",
16
16
  children: [(showSalePrice || forceShowCurrentPriceSpace) && /* @__PURE__ */ jsx(Typography, {
17
17
  variant: TypographyVariant.B3_RG,
18
- color: TypographyColor.TEXT_SECONDARY,
18
+ color: TypographyColor.TEXT_PRIMARY,
19
19
  children: forceShowCurrentPriceSpace && !showSalePrice ? "ㅤ" : formattedCurrentPrice
20
20
  }), /* @__PURE__ */ jsx(Typography, {
21
21
  variant: TypographyVariant.B3_RG,
22
- color: TypographyColor.TEXT_SECONDARY,
22
+ color: TypographyColor.TEXT_PRIMARY,
23
23
  className: showSalePrice ? "envive-tw-line-through" : "",
24
24
  children: formattedPreviousPrice
25
25
  })]
@@ -23,7 +23,7 @@ const Rate = ({ rate, numberOfReviews, theme = require_theme.Theme.GLOBAL_CUSTOM
23
23
  theme
24
24
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
25
25
  variant: require_index.TypographyVariant.B3_RG,
26
- color: require_index.TypographyColor.TEXT_SECONDARY,
26
+ color: require_index.TypographyColor.TEXT_PRIMARY,
27
27
  children: formattedRateString
28
28
  })]
29
29
  });
@@ -22,7 +22,7 @@ const Rate = ({ rate, numberOfReviews, theme = Theme.GLOBAL_CUSTOM }) => {
22
22
  theme
23
23
  }), /* @__PURE__ */ jsx(Typography, {
24
24
  variant: TypographyVariant.B3_RG,
25
- color: TypographyColor.TEXT_SECONDARY,
25
+ color: TypographyColor.TEXT_PRIMARY,
26
26
  children: formattedRateString
27
27
  })]
28
28
  });
@@ -4,8 +4,8 @@ import { ProductNameProps } from "./ProductName.cjs";
4
4
  import { PriceProps } from "./Price.cjs";
5
5
  import { RateProps } from "./Rate.cjs";
6
6
  import { ProductImageProps } from "./ProductImage.cjs";
7
- import * as react4 from "react";
8
- import * as react_jsx_runtime3 from "react/jsx-runtime";
7
+ import * as react0 from "react";
8
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/SalesAgentProductCard/components/index.d.ts
11
11
  declare const SalesAgentProductCardComponents: {
@@ -23,24 +23,24 @@ declare const SalesAgentProductCardComponents: {
23
23
  url,
24
24
  target,
25
25
  onClick
26
- }: ContainerProps) => react_jsx_runtime3.JSX.Element;
26
+ }: ContainerProps) => react_jsx_runtime5.JSX.Element;
27
27
  ProductName: ({
28
28
  label,
29
29
  theme,
30
30
  style,
31
31
  className
32
- }: ProductNameProps) => react_jsx_runtime3.JSX.Element;
32
+ }: ProductNameProps) => react_jsx_runtime5.JSX.Element;
33
33
  Price: ({
34
34
  previousPrice,
35
35
  currentPrice,
36
36
  pricePrefix,
37
37
  forceShowCurrentPriceSpace
38
- }: PriceProps) => react_jsx_runtime3.JSX.Element;
38
+ }: PriceProps) => react_jsx_runtime5.JSX.Element;
39
39
  Rate: ({
40
40
  rate,
41
41
  numberOfReviews,
42
42
  theme
43
- }: RateProps) => react_jsx_runtime3.JSX.Element;
43
+ }: RateProps) => react_jsx_runtime5.JSX.Element;
44
44
  ProductImage: ({
45
45
  src,
46
46
  alt,
@@ -48,14 +48,14 @@ declare const SalesAgentProductCardComponents: {
48
48
  aspectRatio,
49
49
  className,
50
50
  ...props
51
- }: ProductImageProps) => react_jsx_runtime3.JSX.Element;
51
+ }: ProductImageProps) => react_jsx_runtime5.JSX.Element;
52
52
  StarIcon: ({
53
53
  theme,
54
54
  style
55
55
  }: {
56
56
  theme: Theme;
57
57
  style?: React.CSSProperties;
58
- }) => react4.ReactElement<react4.SVGProps<SVGSVGElement>, string | react4.JSXElementConstructor<any>>;
58
+ }) => react0.ReactElement<react0.SVGProps<SVGSVGElement>, string | react0.JSXElementConstructor<any>>;
59
59
  };
60
60
  //#endregion
61
61
  export { SalesAgentProductCardComponents };
@@ -4,8 +4,8 @@ import { ProductNameProps } from "./ProductName.js";
4
4
  import { PriceProps } from "./Price.js";
5
5
  import { RateProps } from "./Rate.js";
6
6
  import { ProductImageProps } from "./ProductImage.js";
7
- import * as react0 from "react";
8
- import * as react_jsx_runtime4 from "react/jsx-runtime";
7
+ import * as react7 from "react";
8
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/SalesAgentProductCard/components/index.d.ts
11
11
  declare const SalesAgentProductCardComponents: {
@@ -23,24 +23,24 @@ declare const SalesAgentProductCardComponents: {
23
23
  url,
24
24
  target,
25
25
  onClick
26
- }: ContainerProps) => react_jsx_runtime4.JSX.Element;
26
+ }: ContainerProps) => react_jsx_runtime10.JSX.Element;
27
27
  ProductName: ({
28
28
  label,
29
29
  theme,
30
30
  style,
31
31
  className
32
- }: ProductNameProps) => react_jsx_runtime4.JSX.Element;
32
+ }: ProductNameProps) => react_jsx_runtime10.JSX.Element;
33
33
  Price: ({
34
34
  previousPrice,
35
35
  currentPrice,
36
36
  pricePrefix,
37
37
  forceShowCurrentPriceSpace
38
- }: PriceProps) => react_jsx_runtime4.JSX.Element;
38
+ }: PriceProps) => react_jsx_runtime10.JSX.Element;
39
39
  Rate: ({
40
40
  rate,
41
41
  numberOfReviews,
42
42
  theme
43
- }: RateProps) => react_jsx_runtime4.JSX.Element;
43
+ }: RateProps) => react_jsx_runtime10.JSX.Element;
44
44
  ProductImage: ({
45
45
  src,
46
46
  alt,
@@ -48,14 +48,14 @@ declare const SalesAgentProductCardComponents: {
48
48
  aspectRatio,
49
49
  className,
50
50
  ...props
51
- }: ProductImageProps) => react_jsx_runtime4.JSX.Element;
51
+ }: ProductImageProps) => react_jsx_runtime10.JSX.Element;
52
52
  StarIcon: ({
53
53
  theme,
54
54
  style
55
55
  }: {
56
56
  theme: Theme;
57
57
  style?: React.CSSProperties;
58
- }) => react0.ReactElement<react0.SVGProps<SVGSVGElement>, string | react0.JSXElementConstructor<any>>;
58
+ }) => react7.ReactElement<react7.SVGProps<SVGSVGElement>, string | react7.JSXElementConstructor<any>>;
59
59
  };
60
60
  //#endregion
61
61
  export { SalesAgentProductCardComponents };
@@ -23,10 +23,11 @@ let react_jsx_runtime = require("react/jsx-runtime");
23
23
  const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEventProps }) => {
24
24
  const { id, testId, className, style, pageVariant, countKey } = baseProps ?? {};
25
25
  const { theme = require_theme.Theme.GLOBAL_CUSTOM, variant = require_types$1.WidgetWrapperVariant.CARD_WITH_BORDER, kind = require_types$3.WidgetKind.STATIC, hexCardColor, promptCarouselRows = require_PromptCarousel_types_types.PromptCarouselRows.TWO_ON_MOBILE_ONE_ON_DESKTOP, hideImage, imageGalleryLayout, hideTextField, primaryButtonVariant = require_PromptButton_types_index.PromptButtonVariant.DARK, secondaryButtonVariant = require_PromptButton_types_index.PromptButtonVariant.LIGHT, hideLogo, dynamicLayout } = widgetStyleProps ?? {};
26
- const { customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
27
- const numberOfCustomersText = require_useSocialProofCount.useSocialProofCount({
26
+ const { numberOfCustomersText, customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
27
+ const socialProofCounter = require_useSocialProofCount.useSocialProofCount({
28
28
  pageVariant,
29
29
  countKey,
30
+ numberOfCustomersText,
30
31
  id
31
32
  });
32
33
  const { handlePrimaryButtonClick, handlePrimaryButtonHover, handleSecondaryButtonClick, handleSecondaryButtonHover, handleSecondaryButtonDrag, handleSecondaryButtonMouseDown, handleSecondaryButtonMouseUp, handleSecondaryButtonTouchStart, handleSecondaryButtonTouchEnd, handleTextFieldClick, onTranscriptionStarted, onTranscriptionCompleted } = widgetEventProps ?? {};
@@ -42,7 +43,7 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
42
43
  const isFourHorizontalLayout = (imageGalleryLayout === require_types$2.ImageGalleryLayout.FOUR_HORIZONTAL || isMobile && imageGalleryLayout === require_types$2.ImageGalleryLayout.FOUR_GRID) && !hasDynamicLayout;
43
44
  const headline = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.SocialProofComponents.Headline, {
44
45
  theme: finalTheme,
45
- socialProofCounter: numberOfCustomersText,
46
+ socialProofCounter,
46
47
  socialProofHeadline: customerQueryText,
47
48
  primaryPromptButtonText: primaryButtonText,
48
49
  primaryPromptButtonVariant: primaryButtonVariant,
@@ -1,5 +1,5 @@
1
1
  import { SocialProofProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime13 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/SocialProof/SocialProof.d.ts
5
5
  declare const SocialProof: ({
@@ -7,6 +7,6 @@ declare const SocialProof: ({
7
7
  widgetContentProps,
8
8
  widgetStyleProps,
9
9
  widgetEventProps
10
- }: SocialProofProps) => react_jsx_runtime13.JSX.Element;
10
+ }: SocialProofProps) => react_jsx_runtime12.JSX.Element;
11
11
  //#endregion
12
12
  export { SocialProof };
@@ -1,5 +1,5 @@
1
1
  import { SocialProofProps } from "./types/types.js";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/SocialProof/SocialProof.d.ts
5
5
  declare const SocialProof: ({
@@ -7,6 +7,6 @@ declare const SocialProof: ({
7
7
  widgetContentProps,
8
8
  widgetStyleProps,
9
9
  widgetEventProps
10
- }: SocialProofProps) => react_jsx_runtime1.JSX.Element;
10
+ }: SocialProofProps) => react_jsx_runtime3.JSX.Element;
11
11
  //#endregion
12
12
  export { SocialProof };
@@ -22,10 +22,11 @@ import { jsx } from "react/jsx-runtime";
22
22
  const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEventProps }) => {
23
23
  const { id, testId, className, style, pageVariant, countKey } = baseProps ?? {};
24
24
  const { theme = Theme.GLOBAL_CUSTOM, variant = WidgetWrapperVariant.CARD_WITH_BORDER, kind = WidgetKind.STATIC, hexCardColor, promptCarouselRows = PromptCarouselRows.TWO_ON_MOBILE_ONE_ON_DESKTOP, hideImage, imageGalleryLayout, hideTextField, primaryButtonVariant = PromptButtonVariant.DARK, secondaryButtonVariant = PromptButtonVariant.LIGHT, hideLogo, dynamicLayout } = widgetStyleProps ?? {};
25
- const { customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
26
- const numberOfCustomersText = useSocialProofCount({
25
+ const { numberOfCustomersText, customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
26
+ const socialProofCounter = useSocialProofCount({
27
27
  pageVariant,
28
28
  countKey,
29
+ numberOfCustomersText,
29
30
  id
30
31
  });
31
32
  const { handlePrimaryButtonClick, handlePrimaryButtonHover, handleSecondaryButtonClick, handleSecondaryButtonHover, handleSecondaryButtonDrag, handleSecondaryButtonMouseDown, handleSecondaryButtonMouseUp, handleSecondaryButtonTouchStart, handleSecondaryButtonTouchEnd, handleTextFieldClick, onTranscriptionStarted, onTranscriptionCompleted } = widgetEventProps ?? {};
@@ -41,7 +42,7 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
41
42
  const isFourHorizontalLayout = (imageGalleryLayout === ImageGalleryLayout.FOUR_HORIZONTAL || isMobile && imageGalleryLayout === ImageGalleryLayout.FOUR_GRID) && !hasDynamicLayout;
42
43
  const headline = /* @__PURE__ */ jsx(SocialProofComponents.Headline, {
43
44
  theme: finalTheme,
44
- socialProofCounter: numberOfCustomersText,
45
+ socialProofCounter,
45
46
  socialProofHeadline: customerQueryText,
46
47
  primaryPromptButtonText: primaryButtonText,
47
48
  primaryPromptButtonVariant: primaryButtonVariant,
@@ -27,7 +27,7 @@ const Headline = (0, react.forwardRef)(({ theme = require_theme.Theme.GLOBAL_CUS
27
27
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
28
28
  ref,
29
29
  gap: "4",
30
- className: (0, classnames.default)("envive-tw-h-fit", className),
30
+ className: (0, classnames.default)("envive-tw-h-fit envive-tw-overflow-x-auto", className),
31
31
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Stack.Stack, {
32
32
  gap: "2",
33
33
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Container.Container, { children: [
@@ -25,7 +25,7 @@ const Headline = forwardRef(({ theme = Theme.GLOBAL_CUSTOM, className, isLoading
25
25
  return /* @__PURE__ */ jsxs(Stack, {
26
26
  ref,
27
27
  gap: "4",
28
- className: classNames("envive-tw-h-fit", className),
28
+ className: classNames("envive-tw-h-fit envive-tw-overflow-x-auto", className),
29
29
  children: [/* @__PURE__ */ jsx(Stack, {
30
30
  gap: "2",
31
31
  children: /* @__PURE__ */ jsxs(Container, { children: [
@@ -4,7 +4,6 @@ require('../../Stack/index.cjs');
4
4
  const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
5
5
  const require_useGetContentSize = require('../../utils/useGetContentSize.cjs');
6
6
  const require_types = require('../../ImageGallery/types/types.cjs');
7
- const require_functions = require('../utils/functions.cjs');
8
7
  const require_ImageGallery = require('./ImageGallery.cjs');
9
8
  const require_types$1 = require('../types/types.cjs');
10
9
  let react = require("react");
@@ -15,7 +14,7 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
15
14
  const { isMobile } = require_utils_useCheckIsMobile.useCheckIsMobile("sm");
16
15
  const isNarrowLayout = dynamicLayout === require_types$1.DynamicLayout.NARROW || isMobile && dynamicLayout !== require_types$1.DynamicLayout.WIDE;
17
16
  const { height, ref } = require_useGetContentSize.useGetContentSize({ heightDefault: 245 });
18
- const imageGalleryWidth = require_functions.calculateWidthImageGallery(height, 1, 1);
17
+ const imageGalleryWidth = 80;
19
18
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
20
19
  gap: "6",
21
20
  direction: isNarrowLayout ? "column" : "row",
@@ -31,11 +30,11 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
31
30
  styleImageGallery: {
32
31
  width: (() => {
33
32
  if (!isNarrowLayout && isMobile) return "100%";
34
- if (imageGalleryWidth) return `${imageGalleryWidth}px`;
33
+ return `${imageGalleryWidth}px`;
35
34
  })(),
36
35
  maxWidth: (() => {
37
36
  if (!isNarrowLayout && isMobile) return "100%";
38
- if (imageGalleryWidth) return `${imageGalleryWidth}px`;
37
+ return `${imageGalleryWidth}px`;
39
38
  })()
40
39
  },
41
40
  images,
@@ -3,7 +3,6 @@ import "../../Stack/index.js";
3
3
  import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
4
4
  import { useGetContentSize } from "../../utils/useGetContentSize.js";
5
5
  import { ImageGalleryLayout } from "../../ImageGallery/types/types.js";
6
- import { calculateWidthImageGallery } from "../utils/functions.js";
7
6
  import { ImageGallery } from "./ImageGallery.js";
8
7
  import { DynamicLayout } from "../types/types.js";
9
8
  import { cloneElement } from "react";
@@ -14,7 +13,7 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
14
13
  const { isMobile } = useCheckIsMobile("sm");
15
14
  const isNarrowLayout = dynamicLayout === DynamicLayout.NARROW || isMobile && dynamicLayout !== DynamicLayout.WIDE;
16
15
  const { height, ref } = useGetContentSize({ heightDefault: 245 });
17
- const imageGalleryWidth = calculateWidthImageGallery(height, 1, 1);
16
+ const imageGalleryWidth = 80;
18
17
  return /* @__PURE__ */ jsxs(Stack, {
19
18
  gap: "6",
20
19
  direction: isNarrowLayout ? "column" : "row",
@@ -30,11 +29,11 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
30
29
  styleImageGallery: {
31
30
  width: (() => {
32
31
  if (!isNarrowLayout && isMobile) return "100%";
33
- if (imageGalleryWidth) return `${imageGalleryWidth}px`;
32
+ return `${imageGalleryWidth}px`;
34
33
  })(),
35
34
  maxWidth: (() => {
36
35
  if (!isNarrowLayout && isMobile) return "100%";
37
- if (imageGalleryWidth) return `${imageGalleryWidth}px`;
36
+ return `${imageGalleryWidth}px`;
38
37
  })()
39
38
  },
40
39
  images,
@@ -6,7 +6,8 @@ let react = require("react");
6
6
  const RANDOM_NUMBER_MIN = 100;
7
7
  const RANDOM_NUMBER_MAX = 200;
8
8
  const SOCIAL_PROOF_COUNT_KEY = "v3_social_proof_values";
9
- const useSocialProofCount = ({ pageVariant, countKey, id }) => {
9
+ const DEFAULT_CUSTOMER_TEXT = "{count} customers";
10
+ const useSocialProofCount = ({ pageVariant, countKey, numberOfCustomersText = DEFAULT_CUSTOMER_TEXT, id }) => {
10
11
  const [customerCount, setCustomerCount] = (0, react.useState)(() => Math.floor(Math.random() * (RANDOM_NUMBER_MAX - RANDOM_NUMBER_MIN + 1) + RANDOM_NUMBER_MIN));
11
12
  (0, react.useEffect)(() => {
12
13
  const variant = pageVariant || require_types.PageVariant.PageVisit;
@@ -40,7 +41,7 @@ const useSocialProofCount = ({ pageVariant, countKey, id }) => {
40
41
  countKey,
41
42
  id
42
43
  ]);
43
- return `${customerCount} customers`;
44
+ return (numberOfCustomersText.includes("{count}") ? numberOfCustomersText : DEFAULT_CUSTOMER_TEXT).replace("{count}", customerCount.toString());
44
45
  };
45
46
 
46
47
  //#endregion
@@ -3,12 +3,14 @@ import { PageVariant } from "../types/types.cjs";
3
3
  //#region src/components/SocialProof/hooks/useSocialProofCount.d.ts
4
4
  interface UseSocialProofCountParams {
5
5
  pageVariant?: PageVariant;
6
+ numberOfCustomersText?: string;
6
7
  countKey?: string;
7
8
  id?: string;
8
9
  }
9
10
  declare const useSocialProofCount: ({
10
11
  pageVariant,
11
12
  countKey,
13
+ numberOfCustomersText,
12
14
  id
13
15
  }: UseSocialProofCountParams) => string;
14
16
  //#endregion
@@ -3,12 +3,14 @@ import { PageVariant } from "../types/types.js";
3
3
  //#region src/components/SocialProof/hooks/useSocialProofCount.d.ts
4
4
  interface UseSocialProofCountParams {
5
5
  pageVariant?: PageVariant;
6
+ numberOfCustomersText?: string;
6
7
  countKey?: string;
7
8
  id?: string;
8
9
  }
9
10
  declare const useSocialProofCount: ({
10
11
  pageVariant,
11
12
  countKey,
13
+ numberOfCustomersText,
12
14
  id
13
15
  }: UseSocialProofCountParams) => string;
14
16
  //#endregion
@@ -5,7 +5,8 @@ import { useEffect, useState } from "react";
5
5
  const RANDOM_NUMBER_MIN = 100;
6
6
  const RANDOM_NUMBER_MAX = 200;
7
7
  const SOCIAL_PROOF_COUNT_KEY = "v3_social_proof_values";
8
- const useSocialProofCount = ({ pageVariant, countKey, id }) => {
8
+ const DEFAULT_CUSTOMER_TEXT = "{count} customers";
9
+ const useSocialProofCount = ({ pageVariant, countKey, numberOfCustomersText = DEFAULT_CUSTOMER_TEXT, id }) => {
9
10
  const [customerCount, setCustomerCount] = useState(() => Math.floor(Math.random() * (RANDOM_NUMBER_MAX - RANDOM_NUMBER_MIN + 1) + RANDOM_NUMBER_MIN));
10
11
  useEffect(() => {
11
12
  const variant = pageVariant || PageVariant.PageVisit;
@@ -39,7 +40,7 @@ const useSocialProofCount = ({ pageVariant, countKey, id }) => {
39
40
  countKey,
40
41
  id
41
42
  ]);
42
- return `${customerCount} customers`;
43
+ return (numberOfCustomersText.includes("{count}") ? numberOfCustomersText : DEFAULT_CUSTOMER_TEXT).replace("{count}", customerCount.toString());
43
44
  };
44
45
 
45
46
  //#endregion
@@ -71,6 +71,11 @@ type WidgetContentProps = {
71
71
  * Displayed in the headline section alongside the customer count.
72
72
  */
73
73
  customerQueryText?: string;
74
+ /**
75
+ * Text displaying how many customers asked the customerQueryText question (e.g., "123 customers")
76
+ * Utilizes replacement to replace the value {count} with the replaced value
77
+ */
78
+ numberOfCustomersText?: string;
74
79
  /**
75
80
  * Text label for the primary prompt button.
76
81
  * Displayed prominently in the headline section.
@@ -71,6 +71,11 @@ type WidgetContentProps = {
71
71
  * Displayed in the headline section alongside the customer count.
72
72
  */
73
73
  customerQueryText?: string;
74
+ /**
75
+ * Text displaying how many customers asked the customerQueryText question (e.g., "123 customers")
76
+ * Utilizes replacement to replace the value {count} with the replaced value
77
+ */
78
+ numberOfCustomersText?: string;
74
79
  /**
75
80
  * Text label for the primary prompt button.
76
81
  * Displayed prominently in the headline section.
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime16 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/SparkleAnimation/SparkleAnimation.d.ts
4
4
  interface SparkleAnimationProps {
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
10
10
  color,
11
11
  className,
12
12
  animate
13
- }: SparkleAnimationProps) => react_jsx_runtime16.JSX.Element;
13
+ }: SparkleAnimationProps) => react_jsx_runtime17.JSX.Element;
14
14
  //#endregion
15
15
  export { SparkleAnimation };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/SparkleAnimation/SparkleAnimation.d.ts
4
4
  interface SparkleAnimationProps {
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
10
10
  color,
11
11
  className,
12
12
  animate
13
- }: SparkleAnimationProps) => react_jsx_runtime0.JSX.Element;
13
+ }: SparkleAnimationProps) => react_jsx_runtime2.JSX.Element;
14
14
  //#endregion
15
15
  export { SparkleAnimation };
@@ -1,10 +1,10 @@
1
1
  import { StackProps } from "./types/index.cjs";
2
- import * as react0 from "react";
2
+ import * as react4 from "react";
3
3
 
4
4
  //#region src/components/Stack/Stack.d.ts
5
5
  /**
6
6
  * Stack component for laying out children in a flexible container with gap.
7
7
  */
8
- declare const Stack: react0.ForwardRefExoticComponent<StackProps & react0.RefAttributes<HTMLDivElement>>;
8
+ declare const Stack: react4.ForwardRefExoticComponent<StackProps & react4.RefAttributes<HTMLDivElement>>;
9
9
  //#endregion
10
10
  export { Stack };
@@ -1,10 +1,10 @@
1
1
  import { StackProps } from "./types/index.js";
2
- import * as react184 from "react";
2
+ import * as react2 from "react";
3
3
 
4
4
  //#region src/components/Stack/Stack.d.ts
5
5
  /**
6
6
  * Stack component for laying out children in a flexible container with gap.
7
7
  */
8
- declare const Stack: react184.ForwardRefExoticComponent<StackProps & react184.RefAttributes<HTMLDivElement>>;
8
+ declare const Stack: react2.ForwardRefExoticComponent<StackProps & react2.RefAttributes<HTMLDivElement>>;
9
9
  //#endregion
10
10
  export { Stack };
@@ -33,6 +33,9 @@ const TextField = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, placeholder, val
33
33
  resetValue,
34
34
  onTranscriptionCompleted
35
35
  ]),
36
+ onTranscription: (0, react.useCallback)((transcript) => {
37
+ handleChange(transcript);
38
+ }, [handleChange]),
36
39
  disabled
37
40
  });
38
41
  const handleInternalFocus = () => {
@@ -31,6 +31,9 @@ const TextField = ({ theme = Theme.GLOBAL_CUSTOM, placeholder, value: controlled
31
31
  resetValue,
32
32
  onTranscriptionCompleted
33
33
  ]),
34
+ onTranscription: useCallback((transcript) => {
35
+ handleChange(transcript);
36
+ }, [handleChange]),
34
37
  disabled
35
38
  });
36
39
  const handleInternalFocus = () => {