@thryveai/theme-interfaces 1.5.8 → 1.5.11

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
+ ```
@@ -3,6 +3,7 @@ export declare type IAdminTemplateInputTypes = {
3
3
  [key in IAdminControlType]: IAdminControlType;
4
4
  };
5
5
  export interface IAdminSettingsTemplate {
6
+ adminPanelOnly: IAdminControl;
6
7
  accountPage: IAdminControl;
7
8
  addressValidationTypes: IAdminControl;
8
9
  allowInStorePurchases: IAdminControl;
@@ -1,3 +1,2 @@
1
- import { IAdminSettingsTemplate } from "./admin-settings-interfaces";
2
- export declare const AdminSettingsTemplate: IAdminSettingsTemplate;
1
+ export declare const AdminSettingsTemplate: any;
3
2
  export default AdminSettingsTemplate;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "1.5.8",
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.11",
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
+ }
@@ -62,7 +62,7 @@ export interface IRetailerSettings {
62
62
  minimumCreditCardAmount?: number;
63
63
  nutritionZone?: INutritionZone;
64
64
  paymentCards?: IPaymentCards;
65
- pdpDetailsLayout?: IPdpDetailsLayout;
65
+ pdpDetailsLayout?: IProductDetailsPageLayout;
66
66
  productCardTitleHeight?: number;
67
67
  promoTemplateVersion?: number;
68
68
  registrationFields?: IRegistrationField[];
@@ -75,6 +75,7 @@ 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;
80
81
  productCards?: IProductCardsProps;
@@ -197,7 +198,7 @@ export interface IDefaultRetailerSettings {
197
198
  minimumCreditCardAmount: number;
198
199
  nutritionZone: INutritionZone;
199
200
  paymentCards: IPaymentCards;
200
- pdpDetailsLayout: IPdpDetailsLayout;
201
+ pdpDetailsLayout: IProductDetailsPageLayout;
201
202
  productCardTitleHeight: number;
202
203
  promoTemplateVersion: number;
203
204
  registrationFields: IRegistrationField[];
@@ -210,6 +211,7 @@ export interface IDefaultRetailerSettings {
210
211
  showImgOnOrder: boolean;
211
212
  smsNotifications: ISMSConfig;
212
213
  sodiumWarning: ISodiumWarning;
214
+ specialRequestItems: boolean;
213
215
  subHeaderHeight: number;
214
216
  timeslotModalSettings: ITimeslotModalSettings;
215
217
  useAddressValidation: boolean;
@@ -347,11 +349,6 @@ export interface IAddressIntegration {
347
349
  addressFinderType: IAddressFinderType;
348
350
  }
349
351
  export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
350
- export interface IPdpDetailsLayout {
351
- desktop: string[];
352
- mobileTab1: string[];
353
- mobileTab2: string[];
354
- }
355
352
  export interface IProductCardsProps {
356
353
  gridRowLength: {
357
354
  [key in IScreenType]: number;
@@ -371,4 +368,15 @@ export declare type IProductCardLayoutObjects<T> = {
371
368
  };
372
369
  export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
373
370
  export declare type IProductCardILayoutVersions = IProductCardLayouts[IProductCardILayoutTypes];
371
+ export interface IProductDetailsPageLayout {
372
+ desktop: {
373
+ left: PdpDetailsElementLayout[];
374
+ right: PdpDetailsElementLayout[];
375
+ };
376
+ mobile: {
377
+ left: PdpDetailsElementLayout[];
378
+ right: PdpDetailsElementLayout[];
379
+ };
380
+ }
381
+ export declare type PdpDetailsElementLayout = 'productNutrition' | 'productIngredients' | 'productDescription' | 'sodiumWarning' | 'productNumber' | 'recommendations' | 'productSalesInfo' | string;
374
382
  export {};