@panneau/actions 3.0.310 → 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 +10 -10
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, ACTIONS_NAMESPACE } from '@panneau/core/contexts';
6
5
  import actionDelete from '@panneau/action-delete';
@@ -23,25 +22,16 @@ var components = /*#__PURE__*/Object.freeze({
23
22
  });
24
23
 
25
24
  var _excluded = ["components", "children"];
26
- var propTypes = {
27
- components: PropTypes.object,
28
- // eslint-disable-line
29
- children: PropTypes.node
30
- };
31
- var defaultProps = {
32
- components: null,
33
- children: null
34
- };
35
- var ActionsProviders = function ActionsProviders(_ref) {
36
- var injectedComponents = _ref.components,
37
- children = _ref.children,
25
+ function ActionsProviders(_ref) {
26
+ var _ref$components = _ref.components,
27
+ injectedComponents = _ref$components === void 0 ? null : _ref$components,
28
+ _ref$children = _ref.children,
29
+ children = _ref$children === void 0 ? null : _ref$children,
38
30
  props = _objectWithoutProperties(_ref, _excluded);
39
31
  return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
40
32
  namespace: ACTIONS_NAMESPACE,
41
33
  components: _objectSpread(_objectSpread({}, components), injectedComponents)
42
34
  }, props), children);
43
- };
44
- ActionsProviders.propTypes = propTypes;
45
- ActionsProviders.defaultProps = defaultProps;
35
+ }
46
36
 
47
37
  export { ActionsProviders as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/actions",
3
- "version": "3.0.310",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -58,18 +58,18 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@babel/runtime": "^7.12.5",
61
- "@panneau/action-delete": "^3.0.308",
62
- "@panneau/action-duplicate": "^3.0.308",
63
- "@panneau/action-edit": "^3.0.308",
64
- "@panneau/action-import": "^3.0.308",
65
- "@panneau/action-restore": "^3.0.308",
66
- "@panneau/action-show": "^3.0.308",
67
- "@panneau/action-upload": "^3.0.310",
68
- "@panneau/core": "^3.0.307",
61
+ "@panneau/action-delete": "^4.0.0",
62
+ "@panneau/action-duplicate": "^4.0.0",
63
+ "@panneau/action-edit": "^4.0.0",
64
+ "@panneau/action-import": "^4.0.0",
65
+ "@panneau/action-restore": "^4.0.0",
66
+ "@panneau/action-show": "^4.0.0",
67
+ "@panneau/action-upload": "^4.0.0",
68
+ "@panneau/core": "^4.0.0",
69
69
  "prop-types": "^15.7.2"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "d7d8937d48a4f972a8fa742256267f6b4aaf3f4f"
74
+ "gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
75
75
  }