@micromag/media-gallery 0.3.556 → 0.3.558
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/es/index.js +12 -8
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -477,18 +477,22 @@ function MediaGallery(_ref) {
|
|
|
477
477
|
var _api$medias5;
|
|
478
478
|
return (_api$medias5 = api.medias).update.apply(_api$medias5, arguments);
|
|
479
479
|
},
|
|
480
|
+
replace: function replace() {
|
|
481
|
+
var _api$medias6;
|
|
482
|
+
return (_api$medias6 = api.medias).replace.apply(_api$medias6, arguments);
|
|
483
|
+
},
|
|
480
484
|
"delete": function _delete() {
|
|
481
|
-
var _api$
|
|
482
|
-
return typeof api.medias.forceDelete !== 'undefined' ? (_api$
|
|
485
|
+
var _api$medias7, _api$medias8;
|
|
486
|
+
return typeof api.medias.forceDelete !== 'undefined' ? (_api$medias7 = api.medias).forceDelete.apply(_api$medias7, arguments) : (_api$medias8 = api.medias)["delete"].apply(_api$medias8, arguments);
|
|
483
487
|
},
|
|
484
488
|
// TODO: Temporary compat... see how this works
|
|
485
489
|
trash: function trash() {
|
|
486
|
-
var _api$
|
|
487
|
-
return (_api$
|
|
490
|
+
var _api$medias9;
|
|
491
|
+
return (_api$medias9 = api.medias)["delete"].apply(_api$medias9, arguments);
|
|
488
492
|
},
|
|
489
493
|
restore: function restore() {
|
|
490
|
-
var _api$
|
|
491
|
-
return (_api$
|
|
494
|
+
var _api$medias10;
|
|
495
|
+
return (_api$medias10 = api.medias).restore.apply(_api$medias10, arguments);
|
|
492
496
|
}
|
|
493
497
|
};
|
|
494
498
|
}, [api]);
|
|
@@ -612,8 +616,8 @@ function MediaGallery(_ref) {
|
|
|
612
616
|
multipleSelection: true // allow multi-uploads in MediasBrowser
|
|
613
617
|
,
|
|
614
618
|
withStickySelection: true,
|
|
615
|
-
withTrash: true
|
|
616
|
-
withReplace
|
|
619
|
+
withTrash: true
|
|
620
|
+
// withReplace // TODO re-enable after prod deploy
|
|
617
621
|
}));
|
|
618
622
|
}
|
|
619
623
|
MediaGallery.propTypes = propTypes;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.558",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"access": "public",
|
|
87
87
|
"registry": "https://registry.npmjs.org/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "173c37caa6e7cbeb077497869edadc66c1f8c9b0"
|
|
90
90
|
}
|