@thryveai/theme-interfaces 2.7.13 → 2.7.15-3.beta

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.
Files changed (33) hide show
  1. package/dist/index.d.ts +10 -4
  2. package/dist/index.js +7 -1
  3. package/dist/interfaces/admin-settings-interfaces.d.ts +16 -6
  4. package/dist/interfaces/default-settings.interfaces.d.ts +3 -79
  5. package/dist/interfaces/default-settings.interfaces.js +0 -1
  6. package/dist/interfaces/default-theme.interface.d.ts +34 -0
  7. package/dist/interfaces/icons.interfaces.d.ts +4 -3
  8. package/dist/interfaces/retailer-settings.interfaces.d.ts +169 -14
  9. package/dist/interfaces/shared-settings-interfaces.d.ts +5 -0
  10. package/dist/interfaces/shared-settings-interfaces.js +2 -0
  11. package/dist/interfaces/shared-settings.interfaces.d.ts +51 -0
  12. package/dist/interfaces/shared-settings.interfaces.js +2 -0
  13. package/dist/interfaces/theme.interfaces.d.ts +23 -0
  14. package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.d.ts +1 -0
  15. package/dist/mobile/reactnative/MobileDefaultSettings.d.ts +5 -1
  16. package/dist/mobile/reactnative/MobileDefaultSettings.js +15 -1
  17. package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.js +84 -5
  18. package/dist/storefront/SFUISettingsTemplate.AdminUi.js +220 -15
  19. package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.d.ts +4 -0
  20. package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.js +168 -0
  21. package/dist/storefront/contentEngineComponents.d.ts +13 -11
  22. package/dist/storefront/contentEngineComponents.js +13 -11
  23. package/dist/storefront/defaultIconsStorefront.js +171 -146
  24. package/dist/storefront/defaultImagesStorefront.js +4 -0
  25. package/dist/storefront/defaultSettingsStorefront.js +113 -15
  26. package/dist/storefront/defaultSharedSettings.d.ts +3 -0
  27. package/dist/storefront/defaultSharedSettings.js +39 -0
  28. package/dist/storefront/defaultThemeStorefront.js +45 -0
  29. package/dist/storefront/productBadgeAttributes.d.ts +1 -1
  30. package/dist/storefront/productBadgeAttributes.js +4 -0
  31. package/dist/sts/STSImagesTemplate.AdminUi.js +22 -0
  32. package/package.json +9 -3
  33. package/README.md +0 -29
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import DefaultImagesSFUI from "./storefront/defaultImagesStorefront";
2
2
  import DefaultIconsSFUI from "./storefront/defaultIconsStorefront";
3
3
  import DefaultConfigSFUI from "./storefront/defaultSettingsStorefront";
4
+ import DefaultSharedSettingsConfig from "./storefront/defaultSharedSettings";
4
5
  import DefaultThemeSFUI, { globalTheme, DefaultThemeColors } from "./storefront/defaultThemeStorefront";
5
6
  import DefaultConfigSTS from "./sts/defaultSettingsSts";
6
7
  import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./storefront/SFUISettingsTemplate.AdminUi";
@@ -13,7 +14,7 @@ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplat
13
14
  import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
14
15
  import { IDefaultRetailerSettingsVersion2 } from "./interfaces/default-settings.interfaces";
15
16
  import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
16
- import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, 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 } from "./interfaces/retailer-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";
17
18
  import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./interfaces/icons.interfaces";
18
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";
19
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,12 +22,17 @@ import { CMSComponentNames, CMSNames } from "./storefront/contentEngineComponent
21
22
  import { ProductAttributes, ProductAttrToIcons } from "./storefront/productBadgeAttributes";
22
23
  /** MOBILE */
23
24
  import { IMobileSettings } from "./mobile/interfaces/mobile-retailer-settings.interfaces";
25
+ import { MobileDefaultSettings } from "./mobile/reactnative/MobileDefaultSettings";
24
26
  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, };
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, };
26
31
  export { CMSComponentNames, CMSNames };
27
32
  export { ProductAttrToIcons, ProductAttributes };
28
- export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
33
+ export { ITypesOfBusiness, IBusinessAccountObject };
34
+ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSharedSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
29
35
  export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
30
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, };
31
37
  export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
32
- export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, 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, };
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 CHANGED
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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
4
  var defaultImagesStorefront_1 = require("./storefront/defaultImagesStorefront");
5
5
  exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
6
6
  var defaultIconsStorefront_1 = require("./storefront/defaultIconsStorefront");
7
7
  exports.DefaultIconsSFUI = defaultIconsStorefront_1.default;
8
8
  var defaultSettingsStorefront_1 = require("./storefront/defaultSettingsStorefront");
9
9
  exports.DefaultConfigSFUI = defaultSettingsStorefront_1.default;
10
+ var defaultSharedSettings_1 = require("./storefront/defaultSharedSettings");
11
+ exports.DefaultSharedSettingsConfig = defaultSharedSettings_1.default;
10
12
  var defaultThemeStorefront_1 = require("./storefront/defaultThemeStorefront");
11
13
  exports.DefaultThemeSFUI = defaultThemeStorefront_1.default;
12
14
  Object.defineProperty(exports, "globalTheme", { enumerable: true, get: function () { return defaultThemeStorefront_1.globalTheme; } });
@@ -31,5 +33,9 @@ var contentEngineComponents_1 = require("./storefront/contentEngineComponents");
31
33
  Object.defineProperty(exports, "CMSComponentNames", { enumerable: true, get: function () { return contentEngineComponents_1.CMSComponentNames; } });
32
34
  var productBadgeAttributes_1 = require("./storefront/productBadgeAttributes");
33
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; } });
34
38
  var MobileSettingsTemplate_AdminUi_1 = require("./mobile/reactnative/MobileSettingsTemplate.AdminUi");
35
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; } });
@@ -1,4 +1,4 @@
1
- import { IDefaultCounty, IValidationType, LinkTarget } from "./retailer-settings.interfaces";
1
+ import { IDefaultCounty, IDefaultExternal, IValidationType, LinkTarget } from "./retailer-settings.interfaces";
2
2
  import { IDefaultColors, IDefaultThemeInterface } from "./default-theme.interface";
3
3
  import { IDefaultRetailerSettingsVersion2 } from "./default-settings.interfaces";
4
4
  import { IThemeImages } from "./theme.interfaces";
@@ -9,10 +9,10 @@ export declare type ITemplateObject<T> = {
9
9
  [key in keyof T]: IAdminControl<Flatten<T[key]>>;
10
10
  };
11
11
  declare type Flatten<Type> = Type extends Array<infer Item> ? Item : Type;
12
- declare type IPartialKeys<T> = {
12
+ export declare type IPartialKeys<T> = {
13
13
  [key in keyof T]: Partial<T[key]>;
14
14
  };
15
- declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal">>;
15
+ declare type IAdminAvailableSettings = IPartialKeys<Pick<IDefaultRetailerSettingsVersion2, "adminPanelOnly" | "features" | "siteSettings" | "welcomeModal" | "accountPage" | "pdpSettings">>;
16
16
  /** ===== */
17
17
  export interface IMessageProps {
18
18
  caption?: string | string[];
@@ -32,21 +32,31 @@ export interface IAdminControl<T> {
32
32
  group?: IAdminGroupType;
33
33
  message?: IMessageProps;
34
34
  helpLink?: string;
35
- options?: string[] | number[] | IDefaultCounty[] | IValidationType[] | LinkTarget;
35
+ options?: string[] | number[] | Object[] | IDefaultCounty[] | IValidationType[] | IImageRequiredFormat | LinkTarget | NumberRange;
36
+ uniqueOptions?: IDefaultExternal["provider"][];
36
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[];
37
47
  }
38
48
  export interface IAdminGroupType {
39
49
  id: number;
40
50
  name: string;
41
51
  }
42
- export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string" | "array";
52
+ export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string" | "array" | "storeSelection";
43
53
  export interface IAdminSettingsTemplateSTS {
44
54
  hasEUTerms: IAdminControl<boolean>;
45
55
  hasTwoStepRegistration: IAdminControl<boolean>;
46
56
  customTermPolicy: IAdminControl<string>;
47
57
  gtmId: IAdminControl<string>;
48
58
  }
49
- export declare type IAdminImagesTemplateSTS = ITemplateObject<IPartialKeys<Pick<IThemeImages, "logos" | "stsCheckBox" | "stsFavicon">>>;
59
+ export declare type IAdminImagesTemplateSTS = ITemplateObject<IPartialKeys<Pick<IThemeImages, "logos" | "stsCheckBox" | "stsFavicon" | "banner">>>;
50
60
  export declare type IAdminImagesTemplateSFUI = ITemplateObject<IPartialKeys<IThemeImages>>;
51
61
  export declare type IAdminThemeTemplateSFUI = ITemplateObject<IPartialKeys<Pick<IDefaultThemeInterface, "colors">>>;
52
62
  export interface IAdminThemeTemplateOptions {
@@ -1,82 +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, IWelcomeModalV2 } 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
- enableNewFacetView: boolean;
32
- enableNewsletterSignup: boolean;
33
- enableNotifications: 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
- }
1
+ import { IAccountPageV2, IAddressesSettingsV2, IAdminOnlyV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IWelcomeModalV2, IPerformanceSettingsV2, IIntegrationSettings } from "./retailer-settings.interfaces";
80
2
  export interface IDefaultRetailerSettingsVersion2 {
81
3
  accountPage: IAccountPageV2;
82
4
  addressSettings: IAddressesSettingsV2;
@@ -88,4 +10,6 @@ export interface IDefaultRetailerSettingsVersion2 {
88
10
  productCard: IProductCardSettingsV2;
89
11
  siteSettings: ISiteSettingsV2;
90
12
  welcomeModal: IWelcomeModalV2[];
13
+ performance: IPerformanceSettingsV2;
14
+ integrations: IIntegrationSettings;
91
15
  }
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //IAddressIntegration
@@ -54,6 +54,10 @@ export interface IDefaultThemeImages {
54
54
  };
55
55
  verifySiteImage: string;
56
56
  favicons: IDefaultThemeFavicons;
57
+ banner: {
58
+ src: string;
59
+ alt: string;
60
+ };
57
61
  }
58
62
  export interface IDefaultThemeInterface {
59
63
  colors: {
@@ -148,6 +152,10 @@ export interface IDefaultThemeInterface {
148
152
  color: string;
149
153
  bgColor: string;
150
154
  };
155
+ cartCurrency: {
156
+ color: string;
157
+ bgColor: string;
158
+ };
151
159
  };
152
160
  notifications: {
153
161
  counter: {
@@ -443,6 +451,16 @@ export interface IDefaultThemeInterface {
443
451
  focus: IInputFields;
444
452
  disabled: IInputFields;
445
453
  };
454
+ dropdown: {
455
+ iconColor: string;
456
+ static: IDropdownFields;
457
+ hover: IDropdownFields;
458
+ open: IDropdownFields;
459
+ options: {
460
+ static: IDropdownFields;
461
+ hover: IDropdownFields;
462
+ };
463
+ };
446
464
  productGrid: {
447
465
  borderColor: string;
448
466
  };
@@ -451,6 +469,17 @@ export interface IDefaultThemeInterface {
451
469
  default?: string;
452
470
  disabled?: string;
453
471
  };
472
+ cms: {
473
+ heading: {
474
+ color: string;
475
+ };
476
+ subheading: {
477
+ color: string;
478
+ };
479
+ bodyText: {
480
+ color: string;
481
+ };
482
+ };
454
483
  logoHeight: IDefaultThemeLogoHeights;
455
484
  stsThemeStyles?: ISTSDefaultThemeInterface;
456
485
  stsLogoWidth?: string;
@@ -484,6 +513,11 @@ interface IInputFields {
484
513
  color: string;
485
514
  placeholderColor: string;
486
515
  }
516
+ interface IDropdownFields {
517
+ bgColor: string;
518
+ borderColor: string;
519
+ color: string;
520
+ }
487
521
  interface ICouponClippedBtnColorType extends IQSButtonColorType {
488
522
  clippedIconColor: string;
489
523
  }
@@ -2,6 +2,7 @@ export declare type IIconsObject = {
2
2
  [iconName in IconNames]: string;
3
3
  };
4
4
  export declare type PaymentTypesLogos = "AmExpCard" | "AmExpLogo" | "Comodo" | "DiscoverCard" | "DiscoverLogo" | "MasterLogo" | "MasterSecure" | "VisaLogo" | "VisaVerified";
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" | "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
- 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";
5
+ export declare type PaymentCards = "AmExpCard" | "ApplePay" | "DiscoverCard" | "EBT" | "PayPal" | "GooglePay" | "MasterCard" | "MasterCardDebit" | "VisaCard" | "Paze";
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;
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";
8
+ export declare type LanguageFlags = "en-au" | "en-ca" | "en-gb" | "en-ie" | "en-us" | "es-es" | "es-mx" | "es-us" | "fr-ca";