@stacksjs/stx 0.2.482 → 0.2.483
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-4ebwk9cw.js → chunk-01rz8h7x.js} +2 -2
- package/dist/{chunk-tr25zcf1.js → chunk-0egg3666.js} +9 -9
- package/dist/chunk-0fad6jf4.js +2 -0
- package/dist/chunk-0jfrzq0r.js +2 -0
- package/dist/{chunk-1m9v96z5.js → chunk-0ma6yhg9.js} +6 -6
- package/dist/{chunk-49h8ke5d.js → chunk-0ttq5enq.js} +1 -1
- package/dist/chunk-0vdxchfw.js +2 -0
- package/dist/{chunk-cgf2a166.js → chunk-1c407nky.js} +5 -5
- package/dist/{chunk-99kt56fn.js → chunk-1erc0vrb.js} +2 -2
- package/dist/chunk-1hpttjgq.js +2 -0
- package/dist/chunk-1mrn5s5z.js +2 -0
- package/dist/{chunk-v5rgebzz.js → chunk-1v86h5vn.js} +5 -5
- package/dist/chunk-1yckkva7.js +2 -0
- package/dist/{chunk-44dk5bb5.js → chunk-24jeywdh.js} +41 -41
- package/dist/chunk-258qj7pt.js +2 -0
- package/dist/{chunk-1z26g0cf.js → chunk-25m2wqsd.js} +6 -6
- package/dist/{chunk-28s5x7wv.js → chunk-298s08st.js} +2 -2
- package/dist/{chunk-eg5djbse.js → chunk-2cybh8dh.js} +2 -2
- package/dist/chunk-2fb4yx25.js +4 -0
- package/dist/chunk-2grygc4b.js +2 -0
- package/dist/{chunk-hq97tyb6.js → chunk-2hbygqzj.js} +2 -2
- package/dist/{chunk-8scw1bes.js → chunk-2hc5mbw8.js} +2 -2
- package/dist/{chunk-zpcxx4pp.js → chunk-2kyfaa0p.js} +2 -2
- package/dist/{chunk-ab7vh24b.js → chunk-2pph3dh0.js} +6 -6
- package/dist/{chunk-cd6hz56r.js → chunk-34154wz1.js} +5 -5
- package/dist/chunk-368zt1db.js +2 -0
- package/dist/{chunk-sarr8kz1.js → chunk-3mynjdqr.js} +6 -6
- package/dist/{chunk-5t5ahhjp.js → chunk-3s9s1mdt.js} +3 -3
- package/dist/chunk-3vqabd10.js +2 -0
- package/dist/chunk-490f2x2r.js +2 -0
- package/dist/chunk-4b5hg8y1.js +2 -0
- package/dist/{chunk-33h9ggbz.js → chunk-4c1afy15.js} +4 -4
- package/dist/{chunk-tfexmdkt.js → chunk-4drgbkga.js} +2 -2
- package/dist/chunk-4j2ej7er.js +2 -0
- package/dist/chunk-4k65naeg.js +2 -0
- package/dist/{chunk-cgszdc9m.js → chunk-4snv0gm8.js} +4 -4
- package/dist/chunk-5cd0jbt4.js +2 -0
- package/dist/{chunk-b1kdmkk8.js → chunk-5f7qy42x.js} +247 -266
- package/dist/{chunk-vvs75dse.js → chunk-67actssw.js} +2 -2
- package/dist/chunk-69dc3tyz.js +2 -0
- package/dist/chunk-6ejfx4qw.js +2 -0
- package/dist/{chunk-7ejq9n1v.js → chunk-71bbv43t.js} +4 -4
- package/dist/{chunk-7grtpdw5.js → chunk-7cbtcdqw.js} +2 -2
- package/dist/chunk-7wxmsv41.js +2 -0
- package/dist/{chunk-ah4qyrnn.js → chunk-802qf0vz.js} +1 -1
- package/dist/chunk-8b71njp8.js +30 -0
- package/dist/{chunk-2542vq5p.js → chunk-8fb1mqw1.js} +1 -1
- package/dist/{chunk-f4v80grv.js → chunk-8j8egh39.js} +3 -3
- package/dist/{chunk-6vn4pa76.js → chunk-93wkn776.js} +1 -1
- package/dist/chunk-9ds5dn6f.js +2 -0
- package/dist/chunk-9mywx2x0.js +2 -0
- package/dist/chunk-9s3tf3m3.js +2 -0
- package/dist/{chunk-jxrnagej.js → chunk-aabzyk88.js} +5 -5
- package/dist/chunk-ah4ww997.js +2 -0
- package/dist/chunk-avq5209p.js +2 -0
- package/dist/chunk-b0bgprzs.js +2 -0
- package/dist/chunk-b77v56fz.js +24 -0
- package/dist/{chunk-rycvcgkc.js → chunk-baprpeby.js} +3 -3
- package/dist/{chunk-bvhr055w.js → chunk-bv7bsdfe.js} +2 -2
- package/dist/{chunk-wkc34drs.js → chunk-c57j92td.js} +2 -2
- package/dist/chunk-c7cajwd2.js +2 -0
- package/dist/{chunk-8rx2v7zj.js → chunk-c8psbk2e.js} +1 -1
- package/dist/chunk-ckrpk6ak.js +2 -0
- package/dist/{chunk-3fjpg8kb.js → chunk-cp7hph6f.js} +3 -3
- package/dist/{chunk-80hpdc22.js → chunk-d19vgjjt.js} +2 -2
- package/dist/{chunk-pf0d8y9n.js → chunk-d4k4nyj0.js} +2 -2
- package/dist/{chunk-04qmr675.js → chunk-e62nw7zk.js} +2 -2
- package/dist/{chunk-pcq6vphz.js → chunk-e6y6s7q8.js} +2 -2
- package/dist/chunk-egax8990.js +2 -0
- package/dist/chunk-en0atzsp.js +2 -0
- package/dist/{chunk-2gmbxp60.js → chunk-er7y8hk9.js} +3 -3
- package/dist/chunk-ezvy497d.js +2 -0
- package/dist/chunk-f0prq6yw.js +2 -0
- package/dist/chunk-ftdabyt6.js +2 -0
- package/dist/chunk-g7ey7mtw.js +3 -0
- package/dist/chunk-g7jcpd5j.js +2 -0
- package/dist/chunk-gty89j8s.js +2 -0
- package/dist/{chunk-t7s0pdtw.js → chunk-gzt3ghgq.js} +3 -3
- package/dist/{chunk-3pv6f998.js → chunk-h6q8jafh.js} +2 -2
- package/dist/chunk-hem4ak5x.js +2 -0
- package/dist/{chunk-kp5tv8jx.js → chunk-hkjqqx92.js} +3 -3
- package/dist/{chunk-29pn79t5.js → chunk-hktvv0hd.js} +2 -2
- package/dist/chunk-hmyyq2hh.js +2 -0
- package/dist/{chunk-j2zgh5yk.js → chunk-hqvdm4h9.js} +2 -2
- package/dist/chunk-hsywkvng.js +2 -0
- package/dist/chunk-j2q2pp0x.js +2 -0
- package/dist/chunk-jbj6xh7f.js +3 -0
- package/dist/{chunk-33gkx5z1.js → chunk-jbvg29t0.js} +7 -7
- package/dist/chunk-jd9c46cc.js +2 -0
- package/dist/{chunk-kzzjk2mx.js → chunk-jva1bbpw.js} +10 -10
- package/dist/{chunk-27kb6nrb.js → chunk-jwjggr91.js} +2 -2
- package/dist/chunk-kkn0m1eg.js +2 -0
- package/dist/{chunk-j4afmryj.js → chunk-kp4mzspk.js} +4 -4
- package/dist/chunk-njpxfd44.js +2 -0
- package/dist/{chunk-7kjkmvrn.js → chunk-nr7qak48.js} +2 -2
- package/dist/{chunk-q9996m6n.js → chunk-nxxmhrd0.js} +2 -2
- package/dist/chunk-p5bwcppv.js +2 -0
- package/dist/chunk-p5pna1sn.js +2 -0
- package/dist/chunk-p6trwjap.js +2 -0
- package/dist/{chunk-8emc4aq5.js → chunk-qk5j55r0.js} +5 -5
- package/dist/chunk-qmcmjdy7.js +65 -0
- package/dist/{chunk-91jyax19.js → chunk-qv3rrz9a.js} +11 -11
- package/dist/chunk-rbsn2vf5.js +2 -0
- package/dist/chunk-rcn6m3cj.js +2 -0
- package/dist/chunk-rd2w20hg.js +2 -0
- package/dist/{chunk-5x9ftmve.js → chunk-rhrv2j36.js} +2 -2
- package/dist/{chunk-9ztdvnkk.js → chunk-rmavqxd8.js} +4 -4
- package/dist/chunk-rn2w32kh.js +2 -0
- package/dist/{chunk-q8pn42an.js → chunk-rn4cppcj.js} +4 -4
- package/dist/chunk-rt71qxdq.js +2 -0
- package/dist/chunk-s6v5p03w.js +2 -0
- package/dist/{chunk-k4shjm8n.js → chunk-s9mq9x2k.js} +5 -5
- package/dist/chunk-svywp38a.js +2 -0
- package/dist/chunk-sybzayv3.js +2 -0
- package/dist/{chunk-8adstrk5.js → chunk-szry3s17.js} +3 -3
- package/dist/chunk-tse7jzmz.js +2 -0
- package/dist/chunk-tvag2s5a.js +2 -0
- package/dist/{chunk-01nx6zcw.js → chunk-v7vkqg8f.js} +2 -2
- package/dist/chunk-vbhykx9z.js +2 -0
- package/dist/{chunk-se55qe2x.js → chunk-vg9dyc4y.js} +1 -1
- package/dist/{chunk-zkg0rbmp.js → chunk-vp827ah7.js} +6 -6
- package/dist/chunk-vr0fb0x1.js +2 -0
- package/dist/{chunk-bqx3dqv1.js → chunk-vs0ebfg5.js} +1 -1
- package/dist/chunk-vwybce48.js +2 -0
- package/dist/chunk-vzxkwr23.js +2 -0
- package/dist/{chunk-ak95401g.js → chunk-x8mp9yvn.js} +3 -3
- package/dist/{chunk-b8p9y1kv.js → chunk-xevnx24r.js} +2 -2
- package/dist/chunk-xfxrh6vx.js +2 -0
- package/dist/{chunk-960axmf7.js → chunk-yhv65tpd.js} +2 -2
- package/dist/chunk-yxgfw906.js +2 -0
- package/dist/chunk-z6nm6rf1.js +2 -0
- package/dist/{chunk-cxbp2m66.js → chunk-z9fz5dby.js} +5 -5
- package/dist/{chunk-gkj42zq7.js → chunk-z9tvn738.js} +2 -2
- package/dist/{chunk-abts223v.js → chunk-zkjp87ak.js} +3 -3
- package/dist/{chunk-w6n2j62h.js → chunk-zv0vgamy.js} +3 -3
- package/dist/cli.js +20 -20
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/document-shell.d.ts +11 -0
- package/dist/document-shell.js +11 -3
- package/dist/head.js +2 -1
- package/dist/pwa.js +3 -3
- package/dist/seo.d.ts +16 -0
- package/dist/seo.js +9 -6
- package/dist/ssg.js +13 -13
- package/package.json +5 -5
- package/dist/chunk-0e1rga0j.js +0 -2
- package/dist/chunk-0jp07cjs.js +0 -2
- package/dist/chunk-1kkyg54v.js +0 -2
- package/dist/chunk-2njt4vbe.js +0 -2
- package/dist/chunk-3aw80qrg.js +0 -2
- package/dist/chunk-3gbjppvg.js +0 -2
- package/dist/chunk-3nq94g1b.js +0 -2
- package/dist/chunk-4aw47rmg.js +0 -2
- package/dist/chunk-50vq8k55.js +0 -2
- package/dist/chunk-5fvzzqa3.js +0 -2
- package/dist/chunk-5pjsc9zv.js +0 -3
- package/dist/chunk-5sb7gw66.js +0 -2
- package/dist/chunk-5y4qxmaw.js +0 -2
- package/dist/chunk-7mh0fnrq.js +0 -2
- package/dist/chunk-8mxjd1ge.js +0 -2
- package/dist/chunk-8xvrcwtk.js +0 -2
- package/dist/chunk-969np51a.js +0 -2
- package/dist/chunk-9kzk7zyy.js +0 -2
- package/dist/chunk-9vqz2m13.js +0 -2
- package/dist/chunk-ap9nnv9z.js +0 -2
- package/dist/chunk-bw0gkfb3.js +0 -2
- package/dist/chunk-d20gxzk9.js +0 -2
- package/dist/chunk-db2sy0f3.js +0 -2
- package/dist/chunk-dbj4sn74.js +0 -2
- package/dist/chunk-dts9z53c.js +0 -2
- package/dist/chunk-ecr642nj.js +0 -2
- package/dist/chunk-eev60q15.js +0 -2
- package/dist/chunk-ep7hz9af.js +0 -2
- package/dist/chunk-fe5xht52.js +0 -2
- package/dist/chunk-fqhewm3t.js +0 -2
- package/dist/chunk-gzbzfndm.js +0 -2
- package/dist/chunk-hgcvtfnz.js +0 -2
- package/dist/chunk-j338fs8k.js +0 -2
- package/dist/chunk-jbmwm6k4.js +0 -2
- package/dist/chunk-jvdren00.js +0 -2
- package/dist/chunk-k7t0rmzy.js +0 -2
- package/dist/chunk-k84qkm21.js +0 -2
- package/dist/chunk-kd7m4d0g.js +0 -2
- package/dist/chunk-kk5cyjfs.js +0 -3
- package/dist/chunk-kmf7yh91.js +0 -2
- package/dist/chunk-m5dgc757.js +0 -2
- package/dist/chunk-m8w4hve0.js +0 -2
- package/dist/chunk-mhwptrvm.js +0 -2
- package/dist/chunk-mmh37ywa.js +0 -2
- package/dist/chunk-ms5aj58v.js +0 -2
- package/dist/chunk-n454sydr.js +0 -2
- package/dist/chunk-pd5r4j8r.js +0 -2
- package/dist/chunk-pe9bvwqn.js +0 -30
- package/dist/chunk-pt566gqb.js +0 -2
- package/dist/chunk-q4wpzj1f.js +0 -2
- package/dist/chunk-qtsymvxx.js +0 -2
- package/dist/chunk-r54tkwpc.js +0 -2
- package/dist/chunk-ra321t5d.js +0 -2
- package/dist/chunk-s10r6hxp.js +0 -64
- package/dist/chunk-sqjdb265.js +0 -2
- package/dist/chunk-st1s30tn.js +0 -2
- package/dist/chunk-tbef3yyk.js +0 -5
- package/dist/chunk-v7ahbhbd.js +0 -2
- package/dist/chunk-v9t3z8nm.js +0 -2
- package/dist/chunk-vcs1fx8e.js +0 -2
- package/dist/chunk-w0vrmvh7.js +0 -2
- package/dist/chunk-w28c9st3.js +0 -2
- package/dist/chunk-x73mzzm8.js +0 -2
- package/dist/chunk-xnjcmhs5.js +0 -4
- package/dist/chunk-yed9c66h.js +0 -2
- package/dist/chunk-zb5p05v4.js +0 -2
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),e.success=!1,e}let g=await c.default(o).metadata();if(g.width&&g.width<512)e.warnings.push(`Source icon is ${g.width}x${g.height}. Recommend using at least 512x512 for best quality.`);for(let i of s){let d=u.join(a,`icon-${i}x${i}.png`);if(await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d),l){let x=u.join(a,`icon-${i}x${i}.webp`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(x),e.generatedFiles.push(x)}}if(p){for(let d of S){let x=u.join(a,`apple-touch-icon-${d}x${d}.png`);await c.default(o).resize(d,d,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),e.generatedFiles.push(x)}let i=u.join(a,"apple-touch-icon.png");await c.default(o).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(i),e.generatedFiles.push(i)}for(let i of P){let d=u.join(a,`favicon-${i}x${i}.png`);await c.default(o).resize(i,i,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(d),e.generatedFiles.push(d)}let f=512,y=u.join(a,`icon-maskable-${f}x${f}.png`),m=Math.floor(f*0.1),k=f-m*2;await c.default(o).resize(k,k,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:m,bottom:m,left:m,right:m,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(y),e.generatedFiles.push(y)}catch(c){let h=c instanceof Error?c.message:String(c);e.errors.push(`Icon generation failed: ${h}`),e.success=!1}return e}function N(n){let t=n.sizes||v,e=n.outputDir?`/${n.outputDir}`:"/pwa-icons",r=n.generateWebP??!0,o=n.generateAppleIcons??!0,a=[];for(let s of t)if(a.push(`${e}/icon-${s}x${s}.png`),r)a.push(`${e}/icon-${s}x${s}.webp`);if(o){a.push(`${e}/apple-touch-icon.png`);for(let s of S)a.push(`${e}/apple-touch-icon-${s}x${s}.png`)}for(let s of P)a.push(`${e}/favicon-${s}x${s}.png`);return a.push(`${e}/icon-maskable-512x512.png`),a}async function I(){try{return await import("sharp"),!0}catch{return!1}}function A(n,t,e,r){let o=[],a=r.join(" ");for(let s of n)if(o.push({src:`${t}/icon-${s}x${s}.png`,sizes:`${s}x${s}`,type:"image/png",purpose:a}),e)o.push({src:`${t}/icon-${s}x${s}.webp`,sizes:`${s}x${s}`,type:"image/webp",purpose:a});return o}function C(n){return n.map((t)=>({name:t.name,short_name:t.shortName,description:t.description,url:t.url,icons:t.icons?.map((e)=>({src:e.src,sizes:e.sizes,type:e.type}))}))}function T(n){let t=n.pwa?.shareTarget;if(!t?.enabled)return;let e={action:t.action||"/share",method:t.method||"POST",enctype:t.enctype||"multipart/form-data",params:{title:t.params?.title||"title",text:t.params?.text||"text",url:t.params?.url||"url"}};if(t.acceptFiles&&t.acceptFiles.length>0)e.params.files=t.acceptFiles.map((r)=>({name:r.name,accept:r.accept}));return e}function H(n){let t=n.pwa?.fileHandlers;if(!t?.enabled||!t.accept)return;let e=[{action:t.action||"/",accept:t.accept,launch_type:t.launchType||"single-client"}];if(t.icons)e[0].icons=t.icons.map((r)=>({src:r.src,sizes:r.sizes,type:r.type}));return e}function W(n){let t=n.pwa?.protocolHandlers;if(!t||t.length===0)return;return t.map((e)=>({protocol:e.protocol,url:e.url}))}function j(n){let t=n.pwa;if(!t?.enabled||!t.manifest)return null;let{manifest:e,icons:r}=t,o=r?.sizes||[72,96,128,144,152,192,384,512],a=r?.outputDir?`/${r.outputDir}`:"/pwa-icons",s=r?.generateWebP??!0,l=r?.purpose||["any","maskable"],p={name:e.name,short_name:e.shortName||e.name,description:e.description,start_url:e.startUrl||"/",display:e.display||"standalone",display_override:e.displayOverride,orientation:e.orientation,theme_color:e.themeColor,background_color:e.backgroundColor,scope:e.scope||"/",lang:e.lang,dir:e.dir,id:e.id,categories:e.categories,icons:A(o,a,s,l)};if(e.shortcuts&&e.shortcuts.length>0)p.shortcuts=C(e.shortcuts);if(e.screenshots&&e.screenshots.length>0)p.screenshots=e.screenshots.map((f)=>({src:f.src,sizes:f.sizes,type:f.type,label:f.label,form_factor:f.platform}));let c=T(n);if(c)p.share_target=c;let h=H(n);if(h)p.file_handlers=h;let g=W(n);if(g)p.protocol_handlers=g;if(e.launchHandler)p.launch_handler={client_mode:e.launchHandler};if(e.handleLinks)p.handle_links=e.handleLinks;if(e.edgeSidePanel?.enabled)p.edge_side_panel={preferred_width:e.edgeSidePanel.preferredWidth};return p}function _(n){let t=j(n);if(!t)return"";let e=JSON.parse(JSON.stringify(t));return JSON.stringify(e,null,2)}function q(n,t){return{...t,...n,shortcuts:n.shortcuts||t.shortcuts,screenshots:n.screenshots||t.screenshots,categories:n.categories||t.categories}}function D(n){let t=[],e=n.pwa;if(!e?.enabled)return t;let r=e.manifest;if(!r)return t.push("PWA manifest configuration is missing"),t;if(!r.name)t.push("Manifest name is required");let o=["fullscreen","standalone","minimal-ui","browser"];if(r.display&&!o.includes(r.display))t.push(`Invalid display mode: ${r.display}. Must be one of: ${o.join(", ")}`);let a=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(r.orientation&&!a.includes(r.orientation))t.push(`Invalid orientation: ${r.orientation}`);let s=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(r.themeColor&&!s.test(r.themeColor))t.push(`Invalid theme color: ${r.themeColor}. Must be a valid hex color.`);if(r.backgroundColor&&!s.test(r.backgroundColor))t.push(`Invalid background color: ${r.backgroundColor}. Must be a valid hex color.`);if(e.shareTarget?.enabled){if(!e.shareTarget.action)t.push("Share target action URL is required")}if(e.fileHandlers?.enabled){if(!e.fileHandlers.accept||Object.keys(e.fileHandlers.accept).length===0)t.push("File handlers must specify accepted MIME types")}if(e.protocolHandlers)for(let l of e.protocolHandlers){if(!l.protocol)t.push("Protocol handler missing protocol");if(!l.url||!l.url.includes("%s"))t.push(`Protocol handler URL must contain %s placeholder: ${l.protocol}`)}return t}import z from"path";async function F(n){let t=n.pwa?.offline;if(!t?.enabled)return"";if(t.page){let e=z.isAbsolute(t.page)?t.page:z.resolve(process.cwd(),t.page);if(await Bun.file(e).exists())try{let{processDirectives:r}=await import("./chunk-
|
|
2
|
+
import{Ln,Oe,Bo,Wa}from"./chunk-4c1afy15.js";import{Nn,Vr,Ha,Va,Ua}from"./chunk-jbvg29t0.js";import{No,Lo,jo,Fa,za}from"./chunk-e62nw7zk.js";import{oe,gt,Ur}from"./chunk-hkjqqx92.js";import{Xc,Gc,Jc,Yc,fr,md}from"./chunk-jwjggr91.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-rt71qxdq.js"),o=await Bun.file(e).text();return await r(o,{},e,n,new Set)}catch(r){console.warn(`[PWA] Failed to process custom offline page: ${r}`)}else console.warn(`[PWA] Custom offline page not found: ${e}`)}return E(n)}function E(n){let t=n.pwa?.offline,e=n.pwa?.manifest,r=t?.fallbackTitle||"You are offline",o=t?.fallbackMessage||"Please check your internet connection and try again.",a=e?.themeColor||"#4f46e5",s=e?.shortName||e?.name||"App";return`<!DOCTYPE html>
|
|
4
4
|
<html lang="en">
|
|
5
5
|
<head>
|
|
6
6
|
<meta charset="UTF-8">
|
|
@@ -233,4 +233,4 @@ Icon generation requires the sharp package for image processing.`),e.success=!1,
|
|
|
233
233
|
}, 5000);
|
|
234
234
|
</script>
|
|
235
235
|
</body>
|
|
236
|
-
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=oe(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=
|
|
236
|
+
</html>`}function b(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}async function re(n,t){let e={success:!0,files:{icons:[]},errors:[],warnings:[]},r=n.pwa;if(!r?.enabled)return e;try{B.mkdirSync(t,{recursive:!0})}catch{return e.errors.push(`Failed to create output directory: ${t}`),e.success=!1,e}try{let a=_(n);if(a){let s=w.join(t,"manifest.json");await Bun.write(s,a),e.files.manifest=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate manifest.json: ${s}`),e.success=!1}if(r.icons?.src)if(await I()){let s=await M(n,t);if(e.files.icons=s.generatedFiles,e.warnings.push(...s.warnings),!s.success)e.errors.push(...s.errors),e.success=!1}else e.warnings.push("sharp is not installed. Skipping icon generation. Install with: bun add sharp");if(r.offline?.enabled)try{let a=await F(n);if(a){let s=w.join(t,"offline.html");await Bun.write(s,a),e.files.offlinePage=s}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate offline page: ${s}`),e.success=!1}let o;if(r.precache?.enabled){let a=oe(t,n);o={fileCount:a.fileCount,totalSize:a.totalSize},e.precacheStats=o}try{let a=Ln(n,t);if(a){let s=Oe(n),l=w.join(t,s);await Bun.write(l,a),e.files.serviceWorker=l}}catch(a){let s=a instanceof Error?a.message:String(a);e.errors.push(`Failed to generate service worker: ${s}`),e.success=!1}return e}function ae(n,t){return Vr(n,t)}function se(n){return n.pwa?.enabled===!0}export{S as APPLE_TOUCH_ICON_SIZES,v as DEFAULT_ICON_SIZES,P as FAVICON_SIZES,Lo as auditBuildOutput,No as auditConfig,re as buildPwaAssets,jo as calculateAuditResult,za as formatAuditResult,Ur as formatSize,j as generateManifest,_ as generateManifestJson,Va as generateManifestLink,F as generateOfflinePage,oe as generatePrecacheManifest,gt as generatePrecacheManifestJs,M as generatePwaIcons,Nn as generatePwaTags,Ln as generateServiceWorker,Wa as generateServiceWorkerAuto,Ha as generateSwRegistrationScript,Ua as generateThemeColorMeta,N as getExpectedIconPaths,Oe as getServiceWorkerFileName,Vr as injectPwaTags,se as isPwaEnabled,I as isSharpAvailable,Bo as isWorkboxEnabled,q as mergeManifestConfig,ae as processPwaHtml,fr as pwaDirectives,Xc as pwaInstallDirective,Jc as pwaOfflineDirective,Yc as pwaPushDirective,Gc as pwaUpdateDirective,md as registerPwaDirectives,Fa as runPwaAudit,D as validateManifest};
|
package/dist/seo.d.ts
CHANGED
|
@@ -134,6 +134,22 @@ export interface SitemapEntry {
|
|
|
134
134
|
changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never';
|
|
135
135
|
/** Priority (0.0 to 1.0) */
|
|
136
136
|
priority?: number;
|
|
137
|
+
/**
|
|
138
|
+
* The page in other languages, written as `<xhtml:link rel="alternate">`
|
|
139
|
+
* on this `<url>`. List every version, this one included, plus an
|
|
140
|
+
* `x-default` when there is one: Google ignores a set that is not
|
|
141
|
+
* reciprocal. An `href` that is a path is resolved like `loc`.
|
|
142
|
+
*
|
|
143
|
+
* @example [{ hreflang: 'en', href: '/pricing' }, { hreflang: 'de', href: '/de/pricing' }, { hreflang: 'x-default', href: '/pricing' }]
|
|
144
|
+
*/
|
|
145
|
+
alternates?: SitemapAlternate[];
|
|
146
|
+
}
|
|
147
|
+
/** One language version of a sitemap entry. */
|
|
148
|
+
export interface SitemapAlternate {
|
|
149
|
+
/** A language (`de`), a language and region (`en-GB`), or `x-default`. */
|
|
150
|
+
hreflang: string;
|
|
151
|
+
/** A path or an absolute URL. */
|
|
152
|
+
href: string;
|
|
137
153
|
}
|
|
138
154
|
/**
|
|
139
155
|
* Sitemap generation options
|
package/dist/seo.js
CHANGED
|
@@ -396,13 +396,13 @@ export function generateSitemap(entries, options) {
|
|
|
396
396
|
defaultChangefreq = "weekly",
|
|
397
397
|
defaultPriority = 0.5,
|
|
398
398
|
includeLastmod = !0
|
|
399
|
-
} = options, base = baseUrl.replace(/\/$/, "")
|
|
400
|
-
|
|
401
|
-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
402
|
-
${entries.map((entry) => {
|
|
403
|
-
const loc = entry.loc.startsWith("http") ? entry.loc : `${base}${entry.loc.startsWith("/") ? "" : "/"}${entry.loc}`, lastmod = entry.lastmod || (includeLastmod ? new Date().toISOString().split("T")[0] : void 0), changefreq = entry.changefreq || defaultChangefreq, priority = entry.priority ?? defaultPriority;
|
|
399
|
+
} = options, base = baseUrl.replace(/\/$/, ""), absolute = (url) => url.startsWith("http") ? url : `${base}${url.startsWith("/") ? "" : "/"}${url}`, urlEntries = entries.map((entry) => {
|
|
400
|
+
const loc = absolute(entry.loc), lastmod = entry.lastmod || (includeLastmod ? new Date().toISOString().split("T")[0] : void 0), changefreq = entry.changefreq || defaultChangefreq, priority = entry.priority ?? defaultPriority;
|
|
404
401
|
let urlXml = ` <url>
|
|
405
402
|
<loc>${escapeXml(loc)}</loc>`;
|
|
403
|
+
for (const alternate of entry.alternates ?? [])
|
|
404
|
+
urlXml += `
|
|
405
|
+
<xhtml:link rel="alternate" hreflang="${escapeXml(alternate.hreflang)}" href="${escapeXml(absolute(alternate.href))}"/>`;
|
|
406
406
|
if (lastmod)
|
|
407
407
|
urlXml += `
|
|
408
408
|
<lastmod>${lastmod}</lastmod>`;
|
|
@@ -413,7 +413,10 @@ ${entries.map((entry) => {
|
|
|
413
413
|
urlXml += `
|
|
414
414
|
</url>`;
|
|
415
415
|
return urlXml;
|
|
416
|
-
})
|
|
416
|
+
});
|
|
417
|
+
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
418
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"${entries.some((entry) => entry.alternates?.length) ? ' xmlns:xhtml="http://www.w3.org/1999/xhtml"' : ""}>
|
|
419
|
+
${urlEntries.join(`
|
|
417
420
|
`)}
|
|
418
421
|
</urlset>`;
|
|
419
422
|
}
|
package/dist/ssg.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
3
|
-
`)}class
|
|
2
|
+
import"./chunk-2hc5mbw8.js";import"./chunk-2pph3dh0.js";import"./chunk-c57j92td.js";import{et,tt,nt,rt,st,ot}from"./chunk-rmavqxd8.js";import"./chunk-v7vkqg8f.js";import"./chunk-d4k4nyj0.js";import{f,Be,N,K,n,o}from"./chunk-5f7qy42x.js";import"./chunk-b77v56fz.js";import{nr}from"./chunk-qmcmjdy7.js";import"./chunk-1erc0vrb.js";import"./chunk-nxxmhrd0.js";import"./chunk-e6y6s7q8.js";import"./chunk-kp4mzspk.js";import"./chunk-34154wz1.js";import{ie,mt,ht}from"./chunk-rn4cppcj.js";import{Do,Oo,Mo}from"./chunk-er7y8hk9.js";import{ft,Yt,Zt}from"./chunk-g7ey7mtw.js";import"./chunk-szry3s17.js";import{a}from"./chunk-jbj6xh7f.js";import x from"fs";import g from"path";import{createHash as Dt}from"crypto";function Rt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var kt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Ct(t){return Bun.hash(t).toString(16)}function ut(t,i={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let s=new Map,r=t.replace(kt,(e,l,w,y)=>{let h=y.trim();if(!h)return e;if(/\bdata-stx-src=/.test(w))return e;if(i.minify)h=Rt(h);let S=Ct(h);if(!s.has(S))s.set(S,h);let P=i.integrity?` data-stx-integrity="sha384-${Dt("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 Et=new Set(["visible","idle"]);function dt(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(Et.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 gt(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=gt(e.default??e);if(l)return l}catch{}}return null}async function pt(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=gt(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 wt(){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 yt{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 St{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]}
|
|
6
6
|
})()
|
|
7
|
-
`)()}catch(i){return console.error(`Error extracting static paths from ${t}:`,i),null}}async function
|
|
7
|
+
`)()}catch(i){return console.error(`Error extracting static paths from ${t}:`,i),null}}async function Ot(t){let i=[];if(!t.isDynamic)i.push({url:t.pattern,params:{}});else{let s=await Ft(t.filePath);if(!s||s.paths.length===0)return console.warn(`Warning: Dynamic route ${t.pattern} has no getStaticPaths or returned empty paths`),i;for(let r of s.paths){let c=t.pattern;for(let[e,l]of Object.entries(r.params))c=c.replace(`:${e}`,l).replace(`:${e}*`,l);i.push({url:c,params:r.params,props:r.props,revalidate:r.revalidate})}}return i}async function Tt(t){let i=[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"];for(let s of i)if(await Bun.file(s).exists())try{let r=await import(s);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:c,...e}=r;return e}}catch(r){console.error(`Error loading data file ${s}:`,r)}return null}async function At(t,i,s){let r=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!r)return null;let c=r[1];if(!c.includes("getStaticProps"))return null;try{let e=c.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
|
-
`)(i)}catch(e){return console.error(`Error executing getStaticProps in ${s}:`,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
|
+
`)(i)}catch(e){return console.error(`Error executing getStaticProps in ${s}:`,e),null}}function Lt(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 xt(t,i,s={},r,c){let e=await Bun.file(t.filePath).text(),l=await Tt(t.filePath),w=await At(e,i,t.filePath),y={...l||{},...w||{},...s,params:i,$route:{path:t.pattern,params:i}},h=new Set,S=[],P=[],D={...c,...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(Lt(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 n(e,y,t.filePath,D,h);for(let b of[t.filePath,...h])for(let B of ie(b))h.add(B);if(Object.keys(i).length>0){let b=`<script>if(window.stx)window.stx._rp=${JSON.stringify(i)};else window.__stx_rp=${JSON.stringify(i)};</script>`;if(p.includes("</head>"))p=p.replace("</head>",`${b}
|
|
13
13
|
</head>`);else p=`${b}
|
|
14
|
-
${p}`}if(p=await K(p,{router:r.router}),p=await f(p),r.minify!==!1)return{html:
|
|
14
|
+
${p}`}if(p=await K(p,{router:r.router}),p=await f(p),r.minify!==!1)return{html:Mt(p),dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P};return{html:p,dependencies:Array.from(h),includeFailures:S,serverScriptFailures:P}}function Mt(t){let i=[],s=0,r=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,c;while((c=r.exec(t))!==null){let l=t.slice(s,c.index);i.push(l.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><"));let w=c[1],y=c[2],h=c[3];y=y.replace(/([^:"\\'`])\/\/(?!\/)(?![*!])([^\n]*)/g,"$1"),i.push(w+y+h),s=c.index+c[0].length}let e=t.slice(s);return i.push(e.replace(/<!--(?!\[if)[\s\S]*?-->/g,"").replace(/\s+/g," ").replace(/>\s+</g,"><")),i.join("").trim()}function Ut(t){let i=0;for(let s=0;s<t.length;s++){let r=t.charCodeAt(s);i=(i<<5)-i+r,i=i&i}return`"${Math.abs(i).toString(36)}"`}function _t(t,i,s,r){if(s?.sitemap===!1)return!0;if(/<meta[^>]+name=["']robots["'][^>]+content=["'][^"']*noindex/i.test(i))return!0;return r.some((c)=>{if(c instanceof RegExp)return c.test(t);return c.endsWith("/")?t===c.slice(0,-1)||t.startsWith(c):t===c})}function Gt(t,i){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 c=new URL(r.loc,i).href,e=` <url>
|
|
17
17
|
<loc>${I(c)}</loc>`;if(r.lastmod)e+=`
|
|
@@ -41,16 +41,16 @@ ${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();
|
|
44
|
+
</rss>`}async function zt(t={}){let i=Date.now();ht();let s=await o(process.cwd()),r=s.build||{},c=await pt({explicit:t.domain||r.domain,stxConfig:s});if(c.source==="fallback"&&(t.sitemap??r.sitemap??!0))console.warn(wt());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-svywp38a.js");try{D=m(await u(process.cwd()))}catch{}}let{prepareImageDelivery:p}=await import("./chunk-9mywx2x0.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 yt(e.cacheDir,D);if(e.cache)await B.load();try{let{generateCss:u}=await import("./chunk-svywp38a.js");await u('<div class="bg-black"></div>')}catch{}et();let vt=s?.routeMiddleware?.dir||"middleware";await nt(process.cwd(),vt);let H=tt();if(H.length>0)console.log(`Loaded ${H.length} middleware: ${H.join(", ")}`);let bt=s?.routeMiddleware?.global||[];Mo(s?.layoutsDir,a(process.cwd()));let V=N(".",{pagesDir:e.pagesDir,pagesDirs:s?._layerPageDirs});console.log(`Found ${V.length} routes`);let _=[];for(let u of V){let m=await Ot(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=[],X=[];for(let u=0;u<_.length;u+=e.concurrency)X.push(_.slice(u,u+e.concurrency));for(let u of X)await Promise.all(u.map(async(m)=>{let{route:v,url:d,params:L,props:Pt,revalidate:Q}=m;try{await e.hooks.onPageStart?.(d);let j=await Bun.file(v.filePath).text(),F=Jt(j),$t=F?.middleware?Array.isArray(F.middleware)?F.middleware:[F.middleware]:[],it=[...bt,...$t];if(it.length>0){let C=rt(d,L,F||{}),O=st(C,null,void 0,{isServer:!0}),E=await ot(it,O);if(E.redirect){let R=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,U=Vt(String(R),d),T=Kt(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 at=j.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(at)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${at[1]};
|
|
46
46
|
return validate(route);
|
|
47
|
-
`)({params:L})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,
|
|
47
|
+
`)({params:L})){console.warn(`Validation failed for ${d}, skipping...`);return}}catch{}let k=null,ct=!1;if(e.cache){if(k=B.get(d,v.filePath),k)ct=!0,l.cachedCount++}if(!k){let C=await xt(v,L,Pt,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:
|
|
48
48
|
${C.includeFailures.join(`
|
|
49
49
|
`)}
|
|
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}=
|
|
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}=ut(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,h[R.hash]={bytes:T,file:`/_stx/islands/${R.hash}.js`}}}if(S[d]=O.map((R)=>R.hash),k=C,e.prefetchIslands)k=dt(k)}}if(await x.promises.mkdir(g.dirname(M),{recursive:!0}),await Bun.write(M,k),!_t(d,k,F,e.sitemapExclude))A.push({loc:d,lastmod:new Date().toISOString().split("T")[0],priority:d==="/"?1:0.8});let lt={route:d,outputPath:M,size:Buffer.byteLength(k,"utf8"),cached:ct};if(Q!==!1)lt.revalidateAt=Date.now()+Q*1000;l.pages.push(lt),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 Y=mt();if(Y.length>0){let u=Y.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={...s,debug:!1,cache:!1},d=await n(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={...s,debug:!1,cache:!1},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&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={...s,debug:!1,cache:!1},L=await n(await Bun.file(m).text(),{},m,d,v);await Bun.write(g.join(e.outputDir,`${u}.html`),L)}}let W=g.join(e.pagesDir,"error.stx");if(await Bun.file(W).exists()){let u=new Set,m={...s,debug:!1,cache:!1},v=await n(await Bun.file(W).text(),{},W,m,u);await Bun.write(g.join(e.outputDir,"error.html"),v)}if(e.sitemap&&A.length>0){let u=Gt(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=nr({rules:[{userAgent:u.userAgent||"*",allow:u.allow||["/"],...m.length>0?{disallow:m}:{}}],...u.sitemap!==!1&&l.sitemapPath?{sitemap:new URL("/sitemap.xml",e.domain).href}:{}});await Bun.write(g.join(e.outputDir,"robots.txt"),v),console.log("Generated robots.txt")}if(e.rss){let u=typeof e.rss==="object"?e.rss:{title:"Site Feed",description:"Latest updates",link:e.domain},m=[];if(u.getItems)m=await u.getItems();let v=Nt(u,m),d=g.join(e.outputDir,"rss.xml");await Bun.write(d,v),l.rssPath=d,console.log(`Generated rss.xml with ${m.length} items`)}let G=Do(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 z=Oo(e.outputDir);if(z.assets>0)console.log(`Externalized ${z.assets} repeated asset(s) from ${z.pages} page(s) (${(z.bytesInlined/1024).toFixed(1)}KB removed from HTML)`);if(e.publicDir&&x.existsSync(e.publicDir))await J(e.publicDir,e.outputDir),console.log(`Copied public assets from ${e.publicDir}`);let Z=Zt();if(Z)await J(Z,g.join(e.outputDir,Yt)),console.log(`Copied assets from ${ft}`)}catch(D){throw await e.hooks.onError?.(D),D}if(l.buildTime=Date.now()-i,w.size>0){l.islandChunks={count:w.size,totalBytes:y};let D={generatedChunks:w.size,totalBytes:y,chunks:h,pages:S};await Bun.write(g.join(e.outputDir,"_stx","islands-manifest.json"),JSON.stringify(D,null,2))}await e.hooks.onBuildEnd?.(l);let P=l.islandChunks?`
|
|
77
77
|
Island chunks: ${l.islandChunks.count} (${(l.islandChunks.totalBytes/1024).toFixed(1)} KB lifted out of inline HTML)`:"";return console.log(`
|
|
78
78
|
Build complete!
|
|
79
79
|
Total: ${l.totalPages} pages
|
|
@@ -81,8 +81,8 @@ Build complete!
|
|
|
81
81
|
Cached: ${l.cachedCount}
|
|
82
82
|
Failed: ${l.failedCount}
|
|
83
83
|
Time: ${l.buildTime}ms${P}
|
|
84
|
-
`),l}async function J(t,i){await x.promises.mkdir(i,{recursive:!0});let s=await x.promises.readdir(t,{withFileTypes:!0});for(let r of s){let c=g.join(t,r.name),e=g.join(i,r.name);if(r.isDirectory())await x.promises.mkdir(e,{recursive:!0}),await J(c,e);else await x.promises.copyFile(c,e)}}function Ht(t={}){let i=t.cacheDir||a(process.cwd(),"ssg-cache"),s=new
|
|
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=c.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 h=parseInt(y[1],10),S=y[2],P=S.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:P,text:S,level:h})}return{content:e,data:r,toc:l}}}}function
|
|
84
|
+
`),l}async function J(t,i){await x.promises.mkdir(i,{recursive:!0});let s=await x.promises.readdir(t,{withFileTypes:!0});for(let r of s){let c=g.join(t,r.name),e=g.join(i,r.name);if(r.isDirectory())await x.promises.mkdir(e,{recursive:!0}),await J(c,e);else await x.promises.copyFile(c,e)}}function Ht(t={}){let i=t.cacheDir||a(process.cwd(),"ssg-cache"),s=new St(i),r=t.revalidate||3600;return{async get(c){let e=await s.get(c);if(!e)return null;if(Date.now()>e.revalidateAfter)this.revalidate(c).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(c){let l=N(".",{pagesDir:t.pagesDir||"pages"}).find((P)=>c.match(P.regex)!==null);if(!l){console.warn(`Route not found for revalidation: ${c}`);return}let w=c.match(l.regex),y={};if(w)l.params.forEach((P,D)=>{y[P]=w[D+1]});let h=await o(),{html:S}=await xt(l,y,{},t,h);await s.set(c,{html:S,generatedAt:Date.now(),revalidateAfter:Date.now()+r*1000,etag:Ut(S)}),console.log(`Revalidated: ${c}`)},async invalidate(c){if(typeof c==="string")await s.invalidate(c);else await s.invalidatePattern(c)}}}function Wt(t){return async()=>({paths:await t(),fallback:!1})}function qt(){return{name:"markdown",extensions:[".md",".mdx"],async load(t){let i=await Bun.file(t).text(),s=i.match(/^---\n([\s\S]*?)\n---/),r={},c=i;if(s){let h=s[1];c=i.slice(s[0].length).trim();for(let S of h.split(`
|
|
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=c.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 h=parseInt(y[1],10),S=y[2],P=S.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:P,text:S,level:h})}return{content:e,data:r,toc:l}}}}function Jt(t){return Be(t)}function Vt(t,i){return`<!DOCTYPE html>
|
|
86
86
|
<html>
|
|
87
87
|
<head>
|
|
88
88
|
<meta charset="utf-8">
|
|
@@ -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
|
|
97
|
+
</html>`}function Kt(t,i){if(t==="/"||t==="")return g.join(i.outputDir,"index.html");let s=t.replace(/^\/|\/$/g,"");if(i.trailingSlash)return g.join(i.outputDir,s,"index.html");return g.join(i.outputDir,`${s}.html`)}var xe={generateStaticSite:zt,createISRHandler:Ht,defineStaticPaths:Wt,createMarkdownLoader:qt};export{Ht as createISRHandler,qt as createMarkdownLoader,Lt as declaresPageAction,xe as default,Wt as defineStaticPaths,zt as generateStaticSite,_t as isExcludedFromSitemap};
|
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.483",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -122,12 +122,12 @@
|
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@stacksjs/ts-css": "^0.3.2",
|
|
124
124
|
"@stacksjs/clapp": "^0.2.16",
|
|
125
|
-
"@stacksjs/desktop": "0.2.
|
|
126
|
-
"@stacksjs/sanitizer": "0.2.
|
|
125
|
+
"@stacksjs/desktop": "0.2.483",
|
|
126
|
+
"@stacksjs/sanitizer": "0.2.483",
|
|
127
127
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
128
|
-
"bun-plugin-stx": "0.2.
|
|
128
|
+
"bun-plugin-stx": "0.2.483",
|
|
129
129
|
"bunfig": "^0.15.19",
|
|
130
|
-
"stx-router": "0.2.
|
|
130
|
+
"stx-router": "0.2.483",
|
|
131
131
|
"ts-broadcasting": "^0.0.11",
|
|
132
132
|
"ts-images": "^0.2.22",
|
|
133
133
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-0e1rga0j.js
DELETED
package/dist/chunk-0jp07cjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mi,Ni}from"./chunk-44dk5bb5.js";import"./chunk-rycvcgkc.js";import"./chunk-7kjkmvrn.js";import"./chunk-tr25zcf1.js";import"./chunk-cxbp2m66.js";import"./chunk-kzzjk2mx.js";import"./chunk-4ebwk9cw.js";import"./chunk-960axmf7.js";import{no}from"./chunk-pe9bvwqn.js";import"./chunk-5x9ftmve.js";import"./chunk-gkj42zq7.js";import"./chunk-hq97tyb6.js";import"./chunk-2542vq5p.js";import"./chunk-28s5x7wv.js";import"./chunk-eg5djbse.js";import"./chunk-se55qe2x.js";import"./chunk-w6n2j62h.js";import"./chunk-v5rgebzz.js";import"./chunk-zkg0rbmp.js";import"./chunk-sarr8kz1.js";import"./chunk-3fjpg8kb.js";import"./chunk-vvs75dse.js";import"./chunk-abts223v.js";import"./chunk-3pv6f998.js";import"./chunk-5t5ahhjp.js";import"./chunk-k4shjm8n.js";import"./chunk-cgf2a166.js";import"./chunk-7ejq9n1v.js";import"./chunk-f4v80grv.js";import"./chunk-1z26g0cf.js";import"./chunk-1m9v96z5.js";import"./chunk-jxrnagej.js";import"./chunk-2gmbxp60.js";import"./chunk-q8pn42an.js";import"./chunk-cd6hz56r.js";import"./chunk-8scw1bes.js";import{he,en,tn,K,d,n,Xn,I,o,le}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Xn as buildWebComponents,tn as cacheTemplate,en as checkCache,no as classifyAllScripts,Mi as createMiddleware,Ni as createRoute,I as defaultConfig,d as extractVariables,K as injectRouterScript,o as loadStxConfig,he as processClientScript,n as processDirectives,le as readMarkdownFile};
|
package/dist/chunk-1kkyg54v.js
DELETED
package/dist/chunk-2njt4vbe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cs,$s,Es,_s,Zn,Qn,Uu,Wu,qu,Ku,er,Xu}from"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";export{Xu as generateDefaultRobotsTxt,er as generateRobotsTxt,Wu as generateSitemap,qu as generateSitemapIndex,_s as injectSeoTags,Zn as metaDirective,Cs as processMetaDirectives,Es as processSeoDirective,$s as processStructuredData,Uu as registerSeoDirectives,Ku as scanForSitemapEntries,Qn as structuredDataDirective};
|
package/dist/chunk-3aw80qrg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zc}from"./chunk-960axmf7.js";import"./chunk-pe9bvwqn.js";import"./chunk-1z26g0cf.js";import"./chunk-cd6hz56r.js";import"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Zc as buildForProduction};
|
package/dist/chunk-3gbjppvg.js
DELETED
package/dist/chunk-3nq94g1b.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{W,Kr,Xr,Va,wt,jo,Gr,Bo,vu,Ne,Jr,he}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import{hi,s}from"./chunk-ak95401g.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{W as BROWSER_CORE_IMPORTS,Va as STX_AUTO_IMPORTS,Kr as extractAndStripCssImports,Ne as extractBridgeData,hi as findInterpolationEnd,Bo as generateAutoImportDestructuring,vu as generateBrowserAutoImportDestructuring,Jr as generateServerDataBridge,wt as injectBrowserCoreAutoImports,he as processClientScript,Gr as referencesName,Xr as renderVendorStyleTags,s as stripCommentsAndLiterals,jo as transformAutoImports};
|
package/dist/chunk-4aw47rmg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rs,Gu,Ju,xi,fe,Rc,rr,Yu,Zu,Qu,ed,td,nd,rd,sd,od}from"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";export{nd as applyHead,Yu as definePageMeta,Rs as getHead,Gu as getPageMeta,fe as mergeHeadConfigs,rd as processHeadDirective,od as processMetaDirective,sd as processTitleDirective,td as renderBodyAttrs,Qu as renderHead,ed as renderHtmlAttrs,Ju as resetHead,rr as seoMetaToHeadConfig,xi as useHead,Zu as usePageTitle,Rc as useSeoMeta,Zu as useTitle};
|
package/dist/chunk-50vq8k55.js
DELETED
package/dist/chunk-5fvzzqa3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zi,pl,Qi,ea,fl,gl}from"./chunk-eg5djbse.js";import"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{gl as applySlots,fl as extractSlotContent,pl as parseSlotElement,Zi as parseSlots,ea as processSlots,Qi as renderSlot};
|
package/dist/chunk-5pjsc9zv.js
DELETED
package/dist/chunk-5sb7gw66.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$r,Er,_r,ta,na,ra,fo,sa,oa}from"./chunk-se55qe2x.js";export{$r as ImageProcessorCache,fo as applyTransformations,ta as clearImageCache,sa as generateResponsiveVariants,oa as generateSrcset,Er as getCachedImageResult,ra as optimizeImage,na as processImage,_r as setCachedImageResult};
|
package/dist/chunk-5y4qxmaw.js
DELETED
package/dist/chunk-7mh0fnrq.js
DELETED
package/dist/chunk-8mxjd1ge.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fa,ga,ma,ha,ya,ba,wa,va,xa,Sa,kl}from"./chunk-sarr8kz1.js";export{fa as createIslandRegistry,kl as default,Sa as generateIslandManifest,ma as generatePartialHydrationCSS,ba as hydrateAll,ya as hydrateByStrategy,ha as hydrateIsland,wa as isHydrated,va as onHydrated,ga as processPartialHydrationDirectives,xa as processStaticDirectives};
|
package/dist/chunk-8xvrcwtk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{eu,bo,Ta,tu,nu,ru,su,ou,Ra,Aa,iu,au,cu,lu}from"./chunk-1m9v96z5.js";import"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Ta as SUSPENSE_RESOLVER_RUNTIME,bo as buildSuspenseResolveScript,ou as createStreamRenderer,ru as extractStreamBoundaries,lu as generateHydrationRuntime,Aa as islandDirective,au as processSectionDirectives,nu as processStreamDirectives,iu as registerStreamingDirectives,tu as renderStreamingPage,eu as streamTemplate,su as streamTemplateSimple,cu as streamToResponse,Ra as streamingSuspenseDirective};
|
package/dist/chunk-969np51a.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ct,lc,uc,dc,pc,fc,d,gc,us,mc,si,oi}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Ct as STX_ENGINE_BINDING_NAMES,us as convertToCommonJS,si as extractScriptFromTemplate,d as extractVariables,oi as hasVariables,gc as isCompleteImport,fc as isMissingBindingFailure,dc as isModuleResolutionFailure,pc as isSyntaxFailure,mc as splitDeclaration,lc as stripTypeScript,uc as withoutStxReferrer};
|
package/dist/chunk-9kzk7zyy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{j,B,F,Ot,J,se,En,Yi,Ae,ut,Mt,Nt,Lt,z,jt,Bt,_n}from"./chunk-28s5x7wv.js";export{B as DEFAULT_FORMATS,F as DEFAULT_QUALITY,j as DEFAULT_WIDTHS,_n as ImageProcessingError,Bt as formatSize,ut as generateSizes,Ae as generateSrcSet,Mt as getFallbackVariant,En as getImageMetadata,z as getMimeType,jt as getTotalSize,Nt as groupVariantsByFormat,J as isImageBackendAvailable,Lt as isImageFile,Ot as isSharpAvailable,se as processImage,Yi as resizeAndConvert};
|
package/dist/chunk-9vqz2m13.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Wi,to,Xc,qi,Ki,Gc,Jc}from"./chunk-kzzjk2mx.js";import"./chunk-abts223v.js";import"./chunk-q8pn42an.js";import"./chunk-cd6hz56r.js";import"./chunk-8scw1bes.js";import{ze,sc}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Wi as buildVirtualSource,ze as extractScriptBlocks,sc as extractTemplateExpressions,qi as findRuntimeTypeDeclarations,Ki as findStxModuleDeclarations,Jc as formatTypecheckDiagnostics,Xc as sourcePathFor,Gc as typecheckStxFiles,to as virtualPathFor};
|
package/dist/chunk-ap9nnv9z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bu,yc,be,ai,Fu,ps,gs,ms}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Fu as clearOnceStore,ai as onceStore,be as partialsCache,ps as processIncludes,gs as processStackPushDirectives,ms as processStackReplacements,Bu as resetUnscopedSignalWarnings,yc as topLevelElements};
|
package/dist/chunk-bw0gkfb3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{yr,Js,Sn,br,wr,Pt,lt,Ys,kn,Cn,vr,xr,Wc,qc,Te}from"./chunk-tr25zcf1.js";export{Te as DeployError,Js as calculateSha1,Sn as collectDeployFiles,Cn as createDefaultNetlifyConfig,br as createFileManifest,yr as createNetlifyClient,Wc as deploy,kn as detectProjectConfig,wr as filterRequiredFiles,Pt as formatSize,Ys as generateNetlifyToml,lt as getTotalSize,xr as hasNetlifyConfig,qc as initNetlify,vr as writeNetlifyConfig};
|
package/dist/chunk-d20gxzk9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Me,Ja,Eu,_u,Tu,Ru,Ya,Za,Au,Pu,Vo,Iu,en,tn,Nn}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Ru as __setSignalsGeneratorsForTest,Me as cacheEngineFingerprint,tn as cacheTemplate,en as checkCache,Iu as clearDevCaches,Za as getCachedRouterScript,Ya as getCachedSignalsRuntime,Au as getServeClientAsset,Vo as getServeModuleBundle,Nn as hashFilePath,_u as invalidateFileCache,Tu as invalidateFileCacheByDir,Eu as readFileCached,Pu as registerServeModuleBundle,Ja as templateCache};
|
package/dist/chunk-db2sy0f3.js
DELETED
package/dist/chunk-dbj4sn74.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kl,Xl}from"./chunk-f4v80grv.js";import"./chunk-q8pn42an.js";import"./chunk-cd6hz56r.js";import"./chunk-8scw1bes.js";import"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Xl as clearStoreCache,Kl as getStoreScript};
|
package/dist/chunk-dts9z53c.js
DELETED
package/dist/chunk-ecr642nj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ms,Ns,Ze,G,hn,ar,yn,cr,lr,Ac,Pc,Ic,bn,Dc,Oc,Mc,Nc,Pi,Ii,Di,Ls,Oi,Lc,Qe,et,tt,nt,rt,st,ke,jc}from"./chunk-9ztdvnkk.js";export{yn as Router,Mc as abortNavigation,ar as bracketPathToRegex,Qe as clearMiddleware,Ii as createClientCookieManager,rt as createMiddlewareContext,nt as createRouteLocation,Pi as createServerCookieManager,Di as createStorageManager,Nc as defineMiddleware,Pc as defineRoute,Ic as defineRoutes,cr as findErrorPage,lr as formatRoutes,Ns as generateRouteManifest,Ms as generateRouteTypes,Oi as getMiddleware,et as getMiddlewareNames,ke as getRouterScript,jc as getRouterScriptDev,Lc as hasMiddleware,Ze as isFileRequestPath,tt as loadMiddlewareFromDirectory,hn as matchRoute,Oc as navigateTo,G as patternToRegex,Ls as registerMiddleware,Dc as resetRoutes,bn as route,st as runMiddleware,Ac as setAppUrl};
|
package/dist/chunk-eev60q15.js
DELETED
package/dist/chunk-ep7hz9af.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{On,Ua,xu,Wa,Su,qa,Mn,b,xt,ye,Ka,Zr,Xa,ku,q,Ga,Cu,x,$u}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Ga as applyFilters,Su as clearCustomFilters,Ka as clientLoopScopes,On as defaultFilters,b as escapeHtml,xt as escapeHtmlValue,x as evaluateExpression,qa as findMustacheEnd,Wa as getAllFilters,Xa as interpolateScriptAttributes,Zr as interpolateScriptExpressions,ku as interpolateScriptsInTemplate,q as processExpressions,Ua as registerFilter,xu as registerFilters,Mn as replaceInterpolations,Cu as resetRejectedExpressionWarnings,$u as unescapeHtml,ye as usesSignalsInScript};
|
package/dist/chunk-fe5xht52.js
DELETED
package/dist/chunk-fqhewm3t.js
DELETED
package/dist/chunk-gzbzfndm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{bt,Vr,Ur,Wr,wu,qr}from"./chunk-cd6hz56r.js";import"./chunk-j4afmryj.js";import"./chunk-99kt56fn.js";import"./chunk-9ztdvnkk.js";export{Ur as buildServerApi,wu as createServerApi,bt as discoverServerApi,Vr as generateApiTypes,qr as isServerApiSource,Wr as productionApiDispatcher};
|
package/dist/chunk-hgcvtfnz.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Qc,el,tl,nl,Gi,rl,sl,ol,il,al,cl,ll}from"./chunk-5x9ftmve.js";export{cl as Broadcast,ll as BroadcastServer,Gi as broadcast,il as broadcastPresence,ol as broadcastPrivate,al as channel,Qc as getBroadcastServer,nl as loadChannels,el as startBroadcasting,tl as stopBroadcasting,rl as toUser,sl as toUsers};
|
package/dist/chunk-j338fs8k.js
DELETED
package/dist/chunk-jbmwm6k4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vt,ds,ii,hc}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{hc as declareBareLoopHead,vt as parseLoopBinding,ii as processLoops,ds as reportDeferredLoopWarnings};
|
package/dist/chunk-jvdren00.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ie,Wt,Gl}from"./chunk-1z26g0cf.js";import{V,Tn,qt,Nr,Lr,Rn,Jl,Yl,Zl,Kt,Xt,jr,An,Ql}from"./chunk-80hpdc22.js";import"./chunk-01nx6zcw.js";export{Nr as batch,Gl as default,Tn as derived,qt as effect,Ie as generateSignalsRuntime,Wt as generateSignalsRuntimeDev,Xt as isDerived,Kt as isSignal,Rn as onDestroy,Lr as onMount,An as peek,Zl as pendingLifecycleCounts,Yl as runDestroyCallbacks,Jl as runMountCallbacks,V as state,jr as untrack,Ql as useOptimistic};
|
package/dist/chunk-k7t0rmzy.js
DELETED
package/dist/chunk-k84qkm21.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tr,Rr,Ar,ia,Pr,Ir,aa,Dr,Or,go,ca}from"./chunk-w6n2j62h.js";export{Tr as VideoProcessorCache,go as analyzeVideo,ia as clearVideoCache,Or as generateDASHManifest,Dr as generateHLSManifest,Pr as generatePoster,aa as generateSpriteSheet,Ir as generateThumbnails,Rr as getCachedVideoResult,ca as processVideo,Ar as setCachedVideoResult};
|
package/dist/chunk-kd7m4d0g.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{d,us,si,oi,bc,wc,vc,xc,Sc,kc,Ve,L,Ue,Cc,qn,$c,li,Ec,We,r,Kn,ui,g,ee,zu}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{ee as clearComponentCache,Ec as componentClientSignalNames,us as convertToCommonJS,g as createDetailedErrorMessage,Sc as extractDirectiveNames,si as extractScriptFromTemplate,d as extractVariables,r as fileExists,zu as getComponentCacheStats,wc as getPositionInfo,L as getSharedTranspiler,ui as getSourceLineInfo,xc as hasDirectives,oi as hasVariables,$c as isHydrateTrigger,kc as isJavaScriptScript,We as renderComponentWithSlot,Kn as resolveTemplatePath,Cc as scopeOnRootElement,Ve as shouldTranspileTypeScript,li as slotContentHasExpressions,Ue as transpileTypeScript,qn as userComponentFileExists,vc as validateDirective,bc as validateTemplate};
|
package/dist/chunk-kk5cyjfs.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import i from"path";var $t=".stx",o="STX_DIR",e=null;function vi(t){e=t?.trim()||null}function an(){return process.env[o]?.trim()||e||$t}function a(t=process.cwd(),...n){let r=an();return i.isAbsolute(r)?i.join(r,...n):i.join(t,r,...n)}function cn(t){if(!t||i.isAbsolute(t))return t;let n=t.replace(/\\/g,"/");if(n!==$t&&!n.startsWith(`${$t}/`))return t;let r=n.slice($t.length+1);return r?i.join(an(),r):an()}
|
|
3
|
-
export{$t,vi,an,a,cn};
|
package/dist/chunk-kmf7yh91.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Uc}from"./chunk-7kjkmvrn.js";import"./chunk-pe9bvwqn.js";import"./chunk-cd6hz56r.js";import"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{Uc as startProductionServer};
|
package/dist/chunk-m5dgc757.js
DELETED
package/dist/chunk-m8w4hve0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Li,Zs,ji,Bi,Qs,Fi,zi,Hi,Vi,eo,Ui,Kc}from"./chunk-cxbp2m66.js";import{uo,Ji}from"./chunk-gkj42zq7.js";import{j,B,F,Ot,J,se,En,Ae,ut,Mt,Nt,Lt,z,jt,Bt,_n}from"./chunk-28s5x7wv.js";import{_a}from"./chunk-vvs75dse.js";export{B as DEFAULT_FORMATS,F as DEFAULT_QUALITY,j as DEFAULT_WIDTHS,_n as ImageProcessingError,Bi as clearImageCache,Qs as createImageDirective,Ji as createImageHandler,zi as createImagePlugin,Kc as defaultImageConfig,Bt as formatSize,eo as generateImageManifest,ut as generateSizes,Ae as generateSrcSet,Mt as getFallbackVariant,En as getImageMetadata,z as getMimeType,jt as getTotalSize,Nt as groupVariantsByFormat,uo as handleImageRequest,Fi as imageDirective,J as isImageBackendAvailable,Lt as isImageFile,Ot as isSharpAvailable,Vi as optimizeDirectory,Hi as optimizeImage,Zs as parseImageComponent,se as processImage,ji as processImageComponents,Li as renderImageComponent,_a as rewriteImagesWithSiblings,Ui as writeImageManifest};
|
package/dist/chunk-mhwptrvm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Mr,El,_l}from"./chunk-abts223v.js";import"./chunk-q8pn42an.js";import"./chunk-cd6hz56r.js";import"./chunk-8scw1bes.js";import"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{_l as clearComposableCache,El as getComposableScript,Mr as listComposableModules};
|
package/dist/chunk-mmh37ywa.js
DELETED
package/dist/chunk-ms5aj58v.js
DELETED
package/dist/chunk-n454sydr.js
DELETED
package/dist/chunk-pd5r4j8r.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{rn,oc,os}from"./chunk-b1kdmkk8.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-q9996m6n.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import{xe}from"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-9ztdvnkk.js";import"./chunk-pcq6vphz.js";export{xe as freeIdentifiers,os as processComponents,oc as processESImports,rn as rendersAsElement};
|