@micromag/media-gallery 0.3.561 → 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.
Files changed (2) hide show
  1. package/es/index.js +5 -3
  2. 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: 'select',
181
+ component: 'item',
182
182
  requestUrl: '/api/medias/tags',
183
- optionLabelPath: 'name',
184
- optionValuePath: 'id',
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
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/media-gallery",
3
- "version": "0.3.561",
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": "da01f5d13a1930f52a7e921fcfc320c94fed7d0a"
89
+ "gitHead": "08ca89365db5acdc31beedfc5d4ffb06487265b1"
90
90
  }