@thryveai/theme-interfaces 2.0.3 → 2.2.0
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/README.md +29 -29
- package/dist/SFUISettingsTemplate.AdminUi.d.ts +3 -0
- package/dist/SFUISettingsTemplate.AdminUi.js +686 -0
- package/dist/STSSettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/STSSettingsTemplate.AdminUi.js +94 -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 +3 -0
- package/dist/Storefront/SFUISettingsTemplate.AdminUi.js +687 -0
- package/dist/Storefront/defaultImagesStorefront.d.ts +3 -0
- package/dist/Storefront/defaultImagesStorefront.js +96 -0
- package/dist/Storefront/defaultSettingsStorefront.d.ts +3 -0
- package/dist/Storefront/defaultSettingsStorefront.js +242 -0
- package/dist/defaultSettings.js +1 -1
- package/dist/defaultSettingsStorefront.d.ts +3 -0
- package/dist/defaultSettingsStorefront.js +242 -0
- package/dist/defaultSettingsSts.d.ts +2 -0
- package/dist/defaultSettingsSts.js +8 -0
- package/dist/index.d.ts +15 -8
- package/dist/index.js +16 -6
- 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 +16 -1
- package/dist/interfaces/default-theme.interface.d.ts +2 -0
- package/dist/interfaces/index.d.ts +11 -0
- package/dist/interfaces/index.js +5 -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 +2 -0
- package/dist/sts/STSImagesTemplate.AdminUi.d.ts +2 -0
- package/dist/sts/STSImagesTemplate.AdminUi.js +50 -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/package.json +18 -18
package/dist/index.js
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IconNamesToFiles = exports.AdminTemplateInputTypes = exports.
|
|
4
|
-
var
|
|
5
|
-
exports.
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
exports.IconNamesToFiles = exports.AdminImagesTemplateSTS = exports.AdminImagesTemplateSFUI = exports.AdminTemplateInputTypes = exports.AdminSettingsTemplateSTS = exports.AdminSettingsTemplateSFUI = exports.DefaultImagesSFUI = exports.DefaultConfigSTS = exports.DefaultConfigSFUI = void 0;
|
|
4
|
+
var defaultSettingsStorefront_1 = require("./Storefront/defaultSettingsStorefront");
|
|
5
|
+
exports.DefaultConfigSFUI = defaultSettingsStorefront_1.default;
|
|
6
|
+
var defaultImagesStorefront_1 = require("./Storefront/defaultImagesStorefront");
|
|
7
|
+
exports.DefaultImagesSFUI = defaultImagesStorefront_1.default;
|
|
8
|
+
var defaultSettingsSts_1 = require("./sts/defaultSettingsSts");
|
|
9
|
+
exports.DefaultConfigSTS = defaultSettingsSts_1.default;
|
|
10
|
+
var SFUISettingsTemplate_AdminUi_1 = require("./Storefront/SFUISettingsTemplate.AdminUi");
|
|
11
|
+
Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes; } });
|
|
12
|
+
Object.defineProperty(exports, "AdminSettingsTemplateSFUI", { enumerable: true, get: function () { return SFUISettingsTemplate_AdminUi_1.AdminSettingsTemplateSFUI; } });
|
|
13
|
+
var STSSettingsTemplate_AdminUi_1 = require("./sts/STSSettingsTemplate.AdminUi");
|
|
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; } });
|
|
9
19
|
var icons_interfaces_1 = require("./interfaces/icons.interfaces");
|
|
10
20
|
Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
|
|
@@ -58,4 +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
|
+
export interface IAdminSettingsTemplateSTS {
|
|
63
|
+
hasEUTerms: IAdminControl;
|
|
64
|
+
hasTwoStepRegistration: IAdminControl;
|
|
65
|
+
customTermPolicy: IAdminControl;
|
|
66
|
+
gtmId: IAdminControl;
|
|
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,11 @@
|
|
|
1
|
+
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType } from './admin-settings-interfaces';
|
|
2
|
+
import { IDefaultRetailerSettings } from './default-settings.interfaces';
|
|
3
|
+
import { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType } from "./retailer-settings.interfaces";
|
|
4
|
+
import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./icons.interfaces";
|
|
5
|
+
import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./theme.interfaces";
|
|
6
|
+
import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource } from "./default-theme.interface";
|
|
7
|
+
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, };
|
|
8
|
+
export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
|
|
9
|
+
export { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, };
|
|
10
|
+
export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminControl, IAdminControlType };
|
|
11
|
+
export { IDefaultRetailerSettings };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconNamesToFiles = void 0;
|
|
4
|
+
var icons_interfaces_1 = require("./icons.interfaces");
|
|
5
|
+
Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminSettingsTemplateSTS = void 0;
|
|
4
|
+
var SFUISettingsTemplate_AdminUi_1 = require("../Storefront/SFUISettingsTemplate.AdminUi");
|
|
5
|
+
exports.AdminSettingsTemplateSTS = {
|
|
6
|
+
hasEUTerms: {
|
|
7
|
+
title: 'Has Eu Terms',
|
|
8
|
+
description: 'Does it need to show EU Term & Conditions?',
|
|
9
|
+
helpLink: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3289972753/Has+EU+Terms',
|
|
10
|
+
type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.checkbox
|
|
11
|
+
},
|
|
12
|
+
hasTwoStepRegistration: {
|
|
13
|
+
title: 'Has 2 Step Registration',
|
|
14
|
+
description: 'Does it need to collect more user info on the storefront?',
|
|
15
|
+
helpLink: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3289710820/Has+2+Step+Registration',
|
|
16
|
+
type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.checkbox
|
|
17
|
+
},
|
|
18
|
+
customTermPolicy: {
|
|
19
|
+
title: 'Term & Conditions Policy',
|
|
20
|
+
description: 'Add a customer policy so new users must select the checkboxes',
|
|
21
|
+
helpLink: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3289710827/Terms+Conditions+Policy',
|
|
22
|
+
type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.inputChar,
|
|
23
|
+
},
|
|
24
|
+
gtmId: {
|
|
25
|
+
title: 'Google Tag Manager Id',
|
|
26
|
+
description: 'Add a customers gtm id to track interactions',
|
|
27
|
+
helpLink: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3289972774/Google+Tag+Manager+Id',
|
|
28
|
+
type: SFUISettingsTemplate_AdminUi_1.AdminTemplateInputTypes.inputChar,
|
|
29
|
+
}
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "2.0
|
|
4
|
-
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"push": "npm run build && npm publish"
|
|
8
|
-
},
|
|
9
|
-
"author": "Wynshop",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"main": "dist",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"typescript": "4.6.3"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc",
|
|
7
|
+
"push": "npm run build && npm publish"
|
|
8
|
+
},
|
|
9
|
+
"author": "Wynshop",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"main": "dist",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"typescript": "4.6.3"
|
|
17
|
+
}
|
|
18
|
+
}
|