@valbuild/react 0.88.0 → 0.90.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/react",
3
- "version": "0.88.0",
3
+ "version": "0.90.0",
4
4
  "private": false,
5
5
  "description": "Val - React internal helpers",
6
6
  "repository": {
@@ -13,9 +13,9 @@
13
13
  "test": "jest"
14
14
  },
15
15
  "dependencies": {
16
- "@valbuild/core": "~0.88.0",
17
- "@valbuild/shared": "~0.88.0",
18
- "@valbuild/ui": "~0.88.0",
16
+ "@valbuild/core": "~0.90.0",
17
+ "@valbuild/shared": "~0.90.0",
18
+ "@valbuild/ui": "~0.90.0",
19
19
  "@vercel/stega": "^0.1.0",
20
20
  "base64-arraybuffer": "^1.0.2"
21
21
  },
@@ -349,15 +349,18 @@ function stegaEncode(input, opts) {
349
349
  });
350
350
  }
351
351
  if (Array.isArray(sourceOrSelector)) {
352
- var a = sourceOrSelector.map(function (el) {
352
+ var arraySelector = sourceOrSelector.map(function (el) {
353
353
  return rec(el, {
354
354
  path: recOpts.path,
355
355
  schema: recOpts.schema
356
356
  });
357
357
  });
358
- return a;
358
+ return arraySelector;
359
359
  } else if (_typeof(sourceOrSelector) === "object") {
360
- var _a = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
360
+ if (!sourceOrSelector) {
361
+ return null;
362
+ }
363
+ var richtextSelector = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
361
364
  var _ref3 = _slicedToArray(_ref2, 2),
362
365
  key = _ref3[0],
363
366
  value = _ref3[1];
@@ -366,7 +369,7 @@ function stegaEncode(input, opts) {
366
369
  schema: recOpts.schema
367
370
  })];
368
371
  }));
369
- return _a;
372
+ return richtextSelector;
370
373
  }
371
374
  return sourceOrSelector;
372
375
  }
@@ -359,15 +359,18 @@ function stegaEncode(input, opts) {
359
359
  });
360
360
  }
361
361
  if (Array.isArray(sourceOrSelector)) {
362
- var a = sourceOrSelector.map(function (el) {
362
+ var arraySelector = sourceOrSelector.map(function (el) {
363
363
  return rec(el, {
364
364
  path: recOpts.path,
365
365
  schema: recOpts.schema
366
366
  });
367
367
  });
368
- return a;
368
+ return arraySelector;
369
369
  } else if (slicedToArray._typeof(sourceOrSelector) === "object") {
370
- var _a = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
370
+ if (!sourceOrSelector) {
371
+ return null;
372
+ }
373
+ var richtextSelector = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
371
374
  var _ref3 = slicedToArray._slicedToArray(_ref2, 2),
372
375
  key = _ref3[0],
373
376
  value = _ref3[1];
@@ -376,7 +379,7 @@ function stegaEncode(input, opts) {
376
379
  schema: recOpts.schema
377
380
  })];
378
381
  }));
379
- return _a;
382
+ return richtextSelector;
380
383
  }
381
384
  return sourceOrSelector;
382
385
  }
@@ -359,15 +359,18 @@ function stegaEncode(input, opts) {
359
359
  });
360
360
  }
361
361
  if (Array.isArray(sourceOrSelector)) {
362
- var a = sourceOrSelector.map(function (el) {
362
+ var arraySelector = sourceOrSelector.map(function (el) {
363
363
  return rec(el, {
364
364
  path: recOpts.path,
365
365
  schema: recOpts.schema
366
366
  });
367
367
  });
368
- return a;
368
+ return arraySelector;
369
369
  } else if (slicedToArray._typeof(sourceOrSelector) === "object") {
370
- var _a = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
370
+ if (!sourceOrSelector) {
371
+ return null;
372
+ }
373
+ var richtextSelector = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
371
374
  var _ref3 = slicedToArray._slicedToArray(_ref2, 2),
372
375
  key = _ref3[0],
373
376
  value = _ref3[1];
@@ -376,7 +379,7 @@ function stegaEncode(input, opts) {
376
379
  schema: recOpts.schema
377
380
  })];
378
381
  }));
379
- return _a;
382
+ return richtextSelector;
380
383
  }
381
384
  return sourceOrSelector;
382
385
  }
@@ -349,15 +349,18 @@ function stegaEncode(input, opts) {
349
349
  });
350
350
  }
351
351
  if (Array.isArray(sourceOrSelector)) {
352
- var a = sourceOrSelector.map(function (el) {
352
+ var arraySelector = sourceOrSelector.map(function (el) {
353
353
  return rec(el, {
354
354
  path: recOpts.path,
355
355
  schema: recOpts.schema
356
356
  });
357
357
  });
358
- return a;
358
+ return arraySelector;
359
359
  } else if (_typeof(sourceOrSelector) === "object") {
360
- var _a = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
360
+ if (!sourceOrSelector) {
361
+ return null;
362
+ }
363
+ var richtextSelector = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
361
364
  var _ref3 = _slicedToArray(_ref2, 2),
362
365
  key = _ref3[0],
363
366
  value = _ref3[1];
@@ -366,7 +369,7 @@ function stegaEncode(input, opts) {
366
369
  schema: recOpts.schema
367
370
  })];
368
371
  }));
369
- return _a;
372
+ return richtextSelector;
370
373
  }
371
374
  return sourceOrSelector;
372
375
  }
@@ -349,15 +349,18 @@ function stegaEncode(input, opts) {
349
349
  });
350
350
  }
351
351
  if (Array.isArray(sourceOrSelector)) {
352
- var a = sourceOrSelector.map(function (el) {
352
+ var arraySelector = sourceOrSelector.map(function (el) {
353
353
  return rec(el, {
354
354
  path: recOpts.path,
355
355
  schema: recOpts.schema
356
356
  });
357
357
  });
358
- return a;
358
+ return arraySelector;
359
359
  } else if (_typeof(sourceOrSelector) === "object") {
360
- var _a = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
360
+ if (!sourceOrSelector) {
361
+ return null;
362
+ }
363
+ var richtextSelector = Object.fromEntries(Object.entries(sourceOrSelector).map(function (_ref2) {
361
364
  var _ref3 = _slicedToArray(_ref2, 2),
362
365
  key = _ref3[0],
363
366
  value = _ref3[1];
@@ -366,7 +369,7 @@ function stegaEncode(input, opts) {
366
369
  schema: recOpts.schema
367
370
  })];
368
371
  }));
369
- return _a;
372
+ return richtextSelector;
370
373
  }
371
374
  return sourceOrSelector;
372
375
  }