@thryveai/theme-interfaces 2.7.1 → 2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/interfaces/admin-settings-interfaces.d.ts +1 -1
  2. package/dist/interfaces/retailer-settings.interfaces.d.ts +1 -0
  3. package/dist/storefront/SFUISettingsTemplate.AdminUi.d.ts +2 -0
  4. package/dist/storefront/SFUISettingsTemplate.AdminUi.js +840 -36
  5. package/dist/storefront/defaultIconsStorefront.js +2 -2
  6. package/dist/storefront/defaultSettingsStorefront.js +1 -0
  7. package/package.json +29 -29
  8. package/dist/storefront/SFUISettingsTemplates/accountPage.template.d.ts +0 -3
  9. package/dist/storefront/SFUISettingsTemplates/accountPage.template.js +0 -76
  10. package/dist/storefront/SFUISettingsTemplates/addressSettings.template.d.ts +0 -3
  11. package/dist/storefront/SFUISettingsTemplates/addressSettings.template.js +0 -136
  12. package/dist/storefront/SFUISettingsTemplates/adminPanelOnly.template.d.ts +0 -3
  13. package/dist/storefront/SFUISettingsTemplates/adminPanelOnly.template.js +0 -16
  14. package/dist/storefront/SFUISettingsTemplates/cartSummary.template.d.ts +0 -3
  15. package/dist/storefront/SFUISettingsTemplates/cartSummary.template.js +0 -24
  16. package/dist/storefront/SFUISettingsTemplates/common.d.ts +0 -2
  17. package/dist/storefront/SFUISettingsTemplates/common.js +0 -28
  18. package/dist/storefront/SFUISettingsTemplates/features.template.d.ts +0 -3
  19. package/dist/storefront/SFUISettingsTemplates/features.template.js +0 -317
  20. package/dist/storefront/SFUISettingsTemplates/siteSettings.template.d.ts +0 -3
  21. package/dist/storefront/SFUISettingsTemplates/siteSettings.template.js +0 -180
  22. package/dist/storefront/SFUISettingsTemplates/welcomeModal.template.d.ts +0 -3
  23. package/dist/storefront/SFUISettingsTemplates/welcomeModal.template.js +0 -27
@@ -1,13 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdminSettingsTemplateSFUI = exports.AdminTemplateInputTypes = void 0;
4
- var accountPage_template_1 = require("./SFUISettingsTemplates/accountPage.template");
5
- var addressSettings_template_1 = require("./SFUISettingsTemplates/addressSettings.template");
6
- var adminPanelOnly_template_1 = require("./SFUISettingsTemplates/adminPanelOnly.template");
7
- var cartSummary_template_1 = require("./SFUISettingsTemplates/cartSummary.template");
8
- var features_template_1 = require("./SFUISettingsTemplates/features.template");
9
- var siteSettings_template_1 = require("./SFUISettingsTemplates/siteSettings.template");
10
- var welcomeModal_template_1 = require("./SFUISettingsTemplates/welcomeModal.template");
3
+ exports.AdminSettingsTemplateSFUI = exports.validationTypes = exports.AdminTemplateInputTypes = void 0;
11
4
  exports.AdminTemplateInputTypes = {
12
5
  checkbox: "checkbox",
13
6
  collapsableObject: "collapsableObject",
@@ -22,43 +15,634 @@ exports.AdminTemplateInputTypes = {
22
15
  string: "string",
23
16
  array: "array",
24
17
  };
18
+ exports.validationTypes = [
19
+ "luhnValidation",
20
+ "alphaNumeric",
21
+ "alphaOnly",
22
+ "numericOnly",
23
+ "anyPhone",
24
+ "email",
25
+ "password",
26
+ "required",
27
+ "usPhone",
28
+ "usMobileNumber",
29
+ "caPhone",
30
+ "auPhone",
31
+ "iePhone",
32
+ "caProvince",
33
+ "usState",
34
+ "auState",
35
+ "ieCounty",
36
+ "caPostCode",
37
+ "usPostCode",
38
+ "auPostCode",
39
+ "iePostCode",
40
+ "noSpecialChar",
41
+ "correctDate",
42
+ ];
25
43
  exports.AdminSettingsTemplateSFUI = {
26
44
  adminPanelOnly: {
27
45
  title: "Retailer Details",
28
46
  description: "Only used to identify the banner in the admin panel",
29
47
  type: exports.AdminTemplateInputTypes.collapsableObject,
30
- value: adminPanelOnly_template_1.AdminPanelOnlyTemplate,
31
- },
32
- accountPage: {
33
- title: "Account Page",
34
- description: "Account page settings",
35
- type: exports.AdminTemplateInputTypes.collapsableObject,
36
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784302/Account+Page",
37
- value: accountPage_template_1.AccountPageTemplate,
38
- },
39
- addressSettings: {
40
- title: "Address Settings",
41
- description: "Controls how the user can add an address",
42
- type: exports.AdminTemplateInputTypes.collapsableObject,
43
- value: addressSettings_template_1.AddressSettingsTemplate,
44
- },
45
- cartSummary: {
46
- title: "Cart & Order Summary",
47
- description: "Settings for the Cart or Order Summary section",
48
- type: exports.AdminTemplateInputTypes.collapsableObject,
49
- value: cartSummary_template_1.CartSummaryTemplate,
50
- },
51
- checkout: {
52
- title: "Checkout Summary",
53
- description: "Coming Soon",
54
- type: exports.AdminTemplateInputTypes.collapsableObject,
48
+ value: {
49
+ bannerName: {
50
+ title: "Retailer Name",
51
+ description: "Set the banner name here.",
52
+ type: exports.AdminTemplateInputTypes.inputChar,
53
+ },
54
+ logoUrl: {
55
+ title: "Retailer Logo",
56
+ description: "Set a logo here to help identify the banner.",
57
+ type: exports.AdminTemplateInputTypes.images,
58
+ },
59
+ },
55
60
  },
61
+ // accountPage: {
62
+ // title: "Account Page",
63
+ // description: "Account page settings",
64
+ // type: AdminTemplateInputTypes.collapsableObject,
65
+ // helpLink:
66
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784302/Account+Page",
67
+ // value: {
68
+ // loyaltyTab: {
69
+ // title: "Loyalty Tab",
70
+ // description: "Set up Loyalty Tab on account page",
71
+ // type: AdminTemplateInputTypes.collapsableObject,
72
+ // value: {
73
+ // enabled: {
74
+ // title: "Enable Loyalty Tab",
75
+ // description: "Enable Loyalty tab section within My Account page",
76
+ // type: AdminTemplateInputTypes.checkbox,
77
+ // },
78
+ // disabledEdit: {
79
+ // title: "Disable Loyalty edit",
80
+ // description: "Prevent users to change their loyalty number",
81
+ // type: AdminTemplateInputTypes.checkbox,
82
+ // },
83
+ // loyaltyNumberLength: {
84
+ // title: "Loyalty Number Length",
85
+ // description: "Control the loyalty number length",
86
+ // type: AdminTemplateInputTypes.inputNumber,
87
+ // },
88
+ // loyaltyNumberPrefix: {
89
+ // title: "Loyalty Number Prefix",
90
+ // description:
91
+ // "Add hardcoded prefix for loyalty numbers (this will affect the length)",
92
+ // type: AdminTemplateInputTypes.inputChar,
93
+ // },
94
+ // loyaltyValidationType: {
95
+ // title: "Loyalty Number Validation",
96
+ // description: "Select loyalty validation types",
97
+ // type: AdminTemplateInputTypes.multiDropdown,
98
+ // options: validationTypes,
99
+ // },
100
+ // },
101
+ // },
102
+ // idp: {
103
+ // title: "IDP",
104
+ // description: "Use an external account page",
105
+ // type: AdminTemplateInputTypes.collapsableObject,
106
+ // value: {
107
+ // enabled: {
108
+ // title: "Enable",
109
+ // description: "Enable the external My Account page",
110
+ // type: AdminTemplateInputTypes.checkbox,
111
+ // },
112
+ // target: {
113
+ // title: "Link Target",
114
+ // description: "Should the link open in the same or new tab?",
115
+ // type: AdminTemplateInputTypes.dropdown,
116
+ // options: ["_self", "_blank"],
117
+ // },
118
+ // url: {
119
+ // title: "Link URL",
120
+ // description: "URL to link to My Account page",
121
+ // type: AdminTemplateInputTypes.inputChar,
122
+ // },
123
+ // },
124
+ // },
125
+ // profileTab: {
126
+ // title: "Profile Tab",
127
+ // description: "Profile Tab settings",
128
+ // type: AdminTemplateInputTypes.collapsableObject,
129
+ // value: {
130
+ // deleteAccountButton: {
131
+ // title: "Delete account button",
132
+ // description:
133
+ // "Enable / disable delete account button on My Account page",
134
+ // helpLink:
135
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3486023742/Delete+account+button",
136
+ // type: AdminTemplateInputTypes.checkbox,
137
+ // },
138
+ // },
139
+ // },
140
+ // },
141
+ // },
142
+ // addressSettings: {
143
+ // title: "Address Settings",
144
+ // description: "Controls how the user can add an address",
145
+ // type: AdminTemplateInputTypes.collapsableObject,
146
+ // value: {
147
+ // addressValidationTypes: {
148
+ // title: "Address Validation",
149
+ // description: "User address validation settings.",
150
+ // helpLink:
151
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274670143/Address+Validation",
152
+ // type: AdminTemplateInputTypes.collapsableObject,
153
+ // value: {
154
+ // addressLine1: {
155
+ // title: "Address Line 1",
156
+ // description: "Sets the validation types for user addresses",
157
+ // type: AdminTemplateInputTypes.multiDropdown,
158
+ // options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
159
+ // },
160
+ // addressLine2: {
161
+ // title: "Address Line 2",
162
+ // description: "Sets the validation types for user addresses",
163
+ // type: AdminTemplateInputTypes.multiDropdown,
164
+ // options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
165
+ // },
166
+ // city: {
167
+ // title: "City",
168
+ // description: "Sets the validation types for user addresses",
169
+ // type: AdminTemplateInputTypes.multiDropdown,
170
+ // options: ["alphaNumeric", "alphaOnly", "required"],
171
+ // },
172
+ // countyProvinceState: {
173
+ // title: "County/Province/State",
174
+ // description: "Sets the validation types for user addresses",
175
+ // type: AdminTemplateInputTypes.multiDropdown,
176
+ // options: [
177
+ // "alphaNumeric",
178
+ // "alphaOnly",
179
+ // "auState",
180
+ // "ieCounty",
181
+ // "usState",
182
+ // "caProvince",
183
+ // "required",
184
+ // ],
185
+ // },
186
+ // familyName: {
187
+ // title: "User's Surname",
188
+ // description: "Sets the validation types for user addresses",
189
+ // type: AdminTemplateInputTypes.multiDropdown,
190
+ // options: ["alphaNumeric", "alphaOnly", "required"],
191
+ // },
192
+ // firstName: {
193
+ // title: "User's first name",
194
+ // description: "Sets the validation types for user addresses",
195
+ // type: AdminTemplateInputTypes.multiDropdown,
196
+ // options: ["alphaNumeric", "alphaOnly", "required"],
197
+ // },
198
+ // instructions: {
199
+ // title: "User Instructions Fields",
200
+ // description:
201
+ // "Validation for the input fields for user instructions",
202
+ // type: AdminTemplateInputTypes.multiDropdown,
203
+ // options: ["alphaNumeric", "alphaOnly", "required", "numericOnly"],
204
+ // },
205
+ // phoneNumber: {
206
+ // title: "Phone Number",
207
+ // description: "The number to be used to contact the user",
208
+ // type: AdminTemplateInputTypes.multiDropdown,
209
+ // options: [
210
+ // "usPhone",
211
+ // "usMobileNumber",
212
+ // "numericOnly",
213
+ // "auPhone",
214
+ // "caPhone",
215
+ // "iePhone",
216
+ // "anyPhone",
217
+ // "required",
218
+ // ],
219
+ // },
220
+ // postCode: {
221
+ // title: "Post / zip code",
222
+ // description: "Sets the validation types for user addresses",
223
+ // type: AdminTemplateInputTypes.multiDropdown,
224
+ // options: [
225
+ // "alphaNumeric",
226
+ // "auPostCode",
227
+ // "caPostCode",
228
+ // "iePostCode",
229
+ // "usPostCode",
230
+ // "numericOnly",
231
+ // "required",
232
+ // ],
233
+ // },
234
+ // smsNumber: {
235
+ // title: "SMS number",
236
+ // description: "Sets the validation types for user addresses",
237
+ // type: AdminTemplateInputTypes.multiDropdown,
238
+ // options: [
239
+ // "usPhone",
240
+ // "usMobileNumber",
241
+ // "numericOnly",
242
+ // "auPhone",
243
+ // "caPhone",
244
+ // "iePhone",
245
+ // "anyPhone",
246
+ // "required",
247
+ // ],
248
+ // },
249
+ // },
250
+ // },
251
+ // eircode: {
252
+ // title: "Eircode",
253
+ // description: "Add a link to the address section",
254
+ // type: AdminTemplateInputTypes.collapsableObject,
255
+ // value: {
256
+ // enabled: {
257
+ // title: "Enable",
258
+ // description: "",
259
+ // type: AdminTemplateInputTypes.checkbox,
260
+ // },
261
+ // url: {
262
+ // title: "Link URL",
263
+ // description: "",
264
+ // type: AdminTemplateInputTypes.inputChar,
265
+ // },
266
+ // },
267
+ // },
268
+ // // integration: {
269
+ // // title: "Address Integration Settings",
270
+ // // description: "Coming Soon",
271
+ // // type: AdminTemplateInputTypes.nullObject,
272
+ // // },
273
+ // useAddressValidation: {
274
+ // title: "useAddressValidation",
275
+ // description: "useAddressValidation",
276
+ // type: AdminTemplateInputTypes.checkbox,
277
+ // },
278
+ // },
279
+ // },
280
+ // cartSummary: {
281
+ // title: "Cart & Order Summary",
282
+ // description: "Settings for the Cart or Order Summary section",
283
+ // type: AdminTemplateInputTypes.collapsableObject,
284
+ // value: {
285
+ // showTaxTotal: {
286
+ // title: "showTaxTotal",
287
+ // description: " ",
288
+ // type: AdminTemplateInputTypes.checkbox,
289
+ // visible: true,
290
+ // },
291
+ // showTaxGroups: {
292
+ // title: "showTaxGroups",
293
+ // description: " ",
294
+ // type: AdminTemplateInputTypes.checkbox,
295
+ // visible: true,
296
+ // },
297
+ // hideTaxOnSummary: {
298
+ // title: "hideTaxOnSummary",
299
+ // description: " ",
300
+ // type: AdminTemplateInputTypes.checkbox,
301
+ // visible: true,
302
+ // },
303
+ // },
304
+ // },
305
+ // checkout: {
306
+ // title: "Checkout Summary",
307
+ // description: "Coming Soon",
308
+ // type: AdminTemplateInputTypes.collapsableObject,
309
+ // },
56
310
  features: {
57
311
  title: "Features",
58
312
  description: "These are non-essential enhancements and integrations, the storefront will function without these.",
59
313
  type: exports.AdminTemplateInputTypes.collapsableObject,
60
314
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304816658/Features",
61
- value: features_template_1.FeaturesTemplate,
315
+ value: {
316
+ // allowInStorePurchases: {
317
+ // title: "InStore Purchases",
318
+ // description:
319
+ // "Show the purchases made in store in the order history (requires integration).",
320
+ // helpLink:
321
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274375221/AllowInStorePurchases",
322
+ // type: AdminTemplateInputTypes.checkbox,
323
+ // group: { id: 2, name: "In-store purchases" },
324
+ // },
325
+ allowPastPurchases: {
326
+ title: "Display PastPurchases",
327
+ description: "Enable displaying past purchases functionality",
328
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274637365/AllowPastPurchases",
329
+ type: exports.AdminTemplateInputTypes.checkbox,
330
+ group: { id: 1, name: "General Features" },
331
+ },
332
+ // additionalCharges: {
333
+ // title: "Additional Charges",
334
+ // description:
335
+ // "Enables additional charges on the payments section of checkout.",
336
+ // helpLink:
337
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274571877/Additional+Charges",
338
+ // type: AdminTemplateInputTypes.checkbox,
339
+ // group: { id: 1, name: "General Features" },
340
+ // },
341
+ // addressIntegrationV2: {
342
+ // title: "addressIntegrationV2",
343
+ // description: "Enables addressIntegrationV2.",
344
+ // helpLink:
345
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274571877/AddressIntegrationV2",
346
+ // type: AdminTemplateInputTypes.checkbox,
347
+ // group: { id: 1, name: "General Features" },
348
+ // },
349
+ promotionDetailsPage: {
350
+ title: "Promotion Details Page",
351
+ description: "Enable Promotion calculator for different promotion detail pages",
352
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3555721239/Promotion+calculator+for+Promotion+Detail+Pages",
353
+ type: exports.AdminTemplateInputTypes.collapsableObject,
354
+ group: { id: 3, name: "Promotion details page" },
355
+ value: {
356
+ bundlePromotionCalculator: {
357
+ title: "Enable bundle promotion calculator",
358
+ description: "Enable promotion calculator for bundle promotions on details Page",
359
+ type: exports.AdminTemplateInputTypes.checkbox,
360
+ },
361
+ nonBundlePromotionCalculator: {
362
+ title: "Enable non bundle promotion calculator",
363
+ description: "Enable promotion calculator for non bundle promotions on details Page",
364
+ type: exports.AdminTemplateInputTypes.checkbox,
365
+ },
366
+ },
367
+ },
368
+ gsaSupportedBrowser: {
369
+ title: "gsaSupportedBrowser",
370
+ description: "Enables a retailer setting to block or unblock users from accessing the storefront using GSA",
371
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274571877/gsaSupportedBrowser",
372
+ type: exports.AdminTemplateInputTypes.checkbox,
373
+ group: { id: 1, name: "General Features" },
374
+ },
375
+ // clientCache: {
376
+ // title: "Browser API Caching",
377
+ // description: "Enable cache for clients on the browser",
378
+ // type: AdminTemplateInputTypes.checkbox,
379
+ // helpLink:
380
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304783908/Client+Cache",
381
+ // },
382
+ // giftCards: {
383
+ // title: "Gift Cards",
384
+ // description: "Enables gift cards on the payments section of checkout.",
385
+ // helpLink:
386
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3313598656/Gift+Cards",
387
+ // type: AdminTemplateInputTypes.collapsableObject,
388
+ // value: {
389
+ // enabled: {
390
+ // title: "Enable Gift Cards",
391
+ // description: "Enables gift cards feature.",
392
+ // type: AdminTemplateInputTypes.checkbox,
393
+ // },
394
+ // giftCardInputValidation: {
395
+ // title: "Gift Card Input Validation",
396
+ // description: "Regular expression used for giftcard validation",
397
+ // type: AdminTemplateInputTypes.inputChar,
398
+ // },
399
+ // pinInputValidation: {
400
+ // title: "Gift Card Pin Validation",
401
+ // description: "Regular expression used for pin validation",
402
+ // type: AdminTemplateInputTypes.inputChar,
403
+ // },
404
+ // reCaptcha: {
405
+ // title: "Enable reCaptcha",
406
+ // description: "Enables reCaptcha validation feature.",
407
+ // type: AdminTemplateInputTypes.checkbox,
408
+ // helpLink:
409
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327885553/ReCaptcha+validation",
410
+ // },
411
+ // },
412
+ // },
413
+ // couponGallery: {
414
+ // title: "Coupon Gallery",
415
+ // description:
416
+ // "Enables Coupon Gallery for user to see all available Coupons on one page",
417
+ // helpLink:
418
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3429171291/Coupon+Gallery",
419
+ // type: AdminTemplateInputTypes.collapsableObject,
420
+ // value: {
421
+ // enabled: {
422
+ // title: "Enable coupon gallery",
423
+ // description:
424
+ // "Enable coupon gallery feature, please select another option below to fully activate feature",
425
+ // type: AdminTemplateInputTypes.checkbox,
426
+ // },
427
+ // galleryIsIframe: {
428
+ // title: "Enable coupon gallery internal page",
429
+ // description: "Enable coupon gallery Iframe feature within the app",
430
+ // type: AdminTemplateInputTypes.checkbox,
431
+ // },
432
+ // galleryHasNavLink: {
433
+ // title: "Enable coupon gallery external page",
434
+ // description:
435
+ // "Enable coupon gallery link to external page not in the app",
436
+ // type: AdminTemplateInputTypes.checkbox,
437
+ // },
438
+ // },
439
+ // },
440
+ // vouchers: {
441
+ // title: "Voucher",
442
+ // description: "Enables voucher on checkout page (requires integration).",
443
+ // helpLink:
444
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304947761/Vouchers",
445
+ // type: AdminTemplateInputTypes.collapsableObject,
446
+ // value: {
447
+ // enabled: {
448
+ // title: "Enable Vouchers",
449
+ // description: "Enables vouchers feature.",
450
+ // type: AdminTemplateInputTypes.checkbox,
451
+ // helpLink:
452
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304947761/Vouchers",
453
+ // },
454
+ // reCaptcha: {
455
+ // title: "Enable reCaptcha",
456
+ // description: "Enables reCaptcha validation feature.",
457
+ // type: AdminTemplateInputTypes.checkbox,
458
+ // helpLink:
459
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327885553/ReCaptcha+validation",
460
+ // },
461
+ // },
462
+ // },
463
+ // entryModalVersion: {
464
+ // title: "Set entry modal step",
465
+ // description: "Set entry modal step setting.",
466
+ // type: AdminTemplateInputTypes.string,
467
+ // helpLink:
468
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Entry+Modal+Version",
469
+ // },
470
+ hideAlcoholRule: {
471
+ title: "Set if shopping rule modals appears for alcohol",
472
+ description: "Set boolean to control if shopping rule modals appears for alcohol.",
473
+ type: exports.AdminTemplateInputTypes.collapsableObject,
474
+ value: {
475
+ pdp: {
476
+ title: "Disable warning box",
477
+ description: "Disable alcohol warning box on pdp.",
478
+ type: exports.AdminTemplateInputTypes.checkbox,
479
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
480
+ },
481
+ modal: {
482
+ title: "Disable warning modal",
483
+ description: "Disable alcohol warning modal popup.",
484
+ type: exports.AdminTemplateInputTypes.checkbox,
485
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
486
+ },
487
+ productCard: {
488
+ title: "Disable shopping rule label",
489
+ description: "Disable alchohol rule label in Product Cards.",
490
+ type: exports.AdminTemplateInputTypes.checkbox,
491
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
492
+ },
493
+ },
494
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3344302081/Hide+Alcohol+Rule",
495
+ },
496
+ // enableGoogleTranslate: {
497
+ // title: "Enable Google Translate",
498
+ // description: "Enable google translation display and functionality",
499
+ // helpLink:
500
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276275734/Enable+Google+Translate",
501
+ // type: AdminTemplateInputTypes.checkbox,
502
+ // },
503
+ // enableNewsletterSignup: {
504
+ // title: "Enable Newsletter",
505
+ // description: "Enable newsletter signup functionality",
506
+ // helpLink:
507
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276144678/Enable+Newsletter",
508
+ // type: AdminTemplateInputTypes.checkbox,
509
+ // },
510
+ enableNotifications: {
511
+ title: "Enable Notifications",
512
+ description: "Enable notifications functionality",
513
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276177422/Enable+Notifications",
514
+ type: exports.AdminTemplateInputTypes.checkbox,
515
+ },
516
+ externalStoreSelectorUrl: {
517
+ title: "External Store Selector Url",
518
+ description: "Shows a link back to previous shopping platform, seen on store selection modal.This is generally used for an existing site that has not migrated all their stores to WynShop.",
519
+ type: exports.AdminTemplateInputTypes.collapsableObject,
520
+ value: {
521
+ enabled: {
522
+ title: "Enabled",
523
+ description: "This will enabled the url",
524
+ type: exports.AdminTemplateInputTypes.checkbox,
525
+ },
526
+ url: {
527
+ title: "Link to other platform",
528
+ description: "This will link to the previous platform",
529
+ type: exports.AdminTemplateInputTypes.inputChar,
530
+ },
531
+ },
532
+ },
533
+ // flipp: {
534
+ // title: "Flipp Circulars",
535
+ // description: "Configure Flipp circulars integration",
536
+ // type: AdminTemplateInputTypes.nullObject,
537
+ // value: {
538
+ // version: {
539
+ // title: "Version",
540
+ // description: "Will you use version 1 or version 2?",
541
+ // type: AdminTemplateInputTypes.checkbox,
542
+ // },
543
+ // retailer: {
544
+ // title: "Retailer Name",
545
+ // description: "The retailer setting from flipp",
546
+ // type: AdminTemplateInputTypes.inputChar,
547
+ // },
548
+ // merchantId: {
549
+ // title: "Merchant Id",
550
+ // description: "The merchant Id setting from flipp",
551
+ // type: AdminTemplateInputTypes.inputChar,
552
+ // },
553
+ // accessToken: {
554
+ // title: "Access Token",
555
+ // description: "The access token setting from flipp",
556
+ // type: AdminTemplateInputTypes.inputChar,
557
+ // },
558
+ // zoom: {
559
+ // title: "Zoom Level",
560
+ // description: "The viewport width percentage for flipp rendering",
561
+ // type: AdminTemplateInputTypes.dropdown,
562
+ // options: [100, 95, 90, 85, 80, 75, 70, 65, 60],
563
+ // },
564
+ // locale: {
565
+ // title: "Locale",
566
+ // description: "The locale of flipp flyers",
567
+ // type: AdminTemplateInputTypes.inputChar,
568
+ // },
569
+ // hideHeader: {
570
+ // title: "hideHeader",
571
+ // description:
572
+ // "Setting to toggle visibility of the flipp navigation header",
573
+ // type: AdminTemplateInputTypes.checkbox,
574
+ // },
575
+ // },
576
+ // },
577
+ smartbanner: {
578
+ title: "Smart Banner",
579
+ description: "Render smart banner on mobile views",
580
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304849441/Smart+Banner",
581
+ type: exports.AdminTemplateInputTypes.collapsableObject,
582
+ value: {
583
+ enabled: {
584
+ title: "Enable",
585
+ description: "Enable smart banner",
586
+ type: exports.AdminTemplateInputTypes.checkbox,
587
+ },
588
+ title: {
589
+ title: "Title",
590
+ description: "Smart banner title",
591
+ type: exports.AdminTemplateInputTypes.inputChar,
592
+ },
593
+ author: {
594
+ title: "Author",
595
+ description: "Smart banner author",
596
+ type: exports.AdminTemplateInputTypes.inputChar,
597
+ },
598
+ price: {
599
+ title: "Price",
600
+ description: "Smart banner price",
601
+ type: exports.AdminTemplateInputTypes.inputChar,
602
+ },
603
+ priceSuffixApple: {
604
+ title: "Apple Price Suffix",
605
+ description: "Smart banner price suffix for Apple devices",
606
+ type: exports.AdminTemplateInputTypes.inputChar,
607
+ },
608
+ priceSuffixGoogle: {
609
+ title: "Google Price Suffix",
610
+ description: "Smart banner price suffix for Google devices",
611
+ type: exports.AdminTemplateInputTypes.inputChar,
612
+ },
613
+ iconApple: {
614
+ title: "Apple Icon",
615
+ description: "Smart banner icon for Apple devices",
616
+ type: exports.AdminTemplateInputTypes.inputChar,
617
+ },
618
+ iconGoogle: {
619
+ title: "Google Icon",
620
+ description: "Smart banner icon for Google devices",
621
+ type: exports.AdminTemplateInputTypes.inputChar,
622
+ },
623
+ button: {
624
+ title: "Button",
625
+ description: "Smart banner button text",
626
+ type: exports.AdminTemplateInputTypes.inputChar,
627
+ },
628
+ buttonUrlApple: {
629
+ title: "Apple Button Url",
630
+ description: "Smart banner url for Apple button",
631
+ type: exports.AdminTemplateInputTypes.inputChar,
632
+ },
633
+ buttonUrlGoogle: {
634
+ title: "Google Button Url",
635
+ description: "Smart banner url for Google button",
636
+ type: exports.AdminTemplateInputTypes.inputChar,
637
+ },
638
+ closeLabel: {
639
+ title: "Close Label",
640
+ description: "Smart banner label text",
641
+ type: exports.AdminTemplateInputTypes.inputChar,
642
+ },
643
+ },
644
+ },
645
+ },
62
646
  },
63
647
  // pdpSettings: {
64
648
  // title: "Product Details Page Settings",
@@ -75,7 +659,205 @@ exports.AdminSettingsTemplateSFUI = {
75
659
  description: "These are essential settings, the storefront will NOT function without these.",
76
660
  type: exports.AdminTemplateInputTypes.collapsableObject,
77
661
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3328180235/General+Site+Settings",
78
- value: siteSettings_template_1.SiteSettingsTemplate,
662
+ value: {
663
+ anonymousCart: {
664
+ title: "Anonymous Cart",
665
+ description: "⚠️ Allows the customer to add to cart without being logged in.⚠️ (Setting has side effects)",
666
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327983631/Anonymous+Cart",
667
+ type: exports.AdminTemplateInputTypes.checkbox,
668
+ },
669
+ // ctaButtons: {
670
+ // title: "Call To Action Button Settings",
671
+ // description: "Coming Soon",
672
+ // type: AdminTemplateInputTypes.nullObject,
673
+ // },
674
+ daysToRemainSignedIn: {
675
+ title: "Sign In Days",
676
+ description: "Time in days to remain signed in in the app",
677
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
678
+ type: exports.AdminTemplateInputTypes.inputNumber,
679
+ },
680
+ defaultCountry: {
681
+ title: "Default country",
682
+ description: "Select the default country",
683
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
684
+ type: exports.AdminTemplateInputTypes.dropdown,
685
+ options: ["USA", "CAN", "IRE", "AUS"],
686
+ },
687
+ defaultShoppingMode: {
688
+ title: "Default Shopping Mode",
689
+ description: "Shopping mode the site defaults to when a user lands and has not registered.",
690
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3272999110/Default+Shopping+Mode",
691
+ type: exports.AdminTemplateInputTypes.dropdown,
692
+ options: ["pickup", "planning", "delivery"],
693
+ },
694
+ defaultTabView: {
695
+ title: "Default Tab View",
696
+ description: "The default tab displayed on modals like store selection",
697
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3708780694/Default+Tab+View",
698
+ type: exports.AdminTemplateInputTypes.dropdown,
699
+ options: ["list", "map"],
700
+ },
701
+ disableTprPrice: {
702
+ title: "Disable TPR Price",
703
+ description: "Disable the display of tpr pricing",
704
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276177413/Disable+TPR+Price",
705
+ type: exports.AdminTemplateInputTypes.checkbox,
706
+ },
707
+ // defaultStoreLocation: {
708
+ // title: "Default Store Location",
709
+ // description:
710
+ // "Used to center the store selector map to the retailers region. Without setting this, the map defaults to central Africa.",
711
+ // type: AdminTemplateInputTypes.collapsableObject,
712
+ // helpLink:
713
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784259/Default+Store+Location",
714
+ // value: {
715
+ // latitude: {
716
+ // title: "Latitude",
717
+ // description: "",
718
+ // type: AdminTemplateInputTypes.inputNumber,
719
+ // },
720
+ // longitude: {
721
+ // title: "Longitude",
722
+ // description: "",
723
+ // type: AdminTemplateInputTypes.inputNumber,
724
+ // },
725
+ // },
726
+ // },
727
+ gtmId: {
728
+ title: "GTM ID",
729
+ description: "Google Tag Manager ID",
730
+ type: exports.AdminTemplateInputTypes.inputChar,
731
+ },
732
+ hideWelcomeModalOnCorporate: {
733
+ title: "Hide Welcome Modal on Corporate",
734
+ description: "Enable to hide the initial welcome modal selection screen when on corporate store",
735
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3472326883/Hide+Welcome+Modal+on+Corporate",
736
+ type: exports.AdminTemplateInputTypes.checkbox,
737
+ },
738
+ // isPlanningOnly: {
739
+ // title: "Planning Only",
740
+ // description:
741
+ // "Enable if planning mode is the only available shopping method",
742
+ // helpLink:
743
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
744
+ // type: AdminTemplateInputTypes.checkbox,
745
+ // },
746
+ // RemoveAllOutOfStock: {
747
+ // title: "RemoveAllOutOfStock Button",
748
+ // description:
749
+ // "Disable RemoveAllOutOfStock to hide RemoveAllOutOfStock button",
750
+ // helpLink:
751
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
752
+ // type: AdminTemplateInputTypes.checkbox,
753
+ // },
754
+ // mapZoom: {
755
+ // title: "Map Zoom",
756
+ // description: "Use to change the google maps zoom level",
757
+ // helpLink:
758
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
759
+ // type: AdminTemplateInputTypes.inputNumber,
760
+ // },
761
+ // maintainCustomerJourney: {
762
+ // title: "Maintain customer journey",
763
+ // description:
764
+ // "Use to navigate back to the page you were after login/store selection etc...",
765
+ // helpLink:
766
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3373695163/Maintain+customer+journey",
767
+ // type: AdminTemplateInputTypes.checkbox,
768
+ // },
769
+ // maintainCustomerPreferences: {
770
+ // title: "Maintain customer preferences",
771
+ // description:
772
+ // "View and modify customer preferences: marketing preferences, substitution preferences, etc.",
773
+ // helpLink:
774
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3405381666/Maintain+customer+preferences",
775
+ // type: AdminTemplateInputTypes.collapsableObject,
776
+ // value: {
777
+ // enabled: {
778
+ // title: "Enable",
779
+ // description: "Enable Maintain customer preferences",
780
+ // type: AdminTemplateInputTypes.checkbox,
781
+ // },
782
+ // optInMarketingPreferences: {
783
+ // title: "Implicit opt in for marketing preferences",
784
+ // description: "Do NOT enable for GDPR compliant clients!",
785
+ // type: AdminTemplateInputTypes.checkbox,
786
+ // },
787
+ // selectOptInMarketingPreferencesStore: {
788
+ // title:
789
+ // "Force selection of exact store you want to receive marketing preferences from",
790
+ // description:
791
+ // "Select store customer wants to receive updates/offers from",
792
+ // type: AdminTemplateInputTypes.checkbox,
793
+ // },
794
+ // sections: {
795
+ // title: "Sections",
796
+ // description: "TODO",
797
+ // type: AdminTemplateInputTypes.checkbox,
798
+ // },
799
+ // },
800
+ // },
801
+ retailerCountry: {
802
+ title: "Retailer country",
803
+ description: "Select the retailer country",
804
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
805
+ type: exports.AdminTemplateInputTypes.dropdown,
806
+ options: ["us", "ca", "ie", "au"],
807
+ },
808
+ // retailerName: {
809
+ // title: "Retailer Name",
810
+ // description:
811
+ // "Retailers short code e.g the code used for the retailers environment.",
812
+ // helpLink:
813
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
814
+ // type: AdminTemplateInputTypes.inputChar,
815
+ // },
816
+ timeslotModalSettings: {
817
+ title: "Timeslot Modal Settings",
818
+ description: "Force timeslot selection",
819
+ type: exports.AdminTemplateInputTypes.collapsableObject,
820
+ value: {
821
+ showOnAddToCart: {
822
+ title: "Timeslot on Add To Cart",
823
+ description: "Show timeslot popup when user clicks on AddToCart",
824
+ type: exports.AdminTemplateInputTypes.checkbox,
825
+ },
826
+ timeslotRequiredToAddToCart: {
827
+ title: "Force Timeslot on Add To Cart",
828
+ description: "Force a timeslot selection in order to add item in cart",
829
+ type: exports.AdminTemplateInputTypes.checkbox,
830
+ },
831
+ timeslotRequiredToViewCartReview: {
832
+ title: "Force Timeslot on Cart Page",
833
+ description: "Force a timeslot selection in order to view cart page",
834
+ type: exports.AdminTemplateInputTypes.checkbox,
835
+ },
836
+ timeslotRequiredToViewCheckout: {
837
+ title: "Force Timeslot on Checkout",
838
+ description: "Force a timeslot selection in order to view checkout",
839
+ type: exports.AdminTemplateInputTypes.checkbox,
840
+ },
841
+ },
842
+ },
843
+ // useContentEngineV2Components: {
844
+ // title: "Use Content Engine V2 Components",
845
+ // description: "(work in progress)",
846
+ // helpLink:
847
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3478618892/Content+Engine+V2+Components",
848
+ // type: AdminTemplateInputTypes.object,
849
+ // // todo
850
+ // value: {
851
+ // HeroBanner: {
852
+ // description: "Use HeroBanner V2",
853
+ // helpLink:
854
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3478946114/Hero+Banner",
855
+ // title: "Enable HeroBanner V2 component",
856
+ // type: "checkbox",
857
+ // },
858
+ // } as any,
859
+ // },
860
+ },
79
861
  },
80
862
  welcomeModal: {
81
863
  title: "Welcome Modal",
@@ -90,6 +872,28 @@ exports.AdminSettingsTemplateSFUI = {
90
872
  type: "info",
91
873
  },
92
874
  helpLink: "",
93
- value: welcomeModal_template_1.WelcomeModalTemplate,
875
+ value: {
876
+ label: {
877
+ title: "Option Label",
878
+ description: "",
879
+ type: exports.AdminTemplateInputTypes.inputChar,
880
+ },
881
+ href: {
882
+ title: "Link",
883
+ description: "This is the URL to which the button will direct users.",
884
+ type: exports.AdminTemplateInputTypes.inputChar,
885
+ },
886
+ target: {
887
+ title: "Open in",
888
+ description: "",
889
+ type: exports.AdminTemplateInputTypes.dropdown,
890
+ options: ["_blank", "_self", "_parent", "_top"],
891
+ },
892
+ icon: {
893
+ title: "Icon",
894
+ description: "",
895
+ type: exports.AdminTemplateInputTypes.images,
896
+ },
897
+ },
94
898
  },
95
899
  };