@thryveai/theme-interfaces 2.5.2 → 2.5.3-beta.5

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
@@ -8,7 +8,6 @@ import { AdminSettingsTemplateSTS } from "./sts/STSSettingsTemplate.AdminUi";
8
8
  import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi";
9
9
  import { AdminThemeTemplateSFUI, AdminThemeTemplateOptions } from "./storefront/SFUIThemesTemplate.AdminUi";
10
10
  import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
11
- import { IconNamesToFiles } from "./interfaces/icons.interfaces";
12
11
  import AllThemeTemplates from "./theme-templates";
13
12
  import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator } from "./interfaces/admin-settings-interfaces";
14
13
  import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
@@ -19,8 +18,10 @@ import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./inte
19
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";
20
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";
21
20
  import { CMSComponentNames, CMSNames } from "./storefront/contentEngineComponents";
22
- export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IconNamesToFiles, };
21
+ import { ProductAttributes, ProductAttrToIcons } from "./storefront/productBadgeAttributes";
22
+ export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, };
23
23
  export { CMSComponentNames, CMSNames };
24
+ export { ProductAttrToIcons, ProductAttributes };
24
25
  export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
25
26
  export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
26
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, };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CMSComponentNames = exports.IconNamesToFiles = exports.AdminImagesTemplateSTS = exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultIconsSFUI = exports.DefaultImagesSFUI = exports.DefaultThemeColors = exports.globalTheme = exports.DefaultThemeSFUI = exports.AllThemeTemplates = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
3
+ exports.ProductAttrToIcons = exports.CMSComponentNames = exports.AdminImagesTemplateSTS = exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultIconsSFUI = exports.DefaultImagesSFUI = exports.DefaultThemeColors = exports.globalTheme = exports.DefaultThemeSFUI = exports.AllThemeTemplates = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
4
4
  var defaultImagesStorefront_1 = require("./storefront/defaultImagesStorefront");
5
5
  exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
6
6
  var defaultIconsStorefront_1 = require("./storefront/defaultIconsStorefront");
@@ -25,9 +25,9 @@ Object.defineProperty(exports, "AdminThemeTemplateSFUI", { enumerable: true, get
25
25
  Object.defineProperty(exports, "AdminThemeTemplateOptions", { enumerable: true, get: function () { return SFUIThemesTemplate_AdminUi_1.AdminThemeTemplateOptions; } });
26
26
  var STSImagesTemplate_AdminUi_1 = require("./sts/STSImagesTemplate.AdminUi");
27
27
  Object.defineProperty(exports, "AdminImagesTemplateSTS", { enumerable: true, get: function () { return STSImagesTemplate_AdminUi_1.AdminImagesTemplateSTS; } });
28
- var icons_interfaces_1 = require("./interfaces/icons.interfaces");
29
- Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
30
28
  var theme_templates_1 = require("./theme-templates");
31
29
  exports.AllThemeTemplates = theme_templates_1.default;
32
30
  var contentEngineComponents_1 = require("./storefront/contentEngineComponents");
33
31
  Object.defineProperty(exports, "CMSComponentNames", { enumerable: true, get: function () { return contentEngineComponents_1.CMSComponentNames; } });
32
+ var productBadgeAttributes_1 = require("./storefront/productBadgeAttributes");
33
+ Object.defineProperty(exports, "ProductAttrToIcons", { enumerable: true, get: function () { return productBadgeAttributes_1.ProductAttrToIcons; } });
@@ -3,5 +3,5 @@ export declare type IIconsObject = {
3
3
  };
4
4
  export declare type PaymentTypesLogos = "AmExpCard" | "AmExpLogo" | "Comodo" | "DiscoverCard" | "DiscoverLogo" | "MasterLogo" | "MasterSecure" | "VisaLogo" | "VisaVerified";
5
5
  export declare type PaymentCards = "AmExpCard" | "DiscoverCard" | "MasterCard" | "MasterCardDebit" | "VisaCard";
6
- export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ArrowDown" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "GlutenFree" | "Hamburger" | "Help" | "Home" | "Info" | "Instacart" | "Instagram" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "Local" | "LocationDistance" | "LocationPin" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "None" | "Note" | "NoteFilled" | "Notifications" | "Orders" | "Organic" | "PastPurchases" | "PayPal" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Plus" | "Print" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "Remove" | "Reserve" | "ReserveTime" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards;
7
- export declare const IconNamesToFiles: IIconsObject;
6
+ export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ArrowDown" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "Hamburger" | "Help" | "Home" | "Info" | "Instacart" | "Instagram" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "LocationDistance" | "LocationPin" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "None" | "Note" | "NoteFilled" | "Notifications" | "Orders" | "PastPurchases" | "PayPal" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Plus" | "Print" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "Remove" | "Reserve" | "ReserveTime" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards | ProductAttributeIcons;
7
+ export declare type ProductAttributeIcons = "GlutenFree" | "Organic" | "Local" | "DairyFree" | "DiabetesFriendly" | "EggFree" | "FairTrade" | "NoArtificialIngredients" | "Halal" | "HeartHealth" | "NoHighFructoseCornSyrup" | "KetoFriendly" | "Kosher" | "LactoseFree" | "LowFODMAP" | "LowSodium" | "NoAddedSugar" | "NonGMO" | "Paleo" | "PeanutFree" | "PlantGoodness" | "SoyFree" | "Vegan" | "WholeGrain";
@@ -1,129 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconNamesToFiles = void 0;
4
- exports.IconNamesToFiles = {
5
- AccountOutline: "account-outline",
6
- AccountSolid: "account-solid",
7
- Addresses: "addresses",
8
- AmExpCard: "american-express-card",
9
- ArrowDown: "arrow-down",
10
- ArrowRight: "arrow-right",
11
- ArrowUpdown: "arrow-updown",
12
- BarScan: "bar-scan",
13
- Bell: "bell",
14
- Blog: "blog",
15
- Cart: "cart",
16
- Check: "check",
17
- ChevronDown: "chevron-down",
18
- ChevronLeft: "chevron-left",
19
- ChevronRight: "chevron-right",
20
- ChevronUp: "chevron-up",
21
- Circular: "circular",
22
- Clear: "clear",
23
- Close: "close",
24
- Comodo: "comodo",
25
- Coupon: "coupon",
26
- Dashboard: "dashboard",
27
- DeliveryOutline: "delivery-outline",
28
- DeliverySolid: "delivery-solid",
29
- Dietary: "dietary",
30
- DiscoverCard: "discover-card",
31
- DoubleArrows: "double-arrows",
32
- Download: "download",
33
- Dropship: "dropship",
34
- Eco: "eco",
35
- Edit: "edit",
36
- Error: "error",
37
- FaceHappy: "face-happy",
38
- FaceSad: "face-sad",
39
- Facebook: "facebook",
40
- Fav: "fav",
41
- FavSolid: "fav-solid",
42
- Filter: "filter",
43
- Flag: "flag",
44
- Geolocate: "geolocate",
45
- GlutenFree: "Gluten-Free",
46
- Hamburger: "hamburger",
47
- Help: "help",
48
- Home: "home",
49
- Info: "info",
50
- Instacart: "instacart",
51
- Instagram: "instagram",
52
- ItemLocation: "item-location",
53
- ListCheck: "list-check",
54
- ListItems: "list-items",
55
- ListLarge: "list-large",
56
- ListRemove: "list-remove",
57
- ListSave: "list-save",
58
- ListSearch: "list-search",
59
- Local: "Local",
60
- LocationDistance: "location-distance",
61
- LocationPin: "location-pin",
62
- LoyaltyCard: "loyaltycard",
63
- Mail: "mail",
64
- MasterCard: "master-card-card",
65
- MasterCardDebit: "master-card-debit",
66
- MasterLogo: "master-card-logo",
67
- MasterSecure: "master-card-secure",
68
- Minus: "minus",
69
- MoreOptionsH: "more-options-h",
70
- MoreOptionsV: "more-options-v",
71
- None: "None",
72
- Note: "note",
73
- NoteFilled: "note-filled",
74
- Notifications: "notifications",
75
- Orders: "orders",
76
- Organic: "Organic",
77
- PastPurchases: "past-purchases",
78
- Pause: "pause",
79
- PaymentOutline: "payment-outline",
80
- PaymentSolid: "payment-solid",
81
- PayPal: "paypal",
82
- Phone: "phone",
83
- PhoneMobile: "phone-mobile",
84
- Pickup: "pickup",
85
- PickupInfo: "pickup-info",
86
- Pinterest: "pinterest",
87
- Plus: "plus",
88
- Print: "print",
89
- PromoOutline: "promo-outline",
90
- PromoSolid: "promo-solid",
91
- RadioActive: "radio-active",
92
- RadioEmpty: "radio-empty",
93
- RecipeCalories: "recipe-calories",
94
- RecipeCooktime: "recipe-cooktime",
95
- RecipeIngredients: "recipe-ingredients",
96
- RecipePreptime: "recipe-preptime",
97
- RecipeServings: "recipe-servings",
98
- Remove: "remove",
99
- Reserve: "reserve",
100
- ReserveTime: "reserve-time",
101
- Search: "search",
102
- SelectCheck: "select-check",
103
- SelectEmpty: "select-empty",
104
- SelectMark: "select-mark",
105
- Send: "send",
106
- Settings: "settings",
107
- Share: "share",
108
- SodiumWarning: "sodium-warning",
109
- SortGrid: "sort-grid",
110
- SortList: "sort-list",
111
- StarOutline: "star-outline",
112
- StarSolid: "star-solid",
113
- Substitute: "subtitute",
114
- SubstituteBestmatch: "subtitute-bestmatch",
115
- SubstituteNone: "subtitute-none",
116
- SubstituteProduct: "subtitute-product",
117
- Trash: "trash",
118
- Twitter: "twitter",
119
- Unavailable: "unavailable",
120
- VisaCard: "visa-card",
121
- VisaLogo: "visa-logo",
122
- VisaVerified: "visa-verified",
123
- Voice: "voice",
124
- Warning: "warning",
125
- YourLocation: "your-location",
126
- Youtube: "youtube",
127
- AmExpLogo: "AmExpLogo",
128
- DiscoverLogo: "DiscoverLogo",
129
- };
@@ -1,4 +1,5 @@
1
1
  import { CMSNames } from "../storefront/contentEngineComponents";
2
+ import { ProductAttributes } from "../storefront/productBadgeAttributes";
2
3
  import { IconNames, PaymentCards } from "./icons.interfaces";
3
4
  export interface IRetailerSettings {
4
5
  accountPage?: IAccountPageSettings;
@@ -233,6 +234,10 @@ export interface ICtaButtons {
233
234
  iconAlignment: "left" | "right" | null;
234
235
  iconName: IconNames;
235
236
  }
237
+ export interface IProductAttributesLayout {
238
+ legacyAttributes: boolean;
239
+ attributesRank: ProductAttributes[];
240
+ }
236
241
  export interface ISodiumWarning {
237
242
  isEnabled: boolean;
238
243
  threshold: number;
@@ -325,6 +330,7 @@ export interface IPdpSettingsV2 {
325
330
  nutritionZone: INutritionZone;
326
331
  pdpDetailsLayout: IProductDetailsPageLayout;
327
332
  sodiumWarning: ISodiumWarning;
333
+ productAttributesLayout: IProductAttributesLayout;
328
334
  }
329
335
  export interface IProductCardSettingsV2 {
330
336
  limitProductCardTitleHeight: boolean;