lucid-extension-sdk 0.0.358 → 0.0.359

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.
@@ -75,6 +75,7 @@ export type TextBadgeSettings = {
75
75
  minheight?: number;
76
76
  maxfontsize?: number;
77
77
  maxtextwidth?: number;
78
+ iswithinpill?: boolean;
78
79
  usingcarduirefresh?: boolean;
79
80
  hasleadingicon?: boolean;
80
81
  };
@@ -69,6 +69,7 @@ var OnClickHandlerKeys;
69
69
  exports.isOnClickHandlerKey = (0, validators_1.enumValidator)(OnClickHandlerKeys);
70
70
  /** @ignore */
71
71
  function serializeLucidCardFieldDisplaySettings(settings) {
72
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
72
73
  return {
73
74
  'StencilConfig': settings.stencilConfig && {
74
75
  'getterKey': settings.stencilConfig.displayType,
@@ -80,14 +81,30 @@ function serializeLucidCardFieldDisplaySettings(settings) {
80
81
  'h': settings.stencilConfig.horizontalPosition,
81
82
  'v': settings.stencilConfig.verticalPosition,
82
83
  'onClickHandlerKey': settings.stencilConfig.onClickHandlerKey,
83
- 'imageBadgeSettings': settings.stencilConfig.imageBadgeSettings,
84
- 'textBadgeSettings': settings.stencilConfig.textBadgeSettings,
84
+ 'imageBadgeSettings': settings.stencilConfig.imageBadgeSettings && {
85
+ 'height': settings.stencilConfig.imageBadgeSettings.height,
86
+ 'width': settings.stencilConfig.imageBadgeSettings.width,
87
+ },
88
+ 'textBadgeSettings': {
89
+ 'rounding': (_a = settings.stencilConfig.textBadgeSettings) === null || _a === void 0 ? void 0 : _a.rounding,
90
+ 'bold': (_b = settings.stencilConfig.textBadgeSettings) === null || _b === void 0 ? void 0 : _b.bold,
91
+ 'italic': (_c = settings.stencilConfig.textBadgeSettings) === null || _c === void 0 ? void 0 : _c.italic,
92
+ 'underline': (_d = settings.stencilConfig.textBadgeSettings) === null || _d === void 0 ? void 0 : _d.underline,
93
+ 'minwidth': (_e = settings.stencilConfig.textBadgeSettings) === null || _e === void 0 ? void 0 : _e.minwidth,
94
+ 'minheight': (_f = settings.stencilConfig.textBadgeSettings) === null || _f === void 0 ? void 0 : _f.minheight,
95
+ 'maxfontsize': (_g = settings.stencilConfig.textBadgeSettings) === null || _g === void 0 ? void 0 : _g.maxfontsize,
96
+ 'maxtextwidth': (_h = settings.stencilConfig.textBadgeSettings) === null || _h === void 0 ? void 0 : _h.maxtextwidth,
97
+ 'iswithinpill': (_j = settings.stencilConfig.textBadgeSettings) === null || _j === void 0 ? void 0 : _j.iswithinpill,
98
+ 'usingcarduirefresh': (_k = settings.stencilConfig.textBadgeSettings) === null || _k === void 0 ? void 0 : _k.usingcarduirefresh,
99
+ 'hasleadingicon': (_l = settings.stencilConfig.textBadgeSettings) === null || _l === void 0 ? void 0 : _l.hasleadingicon,
100
+ },
85
101
  },
86
102
  };
87
103
  }
88
104
  exports.serializeLucidCardFieldDisplaySettings = serializeLucidCardFieldDisplaySettings;
89
105
  /** @ignore */
90
106
  function deserializeLucidCardFieldDisplaySettings(settings) {
107
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
91
108
  return {
92
109
  stencilConfig: settings['StencilConfig'] && {
93
110
  displayType: settings['StencilConfig']['getterKey'],
@@ -99,8 +116,23 @@ function deserializeLucidCardFieldDisplaySettings(settings) {
99
116
  horizontalPosition: settings['StencilConfig']['h'],
100
117
  verticalPosition: settings['StencilConfig']['v'],
101
118
  onClickHandlerKey: settings['StencilConfig']['onClickHandlerKey'],
102
- imageBadgeSettings: settings['StencilConfig']['imageBadgeSettings'],
103
- textBadgeSettings: settings['StencilConfig']['textBadgeSettings'],
119
+ imageBadgeSettings: settings['StencilConfig']['imageBadgeSettings'] && {
120
+ height: settings['StencilConfig']['imageBadgeSettings']['height'],
121
+ width: settings['StencilConfig']['imageBadgeSettings']['width'],
122
+ },
123
+ textBadgeSettings: {
124
+ rounding: (_a = settings['StencilConfig']['textBadgeSettings']) === null || _a === void 0 ? void 0 : _a['rounding'],
125
+ bold: (_b = settings['StencilConfig']['textBadgeSettings']) === null || _b === void 0 ? void 0 : _b['bold'],
126
+ italic: (_c = settings['StencilConfig']['textBadgeSettings']) === null || _c === void 0 ? void 0 : _c['italic'],
127
+ underline: (_d = settings['StencilConfig']['textBadgeSettings']) === null || _d === void 0 ? void 0 : _d['underline'],
128
+ minwidth: (_e = settings['StencilConfig']['textBadgeSettings']) === null || _e === void 0 ? void 0 : _e['minwidth'],
129
+ minheight: (_f = settings['StencilConfig']['textBadgeSettings']) === null || _f === void 0 ? void 0 : _f['minheight'],
130
+ maxfontsize: (_g = settings['StencilConfig']['textBadgeSettings']) === null || _g === void 0 ? void 0 : _g['maxfontsize'],
131
+ maxtextwidth: (_h = settings['StencilConfig']['textBadgeSettings']) === null || _h === void 0 ? void 0 : _h['maxtextwidth'],
132
+ iswithinpill: (_j = settings['StencilConfig']['textBadgeSettings']) === null || _j === void 0 ? void 0 : _j['iswithinpill'],
133
+ usingcarduirefresh: (_k = settings['StencilConfig']['textBadgeSettings']) === null || _k === void 0 ? void 0 : _k['usingcarduirefresh'],
134
+ hasleadingicon: (_l = settings['StencilConfig']['textBadgeSettings']) === null || _l === void 0 ? void 0 : _l['hasleadingicon'],
135
+ },
104
136
  },
105
137
  };
106
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.358",
3
+ "version": "0.0.359",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",