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.cjs
CHANGED
@@ -3430,11 +3430,16 @@ 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
|
-
if (onSuccess) onSuccess(
|
3437
|
+
function success(file, message) {
|
3438
|
+
if (onSuccess) onSuccess(file, message);
|
3439
|
+
}
|
3440
|
+
|
3441
|
+
function complete(uploads) {
|
3442
|
+
if (onComplete) onComplete(uploads);
|
3438
3443
|
}
|
3439
3444
|
|
3440
3445
|
function onAction(action) {
|
@@ -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
|
|