@thryveai/theme-interfaces 2.7.123 → 2.7.124

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 ADDED
@@ -0,0 +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,4 +1,82 @@
1
- import { IAccountPageV2, IAddressesSettingsV2, IAdminOnlyV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IWelcomeModalV2, IPerformanceSettingsV2 } 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, 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
+ }
2
80
  export interface IDefaultRetailerSettingsVersion2 {
3
81
  accountPage: IAccountPageV2;
4
82
  addressSettings: IAddressesSettingsV2;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //IAddressIntegration
@@ -186,6 +186,7 @@ export interface IRedPepperConfig {
186
186
  clientId?: string;
187
187
  clientUrl?: string;
188
188
  storeValue?: string;
189
+ flyerSkuKey?: string;
189
190
  }
190
191
  export declare type IAllSettings = {
191
192
  [envName in IEnvNames]: IRetailerSettings;
@@ -1,5 +1,4 @@
1
1
  import { IAdminOnlyV2, IFlippConfig, IFlippConfigV2, IFlyerProviders, IRedPepperConfig } from "./retailer-settings.interfaces";
2
- import { IDateFormat } from "./theme.interfaces";
3
2
  export interface ISharedSettings {
4
3
  features: ISharedFeatures;
5
4
  checkout: ISharedCheckout;
@@ -34,7 +33,6 @@ export interface ISharedGeneral {
34
33
  enableStoreSelectorList: boolean;
35
34
  skipStoreSelection: boolean;
36
35
  addressConfirmationModal: boolean;
37
- dateOfBirthInputFormat: IDateFormat;
38
36
  }
39
37
  export interface IFlyerConfiguration {
40
38
  enabled: boolean;
@@ -714,5 +714,4 @@ 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";
718
717
  export {};
@@ -26,7 +26,6 @@ var DefaultSharedSettingsConfig = {
26
26
  enableStoreSelectorList: true,
27
27
  skipStoreSelection: false,
28
28
  addressConfirmationModal: false,
29
- dateOfBirthInputFormat: "DD/MM/YYYY",
30
29
  },
31
30
  };
32
31
  exports.default = DefaultSharedSettingsConfig;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.123",
3
+ "version": "2.7.124",
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",
7
8
  "merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
8
- "generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js",
9
- "commit": "cz"
9
+ "generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
10
10
  },
11
11
  "author": "Wynshop",
12
12
  "license": "ISC",
@@ -16,7 +16,6 @@
16
16
  ],
17
17
  "devDependencies": {
18
18
  "@types/node": "^17.0.42",
19
- "cz-conventional-changelog": "^3.3.0",
20
19
  "fs-extra": "11.1.0",
21
20
  "gulp": "4.0.2",
22
21
  "gulp-file-contents-to-json": "0.2.2",
@@ -26,10 +25,5 @@
26
25
  "svgo": "3.0.2",
27
26
  "ts-node": "^10.8.1",
28
27
  "typescript": "4.6.3"
29
- },
30
- "config": {
31
- "commitizen": {
32
- "path": "./application/node_modules/cz-conventional-changelog"
33
- }
34
28
  }
35
29
  }