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.cjs
CHANGED
@@ -3430,13 +3430,18 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3430
3430
|
target = _ref.target,
|
3431
3431
|
accept = _ref.accept,
|
3432
3432
|
onSuccess = _ref.onSuccess,
|
3433
|
+
onComplete = _ref.onComplete,
|
3433
3434
|
onClose = _ref.onClose;
|
3434
3435
|
var site = React.useContext(SiteContext);
|
3435
3436
|
|
3436
|
-
function
|
3437
|
+
function success(uploads) {
|
3437
3438
|
if (onSuccess) onSuccess(uploads);
|
3438
3439
|
}
|
3439
3440
|
|
3441
|
+
function complete(uploads) {
|
3442
|
+
if (onComplete) onComplete(uploads);
|
3443
|
+
}
|
3444
|
+
|
3440
3445
|
function onAction(action) {
|
3441
3446
|
if (action === 'CLOSE') {
|
3442
3447
|
site.closeDialog();
|
@@ -3463,7 +3468,8 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3463
3468
|
label: label,
|
3464
3469
|
accept: accept,
|
3465
3470
|
target: target,
|
3466
|
-
|
3471
|
+
onSuccess: success,
|
3472
|
+
onComplete: complete
|
3467
3473
|
}));
|
3468
3474
|
};
|
3469
3475
|
|