@thryveai/theme-interfaces 2.5.0 → 2.5.1-beta.1

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; } });
@@ -2,6 +2,6 @@ export declare type IIconsObject = {
2
2
  [iconName in IconNames]: string;
3
3
  };
4
4
  export declare type PaymentTypesLogos = "AmExpCard" | "AmExpLogo" | "Comodo" | "DiscoverCard" | "DiscoverLogo" | "MasterLogo" | "MasterSecure" | "VisaLogo" | "VisaVerified";
5
- export declare type PaymentCards = "AmExpCard" | "DiscoverCard" | "MasterCard" | "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;
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" | "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,128 +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
- MasterLogo: "master-card-logo",
66
- MasterSecure: "master-card-secure",
67
- Minus: "minus",
68
- MoreOptionsH: "more-options-h",
69
- MoreOptionsV: "more-options-v",
70
- None: "None",
71
- Note: "note",
72
- NoteFilled: "note-filled",
73
- Notifications: "notifications",
74
- Orders: "orders",
75
- Organic: "Organic",
76
- PastPurchases: "past-purchases",
77
- Pause: "pause",
78
- PaymentOutline: "payment-outline",
79
- PaymentSolid: "payment-solid",
80
- PayPal: "paypal",
81
- Phone: "phone",
82
- PhoneMobile: "phone-mobile",
83
- Pickup: "pickup",
84
- PickupInfo: "pickup-info",
85
- Pinterest: "pinterest",
86
- Plus: "plus",
87
- Print: "print",
88
- PromoOutline: "promo-outline",
89
- PromoSolid: "promo-solid",
90
- RadioActive: "radio-active",
91
- RadioEmpty: "radio-empty",
92
- RecipeCalories: "recipe-calories",
93
- RecipeCooktime: "recipe-cooktime",
94
- RecipeIngredients: "recipe-ingredients",
95
- RecipePreptime: "recipe-preptime",
96
- RecipeServings: "recipe-servings",
97
- Remove: "remove",
98
- Reserve: "reserve",
99
- ReserveTime: "reserve-time",
100
- Search: "search",
101
- SelectCheck: "select-check",
102
- SelectEmpty: "select-empty",
103
- SelectMark: "select-mark",
104
- Send: "send",
105
- Settings: "settings",
106
- Share: "share",
107
- SodiumWarning: "sodium-warning",
108
- SortGrid: "sort-grid",
109
- SortList: "sort-list",
110
- StarOutline: "star-outline",
111
- StarSolid: "star-solid",
112
- Substitute: "subtitute",
113
- SubstituteBestmatch: "subtitute-bestmatch",
114
- SubstituteNone: "subtitute-none",
115
- SubstituteProduct: "subtitute-product",
116
- Trash: "trash",
117
- Twitter: "twitter",
118
- Unavailable: "unavailable",
119
- VisaCard: "visa-card",
120
- VisaLogo: "visa-logo",
121
- VisaVerified: "visa-verified",
122
- Voice: "voice",
123
- Warning: "warning",
124
- YourLocation: "your-location",
125
- Youtube: "youtube",
126
- AmExpLogo: "AmExpLogo",
127
- DiscoverLogo: "DiscoverLogo",
128
- };
@@ -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;
@@ -503,6 +504,7 @@ export interface IProductCardsProps {
503
504
  enabled: boolean;
504
505
  layouts: IProductCardLayouts;
505
506
  components: IProductCardV2ComponentProps;
507
+ attributesRank: ProductAttributes[];
506
508
  };
507
509
  }
508
510
  export interface IProductCardV2ComponentProps {