@public-ui/react 1.1.10-rc.2 → 1.1.10-rc.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.
- package/dist/index.cjs +3 -9
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
const React = require('react');
|
|
6
4
|
require('react-dom');
|
|
7
5
|
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
9
|
-
|
|
10
|
-
const React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
-
|
|
12
6
|
const dashToPascalCase = (str) => str.toLowerCase().split("-").map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join("");
|
|
13
7
|
const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
|
|
14
8
|
|
|
@@ -111,13 +105,13 @@ const mergeRefs = (...refs) => {
|
|
|
111
105
|
};
|
|
112
106
|
const createForwardRef = (ReactComponent, displayName) => {
|
|
113
107
|
const forwardRef = (props, ref) => {
|
|
114
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ React.createElement(ReactComponent, {
|
|
115
109
|
...props,
|
|
116
110
|
forwardedRef: ref
|
|
117
111
|
});
|
|
118
112
|
};
|
|
119
113
|
forwardRef.displayName = displayName;
|
|
120
|
-
return
|
|
114
|
+
return React.forwardRef(forwardRef);
|
|
121
115
|
};
|
|
122
116
|
|
|
123
117
|
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
@@ -125,7 +119,7 @@ const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFun
|
|
|
125
119
|
defineCustomElement();
|
|
126
120
|
}
|
|
127
121
|
const displayName = dashToPascalCase(tagName);
|
|
128
|
-
const ReactComponent = class extends
|
|
122
|
+
const ReactComponent = class extends React.Component {
|
|
129
123
|
constructor(props) {
|
|
130
124
|
super(props);
|
|
131
125
|
this.setComponentElRef = (element) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/react",
|
|
3
|
-
"version": "1.1.10-rc.
|
|
3
|
+
"version": "1.1.10-rc.3",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": "https://github.com/public-ui/kolibri",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
":unpublish": "npm unpublish -f --registry=http://localhost:4873"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@public-ui/core": "1.1.10-rc.
|
|
32
|
-
"@public-ui/components": "1.1.10-rc.
|
|
31
|
+
"@public-ui/core": "1.1.10-rc.3",
|
|
32
|
+
"@public-ui/components": "1.1.10-rc.3",
|
|
33
33
|
"@types/minimatch": "5.1.2",
|
|
34
34
|
"@types/minimist": "1.2.2",
|
|
35
|
-
"@types/node": "18.11.
|
|
35
|
+
"@types/node": "18.11.8",
|
|
36
36
|
"@types/normalize-package-data": "2.4.1",
|
|
37
|
-
"@types/react": "18.0.
|
|
38
|
-
"@types/react-dom": "18.0.
|
|
37
|
+
"@types/react": "18.0.24",
|
|
38
|
+
"@types/react-dom": "18.0.8",
|
|
39
39
|
"react": "18.2.0",
|
|
40
40
|
"react-dom": "18.2.0",
|
|
41
41
|
"typescript": "4.8.4",
|
|
42
|
-
"unbuild": "0.
|
|
42
|
+
"unbuild": "0.9.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@public-ui/components": "1.1.10-rc.
|
|
45
|
+
"@public-ui/components": "1.1.10-rc.3",
|
|
46
46
|
"react": ">=16.14.0",
|
|
47
47
|
"react-dom": ">=16.14.0"
|
|
48
48
|
},
|