@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.
@@ -270,6 +270,9 @@ export interface IDefaultThemeInterface {
270
270
  visited: ILinkType;
271
271
  };
272
272
  };
273
+ buttonLinks: {
274
+ color: string;
275
+ };
273
276
  buttons: {
274
277
  globalThemeBorderRadius: string;
275
278
  globalThemeFontWeight: IFontWeights;
@@ -88,7 +88,11 @@ export interface IFeatureSwitch {
88
88
  additionalCharges: boolean;
89
89
  clientCache: boolean;
90
90
  enableVouchers: boolean;
91
- giftCards: boolean;
91
+ giftCards: {
92
+ enabled: boolean;
93
+ gitfCardInputValidation: string;
94
+ pinInputValidation: string;
95
+ };
92
96
  smartbanner: ISmartBanner;
93
97
  }
94
98
  export interface ISmartBanner {
@@ -284,6 +284,9 @@ export interface IThemeInterface {
284
284
  visited?: ILinkType;
285
285
  };
286
286
  };
287
+ buttonLinks?: {
288
+ color?: string;
289
+ };
287
290
  buttons?: {
288
291
  globalThemeBorderRadius?: string;
289
292
  globalThemeFontWeight?: IFontWeights;
@@ -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: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304816658/Features',
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: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304783908/Client+Cache'
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: 'https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3304849441/Smart+Banner',
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: false,
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,
@@ -595,6 +595,7 @@ var DefaultThemeSFUI = function (colors) {
595
595
  }
596
596
  }
597
597
  },
598
+ buttonLinks: { color: colors.primary1 },
598
599
  buttons: {
599
600
  globalThemeBorderRadius: exports.globalTheme.BorderRadius,
600
601
  globalThemeFontWeight: exports.globalTheme.FontWeightBold,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "2.3.3",
3
+ "version": "2.3.6",
4
4
  "description": "Shared interfaces and defaults for all Wynshop themed apps.",
5
5
  "scripts": {
6
6
  "build": "tsc",