@envive-ai/react-toolkit-v3 0.3.11 → 0.3.13

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 (119) hide show
  1. package/dist/AnimatedText/AnimatedText.d.cts +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/Carousel/components/Container.cjs +11 -3
  7. package/dist/Carousel/components/Container.js +12 -4
  8. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  9. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  10. package/dist/ChatFooter/components/Layout.cjs +2 -8
  11. package/dist/ChatFooter/components/Layout.js +2 -8
  12. package/dist/ChatFooter/components/index.d.cts +5 -5
  13. package/dist/ChatFooter/components/index.d.ts +3 -3
  14. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  15. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  16. package/dist/ChatHeader/hooks/useGetCloseButtonProperties.cjs +1 -1
  17. package/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +1 -1
  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/ChatPreviewComparison/components/Layout.cjs +4 -3
  23. package/dist/ChatPreviewComparison/components/Layout.js +4 -3
  24. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  25. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  26. package/dist/Container/Container.d.cts +178 -178
  27. package/dist/Container/Container.d.ts +8 -8
  28. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  29. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  30. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  31. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  32. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  33. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  34. package/dist/FloatingChat/FloatingChat.cjs +6 -3
  35. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  36. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  37. package/dist/FloatingChat/FloatingChat.js +6 -3
  38. package/dist/FloatingChat/hooks/useSnapSetup.cjs +10 -7
  39. package/dist/FloatingChat/hooks/useSnapSetup.js +10 -7
  40. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +3 -2
  41. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
  42. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
  43. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +3 -2
  44. package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.cjs +3 -3
  45. package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.js +3 -3
  46. package/dist/Image/Image.cjs +5 -0
  47. package/dist/Image/Image.d.cts +2 -2
  48. package/dist/Image/Image.d.ts +2 -2
  49. package/dist/Image/Image.js +5 -0
  50. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  51. package/dist/MarkdownProcessor/MarkdownProcessor.cjs +14 -27
  52. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +3 -5
  53. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +1 -3
  54. package/dist/MarkdownProcessor/MarkdownProcessor.js +15 -26
  55. package/dist/MarkdownProcessor/components/index.cjs +1 -3
  56. package/dist/MarkdownProcessor/components/index.js +1 -3
  57. package/dist/MarkdownProcessor/utils/functions.cjs +1 -11
  58. package/dist/MarkdownProcessor/utils/functions.js +1 -10
  59. package/dist/ProductCard/ProductCard.d.cts +2 -2
  60. package/dist/ProductCard/components/Header.cjs +33 -7
  61. package/dist/ProductCard/components/Header.js +34 -8
  62. package/dist/PromptButton/PromptButton.d.cts +2 -2
  63. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  64. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  65. package/dist/PromptCarousel/PromptCarousel.cjs +19 -28
  66. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  67. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  68. package/dist/PromptCarousel/PromptCarousel.js +19 -28
  69. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  70. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  71. package/dist/ReviewCard/components/index.d.cts +6 -6
  72. package/dist/ReviewCard/components/index.d.ts +4 -4
  73. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  74. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  75. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  76. package/dist/SalesAgentProductCard/components/index.d.ts +6 -6
  77. package/dist/SocialProof/SocialProof.d.cts +2 -2
  78. package/dist/SocialProof/SocialProof.d.ts +2 -2
  79. package/dist/Stack/Stack.d.ts +2 -2
  80. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  81. package/dist/TypingAnimation/TypingAnimation.cjs +58 -18
  82. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  83. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  84. package/dist/TypingAnimation/TypingAnimation.js +59 -19
  85. package/dist/Typography/Typography.d.cts +4 -4
  86. package/dist/Typography/Typography.d.ts +4 -4
  87. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  88. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  89. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  90. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  91. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  92. package/dist/styles.css +1 -1
  93. package/dist/utils/useAnimatedTextMinHeight.cjs +28 -0
  94. package/dist/utils/useAnimatedTextMinHeight.js +27 -0
  95. package/package.json +1 -3
  96. package/src/components/Carousel/components/Container.tsx +15 -3
  97. package/src/components/ChatFooter/components/Layout.tsx +2 -14
  98. package/src/components/ChatHeader/hooks/useGetCloseButtonProperties.ts +1 -1
  99. package/src/components/ChatPreviewComparison/components/Layout.tsx +2 -2
  100. package/src/components/FloatingChat/FloatingChat.tsx +5 -2
  101. package/src/components/FloatingChat/hooks/useSnapSetup.ts +11 -4
  102. package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +6 -2
  103. package/src/components/FullPageSalesAgent/components/Layout.tsx +1 -1
  104. package/src/components/FullPageSalesAgent/hooks/useContainerResizerObserver.ts +4 -3
  105. package/src/components/FullPageSalesAgent/hooks/useIsMobile.ts +1 -1
  106. package/src/components/Image/Image.tsx +2 -0
  107. package/src/components/MarkdownProcessor/MarkdownProcessor.tsx +3 -19
  108. package/src/components/MarkdownProcessor/__tests__/MarkdownProcessor.test.tsx +1 -39
  109. package/src/components/MarkdownProcessor/components/index.ts +0 -2
  110. package/src/components/MarkdownProcessor/utils/functions.tsx +0 -19
  111. package/src/components/ProductCard/components/Header.tsx +39 -9
  112. package/src/components/PromptCarousel/PromptCarousel.tsx +29 -31
  113. package/src/components/TypingAnimation/TypingAnimation.tsx +68 -22
  114. package/src/components/utils/useAnimatedTextMinHeight.ts +29 -0
  115. package/dist/ChatFooter/hooks/useGetButtonScrollProperties.cjs +0 -18
  116. package/dist/ChatFooter/hooks/useGetButtonScrollProperties.js +0 -17
  117. package/dist/MarkdownProcessor/components/MarkdownSubscript.cjs +0 -15
  118. package/dist/MarkdownProcessor/components/MarkdownSubscript.js +0 -14
  119. package/src/components/MarkdownProcessor/components/MarkdownSubscript.tsx +0 -22
@@ -1,13 +1,13 @@
1
1
  import { AnimatedTextProps } from "./types/types.cjs";
2
- import * as react13 from "react";
2
+ import * as react181 from "react";
3
3
 
4
4
  //#region src/components/AnimatedText/AnimatedText.d.ts
5
- declare const AnimatedText: react13.MemoExoticComponent<({
5
+ declare const AnimatedText: react181.MemoExoticComponent<({
6
6
  sequence,
7
7
  typingDuration,
8
8
  transition,
9
9
  loop,
10
10
  getNodeWrapper
11
- }: AnimatedTextProps) => react13.ReactNode>;
11
+ }: AnimatedTextProps) => react181.ReactNode>;
12
12
  //#endregion
13
13
  export { AnimatedText };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime29 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime27 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_runtime29.JSX.Element;
8
+ }) => react_jsx_runtime27.JSX.Element;
9
9
  //#endregion
10
10
  export { CssVariablesEditorComponent };
@@ -1,10 +1,10 @@
1
- import * as react_jsx_runtime34 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime24 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_runtime24.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_runtime25 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Carousel/Carousel.d.ts
5
5
  declare const Carousel: ({
@@ -11,6 +11,6 @@ declare const Carousel: ({
11
11
  badgeLabel,
12
12
  theme,
13
13
  hideNavigation
14
- }: CarouselProps) => react_jsx_runtime25.JSX.Element;
14
+ }: CarouselProps) => react_jsx_runtime32.JSX.Element;
15
15
  //#endregion
16
16
  export { Carousel };
@@ -1,5 +1,5 @@
1
1
  import { CarouselProps } from "./types/types.js";
2
- import * as react_jsx_runtime25 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Carousel/Carousel.d.ts
5
5
  declare const Carousel: ({
@@ -11,6 +11,6 @@ declare const Carousel: ({
11
11
  badgeLabel,
12
12
  theme,
13
13
  hideNavigation
14
- }: CarouselProps) => react_jsx_runtime25.JSX.Element;
14
+ }: CarouselProps) => react_jsx_runtime26.JSX.Element;
15
15
  //#endregion
16
16
  export { Carousel };
@@ -9,10 +9,16 @@ const require_useCarouselNavigationButtons = require('../hooks/useCarouselNaviga
9
9
  const require_useCarouselButtons = require('../hooks/useCarouselButtons.cjs');
10
10
  let react = require("react");
11
11
  let react_jsx_runtime = require("react/jsx-runtime");
12
+ let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
12
13
 
13
14
  //#region src/components/Carousel/components/Container.tsx
14
15
  const Container$1 = ({ children, className, id, testId, style, next, previous, badge }) => {
16
+ const { ref: dragScrollRef } = (0, react_indiana_drag_scroll.useScrollContainer)();
15
17
  const scrollContainerRef = (0, react.useRef)(null);
18
+ const setRef = (0, react.useCallback)((el) => {
19
+ if (typeof dragScrollRef === "function") dragScrollRef(el);
20
+ scrollContainerRef.current = el;
21
+ }, [dragScrollRef]);
16
22
  const { items, totalItems } = require_useCarouselItems.useCarouselItems(children);
17
23
  const { handleNext, handlePrevious } = require_useCarouselNavigation.useCarouselNavigation({
18
24
  scrollContainerRef,
@@ -43,11 +49,13 @@ const Container$1 = ({ children, className, id, testId, style, next, previous, b
43
49
  children: previousButton
44
50
  }),
45
51
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
46
- ref: scrollContainerRef,
47
- className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-4 envive-tw-overflow-x-auto envive-tw-scroll-smooth",
52
+ ref: setRef,
53
+ className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-4 envive-tw-overflow-x-auto",
48
54
  style: {
49
55
  scrollbarWidth: "none",
50
- msOverflowStyle: "none"
56
+ msOverflowStyle: "none",
57
+ cursor: "grab",
58
+ userSelect: "none"
51
59
  },
52
60
  children: items.map((item, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
53
61
  "data-carousel-item": true,
@@ -6,12 +6,18 @@ import { useCarouselItems } from "../hooks/useCarouselItems.js";
6
6
  import { useCarouselNavigation } from "../hooks/useCarouselNavigation.js";
7
7
  import { useCarouselNavigationButtons } from "../hooks/useCarouselNavigationButtons.js";
8
8
  import { useCarouselButtons } from "../hooks/useCarouselButtons.js";
9
- import { useRef } from "react";
9
+ import { useCallback, useRef } from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { useScrollContainer } from "react-indiana-drag-scroll";
11
12
 
12
13
  //#region src/components/Carousel/components/Container.tsx
13
14
  const Container$1 = ({ children, className, id, testId, style, next, previous, badge }) => {
15
+ const { ref: dragScrollRef } = useScrollContainer();
14
16
  const scrollContainerRef = useRef(null);
17
+ const setRef = useCallback((el) => {
18
+ if (typeof dragScrollRef === "function") dragScrollRef(el);
19
+ scrollContainerRef.current = el;
20
+ }, [dragScrollRef]);
15
21
  const { items, totalItems } = useCarouselItems(children);
16
22
  const { handleNext, handlePrevious } = useCarouselNavigation({
17
23
  scrollContainerRef,
@@ -42,11 +48,13 @@ const Container$1 = ({ children, className, id, testId, style, next, previous, b
42
48
  children: previousButton
43
49
  }),
44
50
  /* @__PURE__ */ jsx("div", {
45
- ref: scrollContainerRef,
46
- className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-4 envive-tw-overflow-x-auto envive-tw-scroll-smooth",
51
+ ref: setRef,
52
+ className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-4 envive-tw-overflow-x-auto",
47
53
  style: {
48
54
  scrollbarWidth: "none",
49
- msOverflowStyle: "none"
55
+ msOverflowStyle: "none",
56
+ cursor: "grab",
57
+ userSelect: "none"
50
58
  },
51
59
  children: items.map((item, index) => /* @__PURE__ */ jsx("div", {
52
60
  "data-carousel-item": true,
@@ -1,5 +1,5 @@
1
1
  import { ChatFooterProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime31 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime30 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatFooter/ChatFooter.d.ts
5
5
  declare const ChatFooter: ({
@@ -18,6 +18,6 @@ declare const ChatFooter: ({
18
18
  disabled,
19
19
  isLoadingPromptSuggestions,
20
20
  disabledInput
21
- }: ChatFooterProps) => react_jsx_runtime31.JSX.Element;
21
+ }: ChatFooterProps) => react_jsx_runtime30.JSX.Element;
22
22
  //#endregion
23
23
  export { ChatFooter };
@@ -1,5 +1,5 @@
1
1
  import { ChatFooterProps } from "./types/types.js";
2
- import * as react_jsx_runtime31 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime30 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatFooter/ChatFooter.d.ts
5
5
  declare const ChatFooter: ({
@@ -18,6 +18,6 @@ declare const ChatFooter: ({
18
18
  disabled,
19
19
  isLoadingPromptSuggestions,
20
20
  disabledInput
21
- }: ChatFooterProps) => react_jsx_runtime31.JSX.Element;
21
+ }: ChatFooterProps) => react_jsx_runtime30.JSX.Element;
22
22
  //#endregion
23
23
  export { ChatFooter };
@@ -4,7 +4,6 @@ require('../../Stack/index.cjs');
4
4
  const require_Container = require('../../Container/Container.cjs');
5
5
  require('../../Container/index.cjs');
6
6
  const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
7
- const require_useGetButtonScrollProperties = require('../hooks/useGetButtonScrollProperties.cjs');
8
7
  const require_useGetChatScrollProperties = require('../hooks/useGetChatScrollProperties.cjs');
9
8
  let react_jsx_runtime = require("react/jsx-runtime");
10
9
  let classnames = require("classnames");
@@ -16,7 +15,6 @@ const Layout = ({ promptSuggestions, textField, enviveLogo, isScrolled, theme, h
16
15
  isScrolled,
17
16
  theme
18
17
  });
19
- const { buttonScrollClasses, buttonScrollStyle } = require_useGetButtonScrollProperties.useGetButtonScrollProperties();
20
18
  const { footerVisibleClasses, footerVisibleOpacityClass } = require_useGetChatScrollProperties.useGetChatScrollProperties(isScrolled, theme);
21
19
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Container.Container, {
22
20
  id,
@@ -27,12 +25,8 @@ const Layout = ({ promptSuggestions, textField, enviveLogo, isScrolled, theme, h
27
25
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
28
26
  gap: 2,
29
27
  children: [
30
- !isScrolled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Stack.Stack, {
31
- direction: "row",
32
- align: "center",
33
- gap: "2",
34
- style: buttonScrollStyle,
35
- className: (0, classnames.default)(footerVisibleClasses, footerVisibleOpacityClass, buttonScrollClasses),
28
+ !isScrolled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
29
+ className: (0, classnames.default)(footerVisibleClasses, footerVisibleOpacityClass),
36
30
  children: promptSuggestions
37
31
  }),
38
32
  textField,
@@ -3,7 +3,6 @@ import "../../Stack/index.js";
3
3
  import { Container } from "../../Container/Container.js";
4
4
  import "../../Container/index.js";
5
5
  import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
6
- import { useGetButtonScrollProperties } from "../hooks/useGetButtonScrollProperties.js";
7
6
  import { useGetChatScrollProperties } from "../hooks/useGetChatScrollProperties.js";
8
7
  import { jsx, jsxs } from "react/jsx-runtime";
9
8
  import classNames from "classnames";
@@ -14,7 +13,6 @@ const Layout = ({ promptSuggestions, textField, enviveLogo, isScrolled, theme, h
14
13
  isScrolled,
15
14
  theme
16
15
  });
17
- const { buttonScrollClasses, buttonScrollStyle } = useGetButtonScrollProperties();
18
16
  const { footerVisibleClasses, footerVisibleOpacityClass } = useGetChatScrollProperties(isScrolled, theme);
19
17
  return /* @__PURE__ */ jsx(Container, {
20
18
  id,
@@ -25,12 +23,8 @@ const Layout = ({ promptSuggestions, textField, enviveLogo, isScrolled, theme, h
25
23
  children: /* @__PURE__ */ jsxs(Stack, {
26
24
  gap: 2,
27
25
  children: [
28
- !isScrolled && /* @__PURE__ */ jsx(Stack, {
29
- direction: "row",
30
- align: "center",
31
- gap: "2",
32
- style: buttonScrollStyle,
33
- className: classNames(footerVisibleClasses, footerVisibleOpacityClass, buttonScrollClasses),
26
+ !isScrolled && /* @__PURE__ */ jsx("div", {
27
+ className: classNames(footerVisibleClasses, footerVisibleOpacityClass),
34
28
  children: promptSuggestions
35
29
  }),
36
30
  textField,
@@ -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 react10 from "react";
5
- import * as react_jsx_runtime32 from "react/jsx-runtime";
4
+ import * as react183 from "react";
5
+ import * as react_jsx_runtime28 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_runtime32.JSX.Element;
20
+ }: LayoutProps) => react_jsx_runtime28.JSX.Element;
21
21
  EnviveLogo: ({
22
22
  style
23
23
  }: {
24
24
  className?: string;
25
25
  style?: React.CSSProperties;
26
- }) => react10.ReactElement<react10.SVGProps<SVGSVGElement>, string | react10.JSXElementConstructor<any>>;
26
+ }) => react183.ReactElement<react183.SVGProps<SVGSVGElement>, string | react183.JSXElementConstructor<any>>;
27
27
  PromptSuggestions: ({
28
28
  theme,
29
29
  suggestions,
@@ -31,7 +31,7 @@ declare const ChatFooterComponents: {
31
31
  className,
32
32
  style,
33
33
  disabled
34
- }: PromptSuggestionsProps) => react_jsx_runtime32.JSX.Element;
34
+ }: PromptSuggestionsProps) => react_jsx_runtime28.JSX.Element;
35
35
  TextField: ({
36
36
  theme,
37
37
  placeholder,
@@ -2,7 +2,7 @@ import { LayoutProps } from "./Layout.js";
2
2
  import { PromptSuggestionsProps } from "./PromptSuggestions.js";
3
3
  import { TextFieldProps } from "../../TextField/types/index.js";
4
4
  import * as react181 from "react";
5
- import * as react_jsx_runtime29 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime28 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/ChatFooter/components/index.d.ts
8
8
  declare const ChatFooterComponents: {
@@ -17,7 +17,7 @@ declare const ChatFooterComponents: {
17
17
  testId,
18
18
  className,
19
19
  style
20
- }: LayoutProps) => react_jsx_runtime29.JSX.Element;
20
+ }: LayoutProps) => react_jsx_runtime28.JSX.Element;
21
21
  EnviveLogo: ({
22
22
  style
23
23
  }: {
@@ -31,7 +31,7 @@ declare const ChatFooterComponents: {
31
31
  className,
32
32
  style,
33
33
  disabled
34
- }: PromptSuggestionsProps) => react_jsx_runtime29.JSX.Element;
34
+ }: PromptSuggestionsProps) => react_jsx_runtime28.JSX.Element;
35
35
  TextField: ({
36
36
  theme,
37
37
  placeholder,
@@ -1,5 +1,5 @@
1
1
  import { ChatHeaderProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime22 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime26 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_runtime22.JSX.Element;
24
+ }: ChatHeaderProps) => react_jsx_runtime26.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_runtime32 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_runtime32.JSX.Element;
24
+ }: ChatHeaderProps) => react_jsx_runtime27.JSX.Element;
25
25
  //#endregion
26
26
  export { ChatHeader };
@@ -19,7 +19,7 @@ const iconClassMap = {
19
19
  };
20
20
  const useGetCloseButtonProperties = (theme, variant) => {
21
21
  return {
22
- closeButtonClasses: "envive-tw-justify-end",
22
+ closeButtonClasses: "envive-tw-flex envive-tw-flex-1 envive-tw-justify-end",
23
23
  iconClasses: (0, classnames.default)("envive-tw-h-4 envive-tw-w-4 envive-tw-cursor-pointer", iconClassMap[theme][variant])
24
24
  };
25
25
  };
@@ -17,7 +17,7 @@ const iconClassMap = {
17
17
  };
18
18
  const useGetCloseButtonProperties = (theme, variant) => {
19
19
  return {
20
- closeButtonClasses: "envive-tw-justify-end",
20
+ closeButtonClasses: "envive-tw-flex envive-tw-flex-1 envive-tw-justify-end",
21
21
  iconClasses: classNames("envive-tw-h-4 envive-tw-w-4 envive-tw-cursor-pointer", iconClassMap[theme][variant])
22
22
  };
23
23
  };
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime23 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime31 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_runtime23.JSX.Element;
10
+ }: ChatPreviewProps) => react_jsx_runtime31.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_runtime24 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_runtime24.JSX.Element;
10
+ }: ChatPreviewProps) => react_jsx_runtime35.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_runtime28 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime24 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_runtime28.JSX.Element;
10
+ }: ChatPreviewComparisonProps) => react_jsx_runtime24.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_runtime33 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime32 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_runtime33.JSX.Element;
10
+ }: ChatPreviewComparisonProps) => react_jsx_runtime32.JSX.Element;
11
11
  //#endregion
12
12
  export { ChatPreviewComparison };
@@ -23,7 +23,8 @@ const Layout = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, headline, message,
23
23
  const isTablet = !isMobile && viewportWidth !== void 0 && viewportWidth < require_breakpoints.screensBreakpointsVariables.lg;
24
24
  const finalTheme = require_resolveTheme.resolveTheme(theme);
25
25
  const isPortrait = require_utils.getCSSVariable(`--${require_aspectRatio.AspectRatioCSSVar.GlobalCustom}`) === "3/4";
26
- const isStandardAndMobile = finalTheme === require_theme.Theme.STANDARD && isMobile;
26
+ const isStandardTheme = finalTheme === require_theme.Theme.STANDARD;
27
+ const isStandardAndMobile = isStandardTheme && isMobile;
27
28
  const { height, ref } = require_useGetContentSize.useGetContentSize({ heightDefault: 145 });
28
29
  const imageGalleryWidth = require_functions.calculateWidthImageGallery(height, 2, 1);
29
30
  const hideImageGallery = hideImage || !images || images.length === 0;
@@ -36,8 +37,8 @@ const Layout = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, headline, message,
36
37
  direction: "row",
37
38
  gap: "4",
38
39
  children: [hideImageGallery ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Container.Container, {
39
- fluid: isMobile || !isStandardAndMobile,
40
- className: isMobile && !isStandardAndMobile ? "envive-tw-w-full" : "",
40
+ fluid: isMobile || !isStandardTheme,
41
+ className: isMobile && !isStandardTheme ? "envive-tw-w-full" : "envive-tw-w-auto",
41
42
  style: {
42
43
  height: (() => {
43
44
  if (isStandardAndMobile && isPortrait) return "180px";
@@ -22,7 +22,8 @@ const Layout = ({ theme = Theme.GLOBAL_CUSTOM, headline, message, promptCarousel
22
22
  const isTablet = !isMobile && viewportWidth !== void 0 && viewportWidth < screensBreakpointsVariables.lg;
23
23
  const finalTheme = resolveTheme(theme);
24
24
  const isPortrait = getCSSVariable(`--${AspectRatioCSSVar.GlobalCustom}`) === "3/4";
25
- const isStandardAndMobile = finalTheme === Theme.STANDARD && isMobile;
25
+ const isStandardTheme = finalTheme === Theme.STANDARD;
26
+ const isStandardAndMobile = isStandardTheme && isMobile;
26
27
  const { height, ref } = useGetContentSize({ heightDefault: 145 });
27
28
  const imageGalleryWidth = calculateWidthImageGallery(height, 2, 1);
28
29
  const hideImageGallery = hideImage || !images || images.length === 0;
@@ -35,8 +36,8 @@ const Layout = ({ theme = Theme.GLOBAL_CUSTOM, headline, message, promptCarousel
35
36
  direction: "row",
36
37
  gap: "4",
37
38
  children: [hideImageGallery ? null : /* @__PURE__ */ jsx(Container, {
38
- fluid: isMobile || !isStandardAndMobile,
39
- className: isMobile && !isStandardAndMobile ? "envive-tw-w-full" : "",
39
+ fluid: isMobile || !isStandardTheme,
40
+ className: isMobile && !isStandardTheme ? "envive-tw-w-full" : "envive-tw-w-auto",
40
41
  style: {
41
42
  height: (() => {
42
43
  if (isStandardAndMobile && isPortrait) return "180px";
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewLoadingProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime21 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime35 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatPreviewLoading/ChatPreviewLoading.d.ts
5
5
  declare const ChatPreviewLoading: ({
@@ -15,6 +15,6 @@ declare const ChatPreviewLoading: ({
15
15
  hideLogo,
16
16
  logoSrc,
17
17
  titleLabel
18
- }: ChatPreviewLoadingProps) => react_jsx_runtime21.JSX.Element;
18
+ }: ChatPreviewLoadingProps) => react_jsx_runtime35.JSX.Element;
19
19
  //#endregion
20
20
  export { ChatPreviewLoading };
@@ -1,5 +1,5 @@
1
1
  import { ChatPreviewLoadingProps } from "./types/types.js";
2
- import * as react_jsx_runtime28 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime33 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ChatPreviewLoading/ChatPreviewLoading.d.ts
5
5
  declare const ChatPreviewLoading: ({
@@ -15,6 +15,6 @@ declare const ChatPreviewLoading: ({
15
15
  hideLogo,
16
16
  logoSrc,
17
17
  titleLabel
18
- }: ChatPreviewLoadingProps) => react_jsx_runtime28.JSX.Element;
18
+ }: ChatPreviewLoadingProps) => react_jsx_runtime33.JSX.Element;
19
19
  //#endregion
20
20
  export { ChatPreviewLoading };