@envive-ai/react-toolkit-v3 0.3.30 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnimatedText/AnimatedText.d.cts +3 -3
- package/dist/AnimatedText/AnimatedText.d.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +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.cts +2 -2
- 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 +5 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/hooks/useGetHandleProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetHandleProperties.js +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Layout.js +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +172 -172
- package/dist/Container/Container.d.ts +172 -172
- 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.cjs +2 -1
- package/dist/FloatingButton/FloatingButton.d.cts +4 -3
- package/dist/FloatingButton/FloatingButton.d.ts +4 -3
- package/dist/FloatingButton/FloatingButton.js +2 -1
- package/dist/FloatingButton/components/Button.cjs +1 -1
- package/dist/FloatingButton/components/Button.js +1 -1
- package/dist/FloatingButton/components/Container.cjs +3 -2
- package/dist/FloatingButton/components/Container.js +3 -2
- package/dist/FloatingButton/components/Wrapper.cjs +1 -1
- package/dist/FloatingButton/components/Wrapper.js +1 -1
- package/dist/FloatingButton/types/types.d.cts +4 -0
- package/dist/FloatingButton/types/types.d.ts +4 -0
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +1 -1
- package/dist/FloatingChat/components/Layout.js +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.cjs +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.js +1 -1
- package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
- package/dist/FloatingChat/components/ResultsGridView.js +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.js +1 -1
- package/dist/Form/Form.cjs +1 -1
- package/dist/Form/Form.js +1 -1
- package/dist/Form/components/Layout.cjs +1 -1
- package/dist/Form/components/Layout.js +1 -1
- package/dist/Form/components/SubmitButtonItem.cjs +1 -1
- package/dist/Form/components/SubmitButtonItem.js +1 -1
- package/dist/Form/components/TextFieldItem.cjs +1 -1
- package/dist/Form/components/TextFieldItem.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.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/FullPageSalesAgent/components/WelcomeOverlay.cjs +1 -1
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.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.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/ImageGallery/components/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/ImageGallery/utils/functions.cjs +1 -1
- package/dist/ImageGallery/utils/functions.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/components/Layout.cjs +1 -1
- package/dist/Message/components/Layout.js +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/OrderLookupCard/components/Layout.cjs +1 -1
- package/dist/OrderLookupCard/components/Layout.js +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.cjs +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.js +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.cjs +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.js +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.cjs +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +1 -1
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +1 -1
- package/dist/PromptButton/PromptButton.cjs +1 -1
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButton/PromptButton.js +1 -1
- package/dist/PromptButton/components/Layout.cjs +1 -1
- package/dist/PromptButton/components/Layout.js +1 -1
- package/dist/PromptButton/components/Loading.cjs +1 -1
- package/dist/PromptButton/components/Loading.js +1 -1
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +1 -1
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +1 -1
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +1 -1
- package/dist/ReviewCard/components/Container.js +1 -1
- package/dist/ReviewCard/components/Rating.cjs +1 -1
- package/dist/ReviewCard/components/Rating.js +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +6 -6
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/Container.cjs +1 -1
- package/dist/SalesAgentProductCard/components/Container.js +1 -1
- package/dist/SalesAgentProductCard/components/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/SocialProof/hooks/useSocialProofCount.cjs +2 -1
- package/dist/SocialProof/hooks/useSocialProofCount.js +2 -1
- 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 +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.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- 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.cjs +1 -1
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetTextField/components/Container.cjs +1 -1
- package/dist/WidgetTextField/components/Container.js +1 -1
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.js +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.cjs +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.js +1 -1
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/utils/resolveTheme.cjs +1 -1
- package/dist/utils/resolveTheme.js +1 -1
- package/package.json +1 -1
- package/src/components/FloatingButton/FloatingButton.tsx +2 -0
- package/src/components/FloatingButton/components/Container.tsx +3 -0
- package/src/components/FloatingButton/types/types.ts +4 -0
- package/src/components/SocialProof/components/Headline.tsx +1 -1
- package/src/components/SocialProof/hooks/useSocialProofCount.ts +5 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
2
2
|
import { getLayoutStateProperties } from "../utils/getLayoutStateProperties.js";
|
|
3
|
-
import { jsxs } from "react/jsx-runtime";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/TextField/components/Layout.tsx
|
|
7
7
|
const Layout = ({ theme, input, sendIcon, voiceInputButton, isFocused, hasValue, disabled = false, multiline = false, id, testId, className, style }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_getSendIconElement = require('../utils/getSendIconElement.cjs');
|
|
3
3
|
const require_useSendIconHandlers = require('../hooks/useSendIconHandlers.cjs');
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
4
|
let classnames = require("classnames");
|
|
6
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
8
8
|
//#region src/components/TextField/components/SendIcon.tsx
|
|
9
9
|
const SendIcon = ({ theme, hasValue, disabled = false, onClick, className, style, ariaLabel }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getSendIconElement } from "../utils/getSendIconElement.js";
|
|
2
2
|
import { useSendIconHandlers } from "../hooks/useSendIconHandlers.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/TextField/components/SendIcon.tsx
|
|
7
7
|
const SendIcon = ({ theme, hasValue, disabled = false, onClick, className, style, ariaLabel }) => {
|
package/dist/Title/Title.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_index = require('./components/index.cjs');
|
|
3
3
|
const require_useGetSkeletonProperties = require('../Image/hooks/useGetSkeletonProperties.cjs');
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
4
|
let classnames = require("classnames");
|
|
6
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
8
8
|
//#region src/components/Title/Title.tsx
|
|
9
9
|
/**
|
package/dist/Title/Title.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TitleComponents } from "./components/index.js";
|
|
2
2
|
import { useGetSkeletonProperties } from "../Image/hooks/useGetSkeletonProperties.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Title/Title.tsx
|
|
7
7
|
/**
|
|
@@ -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");
|
|
5
4
|
let classnames = require("classnames");
|
|
6
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
8
8
|
//#region src/components/Title/components/Layout.tsx
|
|
9
9
|
const Layout = ({ logo, label, id, testId, className, style, ariaLabel }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
2
|
import "../../Stack/index.js";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Title/components/Layout.tsx
|
|
7
7
|
const Layout = ({ logo, label, id, testId, className, style, ariaLabel }) => {
|
|
@@ -12,9 +12,9 @@ const require_PromptCarousel_types_types = require('../PromptCarousel/types/type
|
|
|
12
12
|
const require_PromptCarousel = require('../PromptCarousel/PromptCarousel.cjs');
|
|
13
13
|
require('../PromptCarousel/index.cjs');
|
|
14
14
|
const require_useGetSkeletonProperties = require('../Image/hooks/useGetSkeletonProperties.cjs');
|
|
15
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
15
|
let classnames = require("classnames");
|
|
17
16
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
17
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
18
18
|
|
|
19
19
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.tsx
|
|
20
20
|
const TitledPromptCarousel = ({ id, titleLabel, titleAriaLabel, theme = require_theme.Theme.GLOBAL_CUSTOM, isLoading = false, boldFirstButton = false, promptButtonType = require_PromptButton_types_index.PromptButtonVariant.LIGHT, promptCarouselRows = require_PromptCarousel_types_types.PromptCarouselRows.ALWAYS_ONE, animationSpeed = require_PromptCarousel_types_types.AnimationSpeed.NONE, handleButtonClick, handleButtonDrag, handleButtonHover, handleButtonMouseDown, handleButtonMouseUp, handleButtonTouchStart, handleButtonTouchEnd, promptButtonTexts, promptCarouselAriaLabel }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.d.ts
|
|
5
5
|
declare const TitledPromptCarousel: ({
|
|
@@ -21,6 +21,6 @@ declare const TitledPromptCarousel: ({
|
|
|
21
21
|
handleButtonTouchEnd,
|
|
22
22
|
promptButtonTexts,
|
|
23
23
|
promptCarouselAriaLabel
|
|
24
|
-
}: TitledPromptCarouselProps) =>
|
|
24
|
+
}: TitledPromptCarouselProps) => react_jsx_runtime0.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TitledPromptCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.d.ts
|
|
5
5
|
declare const TitledPromptCarousel: ({
|
|
@@ -21,6 +21,6 @@ declare const TitledPromptCarousel: ({
|
|
|
21
21
|
handleButtonTouchEnd,
|
|
22
22
|
promptButtonTexts,
|
|
23
23
|
promptCarouselAriaLabel
|
|
24
|
-
}: TitledPromptCarouselProps) =>
|
|
24
|
+
}: TitledPromptCarouselProps) => react_jsx_runtime0.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TitledPromptCarousel };
|
|
@@ -11,8 +11,8 @@ import { AnimationSpeed, PromptCarouselRows } from "../PromptCarousel/types/type
|
|
|
11
11
|
import { PromptCarousel } from "../PromptCarousel/PromptCarousel.js";
|
|
12
12
|
import "../PromptCarousel/index.js";
|
|
13
13
|
import { useGetSkeletonProperties } from "../Image/hooks/useGetSkeletonProperties.js";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
14
|
import classNames from "classnames";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.tsx
|
|
18
18
|
const TitledPromptCarousel = ({ id, titleLabel, titleAriaLabel, theme = Theme.GLOBAL_CUSTOM, isLoading = false, boldFirstButton = false, promptButtonType = PromptButtonVariant.LIGHT, promptCarouselRows = PromptCarouselRows.ALWAYS_ONE, animationSpeed = AnimationSpeed.NONE, handleButtonClick, handleButtonDrag, handleButtonHover, handleButtonMouseDown, handleButtonMouseUp, handleButtonTouchStart, handleButtonTouchEnd, promptButtonTexts, promptCarouselAriaLabel }) => {
|
package/dist/Tokens/index.cjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
2
|
+
const require_breakpoints = require('../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
1
3
|
const require_colors = require('../packages/components-v3/tokens/colors/colors.cjs');
|
|
2
4
|
const require_fontSize = require('../packages/components-v3/tokens/typography/fontSize.cjs');
|
|
3
5
|
const require_fontWeight = require('../packages/components-v3/tokens/typography/fontWeight.cjs');
|
|
@@ -6,8 +8,6 @@ const require_letterSpacing = require('../packages/components-v3/tokens/typograp
|
|
|
6
8
|
const require_fontFamily = require('../packages/components-v3/tokens/typography/fontFamily.cjs');
|
|
7
9
|
const require_radius = require('../packages/components-v3/tokens/radius/radius.cjs');
|
|
8
10
|
const require_aspectRatio = require('../packages/components-v3/tokens/aspectRatio/aspectRatio.cjs');
|
|
9
|
-
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
10
|
-
const require_breakpoints = require('../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
11
11
|
const require_typography = require('../packages/components-v3/tokens/typography/typography.cjs');
|
|
12
12
|
const require_spacing = require('../packages/components-v3/tokens/spacing/spacing.cjs');
|
|
13
13
|
const require_motion = require('../packages/components-v3/tokens/montion/motion.cjs');
|
package/dist/Tokens/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { screensBreakpointsVariables, tailwindScreens } from "../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
1
3
|
import { colorsVariables } from "../packages/components-v3/tokens/colors/colors.js";
|
|
2
4
|
import { fontSizeVariables } from "../packages/components-v3/tokens/typography/fontSize.js";
|
|
3
5
|
import { fontWeightVariables } from "../packages/components-v3/tokens/typography/fontWeight.js";
|
|
@@ -6,8 +8,6 @@ import { letterSpacingVariables } from "../packages/components-v3/tokens/typogra
|
|
|
6
8
|
import { FontFamily, fontFamilyVariables } from "../packages/components-v3/tokens/typography/fontFamily.js";
|
|
7
9
|
import { borderRadiusVariables } from "../packages/components-v3/tokens/radius/radius.js";
|
|
8
10
|
import { aspectRatioVariables } from "../packages/components-v3/tokens/aspectRatio/aspectRatio.js";
|
|
9
|
-
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
10
|
-
import { screensBreakpointsVariables, tailwindScreens } from "../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
11
11
|
import { createTypographyComponents } from "../packages/components-v3/tokens/typography/typography.js";
|
|
12
12
|
import { spacingVariables } from "../packages/components-v3/tokens/spacing/spacing.js";
|
|
13
13
|
import { animationsVariables, keyFramesVariables } from "../packages/components-v3/tokens/montion/motion.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypingAnimationProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TypingAnimation/TypingAnimation.d.ts
|
|
5
5
|
declare const TypingAnimation: ({
|
|
@@ -7,6 +7,6 @@ declare const TypingAnimation: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: TypingAnimationProps) =>
|
|
10
|
+
}: TypingAnimationProps) => react_jsx_runtime1.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { TypingAnimation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypingAnimationProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TypingAnimation/TypingAnimation.d.ts
|
|
5
5
|
declare const TypingAnimation: ({
|
|
@@ -7,6 +7,6 @@ declare const TypingAnimation: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: TypingAnimationProps) =>
|
|
10
|
+
}: TypingAnimationProps) => react_jsx_runtime3.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { TypingAnimation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react183 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Typography/Typography.d.ts
|
|
5
5
|
/**
|
|
@@ -18,13 +18,13 @@ declare const Typography: ({
|
|
|
18
18
|
noWrap,
|
|
19
19
|
as,
|
|
20
20
|
"aria-label": ariaLabel
|
|
21
|
-
}: TypographyProps) =>
|
|
21
|
+
}: TypographyProps) => react183.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react183.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react183.CSSProperties;
|
|
28
28
|
id: string;
|
|
29
29
|
'data-testid': string;
|
|
30
30
|
}, HTMLElement>;
|
|
@@ -4,9 +4,9 @@ require('../../Stack/index.cjs');
|
|
|
4
4
|
const require_Container = require('../../Container/Container.cjs');
|
|
5
5
|
require('../../Container/index.cjs');
|
|
6
6
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
7
|
let classnames = require("classnames");
|
|
9
8
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
|
|
11
11
|
//#region src/components/WelcomeMessage/components/Container.tsx
|
|
12
12
|
const Container$1 = ({ sparkleIcon, titleNode, textNode, theme, id, testId, className, style }) => {
|
|
@@ -3,8 +3,8 @@ import "../../Stack/index.js";
|
|
|
3
3
|
import { Container } from "../../Container/Container.js";
|
|
4
4
|
import "../../Container/index.js";
|
|
5
5
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import classNames from "classnames";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/WelcomeMessage/components/Container.tsx
|
|
10
10
|
const Container$1 = ({ sparkleIcon, titleNode, textNode, theme, id, testId, className, style }) => {
|
|
@@ -9,9 +9,9 @@ const require_useVoiceInput = require('../TextField/hooks/useVoiceInput.cjs');
|
|
|
9
9
|
const require_types = require('./types/types.cjs');
|
|
10
10
|
const require_index$2 = require('./components/index.cjs');
|
|
11
11
|
const require_useGetMicWidgetButtonProperties = require('./hooks/useGetMicWidgetButtonProperties.cjs');
|
|
12
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
12
|
let classnames = require("classnames");
|
|
14
13
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
14
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
15
|
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
16
16
|
|
|
17
17
|
//#region src/components/WidgetTextField/WidgetTextField.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/WidgetTextField.d.ts
|
|
5
5
|
declare const WidgetTextField: ({
|
|
@@ -19,6 +19,6 @@ declare const WidgetTextField: ({
|
|
|
19
19
|
onClick,
|
|
20
20
|
enableVoiceInput,
|
|
21
21
|
onTranscriptionStarted
|
|
22
|
-
}: WidgetTextFieldProps) =>
|
|
22
|
+
}: WidgetTextFieldProps) => react_jsx_runtime1.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { WidgetTextField };
|
|
@@ -8,8 +8,8 @@ import { useVoiceInput } from "../TextField/hooks/useVoiceInput.js";
|
|
|
8
8
|
import { IconVariant } from "./types/types.js";
|
|
9
9
|
import { WidgetTextFieldComponents } from "./components/index.js";
|
|
10
10
|
import { useGetMicWidgetButtonProperties } from "./hooks/useGetMicWidgetButtonProperties.js";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
11
|
import classNames from "classnames";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
import { listeningToSpeechAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
14
14
|
|
|
15
15
|
//#region src/components/WidgetTextField/WidgetTextField.tsx
|
|
@@ -5,9 +5,9 @@ const require_Container = require('../../Container/Container.cjs');
|
|
|
5
5
|
require('../../Container/index.cjs');
|
|
6
6
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
7
7
|
const require_useHandleKeyboard = require('../hooks/useHandleKeyboard.cjs');
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
8
|
let classnames = require("classnames");
|
|
10
9
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
|
|
12
12
|
//#region src/components/WidgetTextField/components/Container.tsx
|
|
13
13
|
const Container$1 = ({ id, testId, style, className, theme, minimalFrame, ariaLabel, icon, text, voiceInputButton, disabled, onClick }) => {
|
|
@@ -4,8 +4,8 @@ import { Container } from "../../Container/Container.js";
|
|
|
4
4
|
import "../../Container/index.js";
|
|
5
5
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { useHandleKeyboard } from "../hooks/useHandleKeyboard.js";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import classNames from "classnames";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/WidgetTextField/components/Container.tsx
|
|
11
11
|
const Container$1 = ({ id, testId, style, className, theme, minimalFrame, ariaLabel, icon, text, voiceInputButton, disabled, onClick }) => {
|
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
3
|
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
4
4
|
let react = require("react");
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
5
|
let classnames = require("classnames");
|
|
7
6
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
|
|
9
9
|
//#region src/components/WidgetTextField/components/Skeleton.tsx
|
|
10
10
|
const Skeleton = ({ theme = require_theme.Theme.GLOBAL_CUSTOM }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
2
|
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import classNames from "classnames";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/WidgetTextField/components/Skeleton.tsx
|
|
8
8
|
const Skeleton = ({ theme = Theme.GLOBAL_CUSTOM }) => {
|
|
@@ -4,9 +4,9 @@ require('../Container/index.cjs');
|
|
|
4
4
|
const require_utils_useCheckIsMobile = require('../utils/useCheckIsMobile.cjs');
|
|
5
5
|
const require_types = require('./types/types.cjs');
|
|
6
6
|
const require_useGetWrapperProperties = require('./hooks/useGetWrapperProperties.cjs');
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
7
|
let classnames = require("classnames");
|
|
9
8
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
|
|
11
11
|
//#region src/components/WidgetWrapper/WidgetWrapper.tsx
|
|
12
12
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapper/WidgetWrapper.d.ts
|
|
5
5
|
|
|
@@ -16,6 +16,6 @@ declare const WidgetWrapper: ({
|
|
|
16
16
|
className,
|
|
17
17
|
style,
|
|
18
18
|
...containerProps
|
|
19
|
-
}: WidgetWrapperProps) =>
|
|
19
|
+
}: WidgetWrapperProps) => react_jsx_runtime36.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { WidgetWrapper };
|
|
@@ -3,8 +3,8 @@ import "../Container/index.js";
|
|
|
3
3
|
import { useCheckIsMobile } from "../utils/useCheckIsMobile.js";
|
|
4
4
|
import { WidgetWrapperVariant } from "./types/types.js";
|
|
5
5
|
import { useGetWrapperProperties } from "./hooks/useGetWrapperProperties.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import classNames from "classnames";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/WidgetWrapper/WidgetWrapper.tsx
|
|
10
10
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperWithTitleProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
|
|
5
5
|
declare const WidgetWrapperWithTitle: ({
|
|
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
|
|
|
14
14
|
hexCardColor,
|
|
15
15
|
hideLogo,
|
|
16
16
|
fullIsLoading
|
|
17
|
-
}: WidgetWrapperWithTitleProps) =>
|
|
17
|
+
}: WidgetWrapperWithTitleProps) => react_jsx_runtime2.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperWithTitleProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
|
|
5
5
|
declare const WidgetWrapperWithTitle: ({
|
|
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
|
|
|
14
14
|
hexCardColor,
|
|
15
15
|
hideLogo,
|
|
16
16
|
fullIsLoading
|
|
17
|
-
}: WidgetWrapperWithTitleProps) =>
|
|
17
|
+
}: WidgetWrapperWithTitleProps) => react_jsx_runtime2.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_utils = require('../DesignTokens/components/utils.cjs');
|
|
2
1
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
2
|
+
const require_utils = require('../DesignTokens/components/utils.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/components/utils/resolveTheme.ts
|
|
5
5
|
const resolveTheme = (theme) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getComputedCSSVariable } from "../DesignTokens/components/utils.js";
|
|
2
1
|
import { Theme, ThemeCSSVar } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { getComputedCSSVariable } from "../DesignTokens/components/utils.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/utils/resolveTheme.ts
|
|
5
5
|
const resolveTheme = (theme) => {
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export const FloatingButton = ({
|
|
|
17
17
|
onMouseOver,
|
|
18
18
|
ariaLabel,
|
|
19
19
|
previewMode = false,
|
|
20
|
+
containerRef,
|
|
20
21
|
}: FloatingButtonProps) => {
|
|
21
22
|
const button = (
|
|
22
23
|
<FloatingButtonComponents.Button
|
|
@@ -37,6 +38,7 @@ export const FloatingButton = ({
|
|
|
37
38
|
|
|
38
39
|
return (
|
|
39
40
|
<FloatingButtonComponents.Container
|
|
41
|
+
containerRef={containerRef}
|
|
40
42
|
id={id}
|
|
41
43
|
testId={testId}
|
|
42
44
|
location={location}
|
|
@@ -13,6 +13,7 @@ export type ContainerProps = {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
style?: React.CSSProperties;
|
|
15
15
|
previewMode?: boolean;
|
|
16
|
+
containerRef?: React.RefObject<HTMLDivElement>;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
export const Container = ({
|
|
@@ -26,6 +27,7 @@ export const Container = ({
|
|
|
26
27
|
className = '',
|
|
27
28
|
style,
|
|
28
29
|
previewMode = false,
|
|
30
|
+
containerRef,
|
|
29
31
|
}: ContainerProps) => {
|
|
30
32
|
const { positionClasses, locationClasses, zIndexClass, shouldRender } = useGetContainerProperties(
|
|
31
33
|
location,
|
|
@@ -52,6 +54,7 @@ export const Container = ({
|
|
|
52
54
|
|
|
53
55
|
return (
|
|
54
56
|
<div
|
|
57
|
+
ref={containerRef}
|
|
55
58
|
id={id}
|
|
56
59
|
data-testid={testId}
|
|
57
60
|
className={allClasses}
|
|
@@ -50,6 +50,10 @@ export type FloatingButtonBackgroundColor = Extract<
|
|
|
50
50
|
* Props for the FloatingButton component.
|
|
51
51
|
*/
|
|
52
52
|
export type FloatingButtonProps = {
|
|
53
|
+
/**
|
|
54
|
+
* Ref forwarded to the outermost container div.
|
|
55
|
+
*/
|
|
56
|
+
containerRef?: React.RefObject<HTMLDivElement>;
|
|
53
57
|
/**
|
|
54
58
|
* Unique identifier for the floating button element.
|
|
55
59
|
*/
|
|
@@ -11,7 +11,7 @@ export type HeadlineProps = {
|
|
|
11
11
|
theme: Theme;
|
|
12
12
|
isLoading?: boolean;
|
|
13
13
|
className?: string;
|
|
14
|
-
socialProofCounter: string;
|
|
14
|
+
socialProofCounter: string | string[];
|
|
15
15
|
socialProofHeadline: string;
|
|
16
16
|
primaryPromptButtonText: string;
|
|
17
17
|
primaryPromptButtonVariant: PromptButtonVariant;
|
|
@@ -67,8 +67,11 @@ export const useSocialProofCount = ({
|
|
|
67
67
|
}, [pageVariant, countKey, id]);
|
|
68
68
|
|
|
69
69
|
// For safety ensure that the replacement string occurs in the string for now
|
|
70
|
-
const
|
|
71
|
-
? numberOfCustomersText
|
|
70
|
+
const numberOfCustomerString = Array.isArray(numberOfCustomersText)
|
|
71
|
+
? numberOfCustomersText[0]
|
|
72
|
+
: numberOfCustomersText;
|
|
73
|
+
const finalCustomerText = numberOfCustomerString.includes('{count}')
|
|
74
|
+
? numberOfCustomerString
|
|
72
75
|
: DEFAULT_CUSTOMER_TEXT;
|
|
73
76
|
return finalCustomerText.replace('{count}', customerCount.toString());
|
|
74
77
|
};
|