@thryveai/theme-interfaces 2.3.11 → 2.3.14

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
@@ -1,4 +1,4 @@
1
- import DefaultImagesSFUI from './storefront/defaultImagesStorefront';
1
+ import DefaultImagesSFUI from "./storefront/defaultImagesStorefront";
2
2
  import DefaultConfigSFUI from "./storefront/defaultSettingsStorefront";
3
3
  import DefaultThemeSFUI, { globalTheme, DefaultThemeColors } from "./storefront/defaultThemeStorefront";
4
4
  import DefaultConfigSTS from "./sts/defaultSettingsSts";
@@ -8,18 +8,18 @@ import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi
8
8
  import { AdminThemeTemplateSFUI, AdminThemeTemplateOptions } from "./storefront/SFUIThemesTemplate.AdminUi";
9
9
  import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
10
10
  import { IconNamesToFiles } from "./interfaces/icons.interfaces";
11
- import AllThemeTemplates from './theme-templates';
11
+ import AllThemeTemplates from "./theme-templates";
12
12
  import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator } from "./interfaces/admin-settings-interfaces";
13
13
  import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
14
14
  import { IDefaultRetailerSettings } 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 } 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 } 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";
20
- export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IconNamesToFiles };
21
- export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType };
20
+ export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IconNamesToFiles, };
21
+ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
22
22
  export { IDefaultRetailerSettings, 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
- 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, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, };
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, };
@@ -79,6 +79,7 @@ export interface IRetailerSettings {
79
79
  showImgOnOrder?: boolean;
80
80
  siteSettings?: ISiteSettings;
81
81
  smartBanner?: ISmartBanner;
82
+ entryModalVersion?: IEntryModalVersion;
82
83
  smsNotifications?: ISMSConfig;
83
84
  sodiumWarning?: ISodiumWarning;
84
85
  specialRequestItems?: boolean;
@@ -88,18 +89,25 @@ export interface IRetailerSettings {
88
89
  export interface IFeatureSwitch {
89
90
  additionalCharges: boolean;
90
91
  clientCache: boolean;
91
- enableVouchers: boolean;
92
+ vouchers: IVouchers;
92
93
  giftCards: IGiftCards;
93
94
  smartbanner: ISmartBanner;
95
+ entryModalVersion: IEntryModalVersion;
94
96
  }
95
97
  export interface ISiteSettings {
96
98
  anonymousCart: boolean;
97
99
  }
100
+ export interface IVouchers {
101
+ enabled: boolean;
102
+ reCaptcha: boolean;
103
+ }
98
104
  export interface IGiftCards {
99
105
  enabled: boolean;
100
106
  gitfCardInputValidation: string;
101
107
  pinInputValidation: string;
108
+ reCaptcha: boolean;
102
109
  }
110
+ export declare type IEntryModalVersion = "entry" | "geolocation";
103
111
  export interface ISmartBanner {
104
112
  enabled: boolean;
105
113
  title: string;
@@ -378,7 +378,7 @@ exports.AdminSettingsTemplateSFUI = {
378
378
  title: "Gift Cards",
379
379
  description: "Enables gift cards on the payments section of checkout.",
380
380
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3313598656/Gift+Cards",
381
- type: exports.AdminTemplateInputTypes.checkbox,
381
+ type: exports.AdminTemplateInputTypes.collapsableObject,
382
382
  value: {
383
383
  enabled: {
384
384
  title: "Enable Gift Cards",
@@ -395,13 +395,39 @@ exports.AdminSettingsTemplateSFUI = {
395
395
  description: "Regular expression used for pin validation",
396
396
  type: exports.AdminTemplateInputTypes.inputChar,
397
397
  },
398
+ reCaptcha: {
399
+ title: "Enable reCaptcha",
400
+ description: "Enables reCaptcha validation feature.",
401
+ type: exports.AdminTemplateInputTypes.checkbox,
402
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327885553/ReCaptcha+validation",
403
+ },
398
404
  },
399
405
  },
400
- enableVouchers: {
406
+ vouchers: {
401
407
  title: "Voucher",
402
408
  description: "Enables voucher on checkout page (requires integration).",
403
409
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304947761/Vouchers",
404
- type: exports.AdminTemplateInputTypes.checkbox,
410
+ type: exports.AdminTemplateInputTypes.collapsableObject,
411
+ value: {
412
+ enabled: {
413
+ title: "Enable Vouchers",
414
+ description: "Enables vouchers feature.",
415
+ type: exports.AdminTemplateInputTypes.checkbox,
416
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304947761/Vouchers",
417
+ },
418
+ reCaptcha: {
419
+ title: "Enable reCaptcha",
420
+ description: "Enables reCaptcha validation feature.",
421
+ type: exports.AdminTemplateInputTypes.checkbox,
422
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327885553/ReCaptcha+validation",
423
+ },
424
+ },
425
+ },
426
+ entryModalVersion: {
427
+ title: "Set entry modal step",
428
+ description: "Set entry modal step setting.",
429
+ type: exports.AdminTemplateInputTypes.string,
430
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Entry+Modal+Version",
405
431
  },
406
432
  smartbanner: {
407
433
  title: "Smart Banner",
@@ -484,7 +510,7 @@ exports.AdminSettingsTemplateSFUI = {
484
510
  description: "Allows the customer to add to cart without being logged in.",
485
511
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327983631/Anonymous+Cart",
486
512
  type: exports.AdminTemplateInputTypes.checkbox,
487
- }
513
+ },
488
514
  },
489
515
  },
490
516
  // flipp: {
@@ -193,8 +193,13 @@ var DefaultConfigSFUI = {
193
193
  enabled: false,
194
194
  gitfCardInputValidation: "^[0-9]{17}$",
195
195
  pinInputValidation: "^[0-9]{4}$",
196
+ reCaptcha: false,
196
197
  },
197
- enableVouchers: false,
198
+ vouchers: {
199
+ enabled: false,
200
+ reCaptcha: false,
201
+ },
202
+ entryModalVersion: "entry",
198
203
  smartbanner: {
199
204
  enabled: false,
200
205
  author: "",
@@ -211,7 +216,7 @@ var DefaultConfigSFUI = {
211
216
  },
212
217
  },
213
218
  siteSettings: {
214
- anonymousCart: false
219
+ anonymousCart: false,
215
220
  },
216
221
  specialRequestItems: false,
217
222
  sodiumWarning: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.3.11",
3
+ "version": "2.3.14",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",