@envive-ai/react-widgets-v3 0.3.15-beta.0 → 0.3.15

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 (111) hide show
  1. package/dist/hocs/withBaseWidget/types.d.cts +3 -3
  2. package/dist/hocs/withBaseWidget/types.d.ts +3 -5
  3. package/dist/hocs/withBaseWidget/withBaseWidget.d.cts +2 -2
  4. package/dist/hocs/withBaseWidget/withBaseWidget.d.ts +2 -2
  5. package/dist/packages/widgets/dist/SearchResults/SearchResults.d.ts +2 -3
  6. package/dist/packages/widgets/dist/SearchResults/SearchResultsWidget.d.ts +2 -2
  7. package/dist/packages/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.ts +2 -2
  8. package/dist/packages/widgets/dist/SearchZeroState/index.d.ts +1 -2
  9. package/dist/packages/widgets/dist/SearchZeroState/types.d.ts +2 -2
  10. package/dist/packages/widgets/dist/SuggestionBar/SuggestionBar.d.ts +3 -3
  11. package/dist/packages/widgets/dist/SuggestionButtonContainer/types.d.ts +2 -3
  12. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +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.d.cts +3 -3
  16. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
  17. package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +0 -2
  18. package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +0 -2
  19. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
  20. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
  21. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +2 -2
  22. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +2 -2
  23. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
  24. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
  25. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +19 -0
  26. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
  27. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
  28. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +19 -0
  29. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
  30. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
  31. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
  32. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
  33. package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +50 -3
  34. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
  35. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
  36. package/dist/widgets/SocialProofWidget/SocialProofWidget.js +51 -4
  37. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +9 -0
  38. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
  39. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
  40. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +10 -1
  41. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
  42. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
  43. package/dist/widgets/dist/SearchResults/SearchResults.d.cts +2 -3
  44. package/dist/widgets/dist/SearchResults/SearchResultsWidget.d.cts +2 -2
  45. package/dist/widgets/dist/SearchZeroState/SearchZeroStateWidget.d.cts +2 -2
  46. package/dist/widgets/dist/SearchZeroState/types.d.cts +2 -2
  47. package/dist/widgets/dist/SuggestionBar/SuggestionBar.d.cts +3 -3
  48. package/dist/widgets/dist/SuggestionButtonContainer/types.d.cts +2 -3
  49. package/dist/widgets/utils/functions.cjs +0 -14
  50. package/dist/widgets/utils/functions.js +1 -14
  51. package/dist/widgets-v2/SearchZeroState/index.d.cts +1 -2
  52. package/dist/widgets-v2/SearchZeroState/index.d.ts +1 -2
  53. package/dist/widgets-v2/SuggestionButtonContainer/index.d.ts +0 -1
  54. package/package.json +1 -1
  55. package/src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx +0 -6
  56. package/src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx +38 -8
  57. package/src/widgets/PromptCarouselWidget/PromptCarouselWidget.tsx +3 -2
  58. package/src/widgets/SocialProofWidget/SocialProofWidget.tsx +77 -7
  59. package/src/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.tsx +23 -8
  60. package/dist/hooks/dist/application/models/api/widgetText.d.cts +0 -8
  61. package/dist/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.cts +0 -12
  62. package/dist/hooks/dist/contexts/types.d.cts +0 -38
  63. package/dist/hooks/dist/contexts/typesV3.d.cts +0 -239
  64. package/dist/hooks/dist/services/amplitudeService/eventNames.d.cts +0 -43
  65. package/dist/hooks/dist/types/customerService.d.cts +0 -21
  66. package/dist/packages/hooks/dist/application/models/api/orgConfigResults.d.ts +0 -1
  67. package/dist/packages/hooks/dist/application/models/api/widgetText.d.ts +0 -8
  68. package/dist/packages/hooks/dist/application/models/frontendConfig.d.ts +0 -1
  69. package/dist/packages/hooks/dist/contexts/amplitudeContext/amplitudeContext.d.ts +0 -2
  70. package/dist/packages/hooks/dist/contexts/amplitudeContext/index.d.ts +0 -2
  71. package/dist/packages/hooks/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.ts +0 -2
  72. package/dist/packages/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts +0 -14
  73. package/dist/packages/hooks/dist/contexts/hardcopyContext/index.d.ts +0 -1
  74. package/dist/packages/hooks/dist/contexts/types.d.ts +0 -42
  75. package/dist/packages/hooks/dist/contexts/typesV3.d.ts +0 -239
  76. package/dist/packages/hooks/dist/services/amplitudeService/amplitudeService.d.ts +0 -1
  77. package/dist/packages/hooks/dist/services/amplitudeService/eventNames.d.ts +0 -43
  78. package/dist/packages/hooks/dist/types/customerService.d.ts +0 -21
  79. package/dist/packages/widgets/dist/SuggestionButtonContainer/index.d.ts +0 -2
  80. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/api/response.d.ts +0 -14
  81. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/api/search.d.ts +0 -15
  82. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCase.d.ts +0 -73
  83. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +0 -61
  84. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/internal.d.ts +0 -25
  85. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/splitWords.d.ts +0 -35
  86. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/trim.d.ts +0 -32
  87. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +0 -32
  88. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/variantInfo/variantInfo.d.ts +0 -1
  89. package/dist/packages/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.ts +0 -15
  90. package/dist/packages/widgets/dist/packages/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts +0 -1
  91. package/dist/packages/widgets/dist/packages/hooks/dist/contexts/types.d.ts +0 -63
  92. package/dist/packages/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.ts +0 -60
  93. package/dist/packages/widgets/dist/packages/hooks/dist/hooks/utils.d.ts +0 -13
  94. package/dist/packages/widgets/dist/packages/hooks/dist/types/OrgInfo.d.ts +0 -1
  95. package/dist/packages/widgets/dist/packages/hooks/dist/types/index.d.ts +0 -1
  96. package/dist/packages/widgets/dist/packages/hooks/dist/types/search-filter-types.d.ts +0 -28
  97. package/dist/packages/widgets/dist/packages/hooks/dist/types/test-types.d.ts +0 -10
  98. package/dist/widgets/dist/packages/hooks/dist/application/models/api/response.d.cts +0 -14
  99. package/dist/widgets/dist/packages/hooks/dist/application/models/api/search.d.cts +0 -15
  100. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCase.d.cts +0 -73
  101. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.cts +0 -61
  102. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/internal.d.cts +0 -25
  103. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/splitWords.d.cts +0 -35
  104. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/trim.d.cts +0 -32
  105. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/unknownArray.d.cts +0 -32
  106. package/dist/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.cts +0 -14
  107. package/dist/widgets/dist/packages/hooks/dist/contexts/types.d.cts +0 -61
  108. package/dist/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.cts +0 -60
  109. package/dist/widgets/dist/packages/hooks/dist/hooks/utils.d.cts +0 -12
  110. package/dist/widgets/dist/packages/hooks/dist/types/search-filter-types.d.cts +0 -28
  111. package/dist/widgets/dist/packages/hooks/dist/types/test-types.d.cts +0 -10
@@ -1,7 +1,7 @@
1
- import { SpiffyMetricsEventName } from "../../hooks/dist/services/amplitudeService/eventNames.cjs";
2
- import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "../../hooks/dist/contexts/typesV3.cjs";
3
- import { HardcopyResponse } from "../../hooks/dist/contexts/hardcopyContext/hardcopyContext.cjs";
4
1
  import { RefObject } from "react";
2
+ import { SpiffyMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
3
+ import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
4
+ import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
5
5
 
6
6
  //#region src/hocs/withBaseWidget/types.d.ts
7
7
  interface BaseWidgetProps {
@@ -1,9 +1,7 @@
1
- import { SpiffyMetricsEventName } from "../../packages/hooks/dist/services/amplitudeService/eventNames.js";
2
- import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "../../packages/hooks/dist/contexts/typesV3.js";
3
- import { HardcopyResponse } from "../../packages/hooks/dist/contexts/hardcopyContext/hardcopyContext.js";
4
- import "../../packages/hooks/dist/contexts/amplitudeContext/index.js";
5
- import "../../packages/hooks/dist/contexts/hardcopyContext/index.js";
6
1
  import { RefObject } from "react";
2
+ import { SpiffyMetricsEventName } from "@envive-ai/react-hooks/contexts/amplitudeContext";
3
+ import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
4
+ import { OrgUIConfigV3, WidgetConfigV3, WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
7
5
 
8
6
  //#region src/hocs/withBaseWidget/types.d.ts
9
7
  interface BaseWidgetProps {
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps, WithBaseWidgetOptions } from "./types.cjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 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_runtime0.JSX.Element;
6
+ (props: P): react_jsx_runtime10.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_runtime18 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 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_runtime18.JSX.Element;
6
+ (props: P): react_jsx_runtime0.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  //#endregion
@@ -1,14 +1,13 @@
1
- import { SearchResultsHocProps } from "../packages/hooks/dist/hooks/Search/useSearch.js";
2
1
  import { SearchResultsEntryPointWidgetConfig } from "./types.js";
3
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { SearchResultsHocProps } from "@envive-ai/react-hooks/hooks/Search";
4
4
 
5
5
  //#region ../widgets/dist/SearchResults/SearchResults.d.ts
6
-
7
6
  //#region src/SearchResults/SearchResults.d.ts
8
7
  interface SearchResultsProps extends SearchResultsHocProps {
9
8
  widgetConfig: SearchResultsEntryPointWidgetConfig;
10
9
  }
11
- declare const SearchResults: (props: Omit<SearchResultsProps, keyof SearchResultsHocProps>) => react_jsx_runtime0.JSX.Element;
10
+ declare const SearchResults: (props: Omit<SearchResultsProps, string | number | symbol>) => react_jsx_runtime0.JSX.Element;
12
11
  //#endregion
13
12
 
14
13
  //#endregion
@@ -1,8 +1,8 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
2
 
3
3
  //#region ../widgets/dist/SearchResults/SearchResultsWidget.d.ts
4
4
  //#region src/SearchResults/SearchResultsWidget.d.ts
5
- declare const SearchResultsWidget: () => react_jsx_runtime0.JSX.Element;
5
+ declare const SearchResultsWidget: () => react_jsx_runtime1.JSX.Element;
6
6
  //#endregion
7
7
 
8
8
  //#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,4 +1,3 @@
1
- import { SearchEntryPointWidgetConfig, SearchInputVariant } from "../packages/hooks/dist/contexts/types.js";
2
- import { SearchZeroStateProps } from "./types.js";
1
+ import { SearchEntryPointWidgetConfig, SearchInputVariant, SearchZeroStateProps } from "./types.js";
3
2
  import { SearchZeroState } from "./SearchZeroState.js";
4
3
  import { SearchZeroStateWidget } from "./SearchZeroStateWidget.js";
@@ -1,4 +1,4 @@
1
- import { SearchEntryPointWidgetConfig } from "../packages/hooks/dist/contexts/types.js";
1
+ import { SearchEntryPointWidgetConfig, SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
2
2
 
3
3
  //#region ../widgets/dist/SearchZeroState/types.d.ts
4
4
  //#region src/SearchZeroState/types.d.ts
@@ -10,4 +10,4 @@ interface SearchZeroStateProps {
10
10
  //#endregion
11
11
 
12
12
  //#endregion
13
- export { SearchZeroStateProps };
13
+ export { type SearchEntryPointWidgetConfig, type SearchInputVariant, SearchZeroStateProps };
@@ -1,6 +1,6 @@
1
- import { SuggestionButtonVariant } from "../packages/hooks/dist/contexts/types.js";
2
1
  import { SuggestionBarLocationForMetrics } from "./types.js";
3
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+ import { SuggestionButtonVariant } from "@envive-ai/react-hooks/contexts/types";
4
4
  import { Message } from "postcss";
5
5
 
6
6
  //#region ../widgets/dist/SuggestionBar/SuggestionBar.d.ts
@@ -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 };
@@ -1,6 +1,5 @@
1
- import { TestProps } from "../packages/hooks/dist/types/test-types.js";
2
- import { SuggestionButtonVariant } from "../packages/hooks/dist/contexts/types.js";
3
- import "../packages/hooks/dist/types/index.js";
1
+ import { SuggestionButtonVariant } from "@envive-ai/react-hooks/contexts/types";
2
+ import { TestProps } from "@envive-ai/react-hooks/types";
4
3
 
5
4
  //#region ../widgets/dist/SuggestionButtonContainer/types.d.ts
6
5
  //#region src/SuggestionButtonContainer/types.d.ts
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
2
- import * as react_jsx_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime14 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_runtime14.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_runtime14.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -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_runtime8 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_runtime16.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime8.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_runtime16.JSX.Element;
14
+ }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime8.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_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime3 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_runtime14.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime3.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_runtime14.JSX.Element;
14
+ }: ChatPreviewLoadingWidgetProps) => react_jsx_runtime3.JSX.Element;
15
15
  //#endregion
16
16
  export { ChatPreviewLoadingWidget, ChatPreviewLoadingWidgetProps, ChatPreviewLoadingWidgetWithBaseWidget };
@@ -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_runtime15 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_runtime4.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime15.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_runtime4.JSX.Element;
15
+ }: ChatPreviewWidgetProps): 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_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime16 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_runtime12.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime16.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_runtime12.JSX.Element;
15
+ }: ChatPreviewWidgetProps): react_jsx_runtime16.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -2,7 +2,6 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  let react_jsx_runtime = require("react/jsx-runtime");
3
3
  let classnames = require("classnames");
4
4
  classnames = require_rolldown_runtime.__toESM(classnames);
5
- let react_dom = require("react-dom");
6
5
  let framer_motion = require("framer-motion");
7
6
 
8
7
  //#region src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx
@@ -60,7 +59,6 @@ const FloatingChatOverlay = ({ children, isOpened, onClose, className, dataTestI
60
59
  })]
61
60
  }, "floating-chat-overlay") });
62
61
  if (previewMode) return chatWrapper;
63
- if (typeof document !== "undefined") return (0, react_dom.createPortal)(chatWrapper, document.body);
64
62
  return chatWrapper;
65
63
  };
66
64
  FloatingChatOverlay.displayName = "FloatingChatOverlay";
@@ -1,6 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import classNames from "classnames";
3
- import { createPortal } from "react-dom";
4
3
  import { AnimatePresence, motion } from "framer-motion";
5
4
 
6
5
  //#region src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx
@@ -58,7 +57,6 @@ const FloatingChatOverlay = ({ children, isOpened, onClose, className, dataTestI
58
57
  })]
59
58
  }, "floating-chat-overlay") });
60
59
  if (previewMode) return chatWrapper;
61
- if (typeof document !== "undefined") return createPortal(chatWrapper, document.body);
62
60
  return chatWrapper;
63
61
  };
64
62
  FloatingChatOverlay.displayName = "FloatingChatOverlay";
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime3 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/FloatingChatWidget/FloatingChatWidget.d.ts
4
4
  interface FloatingChatWidgetProps {
@@ -9,7 +9,7 @@ declare const FloatingChatWidget: {
9
9
  ({
10
10
  previewButtonOnly,
11
11
  previewChatAlwaysOpen
12
- }?: FloatingChatWidgetProps): react_jsx_runtime3.JSX.Element;
12
+ }?: FloatingChatWidgetProps): react_jsx_runtime14.JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/widgets/FloatingChatWidget/FloatingChatWidget.d.ts
4
4
  interface FloatingChatWidgetProps {
@@ -9,7 +9,7 @@ declare const FloatingChatWidget: {
9
9
  ({
10
10
  previewButtonOnly,
11
11
  previewChatAlwaysOpen
12
- }?: FloatingChatWidgetProps): react_jsx_runtime11.JSX.Element;
12
+ }?: FloatingChatWidgetProps): react_jsx_runtime10.JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime18 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime3 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_runtime18.JSX.Element;
11
+ }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime3.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 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_runtime9.JSX.Element;
11
+ }: FullPageSalesAgentBaseWidgetProps): react_jsx_runtime11.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 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_runtime1.JSX.Element;
10
+ }: ProductCardWidgetProps): react_jsx_runtime5.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime13 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_runtime8.JSX.Element;
10
+ }: ProductCardWidgetProps): react_jsx_runtime13.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -12,12 +12,17 @@ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/c
12
12
  let __envive_ai_react_toolkit_v3_Tokens = require("@envive-ai/react-toolkit-v3/Tokens");
13
13
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
14
14
  let __envive_ai_react_hooks_atoms_app = require("@envive-ai/react-hooks/atoms/app");
15
+ let __envive_ai_react_hooks_hooks_WidgetInteraction_types = require("@envive-ai/react-hooks/hooks/WidgetInteraction/types");
16
+ let __envive_ai_react_toolkit_v3_PromptCarousel = require("@envive-ai/react-toolkit-v3/PromptCarousel");
17
+ let __envive_ai_react_hooks_hooks_WidgetInteraction = require("@envive-ai/react-hooks/hooks/WidgetInteraction");
15
18
  let __envive_ai_react_toolkit_v3_PromptButtonCarouselWithImage = require("@envive-ai/react-toolkit-v3/PromptButtonCarouselWithImage");
16
19
 
17
20
  //#region src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx
18
21
  const PromptButtonCarouselWithImageWidgetHandler = (props) => {
19
22
  const { onTypedMessageSubmitted } = (0, __envive_ai_react_hooks_contexts_salesAgentContext.useSalesAgent)();
20
23
  const { openChat } = (0, __envive_ai_react_hooks_hooks_ChatToggle.useChatToggle)();
24
+ const { trackWidgetInteraction } = (0, __envive_ai_react_hooks_hooks_WidgetInteraction.useWidgetInteraction)();
25
+ const { onClick: onSuggestionClick, onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = (0, __envive_ai_react_toolkit_v3_PromptCarousel.usePromptCarouselAnalytics)(__envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.SINGLE_IMAGE_PROMPT, (text) => text);
21
26
  const { hardcopyContent, widgetConfig, isLoading, widgetConfigId } = props;
22
27
  const promptButtonCarouselWithImageWidgetConfig = widgetConfig;
23
28
  const id = widgetConfig?.contentId;
@@ -53,9 +58,17 @@ const PromptButtonCarouselWithImageWidgetHandler = (props) => {
53
58
  displayLocation: __envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.PROMPT_BUTTON_CAROUSEL_WITH_IMAGE_PROMPT_BUTTON
54
59
  });
55
60
  openChat(__envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.PROMPT_BUTTON_CAROUSEL_WITH_IMAGE_PROMPT_BUTTON);
61
+ onSuggestionClick(text);
56
62
  }, [onTypedMessageSubmitted, openChat]);
57
63
  const handleTextFieldClick = (0, react.useCallback)(() => {
58
64
  openChat(__envive_ai_react_hooks_application_models.ChatElementDisplayLocationV3.PROMPT_BUTTON_CAROUSEL_WITH_IMAGE_TEXT_FIELD);
65
+ trackWidgetInteraction({
66
+ eventName: __envive_ai_react_hooks_contexts_amplitudeContext.EnviveMetricsEventName.WidgetInteraction,
67
+ trigger: {
68
+ widget: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionComponent.SINGLE_IMAGE_PROMPT,
69
+ widget_interaction: __envive_ai_react_hooks_hooks_WidgetInteraction_types.WidgetInteractionType.QUERY_INPUT_CLICKED
70
+ }
71
+ });
59
72
  }, [openChat]);
60
73
  const variantInfo = (0, jotai.useAtomValue)(__envive_ai_react_hooks_atoms_app.variantInfoAtom);
61
74
  const productId = variantInfo.variant === __envive_ai_react_hooks_application_models.VariantTypeEnum.Pdp ? variantInfo.productId : void 0;
@@ -77,6 +90,12 @@ const PromptButtonCarouselWithImageWidgetHandler = (props) => {
77
90
  textFieldPlaceholder: hardCopyContent?.textFieldPlaceholder,
78
91
  hideTextField: promptButtonCarouselWithImageWidgetConfig?.hideTextField,
79
92
  handlePromptButtonClick,
93
+ handlePromptButtonDrag: onDrag,
94
+ handlePromptButtonHover: onHover,
95
+ handlePromptButtonMouseDown: onMouseDown,
96
+ handlePromptButtonMouseUp: onMouseUp,
97
+ handlePromptButtonTouchStart: onTouchStart,
98
+ handlePromptButtonTouchEnd: onTouchEnd,
80
99
  handleTextFieldClick
81
100
  });
82
101
  };
@@ -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_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_runtime12.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_runtime12.JSX.Element;
15
+ }: PromptButtonCarouselWithImageWidgetProps): react_jsx_runtime17.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_runtime6 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 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_runtime6.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime18.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_runtime6.JSX.Element;
15
+ }: PromptButtonCarouselWithImageWidgetProps): react_jsx_runtime18.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -11,12 +11,17 @@ import { lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
11
11
  import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
12
12
  import { ChatElementDisplayLocationV3, VariantTypeEnum } from "@envive-ai/react-hooks/application/models";
13
13
  import { variantInfoAtom } from "@envive-ai/react-hooks/atoms/app";
14
+ import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
15
+ import { usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
16
+ import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
14
17
  import { PromptButtonCarouselWithImage } from "@envive-ai/react-toolkit-v3/PromptButtonCarouselWithImage";
15
18
 
16
19
  //#region src/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.tsx
17
20
  const PromptButtonCarouselWithImageWidgetHandler = (props) => {
18
21
  const { onTypedMessageSubmitted } = useSalesAgent();
19
22
  const { openChat } = useChatToggle();
23
+ const { trackWidgetInteraction } = useWidgetInteraction();
24
+ const { onClick: onSuggestionClick, onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd } = usePromptCarouselAnalytics(WidgetInteractionComponent.SINGLE_IMAGE_PROMPT, (text) => text);
20
25
  const { hardcopyContent, widgetConfig, isLoading, widgetConfigId } = props;
21
26
  const promptButtonCarouselWithImageWidgetConfig = widgetConfig;
22
27
  const id = widgetConfig?.contentId;
@@ -52,9 +57,17 @@ const PromptButtonCarouselWithImageWidgetHandler = (props) => {
52
57
  displayLocation: ChatElementDisplayLocationV3.PROMPT_BUTTON_CAROUSEL_WITH_IMAGE_PROMPT_BUTTON
53
58
  });
54
59
  openChat(ChatElementDisplayLocationV3.PROMPT_BUTTON_CAROUSEL_WITH_IMAGE_PROMPT_BUTTON);
60
+ onSuggestionClick(text);
55
61
  }, [onTypedMessageSubmitted, openChat]);
56
62
  const handleTextFieldClick = useCallback(() => {
57
63
  openChat(ChatElementDisplayLocationV3.PROMPT_BUTTON_CAROUSEL_WITH_IMAGE_TEXT_FIELD);
64
+ trackWidgetInteraction({
65
+ eventName: EnviveMetricsEventName.WidgetInteraction,
66
+ trigger: {
67
+ widget: WidgetInteractionComponent.SINGLE_IMAGE_PROMPT,
68
+ widget_interaction: WidgetInteractionType.QUERY_INPUT_CLICKED
69
+ }
70
+ });
58
71
  }, [openChat]);
59
72
  const variantInfo = useAtomValue(variantInfoAtom);
60
73
  const productId = variantInfo.variant === VariantTypeEnum.Pdp ? variantInfo.productId : void 0;
@@ -76,6 +89,12 @@ const PromptButtonCarouselWithImageWidgetHandler = (props) => {
76
89
  textFieldPlaceholder: hardCopyContent?.textFieldPlaceholder,
77
90
  hideTextField: promptButtonCarouselWithImageWidgetConfig?.hideTextField,
78
91
  handlePromptButtonClick,
92
+ handlePromptButtonDrag: onDrag,
93
+ handlePromptButtonHover: onHover,
94
+ handlePromptButtonMouseDown: onMouseDown,
95
+ handlePromptButtonMouseUp: onMouseUp,
96
+ handlePromptButtonTouchStart: onTouchStart,
97
+ handlePromptButtonTouchEnd: onTouchEnd,
79
98
  handleTextFieldClick
80
99
  });
81
100
  };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime11 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_runtime2.JSX.Element;
10
+ }: PromptCarouselWidgetProps): react_jsx_runtime11.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_runtime9 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_runtime5.JSX.Element;
10
+ }: PromptCarouselWidgetProps): react_jsx_runtime9.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime8 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 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_runtime8.JSX.Element;
10
+ }: SocialProofFlowWidgetProps): react_jsx_runtime0.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime2 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 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_runtime2.JSX.Element;
10
+ }: SocialProofFlowWidgetProps): react_jsx_runtime5.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  //#endregion