@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Sw as Q}from"./chunk-0dx4q6yq.js";import{pB as r}from"./chunk-xv34zbp4.js";import k from"fs";import J from"path";var b=null,w=!1,W=null,M="",A=!1,o=256,N=new Map,E=null,x=null;function m(q){return Bun.hash(q).toString(16).padStart(16,"0").slice(0,16)}function y(q,z){if(N.has(q))N.delete(q);else if(N.size>=o)N.delete(N.keys().next().value);N.set(q,z)}async function e(q){if(!E)return null;try{let z=Bun.file(J.join(E,`cw-${m(q)}.css`));if(!await z.exists())return null;return await z.text()}catch{return null}}async function t(q,z){if(!E)return;try{if(!k.existsSync(E))k.mkdirSync(E,{recursive:!0});await Bun.write(J.join(E,`cw-${m(q)}.css`),z)}catch{}}async function i(q){try{let z=await import(q);if(z&&z.CSSGenerator)return{CSSGenerator:z.CSSGenerator,config:z.config,build:z.build,defaultConfig:z.defaultConfig}}catch{}return null}function s(){let q=[],z=process.env.HOME||process.env.USERPROFILE||"",G=process.cwd();while(G!==J.dirname(G))q.push(J.join(G,"node_modules","@cwcss","crosswind","dist","index.js")),q.push(J.join(G,"node_modules","@cwcss","crosswind","src","index.ts")),q.push(J.join(G,"pantry","@cwcss","crosswind","dist","index.js")),q.push(J.join(G,"pantry","@cwcss","crosswind","src","index.ts")),q.push(J.join(G,"node_modules","@stacksjs","crosswind","dist","index.js")),q.push(J.join(G,"pantry","@stacksjs","crosswind","dist","index.js")),G=J.dirname(G);if(z){let O=[J.join(z,"Code","Tools","crosswind","packages","crosswind","dist","index.js"),J.join(z,"Code","Tools","crosswind","packages","crosswind","src","index.ts"),J.join(z,"repos","stacks-org","crosswind","packages","crosswind","dist","index.js"),J.join(z,"repos","stacks-org","crosswind","packages","crosswind","src","index.ts"),J.join(z,"Code","Tools","stx","packages","stx","node_modules","@cwcss","crosswind","dist","index.js"),J.join(z,"Code","Tools","stx","packages","stx","node_modules","@stacksjs","crosswind","dist","index.js")];q.push(...O)}return q.push(J.join(process.cwd(),"..","crosswind","packages","crosswind","dist","index.js")),q.push(J.join(process.cwd(),"..","crosswind","packages","crosswind","src","index.ts")),q}async function a(){if(w)return b;w=!0;try{let q=["@cwcss/crosswind","@cwcss/crosswind/dist/index.js","@stacksjs/crosswind","@stacksjs/crosswind/dist/index.js"];for(let G of q){let O=await i(G);if(O){if(b=O,!process.env.STACKS_DEV_QUIET)console.log(`${Q.green}[Crosswind]${Q.reset} CSS engine loaded`);return b}}let z=s();for(let G of z)if(await Bun.file(G).exists()){let O=await i(G);if(O){if(b=O,!process.env.STACKS_DEV_QUIET)console.log(`${Q.green}[Crosswind]${Q.reset} CSS engine loaded from ${J.dirname(J.dirname(G))}`);return b}}throw Error("Crosswind CSSGenerator not found in any location")}catch{return console.warn(`${Q.yellow}[Crosswind] CSS engine not available, Tailwind styles will not be generated${Q.reset}`),console.warn(`${Q.yellow}Run 'bun add @stacksjs/crosswind' to enable CSS generation${Q.reset}`),null}}function Zq(){N.clear()}function $q(){b=null,w=!1,W=null,M="",N.clear(),x=null}async function n(q){try{let{loadConfigWithResult:z}=await import("bunfig"),G=await z({name:"crosswind",cwd:q,defaultConfig:{},checkEnv:!1,verbose:!1});if(!G?.path||!G.config||Object.keys(G.config).length===0)return null;let O=J.relative(q,G.path);if(!process.env.STACKS_DEV_QUIET)console.log(`${Q.green}[Crosswind]${Q.reset} Loaded config from ${O||G.path}`);return G.config}catch(z){if(z instanceof Error&&z.name==="ConfigNotFoundError")return null;return console.warn(`${Q.yellow}[Crosswind]${Q.reset} Failed to load crosswind config:`,z instanceof Error?z.message:z),null}}async function qq(q){if(A)return M;A=!0;try{let z=await a();if(!z||!z.build)return A=!1,"";if(!W)W=await n(q);if(!W)return A=!1,"";let G=z.defaultConfig?.theme||{},O=W.theme||{},V={...z.defaultConfig,...W,theme:{...G,...O,extend:{...G.extend||{},...O.extend||{}}}},X=performance.now(),Y=await z.build(V),j=performance.now()-X;if(M=Y.css,console.log(`${Q.cyan}[Crosswind]${Q.reset} Built ${Y.classes.size} classes in ${j.toFixed(1)}ms`),V.output){let _=J.isAbsolute(V.output)?V.output:J.join(q,V.output),H=J.dirname(_);if(!k.existsSync(H))k.mkdirSync(H,{recursive:!0});await Bun.write(_,Y.css)}return A=!1,Y.css}catch(z){return console.error(`${Q.red}[Crosswind]${Q.reset} Build error:`,z),A=!1,M}}async function Wq(q){W=null,await qq(q)}function Xq(){return M}function zq(q){let z=new Set,G=/class\s*=\s*["']([^"']+)["']/gi,O=G.exec(q);while(O!==null){for(let Y of O[1].split(/\s+/))if(Y.trim())z.add(Y.trim());O=G.exec(q)}let V=/(?:x-class|:class)\s*=\s*"([^"]+)"/gi,X=V.exec(q);while(X!==null){let Y=X[1].match(/'([^']+)'/g);if(Y){for(let j of Y)for(let _ of j.slice(1,-1).split(/\s+/))if(_.trim())z.add(_.trim())}X=V.exec(q)}return z}async function Gq(q,z){try{let G=await a();if(!G)return"";let O=zq(q);if(O.size===0)return"";let V=z?J.resolve(z):process.cwd();if(!E)E=J.join(V,".stx/cache");let X=[...O].sort().join(" "),Y=`${x||"default"}::${X}`,j=N.get(Y);if(j!==void 0)return y(Y,j),j;let _=await e(Y);if(_!==null)return y(Y,_),_;if(!W){let Z=null;try{let{loadStxConfig:T}=await import("././config.js"),U=await T(V);if(U.css)if(typeof U.css==="string"){let $=J.isAbsolute(U.css)?U.css:J.resolve(V,U.css);if(await Bun.file($).exists()){let I=await import($);Z=I.default||I,console.log(`${Q.green}[Crosswind]${Q.reset} Loaded config from stx.config.ts \u2192 ${U.css}`)}}else{if(Z={...U.css,content:U.css.content||[],preflight:U.css.preflight??!0,minify:U.css.minify??!1},U.css.config){let $=J.isAbsolute(U.css.config)?U.css.config:J.resolve(V,U.css.config);if(await Bun.file($).exists()){let I=await import($);Z={...I.default||I,...Z}}}console.log(`${Q.green}[Crosswind]${Q.reset} Using inline CSS config from stx.config.ts`)}}catch{}W=Z||await n(V);try{x=m(JSON.stringify(W??{}))}catch{x="unhashable"}}let H=G.defaultConfig||G.config,L=W||{},c=H.theme||{},u=(L.theme||{}).extend||{},f={...c};if(Object.keys(u).length>0)f.extend=u;let B=[...H.safelist||[],...L.safelist||[]],p={...H,...L,content:[],output:"",preflight:!0,minify:!1,theme:f,safelist:B},K=new G.CSSGenerator(p);for(let Z of B)K.generate(Z);for(let Z of O)K.generate(Z);let F=K.toCSS(!0,!1),g=p.shortcuts||L.shortcuts||{};for(let[Z,T]of Object.entries(g)){if(!O.has(Z)&&!B.includes(Z))continue;let U=T.split(/\s+/).filter(Boolean);for(let $ of U)K.generate($)}F=K.toCSS(!0,!1);let v=F.split(`
|
|
3
3
|
`);for(let[Z,T]of Object.entries(g)){if(!O.has(Z)&&!B.includes(Z))continue;let U=T.split(/\s+/).filter(Boolean),$=[],I=[];for(let P of U){let d=P.startsWith("dark:"),C=`.${(d?P.slice(5):P).replace(/\//g,"\\/").replace(/:/g,"\\:").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/%/g,"\\%")}`;for(let R=0;R<v.length;R++){let h=v[R].trim();if(h===`${C} {`||h.startsWith(`${C} {`)){let S=R,l="";while(S<v.length){if(l+=v[S],v[S].includes("}"))break;S++}let D=l.match(/\{([^}]+)\}/);if(D)if(d)I.push(D[1].trim());else $.push(D[1].trim());break}}}if($.length)F+=`
|
|
4
4
|
.${Z} { ${$.join(" ")} }`;if(I.length)F+=`
|
|
5
5
|
@media (prefers-color-scheme: dark) { .dark .${Z} { ${I.join(" ")} } }`}return y(Y,F),t(Y,F),F}catch(G){return console.warn("Failed to generate Crosswind CSS:",G),""}}async function _q(q,z){let G=await Gq(q,z);if(!G)return q;let O=`<style data-crosswind="generated">
|
|
@@ -7,4 +7,4 @@ ${G}
|
|
|
7
7
|
</style>`,V=/<style data-crosswind="generated">[\s\S]*?<\/style>/g;if(V.test(q)){let X=!1;return q.replace(V,()=>{if(X)return"";return X=!0,O})}if(q.includes("</head>"))return q.replace("</head>",`${O}
|
|
8
8
|
</head>`);if(q.includes("<body"))return q.replace(/<body([^>]*)>/,`<body$1>
|
|
9
9
|
${O}`);return O+q}
|
|
10
|
-
export{a as
|
|
10
|
+
export{a as Iw,Zq as Jw,$q as Kw,n as Lw,qq as Mw,Wq as Nw,Xq as Ow,zq as Pw,Gq as Qw,_q as Rw};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{matchRoute as v,Router as y}from"stx-router";import{findErrorPage as G,formatRoutes as H,generateRouteManifest as I,generateRouteTypes as J,matchRoute as K}from"stx-router";function A(f,j={}){return new y(f,j).routes}function C(f,j){let q=v(f,j);return q?q.params:null}
|
|
3
|
-
export{A as
|
|
3
|
+
export{A as Gi,C as Hi,G as Ii,H as Ji,I as Ki,J as Li,K as Mi};
|
|
@@ -32,4 +32,4 @@ else {
|
|
|
32
32
|
`}function e(B){let E=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;B=B.replace(E,(G,K)=>{return`const { ${K.split(",").map((Q)=>Q.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
|
|
33
33
|
`});let F=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return B=B.replace(F,(G,K)=>{return`const { ${K.split(",").map((Q)=>Q.trim()).filter(Boolean).join(", ")} } = window.__composables
|
|
34
34
|
`}),B}function BB(B){if(typeof window>"u")return;let E=window;E.__STX_STORES__=E.__STX_STORES__||{};for(let[F,G]of Object.entries(B))E.__STX_STORES__[F]=G;window.dispatchEvent(new CustomEvent("stx:stores-ready",{detail:Object.keys(B)}))}
|
|
35
|
-
export{P as
|
|
35
|
+
export{P as tg,z as ug,w as vg,O as wg,y as xg,k as yg,V as zg,D as Ag,h as Bg,g as Cg,v as Dg,S as Eg,b as Fg,d as Gg,m as Hg,c as Ig,n as Jg,l as Kg,x as Lg,p as Mg,i as Ng,u as Og,o as Pg,a as Qg,s as Rg,r as Sg,t as Tg,e as Ug,BB as Vg};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gz as a}from"./chunk-gz5fmp3q.js";function i(t,o){if(t.serverDynamic[o]!==void 0)return String(t.serverDynamic[o]);let e=t.static[o];if(typeof e==="string")return e;return}function f(t,o,e){let r=i(t,o);if(r!==void 0){let n=Number.parseInt(r,10);if(!Number.isNaN(n))return n}return e}var s={"top-right":"top:1rem;right:1rem","top-left":"top:1rem;left:1rem","top-center":"top:1rem;left:50%;transform:translateX(-50%)","bottom-right":"bottom:1rem;right:1rem","bottom-left":"bottom:1rem;left:1rem","bottom-center":"bottom:1rem;left:50%;transform:translateX(-50%)"},p={name:"StxToast",aliases:["stx-toast"],render(t,o,e){let r=a(i(t,"position")||"top-right"),n=f(t,"max",5),m=s[r]||s["top-right"];return`<div id="stx-toast-container" data-stx-toast-position="${r}" data-stx-toast-max="${n}" style="position:fixed;${m};z-index:999999;display:flex;flex-direction:column;gap:0.5rem;pointer-events:none;max-width:24rem;width:100%"></div>
|
|
3
3
|
<style>
|
|
4
4
|
@keyframes stx-toast-in{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
|
|
5
5
|
@keyframes stx-toast-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}
|
|
@@ -8,4 +8,4 @@ import{aC as a}from"./chunk-hkjq64we.js";function i(t,o){if(t.serverDynamic[o]!=
|
|
|
8
8
|
@keyframes stx-toast-in-center{from{opacity:0;transform:translateY(-1rem)}to{opacity:1;transform:translateY(0)}}
|
|
9
9
|
@keyframes stx-toast-out-center{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-1rem)}}
|
|
10
10
|
</style>`}};
|
|
11
|
-
export{p as
|
|
11
|
+
export{p as $y};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function q(g){return g.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function L(g){if(g.clientReactive.to)return{value:g.clientReactive.to,reactive:!0};if(g.serverDynamic.to!==void 0)return{value:String(g.serverDynamic.to),reactive:!1};if(typeof g.static.to==="string")return{value:g.static.to,reactive:!1};return{value:"#",reactive:!1}}var O={name:"StxLink",aliases:["stx-link"],render(g,G,M){let z=L(g),E=(typeof g.static.class==="string"?g.static.class:"")||(typeof g.static.className==="string"?g.static.className:""),H=typeof g.static.activeClass==="string"?g.static.activeClass:"active",I=typeof g.static.exactActiveClass==="string"?g.static.exactActiveClass:"exact-active",J=g.static.prefetch===!0||g.static.prefetch==="true"||g.serverDynamic.prefetch===!0,j=[];if(z.reactive)j.push(`:href="${q(z.value)}"`);else j.push(`href="${q(z.value)}"`);if(E)j.push(`class="${q(E)}"`);if(j.push("data-stx-link"),j.push(`data-stx-active-class="${q(H)}"`),j.push(`data-stx-exact-active-class="${q(I)}"`),J)j.push("data-stx-prefetch");let K=new Set(["to","class","className","activeClass","exactActiveClass","prefetch"]);for(let[B,D]of Object.entries(g.static)){if(K.has(B))continue;if(typeof D==="boolean"){if(D)j.push(q(B))}else j.push(`${q(B)}="${q(D)}"`)}return`<a ${j.join(" ")}>${G}</a>`}};
|
|
3
|
-
export{O as
|
|
3
|
+
export{O as Yy};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var E=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),N=new Set(["html","head","body","p","li","dt","dd","rt","rp","option","optgroup","thead","tbody","tfoot","tr","td","th","colgroup","caption"]);function H(W){return W.replace(/[^\n]/g," ")}function R(W){let J=W.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,H).replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,H).replace(/<!--[\s\S]*?-->/g,H).replace(/\{\{\{[\s\S]*?\}\}\}/g,H).replace(/\{\{[\s\S]*?\}\}/g,H).replace(/\{!![\s\S]*?!!\}/g,H).replace(/"[^"]*"/g,H).replace(/'[^']*'/g,H),F=new Map,M=new Map,Y=/<(\/?)([A-Za-z][\w-]*)\b[^>]*?(\/?)>/g,z;while((z=Y.exec(J))!==null){let j=z[1]==="/",q=z[2],X=z[3]==="/";if(E.has(q.toLowerCase()))continue;if(X)continue;if(j)M.set(q,(M.get(q)??0)+1);else{let Z=F.get(q);if(Z)Z.count++;else{let B=J.slice(0,z.index).split(`
|
|
3
3
|
`).length;F.set(q,{count:1,firstLine:B})}}}let Q=[];for(let j of new Set([...F.keys(),...M.keys()])){if(N.has(j.toLowerCase()))continue;let q=F.get(j)?.count??0,X=M.get(j)??0;if(q!==X)Q.push({tag:j,opened:q,closed:X,firstOpenLine:F.get(j)?.firstLine??0})}return Q}var $=new Set;function U(W,J){let F;try{F=R(W)}catch{return}if(F.length===0)return;let M=`${J}:${W.length}`;if($.has(M))return;$.add(M);let Y=J?J.split(/[/\\]/).pop()||J:"template";for(let{tag:z,opened:Q,closed:j,firstOpenLine:q}of F)if(Q>j){let X=q?` (first opened at line ${q})`:"";console.warn(`[stx] ${Y}: <${z}> ${Q} opened, ${j} closed \u2014 an unclosed <${z}>${X} may swallow the content that follows it.`)}else console.warn(`[stx] ${Y}: <${z}> ${Q} opened, ${j} closed \u2014 ${j-Q} stray </${z}>.`)}
|
|
4
|
-
export{R as
|
|
4
|
+
export{R as rt,U as st};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function E(j,...A){for(let z of A){if(j.serverDynamic[z]!==void 0)return String(j.serverDynamic[z]);let w=j.static[z];if(typeof w==="string")return w}return}function G(j,A){let z=new RegExp(`<(template|div|span)[^>]*\\bslot=["']${A}["'][^>]*>([\\s\\S]*?)<\\/\\1>`,"i"),w=j.match(z);if(!w)return{region:null,rest:j};return{region:w[2],rest:j.replace(w[0],"")}}var L={name:"Suspense",aliases:["suspense"],render(j,A,z){let w=G(A,"fallback"),H=w.rest,B=G(H,"error"),I=B.rest,J=w.region??E(j,"fallback")??'<div class="stx-suspense-loading">Loading\u2026</div>',K=B.region??E(j,"errorFallback","error-fallback")??'<div class="stx-suspense-error">Something went wrong.</div>';return`<div data-stx-suspense><div data-stx-suspense-fallback>${J}</div><div data-stx-suspense-error hidden>${K}</div><div data-stx-suspense-content hidden>${I}</div></div>`}};
|
|
3
|
-
export{L as
|
|
3
|
+
export{L as _y};
|
|
@@ -230,4 +230,4 @@ function Y(A){if(!A)return[];if(Array.isArray(A))return A;return Object.entries(
|
|
|
230
230
|
</div>
|
|
231
231
|
</div>
|
|
232
232
|
`}function F(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
233
|
-
export{R as
|
|
233
|
+
export{R as db,Z as eb,$ as fb,j as gb,y as hb,B as ib,D as jb,E as kb,G as lb,J as mb,M as nb,k as ob,N as pb};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{k as
|
|
2
|
+
import{tb as G}from"./chunk-e2q9c5vq.js";import{zb as F}from"./chunk-dvfs1h3c.js";import{Jb as E}from"./chunk-kypas8vy.js";import{pB as J}from"./chunk-xv34zbp4.js";var k={story:{description:"Component showcase and testing",options:{port:{alias:"p",type:"number",description:"Server port (default: 6006)"},open:{alias:"o",type:"boolean",description:"Open browser automatically"},host:{type:"string",description:"Host to bind to"}},action:async(j)=>{await E(j)}},"story:dev":{description:"Start story development server",options:{port:{alias:"p",type:"number",description:"Server port (default: 6006)"},open:{alias:"o",type:"boolean",description:"Open browser automatically"},host:{type:"string",description:"Host to bind to"}},action:async(j)=>{await E(j)}},"story:build":{description:"Build static story site",options:{outDir:{alias:"o",type:"string",description:"Output directory"}},action:async(j)=>{await F(j)}},"story:preview":{description:"Preview built story site",options:{port:{alias:"p",type:"number",description:"Server port (default: 4173)"},open:{alias:"o",type:"boolean",description:"Open browser automatically"}},action:async(j)=>{await G(j)}},"story:test":{description:"Run visual regression tests",options:{update:{alias:"u",type:"boolean",description:"Update snapshots"},filter:{alias:"f",type:"string",description:"Filter components by name"}},action:async(j)=>{let{createContext:B}=await import("./story/context.js"),{runVisualTests:q,updateSnapshots:A,formatTestResults:z}=await import("./story/testing.js"),H=await B({mode:"build"});if(j.update){let D=await A(H,{filter:j.filter?[j.filter]:void 0});console.log(`Updated ${D} snapshots`)}else{let D=await q(H,{filter:j.filter?[j.filter]:void 0});if(console.log(z(D)),D.failed>0)process.exit(1)}}}};function O(j){j.command("story",k.story.description).option("-p, --port <port>",k.story.options.port.description).option("-o, --open",k.story.options.open.description).option("--host <host>",k.story.options.host.description).action(k.story.action),j.command("story dev",k["story:dev"].description).option("-p, --port <port>",k["story:dev"].options.port.description).option("-o, --open",k["story:dev"].options.open.description).option("--host <host>",k["story:dev"].options.host.description).action(k["story:dev"].action),j.command("story build",k["story:build"].description).option("-o, --outDir <dir>",k["story:build"].options.outDir.description).action(k["story:build"].action),j.command("story preview",k["story:preview"].description).option("-p, --port <port>",k["story:preview"].options.port.description).option("-o, --open",k["story:preview"].options.open.description).action(k["story:preview"].action),j.command("story test",k["story:test"].description).option("-u, --update",k["story:test"].options.update.description).option("-f, --filter <name>",k["story:test"].options.filter.description).action(k["story:test"].action)}async function Q(j=process.argv.slice(2)){let B=j[0]||"dev",q={};for(let A=1;A<j.length;A++){let z=j[A];if(z==="-p"||z==="--port")q.port=Number.parseInt(j[++A],10);else if(z==="-o"||z==="--open")q.open=!0;else if(z==="--host")q.host=j[++A];else if(z==="-u"||z==="--update")q.update=!0;else if(z==="-f"||z==="--filter")q.filter=j[++A];else if(z==="--outDir")q.outDir=j[++A]}switch(B){case"dev":case"":await E(q);break;case"build":await F(q);break;case"preview":await G(q);break;case"test":await k["story:test"].action(q);break;default:console.log("Unknown command:",B),console.log("Available commands: dev, build, preview, test"),process.exit(1)}}
|
|
3
|
+
export{k as qb,O as rb,Q as sb};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import J from"fs";import F from"path";function V(z){try{return J.statSync(z).mtimeMs}catch{return null}}function Q(z,B){let j=Math.max(0,Math.round((B-z)/1000));if(j<60)return`${j}s ago`;if(j<3600)return`${Math.round(j/60)}m ago`;return`${Math.round(j/3600)}h ago`}function X(z,B){try{return globalThis.Bun?.resolveSync(z,B)??null}catch{return null}}function Y(z,B="stx"){let j=F.resolve(z);for(let A=0;A<10;A++){let q=F.join(j,"pantry","@stacksjs",B);if(J.existsSync(q))return q;let K=F.dirname(j);if(K===j)break;j=K}return null}async function $(z={}){let B=z.cwd?F.resolve(z.cwd):process.cwd(),j=z.resolve??X,A=Date.now(),q=[],K=j("@stacksjs/stx",B);q.push(K?{name:"@stacksjs/stx resolves to",status:"ok",detail:K}:{name:"@stacksjs/stx resolves to",status:"info",detail:"not resolvable from here (running inside the stx repo, or not installed)"});let T=j("bun-plugin-stx",B);if(T)q.push({name:"bun-plugin-stx resolves to",status:"ok",detail:T});let C=Y(B,"stx");if(!C)q.push({name:"pantry",status:"info",detail:"no pantry/@stacksjs/stx found \u2014 standard install (nothing to rebuild)"});else{let H=F.join(C,"src/signals.ts"),I=[F.join(C,"dist/index.js"),F.join(C,"dist/signals.js")].find((G)=>J.existsSync(G))||null,L=V(H),N=I?V(I):null;if(L==null)q.push({name:"pantry dist freshness",status:"info",detail:`found pantry at ${C} but no src/signals.ts to compare`});else if(N==null)q.push({name:"pantry dist freshness",status:"error",detail:"pantry has src but no built dist \u2014 the dev server will resolve nothing (or a stale copy elsewhere)",fix:`cd ${C} && bun build.ts`});else if(N<L){let G=Math.round((L-N)/1000);q.push({name:"pantry dist freshness",status:"error",detail:`dist (${Q(N,A)}) is OLDER than src/signals.ts (${Q(L,A)}) by ${G}s \u2014 your edit isn't built`,fix:`cd ${C} && bun build.ts`})}else q.push({name:"pantry dist freshness",status:"ok",detail:`dist rebuilt after src (src ${Q(L,A)}, dist ${Q(N,A)})`});let U=F.join(B,"node_modules/@stacksjs/stx"),O=null;try{O=J.lstatSync(U)}catch{O=null}if(!O)q.push({name:"node_modules \u2192 pantry",status:"info",detail:"node_modules/@stacksjs/stx not present (not installed here)"});else if(O.isSymbolicLink()){let G=null;try{G=J.realpathSync(U)}catch{}let W=(()=>{try{return J.realpathSync(C)}catch{return C}})();q.push(G===W?{name:"node_modules \u2192 pantry",status:"ok",detail:"symlinked to pantry"}:{name:"node_modules \u2192 pantry",status:"warn",detail:`symlinked to ${G||"(dangling)"}, not pantry`})}else q.push({name:"node_modules \u2192 pantry",status:"warn",detail:"is a real directory, NOT symlinked to pantry \u2014 edits to pantry src/dist won't be resolved",fix:"rm -rf node_modules/@stacksjs/stx && ln -s ../../pantry/@stacksjs/stx node_modules/@stacksjs/stx"})}if(q.push({name:"dev runtime cache",status:"info",detail:"cleared automatically on source edits by the dev watcher (clearDevCaches, #1745 item C)"}),z.generateRuntime)try{let I=z.generateRuntime().length;q.push(I>1000?{name:"signals runtime",status:"ok",detail:`generated ${I.toLocaleString()} chars`}:{name:"signals runtime",status:"warn",detail:`generated only ${I} chars \u2014 suspiciously short`})}catch(H){q.push({name:"signals runtime",status:"error",detail:`failed to generate: ${H.message}`})}return{checks:q,ok:!q.some((H)=>H.status==="error")}}function b(z){let B={ok:"\u2713",warn:"\u26A0",error:"\u2717",info:"\xB7"},j=["stx runtime resolution:"];for(let A of z.checks)if(j.push(` ${B[A.status]} ${A.name}: ${A.detail}`),A.fix)j.push(` \u2192 ${A.fix}`);return j.push(""),j.push(z.ok?"\u2713 All framework-runtime layers are aligned.":"\u2717 A runtime layer is stale \u2014 see the fixes above."),j.join(`
|
|
3
3
|
`)}
|
|
4
|
-
export{Y as
|
|
4
|
+
export{Y as pn,$ as qn,b as rn};
|
|
@@ -216,4 +216,4 @@ else {
|
|
|
216
216
|
color: white;
|
|
217
217
|
}
|
|
218
218
|
`.trim();return{html:J,script:L,css:M}}function P(q){return q.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}
|
|
219
|
-
export{Y as
|
|
219
|
+
export{Y as Kj,Z as Lj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function z(j){return j.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function B(j,F){if(j.serverDynamic[F]!==void 0)return String(j.serverDynamic[F]);let G=j.static[F];if(typeof G==="string")return G;return}var $="<script>window.__stxSafeImageHandler||(window.__stxSafeImageHandler=function(i){if(i.__stx_fb)return;i.__stx_fb=1;var f=i.getAttribute('data-fallback')||'/images/safe-image-default.svg';var c=i.getAttribute('data-fallback-class');i.src=f;if(c)i.className=c;});</script>",w={name:"SafeImage",aliases:["safe-image","safe-img"],render(j,F,G){let W=B(j,"src")||"",X=B(j,"alt")||"",Y=B(j,"fallback")||"/images/safe-image-default.svg",O=B(j,"class")||B(j,"className")||"",Q=B(j,"fallbackClassName")||"",q=[];if(q.push(`src="${z(W)}"`),q.push(`alt="${z(X)}"`),O)q.push(`class="${z(O)}"`);if(q.push(`data-fallback="${z(Y)}"`),Q)q.push(`data-fallback-class="${z(Q)}"`);q.push('onerror="window.__stxSafeImageHandler(this)"');let Z=new Set(["src","alt","fallback","class","className","fallbackClassName"]);for(let[J,K]of Object.entries(j.static)){if(Z.has(J))continue;if(typeof K==="boolean"){if(K)q.push(z(J))}else q.push(`${z(J)}="${z(K)}"`)}let U=`<img ${q.join(" ")} />`,V=G.context;if(!V.__safeImageHandlerEmitted)return V.__safeImageHandlerEmitted=!0,`${$}${U}`;return U}};
|
|
3
|
-
export{w as
|
|
3
|
+
export{w as hz};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var Z=Symbol.for("stx.Fragment"),R=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),V=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),I={className:"class",htmlFor:"for",tabIndex:"tabindex",autoFocus:"autofocus",autoPlay:"autoplay",crossOrigin:"crossorigin",dateTime:"datetime",encType:"enctype",formAction:"formaction",formEncType:"formenctype",formMethod:"formmethod",formNoValidate:"formnovalidate",formTarget:"formtarget",frameBorder:"frameborder",hrefLang:"hreflang",httpEquiv:"http-equiv",inputMode:"inputmode",maxLength:"maxlength",mediaGroup:"mediagroup",minLength:"minlength",noModule:"nomodule",noValidate:"novalidate",playsInline:"playsinline",readOnly:"readonly",rowSpan:"rowspan",colSpan:"colspan",srcDoc:"srcdoc",srcLang:"srclang",srcSet:"srcset",useMap:"usemap"};function D(q){return q.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function J(q){return q.replace(/&/g,"&").replace(/"/g,""")}function f(q){if(q==null||typeof q==="boolean")return[];if(!Array.isArray(q))return[B(q)];return q.flat(1/0).map(B).filter((w)=>w!=="")}function B(q){if(q==null||typeof q==="boolean")return"";if(typeof q==="string")return q;if(typeof q==="number")return String(q);return q}function $(q,w,K){let{children:G,ref:Q,key:U,...X}=w||{};return{type:q,props:Object.keys(X).length>0?X:null,children:f(G),key:K??U??void 0,ref:Q??void 0}}var j=$,E=$;function z(q){return Object.entries(q).filter(([,w])=>w!=null&&w!==!1).map(([w,K])=>{let G=w.replace(/[A-Z]/g,(U)=>`-${U.toLowerCase()}`),Q=typeof K==="number"&&!G.startsWith("--")&&G!=="opacity"&&G!=="z-index"&&G!=="flex-grow"&&G!=="flex-shrink"&&G!=="order"&&G!=="font-weight"&&G!=="line-height"?`${K}px`:String(K);return`${G}: ${Q}`}).join("; ")}function W(q){if(typeof q==="string")return q;if(Array.isArray(q))return q.filter(Boolean).map(W).join(" ");if(typeof q==="object"&&q!==null)return Object.entries(q).filter(([,w])=>w).map(([w])=>w).join(" ");return""}function F(q){if(!q)return"";let w=[];for(let[K,G]of Object.entries(q)){if(K==="key"||K==="ref"||K==="children"||K==="innerHTML"||K==="dangerouslySetInnerHTML")continue;if(K.startsWith("on")&&typeof G==="function")continue;let Q=I[K]||K;if(Q==="class"||Q==="className"){let U=W(G);if(U)w.push(` class="${J(U)}"`);continue}if(Q==="style"){let U=typeof G==="string"?G:z(G);if(U)w.push(` style="${J(U)}"`);continue}if(V.has(Q)){if(G)w.push(` ${Q}`);continue}if(G!=null&&G!==!1)w.push(` ${Q}="${J(String(G))}"`)}return w.join("")}function Y(q){if(q==null||typeof q==="boolean")return"";if(typeof q==="string")return D(q);if(typeof q==="number")return String(q);if(Array.isArray(q))return q.map(Y).join("");if(q.type===Z)return q.children.map(Y).join("");if(typeof q.type==="function"){let U=q.type({...q.props,children:q.children.length===1?q.children[0]:q.children.length>0?q.children:void 0});return Y(U)}let w=q.type,K=F(q.props),G=q.props?.innerHTML??q.props?.dangerouslySetInnerHTML?.__html;if(G!=null)return`<${w}${K}>${G}</${w}>`;if(R.has(w))return`<${w}${K}>`;let Q=q.children.map(Y).join("");return`<${w}${K}>${Q}</${w}>`}function H(q){return new ReadableStream({start(w){w.enqueue(Y(q)),w.close()}})}function _(q,w){if(!w)return;for(let[K,G]of Object.entries(w)){if(K==="key"||K==="ref"||K==="children"||K==="innerHTML"||K==="dangerouslySetInnerHTML")continue;let Q=I[K]||K;if(K.startsWith("on")&&typeof G==="function"){let U=K.slice(2).toLowerCase();q.addEventListener(U,G);continue}if(Q==="class"||Q==="className"){let U=W(G);if(U)q.setAttribute("class",U);continue}if(Q==="style"){let U=typeof G==="string"?G:z(G);if(U)q.setAttribute("style",U);continue}if(V.has(Q)){if(G)q.setAttribute(Q,"");continue}if(G!=null&&G!==!1)q.setAttribute(Q,String(G))}}function b(q,w){if(q==null||typeof q==="boolean")return;if(typeof q==="string"){w.appendChild(document.createTextNode(q));return}if(typeof q==="number"){w.appendChild(document.createTextNode(String(q)));return}if(Array.isArray(q)){for(let Q of q)b(Q,w);return}if(q.type===Z){for(let Q of q.children)b(Q,w);return}if(typeof q.type==="function"){let Q=q.type({...q.props,children:q.children.length===1?q.children[0]:q.children.length>0?q.children:void 0});b(Q,w);return}let K=document.createElement(q.type);_(K,q.props);let G=q.props?.innerHTML??q.props?.dangerouslySetInnerHTML?.__html;if(G!=null)K.innerHTML=G;else for(let Q of q.children)b(Q,K);if(q.ref){if(typeof q.ref==="function")q.ref(K)}w.appendChild(K)}function C(q){if(q.when)return $(Z,{children:q.children});return q.fallback??null}function L(q){let w=q.each;if(!w||w.length===0)return q.fallback??null;let K=Array.isArray(q.children)?q.children[0]:q.children,G=w.map((Q,U)=>K(Q,U));return $(Z,{children:G})}function M(q){return $(Z,{children:q.children})}function P(q,w,...K){let{key:G,ref:Q,...U}=w||{};return{type:q,props:Object.keys(U).length>0?U:{},children:f(K.length===1?K[0]:K),key:G??void 0,ref:Q??void 0}}
|
|
3
|
-
export{Z as
|
|
3
|
+
export{Z as El,$ as Fl,j as Gl,E as Hl,Y as Il,H as Jl,b as Kl,C as Ll,L as Ml,M as Nl,P as Ol};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function D(j){return j}class F{plugins=new Map;sortedPlugins=[];initialized=!1;async register(j,q){if(this.plugins.has(j.name))throw Error(`Plugin "${j.name}" is already registered`);if(j.dependencies){for(let w of j.dependencies)if(!this.plugins.has(w))throw Error(`Plugin "${j.name}" depends on "${w}" which is not registered`)}if(this.plugins.set(j.name,j),j.onRegister)await j.onRegister(q);this.sortPlugins()}async unregister(j){let q=this.plugins.get(j);if(!q)return!1;for(let[w,z]of this.plugins)if(z.dependencies?.includes(j))throw Error(`Cannot unregister "${j}" because "${w}" depends on it`);if(q.onUnregister)await q.onUnregister();return this.plugins.delete(j),this.sortPlugins(),!0}get(j){return this.plugins.get(j)}has(j){return this.plugins.has(j)}getAll(){return[...this.sortedPlugins]}getAllDirectives(){let j=[];for(let q of this.sortedPlugins)if(q.registerDirectives)j.push(...q.registerDirectives());return j}getAllFilters(){let j={};for(let q of this.sortedPlugins)if(q.registerFilters)Object.assign(j,q.registerFilters());return j}async runBeforeProcess(j){return this.runHooks("beforeProcess",j)}async runAfterParse(j){return this.runHooks("afterParse",j)}async runBeforeDirective(j,q){return this.runDirectiveHooks("beforeDirective",j,q)}async runAfterDirective(j,q){return this.runDirectiveHooks("afterDirective",j,q)}async runBeforeRender(j){return this.runHooks("beforeRender",j)}async runAfterRender(j){return this.runHooks("afterRender",j)}async runOnError(j){for(let q of this.sortedPlugins)if(q.onError)try{let w=await q.onError(j);if(w){if(w.template!==void 0)j.template=w.template;if(w.context)j.context={...j.context,...w.context};if(w.metadata)j.metadata={...j.metadata,...w.metadata};if(w.skip)return j}}catch(w){console.error(`Error in plugin "${q.name}" onError hook:`,w)}return null}sortPlugins(){this.sortedPlugins=Array.from(this.plugins.values()).sort((j,q)=>(j.priority??100)-(q.priority??100))}async runHooks(j,q){let w={...q};for(let z of this.sortedPlugins){let B=z[j];if(B)try{let y=await B(w);if(y){if(y.template!==void 0)w.template=y.template;if(y.context)w.context={...w.context,...y.context};if(y.metadata)w.metadata={...w.metadata,...y.metadata};if(y.skip)break}}catch(y){console.error(`Error in plugin "${z.name}" ${j} hook:`,y)}}return w}async runDirectiveHooks(j,q,w){let z={...w};for(let B of this.sortedPlugins){let y=B[j];if(y)try{let A=await y(q,z);if(A){if(A.template!==void 0)z.template=A.template;if(A.context)z.context={...z.context,...A.context};if(A.metadata)z.metadata={...z.metadata,...A.metadata};if(A.skip)break}}catch(A){console.error(`Error in plugin "${B.name}" ${j} hook:`,A)}}return z}}var G=new F;function H(j,q,w={}){return{name:j,...w,registerDirectives:()=>q}}function I(j,q,w={}){return{name:j,...w,registerFilters:()=>q}}var J=D({name:"stx-debug",version:"1.0.0",description:"Logs all plugin lifecycle events for debugging",priority:0,beforeProcess(j){console.log("[stx-debug] beforeProcess:",j.filePath)},afterParse(j){console.log("[stx-debug] afterParse:",j.template.length,"chars")},beforeDirective(j,q){console.log("[stx-debug] beforeDirective:",j)},afterDirective(j,q){console.log("[stx-debug] afterDirective:",j)},beforeRender(j){console.log("[stx-debug] beforeRender")},afterRender(j){console.log("[stx-debug] afterRender:",j.template.length,"chars")},onError(j){console.error("[stx-debug] onError:",j.error.message,"in phase:",j.phase)}}),K=D({name:"stx-timing",version:"1.0.0",description:"Measures template processing time",priority:1,beforeProcess(j){j.metadata.startTime=performance.now()},afterRender(j){let q=j.metadata.startTime;if(q){let w=performance.now()-q;console.log(`[stx-timing] Processing took ${w.toFixed(2)}ms`)}}});function L(j){return D({name:"stx-variables",version:"1.0.0",description:"Adds predefined variables to template context",beforeProcess(q){return{context:{...q.context,...j}}}})}
|
|
3
|
-
export{D as
|
|
3
|
+
export{D as oj,F as pj,G as qj,H as rj,I as sj,J as tj,K as uj,L as vj};
|
|
@@ -42,4 +42,4 @@ catch (e) {
|
|
|
42
42
|
return result;
|
|
43
43
|
// eslint-disable-next-line pickier/no-unused-vars
|
|
44
44
|
`)}
|
|
45
|
-
export{g as
|
|
45
|
+
export{g as kz,C as lz,b as mz,z as nz,T as oz,P as pz,y as qz,E as rz,m as sz,u as tz,f as uz,h as vz,l as wz,S as xz,d as yz};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{b as
|
|
2
|
+
import{wy as T}from"./chunk-yb1t2h8h.js";import{qz as j,vz as O}from"./chunk-w3b6m427.js";function b(z,H){let X=z,F=/@json\s*\(/g,Y;while((Y=F.exec(X))!==null){let J=Y.index,v=J+Y[0].length-1,K=1,q=v+1,w=null,U=!1;while(q<X.length&&K>0){let G=X[q];if(U){U=!1,q++;continue}if(G==="\\"&&w){U=!0,q++;continue}if(w){if(G===w)w=null;q++;continue}if(G==='"'||G==="'"||G==="`"){w=G,q++;continue}if(G==="(")K++;else if(G===")"){if(K--,K===0)break}q++}if(K!==0)break;let V=X.substring(v+1,q).trim(),_=X.substring(J,q+1),W=-1,Z=0,$=null,R=!1;for(let G=0;G<V.length;G++){let B=V[G];if(R){R=!1;continue}if(B==="\\"&&$){R=!0;continue}if($){if(B===$)$=null;continue}if(B==='"'||B==="'"||B==="`"){$=B;continue}if(B==="("||B==="["||B==="{")Z++;else if(B===")"||B==="]"||B==="}")Z--;if(B===","&&Z===0){W=G;break}}let A=W>=0?V.substring(0,W).trim():V,L=W>=0?V.substring(W+1).trim():void 0;try{let G=A.trim(),B;if(j(G))B=O(G,Object.keys(H))(...Object.values(H));else B=void 0;let y;if(L==="true")y=JSON.stringify(B,null,2);else y=JSON.stringify(B);let N=y.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");X=X.substring(0,J)+N+X.substring(q+1),F.lastIndex=J+N.length}catch(G){T.log(G instanceof Error?G:Error(String(G)),{directive:"@json"},"error"),F.lastIndex=J+_.length}}return X}function S(z){return z.replace(/@once\s*([\s\S]*?)@endonce/g,"$1")}function x(z){let H=z,X=/@memo\s*\(/g,F,Y=[];while((F=X.exec(H))!==null){let J=F.index,v=J+F[0].length,K=1,q=v;while(q<H.length&&K>0){if(H[q]==="(")K++;else if(H[q]===")")K--;q++}if(K!==0)continue;let w=H.slice(v,q-1).trim(),U=q,V=H.slice(U),_=V.indexOf("@endmemo");if(_===-1)continue;let W=V.slice(0,_),Z=U+_+8,$=W.match(/^(\s*(?:(?:<!--[\s\S]*?-->|\x00STX_HTML_COMMENT_\d+\x00)\s*)*)/),R=$?$[0].length:0,A=W.slice(R),L=W.match(/(\s*)$/),G=L?L[0].length:0,B=A.slice(0,A.length-G),y=B.match(/^<([a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*?)?(\/?)>/),N;if(y){let[P,D,E="",Q]=y,k=`<${D}${E} data-stx-memo="${w}"${Q}>`;N=W.slice(0,R)+k+B.slice(P.length)+W.slice(R+B.length)}else N=`${W.slice(0,R)}<div data-stx-memo="${w}">${B}</div>${W.slice(R+B.length)}`;Y.push({start:J,end:Z,replacement:N}),X.lastIndex=Z}for(let J=Y.length-1;J>=0;J--){let v=Y[J];H=H.slice(0,v.start)+v.replacement+H.slice(v.end)}return H.replace(/@memo="([^"]*)"/g,'data-stx-memo="$1"')}function I(z){let H=z.replace(/@ref="([^"]+)"/g,'data-stx-ref="$1"');return H=H.replace(/(<[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?)\sref="([^"]+)"/g,'$1 data-stx-ref="$2"'),H}function u(z){let X=new RegExp("<(div|span|p|h[1-6]|td|th|li|a|button|label|section|article|header|footer|main|nav|aside|dd|dt|figcaption|summary|caption|blockquote|pre|code|em|strong|small|sub|sup|time|mark|abbr|cite|q|s|u|b|i)\\b","gi"),F="",Y=0,J;while((J=X.exec(z))!==null){let v=J.index,K=v+J[0].length,q=!1,w=!1,U=-1;while(K<z.length){let $=z[K];if(q){if($==="'")q=!1}else if(w){if($==='"')w=!1}else if($==="'")q=!0;else if($==='"')w=!0;else if($===">"){U=K;break}K++}if(U===-1)continue;if(z.slice(v,U+1).includes("x-cloak"))continue;let _=z.slice(U+1),W=_.indexOf("</"),Z=W>=0?_.slice(0,W):_.slice(0,200);if(/\{\{[\s\S]*?\}\}/.test(Z))F+=z.slice(Y,U)+" x-cloak>",Y=U+1}return F+=z.slice(Y),F}var M=/(?:^|\s)(?::else-if|:if|:else|:show|x-else-if|x-if|x-else|x-show|@if|@show)(?:=|\s|\/|>|$)/;function m(z){let H=/<[a-z][\w-]*/gi,X="",F=0,Y;while((Y=H.exec(z))!==null){let J=Y.index,v=Y[0].slice(1).toLowerCase();if(v==="script"||v==="style"){let Z=`</${v}>`,$=z.toLowerCase().indexOf(Z,J);if($!==-1)H.lastIndex=$+Z.length;continue}let K=J+Y[0].length,q=!1,w=!1,U=-1;while(K<z.length){let Z=z[K];if(q){if(Z==="'")q=!1}else if(w){if(Z==='"')w=!1}else if(Z==="'")q=!0;else if(Z==='"')w=!0;else if(Z===">"){U=K;break}K++}if(U===-1)continue;let V=z.slice(J+Y[0].length,U);if(/(?:^|\s)x-cloak(?:=|\s|\/|>|$)/.test(V))continue;if(!M.test(V))continue;let _=z[U-1]==="/",W=_?U-1:U;X+=`${z.slice(F,W)} x-cloak${_?" ":""}`,F=W}return X+=z.slice(F),X}
|
|
3
|
+
export{b as iu,S as ju,x as ku,I as lu,u as mu,m as nu};
|
|
@@ -135,4 +135,4 @@ function A(h,j,f){let x=z(h,j);return{type:h,message:j,suggestions:x,...f}}funct
|
|
|
135
135
|
})();
|
|
136
136
|
</script>
|
|
137
137
|
`}function k(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
138
|
-
export{A as
|
|
138
|
+
export{A as Ea,B as Fa,D as Ga,F as Ha,G as Ia};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var X={enabled:!0,widths:[320,640,768,1024,1280,1536,1920],formats:["webp","jpeg"],quality:80,devOptimize:!1,cacheDir:".stx/image-cache",placeholder:"none",inputDirs:["public","src/assets","assets"],outputDir:"dist/images",baseUrl:"/images"};
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as $l};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{gz as i}from"./chunk-gz5fmp3q.js";function r(e,t){if(e.serverDynamic[t]!==void 0)return String(e.serverDynamic[t]);let a=e.static[t];if(typeof a==="string")return a;return}var o={sm:"16rem",md:"24rem",lg:"32rem",xl:"40rem"},v={name:"StxDrawer",aliases:["stx-drawer"],render(e,t,a){let n=r(e,"id");if(!n)return console.warn('[stx] <StxDrawer> requires an "id" prop'),"<!-- StxDrawer: missing id prop -->";let d=i(n),l=r(e,"side")||"right",c=r(e,"size")||"md",p=r(e,"closeOnBackdrop")!=="false",w=r(e,"closeOnEscape")!=="false",f=r(e,"overlay")!=="false",x=o[c]||o.md,s=l==="left",m=s?"left:0":"right:0",g=s?"translateX(-100%)":"translateX(100%)",u=s?"stx-drawer-slide-left":"stx-drawer-slide-right";return`<div id="stx-drawer-${d}" class="stx-drawer-backdrop" data-stx-drawer="${d}" data-close-backdrop="${p}" data-close-escape="${w}" style="display:none;position:fixed;inset:0;z-index:99999;${f?"background:rgba(0,0,0,0.5);backdrop-filter:blur(2px)":"background:transparent;pointer-events:none"};opacity:0;transition:opacity 0.2s ease" role="dialog" aria-modal="true">
|
|
3
3
|
<div class="stx-drawer-panel" style="position:fixed;top:0;bottom:0;${m};width:${x};max-width:100vw;transform:${g};transition:transform 0.3s cubic-bezier(0.4,0,0.2,1);background:var(--stx-drawer-bg,#fff);color:var(--stx-drawer-text,#1f2937);box-shadow:0 20px 60px rgba(0,0,0,0.3);overflow-y:auto;pointer-events:auto">
|
|
4
4
|
<div style="padding:1.5rem">${t}</div>
|
|
5
5
|
</div>
|
|
@@ -9,4 +9,4 @@ import{aC as i}from"./chunk-hkjq64we.js";function r(e,t){if(e.serverDynamic[t]!=
|
|
|
9
9
|
.stx-drawer-backdrop[data-stx-drawer-open]{display:block!important;opacity:1}
|
|
10
10
|
.stx-drawer-backdrop[data-stx-drawer-open] .stx-drawer-panel{transform:translateX(0)}
|
|
11
11
|
</style>`}};
|
|
12
|
-
export{v as
|
|
12
|
+
export{v as cz};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{pB as T}from"./chunk-xv34zbp4.js";import W from"fs";import F from"path";async function x(j,N={}){let Z=performance.now(),{update:q=!1,threshold:$=0.1,snapshotDir:X=F.join(j.root,".stx","story","snapshots"),width:K=800,height:b=600,deviceScaleFactor:O=1,filter:A}=N,J={total:0,passed:0,failed:0,new:0,failures:[],duration:0};await W.promises.mkdir(X,{recursive:!0});let _;try{_=await import("very-happy-dom")}catch{return console.warn("very-happy-dom not installed, using fallback HTML comparison"),v(j,N)}let{HtmlRenderer:Y,ImageDiff:M}=_,k=new Y,C=new M,R=A?j.storyFiles.filter((Q)=>A.some((U)=>Q.fileName.includes(U))):j.storyFiles;for(let Q of R){let U=Q.story?.variants||[{id:"default",title:"Default",state:{}}];for(let B of U){J.total++;let V=F.join(X,`${Q.fileName}-${B.id}.png`),g=F.join(X,`${Q.fileName}-${B.id}.actual.png`),w=F.join(X,`${Q.fileName}-${B.id}.diff.png`);try{let G=await H(j,Q,B.id),I=await k.render(G,{width:K,height:b,deviceScaleFactor:O,format:"png"}),z=await D(V);if(q||!z){if(await W.promises.writeFile(V,I.data),!z)J.new++;J.passed++}else{let P=await W.promises.readFile(V),L=await C.compare(P,I.data,{threshold:$});if(L.match)J.passed++,await E(g),await E(w);else{if(J.failed++,await W.promises.writeFile(g,I.data),L.diffImage)await W.promises.writeFile(w,L.diffImage);J.failures.push({storyId:Q.id,variantId:B.id,component:Q.fileName,message:`Visual difference: ${L.diffPercentage.toFixed(2)}% pixels differ`,baselinePath:V,actualPath:g,diffPath:w,diffPercentage:L.diffPercentage})}}}catch(G){J.failed++,J.failures.push({storyId:Q.id,variantId:B.id,component:Q.fileName,message:G instanceof Error?G.message:String(G)})}}}return J.duration=performance.now()-Z,J}async function v(j,N){let Z=performance.now(),{update:q=!1,snapshotDir:$=F.join(j.root,".stx","story","snapshots"),filter:X}=N,K={total:0,passed:0,failed:0,new:0,failures:[],duration:0};await W.promises.mkdir($,{recursive:!0});let b=X?j.storyFiles.filter((O)=>X.some((A)=>O.fileName.includes(A))):j.storyFiles;for(let O of b){let A=O.story?.variants||[{id:"default",title:"Default",state:{}}];for(let J of A){K.total++;let _=F.join($,`${O.fileName}-${J.id}.html`);try{let Y=await H(j,O,J.id),M=await D(_);if(q||!M){if(await W.promises.writeFile(_,Y),!M)K.new++;K.passed++}else{let k=await W.promises.readFile(_,"utf-8"),C=S(k),R=S(Y);if(C===R)K.passed++;else K.failed++,K.failures.push({storyId:O.id,variantId:J.id,component:O.fileName,message:"HTML content differs from baseline",baselinePath:_})}}catch(Y){K.failed++,K.failures.push({storyId:O.id,variantId:J.id,component:O.fileName,message:Y instanceof Error?Y.message:String(Y)})}}}return K.duration=performance.now()-Z,K}async function H(j,N,Z){try{let{renderStoryVariant:q,generatePreviewDocument:$}=await import("./story/renderer.js"),X=await q(j,N,Z);return $(X,{title:N.fileName})}catch{let q=await W.promises.readFile(N.path,"utf-8");return`<!DOCTYPE html><html><head><title>${N.fileName}</title></head><body>${q}</body></html>`}}function S(j){return j.replace(/\s+/g," ").replace(/>\s+</g,"><").trim()}async function D(j){try{return await W.promises.access(j),!0}catch{return!1}}async function E(j){try{await W.promises.unlink(j)}catch{}}function y(j){let N=j.failed>0?"failed":"passed",Z=j.failures.map((q)=>`
|
|
3
3
|
<tr class="failure-row">
|
|
4
4
|
<td>${q.component}</td>
|
|
5
5
|
<td>${q.variantId}</td>
|
|
@@ -78,4 +78,4 @@ import{jE as T}from"./chunk-6r70w54p.js";import W from"fs";import F from"path";a
|
|
|
78
78
|
`:""}
|
|
79
79
|
</body>
|
|
80
80
|
</html>`}
|
|
81
|
-
export{x as
|
|
81
|
+
export{x as F,y as G};
|
|
@@ -124,4 +124,4 @@ import A from"fs";function G(q,w,j="source"){return`
|
|
|
124
124
|
window.open('vscode://file/${q}', '_blank');
|
|
125
125
|
};
|
|
126
126
|
`}function D(q){return q.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
127
|
-
export{G as
|
|
127
|
+
export{G as a,I as b,J as c,K as d,Q as e,B as f,R as g,U as h,W as i};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{xw as y}from"./chunk-h5jxydqq.js";import{pB as a}from"./chunk-xv34zbp4.js";function v(){return y({name:"video",hasEndTag:!1,description:"Render a video with optional ts-videos processing, streaming, and poster generation",transform:async(j,B,q,K)=>{let{src:Q,options:J}=d(j,B,q);if(!Q)return console.warn("@video directive: missing src argument"),"<!-- @video: missing src -->";let G={src:Q,poster:J.poster,controls:J.controls!==!1,autoplay:J.autoplay||!1,muted:J.muted||!1,loop:J.loop||!1,preload:J.preload||"metadata",playsinline:J.playsinline!==!1,lazy:J.lazy!==!1,player:J.player||"native",type:J.type,width:J.width,height:J.height,class:J.class,style:J.style,id:J.id,crossorigin:J.crossorigin,disablePictureInPicture:J.disablePictureInPicture,disableRemotePlayback:J.disableRemotePlayback,title:J.title,quality:J.quality,platform:J.platform,process:J.process,generatePoster:J.generatePoster,streaming:J.streaming,transcode:J.transcode,spriteSheet:J.spriteSheet,waveform:J.waveform},X={isDev:q.__isDev||!1,tsVideosConfig:q.__tsVideosConfig},Z=await b(G,X),k=Z.html;if(Z.css)k+=`
|
|
3
3
|
<style>${Z.css}</style>`;if(Z.script)k+=`
|
|
4
4
|
<script>${Z.script}</script>`;return k},defaults:{src:"",options:{controls:!0,lazy:!0,preload:"metadata"}}})}function d(j,B,q){if(B.src)return{src:String(B.src),options:B.options||{}};let K=j.trim();if(K.startsWith("@video(")||K.startsWith("("))K=K.replace(/^@video\(/,"").replace(/^\(/,"").replace(/\)$/,"");let Q=i(K),J=A(Q[0],q)||"",G={};if(Q[1]){let H=A(Q[1],q);if(typeof H==="object"&&H!==null)G=H;else if(typeof Q[1]==="string")try{G=JSON.parse(Q[1])}catch{}}return{src:J,options:G}}function i(j){let B=[],q="",K=!1,Q="",J=0,G=0;for(let H=0;H<j.length;H++){let X=j[H],Z=H>0?j[H-1]:"";if((X==='"'||X==="'"||X==="`")&&Z!=="\\"){if(!K)K=!0,Q=X;else if(X===Q)K=!1,Q="";else q+=X;continue}if(!K){if(X==="{")J++;if(X==="}")J--;if(X==="[")G++;if(X==="]")G--;if(X===","&&J===0&&G===0){B.push(q.trim()),q="";continue}}q+=X}if(q.trim())B.push(q.trim());return B}function A(j,B){if(typeof j!=="string")return j;let q=j.trim();if(q.startsWith('"')&&q.endsWith('"')||q.startsWith("'")&&q.endsWith("'"))return q.slice(1,-1);if(!q.startsWith("/")&&!q.startsWith(".")&&!q.startsWith("http")&&!q.startsWith("{")){let K=B[q];if(K!==void 0)return K}if(q.startsWith("{")||q.startsWith("["))try{return JSON.parse(q)}catch{}return q}var c=v();async function g(){try{return await import("./media/video/processor/index.js")}catch(j){if(!x)console.warn("[stx-media] Video processor not available, some features disabled:",j),x=!0;return null}}var x=!1,h=!0,u="metadata",p="https://cdn.jsdelivr.net/npm/ts-video-player@latest/dist/index.min.js";async function b(j,B={}){let q=B,K=j;if(K.process&&!K.skipProcessing){if(q.tsVideosConfig?.enabled&&!q.isDev)return e(K,q)}if(q.processedResult?.processed)return l(j,q.processedResult,B);let Q;if(K.generatePoster&&K.src&&!j.poster)Q=await jj(K,q);let{src:J,sources:G=[],poster:H,posterPlaceholder:X,controls:Z=h,autoplay:k=!1,muted:N=!1,loop:F=!1,preload:f=u,playsinline:O=!0,lazy:_=!0,player:R="native",type:w,width:W,height:z,crossorigin:U,disablePictureInPicture:E=!1,disableRemotePlayback:M=!1}=j,L=Q||H,D=j.class,P=j.style,C=j.id||`stx-video-${Math.random().toString(36).slice(2,8)}`;if(R==="ts-video")return t(j,B);if(w&&w!=="video")return o(J||"",w,j);let I=G.length>0?G:J?[{src:J,type:m(J)}]:[],$=[`id="${C}"`];if(Z)$.push("controls");if(k)$.push("autoplay");if(N)$.push("muted");if(F)$.push("loop");if(O)$.push("playsinline");if(E)$.push("disablepictureinpicture");if(M)$.push("disableremoteplayback");if(U)$.push(`crossorigin="${U}"`);if(_){if($.push(`data-preload="${f}"`),$.push('preload="none"'),L)$.push(`data-poster="${Y(L)}"`);$.push("data-stx-lazy")}else if($.push(`preload="${f}"`),L)$.push(`poster="${Y(L)}"`);if(W)$.push(`width="${W}"`);if(z)$.push(`height="${z}"`);if(D)$.push(`class="${Y(D)}"`);if(P)$.push(`style="${Y(P)}"`);let T=I.map((V)=>{return` <source ${_?`data-src="${Y(V.src)}"`:`src="${Y(V.src)}"`} type="${V.type}"${V.media?` media="${V.media}"`:""} />`}).join(`
|
|
5
5
|
`),n=`<video ${$.join(" ")}>
|
|
@@ -259,4 +259,4 @@ ${I}
|
|
|
259
259
|
height: auto;
|
|
260
260
|
}
|
|
261
261
|
`.trim();return{html:I,script:$,css:T}}
|
|
262
|
-
export{b as
|
|
262
|
+
export{b as ou,Qj as pu,v as qu,c as ru};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function V(j){return j.type==="Document"}function S(j){return j.type==="Text"}function b(j){return j.type==="Expression"}function $(j){return j.type==="Directive"}function B(j){return j.type==="Component"}function q(j){return j.type==="Element"}function y(j){return j.type==="Attribute"}function C(j){return j.type==="Comment"}function v(j){return j.type==="Script"}function g(j){return j.type==="Style"}function E(j=[],z){return{type:"Document",children:j,loc:z}}function M(j,z){return{type:"Text",value:j,loc:z}}function F(j,z=!0,G){let H=z?`{{ ${j} }}`:`{!! ${j} !!}`;return{type:"Expression",expression:j,escaped:z,raw:H,loc:G}}function D(j,z=null,G=null,H){let I=G===null,J=`@${j}`;if(z)J+=`(${z})`;return{type:"Directive",name:j,params:z,body:G,selfClosing:I,raw:J,loc:H}}function P(j,z=[],G=[],H=!1,I){return{type:"Component",name:j,attributes:z,children:G,selfClosing:H,loc:I}}function T(j,z=[],G=[],H){let J=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]).has(j.toLowerCase());return{type:"Element",tag:j,attributes:z,children:J?[]:G,selfClosing:J||G.length===0,void:J,loc:H}}function w(j,z=null,G){return{type:"Attribute",name:j,value:z,dynamic:z!==null&&typeof z!=="string",loc:G}}function Z(j,z="html",G){return{type:"Comment",value:j,style:z,loc:G}}function k(j,z=[],G){return{type:"Script",content:j,attributes:z,loc:G}}function A(j,z=[],G=!1,H){return{type:"Style",content:j,attributes:z,scoped:G,loc:H}}function O(j,z,G=null){if(j.parent=G??void 0,z.enter){if(z.enter(j,G)===!1)return}let H=z[j.type];if(H&&typeof H==="object"&&"enter"in H){let J=H.enter;if(J(j)===!1)return}let I=x(j);for(let J of I)O(J,z,j);if(H&&typeof H==="object"&&"leave"in H){let J=H.leave;J(j)}if(z.leave)z.leave(j,G)}function x(j){switch(j.type){case"Document":return j.children;case"Directive":return j.body||[];case"Component":return[...j.attributes,...j.children];case"Element":return[...j.attributes,...j.children];case"Script":case"Style":return j.attributes;default:return[]}}function W(j){let z={...j};if("children"in z&&Array.isArray(z.children))z.children=z.children.map((G)=>W(G));if("body"in z&&Array.isArray(z.body))z.body=z.body.map((G)=>W(G));if("attributes"in z&&Array.isArray(z.attributes))z.attributes=z.attributes.map((G)=>W(G));return delete z.parent,z}function u(j,z,G){O(j,{enter(H){let I=_(H);if(I){let J=I.indexOf(z);if(J!==-1){let L=Array.isArray(G)?G:[G];I.splice(J,1,...L)}}}})}function h(j,z){O(j,{enter(G){let H=_(G);if(H){let I=H.indexOf(z);if(I!==-1)H.splice(I,1)}}})}function _(j){if("children"in j&&Array.isArray(j.children))return j.children;if("body"in j&&Array.isArray(j.body))return j.body;return null}function R(j,z){let G=[];return O(j,{enter(H){if(z(H))G.push(H)}}),G}function f(j,z){return R(j,(G)=>G.type===z)}function m(j,z){return R(j,(G)=>$(G)&&G.name===z)}function p(j,z){return R(j,(G)=>B(G)&&G.name===z)}function c(j,z){return R(j,(G)=>q(G)&&G.tag.toLowerCase()===z.toLowerCase())}function s(j){return f(j,"Expression")}function l(j){let z=new Set;return O(j,{Directive:{enter(G){z.add(G.name)}}}),z}function i(j){let z=new Set;return O(j,{Component:{enter(G){z.add(G.name)}}}),z}function K(j){switch(j.type){case"Document":return j.children.map((z)=>K(z)).join("");case"Text":return j.value;case"Expression":return j.raw;case"Directive":if(j.selfClosing)return j.raw;else{let z=j.body?.map((G)=>K(G)).join("")||"";return`${j.raw}${z}@end${j.name}`}case"Component":{let z=j.attributes.map((H)=>K(H)).join(" "),G=z?` ${z}`:"";if(j.selfClosing)return`<${j.name}${G} />`;else{let H=j.children.map((I)=>K(I)).join("");return`<${j.name}${G}>${H}</${j.name}>`}}case"Element":{let z=j.attributes.map((H)=>K(H)).join(" "),G=z?` ${z}`:"";if(j.void)return`<${j.tag}${G}>`;else if(j.selfClosing&&j.children.length===0)return`<${j.tag}${G} />`;else{let H=j.children.map((I)=>K(I)).join("");return`<${j.tag}${G}>${H}</${j.tag}>`}}case"Attribute":if(j.value===null)return j.name;else if(typeof j.value==="string")return`${j.name}="${j.value}"`;else return`${j.name}="${K(j.value)}"`;case"Comment":if(j.style==="stx")return`{{-- ${j.value} --}}`;else return`<!-- ${j.value} -->`;case"Script":{let z=j.attributes.map((H)=>K(H)).join(" ");return`<script${z?` ${z}`:""}>${j.content}</script>`}case"Style":{let z=j.attributes.map((I)=>K(I)).join(" "),G=z?` ${z}`:"",H=j.scoped&&!G.includes("scoped")?" scoped":"";return`<style${G}${H}>${j.content}</style>`}default:return""}}class N{source="";pos=0;line=1;column=0;filePath;parse(j,z){this.source=j,this.pos=0,this.line=1,this.column=0,this.filePath=z;let G=this.parseChildren();return E(G,{start:{line:1,column:0},end:{line:this.line,column:this.column},source:this.filePath})}parseChildren(j){let z=[];while(this.pos<this.source.length){if(j&&j.test(this.source.slice(this.pos)))break;let G=this.parseNext();if(G)z.push(G);else break}return z}parseNext(){if(this.pos>=this.source.length)return null;let j=this.source.slice(this.pos);if(j.startsWith("{{--"))return this.parseStxComment();if(j.startsWith("{{"))return this.parseExpression(!0);if(j.startsWith("{!!"))return this.parseExpression(!1);if(j.match(/^@[a-z]/i))return this.parseDirective();if(j.startsWith("<!--"))return this.parseHtmlComment();if(j.match(/^<script/i))return this.parseScript();if(j.match(/^<style/i))return this.parseStyle();if(j.startsWith("<")&&!j.startsWith("</"))return this.parseTag();return this.parseText()}parseText(){let j=this.getPosition(),z="";while(this.pos<this.source.length){let G=this.source[this.pos],H=this.source.slice(this.pos);if(H.startsWith("{{")||H.startsWith("{!!")||H.match(/^@[a-z]/i)||H.startsWith("<"))break;z+=G,this.advance()}if(z.length===0)return null;return M(z,{start:j,end:this.getPosition(),source:this.filePath})}parseExpression(j){let z=this.getPosition(),G=j?"{{":"{!!",H=j?"}}":"!!}";this.advance(G.length);let I="";while(this.pos<this.source.length){if(this.source.slice(this.pos).startsWith(H))break;I+=this.source[this.pos],this.advance()}return this.advance(H.length),F(I.trim(),j,{start:z,end:this.getPosition(),source:this.filePath})}parseDirective(){let j=this.getPosition();this.advance();let z="";while(this.pos<this.source.length&&/[a-z]/i.test(this.source[this.pos]))z+=this.source[this.pos],this.advance();let G=null;if(this.source[this.pos]==="(")G=this.parseParenthesized();let H=new Set(["if","unless","isset","empty","auth","guest","env","foreach","for","forelse","while","switch","section","push","prepend","once","component","slot","verbatim","php","js","ts"]),I=null;if(H.has(z)){let J=new RegExp(`^@end${z}\\b`);I=this.parseChildren(J);let L=this.source.slice(this.pos).match(J);if(L)this.advance(L[0].length)}return D(z,G,I,{start:j,end:this.getPosition(),source:this.filePath})}parseParenthesized(){let j="",z=0;while(this.pos<this.source.length){let G=this.source[this.pos];if(G==="("){if(z++,z>1)j+=G}else if(G===")"){if(z--,z===0){this.advance();break}j+=G}else if(z>0)j+=G;this.advance()}return j}parseStxComment(){let j=this.getPosition();this.advance(4);let z="";while(this.pos<this.source.length){if(this.source.slice(this.pos).startsWith("--}}"))break;z+=this.source[this.pos],this.advance()}return this.advance(4),Z(z.trim(),"stx",{start:j,end:this.getPosition(),source:this.filePath})}parseHtmlComment(){let j=this.getPosition();this.advance(4);let z="";while(this.pos<this.source.length){if(this.source.slice(this.pos).startsWith("-->"))break;z+=this.source[this.pos],this.advance()}return this.advance(3),Z(z.trim(),"html",{start:j,end:this.getPosition(),source:this.filePath})}parseTag(){let j=this.getPosition();this.advance();let z="";while(this.pos<this.source.length&&/[a-z0-9-]/i.test(this.source[this.pos]))z+=this.source[this.pos],this.advance();let G=this.parseAttributes();this.skipWhitespace();let H=this.source.slice(this.pos).startsWith("/>");if(H)this.advance(2);else this.advance();let I=/^[A-Z]/.test(z),L=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]).has(z.toLowerCase()),U=[];if(!H&&!L){let Q=new RegExp(`^</${z}>`,"i");U=this.parseChildren(Q);let Y=this.source.slice(this.pos).match(Q);if(Y)this.advance(Y[0].length)}let X={start:j,end:this.getPosition(),source:this.filePath};if(I)return P(z,G,U,H,X);else{let Q=T(z,G,U,X);return Q.selfClosing=H||L,Q}}parseAttributes(){let j=[];while(this.pos<this.source.length){if(this.skipWhitespace(),this.source[this.pos]===">"||this.source.slice(this.pos).startsWith("/>"))break;let z=this.parseAttribute();if(z)j.push(z)}return j}parseAttribute(){let j=this.getPosition(),z="";while(this.pos<this.source.length&&/[a-z0-9-:@.]/i.test(this.source[this.pos]))z+=this.source[this.pos],this.advance();if(!z)return null;let G=null;if(this.skipWhitespace(),this.source[this.pos]==="="){this.advance(),this.skipWhitespace();let H=this.source[this.pos];if(H==='"'||H==="'"){this.advance();let I="";while(this.pos<this.source.length&&this.source[this.pos]!==H)I+=this.source[this.pos],this.advance();if(this.advance(),I.includes("{{")||I.includes("{!!"))G=I;else G=I}}return w(z,G,{start:j,end:this.getPosition(),source:this.filePath})}parseScript(){let j=this.getPosition();this.advance(7);let z=this.parseAttributes();this.skipWhitespace(),this.advance();let G="";while(this.pos<this.source.length){if(this.source.slice(this.pos).match(/^<\/script>/i))break;G+=this.source[this.pos],this.advance()}return this.advance(9),k(G,z,{start:j,end:this.getPosition(),source:this.filePath})}parseStyle(){let j=this.getPosition();this.advance(6);let z=this.parseAttributes(),G=z.some((I)=>I.name==="scoped");this.skipWhitespace(),this.advance();let H="";while(this.pos<this.source.length){if(this.source.slice(this.pos).match(/^<\/style>/i))break;H+=this.source[this.pos],this.advance()}return this.advance(8),A(H,z,G,{start:j,end:this.getPosition(),source:this.filePath})}advance(j=1){for(let z=0;z<j&&this.pos<this.source.length;z++){if(this.source[this.pos]===`
|
|
3
3
|
`)this.line++,this.column=0;else this.column++;this.pos++}}skipWhitespace(){while(this.pos<this.source.length&&/\s/.test(this.source[this.pos]))this.advance()}getPosition(){return{line:this.line,column:this.column}}}
|
|
4
|
-
export{V as
|
|
4
|
+
export{V as FA,S as GA,b as HA,$ as IA,B as JA,q as KA,y as LA,C as MA,v as NA,g as OA,E as PA,M as QA,F as RA,D as SA,P as TA,T as UA,w as VA,Z as WA,k as XA,A as YA,O as ZA,x as _A,W as $A,u as aB,h as bB,R as cB,f as dB,m as eB,p as fB,c as gB,s as hB,l as iB,i as jB,K as kB,N as lB};
|
|
@@ -1163,4 +1163,4 @@ else if (data.type === 'event' && data.method) {
|
|
|
1163
1163
|
})();
|
|
1164
1164
|
</script>
|
|
1165
1165
|
`,generateCraftBridgeScript:F,processCraftDirective:H,injectCraftBridge:I,isCraftEnvironment:G},N=J;
|
|
1166
|
-
export{L as
|
|
1166
|
+
export{L as Vo,F as Wo,G as Xo,H as Yo,I as Zo,N as _o};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Sw as z}from"./chunk-0dx4q6yq.js";import{pB as R}from"./chunk-xv34zbp4.js";var X={title:"stx Development",width:1400,height:900,darkMode:!0,hotReload:!0,titlebarHidden:!1,nativeSidebar:!1,sidebarWidth:260,sidebarConfig:void 0};async function Q(){try{let x=await import("@stacksjs/desktop");if(typeof x.openDevWindow!=="function")return null;return x}catch{return null}}async function $(x,J={}){let q={...X,...J},B=await Q();if(!B)return console.log(`${z.yellow}\u26A0${z.reset} Native window requested, but @stacksjs/desktop is not available.`),console.log(" Install & build the desktop package to enable --native."),!1;try{let w=await B.openDevWindow(x,{title:q.title,width:q.width,height:q.height,darkMode:q.darkMode,hotReload:q.hotReload,titlebarHidden:q.titlebarHidden,nativeSidebar:q.nativeSidebar,sidebarWidth:q.sidebarWidth,sidebarConfig:q.sidebarConfig});if(w&&q.nativeSidebar)console.log(`${z.green}\u2713${z.reset} Native sidebar enabled (macOS Tahoe style)`);return w}catch(w){return console.log(`${z.red}\u2717${z.reset} Could not open native window:`,w),!1}}async function y(){return await Q()!==null}function G(x){if(x.match(/<Sidebar[\s\S]*?variant=["'](?:tahoe|vibrancy|desktop)["'][\s\S]*?\/>/i)){let w=x.match(/<script\s+server[^>]*>([\s\S]*?)<\/script>/i);if(w){let K=w[1];try{let H=`
|
|
3
3
|
${K}
|
|
4
4
|
return typeof sidebarConfig !== 'undefined' ? sidebarConfig : null;
|
|
5
5
|
`,P=Function(H)();if(P)return P}catch(H){console.warn("Invalid sidebarConfig:",H)}}return{sections:[]}}let q=x.match(/@nativeSidebar\s*\(\s*(\{[\s\S]*?\})\s*\)/m);if(q)try{return JSON.parse(q[1])}catch{console.warn("Invalid @nativeSidebar configuration")}let B=x.match(/<script\s+native-sidebar[^>]*>([\s\S]*?)<\/script>/i);if(B)try{let w=B[1].match(/(?:export\s+(?:default\s+)?|const\s+\w+\s*=\s*)(\{[\s\S]*\})/m);if(w)return Function(`return ${w[1]}`)()}catch(w){console.warn("Invalid native-sidebar script configuration:",w)}return}
|
|
6
|
-
export{X as
|
|
6
|
+
export{X as eo,$ as fo,y as go,G as ho};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Dp as H,Fp as $}from"./chunk-55nwdnsd.js";function A(q,U){switch(U.format){case"json":return J(q,U);case"markdown":return O(q,U);case"text":default:return K(q,U)}}function J(q,U){let j=x(q,U);return JSON.stringify({timestamp:q.timestamp,buildDir:q.buildDir,summary:{totalSize:q.totalSize,totalSizeFormatted:H(q.totalSize),totalGzipSize:q.totalGzipSize,totalGzipSizeFormatted:H(q.totalGzipSize),moduleCount:q.moduleCount,chunkCount:q.chunks.length,duplicateCount:q.duplicates.length},byType:Object.fromEntries(Object.entries(q.byType).map(([Q,Y])=>[Q,{...Y,sizeFormatted:H(Y.size),gzipSizeFormatted:H(Y.gzipSize)}])),chunks:q.chunks.map((Q)=>({name:Q.name,size:Q.size,sizeFormatted:H(Q.size),gzipSize:Q.gzipSize,gzipSizeFormatted:H(Q.gzipSize),moduleCount:Q.modules.length,isEntry:Q.isEntry,isVendor:Q.isVendor})),largestModules:q.largestModules.slice(0,U.topModules||10).map((Q)=>({path:Q.path,size:Q.size,sizeFormatted:H(Q.size),gzipSize:Q.gzipSize,gzipSizeFormatted:H(Q.gzipSize),type:Q.type})),duplicates:q.duplicates,analysis:j,warnings:q.warnings},null,2)}function K(q,U){let j=[],Q=U.showGzip!==!1;if(j.push(""),j.push("Bundle Analysis Report"),j.push("\u2550".repeat(50)),j.push(""),j.push("Summary"),j.push("\u2500".repeat(50)),Q)j.push(`Total Size: ${H(q.totalSize)} (${H(q.totalGzipSize)} gzip)`);else j.push(`Total Size: ${H(q.totalSize)}`);if(j.push(`Modules: ${q.moduleCount}`),j.push(`Chunks: ${q.chunks.length}`),q.duplicates.length>0)j.push(`Duplicates: ${q.duplicates.length}`);if(j.push(""),U.threshold&&q.totalSize>U.threshold)j.push(`\u26A0\uFE0F Bundle exceeds threshold of ${H(U.threshold)}!`),j.push("");j.push("Size by Type"),j.push("\u2500".repeat(50));let Y=["js","css","html","image","font","other"];for(let D of Y){let F=q.byType[D];if(F.count>0){let X=$(F.size,q.totalSize),Z=Q?` (${H(F.gzipSize)} gzip)`:"";j.push(` ${D.padEnd(8)} ${H(F.size).padStart(12)}${Z} ${X.padStart(6)} (${F.count} files)`)}}j.push(""),j.push("Chunks"),j.push("\u2500".repeat(50));for(let D of q.chunks.slice(0,10)){let F=[];if(D.isEntry)F.push("entry");if(D.isVendor)F.push("vendor");let X=F.length>0?` [${F.join(", ")}]`:"",Z=Q?` (${H(D.gzipSize)} gzip)`:"";j.push(` ${D.name.padEnd(20)} ${H(D.size).padStart(12)}${Z}${X}`)}if(q.chunks.length>10)j.push(` ... and ${q.chunks.length-10} more chunks`);j.push("");let V=U.topModules||10;j.push(`Largest Modules (Top ${V})`),j.push("\u2500".repeat(50));for(let D=0;D<Math.min(V,q.largestModules.length);D++){let F=q.largestModules[D],X=Q?` (${H(F.gzipSize)} gzip)`:"";j.push(` ${(D+1).toString().padStart(2)}. ${F.path}`),j.push(` ${H(F.size)}${X}`)}if(j.push(""),q.duplicates.length>0){j.push("Duplicate Modules"),j.push("\u2500".repeat(50));for(let D of q.duplicates.slice(0,5))j.push(` ${D.path}`),j.push(` ${D.count} copies, wasting ${H(D.wastedBytes)}`);if(q.duplicates.length>5)j.push(` ... and ${q.duplicates.length-5} more duplicates`);j.push("")}if(U.recommendations!==!1){let D=x(q,U);if(D.recommendations.length>0){j.push("Recommendations"),j.push("\u2500".repeat(50));for(let F of D.recommendations.slice(0,5)){let X=F.impact==="high"?"\u26A1":F.impact==="medium"?"\uD83D\uDCCA":"\uD83D\uDCA1";j.push(` ${X} ${F.title}`),j.push(` ${F.description}`)}j.push("")}}if(q.warnings.length>0){j.push("Warnings"),j.push("\u2500".repeat(50));for(let D of q.warnings)j.push(` \u26A0\uFE0F ${D}`);j.push("")}return j.join(`
|
|
3
3
|
`)}function O(q,U){let j=[],Q=U.showGzip!==!1;if(j.push("# Bundle Analysis Report"),j.push(""),j.push(`Generated: ${new Date(q.timestamp).toISOString()}`),j.push(""),j.push("## Summary"),j.push(""),j.push("| Metric | Value |"),j.push("|--------|-------|"),j.push(`| Total Size | ${H(q.totalSize)} |`),Q)j.push(`| Gzip Size | ${H(q.totalGzipSize)} |`);j.push(`| Modules | ${q.moduleCount} |`),j.push(`| Chunks | ${q.chunks.length} |`),j.push(`| Duplicates | ${q.duplicates.length} |`),j.push(""),j.push("## Size by Type"),j.push(""),j.push("| Type | Size | Gzip | % | Files |"),j.push("|------|------|------|---|-------|");let Y=["js","css","html","image","font","other"];for(let D of Y){let F=q.byType[D];if(F.count>0)j.push(`| ${D} | ${H(F.size)} | ${H(F.gzipSize)} | ${$(F.size,q.totalSize)} | ${F.count} |`)}j.push(""),j.push("## Chunks"),j.push(""),j.push("| Name | Size | Gzip | Modules | Type |"),j.push("|------|------|------|---------|------|");for(let D of q.chunks.slice(0,15)){let F=D.isEntry?"Entry":D.isVendor?"Vendor":"-";j.push(`| ${D.name} | ${H(D.size)} | ${H(D.gzipSize)} | ${D.modules.length} | ${F} |`)}j.push("");let V=U.topModules||10;j.push(`## Largest Modules (Top ${V})`),j.push(""),j.push("| # | Path | Size | Gzip |"),j.push("|---|------|------|------|");for(let D=0;D<Math.min(V,q.largestModules.length);D++){let F=q.largestModules[D];j.push(`| ${D+1} | \`${F.path}\` | ${H(F.size)} | ${H(F.gzipSize)} |`)}if(j.push(""),q.duplicates.length>0){j.push("## Duplicates"),j.push(""),j.push("| Path | Copies | Wasted |"),j.push("|------|--------|--------|");for(let D of q.duplicates.slice(0,10))j.push(`| \`${D.path}\` | ${D.count} | ${H(D.wastedBytes)} |`);j.push("")}if(U.recommendations!==!1){let D=x(q,U);if(D.recommendations.length>0){j.push("## Recommendations"),j.push("");for(let F of D.recommendations)j.push(`### ${F.title}`),j.push(""),j.push(F.description),j.push(""),j.push(`- **Impact:** ${F.impact}`),j.push(`- **Effort:** ${F.effort}`),j.push("")}}return j.join(`
|
|
4
4
|
`)}function x(q,U){let j=[],Q=[];if(U.threshold&&q.totalSize>U.threshold)j.push({severity:"error",message:`Bundle size (${H(q.totalSize)}) exceeds threshold (${H(U.threshold)})`});if(q.totalSize>1048576)j.push({severity:"warning",message:`Bundle is over 1MB (${H(q.totalSize)})`,details:"Large bundles can significantly impact load time"});if(q.duplicates.length>0){let F=q.duplicates.reduce((X,Z)=>X+Z.wastedBytes,0);j.push({severity:"warning",message:`${q.duplicates.length} duplicate modules found, wasting ${H(F)}`}),Q.push({title:"Remove Duplicate Modules",description:"Consider using import aliases or ensuring consistent package versions to eliminate duplicates.",impact:"medium",effort:"low"})}if(q.byType.js.size/q.totalSize>0.8&&q.totalSize>512000)Q.push({title:"Code Splitting",description:"Over 80% of your bundle is JavaScript. Consider splitting code by route or feature.",impact:"high",effort:"medium"});let V=q.largestModules.filter((F)=>F.size>102400);if(V.length>0){j.push({severity:"info",message:`${V.length} modules are over 100KB`});for(let F of V){if(F.path.includes("lodash")&&!F.path.includes("lodash-es"))Q.push({title:"Use lodash-es instead of lodash",description:"lodash-es supports tree-shaking and can significantly reduce bundle size.",impact:"high",effort:"low"});if(F.path.includes("moment"))Q.push({title:"Replace moment.js",description:"Consider using date-fns or dayjs for smaller date handling libraries.",impact:"high",effort:"medium"})}}if(q.byType.image.size>512000)Q.push({title:"Optimize Images",description:`Images account for ${H(q.byType.image.size)}. Consider using WebP/AVIF formats and responsive images.`,impact:"high",effort:"low"});let D=100;if(q.totalSize>1048576)D-=20;else if(q.totalSize>512000)D-=10;if(D-=Math.min(20,q.duplicates.length*2),D-=Math.min(15,V.length*3),U.threshold&&q.totalSize>U.threshold)D-=25;return{score:Math.max(0,D),issues:j,recommendations:Q}}var W={lodash:{alternative:"lodash-es or individual imports",savings:"~70%"},moment:{alternative:"date-fns or dayjs",savings:"~90%"},"chart.js":{alternative:"chart.js with tree-shaking",savings:"~50%"},"highlight.js":{alternative:"Selective language imports",savings:"~80%"},fontawesome:{alternative:"Individual icon imports",savings:"~90%"},"material-ui":{alternative:"Named imports from @mui/*",savings:"~60%"}};function E(q){for(let[U,j]of Object.entries(W))if(q.includes(U))return{title:`Optimize ${U}`,description:`Consider using ${j.alternative}. Potential savings: ${j.savings}`,impact:"high",effort:"low"};return null}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as xp,x as yp,E as zp};
|
|
@@ -2227,4 +2227,4 @@ var w={button:{nativeType:"craft-button",fallbackTag:"button",fallbackClasses:"c
|
|
|
2227
2227
|
})();
|
|
2228
2228
|
</script>
|
|
2229
2229
|
`,processCraftComponents:_,registerCraftComponent:A,getCraftComponents:P},S=g;
|
|
2230
|
-
export{w as
|
|
2230
|
+
export{w as Fo,N as Go,C as Ho,_ as Io,A as Jo,P as Ko,S as Lo};
|
|
@@ -193,4 +193,4 @@ else {
|
|
|
193
193
|
})();
|
|
194
194
|
</script>
|
|
195
195
|
`}function Q(j,k,B={}){let z=L(k,B),u=j.lastIndexOf("</body>");if(u!==-1)return j.slice(0,u)+z+j.slice(u);if(j.includes("</html>"))return j.replace("</html>",`${z}</html>`);return j+z}function T(j){let k=j.toLowerCase();return k.endsWith(".css")||k.endsWith(".scss")||k.endsWith(".sass")||k.endsWith(".less")}function U(j){let k=j.toLowerCase();return[".stx",".html",".htm",".md",".js",".ts",".jsx",".tsx",".json"].some((z)=>k.endsWith(z))}function V(j){return[/^\./,/node_modules/,/\.stx\/output/,/\.stx\/cache/,/~$/,/\.swp$/,/\.swo$/].some((B)=>B.test(j))}var E=null;function W(j){if(!E)E=new G(j);return E}function X(){if(E)E.stop(),E=null}
|
|
196
|
-
export{G as
|
|
196
|
+
export{G as hm,L as im,Q as jm,T as km,U as lm,V as mm,W as nm,X as om};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{defineProperty:e,getOwnPropertyNames:g,getOwnPropertyDescriptor:h}=Object,i=Object.prototype.hasOwnProperty;function j(a){return this[a]}var m=(a)=>{var b=(f??=new WeakMap).get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of g(a))if(!i.call(b,d))e(b,d,{get:j.bind(a,d),enumerable:!(c=h(a,d))||c.enumerable})}return f.set(a,b),b},f;var k=(a)=>a;function l(a,b){this[a]=k.bind(null,b)}var n=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:l.bind(b,c)})};var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var p=import.meta.require;
|
|
3
|
-
export{m as
|
|
3
|
+
export{m as mB,n as nB,o as oB,p as pB};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Go as b,Io as v}from"./chunk-xgkv66q5.js";import{Zo as V}from"./chunk-x24s4heg.js";import{pB as z}from"./chunk-xv34zbp4.js";import{existsSync as y,mkdirSync as _,copyFileSync as O,chmodSync as A}from"fs";import{join as H,basename as P}from"path";import{spawn as R,execSync as d}from"child_process";import{tmpdir as S,homedir as B,platform as N}from"os";async function D(K){let Q=Date.now();try{if(!await Bun.file(K.input).exists())return{success:!1,target:K.target||I(),format:K.format||"app",error:`Input file not found: ${K.input}`};let J=K.target||I(),$=K.format||f(J),U=K.output||H(process.cwd(),"dist","native");if(!y(U))_(U,{recursive:!0});let q=await Bun.file(K.input).text();if(q=V(q,{debug:K.verbose}),q=v(q),!q.includes("craft-component-styles")){if(q.includes("</head>"))q=q.replace("</head>",`${b}
|
|
3
3
|
</head>`)}let X=K.name||P(K.input,".stx"),Y=K.version||"1.0.0",Z=K.craftPath||await m();if(!Z)return{success:!1,target:J,format:$,error:"Craft binary not found. Please install Craft or specify craftPath."};if(K.verbose)console.log(`\uD83D\uDCE6 Building native app for ${J}...`),console.log(` Input: ${K.input}`),console.log(` Output: ${U}`),console.log(` Craft: ${Z}`);let G;switch(J){case"macos":G=await h(q,X,Y,U,$,K,Z);break;case"windows":G=await u(q,X,Y,U,$,K,Z);break;case"linux":G=await l(q,X,Y,U,$,K,Z);break;case"ios":G=await s(q,X,Y,U,K,Z);break;case"android":G=await g(q,X,Y,U,K,Z);break;default:G={success:!1,target:J,format:$,error:`Unsupported target: ${J}`}}return G.duration=Date.now()-Q,G}catch(J){return{success:!1,target:K.target||I(),format:K.format||"app",error:J.message,duration:Date.now()-Q}}}async function h(K,Q,J,$,U,q,X){let Y=q.bundleId||`com.stx.${Q.toLowerCase().replace(/[^a-z0-9]/g,"")}`,Z=H($,`${Q}.app`),G=H(Z,"Contents"),L=H(G,"MacOS"),W=H(G,"Resources");_(L,{recursive:!0}),_(W,{recursive:!0});let x=H(W,"index.html");await Bun.write(x,K);let E="";if(q.sidebar?.enabled&&q.sidebar?.config)E=H(W,"sidebar-config.json"),await Bun.write(E,JSON.stringify(q.sidebar.config));let T=q.sidebar?.enabled?`--native-sidebar --sidebar-width ${q.sidebar?.width||240} --sidebar-config "$(cat "$RESOURCES/sidebar-config.json")"`:"",M=`#!/bin/bash
|
|
4
4
|
DIR="$( cd "$( dirname "\${BASH_SOURCE[0]}" )" && pwd )"
|
|
5
5
|
RESOURCES="$DIR/../Resources"
|
|
@@ -87,4 +87,4 @@ Terminal=false
|
|
|
87
87
|
Categories=Utility;
|
|
88
88
|
Icon=${J.toLowerCase()}
|
|
89
89
|
`;z("fs").writeFileSync(H(X,`${J.toLowerCase()}.desktop`),E);let T=Buffer.from([137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,1,0,0,0,1,8,2,0,0,0,144,119,83,222,0,0,0,12,73,68,65,84,8,215,99,248,255,255,63,0,5,254,2,254,220,204,89,231,0,0,0,0,73,69,78,68,174,66,96,130]);if(z("fs").writeFileSync(H(X,`${J.toLowerCase()}.png`),T),$.icon&&y($.icon))O($.icon,H(X,`${J.toLowerCase()}.png`));let M=R("appimagetool",[X,Q],{env:{...process.env,ARCH:"x86_64"}});M.on("close",(w)=>{if(z("fs").rmSync(q,{recursive:!0,force:!0}),w===0)A(Q,493),U({success:!0});else U({success:!1,error:`appimagetool exited with code ${w}. Install from https://appimage.github.io/appimagetool/`})}),M.on("error",(w)=>{z("fs").rmSync(q,{recursive:!0,force:!0}),U({success:!1,error:`appimagetool not found: ${w.message}`})})}catch(q){U({success:!1,error:q.message})}})}function o(){return[I()]}function e(K){switch(K){case"macos":return["app","dmg","pkg"];case"windows":return["app","zip","msi"];case"linux":return["app","deb","rpm","appimage"];case"ios":return["ipa"];case"android":return["apk"];default:return["app"]}}var i={buildNative:D,getAvailableTargets:o,getAvailableFormats:e,detectPlatform:I},$q=i;
|
|
90
|
-
export{D as
|
|
90
|
+
export{D as xo,o as yo,e as zo,$q as Ao};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{py as U}from"./chunk-zen6ax1y.js";import{Ry as b}from"./chunk-27zsyhrd.js";import{uz as M}from"./chunk-w3b6m427.js";import{pB as y}from"./chunk-xv34zbp4.js";import T from"path";var E;async function v(){if(E!==void 0)return E;try{E=(await import("@stacksjs/ts-i18n")).loadLocale??null}catch{E=null}return E}var k={defaultLocale:"en",locale:"en",translationsDir:"translations",format:"yaml",fallbackToKey:!0,cache:!0},R={},N={},w={};function Rq(q){if(q)delete R[q];else for(let J of Object.keys(R))delete R[J]}function Yq(){let q=Object.entries(R).map(([J,H])=>({locale:J,loadedAt:new Date(H.loadedAt),keyCount:h(H.translations)}));return{size:Object.keys(R).length,locales:Object.keys(R),entries:q}}function h(q,J=0){for(let H of Object.values(q))if(J++,H&&typeof H==="object"&&!Array.isArray(H))J=h(H,J);return J}function g(q,J=0){if(J<=0)return!1;return Date.now()-q.loadedAt>J}function zq(q){if(R[q])return"loaded";return w[q]||"idle"}function Dq(q){return w[q]==="loading"}function Nq(q){return!!R[q]}async function d(q,J){let{locales:H,parallel:G=!0,priority:Q={},onLocaleLoaded:W,onComplete:X,onError:Z}=q,Y=G?H:[...H].sort((z,$)=>(Q[$]||0)-(Q[z]||0));if(G){let z=Y.map(async($)=>{try{await V($,J),W?.($)}catch(_){Z?.($,_ instanceof Error?_:Error(String(_)))}});await Promise.all(z)}else for(let z of Y)try{await V(z,J),W?.(z)}catch($){Z?.(z,$ instanceof Error?$:Error(String($)))}X?.()}function Aq(q,J){queueMicrotask(()=>{d(q,J).catch((H)=>{if(J.debug)console.error("Background preload error:",H)})})}async function V(q,J){if({...k,...J.i18n}.cache&&R[q]){let Q=R[q],W=J.i18n?.cacheMaxAge??0;if(!g(Q,W))return Q.translations}if(N[q]?.state==="loading")return N[q].promise;w[q]="loading";let G=O(q,J).then((Q)=>{return w[q]="loaded",delete N[q],Q}).catch((Q)=>{throw w[q]="error",N[q]={promise:G,state:"error",error:Q instanceof Error?Q:Error(String(Q))},Q});return N[q]={promise:G,state:"loading"},G}function u(q){return R[q]?.translations}async function wq(q,J){let H=u(q);if(H)return H;return V(q,J)}async function Fq(q,J){if(R[q])return R[q].translations;if(N[q]){if(J)return Promise.race([N[q].promise,new Promise((H,G)=>setTimeout(()=>G(Error(`Timeout waiting for locale: ${q}`)),J))]);return N[q].promise}throw Error(`Locale "${q}" is not loading. Call loadTranslationLazy first.`)}function Eq(){return Object.entries(w).filter(([q,J])=>J==="loading").map(([q])=>q)}function Pq(q){if(q)delete N[q],delete w[q];else{for(let J of Object.keys(N))delete N[J];for(let J of Object.keys(w))delete w[J]}}async function O(q,J){let H={...k,...J.i18n},G=T.isAbsolute(H.translationsDir)?H.translationsDir:T.resolve(J.root||process.cwd(),H.translationsDir);try{let Q=await v(),W=Q?await Q(q,{translationsDir:G,defaultLocale:H.defaultLocale,sources:n(H.format)}):await m(q,H,G);if(W===void 0){if(q!==H.defaultLocale)return O(H.defaultLocale,J);return{}}let X=W;if(H.cache)R[q]={translations:X,loadedAt:Date.now(),locale:q};return X}catch(Q){if(J.debug)console.error(`Error loading translation file for locale "${q}":`,Q);if(q!==H.defaultLocale)return O(H.defaultLocale,J);return{}}}async function m(q,J,H){let G=T.join(H,`${q}${p(J.format)}`);try{let Q=await import(G);return Q.default||Q}catch(Q){try{let W=await Bun.file(G).text();if(J.format==="yaml"||J.format==="yml")return c(W);if(J.format==="json")return JSON.parse(W);throw Q}catch{return}}}function p(q){switch(q){case"yaml":return".yaml";case"yml":return".yml";case"js":return".js";case"ts":return".ts";case"json":default:return".json"}}function c(q){let J={},H=q.split(`
|
|
3
3
|
`),G=[{obj:J,indent:-1}];for(let Q of H){let W=Q.replace(/#.*$/,"").trimEnd();if(!W.trim())continue;let X=W.search(/\S/);if(X===-1)continue;while(G.length>1&&G[G.length-1].indent>=X)G.pop();let Z=G[G.length-1].obj,Y=W.match(/^(\s*)(\S[^:]*):\s*(.*)$/);if(Y){let[,,z,$]=Y,_=z.trim(),B=$.trim();if(B==="")Z[_]={},G.push({obj:Z[_],indent:X});else Z[_]=i(B)}}return J}function i(q){if(q.startsWith("'")&&q.endsWith("'")||q.startsWith('"')&&q.endsWith('"'))return q.slice(1,-1);let J=q.toLowerCase();if(J==="true"||J==="yes")return!0;if(J==="false"||J==="no")return!1;if(J==="null"||J==="~")return null;let H=Number(q);if(!Number.isNaN(H)&&q!=="")return H;return q}function n(q){switch(q){case"yaml":case"yml":return["yaml"];case"js":case"ts":return["ts"];case"json":default:return["json"]}}async function s(q,J){return V(q,J)}function r(q,J){for(let H of q){let G=H.trim(),Q=G.match(/^\{(\d+)\}\s*(.*)$/);if(Q){let X=Number.parseInt(Q[1],10);if(J===X)return Q[2];continue}let W=G.match(/^\[(\d+),(\d+|\*)\]\s*(.*)$/);if(W){let X=Number.parseInt(W[1],10),Z=W[2]==="*"?Number.POSITIVE_INFINITY:Number.parseInt(W[2],10);if(J>=X&&J<=Z)return W[3];continue}}if(q.length===2)return J===1?q[0].trim():q[1].trim();if(J<q.length)return q[J].trim();return q[q.length-1].trim()}function l(q,J={}){return f(q,J)}function f(q,J){let H="",G=0;while(G<q.length)if(q[G]==="{"){let Q=t(q,G);if(Q===-1){H+=q[G],G++;continue}let W=q.slice(G+1,Q);H+=o(W,J),G=Q+1}else if(q[G]==="'"&&G+1<q.length)if(q[G+1]==="'")H+="'",G+=2;else if(q[G+1]==="{"||q[G+1]==="}")H+=q[G+1],G+=2;else H+=q[G],G++;else H+=q[G],G++;return H}function t(q,J){let H=0;for(let G=J;G<q.length;G++)if(q[G]==="{")H++;else if(q[G]==="}"){if(H--,H===0)return G}return-1}function o(q,J){let H=e(q);if(H.length===0)return`{${q}}`;let G=H[0].trim(),Q=J[G];if(H.length===1)return Q!==void 0?String(Q):`{${G}}`;switch(H[1].trim().toLowerCase()){case"plural":return a(Q,H.slice(2).join(","),J);case"select":return Gq(Q,H.slice(2).join(","));case"selectordinal":return Hq(Q,H.slice(2).join(","));case"number":return Qq(Q,H[2]?.trim());case"date":return Wq(Q,H[2]?.trim());case"time":return Xq(Q,H[2]?.trim());default:return Q!==void 0?String(Q):`{${q}}`}}function e(q){let J=[],H="",G=0;for(let Q=0;Q<q.length;Q++){let W=q[Q];if(W==="{")G++,H+=W;else if(W==="}")G--,H+=W;else if(W===","&&G===0)J.push(H),H="";else H+=W}if(H)J.push(H);return J}function a(q,J,H){let G=Number(q)||0,Q=S(J),W=`=${G}`;if(Q[W])return K(Q[W],G,H);let X=qq(G);if(Q[X])return K(Q[X],G,H);if(Q.other)return K(Q.other,G,H);return String(G)}function K(q,J,H){let G=q.replace(/#/g,String(J));return f(G,H)}function qq(q){let J=Math.abs(q),H=Math.floor(J),G=String(q).includes(".")?String(q).split(".")[1].length:0;if(H===1&&G===0)return"one";return"other"}function Gq(q,J){let H=String(q||""),G=S(J);if(G[H])return G[H];return G.other||String(q)}function Hq(q,J){let H=Number(q)||0,G=S(J),Q=Jq(H);if(G[Q])return G[Q].replace(/#/g,String(H));if(G.other)return G.other.replace(/#/g,String(H));return String(H)}function Jq(q){let J=Math.abs(q),H=J%10,G=J%100;if(H===1&&G!==11)return"one";if(H===2&&G!==12)return"two";if(H===3&&G!==13)return"few";return"other"}function S(q){let J={},H=/(\w+|=\d+)\s*\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g,G=H.exec(q);while(G!==null)J[G[1]]=G[2],G=H.exec(q);return J}function Qq(q,J){let H=Number(q);if(Number.isNaN(H))return String(q);switch(J){case"integer":return Math.floor(H).toLocaleString();case"percent":return`${(H*100).toFixed(0)}%`;case"currency":return H.toLocaleString(void 0,{style:"currency",currency:"USD"});default:return H.toLocaleString()}}function Wq(q,J){let H=q instanceof Date?q:new Date(String(q));if(Number.isNaN(H.getTime()))return String(q);let G={};switch(J){case"short":G.dateStyle="short";break;case"medium":G.dateStyle="medium";break;case"long":G.dateStyle="long";break;case"full":G.dateStyle="full";break;default:G.dateStyle="medium"}return H.toLocaleDateString(void 0,G)}function Xq(q,J){let H=q instanceof Date?q:new Date(String(q));if(Number.isNaN(H.getTime()))return String(q);let G={};switch(J){case"short":G.timeStyle="short";break;case"medium":G.timeStyle="medium";break;case"long":G.timeStyle="long";break;case"full":G.timeStyle="full";break;default:G.timeStyle="short"}return H.toLocaleTimeString(void 0,G)}function Zq(q){return/\{[^}]+,\s*(?:plural|select|selectordinal|number|date|time)\s*,/.test(q)}function I(q,J,H=!0,G={}){let Q=q.split("."),W=J;for(let Z of Q){if(W===void 0||W===null)break;W=W[Z]}if(W===void 0||W===null)return H?q:"";let X=String(W);if(Zq(X))return l(X,G);if(X.includes("|")&&"count"in G){let Z=Number(G.count),Y=X.split("|");X=r(Y,Z)}for(let[Z,Y]of Object.entries(G)){let z=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");X=X.replace(new RegExp(`:${z}`,"g"),String(Y))}return X}async function Vq(q,J,H,G){let Q=q,W=/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]*\})\s*)?\)([\s\S]*?)@endtranslate/g,X={...k,...G.i18n},Z=await s(X.locale,G);J.__translations=Z,J.__locale=X.locale,J.__i18nConfig=X,Q=await C(Q,W,async($,_,B,x,A)=>{try{let D={};if(B)try{let F=[()=>JSON.parse(B),()=>{let j=`{"data":${B}}`,L=JSON.parse(j);return typeof L.data==="object"?L.data:{}},()=>{return M(B,J)}];for(let j of F)try{if(D=j(),Object.keys(D).length>0)break}catch{}}catch(F){if(G.debug)console.error("Error parsing parameters for @translate directive:",F)}return I(_,Z,X.fallbackToKey,D)||x.trim()}catch(D){if(G.debug)console.error("Error processing @translate directive:",D);return U("Translate",`Error in @translate('${_}'): ${D instanceof Error?D.message:String(D)}`,b.EVALUATION_ERROR)}});let Y=/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]+\})\s*)?\)/g;if(G.debug){console.warn(`Processing translations in template. Sections: ${Q.includes("<h2>Translation with Parameters</h2>")?"Parameters section found":"Parameters section missing"}`);let $=[...Q.matchAll(Y)];console.warn(`Found ${$.length} @translate matches`),$.forEach((_,B)=>console.warn(`Match ${B}: ${_[0]}, Key: ${_[1]}, Params: ${_[2]||"none"}`))}return Q=await C(Q,/@translate\(\s*['"]([^'"]+)['"]\s*(?:,\s*(\{[^}]*\})\s*)?\)/g,async($,_,B,x)=>{try{let A={};if(B)try{let D=[()=>JSON.parse(B),()=>{let P=`{"data":${B}}`,F=JSON.parse(P);return typeof F.data==="object"?F.data:{}},()=>{return M(B,J)}];for(let P of D)try{if(A=P(),Object.keys(A).length>0)break}catch{}}catch(D){if(G.debug)console.error("Error parsing parameters for @translate directive:",D)}return I(_,Z,X.fallbackToKey,A)}catch(A){if(G.debug)console.error("Error processing @translate directive:",A);return U("Translate",`Error in @translate('${_}'): ${A instanceof Error?A.message:String(A)}`,b.EVALUATION_ERROR)}}),Q}async function C(q,J,H){let G=[];return q.replace(J,(W,...X)=>{let Z=H(W,...X).then((Y)=>({match:W,replacement:Y}));return G.push(Z),W}),(await Promise.all(G)).reduce((W,{match:X,replacement:Z})=>W.replace(X,Z),q)}function jq(q,J=!0){return(H,G={})=>{return I(H,q,J,G)}}
|
|
4
|
-
export{k as
|
|
4
|
+
export{k as qv,Rq as rv,Yq as sv,zq as tv,Dq as uv,Nq as vv,d as wv,Aq as xv,V as yv,u as zv,wq as Av,Fq as Bv,Eq as Cv,Pq as Dv,s as Ev,l as Fv,Zq as Gv,I as Hv,Vq as Iv,jq as Jv};
|