@panneau/modals 3.0.308 → 4.0.0

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.
Files changed (2) hide show
  1. package/es/index.js +6 -16
  2. package/package.json +11 -11
package/es/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import PropTypes from 'prop-types';
4
3
  import React from 'react';
5
4
  import { ComponentsProvider, MODALS_NAMESPACE } from '@panneau/core/contexts';
6
5
  import modalDialog from '@panneau/modal-dialog';
@@ -21,25 +20,16 @@ var components = /*#__PURE__*/Object.freeze({
21
20
  });
22
21
 
23
22
  var _excluded = ["components", "children"];
24
- var propTypes = {
25
- components: PropTypes.object,
26
- // eslint-disable-line
27
- children: PropTypes.node
28
- };
29
- var defaultProps = {
30
- components: null,
31
- children: null
32
- };
33
- var ModalsProvider = function ModalsProvider(_ref) {
34
- var injectedComponents = _ref.components,
35
- children = _ref.children,
23
+ function ModalsProvider(_ref) {
24
+ var _ref$components = _ref.components,
25
+ injectedComponents = _ref$components === void 0 ? null : _ref$components,
26
+ _ref$children = _ref.children,
27
+ children = _ref$children === void 0 ? null : _ref$children,
36
28
  props = _objectWithoutProperties(_ref, _excluded);
37
29
  return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
38
30
  namespace: MODALS_NAMESPACE,
39
31
  components: _objectSpread(_objectSpread({}, components), injectedComponents)
40
32
  }, props), children);
41
- };
42
- ModalsProvider.propTypes = propTypes;
43
- ModalsProvider.defaultProps = defaultProps;
33
+ }
44
34
 
45
35
  export { ModalsProvider as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modals",
3
- "version": "3.0.308",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -66,20 +66,20 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@babel/runtime": "^7.12.5",
69
- "@panneau/core": "^3.0.307",
70
- "@panneau/element-portal": "^3.0.224",
71
- "@panneau/modal-confirm": "^3.0.308",
72
- "@panneau/modal-dialog": "^3.0.308",
73
- "@panneau/modal-form": "^3.0.308",
74
- "@panneau/modal-resource-form": "^3.0.308",
75
- "@panneau/modal-resource-items": "^3.0.308",
76
- "@panneau/modal-upload": "^3.0.308",
77
- "@panneau/themes": "^3.0.308",
69
+ "@panneau/core": "^4.0.0",
70
+ "@panneau/element-portal": "^4.0.0",
71
+ "@panneau/modal-confirm": "^4.0.0",
72
+ "@panneau/modal-dialog": "^4.0.0",
73
+ "@panneau/modal-form": "^4.0.0",
74
+ "@panneau/modal-resource-form": "^4.0.0",
75
+ "@panneau/modal-resource-items": "^4.0.0",
76
+ "@panneau/modal-upload": "^4.0.0",
77
+ "@panneau/themes": "^4.0.0",
78
78
  "classnames": "^2.5.1",
79
79
  "prop-types": "^15.7.2"
80
80
  },
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "8711276a09fcda499a4a2f206554f9cd995976f5"
84
+ "gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
85
85
  }