@thryveai/theme-interfaces 2.1.1 → 2.2.2

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 (32) hide show
  1. package/dist/index.d.ts +16 -11
  2. package/dist/index.js +9 -3
  3. package/dist/interfaces/admin-images-interfaces.d.ts +11 -0
  4. package/dist/interfaces/admin-images-interfaces.js +2 -0
  5. package/dist/interfaces/admin-settings-interfaces.d.ts +10 -1
  6. package/dist/storefront/SFUIImagesTemplate.AdminUi.d.ts +2 -0
  7. package/dist/storefront/SFUIImagesTemplate.AdminUi.js +112 -0
  8. package/dist/{Storefront → storefront}/SFUISettingsTemplate.AdminUi.d.ts +0 -0
  9. package/dist/{Storefront → storefront}/SFUISettingsTemplate.AdminUi.js +1 -0
  10. package/dist/storefront/defaultImagesStorefront.d.ts +3 -0
  11. package/dist/storefront/defaultImagesStorefront.js +96 -0
  12. package/dist/{Storefront → storefront}/defaultSettingsStorefront.d.ts +1 -1
  13. package/dist/storefront/defaultSettingsStorefront.js +242 -0
  14. package/dist/sts/STSImagesTemplate.AdminUi.d.ts +2 -0
  15. package/dist/sts/STSImagesTemplate.AdminUi.js +50 -0
  16. package/dist/sts/STSSettingsTemplate.AdminUi.js +1 -1
  17. package/package.json +1 -1
  18. package/dist/SFUISettingsTemplate.AdminUi.d.ts +0 -3
  19. package/dist/SFUISettingsTemplate.AdminUi.js +0 -686
  20. package/dist/STSSettingsTemplate.AdminUi.d.ts +0 -2
  21. package/dist/STSSettingsTemplate.AdminUi.js +0 -94
  22. package/dist/Storefront/defaultSettingsStorefront.js +0 -242
  23. package/dist/defaultSettings.d.ts +0 -3
  24. package/dist/defaultSettings.js +0 -242
  25. package/dist/defaultSettingsStorefront.d.ts +0 -3
  26. package/dist/defaultSettingsStorefront.js +0 -242
  27. package/dist/defaultSettingsSts.d.ts +0 -2
  28. package/dist/defaultSettingsSts.js +0 -8
  29. package/dist/interfaces/index.d.ts +0 -11
  30. package/dist/interfaces/index.js +0 -5
  31. package/dist/storefrontUiSettingsTemplateForAdminPanel.d.ts +0 -3
  32. package/dist/storefrontUiSettingsTemplateForAdminPanel.js +0 -686
package/dist/index.d.ts CHANGED
@@ -1,17 +1,22 @@
1
- import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
2
- import { IDefaultRetailerSettings } from "./interfaces/default-settings.interfaces";
3
- import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
4
- import DefaultConfigSFUI from "./Storefront/defaultSettingsStorefront";
1
+ import DefaultImagesSFUI from './storefront/defaultImagesStorefront';
2
+ import DefaultConfigSFUI from "./storefront/defaultSettingsStorefront";
5
3
  import DefaultConfigSTS from "./sts/defaultSettingsSts";
6
- import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./Storefront/SFUISettingsTemplate.AdminUi";
4
+ import { AdminTemplateInputTypes, AdminSettingsTemplateSFUI } from "./storefront/SFUISettingsTemplate.AdminUi";
7
5
  import { AdminSettingsTemplateSTS } from "./sts/STSSettingsTemplate.AdminUi";
6
+ import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi";
7
+ import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
8
+ import { IconNamesToFiles } from "./interfaces/icons.interfaces";
9
+ import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType } from "./interfaces/admin-settings-interfaces";
10
+ import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
11
+ import { IDefaultRetailerSettings } from "./interfaces/default-settings.interfaces";
12
+ import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
8
13
  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 } from "./interfaces/retailer-settings.interfaces";
9
- import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./interfaces/icons.interfaces";
14
+ import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./interfaces/icons.interfaces";
10
15
  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";
11
16
  import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, IIconPosition } from "./interfaces/default-theme.interface";
12
- export { DefaultConfigSFUI, DefaultConfigSTS, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes };
13
- export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, };
17
+ export { DefaultConfigSFUI, DefaultConfigSTS, DefaultImagesSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminImagesTemplateSTS, IconNamesToFiles };
18
+ export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminImagesControls, ISecondaryFaviconType };
14
19
  export { IDefaultRetailerSettings, IDefaultStsSettings };
15
- export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, 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 };
16
- export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
17
- 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, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData };
20
+ export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, 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, };
21
+ export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, };
22
+ 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, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, };
package/dist/index.js CHANGED
@@ -1,14 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconNamesToFiles = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
4
- var defaultSettingsStorefront_1 = require("./Storefront/defaultSettingsStorefront");
3
+ exports.IconNamesToFiles = exports.AdminImagesTemplateSTS = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultImagesSFUI = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
4
+ var defaultImagesStorefront_1 = require("./storefront/defaultImagesStorefront");
5
+ exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
6
+ var defaultSettingsStorefront_1 = require("./storefront/defaultSettingsStorefront");
5
7
  exports.DefaultConfigSFUI = defaultSettingsStorefront_1.default;
6
8
  var defaultSettingsSts_1 = require("./sts/defaultSettingsSts");
7
9
  exports.DefaultConfigSTS = defaultSettingsSts_1.default;
8
- var SFUISettingsTemplate_AdminUi_1 = require("./Storefront/SFUISettingsTemplate.AdminUi");
10
+ var SFUISettingsTemplate_AdminUi_1 = require("./storefront/SFUISettingsTemplate.AdminUi");
9
11
  Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes; } });
10
12
  Object.defineProperty(exports, "AdminSettingsTemplateSFUI", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminSettingsTemplateSFUI; } });
11
13
  var STSSettingsTemplate_AdminUi_1 = require("./sts/STSSettingsTemplate.AdminUi");
12
14
  Object.defineProperty(exports, "AdminSettingsTemplateSTS", { enumerable: true, get: function () { return STSSettingsTemplate_AdminUi_1.AdminSettingsTemplateSTS; } });
15
+ var SFUIImagesTemplate_AdminUi_1 = require("./storefront/SFUIImagesTemplate.AdminUi");
16
+ Object.defineProperty(exports, "AdminImagesTemplateSFUI", { enumerable: true, get: function () { return SFUIImagesTemplate_AdminUi_1.AdminImagesTemplateSFUI; } });
17
+ var STSImagesTemplate_AdminUi_1 = require("./sts/STSImagesTemplate.AdminUi");
18
+ Object.defineProperty(exports, "AdminImagesTemplateSTS", { enumerable: true, get: function () { return STSImagesTemplate_AdminUi_1.AdminImagesTemplateSTS; } });
13
19
  var icons_interfaces_1 = require("./interfaces/icons.interfaces");
14
20
  Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
@@ -0,0 +1,11 @@
1
+ export interface IAdminImagesControls {
2
+ title: string;
3
+ hasImage: boolean;
4
+ helpLink: string | null;
5
+ isArray?: boolean;
6
+ }
7
+ export interface ISecondaryFaviconType {
8
+ rel: string;
9
+ sizes: string;
10
+ href: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -58,10 +58,19 @@ export interface IAdminControl {
58
58
  [key: string]: IAdminControl;
59
59
  };
60
60
  }
61
- export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "string";
61
+ export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "images" | "string";
62
62
  export interface IAdminSettingsTemplateSTS {
63
63
  hasEUTerms: IAdminControl;
64
64
  hasTwoStepRegistration: IAdminControl;
65
65
  customTermPolicy: IAdminControl;
66
66
  gtmId: IAdminControl;
67
67
  }
68
+ export declare type IAdminImagesTemplateSTS = {
69
+ [key in IAdminImagesKeysSTS]: IAdminControl;
70
+ };
71
+ export declare type IAdminImagesTemplateSFUI = {
72
+ [key in IAdminImagesKeys]: IAdminControl;
73
+ };
74
+ declare type IAdminImagesKeysSTS = "logos" | "stsCheckBox" | "stsFavicon";
75
+ declare type IAdminImagesKeys = "icons" | "logos" | "confirmationPageImage" | "stsCheckBox" | "stsFavicon" | "favicon" | "rewards" | "verifySiteImage" | "missingImg";
76
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IAdminImagesTemplateSFUI } from "../interfaces/admin-settings-interfaces";
2
+ export declare const AdminImagesTemplateSFUI: IAdminImagesTemplateSFUI;
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminImagesTemplateSFUI = void 0;
4
+ var SFUISettingsTemplate_AdminUi_1 = require("./SFUISettingsTemplate.AdminUi");
5
+ exports.AdminImagesTemplateSFUI = {
6
+ icons: {
7
+ title: "Icons Files",
8
+ description: "The location of the file that contains all the icons.",
9
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.inputChar,
10
+ },
11
+ favicon: {
12
+ title: "Favicon Image",
13
+ description: "The favicon used by the Storefront and most other applications",
14
+ type: "inputChar",
15
+ },
16
+ logos: {
17
+ title: "Logos",
18
+ description: "",
19
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
20
+ value: {
21
+ primary: {
22
+ title: "Main Logo",
23
+ description: "This is the logo used on desktop in the storefront and most other apps",
24
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
25
+ },
26
+ primaryMobile: {
27
+ title: "Mobile Logo",
28
+ description: "This is the logo used on mobile in the storefront and most other apps",
29
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
30
+ },
31
+ sts: {
32
+ title: "STS Logo",
33
+ description: "This is the logo used on desktop in the sts app",
34
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
35
+ },
36
+ stsMobile: {
37
+ title: "STS Mobile Logo",
38
+ description: "This is the logo used on mobile in the sts app",
39
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
40
+ },
41
+ },
42
+ },
43
+ stsFavicon: {
44
+ title: "STS Favicon Image",
45
+ description: "The favicon used by the STS application",
46
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
47
+ },
48
+ stsCheckBox: {
49
+ title: "stsCheckBox",
50
+ description: "",
51
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
52
+ value: {
53
+ primary: {
54
+ title: "STS Primary Checkbox",
55
+ description: "This is the logo used on desktop in the storefront and most other apps",
56
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
57
+ },
58
+ empty: {
59
+ title: "STS Empty Checkbox",
60
+ description: "This is the logo used on mobile in the storefront and most other apps",
61
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
62
+ },
63
+ success: {
64
+ title: "STS Success Checkbox",
65
+ description: "This is the logo used on desktop in the sts app",
66
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
67
+ },
68
+ },
69
+ },
70
+ confirmationPageImage: {
71
+ title: "Confirmation Page Background Image",
72
+ description: "The background image used on the top of the order confirmation page",
73
+ type: "images",
74
+ },
75
+ rewards: {
76
+ title: "Rewards Image",
77
+ description: "",
78
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
79
+ },
80
+ verifySiteImage: {
81
+ title: "Verify Site Image",
82
+ description: "",
83
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
84
+ },
85
+ missingImg: {
86
+ title: "missingImg",
87
+ description: "",
88
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
89
+ value: {
90
+ x2: {
91
+ title: "Missing Image 2X",
92
+ description: "T ",
93
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
94
+ },
95
+ x3: {
96
+ title: "Missing Image 3X",
97
+ description: "This is the logo used on mobile in the storefront and most other apps",
98
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
99
+ },
100
+ square: {
101
+ title: "Missing Image Square",
102
+ description: "This is the logo used on desktop in the sts app",
103
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
104
+ },
105
+ recipes: {
106
+ title: "Missing Image Recipes",
107
+ description: "This is the logo used on desktop in the sts app",
108
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
109
+ },
110
+ },
111
+ },
112
+ };
@@ -11,6 +11,7 @@ exports.AdminTemplateInputTypes = {
11
11
  multiDropdown: "multiDropdown",
12
12
  nullObject: "nullObject",
13
13
  object: "object",
14
+ images: "images",
14
15
  string: "string",
15
16
  };
16
17
  var addressValidationDescription = "Sets the validation types for user addresses";
@@ -0,0 +1,3 @@
1
+ import { IDefaultThemeImages } from "../interfaces/default-theme.interface";
2
+ declare const DefaultImagesSFUI: IDefaultThemeImages;
3
+ export default DefaultImagesSFUI;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var imageBucket = "https://www";
4
+ var DefaultImagesSFUI = {
5
+ icons: "".concat(imageBucket, "/icons.js"),
6
+ logos: {
7
+ primary: "".concat(imageBucket, "/img/primary-logo.png"),
8
+ primaryMobile: "".concat(imageBucket, "/img/primary-logo.png"),
9
+ sts: "".concat(imageBucket, "/img/primary-logo.png"),
10
+ stsMobile: "".concat(imageBucket, "/img/primary-logo.png"),
11
+ },
12
+ confirmationPageImage: "".concat(imageBucket, "/img/CheckoutConfirmation_DesktopBG.png"),
13
+ stsCheckBox: {
14
+ primary: "".concat(imageBucket, "/img/select-check_p1.png"),
15
+ empty: "".concat(imageBucket, "/img/select-empty.png"),
16
+ success: "".concat(imageBucket, "/img/select-check_success.png"),
17
+ },
18
+ favicon: "".concat(imageBucket, "/img/mi9-favicon.ico"),
19
+ stsFavicon: "".concat(imageBucket, "/img/mi9-favicon.ico"),
20
+ rewards: "".concat(imageBucket, "/img/rewards-logo.svg"),
21
+ missingImg: {
22
+ recipes: "".concat(imageBucket, "/img/missing-Image-Recipe.svg"),
23
+ x2: "".concat(imageBucket, "/img/missing-Image-SquareX2.svg"),
24
+ x3: "".concat(imageBucket, "/img/missing-Image-SquareX3.svg"),
25
+ square: "".concat(imageBucket, "/img/missing-Image-Square.svg"),
26
+ },
27
+ verifySiteImage: "".concat(imageBucket, "/img/verify-footer-image.png"),
28
+ favicons: [
29
+ {
30
+ rel: "apple-touch-icon",
31
+ sizes: "57x57",
32
+ href: "".concat(imageBucket, "/favicons/apple-icon-57x57.png"),
33
+ },
34
+ {
35
+ rel: "apple-touch-icon",
36
+ sizes: "60x60",
37
+ href: "".concat(imageBucket, "/favicons/apple-icon-60x60.png"),
38
+ },
39
+ {
40
+ rel: "apple-touch-icon",
41
+ sizes: "72x72",
42
+ href: "".concat(imageBucket, "/favicons/apple-icon-72x72.png"),
43
+ },
44
+ {
45
+ rel: "apple-touch-icon",
46
+ sizes: "76x76",
47
+ href: "".concat(imageBucket, "/favicons/apple-icon-76x76.png"),
48
+ },
49
+ {
50
+ rel: "apple-touch-icon",
51
+ sizes: "114x114",
52
+ href: "".concat(imageBucket, "/favicons/apple-icon-114x114.png"),
53
+ },
54
+ {
55
+ rel: "apple-touch-icon",
56
+ sizes: "120x120",
57
+ href: "".concat(imageBucket, "/favicons/apple-icon-120x120.png"),
58
+ },
59
+ {
60
+ rel: "apple-touch-icon",
61
+ sizes: "144x144",
62
+ href: "".concat(imageBucket, "/favicons/apple-icon-144x144.png"),
63
+ },
64
+ {
65
+ rel: "apple-touch-icon",
66
+ sizes: "152x152",
67
+ href: "".concat(imageBucket, "/favicons/apple-icon-152x152.png"),
68
+ },
69
+ {
70
+ rel: "apple-touch-icon",
71
+ sizes: "180x180",
72
+ href: "".concat(imageBucket, "/favicons/apple-icon-180x180.png"),
73
+ },
74
+ {
75
+ rel: "icon",
76
+ sizes: "192x192",
77
+ href: "".concat(imageBucket, "/favicons/android-icon-192x192.png"),
78
+ },
79
+ {
80
+ rel: "icon",
81
+ sizes: "32x32",
82
+ href: "".concat(imageBucket, "/favicons/favicon-32x32.png"),
83
+ },
84
+ {
85
+ rel: "icon",
86
+ sizes: "96x96",
87
+ href: "".concat(imageBucket, "/favicons/favicon-96x96.png"),
88
+ },
89
+ {
90
+ rel: "icon",
91
+ sizes: "16x16",
92
+ href: "".concat(imageBucket, "/favicons/favicon-16x16.png"),
93
+ },
94
+ ],
95
+ };
96
+ exports.default = DefaultImagesSFUI;
@@ -1,3 +1,3 @@
1
- import { IDefaultRetailerSettings } from '../interfaces/default-settings.interfaces';
1
+ import { IDefaultRetailerSettings } from "../interfaces/default-settings.interfaces";
2
2
  declare const DefaultConfigSFUI: IDefaultRetailerSettings;
3
3
  export default DefaultConfigSFUI;
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var DefaultConfigSFUI = {
4
+ advertSettings: {},
5
+ timeslotModalSettings: {
6
+ showOnAddToCart: false,
7
+ timeslotRequiredToAddToCart: false,
8
+ timeslotRequiredToViewCartReview: false,
9
+ },
10
+ accountPage: {
11
+ loyaltyTab: {
12
+ disabledEdit: false,
13
+ enabled: false,
14
+ loyaltyNumberLength: 11,
15
+ loyaltyNumberPrefix: "",
16
+ loyaltyValidationType: [],
17
+ },
18
+ },
19
+ addresses: {
20
+ addressValidationTypes: {
21
+ addressLine1: ["alphaNumeric", "required"],
22
+ addressLine2: ["alphaNumeric"],
23
+ city: ["alphaNumeric", "required"],
24
+ countyProvinceState: ["usState", "required"],
25
+ familyName: ["alphaOnly", "required"],
26
+ firstName: ["alphaOnly", "required"],
27
+ instructions: ["alphaNumeric"],
28
+ phoneNumber: ["usPhone", "required"],
29
+ postCode: ["usPostCode", "required"],
30
+ },
31
+ canadianAddressCompleteKey: undefined,
32
+ eircodeUrl: undefined,
33
+ integration: {
34
+ addNewAddressUrl: undefined,
35
+ deleteAddressUrl: undefined,
36
+ editAddressUrl: undefined,
37
+ },
38
+ useAddressValidation: true,
39
+ },
40
+ addressValidationTypes: {
41
+ addressLine1: ["alphaNumeric", "required"],
42
+ addressLine2: ["alphaNumeric"],
43
+ city: ["alphaNumeric", "required"],
44
+ countyProvinceState: ["usState", "required"],
45
+ familyName: ["alphaOnly", "required"],
46
+ firstName: ["alphaOnly", "required"],
47
+ instructions: ["alphaNumeric"],
48
+ phoneNumber: ["usPhone", "required"],
49
+ postCode: ["usPostCode", "required"],
50
+ },
51
+ addressIntegration: {
52
+ enabled: false,
53
+ addressFinderType: "AUS",
54
+ getAddressesUrl: "https://api.addressfinder.io/api/au/address/autocomplete/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&q={searchQuery}&format=json&gnaf=1",
55
+ getLocationUrl: "https://api.addressfinder.io/api/au/address/metadata/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&format=json&id={id}&au_paf=0&gps=0",
56
+ },
57
+ allowInStorePurchases: false,
58
+ allowPastPurchases: true,
59
+ buildNumber: "default",
60
+ cacheTimeMins: 1,
61
+ canadianAddressCompleteKey: undefined,
62
+ checkoutV1: false,
63
+ disableAddressOnDelivery: false,
64
+ favoritesV1: false,
65
+ checkout: {
66
+ numericPhonePayload: false,
67
+ },
68
+ checkoutValidation: {
69
+ instructions: ["alphaNumeric", "notWhiteSpacesOnly"],
70
+ phoneNumber: ["usPhone", "required"],
71
+ smsNumber: [],
72
+ },
73
+ ctaButtons: null,
74
+ defaultCountry: "USA",
75
+ defaultSearchParams: {
76
+ page: "1",
77
+ q: "*",
78
+ skip: "0",
79
+ take: "30",
80
+ },
81
+ defaultShoppingMode: "pickup",
82
+ defaultStoreLocation: {
83
+ latitude: 0,
84
+ longitude: 0,
85
+ },
86
+ disableTprPrice: false,
87
+ documentTitle: "ThryveAI Commerce",
88
+ eircode: undefined,
89
+ enable3dSecure: false,
90
+ enableGoogleTranslate: false,
91
+ enableNewsletterSignup: false,
92
+ enableNotifications: false,
93
+ enableVouchers: false,
94
+ errorLoggingLevel: "error",
95
+ externalStoreSelectorUrl: undefined,
96
+ flipp: null,
97
+ gtmId: undefined,
98
+ hideTaxOnSummary: false,
99
+ houseAccountRegExValidation: ".",
100
+ idpTarget: "_self",
101
+ idpUrl: undefined,
102
+ instacartUrl: undefined,
103
+ isPlanningOnly: false,
104
+ layout: {
105
+ footerVersion: "default",
106
+ },
107
+ limitProductCardTitleHeight: true,
108
+ loggingLevelClient: "error",
109
+ loggingLevelServer: "error",
110
+ mainHeaderHeight: 110,
111
+ mapZoom: 8,
112
+ minimumCreditCardAmount: 1.0,
113
+ nutritionZone: "us",
114
+ paymentCards: {
115
+ AmExpCard: true,
116
+ DiscoverCard: true,
117
+ MasterCard: true,
118
+ VisaCard: true,
119
+ },
120
+ pdpDetailsLayout: {
121
+ desktop: {
122
+ left: [
123
+ "productSalesInfo",
124
+ "productDescription",
125
+ "productIngredients",
126
+ "productNutrition",
127
+ "sodiumWarning",
128
+ "productNumber",
129
+ ],
130
+ right: ["recommendations"],
131
+ },
132
+ mobile: {
133
+ left: [
134
+ "productSalesInfo",
135
+ "productDescription",
136
+ "productNumber",
137
+ "sodiumWarning",
138
+ "recommendations",
139
+ ],
140
+ right: [
141
+ "productIngredients",
142
+ "productNutrition",
143
+ "recommendations",
144
+ "productNumber",
145
+ ],
146
+ },
147
+ },
148
+ productCardTitleHeight: 40,
149
+ registrationFields: [],
150
+ retailerCountry: "us",
151
+ retailerName: "default",
152
+ daysToRemainSignedIn: 30,
153
+ searchPreview: {
154
+ desktop: {
155
+ products: true,
156
+ suggestions: true,
157
+ },
158
+ mobile: {
159
+ products: true,
160
+ suggestions: true,
161
+ },
162
+ },
163
+ secondTierAuthorization: undefined,
164
+ showCheckoutPromoCode: true,
165
+ showImgOnOrder: false,
166
+ smsNotifications: {
167
+ enabled: false,
168
+ getEnrollmentUrl: "",
169
+ postEnrollmentUrl: "",
170
+ },
171
+ subHeaderHeight: 0,
172
+ promoTemplateVersion: 1,
173
+ useAddressValidation: true,
174
+ restrictMapPlacesResults: {
175
+ fetchNearStoresSettings: {
176
+ kmRange: 20,
177
+ totalTake: 30,
178
+ },
179
+ },
180
+ globalAnimations: {
181
+ confetti: {
182
+ enableConfettiAnimation: true,
183
+ },
184
+ },
185
+ googleAutocompleteSettings: {},
186
+ smartbanner: {
187
+ enabled: false,
188
+ author: "",
189
+ button: "",
190
+ buttonUrlApple: "",
191
+ buttonUrlGoogle: "",
192
+ closeLabel: "",
193
+ iconApple: "",
194
+ iconGoogle: "",
195
+ price: "",
196
+ priceSuffixApple: "",
197
+ priceSuffixGoogle: "",
198
+ title: "",
199
+ },
200
+ features: { clientCache: false },
201
+ specialRequestItems: false,
202
+ additionalCharges: false,
203
+ sodiumWarning: {
204
+ isEnabled: false,
205
+ threshold: 2300,
206
+ },
207
+ productCards: {
208
+ gridRowLength: {
209
+ tablet: 3,
210
+ desktop: 5,
211
+ mobile: 1,
212
+ },
213
+ carouselsRowLength: {
214
+ desktop: 6,
215
+ tablet: 4,
216
+ mobile: 1,
217
+ },
218
+ productCard: {
219
+ enabled: false,
220
+ layouts: {
221
+ ContainersGrid: "default",
222
+ ContainersCarousel: "default",
223
+ },
224
+ },
225
+ },
226
+ layouts: {
227
+ cartSummary: {
228
+ showTaxTotal: true,
229
+ showTaxGroups: true,
230
+ },
231
+ couponGallery: {
232
+ enabled: false,
233
+ galleryIsIframe: false,
234
+ },
235
+ },
236
+ adminPanelOnly: {
237
+ bannerName: "",
238
+ logoUrl: "",
239
+ },
240
+ productCardv2: false,
241
+ };
242
+ exports.default = DefaultConfigSFUI;
@@ -0,0 +1,2 @@
1
+ import { IAdminImagesTemplateSTS } from "../interfaces/admin-settings-interfaces";
2
+ export declare const AdminImagesTemplateSTS: IAdminImagesTemplateSTS;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminImagesTemplateSTS = void 0;
4
+ var SFUISettingsTemplate_AdminUi_1 = require("../storefront/SFUISettingsTemplate.AdminUi");
5
+ exports.AdminImagesTemplateSTS = {
6
+ logos: {
7
+ title: "Logos",
8
+ description: "",
9
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
10
+ value: {
11
+ sts: {
12
+ title: "STS Logo",
13
+ description: "This is the logo used on desktop in the sts app",
14
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
15
+ },
16
+ stsMobile: {
17
+ title: "STS Mobile Logo",
18
+ description: "This is the logo used on mobile in the sts app",
19
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
20
+ },
21
+ },
22
+ },
23
+ stsFavicon: {
24
+ title: "STS Favicon Image",
25
+ description: "The favicon used by the STS application",
26
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
27
+ },
28
+ stsCheckBox: {
29
+ title: "stsCheckBox",
30
+ description: "",
31
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.object,
32
+ value: {
33
+ primary: {
34
+ title: "STS Primary Checkbox",
35
+ description: "This is the logo used on desktop in the storefront and most other apps",
36
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
37
+ },
38
+ empty: {
39
+ title: "STS Empty Checkbox",
40
+ description: "This is the logo used on mobile in the storefront and most other apps",
41
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
42
+ },
43
+ success: {
44
+ title: "STS Success Checkbox",
45
+ description: "This is the logo used on desktop in the sts app",
46
+ type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.images,
47
+ },
48
+ },
49
+ },
50
+ };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AdminSettingsTemplateSTS = void 0;
4
- var SFUISettingsTemplate_AdminUi_1 = require("../Storefront/SFUISettingsTemplate.AdminUi");
4
+ var SFUISettingsTemplate_AdminUi_1 = require("../storefront/SFUISettingsTemplate.AdminUi");
5
5
  exports.AdminSettingsTemplateSTS = {
6
6
  hasEUTerms: {
7
7
  title: 'Has Eu Terms',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.1.1",
3
+ "version": "2.2.2",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",