@thryveai/theme-interfaces 1.5.1 → 1.5.5
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.
|
@@ -199,6 +199,13 @@ export interface IDefaultThemeInterface {
|
|
|
199
199
|
activeColor: string;
|
|
200
200
|
backIconColor: string;
|
|
201
201
|
};
|
|
202
|
+
breadcrumbTitle: {
|
|
203
|
+
textTransform: ITextTransform;
|
|
204
|
+
backgroundColor: string;
|
|
205
|
+
color: string;
|
|
206
|
+
activeColor: string;
|
|
207
|
+
backIconColor: string;
|
|
208
|
+
};
|
|
202
209
|
payment: {
|
|
203
210
|
selectedCardBackground: string;
|
|
204
211
|
selectedCardColor: string;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"push": "npm run build && npm publish"
|
|
8
|
-
},
|
|
9
|
-
"author": "Simon Markey",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"typescript": "^4.5.4"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "1.5.5",
|
|
4
|
+
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc",
|
|
7
|
+
"push": "npm run build && npm publish"
|
|
8
|
+
},
|
|
9
|
+
"author": "Simon Markey",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"typescript": "^4.5.4"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -30,6 +30,7 @@ export interface IRetailerSettings {
|
|
|
30
30
|
defaultSearchParams?: IDefaultSearchParams;
|
|
31
31
|
defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
32
32
|
defaultStoreLocation?: IDefaultStoreLocation;
|
|
33
|
+
disableAddressOnDelivery?: boolean;
|
|
33
34
|
disableTprPrice?: boolean;
|
|
34
35
|
documentTitle?: string;
|
|
35
36
|
eircode?: string | null;
|
|
@@ -37,11 +38,14 @@ export interface IRetailerSettings {
|
|
|
37
38
|
enableGoogleTranslate?: boolean;
|
|
38
39
|
enableNewsletterSignup?: boolean;
|
|
39
40
|
enableNotifications?: boolean;
|
|
41
|
+
enableVouchers?: boolean;
|
|
40
42
|
errorLoggingLevel?: ILoggingLevel;
|
|
43
|
+
externalApps?: IExternalApps;
|
|
41
44
|
externalStoreSelectorUrl?: string | undefined;
|
|
42
45
|
favoritesV1?: boolean;
|
|
43
46
|
flipp?: IFlippConfig | IFlippConfigV2 | null;
|
|
44
47
|
globalAnimations?: IGlobalAnimations;
|
|
48
|
+
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
45
49
|
gtmId?: undefined | string;
|
|
46
50
|
hideTaxOnSummary?: boolean;
|
|
47
51
|
houseAccountRegExValidation?: string;
|
|
@@ -63,7 +67,6 @@ export interface IRetailerSettings {
|
|
|
63
67
|
promoTemplateVersion?: number;
|
|
64
68
|
registrationFields?: IRegistrationField[];
|
|
65
69
|
restrictMapPlacesResults?: IRestrictMapPlaces;
|
|
66
|
-
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
67
70
|
retailerCountry?: IRetailerCountry;
|
|
68
71
|
retailerName: string;
|
|
69
72
|
searchPreview?: ISearchPreviewVisibility;
|
|
@@ -71,10 +74,9 @@ export interface IRetailerSettings {
|
|
|
71
74
|
showCheckoutPromoCode?: boolean;
|
|
72
75
|
showImgOnOrder?: boolean;
|
|
73
76
|
smsNotifications?: ISMSConfig;
|
|
77
|
+
sodiumWarning?: ISodiumWarning;
|
|
74
78
|
subHeaderHeight?: number;
|
|
75
79
|
useAddressValidation?: boolean;
|
|
76
|
-
externalApps?: IExternalApps;
|
|
77
|
-
sodiumWarning?: ISodiumWarning;
|
|
78
80
|
}
|
|
79
81
|
export interface IExternalApps {
|
|
80
82
|
sts?: IExternalAppSTS;
|
|
@@ -149,7 +151,6 @@ export interface IDefaultRetailerSettings {
|
|
|
149
151
|
addressValidationTypes: IAddressValidationTypes;
|
|
150
152
|
addresses: IAddressesSettings;
|
|
151
153
|
advertSettings: IAdvertSettings;
|
|
152
|
-
timeslotModalSettings: ITimeslotModalSettings;
|
|
153
154
|
allowInStorePurchases: boolean;
|
|
154
155
|
allowPastPurchases: boolean;
|
|
155
156
|
buildNumber: string;
|
|
@@ -164,6 +165,7 @@ export interface IDefaultRetailerSettings {
|
|
|
164
165
|
defaultSearchParams: IDefaultSearchParams;
|
|
165
166
|
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
166
167
|
defaultStoreLocation: IDefaultStoreLocation;
|
|
168
|
+
disableAddressOnDelivery: boolean;
|
|
167
169
|
disableTprPrice: boolean;
|
|
168
170
|
documentTitle: string;
|
|
169
171
|
eircode: string | undefined;
|
|
@@ -171,11 +173,13 @@ export interface IDefaultRetailerSettings {
|
|
|
171
173
|
enableGoogleTranslate: boolean;
|
|
172
174
|
enableNewsletterSignup: boolean;
|
|
173
175
|
enableNotifications: boolean;
|
|
176
|
+
enableVouchers: boolean;
|
|
174
177
|
errorLoggingLevel: ILoggingLevel;
|
|
175
178
|
externalStoreSelectorUrl: string | undefined;
|
|
176
179
|
favoritesV1: boolean;
|
|
177
180
|
flipp: IFlippConfig | IFlippConfigV2 | null;
|
|
178
181
|
globalAnimations: IGlobalAnimations;
|
|
182
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
179
183
|
gtmId: undefined | string;
|
|
180
184
|
hideTaxOnSummary: boolean;
|
|
181
185
|
houseAccountRegExValidation: string;
|
|
@@ -197,7 +201,6 @@ export interface IDefaultRetailerSettings {
|
|
|
197
201
|
promoTemplateVersion: number;
|
|
198
202
|
registrationFields: IRegistrationField[];
|
|
199
203
|
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
200
|
-
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
201
204
|
retailerCountry: IRetailerCountry;
|
|
202
205
|
retailerName: string;
|
|
203
206
|
searchPreview: ISearchPreviewVisibility;
|
|
@@ -205,9 +208,10 @@ export interface IDefaultRetailerSettings {
|
|
|
205
208
|
showCheckoutPromoCode: boolean;
|
|
206
209
|
showImgOnOrder: boolean;
|
|
207
210
|
smsNotifications: ISMSConfig;
|
|
211
|
+
sodiumWarning?: ISodiumWarning;
|
|
208
212
|
subHeaderHeight: number;
|
|
213
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
209
214
|
useAddressValidation: boolean;
|
|
210
|
-
sodiumWarning?: ISodiumWarning;
|
|
211
215
|
}
|
|
212
216
|
export interface IGoogleAutocompleteSettings {
|
|
213
217
|
types?: IGoogleAutocompleteTypes;
|
|
@@ -216,10 +220,10 @@ export interface IGoogleAutocompleteSettings {
|
|
|
216
220
|
restrictCountries?: string[];
|
|
217
221
|
}
|
|
218
222
|
interface IGoogleAutocompleteBounds {
|
|
223
|
+
east_longitude: number;
|
|
224
|
+
north_latitude: number;
|
|
219
225
|
south_latitude: number;
|
|
220
226
|
west_longitude: number;
|
|
221
|
-
north_latitude: number;
|
|
222
|
-
east_longitude: number;
|
|
223
227
|
}
|
|
224
228
|
declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
|
|
225
229
|
export interface ICtaButtons {
|
|
@@ -288,7 +292,7 @@ export interface IRestrictMapPlaces {
|
|
|
288
292
|
totalTake: number;
|
|
289
293
|
};
|
|
290
294
|
}
|
|
291
|
-
export declare type IValidationType = IValidateDateRange | IValidateLength | "
|
|
295
|
+
export declare type IValidationType = IValidateDateRange | IValidateLength | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState";
|
|
292
296
|
declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
|
|
293
297
|
export declare type INutritionZone = "us" | "eu" | "au" | "ca";
|
|
294
298
|
export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
|
package/theme.interfaces.d.ts
CHANGED
|
@@ -199,6 +199,13 @@ export interface IThemeInterface {
|
|
|
199
199
|
activeColor?: string;
|
|
200
200
|
backIconColor?: string;
|
|
201
201
|
};
|
|
202
|
+
breadcrumbTitle?: {
|
|
203
|
+
textTransform?: ITextTransform;
|
|
204
|
+
backgroundColor?: string;
|
|
205
|
+
color?: string;
|
|
206
|
+
activeColor?: string;
|
|
207
|
+
backIconColor?: string;
|
|
208
|
+
};
|
|
202
209
|
payment?: {
|
|
203
210
|
selectedCardBackground?: string;
|
|
204
211
|
selectedCardColor?: string;
|
|
@@ -556,6 +563,7 @@ interface INavBottom extends INavStyles {
|
|
|
556
563
|
}
|
|
557
564
|
interface INavStyles {
|
|
558
565
|
color?: string;
|
|
566
|
+
hoverColor?: string;
|
|
559
567
|
backgroundColor?: string;
|
|
560
568
|
links?: {
|
|
561
569
|
static?: ILinkType;
|