@stacksjs/stx 0.2.849 → 0.2.851
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-036pnz1y.js +2 -0
- package/dist/{chunk-rqjskxpw.js → chunk-0dnetjh8.js} +31 -31
- package/dist/{chunk-09412heg.js → chunk-0rszcb0m.js} +13 -13
- package/dist/chunk-1qdhwjs4.js +2 -0
- package/dist/{chunk-z57xq46m.js → chunk-2d7e5g92.js} +4 -4
- package/dist/{chunk-wp14sf2j.js → chunk-2j2qzv8g.js} +1 -1
- package/dist/{chunk-nws4zm4k.js → chunk-2rg9pqmh.js} +4 -4
- package/dist/chunk-2vfhzn8m.js +2 -0
- package/dist/chunk-30y1dbcf.js +2 -0
- package/dist/chunk-3gyq9rjx.js +2 -0
- package/dist/chunk-3m3jny87.js +2 -0
- package/dist/chunk-3w9xhs7k.js +2 -0
- package/dist/chunk-3wt0nh3p.js +2 -0
- package/dist/{chunk-v929r67j.js → chunk-422eg7vs.js} +1 -1
- package/dist/{chunk-jh36gqcq.js → chunk-422r7zkx.js} +2 -2
- package/dist/{chunk-yqjmqndq.js → chunk-45yytzyd.js} +6 -6
- package/dist/chunk-4e6wkjtx.js +2 -0
- package/dist/{chunk-c7qej674.js → chunk-4jf18yed.js} +56 -56
- package/dist/chunk-5bbwdv4y.js +3 -0
- package/dist/{chunk-fx8jjasv.js → chunk-5gfg2tqg.js} +4 -4
- package/dist/chunk-5yy40vxk.js +2 -0
- package/dist/chunk-67bn31a3.js +2 -0
- package/dist/{chunk-ct54e34a.js → chunk-69kbw21c.js} +1 -1
- package/dist/{chunk-54p27ney.js → chunk-69nhstnz.js} +5 -5
- package/dist/{chunk-63sqdcr6.js → chunk-6dqafrq5.js} +9 -9
- package/dist/chunk-6ekgf3b3.js +2 -0
- package/dist/{chunk-y1cneng3.js → chunk-6p62jjzm.js} +2 -2
- package/dist/chunk-6rk18x14.js +2 -0
- package/dist/chunk-7hnt9a2e.js +2 -0
- package/dist/{chunk-jmshgw0t.js → chunk-7hv190bd.js} +4 -4
- package/dist/chunk-80bb89fh.js +2 -0
- package/dist/{chunk-he9dzchk.js → chunk-833y1ndd.js} +1 -1
- package/dist/{chunk-93c08def.js → chunk-88392kaj.js} +5 -5
- package/dist/{chunk-t4dkcf28.js → chunk-8cvgm13s.js} +2 -2
- package/dist/chunk-8k6cd1e0.js +2 -0
- package/dist/chunk-8qqrrbap.js +2 -0
- package/dist/chunk-8spe7avc.js +2 -0
- package/dist/{chunk-2ts9pb6s.js → chunk-8vjr3atq.js} +2 -2
- package/dist/chunk-8wnkh2ss.js +2 -0
- package/dist/chunk-93kdj0t4.js +2 -0
- package/dist/chunk-9frv1kpd.js +2 -0
- package/dist/chunk-9pzbesp6.js +2 -0
- package/dist/{chunk-yrmppd8r.js → chunk-a2fngjfx.js} +1 -1
- package/dist/chunk-a7v1j7td.js +2 -0
- package/dist/{chunk-zfb2wnha.js → chunk-aas25pac.js} +3 -3
- package/dist/chunk-acbx3jn5.js +2 -0
- package/dist/{chunk-0wms5teg.js → chunk-agbkv9ab.js} +2 -2
- package/dist/{chunk-wdwx2aa6.js → chunk-amerebya.js} +2 -2
- package/dist/{chunk-b1q40vq4.js → chunk-anva219c.js} +2 -2
- package/dist/chunk-apq33h4w.js +2 -0
- package/dist/{chunk-tj533808.js → chunk-ark6w80h.js} +2 -2
- package/dist/{chunk-trgbdydw.js → chunk-axga9ebe.js} +2 -2
- package/dist/chunk-c90qz5w0.js +2 -0
- package/dist/{chunk-4fc8zs15.js → chunk-caehra7e.js} +5 -5
- package/dist/chunk-cct2fzth.js +42 -0
- package/dist/chunk-cwt26rvt.js +3 -0
- package/dist/chunk-dx31vsyf.js +2 -0
- package/dist/{chunk-0zgxxhvs.js → chunk-dy31f39m.js} +5 -5
- package/dist/{chunk-jaf44web.js → chunk-e105xsee.js} +1 -1
- package/dist/{chunk-8vkywnpx.js → chunk-e6qam3x3.js} +7 -7
- package/dist/{chunk-2j3gttzf.js → chunk-e85wsz8y.js} +1 -1
- package/dist/{chunk-tbcvarvy.js → chunk-e9qgyvz5.js} +2 -2
- package/dist/chunk-evyspfm5.js +2 -0
- package/dist/{chunk-rtsshvpt.js → chunk-eyp7rr70.js} +52 -52
- package/dist/{chunk-gpkxphqz.js → chunk-ezzskm4a.js} +2 -2
- package/dist/chunk-f4x21pqx.js +2 -0
- package/dist/{chunk-6xcmeev9.js → chunk-f5n871gp.js} +5 -5
- package/dist/{chunk-81ysx0tc.js → chunk-fffjjgnt.js} +2 -2
- package/dist/chunk-fj18grh2.js +2 -0
- package/dist/{chunk-wzyc9da7.js → chunk-frhdk0p9.js} +2 -2
- package/dist/chunk-frhh6jd3.js +2 -0
- package/dist/{chunk-b3n1m4m5.js → chunk-g046t3hb.js} +1 -1
- package/dist/chunk-g1gqysb4.js +2 -0
- package/dist/{chunk-emf6ee94.js → chunk-gsrdjmw9.js} +2 -2
- package/dist/{chunk-r96ahk8s.js → chunk-gwdffrz6.js} +9 -9
- package/dist/chunk-h7rcb74n.js +2 -0
- package/dist/{chunk-jcwtw3hd.js → chunk-h9gjt73q.js} +2 -2
- package/dist/{chunk-ke76eaat.js → chunk-hdep0xcy.js} +6 -6
- package/dist/chunk-htsqfx9m.js +2 -0
- package/dist/chunk-j3x3e353.js +2 -0
- package/dist/{chunk-88a7qaw8.js → chunk-j5pgwqwp.js} +3 -3
- package/dist/chunk-j882bpqq.js +2 -0
- package/dist/{chunk-rwc322gq.js → chunk-j8f4tb4p.js} +2 -2
- package/dist/chunk-jxzcwjx4.js +2 -0
- package/dist/chunk-k1pyzf9e.js +2 -0
- package/dist/{chunk-eg2p1cyw.js → chunk-k47addf7.js} +29 -29
- package/dist/{chunk-qpz9jrvw.js → chunk-k7dvn2r8.js} +2 -2
- package/dist/{chunk-fa3ygt8c.js → chunk-kd06c90f.js} +4 -4
- package/dist/chunk-kf5fsz9b.js +3 -0
- package/dist/chunk-knapnbwv.js +2 -0
- package/dist/{chunk-9sjtph54.js → chunk-krtkxnz6.js} +2 -2
- package/dist/{chunk-25m74mh1.js → chunk-m05pqmcj.js} +5 -5
- package/dist/chunk-m276y4f3.js +2 -0
- package/dist/{chunk-cww1zk8y.js → chunk-m710wkr4.js} +1 -1
- package/dist/{chunk-3m5v3ynh.js → chunk-m9kkd9f2.js} +3 -3
- package/dist/{chunk-y6wbbmp3.js → chunk-ngdye54z.js} +3 -3
- package/dist/{chunk-b147ejha.js → chunk-nqv66ehx.js} +3 -3
- package/dist/chunk-p2gsezmj.js +2 -0
- package/dist/{chunk-ynnd6nnt.js → chunk-p4ytnee6.js} +105 -102
- package/dist/chunk-p9sbpbhg.js +2 -0
- package/dist/chunk-pg2dxnry.js +2 -0
- package/dist/{chunk-3qyz80d6.js → chunk-pkq96sqk.js} +6 -6
- package/dist/chunk-q2d8x7p1.js +2 -0
- package/dist/{chunk-xr9rf0e6.js → chunk-q5rw0d2m.js} +3 -3
- package/dist/{chunk-tm5t3hh3.js → chunk-qa4vs1qg.js} +3 -3
- package/dist/{chunk-jm0qsr3s.js → chunk-qev14f76.js} +6 -6
- package/dist/{chunk-tb5h85ag.js → chunk-qjc3qjyf.js} +2 -2
- package/dist/{chunk-1k12cc65.js → chunk-qk2herh9.js} +13 -13
- package/dist/{chunk-qay7pgnq.js → chunk-r0k5jbvk.js} +1 -1
- package/dist/{chunk-bttvkzxh.js → chunk-s0pnyd2f.js} +6 -6
- package/dist/{chunk-dv9q56r7.js → chunk-s37af6rd.js} +2 -2
- package/dist/{chunk-2xf323h9.js → chunk-scaawv2r.js} +3 -3
- package/dist/{chunk-c541s99z.js → chunk-t23jn83r.js} +4 -4
- package/dist/{chunk-fez9828r.js → chunk-t74qb5ej.js} +3 -3
- package/dist/{chunk-bsw6hd14.js → chunk-taf784yy.js} +2 -2
- package/dist/chunk-tdtwqydq.js +2 -0
- package/dist/{chunk-ga650crj.js → chunk-tm1ec751.js} +9 -9
- package/dist/{chunk-f2zgh4xr.js → chunk-tr5r70yr.js} +12 -12
- package/dist/chunk-ty915d4h.js +2 -0
- package/dist/{chunk-46t924aw.js → chunk-v4bqmzj9.js} +2 -2
- package/dist/chunk-vk9zpckc.js +2 -0
- package/dist/chunk-vvr19nq7.js +2 -0
- package/dist/{chunk-ema1c29k.js → chunk-w032x0zm.js} +2 -2
- package/dist/chunk-wjf69hmc.js +2 -0
- package/dist/{chunk-90mm5bf8.js → chunk-wn8qkcaw.js} +4 -4
- package/dist/{chunk-mnncq81c.js → chunk-wtahqbxe.js} +8 -8
- package/dist/{chunk-ma9yq04p.js → chunk-wzv7k91a.js} +2 -2
- package/dist/chunk-x4077p94.js +2 -0
- package/dist/chunk-x9a2agqk.js +2 -0
- package/dist/{chunk-83dxfhkw.js → chunk-xj5jdy7n.js} +7 -7
- package/dist/{chunk-9qxx2teq.js → chunk-xndr2dx9.js} +6 -6
- package/dist/chunk-xsavnbkv.js +2 -0
- package/dist/{chunk-k7e3e149.js → chunk-xz4yq7gh.js} +102 -102
- package/dist/chunk-ydjy26ch.js +2 -0
- package/dist/{chunk-k44qj40k.js → chunk-ym5qgw03.js} +2 -2
- package/dist/{chunk-8bxws458.js → chunk-yvfzvygh.js} +3 -3
- package/dist/chunk-yx37mvy7.js +2 -0
- package/dist/chunk-yza0mj53.js +20 -0
- package/dist/{chunk-na1x46xm.js → chunk-z0qfspzg.js} +3 -3
- package/dist/chunk-z278w3cb.js +2 -0
- package/dist/chunk-z33esms3.js +3 -0
- package/dist/{chunk-9mbyhepc.js → chunk-zjm67zx2.js} +5 -5
- package/dist/chunk-znfzh6fm.js +2 -0
- package/dist/chunk-zwy89pzx.js +2 -0
- package/dist/chunk-zz1n2ake.js +2 -0
- package/dist/cli.js +20 -20
- package/dist/component-renderer.d.ts +1 -0
- package/dist/component-renderer.js +28 -4
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/pwa.js +3 -3
- package/dist/safe-evaluator.d.ts +10 -0
- package/dist/safe-evaluator.js +24 -5
- package/dist/server-bindings.d.ts +11 -0
- package/dist/server-bindings.js +27 -0
- package/dist/ssg.js +15 -15
- package/dist/stx-virtual-ts.d.ts +38 -0
- package/dist/stx-virtual-ts.js +132 -5
- package/dist/typecheck.d.ts +1 -1
- package/dist/typecheck.js +5 -4
- package/package.json +5 -5
- package/dist/chunk-056rsqc6.js +0 -20
- package/dist/chunk-0d4zhbjz.js +0 -2
- package/dist/chunk-0ey7kc6t.js +0 -3
- package/dist/chunk-11snc6n0.js +0 -2
- package/dist/chunk-1menbxwb.js +0 -2
- package/dist/chunk-1pf4y2yr.js +0 -2
- package/dist/chunk-2sxmmjt1.js +0 -2
- package/dist/chunk-34afrhts.js +0 -2
- package/dist/chunk-37bzsnr7.js +0 -2
- package/dist/chunk-3m6n90sk.js +0 -2
- package/dist/chunk-4q4mtrc5.js +0 -2
- package/dist/chunk-5bm8hmwd.js +0 -2
- package/dist/chunk-5r2z29n8.js +0 -2
- package/dist/chunk-660preb9.js +0 -2
- package/dist/chunk-6hd83cj4.js +0 -2
- package/dist/chunk-740njbwc.js +0 -2
- package/dist/chunk-77fs8281.js +0 -2
- package/dist/chunk-7c73t536.js +0 -2
- package/dist/chunk-84gg2atb.js +0 -2
- package/dist/chunk-86z8zrn9.js +0 -3
- package/dist/chunk-9c6yvh3p.js +0 -2
- package/dist/chunk-9f0pv6sz.js +0 -2
- package/dist/chunk-9fxeqf0e.js +0 -2
- package/dist/chunk-atsjexk0.js +0 -2
- package/dist/chunk-bcefawtc.js +0 -2
- package/dist/chunk-bkqqa8aw.js +0 -2
- package/dist/chunk-bmds786f.js +0 -2
- package/dist/chunk-c0azgkss.js +0 -2
- package/dist/chunk-cbz7jtzf.js +0 -2
- package/dist/chunk-e1n286mv.js +0 -2
- package/dist/chunk-evdskc25.js +0 -2
- package/dist/chunk-f8akfzzn.js +0 -2
- package/dist/chunk-f8wmxwa3.js +0 -2
- package/dist/chunk-fseqwysr.js +0 -2
- package/dist/chunk-gg48cgx3.js +0 -2
- package/dist/chunk-h8zb6cek.js +0 -2
- package/dist/chunk-hc4ydhw0.js +0 -2
- package/dist/chunk-j08r18x1.js +0 -2
- package/dist/chunk-j539dz72.js +0 -2
- package/dist/chunk-jqngvqby.js +0 -2
- package/dist/chunk-k33kgf8a.js +0 -2
- package/dist/chunk-kz7ha54c.js +0 -2
- package/dist/chunk-m7cbkrz6.js +0 -2
- package/dist/chunk-md8dj6tb.js +0 -2
- package/dist/chunk-na1v2jcy.js +0 -2
- package/dist/chunk-p2fkggw4.js +0 -3
- package/dist/chunk-pqqyjvq9.js +0 -2
- package/dist/chunk-q18508s2.js +0 -2
- package/dist/chunk-qczgdzjk.js +0 -2
- package/dist/chunk-r40g6785.js +0 -2
- package/dist/chunk-r6085mp4.js +0 -2
- package/dist/chunk-rke4q3jk.js +0 -2
- package/dist/chunk-rrnvbwac.js +0 -2
- package/dist/chunk-shnw9geh.js +0 -42
- package/dist/chunk-te1wksa0.js +0 -2
- package/dist/chunk-v11hvvxc.js +0 -2
- package/dist/chunk-vasvns9e.js +0 -2
- package/dist/chunk-vdb3p2v3.js +0 -2
- package/dist/chunk-vm2y05sr.js +0 -2
- package/dist/chunk-x2wn6mpd.js +0 -2
- package/dist/chunk-x45mp78q.js +0 -2
- package/dist/chunk-xa2qfe51.js +0 -3
- package/dist/chunk-xsmyhp5f.js +0 -2
- package/dist/chunk-zecffe6a.js +0 -2
package/dist/stx-virtual-ts.d.ts
CHANGED
|
@@ -163,6 +163,37 @@ export declare function splitTopLevelImports(code: string): { imports: string, b
|
|
|
163
163
|
* across, not just its name.
|
|
164
164
|
*/
|
|
165
165
|
export declare function extractTypeDeclarations(code: string): Array<{ name: string, text: string }>;
|
|
166
|
+
/**
|
|
167
|
+
* Top-level statements that bind a component's props: `const { a } =
|
|
168
|
+
* defineProps<Props>()`, with or without `withDefaults(...)` around the call.
|
|
169
|
+
*
|
|
170
|
+
* A prop is a server value as far as a script interpolation is concerned. The
|
|
171
|
+
* renderer resolves `{{ issueId }}` in a `<script client>` block against the
|
|
172
|
+
* component's props and writes the JSON literal in, wherever the props were
|
|
173
|
+
* declared -- and they are usually declared in a bare `<script>`, which is not
|
|
174
|
+
* a server block. Interpolations were inferred in the server block's scope
|
|
175
|
+
* only, so that documented pattern failed the gate with "Cannot find name" on
|
|
176
|
+
* code that renders correctly, and projects answered with a type-only
|
|
177
|
+
* `declare const` beside the mustache (stacksjs/stx#2180).
|
|
178
|
+
*
|
|
179
|
+
* Only the binding statement is carried across, not the block: a bare script
|
|
180
|
+
* is client code, and its signals and helpers are NOT available to an
|
|
181
|
+
* interpolation, so lifting the whole body would turn real "Cannot find name"
|
|
182
|
+
* errors into silence.
|
|
183
|
+
*/
|
|
184
|
+
export declare function extractPropsDeclarations(code: string): string[];
|
|
185
|
+
/**
|
|
186
|
+
* The code a script interpolation is inferred against: the server blocks, plus
|
|
187
|
+
* the props a non-server block declares (see extractPropsDeclarations) and the
|
|
188
|
+
* types that declaration names.
|
|
189
|
+
*
|
|
190
|
+
* A server block that binds props itself already has them, and a type it
|
|
191
|
+
* declares under the same name wins, so neither is declared twice in the
|
|
192
|
+
* scope. Kept separate from the server code the payload and bridge checks
|
|
193
|
+
* read: those are about what a server block PUBLISHES, and a prop is not
|
|
194
|
+
* something it publishes.
|
|
195
|
+
*/
|
|
196
|
+
export declare function interpolationScopeCode(blocks: readonly ScriptBlock[]): string;
|
|
166
197
|
export declare function clientPayloadDeclarations(serverCode: string, clientCode?: string): string;
|
|
167
198
|
/**
|
|
168
199
|
* Declarations at the TOP LEVEL of a block, ignoring anything nested.
|
|
@@ -175,6 +206,13 @@ export declare function clientPayloadDeclarations(serverCode: string, clientCode
|
|
|
175
206
|
*
|
|
176
207
|
* Nested braces are blanked first, so only depth-zero declarations survive to
|
|
177
208
|
* be matched by the shared patterns.
|
|
209
|
+
*
|
|
210
|
+
* A destructuring pattern is brackets too, and its names ARE top-level:
|
|
211
|
+
* `const { say, email } = setup()` declares two. Blanking it with everything
|
|
212
|
+
* else declared none, so a screen that builds its state in one function and
|
|
213
|
+
* destructures the result had no names of its own, and an app-wide global
|
|
214
|
+
* called `say` then claimed every prop bound to `say(...)` for the build. The
|
|
215
|
+
* pattern is read before it is blanked.
|
|
178
216
|
*/
|
|
179
217
|
export declare function collectTopLevelDeclarations(code: string): string[];
|
|
180
218
|
/**
|
package/dist/stx-virtual-ts.js
CHANGED
|
@@ -575,6 +575,54 @@ export function extractTypeDeclarations(code) {
|
|
|
575
575
|
}
|
|
576
576
|
return found;
|
|
577
577
|
}
|
|
578
|
+
export function extractPropsDeclarations(code) {
|
|
579
|
+
const searchable = stripCommentsAndLiterals(code), found = [], start = /^[ \t]*(?:export[ \t]+)?(?:const|let|var)[ \t]+/gm;
|
|
580
|
+
let match, depth = 0, scanned = 0;
|
|
581
|
+
while ((match = start.exec(searchable)) !== null) {
|
|
582
|
+
for (;scanned < match.index; scanned++) {
|
|
583
|
+
const c = searchable[scanned];
|
|
584
|
+
if (c === "{" || c === "(" || c === "[")
|
|
585
|
+
depth++;
|
|
586
|
+
else if (c === "}" || c === ")" || c === "]")
|
|
587
|
+
depth = Math.max(0, depth - 1);
|
|
588
|
+
}
|
|
589
|
+
if (depth !== 0)
|
|
590
|
+
continue;
|
|
591
|
+
let nesting = 0, end = searchable.length;
|
|
592
|
+
for (let i = match.index + match[0].length;i < searchable.length; i++) {
|
|
593
|
+
const c = searchable[i];
|
|
594
|
+
if (c === "{" || c === "(" || c === "[")
|
|
595
|
+
nesting++;
|
|
596
|
+
else if (c === "}" || c === ")" || c === "]")
|
|
597
|
+
nesting--;
|
|
598
|
+
else if (nesting <= 0 && (c === ";" || c === `
|
|
599
|
+
`)) {
|
|
600
|
+
end = c === ";" ? i + 1 : i;
|
|
601
|
+
break;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
if (/\bdefineProps\s*(?:<|\()/.test(searchable.slice(match.index, end)))
|
|
605
|
+
found.push(code.slice(match.index, end).replace(/^[ \t]*export[ \t]+/, "").trim());
|
|
606
|
+
}
|
|
607
|
+
return found;
|
|
608
|
+
}
|
|
609
|
+
export function interpolationScopeCode(blocks) {
|
|
610
|
+
const serverCode = blocks.filter((block) => block.kind === "server").map((block) => block.code).join(`
|
|
611
|
+
`);
|
|
612
|
+
if (/\bdefineProps\s*(?:<|\()/.test(stripCommentsAndLiterals(serverCode)))
|
|
613
|
+
return serverCode;
|
|
614
|
+
const serverTypes = declaredTypeNames(serverCode), propsScope = blocks.filter((block) => block.kind !== "server").flatMap((block) => {
|
|
615
|
+
const props = extractPropsDeclarations(block.code);
|
|
616
|
+
if (!props.length)
|
|
617
|
+
return [];
|
|
618
|
+
return [
|
|
619
|
+
...extractTypeDeclarations(block.code).filter((entry) => !serverTypes.has(entry.name)).map((entry) => entry.text),
|
|
620
|
+
...props
|
|
621
|
+
];
|
|
622
|
+
});
|
|
623
|
+
return [serverCode, ...propsScope].filter(Boolean).join(`
|
|
624
|
+
`);
|
|
625
|
+
}
|
|
578
626
|
function declaredTypeNames(code) {
|
|
579
627
|
return new Set(extractTypeDeclarations(code).map((entry) => entry.name));
|
|
580
628
|
}
|
|
@@ -607,11 +655,19 @@ export function clientPayloadDeclarations(serverCode, clientCode = "") {
|
|
|
607
655
|
`);
|
|
608
656
|
}
|
|
609
657
|
export function collectTopLevelDeclarations(code) {
|
|
610
|
-
const
|
|
611
|
-
let depth = 0;
|
|
658
|
+
const source = stripCommentsAndLiterals(code), chars = source.split(""), destructured = [];
|
|
659
|
+
let depth = 0, lineStart = 0;
|
|
612
660
|
for (let i = 0;i < chars.length; i++) {
|
|
613
661
|
const c = chars[i];
|
|
662
|
+
if (c === `
|
|
663
|
+
`)
|
|
664
|
+
lineStart = i + 1;
|
|
614
665
|
if (c === "{" || c === "(" || c === "[") {
|
|
666
|
+
if (depth === 0 && c !== "(" && DESTRUCTURING_HEAD_RE.test(source.slice(lineStart, i))) {
|
|
667
|
+
const end = matchingBracket(source, i);
|
|
668
|
+
if (end !== -1)
|
|
669
|
+
destructured.push(...bindingPatternNames(source.slice(i, end + 1)));
|
|
670
|
+
}
|
|
615
671
|
depth++;
|
|
616
672
|
continue;
|
|
617
673
|
}
|
|
@@ -623,7 +679,79 @@ export function collectTopLevelDeclarations(code) {
|
|
|
623
679
|
`)
|
|
624
680
|
chars[i] = " ";
|
|
625
681
|
}
|
|
626
|
-
|
|
682
|
+
const names = collectBlockDeclarations(chars.join(""));
|
|
683
|
+
return destructured.length === 0 ? names : [...new Set([...names, ...destructured])].sort();
|
|
684
|
+
}
|
|
685
|
+
const DESTRUCTURING_HEAD_RE = /^\s*(?:export\s+)?(?:const|let|var)\s*$/;
|
|
686
|
+
function matchingBracket(source, open) {
|
|
687
|
+
let depth = 0;
|
|
688
|
+
for (let i = open;i < source.length; i++) {
|
|
689
|
+
const c = source[i];
|
|
690
|
+
if (c === "{" || c === "(" || c === "[")
|
|
691
|
+
depth++;
|
|
692
|
+
else if (c === "}" || c === ")" || c === "]")
|
|
693
|
+
depth--;
|
|
694
|
+
if (depth === 0)
|
|
695
|
+
return i;
|
|
696
|
+
}
|
|
697
|
+
return -1;
|
|
698
|
+
}
|
|
699
|
+
function splitAtTopLevelCommas(text) {
|
|
700
|
+
const parts = [];
|
|
701
|
+
let depth = 0, start = 0;
|
|
702
|
+
for (let i = 0;i < text.length; i++) {
|
|
703
|
+
const c = text[i];
|
|
704
|
+
if (c === "{" || c === "(" || c === "[")
|
|
705
|
+
depth++;
|
|
706
|
+
else if (c === "}" || c === ")" || c === "]")
|
|
707
|
+
depth--;
|
|
708
|
+
else if (c === "," && depth === 0) {
|
|
709
|
+
parts.push(text.slice(start, i));
|
|
710
|
+
start = i + 1;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
parts.push(text.slice(start));
|
|
714
|
+
return parts;
|
|
715
|
+
}
|
|
716
|
+
function firstTopLevelSeparator(text) {
|
|
717
|
+
let depth = 0;
|
|
718
|
+
for (let i = 0;i < text.length; i++) {
|
|
719
|
+
const c = text[i];
|
|
720
|
+
if (c === "{" || c === "(" || c === "[")
|
|
721
|
+
depth++;
|
|
722
|
+
else if (c === "}" || c === ")" || c === "]")
|
|
723
|
+
depth--;
|
|
724
|
+
else if (depth === 0 && (c === ":" || c === "="))
|
|
725
|
+
return { index: i, char: c };
|
|
726
|
+
}
|
|
727
|
+
return null;
|
|
728
|
+
}
|
|
729
|
+
function bindingPatternNames(pattern) {
|
|
730
|
+
const names = [], target = (text) => {
|
|
731
|
+
let entry = text.trim().replace(/^\.\.\./, "").trim();
|
|
732
|
+
if (entry.startsWith("{") || entry.startsWith("[")) {
|
|
733
|
+
const end = matchingBracket(entry, 0);
|
|
734
|
+
if (end !== -1)
|
|
735
|
+
names.push(...bindingPatternNames(entry.slice(0, end + 1)));
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
const separator = firstTopLevelSeparator(entry);
|
|
739
|
+
if (separator)
|
|
740
|
+
entry = entry.slice(0, separator.index).trim();
|
|
741
|
+
if (/^[A-Z_$][\w$]*$/i.test(entry))
|
|
742
|
+
names.push(entry);
|
|
743
|
+
}, inner = pattern.slice(1, -1);
|
|
744
|
+
for (const part of splitAtTopLevelCommas(inner)) {
|
|
745
|
+
if (!part.trim())
|
|
746
|
+
continue;
|
|
747
|
+
if (pattern[0] === "[") {
|
|
748
|
+
target(part);
|
|
749
|
+
continue;
|
|
750
|
+
}
|
|
751
|
+
const separator = firstTopLevelSeparator(part);
|
|
752
|
+
target(separator?.char === ":" ? part.slice(separator.index + 1) : part);
|
|
753
|
+
}
|
|
754
|
+
return names;
|
|
627
755
|
}
|
|
628
756
|
export function scrapedBridgeNames(serverCode, clientCode) {
|
|
629
757
|
if (extractClientPayloadNames(serverCode) !== null)
|
|
@@ -831,8 +959,7 @@ export function collectImportedNames(code) {
|
|
|
831
959
|
}
|
|
832
960
|
export function buildVirtualTypeScript(source, options = {}) {
|
|
833
961
|
const blocks = extractScriptBlocks(source), sourceLines = source.split(`
|
|
834
|
-
`), lines = Array.from({ length: sourceLines.length }, () => ""), lineMap = new Map, scriptColumns = new Map, importColumns = new Map, scriptDeclarations = [], serverCode = blocks
|
|
835
|
-
`), components = options.filePath && options.templateExpressions !== !1 ? componentContractChecks(source, maskNonTemplateRegions(source), {
|
|
962
|
+
`), lines = Array.from({ length: sourceLines.length }, () => ""), lineMap = new Map, scriptColumns = new Map, importColumns = new Map, scriptDeclarations = [], serverCode = interpolationScopeCode(blocks), components = options.filePath && options.templateExpressions !== !1 ? componentContractChecks(source, maskNonTemplateRegions(source), {
|
|
836
963
|
filePath: options.filePath,
|
|
837
964
|
componentsDir: options.componentsDir,
|
|
838
965
|
projectRoot: options.projectRoot,
|
package/dist/typecheck.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type { ScriptBlock, ScriptKind } from './stx-virtual-ts';
|
|
|
20
20
|
* against the file containing it — so without this, `../target` was looked for
|
|
21
21
|
* next to `.stx/typecheck/` (#1928).
|
|
22
22
|
*/
|
|
23
|
-
export declare function buildScriptVirtualFile(block: ScriptBlock, serverCode?: string, originDir?: string): VirtualFile;
|
|
23
|
+
export declare function buildScriptVirtualFile(block: ScriptBlock, serverCode?: string, originDir?: string, interpolationScope?: unknown): VirtualFile;
|
|
24
24
|
/** Compatibility string surface; checking also retains the source edit map. */
|
|
25
25
|
export declare function buildVirtualSource(block: ScriptBlock, serverCode?: string, originDir?: string): string;
|
|
26
26
|
/** Virtual path for a block, stable and traceable back to its origin. */
|
package/dist/typecheck.js
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
declaredGlobalNames,
|
|
18
18
|
firstLinePadding,
|
|
19
19
|
isTemplateArtefact,
|
|
20
|
+
interpolationScopeCode,
|
|
20
21
|
projectScriptInterpolations
|
|
21
22
|
} from "./stx-virtual-ts.js";
|
|
22
23
|
import { stxImportDiagnostics } from "./stx-module-imports.js";
|
|
@@ -25,9 +26,9 @@ export {
|
|
|
25
26
|
extractScriptBlocks,
|
|
26
27
|
extractTemplateExpressions
|
|
27
28
|
} from "./stx-virtual-ts.js";
|
|
28
|
-
export function buildScriptVirtualFile(block, serverCode = "", originDir = "") {
|
|
29
|
+
export function buildScriptVirtualFile(block, serverCode = "", originDir = "", interpolationScope = serverCode) {
|
|
29
30
|
const leadingNewlines = block.startLine > 1 ? `
|
|
30
|
-
`.repeat(block.startLine - 1) : "", projection = projectScriptInterpolations(firstLinePadding(block) + block.code,
|
|
31
|
+
`.repeat(block.startLine - 1) : "", projection = projectScriptInterpolations(firstLinePadding(block) + block.code, interpolationScope), code = blankScriptDirectives(projection.code), payload = block.kind === "client" || block.kind === "plain" ? clientPayloadDeclarations(serverCode, block.code) : "", lines = (leadingNewlines + code).split(`
|
|
31
32
|
`), sourceLineCount = lines.length, lineMap = new Map;
|
|
32
33
|
for (const declaration of projection.declarations)
|
|
33
34
|
for (const [index, text] of declaration.text.split(`
|
|
@@ -220,7 +221,7 @@ export async function typecheckStxFiles(files, options = {}) {
|
|
|
220
221
|
return checkServer;
|
|
221
222
|
return checkClient;
|
|
222
223
|
}), serverCode = extractScriptBlocks(source).filter((block) => block.kind === "server").map((block) => block.code).join(`
|
|
223
|
-
`);
|
|
224
|
+
`), interpolationScope = interpolationScopeCode(extractScriptBlocks(source));
|
|
224
225
|
for (const d of stxImportDiagnostics(source, blocks))
|
|
225
226
|
importDiagnostics.push({
|
|
226
227
|
file,
|
|
@@ -243,7 +244,7 @@ export async function typecheckStxFiles(files, options = {}) {
|
|
|
243
244
|
blockCount += blocks.length;
|
|
244
245
|
expressionCount += expressions;
|
|
245
246
|
blocks.forEach((block, i) => {
|
|
246
|
-
const virtual = buildScriptVirtualFile(block, serverCode, originDir);
|
|
247
|
+
const virtual = buildScriptVirtualFile(block, serverCode, originDir, interpolationScope);
|
|
247
248
|
virtualFiles.set(virtualPathFor(file, block.kind, i), {
|
|
248
249
|
virtual,
|
|
249
250
|
source: virtual.text,
|
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.851",
|
|
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.21",
|
|
130
130
|
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.
|
|
131
|
+
"@stacksjs/desktop": "0.2.851",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.851",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.851",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.851",
|
|
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-056rsqc6.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Se,Ot,fi,zs,Lc,jc,Bc,Fc,Hs,mi,zc,Hc,hi,wn}from"./chunk-ynnd6nnt.js";import{k}from"./chunk-0wms5teg.js";import{a}from"./chunk-rtsshvpt.js";import{ko}from"./chunk-y6wbbmp3.js";import{c}from"./chunk-p2fkggw4.js";import{existsSync as B,readFileSync as K}from"fs";import h from"path";var ge=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),ee=wn.filter((e)=>!ge.has(e)).sort(),te=[...k].sort(),he=[...new Set([...ee,...te])].sort(),be=new Set(ee),xe=new Set(te),ye=new Set(he),Y=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function ke(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ne(e,t){let s=[];for(let f of t){if(f.offset===void 0)continue;let i=f.kind==="server"?be:xe;Y.lastIndex=0;for(let p of f.code.matchAll(Y)){let g=p.index+p[0].indexOf("{")+1;for(let d of p[1].matchAll(/[^,]+/g)){let y=d[0];if(/^\s*type\s/.test(y))continue;let b=/^\s*([A-Za-z_$][\w$]*)/.exec(y);if(!b)continue;let r=b[1];if(!ye.has(r)||i.has(r))continue;let o=f.offset+g+d.index+b[0].length-r.length,u=e.slice(0,o),S=u.split(`
|
|
3
|
-
`).length;s.push({line:S,column:o-(u.lastIndexOf(`
|
|
4
|
-
`)+1)+1,offset:o,length:r.length,name:r,kind:f.kind,message:ke(r,f.kind)})}}}return s}import E from"path";var we="@stacksjs/stx-typescript-plugin";function $e(e,t){let s=E.resolve(e);for(;;){let f=E.join(s,"tsconfig.json");if(t(f))return f;let i=E.dirname(s);if(i===s)return;s=i}}function ie(e,t,s){let f=$e(e,s);if(!f)return;let i=new Set,p=(g)=>{if(i.has(g))return;i.add(g);let d=t(g);if(!d)return;let y=d.compilerOptions?.plugins;if(Array.isArray(y)){let r=y.find((u)=>u?.name===we),o=Array.isArray(r?.libs)?r.libs.filter((u)=>typeof u==="string"):[];return r?{configPath:g,libs:o.map((u)=>E.resolve(E.dirname(g),u))}:null}let b=typeof d.extends==="string"?[d.extends]:Array.isArray(d.extends)?d.extends:[];for(let r of[...b].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let o=E.resolve(E.dirname(g),r.endsWith(".json")?r:`${r}.json`),u=p(o);if(u!==void 0)return u}return};return p(f)??void 0}function da(e,t="",s=""){let f=e.startLine>1?`
|
|
5
|
-
`.repeat(e.startLine-1):"",i=fi(mi(e)+e.code,t),p=zs(i.code),g=e.kind==="client"||e.kind==="plain"?Bc(t,e.code):"",d=(f+p).split(`
|
|
6
|
-
`),y=d.length,b=new Map;for(let o of i.declarations)for(let[u,S]of o.text.split(`
|
|
7
|
-
`).entries())if(d.push(S),o.origin)b.set(d.length,{...o.origin,line:e.startLine+o.origin.line-1+u,column:u===0?o.origin.column:1});d.push(g,"export {}","");let r=Hs(d.join(`
|
|
8
|
-
`),s);return{text:r.code,sourceLineCount:y,lineMap:b,scriptColumns:new Map([...i.columns].map(([o,u])=>[o+e.startLine-1,u])),importColumns:r.columns}}function om(e,t="",s=""){return da(e,t,s).text}var ve=new Set(["name","status","length","location","history","origin","closed","close","open","focus","blur","print","scroll","scrollTo","scrollBy","stop","top","parent","self","frames","event","external","menubar","toolbar"]);function Te(e){if(e.length===0)return"";let t=["// Generated \u2014 the composables the runtime publishes as bare globals."],s=new Set(k),f=[];for(let{file:i,names:p}of e){let g=JSON.stringify(i.replace(/\\/g,"/").replace(/\.ts$/,""));f.push(` export * from ${g}`);for(let d of p){if(s.has(d)||ve.has(d))continue;s.add(d),t.push(`declare const ${d}: typeof import(${g})[${JSON.stringify(d)}]`)}}return t.push("declare module '@composables' {",...f,"}"),t.join(`
|
|
9
|
-
`)}function pa(e,t,s){return`${e}.__stx_${t}${s}.ts`}function im(e){return e.replace(/\.__stx_(?:server|client|plain|template)\d+\.ts$/,"")}function Vl(){return se("stx.d.ts")}function Ul(){return se("stx-module.d.ts")}function se(e){for(let t of[h.resolve(import.meta.dir,"..",e),h.resolve(import.meta.dir,"..","..",e)])if(B(t))return t;return null}var De=/^(.*?)\((\d+),(\d+)\):\s+(error|warning)\s+TS(\d+):\s+(.*)$/;function re(e){return e>=1000&&e<2000}function oe(e){let t="",s=!1,f=!1;for(let i=0;i<e.length;i++){let p=e[i];if(s){if(t+=p,f)f=!1;else if(p==="\\")f=!0;else if(p==='"')s=!1;continue}if(p==='"'){s=!0,t+=p;continue}if(p==="/"&&e[i+1]==="/"){while(i<e.length&&e[i]!==`
|
|
10
|
-
`)i++;t+=`
|
|
11
|
-
`;continue}if(p==="/"&&e[i+1]==="*"){i+=2;while(i<e.length&&!(e[i]==="*"&&e[i+1]==="/"))i++;i++;continue}t+=p}return t.replace(/,(\s*[}\]])/g,"$1")}function Ee(e){try{return JSON.parse(oe(K(e,"utf8")))}catch{return}}function Ne(e){let t=h.resolve(e),s;for(;;){let r=h.join(t,"tsconfig.json");if(B(r)){s=r;break}let o=h.dirname(t);if(o===t)break;t=o}if(!s)return{};let f=new Set,i=s,p,g,d=s;while(i&&!f.has(i)){f.add(i);let r;try{r=JSON.parse(oe(K(i,"utf8")))}catch{break}let o=r?.compilerOptions??{};if(!p&&o.paths&&typeof o.paths==="object")p=o.paths,d=i;if(!g&&typeof o.baseUrl==="string")g=h.resolve(h.dirname(i),o.baseUrl);if(p&&g)break;i=typeof r?.extends==="string"?h.resolve(h.dirname(i),r.extends.endsWith(".json")?r.extends:`${r.extends}.json`):void 0}if(!p)return{};let y=g??h.dirname(d),b={};for(let[r,o]of Object.entries(p)){if(!Array.isArray(o))continue;b[r]=o.map((u)=>typeof u==="string"&&!h.isAbsolute(u)?h.resolve(y,u):u)}return{paths:b}}async function am(e,t={}){let s=t.client!==!1,f=t.server!==!1,i=t.templates!==!1,p=t.componentsDir??(i?(await a()).componentsDir:void 0),g=new Map,d=new Map,y=[],b=[],r=0,o=0,u=Vl();for(let n of e){let l=await Bun.file(n).text(),x=Ot(l).filter((m)=>{if(m.kind==="server")return f;return s}),w=Ot(l).filter((m)=>m.kind==="server").map((m)=>m.code).join(`
|
|
12
|
-
`);for(let m of ne(l,x))y.push({file:n,line:m.line,column:m.column,code:0,message:m.message,category:"error",blockKind:m.kind});if(s&&w){let m=x.filter((v)=>v.kind!=="server"),O=[...new Set(m.flatMap((v)=>Fc(w,v.code)))];if(O.length>0)d.set(n,{names:O,line:m[0].startLine,kind:m[0].kind})}let N=h.dirname(h.resolve(n)),D=i?zc(l,{runtimeGlobals:!u,originDir:N,filePath:h.resolve(n),componentsDir:p}):null,R=D?[...D.lineMap.values()].filter((m)=>m.expression).length:0;if(x.length===0&&R===0)continue;if(b.push(n),r+=x.length,o+=R,x.forEach((m,O)=>{let v=da(m,w,N);g.set(pa(n,m.kind,O),{virtual:v,source:v.text,origin:n,kind:m.kind})}),D&&R>0)g.set(pa(n,"template",0),{source:D.text,origin:n,kind:"template",virtual:D})}if(g.size===0)return{diagnostics:y,checkedFiles:b,blockCount:0,expressionCount:0};let S=(t.extraLibs??[]).map((n)=>h.resolve(n)),ce=ie(e.length>0?h.dirname(h.resolve(e[0])):process.cwd(),Ee,B);for(let n of ce?.libs??[])if(!S.includes(n)&&B(n))S.push(n);if(u)S.push(u);let F=u?Ul():null;if(F)S.push(F);let G=`${c()}/typecheck/__stx_globals.d.ts`,ae=["// Generated \u2014 the context serve.ts injects into <script server> blocks.",Lc(u?jc(K(u,"utf8")):void 0),...u?[]:["declare const window: any",...k.map((n)=>`declare const ${n}: any`)],["// Generated \u2014 the names stx auto-imports from @stacksjs/browser.",...Se.map((n)=>`declare const ${n}: any`)].join(`
|
|
13
|
-
`),Te(await ko())].filter(Boolean).join(`
|
|
14
|
-
`),C=`${c()}/typecheck`;await Bun.$`rm -rf ${C}`.quiet().nothrow(),await Bun.$`mkdir -p ${C}`.quiet().nothrow(),await Bun.write(G,ae);let M=new Map,le=0;for(let[n,l]of g){let x=`${le++}_${n.replace(/[^\w.-]+/g,"_")}`;await Bun.write(`${C}/${x}`,l.source),M.set(x,l)}let ue={target:"ESNext",module:"ESNext",moduleResolution:"bundler",strict:!0,noEmit:!0,skipLibCheck:!0,allowJs:!0,esModuleInterop:!0,resolveJsonModule:!0,lib:["ESNext","DOM","DOM.Iterable"],types:[],...Ne(e.length>0?h.dirname(h.resolve(e[0])):process.cwd()),...t.compilerOptions??{}},V=async(n,l)=>{let x=`${C}/tsconfig${l===1?"":`.${l}`}.json`;await Bun.write(x,JSON.stringify({compilerOptions:ue,files:n.map((N)=>`${C}/${N}`).concat(G,...S)},null,2));let w=Bun.spawnSync(["bun","x","tsc","-p",x,"--pretty","false"],{stdout:"pipe",stderr:"pipe"});return{output:new TextDecoder().decode(w.stdout)+new TextDecoder().decode(w.stderr),exitCode:w.exitCode??0}},X=await V([...M.keys()],1),J=X.output,P=[],U=X.exitCode,W=0,pe=new Set(S.map((n)=>n.split("/").pop())),z=0,j=new Set,q=(n)=>{for(let l of n.replace(/\n[\t ]+([^\n]*)/g," $1").split(`
|
|
15
|
-
`)){let x=l.match(De);if(!x)continue;if(W++,pe.has(x[1].split("/").pop()))z++;let[,w,N,D,R,m,O]=x,v=w.split("/").pop(),T=M.get(v);if(!T)continue;if(re(Number(m)))j.add(v);let L=Number(N),A=Number(D),Q;if(T.virtual){let _=hi(T.virtual,L,A)??(T.kind!=="template"&&re(Number(m))?hi(T.virtual,T.virtual.sourceLineCount,1):null);if(!_||T.kind==="template"&&!_.expression)continue;if(Hc(_,Number(m)))continue;L=_.line,A=_.column,Q=_.expression?.code.trim()}P.push({file:T.origin,line:L,column:A,code:Number(m),message:O,category:R==="error"?"error":"warning",blockKind:T.kind,expression:Q})}};q(J);let de=W,fe=z;if(j.size>0&&j.size<M.size){let n=[...M.keys()].filter((l)=>!j.has(l));q((await V(n,2)).output)}if(s)for(let[n,l]of d){if(l.names.length===0)continue;P.push({file:n,line:l.line,column:1,code:0,message:`${l.names.length===1?"1 value reaches":`${l.names.length} values reach`} this block on the implicit bridge and ${l.names.length===1?"is":"are"} untyped: ${l.names.join(", ")}. Declare them with defineClientPayload({ ${l.names.join(", ")} }) in the server block to have them checked.`,category:"warning",blockKind:l.kind})}P.push(...y);let H=new Set,I=P.filter((n)=>{let l=`${n.file}:${n.line}:${n.column}:${n.code}:${n.message}`;if(H.has(l))return!1;return H.add(l),!0});I.sort((n,l)=>n.file.localeCompare(l.file)||n.line-l.line||n.column-l.column);let Z=fe>0&&I.length===0,me=Z||U!==0&&de===0?`${Z?"a file passed with --lib has errors of its own, so nothing in your code was checked":`tsc exited ${U} without reporting any diagnostic, so nothing was checked`}. `+"A syntax error in an ambient declaration file does this \u2014 skipLibCheck suppresses "+`SEMANTIC diagnostics only. tsc said:
|
|
16
|
-
${J.trim().split(`
|
|
17
|
-
`).slice(0,12).join(`
|
|
18
|
-
`)||"(no output)"}`:void 0;return{diagnostics:I,checkedFiles:b,blockCount:r,expressionCount:o,failure:me}}function cm(e){return e.map((t)=>{let s=t.blockKind==="template"?`[template: ${t.expression??""}]`:`[${t.blockKind==="plain"?"<script>":`<script ${t.blockKind}>`}]`;return`${t.file}:${t.line}:${t.column} ${t.category} TS${t.code} ${t.message} ${s}`}).join(`
|
|
19
|
-
`)}
|
|
20
|
-
export{da,om,pa,im,Vl,Ul,am,cm};
|
package/dist/chunk-0d4zhbjz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{um,dm,pm,fm,Wl,gm,mm,hm,ym,bm,wm,vm}from"./chunk-y1cneng3.js";export{wm as Broadcast,vm as BroadcastServer,Wl as broadcast,ym as broadcastPresence,hm as broadcastPrivate,bm as channel,um as getBroadcastServer,fm as loadChannels,dm as startBroadcasting,pm as stopBroadcasting,gm as toUser,mm as toUsers};
|
package/dist/chunk-0ey7kc6t.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dc,r,ge}from"./chunk-ynnd6nnt.js";import{rt}from"./chunk-car6nhfe.js";import{c}from"./chunk-p2fkggw4.js";import o from"fs";import l from"path";var Uf=new Map,m=new Map;async function Hh(e){let n;for(let i=0;i<3;i++)try{let g=(await o.promises.stat(e)).mtime.getTime(),a=m.get(e);if(a&&a.mtime===g)return a.content;let h=await Bun.file(e).text(),w=(await o.promises.stat(e)).mtime.getTime();if(w!==g)continue;return m.set(e,{content:h,mtime:w}),h}catch(s){n=s;break}throw m.delete(e),Error(`File not found: ${e}${n?` (${n.message})`:""}`)}function Vh(e){m.delete(e)}function Uh(e){for(let t of m.keys())if(t.startsWith(e))m.delete(t)}var f=null,B=null,x=null;function Wh(e){x=e}async function Wf(e=!1){let t=x??await import("./chunk-r6085mp4.js");if(e)return t.generateSignalsRuntimeDev();if(f===null)f=t.generateSignalsRuntime();return f}var S=null;async function qf(){if(S===null){let{getRouterScript:e}=await import("./chunk-f8wmxwa3.js");S=e()}return S}var y={};async function qh(e,t=!1){let n=e==="runtime"?await Wf(t):await qf(),i=e==="runtime"&&t?"runtime-debug":e,s=y[i];if(!s||s.content!==n)s={content:n,hash:Bun.hash(n).toString(16).padStart(16,"0").slice(0,16)},y[i]=s;return{content:n,hash:s.hash,url:`/_stx/${e}.${s.hash}.js`}}var E=500,T=33554432,u=new Map,p=0;function C(e){return c(process.cwd(),"module-bundles",`${e}.js`)}function Kh(e){let t=Bun.hash(e).toString(16).padStart(16,"0").slice(0,16),n=u.get(t),i=n!==void 0;if(i)u.delete(t),p-=n.length*2;u.set(t,e),p+=e.length*2;while(u.size>1&&(u.size>E||p>T)){let s=u.keys().next().value;p-=u.get(s).length*2,u.delete(s)}if(!i)try{let s=C(t);if(!o.existsSync(s))o.mkdirSync(l.dirname(s),{recursive:!0}),o.writeFileSync(s,e)}catch{}return`/_stx/modules.${t}.js`}function Qo(e){if(!/^[0-9a-f]{16}$/.test(e))return;let t=u.get(e);if(t!==void 0)return t;try{return o.readFileSync(C(e),"utf8")}catch{return}}function Xh(){m.clear(),ge(),Dc(),f=null,B=null,S=null}function v(e){let t={debug:e.debug===!0,middleware:(e.middleware??[]).map((n)=>({name:n.name,timing:n.timing,handler:String(n.handler)})),customDirectives:(e.customDirectives??[]).map((n)=>({name:n.name,hasEndTag:n.hasEndTag===!0,rawParams:n.rawParams===!0,handler:String(n.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(t)).digest("hex")}async function fr(e,t){try{if(!t.cachePath)return null;let n=l.resolve(t.cachePath),i=l.join(n,`${ks(e)}.html`),s=l.join(n,`${ks(e)}.meta.json`);if(!await r(i)||!await r(s))return null;let g=await Bun.file(s).text(),a=JSON.parse(g);if(a.cacheVersion!==t.cacheVersion)return null;if(a.engine!==rt())return null;if(a.optionsSignature!==v(t))return null;if((await o.promises.stat(e)).mtime.getTime()>a.mtime)return null;for(let d of a.dependencies)if(await r(d)){if((await o.promises.stat(d)).mtime.getTime()>a.mtime)return null}else return null;return await Bun.file(i).text()}catch(n){return console.warn(`Cache error for ${e}:`,n),null}}async function gr(e,t,n,i){try{if(!i.cachePath)return;let s=l.resolve(i.cachePath);await o.promises.mkdir(s,{recursive:!0});let g=l.join(s,`${ks(e)}.html`),a=l.join(s,`${ks(e)}.meta.json`),h=await o.promises.stat(e);await Bun.write(g,t);let d={sourcePath:e,mtime:h.mtime.getTime(),dependencies:Array.from(n),cacheVersion:i.cacheVersion,engine:rt(),optionsSignature:v(i),generatedAt:Date.now()};await Bun.write(a,JSON.stringify(d,null,2)),Uf.set(e,{output:t,mtime:h.mtime.getTime(),dependencies:n})}catch(s){console.warn(`Failed to cache template ${e}:`,s)}}var _=16;function ks(e){return new Bun.CryptoHasher("sha1").update(e).digest("hex").substring(0,_)}
|
|
3
|
-
export{Uf,Hh,Vh,Uh,Wh,Wf,qf,qh,Kh,Qo,Xh,fr,gr,ks};
|
package/dist/chunk-11snc6n0.js
DELETED
package/dist/chunk-1menbxwb.js
DELETED
package/dist/chunk-1pf4y2yr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bi,Fi,zi,jg,Bg,Fg,Rl,zg,Hg}from"./chunk-jaf44web.js";export{Bi as ImageProcessorCache,Rl as applyTransformations,jg as clearImageCache,zg as generateResponsiveVariants,Hg as generateSrcset,Fi as getCachedImageResult,Fg as optimizeImage,Bg as processImage,zi as setCachedImageResult};
|
package/dist/chunk-2sxmmjt1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zh,ys,Xo,bs,ur,Go,Jo,Hf,ws,vs,xs,Yo,gc,Vf,vt}from"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import{V}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Hf as bindLoopInterpolations,zh as clearScriptScanCache,ws as convertServerLoopAttributesToDirectives,Go as convertSignalDirectivesToAttributes,vs as convertSignalLoopsToAttributes,ur as extractClientSignalNames,V as extractExports,gc as findMarkupIndexOutsideScripts,bs as hasSignalsSyntax,Xo as parseLoopExpression,Jo as preEvalLiteralReactiveIfs,xs as processScriptSetup,Yo as processSignals,Vf as rewriteStxImportSpecifiers,ys as scanScriptTags,vt as stripStxRuntimeImports};
|
package/dist/chunk-34afrhts.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{em}from"./chunk-tbcvarvy.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{em as buildApp};
|
package/dist/chunk-37bzsnr7.js
DELETED
package/dist/chunk-3m6n90sk.js
DELETED
package/dist/chunk-4q4mtrc5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kl,Sm,Xl,Gl,km,_m}from"./chunk-tj533808.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{_m as applySlots,km as extractSlotContent,Sm as parseSlotElement,Kl as parseSlots,Gl as processSlots,Xl as renderSlot};
|
package/dist/chunk-5bm8hmwd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dl,ca,Ml,Ll,la,jl,Bl,Fl,zl,ua,Hl,sm}from"./chunk-6xcmeev9.js";import{wa,ql}from"./chunk-2ts9pb6s.js";import{ee,te,ne,jn,he,$e,Yr,mt,Jt,Bn,Fn,zn,re,Hn,Vn,Zr}from"./chunk-jh36gqcq.js";import{Yl}from"./chunk-81ysx0tc.js";import"./chunk-fez9828r.js";export{te as DEFAULT_FORMATS,ne as DEFAULT_QUALITY,ee as DEFAULT_WIDTHS,Zr as ImageProcessingError,Ll as clearImageCache,la as createImageDirective,ql as createImageHandler,Bl as createImagePlugin,sm as defaultImageConfig,Vn as formatSize,ua as generateImageManifest,Jt as generateSizes,mt as generateSrcSet,Bn as getFallbackVariant,Yr as getImageMetadata,re as getMimeType,Hn as getTotalSize,Fn as groupVariantsByFormat,wa as handleImageRequest,jl as imageDirective,he as isImageBackendAvailable,zn as isImageFile,jn as isSharpAvailable,zl as optimizeDirectory,Fl as optimizeImage,ca as parseImageComponent,$e as processImage,Ml as processImageComponents,Dl as renderImageComponent,Yl as rewriteImagesWithSiblings,Hl as writeImageManifest};
|
package/dist/chunk-5r2z29n8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Se,vi,xi,pg,Mt,Qc,fg,el,ny,Le,vn,je}from"./chunk-ynnd6nnt.js";import{al,s}from"./chunk-jm0qsr3s.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Se as BROWSER_CORE_IMPORTS,pg as STX_AUTO_IMPORTS,vi as extractAndStripCssImports,Le as extractBridgeData,al as findInterpolationEnd,el as generateAutoImportDestructuring,ny as generateBrowserAutoImportDestructuring,vn as generateServerDataBridge,Mt as injectBrowserCoreAutoImports,je as processClientScript,fg as referencesName,xi as renderVendorStyleTags,s as stripCommentsAndLiterals,Qc as transformAutoImports};
|
package/dist/chunk-660preb9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Il,Ol}from"./chunk-k7e3e149.js";import"./chunk-trgbdydw.js";import"./chunk-b147ejha.js";import"./chunk-tbcvarvy.js";import"./chunk-bsw6hd14.js";import"./chunk-r96ahk8s.js";import"./chunk-6xcmeev9.js";import"./chunk-056rsqc6.js";import"./chunk-3m5v3ynh.js";import"./chunk-ke76eaat.js";import"./chunk-y1cneng3.js";import"./chunk-2ts9pb6s.js";import"./chunk-2j3gttzf.js";import"./chunk-tj533808.js";import"./chunk-jh36gqcq.js";import"./chunk-81ysx0tc.js";import"./chunk-fa3ygt8c.js";import"./chunk-4fc8zs15.js";import"./chunk-9qxx2teq.js";import"./chunk-3qyz80d6.js";import"./chunk-8bxws458.js";import"./chunk-yqjmqndq.js";import"./chunk-tb5h85ag.js";import"./chunk-zfb2wnha.js";import"./chunk-93c08def.js";import"./chunk-25m74mh1.js";import"./chunk-9mbyhepc.js";import"./chunk-y6wbbmp3.js";import"./chunk-ga650crj.js";import"./chunk-jmshgw0t.js";import"./chunk-fez9828r.js";import"./chunk-tm5t3hh3.js";import{tn}from"./chunk-rwc322gq.js";import"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import{Ae,i}from"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import{ve}from"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import{fr,gr}from"./chunk-0ey7kc6t.js";import{Cs,F,a}from"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import{m,je}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";import"./chunk-jaf44web.js";import"./chunk-qpz9jrvw.js";export{Cs as buildWebComponents,gr as cacheTemplate,fr as checkCache,tn as classifyAllScripts,Il as createMiddleware,Ol as createRoute,F as defaultConfig,m as extractVariables,ve as injectRouterScript,a as loadStxConfig,je as processClientScript,i as processDirectives,Ae as readMarkdownFile};
|
package/dist/chunk-6hd83cj4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ri,si,oi,ii,$s,Rs,Yh,Zh,Qh,ey,As,ty}from"./chunk-09412heg.js";import"./chunk-eg2p1cyw.js";export{ty as generateDefaultRobotsTxt,As as generateRobotsTxt,Zh as generateSitemap,Qh as generateSitemapIndex,ii as injectSeoTags,$s as metaDirective,ri as processMetaDirectives,oi as processSeoDirective,si as processStructuredData,Yh as registerSeoDirectives,ey as scanForSitemapEntries,Rs as structuredDataDirective};
|
package/dist/chunk-740njbwc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pa,Ia,Oa,Na,Rh}from"./chunk-1k12cc65.js";import"./chunk-rqjskxpw.js";import"./chunk-jmshgw0t.js";import"./chunk-fez9828r.js";import"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Pa as buildNative,Rh as default,Ia as findCraftBinary,Na as getAvailableFormats,Oa as getAvailableTargets};
|
package/dist/chunk-77fs8281.js
DELETED
package/dist/chunk-7c73t536.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{tm}from"./chunk-bsw6hd14.js";import"./chunk-ke76eaat.js";import"./chunk-rwc322gq.js";import"./chunk-54p27ney.js";import"./chunk-xa2qfe51.js";import"./chunk-0zgxxhvs.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{tm as startProductionServer};
|
package/dist/chunk-84gg2atb.js
DELETED
package/dist/chunk-86z8zrn9.js
DELETED
package/dist/chunk-9c6yvh3p.js
DELETED
package/dist/chunk-9f0pv6sz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ef,Tf,ye,$f,ic,nn,rn,Ah,ac,sn,rr,Rf,Af,Pf,cs,on,If,an,cc,Ph}from"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{rr as MODULE_SPECIFIER_PREFIX,Ef as bundleCacheDir,Tf as bundleCacheEntryLimit,Ph as bundleClientEntriesSplit,an as bundleClientScript,rn as clearBundleFailures,ye as clientBundleDependencies,nn as getBundleFailures,sn as hasUserImports,on as moduleSubstitutionKey,Af as normalizeRegistrySpecifiers,If as queueClientBundleBuild,ic as recordBundleFailure,Rf as registryIdForPath,ac as resolveBundlerFallback,Pf as rewriteRegistryImports,Ah as setBundlerFallbackMode,$f as shouldLogBundlerDiagnostics,cc as tempBuildName,cs as withModuleSubstitutes};
|
package/dist/chunk-9fxeqf0e.js
DELETED
package/dist/chunk-atsjexk0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vu,$o,Yn,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Du,Mu,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd,sd,od,id,ad,cd,ld,ud,dd,Zt,Da,pd,fd,gd,Ma,md,hd,yd,bd,wd,vd,La,xd,Sd,kd,_d,Cd,Ed,Td,$d,Rd,Zn,Ad,Pd,Id,Od,Nd,Dd,Md,Ld,jd,Bd,Fd,zd,Ro,Hd,Vd,Ud,Wd,qd,rs,ss,Kd,Xd,Gd,Jd,Yd,ja,Zd,Qd,ep,Ba,Ao,tp,np,Fa,za,os,Ha,rp,Qt,sp,Va,Ua,Po,op,Io,ip,ap,cp,lp,up,dp,pp,Wa,fp,gp,qa,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Pp,Ip,Op,Np,Dp,Mp,Lp,jp,Ka,Bp,Fp,zp,Hp,Vp,Up,Wp,qp,Kp,Xp,Gp,Qn,Xa,Ga,Jp,er,Yp,Zp,Qp,Ja,Ya,is,as,ef,Oo,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,gf,mf,hf,yf,bf,wf,vf,xf,Za,Sf,kf,Qa,ec,_f,Cf}from"./chunk-rqjskxpw.js";export{ud as AVAILABLE_COMPONENTS,ja as AutoUpdater,dd as COMPONENT_STYLES,is as DEFAULT_WATCH_INTERVAL_MS,Ya as MAX_WATCH_INTERVAL_MS,Ja as MIN_WATCH_INTERVAL_MS,vd as MODAL_STYLES,Ru as TOAST_STYLES,Td as TRAY_MENU_STYLES,Fa as UPDATE_MANIFEST_ASSET,hd as alert,Dp as appInfo,af as appleScript,Cf as applicationDataDirectory,of as audio,kf as backgroundDelay,Pp as battery,sf as biometric,Xp as bluetooth,pf as bonjour,Qt as bundlePathForExecutable,op as caffeinate,Zd as canReplaceBundle,Qd as clearQuarantine,Sp as clipboard,wd as closeAllModals,zd as closeAllWindows,md as confirm,jp as contextMenu,bf as continuityCamera,yf as coreml,Jd as craftBinaryNotFoundMessage,Ro as craftWindowArguments,Qn as crashReporter,Zu as createAccordion,Wu as createAutocomplete,Mu as createAvatar,Du as createBadge,Au as createButton,Lu as createCard,od as createChart,Iu as createCheckbox,Xu as createChip,id as createCodeEditor,Hu as createColorPicker,sd as createDataGrid,Vu as createDatePicker,ss as createDiskImage,Bu as createDropdown,cd as createFileExplorer,rp as createGitHubUpdateManifest,Ha as createGitHubUpdater,Ku as createImageView,bp as createInterval,qu as createLabel,td as createListView,ad as createMediaPlayer,xd as createMenubar,ed as createModalComponent,_f as createNativeUpdateApi,ec as createPantrySelfUpdater,up as createPreferences,Nu as createProgressBar,zu as createRadioButton,Fu as createRating,Ju as createScrollView,Po as createSelfUpdater,Ou as createSlider,Yu as createSplitView,Qu as createStepper,La as createSystemTray,nd as createTable,ju as createTabs,Pu as createTextInput,Uu as createTimePicker,yp as createTimer,Gu as createTooltip,rd as createTreeView,ld as createWebView,Hd as createWindow,Ud as createWindowWithHTML,Io as decaffeinate,Ap as deepLinks,wp as delay,Eu as dismissAlertById,Tu as dismissAllAlerts,$p as dragOut,ep as extractBundle,cf as fileAssociations,Oo as focus,nf as focusShortcutsReady,xp as formatCompact,lp as formatDuration,cp as formatRemainingTime,fp as formatShortcut,vp as formatTime,_p as fs,Ba as generateUpdateManifest,$u as getActiveAlertCount,bd as getActiveModalCount,Sd as getActiveTrayInstances,Bd as getActiveWindowIds,ap as getCaffeinateStatus,xf as getCapabilities,Za as getCapability,Ld as getDesktopConfig,Dd as getDialogBridgeScript,hp as getRegisteredHotkeys,Cd as getSimulatedTrayHTML,Ed as getTrayBridgeScript,kd as getTrayInstance,Fd as getWindow,qd as getWindowBridgeScript,za as githubLatestAssetUrl,os as githubReleaseAssetUrl,Ep as globalShortcuts,er as handoff,tf as hasFocusShortcuts,Jp as iap,pp as isAutoLaunchEnabled,Sf as isAvailable,ip as isCaffeinated,Rp as isDragOutAvailable,Wd as isWebviewAvailable,zp as keychain,Yp as liveActivities,rf as localServer,Zp as location,df as log,Kd as macOSRuntimeExecutablePath,Lp as menu,hf as midi,Up as nativeAutoLaunch,Wp as nativeTray,qp as nativeWindow,Ip as network,kp as notifications,Cu as notify,Vd as openDevWindow,Xd as pack,Gd as packageApp,Qa as parsePantryUpdateManifest,Wa as parseShortcut,uf as pdf,Hp as permissions,Vp as printing,yd as prompt,Va as quitLauncher,Ao as readBundleIdentity,Xa as redactPII,gp as registerHotkey,Ua as relaunchBundle,vu as requestNotificationPermission,jd as resetDesktopConfig,Yd as resolveCraftBinary,rs as resolveCraftExecutablePath,sp as runningBundleTeamId,Fp as screen,Qp as screenCapture,as as screenSharing,vf as serial,wf as serviceMenu,dp as setAutoLaunch,Md as setDesktopConfig,Cp as shell,$o as showAlert,Pd as showAlertDialog,Ad as showColorPicker,Id as showConfirmDialog,Od as showErrorDialog,fd as showErrorModal,_u as showErrorToast,Da as showInfoModal,xu as showInfoToast,Zn as showMessageBox,Zt as showModal,$d as showOpenDialog,Ma as showQuestionModal,Rd as showSaveDialog,gd as showSuccessModal,Su as showSuccessToast,Yn as showToast,Nd as showWarningDialog,pd as showWarningModal,ku as showWarningToast,Ka as sidebar,Ga as signPayload,Gp as speech,gf as speechRecognition,ff as spotlight,Mp as standardMenus,tp as swapBundle,Bp as system,lf as tags,Tp as theme,Kp as touchbar,_d as triggerTrayAction,mp as unregisterAllHotkeys,qa as unregisterHotkey,Op as updater,np as verifyBundleTrust,mf as vision,ef as watchScreenSharing,Np as windowEvents};
|
package/dist/chunk-bcefawtc.js
DELETED
package/dist/chunk-bkqqa8aw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xe,Xs,Sg,sy,kg,oy,Sn,p,W,Q,kn,ke,_g,_i,Cg,iy,E,Ci,Eg,ay,A,cy}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Eg as applyFilters,oy as clearCustomFilters,_g as clientLoopScopes,Xs as defaultFilters,kn as escapeAttributeValue,p as escapeHtml,W as escapeHtmlValue,Q as escapeInterpolatedHtmlValue,A as evaluateExpression,xe as findMustacheEnd,kg as getAllFilters,Cg as interpolateScriptAttributes,_i as interpolateScriptExpressions,iy as interpolateScriptsInTemplate,E as processExpressions,Ci as processExpressionsChunked,Sg as registerFilter,sy as registerFilters,Sn as replaceInterpolations,ay as resetRejectedExpressionWarnings,cy as unescapeHtml,ke as usesSignalsInScript};
|
package/dist/chunk-bmds786f.js
DELETED
package/dist/chunk-c0azgkss.js
DELETED
package/dist/chunk-cbz7jtzf.js
DELETED
package/dist/chunk-e1n286mv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Uf,Hh,Vh,Uh,Wh,Wf,qf,qh,Kh,Qo,Xh,fr,gr,ks}from"./chunk-0ey7kc6t.js";import{rt}from"./chunk-car6nhfe.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Wh as __setSignalsGeneratorsForTest,rt as cacheEngineFingerprint,gr as cacheTemplate,fr as checkCache,Xh as clearDevCaches,qf as getCachedRouterScript,Wf as getCachedSignalsRuntime,qh as getServeClientAsset,Qo as getServeModuleBundle,ks as hashFilePath,Vh as invalidateFileCache,Uh as invalidateFileCacheByDir,Hh as readFileCached,Kh as registerServeModuleBundle,Uf as templateCache};
|
package/dist/chunk-evdskc25.js
DELETED
package/dist/chunk-f8akfzzn.js
DELETED
package/dist/chunk-f8wmxwa3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ai,ci,kt,de,hr,Ps,yr,Is,Os,Gf,Jf,Yf,br,Zf,Qf,eg,tg,Rc,Ac,Pc,li,Ic,ng,_t,Ct,Et,Tt,$t,Rt,nt,rg}from"./chunk-t4dkcf28.js";export{yr as Router,eg as abortNavigation,Ps as bracketPathToRegex,_t as clearMiddleware,Ac as createClientCookieManager,$t as createMiddlewareContext,Tt as createRouteLocation,Rc as createServerCookieManager,Pc as createStorageManager,tg as defineMiddleware,Jf as defineRoute,Yf as defineRoutes,Is as findErrorPage,Os as formatRoutes,ci as generateRouteManifest,ai as generateRouteTypes,Ic as getMiddleware,Ct as getMiddlewareNames,nt as getRouterScript,rg as getRouterScriptDev,ng as hasMiddleware,kt as isFileRequestPath,Et as loadMiddlewareFromDirectory,hr as matchRoute,Qf as navigateTo,de as patternToRegex,li as registerMiddleware,Zf as resetRoutes,br as route,Rt as runMiddleware,Gf as setAppUrl};
|
package/dist/chunk-fseqwysr.js
DELETED
package/dist/chunk-gg48cgx3.js
DELETED
package/dist/chunk-h8zb6cek.js
DELETED
package/dist/chunk-hc4ydhw0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Of,uc,Oh,dc,Nf,Df,un,cr,Nh,Mf,Lf,Dh,b}from"./chunk-8vkywnpx.js";import"./chunk-0ey7kc6t.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{un as buildCss,Mf as extractClassNames,Df as fingerprintConfig,Lf as generateCss,Nh as getCachedCSS,Of as getCssServeAsset,b as injectCss,uc as loadCssEngine,dc as loadCssEngineConfig,cr as rebuildCss,Oh as resetCssCache,Nf as resolveUserCssConfig,Dh as withLinkedModuleBundles};
|
package/dist/chunk-j08r18x1.js
DELETED
package/dist/chunk-j539dz72.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nu,ru,su,ou,iu,au,cu,lu,uu,du,jm}from"./chunk-3qyz80d6.js";export{nu as createIslandRegistry,jm as default,du as generateIslandManifest,su as generatePartialHydrationCSS,au as hydrateAll,iu as hydrateByStrategy,ou as hydrateIsland,cu as isHydrated,lu as onHydrated,ru as processPartialHydrationDirectives,uu as processStaticDirectives};
|
package/dist/chunk-jqngvqby.js
DELETED
package/dist/chunk-k33kgf8a.js
DELETED
package/dist/chunk-kz7ha54c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Qg}from"./chunk-b147ejha.js";import"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Qg as startInteractive};
|
package/dist/chunk-m7cbkrz6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zm,_a,hu,Hm,Vm,Um,Wm,qm,yu,bu,Km,Xm,Gm,Jm}from"./chunk-yqjmqndq.js";import"./chunk-c7qej674.js";import"./chunk-8vkywnpx.js";import"./chunk-f2zgh4xr.js";import"./chunk-t5q31st4.js";import"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-88a7qaw8.js";import"./chunk-cww1zk8y.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-0ey7kc6t.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{hu as SUSPENSE_RESOLVER_RUNTIME,_a as buildSuspenseResolveScript,qm as createStreamRenderer,Um as extractStreamBoundaries,Jm as generateHydrationRuntime,bu as islandDirective,Xm as processSectionDirectives,Vm as processStreamDirectives,Km as registerStreamingDirectives,Hm as renderStreamingPage,zm as streamTemplate,Wm as streamTemplateSimple,Gm as streamToResponse,yu as streamingSuspenseDirective};
|
package/dist/chunk-md8dj6tb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn,No,Do,Mo,Ih,Lo}from"./chunk-54p27ney.js";import"./chunk-nws4zm4k.js";import"./chunk-t4dkcf28.js";import"./chunk-46t924aw.js";export{Do as buildServerApi,Ih as createServerApi,cn as discoverServerApi,No as generateApiTypes,Lo as isServerApiSource,Mo as productionApiDispatcher};
|
package/dist/chunk-na1v2jcy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wn,og,ig,ag,cg,lg,m,ug,wi,dg,Yc,Zc}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{wn as STX_ENGINE_BINDING_NAMES,wi as convertToCommonJS,Yc as extractScriptFromTemplate,m as extractVariables,Zc as hasVariables,ug as isCompleteImport,lg as isMissingBindingFailure,ag as isModuleResolutionFailure,cg as isSyntaxFailure,dg as splitDeclaration,og as stripTypeScript,ig as withoutStxReferrer};
|
package/dist/chunk-p2fkggw4.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var pn=".stx",o="STX_DIR",e=null;function Oc(t){e=t?.trim()||null}function wr(){return process.env[o]?.trim()||e||pn}function c(t=process.cwd(),...n){let r=wr();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function vr(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==pn&&!n.startsWith(`${pn}/`))return t;let r=n.slice(pn.length+1);return r?i.join(wr(),r):wr()}
|
|
3
|
-
export{pn,Oc,wr,c,vr};
|
package/dist/chunk-pqqyjvq9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ka,pu,Un,Bm,fu,gu,mu,Fm}from"./chunk-8bxws458.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{Un as Validator,pu as defineForm,fu as processErrorDirective,gu as processErrorsDirective,Fm as processFormValidationDirectives,mu as processHasErrorsDirective,ka as useForm,Bm as v};
|
package/dist/chunk-q18508s2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Hi,Vi,Ui,Vg,Wi,qi,Ug,Ki,Xi,Al,Wg}from"./chunk-qpz9jrvw.js";export{Hi as VideoProcessorCache,Al as analyzeVideo,Vg as clearVideoCache,Xi as generateDASHManifest,Ki as generateHLSManifest,Wi as generatePoster,Ug as generateSpriteSheet,qi as generateThumbnails,Vi as getCachedVideoResult,Wg as processVideo,Ui as setCachedVideoResult};
|
package/dist/chunk-qczgdzjk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fh,Bf,ms}from"./chunk-shnw9geh.js";import"./chunk-xa2qfe51.js";import"./chunk-cww1zk8y.js";import"./chunk-he9dzchk.js";import{Tr}from"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import{ot}from"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{ot as freeIdentifiers,ms as processComponents,Bf as processESImports,Tr as rendersAsElement,Fh as resetTemplateLoopWarnings};
|
package/dist/chunk-r40g6785.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ko,hh,yh}from"./chunk-y6wbbmp3.js";import"./chunk-fx8jjasv.js";import"./chunk-54p27ney.js";import"./chunk-hpwtjb4a.js";import"./chunk-63sqdcr6.js";import"./chunk-0zgxxhvs.js";import"./chunk-he9dzchk.js";import"./chunk-rtsshvpt.js";import"./chunk-xr9rf0e6.js";import"./chunk-jtccqpwa.js";import"./chunk-nws4zm4k.js";import"./chunk-09412heg.js";import"./chunk-t4dkcf28.js";import"./chunk-ynnd6nnt.js";import"./chunk-gpkxphqz.js";import"./chunk-46t924aw.js";import"./chunk-eg2p1cyw.js";import"./chunk-xppm4cs4.js";import"./chunk-0wms5teg.js";export{yh as clearComposableCache,hh as getComposableScript,ko as listComposableModules};
|