@thryveai/theme-interfaces 2.3.0-beta → 2.3.3
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/admin-settings-interfaces.d.ts +2 -44
- package/dist/interfaces/default-settings.interfaces.d.ts +1 -4
- package/dist/interfaces/retailer-settings.interfaces.d.ts +5 -2
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +724 -600
- package/dist/storefront/SFUIThemesTemplate.AdminUi.js +89 -29
- package/dist/storefront/defaultSettingsStorefront.js +24 -21
- package/dist/theme-templates/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#V8 Theme Interfaces
|
|
2
|
-
|
|
3
|
-
interfaces for all MI9 Retailer Themes.
|
|
4
|
-
|
|
5
|
-
###icons.interfaces
|
|
6
|
-
List of all icons used inside the ui projects.
|
|
7
|
-
|
|
8
|
-
###retailer-settings.interfaces
|
|
9
|
-
more info here
|
|
10
|
-
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
-
###theme.interfaces
|
|
12
|
-
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
-
|
|
14
|
-
#To Build Project
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
npm install
|
|
18
|
-
npm run build
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
#To Publish npm package
|
|
22
|
-
```
|
|
23
|
-
npm login
|
|
24
|
-
npm publish
|
|
25
|
-
```
|
|
26
|
-
or
|
|
27
|
-
```
|
|
28
|
-
npm run push
|
|
29
|
-
```
|
|
1
|
+
#V8 Theme Interfaces
|
|
2
|
+
|
|
3
|
+
interfaces for all MI9 Retailer Themes.
|
|
4
|
+
|
|
5
|
+
###icons.interfaces
|
|
6
|
+
List of all icons used inside the ui projects.
|
|
7
|
+
|
|
8
|
+
###retailer-settings.interfaces
|
|
9
|
+
more info here
|
|
10
|
+
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
+
###theme.interfaces
|
|
12
|
+
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
+
|
|
14
|
+
#To Build Project
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
npm install
|
|
18
|
+
npm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#To Publish npm package
|
|
22
|
+
```
|
|
23
|
+
npm login
|
|
24
|
+
npm publish
|
|
25
|
+
```
|
|
26
|
+
or
|
|
27
|
+
```
|
|
28
|
+
npm run push
|
|
29
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { AdminImagesTemplateSFUI } from "./storefront/SFUIImagesTemplate.AdminUi
|
|
|
8
8
|
import { AdminThemeTemplateSFUI, AdminThemeTemplateOptions } from "./storefront/SFUIThemesTemplate.AdminUi";
|
|
9
9
|
import { AdminImagesTemplateSTS } from "./sts/STSImagesTemplate.AdminUi";
|
|
10
10
|
import { IconNamesToFiles } from "./interfaces/icons.interfaces";
|
|
11
|
-
import AllThemeTemplates from '
|
|
11
|
+
import AllThemeTemplates from './theme-templates';
|
|
12
12
|
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator } from "./interfaces/admin-settings-interfaces";
|
|
13
13
|
import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
|
|
14
14
|
import { IDefaultRetailerSettings } from "./interfaces/default-settings.interfaces";
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var STSImagesTemplate_AdminUi_1 = require("./sts/STSImagesTemplate.AdminUi");
|
|
|
25
25
|
Object.defineProperty(exports, "AdminImagesTemplateSTS", { enumerable: true, get: function () { return STSImagesTemplate_AdminUi_1.AdminImagesTemplateSTS; } });
|
|
26
26
|
var icons_interfaces_1 = require("./interfaces/icons.interfaces");
|
|
27
27
|
Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
|
|
28
|
-
var theme_templates_1 = require("
|
|
28
|
+
var theme_templates_1 = require("./theme-templates");
|
|
29
29
|
exports.AllThemeTemplates = theme_templates_1.default;
|
|
@@ -5,49 +5,7 @@ export declare type IAdminTemplateInputTypes = {
|
|
|
5
5
|
};
|
|
6
6
|
export interface IAdminSettingsTemplate {
|
|
7
7
|
adminPanelOnly: IAdminControl;
|
|
8
|
-
accountPage: IAdminControl;
|
|
9
|
-
additionalCharges: IAdminControl;
|
|
10
|
-
addressIntegration: IAdminControl;
|
|
11
|
-
addressValidationTypes: IAdminControl;
|
|
12
|
-
allowInStorePurchases: IAdminControl;
|
|
13
|
-
allowPastPurchases: IAdminControl;
|
|
14
|
-
cacheTimeMins: IAdminControl;
|
|
15
|
-
checkoutV1: IAdminControl;
|
|
16
|
-
daysToRemainSignedIn?: IAdminControl;
|
|
17
|
-
defaultCountry: IAdminControl;
|
|
18
|
-
defaultShoppingMode: IAdminControl;
|
|
19
|
-
defaultStoreLocation: IAdminControl;
|
|
20
|
-
disableTprPrice: IAdminControl;
|
|
21
|
-
documentTitle: IAdminControl;
|
|
22
|
-
enable3dSecure: IAdminControl;
|
|
23
|
-
enableGoogleTranslate: IAdminControl;
|
|
24
|
-
enableNewsletterSignup: IAdminControl;
|
|
25
|
-
enableNotifications?: IAdminControl;
|
|
26
|
-
favoritesV1: IAdminControl;
|
|
27
8
|
features: IAdminControl;
|
|
28
|
-
flipp: IAdminControl;
|
|
29
|
-
gtmId: IAdminControl;
|
|
30
|
-
hideTaxOnSummary: IAdminControl;
|
|
31
|
-
houseAccountRegExValidation: IAdminControl;
|
|
32
|
-
isPlanningOnly: IAdminControl;
|
|
33
|
-
limitProductCardTitleHeight: IAdminControl;
|
|
34
|
-
mainHeaderHeight: IAdminControl;
|
|
35
|
-
mapZoom: IAdminControl;
|
|
36
|
-
minimumCreditCardAmount: IAdminControl;
|
|
37
|
-
nutritionZone: IAdminControl;
|
|
38
|
-
productCardTitleHeight: IAdminControl;
|
|
39
|
-
productCardv2: IAdminControl;
|
|
40
|
-
promoTemplateVersion: IAdminControl;
|
|
41
|
-
retailerCountry: IAdminControl;
|
|
42
|
-
retailerName: IAdminControl;
|
|
43
|
-
searchPreview: IAdminControl;
|
|
44
|
-
showCheckoutPromoCode: IAdminControl;
|
|
45
|
-
showImgOnOrder: IAdminControl;
|
|
46
|
-
smartbanner: IAdminControl;
|
|
47
|
-
smsNotifications: IAdminControl;
|
|
48
|
-
subHeaderHeight: IAdminControl;
|
|
49
|
-
timeslotModalSettings: IAdminControl;
|
|
50
|
-
useAddressValidation: IAdminControl;
|
|
51
9
|
}
|
|
52
10
|
export interface IAdminControl {
|
|
53
11
|
title: string;
|
|
@@ -81,12 +39,12 @@ declare type IAdminImagesKeys = "icons" | "logos" | "confirmationPageImage" | "s
|
|
|
81
39
|
export interface IAdminThemeTemplateOptions {
|
|
82
40
|
title: string;
|
|
83
41
|
description: string;
|
|
84
|
-
options:
|
|
42
|
+
options: SupportThemeTemplates[];
|
|
85
43
|
helpLink: string;
|
|
86
44
|
}
|
|
87
45
|
export declare type IAllThemeTemplates = {
|
|
88
46
|
[key in SupportThemeTemplates]: IThemeGenerator;
|
|
89
47
|
};
|
|
90
|
-
declare type SupportThemeTemplates = 'Default' | '
|
|
48
|
+
declare type SupportThemeTemplates = 'Default Storefront' | 'Default STS';
|
|
91
49
|
export declare type IThemeGenerator = (colors: IDefaultColors) => IDefaultThemeInterface;
|
|
92
50
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { IAccountPageSettings, IAddressesSettings, IAddressIntegration, IAddressValidationTypes, IAdvertSettings, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISearchPreviewVisibility, ISecondTierAuthorization,
|
|
1
|
+
import { IAccountPageSettings, IAddressesSettings, IAddressIntegration, IAddressValidationTypes, IAdvertSettings, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISearchPreviewVisibility, ISecondTierAuthorization, ISMSConfig, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
|
|
2
2
|
export interface IDefaultRetailerSettings {
|
|
3
3
|
adminPanelOnly: {
|
|
4
4
|
bannerName: string;
|
|
5
5
|
logoUrl: string;
|
|
6
6
|
};
|
|
7
7
|
accountPage: IAccountPageSettings;
|
|
8
|
-
additionalCharges: boolean;
|
|
9
8
|
addressIntegration: IAddressIntegration;
|
|
10
9
|
addressValidationTypes: IAddressValidationTypes;
|
|
11
10
|
addresses: IAddressesSettings;
|
|
@@ -32,7 +31,6 @@ export interface IDefaultRetailerSettings {
|
|
|
32
31
|
enableGoogleTranslate: boolean;
|
|
33
32
|
enableNewsletterSignup: boolean;
|
|
34
33
|
enableNotifications: boolean;
|
|
35
|
-
enableVouchers: boolean;
|
|
36
34
|
errorLoggingLevel: ILoggingLevel;
|
|
37
35
|
externalStoreSelectorUrl: string | undefined;
|
|
38
36
|
favoritesV1: boolean;
|
|
@@ -70,7 +68,6 @@ export interface IDefaultRetailerSettings {
|
|
|
70
68
|
secondTierAuthorization?: ISecondTierAuthorization;
|
|
71
69
|
showCheckoutPromoCode: boolean;
|
|
72
70
|
showImgOnOrder: boolean;
|
|
73
|
-
smartbanner: ISmartBanner;
|
|
74
71
|
smsNotifications: ISMSConfig;
|
|
75
72
|
sodiumWarning: ISodiumWarning;
|
|
76
73
|
specialRequestItems: boolean;
|
|
@@ -39,7 +39,6 @@ export interface IRetailerSettings {
|
|
|
39
39
|
enableGoogleTranslate?: boolean;
|
|
40
40
|
enableNewsletterSignup?: boolean;
|
|
41
41
|
enableNotifications?: boolean;
|
|
42
|
-
enableVouchers?: boolean;
|
|
43
42
|
errorLoggingLevel?: ILoggingLevel;
|
|
44
43
|
externalApps?: IExternalApps;
|
|
45
44
|
externalStoreSelectorUrl?: string | undefined;
|
|
@@ -86,7 +85,11 @@ export interface IRetailerSettings {
|
|
|
86
85
|
useAddressValidation?: boolean;
|
|
87
86
|
}
|
|
88
87
|
export interface IFeatureSwitch {
|
|
89
|
-
|
|
88
|
+
additionalCharges: boolean;
|
|
89
|
+
clientCache: boolean;
|
|
90
|
+
enableVouchers: boolean;
|
|
91
|
+
giftCards: boolean;
|
|
92
|
+
smartbanner: ISmartBanner;
|
|
90
93
|
}
|
|
91
94
|
export interface ISmartBanner {
|
|
92
95
|
enabled: boolean;
|