@thryveai/theme-interfaces 1.5.6 → 1.5.9
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 +14 -14
- package/retailer-settings.interfaces.d.ts +24 -2
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.9",
|
|
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
|
+
}
|
|
@@ -75,8 +75,10 @@ export interface IRetailerSettings {
|
|
|
75
75
|
showImgOnOrder?: boolean;
|
|
76
76
|
smsNotifications?: ISMSConfig;
|
|
77
77
|
sodiumWarning?: ISodiumWarning;
|
|
78
|
+
specialRequestItems?: boolean;
|
|
78
79
|
subHeaderHeight?: number;
|
|
79
80
|
useAddressValidation?: boolean;
|
|
81
|
+
productCards?: IProductCardsProps;
|
|
80
82
|
}
|
|
81
83
|
export interface IExternalApps {
|
|
82
84
|
sts?: IExternalAppSTS;
|
|
@@ -208,10 +210,11 @@ export interface IDefaultRetailerSettings {
|
|
|
208
210
|
showCheckoutPromoCode: boolean;
|
|
209
211
|
showImgOnOrder: boolean;
|
|
210
212
|
smsNotifications: ISMSConfig;
|
|
211
|
-
sodiumWarning
|
|
213
|
+
sodiumWarning: ISodiumWarning;
|
|
212
214
|
subHeaderHeight: number;
|
|
213
215
|
timeslotModalSettings: ITimeslotModalSettings;
|
|
214
216
|
useAddressValidation: boolean;
|
|
217
|
+
productCards: IProductCardsProps;
|
|
215
218
|
}
|
|
216
219
|
export interface IGoogleAutocompleteSettings {
|
|
217
220
|
types?: IGoogleAutocompleteTypes;
|
|
@@ -230,7 +233,7 @@ export interface ICtaButtons {
|
|
|
230
233
|
iconAlignment: "left" | "right" | null;
|
|
231
234
|
iconName: IconNames;
|
|
232
235
|
}
|
|
233
|
-
interface ISodiumWarning {
|
|
236
|
+
export interface ISodiumWarning {
|
|
234
237
|
isEnabled: boolean;
|
|
235
238
|
threshold: number;
|
|
236
239
|
}
|
|
@@ -350,4 +353,23 @@ export interface IPdpDetailsLayout {
|
|
|
350
353
|
mobileTab1: string[];
|
|
351
354
|
mobileTab2: string[];
|
|
352
355
|
}
|
|
356
|
+
export interface IProductCardsProps {
|
|
357
|
+
gridRowLength: {
|
|
358
|
+
[key in IScreenType]: number;
|
|
359
|
+
};
|
|
360
|
+
productCard: {
|
|
361
|
+
enabled: boolean;
|
|
362
|
+
layouts: IProductCardLayouts;
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
export declare type IProductCardLayouts = {
|
|
366
|
+
ProductGrids: "default";
|
|
367
|
+
};
|
|
368
|
+
export declare type IProductCardLayoutObjects<T> = {
|
|
369
|
+
[Place in keyof IProductCardLayouts]: {
|
|
370
|
+
[key in IProductCardLayouts[Place]]: T;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
|
|
374
|
+
export declare type IProductCardILayoutVersions = IProductCardLayouts[IProductCardILayoutTypes];
|
|
353
375
|
export {};
|