@withl5e/l5e 0.1.0-alpha.0
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/LICENSE +21 -0
- package/README.md +24 -0
- package/dist/action.js +10 -0
- package/dist/action.js.map +1 -0
- package/dist/client-D67hK4Yy.js +9 -0
- package/dist/client-D67hK4Yy.js.map +1 -0
- package/dist/entry-server-Ckh6zfgm.js +258 -0
- package/dist/entry-server-Ckh6zfgm.js.map +1 -0
- package/dist/entry-server.js +12 -0
- package/dist/entry-server.js.map +1 -0
- package/dist/generateMetadata-C5QsMS-H.js +144 -0
- package/dist/generateMetadata-C5QsMS-H.js.map +1 -0
- package/dist/index-BIt7MJT9.js +163 -0
- package/dist/index-BIt7MJT9.js.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/island/client.js +5 -0
- package/dist/island/client.js.map +1 -0
- package/dist/island/runtime.js +98 -0
- package/dist/island/runtime.js.map +1 -0
- package/dist/island.js +39 -0
- package/dist/island.js.map +1 -0
- package/dist/jsx-runtime-C2Vw67N2.js +256 -0
- package/dist/jsx-runtime-C2Vw67N2.js.map +1 -0
- package/dist/jsx-runtime.js +26 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/middleware.js +9 -0
- package/dist/middleware.js.map +1 -0
- package/dist/seo.js +7 -0
- package/dist/seo.js.map +1 -0
- package/dist/server.js +489 -0
- package/dist/server.js.map +1 -0
- package/dist/swap/server.js +15 -0
- package/dist/swap/server.js.map +1 -0
- package/dist/swap.js +121 -0
- package/dist/swap.js.map +1 -0
- package/dist/tooltip.js +129 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/vite-plugin.js +381 -0
- package/dist/vite-plugin.js.map +1 -0
- package/index.ts +1 -0
- package/package.json +129 -0
- package/src/action/define-action.ts +8 -0
- package/src/action/index.ts +2 -0
- package/src/action/types.ts +21 -0
- package/src/core/bundler.ts +275 -0
- package/src/core/const.ts +2 -0
- package/src/core/entry-server.d.ts +1 -0
- package/src/core/entry-server.ts +381 -0
- package/src/core/exceptions.ts +80 -0
- package/src/core/head-priority.ts +15 -0
- package/src/core/index.ts +40 -0
- package/src/core/jsx-runtime.ts +325 -0
- package/src/core/jsx-types.d.ts +548 -0
- package/src/core/render.ts +181 -0
- package/src/core/request.ts +31 -0
- package/src/core/server.ts +740 -0
- package/src/core/vite-plugin.ts +779 -0
- package/src/island/ClientIsland.ts +71 -0
- package/src/island/client.ts +3 -0
- package/src/island/index.ts +3 -0
- package/src/island/runtime.ts +149 -0
- package/src/island/strategy-registry.ts +10 -0
- package/src/island/types.ts +28 -0
- package/src/middleware/defineMiddleware.ts +5 -0
- package/src/middleware/index.ts +133 -0
- package/src/middleware/sequence.ts +105 -0
- package/src/middleware/types.ts +28 -0
- package/src/seo/generateMetadata.tsx +559 -0
- package/src/seo/index.ts +10 -0
- package/src/seo/mergeMetadata.ts +200 -0
- package/src/seo/types.ts +316 -0
- package/src/swap/SwapResponse.tsx +16 -0
- package/src/swap/create-swap.ts +121 -0
- package/src/swap/index.ts +8 -0
- package/src/swap/parse.ts +12 -0
- package/src/swap/server.ts +1 -0
- package/src/swap/swap.ts +57 -0
- package/src/swap/types.ts +47 -0
- package/src/swap/utils.ts +7 -0
- package/src/tooltip/index.ts +2 -0
- package/src/tooltip/tooltip-loader.ts +108 -0
- package/src/tooltip/tooltip-runtime.ts +173 -0
- package/types.d.ts +14 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { AsyncLocalStorage as a } from "async_hooks";
|
|
2
|
+
const n = {
|
|
3
|
+
CRITICAL: 0,
|
|
4
|
+
// charset, viewport - must be first
|
|
5
|
+
HIGH: 10,
|
|
6
|
+
// title, description, canonical
|
|
7
|
+
MEDIUM: 50,
|
|
8
|
+
// meta tags, robots
|
|
9
|
+
SEO: 80,
|
|
10
|
+
// OpenGraph, Twitter
|
|
11
|
+
LOW: 100,
|
|
12
|
+
// Custom head elements
|
|
13
|
+
SCRIPTS: 200,
|
|
14
|
+
// Scripts
|
|
15
|
+
STYLES: 300
|
|
16
|
+
// Styles
|
|
17
|
+
};
|
|
18
|
+
function f(t, e) {
|
|
19
|
+
if (!t)
|
|
20
|
+
return e || {};
|
|
21
|
+
if (!e)
|
|
22
|
+
return t;
|
|
23
|
+
const o = {
|
|
24
|
+
...t,
|
|
25
|
+
...e
|
|
26
|
+
};
|
|
27
|
+
return (e.openGraph || t.openGraph) && (e.openGraph && t.openGraph ? o.openGraph = {
|
|
28
|
+
...t.openGraph,
|
|
29
|
+
...e.openGraph,
|
|
30
|
+
// Deep merge for nested arrays/objects in openGraph
|
|
31
|
+
images: e.openGraph.images ?? t.openGraph.images,
|
|
32
|
+
videos: e.openGraph.videos ?? t.openGraph.videos,
|
|
33
|
+
audio: e.openGraph.audio ?? t.openGraph.audio,
|
|
34
|
+
alternateLocale: e.openGraph.alternateLocale ?? t.openGraph.alternateLocale,
|
|
35
|
+
authors: e.openGraph.authors ?? t.openGraph.authors,
|
|
36
|
+
tags: e.openGraph.tags ?? t.openGraph.tags
|
|
37
|
+
} : o.openGraph = e.openGraph || t.openGraph), (e.twitter || t.twitter) && (e.twitter && t.twitter ? o.twitter = {
|
|
38
|
+
...t.twitter,
|
|
39
|
+
...e.twitter,
|
|
40
|
+
// Deep merge for nested objects
|
|
41
|
+
images: e.twitter.images ?? t.twitter.images,
|
|
42
|
+
app: e.twitter.app ? {
|
|
43
|
+
...t.twitter.app,
|
|
44
|
+
...e.twitter.app,
|
|
45
|
+
id: {
|
|
46
|
+
...t.twitter.app?.id,
|
|
47
|
+
...e.twitter.app.id
|
|
48
|
+
},
|
|
49
|
+
url: {
|
|
50
|
+
...t.twitter.app?.url,
|
|
51
|
+
...e.twitter.app.url
|
|
52
|
+
}
|
|
53
|
+
} : t.twitter.app
|
|
54
|
+
} : o.twitter = e.twitter || t.twitter), (e.icons || t.icons) && (e.icons && t.icons ? o.icons = {
|
|
55
|
+
icon: e.icons.icon ?? t.icons.icon,
|
|
56
|
+
shortcut: e.icons.shortcut ?? t.icons.shortcut,
|
|
57
|
+
apple: e.icons.apple ?? t.icons.apple,
|
|
58
|
+
other: e.icons.other ?? t.icons.other
|
|
59
|
+
} : o.icons = e.icons || t.icons), (e.verification || t.verification) && (e.verification && t.verification ? o.verification = {
|
|
60
|
+
...t.verification,
|
|
61
|
+
...e.verification,
|
|
62
|
+
// Deep merge for other verification tags
|
|
63
|
+
other: e.verification.other ? {
|
|
64
|
+
...t.verification.other,
|
|
65
|
+
...e.verification.other
|
|
66
|
+
} : t.verification.other,
|
|
67
|
+
me: e.verification.me ?? t.verification.me
|
|
68
|
+
} : o.verification = e.verification || t.verification), (e.appLinks || t.appLinks) && (e.appLinks && t.appLinks ? o.appLinks = {
|
|
69
|
+
ios: e.appLinks.ios ? {
|
|
70
|
+
...t.appLinks.ios,
|
|
71
|
+
...e.appLinks.ios
|
|
72
|
+
} : t.appLinks.ios,
|
|
73
|
+
android: e.appLinks.android ? {
|
|
74
|
+
...t.appLinks.android,
|
|
75
|
+
...e.appLinks.android
|
|
76
|
+
} : t.appLinks.android,
|
|
77
|
+
web: e.appLinks.web ? {
|
|
78
|
+
...t.appLinks.web,
|
|
79
|
+
...e.appLinks.web
|
|
80
|
+
} : t.appLinks.web
|
|
81
|
+
} : o.appLinks = e.appLinks || t.appLinks), (e.formatDetection || t.formatDetection) && (e.formatDetection && t.formatDetection ? o.formatDetection = {
|
|
82
|
+
...t.formatDetection,
|
|
83
|
+
...e.formatDetection
|
|
84
|
+
} : o.formatDetection = e.formatDetection || t.formatDetection), e.viewport && t.viewport && (typeof e.viewport == "object" && typeof t.viewport == "object" ? o.viewport = {
|
|
85
|
+
...t.viewport,
|
|
86
|
+
...e.viewport
|
|
87
|
+
} : o.viewport = e.viewport), e.robots && t.robots && (typeof e.robots == "object" && typeof t.robots == "object" ? o.robots = {
|
|
88
|
+
...t.robots,
|
|
89
|
+
...e.robots
|
|
90
|
+
} : o.robots = e.robots), o.keywords = e.keywords ?? t.keywords, o.themeColor = e.themeColor ?? t.themeColor, o.archives = e.archives ?? t.archives, o.assets = e.assets ?? t.assets, (e.other || t.other) && (e.other && t.other ? o.other = {
|
|
91
|
+
...t.other,
|
|
92
|
+
...e.other
|
|
93
|
+
} : o.other = e.other || t.other), o;
|
|
94
|
+
}
|
|
95
|
+
const c = /* @__PURE__ */ Symbol("rawHtml");
|
|
96
|
+
function m(t, e, ...o) {
|
|
97
|
+
return { type: t, props: e || {}, children: o.flat() };
|
|
98
|
+
}
|
|
99
|
+
function w({
|
|
100
|
+
children: t,
|
|
101
|
+
...e
|
|
102
|
+
}) {
|
|
103
|
+
return e.setHtml !== void 0 ? { [c]: !0, content: e.setHtml?.toString() || "" } : t;
|
|
104
|
+
}
|
|
105
|
+
const r = new a();
|
|
106
|
+
function u(t) {
|
|
107
|
+
return {
|
|
108
|
+
clientJsRegistry: [],
|
|
109
|
+
cssRegistry: [],
|
|
110
|
+
islandRegistry: [],
|
|
111
|
+
cacheTags: /* @__PURE__ */ new Set(),
|
|
112
|
+
headRegistry: [],
|
|
113
|
+
metadataStack: [],
|
|
114
|
+
schemaRegistry: [],
|
|
115
|
+
request: t
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function y(t) {
|
|
119
|
+
if (typeof t == "string" && t.length > 0) {
|
|
120
|
+
const e = r.getStore();
|
|
121
|
+
e && e.clientJsRegistry.push({ path: t, from: "Unknown" });
|
|
122
|
+
}
|
|
123
|
+
return "";
|
|
124
|
+
}
|
|
125
|
+
function S(t, e, o) {
|
|
126
|
+
const s = r.getStore();
|
|
127
|
+
s && (s.islandRegistry.some((i) => i.key === t) || s.islandRegistry.push({ key: t, src: e, name: o }));
|
|
128
|
+
}
|
|
129
|
+
function v() {
|
|
130
|
+
const t = r.getStore();
|
|
131
|
+
return t ? t.islandRegistry.slice() : [];
|
|
132
|
+
}
|
|
133
|
+
function L(t) {
|
|
134
|
+
if (typeof t == "string" && t.length > 0) {
|
|
135
|
+
const e = r.getStore();
|
|
136
|
+
e && e.cssRegistry.push({ path: t, from: "Unknown" });
|
|
137
|
+
}
|
|
138
|
+
return "";
|
|
139
|
+
}
|
|
140
|
+
function R(t, e, o) {
|
|
141
|
+
const s = u(e);
|
|
142
|
+
return o && (s.viewName = o), r.run(s, () => Promise.resolve(t()));
|
|
143
|
+
}
|
|
144
|
+
function k(t) {
|
|
145
|
+
const e = r.getStore();
|
|
146
|
+
e && (e.viewName = t);
|
|
147
|
+
}
|
|
148
|
+
function b() {
|
|
149
|
+
const t = r.getStore();
|
|
150
|
+
return t ? t.clientJsRegistry.slice() : [];
|
|
151
|
+
}
|
|
152
|
+
function G() {
|
|
153
|
+
const t = r.getStore();
|
|
154
|
+
return t ? Array.from(t.cacheTags) : [];
|
|
155
|
+
}
|
|
156
|
+
function p(t) {
|
|
157
|
+
const e = r.getStore();
|
|
158
|
+
e && (Array.isArray(t) ? t.forEach((o) => {
|
|
159
|
+
typeof o == "string" && o.trim() && e.cacheTags.add(o.trim());
|
|
160
|
+
}) : typeof t == "string" && t.trim() ? e.cacheTags.add(t.trim()) : typeof t == "object" && t !== null && Object.entries(t).forEach(([o, s]) => {
|
|
161
|
+
s && typeof o == "string" && o.trim() && e.cacheTags.add(o.trim());
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
function h() {
|
|
165
|
+
const t = r.getStore();
|
|
166
|
+
return t ? t.cssRegistry.slice() : [];
|
|
167
|
+
}
|
|
168
|
+
function x({
|
|
169
|
+
children: t,
|
|
170
|
+
priority: e = n.LOW
|
|
171
|
+
// Default priority
|
|
172
|
+
}) {
|
|
173
|
+
const o = r.getStore();
|
|
174
|
+
return o && t && (o.headRegistry.push({
|
|
175
|
+
content: t,
|
|
176
|
+
priority: typeof e == "number" ? e : n.LOW,
|
|
177
|
+
source: "manual"
|
|
178
|
+
}), o.headRegistry.sort((s, i) => s.priority - i.priority)), null;
|
|
179
|
+
}
|
|
180
|
+
function C() {
|
|
181
|
+
const t = r.getStore();
|
|
182
|
+
return t ? t.headRegistry.map((e) => e.content) : [];
|
|
183
|
+
}
|
|
184
|
+
function T(t) {
|
|
185
|
+
const e = r.getStore();
|
|
186
|
+
e && t && e.metadataStack.push(t);
|
|
187
|
+
}
|
|
188
|
+
function E() {
|
|
189
|
+
const t = r.getStore();
|
|
190
|
+
return !t || t.metadataStack.length === 0 ? null : t.metadataStack.reduce(
|
|
191
|
+
(e, o) => f(e, o),
|
|
192
|
+
null
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
function D(t) {
|
|
196
|
+
const e = r.getStore();
|
|
197
|
+
e && (Array.isArray(t) ? e.schemaRegistry.push(...t) : e.schemaRegistry.push(t));
|
|
198
|
+
}
|
|
199
|
+
function A() {
|
|
200
|
+
const t = r.getStore();
|
|
201
|
+
return t ? t.schemaRegistry.slice() : [];
|
|
202
|
+
}
|
|
203
|
+
function H() {
|
|
204
|
+
const t = r.getStore();
|
|
205
|
+
if (!t)
|
|
206
|
+
throw new Error("useRequest called outside of render context");
|
|
207
|
+
return {
|
|
208
|
+
request: t.request,
|
|
209
|
+
view: t.viewName,
|
|
210
|
+
locals: t.request.locals ?? {},
|
|
211
|
+
// Add cache tags
|
|
212
|
+
addCacheTag: (e) => {
|
|
213
|
+
p(e);
|
|
214
|
+
},
|
|
215
|
+
// Get all cache tags
|
|
216
|
+
getCacheTags: () => Array.from(t.cacheTags)
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
function I(t) {
|
|
220
|
+
return t !== null && typeof t == "object" && "type" in t && "props" in t && "children" in t && (typeof t.type == "string" || typeof t.type == "function");
|
|
221
|
+
}
|
|
222
|
+
function j(t, e, ...o) {
|
|
223
|
+
const s = { ...t.props, ...e }, i = o.length > 0 ? o.flat() : t.children;
|
|
224
|
+
return {
|
|
225
|
+
type: t.type,
|
|
226
|
+
props: s,
|
|
227
|
+
children: i
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
export {
|
|
231
|
+
w as F,
|
|
232
|
+
n as H,
|
|
233
|
+
c as R,
|
|
234
|
+
x as a,
|
|
235
|
+
p as b,
|
|
236
|
+
j as c,
|
|
237
|
+
b as d,
|
|
238
|
+
h as e,
|
|
239
|
+
C as f,
|
|
240
|
+
G as g,
|
|
241
|
+
v as h,
|
|
242
|
+
A as i,
|
|
243
|
+
I as j,
|
|
244
|
+
m as k,
|
|
245
|
+
D as l,
|
|
246
|
+
f as m,
|
|
247
|
+
E as n,
|
|
248
|
+
R as o,
|
|
249
|
+
T as p,
|
|
250
|
+
L as q,
|
|
251
|
+
S as r,
|
|
252
|
+
k as s,
|
|
253
|
+
H as t,
|
|
254
|
+
y as u
|
|
255
|
+
};
|
|
256
|
+
//# sourceMappingURL=jsx-runtime-C2Vw67N2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime-C2Vw67N2.js","sources":["../src/core/head-priority.ts","../src/seo/mergeMetadata.ts","../src/core/const.ts","../src/core/jsx-runtime.ts"],"sourcesContent":["/**\n * Priority constants for Head component rendering order\n * Lower numbers render first (higher priority)\n */\nexport const HEAD_PRIORITY = {\n CRITICAL: 0, // charset, viewport - must be first\n HIGH: 10, // title, description, canonical\n MEDIUM: 50, // meta tags, robots\n SEO: 80, // OpenGraph, Twitter\n LOW: 100, // Custom head elements\n SCRIPTS: 200, // Scripts\n STYLES: 300, // Styles\n} as const;\n\nexport type HeadPriority = (typeof HEAD_PRIORITY)[keyof typeof HEAD_PRIORITY] | number;\n","import type { Metadata } from './types';\n\n/**\n * Merges parent and child metadata objects\n * Follows Next.js shallow merge pattern with deep merge for nested objects\n *\n * @param parent - Parent metadata (from layout/global loader)\n * @param child - Child metadata (from page/view loader)\n * @returns Merged metadata object\n */\nexport function mergeMetadata(\n parent: Metadata | null | undefined,\n child: Metadata | null | undefined,\n): Metadata {\n // If no parent, return child (or empty object)\n if (!parent) {\n return child || {};\n }\n\n // If no child, return parent\n if (!child) {\n return parent;\n }\n\n // Shallow merge base properties (child overrides parent)\n const merged: Metadata = {\n ...parent,\n ...child,\n };\n\n // Deep merge for nested objects\n // OpenGraph: merge nested properties\n if (child.openGraph || parent.openGraph) {\n if (child.openGraph && parent.openGraph) {\n merged.openGraph = {\n ...parent.openGraph,\n ...child.openGraph,\n // Deep merge for nested arrays/objects in openGraph\n images: child.openGraph.images ?? parent.openGraph.images,\n videos: child.openGraph.videos ?? parent.openGraph.videos,\n audio: child.openGraph.audio ?? parent.openGraph.audio,\n alternateLocale: child.openGraph.alternateLocale ?? parent.openGraph.alternateLocale,\n authors: child.openGraph.authors ?? parent.openGraph.authors,\n tags: child.openGraph.tags ?? parent.openGraph.tags,\n };\n } else {\n merged.openGraph = child.openGraph || parent.openGraph;\n }\n }\n\n // Twitter: merge nested properties\n if (child.twitter || parent.twitter) {\n if (child.twitter && parent.twitter) {\n merged.twitter = {\n ...parent.twitter,\n ...child.twitter,\n // Deep merge for nested objects\n images: child.twitter.images ?? parent.twitter.images,\n app: child.twitter.app\n ? {\n ...parent.twitter.app,\n ...child.twitter.app,\n id: {\n ...parent.twitter.app?.id,\n ...child.twitter.app.id,\n },\n url: {\n ...parent.twitter.app?.url,\n ...child.twitter.app.url,\n },\n }\n : parent.twitter.app,\n };\n } else {\n merged.twitter = child.twitter || parent.twitter;\n }\n }\n\n // Icons: merge nested properties\n if (child.icons || parent.icons) {\n if (child.icons && parent.icons) {\n merged.icons = {\n icon: child.icons.icon ?? parent.icons.icon,\n shortcut: child.icons.shortcut ?? parent.icons.shortcut,\n apple: child.icons.apple ?? parent.icons.apple,\n other: child.icons.other ?? parent.icons.other,\n };\n } else {\n merged.icons = child.icons || parent.icons;\n }\n }\n\n // Verification: merge nested properties\n if (child.verification || parent.verification) {\n if (child.verification && parent.verification) {\n merged.verification = {\n ...parent.verification,\n ...child.verification,\n // Deep merge for other verification tags\n other: child.verification.other\n ? {\n ...parent.verification.other,\n ...child.verification.other,\n }\n : parent.verification.other,\n me: child.verification.me ?? parent.verification.me,\n };\n } else {\n merged.verification = child.verification || parent.verification;\n }\n }\n\n // AppLinks: merge nested properties\n if (child.appLinks || parent.appLinks) {\n if (child.appLinks && parent.appLinks) {\n merged.appLinks = {\n ios: child.appLinks.ios\n ? {\n ...parent.appLinks.ios,\n ...child.appLinks.ios,\n }\n : parent.appLinks.ios,\n android: child.appLinks.android\n ? {\n ...parent.appLinks.android,\n ...child.appLinks.android,\n }\n : parent.appLinks.android,\n web: child.appLinks.web\n ? {\n ...parent.appLinks.web,\n ...child.appLinks.web,\n }\n : parent.appLinks.web,\n };\n } else {\n merged.appLinks = child.appLinks || parent.appLinks;\n }\n }\n\n // FormatDetection: merge nested properties\n if (child.formatDetection || parent.formatDetection) {\n if (child.formatDetection && parent.formatDetection) {\n merged.formatDetection = {\n ...parent.formatDetection,\n ...child.formatDetection,\n };\n } else {\n merged.formatDetection = child.formatDetection || parent.formatDetection;\n }\n }\n\n // Viewport: merge if both are objects\n if (child.viewport && parent.viewport) {\n if (typeof child.viewport === 'object' && typeof parent.viewport === 'object') {\n merged.viewport = {\n ...parent.viewport,\n ...child.viewport,\n } as Metadata['viewport'];\n } else {\n // If either is string, child overrides\n merged.viewport = child.viewport;\n }\n }\n\n // Robots: merge if both are objects\n if (child.robots && parent.robots) {\n if (typeof child.robots === 'object' && typeof parent.robots === 'object') {\n merged.robots = {\n ...parent.robots,\n ...child.robots,\n } as Metadata['robots'];\n } else {\n // If either is string, child overrides\n merged.robots = child.robots;\n }\n }\n\n // Array fields: child overrides parent (shallow merge behavior)\n // These are already handled by spread operator above\n // But we explicitly handle them for clarity:\n merged.keywords = child.keywords ?? parent.keywords;\n merged.themeColor = child.themeColor ?? parent.themeColor;\n merged.archives = child.archives ?? parent.archives;\n merged.assets = child.assets ?? parent.assets;\n\n // Other: merge objects\n if (child.other || parent.other) {\n if (child.other && parent.other) {\n merged.other = {\n ...parent.other,\n ...child.other,\n };\n } else {\n merged.other = child.other || parent.other;\n }\n }\n\n return merged;\n}\n","// Marker object để đánh dấu raw HTML không escape\nexport const RAW_HTML_MARKER = Symbol('rawHtml');\n","import { mergeMetadata } from '../seo/mergeMetadata';\nimport type { Metadata } from '../seo/types';\nimport { RAW_HTML_MARKER } from './const';\nimport { RequestInfo } from './entry-server';\nimport { HEAD_PRIORITY, type HeadPriority } from './head-priority';\n\nexport type JSXChild =\n | string\n | number\n | boolean\n | null\n | undefined\n | JSXNode\n | JSXChild[]\n | RawHtmlObject\n | HtmlContentObject;\n\nexport type RawHtmlObject = {\n [RAW_HTML_MARKER]: true;\n content: string;\n};\n\nexport type HtmlContentObject = {\n htmlContent: string;\n};\n\nexport type RenderedNode = {\n string: string;\n};\n\nexport type JSXNode = {\n type: string | ((props: any) => JSXChild);\n props: Record<string, any>;\n children: JSXChild[];\n};\n\nexport function jsxFactory(type: any, props: any, ...children: any): JSXNode {\n return { type, props: props || {}, children: children.flat() };\n}\n\nexport function Fragment({\n children,\n ...props\n}: { children?: JSXChild; setHtml?: unknown } & Record<string, any>): JSXChild {\n // Hỗ trợ setHtml cho Fragment\n if (props.setHtml !== undefined) {\n // Trả về object đặc biệt để không bị escape\n return { [RAW_HTML_MARKER]: true, content: props.setHtml?.toString() || '' };\n }\n return children;\n}\n\n// AsyncLocalStorage for render context (request-level)\nimport { AsyncLocalStorage } from 'async_hooks';\n\ninterface HeadEntry {\n content: JSXChild;\n priority: number; // Số càng nhỏ, render càng sớm\n source?: string; // Để debug (ví dụ: 'layout', 'page', 'seo')\n}\n\ninterface IslandEntry {\n key: string; // \"Counter_a3f2\" — registry key\n src: string; // \"src/views/.../Counter.tsx\" — manifest-compatible path\n name: string; // \"Counter\" — export name\n}\n\ninterface RenderContext {\n clientJsRegistry: Array<{ path: string; from: string }>;\n cssRegistry: Array<{ path: string; from: string }>;\n islandRegistry: IslandEntry[];\n cacheTags: Set<string>;\n headRegistry: HeadEntry[]; // Thay vì JSXChild[]\n metadataStack: Metadata[]; // Stack để track metadata hierarchy\n schemaRegistry: Array<Record<string, any>>; // Schema.org structured data từ loaders\n request: RequestInfo;\n viewName?: string; // View name from route handler\n}\n\nconst renderStore = new AsyncLocalStorage<RenderContext>();\n\n// Create context for each request\nfunction createRequestContext(requestInfo: RequestInfo): RenderContext {\n return {\n clientJsRegistry: [],\n cssRegistry: [],\n islandRegistry: [],\n cacheTags: new Set(),\n headRegistry: [],\n metadataStack: [],\n schemaRegistry: [],\n request: requestInfo,\n };\n}\n\nexport function useClientJs(path: string): string {\n if (typeof path === 'string' && path.length > 0) {\n const renderContext = renderStore.getStore();\n if (renderContext) {\n renderContext.clientJsRegistry.push({ path, from: 'Unknown' });\n }\n }\n return '';\n}\n\nexport function registerIsland(key: string, src: string, name: string): void {\n const renderContext = renderStore.getStore();\n if (renderContext) {\n // Dedupe by key\n if (!renderContext.islandRegistry.some((e) => e.key === key)) {\n renderContext.islandRegistry.push({ key, src, name });\n }\n }\n}\n\nexport function getIslandEntries(): IslandEntry[] {\n const context = renderStore.getStore();\n if (!context) return [];\n return context.islandRegistry.slice();\n}\n\nexport function useCss(path: string): string {\n if (typeof path === 'string' && path.length > 0) {\n const renderContext = renderStore.getStore();\n if (renderContext) {\n renderContext.cssRegistry.push({ path, from: 'Unknown' });\n }\n }\n return '';\n}\n\n// Wrapper to run render in async context\nexport function runInRenderContext<T>(\n renderFn: () => T | Promise<T>,\n requestInfo: RequestInfo,\n viewName?: string,\n): Promise<T> {\n const context = createRequestContext(requestInfo);\n if (viewName) {\n context.viewName = viewName;\n }\n return renderStore.run(context, () => Promise.resolve(renderFn()));\n}\n\n// Set view name in current render context\nexport function setViewName(viewName: string): void {\n const context = renderStore.getStore();\n if (context) {\n context.viewName = viewName;\n }\n}\n\n// Get entries from current context\nexport function getClientJsEntries(): Array<{ path: string; from: string }> {\n const context = renderStore.getStore();\n if (!context) return [];\n return context.clientJsRegistry.slice();\n}\n\n// Get cache tags from current context\nexport function getCacheTags(): string[] {\n const context = renderStore.getStore();\n if (!context) return [];\n return Array.from(context.cacheTags);\n}\n\n// Add cache tags to current context\nexport function addCacheTag(tag: string | string[] | Record<string, boolean>): void {\n const context = renderStore.getStore();\n if (!context) return;\n\n if (Array.isArray(tag)) {\n tag.forEach((t) => {\n if (typeof t === 'string' && t.trim()) {\n context.cacheTags.add(t.trim());\n }\n });\n } else if (typeof tag === 'string' && tag.trim()) {\n context.cacheTags.add(tag.trim());\n } else if (typeof tag === 'object' && tag !== null) {\n Object.entries(tag).forEach(([key, value]) => {\n if (value && typeof key === 'string' && key.trim()) {\n context.cacheTags.add(key.trim());\n }\n });\n }\n}\n\n// Get CSS entries from current context\nexport function getCssEntries(): Array<{ path: string; from: string }> {\n const context = renderStore.getStore();\n if (!context) return [];\n return context.cssRegistry.slice();\n}\n\n// Head component to collect head elements with priority support\nexport function Head({\n children,\n priority = HEAD_PRIORITY.LOW, // Default priority\n}: {\n children?: JSXChild;\n priority?: HeadPriority;\n}): null {\n const renderContext = renderStore.getStore();\n if (renderContext && children) {\n renderContext.headRegistry.push({\n content: children,\n priority: typeof priority === 'number' ? priority : HEAD_PRIORITY.LOW,\n source: 'manual',\n });\n\n // Sort theo priority sau mỗi lần push để đảm bảo thứ tự đúng\n renderContext.headRegistry.sort((a, b) => a.priority - b.priority);\n }\n return null;\n}\n\n// Get head content from current context (already sorted by priority)\nexport function getHeadContent(): JSXChild[] {\n const context = renderStore.getStore();\n if (!context) return [];\n // Đã được sort trong Head component, chỉ cần map để lấy content\n return context.headRegistry.map((entry) => entry.content);\n}\n\n// Push metadata to stack (for hierarchical metadata support)\nexport function pushMetadata(metadata: Metadata): void {\n const context = renderStore.getStore();\n if (context && metadata) {\n context.metadataStack.push(metadata);\n }\n}\n\n// Resolve and merge all metadata from stack (root → leaf)\nexport function resolveMetadata(): Metadata | null {\n const context = renderStore.getStore();\n if (!context || context.metadataStack.length === 0) {\n return null;\n }\n\n // Merge from root → leaf (reduce left to right)\n return context.metadataStack.reduce(\n (acc, current) => mergeMetadata(acc, current),\n null as Metadata | null,\n );\n}\n\n// Push schema to registry (for schema markup from loaders)\n// Accepts schema-dts types (WithContext<T> or array of schemas)\nexport function pushSchema(schema: any | Array<any>): void {\n const context = renderStore.getStore();\n if (!context) return;\n\n if (Array.isArray(schema)) {\n context.schemaRegistry.push(...schema);\n } else {\n context.schemaRegistry.push(schema);\n }\n}\n\n// Get all schemas from registry\nexport function getSchemas(): Array<Record<string, any>> {\n const context = renderStore.getStore();\n if (!context) return [];\n return context.schemaRegistry.slice();\n}\n\n// Hook to get render request context\nexport function useRequest() {\n const context = renderStore.getStore();\n\n if (!context) {\n throw new Error('useRequest called outside of render context');\n }\n\n return {\n request: context.request,\n view: context.viewName,\n locals: (context.request.locals ?? {}) as Record<string, unknown>,\n\n // Add cache tags\n addCacheTag: (tag: string | string[] | Record<string, boolean>) => {\n addCacheTag(tag);\n },\n\n // Get all cache tags\n getCacheTags: () => {\n return Array.from(context.cacheTags);\n },\n };\n}\n\n/**\n * Checks if a value is a valid JSX element (JSXNode)\n * Similar to React.isValidElement\n */\nexport function isValidElement(value: any): value is JSXNode {\n return (\n value !== null &&\n typeof value === 'object' &&\n 'type' in value &&\n 'props' in value &&\n 'children' in value &&\n (typeof value.type === 'string' || typeof value.type === 'function')\n );\n}\n\n/**\n * Clones a JSX element with new props and/or children\n * Similar to React.cloneElement\n */\nexport function cloneElement(\n element: JSXNode,\n props?: Record<string, any>,\n ...children: JSXChild[]\n): JSXNode {\n const newProps = { ...element.props, ...props };\n const newChildren = children.length > 0 ? children.flat() : element.children;\n\n return {\n type: element.type,\n props: newProps,\n children: newChildren,\n };\n}\n"],"names":["HEAD_PRIORITY","mergeMetadata","parent","child","merged","RAW_HTML_MARKER","jsxFactory","type","props","children","Fragment","renderStore","AsyncLocalStorage","createRequestContext","requestInfo","useClientJs","path","renderContext","registerIsland","key","src","name","e","getIslandEntries","context","useCss","runInRenderContext","renderFn","viewName","setViewName","getClientJsEntries","getCacheTags","addCacheTag","tag","t","value","getCssEntries","Head","priority","a","b","getHeadContent","entry","pushMetadata","metadata","resolveMetadata","acc","current","pushSchema","schema","getSchemas","useR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/D,SAAO;AAAA,IACL,SAASA,EAAQ;AAAA,IACjB,MAAMA,EAAQ;AAAA,IACd,QAASA,EAAQ,QAAQ,UAAU,CAAA;AAAA;AAAA,IAGnC,aAAa,CAACS,MAAqD;AACjE,MAAAD,EAAYC,CAAG;AAAA,IACjB;AAAA;AAAA,IAGA,cAAc,MACL,MAAM,KAAKT,EAAQ,SAAS;AAAA,EACrC;AAEJ;AAMO,SAAS4B,EAAejB,GAA8B;AAC3D,SACEA,MAAU,QACV,OAAOA,KAAU,YACjB,UAAUA,KACV,WAAWA,KACX,cAAcA,MACb,OAAOA,EAAM,QAAS,YAAY,OAAOA,EAAM,QAAS;AAE7D;AAMO,SAASkB,EACdC,GACA9C,MACGC,GACM;AACT,QAAM8C,IAAW,EAAE,GAAGD,EAAQ,OAAO,GAAG9C,EAAA,GAClCgD,IAAc/C,EAAS,SAAS,IAAIA,EAAS,KAAA,IAAS6C,EAAQ;AAEpE,SAAO;AAAA,IACL,MAAMA,EAAQ;AAAA,IACd,OAAOC;AAAA,IACP,UAAUC;AAAA,EAAA;AAEd;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { F as t, a as n, b as r, c as d, g, d as i, e as l, f as o, h as m, i as u, j as C, k as c, p as h, l as p, r as E, n as x, o as F, s as I, u as f, q as j, t as q } from "./jsx-runtime-C2Vw67N2.js";
|
|
2
|
+
import "async_hooks";
|
|
3
|
+
export {
|
|
4
|
+
t as Fragment,
|
|
5
|
+
n as Head,
|
|
6
|
+
r as addCacheTag,
|
|
7
|
+
d as cloneElement,
|
|
8
|
+
g as getCacheTags,
|
|
9
|
+
i as getClientJsEntries,
|
|
10
|
+
l as getCssEntries,
|
|
11
|
+
o as getHeadContent,
|
|
12
|
+
m as getIslandEntries,
|
|
13
|
+
u as getSchemas,
|
|
14
|
+
C as isValidElement,
|
|
15
|
+
c as jsxFactory,
|
|
16
|
+
h as pushMetadata,
|
|
17
|
+
p as pushSchema,
|
|
18
|
+
E as registerIsland,
|
|
19
|
+
x as resolveMetadata,
|
|
20
|
+
F as runInRenderContext,
|
|
21
|
+
I as setViewName,
|
|
22
|
+
f as useClientJs,
|
|
23
|
+
j as useCss,
|
|
24
|
+
q as useRequest
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=jsx-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"middleware.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/seo.js
ADDED
package/dist/seo.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|