@thryveai/theme-interfaces 2.7.102 → 2.7.104

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
@@ -14,7 +14,7 @@ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
14
14
  import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
15
15
  import { IDefaultRetailerSettingsVersion2 } from "./interfaces/default-settings.interfaces";
16
16
  import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
17
- 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, IUseContentEngineV2Components, IPdpNutritionLink, ITypesOfBusiness, IBusinessAccountObject } from "./interfaces/retailer-settings.interfaces";
17
+ 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, IUseContentEngineV2Components, IPdpNutritionLink, ITypesOfBusiness, IBusinessAccountObject, IPerformanceSettingsV2 } from "./interfaces/retailer-settings.interfaces";
18
18
  import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./interfaces/icons.interfaces";
19
19
  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";
20
20
  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";
@@ -35,4 +35,4 @@ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSharedSettingsT
35
35
  export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
36
36
  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, };
37
37
  export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
38
- 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, IUseContentEngineV2Components, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, IPdpNutritionLink, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, ISharedSettings, };
38
+ 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, IUseContentEngineV2Components, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, IPdpNutritionLink, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, ISharedSettings, IPerformanceSettingsV2, };
@@ -1,4 +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 } 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
2
  export interface IDefaultRetailerSettings {
3
3
  adminPanelOnly: {
4
4
  bannerName: string;
@@ -88,4 +88,5 @@ export interface IDefaultRetailerSettingsVersion2 {
88
88
  productCard: IProductCardSettingsV2;
89
89
  siteSettings: ISiteSettingsV2;
90
90
  welcomeModal: IWelcomeModalV2[];
91
+ performance: IPerformanceSettingsV2;
91
92
  }
@@ -427,7 +427,7 @@ export interface ISiteSettingsV2 {
427
427
  showCartValueOnMobile: boolean;
428
428
  scrollToTopButton: IScrollToTopButton;
429
429
  clientRenderCoupons: boolean;
430
- showShopAllLink: boolean;
430
+ showShopAllLink: IShowShopAllLink;
431
431
  }
432
432
  export interface IHeaderLinksLayout {
433
433
  enabled: boolean;
@@ -439,6 +439,9 @@ export interface IWelcomeModalV2 {
439
439
  target: LinkTarget;
440
440
  icon: string;
441
441
  }
442
+ export interface IPerformanceSettingsV2 {
443
+ vouchersLongTimeout: boolean;
444
+ }
442
445
  export declare type IUseContentEngineV2Components = {
443
446
  [key in CMSNames]: boolean;
444
447
  };
@@ -544,7 +547,7 @@ export interface IAdminOnlyV2 {
544
547
  }
545
548
  export interface IAccountPageV2 {
546
549
  loyaltyTab: {
547
- barcodeSettings?: IBarcodeSettings;
550
+ barcodeSettings: IBarcodeSettings;
548
551
  disabledEdit?: boolean;
549
552
  enabled: boolean;
550
553
  loyaltyNumberLength: number;
@@ -677,3 +680,6 @@ export interface IScrollToTopButton {
677
680
  bottom: number;
678
681
  };
679
682
  }
683
+ export interface IShowShopAllLink {
684
+ enabled: boolean;
685
+ }
@@ -1018,7 +1018,7 @@ exports.AdminSettingsTemplateSFUI = {
1018
1018
  // },
1019
1019
  scrollToTopButton: {
1020
1020
  title: "Back to top button",
1021
- description: "Back to top button settings",
1021
+ description: "Back to top button settings.",
1022
1022
  type: exports.AdminTemplateInputTypes.collapsableObject,
1023
1023
  value: {
1024
1024
  enabled: {
@@ -1027,18 +1027,18 @@ exports.AdminSettingsTemplateSFUI = {
1027
1027
  type: exports.AdminTemplateInputTypes.checkbox,
1028
1028
  },
1029
1029
  percentOffset: {
1030
- title: "Offset",
1031
- description: "Offset percentage",
1032
- type: exports.AdminTemplateInputTypes.string,
1030
+ title: "",
1031
+ description: "",
1032
+ type: exports.AdminTemplateInputTypes.collapsableObject,
1033
1033
  value: {
1034
1034
  bottom: {
1035
1035
  title: "Offset bottom",
1036
- description: "This is the percentage of the height of the screen that the button will appear from the bottom",
1036
+ description: "This is the percentage of the height of the screen that the button will appear from the bottom.",
1037
1037
  type: exports.AdminTemplateInputTypes.inputNumber,
1038
1038
  },
1039
1039
  right: {
1040
1040
  title: "Offset right",
1041
- description: "This is the percentage of the width of the screen that the button will appear from the right",
1041
+ description: "This is the percentage of the width of the screen that the button will appear from the right.",
1042
1042
  type: exports.AdminTemplateInputTypes.inputNumber,
1043
1043
  },
1044
1044
  },
@@ -1048,7 +1048,14 @@ exports.AdminSettingsTemplateSFUI = {
1048
1048
  showShopAllLink: {
1049
1049
  title: "Shop all link in mega menu",
1050
1050
  description: "You can select whether each subcategory in the desktop mega menu should have a “Shop All XXX” link at the top of the list.",
1051
- type: exports.AdminTemplateInputTypes.checkbox,
1051
+ type: exports.AdminTemplateInputTypes.collapsableObject,
1052
+ value: {
1053
+ enabled: {
1054
+ title: "Enable Shop all link in mega menu",
1055
+ description: 'This will display a "Shop All" link at the top of the list of subcategories in the desktop megamenu as is shown on mobile and tablet.',
1056
+ type: exports.AdminTemplateInputTypes.checkbox,
1057
+ },
1058
+ },
1052
1059
  },
1053
1060
  },
1054
1061
  },
@@ -374,8 +374,13 @@ var DefaultConfigSFUI = {
374
374
  percentOffset: { bottom: 15, right: 2 },
375
375
  },
376
376
  clientRenderCoupons: true,
377
- showShopAllLink: false,
377
+ showShopAllLink: {
378
+ enabled: false,
379
+ },
378
380
  },
379
381
  welcomeModal: [],
382
+ performance: {
383
+ vouchersLongTimeout: false,
384
+ },
380
385
  };
381
386
  exports.default = DefaultConfigSFUI;
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "@thryveai/theme-interfaces",
3
- "version": "2.7.102",
4
- "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
- "scripts": {
6
- "build": "gulp",
7
- "push": "npm run build && npm publish",
8
- "merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
9
- "generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
10
- },
11
- "author": "Wynshop",
12
- "license": "ISC",
13
- "main": "dist",
14
- "files": [
15
- "dist"
16
- ],
17
- "devDependencies": {
18
- "@types/node": "^17.0.42",
19
- "fs-extra": "11.1.0",
20
- "gulp": "4.0.2",
21
- "gulp-file-contents-to-json": "0.2.2",
22
- "gulp-typescript": "6.0.0-alpha.1",
23
- "imagemin": "7.0.1",
24
- "imagemin-svgo": "9.0.0",
25
- "svgo": "3.0.2",
26
- "ts-node": "^10.8.1",
27
- "typescript": "4.6.3"
28
- }
29
- }
1
+ {
2
+ "name": "@thryveai/theme-interfaces",
3
+ "version": "2.7.104",
4
+ "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
+ "scripts": {
6
+ "build": "gulp",
7
+ "push": "npm run build && npm publish",
8
+ "merge-settings": "ts-node ./scripts/settings/sfui-settings-migrator.ts",
9
+ "generate-retailer-icons": "gulp --gulpfile ./scripts/icons/gulpfile.js"
10
+ },
11
+ "author": "Wynshop",
12
+ "license": "ISC",
13
+ "main": "dist",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "devDependencies": {
18
+ "@types/node": "^17.0.42",
19
+ "fs-extra": "11.1.0",
20
+ "gulp": "4.0.2",
21
+ "gulp-file-contents-to-json": "0.2.2",
22
+ "gulp-typescript": "6.0.0-alpha.1",
23
+ "imagemin": "7.0.1",
24
+ "imagemin-svgo": "9.0.0",
25
+ "svgo": "3.0.2",
26
+ "ts-node": "^10.8.1",
27
+ "typescript": "4.6.3"
28
+ }
29
+ }