@stacksjs/stx 0.2.818 → 0.2.820
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-4h78zypb.js → chunk-01cwrww2.js} +1 -1
- package/dist/{chunk-nsxjt6h3.js → chunk-06hc6rs6.js} +1 -1
- package/dist/{chunk-skht06a2.js → chunk-076fj387.js} +1 -1
- package/dist/chunk-09285y4b.js +2 -0
- package/dist/chunk-0e0z4ab6.js +2 -0
- package/dist/{chunk-8gcg9maj.js → chunk-0p797a25.js} +15 -15
- package/dist/{chunk-g7mjv276.js → chunk-1f7d1c0y.js} +2 -2
- package/dist/{chunk-n4s0se11.js → chunk-2235krey.js} +13 -13
- package/dist/{chunk-fmawgk87.js → chunk-2nj9aewf.js} +1 -1
- package/dist/{chunk-m7hfcxt3.js → chunk-2vqpz4qv.js} +2 -2
- package/dist/{chunk-dq9djbgq.js → chunk-30rpspzt.js} +4 -4
- package/dist/{chunk-8wdy7kdq.js → chunk-36sb6j2v.js} +6 -6
- package/dist/{chunk-1hg0zb3p.js → chunk-3axb6t08.js} +2 -2
- package/dist/chunk-3bf48zrh.js +2 -0
- package/dist/chunk-3kaw5zjm.js +2 -0
- package/dist/chunk-3na8kkec.js +2 -0
- package/dist/{chunk-mr2ke5km.js → chunk-3yh6y00f.js} +6 -6
- package/dist/{chunk-k01aftw0.js → chunk-3zhwcckc.js} +5 -5
- package/dist/chunk-49hywhze.js +2 -0
- package/dist/{chunk-1a8qtvs1.js → chunk-4mj9dem1.js} +2 -2
- package/dist/chunk-4qsamkyc.js +2 -0
- package/dist/{chunk-9xd85mvm.js → chunk-4t4af1mb.js} +5 -5
- package/dist/{chunk-x34me5ar.js → chunk-5e88021j.js} +6 -6
- package/dist/{chunk-vmxzktdr.js → chunk-67kbsav0.js} +1 -1
- package/dist/chunk-6h1qa3hw.js +2 -0
- package/dist/{chunk-xc7nynb9.js → chunk-6qvn1h09.js} +3 -3
- package/dist/{chunk-k3t72x38.js → chunk-76eh43e9.js} +2 -2
- package/dist/chunk-77s1kvzj.js +2 -0
- package/dist/chunk-7ffmz1fb.js +2 -0
- package/dist/chunk-7pz76f28.js +2 -0
- package/dist/{chunk-6s9bk98p.js → chunk-7yb82rm6.js} +2 -2
- package/dist/{chunk-72jt897s.js → chunk-8ttmzcxb.js} +12 -12
- package/dist/{chunk-035m9ada.js → chunk-8w9spdbn.js} +4 -4
- package/dist/{chunk-zme16hcr.js → chunk-90p175a7.js} +3 -3
- package/dist/chunk-91s9c9wa.js +2 -0
- package/dist/{chunk-e3t2bqyf.js → chunk-9gmceny5.js} +5 -5
- package/dist/chunk-a8fy7jv8.js +2 -0
- package/dist/{chunk-4fbg7gq8.js → chunk-akj26p4b.js} +2 -2
- package/dist/{chunk-8hfgvs0x.js → chunk-aqh663ef.js} +2 -2
- package/dist/{chunk-mm8ak4w2.js → chunk-atszywea.js} +4 -4
- package/dist/chunk-b22yj5j5.js +2 -0
- package/dist/{chunk-b9d70mgr.js → chunk-b4x5ndt9.js} +3 -3
- package/dist/{chunk-qr14xvwb.js → chunk-b89wsq8r.js} +1 -1
- package/dist/{chunk-zhvmcj78.js → chunk-bfbh0hfn.js} +5 -5
- package/dist/{chunk-9gj702tw.js → chunk-bfztkcfe.js} +4 -4
- package/dist/{chunk-casvvt3k.js → chunk-bkdfkm10.js} +3 -3
- package/dist/{chunk-0rjcbqk3.js → chunk-brhas9mp.js} +2 -2
- package/dist/{chunk-p13wg97w.js → chunk-bsg90smr.js} +4 -4
- package/dist/{chunk-1tzqqr0p.js → chunk-bt0amey5.js} +2 -2
- package/dist/{chunk-1rvgv1fr.js → chunk-btxnrqxf.js} +5 -5
- package/dist/chunk-c1e45rtv.js +2 -0
- package/dist/chunk-cckq47hd.js +2 -0
- package/dist/{chunk-tj6zvs8f.js → chunk-cxz4cdcn.js} +2 -2
- package/dist/{chunk-mbhvf0sv.js → chunk-d6d2s7n6.js} +2 -2
- package/dist/chunk-det3z847.js +2 -0
- package/dist/{chunk-gcje06er.js → chunk-e4jwhmpb.js} +30 -30
- package/dist/chunk-ec2f30f7.js +3 -0
- package/dist/{chunk-a67c2xrp.js → chunk-exghjgzk.js} +4 -4
- package/dist/{chunk-mjg9cx5a.js → chunk-f0txsdpa.js} +3 -3
- package/dist/{chunk-y3zjmv9e.js → chunk-ftfjwjes.js} +3 -3
- package/dist/chunk-g8kcg8v2.js +2 -0
- package/dist/chunk-g8nqmnb7.js +2 -0
- package/dist/{chunk-hwcfgs3e.js → chunk-gjf8cjdt.js} +3 -3
- package/dist/{chunk-swbrvrgr.js → chunk-gywyr2x3.js} +2 -2
- package/dist/{chunk-2jn0x4sh.js → chunk-h1hm975m.js} +6 -6
- package/dist/chunk-h67pm636.js +2 -0
- package/dist/{chunk-a1cy78h3.js → chunk-h7fgk4ew.js} +2 -2
- package/dist/chunk-hb8jxg45.js +2 -0
- package/dist/{chunk-s6mte5vy.js → chunk-hbdzhpy1.js} +4 -4
- package/dist/chunk-he6tejhc.js +2 -0
- package/dist/chunk-hfgzqapw.js +2 -0
- package/dist/chunk-j0hrk24j.js +2 -0
- package/dist/chunk-j2fgv2pe.js +2 -0
- package/dist/{chunk-ymypc1rp.js → chunk-j4cjn4m1.js} +79 -79
- package/dist/{chunk-k3zcadcc.js → chunk-j737tnvt.js} +4 -4
- package/dist/chunk-j79bjm48.js +2 -0
- package/dist/chunk-jjbdtj4w.js +2 -0
- package/dist/{chunk-nqdh7z2d.js → chunk-jzgyrxye.js} +1 -1
- package/dist/{chunk-sf4rntqj.js → chunk-k0bztfk3.js} +2 -2
- package/dist/chunk-k0xdvegc.js +2 -0
- package/dist/{chunk-9gwhs0gk.js → chunk-k81trehg.js} +2 -2
- package/dist/chunk-m3wk6b1r.js +2 -0
- package/dist/chunk-m7nsk6fb.js +2 -0
- package/dist/chunk-m934bzg2.js +2 -0
- package/dist/{chunk-znx5m1jv.js → chunk-me6kgvsm.js} +1 -1
- package/dist/chunk-mmeck545.js +2 -0
- package/dist/{chunk-s9b6abkb.js → chunk-mwxbdpb1.js} +2 -2
- package/dist/chunk-mz6qjee1.js +2 -0
- package/dist/chunk-mzvccryg.js +2 -0
- package/dist/chunk-n4pzq9k7.js +2 -0
- package/dist/{chunk-baj6w8ja.js → chunk-n7arptzc.js} +2 -2
- package/dist/{chunk-j24psz0z.js → chunk-nb5d00dz.js} +10 -10
- package/dist/{chunk-hntm02x0.js → chunk-nype1b17.js} +3 -3
- package/dist/{chunk-1ae3megp.js → chunk-p1fpferp.js} +6 -6
- package/dist/chunk-p6e3zz9e.js +2 -0
- package/dist/{chunk-7ac98ja7.js → chunk-p77cnteg.js} +5 -5
- package/dist/chunk-prt4ntb0.js +2 -0
- package/dist/{chunk-sxad7x2s.js → chunk-pvj0bpqg.js} +4 -4
- package/dist/chunk-q5bct2ks.js +2 -0
- package/dist/{chunk-rpen41w3.js → chunk-q7zwv88b.js} +2 -2
- package/dist/{chunk-e9w8qav3.js → chunk-qe5h58mx.js} +2 -2
- package/dist/{chunk-gtd6qs1r.js → chunk-qj4r08jb.js} +2 -2
- package/dist/{chunk-sh1hbhhb.js → chunk-qz3fdmrc.js} +3 -3
- package/dist/chunk-r2hjn9ds.js +2 -0
- package/dist/{chunk-2bnbcr22.js → chunk-rm1510e0.js} +12 -12
- package/dist/chunk-rtk813jv.js +2 -0
- package/dist/chunk-s2zsa16d.js +2 -0
- package/dist/chunk-s53hy1gs.js +2 -0
- package/dist/{chunk-dpn314z2.js → chunk-sb6jph84.js} +1 -1
- package/dist/chunk-sddp2398.js +2 -0
- package/dist/chunk-sj24g10j.js +2 -0
- package/dist/chunk-sv4emtcj.js +2 -0
- package/dist/chunk-t6y9ar2j.js +2 -0
- package/dist/chunk-t9byym6f.js +2 -0
- package/dist/chunk-t9rj27hc.js +2 -0
- package/dist/chunk-tcyvwy8p.js +2 -0
- package/dist/chunk-tg18j1yf.js +2 -0
- package/dist/chunk-tj7dh2dz.js +2 -0
- package/dist/{chunk-j8r0am39.js → chunk-tksjakyv.js} +1 -1
- package/dist/chunk-vafxrky2.js +2 -0
- package/dist/chunk-vyb4sxh9.js +42 -0
- package/dist/{chunk-6n11z33h.js → chunk-vzbyn4nh.js} +5 -5
- package/dist/chunk-w04h1t4t.js +2 -0
- package/dist/{chunk-cf196sv5.js → chunk-wc7dn3mr.js} +2 -2
- package/dist/{chunk-f6nk205v.js → chunk-wceg59n0.js} +1 -1
- package/dist/{chunk-t2sg2tp2.js → chunk-wf0n9gpj.js} +4 -4
- package/dist/{chunk-c5vzr1va.js → chunk-wpendr22.js} +2 -2
- package/dist/chunk-wps6y6n5.js +2 -0
- package/dist/{chunk-427mhgje.js → chunk-wy0gghvh.js} +1 -1
- package/dist/chunk-x30gh7vt.js +2 -0
- package/dist/{chunk-zgq8bfaw.js → chunk-xc0kwms2.js} +4 -4
- package/dist/{chunk-j65nf7mt.js → chunk-xdbwghty.js} +9 -9
- package/dist/{chunk-em2yy1te.js → chunk-xpy9yjyx.js} +6 -6
- package/dist/{chunk-9egd7tx3.js → chunk-y8p85kcj.js} +2 -2
- package/dist/{chunk-7xs45trj.js → chunk-y9bj3566.js} +2 -2
- package/dist/chunk-ybpysahk.js +2 -0
- package/dist/{chunk-9487tyfa.js → chunk-ydr5y7va.js} +2 -2
- package/dist/chunk-ytyyfvke.js +2 -0
- package/dist/{chunk-8dmey36n.js → chunk-z23arg8m.js} +2 -2
- package/dist/chunk-z845f18k.js +2 -0
- package/dist/{chunk-9tzcvsv0.js → chunk-zbyfxcrr.js} +6 -6
- package/dist/{chunk-vtt2dec3.js → chunk-zefkd9t8.js} +4 -4
- package/dist/cli.js +19 -19
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/html-masking.d.ts +10 -0
- package/dist/html-masking.js +50 -0
- package/dist/pwa.js +3 -3
- package/dist/server-bindings.js +28 -30
- package/dist/ssg.js +4 -4
- package/package.json +5 -5
- package/dist/chunk-03mtfndv.js +0 -2
- package/dist/chunk-18qxd18d.js +0 -2
- package/dist/chunk-1cd0w20k.js +0 -2
- package/dist/chunk-2kt1gqtq.js +0 -2
- package/dist/chunk-2vaap97d.js +0 -2
- package/dist/chunk-33ewq978.js +0 -2
- package/dist/chunk-3m342maz.js +0 -2
- package/dist/chunk-46sej67y.js +0 -2
- package/dist/chunk-5zf566bv.js +0 -2
- package/dist/chunk-67k5q95t.js +0 -2
- package/dist/chunk-6e76tz09.js +0 -2
- package/dist/chunk-72w08sh9.js +0 -2
- package/dist/chunk-7q79h0j4.js +0 -2
- package/dist/chunk-88mhhbqj.js +0 -2
- package/dist/chunk-9736003n.js +0 -2
- package/dist/chunk-99zwpazg.js +0 -2
- package/dist/chunk-9e5gamvs.js +0 -2
- package/dist/chunk-9y1dm510.js +0 -2
- package/dist/chunk-abzrvxct.js +0 -2
- package/dist/chunk-avbvedyx.js +0 -2
- package/dist/chunk-bbxzkcsk.js +0 -2
- package/dist/chunk-c179xpsq.js +0 -2
- package/dist/chunk-cvq4bz8y.js +0 -2
- package/dist/chunk-d4pmddb9.js +0 -2
- package/dist/chunk-dh1f8ga0.js +0 -2
- package/dist/chunk-em7kntfc.js +0 -2
- package/dist/chunk-enm79dwe.js +0 -2
- package/dist/chunk-fvs15n0s.js +0 -2
- package/dist/chunk-gvthmy3a.js +0 -2
- package/dist/chunk-h8kbcz9t.js +0 -2
- package/dist/chunk-h8x56dq5.js +0 -2
- package/dist/chunk-hx575xy8.js +0 -2
- package/dist/chunk-j58z3y2g.js +0 -2
- package/dist/chunk-j5t40n2g.js +0 -2
- package/dist/chunk-kgwdxx75.js +0 -2
- package/dist/chunk-m5cdkb11.js +0 -2
- package/dist/chunk-n1tbc7da.js +0 -2
- package/dist/chunk-n7dm6prj.js +0 -2
- package/dist/chunk-nknpr8cy.js +0 -2
- package/dist/chunk-pe9npaby.js +0 -2
- package/dist/chunk-pyz2jqph.js +0 -2
- package/dist/chunk-q51w24br.js +0 -2
- package/dist/chunk-qek9bcjt.js +0 -2
- package/dist/chunk-qkxx34vt.js +0 -2
- package/dist/chunk-r2v042ym.js +0 -2
- package/dist/chunk-r8ydxe4z.js +0 -42
- package/dist/chunk-rjzp7za8.js +0 -2
- package/dist/chunk-s9b49v74.js +0 -3
- package/dist/chunk-sata7rh2.js +0 -2
- package/dist/chunk-tmcgpf68.js +0 -2
- package/dist/chunk-tsb5h4e2.js +0 -2
- package/dist/chunk-v8h2kns0.js +0 -2
- package/dist/chunk-vpazz8ca.js +0 -2
- package/dist/chunk-vyw40ym7.js +0 -2
- package/dist/chunk-whq40bdm.js +0 -2
- package/dist/chunk-x15hrtmt.js +0 -2
- package/dist/chunk-xha2gt0n.js +0 -2
- package/dist/chunk-ydt1pbhx.js +0 -2
- package/dist/chunk-z8ywxqqg.js +0 -2
- package/dist/chunk-zwp7n01x.js +0 -2
package/dist/html-masking.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Scan tags once, without overlapping whitespace quantifiers or rescanning suffixes. */
|
|
2
|
+
export declare function scanHtmlTags(html: string): HtmlTagToken[];
|
|
1
3
|
/** Matches a real `<script…>…</script>` element (through the first `</script>`). */
|
|
2
4
|
export declare function matchScriptElement(html: string, i: number): number;
|
|
3
5
|
/** Matches a real `<style…>…</style>` element (through the first `</style>`). */
|
|
@@ -67,6 +69,14 @@ export declare interface ElementPositionToken {
|
|
|
67
69
|
end: number
|
|
68
70
|
token: string
|
|
69
71
|
}
|
|
72
|
+
export declare interface HtmlTagToken {
|
|
73
|
+
start: number
|
|
74
|
+
end: number
|
|
75
|
+
name: string
|
|
76
|
+
attributes: string
|
|
77
|
+
closing: boolean
|
|
78
|
+
selfClosing: boolean
|
|
79
|
+
}
|
|
70
80
|
export declare interface StashedScripts {
|
|
71
81
|
output: string
|
|
72
82
|
scripts: string[]
|
package/dist/html-masking.js
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
const HTML_TAG_NAME = /<(\/?)([a-zA-Z][a-zA-Z0-9-]*)\b/y;
|
|
2
|
+
export function scanHtmlTags(html) {
|
|
3
|
+
const tags = [];
|
|
4
|
+
let cursor = 0;
|
|
5
|
+
while (cursor < html.length) {
|
|
6
|
+
const start = html.indexOf("<", cursor);
|
|
7
|
+
if (start === -1)
|
|
8
|
+
break;
|
|
9
|
+
if (html.startsWith("<!--", start)) {
|
|
10
|
+
const end = html.indexOf("-->", start + 4);
|
|
11
|
+
if (end === -1)
|
|
12
|
+
break;
|
|
13
|
+
cursor = end + 3;
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
HTML_TAG_NAME.lastIndex = start;
|
|
17
|
+
const name = HTML_TAG_NAME.exec(html);
|
|
18
|
+
if (!name) {
|
|
19
|
+
cursor = start + 1;
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
const attributeStart = HTML_TAG_NAME.lastIndex;
|
|
23
|
+
let end = attributeStart, quote = null;
|
|
24
|
+
for (;end < html.length; end++) {
|
|
25
|
+
const ch = html[end];
|
|
26
|
+
if (quote) {
|
|
27
|
+
if (ch === quote)
|
|
28
|
+
quote = null;
|
|
29
|
+
} else if (ch === '"' || ch === "'")
|
|
30
|
+
quote = ch;
|
|
31
|
+
else if (ch === ">")
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
if (end === html.length)
|
|
35
|
+
break;
|
|
36
|
+
const closing = name[1] === "/", selfClosing = html[end - 1] === "/";
|
|
37
|
+
tags.push({ start, end: end + 1, name: name[2], attributes: html.slice(attributeStart, selfClosing ? end - 1 : end), closing, selfClosing });
|
|
38
|
+
cursor = end + 1;
|
|
39
|
+
const lower = name[2].toLowerCase();
|
|
40
|
+
if (!closing && (lower === "script" || lower === "style")) {
|
|
41
|
+
const close = lower === "script" ? SCRIPT_CLOSE : STYLE_CLOSE;
|
|
42
|
+
close.lastIndex = cursor;
|
|
43
|
+
const found = close.exec(html);
|
|
44
|
+
if (!found)
|
|
45
|
+
break;
|
|
46
|
+
cursor = found.index;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return tags;
|
|
50
|
+
}
|
|
1
51
|
const SCRIPT_OPEN = /<script\b[^>]*>/iy, SCRIPT_CLOSE = /<\/script\s*>/ig, STYLE_OPEN = /<style\b[^>]*>/iy, STYLE_CLOSE = /<\/style\s*>/ig;
|
|
2
52
|
function matchElement(html, i, open, close) {
|
|
3
53
|
open.lastIndex = i;
|
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{eo,Ht,
|
|
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{eo,Ht,kl,Tg}from"./chunk-j737tnvt.js";import{Qs,Ii,_g,Cg,Eg}from"./chunk-bfbh0hfn.js";import{vl,xl,Sl,Sg,kg}from"./chunk-4mj9dem1.js";import{Ue,Tn,Oi}from"./chunk-y9bj3566.js";import{$g,Rg,Ag,Pg,to,fy}from"./chunk-1f7d1c0y.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-wps6y6n5.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=Ue(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=eo(n,t);if(a){let s=Ht(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
|
|
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=Ue(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=eo(n,t);if(a){let s=Ht(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 Ii(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,xl as auditBuildOutput,vl as auditConfig,re as buildPwaAssets,Sl as calculateAuditResult,kg as formatAuditResult,Oi as formatSize,j as generateManifest,_ as generateManifestJson,Cg as generateManifestLink,F as generateOfflinePage,Ue as generatePrecacheManifest,Tn as generatePrecacheManifestJs,M as generatePwaIcons,Qs as generatePwaTags,eo as generateServiceWorker,Tg as generateServiceWorkerAuto,_g as generateSwRegistrationScript,Eg as generateThemeColorMeta,N as getExpectedIconPaths,Ht as getServiceWorkerFileName,Ii as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,kl as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,to as pwaDirectives,$g as pwaInstallDirective,Ag as pwaOfflineDirective,Pg as pwaPushDirective,Rg as pwaUpdateDirective,fy as registerPwaDirectives,Sg as runPwaAudit,D as validateManifest};
|
package/dist/server-bindings.js
CHANGED
|
@@ -2,6 +2,8 @@ import { classifyHtmlInterpolation, UnsafeInterpolationContextError } from "./in
|
|
|
2
2
|
import { escapeAttributeValue, escapeHtmlValue } from "./expressions.js";
|
|
3
3
|
import { inheritedClientLoopNames, loopBoundNames, readsAnyName } from "./loop-binding.js";
|
|
4
4
|
import { isRuntimeOwnedColonAttr } from "./runtime-globals.js";
|
|
5
|
+
import { scanHtmlTags } from "./html-masking.js";
|
|
6
|
+
import { parseAttributes } from "./component-processing.js";
|
|
5
7
|
const BOOLEAN_ATTRS = new Set([
|
|
6
8
|
"disabled",
|
|
7
9
|
"checked",
|
|
@@ -24,7 +26,7 @@ const BOOLEAN_ATTRS = new Set([
|
|
|
24
26
|
"playsinline",
|
|
25
27
|
"reversed",
|
|
26
28
|
"selected"
|
|
27
|
-
]), VOID_TAGS = new Set([
|
|
29
|
+
]), LOOP_ATTRIBUTES = new Set([":for", "x-for", "v-for", "@for"]), VOID_TAGS = new Set([
|
|
28
30
|
"area",
|
|
29
31
|
"base",
|
|
30
32
|
"br",
|
|
@@ -44,30 +46,26 @@ export function reactiveLoopRanges(template) {
|
|
|
44
46
|
return reactiveLoopScopes(template).map((scope) => [scope.start, scope.end]);
|
|
45
47
|
}
|
|
46
48
|
export function reactiveLoopScopes(template) {
|
|
47
|
-
const ranges = [],
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
if (match[0].endsWith("/>") || VOID_TAGS.has(tagName)) {
|
|
55
|
-
ranges.push({ start, end: openingEnd, names });
|
|
49
|
+
const ranges = [], ancestors = new Map;
|
|
50
|
+
for (const tag of scanHtmlTags(template)) {
|
|
51
|
+
const tagName = tag.name.toLowerCase();
|
|
52
|
+
if (tag.closing) {
|
|
53
|
+
const scope = ancestors.get(tagName)?.pop();
|
|
54
|
+
if (scope)
|
|
55
|
+
scope.end = tag.end;
|
|
56
56
|
continue;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
depth++;
|
|
70
|
-
ranges.push({ start, end: closingEnd, names });
|
|
58
|
+
const loopAttr = /(?::for|x-for|v-for|@for)\s*=/.test(tag.attributes) ? parseAttributes(tag.attributes).find((attr) => LOOP_ATTRIBUTES.has(attr.name)) : void 0, loopValue = typeof loopAttr?.value === "string" ? loopAttr.value : null, scope = loopValue !== null ? { start: tag.start, end: tag.end, names: loopBoundNames(loopValue) } : null;
|
|
59
|
+
if (scope)
|
|
60
|
+
ranges.push(scope);
|
|
61
|
+
if (!tag.selfClosing && !VOID_TAGS.has(tagName)) {
|
|
62
|
+
let stack = ancestors.get(tagName);
|
|
63
|
+
if (!stack) {
|
|
64
|
+
stack = [];
|
|
65
|
+
ancestors.set(tagName, stack);
|
|
66
|
+
}
|
|
67
|
+
stack.push(scope);
|
|
68
|
+
}
|
|
71
69
|
}
|
|
72
70
|
return ranges;
|
|
73
71
|
}
|
|
@@ -96,11 +94,11 @@ export function processServerBindings(template, context) {
|
|
|
96
94
|
function isProtected(pos) {
|
|
97
95
|
return protectedRanges.some(([start, end]) => pos >= start && pos < end);
|
|
98
96
|
}
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
if (isProtected(
|
|
97
|
+
const replacements = [], compiledBindings = new Map, maxCompiledBindings = 256;
|
|
98
|
+
for (const tag of scanHtmlTags(output)) {
|
|
99
|
+
if (tag.closing || isProtected(tag.start))
|
|
102
100
|
continue;
|
|
103
|
-
const
|
|
101
|
+
const attrs = tag.attributes.trimEnd();
|
|
104
102
|
if (!attrs || !attrs.includes(":"))
|
|
105
103
|
continue;
|
|
106
104
|
const nativeHost = /(?:^|\s)data-native(?:\s|=|$)/i.test(attrs.replace(/"[^"]*"|'[^']*'/g, "")), bindingRegex = /\s:([a-zA-Z_][\w-]*)\s*=\s*"([^"]*)"/g;
|
|
@@ -163,10 +161,10 @@ export function processServerBindings(template, context) {
|
|
|
163
161
|
}
|
|
164
162
|
}
|
|
165
163
|
if (hadReplacement) {
|
|
166
|
-
const selfClose =
|
|
164
|
+
const selfClose = tag.selfClosing ? " /" : "", newTag = `<${tag.name}${newAttrs}${selfClose}>`;
|
|
167
165
|
replacements.push({
|
|
168
|
-
start:
|
|
169
|
-
end:
|
|
166
|
+
start: tag.start,
|
|
167
|
+
end: tag.end,
|
|
170
168
|
replacement: newTag
|
|
171
169
|
});
|
|
172
170
|
}
|
package/dist/ssg.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-7sh9fa3q.js";import{x,
|
|
3
|
-
`)}function q(t){return async()=>({paths:await t(),fallback:!1})}var Ot;function Lt(t){let n=r(t),{depths:s}=ge(n),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,l;while((l=o.exec(n))!==null){if(s[l.index]!==0)continue;let u=x(n,"(",")",o.lastIndex-1),g=n.indexOf("{",u+1),v=x(n,"{","}",g);if(u<0||g<0||v<0)break;return t.slice(l.index,v+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((l=e.exec(n))!==null){if(s[l.index]!==0)continue;let u=
|
|
2
|
+
import"./chunk-7sh9fa3q.js";import{x,sl}from"./chunk-8ttmzcxb.js";import"./chunk-bt0amey5.js";import"./chunk-r9e0r6jx.js";import{Rt,w}from"./chunk-j4cjn4m1.js";import"./chunk-2vqpz4qv.js";import"./chunk-k0bztfk3.js";import"./chunk-k81trehg.js";import{kt,_t,Ct,Et,Tt,$t}from"./chunk-qj4r08jb.js";import{a}from"./chunk-xdbwghty.js";import{Es}from"./chunk-xpy9yjyx.js";import"./chunk-wf0n9gpj.js";import"./chunk-bsg90smr.js";import{he,en,tn}from"./chunk-zefkd9t8.js";import"./chunk-gywyr2x3.js";import{y}from"./chunk-zbyfxcrr.js";import{yt,i}from"./chunk-0p797a25.js";import"./chunk-vyb4sxh9.js";import"./chunk-p77cnteg.js";import{ps}from"./chunk-5e88021j.js";import"./chunk-qe5h58mx.js";import"./chunk-c84pxd2k.js";import{Za,Qa,ec}from"./chunk-gjf8cjdt.js";import{Zt,Yn,Zn}from"./chunk-ndjmt3vg.js";import{Qt}from"./chunk-b89wsq8r.js";import"./chunk-ec2f30f7.js";import"./chunk-wceg59n0.js";import{X,we}from"./chunk-4t4af1mb.js";import"./chunk-2nj9aewf.js";import"./chunk-bkdfkm10.js";import{c}from"./chunk-brhas9mp.js";import{r,ge}from"./chunk-b4x5ndt9.js";import D from"fs";import f 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 It(t){return Bun.hash(t).toString(16)}function ot(t,n={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,o=t.replace(Dt,(e,u,g,v)=>{let S=v.trim();if(!S)return e;if(/\bdata-stx-src=/.test(g))return e;if(n.minify)S=Pt(S);let p=It(S);if(!s.has(p))s.set(p,S);let P=n.integrity?` data-stx-integrity="sha384-${vt("sha384").update(S).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${p}.js"${P}${g}></script>`}),l=Array.from(s,([e,u])=>({hash:e,code:u}));return{html:o,chunks:l}}var Bt=new Set(["visible","idle"]);function ct(t){if(!t.includes("data-stx-src="))return t;let n=new Map,s=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,o;while((o=s.exec(t))!==null)n.set(o[1],o[2]);let l=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=e.exec(t))!==null)if(Bt.has(n.get(u[1])||""))l.add(u[2]);let g=/<\/head\s*>/iy,v=w(t,(p,P)=>(g.lastIndex=P,g.exec(p)?g.lastIndex:-1))[0]?.start??-1;if(l.size===0||v===-1)return t;let S=Array.from(l).filter((p)=>!t.includes(`rel="prefetch" href="${p}"`)).map((p)=>`<link rel="prefetch" href="${p}" as="script">`).join("");if(!S)return t;return t.slice(0,v)+S+t.slice(v)}var jt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function K(t){let n=t.trim();if(!n)return null;let s=/^https?:\/\//i.test(n)?n:`https://${n}`;try{return new URL(s).origin+new URL(s).pathname.replace(/\/$/,"")}catch{return null}}function Ft(t){for(let n of jt){let s=t[n];if(!s)continue;let o=K(s);if(o)return{url:o,source:"env",via:n}}return null}function lt(t){if(!t||typeof t!=="object")return null;let n=t,s=n.site?.url??n.url??n.app?.url;return typeof s==="string"?K(s):null}async function At(t){let{existsSync:n}=await import("fs"),s=await import("path");for(let o of["site.config.ts","site.config.js",".config/site.config.ts"]){let l=s.resolve(t,o);if(!n(l))continue;try{let e=await import(l),u=lt(e.default??e);if(u)return u}catch{}}return null}async function ut(t={}){let n=t.cwd??process.cwd(),s=t.env??process.env;if(t.explicit){let u=K(t.explicit);if(u)return{url:u,source:"option"}}let o=lt(t.stxConfig);if(o)return{url:o,source:"stx.config",via:"site.url"};let l=await At(n);if(l)return{url:l,source:"site.config",via:"url"};let e=Ft(s);if(e)return e;return{url:"http://localhost",source:"fallback"}}function dt(){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
|
+
`)}function q(t){return async()=>({paths:await t(),fallback:!1})}var Ot;function Lt(t){let n=r(t),{depths:s}=ge(n),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,l;while((l=o.exec(n))!==null){if(s[l.index]!==0)continue;let u=x(n,"(",")",o.lastIndex-1),g=n.indexOf("{",u+1),v=x(n,"{","}",g);if(u<0||g<0||v<0)break;return t.slice(l.index,v+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((l=e.exec(n))!==null){if(s[l.index]!==0)continue;let u=sl(n,e.lastIndex).endPos;return t.slice(e.lastIndex,u).trim()}throw SyntaxError("Could not extract getStaticPaths; use a top-level function or const declaration")}async function gt(t){let n="read";try{let s=await Bun.file(t).text();n="parse";let o=Qt(s),l=[...o.server,...o.client,...o.signals].filter((e)=>/(?:^|\s)server(?:\s|=|$)/i.test(r(e.attrs))).sort((e,u)=>s.indexOf(e.fullTag)-s.indexOf(u.fullTag));for(let e of l){if(!/\bgetStaticPaths\b/.test(r(e.content)))continue;let u=(Ot??=new Bun.Transpiler({loader:"ts",target:"bun"})).transformSync(e.content);if(!/\bgetStaticPaths\b/.test(r(u)))continue;let g=Lt(u);if(/\bdefineStaticPaths\b/.test(r(g))&&Rt(u,"defineStaticPaths"))throw SyntaxError("Cannot evaluate a module-local defineStaticPaths binding during isolated hook extraction");n="execute";let v=Function("defineStaticPaths",`return (${g})`)(q);if(typeof v!=="function")throw TypeError("getStaticPaths must be a function");let S=await v();n="result";let p=Array.isArray(S)?{paths:S}:S;if(!p||typeof p!=="object"||!("paths"in p)||!Array.isArray(p.paths))throw TypeError("getStaticPaths must return { paths: [...] } or an array of paths");for(let P of p.paths)if(!P||typeof P!=="object"||!P.params||typeof P.params!=="object"||Array.isArray(P.params))throw TypeError("Each getStaticPaths path must contain a params object");return{kind:"ok",value:p}}return{kind:"absent"}}catch(s){return{kind:"error",phase:n,error:s instanceof Error?s:Error(String(s))}}}class pt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,n=""){this.cacheDir=t,this.salt=n}async load(){if(this.loaded)return;let t=f.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let n=JSON.parse(await Bun.file(t).text());for(let[s,o]of Object.entries(n))this.cache.set(s,o)}catch{}this.loaded=!0}async save(){await D.promises.mkdir(this.cacheDir,{recursive:!0});let t=f.join(this.cacheDir,"build-cache.json"),n={};for(let[s,o]of this.cache)n[s]=o;await Bun.write(t,JSON.stringify(n))}getHash(t,n){let s=D.statSync(t),o=`${this.salt}|${t}:${s.mtimeMs}`;for(let e of n)if(D.existsSync(e)){let u=D.statSync(e);o+=`:${e}:${u.mtimeMs}`}let l=0;for(let e=0;e<o.length;e++){let u=o.charCodeAt(e);l=(l<<5)-l+u,l=l&l}return Math.abs(l).toString(36)}get(t,n){let s=this.cache.get(t);if(!s)return null;let o=ft(n).some((u)=>D.existsSync(u)),l=[n,...s.dependencies??[]].some((u)=>u.endsWith(".stx")&&D.existsSync(u)&&ps(D.readFileSync(u,"utf8")).some((g)=>/\bserver\b/.test(g.attrs)));if(o||l)return this.cache.delete(t),null;let e=this.getHash(n,s.dependencies??[]);if(s.hash!==e)return this.cache.delete(t),null;return s.html}set(t,n,s,o){let l=this.getHash(n,s);this.cache.set(t,{hash:l,html:o,generatedAt:Date.now(),dependencies:s})}}class ht{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let n=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return f.join(this.cacheDir,"isr",n)}async get(t){let n=this.getFilePath(t);if(!await Bun.file(n).exists())return null;try{return JSON.parse(await Bun.file(n).text())}catch{return null}}async set(t,n){let s=this.getFilePath(t);await D.promises.mkdir(f.dirname(s),{recursive:!0}),await Bun.write(s,JSON.stringify(n))}async invalidate(t){let n=this.getFilePath(t);if(await Bun.file(n).exists())await D.promises.unlink(n)}async invalidatePattern(t){let n=f.join(this.cacheDir,"isr");if(!D.existsSync(n))return;let s=await D.promises.readdir(n);for(let o of s){let l=o.replace(/_/g,"/").replace(".json","");if(t.test(l))await D.promises.unlink(f.join(n,o))}}async needsRevalidation(t){let n=await this.get(t);if(!n)return!0;return Date.now()>n.revalidateAfter}}async function Ut(t){let n=[];if(!t.isDynamic)n.push({url:t.pattern,params:{}});else{let s=await gt(t.filePath);if(s.kind==="error")throw Error(`getStaticPaths ${s.phase} failed for ${t.pattern} (${t.filePath}): ${s.error.message}`,{cause:s.error});if(s.kind==="absent")return console.warn(`Warning: Dynamic route ${t.pattern} (${t.filePath}) has no getStaticPaths`),n;let o=s.value;if(o.paths.length===0)return console.info(`getStaticPaths returned no paths for dynamic route ${t.pattern} (${t.filePath})`),n;for(let l of o.paths){let e=t.pattern;for(let[u,g]of Object.entries(l.params))e=e.replace(`:${u}`,g).replace(`:${u}*`,g);n.push({url:e,params:l.params,props:l.props,revalidate:l.revalidate})}}return n}function ft(t){return[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"]}async function Mt(t){for(let n of ft(t))if(await Bun.file(n).exists())try{let s=await import(n);if(typeof s.default==="function")return await s.default();else if(typeof s.default==="object")return s.default;else if(typeof s.getData==="function")return await s.getData();else{let{default:o,...l}=s;return l}}catch(s){console.error(`Error loading data file ${n}:`,s)}return null}async function Gt(t,n,s){let o=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!o)return null;let l=o[1];if(!l.includes("getStaticProps"))return null;try{let e=l.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
|
|
4
4
|
return (async function getStaticProps() {
|
|
5
5
|
${e[1]}
|
|
6
6
|
})()
|
|
@@ -37,7 +37,7 @@ ${t.map((o)=>{let l=new URL(o.loc,n).href,e=` <url>
|
|
|
37
37
|
${s.join(`
|
|
38
38
|
`)}
|
|
39
39
|
</channel>
|
|
40
|
-
</rss>`}async function Vt(t={}){let n=Date.now();tn();let s=await a(process.cwd()),o=s.build||{},l=await ut({explicit:t.domain||o.domain,stxConfig:s});if(l.source==="fallback"&&(t.sitemap??o.sitemap??!0))console.warn(dt());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||o.pagesDir||"pages",outputDir:t.outputDir||o.outputDir||"dist",baseUrl:t.baseUrl||o.baseUrl||"/",domain:l.url,revalidate:t.revalidate??o.revalidate??!1,sitemap:t.sitemap??o.sitemap??!0,sitemapExclude:t.sitemapExclude||o.sitemapExclude||[],robots:t.robots??o.robots??!0,rss:t.rss??o.rss??!1,concurrency:t.concurrency||o.concurrency||10,cache:t.cache??o.cache??!0,cacheDir:t.cacheDir||o.cacheDir||c(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??o.minify??!0,generate404:t.generate404??o.generate404??!0,publicDir:t.publicDir||o.publicDir||"public",trailingSlash:t.trailingSlash??o.trailingSlash??!1,cleanOutput:t.cleanOutput??o.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},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,v=0,S={},p={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&D.existsSync(e.outputDir))await D.promises.rm(e.outputDir,{recursive:!0});await D.promises.mkdir(e.outputDir,{recursive:!0});let E=e.cacheSalt;if(!E){let{resolveUserCssConfig:d,fingerprintConfig:m}=await import("./chunk-
|
|
40
|
+
</rss>`}async function Vt(t={}){let n=Date.now();tn();let s=await a(process.cwd()),o=s.build||{},l=await ut({explicit:t.domain||o.domain,stxConfig:s});if(l.source==="fallback"&&(t.sitemap??o.sitemap??!0))console.warn(dt());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||o.pagesDir||"pages",outputDir:t.outputDir||o.outputDir||"dist",baseUrl:t.baseUrl||o.baseUrl||"/",domain:l.url,revalidate:t.revalidate??o.revalidate??!1,sitemap:t.sitemap??o.sitemap??!0,sitemapExclude:t.sitemapExclude||o.sitemapExclude||[],robots:t.robots??o.robots??!0,rss:t.rss??o.rss??!1,concurrency:t.concurrency||o.concurrency||10,cache:t.cache??o.cache??!0,cacheDir:t.cacheDir||o.cacheDir||c(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??o.minify??!0,generate404:t.generate404??o.generate404??!0,publicDir:t.publicDir||o.publicDir||"public",trailingSlash:t.trailingSlash??o.trailingSlash??!1,cleanOutput:t.cleanOutput??o.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},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,v=0,S={},p={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&D.existsSync(e.outputDir))await D.promises.rm(e.outputDir,{recursive:!0});await D.promises.mkdir(e.outputDir,{recursive:!0});let E=e.cacheSalt;if(!E){let{resolveUserCssConfig:d,fingerprintConfig:m}=await import("./chunk-m3wk6b1r.js");try{E=m(await d(process.cwd()))}catch{}}let{prepareImageDelivery:b}=await import("./chunk-j2fgv2pe.js"),R=await b(e.publicDir,e.outputDir);if(R.count>0)console.log(`Optimized ${R.count} image(s) for responsive delivery`),E=[E,R.fingerprint].filter(Boolean).join(":");let T=new pt(e.cacheDir,E);if(e.cache)await T.load();try{let{generateCss:d}=await import("./chunk-m3wk6b1r.js");await d('<div class="bg-black"></div>')}catch{}kt();let wt=s?.routeMiddleware?.dir||"middleware";await Ct(process.cwd(),wt);let J=_t();if(J.length>0)console.log(`Loaded ${J.length} middleware: ${J.join(", ")}`);let St=s?.routeMiddleware?.global||[];ec(s?.layoutsDir,c(process.cwd()));let Z=X(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${Z.length} routes`);let M=[];for(let d of Z)try{let m=await Ut(d);for(let k of m)M.push({route:d,url:k.url,params:k.params,props:k.props,revalidate:k.revalidate??e.revalidate})}catch(m){let k=m instanceof Error?m:Error(String(m));u.failedCount++,u.errors.push({route:d.pattern,error:k}),await e.hooks.onError?.(k,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,k)}u.totalPages=M.length+u.failedCount,console.log(`Generating ${M.length} pages...`);let _=[],Q=[];for(let d=0;d<M.length;d+=e.concurrency)Q.push(M.slice(d,d+e.concurrency));for(let d of Q)await Promise.all(d.map(async(m)=>{let{route:k,url:h,params:G,props:xt,revalidate:rt}=m;try{await e.hooks.onPageStart?.(h);let A=await Bun.file(k.filePath).text(),O=Yt(A),bt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],nt=[...St,...bt];if(nt.length>0){let B=Et(h,G,O||{}),L=Tt(B,null,void 0,{isServer:!0}),j=await $t(nt,L);if(j.redirect){let C=typeof j.redirect==="string"?j.redirect:j.redirect.path||j.redirect,H=te(String(C),h),U=ee(h,e);await D.promises.mkdir(f.dirname(U),{recursive:!0}),await Bun.write(U,H),u.successCount++,u.pages.push({route:h,outputPath:U,size:Buffer.byteLength(H),cached:!1}),_.push({loc:h,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${h} \u2192 redirect to ${C}`);return}if(j.abort){let C=typeof j.abort==="string"?j.abort:j.abort?.error?.message||"aborted";console.warn(` \u21B3 ${h} \u2014 middleware aborted: ${C}`);return}}let it=A.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(it)try{if(!await Function("route",`
|
|
41
41
|
const validate = ${it[1]};
|
|
42
42
|
return validate(route);
|
|
43
43
|
`)({params:G})){console.warn(`Validation failed for ${h}, skipping...`);return}}catch{}let I=null,st=!1;if(e.cache){if(I=T.get(h,k.filePath),I)st=!0,u.cachedCount++}if(!I){let B=await mt(k,G,xt,e,s);if(I=B.html,e.failOnIncludeError&&B.includeFailures.length>0)throw Error(`${B.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -69,7 +69,7 @@ ${d}`)}if(e.cache)await T.save();if(e.generate404){let d=f.join(e.pagesDir,"404.
|
|
|
69
69
|
<a href="/">Go home</a>
|
|
70
70
|
</div>
|
|
71
71
|
</body>
|
|
72
|
-
</html>`)}for(let d of[500]){let m=f.join(e.pagesDir,`${d}.stx`);if(await Bun.file(m).exists()){let k=new Set,h={...s,minifyClient:!0,debug:!1,cache:!1},G=await i(await Bun.file(m).text(),{},m,h,k);await Bun.write(f.join(e.outputDir,`${d}.html`),G)}}let V=f.join(e.pagesDir,"error.stx");if(await Bun.file(V).exists()){let d=new Set,m={...s,minifyClient:!0,debug:!1,cache:!1},k=await i(await Bun.file(V).text(),{},V,m,d);await Bun.write(f.join(e.outputDir,"error.html"),k)}if(e.sitemap&&_.length>0){let d=qt(_,e.domain),m=f.join(e.outputDir,"sitemap.xml");await Bun.write(m,d),u.sitemapPath=m,console.log(`Generated sitemap.xml with ${_.length} URLs`)}if(e.robots!==!1){let d=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((h)=>typeof h==="string"),...d.disallow||[]],k=Es({rules:[{userAgent:d.userAgent||"*",allow:d.allow||["/"],...m.length>0?{disallow:m}:{}}],...d.sitemap!==!1&&u.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(f.join(e.outputDir,"robots.txt"),k),console.log("Generated robots.txt")}if(e.rss){let d=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(d.getItems)m=await d.getItems();let k=Jt(d,m),h=f.join(e.outputDir,"rss.xml");await Bun.write(h,k),u.rssPath=h,console.log(`Generated rss.xml with ${m.length} items`)}let z=
|
|
72
|
+
</html>`)}for(let d of[500]){let m=f.join(e.pagesDir,`${d}.stx`);if(await Bun.file(m).exists()){let k=new Set,h={...s,minifyClient:!0,debug:!1,cache:!1},G=await i(await Bun.file(m).text(),{},m,h,k);await Bun.write(f.join(e.outputDir,`${d}.html`),G)}}let V=f.join(e.pagesDir,"error.stx");if(await Bun.file(V).exists()){let d=new Set,m={...s,minifyClient:!0,debug:!1,cache:!1},k=await i(await Bun.file(V).text(),{},V,m,d);await Bun.write(f.join(e.outputDir,"error.html"),k)}if(e.sitemap&&_.length>0){let d=qt(_,e.domain),m=f.join(e.outputDir,"sitemap.xml");await Bun.write(m,d),u.sitemapPath=m,console.log(`Generated sitemap.xml with ${_.length} URLs`)}if(e.robots!==!1){let d=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((h)=>typeof h==="string"),...d.disallow||[]],k=Es({rules:[{userAgent:d.userAgent||"*",allow:d.allow||["/"],...m.length>0?{disallow:m}:{}}],...d.sitemap!==!1&&u.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(f.join(e.outputDir,"robots.txt"),k),console.log("Generated robots.txt")}if(e.rss){let d=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(d.getItems)m=await d.getItems();let k=Jt(d,m),h=f.join(e.outputDir,"rss.xml");await Bun.write(h,k),u.rssPath=h,console.log(`Generated rss.xml with ${m.length} items`)}let z=Za(e.outputDir);if(z.assets>0)console.log(`Externalized ${z.assets} asset(s) from ${z.pages} page(s) (${(z.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let W=Qa(e.outputDir);if(W.assets>0)console.log(`Externalized ${W.assets} repeated asset(s) from ${W.pages} page(s) (${(W.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&D.existsSync(e.publicDir))await Y(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let et=Zn();if(et)await Y(et,f.join(e.outputDir,Yn)),console.log(`Copied assets from ${Zt}`)}catch(E){throw await e.hooks.onError?.(E),E}if(u.buildTime=Date.now()-n,g.size>0){u.islandChunks={count:g.size,totalBytes:v};let E={generatedChunks:g.size,totalBytes:v,chunks:S,pages:p};await Bun.write(f.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(E,null,2))}await e.hooks.onBuildEnd?.(u);let P=u.islandChunks?`
|
|
73
73
|
Island chunks: ${u.islandChunks.count} (${(u.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
74
74
|
Build complete!
|
|
75
75
|
Total: ${u.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.820",
|
|
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.820",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.820",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.820",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.820",
|
|
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-03mtfndv.js
DELETED
package/dist/chunk-18qxd18d.js
DELETED
package/dist/chunk-1cd0w20k.js
DELETED
package/dist/chunk-2kt1gqtq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xe,mi,hi,og,Nt,Kc,ig,Xc,Xh,De,yn,Le}from"./chunk-ymypc1rp.js";import{tl,r}from"./chunk-b9d70mgr.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{xe as BROWSER_CORE_IMPORTS,og as STX_AUTO_IMPORTS,mi as extractAndStripCssImports,De as extractBridgeData,tl as findInterpolationEnd,Xc as generateAutoImportDestructuring,Xh as generateBrowserAutoImportDestructuring,yn as generateServerDataBridge,Nt as injectBrowserCoreAutoImports,Le as processClientScript,ig as referencesName,hi as renderVendorStyleTags,r as stripCommentsAndLiterals,Kc as transformAutoImports};
|
package/dist/chunk-2vaap97d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Oh,ps,Vo,gs,ir,Uo,Wo,Mf,ms,hs,ys,qo,cc,Df,wt}from"./chunk-x34me5ar.js";import"./chunk-9xd85mvm.js";import"./chunk-fmawgk87.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import{H}from"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Mf as bindLoopInterpolations,Oh as clearScriptScanCache,ms as convertServerLoopAttributesToDirectives,Uo as convertSignalDirectivesToAttributes,hs as convertSignalLoopsToAttributes,ir as extractClientSignalNames,H as extractExports,cc as findMarkupIndexOutsideScripts,gs as hasSignalsSyntax,Vo as parseLoopExpression,Wo as preEvalLiteralReactiveIfs,ys as processScriptSetup,qo as processSignals,Df as rewriteStxImportSpecifiers,ps as scanScriptTags,wt as stripStxRuntimeImports};
|
package/dist/chunk-33ewq978.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tf,sc,Eh,oc,$f,Rf,cn,sr,Th,Af,Pf,$h,y}from"./chunk-9tzcvsv0.js";import"./chunk-swbrvrgr.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{cn as buildCss,Af as extractClassNames,Rf as fingerprintConfig,Pf as generateCss,Th as getCachedCSS,Tf as getCssServeAsset,y as injectCss,sc as loadCssEngine,oc as loadCssEngineConfig,sr as rebuildCss,Eh as resetCssCache,$f as resolveUserCssConfig,$h as withLinkedModuleBundles};
|
package/dist/chunk-3m342maz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{oa,Zg,ia,Qg,Ll,jl,em,tm}from"./chunk-j24psz0z.js";import"./chunk-zme16hcr.js";import"./chunk-vtt2dec3.js";import"./chunk-p13wg97w.js";import"./chunk-7sh9fa3q.js";import"./chunk-x34me5ar.js";import"./chunk-9xd85mvm.js";import"./chunk-fmawgk87.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import{Pt,Yf}from"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{oa as buildScriptVirtualFile,Zg as buildVirtualSource,Pt as extractScriptBlocks,Yf as extractTemplateExpressions,Ll as findRuntimeTypeDeclarations,jl as findStxModuleDeclarations,tm as formatTypecheckDiagnostics,Qg as sourcePathFor,em as typecheckStxFiles,ia as virtualPathFor};
|
package/dist/chunk-46sej67y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Of,us}from"./chunk-r8ydxe4z.js";import"./chunk-s9b49v74.js";import"./chunk-f6nk205v.js";import"./chunk-fmawgk87.js";import{kr}from"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import{st}from"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{st as freeIdentifiers,us as processComponents,Of as processESImports,kr as rendersAsElement};
|
package/dist/chunk-5zf566bv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zl,mm,Hl,Vl,hm,ym}from"./chunk-9487tyfa.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{ym as applySlots,hm as extractSlotContent,mm as parseSlotElement,zl as parseSlots,Vl as processSlots,Hl as renderSlot};
|
package/dist/chunk-67k5q95t.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lf,Nh,Mh,Dh,Lh,jf,Bf,jh,Bh,Xo,Fh,lr,ur,ws}from"./chunk-swbrvrgr.js";import{nt}from"./chunk-5emrarpf.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Lh as __setSignalsGeneratorsForTest,nt as cacheEngineFingerprint,ur as cacheTemplate,lr as checkCache,Fh as clearDevCaches,Bf as getCachedRouterScript,jf as getCachedSignalsRuntime,jh as getServeClientAsset,Xo as getServeModuleBundle,ws as hashFilePath,Mh as invalidateFileCache,Dh as invalidateFileCacheByDir,Nh as readFileCached,Bh as registerServeModuleBundle,Lf as templateCache};
|
package/dist/chunk-6e76tz09.js
DELETED
package/dist/chunk-72w08sh9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Jl,Yl,Zl,Ql,eu,tu,nu,ru,su,ou,Pm}from"./chunk-mr2ke5km.js";export{Jl as createIslandRegistry,Pm as default,ou as generateIslandManifest,Zl as generatePartialHydrationCSS,tu as hydrateAll,eu as hydrateByStrategy,Ql as hydrateIsland,nu as isHydrated,ru as onHydrated,Yl as processPartialHydrationDirectives,su as processStaticDirectives};
|
package/dist/chunk-7q79h0j4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wo,lh,uh}from"./chunk-zme16hcr.js";import"./chunk-vtt2dec3.js";import"./chunk-p13wg97w.js";import"./chunk-7sh9fa3q.js";import"./chunk-x34me5ar.js";import"./chunk-9xd85mvm.js";import"./chunk-fmawgk87.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{uh as clearComposableCache,lh as getComposableScript,wo as listComposableModules};
|
package/dist/chunk-88mhhbqj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ni,ri,St,ue,pr,Ts,fr,$s,Rs,Hf,Vf,Uf,gr,Wf,qf,Kf,Xf,kc,_c,Cc,si,Ec,Gf,kt,_t,Ct,Et,Tt,$t,tt,Jf}from"./chunk-gtd6qs1r.js";export{fr as Router,Kf as abortNavigation,Ts as bracketPathToRegex,kt as clearMiddleware,_c as createClientCookieManager,Tt as createMiddlewareContext,Et as createRouteLocation,kc as createServerCookieManager,Cc as createStorageManager,Xf as defineMiddleware,Vf as defineRoute,Uf as defineRoutes,$s as findErrorPage,Rs as formatRoutes,ri as generateRouteManifest,ni as generateRouteTypes,Ec as getMiddleware,_t as getMiddlewareNames,tt as getRouterScript,Jf as getRouterScriptDev,Gf as hasMiddleware,St as isFileRequestPath,Ct as loadMiddlewareFromDirectory,pr as matchRoute,qf as navigateTo,ue as patternToRegex,si as registerMiddleware,Wf as resetRoutes,gr as route,$t as runMiddleware,Hf as setAppUrl};
|
package/dist/chunk-9736003n.js
DELETED
package/dist/chunk-99zwpazg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{m,gi,Wc,qc,ag,cg,lg,ug,dg,Vs,pg,je,Y,Be,fg,Cr,gg,Gc,Jc,yi,Fe,s,bn,Yc,h,fe,Gh}from"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Jc as SIGNAL_COMPOSABLE_CALL,fe as clearComponentCache,yi as componentClientSignalNames,gi as convertToCommonJS,h as createDetailedErrorMessage,dg as extractDirectiveNames,Wc as extractScriptFromTemplate,m as extractVariables,s as fileExists,Gh as getComponentCacheStats,cg as getPositionInfo,Y as getSharedTranspiler,Yc as getSourceLineInfo,ug as hasDirectives,qc as hasVariables,gg as isHydrateTrigger,pg as isJavaScriptScript,Fe as renderComponentWithSlot,bn as resolveTemplatePath,fg as scopeOnRootElement,Vs as scopeSequenceKey,je as shouldTranspileTypeScript,Gc as slotContentHasExpressions,Be as transpileTypeScript,Cr as userComponentFileExists,lg as validateDirective,ag as validateTemplate};
|
package/dist/chunk-9e5gamvs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ca,Ea,Ta,$a,Sh}from"./chunk-2bnbcr22.js";import"./chunk-gcje06er.js";import"./chunk-mm8ak4w2.js";import"./chunk-baj6w8ja.js";import"./chunk-8gcg9maj.js";import"./chunk-9tzcvsv0.js";import"./chunk-7ac98ja7.js";import"./chunk-c84pxd2k.js";import"./chunk-r8ydxe4z.js";import"./chunk-s9b49v74.js";import"./chunk-e9w8qav3.js";import"./chunk-f6nk205v.js";import"./chunk-x34me5ar.js";import"./chunk-9xd85mvm.js";import"./chunk-fmawgk87.js";import"./chunk-swbrvrgr.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Ca as buildNative,Sh as default,Ea as findCraftBinary,$a as getAvailableFormats,Ta as getAvailableTargets};
|
package/dist/chunk-9y1dm510.js
DELETED
package/dist/chunk-abzrvxct.js
DELETED
package/dist/chunk-avbvedyx.js
DELETED
package/dist/chunk-bbxzkcsk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{sh,bo,oh,ih,ah,ch}from"./chunk-zgq8bfaw.js";import"./chunk-vtt2dec3.js";import"./chunk-p13wg97w.js";import"./chunk-7sh9fa3q.js";import"./chunk-x34me5ar.js";import"./chunk-9xd85mvm.js";import"./chunk-fmawgk87.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{ch as clearStoreCache,sh as getStoreScript,ah as getStoreScriptFor,ih as pageStoresAll,bo as storesRead,oh as storesReadInFiles};
|
package/dist/chunk-c179xpsq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ve,Us,mg,Jh,hg,Yh,Mt,p,U,Z,wn,Se,yg,wi,bg,Zh,_,wg,Qh,R,ey}from"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{wg as applyFilters,Yh as clearCustomFilters,yg as clientLoopScopes,Us as defaultFilters,wn as escapeAttributeValue,p as escapeHtml,U as escapeHtmlValue,Z as escapeInterpolatedHtmlValue,R as evaluateExpression,ve as findMustacheEnd,hg as getAllFilters,bg as interpolateScriptAttributes,wi as interpolateScriptExpressions,Zh as interpolateScriptsInTemplate,_ as processExpressions,mg as registerFilter,Jh as registerFilters,Mt as replaceInterpolations,Qh as resetRejectedExpressionWarnings,ey as unescapeHtml,Se as usesSignalsInScript};
|
package/dist/chunk-cvq4bz8y.js
DELETED
package/dist/chunk-d4pmddb9.js
DELETED
package/dist/chunk-dh1f8ga0.js
DELETED
package/dist/chunk-em7kntfc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kg}from"./chunk-8hfgvs0x.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Kg as buildApp};
|
package/dist/chunk-enm79dwe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{tr,i}from"./chunk-8gcg9maj.js";import"./chunk-9tzcvsv0.js";import"./chunk-7ac98ja7.js";import"./chunk-c84pxd2k.js";import"./chunk-r8ydxe4z.js";import"./chunk-s9b49v74.js";import"./chunk-e9w8qav3.js";import"./chunk-f6nk205v.js";import"./chunk-x34me5ar.js";import{we}from"./chunk-9xd85mvm.js";import"./chunk-fmawgk87.js";import"./chunk-swbrvrgr.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import{Oe,zs,Hs}from"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{tr as buildModulesTag,we as injectRouterScript,i as processDirectives,zs as processJsonDirective,Hs as processOnceDirective,Oe as validateClientScript};
|
package/dist/chunk-fvs15n0s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{B,Ff,Go,a,I,zh,Hh}from"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{I as config,B as defaultConfig,zh as defineStxConfig,Go as discoverConfig,a as loadStxConfig,Ff as resolveStxDirectories,Hh as validateConfig};
|
package/dist/chunk-gvthmy3a.js
DELETED
package/dist/chunk-h8kbcz9t.js
DELETED
package/dist/chunk-h8x56dq5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vf,xf,he,Sf,ec,en,tn,kh,tc,nn,Qn,kf,_f,Cf,ss,rn,Ef,sn,nc,_h}from"./chunk-vtt2dec3.js";import"./chunk-p13wg97w.js";import"./chunk-7sh9fa3q.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{Qn as MODULE_SPECIFIER_PREFIX,vf as bundleCacheDir,xf as bundleCacheEntryLimit,_h as bundleClientEntriesSplit,sn as bundleClientScript,tn as clearBundleFailures,he as clientBundleDependencies,en as getBundleFailures,nn as hasUserImports,rn as moduleSubstitutionKey,_f as normalizeRegistrySpecifiers,Ef as queueClientBundleBuild,ec as recordBundleFailure,kf as registryIdForPath,tc as resolveBundlerFallback,Cf as rewriteRegistryImports,kh as setBundlerFallbackMode,Sf as shouldLogBundlerDiagnostics,nc as tempBuildName,ss as withModuleSubstitutes};
|
package/dist/chunk-hx575xy8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ht,Hn,dh}from"./chunk-s6mte5vy.js";import{le,Vn,ph,Un,vo,Gr,Jr,fh,gh,mh,Wn,qn,xo,Yr,hh}from"./chunk-9egd7tx3.js";import"./chunk-1tzqqr0p.js";export{vo as batch,dh as default,Vn as derived,Un as effect,ht as generateSignalsRuntime,Hn as generateSignalsRuntimeDev,qn as isDerived,Wn as isSignal,ph as memo,Jr as onDestroy,Gr as onMount,Yr as peek,mh as pendingLifecycleCounts,gh as runDestroyCallbacks,fh as runMountCallbacks,le as state,xo as untrack,hh as useOptimistic};
|
package/dist/chunk-j58z3y2g.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Oi,Ni,Mi,Pg,Ig,Og,kl,Ng,Mg}from"./chunk-j8r0am39.js";export{Oi as ImageProcessorCache,kl as applyTransformations,Pg as clearImageCache,Ng as generateResponsiveVariants,Mg as generateSrcset,Ni as getCachedImageResult,Og as optimizeImage,Ig as processImage,Mi as setCachedImageResult};
|
package/dist/chunk-j5t40n2g.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rl,na,Al,Pl,ra,Il,Ol,Nl,Ml,sa,Dl,Yg}from"./chunk-dq9djbgq.js";import{fa,Fl}from"./chunk-mbhvf0sv.js";import{Q,ee,te,Nn,me,Te,Kr,gt,Xt,Mn,Dn,Ln,ne,jn,Bn,Xr}from"./chunk-4fbg7gq8.js";import{Wl}from"./chunk-s9b6abkb.js";import"./chunk-baj6w8ja.js";export{ee as DEFAULT_FORMATS,te as DEFAULT_QUALITY,Q as DEFAULT_WIDTHS,Xr as ImageProcessingError,Pl as clearImageCache,ra as createImageDirective,Fl as createImageHandler,Ol as createImagePlugin,Yg as defaultImageConfig,Bn as formatSize,sa as generateImageManifest,Xt as generateSizes,gt as generateSrcSet,Mn as getFallbackVariant,Kr as getImageMetadata,ne as getMimeType,jn as getTotalSize,Dn as groupVariantsByFormat,fa as handleImageRequest,Il as imageDirective,me as isImageBackendAvailable,Ln as isImageFile,Nn as isSharpAvailable,Ml as optimizeDirectory,Nl as optimizeImage,na as parseImageComponent,Te as processImage,Al as processImageComponents,Rl as renderImageComponent,Wl as rewriteImagesWithSiblings,Dl as writeImageManifest};
|
package/dist/chunk-kgwdxx75.js
DELETED
package/dist/chunk-m5cdkb11.js
DELETED
package/dist/chunk-n1tbc7da.js
DELETED
package/dist/chunk-n7dm6prj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Di,Li,ji,Dg,Bi,Fi,Lg,zi,Hi,_l,jg}from"./chunk-sh1hbhhb.js";export{Di as VideoProcessorCache,_l as analyzeVideo,Dg as clearVideoCache,Hi as generateDASHManifest,zi as generateHLSManifest,Bi as generatePoster,Lg as generateSpriteSheet,Fi as generateThumbnails,Li as getCachedVideoResult,jg as processVideo,ji as setCachedVideoResult};
|
package/dist/chunk-nknpr8cy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gu,_o,Kn,mu,hu,yu,bu,wu,vu,xu,Su,ku,_u,Cu,Eu,Tu,$u,Ru,Au,Pu,Iu,Ou,Nu,Mu,Du,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Xu,Gu,Ju,Yu,Zu,Qu,ed,td,nd,rd,sd,od,Jt,Ra,id,ad,cd,Aa,ld,ud,dd,pd,fd,gd,Pa,md,hd,yd,bd,wd,vd,xd,Sd,kd,Xn,_d,Cd,Ed,Td,$d,Rd,Ad,Pd,Id,Od,Nd,Md,Co,Dd,Ld,jd,Bd,Fd,Qr,es,zd,Hd,Vd,Ud,Wd,Ia,qd,Kd,Xd,Oa,Eo,Gd,Jd,Na,Ma,ts,Da,Yd,Yt,Zd,La,ja,To,Qd,$o,ep,tp,np,rp,sp,op,ip,Ba,ap,cp,Fa,lp,up,dp,pp,fp,gp,mp,hp,yp,bp,wp,vp,xp,Sp,kp,_p,Cp,Ep,Tp,$p,Rp,Ap,Pp,Ip,za,Op,Np,Mp,Dp,Lp,jp,Bp,Fp,zp,Hp,Vp,Gn,Ha,Va,Up,Jn,Wp,qp,Kp,Ua,Wa,ns,rs,Xp,Ro,Gp,Jp,Yp,Zp,Qp,ef,tf,nf,rf,sf,of,af,cf,lf,uf,df,pf,ff,gf,mf,qa,hf,yf,Ka,Xa,bf,wf}from"./chunk-gcje06er.js";export{sd as AVAILABLE_COMPONENTS,Ia as AutoUpdater,od as COMPONENT_STYLES,ns as DEFAULT_WATCH_INTERVAL_MS,Wa as MAX_WATCH_INTERVAL_MS,Ua as MIN_WATCH_INTERVAL_MS,gd as MODAL_STYLES,ku as TOAST_STYLES,xd as TRAY_MENU_STYLES,Na as UPDATE_MANIFEST_ASSET,ud as alert,Rp as appInfo,ef as appleScript,wf as applicationDataDirectory,Qp as audio,yf as backgroundDelay,Cp as battery,Zp as biometric,Hp as bluetooth,of as bonjour,Yt as bundlePathForExecutable,Qd as caffeinate,qd as canReplaceBundle,Kd as clearQuarantine,hp as clipboard,fd as closeAllModals,Md as closeAllWindows,ld as confirm,Ip as contextMenu,pf as continuityCamera,df as coreml,Ud as craftBinaryNotFoundMessage,Co as craftWindowArguments,Gn as crashReporter,qu as createAccordion,Bu as createAutocomplete,Au as createAvatar,Ru as createBadge,_u as createButton,Pu as createCard,Qu as createChart,Eu as createCheckbox,Hu as createChip,ed as createCodeEditor,Du as createColorPicker,Zu as createDataGrid,Lu as createDatePicker,es as createDiskImage,Ou as createDropdown,nd as createFileExplorer,Yd as createGitHubUpdateManifest,Da as createGitHubUpdater,zu as createImageView,pp as createInterval,Fu as createLabel,Gu as createListView,td as createMediaPlayer,md as createMenubar,Xu as createModalComponent,bf as createNativeUpdateApi,Xa as createPantrySelfUpdater,sp as createPreferences,$u as createProgressBar,Mu as createRadioButton,Nu as createRating,Uu as createScrollView,To as createSelfUpdater,Tu as createSlider,Wu as createSplitView,Ku as createStepper,Pa as createSystemTray,Ju as createTable,Iu as createTabs,Cu as createTextInput,ju as createTimePicker,dp as createTimer,Vu as createTooltip,Yu as createTreeView,rd as createWebView,Dd as createWindow,jd as createWindowWithHTML,$o as decaffeinate,_p as deepLinks,fp as delay,vu as dismissAlertById,xu as dismissAllAlerts,Sp as dragOut,Xd as extractBundle,tf as fileAssociations,Ro as focus,Jp as focusShortcutsReady,mp as formatCompact,rp as formatDuration,np as formatRemainingTime,ap as formatShortcut,gp as formatTime,bp as fs,Oa as generateUpdateManifest,Su as getActiveAlertCount,pd as getActiveModalCount,hd as getActiveTrayInstances,Od as getActiveWindowIds,tp as getCaffeinateStatus,mf as getCapabilities,qa as getCapability,Pd as getDesktopConfig,Rd as getDialogBridgeScript,up as getRegisteredHotkeys,wd as getSimulatedTrayHTML,vd as getTrayBridgeScript,yd as getTrayInstance,Nd as getWindow,Fd as getWindowBridgeScript,Ma as githubLatestAssetUrl,ts as githubReleaseAssetUrl,vp as globalShortcuts,Jn as handoff,Gp as hasFocusShortcuts,Up as iap,ip as isAutoLaunchEnabled,hf as isAvailable,ep as isCaffeinated,kp as isDragOutAvailable,Bd as isWebviewAvailable,Mp as keychain,Wp as liveActivities,Yp as localServer,qp as location,sf as log,zd as macOSRuntimeExecutablePath,Pp as menu,uf as midi,jp as nativeAutoLaunch,Bp as nativeTray,Fp as nativeWindow,Ep as network,yp as notifications,wu as notify,Ld as openDevWindow,Hd as pack,Vd as packageApp,Ka as parsePantryUpdateManifest,Ba as parseShortcut,rf as pdf,Dp as permissions,Lp as printing,dd as prompt,La as quitLauncher,Eo as readBundleIdentity,Ha as redactPII,cp as registerHotkey,ja as relaunchBundle,gu as requestNotificationPermission,Id as resetDesktopConfig,Wd as resolveCraftBinary,Qr as resolveCraftExecutablePath,Zd as runningBundleTeamId,Np as screen,Kp as screenCapture,rs as screenSharing,gf as serial,ff as serviceMenu,op as setAutoLaunch,Ad as setDesktopConfig,wp as shell,_o as showAlert,Cd as showAlertDialog,_d as showColorPicker,Ed as showConfirmDialog,Td as showErrorDialog,ad as showErrorModal,bu as showErrorToast,Ra as showInfoModal,mu as showInfoToast,Xn as showMessageBox,Jt as showModal,Sd as showOpenDialog,Aa as showQuestionModal,kd as showSaveDialog,cd as showSuccessModal,hu as showSuccessToast,Kn as showToast,$d as showWarningDialog,id as showWarningModal,yu as showWarningToast,za as sidebar,Va as signPayload,Vp as speech,cf as speechRecognition,af as spotlight,Ap as standardMenus,Gd as swapBundle,Op as system,nf as tags,xp as theme,zp as touchbar,bd as triggerTrayAction,lp as unregisterAllHotkeys,Fa as unregisterHotkey,Tp as updater,Jd as verifyBundleTrust,lf as vision,Xp as watchScreenSharing,$p as windowEvents};
|
package/dist/chunk-pe9npaby.js
DELETED
package/dist/chunk-pyz2jqph.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nm,ba,uu,Mm,Dm,Lm,jm,Bm,du,pu,Fm,zm,Hm,Vm}from"./chunk-2jn0x4sh.js";import"./chunk-8gcg9maj.js";import"./chunk-9tzcvsv0.js";import"./chunk-7ac98ja7.js";import"./chunk-c84pxd2k.js";import"./chunk-r8ydxe4z.js";import"./chunk-s9b49v74.js";import"./chunk-e9w8qav3.js";import"./chunk-f6nk205v.js";import"./chunk-x34me5ar.js";import"./chunk-9xd85mvm.js";import"./chunk-fmawgk87.js";import"./chunk-swbrvrgr.js";import"./chunk-j65nf7mt.js";import"./chunk-casvvt3k.js";import"./chunk-9gwhs0gk.js";import"./chunk-t2sg2tp2.js";import"./chunk-em2yy1te.js";import"./chunk-gtd6qs1r.js";import"./chunk-ymypc1rp.js";import"./chunk-sf4rntqj.js";import"./chunk-m7hfcxt3.js";import"./chunk-72jt897s.js";import"./chunk-r9e0r6jx.js";import"./chunk-1tzqqr0p.js";export{uu as SUSPENSE_RESOLVER_RUNTIME,ba as buildSuspenseResolveScript,Bm as createStreamRenderer,Lm as extractStreamBoundaries,Vm as generateHydrationRuntime,pu as islandDirective,zm as processSectionDirectives,Dm as processStreamDirectives,Fm as registerStreamingDirectives,Mm as renderStreamingPage,Nm as streamTemplate,jm as streamTemplateSimple,Hm as streamToResponse,du as streamingSuspenseDirective};
|