@thryveai/theme-interfaces 1.5.13 → 1.5.16

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/README.md CHANGED
@@ -1,29 +1,29 @@
1
- #V8 Theme Interfaces
2
-
3
- interfaces for all MI9 Retailer Themes.
4
-
5
- ###icons.interfaces
6
- List of all icons used inside the ui projects.
7
-
8
- ###retailer-settings.interfaces
9
- more info here
10
- https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
11
- ###theme.interfaces
12
- The interface for each theme, colors, fonts, sizes and other css properties.
13
-
14
- #To Build Project
15
-
16
- ```
17
- npm install
18
- npm run build
19
- ```
20
-
21
- #To Publish npm package
22
- ```
23
- npm login
24
- npm publish
25
- ```
26
- or
27
- ```
28
- npm run push
29
- ```
1
+ #V8 Theme Interfaces
2
+
3
+ interfaces for all MI9 Retailer Themes.
4
+
5
+ ###icons.interfaces
6
+ List of all icons used inside the ui projects.
7
+
8
+ ###retailer-settings.interfaces
9
+ more info here
10
+ https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
11
+ ###theme.interfaces
12
+ The interface for each theme, colors, fonts, sizes and other css properties.
13
+
14
+ #To Build Project
15
+
16
+ ```
17
+ npm install
18
+ npm run build
19
+ ```
20
+
21
+ #To Publish npm package
22
+ ```
23
+ npm login
24
+ npm publish
25
+ ```
26
+ or
27
+ ```
28
+ npm run push
29
+ ```
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "1.5.13",
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.16",
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,7 +1,7 @@
1
1
  import { IconNames, PaymentCards } from "./icons.interfaces";
2
2
  export interface IRetailerSettings {
3
3
  accountPage?: IAccountPageSettings;
4
- additionalcharges?: boolean;
4
+ additionalCharges?: boolean;
5
5
  advertSettings?: IAdvertSettings;
6
6
  TimeslotModalSettings?: ITimeslotModalSettings;
7
7
  addresses?: {
@@ -63,7 +63,7 @@ export interface IRetailerSettings {
63
63
  minimumCreditCardAmount?: number;
64
64
  nutritionZone?: INutritionZone;
65
65
  paymentCards?: IPaymentCards;
66
- pdpDetailsLayout?: IPdpDetailsLayout;
66
+ pdpDetailsLayout?: IProductDetailsPageLayout;
67
67
  productCardTitleHeight?: number;
68
68
  promoTemplateVersion?: number;
69
69
  registrationFields?: IRegistrationField[];
@@ -80,6 +80,18 @@ export interface IRetailerSettings {
80
80
  subHeaderHeight?: number;
81
81
  useAddressValidation?: boolean;
82
82
  productCards?: IProductCardsProps;
83
+ layouts?: IGlobalLayouts;
84
+ featureSwitch?: IFeatureSwitch;
85
+ }
86
+ export interface IFeatureSwitch {
87
+ clientCache?: boolean;
88
+ }
89
+ export interface IGlobalLayouts {
90
+ cartSummary: ICartSummaryLayout;
91
+ }
92
+ export interface ICartSummaryLayout {
93
+ showTaxTotal: boolean;
94
+ showTaxGroups: boolean;
83
95
  }
84
96
  export interface IExternalApps {
85
97
  sts?: IExternalAppSTS;
@@ -150,7 +162,7 @@ export interface IAdvertSkyScrapers {
150
162
  }
151
163
  export interface IDefaultRetailerSettings {
152
164
  accountPage: IAccountPageSettings;
153
- additionalcharges: boolean;
165
+ additionalCharges: boolean;
154
166
  addressIntegration: IAddressIntegration;
155
167
  addressValidationTypes: IAddressValidationTypes;
156
168
  addresses: IAddressesSettings;
@@ -200,7 +212,7 @@ export interface IDefaultRetailerSettings {
200
212
  minimumCreditCardAmount: number;
201
213
  nutritionZone: INutritionZone;
202
214
  paymentCards: IPaymentCards;
203
- pdpDetailsLayout: IPdpDetailsLayout;
215
+ pdpDetailsLayout: IProductDetailsPageLayout;
204
216
  productCardTitleHeight: number;
205
217
  promoTemplateVersion: number;
206
218
  registrationFields: IRegistrationField[];
@@ -218,6 +230,8 @@ export interface IDefaultRetailerSettings {
218
230
  timeslotModalSettings: ITimeslotModalSettings;
219
231
  useAddressValidation: boolean;
220
232
  productCards: IProductCardsProps;
233
+ layouts: IGlobalLayouts;
234
+ features: IFeatureSwitch;
221
235
  }
222
236
  export interface IGoogleAutocompleteSettings {
223
237
  types?: IGoogleAutocompleteTypes;
@@ -351,11 +365,6 @@ export interface IAddressIntegration {
351
365
  addressFinderType: IAddressFinderType;
352
366
  }
353
367
  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
368
  export interface IProductCardsProps {
360
369
  gridRowLength: {
361
370
  [key in IScreenType]: number;
@@ -375,4 +384,15 @@ export declare type IProductCardLayoutObjects<T> = {
375
384
  };
376
385
  export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
377
386
  export declare type IProductCardILayoutVersions = IProductCardLayouts[IProductCardILayoutTypes];
387
+ export interface IProductDetailsPageLayout {
388
+ desktop: {
389
+ left: PdpDetailsElementLayout[];
390
+ right: PdpDetailsElementLayout[];
391
+ };
392
+ mobile: {
393
+ left: PdpDetailsElementLayout[];
394
+ right: PdpDetailsElementLayout[];
395
+ };
396
+ }
397
+ export declare type PdpDetailsElementLayout = "productNutrition" | "productIngredients" | "productDescription" | "sodiumWarning" | "productNumber" | "recommendations" | "productSalesInfo" | string;
378
398
  export {};