@micromag/media-gallery 0.2.393 → 0.2.394
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 +4 -5
- package/lib/index.js +3 -4
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
5
5
|
import React, { useState, useCallback, useMemo, useRef, useEffect } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
import { useMediasRecentSearches, useMediaTags,
|
|
8
|
+
import { useMediasRecentSearches, useMediaTags, useMediaUpdate, useMedias, useMediaCreate } from '@micromag/data';
|
|
9
9
|
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
10
10
|
import { Button, Card, Spinner, UploadModal } from '@micromag/core/components';
|
|
11
11
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
@@ -1061,15 +1061,14 @@ var MediaMetadata = function MediaMetadata(_ref) {
|
|
|
1061
1061
|
documentId = _ref4$id === void 0 ? null : _ref4$id;
|
|
1062
1062
|
|
|
1063
1063
|
var _useMediaTags = useMediaTags(),
|
|
1064
|
-
usedTags = _useMediaTags.tags;
|
|
1064
|
+
usedTags = _useMediaTags.tags; // const { authors: usedAuthors } = useMediaAuthors();
|
|
1065
1065
|
|
|
1066
|
-
var _useMediaAuthors = useMediaAuthors();
|
|
1067
|
-
_useMediaAuthors.authors;
|
|
1068
1066
|
|
|
1069
1067
|
var _useMediaUpdate = useMediaUpdate(),
|
|
1070
1068
|
update = _useMediaUpdate.update;
|
|
1071
1069
|
|
|
1072
|
-
console.log(story, documentId); //
|
|
1070
|
+
console.log(story, documentId); // eslint-disable-line
|
|
1071
|
+
// const loadTags = useCallback(
|
|
1073
1072
|
// (input) =>
|
|
1074
1073
|
// api.medias.getTags(
|
|
1075
1074
|
// {
|
package/lib/index.js
CHANGED
|
@@ -1076,15 +1076,14 @@ var MediaMetadata = function MediaMetadata(_ref) {
|
|
|
1076
1076
|
documentId = _ref4$id === void 0 ? null : _ref4$id;
|
|
1077
1077
|
|
|
1078
1078
|
var _useMediaTags = data.useMediaTags(),
|
|
1079
|
-
usedTags = _useMediaTags.tags;
|
|
1079
|
+
usedTags = _useMediaTags.tags; // const { authors: usedAuthors } = useMediaAuthors();
|
|
1080
1080
|
|
|
1081
|
-
var _useMediaAuthors = data.useMediaAuthors();
|
|
1082
|
-
_useMediaAuthors.authors;
|
|
1083
1081
|
|
|
1084
1082
|
var _useMediaUpdate = data.useMediaUpdate(),
|
|
1085
1083
|
update = _useMediaUpdate.update;
|
|
1086
1084
|
|
|
1087
|
-
console.log(story, documentId); //
|
|
1085
|
+
console.log(story, documentId); // eslint-disable-line
|
|
1086
|
+
// const loadTags = useCallback(
|
|
1088
1087
|
// (input) =>
|
|
1089
1088
|
// api.medias.getTags(
|
|
1090
1089
|
// {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/media-gallery",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.394",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
56
56
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
57
57
|
"@micromag/core": "^0.2.391",
|
|
58
|
-
"@micromag/data": "^0.2.
|
|
58
|
+
"@micromag/data": "^0.2.394",
|
|
59
59
|
"bootstrap": "^4.5.3",
|
|
60
60
|
"bootstrap.native": "^3.0.14",
|
|
61
61
|
"change-case": "^4.1.2",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "2271b376d8df6c2463b1b48489a047eab05a0e8f"
|
|
73
73
|
}
|