@micromag/media-gallery 0.3.328 → 0.3.329

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
@@ -11,7 +11,7 @@ import { FormattedMessage, useIntl } from 'react-intl';
11
11
  import { PropTypes } from '@micromag/core';
12
12
  import { Card, Button, Media, Spinner, UploadModal } from '@micromag/core/components';
13
13
  import { useFieldComponent, useStory } from '@micromag/core/contexts';
14
- import { useMediaUpdate, useMediasRecentSearches, useMediaTags, useMediaAuthors, useMedias, useMediaCreate } from '@micromag/data';
14
+ import { useMediaUpdate, useMediaDelete, useMediasRecentSearches, useMediaTags, useMediaAuthors, useMedias, useMediaCreate } from '@micromag/data';
15
15
  import { useDimensionObserver } from '@micromag/core/hooks';
16
16
  import { faHeadphonesAlt } from '@fortawesome/free-solid-svg-icons/faHeadphonesAlt';
17
17
  import { faInfoCircle } from '@fortawesome/free-solid-svg-icons/faInfoCircle';
@@ -20,7 +20,6 @@ import { faTimesCircle } from '@fortawesome/free-solid-svg-icons/faTimesCircle';
20
20
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
21
21
  import uniqBy from 'lodash/uniqBy';
22
22
  import prettyBytes from 'pretty-bytes';
23
- import { useMediaDelete } from '@micromag/data/src/hooks';
24
23
  import { faChevronLeft } from '@fortawesome/free-solid-svg-icons/faChevronLeft';
25
24
  import { faPlus } from '@fortawesome/free-solid-svg-icons/faPlus';
26
25
  import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
@@ -1214,7 +1213,9 @@ var propTypes$1 = {
1214
1213
  selectedMedia: PropTypes.media,
1215
1214
  storyId: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.number]),
1216
1215
  tags: PropTypes.tags,
1217
- authors: PropTypes.authors,
1216
+ authors: PropTypes$1.arrayOf(PropTypes$1.shape({
1217
+ name: PropTypes$1.string
1218
+ })),
1218
1219
  loading: PropTypes$1.bool,
1219
1220
  withoutSource: PropTypes$1.bool,
1220
1221
  withoutType: PropTypes$1.bool,
package/lib/index.js CHANGED
@@ -22,7 +22,6 @@ var faTimesCircle = require('@fortawesome/free-solid-svg-icons/faTimesCircle');
22
22
  var reactFontawesome = require('@fortawesome/react-fontawesome');
23
23
  var uniqBy = require('lodash/uniqBy');
24
24
  var prettyBytes = require('pretty-bytes');
25
- var hooks$1 = require('@micromag/data/src/hooks');
26
25
  var faChevronLeft = require('@fortawesome/free-solid-svg-icons/faChevronLeft');
27
26
  var faPlus = require('@fortawesome/free-solid-svg-icons/faPlus');
28
27
  var faTimes = require('@fortawesome/free-solid-svg-icons/faTimes');
@@ -259,7 +258,7 @@ function MediaMetadata(_ref) {
259
258
  mediaTags = _ref3$tags === void 0 ? [] : _ref3$tags;
260
259
  var _useMediaUpdate = data.useMediaUpdate(),
261
260
  update = _useMediaUpdate.update;
262
- var _useMediaDelete = hooks$1.useMediaDelete(),
261
+ var _useMediaDelete = data.useMediaDelete(),
263
262
  deleteMedia = _useMediaDelete.deleteMedia;
264
263
  var getOptionLabel = React.useCallback(function (_ref4) {
265
264
  var name = _ref4.name;
@@ -1230,7 +1229,9 @@ var propTypes$1 = {
1230
1229
  selectedMedia: core.PropTypes.media,
1231
1230
  storyId: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
1232
1231
  tags: core.PropTypes.tags,
1233
- authors: core.PropTypes.authors,
1232
+ authors: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
1233
+ name: PropTypes__default["default"].string
1234
+ })),
1234
1235
  loading: PropTypes__default["default"].bool,
1235
1236
  withoutSource: PropTypes__default["default"].bool,
1236
1237
  withoutType: PropTypes__default["default"].bool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/media-gallery",
3
- "version": "0.3.328",
3
+ "version": "0.3.329",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -59,8 +59,8 @@
59
59
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
60
60
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
61
61
  "@fortawesome/react-fontawesome": "^0.1.13",
62
- "@micromag/core": "^0.3.325",
63
- "@micromag/data": "^0.3.328",
62
+ "@micromag/core": "^0.3.329",
63
+ "@micromag/data": "^0.3.329",
64
64
  "bootstrap": "5.2.0-beta1",
65
65
  "change-case": "^4.1.2",
66
66
  "classnames": "^2.2.6",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "b7eb67478bab9d9f94212b13db3e2e653566fb35"
76
+ "gitHead": "2bfbc2ca564fd104e1df42dfa9314668fe48a000"
77
77
  }