@thryveai/theme-interfaces 2.8.21 → 2.8.23
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/JSONSchemas/index.d.ts +81 -30
- package/dist/JSONSchemas/index.js +165 -81
- package/dist/interfaces/icons.interfaces.d.ts +2 -2
- package/dist/interfaces/retailer-settings.interfaces.d.ts +8 -0
- package/dist/storefront/commonSettingsStorefront.js +11 -3
- package/dist/storefront/defaultIconsStorefront.js +1 -1
- package/dist/storefront/defaultSettingsStorefront.js +11 -3
- package/package.json +2 -1
|
@@ -3,8 +3,8 @@ export declare type IIconsObject = {
|
|
|
3
3
|
[iconName in IconNames]: string;
|
|
4
4
|
};
|
|
5
5
|
export declare type PaymentTypesLogos = "AmExpCard" | "AmExpLogo" | "Comodo" | "DiscoverCard" | "DiscoverLogo" | "MasterLogo" | "MasterSecure" | "VisaLogo" | "VisaVerified";
|
|
6
|
-
export declare type PaymentCards = "AmExpCard" | "ApplePay" | "DiscoverCard" | "EBT" | "PayPal" | "GooglePay" | "MasterCard" | "MasterCardDebit" | "VisaCard" | "Paze";
|
|
7
|
-
export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ApplePay" | "ArrowDown" | "ArrowUp" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "CheckCircle" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Credit" | "CreditCard" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "EBT" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "GooglePay" | "Hamburger" | "Help" | "Home" | "HouseOrBusinessAccount" | "Info" | "Instacart" | "InstacartLogo" | "Instagram" | "InstructionsFilled" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "LocationDistance" | "LocationPin" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "None" | "Note" | "NoteFilled" | "Notifications" | "Orders" | "PastPurchases" | "PayPal" | "PayInStore" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Play" | "Plus" | "Print" | "ProductLocation" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "RecommendedSub" | "Remove" | "Reserve" | "ReserveDate" | "ReserveTime" | "SavedCard" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Subscription" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "TikTok" | "Trash" | "Twitter" | "TargetedReward" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards | ProductAttributeIcons | LanguageFlags;
|
|
6
|
+
export declare type PaymentCards = "AmExpCard" | "ApplePay" | "DiscoverCard" | "EBT" | "PayPal" | "GooglePay" | "MasterCard" | "MasterCardDebit" | "VisaCard" | "VisaDebit" | "Paze";
|
|
7
|
+
export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ApplePay" | "ArrowDown" | "ArrowUp" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "CheckCircle" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Credit" | "CreditCard" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "EBT" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "GooglePay" | "Hamburger" | "Help" | "Home" | "HouseOrBusinessAccount" | "Info" | "Instacart" | "InstacartLogo" | "Instagram" | "InstructionsFilled" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "LocationDistance" | "LocationPin" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "None" | "Note" | "NoteFilled" | "Notifications" | "NoDepartments" | "Orders" | "PastPurchases" | "PayPal" | "PayInStore" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Play" | "Plus" | "Print" | "ProductLocation" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "RecommendedSub" | "Remove" | "Reserve" | "ReserveDate" | "ReserveTime" | "Rewards" | "SavedCard" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Subscription" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "TikTok" | "Trash" | "Twitter" | "TargetedReward" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards | ProductAttributeIcons | LanguageFlags;
|
|
8
8
|
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" | "BottleDeposit" | "LimitedIngredients" | "MinimallyProcessed" | "Fsa" | "PlantBased" | "Frozen" | "MapleLeafCanadian" | "HighFiber" | "HighProtein" | "NewProduct";
|
|
9
9
|
export declare type LanguageFlags = "en-au" | "en-ca" | "en-gb" | "en-ie" | "en-us" | "es-es" | "es-mx" | "es-us" | "fr-ca";
|
|
10
10
|
export declare type DefaultIconsForSchema = DeepPartial<{} & IIconsObject>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="googlepay" />
|
|
1
2
|
import { CMSNames } from "../storefront/contentEngineComponents";
|
|
2
3
|
import { ProductAttributes } from "../storefront/productBadgeAttributes";
|
|
3
4
|
import { IconNames, PaymentCards } from "./icons.interfaces";
|
|
@@ -365,6 +366,13 @@ export interface ICheckoutSettingsV2 {
|
|
|
365
366
|
forceDeliverySection: boolean;
|
|
366
367
|
enableInterimModal: boolean;
|
|
367
368
|
smsOptIn: boolean;
|
|
369
|
+
nativePayments: {
|
|
370
|
+
googlePayButton: {
|
|
371
|
+
buttonType: google.payments.api.ButtonType;
|
|
372
|
+
buttonColor: google.payments.api.ButtonColor;
|
|
373
|
+
buttonRadius: google.payments.api.ButtonOptions["buttonRadius"];
|
|
374
|
+
};
|
|
375
|
+
};
|
|
368
376
|
}
|
|
369
377
|
export interface IFeaturesV2 {
|
|
370
378
|
additionalCharges: boolean;
|
|
@@ -96,12 +96,20 @@ var CommonConfigSFUI = {
|
|
|
96
96
|
houseAccountRegExValidation: ".",
|
|
97
97
|
minimumCreditCardAmount: 1.0,
|
|
98
98
|
numericPhonePayload: false,
|
|
99
|
+
nativePayments: {
|
|
100
|
+
googlePayButton: {
|
|
101
|
+
buttonColor: "default",
|
|
102
|
+
buttonType: "checkout",
|
|
103
|
+
buttonRadius: 4,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
99
106
|
paymentCards: {
|
|
100
107
|
AmExpCard: true,
|
|
101
108
|
DiscoverCard: true,
|
|
102
109
|
MasterCard: true,
|
|
103
110
|
MasterCardDebit: true,
|
|
104
111
|
VisaCard: true,
|
|
112
|
+
VisaDebit: false,
|
|
105
113
|
PayPal: false,
|
|
106
114
|
ApplePay: false,
|
|
107
115
|
GooglePay: false,
|
|
@@ -405,7 +413,7 @@ var CommonConfigSFUI = {
|
|
|
405
413
|
scrollToTopButton: {
|
|
406
414
|
enabled: true,
|
|
407
415
|
percentOffset: { bottom: 15, right: 2 },
|
|
408
|
-
visibilityThreshold: 2000
|
|
416
|
+
visibilityThreshold: 2000,
|
|
409
417
|
},
|
|
410
418
|
clientRenderCoupons: true,
|
|
411
419
|
showClippedStateInCouponModal: false,
|
|
@@ -419,8 +427,8 @@ var CommonConfigSFUI = {
|
|
|
419
427
|
confirmationDelay: 5000,
|
|
420
428
|
},
|
|
421
429
|
carousel: {
|
|
422
|
-
showArrowsOnHoverOnly: true
|
|
423
|
-
}
|
|
430
|
+
showArrowsOnHoverOnly: true,
|
|
431
|
+
},
|
|
424
432
|
},
|
|
425
433
|
welcomeModal: [],
|
|
426
434
|
performance: {
|