react-better-html 1.1.0 → 1.1.2
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/components/Div.js +12 -0
- package/dist/index.js +12 -7
- package/dist/types/types.js +1 -2
- package/package.json +8 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
function Div(_ref) {
|
|
9
|
+
var children = _ref.children;
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", null, children);
|
|
11
|
+
}
|
|
12
|
+
var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(Div);
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Div", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Div["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Div = _interopRequireDefault(require("./components/Div"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
package/dist/types/types.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-better-html",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A component library for react that is as close to plane html as possible",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"files": [
|
|
7
8
|
"dist"
|
|
8
9
|
],
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"scripts": {
|
|
24
25
|
"clean": "rimraf dist",
|
|
25
26
|
"prebuild": "npm run clean",
|
|
26
|
-
"build": "tsc",
|
|
27
|
+
"build": "tsc && babel src --out-dir dist --extensions \".ts,.tsx\"",
|
|
27
28
|
"predeploy": "npm run build",
|
|
28
29
|
"deploy": "npm publish"
|
|
29
30
|
},
|
|
@@ -36,6 +37,11 @@
|
|
|
36
37
|
"author": "Kristiyan Valchev (kriss.vv)",
|
|
37
38
|
"license": "ISC",
|
|
38
39
|
"devDependencies": {
|
|
40
|
+
"@babel/cli": "^7.24.8",
|
|
41
|
+
"@babel/core": "^7.24.8",
|
|
42
|
+
"@babel/preset-env": "^7.24.8",
|
|
43
|
+
"@babel/preset-react": "^7.24.7",
|
|
44
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
39
45
|
"@types/react": "^18.3.3",
|
|
40
46
|
"@types/react-dom": "^18.3.0",
|
|
41
47
|
"react": "^18.0.0",
|