@thryveai/theme-interfaces 2.7.158 → 2.7.159
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 +0 -3
- package/dist/interfaces/default-settings.interfaces.d.ts +0 -2
- package/dist/interfaces/default-theme.interface.d.ts +0 -3
- package/dist/interfaces/icons.interfaces.d.ts +0 -2
- package/dist/interfaces/retailer-settings.interfaces.d.ts +4 -11
- package/dist/interfaces/shared-settings-interfaces.d.ts +0 -2
- package/dist/interfaces/theme.interfaces.d.ts +2 -0
- package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.d.ts +0 -1
- package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.js +0 -6
- package/dist/storefront/defaultSettingsStorefront.js +0 -8
- package/package.json +1 -1
- package/dist/JSONSchemas/index.d.ts +0 -5576
- package/dist/JSONSchemas/index.js +0 -7545
package/dist/index.d.ts
CHANGED
|
@@ -27,9 +27,6 @@ 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
|
-
};
|
|
33
30
|
export { DefaultSharedSettingsConfig, DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings, AdminSharedSettingsTemplateSFUI, };
|
|
34
31
|
export { CMSComponentNames, CMSNames };
|
|
35
32
|
export { ProductAttrToIcons, ProductAttributes };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DeepPartial } from "../index";
|
|
2
1
|
import { IAccountPageV2, IAddressesSettingsV2, IAdminOnlyV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IWelcomeModalV2, IPerformanceSettingsV2, IIntegrationSettings } from "./retailer-settings.interfaces";
|
|
3
2
|
export interface IDefaultRetailerSettingsVersion2 {
|
|
4
3
|
accountPage: IAccountPageV2;
|
|
@@ -14,4 +13,3 @@ export interface IDefaultRetailerSettingsVersion2 {
|
|
|
14
13
|
performance: IPerformanceSettingsV2;
|
|
15
14
|
integrations: IIntegrationSettings;
|
|
16
15
|
}
|
|
17
|
-
export declare type RetailerSettingsForSchema = Record<string, DeepPartial<IDefaultRetailerSettingsVersion2>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DeepPartial } from "../index";
|
|
2
1
|
import { IconNames } from "./icons.interfaces";
|
|
3
2
|
export interface IDefaultTheme extends IInitializedEmptyDefaultTheme {
|
|
4
3
|
theme: IDefaultThemeInterface;
|
|
@@ -734,6 +733,4 @@ export interface IDefaultEmbeddedFontSource {
|
|
|
734
733
|
url: string;
|
|
735
734
|
format: string;
|
|
736
735
|
}
|
|
737
|
-
export declare type DefaultImagesForSchema = DeepPartial<IDefaultThemeImages>;
|
|
738
|
-
export declare type DefaultThemeForSchema = DeepPartial<IDefaultThemeInterface>;
|
|
739
736
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DeepPartial } from "../index";
|
|
2
1
|
export declare type IIconsObject = {
|
|
3
2
|
[iconName in IconNames]: string;
|
|
4
3
|
};
|
|
@@ -7,4 +6,3 @@ export declare type PaymentCards = "AmExpCard" | "ApplePay" | "DiscoverCard" | "
|
|
|
7
6
|
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;
|
|
8
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" | "BottleDeposit" | "LimitedIngredients" | "MinimallyProcessed" | "Fsa";
|
|
9
8
|
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,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
export interface IRetailerSettings {
|
|
5
6
|
accountPage?: IAccountPageSettings;
|
|
6
7
|
additionalCharges?: boolean;
|
|
@@ -388,13 +389,6 @@ export interface IFeaturesV2 {
|
|
|
388
389
|
couponGallery: ICouponGalleryLayout;
|
|
389
390
|
gsaSupportedBrowser: boolean;
|
|
390
391
|
acquiaAuthService: boolean;
|
|
391
|
-
storeSelection: {
|
|
392
|
-
planning: IStoreSelectionSettings;
|
|
393
|
-
pickup: IStoreSelectionSettings;
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
interface IStoreSelectionSettings {
|
|
397
|
-
integration: "AddressFinder" | "default";
|
|
398
392
|
}
|
|
399
393
|
export interface IGoogleTranslateWidget {
|
|
400
394
|
enabled: boolean;
|
|
@@ -430,7 +424,7 @@ export interface ISiteSettingsV2 {
|
|
|
430
424
|
anonymousCart: boolean;
|
|
431
425
|
ctaButtons: ICtaButtons | null | undefined;
|
|
432
426
|
cmsLazyLoadRows: number;
|
|
433
|
-
daysToRemainSignedIn:
|
|
427
|
+
daysToRemainSignedIn: NumberRange<1, 999>;
|
|
434
428
|
defaultCountry: IDefaultCounty;
|
|
435
429
|
defaultLanguage: string;
|
|
436
430
|
defaultSearchParams: IDefaultSearchParams;
|
|
@@ -477,7 +471,6 @@ export interface IWelcomeModalV2 {
|
|
|
477
471
|
href: string;
|
|
478
472
|
target: LinkTarget;
|
|
479
473
|
icon: string;
|
|
480
|
-
id?: string;
|
|
481
474
|
}
|
|
482
475
|
export interface IIntegrationSettings {
|
|
483
476
|
prodX: IProdX;
|
|
@@ -687,8 +680,8 @@ export declare type ILabelConfig = {
|
|
|
687
680
|
_type: "tprPromo";
|
|
688
681
|
};
|
|
689
682
|
export declare type IProductCardLayouts = {
|
|
690
|
-
ContainersGrid: "default" | "pce-centered" | "prs-labels"
|
|
691
|
-
ContainersCarousel: "default" | "pce-centered" | "prs-labels"
|
|
683
|
+
ContainersGrid: "default" | "pce-centered" | "prs-labels";
|
|
684
|
+
ContainersCarousel: "default" | "pce-centered" | "prs-labels";
|
|
692
685
|
FlyerCard: "default" | "detailed";
|
|
693
686
|
SimplifiedCarousel: "default";
|
|
694
687
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { DeepPartial } from "../index";
|
|
2
1
|
import { IPartialKeys, ITemplateObject } from "./admin-settings-interfaces";
|
|
3
2
|
import { ISharedSettings } from "./shared-settings.interfaces";
|
|
4
3
|
declare type IAdminSharedSettings = IPartialKeys<ISharedSettings>;
|
|
5
4
|
export declare type IAdminSharedSettingsTemplate = ITemplateObject<IAdminSharedSettings>;
|
|
6
|
-
export declare type SharedSettingsForSchema = Record<string, DeepPartial<ISharedSettings>>;
|
|
7
5
|
export {};
|
|
@@ -712,5 +712,7 @@ 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>>;
|
|
715
717
|
export declare type IDateFormat = "DD/MM/YYYY" | "MM/DD/YYYY";
|
|
716
718
|
export {};
|
|
@@ -12,12 +12,6 @@ exports.AdminSettingsTemplateMobile = {
|
|
|
12
12
|
helpLink: "",
|
|
13
13
|
type: "checkbox",
|
|
14
14
|
},
|
|
15
|
-
enableAgeRestrictedLabelOnCartReview: {
|
|
16
|
-
description: "Should show age-restricted label on cart review page? ",
|
|
17
|
-
title: "Enable Age Restricted Label On Cart Review",
|
|
18
|
-
helpLink: "",
|
|
19
|
-
type: "checkbox",
|
|
20
|
-
},
|
|
21
15
|
enableCouponRecommendedTag: {
|
|
22
16
|
description: "Should show coupon recommended tag?",
|
|
23
17
|
title: "Enable Coupon Recommended Tag",
|
|
@@ -202,14 +202,6 @@ 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
|
-
},
|
|
213
205
|
},
|
|
214
206
|
pdpSettings: {
|
|
215
207
|
externalContent: {
|