@thryveai/theme-interfaces 1.5.0 → 1.5.4

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.
@@ -199,6 +199,13 @@ export interface IDefaultThemeInterface {
199
199
  activeColor: string;
200
200
  backIconColor: string;
201
201
  };
202
+ breadcrumbTitle: {
203
+ textTransform: ITextTransform;
204
+ backgroundColor: string;
205
+ color: string;
206
+ activeColor: string;
207
+ backIconColor: string;
208
+ };
202
209
  payment: {
203
210
  selectedCardBackground: string;
204
211
  selectedCardColor: string;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "1.5.0",
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.3.5"
13
- }
14
- }
1
+ {
2
+ "name": "@thryveai/theme-interfaces",
3
+ "version": "1.5.4",
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;
@@ -37,11 +38,14 @@ export interface IRetailerSettings {
37
38
  enableGoogleTranslate?: boolean;
38
39
  enableNewsletterSignup?: boolean;
39
40
  enableNotifications?: boolean;
41
+ enableVouchers?: boolean;
40
42
  errorLoggingLevel?: ILoggingLevel;
43
+ externalApps?: IExternalApps;
41
44
  externalStoreSelectorUrl?: string | undefined;
42
45
  favoritesV1?: boolean;
43
46
  flipp?: IFlippConfig | IFlippConfigV2 | null;
44
47
  globalAnimations?: IGlobalAnimations;
48
+ googleAutocompleteSettings?: IGoogleAutocompleteSettings;
45
49
  gtmId?: undefined | string;
46
50
  hideTaxOnSummary?: boolean;
47
51
  houseAccountRegExValidation?: string;
@@ -63,7 +67,6 @@ export interface IRetailerSettings {
63
67
  promoTemplateVersion?: number;
64
68
  registrationFields?: IRegistrationField[];
65
69
  restrictMapPlacesResults?: IRestrictMapPlaces;
66
- googleAutocompleteSettings?: IGoogleAutocompleteSettings;
67
70
  retailerCountry?: IRetailerCountry;
68
71
  retailerName: string;
69
72
  searchPreview?: ISearchPreviewVisibility;
@@ -71,10 +74,9 @@ export interface IRetailerSettings {
71
74
  showCheckoutPromoCode?: boolean;
72
75
  showImgOnOrder?: boolean;
73
76
  smsNotifications?: ISMSConfig;
77
+ sodiumWarning?: ISodiumWarning;
74
78
  subHeaderHeight?: number;
75
79
  useAddressValidation?: boolean;
76
- externalApps?: IExternalApps;
77
- sodiumWarning?: boolean;
78
80
  }
79
81
  export interface IExternalApps {
80
82
  sts?: IExternalAppSTS;
@@ -149,7 +151,6 @@ export interface IDefaultRetailerSettings {
149
151
  addressValidationTypes: IAddressValidationTypes;
150
152
  addresses: IAddressesSettings;
151
153
  advertSettings: IAdvertSettings;
152
- timeslotModalSettings: ITimeslotModalSettings;
153
154
  allowInStorePurchases: boolean;
154
155
  allowPastPurchases: boolean;
155
156
  buildNumber: string;
@@ -164,6 +165,7 @@ export interface IDefaultRetailerSettings {
164
165
  defaultSearchParams: IDefaultSearchParams;
165
166
  defaultShoppingMode: "pickup" | "planning" | "delivery";
166
167
  defaultStoreLocation: IDefaultStoreLocation;
168
+ disableAddressOnDelivery: boolean;
167
169
  disableTprPrice: boolean;
168
170
  documentTitle: string;
169
171
  eircode: string | undefined;
@@ -171,11 +173,13 @@ export interface IDefaultRetailerSettings {
171
173
  enableGoogleTranslate: boolean;
172
174
  enableNewsletterSignup: boolean;
173
175
  enableNotifications: boolean;
176
+ enableVouchers: boolean;
174
177
  errorLoggingLevel: ILoggingLevel;
175
178
  externalStoreSelectorUrl: string | undefined;
176
179
  favoritesV1: boolean;
177
180
  flipp: IFlippConfig | IFlippConfigV2 | null;
178
181
  globalAnimations: IGlobalAnimations;
182
+ googleAutocompleteSettings: IGoogleAutocompleteSettings;
179
183
  gtmId: undefined | string;
180
184
  hideTaxOnSummary: boolean;
181
185
  houseAccountRegExValidation: string;
@@ -197,7 +201,6 @@ export interface IDefaultRetailerSettings {
197
201
  promoTemplateVersion: number;
198
202
  registrationFields: IRegistrationField[];
199
203
  restrictMapPlacesResults: IRestrictMapPlaces;
200
- googleAutocompleteSettings: IGoogleAutocompleteSettings;
201
204
  retailerCountry: IRetailerCountry;
202
205
  retailerName: string;
203
206
  searchPreview: ISearchPreviewVisibility;
@@ -205,9 +208,10 @@ export interface IDefaultRetailerSettings {
205
208
  showCheckoutPromoCode: boolean;
206
209
  showImgOnOrder: boolean;
207
210
  smsNotifications: ISMSConfig;
211
+ sodiumWarning?: ISodiumWarning;
208
212
  subHeaderHeight: number;
213
+ timeslotModalSettings: ITimeslotModalSettings;
209
214
  useAddressValidation: boolean;
210
- sodiumWarning?: boolean;
211
215
  }
212
216
  export interface IGoogleAutocompleteSettings {
213
217
  types?: IGoogleAutocompleteTypes;
@@ -216,16 +220,20 @@ export interface IGoogleAutocompleteSettings {
216
220
  restrictCountries?: string[];
217
221
  }
218
222
  interface IGoogleAutocompleteBounds {
223
+ east_longitude: number;
224
+ north_latitude: number;
219
225
  south_latitude: number;
220
226
  west_longitude: number;
221
- north_latitude: number;
222
- east_longitude: number;
223
227
  }
224
228
  declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
225
229
  export interface ICtaButtons {
226
230
  iconAlignment: "left" | "right" | null;
227
231
  iconName: IconNames;
228
232
  }
233
+ interface ISodiumWarning {
234
+ isEnabled: boolean;
235
+ threshold: number;
236
+ }
229
237
  export interface IAddressesSettings {
230
238
  addressValidationTypes: IAddressValidationTypes;
231
239
  canadianAddressCompleteKey: string | undefined;
@@ -284,7 +292,7 @@ export interface IRestrictMapPlaces {
284
292
  totalTake: number;
285
293
  };
286
294
  }
287
- 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";
288
296
  declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
289
297
  export declare type INutritionZone = "us" | "eu" | "au" | "ca";
290
298
  export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
@@ -199,6 +199,13 @@ export interface IThemeInterface {
199
199
  activeColor?: string;
200
200
  backIconColor?: string;
201
201
  };
202
+ breadcrumbTitle?: {
203
+ textTransform?: ITextTransform;
204
+ backgroundColor?: string;
205
+ color?: string;
206
+ activeColor?: string;
207
+ backIconColor?: string;
208
+ };
202
209
  payment?: {
203
210
  selectedCardBackground?: string;
204
211
  selectedCardColor?: string;