@thryveai/theme-interfaces 2.7.124 → 2.7.126

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.
@@ -1,82 +1,4 @@
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, IWelcomeModalV2, IPerformanceSettingsV2 } from "./retailer-settings.interfaces";
2
- export interface IDefaultRetailerSettings {
3
- adminPanelOnly: {
4
- bannerName: string;
5
- logoUrl: string;
6
- };
7
- accountPage: IAccountPageSettings;
8
- addressValidationTypes: IAddressValidationTypes;
9
- addresses: IAddressesSettings;
10
- advertSettings: IAdvertSettings;
11
- allowInStorePurchases: boolean;
12
- allowPastPurchases: boolean;
13
- buildNumber: string;
14
- cacheTimeMins: number;
15
- canadianAddressCompleteKey: string | undefined;
16
- checkout: IGlobalCheckoutProps;
17
- checkoutV1: boolean;
18
- checkoutValidation: ICheckoutValidation;
19
- ctaButtons: ICtaButtons | null | undefined;
20
- daysToRemainSignedIn: number;
21
- defaultCountry: IDefaultCounty;
22
- defaultSearchParams: IDefaultSearchParams;
23
- defaultShoppingMode: "pickup" | "planning" | "delivery";
24
- defaultStoreLocation: IDefaultStoreLocation;
25
- disableTprPrice: boolean;
26
- documentTitle: string;
27
- ebtPayments: boolean;
28
- eircode: string | undefined;
29
- enable3dSecure: boolean;
30
- enableGoogleTranslate: boolean;
31
- enableNewsletterSignup: boolean;
32
- enableNotifications: boolean;
33
- enableRecipeSearch: boolean;
34
- errorLoggingLevel: ILoggingLevel;
35
- externalStoreSelectorUrl: string | undefined;
36
- favoritesV1: boolean;
37
- features: IFeatureSwitch;
38
- flipp: IFlippConfig | IFlippConfigV2 | null;
39
- globalAnimations: IGlobalAnimations;
40
- googleAutocompleteSettings: IGoogleAutocompleteSettings;
41
- gtmId: undefined | string;
42
- hideTaxOnSummary: boolean;
43
- houseAccountRegExValidation: string;
44
- idpTarget: "_self" | "_blank";
45
- idpUrl: undefined | string;
46
- instacartUrl: string | undefined;
47
- isPlanningOnly: boolean;
48
- RemoveAllOutOfStock: boolean;
49
- layout: ILayoutSettings;
50
- layouts: IGlobalLayouts;
51
- limitProductCardTitleHeight: boolean;
52
- loggingLevelClient: ILoggingLevel;
53
- loggingLevelServer: ILoggingLevel;
54
- mainHeaderHeight: number;
55
- mapZoom: number;
56
- minimumCreditCardAmount: number;
57
- nutritionZone: INutritionZone;
58
- paymentCards: IPaymentCards;
59
- pdpDetailsLayout: IProductDetailsPageLayout;
60
- productCardTitleHeight: number;
61
- productCards: IProductCardsProps;
62
- productCardv2: boolean;
63
- promoTemplateVersion: number;
64
- registrationFields: IRegistrationField[];
65
- restrictMapPlacesResults: IRestrictMapPlaces;
66
- retailerCountry: IRetailerCountry;
67
- retailerName: string;
68
- searchPreview: ISearchPreviewVisibility;
69
- secondTierAuthorization?: ISecondTierAuthorization;
70
- siteSettings: ISiteSettings;
71
- showCheckoutPromoCode: boolean;
72
- showImgOnOrder: boolean;
73
- smsNotifications: ISMSConfig;
74
- sodiumWarning: ISodiumWarning;
75
- specialRequestItems: boolean;
76
- subHeaderHeight: number;
77
- timeslotModalSettings: ITimeslotModalSettings;
78
- useAddressValidation: boolean;
79
- }
1
+ import { IAccountPageV2, IAddressesSettingsV2, IAdminOnlyV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IWelcomeModalV2, IPerformanceSettingsV2 } from "./retailer-settings.interfaces";
80
2
  export interface IDefaultRetailerSettingsVersion2 {
81
3
  accountPage: IAccountPageV2;
82
4
  addressSettings: IAddressesSettingsV2;
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //IAddressIntegration
@@ -259,6 +259,7 @@ export interface IGoogleAutocompleteSettings {
259
259
  bounds?: IGoogleAutocompleteBounds;
260
260
  strictBounds?: boolean;
261
261
  restrictCountries?: string[];
262
+ minCharLength?: number;
262
263
  }
263
264
  export interface IGoogleAutocompleteBounds {
264
265
  east_longitude: number;
@@ -1,4 +1,5 @@
1
1
  import { IAdminOnlyV2, IFlippConfig, IFlippConfigV2, IFlyerProviders, IRedPepperConfig } from "./retailer-settings.interfaces";
2
+ import { IDateFormat } from "./theme.interfaces";
2
3
  export interface ISharedSettings {
3
4
  features: ISharedFeatures;
4
5
  checkout: ISharedCheckout;
@@ -21,6 +22,7 @@ interface IOrderInstructions {
21
22
  export interface IRecommendedSubstitutions {
22
23
  enable: boolean;
23
24
  stores: string[];
25
+ locationId: string;
24
26
  }
25
27
  export interface ISpecialRequestItems {
26
28
  enable: boolean;
@@ -33,6 +35,7 @@ export interface ISharedGeneral {
33
35
  enableStoreSelectorList: boolean;
34
36
  skipStoreSelection: boolean;
35
37
  addressConfirmationModal: boolean;
38
+ dateOfBirthInputFormat: IDateFormat;
36
39
  }
37
40
  export interface IFlyerConfiguration {
38
41
  enabled: boolean;
@@ -714,4 +714,5 @@ export interface IEmbeddedFontSource {
714
714
  }
715
715
  declare type Enumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc["length"]]>;
716
716
  export declare type NumberRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
717
+ export declare type IDateFormat = "DD/MM/YYYY" | "MM/DD/YYYY";
717
718
  export {};
@@ -7,7 +7,7 @@ var DefaultSharedSettingsConfig = {
7
7
  },
8
8
  features: {
9
9
  multilingual: false,
10
- recommendedSubstitutions: { enable: false, stores: [] },
10
+ recommendedSubstitutions: { enable: false, stores: [], locationId: "" },
11
11
  specialRequestItems: {
12
12
  enable: false,
13
13
  excludeStores: [],
@@ -26,6 +26,7 @@ var DefaultSharedSettingsConfig = {
26
26
  enableStoreSelectorList: true,
27
27
  skipStoreSelection: false,
28
28
  addressConfirmationModal: false,
29
+ dateOfBirthInputFormat: "DD/MM/YYYY",
29
30
  },
30
31
  };
31
32
  exports.default = DefaultSharedSettingsConfig;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.124",
3
+ "version": "2.7.126",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "gulp",
7
- "push": "npm run build && npm publish",
8
7
  "merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
9
- "generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
8
+ "generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js",
9
+ "commit": "cz"
10
10
  },
11
11
  "author": "Wynshop",
12
12
  "license": "ISC",
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "devDependencies": {
18
18
  "@types/node": "^17.0.42",
19
+ "cz-conventional-changelog": "^3.3.0",
19
20
  "fs-extra": "11.1.0",
20
21
  "gulp": "4.0.2",
21
22
  "gulp-file-contents-to-json": "0.2.2",
@@ -25,5 +26,10 @@
25
26
  "svgo": "3.0.2",
26
27
  "ts-node": "^10.8.1",
27
28
  "typescript": "4.6.3"
29
+ },
30
+ "config": {
31
+ "commitizen": {
32
+ "path": "./application/node_modules/cz-conventional-changelog"
33
+ }
28
34
  }
29
35
  }
package/README.md DELETED
@@ -1,29 +0,0 @@
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
- ```