@xwadex/fesd-next 0.1.75 → 0.1.76

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.
@@ -1,3 +1,3 @@
1
1
  import type { PropsType } from "../types";
2
- export declare function MyClientComponent({ name }: PropsType): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=MyClientComponent.d.ts.map
2
+ declare const MyClientComponent: React.FC<PropsType>;
3
+ export default MyClientComponent;
@@ -1,10 +1,12 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
- export function MyClientComponent({ name }) {
4
+ const MyClientComponent = ({ name }) => {
5
5
  const [state, setstate] = useState(0);
6
6
  useEffect(() => {
7
7
  console.log('hello!');
8
8
  }, []);
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
- }
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: "+" })] });
10
+ };
11
+ MyClientComponent.displayName = "MyClientComponent";
12
+ export default MyClientComponent;
@@ -1,2 +1,3 @@
1
- export declare function MyClientComponent2(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=MyClientComponent2.d.ts.map
1
+ import type { PropsType } from "../types";
2
+ declare const MyClientComponent2: React.FC<PropsType>;
3
+ export default MyClientComponent2;
@@ -1,9 +1,12 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useEffect } from "react";
4
- export function MyClientComponent2() {
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useState } from "react";
4
+ const MyClientComponent2 = ({ name }) => {
5
+ const [state, setstate] = useState(0);
5
6
  useEffect(() => {
6
7
  console.log('hello!');
7
8
  }, []);
8
- return _jsx("div", { children: "This is the component" });
9
- }
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: "+" })] });
10
+ };
11
+ MyClientComponent2.displayName = "MyClientComponent2";
12
+ export default MyClientComponent2;
package/client/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from "./MyClientComponent";
2
2
  export * from "./MyClientComponent2";
3
- //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "@xwadex/fesd-next",
3
- "version": "0.1.75",
4
- "main": "cjs/index.js",
5
- "module": "index.js",
6
- "types": "types/index.d.ts",
3
+ "version": "0.1.76",
4
+ "main": "index.js",
5
+ "files": ["index.js", "client/"],
7
6
  "exports": {
8
- "import": "./index.js",
9
- "require": "./cjs/index.js",
10
- "types": "./types/index.d.ts"
7
+ ".": "./index.js",
8
+ "./client": "./client/index.js"
11
9
  },
12
10
  "scripts": {},
13
11
  "peerDependencies": {
@@ -1,13 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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 DELETED
@@ -1,17 +0,0 @@
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);
@@ -1,7 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyClientComponent2.d.ts","sourceRoot":"","sources":["../../src/packages/client/MyClientComponent2.tsx"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,4CAMjC"}
@@ -1 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
1
- export * from "./server/MyComponent";
2
- //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/packages/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare function MyComponent(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=MyComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyComponent.d.ts","sourceRoot":"","sources":["../../src/packages/server/MyComponent.tsx"],"names":[],"mappings":"AAGA,wBAAgB,WAAW,4CAE1B"}
@@ -1,4 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export function MyComponent() {
3
- return _jsx("div", { children: "This is the component" });
4
- }
@@ -1,2 +0,0 @@
1
- import type { PropsType } from "../types";
2
- export declare function MyClientComponent({ name }: PropsType): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function MyClientComponent2(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from "./MyClientComponent";
2
- export * from "./MyClientComponent2";
package/types/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export interface PropsType {
2
- name?: string;
3
- }
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare function MyComponent(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export interface PropsType {
2
- name?: string;
3
- }