fragment-ts 3.0.17 → 3.0.19
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.19",
|
|
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.19",
|
|
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;IAkJ9E,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,113 @@ 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 {
|
|
125
|
-
import { observable, action, computed, makeObservable } from 'mobx';
|
|
126
|
-
import { observer } from 'mobx-react-lite';
|
|
116
|
+
import React from "react";
|
|
117
|
+
import { hydrateRoot } 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 = window.__fragmentRegistry__
|
|
133
|
-
|
|
134
|
-
/* ── store registry ── */
|
|
135
|
-
const STORES = window.__fragmentStores__ = window.__fragmentStores__ || {};
|
|
121
|
+
/* registry */
|
|
122
|
+
const REGISTRY = (window.__fragmentRegistry__ ||= {});
|
|
136
123
|
|
|
137
|
-
/*
|
|
124
|
+
/* renderer */
|
|
138
125
|
function h(node) {
|
|
139
|
-
if (node
|
|
140
|
-
if (typeof node ===
|
|
126
|
+
if (!node) return null;
|
|
127
|
+
if (typeof node === "string" || typeof node === "number") return node;
|
|
141
128
|
if (Array.isArray(node)) return node.map(h);
|
|
142
129
|
|
|
143
130
|
const { type, props = {}, children } = node;
|
|
131
|
+
|
|
144
132
|
const Component = REGISTRY[type];
|
|
133
|
+
|
|
145
134
|
if (!Component) {
|
|
146
|
-
console.
|
|
135
|
+
console.warn("[Fragment] Missing component:", type);
|
|
147
136
|
return null;
|
|
148
137
|
}
|
|
149
|
-
|
|
150
|
-
return React.createElement(
|
|
138
|
+
|
|
139
|
+
return React.createElement(
|
|
140
|
+
Component,
|
|
141
|
+
props,
|
|
142
|
+
children ? h(children) : undefined
|
|
143
|
+
);
|
|
151
144
|
}
|
|
152
145
|
|
|
153
|
-
/*
|
|
154
|
-
|
|
155
|
-
const app = document.getElementById(
|
|
146
|
+
/* 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
|
+
hydrateRoot(app, h(TREE));
|
|
152
|
+
|
|
153
|
+
console.log("[Fragment] client hydration complete");
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* IMPORTANT: wait until registry exists */
|
|
157
|
+
function waitForRegistry() {
|
|
158
|
+
if (Object.keys(REGISTRY).length === 0) {
|
|
159
|
+
requestAnimationFrame(waitForRegistry);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
boot();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (document.readyState === "loading") {
|
|
166
|
+
document.addEventListener("DOMContentLoaded", waitForRegistry);
|
|
167
|
+
} else {
|
|
168
|
+
waitForRegistry();
|
|
169
|
+
}
|
|
170
|
+
</script>
|
|
171
|
+
`
|
|
170
172
|
: "";
|
|
171
173
|
return {
|
|
172
174
|
title,
|
|
173
175
|
html: `<!doctype html>
|
|
174
176
|
<html lang="en">
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
177
|
+
<head>
|
|
178
|
+
<meta charset="utf-8"/>
|
|
179
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
180
|
+
<title>${escapeHtml(String(title))}</title>
|
|
181
|
+
${stylesheetTag}
|
|
182
|
+
${stylingScript}
|
|
183
|
+
</head>
|
|
184
|
+
<body>
|
|
185
|
+
<div id="app">${content}</div>
|
|
186
|
+
${routePointerScript ? `<script>${routePointerScript}</script>` : ""}
|
|
187
|
+
${hydrationScript}
|
|
188
|
+
</body>
|
|
187
189
|
</html>`,
|
|
188
190
|
};
|
|
189
191
|
}
|
|
192
|
+
/* =========================
|
|
193
|
+
TEMPLATE WRAPPER
|
|
194
|
+
========================= */
|
|
190
195
|
static wrapWithTemplate(childHtml, templateName, req) {
|
|
191
196
|
const React = require("react");
|
|
192
197
|
const reactDomServer = require("react-dom/server");
|
|
193
198
|
const templateMeta = metadata_storage_1.MetadataStorage.getInstance()
|
|
194
199
|
.getAllClasses()
|
|
195
200
|
.find((entry) => entry.type === "template" &&
|
|
196
|
-
Reflect.getMetadata(metadata_keys_1.METADATA_KEYS.FRAGMENT_TEMPLATE, entry.target)
|
|
197
|
-
|
|
201
|
+
Reflect.getMetadata(metadata_keys_1.METADATA_KEYS.FRAGMENT_TEMPLATE, entry.target)
|
|
202
|
+
?.name === templateName);
|
|
203
|
+
if (!templateMeta)
|
|
198
204
|
return childHtml;
|
|
199
|
-
}
|
|
200
205
|
const templateInstance = di_container_1.DIContainer.getInstance().resolve(templateMeta.target);
|
|
201
206
|
const rendered = templateInstance.render({
|
|
202
207
|
req,
|
|
@@ -208,6 +213,9 @@ window.addEventListener('DOMContentLoaded', () => {
|
|
|
208
213
|
}
|
|
209
214
|
}
|
|
210
215
|
exports.ReactPageRenderer = ReactPageRenderer;
|
|
216
|
+
/* =========================
|
|
217
|
+
UTIL
|
|
218
|
+
========================= */
|
|
211
219
|
function escapeHtml(value) {
|
|
212
220
|
return value
|
|
213
221
|
.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;gBAC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AAY;YAAE,OAAO,SAAS,CAAC;QAEpC,MAAM,gBAAgB,GAAG,0BAAW,CAAC,WAAW,EAAE,CAAC,OAAO,CACxD,YAAY,CAAC,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;AAnLD,8CAmLC;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.19",
|
|
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",
|