@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
|
@@ -4,4 +4,4 @@ import M from"fs";import N from"path";async function Y(G,A,H={}){let b=H.outDir|
|
|
|
4
4
|
`)}function R(G){let A=G.props.filter((j)=>j.required||j.default!==void 0).map((j)=>{if(j.type==="boolean")return j.default?j.name:"";if(j.type==="string")return`${j.name}="${j.default||"value"}"`;return`:${j.name}="${JSON.stringify(j.default)}"`}).filter(Boolean).join(" "),H=G.slots.length>0,b=G.slots.find((j)=>j.name==="default");if(H&&b)return`<${G.name} ${A}>
|
|
5
5
|
Content goes here
|
|
6
6
|
</${G.name}>`;return`<${G.name} ${A} />`}function Z(G){let A=G.map((H)=>({name:H.name,description:H.description,category:H.category,tags:H.tags,props:H.props.map((b)=>({name:b.name,type:b.type,required:b.required,default:b.default,description:b.description})),slots:H.slots.map((b)=>({name:b.name,description:b.description}))}));return JSON.stringify(A,null,2)}function _(G){let A={colors:new Set,spacing:new Set,typography:new Set,borders:new Set,shadows:new Set};for(let H of G)for(let b of H.cssClasses){if(b.match(/^(?:text|bg|border|fill|stroke)-/))A.colors.add(b);if(b.match(/^(?:p|m|gap|space)-/))A.spacing.add(b);if(b.match(/^(?:text|font|leading|tracking)-/))A.typography.add(b);if(b.match(/^(?:border|rounded)-/))A.borders.add(b);if(b.match(/^shadow/))A.shadows.add(b)}return{colors:Array.from(A.colors),spacing:Array.from(A.spacing),typography:Array.from(A.typography),borders:Array.from(A.borders),shadows:Array.from(A.shadows)}}
|
|
7
|
-
export{Y as
|
|
7
|
+
export{Y as za,P as Aa,Q as Ba,Z as Ca,_ as Da};
|
|
@@ -11,4 +11,4 @@ ${z}
|
|
|
11
11
|
</head>`);return q+j;case"body-start":if(j.includes("<body"))return j.replace(/(<body[^>]*>)/,`$1
|
|
12
12
|
${q}`);return q+j;case"body-end":{let F=j.lastIndexOf("</body>");if(F!==-1)return j.slice(0,F)+q+`
|
|
13
13
|
`+j.slice(F);return j+q}default:return j}}function A(j){return j.trim()}
|
|
14
|
-
export{w as
|
|
14
|
+
export{w as mt,K as nt,W as ot,B as pt,A as qt};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{V as
|
|
2
|
+
import{Xc as H,Zc as J}from"./chunk-yn38c15w.js";import D from"fs";import k from"path";function V(j,q){let z=[k.join(j.root,"stx.config.ts"),k.join(j.root,"stx.config.js"),k.join(j.root,"stx.config.mjs")],K=q.debounceMs??300,A=null,E=[];for(let B of z)try{if(!D.existsSync(B))continue;let L=D.watch(B,(N)=>{if(N==="change"){if(A)clearTimeout(A);A=setTimeout(async()=>{J("Config file changed, restarting...");try{await q.onChange()}catch(O){H(`Failed to restart: ${O}`)}},K)}});E.push(L)}catch{}return{stop(){if(A)clearTimeout(A);for(let B of E)B.close()}}}function Q(j){let q=[k.join(j,"stx.config.ts"),k.join(j,"stx.config.js"),k.join(j,"stx.config.mjs"),k.join(j,"config","stx.ts"),k.join(j,"config","stx.js"),k.join(j,"config","stx.mjs"),k.join(j,".config","stx.ts"),k.join(j,".config","stx.js"),k.join(j,".config","stx.mjs")];for(let z of q)if(D.existsSync(z))return z;return null}async function X(j){let q=Q(j);if(!q)return null;try{return(await D.promises.stat(q)).mtimeMs}catch{return null}}
|
|
3
|
+
export{V as Bc,Q as Cc,X as Dc};
|
|
@@ -5,4 +5,4 @@ ${C.join(`
|
|
|
5
5
|
<!-- /SEO -->`,M=/<!--\s*stx SEO Tags\s*-->[\s\S]*?<meta\s+name="twitter:description"[^>]*>\s*/i;if(M.test(q))q=q.replace(M,"");if(q=q.replace(/<!--\s*SEO\s*-->[\s\S]*?<!--\s*\/SEO\s*-->\s*/g,""),q=q.replace(/<title>[\s\S]*?<\/title>\s*/i,""),q=q.replace(/<meta\s+name="title"\s+content="stx Project"[^>]*>\s*/g,"").replace(/<meta\s+name="description"\s+content="A website built with stx[^"]*"[^>]*>\s*/g,"").replace(/<meta\s+property="og:title"\s+content="stx Project"[^>]*>\s*/g,"").replace(/<meta\s+property="og:description"\s+content="A website built with stx[^"]*"[^>]*>\s*/g,"").replace(/<meta\s+property="og:type"\s+content="website"[^>]*>\s*/g,"").replace(/<meta\s+name="twitter:card"\s+content="summary_large_image"[^>]*>\s*/g,"").replace(/<meta\s+name="twitter:title"\s+content="stx Project"[^>]*>\s*/g,"").replace(/<meta\s+name="twitter:description"\s+content="A website built with stx[^"]*"[^>]*>\s*/g,""),/<head[^>]*>/i.test(q))return q.replace(/<head([^>]*)>/i,`<head$1>
|
|
6
6
|
${L}`);return`${L}
|
|
7
7
|
${q}`}function w(q){return q.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function W(q){return q.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}
|
|
8
|
-
export{X as
|
|
8
|
+
export{X as hh};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var z={patterns:[],exact:{}};function G(q,A){if(!z.exact[q])z.exact[q]=[];z.exact[q].push(A)}function H(q,A){let D=typeof q==="string"?new RegExp(q):q;z.patterns.push({pattern:D,callback:A})}async function I(q,A){let D=q.split("/").pop()?.split(".")[0]||"";if(z.exact[q])for(let B of z.exact[q])await Promise.resolve(B(A,q));if(z.exact[D])for(let B of z.exact[D])await Promise.resolve(B(A,q));for(let{pattern:B,callback:F}of z.patterns)if(B.test(q)||B.test(D))await Promise.resolve(F(A,q))}function J(){z.patterns=[],z.exact={}}
|
|
3
|
-
export{G as
|
|
3
|
+
export{G as ht,H as it,I as jt,J as kt};
|
|
@@ -176,4 +176,4 @@ var Q=null,R=null;function $(z,A,G=new WeakSet){if(Object.is(z,A))return!0;if(ty
|
|
|
176
176
|
};
|
|
177
177
|
window.provide = provide;
|
|
178
178
|
})();
|
|
179
|
-
</script>`}export{K as
|
|
179
|
+
</script>`}export{K as ci,q as di,x as ei,N as fi,S as gi,O as hi,H as ii,m as ji,j as ki,g as li,w as mi,h as ni,I as oi,y as pi,E as qi,v as ri,Z as si,V as ti,d as ui,k as vi,f as wi};
|
|
@@ -30,4 +30,4 @@ ${q.variants.slice(1).map((B)=>` <Variant title="${B.title}">
|
|
|
30
30
|
`)}
|
|
31
31
|
</Story>
|
|
32
32
|
`}function R(h){let q=h.toLowerCase();if(q==="boolean")return"false";if(q==="number")return"0";if(q==="array")return"[]";if(q==="object")return"{}";return"''"}function U(h){return{text:"StxText",number:"StxNumber",boolean:"StxCheckbox",select:"StxSelect",radio:"StxRadio",color:"StxColorSelect",json:"StxJson",date:"StxText",textarea:"StxTextarea",slider:"StxSlider",buttongroup:"StxButtonGroup"}[h]||"StxText"}function W(h){return Object.entries(h).map(([q,x])=>{if(typeof x==="string")return`${q}="${x}"`;if(typeof x==="boolean")return x?q:`:${q}="false"`;return`:${q}="${JSON.stringify(x)}"`}).join(" ")}
|
|
33
|
-
export{J as
|
|
33
|
+
export{J as Pa,L as Qa,O as Ra,Y as Sa,Z as Ta};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{b as
|
|
2
|
+
import{Bx as Z}from"./chunk-9ecv8aqj.js";import{py as $}from"./chunk-zen6ax1y.js";import{Ry as _}from"./chunk-27zsyhrd.js";async function b(J,L,B,y){if(!y.customDirectives||y.customDirectives.length===0)return J;let G=J;for(let j of y.customDirectives){if(!j.name||typeof j.handler!=="function"){if(y.debug)console.warn("Invalid custom directive:",j);continue}if(j.hasEndTag)G=await D(G,j,L,B,y);else G=await Q(G,j,L,B,y)}return G}async function D(J,L,B,y,G){let{name:j,handler:k}=L,O=`@${j}`,Y=`@end${j}`,H=J,V=Z(`${O}(?:\\s*\\(([^()]*(?:\\([^)]*\\)[^()]*)*)\\))?([\\s\\S]*?)${Y}`,"g"),X=[],U=V.exec(H);while(U!==null){let[z,F="",A=""]=U,K=U.index||0;try{let N=F?W(F):[],w=A.trim(),q=await k(w,N,B,y);X.push({original:z,processed:q,startIndex:K})}catch(N){let w=N instanceof Error?N.message:String(N);if(G.debug)console.error(`Error processing custom directive @${j}:`,N);X.push({original:z,processed:$("CustomDirective",`Error in @${j}${F?`(${F})`:""}: ${w}`,_.EVALUATION_ERROR),startIndex:K})}U=V.exec(H)}for(let z=X.length-1;z>=0;z--){let{original:F,processed:A}=X[z];H=H.replace(F,A)}return H}async function Q(J,L,B,y,G){let{name:j,handler:k}=L,O=J,Y=Z(`@${j}\\s*\\(([^()]*(?:\\([^)]*\\)[^()]*)*)\\)`,"g"),H=[],V=Y.exec(O);while(V!==null){let[z,F=""]=V,A=V.index||0;try{let K=W(F),N=await k("",K,B,y);H.push({original:z,processed:N,startIndex:A})}catch(K){let N=K instanceof Error?K.message:String(K);if(G.debug)console.error(`Error processing custom directive @${j}:`,K);H.push({original:z,processed:$("CustomDirective",`Error in @${j}(${F}): ${N}`,_.EVALUATION_ERROR),startIndex:A})}V=Y.exec(O)}let X=Z(`@${j}(?!\\w)(?!\\s*\\()`,"g"),U=X.exec(O);while(U!==null){let[z]=U,F=U.index||0;try{let A=await k("",[],B,y);H.push({original:z,processed:A,startIndex:F})}catch(A){let K=A instanceof Error?A.message:String(A);if(G.debug)console.error(`Error processing custom directive @${j}:`,A);H.push({original:z,processed:$("CustomDirective",`Error in @${j}: ${K}`,_.EVALUATION_ERROR),startIndex:F})}U=X.exec(O)}for(let z=H.length-1;z>=0;z--){let{original:F,processed:A}=H[z];O=O.replace(F,A)}return O}function W(J){if(!J.trim())return[];let L=[],B="",y=!1,G="";for(let j=0;j<J.length;j++){let k=J[j];if((k==='"'||k==="'")&&(j===0||J[j-1]!=="\\"))if(!y)y=!0,G=k;else if(k===G)y=!1;else B+=k;else if(k===","&&!y)L.push(B.trim()),B="";else B+=k}if(B.trim())L.push(B.trim());return L.map((j)=>{let k=j.trim();if(k.startsWith('"')&&k.endsWith('"')||k.startsWith("'")&&k.endsWith("'"))return k.substring(1,k.length-1);return k})}
|
|
3
|
+
export{b as zx};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import D from"process";function F(B="STX_PUBLIC_"){let q={},A={};for(let[z,C]of Object.entries(D.env)){if(!z.startsWith(B)||C===void 0)continue;q[`import.meta.env.${z}`]=JSON.stringify(C),A[z]=C}return q["import.meta.env"]=JSON.stringify(A),q}function H(B="STX_PUBLIC_"){let q={};for(let[A,z]of Object.entries(D.env))if(A.startsWith(B)&&z!==void 0)q[A]=z;return q}
|
|
3
|
-
export{F as
|
|
3
|
+
export{F as Ty,H as Uy};
|
|
@@ -106,4 +106,4 @@ else {
|
|
|
106
106
|
})();
|
|
107
107
|
</script>`}function x(q){let j=_(q);if(j.length===0)return{template:q,bindings:[]};let F=q,z=[];for(let J=j.length-1;J>=0;J--){let G=j[J],$=G.originalTag;if(!$.includes(" id="))$=$.replace(/^<([a-z][a-z0-9-]*)/,`<$1 id="${G.elementId}"`);else{let X=$.match(/id=["']([^"']+)["']/);if(X)for(let D of G.events)D.elementId=X[1]}for(let X of G.events){let D=X.attribute.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),V=new RegExp(`\\s*${D}\\s*=\\s*"[^"]*"`,"g"),Z=new RegExp(`\\s*${D}\\s*=\\s*'[^']*'`,"g");$=$.replace(V,""),$=$.replace(Z,"")}F=F.slice(0,G.startIndex)+$+F.slice(G.endIndex),z.push(...G.events)}return{template:F,bindings:z}}function S(q,j,F){if(/\b(?:state|derived|effect)\s*(?:<[^<>()]*>)?\s*\(/.test(q)||/@(?:model|show|for|if)\s*=/.test(q)||/data-stx(?:-auto)?(?![-\w])/.test(q))return q;if(j.__stx_sfc_mode){if(/x-data\s*=\s*["']/.test(q))return q;let{template:D,bindings:V}=x(q),Z=j.__stx_event_bindings||[];return j.__stx_event_bindings=[...Z,...V],D}let J=_(q);if(J.length===0)return q;let G=q;for(let D=J.length-1;D>=0;D--){let V=J[D],Z=V.originalTag;if(!Z.includes(" id="))Z=Z.replace(/^<([a-z][a-z0-9-]*)/,`<$1 id="${V.elementId}"`);else{let K=Z.match(/id=["']([^"']+)["']/);if(K)for(let L of V.events)L.elementId=K[1]}for(let K of V.events){let L=K.attribute.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),B=new RegExp(`\\s*${L}\\s*=\\s*"[^"]*"`,"g"),Y=new RegExp(`\\s*${L}\\s*=\\s*'[^']*'`,"g");Z=Z.replace(B,""),Z=Z.replace(Y,"")}G=G.slice(0,V.startIndex)+Z+G.slice(V.endIndex)}let $=k(J),X=G.lastIndexOf("</body>");if(X!==-1)G=G.slice(0,X)+$+`
|
|
108
108
|
`+G.slice(X);else G+=$;return G}function E(q){return/@[a-z]+(?:\.[a-z]+)*\s*=\s*["'][^"']*["']/i.test(q)}
|
|
109
|
-
export{x as
|
|
109
|
+
export{x as Kv,S as Lv,E as Mv};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{h as
|
|
2
|
+
import{Ks as y}from"./chunk-1xz0w746.js";import{dt as x}from"./chunk-g1vt329s.js";import{wy as I}from"./chunk-yb1t2h8h.js";import g from"crypto";import w from"path";class h{store=new Map;async get(B){let U=this.store.get(B);if(!U||U.expires<=Date.now()){if(U)this.store.delete(B);return null}return{...U.data}}async set(B,U,A){this.store.set(B,{data:{...U},expires:Date.now()+A*1000})}async delete(B){this.store.delete(B)}}async function l(B,U,A){let Q={},z={},b=await A.get(B);if(b)Object.assign(Q,b);let E={id:B,data:Q,get(G){return Q[G]},set(G,O){Q[G]=O,W()},delete(G){delete Q[G],W()},clear(){Object.keys(Q).forEach((G)=>delete Q[G]),W()},has(G){return G in Q},flash(G,O){if(O!==void 0){z[G]=O;return}let R=z[G];return delete z[G],R},regenerate(){let G=B;B=u(),E.id=B,A.delete(G),W()},destroy(){A.delete(B),Object.keys(Q).forEach((G)=>delete Q[G])}};function W(){A.set(B,{...Q,__flash:z},U)}return W(),E}function u(){return g.randomBytes(32).toString("hex")}function p(B){if(!B)return{};return B.split(";").reduce((U,A)=>{let[Q,...z]=A.trim().split("=");if(Q)U[Q]=decodeURIComponent(z.join("="));return U},{})}function v(B,U,A={}){let Q=`${encodeURIComponent(B)}=${encodeURIComponent(U)}`;if(A.maxAge!==void 0)Q+=`; Max-Age=${A.maxAge}`;if(A.expires)Q+=`; Expires=${A.expires.toUTCString()}`;if(A.path)Q+=`; Path=${A.path}`;if(A.domain)Q+=`; Domain=${A.domain}`;if(A.secure)Q+="; Secure";if(A.httpOnly)Q+="; HttpOnly";if(A.sameSite)Q+=`; SameSite=${A.sameSite}`;return Q}function d(){return g.randomBytes(32).toString("hex")}function r(B,U){if(!B||!U)return!1;try{return g.timingSafeEqual(Buffer.from(B),Buffer.from(U))}catch{return!1}}async function i(B,U={},A={}){let Q=A.viewsDir||"./views",z=A.layoutsDir||"./layouts",b=!B.includes("<")&&!B.includes("@"),E,W;if(b){if(W=w.resolve(Q,B),!W.endsWith(".stx"))W+=".stx";if(!await Bun.file(W).exists())return new Response(`Template not found: ${B}`,{status:500});E=await Bun.file(W).text()}else E=B,W="inline-template.stx";let G={...U,props:U,__filename:W,__dirname:w.dirname(W)};if(A.ctx)G.csrf_token=A.ctx.csrfToken,G.csrf_field=`<input type="hidden" name="_token" value="${A.ctx.csrfToken}">`,G.old=A.ctx.old,G.errors=A.ctx.errors,G.session=A.ctx.session,G.user=A.ctx.user(),G.isAuthenticated=A.ctx.isAuthenticated();let O=E.match(/<script\s+server\b[^>]*>([\s\S]*?)<\/script>/i);if(O){let H=O[1];E=E.replace(/<script\s+server\b[^>]*>[\s\S]*?<\/script>/gi,""),await x(H,G,W)}let R={layoutsDir:z,...A.stxOptions},P=await y(E,G,W,R,new Set),C=new Headers({"Content-Type":"text/html; charset=utf-8"});if(A.ctx)A.ctx.responseHeaders.forEach((H,T)=>{C.set(T,H)});return new Response(P,{headers:C})}function e(B={}){let{viewsDir:U="./views",layoutsDir:A="./layouts",defaultLayout:Q,sessionSecret:z=g.randomBytes(32).toString("hex"),sessionCookieName:b="stx_session",sessionTtl:E=86400,stxOptions:W={},csrfCookieName:G="csrf_token",csrfEnabled:O=!0}=B,R=B.sessionStore??new h,q=[],P=[];function C(j,J){for(let K of q){if(K.method!==j&&K.method!=="*")continue;let Y=[],V=K.pattern.replace(/\/:(\w+)/g,(Z,X)=>{return Y.push(X),"/([^/]+)"}).replace(/\//g,"\\/"),L=new RegExp(`^${V}$`),_=J.match(L);if(_){let Z={};return Y.forEach((X,N)=>{Z[X]=_[N+1]}),{route:K,params:Z}}}return null}async function H(j,J){let K=new URL(j.url),Y=p(j.headers.get("Cookie")),V=new Headers,L=[],_=Y[b];if(!_)_=u(),L.push(v(b,_,{httpOnly:!0,secure:K.protocol==="https:",sameSite:"Lax",path:"/",maxAge:E}));let Z=await l(_,E,R),X=Z.get("_csrf");if(!X)X=d(),Z.set("_csrf",X);let N={};K.searchParams.forEach(($,F)=>{N[F]=$});let f=Z.flash("_errors")||{},k=Z.flash("_old_input")||{},m={request:j,url:K,params:J,query:N,session:Z,csrfToken:X,cookies:Y,responseHeaders:V,errors:f,async formData(){let $=await j.formData(),F={};return $.forEach((D,c)=>{F[c]=D}),F},async json(){return await j.json()},setCookie($,F,D={}){L.push(v($,F,D))},flash($,F){Z.flash($,F)},getFlash($){return Z.flash($)},old($){return k[$]||""},isAuthenticated(){return Z.has("user")},user(){return Z.get("user")}};if(L.length>0)L.forEach(($)=>{V.append("Set-Cookie",$)});return m}let T=async(j,J)=>{if(["GET","HEAD","OPTIONS"].includes(j.request.method))return J();if(!O)return J();let Y=(await j.request.clone().formData().catch(()=>new FormData)).get("_token"),V=j.request.headers.get("X-CSRF-Token"),L=Y||V,_=j.session.get("_csrf");if(!L||!_||!r(L,_))return new Response("CSRF token mismatch",{status:419});return J()};async function S(j){let J=new URL(j.url),K=j.method,Y=C(K,J.pathname);if(!Y)return new Response("Not Found",{status:404});let V=await H(j,Y.params),L=[...P,T,...Y.route.middleware],_=0,Z=async()=>{if(_<L.length){let X=L[_++];return X(V,Z)}return Y.route.handler(V)};try{let X=await Z();return V.responseHeaders.forEach((N,f)=>{X.headers.set(f,N)}),X}catch(X){return I.log(X instanceof Error?X:Error(String(X)),{handler:"request"},"error"),new Response("Internal Server Error",{status:500})}}function M(j,J,K,Y=[]){q.push({method:j,pattern:J,handler:K,middleware:Y})}return{fetch:S,get(j,J,K=[]){return M("GET",j,J,K),this},post(j,J,K=[]){return M("POST",j,J,K),this},put(j,J,K=[]){return M("PUT",j,J,K),this},delete(j,J,K=[]){return M("DELETE",j,J,K),this},patch(j,J,K=[]){return M("PATCH",j,J,K),this},use(j){return P.push(j),this},async render(j,J={},K){return i(j,J,{viewsDir:U,layoutsDir:A,stxOptions:W,ctx:K})},redirect(j,J=302){return new Response(null,{status:J,headers:{Location:j}})},back(j,J,K){if(J)j.session.flash("_errors",J);if(K)j.session.flash("_old_input",K);let Y=j.request.headers.get("Referer")||"/";return new Response(null,{status:302,headers:{Location:Y}})},listen(j=3000){return Bun.serve({port:j,fetch:S})}}}
|
|
3
|
+
export{h as qg,i as rg,e as sg};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{dt as _}from"./chunk-g1vt329s.js";import{pB as M}from"./chunk-xv34zbp4.js";import X from"fs";var U=new Map;async function Z(z,q,A={}){let B=performance.now(),J=[];try{let K=await X.promises.stat(q),O=U.get(q),N;if(O&&O.mtime===K.mtimeMs)N=O.content;else N=await X.promises.readFile(q,"utf-8"),U.set(q,{content:N,mtime:K.mtimeMs,analyzed:null});let{processDirectives:G}=await import("././process.js"),Q={},L=Y(N);if(L)try{await _(L,Q,q)}catch($){J.push(`Warning: Could not extract script variables: ${$ instanceof Error?$.message:String($)}`)}if(A.props)Object.assign(Q,A.props);let W=await G(N,Q,q,{},new Set),F=D(N),b=Y(N);return W=j(W),W=E(W,Q),{html:W,css:F,js:b,errors:J,duration:performance.now()-B}}catch(K){return J.push(K instanceof Error?K.message:String(K)),{html:`<div class="stx-render-error">${k(J[0])}</div>`,css:"",js:"",errors:J,duration:performance.now()-B}}}async function w(z){try{let q=await X.promises.readFile(z,"utf-8"),A=Y(q);if(!A)return null;let B={};if(await _(A,B,z),Array.isArray(B.variants))return B.variants;return null}catch{return null}}async function T(z,q,A,B){let J=q.story?.variants;if(!J){let N=await w(q.path);if(N)J=N}if(!J&&A==="default")return Z(z,q.path,{props:B||{}});if(!J)return Z(z,q.path,{props:B||{}});let K=J.find((N)=>N.id===A);if(!K&&A==="default")return Z(z,q.path,{props:B||{}});if(!K)return{html:'<div class="stx-render-error">Variant not found</div>',css:"",js:"",errors:[`Variant '${A}' not found`],duration:0};let O={...K.state,...B};if(K.source)return R(z,K.source,O);return Z(z,q.path,{props:O})}async function R(z,q,A={}){let B=performance.now(),J=[];try{let{processDirectives:K}=await import("././process.js"),O={...A},N=Y(q);if(N)try{await _(N,O,"inline-template.stx")}catch{}let Q=await K(q,O,"inline-template.stx",{},new Set);return Q=j(Q),Q=E(Q,O),{html:Q,css:D(q),js:Y(q),errors:J,duration:performance.now()-B}}catch(K){return J.push(K instanceof Error?K.message:String(K)),{html:`<div class="stx-render-error">${k(J[0])}</div>`,css:"",js:"",errors:J,duration:performance.now()-B}}}function D(z){let q=[],A=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,B=A.exec(z);while(B!==null)q.push(B[1].trim()),B=A.exec(z);return q.join(`
|
|
3
3
|
`)}function j(z){return z.replace(/<!--[\s\S]*?-->/g,"").replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/^\s*\n/gm,"").trim()}function Y(z){let q=[],A=/<script\b[^>]*>([\s\S]*?)<\/script>/gi,B=A.exec(z);while(B!==null)q.push(B[1].trim()),B=A.exec(z);return q.join(`
|
|
4
4
|
`)}function E(z,q){let A=`<script>window.__stxProps = ${JSON.stringify(q)};</script>`;return z+A}function k(z){return z.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function g(){U.clear()}function u(){return{size:U.size,entries:Array.from(U.keys())}}async function I(z){let q=0;for(let A of z)try{let B=await X.promises.stat(A),J=await X.promises.readFile(A,"utf-8");U.set(A,{content:J,mtime:B.mtimeMs,analyzed:null}),q++}catch{}return q}function S(z,q={}){let{title:A="Preview",theme:B="light",background:J="#ffffff",crosswindCss:K=""}=q;return`<!DOCTYPE html>
|
|
5
5
|
<html lang="en" class="${B==="dark"?"dark":""}">
|
|
@@ -35,4 +35,4 @@ import{Zv as _}from"./chunk-nwfa5766.js";import{jE as M}from"./chunk-6r70w54p.js
|
|
|
35
35
|
</script>
|
|
36
36
|
</body>
|
|
37
37
|
</html>`}
|
|
38
|
-
export{Z as
|
|
38
|
+
export{Z as hc,T as ic,R as jc,g as kc,u as lc,I as mc,S as nc};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import y from"fs";import z from"path";function C(q,j,g){return{version:1,buildTime:new Date().toISOString(),routes:q,assets:j,outputDir:g}}function E(q,j){let g=z.join(j,"manifest.json");y.writeFileSync(g,JSON.stringify(q,null,2))}function F(q){let j=z.join(q,"manifest.json");if(!y.existsSync(j))return null;try{let g=y.readFileSync(j,"utf-8"),w=JSON.parse(g);if(w.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${w.version}`),null;return w}catch(g){return console.warn("[stx] Failed to load manifest:",g),null}}
|
|
3
|
-
export{C as
|
|
3
|
+
export{C as $k,E as al,F as bl};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{pB as v}from"./chunk-xv34zbp4.js";import Z from"fs";import Q from"path";var F=[72,96,128,144,152,192,384,512],L=[120,152,167,180],T=[16,32];async function A(R,w){let j={success:!0,generatedFiles:[],errors:[],warnings:[]},J=R.pwa?.icons;if(!J?.src)return j.errors.push("No source icon specified in pwa.icons.src"),j.success=!1,j;let G=Q.isAbsolute(J.src)?J.src:Q.resolve(process.cwd(),J.src);if(!await Bun.file(G).exists())return j.errors.push(`Source icon not found: ${G}`),j.success=!1,j;let q=Q.resolve(w,J.outputDir||"pwa-icons");try{Z.mkdirSync(q,{recursive:!0})}catch{return j.errors.push(`Failed to create output directory: ${q}`),j.success=!1,j}let y=J.sizes||F,U=J.generateWebP??!0,N=J.generateAppleIcons??!0;try{let B;try{B=await import("sharp")}catch{return j.errors.push(`sharp is not installed. Install it with: bun add sharp
|
|
3
3
|
Icon generation requires the sharp package for image processing.`),j.success=!1,j}let $=await B.default(G).metadata();if($.width&&$.width<512)j.warnings.push(`Source icon is ${$.width}x${$.height}. Recommend using at least 512x512 for best quality.`);for(let x of y){let K=Q.join(q,`icon-${x}x${x}.png`);if(await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(K),j.generatedFiles.push(K),U){let Y=Q.join(q,`icon-${x}x${x}.webp`);await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).webp({quality:90}).toFile(Y),j.generatedFiles.push(Y)}}if(N){for(let K of L){let Y=Q.join(q,`apple-touch-icon-${K}x${K}.png`);await B.default(G).resize(K,K,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(Y),j.generatedFiles.push(Y)}let x=Q.join(q,"apple-touch-icon.png");await B.default(G).resize(180,180,{fit:"contain",background:{r:255,g:255,b:255,alpha:1}}).png().toFile(x),j.generatedFiles.push(x)}for(let x of T){let K=Q.join(q,`favicon-${x}x${x}.png`);await B.default(G).resize(x,x,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).png().toFile(K),j.generatedFiles.push(K)}let M=512,V=Q.join(q,`icon-maskable-${M}x${M}.png`),X=Math.floor(M*0.1),W=M-X*2;await B.default(G).resize(W,W,{fit:"contain",background:{r:0,g:0,b:0,alpha:0}}).extend({top:X,bottom:X,left:X,right:X,background:{r:255,g:255,b:255,alpha:1}}).png().toFile(V),j.generatedFiles.push(V)}catch(B){let H=B instanceof Error?B.message:String(B);j.errors.push(`Icon generation failed: ${H}`),j.success=!1}return j}function E(R){let w=R.sizes||F,j=R.outputDir?`/${R.outputDir}`:"/pwa-icons",J=R.generateWebP??!0,G=R.generateAppleIcons??!0,q=[];for(let y of w)if(q.push(`${j}/icon-${y}x${y}.png`),J)q.push(`${j}/icon-${y}x${y}.webp`);if(G){q.push(`${j}/apple-touch-icon.png`);for(let y of L)q.push(`${j}/apple-touch-icon-${y}x${y}.png`)}for(let y of T)q.push(`${j}/favicon-${y}x${y}.png`);return q.push(`${j}/icon-maskable-512x512.png`),q}async function b(){try{return await import("sharp"),!0}catch{return!1}}
|
|
4
|
-
export{F as
|
|
4
|
+
export{F as Be,L as Ce,T as De,A as Ee,E as Fe,b as Ge};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Wb as T,Xb as S,Yb as u}from"./chunk-fzm3y0r3.js";import{cc as M}from"./chunk-jjamhxpm.js";import{dc as g}from"./chunk-h5wa62ek.js";import{ic as k}from"./chunk-7n8g0nfn.js";import{oc as P,qc as U,rc as F,sc as w,xc as H}from"./chunk-s6ja2bdg.js";import{yc as v}from"./chunk-55yp0q8t.js";import{fd as L,hd as C}from"./chunk-bpgg59wa.js";import{jd as A}from"./chunk-y0qg6rrv.js";import{Fd as R}from"./chunk-hxx3za24.js";import{Ud as I}from"./chunk-pg1fvqb9.js";import{ge as W,he as _}from"./chunk-0qnz93q2.js";import{pB as f}from"./chunk-xv34zbp4.js";async function a(E,z){let J=await L(E);W(E,J);let $=A(E.config,J);_(E,$),console.log(` Found ${J.length} story files`);let X=typeof z.host==="string"?z.host:z.host===!0?"0.0.0.0":"localhost",Y=new g(E.root),O=new I(E.root),j=new R(E.root),D=P(),Z=Bun.serve({port:z.port,hostname:X,fetch:async(K,Q)=>{let B=new URL(K.url).pathname;if(B==="/__hmr"){if(Q.upgrade(K,{data:{isHmr:!0}}))return;return new Response("WebSocket upgrade failed",{status:400})}if(B.startsWith("/api/"))return q(E,B,K,{presetsManager:Y,bookmarksManager:O,analyticsTracker:j});return b(E,B,z.port)},websocket:{open(K){D.open(K)},close(K){D.close(K)},message(K,Q){D.message(K,Q)}}}),G=`http://${X}:${z.port}`,V=C(E,async(K,Q)=>{console.log(` [${K}] ${Q.relativePath}`);let N=await L(E);W(E,N);let B=A(E.config,N);if(_(E,B),K==="add")F(Q.id,{fileName:Q.fileName});else if(K==="unlink")w(Q.id);else U(Q.id,{fileName:Q.fileName})});if(z.open){let K=G;try{let{exec:Q}=await import("child_process"),N=process.platform;Q(`${N==="darwin"?"open":N==="win32"?"start":"xdg-open"} ${K}`)}catch{}}return{server:Z,url:G,close:async()=>{V(),Z.stop()}}}async function q(E,z,J,$){let{presetsManager:X,bookmarksManager:Y,analyticsTracker:O}=$;if(z==="/api/stories")return Response.json({files:E.storyFiles.map((j)=>({id:j.id,fileName:j.fileName,relativePath:j.relativePath,treePath:j.treePath})),tree:E.tree});if(z.startsWith("/api/story/")){let j=z.slice(11),D=E.storyFiles.find((Z)=>Z.id===j);if(!D)return new Response("Story not found",{status:404});try{let Z=await Bun.file(D.path).text();return Response.json({id:D.id,fileName:D.fileName,relativePath:D.relativePath,content:Z})}catch{return new Response("Error reading story",{status:500})}}if(z==="/api/config")return Response.json({theme:E.config.theme,responsivePresets:E.config.responsivePresets,backgroundPresets:E.config.backgroundPresets});if(z.startsWith("/api/render/")){let j=new URL(J.url),D=z.slice(12).split("/"),Z=D[0],G=D[1]||"default",V,K=j.searchParams.get("props");if(K)try{V=JSON.parse(K)}catch{}let Q=E.storyFiles.find((N)=>N.id===Z);if(!Q)return new Response("Story not found",{status:404});try{let N=await k(E,Q,G,V);return Response.json({html:N.html,css:N.css,js:N.js,errors:N.errors,duration:N.duration})}catch(N){return Response.json({html:"",css:"",js:"",errors:[N instanceof Error?N.message:String(N)],duration:0},{status:500})}}if(z==="/api/presets"&&J.method==="GET")return Response.json({presets:X.getAllPresets()});if(z==="/api/presets"&&J.method==="POST")try{let j=await J.json(),D=X.createPreset(j.name,j.props,{componentId:j.componentId,description:j.description});return await X.save(),Response.json(D)}catch(j){return Response.json({error:String(j)},{status:400})}if(z.startsWith("/api/presets/")&&!z.includes("/use")&&J.method==="GET"){let j=z.slice(13),D=X.getPreset(j);if(!D)return new Response("Preset not found",{status:404});return Response.json(D)}if(z.endsWith("/use")&&J.method==="POST"){let j=z.slice(13,-4),D=X.usePreset(j);if(!D)return new Response("Preset not found",{status:404});return await X.save(),Response.json(D)}if(z.startsWith("/api/presets/")&&J.method==="DELETE"){let j=z.slice(13);if(!X.deletePreset(j))return new Response("Preset not found",{status:404});return await X.save(),Response.json({success:!0})}if(z==="/api/bookmarks"&&J.method==="GET")return Response.json({bookmarks:Y.getAllBookmarks()});if(z==="/api/bookmarks"&&J.method==="POST")try{let j=await J.json(),D=Y.addBookmark(j.storyId,j.variantId,j.props,{name:j.name,notes:j.notes,color:j.color});return await Y.save(),Response.json(D)}catch(j){return Response.json({error:String(j)},{status:400})}if(z==="/api/bookmarks/toggle"&&J.method==="POST")try{let j=await J.json(),D=Y.toggleBookmark(j.storyId,j.variantId,j.props);return await Y.save(),Response.json(D)}catch(j){return Response.json({error:String(j)},{status:400})}if(z.startsWith("/api/bookmarks/")&&z!=="/api/bookmarks/toggle"&&J.method==="GET"){let j=z.slice(15),D=Y.getBookmark(j);if(!D)return new Response("Bookmark not found",{status:404});return Response.json(D)}if(z.startsWith("/api/bookmarks/")&&J.method==="DELETE"){let j=z.slice(15);if(!Y.deleteBookmark(j))return new Response("Bookmark not found",{status:404});return await Y.save(),Response.json({success:!0})}if(z==="/api/analytics/track"&&J.method==="POST")try{let j=await J.json();if(j.type==="view"&&j.componentId)O.trackView(j.componentId,j.variantId);else if(j.type==="prop_change"&&j.componentId&&j.propName)O.trackPropChange(j.componentId,j.propName,null);else if(j.type==="variant_switch"&&j.componentId&&j.variantId)O.trackVariantSwitch(j.componentId,j.variantId);else if(j.type==="search"&&j.query)O.trackSearch(j.query,0);return await O.save(),Response.json({success:!0})}catch(j){return Response.json({error:String(j)},{status:400})}if(z==="/api/analytics/summary"&&J.method==="GET")return Response.json({mostViewed:O.getMostViewedComponents(10),mostChangedProps:O.getMostChangedProps(10),searchAnalytics:O.getSearchAnalytics()});if(z.startsWith("/api/analytics/component/")&&J.method==="GET"){let j=z.slice(25),D=E.storyFiles.find((G)=>G.id===j),Z=O.getComponentAnalytics(j,D?.fileName||j);return Response.json(Z)}return new Response("Not found",{status:404})}function b(E,z,J){let $=x(E,J);return new Response($,{headers:{"Content-Type":"text/html; charset=utf-8"}})}function x(E,z){let{theme:J}=E.config,$=J.title||"STX Story",X=`ws://localhost:${z}/__hmr`,Y=H(X);return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en" class="${J.darkClass||"dark"}">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -718,4 +718,4 @@ else {
|
|
|
718
718
|
${T()}
|
|
719
719
|
</body>
|
|
720
720
|
</html>`}
|
|
721
|
-
export{a as
|
|
721
|
+
export{a as Lb};
|
|
@@ -5,4 +5,4 @@ var Y=[{pattern:/document\.getElementById\s*\(/g,message:"document.getElementByI
|
|
|
5
5
|
${G.join(`
|
|
6
6
|
`)}
|
|
7
7
|
Tip: prefer useRef(), navigate(), and composables for component code`;if(z.failOnViolation)throw Error(k);else console.warn(k)}}
|
|
8
|
-
export{Y as
|
|
8
|
+
export{Y as ut,Z as vt};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Fi as S}from"./chunk-kdfe4t91.js";import{Gi as g}from"./chunk-t0c9wvpr.js";import{$k as A,al as D}from"./chunk-80g54ncj.js";import{Zp as C,_p as P}from"./chunk-rvptcndz.js";import{Nq as f}from"./chunk-d0zjtdw4.js";import{Rr as R}from"./chunk-1xz0w746.js";import{Hw as b}from"./chunk-nhv099jv.js";import{Rw as y}from"./chunk-shv88d2d.js";import V from"fs";import H from"path";var d=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function n(J,K){let X=0,z=0;if(!V.existsSync(J))return{copied:X,bytes:z};function Q(E,O){let U=V.readdirSync(E,{withFileTypes:!0});for(let W of U){if(d.has(W.name))continue;let G=H.join(E,W.name),Y=H.join(O,W.name);if(W.isDirectory())V.mkdirSync(Y,{recursive:!0}),Q(G,Y);else if(W.isFile()){if(V.existsSync(Y))continue;V.copyFileSync(G,Y),X++,z+=V.statSync(Y).size}}}return Q(J,K),{copied:X,bytes:z}}async function zq(J={}){let K=Date.now(),X=H.resolve(J.root||process.cwd()),z=H.resolve(X,J.outputDir||".output");console.log("[stx build] Starting production build...");let Q={};try{Q=await R()}catch{}let E=J.componentsDir??Q.componentsDir??"components",O=J.partialsDir??Q.partialsDir??"partials",U=J.layoutsDir??Q.layoutsDir??"layouts",W=J.publicDir??Q.publicDir??"public",G=Q.app?.head||{},Y=Q.router?.container||"main";if(V.existsSync(z))V.rmSync(z,{recursive:!0});let h=[H.join(z,"public","__stx"),H.join(z,"public","assets"),H.join(z,"server","pages"),H.join(z,"server","fragments")];for(let F of h)V.mkdirSync(F,{recursive:!0});console.log("[stx build] Discovering routes...");let I=g(X),m=["components","layouts","partials"],k=I.filter((F)=>{return!m.some((q)=>F.pattern.startsWith(`/${q}/`)||F.pattern===`/${q}`)});console.log(`[stx build] Found ${k.length} page routes (${I.length-k.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let $=C(J.debug),Z=P();await Bun.write(H.join(z,"public","__stx",$.filename),$.content),await Bun.write(H.join(z,"public","__stx",Z.filename),Z.content),console.log(`[stx build] Runtime: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${Z.filename} (${(Z.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let v=[],N=[];for(let F of k)try{let q=await S(F.filePath,F.pattern,{componentsDir:E,partialsDir:O,layoutsDir:U,debug:J.debug});if(v.push(q),q.html=q.html.replace(/runtime\.__STX_HASH__\.js/g,$.filename).replace(/router\.__STX_HASH__\.js/g,Z.filename),q.html=b(q.html,G,{bodyScripts:[`<script src="/__stx/${Z.filename}"></script>`]}),!/<body[^>]*\bdata-stx=/.test(q.html)){let B=q.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(B&&B[1]){let x=B[1];q.html=q.html.replace(" "+x,""),q.html=q.html.replace(/<body([^>]*)>/,`<body$1 ${x}>`)}}q.html=q.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),q.html=await y(q.html),q.fragment=f(q.html,Y);let w=F.pattern==="/"?"index":F.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),M=H.join("server","pages",`${w}.compiled.json`),j=H.join("server","fragments",`${w}.html`);await Bun.write(H.join(z,M),JSON.stringify(q,null,2)),await Bun.write(H.join(z,j),q.fragment),N.push({pattern:F.pattern,compiledPath:M,fragmentPath:j,isDynamic:q.hasServerScripts,hasParams:F.pattern.includes(":")||F.pattern.includes("[")}),console.log(`[stx build] \u2713 ${F.pattern}`)}catch(q){console.error(`[stx build] \u2717 ${F.pattern}:`,q instanceof Error?q.message:q)}let _=H.resolve(X,W);if(V.existsSync(_)){let{copied:F,bytes:q}=n(_,H.join(z,"public"));if(F>0)console.log(`[stx build] Copied ${F} public asset${F===1?"":"s"} (${(q/1024).toFixed(1)}KB) from ${W}/`)}let L={runtime:$.filename,router:Z.filename},l=A(N,L,z);D(l,z);let T=Date.now()-K;return console.log(`
|
|
3
3
|
[stx build] Done in ${T}ms \u2014 ${v.length} pages compiled`),{pageCount:v.length,assets:L,outputDir:z,duration:T}}
|
|
4
|
-
export{zq as
|
|
4
|
+
export{zq as Ei};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var nk={enabled:!0,image:{enabled:!0,defaultWidths:[320,480,640,768,1024,1280,1536,1920],defaultFormats:["avif","webp","jpeg"],defaultQuality:80,placeholderStrategy:"thumbhash",lazyByDefault:!0,enableDpr:!0,defaultDpr:[1,2,3]},video:{enabled:!0,lazyByDefault:!0,defaultControls:!0},upload:{enabled:!0,maxSize:10485760,allowedTypes:["image/*","video/*","audio/*","application/pdf"],maxConcurrent:3},protected:{enabled:!0,expirationSeconds:3600,batchSize:10},cache:{enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500}};
|
|
3
|
-
export{nk as
|
|
3
|
+
export{nk as wj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var M=/<script\b[^>]*>/iy,Q=/<\/script\s*>/ig,U=/<style\b[^>]*>/iy,V=/<\/style\s*>/ig;function J(f,j,w,B){w.lastIndex=j;let z=w.exec(f);if(!z||z.index!==j)return-1;B.lastIndex=w.lastIndex;let v=B.exec(f);if(!v)return-1;return v.index+v[0].length}function W(f,j){return J(f,j,M,Q)}function Z(f,j){return J(f,j,U,V)}function $(f,j){if(!f.startsWith("<!--",j))return-1;let w=f.indexOf("-->",j+4);if(w===-1)return-1;return w+3}function X(f,j,w){let B=[],z="",v=0,K=f.length,H=!1,F=null;while(v<K){let D=f[v];if(H){if(z+=D,F){if(D===F)F=null}else if(D==='"'||D==="'")F=D;else if(D===">")H=!1;v++;continue}if(D==="<"){let G=j(f,v);if(G>v){z+=w(f.slice(v,G),B.length),B.push(f.slice(v,G)),v=G;continue}if(/^<\/?[a-zA-Z]/.test(f.slice(v,v+2)))H=!0;z+=D,v++;continue}z+=D,v++}return{output:z,tokens:B}}function b(f){let{output:j,tokens:w}=X(f,W,(B,z)=>`\x00STX_SCRIPT_${z}\x00`);return{output:j,scripts:w}}function y(f,j){if(j.length===0)return f;return f.replace(/\x00STX_SCRIPT_(\d+)\x00/g,(w,B)=>j[+B]??"")}
|
|
3
|
-
export{W as
|
|
3
|
+
export{W as kv,Z as lv,$ as mv,X as nv,b as ov,y as pv};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{Z as
|
|
2
|
+
import{Rr as O}from"./chunk-1xz0w746.js";import M from"path";var Q=/<script\b[^>]*\bserver\b/i,W=/<script\b[^>]*\bclient\b/i;async function Z(q){let u=performance.now(),k=await O(q),z=q||k.root||process.cwd(),G=[k.build?.pagesDir||k.pagesDir||"pages",k.componentsDir||"components",k.layoutsDir||"layouts",k.partialsDir||"partials"].map((w)=>M.resolve(z,w)),A=[],B=0;for(let w of G){let H=await U(w);for(let J of H){B++;let K=await Bun.file(J).text();if(Q.test(K))A.push(M.relative(z,J))}}return{mode:A.length>0?"ssr":"ssg",serverScriptFiles:A,totalFilesScanned:B,scanDurationMs:Math.round(performance.now()-u)}}async function $(q){let u=await O(q),k=q||u.root||process.cwd(),z=M.resolve(k,u.componentsDir||"components"),G=[],A=await U(z);for(let B of A){let w=await Bun.file(B).text(),H=Q.test(w),J=W.test(w)||/<script\b(?![^>]*\bserver\b)[^>]*>/i.test(w)&&!H;if(H&&J){let K=M.relative(k,B);G.push({file:K,message:`Component "${K}" has both <script server> and <script client>. `+"Components should be server OR client \u2014 compose them via props/slots."})}}return G}async function U(q){let u=[];try{let k=new Bun.Glob("**/*.stx");for await(let z of k.scan({cwd:q,absolute:!0}))u.push(z)}catch{}return u}
|
|
3
|
+
export{Z as oq,$ as pq};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
async function y(z,w,A,B){let j=w[0]?.replace(/['"]/g,"")||"main",b=q();if(j!=="main")b=b.replace("container:'main'",`container:'${j}'`);return`<script data-stx-router>${b}</script>`}var E={name:"stxRouter",handler:y,hasEndTag:!1,description:"Inject the STX SPA router script for client-side navigation"};import{getRouterScript as q}from"stx-router";
|
|
3
|
-
export{q as
|
|
3
|
+
export{q as Vy,y as Wy,E as Xy};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ty as $}from"./chunk-7ed3tean.js";import H from"path";function Z(j){return j.startsWith("http://")||j.startsWith("https://")||j.startsWith("//")}async function _(j,z,Q){try{let q;if(j.startsWith("/")){let B=z;for(let J=0;J<5;J++){let K=H.join(B,j);if(await Bun.file(K).exists())return K;B=H.dirname(B)}q=H.join(z,j)}else if(j.startsWith("./")||j.startsWith("../"))q=H.resolve(z,j);else q=H.resolve(z,j);if(await Bun.file(q).exists())return q;return null}catch{return null}}async function I(j,z,Q){let q=j,B=H.dirname(z),J=/<script\b([^>]*)src=["']([^"']+)["']([^>]*)><\/script>/gi,K;while((K=J.exec(q))!==null){let[T,X,w,Y]=K;if(Z(w))continue;let G=await _(w,B,z);if(G)try{let O=await Bun.file(G).text();if(Q.add(G),w.endsWith(".ts")||w.endsWith(".tsx")){let N=await Bun.build({entrypoints:[G],target:"browser",minify:!1,define:$()});if(N.outputs.length>0)O=await N.outputs[0].text()}let L=`<script>
|
|
3
3
|
// Source: ${w}
|
|
4
4
|
${O}
|
|
5
5
|
</script>`;q=q.replace(T,L),J.lastIndex=0}catch(O){}}let V=/<link\b([^>]*)href=["']([^"']+)["']([^>]*)(?:\/?>)/gi,W;while((W=V.exec(q))!==null){let[T,X,w,Y]=W,G=X+Y;if(Z(w))continue;if(/rel=["']stylesheet["']/.test(G)||w.endsWith(".css")){let L=await _(w,B,z);if(L)try{let N=await Bun.file(L).text();Q.add(L);let y=`<style>
|
|
6
6
|
/* Source: ${w} */
|
|
7
7
|
${N}
|
|
8
8
|
</style>`;q=q.replace(T,y),V.lastIndex=0}catch(N){}}}return q}
|
|
9
|
-
export{Z as
|
|
9
|
+
export{Z as hv,_ as iv,I as jv};
|
|
@@ -318,4 +318,4 @@ else {
|
|
|
318
318
|
console.log('[stx] Transition runtime initialized');
|
|
319
319
|
})();
|
|
320
320
|
`}function $(b){let j=/@transition\.([a-z-]+)(?:\.(\d+))?="([^"]+)"/gi;return b.replace(j,(B,q,A,z)=>{let F=A||"300",G=`stx-t-${Math.random().toString(36).slice(2,7)}`;return`data-stx-transition="${q}" data-stx-transition-duration="${F}" data-stx-transition-condition="${z}" data-stx-transition-id="${G}"`})}
|
|
321
|
-
export{W as
|
|
321
|
+
export{W as Qf,X as Rf,Y as Sf,Z as Tf,_ as Uf,$ as Vf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{Y as
|
|
2
|
+
import{mt as H,nt as J}from"./chunk-6djzdes9.js";function Y(B,z){if(!/<style\s+[^>]*\bscoped\b/i.test(B))return{html:B,hasScoped:!1};let D=H(z),v=`data-v-${D}`,q=B,E=/<style\s+([^>]*\bscoped\b[^>]*)>([\s\S]*?)<\/style>/gi,F=!1;if(q=q.replace(E,(V,K,L)=>{F=!0;let M=Q(L,v),G=K.replace(/\bscoped\b/gi,"").trim(),O=G?` ${G}`:"";return`<style data-stx-scoped="${D}"${O}>${M}</style>`}),!F)return{html:B,hasScoped:!1};return q=U(q,v),{html:q,hasScoped:!0}}function Q(B,z){return J(B,"__SCOPE_PLACEHOLDER__",{preserveHost:!1}).replace(/\.(__SCOPE_PLACEHOLDER__) /g,`[${z}] `).replace(/\.(__SCOPE_PLACEHOLDER__)/g,`[${z}]`)}function U(B,z){let D=new Set(["script","style","template","html","head","body","meta","link","title","base","!doctype","!DOCTYPE"]);return B.replace(/<([a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*)?\/?>/g,(v,q,E)=>{if(D.has(q.toLowerCase()))return v;if(v.includes(z))return v;if(q.toLowerCase()==="style"||q.toLowerCase()==="script")return v;if(E)return v.replace(`<${q}${E}`,`<${q} ${z}${E}`);if(v.endsWith("/>"))return`<${q} ${z} />`;return`<${q} ${z}>`})}
|
|
3
|
+
export{Y as lt};
|
|
@@ -11,4 +11,4 @@ catch (e) {
|
|
|
11
11
|
throw e;
|
|
12
12
|
}
|
|
13
13
|
`),N.set(Z,$)}return $(...T)}catch{return}}};if(this.pool.length<this.maxPoolSize)this.pool.push({func:O,context:F.slice()});return O}clear(){this.pool.length=0,this.fnCache.clear()}}var S=new L;class W{metrics=new Map;budgets=new Map;violations=[];maxViolations=100;violationHandlers=[];enabled=!0;setEnabled(j){this.enabled=j}isEnabled(){return this.enabled}setBudget(j,F){this.budgets.set(j,{warnThreshold:0.8,action:"warn",...F})}setBudgets(j){for(let[F,D]of Object.entries(j))this.setBudget(F,D)}removeBudget(j){this.budgets.delete(j)}getBudgets(){let j={};for(let[F,D]of this.budgets.entries())j[F]=D;return j}onViolation(j){this.violationHandlers.push(j)}offViolation(j){let F=this.violationHandlers.indexOf(j);if(F!==-1)this.violationHandlers.splice(F,1)}time(j,F){if(!this.enabled)return F();let D=performance.now(),J=F(),N=performance.now()-D;return this.recordTime(j,N),this.checkBudget(j,N),J}async timeAsync(j,F){if(!this.enabled)return F();let D=performance.now(),J=await F(),N=performance.now()-D;return this.recordTime(j,N),this.checkBudget(j,N),J}checkBudget(j,F){let D=this.budgets.get(j);if(!D)return;let J=F/D.maxTime*100,N=D.warnThreshold!==void 0?F>=D.maxTime*D.warnThreshold&&F<D.maxTime:!1,Q=F>=D.maxTime;if(!N&&!Q)return;let O={label:j,actualTime:F,budgetTime:D.maxTime,exceedancePercent:J,timestamp:new Date,isWarning:N};this.violations.push(O);while(this.violations.length>this.maxViolations)this.violations.shift();for(let Y of this.violationHandlers)try{Y(O)}catch{}let T=N?`[Performance Warning] "${j}" took ${F.toFixed(2)}ms (${J.toFixed(1)}% of ${D.maxTime}ms budget)`:`[Performance Budget Exceeded] "${j}" took ${F.toFixed(2)}ms (exceeded ${D.maxTime}ms budget by ${(J-100).toFixed(1)}%)`;switch(D.action){case"log":console.log(T);break;case"warn":console.warn(T);break;case"error":console.error(T);break;case"throw":if(Q)throw Error(T);else console.warn(T);break}}recordTime(j,F){let D=this.metrics.get(j);if(D)D.count++,D.totalTime+=F,D.maxTime=Math.max(D.maxTime,F),D.minTime=Math.min(D.minTime,F);else this.metrics.set(j,{count:1,totalTime:F,maxTime:F,minTime:F})}getStats(j){if(j){let D=this.metrics.get(j);if(!D)return{};let J=this.budgets.get(j);return{count:D.count,avgTime:D.totalTime/D.count,totalTime:D.totalTime,maxTime:D.maxTime,minTime:D.minTime,budget:J?.maxTime,budgetUtilization:J?D.totalTime/D.count/J.maxTime*100:void 0}}let F={};for(let[D,J]of this.metrics.entries()){let N=this.budgets.get(D);F[D]={count:J.count,avgTime:J.totalTime/J.count,totalTime:J.totalTime,maxTime:J.maxTime,minTime:J.minTime,budget:N?.maxTime,budgetUtilization:N?J.totalTime/J.count/N.maxTime*100:void 0}}return F}getViolations(j){if(j)return this.violations.filter((F)=>F.label===j);return[...this.violations]}getViolationStats(){let j={},F=0,D=0;for(let J of this.violations)if(j[J.label]=(j[J.label]||0)+1,J.isWarning)F++;else D++;return{total:this.violations.length,byLabel:j,warnings:F,errors:D}}clear(){this.metrics.clear()}clearViolations(){this.violations.length=0}clearBudgets(){this.budgets.clear()}reset(){this.clear(),this.clearViolations(),this.clearBudgets(),this.violationHandlers.length=0}}var H={processDirectives:{maxTime:500,warnThreshold:0.8,action:"warn"},processTemplate:{maxTime:200,warnThreshold:0.8,action:"warn"},processIncludes:{maxTime:100,warnThreshold:0.8,action:"warn"},processLoops:{maxTime:50,warnThreshold:0.8,action:"warn"},processConditionals:{maxTime:50,warnThreshold:0.8,action:"warn"},processExpressions:{maxTime:100,warnThreshold:0.8,action:"warn"},renderComponent:{maxTime:150,warnThreshold:0.8,action:"warn"},buildWebComponents:{maxTime:1000,warnThreshold:0.8,action:"warn"}},B=null;function w(){if(!B)B=new W;return B}var _=new Proxy({},{get(j,F){return w()[F]}});function v(j=w()){j.setBudgets(H)}function K(){B=null}
|
|
14
|
-
export{I as
|
|
14
|
+
export{I as Ax,z as Bx,A as Cx,G as Dx,X as Ex,M as Fx,P as Gx,R as Hx,S as Ix,W as Jx,H as Kx,w as Lx,_ as Mx,v as Nx,K as Ox};
|
|
@@ -5,4 +5,4 @@ function j(g){let f=g.robots??"allow";if(f===!1)return null;if(typeof f==="strin
|
|
|
5
5
|
`:"";if(f==="disallow")return["User-agent: *","Disallow: /","",h].filter(Boolean).join(`
|
|
6
6
|
`);return["User-agent: *","Allow: /","",h].filter(Boolean).join(`
|
|
7
7
|
`)}
|
|
8
|
-
export{j as
|
|
8
|
+
export{j as fh};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{b as
|
|
2
|
+
import{gz as L}from"./chunk-gz5fmp3q.js";import{pB as $}from"./chunk-xv34zbp4.js";import{existsSync as j,readFileSync as u}from"fs";var I=new Map;function q(E){try{return $.resolve(`@iconify/json/json/${E}.json`)}catch{}let G=process.cwd();for(let H of[`${G}/node_modules/@iconify/json/json/${E}.json`,`${G}/pantry/@iconify/json/json/${E}.json`])if(j(H))return H;return null}function D(E){if(I.has(E))return I.get(E);let G=q(E);if(!G)return null;try{let H=JSON.parse(u(G,"utf8"));return I.set(E,H.icons),H.icons}catch{return null}}async function R(E){if(I.has(E))return I.get(E);let G=q(E);if(!G)return null;try{let H=await Bun.file(G).json();return I.set(E,H.icons),H.icons}catch{return null}}function J(E,G){if(E.serverDynamic[G]!==void 0)return String(E.serverDynamic[G]);if(E.static[G]!==void 0)return String(E.static[G]);if(E.clientReactive[G]!==void 0)return E.clientReactive[G];return}var b={name:"Icon",aliases:["icon","stx-icon"],render(E,G,H){let M=J(E,"name")??J(E,"icon");if(!M)return"<!-- Icon: missing name/icon prop -->";let K="lucide",Q=M;if(M.includes(":")){let Z=M.split(":");K=Z[0],Q=Z[1]}let U=L(J(E,"size")||"24"),V=L(J(E,"color")||"currentColor"),W=L(J(E,"class")||""),X=L(J(E,"style")||""),Y=I.get(K)??D(K);if(!Y)return`<!-- Icon: collection "${K}" not loaded -->`;let O=Y[Q];if(!O)return`<!-- Icon: "${Q}" not found in ${K} -->`;let B=O.width||24,F=O.height||24,z=`0 0 ${B} ${F}`,T=O.body;if(V!=="currentColor")T=T.replace(/currentColor/g,V);let S=W?` class="${W}"`:"",g=X?` style="${X}"`:"";return`<svg xmlns="http://www.w3.org/2000/svg" width="${U}" height="${U}" viewBox="${z}" fill="none"${S}${g}>${T}</svg>`}};async function A(E="lucide"){await R(E)}
|
|
3
|
+
export{b as dz,A as ez};
|
|
@@ -80,4 +80,4 @@ else {
|
|
|
80
80
|
<span>${Array.isArray(g)?g.join(", "):String(g)}</span>
|
|
81
81
|
</div>`).join("")}
|
|
82
82
|
</div>`}var q=["dark","night","monokai","dracula","nord","material","ayu","one-dark","tokyo","gruvbox","solarized-dark"];function G(b){let j=b.toLowerCase();return q.some((g)=>j.includes(g))}
|
|
83
|
-
export{x as
|
|
83
|
+
export{x as mo,z as no,B as oo,F as po,q as qo,G as ro};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{Buffer as R}from"buffer";import S from"crypto";var W=40,V="_token",w=null;function X(j=W){let q=S.randomBytes(Math.ceil(j/2)).toString("hex").slice(0,j);return w=q,q}function Y(){if(!w)X();return w}function v(){w=null}function G(j){w=j}function Z(j=V){let q=Y();return`<input type="hidden" name="${j}" value="${q}">`}function H(j){return j.replace(/@csrf(?:\((['"])([^'"]*)\1\))?/g,(q,J,z)=>{return Z(z||V)})}function K(j,q){let J=q??w;if(!J)return!1;let z=R.from(j),Q=R.from(J);if(z.length!==Q.length)return!1;return S.timingSafeEqual(z,Q)}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as sx,Y as tx,v as ux,G as vx,Z as wx,H as xx,K as yx};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$j as R,Wj as _,Xj as M}from"./chunk-trfswy66.js";async function y(q){let{src:w,alt:j="",signatureEndpoint:z="/api/sign",signatureConfig:F={},auth:J,fallback:K,oneTimeUse:G=!0}=q,W=q.class,X=q.style;if(J){if(!await _(J)){if(K)return{html:`<img src="${B(K)}" alt="${B(j)}"${W?` class="${B(W)}"`:""}${X?` style="${B(X)}"`:""} />`};return{html:"<!-- Protected content: access denied -->"}}}let $={endpoint:z,oneTimeUse:G,...F,params:J?M(J):F.params},Y=`stx-protected-${Math.random().toString(36).slice(2,8)}`,O=[`id="${Y}"`,`data-protected-src="${B(w)}"`,`data-signature-endpoint="${B(z)}"`,`alt="${B(j)}"`];if(K)O.push(`data-fallback="${B(K)}"`),O.push(`src="${B(K)}"`);else O.push('src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"');if(W)O.push(`class="${B(W)}"`);if(X)O.push(`style="${B(X)}"`);let Z=`
|
|
3
3
|
(function() {
|
|
4
4
|
var el = document.getElementById('${Y}');
|
|
5
5
|
if (!el) return;
|
|
@@ -54,4 +54,4 @@ else if (el.dataset.fallback) {
|
|
|
54
54
|
});
|
|
55
55
|
})();
|
|
56
56
|
`.trim(),{html:q,script:J}}function E(q,w,j){if(w.src)return{src:String(w.src),alt:String(w.alt||""),signatureEndpoint:String(w.signatureEndpoint||"/api/sign"),auth:w.auth,fallback:w.fallback?String(w.fallback):void 0,oneTimeUse:w.oneTimeUse!==!1};let z=q.trim();if(z.startsWith("@protected(")||z.startsWith("("))z=z.replace(/^@protected\(/,"").replace(/^\(/,"").replace(/\)$/,"");let F=D(z);return{src:L(F[0],j)||"",alt:L(F[1],j)||"",...typeof F[2]==="object"?F[2]:{}}}function D(q){let w=[],j="",z=!1,F="",J=0;for(let K=0;K<q.length;K++){let G=q[K],W=K>0?q[K-1]:"";if((G==='"'||G==="'")&&W!=="\\"){if(!z)z=!0,F=G;else if(G===F)z=!1;else j+=G;continue}if(!z){if(G==="{")J++;if(G==="}")J--;if(G===","&&J===0){w.push(j.trim()),j="";continue}}j+=G}if(j.trim())w.push(j.trim());return w}function L(q,w){if(typeof q!=="string")return q;let j=q.trim();if(j.startsWith('"')&&j.endsWith('"')||j.startsWith("'")&&j.endsWith("'"))return j.slice(1,-1);if(w[j]!==void 0)return w[j];if(j.startsWith("{"))try{return JSON.parse(j)}catch{}return j}function B(q){return q.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}
|
|
57
|
-
export{y as
|
|
57
|
+
export{y as Mj,C as Nj,x as Oj,E as Pj};
|
|
@@ -383,4 +383,4 @@ else {
|
|
|
383
383
|
})();
|
|
384
384
|
</script>
|
|
385
385
|
`}function R(D,j){let q=L(j);if(!q)return D;let E=D.lastIndexOf("</body>");if(E!==-1)return D.slice(0,E)+q+D.slice(E);return D+q}var T={name:"heatmap",hasEndTag:!1,description:"Inject privacy-compliant heatmap tracking script",handler:async(D,j,q,E)=>{let F=q.__stx_config||{};if(j.length>0){let J=Q(j.join(" "));F.heatmap={...F.heatmap,...J,enabled:!0}}return L(F)}};function Q(D){let j={},q=D.match(/(\w+)=["']?([^"'\s]+)["']?/g)||[];for(let E of q){let[F,J]=E.split("="),G=J?.replace(/["']/g,"");switch(F){case"endpoint":j.endpoint=G;break;case"samplingRate":j.samplingRate=Number.parseInt(G,10);break;case"batchSize":j.batchSize=Number.parseInt(G,10);break;case"trackMouse":j.trackMouse=G==="true";break;case"trackClicks":j.trackClicks=G==="true";break;case"trackScroll":j.trackScroll=G==="true";break;case"honorDnt":j.honorDnt=G==="true";break;case"debugOverlay":j.debugOverlay=G==="true";break}}return j}class M{sessions=new Map;addSession(D){let j=this.sessions.get(D.sid);if(j)j.points.push(...D.points),j.lastActivity=Math.max(j.lastActivity,D.lastActivity);else this.sessions.set(D.sid,D)}getPageData(D){let j=[];for(let q of this.sessions.values())if(q.page===D)j.push(...q.points);return j}getClickData(D){return this.getPageData(D).filter((j)=>j.type==="click")}getMovementData(D){return this.getPageData(D).filter((j)=>j.type==="move")}getScrollData(D){let j=this.getPageData(D).filter((E)=>E.type==="scroll"),q=new Map;for(let E of j)if(E.depth!==void 0)q.set(E.depth,(q.get(E.depth)||0)+1);return Array.from(q.entries()).map(([E,F])=>({depth:E,count:F})).sort((E,F)=>E.depth-F.depth)}getZoneStats(D){let j=new Map,q=this.getPageData(D);for(let E of q)if(E.zone){let F=j.get(E.zone)||{clicks:0,hovers:0};if(E.type==="click")F.clicks++;else if(E.type==="move")F.hovers++;j.set(E.zone,F)}return j}generateGridData(D,j=20){let q=this.getPageData(D),E=[];for(let J=0;J<j;J++){E[J]=[];for(let G=0;G<j;G++)E[J][G]=0}for(let J of q){let G=Math.min(Math.floor(J.x/100*j),j-1),K=Math.min(Math.floor(J.y/100*j),j-1);E[K][G]+=J.type==="click"?3:1}let F=0;for(let J of E)for(let G of J)F=Math.max(F,G);return E.map((J,G)=>J.map((K,N)=>({x:N,y:G,intensity:F>0?K/F:0})))}exportJSON(){return JSON.stringify({sessions:Array.from(this.sessions.values()),exportedAt:new Date().toISOString()},null,2)}clear(){this.sessions.clear()}get sessionCount(){return this.sessions.size}get totalPoints(){let D=0;for(let j of this.sessions.values())D+=j.points.length;return D}}function U(){return new M}
|
|
386
|
-
export{O as
|
|
386
|
+
export{O as nw,L as ow,R as pw,T as qw,M as rw,U as sw};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ks as H,Qr as g,Us as x,tr as O}from"./chunk-1xz0w746.js";import{dt as R}from"./chunk-g1vt329s.js";import b from"path";var v={enabled:!0,bufferSize:16384,strategy:"auto",timeout:30000},M=/<!-- @section:([\w-]+) -->([\s\S]*?)<!-- @endsection:\1 -->/g;var T=/<!-- @suspense:([\w-]+) -->([\s\S]*?)<!-- @endsuspense:\1 -->/g;function f(q){let B=[],Q=0,G;T.lastIndex=0;while((G=T.exec(q))!==null){if(G.index>Q){let X=q.slice(Q,G.index);if(X.trim())B.push({type:B.length===0?"shell":"content",content:X})}let J=G[1],K=G[2];B.push({type:"suspense",name:J,content:K}),Q=G.index+G[0].length}if(Q<q.length){let J=q.slice(Q);if(J.trim())B.push({type:B.length===0?"shell":"content",content:J})}if(B.length===0)B.push({type:"shell",content:q});return B}async function r(q,B={},Q={}){let G={...g,...Q,streaming:{...v,...Q.streaming}},J=G.streaming?.bufferSize||16384;return new ReadableStream({async start(K){try{let X=await Bun.file(q).text(),z=X.match(/<script\b[^>]*\bserver\b[^>]*>([\s\S]*?)<\/script>/i),L=z?z[1]:"",Y=X.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,""),j={...B,__filename:q,__dirname:b.dirname(q)};if(L.trim())await R(L,j,q);let D=f(Y),$=new Set;if(!D.some((w)=>w.type==="suspense")){let w=G.streaming?.strategy||"auto",U=new RegExp(M.source,"g");if(!(w!=="manual"&&U.test(Y))){let F=await H(Y,j,q,G,$);for(let V=0;V<F.length;V+=J)K.enqueue(F.slice(V,V+J)),await new Promise((W)=>setTimeout(W,0))}else{let F=[],V=new RegExp(M.source,"g"),W;while((W=V.exec(Y))!==null)F.push({name:W[1],content:W[2],start:W.index,end:W.index+W[0].length});let y=0;for(let A of F){if(A.start>y){let k=Y.slice(y,A.start);if(k.trim()){let E=await H(k,j,q,G,$);K.enqueue(E),await new Promise((S)=>setTimeout(S,0))}}let I=await H(A.content,j,q,G,$);K.enqueue(I),await new Promise((k)=>setTimeout(k,0)),y=A.end}if(y<Y.length){let A=Y.slice(y);if(A.trim()){let I=await H(A,j,q,G,$);K.enqueue(I)}}}}else{let w=new Map;for(let Z of D)if(Z.type==="shell"||Z.type==="content"){let F=await H(Z.content,j,q,G,$);K.enqueue(F)}else if(Z.type==="suspense"&&Z.name){let F=`stx-suspense-${Z.name}`;K.enqueue(`<div id="${F}" data-suspense="${Z.name}" style="display:contents;">
|
|
3
3
|
<template data-suspense-fallback>Loading...</template>
|
|
4
4
|
</div>`),w.set(Z.name,H(Z.content,j,q,G,$))}K.enqueue(`
|
|
5
5
|
<script>
|
|
@@ -191,4 +191,4 @@ else {
|
|
|
191
191
|
stx.hydrate();
|
|
192
192
|
}
|
|
193
193
|
})();`}
|
|
194
|
-
export{r as
|
|
194
|
+
export{r as Wf,N as Xf,C as Yf,s as Zf,a as _f,o as $f,n as ag,e as bg,d as cg,h as dg,t as eg,qq as fg,Bq as gg,Gq as hg};
|
|
@@ -7,4 +7,4 @@ function G(j){return j.replace(/[;{}()]/g,"").replace(/url/gi,"")}function E(j,q
|
|
|
7
7
|
<script>
|
|
8
8
|
(function(){var el=document.getElementById('stx-loading-indicator'),p=0,l=!1,i=null;function u(v){p=Math.min(Math.max(v,0),100);if(el){el.style.opacity=p>0?'1':'0';el.style.transform='scaleX('+(p/100)+')'}}window.stxLoading={start:function(){l=!0;p=0;u(10);if(i)clearInterval(i);i=setInterval(function(){if(!l)return;var r=90-p,inc=Math.max(0.5,r*0.1);if(p<90)u(p+inc)},${K})},finish:function(){l=!1;if(i){clearInterval(i);i=null}u(100);setTimeout(function(){if(el)el.style.opacity='0';setTimeout(function(){p=0;if(el)el.style.transform='scaleX(0)'},300)},200)},set:function(v){u(v)},clear:function(){l=!1;p=0;if(i){clearInterval(i);i=null}if(el){el.style.opacity='0';el.style.transform='scaleX(0)'}}};document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a');if(!a)return;var h=a.getAttribute('href');if(!h||h.startsWith('http')||h.startsWith('#')||h.startsWith('mailto:')||h.startsWith('tel:')||a.target==='_blank')return;window.stxLoading.start()});window.addEventListener('popstate',function(){window.stxLoading.start()});window.addEventListener('load',function(){window.stxLoading.finish()})})();
|
|
9
9
|
</script>`}};
|
|
10
|
-
export{O as
|
|
10
|
+
export{O as Zy};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ey as A,fy as _,hy as B}from"./chunk-bs3gmfxz.js";function w(K){let Q=[],L=0;while(L<K.length){let G=K.indexOf("{{",L),j=K.indexOf("{!!",L),O=!1,J;if(G===-1&&j===-1)break;else if(G===-1)J=j,O=!0;else if(j===-1)J=G,O=!1;else if(j<G)J=j,O=!0;else J=G,O=!1;if(!O&&K.slice(J,J+3)==="{{{")O=!0;let H=O?K.slice(J,J+3)==="{{{"?"{{{":"{!!":"{{",Y=O?H==="{{{"?"}}}":"!!}":"}}",W=J+H.length,X=M(K,W,Y);if(X===-1){L=J+1;continue}let Z=K.slice(W,X).trim(),U=X+Y.length;Q.push({fullMatch:K.slice(J,U),expression:Z,start:J,end:U,isRaw:O}),L=U}return Q}function M(K,Q,L){let G=Q,j=null,O={paren:0,bracket:0,brace:0},J=0;while(G<K.length){let H=K[G];if((G>0?K[G-1]:"")==="\\"&&j){G++;continue}if((H==='"'||H==="'")&&!j){j=H,G++;continue}if(H===j&&j!=="`"){j=null,G++;continue}if(H==="`"&&!j){j="`",G++;continue}if(H==="`"&&j==="`"&&J===0){j=null,G++;continue}if(j==="`"&&H==="$"&&K[G+1]==="{"){J++,G+=2;continue}if(J>0){if(H==="{")J++;else if(H==="}")J--;G++;continue}if(j){G++;continue}if(H==="(")O.paren++;else if(H===")")O.paren--;else if(H==="[")O.bracket++;else if(H==="]")O.bracket--;else if(H==="{")O.brace++;else if(H==="}")O.brace--;if(O.paren===0&&O.bracket===0&&O.brace<=0){if(K.slice(G,G+L.length)===L)return G}G++}return-1}function D(K){let Q=B(K);if(Q.length===0)return{baseExpression:"",filters:[]};let L=Q[0],G=[];for(let j=1;j<Q.length;j++){let O=v(Q[j]);if(O)G.push(O)}return{baseExpression:L,filters:G}}function v(K){let Q=K.trim();if(!Q)return null;let L=Q.indexOf("(");if(L===-1)return{name:Q,args:[]};let G=Q.slice(0,L).trim(),j=L+1,O=_(Q,"(",")",L);if(O===-1)return{name:G,args:[]};let J=Q.slice(j,O),H=y(J);return{name:G,args:H}}function y(K){let Q=[],L="",G={paren:0,bracket:0,brace:0},j=null,O=0;for(let J=0;J<K.length;J++){let H=K[J];if((J>0?K[J-1]:"")==="\\"&&j){L+=H;continue}if((H==='"'||H==="'")&&!j){j=H,L+=H;continue}if(H===j&&j!=="`"){j=null,L+=H;continue}if(H==="`"&&!j){j="`",L+=H;continue}if(H==="`"&&j==="`"&&O===0){j=null,L+=H;continue}if(j==="`"&&H==="$"&&K[J+1]==="{"){O++,L+="${",J++;continue}if(O>0&&H==="{"){O++,L+=H;continue}if(O>0&&H==="}"){O--,L+=H;continue}if(j){L+=H;continue}if(H==="(")G.paren++;else if(H===")")G.paren--;else if(H==="[")G.bracket++;else if(H==="]")G.bracket--;else if(H==="{")G.brace++;else if(H==="}")G.brace--;if(H===","&&G.paren===0&&G.bracket===0&&G.brace===0){Q.push(L.trim()),L="";continue}L+=H}if(L.trim())Q.push(L.trim());return Q}function f(K,Q){let L=Q;while(L<K.length&&/\s/.test(K[L]))L++;if(K[L]!=="(")return null;let G=_(K,"(",")",L);if(G===-1)return null;return{params:K.slice(L+1,G),endPos:G+1}}function R(K){let Q=[],G=new A(K).tokenize().filter((O)=>O.type!=="WHITESPACE"&&O.type!=="COMMENT"),j=0;while(j<G.length){let O=G[j],J=!1;if(O.type==="IDENTIFIER"&&O.value==="export"){if(J=!0,j++,j>=G.length)break}let H=G[j];if(H.type==="IDENTIFIER"&&(H.value==="const"||H.value==="let"||H.value==="var")){let Y=H.value;if(j++,j>=G.length)break;let W=G[j];if(W.type==="IDENTIFIER"){let X=W.value;if(j++,j<G.length&&G[j].type==="OPERATOR"&&G[j].value==="="){j++;let Z=j<G.length?G[j].start:K.length,U=N(G,j,K);j=U.nextIndex,Q.push({type:"variable",name:X,value:K.slice(Z,U.endPos),exported:J,start:H.start,end:U.endPos})}}else if(W.type==="PUNCTUATION"&&(W.value==="{"||W.value==="[")){let X=W.start,Z=W.value==="{"?"}":"]",U=_(K,W.value,Z,X);if(U!==-1){let F=K.slice(X,U+1);if(j=V(G,U+1),j<G.length&&G[j].type==="OPERATOR"&&G[j].value==="="){j++;let z=j<G.length?G[j].start:K.length,$=N(G,j,K);j=$.nextIndex;let q=`__stx_destructured_${Q.length}`;Q.push({type:"variable",name:q,value:`${K.slice(z,$.endPos)}; ${Y} ${F} = ${q}`,exported:J,start:H.start,end:$.endPos})}}}}else if(H.type==="IDENTIFIER"&&H.value==="function"){let Y=J?G[j-1].start:H.start;if(j++,j>=G.length)break;let W=G[j];if(W.type==="IDENTIFIER"){let X=W.value;j++;let Z=-1;while(j<G.length){if(G[j].type==="PUNCTUATION"&&G[j].value==="{"){Z=G[j].start;break}j++}if(Z!==-1){let U=_(K,"{","}",Z);if(U!==-1)Q.push({type:"function",name:X,value:K.slice(Y,U+1).replace(/^export\s+/,""),exported:J,start:Y,end:U+1}),j=V(G,U+1)}}}else j++}return Q}function N(K,Q,L){let G=Q,j={paren:0,bracket:0,brace:0},O=Q<K.length?K[Q].start:L.length;while(G<K.length){let J=K[G];if(J.type==="PUNCTUATION"){if(J.value==="(")j.paren++;else if(J.value===")")j.paren--;else if(J.value==="[")j.bracket++;else if(J.value==="]")j.bracket--;else if(J.value==="{")j.brace++;else if(J.value==="}")j.brace--;if(J.value===";"&&j.paren===0&&j.bracket===0&&j.brace===0){O=J.start,G++;break}}if(J.type==="IDENTIFIER"&&(J.value==="const"||J.value==="let"||J.value==="var"||J.value==="function"||J.value==="export")){if(j.paren===0&&j.bracket===0&&j.brace===0){O=K[G-1]?.end??J.start;break}}O=J.end,G++}return{nextIndex:G,endPos:O}}function V(K,Q){for(let L=0;L<K.length;L++)if(K[L].start>=Q)return L;return K.length}export{w as Ux,D as Vx,y as Wx,f as Xx,R as Yx};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{Q as
|
|
2
|
+
import{_q as J}from"./chunk-r0jcmpv6.js";function Q(E,D){let A=new Set,B=new Map,C=new Map,F={globalProperties:{},performance:!1,compilerOptions:{}},z={config:F,_components:B,_directives:C,_installedPlugins:A,use(q,...x){if(A.has(q))return z;if(A.add(q),typeof q==="function")q(z,...x);else if(typeof q.install==="function")q.install(z,...x);return z},provide(q,x){return J(q,x),z},component(q,x){if(!x)return B.get(q);return B.set(q,x),z},directive(q,x){if(!x)return C.get(q);return C.set(q,x),z},mount(q){if(typeof document<"u"){let x=globalThis.__stx_globals||(globalThis.__stx_globals={});Object.assign(x,F.globalProperties),document.querySelectorAll("[v-cloak]").forEach((K)=>{K.removeAttribute("v-cloak")})}return z},unmount(){B.clear(),C.clear(),A.clear()}};return z}function R(E){return class extends HTMLElement{_component;_shadow;constructor(){super();this._shadow=this.attachShadow({mode:"open"}),this._component=E}connectedCallback(){if(this._component?.render){let D=this._component.render();if(typeof D==="string")this._shadow.innerHTML=D}else if(this._component?.template)this._shadow.innerHTML=this._component.template;else if(typeof this._component==="string")this._shadow.innerHTML=this._component}disconnectedCallback(){this._shadow.innerHTML=""}}}
|
|
3
|
+
export{Q as Rq,R as Sq};
|
|
@@ -3,4 +3,4 @@ import{existsSync as _,readFileSync as $}from"fs";var A={strict:!1,allowAny:!0,c
|
|
|
3
3
|
`),H=this.getLineNumber(j);for(let B=0;B<q.length;B++){let D=q[B],G=H+B;this.extractTypedVariables(D,G),this.extractInterfaces(D,q,B,G),this.extractTypeAliases(D,G)}}extractTypedVariables(z,j){let q=z.match(/(?:export\s+)?(?:const|let|var)\s+(\w+)\s*:\s*([^=]+?)\s*=/);if(q){let[,D,G]=q,J=this.parseTypeAnnotation(G.trim());this.variables.set(D,J);return}let H=z.match(/(?:export\s+)?(?:const|let|var)\s+(\w+)\s*=\s*(.+)/);if(H){let[,D,G]=H,J=this.inferType(G.trim());this.variables.set(D,J);return}let B=z.match(/(?:export\s+)?function\s+(\w+)\s*\(([^)]*)\)(?:\s*:\s*(\w+))?/);if(B){let[,D,G,J]=B,K=this.parseParams(G),Q=J?this.parseTypeAnnotation(J):{kind:"primitive",value:"any"};this.variables.set(D,{kind:"function",params:K,returnType:Q})}}extractInterfaces(z,j,q,H){let B=z.match(/(?:export\s+)?interface\s+(\w+)\s*\{/);if(B){let[,D]=B,G={},J=1,K=q+1;while(K<j.length&&J>0){let Q=j[K].trim();if(Q.includes("{"))J++;if(Q.includes("}"))J--;let U=Q.match(/(\w+)\??\s*:\s*([^;]+)/);if(U&&J>0){let[,W,V]=U;G[W]=this.parseTypeAnnotation(V.trim())}K++}this.variables.set(D,{kind:"object",name:D,properties:G})}}extractTypeAliases(z,j){let q=z.match(/(?:export\s+)?type\s+(\w+)\s*=\s*(.+)/);if(q){let[,H,B]=q,D=this.parseTypeAnnotation(B.trim());D.name=H,this.variables.set(H,D)}}parseTypeAnnotation(z){let j=z.trim();if(j.includes("|"))return{kind:"union",types:j.split("|").map((D)=>this.parseTypeAnnotation(D.trim()))};if(j.includes("&"))return{kind:"intersection",types:j.split("&").map((D)=>this.parseTypeAnnotation(D.trim()))};if(j.endsWith("[]"))return{kind:"array",elementType:this.parseTypeAnnotation(j.slice(0,-2))};let q=j.match(/^Array<(.+)>$/);if(q)return{kind:"array",elementType:this.parseTypeAnnotation(q[1])};if(j.startsWith("{")&&j.endsWith("}")){let B={},D=j.slice(1,-1).trim();if(D){let G=this.splitByComma(D);for(let J of G){let K=J.match(/(\w+)\??\s*:\s*(.+)/);if(K){let[,Q,U]=K;B[Q]=this.parseTypeAnnotation(U.trim())}}}return{kind:"object",properties:B}}if(j.startsWith('"')||j.startsWith("'"))return{kind:"literal",value:j.slice(1,-1)};if(/^\d+$/.test(j))return{kind:"literal",value:j};if(j==="true"||j==="false")return{kind:"literal",value:j};if(["string","number","boolean","null","undefined","any","unknown","void","never"].includes(j))return{kind:"primitive",value:j};if(this.variables.has(j))return this.variables.get(j);return{kind:"primitive",value:"any"}}inferType(z){let j=z.trim().replace(/;$/,"");if(j.startsWith('"')&&j.endsWith('"')||j.startsWith("'")&&j.endsWith("'")||j.startsWith("`")&&j.endsWith("`"))return{kind:"primitive",value:"string"};if(/^-?\d+(\.\d+)?$/.test(j))return{kind:"primitive",value:"number"};if(j==="true"||j==="false")return{kind:"primitive",value:"boolean"};if(j==="null")return{kind:"primitive",value:"null"};if(j==="undefined")return{kind:"primitive",value:"undefined"};if(j.startsWith("[")){let q=j.slice(1,-1).trim();if(q){let H=this.splitByComma(q)[0];if(H)return{kind:"array",elementType:this.inferType(H.trim())}}return{kind:"array",elementType:{kind:"primitive",value:"any"}}}if(j.startsWith("{")){let q={},H=this.extractObjectLiteral(j);for(let[B,D]of Object.entries(H))q[B]=this.inferType(D);return{kind:"object",properties:q}}if(j.includes("=>")){let q=j.match(/^\(([^)]*)\)\s*(?::\s*(\w+))?\s*=>/);if(q){let H=this.parseParams(q[1]),B=q[2]?this.parseTypeAnnotation(q[2]):{kind:"primitive",value:"any"};return{kind:"function",params:H,returnType:B}}}if(/^\w+$/.test(j)&&this.variables.has(j))return this.variables.get(j);if(j.includes("."))return this.resolvePropertyAccess(j);if(j.includes("(")){let q=j.split("(")[0],H=this.variables.get(q);if(H?.kind==="function"&&H.returnType)return H.returnType}return{kind:"primitive",value:"any"}}parseParams(z){if(!z.trim())return[];let j=[],q=this.splitByComma(z);for(let H of q){let B=H.trim(),D=B.includes("?"),G=B.match(/(\w+)\??\s*(?::\s*([^=]+))?(?:\s*=)?/);if(G){let[,J,K]=G,Q=K?this.parseTypeAnnotation(K.trim()):{kind:"primitive",value:"any"};j.push({name:J,type:Q,optional:D})}}return j}checkExpressions(z){let j=/\{\{([\s\S]*?)\}\}/g,q;while((q=j.exec(z))!==null){let B=q[1].trim(),D=q.index,G=this.getLineNumber(D,z),J=this.getColumn(D,z);if(!B)continue;if(B.startsWith("!")||B.endsWith("!"))continue;this.checkExpression(B,G,J)}let H=/\{!!([\s\S]*?)!!\}/g;while((q=H.exec(z))!==null){let B=q[1].trim(),D=q.index,G=this.getLineNumber(D,z),J=this.getColumn(D,z);if(!B)continue;this.checkExpression(B,G,J)}}checkExpression(z,j,q){if(z.includes("?")&&z.includes(":")){let D=z.split("?");this.checkExpression(D[0].trim(),j,q);let G=D.slice(1).join("?").split(":");if(G.length>=2)this.checkExpression(G[0].trim(),j,q),this.checkExpression(G.slice(1).join(":").trim(),j,q);return}for(let D of["&&","||","??"])if(z.includes(D)){z.split(D).forEach((J)=>this.checkExpression(J.trim(),j,q));return}for(let D of["===","!==","==","!=",">=","<=",">","<"])if(z.includes(D)){z.split(D).forEach((J)=>this.checkExpression(J.trim(),j,q));return}if(z.startsWith("!")){this.checkExpression(z.slice(1).trim(),j,q);return}if(this.isLiteral(z))return;let H=z.match(/^(\w+(?:\.\w+)*)\s*\(/);if(H){let D=H[1],G=this.resolvePropertyAccess(D);if(G.kind!=="function"&&G.value!=="any")this.addWarning(`'${D}' is not a function`,j,q,z);return}if(z.includes(".")){if(this.resolvePropertyAccess(z).value==="undefined"&&this.options.checkPropertyAccess)this.addWarning(`Property access '${z}' may be undefined`,j,q,z);return}let B=z.match(/^\w+/)?.[0];if(B&&!this.variables.has(B))this.addError(`Variable '${B}' is not defined`,j,q,z)}checkDirectives(z){let j=/@if\s*\(([^)]+)\)/g,q;while((q=j.exec(z))!==null){let G=q[1].trim(),J=q.index,K=this.getLineNumber(J,z),Q=this.getColumn(J,z);this.checkExpression(G,K,Q)}let H=/@foreach\s*\((\w+)\s+(?:as|in)\s+(\w+)(?:\s*,\s*(\w+))?\)/g;while((q=H.exec(z))!==null){let[,G,J,K]=q,Q=q.index,U=this.getLineNumber(Q,z),W=this.getColumn(Q,z);if(!this.variables.has(G))this.addError(`Collection '${G}' is not defined`,U,W,q[0]);else{let V=this.variables.get(G);if(V.kind==="array"&&V.elementType)this.variables.set(J,V.elementType);else this.variables.set(J,{kind:"primitive",value:"any"});if(K)this.variables.set(K,{kind:"primitive",value:"number"})}}let B=/@unless\s*\(([^)]+)\)/g;while((q=B.exec(z))!==null){let G=q[1].trim(),J=q.index,K=this.getLineNumber(J,z),Q=this.getColumn(J,z);this.checkExpression(G,K,Q)}let D=/@switch\s*\(([^)]+)\)/g;while((q=D.exec(z))!==null){let G=q[1].trim(),J=q.index,K=this.getLineNumber(J,z),Q=this.getColumn(J,z);this.checkExpression(G,K,Q)}}resolvePropertyAccess(z){let j=z.split("."),q=this.variables.get(j[0])||{kind:"primitive",value:"any"};for(let H=1;H<j.length;H++){let B=j[H].replace(/\(\)$/,"");if(q.kind==="object"&&q.properties)if(q.properties[B])q=q.properties[B];else if(!this.options.allowAny)return{kind:"primitive",value:"undefined"};else q={kind:"primitive",value:"any"};else if(q.kind==="array"&&q.elementType)if(["length"].includes(B))q={kind:"primitive",value:"number"};else if(["map","filter","find","forEach","some","every","reduce"].includes(B))q={kind:"function",returnType:{kind:"primitive",value:"any"}};else if(["join"].includes(B))q={kind:"function",returnType:{kind:"primitive",value:"string"}};else q={kind:"primitive",value:"any"};else if(q.kind==="primitive"&&q.value==="string")if(["length"].includes(B))q={kind:"primitive",value:"number"};else if(["toUpperCase","toLowerCase","trim","slice","substring"].includes(B))q={kind:"function",returnType:{kind:"primitive",value:"string"}};else if(["split"].includes(B))q={kind:"function",returnType:{kind:"array",elementType:{kind:"primitive",value:"string"}}};else q={kind:"primitive",value:"any"};else q={kind:"primitive",value:"any"}}return q}isLiteral(z){let j=z.trim();if(j.startsWith('"')&&j.endsWith('"')||j.startsWith("'")&&j.endsWith("'")||j.startsWith("`")&&j.endsWith("`"))return!0;if(/^-?\d+(\.\d+)?$/.test(j))return!0;if(j==="true"||j==="false")return!0;if(j==="null"||j==="undefined")return!0;return!1}extractObjectLiteral(z){let j={},q=z.slice(1,-1).trim();if(!q)return j;let H=this.splitByComma(q);for(let B of H){let D=B.indexOf(":");if(D>0){let G=B.slice(0,D).trim(),J=B.slice(D+1).trim();j[G]=J}}return j}splitByComma(z){let j=[],q="",H=0,B=null;for(let D=0;D<z.length;D++){let G=z[D],J=D>0?z[D-1]:"";if((G==='"'||G==="'"||G==="`")&&J!=="\\"){if(B===G)B=null;else if(!B)B=G}if(!B){if(G==="{"||G==="["||G==="(")H++;if(G==="}"||G==="]"||G===")")H--;if(G===","&&H===0){j.push(q.trim()),q="";continue}}q+=G}if(q.trim())j.push(q.trim());return j}getLineNumber(z,j){return((j||"").slice(0,z).match(/\n/g)||[]).length+1}getColumn(z,j){let H=j.slice(0,z).lastIndexOf(`
|
|
4
4
|
`);return z-H}addError(z,j,q,H,B,D){this.errors.push({message:z,file:this.currentFile,line:j,column:q,expression:H,expected:B,received:D,severity:"error"})}addWarning(z,j,q,H,B,D){let G={message:z,file:this.currentFile,line:j,column:q,expression:H,expected:B,received:D,severity:"warning"};if(this.options.strict)this.errors.push(G);else this.warnings.push(G)}getResult(){return{valid:this.errors.length===0,errors:this.errors,warnings:this.warnings,variables:new Map(this.variables)}}addVariable(z,j){this.variables.set(z,j)}reset(){if(this.errors=[],this.warnings=[],this.variables.clear(),this.options.includeBuiltins)Object.entries(X).forEach(([z,j])=>{this.variables.set(z,j)})}}function Z(z){return new Y(z)}function E(z,j){return Z(j).checkFile(z)}function I(z,j){return Z(j).checkTemplate(z)}function L(z){let j=[];for(let q of z.errors){if(j.push(`\x1B[31merror\x1B[0m: ${q.message}`),j.push(` --> ${q.file}:${q.line}:${q.column}`),q.expression)j.push(" |"),j.push(` | ${q.expression}`),j.push(" |");if(q.expected&&q.received)j.push(` expected: ${q.expected}`),j.push(` received: ${q.received}`);j.push("")}for(let q of z.warnings){if(j.push(`\x1B[33mwarning\x1B[0m: ${q.message}`),j.push(` --> ${q.file}:${q.line}:${q.column}`),q.expression)j.push(" |"),j.push(` | ${q.expression}`),j.push(" |");j.push("")}if(z.valid)j.push("\x1B[32m\u2713 No type errors found\x1B[0m");else j.push(`\x1B[31m\u2717 Found ${z.errors.length} error(s) and ${z.warnings.length} warning(s)\x1B[0m`);return j.join(`
|
|
5
5
|
`)}
|
|
6
|
-
export{Y as
|
|
6
|
+
export{Y as Df,Z as Ef,E as Ff,I as Gf,L as Hf};
|