@thryveai/theme-interfaces 2.4.2 → 2.4.3

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/README.md CHANGED
@@ -1,29 +1,29 @@
1
- #V8 Theme Interfaces
2
-
3
- interfaces for all MI9 Retailer Themes.
4
-
5
- ###icons.interfaces
6
- List of all icons used inside the ui projects.
7
-
8
- ###retailer-settings.interfaces
9
- more info here
10
- https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
11
- ###theme.interfaces
12
- The interface for each theme, colors, fonts, sizes and other css properties.
13
-
14
- #To Build Project
15
-
16
- ```
17
- npm install
18
- npm run build
19
- ```
20
-
21
- #To Publish npm package
22
- ```
23
- npm login
24
- npm publish
25
- ```
26
- or
27
- ```
28
- npm run push
29
- ```
1
+ #V8 Theme Interfaces
2
+
3
+ interfaces for all MI9 Retailer Themes.
4
+
5
+ ###icons.interfaces
6
+ List of all icons used inside the ui projects.
7
+
8
+ ###retailer-settings.interfaces
9
+ more info here
10
+ https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
11
+ ###theme.interfaces
12
+ The interface for each theme, colors, fonts, sizes and other css properties.
13
+
14
+ #To Build Project
15
+
16
+ ```
17
+ npm install
18
+ npm run build
19
+ ```
20
+
21
+ #To Publish npm package
22
+ ```
23
+ npm login
24
+ npm publish
25
+ ```
26
+ or
27
+ ```
28
+ npm run push
29
+ ```
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 } 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, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2 } 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";
@@ -22,4 +22,4 @@ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
22
22
  export { IDefaultRetailerSettingsVersion2, 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
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, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, };
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, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2 };
@@ -1,7 +1,7 @@
1
1
  export declare type IIconsObject = {
2
2
  [iconName in IconNames]: string;
3
3
  };
4
- export declare type PaymentTypesLogos = "VisaLogo" | "MasterLogo" | "DiscoverCard" | "AmExpCard" | "VisaVerified" | "MasterSecure" | "Comodo";
5
- export declare type PaymentCards = "VisaCard" | "MasterCard" | "DiscoverCard" | "AmExpCard";
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" | "LocationPin" | "LocationDistance" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "Note" | "Notifications" | "NoteFilled" | "Orders" | "PastPurchases" | "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" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "Youtube" | "YourLocation" | "GlutenFree" | "Local" | "Organic" | "None" | PaymentTypesLogos | PaymentCards;
4
+ export declare type PaymentTypesLogos = "AmExpCard" | "Comodo" | "DiscoverCard" | "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" | "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
7
  export declare const IconNamesToFiles: IIconsObject;
@@ -5,6 +5,7 @@ exports.IconNamesToFiles = {
5
5
  AccountOutline: "account-outline",
6
6
  AccountSolid: "account-solid",
7
7
  Addresses: "addresses",
8
+ AmExpCard: "american-express-card",
8
9
  ArrowDown: "arrow-down",
9
10
  ArrowRight: "arrow-right",
10
11
  ArrowUpdown: "arrow-updown",
@@ -20,11 +21,13 @@ exports.IconNamesToFiles = {
20
21
  Circular: "circular",
21
22
  Clear: "clear",
22
23
  Close: "close",
24
+ Comodo: "comodo",
23
25
  Coupon: "coupon",
24
26
  Dashboard: "dashboard",
25
27
  DeliveryOutline: "delivery-outline",
26
28
  DeliverySolid: "delivery-solid",
27
29
  Dietary: "dietary",
30
+ DiscoverCard: "discover-card",
28
31
  DoubleArrows: "double-arrows",
29
32
  Download: "download",
30
33
  Dropship: "dropship",
@@ -39,6 +42,7 @@ exports.IconNamesToFiles = {
39
42
  Filter: "filter",
40
43
  Flag: "flag",
41
44
  Geolocate: "geolocate",
45
+ GlutenFree: "Gluten-Free",
42
46
  Hamburger: "hamburger",
43
47
  Help: "help",
44
48
  Home: "home",
@@ -52,17 +56,23 @@ exports.IconNamesToFiles = {
52
56
  ListRemove: "list-remove",
53
57
  ListSave: "list-save",
54
58
  ListSearch: "list-search",
55
- LocationPin: "location-pin",
59
+ Local: "Local",
56
60
  LocationDistance: "location-distance",
61
+ LocationPin: "location-pin",
57
62
  LoyaltyCard: "loyaltycard",
58
63
  Mail: "mail",
64
+ MasterCard: "master-card-card",
65
+ MasterLogo: "master-card-logo",
66
+ MasterSecure: "master-card-secure",
59
67
  Minus: "minus",
60
68
  MoreOptionsH: "more-options-h",
61
69
  MoreOptionsV: "more-options-v",
70
+ None: "None",
62
71
  Note: "note",
63
- Notifications: "notifications",
64
72
  NoteFilled: "note-filled",
73
+ Notifications: "notifications",
65
74
  Orders: "orders",
75
+ Organic: "Organic",
66
76
  PastPurchases: "past-purchases",
67
77
  Pause: "pause",
68
78
  PaymentOutline: "payment-outline",
@@ -93,6 +103,7 @@ exports.IconNamesToFiles = {
93
103
  Send: "send",
94
104
  Settings: "settings",
95
105
  Share: "share",
106
+ SodiumWarning: "sodium-warning",
96
107
  SortGrid: "sort-grid",
97
108
  SortList: "sort-list",
98
109
  StarOutline: "star-outline",
@@ -104,21 +115,11 @@ exports.IconNamesToFiles = {
104
115
  Trash: "trash",
105
116
  Twitter: "twitter",
106
117
  Unavailable: "unavailable",
118
+ VisaCard: "visa-card",
119
+ VisaLogo: "visa-logo",
120
+ VisaVerified: "visa-verified",
107
121
  Voice: "voice",
108
122
  Warning: "warning",
109
- Youtube: "youtube",
110
123
  YourLocation: "your-location",
111
- GlutenFree: "Gluten-Free",
112
- Local: "Local",
113
- Organic: "Organic",
114
- None: "None",
115
- VisaLogo: "visa-logo",
116
- MasterLogo: "master-card-logo",
117
- VisaCard: "visa-card",
118
- MasterCard: "master-card-card",
119
- AmExpCard: "american-express-card",
120
- DiscoverCard: "discover-card",
121
- VisaVerified: "visa-verified",
122
- MasterSecure: "master-card-secure",
123
- Comodo: "comodo",
124
+ Youtube: "youtube",
124
125
  };
@@ -37,7 +37,6 @@ export interface IRetailerSettings {
37
37
  enableNewsletterSignup?: boolean;
38
38
  enableNotifications?: boolean;
39
39
  entryModalVersion?: IEntryModalVersion;
40
- hideAlcoholRule?: IShoppingRuleControl;
41
40
  errorLoggingLevel?: ILoggingLevel;
42
41
  externalApps?: IExternalApps;
43
42
  externalStoreSelectorUrl?: string | undefined;
@@ -94,7 +93,6 @@ export interface IFeatureSwitch {
94
93
  smartbanner: ISmartBanner;
95
94
  entryModalVersion: IEntryModalVersion;
96
95
  addressIntegration: IAddressIntegration;
97
- hideAlcoholRule: IShoppingRuleControl;
98
96
  }
99
97
  export interface ISiteSettings {
100
98
  anonymousCart: boolean;
@@ -278,7 +276,6 @@ export interface IFeaturesV2 {
278
276
  giftCards: IGiftCards;
279
277
  smartbanner: ISmartBanner;
280
278
  entryModalVersion: IEntryModalVersion;
281
- hideAlcoholRule: IShoppingRuleControl;
282
279
  allowInStorePurchases: boolean;
283
280
  allowPastPurchases: boolean;
284
281
  advertSettings: IAdvertSettings;
@@ -454,10 +451,6 @@ export interface ILayoutAnimationsConfetti {
454
451
  export interface IGlobalCheckoutProps {
455
452
  numericPhonePayload: boolean;
456
453
  }
457
- export interface IShoppingRuleControl {
458
- modal: boolean;
459
- pdp: boolean;
460
- }
461
454
  export interface IAddressIntegration {
462
455
  enabled: boolean;
463
456
  addressFinderType: IAddressFinderType;
@@ -120,12 +120,6 @@ var FeatureSettingsChildren = {
120
120
  type: exports.AdminTemplateInputTypes.string,
121
121
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Entry+Modal+Version",
122
122
  },
123
- hideAlcoholRule: {
124
- title: "Set if shopping rule modals appears for alcohol",
125
- description: "Set boolean to control if shopping rule modals appears for alcohol.",
126
- type: exports.AdminTemplateInputTypes.string,
127
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
128
- },
129
123
  enableGoogleTranslate: {
130
124
  title: "Enable Google Translate",
131
125
  description: "Enable google translation display and functionality",
@@ -83,7 +83,6 @@ var DefaultConfigSFUI = {
83
83
  title: "",
84
84
  },
85
85
  entryModalVersion: "entry",
86
- hideAlcoholRule: { modal: false, pdp: false },
87
86
  allowInStorePurchases: false,
88
87
  allowPastPurchases: true,
89
88
  advertSettings: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",