@envive-ai/react-toolkit-v3 0.3.8 → 0.3.9
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.
- package/dist/AnimatedText/AnimatedText.cjs +1 -0
- package/dist/AnimatedText/AnimatedText.js +1 -0
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/components/CSSVariablesEditor.cjs +1 -1
- package/dist/CSSVariablesEditor/components/CSSVariablesEditor.js +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/components/Container.cjs +1 -1
- package/dist/Carousel/components/Container.js +1 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/components/index.d.cts +3 -3
- package/dist/ChatFooter/components/index.d.ts +5 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.cjs +13 -3
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +13 -3
- package/dist/ChatPreview/components/Message.cjs +1 -1
- package/dist/ChatPreview/components/Message.js +1 -1
- package/dist/ChatPreview/types/types.d.cts +5 -4
- package/dist/ChatPreview/types/types.d.ts +5 -4
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +13 -3
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +13 -3
- package/dist/ChatPreviewComparison/components/Message.cjs +1 -1
- package/dist/ChatPreviewComparison/components/Message.js +1 -1
- package/dist/ChatPreviewComparison/types/types.d.cts +4 -4
- package/dist/ChatPreviewComparison/types/types.d.ts +4 -4
- package/dist/ChatPreviewLoading/ChatPreviewLoading.cjs +1 -1
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.js +1 -1
- package/dist/Container/Container.d.cts +174 -174
- package/dist/Container/Container.d.ts +174 -174
- package/dist/DesignTokens/DesignTokensComponent.cjs +1 -1
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.js +1 -1
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.cjs +4 -3
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +4 -3
- package/dist/FloatingChat/components/AgentMessage.cjs +9 -5
- package/dist/FloatingChat/components/AgentMessage.js +9 -5
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +11 -11
- package/dist/FloatingChat/components/Layout.js +11 -11
- package/dist/FloatingChat/components/ModalSheet.cjs +1 -1
- package/dist/FloatingChat/components/ModalSheet.js +1 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.cjs +2 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.js +2 -1
- package/dist/FloatingChat/components/ScrollToBottomButton.cjs +1 -1
- package/dist/FloatingChat/components/ScrollToBottomButton.js +1 -1
- package/dist/Form/Form.cjs +1 -1
- package/dist/Form/Form.js +1 -1
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/ImageGallery/components/NormalLayout.cjs +1 -1
- package/dist/ImageGallery/components/NormalLayout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.cjs +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.js +1 -1
- package/dist/Message/components/AgentContent.cjs +1 -1
- package/dist/Message/components/AgentContent.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +9 -5
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +4 -1
- package/dist/ProductCard/components/Header.cjs +3 -3
- package/dist/ProductCard/components/Header.js +3 -3
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.cjs +3 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.js +3 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +8 -3
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +8 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +53 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +53 -3
- package/dist/PromptCarousel/PromptCarousel.cjs +70 -33
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +71 -34
- package/dist/PromptCarousel/hooks/index.cjs +2 -4
- package/dist/PromptCarousel/hooks/index.js +2 -4
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.cjs +91 -0
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.js +90 -0
- package/dist/PromptCarousel/hooks/useScrollSync.cjs +65 -0
- package/dist/PromptCarousel/hooks/useScrollSync.js +64 -0
- package/dist/ReviewCard/ReviewCard.cjs +1 -1
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/ReviewCard.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +6 -6
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +6 -6
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/components/Headline.cjs +1 -1
- package/dist/SocialProof/components/Headline.js +1 -1
- package/dist/SocialProof/components/LayoutSingle.cjs +1 -1
- package/dist/SocialProof/components/LayoutSingle.js +1 -1
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/Stack/hooks/useFormatStackChildren.cjs +1 -1
- package/dist/Stack/hooks/useFormatStackChildren.js +1 -1
- package/dist/Title/components/Image.cjs +1 -1
- package/dist/Title/components/Image.js +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.cjs +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WidgetTextField/WidgetTextField.cjs +11 -6
- package/dist/WidgetTextField/WidgetTextField.d.cts +3 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +3 -2
- package/dist/WidgetTextField/WidgetTextField.js +7 -2
- package/dist/WidgetTextField/components/FakeTextInput.cjs +2 -2
- package/dist/WidgetTextField/components/FakeTextInput.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +10 -9
- package/dist/WidgetTextField/components/Icon.js +10 -9
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.js +1 -1
- package/dist/WidgetTextField/types/types.d.cts +3 -0
- package/dist/WidgetTextField/types/types.d.ts +3 -0
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/dist/utils/CustomIcon.cjs +1 -1
- package/dist/utils/CustomIcon.js +1 -1
- package/dist/utils/useDragToScroll.cjs +68 -0
- package/dist/utils/useDragToScroll.js +67 -0
- package/package.json +1 -1
- package/src/components/AnimatedText/AnimatedText.tsx +2 -0
- package/src/components/ChatPreview/ChatPreview.tsx +20 -3
- package/src/components/ChatPreview/types/types.ts +5 -4
- package/src/components/ChatPreviewComparison/ChatPreviewComparison.tsx +20 -3
- package/src/components/ChatPreviewComparison/types/types.ts +4 -4
- package/src/components/FloatingChat/FloatingChat.tsx +3 -2
- package/src/components/FloatingChat/components/AgentMessage.tsx +1 -0
- package/src/components/FloatingChat/components/Layout.tsx +7 -2
- package/src/components/FloatingChat/components/ReviewCardsCarousel.tsx +3 -0
- package/src/components/ProductCard/ProductCard.tsx +12 -1
- package/src/components/ProductCard/components/Header.tsx +10 -8
- package/src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx +6 -3
- package/src/components/PromptButtonCarouselWithImage/components/Layout.tsx +13 -4
- package/src/components/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.tsx +63 -20
- package/src/components/PromptCarousel/PromptCarousel.tsx +88 -51
- package/src/components/PromptCarousel/hooks/index.ts +2 -4
- package/src/components/PromptCarousel/hooks/useCoordinatedScrollAnimation.ts +115 -0
- package/src/components/PromptCarousel/hooks/useHorizontalScrollAnimation.ts +71 -78
- package/src/components/PromptCarousel/hooks/useScrollSync.ts +83 -0
- package/src/components/WidgetTextField/WidgetTextField.tsx +9 -1
- package/src/components/WidgetTextField/components/FakeTextInput.tsx +6 -2
- package/src/components/WidgetTextField/components/Icon.tsx +43 -9
- package/src/components/WidgetTextField/types/types.ts +3 -0
- package/src/components/utils/useDragToScroll.ts +83 -0
- package/dist/PromptCarousel/components/BlockScrollContainer.cjs +0 -23
- package/dist/PromptCarousel/components/BlockScrollContainer.js +0 -21
- package/dist/PromptCarousel/components/ButtonContainerRow.cjs +0 -34
- package/dist/PromptCarousel/components/ButtonContainerRow.js +0 -32
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.cjs +0 -45
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.js +0 -44
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.cjs +0 -33
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.js +0 -32
- package/dist/PromptCarousel/components/index.cjs +0 -13
- package/dist/PromptCarousel/components/index.js +0 -13
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.cjs +0 -79
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.js +0 -78
- package/dist/PromptCarousel/hooks/useCarouselAnimation.cjs +0 -23
- package/dist/PromptCarousel/hooks/useCarouselAnimation.js +0 -22
- package/dist/PromptCarousel/hooks/useCarouselRefs.cjs +0 -20
- package/dist/PromptCarousel/hooks/useCarouselRefs.js +0 -19
- package/dist/PromptCarousel/hooks/useGetScrollProperties.cjs +0 -18
- package/dist/PromptCarousel/hooks/useGetScrollProperties.js +0 -17
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.cjs +0 -78
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.js +0 -77
- package/src/components/PromptCarousel/components/BlockScrollContainer.tsx +0 -34
- package/src/components/PromptCarousel/components/ButtonContainerRow.tsx +0 -46
- package/src/components/PromptCarousel/components/CarouselContentWithBlockScroll.tsx +0 -83
- package/src/components/PromptCarousel/components/CarouselContentWithRowScroll.tsx +0 -71
- package/src/components/PromptCarousel/components/index.ts +0 -9
- package/src/components/PromptCarousel/hooks/useButtonScrollPosition.ts +0 -128
- package/src/components/PromptCarousel/hooks/useCarouselAnimation.ts +0 -47
- package/src/components/PromptCarousel/hooks/useCarouselRefs.ts +0 -27
|
@@ -12,8 +12,8 @@ import { UserMessage } from "./UserMessage.js";
|
|
|
12
12
|
import { checkIfHideAgentName, getGroupableMessages } from "../utils/functions.js";
|
|
13
13
|
import { AgentMessage } from "./AgentMessage.js";
|
|
14
14
|
import { MessageDivider } from "./MessageDivider.js";
|
|
15
|
-
import { forwardRef } from "react";
|
|
16
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { forwardRef } from "react";
|
|
17
17
|
import classNames from "classnames";
|
|
18
18
|
import { MessageRole, MessageType } from "@envive-ai/react-hooks/application/models";
|
|
19
19
|
|
|
@@ -5,8 +5,8 @@ const require_Container = require('../../Container/Container.cjs');
|
|
|
5
5
|
require('../../Container/index.cjs');
|
|
6
6
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
7
7
|
require('../../Stack/index.cjs');
|
|
8
|
-
let react = require("react");
|
|
9
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let react = require("react");
|
|
10
10
|
let classnames = require("classnames");
|
|
11
11
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
12
12
|
|
|
@@ -34,16 +34,16 @@ const Layout = ({ id, className, style, testId, theme = require_theme.Theme.GLOB
|
|
|
34
34
|
className: "envive-tw-h-full",
|
|
35
35
|
direction: "column",
|
|
36
36
|
justify: "between",
|
|
37
|
-
children: [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
]
|
|
37
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
38
|
+
direction: "column",
|
|
39
|
+
gap: "0",
|
|
40
|
+
children: [welcomeMessage, disclaimer && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: disclaimer })]
|
|
41
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
42
|
+
direction: "column",
|
|
43
|
+
gap: "0",
|
|
44
|
+
className: (0, classnames.default)((!hasWelcomeMessage || hasWelcomeMessage && finalTheme === require_theme.Theme.STANDARD) && "envive-tw-pt-4", !hasAnswerSuggestions && !isFloatingFooterLayout && "envive-tw-pb-4", isFloatingFooterLayout && "envive-tw-pb-[180px]"),
|
|
45
|
+
children: [chatMessages, answerSuggestions]
|
|
46
|
+
})]
|
|
47
47
|
})
|
|
48
48
|
}),
|
|
49
49
|
footer && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -4,8 +4,8 @@ import { Container } from "../../Container/Container.js";
|
|
|
4
4
|
import "../../Container/index.js";
|
|
5
5
|
import { Stack } from "../../Stack/Stack.js";
|
|
6
6
|
import "../../Stack/index.js";
|
|
7
|
-
import { isValidElement } from "react";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { isValidElement } from "react";
|
|
9
9
|
import classNames from "classnames";
|
|
10
10
|
|
|
11
11
|
//#region src/components/FloatingChat/components/Layout.tsx
|
|
@@ -32,16 +32,16 @@ const Layout = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, hea
|
|
|
32
32
|
className: "envive-tw-h-full",
|
|
33
33
|
direction: "column",
|
|
34
34
|
justify: "between",
|
|
35
|
-
children: [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]
|
|
35
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
36
|
+
direction: "column",
|
|
37
|
+
gap: "0",
|
|
38
|
+
children: [welcomeMessage, disclaimer && /* @__PURE__ */ jsx("div", { children: disclaimer })]
|
|
39
|
+
}), /* @__PURE__ */ jsxs(Stack, {
|
|
40
|
+
direction: "column",
|
|
41
|
+
gap: "0",
|
|
42
|
+
className: classNames((!hasWelcomeMessage || hasWelcomeMessage && finalTheme === Theme.STANDARD) && "envive-tw-pt-4", !hasAnswerSuggestions && !isFloatingFooterLayout && "envive-tw-pb-4", isFloatingFooterLayout && "envive-tw-pb-[180px]"),
|
|
43
|
+
children: [chatMessages, answerSuggestions]
|
|
44
|
+
})]
|
|
45
45
|
})
|
|
46
46
|
}),
|
|
47
47
|
footer && /* @__PURE__ */ jsx("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_useSnapControl = require('../hooks/useSnapControl.cjs');
|
|
3
3
|
const require_usePreventScroll = require('../hooks/usePreventScroll.cjs');
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let react = require("react");
|
|
5
6
|
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let framer_motion = require("framer-motion");
|
|
8
8
|
|
|
9
9
|
//#region src/components/FloatingChat/components/ModalSheet.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSnapControl } from "../hooks/useSnapControl.js";
|
|
2
2
|
import { usePreventScroll } from "../hooks/usePreventScroll.js";
|
|
3
|
-
import React, { useEffect, useImperativeHandle } from "react";
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import React, { useEffect, useImperativeHandle } from "react";
|
|
5
5
|
import { AnimatePresence, motion, useAnimate } from "framer-motion";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FloatingChat/components/ModalSheet.tsx
|
|
@@ -6,9 +6,10 @@ require('../../ReviewCard/index.cjs');
|
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
8
8
|
//#region src/components/FloatingChat/components/ReviewCardsCarousel.tsx
|
|
9
|
-
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer }) => {
|
|
9
|
+
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer, hideNavigation = false }) => {
|
|
10
10
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Carousel.Carousel, {
|
|
12
|
+
hideNavigation,
|
|
12
13
|
elements: reviews.map((review) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ReviewCard.ReviewCard, {
|
|
13
14
|
name: review.name,
|
|
14
15
|
rating: review.rating,
|
|
@@ -5,9 +5,10 @@ import "../../ReviewCard/index.js";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FloatingChat/components/ReviewCardsCarousel.tsx
|
|
8
|
-
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer }) => {
|
|
8
|
+
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer, hideNavigation = false }) => {
|
|
9
9
|
const finalTheme = resolveTheme(theme);
|
|
10
10
|
return /* @__PURE__ */ jsx(Carousel, {
|
|
11
|
+
hideNavigation,
|
|
11
12
|
elements: reviews.map((review) => /* @__PURE__ */ jsx(ReviewCard, {
|
|
12
13
|
name: review.name,
|
|
13
14
|
rating: review.rating,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react = require("react");
|
|
3
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let react = require("react");
|
|
4
4
|
let __envive_ai_react_icons_ArrowUp = require("@envive-ai/react-icons/ArrowUp");
|
|
5
5
|
__envive_ai_react_icons_ArrowUp = require_rolldown_runtime.__toESM(__envive_ai_react_icons_ArrowUp);
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Children, cloneElement } from "react";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, cloneElement } from "react";
|
|
3
3
|
import ArrowUp from "@envive-ai/react-icons/ArrowUp";
|
|
4
4
|
|
|
5
5
|
//#region src/components/FloatingChat/components/ScrollToBottomButton.tsx
|
package/dist/Form/Form.cjs
CHANGED
|
@@ -4,8 +4,8 @@ const require_useFormsTextFieldValues = require('./hooks/useFormsTextFieldValues
|
|
|
4
4
|
const require_buildSubmitButtonElement = require('./utils/buildSubmitButtonElement.cjs');
|
|
5
5
|
const require_handleFormsSubmit = require('./utils/handleFormsSubmit.cjs');
|
|
6
6
|
const require_mapTextFields = require('./utils/mapTextFields.cjs');
|
|
7
|
-
let react = require("react");
|
|
8
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let react = require("react");
|
|
9
9
|
let classnames = require("classnames");
|
|
10
10
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
11
11
|
|
package/dist/Form/Form.js
CHANGED
|
@@ -3,8 +3,8 @@ import { useFormsTextFieldValues } from "./hooks/useFormsTextFieldValues.js";
|
|
|
3
3
|
import { buildSubmitButtonElement } from "./utils/buildSubmitButtonElement.js";
|
|
4
4
|
import { handleFormsSubmit } from "./utils/handleFormsSubmit.js";
|
|
5
5
|
import { mapTextFields } from "./utils/mapTextFields.js";
|
|
6
|
-
import { useState } from "react";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { useState } from "react";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Form/Form.tsx
|
package/dist/Image/Image.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Image/Image.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const Image: ({
|
|
|
25
25
|
role,
|
|
26
26
|
"aria-hidden": ariaHidden,
|
|
27
27
|
...rest
|
|
28
|
-
}: ImageProps) =>
|
|
28
|
+
}: ImageProps) => react_jsx_runtime34.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Image };
|
package/dist/Image/Image.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Image/Image.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const Image: ({
|
|
|
25
25
|
role,
|
|
26
26
|
"aria-hidden": ariaHidden,
|
|
27
27
|
...rest
|
|
28
|
-
}: ImageProps) =>
|
|
28
|
+
}: ImageProps) => react_jsx_runtime24.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Image };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageGalleryProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageGallery/ImageGallery.d.ts
|
|
5
5
|
|
|
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
|
|
|
40
40
|
"aria-describedby": ariaDescribedBy,
|
|
41
41
|
role,
|
|
42
42
|
"aria-hidden": ariaHidden
|
|
43
|
-
}: ImageGalleryProps) =>
|
|
43
|
+
}: ImageGalleryProps) => react_jsx_runtime25.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageGalleryProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageGallery/ImageGallery.d.ts
|
|
5
5
|
|
|
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
|
|
|
40
40
|
"aria-describedby": ariaDescribedBy,
|
|
41
41
|
role,
|
|
42
42
|
"aria-hidden": ariaHidden
|
|
43
|
-
}: ImageGalleryProps) =>
|
|
43
|
+
}: ImageGalleryProps) => react_jsx_runtime19.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
2
3
|
let react = require("react");
|
|
3
4
|
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
|
|
6
6
|
//#region src/components/ImageGallery/components/NormalLayout.tsx
|
|
7
7
|
const NormalLayout = ({ displayImages }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_index = require('./components/index.cjs');
|
|
3
3
|
const require_functions = require('./utils/functions.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let react = require("react");
|
|
6
6
|
let react_markdown = require("react-markdown");
|
|
7
7
|
react_markdown = require_rolldown_runtime.__toESM(react_markdown);
|
|
8
8
|
let remark_gfm = require("remark-gfm");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -9,6 +9,6 @@ declare const MarkdownProcessor: ({
|
|
|
9
9
|
textVariant,
|
|
10
10
|
subTextVariant,
|
|
11
11
|
subTextColor
|
|
12
|
-
}: MarkdownProcessorProps) =>
|
|
12
|
+
}: MarkdownProcessorProps) => react_jsx_runtime20.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { MarkdownProcessor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -9,6 +9,6 @@ declare const MarkdownProcessor: ({
|
|
|
9
9
|
textVariant,
|
|
10
10
|
subTextVariant,
|
|
11
11
|
subTextColor
|
|
12
|
-
}: MarkdownProcessorProps) =>
|
|
12
|
+
}: MarkdownProcessorProps) => react_jsx_runtime17.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { MarkdownProcessor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MarkdownProcessorComponents } from "./components/index.js";
|
|
2
2
|
import { createMarkdownParagraphComponent, createMarkdownSubscriptComponent } from "./utils/functions.js";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
5
|
import ReactMarkdown from "react-markdown";
|
|
6
6
|
import remarkGfm from "remark-gfm";
|
|
7
7
|
import rehypeRaw from "rehype-raw";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_LoadingSkeleton = require('./LoadingSkeleton.cjs');
|
|
3
|
-
let react = require("react");
|
|
4
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let react = require("react");
|
|
5
5
|
|
|
6
6
|
//#region src/components/Message/components/AgentContent.tsx
|
|
7
7
|
const MarkdownProcessor = (0, react.lazy)(async () => ({ default: (await Promise.resolve().then(() => require("../../MarkdownProcessor/MarkdownProcessor.cjs"))).MarkdownProcessor }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LoadingSkeleton } from "./LoadingSkeleton.js";
|
|
2
|
-
import { Suspense, lazy } from "react";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Suspense, lazy } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Message/components/AgentContent.tsx
|
|
6
6
|
const MarkdownProcessor = lazy(async () => ({ default: (await import("../../MarkdownProcessor/MarkdownProcessor.js")).MarkdownProcessor }));
|
|
@@ -2,19 +2,22 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
3
|
require('../Tokens/index.cjs');
|
|
4
4
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
|
+
const require_index = require('../Typography/types/index.cjs');
|
|
5
6
|
const require_WidgetTextField = require('../WidgetTextField/WidgetTextField.cjs');
|
|
6
7
|
require('../WidgetTextField/index.cjs');
|
|
7
|
-
const require_index = require('./components/index.cjs');
|
|
8
|
+
const require_index$1 = require('./components/index.cjs');
|
|
8
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let classnames = require("classnames");
|
|
11
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
12
|
|
|
10
13
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
11
14
|
const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, headline, italicizeHeadline, animatedText, prompts, promptButtonType, carouselId, fallbackColor, placeholder, textTypingDuration, textTransition, loop, onSelect, onInputClick }) => {
|
|
12
15
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
13
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_index.ProductCardWidgetComponents.Poster, {
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_index$1.ProductCardWidgetComponents.Poster, {
|
|
14
17
|
imageSrc,
|
|
15
18
|
fallbackColor,
|
|
16
19
|
children: [
|
|
17
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.ProductCardWidgetComponents.Header, {
|
|
20
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.ProductCardWidgetComponents.Header, {
|
|
18
21
|
headline,
|
|
19
22
|
italicizeHeadline,
|
|
20
23
|
animatedText,
|
|
@@ -22,7 +25,7 @@ const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, head
|
|
|
22
25
|
textTransition,
|
|
23
26
|
loop
|
|
24
27
|
}),
|
|
25
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.ProductCardWidgetComponents.Carousel, {
|
|
28
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.ProductCardWidgetComponents.Carousel, {
|
|
26
29
|
theme: resolvedTheme,
|
|
27
30
|
carouselId,
|
|
28
31
|
prompts,
|
|
@@ -33,7 +36,8 @@ const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, head
|
|
|
33
36
|
theme: resolvedTheme,
|
|
34
37
|
placeholder,
|
|
35
38
|
onClick: onInputClick,
|
|
36
|
-
|
|
39
|
+
textColor: resolvedTheme === require_theme.Theme.MINIMAL ? require_index.TypographyColor.TEXT_LIGHT : require_index.TypographyColor.TEXT_SECONDARY,
|
|
40
|
+
className: (0, classnames.default)(resolvedTheme === require_theme.Theme.MINIMAL ? "envive-tw-bg-transparent" : "envive-tw-bg-background-light")
|
|
37
41
|
})
|
|
38
42
|
]
|
|
39
43
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
@@ -18,6 +18,6 @@ declare const ProductCard: ({
|
|
|
18
18
|
loop,
|
|
19
19
|
onSelect,
|
|
20
20
|
onInputClick
|
|
21
|
-
}: ProductCardProps) =>
|
|
21
|
+
}: ProductCardProps) => react_jsx_runtime0.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ProductCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
@@ -18,6 +18,6 @@ declare const ProductCard: ({
|
|
|
18
18
|
loop,
|
|
19
19
|
onSelect,
|
|
20
20
|
onInputClick
|
|
21
|
-
}: ProductCardProps) =>
|
|
21
|
+
}: ProductCardProps) => react_jsx_runtime10.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ProductCard };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
2
|
import "../Tokens/index.js";
|
|
3
3
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
4
|
+
import { TypographyColor } from "../Typography/types/index.js";
|
|
4
5
|
import { WidgetTextField } from "../WidgetTextField/WidgetTextField.js";
|
|
5
6
|
import "../WidgetTextField/index.js";
|
|
6
7
|
import { ProductCardWidgetComponents } from "./components/index.js";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import classNames from "classnames";
|
|
8
10
|
|
|
9
11
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
10
12
|
const ProductCard = ({ theme = Theme.GLOBAL_CUSTOM, imageSrc, headline, italicizeHeadline, animatedText, prompts, promptButtonType, carouselId, fallbackColor, placeholder, textTypingDuration, textTransition, loop, onSelect, onInputClick }) => {
|
|
@@ -32,7 +34,8 @@ const ProductCard = ({ theme = Theme.GLOBAL_CUSTOM, imageSrc, headline, italiciz
|
|
|
32
34
|
theme: resolvedTheme,
|
|
33
35
|
placeholder,
|
|
34
36
|
onClick: onInputClick,
|
|
35
|
-
|
|
37
|
+
textColor: resolvedTheme === Theme.MINIMAL ? TypographyColor.TEXT_LIGHT : TypographyColor.TEXT_SECONDARY,
|
|
38
|
+
className: classNames(resolvedTheme === Theme.MINIMAL ? "envive-tw-bg-transparent" : "envive-tw-bg-background-light")
|
|
36
39
|
})
|
|
37
40
|
]
|
|
38
41
|
});
|
|
@@ -7,8 +7,8 @@ const require_index = require('../../Typography/types/index.cjs');
|
|
|
7
7
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
8
8
|
require('../../Typography/index.cjs');
|
|
9
9
|
const require_useGetHeaderProperties = require('../hooks/useGetHeaderProperties.cjs');
|
|
10
|
-
let react = require("react");
|
|
11
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let react = require("react");
|
|
12
12
|
|
|
13
13
|
//#region src/components/ProductCard/components/Header.tsx
|
|
14
14
|
const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration, textTransition, loop }) => {
|
|
@@ -23,12 +23,12 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
23
23
|
gap: 1,
|
|
24
24
|
className: stackClasses,
|
|
25
25
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
26
|
-
variant: require_index.TypographyVariant.
|
|
26
|
+
variant: require_index.TypographyVariant.H1_MD,
|
|
27
27
|
color: require_index.TypographyColor.TEXT_LIGHT,
|
|
28
28
|
className: headlineClasses,
|
|
29
29
|
numberOfLines: 2,
|
|
30
30
|
children: headline
|
|
31
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AnimatedText.AnimatedText, {
|
|
31
|
+
}), animatedText.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AnimatedText.AnimatedText, {
|
|
32
32
|
sequence: animatedText,
|
|
33
33
|
getNodeWrapper: animatedTextWrapper,
|
|
34
34
|
typingDuration: textTypingDuration,
|
|
@@ -6,8 +6,8 @@ import { TypographyColor, TypographyVariant } from "../../Typography/types/index
|
|
|
6
6
|
import { Typography } from "../../Typography/Typography.js";
|
|
7
7
|
import "../../Typography/index.js";
|
|
8
8
|
import { useGetHeaderProperties } from "../hooks/useGetHeaderProperties.js";
|
|
9
|
-
import { useCallback } from "react";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { useCallback } from "react";
|
|
11
11
|
|
|
12
12
|
//#region src/components/ProductCard/components/Header.tsx
|
|
13
13
|
const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration, textTransition, loop }) => {
|
|
@@ -22,12 +22,12 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
22
22
|
gap: 1,
|
|
23
23
|
className: stackClasses,
|
|
24
24
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
25
|
-
variant: TypographyVariant.
|
|
25
|
+
variant: TypographyVariant.H1_MD,
|
|
26
26
|
color: TypographyColor.TEXT_LIGHT,
|
|
27
27
|
className: headlineClasses,
|
|
28
28
|
numberOfLines: 2,
|
|
29
29
|
children: headline
|
|
30
|
-
}), /* @__PURE__ */ jsx(AnimatedText, {
|
|
30
|
+
}), animatedText.length > 0 && /* @__PURE__ */ jsx(AnimatedText, {
|
|
31
31
|
sequence: animatedText,
|
|
32
32
|
getNodeWrapper: animatedTextWrapper,
|
|
33
33
|
typingDuration: textTypingDuration,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -16,6 +16,6 @@ declare const PromptButton: ({
|
|
|
16
16
|
onClick,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
ariaDescribedBy
|
|
19
|
-
}: PromptButtonProps) =>
|
|
19
|
+
}: PromptButtonProps) => react_jsx_runtime24.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PromptButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -16,6 +16,6 @@ declare const PromptButton: ({
|
|
|
16
16
|
onClick,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
ariaDescribedBy
|
|
19
|
-
}: PromptButtonProps) =>
|
|
19
|
+
}: PromptButtonProps) => react_jsx_runtime8.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PromptButton };
|
|
@@ -7,7 +7,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
7
7
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx
|
|
8
8
|
const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, alt, isLoading, hideTextField, title, promptButtonsTexts, promptButtonType, handlePromptButtonClick, textFieldPlaceholder, handleTextFieldClick }) => {
|
|
9
9
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
10
|
-
if (promptButtonsTexts && promptButtonsTexts?.length
|
|
10
|
+
if (promptButtonsTexts && promptButtonsTexts?.length < 3) throw new Error("PromptButtonsCarouselWithImage: promptButtonsTexts must have at least 3 items");
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.PromptButtonCarouselWithImageComponents.Layout, {
|
|
12
12
|
id,
|
|
13
13
|
testId,
|
|
@@ -17,6 +17,7 @@ const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = r
|
|
|
17
17
|
textField: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.PromptButtonCarouselWithImageComponents.TextField, {
|
|
18
18
|
isLoading,
|
|
19
19
|
placeholder: textFieldPlaceholder,
|
|
20
|
+
className: finalTheme === require_theme.Theme.MINIMAL ? "!envive-tw-border-border-medium" : void 0,
|
|
20
21
|
onClick: () => handleTextFieldClick(textFieldPlaceholder),
|
|
21
22
|
theme: finalTheme
|
|
22
23
|
}),
|
|
@@ -28,7 +29,7 @@ const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = r
|
|
|
28
29
|
promptButtons: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.PromptButtonCarouselWithImageComponents.PromptButtonsCarousel, {
|
|
29
30
|
theme: finalTheme,
|
|
30
31
|
isLoading,
|
|
31
|
-
promptButtonsTexts,
|
|
32
|
+
promptButtonsTexts: promptButtonsTexts || [],
|
|
32
33
|
promptButtonType,
|
|
33
34
|
handlePromptButtonClick
|
|
34
35
|
}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -18,6 +18,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
18
18
|
handlePromptButtonClick,
|
|
19
19
|
textFieldPlaceholder,
|
|
20
20
|
handleTextFieldClick
|
|
21
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
21
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime17.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PromptButtonCarouselWithImage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -18,6 +18,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
18
18
|
handlePromptButtonClick,
|
|
19
19
|
textFieldPlaceholder,
|
|
20
20
|
handleTextFieldClick
|
|
21
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
21
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime9.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PromptButtonCarouselWithImage };
|
|
@@ -6,7 +6,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
6
6
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx
|
|
7
7
|
const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = Theme.GLOBAL_CUSTOM, imageSrc, alt, isLoading, hideTextField, title, promptButtonsTexts, promptButtonType, handlePromptButtonClick, textFieldPlaceholder, handleTextFieldClick }) => {
|
|
8
8
|
const finalTheme = resolveTheme(theme);
|
|
9
|
-
if (promptButtonsTexts && promptButtonsTexts?.length
|
|
9
|
+
if (promptButtonsTexts && promptButtonsTexts?.length < 3) throw new Error("PromptButtonsCarouselWithImage: promptButtonsTexts must have at least 3 items");
|
|
10
10
|
return /* @__PURE__ */ jsx(PromptButtonCarouselWithImageComponents.Layout, {
|
|
11
11
|
id,
|
|
12
12
|
testId,
|
|
@@ -16,6 +16,7 @@ const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = T
|
|
|
16
16
|
textField: /* @__PURE__ */ jsx(PromptButtonCarouselWithImageComponents.TextField, {
|
|
17
17
|
isLoading,
|
|
18
18
|
placeholder: textFieldPlaceholder,
|
|
19
|
+
className: finalTheme === Theme.MINIMAL ? "!envive-tw-border-border-medium" : void 0,
|
|
19
20
|
onClick: () => handleTextFieldClick(textFieldPlaceholder),
|
|
20
21
|
theme: finalTheme
|
|
21
22
|
}),
|
|
@@ -27,7 +28,7 @@ const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = T
|
|
|
27
28
|
promptButtons: /* @__PURE__ */ jsx(PromptButtonCarouselWithImageComponents.PromptButtonsCarousel, {
|
|
28
29
|
theme: finalTheme,
|
|
29
30
|
isLoading,
|
|
30
|
-
promptButtonsTexts,
|
|
31
|
+
promptButtonsTexts: promptButtonsTexts || [],
|
|
31
32
|
promptButtonType,
|
|
32
33
|
handlePromptButtonClick
|
|
33
34
|
}),
|