@stacksjs/stx 0.2.238 → 0.2.240
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-4awxsp8f.js → chunk-092sm06a.js} +2 -2
- package/dist/{chunk-11mxy34t.js → chunk-0cznrnwk.js} +2 -2
- package/dist/{chunk-mbwe1z12.js → chunk-0kq46rxg.js} +1 -1
- package/dist/{chunk-p4a35r71.js → chunk-0ks60fk1.js} +1 -1
- package/dist/{chunk-cjhpwef8.js → chunk-0s88j6n8.js} +1 -1
- package/dist/{chunk-bskzz385.js → chunk-15rgmdtq.js} +1 -1
- package/dist/{chunk-hk8j3eps.js → chunk-19m7hed6.js} +1 -1
- package/dist/chunk-1fj21pgq.js +2 -0
- package/dist/{chunk-n7w8kgfw.js → chunk-1p0r6k2f.js} +1 -1
- package/dist/{chunk-xgtcq9bj.js → chunk-1px4xey5.js} +1 -1
- package/dist/{chunk-p56hfz00.js → chunk-20q757q9.js} +1 -1
- package/dist/{chunk-8t7w323q.js → chunk-2p5qa9pm.js} +1 -1
- package/dist/{chunk-msxcd1kp.js → chunk-2qkasmq1.js} +2 -2
- package/dist/chunk-2vjheprp.js +2 -0
- package/dist/{chunk-hv6hat6p.js → chunk-33pdtz6a.js} +1 -1
- package/dist/{chunk-0e1pt5my.js → chunk-37nm0f2v.js} +2 -2
- package/dist/chunk-404eam50.js +2 -0
- package/dist/chunk-4t43nqtn.js +2 -0
- package/dist/{chunk-5q44vwmg.js → chunk-5w362c8x.js} +1 -1
- package/dist/chunk-6brdnp9j.js +2 -0
- package/dist/chunk-6fdg7043.js +2 -0
- package/dist/chunk-6h4f19sb.js +2 -0
- package/dist/{chunk-qygqf2zb.js → chunk-6mk7fd7v.js} +1 -1
- package/dist/{chunk-89nbkhxk.js → chunk-6mtc3b9a.js} +1 -1
- package/dist/{chunk-frh6b2q7.js → chunk-6qtx7w2r.js} +1 -1
- package/dist/{chunk-wdwf3wzg.js → chunk-78bpc81t.js} +1 -1
- package/dist/{chunk-4tybm7fx.js → chunk-7djq40jk.js} +1 -1
- package/dist/{chunk-z0y4gcsp.js → chunk-7mqbw6qv.js} +1 -1
- package/dist/{chunk-rkhfhfas.js → chunk-8g7xy48w.js} +1 -1
- package/dist/{chunk-1jcyfxq5.js → chunk-8x4h673x.js} +1 -1
- package/dist/{chunk-k46js7bz.js → chunk-9228drk4.js} +1 -1
- package/dist/{chunk-n0kbk2ge.js → chunk-98pkw4t1.js} +1 -1
- package/dist/chunk-9h74bkfh.js +2 -0
- package/dist/{chunk-2fspj91j.js → chunk-a8fx6wcb.js} +1 -1
- package/dist/{chunk-ggsxz07y.js → chunk-adj1k3w7.js} +1 -1
- package/dist/{chunk-a6m63ra1.js → chunk-ae85dv6n.js} +1 -1
- package/dist/{chunk-cs9cynxh.js → chunk-ajjwrrmz.js} +1 -1
- package/dist/{chunk-5a1b5kjt.js → chunk-ax56kn66.js} +1 -1
- package/dist/{chunk-8k7evyhh.js → chunk-b212gjes.js} +1 -1
- package/dist/{chunk-nnd1hqht.js → chunk-b220zqbz.js} +3 -3
- package/dist/chunk-b5w02n3z.js +22 -0
- package/dist/{chunk-m2v35nze.js → chunk-bn0td54v.js} +1 -1
- package/dist/{chunk-w56erqz5.js → chunk-brpvf652.js} +1 -1
- package/dist/{chunk-7qgt3b5t.js → chunk-bx4nptd2.js} +1 -1
- package/dist/{chunk-1xgva25g.js → chunk-by3zs4ag.js} +1 -1
- package/dist/{chunk-sbpzt8yd.js → chunk-c0apssp7.js} +1 -1
- package/dist/{chunk-v65nfy32.js → chunk-c9843bnq.js} +1 -1
- package/dist/{chunk-mccyah24.js → chunk-cda7v05f.js} +1 -1
- package/dist/chunk-cj3zqzd0.js +2 -0
- package/dist/chunk-ekx9j0rv.js +2 -0
- package/dist/{chunk-cdb8a0tx.js → chunk-enewax5b.js} +1 -1
- package/dist/{chunk-fee1k8c5.js → chunk-etx5vb1n.js} +1 -1
- package/dist/chunk-eyfmvy7z.js +2 -0
- package/dist/chunk-fdp386zd.js +2 -0
- package/dist/chunk-fethffrc.js +2 -0
- package/dist/{chunk-yf04htgs.js → chunk-fnty12j5.js} +1 -1
- package/dist/{chunk-dzr5w33y.js → chunk-ft61rs60.js} +10 -10
- package/dist/{chunk-qa8qmer5.js → chunk-g553n48p.js} +1 -1
- package/dist/{chunk-s8bx0wv7.js → chunk-gaj725dz.js} +1 -1
- package/dist/chunk-h4ccaa7d.js +2 -0
- package/dist/{chunk-acwjyext.js → chunk-j79s71z4.js} +1 -1
- package/dist/{chunk-8p8qa1s9.js → chunk-k26kt6fp.js} +1 -1
- package/dist/{chunk-2k9xsqnx.js → chunk-kq9abgx2.js} +1 -1
- package/dist/{chunk-x58dcsjw.js → chunk-m0xp6xjr.js} +1 -1
- package/dist/{chunk-vtfzc29r.js → chunk-m8h6km5v.js} +1 -1
- package/dist/chunk-mjck13y3.js +2 -0
- package/dist/{chunk-1kg9sz9a.js → chunk-mv2v3g62.js} +1 -1
- package/dist/{chunk-g6bdbdvj.js → chunk-myqyr2dp.js} +1 -1
- package/dist/{chunk-4s11yb67.js → chunk-n07dds2d.js} +1 -1
- package/dist/{chunk-6x3jqwxp.js → chunk-n3tj3h1q.js} +1 -1
- package/dist/{chunk-mxva4zmq.js → chunk-nhn7qftp.js} +1 -1
- package/dist/chunk-np6b30jn.js +2 -0
- package/dist/{chunk-y805f58c.js → chunk-nw7y6zw8.js} +1 -1
- package/dist/{chunk-hx0zj6c9.js → chunk-nzser3gj.js} +1 -1
- package/dist/chunk-p6gb0bak.js +2 -0
- package/dist/{chunk-frv8qh41.js → chunk-p7a8mgns.js} +1 -1
- package/dist/{chunk-a0zaf8r9.js → chunk-phj11c6x.js} +1 -1
- package/dist/{chunk-5e2j8d7r.js → chunk-q9vxc3gc.js} +1 -1
- package/dist/chunk-qmww6n4b.js +2 -0
- package/dist/{chunk-j4ze77e0.js → chunk-qs0fp63n.js} +1 -1
- package/dist/{chunk-9hcw5zsr.js → chunk-qv3g8tde.js} +1 -1
- package/dist/chunk-r2zcdk2f.js +2 -0
- package/dist/chunk-r4wxxggc.js +2 -0
- package/dist/{chunk-7y7dp1ba.js → chunk-sdfe1xce.js} +1 -1
- package/dist/{chunk-j2pmv4jw.js → chunk-shh4byc3.js} +1 -1
- package/dist/chunk-sxx50f3k.js +2 -0
- package/dist/{chunk-s2smc4wv.js → chunk-szchgak8.js} +1 -1
- package/dist/chunk-t2fwnrw9.js +2 -0
- package/dist/chunk-tx9zv1xv.js +2 -0
- package/dist/{chunk-w9yfvb4d.js → chunk-v0tmvq31.js} +1 -1
- package/dist/{chunk-spnkgsft.js → chunk-v2vv4etv.js} +22 -22
- package/dist/chunk-v8mxhfp7.js +2 -0
- package/dist/chunk-vd3w4q9e.js +2 -0
- package/dist/chunk-vgnjrgnk.js +2 -0
- package/dist/{chunk-d1pp19wx.js → chunk-w3pzxz3m.js} +1 -1
- package/dist/chunk-wjebx46w.js +2 -0
- package/dist/chunk-wz1gwj81.js +2 -0
- package/dist/{chunk-evv58hf5.js → chunk-x41v697c.js} +1 -1
- package/dist/{chunk-v4t1kxm7.js → chunk-xddvx94h.js} +1 -1
- package/dist/{chunk-7hfjv9ej.js → chunk-xj05xmfg.js} +1 -1
- package/dist/{chunk-r2kag877.js → chunk-z2gmz9ew.js} +2 -2
- package/dist/{chunk-jjehgxtc.js → chunk-z8t5cs8f.js} +1 -1
- package/dist/cli.js +14 -14
- package/dist/client-script.d.ts +6 -0
- package/dist/client-script.js +1 -2
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/database.js +1 -1
- package/dist/pwa.js +2 -2
- package/dist/ssg.js +2 -2
- package/dist/stx-virtual-ts.d.ts +25 -2
- package/dist/stx-virtual-ts.js +56 -5
- package/dist/visual-testing.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-0b88ky9d.js +0 -2
- package/dist/chunk-38nq2ymv.js +0 -2
- package/dist/chunk-412apa52.js +0 -2
- package/dist/chunk-7rfx2s7c.js +0 -2
- package/dist/chunk-9g2rhkx8.js +0 -22
- package/dist/chunk-9scfmhph.js +0 -2
- package/dist/chunk-a0aqpzm6.js +0 -2
- package/dist/chunk-cff5gpvr.js +0 -2
- package/dist/chunk-dcc04y1t.js +0 -2
- package/dist/chunk-e4gycrtb.js +0 -2
- package/dist/chunk-f7se90b8.js +0 -2
- package/dist/chunk-g98vjcbj.js +0 -2
- package/dist/chunk-gcn830km.js +0 -2
- package/dist/chunk-gg2epwyx.js +0 -2
- package/dist/chunk-h451yyp6.js +0 -2
- package/dist/chunk-hd1hr94w.js +0 -2
- package/dist/chunk-hfc4afre.js +0 -2
- package/dist/chunk-j5rmhyqr.js +0 -2
- package/dist/chunk-je7cvg5j.js +0 -2
- package/dist/chunk-jqnckvbk.js +0 -2
- package/dist/chunk-mdk3c8n2.js +0 -2
- package/dist/chunk-n27c7jvr.js +0 -2
- package/dist/chunk-nrzx6d77.js +0 -2
- package/dist/chunk-pz3n5qde.js +0 -2
- package/dist/chunk-ssbddr82.js +0 -2
- package/dist/chunk-wc5385mg.js +0 -2
- package/dist/chunk-x21s75kv.js +0 -2
- package/dist/chunk-xrx24ndt.js +0 -2
- package/dist/chunk-z54ans51.js +0 -2
package/dist/pwa.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Gk as wq,Hk as dq,Ik as Cq,Jk as mq,Kk as gq}from"./chunk-kaet6r9w.js";import{Lk as S,Mk as Tq,Nk as _q,Ok as z,Pk as D,Qk as P,Rk as kq,Sk as vq,Tk as w,Uk as Iq,Vk as d,Wk as Hq,Xk as Oq,Yk as Mq}from"./chunk-
|
|
3
|
-
Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-
|
|
2
|
+
import{Gk as wq,Hk as dq,Ik as Cq,Jk as mq,Kk as gq}from"./chunk-kaet6r9w.js";import{Lk as S,Mk as Tq,Nk as _q,Ok as z,Pk as D,Qk as P,Rk as kq,Sk as vq,Tk as w,Uk as Iq,Vk as d,Wk as Hq,Xk as Oq,Yk as Mq}from"./chunk-nzser3gj.js";import{Fu as Aq,Gu as bq,Hu as Sq,Iu as zq,Ju as Dq,Ku as Pq}from"./chunk-k26kt6fp.js";import{Ou as N}from"./chunk-qs0fp63n.js";import p from"fs";import E from"path";import C from"fs";import L from"path";var k=[72,96,128,144,152,192,384,512],v=[120,152,167,180],I=[16,32];async function H(G,B){let q={success:!0,generatedFiles:[],errors:[],warnings:[]},K=G.pwa?.icons;if(!K?.src)return q.errors.push("No source icon specified in pwa.icons.src"),q.success=!1,q;let Y=L.isAbsolute(K.src)?K.src:L.resolve(process.cwd(),K.src);if(!await Bun.file(Y).exists())return q.errors.push(`Source icon not found: ${Y}`),q.success=!1,q;let Q=L.resolve(B,K.outputDir||"pwa-icons");try{C.mkdirSync(Q,{recursive:!0})}catch{return q.errors.push(`Failed to create output directory: ${Q}`),q.success=!1,q}let X=K.sizes||k,j=K.generateWebP??!0,J=K.generateAppleIcons??!0;try{let y;try{y=await import("sharp")}catch{return q.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
|
+
Icon generation requires the sharp package for image processing.`),q.success=!1,q}let R=await y.default(Y).metadata();if(R.width&&R.width<512)q.warnings.push(`Source icon is ${R.width}x${R.height}. Recommend using at least 512x512 for best quality.`);for(let $ of X){let x=L.join(Q,`icon-${$}x${$}.png`);if(await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x),j){let F=L.join(Q,`icon-${$}x${$}.webp`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(F),q.generatedFiles.push(F)}}if(J){for(let x of v){let F=L.join(Q,`apple-touch-icon-${x}x${x}.png`);await y.default(Y).resize(x,x,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(F),q.generatedFiles.push(F)}let $=L.join(Q,"apple-touch-icon.png");await y.default(Y).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile($),q.generatedFiles.push($)}for(let $ of I){let x=L.join(Q,`favicon-${$}x${$}.png`);await y.default(Y).resize($,$,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(x),q.generatedFiles.push(x)}let U=512,T=L.join(Q,`icon-maskable-${U}x${U}.png`),Z=Math.floor(U*0.1),_=U-Z*2;await y.default(Y).resize(_,_,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:Z,bottom:Z,left:Z,right:Z,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(T),q.generatedFiles.push(T)}catch(y){let V=y instanceof Error?y.message:String(y);q.errors.push(`Icon generation failed: ${V}`),q.success=!1}return q}function n(G){let B=G.sizes||k,q=G.outputDir?`/${G.outputDir}`:"/pwa-icons",K=G.generateWebP??!0,Y=G.generateAppleIcons??!0,Q=[];for(let X of B)if(Q.push(`${q}/icon-${X}x${X}.png`),K)Q.push(`${q}/icon-${X}x${X}.webp`);if(Y){Q.push(`${q}/apple-touch-icon.png`);for(let X of v)Q.push(`${q}/apple-touch-icon-${X}x${X}.png`)}for(let X of I)Q.push(`${q}/favicon-${X}x${X}.png`);return Q.push(`${q}/icon-maskable-512x512.png`),Q}async function O(){try{return await import("sharp"),!0}catch{return!1}}function m(G,B,q,K){let Y=[],Q=K.join(" ");for(let X of G)if(Y.push({src:`${B}/icon-${X}x${X}.png`,sizes:`${X}x${X}`,type:"image/png",purpose:Q}),q)Y.push({src:`${B}/icon-${X}x${X}.webp`,sizes:`${X}x${X}`,type:"image/webp",purpose:Q});return Y}function g(G){return G.map((B)=>({name:B.name,short_name:B.shortName,description:B.description,url:B.url,icons:B.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function h(G){let B=G.pwa?.shareTarget;if(!B?.enabled)return;let q={action:B.action||"/share",method:B.method||"POST",enctype:B.enctype||"multipart/form-data",params:{title:B.params?.title||"title",text:B.params?.text||"text",url:B.params?.url||"url"}};if(B.acceptFiles&&B.acceptFiles.length>0)q.params.files=B.acceptFiles.map((K)=>({name:K.name,accept:K.accept}));return q}function c(G){let B=G.pwa?.fileHandlers;if(!B?.enabled||!B.accept)return;let q=[{action:B.action||"/",accept:B.accept,launch_type:B.launchType||"single-client"}];if(B.icons)q[0].icons=B.icons.map((K)=>({src:K.src,sizes:K.sizes,type:K.type}));return q}function l(G){let B=G.pwa?.protocolHandlers;if(!B||B.length===0)return;return B.map((q)=>({protocol:q.protocol,url:q.url}))}function u(G){let B=G.pwa;if(!B?.enabled||!B.manifest)return null;let{manifest:q,icons:K}=B,Y=K?.sizes||[72,96,128,144,152,192,384,512],Q=K?.outputDir?`/${K.outputDir}`:"/pwa-icons",X=K?.generateWebP??!0,j=K?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:m(Y,Q,X,j)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=g(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((U)=>({src:U.src,sizes:U.sizes,type:U.type,label:U.label,form_factor:U.platform}));let y=h(G);if(y)J.share_target=y;let V=c(G);if(V)J.file_handlers=V;let R=l(G);if(R)J.protocol_handlers=R;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function M(G){let B=u(G);if(!B)return"";let q=JSON.parse(JSON.stringify(B));return JSON.stringify(q,null,2)}function i(G,B){return{...B,...G,shortcuts:G.shortcuts||B.shortcuts,screenshots:G.screenshots||B.screenshots,categories:G.categories||B.categories}}function s(G){let B=[],q=G.pwa;if(!q?.enabled)return B;let K=q.manifest;if(!K)return B.push("PWA manifest configuration is missing"),B;if(!K.name)B.push("Manifest name is required");let Y=["fullscreen","standalone","minimal-ui","browser"];if(K.display&&!Y.includes(K.display))B.push(`Invalid display mode: ${K.display}. Must be one of: ${Y.join(", ")}`);let Q=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(K.orientation&&!Q.includes(K.orientation))B.push(`Invalid orientation: ${K.orientation}`);let X=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(K.themeColor&&!X.test(K.themeColor))B.push(`Invalid theme color: ${K.themeColor}. Must be a valid hex color.`);if(K.backgroundColor&&!X.test(K.backgroundColor))B.push(`Invalid background color: ${K.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)B.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)B.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let j of q.protocolHandlers){if(!j.protocol)B.push("Protocol handler missing protocol");if(!j.url||!j.url.includes("%s"))B.push(`Protocol handler URL must contain %s placeholder: ${j.protocol}`)}return B}import A from"path";async function b(G){let B=G.pwa?.offline;if(!B?.enabled)return"";if(B.page){let q=A.isAbsolute(B.page)?B.page:A.resolve(process.cwd(),B.page);if(await Bun.file(q).exists())try{let{processDirectives:K}=await import("./chunk-9h74bkfh.js"),Y=await Bun.file(q).text();return await K(Y,{},q,G,new Set)}catch(K){console.warn(`[PWA] Failed to process custom offline page: ${K}`)}else console.warn(`[PWA] Custom offline page not found: ${q}`)}return f(G)}function f(G){let B=G.pwa?.offline,q=G.pwa?.manifest,K=B?.fallbackTitle||"You are offline",Y=B?.fallbackMessage||"Please check your internet connection and try again.",Q=q?.themeColor||"#4f46e5",X=q?.shortName||q?.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{Ck as Tq,xk as Bq,yk as Hq}from"./chunk-
|
|
2
|
+
import{Ck as Tq,xk as Bq,yk as Hq}from"./chunk-b212gjes.js";import{Dk as Uq,Ek as Iq,Fk as Eq}from"./chunk-frp9fc7j.js";import{$k as Nq,al as _q}from"./chunk-phj11c6x.js";import"./chunk-r84h7wxw.js";import{Eq as y,Im as Aq,Sp as Oq,_o as c,bp as Xq,bs as l}from"./chunk-v2vv4etv.js";import"./chunk-092sm06a.js";import"./chunk-19m7hed6.js";import"./chunk-nhn7qftp.js";import"./chunk-mv2v3g62.js";import{Zs as zq}from"./chunk-b220zqbz.js";import"./chunk-2qkasmq1.js";import{jt as f}from"./chunk-1px4xey5.js";import"./chunk-a8fx6wcb.js";import"./chunk-x41v697c.js";import"./chunk-ax56kn66.js";import{tu as Wq,uu as Yq,vu as Vq,wu as jq,xu as Gq,yu as Lq}from"./chunk-z2gmz9ew.js";import"./chunk-k26kt6fp.js";import{Ou as k}from"./chunk-qs0fp63n.js";import B from"fs";import j from"path";import{createHash as wq}from"crypto";function Sq(q){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(q).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return q}}var vq=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function xq(q){return Bun.hash(q).toString(16)}function Jq(q,Z={}){if(!q.includes('type="stx/island"'))return{html:q,chunks:[]};let $=new Map,Q=q.replace(vq,(J,W,z,X)=>{let N=X.trim();if(!N)return J;if(/\bdata-stx-src=/.test(z))return J;if(Z.minify)N=Sq(N);let O=xq(N);if(!$.has(O))$.set(O,N);let H=Z.integrity?` data-stx-integrity="sha384-${wq("sha384").update(N).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${W}" data-stx-src="/_stx/islands/${O}.js"${H}${z}></script>`}),K=Array.from($,([J,W])=>({hash:J,code:W}));return{html:Q,chunks:K}}var yq=new Set(["visible","idle"]);function Qq(q){if(!q.includes("data-stx-src="))return q;let Z=new Map,$=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,Q;while((Q=$.exec(q))!==null)Z.set(Q[1],Q[2]);let K=new Set,J=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,W;while((W=J.exec(q))!==null)if(yq.has(Z.get(W[1])||""))K.add(W[2]);let z=q.lastIndexOf("</head>");if(K.size===0||z===-1)return q;let X=Array.from(K).filter((N)=>!q.includes(`rel="prefetch" href="${N}"`)).map((N)=>`<link rel="prefetch" href="${N}" as="script">`).join("");if(!X)return q;return q.slice(0,z)+X+q.slice(z)}var Pq=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function u(q){let Z=q.trim();if(!Z)return null;let $=/^https?:\/\//i.test(Z)?Z:`https://${Z}`;try{return new URL($).origin+new URL($).pathname.replace(/\/$/,"")}catch{return null}}function Cq(q){for(let Z of Pq){let $=q[Z];if(!$)continue;let Q=u($);if(Q)return{url:Q,source:"env",via:Z}}return null}function Zq(q){if(!q||typeof q!=="object")return null;let Z=q,$=Z.site?.url??Z.url??Z.app?.url;return typeof $==="string"?u($):null}async function gq(q){let{existsSync:Z}=await import("fs"),$=await import("path");for(let Q of["site.config.ts","site.config.js",".config/site.config.ts"]){let K=$.resolve(q,Q);if(!Z(K))continue;try{let J=await import(K),W=Zq(J.default??J);if(W)return W}catch{}}return null}async function $q(q={}){let Z=q.cwd??process.cwd(),$=q.env??process.env;if(q.explicit){let W=u(q.explicit);if(W)return{url:W,source:"option"}}let Q=Zq(q.stxConfig);if(Q)return{url:Q,source:"stx.config",via:"site.url"};let K=await gq(Z);if(K)return{url:K,source:"site.config",via:"url"};let J=Cq($);if(J)return J;return{url:"http://localhost",source:"fallback"}}function Kq(){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 Dq{cacheDir;cache=new Map;loaded=!1;salt;constructor(q,Z=""){this.cacheDir=q,this.salt=Z}async load(){if(this.loaded)return;let q=j.join(this.cacheDir,"build-cache.json");if(await Bun.file(q).exists())try{let Z=JSON.parse(await Bun.file(q).text());for(let[$,Q]of Object.entries(Z))this.cache.set($,Q)}catch{}this.loaded=!0}async save(){await B.promises.mkdir(this.cacheDir,{recursive:!0});let q=j.join(this.cacheDir,"build-cache.json"),Z={};for(let[$,Q]of this.cache)Z[$]=Q;await Bun.write(q,JSON.stringify(Z))}getHash(q,Z){let $=B.statSync(q),Q=`${this.salt}|${q}:${$.mtimeMs}`;for(let J of Z)if(B.existsSync(J)){let W=B.statSync(J);Q+=`:${J}:${W.mtimeMs}`}let K=0;for(let J=0;J<Q.length;J++){let W=Q.charCodeAt(J);K=(K<<5)-K+W,K=K&K}return Math.abs(K).toString(36)}get(q,Z){let $=this.cache.get(q);if(!$)return null;let Q=this.getHash(Z,$.dependencies??[]);if($.hash!==Q)return this.cache.delete(q),null;return $.html}set(q,Z,$,Q){let K=this.getHash(Z,$);this.cache.set(q,{hash:K,html:Q,generatedAt:Date.now(),dependencies:$})}}class Fq{cacheDir;constructor(q){this.cacheDir=q}getFilePath(q){let Z=q.replace(/[^a-zA-Z0-9]/g,"_")+".json";return j.join(this.cacheDir,"isr",Z)}async get(q){let Z=this.getFilePath(q);if(!await Bun.file(Z).exists())return null;try{return JSON.parse(await Bun.file(Z).text())}catch{return null}}async set(q,Z){let $=this.getFilePath(q);await B.promises.mkdir(j.dirname($),{recursive:!0}),await Bun.write($,JSON.stringify(Z))}async invalidate(q){let Z=this.getFilePath(q);if(await Bun.file(Z).exists())await B.promises.unlink(Z)}async invalidatePattern(q){let Z=j.join(this.cacheDir,"isr");if(!B.existsSync(Z))return;let $=await B.promises.readdir(Z);for(let Q of $){let K=Q.replace(/_/g,"/").replace(".json","");if(q.test(K))await B.promises.unlink(j.join(Z,Q))}}async needsRevalidation(q){let Z=await this.get(q);if(!Z)return!0;return Date.now()>Z.revalidateAfter}}async function fq(q){try{let $=(await Bun.file(q).text()).match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!$)return null;let Q=$[1];if(!Q.includes("getStaticPaths"))return null;let K=Q.match(/(?:export\s+)?(?:async\s+)?function\s+getStaticPaths\s*\([^)]*\)\s*\{([\s\S]*?)\n[\t ]*\}/);if(!K)return null;return await Function(`
|
|
4
4
|
return (async function getStaticPaths() {
|
|
5
5
|
${K[1]}
|
|
@@ -41,7 +41,7 @@ ${q.map((Q)=>{let K=new URL(Q.loc,Z).href,J=` <url>
|
|
|
41
41
|
${$.join(`
|
|
42
42
|
`)}
|
|
43
43
|
</channel>
|
|
44
|
-
</rss>`}async function sq(q={}){let Z=Date.now();_q();let $=await l(process.cwd()),Q=$.build||{},K=await $q({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Kq());let J={pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||f(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},z=new Set,X=0,N={},O={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&B.existsSync(J.outputDir))await B.promises.rm(J.outputDir,{recursive:!0});await B.promises.mkdir(J.outputDir,{recursive:!0});let _=J.cacheSalt;if(!_){let{resolveUserCrosswindConfig:Y,fingerprintConfig:G}=await import("./chunk-
|
|
44
|
+
</rss>`}async function sq(q={}){let Z=Date.now();_q();let $=await l(process.cwd()),Q=$.build||{},K=await $q({explicit:q.domain||Q.domain,stxConfig:$});if(K.source==="fallback"&&(q.sitemap??Q.sitemap??!0))console.warn(Kq());let J={pagesDir:q.pagesDir||Q.pagesDir||"pages",outputDir:q.outputDir||Q.outputDir||"dist",baseUrl:q.baseUrl||Q.baseUrl||"/",domain:K.url,revalidate:q.revalidate??Q.revalidate??!1,sitemap:q.sitemap??Q.sitemap??!0,sitemapExclude:q.sitemapExclude||Q.sitemapExclude||[],robots:q.robots??Q.robots??!0,rss:q.rss??Q.rss??!1,concurrency:q.concurrency||Q.concurrency||10,cache:q.cache??Q.cache??!0,cacheDir:q.cacheDir||Q.cacheDir||f(process.cwd(),"ssg-cache"),contentLoaders:q.contentLoaders||[],hooks:q.hooks||{},minify:q.minify??Q.minify??!0,generate404:q.generate404??Q.generate404??!0,publicDir:q.publicDir||Q.publicDir||"public",trailingSlash:q.trailingSlash??Q.trailingSlash??!1,cleanOutput:q.cleanOutput??Q.cleanOutput??!0,cacheSalt:q.cacheSalt??"",partialsDir:q.partialsDir||$?.partialsDir||"",componentsDir:q.componentsDir||$?.componentsDir||"",failOnIncludeError:q.failOnIncludeError??!0,chunkIslands:q.chunkIslands===!0,prefetchIslands:q.prefetchIslands===!0,integrityIslands:q.integrityIslands===!0},W={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},z=new Set,X=0,N={},O={};await J.hooks.onBuildStart?.();try{if(J.cleanOutput&&B.existsSync(J.outputDir))await B.promises.rm(J.outputDir,{recursive:!0});await B.promises.mkdir(J.outputDir,{recursive:!0});let _=J.cacheSalt;if(!_){let{resolveUserCrosswindConfig:Y,fingerprintConfig:G}=await import("./chunk-ae85dv6n.js");try{_=G(await Y(process.cwd()))}catch{}}let L=new Dq(J.cacheDir,_);if(J.cache)await L.load();try{let{generateCrosswindCSS:Y}=await import("./chunk-ae85dv6n.js");await Y('<div class="bg-black"></div>')}catch{}Wq();let m=$?.routeMiddleware?.dir||"middleware";await Vq(process.cwd(),m);let p=Yq();if(p.length>0)console.log(`Loaded ${p.length} middleware: ${p.join(", ")}`);let Mq=$?.routeMiddleware?.global||[];Tq($?.layoutsDir,f(process.cwd()));let n=c(".",{pagesDir:J.pagesDir});console.log(`Found ${n.length} routes`);let P=[];for(let Y of n){let G=await mq(Y);for(let A of G)P.push({route:Y,url:A.url,params:A.params,props:A.props,revalidate:A.revalidate??J.revalidate})}W.totalPages=P.length;try{let{warmImagePlaceholders:Y}=await import("./chunk-fnty12j5.js"),{stateDir:G}=await import("./chunk-cj3zqzd0.js"),A=await Y(J.publicDir,{cachePath:G(process.cwd(),"image-placeholders.json")});if(A>0)console.log(`Derived ${A} image placeholder(s)`)}catch{}console.log(`Generating ${W.totalPages} pages...`);let w=[],i=[];for(let Y=0;Y<P.length;Y+=J.concurrency)i.push(P.slice(Y,Y+J.concurrency));for(let Y of i)await Promise.all(Y.map(async(G)=>{let{route:A,url:V,params:S,props:bq,revalidate:a}=G;try{await J.hooks.onPageStart?.(V);let F=await Bun.file(A.filePath).text(),R=tq(F),kq=R?.middleware?Array.isArray(R.middleware)?R.middleware:[R.middleware]:[],r=[...Mq,...kq];if(r.length>0){let D=jq(V,S,R||{}),M=Gq(D,null,void 0,{isServer:!0}),E=await Lq(r,M);if(E.redirect){let U=typeof E.redirect==="string"?E.redirect:E.redirect.path||E.redirect,x=eq(String(U),V),b=qJ(V,J);await B.promises.mkdir(j.dirname(b),{recursive:!0}),await Bun.write(b,x),W.successCount++,W.pages.push({route:V,outputPath:b,size:Buffer.byteLength(x),cached:!1}),w.push({loc:V,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${V} \u2192 redirect to ${U}`);return}if(E.abort){let U=typeof E.abort==="string"?E.abort:E.abort?.error?.message||"aborted";console.warn(` \u21B3 ${V} \u2014 middleware aborted: ${U}`);return}}let t=F.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(t)try{if(!await Function("route",`
|
|
45
45
|
const validate = ${t[1]};
|
|
46
46
|
return validate(route);
|
|
47
47
|
`)({params:S})){console.warn(`Validation failed for ${V}, skipping...`);return}}catch{}let I=null,e=!1;if(J.cache){if(I=L.get(V,A.filePath),I)e=!0,W.cachedCount++}if(!I){let D=await Rq(A,S,bq,J,$);if(I=D.html,J.failOnIncludeError&&D.includeFailures.length>0)throw Error(`${D.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
|
package/dist/stx-virtual-ts.d.ts
CHANGED
|
@@ -196,6 +196,28 @@ export declare function crossScopeCollisions(blocks: readonly ScriptBlock[]): st
|
|
|
196
196
|
* errors — `@click="open = !open"` assigns to what TypeScript sees as a
|
|
197
197
|
* `const`, and that form is documented stx syntax, not a mistake.
|
|
198
198
|
*/
|
|
199
|
+
/**
|
|
200
|
+
* The `@if` / `@unless` conditions that enclose a given offset, outermost first
|
|
201
|
+
* and already negated for `@else` / `@elseif` branches.
|
|
202
|
+
*
|
|
203
|
+
* Markup guards its own expressions, and the checker did not know it. A page
|
|
204
|
+
* that writes
|
|
205
|
+
*
|
|
206
|
+
* @if (comparison)
|
|
207
|
+
* {{ comparison.name }}
|
|
208
|
+
* @endif
|
|
209
|
+
*
|
|
210
|
+
* is safe, and `comparison` is `T | undefined` from the `.find()` above it, so
|
|
211
|
+
* every read inside the branch came back as "possibly undefined" - 75 of them
|
|
212
|
+
* in one application. Reported against markup that cannot fail is the fastest
|
|
213
|
+
* way to make a checker ignored, and the advice it implies (add a `?.`) makes
|
|
214
|
+
* the template worse.
|
|
215
|
+
*
|
|
216
|
+
* Conditions are emitted verbatim into `if (…)`, so a condition that does not
|
|
217
|
+
* compile is reported where it is written - as its own template expression -
|
|
218
|
+
* rather than twice.
|
|
219
|
+
*/
|
|
220
|
+
export declare function guardChainAt(source: string, offset: number): string[];
|
|
199
221
|
export declare function expressionStatement(expression: TemplateExpression): { text: string, prefixLength: number } | null;
|
|
200
222
|
/**
|
|
201
223
|
* Rewrite relative module specifiers to absolute paths against the real file.
|
|
@@ -268,7 +290,7 @@ export declare const UNWRAP_HELPER: '__StxTemplateValue';
|
|
|
268
290
|
* Mirrors what `serve.ts` puts in scope. Declaring these is what lets the
|
|
269
291
|
* checker report a genuine typo instead of suppressing every unresolved name.
|
|
270
292
|
*/
|
|
271
|
-
export declare const STX_SERVER_CONTEXT: readonly ['params', 'query', 'cookies', 'host', 'ip', 'setResponseStatus', 'setResponseHeader', 'notFound', 'request', 'url', 'definePageMeta', unknown, unknown, 'defineStore'];
|
|
293
|
+
export declare const STX_SERVER_CONTEXT: readonly ['params', 'query', 'cookies', 'host', 'ip', 'setResponseStatus', 'setResponseHeader', 'notFound', 'request', 'url', 'definePageMeta', unknown, unknown, 'defineStore', unknown, unknown, unknown, unknown, unknown, '$props'];
|
|
272
294
|
/** Marker comment so a generated preamble is recognisable in a dumped buffer. */
|
|
273
295
|
export declare const PAYLOAD_COMMENT: 'stx: types for the declared client payload (#1868)';
|
|
274
296
|
/** The same, for a page still relying on the name-scraping bridge. */
|
|
@@ -281,7 +303,7 @@ export declare const SCRAPED_COMMENT: 'stx: untyped bridge names — declare a d
|
|
|
281
303
|
* also dropped genuine typos; giving the names a declaration means an
|
|
282
304
|
* unrecognised one is still an error (#1852 ask 3).
|
|
283
305
|
*/
|
|
284
|
-
export declare const STX_TEMPLATE_GLOBALS: readonly ['$env', '$user', '$slot', '$slots', '$attrs', '$props', '$page', '$route', '$loop', '$errors', '$csrf', 'props', 'slot'];
|
|
306
|
+
export declare const STX_TEMPLATE_GLOBALS: readonly ['$env', '$user', '$slot', '$slots', '$attrs', '$props', '$page', '$route', '$loop', unknown, unknown, '$errors', '$csrf', 'props', 'slot'];
|
|
285
307
|
export declare interface ScriptBlock {
|
|
286
308
|
kind: ScriptKind
|
|
287
309
|
code: string
|
|
@@ -295,6 +317,7 @@ export declare interface TemplateExpression {
|
|
|
295
317
|
column: number
|
|
296
318
|
kind: 'interpolation' | 'directive'
|
|
297
319
|
attribute?: string
|
|
320
|
+
offset?: number
|
|
298
321
|
}
|
|
299
322
|
/** A synthetic line's origin, for diagnostics that land outside the source. */
|
|
300
323
|
export declare interface MappedLine {
|
package/dist/stx-virtual-ts.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BROWSER_CORE_IMPORTS } from "./client-script.js";
|
|
1
2
|
import path from "node:path";
|
|
2
3
|
import { stripCommentsAndLiterals } from "./strip-literals.js";
|
|
3
4
|
import { STX_RUNTIME_GLOBALS } from "./runtime-globals.js";
|
|
@@ -167,6 +168,7 @@ export function extractTemplateExpressions(source) {
|
|
|
167
168
|
code: code.trim(),
|
|
168
169
|
line: lineAt(masked, offset),
|
|
169
170
|
column: columnAt(masked, offset),
|
|
171
|
+
offset,
|
|
170
172
|
kind: "interpolation"
|
|
171
173
|
});
|
|
172
174
|
}
|
|
@@ -187,6 +189,7 @@ export function extractTemplateExpressions(source) {
|
|
|
187
189
|
code: substituteInterpolations(iterable.trim()),
|
|
188
190
|
line: lineAt(masked, offset + iterableStart),
|
|
189
191
|
column: columnAt(masked, offset + iterableStart),
|
|
192
|
+
offset: offset + iterableStart,
|
|
190
193
|
kind: "directive",
|
|
191
194
|
attribute: base
|
|
192
195
|
});
|
|
@@ -197,6 +200,7 @@ export function extractTemplateExpressions(source) {
|
|
|
197
200
|
code: substituteInterpolations(value.trim()),
|
|
198
201
|
line: lineAt(masked, offset + lead),
|
|
199
202
|
column: columnAt(masked, offset + lead),
|
|
203
|
+
offset: offset + lead,
|
|
200
204
|
kind: "directive",
|
|
201
205
|
attribute: base
|
|
202
206
|
});
|
|
@@ -283,7 +287,9 @@ export const STX_SERVER_CONTEXT = [
|
|
|
283
287
|
"url",
|
|
284
288
|
"definePageMeta",
|
|
285
289
|
"defineClientPayload",
|
|
286
|
-
"defineStore"
|
|
290
|
+
"defineStore",
|
|
291
|
+
"props",
|
|
292
|
+
"$props"
|
|
287
293
|
];
|
|
288
294
|
export function serverContextDeclarations() {
|
|
289
295
|
return STX_SERVER_CONTEXT.map((name) => `declare var ${name}: any`).join(`
|
|
@@ -459,6 +465,7 @@ export const STX_TEMPLATE_GLOBALS = [
|
|
|
459
465
|
"$page",
|
|
460
466
|
"$route",
|
|
461
467
|
"$loop",
|
|
468
|
+
"loop",
|
|
462
469
|
"$errors",
|
|
463
470
|
"$csrf",
|
|
464
471
|
"props",
|
|
@@ -474,6 +481,48 @@ export function crossScopeCollisions(blocks) {
|
|
|
474
481
|
return [...server].filter((name) => client.has(name)).sort();
|
|
475
482
|
}
|
|
476
483
|
const DIRECT_ASSIGNMENT_RE = /^\s*[A-Z_$][\w$]*\s*=[^=]/i;
|
|
484
|
+
export function guardChainAt(source, offset) {
|
|
485
|
+
const directive = /@(if|unless|elseif|else|endif|endunless)\b\s*(\()?/g, stack = [];
|
|
486
|
+
let match;
|
|
487
|
+
while ((match = directive.exec(source)) !== null) {
|
|
488
|
+
if (match.index >= offset)
|
|
489
|
+
break;
|
|
490
|
+
const name = match[1];
|
|
491
|
+
if (name === "endif" || name === "endunless") {
|
|
492
|
+
stack.pop();
|
|
493
|
+
continue;
|
|
494
|
+
}
|
|
495
|
+
let condition = "";
|
|
496
|
+
if (match[2] === "(") {
|
|
497
|
+
let depth = 0, index = match.index + match[0].length - 1;
|
|
498
|
+
const start = index + 1;
|
|
499
|
+
for (;index < source.length; index++) {
|
|
500
|
+
const char = source[index];
|
|
501
|
+
if (char === "(")
|
|
502
|
+
depth++;
|
|
503
|
+
else if (char === ")") {
|
|
504
|
+
depth--;
|
|
505
|
+
if (depth === 0)
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
condition = source.slice(start, index).trim();
|
|
510
|
+
directive.lastIndex = index + 1;
|
|
511
|
+
}
|
|
512
|
+
if (name === "if")
|
|
513
|
+
stack.push({ conditions: [condition] });
|
|
514
|
+
else if (name === "unless")
|
|
515
|
+
stack.push({ conditions: [`!(${condition})`] });
|
|
516
|
+
else if (name === "elseif" || name === "else") {
|
|
517
|
+
const current = stack[stack.length - 1];
|
|
518
|
+
if (!current)
|
|
519
|
+
continue;
|
|
520
|
+
const negated = current.conditions.map((c) => `!(${c})`);
|
|
521
|
+
current.conditions = name === "elseif" ? [...negated, condition] : negated;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
return stack.flatMap((entry) => entry.conditions).filter(Boolean);
|
|
525
|
+
}
|
|
477
526
|
export function expressionStatement(expression) {
|
|
478
527
|
const code = expression.code.trim();
|
|
479
528
|
if (!code)
|
|
@@ -520,6 +569,8 @@ export function buildVirtualTypeScript(source, options = {}) {
|
|
|
520
569
|
for (const decl of serverContextDeclarations().split(`
|
|
521
570
|
`))
|
|
522
571
|
append(decl);
|
|
572
|
+
for (const name of BROWSER_CORE_IMPORTS)
|
|
573
|
+
append(`declare var ${name}: any`);
|
|
523
574
|
for (const name of STX_TEMPLATE_GLOBALS)
|
|
524
575
|
append(`declare var ${name}: any`);
|
|
525
576
|
append(`declare var ${INTERPOLATION_PLACEHOLDER}: any`);
|
|
@@ -535,7 +586,7 @@ export function buildVirtualTypeScript(source, options = {}) {
|
|
|
535
586
|
if (options.templateExpressions !== !1) {
|
|
536
587
|
const statements = extractTemplateExpressions(source).map((expression) => ({ expression, statement: expressionStatement(expression) })).filter((entry) => entry.statement !== null);
|
|
537
588
|
if (statements.length > 0) {
|
|
538
|
-
const shadowed = [...new Set(blocks.flatMap((block) => collectBlockDeclarations(block.code)))].filter((name) => /^[A-Z_$][\w$]*$/i.test(name));
|
|
589
|
+
const maskedSource = maskNonTemplateRegions(source), shadowed = [...new Set(blocks.flatMap((block) => collectBlockDeclarations(block.code)))].filter((name) => /^[A-Z_$][\w$]*$/i.test(name));
|
|
539
590
|
let indent = 0;
|
|
540
591
|
if (shadowed.length > 0) {
|
|
541
592
|
append(UNWRAP_HELPER_DECL);
|
|
@@ -545,12 +596,12 @@ export function buildVirtualTypeScript(source, options = {}) {
|
|
|
545
596
|
indent = 1;
|
|
546
597
|
}
|
|
547
598
|
for (const { expression, statement } of statements) {
|
|
548
|
-
const pad = " ".repeat(indent);
|
|
549
|
-
append(pad + statement.text, {
|
|
599
|
+
const pad = " ".repeat(indent), guards = expression.offset === void 0 ? [] : guardChainAt(maskedSource, expression.offset), guardPrefix = guards.length > 0 ? `${guards.map((condition) => `if (${condition}) `).join("")}{ ` : "", guardSuffix = guards.length > 0 ? " }" : "";
|
|
600
|
+
append(pad + guardPrefix + statement.text + guardSuffix, {
|
|
550
601
|
line: expression.line,
|
|
551
602
|
column: expression.column,
|
|
552
603
|
expression,
|
|
553
|
-
prefixLength: statement.prefixLength + pad.length
|
|
604
|
+
prefixLength: statement.prefixLength + pad.length + guardPrefix.length
|
|
554
605
|
});
|
|
555
606
|
}
|
|
556
607
|
if (indent > 0)
|
package/dist/visual-testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-qs0fp63n.js";import B from"fs";import $ from"path";import k from"crypto";var V=[{name:"mobile",width:375,height:667,isMobile:!0,hasTouch:!0},{name:"tablet",width:768,height:1024,isMobile:!0,hasTouch:!0},{name:"desktop",width:1280,height:800,isMobile:!1,hasTouch:!1},{name:"wide",width:1920,height:1080,isMobile:!1,hasTouch:!1}];function J(N={}){let Y={snapshotDir:N.snapshotDir||"__snapshots__",screenshotDir:N.screenshotDir||"__screenshots__",updateSnapshots:N.updateSnapshots||process.env.UPDATE_SNAPSHOTS==="true",threshold:N.threshold??0.01,viewports:N.viewports||V,generateDiff:N.generateDiff??!0,diffDir:N.diffDir||"__diffs__",compare:N.compare||b,ci:N.ci??process.env.CI==="true",retries:N.retries??(N.ci?3:1)};return{async snapshot(M,X){let q=$.join(Y.snapshotDir,`${X}.html`),G=C(M),Q=K(G);if(await Bun.file(q).exists()){let W=await Bun.file(q).text(),Z=K(C(W));if(Q===Z)return{passed:!0,snapshotPath:q,message:"Snapshot matches"};if(Y.updateSnapshots)return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};let F=$.join(Y.diffDir,`${X}.actual.html`),U=$.join(Y.diffDir,`${X}.diff.html`);return await B.promises.mkdir(Y.diffDir,{recursive:!0}),await Bun.write(F,G),await Bun.write(U,I(W,G)),{passed:!1,snapshotPath:q,actualPath:F,diffPath:U,message:"Snapshot does not match"}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},async snapshotJson(M,X){let q=$.join(Y.snapshotDir,`${X}.json`),G=JSON.stringify(M,null,2);if(await Bun.file(q).exists()){let Q=await Bun.file(q).text();if(G===Q)return{passed:!0,snapshotPath:q};if(Y.updateSnapshots)return await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};return{passed:!1,snapshotPath:q,message:`JSON snapshot mismatch:
|
|
3
3
|
${z(Q,G)}`}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},matchInlineSnapshot(M,X){let q=C(M);if(X===void 0)return{passed:!0,expected:q};let G=C(X);return{passed:q===G,expected:q}},getConfig(){return Y}}}function D(N={}){let Y=J(N),M=Y.getConfig();return{async compareScreenshots(X,q,G="desktop"){let Q=$.join(M.screenshotDir,G,`${X}.png`),W=$.join(M.diffDir,G,`${X}.actual.png`),Z=$.join(M.diffDir,G,`${X}.diff.png`);if(await Bun.file(Q).exists()){let F=await Bun.file(Q).arrayBuffer(),U=Buffer.from(F),_=await M.compare(q,U);if(_.match||_.diffPercentage<=M.threshold)return{viewport:G,passed:!0,baselinePath:Q};if(M.updateSnapshots)return await B.promises.mkdir($.dirname(Q),{recursive:!0}),await Bun.write(Q,q),{viewport:G,passed:!0,baselinePath:Q};if(await B.promises.mkdir($.dirname(W),{recursive:!0}),await Bun.write(W,q),_.diffImage&&M.generateDiff)await Bun.write(Z,_.diffImage);return{viewport:G,passed:!1,baselinePath:Q,actualPath:W,diffPath:M.generateDiff?Z:void 0,diffPercentage:_.diffPercentage}}return await B.promises.mkdir($.dirname(Q),{recursive:!0}),await Bun.write(Q,q),{viewport:G,passed:!0,baselinePath:Q}},async testViewports(X,q,G=M.viewports){let Q=[];for(let W of G){let Z=null;for(let F=0;F<M.retries;F++)try{let U=await q(W),_=await this.compareScreenshots(X,U,W.name);Q.push(_),Z=null;break}catch(U){if(Z=U,F<M.retries-1)await new Promise((_)=>setTimeout(_,100*(F+1)))}if(Z)Q.push({viewport:W.name,passed:!1,baselinePath:"",diffPercentage:100})}return Q},getSnapshotTester(){return Y}}}function L(N={}){let M=D(N).getSnapshotTester(),X=new Map;return{addStory(q){X.set(`${q.component}/${q.name}`,q)},addStories(q){for(let G of q)this.addStory(G)},getStories(){return Array.from(X.values())},getStoriesForComponent(q){return Array.from(X.values()).filter((G)=>G.component===q)},async testStory(q){let G=X.get(q);if(!G)return{name:q,passed:!1,duration:0,snapshots:[],screenshots:[],errors:[Error(`Story not found: ${q}`)]};let Q=Date.now(),W={name:q,passed:!0,duration:0,snapshots:[],screenshots:[],errors:[]};try{let Z=await G.render(),F=await M.snapshot(Z,q.replace(/\//g,"-"));if(W.snapshots.push(F),!F.passed)W.passed=!1}catch(Z){W.passed=!1,W.errors.push(Z)}return W.duration=Date.now()-Q,W},async testAllStories(){let q=[];for(let G of X.keys()){let Q=await this.testStory(G);q.push(Q)}return q},async generateStoryIndex(){let q={};for(let G of X.values()){if(!q[G.component])q[G.component]=[];q[G.component].push({name:G.name,args:G.args})}return JSON.stringify(q,null,2)}}}async function S(N,Y={}){let M={outputDir:Y.outputDir||"visual-test-report",format:Y.format||"html",title:Y.title||"Visual Test Report",includeScreenshots:Y.includeScreenshots??!0};await B.promises.mkdir(M.outputDir,{recursive:!0});let X=N.length,q=N.filter((F)=>F.passed).length,G=X-q,Q=N.reduce((F,U)=>F+U.duration,0);if(M.format==="json"){let F={title:M.title,summary:{total:X,passed:q,failed:G,duration:Q},results:N,generatedAt:new Date().toISOString()},U=$.join(M.outputDir,"report.json");return await Bun.write(U,JSON.stringify(F,null,2)),U}if(M.format==="markdown"){let F=`# ${M.title}
|
|
4
4
|
|
|
5
5
|
`;F+=`## Summary
|
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.240",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"dependencies": {
|
|
118
118
|
"@cwcss/crosswind": "^0.2.19",
|
|
119
119
|
"@stacksjs/clapp": "^0.2.0",
|
|
120
|
-
"@stacksjs/desktop": "0.2.
|
|
121
|
-
"@stacksjs/sanitizer": "0.2.
|
|
120
|
+
"@stacksjs/desktop": "0.2.240",
|
|
121
|
+
"@stacksjs/sanitizer": "0.2.240",
|
|
122
122
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
123
|
-
"bun-plugin-stx": "0.2.
|
|
123
|
+
"bun-plugin-stx": "0.2.240",
|
|
124
124
|
"bunfig": "^0.15.17",
|
|
125
|
-
"stx-router": "0.2.
|
|
125
|
+
"stx-router": "0.2.240",
|
|
126
126
|
"ts-broadcasting": "^0.0.9",
|
|
127
127
|
"ts-images": "^0.2.11",
|
|
128
128
|
"ts-syntax-highlighter": "^0.2.1"
|
package/dist/chunk-0b88ky9d.js
DELETED
package/dist/chunk-38nq2ymv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rl as c,Sl as d,Tl as e,Ul as f,Vl as g,Wl as h,Xl as i,Yl as j,Zl as k}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import{Hs as a,Is as b}from"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{b as stripCommentsAndLiterals,d as renderVendorStyleTags,k as processClientScript,f as injectBrowserCoreAutoImports,j as generateServerDataBridge,h as generateBrowserAutoImportDestructuring,g as generateAutoImportDestructuring,a as findInterpolationEnd,i as extractBridgeData,c as extractAndStripCssImports,e as STX_AUTO_IMPORTS};
|
package/dist/chunk-412apa52.js
DELETED
package/dist/chunk-7rfx2s7c.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vg as a}from"./chunk-89nbkhxk.js";import"./chunk-y805f58c.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as startProductionServer};
|
package/dist/chunk-9g2rhkx8.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Is as Y}from"./chunk-1kg9sz9a.js";import{Ct as N}from"./chunk-5a1b5kjt.js";import C from"path";var O=/<script(\s[^>]*)?>([\s\S]*?)<\/script>/gi;function x(K){let J=(Q)=>Q.replace(/[^\n]/g," ");return K.replace(/<!--[\s\S]*?-->/g,J).replace(/\{\{--[\s\S]*?--\}\}/g,J)}function R(K){let J=[],Q=x(K);O.lastIndex=0;let Z;while((Z=O.exec(Q))!==null){let j=(Z[1]||"").trim(),F=(Z[0].match(/^<script(?:\s[^>]*)?>/i)?.[0]??"<script>").length,z=(Z[0].match(/<\/script\s*>$/i)?.[0]??"</script>").length,W=Z.index+F,$=Z.index+Z[0].length-z,U=K.slice(W,$);if(/\bsrc\s*=/.test(j))continue;let q=j.match(/\btype\s*=\s*["']([^"']+)["']/i);if(q&&!/^(?:module|text\/(?:javascript|typescript))$/i.test(q[1]))continue;let G=/\bserver\b/.test(j)?"server":/\bclient\b/.test(j)?"client":"plain",X=B(K,W);J.push({kind:G,code:U,startLine:X,attrs:j})}return J}function B(K,J){let Q=1;for(let Z=0;Z<J&&Z<K.length;Z++)if(K.charCodeAt(Z)===10)Q++;return Q}function M(K,J){let Q=K.lastIndexOf(`
|
|
3
|
-
`,J-1)+1;return J-Q+1}function k(K){let J=K.split(""),Q=(j,F)=>{for(let z=j;z<F&&z<J.length;z++)if(J[z]!==`
|
|
4
|
-
`)J[z]=" "},Z=[/<script(?:\s[^>]*)?>[\s\S]*?<\/script>/gi,/<style(?:\s[^>]*)?>[\s\S]*?<\/style>/gi,/<!--[\s\S]*?-->/g,/\{\{--[\s\S]*?--\}\}/g,/@verbatim\b[\s\S]*?@endverbatim\b/g];for(let j of Z){j.lastIndex=0;let F;while((F=j.exec(K))!==null)Q(F.index,F.index+F[0].length)}return J.join("")}function T(K){let J=0,Q="";for(let Z=0;Z<K.length;Z++){let j=K[Z];if(Q){if(j==="\\"){Z++;continue}if(j===Q)Q="";continue}if(j==='"'||j==="'"||j==="`"){Q=j;continue}if(j==="("||j==="["||j==="{"){J++;continue}if(j===")"||j==="]"||j==="}"){J--;continue}if(j==="|"&&J===0){if(K[Z+1]==="|"){Z++;continue}if(K[Z-1]==="|")continue;return K.slice(0,Z)}}return K}var L=new Set([":for","x-for","v-for"]),w=/(?:^|\s)((?::|x-|v-|@)[\w.:-]+)\s*=\s*(["'])([\s\S]*?)\2/g,g="__stx_interpolated",D="__StxElement",A="__StxTemplateValue",E=`type ${A}<T> = T extends { readonly _isSignal: true } | { readonly _isDerived: true } ? (T extends () => infer V ? T & V : T) : T`;function P(K){return K.replace(/\{\{[\s\S]*?\}\}/g,g).replace(/\{!![\s\S]*?!!\}/g,g)}function Zj(K){return K.replace(/\{\{[\s\S]*?\}\}|\{!![\s\S]*?!!\}/g,(J)=>{let Q=J.split(`
|
|
5
|
-
`).length-1,Z=J.length-Q;return`0${" ".repeat(Math.max(0,Z-1))}${`
|
|
6
|
-
`.repeat(Q)}`})}var b=["foreach","endforeach","forelse","endforelse","for","endfor","while","endwhile","empty","if","elseif","else","endif","unless","endunless","isset","endisset","switch","case","default","endswitch","auth","endauth","guest","endguest","env","endenv","once","endonce","break","continue"],u=new RegExp(String.raw`^[ \t]*@(?:${b.join("|")})\b[ \t]*(\([^\n)]*\))?[ \t]*$`,"gm");function $j(K){return K.replace(u,(J)=>J.replace(/[^\n]/g," "))}var S=new Set(["x-cloak","x-ref","x-transition","x-teleport","v-slot","x-hydrate",":key","x-tooltip","x-tooltip-position"]);function h(K){let J=k(K),Q=[],Z=/(@?)\{\{([\s\S]*?)\}\}|(@?)\{!!([\s\S]*?)!!\}/g,j;while((j=Z.exec(J))!==null){if(j[1]||j[3])continue;let z=j[2]??j[4]??"",W=j[2]!==void 0?2:3,$=T(z);if(!$.trim())continue;let U=j.index+W+($.length-$.trimStart().length);Q.push({code:$.trim(),line:B(J,U),column:M(J,U),kind:"interpolation"})}w.lastIndex=0;while((j=w.exec(J))!==null){let F=j[1],z=j[3]??"",W=F.replace(/\..*$/,"").replace(/^([^:].*?):.*$/,"$1");if(S.has(W)||S.has(F))continue;if(!z.trim())continue;let $=j.index+j[0].indexOf(j[2],j[0].indexOf(F)+F.length)+1;if(L.has(W)){let q=z.match(/\s+(?:in|of)\s+/);if(!q||q.index===void 0)continue;let G=z.slice(q.index+q[0].length),X=q.index+q[0].length+(G.length-G.trimStart().length);Q.push({code:P(G.trim()),line:B(J,$+X),column:M(J,$+X),kind:"directive",attribute:W});continue}let U=z.length-z.trimStart().length;Q.push({code:P(z.trim()),line:B(J,$+U),column:M(J,$+U),kind:"directive",attribute:W})}return Q.sort((F,z)=>F.line-z.line||F.column-z.column),Q}function p(K){let J=new Map,Q=(W,$)=>{let U=W.split(/[,[\]{}()\s]+/).filter(Boolean);for(let q of U){let G=q.replace(/^\.\.\./,"").trim();if(!/^\$?[A-Z_$][\w$]*$/i.test(G))continue;let X=U.length===1?$:void 0,H=J.get(G);if(!H)J.set(G,{name:G,iterable:X});else if(H.iterable!==X)H.iterable=void 0}},Z=/^\$?[A-Z_$][\w$]*$/i,j=(W)=>{let $=W.trim();return Z.test($)?$:void 0};for(let W of K.matchAll(/@for(?:each|else)\s*\(([\s\S]*?)\)/g)){let $=W[1].match(/^([\s\S]*?)\bas\b([\s\S]*)$/);if(!$)continue;Q($[2].replace(/=>/g," "),j($[1]))}for(let W of K.matchAll(/@for\s*\(\s*(?:let|const|var)\s+([\w$]+)/g))Q(W[1]);let F=k(K);w.lastIndex=0;let z;while((z=w.exec(F))!==null){let W=z[1].replace(/\..*$/,"");if(!L.has(W))continue;let $=z[3].match(/\s+(?:in|of)\s+/);if(!$||$.index===void 0)continue;Q(z[3].slice(0,$.index),j(z[3].slice($.index+$[0].length)))}for(let W of K.matchAll(/@(?:php|js|ts)\b([\s\S]*?)@end(?:php|js|ts)\b/g))for(let $ of W[1].matchAll(/\b(?:const|let|var|function|class)\s+([\w$]+)/g))Q($[1]);return[...J.values()].sort((W,$)=>W.name.localeCompare($.name))}function V(K){let J=new Set;for(let Q of K.matchAll(/^\s*(?:export\s+)?(?:const|let|var)\s+([\w$]+)/gm))J.add(Q[1]);for(let Q of K.matchAll(/^\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([\w$]+)/gm))J.add(Q[1]);for(let Q of K.matchAll(/^\s*(?:export\s+)?class\s+([\w$]+)/gm))J.add(Q[1]);for(let Q of K.matchAll(/^\s*(?:export\s+)?(?:const|let|var)\s*[[{]([^\]}]*)[\]}]/gm))for(let Z of Q[1].split(",")){let j=Z.split(":").pop().split("=")[0].replace(/^\.\.\./,"").trim();if(/^[A-Z_$][\w$]*$/i.test(j))J.add(j)}return[...J].sort()}function m(){return["declare var window: any",...N.map((K)=>`declare var ${K}: any`)].join(`
|
|
7
|
-
`)}var l=["params","query","cookies","host","ip","setResponseStatus","setResponseHeader","notFound","request","url","definePageMeta","defineClientPayload","defineStore"];function d(){return l.map((K)=>`declare var ${K}: any`).join(`
|
|
8
|
-
`)}function _(K){let J=/\bdefineClientPayload\s*\(\s*\{([\s\S]*?)\}\s*\)/g,Q,Z=!1,j=new Set,F=Y(K);while((Q=J.exec(F))!==null){Z=!0;for(let z of i(Q[1])){let W=z.split(":")[0].trim();if(/^[A-Za-z_$][\w$]*$/.test(W))j.add(W)}}return Z?[...j]:null}function i(K){let J=[],Q=0,Z="";for(let j of K){if(j===","&&Q===0){J.push(Z),Z="";continue}if(j==="("||j==="["||j==="{")Q++;else if(j===")"||j==="]"||j==="}")Q--;Z+=j}return J.push(Z),J.filter((j)=>j.trim().length>0)}function c(K){let J=/^[ \t]*import\b[\s\S]*?(?:from\s*['"][^'"]*['"]|['"][^'"]*['"])[ \t]*;?[ \t]*$/gm,Q=[],Z=K.replace(J,(j)=>{return Q.push(j.trim()),j.split(`
|
|
9
|
-
`).map(()=>"").join(`
|
|
10
|
-
`)});return{imports:Q.join(`
|
|
11
|
-
`),body:Z}}function f(K){let J=Y(K),Q=Array(J.length),Z=0;for(let W=0;W<J.length;W++){let $=J[W];if($==="}"||$===")"||$==="]")Z=Math.max(0,Z-1);if(Q[W]=Z,$==="{"||$==="("||$==="[")Z++}let j=[],F=/^[ \t]*(?:export[ \t]+)?(interface|type)[ \t]+([A-Za-z_$][\w$]*)/gm,z;while((z=F.exec(J))!==null){if(Q[z.index]!==0)continue;let W=z[1],$=z[2],U;if(W==="interface"){let q=J.indexOf("{",z.index);if(q===-1)continue;let G=0;U=-1;for(let X=q;X<J.length;X++)if(J[X]==="{")G++;else if(J[X]==="}"&&--G===0){U=X+1;break}if(U===-1)continue}else{let q=0;U=J.length;for(let G=J.indexOf("=",z.index)+1;G<J.length;G++){let X=J[G];if(X==="{"||X==="["||X==="("||X==="<")q++;else if(X==="}"||X==="]"||X===")"||X===">")q--;else if(q<=0&&(X===";"||X===`
|
|
12
|
-
`&&!/[=|&,<([{]\s*$/.test(J.slice(Math.max(0,G-40),G)))){U=X===";"?G+1:G;break}}}j.push({name:$,text:K.slice(z.index,U).replace(/^[ \t]*export[ \t]+/,"")}),F.lastIndex=U}return j}function o(K){return new Set(f(K).map((J)=>J.name))}function zj(K,J=""){let Q=_(K),Z=o(J),j=f(K).filter((U)=>!Z.has(U.name)).map((U)=>U.text);if(!Q){let U=V(K);if(U.length===0&&j.length===0)return"";return["",`// ${n}`,...j,...U.map((q)=>`declare var ${q}: any`)].join(`
|
|
13
|
-
`)}if(Q.length===0)return j.length>0?["",`// ${I}`,...j].join(`
|
|
14
|
-
`):"";let{imports:F,body:z}=c(K),W=z.replace(/^[ \t]*export[ \t]+(?=(?:const|let|var|function|async|class)\b)/gm,""),$=["",`// ${I}`];if(F)$.push(F);return $.push(...j),$.push(`async function ${v}() {`,W,` return { ${Q.join(", ")} }`,"}",`type ${y} = Awaited<ReturnType<typeof ${v}>>`,...Q.map((U)=>`declare var ${U}: ${y}[${JSON.stringify(U)}]`)),$.join(`
|
|
15
|
-
`)}function r(K){let Q=Y(K).split(""),Z=0;for(let j=0;j<Q.length;j++){let F=Q[j];if(F==="{"||F==="("||F==="["){Z++;continue}if(F==="}"||F===")"||F==="]"){Z=Math.max(0,Z-1);continue}if(Z>0&&F!==`
|
|
16
|
-
`)Q[j]=" "}return V(Q.join(""))}function Wj(K,J){if(_(K)!==null)return[];let Q=Y(J),Z=new Set(N);return r(K).filter((j)=>{if(Z.has(j))return!1;if(V(J).includes(j))return!1;return new RegExp(`(?<![.#\\w$])${j}(?![\\w$])`).test(Q)})}var I="stx: types for the declared client payload (#1868)",n="stx: untyped bridge names \u2014 declare a defineClientPayload to check these (#1868)",v="__stxServerScope",y="__StxClientPayload";var a=["$env","$user","$slot","$slots","$attrs","$props","$page","$route","$loop","$errors","$csrf","props","slot"];var s=/^\s*[A-Z_$][\w$]*\s*=[^=]/i;function t(K){let J=K.code.trim();if(!J)return null;if(K.attribute?.startsWith("@")){if(s.test(J))return null;let Z=";(($event: any): void => { ";return{text:`${Z}${J} });`,prefixLength:Z.length}}let Q=";void ((";return{text:`${Q}${J}));`,prefixLength:Q.length}}var e=/(\bfrom\s*|\bimport\s*\(\s*|\bimport\s+)(['"])(\.{1,2}\/[^'"\n]*)\2/g;function jj(K,J){if(!J)return K;return K.replace(e,(Q,Z,j,F)=>{let z=C.resolve(J,F).replace(/\\/g,"/");return`${Z}${j}${z}${j}`})}function Fj(K,J={}){let Q=R(K),Z=K.split(`
|
|
17
|
-
`),j=Array.from({length:Z.length},()=>""),F=new Map;for(let W of Q)jj(W.code,J.originDir??"").split(`
|
|
18
|
-
`).forEach((U,q)=>{let G=W.startLine-1+q;if(G<j.length)j[G]=U});let z=(W,$)=>{if(j.push(W),$)F.set(j.length,$)};if(J.globals!==!1){if(z(""),J.runtimeGlobals!==!1)for(let $ of m().split(`
|
|
19
|
-
`))z($);for(let $ of d().split(`
|
|
20
|
-
`))z($);for(let $ of a)z(`declare var ${$}: any`);z(`declare var ${g}: any`);let W=new Set(Q.flatMap(($)=>V($.code)));z(`type ${D}<T> = T extends readonly (infer E)[] ? E : T extends Iterable<infer E2> ? E2 : any`);for(let $ of p(K)){if(W.has($.name))continue;let U=$.iterable&&W.has($.iterable)?`${D}<typeof ${$.iterable}>`:"any";z(`declare var ${$.name}: ${U}`)}}if(J.templateExpressions!==!1){let W=h(K).map(($)=>({expression:$,statement:t($)})).filter(($)=>$.statement!==null);if(W.length>0){let U=[...new Set(Q.flatMap((G)=>V(G.code)))].filter((G)=>/^[A-Z_$][\w$]*$/i.test(G)),q=0;if(U.length>0){z(E);for(let G of U)z(`type __StxT_${G} = ${A}<typeof ${G}>`);z(`;((${U.map((G)=>`${G}: __StxT_${G}`).join(", ")}) => {`),q=1}for(let{expression:G,statement:X}of W){let H=" ".repeat(q);z(H+X.text,{line:G.line,column:G.column,expression:G,prefixLength:X.prefixLength+H.length})}if(q>0)z("});")}}return z("export {}"),{text:j.join(`
|
|
21
|
-
`),lineMap:F,sourceLineCount:Z.length}}function Gj(K,J,Q){let Z=K.lineMap.get(J);if(!Z)return J<=K.sourceLineCount?{line:J,column:Q}:null;let j=Math.max(0,Q-1-(Z.prefixLength??0));return{line:Z.line,column:Z.column+j,expression:Z.expression}}
|
|
22
|
-
export{R as Mf,Zj as Nf,$j as Of,h as Pf,V as Qf,d as Rf,zj as Sf,Wj as Tf,jj as Uf,Fj as Vf,Gj as Wf};
|
package/dist/chunk-9scfmhph.js
DELETED
package/dist/chunk-a0aqpzm6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Xo as b,Yo as c,am as a}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};
|
package/dist/chunk-cff5gpvr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dh as a,Eh as b,Fh as c,Gh as d,Hh as e,Ih as f}from"./chunk-z0y4gcsp.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
|
package/dist/chunk-dcc04y1t.js
DELETED
package/dist/chunk-e4gycrtb.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{np as a,op as b,pp as c,qp as d,rp as e,sp as f,tp as g,up as h,vp as i,wp as j}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
|
package/dist/chunk-f7se90b8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ff as a}from"./chunk-bskzz385.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as startInteractive};
|
package/dist/chunk-g98vjcbj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{bp as a,cp as b,dp as c,ep as d,fp as e,gp as f,hp as g,ip as h,jp as i,kp as j,lp as k,mp as l}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{l as stripStxRuntimeImports,a as scanScriptTags,k as rewriteStxImportSpecifiers,i as processSignals,g as processScriptSetup,e as preEvalLiteralReactiveIfs,b as parseLoopExpression,c as hasSignalsSyntax,j as findMarkupIndexOutsideScripts,h as extractExports,f as convertSignalLoopsToAttributes,d as convertSignalDirectivesToAttributes};
|
package/dist/chunk-gcn830km.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Lf as a}from"./chunk-w56erqz5.js";import"./chunk-9g2rhkx8.js";import"./chunk-y805f58c.js";import"./chunk-qa8qmer5.js";import"./chunk-nhmq45hh.js";import"./chunk-frp9fc7j.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as buildForProduction};
|
package/dist/chunk-gg2epwyx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Af as f,Bf as g,Cf as h,xf as c,yf as d,zf as e}from"./chunk-acwjyext.js";import{Mf as a,Pf as b}from"./chunk-9g2rhkx8.js";import"./chunk-5q44vwmg.js";import"./chunk-ht51fz7w.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
|
package/dist/chunk-h451yyp6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Aq as b,Bq as c,Cq as d,Dq as e,ap as a}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
|
package/dist/chunk-hd1hr94w.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hk as a,ik as b,jk as c,kk as d}from"./chunk-p4a35r71.js";import"./chunk-0e1pt5my.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
|
package/dist/chunk-hfc4afre.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{xp as a,yp as b}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{b as processLoops,a as parseLoopBinding};
|
package/dist/chunk-j5rmhyqr.js
DELETED
package/dist/chunk-je7cvg5j.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Wi as a,Xi as b,Yi as c}from"./chunk-5q44vwmg.js";import"./chunk-ht51fz7w.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
|
package/dist/chunk-jqnckvbk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$r as b,_r as a,as as c,bs as d,cs as e,ds as f}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
|
package/dist/chunk-mdk3c8n2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ui as a,Vi as b}from"./chunk-s8bx0wv7.js";import"./chunk-ht51fz7w.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as getStoreScript,b as clearStoreCache};
|
package/dist/chunk-n27c7jvr.js
DELETED
package/dist/chunk-nrzx6d77.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{km as a,lm as b,mm as c,nm as d,om as e,pm as f,qm as g,rm as h,sm as i,tm as j,um as k,vm as l,wm as m,xm as n,ym as o}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
|
package/dist/chunk-pz3n5qde.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ap as b,Bp as c,Cp as d,Dp as e,Ep as f,zp as a}from"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{f as processStackReplacements,e as processStackPushDirectives,d as processIncludes,a as partialsCache,b as onceStore,c as clearOnceStore};
|
package/dist/chunk-ssbddr82.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{jg as a}from"./chunk-cdb8a0tx.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as buildApp};
|
package/dist/chunk-wc5385mg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$k as c,Zk as a,_k as b,al as d,bl as e,cl as f,dl as g,el as h,fl as i}from"./chunk-a0zaf8r9.js";import"./chunk-r84h7wxw.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as shouldLogBundlerDiagnostics,e as setBundlerFallbackMode,f as resolveBundlerFallback,b as recordBundleFailure,h as queueClientBundleBuild,g as hasUserImports,c as getBundleFailures,d as clearBundleFailures,i as bundleClientScript};
|
package/dist/chunk-x21s75kv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nj as a,Oj as b,Pj as c,Qj as d,Rj as e,Sj as f,Tj as g,Uj as h,Vj as i,Wj as j,Xj as k}from"./chunk-x58dcsjw.js";import"./chunk-spnkgsft.js";import"./chunk-4awxsp8f.js";import"./chunk-hk8j3eps.js";import"./chunk-mxva4zmq.js";import"./chunk-1kg9sz9a.js";import"./chunk-nnd1hqht.js";import"./chunk-msxcd1kp.js";import"./chunk-xgtcq9bj.js";import"./chunk-2fspj91j.js";import"./chunk-evv58hf5.js";import"./chunk-5a1b5kjt.js";import"./chunk-r2kag877.js";import"./chunk-8p8qa1s9.js";import"./chunk-j4ze77e0.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,k as hashFilePath,f as getCachedSignalsRuntime,g as getCachedRouterScript,h as clearDevCaches,i as checkCache,j as cacheTemplate,e as __setSignalsGeneratorsForTest};
|