@stacksjs/stx 0.2.92 → 0.2.94
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/a11y.js +1 -1
- package/dist/analytics.js +1 -1
- package/dist/analyzer.js +1 -1
- package/dist/animation.js +1 -1
- package/dist/app-shell.js +1 -1
- package/dist/app.js +1 -1
- package/dist/assets.js +1 -1
- package/dist/ast.js +1 -1
- package/dist/async-components.js +1 -1
- package/dist/auth.js +1 -1
- package/dist/broadcasting.js +1 -1
- package/dist/browser-composables.js +1 -1
- package/dist/build-assets.js +1 -1
- package/dist/build-mode-detector.js +1 -1
- package/dist/build-optimizer.js +1 -1
- package/dist/build-views.js +1 -1
- package/dist/build.js +1 -1
- package/dist/builtins/drawer.js +1 -1
- package/dist/builtins/escape.js +1 -1
- package/dist/builtins/icon.js +1 -1
- package/dist/builtins/index.js +1 -1
- package/dist/builtins/modal.js +1 -1
- package/dist/builtins/safe-image.js +1 -1
- package/dist/builtins/stx-image.js +1 -1
- package/dist/builtins/stx-link.js +1 -1
- package/dist/builtins/stx-loading-indicator.js +1 -1
- package/dist/builtins/suspense.js +1 -1
- package/dist/builtins/toast.js +1 -1
- package/dist/builtins/tooltip.js +1 -1
- package/dist/builtins/transition-group.js +1 -1
- package/dist/bundle-analyzer/collector.js +1 -1
- package/dist/bundle-analyzer/index.js +1 -1
- package/dist/bundle-analyzer/report.js +1 -1
- package/dist/bundle-analyzer/treemap.js +1 -1
- package/dist/caching.js +1 -1
- package/dist/{chunk-9p45wwff.js → chunk-03c26pjz.js} +1 -1
- package/dist/{chunk-4ep9gk7d.js → chunk-04mvcmcr.js} +1 -1
- package/dist/{chunk-5e2khb7q.js → chunk-05hgyyqc.js} +2 -2
- package/dist/{chunk-j25swncq.js → chunk-095s3972.js} +1 -1
- package/dist/{chunk-t1dzvz5z.js → chunk-0dz85jrp.js} +1 -1
- package/dist/{chunk-2aydpj2n.js → chunk-0g4gece6.js} +1 -1
- package/dist/{chunk-k7yp9h17.js → chunk-0jd0pndq.js} +1 -1
- package/dist/{chunk-3whqk46c.js → chunk-0jkwrcwj.js} +1 -1
- package/dist/{chunk-jcjzg6r5.js → chunk-0m9tdm7t.js} +1 -1
- package/dist/{chunk-9pzdyd8q.js → chunk-0qnz93q2.js} +2 -2
- package/dist/{chunk-c9f5k95v.js → chunk-0tatqxj2.js} +2 -2
- package/dist/{chunk-wdtanmx1.js → chunk-0wdar532.js} +1 -1
- package/dist/{chunk-m911bf2b.js → chunk-13yz561y.js} +2 -2
- package/dist/{chunk-646pxdd1.js → chunk-174z0cd0.js} +2 -2
- package/dist/{chunk-wbrqpv9f.js → chunk-1mmykse5.js} +2 -2
- package/dist/{chunk-xkzz5rb0.js → chunk-1z2yq9em.js} +2 -2
- package/dist/{chunk-jmky0qzm.js → chunk-1z5nhbjt.js} +1 -1
- package/dist/{chunk-ms9rebfj.js → chunk-25s7bckb.js} +2 -2
- package/dist/{chunk-nsrqf0dg.js → chunk-268adc7r.js} +1 -1
- package/dist/{chunk-14kfmww0.js → chunk-26r6zh3t.js} +2 -2
- package/dist/{chunk-8xbj6dqe.js → chunk-2w3302dh.js} +1 -1
- package/dist/{chunk-9ezvda3j.js → chunk-2xen423s.js} +1 -1
- package/dist/{chunk-nv3k4bf9.js → chunk-39gm08bn.js} +1 -1
- package/dist/{chunk-g3f1xq76.js → chunk-3bjtemm6.js} +1 -1
- package/dist/{chunk-6r70w54p.js → chunk-3jm3snz8.js} +1 -1
- package/dist/{chunk-9tksycj5.js → chunk-3ngm57nt.js} +2 -2
- package/dist/{chunk-hkjq64we.js → chunk-3rh7va1z.js} +1 -1
- package/dist/{chunk-r5sggjdv.js → chunk-3yg9hbmb.js} +2 -2
- package/dist/{chunk-sk1gmrr8.js → chunk-46mkpbkk.js} +2 -2
- package/dist/chunk-48cw2nde.js +2 -0
- package/dist/chunk-48r3qe0k.js +3 -0
- package/dist/{chunk-19f7xyy7.js → chunk-4bt81cg3.js} +2 -2
- package/dist/{chunk-ccgmxmjk.js → chunk-4j188175.js} +1 -1
- package/dist/{chunk-t38vt890.js → chunk-4k7d8p8d.js} +1 -1
- package/dist/{chunk-91gyjg5c.js → chunk-4qq8ffke.js} +2 -2
- package/dist/{chunk-fnqf7293.js → chunk-50vqeesm.js} +2 -2
- package/dist/{chunk-8fhv0xaw.js → chunk-52agge4n.js} +2 -2
- package/dist/{chunk-1vz36hw3.js → chunk-55yp0q8t.js} +1 -1
- package/dist/{chunk-yywc3yge.js → chunk-57p201gb.js} +1 -1
- package/dist/{chunk-kqtchwz7.js → chunk-5ggw1dyv.js} +1 -1
- package/dist/{chunk-md4j8nch.js → chunk-5kt3ay7x.js} +1 -1
- package/dist/{chunk-ds6g241c.js → chunk-5p568px4.js} +1 -1
- package/dist/{chunk-6e08xfzp.js → chunk-5ppkfyn2.js} +1 -1
- package/dist/{chunk-1htmc8mb.js → chunk-5q87fgkk.js} +2 -2
- package/dist/{chunk-ke7rcrfm.js → chunk-5qb761h2.js} +1 -1
- package/dist/{chunk-f7f4g33p.js → chunk-5xvbq2gs.js} +2 -2
- package/dist/{chunk-tb9c2mq7.js → chunk-647849kf.js} +2 -2
- package/dist/{chunk-b37f9ebf.js → chunk-6b5k6w2q.js} +1 -1
- package/dist/{chunk-x6n8z1n8.js → chunk-6cr3eeh4.js} +1 -1
- package/dist/{chunk-7sd6c9wv.js → chunk-6djgb0hr.js} +1 -1
- package/dist/{chunk-f228sm5e.js → chunk-6dqzky7x.js} +1 -1
- package/dist/{chunk-knefeadt.js → chunk-6e4c6g46.js} +2 -2
- package/dist/{chunk-qhzdkgg3.js → chunk-6w03t7h6.js} +2 -2
- package/dist/{chunk-fh1d8bxd.js → chunk-6wn85hn6.js} +1 -1
- package/dist/{chunk-w4a3cvtp.js → chunk-6y4gqs1q.js} +1 -1
- package/dist/{chunk-8x58wmgs.js → chunk-75rndzbd.js} +2 -2
- package/dist/{chunk-eghdf4qq.js → chunk-77tga15w.js} +2 -2
- package/dist/{chunk-w3e1fm1q.js → chunk-7a51hkpf.js} +1 -1
- package/dist/{chunk-rdaavfsg.js → chunk-7b0xdy5h.js} +1 -1
- package/dist/{chunk-5wecgn5n.js → chunk-7cgmq685.js} +1 -1
- package/dist/{chunk-0m53nxvy.js → chunk-7dy588as.js} +1 -1
- package/dist/{chunk-87rkm7qf.js → chunk-7rvh2wwv.js} +2 -2
- package/dist/{chunk-1hyk728h.js → chunk-7sm05m0j.js} +1 -1
- package/dist/{chunk-npj33yqb.js → chunk-7xcfy2fn.js} +1 -1
- package/dist/{chunk-7aph6rw7.js → chunk-82t27pvd.js} +1 -1
- package/dist/{chunk-hdv4tnvh.js → chunk-87kx8byz.js} +2 -2
- package/dist/{chunk-a2xzs4kd.js → chunk-8fgwhhb8.js} +2 -2
- package/dist/{chunk-bg1xym0q.js → chunk-8qbax8xn.js} +1 -1
- package/dist/{chunk-p4wm4a45.js → chunk-91s2hres.js} +2 -2
- package/dist/{chunk-7t4hkmxb.js → chunk-94g3cahw.js} +2 -2
- package/dist/{chunk-02bd1cng.js → chunk-957amb71.js} +1 -1
- package/dist/{chunk-qvmrwh8n.js → chunk-95w08s8v.js} +1 -1
- package/dist/{chunk-6zhv4fcq.js → chunk-9agvhp1x.js} +1 -1
- package/dist/{chunk-hd27hhzr.js → chunk-9tmbrwwx.js} +1 -1
- package/dist/{chunk-dtcj9r7p.js → chunk-9yz5d003.js} +2 -2
- package/dist/{chunk-agzvhej1.js → chunk-a3hyn4we.js} +1 -1
- package/dist/{chunk-n2wmny2b.js → chunk-a69tvya5.js} +2 -2
- package/dist/{chunk-c7zedzbg.js → chunk-adjcg6wa.js} +2 -2
- package/dist/{chunk-p5j0686t.js → chunk-adqh2m9z.js} +1 -1
- package/dist/{chunk-ddst5g08.js → chunk-asarebzq.js} +1 -1
- package/dist/{chunk-z06myqr1.js → chunk-aw3rp9ac.js} +2 -2
- package/dist/{chunk-zr8631g4.js → chunk-b0cyc09a.js} +1 -1
- package/dist/{chunk-ckz0ppkr.js → chunk-b3kkjcdh.js} +1 -1
- package/dist/{chunk-a33kr9b0.js → chunk-b3prs7y0.js} +1 -1
- package/dist/{chunk-zhr3za7x.js → chunk-b5zc9y0y.js} +2 -2
- package/dist/{chunk-zepv7y44.js → chunk-baa7h4yz.js} +2 -2
- package/dist/{chunk-pzc0bs5r.js → chunk-bgec9r1v.js} +2 -2
- package/dist/{chunk-mqnymcn5.js → chunk-bjnjpsgn.js} +2 -2
- package/dist/{chunk-g22tv0ed.js → chunk-bk8ew8ze.js} +2 -2
- package/dist/{chunk-h3mb2q51.js → chunk-bn08k7yy.js} +2 -2
- package/dist/{chunk-nacsxc1r.js → chunk-bpgg59wa.js} +1 -1
- package/dist/{chunk-9w7021bx.js → chunk-bwxda6n1.js} +2 -2
- package/dist/{chunk-9fj7hpwa.js → chunk-bykjk6vj.js} +1 -1
- package/dist/{chunk-gapx9vqm.js → chunk-c53hyw5c.js} +1 -1
- package/dist/{chunk-0qzxbxgp.js → chunk-c7jg8w13.js} +1 -1
- package/dist/{chunk-f9j3mr9z.js → chunk-ca6qd1dx.js} +1 -1
- package/dist/{chunk-f6s1jx8c.js → chunk-cdbwprfv.js} +2 -2
- package/dist/{chunk-3rgj1qn6.js → chunk-ceg2c2q2.js} +2 -2
- package/dist/{chunk-31w1xfs1.js → chunk-cn409b69.js} +1 -1
- package/dist/{chunk-c23697dp.js → chunk-cp3kwv17.js} +1 -1
- package/dist/{chunk-1k3k1tf8.js → chunk-cpcc11vp.js} +2 -2
- package/dist/{chunk-ftzqtv1k.js → chunk-cr3wbrcr.js} +2 -2
- package/dist/{chunk-my0qmjw4.js → chunk-cygfdk1n.js} +2 -2
- package/dist/{chunk-1bknva4p.js → chunk-cyp4m0vh.js} +1 -1
- package/dist/{chunk-jm460jxs.js → chunk-cz25azze.js} +1 -1
- package/dist/{chunk-9d0q9k3p.js → chunk-d77yxcds.js} +2 -2
- package/dist/{chunk-cf86cs0k.js → chunk-dvfs1h3c.js} +2 -2
- package/dist/{chunk-1bzckhs2.js → chunk-dyjnn5k8.js} +2 -2
- package/dist/{chunk-sd2c11bp.js → chunk-dzw95th7.js} +2 -2
- package/dist/{chunk-88wdr7f3.js → chunk-e0zytzdh.js} +1 -1
- package/dist/{chunk-tgvekhwz.js → chunk-e53h9qhd.js} +1 -1
- package/dist/{chunk-593x2ccf.js → chunk-eds0f8f1.js} +2 -2
- package/dist/{chunk-5y4q9abj.js → chunk-eh8hact1.js} +1 -1
- package/dist/{chunk-4ewrwqwn.js → chunk-epj957jf.js} +1 -1
- package/dist/{chunk-fcpxs8mm.js → chunk-eqeyaq6g.js} +1 -1
- package/dist/{chunk-n7j8tczc.js → chunk-fbxt2mrx.js} +2 -2
- package/dist/{chunk-b0w1cm1s.js → chunk-fch9tk1k.js} +1 -1
- package/dist/{chunk-8g0jb444.js → chunk-fe7r1mq1.js} +2 -2
- package/dist/{chunk-y92w0240.js → chunk-fhawx87n.js} +1 -1
- package/dist/{chunk-dgf2g708.js → chunk-fk51yyrw.js} +1 -1
- package/dist/{chunk-5tv1swsr.js → chunk-fms20x0n.js} +1 -1
- package/dist/{chunk-13mkbvxc.js → chunk-fs0qezn5.js} +1 -1
- package/dist/{chunk-acry1mfc.js → chunk-fzm3y0r3.js} +1 -1
- package/dist/{chunk-2rd0ykrg.js → chunk-g2hekckm.js} +1 -1
- package/dist/{chunk-zxsqbve0.js → chunk-g4ps1dj8.js} +2 -2
- package/dist/{chunk-qr72av66.js → chunk-g8b81pzc.js} +1 -1
- package/dist/{chunk-rth1890k.js → chunk-ganag9dm.js} +2 -2
- package/dist/{chunk-v9199ywv.js → chunk-gc84b1d2.js} +2 -2
- package/dist/{chunk-6jhqq7es.js → chunk-gcf5v18y.js} +1 -1
- package/dist/{chunk-a50svyjn.js → chunk-ghrx0hn1.js} +1 -1
- package/dist/{chunk-nh418dpm.js → chunk-gqpkp459.js} +2 -2
- package/dist/chunk-h45py5w5.js +2 -0
- package/dist/{chunk-at9v5saf.js → chunk-h5wa62ek.js} +1 -1
- package/dist/{chunk-ecabspxs.js → chunk-h82kjdr4.js} +1 -1
- package/dist/{chunk-aaaxvn5r.js → chunk-haecq01c.js} +1 -1
- package/dist/{chunk-zx43nkm1.js → chunk-hepg894w.js} +2 -2
- package/dist/{chunk-rhyxeb33.js → chunk-hjdc99kb.js} +2 -2
- package/dist/{chunk-04yrgvdd.js → chunk-hje9v2zh.js} +1 -1
- package/dist/{chunk-zxxt0c9q.js → chunk-hke99a0v.js} +2 -2
- package/dist/{chunk-r6sb1sm4.js → chunk-hpqr9e3x.js} +2 -2
- package/dist/{chunk-pcngkyjr.js → chunk-hq5cem49.js} +2 -2
- package/dist/{chunk-yssvz8zs.js → chunk-hrampcrj.js} +1 -1
- package/dist/{chunk-pjaa8q7x.js → chunk-ht4j68cs.js} +2 -2
- package/dist/{chunk-22xxm2x5.js → chunk-hxx3za24.js} +1 -1
- package/dist/{chunk-ms6793rw.js → chunk-j4s5qwd7.js} +2 -2
- package/dist/{chunk-ydhza16t.js → chunk-jbejwejg.js} +1 -1
- package/dist/{chunk-vwp4dw7e.js → chunk-jc0fc4ht.js} +1 -1
- package/dist/{chunk-kemb0fyc.js → chunk-jcs0ymw7.js} +1 -1
- package/dist/{chunk-tj9kmtnx.js → chunk-jfm69keq.js} +2 -2
- package/dist/chunk-jfrn43vh.js +2 -0
- package/dist/{chunk-fnt3srfr.js → chunk-jjamhxpm.js} +1 -1
- package/dist/{chunk-gcsqn7x9.js → chunk-jjvp4t5w.js} +2 -2
- package/dist/{chunk-e8x46y38.js → chunk-jt44av4j.js} +1 -1
- package/dist/{chunk-n3k3e9n5.js → chunk-jt98jhpt.js} +1 -1
- package/dist/{chunk-r738cjs3.js → chunk-k8440jxh.js} +2 -2
- package/dist/{chunk-v0s45ek4.js → chunk-kdxa9epn.js} +2 -2
- package/dist/{chunk-hrgg37a9.js → chunk-kfd2hf6f.js} +2 -2
- package/dist/{chunk-jdy93c39.js → chunk-kgym7ch9.js} +1 -1
- package/dist/{chunk-ybe2cpx1.js → chunk-kh6rfz2v.js} +1 -1
- package/dist/{chunk-j1myedcr.js → chunk-kkp6rs2n.js} +1 -1
- package/dist/{chunk-hz7qnpx1.js → chunk-m59y310j.js} +2 -2
- package/dist/{chunk-kh976zgv.js → chunk-mgmyr1b9.js} +1 -1
- package/dist/{chunk-dkt9p3bk.js → chunk-mqwbpamc.js} +1 -1
- package/dist/{chunk-xmjedbkt.js → chunk-mrehzhxv.js} +1 -1
- package/dist/{chunk-snj1hfpb.js → chunk-mv03qb75.js} +1 -1
- package/dist/chunk-mwbng54r.js +2 -0
- package/dist/{chunk-zvyc82ke.js → chunk-n46a5g1g.js} +1 -1
- package/dist/{chunk-vawc9ak6.js → chunk-n944baxp.js} +1 -1
- package/dist/{chunk-zwdargbj.js → chunk-nanw7yhz.js} +1 -1
- package/dist/{chunk-nwfa5766.js → chunk-nap11ntr.js} +2 -2
- package/dist/{chunk-r3cxnszy.js → chunk-ncnfa8ae.js} +2 -2
- package/dist/{chunk-xm3hz63f.js → chunk-ngxfwzq3.js} +1 -1
- package/dist/{chunk-fngb9apr.js → chunk-nvwb4x04.js} +1 -1
- package/dist/{chunk-ydhrdatx.js → chunk-nw34xajc.js} +1 -1
- package/dist/{chunk-3wth4wa6.js → chunk-payfb24w.js} +1 -1
- package/dist/{chunk-r1m8g439.js → chunk-pc31m5x5.js} +1 -1
- package/dist/{chunk-xecnz132.js → chunk-pg1fvqb9.js} +1 -1
- package/dist/{chunk-h6s1thg6.js → chunk-q60knhjf.js} +1 -1
- package/dist/{chunk-0t75nh4z.js → chunk-q6h6yvzb.js} +2 -2
- package/dist/{chunk-w719zps0.js → chunk-qd5461tt.js} +1 -1
- package/dist/{chunk-exfw0aqe.js → chunk-qdc3aav1.js} +1 -1
- package/dist/{chunk-g9gksn68.js → chunk-qfwzdffx.js} +2 -2
- package/dist/{chunk-wtgrc6ya.js → chunk-qgxwmagw.js} +1 -1
- package/dist/{chunk-vy0k2prz.js → chunk-qhdtssn1.js} +2 -2
- package/dist/{chunk-tzehzwyr.js → chunk-qk584whs.js} +1 -1
- package/dist/{chunk-wk7mgg5n.js → chunk-qm4yppj5.js} +2 -2
- package/dist/chunk-qwyd9a1d.js +2 -0
- package/dist/{chunk-kyhq6hzp.js → chunk-qxs6et76.js} +1 -1
- package/dist/{chunk-h1035wzj.js → chunk-rb1e4cnb.js} +1 -1
- package/dist/{chunk-kpp2baaz.js → chunk-rkffm9sy.js} +1 -1
- package/dist/{chunk-xgmza98t.js → chunk-rv002yn0.js} +1 -1
- package/dist/{chunk-64bwamng.js → chunk-s6ja2bdg.js} +1 -1
- package/dist/chunk-sjagg9qz.js +66 -0
- package/dist/{chunk-jtx73fsh.js → chunk-sn07azv3.js} +2 -2
- package/dist/{chunk-rqwhb85x.js → chunk-svahbw0w.js} +2 -2
- package/dist/{chunk-1qy4gac6.js → chunk-svhtdb0s.js} +2 -2
- package/dist/{chunk-rkr7cgs8.js → chunk-t37dp99j.js} +1 -1
- package/dist/{chunk-fk0m346m.js → chunk-tj6zfxeb.js} +2 -2
- package/dist/{chunk-1yg3x73j.js → chunk-tmgz5t2g.js} +1 -1
- package/dist/{chunk-r7d26vjj.js → chunk-tr0z0e1g.js} +1 -1
- package/dist/{chunk-zv9jfm2f.js → chunk-tx6br9r4.js} +1 -1
- package/dist/{chunk-zwpm1pa8.js → chunk-vcr5pzpx.js} +1 -1
- package/dist/{chunk-nqxqy9v2.js → chunk-vdfwv0fp.js} +1 -1
- package/dist/{chunk-hkabmxjj.js → chunk-vp2395eb.js} +2 -2
- package/dist/{chunk-fbbv5x9m.js → chunk-vpe6napb.js} +2 -2
- package/dist/{chunk-1w3354fv.js → chunk-vv9wfz1c.js} +2 -2
- package/dist/{chunk-71n355cg.js → chunk-vw6ejgmy.js} +2 -2
- package/dist/{chunk-tzd81m7r.js → chunk-w01y57f5.js} +2 -2
- package/dist/{chunk-6wqrqn2x.js → chunk-w21mwxdd.js} +2 -2
- package/dist/{chunk-qhrcts5t.js → chunk-w4n8fqp7.js} +1 -1
- package/dist/{chunk-x4qr3b2z.js → chunk-w959hm8j.js} +1 -1
- package/dist/{chunk-bgan5edn.js → chunk-wf7zrjsw.js} +1 -1
- package/dist/{chunk-ktvdeqjr.js → chunk-wk07pwtd.js} +1 -1
- package/dist/{chunk-mp9dsjrg.js → chunk-wvef3ngh.js} +1 -1
- package/dist/{chunk-xw9skf0n.js → chunk-wxvyj65q.js} +1 -1
- package/dist/{chunk-ktpc2rc4.js → chunk-x1hjv24z.js} +1 -1
- package/dist/{chunk-6sx4d083.js → chunk-x39sfpvm.js} +1 -1
- package/dist/{chunk-am5rtv86.js → chunk-x4fze3q2.js} +1 -1
- package/dist/{chunk-08ncwhv7.js → chunk-x64kb787.js} +1 -1
- package/dist/{chunk-p993psbk.js → chunk-xcb0pbr6.js} +1 -1
- package/dist/{chunk-9v7q6xn4.js → chunk-xhkjhxsp.js} +1 -1
- package/dist/{chunk-fp417rws.js → chunk-xhnpsngj.js} +2 -2
- package/dist/{chunk-6t76k6ry.js → chunk-xsqbk4yk.js} +2 -2
- package/dist/{chunk-wntaqqhz.js → chunk-xygc53vr.js} +1 -1
- package/dist/{chunk-vg97xcma.js → chunk-y0qg6rrv.js} +1 -1
- package/dist/{chunk-tavtph8x.js → chunk-y25pr13j.js} +1 -1
- package/dist/{chunk-fyq5573f.js → chunk-y4c744dk.js} +2 -2
- package/dist/{chunk-b5xf2v7f.js → chunk-y4md9hp0.js} +1 -1
- package/dist/{chunk-sn7pmfn4.js → chunk-y5wazw6j.js} +1 -1
- package/dist/{chunk-zasq08k3.js → chunk-y5xz0jc4.js} +1 -1
- package/dist/{chunk-7bd8bw2z.js → chunk-y86m1wr4.js} +2 -2
- package/dist/{chunk-ewytyv0p.js → chunk-yaan98dd.js} +2 -2
- package/dist/{chunk-dnkq5y2j.js → chunk-yach037f.js} +2 -2
- package/dist/{chunk-3ewtm19c.js → chunk-yexjrg9d.js} +2 -2
- package/dist/{chunk-c03qara0.js → chunk-ygvyc6wv.js} +1 -1
- package/dist/{chunk-0fsrhs3d.js → chunk-yj560gp8.js} +1 -1
- package/dist/{chunk-pdv5dhen.js → chunk-yn38c15w.js} +1 -1
- package/dist/{chunk-a4zj7qpt.js → chunk-yr1gdceh.js} +1 -1
- package/dist/{chunk-t7ghqd7e.js → chunk-yw2fzq86.js} +2 -2
- package/dist/{chunk-e792k31a.js → chunk-ywkrxp2h.js} +1 -1
- package/dist/{chunk-sgsb5xp4.js → chunk-z37xq5rx.js} +2 -2
- package/dist/{chunk-2g16stee.js → chunk-z4djtgt0.js} +2 -2
- package/dist/{chunk-zmsj7wh8.js → chunk-z8cjr9n9.js} +1 -1
- package/dist/{chunk-j6d9ksyj.js → chunk-znxp3zha.js} +1 -1
- package/dist/{chunk-dcp0znhd.js → chunk-zt2yag10.js} +1 -1
- package/dist/cli.js +10882 -10882
- package/dist/client/directive.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-helpers.js +1 -1
- package/dist/client-script-bundler.js +1 -1
- package/dist/client-script.js +1 -1
- package/dist/client.js +0 -86
- package/dist/component-hmr.js +1 -1
- package/dist/component-processing.js +1 -1
- package/dist/component-registry.js +1 -1
- package/dist/component-renderer.js +1 -1
- package/dist/components.js +1 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-battery.js +1 -1
- package/dist/composables/use-broadcast-channel.js +1 -1
- package/dist/composables/use-channel.js +1 -1
- package/dist/composables/use-clipboard.js +1 -1
- package/dist/composables/use-color-mode.js +1 -1
- package/dist/composables/use-cookie.js +1 -1
- package/dist/composables/use-device-orientation.js +1 -1
- package/dist/composables/use-event-listener.js +1 -1
- package/dist/composables/use-event-source.js +1 -1
- package/dist/composables/use-eye-dropper.js +1 -1
- package/dist/composables/use-fetch.js +1 -1
- package/dist/composables/use-fullscreen.js +1 -1
- package/dist/composables/use-geolocation.js +1 -1
- package/dist/composables/use-idle.js +1 -1
- package/dist/composables/use-intersection-observer.js +1 -1
- package/dist/composables/use-keyboard.js +1 -1
- package/dist/composables/use-media-query.js +1 -1
- package/dist/composables/use-meta.js +1 -1
- package/dist/composables/use-mouse.js +1 -1
- package/dist/composables/use-mutation-observer.js +1 -1
- package/dist/composables/use-network.js +1 -1
- package/dist/composables/use-notification.js +1 -1
- package/dist/composables/use-permissions.js +1 -1
- package/dist/composables/use-resize-observer.js +1 -1
- package/dist/composables/use-router.js +1 -1
- package/dist/composables/use-share.js +1 -1
- package/dist/composables/use-speech.js +1 -1
- package/dist/composables/use-storage.js +1 -1
- package/dist/composables/use-text-selection.js +3 -1
- package/dist/composables/use-timer.js +1 -1
- package/dist/composables/use-utilities.js +1 -1
- package/dist/composables/use-wake-lock.js +1 -1
- package/dist/composables/use-websocket.js +1 -1
- package/dist/composables/use-window.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/composition-api.js +1 -1
- package/dist/computed.js +1 -1
- package/dist/conditionals.js +1 -1
- package/dist/config.js +1 -1
- package/dist/craft-bridge.js +1 -1
- package/dist/craft-compiler.js +1 -1
- package/dist/craft-components.js +1 -1
- package/dist/craft-entry.js +1 -1
- package/dist/craft-ssr.js +1 -1
- package/dist/csp.js +1 -1
- package/dist/csrf.js +1 -1
- package/dist/custom-directives.js +1 -1
- package/dist/defer.js +1 -1
- package/dist/deploy/config-generators.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/netlify.js +1 -1
- package/dist/dev-server/crosswind.js +1 -1
- package/dist/dev-server/index.js +1 -1
- package/dist/dev-server/keyboard-shortcuts.js +1 -1
- package/dist/dev-server/native-window.js +1 -1
- package/dist/dev-server/port-utils.js +1 -1
- package/dist/dev-server/serve-app.js +6 -1
- package/dist/dev-server/serve-file.js +6 -1
- package/dist/dev-server/serve-markdown.js +1 -1
- package/dist/dev-server/serve-multi.js +171 -1
- package/dist/dev-server/terminal-colors.js +1 -1
- package/dist/dev-server/theme-selector.js +1 -1
- package/dist/dev-server/types.js +1 -1
- package/dist/dev-server.js +1 -1
- package/dist/devtools.js +1 -1
- package/dist/directive-api.js +1 -1
- package/dist/docs.js +1 -1
- package/dist/doctor.js +1 -1
- package/dist/document-shell.js +1 -1
- package/dist/dynamic-components.js +1 -1
- package/dist/edge-runtime.js +1 -1
- package/dist/env.js +1 -1
- package/dist/error-boundaries.js +1 -1
- package/dist/error-handling.js +1 -1
- package/dist/errors/codes.js +1 -1
- package/dist/errors/formatter.js +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/errors/logger.js +1 -1
- package/dist/errors/sanitizer.js +1 -1
- package/dist/errors/types.js +1 -1
- package/dist/events.js +1 -1
- package/dist/expressions.js +1 -1
- package/dist/formatter.js +1 -1
- package/dist/forms-validation.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/head.js +1 -1
- package/dist/heatmap.js +1 -1
- package/dist/hot-reload.js +1 -1
- package/dist/html-masking.js +1 -1
- package/dist/hydration-runtime.js +1 -1
- package/dist/hydration.js +1 -1
- package/dist/i18n.js +1 -1
- package/dist/image-optimization/auto-sibling.js +1 -1
- package/dist/image-optimization/build-plugin.js +1 -1
- package/dist/image-optimization/component.js +1 -1
- package/dist/image-optimization/directive.js +1 -1
- package/dist/image-optimization/index.js +1 -1
- package/dist/image-optimization/processor.js +1 -1
- package/dist/image-optimization/serve.js +1 -1
- package/dist/includes.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/inline-assets.js +1 -1
- package/dist/interactive.js +1 -1
- package/dist/internal-markdown.js +1 -1
- package/dist/island-chunking.js +1 -1
- package/dist/js-ts.js +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/keep-alive.js +1 -1
- package/dist/lazy-loader.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/loops.js +1 -1
- package/dist/manifest.js +1 -1
- package/dist/markdown.js +1 -1
- package/dist/media/client/blur-up.js +1 -1
- package/dist/media/client/index.js +1 -1
- package/dist/media/client/lazy-load.js +1 -1
- package/dist/media/client/upload-handler.js +1 -1
- package/dist/media/image/component.js +1 -1
- package/dist/media/image/directive.js +1 -1
- package/dist/media/image/editing.js +1 -1
- package/dist/media/image/index.js +1 -1
- package/dist/media/image/placeholder.js +1 -1
- package/dist/media/image/processor/cache.js +1 -1
- package/dist/media/image/processor/index.js +1 -1
- package/dist/media/image/processor/optimizer.js +1 -1
- package/dist/media/image/processor/responsive.js +1 -1
- package/dist/media/image/srcset.js +1 -1
- package/dist/media/index.js +1 -1
- package/dist/media/manager/embed.js +1 -1
- package/dist/media/protected/component.js +1 -1
- package/dist/media/protected/index.js +1 -1
- package/dist/media/protected/signature.js +1 -1
- package/dist/media/shared/cache.js +1 -1
- package/dist/media/shared/hash.js +1 -1
- package/dist/media/shared/index.js +1 -1
- package/dist/media/upload/component.js +1 -1
- package/dist/media/upload/index.js +1 -1
- package/dist/media/video/directive.js +1 -1
- package/dist/media/video/index.js +1 -1
- package/dist/media/video/processor/cache.js +1 -1
- package/dist/media/video/processor/index.js +1 -1
- package/dist/media/video/processor/streaming.js +1 -1
- package/dist/media/video/processor/thumbnail.js +1 -1
- package/dist/media/video/processor/transcoder.js +1 -1
- package/dist/method-spoofing.js +1 -1
- package/dist/middleware.js +1 -1
- package/dist/misc-directives.js +1 -1
- package/dist/native-build.js +1 -1
- package/dist/parser/directive-parser.js +1 -1
- package/dist/parser/expression-parser.js +1 -1
- package/dist/parser/index.js +1 -1
- package/dist/parser/tokenizer.js +1 -1
- package/dist/partial-hydration.js +1 -1
- package/dist/performance-utils.js +1 -1
- package/dist/placeholder.js +1 -1
- package/dist/plugin-system.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/precompiler.js +1 -1
- package/dist/process.js +1 -1
- package/dist/production-build.js +1 -1
- package/dist/production-builder.js +1 -1
- package/dist/production-server.js +1 -1
- package/dist/props.js +1 -1
- package/dist/public-env.js +1 -1
- package/dist/pwa/audit.js +1 -1
- package/dist/pwa/directives.js +1 -1
- package/dist/pwa/icons.js +1 -1
- package/dist/pwa/index.js +1 -1
- package/dist/pwa/inject.js +1 -1
- package/dist/pwa/manifest.js +1 -1
- package/dist/pwa/offline.js +1 -1
- package/dist/pwa/precache.js +1 -1
- package/dist/pwa/service-worker.js +1 -1
- package/dist/pwa/workbox-strategies.js +1 -1
- package/dist/pwa/workbox.js +1 -1
- package/dist/pwa.js +426 -426
- package/dist/reactive-bindings.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/reactivity.js +1 -1
- package/dist/release.js +1 -1
- package/dist/render.js +1 -1
- package/dist/route-middleware.js +1 -1
- package/dist/router.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/runtime-injection.js +1 -1
- package/dist/runtime.js +1 -1
- package/dist/safe-evaluator.js +1 -1
- package/dist/scaffolding.js +1 -1
- package/dist/screenshot.js +1 -1
- package/dist/script-classifier.js +1 -1
- package/dist/script-validation.js +1 -1
- package/dist/seo.js +1 -1
- package/dist/serve.js +1 -1
- package/dist/server-bindings.js +1 -1
- package/dist/server-components.js +1 -1
- package/dist/signal-processing.js +1 -1
- package/dist/signals-api.js +1 -1
- package/dist/signals.js +1 -1
- package/dist/site-builder/build.js +1 -1
- package/dist/site-builder/i18n.js +1 -1
- package/dist/site-builder/index.js +1 -1
- package/dist/site-builder/robots.js +1 -1
- package/dist/site-builder/router.js +1 -1
- package/dist/site-builder/seo.js +1 -1
- package/dist/site-builder/sitemap.js +1 -1
- package/dist/site-builder/theme.js +1 -1
- package/dist/slots.js +1 -1
- package/dist/source-maps.js +1 -1
- package/dist/spa-shell.js +1 -1
- package/dist/ssg.js +388 -388
- package/dist/ssr.js +1 -1
- package/dist/state-management.js +1 -1
- package/dist/store-imports.js +1 -1
- package/dist/store-loader.js +1 -1
- package/dist/stores-client.js +1 -1
- package/dist/story/addons.js +1 -1
- package/dist/story/analytics.js +1 -1
- package/dist/story/auto-stories.js +1 -1
- package/dist/story/bookmarks.js +1 -1
- package/dist/story/bun-test.js +1 -1
- package/dist/story/cli.js +1 -1
- package/dist/story/collect/analyzer.js +1 -1
- package/dist/story/collect/index.js +1 -1
- package/dist/story/collect/parser.js +1 -1
- package/dist/story/collect/scanner.js +1 -1
- package/dist/story/collect/tree.js +1 -1
- package/dist/story/commands/build.js +1 -1
- package/dist/story/commands/dev.js +1 -1
- package/dist/story/commands/index.js +1 -1
- package/dist/story/commands/preview.js +1 -1
- package/dist/story/compiled-output.js +1 -1
- package/dist/story/composition.js +1 -1
- package/dist/story/config-watcher.js +1 -1
- package/dist/story/config.js +1 -1
- package/dist/story/context.js +1 -1
- package/dist/story/controls/index.js +1 -1
- package/dist/story/crosswind.js +1 -1
- package/dist/story/desktop-preview.js +1 -1
- package/dist/story/docs-generator.js +1 -1
- package/dist/story/errors.js +1 -1
- package/dist/story/figma-export.js +1 -1
- package/dist/story/generator.js +1 -1
- package/dist/story/hmr.js +1 -1
- package/dist/story/hot-swap.js +1 -1
- package/dist/story/index.js +1 -1
- package/dist/story/interactions.js +1 -1
- package/dist/story/keyboard-shortcuts.js +1 -1
- package/dist/story/output.js +1 -1
- package/dist/story/performance.js +1 -1
- package/dist/story/presets.js +1 -1
- package/dist/story/props-validation.js +1 -1
- package/dist/story/renderer.js +1 -1
- package/dist/story/search-index.js +1 -1
- package/dist/story/search.js +1 -1
- package/dist/story/server.js +1 -1
- package/dist/story/setup.js +1 -1
- package/dist/story/snapshots.js +1 -1
- package/dist/story/testing.js +1 -1
- package/dist/story/theme.js +1 -1
- package/dist/story/ui/code-panel.js +1 -1
- package/dist/story/ui/controls-panel.js +1 -1
- package/dist/story/ui/index.js +1 -1
- package/dist/story/ui/navigation.js +1 -1
- package/dist/story/ui/preview.js +1 -1
- package/dist/story/visual-testing.js +1 -1
- package/dist/streaming.js +1 -1
- package/dist/strict-lint.js +1 -1
- package/dist/style-scoping.js +1 -1
- package/dist/suspense.js +1 -1
- package/dist/teleport.js +1 -1
- package/dist/template-compiler.js +1 -1
- package/dist/template-hydrator.js +1 -1
- package/dist/template-tag-balance.js +1 -1
- package/dist/testing.js +1 -1
- package/dist/transitions.js +1 -1
- package/dist/type-checker.js +1 -1
- package/dist/types/directive-types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types.js +1 -1
- package/dist/typescript-templates.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/validator.js +1 -1
- package/dist/variable-extractor.js +1 -1
- package/dist/view-composers.js +1 -1
- package/dist/virtual-scrolling.js +1 -1
- package/dist/visual-editor.js +1 -1
- package/dist/vue-template.js +1 -1
- package/dist/web-components/css-scoping.js +1 -1
- package/dist/web-components/index.js +1 -1
- package/dist/web-components/reactive-generator.js +418 -1
- package/dist/web-components.js +1 -1
- package/dist/x-element.js +1 -1
- package/package.json +8 -7
- package/dist/chunk-0fmsckh1.js +0 -420
- package/dist/chunk-2t4gywvz.js +0 -3
- package/dist/chunk-2yw4e0h0.js +0 -3
- package/dist/chunk-32ka7sdc.js +0 -1
- package/dist/chunk-36jjen8k.js +0 -3
- package/dist/chunk-37q6x951.js +0 -3
- package/dist/chunk-3c7q2vbq.js +0 -3
- package/dist/chunk-3tk0sr6m.js +0 -3
- package/dist/chunk-5kjk30re.js +0 -3
- package/dist/chunk-6x5p7rhz.js +0 -3
- package/dist/chunk-73x9a59t.js +0 -3
- package/dist/chunk-9a7ce9v1.js +0 -3
- package/dist/chunk-9njgv29x.js +0 -3
- package/dist/chunk-9zkb2dsx.js +0 -3
- package/dist/chunk-bs7qttx8.js +0 -3
- package/dist/chunk-bxp8ps0f.js +0 -5
- package/dist/chunk-cnchhkk2.js +0 -3
- package/dist/chunk-cwjdwzn3.js +0 -3
- package/dist/chunk-d3at6tp3.js +0 -1
- package/dist/chunk-egn85zmj.js +0 -3
- package/dist/chunk-fcrwjh47.js +0 -3
- package/dist/chunk-ftq6q3nx.js +0 -3
- package/dist/chunk-fxfmwbny.js +0 -3
- package/dist/chunk-gfsk93gv.js +0 -246
- package/dist/chunk-h4k5wnbf.js +0 -3
- package/dist/chunk-kde1c2d4.js +0 -3
- package/dist/chunk-mf35r5h2.js +0 -3
- package/dist/chunk-mz4petzg.js +0 -3
- package/dist/chunk-qpg9jdqb.js +0 -3
- package/dist/chunk-r5rx348z.js +0 -3
- package/dist/chunk-rs2ejj8f.js +0 -3
- package/dist/chunk-s7fg0jy2.js +0 -3
- package/dist/chunk-s9hpp0gd.js +0 -3
- package/dist/chunk-sajzecge.js +0 -3
- package/dist/chunk-sfp05afy.js +0 -3
- package/dist/chunk-srq3dkj8.js +0 -3
- package/dist/chunk-sydw4nm4.js +0 -3
- package/dist/chunk-t6z4b0x6.js +0 -3
- package/dist/chunk-wh2szb9t.js +0 -3
- package/dist/chunk-xqq1vxb6.js +0 -1
- package/dist/chunk-xzjrrd36.js +0 -1
- package/dist/chunk-zx35qm5v.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{qB as $}from"./chunk-3jm3snz8.js";import M from"fs";import Q from"path";function B(j){let w=0;for(let k=0;k<j.length;k++){let q=j[k];w=(w<<5)-w+q,w=w&w}return Math.abs(w).toString(16).padStart(8,"0")}function C(j,w){let k=Q.basename(j);for(let q of w)if(q.startsWith("*.")){let H=q.slice(1);if(k.endsWith(H))return!0}else if(q.includes("*")){let H=new RegExp(`^${q.replace(/\*/g,".*")}$`);if(H.test(k)||H.test(j))return!0}else if(k===q||j.includes(q))return!0;return!1}function L(j,w,k){let q=Q.extname(j).toLowerCase(),H=A[q],K=(k.maxFileSizeKB||500)*1024;if(w>K)return!1;if(k.exclude&&C(j,k.exclude))return!1;if(k.include&&k.include.length>0){for(let J of k.include)if(J.startsWith("*.")){if(j.endsWith(J.slice(1)))return!0}else if(j.includes(J))return!0}if(H&&k[H]===!0)return!0;if(!H)return!1;return!1}function W(j,w,k,q){let H=M.readdirSync(j,{withFileTypes:!0});for(let K of H){let J=Q.join(j,K.name);if(K.isDirectory()){if(["node_modules",".git",".stx"].includes(K.name))continue;W(J,w,k,q)}else if(K.isFile()){let U=M.statSync(J),V=Q.relative(w,J);if(L(V,U.size,k)){let X=M.readFileSync(J),Y=B(X),Z=`/${V.replace(/\\/g,"/")}`;q.push({url:Z,revision:Y,size:U.size})}}}}function F(j,w){let k=w.pwa?.precache,q=[];if(!k?.enabled)return{entries:[],totalSize:0,fileCount:0};if(!M.existsSync(j))return{entries:[],totalSize:0,fileCount:0};W(j,j,k,q),q.sort((K,J)=>K.url.localeCompare(J.url));let H=q.reduce((K,J)=>K+J.size,0);return{entries:q,totalSize:H,fileCount:q.length}}function G(j){if(j.entries.length===0)return"[]";return`[
|
|
3
3
|
${j.entries.map((k)=>` { url: '${k.url}', revision: '${k.revision}' }`).join(`,
|
|
4
4
|
`)}
|
|
5
5
|
]`}function R(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;return`${(j/1048576).toFixed(2)} MB`}var A;var O=$(()=>{A={".html":"includeHtml",".htm":"includeHtml",".js":"includeJs",".mjs":"includeJs",".css":"includeCss",".png":"includeImages",".jpg":"includeImages",".jpeg":"includeImages",".gif":"includeImages",".webp":"includeImages",".svg":"includeImages",".ico":"includeImages",".woff":"includeFonts",".woff2":"includeFonts",".ttf":"includeFonts",".eot":"includeFonts",".otf":"includeFonts"}});
|
|
6
|
-
export{F as
|
|
6
|
+
export{F as jf,G as kf,R as lf,O as mf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{b as
|
|
2
|
+
import{Cx as Z}from"./chunk-rv002yn0.js";import{ry as $}from"./chunk-jjvp4t5w.js";import{Ty as _}from"./chunk-cz25azze.js";async function b(J,L,B,y){if(!y.customDirectives||y.customDirectives.length===0)return J;let G=J;for(let j of y.customDirectives){if(!j.name||typeof j.handler!=="function"){if(y.debug)console.warn("Invalid custom directive:",j);continue}if(j.hasEndTag)G=await D(G,j,L,B,y);else G=await Q(G,j,L,B,y)}return G}async function D(J,L,B,y,G){let{name:j,handler:k}=L,O=`@${j}`,Y=`@end${j}`,H=J,V=Z(`${O}(?:\\s*\\(([^()]*(?:\\([^)]*\\)[^()]*)*)\\))?([\\s\\S]*?)${Y}`,"g"),X=[],U=V.exec(H);while(U!==null){let[z,F="",A=""]=U,K=U.index||0;try{let N=F?W(F):[],w=A.trim(),q=await k(w,N,B,y);X.push({original:z,processed:q,startIndex:K})}catch(N){let w=N instanceof Error?N.message:String(N);if(G.debug)console.error(`Error processing custom directive @${j}:`,N);X.push({original:z,processed:$("CustomDirective",`Error in @${j}${F?`(${F})`:""}: ${w}`,_.EVALUATION_ERROR),startIndex:K})}U=V.exec(H)}for(let z=X.length-1;z>=0;z--){let{original:F,processed:A}=X[z];H=H.replace(F,A)}return H}async function Q(J,L,B,y,G){let{name:j,handler:k}=L,O=J,Y=Z(`@${j}\\s*\\(([^()]*(?:\\([^)]*\\)[^()]*)*)\\)`,"g"),H=[],V=Y.exec(O);while(V!==null){let[z,F=""]=V,A=V.index||0;try{let K=W(F),N=await k("",K,B,y);H.push({original:z,processed:N,startIndex:A})}catch(K){let N=K instanceof Error?K.message:String(K);if(G.debug)console.error(`Error processing custom directive @${j}:`,K);H.push({original:z,processed:$("CustomDirective",`Error in @${j}(${F}): ${N}`,_.EVALUATION_ERROR),startIndex:A})}V=Y.exec(O)}let X=Z(`@${j}(?!\\w)(?!\\s*\\()`,"g"),U=X.exec(O);while(U!==null){let[z]=U,F=U.index||0;try{let A=await k("",[],B,y);H.push({original:z,processed:A,startIndex:F})}catch(A){let K=A instanceof Error?A.message:String(A);if(G.debug)console.error(`Error processing custom directive @${j}:`,A);H.push({original:z,processed:$("CustomDirective",`Error in @${j}: ${K}`,_.EVALUATION_ERROR),startIndex:F})}U=X.exec(O)}for(let z=H.length-1;z>=0;z--){let{original:F,processed:A}=H[z];O=O.replace(F,A)}return O}function W(J){if(!J.trim())return[];let L=[],B="",y=!1,G="";for(let j=0;j<J.length;j++){let k=J[j];if((k==='"'||k==="'")&&(j===0||J[j-1]!=="\\"))if(!y)y=!0,G=k;else if(k===G)y=!1;else B+=k;else if(k===","&&!y)L.push(B.trim()),B="";else B+=k}if(B.trim())L.push(B.trim());return L.map((j)=>{let k=j.trim();if(k.startsWith('"')&&k.endsWith('"')||k.startsWith("'")&&k.endsWith("'"))return k.substring(1,k.length-1);return k})}
|
|
3
|
+
export{b as Ax};
|
|
@@ -383,4 +383,4 @@ else {
|
|
|
383
383
|
})();
|
|
384
384
|
</script>
|
|
385
385
|
`}function R(D,j){let q=L(j);if(!q)return D;let E=D.lastIndexOf("</body>");if(E!==-1)return D.slice(0,E)+q+D.slice(E);return D+q}var T={name:"heatmap",hasEndTag:!1,description:"Inject privacy-compliant heatmap tracking script",handler:async(D,j,q,E)=>{let F=q.__stx_config||{};if(j.length>0){let J=Q(j.join(" "));F.heatmap={...F.heatmap,...J,enabled:!0}}return L(F)}};function Q(D){let j={},q=D.match(/(\w+)=["']?([^"'\s]+)["']?/g)||[];for(let E of q){let[F,J]=E.split("="),G=J?.replace(/["']/g,"");switch(F){case"endpoint":j.endpoint=G;break;case"samplingRate":j.samplingRate=Number.parseInt(G,10);break;case"batchSize":j.batchSize=Number.parseInt(G,10);break;case"trackMouse":j.trackMouse=G==="true";break;case"trackClicks":j.trackClicks=G==="true";break;case"trackScroll":j.trackScroll=G==="true";break;case"honorDnt":j.honorDnt=G==="true";break;case"debugOverlay":j.debugOverlay=G==="true";break}}return j}class M{sessions=new Map;addSession(D){let j=this.sessions.get(D.sid);if(j)j.points.push(...D.points),j.lastActivity=Math.max(j.lastActivity,D.lastActivity);else this.sessions.set(D.sid,D)}getPageData(D){let j=[];for(let q of this.sessions.values())if(q.page===D)j.push(...q.points);return j}getClickData(D){return this.getPageData(D).filter((j)=>j.type==="click")}getMovementData(D){return this.getPageData(D).filter((j)=>j.type==="move")}getScrollData(D){let j=this.getPageData(D).filter((E)=>E.type==="scroll"),q=new Map;for(let E of j)if(E.depth!==void 0)q.set(E.depth,(q.get(E.depth)||0)+1);return Array.from(q.entries()).map(([E,F])=>({depth:E,count:F})).sort((E,F)=>E.depth-F.depth)}getZoneStats(D){let j=new Map,q=this.getPageData(D);for(let E of q)if(E.zone){let F=j.get(E.zone)||{clicks:0,hovers:0};if(E.type==="click")F.clicks++;else if(E.type==="move")F.hovers++;j.set(E.zone,F)}return j}generateGridData(D,j=20){let q=this.getPageData(D),E=[];for(let J=0;J<j;J++){E[J]=[];for(let G=0;G<j;G++)E[J][G]=0}for(let J of q){let G=Math.min(Math.floor(J.x/100*j),j-1),K=Math.min(Math.floor(J.y/100*j),j-1);E[K][G]+=J.type==="click"?3:1}let F=0;for(let J of E)for(let G of J)F=Math.max(F,G);return E.map((J,G)=>J.map((K,N)=>({x:N,y:G,intensity:F>0?K/F:0})))}exportJSON(){return JSON.stringify({sessions:Array.from(this.sessions.values()),exportedAt:new Date().toISOString()},null,2)}clear(){this.sessions.clear()}get sessionCount(){return this.sessions.size}get totalPoints(){let D=0;for(let j of this.sessions.values())D+=j.points.length;return D}}function U(){return new M}
|
|
386
|
-
export{O as
|
|
386
|
+
export{O as ow,L as pw,R as qw,T as rw,M as sw,U as tw};
|
|
@@ -30,4 +30,4 @@ ${q.variants.slice(1).map((B)=>` <Variant title="${B.title}">
|
|
|
30
30
|
`)}
|
|
31
31
|
</Story>
|
|
32
32
|
`}function R(h){let q=h.toLowerCase();if(q==="boolean")return"false";if(q==="number")return"0";if(q==="array")return"[]";if(q==="object")return"{}";return"''"}function U(h){return{text:"StxText",number:"StxNumber",boolean:"StxCheckbox",select:"StxSelect",radio:"StxRadio",color:"StxColorSelect",json:"StxJson",date:"StxText",textarea:"StxTextarea",slider:"StxSlider",buttongroup:"StxButtonGroup"}[h]||"StxText"}function W(h){return Object.entries(h).map(([q,x])=>{if(typeof x==="string")return`${q}="${x}"`;if(typeof x==="boolean")return x?q:`:${q}="false"`;return`:${q}="${JSON.stringify(x)}"`}).join(" ")}
|
|
33
|
-
export{J as
|
|
33
|
+
export{J as Pa,L as Qa,O as Ra,Y as Sa,Z as Ta};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Wb as T,Xb as S,Yb as u}from"./chunk-fzm3y0r3.js";import{cc as M}from"./chunk-jjamhxpm.js";import{dc as g}from"./chunk-h5wa62ek.js";import{ic as k}from"./chunk-52agge4n.js";import{oc as P,qc as U,rc as F,sc as w,xc as H}from"./chunk-s6ja2bdg.js";import{yc as v}from"./chunk-55yp0q8t.js";import{fd as L,hd as C}from"./chunk-bpgg59wa.js";import{jd as A}from"./chunk-y0qg6rrv.js";import{Fd as R}from"./chunk-hxx3za24.js";import{Ud as I}from"./chunk-pg1fvqb9.js";import{ge as W,he as _}from"./chunk-0qnz93q2.js";import{rB as f}from"./chunk-3jm3snz8.js";async function a(E,z){let J=await L(E);W(E,J);let $=A(E.config,J);_(E,$),console.log(` Found ${J.length} story files`);let X=typeof z.host==="string"?z.host:z.host===!0?"0.0.0.0":"localhost",Y=new g(E.root),O=new I(E.root),j=new R(E.root),D=P(),Z=Bun.serve({port:z.port,hostname:X,fetch:async(K,Q)=>{let B=new URL(K.url).pathname;if(B==="/__hmr"){if(Q.upgrade(K,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(B.startsWith("/api/"))return q(E,B,K,{presetsManager:Y,bookmarksManager:O,analyticsTracker:j});return b(E,B,z.port)},websocket:{open(K){D.open(K)},close(K){D.close(K)},message(K,Q){D.message(K,Q)}}}),G=`http://${X}:${z.port}`,V=C(E,async(K,Q)=>{console.log(` [${K}] ${Q.relativePath}`);let N=await L(E);W(E,N);let B=A(E.config,N);if(_(E,B),K==="add")F(Q.id,{fileName:Q.fileName});else if(K==="unlink")w(Q.id);else U(Q.id,{fileName:Q.fileName})});if(z.open){let K=G;try{let{exec:Q}=await import("child_process"),N=process.platform;Q(`${N==="darwin"?"open":N==="win32"?"start":"xdg-open"} ${K}`)}catch{}}return{server:Z,url:G,close:async()=>{V(),Z.stop()}}}async function q(E,z,J,$){let{presetsManager:X,bookmarksManager:Y,analyticsTracker:O}=$;if(z==="/api/stories")return Response.json({files:E.storyFiles.map((j)=>({id:j.id,fileName:j.fileName,relativePath:j.relativePath,treePath:j.treePath})),tree:E.tree});if(z.startsWith("/api/story/")){let j=z.slice(11),D=E.storyFiles.find((Z)=>Z.id===j);if(!D)return new Response("Story not found",{status:404});try{let Z=await Bun.file(D.path).text();return Response.json({id:D.id,fileName:D.fileName,relativePath:D.relativePath,content:Z})}catch{return new Response("Error reading story",{status:500})}}if(z==="/api/config")return Response.json({theme:E.config.theme,responsivePresets:E.config.responsivePresets,backgroundPresets:E.config.backgroundPresets});if(z.startsWith("/api/render/")){let j=new URL(J.url),D=z.slice(12).split("/"),Z=D[0],G=D[1]||"default",V,K=j.searchParams.get("props");if(K)try{V=JSON.parse(K)}catch{}let Q=E.storyFiles.find((N)=>N.id===Z);if(!Q)return new Response("Story not found",{status:404});try{let N=await k(E,Q,G,V);return Response.json({html:N.html,css:N.css,js:N.js,errors:N.errors,duration:N.duration})}catch(N){return Response.json({html:"",css:"",js:"",errors:[N instanceof Error?N.message:String(N)],duration:0},{status:500})}}if(z==="/api/presets"&&J.method==="GET")return Response.json({presets:X.getAllPresets()});if(z==="/api/presets"&&J.method==="POST")try{let j=await J.json(),D=X.createPreset(j.name,j.props,{componentId:j.componentId,description:j.description});return await X.save(),Response.json(D)}catch(j){return Response.json({error:String(j)},{status:400})}if(z.startsWith("/api/presets/")&&!z.includes("/use")&&J.method==="GET"){let j=z.slice(13),D=X.getPreset(j);if(!D)return new Response("Preset not found",{status:404});return Response.json(D)}if(z.endsWith("/use")&&J.method==="POST"){let j=z.slice(13,-4),D=X.usePreset(j);if(!D)return new Response("Preset not found",{status:404});return await X.save(),Response.json(D)}if(z.startsWith("/api/presets/")&&J.method==="DELETE"){let j=z.slice(13);if(!X.deletePreset(j))return new Response("Preset not found",{status:404});return await X.save(),Response.json({success:!0})}if(z==="/api/bookmarks"&&J.method==="GET")return Response.json({bookmarks:Y.getAllBookmarks()});if(z==="/api/bookmarks"&&J.method==="POST")try{let j=await J.json(),D=Y.addBookmark(j.storyId,j.variantId,j.props,{name:j.name,notes:j.notes,color:j.color});return await Y.save(),Response.json(D)}catch(j){return Response.json({error:String(j)},{status:400})}if(z==="/api/bookmarks/toggle"&&J.method==="POST")try{let j=await J.json(),D=Y.toggleBookmark(j.storyId,j.variantId,j.props);return await Y.save(),Response.json(D)}catch(j){return Response.json({error:String(j)},{status:400})}if(z.startsWith("/api/bookmarks/")&&z!=="/api/bookmarks/toggle"&&J.method==="GET"){let j=z.slice(15),D=Y.getBookmark(j);if(!D)return new Response("Bookmark not found",{status:404});return Response.json(D)}if(z.startsWith("/api/bookmarks/")&&J.method==="DELETE"){let j=z.slice(15);if(!Y.deleteBookmark(j))return new Response("Bookmark not found",{status:404});return await Y.save(),Response.json({success:!0})}if(z==="/api/analytics/track"&&J.method==="POST")try{let j=await J.json();if(j.type==="view"&&j.componentId)O.trackView(j.componentId,j.variantId);else if(j.type==="prop_change"&&j.componentId&&j.propName)O.trackPropChange(j.componentId,j.propName,null);else if(j.type==="variant_switch"&&j.componentId&&j.variantId)O.trackVariantSwitch(j.componentId,j.variantId);else if(j.type==="search"&&j.query)O.trackSearch(j.query,0);return await O.save(),Response.json({success:!0})}catch(j){return Response.json({error:String(j)},{status:400})}if(z==="/api/analytics/summary"&&J.method==="GET")return Response.json({mostViewed:O.getMostViewedComponents(10),mostChangedProps:O.getMostChangedProps(10),searchAnalytics:O.getSearchAnalytics()});if(z.startsWith("/api/analytics/component/")&&J.method==="GET"){let j=z.slice(25),D=E.storyFiles.find((G)=>G.id===j),Z=O.getComponentAnalytics(j,D?.fileName||j);return Response.json(Z)}return new Response("Not found",{status:404})}function b(E,z,J){let $=x(E,J);return new Response($,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function x(E,z){let{theme:J}=E.config,$=J.title||"STX Story",X=`ws://localhost:${z}/__hmr`,Y=H(X);return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en" class="${J.darkClass||"dark"}">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -718,4 +718,4 @@ else {
|
|
|
718
718
|
${T()}
|
|
719
719
|
</body>
|
|
720
720
|
</html>`}
|
|
721
|
-
export{a as
|
|
721
|
+
export{a as Lb};
|
|
@@ -348,4 +348,4 @@ else {
|
|
|
348
348
|
console.log('[stx] Keep-alive runtime initialized');
|
|
349
349
|
})();
|
|
350
350
|
`}function Z(f){if(typeof document<"u")document.addEventListener("stx:activated",(j)=>{f(j.detail)})}function _(f){if(typeof document<"u")document.addEventListener("stx:deactivated",(j)=>{f(j.detail)})}
|
|
351
|
-
export{Q as
|
|
351
|
+
export{Q as Ml,T as Nl,W as Ol,X as Pl,Y as Ql,Z as Rl,_ as Sl};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var P=[320,480,640,768,1024,1280,1536,1920,2560],M=[1,1.5,2,3],I=["avif","webp","jpeg"],L={avif:"image/avif",webp:"image/webp",jpeg:"image/jpeg",png:"image/png",gif:"image/gif"},_={avif:"avif",webp:"webp",jpeg:"jpg",png:"png",gif:"gif"};function A(J,K=P,Z={},B){return K.sort((C,G)=>C-G).map((C)=>{return`${Y(J,{...Z,w:C,fm:B})} ${C}w`}).join(", ")}function D(J,K=320,Z=2560,B=0.08,C={},G){let $=F(K,Z,B);return A(J,$,C,G)}function F(J,K,Z=0.08){let B=[],C=J;while(C<K)B.push(Math.round(C)),C*=1+Z*2;if(B[B.length-1]!==K)B.push(K);return B}function V(J,K,Z=M,B={},C){return Z.sort((G,$)=>G-$).map((G)=>{let $=Math.round(K*G);return`${Y(J,{...B,w:$,dpr:G,fm:C})} ${G}x`}).join(", ")}function E(J,K,Z=M,B=80,C={},G){let $={1:B,1.5:Math.round(B*0.9),2:Math.round(B*0.8),3:Math.round(B*0.7),4:Math.round(B*0.6),5:Math.round(B*0.5)};return Z.sort((X,H)=>X-H).map((X)=>{let H=Math.round(K*X),j=$[X]||Math.round(B*Math.max(0.5,1-X*0.1));return`${Y(J,{...C,w:H,q:j,dpr:X,fm:G})} ${X}x`}).join(", ")}function U(J,K="100vw"){if(!J||Object.keys(J).length===0)return K;let B=Object.entries(J).map(([C,G])=>{let $=/^\d+$/.test(C)?`${C}px`:C;return{bp:$,size:G,numericBp:Number.parseInt($)||0}}).sort((C,G)=>C.numericBp-G.numericBp).map(({bp:C,size:G})=>`(max-width: ${C}) ${G}`);return B.push(K),B.join(", ")}function z(J,K="100vw"){if(!J||J.length===0)return K;let B=[...J].sort((C,G)=>(C.maxWidth||0)-(G.maxWidth||0)).filter((C)=>C.maxWidth).map((C)=>`(max-width: ${C.maxWidth}px) ${C.imageWidth}`);return B.push(K),B.join(", ")}var Q={fullWidth:"100vw",halfDesktop:"(max-width: 768px) 100vw, 50vw",thirdDesktop:"(max-width: 768px) 100vw, 33.33vw",quarterDesktop:"(max-width: 480px) 100vw, (max-width: 768px) 50vw, 25vw",contentWidth:"(max-width: 768px) 100vw, (max-width: 1200px) 80vw, 960px"};function Y(J,K={}){let Z=Object.entries(K).filter(([,G])=>G!==void 0&&G!==null).map(([G,$])=>{if(Array.isArray($))return[G,$.join(",")];return[G,String($)]});if(Z.length===0)return J;let B=Z.map(([G,$])=>`${G}=${encodeURIComponent($)}`).join("&"),C=J.includes("?")?"&":"?";return`${J}${C}${B}`}function T(J){let[K,Z]=J.split("?"),B={};if(Z)new URLSearchParams(Z).forEach((G,$)=>{if(/^\d+$/.test(G))B[$]=Number.parseInt(G,10);else if(/^\d+\.\d+$/.test(G))B[$]=Number.parseFloat(G);else if(G==="true")B[$]=!0;else if(G==="false")B[$]=!1;else B[$]=G});return{src:K,params:B}}function x(J){let{src:K,widths:Z,dprValues:B,fixedWidth:C,formats:G=I,baseUrl:$="",params:X={}}=J,H=[];for(let j of G){let O,q;if(C!==void 0&&B)O=V(K,C,B,X,j),q=B.map((N)=>({path:"",url:Y(K,{...X,w:Math.round(C*N),fm:j}),width:Math.round(C*N),height:0,format:j,size:0,dpr:N}));else{let N=Z||P;O=A(K,N,X,j),q=N.map((R)=>({path:"",url:Y(K,{...X,w:R,fm:j}),width:R,height:0,format:j,size:0}))}H.push({srcset:O,format:j,mimeType:L[j],variants:q})}return H}function w(J,K="100vw"){return J.map(({srcset:Z,mimeType:B})=>`<source type="${B}" srcset="${Z}" sizes="${K}" />`).join(`
|
|
3
3
|
`)}function g(J,K){if(J.length===0)return;let Z=[...J].sort((C,G)=>C.width-G.width),B=Z.find((C)=>C.width>=K);if(B)return B;return Z[Z.length-1]}function S(J,K){let Z=K?J.filter((C)=>C.format===K):J;if(Z.length===0){let C=J.filter(($)=>$.format==="jpeg"),G=C.length>0?C:J;return G[Math.floor(G.length/2)]}let B=Z.sort((C,G)=>C.width-G.width);return B[Math.floor(B.length/2)]}function W(J){let K=new Map;for(let Z of J){let B=K.get(Z.format)||[];B.push(Z),K.set(Z.format,B)}return K}function k(J){return L[J]||"application/octet-stream"}function y(J){return _[J]||J}function c(J){switch(J.split(".").pop()?.toLowerCase()){case"jpg":case"jpeg":return"jpeg";case"png":return"png";case"webp":return"webp";case"avif":return"avif";case"gif":return"gif";default:return}}
|
|
4
|
-
export{P as
|
|
4
|
+
export{P as yu,M as zu,I as Au,L as Bu,_ as Cu,A as Du,D as Eu,F as Fu,V as Gu,E as Hu,U as Iu,z as Ju,Q as Ku,Y as Lu,T as Mu,x as Nu,w as Ou,g as Pu,S as Qu,W as Ru,k as Su,y as Tu,c as Uu};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
function z(j){let q=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;j=j.replace(q,(w,k)=>{return`const { ${k.split(",").map((n)=>n.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
|
|
3
3
|
`});let v=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return j=j.replace(v,(w,k)=>{return`const { ${k.split(",").map((n)=>n.trim()).filter(Boolean).join(", ")} } = window.__composables
|
|
4
4
|
`}),j}
|
|
5
|
-
export{z as
|
|
5
|
+
export{z as ut};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Xe as P,bf as v,df as d}from"./chunk-vw6ejgmy.js";import{jf as Z,kf as _,lf as E,mf as G}from"./chunk-75rndzbd.js";import{oB as z,pB as A,qB as R}from"./chunk-3jm3snz8.js";var H={};A(H,{isWorkboxEnabled:()=>V,getServiceWorkerFileName:()=>m,generateServiceWorkerAuto:()=>y,generateServiceWorker:()=>U});function U(j,F){let q=j.pwa;if(!q?.enabled)return"";let B=q.serviceWorker||{},X=q.routes||[],L=B.cacheVersion||"1.0.0",O=q.offline,Y=O?.page?"/offline.html":"/offline.html",Q=q.push,K=q.backgroundSync,T=q.cacheStorage,$=F?Z(F,j):null,W=$?_($):"[]",b=["/","/manifest.json",...O?.enabled?[Y]:[],...O?.precacheAssets||[]];return`/**
|
|
3
3
|
* Service Worker - Auto-generated by stx
|
|
4
4
|
* Cache Version: ${L}
|
|
5
5
|
*
|
|
@@ -1112,4 +1112,4 @@ self.addEventListener('message', (event) => {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
});
|
|
1114
1114
|
`}function S(j){return j.pwa?.enabled===!0&&j.pwa?.serviceWorker?.useWorkbox===!0}function u(j){if(S(j))return x;let{generateServiceWorker:F}=(J(),z(H));return F}var N=R(()=>{d();G()});
|
|
1115
|
-
export{M as
|
|
1115
|
+
export{M as Me,x as Ne,S as Oe,u as Pe,N as Qe,U as Re,m as Se,V as Te,y as Ue,J as Ve};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{vu as $}from"./chunk-tj6zfxeb.js";import{Au as Z,yu as Y}from"./chunk-7xcfy2fn.js";import{yw as X}from"./chunk-ywkrxp2h.js";function f(){return X({name:"img",hasEndTag:!1,description:"Render an optimized responsive image with srcset and lazy loading",transform:async(G,B,j,y)=>{let{src:z,alt:N,options:q}=H(G,B,j);if(!z)return console.warn("@img directive: missing src argument"),"<!-- @img: missing src -->";let J={src:z,alt:N||"",widths:q.widths||Y,formats:q.formats||Z,quality:q.quality,sizes:q.sizes,dpr:q.dpr,params:q.params,placeholder:q.placeholder,placeholderOptions:q.placeholderOptions,lazy:q.lazy!==!1,priority:q.priority||!1,loading:q.loading,decoding:q.decoding,fetchpriority:q.fetchpriority,objectFit:q.objectFit,objectPosition:q.objectPosition,class:q.class,style:q.style,id:q.id,width:q.width,height:q.height},w=j.__isDev||!1,K=await $(J,{isDev:w}),P=K.html;if(K.preloadLink)P=K.preloadLink+`
|
|
3
3
|
`+P;if(K.css)P+=`
|
|
4
4
|
<style>${K.css}</style>`;if(K.script)P+=`
|
|
5
5
|
<script>${K.script}</script>`;return P},defaults:{src:"",alt:"",options:{lazy:!0,placeholder:"none"}}})}function H(G,B,j){if(B.src)return{src:String(B.src),alt:String(B.alt||""),options:B.options||{}};let y=G.trim();if(y.startsWith("@img(")||y.startsWith("("))y=y.replace(/^@img\(/,"").replace(/^\(/,"").replace(/\)$/,"");let z=M(y),N=Q(z[0],j)||"",q=Q(z[1],j)||"",J={};if(z[2]){let w=Q(z[2],j);if(typeof w==="object"&&w!==null)J=w;else if(typeof z[2]==="string")try{J=JSON.parse(z[2])}catch{}}return{src:N,alt:q,options:J}}function M(G){let B=[],j="",y=!1,z="",N=0,q=0;for(let J=0;J<G.length;J++){let w=G[J],K=J>0?G[J-1]:"";if((w==='"'||w==="'"||w==="`")&&K!=="\\"){if(!y)y=!0,z=w;else if(w===z)y=!1,z="";else j+=w;continue}if(!y){if(w==="{")N++;if(w==="}")N--;if(w==="[")q++;if(w==="]")q--;if(w===","&&N===0&&q===0){B.push(j.trim()),j="";continue}}j+=w}if(j.trim())B.push(j.trim());return B}function Q(G,B){if(typeof G!=="string")return G;let j=G.trim();if(j.startsWith('"')&&j.endsWith('"')||j.startsWith("'")&&j.endsWith("'"))return j.slice(1,-1);if(!j.startsWith("/")&&!j.startsWith(".")&&!j.startsWith("http")&&!j.startsWith("{")){let y=B[j];if(y!==void 0)return y}if(j.startsWith("{")||j.startsWith("["))try{return JSON.parse(j)}catch{}return j}var L=f();
|
|
6
|
-
export{f as
|
|
6
|
+
export{f as tu,L as uu};
|
|
@@ -344,4 +344,4 @@ else {
|
|
|
344
344
|
|
|
345
345
|
console.log('[stx] Lifecycle runtime initialized');
|
|
346
346
|
})();
|
|
347
|
-
`}var J=new Map,F=[];function Y(q){return Symbol(q)}function y(q,z){(F.length>0?F[F.length-1]:J).set(q,z)}function I(q,z){for(let B=F.length-1;B>=0;B--){let E=F[B];if(E.has(q))return E.get(q)}if(J.has(q))return J.get(q);if(arguments.length>1)return z;console.warn(`[stx] Injection "${String(q)}" not found.`);return}function w(){F.push(new Map)}function D(){F.pop()}async function k(q){w();try{return await q()}finally{D()}}function p(){J.clear(),F.length=0}var l=Y("theme"),u=Y("router"),r=Y("i18n");export{A as
|
|
347
|
+
`}var J=new Map,F=[];function Y(q){return Symbol(q)}function y(q,z){(F.length>0?F[F.length-1]:J).set(q,z)}function I(q,z){for(let B=F.length-1;B>=0;B--){let E=F[B];if(E.has(q))return E.get(q)}if(J.has(q))return J.get(q);if(arguments.length>1)return z;console.warn(`[stx] Injection "${String(q)}" not found.`);return}function w(){F.push(new Map)}function D(){F.pop()}async function k(q){w();try{return await q()}finally{D()}}function p(){J.clear(),F.length=0}var l=Y("theme"),u=Y("router"),r=Y("i18n");export{A as Bz,$ as Cz,T as Dz,N as Ez,K as Fz,O as Gz,x as Hz,v as Iz,f as Jz,W as Kz,g as Lz,S as Mz,m as Nz,C as Oz,d as Pz,h as Qz,V as Rz,j as Sz,Y as Tz,y as Uz,I as Vz,w as Wz,D as Xz,k as Yz,p as Zz,l as _z,u as $z,r as aA};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{fe as J}from"./chunk-0qnz93q2.js";import{rB as N}from"./chunk-3jm3snz8.js";import O from"fs";import z from"path";async function Q(A={}){console.log(`
|
|
3
3
|
\uD83D\uDCD6 Previewing STX Story build...
|
|
4
4
|
`);let g=await J({mode:"build"}),B=z.resolve(g.root,g.config.outDir),K=z.join(B,"index.html");try{await O.promises.access(K)}catch{console.log(` \u274C No build found at ${g.config.outDir}`),console.log(` Run "stx story build" first.
|
|
5
5
|
`);return}let j=A.port??4173,L=Bun.serve({port:j,async fetch(k){let b=new URL(k.url).pathname;if(b==="/")b="/index.html";let G=z.join(B,b);try{let H=Bun.file(G);if(!await H.exists()){let M=`${G}.html`,I=Bun.file(M);if(await I.exists())return new Response(I);return new Response("Not found",{status:404})}return new Response(H)}catch{return new Response("Error",{status:500})}}});if(console.log(" \uD83D\uDCDA Preview server running at:"),console.log(` http://localhost:${j}
|
|
6
6
|
`),A.open)try{let{exec:k}=await import("child_process"),y=process.platform;k(`${y==="darwin"?"open":y==="win32"?"start":"xdg-open"} http://localhost:${j}`)}catch{}let E=()=>{console.log(`
|
|
7
7
|
Shutting down...`),L.stop(),process.exit(0)};process.on("SIGINT",E),process.on("SIGTERM",E),await new Promise(()=>{})}var W=Q;
|
|
8
|
-
export{Q as
|
|
8
|
+
export{Q as tb,W as ub};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{By as J}from"./chunk-ht4j68cs.js";import{Ly as K}from"./chunk-fch9tk1k.js";import{rB as I}from"./chunk-3jm3snz8.js";var V={isEnabled(){return J().enableAutoRecovery},fixCommonSyntaxErrors(j){let k=J();if(!k.enableAutoRecovery)return{fixed:j,fixes:[]};let q=j,z=[],A=(q.match(/\{\{/g)||[]).length,H=(q.match(/\}\}/g)||[]).length;if(A>H){let G=A-H;q+="}}".repeat(G),z.push(`Added ${G} missing closing braces '}}'`)}let F=["if","foreach","for","switch","section"];for(let G of F){let M=(q.match(new RegExp(`@${G}\\b`,"g"))||[]).length,N=(q.match(new RegExp(`@end${G}\\b`,"g"))||[]).length;if(M>N){let O=M-N;for(let Q=0;Q<O;Q++)q+=`
|
|
3
3
|
@end${G}`;z.push(`Added ${O} missing @end${G}`)}}if(z.length>0&&k.logRecoveryWarnings)console.warn("[stx] Auto-recovery applied fixes:"),z.forEach((G)=>console.warn(` - ${G}`)),console.warn(" Consider fixing these issues in your template.");return{fixed:q,fixes:z}},createFallbackContent(j,k){if(K())return`<!-- ${j} failed: ${k.message} -->`;return"<!-- stx rendering error -->"}};class R{errors=[];maxErrors;enableFileLogging;logFilePath;logFormat;maxFileSize;maxLogFiles;minLevel;writeQueue=Promise.resolve();constructor(j={}){this.maxErrors=j.maxErrors??1000,this.enableFileLogging=j.enableFileLogging??!1,this.logFilePath=j.logFilePath??".stx/errors.log",this.logFormat=j.logFormat??"json",this.maxFileSize=j.maxFileSize??10485760,this.maxLogFiles=j.maxLogFiles??5,this.minLevel=j.minLevel??"all"}configure(j){if(j.maxErrors!==void 0)this.maxErrors=j.maxErrors;if(j.enableFileLogging!==void 0)this.enableFileLogging=j.enableFileLogging;if(j.logFilePath!==void 0)this.logFilePath=j.logFilePath;if(j.logFormat!==void 0)this.logFormat=j.logFormat;if(j.maxFileSize!==void 0)this.maxFileSize=j.maxFileSize;if(j.maxLogFiles!==void 0)this.maxLogFiles=j.maxLogFiles;if(j.minLevel!==void 0)this.minLevel=j.minLevel}log(j,k,q="error"){let z={timestamp:new Date,error:j,context:k,level:q};if(this.errors.push(z),this.errors.length>this.maxErrors)this.errors=this.errors.slice(-this.maxErrors);if(this.enableFileLogging&&this.shouldLog(q))this.writeToFile(z)}shouldLog(j){if(this.minLevel==="all")return!0;if(this.minLevel==="warning")return j==="error"||j==="warning";if(this.minLevel==="error")return j==="error";return!0}formatEntry(j){if(this.logFormat==="json")return JSON.stringify({timestamp:j.timestamp.toISOString(),level:j.level||"error",type:j.error.constructor.name,message:j.error.message,stack:j.error.stack,context:j.context});let k=[`[${j.timestamp.toISOString()}] [${(j.level||"error").toUpperCase()}] ${j.error.constructor.name}: ${j.error.message}`];if(j.error.stack)k.push(` Stack: ${j.error.stack.split(`
|
|
4
4
|
`).slice(1).join(`
|
|
5
5
|
`)}`);if(j.context)k.push(` Context: ${JSON.stringify(j.context)}`);return k.join(`
|
|
@@ -8,4 +8,4 @@ import{nB as J}from"./chunk-pjaa8q7x.js";import{xB as K}from"./chunk-b0w1cm1s.js
|
|
|
8
8
|
|
|
9
9
|
`),"utf-8")}}async flush(){await this.writeQueue}}var W=new R,X={isDevelopment(){return K()},logDetailedError(j,k){if(!this.isDevelopment())return;if(console.error("=== stx Detailed Error ==="),console.error("Error:",j.message),console.error("Stack:",j.stack),k)console.error("Context:",k);console.error("========================")},createErrorReport(j,k){let q=["=== stx Error Report ===",`Time: ${new Date().toISOString()}`,`Error: ${j.message}`,`Type: ${j.constructor.name}`,`Stack: ${j.stack}`];if(k)q.push(`Context: ${JSON.stringify(k,null,2)}`);return q.push("========================"),q.join(`
|
|
10
10
|
`)}};
|
|
11
|
-
export{V as
|
|
11
|
+
export{V as wy,R as xy,W as yy,X as zy};
|
|
@@ -5,4 +5,4 @@ var P=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{nam
|
|
|
5
5
|
${F} [${U.join(`,
|
|
6
6
|
${F} `)}]`:"";return`Craft.create("${j.zigType}", ${Q}${W})`}function s(j,q,F){if(q.target==="universal"){let G=[];G.push("// Universal entry point"),G.push("");for(let[Q,U]of F)G.push(`// --- ${Q.toUpperCase()} ---`),G.push(`#if ${Q.toUpperCase()}`),G.push(U),G.push("#endif"),G.push("");return G.join(`
|
|
7
7
|
`)}return F.get(q.target)||J(j,q)}function r(j,q,F){let G=[];function Q(U){G.push({name:U.zigType,hash:D(JSON.stringify(U.props)),props:Object.keys(U.props),events:Array.from(U.events.keys()),slots:[],isNative:U.zigType.startsWith("craft.")});for(let W of U.children)Q(W)}return Q(q),{version:"1.0.0",components:G,entry:j.id,assets:[],styles:j.styles}}function p(j,q){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}var d=0;function E(){return`id_${++d}`}function D(j){let q=0;for(let F=0;F<j.length;F++){let G=j.charCodeAt(F);q=(q<<5)-q+G,q=q&q}return Math.abs(q).toString(36)}function l(j){return j.charAt(0).toUpperCase()+j.slice(1)}function i(j){let q=[],F=/<script[^>]*>([\s\S]*?)<\/script>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function a(j){let q=[],F=/<style[^>]*>([\s\S]*?)<\/style>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function B(j){let q=j.type==="component"?1:0;if(j.children)for(let F of j.children)q+=B(F);return q}function b(j){let q=j.zigType.startsWith("craft.")?1:0;for(let F of j.children)q+=b(F);return q}function o(j){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(q)=>{console.log(`[craft-compiler] File changed: ${q}`)}}}var t={compileToNative:k,createHotReloadServer:o,NATIVE_COMPONENTS:P},e=t;
|
|
8
|
-
export{P as
|
|
8
|
+
export{P as Co,k as Do,o as Eo,e as Fo};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function E(j,...A){for(let z of A){if(j.serverDynamic[z]!==void 0)return String(j.serverDynamic[z]);let w=j.static[z];if(typeof w==="string")return w}return}function G(j,A){let z=new RegExp(`<(template|div|span)[^>]*\\bslot=["']${A}["'][^>]*>([\\s\\S]*?)<\\/\\1>`,"i"),w=j.match(z);if(!w)return{region:null,rest:j};return{region:w[2],rest:j.replace(w[0],"")}}var L={name:"Suspense",aliases:["suspense"],render(j,A,z){let w=G(A,"fallback"),H=w.rest,B=G(H,"error"),I=B.rest,J=w.region??E(j,"fallback")??'<div class="stx-suspense-loading">Loading\u2026</div>',K=B.region??E(j,"errorFallback","error-fallback")??'<div class="stx-suspense-error">Something went wrong.</div>';return`<div data-stx-suspense><div data-stx-suspense-fallback>${J}</div><div data-stx-suspense-error hidden>${K}</div><div data-stx-suspense-content hidden>${I}</div></div>`}};
|
|
3
|
-
export{L as
|
|
3
|
+
export{L as az};
|
|
@@ -216,4 +216,4 @@ else {
|
|
|
216
216
|
color: white;
|
|
217
217
|
}
|
|
218
218
|
`.trim();return{html:J,script:L,css:M}}function P(q){return q.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}
|
|
219
|
-
export{Y as
|
|
219
|
+
export{Y as Hj,Z as Ij};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rB as q}from"./chunk-3jm3snz8.js";var D={strategy:"thumbhash",width:20,quality:50,blurLevel:40,transitionDuration:300,easing:"ease-out"},K=`
|
|
3
3
|
.stx-img-placeholder {
|
|
4
4
|
position: relative;
|
|
5
5
|
overflow: hidden;
|
|
@@ -48,4 +48,4 @@ import{jE as q}from"./chunk-6r70w54p.js";var D={strategy:"thumbhash",width:20,qu
|
|
|
48
48
|
opacity: 1;
|
|
49
49
|
}
|
|
50
50
|
`.trim()}function T(j){return`background-image: url('${j.dataURL}'); background-size: cover; background-position: center;`}var Q=new Map;async function _(j,f={}){let x=`${j}:${JSON.stringify(f)}`;if(Q.has(x))return Q.get(x);let z=await Z(j,f);return Q.set(x,z),z}function C(){Q.clear()}function u(){return{size:Q.size,keys:Array.from(Q.keys())}}
|
|
51
|
-
export{D as
|
|
51
|
+
export{D as Vu,K as Wu,Z as Xu,O as Yu,b as Zu,L as _u,y as $u,A as av,P as bv,T as cv,_ as dv,C as ev,u as fv};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rB as I}from"./chunk-3jm3snz8.js";import{createHash as v}from"crypto";import{existsSync as X,mkdirSync as H,readFileSync as $,writeFileSync as T,readdirSync as B,statSync as F}from"fs";import{basename as Y,dirname as W,extname as Z,join as V,relative as N}from"path";import{gzipSync as k}from"zlib";var D={outDir:"dist",publicPath:"/",sourcemaps:!0,minify:{js:!0,css:!0,html:!0,dropConsole:!0,dropDebugger:!0,mangle:!0},splitting:{vendor:!0,minSize:20000,maxSize:250000,chunkNames:"deterministic"},css:{extract:!0,minify:!0,filename:"assets/[name].[hash].css"},assets:{inlineLimit:4096,filename:"assets/[name].[hash][ext]",hash:!0,hashLength:8,include:["png","jpg","jpeg","gif","svg","webp","woff","woff2","ttf","eot"]},compression:{gzip:!0,brotli:!0,threshold:1024,deleteOriginal:!1}};class w{config;startTime=0;outputs=[];chunks=[];assets=[];warnings=[];errors=[];moduleGraph=new Map;assetHashes=new Map;constructor(E){this.config={...D,...E}}async build(){this.startTime=Date.now(),this.outputs=[],this.chunks=[],this.assets=[],this.warnings=[],this.errors=[];try{this.ensureDir(this.config.outDir),await this.runPluginHook("setup"),await this.runPluginHook("buildStart");let E=this.collectEntries();for(let[A,G]of E)await this.buildEntry(A,G);if(this.config.css?.extract)await this.extractCss();if(await this.processAssets(),this.config.splitting)await this.performCodeSplitting();if(this.config.minify)await this.minifyOutputs();if(this.config.sourcemaps)await this.generateSourceMaps();if(await this.fingerprintAssets(),this.config.compression)await this.compressOutputs();if(this.config.analyze)await this.analyzeBundle();let q=this.getResult();return await this.runPluginHook("buildEnd",q),q}catch(E){return this.errors.push(String(E)),this.getResult()}}collectEntries(){let E=new Map,{entry:q}=this.config;if(typeof q==="string")E.set("main",q);else if(Array.isArray(q))q.forEach((A,G)=>{let J=Y(A,Z(A));E.set(J,A)});else if(typeof q==="object")Object.entries(q).forEach(([A,G])=>{E.set(A,G)});return E}async buildEntry(E,q){if(!await Bun.file(q).exists()){this.errors.push(`Entry point not found: ${q}`);return}let A=await Bun.file(q).text(),G=Z(q),J=A,L="js";if(G===".stx"||G===".html")L="html",J=await this.processTemplate(A,q);else if(G===".css")L="css",J=await this.processCss(A,q);else if(G===".js"||G===".ts")L="js",J=await this.processScript(A,q);J=await this.runPluginTransform(J,q);let K=this.generateHash(J),Q=this.getOutputName(E,L,K),R=V(this.config.outDir,Q);this.ensureDir(W(R)),await Bun.write(R,J),this.outputs.push({path:R,type:L,size:Buffer.byteLength(J),hash:K,sources:[q],isEntry:!0})}resolveRelativePath(E,q){if(q.startsWith("/"))return V(W(E),"..",q);return V(W(E),q)}async processTemplate(E,q){let A=E,G=[],J=[];if(A=A.replace(/<script\b([^>]*)\bstx-inline\b([^>]*)(?:><\/script>|><\/script>|\/>)/gi,(L,K,Q)=>{let R=(K+Q).match(/src=["']([^"']+)["']/);if(R){let U=this.resolveRelativePath(q,R[1]);if(X(U)){let _=$(U,"utf-8");G.push(`// Source: ${R[1]}
|
|
3
3
|
${_}`)}else this.warnings.push(`External script not found: ${U}`)}return""}),A=A.replace(/<link\b([^>]*)\bstx-inline\b([^>]*)(?:\/>|>)/gi,(L,K,Q)=>{let R=(K+Q).match(/href=["']([^"']+)["']/);if(R){let U=this.resolveRelativePath(q,R[1]);if(X(U)){let _=$(U,"utf-8");J.push(`/* Source: ${R[1]} */
|
|
4
4
|
${_}`)}else this.warnings.push(`External stylesheet not found: ${U}`)}return""}),A=A.replace(/<script\b(?![^>]*\bstx-inline\b)([^>]*)>([\s\S]*?)<\/script>/gi,(L,K,Q)=>{if(/\bsrc=/.test(K))return L;if(Q.trim())G.push(Q);return""}),A=A.replace(/<style\b[^>]*>([\s\S]*?)<\/style>/gi,(L,K)=>{if(K.trim())J.push(K);return""}),G.length>0){let L=G.join(`
|
|
5
5
|
|
|
@@ -50,4 +50,4 @@ ${_}`)}else this.warnings.push(`External stylesheet not found: ${U}`)}return""})
|
|
|
50
50
|
</body>
|
|
51
51
|
</html>`}generateAnalysisText(E){let q=["Bundle Analysis","=".repeat(50),""];for(let A of E.outputs)q.push(`${A.path}`),q.push(` Size: ${A.sizeFormatted}${A.gzipSizeFormatted?` (gzip: ${A.gzipSizeFormatted})`:""}`),q.push("");return q.push("=".repeat(50)),q.push(`Total: ${this.formatSize(E.totalSize)} (gzip: ${this.formatSize(E.totalGzipSize)})`),q.join(`
|
|
52
52
|
`)}async runPluginHook(E,q){if(!this.config.plugins)return;for(let A of this.config.plugins){let G=A[E];if(typeof G==="function")await G.call(A,q||this)}}async runPluginTransform(E,q){if(!this.config.plugins)return E;let A=E;for(let G of this.config.plugins)if(G.transform){let J=await G.transform(A,q);if(J!=null)A=J}return A}generateHash(E){return v("sha256").update(E).digest("hex")}getOutputName(E,q,A){let G=q==="html"?".html":q==="css"?".css":q==="js"?".js":"";return`${E}.${A.slice(0,8)}${G}`}formatSize(E){if(E<1024)return`${E} B`;if(E<1048576)return`${(E/1024).toFixed(2)} KB`;return`${(E/1048576).toFixed(2)} MB`}ensureDir(E){if(!X(E))H(E,{recursive:!0})}walkDir(E,q){if(!X(E))return;let A=B(E,{withFileTypes:!0});for(let G of A){let J=V(E,G.name);if(G.isDirectory())this.walkDir(J,q);else q(J)}}getResult(){let E=Date.now()-this.startTime,q=this.outputs.reduce((G,J)=>G+J.size,0),A=this.outputs.reduce((G,J)=>G+(J.gzipSize||0),0);return{outputs:this.outputs,duration:E,totalSize:q,gzipSize:A,chunks:this.chunks,assets:this.assets,warnings:this.warnings,errors:this.errors}}}async function C(E){return new w(E).build()}function S(E){return new w(E)}function g(E){return{...D,...E}}
|
|
53
|
-
export{w as
|
|
53
|
+
export{w as xi,C as yi,S as zi,g as Ai};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ep as K}from"./chunk-g8b81pzc.js";var W={default:{js:"#f7df1e",css:"#264de4",html:"#e34c26",image:"#4caf50",font:"#9c27b0",other:"#607d8b",vendor:"#ff5722"},pastel:{js:"#fff3b0",css:"#b0d4ff",html:"#ffb0b0",image:"#b0ffb0",font:"#e0b0ff",other:"#d0d0d0",vendor:"#ffcfb0"},monochrome:{js:"#333333",css:"#555555",html:"#777777",image:"#999999",font:"#bbbbbb",other:"#dddddd",vendor:"#444444"}};function w(q,v={}){let{title:x="Bundle Analysis",gzip:A=!0,colorScheme:I="default"}=v,F=W[I],J=X(q),G=JSON.stringify(J);return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -495,4 +495,4 @@ import{xs as K}from"./chunk-qr72av66.js";var W={default:{js:"#f7df1e",css:"#264d
|
|
|
495
495
|
</script>
|
|
496
496
|
</body>
|
|
497
497
|
</html>`}function X(q){let v={name:"root",size:q.totalSize,gzipSize:q.totalGzipSize,children:[]};for(let x of q.chunks){let A={name:x.name,size:x.size,gzipSize:x.gzipSize,children:[]};for(let I of x.modules)Y(A,I);v.children.push(A)}return v}function Y(q,v){let x=v.path.split("/"),A=q;for(let F=0;F<x.length-1;F++){let J=x[F],G=A.children?.find((V)=>V.name===J);if(!G){if(G={name:J,size:0,gzipSize:0,children:[]},!A.children)A.children=[];A.children.push(G)}A=G}let I=x[x.length-1];if(!A.children)A.children=[];A.children.push({name:I,path:v.path,size:v.size,gzipSize:v.gzipSize,type:v.type}),Z(q,v.size,v.gzipSize)}function Z(q,v,x){}function Q(q){return q.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function U(q){let v=process.platform,x=v==="darwin"?"open":v==="win32"?"start":"xdg-open";Bun.spawn([x,q],{stdio:["ignore","ignore","ignore"]})}
|
|
498
|
-
export{w as
|
|
498
|
+
export{w as Bp,U as Cp};
|
|
@@ -42,4 +42,4 @@ catch (e) {
|
|
|
42
42
|
return result;
|
|
43
43
|
// eslint-disable-next-line pickier/no-unused-vars
|
|
44
44
|
`)}
|
|
45
|
-
export{g as
|
|
45
|
+
export{g as mz,C as nz,b as oz,z as pz,T as qz,P as rz,y as sz,E as tz,m as uz,u as vz,f as wz,h as xz,l as yz,S as zz,d as Az};
|
|
@@ -289,4 +289,4 @@ else {
|
|
|
289
289
|
pointer-events: none;
|
|
290
290
|
}
|
|
291
291
|
`.trim();return{html:X,script:Y,css:Z}}function M(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function _(j){return j.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'")}function $(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;return`${(j/1048576).toFixed(1)} MB`}
|
|
292
|
-
export{g as
|
|
292
|
+
export{g as uj};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Md as $}from"./chunk-svhtdb0s.js";import Y from"fs";import X from"path";async function V(q){let{componentsDir:A,outputDir:K=A,include:R=["**/*.stx"],exclude:M=["**/*.story.stx","**/node_modules/**"],generateVariants:O=!0,includeDefaults:Q=!0,overwrite:J=!1}=q,T=[],j=await w(A,R,M);for(let H of j){let U=H.replace(/\.stx$/,".story.stx"),W=await z(U);if(W&&!J){T.push({componentPath:H,storyPath:U,content:"",status:"skipped"});continue}let b=await $(H),B=L(b,{generateVariants:O,includeDefaults:Q}),Z=K===A?U:X.join(K,X.basename(U));await Y.promises.mkdir(X.dirname(Z),{recursive:!0}),await Y.promises.writeFile(Z,B),T.push({componentPath:H,storyPath:Z,content:B,status:W?"updated":"created"})}return T}function L(q,A={}){let{generateVariants:K=!0,includeDefaults:R=!0}=A,M=[],O={};if(R){for(let j of q.props)if(j.default!==void 0)O[j.name]=j.default}if(M.push({id:"default",title:"Default",state:O}),K){for(let j of q.props)if(j.type==="boolean")M.push({id:`${j.name}-true`,title:`${_(j.name)} (true)`,state:{...O,[j.name]:!0}}),M.push({id:`${j.name}-false`,title:`${_(j.name)} (false)`,state:{...O,[j.name]:!1}});for(let j of q.props)if(j.options&&j.options.length>0)for(let H of j.options)M.push({id:`${j.name}-${H}`,title:`${_(j.name)}: ${H}`,state:{...O,[j.name]:H}})}let Q=q.name,J=q.description||`Stories for ${Q} component`,T=M.map((j)=>{let H=Object.entries(j.state).map(([U,W])=>{if(typeof W==="string")return`${U}="${W}"`;return`:${U}="${JSON.stringify(W)}"`}).join(" ");return`
|
|
3
3
|
@story('${j.title}')
|
|
4
4
|
<${Q} ${H} />
|
|
5
5
|
@endstory`}).join(`
|
|
@@ -21,4 +21,4 @@ const meta = {
|
|
|
21
21
|
${T}
|
|
22
22
|
`}async function C(q,A={}){let K=await $(q);return L(K,A)}async function w(q,A,K){let R=[];async function M(O){let Q=await Y.promises.readdir(O,{withFileTypes:!0});for(let J of Q){let T=X.join(O,J.name),j=X.relative(q,T);if(K.some((H)=>I(j,H)))continue;if(J.isDirectory())await M(T);else if(J.isFile()){if(A.some((H)=>I(j,H)))R.push(T)}}}return await M(q),R}function I(q,A){let K=A.replace(/\*\*/g,"{{GLOBSTAR}}").replace(/\*/g,"[^/]*").replace(/\?/g,".").replace(/\{\{GLOBSTAR\}\}/g,".*");return new RegExp(`^${K}$`).test(q)}async function z(q){try{return await Y.promises.access(q),!0}catch{return!1}}function _(q){return q.replace(/([A-Z])/g," $1").replace(/^./,(A)=>A.toUpperCase()).trim()}async function x(q){let A=q[0]||"./src/components",K=q[1]||A;console.log(`Scanning for components in ${A}...`);let R=await V({componentsDir:A,outputDir:K,generateVariants:!0,includeDefaults:!0}),M=R.filter((J)=>J.status==="created").length,O=R.filter((J)=>J.status==="updated").length,Q=R.filter((J)=>J.status==="skipped").length;console.log(`
|
|
23
23
|
Results:`),console.log(` Created: ${M}`),console.log(` Updated: ${O}`),console.log(` Skipped: ${Q}`),console.log(` Total: ${R.length}`)}
|
|
24
|
-
export{V as
|
|
24
|
+
export{V as Id,L as Jd,C as Kd,x as Ld};
|
|
@@ -106,4 +106,4 @@ else {
|
|
|
106
106
|
})();
|
|
107
107
|
</script>`}function x(q){let j=_(q);if(j.length===0)return{template:q,bindings:[]};let F=q,z=[];for(let J=j.length-1;J>=0;J--){let G=j[J],$=G.originalTag;if(!$.includes(" id="))$=$.replace(/^<([a-z][a-z0-9-]*)/,`<$1 id="${G.elementId}"`);else{let X=$.match(/id=["']([^"']+)["']/);if(X)for(let D of G.events)D.elementId=X[1]}for(let X of G.events){let D=X.attribute.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),V=new RegExp(`\\s*${D}\\s*=\\s*"[^"]*"`,"g"),Z=new RegExp(`\\s*${D}\\s*=\\s*'[^']*'`,"g");$=$.replace(V,""),$=$.replace(Z,"")}F=F.slice(0,G.startIndex)+$+F.slice(G.endIndex),z.push(...G.events)}return{template:F,bindings:z}}function S(q,j,F){if(/\b(?:state|derived|effect)\s*(?:<[^<>()]*>)?\s*\(/.test(q)||/@(?:model|show|for|if)\s*=/.test(q)||/data-stx(?:-auto)?(?![-\w])/.test(q))return q;if(j.__stx_sfc_mode){if(/x-data\s*=\s*["']/.test(q))return q;let{template:D,bindings:V}=x(q),Z=j.__stx_event_bindings||[];return j.__stx_event_bindings=[...Z,...V],D}let J=_(q);if(J.length===0)return q;let G=q;for(let D=J.length-1;D>=0;D--){let V=J[D],Z=V.originalTag;if(!Z.includes(" id="))Z=Z.replace(/^<([a-z][a-z0-9-]*)/,`<$1 id="${V.elementId}"`);else{let K=Z.match(/id=["']([^"']+)["']/);if(K)for(let L of V.events)L.elementId=K[1]}for(let K of V.events){let L=K.attribute.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),B=new RegExp(`\\s*${L}\\s*=\\s*"[^"]*"`,"g"),Y=new RegExp(`\\s*${L}\\s*=\\s*'[^']*'`,"g");Z=Z.replace(B,""),Z=Z.replace(Y,"")}G=G.slice(0,V.startIndex)+Z+G.slice(V.endIndex)}let $=k(J),X=G.lastIndexOf("</body>");if(X!==-1)G=G.slice(0,X)+$+`
|
|
108
108
|
`+G.slice(X);else G+=$;return G}function E(q){return/@[a-z]+(?:\.[a-z]+)*\s*=\s*["'][^"']*["']/i.test(q)}
|
|
109
|
-
export{x as
|
|
109
|
+
export{x as Lv,S as Mv,E as Nv};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import W from"process";function X(){if(typeof globalThis<"u"&&"caches"in globalThis&&"CF"in globalThis)return{platform:"cloudflare",supportsStreaming:!0,supportsCrypto:!0,supportsKV:!0,supportsCache:!0,capabilities:["kv","r2","d1","durable-objects","queues"]};if(typeof globalThis<"u"&&"Deno"in globalThis)return{platform:"deno",version:globalThis.Deno.version?.deno,supportsStreaming:!0,supportsCrypto:!0,supportsKV:!0,supportsCache:!0,capabilities:["kv","deploy","ffi"]};if(typeof globalThis<"u"&&"Bun"in globalThis)return{platform:"bun",version:globalThis.Bun.version,supportsStreaming:!0,supportsCrypto:!0,supportsKV:!1,supportsCache:!1,capabilities:["sqlite","ffi","native-modules"]};if(typeof globalThis<"u"&&"EdgeRuntime"in globalThis)return{platform:"vercel",supportsStreaming:!0,supportsCrypto:!0,supportsKV:!0,supportsCache:!0,capabilities:["edge-config","blob"]};if(typeof globalThis<"u"&&"Netlify"in globalThis)return{platform:"netlify",supportsStreaming:!0,supportsCrypto:!0,supportsKV:!0,supportsCache:!1,capabilities:["blobs","edge-functions"]};if(typeof globalThis<"u"&&"fastly"in globalThis)return{platform:"fastly",supportsStreaming:!0,supportsCrypto:!0,supportsKV:!0,supportsCache:!0,capabilities:["dictionary","backend","geolocation"]};if(W.versions?.node)return{platform:"node",version:W.versions.node,supportsStreaming:!0,supportsCrypto:!0,supportsKV:!1,supportsCache:!1,capabilities:["fs","child-process","native-modules"]};return{platform:"unknown",supportsStreaming:!1,supportsCrypto:!1,supportsKV:!1,supportsCache:!1,capabilities:[]}}function K(){let j=X();return["cloudflare","deno","vercel","netlify","fastly"].includes(j.platform)}function V(){return X().platform!=="unknown"}function $(j){return{get(z){if(j&&z in j){let b=j[z];return typeof b==="string"?b:void 0}if(typeof globalThis<"u"&&"Deno"in globalThis)return globalThis.Deno.env.get(z);if(W.env)return W.env[z];return},getOrThrow(z){let b=this.get(z);if(b===void 0)throw Error(`Environment variable "${z}" is not set`);return b},has(z){return this.get(z)!==void 0},all(){let z={};if(j){for(let[b,B]of Object.entries(j))if(typeof B==="string")z[b]=B}if(typeof globalThis<"u"&&"Deno"in globalThis){let b=globalThis.Deno.env.toObject();Object.assign(z,b)}if(W.env){for(let[b,B]of Object.entries(W.env))if(B!==void 0)z[b]=B}return z}}}function D(j){let z=X();if(z.platform==="cloudflare"&&j)return j;if(z.platform==="deno"&&"Deno"in globalThis)return G();if(z.platform==="node"||z.platform==="bun")return N();return}function G(){let j=null,z=async()=>{if(!j)j=await globalThis.Deno.openKv();return j};return{async get(b){return(await(await z()).get(["stx",b])).value},async getWithMetadata(b){let B=await z(),F=await B.get(["stx",b]),J=await B.get(["stx-meta",b]);return{value:F.value,metadata:J.value}},async put(b,B,F){let J=await z(),L=F?.expirationTtl?F.expirationTtl*1000:void 0;if(await J.set(["stx",b],B,L?{expireIn:L}:void 0),F?.metadata)await J.set(["stx-meta",b],F.metadata,L?{expireIn:L}:void 0)},async delete(b){let B=await z();await B.delete(["stx",b]),await B.delete(["stx-meta",b])},async list(b){let B=await z(),F=b?.prefix?["stx",b.prefix]:["stx"],J=B.list({prefix:F,limit:b?.limit||100}),L=[];for await(let O of J){let S=O.key.slice(1).join("/");if(!S.startsWith("stx-meta/"))L.push({name:S})}return{keys:L,list_complete:!0}}}}function N(){let j=new Map,z=()=>{let b=Date.now();for(let[B,F]of j.entries())if(F.expiration&&F.expiration<b)j.delete(B)};return{async get(b){z();let B=j.get(b);if(!B)return null;if(B.expiration&&B.expiration<Date.now())return j.delete(b),null;return B.value},async getWithMetadata(b){z();let B=j.get(b);if(!B)return{value:null,metadata:null};if(B.expiration&&B.expiration<Date.now())return j.delete(b),{value:null,metadata:null};return{value:B.value,metadata:B.metadata||null}},async put(b,B,F){let J=F?.expiration?F.expiration*1000:F?.expirationTtl?Date.now()+F.expirationTtl*1000:void 0;j.set(b,{value:B,metadata:F?.metadata,expiration:J})},async delete(b){j.delete(b)},async list(b){z();let B=[];for(let[F,J]of j.entries()){if(b?.prefix&&!F.startsWith(b.prefix))continue;if(B.push({name:F,expiration:J.expiration,metadata:J.metadata}),b?.limit&&B.length>=b.limit)break}return{keys:B,list_complete:!0}}}}function T(){let j=X();if(j.platform==="cloudflare"&&"caches"in globalThis)return M();if(j.supportsStreaming)return A();return}function M(){return{async match(j){return(await caches.default).match(j)},async put(j,z){await(await caches.default).put(j,z.clone())},async delete(j){return(await caches.default).delete(j)}}}function A(){let j=new Map,z=60000;return{async match(b){let B=b.url,F=j.get(B);if(!F)return;if(Date.now()>F.expiration){j.delete(B);return}return F.response.clone()},async put(b,B){let F=b.url,J=B.headers.get("Cache-Control"),L=60000;if(J){let O=J.match(/max-age=(\d+)/);if(O)L=Number.parseInt(O[1],10)*1000}j.set(F,{response:B.clone(),expiration:Date.now()+L})},async delete(b){return j.delete(b.url)}}}function w(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,9)}`}function P(j,z){if(z.platform==="cloudflare"){let b=j.cf;if(b)return{city:b.city,country:b.country,countryCode:b.country,region:b.region,latitude:b.latitude?Number.parseFloat(b.latitude):void 0,longitude:b.longitude?Number.parseFloat(b.longitude):void 0,timezone:b.timezone}}if(z.platform==="vercel"){let b={},B=j.headers.get("x-vercel-ip-city"),F=j.headers.get("x-vercel-ip-country"),J=j.headers.get("x-vercel-ip-country-region"),L=j.headers.get("x-vercel-ip-latitude"),O=j.headers.get("x-vercel-ip-longitude");if(B)b.city=decodeURIComponent(B);if(F)b.countryCode=F;if(J)b.region=J;if(L)b.latitude=Number.parseFloat(L);if(O)b.longitude=Number.parseFloat(O);return Object.keys(b).length>0?b:void 0}if(z.platform==="netlify"){let b={},B=j.headers.get("x-nf-geo-city"),F=j.headers.get("x-nf-geo-country");if(B)b.city=B;if(F)b.countryCode=F;return Object.keys(b).length>0?b:void 0}return}function Z(j,z,b){let B=new Headers(j.headers);if(z.origins==="*")B.set("Access-Control-Allow-Origin","*");else if(z.origins&&b&&z.origins.includes(b))B.set("Access-Control-Allow-Origin",b),B.set("Vary","Origin");if(z.methods)B.set("Access-Control-Allow-Methods",z.methods.join(", "));if(z.headers)B.set("Access-Control-Allow-Headers",z.headers.join(", "));if(z.exposeHeaders)B.set("Access-Control-Expose-Headers",z.exposeHeaders.join(", "));if(z.credentials)B.set("Access-Control-Allow-Credentials","true");if(z.maxAge)B.set("Access-Control-Max-Age",String(z.maxAge));return new Response(j.body,{status:j.status,statusText:j.statusText,headers:B})}function Y(j){let z=X();return async(b,B)=>{let F=performance.now(),J=w(),L={runtime:z,platform:B||{},requestId:J,geo:P(b,z),timing:{start:F,getElapsed:()=>performance.now()-F},kv:D(B?.KV),cache:T(),env:$(B?.env)};try{if(b.method==="OPTIONS"&&j.cors){let Q=new Response(null,{status:204});return Q=Z(Q,j.cors,b.headers.get("Origin")||void 0),Q}if(j.cache?.enabled&&b.method==="GET"&&L.cache){if(_(b,j.cache)){let S=await L.cache.match(b);if(S){let U=new Response(S.body,S);return U.headers.set("X-Cache","HIT"),U.headers.set("X-Request-Id",J),j.cors?Z(U,j.cors,b.headers.get("Origin")||void 0):U}}}let O;if(j.middleware&&j.middleware.length>0)O=await H(b,L,j.middleware,async()=>{let Q=await j.render(b,L);return typeof Q==="string"?new Response(Q,{headers:{"Content-Type":"text/html; charset=utf-8"}}):Q});else{let Q=await j.render(b,L);O=typeof Q==="string"?new Response(Q,{headers:{"Content-Type":"text/html; charset=utf-8"}}):Q}if(O.headers.set("X-Request-Id",J),O.headers.set("X-Response-Time",`${L.timing.getElapsed().toFixed(2)}ms`),j.cache?.enabled&&b.method==="GET"&&L.cache){if(_(b,j.cache)&&O.status===200){let S=j.cache.ttl||60,U=O.clone();U.headers.set("Cache-Control",`public, max-age=${S}`),await L.cache.put(b,U),O.headers.set("X-Cache","MISS")}}if(j.cors)O=Z(O,j.cors,b.headers.get("Origin")||void 0);return O}catch(O){let Q=O instanceof Error?O:Error(String(O));if(j.onError)return j.onError(Q,b);return new Response(`Internal Server Error: ${Q.message}`,{status:500,headers:{"Content-Type":"text/plain","X-Request-Id":J}})}}}function _(j,z){let B=new URL(j.url).pathname;if(z.excludePaths){for(let F of z.excludePaths)if(F.test(B))return!1}if(z.includePaths){for(let F of z.includePaths)if(F.test(B))return!0;return!1}return!0}async function H(j,z,b,B){let F=0,J=async()=>{if(F>=b.length)return B();let L=b[F];return F++,L(j,z,J)};return J()}function C(j,z){let b=new Headers(z?.headers);return b.set("Content-Type","text/html; charset=utf-8"),b.set("Transfer-Encoding","chunked"),new Response(j,{...z,headers:b})}function I(){let j=new TextEncoder;return new TransformStream({transform(z,b){b.enqueue(j.encode(z))}})}function E(j){let z=new TextEncoder;return new ReadableStream({async start(b){for await(let B of j)b.enqueue(z.encode(B));b.close()}})}function x(j){let z=Y(j);return{async fetch(b,B,F){return z(b,{env:B,ctx:F,KV:B.KV})}}}function v(j){let z=Y(j);return(b)=>z(b,{})}function h(j){let z=Y(j);return(b)=>z(b,{})}function m(j){let z=Y(j);return(b,B)=>{return z(b,{netlifyContext:B})}}function y(j){let z=j.headers.get("Cookie");if(!z)return{};let b={};for(let B of z.split(";")){let[F,J]=B.split("=").map((L)=>L.trim());if(F&&J)b[F]=decodeURIComponent(J)}return b}function k(j,z,b){let B=`${encodeURIComponent(j)}=${encodeURIComponent(z)}`;if(b?.maxAge!==void 0)B+=`; Max-Age=${b.maxAge}`;if(b?.expires)B+=`; Expires=${b.expires.toUTCString()}`;if(b?.path)B+=`; Path=${b.path}`;if(b?.domain)B+=`; Domain=${b.domain}`;if(b?.secure)B+="; Secure";if(b?.httpOnly)B+="; HttpOnly";if(b?.sameSite)B+=`; SameSite=${b.sameSite}`;return B}function q(j,z){let b=new Headers(z?.headers);return b.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(j),{...z,headers:b})}function d(j,z=302){return new Response(null,{status:z,headers:{Location:j}})}function l(j="Not Found"){return new Response(j,{status:404,headers:{"Content-Type":"text/plain"}})}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as pn,K as qn,V as rn,$ as sn,D as tn,T as un,Y as vn,C as wn,I as xn,E as yn,x as zn,v as An,h as Bn,m as Cn,y as Dn,k as En,q as Fn,d as Gn,l as Hn};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import{existsSync as q,readFileSync as H}from"fs";import{join as T,resolve as Y}from"path";import z from"process";function A(C,E=z.cwd()){let B=C.i18n;if(!B||!Array.isArray(B.locales)||B.locales.length===0)return null;let I=B.defaultLocale??B.locales[0],D=U(B,E);return{locales:B.locales,defaultLocale:I,labels:B.labels??Object.fromEntries(B.locales.map((G)=>[G,G.toUpperCase()])),translations:D,pickerSelector:B.pickerSelector??"#lang-picker"}}function U(C,E){let B=C.translations??{},I={},D=C.translationsDir,G=D===!1?null:Y(E,typeof D==="string"&&D?D:"translations"),J=C.format??"json";for(let M of C.locales){let N=G?K(G,M,J):{};I[M]={...N,...B[M]??{}}}return I}function K(C,E,B){let I=B==="json"?[`${E}.json`]:[`${E}.${B}`,`${E}.${B==="yaml"?"yml":"yaml"}`];for(let D of I){let G=T(C,D);if(!q(G))continue;try{let J=H(G,"utf8"),M=B==="json"?JSON.parse(J):O(J);return _(M)}catch{continue}}return{}}function _(C,E="",B={}){if(!C||typeof C!=="object")return B;for(let[I,D]of Object.entries(C)){let G=E?`${E}.${I}`:I;if(D&&typeof D==="object"&&!Array.isArray(D))_(D,G,B);else if(typeof D==="string")B[G]=D;else if(typeof D==="number"||typeof D==="boolean")B[G]=String(D)}return B}function O(C){let E={},B=[{obj:E,indent:-1}];for(let I of C.split(`
|
|
3
3
|
`)){let D=I.replace(/#.*$/,"").trimEnd();if(!D.trim())continue;let G=D.search(/\S/);if(G===-1)continue;while(B.length>1&&B[B.length-1].indent>=G)B.pop();let J=B[B.length-1].obj,M=D.match(/^(\s*)(\S[^:]*):\s*(.*)$/);if(!M)continue;let[,,N,$]=M,Q=N.trim(),X=$.trim();if(X==="")J[Q]={},B.push({obj:J[Q],indent:G});else J[Q]=V(X)}return E}function V(C){if(C.startsWith("'")&&C.endsWith("'")||C.startsWith('"')&&C.endsWith('"'))return C.slice(1,-1);return C}function F(C,E,B){let I=C.translations[E]?.[B];if(typeof I==="string")return I;let D=C.translations[C.defaultLocale]?.[B];if(typeof D==="string")return D;return B}function L(C,E,B){return C.replace(/\{t(!?):([a-zA-Z][\w.-]*)\}/g,(I,D,G)=>{let J=F(E,B,G);return D==="!"?J:R(J)})}function Z(C,E,B){if(E===B)return C;if(C==="/")return`/${E}/`;if(C==="/404.html")return`/${E}/404.html`;return`/${E}${C}`}function P(C,E){for(let B of E){if(C===`/${B}`||C===`/${B}/`)return{locale:B,path:"/"};if(C.startsWith(`/${B}/`))return{locale:B,path:C.slice(B.length+1)}}return{locale:null,path:C}}function w(C,E,B){let I=C.replace(/\/$/,""),D=[];for(let J of B.locales){let M=`${I}${Z(E,J,B.defaultLocale)}`;D.push(`<link rel="alternate" hreflang="${W(J)}" href="${W(M)}">`)}let G=`${I}${Z(E,B.defaultLocale,B.defaultLocale)}`;return D.push(`<link rel="alternate" hreflang="x-default" href="${W(G)}">`),D.join(`
|
|
4
4
|
`)}function j(C,E){return`<script data-stx-lang-picker="1">window.__stxI18n=${JSON.stringify({locales:C.locales,defaultLocale:C.defaultLocale,current:E,pickerSelector:C.pickerSelector})};(function(){function cfg(){return window.__stxI18n}function localeFromPath(p){var d=cfg();for(var i=0;i<d.locales.length;i++){var c=d.locales[i];if(p==='/'+c||p==='/'+c+'/')return c;if(p.indexOf('/'+c+'/')===0)return c}return d.defaultLocale}function localePathFor(loc,p){var d=cfg();var stripped=p;for(var i=0;i<d.locales.length;i++){var c=d.locales[i];if(p==='/'+c||p==='/'+c+'/'){stripped='/';break}if(p.indexOf('/'+c+'/')===0){stripped=p.slice(c.length+1);break}}if(loc===d.defaultLocale)return stripped;if(stripped==='/')return '/'+loc+'/';return '/'+loc+stripped}cfg().localizeHref=function(href){try{var u=new URL(href,location.origin);if(u.origin!==location.origin)return href;return localePathFor(localeFromPath(location.pathname),u.pathname)+(u.search||'')+(u.hash||'')}catch(_){return href}};function syncFromUrl(){var d=cfg();var loc=localeFromPath(location.pathname);d.current=loc;var picker=document.querySelector(d.pickerSelector);if(picker){var btns=picker.querySelectorAll('[data-lang]');for(var i=0;i<btns.length;i++){var b=btns[i];if(b.getAttribute('data-lang')===loc)b.setAttribute('aria-current','true');else b.removeAttribute('aria-current')}}if(document.documentElement.lang!==loc)document.documentElement.lang=loc}function onLangClick(e){var d=cfg();var btn=e.target&&e.target.closest&&e.target.closest('[data-lang]');if(!btn)return;var picker=document.querySelector(d.pickerSelector);if(!picker||!picker.contains(btn))return;e.preventDefault();e.stopPropagation();var loc=btn.getAttribute('data-lang');if(!loc||loc===localeFromPath(location.pathname))return;var dest=localePathFor(loc,location.pathname);var r=window.__stxRouter;if(r&&r.navigate)r.navigate(dest,true,true);else location.assign(dest)}syncFromUrl();if(window.__stxLangPickerBound){document.removeEventListener('click',window.__stxLangPickerClick,true);window.removeEventListener('stx:navigate',window.__stxLangPickerSync);window.removeEventListener('popstate',window.__stxLangPickerSync)}window.__stxLangPickerClick=onLangClick;window.__stxLangPickerSync=syncFromUrl;window.__stxLangPickerBound=1;document.addEventListener('click',onLangClick,true);window.addEventListener('stx:navigate',syncFromUrl);window.addEventListener('popstate',syncFromUrl)})();</script>`}function W(C){return C.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function R(C){return C.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as Xg,F as Yg,L as Zg,Z as _g,P as $g,w as ah,j as bh};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ho as b,Jo as v}from"./chunk-268adc7r.js";import{_o as V}from"./chunk-5p568px4.js";import{rB as z}from"./chunk-3jm3snz8.js";import{existsSync as y,mkdirSync as _,copyFileSync as O,chmodSync as A}from"fs";import{join as H,basename as P}from"path";import{spawn as R,execSync as d}from"child_process";import{tmpdir as S,homedir as B,platform as N}from"os";async function D(K){let Q=Date.now();try{if(!await Bun.file(K.input).exists())return{success:!1,target:K.target||I(),format:K.format||"app",error:`Input file not found: ${K.input}`};let J=K.target||I(),$=K.format||f(J),U=K.output||H(process.cwd(),"dist","native");if(!y(U))_(U,{recursive:!0});let q=await Bun.file(K.input).text();if(q=V(q,{debug:K.verbose}),q=v(q),!q.includes("craft-component-styles")){if(q.includes("</head>"))q=q.replace("</head>",`${b}
|
|
3
3
|
</head>`)}let X=K.name||P(K.input,".stx"),Y=K.version||"1.0.0",Z=K.craftPath||await m();if(!Z)return{success:!1,target:J,format:$,error:"Craft binary not found. Please install Craft or specify craftPath."};if(K.verbose)console.log(`\uD83D\uDCE6 Building native app for ${J}...`),console.log(` Input: ${K.input}`),console.log(` Output: ${U}`),console.log(` Craft: ${Z}`);let G;switch(J){case"macos":G=await h(q,X,Y,U,$,K,Z);break;case"windows":G=await u(q,X,Y,U,$,K,Z);break;case"linux":G=await l(q,X,Y,U,$,K,Z);break;case"ios":G=await s(q,X,Y,U,K,Z);break;case"android":G=await g(q,X,Y,U,K,Z);break;default:G={success:!1,target:J,format:$,error:`Unsupported target: ${J}`}}return G.duration=Date.now()-Q,G}catch(J){return{success:!1,target:K.target||I(),format:K.format||"app",error:J.message,duration:Date.now()-Q}}}async function h(K,Q,J,$,U,q,X){let Y=q.bundleId||`com.stx.${Q.toLowerCase().replace(/[^a-z0-9]/g,"")}`,Z=H($,`${Q}.app`),G=H(Z,"Contents"),L=H(G,"MacOS"),W=H(G,"Resources");_(L,{recursive:!0}),_(W,{recursive:!0});let x=H(W,"index.html");await Bun.write(x,K);let E="";if(q.sidebar?.enabled&&q.sidebar?.config)E=H(W,"sidebar-config.json"),await Bun.write(E,JSON.stringify(q.sidebar.config));let T=q.sidebar?.enabled?`--native-sidebar --sidebar-width ${q.sidebar?.width||240} --sidebar-config "$(cat "$RESOURCES/sidebar-config.json")"`:"",M=`#!/bin/bash
|
|
4
4
|
DIR="$( cd "$( dirname "\${BASH_SOURCE[0]}" )" && pwd )"
|
|
5
5
|
RESOURCES="$DIR/../Resources"
|
|
@@ -87,4 +87,4 @@ Terminal=false
|
|
|
87
87
|
Categories=Utility;
|
|
88
88
|
Icon=${J.toLowerCase()}
|
|
89
89
|
`;z("fs").writeFileSync(H(X,`${J.toLowerCase()}.desktop`),E);let T=Buffer.from([137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,1,0,0,0,1,8,2,0,0,0,144,119,83,222,0,0,0,12,73,68,65,84,8,215,99,248,255,255,63,0,5,254,2,254,220,204,89,231,0,0,0,0,73,69,78,68,174,66,96,130]);if(z("fs").writeFileSync(H(X,`${J.toLowerCase()}.png`),T),$.icon&&y($.icon))O($.icon,H(X,`${J.toLowerCase()}.png`));let M=R("appimagetool",[X,Q],{env:{...process.env,ARCH:"x86_64"}});M.on("close",(w)=>{if(z("fs").rmSync(q,{recursive:!0,force:!0}),w===0)A(Q,493),U({success:!0});else U({success:!1,error:`appimagetool exited with code ${w}. Install from https://appimage.github.io/appimagetool/`})}),M.on("error",(w)=>{z("fs").rmSync(q,{recursive:!0,force:!0}),U({success:!1,error:`appimagetool not found: ${w.message}`})})}catch(q){U({success:!1,error:q.message})}})}function o(){return[I()]}function e(K){switch(K){case"macos":return["app","dmg","pkg"];case"windows":return["app","zip","msi"];case"linux":return["app","deb","rpm","appimage"];case"ios":return["ipa"];case"android":return["apk"];default:return["app"]}}var i={buildNative:D,getAvailableTargets:o,getAvailableFormats:e,detectPlatform:I},$q=i;
|
|
90
|
-
export{D as
|
|
90
|
+
export{D as yo,o as zo,e as Ao,$q as Bo};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{I as
|
|
2
|
+
import{wz as w}from"./chunk-adqh2m9z.js";import{defineRoute as M,defineRoutes as Q,resetRoutes as R,route as S,setAppUrl as T}from"stx-router";import{route as B}from"stx-router";function I(y){return y.replace(/@route\(\s*(['"])([^'"]+)\1(?:\s*,\s*(\{[^}]+\}))?\s*(?:,\s*(true|false)\s*)?\)/g,(C,D,z,q,A)=>{try{let k=q?w(q,{}):{};return B(z,k,A==="true")}catch(k){return console.error(`Error processing @route directive: ${k}`),"#route-error"}})}
|
|
3
|
+
export{I as Kt,M as Lt,Q as Mt,R as Nt,S as Ot,T as Pt};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{eq as I,fq as J,gq as K,hq as N,iq as O,jq as P,kq as Q,lq as T,mq as U,nq as V}from"./chunk-5ppkfyn2.js";function X(){try{let w=Y(G()),z=new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(w);return z=z.replace(/\}(var |let |const |function )/g,"};$1"),z}catch{return G()}}function Y(w){let B=[],z=0,H="console.log(";while(z<w.length){let E=w.indexOf(H,z);if(E===-1){B.push(w.slice(z));break}B.push(w.slice(z,E));let F=1,x=E+H.length;while(x<w.length&&F>0){let A=w[x];if(A==='"'||A==="'"||A==="`"){let W=A;x++;while(x<w.length&&w[x]!==W){if(w[x]==="\\")x++;x++}x++;continue}if(A==="(")F++;else if(A===")")F--;x++}B.push("0"),z=x}return B.join("")}function G(){return`
|
|
3
3
|
// STX Signals Runtime (Development Build)
|
|
4
4
|
console.log('[stx] signals runtime loading');
|
|
5
5
|
// Pre-initialization shim: capture onMount/onDestroy calls made before the runtime IIFE runs
|
|
@@ -5221,4 +5221,4 @@ catch (e) { console.warn('[stx] mount callback error:', e); }
|
|
|
5221
5221
|
}
|
|
5222
5222
|
})();
|
|
5223
5223
|
`}var _={state:I,derived:J,effect:K,batch:N,onMount:O,onDestroy:P,isSignal:Q,isDerived:T,untrack:U,peek:V,generateSignalsRuntime:X,generateSignalsRuntimeDev:G};
|
|
5224
|
-
export{X as
|
|
5224
|
+
export{X as bq,G as cq,_ as dq};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{y as
|
|
2
|
+
import{Mq as Y}from"./chunk-ncnfa8ae.js";import{Ls as X,Rr as U,Sr as V}from"./chunk-w01y57f5.js";import{au as Q,cu as T}from"./chunk-tr0z0e1g.js";import O from"path";import{createHash as j}from"crypto";function D(B={}){let A=new Set;return{context:new Proxy(B,{get(z,k){if(k in z)return z[k];if(typeof k==="string"&&!k.startsWith("__"))A.add(k);return},has(z,k){if(k in z)return!0;if(typeof k==="string"&&!k.startsWith("__"))A.add(k);return!1}}),accessedKeys:A}}async function y(B,A,G={}){let z=O.resolve(B),k=await Bun.file(z).text(),Z=j("sha256").update(k).digest("hex").slice(0,16);Q();let I={};try{I=await V()}catch{}let E=[],_=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,F;while((F=_.exec(k))!==null){let $=F[1];if(/\bserver\b/.test($))E.push(F[2])}let{context:J}=D({__filename:z,__dirname:O.dirname(z)}),L=new Set,q={...U,...I,...G,buildMode:"compile",strict:!1},N=await X(k,J,z,q,L),w=Y(N),W=T();return{route:A,sourceFile:B,html:N,fragment:w,placeholders:W,hasServerScripts:E.length>0,serverScriptContent:E,dependencies:Array.from(L),contentHash:Z,streamTemplates:J.__streamTemplates}}
|
|
3
|
+
export{y as Ci};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ls as X,yr as W}from"./chunk-w01y57f5.js";import V from"fs";import M from"path";import*as Y from"readline";var j={reset:"\x1B[0m",bold:"\x1B[1m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m"},Q={help:{description:"Show available commands",usage:"help [command]",handler:async(q,z)=>{if(q[0]&&Q[q[0]]){let A=Q[q[0]];console.log(`
|
|
3
3
|
${j.bold}${q[0]}${j.reset} - ${A.description}`),console.log(` Usage: ${j.cyan}${A.usage}${j.reset}
|
|
4
4
|
`)}else{console.log(`
|
|
5
5
|
${j.bold}Available Commands:${j.reset}
|
|
@@ -21,4 +21,4 @@ ${j.bold}${j.blue}stx Interactive Mode${j.reset}
|
|
|
21
21
|
${j.dim}Type 'help' for available commands, 'exit' to quit${j.reset}
|
|
22
22
|
`);let B=()=>{let G=z.cwd.replace(process.env.HOME||"","~");A.question(`${j.cyan}stx${j.reset} ${j.dim}${G}${j.reset} ${j.green}>${j.reset} `,async(I)=>{let K=I.trim();if(!K){if(z.running)B();return}z.history.push(K);let L=K.match(/(?:[^\s"]|"[^"]*")+/g)||[],J=L[0]?.toLowerCase(),O=L.slice(1).map((U)=>U.replace(/^"|"$/g,""));if(J&&Q[J])try{await Q[J].handler(O,z)}catch(U){console.log(`${j.red}Error:${j.reset}`,U)}else if(J)if(K.includes("{{")||K.includes("}}"))try{let U=await W(K,z.context,"eval");console.log(`${j.green}\u2192${j.reset} ${U}`)}catch{console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`)}else console.log(`${j.red}Unknown command: ${J}${j.reset}`),console.log(`${j.dim}Type 'help' for available commands${j.reset}`);if(z.running)B();else A.close()})};A.on("SIGINT",()=>{console.log(`
|
|
23
23
|
${j.dim}(Use 'exit' to quit)${j.reset}`),B()}),B()}
|
|
24
|
-
export{R as
|
|
24
|
+
export{R as Al};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{B as
|
|
2
|
+
import{Ik as y,Jk as z,Lk as A}from"./chunk-gqpkp459.js";var E={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:2000,cacheTranscoded:!0,cacheThumbnails:!0,cacheManifests:!0};class B{config;constructor(j={}){this.config={...E,...j}}async get(j,k){return y(j,k,"video",this.config)}async set(j,k,m){return z(j,k,m,"video",this.config)}async clear(){return A("video",this.config)}updateConfig(j){this.config={...this.config,...j}}}var w=null;function x(j){if(!w)w=new B(j);else if(j)w.updateConfig(j);return w}async function G(j,k,m){let q=m?{directory:`${m.outputDir}/../.cache`}:{};return x(q).get(j,k)}async function H(j,k,m,q){let D=q?{directory:`${q.outputDir}/../.cache`}:{};return x(D).set(j,k,m)}async function I(){return x().clear()}
|
|
3
|
+
export{B as Dj,G as Ej,H as Fj,I as Gj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import Z from"fs";import Y from"path";async function _(j){let{root:q,config:B}=j,J=[],H=await E(q,B.storyMatch,B.storyIgnored);for(let Q of H){let L=Y.resolve(q,Q),V=$(Q,L);J.push(V)}return J}async function E(j,q,B){let J=[];async function H(Q,L){let V=await Z.promises.readdir(Q,{withFileTypes:!0});for(let K of V){let X=Y.join(Q,K.name),U=Y.relative(L,X);if(A(U,B))continue;if(K.isDirectory())await H(X,L);else if(K.isFile()){if(W(U,q))J.push(U)}}}return await H(j,j),J}function A(j,q){for(let B of q)if(z(j,B))return!0;return!1}var I=["**/layouts/**","**/pages/**","**/partials/**","**/_*.stx","**/layout.stx","**/page.stx","**/error.stx","**/loading.stx"];function k(j){for(let q of I)if(z(j,q))return!0;return!1}function W(j,q){for(let B of q)if(z(j,B))return!0;return!1}function z(j,q){let B=j.replace(/\\/g,"/"),H=q.replace(/\\/g,"/").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"{{GLOBSTAR}}").replace(/\*/g,"[^/]*").replace(/\?/g,".").replace(/\{\{GLOBSTAR\}\}/g,".*");return H=`^${H}$`,new RegExp(H).test(B)}function $(j,q){let B=Y.basename(j,".story.stx");return{id:j.toLowerCase().replace(/\.story\.stx$/,"").replace(/[/\\]/g,"-").replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),path:q,relativePath:j,fileName:B,treeFile:{title:B,path:j}}}function G(j,q){let{root:B,config:J}=j,H=[],Q=Z.watch(B,{recursive:!0},async(L,V)=>{if(!V)return;let K=V.replace(/\\/g,"/");if(!W(K,J.storyMatch))return;if(A(K,J.storyIgnored))return;let X=Y.resolve(B,K);try{await Z.promises.access(X);let U=$(K,X);q(L==="rename"?"add":"change",U)}catch{let U=$(K,X);q("unlink",U)}});return H.push(Q),()=>{for(let L of H)L.close()}}
|
|
3
|
-
export{_ as
|
|
3
|
+
export{_ as fd,k as gd,G as hd};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{Z as
|
|
2
|
+
import{Sr as O}from"./chunk-w01y57f5.js";import M from"path";var Q=/<script\b[^>]*\bserver\b/i,W=/<script\b[^>]*\bclient\b/i;async function Z(q){let u=performance.now(),k=await O(q),z=q||k.root||process.cwd(),G=[k.build?.pagesDir||k.pagesDir||"pages",k.componentsDir||"components",k.layoutsDir||"layouts",k.partialsDir||"partials"].map((w)=>M.resolve(z,w)),A=[],B=0;for(let w of G){let H=await U(w);for(let J of H){B++;let K=await Bun.file(J).text();if(Q.test(K))A.push(M.relative(z,J))}}return{mode:A.length>0?"ssr":"ssg",serverScriptFiles:A,totalFilesScanned:B,scanDurationMs:Math.round(performance.now()-u)}}async function $(q){let u=await O(q),k=q||u.root||process.cwd(),z=M.resolve(k,u.componentsDir||"components"),G=[],A=await U(z);for(let B of A){let w=await Bun.file(B).text(),H=Q.test(w),J=W.test(w)||/<script\b(?![^>]*\bserver\b)[^>]*>/i.test(w)&&!H;if(H&&J){let K=M.relative(k,B);G.push({file:K,message:`Component "${K}" has both <script server> and <script client>. `+"Components should be server OR client \u2014 compose them via props/slots."})}}return G}async function U(q){let u=[];try{let k=new Bun.Glob("**/*.stx");for await(let z of k.scan({cwd:q,absolute:!0}))u.push(z)}catch{}return u}
|
|
3
|
+
export{Z as pq,$ as qq};
|