@thryveai/theme-interfaces 2.7.159 → 2.7.161
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 +5591 -0
- package/dist/JSONSchemas/index.js +7560 -0
- package/dist/index.d.ts +3 -0
- package/dist/interfaces/default-settings.interfaces.d.ts +2 -0
- package/dist/interfaces/default-theme.interface.d.ts +3 -0
- package/dist/interfaces/icons.interfaces.d.ts +2 -0
- package/dist/interfaces/retailer-settings.interfaces.d.ts +12 -4
- package/dist/interfaces/shared-settings-interfaces.d.ts +2 -0
- package/dist/interfaces/shared-settings.interfaces.d.ts +4 -0
- package/dist/interfaces/theme.interfaces.d.ts +0 -2
- package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.d.ts +1 -0
- package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.js +6 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +5 -0
- package/dist/storefront/defaultSettingsStorefront.js +9 -0
- package/dist/storefront/defaultSharedSettings.js +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettings
|
|
|
27
27
|
import { ISharedSettings } from "./interfaces/shared-settings.interfaces";
|
|
28
28
|
import { AdminSharedSettingsTemplateSFUI } from "./storefront/SFUISharedSettingsTemplate.AdminUi";
|
|
29
29
|
import { IAdminSharedSettingsTemplate } from "./interfaces/shared-settings-interfaces";
|
|
30
|
+
export declare type DeepPartial<T> = {
|
|
31
|
+
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
32
|
+
};
|
|
30
33
|
export { DefaultSharedSettingsConfig, DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings, AdminSharedSettingsTemplateSFUI, };
|
|
31
34
|
export { CMSComponentNames, CMSNames };
|
|
32
35
|
export { ProductAttrToIcons, ProductAttributes };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeepPartial } from "../index";
|
|
1
2
|
import { IAccountPageV2, IAddressesSettingsV2, IAdminOnlyV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IWelcomeModalV2, IPerformanceSettingsV2, IIntegrationSettings } from "./retailer-settings.interfaces";
|
|
2
3
|
export interface IDefaultRetailerSettingsVersion2 {
|
|
3
4
|
accountPage: IAccountPageV2;
|
|
@@ -13,3 +14,4 @@ export interface IDefaultRetailerSettingsVersion2 {
|
|
|
13
14
|
performance: IPerformanceSettingsV2;
|
|
14
15
|
integrations: IIntegrationSettings;
|
|
15
16
|
}
|
|
17
|
+
export declare type RetailerSettingsForSchema = Record<string, DeepPartial<IDefaultRetailerSettingsVersion2>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeepPartial } from "../index";
|
|
1
2
|
import { IconNames } from "./icons.interfaces";
|
|
2
3
|
export interface IDefaultTheme extends IInitializedEmptyDefaultTheme {
|
|
3
4
|
theme: IDefaultThemeInterface;
|
|
@@ -733,4 +734,6 @@ export interface IDefaultEmbeddedFontSource {
|
|
|
733
734
|
url: string;
|
|
734
735
|
format: string;
|
|
735
736
|
}
|
|
737
|
+
export declare type DefaultImagesForSchema = DeepPartial<IDefaultThemeImages>;
|
|
738
|
+
export declare type DefaultThemeForSchema = DeepPartial<IDefaultThemeInterface>;
|
|
736
739
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeepPartial } from "../index";
|
|
1
2
|
export declare type IIconsObject = {
|
|
2
3
|
[iconName in IconNames]: string;
|
|
3
4
|
};
|
|
@@ -6,3 +7,4 @@ export declare type PaymentCards = "AmExpCard" | "ApplePay" | "DiscoverCard" | "
|
|
|
6
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" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "EBT" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "GooglePay" | "Hamburger" | "Help" | "Home" | "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" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Plus" | "Print" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "RecommendedSub" | "Remove" | "Reserve" | "ReserveDate" | "ReserveTime" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SodiumWarning" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Subscription" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "TikTok" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "YourLocation" | "Youtube" | PaymentTypesLogos | PaymentCards | ProductAttributeIcons | LanguageFlags;
|
|
7
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";
|
|
8
9
|
export declare type LanguageFlags = "en-au" | "en-ca" | "en-gb" | "en-ie" | "en-us" | "es-es" | "es-mx" | "es-us" | "fr-ca";
|
|
10
|
+
export declare type DefaultIconsForSchema = DeepPartial<{} & IIconsObject>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CMSNames } from "../storefront/contentEngineComponents";
|
|
2
2
|
import { ProductAttributes } from "../storefront/productBadgeAttributes";
|
|
3
3
|
import { IconNames, PaymentCards } from "./icons.interfaces";
|
|
4
|
-
import { NumberRange } from "./theme.interfaces";
|
|
5
4
|
export interface IRetailerSettings {
|
|
6
5
|
accountPage?: IAccountPageSettings;
|
|
7
6
|
additionalCharges?: boolean;
|
|
@@ -389,6 +388,13 @@ export interface IFeaturesV2 {
|
|
|
389
388
|
couponGallery: ICouponGalleryLayout;
|
|
390
389
|
gsaSupportedBrowser: boolean;
|
|
391
390
|
acquiaAuthService: boolean;
|
|
391
|
+
storeSelection: {
|
|
392
|
+
planning: IStoreSelectionSettings;
|
|
393
|
+
pickup: IStoreSelectionSettings;
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
interface IStoreSelectionSettings {
|
|
397
|
+
integration: "AddressFinder" | "default";
|
|
392
398
|
}
|
|
393
399
|
export interface IGoogleTranslateWidget {
|
|
394
400
|
enabled: boolean;
|
|
@@ -424,7 +430,7 @@ export interface ISiteSettingsV2 {
|
|
|
424
430
|
anonymousCart: boolean;
|
|
425
431
|
ctaButtons: ICtaButtons | null | undefined;
|
|
426
432
|
cmsLazyLoadRows: number;
|
|
427
|
-
daysToRemainSignedIn:
|
|
433
|
+
daysToRemainSignedIn: number;
|
|
428
434
|
defaultCountry: IDefaultCounty;
|
|
429
435
|
defaultLanguage: string;
|
|
430
436
|
defaultSearchParams: IDefaultSearchParams;
|
|
@@ -459,6 +465,7 @@ export interface ISiteSettingsV2 {
|
|
|
459
465
|
showCartValueOnMobile: boolean;
|
|
460
466
|
scrollToTopButton: IScrollToTopButton;
|
|
461
467
|
clientRenderCoupons: boolean;
|
|
468
|
+
showClippedStateInCouponModal: boolean;
|
|
462
469
|
showShopAllLink: IShowShopAllLink;
|
|
463
470
|
showEmptyMiniList: boolean;
|
|
464
471
|
}
|
|
@@ -471,6 +478,7 @@ export interface IWelcomeModalV2 {
|
|
|
471
478
|
href: string;
|
|
472
479
|
target: LinkTarget;
|
|
473
480
|
icon: string;
|
|
481
|
+
id?: string;
|
|
474
482
|
}
|
|
475
483
|
export interface IIntegrationSettings {
|
|
476
484
|
prodX: IProdX;
|
|
@@ -680,8 +688,8 @@ export declare type ILabelConfig = {
|
|
|
680
688
|
_type: "tprPromo";
|
|
681
689
|
};
|
|
682
690
|
export declare type IProductCardLayouts = {
|
|
683
|
-
ContainersGrid: "default" | "pce-centered" | "prs-labels";
|
|
684
|
-
ContainersCarousel: "default" | "pce-centered" | "prs-labels";
|
|
691
|
+
ContainersGrid: "default" | "pce-centered" | "prs-labels" | "dun-attributes";
|
|
692
|
+
ContainersCarousel: "default" | "pce-centered" | "prs-labels" | "dun-attributes";
|
|
685
693
|
FlyerCard: "default" | "detailed";
|
|
686
694
|
SimplifiedCarousel: "default";
|
|
687
695
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { DeepPartial } from "../index";
|
|
1
2
|
import { IPartialKeys, ITemplateObject } from "./admin-settings-interfaces";
|
|
2
3
|
import { ISharedSettings } from "./shared-settings.interfaces";
|
|
3
4
|
declare type IAdminSharedSettings = IPartialKeys<ISharedSettings>;
|
|
4
5
|
export declare type IAdminSharedSettingsTemplate = ITemplateObject<IAdminSharedSettings>;
|
|
6
|
+
export declare type SharedSettingsForSchema = Record<string, DeepPartial<ISharedSettings>>;
|
|
5
7
|
export {};
|
|
@@ -12,6 +12,7 @@ export interface ISharedFeatures {
|
|
|
12
12
|
specialRequestItems: ISpecialRequestItems;
|
|
13
13
|
couponGallery: ICouponGallery;
|
|
14
14
|
flyerConfiguration: IFlyerConfiguration | null;
|
|
15
|
+
coupons: ICoupons;
|
|
15
16
|
}
|
|
16
17
|
export interface ISharedCheckout {
|
|
17
18
|
preserveOrderNote: IOrderInstructions;
|
|
@@ -27,6 +28,9 @@ export interface IRecommendedSubstitutions {
|
|
|
27
28
|
stores: string[];
|
|
28
29
|
locationId: string;
|
|
29
30
|
}
|
|
31
|
+
export interface ICoupons {
|
|
32
|
+
hideSavingFlag: boolean;
|
|
33
|
+
}
|
|
30
34
|
export interface ISpecialRequestItems {
|
|
31
35
|
enable: boolean;
|
|
32
36
|
excludeStores: string[];
|
|
@@ -712,7 +712,5 @@ export interface IEmbeddedFontSource {
|
|
|
712
712
|
url?: string;
|
|
713
713
|
format?: string;
|
|
714
714
|
}
|
|
715
|
-
declare type Enumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc["length"]]>;
|
|
716
|
-
export declare type NumberRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
717
715
|
export declare type IDateFormat = "DD/MM/YYYY" | "MM/DD/YYYY";
|
|
718
716
|
export {};
|
|
@@ -18,6 +18,7 @@ export interface IMobileSettings {
|
|
|
18
18
|
enableEmailShoppingItemsMessageField: boolean;
|
|
19
19
|
enableGetDeliveryMoreStores: boolean;
|
|
20
20
|
enableGiftCards: boolean;
|
|
21
|
+
enableHideAgeRestrictedLabelOnCartReview: boolean;
|
|
21
22
|
enableInStoreOrders: boolean;
|
|
22
23
|
enableInterim: boolean;
|
|
23
24
|
enableMissedPromotions: boolean;
|
|
@@ -48,6 +48,12 @@ exports.AdminSettingsTemplateMobile = {
|
|
|
48
48
|
helpLink: "",
|
|
49
49
|
type: "checkbox",
|
|
50
50
|
},
|
|
51
|
+
enableHideAgeRestrictedLabelOnCartReview: {
|
|
52
|
+
description: "Should hide age-restricted label on items in the cart review screen?",
|
|
53
|
+
title: "Enable Hide Age Restricted Label On Product Items in Cart Review",
|
|
54
|
+
helpLink: "",
|
|
55
|
+
type: "checkbox",
|
|
56
|
+
},
|
|
51
57
|
enableInStoreOrders: {
|
|
52
58
|
description: "Should show in-store orders?",
|
|
53
59
|
title: "Enable In Store Orders",
|
|
@@ -1045,6 +1045,11 @@ exports.AdminSettingsTemplateSFUI = {
|
|
|
1045
1045
|
},
|
|
1046
1046
|
},
|
|
1047
1047
|
},
|
|
1048
|
+
// showClippedStateInCouponModal: {
|
|
1049
|
+
// title: "Show clipped state of coupon in coupon modal",
|
|
1050
|
+
// description: "This will Show clipped state of coupon in coupon modal.",
|
|
1051
|
+
// type: AdminTemplateInputTypes.checkbox,
|
|
1052
|
+
// },
|
|
1048
1053
|
showShopAllLink: {
|
|
1049
1054
|
title: "Shop all link in mega menu",
|
|
1050
1055
|
description: "You can select whether each subcategory in the desktop mega menu should have a “Shop All XXX” link at the top of the list.",
|
|
@@ -202,6 +202,14 @@ var DefaultConfigSFUI = {
|
|
|
202
202
|
},
|
|
203
203
|
gsaSupportedBrowser: true,
|
|
204
204
|
acquiaAuthService: false,
|
|
205
|
+
storeSelection: {
|
|
206
|
+
pickup: {
|
|
207
|
+
integration: "default",
|
|
208
|
+
},
|
|
209
|
+
planning: {
|
|
210
|
+
integration: "default",
|
|
211
|
+
},
|
|
212
|
+
},
|
|
205
213
|
},
|
|
206
214
|
pdpSettings: {
|
|
207
215
|
externalContent: {
|
|
@@ -393,6 +401,7 @@ var DefaultConfigSFUI = {
|
|
|
393
401
|
percentOffset: { bottom: 15, right: 2 },
|
|
394
402
|
},
|
|
395
403
|
clientRenderCoupons: true,
|
|
404
|
+
showClippedStateInCouponModal: false,
|
|
396
405
|
showShopAllLink: {
|
|
397
406
|
enabled: false,
|
|
398
407
|
},
|