react-better-html 1.0.1 → 1.0.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.
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ function Div({ children }) {
5
+ return <>{children}</>;
6
+ }
7
+ exports.default = (0, react_1.memo)(Div);
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export declare const testPackage: () => string;
1
+ import Div from "./components/Div";
2
+ export { Div };
package/dist/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.testPackage = void 0;
4
- const testPackage = () => {
5
- return "Hello World!";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
6
4
  };
7
- exports.testPackage = testPackage;
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;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-better-html",
3
- "version": "1.0.1",
3
+ "version": "1.0.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
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "scripts": {
16
16
  "build": "tsc",
17
- "publish": "npm run build && npm publish"
17
+ "deploy": "npm run build && npm publish"
18
18
  },
19
19
  "keywords": [
20
20
  "component",
@@ -25,9 +25,12 @@
25
25
  "author": "kriss.vv",
26
26
  "license": "ISC",
27
27
  "devDependencies": {
28
+ "@types/react": "^18.3.3",
29
+ "react": "^18.0.0",
30
+ "react-dom": "^18.0.0",
28
31
  "typescript": "^5.5.3"
29
32
  },
30
33
  "peerDependencies": {
31
- "react": "^18.2.0"
34
+ "react": "^18.0.0"
32
35
  }
33
36
  }