@micromag/media-gallery 0.3.541 → 0.3.544

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 CHANGED
@@ -473,12 +473,13 @@ function MediaGallery(_ref) {
473
473
  return (_api$medias5 = api.medias).update.apply(_api$medias5, arguments);
474
474
  },
475
475
  "delete": function _delete() {
476
- var _api$medias6;
477
- return (_api$medias6 = api.medias).forceDelete.apply(_api$medias6, arguments);
476
+ var _api$medias6, _api$medias7;
477
+ return typeof api.medias.forceDelete !== 'undefined' ? (_api$medias6 = api.medias).forceDelete.apply(_api$medias6, arguments) : (_api$medias7 = api.medias)["delete"].apply(_api$medias7, arguments);
478
478
  },
479
+ // TODO: Temporary compat... see how this works
479
480
  trash: function trash() {
480
- var _api$medias7;
481
- return (_api$medias7 = api.medias)["delete"].apply(_api$medias7, arguments);
481
+ var _api$medias8;
482
+ return (_api$medias8 = api.medias)["delete"].apply(_api$medias8, arguments);
482
483
  }
483
484
  };
484
485
  }, [api]);
@@ -595,8 +596,8 @@ function MediaGallery(_ref) {
595
596
  columns: columns,
596
597
  uppyConfig: uppyConfig,
597
598
  onMediaUploaded: onMediaUploaded,
598
- withStickySelection: true,
599
- withTrash: true
599
+ withStickySelection: true
600
+ // withTrash TODO: temporary
600
601
  }));
601
602
  }
602
603
  MediaGallery.propTypes = propTypes;
package/lib/index.js CHANGED
@@ -513,12 +513,13 @@ function MediaGallery(_ref) {
513
513
  return (_api$medias5 = api.medias).update.apply(_api$medias5, arguments);
514
514
  },
515
515
  "delete": function _delete() {
516
- var _api$medias6;
517
- return (_api$medias6 = api.medias).forceDelete.apply(_api$medias6, arguments);
516
+ var _api$medias6, _api$medias7;
517
+ return typeof api.medias.forceDelete !== 'undefined' ? (_api$medias6 = api.medias).forceDelete.apply(_api$medias6, arguments) : (_api$medias7 = api.medias)["delete"].apply(_api$medias7, arguments);
518
518
  },
519
+ // TODO: Temporary compat... see how this works
519
520
  trash: function trash() {
520
- var _api$medias7;
521
- return (_api$medias7 = api.medias)["delete"].apply(_api$medias7, arguments);
521
+ var _api$medias8;
522
+ return (_api$medias8 = api.medias)["delete"].apply(_api$medias8, arguments);
522
523
  }
523
524
  };
524
525
  }, [api]);
@@ -635,8 +636,8 @@ function MediaGallery(_ref) {
635
636
  columns: columns,
636
637
  uppyConfig: uppyConfig,
637
638
  onMediaUploaded: onMediaUploaded,
638
- withStickySelection: true,
639
- withTrash: true
639
+ withStickySelection: true
640
+ // withTrash TODO: temporary
640
641
  }));
641
642
  }
642
643
  MediaGallery.propTypes = propTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/media-gallery",
3
- "version": "0.3.541",
3
+ "version": "0.3.544",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -87,5 +87,5 @@
87
87
  "access": "public",
88
88
  "registry": "https://registry.npmjs.org/"
89
89
  },
90
- "gitHead": "6c04a7e327b5fbc096785c11320b3fbd3c5751c8"
90
+ "gitHead": "839044abe179dae696c44ae463ad8066d95a5bd4"
91
91
  }