@thryveai/theme-interfaces 1.4.8-beta4 → 1.4.8-beta8
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/admin-settings-interfaces.d.ts +13 -1
- package/admin-settings-template.js +258 -174
- package/admin-theme-template.d.ts +1104 -0
- package/admin-theme-template.js +306 -0
- package/default.config.js +4 -0
- package/index.d.ts +2 -1
- package/index.js +4 -1
- package/package.json +14 -14
- package/retailer-settings.interfaces.d.ts +4 -0
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
|
+
```
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { IDefaultCounty, IValidationType } from "./retailer-settings.interfaces";
|
|
2
|
+
export declare type IAdminTemplateInputTypes = {
|
|
3
|
+
[key in IAdminControlType]: IAdminControlType;
|
|
4
|
+
};
|
|
2
5
|
export interface IAdminSettingsTemplate {
|
|
6
|
+
adminPanelOnly: IAdminControl;
|
|
7
|
+
accountPage: IAdminControl;
|
|
3
8
|
addressValidationTypes: IAdminControl;
|
|
4
9
|
allowInStorePurchases: IAdminControl;
|
|
5
10
|
allowPastPurchases: IAdminControl;
|
|
11
|
+
cacheTimeMins: IAdminControl;
|
|
6
12
|
checkoutV1: IAdminControl;
|
|
7
13
|
defaultCountry: IAdminControl;
|
|
14
|
+
defaultShoppingMode: IAdminControl;
|
|
15
|
+
defaultStoreLocation: IAdminControl;
|
|
8
16
|
disableTprPrice: IAdminControl;
|
|
9
17
|
documentTitle: IAdminControl;
|
|
10
18
|
enable3dSecure: IAdminControl;
|
|
@@ -13,6 +21,7 @@ export interface IAdminSettingsTemplate {
|
|
|
13
21
|
enableNotifications?: IAdminControl;
|
|
14
22
|
favoritesV1: IAdminControl;
|
|
15
23
|
flipp: IAdminControl;
|
|
24
|
+
gtmId: IAdminControl;
|
|
16
25
|
hideTaxOnSummary: IAdminControl;
|
|
17
26
|
houseAccountRegExValidation: IAdminControl;
|
|
18
27
|
isPlanningOnly: IAdminControl;
|
|
@@ -20,14 +29,17 @@ export interface IAdminSettingsTemplate {
|
|
|
20
29
|
mainHeaderHeight: IAdminControl;
|
|
21
30
|
mapZoom: IAdminControl;
|
|
22
31
|
minimumCreditCardAmount: IAdminControl;
|
|
32
|
+
nutritionZone: IAdminControl;
|
|
23
33
|
productCardTitleHeight: IAdminControl;
|
|
24
34
|
productCardv2: IAdminControl;
|
|
25
35
|
promoTemplateVersion: IAdminControl;
|
|
26
36
|
retailerCountry: IAdminControl;
|
|
27
37
|
retailerName: IAdminControl;
|
|
38
|
+
searchPreview: IAdminControl;
|
|
28
39
|
showCheckoutPromoCode: IAdminControl;
|
|
29
40
|
showImgOnOrder: IAdminControl;
|
|
30
41
|
subHeaderHeight: IAdminControl;
|
|
42
|
+
timeslotModalSettings: IAdminControl;
|
|
31
43
|
useAddressValidation: IAdminControl;
|
|
32
44
|
}
|
|
33
45
|
export interface IAdminControl {
|
|
@@ -40,4 +52,4 @@ export interface IAdminControl {
|
|
|
40
52
|
[key: string]: IAdminControl;
|
|
41
53
|
};
|
|
42
54
|
}
|
|
43
|
-
export declare type IAdminControlType = "checkbox" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object";
|
|
55
|
+
export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "string";
|
|
@@ -1,213 +1,195 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminSettingsTemplate = void 0;
|
|
4
|
+
var admin_theme_template_1 = require("./admin-theme-template");
|
|
5
|
+
var addressValidationDescription = "Sets the validation types for user addresses";
|
|
6
|
+
var validationTypes = [
|
|
7
|
+
"luhnValidation",
|
|
8
|
+
"alphaNumeric",
|
|
9
|
+
"alphaOnly",
|
|
10
|
+
"numericOnly",
|
|
11
|
+
"anyPhone",
|
|
12
|
+
"email",
|
|
13
|
+
"password",
|
|
14
|
+
"required",
|
|
15
|
+
"usPhone",
|
|
16
|
+
"usMobileNumber",
|
|
17
|
+
"caPhone",
|
|
18
|
+
"auPhone",
|
|
19
|
+
"iePhone",
|
|
20
|
+
"caProvince",
|
|
21
|
+
"usState",
|
|
22
|
+
"auState",
|
|
23
|
+
"ieCounty",
|
|
24
|
+
"caPostCode",
|
|
25
|
+
"usPostCode",
|
|
26
|
+
"auPostCode",
|
|
27
|
+
"iePostCode",
|
|
28
|
+
"noSpecialChar",
|
|
29
|
+
"correctDate",
|
|
30
|
+
];
|
|
4
31
|
exports.AdminSettingsTemplate = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
40
|
-
// type: "multiDropdown",
|
|
41
|
-
// options: [
|
|
42
|
-
// "luhnValidation",
|
|
43
|
-
// "alphaNumeric",
|
|
44
|
-
// "alphaOnly",
|
|
45
|
-
// "numericOnly",
|
|
46
|
-
// "anyPhone",
|
|
47
|
-
// "email",
|
|
48
|
-
// "password",
|
|
49
|
-
// "required",
|
|
50
|
-
// "usPhone",
|
|
51
|
-
// "usMobileNumber",
|
|
52
|
-
// "caPhone",
|
|
53
|
-
// "auPhone",
|
|
54
|
-
// "iePhone",
|
|
55
|
-
// "caProvince",
|
|
56
|
-
// "usState",
|
|
57
|
-
// "auState",
|
|
58
|
-
// "ieCounty",
|
|
59
|
-
// "caPostCode",
|
|
60
|
-
// "usPostCode",
|
|
61
|
-
// "auPostCode",
|
|
62
|
-
// "iePostCode",
|
|
63
|
-
// "noSpecialChar",
|
|
64
|
-
// "correctDate",
|
|
65
|
-
// ],
|
|
66
|
-
// },
|
|
67
|
-
// },
|
|
68
|
-
// },
|
|
69
|
-
// advertSettings:{},
|
|
70
|
-
// addresses:{}
|
|
71
|
-
// addressIntegration
|
|
72
|
-
// TODO: fix required validation
|
|
32
|
+
adminPanelOnly: {
|
|
33
|
+
title: "Retailer Details",
|
|
34
|
+
description: "",
|
|
35
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
36
|
+
value: {
|
|
37
|
+
bannerName: {
|
|
38
|
+
title: "Name of the Retailer",
|
|
39
|
+
description: "Only used to identify the banner in the admin panel",
|
|
40
|
+
type: "inputChar",
|
|
41
|
+
},
|
|
42
|
+
logoUrl: {
|
|
43
|
+
title: "Name of the Retailer",
|
|
44
|
+
description: "Only used to identify the banner in the admin panel",
|
|
45
|
+
type: "inputChar",
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
allowInStorePurchases: {
|
|
50
|
+
title: "InStore Purchases",
|
|
51
|
+
description: "Show the purchases made in store in the order history (requires integration).",
|
|
52
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
53
|
+
type: "checkbox",
|
|
54
|
+
},
|
|
55
|
+
allowPastPurchases: {
|
|
56
|
+
title: "Display PastPurchases",
|
|
57
|
+
description: "Enable displaying past purchases functionality",
|
|
58
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
59
|
+
type: "checkbox",
|
|
60
|
+
},
|
|
61
|
+
cacheTimeMins: {
|
|
62
|
+
title: "Production Cache time",
|
|
63
|
+
description: "How long data will be cached to make the site faster. (1 = 1minute)",
|
|
64
|
+
type: "inputNumber",
|
|
65
|
+
},
|
|
73
66
|
addressValidationTypes: {
|
|
74
|
-
title: "Address Validation
|
|
75
|
-
description: "
|
|
67
|
+
title: "Address Validation",
|
|
68
|
+
description: "User address validation settings.",
|
|
69
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3178627073/Storefront+Address+Validation+in-progress",
|
|
76
70
|
type: "object",
|
|
77
71
|
value: {
|
|
78
|
-
|
|
79
|
-
title: "
|
|
80
|
-
description:
|
|
72
|
+
firstName: {
|
|
73
|
+
title: "User's first name",
|
|
74
|
+
description: addressValidationDescription,
|
|
81
75
|
type: "multiDropdown",
|
|
82
|
-
options: [
|
|
83
|
-
"alphaNumeric",
|
|
84
|
-
"alphaOnly",
|
|
85
|
-
"usState",
|
|
86
|
-
"usPhone",
|
|
87
|
-
"usPostCode",
|
|
88
|
-
"required",
|
|
89
|
-
],
|
|
76
|
+
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
90
77
|
},
|
|
91
|
-
|
|
92
|
-
title: "
|
|
93
|
-
description:
|
|
78
|
+
familyName: {
|
|
79
|
+
title: "User's Surname",
|
|
80
|
+
description: addressValidationDescription,
|
|
94
81
|
type: "multiDropdown",
|
|
95
|
-
options: [
|
|
96
|
-
"alphaNumeric",
|
|
97
|
-
"alphaOnly",
|
|
98
|
-
"usState",
|
|
99
|
-
"usPhone",
|
|
100
|
-
"usPostCode",
|
|
101
|
-
"required",
|
|
102
|
-
],
|
|
82
|
+
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
103
83
|
},
|
|
104
|
-
|
|
105
|
-
title: "
|
|
106
|
-
description:
|
|
84
|
+
addressLine1: {
|
|
85
|
+
title: "Address Line 1",
|
|
86
|
+
description: addressValidationDescription,
|
|
107
87
|
type: "multiDropdown",
|
|
108
|
-
options: [
|
|
109
|
-
"alphaNumeric",
|
|
110
|
-
"alphaOnly",
|
|
111
|
-
"usState",
|
|
112
|
-
"usPhone",
|
|
113
|
-
"required",
|
|
114
|
-
"usPostCode",
|
|
115
|
-
"required",
|
|
116
|
-
],
|
|
88
|
+
options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
|
|
117
89
|
},
|
|
118
|
-
|
|
119
|
-
title: "
|
|
120
|
-
description:
|
|
90
|
+
addressLine2: {
|
|
91
|
+
title: "Address Line 2",
|
|
92
|
+
description: addressValidationDescription,
|
|
121
93
|
type: "multiDropdown",
|
|
122
|
-
options: [
|
|
123
|
-
"alphaNumeric",
|
|
124
|
-
"alphaOnly",
|
|
125
|
-
"usState",
|
|
126
|
-
"usPhone",
|
|
127
|
-
"usPostCode",
|
|
128
|
-
"required",
|
|
129
|
-
],
|
|
94
|
+
options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
|
|
130
95
|
},
|
|
131
|
-
|
|
132
|
-
title: "
|
|
133
|
-
description:
|
|
96
|
+
city: {
|
|
97
|
+
title: "City",
|
|
98
|
+
description: addressValidationDescription,
|
|
134
99
|
type: "multiDropdown",
|
|
135
|
-
options: [
|
|
136
|
-
"alphaNumeric",
|
|
137
|
-
"alphaOnly",
|
|
138
|
-
"usState",
|
|
139
|
-
"usPhone",
|
|
140
|
-
"usPostCode",
|
|
141
|
-
"required",
|
|
142
|
-
],
|
|
100
|
+
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
143
101
|
},
|
|
144
|
-
|
|
145
|
-
title: "
|
|
146
|
-
description:
|
|
102
|
+
countyProvinceState: {
|
|
103
|
+
title: "County/Province/State",
|
|
104
|
+
description: addressValidationDescription,
|
|
147
105
|
type: "multiDropdown",
|
|
148
106
|
options: [
|
|
149
107
|
"alphaNumeric",
|
|
150
108
|
"alphaOnly",
|
|
109
|
+
"auState",
|
|
110
|
+
"ieCounty",
|
|
151
111
|
"usState",
|
|
152
|
-
"
|
|
153
|
-
"usPostCode",
|
|
112
|
+
"caProvince",
|
|
154
113
|
"required",
|
|
155
114
|
],
|
|
156
115
|
},
|
|
157
116
|
instructions: {
|
|
158
|
-
title: "
|
|
159
|
-
description: "instructions",
|
|
117
|
+
title: "User Instructions Fields",
|
|
118
|
+
description: "Validation for the input fields for user instructions",
|
|
160
119
|
type: "multiDropdown",
|
|
161
|
-
options: [
|
|
162
|
-
"alphaNumeric",
|
|
163
|
-
"alphaOnly",
|
|
164
|
-
"usState",
|
|
165
|
-
"usPhone",
|
|
166
|
-
"usPostCode",
|
|
167
|
-
],
|
|
120
|
+
options: ["alphaNumeric", "alphaOnly", "required", "numericOnly"],
|
|
168
121
|
},
|
|
169
122
|
phoneNumber: {
|
|
170
|
-
title: "
|
|
171
|
-
description: "
|
|
123
|
+
title: "Phone Number",
|
|
124
|
+
description: "The number to be used to contact the user",
|
|
172
125
|
type: "multiDropdown",
|
|
173
126
|
options: [
|
|
174
|
-
"alphaNumeric",
|
|
175
|
-
"alphaOnly",
|
|
176
|
-
"usState",
|
|
177
127
|
"usPhone",
|
|
178
|
-
"
|
|
128
|
+
"usMobileNumber",
|
|
129
|
+
"numericOnly",
|
|
130
|
+
"auPhone",
|
|
131
|
+
"caPhone",
|
|
132
|
+
"iePhone",
|
|
133
|
+
"anyPhone",
|
|
179
134
|
"required",
|
|
180
135
|
],
|
|
181
136
|
},
|
|
182
137
|
postCode: {
|
|
183
|
-
title: "
|
|
184
|
-
description:
|
|
138
|
+
title: "Post / zip code",
|
|
139
|
+
description: addressValidationDescription,
|
|
185
140
|
type: "multiDropdown",
|
|
186
141
|
options: [
|
|
187
142
|
"alphaNumeric",
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
143
|
+
"auPostCode",
|
|
144
|
+
"caPostCode",
|
|
145
|
+
"iePostCode",
|
|
191
146
|
"usPostCode",
|
|
147
|
+
"numericOnly",
|
|
192
148
|
"required",
|
|
193
149
|
],
|
|
194
150
|
},
|
|
195
151
|
},
|
|
196
152
|
},
|
|
197
|
-
|
|
198
|
-
title: "
|
|
199
|
-
description: "
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
153
|
+
accountPage: {
|
|
154
|
+
title: "Account Page",
|
|
155
|
+
description: "Account page settings",
|
|
156
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
157
|
+
value: {
|
|
158
|
+
loyaltyTab: {
|
|
159
|
+
title: "Loyalty Tab",
|
|
160
|
+
description: "Set up Loyalty Tab on account page",
|
|
161
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
162
|
+
value: {
|
|
163
|
+
enabled: {
|
|
164
|
+
title: "Enable Loyalty Tab",
|
|
165
|
+
description: "Enable Loyalty tab section within My Account page",
|
|
166
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
167
|
+
},
|
|
168
|
+
disabledEdit: {
|
|
169
|
+
title: "Disable Loyalty edit",
|
|
170
|
+
description: "Prevent users to change their loyalty number",
|
|
171
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
172
|
+
},
|
|
173
|
+
loyaltyNumberLength: {
|
|
174
|
+
title: "Loyalty Number Length",
|
|
175
|
+
description: "Control the loyalty number length",
|
|
176
|
+
type: "inputNumber",
|
|
177
|
+
},
|
|
178
|
+
loyaltyNumberPrefix: {
|
|
179
|
+
title: "Loyalty Number Prefix",
|
|
180
|
+
description: "Add hardcoded prefix for loyalty numbers (this will affect the length)",
|
|
181
|
+
type: "inputChar",
|
|
182
|
+
},
|
|
183
|
+
loyaltyValidationType: {
|
|
184
|
+
title: "Loyalty Number Validation",
|
|
185
|
+
description: "Select loyalty validation types",
|
|
186
|
+
type: "multiDropdown",
|
|
187
|
+
options: validationTypes,
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
208
192
|
},
|
|
209
|
-
// buildNumber: string;
|
|
210
|
-
// cacheTimeMins?: number;
|
|
211
193
|
// canadianAddressCompleteKey?: string | undefined;
|
|
212
194
|
// checkout?: IGlobalCheckoutProps;
|
|
213
195
|
checkoutV1: {
|
|
@@ -221,13 +203,35 @@ exports.AdminSettingsTemplate = {
|
|
|
221
203
|
// daysToRemainSignedIn?: number;
|
|
222
204
|
defaultCountry: {
|
|
223
205
|
title: "Default Country",
|
|
224
|
-
description: "
|
|
206
|
+
description: "Used for address, phone validation & ui formating.",
|
|
225
207
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
226
208
|
type: "dropdown",
|
|
227
209
|
options: ["USA", "Canada", "Ireland", "Australia"],
|
|
228
210
|
},
|
|
229
211
|
// defaultSearchParams?: IDefaultSearchParams;
|
|
230
|
-
|
|
212
|
+
defaultShoppingMode: {
|
|
213
|
+
title: "Default Shopping Mode",
|
|
214
|
+
description: "Shopping mode the site defaults to when a user lands and has not registered.",
|
|
215
|
+
type: "dropdown",
|
|
216
|
+
options: ["pickup", "planning", "delivery"],
|
|
217
|
+
},
|
|
218
|
+
defaultStoreLocation: {
|
|
219
|
+
title: "Default Store Location",
|
|
220
|
+
description: "Used to center the store selector map to the retailers region. Without setting this, the map defaults to central Africa.",
|
|
221
|
+
type: "object",
|
|
222
|
+
value: {
|
|
223
|
+
latitude: {
|
|
224
|
+
title: "Latitude",
|
|
225
|
+
description: "",
|
|
226
|
+
type: "inputNumber",
|
|
227
|
+
},
|
|
228
|
+
longitude: {
|
|
229
|
+
title: "Longitude",
|
|
230
|
+
description: "",
|
|
231
|
+
type: "inputNumber",
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
231
235
|
// defaultStoreLocation?: IDefaultStoreLocation;
|
|
232
236
|
disableTprPrice: {
|
|
233
237
|
title: "Disable TPR Price",
|
|
@@ -237,7 +241,7 @@ exports.AdminSettingsTemplate = {
|
|
|
237
241
|
},
|
|
238
242
|
documentTitle: {
|
|
239
243
|
title: "Document Title",
|
|
240
|
-
description: "
|
|
244
|
+
description: "Fallback browser page Title if no SEO details are added to the page via the CMS.",
|
|
241
245
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
242
246
|
type: "inputChar",
|
|
243
247
|
},
|
|
@@ -268,7 +272,12 @@ exports.AdminSettingsTemplate = {
|
|
|
268
272
|
},
|
|
269
273
|
// errorLoggingLevel?: ILoggingLevel;
|
|
270
274
|
// externalApps?: IExternalApps;
|
|
271
|
-
// externalStoreSelectorUrl
|
|
275
|
+
// externalStoreSelectorUrl: {
|
|
276
|
+
// title: "External Store Selector Url",
|
|
277
|
+
// description:
|
|
278
|
+
// "Shows a link back to previous shoping platform, seen on store selection modal.This is generally used for an existing site that has not migrated all their stores to WynShop.",
|
|
279
|
+
// type: "inputChar",
|
|
280
|
+
// },
|
|
272
281
|
favoritesV1: {
|
|
273
282
|
title: "Favorites Version1",
|
|
274
283
|
description: "Enable version 1 of favorites functionality",
|
|
@@ -304,7 +313,11 @@ exports.AdminSettingsTemplate = {
|
|
|
304
313
|
},
|
|
305
314
|
// globalAnimations?: IGlobalAnimations;
|
|
306
315
|
// googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
307
|
-
|
|
316
|
+
gtmId: {
|
|
317
|
+
title: "GTM ID",
|
|
318
|
+
description: "Google Tag Manager ID",
|
|
319
|
+
type: "inputChar",
|
|
320
|
+
},
|
|
308
321
|
hideTaxOnSummary: {
|
|
309
322
|
title: "Hide Summary Tax",
|
|
310
323
|
description: "Hide the tax displayed on the summary box",
|
|
@@ -318,7 +331,12 @@ exports.AdminSettingsTemplate = {
|
|
|
318
331
|
type: "inputChar",
|
|
319
332
|
},
|
|
320
333
|
// idpTarget?: "_self" | "_blank";
|
|
321
|
-
// idpUrl
|
|
334
|
+
// idpUrl: {
|
|
335
|
+
// title: 'External IDP url',
|
|
336
|
+
// description: 'Is the user using ther own IDP or will they be using the Mi9 My Account functionality for Sign-In / Register and managing the customer account. If Null then Mi9 My Account funcationality will be used.',
|
|
337
|
+
// type: "nullObject",
|
|
338
|
+
// value: {}
|
|
339
|
+
// },
|
|
322
340
|
// instacartUrl?: string | undefined;
|
|
323
341
|
isPlanningOnly: {
|
|
324
342
|
title: "Planning Only",
|
|
@@ -353,7 +371,12 @@ exports.AdminSettingsTemplate = {
|
|
|
353
371
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
354
372
|
type: "checkbox",
|
|
355
373
|
},
|
|
356
|
-
|
|
374
|
+
nutritionZone: {
|
|
375
|
+
title: "Nutrition Template",
|
|
376
|
+
description: "Show the correct nutrition format for the correct zone.",
|
|
377
|
+
type: "dropdown",
|
|
378
|
+
options: ["us", "eu", "au", "ca"],
|
|
379
|
+
},
|
|
357
380
|
// paymentCards?: IPaymentCards;
|
|
358
381
|
// pdpDetailsLayout?: IPdpDetailsLayout;
|
|
359
382
|
productCardTitleHeight: {
|
|
@@ -387,11 +410,51 @@ exports.AdminSettingsTemplate = {
|
|
|
387
410
|
},
|
|
388
411
|
retailerName: {
|
|
389
412
|
title: "Retailer Name",
|
|
390
|
-
description: "
|
|
413
|
+
description: "Retailers short code e.g the code used for the retailers environment.",
|
|
391
414
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
392
415
|
type: "inputChar",
|
|
393
416
|
},
|
|
394
|
-
|
|
417
|
+
searchPreview: {
|
|
418
|
+
title: "Search Previews",
|
|
419
|
+
description: "Toggle Products/Suggestions to appear on search preview",
|
|
420
|
+
type: "object",
|
|
421
|
+
value: {
|
|
422
|
+
desktop: {
|
|
423
|
+
title: "Desktop",
|
|
424
|
+
description: "",
|
|
425
|
+
type: "object",
|
|
426
|
+
value: {
|
|
427
|
+
products: {
|
|
428
|
+
title: "Show Products",
|
|
429
|
+
description: "",
|
|
430
|
+
type: "checkbox",
|
|
431
|
+
},
|
|
432
|
+
suggestions: {
|
|
433
|
+
title: "Snow Suggestions",
|
|
434
|
+
description: "",
|
|
435
|
+
type: "checkbox",
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
mobile: {
|
|
440
|
+
title: "Mobile",
|
|
441
|
+
description: "",
|
|
442
|
+
type: "object",
|
|
443
|
+
value: {
|
|
444
|
+
products: {
|
|
445
|
+
title: "Show Products",
|
|
446
|
+
description: "",
|
|
447
|
+
type: "checkbox",
|
|
448
|
+
},
|
|
449
|
+
suggestions: {
|
|
450
|
+
title: "Snow Suggestions",
|
|
451
|
+
description: "",
|
|
452
|
+
type: "checkbox",
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
},
|
|
395
458
|
// secondTierAuthorization?: ISecondTierAuthorization;
|
|
396
459
|
showCheckoutPromoCode: {
|
|
397
460
|
title: "Show Checkout Promo",
|
|
@@ -412,7 +475,28 @@ exports.AdminSettingsTemplate = {
|
|
|
412
475
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
413
476
|
type: "inputNumber",
|
|
414
477
|
},
|
|
415
|
-
|
|
478
|
+
timeslotModalSettings: {
|
|
479
|
+
title: "Timeslot Modal Settings",
|
|
480
|
+
description: "Force timeslot selection",
|
|
481
|
+
type: "object",
|
|
482
|
+
value: {
|
|
483
|
+
showOnAddToCart: {
|
|
484
|
+
title: "Timeslot on Add To Cart",
|
|
485
|
+
description: "Show timeslot popup when user clicks on AddToCart",
|
|
486
|
+
type: "checkbox",
|
|
487
|
+
},
|
|
488
|
+
timeslotRequiredToAddToCart: {
|
|
489
|
+
title: "Force Timeslot on Add To Cart",
|
|
490
|
+
description: "Force a timeslot selection in order to add item in cart",
|
|
491
|
+
type: "checkbox",
|
|
492
|
+
},
|
|
493
|
+
timeslotRequiredToViewCartReview: {
|
|
494
|
+
title: "Force Timeslot on Cart Page",
|
|
495
|
+
description: "Force a timeslot selection in order to view cart page",
|
|
496
|
+
type: "checkbox",
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
},
|
|
416
500
|
useAddressValidation: {
|
|
417
501
|
title: "Use Address Validation",
|
|
418
502
|
description: "Use to enable address validation",
|