@panneau/medias 4.0.4 → 4.0.5
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 +3 -3
- package/package.json +17 -17
package/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import
|
|
5
|
+
import { useContext, createContext, useMemo, useCallback, useState, useEffect } from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
7
7
|
import { useFieldComponent, usePanneauResource } from '@panneau/core/contexts';
|
|
8
8
|
import { useForm, useQuery } from '@panneau/core/hooks';
|
|
@@ -29,7 +29,7 @@ import Filters from '@panneau/filter-filters';
|
|
|
29
29
|
import { useItemsStore, useData, useApi } from '@panneau/data';
|
|
30
30
|
|
|
31
31
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
32
|
-
var MediasApiContext = /*#__PURE__*/
|
|
32
|
+
var MediasApiContext = /*#__PURE__*/createContext(null);
|
|
33
33
|
var useMediasApi = function useMediasApi() {
|
|
34
34
|
return useContext(MediasApiContext);
|
|
35
35
|
};
|
|
@@ -669,7 +669,7 @@ function MediaForm(_ref) {
|
|
|
669
669
|
}
|
|
670
670
|
MediaForm.propTypes = propTypes$7;
|
|
671
671
|
|
|
672
|
-
var MediaContext = /*#__PURE__*/
|
|
672
|
+
var MediaContext = /*#__PURE__*/createContext(null);
|
|
673
673
|
var useCurrentMedia = function useCurrentMedia() {
|
|
674
674
|
return useContext(MediaContext);
|
|
675
675
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/medias",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@babel/runtime": "^7.12.5",
|
|
54
|
-
"@panneau/core": "^4.0.
|
|
55
|
-
"@panneau/data": "^4.0.
|
|
56
|
-
"@panneau/display-image": "^4.0.
|
|
57
|
-
"@panneau/element-button": "^4.0.
|
|
58
|
-
"@panneau/element-buttons": "^4.0.
|
|
59
|
-
"@panneau/element-form": "^4.0.
|
|
60
|
-
"@panneau/element-form-status": "^4.0.
|
|
61
|
-
"@panneau/element-grid": "^4.0.
|
|
62
|
-
"@panneau/element-icon": "^4.0.
|
|
63
|
-
"@panneau/element-media-card": "^4.0.
|
|
64
|
-
"@panneau/element-media-player": "^4.0.
|
|
65
|
-
"@panneau/element-pagination": "^4.0.
|
|
66
|
-
"@panneau/element-table": "^4.0.
|
|
67
|
-
"@panneau/field-upload": "^4.0.
|
|
68
|
-
"@panneau/filter-filters": "^4.0.
|
|
54
|
+
"@panneau/core": "^4.0.5",
|
|
55
|
+
"@panneau/data": "^4.0.5",
|
|
56
|
+
"@panneau/display-image": "^4.0.5",
|
|
57
|
+
"@panneau/element-button": "^4.0.5",
|
|
58
|
+
"@panneau/element-buttons": "^4.0.5",
|
|
59
|
+
"@panneau/element-form": "^4.0.5",
|
|
60
|
+
"@panneau/element-form-status": "^4.0.5",
|
|
61
|
+
"@panneau/element-grid": "^4.0.5",
|
|
62
|
+
"@panneau/element-icon": "^4.0.5",
|
|
63
|
+
"@panneau/element-media-card": "^4.0.5",
|
|
64
|
+
"@panneau/element-media-player": "^4.0.5",
|
|
65
|
+
"@panneau/element-pagination": "^4.0.5",
|
|
66
|
+
"@panneau/element-table": "^4.0.5",
|
|
67
|
+
"@panneau/field-upload": "^4.0.5",
|
|
68
|
+
"@panneau/filter-filters": "^4.0.5",
|
|
69
69
|
"classnames": "^2.5.1",
|
|
70
70
|
"lodash-es": "^4.17.21",
|
|
71
71
|
"prop-types": "^15.7.2",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "ac8b065e8c7ada1d176d15eff1c0fa53599ad31f"
|
|
78
78
|
}
|