@micromag/media-gallery 0.3.532 → 0.3.533

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 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';
@@ -412,7 +411,6 @@ function filters() {
412
411
 
413
412
  var styles = {"container":"micromag-media-gallery-new-media-gallery-container","browser":"micromag-media-gallery-new-media-gallery-browser"};
414
413
 
415
- var _excluded = ["value"];
416
414
  var propTypes = {
417
415
  value: PropTypes.shape({
418
416
  id: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
@@ -552,12 +550,15 @@ function MediaGallery(_ref) {
552
550
  var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
553
551
  _ref4$value = _ref4.value,
554
552
  optionValue = _ref4$value === void 0 ? null : _ref4$value,
555
- props = _objectWithoutProperties(_ref4, _excluded);
556
- return optionValue === 'document-' ? _objectSpread({
557
- value: "document-".concat(storyId)
558
- }, props) : _objectSpread({
559
- value: optionValue
560
- }, props);
553
+ _ref4$label = _ref4.label,
554
+ label = _ref4$label === void 0 ? null : _ref4$label;
555
+ return optionValue === 'document-' ? {
556
+ value: "document-".concat(storyId),
557
+ label: label
558
+ } : {
559
+ value: optionValue,
560
+ label: label
561
+ };
561
562
  })
562
563
  });
563
564
  }
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');
@@ -452,7 +451,6 @@ function filters() {
452
451
 
453
452
  var styles = {"container":"micromag-media-gallery-new-media-gallery-container","browser":"micromag-media-gallery-new-media-gallery-browser"};
454
453
 
455
- var _excluded = ["value"];
456
454
  var propTypes = {
457
455
  value: PropTypes.shape({
458
456
  id: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
@@ -592,12 +590,15 @@ function MediaGallery(_ref) {
592
590
  var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
593
591
  _ref4$value = _ref4.value,
594
592
  optionValue = _ref4$value === void 0 ? null : _ref4$value,
595
- props = _objectWithoutProperties(_ref4, _excluded);
596
- return optionValue === 'document-' ? _objectSpread({
597
- value: "document-".concat(storyId)
598
- }, props) : _objectSpread({
599
- value: optionValue
600
- }, props);
593
+ _ref4$label = _ref4.label,
594
+ label = _ref4$label === void 0 ? null : _ref4$label;
595
+ return optionValue === 'document-' ? {
596
+ value: "document-".concat(storyId),
597
+ label: label
598
+ } : {
599
+ value: optionValue,
600
+ label: label
601
+ };
601
602
  })
602
603
  });
603
604
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/media-gallery",
3
- "version": "0.3.532",
3
+ "version": "0.3.533",
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": "5c4722607cb4d35b72568ceaa7988c1a03ecfa17"
90
+ "gitHead": "1ad634a7582231541d00a15fce213bd3a8d22aa9"
91
91
  }