@thryveai/theme-interfaces 1.4.10 → 1.4.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/.eslintrc.js CHANGED
@@ -3,6 +3,7 @@ module.exports = {
3
3
  browser: true,
4
4
  es2021: true
5
5
  },
6
+ extends: ['prettier'],
6
7
  parser: '@typescript-eslint/parser',
7
8
  parserOptions: {
8
9
  ecmaFeatures: {
@@ -11,7 +12,9 @@ module.exports = {
11
12
  ecmaVersion: 13,
12
13
  sourceType: 'module'
13
14
  },
15
+ plugins: ['eslint-plugin-prettier', 'prettier'],
14
16
  rules: {
17
+ 'prettier/prettier': ['error'],
15
18
  'sort-imports': [
16
19
  'error',
17
20
  {
package/package.json CHANGED
@@ -1,24 +1,26 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "1.4.10",
4
- "description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
5
- "scripts": {
6
- "build": "tsc && npm run lint && npm run format",
7
- "push": "npm run build && npm publish",
8
- "lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
9
- "format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""
10
- },
11
- "author": "Simon Markey",
12
- "license": "ISC",
13
- "devDependencies": {
14
- "@typescript-eslint/eslint-plugin": "^5.9.1",
15
- "@typescript-eslint/parser": "^5.9.1",
16
- "eslint": "^7.32.0",
17
- "eslint-config-standard": "^16.0.3",
18
- "eslint-plugin-import": "^2.25.4",
19
- "eslint-plugin-node": "^11.1.0",
20
- "eslint-plugin-promise": "^5.2.0",
21
- "prettier": "^2.5.1",
22
- "typescript": "^4.5.4"
23
- }
24
- }
1
+ {
2
+ "name": "@thryveai/theme-interfaces",
3
+ "version": "1.4.11",
4
+ "description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
5
+ "scripts": {
6
+ "build": "tsc && npm run lint -- --fix",
7
+ "push": "npm run build && npm publish",
8
+ "lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
9
+ "format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""
10
+ },
11
+ "author": "Simon Markey",
12
+ "license": "ISC",
13
+ "devDependencies": {
14
+ "@typescript-eslint/eslint-plugin": "^5.9.1",
15
+ "@typescript-eslint/parser": "^5.9.1",
16
+ "eslint": "^7.32.0",
17
+ "eslint-config-prettier": "^8.3.0",
18
+ "eslint-config-standard": "^16.0.3",
19
+ "eslint-plugin-import": "^2.25.4",
20
+ "eslint-plugin-node": "^11.1.0",
21
+ "eslint-plugin-prettier": "^4.0.0",
22
+ "eslint-plugin-promise": "^5.2.0",
23
+ "prettier": "^2.5.1",
24
+ "typescript": "^4.5.4"
25
+ }
26
+ }
@@ -39,10 +39,12 @@ export interface IRetailerSettings {
39
39
  enableNewsletterSignup?: boolean;
40
40
  enableNotifications?: boolean;
41
41
  errorLoggingLevel?: ILoggingLevel;
42
+ externalApps?: IExternalApps;
42
43
  externalStoreSelectorUrl?: string | undefined;
43
44
  favoritesV1?: boolean;
44
45
  flipp?: IFlippConfig | IFlippConfigV2 | null;
45
46
  globalAnimations?: IGlobalAnimations;
47
+ googleAutocompleteSettings?: IGoogleAutocompleteSettings;
46
48
  gtmId?: undefined | string;
47
49
  hideTaxOnSummary?: boolean;
48
50
  houseAccountRegExValidation?: string;
@@ -64,7 +66,6 @@ export interface IRetailerSettings {
64
66
  promoTemplateVersion?: number;
65
67
  registrationFields?: IRegistrationField[];
66
68
  restrictMapPlacesResults?: IRestrictMapPlaces;
67
- googleAutocompleteSettings?: IGoogleAutocompleteSettings;
68
69
  retailerCountry?: IRetailerCountry;
69
70
  retailerName: string;
70
71
  searchPreview?: ISearchPreviewVisibility;
@@ -72,9 +73,9 @@ export interface IRetailerSettings {
72
73
  showCheckoutPromoCode?: boolean;
73
74
  showImgOnOrder?: boolean;
74
75
  smsNotifications?: ISMSConfig;
76
+ sodiumWarning?: boolean;
75
77
  subHeaderHeight?: number;
76
78
  useAddressValidation?: boolean;
77
- externalApps?: IExternalApps;
78
79
  }
79
80
 
80
81
  export interface IExternalApps {
@@ -231,6 +232,7 @@ export interface IDefaultRetailerSettings {
231
232
  showCheckoutPromoCode: boolean;
232
233
  showImgOnOrder: boolean;
233
234
  smsNotifications: ISMSConfig;
235
+ sodiumWarning: boolean;
234
236
  subHeaderHeight: number;
235
237
  timeslotModalSettings: ITimeslotModalSettings;
236
238
  useAddressValidation: boolean;