@envive-ai/react-toolkit-v3 0.3.25 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnimatedText/AnimatedText.d.cts +3 -3
- package/dist/AnimatedText/AnimatedText.d.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +4 -4
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +4 -4
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +3 -3
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +3 -3
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/components/Badge.cjs +1 -1
- package/dist/Carousel/components/Badge.js +1 -1
- package/dist/Carousel/components/Container.cjs +1 -1
- package/dist/Carousel/components/Container.js +1 -1
- package/dist/ChatFooter/ChatFooter.cjs +2 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +2 -1
- package/dist/ChatFooter/components/Layout.cjs +3 -3
- package/dist/ChatFooter/components/Layout.d.cts +1 -0
- package/dist/ChatFooter/components/Layout.d.ts +1 -0
- package/dist/ChatFooter/components/Layout.js +3 -3
- package/dist/ChatFooter/components/index.d.cts +6 -5
- package/dist/ChatFooter/components/index.d.ts +6 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/hooks/useGetHandleProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetHandleProperties.js +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
- package/dist/ChatHeader/hooks/useGetToggleOptionProperties.cjs +6 -6
- package/dist/ChatHeader/hooks/useGetToggleOptionProperties.js +6 -6
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Layout.js +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/Container/Container.d.cts +176 -176
- package/dist/Container/Container.d.ts +176 -176
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/components/FontFamily.cjs +1 -1
- package/dist/DesignTokens/components/FontFamily.js +1 -1
- package/dist/DesignTokens/components/FontSize.cjs +1 -1
- package/dist/DesignTokens/components/FontSize.js +1 -1
- package/dist/DesignTokens/components/FontWeight.cjs +1 -1
- package/dist/DesignTokens/components/FontWeight.js +1 -1
- package/dist/DesignTokens/components/LetterSpacing.cjs +1 -1
- package/dist/DesignTokens/components/LetterSpacing.js +1 -1
- package/dist/DesignTokens/components/LineHeight.cjs +1 -1
- package/dist/DesignTokens/components/LineHeight.js +1 -1
- package/dist/DesignTokens/components/Typography.cjs +1 -1
- package/dist/DesignTokens/components/Typography.js +1 -1
- package/dist/Disclaimer/components/Container.cjs +1 -1
- package/dist/Disclaimer/components/Container.js +1 -1
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/DocumentRetrievalCard/components/Image.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Image.js +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingButton/components/Button.cjs +1 -1
- package/dist/FloatingButton/components/Button.js +1 -1
- package/dist/FloatingButton/components/Container.cjs +1 -1
- package/dist/FloatingButton/components/Container.js +1 -1
- package/dist/FloatingButton/components/Wrapper.cjs +1 -1
- package/dist/FloatingButton/components/Wrapper.js +1 -1
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +1 -1
- package/dist/FloatingChat/components/Layout.js +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.cjs +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.js +1 -1
- package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
- package/dist/FloatingChat/components/ResultsGridView.js +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +6 -2
- package/dist/FloatingChat/components/SalesAgentBadgeContent.js +6 -2
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +2 -1
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +2 -1
- package/dist/Form/Form.cjs +1 -1
- package/dist/Form/Form.js +1 -1
- package/dist/Form/components/Layout.cjs +1 -1
- package/dist/Form/components/Layout.js +1 -1
- package/dist/Form/components/SubmitButtonItem.cjs +1 -1
- package/dist/Form/components/SubmitButtonItem.js +1 -1
- package/dist/Form/components/TextFieldItem.cjs +1 -1
- package/dist/Form/components/TextFieldItem.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +89 -25
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +5 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +5 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +90 -26
- package/dist/FullPageSalesAgent/components/Layout.cjs +35 -28
- package/dist/FullPageSalesAgent/components/Layout.js +35 -28
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +102 -0
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +100 -0
- package/dist/FullPageSalesAgent/components/index.cjs +1 -0
- package/dist/FullPageSalesAgent/components/index.js +1 -0
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.cjs +16 -6
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.js +16 -6
- package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.cjs +43 -0
- package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.js +41 -0
- package/dist/Image/Image.cjs +1 -1
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/Image/Image.js +1 -1
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/ImageGallery/components/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/ImageGallery/utils/functions.cjs +1 -1
- package/dist/ImageGallery/utils/functions.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/components/Layout.cjs +1 -1
- package/dist/Message/components/Layout.js +1 -1
- package/dist/Message/components/LinkButton.cjs +1 -1
- package/dist/Message/components/LinkButton.js +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/OrderLookupCard/components/Layout.cjs +1 -1
- package/dist/OrderLookupCard/components/Layout.js +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.cjs +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.js +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.cjs +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.js +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.cjs +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +1 -1
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +1 -1
- package/dist/PromptButton/PromptButton.cjs +1 -1
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButton/PromptButton.js +1 -1
- package/dist/PromptButton/components/Layout.cjs +1 -1
- package/dist/PromptButton/components/Layout.js +1 -1
- package/dist/PromptButton/components/Loading.cjs +1 -1
- package/dist/PromptButton/components/Loading.js +1 -1
- package/dist/PromptButton/hooks/useGetLayoutBaseProperties.cjs +1 -1
- package/dist/PromptButton/hooks/useGetLayoutBaseProperties.js +1 -1
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +1 -1
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +1 -1
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +1 -1
- package/dist/ReviewCard/components/Container.js +1 -1
- package/dist/ReviewCard/components/Rating.cjs +1 -1
- package/dist/ReviewCard/components/Rating.js +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.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/Container.cjs +1 -1
- package/dist/SalesAgentProductCard/components/Container.js +1 -1
- package/dist/SalesAgentProductCard/components/Price.cjs +2 -2
- package/dist/SalesAgentProductCard/components/Price.js +2 -2
- package/dist/SalesAgentProductCard/components/ProductImage.cjs +1 -1
- package/dist/SalesAgentProductCard/components/ProductImage.js +1 -1
- package/dist/SalesAgentProductCard/components/ProductName.cjs +1 -1
- package/dist/SalesAgentProductCard/components/ProductName.js +1 -1
- package/dist/SalesAgentProductCard/components/Rate.cjs +1 -1
- package/dist/SalesAgentProductCard/components/Rate.js +1 -1
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +4 -3
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +4 -3
- package/dist/SocialProof/components/Headline.cjs +2 -2
- package/dist/SocialProof/components/Headline.js +2 -2
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/SocialProof/components/LayoutSingle.cjs +3 -4
- package/dist/SocialProof/components/LayoutSingle.js +3 -4
- package/dist/SocialProof/hooks/useSocialProofCount.cjs +3 -2
- package/dist/SocialProof/hooks/useSocialProofCount.d.cts +2 -0
- package/dist/SocialProof/hooks/useSocialProofCount.d.ts +2 -0
- package/dist/SocialProof/hooks/useSocialProofCount.js +3 -2
- package/dist/SocialProof/types/types.d.cts +5 -0
- package/dist/SocialProof/types/types.d.ts +5 -0
- package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TextField/TextField.cjs +4 -1
- package/dist/TextField/TextField.js +4 -1
- package/dist/TextField/components/Input.cjs +1 -1
- package/dist/TextField/components/Input.js +1 -1
- package/dist/TextField/components/Layout.cjs +1 -1
- package/dist/TextField/components/Layout.js +1 -1
- package/dist/TextField/components/SendIcon.cjs +1 -1
- package/dist/TextField/components/SendIcon.js +1 -1
- package/dist/TextField/hooks/useVoiceInput.cjs +9 -1
- package/dist/TextField/hooks/useVoiceInput.js +9 -1
- package/dist/TextField/types/index.d.cts +12 -0
- package/dist/TextField/types/index.d.ts +12 -0
- package/dist/Title/Title.cjs +1 -1
- package/dist/Title/Title.js +1 -1
- package/dist/Title/components/Layout.cjs +1 -1
- package/dist/Title/components/Layout.js +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
- package/dist/Tokens/index.cjs +6 -6
- package/dist/Tokens/index.js +6 -6
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +1 -1
- package/dist/WelcomeMessage/components/Container.js +1 -1
- package/dist/WidgetTextField/WidgetTextField.cjs +1 -1
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetTextField/components/Container.cjs +1 -1
- package/dist/WidgetTextField/components/Container.js +1 -1
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.js +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.cjs +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.js +1 -1
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/packages/components-v3/tokens/typography/typography.cjs +1 -1
- package/dist/packages/components-v3/tokens/typography/typography.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/resolveTheme.cjs +1 -1
- package/dist/utils/resolveTheme.js +1 -1
- package/package.json +1 -1
- package/src/components/ChatFooter/ChatFooter.tsx +1 -0
- package/src/components/ChatFooter/components/Layout.tsx +3 -1
- package/src/components/ChatHeader/hooks/useGetToggleOptionProperties.ts +6 -6
- package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -0
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +3 -0
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +139 -49
- package/src/components/FullPageSalesAgent/components/Layout.tsx +10 -3
- package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +121 -0
- package/src/components/FullPageSalesAgent/components/index.ts +2 -0
- package/src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts +15 -5
- package/src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts +51 -0
- package/src/components/PromptButton/hooks/useGetLayoutBaseProperties.ts +3 -1
- package/src/components/SalesAgentProductCard/components/Price.tsx +2 -2
- package/src/components/SalesAgentProductCard/components/Rate.tsx +1 -1
- package/src/components/SocialProof/SocialProof.tsx +4 -2
- package/src/components/SocialProof/components/Headline.tsx +1 -1
- package/src/components/SocialProof/components/LayoutSingle.tsx +6 -5
- package/src/components/SocialProof/hooks/useSocialProofCount.ts +8 -1
- package/src/components/SocialProof/types/types.ts +6 -0
- package/src/components/TextField/TextField.tsx +10 -2
- package/src/components/TextField/__tests__/VoiceInputButton.test.tsx +22 -58
- package/src/components/TextField/hooks/useVoiceInput.ts +8 -0
- package/src/components/TextField/types/index.ts +12 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../Typography/types/index.cjs');
|
|
3
|
+
const require_Typography = require('../../Typography/Typography.cjs');
|
|
4
|
+
require('../../Typography/index.cjs');
|
|
5
|
+
const require_PromptCarousel_types_types = require('../../PromptCarousel/types/types.cjs');
|
|
6
|
+
const require_PromptCarousel = require('../../PromptCarousel/PromptCarousel.cjs');
|
|
7
|
+
require('../../PromptCarousel/index.cjs');
|
|
8
|
+
const require_SparkleAnimation = require('../../SparkleAnimation/SparkleAnimation.cjs');
|
|
9
|
+
require('../../SparkleAnimation/index.cjs');
|
|
10
|
+
const require_SalesAgentProductCardsCarousel = require('../../FloatingChat/components/SalesAgentProductCardsCarousel.cjs');
|
|
11
|
+
const require_useWelcomeOverlayProducts = require('../hooks/useWelcomeOverlayProducts.cjs');
|
|
12
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
+
let classnames = require("classnames");
|
|
14
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
15
|
+
let framer_motion = require("framer-motion");
|
|
16
|
+
|
|
17
|
+
//#region src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx
|
|
18
|
+
const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarouselTitle, productIds, chatFooter, suggestionButtonType, sparkleColor, backgroundStyle = { backgroundColor: "white" }, onSuggestionClick }) => {
|
|
19
|
+
const { products, isLoading } = require_useWelcomeOverlayProducts.useWelcomeOverlayProducts(productIds);
|
|
20
|
+
const showProductCarousel = !isLoading && products.length > 0 && !!productCarouselTitle;
|
|
21
|
+
const welcomeOverlayClassNames = (0, classnames.default)([
|
|
22
|
+
"envive-tw-inset-0",
|
|
23
|
+
"envive-tw-absolute",
|
|
24
|
+
"envive-tw-z-20",
|
|
25
|
+
"envive-tw-flex",
|
|
26
|
+
"envive-tw-w-full",
|
|
27
|
+
"envive-tw-h-full",
|
|
28
|
+
"envive-tw-max-w-[768px]",
|
|
29
|
+
"envive-tw-flex-col"
|
|
30
|
+
]);
|
|
31
|
+
const titleClassNames = (0, classnames.default)([
|
|
32
|
+
"envive-tw-flex",
|
|
33
|
+
"envive-tw-flex-row",
|
|
34
|
+
"envive-tw-gap-2",
|
|
35
|
+
"envive-tw-items-center"
|
|
36
|
+
]);
|
|
37
|
+
const titleBoxClassNames = (0, classnames.default)([
|
|
38
|
+
"envive-tw-flex",
|
|
39
|
+
"envive-tw-py-4",
|
|
40
|
+
"envive-tw-px-[14px]",
|
|
41
|
+
"envive-tw-flex-col",
|
|
42
|
+
"envive-tw-gap-4",
|
|
43
|
+
"envive-tw-bg-background-light",
|
|
44
|
+
"envive-tw-border-border-light",
|
|
45
|
+
"envive-tw-border-solid",
|
|
46
|
+
"envive-tw-border",
|
|
47
|
+
"envive-tw-rounded-global-custom"
|
|
48
|
+
]);
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.AnimatePresence, { children: show && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
50
|
+
className: welcomeOverlayClassNames,
|
|
51
|
+
style: backgroundStyle,
|
|
52
|
+
initial: { opacity: 1 },
|
|
53
|
+
exit: {
|
|
54
|
+
opacity: 0,
|
|
55
|
+
transition: {
|
|
56
|
+
duration: .5,
|
|
57
|
+
ease: "easeIn"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
61
|
+
className: "envive-tw-flex envive-tw-flex-1 envive-tw-flex-col envive-tw-gap-6 envive-tw-overflow-y-auto envive-tw-overflow-x-hidden envive-tw-px-4 envive-tw-pb-4 envive-tw-pt-6 lg:envive-tw-gap-10",
|
|
62
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
63
|
+
className: titleBoxClassNames,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
66
|
+
className: titleClassNames,
|
|
67
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
68
|
+
variant: require_index.TypographyVariant.T3_MD,
|
|
69
|
+
children: title
|
|
70
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
71
|
+
color: sparkleColor,
|
|
72
|
+
animate: false
|
|
73
|
+
})]
|
|
74
|
+
}),
|
|
75
|
+
chatFooter,
|
|
76
|
+
promptSuggestions.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PromptCarousel.PromptCarousel, {
|
|
77
|
+
theme,
|
|
78
|
+
promptButtonTexts: promptSuggestions,
|
|
79
|
+
promptButtonType: suggestionButtonType,
|
|
80
|
+
promptCarouselRows: require_PromptCarousel_types_types.PromptCarouselRows.ALWAYS_TWO,
|
|
81
|
+
animationSpeed: require_PromptCarousel_types_types.AnimationSpeed.NONE,
|
|
82
|
+
handleButtonClick: onSuggestionClick
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
}), showProductCarousel && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
86
|
+
className: "envive-tw-flex envive-tw-flex-col envive-tw-gap-3",
|
|
87
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
88
|
+
variant: require_index.TypographyVariant.B2_MD,
|
|
89
|
+
children: productCarouselTitle
|
|
90
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SalesAgentProductCardsCarousel.SalesAgentProductCardsCarousel, {
|
|
91
|
+
theme,
|
|
92
|
+
hideBadgeCount: true,
|
|
93
|
+
products,
|
|
94
|
+
hideNavigation: false
|
|
95
|
+
})]
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
}, "welcome-overlay") });
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
exports.WelcomeOverlay = WelcomeOverlay;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { TypographyVariant } from "../../Typography/types/index.js";
|
|
2
|
+
import { Typography } from "../../Typography/Typography.js";
|
|
3
|
+
import "../../Typography/index.js";
|
|
4
|
+
import { AnimationSpeed, PromptCarouselRows } from "../../PromptCarousel/types/types.js";
|
|
5
|
+
import { PromptCarousel } from "../../PromptCarousel/PromptCarousel.js";
|
|
6
|
+
import "../../PromptCarousel/index.js";
|
|
7
|
+
import { SparkleAnimation } from "../../SparkleAnimation/SparkleAnimation.js";
|
|
8
|
+
import "../../SparkleAnimation/index.js";
|
|
9
|
+
import { SalesAgentProductCardsCarousel } from "../../FloatingChat/components/SalesAgentProductCardsCarousel.js";
|
|
10
|
+
import { useWelcomeOverlayProducts } from "../hooks/useWelcomeOverlayProducts.js";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import classNames from "classnames";
|
|
13
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
14
|
+
|
|
15
|
+
//#region src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx
|
|
16
|
+
const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarouselTitle, productIds, chatFooter, suggestionButtonType, sparkleColor, backgroundStyle = { backgroundColor: "white" }, onSuggestionClick }) => {
|
|
17
|
+
const { products, isLoading } = useWelcomeOverlayProducts(productIds);
|
|
18
|
+
const showProductCarousel = !isLoading && products.length > 0 && !!productCarouselTitle;
|
|
19
|
+
const welcomeOverlayClassNames = classNames([
|
|
20
|
+
"envive-tw-inset-0",
|
|
21
|
+
"envive-tw-absolute",
|
|
22
|
+
"envive-tw-z-20",
|
|
23
|
+
"envive-tw-flex",
|
|
24
|
+
"envive-tw-w-full",
|
|
25
|
+
"envive-tw-h-full",
|
|
26
|
+
"envive-tw-max-w-[768px]",
|
|
27
|
+
"envive-tw-flex-col"
|
|
28
|
+
]);
|
|
29
|
+
const titleClassNames = classNames([
|
|
30
|
+
"envive-tw-flex",
|
|
31
|
+
"envive-tw-flex-row",
|
|
32
|
+
"envive-tw-gap-2",
|
|
33
|
+
"envive-tw-items-center"
|
|
34
|
+
]);
|
|
35
|
+
const titleBoxClassNames = classNames([
|
|
36
|
+
"envive-tw-flex",
|
|
37
|
+
"envive-tw-py-4",
|
|
38
|
+
"envive-tw-px-[14px]",
|
|
39
|
+
"envive-tw-flex-col",
|
|
40
|
+
"envive-tw-gap-4",
|
|
41
|
+
"envive-tw-bg-background-light",
|
|
42
|
+
"envive-tw-border-border-light",
|
|
43
|
+
"envive-tw-border-solid",
|
|
44
|
+
"envive-tw-border",
|
|
45
|
+
"envive-tw-rounded-global-custom"
|
|
46
|
+
]);
|
|
47
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: show && /* @__PURE__ */ jsx(motion.div, {
|
|
48
|
+
className: welcomeOverlayClassNames,
|
|
49
|
+
style: backgroundStyle,
|
|
50
|
+
initial: { opacity: 1 },
|
|
51
|
+
exit: {
|
|
52
|
+
opacity: 0,
|
|
53
|
+
transition: {
|
|
54
|
+
duration: .5,
|
|
55
|
+
ease: "easeIn"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
59
|
+
className: "envive-tw-flex envive-tw-flex-1 envive-tw-flex-col envive-tw-gap-6 envive-tw-overflow-y-auto envive-tw-overflow-x-hidden envive-tw-px-4 envive-tw-pb-4 envive-tw-pt-6 lg:envive-tw-gap-10",
|
|
60
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
61
|
+
className: titleBoxClassNames,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsxs("div", {
|
|
64
|
+
className: titleClassNames,
|
|
65
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
66
|
+
variant: TypographyVariant.T3_MD,
|
|
67
|
+
children: title
|
|
68
|
+
}), /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
69
|
+
color: sparkleColor,
|
|
70
|
+
animate: false
|
|
71
|
+
})]
|
|
72
|
+
}),
|
|
73
|
+
chatFooter,
|
|
74
|
+
promptSuggestions.length > 0 && /* @__PURE__ */ jsx(PromptCarousel, {
|
|
75
|
+
theme,
|
|
76
|
+
promptButtonTexts: promptSuggestions,
|
|
77
|
+
promptButtonType: suggestionButtonType,
|
|
78
|
+
promptCarouselRows: PromptCarouselRows.ALWAYS_TWO,
|
|
79
|
+
animationSpeed: AnimationSpeed.NONE,
|
|
80
|
+
handleButtonClick: onSuggestionClick
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
}), showProductCarousel && /* @__PURE__ */ jsxs("div", {
|
|
84
|
+
className: "envive-tw-flex envive-tw-flex-col envive-tw-gap-3",
|
|
85
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
86
|
+
variant: TypographyVariant.B2_MD,
|
|
87
|
+
children: productCarouselTitle
|
|
88
|
+
}), /* @__PURE__ */ jsx(SalesAgentProductCardsCarousel, {
|
|
89
|
+
theme,
|
|
90
|
+
hideBadgeCount: true,
|
|
91
|
+
products,
|
|
92
|
+
hideNavigation: false
|
|
93
|
+
})]
|
|
94
|
+
})]
|
|
95
|
+
})
|
|
96
|
+
}, "welcome-overlay") });
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
export { WelcomeOverlay };
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
const require_useIsMobile = require('./useIsMobile.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts
|
|
4
|
-
const
|
|
4
|
+
const getStyles = ({ isMobile, showOverlay }) => {
|
|
5
|
+
if (showOverlay) return {
|
|
6
|
+
padding: 0,
|
|
7
|
+
borderTopWidth: "0px"
|
|
8
|
+
};
|
|
9
|
+
return isMobile ? void 0 : {
|
|
10
|
+
boxShadow: "0px 2px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
11
|
+
borderWidth: "1px"
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
const useGetFooterStyles = ({ showOverlay }) => {
|
|
5
15
|
const { isMobile } = require_useIsMobile.useIsMobile();
|
|
6
16
|
return {
|
|
7
|
-
footerStyles:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
17
|
+
footerStyles: getStyles({
|
|
18
|
+
isMobile,
|
|
19
|
+
showOverlay
|
|
20
|
+
}),
|
|
11
21
|
footerClasses: isMobile ? "envive-tw-rounded-t-[var(--envive-global-custom-border-radius)]" : "envive-tw-rounded-[var(--envive-global-custom-border-radius)]",
|
|
12
|
-
footerContainerClasses: isMobile ? "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-[0] envive-tw-left-[0] envive-tw-right-[0]" : "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-5 envive-tw-
|
|
22
|
+
footerContainerClasses: isMobile ? "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-[0] envive-tw-left-[0] envive-tw-right-[0]" : "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-5 envive-tw-w-full envive-tw-left-0 envive-tw-right-0"
|
|
13
23
|
};
|
|
14
24
|
};
|
|
15
25
|
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { useIsMobile } from "./useIsMobile.js";
|
|
2
2
|
|
|
3
3
|
//#region src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts
|
|
4
|
-
const
|
|
4
|
+
const getStyles = ({ isMobile, showOverlay }) => {
|
|
5
|
+
if (showOverlay) return {
|
|
6
|
+
padding: 0,
|
|
7
|
+
borderTopWidth: "0px"
|
|
8
|
+
};
|
|
9
|
+
return isMobile ? void 0 : {
|
|
10
|
+
boxShadow: "0px 2px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
11
|
+
borderWidth: "1px"
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
const useGetFooterStyles = ({ showOverlay }) => {
|
|
5
15
|
const { isMobile } = useIsMobile();
|
|
6
16
|
return {
|
|
7
|
-
footerStyles:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
17
|
+
footerStyles: getStyles({
|
|
18
|
+
isMobile,
|
|
19
|
+
showOverlay
|
|
20
|
+
}),
|
|
11
21
|
footerClasses: isMobile ? "envive-tw-rounded-t-[var(--envive-global-custom-border-radius)]" : "envive-tw-rounded-[var(--envive-global-custom-border-radius)]",
|
|
12
|
-
footerContainerClasses: isMobile ? "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-[0] envive-tw-left-[0] envive-tw-right-[0]" : "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-5 envive-tw-
|
|
22
|
+
footerContainerClasses: isMobile ? "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-[0] envive-tw-left-[0] envive-tw-right-[0]" : "envive-tw-z-10 envive-tw-absolute envive-tw-bottom-5 envive-tw-w-full envive-tw-left-0 envive-tw-right-0"
|
|
13
23
|
};
|
|
14
24
|
};
|
|
15
25
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
let __envive_ai_react_hooks_application_commerce_api = require("@envive-ai/react-hooks/application/commerce-api");
|
|
4
|
+
__envive_ai_react_hooks_application_commerce_api = require_rolldown_runtime.__toESM(__envive_ai_react_hooks_application_commerce_api);
|
|
5
|
+
|
|
6
|
+
//#region src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts
|
|
7
|
+
const mapToCardProps = (p) => ({
|
|
8
|
+
productName: p.title ?? "",
|
|
9
|
+
currentPrice: p.salePrice ?? 0,
|
|
10
|
+
previousPrice: p.originalPrice === p.salePrice ? void 0 : p.originalPrice,
|
|
11
|
+
pricePrefix: "$",
|
|
12
|
+
rate: p.averageRating ?? 0,
|
|
13
|
+
numberOfReviews: p.numberReviews ?? 0,
|
|
14
|
+
image: {
|
|
15
|
+
src: p.imageUrl ?? "",
|
|
16
|
+
alt: `${p.title ?? ""} image`
|
|
17
|
+
},
|
|
18
|
+
url: p.url
|
|
19
|
+
});
|
|
20
|
+
const useWelcomeOverlayProducts = (productIds) => {
|
|
21
|
+
const [products, setProducts] = (0, react.useState)([]);
|
|
22
|
+
const [isLoading, setIsLoading] = (0, react.useState)(productIds.length > 0);
|
|
23
|
+
(0, react.useEffect)(() => {
|
|
24
|
+
let cancelled = false;
|
|
25
|
+
if (productIds.length === 0) return () => {};
|
|
26
|
+
setIsLoading(true);
|
|
27
|
+
__envive_ai_react_hooks_application_commerce_api.default.retrieveProducts(productIds).then((result) => {
|
|
28
|
+
if (!cancelled) setProducts(result.products.map(mapToCardProps));
|
|
29
|
+
}).catch(() => {}).finally(() => {
|
|
30
|
+
if (!cancelled) setIsLoading(false);
|
|
31
|
+
});
|
|
32
|
+
return () => {
|
|
33
|
+
cancelled = true;
|
|
34
|
+
};
|
|
35
|
+
}, []);
|
|
36
|
+
return {
|
|
37
|
+
products,
|
|
38
|
+
isLoading
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.useWelcomeOverlayProducts = useWelcomeOverlayProducts;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
import CommerceApiClient from "@envive-ai/react-hooks/application/commerce-api";
|
|
3
|
+
|
|
4
|
+
//#region src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts
|
|
5
|
+
const mapToCardProps = (p) => ({
|
|
6
|
+
productName: p.title ?? "",
|
|
7
|
+
currentPrice: p.salePrice ?? 0,
|
|
8
|
+
previousPrice: p.originalPrice === p.salePrice ? void 0 : p.originalPrice,
|
|
9
|
+
pricePrefix: "$",
|
|
10
|
+
rate: p.averageRating ?? 0,
|
|
11
|
+
numberOfReviews: p.numberReviews ?? 0,
|
|
12
|
+
image: {
|
|
13
|
+
src: p.imageUrl ?? "",
|
|
14
|
+
alt: `${p.title ?? ""} image`
|
|
15
|
+
},
|
|
16
|
+
url: p.url
|
|
17
|
+
});
|
|
18
|
+
const useWelcomeOverlayProducts = (productIds) => {
|
|
19
|
+
const [products, setProducts] = useState([]);
|
|
20
|
+
const [isLoading, setIsLoading] = useState(productIds.length > 0);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
let cancelled = false;
|
|
23
|
+
if (productIds.length === 0) return () => {};
|
|
24
|
+
setIsLoading(true);
|
|
25
|
+
CommerceApiClient.retrieveProducts(productIds).then((result) => {
|
|
26
|
+
if (!cancelled) setProducts(result.products.map(mapToCardProps));
|
|
27
|
+
}).catch(() => {}).finally(() => {
|
|
28
|
+
if (!cancelled) setIsLoading(false);
|
|
29
|
+
});
|
|
30
|
+
return () => {
|
|
31
|
+
cancelled = true;
|
|
32
|
+
};
|
|
33
|
+
}, []);
|
|
34
|
+
return {
|
|
35
|
+
products,
|
|
36
|
+
isLoading
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { useWelcomeOverlayProducts };
|
package/dist/Image/Image.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const require_useGetRoundedProperties = require('./hooks/useGetRoundedProperties
|
|
|
7
7
|
const require_useGetAccessibilityProperties = require('./hooks/useGetAccessibilityProperties.cjs');
|
|
8
8
|
const require_useGetWidthProperties = require('./hooks/useGetWidthProperties.cjs');
|
|
9
9
|
const require_useHandleImageLoading = require('./hooks/useHandleImageLoading.cjs');
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
11
|
let classnames = require("classnames");
|
|
11
12
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
12
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
13
|
|
|
14
14
|
//#region src/components/Image/Image.tsx
|
|
15
15
|
/**
|
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_runtime29 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_runtime29.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_runtime17 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_runtime17.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Image };
|
package/dist/Image/Image.js
CHANGED
|
@@ -6,8 +6,8 @@ import { useGetRoundedProperties } from "./hooks/useGetRoundedProperties.js";
|
|
|
6
6
|
import { useGetAccessibilityProperties } from "./hooks/useGetAccessibilityProperties.js";
|
|
7
7
|
import { useGetWidthProperties } from "./hooks/useGetWidthProperties.js";
|
|
8
8
|
import { useHandleImageLoading } from "./hooks/useHandleImageLoading.js";
|
|
9
|
-
import classNames from "classnames";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import classNames from "classnames";
|
|
11
11
|
|
|
12
12
|
//#region src/components/Image/Image.tsx
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageGalleryProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 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_runtime11.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_runtime18 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_runtime18.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -9,9 +9,9 @@ const require_useValidateImages = require('../hooks/useValidateImages.cjs');
|
|
|
9
9
|
const require_functions = require('../utils/functions.cjs');
|
|
10
10
|
const require_OverlappedLayout = require('./OverlappedLayout.cjs');
|
|
11
11
|
const require_NormalLayout = require('./NormalLayout.cjs');
|
|
12
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
13
|
let classnames = require("classnames");
|
|
13
14
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
14
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
//#region src/components/ImageGallery/components/Layout.tsx
|
|
17
17
|
const Layout = ({ id, testId, className, style, images, layout, theme = require_theme.Theme.GLOBAL_CUSTOM, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, role, "aria-hidden": ariaHidden }) => {
|
|
@@ -8,8 +8,8 @@ import { useValidateImages } from "../hooks/useValidateImages.js";
|
|
|
8
8
|
import { getIsTwoSideStandardOnMobile } from "../utils/functions.js";
|
|
9
9
|
import { OverlappedLayout } from "./OverlappedLayout.js";
|
|
10
10
|
import { NormalLayout } from "./NormalLayout.js";
|
|
11
|
-
import classNames from "classnames";
|
|
12
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import classNames from "classnames";
|
|
13
13
|
|
|
14
14
|
//#region src/components/ImageGallery/components/Layout.tsx
|
|
15
15
|
const Layout = ({ id, testId, className, style, images, layout, theme = Theme.GLOBAL_CUSTOM, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, role, "aria-hidden": ariaHidden }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
2
1
|
const require_utils = require('../../DesignTokens/components/utils.cjs');
|
|
2
|
+
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
3
|
const require_types = require('../types/types.cjs');
|
|
4
4
|
|
|
5
5
|
//#region src/components/ImageGallery/utils/functions.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Theme, ThemeCSSVar } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
1
|
import { getComputedCSSVariable } from "../../DesignTokens/components/utils.js";
|
|
2
|
+
import { Theme, ThemeCSSVar } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
3
3
|
import { ImageGalleryLayout } from "../types/types.js";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ImageGallery/utils/functions.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -8,6 +8,6 @@ declare const MarkdownProcessor: ({
|
|
|
8
8
|
textColor,
|
|
9
9
|
textVariant,
|
|
10
10
|
onLinkClick
|
|
11
|
-
}: MarkdownProcessorProps) =>
|
|
11
|
+
}: MarkdownProcessorProps) => react_jsx_runtime15.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { MarkdownProcessor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -8,6 +8,6 @@ declare const MarkdownProcessor: ({
|
|
|
8
8
|
textColor,
|
|
9
9
|
textVariant,
|
|
10
10
|
onLinkClick
|
|
11
|
-
}: MarkdownProcessorProps) =>
|
|
11
|
+
}: MarkdownProcessorProps) => react_jsx_runtime24.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { MarkdownProcessor };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_useVariantStyleProperties = require('../hooks/useVariantStyleProperties.cjs');
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
4
|
let classnames = require("classnames");
|
|
4
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
|
|
7
7
|
//#region src/components/Message/components/Layout.tsx
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useVariantStyleProperties } from "../hooks/useVariantStyleProperties.js";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Message/components/Layout.tsx
|
|
6
6
|
/**
|
|
@@ -3,9 +3,9 @@ const require_index = require('../../Typography/types/index.cjs');
|
|
|
3
3
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
4
4
|
require('../../Typography/index.cjs');
|
|
5
5
|
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
6
|
+
const require_openUrlInNewTab = require('../utils/openUrlInNewTab.cjs');
|
|
6
7
|
const require_useGetLinkButtonIconProperties = require('../hooks/useGetLinkButtonIconProperties.cjs');
|
|
7
8
|
const require_useGetLinkButtonProperties = require('../hooks/useGetLinkButtonProperties.cjs');
|
|
8
|
-
const require_openUrlInNewTab = require('../utils/openUrlInNewTab.cjs');
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let __envive_ai_react_icons_VectorUpRight = require("@envive-ai/react-icons/VectorUpRight");
|
|
11
11
|
__envive_ai_react_icons_VectorUpRight = require_rolldown_runtime.__toESM(__envive_ai_react_icons_VectorUpRight);
|
|
@@ -2,9 +2,9 @@ import { TypographyColor, TypographyVariant } from "../../Typography/types/index
|
|
|
2
2
|
import { Typography } from "../../Typography/Typography.js";
|
|
3
3
|
import "../../Typography/index.js";
|
|
4
4
|
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
5
|
+
import { openUrlInNewTab } from "../utils/openUrlInNewTab.js";
|
|
5
6
|
import { useGetLinkButtonIconProperties } from "../hooks/useGetLinkButtonIconProperties.js";
|
|
6
7
|
import { useGetLinkButtonProperties } from "../hooks/useGetLinkButtonProperties.js";
|
|
7
|
-
import { openUrlInNewTab } from "../utils/openUrlInNewTab.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import VectorUpRight from "@envive-ai/react-icons/VectorUpRight";
|
|
10
10
|
|
|
@@ -10,9 +10,9 @@ const require_getProductImagesToDisplay = require('./utils/getProductImagesToDis
|
|
|
10
10
|
const require_calculateMoreProductsCount = require('./utils/calculateMoreProductsCount.cjs');
|
|
11
11
|
const require_formatOrderNumber = require('./utils/formatOrderNumber.cjs');
|
|
12
12
|
const require_formatOrderDate = require('./utils/formatOrderDate.cjs');
|
|
13
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
14
|
let classnames = require("classnames");
|
|
14
15
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
15
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
|
|
17
17
|
//#region src/components/OrderLookupCard/OrderLookupCard.tsx
|
|
18
18
|
/**
|
|
@@ -9,8 +9,8 @@ import { getProductImagesToDisplay } from "./utils/getProductImagesToDisplay.js"
|
|
|
9
9
|
import { calculateMoreProductsCount } from "./utils/calculateMoreProductsCount.js";
|
|
10
10
|
import { formatOrderNumber } from "./utils/formatOrderNumber.js";
|
|
11
11
|
import { formatOrderDate } from "./utils/formatOrderDate.js";
|
|
12
|
-
import classNames from "classnames";
|
|
13
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import classNames from "classnames";
|
|
14
14
|
|
|
15
15
|
//#region src/components/OrderLookupCard/OrderLookupCard.tsx
|
|
16
16
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
3
|
require('../../Stack/index.cjs');
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
5
|
let classnames = require("classnames");
|
|
5
6
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
8
8
|
//#region src/components/OrderLookupCard/components/Layout.tsx
|
|
9
9
|
const Layout = ({ productImagesGrid, content, id, testId, className, style, ariaLabel }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
2
|
import "../../Stack/index.js";
|
|
3
|
-
import classNames from "classnames";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import classNames from "classnames";
|
|
5
5
|
|
|
6
6
|
//#region src/components/OrderLookupCard/components/Layout.tsx
|
|
7
7
|
const Layout = ({ productImagesGrid, content, id, testId, className, style, ariaLabel }) => {
|
|
@@ -5,9 +5,9 @@ const require_index = require('../../Typography/types/index.cjs');
|
|
|
5
5
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
6
6
|
require('../../Typography/index.cjs');
|
|
7
7
|
const require_useGetImageBorderRadiusProperties = require('../hooks/useGetImageBorderRadiusProperties.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
9
|
let classnames = require("classnames");
|
|
9
10
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
|
|
12
12
|
//#region src/components/OrderLookupCard/components/MoreProductsOverlay.tsx
|
|
13
13
|
const MoreProductsOverlay = ({ count, theme, label, className, style, id, testId, ariaLabel }) => {
|
|
@@ -4,8 +4,8 @@ import { TypographyColor, TypographyVariant } from "../../Typography/types/index
|
|
|
4
4
|
import { Typography } from "../../Typography/Typography.js";
|
|
5
5
|
import "../../Typography/index.js";
|
|
6
6
|
import { useGetImageBorderRadiusProperties } from "../hooks/useGetImageBorderRadiusProperties.js";
|
|
7
|
-
import classNames from "classnames";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/components/OrderLookupCard/components/MoreProductsOverlay.tsx
|
|
11
11
|
const MoreProductsOverlay = ({ count, theme, label, className, style, id, testId, ariaLabel }) => {
|