@thryveai/theme-interfaces 2.7.117 → 2.7.118
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 +38 -0
- package/dist/index.js +41 -0
- package/dist/interfaces/admin-images-interfaces.d.ts +11 -0
- package/dist/interfaces/admin-images-interfaces.js +2 -0
- package/dist/interfaces/admin-settings-interfaces.d.ts +73 -0
- package/dist/interfaces/admin-settings-interfaces.js +2 -0
- package/dist/interfaces/default-settings.interfaces.d.ts +92 -0
- package/dist/interfaces/default-settings.interfaces.js +3 -0
- package/dist/interfaces/default-theme.interface.d.ts +736 -0
- package/dist/interfaces/default-theme.interface.js +2 -0
- package/dist/interfaces/icons.interfaces.d.ts +7 -0
- package/dist/interfaces/icons.interfaces.js +2 -0
- package/dist/interfaces/retailer-settings.interfaces.d.ts +704 -0
- package/dist/interfaces/retailer-settings.interfaces.js +2 -0
- package/dist/interfaces/shared-settings-interfaces.d.ts +5 -0
- package/dist/interfaces/shared-settings-interfaces.js +2 -0
- package/dist/interfaces/shared-settings.interfaces.d.ts +43 -0
- package/dist/interfaces/shared-settings.interfaces.js +2 -0
- package/dist/interfaces/sts-settings.interfaces.d.ts +6 -0
- package/dist/interfaces/sts-settings.interfaces.js +2 -0
- package/dist/interfaces/theme.interfaces.d.ts +717 -0
- package/dist/interfaces/theme.interfaces.js +2 -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 +6 -0
- package/dist/mobile/reactnative/MobileDefaultSettings.js +21 -0
- package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.js +96 -0
- package/dist/storefront/SFUIImagesTemplate.AdminUi.d.ts +2 -0
- package/dist/storefront/SFUIImagesTemplate.AdminUi.js +112 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.d.ts +16 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +1110 -0
- package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.d.ts +4 -0
- package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.js +162 -0
- package/dist/storefront/SFUIThemesTemplate.AdminUi.d.ts +3 -0
- package/dist/storefront/SFUIThemesTemplate.AdminUi.js +113 -0
- package/dist/storefront/contentEngineComponents.d.ts +25 -0
- package/dist/storefront/contentEngineComponents.js +27 -0
- package/dist/storefront/defaultIconsStorefront.d.ts +3 -0
- package/dist/storefront/defaultIconsStorefront.js +160 -0
- package/dist/storefront/defaultImagesStorefront.d.ts +3 -0
- package/dist/storefront/defaultImagesStorefront.js +100 -0
- package/dist/storefront/defaultSettingsStorefront.d.ts +3 -0
- package/dist/storefront/defaultSettingsStorefront.js +395 -0
- package/dist/storefront/defaultSharedSettings.d.ts +3 -0
- package/dist/storefront/defaultSharedSettings.js +31 -0
- package/dist/storefront/defaultThemeStorefront.d.ts +5 -0
- package/dist/storefront/defaultThemeStorefront.js +1207 -0
- package/dist/storefront/productBadgeAttributes.d.ts +6 -0
- package/dist/storefront/productBadgeAttributes.js +31 -0
- package/dist/sts/STSImagesTemplate.AdminUi.d.ts +2 -0
- package/dist/sts/STSImagesTemplate.AdminUi.js +72 -0
- package/dist/sts/STSSettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/sts/STSSettingsTemplate.AdminUi.js +30 -0
- package/dist/sts/defaultSettingsSts.d.ts +3 -0
- package/dist/sts/defaultSettingsSts.js +9 -0
- package/dist/theme-templates/index.d.ts +3 -0
- package/dist/theme-templates/index.js +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import DefaultImagesSFUI from "./storefront/defaultImagesStorefront";
|
|
2
|
+
import DefaultIconsSFUI from "./storefront/defaultIconsStorefront";
|
|
3
|
+
import DefaultConfigSFUI from "./storefront/defaultSettingsStorefront";
|
|
4
|
+
import DefaultSharedSettingsConfig from "./storefront/defaultSharedSettings";
|
|
5
|
+
import DefaultThemeSFUI, { globalTheme, DefaultThemeColors } from "./storefront/defaultThemeStorefront";
|
|
6
|
+
import DefaultConfigSTS from "./sts/defaultSettingsSts";
|
|
7
|
+
import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./storefront/SFUISettingsTemplate.AdminUi";
|
|
8
|
+
import { AdminSettingsTemplateSTS } from "./sts/STSSettingsTemplate.AdminUi";
|
|
9
|
+
import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi";
|
|
10
|
+
import { AdminThemeTemplateSFUI, AdminThemeTemplateOptions } from "./storefront/SFUIThemesTemplate.AdminUi";
|
|
11
|
+
import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
|
|
12
|
+
import AllThemeTemplates from "./theme-templates";
|
|
13
|
+
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator } from "./interfaces/admin-settings-interfaces";
|
|
14
|
+
import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
|
|
15
|
+
import { IDefaultRetailerSettingsVersion2 } from "./interfaces/default-settings.interfaces";
|
|
16
|
+
import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
|
|
17
|
+
import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IRedPepperConfig, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IEntryModalVersion, IShoppingRuleControl, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IUseContentEngineV2Components, IPdpNutritionLink, ITypesOfBusiness, IBusinessAccountObject, IPerformanceSettingsV2 } from "./interfaces/retailer-settings.interfaces";
|
|
18
|
+
import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./interfaces/icons.interfaces";
|
|
19
|
+
import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./interfaces/theme.interfaces";
|
|
20
|
+
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";
|
|
21
|
+
import { CMSComponentNames, CMSNames } from "./storefront/contentEngineComponents";
|
|
22
|
+
import { ProductAttributes, ProductAttrToIcons } from "./storefront/productBadgeAttributes";
|
|
23
|
+
/** MOBILE */
|
|
24
|
+
import { IMobileSettings } from "./mobile/interfaces/mobile-retailer-settings.interfaces";
|
|
25
|
+
import { MobileDefaultSettings } from "./mobile/reactnative/MobileDefaultSettings";
|
|
26
|
+
import { AdminSettingsTemplateMobile } from "./mobile/reactnative/MobileSettingsTemplate.AdminUi";
|
|
27
|
+
import { ISharedSettings } from "./interfaces/shared-settings.interfaces";
|
|
28
|
+
import { AdminSharedSettingsTemplateSFUI } from "./storefront/SFUISharedSettingsTemplate.AdminUi";
|
|
29
|
+
import { IAdminSharedSettingsTemplate } from "./interfaces/shared-settings-interfaces";
|
|
30
|
+
export { DefaultSharedSettingsConfig, DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, DefaultIconsSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IMobileSettings, AdminSettingsTemplateMobile, MobileDefaultSettings, AdminSharedSettingsTemplateSFUI, };
|
|
31
|
+
export { CMSComponentNames, CMSNames };
|
|
32
|
+
export { ProductAttrToIcons, ProductAttributes };
|
|
33
|
+
export { ITypesOfBusiness, IBusinessAccountObject };
|
|
34
|
+
export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSharedSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
|
|
35
|
+
export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
|
|
36
|
+
export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IIconPosition, };
|
|
37
|
+
export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
|
|
38
|
+
export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IRedPepperConfig, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IUseContentEngineV2Components, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, IPdpNutritionLink, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, ISharedSettings, IPerformanceSettingsV2, };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductAttrToIcons = exports.CMSComponentNames = exports.AdminSharedSettingsTemplateSFUI = exports.MobileDefaultSettings = 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 = exports.DefaultSharedSettingsConfig = void 0;
|
|
4
|
+
var defaultImagesStorefront_1 = require("./storefront/defaultImagesStorefront");
|
|
5
|
+
exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
|
|
6
|
+
var defaultIconsStorefront_1 = require("./storefront/defaultIconsStorefront");
|
|
7
|
+
exports.DefaultIconsSFUI = defaultIconsStorefront_1.default;
|
|
8
|
+
var defaultSettingsStorefront_1 = require("./storefront/defaultSettingsStorefront");
|
|
9
|
+
exports.DefaultConfigSFUI = defaultSettingsStorefront_1.default;
|
|
10
|
+
var defaultSharedSettings_1 = require("./storefront/defaultSharedSettings");
|
|
11
|
+
exports.DefaultSharedSettingsConfig = defaultSharedSettings_1.default;
|
|
12
|
+
var defaultThemeStorefront_1 = require("./storefront/defaultThemeStorefront");
|
|
13
|
+
exports.DefaultThemeSFUI = defaultThemeStorefront_1.default;
|
|
14
|
+
Object.defineProperty(exports, "globalTheme", { enumerable: true, get: function () { return defaultThemeStorefront_1.globalTheme; } });
|
|
15
|
+
Object.defineProperty(exports, "DefaultThemeColors", { enumerable: true, get: function () { return defaultThemeStorefront_1.DefaultThemeColors; } });
|
|
16
|
+
var defaultSettingsSts_1 = require("./sts/defaultSettingsSts");
|
|
17
|
+
exports.DefaultConfigSTS = defaultSettingsSts_1.default;
|
|
18
|
+
var SFUISettingsTemplate_AdminUi_1 = require("./storefront/SFUISettingsTemplate.AdminUi");
|
|
19
|
+
Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes; } });
|
|
20
|
+
Object.defineProperty(exports, "AdminSettingsTemplateSFUI", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminSettingsTemplateSFUI; } });
|
|
21
|
+
var STSSettingsTemplate_AdminUi_1 = require("./sts/STSSettingsTemplate.AdminUi");
|
|
22
|
+
Object.defineProperty(exports, "AdminSettingsTemplateSTS", { enumerable: true, get: function () { return STSSettingsTemplate_AdminUi_1.AdminSettingsTemplateSTS; } });
|
|
23
|
+
var SFUIImagesTemplate_AdminUi_1 = require("./storefront/SFUIImagesTemplate.AdminUi");
|
|
24
|
+
Object.defineProperty(exports, "AdminImagesTemplateSFUI", { enumerable: true, get: function () { return SFUIImagesTemplate_AdminUi_1.AdminImagesTemplateSFUI; } });
|
|
25
|
+
var SFUIThemesTemplate_AdminUi_1 = require("./storefront/SFUIThemesTemplate.AdminUi");
|
|
26
|
+
Object.defineProperty(exports, "AdminThemeTemplateSFUI", { enumerable: true, get: function () { return SFUIThemesTemplate_AdminUi_1.AdminThemeTemplateSFUI; } });
|
|
27
|
+
Object.defineProperty(exports, "AdminThemeTemplateOptions", { enumerable: true, get: function () { return SFUIThemesTemplate_AdminUi_1.AdminThemeTemplateOptions; } });
|
|
28
|
+
var STSImagesTemplate_AdminUi_1 = require("./sts/STSImagesTemplate.AdminUi");
|
|
29
|
+
Object.defineProperty(exports, "AdminImagesTemplateSTS", { enumerable: true, get: function () { return STSImagesTemplate_AdminUi_1.AdminImagesTemplateSTS; } });
|
|
30
|
+
var theme_templates_1 = require("./theme-templates");
|
|
31
|
+
exports.AllThemeTemplates = theme_templates_1.default;
|
|
32
|
+
var contentEngineComponents_1 = require("./storefront/contentEngineComponents");
|
|
33
|
+
Object.defineProperty(exports, "CMSComponentNames", { enumerable: true, get: function () { return contentEngineComponents_1.CMSComponentNames; } });
|
|
34
|
+
var productBadgeAttributes_1 = require("./storefront/productBadgeAttributes");
|
|
35
|
+
Object.defineProperty(exports, "ProductAttrToIcons", { enumerable: true, get: function () { return productBadgeAttributes_1.ProductAttrToIcons; } });
|
|
36
|
+
var MobileDefaultSettings_1 = require("./mobile/reactnative/MobileDefaultSettings");
|
|
37
|
+
Object.defineProperty(exports, "MobileDefaultSettings", { enumerable: true, get: function () { return MobileDefaultSettings_1.MobileDefaultSettings; } });
|
|
38
|
+
var MobileSettingsTemplate_AdminUi_1 = require("./mobile/reactnative/MobileSettingsTemplate.AdminUi");
|
|
39
|
+
Object.defineProperty(exports, "AdminSettingsTemplateMobile", { enumerable: true, get: function () { return MobileSettingsTemplate_AdminUi_1.AdminSettingsTemplateMobile; } });
|
|
40
|
+
var SFUISharedSettingsTemplate_AdminUi_1 = require("./storefront/SFUISharedSettingsTemplate.AdminUi");
|
|
41
|
+
Object.defineProperty(exports, "AdminSharedSettingsTemplateSFUI", { enumerable: true, get: function () { return SFUISharedSettingsTemplate_AdminUi_1.AdminSharedSettingsTemplateSFUI; } });
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { IDefaultCounty, IDefaultExternal, IValidationType, LinkTarget } from "./retailer-settings.interfaces";
|
|
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
|
+
export declare type IPartialKeys<T> = {
|
|
13
|
+
[key in keyof T]: Partial<T[key]>;
|
|
14
|
+
};
|
|
15
|
+
declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "accountPage" | "pdpSettings">>;
|
|
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>;
|
|
24
|
+
export declare type IAdminTemplateInputTypes = {
|
|
25
|
+
[key in IAdminControlType]: IAdminControlType;
|
|
26
|
+
};
|
|
27
|
+
export interface IAdminControl<T> {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
type: IAdminControlType;
|
|
31
|
+
visible?: boolean;
|
|
32
|
+
group?: IAdminGroupType;
|
|
33
|
+
message?: IMessageProps;
|
|
34
|
+
helpLink?: string;
|
|
35
|
+
options?: string[] | number[] | Object[] | IDefaultCounty[] | IValidationType[] | IImageRequiredFormat | LinkTarget | NumberRange;
|
|
36
|
+
uniqueOptions?: IDefaultExternal["provider"][];
|
|
37
|
+
value?: ITemplateObject<T>;
|
|
38
|
+
optional?: boolean;
|
|
39
|
+
}
|
|
40
|
+
interface NumberRange {
|
|
41
|
+
min: number;
|
|
42
|
+
max: number;
|
|
43
|
+
}
|
|
44
|
+
export declare type ImageFormat = "svg" | "jpeg" | "png";
|
|
45
|
+
export interface IImageRequiredFormat {
|
|
46
|
+
requiredFormat: ImageFormat[];
|
|
47
|
+
}
|
|
48
|
+
export interface IAdminGroupType {
|
|
49
|
+
id: number;
|
|
50
|
+
name: string;
|
|
51
|
+
}
|
|
52
|
+
export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string" | "array" | "storeSelection";
|
|
53
|
+
export interface IAdminSettingsTemplateSTS {
|
|
54
|
+
hasEUTerms: IAdminControl<boolean>;
|
|
55
|
+
hasTwoStepRegistration: IAdminControl<boolean>;
|
|
56
|
+
customTermPolicy: IAdminControl<string>;
|
|
57
|
+
gtmId: IAdminControl<string>;
|
|
58
|
+
}
|
|
59
|
+
export declare type IAdminImagesTemplateSTS = ITemplateObject<IPartialKeys<Pick<IThemeImages, "logos" | "stsCheckBox" | "stsFavicon" | "banner">>>;
|
|
60
|
+
export declare type IAdminImagesTemplateSFUI = ITemplateObject<IPartialKeys<IThemeImages>>;
|
|
61
|
+
export declare type IAdminThemeTemplateSFUI = ITemplateObject<IPartialKeys<Pick<IDefaultThemeInterface, "colors">>>;
|
|
62
|
+
export interface IAdminThemeTemplateOptions {
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
options: SupportThemeTemplates[];
|
|
66
|
+
helpLink: string;
|
|
67
|
+
}
|
|
68
|
+
export declare type IAllThemeTemplates = {
|
|
69
|
+
[key in SupportThemeTemplates]: IThemeGenerator;
|
|
70
|
+
};
|
|
71
|
+
declare type SupportThemeTemplates = "Default Storefront" | "Default STS";
|
|
72
|
+
export declare type IThemeGenerator = (colors: IDefaultColors) => IDefaultThemeInterface;
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
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, IPerformanceSettingsV2 } from "./retailer-settings.interfaces";
|
|
2
|
+
export interface IDefaultRetailerSettings {
|
|
3
|
+
adminPanelOnly: {
|
|
4
|
+
bannerName: string;
|
|
5
|
+
logoUrl: string;
|
|
6
|
+
};
|
|
7
|
+
accountPage: IAccountPageSettings;
|
|
8
|
+
addressValidationTypes: IAddressValidationTypes;
|
|
9
|
+
addresses: IAddressesSettings;
|
|
10
|
+
advertSettings: IAdvertSettings;
|
|
11
|
+
allowInStorePurchases: boolean;
|
|
12
|
+
allowPastPurchases: boolean;
|
|
13
|
+
buildNumber: string;
|
|
14
|
+
cacheTimeMins: number;
|
|
15
|
+
canadianAddressCompleteKey: string | undefined;
|
|
16
|
+
checkout: IGlobalCheckoutProps;
|
|
17
|
+
checkoutV1: boolean;
|
|
18
|
+
checkoutValidation: ICheckoutValidation;
|
|
19
|
+
ctaButtons: ICtaButtons | null | undefined;
|
|
20
|
+
daysToRemainSignedIn: number;
|
|
21
|
+
defaultCountry: IDefaultCounty;
|
|
22
|
+
defaultSearchParams: IDefaultSearchParams;
|
|
23
|
+
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
24
|
+
defaultStoreLocation: IDefaultStoreLocation;
|
|
25
|
+
disableTprPrice: boolean;
|
|
26
|
+
documentTitle: string;
|
|
27
|
+
ebtPayments: boolean;
|
|
28
|
+
eircode: string | undefined;
|
|
29
|
+
enable3dSecure: boolean;
|
|
30
|
+
enableGoogleTranslate: boolean;
|
|
31
|
+
enableNewsletterSignup: boolean;
|
|
32
|
+
enableNotifications: boolean;
|
|
33
|
+
enableRecipeSearch: boolean;
|
|
34
|
+
errorLoggingLevel: ILoggingLevel;
|
|
35
|
+
externalStoreSelectorUrl: string | undefined;
|
|
36
|
+
favoritesV1: boolean;
|
|
37
|
+
features: IFeatureSwitch;
|
|
38
|
+
flipp: IFlippConfig | IFlippConfigV2 | null;
|
|
39
|
+
globalAnimations: IGlobalAnimations;
|
|
40
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
41
|
+
gtmId: undefined | string;
|
|
42
|
+
hideTaxOnSummary: boolean;
|
|
43
|
+
houseAccountRegExValidation: string;
|
|
44
|
+
idpTarget: "_self" | "_blank";
|
|
45
|
+
idpUrl: undefined | string;
|
|
46
|
+
instacartUrl: string | undefined;
|
|
47
|
+
isPlanningOnly: boolean;
|
|
48
|
+
RemoveAllOutOfStock: boolean;
|
|
49
|
+
layout: ILayoutSettings;
|
|
50
|
+
layouts: IGlobalLayouts;
|
|
51
|
+
limitProductCardTitleHeight: boolean;
|
|
52
|
+
loggingLevelClient: ILoggingLevel;
|
|
53
|
+
loggingLevelServer: ILoggingLevel;
|
|
54
|
+
mainHeaderHeight: number;
|
|
55
|
+
mapZoom: number;
|
|
56
|
+
minimumCreditCardAmount: number;
|
|
57
|
+
nutritionZone: INutritionZone;
|
|
58
|
+
paymentCards: IPaymentCards;
|
|
59
|
+
pdpDetailsLayout: IProductDetailsPageLayout;
|
|
60
|
+
productCardTitleHeight: number;
|
|
61
|
+
productCards: IProductCardsProps;
|
|
62
|
+
productCardv2: boolean;
|
|
63
|
+
promoTemplateVersion: number;
|
|
64
|
+
registrationFields: IRegistrationField[];
|
|
65
|
+
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
66
|
+
retailerCountry: IRetailerCountry;
|
|
67
|
+
retailerName: string;
|
|
68
|
+
searchPreview: ISearchPreviewVisibility;
|
|
69
|
+
secondTierAuthorization?: ISecondTierAuthorization;
|
|
70
|
+
siteSettings: ISiteSettings;
|
|
71
|
+
showCheckoutPromoCode: boolean;
|
|
72
|
+
showImgOnOrder: boolean;
|
|
73
|
+
smsNotifications: ISMSConfig;
|
|
74
|
+
sodiumWarning: ISodiumWarning;
|
|
75
|
+
specialRequestItems: boolean;
|
|
76
|
+
subHeaderHeight: number;
|
|
77
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
78
|
+
useAddressValidation: boolean;
|
|
79
|
+
}
|
|
80
|
+
export interface IDefaultRetailerSettingsVersion2 {
|
|
81
|
+
accountPage: IAccountPageV2;
|
|
82
|
+
addressSettings: IAddressesSettingsV2;
|
|
83
|
+
adminPanelOnly: IAdminOnlyV2;
|
|
84
|
+
cartSummary: ICartSummaryV2;
|
|
85
|
+
checkout: ICheckoutSettingsV2;
|
|
86
|
+
features: IFeaturesV2;
|
|
87
|
+
pdpSettings: IPdpSettingsV2;
|
|
88
|
+
productCard: IProductCardSettingsV2;
|
|
89
|
+
siteSettings: ISiteSettingsV2;
|
|
90
|
+
welcomeModal: IWelcomeModalV2[];
|
|
91
|
+
performance: IPerformanceSettingsV2;
|
|
92
|
+
}
|