@envive-ai/react-widgets-v3 0.3.5 → 0.3.6

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 (88) 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/index.d.ts +1 -2
  8. package/dist/packages/widgets/dist/SearchZeroState/types.d.ts +2 -2
  9. package/dist/packages/widgets/dist/SuggestionBar/SuggestionBar.d.ts +3 -3
  10. package/dist/packages/widgets/dist/SuggestionButtonContainer/types.d.ts +2 -3
  11. package/dist/widgets/ChatPreviewComparisonWidget/ChatPreviewComparisonWidget.d.cts +3 -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/FloatingChatWidget.d.cts +2 -2
  18. package/dist/widgets/FloatingChatWidget/FloatingChatWidget.d.ts +2 -2
  19. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.cts +3 -3
  20. package/dist/widgets/PromptButtonCarouselWithImageWidget/PromptButtonCarouselWithImageWidget.d.ts +3 -3
  21. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.cts +2 -2
  22. package/dist/widgets/PromptCarouselWidget/PromptCarouselWidget.d.ts +2 -2
  23. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.cjs +1 -1
  24. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.cts +2 -2
  25. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.d.ts +2 -2
  26. package/dist/widgets/SocialProofFlowWidget/SocialProofFlowWidget.js +1 -1
  27. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.cts +3 -3
  28. package/dist/widgets/SocialProofWidget/SocialProofWidget.d.ts +3 -3
  29. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.cts +2 -2
  30. package/dist/widgets/TitledPromptCarouselWidget/TitledPromptCarouselWidget.d.ts +2 -2
  31. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.cjs +1 -1
  32. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.cts +2 -2
  33. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.d.ts +2 -2
  34. package/dist/widgets/TypingAnimationFlowWidget/TypingAnimationFlowWidget.js +1 -1
  35. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.cts +3 -3
  36. package/dist/widgets/TypingAnimationWidget/TypingAnimationWidget.d.ts +3 -3
  37. package/dist/widgets/dist/SearchResults/SearchResults.d.cts +2 -3
  38. package/dist/widgets/dist/SearchResults/SearchResultsWidget.d.cts +2 -2
  39. package/dist/widgets/dist/SearchZeroState/types.d.cts +2 -2
  40. package/dist/widgets/dist/SuggestionBar/SuggestionBar.d.cts +3 -3
  41. package/dist/widgets/dist/SuggestionButtonContainer/types.d.cts +2 -3
  42. package/dist/widgets-v2/SearchZeroState/index.d.cts +1 -2
  43. package/dist/widgets-v2/SearchZeroState/index.d.ts +1 -2
  44. package/package.json +1 -1
  45. package/dist/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.cts +0 -8
  46. package/dist/hooks/dist/contexts/types.d.cts +0 -44
  47. package/dist/hooks/dist/contexts/typesV3.d.cts +0 -201
  48. package/dist/hooks/dist/services/amplitudeService/amplitudeService.d.cts +0 -36
  49. package/dist/hooks/dist/types/customerService.d.cts +0 -18
  50. package/dist/packages/hooks/dist/application/models/api/orgConfigResults.d.ts +0 -1
  51. package/dist/packages/hooks/dist/application/models/frontendConfig.d.ts +0 -1
  52. package/dist/packages/hooks/dist/contexts/amplitudeContext/amplitudeContext.d.ts +0 -2
  53. package/dist/packages/hooks/dist/contexts/amplitudeContext/index.d.ts +0 -2
  54. package/dist/packages/hooks/dist/contexts/featureFlagServiceContext/featureFlagServiceContext.d.ts +0 -2
  55. package/dist/packages/hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts +0 -11
  56. package/dist/packages/hooks/dist/contexts/hardcopyContext/index.d.ts +0 -1
  57. package/dist/packages/hooks/dist/contexts/types.d.ts +0 -47
  58. package/dist/packages/hooks/dist/contexts/typesV3.d.ts +0 -201
  59. package/dist/packages/hooks/dist/services/amplitudeService/amplitudeService.d.ts +0 -37
  60. package/dist/packages/hooks/dist/types/customerService.d.ts +0 -18
  61. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/api/response.d.ts +0 -14
  62. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/api/search.d.ts +0 -15
  63. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCase.d.ts +0 -73
  64. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +0 -61
  65. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/internal.d.ts +0 -25
  66. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/splitWords.d.ts +0 -35
  67. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/trim.d.ts +0 -32
  68. package/dist/packages/widgets/dist/packages/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +0 -32
  69. package/dist/packages/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.ts +0 -15
  70. package/dist/packages/widgets/dist/packages/hooks/dist/contexts/types.d.ts +0 -61
  71. package/dist/packages/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.ts +0 -60
  72. package/dist/packages/widgets/dist/packages/hooks/dist/hooks/utils.d.ts +0 -11
  73. package/dist/packages/widgets/dist/packages/hooks/dist/types/search-filter-types.d.ts +0 -28
  74. package/dist/packages/widgets/dist/packages/hooks/dist/types/test-types.d.ts +0 -10
  75. package/dist/widgets/dist/packages/hooks/dist/application/models/api/response.d.cts +0 -14
  76. package/dist/widgets/dist/packages/hooks/dist/application/models/api/search.d.cts +0 -15
  77. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCase.d.cts +0 -73
  78. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.cts +0 -61
  79. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/internal.d.cts +0 -25
  80. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/splitWords.d.cts +0 -35
  81. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/trim.d.cts +0 -32
  82. package/dist/widgets/dist/packages/hooks/dist/application/models/utilityTypes/unknownArray.d.cts +0 -32
  83. package/dist/widgets/dist/packages/hooks/dist/atoms/search/searchAPI.d.cts +0 -14
  84. package/dist/widgets/dist/packages/hooks/dist/contexts/types.d.cts +0 -61
  85. package/dist/widgets/dist/packages/hooks/dist/hooks/Search/useSearch.d.cts +0 -60
  86. package/dist/widgets/dist/packages/hooks/dist/hooks/utils.d.cts +0 -11
  87. package/dist/widgets/dist/packages/hooks/dist/types/search-filter-types.d.cts +0 -28
  88. package/dist/widgets/dist/packages/hooks/dist/types/test-types.d.cts +0 -10
@@ -1,6 +1,6 @@
1
- import { SuggestionButtonVariant } from "../packages/hooks/dist/contexts/types.cjs";
2
1
  import { SuggestionBarLocationForMetrics } from "./types.cjs";
3
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 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_runtime0.JSX.Element;
34
34
  //#endregion
35
35
  //#endregion
36
36
  export { SuggestionBar };
@@ -1,8 +1,7 @@
1
- import { TestProps } from "../packages/hooks/dist/types/test-types.cjs";
2
- import { SuggestionButtonVariant } from "../packages/hooks/dist/contexts/types.cjs";
1
+ import { SuggestionButtonVariant } from "@envive-ai/react-hooks/contexts/types";
2
+ import { TestProps } from "@envive-ai/react-hooks/types";
3
3
 
4
4
  //#region ../widgets/dist/SuggestionButtonContainer/types.d.ts
5
-
6
5
  //#region src/SuggestionButtonContainer/types.d.ts
7
6
  interface SuggestionButtonContainerProps extends TestProps {
8
7
  buttonVariation: SuggestionButtonVariant;
@@ -1,5 +1,4 @@
1
- import { SearchEntryPointWidgetConfig, SearchInputVariant } from "../../widgets/dist/packages/hooks/dist/contexts/types.cjs";
2
- import { SearchZeroStateProps } from "../../widgets/dist/SearchZeroState/types.cjs";
1
+ import { SearchEntryPointWidgetConfig, SearchInputVariant, SearchZeroStateProps } from "../../widgets/dist/SearchZeroState/types.cjs";
3
2
  import { SearchZeroState } from "../../widgets/dist/SearchZeroState/SearchZeroState.cjs";
4
3
  import { SearchZeroStateWidget } from "../../widgets/dist/SearchZeroState/SearchZeroStateWidget.cjs";
5
4
  export { SearchEntryPointWidgetConfig, SearchInputVariant, SearchZeroState, SearchZeroStateProps, SearchZeroStateWidget };
@@ -1,5 +1,4 @@
1
- import { SearchEntryPointWidgetConfig, SearchInputVariant } from "../../packages/widgets/dist/packages/hooks/dist/contexts/types.js";
2
- import { SearchZeroStateProps } from "../../packages/widgets/dist/SearchZeroState/types.js";
1
+ import { SearchEntryPointWidgetConfig, SearchInputVariant, SearchZeroStateProps } from "../../packages/widgets/dist/SearchZeroState/types.js";
3
2
  import { SearchZeroState } from "../../packages/widgets/dist/SearchZeroState/SearchZeroState.js";
4
3
  import { SearchZeroStateWidget } from "../../packages/widgets/dist/SearchZeroState/SearchZeroStateWidget.js";
5
4
  import "../../packages/widgets/dist/SearchZeroState/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envive-ai/react-widgets-v3",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "React widget library v3 for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -1,8 +0,0 @@
1
- //#region ../hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts
2
-
3
- type HardcopyResponse = {
4
- language: string;
5
- values: Record<string, string | string[]>;
6
- };
7
- //#endregion
8
- export { HardcopyResponse };
@@ -1,44 +0,0 @@
1
- //#region ../hooks/dist/contexts/types.d.ts
2
-
3
- interface AlphabeticFilterSorting {
4
- type: 'alphabetic';
5
- }
6
- interface ProductCountFilterSorting {
7
- type: 'productCount';
8
- }
9
- interface CustomFilterSorting {
10
- type: 'custom';
11
- map: Record<string, number>;
12
- }
13
- type FilterSorting = AlphabeticFilterSorting | ProductCountFilterSorting | CustomFilterSorting;
14
- interface BaseFilterConfig {
15
- filterId: string;
16
- displayName: string;
17
- }
18
- interface DynamicFilterConfig extends BaseFilterConfig {
19
- type: 'dynamic';
20
- attribute: string;
21
- sorting: FilterSorting;
22
- }
23
- interface PriceFilterConfig extends BaseFilterConfig {
24
- type: 'price';
25
- bucketSize: number;
26
- }
27
- type FilterAttribute = DynamicFilterConfig | PriceFilterConfig;
28
- interface MerchantVariantSettings {
29
- dynamicVariants: {
30
- enabled: boolean;
31
- refreshInterval?: number;
32
- };
33
- }
34
- interface SearchConfig {
35
- enableGlobalSearch: boolean;
36
- searchFilterConfig: FilterAttribute[];
37
- searchOverlayHeading?: string;
38
- redirectSearchResultsUrl?: string;
39
- additiveDynamicFilters?: boolean;
40
- recommendedProducts?: string[];
41
- recommendedProductsHeading?: string;
42
- }
43
- //#endregion
44
- export { type MerchantVariantSettings, type SearchConfig };
@@ -1,201 +0,0 @@
1
- import { CustomerServiceType } from "../types/customerService.cjs";
2
- import { MerchantVariantSettings, SearchConfig } from "./types.cjs";
3
- import { AnimationSpeed, PromptCarouselRows } from "@envive-ai/react-toolkit-v3/PromptCarousel";
4
- import { ImageGalleryImage, ImageGalleryLayout } from "@envive-ai/react-toolkit-v3/ImageGallery";
5
- import { PromptButtonVariant } from "@envive-ai/react-toolkit-v3/PromptButton";
6
- import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
7
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
8
- import { DynamicLayout } from "@envive-ai/react-toolkit-v3/SocialProof";
9
- import { SparkleIconColor } from "@envive-ai/react-toolkit-v3/WelcomeMessage";
10
-
11
- //#region ../hooks/dist/contexts/typesV3.d.ts
12
-
13
- type ImageAspectRatio = '1/1' | '3/4';
14
- type ButtonColors = {
15
- lightButtonBackgroundColor: string;
16
- lightButtonIconColor: string;
17
- darkButtonBackgroundColor: string;
18
- darkButtonIconColor: string;
19
- };
20
- type Typography = {
21
- titleFontFamily: string;
22
- headerFontFamily: string;
23
- bodyFontFamily: string;
24
- fontSize?: {
25
- t1: string;
26
- t2: string;
27
- t3: string;
28
- h1: string;
29
- h2: string;
30
- h3: string;
31
- b1: string;
32
- b2: string;
33
- b3: string;
34
- b4: string;
35
- b5: string;
36
- l1: string;
37
- l2: string;
38
- };
39
- fontWeight?: {
40
- rg: string;
41
- md: string;
42
- sb: string;
43
- };
44
- letterSpacing?: {
45
- '0': string;
46
- 'wide-1': string;
47
- };
48
- lineHeight?: {
49
- '124': number;
50
- '120': number;
51
- '118': number;
52
- '116': number;
53
- '114': number;
54
- '148': number;
55
- '140': number;
56
- '128': number;
57
- '130': number;
58
- '133': number;
59
- };
60
- };
61
- type LookAndFeelConfig = {
62
- theme: Theme;
63
- agentName: string;
64
- chatHeaderLogoDarkSrc: string;
65
- chatHeaderLogoLightSrc: string;
66
- widgetLogoSrc: string;
67
- hideWidgetLogo: boolean;
68
- elementRadius: number;
69
- imageAspectRatio: ImageAspectRatio;
70
- buttonColors: ButtonColors;
71
- typography: Typography;
72
- };
73
- declare enum ConfigVersionEnum {
74
- V3 = "v3",
75
- Deprecated = "deprecated",
76
- }
77
- type ConfigVersion = ConfigVersionEnum.V3 | ConfigVersionEnum.Deprecated | undefined;
78
- type Mode = 'dark' | 'light';
79
- type Position = 'bottomLeft' | 'middleLeft' | 'middleRight' | 'bottomRight';
80
- type ShowOptions = 'always' | 'postInteraction' | 'none';
81
- type Style = 'attached' | 'detached';
82
- type FloatingButtonConfig = {
83
- position: Position;
84
- backgroundColor?: string;
85
- mode: Mode;
86
- showOption: ShowOptions;
87
- iconSVGSrc?: string;
88
- style: Style;
89
- };
90
- type FloatingChatConfig = {
91
- headerBackgroundColor?: string;
92
- headerMode: Mode;
93
- welcomeMessageIconColor: SparkleIconColor;
94
- showVerifiedBuyer: boolean;
95
- userQueryInputEnabled: boolean;
96
- showEnviveLogo: boolean;
97
- ignoreFirstModelResponse?: boolean;
98
- neverShowSingleProductCards?: boolean;
99
- welcomeMessageTitle: string;
100
- welcomeMessageText: string;
101
- chatFooterTextFieldPlaceholderText: string;
102
- };
103
- type CustomerServiceIntegration = {
104
- enabled: boolean;
105
- provider: CustomerServiceType;
106
- suppressMerchantButton?: boolean;
107
- };
108
- type OrgUIConfigV3 = {
109
- id?: string;
110
- version: ConfigVersion;
111
- shortName: string;
112
- lookAndFeel: LookAndFeelConfig;
113
- floatingButton: FloatingButtonConfig;
114
- floatingChat: FloatingChatConfig;
115
- merchantOverrideCss?: string;
116
- customerServiceIntegration?: CustomerServiceIntegration;
117
- merchantVariantSettings?: MerchantVariantSettings;
118
- searchConfig?: SearchConfig;
119
- };
120
- declare enum WidgetTypeV3 {
121
- PromptCarouselV3 = "PromptCarouselV3",
122
- TitledPromptCarouselV3 = "TitledPromptCarouselV3",
123
- SocialProofV3 = "SocialProofV3",
124
- TypingAnimationV3 = "TypingAnimationV3",
125
- ChatPreviewV3 = "ChatPreviewV3",
126
- ChatPreviewComparisonV3 = "ChatPreviewComparisonV3",
127
- ChatPreviewLoadingV3 = "ChatPreviewLoadingV3",
128
- ImagePromptCardV3 = "ImagePromptCardV3",
129
- PromptButtonCarouselWithImageV3 = "PromptButtonCarouselWithImageV3",
130
- ImageBannerV3 = "ImageBannerV3",
131
- SingleImagePromptV3 = "SingleImagePromptV3",
132
- FloatingChatV3 = "FloatingChatV3",
133
- FloatingButtonV3 = "FloatingButtonV3",
134
- }
135
- interface BaseWidgetConfig<T extends WidgetTypeV3> {
136
- widgetConfigId: string;
137
- type: T;
138
- contentId?: string;
139
- }
140
- interface PromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptCarouselV3> {
141
- promptButtonType?: PromptButtonVariant;
142
- boldFirstButton?: boolean;
143
- promptCarouselRows?: PromptCarouselRows;
144
- animationSpeed?: AnimationSpeed;
145
- }
146
- interface TitledPromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TitledPromptCarouselV3> {
147
- promptButtonType?: PromptButtonVariant;
148
- boldFirstButton?: boolean;
149
- promptCarouselRows?: PromptCarouselRows;
150
- animationSpeed?: AnimationSpeed;
151
- }
152
- declare enum SocialProofWidgetKind {
153
- STATIC = "static",
154
- DYNAMIC = "dynamic",
155
- }
156
- interface SocialProofWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.SocialProofV3> {
157
- kind: SocialProofWidgetKind;
158
- variant: WidgetWrapperVariant;
159
- hexCardColor?: string;
160
- promptCarouselRows: PromptCarouselRows;
161
- hideImage?: boolean;
162
- imageGalleryLayout: Exclude<ImageGalleryLayout, 'TWO_SIDE'>;
163
- hideTextField?: boolean;
164
- primaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
165
- secondaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
166
- dynamicLayout?: DynamicLayout;
167
- images?: ImageGalleryImage[];
168
- }
169
- interface TypingAnimationWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TypingAnimationV3> {
170
- widgetVariant?: WidgetWrapperVariant;
171
- cardColor?: string;
172
- promptButtonType?: PromptButtonVariant;
173
- promptCarouselRows?: PromptCarouselRows;
174
- showTextField?: boolean;
175
- }
176
- interface ChatPreviewComparisonWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewComparisonV3> {
177
- variant: WidgetWrapperVariant;
178
- hexCardColor?: string;
179
- hideImage?: boolean;
180
- hideTextField?: boolean;
181
- }
182
- interface ChatPreviewLoadingWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewLoadingV3> {
183
- variant: WidgetWrapperVariant;
184
- hexCardColor?: string;
185
- hideTextField?: boolean;
186
- }
187
- interface ChatPreviewWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewV3> {
188
- variant: WidgetWrapperVariant;
189
- hexCardColor?: string;
190
- hideTextField?: boolean;
191
- }
192
- interface PromptButtonCarouselWithImageWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptButtonCarouselWithImageV3> {
193
- promptButtonType?: PromptButtonVariant;
194
- image?: ImageGalleryImage;
195
- hideTextField?: boolean;
196
- }
197
- interface FloatingChatWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.FloatingChatV3> {}
198
- type WidgetConfigV3 = PromptCarouselWidgetV3Config | SocialProofWidgetV3Config | TitledPromptCarouselWidgetV3Config | ChatPreviewComparisonWidgetV3Config | ChatPreviewLoadingWidgetV3Config | TypingAnimationWidgetV3Config | ChatPreviewWidgetV3Config | PromptButtonCarouselWithImageWidgetV3Config | FloatingChatWidgetV3Config;
199
- //#endregion
200
- //#endregion
201
- export { type OrgUIConfigV3, type WidgetConfigV3, WidgetTypeV3 };
@@ -1,36 +0,0 @@
1
- //#region ../hooks/dist/services/amplitudeService/amplitudeService.d.ts
2
-
3
- //#region src/services/amplitudeService/amplitudeService.d.ts
4
- declare enum SpiffyMetricsEventName {
5
- BundleLoaded = "Bundle Loaded",
6
- ChatLiveAgentBtnClick = "Chat Live Agent Btn Click",
7
- ChatFloatingButtonVisible = "Chat Floating Button Visible",
8
- ChatComponentVisible = "Chat Component Visible",
9
- ChatComponentExpanded = "Chat Component Expanded",
10
- ChatComponentCollapsed = "Chat Component Collapsed",
11
- ChatUserMessageInput = "Chat User Message Input",
12
- ChatSuggestionClicked = "Chat Suggestion Clicked",
13
- ChatAssistantResponse = "Chat Assistant Response",
14
- ProductCardClicked = "Product Card Clicked",
15
- ProductReviewCardClicked = "Product Review Card Clicked",
16
- AddToCartClicked = "Add To Cart Clicked",
17
- PromptCardClicked = "Prompt Card Clicked",
18
- SupportedEvent = "Supported Event",
19
- SearchBackToResponseClicked = "Search Back to Response Clicked",
20
- PerformanceMetrics = "Performance Metrics",
21
- SearchBarClicked = "Search Bar Clicked",
22
- OrderLookupStarted = "Order Lookup Started",
23
- OrderLookupFormSubmitted = "Order Lookup Form Submitted",
24
- SearchComponentVisible = "Search Component Visible",
25
- SearchZeroStateSuggestionClicked = "Search Zero State Suggestion Clicked",
26
- // This is the scrolling list of suggestion buttons in global search
27
- SearchInputStarted = "Search Input Started",
28
- SearchQuerySubmitted = "Search Query Submitted",
29
- SearchResultsViewed = "Search Results Viewed",
30
- SearchTimeToFirstClick = "Search Time to First Click",
31
- SearchZeroResultsRate = "Search Zero Results Rate",
32
- SearchFilterClicked = "Search Filter Clicked",
33
- SearchSortClicked = "Search Sort Clicked",
34
- }
35
- //#endregion
36
- export { SpiffyMetricsEventName };
@@ -1,18 +0,0 @@
1
- //#region ../hooks/dist/types/customerService.d.ts
2
-
3
- //#region src/types/customerService.d.ts
4
- declare enum CustomerServiceType {
5
- shopify = "shopify",
6
- gorgias = "gorgias",
7
- kustomer = "kustomer",
8
- groove = "groove",
9
- tidio = "tidio",
10
- zowie = "zowie",
11
- redo = "redo",
12
- gladly = "gladly",
13
- richpanel = "richpanel",
14
- zendesk = "zendesk",
15
- unsupported = "unsupported",
16
- }
17
- //#endregion
18
- export { CustomerServiceType };
@@ -1 +0,0 @@
1
- import "../frontendConfig.js";
@@ -1 +0,0 @@
1
- import "../../contexts/types.js";
@@ -1,2 +0,0 @@
1
- import "../../services/amplitudeService/amplitudeService.js";
2
- import React from "react";
@@ -1,2 +0,0 @@
1
- import { SpiffyMetricsEventName } from "../../services/amplitudeService/amplitudeService.js";
2
- import "./amplitudeContext.js";
@@ -1,2 +0,0 @@
1
- import "../../application/models/api/orgConfigResults.js";
2
- import React from "react";
@@ -1,11 +0,0 @@
1
- import "../typesV3.js";
2
- import "react";
3
-
4
- //#region ../hooks/dist/contexts/hardcopyContext/hardcopyContext.d.ts
5
-
6
- type HardcopyResponse = {
7
- language: string;
8
- values: Record<string, string | string[]>;
9
- };
10
- //#endregion
11
- export { HardcopyResponse };
@@ -1 +0,0 @@
1
- import { HardcopyResponse } from "./hardcopyContext.js";
@@ -1,47 +0,0 @@
1
- import "./typesV3.js";
2
- import "../application/models/api/orgConfigResults.js";
3
-
4
- //#region ../hooks/dist/contexts/types.d.ts
5
-
6
- interface AlphabeticFilterSorting {
7
- type: 'alphabetic';
8
- }
9
- interface ProductCountFilterSorting {
10
- type: 'productCount';
11
- }
12
- interface CustomFilterSorting {
13
- type: 'custom';
14
- map: Record<string, number>;
15
- }
16
- type FilterSorting = AlphabeticFilterSorting | ProductCountFilterSorting | CustomFilterSorting;
17
- interface BaseFilterConfig {
18
- filterId: string;
19
- displayName: string;
20
- }
21
- interface DynamicFilterConfig extends BaseFilterConfig {
22
- type: 'dynamic';
23
- attribute: string;
24
- sorting: FilterSorting;
25
- }
26
- interface PriceFilterConfig extends BaseFilterConfig {
27
- type: 'price';
28
- bucketSize: number;
29
- }
30
- type FilterAttribute = DynamicFilterConfig | PriceFilterConfig;
31
- interface MerchantVariantSettings {
32
- dynamicVariants: {
33
- enabled: boolean;
34
- refreshInterval?: number;
35
- };
36
- }
37
- interface SearchConfig {
38
- enableGlobalSearch: boolean;
39
- searchFilterConfig: FilterAttribute[];
40
- searchOverlayHeading?: string;
41
- redirectSearchResultsUrl?: string;
42
- additiveDynamicFilters?: boolean;
43
- recommendedProducts?: string[];
44
- recommendedProductsHeading?: string;
45
- }
46
- //#endregion
47
- export { type MerchantVariantSettings, type SearchConfig };
@@ -1,201 +0,0 @@
1
- import { CustomerServiceType } from "../types/customerService.js";
2
- import { MerchantVariantSettings, SearchConfig } from "./types.js";
3
- import { Theme } from "@envive-ai/react-toolkit-v3/Tokens";
4
- import { AnimationSpeed, PromptCarouselRows } from "@envive-ai/react-toolkit-v3/PromptCarousel";
5
- import { DynamicLayout } from "@envive-ai/react-toolkit-v3/SocialProof";
6
- import { WidgetWrapperVariant } from "@envive-ai/react-toolkit-v3/WidgetWrapper";
7
- import { ImageGalleryImage, ImageGalleryLayout } from "@envive-ai/react-toolkit-v3/ImageGallery";
8
- import { PromptButtonVariant } from "@envive-ai/react-toolkit-v3/PromptButton";
9
- import { SparkleIconColor } from "@envive-ai/react-toolkit-v3/WelcomeMessage";
10
-
11
- //#region ../hooks/dist/contexts/typesV3.d.ts
12
-
13
- type ImageAspectRatio = '1/1' | '3/4';
14
- type ButtonColors = {
15
- lightButtonBackgroundColor: string;
16
- lightButtonIconColor: string;
17
- darkButtonBackgroundColor: string;
18
- darkButtonIconColor: string;
19
- };
20
- type Typography = {
21
- titleFontFamily: string;
22
- headerFontFamily: string;
23
- bodyFontFamily: string;
24
- fontSize?: {
25
- t1: string;
26
- t2: string;
27
- t3: string;
28
- h1: string;
29
- h2: string;
30
- h3: string;
31
- b1: string;
32
- b2: string;
33
- b3: string;
34
- b4: string;
35
- b5: string;
36
- l1: string;
37
- l2: string;
38
- };
39
- fontWeight?: {
40
- rg: string;
41
- md: string;
42
- sb: string;
43
- };
44
- letterSpacing?: {
45
- '0': string;
46
- 'wide-1': string;
47
- };
48
- lineHeight?: {
49
- '124': number;
50
- '120': number;
51
- '118': number;
52
- '116': number;
53
- '114': number;
54
- '148': number;
55
- '140': number;
56
- '128': number;
57
- '130': number;
58
- '133': number;
59
- };
60
- };
61
- type LookAndFeelConfig = {
62
- theme: Theme;
63
- agentName: string;
64
- chatHeaderLogoDarkSrc: string;
65
- chatHeaderLogoLightSrc: string;
66
- widgetLogoSrc: string;
67
- hideWidgetLogo: boolean;
68
- elementRadius: number;
69
- imageAspectRatio: ImageAspectRatio;
70
- buttonColors: ButtonColors;
71
- typography: Typography;
72
- };
73
- declare enum ConfigVersionEnum {
74
- V3 = "v3",
75
- Deprecated = "deprecated",
76
- }
77
- type ConfigVersion = ConfigVersionEnum.V3 | ConfigVersionEnum.Deprecated | undefined;
78
- type Mode = 'dark' | 'light';
79
- type Position = 'bottomLeft' | 'middleLeft' | 'middleRight' | 'bottomRight';
80
- type ShowOptions = 'always' | 'postInteraction' | 'none';
81
- type Style = 'attached' | 'detached';
82
- type FloatingButtonConfig = {
83
- position: Position;
84
- backgroundColor?: string;
85
- mode: Mode;
86
- showOption: ShowOptions;
87
- iconSVGSrc?: string;
88
- style: Style;
89
- };
90
- type FloatingChatConfig = {
91
- headerBackgroundColor?: string;
92
- headerMode: Mode;
93
- welcomeMessageIconColor: SparkleIconColor;
94
- showVerifiedBuyer: boolean;
95
- userQueryInputEnabled: boolean;
96
- showEnviveLogo: boolean;
97
- ignoreFirstModelResponse?: boolean;
98
- neverShowSingleProductCards?: boolean;
99
- welcomeMessageTitle: string;
100
- welcomeMessageText: string;
101
- chatFooterTextFieldPlaceholderText: string;
102
- };
103
- type CustomerServiceIntegration = {
104
- enabled: boolean;
105
- provider: CustomerServiceType;
106
- suppressMerchantButton?: boolean;
107
- };
108
- type OrgUIConfigV3 = {
109
- id?: string;
110
- version: ConfigVersion;
111
- shortName: string;
112
- lookAndFeel: LookAndFeelConfig;
113
- floatingButton: FloatingButtonConfig;
114
- floatingChat: FloatingChatConfig;
115
- merchantOverrideCss?: string;
116
- customerServiceIntegration?: CustomerServiceIntegration;
117
- merchantVariantSettings?: MerchantVariantSettings;
118
- searchConfig?: SearchConfig;
119
- };
120
- declare enum WidgetTypeV3 {
121
- PromptCarouselV3 = "PromptCarouselV3",
122
- TitledPromptCarouselV3 = "TitledPromptCarouselV3",
123
- SocialProofV3 = "SocialProofV3",
124
- TypingAnimationV3 = "TypingAnimationV3",
125
- ChatPreviewV3 = "ChatPreviewV3",
126
- ChatPreviewComparisonV3 = "ChatPreviewComparisonV3",
127
- ChatPreviewLoadingV3 = "ChatPreviewLoadingV3",
128
- ImagePromptCardV3 = "ImagePromptCardV3",
129
- PromptButtonCarouselWithImageV3 = "PromptButtonCarouselWithImageV3",
130
- ImageBannerV3 = "ImageBannerV3",
131
- SingleImagePromptV3 = "SingleImagePromptV3",
132
- FloatingChatV3 = "FloatingChatV3",
133
- FloatingButtonV3 = "FloatingButtonV3",
134
- }
135
- interface BaseWidgetConfig<T extends WidgetTypeV3> {
136
- widgetConfigId: string;
137
- type: T;
138
- contentId?: string;
139
- }
140
- interface PromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptCarouselV3> {
141
- promptButtonType?: PromptButtonVariant;
142
- boldFirstButton?: boolean;
143
- promptCarouselRows?: PromptCarouselRows;
144
- animationSpeed?: AnimationSpeed;
145
- }
146
- interface TitledPromptCarouselWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TitledPromptCarouselV3> {
147
- promptButtonType?: PromptButtonVariant;
148
- boldFirstButton?: boolean;
149
- promptCarouselRows?: PromptCarouselRows;
150
- animationSpeed?: AnimationSpeed;
151
- }
152
- declare enum SocialProofWidgetKind {
153
- STATIC = "static",
154
- DYNAMIC = "dynamic",
155
- }
156
- interface SocialProofWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.SocialProofV3> {
157
- kind: SocialProofWidgetKind;
158
- variant: WidgetWrapperVariant;
159
- hexCardColor?: string;
160
- promptCarouselRows: PromptCarouselRows;
161
- hideImage?: boolean;
162
- imageGalleryLayout: Exclude<ImageGalleryLayout, 'TWO_SIDE'>;
163
- hideTextField?: boolean;
164
- primaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
165
- secondaryButtonVariant: Exclude<PromptButtonVariant, 'suggestedResponse' | 'ghost'>;
166
- dynamicLayout?: DynamicLayout;
167
- images?: ImageGalleryImage[];
168
- }
169
- interface TypingAnimationWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.TypingAnimationV3> {
170
- widgetVariant?: WidgetWrapperVariant;
171
- cardColor?: string;
172
- promptButtonType?: PromptButtonVariant;
173
- promptCarouselRows?: PromptCarouselRows;
174
- showTextField?: boolean;
175
- }
176
- interface ChatPreviewComparisonWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewComparisonV3> {
177
- variant: WidgetWrapperVariant;
178
- hexCardColor?: string;
179
- hideImage?: boolean;
180
- hideTextField?: boolean;
181
- }
182
- interface ChatPreviewLoadingWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewLoadingV3> {
183
- variant: WidgetWrapperVariant;
184
- hexCardColor?: string;
185
- hideTextField?: boolean;
186
- }
187
- interface ChatPreviewWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.ChatPreviewV3> {
188
- variant: WidgetWrapperVariant;
189
- hexCardColor?: string;
190
- hideTextField?: boolean;
191
- }
192
- interface PromptButtonCarouselWithImageWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.PromptButtonCarouselWithImageV3> {
193
- promptButtonType?: PromptButtonVariant;
194
- image?: ImageGalleryImage;
195
- hideTextField?: boolean;
196
- }
197
- interface FloatingChatWidgetV3Config extends BaseWidgetConfig<WidgetTypeV3.FloatingChatV3> {}
198
- type WidgetConfigV3 = PromptCarouselWidgetV3Config | SocialProofWidgetV3Config | TitledPromptCarouselWidgetV3Config | ChatPreviewComparisonWidgetV3Config | ChatPreviewLoadingWidgetV3Config | TypingAnimationWidgetV3Config | ChatPreviewWidgetV3Config | PromptButtonCarouselWithImageWidgetV3Config | FloatingChatWidgetV3Config;
199
- //#endregion
200
- //#endregion
201
- export { type OrgUIConfigV3, type WidgetConfigV3, WidgetTypeV3 };