@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,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var K={},W=[],O={};function _(){return K}function $(){return O}function C(){K={},W.length=0,O={}}function Q(j){K=X(K,j)}function X(j,z){return{title:z.title??j.title,titleTemplate:z.titleTemplate??j.titleTemplate,base:z.base??j.base,meta:[...j.meta||[],...z.meta||[]],link:[...j.link||[],...z.link||[]],script:[...j.script||[],...z.script||[]],style:[...j.style||[],...z.style||[]],htmlAttrs:{...j.htmlAttrs,...z.htmlAttrs},bodyAttrs:{...j.bodyAttrs,...z.bodyAttrs}}}function Y(j){let z=[];if(j.description)z.push({name:"description",content:j.description});if(j.keywords){let L=Array.isArray(j.keywords)?j.keywords.join(", "):j.keywords;z.push({name:"keywords",content:L})}if(j.author)z.push({name:"author",content:j.author});if(j.robots)z.push({name:"robots",content:j.robots});let A=j.ogTitle??j.title,B=j.ogDescription??j.description;if(A)z.push({property:"og:title",content:A});if(B)z.push({property:"og:description",content:B});if(j.ogImage)z.push({property:"og:image",content:j.ogImage});if(j.ogUrl)z.push({property:"og:url",content:j.ogUrl});if(j.ogType)z.push({property:"og:type",content:j.ogType});if(j.ogSiteName)z.push({property:"og:site_name",content:j.ogSiteName});if(j.ogLocale)z.push({property:"og:locale",content:j.ogLocale});let E=j.twitterTitle??j.title,F=j.twitterDescription??j.description,G=j.twitterImage??j.ogImage;if(j.twitterCard)z.push({name:"twitter:card",content:j.twitterCard});if(E)z.push({name:"twitter:title",content:E});if(F)z.push({name:"twitter:description",content:F});if(G)z.push({name:"twitter:image",content:G});if(j.twitterSite)z.push({name:"twitter:site",content:j.twitterSite});if(j.twitterCreator)z.push({name:"twitter:creator",content:j.twitterCreator});if(j.articleAuthor)z.push({property:"article:author",content:j.articleAuthor});if(j.articlePublishedTime)z.push({property:"article:published_time",content:j.articlePublishedTime});if(j.articleModifiedTime)z.push({property:"article:modified_time",content:j.articleModifiedTime});if(j.articleSection)z.push({property:"article:section",content:j.articleSection});if(j.articleTags)for(let L of j.articleTags)z.push({property:"article:tag",content:L});let J=[];if(j.canonical)J.push({rel:"canonical",href:j.canonical});Q({title:j.title,titleTemplate:j.titleTemplate,meta:z,link:J})}function I(j){if(O={...O,...j},j.title||j.description)Y({title:j.title,description:j.description})}function h(j){let z=typeof j==="function"?j():j;Q({title:z})}function x(j=K){let z=[];if(j.title){let A=j.title;if(j.titleTemplate)A=typeof j.titleTemplate==="function"?j.titleTemplate(A):j.titleTemplate.replace("%s",A);z.push(`<title>${N(A)}</title>`)}if(j.base){let A=Object.entries(j.base).map(([B,E])=>`${B}="${N(E)}"`).join(" ");z.push(`<base ${A}>`)}for(let A of j.meta||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>{return`${E==="httpEquiv"?"http-equiv":E}="${N(String(F))}"`}).join(" ");z.push(`<meta ${B}>`)}for(let A of j.link||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>`${E}="${N(String(F))}"`).join(" ");z.push(`<link ${B}>`)}for(let A of j.script||[]){let{content:B,...E}=A,F=Object.entries(E).filter(([G,J])=>J!==void 0).map(([G,J])=>{if(typeof J==="boolean")return J?G:"";return`${G}="${N(String(J))}"`}).filter(Boolean).join(" ");if(B)z.push(`<script ${F}>${B}</script>`);else z.push(`<script ${F}></script>`)}for(let A of j.style||[]){let B=A.type?` type="${A.type}"`:"";z.push(`<style${B}>${A.content}</style>`)}return z.join(`
|
|
3
3
|
`)}function D(j=K){if(!j.htmlAttrs)return"";return Object.entries(j.htmlAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function S(j=K){if(!j.bodyAttrs)return"";return Object.entries(j.bodyAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function N(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function M(j=K){if(typeof document>"u")return;if(j.title){let z=j.title;if(j.titleTemplate)z=typeof j.titleTemplate==="function"?j.titleTemplate(z):j.titleTemplate.replace("%s",z);document.title=z}for(let z of j.meta||[]){let A=z.name?`meta[name="${z.name}"]`:z.property?`meta[property="${z.property}"]`:null;if(A){let B=document.querySelector(A);if(!B){if(B=document.createElement("meta"),z.name)B.setAttribute("name",z.name);if(z.property)B.setAttribute("property",z.property);document.head.appendChild(B)}B.setAttribute("content",z.content)}}for(let z of j.link||[]){let A=`link[rel="${z.rel}"]${z.href?`[href="${z.href}"]`:""}`,B=document.querySelector(A);if(!B)B=document.createElement("link"),document.head.appendChild(B);for(let[E,F]of Object.entries(z))if(F!==void 0)B.setAttribute(E,String(F))}if(j.htmlAttrs)for(let[z,A]of Object.entries(j.htmlAttrs))document.documentElement.setAttribute(z,A);if(j.bodyAttrs)for(let[z,A]of Object.entries(j.bodyAttrs))document.body.setAttribute(z,A)}function P(j){let z="";return{content:j.replace(/@head\s*([\s\S]*?)@endhead/g,(B,E)=>{return z+=E.trim()+`
|
|
4
|
-
`,""}),headContent:z.trim()}}function V(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let G=B?E:z[(F||"").trim()]??F;return Q({title:G}),""})}function w(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,G,J)=>{let L=F?G:J,R=F?L:z[(L||"").trim()]??L,U=E.includes(":")?{property:E,content:R}:{name:E,content:R};return Q({meta:[U]}),""})}export{_ as
|
|
4
|
+
`,""}),headContent:z.trim()}}function V(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let G=B?E:z[(F||"").trim()]??F;return Q({title:G}),""})}function w(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,G,J)=>{let L=F?G:J,R=F?L:z[(L||"").trim()]??L,U=E.includes(":")?{property:E,content:R}:{name:E,content:R};return Q({meta:[U]}),""})}export{_ as aw,$ as bw,C as cw,Q as dw,Y as ew,I as fw,h as gw,x as hw,D as iw,S as jw,M as kw,P as lw,V as mw,w as nw};
|
|
@@ -474,4 +474,4 @@ describe('Example', () => {
|
|
|
474
474
|
@yield('scripts')
|
|
475
475
|
</body>
|
|
476
476
|
</html>`}function s(){return"<!-- Hero section -->"}function o(){return"<!-- Features -->"}function t(){return"<!-- Pricing -->"}function e(){return"<!-- Button -->"}function Y(z){if(!X(z))Z(z,{recursive:!0})}function qq(){if(X("bun.lockb"))return"bun";if(X("pnpm-lock.yaml"))return"pnpm";if(X("yarn.lock"))return"yarn";return"bun"}function $(z){return z.replace(/[-_\s]+(.)?/g,(w,q)=>q?q.toUpperCase():"").replace(/^./,(w)=>w.toUpperCase())}function vq(z){return z.replace(/[-_\s]+(.)?/g,(w,q)=>q?q.toUpperCase():"").replace(/^./,(w)=>w.toLowerCase())}function W(z){return z.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}
|
|
477
|
-
export{Qq as
|
|
477
|
+
export{Qq as Th,Uq as Uh,Vq as Vh,Wq as Wh,Xq as Xh,Yq as Yh};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function Z(E,j,q,B){let K=[],L=B.join(" ");for(let G of E)if(K.push({src:`${j}/icon-${G}x${G}.png`,sizes:`${G}x${G}`,type:"image/png",purpose:L}),q)K.push({src:`${j}/icon-${G}x${G}.webp`,sizes:`${G}x${G}`,type:"image/webp",purpose:L});return K}function _(E){return E.map((j)=>({name:j.name,short_name:j.shortName,description:j.description,url:j.url,icons:j.icons?.map((q)=>({src:q.src,sizes:q.sizes,type:q.type}))}))}function $(E){let j=E.pwa?.shareTarget;if(!j?.enabled)return;let q={action:j.action||"/share",method:j.method||"POST",enctype:j.enctype||"multipart/form-data",params:{title:j.params?.title||"title",text:j.params?.text||"text",url:j.params?.url||"url"}};if(j.acceptFiles&&j.acceptFiles.length>0)q.params.files=j.acceptFiles.map((B)=>({name:B.name,accept:B.accept}));return q}function k(E){let j=E.pwa?.fileHandlers;if(!j?.enabled||!j.accept)return;let q=[{action:j.action||"/",accept:j.accept,launch_type:j.launchType||"single-client"}];if(j.icons)q[0].icons=j.icons.map((B)=>({src:B.src,sizes:B.sizes,type:B.type}));return q}function F(E){let j=E.pwa?.protocolHandlers;if(!j||j.length===0)return;return j.map((q)=>({protocol:q.protocol,url:q.url}))}function I(E){let j=E.pwa;if(!j?.enabled||!j.manifest)return null;let{manifest:q,icons:B}=j,K=B?.sizes||[72,96,128,144,152,192,384,512],L=B?.outputDir?`/${B.outputDir}`:"/pwa-icons",G=B?.generateWebP??!0,N=B?.purpose||["any","maskable"],J={name:q.name,short_name:q.shortName||q.name,description:q.description,start_url:q.startUrl||"/",display:q.display||"standalone",display_override:q.displayOverride,orientation:q.orientation,theme_color:q.themeColor,background_color:q.backgroundColor,scope:q.scope||"/",lang:q.lang,dir:q.dir,id:q.id,categories:q.categories,icons:Z(K,L,G,N)};if(q.shortcuts&&q.shortcuts.length>0)J.shortcuts=_(q.shortcuts);if(q.screenshots&&q.screenshots.length>0)J.screenshots=q.screenshots.map((Q)=>({src:Q.src,sizes:Q.sizes,type:Q.type,label:Q.label,form_factor:Q.platform}));let U=$(E);if(U)J.share_target=U;let X=k(E);if(X)J.file_handlers=X;let Y=F(E);if(Y)J.protocol_handlers=Y;if(q.launchHandler)J.launch_handler={client_mode:q.launchHandler};if(q.handleLinks)J.handle_links=q.handleLinks;if(q.edgeSidePanel?.enabled)J.edge_side_panel={preferred_width:q.edgeSidePanel.preferredWidth};return J}function O(E){let j=I(E);if(!j)return"";let q=JSON.parse(JSON.stringify(j));return JSON.stringify(q,null,2)}function y(E,j){return{...j,...E,shortcuts:E.shortcuts||j.shortcuts,screenshots:E.screenshots||j.screenshots,categories:E.categories||j.categories}}function R(E){let j=[],q=E.pwa;if(!q?.enabled)return j;let B=q.manifest;if(!B)return j.push("PWA manifest configuration is missing"),j;if(!B.name)j.push("Manifest name is required");let K=["fullscreen","standalone","minimal-ui","browser"];if(B.display&&!K.includes(B.display))j.push(`Invalid display mode: ${B.display}. Must be one of: ${K.join(", ")}`);let L=["any","natural","landscape","landscape-primary","landscape-secondary","portrait","portrait-primary","portrait-secondary"];if(B.orientation&&!L.includes(B.orientation))j.push(`Invalid orientation: ${B.orientation}`);let G=/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;if(B.themeColor&&!G.test(B.themeColor))j.push(`Invalid theme color: ${B.themeColor}. Must be a valid hex color.`);if(B.backgroundColor&&!G.test(B.backgroundColor))j.push(`Invalid background color: ${B.backgroundColor}. Must be a valid hex color.`);if(q.shareTarget?.enabled){if(!q.shareTarget.action)j.push("Share target action URL is required")}if(q.fileHandlers?.enabled){if(!q.fileHandlers.accept||Object.keys(q.fileHandlers.accept).length===0)j.push("File handlers must specify accepted MIME types")}if(q.protocolHandlers)for(let N of q.protocolHandlers){if(!N.protocol)j.push("Protocol handler missing protocol");if(!N.url||!N.url.includes("%s"))j.push(`Protocol handler URL must contain %s placeholder: ${N.protocol}`)}return j}
|
|
3
|
-
export{I as
|
|
3
|
+
export{I as ef,O as ff,y as gf,R as hf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var c={".html":"text/html",".css":"text/css",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".webp":"image/webp",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".eot":"application/vnd.ms-fontobject",".otf":"font/otf",".mp4":"video/mp4",".webm":"video/webm",".mp3":"audio/mpeg",".wav":"audio/wav",".pdf":"application/pdf",".zip":"application/zip",".xml":"application/xml",".txt":"text/plain",".md":"text/markdown",".stx":"text/html"};function g(b){return c[b.toLowerCase()]||"application/octet-stream"}var h={port:3000,watch:!0,native:!1,cache:!1,hotReload:!0,hmrPort:3001,profile:!1,debugDirectives:!1,titlebarHidden:!1};
|
|
3
|
-
export{c as
|
|
3
|
+
export{c as co,g as do,h as eo};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Tw as z}from"./chunk-qdc3aav1.js";import{rB as R}from"./chunk-3jm3snz8.js";var X={title:"stx Development",width:1400,height:900,darkMode:!0,hotReload:!0,titlebarHidden:!1,nativeSidebar:!1,sidebarWidth:260,sidebarConfig:void 0};async function Q(){try{let x=await import("@stacksjs/desktop");if(typeof x.openDevWindow!=="function")return null;return x}catch{return null}}async function $(x,J={}){let q={...X,...J},B=await Q();if(!B)return console.log(`${z.yellow}\u26A0${z.reset} Native window requested, but @stacksjs/desktop is not available.`),console.log(" Install & build the desktop package to enable --native."),!1;try{let w=await B.openDevWindow(x,{title:q.title,width:q.width,height:q.height,darkMode:q.darkMode,hotReload:q.hotReload,titlebarHidden:q.titlebarHidden,nativeSidebar:q.nativeSidebar,sidebarWidth:q.sidebarWidth,sidebarConfig:q.sidebarConfig});if(w&&q.nativeSidebar)console.log(`${z.green}\u2713${z.reset} Native sidebar enabled (macOS Tahoe style)`);return w}catch(w){return console.log(`${z.red}\u2717${z.reset} Could not open native window:`,w),!1}}async function y(){return await Q()!==null}function G(x){if(x.match(/<Sidebar[\s\S]*?variant=["'](?:tahoe|vibrancy|desktop)["'][\s\S]*?\/>/i)){let w=x.match(/<script\s+server[^>]*>([\s\S]*?)<\/script>/i);if(w){let K=w[1];try{let H=`
|
|
3
3
|
${K}
|
|
4
4
|
return typeof sidebarConfig !== 'undefined' ? sidebarConfig : null;
|
|
5
5
|
`,P=Function(H)();if(P)return P}catch(H){console.warn("Invalid sidebarConfig:",H)}}return{sections:[]}}let q=x.match(/@nativeSidebar\s*\(\s*(\{[\s\S]*?\})\s*\)/m);if(q)try{return JSON.parse(q[1])}catch{console.warn("Invalid @nativeSidebar configuration")}let B=x.match(/<script\s+native-sidebar[^>]*>([\s\S]*?)<\/script>/i);if(B)try{let w=B[1].match(/(?:export\s+(?:default\s+)?|const\s+\w+\s*=\s*)(\{[\s\S]*\})/m);if(w)return Function(`return ${w[1]}`)()}catch(w){console.warn("Invalid native-sidebar script configuration:",w)}return}
|
|
6
|
-
export{X as
|
|
6
|
+
export{X as fo,$ as go,y as ho,G as io};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{iz as a}from"./chunk-3rh7va1z.js";function i(t,o){if(t.serverDynamic[o]!==void 0)return String(t.serverDynamic[o]);let e=t.static[o];if(typeof e==="string")return e;return}function f(t,o,e){let r=i(t,o);if(r!==void 0){let n=Number.parseInt(r,10);if(!Number.isNaN(n))return n}return e}var s={"top-right":"top:1rem;right:1rem","top-left":"top:1rem;left:1rem","top-center":"top:1rem;left:50%;transform:translateX(-50%)","bottom-right":"bottom:1rem;right:1rem","bottom-left":"bottom:1rem;left:1rem","bottom-center":"bottom:1rem;left:50%;transform:translateX(-50%)"},p={name:"StxToast",aliases:["stx-toast"],render(t,o,e){let r=a(i(t,"position")||"top-right"),n=f(t,"max",5),m=s[r]||s["top-right"];return`<div id="stx-toast-container" data-stx-toast-position="${r}" data-stx-toast-max="${n}" style="position:fixed;${m};z-index:999999;display:flex;flex-direction:column;gap:0.5rem;pointer-events:none;max-width:24rem;width:100%"></div>
|
|
3
3
|
<style>
|
|
4
4
|
@keyframes stx-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
|
|
5
5
|
@keyframes stx-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}
|
|
@@ -8,4 +8,4 @@ import{aC as a}from"./chunk-hkjq64we.js";function i(t,o){if(t.serverDynamic[o]!=
|
|
|
8
8
|
@keyframes stx-toast-in-center{from{opacity:0;transform:translateY(-1rem)}to{opacity:1;transform:translateY(0)}}
|
|
9
9
|
@keyframes stx-toast-out-center{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-1rem)}}
|
|
10
10
|
</style>`}};
|
|
11
|
-
export{p as
|
|
11
|
+
export{p as bz};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import y from"fs";import z from"path";function C(q,j,g){return{version:1,buildTime:new Date().toISOString(),routes:q,assets:j,outputDir:g}}function E(q,j){let g=z.join(j,"manifest.json");y.writeFileSync(g,JSON.stringify(q,null,2))}function F(q){let j=z.join(q,"manifest.json");if(!y.existsSync(j))return null;try{let g=y.readFileSync(j,"utf-8"),w=JSON.parse(g);if(w.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${w.version}`),null;return w}catch(g){return console.warn("[stx] Failed to load manifest:",g),null}}
|
|
3
|
-
export{C as
|
|
3
|
+
export{C as Yk,E as Zk,F as _k};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Tw as g}from"./chunk-qdc3aav1.js";function A(){console.log(`
|
|
3
3
|
Keyboard shortcuts:`),console.log(` ${g.cyan}o${g.reset} + Enter - Open in browser`),console.log(` ${g.cyan}c${g.reset} + Enter - Clear console`),console.log(` ${g.cyan}q${g.reset} + Enter (or ${g.cyan}Ctrl+C${g.reset}) - Quit server`),console.log(` ${g.cyan}h${g.reset} + Enter - Show this help`)}function F(q){console.log(`${g.green}Server running at ${g.cyan}${q}${g.reset}`),console.log(`Press ${g.cyan}Ctrl+C${g.reset} to stop the server`),A()}function G(q){console.log(`${g.dim}Opening ${g.cyan}${q}${g.dim} in your browser...${g.reset}`),Bun.spawn(["open",q],{stderr:"inherit"})}function L(q,x,z){if(!process.stdin.isTTY)return;process.stdin.setRawMode(!0),process.stdin.setEncoding("utf8"),process.stdin.resume(),A();let j="";process.stdin.on("data",(D)=>{if(D==="\x03"){if(z?.onQuit)z.onQuit();x(),process.exit(0)}if(j+=D,j.endsWith("\r")||j.endsWith(`
|
|
4
4
|
`)){let E=j.trim().toLowerCase();j="",J(E,q,x,z)}})}function J(q,x,z,j){switch(q){case"o":if(j?.onOpen)j.onOpen();else G(x);break;case"c":if(j?.onClear)j.onClear();else console.clear(),F(x);break;case"q":if(j?.onQuit)j.onQuit();console.log(`${g.yellow}Stopping server...${g.reset}`),z(),process.exit(0);break;case"h":if(j?.onHelp)j.onHelp();else A();break;default:break}}function M(){if(process.stdin.isTTY)process.stdin.setRawMode(!1),process.stdin.pause()}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as to,F as uo,G as vo,L as wo,M as xo};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ls as m,Zr as C}from"./chunk-w01y57f5.js";import{et as x}from"./chunk-nap11ntr.js";import{rB as c}from"./chunk-3jm3snz8.js";var{serve:h}=globalThis.Bun;import K from"fs";import $ from"path";function jj(W,Z=200,G={}){return new Response(W,{status:Z,headers:{"Content-Type":"text/html; charset=utf-8",...G}})}async function i(W={}){let{port:Z=3000,root:G=".",stxOptions:E={},watch:v=!0,onRequest:V,routes:N={},middleware:D=[],on404:T,onError:g}=W,F=$.resolve(G),X=new Map;async function O(A){let B=K.statSync(A),L=`${A}:${B.mtimeMs}`,z=X.get(L);if(z)return z.content;for(let J of X.keys())if(J.startsWith(`${A}:`)&&J!==L)X.delete(J);let j=await Bun.file(A).text(),Q=j,H=j.match(/<template\b(?![^>]*(?:\b(?:id|x-for|x-if|@for|@if|:for|:if)\s*=|\s#[\w-]|\bv-slot|\bslot\s*=))[^>]*>/i);if(H&&H.index!==void 0){let J=H.index+H[0].length,U=1,_=J;while(_<j.length&&U>0){let R=j.indexOf("<template",_),k=j.indexOf("</template>",_);if(k===-1)break;if(R!==-1&&R<k)U++,_=R+9;else{if(U--,U===0){Q=j.substring(J,k).trim();break}_=k+11}}}let y=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,b=[],d=[],I;while((I=y.exec(j))!==null){let J=I[1],U=I[2],_=I[0];if(J.includes("server"))d.push(U);else b.push(_)}let P=j.match(/<style\b[^>]*>[\s\S]*?<\/style>/gi)||[],p=Q.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),M={__filename:A,__dirname:$.dirname(A)};for(let J of d)await x(J,M,A);let Y=await m(p,M,A,E,new Set);if(P.length>0){let J=P.join(`
|
|
3
3
|
`);if(Y.match(/(<\/head>)/i))Y=Y.replace(/(<\/head>)/i,`${J}
|
|
4
4
|
$1`)}if(b.length>0){let{interpolateScriptsInTemplate:J}=await import("././expressions.js"),U=J(b.join(`
|
|
5
5
|
`),M);if(Y.match(/(<\/body>)/i))Y=Y.replace(/(<\/body>)/i,`${U}
|
|
@@ -7,4 +7,4 @@ $1`);else Y+=`
|
|
|
7
7
|
${U}`}return X.set(L,{content:Y,mtime:B.mtimeMs}),Y}async function w(A){let B=K.statSync(A),L=`${A}:${B.mtimeMs}`,z=X.get(L);if(z)return z.content;let{content:j}=await C(A,E);return X.set(L,{content:j,mtime:B.mtimeMs}),j}function u(A){let B=A.startsWith("/")?A.slice(1):A,L=[B,`${B}.stx`,`${B}.md`,`${B}.html`,$.join(B,"index.stx"),$.join(B,"index.md"),$.join(B,"index.html")];for(let z of L){let j=$.join(F,z);if(K.existsSync(j)&&K.statSync(j).isFile())return j}return null}async function f(A){let B=new URL(A.url),L=async()=>{if(N[B.pathname])return await N[B.pathname](A);if(V){let j=await V(A);if(j)return j}let z=u(B.pathname);if(!z){if(T)return await T(A);return new Response("Not Found",{status:404})}try{let j,Q="text/html";if(z.endsWith(".stx"))j=await O(z);else if(z.endsWith(".md"))j=await w(z);else if(z.endsWith(".html"))j=await Bun.file(z).text();else if(z.endsWith(".css"))j=await Bun.file(z).text(),Q="text/css";else if(z.endsWith(".js"))j=await Bun.file(z).text(),Q="text/javascript";else if(z.endsWith(".json"))j=await Bun.file(z).text(),Q="application/json";else return new Response(Bun.file(z));return new Response(j,{headers:{"Content-Type":Q}})}catch(j){if(g)return await g(j,A);let Q=j instanceof Error?j.message:String(j),y=E?.debug===!0?`<h1>Error</h1><pre>${Q}
|
|
8
8
|
${j instanceof Error?j.stack:""}</pre>`:"<h1>Internal Server Error</h1><p>An error occurred while processing your request.</p>";return new Response(y,{status:500,headers:{"Content-Type":"text/html"}})}};for(let z=D.length-1;z>=0;z--){let j=D[z],Q=L;L=async()=>await j(A,Q)}return await L()}let S=h({port:Z,fetch:f}),q=null;if(v)q=K.watch(F,{recursive:!0},(A,B)=>{if(B&&(B.endsWith(".stx")||B.endsWith(".md")||B.endsWith(".html")))X.clear()});return{server:S,url:S.url.toString(),stop(){if(q)q.close();S.stop()}}}async function zj(W,Z={}){let G=$.resolve(W);if(!await Bun.file(G).exists())throw Error(`File not found: ${G}`);let E=G.endsWith(".md"),v=G.endsWith(".stx");if(!E&&!v)throw Error(`Unsupported file type: ${G}. Only .stx and .md files are supported.`);return await i({...Z,root:$.dirname(G),routes:{"/":async()=>{let V;if(E){let{content:N}=await C(G,Z.stxOptions);V=N}else{let N=await Bun.file(G).text(),D=[],T=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,g;while((g=T.exec(N))!==null)if(g[1].includes("server"))D.push(g[2]);let F=D.join(`
|
|
9
9
|
`),X=N.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),O={};if(F.trim())await x(F,O,G);let w=new Set;V=await m(X,O,G,Z.stxOptions||{},w)}return new Response(V,{headers:{"Content-Type":"text/html"}})},...Z.routes}})}function Aj(W){return W}function Bj(W){return W}
|
|
10
|
-
export{jj as
|
|
10
|
+
export{jj as gh,i as hh,zj as ih,Aj as jh,Bj as kh};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{d as
|
|
2
|
+
import{rB as l}from"./chunk-3jm3snz8.js";import U from"fs";import G from"path";import I from"os";import H from"crypto";import{generatePlaceholder as m,processImage as g}from"ts-images";var d=[320,640,768,1024,1280,1536,1920],h=["webp","jpeg"],b=80,u=[".jpg",".jpeg",".png",".webp",".avif",".gif",".svg"],P={webp:"image/webp",avif:"image/avif",jpeg:"image/jpeg",png:"image/png"},N=null,W=!1;async function Y(){if(W)return N;W=!0;try{let J=await import("sharp");return N=J.default||J,N}catch{return null}}async function e(){return await Y()!==null}async function t(){return!0}async function JJ(J,K={}){let{widths:Z=d,formats:$=h,quality:q=b,fit:C="cover",placeholder:X="none",outputDir:Q=".stx/images",baseUrl:_="/images"}=K,j,x;if(typeof J==="string"){if(x=J,!await Bun.file(J).exists())throw new L(`Image not found: ${J}`,"NOT_FOUND");j=await Bun.file(J).arrayBuffer().then((V)=>Buffer.from(V))}else x="buffer-input",j=J;let w=H.createHash("sha256").update(j).digest("hex").slice(0,12),y=await O(j),{width:B,height:D}=y,A=B/D;await U.promises.mkdir(Q,{recursive:!0});let T=[],v=G.basename(x,G.extname(x)),z=Z.filter((V)=>V<=B);if(!z.includes(B)&&B<=Math.max(...Z))z.push(B);z.sort((V,R)=>V-R);for(let V of z){let R=Math.round(V/A);for(let F of $){let S=`${v}-${V}w-${w}.${F}`,k=G.join(Q,S),c=`${_}/${S}`,E=await n(j,{width:V,height:R,format:F,quality:q,fit:C});await Bun.write(k,E),T.push({path:k,url:c,width:V,height:R,format:F,size:E.length})}}let M;if(X!=="none")M=await o(j,X);return{src:x,variants:T,placeholder:M,width:B,height:D,aspectRatio:A,hash:w}}async function O(J){let K=typeof J==="string"?Buffer.from(await Bun.file(J).arrayBuffer()):J,Z=await Y();if(Z){let q=await Z(K).metadata();return{width:q.width||0,height:q.height||0,format:q.format||"unknown",hasAlpha:q.hasAlpha}}return p(K)}function p(J){if(J[0]===137&&J[1]===80&&J[2]===78&&J[3]===71){let K=J.readUInt32BE(16),Z=J.readUInt32BE(20);return{width:K,height:Z,format:"png",hasAlpha:!0}}if(J[0]===255&&J[1]===216){let K=2;while(K<J.length){if(J[K]!==255)break;let Z=J[K+1];if(Z>=192&&Z<=207&&Z!==196&&Z!==200&&Z!==204){let q=J.readUInt16BE(K+5);return{width:J.readUInt16BE(K+7),height:q,format:"jpeg",hasAlpha:!1}}let $=J.readUInt16BE(K+2);K+=2+$}}if(J.toString("utf8",0,4)==="RIFF"&&J.toString("utf8",8,12)==="WEBP"){let K=J.toString("utf8",12,16);if(K==="VP8 "){let Z=J.readUInt16LE(26)&16383,$=J.readUInt16LE(28)&16383;return{width:Z,height:$,format:"webp",hasAlpha:!1}}if(K==="VP8L"){let Z=J.readUInt32LE(21),$=(Z&16383)+1,q=(Z>>14&16383)+1;return{width:$,height:q,format:"webp",hasAlpha:!0}}}if(J.toString("utf8",0,3)==="GIF"){let K=J.readUInt16LE(6),Z=J.readUInt16LE(8);return{width:K,height:Z,format:"gif",hasAlpha:!0}}throw new L("Unable to parse image dimensions","PARSE_ERROR")}async function n(J,K){let Z=await Y();if(Z){let q=Z(J).resize(K.width,K.height,{fit:K.fit});switch(K.format){case"webp":q=q.webp({quality:K.quality});break;case"avif":q=q.avif({quality:K.quality});break;case"jpeg":q=q.jpeg({quality:K.quality});break;case"png":q=q.png({quality:K.quality});break}return q.toBuffer()}let $=G.join(I.tmpdir(),`stx-img-${H.randomBytes(8).toString("hex")}.${K.format}`);try{return await g({input:J,output:$,format:K.format,quality:K.quality,resize:{width:K.width,height:K.height,fit:K.fit}}),Buffer.from(await Bun.file($).arrayBuffer())}finally{await U.promises.unlink($).catch(()=>{})}}async function o(J,K){let Z=await Y();if(K==="blur"&&Z){let X=(await Z(J).resize(20).blur(10).toBuffer()).toString("base64"),Q=await O(J);return`data:${P[Q.format]||"image/jpeg"};base64,${X}`}if(K==="dominant-color"&&Z){let{dominant:C}=await Z(J).resize(1,1).toBuffer().then(async(X)=>{let Q=await Z(X).metadata();return{dominant:{r:128,g:128,b:128}}}).catch(()=>({dominant:{r:128,g:128,b:128}}));return`rgb(${C.r}, ${C.g}, ${C.b})`}let $=await O(J),q=G.join(I.tmpdir(),`stx-ph-${H.randomBytes(8).toString("hex")}.${$.format==="unknown"?"bin":$.format}`);try{await Bun.write(q,J);let C=K==="blur"?"blur":K==="thumbhash"?"thumbhash":"dominant-color",Q=await m(q,{strategy:C,width:C==="thumbhash"?void 0:32});if(K==="dominant-color"&&Q.dominantColor)return Q.dominantColor;if(Q.dataURL)return Q.dataURL;return"rgb(128, 128, 128)"}catch{return"rgb(128, 128, 128)"}finally{await U.promises.unlink(q).catch(()=>{})}}function KJ(J,K){return(K?J.filter(($)=>$.format===K):J).sort(($,q)=>$.width-q.width).map(($)=>`${$.url} ${$.width}w`).join(", ")}function ZJ(J){if(!J||Object.keys(J).length===0)return"100vw";return Object.entries(J).sort((Z,$)=>{let q=Number.parseInt(Z[0].replace(/\D/g,""))||0;return(Number.parseInt($[0].replace(/\D/g,""))||0)-q}).map(([Z,$])=>`(max-width: ${Z}) ${$}`).join(", ")+", 100vw"}function $J(J){let K=J.filter(($)=>$.format==="jpeg");if(K.length===0)return J[Math.floor(J.length/2)];let Z=K.sort(($,q)=>$.width-q.width);return Z[Math.floor(Z.length/2)]}function qJ(J){let K=new Map;for(let Z of J){let $=K.get(Z.format)||[];$.push(Z),K.set(Z.format,$)}return K}function CJ(J){let K=G.extname(J).toLowerCase();return u.includes(K)}function QJ(J){return P[J]||"application/octet-stream"}function VJ(J){return J.reduce((K,Z)=>K+Z.size,0)}function XJ(J){if(J<1024)return`${J} B`;if(J<1048576)return`${(J/1024).toFixed(1)} KB`;return`${(J/1048576).toFixed(2)} MB`}class L extends Error{code;constructor(J,K){super(J);this.name="ImageProcessingError",this.code=K}}
|
|
3
|
+
export{d as Jm,h as Km,b as Lm,e as Mm,t as Nm,JJ as Om,O as Pm,n as Qm,KJ as Rm,ZJ as Sm,$J as Tm,qJ as Um,CJ as Vm,QJ as Wm,VJ as Xm,XJ as Ym,L as Zm};
|
|
@@ -13,4 +13,4 @@ ${q}
|
|
|
13
13
|
export function isDirectiveActive(name: string): boolean {
|
|
14
14
|
return name in activeDirectives
|
|
15
15
|
}
|
|
16
|
-
`}function k(K,j={}){let J=[],Q=/@if\(([^)]+)\)[\s\S]*?@endif/g,q=K.matchAll(Q);for(let X of q){let Z=X[1].trim();if(_(Z,j)===!1)J.push({start:X.index,end:X.index+X[0].length,reason:`@if condition always false: ${Z}`})}let G=/@unless\(([^)]+)\)[\s\S]*?@endunless/g,W=K.matchAll(G);for(let X of W){let Z=X[1].trim();if(_(Z,j)===!0)J.push({start:X.index,end:X.index+X[0].length,reason:`@unless condition always true: ${Z}`})}let Y=/@env\(['"]development['"]\)[\s\S]*?@endenv/g;if(j.__ENV__==="production"){let X=K.matchAll(Y);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Development-only code in production build"})}let $=/@debug[\s\S]*?@enddebug/g;if(j.__ENV__==="production"){let X=K.matchAll($);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Debug code in production build"})}return J}function I(K,j={}){let J=k(K,j),Q=[];J.sort((G,W)=>W.start-G.start);let q=K;for(let G of J)q=q.slice(0,G.start)+q.slice(G.end),Q.push(G.reason);return{content:q,removed:Q}}function _(K,j){if(K==="true")return!0;if(K==="false")return!1;if(K==="null")return null;if(/^\d+$/.test(K))return Number.parseInt(K,10);if(/^\d+\.\d+$/.test(K))return Number.parseFloat(K);if(/^['"].*['"]$/.test(K))return K.slice(1,-1);if(K in j)return j[K];let J=K.match(/^(\w+)\s*(===|!==|==|!=|>=|<=|>|<)\s*(.+)$/);if(J){let[,Q,q,G]=J,W=Q in j?j[Q]:void 0,Y=_(G,j);if(W!==void 0&&Y!==void 0)switch(q){case"==":case"===":return W===Y;case"!=":case"!==":return W!==Y;case">":return W>Y;case"<":return W<Y;case">=":return W>=Y;case"<=":return W<=Y}}return}function R(K,j){let J=[],Q=K;return Q=Q.replace(/\{\{\s*(\w+)\s*\}\}/g,(q,G)=>{if(G in j)return J.push(`{{ ${G} }} -> ${j[G]}`),String(j[G]);return q}),Q=Q.replace(/\{\{\s*(\d+)\s*([+\-*])\s*(\d+)\s*\}\}/g,(q,G,W,Y)=>{let $=Number.parseInt(G,10),X=Number.parseInt(Y,10),Z;switch(W){case"+":Z=$+X;break;case"-":Z=$-X;break;case"*":Z=$*X;break;default:return q}return J.push(`{{ ${G} ${W} ${Y} }} -> ${Z}`),String(Z)}),{content:Q,folded:J}}function M(K){let j=K,J=[],Q=0;j=j.replace(/<(pre|code|script|style)([^>]*)>([\s\S]*?)<\/\1>/gi,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{([\s\S]*?)\}\}/g,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{--([\s\S]*?)--\}\}/g,""),j=j.replace(/<!--[\s\S]*?-->/g,""),j=j.replace(/>\s+</g,"><"),j=j.replace(/^\s+/gm,""),j=j.replace(/\s+$/gm,""),j=j.replace(/\s{2,}/g," ");for(let{marker:q,content:G}of J){let W=j.indexOf(q);if(W!==-1)j=j.slice(0,W)+G+j.slice(W+q.length)}return j.trim()}function N(K){let j=new Map,J=new Map,Q=/(['"])([^'"]{10,})\1/g,q;while((q=Q.exec(K))!==null){let Y=q[2];J.set(Y,(J.get(Y)||0)+1)}let G=0,W=K;for(let[Y,$]of J)if($>1){let X=`__STR_${G++}__`;j.set(X,Y);let Z=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),F=new RegExp(`(['"])${Z}\\1`,"g");W=W.replace(F,X)}return{content:W,pool:j,count:j.size}}function b(K,j={}){let J={...E,...j},Q=new Blob([K]).size,q=K,G=[],W=[],Y=[],$=[],X=0;if(J.target==="production")J.constants={...J.constants,__ENV__:"production"};if(J.deadCodeElimination){let H=I(q,J.constants);if(q=H.content,H.removed.length>0)G.push("Dead code elimination"),W.push(...H.removed.map((y)=>`Removed: ${y}`))}if(J.constantFolding&&Object.keys(J.constants).length>0){let H=R(q,J.constants);if(q=H.content,$=H.folded,$.length>0)G.push("Constant folding")}if(J.treeShake){if(Y=T(q,J.preserveDirectives),Y.length>0)G.push("Tree shaking")}if(J.stringPooling){let H=N(q);if(q=H.content,X=H.count,X>0)G.push("String pooling")}if(J.minifyHtml){let H=M(q);if(H.length<q.length)q=H,G.push("HTML minification")}let Z=new Blob([q]).size,F=Q>0?Math.round((1-Z/Q)*100):0;return{content:q,originalSize:Q,optimizedSize:Z,reduction:F,appliedOptimizations:G,removedDirectives:Y,foldedConstants:$,pooledStrings:X,warnings:W}}async function B(K,j={}){let J={...E,...j},Q=new Map,q=[],G=0,W=0,Y=new Set;for(let[F,H]of K){let y=b(H,J);Q.set(F,y),G+=y.originalSize,W+=y.optimizedSize,q.push(...y.warnings.map((P)=>`${F}: ${P}`));let w=A(H);for(let P of w)Y.add(P.name)}let $;if(J.treeShake)$=U(Array.from(Y));let X;if(J.stringPooling)X=new Map;let Z=G>0?Math.round((1-W/G)*100):0;return{templates:Q,directiveBundle:$,stringPool:X,totalOriginalSize:G,totalOptimizedSize:W,overallReduction:Z,warnings:q}}function C(K){return K.charAt(0).toUpperCase()+K.slice(1)}export{A as
|
|
16
|
+
`}function k(K,j={}){let J=[],Q=/@if\(([^)]+)\)[\s\S]*?@endif/g,q=K.matchAll(Q);for(let X of q){let Z=X[1].trim();if(_(Z,j)===!1)J.push({start:X.index,end:X.index+X[0].length,reason:`@if condition always false: ${Z}`})}let G=/@unless\(([^)]+)\)[\s\S]*?@endunless/g,W=K.matchAll(G);for(let X of W){let Z=X[1].trim();if(_(Z,j)===!0)J.push({start:X.index,end:X.index+X[0].length,reason:`@unless condition always true: ${Z}`})}let Y=/@env\(['"]development['"]\)[\s\S]*?@endenv/g;if(j.__ENV__==="production"){let X=K.matchAll(Y);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Development-only code in production build"})}let $=/@debug[\s\S]*?@enddebug/g;if(j.__ENV__==="production"){let X=K.matchAll($);for(let Z of X)J.push({start:Z.index,end:Z.index+Z[0].length,reason:"Debug code in production build"})}return J}function I(K,j={}){let J=k(K,j),Q=[];J.sort((G,W)=>W.start-G.start);let q=K;for(let G of J)q=q.slice(0,G.start)+q.slice(G.end),Q.push(G.reason);return{content:q,removed:Q}}function _(K,j){if(K==="true")return!0;if(K==="false")return!1;if(K==="null")return null;if(/^\d+$/.test(K))return Number.parseInt(K,10);if(/^\d+\.\d+$/.test(K))return Number.parseFloat(K);if(/^['"].*['"]$/.test(K))return K.slice(1,-1);if(K in j)return j[K];let J=K.match(/^(\w+)\s*(===|!==|==|!=|>=|<=|>|<)\s*(.+)$/);if(J){let[,Q,q,G]=J,W=Q in j?j[Q]:void 0,Y=_(G,j);if(W!==void 0&&Y!==void 0)switch(q){case"==":case"===":return W===Y;case"!=":case"!==":return W!==Y;case">":return W>Y;case"<":return W<Y;case">=":return W>=Y;case"<=":return W<=Y}}return}function R(K,j){let J=[],Q=K;return Q=Q.replace(/\{\{\s*(\w+)\s*\}\}/g,(q,G)=>{if(G in j)return J.push(`{{ ${G} }} -> ${j[G]}`),String(j[G]);return q}),Q=Q.replace(/\{\{\s*(\d+)\s*([+\-*])\s*(\d+)\s*\}\}/g,(q,G,W,Y)=>{let $=Number.parseInt(G,10),X=Number.parseInt(Y,10),Z;switch(W){case"+":Z=$+X;break;case"-":Z=$-X;break;case"*":Z=$*X;break;default:return q}return J.push(`{{ ${G} ${W} ${Y} }} -> ${Z}`),String(Z)}),{content:Q,folded:J}}function M(K){let j=K,J=[],Q=0;j=j.replace(/<(pre|code|script|style)([^>]*)>([\s\S]*?)<\/\1>/gi,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{([\s\S]*?)\}\}/g,(q)=>{let G=`__PRESERVE_${Q++}__`;return J.push({marker:G,content:q}),G}),j=j.replace(/\{\{--([\s\S]*?)--\}\}/g,""),j=j.replace(/<!--[\s\S]*?-->/g,""),j=j.replace(/>\s+</g,"><"),j=j.replace(/^\s+/gm,""),j=j.replace(/\s+$/gm,""),j=j.replace(/\s{2,}/g," ");for(let{marker:q,content:G}of J){let W=j.indexOf(q);if(W!==-1)j=j.slice(0,W)+G+j.slice(W+q.length)}return j.trim()}function N(K){let j=new Map,J=new Map,Q=/(['"])([^'"]{10,})\1/g,q;while((q=Q.exec(K))!==null){let Y=q[2];J.set(Y,(J.get(Y)||0)+1)}let G=0,W=K;for(let[Y,$]of J)if($>1){let X=`__STR_${G++}__`;j.set(X,Y);let Z=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),F=new RegExp(`(['"])${Z}\\1`,"g");W=W.replace(F,X)}return{content:W,pool:j,count:j.size}}function b(K,j={}){let J={...E,...j},Q=new Blob([K]).size,q=K,G=[],W=[],Y=[],$=[],X=0;if(J.target==="production")J.constants={...J.constants,__ENV__:"production"};if(J.deadCodeElimination){let H=I(q,J.constants);if(q=H.content,H.removed.length>0)G.push("Dead code elimination"),W.push(...H.removed.map((y)=>`Removed: ${y}`))}if(J.constantFolding&&Object.keys(J.constants).length>0){let H=R(q,J.constants);if(q=H.content,$=H.folded,$.length>0)G.push("Constant folding")}if(J.treeShake){if(Y=T(q,J.preserveDirectives),Y.length>0)G.push("Tree shaking")}if(J.stringPooling){let H=N(q);if(q=H.content,X=H.count,X>0)G.push("String pooling")}if(J.minifyHtml){let H=M(q);if(H.length<q.length)q=H,G.push("HTML minification")}let Z=new Blob([q]).size,F=Q>0?Math.round((1-Z/Q)*100):0;return{content:q,originalSize:Q,optimizedSize:Z,reduction:F,appliedOptimizations:G,removedDirectives:Y,foldedConstants:$,pooledStrings:X,warnings:W}}async function B(K,j={}){let J={...E,...j},Q=new Map,q=[],G=0,W=0,Y=new Set;for(let[F,H]of K){let y=b(H,J);Q.set(F,y),G+=y.originalSize,W+=y.optimizedSize,q.push(...y.warnings.map((P)=>`${F}: ${P}`));let w=A(H);for(let P of w)Y.add(P.name)}let $;if(J.treeShake)$=U(Array.from(Y));let X;if(J.stringPooling)X=new Map;let Z=G>0?Math.round((1-W/G)*100):0;return{templates:Q,directiveBundle:$,stringPool:X,totalOriginalSize:G,totalOptimizedSize:W,overallReduction:Z,warnings:q}}function C(K){return K.charAt(0).toUpperCase()+K.slice(1)}export{A as rq,T as sq,U as tq,k as uq,I as vq,_ as wq,R as xq,M as yq,N as zq,b as Aq,B as Bq};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var H={1001:{message:"Unclosed directive: {{directive}}",help:"Make sure to close the directive with the appropriate end tag"},1002:{message:"Unclosed expression at position {{position}}",help:"Check for missing closing braces }}"},1003:{message:"Invalid directive syntax: {{directive}}",help:"Review the directive documentation for correct syntax"},1004:{message:"Malformed expression: {{expression}}",help:"Check for syntax errors in your expression"},1005:{message:"Unexpected token: {{token}}",help:"Remove or fix the unexpected token"},1101:{message:"Undefined variable: {{variable}}",help:"Make sure the variable is defined in the template context"},1102:{message:"Type error: {{details}}",help:"Check that you are using the correct types"},1103:{message:"Evaluation error: {{details}}",help:"Review the expression for errors"},1104:{message:"Infinite loop detected in {{location}}",help:"Check your loop conditions"},1105:{message:"Circular reference detected: {{path}}",help:"Remove the circular dependency"},1201:{message:"Unsafe expression blocked: {{expression}}",help:"This expression contains potentially dangerous code"},1202:{message:"Path traversal attempt blocked: {{path}}",help:"Use only relative paths within allowed directories"},1203:{message:"Potential XSS attempt blocked",help:"Sanitize user input before rendering"},1204:{message:"Code injection attempt blocked: {{code}}",help:"Avoid executing dynamic code"},1205:{message:"Prohibited DOM API usage: {{api}}",help:"Use STX.useRefs(), STX.useRef(), STX.el() and other STX helpers instead of direct DOM manipulation"},1301:{message:"File not found: {{path}}",help:"Check that the file exists and the path is correct"},1302:{message:"Error reading file: {{path}}",help:"Check file permissions and encoding"},1303:{message:"Invalid file path: {{path}}",help:"Use a valid file path"},1304:{message:"Permission denied: {{path}}",help:"Check file permissions"},1401:{message:"Invalid configuration: {{details}}",help:"Review your stx.config.ts file"},1402:{message:"Missing required configuration: {{key}}",help:"Add the required configuration option"},1403:{message:"Deprecated configuration: {{key}}",help:"Update to the new configuration format"},1501:{message:"Component not found: {{name}}",help:"Check that the component exists in your components directory"},1502:{message:"Invalid props for component {{name}}: {{details}}",help:"Check the component prop requirements"},1503:{message:"Error rendering component {{name}}: {{details}}",help:"Check the component template for errors"},1601:{message:"Filter not found: {{filter}}",help:"Register the filter or check the filter name"},1602:{message:"Invalid arguments for filter {{filter}}: {{details}}",help:"Check the filter documentation for correct arguments"},1603:{message:"Expression evaluation timed out",help:"Simplify the expression or increase the timeout"}},z={},D="en";function K(b){D=b}function N(){return D}function O(b){z={...z,...b}}function P(){z={}}function I(b,w={}){let j=z[b]||H[b]||{message:`Unknown error (code: ${b})`},q=j.message,x=j.help;for(let[F,A]of Object.entries(w)){let B=`{{${F}}}`;if(q=q.replace(new RegExp(B,"g"),A),x)x=x.replace(new RegExp(B,"g"),A)}return{message:q,help:x}}function Q(b,w={}){let{message:j,help:q}=I(b,w);return q?`${j}
|
|
3
3
|
Help: ${q}`:j}var J={UNCLOSED_DIRECTIVE:1001,UNCLOSED_EXPRESSION:1002,INVALID_DIRECTIVE_SYNTAX:1003,MALFORMED_EXPRESSION:1004,UNEXPECTED_TOKEN:1005,UNDEFINED_VARIABLE:1101,TYPE_ERROR:1102,EVALUATION_ERROR:1103,INFINITE_LOOP:1104,CIRCULAR_REFERENCE:1105,UNSAFE_EXPRESSION:1201,PATH_TRAVERSAL:1202,XSS_ATTEMPT:1203,CODE_INJECTION:1204,DOM_API_VIOLATION:1205,FILE_NOT_FOUND:1301,FILE_READ_ERROR:1302,INVALID_FILE_PATH:1303,PERMISSION_DENIED:1304,INVALID_CONFIG:1401,MISSING_REQUIRED_CONFIG:1402,DEPRECATED_CONFIG:1403,COMPONENT_NOT_FOUND:1501,INVALID_PROPS:1502,COMPONENT_RENDER_ERROR:1503,FILTER_NOT_FOUND:1601,INVALID_FILTER_ARGS:1602,EXPRESSION_TIMEOUT:1603};function R(b){for(let[w,j]of Object.entries(J))if(j===b)return w;return}
|
|
4
|
-
export{K as
|
|
4
|
+
export{K as Ny,N as Oy,O as Py,P as Qy,I as Ry,Q as Sy,J as Ty,R as Uy};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{V as
|
|
2
|
+
import{yj as B,zj as M}from"./chunk-5xvbq2gs.js";import{Aj as w,Bj as x}from"./chunk-z37xq5rx.js";import{Ej as O,Fj as Q}from"./chunk-bn08k7yy.js";import{Sk as E,Xk as L}from"./chunk-5ggw1dyv.js";import{rB as v}from"./chunk-3jm3snz8.js";import{resolve as F,basename as D,extname as C,join as b}from"path";import{mkdir as q}from"fs/promises";async function T(){try{return await import("ts-videos")}catch{return null}}function R(J){switch(J){case"very-low":return 500000;case"low":return 1e6;case"medium":return 2500000;case"high":return 5000000;case"very-high":return 1e7;case"lossless":return 0;default:return 2500000}}function y(J){switch(J){case"youtube":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};case"twitter":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"instagram-feed":return{codec:"h264",maxWidth:1080,maxHeight:1080,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"instagram-story":case"instagram-reels":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:3500000,audioCodec:"aac",audioBitrate:128000};case"tiktok":return{codec:"h264",maxWidth:1080,maxHeight:1920,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"discord":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:60,bitrate:8000000,audioCodec:"aac",audioBitrate:192000};case"linkedin":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,bitrate:5000000,audioCodec:"aac",audioBitrate:128000};case"facebook":return{codec:"h264",maxWidth:1280,maxHeight:720,frameRate:30,bitrate:4000000,audioCodec:"aac",audioBitrate:128000};case"web-progressive":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000,twoPass:!0};case"web-streaming":return{codec:"h264",maxWidth:1920,maxHeight:1080,frameRate:30,audioCodec:"aac",audioBitrate:128000};default:return{}}}async function V(J){let I=await T();if(!I)return null;try{let G=F(J),X=await new I.Input(G).getInfo();return{duration:X.duration||0,width:X.width||0,height:X.height||0,frameRate:X.frameRate||0,bitrate:X.bitrate||0,codec:X.videoCodec||"",audioCodec:X.audioCodec}}catch(G){return console.warn(`[stx-media] Failed to analyze video: ${G}`),null}}async function f(J,I,G,Y){let X=await T();if(!X)return console.warn("[stx-media] ts-videos not installed, skipping processing"),{src:J,processed:!1};let k=await O(J,I,G);if(k)return k;try{let K=F(J);if(!await L(K))return{src:J,processed:!1,errors:[`Source file not found: ${J}`]};let j=G.outputDir||"dist/videos",z=G.baseUrl||"/videos";await q(j,{recursive:!0});let A=await E(K),H=D(J,C(J)),N={src:J,processed:!0,hash:A};Y?.({percentage:5,stage:"analyzing"}),N.metadata=await V(K)||void 0;let _={};if(I.quality)_.bitrate=R(I.quality);if(I.platform)Object.assign(_,y(I.platform));if(I.transcode)Object.assign(_,I.transcode);if(Object.keys(_).length>0||I.process){Y?.({percentage:10,stage:"transcoding"});let W=`${H}-${A}.mp4`,Z=b(j,W);try{let $=await S(K,Z,_,X,(U)=>Y?.({percentage:10+U*0.5,stage:"transcoding"}));if($)N.transcoded={path:Z,url:`${z}/${W}`,duration:$.duration,size:$.size,video:{codec:_.codec||"h264",width:$.width,height:$.height,bitrate:$.bitrate,frameRate:$.frameRate},audio:$.audioCodec?{codec:_.audioCodec||"aac",bitrate:_.audioBitrate||128000,sampleRate:_.sampleRate||48000,channels:_.channels||2}:void 0}}catch($){N.errors=N.errors||[],N.errors.push(`Transcoding failed: ${$}`)}}if(I.generatePoster){Y?.({percentage:65,stage:"generating-poster"});let W=typeof I.generatePoster==="object"?I.generatePoster:{timestamp:0},Z=await w(K,W,j,z);if(Z)N.poster=Z}if(G.thumbnails?.enabled){Y?.({percentage:70,stage:"generating-thumbnails"});let W=await x(K,G.thumbnails,j,z);if(W.length>0)N.thumbnails=W}if(I.streaming){Y?.({percentage:80,stage:"generating-manifests"});let W=typeof I.streaming==="object"?I.streaming:G.streaming||{format:"hls"};if(W.format==="hls"||W.format===void 0){let Z=await B(K,W.qualities||G.streaming?.defaultQualities||[],j,z);if(Z)N.streaming={...N.streaming,hls:Z}}if(W.format==="dash"){let Z=await M(K,W.qualities||G.streaming?.defaultQualities||[],j,z);if(Z)N.streaming={...N.streaming,dash:Z}}}if(I.spriteSheet)Y?.({percentage:90,stage:"generating-sprite-sheet"});return Y?.({percentage:100,stage:"complete"}),await Q(J,I,N,G),N}catch(K){return{src:J,processed:!1,errors:[`Processing failed: ${K}`]}}}async function S(J,I,G,Y,X){try{let K=await new Y.Conversion(J,I,{videoCodec:G.codec,videoBitrate:G.bitrate,width:G.maxWidth,height:G.maxHeight,frameRate:G.frameRate,audioCodec:G.audioCodec,audioBitrate:G.audioBitrate,sampleRate:G.sampleRate,channels:G.channels}).run((j)=>{X?.(j.percentage/100)});return{duration:K.duration||0,size:K.size||0,width:K.width||G.maxWidth||0,height:K.height||G.maxHeight||0,bitrate:K.bitrate||G.bitrate||0,frameRate:K.frameRate||G.frameRate||30,audioCodec:K.audioCodec}}catch(k){return console.error(`[stx-media] Transcoding failed: ${k}`),null}}
|
|
3
|
+
export{V as vj,f as wj};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Bb as J,Hb as L}from"./chunk-0jd0pndq.js";import{Sc as Y,Uc as Z,Xc as _,_c as $}from"./chunk-yn38c15w.js";import{fd as V}from"./chunk-bpgg59wa.js";import{jd as X}from"./chunk-y0qg6rrv.js";import{fe as P,ge as Q,he as U}from"./chunk-0qnz93q2.js";import k from"fs";import v from"path";async function I(A={}){let E=Date.now();Y();let j=await P({mode:"build"});if(!j.config.enabled){_("Story feature is disabled in config.");return}let w=await V(j);Q(j,w);let K=X(j.config,w);U(j,K),Z(w.length);let G=A.outDir??j.config.outDir,z=v.resolve(j.root,G);await k.promises.mkdir(z,{recursive:!0}),console.log(` Building to ${G}...`);let M=T(j);await k.promises.writeFile(v.join(z,"index.html"),M);let R={files:w.map((q)=>({id:q.id,fileName:q.fileName,relativePath:q.relativePath,treePath:q.treePath})),tree:K};await k.promises.writeFile(v.join(z,"stories.json"),JSON.stringify(R,null,2));let W={theme:j.config.theme,responsivePresets:j.config.responsivePresets,backgroundPresets:j.config.backgroundPresets};await k.promises.writeFile(v.join(z,"config.json"),JSON.stringify(W,null,2));let N=v.join(z,"stories");await k.promises.mkdir(N,{recursive:!0});for(let q of w){let g=await k.promises.readFile(q.path,"utf-8");await k.promises.writeFile(v.join(N,`${q.id}.stx`),g)}J(j);let B=L();await k.promises.writeFile(v.join(z,"search-index.json"),B);let H=Date.now()-E;$(w.length,G,H)}function T(A){let{theme:E}=A.config,j=E.title||"STX Story";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -114,4 +114,4 @@ import{Fb as J,Lb as L}from"./chunk-k7yp9h17.js";import{$c as _,Wc as Y,Yc as Z,
|
|
|
114
114
|
</script>
|
|
115
115
|
</body>
|
|
116
116
|
</html>`}var h=I;
|
|
117
|
-
export{I as
|
|
117
|
+
export{I as zb,h as Ab};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{yw as y}from"./chunk-ywkrxp2h.js";import{rB as a}from"./chunk-3jm3snz8.js";function v(){return y({name:"video",hasEndTag:!1,description:"Render a video with optional ts-videos processing, streaming, and poster generation",transform:async(j,B,q,K)=>{let{src:Q,options:J}=d(j,B,q);if(!Q)return console.warn("@video directive: missing src argument"),"<!-- @video: missing src -->";let G={src:Q,poster:J.poster,controls:J.controls!==!1,autoplay:J.autoplay||!1,muted:J.muted||!1,loop:J.loop||!1,preload:J.preload||"metadata",playsinline:J.playsinline!==!1,lazy:J.lazy!==!1,player:J.player||"native",type:J.type,width:J.width,height:J.height,class:J.class,style:J.style,id:J.id,crossorigin:J.crossorigin,disablePictureInPicture:J.disablePictureInPicture,disableRemotePlayback:J.disableRemotePlayback,title:J.title,quality:J.quality,platform:J.platform,process:J.process,generatePoster:J.generatePoster,streaming:J.streaming,transcode:J.transcode,spriteSheet:J.spriteSheet,waveform:J.waveform},X={isDev:q.__isDev||!1,tsVideosConfig:q.__tsVideosConfig},Z=await b(G,X),k=Z.html;if(Z.css)k+=`
|
|
3
3
|
<style>${Z.css}</style>`;if(Z.script)k+=`
|
|
4
4
|
<script>${Z.script}</script>`;return k},defaults:{src:"",options:{controls:!0,lazy:!0,preload:"metadata"}}})}function d(j,B,q){if(B.src)return{src:String(B.src),options:B.options||{}};let K=j.trim();if(K.startsWith("@video(")||K.startsWith("("))K=K.replace(/^@video\(/,"").replace(/^\(/,"").replace(/\)$/,"");let Q=i(K),J=A(Q[0],q)||"",G={};if(Q[1]){let H=A(Q[1],q);if(typeof H==="object"&&H!==null)G=H;else if(typeof Q[1]==="string")try{G=JSON.parse(Q[1])}catch{}}return{src:J,options:G}}function i(j){let B=[],q="",K=!1,Q="",J=0,G=0;for(let H=0;H<j.length;H++){let X=j[H],Z=H>0?j[H-1]:"";if((X==='"'||X==="'"||X==="`")&&Z!=="\\"){if(!K)K=!0,Q=X;else if(X===Q)K=!1,Q="";else q+=X;continue}if(!K){if(X==="{")J++;if(X==="}")J--;if(X==="[")G++;if(X==="]")G--;if(X===","&&J===0&&G===0){B.push(q.trim()),q="";continue}}q+=X}if(q.trim())B.push(q.trim());return B}function A(j,B){if(typeof j!=="string")return j;let q=j.trim();if(q.startsWith('"')&&q.endsWith('"')||q.startsWith("'")&&q.endsWith("'"))return q.slice(1,-1);if(!q.startsWith("/")&&!q.startsWith(".")&&!q.startsWith("http")&&!q.startsWith("{")){let K=B[q];if(K!==void 0)return K}if(q.startsWith("{")||q.startsWith("["))try{return JSON.parse(q)}catch{}return q}var c=v();async function g(){try{return await import("./media/video/processor/index.js")}catch(j){if(!x)console.warn("[stx-media] Video processor not available, some features disabled:",j),x=!0;return null}}var x=!1,h=!0,u="metadata",p="https://cdn.jsdelivr.net/npm/ts-video-player@latest/dist/index.min.js";async function b(j,B={}){let q=B,K=j;if(K.process&&!K.skipProcessing){if(q.tsVideosConfig?.enabled&&!q.isDev)return e(K,q)}if(q.processedResult?.processed)return l(j,q.processedResult,B);let Q;if(K.generatePoster&&K.src&&!j.poster)Q=await jj(K,q);let{src:J,sources:G=[],poster:H,posterPlaceholder:X,controls:Z=h,autoplay:k=!1,muted:N=!1,loop:F=!1,preload:f=u,playsinline:O=!0,lazy:_=!0,player:R="native",type:w,width:W,height:z,crossorigin:U,disablePictureInPicture:E=!1,disableRemotePlayback:M=!1}=j,L=Q||H,D=j.class,P=j.style,C=j.id||`stx-video-${Math.random().toString(36).slice(2,8)}`;if(R==="ts-video")return t(j,B);if(w&&w!=="video")return o(J||"",w,j);let I=G.length>0?G:J?[{src:J,type:m(J)}]:[],$=[`id="${C}"`];if(Z)$.push("controls");if(k)$.push("autoplay");if(N)$.push("muted");if(F)$.push("loop");if(O)$.push("playsinline");if(E)$.push("disablepictureinpicture");if(M)$.push("disableremoteplayback");if(U)$.push(`crossorigin="${U}"`);if(_){if($.push(`data-preload="${f}"`),$.push('preload="none"'),L)$.push(`data-poster="${Y(L)}"`);$.push("data-stx-lazy")}else if($.push(`preload="${f}"`),L)$.push(`poster="${Y(L)}"`);if(W)$.push(`width="${W}"`);if(z)$.push(`height="${z}"`);if(D)$.push(`class="${Y(D)}"`);if(P)$.push(`style="${Y(P)}"`);let T=I.map((V)=>{return` <source ${_?`data-src="${Y(V.src)}"`:`src="${Y(V.src)}"`} type="${V.type}"${V.media?` media="${V.media}"`:""} />`}).join(`
|
|
5
5
|
`),n=`<video ${$.join(" ")}>
|
|
@@ -259,4 +259,4 @@ ${I}
|
|
|
259
259
|
height: auto;
|
|
260
260
|
}
|
|
261
261
|
`.trim();return{html:I,script:$,css:T}}
|
|
262
|
-
export{b as
|
|
262
|
+
export{b as pu,Qj as qu,v as ru,c as su};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{b as
|
|
2
|
+
import{iz as L}from"./chunk-3rh7va1z.js";import{rB as $}from"./chunk-3jm3snz8.js";import{existsSync as j,readFileSync as u}from"fs";var I=new Map;function q(E){try{return $.resolve(`@iconify/json/json/${E}.json`)}catch{}let G=process.cwd();for(let H of[`${G}/node_modules/@iconify/json/json/${E}.json`,`${G}/pantry/@iconify/json/json/${E}.json`])if(j(H))return H;return null}function D(E){if(I.has(E))return I.get(E);let G=q(E);if(!G)return null;try{let H=JSON.parse(u(G,"utf8"));return I.set(E,H.icons),H.icons}catch{return null}}async function R(E){if(I.has(E))return I.get(E);let G=q(E);if(!G)return null;try{let H=await Bun.file(G).json();return I.set(E,H.icons),H.icons}catch{return null}}function J(E,G){if(E.serverDynamic[G]!==void 0)return String(E.serverDynamic[G]);if(E.static[G]!==void 0)return String(E.static[G]);if(E.clientReactive[G]!==void 0)return E.clientReactive[G];return}var b={name:"Icon",aliases:["icon","stx-icon"],render(E,G,H){let M=J(E,"name")??J(E,"icon");if(!M)return"<!-- Icon: missing name/icon prop -->";let K="lucide",Q=M;if(M.includes(":")){let Z=M.split(":");K=Z[0],Q=Z[1]}let U=L(J(E,"size")||"24"),V=L(J(E,"color")||"currentColor"),W=L(J(E,"class")||""),X=L(J(E,"style")||""),Y=I.get(K)??D(K);if(!Y)return`<!-- Icon: collection "${K}" not loaded -->`;let O=Y[Q];if(!O)return`<!-- Icon: "${Q}" not found in ${K} -->`;let B=O.width||24,F=O.height||24,z=`0 0 ${B} ${F}`,T=O.body;if(V!=="currentColor")T=T.replace(/currentColor/g,V);let S=W?` class="${W}"`:"",g=X?` style="${X}"`:"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${U}" height="${U}" viewBox="${z}" fill="none"${S}${g}>${T}</svg>`}};async function A(E="lucide"){await R(E)}
|
|
3
|
+
export{b as fz,A as gz};
|
|
@@ -176,4 +176,4 @@ var Q=null,R=null;function $(z,A,G=new WeakSet){if(Object.is(z,A))return!0;if(ty
|
|
|
176
176
|
};
|
|
177
177
|
window.provide = provide;
|
|
178
178
|
})();
|
|
179
|
-
</script>`}export{K as
|
|
179
|
+
</script>`}export{K as $h,q as ai,x as bi,N as ci,S as di,O as ei,H as fi,m as gi,j as hi,g as ii,w as ji,h as ki,I as li,y as mi,E as ni,v as oi,Z as pi,V as qi,d as ri,k as si,f as ti};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{b as
|
|
2
|
+
import{yy as T}from"./chunk-94g3cahw.js";import{sz as j,xz as O}from"./chunk-adqh2m9z.js";function b(z,H){let X=z,F=/@json\s*\(/g,Y;while((Y=F.exec(X))!==null){let J=Y.index,v=J+Y[0].length-1,K=1,q=v+1,w=null,U=!1;while(q<X.length&&K>0){let G=X[q];if(U){U=!1,q++;continue}if(G==="\\"&&w){U=!0,q++;continue}if(w){if(G===w)w=null;q++;continue}if(G==='"'||G==="'"||G==="`"){w=G,q++;continue}if(G==="(")K++;else if(G===")"){if(K--,K===0)break}q++}if(K!==0)break;let V=X.substring(v+1,q).trim(),_=X.substring(J,q+1),W=-1,Z=0,$=null,R=!1;for(let G=0;G<V.length;G++){let B=V[G];if(R){R=!1;continue}if(B==="\\"&&$){R=!0;continue}if($){if(B===$)$=null;continue}if(B==='"'||B==="'"||B==="`"){$=B;continue}if(B==="("||B==="["||B==="{")Z++;else if(B===")"||B==="]"||B==="}")Z--;if(B===","&&Z===0){W=G;break}}let A=W>=0?V.substring(0,W).trim():V,L=W>=0?V.substring(W+1).trim():void 0;try{let G=A.trim(),B;if(j(G))B=O(G,Object.keys(H))(...Object.values(H));else B=void 0;let y;if(L==="true")y=JSON.stringify(B,null,2);else y=JSON.stringify(B);let N=y.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");X=X.substring(0,J)+N+X.substring(q+1),F.lastIndex=J+N.length}catch(G){T.log(G instanceof Error?G:Error(String(G)),{directive:"@json"},"error"),F.lastIndex=J+_.length}}return X}function S(z){return z.replace(/@once\s*([\s\S]*?)@endonce/g,"$1")}function x(z){let H=z,X=/@memo\s*\(/g,F,Y=[];while((F=X.exec(H))!==null){let J=F.index,v=J+F[0].length,K=1,q=v;while(q<H.length&&K>0){if(H[q]==="(")K++;else if(H[q]===")")K--;q++}if(K!==0)continue;let w=H.slice(v,q-1).trim(),U=q,V=H.slice(U),_=V.indexOf("@endmemo");if(_===-1)continue;let W=V.slice(0,_),Z=U+_+8,$=W.match(/^(\s*(?:(?:<!--[\s\S]*?-->|\x00STX_HTML_COMMENT_\d+\x00)\s*)*)/),R=$?$[0].length:0,A=W.slice(R),L=W.match(/(\s*)$/),G=L?L[0].length:0,B=A.slice(0,A.length-G),y=B.match(/^<([a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*?)?(\/?)>/),N;if(y){let[P,D,E="",Q]=y,k=`<${D}${E} data-stx-memo="${w}"${Q}>`;N=W.slice(0,R)+k+B.slice(P.length)+W.slice(R+B.length)}else N=`${W.slice(0,R)}<div data-stx-memo="${w}">${B}</div>${W.slice(R+B.length)}`;Y.push({start:J,end:Z,replacement:N}),X.lastIndex=Z}for(let J=Y.length-1;J>=0;J--){let v=Y[J];H=H.slice(0,v.start)+v.replacement+H.slice(v.end)}return H.replace(/@memo="([^"]*)"/g,'data-stx-memo="$1"')}function I(z){let H=z.replace(/@ref="([^"]+)"/g,'data-stx-ref="$1"');return H=H.replace(/(<[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?)\sref="([^"]+)"/g,'$1 data-stx-ref="$2"'),H}function u(z){let X=new RegExp("<(div|span|p|h[1-6]|td|th|li|a|button|label|section|article|header|footer|main|nav|aside|dd|dt|figcaption|summary|caption|blockquote|pre|code|em|strong|small|sub|sup|time|mark|abbr|cite|q|s|u|b|i)\\b","gi"),F="",Y=0,J;while((J=X.exec(z))!==null){let v=J.index,K=v+J[0].length,q=!1,w=!1,U=-1;while(K<z.length){let $=z[K];if(q){if($==="'")q=!1}else if(w){if($==='"')w=!1}else if($==="'")q=!0;else if($==='"')w=!0;else if($===">"){U=K;break}K++}if(U===-1)continue;if(z.slice(v,U+1).includes("x-cloak"))continue;let _=z.slice(U+1),W=_.indexOf("</"),Z=W>=0?_.slice(0,W):_.slice(0,200);if(/\{\{[\s\S]*?\}\}/.test(Z))F+=z.slice(Y,U)+" x-cloak>",Y=U+1}return F+=z.slice(Y),F}var M=/(?:^|\s)(?::else-if|:if|:else|:show|x-else-if|x-if|x-else|x-show|@if|@show)(?:=|\s|\/|>|$)/;function m(z){let H=/<[a-z][\w-]*/gi,X="",F=0,Y;while((Y=H.exec(z))!==null){let J=Y.index,v=Y[0].slice(1).toLowerCase();if(v==="script"||v==="style"){let Z=`</${v}>`,$=z.toLowerCase().indexOf(Z,J);if($!==-1)H.lastIndex=$+Z.length;continue}let K=J+Y[0].length,q=!1,w=!1,U=-1;while(K<z.length){let Z=z[K];if(q){if(Z==="'")q=!1}else if(w){if(Z==='"')w=!1}else if(Z==="'")q=!0;else if(Z==='"')w=!0;else if(Z===">"){U=K;break}K++}if(U===-1)continue;let V=z.slice(J+Y[0].length,U);if(/(?:^|\s)x-cloak(?:=|\s|\/|>|$)/.test(V))continue;if(!M.test(V))continue;let _=z[U-1]==="/",W=_?U-1:U;X+=`${z.slice(F,W)} x-cloak${_?" ":""}`,F=W}return X+=z.slice(F),X}
|
|
3
|
+
export{b as ju,S as ku,x as lu,I as mu,u as nu,m as ou};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import Q from"fs";import L from"path";function Z(w){let q=[];if(q.push("[build]"),q.push(` command = "${E(w.build.command)}"`),q.push(` publish = "${E(w.build.publish)}"`),w.build.functions)q.push(` functions = "${E(w.build.functions)}"`);if(w.build.edge_functions)q.push(` edge_functions = "${E(w.build.edge_functions)}"`);if(w.build.environment&&Object.keys(w.build.environment).length>0){q.push(""),q.push("[build.environment]");for(let[z,B]of Object.entries(w.build.environment))q.push(` ${z} = "${E(B)}"`)}if(w.functions){if(q.push(""),q.push("[functions]"),w.functions.directory)q.push(` directory = "${E(w.functions.directory)}"`);if(w.functions.node_bundler)q.push(` node_bundler = "${w.functions.node_bundler}"`);if(w.functions.external_node_modules&&w.functions.external_node_modules.length>0)q.push(` external_node_modules = [${w.functions.external_node_modules.map((z)=>`"${z}"`).join(", ")}]`)}if(w.edge_functions&&w.edge_functions.length>0){q.push("");for(let z of w.edge_functions)q.push("[[edge_functions]]"),q.push(` function = "${E(z.function)}"`),q.push(` path = "${E(z.path)}"`)}if(w.redirects&&w.redirects.length>0){q.push("");for(let z of w.redirects){if(q.push("[[redirects]]"),q.push(` from = "${E(z.from)}"`),q.push(` to = "${E(z.to)}"`),z.status!==void 0)q.push(` status = ${z.status}`);if(z.force!==void 0)q.push(` force = ${z.force}`);if(z.conditions&&Object.keys(z.conditions).length>0){q.push(" [redirects.conditions]");for(let[B,G]of Object.entries(z.conditions))q.push(` ${B} = "${E(G)}"`)}}}if(w.headers&&w.headers.length>0){q.push("");for(let z of w.headers){q.push("[[headers]]"),q.push(` for = "${E(z.for)}"`),q.push(" [headers.values]");for(let[B,G]of Object.entries(z.values))q.push(` ${B} = "${E(G)}"`)}}if(w.plugins&&w.plugins.length>0){q.push("");for(let z of w.plugins)if(q.push("[[plugins]]"),q.push(` package = "${E(z.package)}"`),z.inputs&&Object.keys(z.inputs).length>0){q.push(" [plugins.inputs]");for(let[B,G]of Object.entries(z.inputs))if(typeof G==="string")q.push(` ${B} = "${E(G)}"`);else if(typeof G==="boolean"||typeof G==="number")q.push(` ${B} = ${G}`)}}if(w.context&&Object.keys(w.context).length>0)for(let[z,B]of Object.entries(w.context)){if(q.push(""),q.push(`[context.${z}]`),B.command)q.push(` command = "${E(B.command)}"`);if(B.publish)q.push(` publish = "${E(B.publish)}"`);if(B.environment&&Object.keys(B.environment).length>0){q.push(` [context.${z}.environment]`);for(let[G,U]of Object.entries(B.environment))q.push(` ${G} = "${E(U)}"`)}}return q.join(`
|
|
3
3
|
`)+`
|
|
4
4
|
`}function E(w){return w.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}async function _(w){let q={framework:"stx",buildCommand:"bun run build",outputDir:"dist"},z=L.join(w,"package.json");if(await Bun.file(z).exists())try{let K=JSON.parse(await Bun.file(z).text());if(K.scripts?.build)q.buildCommand="bun run build";let M={...K.dependencies,...K.devDependencies};if(M["@stacksjs/stx"]||M.stx)q.framework="stx"}catch{}let B=L.join(w,"stx.config.ts"),G=L.join(w,".config","stx.config.ts");if(await Bun.file(B).exists()||await Bun.file(G).exists())q.framework="stx";let U=["dist","build","out","public",".output"];for(let K of U){let M=L.join(w,K);if(Q.existsSync(M)&&Q.statSync(M).isDirectory()){q.outputDir=K;break}}let W=["functions","netlify/functions","api"];for(let K of W){let M=L.join(w,K);if(Q.existsSync(M)&&Q.statSync(M).isDirectory()){q.functionsDir=K;break}}let X=L.join(w,"netlify","edge-functions");if(Q.existsSync(X))q.edgeFunctionsDir="netlify/edge-functions";let V=L.join(w,q.outputDir||"dist");if(Q.existsSync(V)){let K=Q.existsSync(L.join(V,"index.html")),M=Q.readdirSync(V).filter((Y)=>Y.endsWith(".html"));q.isSPA=K&&M.length===1}return q}function $(w={}){let q={build:{command:w.buildCommand||"bun run build",publish:w.outputDir||"dist"}};if(w.functionsDir)q.build.functions=w.functionsDir,q.functions={directory:w.functionsDir,node_bundler:"esbuild"};if(w.edgeFunctionsDir)q.build.edge_functions=w.edgeFunctionsDir;if(q.headers=[{for:"/*",values:{"X-Frame-Options":"DENY","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"strict-origin-when-cross-origin"}},{for:"/assets/*",values:{"Cache-Control":"public, max-age=31536000, immutable"}}],w.isSPA!==!1)q.redirects=[{from:"/*",to:"/index.html",status:200}];return q.context={production:{environment:{NODE_ENV:"production"}},"deploy-preview":{environment:{NODE_ENV:"development"}}},q}async function I(w,q){let z=await _(w),B=q||$(z),G=Z(B),U=L.join(w,"netlify.toml");return await Bun.write(U,G),U}function O(w){return Q.existsSync(L.join(w,"netlify.toml"))}async function R(w){let q=L.join(w,"netlify.toml");if(!await Bun.file(q).exists())return null;return Bun.file(q).text()}
|
|
5
|
-
export{Z as
|
|
5
|
+
export{Z as Mn,_ as Nn,$ as On,I as Pn,O as Qn,R as Rn};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var L=new Set(["if","else","elseif","else-if","for","foreach","show","model","html","text","bind","key","ref","once","memo","slot","teleport","cloak","pre","effect","init"]),O=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function w(q){return q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(q){let Q=[],W=/<(script|style)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,y;while((y=W.exec(q))!==null)Q.push([y.index,y.index+y[0].length]);return Q}function k(q,Q){for(let[W,y]of q)if(Q>=W&&Q<y)return!0;return!1}function B(q,Q){let W=1,y=0;for(let U=0;U<Q&&U<q.length;U++)if(q[U]===`
|
|
3
3
|
`)W++,y=U+1;return{line:W,column:Q-y+1}}function M(q,Q,W){let y=Q.toLowerCase(),U=q.length,Y=1,J=W;while(J<U){let X=q.indexOf("<",J);if(X===-1)return-1;if(J=X,q.startsWith("<!--",J)){let G=q.indexOf("-->",J+4);if(G===-1)return-1;J=G+3;continue}if(q[J+1]==="/"){let G=/^<\/([a-z][\w-]*)\s*>/i.exec(q.slice(J,J+64));if(!G){J++;continue}if(G[1].toLowerCase()===y){if(Y--,J+=G[0].length,Y===0)return J;continue}J+=G[0].length;continue}let Z=/^<([a-z][\w-]*)\b/i.exec(q.slice(J,J+64));if(!Z){J++;continue}let $=q.indexOf(">",J);if($===-1)return-1;if(Z[1].toLowerCase()===y&&q[$-1]!=="/")Y++;J=$+1}return-1}function C(q,Q,W){let y=/@([a-z][\w:-]*)((?:\.[a-z][\w-]*)*)\s*=\s*"([^"]*)"/gi,U;while((U=y.exec(q))!==null){if(k(Q,U.index))continue;let Y=U[1].toLowerCase().split(":")[0];if(L.has(Y))continue;let J=U[3].trim();if(/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)*$/.test(J)){let X=q.indexOf(U[3],U.index),{line:Z,column:$}=B(q,X<0?U.index:X);W.push({ruleId:"stx/no-bare-function-ref-in-event",message:`Event handler @${U[1]}="${J}" is a bare reference and will not fire. Call it: @${U[1]}="${J}()".`,line:Z,column:$,severity:"error"})}}}function I(q,Q,W){if(Q!=="view")return;let y=/<script\b([^>]*)>/gi,U;while((U=y.exec(q))!==null)if(/(?:^|\s)client(?=[\s/=]|$)/i.test(U[1])){let{line:Y,column:J}=B(q,U.index);W.push({ruleId:"stx/no-view-level-script-client",message:"<script client> at the top level of a view is silently dropped \u2014 only components get client scopes. Move it into a component, or use <script> (server).",line:Y,column:J,severity:"error"})}}function D(q){let Q=q.split("/"),W=[];for(let y of Q){if(y===""||y===".")continue;if(y==="..")W.pop();else W.push(y)}return W.join("/")}function V(q,Q,W){let y=Q.replace(/\\/g,"/"),U=y.indexOf("resources/stores/");if(U===-1)return;let Y=y.slice(0,U+16),J=y.slice(0,y.lastIndexOf("/")),X=/\b(import|export)\s+(type\s+)?([^'"]*?)\s*from\s*['"]([^'"]+)['"]/g,Z;while((Z=X.exec(q))!==null){if(Z[2])continue;let $=Z[1],G=Z[4],N;if(G.startsWith("."))N=!D(`${J}/${G}`).startsWith(D(Y));else N=!0;if(N){let{line:j,column:H}=B(q,Z.index),F=$==="export"?"Value re-export":"Value import";W.push({ruleId:"stx/store-value-imports-must-be-local",message:`${F} from "${G}" is outside resources/stores/ and will be stripped from the store bundle. Use \`${$} type\`, or move the value into the stores dir.`,line:j,column:H,severity:"error"})}}}function b(q){let Q=q.trim(),W=(J)=>{let X=J.match(/[A-Za-z_$][\w$]*/g);return X?X:[]},y=/\bas\s+(.+)$/.exec(Q);if(y){let J=y[1].trim(),X=/^([A-Za-z_$][\w$]*)\s*=>\s*([A-Za-z_$][\w$]*)/.exec(J);if(X)return[X[1],X[2]];let Z=/^\(([^)]*)\)/.exec(J);if(Z)return W(Z[1]);let $=/^([A-Za-z_$][\w$]*)/.exec(J);return $?[$[1]]:[]}let U=/^\(([^)]*)\)\s+(?:in|of)\s+/.exec(Q);if(U)return W(U[1]);let Y=/^([A-Za-z_$][\w$]*)\s+(?:in|of)\s+/.exec(Q);return Y?[Y[1]]:[]}function v(q,Q){let W=/(?::for|x-for|@for)\s*=\s*"([^"]*)"/gi,y;while((y=W.exec(q))!==null){let U=b(y[1]);if(U.length===0)continue;let Y=q.lastIndexOf("<",y.index);if(Y===-1)continue;let J=/^<([a-z][\w-]*)/i.exec(q.slice(Y,Y+64));if(!J)continue;let X=q.indexOf(">",y.index);if(X===-1)continue;let $=q[X-1]==="/"||O.has(J[1].toLowerCase())?X+1:M(q,J[1],X+1),G=$===-1?X+1:$,N=q.indexOf(y[1],y.index),j=q.slice(Y,G);if(N>=0&&N+y[1].length<=G){let H=N-Y;j=j.slice(0,H)+" ".repeat(y[1].length)+j.slice(H+y[1].length)}for(let H of U){let F=new RegExp(`(?<![.\\w$])${w(H)}\\s*\\(`,"g"),A;while((A=F.exec(j))!==null){let K=Y+A.index,{line:_,column:x}=B(q,K);Q.push({ruleId:"stx/no-signal-call-in-for-iteration-var",message:`"${H}" is a :for iteration variable, not a signal \u2014 calling it as "${H}()" leaves it as a function and silently breaks comparisons. Use "${H}" directly.`,line:_,column:x,severity:"error"})}}}}function R(q,Q){let W=/<!--([\s\S]*?)-->/g,y;while((y=W.exec(q))!==null){let Y=y[1].indexOf("`");if(Y!==-1){let J=y.index+4+Y,{line:X,column:Z}=B(q,J);Q.push({ruleId:"stx/no-backticks-in-html-comments",message:"Backtick inside an HTML comment leaks into the merged setup function and flips the JS parser into template-literal mode. Remove it or rephrase the comment.",line:X,column:Z,severity:"error"})}}}function z(q,Q){return q?.[Q]!==!1}function E(q,Q={}){let W=[],y=P(q),U=(Q.filePath??"").replace(/\\/g,"/"),Y=Q.fileKind??(/\/components?\//i.test(U)?"component":"view");if(z(Q.rules,"stx/no-bare-function-ref-in-event"))C(q,y,W);if(z(Q.rules,"stx/no-view-level-script-client"))I(q,Y,W);if(U&&z(Q.rules,"stx/store-value-imports-must-be-local"))V(q,U,W);if(z(Q.rules,"stx/no-signal-call-in-for-iteration-var"))v(q,W);if(z(Q.rules,"stx/no-backticks-in-html-comments"))R(q,W);W.sort((X,Z)=>X.line-Z.line||X.column-Z.column);let J=new Set;return W.filter((X)=>{let Z=`${X.ruleId}:${X.line}:${X.column}`;if(J.has(Z))return!1;return J.add(Z),!0})}
|
|
4
|
-
export{E as
|
|
4
|
+
export{E as fg};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ep as H,Gp as $}from"./chunk-g8b81pzc.js";function A(q,U){switch(U.format){case"json":return J(q,U);case"markdown":return O(q,U);case"text":default:return K(q,U)}}function J(q,U){let j=x(q,U);return JSON.stringify({timestamp:q.timestamp,buildDir:q.buildDir,summary:{totalSize:q.totalSize,totalSizeFormatted:H(q.totalSize),totalGzipSize:q.totalGzipSize,totalGzipSizeFormatted:H(q.totalGzipSize),moduleCount:q.moduleCount,chunkCount:q.chunks.length,duplicateCount:q.duplicates.length},byType:Object.fromEntries(Object.entries(q.byType).map(([Q,Y])=>[Q,{...Y,sizeFormatted:H(Y.size),gzipSizeFormatted:H(Y.gzipSize)}])),chunks:q.chunks.map((Q)=>({name:Q.name,size:Q.size,sizeFormatted:H(Q.size),gzipSize:Q.gzipSize,gzipSizeFormatted:H(Q.gzipSize),moduleCount:Q.modules.length,isEntry:Q.isEntry,isVendor:Q.isVendor})),largestModules:q.largestModules.slice(0,U.topModules||10).map((Q)=>({path:Q.path,size:Q.size,sizeFormatted:H(Q.size),gzipSize:Q.gzipSize,gzipSizeFormatted:H(Q.gzipSize),type:Q.type})),duplicates:q.duplicates,analysis:j,warnings:q.warnings},null,2)}function K(q,U){let j=[],Q=U.showGzip!==!1;if(j.push(""),j.push("Bundle Analysis Report"),j.push("\u2550".repeat(50)),j.push(""),j.push("Summary"),j.push("\u2500".repeat(50)),Q)j.push(`Total Size: ${H(q.totalSize)} (${H(q.totalGzipSize)} gzip)`);else j.push(`Total Size: ${H(q.totalSize)}`);if(j.push(`Modules: ${q.moduleCount}`),j.push(`Chunks: ${q.chunks.length}`),q.duplicates.length>0)j.push(`Duplicates: ${q.duplicates.length}`);if(j.push(""),U.threshold&&q.totalSize>U.threshold)j.push(`\u26A0\uFE0F Bundle exceeds threshold of ${H(U.threshold)}!`),j.push("");j.push("Size by Type"),j.push("\u2500".repeat(50));let Y=["js","css","html","image","font","other"];for(let D of Y){let F=q.byType[D];if(F.count>0){let X=$(F.size,q.totalSize),Z=Q?` (${H(F.gzipSize)} gzip)`:"";j.push(` ${D.padEnd(8)} ${H(F.size).padStart(12)}${Z} ${X.padStart(6)} (${F.count} files)`)}}j.push(""),j.push("Chunks"),j.push("\u2500".repeat(50));for(let D of q.chunks.slice(0,10)){let F=[];if(D.isEntry)F.push("entry");if(D.isVendor)F.push("vendor");let X=F.length>0?` [${F.join(", ")}]`:"",Z=Q?` (${H(D.gzipSize)} gzip)`:"";j.push(` ${D.name.padEnd(20)} ${H(D.size).padStart(12)}${Z}${X}`)}if(q.chunks.length>10)j.push(` ... and ${q.chunks.length-10} more chunks`);j.push("");let V=U.topModules||10;j.push(`Largest Modules (Top ${V})`),j.push("\u2500".repeat(50));for(let D=0;D<Math.min(V,q.largestModules.length);D++){let F=q.largestModules[D],X=Q?` (${H(F.gzipSize)} gzip)`:"";j.push(` ${(D+1).toString().padStart(2)}. ${F.path}`),j.push(` ${H(F.size)}${X}`)}if(j.push(""),q.duplicates.length>0){j.push("Duplicate Modules"),j.push("\u2500".repeat(50));for(let D of q.duplicates.slice(0,5))j.push(` ${D.path}`),j.push(` ${D.count} copies, wasting ${H(D.wastedBytes)}`);if(q.duplicates.length>5)j.push(` ... and ${q.duplicates.length-5} more duplicates`);j.push("")}if(U.recommendations!==!1){let D=x(q,U);if(D.recommendations.length>0){j.push("Recommendations"),j.push("\u2500".repeat(50));for(let F of D.recommendations.slice(0,5)){let X=F.impact==="high"?"\u26A1":F.impact==="medium"?"\uD83D\uDCCA":"\uD83D\uDCA1";j.push(` ${X} ${F.title}`),j.push(` ${F.description}`)}j.push("")}}if(q.warnings.length>0){j.push("Warnings"),j.push("\u2500".repeat(50));for(let D of q.warnings)j.push(` \u26A0\uFE0F ${D}`);j.push("")}return j.join(`
|
|
3
3
|
`)}function O(q,U){let j=[],Q=U.showGzip!==!1;if(j.push("# Bundle Analysis Report"),j.push(""),j.push(`Generated: ${new Date(q.timestamp).toISOString()}`),j.push(""),j.push("## Summary"),j.push(""),j.push("| Metric | Value |"),j.push("|--------|-------|"),j.push(`| Total Size | ${H(q.totalSize)} |`),Q)j.push(`| Gzip Size | ${H(q.totalGzipSize)} |`);j.push(`| Modules | ${q.moduleCount} |`),j.push(`| Chunks | ${q.chunks.length} |`),j.push(`| Duplicates | ${q.duplicates.length} |`),j.push(""),j.push("## Size by Type"),j.push(""),j.push("| Type | Size | Gzip | % | Files |"),j.push("|------|------|------|---|-------|");let Y=["js","css","html","image","font","other"];for(let D of Y){let F=q.byType[D];if(F.count>0)j.push(`| ${D} | ${H(F.size)} | ${H(F.gzipSize)} | ${$(F.size,q.totalSize)} | ${F.count} |`)}j.push(""),j.push("## Chunks"),j.push(""),j.push("| Name | Size | Gzip | Modules | Type |"),j.push("|------|------|------|---------|------|");for(let D of q.chunks.slice(0,15)){let F=D.isEntry?"Entry":D.isVendor?"Vendor":"-";j.push(`| ${D.name} | ${H(D.size)} | ${H(D.gzipSize)} | ${D.modules.length} | ${F} |`)}j.push("");let V=U.topModules||10;j.push(`## Largest Modules (Top ${V})`),j.push(""),j.push("| # | Path | Size | Gzip |"),j.push("|---|------|------|------|");for(let D=0;D<Math.min(V,q.largestModules.length);D++){let F=q.largestModules[D];j.push(`| ${D+1} | \`${F.path}\` | ${H(F.size)} | ${H(F.gzipSize)} |`)}if(j.push(""),q.duplicates.length>0){j.push("## Duplicates"),j.push(""),j.push("| Path | Copies | Wasted |"),j.push("|------|--------|--------|");for(let D of q.duplicates.slice(0,10))j.push(`| \`${D.path}\` | ${D.count} | ${H(D.wastedBytes)} |`);j.push("")}if(U.recommendations!==!1){let D=x(q,U);if(D.recommendations.length>0){j.push("## Recommendations"),j.push("");for(let F of D.recommendations)j.push(`### ${F.title}`),j.push(""),j.push(F.description),j.push(""),j.push(`- **Impact:** ${F.impact}`),j.push(`- **Effort:** ${F.effort}`),j.push("")}}return j.join(`
|
|
4
4
|
`)}function x(q,U){let j=[],Q=[];if(U.threshold&&q.totalSize>U.threshold)j.push({severity:"error",message:`Bundle size (${H(q.totalSize)}) exceeds threshold (${H(U.threshold)})`});if(q.totalSize>1048576)j.push({severity:"warning",message:`Bundle is over 1MB (${H(q.totalSize)})`,details:"Large bundles can significantly impact load time"});if(q.duplicates.length>0){let F=q.duplicates.reduce((X,Z)=>X+Z.wastedBytes,0);j.push({severity:"warning",message:`${q.duplicates.length} duplicate modules found, wasting ${H(F)}`}),Q.push({title:"Remove Duplicate Modules",description:"Consider using import aliases or ensuring consistent package versions to eliminate duplicates.",impact:"medium",effort:"low"})}if(q.byType.js.size/q.totalSize>0.8&&q.totalSize>512000)Q.push({title:"Code Splitting",description:"Over 80% of your bundle is JavaScript. Consider splitting code by route or feature.",impact:"high",effort:"medium"});let V=q.largestModules.filter((F)=>F.size>102400);if(V.length>0){j.push({severity:"info",message:`${V.length} modules are over 100KB`});for(let F of V){if(F.path.includes("lodash")&&!F.path.includes("lodash-es"))Q.push({title:"Use lodash-es instead of lodash",description:"lodash-es supports tree-shaking and can significantly reduce bundle size.",impact:"high",effort:"low"});if(F.path.includes("moment"))Q.push({title:"Replace moment.js",description:"Consider using date-fns or dayjs for smaller date handling libraries.",impact:"high",effort:"medium"})}}if(q.byType.image.size>512000)Q.push({title:"Optimize Images",description:`Images account for ${H(q.byType.image.size)}. Consider using WebP/AVIF formats and responsive images.`,impact:"high",effort:"low"});let D=100;if(q.totalSize>1048576)D-=20;else if(q.totalSize>512000)D-=10;if(D-=Math.min(20,q.duplicates.length*2),D-=Math.min(15,V.length*3),U.threshold&&q.totalSize>U.threshold)D-=25;return{score:Math.max(0,D),issues:j,recommendations:Q}}var W={lodash:{alternative:"lodash-es or individual imports",savings:"~70%"},moment:{alternative:"date-fns or dayjs",savings:"~90%"},"chart.js":{alternative:"chart.js with tree-shaking",savings:"~50%"},"highlight.js":{alternative:"Selective language imports",savings:"~80%"},fontawesome:{alternative:"Individual icon imports",savings:"~90%"},"material-ui":{alternative:"Named imports from @mui/*",savings:"~60%"}};function E(q){for(let[U,j]of Object.entries(W))if(q.includes(U))return{title:`Optimize ${U}`,description:`Consider using ${j.alternative}. Potential savings: ${j.savings}`,impact:"high",effort:"low"};return null}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as yp,x as zp,E as Ap};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Vy as $}from"./chunk-q60knhjf.js";import H from"path";function Z(j){return j.startsWith("http://")||j.startsWith("https://")||j.startsWith("//")}async function _(j,z,Q){try{let q;if(j.startsWith("/")){let B=z;for(let J=0;J<5;J++){let K=H.join(B,j);if(await Bun.file(K).exists())return K;B=H.dirname(B)}q=H.join(z,j)}else if(j.startsWith("./")||j.startsWith("../"))q=H.resolve(z,j);else q=H.resolve(z,j);if(await Bun.file(q).exists())return q;return null}catch{return null}}async function I(j,z,Q){let q=j,B=H.dirname(z),J=/<script\b([^>]*)src=["']([^"']+)["']([^>]*)><\/script>/gi,K;while((K=J.exec(q))!==null){let[T,X,w,Y]=K;if(Z(w))continue;let G=await _(w,B,z);if(G)try{let O=await Bun.file(G).text();if(Q.add(G),w.endsWith(".ts")||w.endsWith(".tsx")){let N=await Bun.build({entrypoints:[G],target:"browser",minify:!1,define:$()});if(N.outputs.length>0)O=await N.outputs[0].text()}let L=`<script>
|
|
3
3
|
// Source: ${w}
|
|
4
4
|
${O}
|
|
5
5
|
</script>`;q=q.replace(T,L),J.lastIndex=0}catch(O){}}let V=/<link\b([^>]*)href=["']([^"']+)["']([^>]*)(?:\/?>)/gi,W;while((W=V.exec(q))!==null){let[T,X,w,Y]=W,G=X+Y;if(Z(w))continue;if(/rel=["']stylesheet["']/.test(G)||w.endsWith(".css")){let L=await _(w,B,z);if(L)try{let N=await Bun.file(L).text();Q.add(L);let y=`<style>
|
|
6
6
|
/* Source: ${w} */
|
|
7
7
|
${N}
|
|
8
8
|
</style>`;q=q.replace(T,y),V.lastIndex=0}catch(N){}}}return q}
|
|
9
|
-
export{Z as
|
|
9
|
+
export{Z as iv,_ as jv,I as kv};
|
|
@@ -5,4 +5,4 @@ var Y=[{pattern:/document\.getElementById\s*\(/g,message:"document.getElementByI
|
|
|
5
5
|
${G.join(`
|
|
6
6
|
`)}
|
|
7
7
|
Tip: prefer useRef(), navigate(), and composables for component code`;if(z.failOnViolation)throw Error(k);else console.warn(k)}}
|
|
8
|
-
export{Y as
|
|
8
|
+
export{Y as vt,Z as wt};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{abortNavigation as r,clearMiddleware as t,createClientCookieManager as o,createMiddlewareContext as i,createRouteLocation as d,createServerCookieManager as l,createStorageManager as n,defineMiddleware as M,getMiddleware as g,getMiddlewareNames as w,hasMiddleware as s,loadMiddlewareFromDirectory as u,navigateTo as c,registerMiddleware as R,runMiddleware as v}from"stx-router";
|
|
3
|
-
export{r as
|
|
3
|
+
export{r as lh,t as mh,o as nh,i as oh,d as ph,l as qh,n as rh,M as sh,g as th,w as uh,s as vh,u as wh,c as xh,R as yh,v as zh};
|
|
@@ -158,4 +158,4 @@ else {
|
|
|
158
158
|
})();
|
|
159
159
|
</script>
|
|
160
160
|
`,j}function E(C){let{html:D,bindings:w,stores:j}=y(C);if(w.length===0)return C;let k=B(w,j),q=D.lastIndexOf("</body>");if(q!==-1)return D.slice(0,q)+k+D.slice(q);return D+k}
|
|
161
|
-
export{y as
|
|
161
|
+
export{y as Tt,B as Ut,E as Vt};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Qa as x}from"./chunk-7cgmq685.js";import{db as w}from"./chunk-vcr5pzpx.js";function K(j){let b={};if(j)for(let q of j.props)b[q.name]=q.default;return{collapsed:!1,values:b,filter:""}}function N(j,b){if(!j)return`
|
|
3
3
|
<div class="stx-controls-panel">
|
|
4
4
|
<div class="stx-controls-empty">
|
|
5
5
|
Select a story to edit props
|
|
@@ -137,4 +137,4 @@ import{Ua as x}from"./chunk-5wecgn5n.js";import{hb as w}from"./chunk-zwpm1pa8.js
|
|
|
137
137
|
font-size: 12px;
|
|
138
138
|
}
|
|
139
139
|
`}function F(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}
|
|
140
|
-
export{K as
|
|
140
|
+
export{K as j,N as k,O as l,P as m};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import L from"fs";import C from"path";import{gzipSync as H}from"zlib";import{createHash as _}from"crypto";var Y={".js":"js",".mjs":"js",".cjs":"js",".ts":"js",".jsx":"js",".tsx":"js",".css":"css",".scss":"css",".sass":"css",".less":"css",".html":"html",".htm":"html",".png":"image",".jpg":"image",".jpeg":"image",".gif":"image",".svg":"image",".webp":"image",".avif":"image",".ico":"image",".woff":"font",".woff2":"font",".ttf":"font",".eot":"font",".otf":"font"},R=[/node_modules/,/vendor/,/bower_components/,/\.min\./],N=[/index\.(js|ts|html)$/,/main\.(js|ts)$/,/app\.(js|ts)$/,/entry\.(js|ts)$/];async function y(j,Q={}){let{includeSourceMaps:U=!1,parseImports:K=!0,detectDuplicates:W=!0,topModulesCount:X=20}=Q;if(!L.existsSync(j))throw Error(`Build directory not found: ${j}`);if(!L.statSync(j).isDirectory())throw Error(`Not a directory: ${j}`);let J=await E(j,U),q=[],V=[];for(let G of J)try{let O=await I(G,j,K);q.push(O)}catch(O){V.push(`Failed to process ${G}: ${O}`)}let $=g(q,j),B=q.reduce((G,O)=>G+O.size,0),w=q.reduce((G,O)=>G+O.gzipSize,0),A=k(q),F=W?z(q):[],v=[...q].sort((G,O)=>O.size-G.size).slice(0,X);return{timestamp:Date.now(),buildDir:C.resolve(j),chunks:$,totalSize:B,totalGzipSize:w,moduleCount:q.length,duplicates:F,byType:A,largestModules:v,warnings:V}}async function E(j,Q){let U=[];async function K(W){let X=await L.promises.readdir(W,{withFileTypes:!0});for(let Z of X){let J=C.join(W,Z.name);if(Z.isDirectory()){if(!Z.name.startsWith(".")&&Z.name!=="node_modules")await K(J)}else if(Z.isFile()){if(!Q&&Z.name.endsWith(".map"))continue;U.push(J)}}}return await K(j),U}async function I(j,Q,U){let K=await L.promises.readFile(j),W=C.relative(Q,j),X=C.extname(j).toLowerCase(),Z=K.length,J=S(K),q=T(K,X),V=_("md5").update(K).digest("hex").slice(0,8),$=Y[X]||"other",B=[];if(U&&$==="js")B.push(...x(K.toString("utf-8")));return{id:W,path:W,size:Z,gzipSize:J,parsedSize:q,extension:X,type:$,imports:B,importedBy:[],hash:V}}function S(j){try{let Q=H(j,{level:9}).length;return Math.min(Q,j.length)}catch{return j.length}}function T(j,Q){if(Q.includes(".min.")||j.length<1000)return j.length;let K=Y[Q];if(K==="js")return Math.round(j.length*0.6);if(K==="css")return Math.round(j.length*0.7);return j.length}function x(j){let Q=[],U=/import\s+(?:[\w*{}\s,]+\s+from\s+)?['"]([^'"]+)['"]/g,K;while((K=U.exec(j))!==null)Q.push(K[1]);let W=/import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while((K=W.exec(j))!==null)Q.push(K[1]);let X=/require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;while((K=X.exec(j))!==null)Q.push(K[1]);return[...new Set(Q)]}function g(j,Q){let U=new Map;for(let W of j){let X=W.path.split(C.sep),Z;if(X.length===1)Z=C.basename(W.path,W.extension);else Z=X[0];let J=U.get(Z)||[];J.push(W),U.set(Z,J)}let K=[];for(let[W,X]of U){let Z=X.reduce(($,B)=>$+B.size,0),J=X.reduce(($,B)=>$+B.gzipSize,0),q=X.some(($)=>N.some((B)=>B.test($.path))),V=X.some(($)=>R.some((B)=>B.test($.path)));K.push({name:W,files:X.map(($)=>$.path),modules:X,size:Z,gzipSize:J,isEntry:q,isVendor:V})}return K.sort((W,X)=>X.size-W.size)}function k(j){let Q={js:{count:0,size:0,gzipSize:0},css:{count:0,size:0,gzipSize:0},html:{count:0,size:0,gzipSize:0},image:{count:0,size:0,gzipSize:0},font:{count:0,size:0,gzipSize:0},other:{count:0,size:0,gzipSize:0}};for(let U of j)Q[U.type].count++,Q[U.type].size+=U.size,Q[U.type].gzipSize+=U.gzipSize;return Q}function z(j){let Q=new Map;for(let K of j){let W=Q.get(K.hash)||[];W.push(K),Q.set(K.hash,W)}let U=[];for(let[,K]of Q)if(K.length>1){let W=K[0];U.push({path:W.path,count:K.length,wastedBytes:W.size*(K.length-1),locations:K.map((X)=>X.path)})}return U.sort((K,W)=>W.wastedBytes-K.wastedBytes)}function b(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(2)} KB`;return`${(j/1048576).toFixed(2)} MB`}function h(j){let Q=j.match(/^([\d.]+)\s*(B|KB|MB|GB)?$/i);if(!Q)return 0;let U=Number.parseFloat(Q[1]);switch((Q[2]||"B").toUpperCase()){case"KB":return U*1024;case"MB":return U*1024*1024;case"GB":return U*1024*1024*1024;default:return U}}function p(j,Q){if(Q===0)return"0%";return`${(j/Q*100).toFixed(1)}%`}
|
|
3
|
-
export{y as
|
|
3
|
+
export{y as Dp,b as Ep,h as Fp,p as Gp};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{Q as
|
|
2
|
+
import{$q as J}from"./chunk-xygc53vr.js";function Q(E,D){let A=new Set,B=new Map,C=new Map,F={globalProperties:{},performance:!1,compilerOptions:{}},z={config:F,_components:B,_directives:C,_installedPlugins:A,use(q,...x){if(A.has(q))return z;if(A.add(q),typeof q==="function")q(z,...x);else if(typeof q.install==="function")q.install(z,...x);return z},provide(q,x){return J(q,x),z},component(q,x){if(!x)return B.get(q);return B.set(q,x),z},directive(q,x){if(!x)return C.get(q);return C.set(q,x),z},mount(q){if(typeof document<"u"){let x=globalThis.__stx_globals||(globalThis.__stx_globals={});Object.assign(x,F.globalProperties),document.querySelectorAll("[v-cloak]").forEach((K)=>{K.removeAttribute("v-cloak")})}return z},unmount(){B.clear(),C.clear(),A.clear()}};return z}function R(E){return class extends HTMLElement{_component;_shadow;constructor(){super();this._shadow=this.attachShadow({mode:"open"}),this._component=E}connectedCallback(){if(this._component?.render){let D=this._component.render();if(typeof D==="string")this._shadow.innerHTML=D}else if(this._component?.template)this._shadow.innerHTML=this._component.template;else if(typeof this._component==="string")this._shadow.innerHTML=this._component}disconnectedCallback(){this._shadow.innerHTML=""}}}
|
|
3
|
+
export{Q as Sq,R as Tq};
|