@thryveai/theme-interfaces 1.5.3 → 1.5.7

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.
@@ -563,6 +563,7 @@ interface INavBottom extends INavStyles {
563
563
  }
564
564
  interface INavStyles {
565
565
  color: string;
566
+ hoverColor: string;
566
567
  backgroundColor: string;
567
568
  links: {
568
569
  static: ILinkType;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "1.5.3",
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.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
+ }
@@ -30,6 +30,7 @@ export interface IRetailerSettings {
30
30
  defaultSearchParams?: IDefaultSearchParams;
31
31
  defaultShoppingMode?: "pickup" | "planning" | "delivery";
32
32
  defaultStoreLocation?: IDefaultStoreLocation;
33
+ disableAddressOnDelivery?: boolean;
33
34
  disableTprPrice?: boolean;
34
35
  documentTitle?: string;
35
36
  eircode?: string | null;
@@ -39,10 +40,12 @@ export interface IRetailerSettings {
39
40
  enableNotifications?: boolean;
40
41
  enableVouchers?: boolean;
41
42
  errorLoggingLevel?: ILoggingLevel;
43
+ externalApps?: IExternalApps;
42
44
  externalStoreSelectorUrl?: string | undefined;
43
45
  favoritesV1?: boolean;
44
46
  flipp?: IFlippConfig | IFlippConfigV2 | null;
45
47
  globalAnimations?: IGlobalAnimations;
48
+ googleAutocompleteSettings?: IGoogleAutocompleteSettings;
46
49
  gtmId?: undefined | string;
47
50
  hideTaxOnSummary?: boolean;
48
51
  houseAccountRegExValidation?: string;
@@ -64,7 +67,6 @@ export interface IRetailerSettings {
64
67
  promoTemplateVersion?: number;
65
68
  registrationFields?: IRegistrationField[];
66
69
  restrictMapPlacesResults?: IRestrictMapPlaces;
67
- googleAutocompleteSettings?: IGoogleAutocompleteSettings;
68
70
  retailerCountry?: IRetailerCountry;
69
71
  retailerName: string;
70
72
  searchPreview?: ISearchPreviewVisibility;
@@ -72,10 +74,9 @@ export interface IRetailerSettings {
72
74
  showCheckoutPromoCode?: boolean;
73
75
  showImgOnOrder?: boolean;
74
76
  smsNotifications?: ISMSConfig;
77
+ sodiumWarning?: ISodiumWarning;
75
78
  subHeaderHeight?: number;
76
79
  useAddressValidation?: boolean;
77
- externalApps?: IExternalApps;
78
- sodiumWarning?: ISodiumWarning;
79
80
  }
80
81
  export interface IExternalApps {
81
82
  sts?: IExternalAppSTS;
@@ -150,7 +151,6 @@ export interface IDefaultRetailerSettings {
150
151
  addressValidationTypes: IAddressValidationTypes;
151
152
  addresses: IAddressesSettings;
152
153
  advertSettings: IAdvertSettings;
153
- timeslotModalSettings: ITimeslotModalSettings;
154
154
  allowInStorePurchases: boolean;
155
155
  allowPastPurchases: boolean;
156
156
  buildNumber: string;
@@ -165,6 +165,7 @@ export interface IDefaultRetailerSettings {
165
165
  defaultSearchParams: IDefaultSearchParams;
166
166
  defaultShoppingMode: "pickup" | "planning" | "delivery";
167
167
  defaultStoreLocation: IDefaultStoreLocation;
168
+ disableAddressOnDelivery: boolean;
168
169
  disableTprPrice: boolean;
169
170
  documentTitle: string;
170
171
  eircode: string | undefined;
@@ -178,6 +179,7 @@ export interface IDefaultRetailerSettings {
178
179
  favoritesV1: boolean;
179
180
  flipp: IFlippConfig | IFlippConfigV2 | null;
180
181
  globalAnimations: IGlobalAnimations;
182
+ googleAutocompleteSettings: IGoogleAutocompleteSettings;
181
183
  gtmId: undefined | string;
182
184
  hideTaxOnSummary: boolean;
183
185
  houseAccountRegExValidation: string;
@@ -199,7 +201,6 @@ export interface IDefaultRetailerSettings {
199
201
  promoTemplateVersion: number;
200
202
  registrationFields: IRegistrationField[];
201
203
  restrictMapPlacesResults: IRestrictMapPlaces;
202
- googleAutocompleteSettings: IGoogleAutocompleteSettings;
203
204
  retailerCountry: IRetailerCountry;
204
205
  retailerName: string;
205
206
  searchPreview: ISearchPreviewVisibility;
@@ -207,9 +208,10 @@ export interface IDefaultRetailerSettings {
207
208
  showCheckoutPromoCode: boolean;
208
209
  showImgOnOrder: boolean;
209
210
  smsNotifications: ISMSConfig;
211
+ sodiumWarning: ISodiumWarning;
210
212
  subHeaderHeight: number;
213
+ timeslotModalSettings: ITimeslotModalSettings;
211
214
  useAddressValidation: boolean;
212
- sodiumWarning?: ISodiumWarning;
213
215
  }
214
216
  export interface IGoogleAutocompleteSettings {
215
217
  types?: IGoogleAutocompleteTypes;
@@ -218,17 +220,17 @@ export interface IGoogleAutocompleteSettings {
218
220
  restrictCountries?: string[];
219
221
  }
220
222
  interface IGoogleAutocompleteBounds {
223
+ east_longitude: number;
224
+ north_latitude: number;
221
225
  south_latitude: number;
222
226
  west_longitude: number;
223
- north_latitude: number;
224
- east_longitude: number;
225
227
  }
226
228
  declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
227
229
  export interface ICtaButtons {
228
230
  iconAlignment: "left" | "right" | null;
229
231
  iconName: IconNames;
230
232
  }
231
- interface ISodiumWarning {
233
+ export interface ISodiumWarning {
232
234
  isEnabled: boolean;
233
235
  threshold: number;
234
236
  }
@@ -290,7 +292,7 @@ export interface IRestrictMapPlaces {
290
292
  totalTake: number;
291
293
  };
292
294
  }
293
- export declare type IValidationType = IValidateDateRange | IValidateLength | "luhnValidation" | "alphaNumeric" | "alphaOnly" | "numericOnly" | "anyPhone" | "email" | "password" | "required" | "usPhone" | "usPhone10Digits" | "usMobileNumber" | "caPhone" | "auPhone" | "iePhone" | "caProvince" | "usState" | "auState" | "ieCounty" | "caPostCode" | "usPostCode" | "auPostCode" | "iePostCode" | "noSpecialChar" | "correctDate";
295
+ export declare type IValidationType = IValidateDateRange | IValidateLength | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState";
294
296
  declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
295
297
  export declare type INutritionZone = "us" | "eu" | "au" | "ca";
296
298
  export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
@@ -563,6 +563,7 @@ interface INavBottom extends INavStyles {
563
563
  }
564
564
  interface INavStyles {
565
565
  color?: string;
566
+ hoverColor?: string;
566
567
  backgroundColor?: string;
567
568
  links?: {
568
569
  static?: ILinkType;