@micromag/media-gallery 0.3.550 → 0.3.552

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.
Files changed (2) hide show
  1. package/es/index.js +10 -2
  2. package/package.json +2 -2
package/es/index.js CHANGED
@@ -176,6 +176,7 @@ var defaultFields = [{
176
176
  "value": "Tags"
177
177
  }]
178
178
  }),
179
+ createPrefix: 'Create',
179
180
  type: 'array',
180
181
  component: 'select',
181
182
  requestUrl: '/api/medias/tags',
@@ -184,8 +185,9 @@ var defaultFields = [{
184
185
  // Uses taggable so change the logic here
185
186
  valueIsOption: true,
186
187
  multiple: true,
187
- paginated: false
188
- // creatable: true, // TODO
188
+ paginated: false,
189
+ creatable: true
190
+ // onCreate...
189
191
  }]
190
192
  }, {
191
193
  id: 'info',
@@ -480,6 +482,10 @@ function MediaGallery(_ref) {
480
482
  trash: function trash() {
481
483
  var _api$medias8;
482
484
  return (_api$medias8 = api.medias)["delete"].apply(_api$medias8, arguments);
485
+ },
486
+ restore: function restore() {
487
+ var _api$medias9;
488
+ return (_api$medias9 = api.medias).restore.apply(_api$medias9, arguments);
483
489
  }
484
490
  };
485
491
  }, [api]);
@@ -596,6 +602,8 @@ function MediaGallery(_ref) {
596
602
  columns: columns,
597
603
  uppyConfig: uppyConfig,
598
604
  onMediaUploaded: onMediaUploaded,
605
+ multipleSelection: true // allow multi-uploads in MediasBrowser
606
+ ,
599
607
  withStickySelection: true,
600
608
  withTrash: true
601
609
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/media-gallery",
3
- "version": "0.3.550",
3
+ "version": "0.3.552",
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": "b473f19579865b79fda98723232ab6e06da6efee"
89
+ "gitHead": "0d6ffdbca29afb482e68f55a41c45ba6e982ae7d"
90
90
  }