iglooform 2.4.21 → 2.4.22

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.
@@ -308,7 +308,7 @@ var Element = function Element(_ref) {
308
308
  children: [error && !!error.length && _jsx(AlertFilled, {
309
309
  className: "igloo-element-preview-value-icon"
310
310
  }, void 0), _jsx("div", {
311
- children: previewFormater ? previewFormater(value, form) : JSON.stringify(value)
311
+ children: previewFormater ? previewFormater(value, form) : _typeof(value) === 'object' ? JSON.stringify(value) : value
312
312
  }, void 0)]
313
313
  }, void 0)]
314
314
  }, void 0)
@@ -263,7 +263,7 @@ var Element = function Element(props) {
263
263
  children: [error && !!error.length && _jsx(AlertFilled, {
264
264
  className: "igloo-freeform-element-preview-value-icon"
265
265
  }, void 0), _jsx("div", {
266
- children: previewFormater ? previewFormater(value, form) : JSON.stringify(value)
266
+ children: previewFormater ? previewFormater(value, form) : _typeof(value) === 'object' ? JSON.stringify(value) : value
267
267
  }, void 0)]
268
268
  }, void 0)]
269
269
  }, void 0)
@@ -337,7 +337,7 @@ var Element = function Element(_ref) {
337
337
  children: [error && !!error.length && (0, _jsxRuntime.jsx)(_iglooicon.AlertFilled, {
338
338
  className: "igloo-element-preview-value-icon"
339
339
  }, void 0), (0, _jsxRuntime.jsx)("div", {
340
- children: previewFormater ? previewFormater(value, form) : JSON.stringify(value)
340
+ children: previewFormater ? previewFormater(value, form) : _typeof(value) === 'object' ? JSON.stringify(value) : value
341
341
  }, void 0)]
342
342
  }, void 0)]
343
343
  }, void 0)
@@ -289,7 +289,7 @@ var Element = function Element(props) {
289
289
  children: [error && !!error.length && (0, _jsxRuntime.jsx)(_iglooicon.AlertFilled, {
290
290
  className: "igloo-freeform-element-preview-value-icon"
291
291
  }, void 0), (0, _jsxRuntime.jsx)("div", {
292
- children: previewFormater ? previewFormater(value, form) : JSON.stringify(value)
292
+ children: previewFormater ? previewFormater(value, form) : _typeof(value) === 'object' ? JSON.stringify(value) : value
293
293
  }, void 0)]
294
294
  }, void 0)]
295
295
  }, void 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "2.4.21",
3
+ "version": "2.4.22",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",