@thryveai/theme-interfaces 2.3.3 → 2.3.6
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/dist/interfaces/default-theme.interface.d.ts +3 -0
- package/dist/interfaces/retailer-settings.interfaces.d.ts +5 -1
- package/dist/interfaces/theme.interfaces.d.ts +3 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +20 -3
- package/dist/storefront/defaultSettingsStorefront.js +5 -1
- package/dist/storefront/defaultThemeStorefront.js +1 -0
- package/package.json +1 -1
|
@@ -88,7 +88,11 @@ export interface IFeatureSwitch {
|
|
|
88
88
|
additionalCharges: boolean;
|
|
89
89
|
clientCache: boolean;
|
|
90
90
|
enableVouchers: boolean;
|
|
91
|
-
giftCards:
|
|
91
|
+
giftCards: {
|
|
92
|
+
enabled: boolean;
|
|
93
|
+
gitfCardInputValidation: string;
|
|
94
|
+
pinInputValidation: string;
|
|
95
|
+
};
|
|
92
96
|
smartbanner: ISmartBanner;
|
|
93
97
|
}
|
|
94
98
|
export interface ISmartBanner {
|
|
@@ -360,7 +360,7 @@ exports.AdminSettingsTemplateSFUI = {
|
|
|
360
360
|
title: "Features",
|
|
361
361
|
description: "These are non-essential enhancements and integrations, the storefront will function without these.",
|
|
362
362
|
type: exports.AdminTemplateInputTypes.collapsableObject,
|
|
363
|
-
helpLink:
|
|
363
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304816658/Features",
|
|
364
364
|
value: {
|
|
365
365
|
additionalCharges: {
|
|
366
366
|
title: "Additional Charges",
|
|
@@ -372,13 +372,30 @@ exports.AdminSettingsTemplateSFUI = {
|
|
|
372
372
|
title: "Browser API Caching",
|
|
373
373
|
description: "Enable cache for clients on the browser",
|
|
374
374
|
type: exports.AdminTemplateInputTypes.checkbox,
|
|
375
|
-
helpLink:
|
|
375
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304783908/Client+Cache",
|
|
376
376
|
},
|
|
377
377
|
giftCards: {
|
|
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
381
|
type: exports.AdminTemplateInputTypes.checkbox,
|
|
382
|
+
value: {
|
|
383
|
+
enabled: {
|
|
384
|
+
title: "Enable Gift Cards",
|
|
385
|
+
description: "Enables gift cards feature.",
|
|
386
|
+
type: exports.AdminTemplateInputTypes.checkbox,
|
|
387
|
+
},
|
|
388
|
+
gitfCardInputValidation: {
|
|
389
|
+
title: "Gift Card Input Validation",
|
|
390
|
+
description: "Regular expression used for giftcard validation",
|
|
391
|
+
type: exports.AdminTemplateInputTypes.inputChar,
|
|
392
|
+
},
|
|
393
|
+
pinInputValidation: {
|
|
394
|
+
title: "Gift Card Pin Validation",
|
|
395
|
+
description: "Regular expression used for pin validation",
|
|
396
|
+
type: exports.AdminTemplateInputTypes.inputChar,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
382
399
|
},
|
|
383
400
|
enableVouchers: {
|
|
384
401
|
title: "Voucher",
|
|
@@ -389,7 +406,7 @@ exports.AdminSettingsTemplateSFUI = {
|
|
|
389
406
|
smartbanner: {
|
|
390
407
|
title: "Smart Banner",
|
|
391
408
|
description: "Render smart banner on mobile views",
|
|
392
|
-
helpLink:
|
|
409
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304849441/Smart+Banner",
|
|
393
410
|
type: exports.AdminTemplateInputTypes.collapsableObject,
|
|
394
411
|
value: {
|
|
395
412
|
enabled: {
|
|
@@ -189,7 +189,11 @@ var DefaultConfigSFUI = {
|
|
|
189
189
|
features: {
|
|
190
190
|
additionalCharges: false,
|
|
191
191
|
clientCache: false,
|
|
192
|
-
giftCards:
|
|
192
|
+
giftCards: {
|
|
193
|
+
enabled: false,
|
|
194
|
+
gitfCardInputValidation: "/^d{17}$/",
|
|
195
|
+
pinInputValidation: "/^d{4}$/",
|
|
196
|
+
},
|
|
193
197
|
enableVouchers: false,
|
|
194
198
|
smartbanner: {
|
|
195
199
|
enabled: false,
|