ywana-core8 0.0.356 → 0.0.359
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 +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +9 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/explorer/Explorer.css +2 -2
- package/src/widgets/upload/UploadDialog.js +8 -4
package/dist/index.umd.js
CHANGED
@@ -3425,11 +3425,16 @@
|
|
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
|
-
if (onSuccess) onSuccess(
|
3432
|
+
function success(file, message) {
|
3433
|
+
if (onSuccess) onSuccess(file, message);
|
3434
|
+
}
|
3435
|
+
|
3436
|
+
function complete(uploads) {
|
3437
|
+
if (onComplete) onComplete(uploads);
|
3433
3438
|
}
|
3434
3439
|
|
3435
3440
|
function onAction(action) {
|
@@ -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
|
|