@panneau/modals 4.0.1 → 4.0.3

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 +5 -3
  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 React from 'react';
4
3
  import { ComponentsProvider, MODALS_NAMESPACE } from '@panneau/core/contexts';
5
4
  import modalDialog from '@panneau/modal-dialog';
6
5
  import modalUpload from '@panneau/modal-upload';
@@ -8,6 +7,7 @@ import modalConfirm from '@panneau/modal-confirm';
8
7
  import modalForm from '@panneau/modal-form';
9
8
  import modalResourceForm from '@panneau/modal-resource-form';
10
9
  import modalResourceItems from '@panneau/modal-resource-items';
10
+ import { jsx } from 'react/jsx-runtime';
11
11
 
12
12
  var components = /*#__PURE__*/Object.freeze({
13
13
  __proto__: null,
@@ -26,10 +26,12 @@ function ModalsProvider(_ref) {
26
26
  _ref$children = _ref.children,
27
27
  children = _ref$children === void 0 ? null : _ref$children,
28
28
  props = _objectWithoutProperties(_ref, _excluded);
29
- return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
29
+ return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
30
30
  namespace: MODALS_NAMESPACE,
31
31
  components: _objectSpread(_objectSpread({}, components), injectedComponents)
32
- }, props), children);
32
+ }, props), {}, {
33
+ children: children
34
+ }));
33
35
  }
34
36
 
35
37
  export { ModalsProvider as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modals",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
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": "^4.0.1",
70
- "@panneau/element-portal": "^4.0.0",
71
- "@panneau/modal-confirm": "^4.0.1",
72
- "@panneau/modal-dialog": "^4.0.1",
73
- "@panneau/modal-form": "^4.0.1",
74
- "@panneau/modal-resource-form": "^4.0.1",
75
- "@panneau/modal-resource-items": "^4.0.1",
76
- "@panneau/modal-upload": "^4.0.1",
77
- "@panneau/themes": "^4.0.1",
69
+ "@panneau/core": "^4.0.2",
70
+ "@panneau/element-portal": "^4.0.2",
71
+ "@panneau/modal-confirm": "^4.0.3",
72
+ "@panneau/modal-dialog": "^4.0.2",
73
+ "@panneau/modal-form": "^4.0.3",
74
+ "@panneau/modal-resource-form": "^4.0.3",
75
+ "@panneau/modal-resource-items": "^4.0.3",
76
+ "@panneau/modal-upload": "^4.0.2",
77
+ "@panneau/themes": "^4.0.2",
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": "dbdf65640625c027ecd56cf2b816b80a5c38cb8d"
84
+ "gitHead": "26b5ab7536b0e8c3197d40d302fc2681e7c7122e"
85
85
  }