@envive-ai/react-toolkit-v3 0.3.11 → 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/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/components/Container.cjs +11 -3
- package/dist/Carousel/components/Container.js +12 -4
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/components/Layout.cjs +2 -8
- package/dist/ChatFooter/components/Layout.js +2 -8
- 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/useGetCloseButtonProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetCloseButtonProperties.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 +4 -3
- package/dist/ChatPreviewComparison/components/Layout.js +4 -3
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +178 -178
- package/dist/Container/Container.d.ts +8 -8
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.cjs +6 -3
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +6 -3
- package/dist/FloatingChat/hooks/useSnapSetup.cjs +10 -7
- package/dist/FloatingChat/hooks/useSnapSetup.js +10 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +3 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +3 -2
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.cjs +3 -3
- package/dist/FullPageSalesAgent/hooks/useContainerResizerObserver.js +3 -3
- package/dist/Image/Image.cjs +5 -0
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/Image/Image.js +5 -0
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.cjs +14 -27
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +3 -5
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +1 -3
- 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/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/components/Header.cjs +33 -7
- package/dist/ProductCard/components/Header.js +34 -8
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.cjs +19 -28
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +19 -28
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/index.d.cts +6 -6
- package/dist/ReviewCard/components/index.d.ts +4 -4
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +6 -6
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +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.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- 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/styles.css +1 -1
- package/dist/utils/useAnimatedTextMinHeight.cjs +28 -0
- package/dist/utils/useAnimatedTextMinHeight.js +27 -0
- package/package.json +1 -3
- package/src/components/Carousel/components/Container.tsx +15 -3
- package/src/components/ChatFooter/components/Layout.tsx +2 -14
- package/src/components/ChatHeader/hooks/useGetCloseButtonProperties.ts +1 -1
- package/src/components/ChatPreviewComparison/components/Layout.tsx +2 -2
- package/src/components/FloatingChat/FloatingChat.tsx +5 -2
- package/src/components/FloatingChat/hooks/useSnapSetup.ts +11 -4
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +6 -2
- package/src/components/FullPageSalesAgent/components/Layout.tsx +1 -1
- package/src/components/FullPageSalesAgent/hooks/useContainerResizerObserver.ts +4 -3
- package/src/components/FullPageSalesAgent/hooks/useIsMobile.ts +1 -1
- package/src/components/Image/Image.tsx +2 -0
- 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/PromptCarousel/PromptCarousel.tsx +29 -31
- package/src/components/TypingAnimation/TypingAnimation.tsx +68 -22
- package/src/components/utils/useAnimatedTextMinHeight.ts +29 -0
- package/dist/ChatFooter/hooks/useGetButtonScrollProperties.cjs +0 -18
- package/dist/ChatFooter/hooks/useGetButtonScrollProperties.js +0 -17
- 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,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -18,6 +18,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
18
18
|
handlePromptButtonClick,
|
|
19
19
|
textFieldPlaceholder,
|
|
20
20
|
handleTextFieldClick
|
|
21
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
21
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime5.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PromptButtonCarouselWithImage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -18,6 +18,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
18
18
|
handlePromptButtonClick,
|
|
19
19
|
textFieldPlaceholder,
|
|
20
20
|
handleTextFieldClick
|
|
21
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
21
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime11.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PromptButtonCarouselWithImage };
|
|
@@ -54,14 +54,17 @@ const PromptCarousel = ({ id, theme = require_theme.Theme.GLOBAL_CUSTOM, testId,
|
|
|
54
54
|
const textWithoutSpaces = require_functions.removeSpaces(text);
|
|
55
55
|
const buttonId = duplicateIndex > 0 ? `${id}-${textWithoutSpaces}-duplicate-${duplicateIndex}` : `${id}-${textWithoutSpaces}`;
|
|
56
56
|
const buttonKey = `button-${buttonId}`;
|
|
57
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
58
|
+
className: "envive-tw-flex-shrink-0",
|
|
59
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PromptButton.PromptButton, {
|
|
60
|
+
id: buttonId,
|
|
61
|
+
label: text,
|
|
62
|
+
variant: promptButtonType,
|
|
63
|
+
theme: finalTheme,
|
|
64
|
+
isLoading,
|
|
65
|
+
bold: boldFirstButton && index === 0 && duplicateIndex === 0,
|
|
66
|
+
onClick: () => handleButtonClick?.(text)
|
|
67
|
+
})
|
|
65
68
|
}, buttonKey);
|
|
66
69
|
}, [
|
|
67
70
|
id,
|
|
@@ -93,37 +96,25 @@ const PromptCarousel = ({ id, theme = require_theme.Theme.GLOBAL_CUSTOM, testId,
|
|
|
93
96
|
className: animationSpeed === require_PromptCarousel_types_types.AnimationSpeed.NONE ? "envive-tw-w-full" : "",
|
|
94
97
|
gap: "2",
|
|
95
98
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
96
|
-
className: "envive-tw-no-scrollbar envive-tw-relative envive-tw-w-full envive-tw-overflow-x-scroll",
|
|
97
99
|
ref: setRef1,
|
|
100
|
+
className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-2 envive-tw-overflow-x-auto",
|
|
98
101
|
style: {
|
|
102
|
+
scrollbarWidth: "none",
|
|
103
|
+
msOverflowStyle: "none",
|
|
99
104
|
cursor: "grab",
|
|
100
105
|
userSelect: "none"
|
|
101
106
|
},
|
|
102
|
-
children:
|
|
103
|
-
className: "envive-tw-relative envive-tw-inline-block envive-tw-whitespace-nowrap",
|
|
104
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Stack.Stack, {
|
|
105
|
-
direction: "row",
|
|
106
|
-
gap: "2",
|
|
107
|
-
className: "envive-tw-pl-0 envive-tw-h-full envive-tw-items-center",
|
|
108
|
-
children: renderButtonRow(visibleButtonsFirstRow, 0)
|
|
109
|
-
})
|
|
110
|
-
})
|
|
107
|
+
children: renderButtonRow(visibleButtonsFirstRow, 0)
|
|
111
108
|
}), shouldShowTwoRowsValue && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
112
|
-
className: "envive-tw-no-scrollbar envive-tw-relative envive-tw-w-full envive-tw-overflow-x-scroll",
|
|
113
109
|
ref: setRef2,
|
|
110
|
+
className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-2 envive-tw-overflow-x-auto",
|
|
114
111
|
style: {
|
|
112
|
+
scrollbarWidth: "none",
|
|
113
|
+
msOverflowStyle: "none",
|
|
115
114
|
cursor: "grab",
|
|
116
115
|
userSelect: "none"
|
|
117
116
|
},
|
|
118
|
-
children:
|
|
119
|
-
className: "envive-tw-relative envive-tw-inline-block envive-tw-whitespace-nowrap",
|
|
120
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Stack.Stack, {
|
|
121
|
-
direction: "row",
|
|
122
|
-
gap: "2",
|
|
123
|
-
className: "envive-tw-pl-0 envive-tw-h-full envive-tw-items-center",
|
|
124
|
-
children: renderButtonRow(visibleButtonsSecondRow, visibleButtonsFirstRow.length)
|
|
125
|
-
})
|
|
126
|
-
})
|
|
117
|
+
children: renderButtonRow(visibleButtonsSecondRow, visibleButtonsFirstRow.length)
|
|
127
118
|
})]
|
|
128
119
|
})
|
|
129
120
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptCarouselProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptCarousel/PromptCarousel.d.ts
|
|
5
5
|
declare const PromptCarousel: ({
|
|
@@ -19,6 +19,6 @@ declare const PromptCarousel: ({
|
|
|
19
19
|
"aria-labelledby": ariaLabelledBy,
|
|
20
20
|
"aria-describedby": ariaDescribedBy,
|
|
21
21
|
role
|
|
22
|
-
}: PromptCarouselProps) =>
|
|
22
|
+
}: PromptCarouselProps) => react_jsx_runtime4.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { PromptCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptCarouselProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptCarousel/PromptCarousel.d.ts
|
|
5
5
|
declare const PromptCarousel: ({
|
|
@@ -19,6 +19,6 @@ declare const PromptCarousel: ({
|
|
|
19
19
|
"aria-labelledby": ariaLabelledBy,
|
|
20
20
|
"aria-describedby": ariaDescribedBy,
|
|
21
21
|
role
|
|
22
|
-
}: PromptCarouselProps) =>
|
|
22
|
+
}: PromptCarouselProps) => react_jsx_runtime12.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { PromptCarousel };
|
|
@@ -53,14 +53,17 @@ const PromptCarousel = ({ id, theme = Theme.GLOBAL_CUSTOM, testId, className, st
|
|
|
53
53
|
const textWithoutSpaces = removeSpaces(text);
|
|
54
54
|
const buttonId = duplicateIndex > 0 ? `${id}-${textWithoutSpaces}-duplicate-${duplicateIndex}` : `${id}-${textWithoutSpaces}`;
|
|
55
55
|
const buttonKey = `button-${buttonId}`;
|
|
56
|
-
return /* @__PURE__ */ jsx(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
return /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: "envive-tw-flex-shrink-0",
|
|
58
|
+
children: /* @__PURE__ */ jsx(PromptButton, {
|
|
59
|
+
id: buttonId,
|
|
60
|
+
label: text,
|
|
61
|
+
variant: promptButtonType,
|
|
62
|
+
theme: finalTheme,
|
|
63
|
+
isLoading,
|
|
64
|
+
bold: boldFirstButton && index === 0 && duplicateIndex === 0,
|
|
65
|
+
onClick: () => handleButtonClick?.(text)
|
|
66
|
+
})
|
|
64
67
|
}, buttonKey);
|
|
65
68
|
}, [
|
|
66
69
|
id,
|
|
@@ -92,37 +95,25 @@ const PromptCarousel = ({ id, theme = Theme.GLOBAL_CUSTOM, testId, className, st
|
|
|
92
95
|
className: animationSpeed === AnimationSpeed.NONE ? "envive-tw-w-full" : "",
|
|
93
96
|
gap: "2",
|
|
94
97
|
children: [/* @__PURE__ */ jsx("div", {
|
|
95
|
-
className: "envive-tw-no-scrollbar envive-tw-relative envive-tw-w-full envive-tw-overflow-x-scroll",
|
|
96
98
|
ref: setRef1,
|
|
99
|
+
className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-2 envive-tw-overflow-x-auto",
|
|
97
100
|
style: {
|
|
101
|
+
scrollbarWidth: "none",
|
|
102
|
+
msOverflowStyle: "none",
|
|
98
103
|
cursor: "grab",
|
|
99
104
|
userSelect: "none"
|
|
100
105
|
},
|
|
101
|
-
children:
|
|
102
|
-
className: "envive-tw-relative envive-tw-inline-block envive-tw-whitespace-nowrap",
|
|
103
|
-
children: /* @__PURE__ */ jsx(Stack, {
|
|
104
|
-
direction: "row",
|
|
105
|
-
gap: "2",
|
|
106
|
-
className: "envive-tw-pl-0 envive-tw-h-full envive-tw-items-center",
|
|
107
|
-
children: renderButtonRow(visibleButtonsFirstRow, 0)
|
|
108
|
-
})
|
|
109
|
-
})
|
|
106
|
+
children: renderButtonRow(visibleButtonsFirstRow, 0)
|
|
110
107
|
}), shouldShowTwoRowsValue && /* @__PURE__ */ jsx("div", {
|
|
111
|
-
className: "envive-tw-no-scrollbar envive-tw-relative envive-tw-w-full envive-tw-overflow-x-scroll",
|
|
112
108
|
ref: setRef2,
|
|
109
|
+
className: "[&::-webkit-scrollbar]:hidden envive-tw-flex envive-tw-gap-2 envive-tw-overflow-x-auto",
|
|
113
110
|
style: {
|
|
111
|
+
scrollbarWidth: "none",
|
|
112
|
+
msOverflowStyle: "none",
|
|
114
113
|
cursor: "grab",
|
|
115
114
|
userSelect: "none"
|
|
116
115
|
},
|
|
117
|
-
children:
|
|
118
|
-
className: "envive-tw-relative envive-tw-inline-block envive-tw-whitespace-nowrap",
|
|
119
|
-
children: /* @__PURE__ */ jsx(Stack, {
|
|
120
|
-
direction: "row",
|
|
121
|
-
gap: "2",
|
|
122
|
-
className: "envive-tw-pl-0 envive-tw-h-full envive-tw-items-center",
|
|
123
|
-
children: renderButtonRow(visibleButtonsSecondRow, visibleButtonsFirstRow.length)
|
|
124
|
-
})
|
|
125
|
-
})
|
|
116
|
+
children: renderButtonRow(visibleButtonsSecondRow, visibleButtonsFirstRow.length)
|
|
126
117
|
})]
|
|
127
118
|
})
|
|
128
119
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReviewCardProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ReviewCard/ReviewCard.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const ReviewCard: ({
|
|
|
25
25
|
readMoreLabel,
|
|
26
26
|
readLessLabel,
|
|
27
27
|
verifiedBuyerLabel
|
|
28
|
-
}: ReviewCardProps) =>
|
|
28
|
+
}: ReviewCardProps) => react_jsx_runtime13.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ReviewCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReviewCardProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ReviewCard/ReviewCard.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const ReviewCard: ({
|
|
|
25
25
|
readMoreLabel,
|
|
26
26
|
readLessLabel,
|
|
27
27
|
verifiedBuyerLabel
|
|
28
|
-
}: ReviewCardProps) =>
|
|
28
|
+
}: ReviewCardProps) => react_jsx_runtime13.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ReviewCard };
|
|
@@ -2,8 +2,8 @@ import { Theme } from "../../tokens/theme/theme.cjs";
|
|
|
2
2
|
import { ContainerProps } from "./Container.cjs";
|
|
3
3
|
import { RatingProps } from "./Rating.cjs";
|
|
4
4
|
import { ReadMoreButtonProps } from "./ReadMoreButton.cjs";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as react7 from "react";
|
|
6
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ReviewCard/components/index.d.ts
|
|
9
9
|
declare const ReviewCardComponents: {
|
|
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
|
|
|
31
31
|
verifiedBuyerLabel?: string;
|
|
32
32
|
className?: string;
|
|
33
33
|
style?: React.CSSProperties;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => react_jsx_runtime14.JSX.Element;
|
|
35
35
|
Rating: ({
|
|
36
36
|
rating,
|
|
37
37
|
theme,
|
|
38
38
|
style
|
|
39
|
-
}: RatingProps) =>
|
|
39
|
+
}: RatingProps) => react_jsx_runtime14.JSX.Element;
|
|
40
40
|
StarIcon: ({
|
|
41
41
|
theme,
|
|
42
42
|
style,
|
|
@@ -45,7 +45,7 @@ declare const ReviewCardComponents: {
|
|
|
45
45
|
theme: Theme;
|
|
46
46
|
style?: React.CSSProperties;
|
|
47
47
|
className?: string;
|
|
48
|
-
}) =>
|
|
48
|
+
}) => react7.ReactElement<react7.SVGProps<SVGSVGElement>, string | react7.JSXElementConstructor<any>>;
|
|
49
49
|
ReviewText: ({
|
|
50
50
|
reviewText,
|
|
51
51
|
isExpanded,
|
|
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
|
|
|
56
56
|
isExpanded: boolean;
|
|
57
57
|
className?: string;
|
|
58
58
|
style?: React.CSSProperties;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => react_jsx_runtime14.JSX.Element;
|
|
60
60
|
ReadMoreButton: ({
|
|
61
61
|
isExpanded,
|
|
62
62
|
onToggle,
|
|
@@ -3,7 +3,7 @@ import { ContainerProps } from "./Container.js";
|
|
|
3
3
|
import { RatingProps } from "./Rating.js";
|
|
4
4
|
import { ReadMoreButtonProps } from "./ReadMoreButton.js";
|
|
5
5
|
import * as react7 from "react";
|
|
6
|
-
import * as
|
|
6
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ReviewCard/components/index.d.ts
|
|
9
9
|
declare const ReviewCardComponents: {
|
|
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
|
|
|
31
31
|
verifiedBuyerLabel?: string;
|
|
32
32
|
className?: string;
|
|
33
33
|
style?: React.CSSProperties;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => react_jsx_runtime14.JSX.Element;
|
|
35
35
|
Rating: ({
|
|
36
36
|
rating,
|
|
37
37
|
theme,
|
|
38
38
|
style
|
|
39
|
-
}: RatingProps) =>
|
|
39
|
+
}: RatingProps) => react_jsx_runtime14.JSX.Element;
|
|
40
40
|
StarIcon: ({
|
|
41
41
|
theme,
|
|
42
42
|
style,
|
|
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
|
|
|
56
56
|
isExpanded: boolean;
|
|
57
57
|
className?: string;
|
|
58
58
|
style?: React.CSSProperties;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => react_jsx_runtime14.JSX.Element;
|
|
60
60
|
ReadMoreButton: ({
|
|
61
61
|
isExpanded,
|
|
62
62
|
onToggle,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SalesAgentProductCardProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
|
|
5
5
|
|
|
@@ -30,6 +30,6 @@ declare const SalesAgentProductCard: ({
|
|
|
30
30
|
url,
|
|
31
31
|
target,
|
|
32
32
|
onClick
|
|
33
|
-
}: SalesAgentProductCardProps) =>
|
|
33
|
+
}: SalesAgentProductCardProps) => react_jsx_runtime11.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SalesAgentProductCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SalesAgentProductCardProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
|
|
5
5
|
|
|
@@ -30,6 +30,6 @@ declare const SalesAgentProductCard: ({
|
|
|
30
30
|
url,
|
|
31
31
|
target,
|
|
32
32
|
onClick
|
|
33
|
-
}: SalesAgentProductCardProps) =>
|
|
33
|
+
}: SalesAgentProductCardProps) => react_jsx_runtime4.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SalesAgentProductCard };
|
|
@@ -4,8 +4,8 @@ import { ProductNameProps } from "./ProductName.cjs";
|
|
|
4
4
|
import { PriceProps } from "./Price.cjs";
|
|
5
5
|
import { RateProps } from "./Rate.cjs";
|
|
6
6
|
import { ProductImageProps } from "./ProductImage.cjs";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
7
|
+
import * as react2 from "react";
|
|
8
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/SalesAgentProductCard/components/index.d.ts
|
|
11
11
|
declare const SalesAgentProductCardComponents: {
|
|
@@ -23,24 +23,24 @@ declare const SalesAgentProductCardComponents: {
|
|
|
23
23
|
url,
|
|
24
24
|
target,
|
|
25
25
|
onClick
|
|
26
|
-
}: ContainerProps) =>
|
|
26
|
+
}: ContainerProps) => react_jsx_runtime6.JSX.Element;
|
|
27
27
|
ProductName: ({
|
|
28
28
|
label,
|
|
29
29
|
theme,
|
|
30
30
|
style,
|
|
31
31
|
className
|
|
32
|
-
}: ProductNameProps) =>
|
|
32
|
+
}: ProductNameProps) => react_jsx_runtime6.JSX.Element;
|
|
33
33
|
Price: ({
|
|
34
34
|
previousPrice,
|
|
35
35
|
currentPrice,
|
|
36
36
|
pricePrefix,
|
|
37
37
|
forceShowCurrentPriceSpace
|
|
38
|
-
}: PriceProps) =>
|
|
38
|
+
}: PriceProps) => react_jsx_runtime6.JSX.Element;
|
|
39
39
|
Rate: ({
|
|
40
40
|
rate,
|
|
41
41
|
numberOfReviews,
|
|
42
42
|
theme
|
|
43
|
-
}: RateProps) =>
|
|
43
|
+
}: RateProps) => react_jsx_runtime6.JSX.Element;
|
|
44
44
|
ProductImage: ({
|
|
45
45
|
src,
|
|
46
46
|
alt,
|
|
@@ -48,14 +48,14 @@ declare const SalesAgentProductCardComponents: {
|
|
|
48
48
|
aspectRatio,
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: ProductImageProps) =>
|
|
51
|
+
}: ProductImageProps) => react_jsx_runtime6.JSX.Element;
|
|
52
52
|
StarIcon: ({
|
|
53
53
|
theme,
|
|
54
54
|
style
|
|
55
55
|
}: {
|
|
56
56
|
theme: Theme;
|
|
57
57
|
style?: React.CSSProperties;
|
|
58
|
-
}) =>
|
|
58
|
+
}) => react2.ReactElement<react2.SVGProps<SVGSVGElement>, string | react2.JSXElementConstructor<any>>;
|
|
59
59
|
};
|
|
60
60
|
//#endregion
|
|
61
61
|
export { SalesAgentProductCardComponents };
|
|
@@ -5,7 +5,7 @@ import { PriceProps } from "./Price.js";
|
|
|
5
5
|
import { RateProps } from "./Rate.js";
|
|
6
6
|
import { ProductImageProps } from "./ProductImage.js";
|
|
7
7
|
import * as react4 from "react";
|
|
8
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/SalesAgentProductCard/components/index.d.ts
|
|
11
11
|
declare const SalesAgentProductCardComponents: {
|
|
@@ -23,24 +23,24 @@ declare const SalesAgentProductCardComponents: {
|
|
|
23
23
|
url,
|
|
24
24
|
target,
|
|
25
25
|
onClick
|
|
26
|
-
}: ContainerProps) =>
|
|
26
|
+
}: ContainerProps) => react_jsx_runtime5.JSX.Element;
|
|
27
27
|
ProductName: ({
|
|
28
28
|
label,
|
|
29
29
|
theme,
|
|
30
30
|
style,
|
|
31
31
|
className
|
|
32
|
-
}: ProductNameProps) =>
|
|
32
|
+
}: ProductNameProps) => react_jsx_runtime5.JSX.Element;
|
|
33
33
|
Price: ({
|
|
34
34
|
previousPrice,
|
|
35
35
|
currentPrice,
|
|
36
36
|
pricePrefix,
|
|
37
37
|
forceShowCurrentPriceSpace
|
|
38
|
-
}: PriceProps) =>
|
|
38
|
+
}: PriceProps) => react_jsx_runtime5.JSX.Element;
|
|
39
39
|
Rate: ({
|
|
40
40
|
rate,
|
|
41
41
|
numberOfReviews,
|
|
42
42
|
theme
|
|
43
|
-
}: RateProps) =>
|
|
43
|
+
}: RateProps) => react_jsx_runtime5.JSX.Element;
|
|
44
44
|
ProductImage: ({
|
|
45
45
|
src,
|
|
46
46
|
alt,
|
|
@@ -48,7 +48,7 @@ declare const SalesAgentProductCardComponents: {
|
|
|
48
48
|
aspectRatio,
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: ProductImageProps) =>
|
|
51
|
+
}: ProductImageProps) => react_jsx_runtime5.JSX.Element;
|
|
52
52
|
StarIcon: ({
|
|
53
53
|
theme,
|
|
54
54
|
style
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SocialProofProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SocialProof/SocialProof.d.ts
|
|
5
5
|
declare const SocialProof: ({
|
|
@@ -7,6 +7,6 @@ declare const SocialProof: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: SocialProofProps) =>
|
|
10
|
+
}: SocialProofProps) => react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SocialProof };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SocialProofProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SocialProof/SocialProof.d.ts
|
|
5
5
|
declare const SocialProof: ({
|
|
@@ -7,6 +7,6 @@ declare const SocialProof: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: SocialProofProps) =>
|
|
10
|
+
}: SocialProofProps) => react_jsx_runtime10.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SocialProof };
|
package/dist/Stack/Stack.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StackProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react2 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Stack/Stack.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Stack component for laying out children in a flexible container with gap.
|
|
7
7
|
*/
|
|
8
|
-
declare const Stack:
|
|
8
|
+
declare const Stack: react2.ForwardRefExoticComponent<StackProps & react2.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Stack };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.d.ts
|
|
5
5
|
declare const TitledPromptCarousel: ({
|
|
@@ -15,6 +15,6 @@ declare const TitledPromptCarousel: ({
|
|
|
15
15
|
handleButtonClick,
|
|
16
16
|
promptButtonTexts,
|
|
17
17
|
promptCarouselAriaLabel
|
|
18
|
-
}: TitledPromptCarouselProps) =>
|
|
18
|
+
}: TitledPromptCarouselProps) => react_jsx_runtime1.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { TitledPromptCarousel };
|
|
@@ -17,6 +17,7 @@ const require_WidgetTextField = require('../WidgetTextField/WidgetTextField.cjs'
|
|
|
17
17
|
require('../WidgetTextField/index.cjs');
|
|
18
18
|
require('../WidgetWrapper/index.cjs');
|
|
19
19
|
const require_WidgetWrapperWithTitle = require('../WidgetWrapperWithTitle/WidgetWrapperWithTitle.cjs');
|
|
20
|
+
const require_useAnimatedTextMinHeight = require('../utils/useAnimatedTextMinHeight.cjs');
|
|
20
21
|
require('../WidgetWrapperWithTitle/index.cjs');
|
|
21
22
|
const require_useGetTypographyVariant = require('./hooks/useGetTypographyVariant.cjs');
|
|
22
23
|
let react = require("react");
|
|
@@ -29,6 +30,11 @@ const TypingAnimation = ({ baseProps, widgetContentProps, widgetStyleProps, widg
|
|
|
29
30
|
const { widgetVariant = require_types.WidgetWrapperVariant.CARD_WITH_BORDER, cardColor, promptButtonType = require_PromptButton_types_index.PromptButtonVariant.LIGHT, promptCarouselRows = require_PromptCarousel_types_types.PromptCarouselRows.ALWAYS_ONE, showTextField = true, theme = require_theme.Theme.GLOBAL_CUSTOM, isLoading = false } = widgetStyleProps || {};
|
|
30
31
|
const { handleButtonClick, handleTextFieldClick } = widgetEventProps || {};
|
|
31
32
|
const typographyVariant = require_useGetTypographyVariant.useGetTypographyVariant(theme);
|
|
33
|
+
const { measuringRef, minHeight } = require_useAnimatedTextMinHeight.useAnimatedTextMinHeight(animatedTextSequence ?? []);
|
|
34
|
+
const biggestAnimatedText = (0, react.useMemo)(() => {
|
|
35
|
+
if (!animatedTextSequence || animatedTextSequence.length === 0) return "";
|
|
36
|
+
return animatedTextSequence.reduce((maxText, currText) => currText.length > maxText.length ? currText : maxText, "");
|
|
37
|
+
}, [animatedTextSequence]);
|
|
32
38
|
const getAnimatedTextWrapper = (0, react.useCallback)((text) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
33
39
|
variant: typographyVariant,
|
|
34
40
|
color: require_index.TypographyColor.TEXT_ACCENT,
|
|
@@ -48,24 +54,58 @@ const TypingAnimation = ({ baseProps, widgetContentProps, widgetStyleProps, widg
|
|
|
48
54
|
direction: "column",
|
|
49
55
|
gap: "4",
|
|
50
56
|
children: [
|
|
51
|
-
(headlineText || animatedTextSequence && animatedTextSequence.length > 0) && !isLoading && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
(headlineText || animatedTextSequence && animatedTextSequence.length > 0) && !isLoading && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
58
|
+
style: { position: "relative" },
|
|
59
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
60
|
+
ref: measuringRef,
|
|
61
|
+
"aria-hidden": "true",
|
|
62
|
+
style: {
|
|
63
|
+
position: "absolute",
|
|
64
|
+
visibility: "hidden",
|
|
65
|
+
pointerEvents: "none",
|
|
66
|
+
width: "100%"
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
69
|
+
className: "envive-tw-max-w-[90ch]",
|
|
70
|
+
style: { textAlign: "left" },
|
|
71
|
+
children: [
|
|
72
|
+
headlineText && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
73
|
+
variant: typographyVariant,
|
|
74
|
+
color: require_index.TypographyColor.TEXT_PRIMARY,
|
|
75
|
+
as: "span",
|
|
76
|
+
children: headlineText
|
|
77
|
+
}),
|
|
78
|
+
" ",
|
|
79
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
80
|
+
variant: typographyVariant,
|
|
81
|
+
color: require_index.TypographyColor.TEXT_ACCENT,
|
|
82
|
+
as: "span",
|
|
83
|
+
children: biggestAnimatedText
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
})
|
|
87
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
88
|
+
style: { minHeight },
|
|
89
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
90
|
+
"data-testid": "typing-animation-headline-text",
|
|
91
|
+
className: "envive-tw-max-w-[90ch]",
|
|
92
|
+
style: { textAlign: "left" },
|
|
93
|
+
children: [
|
|
94
|
+
headlineText && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
95
|
+
variant: typographyVariant,
|
|
96
|
+
color: require_index.TypographyColor.TEXT_PRIMARY,
|
|
97
|
+
as: "span",
|
|
98
|
+
children: headlineText
|
|
99
|
+
}),
|
|
100
|
+
" ",
|
|
101
|
+
animatedTextSequence && animatedTextSequence.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AnimatedText.AnimatedText, {
|
|
102
|
+
sequence: animatedTextSequence,
|
|
103
|
+
loop: true,
|
|
104
|
+
getNodeWrapper: getAnimatedTextWrapper
|
|
105
|
+
}) : null
|
|
106
|
+
]
|
|
107
|
+
})
|
|
108
|
+
})]
|
|
69
109
|
}),
|
|
70
110
|
promptButtonTexts && promptButtonTexts.length > 0 && handleButtonClick && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PromptCarousel.PromptCarousel, {
|
|
71
111
|
id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypingAnimationProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime34 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_runtime34.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 };
|