@thryveai/theme-interfaces 2.3.11 → 2.3.12

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 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
+ ```
@@ -88,7 +88,10 @@ export interface IRetailerSettings {
88
88
  export interface IFeatureSwitch {
89
89
  additionalCharges: boolean;
90
90
  clientCache: boolean;
91
- enableVouchers: boolean;
91
+ vouchers: {
92
+ enabled: boolean;
93
+ reCaptcha: boolean;
94
+ };
92
95
  giftCards: IGiftCards;
93
96
  smartbanner: ISmartBanner;
94
97
  }
@@ -99,6 +102,7 @@ export interface IGiftCards {
99
102
  enabled: boolean;
100
103
  gitfCardInputValidation: string;
101
104
  pinInputValidation: string;
105
+ reCaptcha: boolean;
102
106
  }
103
107
  export interface ISmartBanner {
104
108
  enabled: boolean;
@@ -378,7 +378,7 @@ exports.AdminSettingsTemplateSFUI = {
378
378
  title: "Gift Cards",
379
379
  description: "Enables gift cards on the payments section of checkout.",
380
380
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3313598656/Gift+Cards",
381
- type: exports.AdminTemplateInputTypes.checkbox,
381
+ type: exports.AdminTemplateInputTypes.collapsableObject,
382
382
  value: {
383
383
  enabled: {
384
384
  title: "Enable Gift Cards",
@@ -395,13 +395,33 @@ exports.AdminSettingsTemplateSFUI = {
395
395
  description: "Regular expression used for pin validation",
396
396
  type: exports.AdminTemplateInputTypes.inputChar,
397
397
  },
398
+ reCaptcha: {
399
+ title: "Enable reCaptcha",
400
+ description: "Enables reCaptcha validation feature.",
401
+ type: exports.AdminTemplateInputTypes.checkbox,
402
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327885553/ReCaptcha+validation",
403
+ },
398
404
  },
399
405
  },
400
- enableVouchers: {
406
+ vouchers: {
401
407
  title: "Voucher",
402
408
  description: "Enables voucher on checkout page (requires integration).",
403
409
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304947761/Vouchers",
404
- type: exports.AdminTemplateInputTypes.checkbox,
410
+ type: exports.AdminTemplateInputTypes.collapsableObject,
411
+ value: {
412
+ enabled: {
413
+ title: "Enable Vouchers",
414
+ description: "Enables vouchers feature.",
415
+ type: exports.AdminTemplateInputTypes.checkbox,
416
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304947761/Vouchers",
417
+ },
418
+ reCaptcha: {
419
+ title: "Enable reCaptcha",
420
+ description: "Enables reCaptcha validation feature.",
421
+ type: exports.AdminTemplateInputTypes.checkbox,
422
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327885553/ReCaptcha+validation",
423
+ },
424
+ },
405
425
  },
406
426
  smartbanner: {
407
427
  title: "Smart Banner",
@@ -484,7 +504,7 @@ exports.AdminSettingsTemplateSFUI = {
484
504
  description: "Allows the customer to add to cart without being logged in.",
485
505
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3327983631/Anonymous+Cart",
486
506
  type: exports.AdminTemplateInputTypes.checkbox,
487
- }
507
+ },
488
508
  },
489
509
  },
490
510
  // flipp: {
@@ -193,8 +193,12 @@ var DefaultConfigSFUI = {
193
193
  enabled: false,
194
194
  gitfCardInputValidation: "^[0-9]{17}$",
195
195
  pinInputValidation: "^[0-9]{4}$",
196
+ reCaptcha: false,
197
+ },
198
+ vouchers: {
199
+ enabled: false,
200
+ reCaptcha: false,
196
201
  },
197
- enableVouchers: false,
198
202
  smartbanner: {
199
203
  enabled: false,
200
204
  author: "",
@@ -211,7 +215,7 @@ var DefaultConfigSFUI = {
211
215
  },
212
216
  },
213
217
  siteSettings: {
214
- anonymousCart: false
218
+ anonymousCart: false,
215
219
  },
216
220
  specialRequestItems: false,
217
221
  sodiumWarning: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",