@thryveai/theme-interfaces 1.5.28 → 1.5.29
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 +0 -5
- package/admin-settings-template.js +94 -251
- package/admin.interfaces.js +1 -1
- package/debug.log +2 -0
- package/default-theme.interface.d.ts +11 -0
- package/package.json +1 -1
- package/theme.interfaces.d.ts +11 -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
|
+
```
|
|
@@ -6,13 +6,11 @@ export interface IAdminSettingsTemplate {
|
|
|
6
6
|
adminPanelOnly: IAdminControl;
|
|
7
7
|
accountPage: IAdminControl;
|
|
8
8
|
additionalCharges: IAdminControl;
|
|
9
|
-
addressIntegration: IAdminControl;
|
|
10
9
|
addressValidationTypes: IAdminControl;
|
|
11
10
|
allowInStorePurchases: IAdminControl;
|
|
12
11
|
allowPastPurchases: IAdminControl;
|
|
13
12
|
cacheTimeMins: IAdminControl;
|
|
14
13
|
checkoutV1: IAdminControl;
|
|
15
|
-
daysToRemainSignedIn?: IAdminControl;
|
|
16
14
|
defaultCountry: IAdminControl;
|
|
17
15
|
defaultShoppingMode: IAdminControl;
|
|
18
16
|
defaultStoreLocation: IAdminControl;
|
|
@@ -23,7 +21,6 @@ export interface IAdminSettingsTemplate {
|
|
|
23
21
|
enableNewsletterSignup: IAdminControl;
|
|
24
22
|
enableNotifications?: IAdminControl;
|
|
25
23
|
favoritesV1: IAdminControl;
|
|
26
|
-
features: IAdminControl;
|
|
27
24
|
flipp: IAdminControl;
|
|
28
25
|
gtmId: IAdminControl;
|
|
29
26
|
hideTaxOnSummary: IAdminControl;
|
|
@@ -42,8 +39,6 @@ export interface IAdminSettingsTemplate {
|
|
|
42
39
|
searchPreview: IAdminControl;
|
|
43
40
|
showCheckoutPromoCode: IAdminControl;
|
|
44
41
|
showImgOnOrder: IAdminControl;
|
|
45
|
-
smartbanner: IAdminControl;
|
|
46
|
-
smsNotifications: IAdminControl;
|
|
47
42
|
subHeaderHeight: IAdminControl;
|
|
48
43
|
timeslotModalSettings: IAdminControl;
|
|
49
44
|
useAddressValidation: IAdminControl;
|
|
@@ -37,107 +37,78 @@ exports.AdminSettingsTemplate = {
|
|
|
37
37
|
bannerName: {
|
|
38
38
|
title: "Name of the Retailer",
|
|
39
39
|
description: "Only used to identify the banner in the admin panel",
|
|
40
|
-
type:
|
|
40
|
+
type: "inputChar",
|
|
41
41
|
},
|
|
42
42
|
logoUrl: {
|
|
43
43
|
title: "Name of the Retailer",
|
|
44
44
|
description: "Only used to identify the banner in the admin panel",
|
|
45
|
-
type:
|
|
45
|
+
type: "inputChar",
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
additionalCharges: {
|
|
50
50
|
title: "Additional Charges",
|
|
51
51
|
description: "Enables additional charging such as tipping, donations etc.",
|
|
52
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274571877/Additional+Charges",
|
|
53
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
|
|
54
|
-
},
|
|
55
|
-
addressIntegration: {
|
|
56
|
-
title: "Address Integration",
|
|
57
|
-
description: "Use external address integration",
|
|
58
52
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
59
|
-
type:
|
|
60
|
-
value: {
|
|
61
|
-
enabled: {
|
|
62
|
-
title: "Enabled",
|
|
63
|
-
description: "Enables external address integration",
|
|
64
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
|
|
65
|
-
},
|
|
66
|
-
getAddressesUrl: {
|
|
67
|
-
title: "Get Address Url",
|
|
68
|
-
description: "Set the get address url",
|
|
69
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
70
|
-
},
|
|
71
|
-
getLocationUrl: {
|
|
72
|
-
title: "Get Location Url",
|
|
73
|
-
description: "Set the get location url",
|
|
74
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
75
|
-
},
|
|
76
|
-
addressFinderType: {
|
|
77
|
-
title: "Address Finder Type",
|
|
78
|
-
description: "Select the address finder type",
|
|
79
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
|
|
80
|
-
options: ["AUS", "EU", "IE", "US", "UK", "CA"],
|
|
81
|
-
},
|
|
82
|
-
},
|
|
53
|
+
type: "checkbox",
|
|
83
54
|
},
|
|
84
55
|
allowInStorePurchases: {
|
|
85
56
|
title: "InStore Purchases",
|
|
86
57
|
description: "Show the purchases made in store in the order history (requires integration).",
|
|
87
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
88
|
-
type:
|
|
58
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
59
|
+
type: "checkbox",
|
|
89
60
|
},
|
|
90
61
|
allowPastPurchases: {
|
|
91
62
|
title: "Display PastPurchases",
|
|
92
63
|
description: "Enable displaying past purchases functionality",
|
|
93
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
94
|
-
type:
|
|
64
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
65
|
+
type: "checkbox",
|
|
95
66
|
},
|
|
96
67
|
cacheTimeMins: {
|
|
97
68
|
title: "Production Cache time",
|
|
98
69
|
description: "How long data will be cached to make the site faster. (1 = 1minute)",
|
|
99
|
-
type:
|
|
70
|
+
type: "inputNumber",
|
|
100
71
|
},
|
|
101
72
|
addressValidationTypes: {
|
|
102
73
|
title: "Address Validation",
|
|
103
74
|
description: "User address validation settings.",
|
|
104
75
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3178627073/Storefront+Address+Validation+in-progress",
|
|
105
|
-
type:
|
|
76
|
+
type: "object",
|
|
106
77
|
value: {
|
|
107
78
|
firstName: {
|
|
108
79
|
title: "User's first name",
|
|
109
80
|
description: addressValidationDescription,
|
|
110
|
-
type:
|
|
81
|
+
type: "multiDropdown",
|
|
111
82
|
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
112
83
|
},
|
|
113
84
|
familyName: {
|
|
114
85
|
title: "User's Surname",
|
|
115
86
|
description: addressValidationDescription,
|
|
116
|
-
type:
|
|
87
|
+
type: "multiDropdown",
|
|
117
88
|
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
118
89
|
},
|
|
119
90
|
addressLine1: {
|
|
120
91
|
title: "Address Line 1",
|
|
121
92
|
description: addressValidationDescription,
|
|
122
|
-
type:
|
|
93
|
+
type: "multiDropdown",
|
|
123
94
|
options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
|
|
124
95
|
},
|
|
125
96
|
addressLine2: {
|
|
126
97
|
title: "Address Line 2",
|
|
127
98
|
description: addressValidationDescription,
|
|
128
|
-
type:
|
|
99
|
+
type: "multiDropdown",
|
|
129
100
|
options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
|
|
130
101
|
},
|
|
131
102
|
city: {
|
|
132
103
|
title: "City",
|
|
133
104
|
description: addressValidationDescription,
|
|
134
|
-
type:
|
|
105
|
+
type: "multiDropdown",
|
|
135
106
|
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
136
107
|
},
|
|
137
108
|
countyProvinceState: {
|
|
138
109
|
title: "County/Province/State",
|
|
139
110
|
description: addressValidationDescription,
|
|
140
|
-
type:
|
|
111
|
+
type: "multiDropdown",
|
|
141
112
|
options: [
|
|
142
113
|
"alphaNumeric",
|
|
143
114
|
"alphaOnly",
|
|
@@ -151,13 +122,13 @@ exports.AdminSettingsTemplate = {
|
|
|
151
122
|
instructions: {
|
|
152
123
|
title: "User Instructions Fields",
|
|
153
124
|
description: "Validation for the input fields for user instructions",
|
|
154
|
-
type:
|
|
125
|
+
type: "multiDropdown",
|
|
155
126
|
options: ["alphaNumeric", "alphaOnly", "required", "numericOnly"],
|
|
156
127
|
},
|
|
157
128
|
phoneNumber: {
|
|
158
129
|
title: "Phone Number",
|
|
159
130
|
description: "The number to be used to contact the user",
|
|
160
|
-
type:
|
|
131
|
+
type: "multiDropdown",
|
|
161
132
|
options: [
|
|
162
133
|
"usPhone",
|
|
163
134
|
"usMobileNumber",
|
|
@@ -172,7 +143,7 @@ exports.AdminSettingsTemplate = {
|
|
|
172
143
|
postCode: {
|
|
173
144
|
title: "Post / zip code",
|
|
174
145
|
description: addressValidationDescription,
|
|
175
|
-
type:
|
|
146
|
+
type: "multiDropdown",
|
|
176
147
|
options: [
|
|
177
148
|
"alphaNumeric",
|
|
178
149
|
"auPostCode",
|
|
@@ -194,7 +165,6 @@ exports.AdminSettingsTemplate = {
|
|
|
194
165
|
title: "Loyalty Tab",
|
|
195
166
|
description: "Set up Loyalty Tab on account page",
|
|
196
167
|
type: admin_interfaces_1.AdminTemplateInputTypes.object,
|
|
197
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784302/Account+Page",
|
|
198
168
|
value: {
|
|
199
169
|
enabled: {
|
|
200
170
|
title: "Enable Loyalty Tab",
|
|
@@ -209,17 +179,17 @@ exports.AdminSettingsTemplate = {
|
|
|
209
179
|
loyaltyNumberLength: {
|
|
210
180
|
title: "Loyalty Number Length",
|
|
211
181
|
description: "Control the loyalty number length",
|
|
212
|
-
type:
|
|
182
|
+
type: "inputNumber",
|
|
213
183
|
},
|
|
214
184
|
loyaltyNumberPrefix: {
|
|
215
185
|
title: "Loyalty Number Prefix",
|
|
216
186
|
description: "Add hardcoded prefix for loyalty numbers (this will affect the length)",
|
|
217
|
-
type:
|
|
187
|
+
type: "inputChar",
|
|
218
188
|
},
|
|
219
189
|
loyaltyValidationType: {
|
|
220
190
|
title: "Loyalty Number Validation",
|
|
221
191
|
description: "Select loyalty validation types",
|
|
222
|
-
type:
|
|
192
|
+
type: "multiDropdown",
|
|
223
193
|
options: validationTypes,
|
|
224
194
|
},
|
|
225
195
|
},
|
|
@@ -231,47 +201,40 @@ exports.AdminSettingsTemplate = {
|
|
|
231
201
|
checkoutV1: {
|
|
232
202
|
title: "Checkout Version",
|
|
233
203
|
description: "Change your version of the checkout shown to users",
|
|
234
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
235
|
-
type:
|
|
204
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
205
|
+
type: "checkbox",
|
|
236
206
|
},
|
|
237
207
|
// checkoutValidation?: ICheckoutValidation;
|
|
238
208
|
// ctaButtons?: ICtaButtons;
|
|
239
|
-
daysToRemainSignedIn
|
|
240
|
-
title: "Sign In Days",
|
|
241
|
-
description: "Time in days to remain signed in in the app",
|
|
242
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
243
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
|
|
244
|
-
},
|
|
209
|
+
// daysToRemainSignedIn?: number;
|
|
245
210
|
defaultCountry: {
|
|
246
211
|
title: "Default Country",
|
|
247
212
|
description: "Used for address, phone validation & ui formating.",
|
|
248
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
249
|
-
type:
|
|
213
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
214
|
+
type: "dropdown",
|
|
250
215
|
options: ["USA", "Canada", "Ireland", "Australia"],
|
|
251
216
|
},
|
|
252
217
|
// defaultSearchParams?: IDefaultSearchParams;
|
|
253
218
|
defaultShoppingMode: {
|
|
254
219
|
title: "Default Shopping Mode",
|
|
255
220
|
description: "Shopping mode the site defaults to when a user lands and has not registered.",
|
|
256
|
-
|
|
257
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
|
|
221
|
+
type: "dropdown",
|
|
258
222
|
options: ["pickup", "planning", "delivery"],
|
|
259
223
|
},
|
|
260
224
|
defaultStoreLocation: {
|
|
261
225
|
title: "Default Store Location",
|
|
262
226
|
description: "Used to center the store selector map to the retailers region. Without setting this, the map defaults to central Africa.",
|
|
263
|
-
type:
|
|
264
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784259/Default+Store+Location",
|
|
227
|
+
type: "object",
|
|
265
228
|
value: {
|
|
266
229
|
latitude: {
|
|
267
230
|
title: "Latitude",
|
|
268
231
|
description: "",
|
|
269
|
-
type:
|
|
232
|
+
type: "inputNumber",
|
|
270
233
|
},
|
|
271
234
|
longitude: {
|
|
272
235
|
title: "Longitude",
|
|
273
236
|
description: "",
|
|
274
|
-
type:
|
|
237
|
+
type: "inputNumber",
|
|
275
238
|
},
|
|
276
239
|
},
|
|
277
240
|
},
|
|
@@ -279,39 +242,39 @@ exports.AdminSettingsTemplate = {
|
|
|
279
242
|
disableTprPrice: {
|
|
280
243
|
title: "Disable TPR Price",
|
|
281
244
|
description: "Disable the display of tpr pricing",
|
|
282
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
283
|
-
type:
|
|
245
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
246
|
+
type: "checkbox",
|
|
284
247
|
},
|
|
285
248
|
documentTitle: {
|
|
286
249
|
title: "Document Title",
|
|
287
250
|
description: "Fallback browser page Title if no SEO details are added to the page via the CMS.",
|
|
288
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
289
|
-
type:
|
|
251
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
252
|
+
type: "inputChar",
|
|
290
253
|
},
|
|
291
254
|
// eircode?: string | null;
|
|
292
255
|
enable3dSecure: {
|
|
293
256
|
title: "Enable 3DSecure",
|
|
294
257
|
description: "Enable 3d secure validation for payment",
|
|
295
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
296
|
-
type:
|
|
258
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
259
|
+
type: "checkbox",
|
|
297
260
|
},
|
|
298
261
|
enableGoogleTranslate: {
|
|
299
262
|
title: "Enable Google Translate",
|
|
300
263
|
description: "Enable google translation display and functionality",
|
|
301
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
302
|
-
type:
|
|
264
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
265
|
+
type: "checkbox",
|
|
303
266
|
},
|
|
304
267
|
enableNewsletterSignup: {
|
|
305
268
|
title: "Enable Newsletter",
|
|
306
269
|
description: "Enable newsletter signup functionality",
|
|
307
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
308
|
-
type:
|
|
270
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
271
|
+
type: "checkbox",
|
|
309
272
|
},
|
|
310
273
|
enableNotifications: {
|
|
311
274
|
title: "Enable Notifications",
|
|
312
275
|
description: "Enable notifications functionality",
|
|
313
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
314
|
-
type:
|
|
276
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
277
|
+
type: "checkbox",
|
|
315
278
|
},
|
|
316
279
|
// errorLoggingLevel?: ILoggingLevel;
|
|
317
280
|
// externalApps?: IExternalApps;
|
|
@@ -324,112 +287,33 @@ exports.AdminSettingsTemplate = {
|
|
|
324
287
|
favoritesV1: {
|
|
325
288
|
title: "Favorites Version1",
|
|
326
289
|
description: "Enable version 1 of favorites functionality",
|
|
327
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
328
|
-
type:
|
|
329
|
-
},
|
|
330
|
-
features: {
|
|
331
|
-
title: "Features",
|
|
332
|
-
description: "Enable features",
|
|
333
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.object,
|
|
334
|
-
value: {
|
|
335
|
-
clientCache: {
|
|
336
|
-
title: "Client Cache",
|
|
337
|
-
description: "Enable cache for clients",
|
|
338
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
|
|
339
|
-
},
|
|
340
|
-
},
|
|
290
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
291
|
+
type: "checkbox",
|
|
341
292
|
},
|
|
342
293
|
flipp: {
|
|
343
294
|
title: "Flipp Circulars",
|
|
344
295
|
description: "Configure Flipp circulars integration",
|
|
345
|
-
type:
|
|
296
|
+
type: "nullObject",
|
|
346
297
|
value: {
|
|
347
298
|
version: {
|
|
348
299
|
title: "Version",
|
|
349
300
|
description: "Will you use version 1 or version 2?",
|
|
350
|
-
type:
|
|
301
|
+
type: "checkbox",
|
|
351
302
|
},
|
|
352
303
|
retailer: {
|
|
353
304
|
title: "Retailer Name",
|
|
354
305
|
description: "The retailer setting from flipp",
|
|
355
|
-
type:
|
|
306
|
+
type: "inputChar",
|
|
356
307
|
},
|
|
357
308
|
merchantId: {
|
|
358
309
|
title: "Merchant Id",
|
|
359
310
|
description: "The merchant Id setting from flipp",
|
|
360
|
-
type:
|
|
311
|
+
type: "inputChar",
|
|
361
312
|
},
|
|
362
313
|
accessToken: {
|
|
363
314
|
title: "Access Token",
|
|
364
315
|
description: "The access token setting from flipp",
|
|
365
|
-
type:
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
},
|
|
369
|
-
smartbanner: {
|
|
370
|
-
title: "Smart Banner",
|
|
371
|
-
description: "Render smart banner on mobile views",
|
|
372
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.object,
|
|
373
|
-
value: {
|
|
374
|
-
enabled: {
|
|
375
|
-
title: "Enable",
|
|
376
|
-
description: "Enable smart banner",
|
|
377
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
|
|
378
|
-
},
|
|
379
|
-
title: {
|
|
380
|
-
title: "Title",
|
|
381
|
-
description: "Smart banner title",
|
|
382
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
383
|
-
},
|
|
384
|
-
author: {
|
|
385
|
-
title: "Author",
|
|
386
|
-
description: "Smart banner author",
|
|
387
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
388
|
-
},
|
|
389
|
-
price: {
|
|
390
|
-
title: "Price",
|
|
391
|
-
description: "Smart banner price",
|
|
392
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
393
|
-
},
|
|
394
|
-
priceSuffixApple: {
|
|
395
|
-
title: "Apple Price Suffix",
|
|
396
|
-
description: "Smart banner price suffix for Apple devices",
|
|
397
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
398
|
-
},
|
|
399
|
-
priceSuffixGoogle: {
|
|
400
|
-
title: "Google Price Suffix",
|
|
401
|
-
description: "Smart banner price suffix for Google devices",
|
|
402
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
403
|
-
},
|
|
404
|
-
iconApple: {
|
|
405
|
-
title: "Apple Icon",
|
|
406
|
-
description: "Smart banner icon for Apple devices",
|
|
407
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
408
|
-
},
|
|
409
|
-
iconGoogle: {
|
|
410
|
-
title: "Google Icon",
|
|
411
|
-
description: "Smart banner icon for Google devices",
|
|
412
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
413
|
-
},
|
|
414
|
-
button: {
|
|
415
|
-
title: "Button",
|
|
416
|
-
description: "Smart banner button text",
|
|
417
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
418
|
-
},
|
|
419
|
-
buttonUrlApple: {
|
|
420
|
-
title: "Apple Button Url",
|
|
421
|
-
description: "Smart banner url for Apple button",
|
|
422
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
423
|
-
},
|
|
424
|
-
buttonUrlGoogle: {
|
|
425
|
-
title: "Google Button Url",
|
|
426
|
-
description: "Smart banner url for Google button",
|
|
427
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
428
|
-
},
|
|
429
|
-
closeLabel: {
|
|
430
|
-
title: "Close Label",
|
|
431
|
-
description: "Smart banner label text",
|
|
432
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
316
|
+
type: "inputChar",
|
|
433
317
|
},
|
|
434
318
|
},
|
|
435
319
|
},
|
|
@@ -438,26 +322,21 @@ exports.AdminSettingsTemplate = {
|
|
|
438
322
|
gtmId: {
|
|
439
323
|
title: "GTM ID",
|
|
440
324
|
description: "Google Tag Manager ID",
|
|
441
|
-
type:
|
|
325
|
+
type: "inputChar",
|
|
442
326
|
},
|
|
443
327
|
hideTaxOnSummary: {
|
|
444
328
|
title: "Hide Summary Tax",
|
|
445
329
|
description: "Hide the tax displayed on the summary box",
|
|
446
330
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
447
|
-
type:
|
|
331
|
+
type: "checkbox",
|
|
448
332
|
},
|
|
449
333
|
houseAccountRegExValidation: {
|
|
450
334
|
title: "House Account Validation",
|
|
451
335
|
description: "Regular expression to validate house accounts",
|
|
452
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
453
|
-
type:
|
|
454
|
-
},
|
|
455
|
-
// idpTarget
|
|
456
|
-
// title: "Idp Target",
|
|
457
|
-
// description: "Idp opens on the same or a new tab",
|
|
458
|
-
// type: AdminTemplateInputTypes.dropdown,
|
|
459
|
-
// options: ["_self", "_blank"],
|
|
460
|
-
// },
|
|
336
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
337
|
+
type: "inputChar",
|
|
338
|
+
},
|
|
339
|
+
// idpTarget?: "_self" | "_blank";
|
|
461
340
|
// idpUrl: {
|
|
462
341
|
// title: 'External IDP url',
|
|
463
342
|
// 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.',
|
|
@@ -469,45 +348,39 @@ exports.AdminSettingsTemplate = {
|
|
|
469
348
|
title: "Planning Only",
|
|
470
349
|
description: "Enable if planning mode is the only available shopping method",
|
|
471
350
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
472
|
-
type:
|
|
351
|
+
type: "checkbox",
|
|
473
352
|
},
|
|
474
353
|
// layout?: ILayoutSettings;
|
|
475
354
|
limitProductCardTitleHeight: {
|
|
476
355
|
title: "Limit Product Card Title",
|
|
477
356
|
description: "Restricts the product card title height display",
|
|
478
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
479
|
-
type:
|
|
480
|
-
},
|
|
481
|
-
// loggingLevelClient
|
|
482
|
-
// title: "Client logging Level",
|
|
483
|
-
// description: "Sets client's logging detail level",
|
|
484
|
-
// helpLink:
|
|
485
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
486
|
-
// type: AdminTemplateInputTypes.checkbox,
|
|
487
|
-
// },
|
|
357
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
358
|
+
type: "checkbox",
|
|
359
|
+
},
|
|
360
|
+
// loggingLevelClient?: ILoggingLevel;
|
|
488
361
|
// loggingLevelServer?: ILoggingLevel;
|
|
489
362
|
mainHeaderHeight: {
|
|
490
363
|
title: "Main Header Height",
|
|
491
364
|
description: "Use to set the main header height in pixels",
|
|
492
365
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
493
|
-
type:
|
|
366
|
+
type: "inputNumber",
|
|
494
367
|
},
|
|
495
368
|
mapZoom: {
|
|
496
369
|
title: "Map Zoom",
|
|
497
370
|
description: "Use to change the google maps zoom level",
|
|
498
371
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
499
|
-
type:
|
|
372
|
+
type: "inputNumber",
|
|
500
373
|
},
|
|
501
374
|
minimumCreditCardAmount: {
|
|
502
375
|
title: "Minimum Credit Card Amount",
|
|
503
376
|
description: "Use to set the minimum credit card amount",
|
|
504
377
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
505
|
-
type:
|
|
378
|
+
type: "checkbox",
|
|
506
379
|
},
|
|
507
380
|
nutritionZone: {
|
|
508
381
|
title: "Nutrition Template",
|
|
509
382
|
description: "Show the correct nutrition format for the correct zone.",
|
|
510
|
-
type:
|
|
383
|
+
type: "dropdown",
|
|
511
384
|
options: ["us", "eu", "au", "ca"],
|
|
512
385
|
},
|
|
513
386
|
// paymentCards?: IPaymentCards;
|
|
@@ -516,20 +389,20 @@ exports.AdminSettingsTemplate = {
|
|
|
516
389
|
title: "Product Card Title Height",
|
|
517
390
|
description: "Set the product card title height in pixels",
|
|
518
391
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
519
|
-
type:
|
|
392
|
+
type: "inputNumber",
|
|
520
393
|
},
|
|
521
394
|
productCardv2: {
|
|
522
395
|
title: "use product card v2",
|
|
523
396
|
description: "use product card v2",
|
|
524
397
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
525
|
-
type:
|
|
398
|
+
type: "checkbox",
|
|
526
399
|
},
|
|
527
400
|
// TODO: this is set to number in main interface, should be fixed numbers
|
|
528
401
|
promoTemplateVersion: {
|
|
529
402
|
title: "Promo Template Version",
|
|
530
403
|
description: "Select a template version to show promotions",
|
|
531
404
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
532
|
-
type:
|
|
405
|
+
type: "dropdown",
|
|
533
406
|
options: [1, 2, 3],
|
|
534
407
|
},
|
|
535
408
|
// registrationFields?: IRegistrationField[];
|
|
@@ -538,139 +411,109 @@ exports.AdminSettingsTemplate = {
|
|
|
538
411
|
title: "Retailer country",
|
|
539
412
|
description: "Select the retailer country",
|
|
540
413
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
541
|
-
type:
|
|
414
|
+
type: "dropdown",
|
|
542
415
|
options: ["us", "ca", "ie", "au"],
|
|
543
416
|
},
|
|
544
417
|
retailerName: {
|
|
545
418
|
title: "Retailer Name",
|
|
546
419
|
description: "Retailers short code e.g the code used for the retailers environment.",
|
|
547
420
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
548
|
-
type:
|
|
421
|
+
type: "inputChar",
|
|
549
422
|
},
|
|
550
423
|
searchPreview: {
|
|
551
424
|
title: "Search Previews",
|
|
552
425
|
description: "Toggle Products/Suggestions to appear on search preview",
|
|
553
|
-
type:
|
|
426
|
+
type: "object",
|
|
554
427
|
value: {
|
|
555
428
|
desktop: {
|
|
556
429
|
title: "Desktop",
|
|
557
430
|
description: "",
|
|
558
|
-
type:
|
|
431
|
+
type: "object",
|
|
559
432
|
value: {
|
|
560
433
|
products: {
|
|
561
434
|
title: "Show Products",
|
|
562
435
|
description: "",
|
|
563
|
-
type:
|
|
436
|
+
type: "checkbox",
|
|
564
437
|
},
|
|
565
438
|
suggestions: {
|
|
566
|
-
title: "
|
|
439
|
+
title: "Snow Suggestions",
|
|
567
440
|
description: "",
|
|
568
|
-
type:
|
|
441
|
+
type: "checkbox",
|
|
569
442
|
},
|
|
570
443
|
},
|
|
571
444
|
},
|
|
572
445
|
mobile: {
|
|
573
446
|
title: "Mobile",
|
|
574
447
|
description: "",
|
|
575
|
-
type:
|
|
448
|
+
type: "object",
|
|
576
449
|
value: {
|
|
577
450
|
products: {
|
|
578
451
|
title: "Show Products",
|
|
579
452
|
description: "",
|
|
580
|
-
type:
|
|
453
|
+
type: "checkbox",
|
|
581
454
|
},
|
|
582
455
|
suggestions: {
|
|
583
456
|
title: "Snow Suggestions",
|
|
584
457
|
description: "",
|
|
585
|
-
type:
|
|
458
|
+
type: "checkbox",
|
|
586
459
|
},
|
|
587
460
|
},
|
|
588
461
|
},
|
|
589
462
|
},
|
|
590
463
|
},
|
|
591
|
-
// secondTierAuthorization
|
|
592
|
-
// title: "Second Tier Authorization",
|
|
593
|
-
// description: "Enable second tier authorization",
|
|
594
|
-
// helpLink:
|
|
595
|
-
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
596
|
-
// type: AdminTemplateInputTypes.nullObject,
|
|
597
|
-
// value: {
|
|
598
|
-
// time: {
|
|
599
|
-
// title: "Time",
|
|
600
|
-
// description: "Time selection",
|
|
601
|
-
// type: AdminTemplateInputTypes.dropdown,
|
|
602
|
-
// value: [undefined, null, number]
|
|
603
|
-
// },
|
|
604
|
-
// },
|
|
605
|
-
// },
|
|
464
|
+
// secondTierAuthorization?: ISecondTierAuthorization;
|
|
606
465
|
showCheckoutPromoCode: {
|
|
607
466
|
title: "Show Checkout Promo",
|
|
608
467
|
description: "Show checkout promotion code",
|
|
609
468
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
610
|
-
type:
|
|
469
|
+
type: "checkbox",
|
|
611
470
|
},
|
|
612
471
|
showImgOnOrder: {
|
|
613
472
|
title: "Show Image On Order",
|
|
614
473
|
description: "Show images on order",
|
|
615
474
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
616
|
-
type:
|
|
617
|
-
},
|
|
618
|
-
smsNotifications: {
|
|
619
|
-
title: "SMS Notifications",
|
|
620
|
-
description: "Configure SMS Notifications integration",
|
|
621
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
622
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.object,
|
|
623
|
-
value: {
|
|
624
|
-
enabled: {
|
|
625
|
-
title: "Enable",
|
|
626
|
-
description: "Enable SMS Notifications integration",
|
|
627
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
|
|
628
|
-
},
|
|
629
|
-
getEnrollmentUrl: {
|
|
630
|
-
title: "Get Url",
|
|
631
|
-
description: "Get enrollment url",
|
|
632
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
633
|
-
},
|
|
634
|
-
postEnrollmentUrl: {
|
|
635
|
-
title: "Post Url",
|
|
636
|
-
description: "Post enrollment url",
|
|
637
|
-
type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
|
|
638
|
-
},
|
|
639
|
-
},
|
|
475
|
+
type: "checkbox",
|
|
640
476
|
},
|
|
477
|
+
// smsNotifications?: ISMSConfig;
|
|
641
478
|
subHeaderHeight: {
|
|
642
479
|
title: "Subheader Height",
|
|
643
480
|
description: "Use to set the sub header height in pixels",
|
|
644
481
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
645
|
-
type:
|
|
482
|
+
type: "inputNumber",
|
|
646
483
|
},
|
|
647
484
|
timeslotModalSettings: {
|
|
648
485
|
title: "Timeslot Modal Settings",
|
|
649
486
|
description: "Force timeslot selection",
|
|
650
|
-
type:
|
|
487
|
+
type: "object",
|
|
651
488
|
value: {
|
|
652
489
|
showOnAddToCart: {
|
|
653
490
|
title: "Timeslot on Add To Cart",
|
|
654
491
|
description: "Show timeslot popup when user clicks on AddToCart",
|
|
655
|
-
type:
|
|
492
|
+
type: "checkbox",
|
|
656
493
|
},
|
|
657
494
|
timeslotRequiredToAddToCart: {
|
|
658
495
|
title: "Force Timeslot on Add To Cart",
|
|
659
496
|
description: "Force a timeslot selection in order to add item in cart",
|
|
660
|
-
type:
|
|
497
|
+
type: "checkbox",
|
|
661
498
|
},
|
|
662
499
|
timeslotRequiredToViewCartReview: {
|
|
663
500
|
title: "Force Timeslot on Cart Page",
|
|
664
501
|
description: "Force a timeslot selection in order to view cart page",
|
|
665
|
-
type:
|
|
502
|
+
type: "checkbox",
|
|
666
503
|
},
|
|
667
504
|
},
|
|
668
505
|
},
|
|
669
506
|
useAddressValidation: {
|
|
670
507
|
title: "Use Address Validation",
|
|
671
508
|
description: "Use to enable address validation",
|
|
672
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/
|
|
673
|
-
type:
|
|
509
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
510
|
+
type: "checkbox",
|
|
674
511
|
},
|
|
512
|
+
// footerType: {
|
|
513
|
+
// title: "Footer Version",
|
|
514
|
+
// description: "Change your version of the checkout shown to users",
|
|
515
|
+
// type: "radio",
|
|
516
|
+
// options: [1, 2, 3, 4, 5],
|
|
517
|
+
// },
|
|
675
518
|
};
|
|
676
519
|
exports.default = exports.AdminSettingsTemplate;
|
package/admin.interfaces.js
CHANGED
package/debug.log
ADDED
|
@@ -327,6 +327,7 @@ export interface IDefaultThemeInterface {
|
|
|
327
327
|
borderRadius: string;
|
|
328
328
|
activeBackgroundColor: string;
|
|
329
329
|
hoverBackgroundColor: string;
|
|
330
|
+
tabletSettings: IMiniCartTabletSettings;
|
|
330
331
|
color: string;
|
|
331
332
|
activeColor: string;
|
|
332
333
|
mobileColor: string;
|
|
@@ -433,6 +434,16 @@ export interface IDefaultThemeInterface {
|
|
|
433
434
|
export interface IDefaultThemeScripts {
|
|
434
435
|
[key: string]: string;
|
|
435
436
|
}
|
|
437
|
+
interface IMiniCartTabletSettings {
|
|
438
|
+
enabled: boolean;
|
|
439
|
+
iconColor: string;
|
|
440
|
+
textColor: string;
|
|
441
|
+
backgroundColor: string;
|
|
442
|
+
iconColorHover: string;
|
|
443
|
+
textColorHover: string;
|
|
444
|
+
backgroundColorHover: string;
|
|
445
|
+
showText: boolean;
|
|
446
|
+
}
|
|
436
447
|
interface IInputFields {
|
|
437
448
|
bgColor: string;
|
|
438
449
|
borderColor: string;
|
package/package.json
CHANGED
package/theme.interfaces.d.ts
CHANGED
|
@@ -341,6 +341,7 @@ export interface IThemeInterface {
|
|
|
341
341
|
borderRadius?: string;
|
|
342
342
|
activeBackgroundColor?: string;
|
|
343
343
|
hoverBackgroundColor?: string;
|
|
344
|
+
tabletSettings?: IMiniCartTabletSettings;
|
|
344
345
|
color?: string;
|
|
345
346
|
activeColor?: string;
|
|
346
347
|
mobileColor?: string;
|
|
@@ -447,6 +448,16 @@ export interface IThemeInterface {
|
|
|
447
448
|
export interface IThemeScripts {
|
|
448
449
|
[key: string]: string;
|
|
449
450
|
}
|
|
451
|
+
interface IMiniCartTabletSettings {
|
|
452
|
+
enabled?: boolean;
|
|
453
|
+
iconColor?: string;
|
|
454
|
+
textColor?: string;
|
|
455
|
+
backgroundColor?: string;
|
|
456
|
+
iconColorHover?: string;
|
|
457
|
+
textColorHover?: string;
|
|
458
|
+
backgroundColorHover?: string;
|
|
459
|
+
showText?: boolean;
|
|
460
|
+
}
|
|
450
461
|
interface IInputFields {
|
|
451
462
|
bgColor?: string;
|
|
452
463
|
borderColor?: string;
|