@envive-ai/react-toolkit-v3 0.3.16 → 0.3.17

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 (146) 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.cjs +1 -1
  5. package/dist/Carousel/Carousel.d.ts +2 -2
  6. package/dist/Carousel/Carousel.js +1 -1
  7. package/dist/Carousel/components/Container.cjs +2 -2
  8. package/dist/Carousel/components/Container.js +2 -2
  9. package/dist/ChatFooter/ChatFooter.cjs +1 -1
  10. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  11. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  12. package/dist/ChatFooter/ChatFooter.js +1 -1
  13. package/dist/ChatFooter/components/Layout.cjs +2 -2
  14. package/dist/ChatFooter/components/Layout.js +2 -2
  15. package/dist/ChatFooter/components/index.d.cts +5 -5
  16. package/dist/ChatFooter/components/index.d.ts +5 -5
  17. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  18. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  19. package/dist/ChatHeader/components/Handle.cjs +2 -2
  20. package/dist/ChatHeader/components/Handle.js +2 -2
  21. package/dist/ChatHeader/components/Toggle.cjs +3 -3
  22. package/dist/ChatHeader/components/Toggle.js +3 -3
  23. package/dist/ChatPreview/ChatPreview.cjs +1 -1
  24. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  25. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  26. package/dist/ChatPreview/ChatPreview.js +1 -1
  27. package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
  28. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  29. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  30. package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
  31. package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
  32. package/dist/ChatPreviewComparison/components/Headline.js +2 -2
  33. package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
  34. package/dist/ChatPreviewComparison/components/Layout.js +4 -4
  35. package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
  36. package/dist/ChatPreviewComparison/components/Message.js +2 -2
  37. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  38. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  39. package/dist/Container/Container.d.cts +179 -179
  40. package/dist/Container/Container.d.ts +179 -179
  41. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  42. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  43. package/dist/Disclaimer/components/Container.cjs +2 -2
  44. package/dist/Disclaimer/components/Container.js +2 -2
  45. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  46. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  47. package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
  48. package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
  49. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
  50. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
  51. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  52. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  53. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  54. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  55. package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
  56. package/dist/FloatingChat/components/ChatMessages.js +1 -1
  57. package/dist/FloatingChat/components/Layout.cjs +3 -3
  58. package/dist/FloatingChat/components/Layout.js +3 -3
  59. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +1 -1
  60. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
  61. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
  62. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +1 -1
  63. package/dist/Image/Image.d.cts +2 -2
  64. package/dist/Image/Image.d.ts +2 -2
  65. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  66. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  67. package/dist/ImageGallery/components/Layout.cjs +1 -1
  68. package/dist/ImageGallery/components/Layout.js +1 -1
  69. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  70. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  71. package/dist/Message/components/LinkButton.cjs +1 -1
  72. package/dist/Message/components/LinkButton.js +1 -1
  73. package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
  74. package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
  75. package/dist/ProductCard/ProductCard.cjs +2 -2
  76. package/dist/ProductCard/ProductCard.d.cts +2 -2
  77. package/dist/ProductCard/ProductCard.d.ts +2 -2
  78. package/dist/ProductCard/ProductCard.js +2 -2
  79. package/dist/PromptButton/PromptButton.d.cts +2 -2
  80. package/dist/PromptButton/PromptButton.d.ts +2 -2
  81. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  82. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  83. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +16 -22
  84. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +16 -22
  85. package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
  86. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  87. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  88. package/dist/PromptCarousel/PromptCarousel.js +3 -3
  89. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  90. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  91. package/dist/ReviewCard/components/Container.cjs +2 -2
  92. package/dist/ReviewCard/components/Container.js +2 -2
  93. package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
  94. package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
  95. package/dist/ReviewCard/components/index.d.cts +6 -6
  96. package/dist/ReviewCard/components/index.d.ts +6 -6
  97. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  98. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  99. package/dist/SalesAgentProductCard/components/Container.cjs +2 -2
  100. package/dist/SalesAgentProductCard/components/Container.js +2 -2
  101. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  102. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  103. package/dist/SocialProof/SocialProof.cjs +1 -1
  104. package/dist/SocialProof/SocialProof.d.cts +2 -2
  105. package/dist/SocialProof/SocialProof.d.ts +2 -2
  106. package/dist/SocialProof/SocialProof.js +1 -1
  107. package/dist/SocialProof/components/Headline.cjs +3 -3
  108. package/dist/SocialProof/components/Headline.js +3 -3
  109. package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
  110. package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
  111. package/dist/SocialProof/components/Subheadline.cjs +1 -1
  112. package/dist/SocialProof/components/Subheadline.js +1 -1
  113. package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
  114. package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
  115. package/dist/Stack/Stack.d.cts +2 -2
  116. package/dist/Stack/Stack.d.ts +2 -2
  117. package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
  118. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  119. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  120. package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
  121. package/dist/Tokens/index.cjs +1 -1
  122. package/dist/Tokens/index.js +1 -1
  123. package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
  124. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  125. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  126. package/dist/TypingAnimation/TypingAnimation.js +1 -1
  127. package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
  128. package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
  129. package/dist/Typography/Typography.d.cts +4 -4
  130. package/dist/Typography/Typography.d.ts +4 -4
  131. package/dist/WelcomeMessage/components/Container.cjs +2 -2
  132. package/dist/WelcomeMessage/components/Container.js +2 -2
  133. package/dist/WidgetTextField/WidgetTextField.cjs +1 -1
  134. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  135. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  136. package/dist/WidgetTextField/WidgetTextField.js +1 -1
  137. package/dist/WidgetTextField/components/Container.cjs +2 -2
  138. package/dist/WidgetTextField/components/Container.js +2 -2
  139. package/dist/WidgetTextField/components/Icon.cjs +1 -1
  140. package/dist/WidgetTextField/components/Icon.js +1 -1
  141. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  142. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  143. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  144. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  145. package/package.json +3 -3
  146. package/src/components/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.tsx +12 -9
@@ -1,5 +1,5 @@
1
1
  import { TypographyProps } from "./types/index.cjs";
2
- import * as react0 from "react";
2
+ import * as react4 from "react";
3
3
 
4
4
  //#region src/components/Typography/Typography.d.ts
5
5
  /**
@@ -18,13 +18,13 @@ declare const Typography: ({
18
18
  noWrap,
19
19
  as,
20
20
  "aria-label": ariaLabel
21
- }: TypographyProps) => react0.DetailedReactHTMLElement<{
21
+ }: TypographyProps) => react4.DetailedReactHTMLElement<{
22
22
  'aria-label': string;
23
23
  'aria-level'?: number;
24
- role?: react0.AriaRole;
24
+ role?: react4.AriaRole;
25
25
  title?: string;
26
26
  className: string;
27
- style: react0.CSSProperties;
27
+ style: react4.CSSProperties;
28
28
  id: string;
29
29
  'data-testid': string;
30
30
  }, HTMLElement>;
@@ -1,5 +1,5 @@
1
1
  import { TypographyProps } from "./types/index.js";
2
- import * as react1 from "react";
2
+ import * as react0 from "react";
3
3
 
4
4
  //#region src/components/Typography/Typography.d.ts
5
5
  /**
@@ -18,13 +18,13 @@ declare const Typography: ({
18
18
  noWrap,
19
19
  as,
20
20
  "aria-label": ariaLabel
21
- }: TypographyProps) => react1.DetailedReactHTMLElement<{
21
+ }: TypographyProps) => react0.DetailedReactHTMLElement<{
22
22
  'aria-label': string;
23
23
  'aria-level'?: number;
24
- role?: react1.AriaRole;
24
+ role?: react0.AriaRole;
25
25
  title?: string;
26
26
  className: string;
27
- style: react1.CSSProperties;
27
+ style: react0.CSSProperties;
28
28
  id: string;
29
29
  'data-testid': string;
30
30
  }, HTMLElement>;
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_Container = require('../../Container/Container.cjs');
3
- require('../../Container/index.cjs');
4
2
  const require_Stack = require('../../Stack/Stack.cjs');
5
3
  require('../../Stack/index.cjs');
4
+ const require_Container = require('../../Container/Container.cjs');
5
+ require('../../Container/index.cjs');
6
6
  const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let classnames = require("classnames");
@@ -1,7 +1,7 @@
1
- import { Container } from "../../Container/Container.js";
2
- import "../../Container/index.js";
3
1
  import { Stack } from "../../Stack/Stack.js";
4
2
  import "../../Stack/index.js";
3
+ import { Container } from "../../Container/Container.js";
4
+ import "../../Container/index.js";
5
5
  import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import classNames from "classnames";
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
3
- const require_resolveTheme = require('../utils/resolveTheme.cjs');
4
3
  const require_index = require('../Typography/types/index.cjs');
4
+ const require_resolveTheme = require('../utils/resolveTheme.cjs');
5
5
  const require_types = require('./types/types.cjs');
6
6
  const require_index$1 = require('./components/index.cjs');
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,5 +1,5 @@
1
1
  import { WidgetTextFieldProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/WidgetTextField/WidgetTextField.d.ts
5
5
  declare const WidgetTextField: ({
@@ -15,6 +15,6 @@ declare const WidgetTextField: ({
15
15
  disabled,
16
16
  isLoading,
17
17
  onClick
18
- }: WidgetTextFieldProps) => react_jsx_runtime0.JSX.Element;
18
+ }: WidgetTextFieldProps) => react_jsx_runtime2.JSX.Element;
19
19
  //#endregion
20
20
  export { WidgetTextField };
@@ -1,5 +1,5 @@
1
1
  import { WidgetTextFieldProps } from "./types/types.js";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/WidgetTextField/WidgetTextField.d.ts
5
5
  declare const WidgetTextField: ({
@@ -15,6 +15,6 @@ declare const WidgetTextField: ({
15
15
  disabled,
16
16
  isLoading,
17
17
  onClick
18
- }: WidgetTextFieldProps) => react_jsx_runtime0.JSX.Element;
18
+ }: WidgetTextFieldProps) => react_jsx_runtime4.JSX.Element;
19
19
  //#endregion
20
20
  export { WidgetTextField };
@@ -1,6 +1,6 @@
1
1
  import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
2
- import { resolveTheme } from "../utils/resolveTheme.js";
3
2
  import { TypographyColor } from "../Typography/types/index.js";
3
+ import { resolveTheme } from "../utils/resolveTheme.js";
4
4
  import { IconVariant } from "./types/types.js";
5
5
  import { WidgetTextFieldComponents } from "./components/index.js";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_Container = require('../../Container/Container.cjs');
3
- require('../../Container/index.cjs');
4
2
  const require_Stack = require('../../Stack/Stack.cjs');
5
3
  require('../../Stack/index.cjs');
4
+ const require_Container = require('../../Container/Container.cjs');
5
+ require('../../Container/index.cjs');
6
6
  const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
7
7
  const require_useHandleKeyboard = require('../hooks/useHandleKeyboard.cjs');
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,7 +1,7 @@
1
- import { Container } from "../../Container/Container.js";
2
- import "../../Container/index.js";
3
1
  import { Stack } from "../../Stack/Stack.js";
4
2
  import "../../Stack/index.js";
3
+ import { Container } from "../../Container/Container.js";
4
+ import "../../Container/index.js";
5
5
  import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
6
6
  import { useHandleKeyboard } from "../hooks/useHandleKeyboard.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
3
- const require_CustomIcon = require('../../utils/CustomIcon.cjs');
4
3
  const require_index = require('../../Typography/types/index.cjs');
4
+ const require_CustomIcon = require('../../utils/CustomIcon.cjs');
5
5
  const require_types = require('../types/types.cjs');
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
7
  let __envive_ai_react_icons_SendStandard = require("@envive-ai/react-icons/SendStandard");
@@ -1,6 +1,6 @@
1
1
  import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
2
- import { CustomIcon } from "../../utils/CustomIcon.js";
3
2
  import { TypographyColor } from "../../Typography/types/index.js";
3
+ import { CustomIcon } from "../../utils/CustomIcon.js";
4
4
  import { IconVariant } from "../types/types.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import SendStandard from "@envive-ai/react-icons/SendStandard";
@@ -1,5 +1,5 @@
1
1
  import { WidgetWrapperProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/WidgetWrapper/WidgetWrapper.d.ts
5
5
 
@@ -16,6 +16,6 @@ declare const WidgetWrapper: ({
16
16
  className,
17
17
  style,
18
18
  ...containerProps
19
- }: WidgetWrapperProps) => react_jsx_runtime14.JSX.Element;
19
+ }: WidgetWrapperProps) => react_jsx_runtime3.JSX.Element;
20
20
  //#endregion
21
21
  export { WidgetWrapper };
@@ -1,5 +1,5 @@
1
1
  import { WidgetWrapperProps } from "./types/types.js";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/WidgetWrapper/WidgetWrapper.d.ts
5
5
 
@@ -16,6 +16,6 @@ declare const WidgetWrapper: ({
16
16
  className,
17
17
  style,
18
18
  ...containerProps
19
- }: WidgetWrapperProps) => react_jsx_runtime3.JSX.Element;
19
+ }: WidgetWrapperProps) => react_jsx_runtime2.JSX.Element;
20
20
  //#endregion
21
21
  export { WidgetWrapper };
@@ -1,5 +1,5 @@
1
1
  import { WidgetWrapperWithTitleProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
5
5
  declare const WidgetWrapperWithTitle: ({
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
14
14
  hexCardColor,
15
15
  hideLogo,
16
16
  fullIsLoading
17
- }: WidgetWrapperWithTitleProps) => react_jsx_runtime12.JSX.Element;
17
+ }: WidgetWrapperWithTitleProps) => react_jsx_runtime1.JSX.Element;
18
18
  //#endregion
19
19
  export { WidgetWrapperWithTitle };
@@ -1,5 +1,5 @@
1
1
  import { WidgetWrapperWithTitleProps } from "./types/types.js";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
5
5
  declare const WidgetWrapperWithTitle: ({
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
14
14
  hexCardColor,
15
15
  hideLogo,
16
16
  fullIsLoading
17
- }: WidgetWrapperWithTitleProps) => react_jsx_runtime1.JSX.Element;
17
+ }: WidgetWrapperWithTitleProps) => react_jsx_runtime0.JSX.Element;
18
18
  //#endregion
19
19
  export { WidgetWrapperWithTitle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envive-ai/react-toolkit-v3",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "React component library for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "peerDependencies": {
52
52
  "framer-motion": ">=12.23.24",
53
- "react": "^18.3.1",
54
- "react-dom": "^18.3.1"
53
+ "react": "^18.3.0 || ^19.0.0",
54
+ "react-dom": "^18.3.0 || ^19.0.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@chromatic-com/storybook": "^4.1.1",
@@ -17,7 +17,9 @@ type PromptButtonsCarouselProps = {
17
17
  handlePromptButtonTouchEnd?: () => void;
18
18
  };
19
19
 
20
- function distributeInThreeRows<T>(items: T[]): [T[], T[], T[]] {
20
+ function distributeInThreeRows<T>(
21
+ items: [number, T][],
22
+ ): [[number, T][], [number, T][], [number, T][]] {
21
23
  const n = items.length;
22
24
  const perRow = [1, 1, 1];
23
25
  let remaining = Math.max(0, n - 3);
@@ -55,13 +57,13 @@ export const PromptButtonsCarousel = ({
55
57
  ? ['Loading 1...', 'Loading 2...', 'Loading 3...']
56
58
  : promptButtonsTexts || [];
57
59
 
58
- const renderButton = (text: string) => (
60
+ const renderButton = ([index, text]: [number, string]) => (
59
61
  <div
60
- key={text}
62
+ key={`${text}-${index}`}
61
63
  className="envive-tw-flex-shrink-0"
62
64
  >
63
65
  <PromptButton
64
- id={`prompt-button-${text}`}
66
+ id={`prompt-button-${index}`}
65
67
  isLoading={isLoading}
66
68
  label={text}
67
69
  variant={promptButtonType}
@@ -77,18 +79,19 @@ export const PromptButtonsCarousel = ({
77
79
  </div>
78
80
  );
79
81
 
82
+ const indexedTexts: [number, string][] = Array.from(promptButtonsTextsFinal.entries());
83
+
80
84
  if (isMobile) {
81
- const [row0, row1, row2] = distributeInThreeRows(promptButtonsTextsFinal);
82
- const rows = [row0, row1, row2].filter(row => row.length > 0);
85
+ const rows = distributeInThreeRows(indexedTexts).filter(row => row.length > 0);
83
86
  return (
84
87
  <Stack
85
88
  direction="column"
86
89
  gap="4"
87
90
  className="envive-tw-w-full"
88
91
  >
89
- {rows.map(row => (
92
+ {rows.map((row, rowIndex) => (
90
93
  <Stack
91
- key={row.join('-')}
94
+ key={rowIndex}
92
95
  direction="row"
93
96
  gap="4"
94
97
  className="envive-tw-w-full envive-tw-flex-nowrap"
@@ -100,5 +103,5 @@ export const PromptButtonsCarousel = ({
100
103
  );
101
104
  }
102
105
 
103
- return <>{promptButtonsTextsFinal.map(renderButton)}</>;
106
+ return <>{indexedTexts.map(renderButton)}</>;
104
107
  };