@thryveai/theme-interfaces 1.4.8-beta → 1.4.8-beta4
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/admin-settings-interfaces.d.ts +4 -10
- package/admin-settings-interfaces.js +2 -0
- package/admin-settings-template.js +429 -0
- package/default-theme.interface.js +2 -0
- package/default.config.js +163 -0
- package/icons.interfaces.js +124 -0
- package/index.d.ts +4 -0
- package/index.js +9 -0
- package/package.json +1 -1
- package/retailer-settings.interfaces.js +2 -0
- package/theme.interfaces.js +2 -0
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { IDefaultCounty, IValidationType } from "./retailer-settings.interfaces";
|
|
2
2
|
export interface IAdminSettingsTemplate {
|
|
3
|
-
accountPage: {
|
|
4
|
-
loyaltyTab: {
|
|
5
|
-
disabledEdit: IAdminControl;
|
|
6
|
-
enabled: IAdminControl;
|
|
7
|
-
loyaltyNumberLength: IAdminControl;
|
|
8
|
-
loyaltyNumberPrefix: IAdminControl;
|
|
9
|
-
loyaltyValidationType: IAdminControl;
|
|
10
|
-
};
|
|
11
|
-
optional: boolean;
|
|
12
|
-
};
|
|
13
3
|
addressValidationTypes: IAdminControl;
|
|
14
4
|
allowInStorePurchases: IAdminControl;
|
|
15
5
|
allowPastPurchases: IAdminControl;
|
|
@@ -30,6 +20,10 @@ export interface IAdminSettingsTemplate {
|
|
|
30
20
|
mainHeaderHeight: IAdminControl;
|
|
31
21
|
mapZoom: IAdminControl;
|
|
32
22
|
minimumCreditCardAmount: IAdminControl;
|
|
23
|
+
productCardTitleHeight: IAdminControl;
|
|
24
|
+
productCardv2: IAdminControl;
|
|
25
|
+
promoTemplateVersion: IAdminControl;
|
|
26
|
+
retailerCountry: IAdminControl;
|
|
33
27
|
retailerName: IAdminControl;
|
|
34
28
|
showCheckoutPromoCode: IAdminControl;
|
|
35
29
|
showImgOnOrder: IAdminControl;
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminSettingsTemplate = void 0;
|
|
4
|
+
exports.AdminSettingsTemplate = {
|
|
5
|
+
// accountPage: {
|
|
6
|
+
// loyaltyTab: {
|
|
7
|
+
// disabledEdit: {
|
|
8
|
+
// title: "Disable Edit",
|
|
9
|
+
// description: "Disable edit mode in loyalty tabs",
|
|
10
|
+
// helpLink:
|
|
11
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
12
|
+
// type: "checkbox",
|
|
13
|
+
// },
|
|
14
|
+
// enabled: {
|
|
15
|
+
// title: "Enable Loyalty",
|
|
16
|
+
// description: "Enable loyalty tab and functionality",
|
|
17
|
+
// helpLink:
|
|
18
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
19
|
+
// type: "checkbox",
|
|
20
|
+
// },
|
|
21
|
+
// loyaltyNumberLength: {
|
|
22
|
+
// title: "Loyalty Number Length",
|
|
23
|
+
// description: "Set the loyalty card character number length",
|
|
24
|
+
// helpLink:
|
|
25
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
26
|
+
// type: "inputNumber",
|
|
27
|
+
// },
|
|
28
|
+
// loyaltyNumberPrefix: {
|
|
29
|
+
// title: "Loyalty Number Prefix",
|
|
30
|
+
// description: "Set the loyalty card prefix",
|
|
31
|
+
// helpLink:
|
|
32
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
33
|
+
// type: "inputChar",
|
|
34
|
+
// },
|
|
35
|
+
// loyaltyValidationType: {
|
|
36
|
+
// title: "Loyalty Validation",
|
|
37
|
+
// description: "Select the loyalty validation types",
|
|
38
|
+
// helpLink:
|
|
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
|
|
73
|
+
addressValidationTypes: {
|
|
74
|
+
title: "Address Validation Types",
|
|
75
|
+
description: "Types of address validation",
|
|
76
|
+
type: "object",
|
|
77
|
+
value: {
|
|
78
|
+
addressLine1: {
|
|
79
|
+
title: "addressLine1",
|
|
80
|
+
description: "addressLine1",
|
|
81
|
+
type: "multiDropdown",
|
|
82
|
+
options: [
|
|
83
|
+
"alphaNumeric",
|
|
84
|
+
"alphaOnly",
|
|
85
|
+
"usState",
|
|
86
|
+
"usPhone",
|
|
87
|
+
"usPostCode",
|
|
88
|
+
"required",
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
addressLine2: {
|
|
92
|
+
title: "addressLine2",
|
|
93
|
+
description: "addressLine2",
|
|
94
|
+
type: "multiDropdown",
|
|
95
|
+
options: [
|
|
96
|
+
"alphaNumeric",
|
|
97
|
+
"alphaOnly",
|
|
98
|
+
"usState",
|
|
99
|
+
"usPhone",
|
|
100
|
+
"usPostCode",
|
|
101
|
+
"required",
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
city: {
|
|
105
|
+
title: "city",
|
|
106
|
+
description: "city",
|
|
107
|
+
type: "multiDropdown",
|
|
108
|
+
options: [
|
|
109
|
+
"alphaNumeric",
|
|
110
|
+
"alphaOnly",
|
|
111
|
+
"usState",
|
|
112
|
+
"usPhone",
|
|
113
|
+
"required",
|
|
114
|
+
"usPostCode",
|
|
115
|
+
"required",
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
countyProvinceState: {
|
|
119
|
+
title: "countyProvinceState",
|
|
120
|
+
description: "countyProvinceState",
|
|
121
|
+
type: "multiDropdown",
|
|
122
|
+
options: [
|
|
123
|
+
"alphaNumeric",
|
|
124
|
+
"alphaOnly",
|
|
125
|
+
"usState",
|
|
126
|
+
"usPhone",
|
|
127
|
+
"usPostCode",
|
|
128
|
+
"required",
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
familyName: {
|
|
132
|
+
title: "familyName",
|
|
133
|
+
description: "familyName",
|
|
134
|
+
type: "multiDropdown",
|
|
135
|
+
options: [
|
|
136
|
+
"alphaNumeric",
|
|
137
|
+
"alphaOnly",
|
|
138
|
+
"usState",
|
|
139
|
+
"usPhone",
|
|
140
|
+
"usPostCode",
|
|
141
|
+
"required",
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
firstName: {
|
|
145
|
+
title: "firstName",
|
|
146
|
+
description: "firstName",
|
|
147
|
+
type: "multiDropdown",
|
|
148
|
+
options: [
|
|
149
|
+
"alphaNumeric",
|
|
150
|
+
"alphaOnly",
|
|
151
|
+
"usState",
|
|
152
|
+
"usPhone",
|
|
153
|
+
"usPostCode",
|
|
154
|
+
"required",
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
instructions: {
|
|
158
|
+
title: "instructions",
|
|
159
|
+
description: "instructions",
|
|
160
|
+
type: "multiDropdown",
|
|
161
|
+
options: [
|
|
162
|
+
"alphaNumeric",
|
|
163
|
+
"alphaOnly",
|
|
164
|
+
"usState",
|
|
165
|
+
"usPhone",
|
|
166
|
+
"usPostCode",
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
phoneNumber: {
|
|
170
|
+
title: "phoneNumber",
|
|
171
|
+
description: "phoneNumber",
|
|
172
|
+
type: "multiDropdown",
|
|
173
|
+
options: [
|
|
174
|
+
"alphaNumeric",
|
|
175
|
+
"alphaOnly",
|
|
176
|
+
"usState",
|
|
177
|
+
"usPhone",
|
|
178
|
+
"usPostCode",
|
|
179
|
+
"required",
|
|
180
|
+
],
|
|
181
|
+
},
|
|
182
|
+
postCode: {
|
|
183
|
+
title: "postCode",
|
|
184
|
+
description: "postCode",
|
|
185
|
+
type: "multiDropdown",
|
|
186
|
+
options: [
|
|
187
|
+
"alphaNumeric",
|
|
188
|
+
"alphaOnly",
|
|
189
|
+
"usState",
|
|
190
|
+
"usPhone",
|
|
191
|
+
"usPostCode",
|
|
192
|
+
"required",
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
allowInStorePurchases: {
|
|
198
|
+
title: "Allow InStore Purchases",
|
|
199
|
+
description: "Allow purchases made in store",
|
|
200
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
201
|
+
type: "checkbox",
|
|
202
|
+
},
|
|
203
|
+
allowPastPurchases: {
|
|
204
|
+
title: "Display PastPurchases",
|
|
205
|
+
description: "Enable displaying past purchases functionality",
|
|
206
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
207
|
+
type: "checkbox",
|
|
208
|
+
},
|
|
209
|
+
// buildNumber: string;
|
|
210
|
+
// cacheTimeMins?: number;
|
|
211
|
+
// canadianAddressCompleteKey?: string | undefined;
|
|
212
|
+
// checkout?: IGlobalCheckoutProps;
|
|
213
|
+
checkoutV1: {
|
|
214
|
+
title: "Checkout Version",
|
|
215
|
+
description: "Change your version of the checkout shown to users",
|
|
216
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
217
|
+
type: "checkbox",
|
|
218
|
+
},
|
|
219
|
+
// checkoutValidation?: ICheckoutValidation;
|
|
220
|
+
// ctaButtons?: ICtaButtons;
|
|
221
|
+
// daysToRemainSignedIn?: number;
|
|
222
|
+
defaultCountry: {
|
|
223
|
+
title: "Default Country",
|
|
224
|
+
description: "Set the default country",
|
|
225
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
226
|
+
type: "dropdown",
|
|
227
|
+
options: ["USA", "Canada", "Ireland", "Australia"],
|
|
228
|
+
},
|
|
229
|
+
// defaultSearchParams?: IDefaultSearchParams;
|
|
230
|
+
// defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
231
|
+
// defaultStoreLocation?: IDefaultStoreLocation;
|
|
232
|
+
disableTprPrice: {
|
|
233
|
+
title: "Disable TPR Price",
|
|
234
|
+
description: "Disable the display of tpr pricing",
|
|
235
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
236
|
+
type: "checkbox",
|
|
237
|
+
},
|
|
238
|
+
documentTitle: {
|
|
239
|
+
title: "Document Title",
|
|
240
|
+
description: "Set the document title",
|
|
241
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
242
|
+
type: "inputChar",
|
|
243
|
+
},
|
|
244
|
+
// eircode?: string | null;
|
|
245
|
+
enable3dSecure: {
|
|
246
|
+
title: "Enable 3DSecure",
|
|
247
|
+
description: "Enable 3d secure validation for payment",
|
|
248
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
249
|
+
type: "checkbox",
|
|
250
|
+
},
|
|
251
|
+
enableGoogleTranslate: {
|
|
252
|
+
title: "Enable Google Translate",
|
|
253
|
+
description: "Enable google translation display and functionality",
|
|
254
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
255
|
+
type: "checkbox",
|
|
256
|
+
},
|
|
257
|
+
enableNewsletterSignup: {
|
|
258
|
+
title: "Enable Newsletter",
|
|
259
|
+
description: "Enable newsletter signup functionality",
|
|
260
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
261
|
+
type: "checkbox",
|
|
262
|
+
},
|
|
263
|
+
enableNotifications: {
|
|
264
|
+
title: "Enable Notifications",
|
|
265
|
+
description: "Enable notifications functionality",
|
|
266
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
267
|
+
type: "checkbox",
|
|
268
|
+
},
|
|
269
|
+
// errorLoggingLevel?: ILoggingLevel;
|
|
270
|
+
// externalApps?: IExternalApps;
|
|
271
|
+
// externalStoreSelectorUrl?: string | undefined;
|
|
272
|
+
favoritesV1: {
|
|
273
|
+
title: "Favorites Version1",
|
|
274
|
+
description: "Enable version 1 of favorites functionality",
|
|
275
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
276
|
+
type: "checkbox",
|
|
277
|
+
},
|
|
278
|
+
flipp: {
|
|
279
|
+
title: "Flipp Circulars",
|
|
280
|
+
description: "Configure Flipp circulars integration",
|
|
281
|
+
type: "nullObject",
|
|
282
|
+
value: {
|
|
283
|
+
version: {
|
|
284
|
+
title: "Version",
|
|
285
|
+
description: "Will you use version 1 or version 2?",
|
|
286
|
+
type: "checkbox",
|
|
287
|
+
},
|
|
288
|
+
retailer: {
|
|
289
|
+
title: "Retailer Name",
|
|
290
|
+
description: "The retailer setting from flipp",
|
|
291
|
+
type: "inputChar",
|
|
292
|
+
},
|
|
293
|
+
merchantId: {
|
|
294
|
+
title: "Merchant Id",
|
|
295
|
+
description: "The merchant Id setting from flipp",
|
|
296
|
+
type: "inputChar",
|
|
297
|
+
},
|
|
298
|
+
accessToken: {
|
|
299
|
+
title: "Access Token",
|
|
300
|
+
description: "The access token setting from flipp",
|
|
301
|
+
type: "inputChar",
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
// globalAnimations?: IGlobalAnimations;
|
|
306
|
+
// googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
307
|
+
// gtmId?: undefined | string;
|
|
308
|
+
hideTaxOnSummary: {
|
|
309
|
+
title: "Hide Summary Tax",
|
|
310
|
+
description: "Hide the tax displayed on the summary box",
|
|
311
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
312
|
+
type: "checkbox",
|
|
313
|
+
},
|
|
314
|
+
houseAccountRegExValidation: {
|
|
315
|
+
title: "House Account Validation",
|
|
316
|
+
description: "Regular expression to validate house accounts",
|
|
317
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
318
|
+
type: "inputChar",
|
|
319
|
+
},
|
|
320
|
+
// idpTarget?: "_self" | "_blank";
|
|
321
|
+
// idpUrl?: undefined | string;
|
|
322
|
+
// instacartUrl?: string | undefined;
|
|
323
|
+
isPlanningOnly: {
|
|
324
|
+
title: "Planning Only",
|
|
325
|
+
description: "Enable if planning mode is the only available shopping method",
|
|
326
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
327
|
+
type: "checkbox",
|
|
328
|
+
},
|
|
329
|
+
// layout?: ILayoutSettings;
|
|
330
|
+
limitProductCardTitleHeight: {
|
|
331
|
+
title: "Limit Product Card Title",
|
|
332
|
+
description: "Restricts the product card title height display",
|
|
333
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
334
|
+
type: "checkbox",
|
|
335
|
+
},
|
|
336
|
+
// loggingLevelClient?: ILoggingLevel;
|
|
337
|
+
// loggingLevelServer?: ILoggingLevel;
|
|
338
|
+
mainHeaderHeight: {
|
|
339
|
+
title: "Main Header Height",
|
|
340
|
+
description: "Use to set the main header height in pixels",
|
|
341
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
342
|
+
type: "inputNumber",
|
|
343
|
+
},
|
|
344
|
+
mapZoom: {
|
|
345
|
+
title: "Map Zoom",
|
|
346
|
+
description: "Use to change the google maps zoom level",
|
|
347
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
348
|
+
type: "inputNumber",
|
|
349
|
+
},
|
|
350
|
+
minimumCreditCardAmount: {
|
|
351
|
+
title: "Minimum Credit Card Amount",
|
|
352
|
+
description: "Use to set the minimum credit card amount",
|
|
353
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
354
|
+
type: "checkbox",
|
|
355
|
+
},
|
|
356
|
+
// nutritionZone?: INutritionZone;
|
|
357
|
+
// paymentCards?: IPaymentCards;
|
|
358
|
+
// pdpDetailsLayout?: IPdpDetailsLayout;
|
|
359
|
+
productCardTitleHeight: {
|
|
360
|
+
title: "Product Card Title Height",
|
|
361
|
+
description: "Set the product card title height in pixels",
|
|
362
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
363
|
+
type: "inputNumber",
|
|
364
|
+
},
|
|
365
|
+
productCardv2: {
|
|
366
|
+
title: "use product card v2",
|
|
367
|
+
description: "use product card v2",
|
|
368
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
369
|
+
type: "checkbox",
|
|
370
|
+
},
|
|
371
|
+
// TODO: this is set to number in main interface, should be fixed numbers
|
|
372
|
+
promoTemplateVersion: {
|
|
373
|
+
title: "Promo Template Version",
|
|
374
|
+
description: "Select a template version to show promotions",
|
|
375
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
376
|
+
type: "dropdown",
|
|
377
|
+
options: [1, 2, 3],
|
|
378
|
+
},
|
|
379
|
+
// registrationFields?: IRegistrationField[];
|
|
380
|
+
// restrictMapPlacesResults?: IRestrictMapPlaces;
|
|
381
|
+
retailerCountry: {
|
|
382
|
+
title: "Retailer country",
|
|
383
|
+
description: "Select the retailer country",
|
|
384
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
385
|
+
type: "dropdown",
|
|
386
|
+
options: ["us", "ca", "ie", "au"],
|
|
387
|
+
},
|
|
388
|
+
retailerName: {
|
|
389
|
+
title: "Retailer Name",
|
|
390
|
+
description: "Sets the retailer name",
|
|
391
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
392
|
+
type: "inputChar",
|
|
393
|
+
},
|
|
394
|
+
// searchPreview?: ISearchPreviewVisibility;
|
|
395
|
+
// secondTierAuthorization?: ISecondTierAuthorization;
|
|
396
|
+
showCheckoutPromoCode: {
|
|
397
|
+
title: "Show Checkout Promo",
|
|
398
|
+
description: "Show checkout promotion code",
|
|
399
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
400
|
+
type: "checkbox",
|
|
401
|
+
},
|
|
402
|
+
showImgOnOrder: {
|
|
403
|
+
title: "Show Image On Order",
|
|
404
|
+
description: "Show images on order",
|
|
405
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
406
|
+
type: "checkbox",
|
|
407
|
+
},
|
|
408
|
+
// smsNotifications?: ISMSConfig;
|
|
409
|
+
subHeaderHeight: {
|
|
410
|
+
title: "Subheader Height",
|
|
411
|
+
description: "Use to set the sub header height in pixels",
|
|
412
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
413
|
+
type: "inputNumber",
|
|
414
|
+
},
|
|
415
|
+
// TimeslotModalSettings: {},
|
|
416
|
+
useAddressValidation: {
|
|
417
|
+
title: "Use Address Validation",
|
|
418
|
+
description: "Use to enable address validation",
|
|
419
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
420
|
+
type: "checkbox",
|
|
421
|
+
},
|
|
422
|
+
// footerType: {
|
|
423
|
+
// title: "Footer Version",
|
|
424
|
+
// description: "Change your version of the checkout shown to users",
|
|
425
|
+
// type: "radio",
|
|
426
|
+
// options: [1, 2, 3, 4, 5],
|
|
427
|
+
// },
|
|
428
|
+
};
|
|
429
|
+
exports.default = exports.AdminSettingsTemplate;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var defaultConfig = {
|
|
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
|
+
favoritesV1: false,
|
|
64
|
+
checkout: {
|
|
65
|
+
numericPhonePayload: false,
|
|
66
|
+
},
|
|
67
|
+
checkoutValidation: {
|
|
68
|
+
instructions: ["alphaNumeric"],
|
|
69
|
+
phoneNumber: ["usPhone", "required"],
|
|
70
|
+
smsNumber: [],
|
|
71
|
+
},
|
|
72
|
+
ctaButtons: null,
|
|
73
|
+
defaultCountry: "USA",
|
|
74
|
+
defaultSearchParams: {
|
|
75
|
+
page: "1",
|
|
76
|
+
q: "*",
|
|
77
|
+
skip: "0",
|
|
78
|
+
take: "30",
|
|
79
|
+
},
|
|
80
|
+
defaultShoppingMode: "pickup",
|
|
81
|
+
defaultStoreLocation: {
|
|
82
|
+
latitude: 0,
|
|
83
|
+
longitude: 0,
|
|
84
|
+
},
|
|
85
|
+
disableTprPrice: false,
|
|
86
|
+
documentTitle: "ThryveAI Commerce",
|
|
87
|
+
eircode: undefined,
|
|
88
|
+
enable3dSecure: false,
|
|
89
|
+
enableGoogleTranslate: false,
|
|
90
|
+
enableNewsletterSignup: false,
|
|
91
|
+
enableNotifications: false,
|
|
92
|
+
errorLoggingLevel: "error",
|
|
93
|
+
externalStoreSelectorUrl: undefined,
|
|
94
|
+
flipp: null,
|
|
95
|
+
gtmId: undefined,
|
|
96
|
+
hideTaxOnSummary: false,
|
|
97
|
+
houseAccountRegExValidation: ".",
|
|
98
|
+
idpTarget: "_self",
|
|
99
|
+
idpUrl: undefined,
|
|
100
|
+
instacartUrl: undefined,
|
|
101
|
+
isPlanningOnly: false,
|
|
102
|
+
layout: {
|
|
103
|
+
footerVersion: "default",
|
|
104
|
+
},
|
|
105
|
+
limitProductCardTitleHeight: true,
|
|
106
|
+
loggingLevelClient: "error",
|
|
107
|
+
loggingLevelServer: "error",
|
|
108
|
+
mainHeaderHeight: 110,
|
|
109
|
+
mapZoom: 8,
|
|
110
|
+
minimumCreditCardAmount: 1.0,
|
|
111
|
+
nutritionZone: "us",
|
|
112
|
+
paymentCards: {
|
|
113
|
+
AmExpCard: true,
|
|
114
|
+
DiscoverCard: true,
|
|
115
|
+
MasterCard: true,
|
|
116
|
+
VisaCard: true,
|
|
117
|
+
},
|
|
118
|
+
pdpDetailsLayout: {
|
|
119
|
+
desktop: [],
|
|
120
|
+
mobileTab1: [],
|
|
121
|
+
mobileTab2: [],
|
|
122
|
+
},
|
|
123
|
+
productCardTitleHeight: 40,
|
|
124
|
+
registrationFields: [],
|
|
125
|
+
retailerCountry: "us",
|
|
126
|
+
retailerName: "default",
|
|
127
|
+
daysToRemainSignedIn: 30,
|
|
128
|
+
searchPreview: {
|
|
129
|
+
desktop: {
|
|
130
|
+
products: true,
|
|
131
|
+
suggestions: true,
|
|
132
|
+
},
|
|
133
|
+
mobile: {
|
|
134
|
+
products: true,
|
|
135
|
+
suggestions: true,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
secondTierAuthorization: undefined,
|
|
139
|
+
showCheckoutPromoCode: true,
|
|
140
|
+
showImgOnOrder: false,
|
|
141
|
+
smsNotifications: {
|
|
142
|
+
enabled: false,
|
|
143
|
+
getEnrollmentUrl: "",
|
|
144
|
+
postEnrollmentUrl: "",
|
|
145
|
+
},
|
|
146
|
+
subHeaderHeight: 0,
|
|
147
|
+
promoTemplateVersion: 1,
|
|
148
|
+
useAddressValidation: true,
|
|
149
|
+
restrictMapPlacesResults: {
|
|
150
|
+
fetchNearStoresSettings: {
|
|
151
|
+
kmRange: 20,
|
|
152
|
+
totalTake: 30,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
globalAnimations: {
|
|
156
|
+
confetti: {
|
|
157
|
+
enableConfettiAnimation: true,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
googleAutocompleteSettings: {},
|
|
161
|
+
productCardv2: false,
|
|
162
|
+
};
|
|
163
|
+
exports.default = defaultConfig;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconNamesToFiles = void 0;
|
|
4
|
+
exports.IconNamesToFiles = {
|
|
5
|
+
AccountOutline: "account-outline",
|
|
6
|
+
AccountSolid: "account-solid",
|
|
7
|
+
Addresses: "addresses",
|
|
8
|
+
ArrowDown: "arrow-down",
|
|
9
|
+
ArrowRight: "arrow-right",
|
|
10
|
+
ArrowUpdown: "arrow-updown",
|
|
11
|
+
BarScan: "bar-scan",
|
|
12
|
+
Bell: "bell",
|
|
13
|
+
Blog: "blog",
|
|
14
|
+
Cart: "cart",
|
|
15
|
+
Check: "check",
|
|
16
|
+
ChevronDown: "chevron-down",
|
|
17
|
+
ChevronLeft: "chevron-left",
|
|
18
|
+
ChevronRight: "chevron-right",
|
|
19
|
+
ChevronUp: "chevron-up",
|
|
20
|
+
Circular: "circular",
|
|
21
|
+
Clear: "clear",
|
|
22
|
+
Close: "close",
|
|
23
|
+
Coupon: "coupon",
|
|
24
|
+
Dashboard: "dashboard",
|
|
25
|
+
DeliveryOutline: "delivery-outline",
|
|
26
|
+
DeliverySolid: "delivery-solid",
|
|
27
|
+
Dietary: "dietary",
|
|
28
|
+
DoubleArrows: "double-arrows",
|
|
29
|
+
Download: "download",
|
|
30
|
+
Dropship: "dropship",
|
|
31
|
+
Eco: "eco",
|
|
32
|
+
Edit: "edit",
|
|
33
|
+
Error: "error",
|
|
34
|
+
FaceHappy: "face-happy",
|
|
35
|
+
FaceSad: "face-sad",
|
|
36
|
+
Facebook: "facebook",
|
|
37
|
+
Fav: "fav",
|
|
38
|
+
FavSolid: "fav-solid",
|
|
39
|
+
Filter: "filter",
|
|
40
|
+
Flag: "flag",
|
|
41
|
+
Geolocate: "geolocate",
|
|
42
|
+
Hamburger: "hamburger",
|
|
43
|
+
Help: "help",
|
|
44
|
+
Home: "home",
|
|
45
|
+
Info: "info",
|
|
46
|
+
Instacart: "instacart",
|
|
47
|
+
Instagram: "instagram",
|
|
48
|
+
ItemLocation: "item-location",
|
|
49
|
+
ListCheck: "list-check",
|
|
50
|
+
ListItems: "list-items",
|
|
51
|
+
ListLarge: "list-large",
|
|
52
|
+
ListRemove: "list-remove",
|
|
53
|
+
ListSave: "list-save",
|
|
54
|
+
ListSearch: "list-search",
|
|
55
|
+
LocationPin: "location-pin",
|
|
56
|
+
LocationDistance: "location-distance",
|
|
57
|
+
LoyaltyCard: "loyaltycard",
|
|
58
|
+
Mail: "mail",
|
|
59
|
+
Minus: "minus",
|
|
60
|
+
MoreOptionsH: "more-options-h",
|
|
61
|
+
MoreOptionsV: "more-options-v",
|
|
62
|
+
Note: "note",
|
|
63
|
+
Notifications: "notifications",
|
|
64
|
+
NoteFilled: "note-filled",
|
|
65
|
+
Orders: "orders",
|
|
66
|
+
PastPurchases: "past-purchases",
|
|
67
|
+
Pause: "pause",
|
|
68
|
+
PaymentOutline: "payment-outline",
|
|
69
|
+
PaymentSolid: "payment-solid",
|
|
70
|
+
Phone: "phone",
|
|
71
|
+
PhoneMobile: "phone-mobile",
|
|
72
|
+
Pickup: "pickup",
|
|
73
|
+
PickupInfo: "pickup-info",
|
|
74
|
+
Pinterest: "pinterest",
|
|
75
|
+
Plus: "plus",
|
|
76
|
+
Print: "print",
|
|
77
|
+
PromoOutline: "promo-outline",
|
|
78
|
+
PromoSolid: "promo-solid",
|
|
79
|
+
RadioActive: "radio-active",
|
|
80
|
+
RadioEmpty: "radio-empty",
|
|
81
|
+
RecipeCalories: "recipe-calories",
|
|
82
|
+
RecipeCooktime: "recipe-cooktime",
|
|
83
|
+
RecipeIngredients: "recipe-ingredients",
|
|
84
|
+
RecipePreptime: "recipe-preptime",
|
|
85
|
+
RecipeServings: "recipe-servings",
|
|
86
|
+
Remove: "remove",
|
|
87
|
+
Reserve: "reserve",
|
|
88
|
+
ReserveTime: "reserve-time",
|
|
89
|
+
Search: "search",
|
|
90
|
+
SelectCheck: "select-check",
|
|
91
|
+
SelectEmpty: "select-empty",
|
|
92
|
+
SelectMark: "select-mark",
|
|
93
|
+
Send: "send",
|
|
94
|
+
Settings: "settings",
|
|
95
|
+
Share: "share",
|
|
96
|
+
SortGrid: "sort-grid",
|
|
97
|
+
SortList: "sort-list",
|
|
98
|
+
StarOutline: "star-outline",
|
|
99
|
+
StarSolid: "star-solid",
|
|
100
|
+
Substitute: "subtitute",
|
|
101
|
+
SubstituteBestmatch: "subtitute-bestmatch",
|
|
102
|
+
SubstituteNone: "subtitute-none",
|
|
103
|
+
SubstituteProduct: "subtitute-product",
|
|
104
|
+
Trash: "trash",
|
|
105
|
+
Twitter: "twitter",
|
|
106
|
+
Unavailable: "unavailable",
|
|
107
|
+
Voice: "voice",
|
|
108
|
+
Warning: "warning",
|
|
109
|
+
Youtube: "youtube",
|
|
110
|
+
YourLocation: "your-location",
|
|
111
|
+
GlutenFree: "Gluten-Free",
|
|
112
|
+
Local: "Local",
|
|
113
|
+
Organic: "Organic",
|
|
114
|
+
None: "None",
|
|
115
|
+
VisaLogo: "visa-logo",
|
|
116
|
+
MasterLogo: "master-card-logo",
|
|
117
|
+
VisaCard: "visa-card",
|
|
118
|
+
MasterCard: "master-card-card",
|
|
119
|
+
AmExpCard: "american-express-card",
|
|
120
|
+
DiscoverCard: "discover-card",
|
|
121
|
+
VisaVerified: "visa-verified",
|
|
122
|
+
MasterSecure: "master-card-secure",
|
|
123
|
+
Comodo: "comodo",
|
|
124
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfig
|
|
|
2
2
|
import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./icons.interfaces";
|
|
3
3
|
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";
|
|
4
4
|
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";
|
|
5
|
+
import AdminSettingsTemplate from "./admin-settings-template";
|
|
6
|
+
import defaultConfig from "./default.config";
|
|
5
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, };
|
|
6
8
|
export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
|
|
7
9
|
export { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, IDefaultRetailerSettings, 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 { AdminSettingsTemplate };
|
|
11
|
+
export { defaultConfig };
|
package/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultConfig = exports.AdminSettingsTemplate = 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; } });
|
|
6
|
+
var admin_settings_template_1 = require("./admin-settings-template");
|
|
7
|
+
exports.AdminSettingsTemplate = admin_settings_template_1.default;
|
|
8
|
+
var default_config_1 = require("./default.config");
|
|
9
|
+
exports.defaultConfig = default_config_1.default;
|
package/package.json
CHANGED