@envive-ai/react-toolkit-v3 0.3.23 → 0.3.24

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 (89) hide show
  1. package/dist/AnimatedText/AnimatedText.d.ts +3 -3
  2. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
  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.d.cts +2 -2
  7. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  8. package/dist/ChatFooter/components/index.d.cts +5 -5
  9. package/dist/ChatFooter/components/index.d.ts +5 -5
  10. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  11. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  12. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  13. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  14. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  15. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  16. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  17. package/dist/Container/Container.d.cts +2 -2
  18. package/dist/Container/Container.d.ts +2 -2
  19. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  20. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  21. package/dist/Disclaimer/components/Container.cjs +1 -1
  22. package/dist/Disclaimer/components/Container.js +1 -1
  23. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  24. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  25. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  26. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  27. package/dist/FloatingChat/FloatingChat.cjs +5 -0
  28. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  29. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  30. package/dist/FloatingChat/FloatingChat.js +5 -0
  31. package/dist/FloatingChat/components/SlideChatContent.cjs +1 -1
  32. package/dist/FloatingChat/components/SlideChatContent.js +1 -1
  33. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +5 -0
  34. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
  35. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
  36. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +5 -0
  37. package/dist/Image/Image.d.cts +2 -2
  38. package/dist/Image/Image.d.ts +2 -2
  39. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  40. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  41. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  42. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  43. package/dist/ProductCard/ProductCard.d.cts +2 -2
  44. package/dist/ProductCard/ProductCard.d.ts +2 -2
  45. package/dist/PromptButton/PromptButton.d.cts +2 -2
  46. package/dist/PromptButton/PromptButton.d.ts +2 -2
  47. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  48. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  49. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  50. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  51. package/dist/PromptCarousel/hooks/useCarouselButtons.cjs +3 -2
  52. package/dist/PromptCarousel/hooks/useCarouselButtons.js +3 -2
  53. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  54. package/dist/ReviewCard/components/index.d.ts +4 -4
  55. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  56. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  57. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  58. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  59. package/dist/SocialProof/SocialProof.d.cts +2 -2
  60. package/dist/SocialProof/SocialProof.d.ts +2 -2
  61. package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
  62. package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
  63. package/dist/Stack/Stack.d.cts +2 -2
  64. package/dist/Stack/Stack.d.ts +2 -2
  65. package/dist/TextField/hooks/useVoiceInput.cjs +8 -15
  66. package/dist/TextField/hooks/useVoiceInput.js +8 -15
  67. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  68. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  69. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  70. package/dist/Typography/Typography.d.cts +4 -4
  71. package/dist/Typography/Typography.d.ts +4 -4
  72. package/dist/WidgetTextField/WidgetTextField.cjs +1 -1
  73. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  74. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  75. package/dist/WidgetTextField/WidgetTextField.js +1 -1
  76. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  77. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  78. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  79. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  80. package/dist/styles.css +1 -1
  81. package/package.json +1 -1
  82. package/src/components/Disclaimer/components/Container.tsx +1 -1
  83. package/src/components/FloatingChat/FloatingChat.tsx +5 -0
  84. package/src/components/FloatingChat/components/SlideChatContent.tsx +1 -1
  85. package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +11 -6
  86. package/src/components/PromptCarousel/__tests__/PromptCarousel.test.tsx +19 -0
  87. package/src/components/PromptCarousel/hooks/useCarouselButtons.ts +4 -2
  88. package/src/components/TextField/hooks/useVoiceInput.ts +11 -13
  89. package/src/components/WidgetTextField/WidgetTextField.tsx +1 -1
@@ -1,13 +1,13 @@
1
1
  import { AnimatedTextProps } from "./types/types.js";
2
- import * as react181 from "react";
2
+ import * as react184 from "react";
3
3
 
4
4
  //#region src/components/AnimatedText/AnimatedText.d.ts
5
- declare const AnimatedText: react181.MemoExoticComponent<({
5
+ declare const AnimatedText: react184.MemoExoticComponent<({
6
6
  sequence,
7
7
  typingDuration,
8
8
  transition,
9
9
  loop,
10
10
  getNodeWrapper
11
- }: AnimatedTextProps) => react181.ReactNode>;
11
+ }: AnimatedTextProps) => react184.ReactNode>;
12
12
  //#endregion
13
13
  export { AnimatedText };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime34 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/CSSVariablesEditor/CssVariablesEditorComponent.d.ts
4
4
  declare const CssVariablesEditorComponent: ({
5
5
  selectedMerchantName
6
6
  }: {
7
7
  selectedMerchantName: string;
8
- }) => react_jsx_runtime34.JSX.Element;
8
+ }) => react_jsx_runtime25.JSX.Element;
9
9
  //#endregion
10
10
  export { CssVariablesEditorComponent };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime31 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime22 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/CSSVariablesEditor/CssVariablesEditorComponent.d.ts
4
4
  declare const CssVariablesEditorComponent: ({
5
5
  selectedMerchantName
6
6
  }: {
7
7
  selectedMerchantName: string;
8
- }) => react_jsx_runtime31.JSX.Element;
8
+ }) => react_jsx_runtime22.JSX.Element;
9
9
  //#endregion
10
10
  export { CssVariablesEditorComponent };
@@ -1,5 +1,5 @@
1
1
  import { CarouselProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime27 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Carousel/Carousel.d.ts
5
5
  declare const Carousel: ({
@@ -12,6 +12,6 @@ declare const Carousel: ({
12
12
  badgeContent,
13
13
  theme,
14
14
  hideNavigation
15
- }: CarouselProps) => react_jsx_runtime27.JSX.Element;
15
+ }: CarouselProps) => react_jsx_runtime21.JSX.Element;
16
16
  //#endregion
17
17
  export { Carousel };
@@ -1,5 +1,5 @@
1
1
  import { CarouselProps } from "./types/types.js";
2
- import * as react_jsx_runtime32 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime35 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Carousel/Carousel.d.ts
5
5
  declare const Carousel: ({
@@ -12,6 +12,6 @@ declare const Carousel: ({
12
12
  badgeContent,
13
13
  theme,
14
14
  hideNavigation
15
- }: CarouselProps) => react_jsx_runtime32.JSX.Element;
15
+ }: CarouselProps) => react_jsx_runtime35.JSX.Element;
16
16
  //#endregion
17
17
  export { Carousel };
@@ -1,5 +1,5 @@
1
1
  import { ChatFooterProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime17 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatFooter/ChatFooter.d.ts
5
5
  declare const ChatFooter: ({
@@ -24,6 +24,6 @@ declare const ChatFooter: ({
24
24
  voiceInputEnabled,
25
25
  onTranscriptionStarted,
26
26
  onTranscriptionCompleted
27
- }: ChatFooterProps) => react_jsx_runtime17.JSX.Element;
27
+ }: ChatFooterProps) => react_jsx_runtime29.JSX.Element;
28
28
  //#endregion
29
29
  export { ChatFooter };
@@ -1,5 +1,5 @@
1
1
  import { ChatFooterProps } from "./types/types.js";
2
- import * as react_jsx_runtime35 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatFooter/ChatFooter.d.ts
5
5
  declare const ChatFooter: ({
@@ -24,6 +24,6 @@ declare const ChatFooter: ({
24
24
  voiceInputEnabled,
25
25
  onTranscriptionStarted,
26
26
  onTranscriptionCompleted
27
- }: ChatFooterProps) => react_jsx_runtime35.JSX.Element;
27
+ }: ChatFooterProps) => react_jsx_runtime32.JSX.Element;
28
28
  //#endregion
29
29
  export { ChatFooter };
@@ -1,8 +1,8 @@
1
1
  import { LayoutProps } from "./Layout.cjs";
2
2
  import { PromptSuggestionsProps } from "./PromptSuggestions.cjs";
3
3
  import { TextFieldProps } from "../../TextField/types/index.cjs";
4
- import * as react5 from "react";
5
- import * as react_jsx_runtime15 from "react/jsx-runtime";
4
+ import * as react10 from "react";
5
+ import * as react_jsx_runtime27 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/ChatFooter/components/index.d.ts
8
8
  declare const ChatFooterComponents: {
@@ -17,13 +17,13 @@ declare const ChatFooterComponents: {
17
17
  testId,
18
18
  className,
19
19
  style
20
- }: LayoutProps) => react_jsx_runtime15.JSX.Element;
20
+ }: LayoutProps) => react_jsx_runtime27.JSX.Element;
21
21
  EnviveLogo: ({
22
22
  style
23
23
  }: {
24
24
  className?: string;
25
25
  style?: React.CSSProperties;
26
- }) => react5.ReactElement<react5.SVGProps<SVGSVGElement>, string | react5.JSXElementConstructor<any>>;
26
+ }) => react10.ReactElement<react10.SVGProps<SVGSVGElement>, string | react10.JSXElementConstructor<any>>;
27
27
  PromptSuggestions: ({
28
28
  theme,
29
29
  suggestions,
@@ -32,7 +32,7 @@ declare const ChatFooterComponents: {
32
32
  style,
33
33
  disabled,
34
34
  parentWidget
35
- }: PromptSuggestionsProps) => react_jsx_runtime15.JSX.Element;
35
+ }: PromptSuggestionsProps) => react_jsx_runtime27.JSX.Element;
36
36
  TextField: ({
37
37
  theme,
38
38
  placeholder,
@@ -1,8 +1,8 @@
1
1
  import { LayoutProps } from "./Layout.js";
2
2
  import { PromptSuggestionsProps } from "./PromptSuggestions.js";
3
3
  import { TextFieldProps } from "../../TextField/types/index.js";
4
- import * as react183 from "react";
5
- import * as react_jsx_runtime33 from "react/jsx-runtime";
4
+ import * as react181 from "react";
5
+ import * as react_jsx_runtime30 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/ChatFooter/components/index.d.ts
8
8
  declare const ChatFooterComponents: {
@@ -17,13 +17,13 @@ declare const ChatFooterComponents: {
17
17
  testId,
18
18
  className,
19
19
  style
20
- }: LayoutProps) => react_jsx_runtime33.JSX.Element;
20
+ }: LayoutProps) => react_jsx_runtime30.JSX.Element;
21
21
  EnviveLogo: ({
22
22
  style
23
23
  }: {
24
24
  className?: string;
25
25
  style?: React.CSSProperties;
26
- }) => react183.ReactElement<react183.SVGProps<SVGSVGElement>, string | react183.JSXElementConstructor<any>>;
26
+ }) => react181.ReactElement<react181.SVGProps<SVGSVGElement>, string | react181.JSXElementConstructor<any>>;
27
27
  PromptSuggestions: ({
28
28
  theme,
29
29
  suggestions,
@@ -32,7 +32,7 @@ declare const ChatFooterComponents: {
32
32
  style,
33
33
  disabled,
34
34
  parentWidget
35
- }: PromptSuggestionsProps) => react_jsx_runtime33.JSX.Element;
35
+ }: PromptSuggestionsProps) => react_jsx_runtime30.JSX.Element;
36
36
  TextField: ({
37
37
  theme,
38
38
  placeholder,
@@ -1,5 +1,5 @@
1
1
  import { ChatHeaderProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime35 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime30 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatHeader/ChatHeader.d.ts
5
5
  declare const ChatHeader: ({
@@ -21,6 +21,6 @@ declare const ChatHeader: ({
21
21
  headerBgColor,
22
22
  onClose,
23
23
  onToggle
24
- }: ChatHeaderProps) => react_jsx_runtime35.JSX.Element;
24
+ }: ChatHeaderProps) => react_jsx_runtime30.JSX.Element;
25
25
  //#endregion
26
26
  export { ChatHeader };
@@ -1,5 +1,5 @@
1
1
  import { ChatHeaderProps } from "./types/index.js";
2
- import * as react_jsx_runtime36 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime27 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatHeader/ChatHeader.d.ts
5
5
  declare const ChatHeader: ({
@@ -21,6 +21,6 @@ declare const ChatHeader: ({
21
21
  headerBgColor,
22
22
  onClose,
23
23
  onToggle
24
- }: ChatHeaderProps) => react_jsx_runtime36.JSX.Element;
24
+ }: ChatHeaderProps) => react_jsx_runtime27.JSX.Element;
25
25
  //#endregion
26
26
  export { ChatHeader };
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime32 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime35 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatPreview/ChatPreview.d.ts
5
5
  declare const ChatPreview: ({
@@ -7,6 +7,6 @@ declare const ChatPreview: ({
7
7
  widgetContentProps,
8
8
  widgetStyleProps,
9
9
  widgetEventProps
10
- }: ChatPreviewProps) => react_jsx_runtime32.JSX.Element;
10
+ }: ChatPreviewProps) => react_jsx_runtime35.JSX.Element;
11
11
  //#endregion
12
12
  export { ChatPreview };
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewProps } from "./types/types.js";
2
- import * as react_jsx_runtime29 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime33 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatPreview/ChatPreview.d.ts
5
5
  declare const ChatPreview: ({
@@ -7,6 +7,6 @@ declare const ChatPreview: ({
7
7
  widgetContentProps,
8
8
  widgetStyleProps,
9
9
  widgetEventProps
10
- }: ChatPreviewProps) => react_jsx_runtime29.JSX.Element;
10
+ }: ChatPreviewProps) => react_jsx_runtime33.JSX.Element;
11
11
  //#endregion
12
12
  export { ChatPreview };
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewComparisonProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime44 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime34 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatPreviewComparison/ChatPreviewComparison.d.ts
5
5
  declare const ChatPreviewComparison: ({
@@ -7,6 +7,6 @@ declare const ChatPreviewComparison: ({
7
7
  widgetContentProps,
8
8
  widgetStyleProps,
9
9
  widgetEventProps
10
- }: ChatPreviewComparisonProps) => react_jsx_runtime44.JSX.Element;
10
+ }: ChatPreviewComparisonProps) => react_jsx_runtime34.JSX.Element;
11
11
  //#endregion
12
12
  export { ChatPreviewComparison };
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewComparisonProps } from "./types/types.js";
2
- import * as react_jsx_runtime30 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime34 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatPreviewComparison/ChatPreviewComparison.d.ts
5
5
  declare const ChatPreviewComparison: ({
@@ -7,6 +7,6 @@ declare const ChatPreviewComparison: ({
7
7
  widgetContentProps,
8
8
  widgetStyleProps,
9
9
  widgetEventProps
10
- }: ChatPreviewComparisonProps) => react_jsx_runtime30.JSX.Element;
10
+ }: ChatPreviewComparisonProps) => react_jsx_runtime34.JSX.Element;
11
11
  //#endregion
12
12
  export { ChatPreviewComparison };
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewLoadingProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime29 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatPreviewLoading/ChatPreviewLoading.d.ts
5
5
  declare const ChatPreviewLoading: ({
@@ -16,6 +16,6 @@ declare const ChatPreviewLoading: ({
16
16
  logoSrc,
17
17
  titleLabel,
18
18
  voiceInputEnabled
19
- }: ChatPreviewLoadingProps) => react_jsx_runtime29.JSX.Element;
19
+ }: ChatPreviewLoadingProps) => react_jsx_runtime19.JSX.Element;
20
20
  //#endregion
21
21
  export { ChatPreviewLoading };
@@ -18,8 +18,6 @@ declare const Container: ({
18
18
  centerContent,
19
19
  ...props
20
20
  }: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react13.DetailedReactHTMLElement<{
21
- title?: string | undefined;
22
- content?: string | undefined;
23
21
  onClick?: react13.MouseEventHandler<HTMLElement>;
24
22
  defaultChecked?: boolean | undefined;
25
23
  defaultValue?: string | number | readonly string[] | undefined;
@@ -39,10 +37,12 @@ declare const Container: ({
39
37
  slot?: string | undefined;
40
38
  spellCheck?: (boolean | "true" | "false") | undefined;
41
39
  tabIndex?: number | undefined;
40
+ title?: string | undefined;
42
41
  translate?: "yes" | "no" | undefined;
43
42
  radioGroup?: string | undefined;
44
43
  role?: react13.AriaRole | undefined;
45
44
  about?: string | undefined;
45
+ content?: string | undefined;
46
46
  datatype?: string | undefined;
47
47
  inlist?: any;
48
48
  prefix?: string | undefined;
@@ -18,8 +18,6 @@ declare const Container: ({
18
18
  centerContent,
19
19
  ...props
20
20
  }: ContainerProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "style" | "component">) => react10.DetailedReactHTMLElement<{
21
- title?: string | undefined;
22
- content?: string | undefined;
23
21
  onClick?: react10.MouseEventHandler<HTMLElement>;
24
22
  defaultChecked?: boolean | undefined;
25
23
  defaultValue?: string | number | readonly string[] | undefined;
@@ -39,10 +37,12 @@ declare const Container: ({
39
37
  slot?: string | undefined;
40
38
  spellCheck?: (boolean | "true" | "false") | undefined;
41
39
  tabIndex?: number | undefined;
40
+ title?: string | undefined;
42
41
  translate?: "yes" | "no" | undefined;
43
42
  radioGroup?: string | undefined;
44
43
  role?: react10.AriaRole | undefined;
45
44
  about?: string | undefined;
45
+ content?: string | undefined;
46
46
  datatype?: string | undefined;
47
47
  inlist?: any;
48
48
  prefix?: string | undefined;
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime22 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
2
2
  import { Config } from "tailwindcss";
3
3
 
4
4
  //#region src/components/DesignTokens/DesignTokensComponent.d.ts
@@ -9,6 +9,6 @@ type DesignTokensProps = {
9
9
  declare const DesignTokens: ({
10
10
  selectedMerchant,
11
11
  config
12
- }: DesignTokensProps) => react_jsx_runtime22.JSX.Element;
12
+ }: DesignTokensProps) => react_jsx_runtime26.JSX.Element;
13
13
  //#endregion
14
14
  export { DesignTokens, DesignTokensProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime27 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime25 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_runtime27.JSX.Element;
12
+ }: DesignTokensProps) => react_jsx_runtime25.JSX.Element;
13
13
  //#endregion
14
14
  export { DesignTokens, DesignTokensProps };
@@ -13,7 +13,7 @@ const Container$1 = ({ markdownNode, id, testId, className, style }) => {
13
13
  id,
14
14
  testId,
15
15
  style,
16
- className: (0, classnames.default)(className, "envive-tw-px-4 envive-tw-py-6"),
16
+ className: (0, classnames.default)(className, "envive-tw-px-4 envive-tw-pt-6"),
17
17
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Stack.Stack, {
18
18
  direction: "column",
19
19
  className: (0, classnames.default)(className),
@@ -11,7 +11,7 @@ const Container$1 = ({ markdownNode, id, testId, className, style }) => {
11
11
  id,
12
12
  testId,
13
13
  style,
14
- className: classNames(className, "envive-tw-px-4 envive-tw-py-6"),
14
+ className: classNames(className, "envive-tw-px-4 envive-tw-pt-6"),
15
15
  children: /* @__PURE__ */ jsx(Stack, {
16
16
  direction: "column",
17
17
  className: classNames(className),
@@ -1,5 +1,5 @@
1
1
  import { DocumentRetrievalCardProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime31 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime32 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_runtime32.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_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
5
5
  declare const DocumentRetrievalCard: ({
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
16
16
  onViewArticle,
17
17
  ariaLabel,
18
18
  viewArticleLabel
19
- }: DocumentRetrievalCardProps) => react_jsx_runtime12.JSX.Element;
19
+ }: DocumentRetrievalCardProps) => react_jsx_runtime24.JSX.Element;
20
20
  //#endregion
21
21
  export { DocumentRetrievalCard };
@@ -1,5 +1,5 @@
1
1
  import { FloatingButtonProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime33 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 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_runtime33.JSX.Element;
21
+ }: FloatingButtonProps) => react_jsx_runtime18.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_runtime26 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime29 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_runtime26.JSX.Element;
21
+ }: FloatingButtonProps) => react_jsx_runtime29.JSX.Element;
22
22
  //#endregion
23
23
  export { FloatingButton };
@@ -1,6 +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
3
  const require_resolveTheme = require('../utils/resolveTheme.cjs');
4
+ const require_react = require('../node_modules/jotai/esm/react.cjs');
4
5
  const require_usePromptCarouselAnalytics = require('../PromptCarousel/hooks/usePromptCarouselAnalytics.cjs');
5
6
  const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
6
7
  require('../PromptButton/index.cjs');
@@ -26,6 +27,7 @@ const require_index$1 = require('./components/index.cjs');
26
27
  const require_useFilteredChatMessages = require('./hooks/useFilteredChatMessages.cjs');
27
28
  let react = require("react");
28
29
  let react_jsx_runtime = require("react/jsx-runtime");
30
+ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
29
31
  let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
30
32
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
31
33
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
@@ -37,6 +39,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
37
39
  const finalTheme = require_resolveTheme.resolveTheme(theme);
38
40
  const { trackWidgetInteraction } = (0, __envive_ai_react_hooks_hooks_WidgetInteraction.useWidgetInteraction)();
39
41
  const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = require_usePromptCarouselAnalytics.usePromptCarouselAnalytics(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FLOATING_CHAT, (text) => text);
42
+ const setListeningToSpeech = require_react.useSetAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
40
43
  const [query, setQuery] = (0, react.useState)("");
41
44
  const chatMessagesRef = (0, react.useRef)(null);
42
45
  const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards } = floatingChatConfig;
@@ -210,6 +213,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
210
213
  handleButtonClick: (buttonText) => {
211
214
  const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
212
215
  if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
216
+ setListeningToSpeech("abort");
213
217
  setAnswerSuggestions([]);
214
218
  setGeneralSuggestions([]);
215
219
  handleBackToChat();
@@ -265,6 +269,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
265
269
  handleButtonClick: (buttonText) => {
266
270
  const suggestion = suggestions.find((s) => s.content === buttonText && s.isAnswer);
267
271
  if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
272
+ setListeningToSpeech("abort");
268
273
  setAnswerSuggestions([]);
269
274
  setGeneralSuggestions([]);
270
275
  },
@@ -1,5 +1,5 @@
1
1
  import { FloatingChatProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime30 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime33 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_runtime30.JSX.Element;
22
+ }: FloatingChatProps) => react_jsx_runtime33.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_runtime22 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime23 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_runtime22.JSX.Element;
22
+ }: FloatingChatProps) => react_jsx_runtime23.JSX.Element;
23
23
  //#endregion
24
24
  export { FloatingChat };
@@ -1,5 +1,6 @@
1
1
  import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
2
2
  import { resolveTheme } from "../utils/resolveTheme.js";
3
+ import { useSetAtom } from "../node_modules/jotai/esm/react.js";
3
4
  import { usePromptCarouselAnalytics } from "../PromptCarousel/hooks/usePromptCarouselAnalytics.js";
4
5
  import { PromptButtonVariant } from "../PromptButton/types/index.js";
5
6
  import "../PromptButton/index.js";
@@ -25,6 +26,7 @@ import { FloatingChatComponents } from "./components/index.js";
25
26
  import { useFilteredChatMessages } from "./hooks/useFilteredChatMessages.js";
26
27
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
27
28
  import { jsx } from "react/jsx-runtime";
29
+ import { listeningToSpeechAtom } from "@envive-ai/react-hooks/atoms/chat";
28
30
  import { EnviveMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
29
31
  import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
30
32
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
@@ -36,6 +38,7 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
36
38
  const finalTheme = resolveTheme(theme);
37
39
  const { trackWidgetInteraction } = useWidgetInteraction();
38
40
  const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = usePromptCarouselAnalytics(WidgetInteractionComponent.FLOATING_CHAT, (text) => text);
41
+ const setListeningToSpeech = useSetAtom(listeningToSpeechAtom);
39
42
  const [query, setQuery] = useState("");
40
43
  const chatMessagesRef = useRef(null);
41
44
  const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards } = floatingChatConfig;
@@ -209,6 +212,7 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
209
212
  handleButtonClick: (buttonText) => {
210
213
  const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
211
214
  if (suggestion) onSuggestionClicked(suggestion, ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
215
+ setListeningToSpeech("abort");
212
216
  setAnswerSuggestions([]);
213
217
  setGeneralSuggestions([]);
214
218
  handleBackToChat();
@@ -264,6 +268,7 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
264
268
  handleButtonClick: (buttonText) => {
265
269
  const suggestion = suggestions.find((s) => s.content === buttonText && s.isAnswer);
266
270
  if (suggestion) onSuggestionClicked(suggestion, ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
271
+ setListeningToSpeech("abort");
267
272
  setAnswerSuggestions([]);
268
273
  setGeneralSuggestions([]);
269
274
  },
@@ -19,7 +19,7 @@ const SlideChatContent = ({ isResultsView, isResultsViewRef, resultsViewData, on
19
19
  gridCols: resultsGridColumns
20
20
  });
21
21
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
22
- className: "envive-tw-relative envive-tw-min-h-[200px] envive-tw-w-full envive-tw-overflow-hidden",
22
+ className: "envive-tw-relative envive-tw-w-full envive-tw-overflow-hidden",
23
23
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.AnimatePresence, {
24
24
  initial: false,
25
25
  mode: "wait",
@@ -18,7 +18,7 @@ const SlideChatContent = ({ isResultsView, isResultsViewRef, resultsViewData, on
18
18
  gridCols: resultsGridColumns
19
19
  });
20
20
  return /* @__PURE__ */ jsx("div", {
21
- className: "envive-tw-relative envive-tw-min-h-[200px] envive-tw-w-full envive-tw-overflow-hidden",
21
+ className: "envive-tw-relative envive-tw-w-full envive-tw-overflow-hidden",
22
22
  children: /* @__PURE__ */ jsx(AnimatePresence, {
23
23
  initial: false,
24
24
  mode: "wait",
@@ -2,6 +2,7 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
3
3
  const require_resolveTheme = require('../utils/resolveTheme.cjs');
4
4
  require('../Tokens/index.cjs');
5
+ const require_react = require('../node_modules/jotai/esm/react.cjs');
5
6
  const require_usePromptCarouselAnalytics = require('../PromptCarousel/hooks/usePromptCarouselAnalytics.cjs');
6
7
  const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
7
8
  require('../PromptButton/index.cjs');
@@ -27,6 +28,7 @@ const require_index$1 = require('./components/index.cjs');
27
28
  const require_useGetMessagesStyles = require('./hooks/useGetMessagesStyles.cjs');
28
29
  let react = require("react");
29
30
  let react_jsx_runtime = require("react/jsx-runtime");
31
+ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
30
32
  let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
31
33
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
32
34
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
@@ -45,6 +47,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
45
47
  const { isMobile } = require_useIsMobile.useIsMobile();
46
48
  const { trackWidgetInteraction } = (0, __envive_ai_react_hooks_hooks_WidgetInteraction.useWidgetInteraction)();
47
49
  const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = require_usePromptCarouselAnalytics.usePromptCarouselAnalytics(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, (text) => text);
50
+ const setListeningToSpeech = require_react.useSetAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
48
51
  const { welcomeMessageIconColor, ignoreFirstModelResponse, neverShowSingleProductCards, showVerifiedBuyer, showEnviveLogo, userQueryInputEnabled = true } = floatingChatConfig;
49
52
  const { agentName } = lookAndFeelConfig;
50
53
  const { welcomeMessageTitle, welcomeMessageText, chatFooterTextFieldPlaceholderText, disclaimerText } = hardcopyContent?.values ?? {};
@@ -131,6 +134,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
131
134
  handleButtonClick: (buttonText) => {
132
135
  const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
133
136
  if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
137
+ setListeningToSpeech("abort");
134
138
  setAnswerSuggestions([]);
135
139
  setGeneralSuggestions([]);
136
140
  handleBackToChat();
@@ -189,6 +193,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
189
193
  handleButtonClick: (buttonText) => {
190
194
  const suggestion = suggestions.find((s) => s.content === buttonText && s.isAnswer);
191
195
  if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
196
+ setListeningToSpeech("abort");
192
197
  setAnswerSuggestions([]);
193
198
  setGeneralSuggestions([]);
194
199
  },
@@ -1,5 +1,5 @@
1
1
  import { Theme } from "../tokens/theme/theme.cjs";
2
- import * as react_jsx_runtime28 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
3
3
  import { FloatingChatConfig, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
4
4
  import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
5
5
 
@@ -21,6 +21,6 @@ declare const FullPageSalesAgent: ({
21
21
  headerContainer,
22
22
  autoHeight,
23
23
  voiceInputEnabled
24
- }: FullPageSalesAgentProps) => react_jsx_runtime28.JSX.Element;
24
+ }: FullPageSalesAgentProps) => react_jsx_runtime24.JSX.Element;
25
25
  //#endregion
26
26
  export { FullPageSalesAgent };