@thryveai/theme-interfaces 2.6.8 → 2.7.1-4.test1
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 +4 -1
- package/dist/index.js +3 -1
- package/dist/interfaces/admin-settings-interfaces.d.ts +41 -35
- package/dist/interfaces/default-settings.interfaces.d.ts +2 -1
- package/dist/interfaces/icons.interfaces.d.ts +1 -1
- package/dist/interfaces/retailer-settings.interfaces.d.ts +14 -0
- package/dist/mobile/interfaces/mobile-admin-settings.interfaces.d.ts +8 -0
- package/dist/mobile/interfaces/mobile-admin-settings.interfaces.js +2 -0
- package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.d.ts +58 -0
- package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.js +2 -0
- package/dist/mobile/reactnative/MobileDefaultSettings.d.ts +2 -0
- package/dist/mobile/reactnative/MobileDefaultSettings.js +8 -0
- package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.js +17 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +816 -947
- package/dist/storefront/defaultIconsStorefront.js +3 -2
- package/dist/storefront/defaultSettingsStorefront.js +6 -0
- package/package.json +29 -29
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,10 @@ import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IT
|
|
|
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";
|
|
20
20
|
import { CMSComponentNames, CMSNames } from "./storefront/contentEngineComponents";
|
|
21
21
|
import { ProductAttributes, ProductAttrToIcons } from "./storefront/productBadgeAttributes";
|
|
22
|
-
|
|
22
|
+
/** MOBILE */
|
|
23
|
+
import { IMobileSettings } from "./mobile/interfaces/mobile-retailer-settings.interfaces";
|
|
24
|
+
import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettingsTemplate.AdminUi";
|
|
25
|
+
export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, };
|
|
23
26
|
export { CMSComponentNames, CMSNames };
|
|
24
27
|
export { ProductAttrToIcons, ProductAttributes };
|
|
25
28
|
export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductAttrToIcons = exports.CMSComponentNames = exports.AdminImagesTemplateSTS = exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultIconsSFUI = exports.DefaultImagesSFUI = exports.DefaultThemeColors = exports.globalTheme = exports.DefaultThemeSFUI = exports.AllThemeTemplates = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
|
|
3
|
+
exports.ProductAttrToIcons = exports.CMSComponentNames = exports.AdminSettingsTemplateMobile = exports.AdminImagesTemplateSTS = exports.AdminThemeTemplateOptions = exports.AdminThemeTemplateSFUI = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultIconsSFUI = exports.DefaultImagesSFUI = exports.DefaultThemeColors = exports.globalTheme = exports.DefaultThemeSFUI = exports.AllThemeTemplates = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
|
|
4
4
|
var defaultImagesStorefront_1 = require("./storefront/defaultImagesStorefront");
|
|
5
5
|
exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
|
|
6
6
|
var defaultIconsStorefront_1 = require("./storefront/defaultIconsStorefront");
|
|
@@ -31,3 +31,5 @@ var contentEngineComponents_1 = require("./storefront/contentEngineComponents");
|
|
|
31
31
|
Object.defineProperty(exports, "CMSComponentNames", { enumerable: true, get: function () { return contentEngineComponents_1.CMSComponentNames; } });
|
|
32
32
|
var productBadgeAttributes_1 = require("./storefront/productBadgeAttributes");
|
|
33
33
|
Object.defineProperty(exports, "ProductAttrToIcons", { enumerable: true, get: function () { return productBadgeAttributes_1.ProductAttrToIcons; } });
|
|
34
|
+
var MobileSettingsTemplate_AdminUi_1 = require("./mobile/reactnative/MobileSettingsTemplate.AdminUi");
|
|
35
|
+
Object.defineProperty(exports, "AdminSettingsTemplateMobile", { enumerable: true, get: function () { return MobileSettingsTemplate_AdminUi_1.AdminSettingsTemplateMobile; } });
|
|
@@ -1,48 +1,54 @@
|
|
|
1
|
-
import { IDefaultCounty, IValidationType } from "./retailer-settings.interfaces";
|
|
1
|
+
import { IDefaultCounty, IValidationType, LinkTarget } from "./retailer-settings.interfaces";
|
|
2
2
|
import { IDefaultColors, IDefaultThemeInterface } from "./default-theme.interface";
|
|
3
|
+
import { IDefaultRetailerSettingsVersion2 } from "./default-settings.interfaces";
|
|
4
|
+
import { IThemeImages } from "./theme.interfaces";
|
|
5
|
+
/**
|
|
6
|
+
* Helper types
|
|
7
|
+
*/
|
|
8
|
+
export declare type ITemplateObject<T> = {
|
|
9
|
+
[key in keyof T]: IAdminControl<Flatten<T[key]>>;
|
|
10
|
+
};
|
|
11
|
+
declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type;
|
|
12
|
+
declare type IPartialKeys<T> = {
|
|
13
|
+
[key in keyof T]: Partial<T[key]>;
|
|
14
|
+
};
|
|
15
|
+
declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal">>;
|
|
16
|
+
/** ===== */
|
|
17
|
+
export interface IMessageProps {
|
|
18
|
+
caption?: string | string[];
|
|
19
|
+
type?: IMessageTypes;
|
|
20
|
+
showLabel?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare type IMessageTypes = "info" | "success" | "note" | "warning" | "error" | "notification";
|
|
23
|
+
export declare type IAdminSettingsTemplate = ITemplateObject<IAdminAvailableSettings>;
|
|
3
24
|
export declare type IAdminTemplateInputTypes = {
|
|
4
25
|
[key in IAdminControlType]: IAdminControlType;
|
|
5
26
|
};
|
|
6
|
-
export interface
|
|
7
|
-
adminPanelOnly: IAdminControl;
|
|
8
|
-
accountPage: IAdminControl;
|
|
9
|
-
addressSettings: IAdminControl;
|
|
10
|
-
cartSummary: IAdminControl;
|
|
11
|
-
checkout: IAdminControl;
|
|
12
|
-
features: IAdminControl;
|
|
13
|
-
pdpSettings: IAdminControl;
|
|
14
|
-
productCard: IAdminControl;
|
|
15
|
-
siteSettings: IAdminControl;
|
|
16
|
-
}
|
|
17
|
-
export interface IAdminControl {
|
|
27
|
+
export interface IAdminControl<T> {
|
|
18
28
|
title: string;
|
|
19
29
|
description: string;
|
|
20
|
-
helpLink?: string;
|
|
21
30
|
type: IAdminControlType;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
visible?: boolean;
|
|
32
|
+
group?: IAdminGroupType;
|
|
33
|
+
message?: IMessageProps;
|
|
34
|
+
helpLink?: string;
|
|
35
|
+
options?: string[] | number[] | IDefaultCounty[] | IValidationType[] | LinkTarget;
|
|
36
|
+
value?: ITemplateObject<T>;
|
|
37
|
+
}
|
|
38
|
+
export interface IAdminGroupType {
|
|
39
|
+
id: number;
|
|
40
|
+
name: string;
|
|
26
41
|
}
|
|
27
|
-
export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string";
|
|
42
|
+
export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string" | "array";
|
|
28
43
|
export interface IAdminSettingsTemplateSTS {
|
|
29
|
-
hasEUTerms: IAdminControl
|
|
30
|
-
hasTwoStepRegistration: IAdminControl
|
|
31
|
-
customTermPolicy: IAdminControl
|
|
32
|
-
gtmId: IAdminControl
|
|
44
|
+
hasEUTerms: IAdminControl<boolean>;
|
|
45
|
+
hasTwoStepRegistration: IAdminControl<boolean>;
|
|
46
|
+
customTermPolicy: IAdminControl<string>;
|
|
47
|
+
gtmId: IAdminControl<string>;
|
|
33
48
|
}
|
|
34
|
-
export declare type IAdminImagesTemplateSTS =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export declare type IAdminImagesTemplateSFUI = {
|
|
38
|
-
[key in IAdminImagesKeys]: IAdminControl;
|
|
39
|
-
};
|
|
40
|
-
export declare type IAdminThemeTemplateSFUI = {
|
|
41
|
-
[key in IAdminThemeKeys]: IAdminControl;
|
|
42
|
-
};
|
|
43
|
-
declare type IAdminThemeKeys = "colors";
|
|
44
|
-
declare type IAdminImagesKeysSTS = "logos" | "stsCheckBox" | "stsFavicon";
|
|
45
|
-
declare type IAdminImagesKeys = "icons" | "logos" | "confirmationPageImage" | "stsCheckBox" | "stsFavicon" | "favicon" | "rewards" | "verifySiteImage" | "missingImg";
|
|
49
|
+
export declare type IAdminImagesTemplateSTS = ITemplateObject<IPartialKeys<Pick<IThemeImages, "logos" | "stsCheckBox" | "stsFavicon">>>;
|
|
50
|
+
export declare type IAdminImagesTemplateSFUI = ITemplateObject<IPartialKeys<IThemeImages>>;
|
|
51
|
+
export declare type IAdminThemeTemplateSFUI = ITemplateObject<IPartialKeys<Pick<IDefaultThemeInterface, "colors">>>;
|
|
46
52
|
export interface IAdminThemeTemplateOptions {
|
|
47
53
|
title: string;
|
|
48
54
|
description: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAccountPageSettings, IAccountPageV2, IAddressValidationTypes, IAddressesSettings, IAddressesSettingsV2, IAdminOnlyV2, IAdvertSettings, ICartSummaryV2, ICheckoutSettingsV2, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFeaturesV2, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IPdpSettingsV2, IProductCardSettingsV2, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISMSConfig, ISearchPreviewVisibility, ISecondTierAuthorization, ISiteSettings, ISiteSettingsV2, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
|
|
1
|
+
import { IAccountPageSettings, IAccountPageV2, IAddressValidationTypes, IAddressesSettings, IAddressesSettingsV2, IAdminOnlyV2, IAdvertSettings, ICartSummaryV2, ICheckoutSettingsV2, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFeaturesV2, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IPdpSettingsV2, IProductCardSettingsV2, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISMSConfig, ISearchPreviewVisibility, ISecondTierAuthorization, ISiteSettings, ISiteSettingsV2, ISodiumWarning, ITimeslotModalSettings, IWelcomeModalV2 } from "./retailer-settings.interfaces";
|
|
2
2
|
export interface IDefaultRetailerSettings {
|
|
3
3
|
adminPanelOnly: {
|
|
4
4
|
bannerName: string;
|
|
@@ -87,4 +87,5 @@ export interface IDefaultRetailerSettingsVersion2 {
|
|
|
87
87
|
pdpSettings: IPdpSettingsV2;
|
|
88
88
|
productCard: IProductCardSettingsV2;
|
|
89
89
|
siteSettings: ISiteSettingsV2;
|
|
90
|
+
welcomeModal: IWelcomeModalV2[];
|
|
90
91
|
}
|
|
@@ -3,5 +3,5 @@ export declare type IIconsObject = {
|
|
|
3
3
|
};
|
|
4
4
|
export declare type PaymentTypesLogos = "AmExpCard" | "AmExpLogo" | "Comodo" | "DiscoverCard" | "DiscoverLogo" | "MasterLogo" | "MasterSecure" | "VisaLogo" | "VisaVerified";
|
|
5
5
|
export declare type PaymentCards = "AmExpCard" | "DiscoverCard" | "MasterCard" | "MasterCardDebit" | "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" | "Hamburger" | "Help" | "Home" | "Info" | "Instacart" | "Instagram" | "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" | "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 | ProductAttributeIcons;
|
|
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" | "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" | "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 | ProductAttributeIcons;
|
|
7
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";
|
|
@@ -278,6 +278,7 @@ export interface IAddressesSettingsV2 {
|
|
|
278
278
|
addNewAddressUrl: string;
|
|
279
279
|
editAddressUrl: string;
|
|
280
280
|
deleteAddressUrl: string;
|
|
281
|
+
addressProfileName: string | null;
|
|
281
282
|
};
|
|
282
283
|
useAddressValidation: boolean;
|
|
283
284
|
}
|
|
@@ -347,6 +348,7 @@ export interface IProductCardSettingsV2 {
|
|
|
347
348
|
productCards: IProductCardsProps;
|
|
348
349
|
}
|
|
349
350
|
export interface ISiteSettingsV2 {
|
|
351
|
+
clientSideOrderModify: boolean;
|
|
350
352
|
anonymousCart: boolean;
|
|
351
353
|
ctaButtons: ICtaButtons | null | undefined;
|
|
352
354
|
daysToRemainSignedIn: number;
|
|
@@ -354,6 +356,7 @@ export interface ISiteSettingsV2 {
|
|
|
354
356
|
defaultSearchParams: IDefaultSearchParams;
|
|
355
357
|
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
356
358
|
defaultStoreLocation: IDefaultStoreLocation;
|
|
359
|
+
defaultTabView: "listView" | "mapView";
|
|
357
360
|
disableTprPrice: boolean;
|
|
358
361
|
footerVersion: IFooterTypes;
|
|
359
362
|
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
@@ -374,6 +377,12 @@ export interface ISiteSettingsV2 {
|
|
|
374
377
|
timeslotModalSettings: ITimeslotModalSettings;
|
|
375
378
|
useContentEngineV2Components: IUseContentEngineV2Components;
|
|
376
379
|
}
|
|
380
|
+
export interface IWelcomeModalV2 {
|
|
381
|
+
label: string;
|
|
382
|
+
href: string;
|
|
383
|
+
target: LinkTarget;
|
|
384
|
+
icon: string;
|
|
385
|
+
}
|
|
377
386
|
export declare type IUseContentEngineV2Components = {
|
|
378
387
|
[key in CMSNames]: boolean;
|
|
379
388
|
};
|
|
@@ -522,6 +531,10 @@ export interface IProductCardsProps {
|
|
|
522
531
|
}
|
|
523
532
|
export interface IProductCardV2ComponentProps {
|
|
524
533
|
promotionLabel: IProductCardV2PromotionLabelsSettings;
|
|
534
|
+
recommendedLabel: IProductCardV2RecommendedLabelSettings;
|
|
535
|
+
}
|
|
536
|
+
export interface IProductCardV2RecommendedLabelSettings {
|
|
537
|
+
enabled: boolean;
|
|
525
538
|
}
|
|
526
539
|
export interface IProductCardV2PromotionLabelsSettings {
|
|
527
540
|
showLines: number;
|
|
@@ -529,6 +542,7 @@ export interface IProductCardV2PromotionLabelsSettings {
|
|
|
529
542
|
export declare type IProductCardLayouts = {
|
|
530
543
|
ContainersGrid: "default" | "pce-centered" | "prs-labels";
|
|
531
544
|
ContainersCarousel: "default" | "pce-centered" | "prs-labels";
|
|
545
|
+
FlippSlideout: "default";
|
|
532
546
|
};
|
|
533
547
|
export declare type IProductCardLayoutObjects<T> = {
|
|
534
548
|
[Place in keyof IProductCardLayouts]: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ITemplateObject } from "../../interfaces/admin-settings-interfaces";
|
|
2
|
+
import { IMobileSettings } from "./mobile-retailer-settings.interfaces";
|
|
3
|
+
declare type IPartialKeys<T> = {
|
|
4
|
+
[key in keyof T]: Partial<T[key]>;
|
|
5
|
+
};
|
|
6
|
+
declare type IAdminAvailableSettings = IPartialKeys<IMobileSettings>;
|
|
7
|
+
export declare type IAdminSettingsTemplate = ITemplateObject<Pick<IAdminAvailableSettings, "features">>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface IMobileSettings {
|
|
2
|
+
ebtPayment: {
|
|
3
|
+
details: string | undefined;
|
|
4
|
+
};
|
|
5
|
+
features: {
|
|
6
|
+
enableAccountReview: boolean;
|
|
7
|
+
enableAddToCartButtonOnMyList: boolean;
|
|
8
|
+
enableBuildListFiltersBelowTabs: boolean;
|
|
9
|
+
enableCartItemLocator: boolean;
|
|
10
|
+
enableCircularCarouselPreview: boolean;
|
|
11
|
+
enableCircularSpecialRequest: boolean;
|
|
12
|
+
enableCircularsForCorporateStore: boolean;
|
|
13
|
+
enableCompactHeader: boolean;
|
|
14
|
+
enableCouponRecommendedTag: boolean;
|
|
15
|
+
enableDeleteAccount: boolean;
|
|
16
|
+
enableEarlyTimeSlotSelection: boolean;
|
|
17
|
+
enableFirstIntentModal: boolean;
|
|
18
|
+
enableGetDeliveryMoreStores: boolean;
|
|
19
|
+
enableGiftCards: boolean;
|
|
20
|
+
enableInStoreOrders: boolean;
|
|
21
|
+
enableInterim: boolean;
|
|
22
|
+
enableMissedPromotions: boolean;
|
|
23
|
+
enableOnboarding: boolean;
|
|
24
|
+
enablePaymentCibc: boolean;
|
|
25
|
+
enablePaymentWithUserInputDescription: boolean;
|
|
26
|
+
enablePreviewLabelOnCircular: boolean;
|
|
27
|
+
enablePreviousSelectedStores: boolean;
|
|
28
|
+
enableProductInfiniteScroll: boolean;
|
|
29
|
+
enableProductVariations: boolean;
|
|
30
|
+
enableProgressOnPromotionDetail: boolean;
|
|
31
|
+
enablePromoCode: boolean;
|
|
32
|
+
enableSaleTagOnCartItem: boolean;
|
|
33
|
+
enableSearchPreviewInlineProducts: boolean;
|
|
34
|
+
enableSearchPreviewTopCategories: boolean;
|
|
35
|
+
enableShoppingModeSelectorCircularListing: boolean;
|
|
36
|
+
enableSlotsRemainingLabel: boolean;
|
|
37
|
+
enableSponsoredProducts: boolean;
|
|
38
|
+
enableStoreEmail: boolean;
|
|
39
|
+
filterOrder: string[];
|
|
40
|
+
flipp: {} | undefined;
|
|
41
|
+
payments: {} | undefined;
|
|
42
|
+
wakefernEnableFiltersSortsCloseButton: boolean;
|
|
43
|
+
wakefernEnableProductNameAlert: boolean;
|
|
44
|
+
webCollage: {
|
|
45
|
+
baseUrl: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
};
|
|
48
|
+
intentScreenLogoHeight: number | undefined;
|
|
49
|
+
settings: {
|
|
50
|
+
aboutDescription: string | undefined;
|
|
51
|
+
barcodeTotalLength: number;
|
|
52
|
+
carouselAutoscrollTimeout: number | undefined;
|
|
53
|
+
infiniteScrollEndReachedThreshold: number | undefined;
|
|
54
|
+
privacyPolicyUrl: string;
|
|
55
|
+
termsOfUseUrl: string;
|
|
56
|
+
topLevelCategory: string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminSettingsTemplateMobile = void 0;
|
|
4
|
+
exports.AdminSettingsTemplateMobile = {
|
|
5
|
+
features: {
|
|
6
|
+
title: "",
|
|
7
|
+
description: "",
|
|
8
|
+
value: {
|
|
9
|
+
enableAddToCartButtonOnMyList: {
|
|
10
|
+
description: "",
|
|
11
|
+
title: "',",
|
|
12
|
+
type: "checkbox",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
type: "collapsableObject",
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAdminControlType, IAdminSettingsTemplate, IAdminTemplateInputTypes } from "../interfaces/admin-settings-interfaces";
|
|
2
|
+
import { IValidationType } from "../interfaces/retailer-settings.interfaces";
|
|
2
3
|
import { CMSNames } from "./contentEngineComponents";
|
|
3
4
|
export declare const AdminTemplateInputTypes: IAdminTemplateInputTypes;
|
|
4
5
|
export declare type IUseContentEngineV2ComponentsAdmin = {
|
|
@@ -10,5 +11,6 @@ interface IContentEngineAdminTypes {
|
|
|
10
11
|
helpLink: string;
|
|
11
12
|
type: IAdminControlType;
|
|
12
13
|
}
|
|
14
|
+
export declare const validationTypes: Array<IValidationType>;
|
|
13
15
|
export declare const AdminSettingsTemplateSFUI: IAdminSettingsTemplate;
|
|
14
16
|
export {};
|