@panneau/modal-medias-picker 3.0.163 → 3.0.165

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
@@ -7,8 +7,9 @@ import { FormattedMessage } from 'react-intl';
7
7
  import { MediasResourcePicker, MediasPickerContainer } from '@panneau/medias';
8
8
  import Dialog from '@panneau/modal-dialog';
9
9
 
10
- var _excluded = ["resource", "title", "onClose", "onChange", "onConfirm", "confirmButton", "cancelButton", "multiple"];
10
+ var _excluded = ["id", "resource", "title", "onClose", "onChange", "onConfirm", "confirmButton", "cancelButton", "multiple"];
11
11
  var propTypes = {
12
+ id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
12
13
  resource: PropTypes.string,
13
14
  title: PropTypes.string,
14
15
  multiple: PropTypes.bool,
@@ -31,7 +32,8 @@ var defaultProps = {
31
32
  cancelButton: null
32
33
  };
33
34
  function MediasPickerModal(_ref) {
34
- var resource = _ref.resource,
35
+ var id = _ref.id,
36
+ resource = _ref.resource,
35
37
  title = _ref.title,
36
38
  onClose = _ref.onClose,
37
39
  onChange = _ref.onChange,
@@ -59,6 +61,7 @@ function MediasPickerModal(_ref) {
59
61
  setCount(items !== null ? items.length : 0);
60
62
  }, [onChange, setCount]);
61
63
  return /*#__PURE__*/React.createElement(Dialog, {
64
+ id: id,
62
65
  size: "xl",
63
66
  onClose: onClose,
64
67
  title: title,
package/lib/index.js CHANGED
@@ -11,8 +11,9 @@ var reactIntl = require('react-intl');
11
11
  var medias = require('@panneau/medias');
12
12
  var Dialog = require('@panneau/modal-dialog');
13
13
 
14
- var _excluded = ["resource", "title", "onClose", "onChange", "onConfirm", "confirmButton", "cancelButton", "multiple"];
14
+ var _excluded = ["id", "resource", "title", "onClose", "onChange", "onConfirm", "confirmButton", "cancelButton", "multiple"];
15
15
  var propTypes = {
16
+ id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
16
17
  resource: PropTypes.string,
17
18
  title: PropTypes.string,
18
19
  multiple: PropTypes.bool,
@@ -35,7 +36,8 @@ var defaultProps = {
35
36
  cancelButton: null
36
37
  };
37
38
  function MediasPickerModal(_ref) {
38
- var resource = _ref.resource,
39
+ var id = _ref.id,
40
+ resource = _ref.resource,
39
41
  title = _ref.title,
40
42
  onClose = _ref.onClose,
41
43
  onChange = _ref.onChange,
@@ -63,6 +65,7 @@ function MediasPickerModal(_ref) {
63
65
  setCount(items !== null ? items.length : 0);
64
66
  }, [onChange, setCount]);
65
67
  return /*#__PURE__*/React.createElement(Dialog, {
68
+ id: id,
66
69
  size: "xl",
67
70
  onClose: onClose,
68
71
  title: title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modal-medias-picker",
3
- "version": "3.0.163",
3
+ "version": "3.0.165",
4
4
  "description": "Medias picker modal",
5
5
  "keywords": [
6
6
  "javascript"
@@ -46,9 +46,9 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.12.5",
49
- "@panneau/core": "^3.0.162",
50
- "@panneau/medias": "^3.0.163",
51
- "@panneau/modal-dialog": "^3.0.163",
49
+ "@panneau/core": "^3.0.164",
50
+ "@panneau/medias": "^3.0.165",
51
+ "@panneau/modal-dialog": "^3.0.164",
52
52
  "@uppy/core": "^3.9.1",
53
53
  "@uppy/dashboard": "^3.7.3",
54
54
  "@uppy/drag-drop": "^3.0.3",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "30b29ec9436fb6ead123625baa0bd1b32d69fcac"
67
+ "gitHead": "3be43601dbd39c37504b9364886f6d1071f9b5a0"
68
68
  }