@stacksjs/stx 0.2.636 → 0.2.637
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-0tbsqnq3.js +2 -0
- package/dist/{chunk-mek121wh.js → chunk-1qt006mx.js} +46 -32
- package/dist/{chunk-104xw4ps.js → chunk-1t0m4pwg.js} +2 -2
- package/dist/chunk-2t5qqn27.js +2 -0
- package/dist/chunk-2xzttttk.js +2 -0
- package/dist/{chunk-c06b0akz.js → chunk-47shfmkf.js} +1 -1
- package/dist/chunk-499wgv9j.js +2 -0
- package/dist/{chunk-vvseb46a.js → chunk-4dpq1bnh.js} +1 -1
- package/dist/{chunk-cwvd8dc3.js → chunk-4w5rkk9d.js} +1 -1
- package/dist/{chunk-5pyv9gjh.js → chunk-55pjhpdq.js} +1 -1
- package/dist/chunk-5jk2nqk5.js +2 -0
- package/dist/{chunk-1s02ff6n.js → chunk-5kbkx0np.js} +2 -2
- package/dist/{chunk-mwqas1qk.js → chunk-5wyp57g3.js} +1 -1
- package/dist/{chunk-bx3ar1wz.js → chunk-639ngkgb.js} +1 -1
- package/dist/{chunk-gcj5jfbv.js → chunk-6mnwvn9v.js} +2 -2
- package/dist/{chunk-s15nte19.js → chunk-6tp66rf3.js} +1 -1
- package/dist/{chunk-arrvcn7c.js → chunk-6vmvra0f.js} +1 -1
- package/dist/{chunk-4a4zc8yd.js → chunk-6vtq0atz.js} +1 -1
- package/dist/{chunk-26g3m2mg.js → chunk-6w3nph4g.js} +2 -2
- package/dist/{chunk-7p8kyf4z.js → chunk-70et0fbw.js} +2 -2
- package/dist/chunk-72sev9mm.js +2 -0
- package/dist/chunk-8s1dkcwk.js +2 -0
- package/dist/chunk-8xqh5kjp.js +2 -0
- package/dist/{chunk-2kppq4pg.js → chunk-8xx631c2.js} +3 -3
- package/dist/{chunk-zsq0754x.js → chunk-972hgzxv.js} +8 -8
- package/dist/{chunk-0j9f54wv.js → chunk-9939fjh4.js} +2 -2
- package/dist/{chunk-mcs3wbs4.js → chunk-9f79c8pv.js} +22 -22
- package/dist/{chunk-215fsx0k.js → chunk-9gvq1spk.js} +1 -1
- package/dist/{chunk-4p4qp5ka.js → chunk-9jetjy0s.js} +1 -1
- package/dist/chunk-9nvrkpee.js +2 -0
- package/dist/{chunk-1071avjd.js → chunk-9xaztqhw.js} +1 -1
- package/dist/chunk-adxq3fkh.js +2 -0
- package/dist/{chunk-69n2ty1n.js → chunk-b56p8vqw.js} +3 -3
- package/dist/chunk-byrmpd9m.js +2 -0
- package/dist/{chunk-jdx4za9p.js → chunk-cq331w4g.js} +1 -1
- package/dist/{chunk-xgd6xgvz.js → chunk-dcwhp21g.js} +17 -17
- package/dist/{chunk-kztnn301.js → chunk-degxqdbb.js} +1 -1
- package/dist/chunk-dmmpezc0.js +2 -0
- package/dist/{chunk-dtg82vm2.js → chunk-dyg6sadv.js} +1 -1
- package/dist/chunk-evwbat9f.js +2 -0
- package/dist/{chunk-krchxt50.js → chunk-f2pk3qgg.js} +1 -1
- package/dist/{chunk-nxn7gnpq.js → chunk-f9wse4zx.js} +1 -1
- package/dist/chunk-g67016zr.js +2 -0
- package/dist/{chunk-mn97jhaq.js → chunk-g6s0xdgb.js} +3 -3
- package/dist/{chunk-7ftn9ber.js → chunk-gmxrckgj.js} +3 -3
- package/dist/{chunk-fk79x8ns.js → chunk-gsp3627d.js} +2 -2
- package/dist/chunk-h4fteh7w.js +2 -0
- package/dist/chunk-hf340t26.js +2 -0
- package/dist/{chunk-26gr5d4w.js → chunk-j00v4m56.js} +8 -8
- package/dist/{chunk-g1mp4e7h.js → chunk-j6fxzkn5.js} +1 -1
- package/dist/chunk-ky043mkv.js +2 -0
- package/dist/{chunk-0bptz1km.js → chunk-m690cqee.js} +251 -251
- package/dist/{chunk-hjtym7d9.js → chunk-m92q2jyt.js} +5 -5
- package/dist/{chunk-eeqw8jkw.js → chunk-mmt0mv1z.js} +5 -5
- package/dist/{chunk-xekmvpha.js → chunk-mqmxhggf.js} +1 -1
- package/dist/{chunk-51ea655x.js → chunk-myayey15.js} +1 -1
- package/dist/{chunk-z5ewms99.js → chunk-n7jc6gn3.js} +1 -1
- package/dist/chunk-nf8r47j1.js +2 -0
- package/dist/chunk-nfhd1gct.js +2 -0
- package/dist/{chunk-7jp0w5j8.js → chunk-nh812wcz.js} +1 -1
- package/dist/{chunk-e2p8ytdd.js → chunk-nkgzwyad.js} +1 -1
- package/dist/{chunk-phqtp1b4.js → chunk-nn1mncgw.js} +1 -1
- package/dist/chunk-ns4pc13z.js +2 -0
- package/dist/{chunk-b2v6v7w8.js → chunk-phdfw45x.js} +1 -1
- package/dist/{chunk-xdqwq7a6.js → chunk-pmyqj6yq.js} +1 -1
- package/dist/chunk-pnjwynpc.js +2 -0
- package/dist/{chunk-kmzc09w6.js → chunk-pv6yw985.js} +4 -4
- package/dist/{chunk-tw10tgz8.js → chunk-qmh6f1bt.js} +7 -7
- package/dist/{chunk-95ygdn0n.js → chunk-r00nn2qs.js} +1 -1
- package/dist/{chunk-k5pm9bex.js → chunk-re2mry1d.js} +1 -1
- package/dist/{chunk-9hqjezhx.js → chunk-s775b8ra.js} +2 -2
- package/dist/{chunk-z8ftsz64.js → chunk-vd63xejx.js} +1 -1
- package/dist/{chunk-77pj0xem.js → chunk-vq4sh8aq.js} +1 -1
- package/dist/{chunk-ryj2m6fk.js → chunk-xqr58cxk.js} +1 -1
- package/dist/{chunk-jtvrfwd8.js → chunk-y19k3vt3.js} +1 -1
- package/dist/chunk-y6z9qwtn.js +2 -0
- package/dist/chunk-ypgsyh5k.js +2 -0
- package/dist/{chunk-tvs9a3vk.js → chunk-z5wnd2qa.js} +1 -1
- package/dist/{chunk-k4xytaq3.js → chunk-zt7b6vwa.js} +4 -4
- package/dist/cli.js +11 -11
- package/dist/craft-bridge.js +4 -1
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/native-backend.d.ts +11 -0
- package/dist/native-backend.js +65 -0
- package/dist/native-build.d.ts +1 -0
- package/dist/native-build.js +45 -4
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/package.json +5 -5
- package/dist/chunk-1ejpz9gv.js +0 -2
- package/dist/chunk-2yvdnffe.js +0 -2
- package/dist/chunk-6g4kd71m.js +0 -2
- package/dist/chunk-6pewcgfq.js +0 -2
- package/dist/chunk-6vjg5xf3.js +0 -2
- package/dist/chunk-6vqk6yfm.js +0 -2
- package/dist/chunk-7z6ryf20.js +0 -2
- package/dist/chunk-8scndwf6.js +0 -2
- package/dist/chunk-e21q08vs.js +0 -2
- package/dist/chunk-ffjvqjyh.js +0 -2
- package/dist/chunk-ft6gfbr5.js +0 -2
- package/dist/chunk-h0d5vg33.js +0 -2
- package/dist/chunk-jp3vgscy.js +0 -2
- package/dist/chunk-ms4121x1.js +0 -2
- package/dist/chunk-n708h31w.js +0 -2
- package/dist/chunk-pwn2keqq.js +0 -2
- package/dist/chunk-r0s7vdha.js +0 -2
- package/dist/chunk-rwjr5bmd.js +0 -2
- package/dist/chunk-spz80xnc.js +0 -2
- package/dist/chunk-vj5fghnv.js +0 -2
- package/dist/chunk-wywkr0rt.js +0 -2
- package/dist/chunk-xj5rk4pj.js +0 -2
- package/dist/chunk-y1j13dha.js +0 -2
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{or,qe,ui,yc}from"./chunk-w41kp60h.js";import{sr,ds,gc,mc,hc}from"./chunk-17x6e5mm.js";import{ai,ci,li,pc,fc}from"./chunk-kjspmegt.js";import{de,Tt,ps}from"./chunk-9yk5rasj.js";import{vl,wl,xl,Sl,Mr,Hd}from"./chunk-eyy6zmdk.js";import B from"fs";import w from"path";import O from"fs";import u from"path";var v=[72,96,128,144,152,192,384,512],S=[120,152,167,180],P=[16,32];async function M(n,t){let e={success:!0,generatedFiles:[],errors:[],warnings:[]},r=n.pwa?.icons;if(!r?.src)return e.errors.push("No source icon specified in pwa.icons.src"),e.success=!1,e;let o=u.isAbsolute(r.src)?r.src:u.resolve(process.cwd(),r.src);if(!await Bun.file(o).exists())return e.errors.push(`Source icon not found: ${o}`),e.success=!1,e;let a=u.resolve(t,r.outputDir||"pwa-icons");try{O.mkdirSync(a,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${a}`),e.success=!1,e}let s=r.sizes||v,l=r.generateWebP??!0,p=r.generateAppleIcons??!0;try{let c;try{c=await import("sharp")}catch{return e.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-nfhd1gct.js"),o=await Bun.file(e).text();return await r(o,{},e,n,new Set)}catch(r){console.warn(`[PWA] Failed to process custom offline page: ${r}`)}else console.warn(`[PWA] Custom offline page not found: ${e}`)}return E(n)}function E(n){let t=n.pwa?.offline,e=n.pwa?.manifest,r=t?.fallbackTitle||"You are offline",o=t?.fallbackMessage||"Please check your internet connection and try again.",a=e?.themeColor||"#4f46e5",s=e?.shortName||e?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|
package/dist/ssg.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-bsts9pr5.js";import"./chunk-
|
|
2
|
+
import"./chunk-bsts9pr5.js";import"./chunk-m92q2jyt.js";import"./chunk-y255yybn.js";import{ft,gt,mt,ht,yt,bt}from"./chunk-gsp3627d.js";import"./chunk-g1ae3haw.js";import"./chunk-ahyq08mp.js";import{f,Ye,j,Q,n,o}from"./chunk-m690cqee.js";import"./chunk-qmh6f1bt.js";import{Cr}from"./chunk-6vmvra0f.js";import"./chunk-a0ygyftk.js";import"./chunk-cq331w4g.js";import"./chunk-pvfx0dgz.js";import"./chunk-1m5cjrpw.js";import"./chunk-6w3nph4g.js";import{pe,$t,Rt}from"./chunk-9gvq1spk.js";import{si,oi,ii}from"./chunk-gqz26wza.js";import{Et,mn,hn}from"./chunk-kxbw0e2f.js";import"./chunk-r00nn2qs.js";import{a}from"./chunk-8cqx63aw.js";import x from"fs";import g from"path";import{createHash as vt}from"crypto";function Pt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Dt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function kt(t){return Bun.hash(t).toString(16)}function it(t,i={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,r=t.replace(Dt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(i.minify)h=Pt(h);let S=kt(h);if(!s.has(S))s.set(S,h);let P=i.integrity?` data-stx-integrity="sha384-${vt("sha384").update(h).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${l}" data-stx-src="/_stx/islands/${S}.js"${P}${w}></script>`}),c=Array.from(s,([e,l])=>({hash:e,code:l}));return{html:r,chunks:c}}var Ct=new Set(["visible","idle"]);function st(t){if(!t.includes("data-stx-src="))return t;let i=new Map,s=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,r;while((r=s.exec(t))!==null)i.set(r[1],r[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,l;while((l=e.exec(t))!==null)if(Ct.has(i.get(l[1])||""))c.add(l[2]);let w=t.lastIndexOf("</head>");if(c.size===0||w===-1)return t;let y=Array.from(c).filter((h)=>!t.includes(`rel="prefetch" href="${h}"`)).map((h)=>`<link rel="prefetch" href="${h}" as="script">`).join("");if(!y)return t;return t.slice(0,w)+y+t.slice(w)}var It=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function q(t){let i=t.trim();if(!i)return null;let s=/^https?:\/\//i.test(i)?i:`https://${i}`;try{return new URL(s).origin+new URL(s).pathname.replace(/\/$/,"")}catch{return null}}function Bt(t){for(let i of It){let s=t[i];if(!s)continue;let r=q(s);if(r)return{url:r,source:"env",via:i}}return null}function at(t){if(!t||typeof t!=="object")return null;let i=t,s=i.site?.url??i.url??i.app?.url;return typeof s==="string"?q(s):null}async function jt(t){let{existsSync:i}=await import("fs"),s=await import("path");for(let r of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=s.resolve(t,r);if(!i(c))continue;try{let e=await import(c),l=at(e.default??e);if(l)return l}catch{}}return null}async function ot(t={}){let i=t.cwd??process.cwd(),s=t.env??process.env;if(t.explicit){let l=q(t.explicit);if(l)return{url:l,source:"option"}}let r=at(t.stxConfig);if(r)return{url:r,source:"stx.config",via:"site.url"};let c=await jt(i);if(c)return{url:c,source:"site.config",via:"url"};let e=Bt(s);if(e)return e;return{url:"http://localhost",source:"fallback"}}function ct(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
|
|
3
3
|
`)}class lt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,i=""){this.cacheDir=t,this.salt=i}async load(){if(this.loaded)return;let t=g.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let i=JSON.parse(await Bun.file(t).text());for(let[s,r]of Object.entries(i))this.cache.set(s,r)}catch{}this.loaded=!0}async save(){await x.promises.mkdir(this.cacheDir,{recursive:!0});let t=g.join(this.cacheDir,"build-cache.json"),i={};for(let[s,r]of this.cache)i[s]=r;await Bun.write(t,JSON.stringify(i))}getHash(t,i){let s=x.statSync(t),r=`${this.salt}|${t}:${s.mtimeMs}`;for(let e of i)if(x.existsSync(e)){let l=x.statSync(e);r+=`:${e}:${l.mtimeMs}`}let c=0;for(let e=0;e<r.length;e++){let l=r.charCodeAt(e);c=(c<<5)-c+l,c=c&c}return Math.abs(c).toString(36)}get(t,i){let s=this.cache.get(t);if(!s)return null;let r=this.getHash(i,s.dependencies??[]);if(s.hash!==r)return this.cache.delete(t),null;return s.html}set(t,i,s,r){let c=this.getHash(i,s);this.cache.set(t,{hash:c,html:r,generatedAt:Date.now(),dependencies:s})}}class ut{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let i=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return g.join(this.cacheDir,"isr",i)}async get(t){let i=this.getFilePath(t);if(!await Bun.file(i).exists())return null;try{return JSON.parse(await Bun.file(i).text())}catch{return null}}async set(t,i){let s=this.getFilePath(t);await x.promises.mkdir(g.dirname(s),{recursive:!0}),await Bun.write(s,JSON.stringify(i))}async invalidate(t){let i=this.getFilePath(t);if(await Bun.file(i).exists())await x.promises.unlink(i)}async invalidatePattern(t){let i=g.join(this.cacheDir,"isr");if(!x.existsSync(i))return;let s=await x.promises.readdir(i);for(let r of s){let c=r.replace(/_/g,"/").replace(".json","");if(t.test(c))await x.promises.unlink(g.join(i,r))}}async needsRevalidation(t){let i=await this.get(t);if(!i)return!0;return Date.now()>i.revalidateAfter}}async function Ft(t){try{let s=(await Bun.file(t).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!s)return null;let r=s[1];if(!r.includes("getStaticPaths"))return null;let c=r.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!c)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${c[1]}
|
|
@@ -41,7 +41,7 @@ ${t.map((r)=>{let c=new URL(r.loc,i).href,e=` <url>
|
|
|
41
41
|
${s.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function zt(t={}){let i=Date.now();Rt();let s=await o(process.cwd()),r=s.build||{},c=await ot({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ct());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-
|
|
44
|
+
</rss>`}async function zt(t={}){let i=Date.now();Rt();let s=await o(process.cwd()),r=s.build||{},c=await ot({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(ct());let e={router:t.router??s?.router??{},pagesDir:t.pagesDir||r.pagesDir||"pages",outputDir:t.outputDir||r.outputDir||"dist",baseUrl:t.baseUrl||r.baseUrl||"/",domain:c.url,revalidate:t.revalidate??r.revalidate??!1,sitemap:t.sitemap??r.sitemap??!0,sitemapExclude:t.sitemapExclude||r.sitemapExclude||[],robots:t.robots??r.robots??!0,rss:t.rss??r.rss??!1,concurrency:t.concurrency||r.concurrency||10,cache:t.cache??r.cache??!0,cacheDir:t.cacheDir||r.cacheDir||a(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??r.minify??!0,generate404:t.generate404??r.generate404??!0,publicDir:t.publicDir||r.publicDir||"public",trailingSlash:t.trailingSlash??r.trailingSlash??!1,cleanOutput:t.cleanOutput??r.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||s?.partialsDir||"",componentsDir:t.componentsDir||s?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},l={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},w=new Set,y=0,h={},S={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&x.existsSync(e.outputDir))await x.promises.rm(e.outputDir,{recursive:!0});await x.promises.mkdir(e.outputDir,{recursive:!0});let D=e.cacheSalt;if(!D){let{resolveUserCssConfig:u,fingerprintConfig:m}=await import("./chunk-y6z9qwtn.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-y19k3vt3.js"),b=await p(e.publicDir,e.outputDir);if(b.count>0)console.log(`Optimized ${b.count} image(s) for responsive delivery`),D=[D,b.fingerprint].filter(Boolean).join(":");let B=new lt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-y6z9qwtn.js");await u('<div class="bg-black"></div>')}catch{}ft();let pt=s?.routeMiddleware?.dir||"middleware";await mt(process.cwd(),pt);let H=gt();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let wt=s?.routeMiddleware?.global||[];ii(s?.layoutsDir,a(process.cwd()));let V=j(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${V.length} routes`);let G=[];for(let u of V){let m=await Ot(u);for(let v of m)G.push({route:u,url:v.url,params:v.params,props:v.props,revalidate:v.revalidate??e.revalidate})}l.totalPages=G.length,console.log(`Generating ${l.totalPages} pages...`);let L=[],K=[];for(let u=0;u<G.length;u+=e.concurrency)K.push(G.slice(u,u+e.concurrency));for(let u of K)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:M,props:St,revalidate:Z}=m;try{await e.hooks.onPageStart?.(d);let F=await Bun.file(v.filePath).text(),O=Jt(F),xt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],tt=[...wt,...xt];if(tt.length>0){let C=ht(d,M,O||{}),T=yt(C,null,void 0,{isServer:!0}),E=await bt(tt,T);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,_=Vt(String(R),d),A=Kt(d,e);await x.promises.mkdir(g.dirname(A),{recursive:!0}),await Bun.write(A,_),l.successCount++,l.pages.push({route:d,outputPath:A,size:Buffer.byteLength(_),cached:!1}),L.push({loc:d,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${d} \u2192 redirect to ${R}`);return}if(E.abort){let R=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${d} \u2014 middleware aborted: ${R}`);return}}let et=F.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(et)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${et[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:M})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,rt=!1;if(e.cache){if(k=B.get(d,v.filePath),k)rt=!0,l.cachedCount++}if(!k){let C=await dt(v,M,St,e,s);if(k=C.html,e.failOnIncludeError&&C.includeFailures.length>0)throw Error(`${C.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.637",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@stacksjs/ts-css": "^0.3.11",
|
|
130
130
|
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.
|
|
131
|
+
"@stacksjs/desktop": "0.2.637",
|
|
132
|
+
"@stacksjs/sanitizer": "0.2.637",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"bun-plugin-stx": "0.2.
|
|
134
|
+
"bun-plugin-stx": "0.2.637",
|
|
135
135
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
136
|
+
"stx-router": "0.2.637",
|
|
137
137
|
"ts-broadcasting": "^0.0.11",
|
|
138
138
|
"ts-images": "^0.2.22",
|
|
139
139
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-1ejpz9gv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Y,vs,ws,Ec,Dt,fi,xs,gi,td,Ce,wn,_e}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import{Wi,s}from"./chunk-7p8kyf4z.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Y as BROWSER_CORE_IMPORTS,Ec as STX_AUTO_IMPORTS,vs as extractAndStripCssImports,Ce as extractBridgeData,Wi as findInterpolationEnd,gi as generateAutoImportDestructuring,td as generateBrowserAutoImportDestructuring,wn as generateServerDataBridge,Dt as injectBrowserCoreAutoImports,_e as processClientScript,xs as referencesName,ws as renderVendorStyleTags,s as stripCommentsAndLiterals,fi as transformAutoImports};
|
package/dist/chunk-2yvdnffe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ot,ms,hs,ys,ed,bs}from"./chunk-26g3m2mg.js";import"./chunk-1m5cjrpw.js";import"./chunk-a0ygyftk.js";import"./chunk-fk79x8ns.js";export{hs as buildServerApi,ed as createServerApi,Ot as discoverServerApi,ms as generateApiTypes,bs as isServerApiSource,ys as productionApiDispatcher};
|
package/dist/chunk-6g4kd71m.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mt,Ms,Di,Yc}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Yc as declareBareLoopHead,Mt as parseLoopBinding,Di as processLoops,Ms as reportDeferredLoopWarnings};
|
package/dist/chunk-6pewcgfq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gd,vi,md,wi,Mc,Lc,Bt,_n,hd,jc,Bc,yd,f}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Bt as buildCss,jc as extractClassNames,Lc as fingerprintConfig,Bc as generateCss,hd as getCachedCSS,gd as getCssServeAsset,f as injectCss,vi as loadCssEngine,wi as loadCssEngineConfig,_n as rebuildCss,md as resetCssCache,Mc as resolveUserCssConfig,yd as withLinkedModuleBundles};
|
package/dist/chunk-6vjg5xf3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ha,ya}from"./chunk-mcs3wbs4.js";import"./chunk-7jp0w5j8.js";import"./chunk-5pyv9gjh.js";import"./chunk-26gr5d4w.js";import"./chunk-0j9f54wv.js";import"./chunk-phqtp1b4.js";import"./chunk-6avpd901.js";import"./chunk-nxn7gnpq.js";import{Po}from"./chunk-k4xytaq3.js";import"./chunk-fztvkacg.js";import"./chunk-bx3ar1wz.js";import"./chunk-xdqwq7a6.js";import"./chunk-45xhjrha.js";import"./chunk-9hqjezhx.js";import"./chunk-cwvd8dc3.js";import"./chunk-5e063mgs.js";import"./chunk-48yja477.js";import"./chunk-aztp8r80.js";import"./chunk-drrczm0b.js";import"./chunk-fwdptew6.js";import"./chunk-mwqas1qk.js";import"./chunk-b4j5bpec.js";import"./chunk-zsq0754x.js";import"./chunk-wjq1wqn6.js";import"./chunk-60azcvwr.js";import"./chunk-88p10v0w.js";import"./chunk-c858mepd.js";import"./chunk-qy11cp1v.js";import"./chunk-69n2ty1n.js";import"./chunk-xgd6xgvz.js";import"./chunk-z8ftsz64.js";import"./chunk-2kppq4pg.js";import"./chunk-7ftn9ber.js";import"./chunk-gqz26wza.js";import"./chunk-215fsx0k.js";import"./chunk-26g3m2mg.js";import"./chunk-bsts9pr5.js";import{_e,xn,Sn,Q,u,n,br,A,o,be}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{br as buildWebComponents,Sn as cacheTemplate,xn as checkCache,Po as classifyAllScripts,ha as createMiddleware,ya as createRoute,A as defaultConfig,u as extractVariables,Q as injectRouterScript,o as loadStxConfig,_e as processClientScript,n as processDirectives,be as readMarkdownFile};
|
package/dist/chunk-6vqk6yfm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Yo,Zo,Qo,Yu}from"./chunk-mek121wh.js";import"./chunk-2kppq4pg.js";import"./chunk-7ftn9ber.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Yo as buildNative,Yu as default,Qo as getAvailableFormats,Zo as getAvailableTargets};
|
package/dist/chunk-7z6ryf20.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Oa,ql,Na,Da,Gl,Kl}from"./chunk-cwvd8dc3.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Kl as applySlots,Gl as extractSlotContent,ql as parseSlotElement,Oa as parseSlots,Da as processSlots,Na as renderSlot};
|
package/dist/chunk-8scndwf6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tu,$u}from"./chunk-69n2ty1n.js";import"./chunk-215fsx0k.js";import"./chunk-26g3m2mg.js";import"./chunk-bsts9pr5.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{$u as clearStoreCache,Tu as getStoreScript};
|
package/dist/chunk-e21q08vs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zt,Uc,Wc,qc,Gc,Kc,u,Xc,Ds,Jc,Oi,Ni}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{zt as STX_ENGINE_BINDING_NAMES,Ds as convertToCommonJS,Oi as extractScriptFromTemplate,u as extractVariables,Ni as hasVariables,Xc as isCompleteImport,Kc as isMissingBindingFailure,qc as isModuleResolutionFailure,Gc as isSyntaxFailure,Jc as splitDeclaration,Uc as stripTypeScript,Wc as withoutStxReferrer};
|
package/dist/chunk-ffjvqjyh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{et,Q,zs,Hs,$n,n}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{$n as buildModulesTag,Q as injectRouterScript,n as processDirectives,zs as processJsonDirective,Hs as processOnceDirective,et as validateClientScript};
|
package/dist/chunk-ft6gfbr5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{En,zc,As}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import{Oe}from"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Oe as freeIdentifiers,As as processComponents,zc as processESImports,En as rendersAsElement};
|
package/dist/chunk-h0d5vg33.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{A,al,Ws,o,P,Cd,_d}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{P as config,A as defaultConfig,Cd as defineStxConfig,Ws as discoverConfig,o as loadStxConfig,al as resolveStxDirectories,_d as validateConfig};
|
package/dist/chunk-jp3vgscy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ea,Ao,$l,Ta,$a,Rl,Al}from"./chunk-phqtp1b4.js";import"./chunk-zsq0754x.js";import"./chunk-215fsx0k.js";import"./chunk-26g3m2mg.js";import"./chunk-bsts9pr5.js";import{tt,Fc}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Ea as buildVirtualSource,tt as extractScriptBlocks,Fc as extractTemplateExpressions,Ta as findRuntimeTypeDeclarations,$a as findStxModuleDeclarations,Al as formatTypecheckDiagnostics,$l as sourcePathFor,Rl as typecheckStxFiles,Ao as virtualPathFor};
|
package/dist/chunk-ms4121x1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xd,Zc,Re,Mi,Sd,Ls,js,Bs}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Sd as clearOnceStore,Mi as onceStore,Re as partialsCache,Ls as processIncludes,js as processStackPushDirectives,Bs as processStackReplacements,xd as resetUnscopedSignalWarnings,Zc as topLevelElements};
|
package/dist/chunk-n708h31w.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ue,un,Ru}from"./chunk-xgd6xgvz.js";import{K,dn,Au,pn,as,tr,nr,Pu,Iu,Ou,fn,gn,cs,rr,Nu}from"./chunk-1s02ff6n.js";import"./chunk-g1ae3haw.js";export{as as batch,Ru as default,dn as derived,pn as effect,Ue as generateSignalsRuntime,un as generateSignalsRuntimeDev,gn as isDerived,fn as isSignal,Au as memo,nr as onDestroy,tr as onMount,rr as peek,Ou as pendingLifecycleCounts,Iu as runDestroyCallbacks,Pu as runMountCallbacks,K as state,cs as untrack,Nu as useOptimistic};
|
package/dist/chunk-pwn2keqq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cl}from"./chunk-5pyv9gjh.js";import"./chunk-k4xytaq3.js";import"./chunk-26g3m2mg.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Cl as startProductionServer};
|
package/dist/chunk-r0s7vdha.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Il}from"./chunk-nxn7gnpq.js";import"./chunk-k4xytaq3.js";import"./chunk-xgd6xgvz.js";import"./chunk-26g3m2mg.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Il as buildForProduction};
|
package/dist/chunk-rwjr5bmd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ul}from"./chunk-xdqwq7a6.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Ul as buildApp};
|
package/dist/chunk-spz80xnc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{kl}from"./chunk-7jp0w5j8.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{kl as startInteractive};
|
package/dist/chunk-vj5fghnv.js
DELETED
package/dist/chunk-wywkr0rt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{is,iu,au}from"./chunk-zsq0754x.js";import"./chunk-215fsx0k.js";import"./chunk-26g3m2mg.js";import"./chunk-bsts9pr5.js";import"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{au as clearComposableCache,iu as getComposableScript,is as listComposableModules};
|
package/dist/chunk-xj5rk4pj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cr,Tc,nd,$c,rd,Rc,lr,b,Lt,Ee,Ac,ks,Pc,sd,Z,Ic,od,x,id}from"./chunk-0bptz1km.js";import"./chunk-95ygdn0n.js";import"./chunk-y255yybn.js";import"./chunk-1m5cjrpw.js";import"./chunk-jdx4za9p.js";import"./chunk-a0ygyftk.js";import"./chunk-arrvcn7c.js";import"./chunk-tw10tgz8.js";import"./chunk-hjtym7d9.js";import"./chunk-ahyq08mp.js";import"./chunk-g1ae3haw.js";import"./chunk-fk79x8ns.js";import"./chunk-pvfx0dgz.js";export{Ic as applyFilters,rd as clearCustomFilters,Ac as clientLoopScopes,cr as defaultFilters,b as escapeHtml,Lt as escapeHtmlValue,x as evaluateExpression,Rc as findMustacheEnd,$c as getAllFilters,Pc as interpolateScriptAttributes,ks as interpolateScriptExpressions,sd as interpolateScriptsInTemplate,Z as processExpressions,Tc as registerFilter,nd as registerFilters,lr as replaceInterpolations,od as resetRejectedExpressionWarnings,id as unescapeHtml,Ee as usesSignalsInScript};
|
package/dist/chunk-y1j13dha.js
DELETED