@envive-ai/react-widgets-v3 0.3.44 → 0.3.46

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 (86) hide show
  1. package/dist/debug/chatEmbed.cjs +1 -1
  2. package/dist/debug/chatEmbed.js +1 -1
  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/node_modules/@spiffy-ai/commerce-api-client/dist/apis/CustomerServiceApi.cjs +20 -65
  8. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/DefaultApi.cjs +87 -168
  9. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/InferenceApi.cjs +20 -65
  10. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/ProductsApi.cjs +4 -13
  11. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/apis/SearchApi.cjs +14 -50
  12. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/AISuggestionsServedMethodAttribution.cjs +78 -0
  13. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/ExperimentNamespace.cjs +61 -0
  14. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/FormResponseAttributesFormCategory.cjs +0 -2
  15. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrderItemInfo.cjs +3 -3
  16. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/Organization.cjs +2 -2
  17. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/OrganizationConfigResults.cjs +10 -2
  18. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/PLPAttributesAttributes.cjs +0 -2
  19. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentConfigResolutionMetadata.cjs +73 -0
  20. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/StatsigExperimentLayerAssignment.cjs +64 -0
  21. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UrlResolvingResponseSpecificDetails.cjs +0 -2
  22. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/UserEventAttributes.cjs +0 -2
  23. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/WidgetTextResponse.cjs +6 -0
  24. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/models/index.cjs +8 -0
  25. package/dist/node_modules/@spiffy-ai/commerce-api-client/dist/runtime.cjs +1 -3
  26. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.cjs +6 -6
  27. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -3
  28. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.ts +3 -3
  29. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.js +6 -6
  30. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.cts +3 -3
  31. package/dist/widgets/ChatPreviewLoadingWidget/ChatPreviewLoadingWidget.d.ts +3 -3
  32. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.cjs +4 -4
  33. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.cts +3 -3
  34. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.d.ts +3 -3
  35. package/dist/widgets/ChatPreviewWidget/ChatPreviewWidget.js +4 -4
  36. package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.cjs +1 -0
  37. package/dist/widgets/FloatingChatWidget/FloatingChatOverlay.js +1 -0
  38. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.cjs +3 -3
  39. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.cts +2 -2
  40. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
  41. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.js +3 -3
  42. package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.cjs +1 -1
  43. package/dist/widgets/FloatingChatWidget/hooks/useAutoPopup.js +1 -1
  44. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.cjs +2 -0
  45. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.cts +2 -2
  46. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.d.ts +2 -2
  47. package/dist/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.js +2 -0
  48. package/dist/widgets/ProductCardWidget/ProductCardWidget.cjs +3 -3
  49. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.cts +2 -2
  50. package/dist/widgets/ProductCardWidget/ProductCardWidget.d.ts +2 -2
  51. package/dist/widgets/ProductCardWidget/ProductCardWidget.js +3 -3
  52. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.cjs +4 -4
  53. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
  54. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
  55. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.js +4 -4
  56. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.cjs +3 -3
  57. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
  58. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
  59. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.js +3 -3
  60. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +1 -1
  61. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
  62. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
  63. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +1 -1
  64. package/dist/widgets/SocialProofWidget/SocialProofWidget.cjs +6 -6
  65. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
  66. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
  67. package/dist/widgets/SocialProofWidget/SocialProofWidget.js +6 -6
  68. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.cjs +2 -2
  69. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
  70. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
  71. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.js +2 -2
  72. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +1 -1
  73. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
  74. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
  75. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +1 -1
  76. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.cjs +3 -3
  77. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
  78. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
  79. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.js +3 -3
  80. package/dist/widgets/hooks/useGetWidgetStatus.cjs +1 -1
  81. package/dist/widgets/hooks/useGetWidgetStatus.js +1 -1
  82. package/dist/widgets/utils/functions.cjs +1 -1
  83. package/dist/widgets/utils/functions.js +1 -1
  84. package/package.json +1 -1
  85. package/src/widgets/FloatingChatWidget/FloatingChatOverlay.tsx +1 -0
  86. package/src/widgets/FullPageSalesAgentWidget/FullPageSalesAgentWidget.tsx +3 -0
@@ -1,9 +1,9 @@
1
1
  import { BaseWidgetProps } from "../../hocs/withBaseWidget/types.js";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 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_runtime5.JSX.Element;
6
+ (props: BaseWidgetProps): react_jsx_runtime0.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_runtime5.JSX.Element;
15
+ }: TypingAnimationWidgetProps): react_jsx_runtime0.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  //#endregion
@@ -4,14 +4,14 @@ import { getStringIdForText } from "../utils/functions.js";
4
4
  import { useCallback } from "react";
5
5
  import { EnviveMetricsEventName, useAmplitude } from "@envive-ai/react-hooks/contexts/amplitudeContext";
6
6
  import { jsx } from "react/jsx-runtime";
7
- import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
8
7
  import { WidgetTypeV3 } from "@envive-ai/react-hooks/contexts/typesV3";
9
- import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
10
8
  import { useFeatureFlagService } from "@envive-ai/react-hooks/contexts/featureFlagServiceContext";
11
9
  import { ChatElementDisplayLocationV3, FeatureGates } from "@envive-ai/react-hooks/application/models";
12
- import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
10
+ import { useSalesAgent } from "@envive-ai/react-hooks/contexts/salesAgentContext";
11
+ import { useChatToggle } from "@envive-ai/react-hooks/hooks/ChatToggle";
13
12
  import { WidgetInteractionComponent, WidgetInteractionType } from "@envive-ai/react-hooks/hooks/WidgetInteraction/types";
14
13
  import { PromptCarouselRows, usePromptCarouselAnalytics } from "@envive-ai/react-toolkit-v3/PromptCarousel";
14
+ import { useWidgetInteraction } from "@envive-ai/react-hooks/hooks/WidgetInteraction";
15
15
  import { PromptButtonVariant } from "@envive-ai/react-toolkit-v3/PromptButton/types";
16
16
  import { TypingAnimation } from "@envive-ai/react-toolkit-v3/TypingAnimation";
17
17
  import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_functions = require('../utils/functions.cjs');
3
3
  let react = require("react");
4
- let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
5
4
  let jotai = require("jotai");
5
+ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
6
6
  let __envive_ai_react_hooks_atoms_chat_chatState = require("@envive-ai/react-hooks/atoms/chat/chatState");
7
7
 
8
8
  //#region src/widgets/hooks/useGetWidgetStatus.tsx
@@ -1,7 +1,7 @@
1
1
  import { isLoading, isProductComparison, userHasInteracted, userHasNotInteracted } from "../utils/functions.js";
2
2
  import { useMemo } from "react";
3
- import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
4
3
  import { useAtomValue } from "jotai";
4
+ import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
5
5
  import { responseStreamingAtom } from "@envive-ai/react-hooks/atoms/chat/chatState";
6
6
 
7
7
  //#region src/widgets/hooks/useGetWidgetStatus.tsx
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
3
2
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
3
+ let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
4
4
  let __envive_ai_react_hooks_atoms_atomStore = require("@envive-ai/react-hooks/atoms/atomStore");
5
5
 
6
6
  //#region src/widgets/utils/functions.ts
@@ -1,5 +1,5 @@
1
- import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
2
1
  import { MessageRole, MessageType } from "@envive-ai/react-hooks/application/models";
2
+ import { chatAtom, lastAssistantMessageAtom } from "@envive-ai/react-hooks/atoms/chat";
3
3
  import { getAtomStore } from "@envive-ai/react-hooks/atoms/atomStore";
4
4
 
5
5
  //#region src/widgets/utils/functions.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envive-ai/react-widgets-v3",
3
- "version": "0.3.44",
3
+ "version": "0.3.46",
4
4
  "description": "React widget library v3 for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -97,6 +97,7 @@ export const FloatingChatOverlay = ({
97
97
  {isOpened && (
98
98
  <motion.div
99
99
  key="floating-chat-overlay"
100
+ id="envive-ai-floating-chat-overlay"
100
101
  className={overlayClasses}
101
102
  style={{ top: '0px' }}
102
103
  initial={{ opacity: 0 }}
@@ -22,6 +22,8 @@ const FullPageSalesAgentHandler = ({
22
22
  const { featureFlagService } = useFeatureFlagService();
23
23
  const isVoiceInputEnabled =
24
24
  featureFlagService?.isFeatureGateEnabled(FeatureGates.IsVoiceInputEnabled) || voiceInputEnabled;
25
+ const skipOverlay =
26
+ new URLSearchParams(globalThis.location.search).get('envive_skip_overlay') === 'true';
25
27
 
26
28
  // TODO: Loading indicator
27
29
  if (!hardcopyContent) {
@@ -34,6 +36,7 @@ const FullPageSalesAgentHandler = ({
34
36
  hardcopyContent={hardcopyContent}
35
37
  widgetConfig={fullPageSalesAgentWidgetConfig}
36
38
  voiceInputEnabled={isVoiceInputEnabled}
39
+ skipOverlay={skipOverlay}
37
40
  debugBar={<DebugBar />}
38
41
  />
39
42
  );