@thryveai/theme-interfaces 2.4.3 → 2.4.6

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/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
13
13
  import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
14
14
  import { IDefaultRetailerSettingsVersion2 } from "./interfaces/default-settings.interfaces";
15
15
  import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
16
- import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IEntryModalVersion, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2 } from "./interfaces/retailer-settings.interfaces";
16
+ import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IEntryModalVersion, IShoppingRuleControl, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2 } from "./interfaces/retailer-settings.interfaces";
17
17
  import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./interfaces/icons.interfaces";
18
18
  import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./interfaces/theme.interfaces";
19
19
  import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, IIconPosition } from "./interfaces/default-theme.interface";
@@ -22,4 +22,4 @@ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
22
22
  export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
23
23
  export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IIconPosition, };
24
24
  export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
25
- export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2 };
25
+ export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, };
@@ -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,9 +64,9 @@ 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;
@@ -37,6 +37,7 @@ export interface IRetailerSettings {
37
37
  enableNewsletterSignup?: boolean;
38
38
  enableNotifications?: boolean;
39
39
  entryModalVersion?: IEntryModalVersion;
40
+ hideAlcoholRule?: IShoppingRuleControl;
40
41
  errorLoggingLevel?: ILoggingLevel;
41
42
  externalApps?: IExternalApps;
42
43
  externalStoreSelectorUrl?: string | undefined;
@@ -59,6 +60,7 @@ export interface IRetailerSettings {
59
60
  loggingLevelServer?: ILoggingLevel;
60
61
  mainHeaderHeight?: number;
61
62
  maintainCustomerJourney?: boolean;
63
+ maintainCustomerPreferences?: boolean;
62
64
  mapZoom?: number;
63
65
  minimumCreditCardAmount?: number;
64
66
  nutritionZone?: INutritionZone;
@@ -93,6 +95,7 @@ export interface IFeatureSwitch {
93
95
  smartbanner: ISmartBanner;
94
96
  entryModalVersion: IEntryModalVersion;
95
97
  addressIntegration: IAddressIntegration;
98
+ hideAlcoholRule: IShoppingRuleControl;
96
99
  }
97
100
  export interface ISiteSettings {
98
101
  anonymousCart: boolean;
@@ -157,6 +160,7 @@ export interface IFlippConfigV2 {
157
160
  retailer: string;
158
161
  merchantId: string;
159
162
  accessToken: string;
163
+ zoom: number;
160
164
  }
161
165
  export declare type IFlippScriptUrls = "circulars.priceritemarketplace" | "circulars.dearbornmarket" | "flyers.v8.commerce.mi9cloud" | "flyers.stg.v8.mywebgrocer" | "flyers.saveonfoods";
162
166
  export declare type IAllSettings = {
@@ -255,7 +259,6 @@ export interface IAddressesSettingsV2 {
255
259
  deleteAddressUrl: string;
256
260
  };
257
261
  useAddressValidation: boolean;
258
- disableAddressOnDelivery: boolean;
259
262
  }
260
263
  export interface ICartSummaryV2 {
261
264
  showTaxTotal: boolean;
@@ -276,6 +279,7 @@ export interface IFeaturesV2 {
276
279
  giftCards: IGiftCards;
277
280
  smartbanner: ISmartBanner;
278
281
  entryModalVersion: IEntryModalVersion;
282
+ hideAlcoholRule: IShoppingRuleControl;
279
283
  allowInStorePurchases: boolean;
280
284
  allowPastPurchases: boolean;
281
285
  advertSettings: IAdvertSettings;
@@ -326,6 +330,7 @@ export interface ISiteSettingsV2 {
326
330
  isPlanningOnly: boolean;
327
331
  mainHeaderHeight: number;
328
332
  maintainCustomerJourney: boolean;
333
+ maintainCustomerPreferences: boolean;
329
334
  mapZoom: number;
330
335
  promoTemplateVersion: number;
331
336
  restrictMapPlacesResults: IRestrictMapPlaces;
@@ -451,6 +456,10 @@ export interface ILayoutAnimationsConfetti {
451
456
  export interface IGlobalCheckoutProps {
452
457
  numericPhonePayload: boolean;
453
458
  }
459
+ export interface IShoppingRuleControl {
460
+ modal: boolean;
461
+ pdp: boolean;
462
+ }
454
463
  export interface IAddressIntegration {
455
464
  enabled: boolean;
456
465
  addressFinderType: IAddressFinderType;
@@ -120,6 +120,26 @@ var FeatureSettingsChildren = {
120
120
  type: exports.AdminTemplateInputTypes.string,
121
121
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Entry+Modal+Version",
122
122
  },
123
+ hideAlcoholRule: {
124
+ title: "Set if shopping rule modals appears for alcohol",
125
+ description: "Set boolean to control if shopping rule modals appears for alcohol.",
126
+ type: exports.AdminTemplateInputTypes.collapsableObject,
127
+ value: {
128
+ pdp: {
129
+ title: "Disable warning box",
130
+ description: "Disable alcohol warning box on pdp.",
131
+ type: exports.AdminTemplateInputTypes.checkbox,
132
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
133
+ },
134
+ modal: {
135
+ title: "Disable warning modal",
136
+ description: "Disable alcohol warning modal popup.",
137
+ type: exports.AdminTemplateInputTypes.checkbox,
138
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
139
+ },
140
+ },
141
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
142
+ },
123
143
  enableGoogleTranslate: {
124
144
  title: "Enable Google Translate",
125
145
  description: "Enable google translation display and functionality",
@@ -180,6 +200,12 @@ var FeatureSettingsChildren = {
180
200
  description: "The access token setting from flipp",
181
201
  type: exports.AdminTemplateInputTypes.inputChar,
182
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
+ },
183
209
  },
184
210
  },
185
211
  smartbanner: {
@@ -330,6 +356,12 @@ var SiteSettingsChildren = {
330
356
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3373695163/Maintain+customer+journey",
331
357
  type: exports.AdminTemplateInputTypes.checkbox,
332
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
+ },
333
365
  retailerCountry: {
334
366
  title: "Retailer country",
335
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",
@@ -83,6 +84,7 @@ var DefaultConfigSFUI = {
83
84
  title: "",
84
85
  },
85
86
  entryModalVersion: "entry",
87
+ hideAlcoholRule: { modal: false, pdp: false },
86
88
  allowInStorePurchases: false,
87
89
  allowPastPurchases: true,
88
90
  advertSettings: {},
@@ -159,7 +161,6 @@ var DefaultConfigSFUI = {
159
161
  editAddressUrl: "",
160
162
  },
161
163
  useAddressValidation: true,
162
- disableAddressOnDelivery: false,
163
164
  },
164
165
  productCard: {
165
166
  limitProductCardTitleHeight: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.4.3",
3
+ "version": "2.4.6",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",