@panneau/modals 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.
- package/es/index.js +6 -16
- 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
|
-
|
|
25
|
-
components
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
"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": "^
|
|
70
|
-
"@panneau/element-portal": "^
|
|
71
|
-
"@panneau/modal-confirm": "^
|
|
72
|
-
"@panneau/modal-dialog": "^
|
|
73
|
-
"@panneau/modal-form": "^
|
|
74
|
-
"@panneau/modal-resource-form": "^
|
|
75
|
-
"@panneau/modal-resource-items": "^
|
|
76
|
-
"@panneau/modal-upload": "^
|
|
77
|
-
"@panneau/themes": "^
|
|
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": "
|
|
84
|
+
"gitHead": "2cca874e0388b4a20c39aadb205c0e67d5a946fc"
|
|
85
85
|
}
|