fragment-ts 3.0.17 → 3.0.18
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.
|
@@ -69,7 +69,7 @@ async function generatePluginProject(projectPath, config) {
|
|
|
69
69
|
},
|
|
70
70
|
keywords: ["fragment", "fragment-plugin"],
|
|
71
71
|
peerDependencies: {
|
|
72
|
-
"fragment-ts": "^3.0.
|
|
72
|
+
"fragment-ts": "^3.0.18",
|
|
73
73
|
},
|
|
74
74
|
devDependencies: {
|
|
75
75
|
typescript: "^5.3.3",
|
|
@@ -127,7 +127,7 @@ async function createConfigFiles(projectPath, projectName, config) {
|
|
|
127
127
|
devDependencies.prettier = "^3.2.5";
|
|
128
128
|
}
|
|
129
129
|
const dependencies = {
|
|
130
|
-
"fragment-ts": "^3.0.
|
|
130
|
+
"fragment-ts": "^3.0.18",
|
|
131
131
|
"reflect-metadata": "^0.1.13",
|
|
132
132
|
};
|
|
133
133
|
devDependencies["@types/react"] = "^18.0.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-page-renderer.d.ts","sourceRoot":"","sources":["../../../../src/platform/web/react/react-page-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAOlC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"react-page-renderer.d.ts","sourceRoot":"","sources":["../../../../src/platform/web/react/react-page-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAOlC,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA2ED,qBAAa,iBAAiB;WACf,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4I9E,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAgChC"}
|
|
@@ -6,11 +6,9 @@ const di_container_1 = require("../../../core/container/di-container");
|
|
|
6
6
|
const metadata_storage_1 = require("../../../core/metadata/metadata-storage");
|
|
7
7
|
const route_pointer_registry_1 = require("../route-pointer/route-pointer-registry");
|
|
8
8
|
const config_utils_1 = require("../../../shared/config.utils");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* registered component name.
|
|
13
|
-
*/
|
|
9
|
+
/* =========================
|
|
10
|
+
SERIALIZATION
|
|
11
|
+
========================= */
|
|
14
12
|
function serializeElement(element) {
|
|
15
13
|
if (element === null || element === undefined)
|
|
16
14
|
return null;
|
|
@@ -21,11 +19,10 @@ function serializeElement(element) {
|
|
|
21
19
|
if (Array.isArray(element)) {
|
|
22
20
|
return element.map(serializeElement);
|
|
23
21
|
}
|
|
24
|
-
// React element shape
|
|
25
22
|
if (element && element.$$typeof) {
|
|
26
23
|
const type = element.type;
|
|
27
24
|
const props = element.props || {};
|
|
28
|
-
//
|
|
25
|
+
// HTML elements
|
|
29
26
|
if (typeof type === "string") {
|
|
30
27
|
const { children, ...rest } = props;
|
|
31
28
|
return {
|
|
@@ -34,7 +31,7 @@ function serializeElement(element) {
|
|
|
34
31
|
children: children !== undefined ? serializeElement(children) : null,
|
|
35
32
|
};
|
|
36
33
|
}
|
|
37
|
-
// Fragment
|
|
34
|
+
// Fragment components
|
|
38
35
|
const name = type.__fragmentOriginalTarget?.name ||
|
|
39
36
|
type.displayName ||
|
|
40
37
|
type.name ||
|
|
@@ -50,7 +47,6 @@ function serializeElement(element) {
|
|
|
50
47
|
}
|
|
51
48
|
return null;
|
|
52
49
|
}
|
|
53
|
-
/** Strip non-serializable values (functions, symbols) from props */
|
|
54
50
|
function sanitizeProps(props) {
|
|
55
51
|
const out = {};
|
|
56
52
|
for (const [k, v] of Object.entries(props)) {
|
|
@@ -62,7 +58,7 @@ function sanitizeProps(props) {
|
|
|
62
58
|
out[k] = v;
|
|
63
59
|
}
|
|
64
60
|
catch {
|
|
65
|
-
|
|
61
|
+
continue;
|
|
66
62
|
}
|
|
67
63
|
continue;
|
|
68
64
|
}
|
|
@@ -70,21 +66,17 @@ function sanitizeProps(props) {
|
|
|
70
66
|
}
|
|
71
67
|
return out;
|
|
72
68
|
}
|
|
69
|
+
/* =========================
|
|
70
|
+
RENDERER
|
|
71
|
+
========================= */
|
|
73
72
|
class ReactPageRenderer {
|
|
74
73
|
static async render(instance, req) {
|
|
75
|
-
|
|
76
|
-
try {
|
|
77
|
-
reactDomServer = require("react-dom/server");
|
|
78
|
-
}
|
|
79
|
-
catch {
|
|
80
|
-
throw new Error("react-dom/server is not installed. Run `frg install:web` or add react/react-dom to your project.");
|
|
81
|
-
}
|
|
74
|
+
const reactDomServer = require("react-dom/server");
|
|
82
75
|
const metadata = Reflect.getMetadata(metadata_keys_1.METADATA_KEYS.WEB_PAGE, instance.constructor) || {};
|
|
83
76
|
const renderOutput = await Promise.resolve(typeof instance.render === "function" ? instance.render(req) : "");
|
|
84
77
|
const body = typeof renderOutput === "string"
|
|
85
78
|
? renderOutput
|
|
86
79
|
: reactDomServer.renderToString(renderOutput);
|
|
87
|
-
// Serialize the element tree so the client runtime can re-render it
|
|
88
80
|
const elementTree = typeof renderOutput === "string" ? null : serializeElement(renderOutput);
|
|
89
81
|
const title = (typeof instance.title === "function"
|
|
90
82
|
? instance.title(req)
|
|
@@ -103,100 +95,107 @@ class ReactPageRenderer {
|
|
|
103
95
|
const stylingScript = webConfig.styling?.provider === "tailwind"
|
|
104
96
|
? `<script src="https://cdn.tailwindcss.com"></script>`
|
|
105
97
|
: "";
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
98
|
+
/* =========================
|
|
99
|
+
HYDRATION SCRIPT
|
|
100
|
+
========================= */
|
|
109
101
|
const hydrationScript = elementTree
|
|
110
102
|
? `
|
|
111
103
|
<script type="importmap">
|
|
112
104
|
{
|
|
113
105
|
"imports": {
|
|
114
|
-
"react":
|
|
115
|
-
"react-dom":
|
|
116
|
-
"react-dom/client":"https://esm.sh/react-dom@18/client?dev",
|
|
117
|
-
"mobx":
|
|
118
|
-
"mobx-react-lite":"https://esm.sh/mobx-react-lite@3?dev"
|
|
106
|
+
"react": "https://esm.sh/react@18?dev",
|
|
107
|
+
"react-dom": "https://esm.sh/react-dom@18?dev",
|
|
108
|
+
"react-dom/client": "https://esm.sh/react-dom@18/client?dev",
|
|
109
|
+
"mobx": "https://esm.sh/mobx@6?dev",
|
|
110
|
+
"mobx-react-lite": "https://esm.sh/mobx-react-lite@3?dev"
|
|
119
111
|
}
|
|
120
112
|
}
|
|
121
113
|
</script>
|
|
114
|
+
|
|
122
115
|
<script type="module">
|
|
123
|
-
import React from
|
|
124
|
-
import { createRoot } from
|
|
125
|
-
import { observable, action, computed, makeObservable } from 'mobx';
|
|
126
|
-
import { observer } from 'mobx-react-lite';
|
|
116
|
+
import React from "react";
|
|
117
|
+
import { createRoot } from "react-dom/client";
|
|
127
118
|
|
|
128
|
-
/* ── serialized element tree from SSR ── */
|
|
129
119
|
const TREE = ${JSON.stringify(elementTree)};
|
|
130
120
|
|
|
131
|
-
/*
|
|
132
|
-
const REGISTRY =
|
|
121
|
+
/* registry */
|
|
122
|
+
const REGISTRY =
|
|
123
|
+
(window.__fragmentRegistry__ = window.__fragmentRegistry__ || {});
|
|
133
124
|
|
|
134
|
-
/*
|
|
135
|
-
const STORES = window.__fragmentStores__ = window.__fragmentStores__ || {};
|
|
136
|
-
|
|
137
|
-
/* ── reconstruct React elements from the serialized tree ── */
|
|
125
|
+
/* safe resolver */
|
|
138
126
|
function h(node) {
|
|
139
127
|
if (node === null || node === undefined) return null;
|
|
140
|
-
if (typeof node ===
|
|
128
|
+
if (typeof node === "string" || typeof node === "number") return node;
|
|
141
129
|
if (Array.isArray(node)) return node.map(h);
|
|
142
130
|
|
|
143
131
|
const { type, props = {}, children } = node;
|
|
144
|
-
|
|
132
|
+
|
|
133
|
+
const Component = REGISTRY[type] || type;
|
|
134
|
+
|
|
145
135
|
if (!Component) {
|
|
146
|
-
console.
|
|
136
|
+
console.warn("[Fragment] Missing component:", type);
|
|
147
137
|
return null;
|
|
148
138
|
}
|
|
149
|
-
|
|
139
|
+
|
|
140
|
+
const resolvedChildren =
|
|
141
|
+
children !== null && children !== undefined ? h(children) : undefined;
|
|
142
|
+
|
|
150
143
|
return React.createElement(Component, props, resolvedChildren);
|
|
151
144
|
}
|
|
152
145
|
|
|
153
|
-
/*
|
|
154
|
-
|
|
155
|
-
const app = document.getElementById(
|
|
146
|
+
/* hydration bootstrap */
|
|
147
|
+
function boot() {
|
|
148
|
+
const app = document.getElementById("app");
|
|
156
149
|
if (!app) return;
|
|
157
150
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
151
|
+
const root = createRoot(app);
|
|
152
|
+
root.render(h(TREE));
|
|
153
|
+
|
|
154
|
+
console.log("[Fragment] client hydration complete");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (document.readyState === "loading") {
|
|
158
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
159
|
+
requestAnimationFrame(boot);
|
|
160
|
+
});
|
|
161
|
+
} else {
|
|
162
|
+
requestAnimationFrame(boot);
|
|
163
|
+
}
|
|
164
|
+
</script>
|
|
165
|
+
`
|
|
170
166
|
: "";
|
|
171
167
|
return {
|
|
172
168
|
title,
|
|
173
169
|
html: `<!doctype html>
|
|
174
170
|
<html lang="en">
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
171
|
+
<head>
|
|
172
|
+
<meta charset="utf-8"/>
|
|
173
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
174
|
+
<title>${escapeHtml(String(title))}</title>
|
|
175
|
+
${stylesheetTag}
|
|
176
|
+
${stylingScript}
|
|
177
|
+
</head>
|
|
178
|
+
<body>
|
|
179
|
+
<div id="app">${content}</div>
|
|
180
|
+
${routePointerScript ? `<script>${routePointerScript}</script>` : ""}
|
|
181
|
+
${hydrationScript}
|
|
182
|
+
</body>
|
|
187
183
|
</html>`,
|
|
188
184
|
};
|
|
189
185
|
}
|
|
186
|
+
/* =========================
|
|
187
|
+
TEMPLATE WRAPPER
|
|
188
|
+
========================= */
|
|
190
189
|
static wrapWithTemplate(childHtml, templateName, req) {
|
|
191
190
|
const React = require("react");
|
|
192
191
|
const reactDomServer = require("react-dom/server");
|
|
193
192
|
const templateMeta = metadata_storage_1.MetadataStorage.getInstance()
|
|
194
193
|
.getAllClasses()
|
|
195
194
|
.find((entry) => entry.type === "template" &&
|
|
196
|
-
Reflect.getMetadata(metadata_keys_1.METADATA_KEYS.FRAGMENT_TEMPLATE, entry.target)
|
|
197
|
-
|
|
195
|
+
Reflect.getMetadata(metadata_keys_1.METADATA_KEYS.FRAGMENT_TEMPLATE, entry.target)
|
|
196
|
+
?.name === templateName);
|
|
197
|
+
if (!templateMeta)
|
|
198
198
|
return childHtml;
|
|
199
|
-
}
|
|
200
199
|
const templateInstance = di_container_1.DIContainer.getInstance().resolve(templateMeta.target);
|
|
201
200
|
const rendered = templateInstance.render({
|
|
202
201
|
req,
|
|
@@ -208,6 +207,9 @@ window.addEventListener('DOMContentLoaded', () => {
|
|
|
208
207
|
}
|
|
209
208
|
}
|
|
210
209
|
exports.ReactPageRenderer = ReactPageRenderer;
|
|
210
|
+
/* =========================
|
|
211
|
+
UTIL
|
|
212
|
+
========================= */
|
|
211
213
|
function escapeHtml(value) {
|
|
212
214
|
return value
|
|
213
215
|
.replace(/&/g, "&")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-page-renderer.js","sourceRoot":"","sources":["../../../../src/platform/web/react/react-page-renderer.ts"],"names":[],"mappings":";;;AACA,wEAAqE;AACrE,uEAAmE;AACnE,8EAA0E;AAC1E,oFAA+E;AAC/E,+DAA2D;AAO3D
|
|
1
|
+
{"version":3,"file":"react-page-renderer.js","sourceRoot":"","sources":["../../../../src/platform/web/react/react-page-renderer.ts"],"names":[],"mappings":";;;AACA,wEAAqE;AACrE,uEAAmE;AACnE,8EAA0E;AAC1E,oFAA+E;AAC/E,+DAA2D;AAO3D;;4BAE4B;AAE5B,SAAS,gBAAgB,CAAC,OAAY;IACpC,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IAC3D,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IAC/E,IAAI,OAAO,OAAO,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IAE9C,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAC1B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;QAElC,gBAAgB;QAChB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;YACpC,OAAO;gBACL,IAAI;gBACJ,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC;gBAC1B,QAAQ,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAA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MAAM,CACpB,CAAC;QAEF,MAAM,QAAQ,GAAG,gBAAgB,CAAC,MAAM,CAAC;YACvC,GAAG;YACH,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE;gBACnC,uBAAuB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;aAC/C,CAAC;SACH,CAAC,CAAC;QAEH,OAAO,cAAc,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;CACF;AA7KD,8CA6KC;AAED;;4BAE4B;AAE5B,SAAS,UAAU,CAAC,KAAa;IAC/B,OAAO,KAAK;SACT,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;SACvB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fragment-ts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"description": "Fragment TS is a Spring Boot-inspired TypeScript framework for Express and TypeORM, built around dependency injection and decorators, with a fully modular CLI. It now supports installable API and Web surfaces so backend controllers and React-driven pages can live in one modular runtime.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|