@stacksjs/stx 0.2.745 → 0.2.747

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.
Files changed (101) hide show
  1. package/dist/chunk-181r1814.js +2 -0
  2. package/dist/{chunk-59m4zta2.js → chunk-1ewtjh1w.js} +1 -1
  3. package/dist/chunk-1kdw7cms.js +2 -0
  4. package/dist/chunk-2bgrwygq.js +2 -0
  5. package/dist/chunk-2e2yh6t5.js +2 -0
  6. package/dist/{chunk-dc1b9qrp.js → chunk-2gcj7sty.js} +1 -1
  7. package/dist/{chunk-er1r66m6.js → chunk-3rc07ans.js} +1 -1
  8. package/dist/{chunk-avjbhczg.js → chunk-3v3dssk7.js} +1 -1
  9. package/dist/{chunk-2dc3bxec.js → chunk-3xa9vxyq.js} +4 -4
  10. package/dist/{chunk-9c0sjs5j.js → chunk-4rer7y75.js} +1 -1
  11. package/dist/{chunk-psf38nq6.js → chunk-4w8zdkxw.js} +1 -1
  12. package/dist/{chunk-5pxtqq83.js → chunk-4wpp8zqg.js} +1 -1
  13. package/dist/chunk-6amq1fnc.js +2 -0
  14. package/dist/{chunk-fcep45sw.js → chunk-6jgt685n.js} +1 -1
  15. package/dist/{chunk-xznv6fnn.js → chunk-6ph5jasj.js} +6 -6
  16. package/dist/{chunk-5rrjmvna.js → chunk-6xytp0tk.js} +1 -1
  17. package/dist/chunk-7017n280.js +2 -0
  18. package/dist/{chunk-vw07g57k.js → chunk-72a5fgj3.js} +5 -5
  19. package/dist/{chunk-zj6k5d98.js → chunk-7fdw7p3e.js} +1 -1
  20. package/dist/chunk-7hky61eh.js +2 -0
  21. package/dist/{chunk-q53eg32x.js → chunk-7w7f14jq.js} +1 -1
  22. package/dist/chunk-8a40gq1k.js +2 -0
  23. package/dist/{chunk-5s7swxer.js → chunk-8b6stw4x.js} +1 -1
  24. package/dist/{chunk-rm8nt1gr.js → chunk-8f14cgm8.js} +1 -1
  25. package/dist/chunk-9hbgp70k.js +2 -0
  26. package/dist/chunk-a5j9sbff.js +2 -0
  27. package/dist/chunk-b8wgnpat.js +3 -0
  28. package/dist/{chunk-3qe85y8x.js → chunk-bas06v5y.js} +1 -1
  29. package/dist/{chunk-220pc67r.js → chunk-bj0z4gve.js} +1 -1
  30. package/dist/{chunk-309m7fk2.js → chunk-byxksw9c.js} +1 -1
  31. package/dist/{chunk-jhdqq80c.js → chunk-c3bdjva4.js} +1 -1
  32. package/dist/{chunk-37q792qg.js → chunk-cczxhrbh.js} +1 -1
  33. package/dist/chunk-chxhfdpc.js +2 -0
  34. package/dist/{chunk-a4avfxz2.js → chunk-d25pawk8.js} +2 -2
  35. package/dist/{chunk-4zbmw3bt.js → chunk-d7tgfndt.js} +1 -1
  36. package/dist/{chunk-9h1m8h7x.js → chunk-dnt3q3jv.js} +1 -1
  37. package/dist/{chunk-eys9qtvt.js → chunk-dxsdr77m.js} +1 -1
  38. package/dist/{chunk-pdjr53q1.js → chunk-e8g374pz.js} +1 -1
  39. package/dist/chunk-et11hr3d.js +2 -0
  40. package/dist/{chunk-qxt8dw9q.js → chunk-ewf7sq6y.js} +1 -1
  41. package/dist/{chunk-e6527scq.js → chunk-fb6af3vk.js} +1 -1
  42. package/dist/chunk-g0n18v7m.js +2 -0
  43. package/dist/{chunk-fef0x3da.js → chunk-g78zvf6j.js} +1 -1
  44. package/dist/{chunk-esj3wb57.js → chunk-hp3vebgn.js} +2 -2
  45. package/dist/{chunk-1ysfm4w8.js → chunk-k9tay7g7.js} +1 -1
  46. package/dist/{chunk-bngfwrxs.js → chunk-kb1ghegh.js} +2 -2
  47. package/dist/{chunk-t3zs3pgm.js → chunk-m5a8zgft.js} +1 -1
  48. package/dist/{chunk-z9pzqt8v.js → chunk-mjjb720w.js} +1 -1
  49. package/dist/{chunk-ecp3bh3p.js → chunk-mt41rpec.js} +1 -1
  50. package/dist/chunk-n79ww4aq.js +2 -0
  51. package/dist/{chunk-dmm7skxs.js → chunk-pach41d0.js} +1 -1
  52. package/dist/{chunk-6bdjwv43.js → chunk-qgpy8cye.js} +1 -1
  53. package/dist/{chunk-n96wmvtm.js → chunk-r6jjx157.js} +1 -1
  54. package/dist/chunk-r8e80xr8.js +2 -0
  55. package/dist/{chunk-yj70yp6d.js → chunk-rwsyemkp.js} +1 -1
  56. package/dist/{chunk-fcaxgwwb.js → chunk-s8vj3xs0.js} +6 -6
  57. package/dist/{chunk-sfscvxaw.js → chunk-stkxvrxd.js} +1 -1
  58. package/dist/{chunk-ab6hx6en.js → chunk-ttrjc1w5.js} +29 -29
  59. package/dist/{chunk-qzs0barx.js → chunk-v364k1q7.js} +1 -1
  60. package/dist/{chunk-v1v5w18z.js → chunk-v5yhcpg3.js} +1 -1
  61. package/dist/{chunk-shf75rrg.js → chunk-wpwh529h.js} +26 -26
  62. package/dist/{chunk-00c0wzsm.js → chunk-xjv46712.js} +4 -4
  63. package/dist/{chunk-drf0h877.js → chunk-y4rm4gpv.js} +2 -2
  64. package/dist/chunk-y6t6djz7.js +2 -0
  65. package/dist/{chunk-9022fa2r.js → chunk-yfg0fwkk.js} +3 -3
  66. package/dist/{chunk-vewm14fk.js → chunk-z24bjeny.js} +1 -1
  67. package/dist/{chunk-wnven47g.js → chunk-z6kz9jqc.js} +2 -2
  68. package/dist/{chunk-mkjtvm6r.js → chunk-zeqybrbc.js} +1 -1
  69. package/dist/{chunk-8n1najwy.js → chunk-zsqg1cy6.js} +1 -1
  70. package/dist/cli.js +7 -7
  71. package/dist/craft-entry.js +1 -1
  72. package/dist/craft.js +1 -1
  73. package/dist/native/compiler/html-to-ir.d.ts +2 -0
  74. package/dist/native/compiler/html-to-ir.js +3 -1
  75. package/dist/native/compiler/icons.d.ts +4 -2
  76. package/dist/native/compiler/icons.js +9 -9
  77. package/dist/native/compiler/layout-chrome.d.ts +1 -1
  78. package/dist/native/compiler/layout-chrome.js +6 -4
  79. package/dist/native/compiler/render-screen.js +4 -1
  80. package/dist/native/runtime/native-host.js +9 -2
  81. package/dist/pwa.js +1 -1
  82. package/dist/safe-evaluator.js +13 -2
  83. package/dist/ssg.js +2 -2
  84. package/package.json +5 -5
  85. package/dist/chunk-00160599.js +0 -2
  86. package/dist/chunk-093s0gye.js +0 -2
  87. package/dist/chunk-10zmf3zh.js +0 -2
  88. package/dist/chunk-2m0vj036.js +0 -2
  89. package/dist/chunk-643tvm0k.js +0 -3
  90. package/dist/chunk-7314r3dn.js +0 -2
  91. package/dist/chunk-95wasv6s.js +0 -2
  92. package/dist/chunk-cnsc2paf.js +0 -2
  93. package/dist/chunk-ek61s5wf.js +0 -2
  94. package/dist/chunk-nb5xxv4t.js +0 -2
  95. package/dist/chunk-ng3p44jj.js +0 -2
  96. package/dist/chunk-rgc2p1cj.js +0 -2
  97. package/dist/chunk-tr9qcjpe.js +0 -2
  98. package/dist/chunk-v7qcp28k.js +0 -2
  99. package/dist/chunk-vbp0b5tr.js +0 -2
  100. package/dist/chunk-yv8h5sjb.js +0 -2
  101. package/dist/chunk-zph16kja.js +0 -2
@@ -474,7 +474,7 @@ export function createNativeHost(options) {
474
474
  console.warn(`[STX Native] unknown-class: ${id}: ${name}`);
475
475
  record.reportedClasses = unsupported;
476
476
  if (record.type === "Icon" && classes.icon) {
477
- const icon = resolveIconName(classes.icon);
477
+ const icon = resolveNodeIcon(id, record, classes.icon);
478
478
  record.props.symbol = icon.symbol;
479
479
  record.props.iconify = icon.iconify;
480
480
  if (record.materialized)
@@ -491,6 +491,13 @@ export function createNativeHost(options) {
491
491
  emit({ op: "updateNode", id, patch: { props: { resizeMode: classes.resizeMode } } });
492
492
  }
493
493
  }
494
+ function resolveNodeIcon(id, record, name) {
495
+ const icon = resolveIconName(name), unknown = !icon.known && name.trim() ? name : void 0;
496
+ if (unknown && record.reportedIcon !== unknown)
497
+ console.warn(`[STX Native] unknown-icon: ${id}: ${unknown}; no native symbol mapping; using ${icon.symbol}. Use an explicit Icon symbol or add a collection mapping.`);
498
+ record.reportedIcon = unknown;
499
+ return icon;
500
+ }
494
501
  function collectDescendants(node) {
495
502
  const out = [], visit = (current) => {
496
503
  const record = records.get(current.__stxId);
@@ -782,7 +789,7 @@ export function createNativeHost(options) {
782
789
  else if (NATIVE_STATE_VARIANTS.has(prop))
783
790
  applyClasses(node.__stxId, record, !0);
784
791
  if (record.type === "Icon" && prop === "name") {
785
- const icon = resolveIconName(String(value ?? ""));
792
+ const icon = resolveNodeIcon(node.__stxId, record, String(value ?? ""));
786
793
  this.setAttribute(node, "iconify", icon.iconify ?? null);
787
794
  this.setAttribute(node, "symbol", icon.symbol);
788
795
  }
package/dist/pwa.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  import{Us,Ft,il,ag}from"./chunk-k8gxa1jf.js";import{Vs,vi,sg,og,ig}from"./chunk-9v98dzxt.js";import{rl,sl,ol,ng,rg}from"./chunk-b107z777.js";import{Ve,_n,wi}from"./chunk-r2cfezt5.js";import{cg,lg,ug,dg,Ws,Lh}from"./chunk-9bbs9d9q.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-cnsc2paf.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>
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-2e2yh6t5.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">
@@ -292,6 +292,17 @@ export function sanitizeExpression(expression) {
292
292
  return expression.trim();
293
293
  }
294
294
  export const SANITIZE_CACHE = Symbol("stx.sanitizeCache");
295
+ const DANGEROUS_KEY_LIMIT = 4000, dangerousKeyVerdicts = new Map;
296
+ function isDangerousContextKey(key) {
297
+ let verdict = dangerousKeyVerdicts.get(key);
298
+ if (verdict === void 0) {
299
+ verdict = DANGEROUS_PATTERNS.some((pattern) => pattern.test(key));
300
+ if (dangerousKeyVerdicts.size >= DANGEROUS_KEY_LIMIT)
301
+ dangerousKeyVerdicts.clear();
302
+ dangerousKeyVerdicts.set(key, verdict);
303
+ }
304
+ return verdict;
305
+ }
295
306
  export function createSafeContext(context) {
296
307
  const safeContext = {}, cache = context[SANITIZE_CACHE];
297
308
  safeContext.Math = Math;
@@ -309,7 +320,7 @@ export function createSafeContext(context) {
309
320
  safeContext.encodeURIComponent = encodeURIComponent;
310
321
  safeContext.decodeURIComponent = decodeURIComponent;
311
322
  for (const [key, value] of Object.entries(context)) {
312
- if (key.startsWith("__") || DANGEROUS_PATTERNS.some((p) => p.test(key)))
323
+ if (key.startsWith("__") || isDangerousContextKey(key))
313
324
  continue;
314
325
  if (value && typeof value === "object" && !Array.isArray(value)) {
315
326
  let sanitized = cache?.get(value);
@@ -480,7 +491,7 @@ export function createSafeFunction(expression, contextKeys, onMissingIdentifier)
480
491
  continue;
481
492
  validEntries.push({ key: contextKeys[i], index: i });
482
493
  }
483
- validEntries.sort((a, b) => a.key.localeCompare(b.key));
494
+ validEntries.sort((a, b) => a.key < b.key ? -1 : 1);
484
495
  const filteredKeys = validEntries.map((entry) => entry.key), validIndices = validEntries.map((entry) => entry.index), body = `
485
496
  'use strict';
486
497
  try {
package/dist/ssg.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-1xjv71dw.js";import{b,zc}from"./chunk-shf75rrg.js";import"./chunk-27agaezn.js";import"./chunk-zn3c0ew5.js";import{Tt,S}from"./chunk-xznv6fnn.js";import"./chunk-nzwcbt98.js";import"./chunk-t3zs3pgm.js";import"./chunk-6ew10ptg.js";import{xt,St,kt,_t,Ct,Et}from"./chunk-4s1k8k2a.js";import{a}from"./chunk-a4avfxz2.js";import{hs}from"./chunk-eys9qtvt.js";import"./chunk-5f6x6fyp.js";import"./chunk-sfscvxaw.js";import{Te,Yt,Zt}from"./chunk-fcep45sw.js";import"./chunk-3qe85y8x.js";import{y}from"./chunk-wnven47g.js";import{mt,i}from"./chunk-fcaxgwwb.js";import"./chunk-9h1m8h7x.js";import"./chunk-00c0wzsm.js";import{rs}from"./chunk-esj3wb57.js";import"./chunk-pdjr53q1.js";import"./chunk-91pycazt.js";import{La,ja,Ba}from"./chunk-vtmd3ssd.js";import{Xt,Gn,Xn}from"./chunk-9adx6f4k.js";import{Jt}from"./chunk-psf38nq6.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import{G,be}from"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-fef0x3da.js";import{l}from"./chunk-h2y36t58.js";import{s,ge}from"./chunk-q1db41k8.js";import D from"fs";import f from"path";import{createHash as $t}from"crypto";function Dt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Rt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function It(t){return Bun.hash(t).toString(16)}function ot(t,r={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let n=new Map,o=t.replace(Rt,(e,u,g,v)=>{let w=v.trim();if(!w)return e;if(/\bdata-stx-src=/.test(g))return e;if(r.minify)w=Dt(w);let p=It(w);if(!n.has(p))n.set(p,w);let P=r.integrity?` data-stx-integrity="sha384-${$t("sha384").update(w).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${p}.js"${P}${g}></script>`}),c=Array.from(n,([e,u])=>({hash:e,code:u}));return{html:o,chunks:c}}var Bt=new Set(["visible","idle"]);function ct(t){if(!t.includes("data-stx-src="))return t;let r=new Map,n=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,o;while((o=n.exec(t))!==null)r.set(o[1],o[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=e.exec(t))!==null)if(Bt.has(r.get(u[1])||""))c.add(u[2]);let g=/<\/head\s*>/iy,v=S(t,(p,P)=>(g.lastIndex=P,g.exec(p)?g.lastIndex:-1))[0]?.start??-1;if(c.size===0||v===-1)return t;let w=Array.from(c).filter((p)=>!t.includes(`rel="prefetch" href="${p}"`)).map((p)=>`<link rel="prefetch" href="${p}" as="script">`).join("");if(!w)return t;return t.slice(0,v)+w+t.slice(v)}var jt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function X(t){let r=t.trim();if(!r)return null;let n=/^https?:\/\//i.test(r)?r:`https://${r}`;try{return new URL(n).origin+new URL(n).pathname.replace(/\/$/,"")}catch{return null}}function Ft(t){for(let r of jt){let n=t[r];if(!n)continue;let o=X(n);if(o)return{url:o,source:"env",via:r}}return null}function lt(t){if(!t||typeof t!=="object")return null;let r=t,n=r.site?.url??r.url??r.app?.url;return typeof n==="string"?X(n):null}async function At(t){let{existsSync:r}=await import("fs"),n=await import("path");for(let o of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=n.resolve(t,o);if(!r(c))continue;try{let e=await import(c),u=lt(e.default??e);if(u)return u}catch{}}return null}async function ut(t={}){let r=t.cwd??process.cwd(),n=t.env??process.env;if(t.explicit){let u=X(t.explicit);if(u)return{url:u,source:"option"}}let o=lt(t.stxConfig);if(o)return{url:o,source:"stx.config",via:"site.url"};let c=await At(r);if(c)return{url:c,source:"site.config",via:"url"};let e=Ft(n);if(e)return e;return{url:"http://localhost",source:"fallback"}}function dt(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
2
+ import"./chunk-1xjv71dw.js";import{b,zc}from"./chunk-wpwh529h.js";import"./chunk-27agaezn.js";import"./chunk-zn3c0ew5.js";import{Tt,S}from"./chunk-6ph5jasj.js";import"./chunk-nzwcbt98.js";import"./chunk-m5a8zgft.js";import"./chunk-6ew10ptg.js";import{xt,St,kt,_t,Ct,Et}from"./chunk-4s1k8k2a.js";import{a}from"./chunk-d25pawk8.js";import{hs}from"./chunk-dxsdr77m.js";import"./chunk-5f6x6fyp.js";import"./chunk-stkxvrxd.js";import{Te,Yt,Zt}from"./chunk-6jgt685n.js";import"./chunk-bas06v5y.js";import{y}from"./chunk-z6kz9jqc.js";import{mt,i}from"./chunk-s8vj3xs0.js";import"./chunk-dnt3q3jv.js";import"./chunk-xjv46712.js";import{rs}from"./chunk-hp3vebgn.js";import"./chunk-e8g374pz.js";import"./chunk-91pycazt.js";import{La,ja,Ba}from"./chunk-vtmd3ssd.js";import{Xt,Gn,Xn}from"./chunk-9adx6f4k.js";import{Jt}from"./chunk-4w8zdkxw.js";import"./chunk-b8wgnpat.js";import"./chunk-bj0z4gve.js";import{G,be}from"./chunk-3xa9vxyq.js";import"./chunk-8f14cgm8.js";import"./chunk-g78zvf6j.js";import{l}from"./chunk-h2y36t58.js";import{s,ge}from"./chunk-q1db41k8.js";import D from"fs";import f from"path";import{createHash as $t}from"crypto";function Dt(t){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(t).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return t}}var Rt=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function It(t){return Bun.hash(t).toString(16)}function ot(t,r={}){if(!t.includes('type="stx/island"'))return{html:t,chunks:[]};let n=new Map,o=t.replace(Rt,(e,u,g,v)=>{let w=v.trim();if(!w)return e;if(/\bdata-stx-src=/.test(g))return e;if(r.minify)w=Dt(w);let p=It(w);if(!n.has(p))n.set(p,w);let P=r.integrity?` data-stx-integrity="sha384-${$t("sha384").update(w).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${u}" data-stx-src="/_stx/islands/${p}.js"${P}${g}></script>`}),c=Array.from(n,([e,u])=>({hash:e,code:u}));return{html:o,chunks:c}}var Bt=new Set(["visible","idle"]);function ct(t){if(!t.includes("data-stx-src="))return t;let r=new Map,n=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,o;while((o=n.exec(t))!==null)r.set(o[1],o[2]);let c=new Set,e=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,u;while((u=e.exec(t))!==null)if(Bt.has(r.get(u[1])||""))c.add(u[2]);let g=/<\/head\s*>/iy,v=S(t,(p,P)=>(g.lastIndex=P,g.exec(p)?g.lastIndex:-1))[0]?.start??-1;if(c.size===0||v===-1)return t;let w=Array.from(c).filter((p)=>!t.includes(`rel="prefetch" href="${p}"`)).map((p)=>`<link rel="prefetch" href="${p}" as="script">`).join("");if(!w)return t;return t.slice(0,v)+w+t.slice(v)}var jt=["STX_SITE_URL","SITE_URL","URL","VERCEL_URL","CF_PAGES_URL"];function X(t){let r=t.trim();if(!r)return null;let n=/^https?:\/\//i.test(r)?r:`https://${r}`;try{return new URL(n).origin+new URL(n).pathname.replace(/\/$/,"")}catch{return null}}function Ft(t){for(let r of jt){let n=t[r];if(!n)continue;let o=X(n);if(o)return{url:o,source:"env",via:r}}return null}function lt(t){if(!t||typeof t!=="object")return null;let r=t,n=r.site?.url??r.url??r.app?.url;return typeof n==="string"?X(n):null}async function At(t){let{existsSync:r}=await import("fs"),n=await import("path");for(let o of["site.config.ts","site.config.js",".config/site.config.ts"]){let c=n.resolve(t,o);if(!r(c))continue;try{let e=await import(c),u=lt(e.default??e);if(u)return u}catch{}}return null}async function ut(t={}){let r=t.cwd??process.cwd(),n=t.env??process.env;if(t.explicit){let u=X(t.explicit);if(u)return{url:u,source:"option"}}let o=lt(t.stxConfig);if(o)return{url:o,source:"stx.config",via:"site.url"};let c=await At(r);if(c)return{url:c,source:"site.config",via:"url"};let e=Ft(n);if(e)return e;return{url:"http://localhost",source:"fallback"}}function dt(){return["No site URL configured \u2014 sitemap.xml and robots.txt will point at http://localhost."," Set one in stx.config.ts (site: { url: 'https://example.com' }), in site.config.ts,"," via --domain, or with SITE_URL in the build environment."].join(`
3
3
  `)}function J(t){return async()=>({paths:await t(),fallback:!1})}var Ot;function Lt(t){let r=s(t),{depths:n}=ge(r),o=/\b(?:async\s+)?function\s+getStaticPaths\s*\(/g,c;while((c=o.exec(r))!==null){if(n[c.index]!==0)continue;let u=b(r,"(",")",o.lastIndex-1),g=r.indexOf("{",u+1),v=b(r,"{","}",g);if(u<0||g<0||v<0)break;return t.slice(c.index,v+1)}let e=/\b(?:const|let|var)\s+getStaticPaths\s*=/g;while((c=e.exec(r))!==null){if(n[c.index]!==0)continue;let u=zc(r,e.lastIndex).endPos;return t.slice(e.lastIndex,u).trim()}throw SyntaxError("Could not extract getStaticPaths; use a top-level function or const declaration")}async function gt(t){let r="read";try{let n=await Bun.file(t).text();r="parse";let o=Jt(n),c=[...o.server,...o.client,...o.signals].filter((e)=>/(?:^|\s)server(?:\s|=|$)/i.test(s(e.attrs))).sort((e,u)=>n.indexOf(e.fullTag)-n.indexOf(u.fullTag));for(let e of c){if(!/\bgetStaticPaths\b/.test(s(e.content)))continue;let u=(Ot??=new Bun.Transpiler({loader:"ts",target:"bun"})).transformSync(e.content);if(!/\bgetStaticPaths\b/.test(s(u)))continue;let g=Lt(u);if(/\bdefineStaticPaths\b/.test(s(g))&&Tt(u,"defineStaticPaths"))throw SyntaxError("Cannot evaluate a module-local defineStaticPaths binding during isolated hook extraction");r="execute";let v=Function("defineStaticPaths",`return (${g})`)(J);if(typeof v!=="function")throw TypeError("getStaticPaths must be a function");let w=await v();r="result";let p=Array.isArray(w)?{paths:w}:w;if(!p||typeof p!=="object"||!("paths"in p)||!Array.isArray(p.paths))throw TypeError("getStaticPaths must return { paths: [...] } or an array of paths");for(let P of p.paths)if(!P||typeof P!=="object"||!P.params||typeof P.params!=="object"||Array.isArray(P.params))throw TypeError("Each getStaticPaths path must contain a params object");return{kind:"ok",value:p}}return{kind:"absent"}}catch(n){return{kind:"error",phase:r,error:n instanceof Error?n:Error(String(n))}}}class pt{cacheDir;cache=new Map;loaded=!1;salt;constructor(t,r=""){this.cacheDir=t,this.salt=r}async load(){if(this.loaded)return;let t=f.join(this.cacheDir,"build-cache.json");if(await Bun.file(t).exists())try{let r=JSON.parse(await Bun.file(t).text());for(let[n,o]of Object.entries(r))this.cache.set(n,o)}catch{}this.loaded=!0}async save(){await D.promises.mkdir(this.cacheDir,{recursive:!0});let t=f.join(this.cacheDir,"build-cache.json"),r={};for(let[n,o]of this.cache)r[n]=o;await Bun.write(t,JSON.stringify(r))}getHash(t,r){let n=D.statSync(t),o=`${this.salt}|${t}:${n.mtimeMs}`;for(let e of r)if(D.existsSync(e)){let u=D.statSync(e);o+=`:${e}:${u.mtimeMs}`}let c=0;for(let e=0;e<o.length;e++){let u=o.charCodeAt(e);c=(c<<5)-c+u,c=c&c}return Math.abs(c).toString(36)}get(t,r){let n=this.cache.get(t);if(!n)return null;let o=ft(r).some((u)=>D.existsSync(u)),c=[r,...n.dependencies??[]].some((u)=>u.endsWith(".stx")&&D.existsSync(u)&&rs(D.readFileSync(u,"utf8")).some((g)=>/\bserver\b/.test(g.attrs)));if(o||c)return this.cache.delete(t),null;let e=this.getHash(r,n.dependencies??[]);if(n.hash!==e)return this.cache.delete(t),null;return n.html}set(t,r,n,o){let c=this.getHash(r,n);this.cache.set(t,{hash:c,html:o,generatedAt:Date.now(),dependencies:n})}}class ht{cacheDir;constructor(t){this.cacheDir=t}getFilePath(t){let r=t.replace(/[^a-zA-Z0-9]/g,"_")+".json";return f.join(this.cacheDir,"isr",r)}async get(t){let r=this.getFilePath(t);if(!await Bun.file(r).exists())return null;try{return JSON.parse(await Bun.file(r).text())}catch{return null}}async set(t,r){let n=this.getFilePath(t);await D.promises.mkdir(f.dirname(n),{recursive:!0}),await Bun.write(n,JSON.stringify(r))}async invalidate(t){let r=this.getFilePath(t);if(await Bun.file(r).exists())await D.promises.unlink(r)}async invalidatePattern(t){let r=f.join(this.cacheDir,"isr");if(!D.existsSync(r))return;let n=await D.promises.readdir(r);for(let o of n){let c=o.replace(/_/g,"/").replace(".json","");if(t.test(c))await D.promises.unlink(f.join(r,o))}}async needsRevalidation(t){let r=await this.get(t);if(!r)return!0;return Date.now()>r.revalidateAfter}}async function Ut(t){let r=[];if(!t.isDynamic)r.push({url:t.pattern,params:{}});else{let n=await gt(t.filePath);if(n.kind==="error")throw Error(`getStaticPaths ${n.phase} failed for ${t.pattern} (${t.filePath}): ${n.error.message}`,{cause:n.error});if(n.kind==="absent")return console.warn(`Warning: Dynamic route ${t.pattern} (${t.filePath}) has no getStaticPaths`),r;let o=n.value;if(o.paths.length===0)return console.info(`getStaticPaths returned no paths for dynamic route ${t.pattern} (${t.filePath})`),r;for(let c of o.paths){let e=t.pattern;for(let[u,g]of Object.entries(c.params))e=e.replace(`:${u}`,g).replace(`:${u}*`,g);r.push({url:e,params:c.params,props:c.props,revalidate:c.revalidate})}}return r}function ft(t){return[t.replace(/\.stx$/,".data.ts"),t.replace(/\.stx$/,".data.js"),t+".data.ts",t+".data.js"]}async function Mt(t){for(let r of ft(t))if(await Bun.file(r).exists())try{let n=await import(r);if(typeof n.default==="function")return await n.default();else if(typeof n.default==="object")return n.default;else if(typeof n.getData==="function")return await n.getData();else{let{default:o,...c}=n;return c}}catch(n){console.error(`Error loading data file ${r}:`,n)}return null}async function Gt(t,r,n){let o=t.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(!o)return null;let c=o[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",`
4
4
  return (async function getStaticProps() {
5
5
  ${e[1]}
@@ -37,7 +37,7 @@ ${t.map((o)=>{let c=new URL(o.loc,r).href,e=` <url>
37
37
  ${n.join(`
38
38
  `)}
39
39
  </channel>
40
- </rss>`}async function Kt(t={}){let r=Date.now();Zt();let n=await a(process.cwd()),o=n.build||{},c=await ut({explicit:t.domain||o.domain,stxConfig:n});if(c.source==="fallback"&&(t.sitemap??o.sitemap??!0))console.warn(dt());let e={router:t.router??n?.router??{},pagesDir:t.pagesDir||o.pagesDir||"pages",outputDir:t.outputDir||o.outputDir||"dist",baseUrl:t.baseUrl||o.baseUrl||"/",domain:c.url,revalidate:t.revalidate??o.revalidate??!1,sitemap:t.sitemap??o.sitemap??!0,sitemapExclude:t.sitemapExclude||o.sitemapExclude||[],robots:t.robots??o.robots??!0,rss:t.rss??o.rss??!1,concurrency:t.concurrency||o.concurrency||10,cache:t.cache??o.cache??!0,cacheDir:t.cacheDir||o.cacheDir||l(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??o.minify??!0,generate404:t.generate404??o.generate404??!0,publicDir:t.publicDir||o.publicDir||"public",trailingSlash:t.trailingSlash??o.trailingSlash??!1,cleanOutput:t.cleanOutput??o.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||n?.partialsDir||"",componentsDir:t.componentsDir||n?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,v=0,w={},p={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&D.existsSync(e.outputDir))await D.promises.rm(e.outputDir,{recursive:!0});await D.promises.mkdir(e.outputDir,{recursive:!0});let E=e.cacheSalt;if(!E){let{resolveUserCssConfig:d,fingerprintConfig:m}=await import("./chunk-8n1najwy.js");try{E=m(await d(process.cwd()))}catch{}}let{prepareImageDelivery:x}=await import("./chunk-dmm7skxs.js"),R=await x(e.publicDir,e.outputDir);if(R.count>0)console.log(`Optimized ${R.count} image(s) for responsive delivery`),E=[E,R.fingerprint].filter(Boolean).join(":");let T=new pt(e.cacheDir,E);if(e.cache)await T.load();try{let{generateCss:d}=await import("./chunk-8n1najwy.js");await d('<div class="bg-black"></div>')}catch{}xt();let yt=n?.routeMiddleware?.dir||"middleware";await kt(process.cwd(),yt);let V=St();if(V.length>0)console.log(`Loaded ${V.length} middleware: ${V.join(", ")}`);let bt=n?.routeMiddleware?.global||[];Ba(n?.layoutsDir,l(process.cwd()));let Z=G(".",{pagesDir:e.pagesDir,pagesDirs:n?._layerPageDirs});console.log(`Found ${Z.length} routes`);let M=[];for(let d of Z)try{let m=await Ut(d);for(let k of m)M.push({route:d,url:k.url,params:k.params,props:k.props,revalidate:k.revalidate??e.revalidate})}catch(m){let k=m instanceof Error?m:Error(String(m));u.failedCount++,u.errors.push({route:d.pattern,error:k}),await e.hooks.onError?.(k,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,k)}u.totalPages=M.length+u.failedCount,console.log(`Generating ${M.length} pages...`);let _=[],Q=[];for(let d=0;d<M.length;d+=e.concurrency)Q.push(M.slice(d,d+e.concurrency));for(let d of Q)await Promise.all(d.map(async(m)=>{let{route:k,url:h,params:N,props:vt,revalidate:rt}=m;try{await e.hooks.onPageStart?.(h);let A=await Bun.file(k.filePath).text(),O=ee(A),Pt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],nt=[...bt,...Pt];if(nt.length>0){let B=_t(h,N,O||{}),L=Ct(B,null,void 0,{isServer:!0}),j=await Et(nt,L);if(j.redirect){let C=typeof j.redirect==="string"?j.redirect:j.redirect.path||j.redirect,z=re(String(C),h),U=ne(h,e);await D.promises.mkdir(f.dirname(U),{recursive:!0}),await Bun.write(U,z),u.successCount++,u.pages.push({route:h,outputPath:U,size:Buffer.byteLength(z),cached:!1}),_.push({loc:h,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${h} \u2192 redirect to ${C}`);return}if(j.abort){let C=typeof j.abort==="string"?j.abort:j.abort?.error?.message||"aborted";console.warn(` \u21B3 ${h} \u2014 middleware aborted: ${C}`);return}}let it=A.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(it)try{if(!await Function("route",`
40
+ </rss>`}async function Kt(t={}){let r=Date.now();Zt();let n=await a(process.cwd()),o=n.build||{},c=await ut({explicit:t.domain||o.domain,stxConfig:n});if(c.source==="fallback"&&(t.sitemap??o.sitemap??!0))console.warn(dt());let e={router:t.router??n?.router??{},pagesDir:t.pagesDir||o.pagesDir||"pages",outputDir:t.outputDir||o.outputDir||"dist",baseUrl:t.baseUrl||o.baseUrl||"/",domain:c.url,revalidate:t.revalidate??o.revalidate??!1,sitemap:t.sitemap??o.sitemap??!0,sitemapExclude:t.sitemapExclude||o.sitemapExclude||[],robots:t.robots??o.robots??!0,rss:t.rss??o.rss??!1,concurrency:t.concurrency||o.concurrency||10,cache:t.cache??o.cache??!0,cacheDir:t.cacheDir||o.cacheDir||l(process.cwd(),"ssg-cache"),contentLoaders:t.contentLoaders||[],hooks:t.hooks||{},minify:t.minify??o.minify??!0,generate404:t.generate404??o.generate404??!0,publicDir:t.publicDir||o.publicDir||"public",trailingSlash:t.trailingSlash??o.trailingSlash??!1,cleanOutput:t.cleanOutput??o.cleanOutput??!0,cacheSalt:t.cacheSalt??"",partialsDir:t.partialsDir||n?.partialsDir||"",componentsDir:t.componentsDir||n?.componentsDir||"",failOnIncludeError:t.failOnIncludeError??!0,failOnServerScriptError:t.failOnServerScriptError??!0,chunkIslands:t.chunkIslands===!0,prefetchIslands:t.prefetchIslands===!0,integrityIslands:t.integrityIslands===!0},u={totalPages:0,successCount:0,failedCount:0,cachedCount:0,buildTime:0,pages:[],errors:[]},g=new Set,v=0,w={},p={};await e.hooks.onBuildStart?.();try{if(e.cleanOutput&&D.existsSync(e.outputDir))await D.promises.rm(e.outputDir,{recursive:!0});await D.promises.mkdir(e.outputDir,{recursive:!0});let E=e.cacheSalt;if(!E){let{resolveUserCssConfig:d,fingerprintConfig:m}=await import("./chunk-zsqg1cy6.js");try{E=m(await d(process.cwd()))}catch{}}let{prepareImageDelivery:x}=await import("./chunk-pach41d0.js"),R=await x(e.publicDir,e.outputDir);if(R.count>0)console.log(`Optimized ${R.count} image(s) for responsive delivery`),E=[E,R.fingerprint].filter(Boolean).join(":");let T=new pt(e.cacheDir,E);if(e.cache)await T.load();try{let{generateCss:d}=await import("./chunk-zsqg1cy6.js");await d('<div class="bg-black"></div>')}catch{}xt();let yt=n?.routeMiddleware?.dir||"middleware";await kt(process.cwd(),yt);let V=St();if(V.length>0)console.log(`Loaded ${V.length} middleware: ${V.join(", ")}`);let bt=n?.routeMiddleware?.global||[];Ba(n?.layoutsDir,l(process.cwd()));let Z=G(".",{pagesDir:e.pagesDir,pagesDirs:n?._layerPageDirs});console.log(`Found ${Z.length} routes`);let M=[];for(let d of Z)try{let m=await Ut(d);for(let k of m)M.push({route:d,url:k.url,params:k.params,props:k.props,revalidate:k.revalidate??e.revalidate})}catch(m){let k=m instanceof Error?m:Error(String(m));u.failedCount++,u.errors.push({route:d.pattern,error:k}),await e.hooks.onError?.(k,d.pattern),console.error(`Error discovering paths for ${d.pattern}:`,k)}u.totalPages=M.length+u.failedCount,console.log(`Generating ${M.length} pages...`);let _=[],Q=[];for(let d=0;d<M.length;d+=e.concurrency)Q.push(M.slice(d,d+e.concurrency));for(let d of Q)await Promise.all(d.map(async(m)=>{let{route:k,url:h,params:N,props:vt,revalidate:rt}=m;try{await e.hooks.onPageStart?.(h);let A=await Bun.file(k.filePath).text(),O=ee(A),Pt=O?.middleware?Array.isArray(O.middleware)?O.middleware:[O.middleware]:[],nt=[...bt,...Pt];if(nt.length>0){let B=_t(h,N,O||{}),L=Ct(B,null,void 0,{isServer:!0}),j=await Et(nt,L);if(j.redirect){let C=typeof j.redirect==="string"?j.redirect:j.redirect.path||j.redirect,z=re(String(C),h),U=ne(h,e);await D.promises.mkdir(f.dirname(U),{recursive:!0}),await Bun.write(U,z),u.successCount++,u.pages.push({route:h,outputPath:U,size:Buffer.byteLength(z),cached:!1}),_.push({loc:h,lastmod:new Date().toISOString()}),console.log(` \u21B3 ${h} \u2192 redirect to ${C}`);return}if(j.abort){let C=typeof j.abort==="string"?j.abort:j.abort?.error?.message||"aborted";console.warn(` \u21B3 ${h} \u2014 middleware aborted: ${C}`);return}}let it=A.match(/definePageMeta\s*\(\s*\{[\s\S]*?validate\s*:\s*((?:\([^)]*\)|[^,}])*(?:\{[\s\S]*?\})?)/m);if(it)try{if(!await Function("route",`
41
41
  const validate = ${it[1]};
42
42
  return validate(route);
43
43
  `)({params:N})){console.warn(`Validation failed for ${h}, skipping...`);return}}catch{}let I=null,st=!1;if(e.cache){if(I=T.get(h,k.filePath),I)st=!0,u.cachedCount++}if(!I){let B=await wt(k,N,vt,e,n);if(I=B.html,e.failOnIncludeError&&B.includeFailures.length>0)throw Error(`${B.includeFailures.length} include(s) failed to resolve, so this page would have shipped with an error banner where the markup should be:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/stx",
3
3
  "type": "module",
4
- "version": "0.2.745",
4
+ "version": "0.2.747",
5
5
  "description": "A performant UI Framework. Powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -128,12 +128,12 @@
128
128
  "dependencies": {
129
129
  "@stacksjs/ts-css": "^0.3.11",
130
130
  "@stacksjs/clapp": "^0.2.16",
131
- "@stacksjs/desktop": "0.2.745",
132
- "@stacksjs/sanitizer": "0.2.745",
131
+ "@stacksjs/desktop": "0.2.747",
132
+ "@stacksjs/sanitizer": "0.2.747",
133
133
  "@stacksjs/ts-i18n": "^0.1.11",
134
- "bun-plugin-stx": "0.2.745",
134
+ "bun-plugin-stx": "0.2.747",
135
135
  "bunfig": "^0.15.21",
136
- "stx-router": "0.2.745",
136
+ "stx-router": "0.2.747",
137
137
  "ts-broadcasting": "^0.0.11",
138
138
  "ts-images": "^0.2.22",
139
139
  "ts-syntax-highlighter": "^0.2.1"
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ua,da,pa,fa,qm}from"./chunk-v1v5w18z.js";import"./chunk-amsbfc3y.js";import"./chunk-bngfwrxs.js";import"./chunk-e43cxztn.js";import"./chunk-fcaxgwwb.js";import"./chunk-wnven47g.js";import"./chunk-91pycazt.js";import"./chunk-pdjr53q1.js";import"./chunk-00c0wzsm.js";import"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-3qe85y8x.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{ua as buildNative,qm as default,da as findCraftBinary,fa as getAvailableFormats,pa as getAvailableTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Cl,Vg,El,Tl,Ug,Wg}from"./chunk-qxt8dw9q.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Wg as applySlots,Ug as extractSlotContent,Vg as parseSlotElement,Cl as parseSlots,Tl as processSlots,El as renderSlot};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{j,Sf,Mo,a,P,ph,fh}from"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{P as config,j as defaultConfig,ph as defineStxConfig,Mo as discoverConfig,a as loadStxConfig,Sf as resolveStxDirectories,fh as validateConfig};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Im,Om}from"./chunk-dc1b9qrp.js";import"./chunk-fcep45sw.js";import"./chunk-sfscvxaw.js";import"./chunk-1xjv71dw.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Om as clearStoreCache,Im as getStoreScript};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{V}from"./chunk-xznv6fnn.js";function n(t){return V(t)}
3
- export{n};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{eh,hf,Ge,Wa,th,Zr,Qr,es}from"./chunk-00c0wzsm.js";import"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-rm8nt1gr.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{th as clearOnceStore,Wa as onceStore,Ge as partialsCache,Zr as processIncludes,Qr as processStackPushDirectives,es as processStackReplacements,eh as resetUnscopedSignalWarnings,hf as topLevelElements};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{vl,Ki,Cg,wl,xl,Eg,Tg}from"./chunk-4zbmw3bt.js";import"./chunk-5s7swxer.js";import"./chunk-fcep45sw.js";import"./chunk-sfscvxaw.js";import"./chunk-1xjv71dw.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import{At,Of}from"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{vl as buildVirtualSource,At as extractScriptBlocks,Of as extractTemplateExpressions,wl as findRuntimeTypeDeclarations,xl as findStxModuleDeclarations,Tg as formatTypecheckDiagnostics,Cg as sourcePathFor,Eg as typecheckStxFiles,Ki as virtualPathFor};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Zn,i}from"./chunk-fcaxgwwb.js";import"./chunk-wnven47g.js";import"./chunk-91pycazt.js";import"./chunk-pdjr53q1.js";import"./chunk-00c0wzsm.js";import"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-esj3wb57.js";import{be}from"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-3qe85y8x.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import{Ie,Ps,Is}from"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Zn as buildModulesTag,be as injectRouterScript,i as processDirectives,Ps as processJsonDirective,Is as processOnceDirective,Ie as validateClientScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Yr,nr,mf}from"./chunk-pdjr53q1.js";import"./chunk-220pc67r.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import{Rt}from"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{mf as declareBareLoopHead,Rt as parseLoopBinding,nr as processLoops,Yr as reportDeferredLoopWarnings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xg}from"./chunk-z9pzqt8v.js";import"./chunk-9022fa2r.js";import"./chunk-psf38nq6.js";import"./chunk-sfscvxaw.js";import"./chunk-643tvm0k.js";import"./chunk-2dc3bxec.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{xg as startProductionServer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{zg}from"./chunk-er1r66m6.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{zg as buildApp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{oo,Nm,Dm}from"./chunk-5s7swxer.js";import"./chunk-fcep45sw.js";import"./chunk-sfscvxaw.js";import"./chunk-1xjv71dw.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Dm as clearComposableCache,Nm as getComposableScript,oo as listComposableModules};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wg}from"./chunk-1ysfm4w8.js";import"./chunk-fcaxgwwb.js";import"./chunk-wnven47g.js";import"./chunk-91pycazt.js";import"./chunk-pdjr53q1.js";import"./chunk-00c0wzsm.js";import"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-3qe85y8x.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{wg as startInteractive};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Rg}from"./chunk-n96wmvtm.js";import"./chunk-9022fa2r.js";import"./chunk-j6m7jwpv.js";import"./chunk-psf38nq6.js";import"./chunk-sfscvxaw.js";import"./chunk-fcaxgwwb.js";import"./chunk-wnven47g.js";import"./chunk-91pycazt.js";import"./chunk-pdjr53q1.js";import"./chunk-00c0wzsm.js";import"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-3qe85y8x.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Rg as buildForProduction};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{yf,ns}from"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-rm8nt1gr.js";import{br}from"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import{nt}from"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{nt as freeIdentifiers,ns as processComponents,yf as processESImports,br as rendersAsElement};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ll,ul}from"./chunk-vw07g57k.js";import"./chunk-1ysfm4w8.js";import"./chunk-z9pzqt8v.js";import"./chunk-kp2rkczm.js";import"./chunk-crk5dzxb.js";import"./chunk-4zbmw3bt.js";import"./chunk-nybty1zx.js";import"./chunk-n96wmvtm.js";import"./chunk-9022fa2r.js";import"./chunk-888xnaex.js";import"./chunk-w1sdxmx3.js";import"./chunk-er1r66m6.js";import"./chunk-amyxgejb.js";import"./chunk-qxt8dw9q.js";import"./chunk-w34w1hrg.js";import"./chunk-ttsrhr95.js";import"./chunk-md36aysy.js";import"./chunk-ecp3bh3p.js";import"./chunk-vyv76w55.js";import"./chunk-309m7fk2.js";import"./chunk-8fazd6fr.js";import"./chunk-pd89jnqk.js";import"./chunk-fsz9k5k0.js";import"./chunk-72hfqwvk.js";import"./chunk-78x8qfvt.js";import"./chunk-y3w2rc1y.js";import"./chunk-dc1b9qrp.js";import"./chunk-5s7swxer.js";import"./chunk-j6m7jwpv.js";import"./chunk-bngfwrxs.js";import"./chunk-e43cxztn.js";import"./chunk-vtmd3ssd.js";import{Jt}from"./chunk-psf38nq6.js";import"./chunk-fcep45sw.js";import"./chunk-sfscvxaw.js";import"./chunk-1xjv71dw.js";import{Re,i}from"./chunk-fcaxgwwb.js";import"./chunk-wnven47g.js";import"./chunk-91pycazt.js";import"./chunk-pdjr53q1.js";import"./chunk-00c0wzsm.js";import"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-esj3wb57.js";import{be}from"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import{ir,ar}from"./chunk-3qe85y8x.js";import{us,j,a}from"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import{m,Me}from"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";import"./chunk-9zrbhs3p.js";import"./chunk-x0c8xq0s.js";export{us as buildWebComponents,ar as cacheTemplate,ir as checkCache,Jt as classifyAllScripts,ll as createMiddleware,ul as createRoute,j as defaultConfig,m as extractVariables,be as injectRouterScript,a as loadStxConfig,Me as processClientScript,i as processDirectives,Re as readMarkdownFile};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jg,oa,Gl,Yg,Zg,Qg,em,tm,Xl,Jl,nm,rm,sm,om}from"./chunk-309m7fk2.js";import"./chunk-fcaxgwwb.js";import"./chunk-wnven47g.js";import"./chunk-91pycazt.js";import"./chunk-pdjr53q1.js";import"./chunk-00c0wzsm.js";import"./chunk-9h1m8h7x.js";import"./chunk-643tvm0k.js";import"./chunk-220pc67r.js";import"./chunk-esj3wb57.js";import"./chunk-2dc3bxec.js";import"./chunk-rm8nt1gr.js";import"./chunk-3qe85y8x.js";import"./chunk-a4avfxz2.js";import"./chunk-fef0x3da.js";import"./chunk-6ew10ptg.js";import"./chunk-5f6x6fyp.js";import"./chunk-eys9qtvt.js";import"./chunk-4s1k8k2a.js";import"./chunk-xznv6fnn.js";import"./chunk-t3zs3pgm.js";import"./chunk-nzwcbt98.js";import"./chunk-shf75rrg.js";import"./chunk-zn3c0ew5.js";import"./chunk-27agaezn.js";export{Gl as SUSPENSE_RESOLVER_RUNTIME,oa as buildSuspenseResolveScript,tm as createStreamRenderer,Qg as extractStreamBoundaries,om as generateHydrationRuntime,Jl as islandDirective,rm as processSectionDirectives,Zg as processStreamDirectives,nm as registerStreamingDirectives,Yg as renderStreamingPage,Jg as streamTemplate,em as streamTemplateSimple,sm as streamToResponse,Xl as streamingSuspenseDirective};