@thryveai/theme-interfaces 1.5.13 → 1.5.14
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.14",
|
|
4
4
|
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc",
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"author": "Simon Markey",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"typescript": "
|
|
12
|
+
"typescript": "4.5.4"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -63,7 +63,7 @@ export interface IRetailerSettings {
|
|
|
63
63
|
minimumCreditCardAmount?: number;
|
|
64
64
|
nutritionZone?: INutritionZone;
|
|
65
65
|
paymentCards?: IPaymentCards;
|
|
66
|
-
pdpDetailsLayout?:
|
|
66
|
+
pdpDetailsLayout?: IProductDetailsPageLayout;
|
|
67
67
|
productCardTitleHeight?: number;
|
|
68
68
|
promoTemplateVersion?: number;
|
|
69
69
|
registrationFields?: IRegistrationField[];
|
|
@@ -80,6 +80,14 @@ export interface IRetailerSettings {
|
|
|
80
80
|
subHeaderHeight?: number;
|
|
81
81
|
useAddressValidation?: boolean;
|
|
82
82
|
productCards?: IProductCardsProps;
|
|
83
|
+
layouts?: IGlobalLayouts;
|
|
84
|
+
}
|
|
85
|
+
export interface IGlobalLayouts {
|
|
86
|
+
cartSummary: ICartSummaryLayout;
|
|
87
|
+
}
|
|
88
|
+
export interface ICartSummaryLayout {
|
|
89
|
+
showTaxTotal: boolean;
|
|
90
|
+
showTaxGroups: boolean;
|
|
83
91
|
}
|
|
84
92
|
export interface IExternalApps {
|
|
85
93
|
sts?: IExternalAppSTS;
|
|
@@ -200,7 +208,7 @@ export interface IDefaultRetailerSettings {
|
|
|
200
208
|
minimumCreditCardAmount: number;
|
|
201
209
|
nutritionZone: INutritionZone;
|
|
202
210
|
paymentCards: IPaymentCards;
|
|
203
|
-
pdpDetailsLayout:
|
|
211
|
+
pdpDetailsLayout: IProductDetailsPageLayout;
|
|
204
212
|
productCardTitleHeight: number;
|
|
205
213
|
promoTemplateVersion: number;
|
|
206
214
|
registrationFields: IRegistrationField[];
|
|
@@ -218,6 +226,7 @@ export interface IDefaultRetailerSettings {
|
|
|
218
226
|
timeslotModalSettings: ITimeslotModalSettings;
|
|
219
227
|
useAddressValidation: boolean;
|
|
220
228
|
productCards: IProductCardsProps;
|
|
229
|
+
layouts: IGlobalLayouts;
|
|
221
230
|
}
|
|
222
231
|
export interface IGoogleAutocompleteSettings {
|
|
223
232
|
types?: IGoogleAutocompleteTypes;
|
|
@@ -351,11 +360,6 @@ export interface IAddressIntegration {
|
|
|
351
360
|
addressFinderType: IAddressFinderType;
|
|
352
361
|
}
|
|
353
362
|
export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
|
|
354
|
-
export interface IPdpDetailsLayout {
|
|
355
|
-
desktop: string[];
|
|
356
|
-
mobileTab1: string[];
|
|
357
|
-
mobileTab2: string[];
|
|
358
|
-
}
|
|
359
363
|
export interface IProductCardsProps {
|
|
360
364
|
gridRowLength: {
|
|
361
365
|
[key in IScreenType]: number;
|
|
@@ -375,4 +379,15 @@ export declare type IProductCardLayoutObjects<T> = {
|
|
|
375
379
|
};
|
|
376
380
|
export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
|
|
377
381
|
export declare type IProductCardILayoutVersions = IProductCardLayouts[IProductCardILayoutTypes];
|
|
382
|
+
export interface IProductDetailsPageLayout {
|
|
383
|
+
desktop: {
|
|
384
|
+
left: PdpDetailsElementLayout[];
|
|
385
|
+
right: PdpDetailsElementLayout[];
|
|
386
|
+
};
|
|
387
|
+
mobile: {
|
|
388
|
+
left: PdpDetailsElementLayout[];
|
|
389
|
+
right: PdpDetailsElementLayout[];
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
export declare type PdpDetailsElementLayout = "productNutrition" | "productIngredients" | "productDescription" | "sodiumWarning" | "productNumber" | "recommendations" | "productSalesInfo" | string;
|
|
378
393
|
export {};
|