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 +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +1 -0
package/dist/index.modern.js
CHANGED
@@ -6342,12 +6342,12 @@ var CollectionTree = function CollectionTree(props) {
|
|
6342
6342
|
var CollectionEditor$1 = function CollectionEditor(props) {
|
6343
6343
|
var save = function save() {
|
6344
6344
|
try {
|
6345
|
-
var
|
6345
|
+
var _temp5 = function _temp5() {
|
6346
6346
|
if (onChange) onChange(form);
|
6347
6347
|
setPageContext(Object.assign({}, pageContext));
|
6348
6348
|
};
|
6349
6349
|
|
6350
|
-
var
|
6350
|
+
var _temp6 = function () {
|
6351
6351
|
if (patch) {
|
6352
6352
|
return Promise.resolve(pageContext.patch(form.id, form)).then(function () {});
|
6353
6353
|
} else {
|
@@ -6355,7 +6355,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
|
|
6355
6355
|
}
|
6356
6356
|
}();
|
6357
6357
|
|
6358
|
-
return Promise.resolve(
|
6358
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
|
6359
6359
|
} catch (e) {
|
6360
6360
|
return Promise.reject(e);
|
6361
6361
|
}
|
@@ -6365,7 +6365,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
|
|
6365
6365
|
try {
|
6366
6366
|
var accept = site.confirm("¿ Esta seguro ?");
|
6367
6367
|
|
6368
|
-
var
|
6368
|
+
var _temp2 = function () {
|
6369
6369
|
if (accept === true) {
|
6370
6370
|
return Promise.resolve(pageContext.remove(selected.id)).then(function () {
|
6371
6371
|
pageContext.clear();
|
@@ -6374,12 +6374,14 @@ var CollectionEditor$1 = function CollectionEditor(props) {
|
|
6374
6374
|
}
|
6375
6375
|
}();
|
6376
6376
|
|
6377
|
-
return Promise.resolve(
|
6377
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
6378
6378
|
} catch (e) {
|
6379
6379
|
return Promise.reject(e);
|
6380
6380
|
}
|
6381
6381
|
};
|
6382
6382
|
|
6383
|
+
var site = useContext(SiteContext);
|
6384
|
+
|
6383
6385
|
var _useContext5 = useContext(PageContext),
|
6384
6386
|
pageContext = _useContext5[0],
|
6385
6387
|
setPageContext = _useContext5[1];
|