@envive-ai/react-toolkit-v3 0.3.26 → 0.3.28
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.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/Carousel/Carousel.cjs +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/Carousel.js +1 -1
- package/dist/Carousel/components/Container.cjs +2 -2
- package/dist/Carousel/components/Container.js +2 -2
- package/dist/ChatFooter/ChatFooter.cjs +3 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +3 -1
- package/dist/ChatFooter/components/Layout.cjs +4 -4
- package/dist/ChatFooter/components/Layout.d.cts +1 -0
- package/dist/ChatFooter/components/Layout.d.ts +1 -0
- package/dist/ChatFooter/components/Layout.js +4 -4
- package/dist/ChatFooter/components/index.d.cts +5 -3
- package/dist/ChatFooter/components/index.d.ts +7 -5
- package/dist/ChatFooter/types/types.d.cts +3 -2
- package/dist/ChatFooter/types/types.d.ts +3 -2
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/components/Handle.cjs +2 -2
- package/dist/ChatHeader/components/Handle.js +2 -2
- package/dist/ChatHeader/components/Toggle.cjs +3 -3
- package/dist/ChatHeader/components/Toggle.js +3 -3
- package/dist/ChatPreview/ChatPreview.cjs +1 -1
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
- package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Headline.js +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
- package/dist/ChatPreviewComparison/components/Layout.js +4 -4
- package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Message.js +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +56 -56
- package/dist/Container/Container.d.ts +220 -220
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/Disclaimer/components/Container.cjs +2 -2
- package/dist/Disclaimer/components/Container.js +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- 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 +3 -3
- package/dist/FloatingChat/components/Layout.js +3 -3
- 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/FullPageSalesAgent/FullPageSalesAgent.cjs +126 -27
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +5 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +5 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +127 -28
- package/dist/FullPageSalesAgent/components/Layout.cjs +34 -27
- package/dist/FullPageSalesAgent/components/Layout.js +34 -27
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +109 -0
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +107 -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 +44 -0
- package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.js +42 -0
- 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/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- 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/ProductCard/ProductCard.cjs +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- 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/PromptButtonsCarousel.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +3 -3
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +2 -2
- package/dist/ReviewCard/components/Container.js +2 -2
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +4 -4
- 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 +2 -2
- package/dist/SalesAgentProductCard/components/Container.js +2 -2
- package/dist/SalesAgentProductCard/components/Price.cjs +2 -2
- package/dist/SalesAgentProductCard/components/Price.js +2 -2
- 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 +5 -4
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +5 -4
- package/dist/SocialProof/components/Headline.cjs +4 -4
- package/dist/SocialProof/components/Headline.js +4 -4
- 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/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.js +1 -1
- 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 +10 -3
- package/dist/TextField/TextField.d.cts +1 -0
- package/dist/TextField/TextField.d.ts +1 -0
- package/dist/TextField/TextField.js +10 -3
- package/dist/TextField/components/Input.cjs +31 -2
- package/dist/TextField/components/Input.js +31 -2
- package/dist/TextField/components/Layout.cjs +7 -2
- package/dist/TextField/components/Layout.js +7 -2
- package/dist/TextField/hooks/useAutoResize.cjs +17 -0
- package/dist/TextField/hooks/useAutoResize.js +16 -0
- package/dist/TextField/hooks/usePlaceholderAnimation.cjs +58 -0
- package/dist/TextField/hooks/usePlaceholderAnimation.js +57 -0
- package/dist/TextField/hooks/useVoiceInput.cjs +9 -1
- package/dist/TextField/hooks/useVoiceInput.js +9 -1
- package/dist/TextField/types/index.d.cts +19 -1
- package/dist/TextField/types/index.d.ts +19 -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 +1 -1
- package/dist/Tokens/index.js +1 -1
- package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +2 -2
- package/dist/WelcomeMessage/components/Container.js +2 -2
- package/dist/WidgetTextField/WidgetTextField.cjs +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetTextField/components/Container.cjs +2 -2
- package/dist/WidgetTextField/components/Container.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +1 -1
- package/dist/WidgetTextField/components/Icon.js +1 -1
- 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/package.json +1 -1
- package/src/components/ChatFooter/ChatFooter.tsx +2 -0
- package/src/components/ChatFooter/components/Layout.tsx +3 -1
- package/src/components/ChatFooter/components/TextField.tsx +4 -1
- package/src/components/ChatFooter/types/types.ts +3 -2
- package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -0
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +3 -0
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +207 -49
- package/src/components/FullPageSalesAgent/components/Layout.tsx +10 -3
- package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +143 -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 +52 -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 +17 -3
- package/src/components/TextField/__tests__/VoiceInputButton.test.tsx +22 -58
- package/src/components/TextField/components/Input.tsx +43 -9
- package/src/components/TextField/components/Layout.tsx +7 -1
- package/src/components/TextField/hooks/useAutoResize.ts +14 -0
- package/src/components/TextField/hooks/usePlaceholderAnimation.ts +67 -0
- package/src/components/TextField/hooks/useTextFieldSubmit.ts +1 -1
- package/src/components/TextField/hooks/useVoiceInput.ts +8 -0
- package/src/components/TextField/types/index.ts +19 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime8.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime24.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -1,11 +1,11 @@
|
|
|
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');
|
|
3
4
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
5
|
require('../../Stack/index.cjs');
|
|
5
6
|
const require_index = require('../../Typography/types/index.cjs');
|
|
6
7
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
7
8
|
require('../../Typography/index.cjs');
|
|
8
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_functions = require('../utils/functions.cjs');
|
|
10
10
|
const require_index$1 = require('../../Message/types/index.cjs');
|
|
11
11
|
const require_Message = require('../../Message/Message.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
3
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
4
|
import "../../Stack/index.js";
|
|
4
5
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
5
6
|
import { Typography } from "../../Typography/Typography.js";
|
|
6
7
|
import "../../Typography/index.js";
|
|
7
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { checkIfHideAgentName, getGroupableMessages } from "../utils/functions.js";
|
|
9
9
|
import { MessageVariant } from "../../Message/types/index.js";
|
|
10
10
|
import { Message } from "../../Message/Message.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
4
|
-
require('../../Stack/index.cjs');
|
|
3
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
5
4
|
const require_Container = require('../../Container/Container.cjs');
|
|
6
5
|
require('../../Container/index.cjs');
|
|
7
|
-
const
|
|
6
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
7
|
+
require('../../Stack/index.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let classnames = require("classnames");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import {
|
|
3
|
-
import "../../Stack/index.js";
|
|
2
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
4
3
|
import { Container } from "../../Container/Container.js";
|
|
5
4
|
import "../../Container/index.js";
|
|
6
|
-
import {
|
|
5
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
6
|
+
import "../../Stack/index.js";
|
|
7
7
|
import { isValidElement } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import classNames from "classnames";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
2
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
4
|
require('../../Stack/index.cjs');
|
|
4
5
|
const require_index = require('../../Typography/types/index.cjs');
|
|
5
6
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
6
7
|
require('../../Typography/index.cjs');
|
|
7
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
8
8
|
const require_types = require('../../SalesAgentProductCard/types/types.cjs');
|
|
9
9
|
const require_SalesAgentProductCard = require('../../SalesAgentProductCard/SalesAgentProductCard.cjs');
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
1
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
3
|
import "../../Stack/index.js";
|
|
3
4
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
4
5
|
import { Typography } from "../../Typography/Typography.js";
|
|
5
6
|
import "../../Typography/index.js";
|
|
6
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
7
7
|
import { SalesAgentProductCardVariant } from "../../SalesAgentProductCard/types/types.js";
|
|
8
8
|
import { SalesAgentProductCard } from "../../SalesAgentProductCard/SalesAgentProductCard.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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
|
-
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
4
3
|
const require_index = require('../../Typography/types/index.cjs');
|
|
5
4
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
6
5
|
require('../../Typography/index.cjs');
|
|
6
|
+
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
7
7
|
const require_functions = require('../utils/functions.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_rolldown_runtime.__toESM(react);
|
|
@@ -44,7 +44,11 @@ const SalesAgentBadgeContent = ({ totalProducts, displayLimit = require_function
|
|
|
44
44
|
})]
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, displayLimit = require_functions.MOST_RELEVANT_DISPLAY_LIMIT }) => {
|
|
47
|
+
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = require_functions.MOST_RELEVANT_DISPLAY_LIMIT }) => {
|
|
48
|
+
if (hideBadgeCount) return {
|
|
49
|
+
badgeContent: null,
|
|
50
|
+
badgeLabel: null
|
|
51
|
+
};
|
|
48
52
|
return {
|
|
49
53
|
badgeContent: areProductsMoreThanDisplayLimit ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SalesAgentBadgeContent, {
|
|
50
54
|
totalProducts,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
-
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
3
2
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
4
3
|
import { Typography } from "../../Typography/Typography.js";
|
|
5
4
|
import "../../Typography/index.js";
|
|
5
|
+
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
6
6
|
import { MOST_RELEVANT_DISPLAY_LIMIT } from "../utils/functions.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -41,7 +41,11 @@ const SalesAgentBadgeContent = ({ totalProducts, displayLimit = MOST_RELEVANT_DI
|
|
|
41
41
|
})]
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT }) => {
|
|
44
|
+
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT }) => {
|
|
45
|
+
if (hideBadgeCount) return {
|
|
46
|
+
badgeContent: null,
|
|
47
|
+
badgeLabel: null
|
|
48
|
+
};
|
|
45
49
|
return {
|
|
46
50
|
badgeContent: areProductsMoreThanDisplayLimit ? /* @__PURE__ */ jsx(SalesAgentBadgeContent, {
|
|
47
51
|
totalProducts,
|
|
@@ -8,11 +8,12 @@ const require_SalesAgentBadgeContent = require('./SalesAgentBadgeContent.cjs');
|
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
//#region src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx
|
|
11
|
-
const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, variant = require_types.SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
|
|
11
|
+
const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, hideBadgeCount, variant = require_types.SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
|
|
12
12
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
13
13
|
const { totalProducts, areProductsMoreThanDisplayLimit, displayedProducts } = require_functions.getProductCarouselDisplayInfo(products, numberOfProducts);
|
|
14
14
|
const forceShowCurrentPriceSpace = displayedProducts.some((product) => product.currentPrice && product.previousPrice !== product.currentPrice);
|
|
15
15
|
const { badgeContent, badgeLabel } = require_SalesAgentBadgeContent.getBadgeContentAndLabel({
|
|
16
|
+
hideBadgeCount,
|
|
16
17
|
totalProducts,
|
|
17
18
|
areProductsMoreThanDisplayLimit,
|
|
18
19
|
onExploreAllResults
|
|
@@ -7,11 +7,12 @@ import { getBadgeContentAndLabel } from "./SalesAgentBadgeContent.js";
|
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx
|
|
10
|
-
const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, variant = SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
|
|
10
|
+
const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, hideBadgeCount, variant = SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
|
|
11
11
|
const finalTheme = resolveTheme(theme);
|
|
12
12
|
const { totalProducts, areProductsMoreThanDisplayLimit, displayedProducts } = getProductCarouselDisplayInfo(products, numberOfProducts);
|
|
13
13
|
const forceShowCurrentPriceSpace = displayedProducts.some((product) => product.currentPrice && product.previousPrice !== product.currentPrice);
|
|
14
14
|
const { badgeContent, badgeLabel } = getBadgeContentAndLabel({
|
|
15
|
+
hideBadgeCount,
|
|
15
16
|
totalProducts,
|
|
16
17
|
areProductsMoreThanDisplayLimit,
|
|
17
18
|
onExploreAllResults
|
|
@@ -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
|
require('../Tokens/index.cjs');
|
|
4
|
+
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
5
|
const require_react = require('../node_modules/jotai/esm/react.cjs');
|
|
6
6
|
const require_usePromptCarouselAnalytics = require('../PromptCarousel/hooks/usePromptCarouselAnalytics.cjs');
|
|
7
7
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
@@ -13,17 +13,15 @@ const require_ChatFooter = require('../ChatFooter/ChatFooter.cjs');
|
|
|
13
13
|
require('../ChatFooter/index.cjs');
|
|
14
14
|
const require_Disclaimer = require('../Disclaimer/Disclaimer.cjs');
|
|
15
15
|
require('../Disclaimer/index.cjs');
|
|
16
|
-
const require_WelcomeMessage = require('../WelcomeMessage/WelcomeMessage.cjs');
|
|
17
16
|
const require_useChatSuggestions = require('../FloatingChat/hooks/useChatSuggestions.cjs');
|
|
18
17
|
const require_useProductResultsView = require('../FloatingChat/hooks/useProductResultsView.cjs');
|
|
19
18
|
const require_useScrollToBottom = require('../FloatingChat/hooks/useScrollToBottom.cjs');
|
|
20
19
|
const require_ResultsGridView = require('../FloatingChat/components/ResultsGridView.cjs');
|
|
21
20
|
const require_trackProductCardInteraction = require('../FloatingChat/utils/trackProductCardInteraction.cjs');
|
|
22
21
|
const require_index = require('../FloatingChat/components/index.cjs');
|
|
23
|
-
require('../WelcomeMessage/index.cjs');
|
|
24
22
|
const require_useIsMobile = require('./hooks/useIsMobile.cjs');
|
|
25
23
|
const require_useGetFooterStyles = require('./hooks/useGetFooterStyles.cjs');
|
|
26
|
-
const
|
|
24
|
+
const require_WelcomeOverlay = require('./components/WelcomeOverlay.cjs');
|
|
27
25
|
const require_index$1 = require('./components/index.cjs');
|
|
28
26
|
const require_useGetMessagesStyles = require('./hooks/useGetMessagesStyles.cjs');
|
|
29
27
|
let react = require("react");
|
|
@@ -32,25 +30,58 @@ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/c
|
|
|
32
30
|
let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
|
|
33
31
|
let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
|
|
34
32
|
let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
|
|
33
|
+
let framer_motion = require("framer-motion");
|
|
35
34
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
36
35
|
let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
|
|
37
36
|
|
|
38
37
|
//#region src/components/FullPageSalesAgent/FullPageSalesAgent.tsx
|
|
39
|
-
const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatingChatConfig, lookAndFeelConfig,
|
|
38
|
+
const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatingChatConfig, lookAndFeelConfig, widgetConfig, hardcopyContent, voiceInputEnabled }) => {
|
|
40
39
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
41
40
|
const salesAgentData = (0, __envive_ai_react_hooks_contexts_salesAgentContext.useSalesAgent)(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT);
|
|
42
41
|
const [query, setQuery] = (0, react.useState)("");
|
|
43
42
|
const chatMessagesRef = (0, react.useRef)(null);
|
|
44
|
-
const { footerStyles, footerClasses } = require_useGetFooterStyles.useGetFooterStyles();
|
|
45
43
|
const { messageClasses } = require_useGetMessagesStyles.useGetMessagesStyles();
|
|
46
|
-
const { messageContainerClasses } = require_useGetScrollContentStyles.useGetScrollContentStyles();
|
|
47
44
|
const { isMobile } = require_useIsMobile.useIsMobile();
|
|
48
45
|
const { trackWidgetInteraction } = (0, __envive_ai_react_hooks_hooks_WidgetInteraction.useWidgetInteraction)();
|
|
49
46
|
const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = require_usePromptCarouselAnalytics.usePromptCarouselAnalytics(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, (text) => text);
|
|
47
|
+
const getOverlaySuggestionId = (0, react.useCallback)((text) => {
|
|
48
|
+
const rawValues = hardcopyContent?.rawValues;
|
|
49
|
+
if (rawValues) for (const raw of Object.values(rawValues)) {
|
|
50
|
+
const found = (Array.isArray(raw) ? raw : [raw]).find((s) => s.value === text);
|
|
51
|
+
if (found) return found.id;
|
|
52
|
+
}
|
|
53
|
+
return text;
|
|
54
|
+
}, [hardcopyContent?.rawValues]);
|
|
55
|
+
const { onDrag: onOverlayDrag, onHover: onOverlayHover, onMouseDown: onOverlayMouseDown, onMouseUp: onOverlayMouseUp, onTouchStart: onOverlayTouchStart, onTouchEnd: onOverlayTouchEnd } = require_usePromptCarouselAnalytics.usePromptCarouselAnalytics(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, getOverlaySuggestionId);
|
|
50
56
|
const setListeningToSpeech = require_react.useSetAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
|
|
51
|
-
const {
|
|
57
|
+
const { ignoreFirstModelResponse, neverShowSingleProductCards, showVerifiedBuyer, showEnviveLogo } = floatingChatConfig;
|
|
58
|
+
const { headerContainer, autoHeight, sparkleColor = "var(--envive-colors-accent-primary)", suggestionButtonType = require_PromptButton_types_index.PromptButtonVariant.LIGHT, useBackgroundImage, mobileBackgroundImage, desktopBackgroundImage, backgroundColor } = widgetConfig;
|
|
59
|
+
const backgroundStyle = (0, react.useMemo)(() => {
|
|
60
|
+
if (useBackgroundImage) {
|
|
61
|
+
const imageUrl = isMobile ? mobileBackgroundImage ?? desktopBackgroundImage : desktopBackgroundImage ?? mobileBackgroundImage;
|
|
62
|
+
if (imageUrl) return {
|
|
63
|
+
backgroundImage: `url(${imageUrl})`,
|
|
64
|
+
backgroundSize: "cover",
|
|
65
|
+
backgroundPosition: "center"
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if (backgroundColor) return { backgroundColor };
|
|
69
|
+
return { backgroundColor: "white" };
|
|
70
|
+
}, [
|
|
71
|
+
useBackgroundImage,
|
|
72
|
+
mobileBackgroundImage,
|
|
73
|
+
desktopBackgroundImage,
|
|
74
|
+
backgroundColor,
|
|
75
|
+
isMobile
|
|
76
|
+
]);
|
|
52
77
|
const { agentName } = lookAndFeelConfig;
|
|
53
|
-
const {
|
|
78
|
+
const { chatFooterTextFieldPlaceholderText, disclaimerText, welcomeOverlayTitle, welcomeOverlayAnimatedPlaceholder, welcomeOverlayPromptSuggestions, welcomeOverlayProductCarouselTitle, welcomeOverlayProductIds } = hardcopyContent?.values ?? {};
|
|
79
|
+
const overlayTitle = Array.isArray(welcomeOverlayTitle) && welcomeOverlayTitle.length > 0 ? welcomeOverlayTitle[0] : welcomeOverlayTitle;
|
|
80
|
+
const overlayEnabled = typeof overlayTitle === "string" && !!welcomeOverlayTitle;
|
|
81
|
+
const [showOverlay, setShowOverlay] = (0, react.useState)(overlayEnabled);
|
|
82
|
+
const { footerStyles, footerClasses } = require_useGetFooterStyles.useGetFooterStyles({ showOverlay });
|
|
83
|
+
const overlayPromptSuggestions = Array.isArray(welcomeOverlayPromptSuggestions) ? welcomeOverlayPromptSuggestions : [];
|
|
84
|
+
const overlayProductIds = Array.isArray(welcomeOverlayProductIds) ? welcomeOverlayProductIds : [];
|
|
54
85
|
const { messages, isResponseStreaming, isPendingResponse, suggestions, onSuggestionClicked, onTypedMessageSubmitted, onFormResponseSubmitted } = salesAgentData;
|
|
55
86
|
const { answerSuggestions, generalSuggestions, showAnswerSuggestions, setAnswerSuggestions, setGeneralSuggestions } = require_useChatSuggestions.useChatSuggestions({
|
|
56
87
|
suggestions,
|
|
@@ -111,26 +142,62 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
111
142
|
}
|
|
112
143
|
});
|
|
113
144
|
}, [trackWidgetInteraction]);
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
})
|
|
122
|
-
|
|
145
|
+
const handleOverlayDismiss = (0, react.useCallback)(() => {
|
|
146
|
+
trackWidgetInteraction({
|
|
147
|
+
eventName: __envive_ai_react_hooks_contexts_amplitudeContext.EnviveMetricsEventName.WidgetInteraction,
|
|
148
|
+
trigger: {
|
|
149
|
+
widget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT,
|
|
150
|
+
widget_interaction: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionType.OVERLAY_DISMISSED
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
setShowOverlay(false);
|
|
154
|
+
}, [trackWidgetInteraction]);
|
|
155
|
+
const handleOverlaySuggestionClick = (0, react.useCallback)((buttonText) => {
|
|
156
|
+
trackWidgetInteraction({
|
|
157
|
+
eventName: __envive_ai_react_hooks_contexts_amplitudeContext.EnviveMetricsEventName.WidgetInteraction,
|
|
158
|
+
trigger: {
|
|
159
|
+
widget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT,
|
|
160
|
+
widget_interaction: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionType.SUGGESTION_CLICKED,
|
|
161
|
+
widget_interaction_data: { suggestion_clicked: { suggestion_id: getOverlaySuggestionId(buttonText) } }
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
onTypedMessageSubmitted({
|
|
165
|
+
query: buttonText,
|
|
166
|
+
userTyped: true,
|
|
167
|
+
displayLocation: __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_TEXT_INPUT
|
|
168
|
+
});
|
|
169
|
+
setListeningToSpeech("abort");
|
|
170
|
+
setAnswerSuggestions([]);
|
|
171
|
+
setGeneralSuggestions([]);
|
|
172
|
+
setShowOverlay(false);
|
|
173
|
+
}, [
|
|
174
|
+
getOverlaySuggestionId,
|
|
175
|
+
trackWidgetInteraction,
|
|
176
|
+
onTypedMessageSubmitted,
|
|
177
|
+
setListeningToSpeech,
|
|
178
|
+
setAnswerSuggestions,
|
|
179
|
+
setGeneralSuggestions
|
|
180
|
+
]);
|
|
181
|
+
const promptSuggestions = (0, react.useMemo)(() => {
|
|
182
|
+
if (showOverlay) return [];
|
|
183
|
+
if (isPendingResponse || isResponseStreaming) return ["Loading suggestions 1...", "Loading suggestions 2..."];
|
|
184
|
+
return generalSuggestions;
|
|
185
|
+
}, [
|
|
186
|
+
showOverlay,
|
|
187
|
+
isPendingResponse,
|
|
188
|
+
isResponseStreaming,
|
|
189
|
+
generalSuggestions
|
|
190
|
+
]);
|
|
123
191
|
const footer = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ChatFooter.ChatFooter, {
|
|
124
192
|
className: footerClasses,
|
|
125
193
|
style: footerStyles,
|
|
126
194
|
theme: resolvedTheme,
|
|
127
195
|
isScrolled: isMobile ? isFloatingLayout : false,
|
|
128
196
|
disabled: isPendingResponse || isResponseStreaming,
|
|
129
|
-
disabledInput: !userQueryInputEnabled,
|
|
130
197
|
isLoadingPromptSuggestions: isPendingResponse || isResponseStreaming || generalSuggestions.length === 0,
|
|
131
|
-
hideEnviveWatermark: !showEnviveLogo,
|
|
132
|
-
textFieldPlaceholderText: chatFooterTextFieldPlaceholderText,
|
|
133
|
-
promptSuggestions
|
|
198
|
+
hideEnviveWatermark: showOverlay || !showEnviveLogo,
|
|
199
|
+
textFieldPlaceholderText: showOverlay ? welcomeOverlayAnimatedPlaceholder : chatFooterTextFieldPlaceholderText,
|
|
200
|
+
promptSuggestions,
|
|
134
201
|
handleButtonClick: (buttonText) => {
|
|
135
202
|
const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
|
|
136
203
|
if (suggestion) onSuggestionClicked(suggestion, __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
@@ -138,6 +205,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
138
205
|
setAnswerSuggestions([]);
|
|
139
206
|
setGeneralSuggestions([]);
|
|
140
207
|
handleBackToChat();
|
|
208
|
+
handleOverlayDismiss();
|
|
141
209
|
},
|
|
142
210
|
onChange: setQuery,
|
|
143
211
|
onSubmit: () => {
|
|
@@ -149,6 +217,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
149
217
|
setAnswerSuggestions([]);
|
|
150
218
|
setGeneralSuggestions([]);
|
|
151
219
|
handleBackToChat();
|
|
220
|
+
handleOverlayDismiss();
|
|
152
221
|
},
|
|
153
222
|
onFocus: handleInputQueryFocus,
|
|
154
223
|
parentWidget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.FULL_PAGE_SALES_AGENT,
|
|
@@ -205,18 +274,48 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
205
274
|
handleButtonTouchEnd: onTouchEnd
|
|
206
275
|
});
|
|
207
276
|
const disclaimer = disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Disclaimer.Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0;
|
|
208
|
-
|
|
277
|
+
const motionFooter = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
278
|
+
transition: {
|
|
279
|
+
layout: { duration: .2 },
|
|
280
|
+
default: { duration: 0 }
|
|
281
|
+
},
|
|
282
|
+
layoutId: "fpsa-chat-footer",
|
|
283
|
+
children: footer
|
|
284
|
+
});
|
|
285
|
+
const productCarouselTitle = Array.isArray(welcomeOverlayProductCarouselTitle) ? welcomeOverlayProductCarouselTitle[0] : welcomeOverlayProductCarouselTitle;
|
|
286
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.LayoutGroup, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FullPageSAComponents.Layout, {
|
|
209
287
|
theme: resolvedTheme,
|
|
210
|
-
welcomeMessage:
|
|
211
|
-
footer,
|
|
288
|
+
welcomeMessage: null,
|
|
289
|
+
footer: !overlayEnabled || !showOverlay ? motionFooter : null,
|
|
212
290
|
chatMessages: middleContent,
|
|
213
291
|
answerSuggestions: showAnswerSuggestions && !isResultsView ? answerSuggestionsComponent : void 0,
|
|
214
292
|
scrollToBottomButton: !isResultsView && showScrollButton ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.FloatingChatComponents.ScrollToBottomButton, { onClick: handleScrollToBottom }) : void 0,
|
|
215
293
|
disclaimer: isResultsView ? null : disclaimer,
|
|
216
294
|
headerContainer,
|
|
217
295
|
autoHeight,
|
|
218
|
-
scrollContainerRef
|
|
219
|
-
|
|
296
|
+
scrollContainerRef,
|
|
297
|
+
backgroundStyle,
|
|
298
|
+
overlay: overlayEnabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WelcomeOverlay.WelcomeOverlay, {
|
|
299
|
+
show: showOverlay,
|
|
300
|
+
theme: resolvedTheme,
|
|
301
|
+
suggestionButtonType,
|
|
302
|
+
sparkleColor,
|
|
303
|
+
title: overlayTitle,
|
|
304
|
+
promptSuggestions: overlayPromptSuggestions,
|
|
305
|
+
productCarouselTitle,
|
|
306
|
+
productIds: overlayProductIds,
|
|
307
|
+
backgroundStyle,
|
|
308
|
+
chatFooter: showOverlay ? motionFooter : null,
|
|
309
|
+
onSuggestionClick: handleOverlaySuggestionClick,
|
|
310
|
+
onSuggestionHover: onOverlayHover,
|
|
311
|
+
onSuggestionDrag: onOverlayDrag,
|
|
312
|
+
onSuggestionMouseDown: onOverlayMouseDown,
|
|
313
|
+
onSuggestionMouseUp: onOverlayMouseUp,
|
|
314
|
+
onSuggestionTouchStart: onOverlayTouchStart,
|
|
315
|
+
onSuggestionTouchEnd: onOverlayTouchEnd,
|
|
316
|
+
onProductCardClick: handleProductCardClick
|
|
317
|
+
}) : null
|
|
318
|
+
}) });
|
|
220
319
|
};
|
|
221
320
|
|
|
222
321
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../tokens/theme/theme.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import { FloatingChatConfig, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
|
+
import { FloatingChatConfig, FullPageSalesAgentWidgetV3Config, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
6
6
|
//#region src/components/FullPageSalesAgent/FullPageSalesAgent.d.ts
|
|
@@ -8,19 +8,17 @@ interface FullPageSalesAgentProps {
|
|
|
8
8
|
theme?: Theme;
|
|
9
9
|
floatingChatConfig: FloatingChatConfig;
|
|
10
10
|
lookAndFeelConfig: LookAndFeelConfig;
|
|
11
|
+
widgetConfig: FullPageSalesAgentWidgetV3Config;
|
|
11
12
|
hardcopyContent: HardcopyResponse;
|
|
12
|
-
headerContainer?: string;
|
|
13
|
-
autoHeight?: boolean;
|
|
14
13
|
voiceInputEnabled?: boolean;
|
|
15
14
|
}
|
|
16
15
|
declare const FullPageSalesAgent: ({
|
|
17
16
|
theme,
|
|
18
17
|
floatingChatConfig,
|
|
19
18
|
lookAndFeelConfig,
|
|
19
|
+
widgetConfig,
|
|
20
20
|
hardcopyContent,
|
|
21
|
-
headerContainer,
|
|
22
|
-
autoHeight,
|
|
23
21
|
voiceInputEnabled
|
|
24
|
-
}: FullPageSalesAgentProps) =>
|
|
22
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime22.JSX.Element;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { FullPageSalesAgent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { FloatingChatConfig, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
|
+
import { FloatingChatConfig, FullPageSalesAgentWidgetV3Config, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
6
6
|
//#region src/components/FullPageSalesAgent/FullPageSalesAgent.d.ts
|
|
@@ -8,19 +8,17 @@ interface FullPageSalesAgentProps {
|
|
|
8
8
|
theme?: Theme;
|
|
9
9
|
floatingChatConfig: FloatingChatConfig;
|
|
10
10
|
lookAndFeelConfig: LookAndFeelConfig;
|
|
11
|
+
widgetConfig: FullPageSalesAgentWidgetV3Config;
|
|
11
12
|
hardcopyContent: HardcopyResponse;
|
|
12
|
-
headerContainer?: string;
|
|
13
|
-
autoHeight?: boolean;
|
|
14
13
|
voiceInputEnabled?: boolean;
|
|
15
14
|
}
|
|
16
15
|
declare const FullPageSalesAgent: ({
|
|
17
16
|
theme,
|
|
18
17
|
floatingChatConfig,
|
|
19
18
|
lookAndFeelConfig,
|
|
19
|
+
widgetConfig,
|
|
20
20
|
hardcopyContent,
|
|
21
|
-
headerContainer,
|
|
22
|
-
autoHeight,
|
|
23
21
|
voiceInputEnabled
|
|
24
|
-
}: FullPageSalesAgentProps) =>
|
|
22
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime25.JSX.Element;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { FullPageSalesAgent };
|