@envive-ai/react-toolkit 0.3.5 → 0.3.7
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.
- package/dist/components/Accordion/Accordion.d.cts +2 -2
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/AnimatedChevron/AnimatedChevron.d.cts +2 -2
- package/dist/components/AnimatedChevron/AnimatedChevron.d.ts +2 -2
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.cts +3 -3
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts +3 -3
- package/dist/components/ButtonBase/ButtonBase.d.cts +2 -2
- package/dist/components/ButtonBase/ButtonBase.d.ts +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.cts +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.cts +3 -3
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts +3 -3
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.cts +2 -2
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.cts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.ts +2 -2
- package/dist/components/ModalSheet/ModalSheet.d.cts +2 -2
- package/dist/components/ModalSheet/ModalSheet.d.ts +2 -2
- package/dist/components/ProductCard/ProductCard.cjs +2 -2
- package/dist/components/ProductCard/ProductCard.d.cts +4 -4
- package/dist/components/ProductCard/ProductCard.d.ts +4 -4
- package/dist/components/ProductCard/ProductCard.js +2 -2
- package/dist/components/ProductGrid/ProductGrid.cjs +1 -1
- package/dist/components/ProductGrid/ProductGrid.d.cts +3 -3
- package/dist/components/ProductGrid/ProductGrid.d.ts +3 -3
- package/dist/components/ProductGrid/ProductGrid.js +1 -1
- package/dist/components/RadioButton/RadioButton.d.cts +3 -4
- package/dist/components/RadioButton/RadioButton.d.ts +3 -4
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.cts +3 -4
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +3 -4
- package/dist/components/RecommendedProducts/RecommendedProducts.d.cts +2 -2
- package/dist/components/RecommendedProducts/RecommendedProducts.d.ts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.cts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterFooter.d.cts +3 -4
- package/dist/components/SearchFilter/SearchFilterFooter.d.ts +3 -4
- package/dist/components/SearchFilter/SearchFilterHeader.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterHeader.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.ts +2 -2
- package/dist/components/SearchFilter/types.d.cts +1 -2
- package/dist/components/SearchFilter/types.d.ts +1 -2
- package/dist/components/SearchFilter/utils.d.cts +3 -4
- package/dist/components/SearchFilter/utils.d.ts +3 -4
- package/dist/components/SearchInput/SearchInput.d.cts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SearchInputForm/SearchInputForm.d.cts +2 -2
- package/dist/components/SearchInputForm/SearchInputForm.d.ts +2 -2
- package/dist/components/SearchResultsContent/SearchResultsContent.d.cts +4 -4
- package/dist/components/SearchResultsContent/SearchResultsContent.d.ts +4 -4
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.cts +2 -2
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts +2 -2
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +1 -1
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.cts +3 -4
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts +3 -4
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +1 -1
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +1 -1
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +3 -4
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +3 -4
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.js +1 -1
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.cts +3 -3
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.ts +3 -3
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.cts +3 -3
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.ts +3 -3
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +1 -1
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.cts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +1 -1
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.cts +3 -3
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.ts +3 -3
- package/dist/components/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/components/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/components/Spinner/Spinner.d.cts +2 -2
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/SuggestionButton/SuggestionButton.d.cts +2 -2
- package/dist/components/SuggestionButton/SuggestionButton.d.ts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/dist/util/colorVar.d.cts +1 -1
- package/dist/util/colorVar.d.ts +1 -1
- package/package.json +1 -1
- package/dist/hooks/dist/application/models/api/response.d.cts +0 -11
- package/dist/hooks/dist/application/models/api/response.d.ts +0 -11
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.cts +0 -27
- package/dist/hooks/dist/application/models/chatElementDisplayLocation.d.ts +0 -27
- package/dist/hooks/dist/application/models/colorsConfig.d.cts +0 -24
- package/dist/hooks/dist/application/models/colorsConfig.d.ts +0 -24
- package/dist/hooks/dist/application/models/featureGates.d.cts +0 -30
- package/dist/hooks/dist/application/models/featureGates.d.ts +0 -30
- package/dist/hooks/dist/application/models/frontendConfig.d.cts +0 -17
- package/dist/hooks/dist/application/models/frontendConfig.d.ts +0 -17
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.cts +0 -71
- package/dist/hooks/dist/application/models/utilityTypes/camelCase.d.ts +0 -71
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.cts +0 -58
- package/dist/hooks/dist/application/models/utilityTypes/camelCasedPropertiesDeep.d.ts +0 -58
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.cts +0 -22
- package/dist/hooks/dist/application/models/utilityTypes/internal.d.ts +0 -22
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.cts +0 -31
- package/dist/hooks/dist/application/models/utilityTypes/splitWords.d.ts +0 -31
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.cts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/trim.d.ts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.cts +0 -30
- package/dist/hooks/dist/application/models/utilityTypes/unknownArray.d.ts +0 -30
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.cts +0 -11
- package/dist/hooks/dist/application/models/variantInfo/pageVisitInfo.d.ts +0 -11
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.cts +0 -8
- package/dist/hooks/dist/application/models/variantInfo/plpInfo.d.ts +0 -8
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.cts +0 -10
- package/dist/hooks/dist/application/models/variantInfo/productInfo.d.ts +0 -10
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.cts +0 -31
- package/dist/hooks/dist/application/models/variantInfo/variantInfo.d.ts +0 -31
- package/dist/hooks/dist/application/utils/overrides.d.cts +0 -22
- package/dist/hooks/dist/application/utils/overrides.d.ts +0 -22
- package/dist/hooks/dist/atoms/search/searchAPI.d.cts +0 -11
- package/dist/hooks/dist/atoms/search/searchAPI.d.ts +0 -11
- package/dist/hooks/dist/contexts/types.d.cts +0 -672
- package/dist/hooks/dist/contexts/types.d.ts +0 -672
- package/dist/hooks/dist/hooks/utils.d.cts +0 -9
- package/dist/hooks/dist/hooks/utils.d.ts +0 -9
- package/dist/hooks/dist/merchants/domInsertion.d.cts +0 -15
- package/dist/hooks/dist/merchants/domInsertion.d.ts +0 -15
- package/dist/hooks/dist/merchants/gridInsertion.d.cts +0 -22
- package/dist/hooks/dist/merchants/gridInsertion.d.ts +0 -22
- package/dist/hooks/dist/types/customerService.d.cts +0 -24
- package/dist/hooks/dist/types/customerService.d.ts +0 -24
- package/dist/hooks/dist/types/custservice-types.d.cts +0 -10
- package/dist/hooks/dist/types/custservice-types.d.ts +0 -10
- package/dist/hooks/dist/types/enviveConfig.d.cts +0 -30
- package/dist/hooks/dist/types/enviveConfig.d.ts +0 -30
- package/dist/hooks/dist/types/index.d.cts +0 -6
- package/dist/hooks/dist/types/index.d.ts +0 -6
- package/dist/hooks/dist/types/search-filter-types.d.cts +0 -36
- package/dist/hooks/dist/types/search-filter-types.d.ts +0 -36
- package/dist/hooks/dist/types/suggestionBarV2-types.d.cts +0 -9
- package/dist/hooks/dist/types/suggestionBarV2-types.d.ts +0 -9
- package/dist/hooks/dist/types/test-types.d.cts +0 -8
- package/dist/hooks/dist/types/test-types.d.ts +0 -8
|
@@ -1,672 +0,0 @@
|
|
|
1
|
-
import { ChatElementDisplayLocation } from "../application/models/chatElementDisplayLocation.cjs";
|
|
2
|
-
import { ColorNames } from "../application/models/colorsConfig.cjs";
|
|
3
|
-
import { FeatureGates } from "../application/models/featureGates.cjs";
|
|
4
|
-
import { CustomerServiceIntegrationMode, CustomerServiceType } from "../types/customerService.cjs";
|
|
5
|
-
import { GridInsertionType } from "../merchants/gridInsertion.cjs";
|
|
6
|
-
import { DOMInsertionType } from "../merchants/domInsertion.cjs";
|
|
7
|
-
import { ChatState } from "../types/custservice-types.cjs";
|
|
8
|
-
import { SuggestionBarLocationForMetrics } from "../types/suggestionBarV2-types.cjs";
|
|
9
|
-
import { TestProps } from "../types/test-types.cjs";
|
|
10
|
-
import { PageVisitCategory, SupportedEventProductCategory } from "@spiffy-ai/commerce-api-client";
|
|
11
|
-
|
|
12
|
-
//#region ../hooks/dist/contexts/types.d.ts
|
|
13
|
-
|
|
14
|
-
//#region src/contexts/types.d.ts
|
|
15
|
-
type ShowFloatingButtonOptions = 'always' | 'after-interaction-on-mobile-always-desktop' | 'after-interaction-anywhere' | 'never';
|
|
16
|
-
type FloatingEntryPointConfig = {
|
|
17
|
-
position: 'bottom-left' | 'middle-left' | 'middle-right' | 'bottom-right';
|
|
18
|
-
expansionText?: {
|
|
19
|
-
pdp: string;
|
|
20
|
-
plp: string;
|
|
21
|
-
};
|
|
22
|
-
minimizedColor: string;
|
|
23
|
-
expandedColor: string;
|
|
24
|
-
textColor?: string;
|
|
25
|
-
showOption: ShowFloatingButtonOptions;
|
|
26
|
-
iconSVGSrc?: string;
|
|
27
|
-
iconSize?: number;
|
|
28
|
-
iconStrokeColor?: string;
|
|
29
|
-
iconFillColor?: string;
|
|
30
|
-
height?: number;
|
|
31
|
-
fontSize?: number;
|
|
32
|
-
};
|
|
33
|
-
type WelcomeSectionVariant = 'standard' | 'outlined';
|
|
34
|
-
type WelcomeSectionColorVariant = 'standard' | 'accent' | 'brand' | 'light';
|
|
35
|
-
type WelcomeSectionConfig = {
|
|
36
|
-
variant: WelcomeSectionVariant;
|
|
37
|
-
colorVariant?: WelcomeSectionColorVariant;
|
|
38
|
-
title?: string;
|
|
39
|
-
subtitle?: string;
|
|
40
|
-
iconName?: string;
|
|
41
|
-
imageSrc?: string;
|
|
42
|
-
};
|
|
43
|
-
type ChatPreviewConfig = {
|
|
44
|
-
variant: 'flat' | 'filled' | 'outlined';
|
|
45
|
-
largeProductComparison?: boolean;
|
|
46
|
-
filledBackgroundColor: string;
|
|
47
|
-
iconFillColor: string;
|
|
48
|
-
buttonTextColor?: string;
|
|
49
|
-
buttonTextSecondaryColor?: string;
|
|
50
|
-
buttonTextHoverColor?: string;
|
|
51
|
-
buttonBackgroundColor: string;
|
|
52
|
-
buttonBackgroundHoverColor: string;
|
|
53
|
-
buttonBorderColor?: string;
|
|
54
|
-
buttonBorderHoverColor?: string;
|
|
55
|
-
copies: {
|
|
56
|
-
pdp: string[];
|
|
57
|
-
plp: string[];
|
|
58
|
-
};
|
|
59
|
-
staticSuggestionCopies?: {
|
|
60
|
-
pdp: string[];
|
|
61
|
-
plp: string[];
|
|
62
|
-
};
|
|
63
|
-
staticPLPImages?: string[];
|
|
64
|
-
footerConfig?: ChatPreviewFooterConfig;
|
|
65
|
-
headerConfig?: ChatPreviewHeaderConfig;
|
|
66
|
-
topMargin?: number;
|
|
67
|
-
};
|
|
68
|
-
type ChatPreviewHeaderConfig = {
|
|
69
|
-
title?: string;
|
|
70
|
-
imageSrc?: string;
|
|
71
|
-
imageHeight?: number;
|
|
72
|
-
sparklesColor?: string;
|
|
73
|
-
fontSize?: string;
|
|
74
|
-
iconWidth?: string;
|
|
75
|
-
iconHeight?: string;
|
|
76
|
-
};
|
|
77
|
-
interface ChatPreviewFooterConfig {
|
|
78
|
-
hasFade?: boolean;
|
|
79
|
-
suggestionButtonVariant?: 'dark' | 'light' | 'outlined';
|
|
80
|
-
suggestionsBackground?: string;
|
|
81
|
-
replyButtonIcon?: 'send' | 'magnifyingGlass' | 'thinMagnifyingGlass' | 'searchIcon';
|
|
82
|
-
replyButtonText?: string;
|
|
83
|
-
replyInputHasShadow?: boolean;
|
|
84
|
-
replyInputHasBorder?: boolean;
|
|
85
|
-
backgroundColor?: string;
|
|
86
|
-
}
|
|
87
|
-
type ProductReviewStyleVariant = 'standard' | 'bordered';
|
|
88
|
-
type ProductReviewColorVariant = 'neutral' | 'brand' | 'premium';
|
|
89
|
-
interface ProductReviewConfig {
|
|
90
|
-
styleVariant: ProductReviewStyleVariant;
|
|
91
|
-
colorVariant: ProductReviewColorVariant;
|
|
92
|
-
verifiedBuyerTitle: string;
|
|
93
|
-
incentivizedReviewFlag?: boolean;
|
|
94
|
-
}
|
|
95
|
-
type PageCardVariant = 'filled' | 'outlined' | 'minimal';
|
|
96
|
-
type PageCardHoverVariant = 'none' | 'shadow' | 'lift';
|
|
97
|
-
type PageCardIconVariant = 'primary' | 'accent' | 'background' | 'none';
|
|
98
|
-
type PageCardConfig = {
|
|
99
|
-
variant: PageCardVariant;
|
|
100
|
-
hoverVariant: PageCardHoverVariant;
|
|
101
|
-
iconVariant: PageCardIconVariant;
|
|
102
|
-
};
|
|
103
|
-
type ProductCardVariant = 'filled' | 'bordered' | 'minimal' | 'transparentBordered';
|
|
104
|
-
type ProductCardHoverVariant = 'backgroundDark' | 'none';
|
|
105
|
-
type ProductCardLayoutVariant = 'normal' | 'tall' | 'square';
|
|
106
|
-
interface ProductCardConfig {
|
|
107
|
-
variant: ProductCardVariant;
|
|
108
|
-
hoverVariant: ProductCardHoverVariant;
|
|
109
|
-
layoutVariant: ProductCardLayoutVariant;
|
|
110
|
-
pricePrefix?: string;
|
|
111
|
-
}
|
|
112
|
-
type CSSwitchConfig = {
|
|
113
|
-
variant: 'attached' | 'detached';
|
|
114
|
-
backgroundColor: string;
|
|
115
|
-
borderColor: string;
|
|
116
|
-
selectedTextColor: string;
|
|
117
|
-
selectedBackgroundColor?: string;
|
|
118
|
-
unselectedTextColor: string;
|
|
119
|
-
unselectedBackgroundColor?: string;
|
|
120
|
-
supportTitle?: string;
|
|
121
|
-
spiffyTitle?: string;
|
|
122
|
-
spiffyTitleHasLogo?: boolean;
|
|
123
|
-
};
|
|
124
|
-
type ChatHeaderConfig = {
|
|
125
|
-
collapsedColor: string;
|
|
126
|
-
expandedColor: string;
|
|
127
|
-
chevronColor: string;
|
|
128
|
-
imageSrc?: string;
|
|
129
|
-
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
130
|
-
closeIcon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
131
|
-
borderBottom?: string;
|
|
132
|
-
headerBarHeightPartialView: number;
|
|
133
|
-
headerBarHeightFullView: number;
|
|
134
|
-
customerSupportSwitchConfig?: CSSwitchConfig;
|
|
135
|
-
};
|
|
136
|
-
type SimpleCustomerServiceIntegration = {
|
|
137
|
-
integrationMode: CustomerServiceIntegrationMode;
|
|
138
|
-
provider: CustomerServiceType;
|
|
139
|
-
useUnifiedButton?: boolean;
|
|
140
|
-
maxfileUploadSize?: number;
|
|
141
|
-
};
|
|
142
|
-
type FullCustomerServiceIntegration = {
|
|
143
|
-
integrationMode: CustomerServiceIntegrationMode;
|
|
144
|
-
provider: CustomerServiceType;
|
|
145
|
-
useUnifiedButton?: boolean;
|
|
146
|
-
chatEnabledDuringBusinessHours?: boolean;
|
|
147
|
-
showNameInput?: boolean;
|
|
148
|
-
formAiName?: string;
|
|
149
|
-
welcomeTitle: string;
|
|
150
|
-
welcomeDescription: string;
|
|
151
|
-
showWelcomeOnForm?: boolean;
|
|
152
|
-
contactSubjectOptions?: string[];
|
|
153
|
-
getCustomWaitingMessage?: (name?: string) => string;
|
|
154
|
-
withinBusinessHoursMessage?: string;
|
|
155
|
-
withinBusinessHoursWaitingMessage?: string;
|
|
156
|
-
outsideBusinessHoursMessage?: string;
|
|
157
|
-
outsideBusinessHoursWaitingMessage?: string;
|
|
158
|
-
withinBusinessHoursFormMessage?: string;
|
|
159
|
-
outsideBusinessHoursFormMessage?: string;
|
|
160
|
-
suggestedAIQuestions?: string[];
|
|
161
|
-
businessHoursPolling?: number;
|
|
162
|
-
maxfileUploadSize?: number;
|
|
163
|
-
/**
|
|
164
|
-
* @deprecated This is handled by the BE.
|
|
165
|
-
*/
|
|
166
|
-
businessHoursStartUTC?: string;
|
|
167
|
-
/**
|
|
168
|
-
* @deprecated This is handled by the BE.
|
|
169
|
-
*/
|
|
170
|
-
businessHoursEndUTC?: string;
|
|
171
|
-
/**
|
|
172
|
-
* @deprecated This is handled by the BE.
|
|
173
|
-
*/
|
|
174
|
-
businessHoursTimezone?: string;
|
|
175
|
-
showAISuggestionsWithinBusinessHours?: boolean;
|
|
176
|
-
waitingMessagePosition?: 'BEFORE_MESSAGES' | 'AFTER_MESSAGES';
|
|
177
|
-
legalMessage?: string;
|
|
178
|
-
withinBusinessHoursInitialState?: ChatState;
|
|
179
|
-
outsideBusinessHoursInitialState?: ChatState;
|
|
180
|
-
withinBusinessHoursButtontext?: string;
|
|
181
|
-
outsideBusinessHoursButtontext?: string;
|
|
182
|
-
reopenChatMessage: string;
|
|
183
|
-
};
|
|
184
|
-
type CustomerServiceIntegration = SimpleCustomerServiceIntegration | FullCustomerServiceIntegration;
|
|
185
|
-
type ConversationalSeach = {
|
|
186
|
-
enabled?: boolean;
|
|
187
|
-
replyInput?: ReplyInputConfig;
|
|
188
|
-
suggestions?: string[];
|
|
189
|
-
entrypointBgColor?: string;
|
|
190
|
-
entrypointTextColor?: string;
|
|
191
|
-
entrypointBtnColor?: string;
|
|
192
|
-
entrypointBtnTextColor?: string;
|
|
193
|
-
entrypointBtnBorderColor?: string;
|
|
194
|
-
entrypointContainer?: string;
|
|
195
|
-
entrypointTrigger?: string;
|
|
196
|
-
productGridContainer?: string;
|
|
197
|
-
generalSearchBtn?: string;
|
|
198
|
-
pageContent?: string;
|
|
199
|
-
searchContent?: string;
|
|
200
|
-
sortingTitle?: string;
|
|
201
|
-
selectionTitle?: string;
|
|
202
|
-
sortingFont?: string;
|
|
203
|
-
optionsFont?: string;
|
|
204
|
-
sortingButtonText?: string;
|
|
205
|
-
};
|
|
206
|
-
type ChatMessageVariant = 'standard' | 'premium' | 'accent';
|
|
207
|
-
interface ChatMessageConfig {
|
|
208
|
-
assistantChatTitle: string;
|
|
209
|
-
variant: ChatMessageVariant;
|
|
210
|
-
productLink: {
|
|
211
|
-
variant: ProductLinkVariant;
|
|
212
|
-
hoverVariant: ProductLinkHoverVariant;
|
|
213
|
-
iconVariant: ProductLinkIconVariant;
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
interface ReplyInputConfig {
|
|
217
|
-
size?: 'md' | 'lg';
|
|
218
|
-
sendIcon: 'arrowUp' | 'send' | 'search';
|
|
219
|
-
placeholder?: string;
|
|
220
|
-
}
|
|
221
|
-
interface PartialViewConfig {
|
|
222
|
-
maxHeight: number;
|
|
223
|
-
borderRadius?: string;
|
|
224
|
-
}
|
|
225
|
-
type ProductLinkIconVariant = 'accentPrimary' | 'backgroundPrimary' | 'backgroundPrimaryDark' | 'borderLight' | 'backgroundSaturated';
|
|
226
|
-
type ProductLinkVariant = 'textLink';
|
|
227
|
-
type ProductLinkHoverVariant = 'backgroundDark';
|
|
228
|
-
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
229
|
-
interface SuggestionButtonConfig {
|
|
230
|
-
variant?: SuggestionButtonVariant;
|
|
231
|
-
hoverVariant?: SuggestionButtonVariant;
|
|
232
|
-
answerVariant?: SuggestionButtonVariant;
|
|
233
|
-
borderRadius?: 'sm' | 'md' | 'lg';
|
|
234
|
-
}
|
|
235
|
-
type NumRows = 'default' | 'alwaysOneRow' | 'alwaysTwoRows' | 'twoRowsOnMobile';
|
|
236
|
-
interface AlphabeticFilterSorting {
|
|
237
|
-
type: 'alphabetic';
|
|
238
|
-
}
|
|
239
|
-
interface ProductCountFilterSorting {
|
|
240
|
-
type: 'productCount';
|
|
241
|
-
}
|
|
242
|
-
interface CustomFilterSorting {
|
|
243
|
-
type: 'custom';
|
|
244
|
-
map: Record<string, number>;
|
|
245
|
-
}
|
|
246
|
-
type FilterSorting = AlphabeticFilterSorting | ProductCountFilterSorting | CustomFilterSorting;
|
|
247
|
-
interface BaseFilterConfig {
|
|
248
|
-
filterId: string;
|
|
249
|
-
displayName: string;
|
|
250
|
-
}
|
|
251
|
-
interface DynamicFilterConfig extends BaseFilterConfig {
|
|
252
|
-
type: 'dynamic';
|
|
253
|
-
attribute: string;
|
|
254
|
-
sorting: FilterSorting;
|
|
255
|
-
}
|
|
256
|
-
interface PriceFilterConfig extends BaseFilterConfig {
|
|
257
|
-
type: 'price';
|
|
258
|
-
bucketSize: number;
|
|
259
|
-
}
|
|
260
|
-
type FilterAttribute = DynamicFilterConfig | PriceFilterConfig;
|
|
261
|
-
type SearchZeroStateVariant = 'backgroundTertiary' | 'backgroundDark' | 'backgroundPrimary';
|
|
262
|
-
type SearchZeroStateLayout = 'input' | 'icon';
|
|
263
|
-
type SearchInputVariant = 'standard';
|
|
264
|
-
type SearchIconVariant = 'thin' | 'bold';
|
|
265
|
-
type SearchFilterSidebarVariant = 'darkButton' | 'lightButton';
|
|
266
|
-
type ProductGridVariant = 'standard' | 'square';
|
|
267
|
-
type UserQueryButtonIcon = 'magnifyingGlass' | 'send' | 'magnifyingGlassThin' | 'sendArrow' | 'searchIcon';
|
|
268
|
-
interface UserQueryButtonConfig {
|
|
269
|
-
variant?: 'box' | 'underlineLight' | 'underlineDark';
|
|
270
|
-
placeholderText?: string;
|
|
271
|
-
icon: UserQueryButtonIcon;
|
|
272
|
-
}
|
|
273
|
-
interface TermsAndConditionsConfig {
|
|
274
|
-
copy: string;
|
|
275
|
-
link: string;
|
|
276
|
-
linkText: string;
|
|
277
|
-
}
|
|
278
|
-
interface MerchantVariantSettings {
|
|
279
|
-
dynamicVariants: {
|
|
280
|
-
enabled: boolean;
|
|
281
|
-
refreshInterval?: number;
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
interface FloatingChatConfig {
|
|
285
|
-
enableWatermark: boolean;
|
|
286
|
-
userQueryInputEnabled: boolean;
|
|
287
|
-
ignoreFirstModelResponse?: boolean;
|
|
288
|
-
neverShowSingleProductCards?: boolean;
|
|
289
|
-
termsAndConditionsConfig?: TermsAndConditionsConfig;
|
|
290
|
-
suggestionButtonConfig?: SuggestionButtonConfig;
|
|
291
|
-
replyInputConfig: ReplyInputConfig;
|
|
292
|
-
}
|
|
293
|
-
interface SearchConfig {
|
|
294
|
-
enableGlobalSearch: boolean;
|
|
295
|
-
searchFilterConfig: FilterAttribute[];
|
|
296
|
-
searchOverlayHeading?: string;
|
|
297
|
-
redirectSearchResultsUrl?: string;
|
|
298
|
-
additiveDynamicFilters?: boolean;
|
|
299
|
-
recommendedProducts?: string[];
|
|
300
|
-
recommendedProductsHeading?: string;
|
|
301
|
-
}
|
|
302
|
-
type ConfigVersion = 'v3' | 'deprecated' | undefined;
|
|
303
|
-
type OrgUIConfig = {
|
|
304
|
-
version?: ConfigVersion;
|
|
305
|
-
shortName: string;
|
|
306
|
-
id?: string;
|
|
307
|
-
floatingEntrypointConfig?: FloatingEntryPointConfig;
|
|
308
|
-
chatPreviewConfig?: ChatPreviewConfig;
|
|
309
|
-
customerServiceIntegration: CustomerServiceIntegration;
|
|
310
|
-
conversationalSearch?: ConversationalSeach;
|
|
311
|
-
merchantOverrideCss?: string;
|
|
312
|
-
hiddenElementSelectors?: string[];
|
|
313
|
-
merchantVariantSettings?: MerchantVariantSettings;
|
|
314
|
-
floatingChatConfig: FloatingChatConfig;
|
|
315
|
-
searchConfig: SearchConfig;
|
|
316
|
-
chatHeader: ChatHeaderConfig;
|
|
317
|
-
stickyAgentSwitchSuggestion?: boolean;
|
|
318
|
-
partialViewConfig: PartialViewConfig;
|
|
319
|
-
welcomeSectionConfig?: WelcomeSectionConfig;
|
|
320
|
-
productCardConfig?: ProductCardConfig;
|
|
321
|
-
productReviewConfig?: ProductReviewConfig;
|
|
322
|
-
pageCardConfig?: PageCardConfig;
|
|
323
|
-
chatMessageConfig: ChatMessageConfig;
|
|
324
|
-
};
|
|
325
|
-
type InsertionPoint = {
|
|
326
|
-
selector: string;
|
|
327
|
-
selectionIndex?: number;
|
|
328
|
-
insertionType: DOMInsertionType;
|
|
329
|
-
};
|
|
330
|
-
type IdExtractor = 'shopify-product-id' | 'shopify-collection-id' | 'shopify-product-variant-id' | 'url-resolver-product-id' | 'url-resolver-plp-id' | 'null';
|
|
331
|
-
declare enum CategoryExtractorType {
|
|
332
|
-
VisitCategoryMap = "VisitCategoryMap",
|
|
333
|
-
VisitCategoryDefault = "VisitCategoryDefault",
|
|
334
|
-
}
|
|
335
|
-
interface BaseCategoryExtractor<T extends CategoryExtractorType> {
|
|
336
|
-
type: T;
|
|
337
|
-
}
|
|
338
|
-
interface VisitCategoryMap extends BaseCategoryExtractor<CategoryExtractorType.VisitCategoryMap> {
|
|
339
|
-
map: { [key in PageVisitCategory]?: string[] };
|
|
340
|
-
}
|
|
341
|
-
interface VisitCategoryDefault extends BaseCategoryExtractor<CategoryExtractorType.VisitCategoryDefault> {
|
|
342
|
-
value: PageVisitCategory;
|
|
343
|
-
}
|
|
344
|
-
type CategoryExtractor = VisitCategoryMap | VisitCategoryDefault;
|
|
345
|
-
type WrappingElement = {
|
|
346
|
-
className: string;
|
|
347
|
-
element: string;
|
|
348
|
-
insertionType: DOMInsertionType;
|
|
349
|
-
};
|
|
350
|
-
declare enum PageVariantTestType {
|
|
351
|
-
PageCategory = "PageCategory",
|
|
352
|
-
CatalogCategory = "CatalogCategory",
|
|
353
|
-
TopCatalogCategory = "TopCatalogCategory",
|
|
354
|
-
HasReviews = "HasReviews",
|
|
355
|
-
InCollection = "InCollection",
|
|
356
|
-
HasMerchantTag = "HasMerchantTag",
|
|
357
|
-
FeatureGate = "FeatureGate",
|
|
358
|
-
PlpId = "PlpId",
|
|
359
|
-
QueryParam = "QueryParam",
|
|
360
|
-
ProductId = "ProductId",
|
|
361
|
-
UserHasInteracted = "UserHasInteracted",
|
|
362
|
-
UserHasNotInteracted = "UserHasNotInteracted",
|
|
363
|
-
isLoading = "isLoading",
|
|
364
|
-
isProductComparison = "isProductComparison",
|
|
365
|
-
Fallback = "Fallback",
|
|
366
|
-
UrlResolver = "UrlResolver",
|
|
367
|
-
isScreenWidthSmaller = "isScreenWidthSmaller",
|
|
368
|
-
Null = "null",
|
|
369
|
-
}
|
|
370
|
-
interface BasePageVariantTest<T extends PageVariantTestType> {
|
|
371
|
-
testType: T;
|
|
372
|
-
}
|
|
373
|
-
interface TopCatalogCategory extends BasePageVariantTest<PageVariantTestType.TopCatalogCategory> {
|
|
374
|
-
topCategory: string[];
|
|
375
|
-
}
|
|
376
|
-
interface CatalogCategoryTest extends BasePageVariantTest<PageVariantTestType.CatalogCategory> {
|
|
377
|
-
category: SupportedEventProductCategory;
|
|
378
|
-
}
|
|
379
|
-
interface HasReviewsTest extends BasePageVariantTest<PageVariantTestType.HasReviews> {
|
|
380
|
-
reviewMinimum?: number;
|
|
381
|
-
}
|
|
382
|
-
interface InCollectionTest extends BasePageVariantTest<PageVariantTestType.InCollection> {
|
|
383
|
-
collections: string[];
|
|
384
|
-
}
|
|
385
|
-
interface HasMerchantTagTest extends BasePageVariantTest<PageVariantTestType.HasMerchantTag> {
|
|
386
|
-
merchantTags: string[];
|
|
387
|
-
}
|
|
388
|
-
interface PageCategoryTest extends BasePageVariantTest<PageVariantTestType.PageCategory> {
|
|
389
|
-
extractor: CategoryExtractor;
|
|
390
|
-
}
|
|
391
|
-
interface FeatureGateTest extends BasePageVariantTest<PageVariantTestType.FeatureGate> {
|
|
392
|
-
featureGate: FeatureGates;
|
|
393
|
-
}
|
|
394
|
-
interface ProductIdTest extends BasePageVariantTest<PageVariantTestType.ProductId> {
|
|
395
|
-
productIdExtractor: IdExtractor;
|
|
396
|
-
productIds: string[];
|
|
397
|
-
}
|
|
398
|
-
interface PlpIdTest extends BasePageVariantTest<PageVariantTestType.PlpId> {
|
|
399
|
-
plpIdExtractor: IdExtractor;
|
|
400
|
-
plpIds: string[];
|
|
401
|
-
}
|
|
402
|
-
interface QueryParamTest extends BasePageVariantTest<PageVariantTestType.QueryParam> {
|
|
403
|
-
queryParam: string;
|
|
404
|
-
}
|
|
405
|
-
interface UserHasInteractedTest extends BasePageVariantTest<PageVariantTestType.UserHasInteracted> {}
|
|
406
|
-
interface UserHasNotInteractedTest extends BasePageVariantTest<PageVariantTestType.UserHasNotInteracted> {}
|
|
407
|
-
interface IsLoadingTest extends BasePageVariantTest<PageVariantTestType.isLoading> {}
|
|
408
|
-
interface IsProductComparison extends BasePageVariantTest<PageVariantTestType.isProductComparison> {}
|
|
409
|
-
interface PageFallbackTest extends BasePageVariantTest<PageVariantTestType.Fallback> {}
|
|
410
|
-
interface UrlResolverTest extends BasePageVariantTest<PageVariantTestType.UrlResolver> {}
|
|
411
|
-
interface IsScreenWidthSmallerTest extends BasePageVariantTest<PageVariantTestType.isScreenWidthSmaller> {
|
|
412
|
-
breakpoint: number;
|
|
413
|
-
}
|
|
414
|
-
type PageVariantTest = PageCategoryTest | CatalogCategoryTest | TopCatalogCategory | HasReviewsTest | InCollectionTest | HasMerchantTagTest | FeatureGateTest | ProductIdTest | PlpIdTest | QueryParamTest | UserHasInteractedTest | UserHasNotInteractedTest | IsLoadingTest | IsProductComparison | PageFallbackTest | UrlResolverTest | IsScreenWidthSmallerTest;
|
|
415
|
-
/**
|
|
416
|
-
* Configuration for the social proof embedded widget
|
|
417
|
-
*
|
|
418
|
-
* @param headerTitle - The title text to display in the widget header
|
|
419
|
-
* @param staticSuggestions - A list of strings to display as suggestions in the widget
|
|
420
|
-
* @param suggestionButtonVariantDefault - The variant of the suggestion button to display in the widget footer
|
|
421
|
-
* @param suggestionButtonVariantAccent - The variant of the suggestion button to display in the widget body
|
|
422
|
-
* @param staticImageIndex - Index of the imageUrl to use from the product response
|
|
423
|
-
*/
|
|
424
|
-
interface SocialProofConfig {
|
|
425
|
-
customerQuery: string;
|
|
426
|
-
headerTitle: string;
|
|
427
|
-
staticPLPImagesLayout?: 'grid' | 'horizontal';
|
|
428
|
-
headerFontFamily?: string;
|
|
429
|
-
staticPLPImageNames?: string[];
|
|
430
|
-
staticImageIndex?: number;
|
|
431
|
-
suggestionButtonStrings: string[];
|
|
432
|
-
suggestionButtonVariantDefault: SuggestionButtonVariant;
|
|
433
|
-
suggestionButtonVariantAccent?: SuggestionButtonVariant;
|
|
434
|
-
suggestionButtonDataAttributes?: Record<string, string>;
|
|
435
|
-
userQueryButtonConfig?: UserQueryButtonConfig;
|
|
436
|
-
logoName?: string;
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Configuration for creating the mount point for a widget
|
|
440
|
-
*
|
|
441
|
-
* @param className - Optional class name to apply to the mount point. Tailwind classes are supported
|
|
442
|
-
* and encouraged. Use this parameter to style the mounting container for the widget.
|
|
443
|
-
*/
|
|
444
|
-
type WidgetMountingConfig = {
|
|
445
|
-
mountingConfigId: string;
|
|
446
|
-
containerId: string;
|
|
447
|
-
testId: string;
|
|
448
|
-
parentInsertionPoint?: InsertionPoint;
|
|
449
|
-
insertionPoint: InsertionPoint;
|
|
450
|
-
gridInsertionType?: GridInsertionType;
|
|
451
|
-
wrappingElement?: WrappingElement;
|
|
452
|
-
divCheckSelector?: string;
|
|
453
|
-
suppressionSelector?: string;
|
|
454
|
-
style?: Partial<CSSStyleDeclaration>;
|
|
455
|
-
className?: string;
|
|
456
|
-
dataAttributes?: Record<string, string>;
|
|
457
|
-
};
|
|
458
|
-
type StaticWidgetMounting = {
|
|
459
|
-
mountingConfigId: string;
|
|
460
|
-
widgetConfigId: string;
|
|
461
|
-
};
|
|
462
|
-
type DynamicWidgetMounting = {
|
|
463
|
-
mountingConfigId: string;
|
|
464
|
-
mountingPointWidgets: WidgetDisplayTests[];
|
|
465
|
-
};
|
|
466
|
-
type WidgetDisplayTests = {
|
|
467
|
-
tests: PageVariantTest[];
|
|
468
|
-
widgetConfigId: string;
|
|
469
|
-
};
|
|
470
|
-
type WidgetMounting = StaticWidgetMounting | DynamicWidgetMounting;
|
|
471
|
-
declare enum WidgetType {
|
|
472
|
-
ChatPreview = "ChatPreview",
|
|
473
|
-
SocialProofV2 = "SocialProofV2",
|
|
474
|
-
ChatPreviewV2 = "ChatPreviewV2",
|
|
475
|
-
ChatPreviewIsLoading = "ChatPreviewIsLoading",
|
|
476
|
-
ChatPreviewPostInteraction = "ChatPreviewPostInteraction",
|
|
477
|
-
ChatPreviewProductComparison = "ChatPreviewProductComparison",
|
|
478
|
-
SuggestionBar = "SuggestionBar",
|
|
479
|
-
SuggestionBarV2 = "SuggestionBarV2",
|
|
480
|
-
ImagePromptCard = "ImagePromptCard",
|
|
481
|
-
ImageBanner = "ImageBanner",
|
|
482
|
-
SingleImagePrompt = "SingleImagePrompt",
|
|
483
|
-
SearchPrompt = "SearchPrompt",
|
|
484
|
-
SearchZeroStateEntryPoint = "SearchZeroStateEntryPoint",
|
|
485
|
-
SearchResultsEntryPoint = "SearchResultsEntryPoint",
|
|
486
|
-
SearchOverlayHost = "SearchOverlayHost",
|
|
487
|
-
NoOp = "NoOp",
|
|
488
|
-
}
|
|
489
|
-
type WidgetConfig = ChatPreviewWidgetConfig | SocialProofV2WidgetConfig | ChatPreviewV2WidgetConfig | ChatPreviewPostInteractionWidgetConfig | ChatPreviewIsLoadingWidgetConfig | ChatPreviewProductComparisonWidgetConfig | SuggestionBarWidgetV2Config | ImagePromptWidgetConfig | ImageBannerWidgetConfig | SingleImagePromptWidgetConfig | SearchPromptWidgetConfig | SearchEntryPointWidgetConfig | SearchResultsEntryPointWidgetConfig | SearchOverlayHostWidgetConfig | NoOpWidgetConfig;
|
|
490
|
-
interface BaseWidgetConfig<T extends WidgetType> {
|
|
491
|
-
widgetConfigId: string;
|
|
492
|
-
type: T;
|
|
493
|
-
contentId?: string;
|
|
494
|
-
}
|
|
495
|
-
interface ImageBannerWidgetConfig extends BaseWidgetConfig<WidgetType.ImageBanner> {
|
|
496
|
-
imageSrc: string;
|
|
497
|
-
title: string;
|
|
498
|
-
subtitle: string;
|
|
499
|
-
assistantMessage: string;
|
|
500
|
-
}
|
|
501
|
-
interface ChatPreviewWidgetConfig extends BaseWidgetConfig<WidgetType.ChatPreview> {
|
|
502
|
-
variant: 'filled' | 'flat' | 'outlined';
|
|
503
|
-
addSeparators?: boolean;
|
|
504
|
-
socialProofConfig?: SocialProofConfig;
|
|
505
|
-
footerConfig?: ChatPreviewFooterConfig;
|
|
506
|
-
}
|
|
507
|
-
interface ChatPreviewHeaderV2Config {
|
|
508
|
-
title?: string;
|
|
509
|
-
imageSrc?: string;
|
|
510
|
-
imageHeight?: number;
|
|
511
|
-
}
|
|
512
|
-
type SingleImageConfig = {
|
|
513
|
-
layout: 'single';
|
|
514
|
-
imageIndex: number;
|
|
515
|
-
};
|
|
516
|
-
type MultiImageConfig = {
|
|
517
|
-
layout: 'grid' | 'horizontal';
|
|
518
|
-
imageNames: string[];
|
|
519
|
-
};
|
|
520
|
-
type SocialProofImageConfig = SingleImageConfig | MultiImageConfig;
|
|
521
|
-
type ChatPreviewSuggestionButtonConfig = {
|
|
522
|
-
buttonStrings: string[];
|
|
523
|
-
accentButtonVariants?: {
|
|
524
|
-
button: SuggestionButtonVariant;
|
|
525
|
-
hover: SuggestionButtonVariant;
|
|
526
|
-
};
|
|
527
|
-
buttonVariants: {
|
|
528
|
-
button: SuggestionButtonVariant;
|
|
529
|
-
hover: SuggestionButtonVariant;
|
|
530
|
-
};
|
|
531
|
-
numRows?: NumRows;
|
|
532
|
-
};
|
|
533
|
-
type ChatPreviewAnimatedTextConfig = {
|
|
534
|
-
leadingText: string;
|
|
535
|
-
animatedStrings: string[];
|
|
536
|
-
};
|
|
537
|
-
type ChatPreviewVariant = {
|
|
538
|
-
variant: 'flat';
|
|
539
|
-
} | {
|
|
540
|
-
variant: 'filled';
|
|
541
|
-
backgroundFillColor: string;
|
|
542
|
-
} | {
|
|
543
|
-
variant: 'outlined';
|
|
544
|
-
};
|
|
545
|
-
interface BaseChatPreviewConfig {
|
|
546
|
-
headerConfig: ChatPreviewHeaderV2Config;
|
|
547
|
-
suggestionButtonsConfig: ChatPreviewSuggestionButtonConfig;
|
|
548
|
-
userQueryButtonConfig: UserQueryButtonConfig;
|
|
549
|
-
chatPreviewVariant: ChatPreviewVariant;
|
|
550
|
-
addSeparators?: boolean;
|
|
551
|
-
}
|
|
552
|
-
interface ChatPreviewPostInteractionWidgetConfig extends BaseWidgetConfig<WidgetType.ChatPreviewPostInteraction>, BaseChatPreviewConfig {
|
|
553
|
-
chatPreviewVariant: ChatPreviewVariant;
|
|
554
|
-
addSeparators?: boolean;
|
|
555
|
-
}
|
|
556
|
-
interface ChatPreviewIsLoadingWidgetConfig extends BaseWidgetConfig<WidgetType.ChatPreviewIsLoading>, BaseChatPreviewConfig {}
|
|
557
|
-
interface ChatPreviewProductComparisonWidgetConfig extends BaseWidgetConfig<WidgetType.ChatPreviewProductComparison>, BaseChatPreviewConfig {
|
|
558
|
-
useLargeProductComparison?: boolean;
|
|
559
|
-
}
|
|
560
|
-
interface ChatPreviewV2WidgetConfig extends BaseWidgetConfig<WidgetType.ChatPreviewV2>, BaseChatPreviewConfig {
|
|
561
|
-
animatedTextConfig: ChatPreviewAnimatedTextConfig;
|
|
562
|
-
}
|
|
563
|
-
interface SocialProofV2WidgetConfig extends BaseWidgetConfig<WidgetType.SocialProofV2>, BaseChatPreviewConfig {
|
|
564
|
-
customerQuery?: string;
|
|
565
|
-
imageConfig: SocialProofImageConfig;
|
|
566
|
-
}
|
|
567
|
-
interface SuggestionBarWidgetV2Config extends BaseWidgetConfig<WidgetType.SuggestionBarV2> {
|
|
568
|
-
metricDisplayLocation: ChatElementDisplayLocation;
|
|
569
|
-
location: SuggestionBarLocationForMetrics;
|
|
570
|
-
variant: SuggestionButtonVariant;
|
|
571
|
-
hoverVariant: SuggestionButtonVariant;
|
|
572
|
-
buttonTexts: {
|
|
573
|
-
default: string[];
|
|
574
|
-
productSpecific?: {
|
|
575
|
-
[productId: string]: string[];
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
boldFirstButton?: boolean;
|
|
579
|
-
twoRowsOnMobile?: boolean;
|
|
580
|
-
animationSpeed?: 'standard' | 'slow' | 'none';
|
|
581
|
-
buttonBorderRadius?: 'sm' | 'md' | 'lg';
|
|
582
|
-
}
|
|
583
|
-
interface ImagePromptWidgetConfig extends BaseWidgetConfig<WidgetType.ImagePromptCard> {
|
|
584
|
-
url: string;
|
|
585
|
-
lightText?: boolean;
|
|
586
|
-
title: string;
|
|
587
|
-
subtitle: string[];
|
|
588
|
-
staticSuggestionCopies: string[];
|
|
589
|
-
userQueryButtonConfig: UserQueryButtonConfig;
|
|
590
|
-
fallbackBackgroundColor?: string;
|
|
591
|
-
}
|
|
592
|
-
interface SingleImagePromptWidgetConfig extends BaseWidgetConfig<WidgetType.SingleImagePrompt> {
|
|
593
|
-
title: string;
|
|
594
|
-
staticSuggestionCopies: string[];
|
|
595
|
-
userQueryButtonConfig: UserQueryButtonConfig;
|
|
596
|
-
}
|
|
597
|
-
interface SearchEntryPointWidgetConfig extends BaseWidgetConfig<WidgetType.SearchZeroStateEntryPoint> {
|
|
598
|
-
searchZeroStateVariant: SearchZeroStateVariant;
|
|
599
|
-
searchInputVariant: SearchInputVariant;
|
|
600
|
-
searchIconVariant?: SearchIconVariant;
|
|
601
|
-
searchIconSize?: number;
|
|
602
|
-
suggestionButtonConfig: SuggestionButtonConfig;
|
|
603
|
-
layout: SearchZeroStateLayout;
|
|
604
|
-
searchBoxPlaceholder: string;
|
|
605
|
-
animationSpeed?: 'standard' | 'slow' | 'none';
|
|
606
|
-
compactLabel?: string;
|
|
607
|
-
initialSuggestions?: string[];
|
|
608
|
-
usingPortal?: boolean;
|
|
609
|
-
includeSubtitle?: boolean;
|
|
610
|
-
}
|
|
611
|
-
interface NoOpWidgetConfig extends BaseWidgetConfig<WidgetType.NoOp> {}
|
|
612
|
-
interface SearchOverlayHostWidgetConfig extends BaseWidgetConfig<WidgetType.SearchOverlayHost> {}
|
|
613
|
-
interface SearchResultsEntryPointWidgetConfig extends BaseWidgetConfig<WidgetType.SearchResultsEntryPoint> {
|
|
614
|
-
searchInputVariant: SearchInputVariant;
|
|
615
|
-
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
616
|
-
productGridVariant: ProductGridVariant;
|
|
617
|
-
searchBoxPlaceholder: string;
|
|
618
|
-
noResultsFoundText?: string;
|
|
619
|
-
}
|
|
620
|
-
interface WidgetHeaderProps extends TestProps {
|
|
621
|
-
title?: string;
|
|
622
|
-
logo?: string;
|
|
623
|
-
logoHeight?: number;
|
|
624
|
-
orgShortName: string;
|
|
625
|
-
variant?: SearchPromptVariant;
|
|
626
|
-
}
|
|
627
|
-
interface UserQueryOptions {
|
|
628
|
-
footerVariant?: 'standard';
|
|
629
|
-
replyButtonText?: string;
|
|
630
|
-
replyButtonIcon?: 'magnifyingGlass' | 'send' | 'thinMagnifyingGlass' | 'ai-search';
|
|
631
|
-
}
|
|
632
|
-
type SearchPromptVariant = 'primary';
|
|
633
|
-
interface SearchPromptWidgetConfig extends BaseWidgetConfig<WidgetType.SearchPrompt> {
|
|
634
|
-
variant: SearchPromptVariant;
|
|
635
|
-
title: string;
|
|
636
|
-
headerConfig: WidgetHeaderProps;
|
|
637
|
-
suggestionButtons: {
|
|
638
|
-
variant: SuggestionButtonVariant;
|
|
639
|
-
hoverVariant: SuggestionButtonVariant;
|
|
640
|
-
buttonTexts: string[];
|
|
641
|
-
};
|
|
642
|
-
footerConfig?: UserQueryOptions;
|
|
643
|
-
}
|
|
644
|
-
type PageVariantBase = {
|
|
645
|
-
variantId: string;
|
|
646
|
-
widgetMounting: WidgetMounting[];
|
|
647
|
-
variantTests: PageVariantTest[];
|
|
648
|
-
};
|
|
649
|
-
type PLPPageVariant = PageVariantBase & {
|
|
650
|
-
variantType: 'plp';
|
|
651
|
-
plpIdExtractor: IdExtractor;
|
|
652
|
-
};
|
|
653
|
-
type PDPPageVariant = PageVariantBase & {
|
|
654
|
-
variantType: 'pdp';
|
|
655
|
-
parentProductIdExtractor?: IdExtractor;
|
|
656
|
-
productIdExtractor: IdExtractor;
|
|
657
|
-
};
|
|
658
|
-
type VisitPageVariant = PageVariantBase & {
|
|
659
|
-
variantType: 'page_visit';
|
|
660
|
-
};
|
|
661
|
-
type OtherPageVariant = PageVariantBase & {
|
|
662
|
-
variantType: 'other';
|
|
663
|
-
};
|
|
664
|
-
type HomePageVariant = PageVariantBase & {
|
|
665
|
-
variantType: 'homepage';
|
|
666
|
-
};
|
|
667
|
-
type SearchPageVariant = PageVariantBase & {
|
|
668
|
-
variantType: 'search';
|
|
669
|
-
};
|
|
670
|
-
type PageVariantConfig = PLPPageVariant | PDPPageVariant | VisitPageVariant | OtherPageVariant | HomePageVariant | SearchPageVariant;
|
|
671
|
-
//#endregion
|
|
672
|
-
export { type OrgUIConfig, PageVariantConfig, type ProductCardConfig, ProductGridVariant, SearchInputVariant, type WidgetConfig, WidgetMountingConfig };
|