@xwadex/fesd-next 0.1.73 → 0.1.75

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,13 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MyClientComponent = MyClientComponent;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ function MyClientComponent({ name }) {
8
+ const [state, setstate] = (0, react_1.useState)(0);
9
+ (0, react_1.useEffect)(() => {
10
+ console.log('hello!');
11
+ }, []);
12
+ return (0, jsx_runtime_1.jsxs)("div", { children: ["This is the component, name :", (0, jsx_runtime_1.jsx)("span", { children: name !== null && name !== void 0 ? name : "empty" }), (0, jsx_runtime_1.jsx)("span", { children: state }), (0, jsx_runtime_1.jsx)("button", { onClick: () => setstate(prev => prev + 1), children: "+" })] });
13
+ }
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MyClientComponent2 = MyClientComponent2;
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ function MyClientComponent2() {
8
+ (0, react_1.useEffect)(() => {
9
+ console.log('hello!');
10
+ }, []);
11
+ return (0, jsx_runtime_1.jsx)("div", { children: "This is the component" });
12
+ }
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ "use strict";
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./MyClientComponent"), exports);
19
+ __exportStar(require("./MyClientComponent2"), exports);
package/cjs/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./server/MyComponent"), exports);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MyComponent = MyComponent;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ function MyComponent() {
6
+ return (0, jsx_runtime_1.jsx)("div", { children: "This is the component" });
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  import type { PropsType } from "../types";
2
2
  export declare function MyClientComponent({ name }: PropsType): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=MyClientComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyClientComponent.d.ts","sourceRoot":"","sources":["../../src/packages/client/MyClientComponent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,2CAapD"}
@@ -6,5 +6,5 @@ export function MyClientComponent({ name }) {
6
6
  useEffect(() => {
7
7
  console.log('hello!');
8
8
  }, []);
9
- return _jsxs("div", { children: ["This is the component, name :", _jsx("span", { children: name !== null && name !== void 0 ? name : "empty" }), _jsx("span", { children: state }), _jsx("button", { onClick: () => setstate(prev => prev + 1), children: "+" })] });
9
+ return _jsxs("div", { children: ["This is the component, name :", _jsx("span", { children: name ?? "empty" }), _jsx("span", { children: state }), _jsx("button", { onClick: () => setstate(prev => prev + 1), children: "+" })] });
10
10
  }
@@ -1 +1,2 @@
1
1
  export declare function MyClientComponent2(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=MyClientComponent2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyClientComponent2.d.ts","sourceRoot":"","sources":["../../src/packages/client/MyClientComponent2.tsx"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,4CAMjC"}
package/client/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./MyClientComponent";
2
2
  export * from "./MyClientComponent2";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/packages/client/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./server/MyComponent";
2
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/packages/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@xwadex/fesd-next",
3
- "version": "0.1.73",
4
- "main": "index.js",
5
- "files": ["index.js", "client/"],
3
+ "version": "0.1.75",
4
+ "main": "cjs/index.js",
5
+ "module": "index.js",
6
+ "types": "types/index.d.ts",
6
7
  "exports": {
7
- ".": "./index.js",
8
- "./client": "./client/index.js"
8
+ "import": "./index.js",
9
+ "require": "./cjs/index.js",
10
+ "types": "./types/index.d.ts"
9
11
  },
10
12
  "scripts": {},
11
13
  "peerDependencies": {
@@ -0,0 +1,2 @@
1
+ export declare function MyComponent(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=MyComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyComponent.d.ts","sourceRoot":"","sources":["../../src/packages/server/MyComponent.tsx"],"names":[],"mappings":"AAGA,wBAAgB,WAAW,4CAE1B"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function MyComponent() {
3
+ return _jsx("div", { children: "This is the component" });
4
+ }
@@ -0,0 +1,2 @@
1
+ import type { PropsType } from "../types";
2
+ export declare function MyClientComponent({ name }: PropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function MyClientComponent2(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./MyClientComponent";
2
+ export * from "./MyClientComponent2";
@@ -0,0 +1,4 @@
1
+ export interface PropsType {
2
+ name?: string;
3
+ }
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/packages/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB"}
package/types/index.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function MyComponent(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export interface PropsType {
2
+ name?: string;
3
+ }