@micromag/media-gallery 0.3.559 → 0.3.563
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 +7 -5
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -178,15 +178,17 @@ var defaultFields = [{
|
|
|
178
178
|
}),
|
|
179
179
|
createPrefix: 'Create',
|
|
180
180
|
type: 'array',
|
|
181
|
-
component: '
|
|
181
|
+
component: 'item',
|
|
182
182
|
requestUrl: '/api/medias/tags',
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
itemLabelPath: 'name',
|
|
184
|
+
itemDescriptionPath: null,
|
|
185
|
+
itemValuePath: 'id',
|
|
185
186
|
// Uses taggable so change the logic here
|
|
186
187
|
valueIsOption: true,
|
|
187
188
|
multiple: true,
|
|
188
189
|
paginated: false,
|
|
189
190
|
creatable: true
|
|
191
|
+
// formatCreateLabel: (lab) => `Create ${lab}`,
|
|
190
192
|
// onCreate...
|
|
191
193
|
}]
|
|
192
194
|
}, {
|
|
@@ -625,8 +627,8 @@ function MediaGallery(_ref) {
|
|
|
625
627
|
multipleSelection: true // allow multi-uploads in MediasBrowser
|
|
626
628
|
,
|
|
627
629
|
withStickySelection: true,
|
|
628
|
-
withTrash: true
|
|
629
|
-
|
|
630
|
+
withTrash: true,
|
|
631
|
+
withReplace: true
|
|
630
632
|
}));
|
|
631
633
|
}
|
|
632
634
|
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.563",
|
|
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": "08ca89365db5acdc31beedfc5d4ffb06487265b1"
|
|
90
90
|
}
|