ywana-core8 0.0.357 → 0.0.358
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 +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +8 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/explorer/Explorer.css +2 -1
- package/src/widgets/upload/UploadDialog.js +7 -3
package/dist/index.umd.js
CHANGED
@@ -3425,13 +3425,18 @@
|
|
3425
3425
|
target = _ref.target,
|
3426
3426
|
accept = _ref.accept,
|
3427
3427
|
onSuccess = _ref.onSuccess,
|
3428
|
+
onComplete = _ref.onComplete,
|
3428
3429
|
onClose = _ref.onClose;
|
3429
3430
|
var site = React.useContext(SiteContext);
|
3430
3431
|
|
3431
|
-
function
|
3432
|
+
function success(uploads) {
|
3432
3433
|
if (onSuccess) onSuccess(uploads);
|
3433
3434
|
}
|
3434
3435
|
|
3436
|
+
function complete(uploads) {
|
3437
|
+
if (onComplete) onComplete(uploads);
|
3438
|
+
}
|
3439
|
+
|
3435
3440
|
function onAction(action) {
|
3436
3441
|
if (action === 'CLOSE') {
|
3437
3442
|
site.closeDialog();
|
@@ -3458,7 +3463,8 @@
|
|
3458
3463
|
label: label,
|
3459
3464
|
accept: accept,
|
3460
3465
|
target: target,
|
3461
|
-
|
3466
|
+
onSuccess: success,
|
3467
|
+
onComplete: complete
|
3462
3468
|
}));
|
3463
3469
|
};
|
3464
3470
|
|