@envive-ai/react-toolkit-v3 0.3.25 → 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 (288) 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/CSSVariablesEditor/hooks/useGetCssVariablesOptions.cjs +1 -1
  6. package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.js +1 -1
  7. package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.cjs +1 -1
  8. package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.js +1 -1
  9. package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +4 -4
  10. package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +4 -4
  11. package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +3 -3
  12. package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +3 -3
  13. package/dist/Carousel/Carousel.d.cts +2 -2
  14. package/dist/Carousel/Carousel.d.ts +2 -2
  15. package/dist/Carousel/components/Badge.cjs +1 -1
  16. package/dist/Carousel/components/Badge.js +1 -1
  17. package/dist/Carousel/components/Container.cjs +1 -1
  18. package/dist/Carousel/components/Container.js +1 -1
  19. package/dist/ChatFooter/ChatFooter.cjs +2 -1
  20. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  21. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  22. package/dist/ChatFooter/ChatFooter.js +2 -1
  23. package/dist/ChatFooter/components/Layout.cjs +3 -3
  24. package/dist/ChatFooter/components/Layout.d.cts +1 -0
  25. package/dist/ChatFooter/components/Layout.d.ts +1 -0
  26. package/dist/ChatFooter/components/Layout.js +3 -3
  27. package/dist/ChatFooter/components/index.d.cts +6 -5
  28. package/dist/ChatFooter/components/index.d.ts +6 -5
  29. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  30. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  31. package/dist/ChatHeader/hooks/useGetHandleProperties.cjs +1 -1
  32. package/dist/ChatHeader/hooks/useGetHandleProperties.js +1 -1
  33. package/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
  34. package/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
  35. package/dist/ChatHeader/hooks/useGetToggleOptionProperties.cjs +6 -6
  36. package/dist/ChatHeader/hooks/useGetToggleOptionProperties.js +6 -6
  37. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  38. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  39. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  40. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  41. package/dist/ChatPreviewComparison/components/Layout.cjs +2 -2
  42. package/dist/ChatPreviewComparison/components/Layout.js +2 -2
  43. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  44. package/dist/Container/Container.d.cts +176 -176
  45. package/dist/Container/Container.d.ts +176 -176
  46. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  47. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  48. package/dist/DesignTokens/components/FontFamily.cjs +1 -1
  49. package/dist/DesignTokens/components/FontFamily.js +1 -1
  50. package/dist/DesignTokens/components/FontSize.cjs +1 -1
  51. package/dist/DesignTokens/components/FontSize.js +1 -1
  52. package/dist/DesignTokens/components/FontWeight.cjs +1 -1
  53. package/dist/DesignTokens/components/FontWeight.js +1 -1
  54. package/dist/DesignTokens/components/LetterSpacing.cjs +1 -1
  55. package/dist/DesignTokens/components/LetterSpacing.js +1 -1
  56. package/dist/DesignTokens/components/LineHeight.cjs +1 -1
  57. package/dist/DesignTokens/components/LineHeight.js +1 -1
  58. package/dist/DesignTokens/components/Typography.cjs +1 -1
  59. package/dist/DesignTokens/components/Typography.js +1 -1
  60. package/dist/Disclaimer/components/Container.cjs +1 -1
  61. package/dist/Disclaimer/components/Container.js +1 -1
  62. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  63. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  64. package/dist/DocumentRetrievalCard/components/Image.cjs +1 -1
  65. package/dist/DocumentRetrievalCard/components/Image.js +1 -1
  66. package/dist/DocumentRetrievalCard/components/Layout.cjs +1 -1
  67. package/dist/DocumentRetrievalCard/components/Layout.js +1 -1
  68. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
  69. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
  70. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.cjs +1 -1
  71. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.js +1 -1
  72. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.cjs +1 -1
  73. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.js +1 -1
  74. package/dist/DocumentRetrievalCard/components/ViewArticleButton.cjs +1 -1
  75. package/dist/DocumentRetrievalCard/components/ViewArticleButton.js +1 -1
  76. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  77. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  78. package/dist/FloatingButton/components/Button.cjs +1 -1
  79. package/dist/FloatingButton/components/Button.js +1 -1
  80. package/dist/FloatingButton/components/Container.cjs +1 -1
  81. package/dist/FloatingButton/components/Container.js +1 -1
  82. package/dist/FloatingButton/components/Wrapper.cjs +1 -1
  83. package/dist/FloatingButton/components/Wrapper.js +1 -1
  84. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  85. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  86. package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
  87. package/dist/FloatingChat/components/ChatMessages.js +1 -1
  88. package/dist/FloatingChat/components/Layout.cjs +1 -1
  89. package/dist/FloatingChat/components/Layout.js +1 -1
  90. package/dist/FloatingChat/components/ProductResultsModal.cjs +1 -1
  91. package/dist/FloatingChat/components/ProductResultsModal.js +1 -1
  92. package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
  93. package/dist/FloatingChat/components/ResultsGridView.js +1 -1
  94. package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +6 -2
  95. package/dist/FloatingChat/components/SalesAgentBadgeContent.js +6 -2
  96. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +2 -1
  97. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +2 -1
  98. package/dist/Form/Form.cjs +1 -1
  99. package/dist/Form/Form.js +1 -1
  100. package/dist/Form/components/Layout.cjs +1 -1
  101. package/dist/Form/components/Layout.js +1 -1
  102. package/dist/Form/components/SubmitButtonItem.cjs +1 -1
  103. package/dist/Form/components/SubmitButtonItem.js +1 -1
  104. package/dist/Form/components/TextFieldItem.cjs +1 -1
  105. package/dist/Form/components/TextFieldItem.js +1 -1
  106. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +89 -25
  107. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +5 -7
  108. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +5 -7
  109. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +90 -26
  110. package/dist/FullPageSalesAgent/components/Layout.cjs +35 -28
  111. package/dist/FullPageSalesAgent/components/Layout.js +35 -28
  112. package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +102 -0
  113. package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +100 -0
  114. package/dist/FullPageSalesAgent/components/index.cjs +1 -0
  115. package/dist/FullPageSalesAgent/components/index.js +1 -0
  116. package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.cjs +16 -6
  117. package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.js +16 -6
  118. package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.cjs +43 -0
  119. package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.js +41 -0
  120. package/dist/Image/Image.cjs +1 -1
  121. package/dist/Image/Image.d.cts +2 -2
  122. package/dist/Image/Image.d.ts +2 -2
  123. package/dist/Image/Image.js +1 -1
  124. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  125. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  126. package/dist/ImageGallery/components/Layout.cjs +1 -1
  127. package/dist/ImageGallery/components/Layout.js +1 -1
  128. package/dist/ImageGallery/utils/functions.cjs +1 -1
  129. package/dist/ImageGallery/utils/functions.js +1 -1
  130. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  131. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  132. package/dist/Message/components/Layout.cjs +1 -1
  133. package/dist/Message/components/Layout.js +1 -1
  134. package/dist/Message/components/LinkButton.cjs +1 -1
  135. package/dist/Message/components/LinkButton.js +1 -1
  136. package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
  137. package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
  138. package/dist/OrderLookupCard/components/Layout.cjs +1 -1
  139. package/dist/OrderLookupCard/components/Layout.js +1 -1
  140. package/dist/OrderLookupCard/components/MoreProductsOverlay.cjs +1 -1
  141. package/dist/OrderLookupCard/components/MoreProductsOverlay.js +1 -1
  142. package/dist/OrderLookupCard/components/ProductImageGridItem.cjs +1 -1
  143. package/dist/OrderLookupCard/components/ProductImageGridItem.js +1 -1
  144. package/dist/OrderLookupCard/components/ProductImageItem.cjs +1 -1
  145. package/dist/OrderLookupCard/components/ProductImageItem.js +1 -1
  146. package/dist/OrderLookupCard/components/ProductImagesGrid.cjs +1 -1
  147. package/dist/OrderLookupCard/components/ProductImagesGrid.js +1 -1
  148. package/dist/OrderLookupCard/components/StatusLabel.cjs +1 -1
  149. package/dist/OrderLookupCard/components/StatusLabel.js +1 -1
  150. package/dist/OrderLookupCard/components/TrackOrderLink.cjs +1 -1
  151. package/dist/OrderLookupCard/components/TrackOrderLink.js +1 -1
  152. package/dist/ProductCard/ProductCard.cjs +1 -1
  153. package/dist/ProductCard/ProductCard.d.cts +2 -2
  154. package/dist/ProductCard/ProductCard.d.ts +2 -2
  155. package/dist/ProductCard/ProductCard.js +1 -1
  156. package/dist/PromptButton/PromptButton.cjs +1 -1
  157. package/dist/PromptButton/PromptButton.d.cts +2 -2
  158. package/dist/PromptButton/PromptButton.d.ts +2 -2
  159. package/dist/PromptButton/PromptButton.js +1 -1
  160. package/dist/PromptButton/components/Layout.cjs +1 -1
  161. package/dist/PromptButton/components/Layout.js +1 -1
  162. package/dist/PromptButton/components/Loading.cjs +1 -1
  163. package/dist/PromptButton/components/Loading.js +1 -1
  164. package/dist/PromptButton/hooks/useGetLayoutBaseProperties.cjs +1 -1
  165. package/dist/PromptButton/hooks/useGetLayoutBaseProperties.js +1 -1
  166. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  167. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  168. package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +1 -1
  169. package/dist/PromptButtonCarouselWithImage/components/Layout.js +1 -1
  170. package/dist/PromptButtonCarouselWithImage/components/Skeleton.cjs +1 -1
  171. package/dist/PromptButtonCarouselWithImage/components/Skeleton.js +1 -1
  172. package/dist/PromptCarousel/PromptCarousel.cjs +1 -1
  173. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  174. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  175. package/dist/PromptCarousel/PromptCarousel.js +1 -1
  176. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  177. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  178. package/dist/ReviewCard/components/Container.cjs +1 -1
  179. package/dist/ReviewCard/components/Container.js +1 -1
  180. package/dist/ReviewCard/components/Rating.cjs +1 -1
  181. package/dist/ReviewCard/components/Rating.js +1 -1
  182. package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
  183. package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
  184. package/dist/ReviewCard/components/index.d.cts +6 -6
  185. package/dist/ReviewCard/components/index.d.ts +6 -6
  186. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  187. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  188. package/dist/SalesAgentProductCard/components/Container.cjs +1 -1
  189. package/dist/SalesAgentProductCard/components/Container.js +1 -1
  190. package/dist/SalesAgentProductCard/components/Price.cjs +2 -2
  191. package/dist/SalesAgentProductCard/components/Price.js +2 -2
  192. package/dist/SalesAgentProductCard/components/ProductImage.cjs +1 -1
  193. package/dist/SalesAgentProductCard/components/ProductImage.js +1 -1
  194. package/dist/SalesAgentProductCard/components/ProductName.cjs +1 -1
  195. package/dist/SalesAgentProductCard/components/ProductName.js +1 -1
  196. package/dist/SalesAgentProductCard/components/Rate.cjs +1 -1
  197. package/dist/SalesAgentProductCard/components/Rate.js +1 -1
  198. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  199. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  200. package/dist/SocialProof/SocialProof.cjs +4 -3
  201. package/dist/SocialProof/SocialProof.d.cts +2 -2
  202. package/dist/SocialProof/SocialProof.d.ts +2 -2
  203. package/dist/SocialProof/SocialProof.js +4 -3
  204. package/dist/SocialProof/components/Headline.cjs +2 -2
  205. package/dist/SocialProof/components/Headline.js +2 -2
  206. package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
  207. package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
  208. package/dist/SocialProof/components/LayoutSingle.cjs +3 -4
  209. package/dist/SocialProof/components/LayoutSingle.js +3 -4
  210. package/dist/SocialProof/hooks/useSocialProofCount.cjs +3 -2
  211. package/dist/SocialProof/hooks/useSocialProofCount.d.cts +2 -0
  212. package/dist/SocialProof/hooks/useSocialProofCount.d.ts +2 -0
  213. package/dist/SocialProof/hooks/useSocialProofCount.js +3 -2
  214. package/dist/SocialProof/types/types.d.cts +5 -0
  215. package/dist/SocialProof/types/types.d.ts +5 -0
  216. package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
  217. package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
  218. package/dist/Stack/Stack.d.cts +2 -2
  219. package/dist/Stack/Stack.d.ts +2 -2
  220. package/dist/TextField/TextField.cjs +4 -1
  221. package/dist/TextField/TextField.js +4 -1
  222. package/dist/TextField/components/Input.cjs +1 -1
  223. package/dist/TextField/components/Input.js +1 -1
  224. package/dist/TextField/components/Layout.cjs +1 -1
  225. package/dist/TextField/components/Layout.js +1 -1
  226. package/dist/TextField/components/SendIcon.cjs +1 -1
  227. package/dist/TextField/components/SendIcon.js +1 -1
  228. package/dist/TextField/hooks/useVoiceInput.cjs +9 -1
  229. package/dist/TextField/hooks/useVoiceInput.js +9 -1
  230. package/dist/TextField/types/index.d.cts +12 -0
  231. package/dist/TextField/types/index.d.ts +12 -0
  232. package/dist/Title/Title.cjs +1 -1
  233. package/dist/Title/Title.js +1 -1
  234. package/dist/Title/components/Layout.cjs +1 -1
  235. package/dist/Title/components/Layout.js +1 -1
  236. package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
  237. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  238. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  239. package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
  240. package/dist/Tokens/index.cjs +6 -6
  241. package/dist/Tokens/index.js +6 -6
  242. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  243. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  244. package/dist/Typography/Typography.d.cts +4 -4
  245. package/dist/WelcomeMessage/components/Container.cjs +1 -1
  246. package/dist/WelcomeMessage/components/Container.js +1 -1
  247. package/dist/WidgetTextField/WidgetTextField.cjs +1 -1
  248. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  249. package/dist/WidgetTextField/WidgetTextField.js +1 -1
  250. package/dist/WidgetTextField/components/Container.cjs +1 -1
  251. package/dist/WidgetTextField/components/Container.js +1 -1
  252. package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
  253. package/dist/WidgetTextField/components/Skeleton.js +1 -1
  254. package/dist/WidgetWrapper/WidgetWrapper.cjs +1 -1
  255. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  256. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  257. package/dist/WidgetWrapper/WidgetWrapper.js +1 -1
  258. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  259. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  260. package/dist/packages/components-v3/tokens/typography/typography.cjs +1 -1
  261. package/dist/packages/components-v3/tokens/typography/typography.js +1 -1
  262. package/dist/styles.css +1 -1
  263. package/dist/utils/resolveTheme.cjs +1 -1
  264. package/dist/utils/resolveTheme.js +1 -1
  265. package/package.json +1 -1
  266. package/src/components/ChatFooter/ChatFooter.tsx +1 -0
  267. package/src/components/ChatFooter/components/Layout.tsx +3 -1
  268. package/src/components/ChatHeader/hooks/useGetToggleOptionProperties.ts +6 -6
  269. package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -0
  270. package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +3 -0
  271. package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +139 -49
  272. package/src/components/FullPageSalesAgent/components/Layout.tsx +10 -3
  273. package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +121 -0
  274. package/src/components/FullPageSalesAgent/components/index.ts +2 -0
  275. package/src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts +15 -5
  276. package/src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts +51 -0
  277. package/src/components/PromptButton/hooks/useGetLayoutBaseProperties.ts +3 -1
  278. package/src/components/SalesAgentProductCard/components/Price.tsx +2 -2
  279. package/src/components/SalesAgentProductCard/components/Rate.tsx +1 -1
  280. package/src/components/SocialProof/SocialProof.tsx +4 -2
  281. package/src/components/SocialProof/components/Headline.tsx +1 -1
  282. package/src/components/SocialProof/components/LayoutSingle.tsx +6 -5
  283. package/src/components/SocialProof/hooks/useSocialProofCount.ts +8 -1
  284. package/src/components/SocialProof/types/types.ts +6 -0
  285. package/src/components/TextField/TextField.tsx +10 -2
  286. package/src/components/TextField/__tests__/VoiceInputButton.test.tsx +22 -58
  287. package/src/components/TextField/hooks/useVoiceInput.ts +8 -0
  288. package/src/components/TextField/types/index.ts +12 -0
@@ -1,5 +1,5 @@
1
1
  import { SalesAgentProductCardProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime4 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_runtime4.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_runtime7 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_runtime7.JSX.Element;
33
+ }: SalesAgentProductCardProps) => react_jsx_runtime15.JSX.Element;
34
34
  //#endregion
35
35
  export { SalesAgentProductCard };
@@ -7,9 +7,9 @@ require('../../Container/index.cjs');
7
7
  const require_types = require('../types/types.cjs');
8
8
  const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
9
9
  const require_useGetProductDescriptionProperties = require('../hooks/useGetProductDescriptionProperties.cjs');
10
+ let react_jsx_runtime = require("react/jsx-runtime");
10
11
  let classnames = require("classnames");
11
12
  classnames = require_rolldown_runtime.__toESM(classnames);
12
- let react_jsx_runtime = require("react/jsx-runtime");
13
13
 
14
14
  //#region src/components/SalesAgentProductCard/components/Container.tsx
15
15
  const Container$1 = ({ id, testId, className, style, variant = require_types.SalesAgentProductCardVariant.SMALL, theme = require_theme.Theme.GLOBAL_CUSTOM, productName, price, rate, image, url, target = "_self", onClick }) => {
@@ -6,8 +6,8 @@ import "../../Container/index.js";
6
6
  import { SalesAgentProductCardVariant } from "../types/types.js";
7
7
  import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
8
8
  import { useGetProductDescriptionProperties } from "../hooks/useGetProductDescriptionProperties.js";
9
- import classNames from "classnames";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
+ import classNames from "classnames";
11
11
 
12
12
  //#region src/components/SalesAgentProductCard/components/Container.tsx
13
13
  const Container$1 = ({ id, testId, className, style, variant = SalesAgentProductCardVariant.SMALL, theme = Theme.GLOBAL_CUSTOM, productName, price, rate, image, url, target = "_self", onClick }) => {
@@ -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
  })]
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_Image = require('../../Image/Image.cjs');
3
3
  require('../../Image/index.cjs');
4
4
  const require_useGetImageProperties = require('../hooks/useGetImageProperties.cjs');
5
+ let react_jsx_runtime = require("react/jsx-runtime");
5
6
  let classnames = require("classnames");
6
7
  classnames = require_rolldown_runtime.__toESM(classnames);
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
8
 
9
9
  //#region src/components/SalesAgentProductCard/components/ProductImage.tsx
10
10
  const ProductImage = ({ src, alt, variant, aspectRatio, className, ...props }) => {
@@ -1,8 +1,8 @@
1
1
  import { Image } from "../../Image/Image.js";
2
2
  import "../../Image/index.js";
3
3
  import { useGetImageProperties } from "../hooks/useGetImageProperties.js";
4
- import classNames from "classnames";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import classNames from "classnames";
6
6
 
7
7
  //#region src/components/SalesAgentProductCard/components/ProductImage.tsx
8
8
  const ProductImage = ({ src, alt, variant, aspectRatio, className, ...props }) => {
@@ -4,9 +4,9 @@ const require_index = require('../../Typography/types/index.cjs');
4
4
  const require_Typography = require('../../Typography/Typography.cjs');
5
5
  require('../../Typography/index.cjs');
6
6
  const require_useGetProductNameProperties = require('../hooks/useGetProductNameProperties.cjs');
7
+ let react_jsx_runtime = require("react/jsx-runtime");
7
8
  let classnames = require("classnames");
8
9
  classnames = require_rolldown_runtime.__toESM(classnames);
9
- let react_jsx_runtime = require("react/jsx-runtime");
10
10
 
11
11
  //#region src/components/SalesAgentProductCard/components/ProductName.tsx
12
12
  const ProductName = ({ label, theme = require_theme.Theme.GLOBAL_CUSTOM, style, className }) => {
@@ -3,8 +3,8 @@ import { TypographyColor, TypographyVariant } from "../../Typography/types/index
3
3
  import { Typography } from "../../Typography/Typography.js";
4
4
  import "../../Typography/index.js";
5
5
  import { useGetProductNameProperties } from "../hooks/useGetProductNameProperties.js";
6
- import classNames from "classnames";
7
6
  import { jsx } from "react/jsx-runtime";
7
+ import classNames from "classnames";
8
8
 
9
9
  //#region src/components/SalesAgentProductCard/components/ProductName.tsx
10
10
  const ProductName = ({ label, theme = Theme.GLOBAL_CUSTOM, style, className }) => {
@@ -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_runtime0 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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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 react2 from "react";
8
- import * as react_jsx_runtime8 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_runtime8.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_runtime8.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_runtime8.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_runtime8.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_runtime8.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
- }) => react2.ReactElement<react2.SVGProps<SVGSVGElement>, string | react2.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_runtime7 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_runtime7.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_runtime2 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_runtime2.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,
@@ -12,9 +12,9 @@ const require_PromptButton_types_index = require('../../PromptButton/types/index
12
12
  const require_PromptButton = require('../../PromptButton/PromptButton.cjs');
13
13
  require('../../PromptButton/index.cjs');
14
14
  let react = require("react");
15
+ let react_jsx_runtime = require("react/jsx-runtime");
15
16
  let classnames = require("classnames");
16
17
  classnames = require_rolldown_runtime.__toESM(classnames);
17
- let react_jsx_runtime = require("react/jsx-runtime");
18
18
 
19
19
  //#region src/components/SocialProof/components/Headline.tsx
20
20
  const resolveVariant = (theme) => {
@@ -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: [
@@ -11,8 +11,8 @@ import { PromptButtonVariant } from "../../PromptButton/types/index.js";
11
11
  import { PromptButton } from "../../PromptButton/PromptButton.js";
12
12
  import "../../PromptButton/index.js";
13
13
  import { forwardRef } from "react";
14
- import classNames from "classnames";
15
14
  import { jsx, jsxs } from "react/jsx-runtime";
15
+ import classNames from "classnames";
16
16
 
17
17
  //#region src/components/SocialProof/components/Headline.tsx
18
18
  const resolveVariant = (theme) => {
@@ -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: [
@@ -8,9 +8,9 @@ const require_useGetContentSize = require('../../utils/useGetContentSize.cjs');
8
8
  const require_types = require('../../ImageGallery/types/types.cjs');
9
9
  const require_functions = require('../utils/functions.cjs');
10
10
  const require_ImageGallery = require('./ImageGallery.cjs');
11
+ let react_jsx_runtime = require("react/jsx-runtime");
11
12
  let classnames = require("classnames");
12
13
  classnames = require_rolldown_runtime.__toESM(classnames);
13
- let react_jsx_runtime = require("react/jsx-runtime");
14
14
 
15
15
  //#region src/components/SocialProof/components/LayoutFourHorizontal.tsx
16
16
  const LayoutFourHorizontal = ({ hideImage, images, headline, subheadline, textfield }) => {
@@ -7,8 +7,8 @@ import { useGetContentSize } from "../../utils/useGetContentSize.js";
7
7
  import { ImageGalleryLayout } from "../../ImageGallery/types/types.js";
8
8
  import { calculateWidthImageGallery } from "../utils/functions.js";
9
9
  import { ImageGallery } from "./ImageGallery.js";
10
- import classNames from "classnames";
11
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
+ import classNames from "classnames";
12
12
 
13
13
  //#region src/components/SocialProof/components/LayoutFourHorizontal.tsx
14
14
  const LayoutFourHorizontal = ({ hideImage, images, headline, subheadline, textfield }) => {
@@ -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_runtime9 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_runtime9.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_runtime4 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_runtime4.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 react2 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: react2.ForwardRefExoticComponent<StackProps & react2.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 };