@micromag/media-gallery 0.3.532 → 0.3.534
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 +11 -29
- package/lib/index.js +11 -29
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
3
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import isArray from 'lodash/isArray';
|
|
@@ -380,31 +379,12 @@ function filters() {
|
|
|
380
379
|
}, {
|
|
381
380
|
id: 'source',
|
|
382
381
|
component: 'radios',
|
|
383
|
-
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
384
|
-
id: "AX9qes",
|
|
385
|
-
defaultMessage: [{
|
|
386
|
-
"type": 0,
|
|
387
|
-
"value": "This micromag"
|
|
388
|
-
}]
|
|
389
|
-
}),
|
|
390
382
|
name: 'source',
|
|
391
383
|
options: [{
|
|
392
|
-
label:
|
|
393
|
-
id: "JCex1R",
|
|
394
|
-
defaultMessage: [{
|
|
395
|
-
"type": 0,
|
|
396
|
-
"value": "Tous les micromags"
|
|
397
|
-
}]
|
|
398
|
-
}),
|
|
384
|
+
label: 'Tous les micromags',
|
|
399
385
|
value: 'all'
|
|
400
386
|
}, {
|
|
401
|
-
label:
|
|
402
|
-
id: "hjgnYW",
|
|
403
|
-
defaultMessage: [{
|
|
404
|
-
"type": 0,
|
|
405
|
-
"value": "Ce micromag"
|
|
406
|
-
}]
|
|
407
|
-
}),
|
|
387
|
+
label: 'Ce micromag',
|
|
408
388
|
value: 'document-'
|
|
409
389
|
}]
|
|
410
390
|
}];
|
|
@@ -412,7 +392,6 @@ function filters() {
|
|
|
412
392
|
|
|
413
393
|
var styles = {"container":"micromag-media-gallery-new-media-gallery-container","browser":"micromag-media-gallery-new-media-gallery-browser"};
|
|
414
394
|
|
|
415
|
-
var _excluded = ["value"];
|
|
416
395
|
var propTypes = {
|
|
417
396
|
value: PropTypes.shape({
|
|
418
397
|
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
@@ -552,12 +531,15 @@ function MediaGallery(_ref) {
|
|
|
552
531
|
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
553
532
|
_ref4$value = _ref4.value,
|
|
554
533
|
optionValue = _ref4$value === void 0 ? null : _ref4$value,
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
534
|
+
_ref4$label = _ref4.label,
|
|
535
|
+
label = _ref4$label === void 0 ? null : _ref4$label;
|
|
536
|
+
return optionValue === 'document-' ? {
|
|
537
|
+
value: "document-".concat(storyId),
|
|
538
|
+
label: label
|
|
539
|
+
} : {
|
|
540
|
+
value: optionValue,
|
|
541
|
+
label: label
|
|
542
|
+
};
|
|
561
543
|
})
|
|
562
544
|
});
|
|
563
545
|
}
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
5
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
6
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
7
6
|
var classNames = require('classnames');
|
|
8
7
|
var isArray = require('lodash/isArray');
|
|
@@ -420,31 +419,12 @@ function filters() {
|
|
|
420
419
|
}, {
|
|
421
420
|
id: 'source',
|
|
422
421
|
component: 'radios',
|
|
423
|
-
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
424
|
-
id: "AX9qes",
|
|
425
|
-
defaultMessage: [{
|
|
426
|
-
"type": 0,
|
|
427
|
-
"value": "This micromag"
|
|
428
|
-
}]
|
|
429
|
-
}),
|
|
430
422
|
name: 'source',
|
|
431
423
|
options: [{
|
|
432
|
-
label:
|
|
433
|
-
id: "JCex1R",
|
|
434
|
-
defaultMessage: [{
|
|
435
|
-
"type": 0,
|
|
436
|
-
"value": "Tous les micromags"
|
|
437
|
-
}]
|
|
438
|
-
}),
|
|
424
|
+
label: 'Tous les micromags',
|
|
439
425
|
value: 'all'
|
|
440
426
|
}, {
|
|
441
|
-
label:
|
|
442
|
-
id: "hjgnYW",
|
|
443
|
-
defaultMessage: [{
|
|
444
|
-
"type": 0,
|
|
445
|
-
"value": "Ce micromag"
|
|
446
|
-
}]
|
|
447
|
-
}),
|
|
427
|
+
label: 'Ce micromag',
|
|
448
428
|
value: 'document-'
|
|
449
429
|
}]
|
|
450
430
|
}];
|
|
@@ -452,7 +432,6 @@ function filters() {
|
|
|
452
432
|
|
|
453
433
|
var styles = {"container":"micromag-media-gallery-new-media-gallery-container","browser":"micromag-media-gallery-new-media-gallery-browser"};
|
|
454
434
|
|
|
455
|
-
var _excluded = ["value"];
|
|
456
435
|
var propTypes = {
|
|
457
436
|
value: PropTypes.shape({
|
|
458
437
|
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
@@ -592,12 +571,15 @@ function MediaGallery(_ref) {
|
|
|
592
571
|
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
593
572
|
_ref4$value = _ref4.value,
|
|
594
573
|
optionValue = _ref4$value === void 0 ? null : _ref4$value,
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
574
|
+
_ref4$label = _ref4.label,
|
|
575
|
+
label = _ref4$label === void 0 ? null : _ref4$label;
|
|
576
|
+
return optionValue === 'document-' ? {
|
|
577
|
+
value: "document-".concat(storyId),
|
|
578
|
+
label: label
|
|
579
|
+
} : {
|
|
580
|
+
value: optionValue,
|
|
581
|
+
label: label
|
|
582
|
+
};
|
|
601
583
|
})
|
|
602
584
|
});
|
|
603
585
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.534",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"access": "public",
|
|
88
88
|
"registry": "https://registry.npmjs.org/"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "5db137794264504b92d43389b75c734a00712e72"
|
|
91
91
|
}
|