@envive-ai/react-toolkit-v3 0.3.9 → 0.3.11
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/components/CSSVariablesEditor.cjs +1 -1
- package/dist/CSSVariablesEditor/components/CSSVariablesEditor.js +1 -1
- 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 +3 -3
- package/dist/Carousel/components/Container.js +3 -3
- package/dist/ChatFooter/ChatFooter.cjs +1 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.js +1 -1
- package/dist/ChatFooter/components/Layout.cjs +2 -2
- package/dist/ChatFooter/components/Layout.js +2 -2
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +5 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/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/ChatHeader/hooks/useGetCloseButtonProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +1 -1
- package/dist/ChatPreview/ChatPreview.cjs +2 -2
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +2 -2
- package/dist/ChatPreview/components/Message.cjs +1 -1
- package/dist/ChatPreview/components/Message.js +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +2 -2
- 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 +3 -3
- package/dist/ChatPreviewComparison/components/Message.js +3 -3
- package/dist/ChatPreviewLoading/ChatPreviewLoading.cjs +1 -1
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.js +1 -1
- package/dist/Container/Container.d.cts +178 -178
- package/dist/Container/Container.d.ts +7 -7
- package/dist/DesignTokens/DesignTokensComponent.cjs +1 -1
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.js +1 -1
- package/dist/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.cjs +6 -4
- package/dist/FloatingChat/FloatingChat.d.cts +3 -2
- package/dist/FloatingChat/FloatingChat.d.ts +3 -2
- package/dist/FloatingChat/FloatingChat.js +6 -4
- package/dist/FloatingChat/components/ChatMessages.cjs +2 -2
- package/dist/FloatingChat/components/ChatMessages.js +2 -2
- package/dist/FloatingChat/components/Layout.cjs +9 -5
- package/dist/FloatingChat/components/Layout.js +9 -5
- package/dist/FloatingChat/components/ModalSheet.cjs +6 -7
- package/dist/FloatingChat/components/ModalSheet.js +6 -7
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +1 -3
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +1 -3
- package/dist/FloatingChat/components/ScrollToBottomButton.cjs +1 -1
- package/dist/FloatingChat/components/ScrollToBottomButton.js +1 -1
- package/dist/FloatingChat/types/types.d.cts +4 -0
- package/dist/FloatingChat/types/types.d.ts +4 -0
- package/dist/Form/Form.cjs +1 -1
- package/dist/Form/Form.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +131 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +24 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +24 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +130 -0
- package/dist/FullPageSalesAgent/components/Layout.cjs +53 -0
- package/dist/FullPageSalesAgent/components/Layout.js +51 -0
- package/dist/FullPageSalesAgent/components/index.cjs +7 -0
- package/dist/FullPageSalesAgent/components/index.js +7 -0
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.cjs +23 -0
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.js +22 -0
- package/dist/FullPageSalesAgent/hooks/useGetContainerStyles.cjs +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetContainerStyles.js +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.cjs +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.js +16 -0
- package/dist/FullPageSalesAgent/hooks/useGetScrollContentStyles.cjs +19 -0
- package/dist/FullPageSalesAgent/hooks/useGetScrollContentStyles.js +17 -0
- package/dist/FullPageSalesAgent/hooks/useIsMobile.cjs +7 -0
- package/dist/FullPageSalesAgent/hooks/useIsMobile.js +7 -0
- package/dist/FullPageSalesAgent/index.cjs +3 -0
- package/dist/FullPageSalesAgent/index.d.cts +2 -0
- package/dist/FullPageSalesAgent/index.d.ts +2 -0
- package/dist/FullPageSalesAgent/index.js +3 -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/ImageGallery/components/NormalLayout.cjs +1 -1
- package/dist/ImageGallery/components/NormalLayout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.cjs +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.js +1 -1
- package/dist/Message/components/AgentContent.cjs +1 -1
- package/dist/Message/components/AgentContent.js +1 -1
- package/dist/Message/components/LinkButton.cjs +1 -1
- package/dist/Message/components/LinkButton.js +1 -1
- package/dist/Message/hooks/useVariantStyleProperties.cjs +1 -1
- package/dist/Message/hooks/useVariantStyleProperties.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/ProductCard/components/Header.cjs +1 -1
- package/dist/ProductCard/components/Header.js +1 -1
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- 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/PromptButtonsCarousel.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +5 -4
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +5 -4
- package/dist/ReviewCard/ReviewCard.cjs +1 -1
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/ReviewCard.js +1 -1
- 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 +6 -6
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.cjs +2 -1
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +3 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +3 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.js +2 -1
- package/dist/SalesAgentProductCard/components/Container.cjs +9 -7
- package/dist/SalesAgentProductCard/components/Container.d.cts +2 -1
- package/dist/SalesAgentProductCard/components/Container.d.ts +2 -1
- package/dist/SalesAgentProductCard/components/Container.js +9 -7
- package/dist/SalesAgentProductCard/components/index.d.cts +9 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +9 -8
- package/dist/SalesAgentProductCard/types/types.d.cts +4 -0
- package/dist/SalesAgentProductCard/types/types.d.ts +4 -0
- package/dist/SocialProof/SocialProof.cjs +1 -1
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +1 -1
- 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 +1 -1
- package/dist/SocialProof/components/LayoutSingle.js +1 -1
- package/dist/SocialProof/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.js +1 -1
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/Stack/hooks/useFormatStackChildren.cjs +1 -1
- package/dist/Stack/hooks/useFormatStackChildren.js +1 -1
- package/dist/TextField/utils/getIconColor.cjs +1 -1
- package/dist/TextField/utils/getIconColor.js +1 -1
- package/dist/TextField/utils/getSendIconElement.cjs +1 -1
- package/dist/TextField/utils/getSendIconElement.js +1 -1
- package/dist/Title/components/Image.cjs +1 -1
- package/dist/Title/components/Image.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 +1 -1
- package/dist/Tokens/index.js +1 -1
- package/dist/TypingAnimation/TypingAnimation.cjs +3 -3
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +3 -3
- 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 +1 -1
- 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 +3 -2
- package/dist/WidgetTextField/components/Icon.js +3 -2
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.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/dist/utils/CustomIcon.cjs +2 -2
- package/dist/utils/CustomIcon.js +2 -2
- package/package.json +5 -1
- package/src/components/ChatHeader/hooks/useGetCloseButtonProperties.ts +1 -1
- package/src/components/FloatingChat/FloatingChat.tsx +7 -1
- package/src/components/FloatingChat/components/Layout.tsx +3 -0
- package/src/components/FloatingChat/components/ModalSheet.tsx +5 -7
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +4 -6
- package/src/components/FloatingChat/types/types.ts +4 -0
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +199 -0
- package/src/components/FullPageSalesAgent/components/Layout.tsx +81 -0
- package/src/components/FullPageSalesAgent/components/index.ts +5 -0
- package/src/components/FullPageSalesAgent/hooks/useContainerResizerObserver.ts +33 -0
- package/src/components/FullPageSalesAgent/hooks/useGetContainerStyles.ts +24 -0
- package/src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts +17 -0
- package/src/components/FullPageSalesAgent/hooks/useGetScrollContentStyles.ts +17 -0
- package/src/components/FullPageSalesAgent/hooks/useIsMobile.ts +3 -0
- package/src/components/FullPageSalesAgent/index.ts +1 -0
- package/src/components/Message/hooks/useVariantStyleProperties.ts +1 -1
- package/src/components/PromptCarousel/PromptCarousel.tsx +1 -0
- package/src/components/SalesAgentProductCard/SalesAgentProductCard.tsx +2 -0
- package/src/components/SalesAgentProductCard/components/Container.tsx +16 -9
- package/src/components/SalesAgentProductCard/types/types.ts +4 -0
- package/src/components/TextField/utils/getIconColor.ts +1 -1
- package/src/components/TextField/utils/getSendIconElement.tsx +3 -1
- package/src/components/WidgetTextField/components/Icon.tsx +1 -0
- package/src/components/utils/CustomIcon.tsx +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
3
|
-
require('../../Container/index.cjs');
|
|
4
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
3
|
require('../../Stack/index.cjs');
|
|
4
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
+
require('../../Container/index.cjs');
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let classnames = require("classnames");
|
|
8
8
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Container } from "../../Container/Container.js";
|
|
2
|
-
import "../../Container/index.js";
|
|
3
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
2
|
import "../../Stack/index.js";
|
|
3
|
+
import { Container } from "../../Container/Container.js";
|
|
4
|
+
import "../../Container/index.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
|
|
5
5
|
declare const DocumentRetrievalCard: ({
|
|
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
|
|
|
16
16
|
onViewArticle,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
viewArticleLabel
|
|
19
|
-
}: DocumentRetrievalCardProps) =>
|
|
19
|
+
}: DocumentRetrievalCardProps) => react_jsx_runtime1.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DocumentRetrievalCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
|
|
5
5
|
declare const DocumentRetrievalCard: ({
|
|
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
|
|
|
16
16
|
onViewArticle,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
viewArticleLabel
|
|
19
|
-
}: DocumentRetrievalCardProps) =>
|
|
19
|
+
}: DocumentRetrievalCardProps) => react_jsx_runtime26.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DocumentRetrievalCard };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
3
|
-
require('../../Container/index.cjs');
|
|
4
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
3
|
require('../../Stack/index.cjs');
|
|
4
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
+
require('../../Container/index.cjs');
|
|
6
6
|
const require_useGetThemeProperties = require('../hooks/useGetThemeProperties.cjs');
|
|
7
7
|
const require_useGetStackLayoutProperties = require('../hooks/useGetStackLayoutProperties.cjs');
|
|
8
8
|
const require_useGetCardWidthProperties = require('../hooks/useGetCardWidthProperties.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Container } from "../../Container/Container.js";
|
|
2
|
-
import "../../Container/index.js";
|
|
3
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
2
|
import "../../Stack/index.js";
|
|
3
|
+
import { Container } from "../../Container/Container.js";
|
|
4
|
+
import "../../Container/index.js";
|
|
5
5
|
import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
|
|
6
6
|
import { useGetStackLayoutProperties } from "../hooks/useGetStackLayoutProperties.js";
|
|
7
7
|
import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
|
|
3
2
|
const require_Stack = require('../../../../Stack/Stack.cjs');
|
|
4
3
|
require('../../../../Stack/index.cjs');
|
|
4
|
+
const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let classnames = require("classnames");
|
|
7
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomIcon } from "../../../../utils/CustomIcon.js";
|
|
2
1
|
import { Stack } from "../../../../Stack/Stack.js";
|
|
3
2
|
import "../../../../Stack/index.js";
|
|
3
|
+
import { CustomIcon } from "../../../../utils/CustomIcon.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import Document from "@envive-ai/react-icons/Document";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingButton: ({
|
|
|
17
17
|
onClick,
|
|
18
18
|
ariaLabel,
|
|
19
19
|
previewMode
|
|
20
|
-
}: FloatingButtonProps) =>
|
|
20
|
+
}: FloatingButtonProps) => react_jsx_runtime12.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingButton: ({
|
|
|
17
17
|
onClick,
|
|
18
18
|
ariaLabel,
|
|
19
19
|
previewMode
|
|
20
|
-
}: FloatingButtonProps) =>
|
|
20
|
+
}: FloatingButtonProps) => react_jsx_runtime23.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingButton };
|
|
@@ -21,13 +21,13 @@ const require_useSnapSetup = require('./hooks/useSnapSetup.cjs');
|
|
|
21
21
|
const require_useChatSuggestions = require('./hooks/useChatSuggestions.cjs');
|
|
22
22
|
const require_WelcomeMessage = require('../WelcomeMessage/WelcomeMessage.cjs');
|
|
23
23
|
const require_useFilteredChatMessages = require('./hooks/useFilteredChatMessages.cjs');
|
|
24
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
25
24
|
let react = require("react");
|
|
25
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
26
26
|
let framer_motion = require("framer-motion");
|
|
27
27
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
28
28
|
|
|
29
29
|
//#region src/components/FloatingChat/FloatingChat.tsx
|
|
30
|
-
const FloatingChat = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, onClose, onToggleCXButton }) => {
|
|
30
|
+
const FloatingChat = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, debugBar, onClose, onToggleCXButton }) => {
|
|
31
31
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
32
32
|
const [query, setQuery] = (0, react.useState)("");
|
|
33
33
|
const chatMessagesRef = (0, react.useRef)(null);
|
|
@@ -119,7 +119,8 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
119
119
|
onSubmit: () => {
|
|
120
120
|
onTypedMessageSubmitted({
|
|
121
121
|
query,
|
|
122
|
-
userTyped: true
|
|
122
|
+
userTyped: true,
|
|
123
|
+
displayLocation: __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_TEXT_INPUT
|
|
123
124
|
});
|
|
124
125
|
setAnswerSuggestions([]);
|
|
125
126
|
setGeneralSuggestions([]);
|
|
@@ -183,7 +184,8 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
183
184
|
chatMessages,
|
|
184
185
|
answerSuggestions: showAnswerSuggestions ? answerSuggestionsComponent : void 0,
|
|
185
186
|
scrollToBottomButton: showScrollButton ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FloatingChatComponents.ScrollToBottomButton, { onClick: scrollToBottom }) : void 0,
|
|
186
|
-
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Disclaimer.Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0
|
|
187
|
+
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Disclaimer.Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0,
|
|
188
|
+
debugBar
|
|
187
189
|
});
|
|
188
190
|
const mobileLayout = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.FloatingChatComponents.Layout, {
|
|
189
191
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -14,8 +14,9 @@ declare const FloatingChat: ({
|
|
|
14
14
|
lookAndFeelConfig,
|
|
15
15
|
isCXButtonSwitchEnabled,
|
|
16
16
|
isFloatingChatOpen,
|
|
17
|
+
debugBar,
|
|
17
18
|
onClose,
|
|
18
19
|
onToggleCXButton
|
|
19
|
-
}: FloatingChatProps) =>
|
|
20
|
+
}: FloatingChatProps) => react_jsx_runtime34.JSX.Element;
|
|
20
21
|
//#endregion
|
|
21
22
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -14,8 +14,9 @@ declare const FloatingChat: ({
|
|
|
14
14
|
lookAndFeelConfig,
|
|
15
15
|
isCXButtonSwitchEnabled,
|
|
16
16
|
isFloatingChatOpen,
|
|
17
|
+
debugBar,
|
|
17
18
|
onClose,
|
|
18
19
|
onToggleCXButton
|
|
19
|
-
}: FloatingChatProps) =>
|
|
20
|
+
}: FloatingChatProps) => react_jsx_runtime22.JSX.Element;
|
|
20
21
|
//#endregion
|
|
21
22
|
export { FloatingChat };
|
|
@@ -20,13 +20,13 @@ import { useSnapSetup } from "./hooks/useSnapSetup.js";
|
|
|
20
20
|
import { useChatSuggestions } from "./hooks/useChatSuggestions.js";
|
|
21
21
|
import { WelcomeMessage } from "../WelcomeMessage/WelcomeMessage.js";
|
|
22
22
|
import { useFilteredChatMessages } from "./hooks/useFilteredChatMessages.js";
|
|
23
|
-
import { jsx } from "react/jsx-runtime";
|
|
24
23
|
import { useRef, useState } from "react";
|
|
24
|
+
import { jsx } from "react/jsx-runtime";
|
|
25
25
|
import { motion } from "framer-motion";
|
|
26
26
|
import { ChatElementDisplayLocationV3 } from "@envive-ai/react-hooks/application/models";
|
|
27
27
|
|
|
28
28
|
//#region src/components/FloatingChat/FloatingChat.tsx
|
|
29
|
-
const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, onClose, onToggleCXButton }) => {
|
|
29
|
+
const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, salesAgentData, floatingChatConfig, hardcopyContent, lookAndFeelConfig, isCXButtonSwitchEnabled, isFloatingChatOpen, debugBar, onClose, onToggleCXButton }) => {
|
|
30
30
|
const finalTheme = resolveTheme(theme);
|
|
31
31
|
const [query, setQuery] = useState("");
|
|
32
32
|
const chatMessagesRef = useRef(null);
|
|
@@ -118,7 +118,8 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
118
118
|
onSubmit: () => {
|
|
119
119
|
onTypedMessageSubmitted({
|
|
120
120
|
query,
|
|
121
|
-
userTyped: true
|
|
121
|
+
userTyped: true,
|
|
122
|
+
displayLocation: ChatElementDisplayLocationV3.FLOATING_CHAT_TEXT_INPUT
|
|
122
123
|
});
|
|
123
124
|
setAnswerSuggestions([]);
|
|
124
125
|
setGeneralSuggestions([]);
|
|
@@ -182,7 +183,8 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
182
183
|
chatMessages,
|
|
183
184
|
answerSuggestions: showAnswerSuggestions ? answerSuggestionsComponent : void 0,
|
|
184
185
|
scrollToBottomButton: showScrollButton ? /* @__PURE__ */ jsx(FloatingChatComponents.ScrollToBottomButton, { onClick: scrollToBottom }) : void 0,
|
|
185
|
-
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ jsx(Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0
|
|
186
|
+
disclaimer: disclaimerText && typeof disclaimerText === "string" ? /* @__PURE__ */ jsx(Disclaimer, { disclaimerMarkdown: disclaimerText }) : void 0,
|
|
187
|
+
debugBar
|
|
186
188
|
});
|
|
187
189
|
const mobileLayout = /* @__PURE__ */ jsx(FloatingChatComponents.Layout, {
|
|
188
190
|
id,
|
|
@@ -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');
|
|
4
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
4
|
require('../../Stack/index.cjs');
|
|
6
5
|
const require_index = require('../../Typography/types/index.cjs');
|
|
7
6
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
8
7
|
require('../../Typography/index.cjs');
|
|
8
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_index$1 = require('../../Message/types/index.cjs');
|
|
10
10
|
const require_Message = require('../../Message/Message.cjs');
|
|
11
11
|
require('../../Message/index.cjs');
|
|
@@ -13,8 +13,8 @@ const require_UserMessage = require('./UserMessage.cjs');
|
|
|
13
13
|
const require_functions = require('../utils/functions.cjs');
|
|
14
14
|
const require_AgentMessage = require('./AgentMessage.cjs');
|
|
15
15
|
const require_MessageDivider = require('./MessageDivider.cjs');
|
|
16
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
16
|
let react = require("react");
|
|
17
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
18
18
|
let classnames = require("classnames");
|
|
19
19
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
20
20
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
3
|
import "../../Stack/index.js";
|
|
5
4
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
6
5
|
import { Typography } from "../../Typography/Typography.js";
|
|
7
6
|
import "../../Typography/index.js";
|
|
7
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { MessageVariant } from "../../Message/types/index.js";
|
|
9
9
|
import { Message } from "../../Message/Message.js";
|
|
10
10
|
import "../../Message/index.js";
|
|
@@ -12,8 +12,8 @@ import { UserMessage } from "./UserMessage.js";
|
|
|
12
12
|
import { checkIfHideAgentName, getGroupableMessages } from "../utils/functions.js";
|
|
13
13
|
import { AgentMessage } from "./AgentMessage.js";
|
|
14
14
|
import { MessageDivider } from "./MessageDivider.js";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
15
|
import { forwardRef } from "react";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import classNames from "classnames";
|
|
18
18
|
import { MessageRole, MessageType } from "@envive-ai/react-hooks/application/models";
|
|
19
19
|
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
-
require('../../Container/index.cjs');
|
|
6
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
7
4
|
require('../../Stack/index.cjs');
|
|
8
|
-
|
|
5
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
6
|
+
require('../../Container/index.cjs');
|
|
7
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
8
|
let react = require("react");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let classnames = require("classnames");
|
|
11
11
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
12
12
|
|
|
13
13
|
//#region src/components/FloatingChat/components/Layout.tsx
|
|
14
|
-
const Layout = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false }) => {
|
|
14
|
+
const Layout = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false, debugBar }) => {
|
|
15
15
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
16
16
|
const hasWelcomeMessage = (0, react.isValidElement)(welcomeMessage);
|
|
17
17
|
const hasAnswerSuggestions = (0, react.isValidElement)(answerSuggestions);
|
|
@@ -53,6 +53,10 @@ const Layout = ({ id, className, style, testId, theme = require_theme.Theme.GLOB
|
|
|
53
53
|
scrollToBottomButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
54
54
|
className: (0, classnames.default)("envive-tw-absolute envive-tw-right-4 envive-tw-z-10 envive-tw-transition-all envive-tw-duration-300 envive-tw-ease-in-out", isFloatingFooterLayout ? "envive-tw-bottom-[80px]" : "envive-tw-bottom-[170px]"),
|
|
55
55
|
children: scrollToBottomButton
|
|
56
|
+
}),
|
|
57
|
+
debugBar && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
58
|
+
className: "envive-debug-bar",
|
|
59
|
+
children: debugBar
|
|
56
60
|
})
|
|
57
61
|
]
|
|
58
62
|
})
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
|
-
import { Container } from "../../Container/Container.js";
|
|
4
|
-
import "../../Container/index.js";
|
|
5
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
6
3
|
import "../../Stack/index.js";
|
|
7
|
-
import {
|
|
4
|
+
import { Container } from "../../Container/Container.js";
|
|
5
|
+
import "../../Container/index.js";
|
|
6
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
7
|
import { isValidElement } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import classNames from "classnames";
|
|
10
10
|
|
|
11
11
|
//#region src/components/FloatingChat/components/Layout.tsx
|
|
12
|
-
const Layout = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false }) => {
|
|
12
|
+
const Layout = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false, debugBar }) => {
|
|
13
13
|
const finalTheme = resolveTheme(theme);
|
|
14
14
|
const hasWelcomeMessage = isValidElement(welcomeMessage);
|
|
15
15
|
const hasAnswerSuggestions = isValidElement(answerSuggestions);
|
|
@@ -51,6 +51,10 @@ const Layout = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, hea
|
|
|
51
51
|
scrollToBottomButton && /* @__PURE__ */ jsx("div", {
|
|
52
52
|
className: classNames("envive-tw-absolute envive-tw-right-4 envive-tw-z-10 envive-tw-transition-all envive-tw-duration-300 envive-tw-ease-in-out", isFloatingFooterLayout ? "envive-tw-bottom-[80px]" : "envive-tw-bottom-[170px]"),
|
|
53
53
|
children: scrollToBottomButton
|
|
54
|
+
}),
|
|
55
|
+
debugBar && /* @__PURE__ */ jsx("div", {
|
|
56
|
+
className: "envive-debug-bar",
|
|
57
|
+
children: debugBar
|
|
54
58
|
})
|
|
55
59
|
]
|
|
56
60
|
})
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_useSnapControl = require('../hooks/useSnapControl.cjs');
|
|
3
3
|
const require_usePreventScroll = require('../hooks/usePreventScroll.cjs');
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
4
|
let react = require("react");
|
|
6
5
|
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let framer_motion = require("framer-motion");
|
|
8
8
|
|
|
9
9
|
//#region src/components/FloatingChat/components/ModalSheet.tsx
|
|
10
|
-
const BOTTOM_OFFSET = 100;
|
|
11
10
|
const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], initSnap = 0, handler, animation = {
|
|
12
11
|
type: "spring",
|
|
13
12
|
stiffness: 300,
|
|
@@ -132,7 +131,7 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
132
131
|
},
|
|
133
132
|
initial: { y: swipeviewHeightPx },
|
|
134
133
|
animate: { y: initSnapInPixels },
|
|
135
|
-
exit: { y: swipeviewHeightPx
|
|
134
|
+
exit: { y: swipeviewHeightPx },
|
|
136
135
|
transition: animation,
|
|
137
136
|
onDragEnd: handleDragEnd,
|
|
138
137
|
onClick: expandToFullView,
|
|
@@ -152,16 +151,16 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
152
151
|
onTouchEnd: handleTouchEnd,
|
|
153
152
|
onTouchMove: (event) => handleContentGesture(event.touches[0].clientX, event.touches[0].clientY),
|
|
154
153
|
onPointerMove: disableDrag ? void 0 : (event) => handleContentGesture(event.clientX, event.clientY),
|
|
155
|
-
initial: { y: swipeviewHeightPx
|
|
154
|
+
initial: { y: swipeviewHeightPx },
|
|
156
155
|
animate: { y: initSnapInPixels },
|
|
157
|
-
exit: { y: swipeviewHeightPx
|
|
156
|
+
exit: { y: swipeviewHeightPx },
|
|
158
157
|
transition: animation,
|
|
159
158
|
style: {
|
|
160
159
|
y: animatedY,
|
|
161
160
|
width: "100%",
|
|
162
|
-
height: swipeviewHeightPx
|
|
161
|
+
height: swipeviewHeightPx,
|
|
163
162
|
position: "fixed",
|
|
164
|
-
bottom:
|
|
163
|
+
bottom: 0,
|
|
165
164
|
right: 0,
|
|
166
165
|
boxSizing: "content-box",
|
|
167
166
|
zIndex: 2147483646
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useSnapControl } from "../hooks/useSnapControl.js";
|
|
2
2
|
import { usePreventScroll } from "../hooks/usePreventScroll.js";
|
|
3
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import React, { useEffect, useImperativeHandle } from "react";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { AnimatePresence, motion, useAnimate } from "framer-motion";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FloatingChat/components/ModalSheet.tsx
|
|
8
|
-
const BOTTOM_OFFSET = 100;
|
|
9
8
|
const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], initSnap = 0, handler, animation = {
|
|
10
9
|
type: "spring",
|
|
11
10
|
stiffness: 300,
|
|
@@ -130,7 +129,7 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
130
129
|
},
|
|
131
130
|
initial: { y: swipeviewHeightPx },
|
|
132
131
|
animate: { y: initSnapInPixels },
|
|
133
|
-
exit: { y: swipeviewHeightPx
|
|
132
|
+
exit: { y: swipeviewHeightPx },
|
|
134
133
|
transition: animation,
|
|
135
134
|
onDragEnd: handleDragEnd,
|
|
136
135
|
onClick: expandToFullView,
|
|
@@ -150,16 +149,16 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
150
149
|
onTouchEnd: handleTouchEnd,
|
|
151
150
|
onTouchMove: (event) => handleContentGesture(event.touches[0].clientX, event.touches[0].clientY),
|
|
152
151
|
onPointerMove: disableDrag ? void 0 : (event) => handleContentGesture(event.clientX, event.clientY),
|
|
153
|
-
initial: { y: swipeviewHeightPx
|
|
152
|
+
initial: { y: swipeviewHeightPx },
|
|
154
153
|
animate: { y: initSnapInPixels },
|
|
155
|
-
exit: { y: swipeviewHeightPx
|
|
154
|
+
exit: { y: swipeviewHeightPx },
|
|
156
155
|
transition: animation,
|
|
157
156
|
style: {
|
|
158
157
|
y: animatedY,
|
|
159
158
|
width: "100%",
|
|
160
|
-
height: swipeviewHeightPx
|
|
159
|
+
height: swipeviewHeightPx,
|
|
161
160
|
position: "fixed",
|
|
162
|
-
bottom:
|
|
161
|
+
bottom: 0,
|
|
163
162
|
right: 0,
|
|
164
163
|
boxSizing: "content-box",
|
|
165
164
|
zIndex: 2147483646
|
|
@@ -24,9 +24,7 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
|
|
|
24
24
|
numberOfReviews: product.numberOfReviews,
|
|
25
25
|
image: product.image,
|
|
26
26
|
url: product.url,
|
|
27
|
-
|
|
28
|
-
window.open(product.url, "_blank");
|
|
29
|
-
},
|
|
27
|
+
target: "_blank",
|
|
30
28
|
theme: finalTheme
|
|
31
29
|
}, product.id)),
|
|
32
30
|
theme: finalTheme
|
|
@@ -23,9 +23,7 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
|
|
|
23
23
|
numberOfReviews: product.numberOfReviews,
|
|
24
24
|
image: product.image,
|
|
25
25
|
url: product.url,
|
|
26
|
-
|
|
27
|
-
window.open(product.url, "_blank");
|
|
28
|
-
},
|
|
26
|
+
target: "_blank",
|
|
29
27
|
theme: finalTheme
|
|
30
28
|
}, product.id)),
|
|
31
29
|
theme: finalTheme
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
2
|
let react = require("react");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
let __envive_ai_react_icons_ArrowUp = require("@envive-ai/react-icons/ArrowUp");
|
|
5
5
|
__envive_ai_react_icons_ArrowUp = require_rolldown_runtime.__toESM(__envive_ai_react_icons_ArrowUp);
|
|
6
6
|
|
|
@@ -63,6 +63,10 @@ interface FloatingChatProps {
|
|
|
63
63
|
* Hardcopy content to display in the chat.
|
|
64
64
|
*/
|
|
65
65
|
hardcopyContent: HardcopyResponse;
|
|
66
|
+
/**
|
|
67
|
+
* Debug bar to display in the chat.
|
|
68
|
+
*/
|
|
69
|
+
debugBar?: React.ReactNode;
|
|
66
70
|
}
|
|
67
71
|
//#endregion
|
|
68
72
|
export { FloatingChatProps };
|
|
@@ -63,6 +63,10 @@ interface FloatingChatProps {
|
|
|
63
63
|
* Hardcopy content to display in the chat.
|
|
64
64
|
*/
|
|
65
65
|
hardcopyContent: HardcopyResponse;
|
|
66
|
+
/**
|
|
67
|
+
* Debug bar to display in the chat.
|
|
68
|
+
*/
|
|
69
|
+
debugBar?: React.ReactNode;
|
|
66
70
|
}
|
|
67
71
|
//#endregion
|
|
68
72
|
export { FloatingChatProps };
|
package/dist/Form/Form.cjs
CHANGED
|
@@ -4,8 +4,8 @@ const require_useFormsTextFieldValues = require('./hooks/useFormsTextFieldValues
|
|
|
4
4
|
const require_buildSubmitButtonElement = require('./utils/buildSubmitButtonElement.cjs');
|
|
5
5
|
const require_handleFormsSubmit = require('./utils/handleFormsSubmit.cjs');
|
|
6
6
|
const require_mapTextFields = require('./utils/mapTextFields.cjs');
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
7
|
let react = require("react");
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let classnames = require("classnames");
|
|
10
10
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
11
11
|
|
package/dist/Form/Form.js
CHANGED
|
@@ -3,8 +3,8 @@ import { useFormsTextFieldValues } from "./hooks/useFormsTextFieldValues.js";
|
|
|
3
3
|
import { buildSubmitButtonElement } from "./utils/buildSubmitButtonElement.js";
|
|
4
4
|
import { handleFormsSubmit } from "./utils/handleFormsSubmit.js";
|
|
5
5
|
import { mapTextFields } from "./utils/mapTextFields.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import { useState } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Form/Form.tsx
|