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.cjs CHANGED
@@ -6350,12 +6350,12 @@ var CollectionTree = function CollectionTree(props) {
6350
6350
  var CollectionEditor$1 = function CollectionEditor(props) {
6351
6351
  var save = function save() {
6352
6352
  try {
6353
- var _temp3 = function _temp3() {
6353
+ var _temp5 = function _temp5() {
6354
6354
  if (onChange) onChange(form);
6355
6355
  setPageContext(Object.assign({}, pageContext));
6356
6356
  };
6357
6357
 
6358
- var _temp4 = function () {
6358
+ var _temp6 = function () {
6359
6359
  if (patch) {
6360
6360
  return Promise.resolve(pageContext.patch(form.id, form)).then(function () {});
6361
6361
  } else {
@@ -6363,7 +6363,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6363
6363
  }
6364
6364
  }();
6365
6365
 
6366
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
6366
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
6367
6367
  } catch (e) {
6368
6368
  return Promise.reject(e);
6369
6369
  }
@@ -6373,7 +6373,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6373
6373
  try {
6374
6374
  var accept = site.confirm("¿ Esta seguro ?");
6375
6375
 
6376
- var _temp6 = function () {
6376
+ var _temp2 = function () {
6377
6377
  if (accept === true) {
6378
6378
  return Promise.resolve(pageContext.remove(selected.id)).then(function () {
6379
6379
  pageContext.clear();
@@ -6382,12 +6382,14 @@ var CollectionEditor$1 = function CollectionEditor(props) {
6382
6382
  }
6383
6383
  }();
6384
6384
 
6385
- return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
6385
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
6386
6386
  } catch (e) {
6387
6387
  return Promise.reject(e);
6388
6388
  }
6389
6389
  };
6390
6390
 
6391
+ var site = React.useContext(SiteContext);
6392
+
6391
6393
  var _useContext5 = React.useContext(PageContext),
6392
6394
  pageContext = _useContext5[0],
6393
6395
  setPageContext = _useContext5[1];