@stacksjs/stx 0.2.92 → 0.2.93
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-5y4q9abj.js → chunk-04n64bnt.js} +1 -1
- package/dist/{chunk-3ewtm19c.js → chunk-06w68hyg.js} +2 -2
- package/dist/{chunk-ccgmxmjk.js → chunk-07y6m5xx.js} +1 -1
- package/dist/{chunk-j25swncq.js → chunk-095s3972.js} +1 -1
- package/dist/{chunk-ckz0ppkr.js → chunk-09k66d8a.js} +1 -1
- package/dist/{chunk-g22tv0ed.js → chunk-0a61y94n.js} +2 -2
- package/dist/{chunk-exfw0aqe.js → chunk-0dx4q6yq.js} +1 -1
- package/dist/{chunk-t1dzvz5z.js → chunk-0dz85jrp.js} +1 -1
- package/dist/{chunk-k7yp9h17.js → chunk-0jd0pndq.js} +1 -1
- package/dist/{chunk-r738cjs3.js → chunk-0p0nyq50.js} +2 -2
- package/dist/{chunk-ke7rcrfm.js → chunk-0p1h3p3w.js} +1 -1
- package/dist/{chunk-9pzdyd8q.js → chunk-0qnz93q2.js} +2 -2
- package/dist/{chunk-j6d9ksyj.js → chunk-10debkj5.js} +1 -1
- package/dist/{chunk-pzc0bs5r.js → chunk-15nesxgt.js} +2 -2
- package/dist/{chunk-snj1hfpb.js → chunk-1sr54zp8.js} +1 -1
- package/dist/{chunk-3whqk46c.js → chunk-1v49fwr5.js} +1 -1
- package/dist/{chunk-tzd81m7r.js → chunk-1xz0w746.js} +2 -2
- package/dist/{chunk-jmky0qzm.js → chunk-1z5nhbjt.js} +1 -1
- package/dist/{chunk-qhrcts5t.js → chunk-20swzkx3.js} +1 -1
- package/dist/{chunk-jm460jxs.js → chunk-27zsyhrd.js} +1 -1
- package/dist/{chunk-rhyxeb33.js → chunk-29y0hk5z.js} +2 -2
- package/dist/{chunk-zv9jfm2f.js → chunk-2cdvw21b.js} +1 -1
- package/dist/{chunk-2rd0ykrg.js → chunk-2j21d3ka.js} +1 -1
- package/dist/chunk-2jxbwnkz.js +2 -0
- package/dist/{chunk-a2xzs4kd.js → chunk-31dr4bys.js} +2 -2
- package/dist/{chunk-08ncwhv7.js → chunk-35faj94w.js} +1 -1
- package/dist/{chunk-nv3k4bf9.js → chunk-39gm08bn.js} +1 -1
- package/dist/{chunk-dtcj9r7p.js → chunk-3a4qsygv.js} +2 -2
- package/dist/{chunk-xkzz5rb0.js → chunk-3te20hqw.js} +2 -2
- package/dist/{chunk-z06myqr1.js → chunk-43t7faps.js} +2 -2
- package/dist/{chunk-jcjzg6r5.js → chunk-47kpewks.js} +1 -1
- package/dist/{chunk-my0qmjw4.js → chunk-4d2y57k7.js} +2 -2
- package/dist/{chunk-c9f5k95v.js → chunk-4deg33rw.js} +2 -2
- package/dist/{chunk-t38vt890.js → chunk-4k7d8p8d.js} +1 -1
- package/dist/{chunk-n2wmny2b.js → chunk-4qcy5tx6.js} +2 -2
- package/dist/{chunk-9d0q9k3p.js → chunk-4x7kae4j.js} +2 -2
- package/dist/{chunk-qr72av66.js → chunk-55nwdnsd.js} +1 -1
- package/dist/{chunk-1vz36hw3.js → chunk-55yp0q8t.js} +1 -1
- package/dist/{chunk-rqwhb85x.js → chunk-5f43yz6z.js} +2 -2
- package/dist/{chunk-b0w1cm1s.js → chunk-5shey2e4.js} +1 -1
- package/dist/{chunk-b37f9ebf.js → chunk-6b5k6w2q.js} +1 -1
- package/dist/{chunk-zwdargbj.js → chunk-6djzdes9.js} +1 -1
- package/dist/{chunk-knefeadt.js → chunk-6e4c6g46.js} +2 -2
- package/dist/{chunk-0fsrhs3d.js → chunk-6eqbxcrd.js} +1 -1
- package/dist/{chunk-9p45wwff.js → chunk-7074g241.js} +1 -1
- package/dist/{chunk-88wdr7f3.js → chunk-7b6s3g65.js} +1 -1
- package/dist/{chunk-5wecgn5n.js → chunk-7cgmq685.js} +1 -1
- package/dist/{chunk-eghdf4qq.js → chunk-7dkz6z2s.js} +2 -2
- package/dist/{chunk-h6s1thg6.js → chunk-7ed3tean.js} +1 -1
- package/dist/{chunk-zr8631g4.js → chunk-7gd339hd.js} +1 -1
- package/dist/{chunk-6t76k6ry.js → chunk-7j5e8sdj.js} +2 -2
- package/dist/{chunk-8fhv0xaw.js → chunk-7n8g0nfn.js} +2 -2
- package/dist/{chunk-31w1xfs1.js → chunk-80g54ncj.js} +1 -1
- package/dist/{chunk-6wqrqn2x.js → chunk-8a5bxece.js} +2 -2
- package/dist/{chunk-87rkm7qf.js → chunk-8ahwt6a4.js} +2 -2
- package/dist/{chunk-y92w0240.js → chunk-8b3z0zd5.js} +1 -1
- package/dist/{chunk-7bd8bw2z.js → chunk-8dhdpa5h.js} +2 -2
- package/dist/{chunk-04yrgvdd.js → chunk-8n9nnqr6.js} +1 -1
- package/dist/{chunk-h1035wzj.js → chunk-8qc1bsym.js} +1 -1
- package/dist/{chunk-9w7021bx.js → chunk-8va64c9n.js} +2 -2
- package/dist/{chunk-yssvz8zs.js → chunk-8vtm0m84.js} +1 -1
- package/dist/{chunk-c23697dp.js → chunk-8xj7c3mf.js} +1 -1
- package/dist/{chunk-8g0jb444.js → chunk-988dw6q3.js} +2 -2
- package/dist/{chunk-ktvdeqjr.js → chunk-9b6cec0v.js} +1 -1
- package/dist/{chunk-m911bf2b.js → chunk-9cf97f9p.js} +2 -2
- package/dist/{chunk-xgmza98t.js → chunk-9ecv8aqj.js} +1 -1
- package/dist/{chunk-ydhza16t.js → chunk-9eq3ht5f.js} +1 -1
- package/dist/{chunk-sd2c11bp.js → chunk-9jtj77jx.js} +2 -2
- package/dist/{chunk-yywc3yge.js → chunk-9t14se2t.js} +1 -1
- package/dist/{chunk-w719zps0.js → chunk-9wmq2272.js} +1 -1
- package/dist/{chunk-wk7mgg5n.js → chunk-9zbk5zx5.js} +2 -2
- package/dist/{chunk-rdaavfsg.js → chunk-a2g2qb2y.js} +1 -1
- package/dist/{chunk-agzvhej1.js → chunk-a3hyn4we.js} +1 -1
- package/dist/{chunk-14kfmww0.js → chunk-a87qqft6.js} +2 -2
- package/dist/{chunk-md4j8nch.js → chunk-ah88wzbg.js} +1 -1
- package/dist/{chunk-wdtanmx1.js → chunk-akf1r75r.js} +1 -1
- package/dist/{chunk-xw9skf0n.js → chunk-amaa1bev.js} +1 -1
- package/dist/{chunk-rth1890k.js → chunk-avx8aydt.js} +2 -2
- package/dist/{chunk-kh976zgv.js → chunk-ay9qf4zj.js} +1 -1
- package/dist/{chunk-aaaxvn5r.js → chunk-aywxfqev.js} +1 -1
- package/dist/{chunk-19f7xyy7.js → chunk-azkegjd8.js} +2 -2
- package/dist/{chunk-tgvekhwz.js → chunk-b77wjyn7.js} +1 -1
- package/dist/{chunk-tj9kmtnx.js → chunk-baf1hfwh.js} +2 -2
- package/dist/{chunk-zxxt0c9q.js → chunk-bdk6g1vj.js} +2 -2
- package/dist/{chunk-j1myedcr.js → chunk-bhqgmyqw.js} +1 -1
- package/dist/{chunk-13mkbvxc.js → chunk-bk3j0n82.js} +1 -1
- package/dist/{chunk-jtx73fsh.js → chunk-bndmdahk.js} +2 -2
- package/dist/{chunk-nacsxc1r.js → chunk-bpgg59wa.js} +1 -1
- package/dist/{chunk-xmjedbkt.js → chunk-bs3gmfxz.js} +1 -1
- package/dist/{chunk-dnkq5y2j.js → chunk-bxc7kjsk.js} +2 -2
- package/dist/{chunk-0qzxbxgp.js → chunk-c7jg8w13.js} +1 -1
- package/dist/{chunk-nh418dpm.js → chunk-ckxjqqn9.js} +2 -2
- package/dist/{chunk-r3cxnszy.js → chunk-d0zjtdw4.js} +2 -2
- package/dist/{chunk-g9gksn68.js → chunk-d1qh1x2g.js} +2 -2
- package/dist/{chunk-6jhqq7es.js → chunk-djddhmcc.js} +1 -1
- package/dist/{chunk-5tv1swsr.js → chunk-dqn9gyhb.js} +1 -1
- package/dist/{chunk-qhzdkgg3.js → chunk-drjq2zwg.js} +2 -2
- package/dist/{chunk-cf86cs0k.js → chunk-dvfs1h3c.js} +2 -2
- package/dist/{chunk-p4wm4a45.js → chunk-e2q9c5vq.js} +2 -2
- package/dist/{chunk-9tksycj5.js → chunk-e98v1bc6.js} +2 -2
- package/dist/chunk-ejayeex8.js +2 -0
- package/dist/{chunk-a4zj7qpt.js → chunk-ejh8fyak.js} +1 -1
- package/dist/{chunk-fh1d8bxd.js → chunk-ek2w6zvy.js} +1 -1
- package/dist/{chunk-0m53nxvy.js → chunk-ewa88139.js} +1 -1
- package/dist/{chunk-pjaa8q7x.js → chunk-fjk3x41y.js} +2 -2
- package/dist/{chunk-6sx4d083.js → chunk-frg705zq.js} +1 -1
- package/dist/{chunk-acry1mfc.js → chunk-fzm3y0r3.js} +1 -1
- package/dist/{chunk-nwfa5766.js → chunk-g1vt329s.js} +2 -2
- package/dist/{chunk-zxsqbve0.js → chunk-g4ps1dj8.js} +2 -2
- package/dist/{chunk-x6n8z1n8.js → chunk-gkzq8zw4.js} +1 -1
- package/dist/{chunk-hkjq64we.js → chunk-gz5fmp3q.js} +1 -1
- package/dist/{chunk-ddst5g08.js → chunk-h0hjy0kn.js} +1 -1
- package/dist/{chunk-e792k31a.js → chunk-h5jxydqq.js} +1 -1
- package/dist/{chunk-at9v5saf.js → chunk-h5wa62ek.js} +1 -1
- package/dist/{chunk-91gyjg5c.js → chunk-h7aq56qj.js} +2 -2
- package/dist/{chunk-ecabspxs.js → chunk-h82kjdr4.js} +1 -1
- package/dist/{chunk-zx43nkm1.js → chunk-hbehnm18.js} +2 -2
- package/dist/{chunk-v9199ywv.js → chunk-hbgxbgam.js} +2 -2
- package/dist/{chunk-5e2khb7q.js → chunk-hc2mf5h6.js} +2 -2
- package/dist/{chunk-r7d26vjj.js → chunk-hjm2xab3.js} +1 -1
- package/dist/{chunk-fnqf7293.js → chunk-hrnnh4tq.js} +2 -2
- package/dist/{chunk-pcngkyjr.js → chunk-ht43ds42.js} +2 -2
- package/dist/{chunk-22xxm2x5.js → chunk-hxx3za24.js} +1 -1
- package/dist/{chunk-nqxqy9v2.js → chunk-hy8820vc.js} +1 -1
- package/dist/{chunk-fbbv5x9m.js → chunk-j447q024.js} +2 -2
- package/dist/{chunk-am5rtv86.js → chunk-j58vh0w6.js} +1 -1
- package/dist/{chunk-sgsb5xp4.js → chunk-j8tn8enq.js} +2 -2
- package/dist/{chunk-vwp4dw7e.js → chunk-jc0fc4ht.js} +1 -1
- package/dist/{chunk-kemb0fyc.js → chunk-jcs0ymw7.js} +1 -1
- package/dist/{chunk-fnt3srfr.js → chunk-jjamhxpm.js} +1 -1
- package/dist/{chunk-hz7qnpx1.js → chunk-jjb05d21.js} +2 -2
- package/dist/{chunk-g3f1xq76.js → chunk-jjdq01dv.js} +1 -1
- package/dist/{chunk-a33kr9b0.js → chunk-jnmgm2xw.js} +1 -1
- package/dist/{chunk-kqtchwz7.js → chunk-jpndqst5.js} +1 -1
- package/dist/{chunk-1hyk728h.js → chunk-jt0ezawy.js} +1 -1
- package/dist/{chunk-w4a3cvtp.js → chunk-jz73j3qs.js} +1 -1
- package/dist/{chunk-n3k3e9n5.js → chunk-k21df0pg.js} +1 -1
- package/dist/{chunk-dcp0znhd.js → chunk-k848dzsa.js} +1 -1
- package/dist/{chunk-mqnymcn5.js → chunk-kdfe4t91.js} +2 -2
- package/dist/{chunk-7aph6rw7.js → chunk-keawsbpn.js} +1 -1
- package/dist/{chunk-jdy93c39.js → chunk-kgym7ch9.js} +1 -1
- package/dist/{chunk-1htmc8mb.js → chunk-khdn7jwe.js} +2 -2
- package/dist/{chunk-f9j3mr9z.js → chunk-km25cwz6.js} +1 -1
- package/dist/{chunk-r1m8g439.js → chunk-knm8a8yx.js} +1 -1
- package/dist/{chunk-zepv7y44.js → chunk-krqn0ddk.js} +2 -2
- package/dist/{chunk-2aydpj2n.js → chunk-kx6eb6ma.js} +1 -1
- package/dist/{chunk-r5sggjdv.js → chunk-kypas8vy.js} +2 -2
- package/dist/{chunk-npj33yqb.js → chunk-m167kjhv.js} +1 -1
- package/dist/{chunk-x4qr3b2z.js → chunk-m491r0rj.js} +1 -1
- package/dist/{chunk-ktpc2rc4.js → chunk-m8448qby.js} +1 -1
- package/dist/{chunk-fk0m346m.js → chunk-mgj88zeq.js} +2 -2
- package/dist/{chunk-7sd6c9wv.js → chunk-mhgk632d.js} +1 -1
- package/dist/{chunk-sn7pmfn4.js → chunk-n5kg7fpx.js} +1 -1
- package/dist/{chunk-02bd1cng.js → chunk-n98x35xd.js} +1 -1
- package/dist/{chunk-4ep9gk7d.js → chunk-n9dhs1dw.js} +1 -1
- package/dist/{chunk-8x58wmgs.js → chunk-nd9rmddh.js} +2 -2
- package/dist/{chunk-xm3hz63f.js → chunk-ngxfwzq3.js} +1 -1
- package/dist/{chunk-tavtph8x.js → chunk-nhv099jv.js} +1 -1
- package/dist/{chunk-1k3k1tf8.js → chunk-nm15ccsg.js} +2 -2
- package/dist/{chunk-2g16stee.js → chunk-npfmdb6y.js} +2 -2
- package/dist/{chunk-fngb9apr.js → chunk-nvwb4x04.js} +1 -1
- package/dist/{chunk-ydhrdatx.js → chunk-nw34xajc.js} +1 -1
- package/dist/{chunk-9v7q6xn4.js → chunk-p077sw22.js} +1 -1
- package/dist/{chunk-hrgg37a9.js → chunk-p1h8065h.js} +2 -2
- package/dist/{chunk-tb9c2mq7.js → chunk-p3e0cqtt.js} +2 -2
- package/dist/{chunk-gapx9vqm.js → chunk-p3fpb79v.js} +1 -1
- package/dist/{chunk-c7zedzbg.js → chunk-p52yzjq6.js} +2 -2
- package/dist/{chunk-wtgrc6ya.js → chunk-p73meypx.js} +1 -1
- package/dist/{chunk-9fj7hpwa.js → chunk-pa9zb7ty.js} +1 -1
- package/dist/{chunk-3wth4wa6.js → chunk-payfb24w.js} +1 -1
- package/dist/{chunk-tzehzwyr.js → chunk-pcm1vd8w.js} +1 -1
- package/dist/{chunk-h3mb2q51.js → chunk-pcntd9h4.js} +2 -2
- package/dist/{chunk-xecnz132.js → chunk-pg1fvqb9.js} +1 -1
- package/dist/{chunk-hdv4tnvh.js → chunk-psc3wfcf.js} +2 -2
- package/dist/{chunk-1qy4gac6.js → chunk-pznnww6k.js} +2 -2
- package/dist/{chunk-6e08xfzp.js → chunk-q6zhd9yf.js} +1 -1
- package/dist/{chunk-gfsk93gv.js → chunk-qa59zejf.js} +2 -2
- package/dist/{chunk-r6sb1sm4.js → chunk-qvrbjpdc.js} +2 -2
- package/dist/{chunk-sk1gmrr8.js → chunk-qygvvygy.js} +2 -2
- package/dist/{chunk-wntaqqhz.js → chunk-r0jcmpv6.js} +1 -1
- package/dist/{chunk-t7ghqd7e.js → chunk-r5m9xtm7.js} +2 -2
- package/dist/{chunk-kpp2baaz.js → chunk-rkffm9sy.js} +1 -1
- package/dist/{chunk-646pxdd1.js → chunk-rpx5fa65.js} +2 -2
- package/dist/{chunk-1yg3x73j.js → chunk-rqxf5hns.js} +1 -1
- package/dist/{chunk-f7f4g33p.js → chunk-rtr974rc.js} +2 -2
- package/dist/{chunk-fyq5573f.js → chunk-rvptcndz.js} +2 -2
- package/dist/{chunk-ms9rebfj.js → chunk-rw26rpek.js} +2 -2
- package/dist/{chunk-vy0k2prz.js → chunk-rw7937v4.js} +2 -2
- package/dist/{chunk-zvyc82ke.js → chunk-rwrv9wbf.js} +1 -1
- package/dist/{chunk-bg1xym0q.js → chunk-rz2ec6g7.js} +1 -1
- package/dist/{chunk-64bwamng.js → chunk-s6ja2bdg.js} +1 -1
- package/dist/{chunk-4ewrwqwn.js → chunk-scpkdrdb.js} +1 -1
- package/dist/{chunk-0t75nh4z.js → chunk-shv88d2d.js} +2 -2
- package/dist/{chunk-8xbj6dqe.js → chunk-t0c9wvpr.js} +1 -1
- package/dist/{chunk-f228sm5e.js → chunk-tffh3b1e.js} +1 -1
- package/dist/{chunk-3rgj1qn6.js → chunk-tg2f1mzq.js} +2 -2
- package/dist/{chunk-fcpxs8mm.js → chunk-trfswy66.js} +1 -1
- package/dist/{chunk-rkr7cgs8.js → chunk-tzwtg722.js} +1 -1
- package/dist/{chunk-a50svyjn.js → chunk-v7f8jj15.js} +1 -1
- package/dist/{chunk-qvmrwh8n.js → chunk-v8j49spx.js} +1 -1
- package/dist/{chunk-zwpm1pa8.js → chunk-vcr5pzpx.js} +1 -1
- package/dist/{chunk-ewytyv0p.js → chunk-veeerpwa.js} +2 -2
- package/dist/{chunk-p993psbk.js → chunk-vg5kt6az.js} +1 -1
- package/dist/{chunk-hd27hhzr.js → chunk-vgv7jvyz.js} +1 -1
- package/dist/{chunk-9ezvda3j.js → chunk-vjbefncc.js} +1 -1
- package/dist/{chunk-e8x46y38.js → chunk-vmxjghsm.js} +1 -1
- package/dist/{chunk-dkt9p3bk.js → chunk-vw7vqd76.js} +1 -1
- package/dist/{chunk-p5j0686t.js → chunk-w3b6m427.js} +1 -1
- package/dist/{chunk-593x2ccf.js → chunk-wazkqv7n.js} +2 -2
- package/dist/{chunk-bgan5edn.js → chunk-wf7zrjsw.js} +1 -1
- package/dist/{chunk-b5xf2v7f.js → chunk-wfg2gm11.js} +1 -1
- package/dist/{chunk-1w3354fv.js → chunk-wg9k6h8w.js} +2 -2
- package/dist/{chunk-wbrqpv9f.js → chunk-wkz2vwkr.js} +2 -2
- package/dist/{chunk-mp9dsjrg.js → chunk-wvef3ngh.js} +1 -1
- package/dist/{chunk-w3e1fm1q.js → chunk-wvf31nzs.js} +1 -1
- package/dist/{chunk-1bzckhs2.js → chunk-x05nxhyv.js} +2 -2
- package/dist/{chunk-ybe2cpx1.js → chunk-x0770gt9.js} +1 -1
- package/dist/{chunk-ds6g241c.js → chunk-x24s4heg.js} +1 -1
- package/dist/{chunk-f6s1jx8c.js → chunk-x3r64r0c.js} +2 -2
- package/dist/{chunk-n7j8tczc.js → chunk-x5g9w4hh.js} +2 -2
- package/dist/{chunk-nsrqf0dg.js → chunk-xgkv66q5.js} +1 -1
- package/dist/{chunk-kyhq6hzp.js → chunk-xs03kc1h.js} +1 -1
- package/dist/{chunk-6r70w54p.js → chunk-xv34zbp4.js} +1 -1
- package/dist/{chunk-zhr3za7x.js → chunk-xw36p73h.js} +2 -2
- package/dist/{chunk-ms6793rw.js → chunk-xyg1r5w0.js} +2 -2
- package/dist/{chunk-1bknva4p.js → chunk-xys2sxh6.js} +1 -1
- package/dist/{chunk-vg97xcma.js → chunk-y0qg6rrv.js} +1 -1
- package/dist/{chunk-v0s45ek4.js → chunk-y1k17c8b.js} +2 -2
- package/dist/{chunk-zasq08k3.js → chunk-y5xz0jc4.js} +1 -1
- package/dist/{chunk-ftzqtv1k.js → chunk-y6xsqe9a.js} +2 -2
- package/dist/{chunk-7t4hkmxb.js → chunk-yb1t2h8h.js} +2 -2
- package/dist/{chunk-c03qara0.js → chunk-ygvyc6wv.js} +1 -1
- package/dist/{chunk-71n355cg.js → chunk-yj4x5ehw.js} +2 -2
- package/dist/{chunk-pdv5dhen.js → chunk-yn38c15w.js} +1 -1
- package/dist/{chunk-dgf2g708.js → chunk-ynhngsdh.js} +1 -1
- package/dist/{chunk-hkabmxjj.js → chunk-yrsb6j3z.js} +2 -2
- package/dist/chunk-yywfvfph.js +2 -0
- package/dist/{chunk-fp417rws.js → chunk-zcxzdrn7.js} +2 -2
- package/dist/{chunk-gcsqn7x9.js → chunk-zen6ax1y.js} +2 -2
- package/dist/{chunk-vawc9ak6.js → chunk-zf2pek72.js} +1 -1
- package/dist/{chunk-zmsj7wh8.js → chunk-zk3d0jjf.js} +1 -1
- package/dist/{chunk-6zhv4fcq.js → chunk-zy3rp1ab.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 +1 -1
- package/dist/dev-server/serve-file.js +1 -1
- package/dist/dev-server/serve-markdown.js +1 -1
- package/dist/dev-server/serve-multi.js +1 -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-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-xzjrrd36.js +0 -1
- package/dist/chunk-zx35qm5v.js +0 -3
|
@@ -80,4 +80,4 @@ function Q(A){let q=[],E=/@interaction\s*\(\s*['"]([^'"]+)['"]\s*\)([\s\S]*?)@en
|
|
|
80
80
|
};
|
|
81
81
|
`}function W(A){let q=[],E=A.filter((j)=>j.passed).length,z=A.filter((j)=>!j.passed).length;q.push(""),q.push("Interaction Tests"),q.push("\u2500".repeat(40));for(let j of A){let D=j.passed?"\u2713":"\u2717",B=j.passed?"PASS":"FAIL";if(q.push(`${D} ${j.name} [${B}] (${j.duration}ms)`),!j.passed&&j.error){if(q.push(` Error: ${j.error}`),j.failedStep!==void 0)q.push(` Failed at step: ${j.failedStep+1}`)}}return q.push(""),q.push(`Total: ${A.length} | Passed: ${E} | Failed: ${z}`),q.push(""),q.join(`
|
|
82
82
|
`)}
|
|
83
|
-
export{Q as
|
|
83
|
+
export{Q as ha,U as ia,V as ja,W as ka};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{D as
|
|
2
|
+
import{Qs as $}from"./chunk-1xz0w746.js";import{py as Z}from"./chunk-zen6ax1y.js";import{Ry as Y}from"./chunk-27zsyhrd.js";import{uz as _}from"./chunk-w3b6m427.js";function A(L,K){let H={},B=L.trim();if(B.startsWith("{"))B=B.slice(1);if(B.endsWith("}"))B=B.slice(0,-1);if(B=B.trim(),!B)return H;let z=0;while(z<B.length){while(z<B.length&&/\s/.test(B[z]))z++;if(z>=B.length)break;let I="";if(B[z]==='"'||B[z]==="'"){let F=B[z];z++;while(z<B.length&&B[z]!==F)if(B[z]==="\\"&&z+1<B.length)I+=B[z+1],z+=2;else I+=B[z],z++;z++}else while(z<B.length&&/[\w$]/.test(B[z]))I+=B[z],z++;while(z<B.length&&/\s/.test(B[z]))z++;if(B[z]===":")z++;while(z<B.length&&/\s/.test(B[z]))z++;let G,Q=z;if(B[z]==='"'||B[z]==="'"){let F=B[z];z++;let M="";while(z<B.length&&B[z]!==F)if(B[z]==="\\"&&z+1<B.length)M+=B[z+1],z+=2;else M+=B[z],z++;z++,G=M}else if(B[z]==="{"){let F=1;z++;while(z<B.length&&F>0){if(B[z]==="{")F++;else if(B[z]==="}")F--;else if(B[z]==='"'||B[z]==="'"){let J=B[z];z++;while(z<B.length&&B[z]!==J){if(B[z]==="\\")z++;z++}}z++}let M=B.slice(Q,z);G=A(M,K)}else if(B[z]==="["){let F=1;z++;while(z<B.length&&F>0){if(B[z]==="[")F++;else if(B[z]==="]")F--;else if(B[z]==='"'||B[z]==="'"){let J=B[z];z++;while(z<B.length&&B[z]!==J){if(B[z]==="\\")z++;z++}}z++}let M=B.slice(Q,z);try{G=JSON.parse(M.replace(/'/g,'"'))}catch{G=M}}else{let F="";while(z<B.length&&B[z]!==","&&!/\s/.test(B[z]))F+=B[z],z++;if(F=F.trim(),F==="true")G=!0;else if(F==="false")G=!1;else if(F==="null")G=null;else if(F==="undefined")G=void 0;else if(/^-?\d+(\.\d+)?$/.test(F))G=Number(F);else if(F in K)G=K[F];else G=F}if(I)H[I]=G;while(z<B.length&&/\s/.test(B[z]))z++;if(B[z]===",")z++}return H}function D(L,K,H){let B=[];for(let[z,I]of Object.entries(K)){let G=L[z];if(I.required&&(G===void 0||G===null)){B.push(`Component "${H}": Missing required prop "${z}"`);continue}if(G===void 0||G===null)continue;let Q=Array.isArray(I.type)?I.type:[I.type];if(!Q.includes("any")){let F=O(G);if(!Q.includes(F))B.push(`Component "${H}": Prop "${z}" expected ${Q.join(" | ")}, got ${F}`)}if(I.validator&&!I.validator(G))B.push(`Component "${H}": Prop "${z}" failed custom validation`)}return B}function T(L,K){let H={...L};for(let[B,z]of Object.entries(K))if(H[B]===void 0&&z.default!==void 0)H[B]=typeof z.default==="function"?z.default():z.default;return H}function O(L){if(Array.isArray(L))return"array";if(L===null)return"null";return typeof L}var R={name:"component",handler:async(L,K,H,B)=>{if(K.length<1)return Z("Component","component directive requires at least the component name",Y.INVALID_DIRECTIVE_SYNTAX);let z=K[0].replace(/['"]/g,""),I={};if(K.length>1)try{let J=K.slice(1).join(",").trim();if(J.startsWith("{")){if(I=_(J,H),Object.keys(I).length===0)I=A(J,H)}else{let U=J.trim(),X=H[U];if(X&&typeof X==="object"&&!Array.isArray(X))I=X}}catch(J){let U=J instanceof Error?J.message:String(J);return console.error("Component props parsing error:",U),Z("Component",`Error parsing component props: ${U}`,Y.EVALUATION_ERROR)}let G=H.__stx_options||{},Q=G.componentsDir||"components",F=new Set;if(!H.__processedComponents)H.__processedComponents=new Set;let M=H.__processedComponents;try{return await $(z,I,"",Q,H,B,G,M,F)}catch(J){console.error("Component rendering error:",J);let U=J instanceof Error?J.message:String(J);return Z("Component",`Error rendering component: ${U}`,Y.COMPONENT_RENDER_ERROR)}},hasEndTag:!1};function q(){return[R]}
|
|
3
|
+
export{D as fp,T as gp,R as hp,q as ip};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{py as U}from"./chunk-zen6ax1y.js";import{Ry as v}from"./chunk-27zsyhrd.js";import{uz as D}from"./chunk-w3b6m427.js";function P(F,z,V,Y){let G=F;G=G.replace(/@meta\(\s*['"]([^'"]+)['"](?:,\s*['"]([^'"]+)['"]\s*)?\)/g,($,N,A)=>{if(!A&&N.includes(":")){let Z=N.split(":"),q=N,B=Z.length>1?Z[1]:"";if(B&&z[B])A=z[B];else if(q.startsWith("og:")&&z.openGraph&&z.openGraph[Z[1]])A=z.openGraph[Z[1]];else A="";return A?`<meta property="${J(q)}" content="${J(A)}">`:""}return A?`<meta name="${J(N)}" content="${J(A)}">`:""});let I=/@metaTag\s*\(/g,_;while((_=I.exec(G))!==null){let $=_.index,N=$+_[0].length-1,A=1,Z=N+1;while(Z<G.length&&A>0){if(G[Z]==="(")A++;else if(G[Z]===")"){if(A--,A===0)break}Z++}if(A!==0)break;let q=G.substring(N+1,Z).trim(),B=Z+1,L=(()=>{try{let R=D(q,z);if(!R)return"";let j="<meta";if(R.name)j+=` name="${J(String(R.name))}"`;if(R.property)j+=` property="${J(String(R.property))}"`;if(R.httpEquiv)j+=` http-equiv="${J(String(R.httpEquiv))}"`;if(R.content)j+=` content="${J(String(R.content))}"`;return j+=">",j}catch(R){let j=R instanceof Error?R.message:String(R);return U("MetaTag",j,v.EVALUATION_ERROR)}})();G=G.substring(0,$)+L+G.substring(B),I.lastIndex=0}return G}function y(F,z,V){let Y=F,G=/@structuredData\s*\(/g,I;while((I=G.exec(Y))!==null){let _=I.index,$=_+I[0].length-1,N=1,A=$+1;while(A<Y.length&&N>0){if(Y[A]==="(")N++;else if(Y[A]===")"){if(N--,N===0)break}A++}if(N!==0)break;let Z=Y.substring($+1,A).trim(),q=A+1,B=(()=>{try{let L=D(Z,z);if(!L)return"";if(!L["@context"])L["@context"]="https://schema.org";return`<script type="application/ld+json">${JSON.stringify(L).replace(/<\//g,"<\\/")}</script>`}catch(L){let R=L instanceof Error?L.message:String(L);return U("StructuredData",R,v.EVALUATION_ERROR)}})();Y=Y.substring(0,_)+B+Y.substring(q),G.lastIndex=0}return Y}function T(F,z,V,Y){let G=F,I=/@seo\s*\(\s*\{/g,_;while((_=I.exec(G))!==null){let $=G.indexOf("{",_.index+4),N=1,A=$+1,Z=null,q=!1;while(A<G.length&&N>0){let O=G[A];if(q){q=!1,A++;continue}if(O==="\\"&&Z){q=!0,A++;continue}if(Z){if(O===Z)Z=null;A++;continue}if(O==='"'||O==="'"||O==="`"){Z=O,A++;continue}if(O==="{")N++;else if(O==="}")N--;A++}if(N!==0)break;let B=G.substring(A).match(/^\s*\)/);if(!B)break;let L=A+B[0].length,R=G.substring($,A),j=G.substring(_.index,L),X=((O)=>{try{let Q=D(O,z);if(!Q)return"";let k="";if(Q.title)k+=`<title>${J(Q.title)}</title>
|
|
3
3
|
`,k+=`<meta name="title" content="${J(Q.title)}">
|
|
4
4
|
`;if(Q.description)k+=`<meta name="description" content="${J(Q.description)}">
|
|
5
5
|
`;if(Q.keywords){let W=Array.isArray(Q.keywords)?Q.keywords.join(", "):Q.keywords;k+=`<meta name="keywords" content="${J(W)}">
|
|
@@ -55,4 +55,4 @@ ${F.map((I)=>{let _=I.startsWith("http")?I:`${V}${I.startsWith("/")?"":"/"}${I}`
|
|
|
55
55
|
`)}
|
|
56
56
|
</sitemapindex>`}async function d(F,z){let{extensions:V=[".stx",".html",".htm"],ignore:Y=["_*",".*","node_modules","components","partials","layouts"]}=z,G=[],I=V.length===1?`*${V[0]}`:`*{${V.join(",")}}`,_=new Bun.Glob(`**/${I}`);for await(let $ of _.scan(F)){if(Y.some((B)=>{if(B.startsWith("*"))return $.includes(B.slice(1));return $.startsWith(B)||$.includes(`/${B}`)}))continue;let A=$.replace(/\\/g,"/").replace(/index\.(stx|html|htm)$/,"").replace(/\.(stx|html|htm)$/,"");if(!A.startsWith("/"))A=`/${A}`;if(A!=="/"&&A.endsWith("/"))A=A.slice(0,-1);let Z=`${F}/${$}`,q;try{let B=await Bun.file(Z).stat();if(B)q=new Date(B.mtime).toISOString().split("T")[0]}catch{}G.push({loc:A||"/",lastmod:q,priority:A==="/"?1:0.5})}return G.sort(($,N)=>$.loc.localeCompare(N.loc)),G}function b(F){let z=[];for(let V of F.rules){if(z.push(`User-agent: ${V.userAgent}`),V.allow)for(let Y of V.allow)z.push(`Allow: ${Y}`);if(V.disallow)for(let Y of V.disallow)z.push(`Disallow: ${Y}`);if(V.crawlDelay!==void 0)z.push(`Crawl-delay: ${V.crawlDelay}`);z.push("")}if(F.sitemap){let V=Array.isArray(F.sitemap)?F.sitemap:[F.sitemap];for(let Y of V)z.push(`Sitemap: ${Y}`)}if(F.host)z.push(`Host: ${F.host}`);return z.join(`
|
|
57
57
|
`).trim()}function u(F){return b({rules:[{userAgent:"*",allow:["/"]}],sitemap:F})}function C(F){return F.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
58
|
-
export{P as
|
|
58
|
+
export{P as wt,y as xt,T as yt,H as zt,S as At,w as Bt,f as Ct,x as Dt,h as Et,d as Ft,b as Gt,u as Ht};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{cA as Q}from"./chunk-35faj94w.js";import O from"fs";import R from"path";async function U(j,b={}){let q=Date.now(),z={total:0,passed:0,failed:0,new:0,failures:[],duration:0},K=b.snapshotDir||R.join(j.root,".stx","story","snapshots");await O.promises.mkdir(K,{recursive:!0});let B=j.storyFiles;if(b.filter&&b.filter.length>0)B=B.filter((J)=>b.filter.some((G)=>J.fileName.toLowerCase().includes(G.toLowerCase())));for(let J of B)await W(J,K,b,z);return z.duration=Date.now()-q,z}async function W(j,b,q,z){let K=j.story;if(!K)return;for(let B of K.variants){z.total++;let J=R.join(b,`${j.id}-${B.id}.snap`),G=X(B.source||""),L=await Z(J);if(q.update||!L){let M={storyId:j.id,variantId:B.id,component:j.fileName,timestamp:Date.now(),hash:G};if(await O.promises.writeFile(J,JSON.stringify(M,null,2)),!L)z.new++;z.passed++}else try{let M=await O.promises.readFile(J,"utf-8"),N=JSON.parse(M);if(N.hash===G)z.passed++;else z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:"Snapshot mismatch",difference:Y(N.hash,G)})}catch(M){z.failed++,z.failures.push({storyId:j.id,variantId:B.id,component:j.fileName,message:`Error reading snapshot: ${M}`})}}}async function k(j,b={}){return(await U(j,{...b,update:!0})).total}function X(j){let b=0;for(let q=0;q<j.length;q++){let z=j.charCodeAt(q);b=(b<<5)-b+z,b=b&b}return b.toString(16)}function Y(j,b){if(j===b)return 0;let q=Math.abs(Number.parseInt(j,16)-Number.parseInt(b,16));return Math.min(q/1e6,1)}async function Z(j){try{return await O.promises.access(j),!0}catch{return!1}}function w(j){let b=[];if(b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(" STX Story Visual Regression Tests"),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),j.failures.length>0){b.push(" \u274C Failures:"),b.push("");for(let q of j.failures){if(b.push(` \u2022 ${q.component} / ${q.variantId}`),b.push(` ${q.message}`),q.difference!==void 0)b.push(` Difference: ${(q.difference*100).toFixed(2)}%`);b.push("")}}if(b.push(" Summary:"),b.push(` Total: ${j.total}`),b.push(` Passed: ${j.passed} \u2713`),b.push(` Failed: ${j.failed} \u2717`),j.new>0)b.push(` New: ${j.new} \u26A1`);return b.push(` Time: ${j.duration}ms`),b.push(""),b.push("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"),b.push(""),b.join(`
|
|
3
3
|
`)}async function A(j,b={}){let q=performance.now(),z=[],K=0,B=0;for(let G of j.storyFiles)try{let L=await Bun.file(G.path).text(),M=await Q(L,G.path);if(M.length>0){for(let N of M)z.push({storyId:G.id,variantId:"default",component:G.component,message:`A11y: ${N.message}`,expected:"No accessibility violations",actual:`${N.type}: ${N.message} (impact: ${N.impact})`});B++}else K++}catch(L){z.push({storyId:G.id,variantId:"default",component:G.component,message:`Failed to check a11y: ${L instanceof Error?L.message:String(L)}`,expected:"File readable for a11y check",actual:"File read error"}),B++}let J=performance.now()-q;return{total:j.storyFiles.length,passed:K,failed:B,new:0,failures:z,duration:J}}
|
|
4
|
-
export{U as
|
|
4
|
+
export{U as be,k as ce,w as de,A as ee};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var B=0,A=new Map;function F(){B=0,A.clear()}function G(b,q){let j=B++,w=`<!--__STX_${b.toUpperCase()}_${j}__-->`;return A.set(w,{type:b,expression:q}),w}function I(){let b={};for(let[q,j]of A)b[q]={type:j.type,expression:j.expression};return b}function J(b){let q={},j=/<!--__STX_(EXPR|COND|RAW)_(\d+)__-->/g,w;while((w=j.exec(b))!==null){let z=w[0],D=w[1].toLowerCase(),E=A.get(z);q[z]={type:D,expression:E?.expression||""}}return q}function K(b,q){let j=b;for(let[w,z]of q)j=j.split(w).join(z);return j}function N(b){return b.includes("<!--__STX_")}
|
|
3
|
-
export{F as
|
|
3
|
+
export{F as $t,G as au,I as bu,J as cu,K as du,N as eu};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Rs as J,Sr as H}from"./chunk-1xz0w746.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 dn,E as en,N as fn,L as gn,W as hn,F as in,y as jn,T as kn,M as ln,u as mn,P as nn,g as on};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{pB as B}from"./chunk-xv34zbp4.js";import z from"path";async function I(b){let j=b.pwa?.offline;if(!j?.enabled)return"";if(j.page){let k=z.isAbsolute(j.page)?j.page:z.resolve(process.cwd(),j.page);if(await Bun.file(k).exists())try{let{processDirectives:q}=await import("././process.js"),x=await Bun.file(k).text();return await q(x,{},k,b,new Set)}catch(q){console.warn(`[PWA] Failed to process custom offline page: ${q}`)}else console.warn(`[PWA] Custom offline page not found: ${k}`)}return F(b)}function F(b){let j=b.pwa?.offline,k=b.pwa?.manifest,q=j?.fallbackTitle||"You are offline",x=j?.fallbackMessage||"Please check your internet connection and try again.",y=k?.themeColor||"#4f46e5",A=k?.shortName||k?.name||"App";return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -233,4 +233,4 @@ import{jE as B}from"./chunk-6r70w54p.js";import z from"path";async function I(b)
|
|
|
233
233
|
</script>
|
|
234
234
|
</body>
|
|
235
235
|
</html>`}function w(b){return b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
236
|
-
export{I as
|
|
236
|
+
export{I as if};
|
|
@@ -3,4 +3,4 @@ async function E(G){try{let k=await Bun.file(G).text(),q=M(k),H=N(k,G),K=W(k,q),
|
|
|
3
3
|
`),q=G.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i),K=(q?q[1]:"").split(`
|
|
4
4
|
`).length,J={conditionals:(G.match(/@(if|unless|elseif|else|endif|endunless)\b/g)||[]).length,loops:(G.match(/@(foreach|for|endforeach|endfor|while|endwhile)\b/g)||[]).length,includes:(G.match(/@(include|component|extends|section|yield)\b/g)||[]).length,custom:0,total:0};J.total=J.conditionals+J.loops+J.includes+J.custom;let X=(G.match(/\{\{[\s\S]*?\}\}/g)||[]).length,Z=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length,Y=(G.match(/@(?:if|unless|elseif|foreach|for|while)\s*\([^)]+\)/g)||[]).length,V=X+Z+Y,Q=(G.match(/<[A-Z][^>]*>/g)||[]).length,$=(G.match(/@(?:layout|extends)\(/g)||[]).length,j=0,z=0;for(let _ of k)if(/@(?:if|unless|foreach|for|while|section)\b/.test(_)&&!/@end/.test(_)&&!/@else/.test(_))z++,j=Math.max(j,z);else if(/@end(?:if|unless|foreach|for|while|section)\b/.test(_))z--;let O=j>=4?3:0,U=Math.min(10,Math.ceil(J.total*0.5+V*0.1+Q*0.3+(K>10?K*0.05:0)+O));return{lines:k.length,characters:G.length,directives:J,expressions:V,components:Q,layouts:$,scriptLines:K,complexity:U}}function N(G,k){let q=[],H=A(G,"if","endif");if(H>0)q.push({type:"error",category:"syntax",message:`Found ${H} unmatched @if directive(s)`,suggestion:"Ensure every @if has a corresponding @endif"});let K=A(G,"foreach","endforeach");if(K>0)q.push({type:"error",category:"syntax",message:`Found ${K} unmatched @foreach directive(s)`,suggestion:"Ensure every @foreach has a corresponding @endforeach"});let J=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(J&&J.length>0)q.push({type:"warning",category:"performance",message:"Nested loops detected which may impact performance",suggestion:"Consider preprocessing data or using more efficient data structures"});let X=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length;if(X>0)q.push({type:"warning",category:"security",message:`Found ${X} raw output expression(s) {!! !!}`,suggestion:"Ensure raw outputs are properly sanitized to prevent XSS"});let Z=G.match(/<img[^>]*>/g);if(Z){let Q=Z.filter(($)=>!$.includes("alt="));if(Q.length>0)q.push({type:"warning",category:"accessibility",message:`Found ${Q.length} image(s) without alt attributes`,suggestion:"Add alt attributes to all images for screen reader accessibility"})}let Y=G.split(`
|
|
5
5
|
`).filter((Q)=>Q.length>120);if(Y.length>0)q.push({type:"info",category:"maintainability",message:`Found ${Y.length} line(s) longer than 120 characters`,suggestion:"Consider breaking long lines for better readability"});let V=(G.match(/style\s*=\s*["'][^"']*["']/g)||[]).length;if(V>3)q.push({type:"info",category:"maintainability",message:`Found ${V} inline style attributes`,suggestion:"Consider moving styles to CSS classes for better maintainability"});return q}function W(G,k){let q=[];if(k.complexity>7)q.push({type:"refactor",message:"Template complexity is high. Consider breaking into smaller components.",impact:"high",effort:"medium"});else if(k.complexity>5&&k.directives.total>8)q.push({type:"optimization",message:"Template has moderate complexity. Consider component extraction for reusability.",impact:"medium",effort:"low"});if(k.lines>100&&k.components===0)q.push({type:"refactor",message:"Large template with no components. Consider extracting reusable parts into components.",impact:"medium",effort:"medium"});if(k.expressions>20)q.push({type:"optimization",message:"Many template expressions detected. Consider preprocessing some data in the script section.",impact:"medium",effort:"low"});let H=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(H&&H.length>0)q.push({type:"optimization",message:"Nested loops detected. Consider preprocessing data or optimizing data structures.",impact:"high",effort:"medium"});if(k.directives.total===0&&k.expressions<5)q.push({type:"optimization",message:"Template appears static. Consider enabling aggressive caching.",impact:"high",effort:"low"});if(k.scriptLines>50)q.push({type:"refactor",message:"Large script section. Consider moving complex logic to external modules.",impact:"medium",effort:"medium"});return q}function w(G,k){let q=1;if(q+=k.directives.conditionals*0.1,q+=k.directives.loops*0.5,q+=k.directives.includes*2,q+=k.expressions*0.05,q+=k.components*1,k.scriptLines>10)q+=k.scriptLines*0.1;let H;if(k.expressions===0&&k.directives.total===0)H="high";else if(k.expressions<5&&k.directives.total<3)H="medium";else H="low";let K=[];if(q>10)K.push("Consider optimizing template complexity");if(H==="low"&&k.directives.total>5)K.push("Reduce dynamic content for better caching");if(k.components===0&&k.lines>40)K.push("Extract components to improve reusability and performance");return{estimatedRenderTime:Math.round(q*100)/100,complexityScore:k.complexity,cacheability:H,recommendations:K}}function A(G,k,q){let H=G.replace(/<!--[\s\S]*?-->/g,""),K=(H.match(new RegExp(`@${k}\\b`,"g"))||[]).length,J=(H.match(new RegExp(`@${q}\\b`,"g"))||[]).length;return Math.abs(K-J)}async function I(G=["**/*.stx"],k){let q=[],H=[];for(let J of G){let X=await Array.fromAsync(new Bun.Glob(J).scan({cwd:k||process.cwd(),onlyFiles:!0,absolute:!0}));H.push(...X.filter((Z)=>Z.endsWith(".stx")))}for(let J of H)try{let X=await E(J);q.push(X)}catch(X){console.warn(`Failed to analyze ${J}:`,X)}let K=B(q);return{results:q,summary:K}}function B(G){let k=G.length,q=G.reduce((V,Q)=>V+Q.metrics.lines,0),H=k>0?G.reduce((V,Q)=>V+Q.metrics.complexity,0)/k:0,K=G.reduce((V,Q)=>V+Q.issues.length,0),J={};G.forEach((V)=>{V.issues.forEach((Q)=>{J[Q.category]=(J[Q.category]||0)+1})});let X=k>0?G.reduce((V,Q)=>V+Q.performance.estimatedRenderTime,0)/k:0,Z=Math.max(1,Math.min(10,Math.round(10-X/2-H/2))),Y=[];if(H>6)Y.push("Project has high average complexity. Consider refactoring complex templates.");if(K>k*2)Y.push("High number of issues detected. Run detailed analysis on individual files.");if(J.security>0)Y.push("Security issues found. Review raw output usage and input sanitization.");return{totalFiles:k,totalLines:q,avgComplexity:Math.round(H*100)/100,totalIssues:K,issuesByCategory:J,performanceScore:Z,recommendations:Y}}
|
|
6
|
-
export{E as
|
|
6
|
+
export{E as Gq,I as Hq};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Rn as I,Sn as T,Tn as P,Un as q}from"./chunk-04n64bnt.js";import{$n as Y,Wn as w,Yn as M,Zn as N,_n as R,ao as W}from"./chunk-p077sw22.js";import j from"fs";import k from"path";async function c(b={}){let B=Date.now(),H=[],L=b.cwd||process.cwd(),x=(A)=>{H.push(A)},G=(A)=>{if(b.onProgress)b.onProgress(A)},J=k.resolve(L,b.directory||"dist"),h=b.token||process.env.NETLIFY_AUTH_TOKEN,V=b.siteId||process.env.NETLIFY_SITE_ID;if(!h)throw new Q(`No Netlify auth token found.
|
|
3
3
|
|
|
4
4
|
To deploy to Netlify:
|
|
5
5
|
1. Create account at https://app.netlify.com
|
|
@@ -25,4 +25,4 @@ Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FO
|
|
|
25
25
|
`))x+=`
|
|
26
26
|
`}x+=`NETLIFY_SITE_ID=${b.siteId}
|
|
27
27
|
`,await Bun.write(L,x)}return{configPath:H,siteId:b.siteId}}class Q extends Error{code;constructor(b,B){super(b);this.name="DeployError",this.code=B}}function F(b){let B=process.platform,H=B==="darwin"?"open":B==="win32"?"start":"xdg-open";Bun.spawn([H,b],{stdio:["ignore","ignore","ignore"]})}
|
|
28
|
-
export{c as
|
|
28
|
+
export{c as Nn,s as On,Q as Pn};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{d as
|
|
2
|
+
import{Vk as I,_k as w}from"./chunk-jpndqst5.js";import{pB as v}from"./chunk-xv34zbp4.js";import{resolve as E,basename as T,extname as W,join as $}from"path";import{mkdir as j}from"fs/promises";async function B(){try{return await import("ts-videos")}catch{return null}}async function d(A,q,C,Y){let G=await B();if(!G)return console.warn("[stx-media] ts-videos not installed, cannot generate poster"),null;try{let y=E(A);if(!await w(y))return null;await j(C,{recursive:!0});let N=await I(y),O=T(A,W(A)),M=q.format||"webp",_=q.timestamp||0,S=`${O}-poster-${N}.${M}`,L=$(C,S),J=await G.extractThumbnails(y,{timestamps:[_],width:q.width||1280,height:q.height,format:M,quality:q.quality||85,outputDir:C,outputPattern:S.replace(`.${M}`,"")});if(J&&J.length>0){let K=J[0];return{path:L,url:`${Y}/${S}`,width:K.width||q.width||1280,height:K.height||720,timestamp:_,size:K.size||0}}return null}catch(y){return console.warn(`[stx-media] Failed to generate poster: ${y}`),null}}async function c(A,q,C,Y){let G=await B();if(!G)return[];try{let y=E(A);if(!await w(y))return[];await j(C,{recursive:!0});let N=await I(y),O=T(A,W(A)),M=q.format||"webp",L=(await new G.Input(y).getInfo()).duration||60,J=q.count||10,K=q.interval||L/J,Q=[];for(let z=0;z<J&&z*K<L;z++)Q.push(z*K);let R=await G.extractThumbnails(y,{timestamps:Q,width:q.width||320,format:M,quality:q.quality||80,outputDir:C,outputPattern:`${O}-thumb-${N}`});if(R&&R.length>0)return R.map((z,X)=>({path:z.path||$(C,`${O}-thumb-${N}-${X}.${M}`),url:`${Y}/${O}-thumb-${N}-${X}.${M}`,width:z.width||q.width||320,height:z.height||180,timestamp:Q[X],size:z.size||0}));return[]}catch(y){return console.warn(`[stx-media] Failed to generate thumbnails: ${y}`),[]}}async function l(A,q,C,Y){let G=await B();if(!G)return console.warn("[stx-media] ts-videos not installed, cannot generate sprite sheet"),null;try{let y=E(A);if(!await w(y))return null;await j(C,{recursive:!0});let N=await I(y),O=T(A,W(A)),S=(await new G.Input(y).getInfo()).duration||60,L=q.columns||10,J=q.interval||5,K=q.thumbnailWidth||160,Q=q.thumbnailHeight||90,R=q.format||"jpeg",z=Math.ceil(S/J),X=Math.ceil(z/L),U=`${O}-sprite-${N}.${R}`,H=$(C,U),g=[];for(let Z=0;Z<z;Z++)g.push(Z*J);let k=await G.extractThumbnails(y,{timestamps:g,width:K,height:Q,format:R,quality:q.quality||70,outputDir:$(C,".temp")});if(!k||k.length===0)return null;try{let Z=await import("ts-images"),V=L*K,x=X*Q,f=await Z.createSprite({images:k.map((F)=>F.path),columns:L,padding:0,outputPath:H,format:R,quality:q.quality||70});return{url:`${Y}/${U}`,path:H,columns:L,rows:X,thumbnailWidth:K,thumbnailHeight:Q,interval:J,totalFrames:z}}catch{return console.warn("[stx-media] ts-images not installed, sprite sheet generation skipped"),null}}catch(y){return console.warn(`[stx-media] Failed to generate sprite sheet: ${y}`),null}}
|
|
3
|
+
export{d as Dj,c as Ej,l as Fj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{createHash as W}from"crypto";function X(j){try{return new Bun.Transpiler({loader:"js",minifyWhitespace:!0}).transformSync(j).replace(/\}(var |let |const |function )/g,"};$1").trim()}catch{return j}}var Y=/<script\s+type="stx\/island"\s+data-stx-island="([^"]+)"([^>]*)>([\s\S]*?)<\/script>/g;function Z(j){return Bun.hash(j).toString(16)}function D(j,x={}){if(!j.includes('type="stx/island"'))return{html:j,chunks:[]};let K=new Map,M=j.replace(Y,(z,v,J,Q)=>{let q=Q.trim();if(!q)return z;if(/\bdata-stx-src=/.test(J))return z;if(x.minify)q=X(q);let U=Z(q);if(!K.has(U))K.set(U,q);let V=x.integrity?` data-stx-integrity="sha384-${W("sha384").update(q).digest("base64")}"`:"";return`<script type="stx/island" data-stx-island="${v}" data-stx-src="/_stx/islands/${U}.js"${V}${J}></script>`}),O=Array.from(K,([z,v])=>({hash:z,code:v}));return{html:M,chunks:O}}var $=new Set(["visible","idle"]);function F(j){if(!j.includes("data-stx-src="))return j;let x=new Map,K=/data-stx-scope="([^"]+)"[^>]*?stx-hydrate="([^"]+)"/g,M;while((M=K.exec(j))!==null)x.set(M[1],M[2]);let O=new Set,z=/data-stx-island="([^"]+)"[^>]*?data-stx-src="([^"]+)"/g,v;while((v=z.exec(j))!==null)if($.has(x.get(v[1])||""))O.add(v[2]);let J=j.lastIndexOf("</head>");if(O.size===0||J===-1)return j;let Q=Array.from(O).filter((q)=>!j.includes(`rel="prefetch" href="${q}"`)).map((q)=>`<link rel="prefetch" href="${q}" as="script">`).join("");if(!Q)return j;return j.slice(0,J)+Q+j.slice(J)}
|
|
3
|
-
export{D as
|
|
3
|
+
export{D as nf,F as of};
|
|
@@ -136,4 +136,4 @@ window.__stxPerformance = {
|
|
|
136
136
|
window.clearPerformanceMetrics = () => window.__stxPerformance.clear();
|
|
137
137
|
</script>
|
|
138
138
|
`}function A(g){if(g<1024)return`${g}B`;if(g<1048576)return`${(g/1024).toFixed(1)}KB`;return`${(g/1048576).toFixed(1)}MB`}
|
|
139
|
-
export{w as
|
|
139
|
+
export{w as Zb,x as _b,C as $b,D as ac,E as bc,G as cc};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{y as
|
|
2
|
+
import{Rs as q}from"./chunk-1xz0w746.js";import{pB as L}from"./chunk-xv34zbp4.js";import M from"fs";import X from"path";var y=new Map,Q=new Map;async function w(j){let z;for(let K=0;K<3;K++)try{let V=(await M.promises.stat(j)).mtime.getTime(),J=Q.get(j);if(J&&J.mtime===V)return J.content;let W=await Bun.file(j).text(),U=(await M.promises.stat(j)).mtime.getTime();if(U!==V)continue;return Q.set(j,{content:W,mtime:U}),W}catch(I){z=I;break}throw Q.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function A(j){Q.delete(j)}function H(j){for(let B of Q.keys())if(B.startsWith(j))Q.delete(B)}var Z=null,T=null,N=null;function v(j){N=j}async function E(j=!1){let B=N??await import("././signals.js");if(j)return B.generateSignalsRuntimeDev();if(Z===null)Z=B.generateSignalsRuntime();return Z}var $=null;async function F(){if($===null){let{getRouterScript:j}=await import("stx-router");$=j()}return $}function R(){Q.clear(),Z=null,T=null,$=null}function k(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function S(j,B){try{if(!B.cachePath)return null;let z=X.resolve(B.cachePath),K=X.join(z,`${D(j)}.html`),I=X.join(z,`${D(j)}.meta.json`);if(!await q(K)||!await q(I))return null;let V=await Bun.file(I).text(),J=JSON.parse(V);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==k(B))return null;if((await M.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Y of J.dependencies)if(await q(Y)){if((await M.promises.stat(Y)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function _(j,B,z,K){try{if(!K.cachePath)return;let I=X.resolve(K.cachePath);await M.promises.mkdir(I,{recursive:!0});let V=X.join(I,`${D(j)}.html`),J=X.join(I,`${D(j)}.meta.json`),W=await M.promises.stat(j);await Bun.write(V,B);let Y={sourcePath:j,mtime:W.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:k(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Y,null,2)),y.set(j,{output:B,mtime:W.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var b=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,b)}
|
|
3
|
+
export{y as jp,w as kp,A as lp,H as mp,v as np,E as op,F as pp,R as qp,S as rp,_ as sp,D as tp};
|
|
@@ -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 Wl,T as Xl,C as Yl,w as Zl,P as _l};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import{existsSync as q,readFileSync as H}from"fs";import{join as T,resolve as Y}from"path";import z from"process";function A(C,E=z.cwd()){let B=C.i18n;if(!B||!Array.isArray(B.locales)||B.locales.length===0)return null;let I=B.defaultLocale??B.locales[0],D=U(B,E);return{locales:B.locales,defaultLocale:I,labels:B.labels??Object.fromEntries(B.locales.map((G)=>[G,G.toUpperCase()])),translations:D,pickerSelector:B.pickerSelector??"#lang-picker"}}function U(C,E){let B=C.translations??{},I={},D=C.translationsDir,G=D===!1?null:Y(E,typeof D==="string"&&D?D:"translations"),J=C.format??"json";for(let M of C.locales){let N=G?K(G,M,J):{};I[M]={...N,...B[M]??{}}}return I}function K(C,E,B){let I=B==="json"?[`${E}.json`]:[`${E}.${B}`,`${E}.${B==="yaml"?"yml":"yaml"}`];for(let D of I){let G=T(C,D);if(!q(G))continue;try{let J=H(G,"utf8"),M=B==="json"?JSON.parse(J):O(J);return _(M)}catch{continue}}return{}}function _(C,E="",B={}){if(!C||typeof C!=="object")return B;for(let[I,D]of Object.entries(C)){let G=E?`${E}.${I}`:I;if(D&&typeof D==="object"&&!Array.isArray(D))_(D,G,B);else if(typeof D==="string")B[G]=D;else if(typeof D==="number"||typeof D==="boolean")B[G]=String(D)}return B}function O(C){let E={},B=[{obj:E,indent:-1}];for(let I of C.split(`
|
|
3
3
|
`)){let D=I.replace(/#.*$/,"").trimEnd();if(!D.trim())continue;let G=D.search(/\S/);if(G===-1)continue;while(B.length>1&&B[B.length-1].indent>=G)B.pop();let J=B[B.length-1].obj,M=D.match(/^(\s*)(\S[^:]*):\s*(.*)$/);if(!M)continue;let[,,N,$]=M,Q=N.trim(),X=$.trim();if(X==="")J[Q]={},B.push({obj:J[Q],indent:G});else J[Q]=V(X)}return E}function V(C){if(C.startsWith("'")&&C.endsWith("'")||C.startsWith('"')&&C.endsWith('"'))return C.slice(1,-1);return C}function F(C,E,B){let I=C.translations[E]?.[B];if(typeof I==="string")return I;let D=C.translations[C.defaultLocale]?.[B];if(typeof D==="string")return D;return B}function L(C,E,B){return C.replace(/\{t(!?):([a-zA-Z][\w.-]*)\}/g,(I,D,G)=>{let J=F(E,B,G);return D==="!"?J:R(J)})}function Z(C,E,B){if(E===B)return C;if(C==="/")return`/${E}/`;if(C==="/404.html")return`/${E}/404.html`;return`/${E}${C}`}function P(C,E){for(let B of E){if(C===`/${B}`||C===`/${B}/`)return{locale:B,path:"/"};if(C.startsWith(`/${B}/`))return{locale:B,path:C.slice(B.length+1)}}return{locale:null,path:C}}function w(C,E,B){let I=C.replace(/\/$/,""),D=[];for(let J of B.locales){let M=`${I}${Z(E,J,B.defaultLocale)}`;D.push(`<link rel="alternate" hreflang="${W(J)}" href="${W(M)}">`)}let G=`${I}${Z(E,B.defaultLocale,B.defaultLocale)}`;return D.push(`<link rel="alternate" hreflang="x-default" href="${W(G)}">`),D.join(`
|
|
4
4
|
`)}function j(C,E){return`<script data-stx-lang-picker="1">window.__stxI18n=${JSON.stringify({locales:C.locales,defaultLocale:C.defaultLocale,current:E,pickerSelector:C.pickerSelector})};(function(){function cfg(){return window.__stxI18n}function localeFromPath(p){var d=cfg();for(var i=0;i<d.locales.length;i++){var c=d.locales[i];if(p==='/'+c||p==='/'+c+'/')return c;if(p.indexOf('/'+c+'/')===0)return c}return d.defaultLocale}function localePathFor(loc,p){var d=cfg();var stripped=p;for(var i=0;i<d.locales.length;i++){var c=d.locales[i];if(p==='/'+c||p==='/'+c+'/'){stripped='/';break}if(p.indexOf('/'+c+'/')===0){stripped=p.slice(c.length+1);break}}if(loc===d.defaultLocale)return stripped;if(stripped==='/')return '/'+loc+'/';return '/'+loc+stripped}cfg().localizeHref=function(href){try{var u=new URL(href,location.origin);if(u.origin!==location.origin)return href;return localePathFor(localeFromPath(location.pathname),u.pathname)+(u.search||'')+(u.hash||'')}catch(_){return href}};function syncFromUrl(){var d=cfg();var loc=localeFromPath(location.pathname);d.current=loc;var picker=document.querySelector(d.pickerSelector);if(picker){var btns=picker.querySelectorAll('[data-lang]');for(var i=0;i<btns.length;i++){var b=btns[i];if(b.getAttribute('data-lang')===loc)b.setAttribute('aria-current','true');else b.removeAttribute('aria-current')}}if(document.documentElement.lang!==loc)document.documentElement.lang=loc}function onLangClick(e){var d=cfg();var btn=e.target&&e.target.closest&&e.target.closest('[data-lang]');if(!btn)return;var picker=document.querySelector(d.pickerSelector);if(!picker||!picker.contains(btn))return;e.preventDefault();e.stopPropagation();var loc=btn.getAttribute('data-lang');if(!loc||loc===localeFromPath(location.pathname))return;var dest=localePathFor(loc,location.pathname);var r=window.__stxRouter;if(r&&r.navigate)r.navigate(dest,true,true);else location.assign(dest)}syncFromUrl();if(window.__stxLangPickerBound){document.removeEventListener('click',window.__stxLangPickerClick,true);window.removeEventListener('stx:navigate',window.__stxLangPickerSync);window.removeEventListener('popstate',window.__stxLangPickerSync)}window.__stxLangPickerClick=onLangClick;window.__stxLangPickerSync=syncFromUrl;window.__stxLangPickerBound=1;document.addEventListener('click',onLangClick,true);window.addEventListener('stx:navigate',syncFromUrl);window.addEventListener('popstate',syncFromUrl)})();</script>`}function W(C){return C.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function R(C){return C.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as _g,F as $g,L as ah,Z as bh,P as ch,w as dh,j as eh};
|
|
@@ -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 Vk,K as Wk,z as Xk,L as Yk,M as Zk,N as _k};
|
|
@@ -348,4 +348,4 @@ else {
|
|
|
348
348
|
console.log('[stx] Keep-alive runtime initialized');
|
|
349
349
|
})();
|
|
350
350
|
`}function Z(f){if(typeof document<"u")document.addEventListener("stx:activated",(j)=>{f(j.detail)})}function _(f){if(typeof document<"u")document.addEventListener("stx:deactivated",(j)=>{f(j.detail)})}
|
|
351
|
-
export{Q as
|
|
351
|
+
export{Q as Pl,T as Ql,W as Rl,X as Sl,Y as Tl,Z as Ul,_ as Vl};
|
|
@@ -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 pm,D as qm,F as rm,G as sm};
|
|
@@ -7,4 +7,4 @@ var I=new Map,Q=new Map;function z(j,B){let G=B?.id||s(j),J=l(j),U=I.get(G);if(U
|
|
|
7
7
|
<script data-craft-hydration>
|
|
8
8
|
window.__CRAFT_HYDRATION__ = ${JSON.stringify(J)};
|
|
9
9
|
</script>`;return{html:j+U,data:J}}function x(j){let B=!1,G=!1,J=!1,U=!1,X=0,Z=0;function Y(_,q){if(Z=Math.max(Z,q),_.type==="slot")B=!0;if(_.type==="component")X++;if(!_.isStatic)G=!0;if(_.props)for(let $ of Object.keys(_.props)){if($.startsWith("on"))J=!0;if($==="@async"||$==="data-async")U=!0}if(_.children)_.children.forEach(($)=>Y($,q+1))}return Y(j,0),{hasSlots:B,hasDynamicContent:G,hasEventHandlers:J,hasAsyncContent:U,componentCount:X,maxDepth:Z,estimatedSize:JSON.stringify(j).length}}function g(j){let B=new Map,G=new Map;return K(j,(J,U)=>{let X=U.join(".");if(J.isStatic)B.set(X,D(J));else G.set(X,J.tag||J.componentName||"dynamic")}),{staticParts:B,dynamicParts:G}}function h(j){let B=[],G=/<script[^>]*>([\s\S]*?)<\/script>/gi,J;while((J=G.exec(j))!==null)B.push(J[1]);return B}function m(j){let B=[],G=/<style[^>]*>([\s\S]*?)<\/style>/gi,J;while((J=G.exec(j))!==null)B.push(J[1]);return B}function p(j){let B=[],G=/@include\s*\(\s*['"]([^'"]+)['"]/g,J;while((J=G.exec(j))!==null)B.push(J[1]);let U=/@component\s*\(\s*['"]([^'"]+)['"]/g;while((J=U.exec(j))!==null)B.push(J[1]);let X=/<@craft-[\w-]+/g;while((J=X.exec(j))!==null)B.push(J[0].slice(2));return[...new Set(B)]}function A(j){return/\{\{.*?\}\}|\{\!\!.*?\!\!\}/.test(j)}function P(j,B){let G=j.replace(/\{\{\s*(.+?)\s*\}\}/g,(J,U)=>{try{let X=b(U.trim(),B);return R(String(X??""))}catch{return""}});return G=G.replace(/\{!!\s*(.+?)\s*!!\}/g,(J,U)=>{try{let X=b(U.trim(),B);return String(X??"")}catch{return""}}),G}function b(j,B){if(/^[\w.]+$/.test(j)){let G=j.split("."),J=B;for(let U of G)if(J&&typeof J==="object"&&U in J)J=J[U];else return;return J}try{return Function(...Object.keys(B),`return ${j}`)(...Object.values(B))}catch{return}}function R(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(j){return j.replace(/\s+/g," ").replace(/>\s+</g,"><").replace(/\s+>/g,">").replace(/<\s+/g,"<").trim()}function s(j){let B=0;for(let G=0;G<j.length;G++){let J=j.charCodeAt(G);B=(B<<5)-B+J,B=B&B}return`tpl_${Math.abs(B).toString(36)}`}function l(j){let B=0;for(let G=0;G<j.length;G++){let J=j.charCodeAt(G);B=(B<<5)-B+J,B=B&B}return Math.abs(B).toString(36)}var r=0;function c(){return`h_${++r}`}function L(j){return["craft-button","craft-text-input","craft-textarea","craft-checkbox","craft-radio","craft-select","craft-slider","craft-toggle","craft-date-picker","craft-time-picker","craft-color-picker","craft-file-input","craft-modal","craft-alert","craft-toast","craft-progress","craft-spinner","craft-avatar","craft-badge","craft-card","craft-accordion","craft-tabs","craft-tooltip","craft-popover","craft-dropdown","craft-context-menu","craft-data-table","craft-virtual-list","craft-tree-view","craft-map","craft-chart","craft-video","craft-audio","craft-webview","craft-canvas","craft-image-viewer","craft-pdf-viewer","craft-code-editor","craft-rich-editor"].includes(j)}function d(j){let B=j.tag?.toLowerCase(),G=j.props?.type,J={button:{component:"craft-button",confidence:0.95,reason:"Native button provides better touch feedback"},"input:text":{component:"craft-text-input",confidence:0.9,reason:"Native text input has better keyboard handling"},"input:checkbox":{component:"craft-checkbox",confidence:0.95,reason:"Native checkbox follows platform conventions"},"input:range":{component:"craft-slider",confidence:0.9,reason:"Native slider provides smooth interaction"},"input:date":{component:"craft-date-picker",confidence:0.95,reason:"Native date picker provides platform-specific UI"},"input:time":{component:"craft-time-picker",confidence:0.95,reason:"Native time picker provides platform-specific UI"},"input:color":{component:"craft-color-picker",confidence:0.9,reason:"Native color picker provides platform-specific UI"},textarea:{component:"craft-textarea",confidence:0.85,reason:"Native textarea handles multiline input better"},select:{component:"craft-select",confidence:0.9,reason:"Native select provides platform dropdown UI"},progress:{component:"craft-progress",confidence:0.95,reason:"Native progress bar matches platform style"},video:{component:"craft-video",confidence:0.95,reason:"Native video provides hardware acceleration"},audio:{component:"craft-audio",confidence:0.95,reason:"Native audio provides system integration"},dialog:{component:"craft-modal",confidence:0.9,reason:"Native modal provides proper layering and focus"}},U=G?`${B}:${G}`:B,X=J[U||""]||J[B||""];if(X)return{htmlSelector:U||B||"",nativeComponent:X.component,confidence:X.confidence,reason:X.reason};return null}function S(){I.clear()}function M(){Q.clear()}function o(){S(),M()}function a(){return{templateCacheSize:I.size,renderCacheSize:Q.size,totalEntries:I.size+Q.size}}var n={compileTemplate:z,renderSSR:H,generateCraftOptimizations:k,prerenderForCraft:f,clearTemplateCache:S,clearRenderCache:M,clearAllCaches:o,getSSRCacheStats:a},e=n;
|
|
10
|
-
export{z as
|
|
10
|
+
export{z as Mo,H as No,k as Oo,f as Po,S as Qo,M as Ro,o as So,a as To,e as Uo};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{y as
|
|
2
|
+
import{Lq as Y}from"./chunk-d0zjtdw4.js";import{Ks as X,Qr as U,Rr as V}from"./chunk-1xz0w746.js";import{$t as Q,bu as T}from"./chunk-hjm2xab3.js";import O from"path";import{createHash as j}from"crypto";function D(B={}){let A=new Set;return{context:new Proxy(B,{get(z,k){if(k in z)return z[k];if(typeof k==="string"&&!k.startsWith("__"))A.add(k);return},has(z,k){if(k in z)return!0;if(typeof k==="string"&&!k.startsWith("__"))A.add(k);return!1}}),accessedKeys:A}}async function y(B,A,G={}){let z=O.resolve(B),k=await Bun.file(z).text(),Z=j("sha256").update(k).digest("hex").slice(0,16);Q();let I={};try{I=await V()}catch{}let E=[],_=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,F;while((F=_.exec(k))!==null){let $=F[1];if(/\bserver\b/.test($))E.push(F[2])}let{context:J}=D({__filename:z,__dirname:O.dirname(z)}),L=new Set,q={...U,...I,...G,buildMode:"compile",strict:!1},N=await X(k,J,z,q,L),w=Y(N),W=T();return{route:A,sourceFile:B,html:N,fragment:w,placeholders:W,hasServerScripts:E.length>0,serverScriptContent:E,dependencies:Array.from(L),contentHash:Z,streamTemplates:J.__streamTemplates}}
|
|
3
|
+
export{y as Fi};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
function z(j){let q=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;j=j.replace(q,(w,k)=>{return`const { ${k.split(",").map((n)=>n.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
|
|
3
3
|
`});let v=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return j=j.replace(v,(w,k)=>{return`const { ${k.split(",").map((n)=>n.trim()).filter(Boolean).join(", ")} } = window.__composables
|
|
4
4
|
`}),j}
|
|
5
|
-
export{z as
|
|
5
|
+
export{z as tt};
|
|
@@ -5,4 +5,4 @@ import{Buffer as D}from"buffer";var j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmno
|
|
|
5
5
|
`);if(y.length>1)this.currentGeneratedLine+=y.length-1,this.currentGeneratedColumn=y[y.length-1].length;else this.currentGeneratedColumn+=k.length}newLine(){this.currentGeneratedLine++,this.currentGeneratedColumn=0}getCurrentPosition(){return{line:this.currentGeneratedLine,column:this.currentGeneratedColumn}}getGenerator(){return this.generator}toJSON(){return this.generator.toJSON()}toInlineComment(){return this.generator.toInlineComment()}}function Q(k){let y=k.match(/<!--#\s*sourceMappingURL=data:application\/json[^,]*,([^-]+)-->/);if(y)try{let z=D.from(y[1],"base64").toString("utf-8");return JSON.parse(z)}catch{return null}let J=k.match(/\/\/#\s*sourceMappingURL=data:application\/json[^,]*,(.+)$/);if(J)try{let z=D.from(J[1],"base64").toString("utf-8");return JSON.parse(z)}catch{return null}return null}function V(k){return k.replace(/<!--#\s*sourceMappingURL=[^-]+-->/g,"").replace(/\/\/#\s*sourceMappingURL=.+$/gm,"").replace(/\/\*#\s*sourceMappingURL=.+\*\//g,"")}function M(k,y){let z=k.slice(0,y).split(`
|
|
6
6
|
`);return{line:z.length,column:z[z.length-1].length}}function h(k,y){let J=k.split(`
|
|
7
7
|
`),z=0;for(let K=0;K<y.line-1&&K<J.length;K++)z+=J[K].length+1;return z+=y.column,z}
|
|
8
|
-
export{w as
|
|
8
|
+
export{w as oe,A as pe,b as qe,O as re,Q as se,V as te,M as ue,h as ve};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{B as
|
|
2
|
+
import{Lk as y,Mk as z,Ok as A}from"./chunk-ckxjqqn9.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 Gk,G as Hk,H as Ik,J as Jk};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var c={".html":"text/html",".css":"text/css",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".webp":"image/webp",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".eot":"application/vnd.ms-fontobject",".otf":"font/otf",".mp4":"video/mp4",".webm":"video/webm",".mp3":"audio/mpeg",".wav":"audio/wav",".pdf":"application/pdf",".zip":"application/zip",".xml":"application/xml",".txt":"text/plain",".md":"text/markdown",".stx":"text/html"};function g(b){return c[b.toLowerCase()]||"application/octet-stream"}var h={port:3000,watch:!0,native:!1,cache:!1,hotReload:!0,hmrPort:3001,profile:!1,debugDirectives:!1,titlebarHidden:!1};
|
|
3
|
-
export{c as
|
|
3
|
+
export{c as bo,g as co,h as do};
|
|
@@ -395,4 +395,4 @@ else {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
</script>`}function l(z){let j=z.customDirectives||[];return j.push(b),j.push(P),j.push(x),j.push(E),j.push(k),j.push(h),j.push(v),{...z,customDirectives:j}}
|
|
398
|
-
export{_ as
|
|
398
|
+
export{_ as nA,$ as oA,F as pA,W as qA,b as rA,E as sA,P as tA,x as uA,T as vA,Z as wA,k as xA,h as yA,v as zA,f as AA,g as BA,d as CA,y as DA,l as EA};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{I as
|
|
2
|
+
import{uz as w}from"./chunk-w3b6m427.js";import{defineRoute as M,defineRoutes as Q,resetRoutes as R,route as S,setAppUrl as T}from"stx-router";import{route as B}from"stx-router";function I(y){return y.replace(/@route\(\s*(['"])([^'"]+)\1(?:\s*,\s*(\{[^}]+\}))?\s*(?:,\s*(true|false)\s*)?\)/g,(C,D,z,q,A)=>{try{let k=q?w(q,{}):{};return B(z,k,A==="true")}catch(k){return console.error(`Error processing @route directive: ${k}`),"#route-error"}})}
|
|
3
|
+
export{I as Jt,M as Kt,Q as Lt,R as Mt,S as Nt,T as Ot};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var Z=[{open:"@if",close:"@endif",name:"if"},{open:"@unless",close:"@endunless",name:"unless"},{open:"@foreach",close:"@endforeach",name:"foreach"},{open:"@for",close:"@endfor",name:"for"},{open:"@while",close:"@endwhile",name:"while"},{open:"@forelse",close:"@endforelse",name:"forelse"},{open:"@switch",close:"@endswitch",name:"switch"},{open:"@isset",close:"@endisset",name:"isset"},{open:"@empty",close:"@endempty",name:"empty"},{open:"@auth",close:"@endauth",name:"auth"},{open:"@guest",close:"@endguest",name:"guest"},{open:"@can",close:"@endcan",name:"can"},{open:"@cannot",close:"@endcannot",name:"cannot"},{open:"@section",close:"@endsection",name:"section",altClose:"@show"},{open:"@push",close:"@endpush",name:"push"},{open:"@prepend",close:"@endprepend",name:"prepend"},{open:"@once",close:"@endonce",name:"once"},{open:"@markdown",close:"@endmarkdown",name:"markdown"},{open:"@component",close:"@endcomponent",name:"component"}],$=[{pattern:/@if\s*[^(]/,message:"@if directive missing parentheses",suggestion:"Use @if(condition)"},{pattern:/@foreach\s*[^(]/,message:"@foreach directive missing parentheses",suggestion:"Use @foreach(items as item)"},{pattern:/@foreach\([^)]*\)\s*[^@\n<]/,message:"@foreach may have content on same line",suggestion:"Put content on new line after @foreach()"},{pattern:/@include\s*[^(]/,message:"@include directive missing parentheses",suggestion:"Use @include('partial-name')"},{pattern:/@extends\s*[^(]/,message:"@extends directive missing parentheses",suggestion:"Use @extends('layout-name') or @layout('layout-name')"},{pattern:/@layout\s*[^(]/,message:"@layout directive missing parentheses",suggestion:"Use @layout('layout-name')"}],B=[{pattern:/\{\{\s*constructor\s*\}\}/,message:"Attempting to access constructor property"},{pattern:/\{\{\s*__proto__\s*\}\}/,message:"Attempting to access __proto__ property"},{pattern:/\{\{\s*eval\s*\(/,message:"Attempting to use eval in expression"}];function F(j){let z=[],b=[];return G(j,z),L(j,z,b),U(j,b),f(j,z),{valid:z.length===0,errors:z,warnings:b}}function G(j,z){let b=(j.match(/\{\{/g)||[]).length,q=(j.match(/\}\}/g)||[]).length;if(b!==q)z.push({type:"expression",message:`Unclosed expression brackets: found ${b} opening '{{' and ${q} closing '}}'`,suggestion:"Ensure every {{ has a matching }}"})}function L(j,z,b){for(let q of Z){let W=new RegExp(`${q.open}(?:\\s|\\()`,"g"),X=new RegExp(q.close,"g"),Q=(j.match(W)||[]).length,J=(j.match(X)||[]).length;if(q.altClose){let Y=new RegExp(q.altClose,"g");J+=(j.match(Y)||[]).length}if(Q>J)z.push({type:"directive",message:`Unclosed @${q.name} directive: found ${Q} opening and ${J} closing`,suggestion:`Add ${Q-J} missing ${q.close} tag(s)`});else if(J>Q)b.push({type:"directive",message:`Extra ${q.close} found: ${J-Q} more closing than opening`,suggestion:`Check for orphaned ${q.close} tags`})}}function U(j,z){for(let b of $)if(b.pattern.test(j))z.push({type:"syntax",message:b.message,suggestion:b.suggestion})}function f(j,z){for(let b of B)if(b.pattern.test(j))z.push({type:"expression",message:`Security warning: ${b.message}`,suggestion:"Remove dangerous code from template expressions"})}function H(j,z){let b=j.slice(0,z).split(`
|
|
3
3
|
`);return{line:b.length,column:b[b.length-1].length+1}}function K(j,z,b){let q=[];switch(j){case"if":case"elseif":case"unless":if(b.length===0)q.push({type:"syntax",message:`@${j} requires a condition`,suggestion:`Use @${j}(condition)`});break;case"foreach":if(b.length===0||!b[0].includes(" as "))q.push({type:"syntax",message:'@foreach requires "items as item" syntax',suggestion:"Use @foreach(items as item) or @foreach(items as key => value)"});break;case"for":if(b.length===0)q.push({type:"syntax",message:"@for requires loop parameters",suggestion:"Use @for(let i = 0; i < 10; i++)"});break;case"switch":if(b.length===0)q.push({type:"syntax",message:"@switch requires an expression",suggestion:"Use @switch(expression)"});break;case"case":if(b.length===0)q.push({type:"syntax",message:"@case requires a value",suggestion:"Use @case(value)"});break;case"include":case"extends":case"component":if(b.length===0)q.push({type:"syntax",message:`@${j} requires a path`,suggestion:`Use @${j}('path/to/template')`});break}return q}function M(j){return/@[a-z]+/i.test(j)||/\{\{/.test(j)}function V(j){let z=j.matchAll(/@([a-z]+)/gi),b=new Set;for(let q of z){let W=q[1].toLowerCase();if(!W.startsWith("end"))b.add(W)}return Array.from(b)}
|
|
4
|
-
export{F as
|
|
4
|
+
export{F as Zs,H as _s,K as $s,M as at,V as bt};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Lb as P}from"./chunk-8ahwt6a4.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{pB as Z}from"./chunk-xv34zbp4.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,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var P=[320,480,640,768,1024,1280,1536,1920,2560],M=[1,1.5,2,3],I=["avif","webp","jpeg"],L={avif:"image/avif",webp:"image/webp",jpeg:"image/jpeg",png:"image/png",gif:"image/gif"},_={avif:"avif",webp:"webp",jpeg:"jpg",png:"png",gif:"gif"};function A(J,K=P,Z={},B){return K.sort((C,G)=>C-G).map((C)=>{return`${Y(J,{...Z,w:C,fm:B})} ${C}w`}).join(", ")}function D(J,K=320,Z=2560,B=0.08,C={},G){let $=F(K,Z,B);return A(J,$,C,G)}function F(J,K,Z=0.08){let B=[],C=J;while(C<K)B.push(Math.round(C)),C*=1+Z*2;if(B[B.length-1]!==K)B.push(K);return B}function V(J,K,Z=M,B={},C){return Z.sort((G,$)=>G-$).map((G)=>{let $=Math.round(K*G);return`${Y(J,{...B,w:$,dpr:G,fm:C})} ${G}x`}).join(", ")}function E(J,K,Z=M,B=80,C={},G){let $={1:B,1.5:Math.round(B*0.9),2:Math.round(B*0.8),3:Math.round(B*0.7),4:Math.round(B*0.6),5:Math.round(B*0.5)};return Z.sort((X,H)=>X-H).map((X)=>{let H=Math.round(K*X),j=$[X]||Math.round(B*Math.max(0.5,1-X*0.1));return`${Y(J,{...C,w:H,q:j,dpr:X,fm:G})} ${X}x`}).join(", ")}function U(J,K="100vw"){if(!J||Object.keys(J).length===0)return K;let B=Object.entries(J).map(([C,G])=>{let $=/^\d+$/.test(C)?`${C}px`:C;return{bp:$,size:G,numericBp:Number.parseInt($)||0}}).sort((C,G)=>C.numericBp-G.numericBp).map(({bp:C,size:G})=>`(max-width: ${C}) ${G}`);return B.push(K),B.join(", ")}function z(J,K="100vw"){if(!J||J.length===0)return K;let B=[...J].sort((C,G)=>(C.maxWidth||0)-(G.maxWidth||0)).filter((C)=>C.maxWidth).map((C)=>`(max-width: ${C.maxWidth}px) ${C.imageWidth}`);return B.push(K),B.join(", ")}var Q={fullWidth:"100vw",halfDesktop:"(max-width: 768px) 100vw, 50vw",thirdDesktop:"(max-width: 768px) 100vw, 33.33vw",quarterDesktop:"(max-width: 480px) 100vw, (max-width: 768px) 50vw, 25vw",contentWidth:"(max-width: 768px) 100vw, (max-width: 1200px) 80vw, 960px"};function Y(J,K={}){let Z=Object.entries(K).filter(([,G])=>G!==void 0&&G!==null).map(([G,$])=>{if(Array.isArray($))return[G,$.join(",")];return[G,String($)]});if(Z.length===0)return J;let B=Z.map(([G,$])=>`${G}=${encodeURIComponent($)}`).join("&"),C=J.includes("?")?"&":"?";return`${J}${C}${B}`}function T(J){let[K,Z]=J.split("?"),B={};if(Z)new URLSearchParams(Z).forEach((G,$)=>{if(/^\d+$/.test(G))B[$]=Number.parseInt(G,10);else if(/^\d+\.\d+$/.test(G))B[$]=Number.parseFloat(G);else if(G==="true")B[$]=!0;else if(G==="false")B[$]=!1;else B[$]=G});return{src:K,params:B}}function x(J){let{src:K,widths:Z,dprValues:B,fixedWidth:C,formats:G=I,baseUrl:$="",params:X={}}=J,H=[];for(let j of G){let O,q;if(C!==void 0&&B)O=V(K,C,B,X,j),q=B.map((N)=>({path:"",url:Y(K,{...X,w:Math.round(C*N),fm:j}),width:Math.round(C*N),height:0,format:j,size:0,dpr:N}));else{let N=Z||P;O=A(K,N,X,j),q=N.map((R)=>({path:"",url:Y(K,{...X,w:R,fm:j}),width:R,height:0,format:j,size:0}))}H.push({srcset:O,format:j,mimeType:L[j],variants:q})}return H}function w(J,K="100vw"){return J.map(({srcset:Z,mimeType:B})=>`<source type="${B}" srcset="${Z}" sizes="${K}" />`).join(`
|
|
3
3
|
`)}function g(J,K){if(J.length===0)return;let Z=[...J].sort((C,G)=>C.width-G.width),B=Z.find((C)=>C.width>=K);if(B)return B;return Z[Z.length-1]}function S(J,K){let Z=K?J.filter((C)=>C.format===K):J;if(Z.length===0){let C=J.filter(($)=>$.format==="jpeg"),G=C.length>0?C:J;return G[Math.floor(G.length/2)]}let B=Z.sort((C,G)=>C.width-G.width);return B[Math.floor(B.length/2)]}function W(J){let K=new Map;for(let Z of J){let B=K.get(Z.format)||[];B.push(Z),K.set(Z.format,B)}return K}function k(J){return L[J]||"application/octet-stream"}function y(J){return _[J]||J}function c(J){switch(J.split(".").pop()?.toLowerCase()){case"jpg":case"jpeg":return"jpeg";case"png":return"png";case"webp":return"webp";case"avif":return"avif";case"gif":return"gif";default:return}}
|
|
4
|
-
export{P as
|
|
4
|
+
export{P as xu,M as yu,I as zu,L as Au,_ as Bu,A as Cu,D as Du,F as Eu,V as Fu,E as Gu,U as Hu,z as Iu,Q as Ju,Y as Ku,T as Lu,x as Mu,w as Nu,g as Ou,S as Pu,W as Qu,k as Ru,y as Su,c as Tu};
|
|
@@ -8,4 +8,4 @@ ${y.element}`);U.push("@endif");let j=U.join(`
|
|
|
8
8
|
`),B=G[0].outerStart,S=G[G.length-1].outerEnd;b=b.slice(0,B)+j+b.slice(S),q=B+j.length}return b}function v(z){return z.replace(/\bv-show="([^"]*)"/g,'@show="$1"')}function f(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=k.attrs,G=!1,X=/v-model:([a-zA-Z_][a-zA-Z0-9_]*)(?:\.([a-zA-Z.]+))?\s*=\s*"([^"]*)"/,Y=K.match(X);while(Y){G=!0;let Z=Y[1],U=Y[2],j=Y[3];K=K.replace(Y[0],""),K+=` :${Z}="${j}" @update:${Z}="${j} = $event"`,Y=K.match(X)}if(G){let Z=J(b,k),U=b.slice(Z.outerStart,Z.outerEnd),j=W(U,{...k,start:0,end:k.end-k.start},K);b=b.slice(0,Z.outerStart)+j+b.slice(Z.outerEnd),q=Z.outerStart+j.length;continue}let Q=I(k.attrs,"v-model");if(Q===null){q=k.end;continue}if(A.has(k.tag.toLowerCase())){let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"")+` @model="${Q}"`,U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}else{let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"");Z+=` :modelValue="${Q}" @update:modelValue="${Q} = $event"`;let U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}}return b}function x(z){return z.replace(/\bv-bind:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'@bind:$1="$2"')}function d(z){return z.replace(/\bv-on:([a-zA-Z_][a-zA-Z0-9_.-]*)\s*=\s*"([^"]*)"/g,'@$1="$2"')}function p(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-html");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-html"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{!! ${K} !!}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function o(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-text");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-text"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{{ ${K} }}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function u(z){return z.replace(/(<[a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*?)\s+v-pre([^>]*>)/g,"$1$2 data-stx-skip$3").replace(/(<[a-zA-Z][a-zA-Z0-9-]*)\s+v-pre(\s[^>]*>|>)/g,"$1 data-stx-skip$2")}function i(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;if(!w(k.attrs,"v-once")){q=k.end;continue}let K=L(k.attrs,"v-once"),G=J(b,k),X=b.slice(G.outerStart,G.outerEnd),Q=`@once
|
|
9
9
|
${W(X,{...k,start:0,end:k.end-k.start},K)}
|
|
10
10
|
@endonce`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function h(z){return z.replace(/\bv-memo="([^"]*)"/g,'data-stx-memo="$1"')}function c(z){return z.replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'#$1="$2"').replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)(?=[\s>])/g,"#$1").replace(/\bv-slot\s*=\s*"([^"]*)"/g,'#default="$1"')}function g(z){if(!E(z))return z;let b=z;return b=T(b),b=V(b),b=i(b),b=x(b),b=d(b),b=f(b),b=v(b),b=c(b),b=p(b),b=o(b),b=u(b),b=h(b),b}
|
|
11
|
-
export{E as
|
|
11
|
+
export{E as Xs,g as Ys};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Cu as l,Fu as XJ,Hu as i,Ku as c,Ru as a,xu as d,zu as n}from"./chunk-m167kjhv.js";import{Vu as p,av as ZJ,cv as $J}from"./chunk-3a4qsygv.js";import{pB as VJ}from"./chunk-xv34zbp4.js";async function WJ(){try{return await import("./media/image/processor/index.js")}catch(J){if(!JJ)console.warn("[stx-media] Image processor not available, some features disabled:",J),JJ=!0;return null}}var JJ=!1,o=80,h="async",y="lazy",KJ=!1;async function m(J,K={}){let $=K,X=J;if(X.process&&!X.skipOptimization){if($.tsImagesConfig?.enabled&&!$.isDev)return RJ(X,$)}if($.processedResult?.processed)return s(J,$.processedResult,K);if($.responsiveVariants)return HJ(J,$.responsiveVariants,K);let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,dpr:k,formats:Z=n,quality:Y=o,params:N={},placeholder:G="none",placeholderOptions:j={},lazy:R=!0,priority:_=!1,loading:L=_?"eager":y,decoding:E=h,fetchpriority:D,objectFit:f,objectPosition:I,crossorigin:H,referrerpolicy:S}=J,F=J.class,O=J.style,z=J.id,x=J.data||{},{isDev:C=!1,baseUrl:v=""}=K;if(C&&!K.optimize)return kJ(J);let P,q,T=z||`stx-img-${Math.random().toString(36).slice(2,8)}`;if(G!=="none"&&!_)try{P=await $J(B,{strategy:G,...j}),q=ZJ(T,P,j)}catch{}let u=k!==void 0&&M!==void 0,b;if(u)b=GJ(J,T,P,K);else b=await wJ(J,T,P,K);let A;if(_){let t=Z.includes("webp")?"webp":Z[0],QJ=l(B,w,{...N,q:Y},t),MJ=typeof W==="object"?i(W):W||"100vw";A=`<link rel="preload" as="image" imagesrcset="${QJ}" imagesizes="${MJ}" />`}let g=[];if(!KJ&&G!=="none")g.push(p),KJ=!0;if(q)g.push(q);let qJ=R?YJ(T):void 0;return{html:b,preloadLink:A,css:g.length>0?g.join(`
|
|
3
3
|
`):void 0,script:qJ}}async function wJ(J,K,$,X){let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,formats:k=n,quality:Z=o,params:Y={},lazy:N=!0,priority:G=!1,loading:j=G?"eager":y,decoding:R=h,fetchpriority:_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f}=J,I=J.class,H=J.style,S=J.data||{},F=typeof W==="object"?i(W):W||"100vw",O=[];for(let C of k){let v=l(B,w,{...Y,q:Z},C),P=a(C);if(N&&!G)O.push(` <source type="${P}" data-srcset="${v}" data-sizes="${F}" />`);else O.push(` <source type="${P}" srcset="${v}" sizes="${F}" />`)}let z=r({src:c(B,{...Y,q:Z}),alt:Q,width:M,height:V,loading:G?void 0:j,decoding:R,fetchpriority:G?"high":_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f,className:BJ(I,$),style:e(H,L,E,$),lazy:N&&!G,data:S}),x;if($){let C=`background-image: url('${$.dataURL}'); background-size: cover; background-position: center;`;x=`<div id="${K}" class="stx-img-placeholder" style="${C}">
|
|
4
4
|
<picture>
|
|
5
5
|
${O.join(`
|
|
@@ -61,4 +61,4 @@ ${f.join(`
|
|
|
61
61
|
<img ${H.join(" ")} />
|
|
62
62
|
</picture>`;let C=[];if(K.placeholder)C.push(p);let v=M?YJ(G):void 0,P;if(V&&E)P=`<link rel="preload" as="image" imagesrcset="${E}" />`;return{html:x,preloadLink:P,css:C.length>0?C.join(`
|
|
63
63
|
`):void 0,script:v}}async function HJ(J,K,$){let X={src:K.src,processed:!0,variants:[],placeholder:K.placeholder?.dataURL,originalWidth:K.placeholder?.width,originalHeight:K.placeholder?.height};for(let[B,Q]of Object.entries(K.byFormat))if(Q)X.variants.push(...Q);return s(J,X,$)}
|
|
64
|
-
export{m as
|
|
64
|
+
export{m as uu,OJ as vu,NJ as wu};
|
|
@@ -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 Pq,J as Qq};
|
|
@@ -4,4 +4,4 @@ var M=(j,q,v,x)=>`(function(){function read(){try{var k=${JSON.stringify(q)};var
|
|
|
4
4
|
${w}`)}if(!j.includes("__stxThemeGuard")&&/<head\b[^>]*>/i.test(j)){let w=`<script data-stx-theme-guard="1">${M(x,J,z,B)};window.__stxThemeGuard=1;</script>`;j=j.replace(/<head\b([^>]*)>/i,`<head$1>
|
|
5
5
|
${w}`)}if(!j.includes("__stxThemeToggle")&&/<\/body>/i.test(j)){let w=`<script data-stx-theme-toggle="1">${Q(J,z,B)};window.__stxThemeToggle=1;</script>`;j=j.replace(/<\/body>/i,`${w}
|
|
6
6
|
</body>`)}return j}
|
|
7
|
-
export{V as
|
|
7
|
+
export{V as Zg};
|
|
@@ -5,4 +5,4 @@ var P=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{nam
|
|
|
5
5
|
${F} [${U.join(`,
|
|
6
6
|
${F} `)}]`:"";return`Craft.create("${j.zigType}", ${Q}${W})`}function s(j,q,F){if(q.target==="universal"){let G=[];G.push("// Universal entry point"),G.push("");for(let[Q,U]of F)G.push(`// --- ${Q.toUpperCase()} ---`),G.push(`#if ${Q.toUpperCase()}`),G.push(U),G.push("#endif"),G.push("");return G.join(`
|
|
7
7
|
`)}return F.get(q.target)||J(j,q)}function r(j,q,F){let G=[];function Q(U){G.push({name:U.zigType,hash:D(JSON.stringify(U.props)),props:Object.keys(U.props),events:Array.from(U.events.keys()),slots:[],isNative:U.zigType.startsWith("craft.")});for(let W of U.children)Q(W)}return Q(q),{version:"1.0.0",components:G,entry:j.id,assets:[],styles:j.styles}}function p(j,q){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}var d=0;function E(){return`id_${++d}`}function D(j){let q=0;for(let F=0;F<j.length;F++){let G=j.charCodeAt(F);q=(q<<5)-q+G,q=q&q}return Math.abs(q).toString(36)}function l(j){return j.charAt(0).toUpperCase()+j.slice(1)}function i(j){let q=[],F=/<script[^>]*>([\s\S]*?)<\/script>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function a(j){let q=[],F=/<style[^>]*>([\s\S]*?)<\/style>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function B(j){let q=j.type==="component"?1:0;if(j.children)for(let F of j.children)q+=B(F);return q}function b(j){let q=j.zigType.startsWith("craft.")?1:0;for(let F of j.children)q+=b(F);return q}function o(j){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(q)=>{console.log(`[craft-compiler] File changed: ${q}`)}}}var t={compileToNative:k,createHotReloadServer:o,NATIVE_COMPONENTS:P},e=t;
|
|
8
|
-
export{P as
|
|
8
|
+
export{P as Bo,k as Co,o as Do,e as Eo};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{oB as $}from"./chunk-xv34zbp4.js";import M from"fs";import Q from"path";function B(j){let w=0;for(let k=0;k<j.length;k++){let q=j[k];w=(w<<5)-w+q,w=w&w}return Math.abs(w).toString(16).padStart(8,"0")}function C(j,w){let k=Q.basename(j);for(let q of w)if(q.startsWith("*.")){let H=q.slice(1);if(k.endsWith(H))return!0}else if(q.includes("*")){let H=new RegExp(`^${q.replace(/\*/g,".*")}$`);if(H.test(k)||H.test(j))return!0}else if(k===q||j.includes(q))return!0;return!1}function L(j,w,k){let q=Q.extname(j).toLowerCase(),H=A[q],K=(k.maxFileSizeKB||500)*1024;if(w>K)return!1;if(k.exclude&&C(j,k.exclude))return!1;if(k.include&&k.include.length>0){for(let J of k.include)if(J.startsWith("*.")){if(j.endsWith(J.slice(1)))return!0}else if(j.includes(J))return!0}if(H&&k[H]===!0)return!0;if(!H)return!1;return!1}function W(j,w,k,q){let H=M.readdirSync(j,{withFileTypes:!0});for(let K of H){let J=Q.join(j,K.name);if(K.isDirectory()){if(["node_modules",".git",".stx"].includes(K.name))continue;W(J,w,k,q)}else if(K.isFile()){let U=M.statSync(J),V=Q.relative(w,J);if(L(V,U.size,k)){let X=M.readFileSync(J),Y=B(X),Z=`/${V.replace(/\\/g,"/")}`;q.push({url:Z,revision:Y,size:U.size})}}}}function F(j,w){let k=w.pwa?.precache,q=[];if(!k?.enabled)return{entries:[],totalSize:0,fileCount:0};if(!M.existsSync(j))return{entries:[],totalSize:0,fileCount:0};W(j,j,k,q),q.sort((K,J)=>K.url.localeCompare(J.url));let H=q.reduce((K,J)=>K+J.size,0);return{entries:q,totalSize:H,fileCount:q.length}}function G(j){if(j.entries.length===0)return"[]";return`[
|
|
3
3
|
${j.entries.map((k)=>` { url: '${k.url}', revision: '${k.revision}' }`).join(`,
|
|
4
4
|
`)}
|
|
5
5
|
]`}function R(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;return`${(j/1048576).toFixed(2)} MB`}var A;var O=$(()=>{A={".html":"includeHtml",".htm":"includeHtml",".js":"includeJs",".mjs":"includeJs",".css":"includeCss",".png":"includeImages",".jpg":"includeImages",".jpeg":"includeImages",".gif":"includeImages",".webp":"includeImages",".svg":"includeImages",".ico":"includeImages",".woff":"includeFonts",".woff2":"includeFonts",".ttf":"includeFonts",".eot":"includeFonts",".otf":"includeFonts"}});
|
|
6
|
-
export{F as
|
|
6
|
+
export{F as jf,G as kf,R as lf,O as mf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var j=[{label:"Mobile (Small)",width:320,height:568},{label:"Mobile (Medium)",width:375,height:667},{label:"Mobile (Large)",width:414,height:896},{label:"Tablet",width:768,height:1024},{label:"Laptop",width:1024},{label:"Desktop",width:1280},{label:"Desktop (Large)",width:1920}],q=[{label:"Transparent",color:"transparent",contrastColor:"#333"},{label:"White",color:"#ffffff",contrastColor:"#333"},{label:"Light Gray",color:"#f5f5f5",contrastColor:"#333"},{label:"Dark Gray",color:"#333333",contrastColor:"#fff"},{label:"Black",color:"#000000",contrastColor:"#fff"}],w={file:"title",order:"asc",groups:[]},z={enabled:!0,outDir:".stx/dist/story",storyMatch:["**/*.story.stx"],storyIgnored:["**/node_modules/**","**/dist/**","**/.stx/**"],tree:w,theme:{title:"STX Components",defaultColorScheme:"auto",darkClass:"dark"},responsivePresets:j,backgroundPresets:q,autoApplyContrastColor:!1,port:6006};function D(A){let b={...z,...A};return{enabled:b.enabled??!0,outDir:b.outDir??".stx/dist/story",storyMatch:b.storyMatch??["**/*.story.stx"],storyIgnored:b.storyIgnored??["**/node_modules/**","**/dist/**","**/.stx/**"],tree:{...w,...b.tree},theme:{title:"STX Components",defaultColorScheme:"auto",darkClass:"dark",...b.theme},responsivePresets:b.responsivePresets??j,backgroundPresets:b.backgroundPresets??q,autoApplyContrastColor:b.autoApplyContrastColor??!1,setupFile:b.setupFile,port:b.port??6006}}function E(){return{...z}}
|
|
3
|
-
export{j as
|
|
3
|
+
export{j as ie,q as je,w as ke,z as le,D as me,E as ne};
|
|
@@ -16,4 +16,4 @@ ${D.join(`
|
|
|
16
16
|
</html>`}function H(q){return/<!DOCTYPE\b/i.test(q)||/<html[\s>]/i.test(q)}function w(q,K={}){let F=q.lastIndexOf("</head>");if(F===-1)return q;let{meta:Z=[],link:_=[],script:$=[],headRaw:U=""}=K,N=q.slice(0,F),G=[];for(let z of Z){let J=z.name?`name="${z.name}"`:z.property?`property="${z.property}"`:z.charset!=null?"charset=":z["http-equiv"]?`http-equiv="${z["http-equiv"]}"`:"";if(J&&N.includes(J))continue;G.push(` <meta ${Object.entries(z).map(([O,E])=>`${O}="${E}"`).join(" ")}>`)}for(let z of _){if(z.href&&N.includes(`href="${z.href}"`))continue;G.push(` <link ${Object.entries(z).map(([J,O])=>`${J}="${O}"`).join(" ")}>`)}for(let z of $)if(z.src){if(N.includes(`src="${z.src}"`))continue;G.push(` <script ${Object.entries(z).filter(([J])=>J!=="content").map(([J,O])=>`${J}="${O}"`).join(" ")}></script>`)}else if(z.content){if(N.includes(z.content))continue;G.push(` <script>${z.content}</script>`)}if(U&&!N.includes(U))G.push(` ${U}`);if(G.length===0)return q;return`${q.slice(0,F)}${G.join(`
|
|
17
17
|
`)}
|
|
18
18
|
${q.slice(F)}`}function x(q,K={},F={}){if(H(q))return q;return A(q,K,F)}
|
|
19
|
-
export{S as
|
|
19
|
+
export{S as Cw,b as Dw,A as Ew,H as Fw,w as Gw,x as Hw};
|