@thryveai/theme-interfaces 1.4.5 → 1.4.8-beta1
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.
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IDefaultCounty, IValidationType } from "./retailer-settings.interfaces";
|
|
2
|
+
export interface IAdminSettingsTemplate {
|
|
3
|
+
accountPage: {
|
|
4
|
+
loyaltyTab: {
|
|
5
|
+
disabledEdit: IAdminControl;
|
|
6
|
+
enabled: IAdminControl;
|
|
7
|
+
loyaltyNumberLength: IAdminControl;
|
|
8
|
+
loyaltyNumberPrefix: IAdminControl;
|
|
9
|
+
loyaltyValidationType: IAdminControl;
|
|
10
|
+
};
|
|
11
|
+
optional: boolean;
|
|
12
|
+
};
|
|
13
|
+
addressValidationTypes: IAdminControl;
|
|
14
|
+
allowInStorePurchases: IAdminControl;
|
|
15
|
+
allowPastPurchases: IAdminControl;
|
|
16
|
+
checkoutV1: IAdminControl;
|
|
17
|
+
defaultCountry: IAdminControl;
|
|
18
|
+
disableTprPrice: IAdminControl;
|
|
19
|
+
documentTitle: IAdminControl;
|
|
20
|
+
enable3dSecure: IAdminControl;
|
|
21
|
+
enableGoogleTranslate: IAdminControl;
|
|
22
|
+
enableNewsletterSignup: IAdminControl;
|
|
23
|
+
enableNotifications?: IAdminControl;
|
|
24
|
+
favoritesV1: IAdminControl;
|
|
25
|
+
flipp: IAdminControl;
|
|
26
|
+
hideTaxOnSummary: IAdminControl;
|
|
27
|
+
houseAccountRegExValidation: IAdminControl;
|
|
28
|
+
isPlanningOnly: IAdminControl;
|
|
29
|
+
limitProductCardTitleHeight: IAdminControl;
|
|
30
|
+
mainHeaderHeight: IAdminControl;
|
|
31
|
+
mapZoom: IAdminControl;
|
|
32
|
+
minimumCreditCardAmount: IAdminControl;
|
|
33
|
+
productCardTitleHeight: IAdminControl;
|
|
34
|
+
productCardv2: IAdminControl;
|
|
35
|
+
promoTemplateVersion: IAdminControl;
|
|
36
|
+
retailerCountry: IAdminControl;
|
|
37
|
+
retailerName: IAdminControl;
|
|
38
|
+
showCheckoutPromoCode: IAdminControl;
|
|
39
|
+
showImgOnOrder: IAdminControl;
|
|
40
|
+
subHeaderHeight: IAdminControl;
|
|
41
|
+
useAddressValidation: IAdminControl;
|
|
42
|
+
}
|
|
43
|
+
export interface IAdminControl {
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
helpLink?: string;
|
|
47
|
+
type: IAdminControlType;
|
|
48
|
+
options?: string[] | number[] | IDefaultCounty[] | IValidationType[];
|
|
49
|
+
value?: {
|
|
50
|
+
[key: string]: IAdminControl;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export declare type IAdminControlType = "checkbox" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object";
|
|
@@ -90,17 +90,32 @@ export interface IDefaultThemeInterface {
|
|
|
90
90
|
borderRadius: string;
|
|
91
91
|
clearBtnColor: string;
|
|
92
92
|
searchButton: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
desktop: {
|
|
94
|
+
static: {
|
|
95
|
+
color: string;
|
|
96
|
+
backgroundColor: string;
|
|
97
|
+
};
|
|
98
|
+
hover: {
|
|
99
|
+
color: string;
|
|
100
|
+
backgroundColor: string;
|
|
101
|
+
};
|
|
102
|
+
clicked: {
|
|
103
|
+
color: string;
|
|
104
|
+
backgroundColor: string;
|
|
105
|
+
};
|
|
96
106
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
tablet: {
|
|
108
|
+
static: {
|
|
109
|
+
color: string;
|
|
110
|
+
};
|
|
111
|
+
clicked: {
|
|
112
|
+
color: string;
|
|
113
|
+
};
|
|
100
114
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
mobile: {
|
|
116
|
+
static: {
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
104
119
|
};
|
|
105
120
|
};
|
|
106
121
|
suggestions: {
|
package/package.json
CHANGED
|
@@ -25,6 +25,7 @@ export interface IRetailerSettings {
|
|
|
25
25
|
checkoutV1?: boolean;
|
|
26
26
|
checkoutValidation?: ICheckoutValidation;
|
|
27
27
|
ctaButtons?: ICtaButtons;
|
|
28
|
+
daysToRemainSignedIn?: number;
|
|
28
29
|
defaultCountry?: IDefaultCounty;
|
|
29
30
|
defaultSearchParams?: IDefaultSearchParams;
|
|
30
31
|
defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
@@ -57,10 +58,12 @@ export interface IRetailerSettings {
|
|
|
57
58
|
minimumCreditCardAmount?: number;
|
|
58
59
|
nutritionZone?: INutritionZone;
|
|
59
60
|
paymentCards?: IPaymentCards;
|
|
61
|
+
pdpDetailsLayout?: IPdpDetailsLayout;
|
|
60
62
|
productCardTitleHeight?: number;
|
|
61
63
|
promoTemplateVersion?: number;
|
|
62
64
|
registrationFields?: IRegistrationField[];
|
|
63
65
|
restrictMapPlacesResults?: IRestrictMapPlaces;
|
|
66
|
+
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
64
67
|
retailerCountry?: IRetailerCountry;
|
|
65
68
|
retailerName: string;
|
|
66
69
|
searchPreview?: ISearchPreviewVisibility;
|
|
@@ -71,6 +74,7 @@ export interface IRetailerSettings {
|
|
|
71
74
|
subHeaderHeight?: number;
|
|
72
75
|
useAddressValidation?: boolean;
|
|
73
76
|
externalApps?: IExternalApps;
|
|
77
|
+
productCardv2?: boolean;
|
|
74
78
|
}
|
|
75
79
|
export interface IExternalApps {
|
|
76
80
|
sts?: IExternalAppSTS;
|
|
@@ -155,6 +159,7 @@ export interface IDefaultRetailerSettings {
|
|
|
155
159
|
checkoutV1: boolean;
|
|
156
160
|
checkoutValidation: ICheckoutValidation;
|
|
157
161
|
ctaButtons: ICtaButtons | null | undefined;
|
|
162
|
+
daysToRemainSignedIn: number;
|
|
158
163
|
defaultCountry: IDefaultCounty;
|
|
159
164
|
defaultSearchParams: IDefaultSearchParams;
|
|
160
165
|
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
@@ -187,10 +192,12 @@ export interface IDefaultRetailerSettings {
|
|
|
187
192
|
minimumCreditCardAmount: number;
|
|
188
193
|
nutritionZone: INutritionZone;
|
|
189
194
|
paymentCards: IPaymentCards;
|
|
195
|
+
pdpDetailsLayout: IPdpDetailsLayout;
|
|
190
196
|
productCardTitleHeight: number;
|
|
191
197
|
promoTemplateVersion: number;
|
|
192
198
|
registrationFields: IRegistrationField[];
|
|
193
199
|
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
200
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
194
201
|
retailerCountry: IRetailerCountry;
|
|
195
202
|
retailerName: string;
|
|
196
203
|
searchPreview: ISearchPreviewVisibility;
|
|
@@ -200,7 +207,21 @@ export interface IDefaultRetailerSettings {
|
|
|
200
207
|
smsNotifications: ISMSConfig;
|
|
201
208
|
subHeaderHeight: number;
|
|
202
209
|
useAddressValidation: boolean;
|
|
210
|
+
productCardv2: boolean;
|
|
203
211
|
}
|
|
212
|
+
export interface IGoogleAutocompleteSettings {
|
|
213
|
+
types?: IGoogleAutocompleteTypes;
|
|
214
|
+
bounds?: IGoogleAutocompleteBounds;
|
|
215
|
+
strictBounds?: boolean;
|
|
216
|
+
restrictCountries?: string[];
|
|
217
|
+
}
|
|
218
|
+
interface IGoogleAutocompleteBounds {
|
|
219
|
+
south_latitude: number;
|
|
220
|
+
west_longitude: number;
|
|
221
|
+
north_latitude: number;
|
|
222
|
+
east_longitude: number;
|
|
223
|
+
}
|
|
224
|
+
declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
|
|
204
225
|
export interface ICtaButtons {
|
|
205
226
|
iconAlignment: "left" | "right" | null;
|
|
206
227
|
iconName: IconNames;
|
|
@@ -316,4 +337,9 @@ export interface IAddressIntegration {
|
|
|
316
337
|
addressFinderType: IAddressFinderType;
|
|
317
338
|
}
|
|
318
339
|
export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
|
|
340
|
+
export interface IPdpDetailsLayout {
|
|
341
|
+
desktop: string[];
|
|
342
|
+
mobileTab1: string[];
|
|
343
|
+
mobileTab2: string[];
|
|
344
|
+
}
|
|
319
345
|
export {};
|
package/theme.interfaces.d.ts
CHANGED
|
@@ -90,17 +90,32 @@ export interface IThemeInterface {
|
|
|
90
90
|
borderRadius?: string;
|
|
91
91
|
clearBtnColor?: string;
|
|
92
92
|
searchButton?: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
desktop?: {
|
|
94
|
+
static?: {
|
|
95
|
+
color?: string;
|
|
96
|
+
backgroundColor?: string;
|
|
97
|
+
};
|
|
98
|
+
hover?: {
|
|
99
|
+
color?: string;
|
|
100
|
+
backgroundColor?: string;
|
|
101
|
+
};
|
|
102
|
+
clicked?: {
|
|
103
|
+
color?: string;
|
|
104
|
+
backgroundColor?: string;
|
|
105
|
+
};
|
|
96
106
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
tablet?: {
|
|
108
|
+
static?: {
|
|
109
|
+
color?: string;
|
|
110
|
+
};
|
|
111
|
+
clicked?: {
|
|
112
|
+
color?: string;
|
|
113
|
+
};
|
|
100
114
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
mobile?: {
|
|
116
|
+
static?: {
|
|
117
|
+
color?: string;
|
|
118
|
+
};
|
|
104
119
|
};
|
|
105
120
|
};
|
|
106
121
|
suggestions?: {
|