@stacksjs/stx 0.2.635 → 0.2.637
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/dist/{chunk-3td99hnc.js → chunk-0ergsswn.js} +3 -3
- package/dist/chunk-0tbsqnq3.js +2 -0
- package/dist/{chunk-6gwrmn3w.js → chunk-17x6e5mm.js} +6 -6
- package/dist/{chunk-j79f6syh.js → chunk-1m5cjrpw.js} +4 -4
- package/dist/chunk-1p6yd17s.js +2 -0
- package/dist/{chunk-kjtvdqb9.js → chunk-1qt006mx.js} +57 -43
- package/dist/{chunk-6w1ngwsd.js → chunk-1t0m4pwg.js} +2 -2
- package/dist/chunk-2t5qqn27.js +2 -0
- package/dist/chunk-2xzttttk.js +2 -0
- package/dist/chunk-3hkp5hym.js +2 -0
- package/dist/chunk-444pz8yk.js +2 -0
- package/dist/{chunk-ymntav9f.js → chunk-45xhjrha.js} +1 -1
- package/dist/{chunk-jtr30kkz.js → chunk-47shfmkf.js} +1 -1
- package/dist/{chunk-camd8j1q.js → chunk-48yja477.js} +3 -3
- package/dist/chunk-499wgv9j.js +2 -0
- package/dist/chunk-4b5f28te.js +2 -0
- package/dist/chunk-4dpq1bnh.js +2 -0
- package/dist/chunk-4mm9ttc7.js +2 -0
- package/dist/{chunk-psranzfr.js → chunk-4w5rkk9d.js} +2 -2
- package/dist/{chunk-npn3h566.js → chunk-55pjhpdq.js} +2 -2
- package/dist/{chunk-e0nq8g9j.js → chunk-5e063mgs.js} +1 -1
- package/dist/chunk-5jk2nqk5.js +2 -0
- package/dist/{chunk-qa58qdz8.js → chunk-5kbkx0np.js} +2 -2
- package/dist/{chunk-emcbmr0r.js → chunk-5wyp57g3.js} +3 -3
- package/dist/{chunk-cjr8cpb7.js → chunk-60azcvwr.js} +3 -3
- package/dist/{chunk-cdab66xt.js → chunk-639ngkgb.js} +2 -2
- package/dist/{chunk-0tm9ep8b.js → chunk-6avpd901.js} +2 -2
- package/dist/{chunk-gcj5jfbv.js → chunk-6mnwvn9v.js} +2 -2
- package/dist/chunk-6tp66rf3.js +2 -0
- package/dist/{chunk-1wb98s7b.js → chunk-6vmvra0f.js} +7 -7
- package/dist/chunk-6vtq0atz.js +2 -0
- package/dist/{chunk-yp8tk3v3.js → chunk-6w3nph4g.js} +5 -5
- package/dist/{chunk-3e2v2fdh.js → chunk-70et0fbw.js} +4 -4
- package/dist/chunk-72sev9mm.js +2 -0
- package/dist/{chunk-shcn4wve.js → chunk-7mkw98cr.js} +2 -2
- package/dist/chunk-87kza2ez.js +2 -0
- package/dist/{chunk-g9sdjgfw.js → chunk-88p10v0w.js} +5 -5
- package/dist/chunk-8cqx63aw.js +3 -0
- package/dist/chunk-8s1dkcwk.js +2 -0
- package/dist/chunk-8xqh5kjp.js +2 -0
- package/dist/chunk-8xx631c2.js +18 -0
- package/dist/{chunk-f3agc1a3.js → chunk-972hgzxv.js} +9 -9
- package/dist/{chunk-y5b25eks.js → chunk-9939fjh4.js} +4 -4
- package/dist/{chunk-qczse5w4.js → chunk-9f79c8pv.js} +37 -37
- package/dist/{chunk-fm80xpxn.js → chunk-9gvq1spk.js} +4 -4
- package/dist/chunk-9jetjy0s.js +2 -0
- package/dist/chunk-9nvrkpee.js +2 -0
- package/dist/chunk-9ny6xzw0.js +2 -0
- package/dist/chunk-9r538d93.js +2 -0
- package/dist/chunk-9xaztqhw.js +2 -0
- package/dist/{chunk-kr14jt4m.js → chunk-9yk5rasj.js} +2 -2
- package/dist/{chunk-fwawm5r3.js → chunk-a0ygyftk.js} +2 -2
- package/dist/chunk-adxq3fkh.js +2 -0
- package/dist/{chunk-sn0a8cjd.js → chunk-aztp8r80.js} +5 -5
- package/dist/chunk-b2teprjf.js +2 -0
- package/dist/{chunk-b7hv69ty.js → chunk-b4j5bpec.js} +2 -2
- package/dist/{chunk-hbzk179w.js → chunk-b56p8vqw.js} +4 -4
- package/dist/chunk-byrmpd9m.js +2 -0
- package/dist/{chunk-q0kbn64j.js → chunk-c858mepd.js} +5 -5
- package/dist/chunk-cd76dwdn.js +2 -0
- package/dist/{chunk-bk9bx2ns.js → chunk-cq331w4g.js} +2 -2
- package/dist/{chunk-xdwpbqzz.js → chunk-dcwhp21g.js} +18 -18
- package/dist/chunk-degxqdbb.js +2 -0
- package/dist/chunk-dmmpezc0.js +2 -0
- package/dist/{chunk-baw176ay.js → chunk-drrczm0b.js} +6 -6
- package/dist/{chunk-mvt5n2q4.js → chunk-dyg6sadv.js} +1 -1
- package/dist/chunk-e7bd4vxb.js +2 -0
- package/dist/chunk-evwbat9f.js +2 -0
- package/dist/{chunk-8y3mff5c.js → chunk-eyy6zmdk.js} +2 -2
- package/dist/chunk-f2pk3qgg.js +2 -0
- package/dist/{chunk-954tcahb.js → chunk-f9wse4zx.js} +2 -2
- package/dist/chunk-fdxyj3pk.js +2 -0
- package/dist/{chunk-kwwrrasa.js → chunk-fqg0espy.js} +2 -2
- package/dist/{chunk-pak6ngv0.js → chunk-fwdptew6.js} +6 -6
- package/dist/{chunk-7vdcsr14.js → chunk-fztvkacg.js} +2 -2
- package/dist/chunk-g14mwhqz.js +2 -0
- package/dist/{chunk-kk6tq07c.js → chunk-g1ae3haw.js} +2 -2
- package/dist/chunk-g67016zr.js +2 -0
- package/dist/{chunk-mn97jhaq.js → chunk-g6s0xdgb.js} +3 -3
- package/dist/{chunk-1d25z8q2.js → chunk-gmxrckgj.js} +3 -3
- package/dist/{chunk-mpb0ezee.js → chunk-gqz26wza.js} +3 -3
- package/dist/{chunk-c4ysk7x2.js → chunk-gsp3627d.js} +4 -4
- package/dist/chunk-h4fteh7w.js +2 -0
- package/dist/chunk-hf340t26.js +2 -0
- package/dist/{chunk-4vkpgz28.js → chunk-j00v4m56.js} +9 -9
- package/dist/chunk-j0jz4mfm.js +2 -0
- package/dist/chunk-j37720vw.js +2 -0
- package/dist/chunk-j6fxzkn5.js +2 -0
- package/dist/chunk-jmdrhpy7.js +2 -0
- package/dist/chunk-jshv1ye7.js +2 -0
- package/dist/{chunk-vyjdzpb8.js → chunk-kjspmegt.js} +2 -2
- package/dist/chunk-ky043mkv.js +2 -0
- package/dist/{chunk-7m5xrqnj.js → chunk-m690cqee.js} +285 -285
- package/dist/{chunk-ptv5f34x.js → chunk-m92q2jyt.js} +7 -7
- package/dist/chunk-mbqqc20a.js +2 -0
- package/dist/{chunk-a7s1j320.js → chunk-mmt0mv1z.js} +5 -5
- package/dist/chunk-mqmxhggf.js +2 -0
- package/dist/{chunk-cw9pc5yx.js → chunk-myayey15.js} +13 -13
- package/dist/chunk-n7jc6gn3.js +2 -0
- package/dist/chunk-nf8r47j1.js +2 -0
- package/dist/chunk-nfhd1gct.js +2 -0
- package/dist/{chunk-a6hv03yw.js → chunk-nh812wcz.js} +3 -3
- package/dist/chunk-nkgzwyad.js +2 -0
- package/dist/{chunk-ytv0k9gy.js → chunk-nn1mncgw.js} +10 -10
- package/dist/chunk-ns4pc13z.js +2 -0
- package/dist/{chunk-ycz5th6b.js → chunk-pf5s5gjp.js} +1 -1
- package/dist/{chunk-ry1w4ghk.js → chunk-phdfw45x.js} +1 -1
- package/dist/{chunk-2efrxnnt.js → chunk-pmyqj6yq.js} +2 -2
- package/dist/chunk-pn719qwa.js +2 -0
- package/dist/chunk-pnjwynpc.js +2 -0
- package/dist/{chunk-m56ee2tw.js → chunk-pv6yw985.js} +5 -5
- package/dist/{chunk-ym0e374a.js → chunk-pvfx0dgz.js} +2 -2
- package/dist/{chunk-zpzk4wd2.js → chunk-qmh6f1bt.js} +10 -10
- package/dist/{chunk-14yjt309.js → chunk-qy11cp1v.js} +4 -4
- package/dist/{chunk-bysyrwfa.js → chunk-r00nn2qs.js} +3 -3
- package/dist/chunk-re2mry1d.js +2 -0
- package/dist/{chunk-g9dz0mx9.js → chunk-s775b8ra.js} +2 -2
- package/dist/{chunk-3f4xy76k.js → chunk-vd63xejx.js} +6 -6
- package/dist/{chunk-839m1t8t.js → chunk-vq4sh8aq.js} +1 -1
- package/dist/chunk-vvgs62za.js +2 -0
- package/dist/{chunk-zfrpss8y.js → chunk-w41kp60h.js} +4 -4
- package/dist/{chunk-9gx5p7zh.js → chunk-wjq1wqn6.js} +2 -2
- package/dist/chunk-xqr58cxk.js +2 -0
- package/dist/chunk-xqtzk9wr.js +2 -0
- package/dist/chunk-y19k3vt3.js +2 -0
- package/dist/{chunk-f30t1g74.js → chunk-y255yybn.js} +2 -2
- package/dist/chunk-y6z9qwtn.js +2 -0
- package/dist/chunk-ypgsyh5k.js +2 -0
- package/dist/{chunk-x7g0946r.js → chunk-z5wnd2qa.js} +1 -1
- package/dist/{chunk-qjfgdcck.js → chunk-zt7b6vwa.js} +4 -4
- package/dist/cli.js +19 -19
- package/dist/craft-bridge.js +6 -3
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/native-backend.d.ts +11 -0
- package/dist/native-backend.js +65 -0
- package/dist/native-build.d.ts +2 -0
- package/dist/native-build.js +50 -7
- package/dist/process.d.ts +1 -0
- package/dist/process.js +1 -1
- package/dist/pwa.js +3 -3
- package/dist/render.js +3 -3
- package/dist/ssg.js +3 -3
- package/package.json +5 -5
- package/dist/chunk-0d7dqt4d.js +0 -2
- package/dist/chunk-0grt24vd.js +0 -2
- package/dist/chunk-2vzfn6vy.js +0 -2
- package/dist/chunk-3bsz101e.js +0 -2
- package/dist/chunk-3jwjesb5.js +0 -2
- package/dist/chunk-4b4es5wg.js +0 -2
- package/dist/chunk-4xeafdr6.js +0 -2
- package/dist/chunk-4xkqdfqd.js +0 -2
- package/dist/chunk-5k989nr4.js +0 -2
- package/dist/chunk-5v95x083.js +0 -3
- package/dist/chunk-5yf9yzkp.js +0 -2
- package/dist/chunk-7mtdjjbt.js +0 -2
- package/dist/chunk-88dxeynx.js +0 -2
- package/dist/chunk-8er7jc3c.js +0 -2
- package/dist/chunk-8phbb8wj.js +0 -2
- package/dist/chunk-97zrn4wb.js +0 -18
- package/dist/chunk-a83r1xx9.js +0 -2
- package/dist/chunk-abpeac2d.js +0 -2
- package/dist/chunk-adzsqsjt.js +0 -2
- package/dist/chunk-b1ndskw9.js +0 -2
- package/dist/chunk-b7fp3zta.js +0 -2
- package/dist/chunk-bgfkbesj.js +0 -2
- package/dist/chunk-cy83yfy9.js +0 -2
- package/dist/chunk-dbqb1a51.js +0 -2
- package/dist/chunk-e8t64hxk.js +0 -2
- package/dist/chunk-e943xk88.js +0 -2
- package/dist/chunk-g039c67x.js +0 -2
- package/dist/chunk-ghfxfcr9.js +0 -2
- package/dist/chunk-gvyq9xt6.js +0 -2
- package/dist/chunk-h30y9k44.js +0 -2
- package/dist/chunk-hwp3m8a8.js +0 -2
- package/dist/chunk-jarptkbv.js +0 -2
- package/dist/chunk-km4xp898.js +0 -2
- package/dist/chunk-meze7k8v.js +0 -2
- package/dist/chunk-mfwrxz9z.js +0 -2
- package/dist/chunk-mmpm1awz.js +0 -2
- package/dist/chunk-n7vetrt4.js +0 -2
- package/dist/chunk-nd716zha.js +0 -2
- package/dist/chunk-ptjz4f2e.js +0 -2
- package/dist/chunk-q4hmgj72.js +0 -2
- package/dist/chunk-q841b6x4.js +0 -2
- package/dist/chunk-qnh5x7vv.js +0 -2
- package/dist/chunk-qxjfvkjt.js +0 -2
- package/dist/chunk-rhhwz7e9.js +0 -2
- package/dist/chunk-rpbe5h6v.js +0 -2
- package/dist/chunk-rrdn4qnn.js +0 -2
- package/dist/chunk-s7c9kb53.js +0 -2
- package/dist/chunk-sfj84n72.js +0 -2
- package/dist/chunk-sgr2hhsc.js +0 -2
- package/dist/chunk-taztcvv3.js +0 -2
- package/dist/chunk-vczt5k2j.js +0 -2
- package/dist/chunk-vj5fghnv.js +0 -2
- package/dist/chunk-wn1s8af8.js +0 -2
- package/dist/chunk-y3jyk5bj.js +0 -2
- package/dist/chunk-ytxzy6eg.js +0 -2
- package/dist/chunk-ywf319rp.js +0 -2
- package/dist/chunk-yww6c9we.js +0 -2
- package/dist/chunk-yy43hxb7.js +0 -2
- package/dist/chunk-z42jb949.js +0 -2
- package/dist/chunk-zw20a7q4.js +0 -2
package/dist/native-build.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var {require}=import.meta;import { existsSync, mkdirSync, copyFileSync, chmodSync } from "node:fs";
|
|
1
|
+
var {require}=import.meta;import { existsSync, mkdirSync, copyFileSync, chmodSync, rmSync } from "node:fs";
|
|
2
2
|
import { join, dirname, basename, resolve } from "node:path";
|
|
3
3
|
import { spawn, execSync } from "node:child_process";
|
|
4
4
|
import { homedir, platform as osPlatform } from "node:os";
|
|
@@ -16,7 +16,12 @@ export async function buildNative(config) {
|
|
|
16
16
|
format: config.format || "app",
|
|
17
17
|
error: `Input file not found: ${config.input}`
|
|
18
18
|
};
|
|
19
|
-
const target = config.target || detectPlatform(), format = config.format || getDefaultFormat(target)
|
|
19
|
+
const target = config.target || detectPlatform(), format = config.format || getDefaultFormat(target);
|
|
20
|
+
if (config.backend && target !== "macos")
|
|
21
|
+
throw Error("Native backend bundles currently support macOS only.");
|
|
22
|
+
if (config.backend && !existsSync(resolve(config.backend.entry)))
|
|
23
|
+
throw Error(`Native backend not found: ${config.backend.entry}`);
|
|
24
|
+
const outputDir = config.output || join(process.cwd(), "dist", "native");
|
|
20
25
|
if (!existsSync(outputDir))
|
|
21
26
|
mkdirSync(outputDir, { recursive: !0 });
|
|
22
27
|
let html = await renderTemplate(config.input, {
|
|
@@ -83,6 +88,7 @@ export async function buildNative(config) {
|
|
|
83
88
|
}
|
|
84
89
|
async function buildMacOS(html, appName, appVersion, outputDir, format, config, craftPath) {
|
|
85
90
|
const bundleId = config.bundleId || `com.stx.${appName.toLowerCase().replace(/[^a-z0-9]/g, "")}`, appBundlePath = join(outputDir, `${appName}.app`), contentsDir = join(appBundlePath, "Contents"), macOSDir = join(contentsDir, "MacOS"), resourcesDir = join(contentsDir, "Resources");
|
|
91
|
+
rmSync(appBundlePath, { recursive: !0, force: !0 });
|
|
86
92
|
mkdirSync(macOSDir, { recursive: !0 });
|
|
87
93
|
mkdirSync(resourcesDir, { recursive: !0 });
|
|
88
94
|
const htmlPath = join(resourcesDir, "index.html");
|
|
@@ -92,8 +98,43 @@ async function buildMacOS(html, appName, appVersion, outputDir, format, config,
|
|
|
92
98
|
sidebarConfigPath = join(resourcesDir, "sidebar-config.json");
|
|
93
99
|
await Bun.write(sidebarConfigPath, JSON.stringify(config.sidebar.config));
|
|
94
100
|
}
|
|
95
|
-
const sidebarFlags = config.sidebar?.enabled ? `--native-sidebar --sidebar-width ${config.sidebar?.width || 240} --sidebar-config "$(cat "$RESOURCES/sidebar-config.json")"` : "", menubarOnly = config.menubarOnly ?? config.systemTray;
|
|
96
|
-
if (
|
|
101
|
+
const sidebarFlags = config.sidebar?.enabled ? `--native-sidebar --sidebar-width ${config.sidebar?.width || 240} --sidebar-config "$(cat "$RESOURCES/sidebar-config.json")"` : "", menubarOnly = config.menubarOnly ?? config.systemTray, style = config.bundleStyle || (await supportsBundleManifest(craftPath) ? "executable" : "launcher");
|
|
102
|
+
if (config.backend) {
|
|
103
|
+
copyFileSync(craftPath, join(macOSDir, "craft-runtime"));
|
|
104
|
+
chmodSync(join(macOSDir, "craft-runtime"), 493);
|
|
105
|
+
const scratch = createTempDir("native-backend");
|
|
106
|
+
try {
|
|
107
|
+
const entry = join(scratch, "launcher.ts"), runtime = join(import.meta.dir, "native-backend" + (import.meta.path.endsWith(".ts") ? ".ts" : ".js"));
|
|
108
|
+
await Bun.write(entry, `import { runNativeBackend } from ${JSON.stringify(runtime)}
|
|
109
|
+
import handler from ${JSON.stringify(resolve(config.backend.entry))}
|
|
110
|
+
await runNativeBackend({ html: ${JSON.stringify(html)}, fetch: handler,
|
|
111
|
+
title: ${JSON.stringify(config.window?.title || appName)},
|
|
112
|
+
width: ${config.window?.width || 1200}, height: ${config.window?.height || 800},
|
|
113
|
+
maxRequestBodySize: ${config.backend.maxRequestBodySize ?? 33554432},
|
|
114
|
+
devTools: ${Boolean(config.devTools)} })
|
|
115
|
+
`);
|
|
116
|
+
const compiled = Bun.spawn([
|
|
117
|
+
process.execPath,
|
|
118
|
+
"build",
|
|
119
|
+
entry,
|
|
120
|
+
"--compile",
|
|
121
|
+
"--minify",
|
|
122
|
+
"--no-compile-autoload-bunfig",
|
|
123
|
+
"--no-compile-autoload-dotenv",
|
|
124
|
+
"--outfile",
|
|
125
|
+
join(macOSDir, appName)
|
|
126
|
+
], { stdout: "pipe", stderr: "pipe" }), [stdout, stderr, code] = await Promise.all([
|
|
127
|
+
new Response(compiled.stdout).text(),
|
|
128
|
+
new Response(compiled.stderr).text(),
|
|
129
|
+
compiled.exited
|
|
130
|
+
]);
|
|
131
|
+
if (code !== 0)
|
|
132
|
+
throw Error(`Native backend compilation failed: ${stdout}
|
|
133
|
+
${stderr}`);
|
|
134
|
+
} finally {
|
|
135
|
+
removeTempDir(scratch);
|
|
136
|
+
}
|
|
137
|
+
} else if (style === "executable") {
|
|
97
138
|
const executablePath = join(macOSDir, appName);
|
|
98
139
|
copyFileSync(craftPath, executablePath);
|
|
99
140
|
chmodSync(executablePath, 493);
|
|
@@ -104,7 +145,9 @@ async function buildMacOS(html, appName, appVersion, outputDir, format, config,
|
|
|
104
145
|
height: config.window?.height || 800,
|
|
105
146
|
devTools: Boolean(config.devTools)
|
|
106
147
|
};
|
|
107
|
-
if (
|
|
148
|
+
if (config.trayPopover)
|
|
149
|
+
manifest.trayPopover = !0;
|
|
150
|
+
else if (menubarOnly)
|
|
108
151
|
manifest.menubarOnly = !0;
|
|
109
152
|
else if (config.systemTray)
|
|
110
153
|
manifest.systemTray = !0;
|
|
@@ -131,7 +174,7 @@ exec "$DIR/craft" --html-file "$RESOURCES/index.html" \\
|
|
|
131
174
|
`--title "${config.window?.title || appName}"`,
|
|
132
175
|
`--width ${config.window?.width || 1200}`,
|
|
133
176
|
`--height ${config.window?.height || 800}`,
|
|
134
|
-
menubarOnly ? "--menubar-only" : config.systemTray ? "--system-tray" : "",
|
|
177
|
+
config.trayPopover ? "--tray-popover" : menubarOnly ? "--menubar-only" : config.systemTray ? "--system-tray" : "",
|
|
135
178
|
config.devTools ? "" : "--no-devtools",
|
|
136
179
|
config.window?.frameless ? "--frameless" : "",
|
|
137
180
|
config.window?.transparent ? "--transparent" : "",
|
|
@@ -158,7 +201,7 @@ exec "$DIR/craft" --html-file "$RESOURCES/index.html" \\
|
|
|
158
201
|
LSMinimumSystemVersion: config.minimumSystemVersion || "13.0",
|
|
159
202
|
NSHighResolutionCapable: !0,
|
|
160
203
|
NSSupportsAutomaticGraphicsSwitching: !0,
|
|
161
|
-
LSUIElement: config.menubarOnly ?? Boolean(config.systemTray),
|
|
204
|
+
LSUIElement: config.trayPopover || (config.menubarOnly ?? Boolean(config.systemTray)),
|
|
162
205
|
...hasIcon ? { CFBundleIconFile: "AppIcon" } : {},
|
|
163
206
|
...config.category ? { LSApplicationCategoryType: config.category } : {},
|
|
164
207
|
...config.copyright ? { NSHumanReadableCopyright: config.copyright } : {},
|
package/dist/process.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { processJsonDirective, processOnceDirective } from './misc-directives';
|
|
2
2
|
import { validateClientScript } from './script-validation';
|
|
3
3
|
import type { StxOptions } from './types';
|
|
4
|
+
export declare function buildModulesTag(sources: Array<string | null>, options: StxOptions, dependencies?: Set<string>): Promise<string | null>;
|
|
4
5
|
export declare function processDirectives(template: string, context: Record<string, any>, filePath: string, options: StxOptions, dependencies: Set<string>): Promise<string>;
|
|
5
6
|
// Re-export public API from extracted modules (preserves backwards compatibility)
|
|
6
7
|
export { injectRouterScript } from './runtime-injection';
|
package/dist/process.js
CHANGED
|
@@ -226,7 +226,7 @@ async function externalBundleTag(attrs, code, options) {
|
|
|
226
226
|
const { registerServeModuleBundle } = await import("./caching.js");
|
|
227
227
|
return `<script ${attrs} src="${registerServeModuleBundle(code)}"></script>`;
|
|
228
228
|
}
|
|
229
|
-
async function buildModulesTag(sources, options, dependencies) {
|
|
229
|
+
export async function buildModulesTag(sources, options, dependencies) {
|
|
230
230
|
try {
|
|
231
231
|
const { registeredModuleIdsIn, buildModuleRegistryScript } = await importOnce("stx/client-module-registry", () => import("./client-module-registry.js")), inputs = [], code = await buildModuleRegistryScript(registeredModuleIdsIn(...sources), {
|
|
232
232
|
minify: minifiesClientCode(options.buildMode),
|
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-
|
|
2
|
+
import{or,qe,ui,yc}from"./chunk-w41kp60h.js";import{sr,ds,gc,mc,hc}from"./chunk-17x6e5mm.js";import{ai,ci,li,pc,fc}from"./chunk-kjspmegt.js";import{de,Tt,ps}from"./chunk-9yk5rasj.js";import{vl,wl,xl,Sl,Mr,Hd}from"./chunk-eyy6zmdk.js";import B from"fs";import w from"path";import O from"fs";import u from"path";var v=[72,96,128,144,152,192,384,512],S=[120,152,167,180],P=[16,32];async function M(n,t){let e={success:!0,generatedFiles:[],errors:[],warnings:[]},r=n.pwa?.icons;if(!r?.src)return e.errors.push("No source icon specified in pwa.icons.src"),e.success=!1,e;let o=u.isAbsolute(r.src)?r.src:u.resolve(process.cwd(),r.src);if(!await Bun.file(o).exists())return e.errors.push(`Source icon not found: ${o}`),e.success=!1,e;let a=u.resolve(t,r.outputDir||"pwa-icons");try{O.mkdirSync(a,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${a}`),e.success=!1,e}let s=r.sizes||v,l=r.generateWebP??!0,p=r.generateAppleIcons??!0;try{let c;try{c=await import("sharp")}catch{return e.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-nfhd1gct.js"),o=await Bun.file(e).text();return await r(o,{},e,n,new Set)}catch(r){console.warn(`[PWA] Failed to process custom offline page: ${r}`)}else console.warn(`[PWA] Custom offline page not found: ${e}`)}return E(n)}function E(n){let t=n.pwa?.offline,e=n.pwa?.manifest,r=t?.fallbackTitle||"You are offline",o=t?.fallbackMessage||"Please check your internet connection and try again.",a=e?.themeColor||"#4f46e5",s=e?.shortName||e?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|
|
@@ -233,4 +233,4 @@ Icon generation requires the sharp package for image processing.`),e.success=!1,
|
|
|
233
233
|
}, 5000);
|
|
234
234
|
</script>
|
|
235
235
|
</body>
|
|
236
|
-
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=de(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=
|
|
236
|
+
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=de(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=or(n,t);if(a){let s=qe(n),l=w.join(t,s);await Bun.write(l,a),e.files.serviceWorker=l}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate service worker: ${s}`),e.success=!1}return e}function ae(n,t){return ds(n,t)}function se(n){return n.pwa?.enabled===!0}export{S as APPLE_TOUCH_ICON_SIZES,v as DEFAULT_ICON_SIZES,P as FAVICON_SIZES,ci as auditBuildOutput,ai as auditConfig,re as buildPwaAssets,li as calculateAuditResult,fc as formatAuditResult,ps as formatSize,j as generateManifest,_ as generateManifestJson,mc as generateManifestLink,F as generateOfflinePage,de as generatePrecacheManifest,Tt as generatePrecacheManifestJs,M as generatePwaIcons,sr as generatePwaTags,or as generateServiceWorker,yc as generateServiceWorkerAuto,gc as generateSwRegistrationScript,hc as generateThemeColorMeta,N as getExpectedIconPaths,qe as getServiceWorkerFileName,ds as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,ui as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,Mr as pwaDirectives,vl as pwaInstallDirective,xl as pwaOfflineDirective,Sl as pwaPushDirective,wl as pwaUpdateDirective,Hd as registerPwaDirectives,pc as runPwaAudit,D as validateManifest};
|
package/dist/render.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dirname, resolve } from "node:path";
|
|
2
2
|
import { defaultConfig } from "./config.js";
|
|
3
3
|
import { extractVariables } from "./variable-extractor.js";
|
|
4
|
-
import { injectRouterScript, processDirectives } from "./process.js";
|
|
4
|
+
import { buildModulesTag, injectRouterScript, processDirectives } from "./process.js";
|
|
5
5
|
import { extractBridgeData, processClientScript } from "./client-script.js";
|
|
6
6
|
import { findSfcTemplateBlock } from "./sfc-template.js";
|
|
7
7
|
import { isMarkdownPath, renderMarkdownView } from "./markdown-view.js";
|
|
@@ -126,7 +126,7 @@ ${clientScripts.join(`
|
|
|
126
126
|
`)}`;
|
|
127
127
|
} else {
|
|
128
128
|
if (renderOptions.processClientScripts !== !1 && clientScripts.length > 0) {
|
|
129
|
-
const eventBindings = context.__stx_event_bindings || [], serverData = extractBridgeData(context),
|
|
129
|
+
const eventBindings = context.__stx_event_bindings || [], serverData = extractBridgeData(context), transformedScripts = await Promise.all(clientScripts.map(async (fullScript) => {
|
|
130
130
|
const contentMatch = fullScript.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);
|
|
131
131
|
if (!contentMatch)
|
|
132
132
|
return fullScript;
|
|
@@ -136,7 +136,7 @@ ${clientScripts.join(`
|
|
|
136
136
|
serverData,
|
|
137
137
|
filePath
|
|
138
138
|
});
|
|
139
|
-
}))).join(`
|
|
139
|
+
})), scriptsHtml = [await buildModulesTag(transformedScripts, { ...options, buildMode: "compile" }), ...transformedScripts].filter(Boolean).join(`
|
|
140
140
|
`);
|
|
141
141
|
if (output.match(/(<\/body>)/i))
|
|
142
142
|
output = output.replace(/(<\/body>)/i, `${scriptsHtml}
|
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-bsts9pr5.js";import"./chunk-
|
|
2
|
+
import"./chunk-bsts9pr5.js";import"./chunk-m92q2jyt.js";import"./chunk-y255yybn.js";import{ft,gt,mt,ht,yt,bt}from"./chunk-gsp3627d.js";import"./chunk-g1ae3haw.js";import"./chunk-ahyq08mp.js";import{f,Ye,j,Q,n,o}from"./chunk-m690cqee.js";import"./chunk-qmh6f1bt.js";import{Cr}from"./chunk-6vmvra0f.js";import"./chunk-a0ygyftk.js";import"./chunk-cq331w4g.js";import"./chunk-pvfx0dgz.js";import"./chunk-1m5cjrpw.js";import"./chunk-6w3nph4g.js";import{pe,$t,Rt}from"./chunk-9gvq1spk.js";import{si,oi,ii}from"./chunk-gqz26wza.js";import{Et,mn,hn}from"./chunk-kxbw0e2f.js";import"./chunk-r00nn2qs.js";import{a}from"./chunk-8cqx63aw.js";import x from"fs";import g from"path";import{createHash as vt}from"crypto";function Pt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Dt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function kt(t){return Bun.hash(t).toString(16)}function it(t,i={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,r=t.replace(Dt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(i.minify)h=Pt(h);let S=kt(h);if(!s.has(S))s.set(S,h);let P=i.integrity?` data-stx-integrity="sha384-${vt("sha384").update(h).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${l}" data-stx-src="/_stx/islands/${S}.js"${P}${w}></script>`}),c=Array.from(s,([e,l])=>({hash:e,code:l}));return{html:r,chunks:c}}var Ct=new Set(["visible","idle"]);function st(t){if(!t.includes("data-stx-src="))return t;let i=new Map,s=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,r;while((r=s.exec(t))!==null)i.set(r[1],r[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,l;while((l=e.exec(t))!==null)if(Ct.has(i.get(l[1])||""))c.add(l[2]);let w=t.lastIndexOf("</head>");if(c.size===0||w===-1)return t;let y=Array.from(c).filter((h)=>!t.includes(`rel="prefetch" href="${h}"`)).map((h)=>`<link rel="prefetch" href="${h}" as="script">`).join("");if(!y)return t;return t.slice(0,w)+y+t.slice(w)}var It=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function q(t){let i=t.trim();if(!i)return null;let s=/^https?:\/\//i.test(i)?i:`https://${i}`;try{return new URL(s).origin+new URL(s).pathname.replace(/\/$/,"")}catch{return null}}function Bt(t){for(let i of It){let s=t[i];if(!s)continue;let r=q(s);if(r)return{url:r,source:"env",via:i}}return null}function at(t){if(!t||typeof t!=="object")return null;let i=t,s=i.site?.url??i.url??i.app?.url;return typeof s==="string"?q(s):null}async function jt(t){let{existsSync:i}=await import("fs"),s=await import("path");for(let r of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=s.resolve(t,r);if(!i(c))continue;try{let e=await import(c),l=at(e.default??e);if(l)return l}catch{}}return null}async function ot(t={}){let i=t.cwd??process.cwd(),s=t.env??process.env;if(t.explicit){let l=q(t.explicit);if(l)return{url:l,source:"option"}}let r=at(t.stxConfig);if(r)return{url:r,source:"stx.config",via:"site.url"};let c=await jt(i);if(c)return{url:c,source:"site.config",via:"url"};let e=Bt(s);if(e)return e;return{url:"http://localhost",source:"fallback"}}function ct(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
3
|
`)}class lt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,i=""){this.cacheDir=t,this.salt=i}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let i=JSON.parse(await Bun.file(t).text());for(let[s,r]of Object.entries(i))this.cache.set(s,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),i={};for(let[s,r]of this.cache)i[s]=r;await Bun.write(t,JSON.stringify(i))}getHash(t,i){let s=x.statSync(t),r=`${this.salt}|${t}:${s.mtimeMs}`;for(let e of i)if(x.existsSync(e)){let l=x.statSync(e);r+=`:${e}:${l.mtimeMs}`}let c=0;for(let e=0;e<r.length;e++){let l=r.charCodeAt(e);c=(c<<5)-c+l,c=c&c}return Math.abs(c).toString(36)}get(t,i){let s=this.cache.get(t);if(!s)return null;let r=this.getHash(i,s.dependencies??[]);if(s.hash!==r)return this.cache.delete(t),null;return s.html}set(t,i,s,r){let c=this.getHash(i,s);this.cache.set(t,{hash:c,html:r,generatedAt:Date.now(),dependencies:s})}}class ut{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let i=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.join(this.cacheDir,"isr",i)}async get(t){let i=this.getFilePath(t);if(!await Bun.file(i).exists())return null;try{return JSON.parse(await Bun.file(i).text())}catch{return null}}async set(t,i){let s=this.getFilePath(t);await x.promises.mkdir(g.dirname(s),{recursive:!0}),await Bun.write(s,JSON.stringify(i))}async invalidate(t){let i=this.getFilePath(t);if(await Bun.file(i).exists())await x.promises.unlink(i)}async invalidatePattern(t){let i=g.join(this.cacheDir,"isr");if(!x.existsSync(i))return;let s=await x.promises.readdir(i);for(let r of s){let c=r.replace(/_/g,"/").replace(".json","");if(t.test(c))await x.promises.unlink(g.join(i,r))}}async needsRevalidation(t){let i=await this.get(t);if(!i)return!0;return Date.now()>i.revalidateAfter}}async function Ft(t){try{let s=(await Bun.file(t).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!s)return null;let r=s[1];if(!r.includes("getStaticPaths"))return null;let c=r.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!c)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${c[1]}
|
|
@@ -41,7 +41,7 @@ ${t.map((r)=>{let c=new URL(r.loc,i).href,e=` <url>
|
|
|
41
41
|
${s.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function zt(t={}){let i=Date.now();Rt();let s=await o(process.cwd()),r=s.build||{},c=await ot({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ct());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-
|
|
44
|
+
</rss>`}async function zt(t={}){let i=Date.now();Rt();let s=await o(process.cwd()),r=s.build||{},c=await ot({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ct());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-y6z9qwtn.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-y19k3vt3.js"),b=await p(e.publicDir,e.outputDir);if(b.count>0)console.log(`Optimized ${b.count} image(s) for responsive delivery`),D=[D,b.fingerprint].filter(Boolean).join(":");let B=new lt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-y6z9qwtn.js");await u('<div class="bg-black"></div>')}catch{}ft();let pt=s?.routeMiddleware?.dir||"middleware";await mt(process.cwd(),pt);let H=gt();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let wt=s?.routeMiddleware?.global||[];ii(s?.layoutsDir,a(process.cwd()));let V=j(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${V.length} routes`);let G=[];for(let u of V){let m=await Ot(u);for(let v of m)G.push({route:u,url:v.url,params:v.params,props:v.props,revalidate:v.revalidate??e.revalidate})}l.totalPages=G.length,console.log(`Generating ${l.totalPages} pages...`);let L=[],K=[];for(let u=0;u<G.length;u+=e.concurrency)K.push(G.slice(u,u+e.concurrency));for(let u of K)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:M,props:St,revalidate:Z}=m;try{await e.hooks.onPageStart?.(d);let F=await Bun.file(v.filePath).text(),O=Jt(F),xt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],tt=[...wt,...xt];if(tt.length>0){let C=ht(d,M,O||{}),T=yt(C,null,void 0,{isServer:!0}),E=await bt(tt,T);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,_=Vt(String(R),d),A=Kt(d,e);await x.promises.mkdir(g.dirname(A),{recursive:!0}),await Bun.write(A,_),l.successCount++,l.pages.push({route:d,outputPath:A,size:Buffer.byteLength(_),cached:!1}),L.push({loc:d,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${d} \u2192 redirect to ${R}`);return}if(E.abort){let R=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${d} \u2014 middleware aborted: ${R}`);return}}let et=F.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(et)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${et[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:M})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,rt=!1;if(e.cache){if(k=B.get(d,v.filePath),k)rt=!0,l.cachedCount++}if(!k){let C=await dt(v,M,St,e,s);if(k=C.html,e.failOnIncludeError&&C.includeFailures.length>0)throw Error(`${C.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -73,7 +73,7 @@ ${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.
|
|
|
73
73
|
<a href="/">Go home</a>
|
|
74
74
|
</div>
|
|
75
75
|
</body>
|
|
76
|
-
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},M=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),M)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&L.length>0){let u=Gt(L,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${L.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=
|
|
76
|
+
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...s,debug:!1,cache:!1},M=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),M)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&L.length>0){let u=Gt(L,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${L.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=Cr({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Nt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let N=si(e.outputDir);if(N.assets>0)console.log(`Externalized ${N.assets} asset(s) from ${N.pages} page(s) (${(N.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let z=oi(e.outputDir);if(z.assets>0)console.log(`Externalized ${z.assets} repeated asset(s) from ${z.pages} page(s) (${(z.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&x.existsSync(e.publicDir))await J(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Y=hn();if(Y)await J(Y,g.join(e.outputDir,mn)),console.log(`Copied assets from ${Et}`)}catch(D){throw await e.hooks.onError?.(D),D}if(l.buildTime=Date.now()-i,w.size>0){l.islandChunks={count:w.size,totalBytes:y};let D={generatedChunks:w.size,totalBytes:y,chunks:h,pages:S};await Bun.write(g.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(D,null,2))}await e.hooks.onBuildEnd?.(l);let P=l.islandChunks?`
|
|
77
77
|
Island chunks: ${l.islandChunks.count} (${(l.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
78
78
|
Build complete!
|
|
79
79
|
Total: ${l.totalPages} pages
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.637",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@stacksjs/ts-css": "^0.3.11",
|
|
130
130
|
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.
|
|
131
|
+
"@stacksjs/desktop": "0.2.637",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.637",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.637",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.637",
|
|
137
137
|
"ts-broadcasting": "^0.0.11",
|
|
138
138
|
"ts-images": "^0.2.22",
|
|
139
139
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-0d7dqt4d.js
DELETED
package/dist/chunk-0grt24vd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Jo,Yo,Zo,Ju}from"./chunk-kjtvdqb9.js";import"./chunk-97zrn4wb.js";import"./chunk-1d25z8q2.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Jo as buildNative,Ju as default,Zo as getAvailableFormats,Yo as getAvailableTargets};
|
package/dist/chunk-2vzfn6vy.js
DELETED
package/dist/chunk-3bsz101e.js
DELETED
package/dist/chunk-3jwjesb5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Eu,Tu}from"./chunk-hbzk179w.js";import"./chunk-fm80xpxn.js";import"./chunk-yp8tk3v3.js";import"./chunk-bsts9pr5.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Tu as clearStoreCache,Eu as getStoreScript};
|
package/dist/chunk-4b4es5wg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ue,un,$u}from"./chunk-xdwpbqzz.js";import{K,dn,Ru,pn,is,er,tr,Au,Pu,Iu,fn,gn,as,nr,Ou}from"./chunk-qa58qdz8.js";import"./chunk-kk6tq07c.js";export{is as batch,$u as default,dn as derived,pn as effect,Ue as generateSignalsRuntime,un as generateSignalsRuntimeDev,gn as isDerived,fn as isSignal,Ru as memo,tr as onDestroy,er as onMount,nr as peek,Iu as pendingLifecycleCounts,Pu as runDestroyCallbacks,Au as runMountCallbacks,K as state,as as untrack,Ou as useOptimistic};
|
package/dist/chunk-4xeafdr6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Il,Ol,Nl,Dl,Ra,Ml,Ll,jl,Bl,Fl,zl,Hl}from"./chunk-7vdcsr14.js";export{zl as Broadcast,Hl as BroadcastServer,Ra as broadcast,Bl as broadcastPresence,jl as broadcastPrivate,Fl as channel,Il as getBroadcastServer,Dl as loadChannels,Ol as startBroadcasting,Nl as stopBroadcasting,Ml as toUser,Ll as toUsers};
|
package/dist/chunk-4xkqdfqd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{F,z,H,Zt,te,ue,Zn,Pa,He,Ct,Qt,en,tn,V,nn,rn,Qn}from"./chunk-g9dz0mx9.js";import"./chunk-1d25z8q2.js";export{z as DEFAULT_FORMATS,H as DEFAULT_QUALITY,F as DEFAULT_WIDTHS,Qn as ImageProcessingError,rn as formatSize,Ct as generateSizes,He as generateSrcSet,Qt as getFallbackVariant,Zn as getImageMetadata,V as getMimeType,nn as getTotalSize,en as groupVariantsByFormat,te as isImageBackendAvailable,tn as isImageFile,Zt as isSharpAvailable,ue as processImage,Pa as resizeAndConvert};
|
package/dist/chunk-5k989nr4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{A,il,Us,o,P,kd,Cd}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{P as config,A as defaultConfig,kd as defineStxConfig,Us as discoverConfig,o as loadStxConfig,il as resolveStxDirectories,Cd as validateConfig};
|
package/dist/chunk-5v95x083.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var Ht=".stx",o="STX_DIR",e=null;function Ki(t){e=t?.trim()||null}function $n(){return process.env[o]?.trim()||e||Ht}function a(t=process.cwd(),...n){let r=$n();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function Rn(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==Ht&&!n.startsWith(`${Ht}/`))return t;let r=n.slice(Ht.length+1);return r?i.join($n(),r):$n()}
|
|
3
|
-
export{Ht,Ki,$n,a,Rn};
|
package/dist/chunk-5yf9yzkp.js
DELETED
package/dist/chunk-7mtdjjbt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Sl}from"./chunk-a6hv03yw.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Sl as startInteractive};
|
package/dist/chunk-88dxeynx.js
DELETED
package/dist/chunk-8er7jc3c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zt,Vc,Uc,Wc,qc,Gc,u,Kc,Ns,Xc,Ii,Oi}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{zt as STX_ENGINE_BINDING_NAMES,Ns as convertToCommonJS,Ii as extractScriptFromTemplate,u as extractVariables,Oi as hasVariables,Kc as isCompleteImport,Gc as isMissingBindingFailure,Wc as isModuleResolutionFailure,qc as isSyntaxFailure,Xc as splitDeclaration,Vc as stripTypeScript,Uc as withoutStxReferrer};
|
package/dist/chunk-8phbb8wj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pl}from"./chunk-954tcahb.js";import"./chunk-qjfgdcck.js";import"./chunk-xdwpbqzz.js";import"./chunk-yp8tk3v3.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Pl as buildForProduction};
|
package/dist/chunk-97zrn4wb.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{or,Ge,Ce,_e,wi,ur,oe,Q,Tn,u,n,A}from"./chunk-7m5xrqnj.js";function h(o){return o.endsWith(".md")||o.endsWith(".markdown")}function _(o){let e=[];g(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let r=[...e];g(/<code\b[^>]*>[\s\S]*?<\/code>/gi,r);function g(s,p){let m;while((m=s.exec(o))!==null){let t=m.index,i=t+m[0].length;if(p?.some((l)=>t>=l.start&&i<=l.end))continue;e.push({start:t,end:i})}}if(e.length===0)return o;e.sort((s,p)=>s.start-p.start);let a="",c=0;for(let s of e){if(s.start<c)continue;a+=o.slice(c,s.start),a+=`@raw${o.slice(s.start,s.end)}@endraw`,c=s.end}return a+=o.slice(c),a}async function b(o,e={}){let{data:r,content:g}=or(o),c=await(e.renderer??((s)=>Ge(s)))(g);return{html:_(c),frontmatter:r??{}}}import{dirname as C,resolve as R}from"path";function k(o){let e=o,r=oe(o);if(r)e=r.content.trim();let g=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,a=[],c=[],s=[],p=(i)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(i),m;while((m=g.exec(o))!==null){let i=m[1],l=m[2],f=m[0],d=i.includes("server");if(p(l))s.push(f);else if(d)c.push(l);else a.push(f)}let t=e;{let i=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,l,f=[];while((l=i.exec(t))!==null){let d=l.index+l[0].length,x=t.indexOf("</script>",d);if(x===-1)continue;f.push({start:l.index,end:x+9}),i.lastIndex=x+9}for(let d=f.length-1;d>=0;d--)t=t.substring(0,f[d].start)+t.substring(f[d].end)}for(let i of a)t=t.replace(i,"");return{templateContent:t,serverScripts:c,clientScripts:a,signalsScripts:s}}function v(o,e){return`<!DOCTYPE html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>${(e||"stx").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
${o}
|
|
11
|
-
</body>
|
|
12
|
-
</html>`}async function ti(o,e={}){let r=R(o),g=Bun.file(r);if(!await g.exists())throw Error(`Template file not found: ${r}`);let a=await g.text(),c=null;if(h(r)){let s=await b(a,{renderer:e.markdownRenderer});a=s.html,c=s.frontmatter}if(c)e={...e,context:{...c,...e.context||{}}};if(e.layout){let s=R(e.layout),p=Bun.file(s);if(!await p.exists())throw Error(`Layout template not found: ${s}`);let{layout:m,injectCSS:t,...i}=e,l={...e.context||{}};Tn(l);let f=await S(a,r,{...i,context:{...l,__stx_defer_server_data:!0},injectCSS:!1}),d=await p.text(),x={...l,content:f},w={...i,context:x,injectCSS:t};return S(d,s,w)}return S(a,r,e)}async function S(o,e,r={}){let{templateContent:g,serverScripts:a,clientScripts:c}=k(o),s={...A,...r.options},p={__filename:e,__dirname:C(e),__stx:{},__stx_options:s,__stx_sfc_mode:!0,__stx_inject_css:r.injectCSS===!0,__stxServeContext:void 0,...ur(r.context??{}),definePageMeta:()=>{},...r.context||{}};for(let i of a)await u(i,p,e);let m=new Set,t=g;if(t=await n(t,p,e,s,m),wi(p,r.context),r.templateOnly){if(t=t.replace(/<script data-stx-scoped>[\s\S]*?<\/script>\s*/gi,""),t=t.replace(/<!-- stx SEO Tags -->[\s\S]*?(?=<)/i,""),c.length>0)t+=`
|
|
13
|
-
${c.join(`
|
|
14
|
-
`)}`}else{if(r.processClientScripts!==!1&&c.length>0){let i=p.__stx_event_bindings||[],l=Ce(p),d=(await Promise.all(c.map(async(w)=>{let y=w.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!y)return w;return await _e(y[1],{eventBindings:i,templateContent:t,serverData:l,filePath:e})}))).join(`
|
|
15
|
-
`);if(t.match(/(<\/body>)/i))t=t.replace(/(<\/body>)/i,`${d}
|
|
16
|
-
$1`);else t+=`
|
|
17
|
-
${d}`}t=await Q(t)}if(r.wrapInDocument){if(!t.trim().toLowerCase().startsWith("<!doctype")&&!t.trim().toLowerCase().startsWith("<html"))t=v(t,r.title)}if(r.injectCSS)try{let{injectCss:i}=await import("./chunk-meze7k8v.js");t=await i(t)}catch{}return t}
|
|
18
|
-
export{ti};
|
package/dist/chunk-a83r1xx9.js
DELETED
package/dist/chunk-abpeac2d.js
DELETED
package/dist/chunk-adzsqsjt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zr,Co,Kn,Hr,Vr,Xt,kt,_o,Xn,Jn,Ur,Wr,Cl,_l,Fe}from"./chunk-4vkpgz28.js";export{Fe as DeployError,Co as calculateSha1,Kn as collectDeployFiles,Jn as createDefaultNetlifyConfig,Hr as createFileManifest,zr as createNetlifyClient,Cl as deploy,Xn as detectProjectConfig,Vr as filterRequiredFiles,Xt as formatSize,_o as generateNetlifyToml,kt as getTotalSize,Wr as hasNetlifyConfig,_l as initNetlify,Ur as writeNetlifyConfig};
|
package/dist/chunk-b1ndskw9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ot,gs,ms,hs,Qu,ys}from"./chunk-yp8tk3v3.js";import"./chunk-j79f6syh.js";import"./chunk-fwawm5r3.js";import"./chunk-c4ysk7x2.js";export{ms as buildServerApi,Qu as createServerApi,Ot as discoverServerApi,gs as generateApiTypes,ys as isServerApiSource,hs as productionApiDispatcher};
|
package/dist/chunk-b7fp3zta.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{co,lo,pt,ee,Hn,Pr,Vn,Ir,Or,ll,ul,dl,Un,pl,fl,gl,ml,da,pa,fa,uo,ga,hl,ft,gt,mt,ht,yt,bt,De,yl}from"./chunk-c4ysk7x2.js";export{Vn as Router,gl as abortNavigation,Pr as bracketPathToRegex,ft as clearMiddleware,pa as createClientCookieManager,yt as createMiddlewareContext,ht as createRouteLocation,da as createServerCookieManager,fa as createStorageManager,ml as defineMiddleware,ul as defineRoute,dl as defineRoutes,Ir as findErrorPage,Or as formatRoutes,lo as generateRouteManifest,co as generateRouteTypes,ga as getMiddleware,gt as getMiddlewareNames,De as getRouterScript,yl as getRouterScriptDev,hl as hasMiddleware,pt as isFileRequestPath,mt as loadMiddlewareFromDirectory,Hn as matchRoute,fl as navigateTo,ee as patternToRegex,uo as registerMiddleware,pl as resetRoutes,Un as route,bt as runMiddleware,ll as setAppUrl};
|
package/dist/chunk-bgfkbesj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zr,Qr,es,Fa,ts,ns,za,rs,ss,zo,Ha}from"./chunk-camd8j1q.js";export{Zr as VideoProcessorCache,zo as analyzeVideo,Fa as clearVideoCache,ss as generateDASHManifest,rs as generateHLSManifest,ts as generatePoster,za as generateSpriteSheet,ns as generateThumbnails,Qr as getCachedVideoResult,Ha as processVideo,es as setCachedVideoResult};
|
package/dist/chunk-cy83yfy9.js
DELETED
package/dist/chunk-dbqb1a51.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ga,Ka,Xa,Ja,Ya,Za,Qa,ec,tc,nc,nu}from"./chunk-pak6ngv0.js";export{Ga as createIslandRegistry,nu as default,nc as generateIslandManifest,Xa as generatePartialHydrationCSS,Za as hydrateAll,Ya as hydrateByStrategy,Ja as hydrateIsland,Qa as isHydrated,ec as onHydrated,Ka as processPartialHydrationDirectives,tc as processStaticDirectives};
|
package/dist/chunk-e8t64hxk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{no,Ad,Pd,ea,Se,cl,Er,Id,Od,Nd,Dd,Md,Ld,jd,Bd,Fd}from"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";export{Ld as applyHead,Id as definePageMeta,no as getHead,Ad as getPageMeta,Se as mergeHeadConfigs,jd as processHeadDirective,Fd as processMetaDirective,Bd as processTitleDirective,Md as renderBodyAttrs,Nd as renderHead,Dd as renderHtmlAttrs,Pd as resetHead,Er as seoMetaToHeadConfig,ea as useHead,Od as usePageTitle,cl as useSeoMeta,Od as useTitle};
|
package/dist/chunk-e943xk88.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{os,ou,iu}from"./chunk-f3agc1a3.js";import"./chunk-fm80xpxn.js";import"./chunk-yp8tk3v3.js";import"./chunk-bsts9pr5.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{iu as clearComposableCache,ou as getComposableScript,os as listComposableModules};
|
package/dist/chunk-g039c67x.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nu,Wo,cc,Du,Mu,Lu,ju,Bu,lc,uc,Fu,zu,Hu,Vu}from"./chunk-3f4xy76k.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{cc as SUSPENSE_RESOLVER_RUNTIME,Wo as buildSuspenseResolveScript,Bu as createStreamRenderer,Lu as extractStreamBoundaries,Vu as generateHydrationRuntime,uc as islandDirective,zu as processSectionDirectives,Mu as processStreamDirectives,Fu as registerStreamingDirectives,Du as renderStreamingPage,Nu as streamTemplate,ju as streamTemplateSimple,Hu as streamToResponse,lc as streamingSuspenseDirective};
|
package/dist/chunk-ghfxfcr9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{En,Fc,Rs}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import{Oe}from"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Oe as freeIdentifiers,Rs as processComponents,Fc as processESImports,En as rendersAsElement};
|
package/dist/chunk-gvyq9xt6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Xs,Js,Ys,Zs,xr,Sr,_d,Ed,Td,$d,kr,Rd}from"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";export{Rd as generateDefaultRobotsTxt,kr as generateRobotsTxt,Ed as generateSitemap,Td as generateSitemapIndex,Zs as injectSeoTags,xr as metaDirective,Xs as processMetaDirectives,Ys as processSeoDirective,Js as processStructuredData,_d as registerSeoDirectives,$d as scanForSitemapEntries,Sr as structuredDataDirective};
|
package/dist/chunk-h30y9k44.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ia,Wl,Oa,Na,ql,Gl}from"./chunk-psranzfr.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Gl as applySlots,ql as extractSlotContent,Wl as parseSlotElement,Ia as parseSlots,Na as processSlots,Oa as renderSlot};
|
package/dist/chunk-hwp3m8a8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{et,Q,Fs,zs,n}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Q as injectRouterScript,n as processDirectives,Fs as processJsonDirective,zs as processOnceDirective,et as validateClientScript};
|
package/dist/chunk-jarptkbv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ya,Eo,ba,va,To,wa,xa,Sa,ka,$o,Ca,El}from"./chunk-y5b25eks.js";import{jo,Aa}from"./chunk-cdab66xt.js";import{F,z,H,Zt,te,ue,Zn,He,Ct,Qt,en,tn,V,nn,rn,Qn}from"./chunk-g9dz0mx9.js";import{ac}from"./chunk-b7hv69ty.js";import"./chunk-1d25z8q2.js";export{z as DEFAULT_FORMATS,H as DEFAULT_QUALITY,F as DEFAULT_WIDTHS,Qn as ImageProcessingError,va as clearImageCache,To as createImageDirective,Aa as createImageHandler,xa as createImagePlugin,El as defaultImageConfig,rn as formatSize,$o as generateImageManifest,Ct as generateSizes,He as generateSrcSet,Qt as getFallbackVariant,Zn as getImageMetadata,V as getMimeType,nn as getTotalSize,en as groupVariantsByFormat,jo as handleImageRequest,wa as imageDirective,te as isImageBackendAvailable,tn as isImageFile,Zt as isSharpAvailable,ka as optimizeDirectory,Sa as optimizeImage,Eo as parseImageComponent,ue as processImage,ba as processImageComponents,ya as renderImageComponent,ac as rewriteImagesWithSiblings,Ca as writeImageManifest};
|
package/dist/chunk-km4xp898.js
DELETED
package/dist/chunk-meze7k8v.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fd,bi,gd,vi,Dc,Mc,Bt,_n,md,Lc,jc,hd,f}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Bt as buildCss,Lc as extractClassNames,Mc as fingerprintConfig,jc as generateCss,md as getCachedCSS,fd as getCssServeAsset,f as injectCss,bi as loadCssEngine,vi as loadCssEngineConfig,_n as rebuildCss,gd as resetCssCache,Dc as resolveUserCssConfig,hd as withLinkedModuleBundles};
|
package/dist/chunk-mfwrxz9z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ar,Ec,td,Tc,nd,$c,cr,b,Lt,Ee,Rc,Ss,Ac,rd,Z,Pc,sd,x,od}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Pc as applyFilters,nd as clearCustomFilters,Rc as clientLoopScopes,ar as defaultFilters,b as escapeHtml,Lt as escapeHtmlValue,x as evaluateExpression,$c as findMustacheEnd,Tc as getAllFilters,Ac as interpolateScriptAttributes,Ss as interpolateScriptExpressions,rd as interpolateScriptsInTemplate,Z as processExpressions,Ec as registerFilter,td as registerFilters,cr as replaceInterpolations,sd as resetRejectedExpressionWarnings,od as unescapeHtml,Ee as usesSignalsInScript};
|
package/dist/chunk-mmpm1awz.js
DELETED
package/dist/chunk-n7vetrt4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Vl}from"./chunk-2efrxnnt.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{Vl as buildApp};
|
package/dist/chunk-nd716zha.js
DELETED
package/dist/chunk-ptjz4f2e.js
DELETED
package/dist/chunk-q4hmgj72.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ke,Ic,id,ad,cd,ld,Oc,Nc,ud,dd,yi,pd,xn,Sn,lr}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{ld as __setSignalsGeneratorsForTest,Ke as cacheEngineFingerprint,Sn as cacheTemplate,xn as checkCache,pd as clearDevCaches,Nc as getCachedRouterScript,Oc as getCachedSignalsRuntime,ud as getServeClientAsset,yi as getServeModuleBundle,lr as hashFilePath,ad as invalidateFileCache,cd as invalidateFileCacheByDir,id as readFileCached,dd as registerServeModuleBundle,Ic as templateCache};
|
package/dist/chunk-q841b6x4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{kl}from"./chunk-npn3h566.js";import"./chunk-qjfgdcck.js";import"./chunk-yp8tk3v3.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{kl as startProductionServer};
|
package/dist/chunk-qnh5x7vv.js
DELETED
package/dist/chunk-qxjfvkjt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ma,ha}from"./chunk-qczse5w4.js";import"./chunk-a6hv03yw.js";import"./chunk-npn3h566.js";import"./chunk-4vkpgz28.js";import"./chunk-y5b25eks.js";import"./chunk-ytv0k9gy.js";import"./chunk-0tm9ep8b.js";import"./chunk-954tcahb.js";import{Ao}from"./chunk-qjfgdcck.js";import"./chunk-7vdcsr14.js";import"./chunk-cdab66xt.js";import"./chunk-2efrxnnt.js";import"./chunk-ymntav9f.js";import"./chunk-g9dz0mx9.js";import"./chunk-psranzfr.js";import"./chunk-e0nq8g9j.js";import"./chunk-camd8j1q.js";import"./chunk-sn0a8cjd.js";import"./chunk-baw176ay.js";import"./chunk-pak6ngv0.js";import"./chunk-emcbmr0r.js";import"./chunk-b7hv69ty.js";import"./chunk-f3agc1a3.js";import"./chunk-9gx5p7zh.js";import"./chunk-cjr8cpb7.js";import"./chunk-g9sdjgfw.js";import"./chunk-q0kbn64j.js";import"./chunk-14yjt309.js";import"./chunk-hbzk179w.js";import"./chunk-xdwpbqzz.js";import"./chunk-3f4xy76k.js";import"./chunk-97zrn4wb.js";import"./chunk-1d25z8q2.js";import"./chunk-mpb0ezee.js";import"./chunk-fm80xpxn.js";import"./chunk-yp8tk3v3.js";import"./chunk-bsts9pr5.js";import{_e,xn,Sn,Q,u,n,yr,A,o,be}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{yr as buildWebComponents,Sn as cacheTemplate,xn as checkCache,Ao as classifyAllScripts,ma as createMiddleware,ha as createRoute,A as defaultConfig,u as extractVariables,Q as injectRouterScript,o as loadStxConfig,_e as processClientScript,n as processDirectives,be as readMarkdownFile};
|
package/dist/chunk-rhhwz7e9.js
DELETED
package/dist/chunk-rpbe5h6v.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{u,Ns,Ii,Oi,Zc,Qc,el,tl,nl,Hs,rl,rt,B,st,sl,mr,ol,Li,Vs,ot,r,hr,ji,g,ie,Sd}from"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{ie as clearComponentCache,Vs as componentClientSignalNames,Ns as convertToCommonJS,g as createDetailedErrorMessage,nl as extractDirectiveNames,Ii as extractScriptFromTemplate,u as extractVariables,r as fileExists,Sd as getComponentCacheStats,Qc as getPositionInfo,B as getSharedTranspiler,ji as getSourceLineInfo,tl as hasDirectives,Oi as hasVariables,ol as isHydrateTrigger,rl as isJavaScriptScript,ot as renderComponentWithSlot,hr as resolveTemplatePath,sl as scopeOnRootElement,Hs as scopeSequenceKey,rt as shouldTranspileTypeScript,Li as slotContentHasExpressions,st as transpileTypeScript,mr as userComponentFileExists,el as validateDirective,Zc as validateTemplate};
|
package/dist/chunk-rrdn4qnn.js
DELETED
package/dist/chunk-s7c9kb53.js
DELETED
package/dist/chunk-sfj84n72.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yc,bc,pe,vc,ui,$t,Rt,Zu,di,At,yn,wc,xc,Sc,ps,Pt,kc,It,Cc}from"./chunk-fm80xpxn.js";import"./chunk-yp8tk3v3.js";import"./chunk-bsts9pr5.js";import"./chunk-7m5xrqnj.js";import"./chunk-bysyrwfa.js";import"./chunk-f30t1g74.js";import"./chunk-j79f6syh.js";import"./chunk-bk9bx2ns.js";import"./chunk-fwawm5r3.js";import"./chunk-1wb98s7b.js";import"./chunk-zpzk4wd2.js";import"./chunk-ptv5f34x.js";import"./chunk-ahyq08mp.js";import"./chunk-kk6tq07c.js";import"./chunk-c4ysk7x2.js";import"./chunk-ym0e374a.js";export{yn as MODULE_SPECIFIER_PREFIX,yc as bundleCacheDir,bc as bundleCacheEntryLimit,It as bundleClientScript,Rt as clearBundleFailures,pe as clientBundleDependencies,$t as getBundleFailures,At as hasUserImports,Pt as moduleSubstitutionKey,xc as normalizeRegistrySpecifiers,kc as queueClientBundleBuild,ui as recordBundleFailure,wc as registryIdForPath,di as resolveBundlerFallback,Sc as rewriteRegistryImports,Zu as setBundlerFallbackMode,vc as shouldLogBundlerDiagnostics,Cc as tempBuildName,ps as withModuleSubstitutes};
|