@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,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{c as
|
|
2
|
+
import{Mi as E}from"./chunk-qfwzdffx.js";import{_k as D}from"./chunk-cn409b69.js";import{Pq as N}from"./chunk-ncnfa8ae.js";import{rB as x}from"./chunk-3jm3snz8.js";import C from"fs";import J from"path";var{serve:v}=globalThis.Bun;var y={".js":"application/javascript",".mjs":"application/javascript",".css":"text/css",".json":"application/json",".html":"text/html",".txt":"text/plain",".xml":"application/xml",".pdf":"application/pdf",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".mp4":"video/mp4",".webm":"video/webm",".ogg":"audio/ogg",".mp3":"audio/mpeg",".wav":"audio/wav",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};async function c(O={}){let Z=J.resolve(O.outputDir||".output"),k=O.port||3000,U=D(Z);if(!U)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${U.routes.length} routes...`);let V=new Map,Y=new Map,_=new Map;for(let w of U.routes)try{let K=J.join(Z,w.compiledPath),A=JSON.parse(await Bun.file(K).text());V.set(w.pattern,A),_.set(w.pattern,N(A.html));let W=J.join(Z,w.fragmentPath);if(await Bun.file(W).exists())Y.set(w.pattern,await Bun.file(W).text())}catch(K){console.warn(`[stx] Failed to load route ${w.pattern}:`,K)}let $=new Map,F=[];for(let w of U.routes)if(w.hasParams){let K=[],A=w.pattern.replace(/:([^/]+)/g,(W,G)=>{return K.push(G),"([^/]+)"});F.push({regex:new RegExp(`^${A}$`),route:w,paramNames:K})}else $.set(w.pattern,w);let S=v({port:k,async fetch(w){let A=new URL(w.url).pathname;if(O.onRequest){let j=await O.onRequest(w);if(j)return j}if(O.apiRoutes?.[A])return O.apiRoutes[A](w);if((w.method==="GET"||w.method==="HEAD")&&A!=="/"){let j=J.resolve(Z,"public"),z;try{z=decodeURIComponent(A)}catch{z=A}if(!z.includes("\x00")){let B=J.resolve(j,`.${z}`);if(B===j||B.startsWith(`${j}${J.sep}`))try{if(C.existsSync(B)&&C.statSync(B).isFile()){let H=J.extname(B).toLowerCase(),I=y[H]||"application/octet-stream",b=A.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(A);return new Response(Bun.file(B),{headers:{"Content-Type":I,"Cache-Control":b?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let W=w.headers.get("X-STX-Router")==="true",G=null,L={};if(G=$.get(A)||null,!G)for(let{regex:j,route:z,paramNames:B}of F){let X=A.match(j);if(X){G=z,B.forEach((H,I)=>{L[H]=X[I+1]});break}}if(!G){let j=$.get("/404")||null;if(j){let z=V.get(j.pattern);if(z)return new Response(z.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(W){let j=Y.get(G.pattern);if(j){let z=_.get(G.pattern);return new Response(j,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...z?{"X-STX-Layout":z.layout,"X-STX-Layout-Group":z.group}:{},"Cache-Control":"no-cache"}})}}let Q=V.get(G.pattern);if(!Q){let j=$.get("/500")||null;if(j){let z=V.get(j.pattern);if(z)return new Response(z.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!Q.hasServerScripts&&Object.keys(Q.placeholders).length===0)return new Response(Q.html,{headers:{"Content-Type":"text/html","Cache-Control":"public, max-age=60"}});try{let{html:j,boundaries:z}=await E(Q,{params:L,request:w});if(z&&z.length>0){let{renderStreamingPage:B,streamToResponse:X}=await import("././streaming.js");return X(B(j,z,{timeoutMs:30000}),{headers:{"Cache-Control":"no-cache"}})}return new Response(j,{headers:{"Content-Type":"text/html","Cache-Control":"no-cache"}})}catch(j){return console.error(`[stx] Hydration error for ${A}:`,j),new Response(Q.html,{headers:{"Content-Type":"text/html"}})}}});return console.log(`[stx] Production server running at http://localhost:${k}`),console.log(`[stx] Serving ${U.routes.length} routes (${V.size} pre-loaded)`),{port:k,stop:()=>S.stop()}}
|
|
3
|
+
export{c as Ki};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{rB as T}from"./chunk-3jm3snz8.js";import W from"fs";import F from"path";async function x(j,N={}){let Z=performance.now(),{update:q=!1,threshold:$=0.1,snapshotDir:X=F.join(j.root,".stx","story","snapshots"),width:K=800,height:b=600,deviceScaleFactor:O=1,filter:A}=N,J={total:0,passed:0,failed:0,new:0,failures:[],duration:0};await W.promises.mkdir(X,{recursive:!0});let _;try{_=await import("very-happy-dom")}catch{return console.warn("very-happy-dom not installed, using fallback HTML comparison"),v(j,N)}let{HtmlRenderer:Y,ImageDiff:M}=_,k=new Y,C=new M,R=A?j.storyFiles.filter((Q)=>A.some((U)=>Q.fileName.includes(U))):j.storyFiles;for(let Q of R){let U=Q.story?.variants||[{id:"default",title:"Default",state:{}}];for(let B of U){J.total++;let V=F.join(X,`${Q.fileName}-${B.id}.png`),g=F.join(X,`${Q.fileName}-${B.id}.actual.png`),w=F.join(X,`${Q.fileName}-${B.id}.diff.png`);try{let G=await H(j,Q,B.id),I=await k.render(G,{width:K,height:b,deviceScaleFactor:O,format:"png"}),z=await D(V);if(q||!z){if(await W.promises.writeFile(V,I.data),!z)J.new++;J.passed++}else{let P=await W.promises.readFile(V),L=await C.compare(P,I.data,{threshold:$});if(L.match)J.passed++,await E(g),await E(w);else{if(J.failed++,await W.promises.writeFile(g,I.data),L.diffImage)await W.promises.writeFile(w,L.diffImage);J.failures.push({storyId:Q.id,variantId:B.id,component:Q.fileName,message:`Visual difference: ${L.diffPercentage.toFixed(2)}% pixels differ`,baselinePath:V,actualPath:g,diffPath:w,diffPercentage:L.diffPercentage})}}}catch(G){J.failed++,J.failures.push({storyId:Q.id,variantId:B.id,component:Q.fileName,message:G instanceof Error?G.message:String(G)})}}}return J.duration=performance.now()-Z,J}async function v(j,N){let Z=performance.now(),{update:q=!1,snapshotDir:$=F.join(j.root,".stx","story","snapshots"),filter:X}=N,K={total:0,passed:0,failed:0,new:0,failures:[],duration:0};await W.promises.mkdir($,{recursive:!0});let b=X?j.storyFiles.filter((O)=>X.some((A)=>O.fileName.includes(A))):j.storyFiles;for(let O of b){let A=O.story?.variants||[{id:"default",title:"Default",state:{}}];for(let J of A){K.total++;let _=F.join($,`${O.fileName}-${J.id}.html`);try{let Y=await H(j,O,J.id),M=await D(_);if(q||!M){if(await W.promises.writeFile(_,Y),!M)K.new++;K.passed++}else{let k=await W.promises.readFile(_,"utf-8"),C=S(k),R=S(Y);if(C===R)K.passed++;else K.failed++,K.failures.push({storyId:O.id,variantId:J.id,component:O.fileName,message:"HTML content differs from baseline",baselinePath:_})}}catch(Y){K.failed++,K.failures.push({storyId:O.id,variantId:J.id,component:O.fileName,message:Y instanceof Error?Y.message:String(Y)})}}}return K.duration=performance.now()-Z,K}async function H(j,N,Z){try{let{renderStoryVariant:q,generatePreviewDocument:$}=await import("./story/renderer.js"),X=await q(j,N,Z);return $(X,{title:N.fileName})}catch{let q=await W.promises.readFile(N.path,"utf-8");return`<!DOCTYPE html><html><head><title>${N.fileName}</title></head><body>${q}</body></html>`}}function S(j){return j.replace(/\s+/g," ").replace(/>\s+</g,"><").trim()}async function D(j){try{return await W.promises.access(j),!0}catch{return!1}}async function E(j){try{await W.promises.unlink(j)}catch{}}function y(j){let N=j.failed>0?"failed":"passed",Z=j.failures.map((q)=>`
|
|
3
3
|
<tr class="failure-row">
|
|
4
4
|
<td>${q.component}</td>
|
|
5
5
|
<td>${q.variantId}</td>
|
|
@@ -78,4 +78,4 @@ import{jE as T}from"./chunk-6r70w54p.js";import W from"fs";import F from"path";a
|
|
|
78
78
|
`:""}
|
|
79
79
|
</body>
|
|
80
80
|
</html>`}
|
|
81
|
-
export{x as
|
|
81
|
+
export{x as F,y as G};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{I as
|
|
2
|
+
import{Sk as H,Xk as Q}from"./chunk-5ggw1dyv.js";import{rB as F}from"./chunk-3jm3snz8.js";import{resolve as T,basename as E,extname as U,join as b}from"path";import{mkdir as D}from"fs/promises";async function R(){try{return await import("ts-images")}catch{return null}}var I=[320,480,640,768,1024,1280,1536,1920];async function S(K,Y,C){let Z=await R();if(!Z)return console.warn("[stx-media] ts-images not installed, skipping responsive generation"),null;let X=T(K);if(!await Q(X))return console.warn(`[stx-media] Source file not found: ${K}`),null;try{let k=Y.responsiveWidths||C.breakpoints||I,L=Y.formats||C.defaultFormats||["avif","webp","jpeg"],q=C.outputDir||"dist/images",V=C.baseUrl||"/images";await D(q,{recursive:!0});let _=await H(X),x=E(K,U(K)),M=C.formatQuality||{jpeg:{quality:82},png:{quality:80},webp:{quality:82},avif:{quality:75}},$={src:K,byFormat:{},srcsets:{}};for(let J of L){$.byFormat[J]=[];let N=[];for(let j of k){let W=`${x}-${j}w-${_}.${J}`,B=b(q,W),G=`${V}/${W}`;try{let O=M[J]?.quality||80;if(await Q(B)){$.byFormat[J].push({path:B,url:G,width:j,height:0,format:J,size:0}),N.push(`${G} ${j}w`);continue}let z=await Z.processImage({input:X,output:B,format:J,quality:O,resize:{width:j}});if(z)$.byFormat[J].push({path:B,url:G,width:j,height:z.height||Math.round(j*(z.height||1)/(z.width||1)),format:J,size:z.outputSize||0}),N.push(`${G} ${j}w`)}catch(O){console.warn(`[stx-media] Failed to generate ${J} at ${j}w: ${O}`)}}$.srcsets[J]=N.join(", ")}let A=Y.placeholder||C.placeholderStrategy||"thumbhash";if(A!=="none")try{if(A==="thumbhash"){let J=await Z.generateThumbHash(X);$.placeholder={dataURL:J.dataUrl,width:J.width||32,height:J.height||32,strategy:"thumbhash"}}else{let J=await Z.generatePlaceholder(X,{strategy:A,width:20});$.placeholder={dataURL:J.dataURL,width:J.width,height:J.height,strategy:A}}}catch(J){console.warn(`[stx-media] Failed to generate placeholder: ${J}`)}return $.sizes=Y.sizes||y(k),$}catch(k){return console.error(`[stx-media] Responsive generation failed: ${k}`),null}}function y(K){let Y=[...K].sort((Z,X)=>Z-X),C=[];for(let Z=0;Z<Y.length-1;Z++){let X=Y[Z];C.push(`(max-width: ${X}px) ${X}px`)}return C.push(`${Y[Y.length-1]}px`),C.join(", ")}function d(K,Y="width"){if(!K||K.length===0)return"";if(Y==="dpr")return K.filter((C)=>C.dpr).map((C)=>`${C.url} ${C.dpr}x`).join(", ");return K.map((C)=>`${C.url} ${C.width}w`).join(", ")}async function m(K,Y,C){let Z=[];for(let X of Y){let k=await S(X.src,{responsiveWidths:X.widths},C);if(k){for(let[L,q]of Object.entries(k.srcsets))if(q)Z.push({media:X.media,srcset:q,type:P(L)})}}return Z}function P(K){switch(K){case"avif":return"image/avif";case"webp":return"image/webp";case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";default:return"image/jpeg"}}
|
|
3
|
+
export{I as Ok,S as Pk,d as Qk,m as Rk};
|
|
@@ -87,4 +87,4 @@ var z=new Map;function q(h){if(z.has(h.id))console.warn(`Addon "${h.id}" is alre
|
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
89
|
`}}};function V(){q(D),q(E),q(F),q(G),q(H),q(I),q(J),q(K),q(L),q(M)}
|
|
90
|
-
export{q as
|
|
90
|
+
export{q as md,N as nd,O as od,P as pd,Q as qd,S as rd,T as sd,U as td,D as ud,E as vd,F as wd,G as xd,H as yd,I as zd,J as Ad,K as Bd,L as Cd,M as Dd,V as Ed};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{go as y}from"./chunk-cdbwprfv.js";import{ko as q}from"./chunk-mv03qb75.js";import{no as K,oo as M,po as N,qo as O}from"./chunk-57p201gb.js";import{wo as H}from"./chunk-cpcc11vp.js";import{Tr as X,Zr as A}from"./chunk-w01y57f5.js";import{Tw as j}from"./chunk-qdc3aav1.js";var{serve:F}=globalThis.Bun;import V from"fs";import E from"path";async function P(Y,J={}){let L=J.port||3000,Z=J.watch!==!1,B=E.resolve(Y);if(!V.existsSync(B))return console.error(`${j.red}Error: File not found: ${j.bright}${B}${j.reset}`),!1;if(!B.endsWith(".md"))return console.error(`${j.red}Error: File must have .md extension: ${j.bright}${B}${j.reset}`),!1;console.log(`${j.blue}Processing${j.reset} ${j.bright}${Y}${j.reset}...`);let _=null,$=async()=>{try{let{content:z,data:G}=await A(B,{markdown:{syntaxHighlighting:{serverSide:!0,enabled:!0,defaultTheme:X.markdown?.syntaxHighlighting?.defaultTheme||"github-dark",highlightUnknownLanguages:!0}}}),R=J.markdown?.syntaxHighlighting||X.markdown?.syntaxHighlighting,I=R?.defaultTheme||"github-dark",W=["github-dark"],k=R?.additionalThemes||[],C=[...new Set([...W,...k])].map((U)=>`<option value="${U}"${U===I?" selected":""}>${U}</option>`).join(`
|
|
3
3
|
`);return _=`
|
|
4
4
|
<!DOCTYPE html>
|
|
5
5
|
<html lang="en">
|
|
@@ -168,4 +168,4 @@ ${j.blue}stx${j.reset} ${j.green}${process.env.stx_VERSION||"v0.0.10"}${j.reset
|
|
|
168
168
|
${j.bright}\u2192 ${j.cyan}http://localhost:${D}/${j.reset}`),console.log(`
|
|
169
169
|
${j.yellow}Routes:${j.reset}`);let x=E.relative(process.cwd(),B);if(console.log(` ${j.green}\u2514\u2500 /${j.reset} \u2192 ${j.bright}${x}${j.reset}`),console.log(`
|
|
170
170
|
Press ${j.cyan}h${j.reset} + ${j.cyan}Enter${j.reset} to show shortcuts`),H(Q.url.toString(),()=>{if(Z)V.watch(E.dirname(B),{recursive:!0}).close();Q.stop()}),J.native)await y(D,{title:E.basename(B,".md")});if(Z){let z=E.dirname(B);console.log(`${j.blue}Watching ${j.bright}${z}${j.reset} for changes...`);let G=V.watch(z,{recursive:!0},async(R,I)=>{if(I&&I.endsWith(".md"))console.log(`${j.yellow}File ${j.bright}${I}${j.yellow} changed, reprocessing...${j.reset}`),await $()});process.on("SIGINT",()=>{G.close(),Q.stop(),process.exit(0)})}return!0}
|
|
171
|
-
export{P as
|
|
171
|
+
export{P as pf};
|
|
@@ -2227,4 +2227,4 @@ var w={button:{nativeType:"craft-button",fallbackTag:"button",fallbackClasses:"c
|
|
|
2227
2227
|
})();
|
|
2228
2228
|
</script>
|
|
2229
2229
|
`,processCraftComponents:_,registerCraftComponent:A,getCraftComponents:P},S=g;
|
|
2230
|
-
export{w as
|
|
2230
|
+
export{w as Go,N as Ho,C as Io,_ as Jo,A as Ko,P as Lo,S as Mo};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ls as H,Rr as g,Vs as x,ur as O}from"./chunk-w01y57f5.js";import{et as R}from"./chunk-nap11ntr.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -191,4 +191,4 @@ else {
|
|
|
191
191
|
stx.hydrate();
|
|
192
192
|
}
|
|
193
193
|
})();`}
|
|
194
|
-
export{r as
|
|
194
|
+
export{r as Tf,N as Uf,C as Vf,s as Wf,a as Xf,o as Yf,n as Zf,e as _f,d as $f,h as ag,t as bg,qq as cg,Bq as dg,Gq as eg};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{matchRoute as v,Router as y}from"stx-router";import{findErrorPage as G,formatRoutes as H,generateRouteManifest as I,generateRouteTypes as J,matchRoute as K}from"stx-router";function A(f,j={}){return new y(f,j).routes}function C(f,j){let q=v(f,j);return q?q.params:null}
|
|
3
|
-
export{A as
|
|
3
|
+
export{A as Di,C as Ei,G as Fi,H as Gi,I as Hi,J as Ii,K as Ji};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function z(j){return j.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function B(j,F){if(j.serverDynamic[F]!==void 0)return String(j.serverDynamic[F]);let G=j.static[F];if(typeof G==="string")return G;return}var $="<script>window.__stxSafeImageHandler||(window.__stxSafeImageHandler=function(i){if(i.__stx_fb)return;i.__stx_fb=1;var f=i.getAttribute('data-fallback')||'/images/safe-image-default.svg';var c=i.getAttribute('data-fallback-class');i.src=f;if(c)i.className=c;});</script>",w={name:"SafeImage",aliases:["safe-image","safe-img"],render(j,F,G){let W=B(j,"src")||"",X=B(j,"alt")||"",Y=B(j,"fallback")||"/images/safe-image-default.svg",O=B(j,"class")||B(j,"className")||"",Q=B(j,"fallbackClassName")||"",q=[];if(q.push(`src="${z(W)}"`),q.push(`alt="${z(X)}"`),O)q.push(`class="${z(O)}"`);if(q.push(`data-fallback="${z(Y)}"`),Q)q.push(`data-fallback-class="${z(Q)}"`);q.push('onerror="window.__stxSafeImageHandler(this)"');let Z=new Set(["src","alt","fallback","class","className","fallbackClassName"]);for(let[J,K]of Object.entries(j.static)){if(Z.has(J))continue;if(typeof K==="boolean"){if(K)q.push(z(J))}else q.push(`${z(J)}="${z(K)}"`)}let U=`<img ${q.join(" ")} />`,V=G.context;if(!V.__safeImageHandlerEmitted)return V.__safeImageHandlerEmitted=!0,`${$}${U}`;return U}};
|
|
3
|
-
export{w as
|
|
3
|
+
export{w as jz};
|
|
@@ -36,4 +36,4 @@ import M from"fs";import N from"path";function Q(j){return N.join(j.root,".stx",
|
|
|
36
36
|
color: #ef4444;
|
|
37
37
|
}
|
|
38
38
|
`}function O(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}async function u(j,q){let z=await T(j,q);if(!z)return[];return[z.current,...z.history]}async function C(j,q,z=5){let A=await T(j,q);if(!A)return 0;let B=A.history.slice(z),b=Q(j),E=0;for(let K of B){let U=N.join(b,`${q}.v${K.version}.html`);try{await M.promises.unlink(U),E++}catch{}}A.history=A.history.slice(0,z);let J=R(b,q);return await M.promises.writeFile(J,JSON.stringify(A,null,2)),E}
|
|
39
|
-
export{Q as
|
|
39
|
+
export{Q as N,T as O,Z as P,_ as Q,$ as R,G as S,k as T,u as U,C as V};
|
|
@@ -125,4 +125,4 @@ var W=typeof window<"u"&&typeof document<"u",A={color:"#6366f1",initialColor:"",
|
|
|
125
125
|
})();
|
|
126
126
|
</script>
|
|
127
127
|
`}var P={useLoadingIndicator:R,initLoadingIndicator:T,generateLoadingIndicatorHtml:w};
|
|
128
|
-
export{R as
|
|
128
|
+
export{R as Tl,T as Ul,C as Vl,w as Wl,P as Xl};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{defineProperty:e,getOwnPropertyNames:g,getOwnPropertyDescriptor:h}=Object,i=Object.prototype.hasOwnProperty;function j(a){return this[a]}var m=(a)=>{var b=(f??=new WeakMap).get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of g(a))if(!i.call(b,d))e(b,d,{get:j.bind(a,d),enumerable:!(c=h(a,d))||c.enumerable})}return f.set(a,b),b},f;var k=(a)=>a;function l(a,b){this[a]=k.bind(null,b)}var n=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:l.bind(b,c)})};var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var p=import.meta.require;
|
|
3
|
-
export{m as
|
|
3
|
+
export{m as oB,n as pB,o as qB,p as rB};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ls as T,Rr as B}from"./chunk-w01y57f5.js";import{et as N}from"./chunk-nap11ntr.js";import{rB as M}from"./chunk-3jm3snz8.js";import O from"fs";import Z from"path";async function S(q,G={},z={}){let E=await Bun.file(q).text(),j=E.match(/<script\s+server\s*>([\s\S]*?)<\/script>/i),F=j?j[1]:"",J=j?E.replace(/<script\s+server\s*>[\s\S]*?<\/script>/i,""):E;J=J.replace(/<script\s+client\s*>/gi,"<script>");let K={__filename:q,__dirname:Z.dirname(q),props:G,...G};if(F)await N(F,K,q);let L={...B,...z};return await T(J,K,q,L,new Set)}async function y(q){let G=performance.now(),z={success:!0,views:[],errors:[],duration:0},{viewsDir:E,outputDir:j,componentsDir:F=Z.join(E,"components"),layoutsDir:J=Z.join(E,"layouts"),partialsDir:K=Z.join(E,"partials"),globalProps:L={},placeholders:Q={},views:U,debug:I=!1,generateManifest:R=!0}=q;if(I)console.log("Building STX views..."),console.log(` Source: ${E}`),console.log(` Output: ${j}`);O.mkdirSync(j,{recursive:!0});let A={componentsDir:F,layoutsDir:J,partialsDir:K,debug:I},_;if(U&&U.length>0)_=U;else _=O.readdirSync(E).filter((W)=>W.endsWith(".stx")).map((W)=>({input:W}));for(let H of _){let W=Z.join(E,H.input),X=H.output||H.input.replace(/\.stx$/,".html"),$=Z.join(j,X);if(I)console.log(` Building ${H.input}...`);try{let Y={...L,...H.props,...Q},k=await S(W,Y,A);await Bun.write($,k),z.views.push(X)}catch(Y){let k=Y instanceof Error?Y.message:String(Y);if(z.errors.push({file:H.input,error:k}),z.success=!1,I)console.error(` Error: ${k}`)}}if(R){let H={buildTime:new Date().toISOString(),views:z.views,placeholders:Q,errors:z.errors.length>0?z.errors:void 0};await Bun.write(Z.join(j,"manifest.json"),JSON.stringify(H,null,2))}if(z.duration=performance.now()-G,I)if(z.success)console.log(`
|
|
3
3
|
\u2705 Built ${z.views.length} views in ${z.duration.toFixed(0)}ms`);else console.log(`
|
|
4
4
|
\u26A0\uFE0F Built ${z.views.length} views with ${z.errors.length} errors`);return z}function C(q,G){let z=O.watch(q.viewsDir,{recursive:!0},async(E,j)=>{if(!j)return;if(j.endsWith(".stx")||j.endsWith(".ts")||j.endsWith(".js")){if(q.debug)console.log(`
|
|
5
5
|
File changed: ${j}, rebuilding...`);let F=await y(q);G?.(F)}});return{close:()=>z.close()}}async function g(q,G={},z={}){let E={...z,skipDefaultSeoTags:!0,skipSignalsRuntime:!0},j=await S(q,G,E);j=await x(j),j=j.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j=j.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,""),j=j.replace(/<!--\s*stx SEO Tags\s*-->/gi,""),j=j.replace(/\n\s*\n\s*\n/g,`
|
|
@@ -9,4 +9,4 @@ File changed: ${j}, rebuilding...`);let F=await y(q);G?.(F)}});return{close:()=>
|
|
|
9
9
|
`).replace(/<\/td>/gi,"\t").replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/©/g,"(c)").replace(/·/g,"-").replace(/\n\s*\n\s*\n/g,`
|
|
10
10
|
|
|
11
11
|
`).trim()}var u=y;
|
|
12
|
-
export{S as
|
|
12
|
+
export{S as Cq,y as Dq,C as Eq,g as Fq,u as Gq};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Lb as P}from"./chunk-7rvh2wwv.js";import{Mb as Q}from"./chunk-jc0fc4ht.js";import{Bc as O}from"./chunk-6e4c6g46.js";import{Sc as G,Tc as J,Uc as K,Wc as M,Xc as N,ad as L}from"./chunk-yn38c15w.js";import{fe as D}from"./chunk-0qnz93q2.js";import{rB as Z}from"./chunk-3jm3snz8.js";async function $(k={}){G();let b=await D({mode:"dev"});if(!b.config.enabled){N("Story feature is disabled in config.");return}await Q(b);let T=k.port??b.config.port,j,q=async()=>{j=await P(b,{port:T,open:k.open,host:k.host}),K(b.storyFiles.length),J(j.url),L()};await q();let V=O(b,{onChange:async()=>{await j.close();let A=await D({mode:"dev"});Object.assign(b,A),await q()}}),z=async()=>{console.log(`
|
|
3
3
|
`),V.stop(),await j.close(),process.exit(0)};if(process.on("SIGINT",z),process.on("SIGTERM",z),process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",async(A)=>{switch(A.toString()){case"h":L();break;case"o":try{let{exec:X}=await import("child_process"),Y=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";X(`${Y} ${j.url}`)}catch{M("Failed to open browser")}break;case"r":await j.close(),await q();break;case"c":console.clear(),G(),K(b.storyFiles.length),J(j.url);break;case"q":case"\x03":await z();break}});await new Promise(()=>{})}var U=$;
|
|
4
|
-
export{$ as
|
|
4
|
+
export{$ as Jb,U as Kb};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{iz as i}from"./chunk-3rh7va1z.js";function a(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let o=e.static[t];if(typeof o==="string")return o;return}var r={sm:"max-width:24rem",md:"max-width:32rem",lg:"max-width:42rem",xl:"max-width:56rem",full:"max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem)"},x={name:"StxModal",aliases:["stx-modal"],render(e,t,o){let d=a(e,"id");if(!d)return console.warn('[stx] <StxModal> requires an "id" prop'),"<!-- StxModal: missing id prop -->";let s=i(d),n=a(e,"size")||"md",l=a(e,"closeOnBackdrop")!=="false",c=a(e,"closeOnEscape")!=="false",m=r[n]||r.md;return`<div id="stx-modal-${s}" class="stx-modal-backdrop" data-stx-modal="${s}" data-close-backdrop="${l}" data-close-escape="${c}" style="display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;background:rgba(0,0,0,0.5);backdrop-filter:blur(2px);opacity:0;transition:opacity 0.2s ease" aria-modal="true" role="dialog">
|
|
3
3
|
<div class="stx-modal-panel" style="${m};width:100%;margin:1rem;border-radius:0.75rem;box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow:hidden;transform:scale(0.95) translateY(8px);transition:transform 0.2s ease,opacity 0.2s ease;opacity:0;background:var(--stx-modal-bg,#fff);color:var(--stx-modal-text,#1f2937)">
|
|
4
4
|
<div style="padding:1.5rem">${t}</div>
|
|
5
5
|
</div>
|
|
@@ -9,4 +9,4 @@ import{aC as i}from"./chunk-hkjq64we.js";function a(e,t){if(e.serverDynamic[t]!=
|
|
|
9
9
|
.stx-modal-backdrop[data-stx-modal-open]{display:flex!important;opacity:1}
|
|
10
10
|
.stx-modal-backdrop[data-stx-modal-open] .stx-modal-panel{transform:scale(1) translateY(0);opacity:1}
|
|
11
11
|
</style>`}};
|
|
12
|
-
export{x as
|
|
12
|
+
export{x as hz};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Se as O,Ve as Q}from"./chunk-87kx8byz.js";Q();function J(j){let q=j.pwa;if(!q?.enabled)return"";let A=q.manifest,z=q.icons?.outputDir?`/${q.icons.outputDir}`:"/pwa-icons",G=O(j),C=`
|
|
3
3
|
<!-- stx PWA Meta Tags -->
|
|
4
4
|
<link rel="manifest" href="/manifest.json">
|
|
5
5
|
<meta name="theme-color" content="${K(A?.themeColor||"#000000")}">
|
|
@@ -58,4 +58,4 @@ if ('serviceWorker' in navigator) {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
</script>`}function X(){return'<link rel="manifest" href="/manifest.json">'}function Y(j){return`<meta name="theme-color" content="${K(j)}">`}function K(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
61
|
-
export{J as
|
|
61
|
+
export{J as He,U as Ie,V as Je,X as Ke,Y as Le};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function z(c,j="_method"){let k=c.toUpperCase();if(k==="GET"||k==="POST")return"";return`<input type="hidden" name="${j}" value="${k}">`}function B(c){return c.replace(/@method\(\s*(['"])([^'"]+)\1\s*(?:,\s*(['"])([^'"]+)\3\s*)?\)/g,(j,k,v,A,x)=>{return z(v,x||"_method")})}function C(c,j="_method"){if(c&&typeof c[j]==="string")return c[j].toUpperCase();return null}
|
|
3
|
-
export{z as
|
|
3
|
+
export{z as gu,B as hu,C as iu};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{be as J}from"./chunk-05hgyyqc.js";import{fe as H}from"./chunk-0qnz93q2.js";import{rB as I}from"./chunk-3jm3snz8.js";async function P(j={}){let{describe:A,test:z,expect:k}=await import("bun:test"),D=await H({mode:"build"});A("STX Story Visual Tests",()=>{z("should pass visual regression tests",async()=>{let q=await J(D,{filter:j.filter,threshold:j.threshold,update:j.update});if(console.log(`
|
|
3
3
|
Visual Tests: ${q.passed}/${q.total} passed`),q.failed>0){console.log(`
|
|
4
4
|
Failed tests:`);for(let E of q.failures)console.log(` \u2717 ${E.storyId} - ${E.variantId}`),console.log(` Difference: ${(E.difference??0).toFixed(2)}%`)}k(q.failed).toBe(0)},j.timeout||30000)})}async function Q(j={}){let{describe:A,test:z,expect:k}=await import("bun:test"),D=await H({mode:"build"}),{scanStoryFiles:q}=await import("./story/collect/scanner.js"),E=await q(D);A("STX Stories",()=>{for(let G of E){if(j.filter&&j.filter.length>0){if(!j.filter.some((K)=>G.fileName.toLowerCase().includes(K.toLowerCase())))continue}A(G.fileName,()=>{if(z("should render without errors",async()=>{let B=await Bun.file(G.path).text();k(B).toBeTruthy(),k(B.length).toBeGreaterThan(0)}),G.story)for(let B of G.story.variants)z(`variant: ${B.title}`,async()=>{if(k(B.title).toBeTruthy(),B.source)k(B.source.length).toBeGreaterThan(0)})})}})}async function L(j={}){let A=Date.now(),z=await H({mode:"build"}),k=await J(z,{filter:j.filter,threshold:j.threshold,update:j.update});return{passed:k.passed,failed:k.failed,total:k.total,duration:Date.now()-A}}function R(j){return`/**
|
|
5
5
|
* Auto-generated story tests
|
|
@@ -25,4 +25,4 @@ describe('Story Visual Tests', () => {
|
|
|
25
25
|
${k}: ${D}`),console.log("Running tests...");let q=await L(j);if(q.failed>0)console.log(`
|
|
26
26
|
\u274C ${q.failed} test(s) failed`);else console.log(`
|
|
27
27
|
\u2713 All ${q.total} tests passed (${q.duration}ms)`)})}
|
|
28
|
-
export{P as
|
|
28
|
+
export{P as Yd,Q as Zd,L as _d,R as $d,U as ae};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ss as J,Tr as H}from"./chunk-w01y57f5.js";import A from"fs";import $ from"path";async function B(z){try{let G=(await Bun.file(z).text()).match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(!G)return[];let K=G[1],q=[],j=/\/\*\*\s*([\s\S]*?)\s*\*\/\s*(?:(?:const|let|var)\s*)?(?:([\w$]+)\s*=|module\.exports\.([\w$]+)\s*=|\s*([\w$]+)\s*:)/g,O;while((O=j.exec(K))!==null){let Q=O[1],U=O[2]||O[3]||O[4];if(!U)continue;let V={name:U},X=Q.match(/@type\s+\{([^}]+)\}/i);if(X)V.type=X[1].trim();if(Q.match(/@required/i))V.required=!0;let S=Q.match(/@default\s+(.+?)(?:\s+|$)/i);if(S)V.default=S[1].trim();let _=Q.split(`
|
|
3
3
|
`).map((Z)=>Z.trim().replace(/^\*\s*/,"")).filter((Z)=>!Z.startsWith("@")&&Z.length>0);V.description=_.join(" ").trim(),q.push(V)}if(q.length===0){let Q=K.match(/module\.exports\s*=\s*\{([^}]+)\}/i);if(Q){let V=Q[1].split(",").map((X)=>X.trim()).filter(Boolean);for(let X of V){let[Y]=X.split(":").map((S)=>S.trim());if(Y)q.push({name:Y})}}}return q}catch(I){return console.error(`Error extracting props from ${z}:`,I),[]}}async function E(z){try{let I=await Bun.file(z).text(),G=I.match(/^\s*<!--\s*([\s\S]*?)\s*-->/)||I.match(/^\s*\/\*\*\s*([\s\S]*?)\s*\*\//);if(G)return G[1].split(`
|
|
4
4
|
`).map((K)=>K.trim().replace(/^\*\s*/,"")).join(" ").trim();return""}catch{return""}}async function N(z,I=!1,G){let K=$.basename(z,".stx"),q=await B(z),j=await E(z),O="";if(I&&G)O=`<${G}></${G}>`;else{let Q=q.map((U)=>{if(U.type==="boolean")return`:${U.name}="true"`;return`${U.name}="value"`}).join(`
|
|
5
5
|
`);O=`<${K}
|
|
@@ -139,4 +139,4 @@ import{Lv as J,Mu as H}from"./chunk-tzd81m7r.js";import A from"fs";import $ from
|
|
|
139
139
|
<td>${j.description||"-"}</td>
|
|
140
140
|
<td>${j.hasEndTag?"Yes":"No"}</td>
|
|
141
141
|
</tr>`;q+="</tbody></table>";for(let j of G)if(j.example)q+=`<h3>@${j.name}</h3>`,q+=`<p>${j.description||""}</p>`,q+="<h4>Example</h4>",q+=`<pre><code>${j.example.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}</code></pre>`}return q+="</body></html>",q}function u(z=[],I=[],G=[],K){return JSON.stringify({components:z,templates:I,directives:G,extraContent:K||""},null,2)}async function P(z){try{let{componentsDir:I,templatesDir:G,webComponentsConfig:K,customDirectives:q,config:j}=z;if(!j.enabled)return!1;let O=j.outputDir||"docs";if(await A.promises.mkdir(O,{recursive:!0}),console.log("Generating documentation..."),I)console.log(`Components directory: ${I}`);if(G)console.log(`Templates directory: ${G}`);console.log(`Output directory: ${O}`);let Q=[];if(j.components!==!1&&I)console.log("Generating component documentation..."),Q=await W(I,K),console.log(`Found ${Q.length} components`);let U=[];if(j.templates!==!1&&G)console.log("Generating template documentation..."),U=await F(G),console.log(`Found ${U.length} templates`);let V=[];if(j.directives!==!1)console.log("Generating directive documentation..."),V=await y(q),console.log(`Found ${V.length} directives`);let X=j.format||"markdown",Y=j.extraContent,S="",_="";switch(X){case"markdown":S=T(Q,U,V,Y),_="md";break;case"html":S=M(Q,U,V,Y),_="html";break;case"json":S=u(Q,U,V,Y),_="json";break;default:throw Error(`Unsupported documentation format: ${X}`)}let Z=$.join(O,`stx-docs.${_}`);return await Bun.write(Z,S),console.log(`Documentation generated: ${Z}`),!0}catch(I){return console.error("Error generating documentation:",I),!1}}async function g(z){let I={enabled:!0,outputDir:z.output||"docs",format:z.format||"markdown",components:z.components!==!1,templates:z.templates!==!1,directives:z.directives!==!1,extraContent:z.extraContent},G=z.componentsDir||H.componentsDir,K=z.templatesDir||".";return P({componentsDir:G,templatesDir:K,webComponentsConfig:H.webComponents,customDirectives:H.customDirectives,config:I})}
|
|
142
|
-
export{B as
|
|
142
|
+
export{B as an,E as bn,N as cn,L as dn,W as en,F as fn,y as gn,T as hn,M as in,u as jn,P as kn,g as ln};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{et as _}from"./chunk-nap11ntr.js";import{rB as M}from"./chunk-3jm3snz8.js";import X from"fs";var U=new Map;async function Z(z,q,A={}){let B=performance.now(),J=[];try{let K=await X.promises.stat(q),O=U.get(q),N;if(O&&O.mtime===K.mtimeMs)N=O.content;else N=await X.promises.readFile(q,"utf-8"),U.set(q,{content:N,mtime:K.mtimeMs,analyzed:null});let{processDirectives:G}=await import("././process.js"),Q={},L=Y(N);if(L)try{await _(L,Q,q)}catch($){J.push(`Warning: Could not extract script variables: ${$ instanceof Error?$.message:String($)}`)}if(A.props)Object.assign(Q,A.props);let W=await G(N,Q,q,{},new Set),F=D(N),b=Y(N);return W=j(W),W=E(W,Q),{html:W,css:F,js:b,errors:J,duration:performance.now()-B}}catch(K){return J.push(K instanceof Error?K.message:String(K)),{html:`<div class="stx-render-error">${k(J[0])}</div>`,css:"",js:"",errors:J,duration:performance.now()-B}}}async function w(z){try{let q=await X.promises.readFile(z,"utf-8"),A=Y(q);if(!A)return null;let B={};if(await _(A,B,z),Array.isArray(B.variants))return B.variants;return null}catch{return null}}async function T(z,q,A,B){let J=q.story?.variants;if(!J){let N=await w(q.path);if(N)J=N}if(!J&&A==="default")return Z(z,q.path,{props:B||{}});if(!J)return Z(z,q.path,{props:B||{}});let K=J.find((N)=>N.id===A);if(!K&&A==="default")return Z(z,q.path,{props:B||{}});if(!K)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${A}' not found`],duration:0};let O={...K.state,...B};if(K.source)return R(z,K.source,O);return Z(z,q.path,{props:O})}async function R(z,q,A={}){let B=performance.now(),J=[];try{let{processDirectives:K}=await import("././process.js"),O={...A},N=Y(q);if(N)try{await _(N,O,"inline-template.stx")}catch{}let Q=await K(q,O,"inline-template.stx",{},new Set);return Q=j(Q),Q=E(Q,O),{html:Q,css:D(q),js:Y(q),errors:J,duration:performance.now()-B}}catch(K){return J.push(K instanceof Error?K.message:String(K)),{html:`<div class="stx-render-error">${k(J[0])}</div>`,css:"",js:"",errors:J,duration:performance.now()-B}}}function D(z){let q=[],A=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,B=A.exec(z);while(B!==null)q.push(B[1].trim()),B=A.exec(z);return q.join(`
|
|
3
3
|
`)}function j(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function Y(z){let q=[],A=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,B=A.exec(z);while(B!==null)q.push(B[1].trim()),B=A.exec(z);return q.join(`
|
|
4
4
|
`)}function E(z,q){let A=`<script>window.__stxProps = ${JSON.stringify(q)};</script>`;return z+A}function k(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function g(){U.clear()}function u(){return{size:U.size,entries:Array.from(U.keys())}}async function I(z){let q=0;for(let A of z)try{let B=await X.promises.stat(A),J=await X.promises.readFile(A,"utf-8");U.set(A,{content:J,mtime:B.mtimeMs,analyzed:null}),q++}catch{}return q}function S(z,q={}){let{title:A="Preview",theme:B="light",background:J="#ffffff",crosswindCss:K=""}=q;return`<!DOCTYPE html>
|
|
5
5
|
<html lang="en" class="${B==="dark"?"dark":""}">
|
|
@@ -35,4 +35,4 @@ import{Zv as _}from"./chunk-nwfa5766.js";import{jE as M}from"./chunk-6r70w54p.js
|
|
|
35
35
|
</script>
|
|
36
36
|
</body>
|
|
37
37
|
</html>`}
|
|
38
|
-
export{Z as
|
|
38
|
+
export{Z as hc,T as ic,R as jc,g as kc,u as lc,I as mc,S as nc};
|
|
@@ -80,4 +80,4 @@ else {
|
|
|
80
80
|
<span>${Array.isArray(g)?g.join(", "):String(g)}</span>
|
|
81
81
|
</div>`).join("")}
|
|
82
82
|
</div>`}var q=["dark","night","monokai","dracula","nord","material","ayu","one-dark","tokyo","gruvbox","solarized-dark"];function G(b){let j=b.toLowerCase();return q.some((g)=>j.includes(g))}
|
|
83
|
-
export{x as
|
|
83
|
+
export{x as no,z as oo,B as po,F as qo,q as ro,G as so};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{createHash as w}from"crypto";import{readFile as D,stat as A}from"fs/promises";async function J(j){try{let q=await D(j);return w("sha256").update(q).digest("hex").slice(0,16)}catch{return""}}function K(j){return w("sha256").update(j).digest("hex").slice(0,16)}function z(j){return w("sha256").update(j).digest("hex").slice(0,16)}function L(j,q){let B=JSON.stringify(q,Object.keys(q).sort());return`${z(j)}-${z(B)}`}async function M(j){try{return(await A(j)).mtimeMs}catch{return 0}}async function N(j){try{return await A(j),!0}catch{return!1}}
|
|
3
|
-
export{J as
|
|
3
|
+
export{J as Sk,K as Tk,z as Uk,L as Vk,M as Wk,N as Xk};
|
|
@@ -7,4 +7,4 @@ function G(j){return j.replace(/[;{}()]/g,"").replace(/url/gi,"")}function E(j,q
|
|
|
7
7
|
<script>
|
|
8
8
|
(function(){var el=document.getElementById('stx-loading-indicator'),p=0,l=!1,i=null;function u(v){p=Math.min(Math.max(v,0),100);if(el){el.style.opacity=p>0?'1':'0';el.style.transform='scaleX('+(p/100)+')'}}window.stxLoading={start:function(){l=!0;p=0;u(10);if(i)clearInterval(i);i=setInterval(function(){if(!l)return;var r=90-p,inc=Math.max(0.5,r*0.1);if(p<90)u(p+inc)},${K})},finish:function(){l=!1;if(i){clearInterval(i);i=null}u(100);setTimeout(function(){if(el)el.style.opacity='0';setTimeout(function(){p=0;if(el)el.style.transform='scaleX(0)'},300)},200)},set:function(v){u(v)},clear:function(){l=!1;p=0;if(i){clearInterval(i);i=null}if(el){el.style.opacity='0';el.style.transform='scaleX(0)'}}};document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a');if(!a)return;var h=a.getAttribute('href');if(!h||h.startsWith('http')||h.startsWith('#')||h.startsWith('mailto:')||h.startsWith('tel:')||a.target==='_blank')return;window.stxLoading.start()});window.addEventListener('popstate',function(){window.stxLoading.start()});window.addEventListener('load',function(){window.stxLoading.finish()})})();
|
|
9
9
|
</script>`}};
|
|
10
|
-
export{O as
|
|
10
|
+
export{O as $y};
|
|
@@ -1163,4 +1163,4 @@ else if (data.type === 'event' && data.method) {
|
|
|
1163
1163
|
})();
|
|
1164
1164
|
</script>
|
|
1165
1165
|
`,generateCraftBridgeScript:F,processCraftDirective:H,injectCraftBridge:I,isCraftEnvironment:G},N=J;
|
|
1166
|
-
export{L as
|
|
1166
|
+
export{L as Wo,F as Xo,G as Yo,H as Zo,I as _o,N as $o};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var I=null,N=[],M=!1,P=new Set,X=[],Y=[];function Z(j){let F=j,A=new Set,z=new Set,G=()=>{if(I)z.add(I);return F};return G.set=(H)=>{if(!Object.is(H,F)){let K=F;if(F=H,A.forEach((J)=>J(F,K)),M)z.forEach((J)=>P.add(J));else z.forEach((J)=>J())}},G.update=(H)=>{G.set(H(F))},G.subscribe=(H)=>{return A.add(H),()=>A.delete(H)},Object.defineProperty(G,"_isSignal",{value:!0,writable:!1}),G}function _(j){let F,A=!0,z=new Set,G=()=>{if(!A)if(A=!0,M)z.forEach((K)=>P.add(K));else z.forEach((K)=>K())},H=()=>{if(I)z.add(I);if(A){let K=I;I=G,N.push(G);try{F=j()}finally{N.pop(),I=K}A=!1}return F};return Object.defineProperty(H,"_isDerived",{value:!0,writable:!1}),H}function $(j,F={}){let A,z=!1,G=()=>{if(z)return;if(A)A(),A=void 0;let H=I;I=G,N.push(G);try{A=j()}finally{N.pop(),I=H}};if(F.immediate!==!1)G();return()=>{if(z=!0,A)A()}}function C(j){if(M){j();return}M=!0;try{j()}finally{M=!1,P.forEach((F)=>F()),P.clear()}}function S(j){X.push(j)}function W(j){Y.push(j)}function q(j){return typeof j==="function"&&j._isSignal===!0}function O(j){return typeof j==="function"&&j._isDerived===!0}function w(j){if(q(j)||O(j))return j();return j}function x(j){let F=I;I=null;try{return j()}finally{I=F}}function B(j,F){let A=typeof j==="function"?j:()=>j,z=Z([]),G=_(()=>z().reduce((J,L)=>F(J,L.action),A())),H=!1;return $(()=>{if(A(),!H){H=!0;return}if(x(()=>z().length))z.set([])}),[G,(J,L)=>{let R={action:J};z.set([...z(),R]);let Q=()=>{let T=z().filter((U)=>U!==R);if(T.length!==z().length)z.set(T)};if(L&&typeof L.then==="function")Promise.resolve(L).then(Q,Q);return Q}]}
|
|
3
|
-
export{Z as
|
|
3
|
+
export{Z as eq,_ as fq,$ as gq,C as hq,S as iq,W as jq,q as kq,O as lq,w as mq,x as nq,B as oq};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{B as
|
|
2
|
+
import{Ik as y,Jk as z,Lk as A}from"./chunk-gqpkp459.js";var E={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class B{config;constructor(j={}){this.config={...E,...j}}async get(j,k){return y(j,k,"image",this.config)}async set(j,k,q){return z(j,k,q,"image",this.config)}async clear(){return A("image",this.config)}updateConfig(j){this.config={...this.config,...j}}}var w=null;function x(j){if(!w)w=new B(j);else if(j)w.updateConfig(j);return w}async function G(j,k,q){let v=q?{directory:`${q.outputDir}/../.cache`}:{};return x(v).get(j,k)}async function H(j,k,q,v){let D=v?{directory:`${v.outputDir}/../.cache`}:{};return x(D).set(j,k,q)}async function J(){return x().clear()}
|
|
3
|
+
export{B as Dk,G as Ek,H as Fk,J as Gk};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function z(q,x){if(typeof window>"u")return x;return window[q]??x}function B(q,x){if(typeof window>"u")return;window[q]=x}function F(q){let A=z("__STX_STORES__",{})[q];if(!A)throw Error(`Store "${q}" not found. Make sure it's defined with defineStore().`);return A}function Q(q){return F(q)}function U(q){let x=z("__STX_STORES__",{});return q in x}function W(){let q=z("__STX_STORES__",{});return Object.keys(q)}function X(q,x=5000){return new Promise((A,H)=>{let I=Date.now(),D=()=>{let E=F(q);if(E)A(E);else if(Date.now()-I>x)H(Error(`Timeout waiting for store "${q}"`));else requestAnimationFrame(D)};D()})}function J(){return z("__STX_ROUTE_PARAMS__",{})}function K(q){return J()[q]}function Y(q){let x=K(q);if(x===void 0)throw Error(`Route parameter "${q}" not found`);return x}function L(){return z("__STX_MIDDLEWARE_STATE__",{})}function Z(q){return L()[q]}function _(){if(typeof window>"u")return;if(!z("__STX_STORES__",null))B("__STX_STORES__",{})}function $(q,x){let A=z("__STX_STORES__",{});A[q]=x,B("__STX_STORES__",A)}function w(){return z("__STX_STORE_STATE__",null)}function C(q){B("__STX_ROUTE_PARAMS__",q)}function M(q){B("__STX_MIDDLEWARE_STATE__",q)}function N(){return typeof window>"u"}function O(){return typeof window<"u"}function T(q){if(O())q()}function h(q){if(N())q()}
|
|
3
|
-
export{F as
|
|
3
|
+
export{F as Ah,Q as Bh,U as Ch,W as Dh,X as Eh,J as Fh,K as Gh,Y as Hh,L as Ih,Z as Jh,_ as Kh,$ as Lh,w as Mh,C as Nh,M as Oh,N as Ph,O as Qh,T as Rh,h as Sh};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Sk as F,Xk as g}from"./chunk-5ggw1dyv.js";import{rB as R}from"./chunk-3jm3snz8.js";import{resolve as B,basename as v,extname as S,join as Q}from"path";import{mkdir as E,writeFile as b}from"fs/promises";async function U(){try{return await import("ts-videos")}catch{return null}}var f=[{label:"1080p",width:1920,height:1080,bitrate:5000000,audioBitrate:192000},{label:"720p",width:1280,height:720,bitrate:2500000,audioBitrate:128000},{label:"480p",width:854,height:480,bitrate:1e6,audioBitrate:96000},{label:"360p",width:640,height:360,bitrate:600000,audioBitrate:64000}];async function y(W,Z,w,G,Y){let N=await U();if(!N)return console.warn("[stx-media] ts-videos not installed, cannot generate HLS manifest"),null;try{let z=B(W);if(!await g(z))return null;let J=await F(z),C=v(W,S(W)),X=Q(w,`${C}-${J}-hls`);await E(X,{recursive:!0});let H=Z.length>0?Z:f,O=Y?.segmentDuration||6,V=(await new N.Input(z).getInfo()).duration||0,k=[],x=0;for(let $ of H){let _=Q(X,$.label);await E(_,{recursive:!0});let K=`${$.label}.m3u8`,j=Q(_,K);try{let M=await N.generateHLS(z,{outputDir:_,segmentDuration:O,width:$.width,height:$.height,videoBitrate:$.bitrate,audioBitrate:$.audioBitrate,playlistName:$.label});if(M)k.push({quality:$,url:`${G}/${C}-${J}-hls/${$.label}/${K}`,path:j}),x+=M.segmentCount||Math.ceil(V/O)}catch(M){console.warn(`[stx-media] Failed to generate HLS for ${$.label}: ${M}`)}}if(k.length===0)return null;let L=Q(X,"master.m3u8"),A=D(k,G,C,J);return await b(L,A),{manifestUrl:`${G}/${C}-${J}-hls/master.m3u8`,manifestPath:L,playlists:k,segmentCount:x,duration:V}}catch(z){return console.warn(`[stx-media] Failed to generate HLS manifest: ${z}`),null}}function D(W,Z,w,G){let Y=["#EXTM3U","#EXT-X-VERSION:3"];for(let N of W){let{quality:z}=N,J=z.bitrate+(z.audioBitrate||128000),C=`${z.width}x${z.height||Math.round(z.width*9/16)}`;Y.push(`#EXT-X-STREAM-INF:BANDWIDTH=${J},RESOLUTION=${C},NAME="${z.label}"`,`${z.label}/${z.label}.m3u8`)}return Y.join(`
|
|
3
3
|
`)}async function p(W,Z,w,G,Y){let N=await U();if(!N)return console.warn("[stx-media] ts-videos not installed, cannot generate DASH manifest"),null;try{let z=B(W);if(!await g(z))return null;let J=await F(z),C=v(W,S(W)),X=Q(w,`${C}-${J}-dash`);await E(X,{recursive:!0});let H=Z.length>0?Z:f,O=Y?.segmentDuration||4,I=Y?.minBufferTime||2,k=(await new N.Input(z).getInfo()).duration||0,x=[],L=[];for(let K of H){let j=Q(X,K.label);await E(j,{recursive:!0});try{if(await N.generateDASH(z,{outputDir:j,segmentDuration:O,width:K.width,height:K.height,videoBitrate:K.bitrate,audioBitrate:K.audioBitrate})){if(x.push({bandwidth:K.bitrate,width:K.width,height:K.height||Math.round(K.width*9/16),url:`${G}/${C}-${J}-dash/${K.label}/video`}),K.audioBitrate)L.push({bandwidth:K.audioBitrate,url:`${G}/${C}-${J}-dash/${K.label}/audio`})}}catch(M){console.warn(`[stx-media] Failed to generate DASH for ${K.label}: ${M}`)}}if(x.length===0)return null;let A=Q(X,"manifest.mpd"),$=h(x,L,k,O,I);await b(A,$);let _=[{type:"video",representations:x}];if(L.length>0)_.push({type:"audio",representations:L});return{manifestUrl:`${G}/${C}-${J}-dash/manifest.mpd`,manifestPath:A,adaptationSets:_,duration:k}}catch(z){return console.warn(`[stx-media] Failed to generate DASH manifest: ${z}`),null}}function h(W,Z,w,G,Y){let N=T(w),z=T(Y),J=`<?xml version="1.0" encoding="UTF-8"?>
|
|
4
4
|
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011"
|
|
5
5
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
@@ -27,4 +27,4 @@ import{Yk as F,bl as g}from"./chunk-kqtchwz7.js";import{jE as R}from"./chunk-6r7
|
|
|
27
27
|
`}J+=` </AdaptationSet>
|
|
28
28
|
`}return J+=` </Period>
|
|
29
29
|
</MPD>`,J}function T(W){let Z=Math.floor(W/3600),w=Math.floor(W%3600/60),G=Math.floor(W%60),Y="PT";if(Z>0)Y+=`${Z}H`;if(w>0)Y+=`${w}M`;return Y+=`${G}S`,Y}
|
|
30
|
-
export{f as
|
|
30
|
+
export{f as xj,y as yj,p as zj};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Jm as T,Km as b,Lm as v,Rm as n,Sm as I,Tm as d,Um as c,Wm as w}from"./chunk-cygfdk1n.js";function GG(K,B={}){let{src:X,alt:G,width:x,height:Z,sizes:q="100vw",loading:$="lazy",priority:O=!1,quality:W=v,placeholder:J="none",formats:Y=b,widths:M=T,decoding:C="async",fetchpriority:k,objectFit:U,objectPosition:D}=K,Q=K.class,E=K.style,{processedImage:P,variants:_,optimize:H=!0,isDev:R=!1}=B;if(_&&_.length>0)return p(K,_,P);if(R||!H)return s(K);return r(K)}function p(K,B,X){let{src:G,alt:x,width:Z,height:q,sizes:$="100vw",loading:O="lazy",priority:W=!1,decoding:J="async",fetchpriority:Y,objectFit:M,objectPosition:C,placeholder:k="none"}=K,U=K.class,D=K.style,Q=c(B),E=d(B),P=typeof $==="object"?I($):$,_=X?X.aspectRatio:Z&&q?Number(Z)/Number(q):void 0,H=[];if(_)H.push(`aspect-ratio: ${_}`);if(M)H.push(`object-fit: ${M}`);if(C)H.push(`object-position: ${C}`);if(D)H.push(D);let R=H.length>0?` style="${H.join("; ")}"`:"",z=U?` class="${U}"`:"",j=W?"":` loading="${O}"`,S=` decoding="${J}"`,L=Y?` fetchpriority="${Y}"`:W?' fetchpriority="high"':"",y=["avif","webp","jpeg","png"],A=[];for(let N of y){let V=Q.get(N);if(V&&V.length>0){let F=n(V),o=w(N);A.push(` <source type="${o}" srcset="${F}" sizes="${P}" />`)}}let g="",m="",f;if(k!=="none"&&X?.placeholder){let N=`img-${Math.random().toString(36).slice(2,8)}`;if(g=`<div class="stx-image-wrapper" id="${N}">`,m="</div>",k==="blur")f=`
|
|
3
3
|
#${N} {
|
|
4
4
|
position: relative;
|
|
5
5
|
background-image: url('${X.placeholder}');
|
|
@@ -31,4 +31,4 @@ ${A.join(`
|
|
|
31
31
|
data-formats="${W.join(",")}"
|
|
32
32
|
data-widths="${J.join(",")}"
|
|
33
33
|
`.replace(/\s+/g," ").trim();return{html:`<img src="${B}" alt="${u(X)}"${_}${H}${P}${E}${R}${z}${j} ${L} />`}}function t(K){let B=K.match(/<Image\s+([^>]*?)\/?>/);if(!B)return null;let X=B[1],G={},x=/(\w+)(?:=(?:"([^"]*)"|'([^']*)'|(\{[^}]+\})))?/g,Z;while((Z=x.exec(X))!==null){let[,q,$,O,W]=Z,J=$??O??W??!0;switch(q){case"src":G.src=String(J);break;case"alt":G.alt=String(J);break;case"width":G.width=Number(J)||J;break;case"height":G.height=Number(J)||J;break;case"sizes":G.sizes=String(J);break;case"loading":G.loading=J;break;case"priority":G.priority=J===!0||J==="true";break;case"quality":G.quality=Number(J);break;case"placeholder":G.placeholder=J;break;case"class":G.class=String(J);break;case"style":G.style=String(J);break;case"decoding":G.decoding=J;break;case"fetchpriority":G.fetchpriority=J;break;case"objectFit":G.objectFit=J;break;case"objectPosition":G.objectPosition=String(J);break}}if(!G.src||!G.alt)return null;return G}async function JG(K,B){let X=/<Image\s+[^>]*?\/?>/g,G=[],x=[],Z=K,q,$=[];while((q=X.exec(K))!==null)$.push({match:q[0],index:q.index});for(let O=$.length-1;O>=0;O--){let{match:W}=$[O],J=t(W);if(J){let Y=await B(J);if(Z=Z.replace(W,Y.html),Y.preloadLink)G.push(Y.preloadLink);if(Y.placeholderCss)x.push(Y.placeholderCss)}}return{html:Z,preloadLinks:G,styles:x}}function u(K){return K.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
34
|
-
export{GG as
|
|
34
|
+
export{GG as Gm,t as Hm,JG as Im};
|
|
@@ -4,4 +4,4 @@ import M from"fs";import N from"path";async function Y(G,A,H={}){let b=H.outDir|
|
|
|
4
4
|
`)}function R(G){let A=G.props.filter((j)=>j.required||j.default!==void 0).map((j)=>{if(j.type==="boolean")return j.default?j.name:"";if(j.type==="string")return`${j.name}="${j.default||"value"}"`;return`:${j.name}="${JSON.stringify(j.default)}"`}).filter(Boolean).join(" "),H=G.slots.length>0,b=G.slots.find((j)=>j.name==="default");if(H&&b)return`<${G.name} ${A}>
|
|
5
5
|
Content goes here
|
|
6
6
|
</${G.name}>`;return`<${G.name} ${A} />`}function Z(G){let A=G.map((H)=>({name:H.name,description:H.description,category:H.category,tags:H.tags,props:H.props.map((b)=>({name:b.name,type:b.type,required:b.required,default:b.default,description:b.description})),slots:H.slots.map((b)=>({name:b.name,description:b.description}))}));return JSON.stringify(A,null,2)}function _(G){let A={colors:new Set,spacing:new Set,typography:new Set,borders:new Set,shadows:new Set};for(let H of G)for(let b of H.cssClasses){if(b.match(/^(?:text|bg|border|fill|stroke)-/))A.colors.add(b);if(b.match(/^(?:p|m|gap|space)-/))A.spacing.add(b);if(b.match(/^(?:text|font|leading|tracking)-/))A.typography.add(b);if(b.match(/^(?:border|rounded)-/))A.borders.add(b);if(b.match(/^shadow/))A.shadows.add(b)}return{colors:Array.from(A.colors),spacing:Array.from(A.spacing),typography:Array.from(A.typography),borders:Array.from(A.borders),shadows:Array.from(A.shadows)}}
|
|
7
|
-
export{Y as
|
|
7
|
+
export{Y as za,P as Aa,Q as Ba,Z as Ca,_ as Da};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var F=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function H(j,q,w){let k={fullTag:w,content:q,attrs:j};if(/\bserver\b/.test(j))return{...k,type:"server"};if(/\bdata-stx-scoped\b/.test(j))return{...k,type:"client"};if(F.test(q))return{...k,type:"signals"};if(/\bclient\b/.test(j)||/\btype\s*=\s*["']module["']/.test(j)||/\bsrc\s*=/.test(j))return{...k,type:"client"};return{...k,type:"server"}}function J(j){let q=[],w=[],k=[],D=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,z;while((z=D.exec(j))!==null){let B=H(z[1],z[2],z[0]);switch(B.type){case"signals":q.push(B);break;case"client":w.push(B);break;case"server":k.push(B);break}}return{signals:q,client:w,server:k}}
|
|
3
|
-
export{H as
|
|
3
|
+
export{H as Qq,J as Rq};
|
|
@@ -32,4 +32,4 @@ else {
|
|
|
32
32
|
`}function e(B){let E=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;B=B.replace(E,(G,K)=>{return`const { ${K.split(",").map((Q)=>Q.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
|
|
33
33
|
`});let F=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return B=B.replace(F,(G,K)=>{return`const { ${K.split(",").map((Q)=>Q.trim()).filter(Boolean).join(", ")} } = window.__composables
|
|
34
34
|
`}),B}function BB(B){if(typeof window>"u")return;let E=window;E.__STX_STORES__=E.__STX_STORES__||{};for(let[F,G]of Object.entries(B))E.__STX_STORES__[F]=G;window.dispatchEvent(new CustomEvent("stx:stores-ready",{detail:Object.keys(B)}))}
|
|
35
|
-
export{P as
|
|
35
|
+
export{P as qg,z as rg,w as sg,O as tg,y as ug,k as vg,V as wg,D as xg,h as yg,g as zg,v as Ag,S as Bg,b as Cg,d as Dg,m as Eg,c as Fg,n as Gg,l as Hg,x as Ig,p as Jg,i as Kg,u as Lg,o as Mg,a as Ng,s as Og,r as Pg,t as Qg,e as Rg,BB as Sg};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{V as
|
|
2
|
+
import{Xc as H,Zc as J}from"./chunk-yn38c15w.js";import D from"fs";import k from"path";function V(j,q){let z=[k.join(j.root,"stx.config.ts"),k.join(j.root,"stx.config.js"),k.join(j.root,"stx.config.mjs")],K=q.debounceMs??300,A=null,E=[];for(let B of z)try{if(!D.existsSync(B))continue;let L=D.watch(B,(N)=>{if(N==="change"){if(A)clearTimeout(A);A=setTimeout(async()=>{J("Config file changed, restarting...");try{await q.onChange()}catch(O){H(`Failed to restart: ${O}`)}},K)}});E.push(L)}catch{}return{stop(){if(A)clearTimeout(A);for(let B of E)B.close()}}}function Q(j){let q=[k.join(j,"stx.config.ts"),k.join(j,"stx.config.js"),k.join(j,"stx.config.mjs"),k.join(j,"config","stx.ts"),k.join(j,"config","stx.js"),k.join(j,"config","stx.mjs"),k.join(j,".config","stx.ts"),k.join(j,".config","stx.js"),k.join(j,".config","stx.mjs")];for(let z of q)if(D.existsSync(z))return z;return null}async function X(j){let q=Q(j);if(!q)return null;try{return(await D.promises.stat(q)).mtimeMs}catch{return null}}
|
|
3
|
+
export{V as Bc,Q as Cc,X as Dc};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{M as
|
|
2
|
+
import{Sr as E}from"./chunk-w01y57f5.js";import{rB as D}from"./chunk-3jm3snz8.js";import I from"path";async function M(q={}){let G=performance.now(),J=q.root||process.cwd(),j=await E(),y=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${y.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let A,B;if(y==="ssg"){let{generateStaticSite:z}=await import("././ssg.js");A=await z({pagesDir:I.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,...q.ssg})}else{let{buildForProduction:z}=await import("././production-builder.js");B=await z({outputDir:".output",debug:q.debug,...q.ssr})}let H=Math.round(performance.now()-G);return{mode:y,ssg:A,ssr:B,duration:H}}
|
|
3
|
+
export{M as Hp};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var J=new WeakMap;function Q(j=16){let q=new Uint8Array(j);return crypto.getRandomValues(q),btoa(String.fromCharCode(...q))}function I(j,q){if(!j)return q?.nonceGenerator?.()??Q();let z=J.get(j);if(!z)z=q?.nonceGenerator?.()??Q(),J.set(j,z);return z}function A(j){J.delete(j)}function R(j,q){let z=[];for(let[F,E]of Object.entries(j)){if(E===void 0||E===null)continue;if(typeof E==="boolean"){if(E)z.push(F);continue}if(Array.isArray(E)){let B=[...E];if(q&&(F==="script-src"||F==="style-src"))B=B.filter((G)=>!G.startsWith("'nonce-")),B.push(`'nonce-${q}'`);if(B.length>0)z.push(`${F} ${B.join(" ")}`)}}return z.join("; ")}function L(j,q){return`<meta http-equiv="Content-Security-Policy" content="${R(j,q).replace(/&/g,"&").replace(/"/g,""")}">`}var X={"default-src":["'self'"],"script-src":["'self'","'strict-dynamic'"],"style-src":["'self'"],"img-src":["'self'","data:","https:"],"font-src":["'self'","https:","data:"],"connect-src":["'self'"],"media-src":["'self'"],"object-src":["'none'"],"frame-src":["'none'"],"base-uri":["'self'"],"form-action":["'self'"],"frame-ancestors":["'self'"],"upgrade-insecure-requests":!0},K={"default-src":["'self'"],"script-src":["'self'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","https:"],"font-src":["'self'","https:","data:"],"connect-src":["'self'","https:"],"media-src":["'self'"],"object-src":["'none'"],"frame-src":["'self'"],"base-uri":["'self'"],"form-action":["'self'"],"upgrade-insecure-requests":!0},Y={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","https:","http:"],"font-src":["'self'","https:","http:","data:"],"connect-src":["'self'","https:","http:","ws:","wss:"],"media-src":["'self'","https:","http:"],"object-src":["'none'"],"frame-src":["'self'","https:"],"base-uri":["'self'"]},Z={"default-src":["'none'"],"frame-ancestors":["'none'"]};function O(j){return{enabled:!0,directives:{strict:X,moderate:K,relaxed:Y,api:Z}[j]||K,useNonce:j==="strict",addMetaTag:!0}}function D(j,q){let z={...j};for(let[F,E]of Object.entries(q)){let B=F,G=z[B];if(E===void 0||E===null)continue;if(typeof E==="boolean")z[B]=G||E;else if(Array.isArray(E)){let U=Array.isArray(G)?G:[],W=[...new Set([...U,...E])];z[B]=W}}return z}function H(j,q,z){if(!q.enabled||!q.addMetaTag)return j;if(j.includes('http-equiv="Content-Security-Policy"'))return j;if(!j.includes("<head>")&&!j.includes("<head "))return j;let F=q.useNonce?I(z,q):void 0,E=L(q.directives,F);return j.replace(/<head([^>]*)>/,`<head$1>
|
|
3
3
|
${E}`)}function M(j,q){let z=j;return z=z.replace(/<script(?![^>]*\ssrc=)([^>]*)>/gi,(F,E)=>{if(E.includes("nonce="))return F;return`<script nonce="${q}"${E}>`}),z=z.replace(/<style([^>]*)>/gi,(F,E)=>{if(E.includes("nonce="))return F;return`<style nonce="${q}"${E}>`}),z}function S(j,q,z,F){let E=j,B=F.csp;if(E=E.replace(/@csp\b/g,()=>{if(!B?.enabled||!B.directives)return"<!-- CSP not configured -->";let G=B.useNonce?I(q,B):void 0;return L(B.directives,G)}),E=E.replace(/@cspNonce\b/g,()=>{if(!B?.enabled||!B.useNonce)return"";return I(q,B)}),B?.enabled&&B.useNonce)q.cspNonce=I(q,B);return E}var _={name:"csp",handler:(j,q,z,F)=>{let B=z.__stx_options?.csp;if(!B?.enabled||!B.directives)return"<!-- CSP not configured -->";let G=B.useNonce?I(z,B):void 0;return L(B.directives,G)},hasEndTag:!1,description:"Insert Content-Security-Policy meta tag"},$={name:"cspNonce",handler:(j,q,z,F)=>{let B=z.__stx_options?.csp;if(!B?.enabled||!B.useNonce)return"";return I(z,B)},hasEndTag:!1,description:"Output the current CSP nonce value"};function T(){return[_,$]}function V(j){let q=[];if(j["script-src"]?.includes("'unsafe-inline'"))q.push("CSP: Using unsafe-inline in script-src significantly reduces XSS protection");if(j["script-src"]?.includes("'unsafe-eval'"))q.push("CSP: Using unsafe-eval in script-src allows eval() and related functions");if(!j["default-src"])q.push("CSP: No default-src specified. Recommend adding default-src as a fallback");if(j["default-src"]?.includes("*"))q.push("CSP: Using * in default-src provides minimal protection");if(!j["object-src"]&&!j["default-src"]?.includes("'none'"))q.push("CSP: Consider adding object-src: none to block plugins");if(!j["base-uri"])q.push("CSP: Consider adding base-uri to prevent base tag injection attacks");for(let[z,F]of Object.entries(j))if(Array.isArray(F)&&F.includes("http:"))q.push(`CSP: Using http: in ${z} allows insecure resources`);return q}function k(j=!1){return j?"Content-Security-Policy-Report-Only":"Content-Security-Policy"}function y(j,q){if(!j.enabled)return{};let z=j.useNonce?I(q,j):void 0,F=R(j.directives,z);return{[k(j.reportOnly)]:F}}var P={enabled:!1,reportOnly:!1,directives:K,useNonce:!1,addMetaTag:!0};
|
|
4
|
-
export{Q as
|
|
4
|
+
export{Q as _w,I as $w,A as ax,R as bx,L as cx,X as dx,K as ex,Y as fx,Z as gx,O as hx,D as ix,H as jx,M as kx,S as lx,_ as mx,$ as nx,T as ox,V as px,k as qx,y as rx,P as sx};
|
|
@@ -166,4 +166,4 @@ ${Array.from(q.entries()).map(([j,y])=>` window.__stxIslands.register('${j}', f
|
|
|
166
166
|
`)}
|
|
167
167
|
})();
|
|
168
168
|
</script>`}function F(q){let w=q.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(w)return w[1];let j=q.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(j)return j[1];return null}function G(q,w){let j={},y=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,z;while((z=y.exec(q))!==null){let B=z[1],A=z[2];if(A in w)j[B]=w[A];else j[B]=A}return j}
|
|
169
|
-
export{C as
|
|
169
|
+
export{C as mm,D as nm,F as om,G as pm};
|