ywana-core8 0.0.355 → 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.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 onComplete(uploads) {
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
- onComplete: onComplete
3466
+ onSuccess: success,
3467
+ onComplete: complete
3462
3468
  }));
3463
3469
  };
3464
3470