@micromag/media-gallery 0.3.525 → 0.3.531
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 +30 -4
- package/lib/index.js +30 -4
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -377,7 +377,7 @@ function filters() {
|
|
|
377
377
|
paginated: false
|
|
378
378
|
}, {
|
|
379
379
|
id: 'source',
|
|
380
|
-
component: '
|
|
380
|
+
component: 'radios',
|
|
381
381
|
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
382
382
|
id: "AX9qes",
|
|
383
383
|
defaultMessage: [{
|
|
@@ -385,7 +385,26 @@ function filters() {
|
|
|
385
385
|
"value": "This micromag"
|
|
386
386
|
}]
|
|
387
387
|
}),
|
|
388
|
-
name: 'source'
|
|
388
|
+
name: 'source',
|
|
389
|
+
options: [{
|
|
390
|
+
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
391
|
+
id: "JCex1R",
|
|
392
|
+
defaultMessage: [{
|
|
393
|
+
"type": 0,
|
|
394
|
+
"value": "Tous les micromags"
|
|
395
|
+
}]
|
|
396
|
+
}),
|
|
397
|
+
value: 'all'
|
|
398
|
+
}, {
|
|
399
|
+
label: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
400
|
+
id: "hjgnYW",
|
|
401
|
+
defaultMessage: [{
|
|
402
|
+
"type": 0,
|
|
403
|
+
"value": "Ce micromag"
|
|
404
|
+
}]
|
|
405
|
+
}),
|
|
406
|
+
value: 'document-'
|
|
407
|
+
}]
|
|
389
408
|
}];
|
|
390
409
|
}
|
|
391
410
|
|
|
@@ -518,13 +537,20 @@ function MediaGallery(_ref) {
|
|
|
518
537
|
return partialFilters.map(function (filter) {
|
|
519
538
|
var _ref3 = filter || {},
|
|
520
539
|
_ref3$id = _ref3.id,
|
|
521
|
-
id = _ref3$id === void 0 ? null : _ref3$id
|
|
540
|
+
id = _ref3$id === void 0 ? null : _ref3$id,
|
|
541
|
+
_ref3$options = _ref3.options,
|
|
542
|
+
options = _ref3$options === void 0 ? [] : _ref3$options;
|
|
522
543
|
if (id === 'source') {
|
|
523
544
|
if (storyId === null) {
|
|
524
545
|
return null;
|
|
525
546
|
}
|
|
526
547
|
return _objectSpread(_objectSpread({}, filter), {}, {
|
|
527
|
-
|
|
548
|
+
options: (options || []).map(function () {
|
|
549
|
+
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
550
|
+
_ref4$value = _ref4.value,
|
|
551
|
+
optionValue = _ref4$value === void 0 ? null : _ref4$value;
|
|
552
|
+
return optionValue === 'document-' ? "document-".concat(storyId) : optionValue;
|
|
553
|
+
})
|
|
528
554
|
});
|
|
529
555
|
}
|
|
530
556
|
return filter;
|
package/lib/index.js
CHANGED
|
@@ -417,7 +417,7 @@ function filters() {
|
|
|
417
417
|
paginated: false
|
|
418
418
|
}, {
|
|
419
419
|
id: 'source',
|
|
420
|
-
component: '
|
|
420
|
+
component: 'radios',
|
|
421
421
|
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
422
422
|
id: "AX9qes",
|
|
423
423
|
defaultMessage: [{
|
|
@@ -425,7 +425,26 @@ function filters() {
|
|
|
425
425
|
"value": "This micromag"
|
|
426
426
|
}]
|
|
427
427
|
}),
|
|
428
|
-
name: 'source'
|
|
428
|
+
name: 'source',
|
|
429
|
+
options: [{
|
|
430
|
+
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
431
|
+
id: "JCex1R",
|
|
432
|
+
defaultMessage: [{
|
|
433
|
+
"type": 0,
|
|
434
|
+
"value": "Tous les micromags"
|
|
435
|
+
}]
|
|
436
|
+
}),
|
|
437
|
+
value: 'all'
|
|
438
|
+
}, {
|
|
439
|
+
label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
|
|
440
|
+
id: "hjgnYW",
|
|
441
|
+
defaultMessage: [{
|
|
442
|
+
"type": 0,
|
|
443
|
+
"value": "Ce micromag"
|
|
444
|
+
}]
|
|
445
|
+
}),
|
|
446
|
+
value: 'document-'
|
|
447
|
+
}]
|
|
429
448
|
}];
|
|
430
449
|
}
|
|
431
450
|
|
|
@@ -558,13 +577,20 @@ function MediaGallery(_ref) {
|
|
|
558
577
|
return partialFilters.map(function (filter) {
|
|
559
578
|
var _ref3 = filter || {},
|
|
560
579
|
_ref3$id = _ref3.id,
|
|
561
|
-
id = _ref3$id === void 0 ? null : _ref3$id
|
|
580
|
+
id = _ref3$id === void 0 ? null : _ref3$id,
|
|
581
|
+
_ref3$options = _ref3.options,
|
|
582
|
+
options = _ref3$options === void 0 ? [] : _ref3$options;
|
|
562
583
|
if (id === 'source') {
|
|
563
584
|
if (storyId === null) {
|
|
564
585
|
return null;
|
|
565
586
|
}
|
|
566
587
|
return _objectSpread(_objectSpread({}, filter), {}, {
|
|
567
|
-
|
|
588
|
+
options: (options || []).map(function () {
|
|
589
|
+
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
590
|
+
_ref4$value = _ref4.value,
|
|
591
|
+
optionValue = _ref4$value === void 0 ? null : _ref4$value;
|
|
592
|
+
return optionValue === 'document-' ? "document-".concat(storyId) : optionValue;
|
|
593
|
+
})
|
|
568
594
|
});
|
|
569
595
|
}
|
|
570
596
|
return filter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.531",
|
|
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.531",
|
|
76
|
+
"@micromag/data": "^0.3.531",
|
|
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": "e3a59c467ad33528b38eb4badd78b6ed0e38a3a6"
|
|
91
91
|
}
|