@xwadex/fesd-next 0.1.66 → 0.1.68
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/client/MyClientComponent.js +6 -9
- package/client/MyClientComponent2.js +5 -8
- package/client/index.js +2 -18
- package/index.js +1 -17
- package/package.json +1 -1
- package/server/MyComponent.js +3 -6
- package/types/index.js +1 -2
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
function MyClientComponent({ name }) {
|
|
8
|
-
const [state, setstate] = (0, react_1.useState)(0);
|
|
9
|
-
(0, react_1.useEffect)(() => {
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
export function MyClientComponent({ name }) {
|
|
5
|
+
const [state, setstate] = useState(0);
|
|
6
|
+
useEffect(() => {
|
|
10
7
|
console.log('hello!');
|
|
11
8
|
}, []);
|
|
12
|
-
return (
|
|
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: "+" })] });
|
|
13
10
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
function MyClientComponent2() {
|
|
8
|
-
(0, react_1.useEffect)(() => {
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
export function MyClientComponent2() {
|
|
5
|
+
useEffect(() => {
|
|
9
6
|
console.log('hello!');
|
|
10
7
|
}, []);
|
|
11
|
-
return (
|
|
8
|
+
return _jsx("div", { children: "This is the component" });
|
|
12
9
|
}
|
package/client/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
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);
|
|
2
|
+
export * from "./MyClientComponent";
|
|
3
|
+
export * from "./MyClientComponent2";
|
package/index.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export * from "./server/MyComponent";
|
package/package.json
CHANGED
package/server/MyComponent.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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" });
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function MyComponent() {
|
|
3
|
+
return _jsx("div", { children: "This is the component" });
|
|
7
4
|
}
|
package/types/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|