@thryveai/theme-interfaces 2.7.155 → 2.7.157
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 +5576 -0
- package/dist/JSONSchemas/index.js +7545 -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 +9 -2
- package/dist/interfaces/shared-settings-interfaces.d.ts +2 -0
- package/dist/interfaces/theme.interfaces.d.ts +0 -2
- package/dist/storefront/defaultSettingsStorefront.js +8 -0
- package/package.json +2 -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;
|
|
@@ -471,6 +477,7 @@ export interface IWelcomeModalV2 {
|
|
|
471
477
|
href: string;
|
|
472
478
|
target: LinkTarget;
|
|
473
479
|
icon: string;
|
|
480
|
+
id?: string;
|
|
474
481
|
}
|
|
475
482
|
export interface IIntegrationSettings {
|
|
476
483
|
prodX: IProdX;
|
|
@@ -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 {};
|
|
@@ -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 {};
|
|
@@ -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: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.157",
|
|
4
4
|
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "gulp",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"imagemin": "7.0.1",
|
|
25
25
|
"imagemin-svgo": "9.0.0",
|
|
26
26
|
"svgo": "3.0.2",
|
|
27
|
+
"ts-json-schema-generator": "2.3.0",
|
|
27
28
|
"ts-node": "^10.8.1",
|
|
28
29
|
"typescript": "4.6.3"
|
|
29
30
|
},
|