@micromag/media-gallery 0.3.510 → 0.3.512
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 +12 -1
- package/lib/index.js +12 -1
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -171,6 +171,16 @@ var defaultFields = [{
|
|
|
171
171
|
}),
|
|
172
172
|
type: 'text',
|
|
173
173
|
component: 'text'
|
|
174
|
+
}, {
|
|
175
|
+
id: 'custom_field',
|
|
176
|
+
component: 'custom_field',
|
|
177
|
+
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
178
|
+
id: "BjSp56",
|
|
179
|
+
defaultMessage: [{
|
|
180
|
+
"type": 0,
|
|
181
|
+
"value": "Test custom field"
|
|
182
|
+
}]
|
|
183
|
+
})
|
|
174
184
|
}, {
|
|
175
185
|
id: 'info',
|
|
176
186
|
component: 'fields',
|
|
@@ -356,7 +366,7 @@ function filters() {
|
|
|
356
366
|
"value": "This micromag"
|
|
357
367
|
}]
|
|
358
368
|
}),
|
|
359
|
-
value: 'document
|
|
369
|
+
value: 'document'
|
|
360
370
|
}]
|
|
361
371
|
}, {
|
|
362
372
|
id: 'authors',
|
|
@@ -501,6 +511,7 @@ function MediaGallery(_ref) {
|
|
|
501
511
|
console.log('newMedias', newMedias);
|
|
502
512
|
setUploading(true);
|
|
503
513
|
Promise.all(newMedias.map(createMedia)).then(function (newAddedMedias) {
|
|
514
|
+
console.log('not uploading anymore', newAddedMedias);
|
|
504
515
|
setUploading(false);
|
|
505
516
|
return setAddedMedias([].concat(_toConsumableArray(addedMedias), _toConsumableArray(newAddedMedias)));
|
|
506
517
|
});
|
package/lib/index.js
CHANGED
|
@@ -173,6 +173,16 @@ var defaultFields = [{
|
|
|
173
173
|
}),
|
|
174
174
|
type: 'text',
|
|
175
175
|
component: 'text'
|
|
176
|
+
}, {
|
|
177
|
+
id: 'custom_field',
|
|
178
|
+
component: 'custom_field',
|
|
179
|
+
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
180
|
+
id: "BjSp56",
|
|
181
|
+
defaultMessage: [{
|
|
182
|
+
"type": 0,
|
|
183
|
+
"value": "Test custom field"
|
|
184
|
+
}]
|
|
185
|
+
})
|
|
176
186
|
}, {
|
|
177
187
|
id: 'info',
|
|
178
188
|
component: 'fields',
|
|
@@ -396,7 +406,7 @@ function filters() {
|
|
|
396
406
|
"value": "This micromag"
|
|
397
407
|
}]
|
|
398
408
|
}),
|
|
399
|
-
value: 'document
|
|
409
|
+
value: 'document'
|
|
400
410
|
}]
|
|
401
411
|
}, {
|
|
402
412
|
id: 'authors',
|
|
@@ -541,6 +551,7 @@ function MediaGallery(_ref) {
|
|
|
541
551
|
console.log('newMedias', newMedias);
|
|
542
552
|
setUploading(true);
|
|
543
553
|
Promise.all(newMedias.map(createMedia)).then(function (newAddedMedias) {
|
|
554
|
+
console.log('not uploading anymore', newAddedMedias);
|
|
544
555
|
setUploading(false);
|
|
545
556
|
return setAddedMedias([].concat(_toConsumableArray(addedMedias), _toConsumableArray(newAddedMedias)));
|
|
546
557
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.512",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
73
73
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
74
74
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
75
|
-
"@micromag/core": "^0.3.
|
|
76
|
-
"@micromag/data": "^0.3.
|
|
75
|
+
"@micromag/core": "^0.3.512",
|
|
76
|
+
"@micromag/data": "^0.3.512",
|
|
77
77
|
"@panneau/medias": "^3.0.163",
|
|
78
78
|
"bootstrap": "^5.3.1",
|
|
79
79
|
"classnames": "^2.2.6",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"access": "public",
|
|
88
88
|
"registry": "https://registry.npmjs.org/"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "23de9c46447bade478129227281870191d4fcc94"
|
|
91
91
|
}
|