@thryveai/theme-interfaces 1.5.7 → 1.5.10

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,14 +1,14 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "1.5.7",
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.10",
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;
@@ -209,9 +211,11 @@ export interface IDefaultRetailerSettings {
209
211
  showImgOnOrder: boolean;
210
212
  smsNotifications: ISMSConfig;
211
213
  sodiumWarning: ISodiumWarning;
214
+ specialRequestItems: boolean;
212
215
  subHeaderHeight: number;
213
216
  timeslotModalSettings: ITimeslotModalSettings;
214
217
  useAddressValidation: boolean;
218
+ productCards: IProductCardsProps;
215
219
  }
216
220
  export interface IGoogleAutocompleteSettings {
217
221
  types?: IGoogleAutocompleteTypes;
@@ -350,4 +354,23 @@ export interface IPdpDetailsLayout {
350
354
  mobileTab1: string[];
351
355
  mobileTab2: string[];
352
356
  }
357
+ export interface IProductCardsProps {
358
+ gridRowLength: {
359
+ [key in IScreenType]: number;
360
+ };
361
+ productCard: {
362
+ enabled: boolean;
363
+ layouts: IProductCardLayouts;
364
+ };
365
+ }
366
+ export declare type IProductCardLayouts = {
367
+ ProductGrids: "default";
368
+ };
369
+ export declare type IProductCardLayoutObjects<T> = {
370
+ [Place in keyof IProductCardLayouts]: {
371
+ [key in IProductCardLayouts[Place]]: T;
372
+ };
373
+ };
374
+ export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
375
+ export declare type IProductCardILayoutVersions = IProductCardLayouts[IProductCardILayoutTypes];
353
376
  export {};