@envive-ai/react-widgets-v3 0.3.68 → 0.3.69

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.
Files changed (75) hide show
  1. package/dist/CXIntegration/hooks/useUnifiedCXButton.cjs +1 -1
  2. package/dist/CXIntegration/hooks/useUnifiedCXButton.js +1 -1
  3. package/dist/CXIntegration/implementations/useGladlyUnifiedCXButton.cjs +112 -36
  4. package/dist/CXIntegration/implementations/useGladlyUnifiedCXButton.js +112 -36
  5. package/dist/debug/chatEmbed.cjs +3 -3
  6. package/dist/debug/chatEmbed.js +3 -3
  7. package/dist/debug/reportIssue.cjs +18 -6
  8. package/dist/debug/reportIssue.js +19 -7
  9. package/dist/hocs/withBaseWidget/types.d.ts +1 -1
  10. package/dist/hocs/withBaseWidget/withBaseWidget.cjs +2 -2
  11. package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
  12. package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
  13. package/dist/hocs/withBaseWidget/withBaseWidget.js +2 -2
  14. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +8 -8
  15. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
  16. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
  17. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +8 -8
  18. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.cjs +3 -3
  19. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
  20. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
  21. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js +3 -3
  22. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +6 -6
  23. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
  24. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
  25. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +6 -6
  26. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +7 -4
  27. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
  28. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
  29. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +7 -4
  30. package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.cjs +2 -2
  31. package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.js +2 -2
  32. package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.cjs +3 -3
  33. package/dist/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.js +3 -3
  34. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.cjs +2 -2
  35. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +2 -2
  36. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +2 -2
  37. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +2 -2
  38. package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +4 -4
  39. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
  40. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
  41. package/dist/widgets/ProductCardWidget/ProductCardWidget.js +4 -4
  42. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +6 -6
  43. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
  44. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
  45. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +6 -6
  46. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +3 -3
  47. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
  48. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +3 -3
  49. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +2 -2
  50. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
  51. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +2 -2
  52. package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +8 -8
  53. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
  54. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
  55. package/dist/widgets/SocialProofWidget/SocialProofWidget.js +8 -8
  56. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +2 -2
  57. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
  58. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
  59. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +2 -2
  60. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +2 -2
  61. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
  62. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
  63. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +2 -2
  64. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +4 -4
  65. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
  66. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
  67. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +4 -4
  68. package/dist/widgets/hooks/useGetWidgetStatus.cjs +1 -1
  69. package/dist/widgets/hooks/useGetWidgetStatus.js +1 -1
  70. package/package.json +1 -1
  71. package/src/CXIntegration/implementations/__tests__/useGladlyUnifiedCXButton.test.ts +233 -0
  72. package/src/CXIntegration/implementations/useGladlyUnifiedCXButton.ts +173 -40
  73. package/src/debug/reportIssue.tsx +44 -4
  74. package/src/widgets/FloatingChatWidget/FloatingChatWidget.tsx +14 -1
  75. package/src/widgets/FloatingChatWidget/__tests__/FloatingChatWidget.cxClose.test.tsx +138 -0
@@ -2,22 +2,22 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
3
3
  const require_functions = require('../utils/functions.cjs');
4
4
  const require_ChatPreviewLoadingWidget = require('../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.cjs');
5
- let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
6
- let jotai = require("jotai");
7
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
8
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
9
5
  let react = require("react");
10
6
  let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
7
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
8
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
11
9
  let react_jsx_runtime = require("react/jsx-runtime");
10
+ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
12
11
  let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
12
+ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
13
13
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
14
+ let jotai = require("jotai");
15
+ let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
16
+ let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
14
17
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
18
+ let __envive_ai_react_toolkit_v3_ChatPreviewComparison = require("@envive-ai/react-toolkit-v3/ChatPreviewComparison");
15
19
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
16
20
  let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
17
- let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
18
- let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
19
- let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
20
- let __envive_ai_react_toolkit_v3_ChatPreviewComparison = require("@envive-ai/react-toolkit-v3/ChatPreviewComparison");
21
21
 
22
22
  //#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx
23
23
  const ChatPreviewComparisonWidgetHandler = (props) => {
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts
5
5
  declare const ChatPreviewComparisonWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime0.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime11.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface ChatPreviewComparisonWidgetProps {
@@ -12,7 +12,7 @@ interface ChatPreviewComparisonWidgetProps {
12
12
  declare const ChatPreviewComparisonWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: ChatPreviewComparisonWidgetProps): react_jsx_runtime0.JSX.Element;
15
+ }: ChatPreviewComparisonWidgetProps): react_jsx_runtime11.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts
5
5
  declare const ChatPreviewComparisonWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime3.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime17.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface ChatPreviewComparisonWidgetProps {
@@ -12,7 +12,7 @@ interface ChatPreviewComparisonWidgetProps {
12
12
  declare const ChatPreviewComparisonWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: ChatPreviewComparisonWidgetProps): react_jsx_runtime3.JSX.Element;
15
+ }: ChatPreviewComparisonWidgetProps): react_jsx_runtime17.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -1,22 +1,22 @@
1
1
  import { withBaseWidget } from "../../hocs/withBaseWidget/withBaseWidget.js";
2
2
  import { getMessageText, getRecentProductImageUrls } from "../utils/functions.js";
3
3
  import { ChatPreviewLoadingWidgetWithBaseWidget } from "../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js";
4
- import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
5
- import { useAtomValue } from "jotai";
6
- import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
7
- import { ChatElementDisplayLocationV3, FeatureGates, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
8
4
  import { useCallback, useMemo } from "react";
9
5
  import { EnviveMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
6
+ import { ChatElementDisplayLocationV3, FeatureGates, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
7
+ import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
10
8
  import { jsx } from "react/jsx-runtime";
9
+ import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
11
10
  import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
11
+ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
12
12
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
13
+ import { useAtomValue } from "jotai";
14
+ import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
15
+ import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
13
16
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
17
+ import { ChatPreviewComparison } from "@envive-ai/react-toolkit-v3/ChatPreviewComparison";
14
18
  import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
15
19
  import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
16
- import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
17
- import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
18
- import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
19
- import { ChatPreviewComparison } from "@envive-ai/react-toolkit-v3/ChatPreviewComparison";
20
20
 
21
21
  //#region src/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.tsx
22
22
  const ChatPreviewComparisonWidgetHandler = (props) => {
@@ -1,13 +1,13 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
3
3
  const require_PromptCarouselWidget = require('../PromptCarouselWidget/PromptCarouselWidget.cjs');
4
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
5
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
6
+ let react_jsx_runtime = require("react/jsx-runtime");
4
7
  let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
5
8
  let jotai = require("jotai");
6
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
7
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
8
9
  let __envive_ai_react_hooks_atoms_widget = require("@envive-ai/react-hooks/atoms/widget");
9
10
  let __envive_ai_react_toolkit_v3_ChatPreviewLoading = require("@envive-ai/react-toolkit-v3/ChatPreviewLoading");
10
- let react_jsx_runtime = require("react/jsx-runtime");
11
11
 
12
12
  //#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.tsx
13
13
  const ChatPreviewLoadingWidgetHandler = (props) => {
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
2
- import * as react_jsx_runtime8 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts
5
5
  declare const ChatPreviewLoadingWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime8.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime5.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface ChatPreviewLoadingWidgetProps {
@@ -11,6 +11,6 @@ interface ChatPreviewLoadingWidgetProps {
11
11
  }
12
12
  declare const ChatPreviewLoadingWidget: ({
13
13
  widgetConfigId
14
- }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime8.JSX.Element;
14
+ }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime5.JSX.Element;
15
15
  //#endregion
16
16
  export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
2
- import * as react_jsx_runtime15 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts
5
5
  declare const ChatPreviewLoadingWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime15.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime14.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface ChatPreviewLoadingWidgetProps {
@@ -11,6 +11,6 @@ interface ChatPreviewLoadingWidgetProps {
11
11
  }
12
12
  declare const ChatPreviewLoadingWidget: ({
13
13
  widgetConfigId
14
- }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime15.JSX.Element;
14
+ }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime14.JSX.Element;
15
15
  //#endregion
16
16
  export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
@@ -1,12 +1,12 @@
1
1
  import { withBaseWidget } from "../../hocs/withBaseWidget/withBaseWidget.js";
2
2
  import { PromptCarouselWidget } from "../PromptCarouselWidget/PromptCarouselWidget.js";
3
+ import { FeatureGates } from "@envive-ai/react-hooks/application/models";
4
+ import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
5
+ import { jsx } from "react/jsx-runtime";
3
6
  import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
4
7
  import { useAtomValue } from "jotai";
5
- import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
6
- import { FeatureGates } from "@envive-ai/react-hooks/application/models";
7
8
  import { chatPreviewLoadingDataAtom } from "@envive-ai/react-hooks/atoms/widget";
8
9
  import { ChatPreviewLoading } from "@envive-ai/react-toolkit-v3/ChatPreviewLoading";
9
- import { jsx } from "react/jsx-runtime";
10
10
 
11
11
  //#region src/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.tsx
12
12
  const ChatPreviewLoadingWidgetHandler = (props) => {
@@ -2,20 +2,20 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
3
3
  const require_functions = require('../utils/functions.cjs');
4
4
  const require_ChatPreviewLoadingWidget = require('../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.cjs');
5
- let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
6
- let jotai = require("jotai");
7
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
8
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
9
5
  let react = require("react");
10
6
  let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
7
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
8
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
11
9
  let react_jsx_runtime = require("react/jsx-runtime");
10
+ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
12
11
  let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
12
+ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
13
13
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
14
+ let jotai = require("jotai");
15
+ let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
14
16
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
15
17
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
16
18
  let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
17
- let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
18
- let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
19
19
  let __envive_ai_react_toolkit_v3_ChatPreview = require("@envive-ai/react-toolkit-v3/ChatPreview");
20
20
 
21
21
  //#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts
5
5
  declare const ChatPreviewWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime2.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime9.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface ChatPreviewWidgetProps {
@@ -12,7 +12,7 @@ interface ChatPreviewWidgetProps {
12
12
  declare const ChatPreviewWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: ChatPreviewWidgetProps): react_jsx_runtime2.JSX.Element;
15
+ }: ChatPreviewWidgetProps): react_jsx_runtime9.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts
5
5
  declare const ChatPreviewWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime5.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime12.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface ChatPreviewWidgetProps {
@@ -12,7 +12,7 @@ interface ChatPreviewWidgetProps {
12
12
  declare const ChatPreviewWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: ChatPreviewWidgetProps): react_jsx_runtime5.JSX.Element;
15
+ }: ChatPreviewWidgetProps): react_jsx_runtime12.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -1,20 +1,20 @@
1
1
  import { withBaseWidget } from "../../hocs/withBaseWidget/withBaseWidget.js";
2
2
  import { getMessageText } from "../utils/functions.js";
3
3
  import { ChatPreviewLoadingWidgetWithBaseWidget } from "../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js";
4
- import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
5
- import { useAtomValue } from "jotai";
6
- import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
7
- import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
8
4
  import { useCallback, useMemo } from "react";
9
5
  import { EnviveMetricsEventName, useAmplitude } from "@envive-ai/react-hooks/contexts/amplitudeContext";
6
+ import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
7
+ import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
10
8
  import { jsx } from "react/jsx-runtime";
9
+ import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
11
10
  import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
11
+ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
12
12
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
13
+ import { useAtomValue } from "jotai";
14
+ import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
13
15
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
14
16
  import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
15
17
  import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
16
- import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
17
- import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
18
18
  import { ChatPreview } from "@envive-ai/react-toolkit-v3/ChatPreview";
19
19
 
20
20
  //#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx
@@ -9,14 +9,14 @@ const require_useGetWidgetStatus = require('../hooks/useGetWidgetStatus.cjs');
9
9
  const require_FloatingChatOverlay = require('./FloatingChatOverlay.cjs');
10
10
  const require_useFloatingButtonVisibility = require('./hooks/useFloatingButtonVisibility.cjs');
11
11
  const require_useAutoPopup = require('./hooks/useAutoPopup.cjs');
12
- let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
13
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
14
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
15
12
  let react = require("react");
16
13
  let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
17
14
  let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
15
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
16
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
18
17
  let react_jsx_runtime = require("react/jsx-runtime");
19
18
  let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
19
+ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
20
20
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
21
21
  let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
22
22
  let __envive_ai_react_toolkit_v3_FloatingButton = require("@envive-ai/react-toolkit-v3/FloatingButton");
@@ -85,7 +85,10 @@ const FloatingChatWidgetHandler = (props) => {
85
85
  enabled: customerServiceIntegration?.enabled ?? false,
86
86
  suppressMerchantButton: customerServiceIntegration?.suppressMerchantButton ?? false,
87
87
  onSwitchToAgent: () => setIsCXOpen(true),
88
- onCXClose: () => setIsCXOpen(false),
88
+ onCXClose: () => {
89
+ setIsCXOpen(false);
90
+ if (!previewChatAlwaysOpen) closeChat(__envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.FLOATING_CHAT_CLOSE_BUTTON, void 0, "close_button");
91
+ },
89
92
  children: ({ isSwitchEnabled, toggle }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [!previewButtonOnly && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FloatingChatOverlay.FloatingChatOverlay, {
90
93
  isOpened: effectiveIsOpen,
91
94
  isResultsModalOpen,
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/FloatingChatWidget/FloatingChatWidget.d.ts
4
4
  interface FloatingChatWidgetProps {
@@ -13,7 +13,7 @@ declare const FloatingChatWidget: {
13
13
  previewChatAlwaysOpen,
14
14
  previewCXButtonsEnabled,
15
15
  previewDisclaimer
16
- }?: FloatingChatWidgetProps): react_jsx_runtime12.JSX.Element;
16
+ }?: FloatingChatWidgetProps): react_jsx_runtime19.JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/FloatingChatWidget/FloatingChatWidget.d.ts
4
4
  interface FloatingChatWidgetProps {
@@ -13,7 +13,7 @@ declare const FloatingChatWidget: {
13
13
  previewChatAlwaysOpen,
14
14
  previewCXButtonsEnabled,
15
15
  previewDisclaimer
16
- }?: FloatingChatWidgetProps): react_jsx_runtime12.JSX.Element;
16
+ }?: FloatingChatWidgetProps): react_jsx_runtime8.JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  //#endregion
@@ -8,14 +8,14 @@ import useGetWidgetStatus_default from "../hooks/useGetWidgetStatus.js";
8
8
  import { FloatingChatOverlay } from "./FloatingChatOverlay.js";
9
9
  import { useFloatingButtonVisibility } from "./hooks/useFloatingButtonVisibility.js";
10
10
  import { useAutoPopup } from "./hooks/useAutoPopup.js";
11
- import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
12
- import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
13
- import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
14
11
  import { Suspense, lazy, useEffect, useMemo, useRef, useState } from "react";
15
12
  import { useAmplitude } from "@envive-ai/react-hooks/contexts/amplitudeContext";
16
13
  import { useTrackComponentVisibleEvent } from "@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent";
14
+ import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
15
+ import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
17
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
18
17
  import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
18
+ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
19
19
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
20
20
  import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
21
21
  import { FloatingButton } from "@envive-ai/react-toolkit-v3/FloatingButton";
@@ -84,7 +84,10 @@ const FloatingChatWidgetHandler = (props) => {
84
84
  enabled: customerServiceIntegration?.enabled ?? false,
85
85
  suppressMerchantButton: customerServiceIntegration?.suppressMerchantButton ?? false,
86
86
  onSwitchToAgent: () => setIsCXOpen(true),
87
- onCXClose: () => setIsCXOpen(false),
87
+ onCXClose: () => {
88
+ setIsCXOpen(false);
89
+ if (!previewChatAlwaysOpen) closeChat(ChatElementDisplayLocationV3.FLOATING_CHAT_CLOSE_BUTTON, void 0, "close_button");
90
+ },
88
91
  children: ({ isSwitchEnabled, toggle }) => /* @__PURE__ */ jsxs(Fragment, { children: [!previewButtonOnly && /* @__PURE__ */ jsx(FloatingChatOverlay, {
89
92
  isOpened: effectiveIsOpen,
90
93
  isResultsModalOpen,
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
3
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
4
2
  let react = require("react");
3
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
4
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
5
5
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
6
6
 
7
7
  //#region src/widgets/FloatingChatWidget/hooks/useAutoPopup.ts
@@ -1,6 +1,6 @@
1
- import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
2
- import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
3
1
  import { useCallback, useEffect, useMemo, useRef } from "react";
2
+ import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
3
+ import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
4
4
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
5
5
 
6
6
  //#region src/widgets/FloatingChatWidget/hooks/useAutoPopup.ts
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
2
- let jotai = require("jotai");
3
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
4
2
  let react = require("react");
5
- let __envive_ai_react_toolkit_v3_FloatingButton = require("@envive-ai/react-toolkit-v3/FloatingButton");
3
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
4
+ let jotai = require("jotai");
6
5
  let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
6
+ let __envive_ai_react_toolkit_v3_FloatingButton = require("@envive-ai/react-toolkit-v3/FloatingButton");
7
7
  let __envive_ai_react_hooks_atoms_org = require("@envive-ai/react-hooks/atoms/org");
8
8
 
9
9
  //#region src/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.ts
@@ -1,8 +1,8 @@
1
- import { useAtomValue } from "jotai";
2
- import { FeatureGates } from "@envive-ai/react-hooks/application/models";
3
1
  import { useMemo } from "react";
4
- import { FloatingButtonShow } from "@envive-ai/react-toolkit-v3/FloatingButton";
2
+ import { FeatureGates } from "@envive-ai/react-hooks/application/models";
3
+ import { useAtomValue } from "jotai";
5
4
  import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
5
+ import { FloatingButtonShow } from "@envive-ai/react-toolkit-v3/FloatingButton";
6
6
  import { featureFlagServiceAtom } from "@envive-ai/react-hooks/atoms/org";
7
7
 
8
8
  //#region src/widgets/FloatingChatWidget/hooks/useFloatingButtonVisibility.ts
@@ -2,10 +2,10 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
3
3
  require('../../hocs/withBaseWidget/index.cjs');
4
4
  const require_debugBar = require('../../debug/debugBar.cjs');
5
- let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
6
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
7
5
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
6
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
8
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
+ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
9
9
  let __envive_ai_react_toolkit_v3_FullPageSalesAgent = require("@envive-ai/react-toolkit-v3/FullPageSalesAgent");
10
10
 
11
11
  //#region src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime10 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts
4
4
 
@@ -8,7 +8,7 @@ interface FullPageSalesAgentBaseWidgetProps {
8
8
  declare const FullPageSalesAgentWidget: {
9
9
  ({
10
10
  widgetConfigId
11
- }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime10.JSX.Element;
11
+ }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime7.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime13 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts
4
4
 
@@ -8,7 +8,7 @@ interface FullPageSalesAgentBaseWidgetProps {
8
8
  declare const FullPageSalesAgentWidget: {
9
9
  ({
10
10
  widgetConfigId
11
- }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime13.JSX.Element;
11
+ }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime10.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  //#endregion
@@ -1,10 +1,10 @@
1
1
  import { withBaseWidget } from "../../hocs/withBaseWidget/withBaseWidget.js";
2
2
  import "../../hocs/withBaseWidget/index.js";
3
3
  import { DebugBar } from "../../debug/debugBar.js";
4
- import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
5
- import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
6
4
  import { FeatureGates } from "@envive-ai/react-hooks/application/models";
5
+ import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
7
6
  import { jsx } from "react/jsx-runtime";
7
+ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
8
8
  import { FullPageSalesAgent } from "@envive-ai/react-toolkit-v3/FullPageSalesAgent";
9
9
 
10
10
  //#region src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx
@@ -2,18 +2,18 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
3
3
  require('../../hocs/withBaseWidget/index.cjs');
4
4
  const require_functions = require('../utils/functions.cjs');
5
- let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
6
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
7
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
8
5
  let react = require("react");
9
6
  let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
7
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
8
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
10
9
  let react_jsx_runtime = require("react/jsx-runtime");
11
10
  let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
11
+ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
12
12
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
13
+ let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
13
14
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
14
15
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
15
16
  let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
16
- let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
17
17
  let __envive_ai_react_toolkit_v3_ProductCard = require("@envive-ai/react-toolkit-v3/ProductCard");
18
18
  let __envive_ai_react_toolkit_v3_PromptButton_types = require("@envive-ai/react-toolkit-v3/PromptButton/types");
19
19
 
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime16 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/ProductCardWidget/ProductCardWidget.d.ts
4
4
  interface ProductCardWidgetProps {
@@ -7,7 +7,7 @@ interface ProductCardWidgetProps {
7
7
  declare const ProductCardWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: ProductCardWidgetProps): react_jsx_runtime16.JSX.Element;
10
+ }: ProductCardWidgetProps): react_jsx_runtime3.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime19 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/ProductCardWidget/ProductCardWidget.d.ts
4
4
  interface ProductCardWidgetProps {
@@ -7,7 +7,7 @@ interface ProductCardWidgetProps {
7
7
  declare const ProductCardWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: ProductCardWidgetProps): react_jsx_runtime19.JSX.Element;
10
+ }: ProductCardWidgetProps): react_jsx_runtime9.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,18 +1,18 @@
1
1
  import { withBaseWidget } from "../../hocs/withBaseWidget/withBaseWidget.js";
2
2
  import "../../hocs/withBaseWidget/index.js";
3
3
  import { getStringIdForText } from "../utils/functions.js";
4
- import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
5
- import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
6
- import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
7
4
  import { useCallback } from "react";
8
5
  import { EnviveMetricsEventName, useAmplitude } from "@envive-ai/react-hooks/contexts/amplitudeContext";
6
+ import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
7
+ import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
9
8
  import { jsx } from "react/jsx-runtime";
10
9
  import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
10
+ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
11
11
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
12
+ import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
12
13
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
13
14
  import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
14
15
  import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
15
- import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
16
16
  import { ProductCard, ProductCardVariant } from "@envive-ai/react-toolkit-v3/ProductCard";
17
17
  import { PromptButtonVariant } from "@envive-ai/react-toolkit-v3/PromptButton/types";
18
18
 
@@ -1,20 +1,20 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_withBaseWidget = require('../../hocs/withBaseWidget/withBaseWidget.cjs');
3
3
  const require_functions = require('../utils/functions.cjs');
4
- let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
5
- let jotai = require("jotai");
6
- let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
7
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
8
4
  let react = require("react");
9
5
  let __envive_ai_react_hooks_contexts_amplitudeContext = require("@envive-ai/react-hooks/contexts/amplitudeContext");
6
+ let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
7
+ let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
10
8
  let react_jsx_runtime = require("react/jsx-runtime");
11
9
  let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
10
+ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
12
11
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
12
+ let jotai = require("jotai");
13
+ let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
14
+ let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
13
15
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
14
16
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
15
17
  let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
16
- let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
17
- let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
18
18
  let __envive_ai_react_toolkit_v3_PromptButtonCarouselWithImage = require("@envive-ai/react-toolkit-v3/PromptButtonCarouselWithImage");
19
19
  let __envive_ai_react_hooks_hooks_ProductImageUrl = require("@envive-ai/react-hooks/hooks/ProductImageUrl");
20
20