@panneau/medias 3.0.190 → 3.0.192
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 +4 -5
- package/package.json +17 -17
package/es/index.js
CHANGED
@@ -820,7 +820,7 @@ var propTypes$5 = {
|
|
820
820
|
onMediaFormOpen: PropTypes.func,
|
821
821
|
onMediaFormClose: PropTypes.func,
|
822
822
|
selectable: PropTypes.bool,
|
823
|
-
selectedItems: PropTypes.arrayOf(PropTypes.shape({})),
|
823
|
+
selectedItems: PropTypes.oneOfType([PropTypes.shape({}), PropTypes.arrayOf(PropTypes.shape({}))]),
|
824
824
|
onSelectionChange: PropTypes.func,
|
825
825
|
multipleSelection: PropTypes.bool,
|
826
826
|
uppyConfig: PropTypes.shape({}),
|
@@ -1160,7 +1160,7 @@ function MediasBrowser(_ref) {
|
|
1160
1160
|
onReset: onQueryReset,
|
1161
1161
|
theme: theme
|
1162
1162
|
}) : null, !withoutUpload ? /*#__PURE__*/React.createElement(UploadField, {
|
1163
|
-
className: "ms-auto w-auto text-nowrap mt-2",
|
1163
|
+
className: "ms-auto w-auto text-nowrap mt-2 mb-2 ps-2",
|
1164
1164
|
withButton: true,
|
1165
1165
|
withoutMedia: true,
|
1166
1166
|
uppyConfig: uppyConfig,
|
@@ -1246,7 +1246,7 @@ MediasBrowser.defaultProps = defaultProps$5;
|
|
1246
1246
|
var _excluded$4 = ["items", "value", "onChange", "multiple", "className"];
|
1247
1247
|
var propTypes$4 = {
|
1248
1248
|
items: PropTypes.arrayOf(PropTypes.shape({})),
|
1249
|
-
value: PropTypes.arrayOf(PropTypes.shape({})),
|
1249
|
+
value: PropTypes.oneOfType([PropTypes.shape({}), PropTypes.arrayOf(PropTypes.shape({}))]),
|
1250
1250
|
multiple: PropTypes.bool,
|
1251
1251
|
onChange: PropTypes.func.isRequired,
|
1252
1252
|
className: PropTypes.string
|
@@ -1329,8 +1329,7 @@ var propTypes$2 = {
|
|
1329
1329
|
};
|
1330
1330
|
var defaultProps$2 = {
|
1331
1331
|
api: null,
|
1332
|
-
media: null
|
1333
|
-
onChange: null
|
1332
|
+
media: null
|
1334
1333
|
};
|
1335
1334
|
function MediasPickerContainer(_ref) {
|
1336
1335
|
var api = _ref.api,
|
package/lib/index.js
CHANGED
@@ -822,7 +822,7 @@ var propTypes$5 = {
|
|
822
822
|
onMediaFormOpen: PropTypes.func,
|
823
823
|
onMediaFormClose: PropTypes.func,
|
824
824
|
selectable: PropTypes.bool,
|
825
|
-
selectedItems: PropTypes.arrayOf(PropTypes.shape({})),
|
825
|
+
selectedItems: PropTypes.oneOfType([PropTypes.shape({}), PropTypes.arrayOf(PropTypes.shape({}))]),
|
826
826
|
onSelectionChange: PropTypes.func,
|
827
827
|
multipleSelection: PropTypes.bool,
|
828
828
|
uppyConfig: PropTypes.shape({}),
|
@@ -1162,7 +1162,7 @@ function MediasBrowser(_ref) {
|
|
1162
1162
|
onReset: onQueryReset,
|
1163
1163
|
theme: theme
|
1164
1164
|
}) : null, !withoutUpload ? /*#__PURE__*/React.createElement(UploadField, {
|
1165
|
-
className: "ms-auto w-auto text-nowrap mt-2",
|
1165
|
+
className: "ms-auto w-auto text-nowrap mt-2 mb-2 ps-2",
|
1166
1166
|
withButton: true,
|
1167
1167
|
withoutMedia: true,
|
1168
1168
|
uppyConfig: uppyConfig,
|
@@ -1248,7 +1248,7 @@ MediasBrowser.defaultProps = defaultProps$5;
|
|
1248
1248
|
var _excluded$4 = ["items", "value", "onChange", "multiple", "className"];
|
1249
1249
|
var propTypes$4 = {
|
1250
1250
|
items: PropTypes.arrayOf(PropTypes.shape({})),
|
1251
|
-
value: PropTypes.arrayOf(PropTypes.shape({})),
|
1251
|
+
value: PropTypes.oneOfType([PropTypes.shape({}), PropTypes.arrayOf(PropTypes.shape({}))]),
|
1252
1252
|
multiple: PropTypes.bool,
|
1253
1253
|
onChange: PropTypes.func.isRequired,
|
1254
1254
|
className: PropTypes.string
|
@@ -1331,8 +1331,7 @@ var propTypes$2 = {
|
|
1331
1331
|
};
|
1332
1332
|
var defaultProps$2 = {
|
1333
1333
|
api: null,
|
1334
|
-
media: null
|
1335
|
-
onChange: null
|
1334
|
+
media: null
|
1336
1335
|
};
|
1337
1336
|
function MediasPickerContainer(_ref) {
|
1338
1337
|
var api = _ref.api,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/medias",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.192",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -46,21 +46,21 @@
|
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
48
|
"@babel/runtime": "^7.12.5",
|
49
|
-
"@panneau/core": "^3.0.
|
50
|
-
"@panneau/data": "^3.0.
|
51
|
-
"@panneau/display-image": "^3.0.
|
52
|
-
"@panneau/element-button": "^3.0.
|
53
|
-
"@panneau/element-buttons": "^3.0.
|
54
|
-
"@panneau/element-form": "^3.0.
|
55
|
-
"@panneau/element-form-status": "^3.0.
|
56
|
-
"@panneau/element-grid": "^3.0.
|
57
|
-
"@panneau/element-icon": "^3.0.
|
58
|
-
"@panneau/element-media-card": "^3.0.
|
59
|
-
"@panneau/element-media-player": "^3.0.
|
60
|
-
"@panneau/element-pagination": "^3.0.
|
61
|
-
"@panneau/element-table": "^3.0.
|
62
|
-
"@panneau/field-upload": "^3.0.
|
63
|
-
"@panneau/filter-filters": "^3.0.
|
49
|
+
"@panneau/core": "^3.0.192",
|
50
|
+
"@panneau/data": "^3.0.192",
|
51
|
+
"@panneau/display-image": "^3.0.192",
|
52
|
+
"@panneau/element-button": "^3.0.192",
|
53
|
+
"@panneau/element-buttons": "^3.0.192",
|
54
|
+
"@panneau/element-form": "^3.0.192",
|
55
|
+
"@panneau/element-form-status": "^3.0.192",
|
56
|
+
"@panneau/element-grid": "^3.0.192",
|
57
|
+
"@panneau/element-icon": "^3.0.192",
|
58
|
+
"@panneau/element-media-card": "^3.0.192",
|
59
|
+
"@panneau/element-media-player": "^3.0.192",
|
60
|
+
"@panneau/element-pagination": "^3.0.192",
|
61
|
+
"@panneau/element-table": "^3.0.192",
|
62
|
+
"@panneau/field-upload": "^3.0.192",
|
63
|
+
"@panneau/filter-filters": "^3.0.192",
|
64
64
|
"classnames": "^2.5.1",
|
65
65
|
"lodash": "^4.17.21",
|
66
66
|
"prop-types": "^15.7.2",
|
@@ -69,5 +69,5 @@
|
|
69
69
|
"publishConfig": {
|
70
70
|
"access": "public"
|
71
71
|
},
|
72
|
-
"gitHead": "
|
72
|
+
"gitHead": "fdea2ce9766bf695810d652ddd7db8d768ea5332"
|
73
73
|
}
|