@panneau/modals 4.0.2 → 4.0.4
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 +5 -3
- 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 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__*/
|
|
29
|
+
return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
|
|
30
30
|
namespace: MODALS_NAMESPACE,
|
|
31
31
|
components: _objectSpread(_objectSpread({}, components), injectedComponents)
|
|
32
|
-
}, props),
|
|
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.
|
|
3
|
+
"version": "4.0.4",
|
|
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.
|
|
69
|
+
"@panneau/core": "^4.0.4",
|
|
70
70
|
"@panneau/element-portal": "^4.0.2",
|
|
71
|
-
"@panneau/modal-confirm": "^4.0.
|
|
72
|
-
"@panneau/modal-dialog": "^4.0.
|
|
73
|
-
"@panneau/modal-form": "^4.0.
|
|
74
|
-
"@panneau/modal-resource-form": "^4.0.
|
|
75
|
-
"@panneau/modal-resource-items": "^4.0.
|
|
76
|
-
"@panneau/modal-upload": "^4.0.
|
|
77
|
-
"@panneau/themes": "^4.0.
|
|
71
|
+
"@panneau/modal-confirm": "^4.0.4",
|
|
72
|
+
"@panneau/modal-dialog": "^4.0.4",
|
|
73
|
+
"@panneau/modal-form": "^4.0.4",
|
|
74
|
+
"@panneau/modal-resource-form": "^4.0.4",
|
|
75
|
+
"@panneau/modal-resource-items": "^4.0.4",
|
|
76
|
+
"@panneau/modal-upload": "^4.0.4",
|
|
77
|
+
"@panneau/themes": "^4.0.4",
|
|
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": "
|
|
84
|
+
"gitHead": "e854451a718c6bc7dcde2b804c9913d8ac0297ff"
|
|
85
85
|
}
|