@micromag/media-gallery 0.3.637 → 0.3.656
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 +5 -5
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -466,7 +466,7 @@ function MediaGallery(_ref) {
|
|
|
466
466
|
var story = useStory();
|
|
467
467
|
var _ref2 = story || {},
|
|
468
468
|
_ref2$id = _ref2.id,
|
|
469
|
-
storyId = _ref2$id ===
|
|
469
|
+
storyId = _ref2$id === void 0 ? null : _ref2$id;
|
|
470
470
|
var fields$1 = providedFields === null ? fields() : providedFields;
|
|
471
471
|
var mediasApi = useMemo(function () {
|
|
472
472
|
return {
|
|
@@ -549,9 +549,9 @@ function MediaGallery(_ref) {
|
|
|
549
549
|
return partialFilters.map(function (filter) {
|
|
550
550
|
var _ref3 = filter || {},
|
|
551
551
|
_ref3$id = _ref3.id,
|
|
552
|
-
id = _ref3$id ===
|
|
552
|
+
id = _ref3$id === void 0 ? null : _ref3$id,
|
|
553
553
|
_ref3$options = _ref3.options,
|
|
554
|
-
options = _ref3$options ===
|
|
554
|
+
options = _ref3$options === void 0 ? [] : _ref3$options;
|
|
555
555
|
if (id === 'types' && finalTypes !== null) {
|
|
556
556
|
return false;
|
|
557
557
|
}
|
|
@@ -563,9 +563,9 @@ function MediaGallery(_ref) {
|
|
|
563
563
|
options: (options || []).map(function () {
|
|
564
564
|
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
565
565
|
_ref4$value = _ref4.value,
|
|
566
|
-
optionValue = _ref4$value ===
|
|
566
|
+
optionValue = _ref4$value === void 0 ? null : _ref4$value,
|
|
567
567
|
_ref4$label = _ref4.label,
|
|
568
|
-
label = _ref4$label ===
|
|
568
|
+
label = _ref4$label === void 0 ? null : _ref4$label;
|
|
569
569
|
return optionValue === 'document-' ? {
|
|
570
570
|
value: "document-".concat(storyId),
|
|
571
571
|
label: label
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.656",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
72
72
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
73
73
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
74
|
-
"@micromag/core": "^0.3.
|
|
75
|
-
"@micromag/data": "^0.3.
|
|
74
|
+
"@micromag/core": "^0.3.656",
|
|
75
|
+
"@micromag/data": "^0.3.656",
|
|
76
76
|
"@panneau/medias": "^3.0.163",
|
|
77
77
|
"bootstrap": "^5.3.1",
|
|
78
78
|
"classnames": "^2.2.6",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"access": "public",
|
|
87
87
|
"registry": "https://registry.npmjs.org/"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "fd956cc4a183b621df124f3f3afbae4af974db27"
|
|
90
90
|
}
|