@envive-ai/react-toolkit-v3 0.3.12 → 0.3.13
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/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 +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +1 -1
- 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 +1 -1
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +1 -1
- package/dist/ChatFooter/components/Layout.cjs +1 -1
- package/dist/ChatFooter/components/Layout.js +1 -1
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +3 -3
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
- 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 +6 -5
- package/dist/ChatPreviewComparison/components/Layout.js +6 -5
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- 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/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.cjs +5 -2
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +5 -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/hooks/useSnapSetup.cjs +10 -7
- package/dist/FloatingChat/hooks/useSnapSetup.js +10 -7
- 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.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/components/Layout.cjs +1 -1
- package/dist/FullPageSalesAgent/components/Layout.js +1 -1
- 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.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.cjs +14 -27
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +3 -5
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +3 -5
- package/dist/MarkdownProcessor/MarkdownProcessor.js +15 -26
- package/dist/MarkdownProcessor/components/index.cjs +1 -3
- package/dist/MarkdownProcessor/components/index.js +1 -3
- package/dist/MarkdownProcessor/utils/functions.cjs +1 -11
- package/dist/MarkdownProcessor/utils/functions.js +1 -10
- package/dist/Message/components/Layout.cjs +1 -1
- package/dist/Message/components/Layout.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/ProductCard/components/Header.cjs +33 -7
- package/dist/ProductCard/components/Header.js +34 -8
- 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/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +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/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/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/components/Headline.cjs +1 -1
- package/dist/SocialProof/components/Headline.js +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TextField/TextField.cjs +1 -1
- package/dist/TextField/TextField.js +1 -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/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 +2 -2
- package/dist/Tokens/index.js +2 -2
- package/dist/TypingAnimation/TypingAnimation.cjs +58 -18
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +59 -19
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +1 -1
- package/dist/WelcomeMessage/components/Container.js +1 -1
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- 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.js +1 -1
- 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/resolveTheme.cjs +1 -1
- package/dist/utils/resolveTheme.js +1 -1
- package/dist/utils/useAnimatedTextMinHeight.cjs +28 -0
- package/dist/utils/useAnimatedTextMinHeight.js +27 -0
- package/package.json +1 -3
- package/src/components/ChatPreviewComparison/components/Layout.tsx +2 -2
- package/src/components/FloatingChat/FloatingChat.tsx +4 -1
- package/src/components/FloatingChat/hooks/useSnapSetup.ts +11 -4
- package/src/components/MarkdownProcessor/MarkdownProcessor.tsx +3 -19
- package/src/components/MarkdownProcessor/__tests__/MarkdownProcessor.test.tsx +1 -39
- package/src/components/MarkdownProcessor/components/index.ts +0 -2
- package/src/components/MarkdownProcessor/utils/functions.tsx +0 -19
- package/src/components/ProductCard/components/Header.tsx +39 -9
- package/src/components/TypingAnimation/TypingAnimation.tsx +68 -22
- package/src/components/utils/useAnimatedTextMinHeight.ts +29 -0
- package/dist/MarkdownProcessor/components/MarkdownSubscript.cjs +0 -15
- package/dist/MarkdownProcessor/components/MarkdownSubscript.js +0 -14
- package/src/components/MarkdownProcessor/components/MarkdownSubscript.tsx +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getComputedCSSVariable } from "./utils.js";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
|
|
5
5
|
//#region src/components/DesignTokens/components/FontSize.tsx
|
|
6
6
|
const FontSize = ({ fontSizeTokens }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_utils = require('./utils.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/DesignTokens/components/FontWeight.tsx
|
|
8
8
|
const FontWeight = ({ fontWeightTokens }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getComputedCSSVariable } from "./utils.js";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
|
|
5
5
|
//#region src/components/DesignTokens/components/FontWeight.tsx
|
|
6
6
|
const FontWeight = ({ fontWeightTokens }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_utils = require('./utils.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/DesignTokens/components/LetterSpacing.tsx
|
|
8
8
|
const LetterSpacing = ({ letterSpacingTokens }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getComputedCSSVariable } from "./utils.js";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
|
|
5
5
|
//#region src/components/DesignTokens/components/LetterSpacing.tsx
|
|
6
6
|
const LetterSpacing = ({ letterSpacingTokens }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_utils = require('./utils.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/DesignTokens/components/LineHeight.tsx
|
|
8
8
|
const LineHeight = ({ lineHeightTokens }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getComputedCSSVariable } from "./utils.js";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
|
|
5
5
|
//#region src/components/DesignTokens/components/LineHeight.tsx
|
|
6
6
|
const LineHeight = ({ lineHeightTokens }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
2
3
|
let classnames = require("classnames");
|
|
3
4
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
|
|
6
6
|
//#region src/components/DesignTokens/components/Typography.tsx
|
|
7
7
|
const Typography = () => {
|
|
@@ -3,9 +3,9 @@ const require_Stack = require('../../Stack/Stack.cjs');
|
|
|
3
3
|
require('../../Stack/index.cjs');
|
|
4
4
|
const require_Container = require('../../Container/Container.cjs');
|
|
5
5
|
require('../../Container/index.cjs');
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
7
|
let classnames = require("classnames");
|
|
7
8
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
|
|
10
10
|
//#region src/components/Disclaimer/components/Container.tsx
|
|
11
11
|
const Container$1 = ({ markdownNode, id, testId, className, style }) => {
|
|
@@ -2,8 +2,8 @@ import { Stack } from "../../Stack/Stack.js";
|
|
|
2
2
|
import "../../Stack/index.js";
|
|
3
3
|
import { Container } from "../../Container/Container.js";
|
|
4
4
|
import "../../Container/index.js";
|
|
5
|
-
import classNames from "classnames";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import classNames from "classnames";
|
|
7
7
|
|
|
8
8
|
//#region src/components/Disclaimer/components/Container.tsx
|
|
9
9
|
const Container$1 = ({ markdownNode, id, testId, className, style }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentRetrievalCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 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_runtime23.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_runtime31 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_runtime31.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DocumentRetrievalCard };
|
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_index = require('../../Image/types/index.cjs');
|
|
3
3
|
const require_Image = require('../../Image/Image.cjs');
|
|
4
4
|
require('../../Image/index.cjs');
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
6
|
let classnames = require("classnames");
|
|
6
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
|
|
9
9
|
//#region src/components/DocumentRetrievalCard/components/Image.tsx
|
|
10
10
|
const Image$1 = ({ imageUrl, imageAlt, className }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ImageAspectRatio } from "../../Image/types/index.js";
|
|
2
2
|
import { Image } from "../../Image/Image.js";
|
|
3
3
|
import "../../Image/index.js";
|
|
4
|
-
import classNames from "classnames";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import classNames from "classnames";
|
|
6
6
|
|
|
7
7
|
//#region src/components/DocumentRetrievalCard/components/Image.tsx
|
|
8
8
|
const Image$1 = ({ imageUrl, imageAlt, className }) => {
|
|
@@ -7,9 +7,9 @@ const require_useGetThemeProperties = require('../hooks/useGetThemeProperties.cj
|
|
|
7
7
|
const require_useGetStackLayoutProperties = require('../hooks/useGetStackLayoutProperties.cjs');
|
|
8
8
|
const require_useGetCardWidthProperties = require('../hooks/useGetCardWidthProperties.cjs');
|
|
9
9
|
const require_useGetPaddingProperties = require('../hooks/useGetPaddingProperties.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/DocumentRetrievalCard/components/Layout.tsx
|
|
15
15
|
const Layout = ({ content, image, viewArticleButton, id, testId, className, style, theme, ariaLabel }) => {
|
|
@@ -6,8 +6,8 @@ import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
|
|
|
6
6
|
import { useGetStackLayoutProperties } from "../hooks/useGetStackLayoutProperties.js";
|
|
7
7
|
import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
|
|
8
8
|
import { useGetPaddingProperties } from "../hooks/useGetPaddingProperties.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/DocumentRetrievalCard/components/Layout.tsx
|
|
13
13
|
const Layout = ({ content, image, viewArticleButton, id, testId, className, style, theme, ariaLabel }) => {
|
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.
|
|
|
2
2
|
const require_Stack = require('../../../../Stack/Stack.cjs');
|
|
3
3
|
require('../../../../Stack/index.cjs');
|
|
4
4
|
const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
6
|
let classnames = require("classnames");
|
|
6
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let __envive_ai_react_icons_Document = require("@envive-ai/react-icons/Document");
|
|
9
9
|
__envive_ai_react_icons_Document = require_rolldown_runtime.__toESM(__envive_ai_react_icons_Document);
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Stack } from "../../../../Stack/Stack.js";
|
|
2
2
|
import "../../../../Stack/index.js";
|
|
3
3
|
import { CustomIcon } from "../../../../utils/CustomIcon.js";
|
|
4
|
-
import classNames from "classnames";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import classNames from "classnames";
|
|
6
6
|
import Document from "@envive-ai/react-icons/Document";
|
|
7
7
|
|
|
8
8
|
//#region src/components/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.tsx
|
|
@@ -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_useGetLabelUnderlineProperties = require('../../../hooks/useGetLabelUnderlineProperties.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/DocumentRetrievalCard/components/ViewArticleButton/components/Label.tsx
|
|
13
13
|
const Label = ({ viewArticleLabel, typographyVariant, shouldUnderline = false, textCaseClassName }) => {
|
|
@@ -4,8 +4,8 @@ import { TypographyColor } from "../../../../Typography/types/index.js";
|
|
|
4
4
|
import { Typography } from "../../../../Typography/Typography.js";
|
|
5
5
|
import "../../../../Typography/index.js";
|
|
6
6
|
import { useGetLabelUnderlineProperties } from "../../../hooks/useGetLabelUnderlineProperties.js";
|
|
7
|
-
import classNames from "classnames";
|
|
8
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/components/DocumentRetrievalCard/components/ViewArticleButton/components/Label.tsx
|
|
11
11
|
const Label = ({ viewArticleLabel, typographyVariant, shouldUnderline = false, textCaseClassName }) => {
|
|
@@ -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/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.tsx
|
|
9
9
|
const Layout = ({ icon, label, onClick, className, 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/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.tsx
|
|
7
7
|
const Layout = ({ icon, label, onClick, className, ariaLabel }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 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_runtime21.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_runtime22 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_runtime22.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingButton };
|
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_types = require('../types/types.cjs');
|
|
3
3
|
const require_useGetButtonProperties = require('../hooks/useGetButtonProperties.cjs');
|
|
4
4
|
const require_useGetButtonHoverProperties = require('../hooks/useGetButtonHoverProperties.cjs');
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
6
|
let classnames = require("classnames");
|
|
6
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
|
|
9
9
|
//#region src/components/FloatingButton/components/Button.tsx
|
|
10
10
|
const Button = ({ variant = require_types.FloatingButtonVariant.ATTACHED, mode = require_types.FloatingButtonMode.LIGHT, backgroundColor, onClick, children, className = "", ariaLabel }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FloatingButtonMode, FloatingButtonVariant } from "../types/types.js";
|
|
2
2
|
import { useGetButtonProperties } from "../hooks/useGetButtonProperties.js";
|
|
3
3
|
import { useGetButtonHoverProperties } from "../hooks/useGetButtonHoverProperties.js";
|
|
4
|
-
import classNames from "classnames";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import classNames from "classnames";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FloatingButton/components/Button.tsx
|
|
8
8
|
const Button = ({ variant = FloatingButtonVariant.ATTACHED, mode = FloatingButtonMode.LIGHT, backgroundColor, onClick, children, className = "", ariaLabel }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types = require('../types/types.cjs');
|
|
3
3
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.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/FloatingButton/components/Container.tsx
|
|
9
9
|
const Container = ({ location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, show = require_types.FloatingButtonShow.ALWAYS, variant = require_types.FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style, previewMode = false }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FloatingButtonLocation, FloatingButtonShow, FloatingButtonVariant } from "../types/types.js";
|
|
2
2
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
3
|
-
import classNames from "classnames";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import classNames from "classnames";
|
|
5
5
|
|
|
6
6
|
//#region src/components/FloatingButton/components/Container.tsx
|
|
7
7
|
const Container = ({ location = FloatingButtonLocation.BOTTOM_RIGHT, show = FloatingButtonShow.ALWAYS, variant = FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style, previewMode = false }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types = require('../types/types.cjs');
|
|
3
3
|
const require_useGetWrapperProperties = require('../hooks/useGetWrapperProperties.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/FloatingButton/components/Wrapper.tsx
|
|
9
9
|
const Wrapper = ({ location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, children, className = "" }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FloatingButtonLocation } from "../types/types.js";
|
|
2
2
|
import { useGetWrapperProperties } from "../hooks/useGetWrapperProperties.js";
|
|
3
|
-
import classNames from "classnames";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import classNames from "classnames";
|
|
5
5
|
|
|
6
6
|
//#region src/components/FloatingButton/components/Wrapper.tsx
|
|
7
7
|
const Wrapper = ({ location = FloatingButtonLocation.BOTTOM_RIGHT, children, className = "" }) => {
|
|
@@ -31,7 +31,7 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
31
31
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
32
32
|
const [query, setQuery] = (0, react.useState)("");
|
|
33
33
|
const chatMessagesRef = (0, react.useRef)(null);
|
|
34
|
-
const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards } = floatingChatConfig;
|
|
34
|
+
const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards, partialViewConfig } = floatingChatConfig;
|
|
35
35
|
const { welcomeMessageTitle, welcomeMessageText, chatFooterTextFieldPlaceholderText, disclaimerText } = hardcopyContent?.values ?? {};
|
|
36
36
|
const { agentName, chatHeaderLogoDarkSrc, chatHeaderLogoLightSrc } = lookAndFeelConfig;
|
|
37
37
|
const { messages, isResponseStreaming, isPendingResponse, suggestions, onSuggestionClicked, onTypedMessageSubmitted, onFormResponseSubmitted } = salesAgentData;
|
|
@@ -46,7 +46,10 @@ const FloatingChat = ({ id, className, style, testId, theme = require_theme.Them
|
|
|
46
46
|
onClose();
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
const { modalSheetControl, maxSwipeableViewHeight, isOpen, isMobile, snaps, initialSnap, shouldAutoExpand, currentSnapPercentage, handleSnapChange, animationKey, mobileHeaderHeight, shouldShowHeader, isFullView, isPartialView } = require_useSnapSetup.useSnapSetup({
|
|
49
|
+
const { modalSheetControl, maxSwipeableViewHeight, isOpen, isMobile, snaps, initialSnap, shouldAutoExpand, currentSnapPercentage, handleSnapChange, animationKey, mobileHeaderHeight, shouldShowHeader, isFullView, isPartialView } = require_useSnapSetup.useSnapSetup({
|
|
50
|
+
isFloatingChatOpen,
|
|
51
|
+
partialViewDisabled: partialViewConfig?.disabled ?? false
|
|
52
|
+
});
|
|
50
53
|
const { showScrollButton, scrollToBottom, isFloatingLayout } = require_useScrollToBottom.useScrollToBottom({
|
|
51
54
|
messagesRef: chatMessagesRef,
|
|
52
55
|
autoScrollDependencies: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingChat: ({
|
|
|
17
17
|
debugBar,
|
|
18
18
|
onClose,
|
|
19
19
|
onToggleCXButton
|
|
20
|
-
}: FloatingChatProps) =>
|
|
20
|
+
}: FloatingChatProps) => react_jsx_runtime20.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -17,6 +17,6 @@ declare const FloatingChat: ({
|
|
|
17
17
|
debugBar,
|
|
18
18
|
onClose,
|
|
19
19
|
onToggleCXButton
|
|
20
|
-
}: FloatingChatProps) =>
|
|
20
|
+
}: FloatingChatProps) => react_jsx_runtime25.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { FloatingChat };
|
|
@@ -30,7 +30,7 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
30
30
|
const finalTheme = resolveTheme(theme);
|
|
31
31
|
const [query, setQuery] = useState("");
|
|
32
32
|
const chatMessagesRef = useRef(null);
|
|
33
|
-
const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards } = floatingChatConfig;
|
|
33
|
+
const { headerBackgroundColor, headerMode, welcomeMessageIconColor, showVerifiedBuyer, userQueryInputEnabled = true, showEnviveLogo, ignoreFirstModelResponse, neverShowSingleProductCards, partialViewConfig } = floatingChatConfig;
|
|
34
34
|
const { welcomeMessageTitle, welcomeMessageText, chatFooterTextFieldPlaceholderText, disclaimerText } = hardcopyContent?.values ?? {};
|
|
35
35
|
const { agentName, chatHeaderLogoDarkSrc, chatHeaderLogoLightSrc } = lookAndFeelConfig;
|
|
36
36
|
const { messages, isResponseStreaming, isPendingResponse, suggestions, onSuggestionClicked, onTypedMessageSubmitted, onFormResponseSubmitted } = salesAgentData;
|
|
@@ -45,7 +45,10 @@ const FloatingChat = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTO
|
|
|
45
45
|
onClose();
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
const { modalSheetControl, maxSwipeableViewHeight, isOpen, isMobile, snaps, initialSnap, shouldAutoExpand, currentSnapPercentage, handleSnapChange, animationKey, mobileHeaderHeight, shouldShowHeader, isFullView, isPartialView } = useSnapSetup({
|
|
48
|
+
const { modalSheetControl, maxSwipeableViewHeight, isOpen, isMobile, snaps, initialSnap, shouldAutoExpand, currentSnapPercentage, handleSnapChange, animationKey, mobileHeaderHeight, shouldShowHeader, isFullView, isPartialView } = useSnapSetup({
|
|
49
|
+
isFloatingChatOpen,
|
|
50
|
+
partialViewDisabled: partialViewConfig?.disabled ?? false
|
|
51
|
+
});
|
|
49
52
|
const { showScrollButton, scrollToBottom, isFloatingLayout } = useScrollToBottom({
|
|
50
53
|
messagesRef: chatMessagesRef,
|
|
51
54
|
autoScrollDependencies: [
|
|
@@ -14,9 +14,9 @@ const require_functions = require('../utils/functions.cjs');
|
|
|
14
14
|
const require_AgentMessage = require('./AgentMessage.cjs');
|
|
15
15
|
const require_MessageDivider = require('./MessageDivider.cjs');
|
|
16
16
|
let react = require("react");
|
|
17
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
18
|
let classnames = require("classnames");
|
|
18
19
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
19
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
20
20
|
let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
|
|
21
21
|
|
|
22
22
|
//#region src/components/FloatingChat/components/ChatMessages.tsx
|
|
@@ -13,8 +13,8 @@ import { checkIfHideAgentName, getGroupableMessages } from "../utils/functions.j
|
|
|
13
13
|
import { AgentMessage } from "./AgentMessage.js";
|
|
14
14
|
import { MessageDivider } from "./MessageDivider.js";
|
|
15
15
|
import { forwardRef } from "react";
|
|
16
|
-
import classNames from "classnames";
|
|
17
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import classNames from "classnames";
|
|
18
18
|
import { MessageRole, MessageType } from "@envive-ai/react-hooks/application/models";
|
|
19
19
|
|
|
20
20
|
//#region src/components/FloatingChat/components/ChatMessages.tsx
|
|
@@ -6,9 +6,9 @@ const require_Container = require('../../Container/Container.cjs');
|
|
|
6
6
|
require('../../Container/index.cjs');
|
|
7
7
|
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
10
|
let classnames = require("classnames");
|
|
10
11
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
11
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
12
|
|
|
13
13
|
//#region src/components/FloatingChat/components/Layout.tsx
|
|
14
14
|
const Layout = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false, debugBar }) => {
|
|
@@ -5,8 +5,8 @@ import { Container } from "../../Container/Container.js";
|
|
|
5
5
|
import "../../Container/index.js";
|
|
6
6
|
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
7
7
|
import { isValidElement } from "react";
|
|
8
|
-
import classNames from "classnames";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import classNames from "classnames";
|
|
10
10
|
|
|
11
11
|
//#region src/components/FloatingChat/components/Layout.tsx
|
|
12
12
|
const Layout = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false, debugBar }) => {
|
|
@@ -4,18 +4,21 @@ let react = require("react");
|
|
|
4
4
|
let framer_motion = require("framer-motion");
|
|
5
5
|
|
|
6
6
|
//#region src/components/FloatingChat/hooks/useSnapSetup.ts
|
|
7
|
-
const useSnapSetup = ({ isFloatingChatOpen }) => {
|
|
7
|
+
const useSnapSetup = ({ isFloatingChatOpen, partialViewDisabled }) => {
|
|
8
8
|
const maxSwipeableViewHeight = 89;
|
|
9
9
|
const modalSheetControl = (0, react.useRef)(null);
|
|
10
10
|
const { viewportWidth } = require_useCheckIsMobile.useCheckIsMobile();
|
|
11
11
|
const isMobile = viewportWidth !== void 0 && viewportWidth < 512;
|
|
12
12
|
const shouldAutoExpand = Boolean(isMobile && window?._spiffy?.selectedCustomizeOption);
|
|
13
|
-
const snaps =
|
|
14
|
-
0,
|
|
15
|
-
43,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const snaps = (() => {
|
|
14
|
+
if (partialViewDisabled) return shouldAutoExpand ? [100] : [0, 100];
|
|
15
|
+
return shouldAutoExpand ? [43, 100] : [
|
|
16
|
+
0,
|
|
17
|
+
43,
|
|
18
|
+
100
|
|
19
|
+
];
|
|
20
|
+
})();
|
|
21
|
+
const initialSnap = partialViewDisabled ? shouldAutoExpand ? 0 : 1 : 1;
|
|
19
22
|
const [currentSnapPercentage, setCurrentSnapPercentage] = (0, react.useState)(snaps[initialSnap] || 43);
|
|
20
23
|
const animationKey = (0, framer_motion.useMotionValue)(0);
|
|
21
24
|
const snap43Percent = 57 / 100 * window.innerHeight;
|
|
@@ -3,18 +3,21 @@ import { useEffect, useRef, useState } from "react";
|
|
|
3
3
|
import { useMotionValue, useTransform } from "framer-motion";
|
|
4
4
|
|
|
5
5
|
//#region src/components/FloatingChat/hooks/useSnapSetup.ts
|
|
6
|
-
const useSnapSetup = ({ isFloatingChatOpen }) => {
|
|
6
|
+
const useSnapSetup = ({ isFloatingChatOpen, partialViewDisabled }) => {
|
|
7
7
|
const maxSwipeableViewHeight = 89;
|
|
8
8
|
const modalSheetControl = useRef(null);
|
|
9
9
|
const { viewportWidth } = useCheckIsMobile();
|
|
10
10
|
const isMobile = viewportWidth !== void 0 && viewportWidth < 512;
|
|
11
11
|
const shouldAutoExpand = Boolean(isMobile && window?._spiffy?.selectedCustomizeOption);
|
|
12
|
-
const snaps =
|
|
13
|
-
0,
|
|
14
|
-
43,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
const snaps = (() => {
|
|
13
|
+
if (partialViewDisabled) return shouldAutoExpand ? [100] : [0, 100];
|
|
14
|
+
return shouldAutoExpand ? [43, 100] : [
|
|
15
|
+
0,
|
|
16
|
+
43,
|
|
17
|
+
100
|
|
18
|
+
];
|
|
19
|
+
})();
|
|
20
|
+
const initialSnap = partialViewDisabled ? shouldAutoExpand ? 0 : 1 : 1;
|
|
18
21
|
const [currentSnapPercentage, setCurrentSnapPercentage] = useState(snaps[initialSnap] || 43);
|
|
19
22
|
const animationKey = useMotionValue(0);
|
|
20
23
|
const snap43Percent = 57 / 100 * window.innerHeight;
|
package/dist/Form/Form.cjs
CHANGED
|
@@ -5,9 +5,9 @@ const require_buildSubmitButtonElement = require('./utils/buildSubmitButtonEleme
|
|
|
5
5
|
const require_handleFormsSubmit = require('./utils/handleFormsSubmit.cjs');
|
|
6
6
|
const require_mapTextFields = require('./utils/mapTextFields.cjs');
|
|
7
7
|
let react = require("react");
|
|
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/Form/Form.tsx
|
|
13
13
|
/**
|
package/dist/Form/Form.js
CHANGED
|
@@ -4,8 +4,8 @@ import { buildSubmitButtonElement } from "./utils/buildSubmitButtonElement.js";
|
|
|
4
4
|
import { handleFormsSubmit } from "./utils/handleFormsSubmit.js";
|
|
5
5
|
import { mapTextFields } from "./utils/mapTextFields.js";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
-
import classNames from "classnames";
|
|
8
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import classNames from "classnames";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Form/Form.tsx
|
|
11
11
|
/**
|
|
@@ -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/Form/components/Layout.tsx
|
|
9
9
|
const Layout = ({ textFields, submitButton, onSubmit, ariaLabel, id, testId, className, style }) => {
|
|
@@ -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/Form/components/Layout.tsx
|
|
7
7
|
const Layout = ({ textFields, submitButton, onSubmit, ariaLabel, id, testId, className, style }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_useGetButtonProperties = require('../hooks/useGetButtonProperties.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/Form/components/SubmitButtonItem.tsx
|
|
8
8
|
const SubmitButtonItem = ({ label, isDisabled = false, ariaLabel, id, testId, className, style }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useGetButtonProperties } from "../hooks/useGetButtonProperties.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/Form/components/SubmitButtonItem.tsx
|
|
6
6
|
const SubmitButtonItem = ({ label, isDisabled = false, ariaLabel, id, testId, className, style }) => {
|