@thryveai/theme-interfaces 2.4.4 → 2.4.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.
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
+ ```
@@ -1,13 +1,12 @@
1
- import { IAccountPageSettings, IAccountPageV2, IAddressIntegration, IAddressValidationTypes, IAddressesSettings, IAddressesSettingsV2, IAdminOnlyV2, IAdvertSettings, ICartSummaryV2, ICheckoutSettingsV2, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFeaturesV2, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IPdpSettingsV2, IProductCardSettingsV2, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISMSConfig, ISearchPreviewVisibility, ISecondTierAuthorization, ISiteSettings, ISiteSettingsV2, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
1
+ import { IAccountPageSettings, IAccountPageV2, IAddressValidationTypes, IAddressesSettings, IAddressesSettingsV2, IAdminOnlyV2, IAdvertSettings, ICartSummaryV2, ICheckoutSettingsV2, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFeaturesV2, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IPdpSettingsV2, IProductCardSettingsV2, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISMSConfig, ISearchPreviewVisibility, ISecondTierAuthorization, ISiteSettings, ISiteSettingsV2, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
2
2
  export interface IDefaultRetailerSettings {
3
- accountPage: IAccountPageSettings;
4
- addressIntegration: IAddressIntegration;
5
- addressValidationTypes: IAddressValidationTypes;
6
- addresses: IAddressesSettings;
7
3
  adminPanelOnly: {
8
4
  bannerName: string;
9
5
  logoUrl: string;
10
6
  };
7
+ accountPage: IAccountPageSettings;
8
+ addressValidationTypes: IAddressValidationTypes;
9
+ addresses: IAddressesSettings;
11
10
  advertSettings: IAdvertSettings;
12
11
  allowInStorePurchases: boolean;
13
12
  allowPastPurchases: boolean;
@@ -50,7 +49,6 @@ export interface IDefaultRetailerSettings {
50
49
  loggingLevelClient: ILoggingLevel;
51
50
  loggingLevelServer: ILoggingLevel;
52
51
  mainHeaderHeight: number;
53
- maintainCustomerJourney: boolean;
54
52
  mapZoom: number;
55
53
  minimumCreditCardAmount: number;
56
54
  nutritionZone: INutritionZone;
@@ -66,16 +64,15 @@ export interface IDefaultRetailerSettings {
66
64
  retailerName: string;
67
65
  searchPreview: ISearchPreviewVisibility;
68
66
  secondTierAuthorization?: ISecondTierAuthorization;
67
+ siteSettings: ISiteSettings;
69
68
  showCheckoutPromoCode: boolean;
70
69
  showImgOnOrder: boolean;
71
- siteSettings: ISiteSettings;
72
70
  smsNotifications: ISMSConfig;
73
71
  sodiumWarning: ISodiumWarning;
74
72
  specialRequestItems: boolean;
75
73
  subHeaderHeight: number;
76
74
  timeslotModalSettings: ITimeslotModalSettings;
77
75
  useAddressValidation: boolean;
78
- disableAddressOnDelivery: boolean;
79
76
  }
80
77
  export interface IDefaultRetailerSettingsVersion2 {
81
78
  accountPage: IAccountPageV2;
@@ -60,6 +60,7 @@ export interface IRetailerSettings {
60
60
  loggingLevelServer?: ILoggingLevel;
61
61
  mainHeaderHeight?: number;
62
62
  maintainCustomerJourney?: boolean;
63
+ maintainCustomerPreferences?: boolean;
63
64
  mapZoom?: number;
64
65
  minimumCreditCardAmount?: number;
65
66
  nutritionZone?: INutritionZone;
@@ -159,6 +160,7 @@ export interface IFlippConfigV2 {
159
160
  retailer: string;
160
161
  merchantId: string;
161
162
  accessToken: string;
163
+ zoom: number;
162
164
  }
163
165
  export declare type IFlippScriptUrls = "circulars.priceritemarketplace" | "circulars.dearbornmarket" | "flyers.v8.commerce.mi9cloud" | "flyers.stg.v8.mywebgrocer" | "flyers.saveonfoods";
164
166
  export declare type IAllSettings = {
@@ -257,7 +259,6 @@ export interface IAddressesSettingsV2 {
257
259
  deleteAddressUrl: string;
258
260
  };
259
261
  useAddressValidation: boolean;
260
- disableAddressOnDelivery: boolean;
261
262
  }
262
263
  export interface ICartSummaryV2 {
263
264
  showTaxTotal: boolean;
@@ -329,6 +330,7 @@ export interface ISiteSettingsV2 {
329
330
  isPlanningOnly: boolean;
330
331
  mainHeaderHeight: number;
331
332
  maintainCustomerJourney: boolean;
333
+ maintainCustomerPreferences: boolean;
332
334
  mapZoom: number;
333
335
  promoTemplateVersion: number;
334
336
  restrictMapPlacesResults: IRestrictMapPlaces;
@@ -389,7 +391,7 @@ export interface IRestrictMapPlaces {
389
391
  export declare type IValidationType = IValidateDateRange | IValidateLength | IValidateMultipleLengths | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState" | "notWhiteSpacesOnly";
390
392
  export declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
391
393
  export declare type INutritionZone = "us" | "eu" | "au" | "ca";
392
- export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
394
+ export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5" | "version6";
393
395
  export declare type IValidateLength = {
394
396
  _type: "less" | "more" | "exact";
395
397
  length: number;
@@ -200,6 +200,12 @@ var FeatureSettingsChildren = {
200
200
  description: "The access token setting from flipp",
201
201
  type: exports.AdminTemplateInputTypes.inputChar,
202
202
  },
203
+ zoom: {
204
+ title: "Zoom Level",
205
+ description: "The viewport width percentage for flipp rendering",
206
+ type: exports.AdminTemplateInputTypes.dropdown,
207
+ options: [100, 95, 90, 85, 80, 75, 70, 65, 60],
208
+ },
203
209
  },
204
210
  },
205
211
  smartbanner: {
@@ -350,6 +356,12 @@ var SiteSettingsChildren = {
350
356
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3373695163/Maintain+customer+journey",
351
357
  type: exports.AdminTemplateInputTypes.checkbox,
352
358
  },
359
+ maintainCustomerPreferences: {
360
+ title: "Maintain customer preferences",
361
+ description: "View and modify customer preferences: marketing preferences, substitution preferences, etc.",
362
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3405381666/Maintain+customer+preferences",
363
+ type: exports.AdminTemplateInputTypes.checkbox,
364
+ },
353
365
  retailerCountry: {
354
366
  title: "Retailer country",
355
367
  description: "Select the retailer country",
@@ -31,6 +31,7 @@ var DefaultConfigSFUI = {
31
31
  isPlanningOnly: false,
32
32
  mapZoom: 8,
33
33
  maintainCustomerJourney: true,
34
+ maintainCustomerPreferences: false,
34
35
  promoTemplateVersion: 1,
35
36
  retailerCountry: "us",
36
37
  retailerName: "default",
@@ -160,7 +161,6 @@ var DefaultConfigSFUI = {
160
161
  editAddressUrl: "",
161
162
  },
162
163
  useAddressValidation: true,
163
- disableAddressOnDelivery: false,
164
164
  },
165
165
  productCard: {
166
166
  limitProductCardTitleHeight: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.4.4",
3
+ "version": "2.4.7",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",