@panneau/medias 3.0.269 → 3.0.271
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 +10 -12
- package/package.json +18 -18
package/es/index.js
CHANGED
@@ -15,8 +15,8 @@ import MediaPlayer from '@panneau/element-media-player';
|
|
15
15
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
16
16
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
17
17
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
18
|
-
import isArray from 'lodash/isArray';
|
19
|
-
import uniqBy from 'lodash/uniqBy';
|
18
|
+
import isArray from 'lodash-es/isArray';
|
19
|
+
import uniqBy from 'lodash-es/uniqBy';
|
20
20
|
import { PropTypes as PropTypes$1 } from '@panneau/core';
|
21
21
|
import Buttons from '@panneau/element-buttons';
|
22
22
|
import Grid from '@panneau/element-grid';
|
@@ -309,14 +309,14 @@ var defaultFields = [{
|
|
309
309
|
// name: 'tags',
|
310
310
|
// label: <FormattedMessage defaultMessage="Tags" description="Field name" />,
|
311
311
|
// type: 'array',
|
312
|
-
// component: '
|
312
|
+
// component: 'item',
|
313
313
|
// requestUrl: '/api/tags',
|
314
|
-
//
|
315
|
-
//
|
314
|
+
// itemLabelPath: 'label',
|
315
|
+
// itemValuePath: 'id', // Uses taggable so change the logic here
|
316
316
|
// valueIsOption: true,
|
317
317
|
// multiple: true,
|
318
318
|
// paginated: false,
|
319
|
-
// creatable: true,
|
319
|
+
// creatable: true,
|
320
320
|
// },
|
321
321
|
{
|
322
322
|
id: 'info',
|
@@ -1080,7 +1080,10 @@ function MediasBrowser(_ref) {
|
|
1080
1080
|
setShowTrashed = _useState4[1];
|
1081
1081
|
var _useMedias = useMedias$1(query, page, count, {
|
1082
1082
|
items: baseItems,
|
1083
|
-
trashed: showTrashed
|
1083
|
+
trashed: showTrashed,
|
1084
|
+
queryConfig: {
|
1085
|
+
staleTime: 0
|
1086
|
+
}
|
1084
1087
|
}),
|
1085
1088
|
items = _useMedias.items,
|
1086
1089
|
allItems = _useMedias.allItems,
|
@@ -1257,11 +1260,6 @@ function MediasBrowser(_ref) {
|
|
1257
1260
|
}
|
1258
1261
|
return partialFilters;
|
1259
1262
|
}, [filters, types, withTrash, showTrashed, uploadProcessing, onClickTrash]);
|
1260
|
-
|
1261
|
-
// dirty fix to bypass global query caching
|
1262
|
-
useEffect(function () {
|
1263
|
-
reload();
|
1264
|
-
}, [finalFilters, showTrashed]);
|
1265
1263
|
var partialColumns = useMemo(function () {
|
1266
1264
|
return withTrash && showTrashed ? (columns || []).map(function (column) {
|
1267
1265
|
var _ref10 = column || {},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/medias",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.271",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -51,28 +51,28 @@
|
|
51
51
|
},
|
52
52
|
"dependencies": {
|
53
53
|
"@babel/runtime": "^7.12.5",
|
54
|
-
"@panneau/core": "^3.0.
|
55
|
-
"@panneau/data": "^3.0.
|
56
|
-
"@panneau/display-image": "^3.0.
|
57
|
-
"@panneau/element-button": "^3.0.
|
58
|
-
"@panneau/element-buttons": "^3.0.
|
59
|
-
"@panneau/element-form": "^3.0.
|
60
|
-
"@panneau/element-form-status": "^3.0.
|
61
|
-
"@panneau/element-grid": "^3.0.
|
62
|
-
"@panneau/element-icon": "^3.0.
|
63
|
-
"@panneau/element-media-card": "^3.0.
|
64
|
-
"@panneau/element-media-player": "^3.0.
|
65
|
-
"@panneau/element-pagination": "^3.0.
|
66
|
-
"@panneau/element-table": "^3.0.
|
67
|
-
"@panneau/field-upload": "^3.0.
|
68
|
-
"@panneau/filter-filters": "^3.0.
|
54
|
+
"@panneau/core": "^3.0.271",
|
55
|
+
"@panneau/data": "^3.0.271",
|
56
|
+
"@panneau/display-image": "^3.0.271",
|
57
|
+
"@panneau/element-button": "^3.0.271",
|
58
|
+
"@panneau/element-buttons": "^3.0.271",
|
59
|
+
"@panneau/element-form": "^3.0.271",
|
60
|
+
"@panneau/element-form-status": "^3.0.271",
|
61
|
+
"@panneau/element-grid": "^3.0.271",
|
62
|
+
"@panneau/element-icon": "^3.0.271",
|
63
|
+
"@panneau/element-media-card": "^3.0.271",
|
64
|
+
"@panneau/element-media-player": "^3.0.271",
|
65
|
+
"@panneau/element-pagination": "^3.0.271",
|
66
|
+
"@panneau/element-table": "^3.0.271",
|
67
|
+
"@panneau/field-upload": "^3.0.271",
|
68
|
+
"@panneau/filter-filters": "^3.0.271",
|
69
69
|
"classnames": "^2.5.1",
|
70
|
-
"lodash": "^4.17.21",
|
70
|
+
"lodash-es": "^4.17.21",
|
71
71
|
"prop-types": "^15.7.2",
|
72
72
|
"react-intl": "^5.15.8||^6.0.0"
|
73
73
|
},
|
74
74
|
"publishConfig": {
|
75
75
|
"access": "public"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "017c943c9f29e78d1bb46c46108e9182bb9d9c80"
|
78
78
|
}
|