@micromag/media-gallery 0.3.551 → 0.3.553

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 +8 -3
  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',
@@ -586,7 +588,8 @@ function MediaGallery(_ref) {
586
588
  onMediaUploaded: onMediaUploaded,
587
589
  onMediaFormOpen: onMediaFormOpen,
588
590
  onMediaFormClose: onMediaFormClose,
589
- withStickySelection: true
591
+ withStickySelection: true,
592
+ withTrash: true
590
593
  }) : /*#__PURE__*/React.createElement(MediasBrowserContainer, {
591
594
  className: styles.browser,
592
595
  api: mediasApi,
@@ -600,6 +603,8 @@ function MediaGallery(_ref) {
600
603
  columns: columns,
601
604
  uppyConfig: uppyConfig,
602
605
  onMediaUploaded: onMediaUploaded,
606
+ multipleSelection: true // allow multi-uploads in MediasBrowser
607
+ ,
603
608
  withStickySelection: true,
604
609
  withTrash: true
605
610
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/media-gallery",
3
- "version": "0.3.551",
3
+ "version": "0.3.553",
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": "197f35804518016b6a705cdff8b8a0a73717bdf7"
89
+ "gitHead": "239e3eea0a2d58e5ef9a8f7fb22124a2aed8bb4a"
90
90
  }