@stacksjs/stx 0.2.655 → 0.2.656
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-hyd0s2ew.js → chunk-0gqmp9sa.js} +2 -2
- package/dist/{chunk-48acjmeg.js → chunk-0jhdrgpr.js} +2 -2
- package/dist/{chunk-dpz9tx1f.js → chunk-1z1fmda6.js} +1 -1
- package/dist/chunk-26qc9v36.js +2 -0
- package/dist/{chunk-dwe2dedz.js → chunk-27v1ehy0.js} +1 -1
- package/dist/{chunk-ajgxj2t9.js → chunk-2h92dm3t.js} +3 -3
- package/dist/{chunk-46w53nj5.js → chunk-2jh21f1n.js} +1 -1
- package/dist/chunk-2qf9vt7y.js +2 -0
- package/dist/{chunk-kgbf3z87.js → chunk-31yb0253.js} +4 -4
- package/dist/chunk-3p7xp7de.js +2 -0
- package/dist/{chunk-g3xcyqb8.js → chunk-5cyznacz.js} +1 -1
- package/dist/{chunk-j2bkjtp3.js → chunk-5w2jy5r9.js} +4 -4
- package/dist/chunk-67rvd6qy.js +2 -0
- package/dist/{chunk-j6f9ffmc.js → chunk-6c2pvrw8.js} +1 -1
- package/dist/{chunk-4qwvqbzf.js → chunk-7rta163c.js} +2 -2
- package/dist/{chunk-4t0nz925.js → chunk-80fkh83p.js} +1 -1
- package/dist/{chunk-eyrkpf0q.js → chunk-889evdcy.js} +12 -12
- package/dist/{chunk-znnfjxph.js → chunk-8d2f2e42.js} +1 -1
- package/dist/{chunk-wh838rdh.js → chunk-8nryyqb5.js} +1 -1
- package/dist/chunk-9c3cq8ks.js +2 -0
- package/dist/chunk-9q23eed0.js +2 -0
- package/dist/chunk-a2bw46t9.js +2 -0
- package/dist/{chunk-pb5k6sbj.js → chunk-a2dnv6n9.js} +1 -1
- package/dist/{chunk-8ftpzhx4.js → chunk-ajjcp56c.js} +3 -3
- package/dist/{chunk-vngnface.js → chunk-aprhqxky.js} +3 -3
- package/dist/chunk-b4fd2dtk.js +2 -0
- package/dist/chunk-bpm8tyvc.js +2 -0
- package/dist/{chunk-a2a74f6c.js → chunk-c9k40352.js} +1 -1
- package/dist/{chunk-0mr9wx5c.js → chunk-cjj9b9wf.js} +2 -2
- package/dist/chunk-da6qbwqs.js +2 -0
- package/dist/chunk-dknd9nhz.js +2 -0
- package/dist/{chunk-k6jq6a19.js → chunk-ds3qn1ty.js} +1 -1
- package/dist/{chunk-3gaggdvz.js → chunk-dv7dm5z1.js} +20 -20
- package/dist/{chunk-z7s1aqyn.js → chunk-e7z85137.js} +1 -1
- package/dist/{chunk-c9b0cme2.js → chunk-eecgcj41.js} +1 -1
- package/dist/chunk-fbtv2k1p.js +3 -0
- package/dist/chunk-fjqphdvp.js +2 -0
- package/dist/{chunk-bzpf3qtz.js → chunk-g96m1a69.js} +1 -1
- package/dist/{chunk-hjmnsa6a.js → chunk-gf3bxnpq.js} +1 -1
- package/dist/{chunk-vmn2b6p6.js → chunk-gz90fqn8.js} +1 -1
- package/dist/{chunk-50pkybyn.js → chunk-gzd7bmp5.js} +1 -1
- package/dist/{chunk-4e0z858k.js → chunk-hb08vrbb.js} +1 -1
- package/dist/{chunk-y4nhcrf1.js → chunk-hzjvpcmj.js} +109 -94
- package/dist/chunk-j2hkxwjy.js +2 -0
- package/dist/{chunk-5c14xpmg.js → chunk-jf17b7y9.js} +1 -1
- package/dist/{chunk-jc64acnb.js → chunk-jfmjw734.js} +2 -2
- package/dist/{chunk-xdgvb5a5.js → chunk-jrf01hfv.js} +1 -1
- package/dist/{chunk-8bad437f.js → chunk-jvv9p6v6.js} +1 -1
- package/dist/{chunk-86phdm37.js → chunk-k9amsnfj.js} +4 -4
- package/dist/chunk-kg54zsda.js +2 -0
- package/dist/chunk-kpycf9tz.js +2 -0
- package/dist/{chunk-cah391jn.js → chunk-mz1npbyk.js} +1 -1
- package/dist/chunk-ne72vxmc.js +2 -0
- package/dist/{chunk-pc74fca2.js → chunk-nn138y2w.js} +3 -3
- package/dist/{chunk-cq40n7ak.js → chunk-np1k9vsr.js} +1 -1
- package/dist/{chunk-yr9shdxa.js → chunk-p314pg80.js} +1 -1
- package/dist/chunk-p7096wfv.js +2 -0
- package/dist/{chunk-qmvwc88h.js → chunk-p7bqzhe1.js} +1 -1
- package/dist/{chunk-en8jgavy.js → chunk-pxqh758g.js} +81 -19
- package/dist/chunk-qc5wyxvc.js +2 -0
- package/dist/{chunk-d0nsehz6.js → chunk-qkasqamj.js} +1 -1
- package/dist/{chunk-sfn7f9dm.js → chunk-qkq8at1r.js} +1 -1
- package/dist/{chunk-8gewq710.js → chunk-r7kmsq3n.js} +1 -1
- package/dist/{chunk-nsxecff6.js → chunk-rccpf74y.js} +1 -1
- package/dist/{chunk-d4tf0tfn.js → chunk-rjh2jwxx.js} +4 -4
- package/dist/chunk-s2qv0y4x.js +2 -0
- package/dist/{chunk-fn6x5b29.js → chunk-sdknbvh8.js} +1 -1
- package/dist/{chunk-khvc43pq.js → chunk-t2pzy3x1.js} +2 -2
- package/dist/{chunk-h09a03ay.js → chunk-t9mfztcs.js} +4 -4
- package/dist/{chunk-nfafd1zr.js → chunk-teahew39.js} +4 -4
- package/dist/{chunk-9y2ncrnq.js → chunk-v2x9vzgw.js} +2 -2
- package/dist/{chunk-sj0rrn72.js → chunk-v3kc2anv.js} +1 -1
- package/dist/{chunk-njmdbz8t.js → chunk-v5r6abrq.js} +1 -1
- package/dist/{chunk-ez2kr2k1.js → chunk-vm26nak1.js} +1 -1
- package/dist/chunk-vmzkbdmp.js +2 -0
- package/dist/{chunk-6598d3m6.js → chunk-vqc4h16r.js} +2 -2
- package/dist/{chunk-qygynhzc.js → chunk-w2zceynt.js} +1 -1
- package/dist/chunk-weqc0ssb.js +2 -0
- package/dist/chunk-wp0jtntj.js +54 -0
- package/dist/{chunk-n5xp0sad.js → chunk-x2wgczak.js} +1 -1
- package/dist/{chunk-42hjga3m.js → chunk-x5777qkq.js} +2 -2
- package/dist/chunk-xesyd9nx.js +2 -0
- package/dist/{chunk-nttspz8c.js → chunk-xv43szx0.js} +4 -4
- package/dist/{chunk-00m5t5kj.js → chunk-y4waj1p4.js} +2 -2
- package/dist/chunk-yb89cj9s.js +2 -0
- package/dist/{chunk-mgj34bbg.js → chunk-yh0wb4n1.js} +1 -1
- package/dist/chunk-ypsym37h.js +2 -0
- package/dist/{chunk-4nbq7mnp.js → chunk-yq021b3r.js} +4 -4
- package/dist/{chunk-049nrn61.js → chunk-yr34z9ey.js} +1 -1
- package/dist/{chunk-qrt8b179.js → chunk-zaaeneq6.js} +2 -2
- package/dist/{chunk-tdnp94kz.js → chunk-zaj65qc1.js} +2 -2
- package/dist/{chunk-m6tqbxjx.js → chunk-zfeq5h13.js} +2 -2
- package/dist/{chunk-dxk5sqtv.js → chunk-zhf01af3.js} +2 -2
- package/dist/{chunk-ra1kfa6e.js → chunk-zyv28182.js} +1 -1
- package/dist/cli.js +11 -11
- package/dist/client/signals-dom-ready-runtime.js +2 -2
- package/dist/client/signals-effect-runtime.js +22 -9
- package/dist/client/signals-lifecycle-runtime.js +15 -0
- package/dist/client/signals-manifest-hydration-runtime.js +8 -1
- package/dist/client/signals-mount-runtime.js +16 -4
- package/dist/client/signals-public-api-runtime.js +1 -0
- package/dist/client/signals-scope-disposal-runtime.js +14 -0
- package/dist/client/signals-spa-load-runtime.js +2 -2
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/includes.js +9 -0
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +12 -12
- package/dist/utils.js +15 -0
- package/package.json +5 -5
- package/dist/chunk-02qt18vt.js +0 -2
- package/dist/chunk-0bc2f2qb.js +0 -2
- package/dist/chunk-20mme81e.js +0 -2
- package/dist/chunk-3ewa10ak.js +0 -2
- package/dist/chunk-3msbc4zj.js +0 -2
- package/dist/chunk-3q3gsr7m.js +0 -2
- package/dist/chunk-3qe83ymq.js +0 -2
- package/dist/chunk-49n9hrb1.js +0 -2
- package/dist/chunk-4gge63vp.js +0 -2
- package/dist/chunk-6bn5t1cc.js +0 -2
- package/dist/chunk-edz1h5f9.js +0 -2
- package/dist/chunk-evqwz50x.js +0 -2
- package/dist/chunk-fw8mf9xd.js +0 -2
- package/dist/chunk-hg4y1p7w.js +0 -2
- package/dist/chunk-j3472s37.js +0 -3
- package/dist/chunk-js23p89e.js +0 -2
- package/dist/chunk-jw0q2f5e.js +0 -49
- package/dist/chunk-jzejh7ch.js +0 -2
- package/dist/chunk-ktk8zm60.js +0 -2
- package/dist/chunk-m2vpa496.js +0 -2
- package/dist/chunk-qszk2tcw.js +0 -2
- package/dist/chunk-r95kmjj1.js +0 -2
- package/dist/chunk-vstv3ncc.js +0 -2
- package/dist/chunk-wv541wm9.js +0 -2
- package/dist/chunk-x5v00zg4.js +0 -2
- package/dist/chunk-zrqremja.js +0 -2
package/dist/ssg.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
3
|
-
`)}class ct{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,n=""){this.cacheDir=t,this.salt=n}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let n=JSON.parse(await Bun.file(t).text());for(let[a,r]of Object.entries(n))this.cache.set(a,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),n={};for(let[a,r]of this.cache)n[a]=r;await Bun.write(t,JSON.stringify(n))}getHash(t,n){let a=x.statSync(t),r=`${this.salt}|${t}:${a.mtimeMs}`;for(let e of n)if(x.existsSync(e)){let l=x.statSync(e);r+=`:${e}:${l.mtimeMs}`}let o=0;for(let e=0;e<r.length;e++){let l=r.charCodeAt(e);o=(o<<5)-o+l,o=o&o}return Math.abs(o).toString(36)}get(t,n){let a=this.cache.get(t);if(!a)return null;let r=this.getHash(n,a.dependencies??[]);if(a.hash!==r)return this.cache.delete(t),null;return a.html}set(t,n,a,r){let o=this.getHash(n,a);this.cache.set(t,{hash:o,html:r,generatedAt:Date.now(),dependencies:a})}}class lt{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let n=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.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 a=this.getFilePath(t);await x.promises.mkdir(g.dirname(a),{recursive:!0}),await Bun.write(a,JSON.stringify(n))}async invalidate(t){let n=this.getFilePath(t);if(await Bun.file(n).exists())await x.promises.unlink(n)}async invalidatePattern(t){let n=g.join(this.cacheDir,"isr");if(!x.existsSync(n))return;let a=await x.promises.readdir(n);for(let r of a){let o=r.replace(/_/g,"/").replace(".json","");if(t.test(o))await x.promises.unlink(g.join(n,r))}}async needsRevalidation(t){let n=await this.get(t);if(!n)return!0;return Date.now()>n.revalidateAfter}}async function
|
|
2
|
+
import"./chunk-v2x9vzgw.js";import"./chunk-hb08vrbb.js";import"./chunk-7rta163c.js";import"./chunk-ce6zddpf.js";import"./chunk-hzjvpcmj.js";import"./chunk-2h8ea0we.js";import"./chunk-jf17b7y9.js";import"./chunk-a3d0g4mr.js";import{vt,wt,xt,St,kt,_t}from"./chunk-zaaeneq6.js";import{i}from"./chunk-2h92dm3t.js";import{Yr}from"./chunk-t9mfztcs.js";import"./chunk-04kg16qs.js";import"./chunk-cjj9b9wf.js";import{_e,Gt,Kt}from"./chunk-nn138y2w.js";import"./chunk-v3kc2anv.js";import{h}from"./chunk-0gqmp9sa.js";import{ft,s}from"./chunk-889evdcy.js";import"./chunk-rccpf74y.js";import"./chunk-wp0jtntj.js";import"./chunk-sdknbvh8.js";import"./chunk-31yb0253.js";import"./chunk-prf164ct.js";import{Ji,Yi,Zi}from"./chunk-6ajahb2x.js";import{qt,jn,Bn}from"./chunk-xaa36b0x.js";import"./chunk-r7kmsq3n.js";import{V,me}from"./chunk-teahew39.js";import"./chunk-8nryyqb5.js";import"./chunk-e7z85137.js";import{c}from"./chunk-zhf01af3.js";import x from"fs";import g from"path";import{createHash as mt}from"crypto";function yt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var bt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Pt(t){return Bun.hash(t).toString(16)}function nt(t,n={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let a=new Map,r=t.replace(bt,(e,l,w,y)=>{let f=y.trim();if(!f)return e;if(/\bdata-stx-src=/.test(w))return e;if(n.minify)f=yt(f);let S=Pt(f);if(!a.has(S))a.set(S,f);let P=n.integrity?` data-stx-integrity="sha384-${mt("sha384").update(f).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${l}" data-stx-src="/_stx/islands/${S}.js"${P}${w}></script>`}),o=Array.from(a,([e,l])=>({hash:e,code:l}));return{html:r,chunks:o}}var $t=new Set(["visible","idle"]);function it(t){if(!t.includes("data-stx-src="))return t;let n=new Map,a=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,r;while((r=a.exec(t))!==null)n.set(r[1],r[2]);let o=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,l;while((l=e.exec(t))!==null)if($t.has(n.get(l[1])||""))o.add(l[2]);let w=t.lastIndexOf("</head>");if(o.size===0||w===-1)return t;let y=Array.from(o).filter((f)=>!t.includes(`rel="prefetch" href="${f}"`)).map((f)=>`<link rel="prefetch" href="${f}" as="script">`).join("");if(!y)return t;return t.slice(0,w)+y+t.slice(w)}var Dt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function W(t){let n=t.trim();if(!n)return null;let a=/^https?:\/\//i.test(n)?n:`https://${n}`;try{return new URL(a).origin+new URL(a).pathname.replace(/\/$/,"")}catch{return null}}function Rt(t){for(let n of Dt){let a=t[n];if(!a)continue;let r=W(a);if(r)return{url:r,source:"env",via:n}}return null}function st(t){if(!t||typeof t!=="object")return null;let n=t,a=n.site?.url??n.url??n.app?.url;return typeof a==="string"?W(a):null}async function Ct(t){let{existsSync:n}=await import("fs"),a=await import("path");for(let r of["site.config.ts","site.config.js",".config/site.config.ts"]){let o=a.resolve(t,r);if(!n(o))continue;try{let e=await import(o),l=st(e.default??e);if(l)return l}catch{}}return null}async function at(t={}){let n=t.cwd??process.cwd(),a=t.env??process.env;if(t.explicit){let l=W(t.explicit);if(l)return{url:l,source:"option"}}let r=st(t.stxConfig);if(r)return{url:r,source:"stx.config",via:"site.url"};let o=await Ct(n);if(o)return{url:o,source:"site.config",via:"url"};let e=Rt(a);if(e)return e;return{url:"http://localhost",source:"fallback"}}function ot(){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
|
+
`)}class ct{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,n=""){this.cacheDir=t,this.salt=n}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let n=JSON.parse(await Bun.file(t).text());for(let[a,r]of Object.entries(n))this.cache.set(a,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),n={};for(let[a,r]of this.cache)n[a]=r;await Bun.write(t,JSON.stringify(n))}getHash(t,n){let a=x.statSync(t),r=`${this.salt}|${t}:${a.mtimeMs}`;for(let e of n)if(x.existsSync(e)){let l=x.statSync(e);r+=`:${e}:${l.mtimeMs}`}let o=0;for(let e=0;e<r.length;e++){let l=r.charCodeAt(e);o=(o<<5)-o+l,o=o&o}return Math.abs(o).toString(36)}get(t,n){let a=this.cache.get(t);if(!a)return null;let r=this.getHash(n,a.dependencies??[]);if(a.hash!==r)return this.cache.delete(t),null;return a.html}set(t,n,a,r){let o=this.getHash(n,a);this.cache.set(t,{hash:o,html:r,generatedAt:Date.now(),dependencies:a})}}class lt{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let n=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.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 a=this.getFilePath(t);await x.promises.mkdir(g.dirname(a),{recursive:!0}),await Bun.write(a,JSON.stringify(n))}async invalidate(t){let n=this.getFilePath(t);if(await Bun.file(n).exists())await x.promises.unlink(n)}async invalidatePattern(t){let n=g.join(this.cacheDir,"isr");if(!x.existsSync(n))return;let a=await x.promises.readdir(n);for(let r of a){let o=r.replace(/_/g,"/").replace(".json","");if(t.test(o))await x.promises.unlink(g.join(n,r))}}async needsRevalidation(t){let n=await this.get(t);if(!n)return!0;return Date.now()>n.revalidateAfter}}async function Et(t){try{let a=(await Bun.file(t).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!a)return null;let r=a[1];if(!r.includes("getStaticPaths"))return null;let o=r.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!o)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${o[1]}
|
|
6
6
|
})()
|
|
7
|
-
`)()}catch(n){return console.error(`Error extracting static paths from ${t}:`,n),null}}async function
|
|
7
|
+
`)()}catch(n){return console.error(`Error extracting static paths from ${t}:`,n),null}}async function It(t){let n=[];if(!t.isDynamic)n.push({url:t.pattern,params:{}});else{let a=await Et(t.filePath);if(!a||a.paths.length===0)return console.warn(`Warning: Dynamic route ${t.pattern} has no getStaticPaths or returned empty paths`),n;for(let r of a.paths){let o=t.pattern;for(let[e,l]of Object.entries(r.params))o=o.replace(`:${e}`,l).replace(`:${e}*`,l);n.push({url:o,params:r.params,props:r.props,revalidate:r.revalidate})}}return n}async function Bt(t){let n=[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"];for(let a of n)if(await Bun.file(a).exists())try{let r=await import(a);if(typeof r.default==="function")return await r.default();else if(typeof r.default==="object")return r.default;else if(typeof r.getData==="function")return await r.getData();else{let{default:o,...e}=r;return e}}catch(r){console.error(`Error loading data file ${a}:`,r)}return null}async function jt(t,n,a){let r=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!r)return null;let o=r[1];if(!o.includes("getStaticProps"))return null;try{let e=o.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticProps\s*\([^)]*\)\s*\{([\s\S]*?)\n\}/);if(!e)return null;return await Function("params",`
|
|
8
8
|
return (async function getStaticProps() {
|
|
9
9
|
${e[1]}
|
|
10
10
|
})()
|
|
11
|
-
`)(n)}catch(e){return console.error(`Error executing getStaticProps in ${a}:`,e),null}}function
|
|
12
|
-
resolved against partialsDir: ${b.partialsDir}`)},onServerScriptError:(b)=>{P.push(`${g.relative(process.cwd(),b.sourcePath)} (${b.kind}): ${b.message}`)}};if(
|
|
11
|
+
`)(n)}catch(e){return console.error(`Error executing getStaticProps in ${a}:`,e),null}}function Ft(t){return/(?:^|[^\w$.])(?:export\s+)?(?:async\s+)?function\s+action\s*\(/.test(t)||/(?:^|[^\w$.])(?:export\s+)?(?:const|let|var)\s+action\s*=/.test(t)}async function ut(t,n,a={},r,o){let e=await Bun.file(t.filePath).text(),l=await Bt(t.filePath),w=await jt(e,n,t.filePath),y={...l||{},...w||{},...a,params:n,$route:{path:t.pattern,params:n}},f=new Set,S=[],P=[],D={...o,...r.partialsDir?{partialsDir:r.partialsDir}:{},...r.componentsDir?{componentsDir:r.componentsDir}:{},debug:!1,cache:!1,autoShell:!0,onIncludeError:(b)=>{S.push(`${g.relative(process.cwd(),b.templatePath)}: ${b.message}
|
|
12
|
+
resolved against partialsDir: ${b.partialsDir}`)},onServerScriptError:(b)=>{P.push(`${g.relative(process.cwd(),b.sourcePath)} (${b.kind}): ${b.message}`)}};if(Ft(e))console.warn(`Warning: ${t.pattern} exports a page action, which cannot run in a static build. Its form will submit to a file. Serve this route with the production server, or point the form's action at a route handler.`);let p=await s(e,y,t.filePath,D,f);for(let b of[t.filePath,...f])for(let B of _e(b))f.add(B);if(Object.keys(n).length>0){let b=`<script>if(window.stx)window.stx._rp=${JSON.stringify(n)};else window.__stx_rp=${JSON.stringify(n)};</script>`;if(p.includes("</head>"))p=p.replace("</head>",`${b}
|
|
13
13
|
</head>`);else p=`${b}
|
|
14
|
-
${p}`}if(p=await me(p,{router:r.router}),p=await h(p),r.minify!==!1)return{html:
|
|
14
|
+
${p}`}if(p=await me(p,{router:r.router}),p=await h(p),r.minify!==!1)return{html:Ot(p),dependencies:Array.from(f),includeFailures:S,serverScriptFailures:P};return{html:p,dependencies:Array.from(f),includeFailures:S,serverScriptFailures:P}}function Ot(t){let n=[],a=0,r=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,o;while((o=r.exec(t))!==null){let l=t.slice(a,o.index);n.push(l.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><"));let w=o[1],y=o[2],f=o[3];y=y.replace(/([^:"\\'`])\/\/(?!\/)(?![*!])([^\n]*)/g,"$1"),n.push(w+y+f),a=o.index+o[0].length}let e=t.slice(a);return n.push(e.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><")),n.join("").trim()}function Tt(t){let n=0;for(let a=0;a<t.length;a++){let r=t.charCodeAt(a);n=(n<<5)-n+r,n=n&n}return`"${Math.abs(n).toString(36)}"`}function At(t,n,a,r){if(a?.sitemap===!1)return!0;if(/<meta[^>]+name=["']robots["'][^>]+content=["'][^"']*noindex/i.test(n))return!0;return r.some((o)=>{if(o instanceof RegExp)return o.test(t);return o.endsWith("/")?t===o.slice(0,-1)||t.startsWith(o):t===o})}function Lt(t,n){return`<?xml version="1.0" encoding="UTF-8"?>
|
|
15
15
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
16
16
|
${t.map((r)=>{let o=new URL(r.loc,n).href,e=` <url>
|
|
17
17
|
<loc>${I(o)}</loc>`;if(r.lastmod)e+=`
|
|
@@ -20,7 +20,7 @@ ${t.map((r)=>{let o=new URL(r.loc,n).href,e=` <url>
|
|
|
20
20
|
<priority>${r.priority}</priority>`;return e+=`
|
|
21
21
|
</url>`,e}).join(`
|
|
22
22
|
`)}
|
|
23
|
-
</urlset>`}function I(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function
|
|
23
|
+
</urlset>`}function I(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Mt(t,n){let a=n.map((r)=>{let o=" <item>";if(o+=`
|
|
24
24
|
<title>${I(r.title)}</title>`,o+=`
|
|
25
25
|
<link>${I(r.link)}</link>`,r.description)o+=`
|
|
26
26
|
<description>${I(r.description)}</description>`;if(r.pubDate)o+=`
|
|
@@ -41,7 +41,7 @@ ${t.map((r)=>{let o=new URL(r.loc,n).href,e=` <url>
|
|
|
41
41
|
${a.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function
|
|
44
|
+
</rss>`}async function Ut(t={}){let n=Date.now();Kt();let a=await i(process.cwd()),r=a.build||{},o=await at({explicit:t.domain||r.domain,stxConfig:a});if(o.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ot());let e={router:t.router??a?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:o.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||c(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||a?.partialsDir||"",componentsDir:t.componentsDir||a?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,f={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-26qc9v36.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-x2wgczak.js"),b=await p(e.publicDir,e.outputDir);if(b.count>0)console.log(`Optimized ${b.count} image(s) for responsive delivery`),D=[D,b.fingerprint].filter(Boolean).join(":");let B=new ct(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-26qc9v36.js");await u('<div class="bg-black"></div>')}catch{}vt();let dt=a?.routeMiddleware?.dir||"middleware";await xt(process.cwd(),dt);let z=wt();if(z.length>0)console.log(`Loaded ${z.length} middleware: ${z.join(", ")}`);let gt=a?.routeMiddleware?.global||[];Zi(a?.layoutsDir,c(process.cwd()));let J=V(".",{pagesDir:e.pagesDir,pagesDirs:a?._layerPageDirs});console.log(`Found ${J.length} routes`);let _=[];for(let u of J){let m=await It(u);for(let v of m)_.push({route:u,url:v.url,params:v.params,props:v.props,revalidate:v.revalidate??e.revalidate})}l.totalPages=_.length,console.log(`Generating ${l.totalPages} pages...`);let A=[],K=[];for(let u=0;u<_.length;u+=e.concurrency)K.push(_.slice(u,u+e.concurrency));for(let u of K)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:L,props:pt,revalidate:Z}=m;try{await e.hooks.onPageStart?.(d);let j=await Bun.file(v.filePath).text(),F=Wt(j),ht=F?.middleware?Array.isArray(F.middleware)?F.middleware:[F.middleware]:[],Q=[...gt,...ht];if(Q.length>0){let C=St(d,L,F||{}),O=kt(C,null,void 0,{isServer:!0}),E=await _t(Q,O);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,U=Jt(String(R),d),T=Vt(d,e);await x.promises.mkdir(g.dirname(T),{recursive:!0}),await Bun.write(T,U),l.successCount++,l.pages.push({route:d,outputPath:T,size:Buffer.byteLength(U),cached:!1}),A.push({loc:d,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${d} \u2192 redirect to ${R}`);return}if(E.abort){let R=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${d} \u2014 middleware aborted: ${R}`);return}}let tt=j.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(tt)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${tt[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:L})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,et=!1;if(e.cache){if(k=B.get(d,v.filePath),k)et=!0,l.cachedCount++}if(!k){let C=await ut(v,L,pt,e,a);if(k=C.html,e.failOnIncludeError&&C.includeFailures.length>0)throw Error(`${C.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
|
@@ -50,7 +50,7 @@ ${a.join(`
|
|
|
50
50
|
Set ssg.failOnIncludeError to false to build anyway.`);if(e.failOnServerScriptError&&C.serverScriptFailures.length>0)throw Error(`${C.serverScriptFailures.length} <script server> block(s) failed, so this page would have shipped with the content they produce missing:
|
|
51
51
|
${C.serverScriptFailures.join(`
|
|
52
52
|
`)}
|
|
53
|
-
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)B.set(d,v.filePath,C.dependencies,k)}let M;if(e.trailingSlash)M=g.join(e.outputDir,d,"index.html");else M=d==="/"?g.join(e.outputDir,"index.html"):g.join(e.outputDir,`${d}.html`);if(e.chunkIslands){let{html:C,chunks:O}=nt(k,{integrity:e.integrityIslands,minify:e.minify});if(O.length>0){let E=g.join(e.outputDir,"_stx","islands");await x.promises.mkdir(E,{recursive:!0});for(let R of O){let U=g.join(E,`${R.hash}.js`);if(!await Bun.file(U).exists())await Bun.write(U,R.code);if(!w.has(R.hash)){w.add(R.hash);let T=Buffer.byteLength(R.code,"utf8");y+=T,f[R.hash]={bytes:T,file:`/_stx/islands/${R.hash}.js`}}}if(S[d]=O.map((R)=>R.hash),k=C,e.prefetchIslands)k=it(k)}}if(await x.promises.mkdir(g.dirname(M),{recursive:!0}),await Bun.write(M,k),!
|
|
53
|
+
Set ssg.failOnServerScriptError to false to build anyway.`);if(e.cache)B.set(d,v.filePath,C.dependencies,k)}let M;if(e.trailingSlash)M=g.join(e.outputDir,d,"index.html");else M=d==="/"?g.join(e.outputDir,"index.html"):g.join(e.outputDir,`${d}.html`);if(e.chunkIslands){let{html:C,chunks:O}=nt(k,{integrity:e.integrityIslands,minify:e.minify});if(O.length>0){let E=g.join(e.outputDir,"_stx","islands");await x.promises.mkdir(E,{recursive:!0});for(let R of O){let U=g.join(E,`${R.hash}.js`);if(!await Bun.file(U).exists())await Bun.write(U,R.code);if(!w.has(R.hash)){w.add(R.hash);let T=Buffer.byteLength(R.code,"utf8");y+=T,f[R.hash]={bytes:T,file:`/_stx/islands/${R.hash}.js`}}}if(S[d]=O.map((R)=>R.hash),k=C,e.prefetchIslands)k=it(k)}}if(await x.promises.mkdir(g.dirname(M),{recursive:!0}),await Bun.write(M,k),!At(d,k,F,e.sitemapExclude))A.push({loc:d,lastmod:new Date().toISOString().split("T")[0],priority:d==="/"?1:0.8});let rt={route:d,outputPath:M,size:Buffer.byteLength(k,"utf8"),cached:et};if(Z!==!1)rt.revalidateAt=Date.now()+Z*1000;l.pages.push(rt),l.successCount++,await e.hooks.onPageEnd?.(d,k)}catch(j){l.failedCount++,l.errors.push({route:d,error:j}),await e.hooks.onError?.(j,d),console.error(`Error generating ${d}:`,j)}}));let X=Gt();if(X.length>0){let u=X.map((m)=>`${m.filePath}: ${m.message}`).join(`
|
|
54
54
|
`);throw Error(`Client script bundling failed:
|
|
55
55
|
${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.stx");if(await Bun.file(u).exists()){let m=new Set,v={...a,debug:!1,cache:!1},d=await s(await Bun.file(u).text(),{},u,v,m);await Bun.write(g.join(e.outputDir,"404.html"),d)}else await Bun.write(g.join(e.outputDir,"404.html"),`<!DOCTYPE html>
|
|
56
56
|
<html lang="en">
|
|
@@ -73,7 +73,7 @@ ${u}`)}if(e.cache)await B.save();if(e.generate404){let u=g.join(e.pagesDir,"404.
|
|
|
73
73
|
<a href="/">Go home</a>
|
|
74
74
|
</div>
|
|
75
75
|
</body>
|
|
76
|
-
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...a,debug:!1,cache:!1},L=await s(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let H=g.join(e.pagesDir,"error.stx");if(await Bun.file(H).exists()){let u=new Set,m={...a,debug:!1,cache:!1},v=await s(await Bun.file(H).text(),{},H,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&A.length>0){let u=
|
|
76
|
+
</html>`)}for(let u of[500]){let m=g.join(e.pagesDir,`${u}.stx`);if(await Bun.file(m).exists()){let v=new Set,d={...a,debug:!1,cache:!1},L=await s(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let H=g.join(e.pagesDir,"error.stx");if(await Bun.file(H).exists()){let u=new Set,m={...a,debug:!1,cache:!1},v=await s(await Bun.file(H).text(),{},H,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&A.length>0){let u=Lt(A,e.domain),m=g.join(e.outputDir,"sitemap.xml");await Bun.write(m,u),l.sitemapPath=m,console.log(`Generated sitemap.xml with ${A.length} URLs`)}if(e.robots!==!1){let u=typeof e.robots==="object"?e.robots:{},m=[...e.sitemapExclude.filter((d)=>typeof d==="string"),...u.disallow||[]],v=Yr({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Mt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let G=Ji(e.outputDir);if(G.assets>0)console.log(`Externalized ${G.assets} asset(s) from ${G.pages} page(s) (${(G.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);let N=Yi(e.outputDir);if(N.assets>0)console.log(`Externalized ${N.assets} repeated asset(s) from ${N.pages} page(s) (${(N.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&x.existsSync(e.publicDir))await q(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Y=Bn();if(Y)await q(Y,g.join(e.outputDir,jn)),console.log(`Copied assets from ${qt}`)}catch(D){throw await e.hooks.onError?.(D),D}if(l.buildTime=Date.now()-n,w.size>0){l.islandChunks={count:w.size,totalBytes:y};let D={generatedChunks:w.size,totalBytes:y,chunks:f,pages:S};await Bun.write(g.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(D,null,2))}await e.hooks.onBuildEnd?.(l);let P=l.islandChunks?`
|
|
77
77
|
Island chunks: ${l.islandChunks.count} (${(l.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
78
78
|
Build complete!
|
|
79
79
|
Total: ${l.totalPages} pages
|
|
@@ -81,7 +81,7 @@ Build complete!
|
|
|
81
81
|
Cached: ${l.cachedCount}
|
|
82
82
|
Failed: ${l.failedCount}
|
|
83
83
|
Time: ${l.buildTime}ms${P}
|
|
84
|
-
`),l}async function q(t,n){await x.promises.mkdir(n,{recursive:!0});let a=await x.promises.readdir(t,{withFileTypes:!0});for(let r of a){let o=g.join(t,r.name),e=g.join(n,r.name);if(r.isDirectory())await x.promises.mkdir(e,{recursive:!0}),await q(o,e);else await x.promises.copyFile(o,e)}}function Nt(t={}){let n=t.cacheDir||c(process.cwd(),"ssg-cache"),a=new lt(n),r=t.revalidate||3600;return{async get(o){let e=await a.get(o);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(o).catch(console.error);return{html:e.html,headers:{"Cache-Control":`public, max-age=${r}, stale-while-revalidate=${r*2}`,ETag:e.etag,"X-ISR-Generated":new Date(e.generatedAt).toISOString(),...e.headers}}},async revalidate(o){let l=V(".",{pagesDir:t.pagesDir||"pages"}).find((P)=>o.match(P.regex)!==null);if(!l){console.warn(`Route not found for revalidation: ${o}`);return}let w=o.match(l.regex),y={};if(w)l.params.forEach((P,D)=>{y[P]=w[D+1]});let f=await i(),{html:S}=await ut(l,y,{},t,f);await a.set(o,{html:S,generatedAt:Date.now(),revalidateAfter:Date.now()+r*1000,etag:
|
|
84
|
+
`),l}async function q(t,n){await x.promises.mkdir(n,{recursive:!0});let a=await x.promises.readdir(t,{withFileTypes:!0});for(let r of a){let o=g.join(t,r.name),e=g.join(n,r.name);if(r.isDirectory())await x.promises.mkdir(e,{recursive:!0}),await q(o,e);else await x.promises.copyFile(o,e)}}function Nt(t={}){let n=t.cacheDir||c(process.cwd(),"ssg-cache"),a=new lt(n),r=t.revalidate||3600;return{async get(o){let e=await a.get(o);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(o).catch(console.error);return{html:e.html,headers:{"Cache-Control":`public, max-age=${r}, stale-while-revalidate=${r*2}`,ETag:e.etag,"X-ISR-Generated":new Date(e.generatedAt).toISOString(),...e.headers}}},async revalidate(o){let l=V(".",{pagesDir:t.pagesDir||"pages"}).find((P)=>o.match(P.regex)!==null);if(!l){console.warn(`Route not found for revalidation: ${o}`);return}let w=o.match(l.regex),y={};if(w)l.params.forEach((P,D)=>{y[P]=w[D+1]});let f=await i(),{html:S}=await ut(l,y,{},t,f);await a.set(o,{html:S,generatedAt:Date.now(),revalidateAfter:Date.now()+r*1000,etag:Tt(S)}),console.log(`Revalidated: ${o}`)},async invalidate(o){if(typeof o==="string")await a.invalidate(o);else await a.invalidatePattern(o)}}}function zt(t){return async()=>({paths:await t(),fallback:!1})}function Ht(){return{name:"markdown",extensions:[".md",".mdx"],async load(t){let n=await Bun.file(t).text(),a=n.match(/^---\n([\s\S]*?)\n---/),r={},o=n;if(a){let f=a[1];o=n.slice(a[0].length).trim();for(let S of f.split(`
|
|
85
85
|
`)){let P=S.indexOf(":");if(P>0){let D=S.slice(0,P).trim(),p=S.slice(P+1).trim();if(p==="true")p=!0;else if(p==="false")p=!1;else if(/^\d+$/.test(p))p=parseInt(p,10);else if(/^\d+\.\d+$/.test(p))p=parseFloat(p);else if(p.startsWith("[")&&p.endsWith("]"))p=p.slice(1,-1).split(",").map((b)=>b.trim().replace(/^['"]|['"]$/g,""));r[D]=p}}}let e=o.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*)\*\*/gim,"<strong>$1</strong>").replace(/\*(.*)\*/gim,"<em>$1</em>").replace(/`([^`]+)`/gim,"<code>$1</code>").replace(/\[([^\]]+)\]\(([^)]+)\)/gim,'<a href="$2">$1</a>').replace(/\n/gim,"<br>"),l=[],w=/<h([1-6])>([^<]+)<\/h[1-6]>/gi,y;while((y=w.exec(e))!==null){let f=parseInt(y[1],10),S=y[2],P=S.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:P,text:S,level:f})}return{content:e,data:r,toc:l}}}}function Wt(t){return ft(t)}function Jt(t,n){return`<!DOCTYPE html>
|
|
86
86
|
<html>
|
|
87
87
|
<head>
|
|
@@ -94,4 +94,4 @@ Build complete!
|
|
|
94
94
|
<p>Redirecting to <a href="${t}">${t}</a>...</p>
|
|
95
95
|
<script>window.location.replace('${t}')</script>
|
|
96
96
|
</body>
|
|
97
|
-
</html>`}function Vt(t,n){if(t==="/"||t==="")return g.join(n.outputDir,"index.html");let a=t.replace(/^\/|\/$/g,"");if(n.trailingSlash)return g.join(n.outputDir,a,"index.html");return g.join(n.outputDir,`${a}.html`)}var ye={generateStaticSite:
|
|
97
|
+
</html>`}function Vt(t,n){if(t==="/"||t==="")return g.join(n.outputDir,"index.html");let a=t.replace(/^\/|\/$/g,"");if(n.trailingSlash)return g.join(n.outputDir,a,"index.html");return g.join(n.outputDir,`${a}.html`)}var ye={generateStaticSite:Ut,createISRHandler:Nt,defineStaticPaths:zt,createMarkdownLoader:Ht};export{Nt as createISRHandler,Ht as createMarkdownLoader,Ft as declaresPageAction,ye as default,zt as defineStaticPaths,Ut as generateStaticSite,At as isExcludedFromSitemap};
|
package/dist/utils.js
CHANGED
|
@@ -1397,6 +1397,9 @@ async function buildComponentIsland(rawContent, componentFilePath, minify) {
|
|
|
1397
1397
|
__scopeVars.__destroyCallbacks = [];
|
|
1398
1398
|
__scopeVars.__mountHooks = [];
|
|
1399
1399
|
__scopeVars.__destroyHooks = [];
|
|
1400
|
+
// So do its effects: the last run's watched a clone that is gone.
|
|
1401
|
+
if (typeof __scopeVars.__disposeEffects === 'function') __scopeVars.__disposeEffects();
|
|
1402
|
+
__scopeVars.__disposeEffects = null;
|
|
1400
1403
|
}
|
|
1401
1404
|
__scopeVars.__mountCallbacks = __scopeVars.__mountCallbacks || [];
|
|
1402
1405
|
__scopeVars.__destroyCallbacks = __scopeVars.__destroyCallbacks || [];
|
|
@@ -1410,6 +1413,11 @@ async function buildComponentIsland(rawContent, componentFilePath, minify) {
|
|
|
1410
1413
|
// Replaying it AND registering the next mount's teardown doubles cleanup.
|
|
1411
1414
|
if (__registeringSetupHooks) __scopeVars.__destroyHooks.push(fn);
|
|
1412
1415
|
};
|
|
1416
|
+
// The effects this setup makes (effect, watch) belong to the scope and are
|
|
1417
|
+
// disposed with it (disposeSubtreeScopes in the runtime), as its bindings
|
|
1418
|
+
// are. Untracked, one reading a store kept running for a component the
|
|
1419
|
+
// router had long swapped out.
|
|
1420
|
+
const __endEffects = window.stx._beginEffects ? window.stx._beginEffects() : null;
|
|
1413
1421
|
|
|
1414
1422
|
try {
|
|
1415
1423
|
${content}
|
|
@@ -1426,6 +1434,13 @@ catch (e) {}
|
|
|
1426
1434
|
}
|
|
1427
1435
|
finally {
|
|
1428
1436
|
__registeringSetupHooks = false;
|
|
1437
|
+
if (__endEffects) {
|
|
1438
|
+
const __previousDispose = __scopeVars.__disposeEffects;
|
|
1439
|
+
const __disposeSetup = __endEffects();
|
|
1440
|
+
__scopeVars.__disposeEffects = typeof __previousDispose === 'function'
|
|
1441
|
+
? function() { __previousDispose(); __disposeSetup(); }
|
|
1442
|
+
: __disposeSetup;
|
|
1443
|
+
}
|
|
1429
1444
|
window.__STX_CURRENT_ELEMENT__ = __previousCurrentElement;
|
|
1430
1445
|
window.__STX_CURRENT_PROPS__ = __previousCurrentProps;
|
|
1431
1446
|
}
|
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.656",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@stacksjs/ts-css": "^0.3.11",
|
|
130
130
|
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.
|
|
131
|
+
"@stacksjs/desktop": "0.2.656",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.656",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.656",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.656",
|
|
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-02qt18vt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mu}from"./chunk-4t0nz925.js";import"./chunk-86phdm37.js";import"./chunk-en8jgavy.js";import"./chunk-0mr9wx5c.js";import"./chunk-eyrkpf0q.js";import"./chunk-hyd0s2ew.js";import"./chunk-prf164ct.js";import"./chunk-fn6x5b29.js";import"./chunk-jw0q2f5e.js";import"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-sj0rrn72.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Mu as buildForProduction};
|
package/dist/chunk-0bc2f2qb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Hn,s}from"./chunk-eyrkpf0q.js";import"./chunk-hyd0s2ew.js";import"./chunk-prf164ct.js";import"./chunk-fn6x5b29.js";import"./chunk-jw0q2f5e.js";import"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-kgbf3z87.js";import{me}from"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-sj0rrn72.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import{Re,ps,gs}from"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Hn as buildModulesTag,me as injectRouterScript,s as processDirectives,ps as processJsonDirective,gs as processOnceDirective,Re as validateClientScript};
|
package/dist/chunk-20mme81e.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Hi,Vi,Ui,Wi,tp}from"./chunk-8bad437f.js";import"./chunk-42hjga3m.js";import"./chunk-c1dkh0es.js";import"./chunk-eyrkpf0q.js";import"./chunk-hyd0s2ew.js";import"./chunk-prf164ct.js";import"./chunk-fn6x5b29.js";import"./chunk-jw0q2f5e.js";import"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-sj0rrn72.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Hi as buildNative,tp as default,Vi as findCraftBinary,Wi as getAvailableFormats,Ui as getAvailableTargets};
|
package/dist/chunk-3ewa10ak.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lc,Ju,jc,Bc,Yu,Zu}from"./chunk-k6jq6a19.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Zu as applySlots,Yu as extractSlotContent,Ju as parseSlotElement,Lc as parseSlots,Bc as processSlots,jc as renderSlot};
|
package/dist/chunk-3msbc4zj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ei,ti,ni,Cu,ri,si,_u,oi,ii,wc,Eu}from"./chunk-khvc43pq.js";export{ei as VideoProcessorCache,wc as analyzeVideo,Cu as clearVideoCache,ii as generateDASHManifest,oi as generateHLSManifest,ri as generatePoster,_u as generateSpriteSheet,si as generateThumbnails,ti as getCachedVideoResult,Eu as processVideo,ni as setCachedVideoResult};
|
package/dist/chunk-3q3gsr7m.js
DELETED
package/dist/chunk-3qe83ymq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$u}from"./chunk-j6f9ffmc.js";import"./chunk-86phdm37.js";import"./chunk-0mr9wx5c.js";import"./chunk-nfafd1zr.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{$u as startProductionServer};
|
package/dist/chunk-49n9hrb1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Pc,ki,Iu,Ic,Oc,Ou,Nu}from"./chunk-m6tqbxjx.js";import"./chunk-jc64acnb.js";import"./chunk-pc74fca2.js";import"./chunk-0mr9wx5c.js";import"./chunk-9y2ncrnq.js";import"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import{$t,Fl}from"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Pc as buildVirtualSource,$t as extractScriptBlocks,Fl as extractTemplateExpressions,Ic as findRuntimeTypeDeclarations,Oc as findStxModuleDeclarations,Nu as formatTypecheckDiagnostics,Iu as sourcePathFor,Ou as typecheckStxFiles,ki as virtualPathFor};
|
package/dist/chunk-4gge63vp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{op,na,ip,ra,yl,bl,en,Wn,ap,vl,wl,cp,h}from"./chunk-hyd0s2ew.js";import"./chunk-sj0rrn72.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{en as buildCss,vl as extractClassNames,bl as fingerprintConfig,wl as generateCss,ap as getCachedCSS,op as getCssServeAsset,h as injectCss,na as loadCssEngine,ra as loadCssEngineConfig,Wn as rebuildCss,ip as resetCssCache,yl as resolveUserCssConfig,cp as withLinkedModuleBundles};
|
package/dist/chunk-6bn5t1cc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ll,ul,Ce,dl,Qi,Gt,Kt,rp,ea,Xt,Fn,pl,fl,gl,qs,Jt,ml,Yt,hl}from"./chunk-pc74fca2.js";import"./chunk-0mr9wx5c.js";import"./chunk-9y2ncrnq.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Fn as MODULE_SPECIFIER_PREFIX,ll as bundleCacheDir,ul as bundleCacheEntryLimit,Yt as bundleClientScript,Kt as clearBundleFailures,Ce as clientBundleDependencies,Gt as getBundleFailures,Xt as hasUserImports,Jt as moduleSubstitutionKey,fl as normalizeRegistrySpecifiers,ml as queueClientBundleBuild,Qi as recordBundleFailure,pl as registryIdForPath,ea as resolveBundlerFallback,gl as rewriteRegistryImports,rp as setBundlerFallbackMode,dl as shouldLogBundlerDiagnostics,hl as tempBuildName,qs as withModuleSubstitutes};
|
package/dist/chunk-edz1h5f9.js
DELETED
package/dist/chunk-evqwz50x.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bd,Fd}from"./chunk-00m5t5kj.js";import"./chunk-pc74fca2.js";import"./chunk-0mr9wx5c.js";import"./chunk-9y2ncrnq.js";import"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Fd as clearStoreCache,Bd as getStoreScript};
|
package/dist/chunk-fw8mf9xd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mi,tl,Pn,td,nl,rl,sl,nd}from"./chunk-cah391jn.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Pn as Validator,tl as defineForm,nl as processErrorDirective,rl as processErrorsDirective,nd as processFormValidationDirectives,sl as processHasErrorsDirective,Mi as useForm,td as v};
|
package/dist/chunk-hg4y1p7w.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{kl,Br}from"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-wh838rdh.js";import{ar}from"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import{et}from"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{et as freeIdentifiers,Br as processComponents,kl as processESImports,ar as rendersAsElement};
|
package/dist/chunk-j3472s37.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function _(){let{NODE_ENV:n}=process.env;return n==="production"}function H(){let{STX_DEBUG:n}=process.env;return!_()||n==="true"}function bn(){let{NODE_ENV:n}=process.env;return n==="test"}function qo(n){return n==="compile"||_()}function yr(n){if(!n)return n;try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(n).trim()}catch{return n}}
|
|
3
|
-
export{_,H,bn,qo,yr};
|
package/dist/chunk-js23p89e.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xc,Sc}from"./chunk-3gaggdvz.js";import"./chunk-qmvwc88h.js";import"./chunk-j6f9ffmc.js";import"./chunk-d4tf0tfn.js";import"./chunk-4nbq7mnp.js";import"./chunk-m6tqbxjx.js";import"./chunk-zqtbtqbq.js";import"./chunk-4t0nz925.js";import{Ci}from"./chunk-86phdm37.js";import"./chunk-jxda11cg.js";import"./chunk-46w53nj5.js";import"./chunk-pb5k6sbj.js";import"./chunk-rcadtv3x.js";import"./chunk-k6jq6a19.js";import"./chunk-48acjmeg.js";import"./chunk-ym41ybz2.js";import"./chunk-n38yb274.js";import"./chunk-cah391jn.js";import"./chunk-tre98h62.js";import"./chunk-ra1kfa6e.js";import"./chunk-dgb4z4kw.js";import"./chunk-r3e6x87d.js";import"./chunk-mmwedr93.js";import"./chunk-vngnface.js";import"./chunk-kgfgb971.js";import"./chunk-nrvwejdw.js";import"./chunk-00m5t5kj.js";import"./chunk-jc64acnb.js";import"./chunk-en8jgavy.js";import"./chunk-42hjga3m.js";import"./chunk-c1dkh0es.js";import"./chunk-6ajahb2x.js";import"./chunk-pc74fca2.js";import"./chunk-0mr9wx5c.js";import"./chunk-9y2ncrnq.js";import{Ee,s}from"./chunk-eyrkpf0q.js";import"./chunk-hyd0s2ew.js";import"./chunk-prf164ct.js";import"./chunk-fn6x5b29.js";import"./chunk-jw0q2f5e.js";import"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-kgbf3z87.js";import{me}from"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import{Xn,Jn}from"./chunk-sj0rrn72.js";import{qr,N,i}from"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import{f,Oe}from"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";import"./chunk-9p6efb17.js";import"./chunk-khvc43pq.js";export{qr as buildWebComponents,Jn as cacheTemplate,Xn as checkCache,Ci as classifyAllScripts,xc as createMiddleware,Sc as createRoute,N as defaultConfig,f as extractVariables,me as injectRouterScript,i as loadStxConfig,Oe as processClientScript,s as processDirectives,Ee as readMarkdownFile};
|
package/dist/chunk-jw0q2f5e.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{l,d,E,u,z}from"./chunk-4e0z858k.js";import{L,ns,B,Re,ae,ar,Ne,De,n,g,be,k}from"./chunk-y4nhcrf1.js";import{rt}from"./chunk-4qwvqbzf.js";import{T}from"./chunk-ce6zddpf.js";import{ee}from"./chunk-8gewq710.js";import{U,qe}from"./chunk-szyqxcfj.js";import{_,bn}from"./chunk-j3472s37.js";import C from"path";import{existsSync as St}from"fs";function at(a,t){let c=0;for(let o=t;o<a.length;o++){let S=a[o];if(S==="("||S==="["||S==="{")c++;else if(S===")"||S==="]"||S==="}")c--;else if(S===","&&c===0)return o}return-1}function yt(a,t,c){let o=a,S=new RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\s*\\(`,"g"),s=S.exec(o);while(s){let m=s.index,e=m+s[0].length-1,O=1,H=e+1;while(H<o.length&&O>0){if(o[H]==="(")O++;else if(o[H]===")")O--;H++}if(O!==0)break;let it=o.substring(e+1,H-1),j=`${c}(${it})`;o=o.substring(0,m)+j+o.substring(H),S.lastIndex=m+j.length,s=S.exec(o)}return o}function $t(a){return/\b(state|derived|effect)\s*(?:<[^<>()]*>)?\s*\(/.test(a)}function mt(a){let t=a,c=[],o=new Set,S=0,s=0,m=t.length,e=(j)=>{s++;while(s<m){if(t[s]==="\\"){s+=2;continue}if(t[s]===j){s++;return}s++}},O=()=>{s++;while(s<m){if(t[s]==="\\"){s+=2;continue}if(t[s]==="`"){s++;return}if(t[s]==="$"&&t[s+1]==="{"){s+=2;let j=1;while(s<m&&j>0)if(t[s]==="{")j++,s++;else if(t[s]==="}")j--,s++;else if(t[s]==="'"||t[s]==='"')e(t[s]);else if(t[s]==="`")O();else s++;continue}s++}},H=()=>{if(t[s]==="/"&&t[s+1]==="/"){while(s<m&&t[s]!==`
|
|
3
|
-
`)s++;return!0}if(t[s]==="/"&&t[s+1]==="*"){s+=2;while(s<m-1&&!(t[s]==="*"&&t[s+1]==="/"))s++;return s+=2,!0}return!1},it=()=>{if(S!==0)return;let j=t.slice(s).match(/^(const|let|var)\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=/);if(j){let V=j[2];if(!o.has(V))c.push(V),o.add(V);return}let et=t.slice(s).match(/^function\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/);if(et){let V=et[1];if(!o.has(V))c.push(V),o.add(V);return}let Y=t.slice(s).match(/^async\s+function\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/);if(Y){let V=Y[1];if(!o.has(V))c.push(V),o.add(V)}};while(s<m){if(H())continue;if(t[s]==="'"||t[s]==='"'){e(t[s]);continue}if(t[s]==="`"){O();continue}if(t[s]==="{"){S++,s++;continue}if(t[s]==="}"){S--,s++;continue}if(S===0&&/[a-z]/i.test(t[s])&&(s===0||/\s|[;{}()]/.test(t[s-1])))it();s++}return c.join(", ")}function Et(a,t=""){let c=mt(a).split(",").map((o)=>o.trim()).filter(Boolean);return`
|
|
4
|
-
(function() {
|
|
5
|
-
${rt("var",c)}
|
|
6
|
-
var __destroyHooks = [];
|
|
7
|
-
var __origOnDestroy = onDestroy;
|
|
8
|
-
onDestroy = function(fn) { __origOnDestroy(fn); __destroyHooks.push(fn); };
|
|
9
|
-
|
|
10
|
-
${a}
|
|
11
|
-
${t}})();
|
|
12
|
-
`}function vt(a,t){let o=mt(a).split(",").map((m)=>m.trim()).filter(Boolean),S=new Set(L(a,!0).split(",").map((m)=>m.trim())),s=o.map((m)=>S.has(m)?` try { ${m}; Object.defineProperty(__scopeRegistration, ${JSON.stringify(m)}, ${ns(m)}); } catch (e) { /* not actually top-level */ }`:` try { __scopeRegistration[${JSON.stringify(m)}] = ${m}; } catch (e) { /* not actually top-level */ }`).join(`
|
|
13
|
-
`);return`
|
|
14
|
-
// Register scope variables for STX runtime
|
|
15
|
-
if (!window.stx._scopes) window.stx._scopes = {};
|
|
16
|
-
var __scopeRegistration = window.stx._scopes['${t}'] || { __destroyCallbacks: __destroyHooks };
|
|
17
|
-
${s}
|
|
18
|
-
// #1767: when the bundler renamed a component const that collided with an
|
|
19
|
-
// inlined import (foo -> foo2), rebind the ORIGINAL template name to the
|
|
20
|
-
// renamed declaration so it resolves to the component's value, not the
|
|
21
|
-
// shadowing import. __stxScopeRenames is emitted by bundleClientScript.
|
|
22
|
-
try { if (typeof __stxScopeRenames !== 'undefined' && __stxScopeRenames) { for (var __stxRK in __stxScopeRenames) __scopeRegistration[__stxRK] = __stxScopeRenames[__stxRK]; } } catch (e) { /* no renames */ }
|
|
23
|
-
if (typeof __stxLiveBindings !== 'undefined') Object.defineProperties(__scopeRegistration, Object.getOwnPropertyDescriptors(__stxLiveBindings));
|
|
24
|
-
window.stx._scopes['${t}'] = __scopeRegistration;
|
|
25
|
-
`}function Rt(a,t){return a.replace(/<script data-stx-scoped data-stx-run="always" data-stx-owner="([^"]*)"/g,(c,o)=>o===t?c:'<script data-stx-scoped data-stx-run="always"')}function gt(a,t){let c=vt(a,t);return kt(Et(a,c),t)}function kt(a,t){let c=`
|
|
26
|
-
(function() {
|
|
27
|
-
var __stxScopeEl = (typeof document !== 'undefined') ? document.querySelector('[data-stx-scope="${t}"]') : null;
|
|
28
|
-
var __stxPrevEl = (typeof window !== 'undefined') ? window.__STX_CURRENT_ELEMENT__ : undefined;
|
|
29
|
-
if (__stxScopeEl && typeof window !== 'undefined') window.__STX_CURRENT_ELEMENT__ = __stxScopeEl;
|
|
30
|
-
if (__stxScopeEl && typeof window !== 'undefined' && window.stx) {
|
|
31
|
-
if (!window.stx._scopes) window.stx._scopes = {};
|
|
32
|
-
window.stx._scopes['${t}'] = {};
|
|
33
|
-
}
|
|
34
|
-
try {`,o=`
|
|
35
|
-
} finally {
|
|
36
|
-
if (typeof window !== 'undefined') window.__STX_CURRENT_ELEMENT__ = __stxPrevEl;
|
|
37
|
-
}
|
|
38
|
-
})();`;return c+a+`
|
|
39
|
-
} finally {
|
|
40
|
-
if (typeof window !== 'undefined') window.__STX_CURRENT_ELEMENT__ = __stxPrevEl;
|
|
41
|
-
}
|
|
42
|
-
})();`}function It(a,t){if(U(a)){let S=U(a).tag.match(/data-stx-scope="([^"]*)"/);if(S)return{html:a,mergedIntoExisting:S[1],stamped:!0,root:"body"};return{html:qe(a,(s,m)=>`<body${m} data-stx-scope="${t}">`),mergedIntoExisting:null,stamped:!0,root:"body"}}let c=a.match(/^(\s*(?:(?:<!--[\s\S]*?-->|\x00STX_HTML_COMMENT_\d+\x00)\s*)*)(<[a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*>|>)/s);if(c){let o=c[2]+c[3],S=c[2].slice(1),s=o.match(/data-stx-scope="([^"]*)"/);if(s)return{html:a,mergedIntoExisting:s[1],stamped:!0,root:S};let m=c[1],e=c[2],O=c[3];return{html:`${m}${e} data-stx-scope="${t}"${O}${a.slice(c[0].length)}`,mergedIntoExisting:null,stamped:!0,root:S}}return{html:a,mergedIntoExisting:null,stamped:!1,root:null}}var Mt=0;function ut(a,t){let c=C.basename(a,".stx").replace(/[^a-zA-Z0-9]/g,"_"),o=t.__stx_scope_seq;return o?`stx_scope_${c}_${++o.n}_${o.key}`:`stx_scope_${c}_${++Mt}`}var lt=new Set,pt=new Set;function lp(){lt.clear(),pt.clear()}var Tt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function Sl(a){let t=(e)=>e.replace(/[^\n]/g," "),c=a.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,t).replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,t).replace(/<!--[\s\S]*?-->/g,t).replace(/\x00STX_HTML_COMMENT_\d+\x00/g,t).replace(/\{\{[\s\S]*?\}\}/g,t).replace(/\{!![\s\S]*?!!\}/g,t),o=[],S=0,s=/<(\/?)([A-Za-z][\w-]*)\b(?:[^<>"']|"[^"]*"|'[^']*')*?(\/?)>/g,m;while((m=s.exec(c))!==null){let e=m[1]==="/",O=m[2],H=m[3]==="/"||Tt.has(O.toLowerCase());if(e){S=Math.max(0,S-1);continue}if(S===0)o.push(O);if(!H)S++}return o}function ft(a){return/\btype\s*=\s*["'](?!(?:text\/javascript|application\/javascript|module)["'])[^"']*["']/i.test(a)}var We=new B(500),sa=new Set;function up(){sa.clear()}function At(a){if(a.__onceStore instanceof Set)return a.__onceStore;return sa}async function Dr(a,t,c,o,S,s=new Set){let m=o.partialsDir||C.join(C.dirname(c),"partials");if(m&&!C.isAbsolute(m))m=C.resolve(process.cwd(),m);let e=yt(a,"@partial","@include"),O=At(t);e=e.replace(/@once([\s\S]*?)@endonce/g,(h,I,x)=>{let f=I.trim(),r=`${c}:${f}`;if(O.has(r))return"";return O.add(r),I});{let h=/@includeIf\s*\(/g,I;while((I=h.exec(e))!==null){let x=I.index,f=x+I[0].length-1,r=1,w=f+1;while(w<e.length&&r>0){if(e[w]==="(")r++;else if(e[w]===")")r--;w++}if(r!==0)break;let p=e.substring(f+1,w-1),i=p.match(/^\s*['"]([^'"]+)['"]/);if(!i){h.lastIndex=w;continue}let D=i[1],W=H(D,m,c),R="";if(W&&await Bun.file(W).exists())S.add(W),R=`@include(${p})`;e=e.substring(0,x)+R+e.substring(w),h.lastIndex=0}}for(let[h,I]of[["@includeWhen",!1],["@includeUnless",!0]]){let x=new RegExp(`${h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\s*\\(`,"g"),f;while((f=x.exec(e))!==null){let r=f.index,w=r+f[0].length-1,p=1,i=w+1;while(i<e.length&&p>0){if(e[i]==="(")p++;else if(e[i]===")")p--;i++}if(p!==0)break;let D=e.substring(w+1,i-1),W=at(D,0);if(W===-1){x.lastIndex=i;continue}let R=D.substring(0,W).trim(),X=D.substring(W+1).trim(),F=X.match(/^\s*['"]([^'"]+)['"]/);if(!F){x.lastIndex=i;continue}let b=F[1],J=X.substring(F[0].length),N,M=at(J,0);if(M!==-1)N=J.substring(M+1).trim();try{let A=`Boolean(${R})`,P;if(d(A)){let ot=u(A,Object.keys(t));P=Boolean(ot(...Object.values(t)))}else P=Boolean(l(A,t));let tt=I?!P:P,st="";if(tt){let ot=H(b,m,c);if(ot&&await Bun.file(ot).exists())S.add(ot);st=`@include('${b}'${N?`, ${N}`:""})`}e=e.substring(0,r)+st+e.substring(i),x.lastIndex=0}catch(A){let P=A instanceof Error?A.message:String(A),tt=g("Include",`Error evaluating ${h} condition: ${P}`,c,a,r);e=e.substring(0,r)+tt+e.substring(i),x.lastIndex=0}}}{let h=/@each\s*\(/g,I;while((I=h.exec(e))!==null){let x=I.index,f=x+I[0].length-1,r=1,w=f+1;while(w<e.length&&r>0){if(e[w]==="(")r++;else if(e[w]===")"){if(r--,r===0)break}w++}if(r!==0)break;let p=e.substring(f+1,w),i=e.substring(x,w+1),D=p.match(/^\s*['"]([^'"]+)['"]\s*,\s*([^,]+)\s*,\s*['"]([^'"]+)['"](?:\s*,\s*['"]([^'"]+)['"])?\s*$/);if(!D){h.lastIndex=0,e=e.replace(i,"");continue}let[,W,R,X,F]=D;try{let b,J=R.trim();if(d(J))b=u(J,Object.keys(t))(...Object.values(t));else b=l(J,t);let N="";if(Array.isArray(b)&&b.length>0)for(let M of b){let A={...t,[X]:M},P=await et(W,A,a,x);N+=P}else if(F)N=await et(F,{},a,x);e=e.substring(0,x)+N+e.substring(w+1),h.lastIndex=0}catch(b){let J=b instanceof Error?b.message:String(b);e=e.substring(0,x)+g("Each",`Error in @each: ${J}`,c,a,x)+e.substring(w+1),h.lastIndex=0}}}{let h=/@includeFirst\s*\(/g,I;while((I=h.exec(e))!==null){let x=I.index,f=x+I[0].length-1,r=1,w=f+1;while(w<e.length&&r>0){if(e[w]==="(")r++;else if(e[w]===")"){if(r--,r===0)break}w++}if(r!==0)break;let p=e.substring(f+1,w),i=e.substring(x,w+1),D=p.match(/^\s*(\[[^\]]+\])/);if(!D){h.lastIndex=0,e=e.replace(i,"");continue}let W=D[1],R=p.slice(D[0].length),X,F=R.match(/^\s*,\s*\{/);if(F){R=R.slice(F[0].length-1);let N=1,M=1;while(M<R.length&&N>0){if(R[M]==="{")N++;else if(R[M]==="}"){if(N--,N===0)break}M++}X=R.substring(0,M+1),R=R.slice(M+1)}let b,J=R.match(/^\s*,\s*['"]([^'"]*)['"]\s*$/);if(J)b=J[1];try{let N=JSON.parse(W.replace(/'/g,'"')),M={};if(X)try{M=E(X,t)}catch(P){let tt=P instanceof Error?P.message:String(P);if(o.debug){let st=g("Include",`Error parsing includeFirst variables: ${tt}`,c,a,x,i);e=e.replace(i,()=>st)}else e=e.replace(i,()=>b||"");continue}let A=!1;for(let P of N){let tt=H(P,m,c);if(!tt)continue;if(await n(tt)){let st=await et(P,M,a,x);e=e.replace(i,()=>st),A=!0;break}}if(!A)if(b!==void 0)e=e.replace(i,()=>b);else if(o.debug){let P=g("Include",`None of the includeFirst paths exist: ${W}`,c,a,x,i);e=e.replace(i,()=>P)}else e=e.replace(i,"")}catch(N){let M=N instanceof Error?N.message:String(N),A=g("Include",`Error processing @includeFirst: ${M}`,c,a,x,i);e=e.replace(i,()=>A)}h.lastIndex=0}}function H(h,I,x){try{let f=h;if(!h.endsWith(".stx"))f=`${h}.stx`;let r=C.resolve(I),w=C.resolve(C.dirname(x)),p;if(!f.startsWith("./")&&!f.startsWith("../")){for(let F of o._layerPartialDirs??[]){let b=C.resolve(F,f);if(b.startsWith(`${C.resolve(F)}${C.sep}`)&&St(b))return b}p=C.resolve(I,f)}else p=C.resolve(w,f);let i=C.normalize(p),D=i.startsWith(r+C.sep)||i===r,W=i.startsWith(w+C.sep)||i===w,R=!1,X=C.dirname(w);if(i.startsWith(X+C.sep)){if(!C.relative(X,i).split(C.sep).some((N)=>N.startsWith(".")&&N!=="."&&N!==".."))R=!0}if(!D&&!W&&!R)return console.error(`Security: Path traversal attempt blocked for include path: ${h}`),console.error(` Resolved to: ${i}`),console.error(` Allowed dirs: ${r}, ${w}`),null;return i}catch(f){return console.error(`Error resolving path ${h}: ${f}`),null}}let it=C.resolve(c);s.add(it);function j(h,I,x,f){return o.onIncludeError?.({includePath:h,templatePath:c,message:I,partialsDir:m}),g("Include",I,c,x,f)}async function et(h,I={},x,f){let r=H(h,m,c);if(!r)return j(h,`Could not resolve path for include: ${h}`,x,f);let w=C.resolve(r);if(s.has(w)){let p=[...s,w].map((i)=>C.basename(i)).join(" -> ");return j(h,`Circular include detected: ${p}`,x,f)}try{S.add(r);let p;if(!p)try{p=await Bun.file(r).text()}catch(v){let q=v instanceof Error?v.message:String(v);return j(h,`Error loading include file ${h}: ${q}`,x,f)}if(p)p=p.replace(/\{\{--[\s\S]*?--\}\}/g,"");if(p&&p.includes("@stream")){let{processStreamDirectives:v}=await import("./chunk-vstv3ncc.js");p=v(p,t)}if(p&&(o.debug||!_()&&!bn()))try{let{warnUnbalancedTags:v}=await import("./chunk-z8p6tk5z.js");v(p,r)}catch{}try{let{processESImports:v}=await import("./chunk-hg4y1p7w.js");p=await v(p,t,r,o,S)}catch(v){if(o.debug)console.warn(`[stx] partial ES import extraction skipped for ${r}:`,v instanceof Error?v.message:v)}let i=p,D=ae(i);if(D)i=D.content.trim();let R=p.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").match(/<style\b([^>]*)>([\s\S]*?)<\/style>/i),X="";if(R)X=`<style${R[1]}>${R[2]}</style>`;let F=[];i=i.replace(/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,(v,q,y)=>{if(!ft(q))return"";return F.push({attrs:q,body:y}),`__STX_DATA_BLOCK_${F.length-1}__`}),i=i.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let b={...t};b.__stx_signals_gate=be(p,r);for(let[v,q]of Object.entries(I))b[v]=q;let J=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,N=[...p.matchAll(J)].sort((v,q)=>{let y=(v[1]||"").includes("server"),K=(q[1]||"").includes("server");return Number(K)-Number(y)}),M="",A=null,P=!1,tt=!1;for(let v of N){let q=v[1]||"",y=v[2]||"";if(ft(q))continue;let K=q.includes("server"),wt=Ne(q);if(!K&&!/\bsrc\s*=/i.test(q))Re(y,r,o.strict);if(!K&&y.trim()){let{interpolateScriptExpressions:Z}=await import("./chunk-dpz9tx1f.js");y=Z(y,b,h)}let ct="";try{let{extractAndStripCssImports:Z,renderVendorStyleTags:Q}=await import("./chunk-d0nsehz6.js"),nt=Z(y,{filePath:r,projectRoot:process.cwd()});y=nt.code,ct=Q(nt.styles)}catch(Z){if(o.debug)console.warn(`[stx] vendor-css extractor skipped for ${r}:`,Z instanceof Error?Z.message:Z)}if(wt&&y.trim())y=De(y);if(!K){try{let{injectBrowserCoreAutoImports:Q}=await import("./chunk-d0nsehz6.js");y=Q(y).code;let{hasUserImports:nt,bundleClientScript:bt}=await import("./chunk-6bn5t1cc.js");if(nt(y))y=await bt(y,r,{projectRoot:process.cwd()})}catch(Q){if(o.debug)console.warn(`[stx] bundler skipped for ${r}:`,Q instanceof Error?Q.message:Q)}let{stripStxRuntimeImports:Z}=await import("./chunk-jzejh7ch.js");y=Z(y)}let dt=$t(y);if(!K){let{extractBridgeData:Z,generateServerDataBridge:Q}=await import("./chunk-d0nsehz6.js"),nt=Q(y,Z(b));if(nt)y=`${nt}
|
|
43
|
-
${y}`}if(dt&&!K){P=!0,A=ut(r,t);let Z=T(y),Q=gt(Z,A);M+=`${ct}<script data-stx-scoped data-stx-run="always" data-stx-owner="${A}">${Q}</script>
|
|
44
|
-
`;continue}if(K)try{let{extractVariables:Z}=await import("./chunk-yr9shdxa.js");await Z(y,b,r)}catch(Z){if(o.debug)console.warn(`Warning: Could not extract variables from server script in ${r}:`,Z)}if(!K&&!dt){let Z=q.replace(/\bclient\b/i,"").trim();A=ut(r,t);let Q=T(y),nt=gt(Q,A);if(/__scopeRegistration\["(?!__stx)[^"]+"\]\s*=|Object\.defineProperty\(__scopeRegistration, "(?!__stx)/.test(nt))tt=!0;M+=`${ct}<script data-stx-scoped data-stx-run="always" data-stx-owner="${A}"${Z?` ${Z}`:""}>${nt}</script>
|
|
45
|
-
`}}if(F.length>0){let{interpolateScriptExpressions:v}=await import("./chunk-dpz9tx1f.js");i=i.replace(/__STX_DATA_BLOCK_(\d+)__/g,(q,y)=>{let K=F[Number(y)];return`<script${K.attrs}>${v(K.body,b,h)}</script>`})}if(A){let v=It(i,A);if(i=v.html,v.mergedIntoExisting){let y=A,K=v.mergedIntoExisting;M=M.split(`'${y}'`).join(`'${K}'`).split(`"${y}"`).join(`"${K}"`),A=K}else if(!v.stamped&&P&&!lt.has(r))lt.add(r),console.warn(`[stx] ${C.relative(process.cwd(),r)} declares signals but has no element to scope them to, so nothing in it will hydrate. Wrap the partial's markup in a single root element.`);if(v.stamped&&v.root!=="body"&&(P||tt)&&!pt.has(r)){let y=Sl(i);if(y.length>1)pt.add(r),console.warn(`[stx] ${C.relative(process.cwd(),r)} declares ${P?"signals":"bindings"} and has ${y.length} top-level elements (${y.map((K)=>`<${K}>`).join(", ")}). Only the first is scoped, so bindings in the others cannot see what this partial's script declares. Wrap the partial's markup in a single root element.`)}let q=v.stamped&&v.root!==null&&ar(v.root);M=Rt(M,q?A:null)}if(i.includes("@include")||i.includes("@partial"))i=await Dr(i,b,r,o,S,s);let{processLoops:st,reportDeferredLoopWarnings:ot}=await import("./chunk-ktk8zm60.js"),G=st(i,b,r,void 0,!0);G=ee(G,b,r),G=ot(G);let{processMetaDirectives:ht,processSeoDirective:xt,processStructuredData:_t}=await import("./chunk-hjmnsa6a.js");if(G=ht(G,b,r,o),G=_t(G,b,r),G=xt(G,b,r,o),G=k(G,b,r),X)G+=`
|
|
46
|
-
`+X;if(M)G+=`
|
|
47
|
-
`+M;return G}catch(p){if(p instanceof z)throw p;let i=p instanceof Error?p.message:String(p);return j(h,`Error processing include ${h}: ${i}`,x,f)}}let Y=/@include\s*\(/g,V;while((V=Y.exec(e))!==null){let h=V.index,I=h+V[0].length-1,x=1,f=I+1;while(f<e.length&&x>0){if(e[f]==="(")x++;else if(e[f]===")")x--;f++}if(x!==0)break;let r=e.substring(h,f),w=e.substring(I+1,f-1),p=w.match(/^\s*['"]([^'"]+)['"]/);if(!p){Y.lastIndex=f;continue}let i=p[1],D,W=w.substring(p[0].length),R=at(W,0);if(R!==-1)D=W.substring(R+1).trim();let X={};if(D)try{X=E(D,t)}catch(b){let J=b instanceof Error?b.message:String(b);e=e.replace(r,g("Include",`Error parsing include variables for ${i}: ${J}`,c,a,h)),Y.lastIndex=0;continue}let F=await et(i,X,a,h);e=e.substring(0,h)+F+e.substring(f),Y.lastIndex=0}return e}function Mr(a,t){let c=a;function o(S,s,m,e){let O=S,H=!0;while(H){H=!1;let it=new RegExp(`@${s}\\(['"]([^'"]+)['"]\\)`),j=O.match(it);if(!j||j.index===void 0)break;let et=j.index,Y=j[1],V=et+j[0].length,h=new RegExp(`@${s}\\(`),I=new RegExp(`@${m}(?![a-z])`),x=1,f=V,r=-1;while(x>0&&f<O.length){let p=O.slice(f),i=p.match(h),D=p.match(I),W=i?f+i.index:1/0,R=D?f+D.index:1/0;if(W<R)x++,f=W+(i[0].length||1);else if(R<1/0){if(x--,x===0){r=R;break}f=R+m.length+1}else break}if(r===-1)break;let w=O.slice(V,r);if(!t[Y])t[Y]=[];if(e)t[Y].unshift(w);else t[Y].push(w);O=O.substring(0,et)+O.substring(r+`@${m}`.length),H=!0}return O}return c=o(c,"push","endpush",!1),c=o(c,"prepend","endprepend",!0),c}function Lr(a,t){return a.replace(/@stack\(['"]([^'"]+)['"]\)/g,(c,o)=>{if(!t[o]||t[o].length===0)return"";return t[o].join(`
|
|
48
|
-
`)})}
|
|
49
|
-
export{lp,Sl,We,sa,up,Dr,Mr,Lr};
|
package/dist/chunk-jzejh7ch.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fp,Cl,oo,Fr,io,ao,zr,Hr,Vr,co,ia,_l,mt}from"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import{L}from"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{fp as clearScriptScanCache,zr as convertServerLoopAttributesToDirectives,io as convertSignalDirectivesToAttributes,Hr as convertSignalLoopsToAttributes,L as extractExports,ia as findMarkupIndexOutsideScripts,Fr as hasSignalsSyntax,oo as parseLoopExpression,ao as preEvalLiteralReactiveIfs,Vr as processScriptSetup,co as processSignals,_l as rewriteStxImportSpecifiers,Cl as scanScriptTags,mt as stripStxRuntimeImports};
|
package/dist/chunk-ktk8zm60.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nr,qn,xl}from"./chunk-fn6x5b29.js";import"./chunk-8gewq710.js";import"./chunk-wh838rdh.js";import{Et}from"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{xl as declareBareLoopHead,Et as parseLoopBinding,qn as processLoops,Nr as reportDeferredLoopWarnings};
|
package/dist/chunk-m2vpa496.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{lp,Sl,We,sa,up,Dr,Mr,Lr}from"./chunk-jw0q2f5e.js";import"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-wh838rdh.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{up as clearOnceStore,sa as onceStore,We as partialsCache,Dr as processIncludes,Mr as processStackPushDirectives,Lr as processStackReplacements,lp as resetUnscopedSignalWarnings,Sl as topLevelElements};
|
package/dist/chunk-qszk2tcw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zs,zd,Hd}from"./chunk-jc64acnb.js";import"./chunk-pc74fca2.js";import"./chunk-0mr9wx5c.js";import"./chunk-9y2ncrnq.js";import"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Hd as clearComposableCache,zd as getComposableScript,zs as listComposableModules};
|
package/dist/chunk-r95kmjj1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{N,Rl,po,i,R,xp,Sp}from"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{R as config,N as defaultConfig,xp as defineStxConfig,po as discoverConfig,i as loadStxConfig,Rl as resolveStxDirectories,Sp as validateConfig};
|
package/dist/chunk-vstv3ncc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{rd,Li,il,sd,od,id,ad,cd,al,cl,ld,ud,dd,pd}from"./chunk-ra1kfa6e.js";import"./chunk-eyrkpf0q.js";import"./chunk-hyd0s2ew.js";import"./chunk-prf164ct.js";import"./chunk-fn6x5b29.js";import"./chunk-jw0q2f5e.js";import"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-sj0rrn72.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{il as SUSPENSE_RESOLVER_RUNTIME,Li as buildSuspenseResolveScript,cd as createStreamRenderer,id as extractStreamBoundaries,pd as generateHydrationRuntime,cl as islandDirective,ud as processSectionDirectives,od as processStreamDirectives,ld as registerStreamingDirectives,sd as renderStreamingPage,rd as streamTemplate,ad as streamTemplateSimple,dd as streamToResponse,al as streamingSuspenseDirective};
|
package/dist/chunk-wv541wm9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ku}from"./chunk-pb5k6sbj.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Ku as buildApp};
|
package/dist/chunk-x5v00zg4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tu}from"./chunk-qmvwc88h.js";import"./chunk-eyrkpf0q.js";import"./chunk-hyd0s2ew.js";import"./chunk-prf164ct.js";import"./chunk-fn6x5b29.js";import"./chunk-jw0q2f5e.js";import"./chunk-nsxecff6.js";import"./chunk-8gewq710.js";import"./chunk-kgbf3z87.js";import"./chunk-nfafd1zr.js";import"./chunk-wh838rdh.js";import"./chunk-sj0rrn72.js";import"./chunk-ajgxj2t9.js";import"./chunk-z7s1aqyn.js";import"./chunk-a3d0g4mr.js";import"./chunk-04kg16qs.js";import"./chunk-h09a03ay.js";import"./chunk-qrt8b179.js";import"./chunk-y4nhcrf1.js";import"./chunk-5c14xpmg.js";import"./chunk-2h8ea0we.js";import"./chunk-4e0z858k.js";import"./chunk-ce6zddpf.js";import"./chunk-4qwvqbzf.js";export{Tu as startInteractive};
|
package/dist/chunk-zrqremja.js
DELETED