@thryveai/theme-interfaces 2.5.4 → 2.5.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, IShoppingRuleControl, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IUseContentEngineV2Components } 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, IUseContentEngineV2Components, IPdpNutritionLink } 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";
@@ -26,4 +26,4 @@ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
26
26
  export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
27
27
  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, };
28
28
  export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
29
- 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, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, };
29
+ 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, };
@@ -238,6 +238,10 @@ export interface IProductAttributesLayout {
238
238
  legacyAttributes: boolean;
239
239
  attributesRank: ProductAttributes[];
240
240
  }
241
+ export interface IPdpNutritionLink {
242
+ href: string | null;
243
+ target: LinkTarget;
244
+ }
241
245
  export interface ISodiumWarning {
242
246
  isEnabled: boolean;
243
247
  threshold: number;
@@ -328,6 +332,7 @@ export interface IFeaturesV2 {
328
332
  }
329
333
  export interface IPdpSettingsV2 {
330
334
  nutritionZone: INutritionZone;
335
+ nutritionLink: IPdpNutritionLink;
331
336
  pdpDetailsLayout: IProductDetailsPageLayout;
332
337
  sodiumWarning: ISodiumWarning;
333
338
  productAttributesLayout: IProductAttributesLayout;
@@ -540,6 +545,7 @@ export interface IProductDetailsPageLayout {
540
545
  }
541
546
  export declare type PdpDetailsElementLayout = "productNutrition" | "productIngredients" | "productDescription" | "sodiumWarning" | "productNumber" | "recommendations" | "productSalesInfo" | string;
542
547
  export declare type IConfigurableCustomerPreference = "marketingPreferences";
548
+ export declare type LinkTarget = "_blank" | "_self" | "_parent" | "_top";
543
549
  export interface IMaintainCustomerPreferences {
544
550
  enabled: boolean;
545
551
  sections: {
@@ -187,6 +187,7 @@ var DefaultConfigSFUI = {
187
187
  legacyAttributes: true,
188
188
  attributesRank: [],
189
189
  },
190
+ nutritionLink: { href: null, target: "_blank" },
190
191
  },
191
192
  productCard: {
192
193
  limitProductCardTitleHeight: true,
@@ -1,5 +1,5 @@
1
1
  import { ProductAttributeIcons } from "../interfaces/icons.interfaces";
2
- export declare type ProductAttributes = "gluten free" | "organic" | "local" | "dairy_free" | "diabetes_friendly" | "egg_free" | "fair_trade" | "no_artificial_ingredients" | "halal" | "heart_health" | "no_high_fructose_corn_syrup" | "keto_friendly" | "kosher" | "lactose_free" | "low_fodmap" | "low_sodium" | "no_added_sugar" | "non_gmo" | "paleo" | "peanut_free" | "plant_goodness" | "soy_free" | "vegan" | "whole_grain";
2
+ export declare type ProductAttributes = "gluten free" | "organic" | "local" | "dairy free" | "diabetes friendly" | "egg free" | "fair trade" | "no artificial ingredients" | "halal" | "heart health" | "no high fructose corn syrup" | "keto friendly" | "kosher" | "lactose free" | "low fodmap" | "low sodium" | "no added sugar" | "non gmo" | "paleo" | "peanut free" | "plant goodness" | "soy free" | "vegan" | "whole grain";
3
3
  export declare type IProductAttributeToIcons = {
4
4
  [key in ProductAttributes]: ProductAttributeIcons;
5
5
  };
@@ -6,25 +6,25 @@ exports.ProductAttrToIcons = {
6
6
  "gluten free": "GlutenFree",
7
7
  organic: "Organic",
8
8
  local: "Local",
9
- dairy_free: "DairyFree",
10
- diabetes_friendly: "DiabetesFriendly",
11
- egg_free: "EggFree",
12
- fair_trade: "FairTrade",
13
- no_artificial_ingredients: "NoArtificialIngredients",
9
+ "dairy free": "DairyFree",
10
+ "diabetes friendly": "DiabetesFriendly",
11
+ "egg free": "EggFree",
12
+ "fair trade": "FairTrade",
13
+ "no artificial ingredients": "NoArtificialIngredients",
14
14
  halal: "Halal",
15
- heart_health: "HeartHealth",
16
- no_high_fructose_corn_syrup: "NoHighFructoseCornSyrup",
17
- keto_friendly: "KetoFriendly",
15
+ "heart health": "HeartHealth",
16
+ "no high fructose corn syrup": "NoHighFructoseCornSyrup",
17
+ "keto friendly": "KetoFriendly",
18
18
  kosher: "Kosher",
19
- lactose_free: "LactoseFree",
20
- low_fodmap: "LowFODMAP",
21
- low_sodium: "LowSodium",
22
- no_added_sugar: "NoAddedSugar",
23
- non_gmo: "NonGMO",
19
+ "lactose free": "LactoseFree",
20
+ "low fodmap": "LowFODMAP",
21
+ "low sodium": "LowSodium",
22
+ "no added sugar": "NoAddedSugar",
23
+ "non gmo": "NonGMO",
24
24
  paleo: "Paleo",
25
- peanut_free: "PeanutFree",
26
- plant_goodness: "PlantGoodness",
27
- soy_free: "SoyFree",
25
+ "peanut free": "PeanutFree",
26
+ "plant goodness": "PlantGoodness",
27
+ "soy free": "SoyFree",
28
28
  vegan: "Vegan",
29
- whole_grain: "WholeGrain",
29
+ "whole grain": "WholeGrain",
30
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "gulp",