@envive-ai/react-toolkit-v3 0.3.23 → 0.3.25
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 +4 -4
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +4 -4
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +3 -3
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +3 -3
- 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/Container/Container.d.cts +174 -174
- package/dist/Container/Container.d.ts +174 -174
- 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 +2 -2
- package/dist/Disclaimer/components/Container.js +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/DocumentRetrievalCard/components/Image.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Image.js +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingButton/components/Button.cjs +1 -1
- package/dist/FloatingButton/components/Button.js +1 -1
- package/dist/FloatingButton/components/Container.cjs +1 -1
- package/dist/FloatingButton/components/Container.js +1 -1
- package/dist/FloatingButton/components/Wrapper.cjs +1 -1
- package/dist/FloatingButton/components/Wrapper.js +1 -1
- package/dist/FloatingChat/FloatingChat.cjs +5 -0
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.js +5 -0
- 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/FloatingChat/components/SlideChatContent.cjs +1 -1
- package/dist/FloatingChat/components/SlideChatContent.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.cjs +5 -0
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +5 -0
- package/dist/FullPageSalesAgent/components/Layout.cjs +1 -1
- package/dist/FullPageSalesAgent/components/Layout.js +1 -1
- package/dist/Image/Image.cjs +1 -1
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/Image/Image.js +1 -1
- package/dist/ImageGallery/ImageGallery.d.cts +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/PromptCarousel/hooks/useCarouselButtons.cjs +3 -2
- package/dist/PromptCarousel/hooks/useCarouselButtons.js +3 -2
- 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.ts +2 -2
- package/dist/SocialProof/components/Headline.cjs +8 -3
- package/dist/SocialProof/components/Headline.js +8 -3
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -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/TextField/hooks/useVoiceInput.cjs +11 -15
- package/dist/TextField/hooks/useVoiceInput.js +11 -15
- 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.js +1 -1
- package/dist/Tokens/index.cjs +6 -6
- package/dist/Tokens/index.js +6 -6
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- 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 +3 -3
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +3 -3
- 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.d.ts +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/packages/components-v3/tokens/typography/typography.cjs +1 -1
- package/dist/packages/components-v3/tokens/typography/typography.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/resolveTheme.cjs +1 -1
- package/dist/utils/resolveTheme.js +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/SocialProof/components/Headline.tsx +10 -2
- package/src/components/TextField/__tests__/VoiceInputButton.test.tsx +27 -16
- package/src/components/TextField/hooks/useVoiceInput.ts +23 -13
- package/src/components/WidgetTextField/WidgetTextField.tsx +4 -2
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 react184 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: react184.ForwardRefExoticComponent<StackProps & react184.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Stack };
|
|
@@ -9,9 +9,9 @@ const require_useTextFieldSubmit = require('./hooks/useTextFieldSubmit.cjs');
|
|
|
9
9
|
const require_useTextFieldValue = require('./hooks/useTextFieldValue.cjs');
|
|
10
10
|
const require_useVoiceInput = require('./hooks/useVoiceInput.cjs');
|
|
11
11
|
let react = require("react");
|
|
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
|
|
|
16
16
|
//#region src/components/TextField/TextField.tsx
|
|
17
17
|
/**
|
|
@@ -8,8 +8,8 @@ import { useTextFieldSubmit } from "./hooks/useTextFieldSubmit.js";
|
|
|
8
8
|
import { useTextFieldValue } from "./hooks/useTextFieldValue.js";
|
|
9
9
|
import { useVoiceInput } from "./hooks/useVoiceInput.js";
|
|
10
10
|
import { useCallback } from "react";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
11
|
import classNames from "classnames";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
|
|
14
14
|
//#region src/components/TextField/TextField.tsx
|
|
15
15
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_getInputClasses = require('../utils/getInputClasses.cjs');
|
|
3
3
|
const require_createInputChangeHandler = require('../utils/createInputChangeHandler.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/Input.tsx
|
|
9
9
|
const Input = ({ theme, placeholder, value, onChange, onKeyDown, onFocus, onBlur, disabled = false, id, testId, className, style, ariaLabel }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getInputClasses } from "../utils/getInputClasses.js";
|
|
2
2
|
import { createInputChangeHandler } from "../utils/createInputChangeHandler.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/Input.tsx
|
|
7
7
|
const Input = ({ theme, placeholder, value, onChange, onKeyDown, onFocus, onBlur, disabled = false, id, testId, className, style, ariaLabel }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
3
3
|
const require_getLayoutStateProperties = require('../utils/getLayoutStateProperties.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/Layout.tsx
|
|
9
9
|
const Layout = ({ theme, input, sendIcon, voiceInputButton, isFocused, hasValue, disabled = false, id, testId, className, style }) => {
|
|
@@ -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, 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 }) => {
|
|
@@ -10,6 +10,7 @@ const useVoiceInput = ({ onTranscriptionCompleted, onTranscriptionStarted, disab
|
|
|
10
10
|
const [listeningToSpeech, setListeningToSpeech] = require_react.useAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
|
|
11
11
|
const { transcript, browserSupportsSpeechRecognition, resetTranscript, isMicrophoneAvailable } = (0, react_speech_recognition.useSpeechRecognition)();
|
|
12
12
|
const handleStartListening = async () => {
|
|
13
|
+
if (disabled) return;
|
|
13
14
|
try {
|
|
14
15
|
resetTranscript();
|
|
15
16
|
await react_speech_recognition.default.startListening({
|
|
@@ -19,36 +20,31 @@ const useVoiceInput = ({ onTranscriptionCompleted, onTranscriptionStarted, disab
|
|
|
19
20
|
onTranscriptionStarted?.();
|
|
20
21
|
} catch (error) {
|
|
21
22
|
console.log("Microphone permission denied or error:", error);
|
|
22
|
-
setListeningToSpeech(
|
|
23
|
+
setListeningToSpeech("abort");
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
26
|
const handleStopListening = async () => {
|
|
27
|
+
if (disabled) return;
|
|
26
28
|
await react_speech_recognition.default.stopListening();
|
|
27
29
|
onTranscriptionCompleted?.(transcript);
|
|
28
30
|
};
|
|
29
31
|
const handleAbortListening = async () => {
|
|
32
|
+
if (disabled) return;
|
|
30
33
|
await react_speech_recognition.default.abortListening();
|
|
31
34
|
resetTranscript();
|
|
32
35
|
};
|
|
33
36
|
const handleToggleListening = () => {
|
|
34
37
|
if (disabled || !isMicrophoneAvailable || !browserSupportsSpeechRecognition) return;
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
setListeningToSpeech(true);
|
|
38
|
-
} else {
|
|
39
|
-
handleStopListening();
|
|
40
|
-
setListeningToSpeech(false);
|
|
41
|
-
}
|
|
38
|
+
if (listeningToSpeech !== "start") setListeningToSpeech("start");
|
|
39
|
+
else setListeningToSpeech("stop");
|
|
42
40
|
};
|
|
43
41
|
(0, react.useEffect)(() => {
|
|
44
|
-
if (listeningToSpeech) handleStartListening();
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
}, []);
|
|
42
|
+
if (listeningToSpeech === "start") handleStartListening();
|
|
43
|
+
else if (listeningToSpeech === "stop") handleStopListening();
|
|
44
|
+
else if (listeningToSpeech === "abort") handleAbortListening();
|
|
45
|
+
}, [listeningToSpeech]);
|
|
50
46
|
return {
|
|
51
|
-
isListening: listeningToSpeech,
|
|
47
|
+
isListening: listeningToSpeech === "start",
|
|
52
48
|
handleToggleListening,
|
|
53
49
|
handleAbortListening,
|
|
54
50
|
browserSupportsSpeechRecognition
|
|
@@ -8,6 +8,7 @@ const useVoiceInput = ({ onTranscriptionCompleted, onTranscriptionStarted, disab
|
|
|
8
8
|
const [listeningToSpeech, setListeningToSpeech] = useAtom(listeningToSpeechAtom);
|
|
9
9
|
const { transcript, browserSupportsSpeechRecognition, resetTranscript, isMicrophoneAvailable } = useSpeechRecognition();
|
|
10
10
|
const handleStartListening = async () => {
|
|
11
|
+
if (disabled) return;
|
|
11
12
|
try {
|
|
12
13
|
resetTranscript();
|
|
13
14
|
await SpeechRecognition.startListening({
|
|
@@ -17,36 +18,31 @@ const useVoiceInput = ({ onTranscriptionCompleted, onTranscriptionStarted, disab
|
|
|
17
18
|
onTranscriptionStarted?.();
|
|
18
19
|
} catch (error) {
|
|
19
20
|
console.log("Microphone permission denied or error:", error);
|
|
20
|
-
setListeningToSpeech(
|
|
21
|
+
setListeningToSpeech("abort");
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
24
|
const handleStopListening = async () => {
|
|
25
|
+
if (disabled) return;
|
|
24
26
|
await SpeechRecognition.stopListening();
|
|
25
27
|
onTranscriptionCompleted?.(transcript);
|
|
26
28
|
};
|
|
27
29
|
const handleAbortListening = async () => {
|
|
30
|
+
if (disabled) return;
|
|
28
31
|
await SpeechRecognition.abortListening();
|
|
29
32
|
resetTranscript();
|
|
30
33
|
};
|
|
31
34
|
const handleToggleListening = () => {
|
|
32
35
|
if (disabled || !isMicrophoneAvailable || !browserSupportsSpeechRecognition) return;
|
|
33
|
-
if (
|
|
34
|
-
|
|
35
|
-
setListeningToSpeech(true);
|
|
36
|
-
} else {
|
|
37
|
-
handleStopListening();
|
|
38
|
-
setListeningToSpeech(false);
|
|
39
|
-
}
|
|
36
|
+
if (listeningToSpeech !== "start") setListeningToSpeech("start");
|
|
37
|
+
else setListeningToSpeech("stop");
|
|
40
38
|
};
|
|
41
39
|
useEffect(() => {
|
|
42
|
-
if (listeningToSpeech) handleStartListening();
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
}, []);
|
|
40
|
+
if (listeningToSpeech === "start") handleStartListening();
|
|
41
|
+
else if (listeningToSpeech === "stop") handleStopListening();
|
|
42
|
+
else if (listeningToSpeech === "abort") handleAbortListening();
|
|
43
|
+
}, [listeningToSpeech]);
|
|
48
44
|
return {
|
|
49
|
-
isListening: listeningToSpeech,
|
|
45
|
+
isListening: listeningToSpeech === "start",
|
|
50
46
|
handleToggleListening,
|
|
51
47
|
handleAbortListening,
|
|
52
48
|
browserSupportsSpeechRecognition
|
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_runtime15 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_runtime15.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,16 +1,16 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
2
|
+
const require_breakpoints = require('../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
3
|
+
const require_fontFamily = require('../packages/components-v3/tokens/typography/fontFamily.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');
|
|
4
6
|
const require_lineHeight = require('../packages/components-v3/tokens/typography/lineHeight.cjs');
|
|
5
7
|
const require_letterSpacing = require('../packages/components-v3/tokens/typography/letterSpacing.cjs');
|
|
6
|
-
const require_fontFamily = require('../packages/components-v3/tokens/typography/fontFamily.cjs');
|
|
7
|
-
const require_radius = require('../packages/components-v3/tokens/radius/radius.cjs');
|
|
8
|
-
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
8
|
const require_typography = require('../packages/components-v3/tokens/typography/typography.cjs');
|
|
9
|
+
const require_radius = require('../packages/components-v3/tokens/radius/radius.cjs');
|
|
12
10
|
const require_spacing = require('../packages/components-v3/tokens/spacing/spacing.cjs');
|
|
11
|
+
const require_colors = require('../packages/components-v3/tokens/colors/colors.cjs');
|
|
13
12
|
const require_motion = require('../packages/components-v3/tokens/montion/motion.cjs');
|
|
13
|
+
const require_aspectRatio = require('../packages/components-v3/tokens/aspectRatio/aspectRatio.cjs');
|
|
14
14
|
|
|
15
15
|
exports.FontFamily = require_fontFamily.FontFamily;
|
|
16
16
|
exports.Theme = require_theme.Theme;
|
package/dist/Tokens/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { screensBreakpointsVariables, tailwindScreens } from "../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
3
|
+
import { FontFamily, fontFamilyVariables } from "../packages/components-v3/tokens/typography/fontFamily.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";
|
|
4
6
|
import { lineHeightVariables } from "../packages/components-v3/tokens/typography/lineHeight.js";
|
|
5
7
|
import { letterSpacingVariables } from "../packages/components-v3/tokens/typography/letterSpacing.js";
|
|
6
|
-
import { FontFamily, fontFamilyVariables } from "../packages/components-v3/tokens/typography/fontFamily.js";
|
|
7
|
-
import { borderRadiusVariables } from "../packages/components-v3/tokens/radius/radius.js";
|
|
8
|
-
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
8
|
import { createTypographyComponents } from "../packages/components-v3/tokens/typography/typography.js";
|
|
9
|
+
import { borderRadiusVariables } from "../packages/components-v3/tokens/radius/radius.js";
|
|
12
10
|
import { spacingVariables } from "../packages/components-v3/tokens/spacing/spacing.js";
|
|
11
|
+
import { colorsVariables } from "../packages/components-v3/tokens/colors/colors.js";
|
|
13
12
|
import { animationsVariables, keyFramesVariables } from "../packages/components-v3/tokens/montion/motion.js";
|
|
13
|
+
import { aspectRatioVariables } from "../packages/components-v3/tokens/aspectRatio/aspectRatio.js";
|
|
14
14
|
|
|
15
15
|
export { FontFamily, Theme, animationsVariables, aspectRatioVariables, borderRadiusVariables, colorsVariables, createTypographyComponents, fontFamilyVariables, fontSizeVariables, fontWeightVariables, keyFramesVariables, letterSpacingVariables, lineHeightVariables, screensBreakpointsVariables, spacingVariables, tailwindScreens };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypingAnimationProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime6 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_runtime6.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.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 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) => react0.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react0.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react0.CSSProperties;
|
|
28
28
|
id: string;
|
|
29
29
|
'data-testid': string;
|
|
30
30
|
}, HTMLElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 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) => react0.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react0.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react0.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
|
|
@@ -19,7 +19,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
19
19
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
20
20
|
const setListeningToSpeech = require_react.useSetAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
|
|
21
21
|
const { skeletonClass } = require_useGetSkeletonProperties.useGetSkeletonProperties(isLoading);
|
|
22
|
-
const { browserSupportsSpeechRecognition } = require_useVoiceInput.useVoiceInput({});
|
|
22
|
+
const { browserSupportsSpeechRecognition } = require_useVoiceInput.useVoiceInput({ disabled: true });
|
|
23
23
|
const { micWidgetButtonClasses } = require_useGetMicWidgetButtonProperties.useGetMicWidgetButtonProperties({
|
|
24
24
|
theme: resolvedTheme,
|
|
25
25
|
isListening: false
|
|
@@ -27,7 +27,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
27
27
|
const voiceInputButtonClassName = (0, classnames.default)(micWidgetButtonClasses, skeletonClass, voiceInputClassName);
|
|
28
28
|
if (isLoading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$2.WidgetTextFieldComponents.Skeleton, { theme: resolvedTheme });
|
|
29
29
|
const handleToggleListening = () => {
|
|
30
|
-
setListeningToSpeech(
|
|
30
|
+
setListeningToSpeech("start");
|
|
31
31
|
onTranscriptionStarted?.();
|
|
32
32
|
onClick();
|
|
33
33
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 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_runtime16.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { WidgetTextField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 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_runtime0.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
|
|
@@ -17,7 +17,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
17
17
|
const resolvedTheme = resolveTheme(theme);
|
|
18
18
|
const setListeningToSpeech = useSetAtom(listeningToSpeechAtom);
|
|
19
19
|
const { skeletonClass } = useGetSkeletonProperties(isLoading);
|
|
20
|
-
const { browserSupportsSpeechRecognition } = useVoiceInput({});
|
|
20
|
+
const { browserSupportsSpeechRecognition } = useVoiceInput({ disabled: true });
|
|
21
21
|
const { micWidgetButtonClasses } = useGetMicWidgetButtonProperties({
|
|
22
22
|
theme: resolvedTheme,
|
|
23
23
|
isListening: false
|
|
@@ -25,7 +25,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
25
25
|
const voiceInputButtonClassName = classNames(micWidgetButtonClasses, skeletonClass, voiceInputClassName);
|
|
26
26
|
if (isLoading) return /* @__PURE__ */ jsx(WidgetTextFieldComponents.Skeleton, { theme: resolvedTheme });
|
|
27
27
|
const handleToggleListening = () => {
|
|
28
|
-
setListeningToSpeech(
|
|
28
|
+
setListeningToSpeech("start");
|
|
29
29
|
onTranscriptionStarted?.();
|
|
30
30
|
onClick();
|
|
31
31
|
};
|
|
@@ -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 }) => {
|
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_Container = require('../Container/Container.cjs');
|
|
3
3
|
require('../Container/index.cjs');
|
|
4
4
|
const require_useGetWrapperProperties = require('./hooks/useGetWrapperProperties.cjs');
|
|
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/WidgetWrapper/WidgetWrapper.tsx
|
|
10
10
|
/**
|