ywana-core8 0.0.750 → 0.0.751

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/index.umd.js CHANGED
@@ -6344,12 +6344,12 @@
6344
6344
  var CollectionEditor$1 = function CollectionEditor(props) {
6345
6345
  var save = function save() {
6346
6346
  try {
6347
- var _temp3 = function _temp3() {
6347
+ var _temp5 = function _temp5() {
6348
6348
  if (onChange) onChange(form);
6349
6349
  setPageContext(Object.assign({}, pageContext));
6350
6350
  };
6351
6351
 
6352
- var _temp4 = function () {
6352
+ var _temp6 = function () {
6353
6353
  if (patch) {
6354
6354
  return Promise.resolve(pageContext.patch(form.id, form)).then(function () {});
6355
6355
  } else {
@@ -6357,7 +6357,7 @@
6357
6357
  }
6358
6358
  }();
6359
6359
 
6360
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
6360
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
6361
6361
  } catch (e) {
6362
6362
  return Promise.reject(e);
6363
6363
  }
@@ -6367,7 +6367,7 @@
6367
6367
  try {
6368
6368
  var accept = site.confirm("¿ Esta seguro ?");
6369
6369
 
6370
- var _temp6 = function () {
6370
+ var _temp2 = function () {
6371
6371
  if (accept === true) {
6372
6372
  return Promise.resolve(pageContext.remove(selected.id)).then(function () {
6373
6373
  pageContext.clear();
@@ -6376,12 +6376,14 @@
6376
6376
  }
6377
6377
  }();
6378
6378
 
6379
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
6379
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6380
6380
  } catch (e) {
6381
6381
  return Promise.reject(e);
6382
6382
  }
6383
6383
  };
6384
6384
 
6385
+ var site = React.useContext(SiteContext);
6386
+
6385
6387
  var _useContext5 = React.useContext(PageContext),
6386
6388
  pageContext = _useContext5[0],
6387
6389
  setPageContext = _useContext5[1];