react-better-html 1.0.7 → 1.1.1

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.
@@ -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
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Div = void 0;
7
- const Div_1 = __importDefault(require("./components/Div"));
8
- exports.Div = Div_1.default;
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 }; }
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-better-html",
3
- "version": "1.0.7",
3
+ "version": "1.1.1",
4
4
  "description": "A component library for react that is as close to plane html as possible",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -16,10 +16,14 @@
16
16
  "type": "git",
17
17
  "url": "git+https://github.com/krissvv/react-better-html.git"
18
18
  },
19
+ "homepage": "https://github.com/krissvv/react-better-html",
20
+ "bugs": {
21
+ "url": "https://github.com/krissvv/react-better-html/issues"
22
+ },
19
23
  "scripts": {
20
24
  "clean": "rimraf dist",
21
25
  "prebuild": "npm run clean",
22
- "build": "tsc",
26
+ "build": "babel src --out-dir dist --extensions \".ts,.tsx\"",
23
27
  "predeploy": "npm run build",
24
28
  "deploy": "npm publish"
25
29
  },
@@ -32,6 +36,11 @@
32
36
  "author": "Kristiyan Valchev (kriss.vv)",
33
37
  "license": "ISC",
34
38
  "devDependencies": {
39
+ "@babel/cli": "^7.24.8",
40
+ "@babel/core": "^7.24.8",
41
+ "@babel/preset-env": "^7.24.8",
42
+ "@babel/preset-react": "^7.24.7",
43
+ "@babel/preset-typescript": "^7.24.7",
35
44
  "@types/react": "^18.3.3",
36
45
  "@types/react-dom": "^18.3.0",
37
46
  "react": "^18.0.0",
@@ -1,6 +0,0 @@
1
- type DivProps = {
2
- children?: React.ReactNode;
3
- };
4
- declare function Div({ children }: DivProps): import("react").JSX.Element;
5
- declare const _default: import("react").MemoExoticComponent<typeof Div>;
6
- export default _default;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_1 = require("react");
4
- function Div({ children }) {
5
- return <div>{children}</div>;
6
- }
7
- exports.default = (0, react_1.memo)(Div);
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import Div from "./components/Div";
2
- export { Div };
@@ -1 +0,0 @@
1
- export {};