@envive-ai/react-widgets-v3 0.3.48 → 0.3.50

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 (55) hide show
  1. package/dist/CXIntegration/implementations/useTalkdeskUnifiedCXButton.cjs +33 -8
  2. package/dist/CXIntegration/implementations/useTalkdeskUnifiedCXButton.js +33 -8
  3. package/dist/debug/reportIssue.cjs +1 -1
  4. package/dist/debug/reportIssue.js +1 -1
  5. package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
  6. package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
  7. package/dist/packages/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.ts +2 -2
  8. package/dist/packages/widgets/dist/SuggestionBar/SuggestionBar.d.ts +2 -2
  9. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +3 -3
  10. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
  11. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
  12. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +3 -3
  13. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
  14. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
  15. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +2 -2
  16. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
  17. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
  18. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +2 -2
  19. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +1 -1
  20. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
  21. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
  22. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +1 -1
  23. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +2 -2
  24. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +2 -2
  25. package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +1 -1
  26. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
  27. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
  28. package/dist/widgets/ProductCardWidget/ProductCardWidget.js +1 -1
  29. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +2 -2
  30. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
  31. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
  32. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +2 -2
  33. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +1 -1
  34. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
  35. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
  36. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +1 -1
  37. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +1 -1
  38. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
  39. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
  40. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +1 -1
  41. package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +2 -2
  42. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
  43. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
  44. package/dist/widgets/SocialProofWidget/SocialProofWidget.js +2 -2
  45. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
  46. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +1 -1
  47. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
  48. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
  49. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +1 -1
  50. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
  51. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
  52. package/dist/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
  53. package/dist/widgets/dist/SuggestionBar/SuggestionBar.d.cts +2 -2
  54. package/package.json +1 -1
  55. package/src/CXIntegration/implementations/useTalkdeskUnifiedCXButton.ts +45 -8
@@ -4,16 +4,41 @@ let __envive_ai_react_hooks_application_utils = require("@envive-ai/react-hooks/
4
4
  let __envive_ai_react_hooks_hooks_ElementObserver = require("@envive-ai/react-hooks/hooks/ElementObserver");
5
5
 
6
6
  //#region src/CXIntegration/implementations/useTalkdeskUnifiedCXButton.ts
7
+ const TALKDESK_TRIGGER_ID = "talkdesk-chat-widget-trigger";
8
+ const HIDE_STYLE_ID = "envive-talkdesk-trigger-hide";
9
+ /**
10
+ * Hide the merchant trigger with an injected CSS rule instead of toggling
11
+ * `display` on a specific element reference.
12
+ *
13
+ * Talkdesk frequently removes and re-creates its trigger node (repositioning the
14
+ * widget, opening/closing, general re-renders). A rule keyed by the element id
15
+ * keeps applying no matter how many times the node is swapped out, whereas the
16
+ * observer's cached reference can end up stale/detached — in which case hiding it
17
+ * silently does nothing and the merchant button reappears next to ours. That
18
+ * decoupling is the intermittent "both buttons show" bug.
19
+ */
20
+ const hideMerchantTrigger = () => {
21
+ if (document.getElementById(HIDE_STYLE_ID)) return;
22
+ const style = document.createElement("style");
23
+ style.id = HIDE_STYLE_ID;
24
+ style.textContent = `#${TALKDESK_TRIGGER_ID} { display: none !important; }`;
25
+ document.head.appendChild(style);
26
+ };
27
+ const showMerchantTrigger = () => {
28
+ document.getElementById(HIDE_STYLE_ID)?.remove();
29
+ };
7
30
  const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMerchantButton }) => {
8
31
  const talkdeskButton = (0, __envive_ai_react_hooks_hooks_ElementObserver.useElementObserver)(__envive_ai_react_hooks_application_utils.SelectorFactory.id("talkdesk-chat-widget-trigger"));
9
32
  const talkdeskWidget = (0, __envive_ai_react_hooks_hooks_ElementObserver.useElementObserver)(__envive_ai_react_hooks_application_utils.SelectorFactory.id("talkdesk-chat-widget"));
10
33
  const talkdeskContainer = (0, __envive_ai_react_hooks_hooks_ElementObserver.useElementObserver)(__envive_ai_react_hooks_application_utils.SelectorFactory.id("tdWebchat"));
11
34
  const enviveFloatingButton = (0, __envive_ai_react_hooks_hooks_ElementObserver.useElementObserver)(__envive_ai_react_hooks_application_utils.SelectorFactory.id(require_constants.FLOATING_BUTTON_ID));
12
35
  const toggle = () => {
36
+ const triggerButton = document.getElementById(TALKDESK_TRIGGER_ID);
37
+ if (!triggerButton) return;
13
38
  onSwitchToAgent();
14
39
  if (suppressMerchantButton) enviveFloatingButton.hide();
15
- talkdeskButton.show();
16
- talkdeskButton.fire("click");
40
+ showMerchantTrigger();
41
+ triggerButton.click();
17
42
  };
18
43
  const isTalkdeskButtonEnabled = () => {
19
44
  if (!document.getElementById("tdWebchat")) return false;
@@ -22,16 +47,16 @@ const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMercha
22
47
  const isSwitchEnabled = () => isTalkdeskButtonEnabled();
23
48
  talkdeskButton.onAdd(() => {
24
49
  if (suppressMerchantButton) {
25
- talkdeskButton.hide();
50
+ hideMerchantTrigger();
26
51
  enviveFloatingButton.show();
27
52
  }
28
53
  });
29
54
  talkdeskWidget.onAdd((el) => {
30
55
  if (el && suppressMerchantButton) if (el.getAttribute("aria-hidden") === "false") {
31
- talkdeskButton.show();
56
+ showMerchantTrigger();
32
57
  enviveFloatingButton.hide();
33
58
  } else {
34
- talkdeskButton.hide();
59
+ hideMerchantTrigger();
35
60
  enviveFloatingButton.show();
36
61
  }
37
62
  });
@@ -40,14 +65,14 @@ const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMercha
40
65
  const ariaHidden = el.getAttribute("aria-hidden");
41
66
  if (ariaHidden === "false") {
42
67
  if (suppressMerchantButton) {
43
- talkdeskButton.show();
68
+ showMerchantTrigger();
44
69
  enviveFloatingButton.hide();
45
70
  }
46
71
  }
47
72
  if (ariaHidden === "true") {
48
73
  onCXClose?.();
49
74
  if (suppressMerchantButton) {
50
- talkdeskButton.hide();
75
+ hideMerchantTrigger();
51
76
  enviveFloatingButton.show();
52
77
  }
53
78
  }
@@ -56,7 +81,7 @@ const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMercha
56
81
  talkdeskContainer.onRemove(() => {
57
82
  onCXClose?.();
58
83
  if (suppressMerchantButton) {
59
- talkdeskButton.hide();
84
+ hideMerchantTrigger();
60
85
  enviveFloatingButton.show();
61
86
  }
62
87
  });
@@ -3,16 +3,41 @@ import { SelectorFactory } from "@envive-ai/react-hooks/application/utils";
3
3
  import { useElementObserver } from "@envive-ai/react-hooks/hooks/ElementObserver";
4
4
 
5
5
  //#region src/CXIntegration/implementations/useTalkdeskUnifiedCXButton.ts
6
+ const TALKDESK_TRIGGER_ID = "talkdesk-chat-widget-trigger";
7
+ const HIDE_STYLE_ID = "envive-talkdesk-trigger-hide";
8
+ /**
9
+ * Hide the merchant trigger with an injected CSS rule instead of toggling
10
+ * `display` on a specific element reference.
11
+ *
12
+ * Talkdesk frequently removes and re-creates its trigger node (repositioning the
13
+ * widget, opening/closing, general re-renders). A rule keyed by the element id
14
+ * keeps applying no matter how many times the node is swapped out, whereas the
15
+ * observer's cached reference can end up stale/detached — in which case hiding it
16
+ * silently does nothing and the merchant button reappears next to ours. That
17
+ * decoupling is the intermittent "both buttons show" bug.
18
+ */
19
+ const hideMerchantTrigger = () => {
20
+ if (document.getElementById(HIDE_STYLE_ID)) return;
21
+ const style = document.createElement("style");
22
+ style.id = HIDE_STYLE_ID;
23
+ style.textContent = `#${TALKDESK_TRIGGER_ID} { display: none !important; }`;
24
+ document.head.appendChild(style);
25
+ };
26
+ const showMerchantTrigger = () => {
27
+ document.getElementById(HIDE_STYLE_ID)?.remove();
28
+ };
6
29
  const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMerchantButton }) => {
7
30
  const talkdeskButton = useElementObserver(SelectorFactory.id("talkdesk-chat-widget-trigger"));
8
31
  const talkdeskWidget = useElementObserver(SelectorFactory.id("talkdesk-chat-widget"));
9
32
  const talkdeskContainer = useElementObserver(SelectorFactory.id("tdWebchat"));
10
33
  const enviveFloatingButton = useElementObserver(SelectorFactory.id(FLOATING_BUTTON_ID));
11
34
  const toggle = () => {
35
+ const triggerButton = document.getElementById(TALKDESK_TRIGGER_ID);
36
+ if (!triggerButton) return;
12
37
  onSwitchToAgent();
13
38
  if (suppressMerchantButton) enviveFloatingButton.hide();
14
- talkdeskButton.show();
15
- talkdeskButton.fire("click");
39
+ showMerchantTrigger();
40
+ triggerButton.click();
16
41
  };
17
42
  const isTalkdeskButtonEnabled = () => {
18
43
  if (!document.getElementById("tdWebchat")) return false;
@@ -21,16 +46,16 @@ const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMercha
21
46
  const isSwitchEnabled = () => isTalkdeskButtonEnabled();
22
47
  talkdeskButton.onAdd(() => {
23
48
  if (suppressMerchantButton) {
24
- talkdeskButton.hide();
49
+ hideMerchantTrigger();
25
50
  enviveFloatingButton.show();
26
51
  }
27
52
  });
28
53
  talkdeskWidget.onAdd((el) => {
29
54
  if (el && suppressMerchantButton) if (el.getAttribute("aria-hidden") === "false") {
30
- talkdeskButton.show();
55
+ showMerchantTrigger();
31
56
  enviveFloatingButton.hide();
32
57
  } else {
33
- talkdeskButton.hide();
58
+ hideMerchantTrigger();
34
59
  enviveFloatingButton.show();
35
60
  }
36
61
  });
@@ -39,14 +64,14 @@ const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMercha
39
64
  const ariaHidden = el.getAttribute("aria-hidden");
40
65
  if (ariaHidden === "false") {
41
66
  if (suppressMerchantButton) {
42
- talkdeskButton.show();
67
+ showMerchantTrigger();
43
68
  enviveFloatingButton.hide();
44
69
  }
45
70
  }
46
71
  if (ariaHidden === "true") {
47
72
  onCXClose?.();
48
73
  if (suppressMerchantButton) {
49
- talkdeskButton.hide();
74
+ hideMerchantTrigger();
50
75
  enviveFloatingButton.show();
51
76
  }
52
77
  }
@@ -55,7 +80,7 @@ const useTalkdeskUnifiedCXButton = ({ onSwitchToAgent, onCXClose, suppressMercha
55
80
  talkdeskContainer.onRemove(() => {
56
81
  onCXClose?.();
57
82
  if (suppressMerchantButton) {
58
- talkdeskButton.hide();
83
+ hideMerchantTrigger();
59
84
  enviveFloatingButton.show();
60
85
  }
61
86
  });
@@ -8,11 +8,11 @@ let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
9
9
  let jotai = require("jotai");
10
10
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
11
- let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
12
11
  let classnames = require("classnames");
13
12
  classnames = require_rolldown_runtime.__toESM(classnames);
14
13
  let __envive_ai_react_hooks_application_commerce_api = require("@envive-ai/react-hooks/application/commerce-api");
15
14
  __envive_ai_react_hooks_application_commerce_api = require_rolldown_runtime.__toESM(__envive_ai_react_hooks_application_commerce_api);
15
+ let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
16
16
  let __envive_ai_react_hooks_atoms_envive_enviveConfig = require("@envive-ai/react-hooks/atoms/envive/enviveConfig");
17
17
  let __envive_ai_react_hooks_application_utils = require("@envive-ai/react-hooks/application/utils");
18
18
 
@@ -6,10 +6,10 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
7
7
  import { useAtomValue } from "jotai";
8
8
  import { MessageType } from "@envive-ai/react-hooks/application/models";
9
- import { userIdAtom } from "@envive-ai/react-hooks/atoms/app";
10
9
  import { ReportSessionRequestReportPriorityEnum, ReportSessionRequestReportTypeEnum } from "@spiffy-ai/commerce-api-client";
11
10
  import classNames from "classnames";
12
11
  import CommerceApiClient from "@envive-ai/react-hooks/application/commerce-api";
12
+ import { userIdAtom } from "@envive-ai/react-hooks/atoms/app";
13
13
  import { orgShortNameAtom } from "@envive-ai/react-hooks/atoms/envive/enviveConfig";
14
14
  import { StringUtils, validateEmail } from "@envive-ai/react-hooks/application/utils";
15
15
 
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps, WithBaseWidgetOptions } from "./types.cjs";
2
- import * as react_jsx_runtime10 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/hocs/withBaseWidget/withBaseWidget.d.ts
5
5
  declare function withBaseWidget<P extends BaseWidgetProps>(Widget: React.ComponentType<P>, options?: WithBaseWidgetOptions): {
6
- (props: P): react_jsx_runtime10.JSX.Element;
6
+ (props: P): react_jsx_runtime1.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  //#endregion
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps, WithBaseWidgetOptions } from "./types.js";
2
- import * as react_jsx_runtime19 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/hocs/withBaseWidget/withBaseWidget.d.ts
5
5
  declare function withBaseWidget<P extends BaseWidgetProps>(Widget: React.ComponentType<P>, options?: WithBaseWidgetOptions): {
6
- (props: P): react_jsx_runtime19.JSX.Element;
6
+ (props: P): react_jsx_runtime11.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region ../widgets/dist/SearchZeroState/SearchZeroStateWidget.d.ts
4
4
  //#region src/SearchZeroState/SearchZeroStateWidget.d.ts
@@ -11,7 +11,7 @@ declare const SearchZeroStateWidget: ({
11
11
  initialIsOpen,
12
12
  widgetConfigId,
13
13
  entryPointRef
14
- }: SearchZeroStateWidgetProps) => react_jsx_runtime3.JSX.Element;
14
+ }: SearchZeroStateWidgetProps) => react_jsx_runtime2.JSX.Element;
15
15
  //#endregion
16
16
 
17
17
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { SuggestionBarLocationForMetrics } from "./types.js";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
  import { SuggestionButtonVariant } from "@envive-ai/react-hooks/contexts/types";
4
4
  import { Message } from "postcss";
5
5
 
@@ -30,7 +30,7 @@ declare function SuggestionBar({
30
30
  buttonBorderRadius,
31
31
  handleReply,
32
32
  dataTestId
33
- }: Readonly<SuggestionBarProps>): react_jsx_runtime2.JSX.Element;
33
+ }: Readonly<SuggestionBarProps>): react_jsx_runtime3.JSX.Element;
34
34
  //#endregion
35
35
  //#endregion
36
36
  export { SuggestionBar };
@@ -11,13 +11,13 @@ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/c
11
11
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
12
12
  let jotai = require("jotai");
13
13
  let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
14
+ let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
14
15
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
15
- let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
16
16
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
17
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");
19
18
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
20
- let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
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_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 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_runtime16.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime18.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_runtime16.JSX.Element;
15
+ }: ChatPreviewComparisonWidgetProps): react_jsx_runtime18.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_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 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_runtime12.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime0.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_runtime12.JSX.Element;
15
+ }: ChatPreviewComparisonWidgetProps): react_jsx_runtime0.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -10,13 +10,13 @@ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
10
10
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
11
11
  import { useAtomValue } from "jotai";
12
12
  import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
13
+ import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
13
14
  import { ChatElementDisplayLocationV3, FeatureGates, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
14
- import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
15
15
  import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
16
16
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
17
- import { ChatPreviewComparison } from "@envive-ai/react-toolkit-v3/ChatPreviewComparison";
18
17
  import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
19
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
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,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
2
- import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime2 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_runtime4.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime2.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_runtime4.JSX.Element;
14
+ }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime2.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_runtime9 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime7 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_runtime9.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime7.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_runtime9.JSX.Element;
14
+ }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime7.JSX.Element;
15
15
  //#endregion
16
16
  export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
@@ -11,12 +11,12 @@ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/c
11
11
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
12
12
  let jotai = require("jotai");
13
13
  let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
14
+ let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
14
15
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
15
16
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
16
17
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
17
- let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
18
- let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
19
18
  let __envive_ai_react_toolkit_v3_ChatPreview = require("@envive-ai/react-toolkit-v3/ChatPreview");
19
+ let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
20
20
 
21
21
  //#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx
22
22
  const ChatPreviewWidgetHandler = (props) => {
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
2
- import * as react_jsx_runtime6 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime8 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_runtime6.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime8.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_runtime6.JSX.Element;
15
+ }: ChatPreviewWidgetProps): react_jsx_runtime8.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_runtime15 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_runtime15.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_runtime15.JSX.Element;
15
+ }: ChatPreviewWidgetProps): react_jsx_runtime9.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -10,12 +10,12 @@ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
10
10
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
11
11
  import { useAtomValue } from "jotai";
12
12
  import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
13
+ import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
13
14
  import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
14
15
  import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
15
16
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
16
- import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
17
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
18
17
  import { ChatPreview } from "@envive-ai/react-toolkit-v3/ChatPreview";
18
+ import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
19
19
 
20
20
  //#region src/widgets/ChatPreviewWidget/ChatPreviewWidget.tsx
21
21
  const ChatPreviewWidgetHandler = (props) => {
@@ -17,10 +17,10 @@ let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/rea
17
17
  let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
18
18
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
19
19
  let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
20
+ let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
20
21
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
21
22
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
22
23
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
23
- let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
24
24
  let __envive_ai_react_toolkit_v3_FloatingButton = require("@envive-ai/react-toolkit-v3/FloatingButton");
25
25
 
26
26
  //#region src/widgets/FloatingChatWidget/FloatingChatWidget.tsx
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime15 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime7 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_runtime15.JSX.Element;
16
+ }?: FloatingChatWidgetProps): react_jsx_runtime7.JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime14 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 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_runtime14.JSX.Element;
16
+ }?: FloatingChatWidgetProps): react_jsx_runtime0.JSX.Element;
17
17
  displayName: string;
18
18
  };
19
19
  //#endregion
@@ -16,10 +16,10 @@ import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext
16
16
  import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
17
17
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
18
18
  import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
19
+ import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
19
20
  import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
20
21
  import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
21
22
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
22
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
23
23
  import { FloatingButton } from "@envive-ai/react-toolkit-v3/FloatingButton";
24
24
 
25
25
  //#region src/widgets/FloatingChatWidget/FloatingChatWidget.tsx
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 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_runtime1.JSX.Element;
11
+ }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime4.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime17 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 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_runtime17.JSX.Element;
11
+ }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime2.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  //#endregion
@@ -9,11 +9,11 @@ let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/rea
9
9
  let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
10
10
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
11
11
  let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
12
+ let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
12
13
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
13
14
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
14
15
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
15
16
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
16
- let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
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_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 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_runtime3.JSX.Element;
10
+ }: ProductCardWidgetProps): react_jsx_runtime12.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime19 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_runtime6.JSX.Element;
10
+ }: ProductCardWidgetProps): react_jsx_runtime19.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -8,11 +8,11 @@ import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext
8
8
  import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
9
9
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
10
10
  import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
11
+ import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
11
12
  import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
12
13
  import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
13
14
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
14
15
  import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
15
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
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
 
@@ -9,12 +9,12 @@ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/c
9
9
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
10
10
  let jotai = require("jotai");
11
11
  let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
12
+ let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
12
13
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
13
- let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
14
14
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
15
15
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
16
16
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
17
- let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
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
 
@@ -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_runtime13 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts
5
5
  declare const PromptButtonCarouselWithImageWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime8.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime13.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface PromptButtonCarouselWithImageWidgetProps {
@@ -12,7 +12,7 @@ interface PromptButtonCarouselWithImageWidgetProps {
12
12
  declare const PromptButtonCarouselWithImageWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: PromptButtonCarouselWithImageWidgetProps): react_jsx_runtime8.JSX.Element;
15
+ }: PromptButtonCarouselWithImageWidgetProps): react_jsx_runtime13.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_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts
5
5
  declare const PromptButtonCarouselWithImageWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime0.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime17.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface PromptButtonCarouselWithImageWidgetProps {
@@ -12,7 +12,7 @@ interface PromptButtonCarouselWithImageWidgetProps {
12
12
  declare const PromptButtonCarouselWithImageWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: PromptButtonCarouselWithImageWidgetProps): react_jsx_runtime0.JSX.Element;
15
+ }: PromptButtonCarouselWithImageWidgetProps): react_jsx_runtime17.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -8,12 +8,12 @@ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
8
8
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
9
9
  import { useAtomValue } from "jotai";
10
10
  import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
11
+ import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
11
12
  import { ChatElementDisplayLocationV3, FeatureGates, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
12
- import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
13
13
  import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
14
14
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
15
15
  import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
16
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
16
+ import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
17
17
  import { PromptButtonCarouselWithImage } from "@envive-ai/react-toolkit-v3/PromptButtonCarouselWithImage";
18
18
  import { useProductImageUrl } from "@envive-ai/react-hooks/hooks/ProductImageUrl";
19
19
 
@@ -8,10 +8,10 @@ let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let __envive_ai_react_hooks_contexts_salesAgentContext = require("@envive-ai/react-hooks/contexts/salesAgentContext");
9
9
  let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/contexts/typesV3");
10
10
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
11
+ let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
11
12
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
12
13
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
13
14
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
14
- let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
15
15
  let __envive_ai_react_toolkit_v3_PromptCarousel_types_types = require("@envive-ai/react-toolkit-v3/PromptCarousel/types/types");
16
16
 
17
17
  //#region src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime14 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts
4
4
  interface PromptCarouselWidgetProps {
@@ -7,7 +7,7 @@ interface PromptCarouselWidgetProps {
7
7
  declare const PromptCarouselWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: PromptCarouselWidgetProps): react_jsx_runtime14.JSX.Element;
10
+ }: PromptCarouselWidgetProps): react_jsx_runtime17.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts
4
4
  interface PromptCarouselWidgetProps {
@@ -7,7 +7,7 @@ interface PromptCarouselWidgetProps {
7
7
  declare const PromptCarouselWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: PromptCarouselWidgetProps): react_jsx_runtime11.JSX.Element;
10
+ }: PromptCarouselWidgetProps): react_jsx_runtime15.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -7,10 +7,10 @@ import { jsx } from "react/jsx-runtime";
7
7
  import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
8
8
  import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
9
9
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
10
+ import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
10
11
  import { ChatElementDisplayLocationV3 } from "@envive-ai/react-hooks/application/models";
11
12
  import { WidgetInteractionComponent } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
12
13
  import { PromptCarousel, usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
13
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
14
14
  import { AnimationSpeed as AnimationSpeed$1 } from "@envive-ai/react-toolkit-v3/PromptCarousel/types/types";
15
15
 
16
16
  //#region src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_ChatPreviewLoadingWidget = require('../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.cjs');
3
- const require_ChatPreviewComparisonWidget = require('../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs');
4
3
  const require_ChatPreviewWidget = require('../ChatPreviewWidget/ChatPreviewWidget.cjs');
4
+ const require_ChatPreviewComparisonWidget = require('../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs');
5
5
  const require_useGetWidgetStatus = require('../hooks/useGetWidgetStatus.cjs');
6
6
  const require_SocialProofWidget = require('../SocialProofWidget/SocialProofWidget.cjs');
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts
4
4
  interface SocialProofFlowWidgetProps {
@@ -7,7 +7,7 @@ interface SocialProofFlowWidgetProps {
7
7
  declare const SocialProofFlowWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: SocialProofFlowWidgetProps): react_jsx_runtime0.JSX.Element;
10
+ }: SocialProofFlowWidgetProps): react_jsx_runtime6.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts
4
4
  interface SocialProofFlowWidgetProps {
@@ -7,7 +7,7 @@ interface SocialProofFlowWidgetProps {
7
7
  declare const SocialProofFlowWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: SocialProofFlowWidgetProps): react_jsx_runtime3.JSX.Element;
10
+ }: SocialProofFlowWidgetProps): react_jsx_runtime16.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { ChatPreviewLoadingWidgetWithBaseWidget } from "../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js";
2
- import { ChatPreviewComparisonWidgetWithBaseWidget } from "../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js";
3
2
  import { ChatPreviewWidgetWithBaseWidget } from "../ChatPreviewWidget/ChatPreviewWidget.js";
3
+ import { ChatPreviewComparisonWidgetWithBaseWidget } from "../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js";
4
4
  import useGetWidgetStatus_default from "../hooks/useGetWidgetStatus.js";
5
5
  import { SocialProofWidgetWithBaseWidget } from "../SocialProofWidget/SocialProofWidget.js";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -9,14 +9,14 @@ let __envive_ai_react_hooks_contexts_typesV3 = require("@envive-ai/react-hooks/c
9
9
  let __envive_ai_react_hooks_hooks_ChatToggle = require("@envive-ai/react-hooks/hooks/ChatToggle");
10
10
  let jotai = require("jotai");
11
11
  let __envive_ai_react_hooks_contexts_featureFlagServiceContext = require("@envive-ai/react-hooks/contexts/featureFlagServiceContext");
12
+ let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
12
13
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
13
- let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
14
14
  let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
15
15
  let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
16
16
  let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
17
- let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
18
17
  let __envive_ai_react_hooks_atoms_widget = require("@envive-ai/react-hooks/atoms/widget");
19
18
  let __envive_ai_react_toolkit_v3_ChatPreviewLoading = require("@envive-ai/react-toolkit-v3/ChatPreviewLoading");
19
+ let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
20
20
  let __envive_ai_react_hooks_hooks_ProductImageUrl = require("@envive-ai/react-hooks/hooks/ProductImageUrl");
21
21
  let __envive_ai_react_toolkit_v3_SocialProof = require("@envive-ai/react-toolkit-v3/SocialProof");
22
22
 
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/SocialProofWidget/SocialProofWidget.d.ts
5
5
  declare const SocialProofWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime12.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime15.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface SocialProofWidgetProps {
@@ -12,7 +12,7 @@ interface SocialProofWidgetProps {
12
12
  declare const SocialProofWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: SocialProofWidgetProps): react_jsx_runtime12.JSX.Element;
15
+ }: SocialProofWidgetProps): react_jsx_runtime15.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_runtime7 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/SocialProofWidget/SocialProofWidget.d.ts
5
5
  declare const SocialProofWidgetWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime7.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime13.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface SocialProofWidgetProps {
@@ -12,7 +12,7 @@ interface SocialProofWidgetProps {
12
12
  declare const SocialProofWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: SocialProofWidgetProps): react_jsx_runtime7.JSX.Element;
15
+ }: SocialProofWidgetProps): react_jsx_runtime13.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -8,14 +8,14 @@ import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
8
8
  import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
9
9
  import { useAtomValue, useSetAtom } from "jotai";
10
10
  import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
11
+ import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
11
12
  import { ChatElementDisplayLocationV3, FeatureGates, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
12
- import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
13
13
  import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
14
14
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
15
15
  import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
16
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
17
16
  import { chatPreviewLoadingDataAtom } from "@envive-ai/react-hooks/atoms/widget";
18
17
  import { ChatPreviewLoading } from "@envive-ai/react-toolkit-v3/ChatPreviewLoading";
18
+ import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
19
19
  import { useProductImageUrl } from "@envive-ai/react-hooks/hooks/ProductImageUrl";
20
20
  import { PageVariant, SocialProof, WidgetKind } from "@envive-ai/react-toolkit-v3/SocialProof";
21
21
 
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts
4
4
  interface TitledPromptCarouselWidgetProps {
@@ -7,7 +7,7 @@ interface TitledPromptCarouselWidgetProps {
7
7
  declare const TitledPromptCarouselWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: TitledPromptCarouselWidgetProps): react_jsx_runtime4.JSX.Element;
10
+ }: TitledPromptCarouselWidgetProps): react_jsx_runtime12.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_ChatPreviewLoadingWidget = require('../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.cjs');
3
- const require_ChatPreviewComparisonWidget = require('../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs');
4
3
  const require_ChatPreviewWidget = require('../ChatPreviewWidget/ChatPreviewWidget.cjs');
4
+ const require_ChatPreviewComparisonWidget = require('../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs');
5
5
  const require_useGetWidgetStatus = require('../hooks/useGetWidgetStatus.cjs');
6
6
  const require_TypingAnimationWidget = require('../TypingAnimationWidget/TypingAnimationWidget.cjs');
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts
4
4
  interface TypingAnimationFlowWidgetProps {
@@ -7,7 +7,7 @@ interface TypingAnimationFlowWidgetProps {
7
7
  declare const TypingAnimationFlowWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: TypingAnimationFlowWidgetProps): react_jsx_runtime11.JSX.Element;
10
+ }: TypingAnimationFlowWidgetProps): react_jsx_runtime0.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts
4
4
  interface TypingAnimationFlowWidgetProps {
@@ -7,7 +7,7 @@ interface TypingAnimationFlowWidgetProps {
7
7
  declare const TypingAnimationFlowWidget: {
8
8
  ({
9
9
  widgetConfigId
10
- }: TypingAnimationFlowWidgetProps): react_jsx_runtime5.JSX.Element;
10
+ }: TypingAnimationFlowWidgetProps): react_jsx_runtime4.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { ChatPreviewLoadingWidgetWithBaseWidget } from "../ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.js";
2
- import { ChatPreviewComparisonWidgetWithBaseWidget } from "../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js";
3
2
  import { ChatPreviewWidgetWithBaseWidget } from "../ChatPreviewWidget/ChatPreviewWidget.js";
3
+ import { ChatPreviewComparisonWidgetWithBaseWidget } from "../ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js";
4
4
  import useGetWidgetStatus_default from "../hooks/useGetWidgetStatus.js";
5
5
  import { TypingAnimationWithBaseWidget } from "../TypingAnimationWidget/TypingAnimationWidget.js";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.cjs";
2
- import * as react_jsx_runtime18 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts
5
5
  declare const TypingAnimationWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime18.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime10.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface TypingAnimationWidgetProps {
@@ -12,7 +12,7 @@ interface TypingAnimationWidgetProps {
12
12
  declare const TypingAnimationWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: TypingAnimationWidgetProps): react_jsx_runtime18.JSX.Element;
15
+ }: TypingAnimationWidgetProps): react_jsx_runtime10.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_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts
5
5
  declare const TypingAnimationWithBaseWidget: {
6
- (props: BaseWidgetProps): react_jsx_runtime1.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime5.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface TypingAnimationWidgetProps {
@@ -12,7 +12,7 @@ interface TypingAnimationWidgetProps {
12
12
  declare const TypingAnimationWidget: {
13
13
  ({
14
14
  widgetConfigId
15
- }: TypingAnimationWidgetProps): react_jsx_runtime1.JSX.Element;
15
+ }: TypingAnimationWidgetProps): react_jsx_runtime5.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region ../widgets/dist/SearchZeroState/SearchZeroStateWidget.d.ts
4
4
  //#region src/SearchZeroState/SearchZeroStateWidget.d.ts
@@ -11,7 +11,7 @@ declare const SearchZeroStateWidget: ({
11
11
  initialIsOpen,
12
12
  widgetConfigId,
13
13
  entryPointRef
14
- }: SearchZeroStateWidgetProps) => react_jsx_runtime3.JSX.Element;
14
+ }: SearchZeroStateWidgetProps) => react_jsx_runtime2.JSX.Element;
15
15
  //#endregion
16
16
 
17
17
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { SuggestionBarLocationForMetrics } from "./types.cjs";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
3
  import { SuggestionButtonVariant } from "@envive-ai/react-hooks/contexts/types";
4
4
  import { Message } from "postcss";
5
5
 
@@ -30,7 +30,7 @@ declare function SuggestionBar({
30
30
  buttonBorderRadius,
31
31
  handleReply,
32
32
  dataTestId
33
- }: Readonly<SuggestionBarProps>): react_jsx_runtime2.JSX.Element;
33
+ }: Readonly<SuggestionBarProps>): react_jsx_runtime3.JSX.Element;
34
34
  //#endregion
35
35
  //#endregion
36
36
  export { SuggestionBar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envive-ai/react-widgets-v3",
3
- "version": "0.3.48",
3
+ "version": "0.3.50",
4
4
  "description": "React widget library v3 for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -3,6 +3,34 @@ import { useElementObserver } from '@envive-ai/react-hooks/hooks/ElementObserver
3
3
  import { FLOATING_BUTTON_ID } from '../../widgets/FloatingChatWidget/constants';
4
4
  import { CustomerServiceImplProps, UnifiedCXButton } from '../types';
5
5
 
6
+ const TALKDESK_TRIGGER_ID = 'talkdesk-chat-widget-trigger';
7
+ const HIDE_STYLE_ID = 'envive-talkdesk-trigger-hide';
8
+
9
+ /**
10
+ * Hide the merchant trigger with an injected CSS rule instead of toggling
11
+ * `display` on a specific element reference.
12
+ *
13
+ * Talkdesk frequently removes and re-creates its trigger node (repositioning the
14
+ * widget, opening/closing, general re-renders). A rule keyed by the element id
15
+ * keeps applying no matter how many times the node is swapped out, whereas the
16
+ * observer's cached reference can end up stale/detached — in which case hiding it
17
+ * silently does nothing and the merchant button reappears next to ours. That
18
+ * decoupling is the intermittent "both buttons show" bug.
19
+ */
20
+ const hideMerchantTrigger = () => {
21
+ if (document.getElementById(HIDE_STYLE_ID)) {
22
+ return;
23
+ }
24
+ const style = document.createElement('style');
25
+ style.id = HIDE_STYLE_ID;
26
+ style.textContent = `#${TALKDESK_TRIGGER_ID} { display: none !important; }`;
27
+ document.head.appendChild(style);
28
+ };
29
+
30
+ const showMerchantTrigger = () => {
31
+ document.getElementById(HIDE_STYLE_ID)?.remove();
32
+ };
33
+
6
34
  interface UseTalkdeskUnifiedCXButtonProps extends CustomerServiceImplProps {}
7
35
 
8
36
  export const useTalkdeskUnifiedCXButton = ({
@@ -16,12 +44,21 @@ export const useTalkdeskUnifiedCXButton = ({
16
44
  const enviveFloatingButton = useElementObserver(SelectorFactory.id(FLOATING_BUTTON_ID));
17
45
 
18
46
  const toggle = () => {
47
+ // Resolve the trigger from the live DOM at click time rather than relying on
48
+ // the observer's cached node, which Talkdesk's frequent re-renders can leave
49
+ // stale — firing on a detached node would silently no-op.
50
+ const triggerButton = document.getElementById(TALKDESK_TRIGGER_ID) as HTMLElement | null;
51
+
52
+ if (!triggerButton) {
53
+ return;
54
+ }
55
+
19
56
  onSwitchToAgent();
20
57
  if (suppressMerchantButton) {
21
58
  enviveFloatingButton.hide();
22
59
  }
23
- talkdeskButton.show();
24
- talkdeskButton.fire('click');
60
+ showMerchantTrigger();
61
+ triggerButton.click();
25
62
  };
26
63
 
27
64
  const isTalkdeskButtonEnabled = () => {
@@ -39,7 +76,7 @@ export const useTalkdeskUnifiedCXButton = ({
39
76
  // Hide Talkdesk button when it's added to DOM (if suppressMerchantButton is enabled)
40
77
  talkdeskButton.onAdd(() => {
41
78
  if (suppressMerchantButton) {
42
- talkdeskButton.hide();
79
+ hideMerchantTrigger();
43
80
  enviveFloatingButton.show();
44
81
  }
45
82
  });
@@ -51,11 +88,11 @@ export const useTalkdeskUnifiedCXButton = ({
51
88
 
52
89
  // Widget is open initially (aria-hidden="false")
53
90
  if (ariaHidden === 'false') {
54
- talkdeskButton.show();
91
+ showMerchantTrigger();
55
92
  enviveFloatingButton.hide();
56
93
  } else {
57
94
  // Widget is closed initially
58
- talkdeskButton.hide();
95
+ hideMerchantTrigger();
59
96
  enviveFloatingButton.show();
60
97
  }
61
98
  }
@@ -69,7 +106,7 @@ export const useTalkdeskUnifiedCXButton = ({
69
106
  // Widget is open (aria-hidden="false")
70
107
  if (ariaHidden === 'false') {
71
108
  if (suppressMerchantButton) {
72
- talkdeskButton.show();
109
+ showMerchantTrigger();
73
110
  enviveFloatingButton.hide();
74
111
  }
75
112
  }
@@ -78,7 +115,7 @@ export const useTalkdeskUnifiedCXButton = ({
78
115
  if (ariaHidden === 'true') {
79
116
  onCXClose?.();
80
117
  if (suppressMerchantButton) {
81
- talkdeskButton.hide();
118
+ hideMerchantTrigger();
82
119
  enviveFloatingButton.show();
83
120
  }
84
121
  }
@@ -89,7 +126,7 @@ export const useTalkdeskUnifiedCXButton = ({
89
126
  talkdeskContainer.onRemove(() => {
90
127
  onCXClose?.();
91
128
  if (suppressMerchantButton) {
92
- talkdeskButton.hide();
129
+ hideMerchantTrigger();
93
130
  enviveFloatingButton.show();
94
131
  }
95
132
  });