@envive-ai/react-toolkit-v3 0.3.23 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnimatedText/AnimatedText.d.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +5 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/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/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/Container/Container.d.cts +2 -2
- package/dist/Container/Container.d.ts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- 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/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.cjs +5 -0
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +5 -0
- package/dist/FloatingChat/components/SlideChatContent.cjs +1 -1
- package/dist/FloatingChat/components/SlideChatContent.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +5 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +5 -0
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/hooks/useCarouselButtons.cjs +3 -2
- package/dist/PromptCarousel/hooks/useCarouselButtons.js +3 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- 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 +8 -8
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- 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/hooks/useVoiceInput.cjs +8 -15
- package/dist/TextField/hooks/useVoiceInput.js +8 -15
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WidgetTextField/WidgetTextField.cjs +1 -1
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/Disclaimer/components/Container.tsx +1 -1
- package/src/components/FloatingChat/FloatingChat.tsx +5 -0
- package/src/components/FloatingChat/components/SlideChatContent.tsx +1 -1
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +11 -6
- package/src/components/PromptCarousel/__tests__/PromptCarousel.test.tsx +19 -0
- package/src/components/PromptCarousel/hooks/useCarouselButtons.ts +4 -2
- package/src/components/TextField/hooks/useVoiceInput.ts +11 -13
- package/src/components/WidgetTextField/WidgetTextField.tsx +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
3
|
import { FloatingChatConfig, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
@@ -21,6 +21,6 @@ declare const FullPageSalesAgent: ({
|
|
|
21
21
|
headerContainer,
|
|
22
22
|
autoHeight,
|
|
23
23
|
voiceInputEnabled
|
|
24
|
-
}: FullPageSalesAgentProps) =>
|
|
24
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime6.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { FullPageSalesAgent };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
2
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
3
|
import "../Tokens/index.js";
|
|
4
|
+
import { useSetAtom } from "../node_modules/jotai/esm/react.js";
|
|
4
5
|
import { usePromptCarouselAnalytics } from "../PromptCarousel/hooks/usePromptCarouselAnalytics.js";
|
|
5
6
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
6
7
|
import "../PromptButton/index.js";
|
|
@@ -26,6 +27,7 @@ import { FullPageSAComponents } from "./components/index.js";
|
|
|
26
27
|
import { useGetMessagesStyles } from "./hooks/useGetMessagesStyles.js";
|
|
27
28
|
import { useCallback, useRef, useState } from "react";
|
|
28
29
|
import { jsx } from "react/jsx-runtime";
|
|
30
|
+
import { listeningToSpeechAtom } from "@envive-ai/react-hooks/atoms/chat";
|
|
29
31
|
import { EnviveMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
|
|
30
32
|
import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
|
|
31
33
|
import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
|
|
@@ -44,6 +46,7 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
|
|
|
44
46
|
const { isMobile } = useIsMobile();
|
|
45
47
|
const { trackWidgetInteraction } = useWidgetInteraction();
|
|
46
48
|
const { onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = usePromptCarouselAnalytics(WidgetInteractionComponent.FULL_PAGE_SALES_AGENT, (text) => text);
|
|
49
|
+
const setListeningToSpeech = useSetAtom(listeningToSpeechAtom);
|
|
47
50
|
const { welcomeMessageIconColor, ignoreFirstModelResponse, neverShowSingleProductCards, showVerifiedBuyer, showEnviveLogo, userQueryInputEnabled = true } = floatingChatConfig;
|
|
48
51
|
const { agentName } = lookAndFeelConfig;
|
|
49
52
|
const { welcomeMessageTitle, welcomeMessageText, chatFooterTextFieldPlaceholderText, disclaimerText } = hardcopyContent?.values ?? {};
|
|
@@ -130,6 +133,7 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
|
|
|
130
133
|
handleButtonClick: (buttonText) => {
|
|
131
134
|
const suggestion = suggestions.find((s) => s.content === buttonText && !s.isAnswer);
|
|
132
135
|
if (suggestion) onSuggestionClicked(suggestion, ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
136
|
+
setListeningToSpeech("abort");
|
|
133
137
|
setAnswerSuggestions([]);
|
|
134
138
|
setGeneralSuggestions([]);
|
|
135
139
|
handleBackToChat();
|
|
@@ -188,6 +192,7 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
|
|
|
188
192
|
handleButtonClick: (buttonText) => {
|
|
189
193
|
const suggestion = suggestions.find((s) => s.content === buttonText && s.isAnswer);
|
|
190
194
|
if (suggestion) onSuggestionClicked(suggestion, ChatElementDisplayLocationV3.FLOATING_CHAT_PROMPT_BUTTON);
|
|
195
|
+
setListeningToSpeech("abort");
|
|
191
196
|
setAnswerSuggestions([]);
|
|
192
197
|
setGeneralSuggestions([]);
|
|
193
198
|
},
|
package/dist/Image/Image.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Image/Image.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const Image: ({
|
|
|
25
25
|
role,
|
|
26
26
|
"aria-hidden": ariaHidden,
|
|
27
27
|
...rest
|
|
28
|
-
}: ImageProps) =>
|
|
28
|
+
}: ImageProps) => react_jsx_runtime20.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Image };
|
package/dist/Image/Image.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Image/Image.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const Image: ({
|
|
|
25
25
|
role,
|
|
26
26
|
"aria-hidden": ariaHidden,
|
|
27
27
|
...rest
|
|
28
|
-
}: ImageProps) =>
|
|
28
|
+
}: ImageProps) => react_jsx_runtime15.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Image };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageGalleryProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageGallery/ImageGallery.d.ts
|
|
5
5
|
|
|
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
|
|
|
40
40
|
"aria-describedby": ariaDescribedBy,
|
|
41
41
|
role,
|
|
42
42
|
"aria-hidden": ariaHidden
|
|
43
|
-
}: ImageGalleryProps) =>
|
|
43
|
+
}: ImageGalleryProps) => react_jsx_runtime23.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageGalleryProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageGallery/ImageGallery.d.ts
|
|
5
5
|
|
|
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
|
|
|
40
40
|
"aria-describedby": ariaDescribedBy,
|
|
41
41
|
role,
|
|
42
42
|
"aria-hidden": ariaHidden
|
|
43
|
-
}: ImageGalleryProps) =>
|
|
43
|
+
}: ImageGalleryProps) => react_jsx_runtime26.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -8,6 +8,6 @@ declare const MarkdownProcessor: ({
|
|
|
8
8
|
textColor,
|
|
9
9
|
textVariant,
|
|
10
10
|
onLinkClick
|
|
11
|
-
}: MarkdownProcessorProps) =>
|
|
11
|
+
}: MarkdownProcessorProps) => react_jsx_runtime22.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { MarkdownProcessor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -8,6 +8,6 @@ declare const MarkdownProcessor: ({
|
|
|
8
8
|
textColor,
|
|
9
9
|
textVariant,
|
|
10
10
|
onLinkClick
|
|
11
|
-
}: MarkdownProcessorProps) =>
|
|
11
|
+
}: MarkdownProcessorProps) => react_jsx_runtime18.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { MarkdownProcessor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
@@ -27,6 +27,6 @@ declare const ProductCard: ({
|
|
|
27
27
|
onInputClick,
|
|
28
28
|
onTranscriptionStarted,
|
|
29
29
|
onTranscriptionCompleted
|
|
30
|
-
}: ProductCardProps) =>
|
|
30
|
+
}: ProductCardProps) => react_jsx_runtime16.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ProductCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
@@ -27,6 +27,6 @@ declare const ProductCard: ({
|
|
|
27
27
|
onInputClick,
|
|
28
28
|
onTranscriptionStarted,
|
|
29
29
|
onTranscriptionCompleted
|
|
30
|
-
}: ProductCardProps) =>
|
|
30
|
+
}: ProductCardProps) => react_jsx_runtime17.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ProductCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -22,6 +22,6 @@ declare const PromptButton: ({
|
|
|
22
22
|
onTouchEnd,
|
|
23
23
|
ariaLabel,
|
|
24
24
|
ariaDescribedBy
|
|
25
|
-
}: PromptButtonProps) =>
|
|
25
|
+
}: PromptButtonProps) => react_jsx_runtime31.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PromptButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -22,6 +22,6 @@ declare const PromptButton: ({
|
|
|
22
22
|
onTouchEnd,
|
|
23
23
|
ariaLabel,
|
|
24
24
|
ariaDescribedBy
|
|
25
|
-
}: PromptButtonProps) =>
|
|
25
|
+
}: PromptButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PromptButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -27,6 +27,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
27
27
|
handleTextFieldClick,
|
|
28
28
|
onTranscriptionStarted,
|
|
29
29
|
onTranscriptionCompleted
|
|
30
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
30
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime2.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { PromptButtonCarouselWithImage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -27,6 +27,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
27
27
|
handleTextFieldClick,
|
|
28
28
|
onTranscriptionStarted,
|
|
29
29
|
onTranscriptionCompleted
|
|
30
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
30
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime19.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { PromptButtonCarouselWithImage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptCarouselProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptCarousel/PromptCarousel.d.ts
|
|
5
5
|
declare const PromptCarousel: ({
|
|
@@ -26,6 +26,6 @@ declare const PromptCarousel: ({
|
|
|
26
26
|
"aria-labelledby": ariaLabelledBy,
|
|
27
27
|
"aria-describedby": ariaDescribedBy,
|
|
28
28
|
role
|
|
29
|
-
}: PromptCarouselProps) =>
|
|
29
|
+
}: PromptCarouselProps) => react_jsx_runtime15.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { PromptCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptCarouselProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptCarousel/PromptCarousel.d.ts
|
|
5
5
|
declare const PromptCarousel: ({
|
|
@@ -26,6 +26,6 @@ declare const PromptCarousel: ({
|
|
|
26
26
|
"aria-labelledby": ariaLabelledBy,
|
|
27
27
|
"aria-describedby": ariaDescribedBy,
|
|
28
28
|
role
|
|
29
|
-
}: PromptCarouselProps) =>
|
|
29
|
+
}: PromptCarouselProps) => react_jsx_runtime21.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { PromptCarousel };
|
|
@@ -2,15 +2,16 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
let react = require("react");
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptCarousel/hooks/useCarouselButtons.ts
|
|
5
|
+
const getFirstRowCount = (length) => Math.ceil(length / 2);
|
|
5
6
|
const useCarouselButtons = ({ promptButtonTexts, shouldShowTwoRows }) => {
|
|
6
7
|
return {
|
|
7
8
|
visibleButtonsFirstRow: (0, react.useMemo)(() => {
|
|
8
9
|
if (!Array.isArray(promptButtonTexts)) return [];
|
|
9
|
-
return shouldShowTwoRows ? promptButtonTexts.slice(0,
|
|
10
|
+
return shouldShowTwoRows ? promptButtonTexts.slice(0, getFirstRowCount(promptButtonTexts.length)) : promptButtonTexts;
|
|
10
11
|
}, [promptButtonTexts, shouldShowTwoRows]),
|
|
11
12
|
visibleButtonsSecondRow: (0, react.useMemo)(() => {
|
|
12
13
|
if (!Array.isArray(promptButtonTexts)) return [];
|
|
13
|
-
return promptButtonTexts.slice(
|
|
14
|
+
return promptButtonTexts.slice(getFirstRowCount(promptButtonTexts.length), promptButtonTexts.length);
|
|
14
15
|
}, [promptButtonTexts])
|
|
15
16
|
};
|
|
16
17
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/PromptCarousel/hooks/useCarouselButtons.ts
|
|
4
|
+
const getFirstRowCount = (length) => Math.ceil(length / 2);
|
|
4
5
|
const useCarouselButtons = ({ promptButtonTexts, shouldShowTwoRows }) => {
|
|
5
6
|
return {
|
|
6
7
|
visibleButtonsFirstRow: useMemo(() => {
|
|
7
8
|
if (!Array.isArray(promptButtonTexts)) return [];
|
|
8
|
-
return shouldShowTwoRows ? promptButtonTexts.slice(0,
|
|
9
|
+
return shouldShowTwoRows ? promptButtonTexts.slice(0, getFirstRowCount(promptButtonTexts.length)) : promptButtonTexts;
|
|
9
10
|
}, [promptButtonTexts, shouldShowTwoRows]),
|
|
10
11
|
visibleButtonsSecondRow: useMemo(() => {
|
|
11
12
|
if (!Array.isArray(promptButtonTexts)) return [];
|
|
12
|
-
return promptButtonTexts.slice(
|
|
13
|
+
return promptButtonTexts.slice(getFirstRowCount(promptButtonTexts.length), promptButtonTexts.length);
|
|
13
14
|
}, [promptButtonTexts])
|
|
14
15
|
};
|
|
15
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReviewCardProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ReviewCard/ReviewCard.d.ts
|
|
5
5
|
|
|
@@ -27,6 +27,6 @@ declare const ReviewCard: ({
|
|
|
27
27
|
verifiedBuyerLabel,
|
|
28
28
|
onExpand,
|
|
29
29
|
onCollapse
|
|
30
|
-
}: ReviewCardProps) =>
|
|
30
|
+
}: ReviewCardProps) => react_jsx_runtime11.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ReviewCard };
|
|
@@ -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_runtime12 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_runtime12.JSX.Element;
|
|
35
35
|
Rating: ({
|
|
36
36
|
rating,
|
|
37
37
|
theme,
|
|
38
38
|
style
|
|
39
|
-
}: RatingProps) =>
|
|
39
|
+
}: RatingProps) => react_jsx_runtime12.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_runtime12.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_runtime13 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_runtime13.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_runtime5 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_runtime5.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 react7 from "react";
|
|
8
|
+
import * as react_jsx_runtime8 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_runtime8.JSX.Element;
|
|
27
27
|
ProductName: ({
|
|
28
28
|
label,
|
|
29
29
|
theme,
|
|
30
30
|
style,
|
|
31
31
|
className
|
|
32
|
-
}: ProductNameProps) =>
|
|
32
|
+
}: ProductNameProps) => react_jsx_runtime8.JSX.Element;
|
|
33
33
|
Price: ({
|
|
34
34
|
previousPrice,
|
|
35
35
|
currentPrice,
|
|
36
36
|
pricePrefix,
|
|
37
37
|
forceShowCurrentPriceSpace
|
|
38
|
-
}: PriceProps) =>
|
|
38
|
+
}: PriceProps) => react_jsx_runtime8.JSX.Element;
|
|
39
39
|
Rate: ({
|
|
40
40
|
rate,
|
|
41
41
|
numberOfReviews,
|
|
42
42
|
theme
|
|
43
|
-
}: RateProps) =>
|
|
43
|
+
}: RateProps) => react_jsx_runtime8.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_runtime8.JSX.Element;
|
|
52
52
|
StarIcon: ({
|
|
53
53
|
theme,
|
|
54
54
|
style
|
|
55
55
|
}: {
|
|
56
56
|
theme: Theme;
|
|
57
57
|
style?: React.CSSProperties;
|
|
58
|
-
}) =>
|
|
58
|
+
}) => react7.ReactElement<react7.SVGProps<SVGSVGElement>, string | react7.JSXElementConstructor<any>>;
|
|
59
59
|
};
|
|
60
60
|
//#endregion
|
|
61
61
|
export { SalesAgentProductCardComponents };
|
|
@@ -4,8 +4,8 @@ import { ProductNameProps } from "./ProductName.js";
|
|
|
4
4
|
import { PriceProps } from "./Price.js";
|
|
5
5
|
import { RateProps } from "./Rate.js";
|
|
6
6
|
import { ProductImageProps } from "./ProductImage.js";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
7
|
+
import * as react0 from "react";
|
|
8
|
+
import * as react_jsx_runtime0 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_runtime0.JSX.Element;
|
|
27
27
|
ProductName: ({
|
|
28
28
|
label,
|
|
29
29
|
theme,
|
|
30
30
|
style,
|
|
31
31
|
className
|
|
32
|
-
}: ProductNameProps) =>
|
|
32
|
+
}: ProductNameProps) => react_jsx_runtime0.JSX.Element;
|
|
33
33
|
Price: ({
|
|
34
34
|
previousPrice,
|
|
35
35
|
currentPrice,
|
|
36
36
|
pricePrefix,
|
|
37
37
|
forceShowCurrentPriceSpace
|
|
38
|
-
}: PriceProps) =>
|
|
38
|
+
}: PriceProps) => react_jsx_runtime0.JSX.Element;
|
|
39
39
|
Rate: ({
|
|
40
40
|
rate,
|
|
41
41
|
numberOfReviews,
|
|
42
42
|
theme
|
|
43
|
-
}: RateProps) =>
|
|
43
|
+
}: RateProps) => react_jsx_runtime0.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_runtime0.JSX.Element;
|
|
52
52
|
StarIcon: ({
|
|
53
53
|
theme,
|
|
54
54
|
style
|
|
55
55
|
}: {
|
|
56
56
|
theme: Theme;
|
|
57
57
|
style?: React.CSSProperties;
|
|
58
|
-
}) =>
|
|
58
|
+
}) => react0.ReactElement<react0.SVGProps<SVGSVGElement>, string | react0.JSXElementConstructor<any>>;
|
|
59
59
|
};
|
|
60
60
|
//#endregion
|
|
61
61
|
export { SalesAgentProductCardComponents };
|
|
@@ -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_runtime16 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_runtime16.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SocialProof };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime17.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime10.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
package/dist/Stack/Stack.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StackProps } from "./types/index.cjs";
|
|
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 };
|
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 react5 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: react5.ForwardRefExoticComponent<StackProps & react5.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Stack };
|
|
@@ -19,7 +19,7 @@ const useVoiceInput = ({ onTranscriptionCompleted, onTranscriptionStarted, disab
|
|
|
19
19
|
onTranscriptionStarted?.();
|
|
20
20
|
} catch (error) {
|
|
21
21
|
console.log("Microphone permission denied or error:", error);
|
|
22
|
-
setListeningToSpeech(
|
|
22
|
+
setListeningToSpeech("abort");
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
const handleStopListening = async () => {
|
|
@@ -32,23 +32,16 @@ const useVoiceInput = ({ onTranscriptionCompleted, onTranscriptionStarted, disab
|
|
|
32
32
|
};
|
|
33
33
|
const handleToggleListening = () => {
|
|
34
34
|
if (disabled || !isMicrophoneAvailable || !browserSupportsSpeechRecognition) return;
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
setListeningToSpeech(true);
|
|
38
|
-
} else {
|
|
39
|
-
handleStopListening();
|
|
40
|
-
setListeningToSpeech(false);
|
|
41
|
-
}
|
|
35
|
+
if (listeningToSpeech !== "start") setListeningToSpeech("start");
|
|
36
|
+
else setListeningToSpeech("stop");
|
|
42
37
|
};
|
|
43
38
|
(0, react.useEffect)(() => {
|
|
44
|
-
if (listeningToSpeech) handleStartListening();
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
}, []);
|
|
39
|
+
if (listeningToSpeech === "start") handleStartListening();
|
|
40
|
+
else if (listeningToSpeech === "stop") handleStopListening();
|
|
41
|
+
else if (listeningToSpeech === "abort") handleAbortListening();
|
|
42
|
+
}, [listeningToSpeech]);
|
|
50
43
|
return {
|
|
51
|
-
isListening: listeningToSpeech,
|
|
44
|
+
isListening: listeningToSpeech === "start",
|
|
52
45
|
handleToggleListening,
|
|
53
46
|
handleAbortListening,
|
|
54
47
|
browserSupportsSpeechRecognition
|