@envive-ai/react-toolkit-v3 0.3.28 → 0.3.30
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/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/Carousel/Carousel.cjs +1 -1
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/Carousel.js +1 -1
- package/dist/Carousel/components/Container.cjs +2 -2
- package/dist/Carousel/components/Container.js +2 -2
- package/dist/ChatFooter/ChatFooter.cjs +1 -1
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +1 -1
- package/dist/ChatFooter/components/Layout.cjs +2 -2
- package/dist/ChatFooter/components/Layout.js +2 -2
- 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/components/Handle.cjs +2 -2
- package/dist/ChatHeader/components/Handle.js +2 -2
- package/dist/ChatHeader/components/Toggle.cjs +3 -3
- package/dist/ChatHeader/components/Toggle.js +3 -3
- package/dist/ChatPreview/ChatPreview.cjs +1 -1
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
- package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Headline.js +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
- package/dist/ChatPreviewComparison/components/Layout.js +4 -4
- package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Message.js +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +56 -56
- package/dist/Container/Container.d.ts +220 -220
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- 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/Layout.cjs +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/components/AgentMessage.cjs +1 -0
- package/dist/FloatingChat/components/AgentMessage.js +1 -0
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +3 -3
- package/dist/FloatingChat/components/Layout.js +3 -3
- 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/FullPageSalesAgent/FullPageSalesAgent.cjs +2 -3
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +2 -3
- package/dist/FullPageSalesAgent/components/Layout.cjs +24 -27
- package/dist/FullPageSalesAgent/components/Layout.js +24 -27
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +27 -17
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +27 -17
- 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/ImageGallery/components/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.cjs +7 -3
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +4 -3
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +4 -3
- package/dist/MarkdownProcessor/MarkdownProcessor.js +7 -3
- package/dist/MarkdownProcessor/components/MarkdownLink.cjs +3 -2
- package/dist/MarkdownProcessor/components/MarkdownLink.js +3 -2
- package/dist/MarkdownProcessor/types/types.d.cts +5 -0
- package/dist/MarkdownProcessor/types/types.d.ts +5 -0
- package/dist/MarkdownProcessor/utils/functions.cjs +2 -1
- package/dist/MarkdownProcessor/utils/functions.js +2 -1
- package/dist/Message/Message.cjs +5 -4
- package/dist/Message/Message.d.cts +2 -1
- package/dist/Message/Message.d.ts +2 -1
- package/dist/Message/Message.js +5 -4
- package/dist/Message/components/AgentContent.cjs +3 -2
- package/dist/Message/components/AgentContent.js +3 -2
- package/dist/Message/components/LinkButton.cjs +3 -3
- package/dist/Message/components/LinkButton.d.cts +4 -1
- package/dist/Message/components/LinkButton.d.ts +4 -1
- package/dist/Message/components/LinkButton.js +3 -3
- package/dist/Message/hooks/useGetLinkButtonIconProperties.cjs +4 -3
- package/dist/Message/hooks/useGetLinkButtonIconProperties.js +4 -3
- package/dist/Message/types/index.d.cts +4 -0
- package/dist/Message/types/index.d.ts +4 -0
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +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/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +3 -3
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +2 -2
- package/dist/ReviewCard/components/Container.js +2 -2
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +4 -4
- 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 +2 -2
- package/dist/SalesAgentProductCard/components/Container.js +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +1 -1
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +1 -1
- package/dist/SocialProof/components/Headline.cjs +3 -3
- package/dist/SocialProof/components/Headline.js +3 -3
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/SocialProof/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.js +1 -1
- package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
- package/dist/Tokens/index.cjs +1 -1
- package/dist/Tokens/index.js +1 -1
- package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +2 -2
- package/dist/WelcomeMessage/components/Container.js +2 -2
- package/dist/WidgetTextField/WidgetTextField.cjs +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetTextField/components/Container.cjs +2 -2
- package/dist/WidgetTextField/components/Container.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +1 -1
- package/dist/WidgetTextField/components/Icon.js +1 -1
- package/dist/WidgetTextField/hooks/useGetContainerProperties.cjs +3 -2
- package/dist/WidgetTextField/hooks/useGetContainerProperties.js +3 -2
- package/dist/WidgetWrapper/WidgetWrapper.cjs +8 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.js +8 -1
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.cjs +1 -1
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/FloatingChat/components/AgentMessage.tsx +1 -0
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +1 -2
- package/src/components/FullPageSalesAgent/components/Layout.tsx +4 -1
- package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +30 -17
- package/src/components/MarkdownProcessor/MarkdownProcessor.tsx +3 -2
- package/src/components/MarkdownProcessor/components/MarkdownLink.tsx +4 -1
- package/src/components/MarkdownProcessor/types/types.ts +5 -0
- package/src/components/MarkdownProcessor/utils/functions.tsx +4 -0
- package/src/components/Message/Message.tsx +4 -2
- package/src/components/Message/components/AgentContent.tsx +4 -0
- package/src/components/Message/components/LinkButton.tsx +4 -1
- package/src/components/Message/hooks/useGetLinkButtonIconProperties.ts +7 -3
- package/src/components/Message/types/index.ts +3 -0
- package/src/components/WidgetTextField/hooks/useGetContainerProperties.ts +2 -1
- package/src/components/WidgetWrapper/WidgetWrapper.tsx +10 -2
- package/src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.tsx +5 -5
- package/src/components/utils/resolveTheme.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime3.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime27.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -65,6 +65,7 @@ const AgentMessage = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, agentName, ty
|
|
|
65
65
|
};
|
|
66
66
|
if (textContentMessageTypes.has(type)) return messages.map((msg) => {
|
|
67
67
|
if (msg.type === __envive_ai_react_hooks_application_models.MessageType.Text && msg.metadata.content) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Message.Message, {
|
|
68
|
+
theme: finalTheme,
|
|
68
69
|
variant: require_index.MessageVariant.AGENT,
|
|
69
70
|
agentName: hideAgentName ? void 0 : agentName,
|
|
70
71
|
showSparkle: isResponseStreaming || isPendingResponse,
|
|
@@ -64,6 +64,7 @@ const AgentMessage = ({ theme = Theme.GLOBAL_CUSTOM, agentName, type, messages,
|
|
|
64
64
|
};
|
|
65
65
|
if (textContentMessageTypes.has(type)) return messages.map((msg) => {
|
|
66
66
|
if (msg.type === MessageType.Text && msg.metadata.content) return /* @__PURE__ */ jsx(Message, {
|
|
67
|
+
theme: finalTheme,
|
|
67
68
|
variant: MessageVariant.AGENT,
|
|
68
69
|
agentName: hideAgentName ? void 0 : agentName,
|
|
69
70
|
showSparkle: isResponseStreaming || isPendingResponse,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
4
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
4
|
require('../../Stack/index.cjs');
|
|
6
5
|
const require_index = require('../../Typography/types/index.cjs');
|
|
7
6
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
8
7
|
require('../../Typography/index.cjs');
|
|
8
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_functions = require('../utils/functions.cjs');
|
|
10
10
|
const require_index$1 = require('../../Message/types/index.cjs');
|
|
11
11
|
const require_Message = require('../../Message/Message.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
3
|
import "../../Stack/index.js";
|
|
5
4
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
6
5
|
import { Typography } from "../../Typography/Typography.js";
|
|
7
6
|
import "../../Typography/index.js";
|
|
7
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { checkIfHideAgentName, getGroupableMessages } from "../utils/functions.js";
|
|
9
9
|
import { MessageVariant } from "../../Message/types/index.js";
|
|
10
10
|
import { Message } from "../../Message/Message.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
4
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
-
require('../../Container/index.cjs');
|
|
6
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
7
4
|
require('../../Stack/index.cjs');
|
|
5
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
6
|
+
require('../../Container/index.cjs');
|
|
7
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let classnames = require("classnames");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
|
-
import { Container } from "../../Container/Container.js";
|
|
4
|
-
import "../../Container/index.js";
|
|
5
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
6
3
|
import "../../Stack/index.js";
|
|
4
|
+
import { Container } from "../../Container/Container.js";
|
|
5
|
+
import "../../Container/index.js";
|
|
6
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
7
7
|
import { isValidElement } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import classNames from "classnames";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
3
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
3
|
require('../../Stack/index.cjs');
|
|
5
4
|
const require_index = require('../../Typography/types/index.cjs');
|
|
6
5
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
7
6
|
require('../../Typography/index.cjs');
|
|
7
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
8
8
|
const require_types = require('../../SalesAgentProductCard/types/types.cjs');
|
|
9
9
|
const require_SalesAgentProductCard = require('../../SalesAgentProductCard/SalesAgentProductCard.cjs');
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
2
|
import "../../Stack/index.js";
|
|
4
3
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
5
4
|
import { Typography } from "../../Typography/Typography.js";
|
|
6
5
|
import "../../Typography/index.js";
|
|
6
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
7
7
|
import { SalesAgentProductCardVariant } from "../../SalesAgentProductCard/types/types.js";
|
|
8
8
|
import { SalesAgentProductCard } from "../../SalesAgentProductCard/SalesAgentProductCard.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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
|
+
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
3
4
|
const require_index = require('../../Typography/types/index.cjs');
|
|
4
5
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
5
6
|
require('../../Typography/index.cjs');
|
|
6
|
-
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
7
7
|
const require_functions = require('../utils/functions.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_rolldown_runtime.__toESM(react);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
+
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
2
3
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
3
4
|
import { Typography } from "../../Typography/Typography.js";
|
|
4
5
|
import "../../Typography/index.js";
|
|
5
|
-
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
6
6
|
import { MOST_RELEVANT_DISPLAY_LIMIT } from "../utils/functions.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
require('../Tokens/index.cjs');
|
|
4
3
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
|
+
require('../Tokens/index.cjs');
|
|
5
5
|
const require_react = require('../node_modules/jotai/esm/react.cjs');
|
|
6
6
|
const require_usePromptCarouselAnalytics = require('../PromptCarousel/hooks/usePromptCarouselAnalytics.cjs');
|
|
7
7
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
@@ -294,8 +294,7 @@ const FullPageSalesAgent = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, floatin
|
|
|
294
294
|
headerContainer,
|
|
295
295
|
autoHeight,
|
|
296
296
|
scrollContainerRef,
|
|
297
|
-
|
|
298
|
-
overlay: overlayEnabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WelcomeOverlay.WelcomeOverlay, {
|
|
297
|
+
overlay: overlayEnabled && showOverlay ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WelcomeOverlay.WelcomeOverlay, {
|
|
299
298
|
show: showOverlay,
|
|
300
299
|
theme: resolvedTheme,
|
|
301
300
|
suggestionButtonType,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../tokens/theme/theme.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { FloatingChatConfig, FullPageSalesAgentWidgetV3Config, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
@@ -19,6 +19,6 @@ declare const FullPageSalesAgent: ({
|
|
|
19
19
|
widgetConfig,
|
|
20
20
|
hardcopyContent,
|
|
21
21
|
voiceInputEnabled
|
|
22
|
-
}: FullPageSalesAgentProps) =>
|
|
22
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime5.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FullPageSalesAgent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
3
3
|
import { FloatingChatConfig, FullPageSalesAgentWidgetV3Config, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
@@ -19,6 +19,6 @@ declare const FullPageSalesAgent: ({
|
|
|
19
19
|
widgetConfig,
|
|
20
20
|
hardcopyContent,
|
|
21
21
|
voiceInputEnabled
|
|
22
|
-
}: FullPageSalesAgentProps) =>
|
|
22
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime31.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FullPageSalesAgent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import "../Tokens/index.js";
|
|
3
2
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
|
+
import "../Tokens/index.js";
|
|
4
4
|
import { useSetAtom } from "../node_modules/jotai/esm/react.js";
|
|
5
5
|
import { usePromptCarouselAnalytics } from "../PromptCarousel/hooks/usePromptCarouselAnalytics.js";
|
|
6
6
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
@@ -293,8 +293,7 @@ const FullPageSalesAgent = ({ theme = Theme.GLOBAL_CUSTOM, floatingChatConfig, l
|
|
|
293
293
|
headerContainer,
|
|
294
294
|
autoHeight,
|
|
295
295
|
scrollContainerRef,
|
|
296
|
-
|
|
297
|
-
overlay: overlayEnabled ? /* @__PURE__ */ jsx(WelcomeOverlay, {
|
|
296
|
+
overlay: overlayEnabled && showOverlay ? /* @__PURE__ */ jsx(WelcomeOverlay, {
|
|
298
297
|
show: showOverlay,
|
|
299
298
|
theme: resolvedTheme,
|
|
300
299
|
suggestionButtonType,
|
|
@@ -22,39 +22,36 @@ const Layout = ({ theme, welcomeMessage, footer, chatMessages, answerSuggestions
|
|
|
22
22
|
headerContainer,
|
|
23
23
|
autoHeight
|
|
24
24
|
});
|
|
25
|
+
if (overlay) return overlay;
|
|
25
26
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
26
27
|
className: (0, classnames.default)(containerClasses, "envive-tw-relative"),
|
|
27
28
|
style: {
|
|
28
29
|
...containerStyles,
|
|
29
30
|
...backgroundStyle
|
|
30
31
|
},
|
|
31
|
-
children: [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
47
|
-
className:
|
|
48
|
-
children:
|
|
49
|
-
className: "envive-tw-
|
|
50
|
-
children:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}), footer]
|
|
55
|
-
}),
|
|
56
|
-
overlay
|
|
57
|
-
]
|
|
32
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
33
|
+
ref: scrollContainerRef,
|
|
34
|
+
className: contentClasses,
|
|
35
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
36
|
+
direction: "column",
|
|
37
|
+
justify: "between",
|
|
38
|
+
children: [welcomeMessage, disclaimer]
|
|
39
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
40
|
+
direction: "column",
|
|
41
|
+
gap: "0",
|
|
42
|
+
className: (0, classnames.default)((!hasWelcomeMessage || hasWelcomeMessage && theme === require_theme.Theme.STANDARD) && !hasAnswerSuggestions && "envive-tw-pb-4", isMobile ? "envive-tw-pt-4" : "envive-tw-pt-6"),
|
|
43
|
+
children: [chatMessages, answerSuggestions]
|
|
44
|
+
})]
|
|
45
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
46
|
+
className: footerContainerClasses,
|
|
47
|
+
children: [scrollToBottomButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
48
|
+
className: "envive-tw-h-[0px]",
|
|
49
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
50
|
+
className: "envive-tw-ml-auto envive-tw-table envive-tw-translate-x-[-30px] envive-tw-translate-y-[-50px]",
|
|
51
|
+
children: scrollToBottomButton
|
|
52
|
+
})
|
|
53
|
+
}), footer]
|
|
54
|
+
})]
|
|
58
55
|
});
|
|
59
56
|
};
|
|
60
57
|
|
|
@@ -20,39 +20,36 @@ const Layout = ({ theme, welcomeMessage, footer, chatMessages, answerSuggestions
|
|
|
20
20
|
headerContainer,
|
|
21
21
|
autoHeight
|
|
22
22
|
});
|
|
23
|
+
if (overlay) return overlay;
|
|
23
24
|
return /* @__PURE__ */ jsxs("div", {
|
|
24
25
|
className: classNames(containerClasses, "envive-tw-relative"),
|
|
25
26
|
style: {
|
|
26
27
|
...containerStyles,
|
|
27
28
|
...backgroundStyle
|
|
28
29
|
},
|
|
29
|
-
children: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
className:
|
|
46
|
-
children:
|
|
47
|
-
className: "envive-tw-
|
|
48
|
-
children:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}), footer]
|
|
53
|
-
}),
|
|
54
|
-
overlay
|
|
55
|
-
]
|
|
30
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
31
|
+
ref: scrollContainerRef,
|
|
32
|
+
className: contentClasses,
|
|
33
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
34
|
+
direction: "column",
|
|
35
|
+
justify: "between",
|
|
36
|
+
children: [welcomeMessage, disclaimer]
|
|
37
|
+
}), /* @__PURE__ */ jsxs(Stack, {
|
|
38
|
+
direction: "column",
|
|
39
|
+
gap: "0",
|
|
40
|
+
className: classNames((!hasWelcomeMessage || hasWelcomeMessage && theme === Theme.STANDARD) && !hasAnswerSuggestions && "envive-tw-pb-4", isMobile ? "envive-tw-pt-4" : "envive-tw-pt-6"),
|
|
41
|
+
children: [chatMessages, answerSuggestions]
|
|
42
|
+
})]
|
|
43
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: footerContainerClasses,
|
|
45
|
+
children: [scrollToBottomButton && /* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: "envive-tw-h-[0px]",
|
|
47
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: "envive-tw-ml-auto envive-tw-table envive-tw-translate-x-[-30px] envive-tw-translate-y-[-50px]",
|
|
49
|
+
children: scrollToBottomButton
|
|
50
|
+
})
|
|
51
|
+
}), footer]
|
|
52
|
+
})]
|
|
56
53
|
});
|
|
57
54
|
};
|
|
58
55
|
|
|
@@ -19,21 +19,14 @@ const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarousel
|
|
|
19
19
|
const { products, isLoading } = require_useWelcomeOverlayProducts.useWelcomeOverlayProducts(productIds);
|
|
20
20
|
const showProductCarousel = !isLoading && products.length > 0 && !!productCarouselTitle;
|
|
21
21
|
const welcomeOverlayClassNames = (0, classnames.default)([
|
|
22
|
+
"envive-overlay",
|
|
22
23
|
"envive-tw-inset-0",
|
|
23
24
|
"envive-tw-absolute",
|
|
24
25
|
"envive-tw-z-20",
|
|
25
26
|
"envive-tw-flex",
|
|
26
27
|
"envive-tw-w-full",
|
|
27
|
-
"envive-tw-h-full",
|
|
28
|
-
"envive-tw-max-w-[768px]",
|
|
29
28
|
"envive-tw-flex-col"
|
|
30
29
|
]);
|
|
31
|
-
const titleClassNames = (0, classnames.default)([
|
|
32
|
-
"envive-tw-flex",
|
|
33
|
-
"envive-tw-flex-row",
|
|
34
|
-
"envive-tw-gap-2",
|
|
35
|
-
"envive-tw-items-center"
|
|
36
|
-
]);
|
|
37
30
|
const titleBoxClassNames = (0, classnames.default)([
|
|
38
31
|
"envive-tw-flex",
|
|
39
32
|
"envive-tw-py-4",
|
|
@@ -46,6 +39,22 @@ const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarousel
|
|
|
46
39
|
"envive-tw-border",
|
|
47
40
|
"envive-tw-rounded-global-custom"
|
|
48
41
|
]);
|
|
42
|
+
const overlayContentClassNames = (0, classnames.default)([
|
|
43
|
+
"envive-tw-inset-0",
|
|
44
|
+
"envive-tw-mx-auto",
|
|
45
|
+
"envive-tw-flex",
|
|
46
|
+
"envive-tw-w-full",
|
|
47
|
+
"envive-tw-max-w-[768px]",
|
|
48
|
+
"envive-tw-flex-1",
|
|
49
|
+
"envive-tw-flex-col",
|
|
50
|
+
"envive-tw-gap-6",
|
|
51
|
+
"envive-tw-overflow-y-auto",
|
|
52
|
+
"envive-tw-overflow-x-hidden",
|
|
53
|
+
"envive-tw-px-4",
|
|
54
|
+
"envive-tw-pb-4",
|
|
55
|
+
"envive-tw-pt-6",
|
|
56
|
+
"lg:envive-tw-gap-10"
|
|
57
|
+
]);
|
|
49
58
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.AnimatePresence, { children: show && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
50
59
|
className: welcomeOverlayClassNames,
|
|
51
60
|
style: backgroundStyle,
|
|
@@ -58,18 +67,19 @@ const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarousel
|
|
|
58
67
|
}
|
|
59
68
|
},
|
|
60
69
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
61
|
-
className:
|
|
70
|
+
className: overlayContentClassNames,
|
|
62
71
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
63
72
|
className: titleBoxClassNames,
|
|
64
73
|
children: [
|
|
65
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Typography.Typography, {
|
|
75
|
+
variant: require_index.TypographyVariant.T3_MD,
|
|
76
|
+
as: "span",
|
|
77
|
+
children: [title, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
78
|
+
className: "envive-tw-ml-1 envive-tw-inline-block envive-tw-align-top",
|
|
79
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
80
|
+
color: sparkleColor,
|
|
81
|
+
animate: false
|
|
82
|
+
})
|
|
73
83
|
})]
|
|
74
84
|
}),
|
|
75
85
|
chatFooter,
|
|
@@ -17,21 +17,14 @@ const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarousel
|
|
|
17
17
|
const { products, isLoading } = useWelcomeOverlayProducts(productIds);
|
|
18
18
|
const showProductCarousel = !isLoading && products.length > 0 && !!productCarouselTitle;
|
|
19
19
|
const welcomeOverlayClassNames = classNames([
|
|
20
|
+
"envive-overlay",
|
|
20
21
|
"envive-tw-inset-0",
|
|
21
22
|
"envive-tw-absolute",
|
|
22
23
|
"envive-tw-z-20",
|
|
23
24
|
"envive-tw-flex",
|
|
24
25
|
"envive-tw-w-full",
|
|
25
|
-
"envive-tw-h-full",
|
|
26
|
-
"envive-tw-max-w-[768px]",
|
|
27
26
|
"envive-tw-flex-col"
|
|
28
27
|
]);
|
|
29
|
-
const titleClassNames = classNames([
|
|
30
|
-
"envive-tw-flex",
|
|
31
|
-
"envive-tw-flex-row",
|
|
32
|
-
"envive-tw-gap-2",
|
|
33
|
-
"envive-tw-items-center"
|
|
34
|
-
]);
|
|
35
28
|
const titleBoxClassNames = classNames([
|
|
36
29
|
"envive-tw-flex",
|
|
37
30
|
"envive-tw-py-4",
|
|
@@ -44,6 +37,22 @@ const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarousel
|
|
|
44
37
|
"envive-tw-border",
|
|
45
38
|
"envive-tw-rounded-global-custom"
|
|
46
39
|
]);
|
|
40
|
+
const overlayContentClassNames = classNames([
|
|
41
|
+
"envive-tw-inset-0",
|
|
42
|
+
"envive-tw-mx-auto",
|
|
43
|
+
"envive-tw-flex",
|
|
44
|
+
"envive-tw-w-full",
|
|
45
|
+
"envive-tw-max-w-[768px]",
|
|
46
|
+
"envive-tw-flex-1",
|
|
47
|
+
"envive-tw-flex-col",
|
|
48
|
+
"envive-tw-gap-6",
|
|
49
|
+
"envive-tw-overflow-y-auto",
|
|
50
|
+
"envive-tw-overflow-x-hidden",
|
|
51
|
+
"envive-tw-px-4",
|
|
52
|
+
"envive-tw-pb-4",
|
|
53
|
+
"envive-tw-pt-6",
|
|
54
|
+
"lg:envive-tw-gap-10"
|
|
55
|
+
]);
|
|
47
56
|
return /* @__PURE__ */ jsx(AnimatePresence, { children: show && /* @__PURE__ */ jsx(motion.div, {
|
|
48
57
|
className: welcomeOverlayClassNames,
|
|
49
58
|
style: backgroundStyle,
|
|
@@ -56,18 +65,19 @@ const WelcomeOverlay = ({ show, theme, title, promptSuggestions, productCarousel
|
|
|
56
65
|
}
|
|
57
66
|
},
|
|
58
67
|
children: /* @__PURE__ */ jsxs("div", {
|
|
59
|
-
className:
|
|
68
|
+
className: overlayContentClassNames,
|
|
60
69
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
61
70
|
className: titleBoxClassNames,
|
|
62
71
|
children: [
|
|
63
|
-
/* @__PURE__ */ jsxs(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
/* @__PURE__ */ jsxs(Typography, {
|
|
73
|
+
variant: TypographyVariant.T3_MD,
|
|
74
|
+
as: "span",
|
|
75
|
+
children: [title, /* @__PURE__ */ jsx("span", {
|
|
76
|
+
className: "envive-tw-ml-1 envive-tw-inline-block envive-tw-align-top",
|
|
77
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
78
|
+
color: sparkleColor,
|
|
79
|
+
animate: false
|
|
80
|
+
})
|
|
71
81
|
})]
|
|
72
82
|
}),
|
|
73
83
|
chatFooter,
|
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_runtime6 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_runtime6.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_runtime26 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_runtime26.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_runtime4 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_runtime4.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_runtime13 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_runtime13.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
4
3
|
const require_useResponsiveValue = require('../../utils/useResponsiveValue.cjs');
|
|
4
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
5
5
|
const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
6
6
|
const require_types = require('../types/types.cjs');
|
|
7
7
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { Container } from "../../Container/Container.js";
|
|
3
2
|
import { useResponsiveValue } from "../../utils/useResponsiveValue.js";
|
|
3
|
+
import { Container } from "../../Container/Container.js";
|
|
4
4
|
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
|
|
5
5
|
import { ImageGalleryLayout } from "../types/types.js";
|
|
6
6
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
@@ -7,14 +7,17 @@ let react_markdown = require("react-markdown");
|
|
|
7
7
|
react_markdown = require_rolldown_runtime.__toESM(react_markdown);
|
|
8
8
|
|
|
9
9
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.tsx
|
|
10
|
-
const MarkdownProcessor = ({ content, clampParagraphs = void 0, textColor, textVariant, onLinkClick }) => {
|
|
10
|
+
const MarkdownProcessor = ({ content, clampParagraphs = void 0, textColor, textVariant, onLinkClick, theme }) => {
|
|
11
11
|
const processedContent = content.replace(/<br\s*[\\/]?>/gi, "\n\n");
|
|
12
12
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_markdown.default, {
|
|
13
13
|
components: (0, react.useMemo)(() => ({
|
|
14
14
|
li: require_index.MarkdownProcessorComponents.MarkdownListItem,
|
|
15
15
|
ul: require_index.MarkdownProcessorComponents.MarkdownUnorderedList,
|
|
16
16
|
ol: require_index.MarkdownProcessorComponents.MarkdownOrderedList,
|
|
17
|
-
a: require_functions.createMarkdownLinkComponent({
|
|
17
|
+
a: require_functions.createMarkdownLinkComponent({
|
|
18
|
+
onLinkClick,
|
|
19
|
+
theme
|
|
20
|
+
}),
|
|
18
21
|
p: require_functions.createMarkdownParagraphComponent({
|
|
19
22
|
clampParagraphs,
|
|
20
23
|
textColor,
|
|
@@ -24,7 +27,8 @@ const MarkdownProcessor = ({ content, clampParagraphs = void 0, textColor, textV
|
|
|
24
27
|
clampParagraphs,
|
|
25
28
|
textColor,
|
|
26
29
|
textVariant,
|
|
27
|
-
onLinkClick
|
|
30
|
+
onLinkClick,
|
|
31
|
+
theme
|
|
28
32
|
]),
|
|
29
33
|
children: processedContent
|
|
30
34
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -7,7 +7,8 @@ declare const MarkdownProcessor: ({
|
|
|
7
7
|
clampParagraphs,
|
|
8
8
|
textColor,
|
|
9
9
|
textVariant,
|
|
10
|
-
onLinkClick
|
|
11
|
-
|
|
10
|
+
onLinkClick,
|
|
11
|
+
theme
|
|
12
|
+
}: MarkdownProcessorProps) => react_jsx_runtime10.JSX.Element;
|
|
12
13
|
//#endregion
|
|
13
14
|
export { MarkdownProcessor };
|