@stacksjs/stx 0.2.94 → 0.2.95
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-eh8hact1.js → chunk-04n64bnt.js} +1 -1
- package/dist/{chunk-yexjrg9d.js → chunk-06w68hyg.js} +2 -2
- package/dist/{chunk-4j188175.js → chunk-07y6m5xx.js} +1 -1
- package/dist/{chunk-b3kkjcdh.js → chunk-09k66d8a.js} +1 -1
- package/dist/{chunk-bk8ew8ze.js → chunk-0a61y94n.js} +2 -2
- package/dist/{chunk-qdc3aav1.js → chunk-0dx4q6yq.js} +1 -1
- package/dist/{chunk-k8440jxh.js → chunk-0p0nyq50.js} +2 -2
- package/dist/{chunk-5qb761h2.js → chunk-0p1h3p3w.js} +1 -1
- package/dist/{chunk-znxp3zha.js → chunk-10debkj5.js} +1 -1
- package/dist/{chunk-bgec9r1v.js → chunk-15nesxgt.js} +2 -2
- package/dist/{chunk-mv03qb75.js → chunk-1sr54zp8.js} +1 -1
- package/dist/{chunk-0jkwrcwj.js → chunk-1v49fwr5.js} +1 -1
- package/dist/{chunk-w01y57f5.js → chunk-1xz0w746.js} +2 -2
- package/dist/{chunk-w4n8fqp7.js → chunk-20swzkx3.js} +1 -1
- package/dist/{chunk-cz25azze.js → chunk-27zsyhrd.js} +1 -1
- package/dist/{chunk-hjdc99kb.js → chunk-29y0hk5z.js} +2 -2
- package/dist/{chunk-tx6br9r4.js → chunk-2cdvw21b.js} +1 -1
- package/dist/{chunk-g2hekckm.js → chunk-2j21d3ka.js} +1 -1
- package/dist/chunk-2jxbwnkz.js +2 -0
- package/dist/{chunk-8fgwhhb8.js → chunk-31dr4bys.js} +2 -2
- package/dist/{chunk-x64kb787.js → chunk-35faj94w.js} +1 -1
- package/dist/{chunk-9yz5d003.js → chunk-3a4qsygv.js} +2 -2
- package/dist/{chunk-1z2yq9em.js → chunk-3te20hqw.js} +2 -2
- package/dist/{chunk-aw3rp9ac.js → chunk-43t7faps.js} +1 -1
- package/dist/{chunk-0m9tdm7t.js → chunk-47kpewks.js} +1 -1
- package/dist/{chunk-cygfdk1n.js → chunk-4d2y57k7.js} +2 -2
- package/dist/{chunk-0tatqxj2.js → chunk-4deg33rw.js} +2 -2
- package/dist/{chunk-a69tvya5.js → chunk-4qcy5tx6.js} +2 -2
- package/dist/{chunk-d77yxcds.js → chunk-4x7kae4j.js} +2 -2
- package/dist/{chunk-g8b81pzc.js → chunk-55nwdnsd.js} +1 -1
- package/dist/{chunk-svahbw0w.js → chunk-5f43yz6z.js} +2 -2
- package/dist/{chunk-fch9tk1k.js → chunk-5shey2e4.js} +1 -1
- package/dist/{chunk-nanw7yhz.js → chunk-6djzdes9.js} +1 -1
- package/dist/{chunk-yj560gp8.js → chunk-6eqbxcrd.js} +1 -1
- package/dist/{chunk-03c26pjz.js → chunk-7074g241.js} +1 -1
- package/dist/{chunk-e0zytzdh.js → chunk-7b6s3g65.js} +1 -1
- package/dist/{chunk-77tga15w.js → chunk-7dkz6z2s.js} +2 -2
- package/dist/{chunk-q60knhjf.js → chunk-7ed3tean.js} +1 -1
- package/dist/{chunk-b0cyc09a.js → chunk-7gd339hd.js} +1 -1
- package/dist/{chunk-xsqbk4yk.js → chunk-7j5e8sdj.js} +2 -2
- package/dist/{chunk-52agge4n.js → chunk-7n8g0nfn.js} +1 -1
- package/dist/{chunk-cn409b69.js → chunk-80g54ncj.js} +1 -1
- package/dist/{chunk-w21mwxdd.js → chunk-8a5bxece.js} +1 -1
- package/dist/{chunk-7rvh2wwv.js → chunk-8ahwt6a4.js} +1 -1
- package/dist/{chunk-fhawx87n.js → chunk-8b3z0zd5.js} +1 -1
- package/dist/{chunk-y86m1wr4.js → chunk-8dhdpa5h.js} +2 -2
- package/dist/{chunk-hje9v2zh.js → chunk-8n9nnqr6.js} +1 -1
- package/dist/{chunk-rb1e4cnb.js → chunk-8qc1bsym.js} +1 -1
- package/dist/{chunk-bwxda6n1.js → chunk-8va64c9n.js} +2 -2
- package/dist/{chunk-hrampcrj.js → chunk-8vtm0m84.js} +1 -1
- package/dist/{chunk-cp3kwv17.js → chunk-8xj7c3mf.js} +1 -1
- package/dist/{chunk-fe7r1mq1.js → chunk-988dw6q3.js} +2 -2
- package/dist/{chunk-wk07pwtd.js → chunk-9b6cec0v.js} +1 -1
- package/dist/{chunk-13yz561y.js → chunk-9cf97f9p.js} +2 -2
- package/dist/{chunk-rv002yn0.js → chunk-9ecv8aqj.js} +1 -1
- package/dist/{chunk-jbejwejg.js → chunk-9eq3ht5f.js} +1 -1
- package/dist/{chunk-dzw95th7.js → chunk-9jtj77jx.js} +2 -2
- package/dist/{chunk-57p201gb.js → chunk-9t14se2t.js} +1 -1
- package/dist/{chunk-qd5461tt.js → chunk-9wmq2272.js} +1 -1
- package/dist/{chunk-qm4yppj5.js → chunk-9zbk5zx5.js} +2 -2
- package/dist/{chunk-7b0xdy5h.js → chunk-a2g2qb2y.js} +1 -1
- package/dist/{chunk-26r6zh3t.js → chunk-a87qqft6.js} +2 -2
- package/dist/{chunk-5kt3ay7x.js → chunk-ah88wzbg.js} +1 -1
- package/dist/{chunk-0wdar532.js → chunk-akf1r75r.js} +1 -1
- package/dist/{chunk-wxvyj65q.js → chunk-amaa1bev.js} +1 -1
- package/dist/{chunk-ganag9dm.js → chunk-avx8aydt.js} +2 -2
- package/dist/{chunk-mgmyr1b9.js → chunk-ay9qf4zj.js} +1 -1
- package/dist/{chunk-haecq01c.js → chunk-aywxfqev.js} +1 -1
- package/dist/{chunk-4bt81cg3.js → chunk-azkegjd8.js} +1 -1
- package/dist/{chunk-e53h9qhd.js → chunk-b77wjyn7.js} +1 -1
- package/dist/{chunk-jfm69keq.js → chunk-baf1hfwh.js} +2 -2
- package/dist/{chunk-hke99a0v.js → chunk-bdk6g1vj.js} +2 -2
- package/dist/{chunk-kkp6rs2n.js → chunk-bhqgmyqw.js} +1 -1
- package/dist/{chunk-fs0qezn5.js → chunk-bk3j0n82.js} +1 -1
- package/dist/{chunk-sn07azv3.js → chunk-bndmdahk.js} +2 -2
- package/dist/{chunk-mrehzhxv.js → chunk-bs3gmfxz.js} +1 -1
- package/dist/{chunk-yach037f.js → chunk-bxc7kjsk.js} +1 -1
- package/dist/{chunk-gqpkp459.js → chunk-ckxjqqn9.js} +2 -2
- package/dist/{chunk-ncnfa8ae.js → chunk-d0zjtdw4.js} +2 -2
- package/dist/{chunk-qfwzdffx.js → chunk-d1qh1x2g.js} +2 -2
- package/dist/{chunk-gcf5v18y.js → chunk-djddhmcc.js} +1 -1
- package/dist/{chunk-fms20x0n.js → chunk-dqn9gyhb.js} +1 -1
- package/dist/{chunk-6w03t7h6.js → chunk-drjq2zwg.js} +2 -2
- package/dist/{chunk-91s2hres.js → chunk-e2q9c5vq.js} +1 -1
- package/dist/{chunk-3ngm57nt.js → chunk-e98v1bc6.js} +2 -2
- package/dist/chunk-ejayeex8.js +2 -0
- package/dist/{chunk-yr1gdceh.js → chunk-ejh8fyak.js} +1 -1
- package/dist/{chunk-6wn85hn6.js → chunk-ek2w6zvy.js} +1 -1
- package/dist/{chunk-7dy588as.js → chunk-ewa88139.js} +1 -1
- package/dist/{chunk-ht4j68cs.js → chunk-fjk3x41y.js} +2 -2
- package/dist/{chunk-x39sfpvm.js → chunk-frg705zq.js} +1 -1
- package/dist/{chunk-nap11ntr.js → chunk-g1vt329s.js} +2 -2
- package/dist/{chunk-6cr3eeh4.js → chunk-gkzq8zw4.js} +1 -1
- package/dist/{chunk-3rh7va1z.js → chunk-gz5fmp3q.js} +1 -1
- package/dist/{chunk-asarebzq.js → chunk-h0hjy0kn.js} +1 -1
- package/dist/{chunk-ywkrxp2h.js → chunk-h5jxydqq.js} +1 -1
- package/dist/{chunk-4qq8ffke.js → chunk-h7aq56qj.js} +1 -1
- package/dist/{chunk-hepg894w.js → chunk-hbehnm18.js} +2 -2
- package/dist/{chunk-gc84b1d2.js → chunk-hbgxbgam.js} +2 -2
- package/dist/{chunk-05hgyyqc.js → chunk-hc2mf5h6.js} +1 -1
- package/dist/{chunk-tr0z0e1g.js → chunk-hjm2xab3.js} +1 -1
- package/dist/{chunk-50vqeesm.js → chunk-hrnnh4tq.js} +2 -2
- package/dist/{chunk-hq5cem49.js → chunk-ht43ds42.js} +1 -1
- package/dist/{chunk-vdfwv0fp.js → chunk-hy8820vc.js} +1 -1
- package/dist/{chunk-vpe6napb.js → chunk-j447q024.js} +2 -2
- package/dist/{chunk-x4fze3q2.js → chunk-j58vh0w6.js} +1 -1
- package/dist/{chunk-z37xq5rx.js → chunk-j8tn8enq.js} +2 -2
- package/dist/{chunk-m59y310j.js → chunk-jjb05d21.js} +2 -2
- package/dist/{chunk-3bjtemm6.js → chunk-jjdq01dv.js} +1 -1
- package/dist/{chunk-b3prs7y0.js → chunk-jnmgm2xw.js} +1 -1
- package/dist/{chunk-5ggw1dyv.js → chunk-jpndqst5.js} +1 -1
- package/dist/{chunk-7sm05m0j.js → chunk-jt0ezawy.js} +1 -1
- package/dist/{chunk-6y4gqs1q.js → chunk-jz73j3qs.js} +1 -1
- package/dist/{chunk-jt98jhpt.js → chunk-k21df0pg.js} +1 -1
- package/dist/{chunk-zt2yag10.js → chunk-k848dzsa.js} +1 -1
- package/dist/{chunk-bjnjpsgn.js → chunk-kdfe4t91.js} +2 -2
- package/dist/{chunk-82t27pvd.js → chunk-keawsbpn.js} +1 -1
- package/dist/{chunk-5q87fgkk.js → chunk-khdn7jwe.js} +2 -2
- package/dist/{chunk-ca6qd1dx.js → chunk-km25cwz6.js} +1 -1
- package/dist/{chunk-pc31m5x5.js → chunk-knm8a8yx.js} +1 -1
- package/dist/{chunk-baa7h4yz.js → chunk-krqn0ddk.js} +2 -2
- package/dist/{chunk-0g4gece6.js → chunk-kx6eb6ma.js} +1 -1
- package/dist/{chunk-3yg9hbmb.js → chunk-kypas8vy.js} +1 -1
- package/dist/{chunk-7xcfy2fn.js → chunk-m167kjhv.js} +1 -1
- package/dist/{chunk-w959hm8j.js → chunk-m491r0rj.js} +1 -1
- package/dist/{chunk-x1hjv24z.js → chunk-m8448qby.js} +1 -1
- package/dist/{chunk-tj6zfxeb.js → chunk-mgj88zeq.js} +2 -2
- package/dist/{chunk-6djgb0hr.js → chunk-mhgk632d.js} +1 -1
- package/dist/{chunk-y5wazw6j.js → chunk-n5kg7fpx.js} +1 -1
- package/dist/{chunk-957amb71.js → chunk-n98x35xd.js} +1 -1
- package/dist/{chunk-04mvcmcr.js → chunk-n9dhs1dw.js} +1 -1
- package/dist/{chunk-75rndzbd.js → chunk-nd9rmddh.js} +1 -1
- package/dist/{chunk-y25pr13j.js → chunk-nhv099jv.js} +1 -1
- package/dist/{chunk-cpcc11vp.js → chunk-nm15ccsg.js} +2 -2
- package/dist/{chunk-z4djtgt0.js → chunk-npfmdb6y.js} +1 -1
- package/dist/{chunk-xhkjhxsp.js → chunk-p077sw22.js} +1 -1
- package/dist/{chunk-kfd2hf6f.js → chunk-p1h8065h.js} +2 -2
- package/dist/{chunk-647849kf.js → chunk-p3e0cqtt.js} +2 -2
- package/dist/{chunk-c53hyw5c.js → chunk-p3fpb79v.js} +1 -1
- package/dist/{chunk-adjcg6wa.js → chunk-p52yzjq6.js} +2 -2
- package/dist/{chunk-qgxwmagw.js → chunk-p73meypx.js} +1 -1
- package/dist/{chunk-bykjk6vj.js → chunk-pa9zb7ty.js} +1 -1
- package/dist/{chunk-qk584whs.js → chunk-pcm1vd8w.js} +1 -1
- package/dist/{chunk-bn08k7yy.js → chunk-pcntd9h4.js} +2 -2
- package/dist/{chunk-87kx8byz.js → chunk-psc3wfcf.js} +1 -1
- package/dist/{chunk-svhtdb0s.js → chunk-pznnww6k.js} +1 -1
- package/dist/{chunk-5ppkfyn2.js → chunk-q6zhd9yf.js} +1 -1
- package/dist/chunk-qa59zejf.js +246 -0
- package/dist/{chunk-hpqr9e3x.js → chunk-qvrbjpdc.js} +2 -2
- package/dist/{chunk-46mkpbkk.js → chunk-qygvvygy.js} +2 -2
- package/dist/{chunk-xygc53vr.js → chunk-r0jcmpv6.js} +1 -1
- package/dist/{chunk-yw2fzq86.js → chunk-r5m9xtm7.js} +2 -2
- package/dist/{chunk-174z0cd0.js → chunk-rpx5fa65.js} +2 -2
- package/dist/{chunk-tmgz5t2g.js → chunk-rqxf5hns.js} +1 -1
- package/dist/{chunk-5xvbq2gs.js → chunk-rtr974rc.js} +2 -2
- package/dist/{chunk-y4c744dk.js → chunk-rvptcndz.js} +2 -2
- package/dist/{chunk-25s7bckb.js → chunk-rw26rpek.js} +2 -2
- package/dist/{chunk-qhdtssn1.js → chunk-rw7937v4.js} +2 -2
- package/dist/{chunk-n46a5g1g.js → chunk-rwrv9wbf.js} +1 -1
- package/dist/{chunk-8qbax8xn.js → chunk-rz2ec6g7.js} +1 -1
- package/dist/{chunk-epj957jf.js → chunk-scpkdrdb.js} +1 -1
- package/dist/{chunk-q6h6yvzb.js → chunk-shv88d2d.js} +2 -2
- package/dist/{chunk-2w3302dh.js → chunk-t0c9wvpr.js} +1 -1
- package/dist/{chunk-6dqzky7x.js → chunk-tffh3b1e.js} +1 -1
- package/dist/{chunk-ceg2c2q2.js → chunk-tg2f1mzq.js} +2 -2
- package/dist/{chunk-eqeyaq6g.js → chunk-trfswy66.js} +1 -1
- package/dist/{chunk-t37dp99j.js → chunk-tzwtg722.js} +1 -1
- package/dist/{chunk-ghrx0hn1.js → chunk-v7f8jj15.js} +1 -1
- package/dist/{chunk-95w08s8v.js → chunk-v8j49spx.js} +1 -1
- package/dist/{chunk-yaan98dd.js → chunk-veeerpwa.js} +1 -1
- package/dist/{chunk-xcb0pbr6.js → chunk-vg5kt6az.js} +1 -1
- package/dist/{chunk-9tmbrwwx.js → chunk-vgv7jvyz.js} +1 -1
- package/dist/{chunk-2xen423s.js → chunk-vjbefncc.js} +1 -1
- package/dist/{chunk-jt44av4j.js → chunk-vmxjghsm.js} +1 -1
- package/dist/{chunk-mqwbpamc.js → chunk-vw7vqd76.js} +1 -1
- package/dist/{chunk-adqh2m9z.js → chunk-w3b6m427.js} +1 -1
- package/dist/{chunk-eds0f8f1.js → chunk-wazkqv7n.js} +2 -2
- package/dist/{chunk-y4md9hp0.js → chunk-wfg2gm11.js} +1 -1
- package/dist/{chunk-vv9wfz1c.js → chunk-wg9k6h8w.js} +2 -2
- package/dist/{chunk-1mmykse5.js → chunk-wkz2vwkr.js} +1 -1
- package/dist/{chunk-7a51hkpf.js → chunk-wvf31nzs.js} +1 -1
- package/dist/{chunk-dyjnn5k8.js → chunk-x05nxhyv.js} +2 -2
- package/dist/{chunk-kh6rfz2v.js → chunk-x0770gt9.js} +1 -1
- package/dist/{chunk-5p568px4.js → chunk-x24s4heg.js} +1 -1
- package/dist/{chunk-cdbwprfv.js → chunk-x3r64r0c.js} +2 -2
- package/dist/{chunk-fbxt2mrx.js → chunk-x5g9w4hh.js} +2 -2
- package/dist/{chunk-268adc7r.js → chunk-xgkv66q5.js} +1 -1
- package/dist/chunk-xqq1vxb6.js +1 -0
- package/dist/{chunk-qxs6et76.js → chunk-xs03kc1h.js} +1 -1
- package/dist/{chunk-3jm3snz8.js → chunk-xv34zbp4.js} +1 -1
- package/dist/{chunk-b5zc9y0y.js → chunk-xw36p73h.js} +2 -2
- package/dist/{chunk-j4s5qwd7.js → chunk-xyg1r5w0.js} +2 -2
- package/dist/{chunk-cyp4m0vh.js → chunk-xys2sxh6.js} +1 -1
- package/dist/{chunk-kdxa9epn.js → chunk-y1k17c8b.js} +2 -2
- package/dist/{chunk-cr3wbrcr.js → chunk-y6xsqe9a.js} +2 -2
- package/dist/{chunk-94g3cahw.js → chunk-yb1t2h8h.js} +2 -2
- package/dist/{chunk-vw6ejgmy.js → chunk-yj4x5ehw.js} +1 -1
- package/dist/{chunk-fk51yyrw.js → chunk-ynhngsdh.js} +1 -1
- package/dist/{chunk-vp2395eb.js → chunk-yrsb6j3z.js} +2 -2
- package/dist/chunk-yywfvfph.js +2 -0
- package/dist/{chunk-xhnpsngj.js → chunk-zcxzdrn7.js} +2 -2
- package/dist/{chunk-jjvp4t5w.js → chunk-zen6ax1y.js} +2 -2
- package/dist/{chunk-n944baxp.js → chunk-zf2pek72.js} +1 -1
- package/dist/{chunk-z8cjr9n9.js → chunk-zk3d0jjf.js} +1 -1
- package/dist/{chunk-9agvhp1x.js → chunk-zy3rp1ab.js} +1 -1
- package/dist/cli.js +1 -1
- 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/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 +1 -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 -6
- package/dist/dev-server/serve-file.js +1 -6
- package/dist/dev-server/serve-markdown.js +1 -1
- package/dist/dev-server/serve-multi.js +1 -171
- 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/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/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 +1 -1
- package/dist/web-components.js +1 -1
- package/dist/x-element.js +1 -1
- package/package.json +6 -6
- package/dist/chunk-48cw2nde.js +0 -2
- package/dist/chunk-48r3qe0k.js +0 -3
- package/dist/chunk-h45py5w5.js +0 -2
- package/dist/chunk-jfrn43vh.js +0 -2
- package/dist/chunk-mwbng54r.js +0 -2
- package/dist/chunk-qwyd9a1d.js +0 -2
- package/dist/chunk-sjagg9qz.js +0 -66
|
@@ -3,4 +3,4 @@ async function E(G){try{let k=await Bun.file(G).text(),q=M(k),H=N(k,G),K=W(k,q),
|
|
|
3
3
|
`),q=G.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i),K=(q?q[1]:"").split(`
|
|
4
4
|
`).length,J={conditionals:(G.match(/@(if|unless|elseif|else|endif|endunless)\b/g)||[]).length,loops:(G.match(/@(foreach|for|endforeach|endfor|while|endwhile)\b/g)||[]).length,includes:(G.match(/@(include|component|extends|section|yield)\b/g)||[]).length,custom:0,total:0};J.total=J.conditionals+J.loops+J.includes+J.custom;let X=(G.match(/\{\{[\s\S]*?\}\}/g)||[]).length,Z=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length,Y=(G.match(/@(?:if|unless|elseif|foreach|for|while)\s*\([^)]+\)/g)||[]).length,V=X+Z+Y,Q=(G.match(/<[A-Z][^>]*>/g)||[]).length,$=(G.match(/@(?:layout|extends)\(/g)||[]).length,j=0,z=0;for(let _ of k)if(/@(?:if|unless|foreach|for|while|section)\b/.test(_)&&!/@end/.test(_)&&!/@else/.test(_))z++,j=Math.max(j,z);else if(/@end(?:if|unless|foreach|for|while|section)\b/.test(_))z--;let O=j>=4?3:0,U=Math.min(10,Math.ceil(J.total*0.5+V*0.1+Q*0.3+(K>10?K*0.05:0)+O));return{lines:k.length,characters:G.length,directives:J,expressions:V,components:Q,layouts:$,scriptLines:K,complexity:U}}function N(G,k){let q=[],H=A(G,"if","endif");if(H>0)q.push({type:"error",category:"syntax",message:`Found ${H} unmatched @if directive(s)`,suggestion:"Ensure every @if has a corresponding @endif"});let K=A(G,"foreach","endforeach");if(K>0)q.push({type:"error",category:"syntax",message:`Found ${K} unmatched @foreach directive(s)`,suggestion:"Ensure every @foreach has a corresponding @endforeach"});let J=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(J&&J.length>0)q.push({type:"warning",category:"performance",message:"Nested loops detected which may impact performance",suggestion:"Consider preprocessing data or using more efficient data structures"});let X=(G.match(/\{!![\s\S]*?!!\}/g)||[]).length;if(X>0)q.push({type:"warning",category:"security",message:`Found ${X} raw output expression(s) {!! !!}`,suggestion:"Ensure raw outputs are properly sanitized to prevent XSS"});let Z=G.match(/<img[^>]*>/g);if(Z){let Q=Z.filter(($)=>!$.includes("alt="));if(Q.length>0)q.push({type:"warning",category:"accessibility",message:`Found ${Q.length} image(s) without alt attributes`,suggestion:"Add alt attributes to all images for screen reader accessibility"})}let Y=G.split(`
|
|
5
5
|
`).filter((Q)=>Q.length>120);if(Y.length>0)q.push({type:"info",category:"maintainability",message:`Found ${Y.length} line(s) longer than 120 characters`,suggestion:"Consider breaking long lines for better readability"});let V=(G.match(/style\s*=\s*["'][^"']*["']/g)||[]).length;if(V>3)q.push({type:"info",category:"maintainability",message:`Found ${V} inline style attributes`,suggestion:"Consider moving styles to CSS classes for better maintainability"});return q}function W(G,k){let q=[];if(k.complexity>7)q.push({type:"refactor",message:"Template complexity is high. Consider breaking into smaller components.",impact:"high",effort:"medium"});else if(k.complexity>5&&k.directives.total>8)q.push({type:"optimization",message:"Template has moderate complexity. Consider component extraction for reusability.",impact:"medium",effort:"low"});if(k.lines>100&&k.components===0)q.push({type:"refactor",message:"Large template with no components. Consider extracting reusable parts into components.",impact:"medium",effort:"medium"});if(k.expressions>20)q.push({type:"optimization",message:"Many template expressions detected. Consider preprocessing some data in the script section.",impact:"medium",effort:"low"});let H=G.match(/@foreach[\s\S]*?@foreach[\s\S]*?@endforeach[\s\S]*?@endforeach/g);if(H&&H.length>0)q.push({type:"optimization",message:"Nested loops detected. Consider preprocessing data or optimizing data structures.",impact:"high",effort:"medium"});if(k.directives.total===0&&k.expressions<5)q.push({type:"optimization",message:"Template appears static. Consider enabling aggressive caching.",impact:"high",effort:"low"});if(k.scriptLines>50)q.push({type:"refactor",message:"Large script section. Consider moving complex logic to external modules.",impact:"medium",effort:"medium"});return q}function w(G,k){let q=1;if(q+=k.directives.conditionals*0.1,q+=k.directives.loops*0.5,q+=k.directives.includes*2,q+=k.expressions*0.05,q+=k.components*1,k.scriptLines>10)q+=k.scriptLines*0.1;let H;if(k.expressions===0&&k.directives.total===0)H="high";else if(k.expressions<5&&k.directives.total<3)H="medium";else H="low";let K=[];if(q>10)K.push("Consider optimizing template complexity");if(H==="low"&&k.directives.total>5)K.push("Reduce dynamic content for better caching");if(k.components===0&&k.lines>40)K.push("Extract components to improve reusability and performance");return{estimatedRenderTime:Math.round(q*100)/100,complexityScore:k.complexity,cacheability:H,recommendations:K}}function A(G,k,q){let H=G.replace(/<!--[\s\S]*?-->/g,""),K=(H.match(new RegExp(`@${k}\\b`,"g"))||[]).length,J=(H.match(new RegExp(`@${q}\\b`,"g"))||[]).length;return Math.abs(K-J)}async function I(G=["**/*.stx"],k){let q=[],H=[];for(let J of G){let X=await Array.fromAsync(new Bun.Glob(J).scan({cwd:k||process.cwd(),onlyFiles:!0,absolute:!0}));H.push(...X.filter((Z)=>Z.endsWith(".stx")))}for(let J of H)try{let X=await E(J);q.push(X)}catch(X){console.warn(`Failed to analyze ${J}:`,X)}let K=B(q);return{results:q,summary:K}}function B(G){let k=G.length,q=G.reduce((V,Q)=>V+Q.metrics.lines,0),H=k>0?G.reduce((V,Q)=>V+Q.metrics.complexity,0)/k:0,K=G.reduce((V,Q)=>V+Q.issues.length,0),J={};G.forEach((V)=>{V.issues.forEach((Q)=>{J[Q.category]=(J[Q.category]||0)+1})});let X=k>0?G.reduce((V,Q)=>V+Q.performance.estimatedRenderTime,0)/k:0,Z=Math.max(1,Math.min(10,Math.round(10-X/2-H/2))),Y=[];if(H>6)Y.push("Project has high average complexity. Consider refactoring complex templates.");if(K>k*2)Y.push("High number of issues detected. Run detailed analysis on individual files.");if(J.security>0)Y.push("Security issues found. Review raw output usage and input sanitization.");return{totalFiles:k,totalLines:q,avgComplexity:Math.round(H*100)/100,totalIssues:K,issuesByCategory:J,performanceScore:Z,recommendations:Y}}
|
|
6
|
-
export{E as
|
|
6
|
+
export{E as Gq,I as Hq};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Rn as I,Sn as T,Tn as P,Un as q}from"./chunk-04n64bnt.js";import{$n as Y,Wn as w,Yn as M,Zn as N,_n as R,ao as W}from"./chunk-p077sw22.js";import j from"fs";import k from"path";async function c(b={}){let B=Date.now(),H=[],L=b.cwd||process.cwd(),x=(A)=>{H.push(A)},G=(A)=>{if(b.onProgress)b.onProgress(A)},J=k.resolve(L,b.directory||"dist"),h=b.token||process.env.NETLIFY_AUTH_TOKEN,V=b.siteId||process.env.NETLIFY_SITE_ID;if(!h)throw new Q(`No Netlify auth token found.
|
|
3
3
|
|
|
4
4
|
To deploy to Netlify:
|
|
5
5
|
1. Create account at https://app.netlify.com
|
|
@@ -25,4 +25,4 @@ Check your site ID or create a new site at https://app.netlify.com`,"SITE_NOT_FO
|
|
|
25
25
|
`))x+=`
|
|
26
26
|
`}x+=`NETLIFY_SITE_ID=${b.siteId}
|
|
27
27
|
`,await Bun.write(L,x)}return{configPath:H,siteId:b.siteId}}class Q extends Error{code;constructor(b,B){super(b);this.name="DeployError",this.code=B}}function F(b){let B=process.platform,H=B==="darwin"?"open":B==="win32"?"start":"xdg-open";Bun.spawn([H,b],{stdio:["ignore","ignore","ignore"]})}
|
|
28
|
-
export{c as
|
|
28
|
+
export{c as Nn,s as On,Q as Pn};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{d as
|
|
2
|
+
import{Vk as I,_k as w}from"./chunk-jpndqst5.js";import{pB as v}from"./chunk-xv34zbp4.js";import{resolve as E,basename as T,extname as W,join as $}from"path";import{mkdir as j}from"fs/promises";async function B(){try{return await import("ts-videos")}catch{return null}}async function d(A,q,C,Y){let G=await B();if(!G)return console.warn("[stx-media] ts-videos not installed, cannot generate poster"),null;try{let y=E(A);if(!await w(y))return null;await j(C,{recursive:!0});let N=await I(y),O=T(A,W(A)),M=q.format||"webp",_=q.timestamp||0,S=`${O}-poster-${N}.${M}`,L=$(C,S),J=await G.extractThumbnails(y,{timestamps:[_],width:q.width||1280,height:q.height,format:M,quality:q.quality||85,outputDir:C,outputPattern:S.replace(`.${M}`,"")});if(J&&J.length>0){let K=J[0];return{path:L,url:`${Y}/${S}`,width:K.width||q.width||1280,height:K.height||720,timestamp:_,size:K.size||0}}return null}catch(y){return console.warn(`[stx-media] Failed to generate poster: ${y}`),null}}async function c(A,q,C,Y){let G=await B();if(!G)return[];try{let y=E(A);if(!await w(y))return[];await j(C,{recursive:!0});let N=await I(y),O=T(A,W(A)),M=q.format||"webp",L=(await new G.Input(y).getInfo()).duration||60,J=q.count||10,K=q.interval||L/J,Q=[];for(let z=0;z<J&&z*K<L;z++)Q.push(z*K);let R=await G.extractThumbnails(y,{timestamps:Q,width:q.width||320,format:M,quality:q.quality||80,outputDir:C,outputPattern:`${O}-thumb-${N}`});if(R&&R.length>0)return R.map((z,X)=>({path:z.path||$(C,`${O}-thumb-${N}-${X}.${M}`),url:`${Y}/${O}-thumb-${N}-${X}.${M}`,width:z.width||q.width||320,height:z.height||180,timestamp:Q[X],size:z.size||0}));return[]}catch(y){return console.warn(`[stx-media] Failed to generate thumbnails: ${y}`),[]}}async function l(A,q,C,Y){let G=await B();if(!G)return console.warn("[stx-media] ts-videos not installed, cannot generate sprite sheet"),null;try{let y=E(A);if(!await w(y))return null;await j(C,{recursive:!0});let N=await I(y),O=T(A,W(A)),S=(await new G.Input(y).getInfo()).duration||60,L=q.columns||10,J=q.interval||5,K=q.thumbnailWidth||160,Q=q.thumbnailHeight||90,R=q.format||"jpeg",z=Math.ceil(S/J),X=Math.ceil(z/L),U=`${O}-sprite-${N}.${R}`,H=$(C,U),g=[];for(let Z=0;Z<z;Z++)g.push(Z*J);let k=await G.extractThumbnails(y,{timestamps:g,width:K,height:Q,format:R,quality:q.quality||70,outputDir:$(C,".temp")});if(!k||k.length===0)return null;try{let Z=await import("ts-images"),V=L*K,x=X*Q,f=await Z.createSprite({images:k.map((F)=>F.path),columns:L,padding:0,outputPath:H,format:R,quality:q.quality||70});return{url:`${Y}/${U}`,path:H,columns:L,rows:X,thumbnailWidth:K,thumbnailHeight:Q,interval:J,totalFrames:z}}catch{return console.warn("[stx-media] ts-images not installed, sprite sheet generation skipped"),null}}catch(y){return console.warn(`[stx-media] Failed to generate sprite sheet: ${y}`),null}}
|
|
3
|
+
export{d as Dj,c as Ej,l as Fj};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{y as
|
|
2
|
+
import{Rs as q}from"./chunk-1xz0w746.js";import{pB as L}from"./chunk-xv34zbp4.js";import M from"fs";import X from"path";var y=new Map,Q=new Map;async function w(j){let z;for(let K=0;K<3;K++)try{let V=(await M.promises.stat(j)).mtime.getTime(),J=Q.get(j);if(J&&J.mtime===V)return J.content;let W=await Bun.file(j).text(),U=(await M.promises.stat(j)).mtime.getTime();if(U!==V)continue;return Q.set(j,{content:W,mtime:U}),W}catch(I){z=I;break}throw Q.delete(j),Error(`File not found: ${j}${z?` (${z.message})`:""}`)}function A(j){Q.delete(j)}function H(j){for(let B of Q.keys())if(B.startsWith(j))Q.delete(B)}var Z=null,T=null,N=null;function v(j){N=j}async function E(j=!1){let B=N??await import("././signals.js");if(j)return B.generateSignalsRuntimeDev();if(Z===null)Z=B.generateSignalsRuntime();return Z}var $=null;async function F(){if($===null){let{getRouterScript:j}=await import("stx-router");$=j()}return $}function R(){Q.clear(),Z=null,T=null,$=null}function k(j){let B={debug:j.debug===!0,middleware:(j.middleware??[]).map((z)=>({name:z.name,timing:z.timing,handler:String(z.handler)})),customDirectives:(j.customDirectives??[]).map((z)=>({name:z.name,hasEndTag:z.hasEndTag===!0,handler:String(z.handler)}))};return new Bun.CryptoHasher("sha1").update(JSON.stringify(B)).digest("hex")}async function S(j,B){try{if(!B.cachePath)return null;let z=X.resolve(B.cachePath),K=X.join(z,`${D(j)}.html`),I=X.join(z,`${D(j)}.meta.json`);if(!await q(K)||!await q(I))return null;let V=await Bun.file(I).text(),J=JSON.parse(V);if(J.cacheVersion!==B.cacheVersion)return null;if(J.optionsSignature!==k(B))return null;if((await M.promises.stat(j)).mtime.getTime()>J.mtime)return null;for(let Y of J.dependencies)if(await q(Y)){if((await M.promises.stat(Y)).mtime.getTime()>J.mtime)return null}else return null;return await Bun.file(K).text()}catch(z){return console.warn(`Cache error for ${j}:`,z),null}}async function _(j,B,z,K){try{if(!K.cachePath)return;let I=X.resolve(K.cachePath);await M.promises.mkdir(I,{recursive:!0});let V=X.join(I,`${D(j)}.html`),J=X.join(I,`${D(j)}.meta.json`),W=await M.promises.stat(j);await Bun.write(V,B);let Y={sourcePath:j,mtime:W.mtime.getTime(),dependencies:Array.from(z),cacheVersion:K.cacheVersion,optionsSignature:k(K),generatedAt:Date.now()};await Bun.write(J,JSON.stringify(Y,null,2)),y.set(j,{output:B,mtime:W.mtime.getTime(),dependencies:z})}catch(I){console.warn(`Failed to cache template ${j}:`,I)}}var b=16;function D(j){return new Bun.CryptoHasher("sha1").update(j).digest("hex").substring(0,b)}
|
|
3
|
+
export{y as jp,w as kp,A as lp,H as mp,v as np,E as op,F as pp,R as qp,S as rp,_ as sp,D as tp};
|
|
@@ -125,4 +125,4 @@ var W=typeof window<"u"&&typeof document<"u",A={color:"#6366f1",initialColor:"",
|
|
|
125
125
|
})();
|
|
126
126
|
</script>
|
|
127
127
|
`}var P={useLoadingIndicator:R,initLoadingIndicator:T,generateLoadingIndicatorHtml:w};
|
|
128
|
-
export{R as
|
|
128
|
+
export{R as Wl,T as Xl,C as Yl,w as Zl,P as _l};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import{existsSync as q,readFileSync as H}from"fs";import{join as T,resolve as Y}from"path";import z from"process";function A(C,E=z.cwd()){let B=C.i18n;if(!B||!Array.isArray(B.locales)||B.locales.length===0)return null;let I=B.defaultLocale??B.locales[0],D=U(B,E);return{locales:B.locales,defaultLocale:I,labels:B.labels??Object.fromEntries(B.locales.map((G)=>[G,G.toUpperCase()])),translations:D,pickerSelector:B.pickerSelector??"#lang-picker"}}function U(C,E){let B=C.translations??{},I={},D=C.translationsDir,G=D===!1?null:Y(E,typeof D==="string"&&D?D:"translations"),J=C.format??"json";for(let M of C.locales){let N=G?K(G,M,J):{};I[M]={...N,...B[M]??{}}}return I}function K(C,E,B){let I=B==="json"?[`${E}.json`]:[`${E}.${B}`,`${E}.${B==="yaml"?"yml":"yaml"}`];for(let D of I){let G=T(C,D);if(!q(G))continue;try{let J=H(G,"utf8"),M=B==="json"?JSON.parse(J):O(J);return _(M)}catch{continue}}return{}}function _(C,E="",B={}){if(!C||typeof C!=="object")return B;for(let[I,D]of Object.entries(C)){let G=E?`${E}.${I}`:I;if(D&&typeof D==="object"&&!Array.isArray(D))_(D,G,B);else if(typeof D==="string")B[G]=D;else if(typeof D==="number"||typeof D==="boolean")B[G]=String(D)}return B}function O(C){let E={},B=[{obj:E,indent:-1}];for(let I of C.split(`
|
|
3
3
|
`)){let D=I.replace(/#.*$/,"").trimEnd();if(!D.trim())continue;let G=D.search(/\S/);if(G===-1)continue;while(B.length>1&&B[B.length-1].indent>=G)B.pop();let J=B[B.length-1].obj,M=D.match(/^(\s*)(\S[^:]*):\s*(.*)$/);if(!M)continue;let[,,N,$]=M,Q=N.trim(),X=$.trim();if(X==="")J[Q]={},B.push({obj:J[Q],indent:G});else J[Q]=V(X)}return E}function V(C){if(C.startsWith("'")&&C.endsWith("'")||C.startsWith('"')&&C.endsWith('"'))return C.slice(1,-1);return C}function F(C,E,B){let I=C.translations[E]?.[B];if(typeof I==="string")return I;let D=C.translations[C.defaultLocale]?.[B];if(typeof D==="string")return D;return B}function L(C,E,B){return C.replace(/\{t(!?):([a-zA-Z][\w.-]*)\}/g,(I,D,G)=>{let J=F(E,B,G);return D==="!"?J:R(J)})}function Z(C,E,B){if(E===B)return C;if(C==="/")return`/${E}/`;if(C==="/404.html")return`/${E}/404.html`;return`/${E}${C}`}function P(C,E){for(let B of E){if(C===`/${B}`||C===`/${B}/`)return{locale:B,path:"/"};if(C.startsWith(`/${B}/`))return{locale:B,path:C.slice(B.length+1)}}return{locale:null,path:C}}function w(C,E,B){let I=C.replace(/\/$/,""),D=[];for(let J of B.locales){let M=`${I}${Z(E,J,B.defaultLocale)}`;D.push(`<link rel="alternate" hreflang="${W(J)}" href="${W(M)}">`)}let G=`${I}${Z(E,B.defaultLocale,B.defaultLocale)}`;return D.push(`<link rel="alternate" hreflang="x-default" href="${W(G)}">`),D.join(`
|
|
4
4
|
`)}function j(C,E){return`<script data-stx-lang-picker="1">window.__stxI18n=${JSON.stringify({locales:C.locales,defaultLocale:C.defaultLocale,current:E,pickerSelector:C.pickerSelector})};(function(){function cfg(){return window.__stxI18n}function localeFromPath(p){var d=cfg();for(var i=0;i<d.locales.length;i++){var c=d.locales[i];if(p==='/'+c||p==='/'+c+'/')return c;if(p.indexOf('/'+c+'/')===0)return c}return d.defaultLocale}function localePathFor(loc,p){var d=cfg();var stripped=p;for(var i=0;i<d.locales.length;i++){var c=d.locales[i];if(p==='/'+c||p==='/'+c+'/'){stripped='/';break}if(p.indexOf('/'+c+'/')===0){stripped=p.slice(c.length+1);break}}if(loc===d.defaultLocale)return stripped;if(stripped==='/')return '/'+loc+'/';return '/'+loc+stripped}cfg().localizeHref=function(href){try{var u=new URL(href,location.origin);if(u.origin!==location.origin)return href;return localePathFor(localeFromPath(location.pathname),u.pathname)+(u.search||'')+(u.hash||'')}catch(_){return href}};function syncFromUrl(){var d=cfg();var loc=localeFromPath(location.pathname);d.current=loc;var picker=document.querySelector(d.pickerSelector);if(picker){var btns=picker.querySelectorAll('[data-lang]');for(var i=0;i<btns.length;i++){var b=btns[i];if(b.getAttribute('data-lang')===loc)b.setAttribute('aria-current','true');else b.removeAttribute('aria-current')}}if(document.documentElement.lang!==loc)document.documentElement.lang=loc}function onLangClick(e){var d=cfg();var btn=e.target&&e.target.closest&&e.target.closest('[data-lang]');if(!btn)return;var picker=document.querySelector(d.pickerSelector);if(!picker||!picker.contains(btn))return;e.preventDefault();e.stopPropagation();var loc=btn.getAttribute('data-lang');if(!loc||loc===localeFromPath(location.pathname))return;var dest=localePathFor(loc,location.pathname);var r=window.__stxRouter;if(r&&r.navigate)r.navigate(dest,true,true);else location.assign(dest)}syncFromUrl();if(window.__stxLangPickerBound){document.removeEventListener('click',window.__stxLangPickerClick,true);window.removeEventListener('stx:navigate',window.__stxLangPickerSync);window.removeEventListener('popstate',window.__stxLangPickerSync)}window.__stxLangPickerClick=onLangClick;window.__stxLangPickerSync=syncFromUrl;window.__stxLangPickerBound=1;document.addEventListener('click',onLangClick,true);window.addEventListener('stx:navigate',syncFromUrl);window.addEventListener('popstate',syncFromUrl)})();</script>`}function W(C){return C.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function R(C){return C.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as _g,F as $g,L as ah,Z as bh,P as ch,w as dh,j as eh};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import{createHash as w}from"crypto";import{readFile as D,stat as A}from"fs/promises";async function J(j){try{let q=await D(j);return w("sha256").update(q).digest("hex").slice(0,16)}catch{return""}}function K(j){return w("sha256").update(j).digest("hex").slice(0,16)}function z(j){return w("sha256").update(j).digest("hex").slice(0,16)}function L(j,q){let B=JSON.stringify(q,Object.keys(q).sort());return`${z(j)}-${z(B)}`}async function M(j){try{return(await A(j)).mtimeMs}catch{return 0}}async function N(j){try{return await A(j),!0}catch{return!1}}
|
|
3
|
-
export{J as
|
|
3
|
+
export{J as Vk,K as Wk,z as Xk,L as Yk,M as Zk,N as _k};
|
|
@@ -348,4 +348,4 @@ else {
|
|
|
348
348
|
console.log('[stx] Keep-alive runtime initialized');
|
|
349
349
|
})();
|
|
350
350
|
`}function Z(f){if(typeof document<"u")document.addEventListener("stx:activated",(j)=>{f(j.detail)})}function _(f){if(typeof document<"u")document.addEventListener("stx:deactivated",(j)=>{f(j.detail)})}
|
|
351
|
-
export{Q as
|
|
351
|
+
export{Q as Pl,T as Ql,W as Rl,X as Sl,Y as Tl,Z as Ul,_ as Vl};
|
|
@@ -166,4 +166,4 @@ ${Array.from(q.entries()).map(([j,y])=>` window.__stxIslands.register('${j}', f
|
|
|
166
166
|
`)}
|
|
167
167
|
})();
|
|
168
168
|
</script>`}function F(q){let w=q.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(w)return w[1];let j=q.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(j)return j[1];return null}function G(q,w){let j={},y=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,z;while((z=y.exec(q))!==null){let B=z[1],A=z[2];if(A in w)j[B]=w[A];else j[B]=A}return j}
|
|
169
|
-
export{C as
|
|
169
|
+
export{C as pm,D as qm,F as rm,G as sm};
|
|
@@ -7,4 +7,4 @@ var I=new Map,Q=new Map;function z(j,B){let G=B?.id||s(j),J=l(j),U=I.get(G);if(U
|
|
|
7
7
|
<script data-craft-hydration>
|
|
8
8
|
window.__CRAFT_HYDRATION__ = ${JSON.stringify(J)};
|
|
9
9
|
</script>`;return{html:j+U,data:J}}function x(j){let B=!1,G=!1,J=!1,U=!1,X=0,Z=0;function Y(_,q){if(Z=Math.max(Z,q),_.type==="slot")B=!0;if(_.type==="component")X++;if(!_.isStatic)G=!0;if(_.props)for(let $ of Object.keys(_.props)){if($.startsWith("on"))J=!0;if($==="@async"||$==="data-async")U=!0}if(_.children)_.children.forEach(($)=>Y($,q+1))}return Y(j,0),{hasSlots:B,hasDynamicContent:G,hasEventHandlers:J,hasAsyncContent:U,componentCount:X,maxDepth:Z,estimatedSize:JSON.stringify(j).length}}function g(j){let B=new Map,G=new Map;return K(j,(J,U)=>{let X=U.join(".");if(J.isStatic)B.set(X,D(J));else G.set(X,J.tag||J.componentName||"dynamic")}),{staticParts:B,dynamicParts:G}}function h(j){let B=[],G=/<script[^>]*>([\s\S]*?)<\/script>/gi,J;while((J=G.exec(j))!==null)B.push(J[1]);return B}function m(j){let B=[],G=/<style[^>]*>([\s\S]*?)<\/style>/gi,J;while((J=G.exec(j))!==null)B.push(J[1]);return B}function p(j){let B=[],G=/@include\s*\(\s*['"]([^'"]+)['"]/g,J;while((J=G.exec(j))!==null)B.push(J[1]);let U=/@component\s*\(\s*['"]([^'"]+)['"]/g;while((J=U.exec(j))!==null)B.push(J[1]);let X=/<@craft-[\w-]+/g;while((J=X.exec(j))!==null)B.push(J[0].slice(2));return[...new Set(B)]}function A(j){return/\{\{.*?\}\}|\{\!\!.*?\!\!\}/.test(j)}function P(j,B){let G=j.replace(/\{\{\s*(.+?)\s*\}\}/g,(J,U)=>{try{let X=b(U.trim(),B);return R(String(X??""))}catch{return""}});return G=G.replace(/\{!!\s*(.+?)\s*!!\}/g,(J,U)=>{try{let X=b(U.trim(),B);return String(X??"")}catch{return""}}),G}function b(j,B){if(/^[\w.]+$/.test(j)){let G=j.split("."),J=B;for(let U of G)if(J&&typeof J==="object"&&U in J)J=J[U];else return;return J}try{return Function(...Object.keys(B),`return ${j}`)(...Object.values(B))}catch{return}}function R(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(j){return j.replace(/\s+/g," ").replace(/>\s+</g,"><").replace(/\s+>/g,">").replace(/<\s+/g,"<").trim()}function s(j){let B=0;for(let G=0;G<j.length;G++){let J=j.charCodeAt(G);B=(B<<5)-B+J,B=B&B}return`tpl_${Math.abs(B).toString(36)}`}function l(j){let B=0;for(let G=0;G<j.length;G++){let J=j.charCodeAt(G);B=(B<<5)-B+J,B=B&B}return Math.abs(B).toString(36)}var r=0;function c(){return`h_${++r}`}function L(j){return["craft-button","craft-text-input","craft-textarea","craft-checkbox","craft-radio","craft-select","craft-slider","craft-toggle","craft-date-picker","craft-time-picker","craft-color-picker","craft-file-input","craft-modal","craft-alert","craft-toast","craft-progress","craft-spinner","craft-avatar","craft-badge","craft-card","craft-accordion","craft-tabs","craft-tooltip","craft-popover","craft-dropdown","craft-context-menu","craft-data-table","craft-virtual-list","craft-tree-view","craft-map","craft-chart","craft-video","craft-audio","craft-webview","craft-canvas","craft-image-viewer","craft-pdf-viewer","craft-code-editor","craft-rich-editor"].includes(j)}function d(j){let B=j.tag?.toLowerCase(),G=j.props?.type,J={button:{component:"craft-button",confidence:0.95,reason:"Native button provides better touch feedback"},"input:text":{component:"craft-text-input",confidence:0.9,reason:"Native text input has better keyboard handling"},"input:checkbox":{component:"craft-checkbox",confidence:0.95,reason:"Native checkbox follows platform conventions"},"input:range":{component:"craft-slider",confidence:0.9,reason:"Native slider provides smooth interaction"},"input:date":{component:"craft-date-picker",confidence:0.95,reason:"Native date picker provides platform-specific UI"},"input:time":{component:"craft-time-picker",confidence:0.95,reason:"Native time picker provides platform-specific UI"},"input:color":{component:"craft-color-picker",confidence:0.9,reason:"Native color picker provides platform-specific UI"},textarea:{component:"craft-textarea",confidence:0.85,reason:"Native textarea handles multiline input better"},select:{component:"craft-select",confidence:0.9,reason:"Native select provides platform dropdown UI"},progress:{component:"craft-progress",confidence:0.95,reason:"Native progress bar matches platform style"},video:{component:"craft-video",confidence:0.95,reason:"Native video provides hardware acceleration"},audio:{component:"craft-audio",confidence:0.95,reason:"Native audio provides system integration"},dialog:{component:"craft-modal",confidence:0.9,reason:"Native modal provides proper layering and focus"}},U=G?`${B}:${G}`:B,X=J[U||""]||J[B||""];if(X)return{htmlSelector:U||B||"",nativeComponent:X.component,confidence:X.confidence,reason:X.reason};return null}function S(){I.clear()}function M(){Q.clear()}function o(){S(),M()}function a(){return{templateCacheSize:I.size,renderCacheSize:Q.size,totalEntries:I.size+Q.size}}var n={compileTemplate:z,renderSSR:H,generateCraftOptimizations:k,prerenderForCraft:f,clearTemplateCache:S,clearRenderCache:M,clearAllCaches:o,getSSRCacheStats:a},e=n;
|
|
10
|
-
export{z as
|
|
10
|
+
export{z as Mo,H as No,k as Oo,f as Po,S as Qo,M as Ro,o as So,a as To,e as Uo};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{y as
|
|
2
|
+
import{Lq as Y}from"./chunk-d0zjtdw4.js";import{Ks as X,Qr as U,Rr as V}from"./chunk-1xz0w746.js";import{$t as Q,bu as T}from"./chunk-hjm2xab3.js";import O from"path";import{createHash as j}from"crypto";function D(B={}){let A=new Set;return{context:new Proxy(B,{get(z,k){if(k in z)return z[k];if(typeof k==="string"&&!k.startsWith("__"))A.add(k);return},has(z,k){if(k in z)return!0;if(typeof k==="string"&&!k.startsWith("__"))A.add(k);return!1}}),accessedKeys:A}}async function y(B,A,G={}){let z=O.resolve(B),k=await Bun.file(z).text(),Z=j("sha256").update(k).digest("hex").slice(0,16);Q();let I={};try{I=await V()}catch{}let E=[],_=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,F;while((F=_.exec(k))!==null){let $=F[1];if(/\bserver\b/.test($))E.push(F[2])}let{context:J}=D({__filename:z,__dirname:O.dirname(z)}),L=new Set,q={...U,...I,...G,buildMode:"compile",strict:!1},N=await X(k,J,z,q,L),w=Y(N),W=T();return{route:A,sourceFile:B,html:N,fragment:w,placeholders:W,hasServerScripts:E.length>0,serverScriptContent:E,dependencies:Array.from(L),contentHash:Z,streamTemplates:J.__streamTemplates}}
|
|
3
|
+
export{y as Fi};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
function z(j){let q=/import\s*\{([^}]+)\}\s*from\s*['"](@stores|stx\/stores)['"]\s*;?\n?/g;j=j.replace(q,(w,k)=>{return`const { ${k.split(",").map((n)=>n.trim()).filter(Boolean).join(", ")} } = window.__STX_STORES__
|
|
3
3
|
`});let v=/import\s*\{([^}]+)\}\s*from\s*['"]@composables['"]\s*;?\n?/g;return j=j.replace(v,(w,k)=>{return`const { ${k.split(",").map((n)=>n.trim()).filter(Boolean).join(", ")} } = window.__composables
|
|
4
4
|
`}),j}
|
|
5
|
-
export{z as
|
|
5
|
+
export{z as tt};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{B as
|
|
2
|
+
import{Lk as y,Mk as z,Ok as A}from"./chunk-ckxjqqn9.js";var E={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:500,cacheVariants:!0,cachePlaceholders:!0};class B{config;constructor(j={}){this.config={...E,...j}}async get(j,k){return y(j,k,"image",this.config)}async set(j,k,q){return z(j,k,q,"image",this.config)}async clear(){return A("image",this.config)}updateConfig(j){this.config={...this.config,...j}}}var w=null;function x(j){if(!w)w=new B(j);else if(j)w.updateConfig(j);return w}async function G(j,k,q){let v=q?{directory:`${q.outputDir}/../.cache`}:{};return x(v).get(j,k)}async function H(j,k,q,v){let D=v?{directory:`${v.outputDir}/../.cache`}:{};return x(D).set(j,k,q)}async function J(){return x().clear()}
|
|
3
|
+
export{B as Gk,G as Hk,H as Ik,J as Jk};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var c={".html":"text/html",".css":"text/css",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".ico":"image/x-icon",".webp":"image/webp",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".eot":"application/vnd.ms-fontobject",".otf":"font/otf",".mp4":"video/mp4",".webm":"video/webm",".mp3":"audio/mpeg",".wav":"audio/wav",".pdf":"application/pdf",".zip":"application/zip",".xml":"application/xml",".txt":"text/plain",".md":"text/markdown",".stx":"text/html"};function g(b){return c[b.toLowerCase()]||"application/octet-stream"}var h={port:3000,watch:!0,native:!1,cache:!1,hotReload:!0,hmrPort:3001,profile:!1,debugDirectives:!1,titlebarHidden:!1};
|
|
3
|
-
export{c as
|
|
3
|
+
export{c as bo,g as co,h as do};
|
|
@@ -395,4 +395,4 @@ else {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
</script>`}function l(z){let j=z.customDirectives||[];return j.push(b),j.push(P),j.push(x),j.push(E),j.push(k),j.push(h),j.push(v),{...z,customDirectives:j}}
|
|
398
|
-
export{_ as
|
|
398
|
+
export{_ as nA,$ as oA,F as pA,W as qA,b as rA,E as sA,P as tA,x as uA,T as vA,Z as wA,k as xA,h as yA,v as zA,f as AA,g as BA,d as CA,y as DA,l as EA};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{I as
|
|
2
|
+
import{uz as w}from"./chunk-w3b6m427.js";import{defineRoute as M,defineRoutes as Q,resetRoutes as R,route as S,setAppUrl as T}from"stx-router";import{route as B}from"stx-router";function I(y){return y.replace(/@route\(\s*(['"])([^'"]+)\1(?:\s*,\s*(\{[^}]+\}))?\s*(?:,\s*(true|false)\s*)?\)/g,(C,D,z,q,A)=>{try{let k=q?w(q,{}):{};return B(z,k,A==="true")}catch(k){return console.error(`Error processing @route directive: ${k}`),"#route-error"}})}
|
|
3
|
+
export{I as Jt,M as Kt,Q as Lt,R as Mt,S as Nt,T as Ot};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var Z=[{open:"@if",close:"@endif",name:"if"},{open:"@unless",close:"@endunless",name:"unless"},{open:"@foreach",close:"@endforeach",name:"foreach"},{open:"@for",close:"@endfor",name:"for"},{open:"@while",close:"@endwhile",name:"while"},{open:"@forelse",close:"@endforelse",name:"forelse"},{open:"@switch",close:"@endswitch",name:"switch"},{open:"@isset",close:"@endisset",name:"isset"},{open:"@empty",close:"@endempty",name:"empty"},{open:"@auth",close:"@endauth",name:"auth"},{open:"@guest",close:"@endguest",name:"guest"},{open:"@can",close:"@endcan",name:"can"},{open:"@cannot",close:"@endcannot",name:"cannot"},{open:"@section",close:"@endsection",name:"section",altClose:"@show"},{open:"@push",close:"@endpush",name:"push"},{open:"@prepend",close:"@endprepend",name:"prepend"},{open:"@once",close:"@endonce",name:"once"},{open:"@markdown",close:"@endmarkdown",name:"markdown"},{open:"@component",close:"@endcomponent",name:"component"}],$=[{pattern:/@if\s*[^(]/,message:"@if directive missing parentheses",suggestion:"Use @if(condition)"},{pattern:/@foreach\s*[^(]/,message:"@foreach directive missing parentheses",suggestion:"Use @foreach(items as item)"},{pattern:/@foreach\([^)]*\)\s*[^@\n<]/,message:"@foreach may have content on same line",suggestion:"Put content on new line after @foreach()"},{pattern:/@include\s*[^(]/,message:"@include directive missing parentheses",suggestion:"Use @include('partial-name')"},{pattern:/@extends\s*[^(]/,message:"@extends directive missing parentheses",suggestion:"Use @extends('layout-name') or @layout('layout-name')"},{pattern:/@layout\s*[^(]/,message:"@layout directive missing parentheses",suggestion:"Use @layout('layout-name')"}],B=[{pattern:/\{\{\s*constructor\s*\}\}/,message:"Attempting to access constructor property"},{pattern:/\{\{\s*__proto__\s*\}\}/,message:"Attempting to access __proto__ property"},{pattern:/\{\{\s*eval\s*\(/,message:"Attempting to use eval in expression"}];function F(j){let z=[],b=[];return G(j,z),L(j,z,b),U(j,b),f(j,z),{valid:z.length===0,errors:z,warnings:b}}function G(j,z){let b=(j.match(/\{\{/g)||[]).length,q=(j.match(/\}\}/g)||[]).length;if(b!==q)z.push({type:"expression",message:`Unclosed expression brackets: found ${b} opening '{{' and ${q} closing '}}'`,suggestion:"Ensure every {{ has a matching }}"})}function L(j,z,b){for(let q of Z){let W=new RegExp(`${q.open}(?:\\s|\\()`,"g"),X=new RegExp(q.close,"g"),Q=(j.match(W)||[]).length,J=(j.match(X)||[]).length;if(q.altClose){let Y=new RegExp(q.altClose,"g");J+=(j.match(Y)||[]).length}if(Q>J)z.push({type:"directive",message:`Unclosed @${q.name} directive: found ${Q} opening and ${J} closing`,suggestion:`Add ${Q-J} missing ${q.close} tag(s)`});else if(J>Q)b.push({type:"directive",message:`Extra ${q.close} found: ${J-Q} more closing than opening`,suggestion:`Check for orphaned ${q.close} tags`})}}function U(j,z){for(let b of $)if(b.pattern.test(j))z.push({type:"syntax",message:b.message,suggestion:b.suggestion})}function f(j,z){for(let b of B)if(b.pattern.test(j))z.push({type:"expression",message:`Security warning: ${b.message}`,suggestion:"Remove dangerous code from template expressions"})}function H(j,z){let b=j.slice(0,z).split(`
|
|
3
3
|
`);return{line:b.length,column:b[b.length-1].length+1}}function K(j,z,b){let q=[];switch(j){case"if":case"elseif":case"unless":if(b.length===0)q.push({type:"syntax",message:`@${j} requires a condition`,suggestion:`Use @${j}(condition)`});break;case"foreach":if(b.length===0||!b[0].includes(" as "))q.push({type:"syntax",message:'@foreach requires "items as item" syntax',suggestion:"Use @foreach(items as item) or @foreach(items as key => value)"});break;case"for":if(b.length===0)q.push({type:"syntax",message:"@for requires loop parameters",suggestion:"Use @for(let i = 0; i < 10; i++)"});break;case"switch":if(b.length===0)q.push({type:"syntax",message:"@switch requires an expression",suggestion:"Use @switch(expression)"});break;case"case":if(b.length===0)q.push({type:"syntax",message:"@case requires a value",suggestion:"Use @case(value)"});break;case"include":case"extends":case"component":if(b.length===0)q.push({type:"syntax",message:`@${j} requires a path`,suggestion:`Use @${j}('path/to/template')`});break}return q}function M(j){return/@[a-z]+/i.test(j)||/\{\{/.test(j)}function V(j){let z=j.matchAll(/@([a-z]+)/gi),b=new Set;for(let q of z){let W=q[1].toLowerCase();if(!W.startsWith("end"))b.add(W)}return Array.from(b)}
|
|
4
|
-
export{F as
|
|
4
|
+
export{F as Zs,H as _s,K as $s,M as at,V as bt};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Lb as P}from"./chunk-
|
|
2
|
+
import{Lb as P}from"./chunk-8ahwt6a4.js";import{Mb as Q}from"./chunk-jc0fc4ht.js";import{Bc as O}from"./chunk-6e4c6g46.js";import{Sc as G,Tc as J,Uc as K,Wc as M,Xc as N,ad as L}from"./chunk-yn38c15w.js";import{fe as D}from"./chunk-0qnz93q2.js";import{pB as Z}from"./chunk-xv34zbp4.js";async function $(k={}){G();let b=await D({mode:"dev"});if(!b.config.enabled){N("Story feature is disabled in config.");return}await Q(b);let T=k.port??b.config.port,j,q=async()=>{j=await P(b,{port:T,open:k.open,host:k.host}),K(b.storyFiles.length),J(j.url),L()};await q();let V=O(b,{onChange:async()=>{await j.close();let A=await D({mode:"dev"});Object.assign(b,A),await q()}}),z=async()=>{console.log(`
|
|
3
3
|
`),V.stop(),await j.close(),process.exit(0)};if(process.on("SIGINT",z),process.on("SIGTERM",z),process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",async(A)=>{switch(A.toString()){case"h":L();break;case"o":try{let{exec:X}=await import("child_process"),Y=process.platform==="darwin"?"open":process.platform==="win32"?"start":"xdg-open";X(`${Y} ${j.url}`)}catch{M("Failed to open browser")}break;case"r":await j.close(),await q();break;case"c":console.clear(),G(),K(b.storyFiles.length),J(j.url);break;case"q":case"\x03":await z();break}});await new Promise(()=>{})}var U=$;
|
|
4
4
|
export{$ as Jb,U as Kb};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var P=[320,480,640,768,1024,1280,1536,1920,2560],M=[1,1.5,2,3],I=["avif","webp","jpeg"],L={avif:"image/avif",webp:"image/webp",jpeg:"image/jpeg",png:"image/png",gif:"image/gif"},_={avif:"avif",webp:"webp",jpeg:"jpg",png:"png",gif:"gif"};function A(J,K=P,Z={},B){return K.sort((C,G)=>C-G).map((C)=>{return`${Y(J,{...Z,w:C,fm:B})} ${C}w`}).join(", ")}function D(J,K=320,Z=2560,B=0.08,C={},G){let $=F(K,Z,B);return A(J,$,C,G)}function F(J,K,Z=0.08){let B=[],C=J;while(C<K)B.push(Math.round(C)),C*=1+Z*2;if(B[B.length-1]!==K)B.push(K);return B}function V(J,K,Z=M,B={},C){return Z.sort((G,$)=>G-$).map((G)=>{let $=Math.round(K*G);return`${Y(J,{...B,w:$,dpr:G,fm:C})} ${G}x`}).join(", ")}function E(J,K,Z=M,B=80,C={},G){let $={1:B,1.5:Math.round(B*0.9),2:Math.round(B*0.8),3:Math.round(B*0.7),4:Math.round(B*0.6),5:Math.round(B*0.5)};return Z.sort((X,H)=>X-H).map((X)=>{let H=Math.round(K*X),j=$[X]||Math.round(B*Math.max(0.5,1-X*0.1));return`${Y(J,{...C,w:H,q:j,dpr:X,fm:G})} ${X}x`}).join(", ")}function U(J,K="100vw"){if(!J||Object.keys(J).length===0)return K;let B=Object.entries(J).map(([C,G])=>{let $=/^\d+$/.test(C)?`${C}px`:C;return{bp:$,size:G,numericBp:Number.parseInt($)||0}}).sort((C,G)=>C.numericBp-G.numericBp).map(({bp:C,size:G})=>`(max-width: ${C}) ${G}`);return B.push(K),B.join(", ")}function z(J,K="100vw"){if(!J||J.length===0)return K;let B=[...J].sort((C,G)=>(C.maxWidth||0)-(G.maxWidth||0)).filter((C)=>C.maxWidth).map((C)=>`(max-width: ${C.maxWidth}px) ${C.imageWidth}`);return B.push(K),B.join(", ")}var Q={fullWidth:"100vw",halfDesktop:"(max-width: 768px) 100vw, 50vw",thirdDesktop:"(max-width: 768px) 100vw, 33.33vw",quarterDesktop:"(max-width: 480px) 100vw, (max-width: 768px) 50vw, 25vw",contentWidth:"(max-width: 768px) 100vw, (max-width: 1200px) 80vw, 960px"};function Y(J,K={}){let Z=Object.entries(K).filter(([,G])=>G!==void 0&&G!==null).map(([G,$])=>{if(Array.isArray($))return[G,$.join(",")];return[G,String($)]});if(Z.length===0)return J;let B=Z.map(([G,$])=>`${G}=${encodeURIComponent($)}`).join("&"),C=J.includes("?")?"&":"?";return`${J}${C}${B}`}function T(J){let[K,Z]=J.split("?"),B={};if(Z)new URLSearchParams(Z).forEach((G,$)=>{if(/^\d+$/.test(G))B[$]=Number.parseInt(G,10);else if(/^\d+\.\d+$/.test(G))B[$]=Number.parseFloat(G);else if(G==="true")B[$]=!0;else if(G==="false")B[$]=!1;else B[$]=G});return{src:K,params:B}}function x(J){let{src:K,widths:Z,dprValues:B,fixedWidth:C,formats:G=I,baseUrl:$="",params:X={}}=J,H=[];for(let j of G){let O,q;if(C!==void 0&&B)O=V(K,C,B,X,j),q=B.map((N)=>({path:"",url:Y(K,{...X,w:Math.round(C*N),fm:j}),width:Math.round(C*N),height:0,format:j,size:0,dpr:N}));else{let N=Z||P;O=A(K,N,X,j),q=N.map((R)=>({path:"",url:Y(K,{...X,w:R,fm:j}),width:R,height:0,format:j,size:0}))}H.push({srcset:O,format:j,mimeType:L[j],variants:q})}return H}function w(J,K="100vw"){return J.map(({srcset:Z,mimeType:B})=>`<source type="${B}" srcset="${Z}" sizes="${K}" />`).join(`
|
|
3
3
|
`)}function g(J,K){if(J.length===0)return;let Z=[...J].sort((C,G)=>C.width-G.width),B=Z.find((C)=>C.width>=K);if(B)return B;return Z[Z.length-1]}function S(J,K){let Z=K?J.filter((C)=>C.format===K):J;if(Z.length===0){let C=J.filter(($)=>$.format==="jpeg"),G=C.length>0?C:J;return G[Math.floor(G.length/2)]}let B=Z.sort((C,G)=>C.width-G.width);return B[Math.floor(B.length/2)]}function W(J){let K=new Map;for(let Z of J){let B=K.get(Z.format)||[];B.push(Z),K.set(Z.format,B)}return K}function k(J){return L[J]||"application/octet-stream"}function y(J){return _[J]||J}function c(J){switch(J.split(".").pop()?.toLowerCase()){case"jpg":case"jpeg":return"jpeg";case"png":return"png";case"webp":return"webp";case"avif":return"avif";case"gif":return"gif";default:return}}
|
|
4
|
-
export{P as
|
|
4
|
+
export{P as xu,M as yu,I as zu,L as Au,_ as Bu,A as Cu,D as Du,F as Eu,V as Fu,E as Gu,U as Hu,z as Iu,Q as Ju,Y as Ku,T as Lu,x as Mu,w as Nu,g as Ou,S as Pu,W as Qu,k as Ru,y as Su,c as Tu};
|
|
@@ -8,4 +8,4 @@ ${y.element}`);U.push("@endif");let j=U.join(`
|
|
|
8
8
|
`),B=G[0].outerStart,S=G[G.length-1].outerEnd;b=b.slice(0,B)+j+b.slice(S),q=B+j.length}return b}function v(z){return z.replace(/\bv-show="([^"]*)"/g,'@show="$1"')}function f(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=k.attrs,G=!1,X=/v-model:([a-zA-Z_][a-zA-Z0-9_]*)(?:\.([a-zA-Z.]+))?\s*=\s*"([^"]*)"/,Y=K.match(X);while(Y){G=!0;let Z=Y[1],U=Y[2],j=Y[3];K=K.replace(Y[0],""),K+=` :${Z}="${j}" @update:${Z}="${j} = $event"`,Y=K.match(X)}if(G){let Z=J(b,k),U=b.slice(Z.outerStart,Z.outerEnd),j=W(U,{...k,start:0,end:k.end-k.start},K);b=b.slice(0,Z.outerStart)+j+b.slice(Z.outerEnd),q=Z.outerStart+j.length;continue}let Q=I(k.attrs,"v-model");if(Q===null){q=k.end;continue}if(A.has(k.tag.toLowerCase())){let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"")+` @model="${Q}"`,U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}else{let Z=k.attrs.replace(/\s*v-model="[^"]*"/g,"");Z+=` :modelValue="${Q}" @update:modelValue="${Q} = $event"`;let U=J(b,k),j=b.slice(U.outerStart,U.outerEnd),B=W(j,{...k,start:0,end:k.end-k.start},Z);b=b.slice(0,U.outerStart)+B+b.slice(U.outerEnd),q=U.outerStart+B.length}}return b}function x(z){return z.replace(/\bv-bind:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'@bind:$1="$2"')}function d(z){return z.replace(/\bv-on:([a-zA-Z_][a-zA-Z0-9_.-]*)\s*=\s*"([^"]*)"/g,'@$1="$2"')}function p(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-html");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-html"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{!! ${K} !!}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function o(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;let K=I(k.attrs,"v-text");if(K===null){q=k.end;continue}if(k.selfClosing){q=k.end;continue}let G=J(b,k),X=L(k.attrs,"v-text"),Y=k.selfClosing?" /":"",Q=`<${k.tag}${X}${Y}>{{ ${K} }}</${k.tag}>`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function u(z){return z.replace(/(<[a-zA-Z][a-zA-Z0-9-]*)(\s[^>]*?)\s+v-pre([^>]*>)/g,"$1$2 data-stx-skip$3").replace(/(<[a-zA-Z][a-zA-Z0-9-]*)\s+v-pre(\s[^>]*>|>)/g,"$1 data-stx-skip$2")}function i(z){let b=z,q=0;while(q<b.length){let k=P(b,q);if(!k)break;if(!w(k.attrs,"v-once")){q=k.end;continue}let K=L(k.attrs,"v-once"),G=J(b,k),X=b.slice(G.outerStart,G.outerEnd),Q=`@once
|
|
9
9
|
${W(X,{...k,start:0,end:k.end-k.start},K)}
|
|
10
10
|
@endonce`;b=b.slice(0,G.outerStart)+Q+b.slice(G.outerEnd),q=G.outerStart+Q.length}return b}function h(z){return z.replace(/\bv-memo="([^"]*)"/g,'data-stx-memo="$1"')}function c(z){return z.replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)\s*=\s*"([^"]*)"/g,'#$1="$2"').replace(/\bv-slot:([a-zA-Z_][a-zA-Z0-9_-]*)(?=[\s>])/g,"#$1").replace(/\bv-slot\s*=\s*"([^"]*)"/g,'#default="$1"')}function g(z){if(!E(z))return z;let b=z;return b=T(b),b=V(b),b=i(b),b=x(b),b=d(b),b=f(b),b=v(b),b=c(b),b=p(b),b=o(b),b=u(b),b=h(b),b}
|
|
11
|
-
export{E as
|
|
11
|
+
export{E as Xs,g as Ys};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Cu as l,Fu as XJ,Hu as i,Ku as c,Ru as a,xu as d,zu as n}from"./chunk-m167kjhv.js";import{Vu as p,av as ZJ,cv as $J}from"./chunk-3a4qsygv.js";import{pB as VJ}from"./chunk-xv34zbp4.js";async function WJ(){try{return await import("./media/image/processor/index.js")}catch(J){if(!JJ)console.warn("[stx-media] Image processor not available, some features disabled:",J),JJ=!0;return null}}var JJ=!1,o=80,h="async",y="lazy",KJ=!1;async function m(J,K={}){let $=K,X=J;if(X.process&&!X.skipOptimization){if($.tsImagesConfig?.enabled&&!$.isDev)return RJ(X,$)}if($.processedResult?.processed)return s(J,$.processedResult,K);if($.responsiveVariants)return HJ(J,$.responsiveVariants,K);let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,dpr:k,formats:Z=n,quality:Y=o,params:N={},placeholder:G="none",placeholderOptions:j={},lazy:R=!0,priority:_=!1,loading:L=_?"eager":y,decoding:E=h,fetchpriority:D,objectFit:f,objectPosition:I,crossorigin:H,referrerpolicy:S}=J,F=J.class,O=J.style,z=J.id,x=J.data||{},{isDev:C=!1,baseUrl:v=""}=K;if(C&&!K.optimize)return kJ(J);let P,q,T=z||`stx-img-${Math.random().toString(36).slice(2,8)}`;if(G!=="none"&&!_)try{P=await $J(B,{strategy:G,...j}),q=ZJ(T,P,j)}catch{}let u=k!==void 0&&M!==void 0,b;if(u)b=GJ(J,T,P,K);else b=await wJ(J,T,P,K);let A;if(_){let t=Z.includes("webp")?"webp":Z[0],QJ=l(B,w,{...N,q:Y},t),MJ=typeof W==="object"?i(W):W||"100vw";A=`<link rel="preload" as="image" imagesrcset="${QJ}" imagesizes="${MJ}" />`}let g=[];if(!KJ&&G!=="none")g.push(p),KJ=!0;if(q)g.push(q);let qJ=R?YJ(T):void 0;return{html:b,preloadLink:A,css:g.length>0?g.join(`
|
|
3
3
|
`):void 0,script:qJ}}async function wJ(J,K,$,X){let{src:B,alt:Q,width:M,height:V,sizes:W,widths:w=d,formats:k=n,quality:Z=o,params:Y={},lazy:N=!0,priority:G=!1,loading:j=G?"eager":y,decoding:R=h,fetchpriority:_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f}=J,I=J.class,H=J.style,S=J.data||{},F=typeof W==="object"?i(W):W||"100vw",O=[];for(let C of k){let v=l(B,w,{...Y,q:Z},C),P=a(C);if(N&&!G)O.push(` <source type="${P}" data-srcset="${v}" data-sizes="${F}" />`);else O.push(` <source type="${P}" srcset="${v}" sizes="${F}" />`)}let z=r({src:c(B,{...Y,q:Z}),alt:Q,width:M,height:V,loading:G?void 0:j,decoding:R,fetchpriority:G?"high":_,objectFit:L,objectPosition:E,crossorigin:D,referrerpolicy:f,className:BJ(I,$),style:e(H,L,E,$),lazy:N&&!G,data:S}),x;if($){let C=`background-image: url('${$.dataURL}'); background-size: cover; background-position: center;`;x=`<div id="${K}" class="stx-img-placeholder" style="${C}">
|
|
4
4
|
<picture>
|
|
5
5
|
${O.join(`
|
|
@@ -61,4 +61,4 @@ ${f.join(`
|
|
|
61
61
|
<img ${H.join(" ")} />
|
|
62
62
|
</picture>`;let C=[];if(K.placeholder)C.push(p);let v=M?YJ(G):void 0,P;if(V&&E)P=`<link rel="preload" as="image" imagesrcset="${E}" />`;return{html:x,preloadLink:P,css:C.length>0?C.join(`
|
|
63
63
|
`):void 0,script:v}}async function HJ(J,K,$){let X={src:K.src,processed:!0,variants:[],placeholder:K.placeholder?.dataURL,originalWidth:K.placeholder?.width,originalHeight:K.placeholder?.height};for(let[B,Q]of Object.entries(K.byFormat))if(Q)X.variants.push(...Q);return s(J,X,$)}
|
|
64
|
-
export{m as
|
|
64
|
+
export{m as uu,OJ as vu,NJ as wu};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var F=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function H(j,q,w){let k={fullTag:w,content:q,attrs:j};if(/\bserver\b/.test(j))return{...k,type:"server"};if(/\bdata-stx-scoped\b/.test(j))return{...k,type:"client"};if(F.test(q))return{...k,type:"signals"};if(/\bclient\b/.test(j)||/\btype\s*=\s*["']module["']/.test(j)||/\bsrc\s*=/.test(j))return{...k,type:"client"};return{...k,type:"server"}}function J(j){let q=[],w=[],k=[],D=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,z;while((z=D.exec(j))!==null){let B=H(z[1],z[2],z[0]);switch(B.type){case"signals":q.push(B);break;case"client":w.push(B);break;case"server":k.push(B);break}}return{signals:q,client:w,server:k}}
|
|
3
|
-
export{H as
|
|
3
|
+
export{H as Pq,J as Qq};
|
|
@@ -4,4 +4,4 @@ var M=(j,q,v,x)=>`(function(){function read(){try{var k=${JSON.stringify(q)};var
|
|
|
4
4
|
${w}`)}if(!j.includes("__stxThemeGuard")&&/<head\b[^>]*>/i.test(j)){let w=`<script data-stx-theme-guard="1">${M(x,J,z,B)};window.__stxThemeGuard=1;</script>`;j=j.replace(/<head\b([^>]*)>/i,`<head$1>
|
|
5
5
|
${w}`)}if(!j.includes("__stxThemeToggle")&&/<\/body>/i.test(j)){let w=`<script data-stx-theme-toggle="1">${Q(J,z,B)};window.__stxThemeToggle=1;</script>`;j=j.replace(/<\/body>/i,`${w}
|
|
6
6
|
</body>`)}return j}
|
|
7
|
-
export{V as
|
|
7
|
+
export{V as Zg};
|
|
@@ -5,4 +5,4 @@ var P=new Map([["craft-button",{name:"Button",zigType:"craft.Button",props:[{nam
|
|
|
5
5
|
${F} [${U.join(`,
|
|
6
6
|
${F} `)}]`:"";return`Craft.create("${j.zigType}", ${Q}${W})`}function s(j,q,F){if(q.target==="universal"){let G=[];G.push("// Universal entry point"),G.push("");for(let[Q,U]of F)G.push(`// --- ${Q.toUpperCase()} ---`),G.push(`#if ${Q.toUpperCase()}`),G.push(U),G.push("#endif"),G.push("");return G.join(`
|
|
7
7
|
`)}return F.get(q.target)||J(j,q)}function r(j,q,F){let G=[];function Q(U){G.push({name:U.zigType,hash:D(JSON.stringify(U.props)),props:Object.keys(U.props),events:Array.from(U.events.keys()),slots:[],isNative:U.zigType.startsWith("craft.")});for(let W of U.children)Q(W)}return Q(q),{version:"1.0.0",components:G,entry:j.id,assets:[],styles:j.styles}}function p(j,q){return JSON.stringify({version:3,file:"output.zig",sources:["input.stx"],mappings:""})}var d=0;function E(){return`id_${++d}`}function D(j){let q=0;for(let F=0;F<j.length;F++){let G=j.charCodeAt(F);q=(q<<5)-q+G,q=q&q}return Math.abs(q).toString(36)}function l(j){return j.charAt(0).toUpperCase()+j.slice(1)}function i(j){let q=[],F=/<script[^>]*>([\s\S]*?)<\/script>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function a(j){let q=[],F=/<style[^>]*>([\s\S]*?)<\/style>/gi,G;while((G=F.exec(j))!==null)q.push(G[1]);return q}function B(j){let q=j.type==="component"?1:0;if(j.children)for(let F of j.children)q+=B(F);return q}function b(j){let q=j.zigType.startsWith("craft.")?1:0;for(let F of j.children)q+=b(F);return q}function o(j){return{start:async()=>{console.log("[craft-compiler] Hot reload server started")},stop:async()=>{console.log("[craft-compiler] Hot reload server stopped")},notifyChange:(q)=>{console.log(`[craft-compiler] File changed: ${q}`)}}}var t={compileToNative:k,createHotReloadServer:o,NATIVE_COMPONENTS:P},e=t;
|
|
8
|
-
export{P as
|
|
8
|
+
export{P as Bo,k as Co,o as Do,e as Eo};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{oB as $}from"./chunk-xv34zbp4.js";import M from"fs";import Q from"path";function B(j){let w=0;for(let k=0;k<j.length;k++){let q=j[k];w=(w<<5)-w+q,w=w&w}return Math.abs(w).toString(16).padStart(8,"0")}function C(j,w){let k=Q.basename(j);for(let q of w)if(q.startsWith("*.")){let H=q.slice(1);if(k.endsWith(H))return!0}else if(q.includes("*")){let H=new RegExp(`^${q.replace(/\*/g,".*")}$`);if(H.test(k)||H.test(j))return!0}else if(k===q||j.includes(q))return!0;return!1}function L(j,w,k){let q=Q.extname(j).toLowerCase(),H=A[q],K=(k.maxFileSizeKB||500)*1024;if(w>K)return!1;if(k.exclude&&C(j,k.exclude))return!1;if(k.include&&k.include.length>0){for(let J of k.include)if(J.startsWith("*.")){if(j.endsWith(J.slice(1)))return!0}else if(j.includes(J))return!0}if(H&&k[H]===!0)return!0;if(!H)return!1;return!1}function W(j,w,k,q){let H=M.readdirSync(j,{withFileTypes:!0});for(let K of H){let J=Q.join(j,K.name);if(K.isDirectory()){if(["node_modules",".git",".stx"].includes(K.name))continue;W(J,w,k,q)}else if(K.isFile()){let U=M.statSync(J),V=Q.relative(w,J);if(L(V,U.size,k)){let X=M.readFileSync(J),Y=B(X),Z=`/${V.replace(/\\/g,"/")}`;q.push({url:Z,revision:Y,size:U.size})}}}}function F(j,w){let k=w.pwa?.precache,q=[];if(!k?.enabled)return{entries:[],totalSize:0,fileCount:0};if(!M.existsSync(j))return{entries:[],totalSize:0,fileCount:0};W(j,j,k,q),q.sort((K,J)=>K.url.localeCompare(J.url));let H=q.reduce((K,J)=>K+J.size,0);return{entries:q,totalSize:H,fileCount:q.length}}function G(j){if(j.entries.length===0)return"[]";return`[
|
|
3
3
|
${j.entries.map((k)=>` { url: '${k.url}', revision: '${k.revision}' }`).join(`,
|
|
4
4
|
`)}
|
|
5
5
|
]`}function R(j){if(j<1024)return`${j} B`;if(j<1048576)return`${(j/1024).toFixed(1)} KB`;return`${(j/1048576).toFixed(2)} MB`}var A;var O=$(()=>{A={".html":"includeHtml",".htm":"includeHtml",".js":"includeJs",".mjs":"includeJs",".css":"includeCss",".png":"includeImages",".jpg":"includeImages",".jpeg":"includeImages",".gif":"includeImages",".webp":"includeImages",".svg":"includeImages",".ico":"includeImages",".woff":"includeFonts",".woff2":"includeFonts",".ttf":"includeFonts",".eot":"includeFonts",".otf":"includeFonts"}});
|
|
@@ -16,4 +16,4 @@ ${D.join(`
|
|
|
16
16
|
</html>`}function H(q){return/<!DOCTYPE\b/i.test(q)||/<html[\s>]/i.test(q)}function w(q,K={}){let F=q.lastIndexOf("</head>");if(F===-1)return q;let{meta:Z=[],link:_=[],script:$=[],headRaw:U=""}=K,N=q.slice(0,F),G=[];for(let z of Z){let J=z.name?`name="${z.name}"`:z.property?`property="${z.property}"`:z.charset!=null?"charset=":z["http-equiv"]?`http-equiv="${z["http-equiv"]}"`:"";if(J&&N.includes(J))continue;G.push(` <meta ${Object.entries(z).map(([O,E])=>`${O}="${E}"`).join(" ")}>`)}for(let z of _){if(z.href&&N.includes(`href="${z.href}"`))continue;G.push(` <link ${Object.entries(z).map(([J,O])=>`${J}="${O}"`).join(" ")}>`)}for(let z of $)if(z.src){if(N.includes(`src="${z.src}"`))continue;G.push(` <script ${Object.entries(z).filter(([J])=>J!=="content").map(([J,O])=>`${J}="${O}"`).join(" ")}></script>`)}else if(z.content){if(N.includes(z.content))continue;G.push(` <script>${z.content}</script>`)}if(U&&!N.includes(U))G.push(` ${U}`);if(G.length===0)return q;return`${q.slice(0,F)}${G.join(`
|
|
17
17
|
`)}
|
|
18
18
|
${q.slice(F)}`}function x(q,K={},F={}){if(H(q))return q;return A(q,K,F)}
|
|
19
|
-
export{S as
|
|
19
|
+
export{S as Cw,b as Dw,A as Ew,H as Fw,w as Gw,x as Hw};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Sw as g}from"./chunk-0dx4q6yq.js";function A(){console.log(`
|
|
3
3
|
Keyboard shortcuts:`),console.log(` ${g.cyan}o${g.reset} + Enter - Open in browser`),console.log(` ${g.cyan}c${g.reset} + Enter - Clear console`),console.log(` ${g.cyan}q${g.reset} + Enter (or ${g.cyan}Ctrl+C${g.reset}) - Quit server`),console.log(` ${g.cyan}h${g.reset} + Enter - Show this help`)}function F(q){console.log(`${g.green}Server running at ${g.cyan}${q}${g.reset}`),console.log(`Press ${g.cyan}Ctrl+C${g.reset} to stop the server`),A()}function G(q){console.log(`${g.dim}Opening ${g.cyan}${q}${g.dim} in your browser...${g.reset}`),Bun.spawn(["open",q],{stderr:"inherit"})}function L(q,x,z){if(!process.stdin.isTTY)return;process.stdin.setRawMode(!0),process.stdin.setEncoding("utf8"),process.stdin.resume(),A();let j="";process.stdin.on("data",(D)=>{if(D==="\x03"){if(z?.onQuit)z.onQuit();x(),process.exit(0)}if(j+=D,j.endsWith("\r")||j.endsWith(`
|
|
4
4
|
`)){let E=j.trim().toLowerCase();j="",J(E,q,x,z)}})}function J(q,x,z,j){switch(q){case"o":if(j?.onOpen)j.onOpen();else G(x);break;case"c":if(j?.onClear)j.onClear();else console.clear(),F(x);break;case"q":if(j?.onQuit)j.onQuit();console.log(`${g.yellow}Stopping server...${g.reset}`),z(),process.exit(0);break;case"h":if(j?.onHelp)j.onHelp();else A();break;default:break}}function M(){if(process.stdin.isTTY)process.stdin.setRawMode(!1),process.stdin.pause()}
|
|
5
|
-
export{A as
|
|
5
|
+
export{A as so,F as to,G as uo,L as vo,M as wo};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{pB as B}from"./chunk-xv34zbp4.js";async function K(){try{return typeof(await import("@stacksjs/desktop")).createWindowWithHTML==="function"}catch{return!1}}async function N(q,b,u,f={}){try{let z=await import("@stacksjs/desktop"),A=b.story?.variants.find((C)=>C.id===u);if(!A)return null;let D=f.title||`${b.fileName} - ${A.title}`,E=F(q,b,A),J=await z.createWindowWithHTML(E,{title:D,width:f.width||800,height:f.height||600});return{close:()=>{},reload:()=>{},update:(C)=>{}}}catch(z){return console.warn("Desktop preview not available:",z),null}}function F(q,b,u){let{theme:f}=q.config;return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
function W(C){let{token:J,baseUrl:K="https://api.netlify.com/api/v1"}=C;async function E(A,j,F={}){let L=`${K}${j}`,O={Authorization:`Bearer ${J}`,"User-Agent":"stx-deploy/1.0"},M;if(F.rawBody)O["Content-Type"]=F.contentType||"application/octet-stream",M=F.rawBody;else if(F.body)O["Content-Type"]="application/json",M=JSON.stringify(F.body);let D=await fetch(L,{method:A,headers:O,body:M});if(!D.ok){let Q=Error(`Netlify API error: ${D.status} ${D.statusText}`);Q.status=D.status;try{let R=await D.json();Q.message=R.message||Q.message,Q.code=R.code,Q.details=R}catch{}throw Q}let H=await D.text();if(!H)return{};return JSON.parse(H)}return{async getSite(A){return E("GET",`/sites/${A}`)},async listSites(){return E("GET","/sites")},async createSite(A){let j={};if(A)j.name=A;return E("POST","/sites",{body:j})},async createDeploy(A,j){let F={files:j.files,draft:j.draft??!0,async:j.async??!0};if(j.title)F.title=j.title;if(j.branch)F.branch=j.branch;if(j.functions)F.functions=j.functions;return E("POST",`/sites/${A}/deploys`,{body:F})},async uploadFile(A,j,F){let L=j.startsWith("/")?j.slice(1):j;await E("PUT",`/deploys/${A}/files/${L}`,{rawBody:F,contentType:"application/octet-stream"})},async uploadFiles(A,j){let L=[...j],O=async()=>{while(L.length>0){let D=L.shift();if(D)await this.uploadFile(A,D.path,D.content)}},M=Array.from({length:Math.min(5,j.length)},()=>O());await Promise.all(M)},async getDeploy(A){return E("GET",`/deploys/${A}`)},async waitForDeploy(A,j={}){let{timeout:F=300000,pollInterval:L=2000,onProgress:O}=j,M=Date.now();while(!0){let D=await this.getDeploy(A);if(O)O(D);if(D.state==="ready")return D;if(D.state==="error"){let H=Error(`Deploy failed: ${D.error_message||"Unknown error"}`);throw H.status=500,H.details=D,H}if(Date.now()-M>F){let H=Error(`Deploy timed out after ${F}ms`);throw H.status=408,H.details=D,H}await new Promise((H)=>setTimeout(H,L))}},async lockDeploy(A){return E("POST",`/deploys/${A}/lock`)},async unlockDeploy(A){return E("POST",`/deploys/${A}/unlock`)}}}async function V(C){let J=await crypto.subtle.digest("SHA-1",C);return Array.from(new Uint8Array(J)).map((E)=>E.toString(16).padStart(2,"0")).join("")}async function X(C,J={}){let{ignore:K=["node_modules",".git",".env*","*.map"]}=J,E=[],A=new Bun.Glob("**/*");for await(let j of A.scan({cwd:C,onlyFiles:!0,dot:!1})){if(K.some((H)=>{if(H.includes("*"))return new RegExp(`^${H.replace(/\*/g,".*")}$`).test(j);return j.includes(H)}))continue;let L=`${C}/${j}`,M=await Bun.file(L).arrayBuffer(),D=await V(M);E.push({path:j,content:new Uint8Array(M),sha1:D})}return E}function Y(C){let J={};for(let K of C)J[`/${K.path}`]=K.sha1;return J}function Z(C,J){let K=new Set(J.map((E)=>E.startsWith("/")?E.slice(1):E));return C.filter((E)=>K.has(E.path))}function _(C){if(C<1024)return`${C} B`;if(C<1048576)return`${(C/1024).toFixed(1)} KB`;if(C<1073741824)return`${(C/1048576).toFixed(1)} MB`;return`${(C/1073741824).toFixed(1)} GB`}function $(C){return C.reduce((J,K)=>J+K.content.byteLength,0)}
|
|
3
|
-
export{W as
|
|
3
|
+
export{W as Wn,V as Xn,X as Yn,Y as Zn,Z as _n,_ as $n,$ as ao};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{m as
|
|
2
|
+
import{$m as T,Mm as F,Nm as v,Om as S,Pm as b,Qm as B,Rm as _,Ym as k,_m as y}from"./chunk-4d2y57k7.js";import W from"fs";import L from"path";function m(K={}){let{inputDirs:j=["public","src/assets","assets"],outputDir:G="dist/images",baseUrl:J="/images",formats:C=v,widths:X=F,quality:Z=S,placeholder:R="none",concurrency:z=4,cache:U=!0,cacheDir:w=".stx/image-cache",referencedOnly:E=!1,verbose:Q=!1}=K,N={imageReferences:new Set,processedImages:new Map,stats:{totalImages:0,optimizedImages:0,savedBytes:0,variants:0}};return{name:"stx-image-optimization",async setup(H){if(!await B()){console.warn("[stx-images] no image backend available, optimization disabled");return}if(U)await W.promises.mkdir(w,{recursive:!0});if(Q){let V=await b();console.log("[stx-images] Plugin initialized"),console.log(` Backend: ${V?"sharp (native fast path) + ts-images":"ts-images (pure TS)"}`),console.log(` Input dirs: ${j.join(", ")}`),console.log(` Output dir: ${G}`),console.log(` Formats: ${C.join(", ")}`),console.log(` Widths: ${X.join(", ")}`)}},async buildStart(){N.imageReferences.clear(),N.processedImages.clear(),N.stats={totalImages:0,optimizedImages:0,savedBytes:0,variants:0}},async transform(H,M){if(M.endsWith(".html")||M.endsWith(".stx")){let V=f(H);for(let $ of V)N.imageReferences.add($)}if(H.includes("<Image")||H.includes("@image"))return await l(H,{formats:C,widths:X,quality:Z,placeholder:R,outputDir:G,baseUrl:J,processedImages:N.processedImages});return H},async buildEnd(H){if(!await B())return;await W.promises.mkdir(G,{recursive:!0});let V=[];for(let O of j){if(!W.existsSync(O))continue;let Y=await x(O);V.push(...Y)}let $=E?V.filter((O)=>d(O,N.imageReferences)):V;if(N.stats.totalImages=$.length,Q)console.log(`[stx-images] Processing ${$.length} images...`);let I=A($,z);for(let O of I)await Promise.all(O.map(async(Y)=>{try{let q=await _(Y,{formats:C,widths:X,quality:Z,placeholder:R,outputDir:G,baseUrl:J});N.processedImages.set(Y,q),N.stats.optimizedImages++,N.stats.variants+=q.variants.length;let D=W.statSync(Y).size,P=y(q.variants);if(N.stats.savedBytes+=Math.max(0,D-P/q.variants.length),Q)console.log(` \u2713 ${L.basename(Y)} \u2192 ${q.variants.length} variants`)}catch(q){console.error(`[stx-images] Error processing ${Y}:`,q)}}));if(console.log("[stx-images] Optimization complete:"),console.log(` Images: ${N.stats.optimizedImages}/${N.stats.totalImages}`),console.log(` Variants: ${N.stats.variants}`),N.stats.savedBytes>0)console.log(` Saved: ~${T(N.stats.savedBytes)}`)}}}function f(K){let j=[],G=/src=["']([^"']+\.(jpg|jpeg|png|webp|avif|gif))["']/gi,J;while((J=G.exec(K))!==null)j.push(J[1]);let C=/<Image[^>]+src=["']([^"']+)["']/gi;while((J=C.exec(K))!==null)j.push(J[1]);let X=/@image\s*\(\s*['"]([^'"]+)['"]/gi;while((J=X.exec(K))!==null)j.push(J[1]);let Z=/background(?:-image)?:\s*url\(["']?([^"')]+\.(jpg|jpeg|png|webp|avif|gif))["']?\)/gi;while((J=Z.exec(K))!==null)j.push(J[1]);return j}function d(K,j){let G=L.basename(K);for(let J of j)if(J.endsWith(G)||J.includes(G))return!0;return!1}async function l(K,j){return K}async function x(K){let j=[];async function G(J){let C=await W.promises.readdir(J,{withFileTypes:!0});for(let X of C){let Z=L.join(J,X.name);if(X.isDirectory())await G(Z);else if(X.isFile()&&k(Z))j.push(Z)}}return await G(K),j}function A(K,j){let G=[];for(let J=0;J<K.length;J+=j)G.push(K.slice(J,J+j));return G}async function n(K,j,G={}){if(!await B())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");return _(K,{...G,outputDir:j})}async function o(K,j,G={}){let{formats:J=v,widths:C=F,quality:X=S,placeholder:Z="none",concurrency:R=4,verbose:z=!1}=G;if(!await B())throw Error("No image backend available \u2014 install sharp or ensure ts-images is bundled");await W.promises.mkdir(j,{recursive:!0});let w=await x(K),E=[],Q={totalImages:w.length,optimizedImages:0,savedBytes:0,variants:0},N=A(w,R);for(let H of N){let M=await Promise.all(H.map(async(V)=>{try{let $=await _(V,{formats:J,widths:C,quality:X,placeholder:Z,outputDir:j,baseUrl:"/"});if(Q.optimizedImages++,Q.variants+=$.variants.length,z)console.log(` \u2713 ${L.basename(V)}`);return $}catch($){return console.error(`Error processing ${V}:`,$),null}}));E.push(...M.filter((V)=>V!==null))}return{processed:E,stats:Q}}function p(K){let j={};for(let G of K)j[G.src]={variants:G.variants,placeholder:G.placeholder};return j}async function c(K,j){let G=p(K);await Bun.write(j,JSON.stringify(G,null,2))}
|
|
3
|
+
export{m as Em,n as Fm,o as Gm,p as Hm,c as Im};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Mm as T,Nm as b,Om as v,Um as n,Vm as I,Wm as d,Xm as c,Zm as w}from"./chunk-4d2y57k7.js";function GG(K,B={}){let{src:X,alt:G,width:x,height:Z,sizes:q="100vw",loading:$="lazy",priority:O=!1,quality:W=v,placeholder:J="none",formats:Y=b,widths:M=T,decoding:C="async",fetchpriority:k,objectFit:U,objectPosition:D}=K,Q=K.class,E=K.style,{processedImage:P,variants:_,optimize:H=!0,isDev:R=!1}=B;if(_&&_.length>0)return p(K,_,P);if(R||!H)return s(K);return r(K)}function p(K,B,X){let{src:G,alt:x,width:Z,height:q,sizes:$="100vw",loading:O="lazy",priority:W=!1,decoding:J="async",fetchpriority:Y,objectFit:M,objectPosition:C,placeholder:k="none"}=K,U=K.class,D=K.style,Q=c(B),E=d(B),P=typeof $==="object"?I($):$,_=X?X.aspectRatio:Z&&q?Number(Z)/Number(q):void 0,H=[];if(_)H.push(`aspect-ratio: ${_}`);if(M)H.push(`object-fit: ${M}`);if(C)H.push(`object-position: ${C}`);if(D)H.push(D);let R=H.length>0?` style="${H.join("; ")}"`:"",z=U?` class="${U}"`:"",j=W?"":` loading="${O}"`,S=` decoding="${J}"`,L=Y?` fetchpriority="${Y}"`:W?' fetchpriority="high"':"",y=["avif","webp","jpeg","png"],A=[];for(let N of y){let V=Q.get(N);if(V&&V.length>0){let F=n(V),o=w(N);A.push(` <source type="${o}" srcset="${F}" sizes="${P}" />`)}}let g="",m="",f;if(k!=="none"&&X?.placeholder){let N=`img-${Math.random().toString(36).slice(2,8)}`;if(g=`<div class="stx-image-wrapper" id="${N}">`,m="</div>",k==="blur")f=`
|
|
3
3
|
#${N} {
|
|
4
4
|
position: relative;
|
|
5
5
|
background-image: url('${X.placeholder}');
|
|
@@ -31,4 +31,4 @@ ${A.join(`
|
|
|
31
31
|
data-formats="${W.join(",")}"
|
|
32
32
|
data-widths="${J.join(",")}"
|
|
33
33
|
`.replace(/\s+/g," ").trim();return{html:`<img src="${B}" alt="${u(X)}"${_}${H}${P}${E}${R}${z}${j} ${L} />`}}function t(K){let B=K.match(/<Image\s+([^>]*?)\/?>/);if(!B)return null;let X=B[1],G={},x=/(\w+)(?:=(?:"([^"]*)"|'([^']*)'|(\{[^}]+\})))?/g,Z;while((Z=x.exec(X))!==null){let[,q,$,O,W]=Z,J=$??O??W??!0;switch(q){case"src":G.src=String(J);break;case"alt":G.alt=String(J);break;case"width":G.width=Number(J)||J;break;case"height":G.height=Number(J)||J;break;case"sizes":G.sizes=String(J);break;case"loading":G.loading=J;break;case"priority":G.priority=J===!0||J==="true";break;case"quality":G.quality=Number(J);break;case"placeholder":G.placeholder=J;break;case"class":G.class=String(J);break;case"style":G.style=String(J);break;case"decoding":G.decoding=J;break;case"fetchpriority":G.fetchpriority=J;break;case"objectFit":G.objectFit=J;break;case"objectPosition":G.objectPosition=String(J);break}}if(!G.src||!G.alt)return null;return G}async function JG(K,B){let X=/<Image\s+[^>]*?\/?>/g,G=[],x=[],Z=K,q,$=[];while((q=X.exec(K))!==null)$.push({match:q[0],index:q.index});for(let O=$.length-1;O>=0;O--){let{match:W}=$[O],J=t(W);if(J){let Y=await B(J);if(Z=Z.replace(W,Y.html),Y.preloadLink)G.push(Y.preloadLink);if(Y.placeholderCss)x.push(Y.placeholderCss)}}return{html:Z,preloadLinks:G,styles:x}}function u(K){return K.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
34
|
-
export{GG as
|
|
34
|
+
export{GG as Jm,t as Km,JG as Lm};
|
|
@@ -474,4 +474,4 @@ describe('Example', () => {
|
|
|
474
474
|
@yield('scripts')
|
|
475
475
|
</body>
|
|
476
476
|
</html>`}function s(){return"<!-- Hero section -->"}function o(){return"<!-- Features -->"}function t(){return"<!-- Pricing -->"}function e(){return"<!-- Button -->"}function Y(z){if(!X(z))Z(z,{recursive:!0})}function qq(){if(X("bun.lockb"))return"bun";if(X("pnpm-lock.yaml"))return"pnpm";if(X("yarn.lock"))return"yarn";return"bun"}function $(z){return z.replace(/[-_\s]+(.)?/g,(w,q)=>q?q.toUpperCase():"").replace(/^./,(w)=>w.toUpperCase())}function vq(z){return z.replace(/[-_\s]+(.)?/g,(w,q)=>q?q.toUpperCase():"").replace(/^./,(w)=>w.toLowerCase())}function W(z){return z.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}
|
|
477
|
-
export{Qq as
|
|
477
|
+
export{Qq as Wh,Uq as Xh,Vq as Yh,Wq as Zh,Xq as _h,Yq as $h};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Dp as K}from"./chunk-55nwdnsd.js";var W={default:{js:"#f7df1e",css:"#264de4",html:"#e34c26",image:"#4caf50",font:"#9c27b0",other:"#607d8b",vendor:"#ff5722"},pastel:{js:"#fff3b0",css:"#b0d4ff",html:"#ffb0b0",image:"#b0ffb0",font:"#e0b0ff",other:"#d0d0d0",vendor:"#ffcfb0"},monochrome:{js:"#333333",css:"#555555",html:"#777777",image:"#999999",font:"#bbbbbb",other:"#dddddd",vendor:"#444444"}};function w(q,v={}){let{title:x="Bundle Analysis",gzip:A=!0,colorScheme:I="default"}=v,F=W[I],J=X(q),G=JSON.stringify(J);return`<!DOCTYPE html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
@@ -495,4 +495,4 @@ import{Ep as K}from"./chunk-g8b81pzc.js";var W={default:{js:"#f7df1e",css:"#264d
|
|
|
495
495
|
</script>
|
|
496
496
|
</body>
|
|
497
497
|
</html>`}function X(q){let v={name:"root",size:q.totalSize,gzipSize:q.totalGzipSize,children:[]};for(let x of q.chunks){let A={name:x.name,size:x.size,gzipSize:x.gzipSize,children:[]};for(let I of x.modules)Y(A,I);v.children.push(A)}return v}function Y(q,v){let x=v.path.split("/"),A=q;for(let F=0;F<x.length-1;F++){let J=x[F],G=A.children?.find((V)=>V.name===J);if(!G){if(G={name:J,size:0,gzipSize:0,children:[]},!A.children)A.children=[];A.children.push(G)}A=G}let I=x[x.length-1];if(!A.children)A.children=[];A.children.push({name:I,path:v.path,size:v.size,gzipSize:v.gzipSize,type:v.type}),Z(q,v.size,v.gzipSize)}function Z(q,v,x){}function Q(q){return q.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function U(q){let v=process.platform,x=v==="darwin"?"open":v==="win32"?"start":"xdg-open";Bun.spawn([x,q],{stdio:["ignore","ignore","ignore"]})}
|
|
498
|
-
export{w as
|
|
498
|
+
export{w as Ap,U as Bp};
|
|
@@ -131,4 +131,4 @@ else {
|
|
|
131
131
|
}
|
|
132
132
|
</style>
|
|
133
133
|
`}var z={HydrationRuntime:Q,serializeState:V,generateStateScript:X,generateHydrationScript:$,generateHydrationCSS:j,extractState:Y,getHydrationRuntime:Z,hydrate:P};
|
|
134
|
-
export{V as
|
|
134
|
+
export{V as tm,X as um,w as vm,Y as wm,Q as xm,$ as ym,Z as zm,P as Am,j as Bm,z as Cm};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var K={},W=[],O={};function _(){return K}function $(){return O}function C(){K={},W.length=0,O={}}function Q(j){K=X(K,j)}function X(j,z){return{title:z.title??j.title,titleTemplate:z.titleTemplate??j.titleTemplate,base:z.base??j.base,meta:[...j.meta||[],...z.meta||[]],link:[...j.link||[],...z.link||[]],script:[...j.script||[],...z.script||[]],style:[...j.style||[],...z.style||[]],htmlAttrs:{...j.htmlAttrs,...z.htmlAttrs},bodyAttrs:{...j.bodyAttrs,...z.bodyAttrs}}}function Y(j){let z=[];if(j.description)z.push({name:"description",content:j.description});if(j.keywords){let L=Array.isArray(j.keywords)?j.keywords.join(", "):j.keywords;z.push({name:"keywords",content:L})}if(j.author)z.push({name:"author",content:j.author});if(j.robots)z.push({name:"robots",content:j.robots});let A=j.ogTitle??j.title,B=j.ogDescription??j.description;if(A)z.push({property:"og:title",content:A});if(B)z.push({property:"og:description",content:B});if(j.ogImage)z.push({property:"og:image",content:j.ogImage});if(j.ogUrl)z.push({property:"og:url",content:j.ogUrl});if(j.ogType)z.push({property:"og:type",content:j.ogType});if(j.ogSiteName)z.push({property:"og:site_name",content:j.ogSiteName});if(j.ogLocale)z.push({property:"og:locale",content:j.ogLocale});let E=j.twitterTitle??j.title,F=j.twitterDescription??j.description,G=j.twitterImage??j.ogImage;if(j.twitterCard)z.push({name:"twitter:card",content:j.twitterCard});if(E)z.push({name:"twitter:title",content:E});if(F)z.push({name:"twitter:description",content:F});if(G)z.push({name:"twitter:image",content:G});if(j.twitterSite)z.push({name:"twitter:site",content:j.twitterSite});if(j.twitterCreator)z.push({name:"twitter:creator",content:j.twitterCreator});if(j.articleAuthor)z.push({property:"article:author",content:j.articleAuthor});if(j.articlePublishedTime)z.push({property:"article:published_time",content:j.articlePublishedTime});if(j.articleModifiedTime)z.push({property:"article:modified_time",content:j.articleModifiedTime});if(j.articleSection)z.push({property:"article:section",content:j.articleSection});if(j.articleTags)for(let L of j.articleTags)z.push({property:"article:tag",content:L});let J=[];if(j.canonical)J.push({rel:"canonical",href:j.canonical});Q({title:j.title,titleTemplate:j.titleTemplate,meta:z,link:J})}function I(j){if(O={...O,...j},j.title||j.description)Y({title:j.title,description:j.description})}function h(j){let z=typeof j==="function"?j():j;Q({title:z})}function x(j=K){let z=[];if(j.title){let A=j.title;if(j.titleTemplate)A=typeof j.titleTemplate==="function"?j.titleTemplate(A):j.titleTemplate.replace("%s",A);z.push(`<title>${N(A)}</title>`)}if(j.base){let A=Object.entries(j.base).map(([B,E])=>`${B}="${N(E)}"`).join(" ");z.push(`<base ${A}>`)}for(let A of j.meta||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>{return`${E==="httpEquiv"?"http-equiv":E}="${N(String(F))}"`}).join(" ");z.push(`<meta ${B}>`)}for(let A of j.link||[]){let B=Object.entries(A).filter(([E,F])=>F!==void 0).map(([E,F])=>`${E}="${N(String(F))}"`).join(" ");z.push(`<link ${B}>`)}for(let A of j.script||[]){let{content:B,...E}=A,F=Object.entries(E).filter(([G,J])=>J!==void 0).map(([G,J])=>{if(typeof J==="boolean")return J?G:"";return`${G}="${N(String(J))}"`}).filter(Boolean).join(" ");if(B)z.push(`<script ${F}>${B}</script>`);else z.push(`<script ${F}></script>`)}for(let A of j.style||[]){let B=A.type?` type="${A.type}"`:"";z.push(`<style${B}>${A.content}</style>`)}return z.join(`
|
|
3
3
|
`)}function D(j=K){if(!j.htmlAttrs)return"";return Object.entries(j.htmlAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function S(j=K){if(!j.bodyAttrs)return"";return Object.entries(j.bodyAttrs).map(([z,A])=>`${z}="${N(A)}"`).join(" ")}function N(j){return j.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function M(j=K){if(typeof document>"u")return;if(j.title){let z=j.title;if(j.titleTemplate)z=typeof j.titleTemplate==="function"?j.titleTemplate(z):j.titleTemplate.replace("%s",z);document.title=z}for(let z of j.meta||[]){let A=z.name?`meta[name="${z.name}"]`:z.property?`meta[property="${z.property}"]`:null;if(A){let B=document.querySelector(A);if(!B){if(B=document.createElement("meta"),z.name)B.setAttribute("name",z.name);if(z.property)B.setAttribute("property",z.property);document.head.appendChild(B)}B.setAttribute("content",z.content)}}for(let z of j.link||[]){let A=`link[rel="${z.rel}"]${z.href?`[href="${z.href}"]`:""}`,B=document.querySelector(A);if(!B)B=document.createElement("link"),document.head.appendChild(B);for(let[E,F]of Object.entries(z))if(F!==void 0)B.setAttribute(E,String(F))}if(j.htmlAttrs)for(let[z,A]of Object.entries(j.htmlAttrs))document.documentElement.setAttribute(z,A);if(j.bodyAttrs)for(let[z,A]of Object.entries(j.bodyAttrs))document.body.setAttribute(z,A)}function P(j){let z="";return{content:j.replace(/@head\s*([\s\S]*?)@endhead/g,(B,E)=>{return z+=E.trim()+`
|
|
4
|
-
`,""}),headContent:z.trim()}}function V(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let G=B?E:z[(F||"").trim()]??F;return Q({title:G}),""})}function w(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,G,J)=>{let L=F?G:J,R=F?L:z[(L||"").trim()]??L,U=E.includes(":")?{property:E,content:R}:{name:E,content:R};return Q({meta:[U]}),""})}export{_ as
|
|
4
|
+
`,""}),headContent:z.trim()}}function V(j,z){return j.replace(/@title\s*\(\s*(?:(['"`])(.+?)\1|([^)]+))\s*\)/g,(A,B,E,F)=>{let G=B?E:z[(F||"").trim()]??F;return Q({title:G}),""})}function w(j,z){return j.replace(/@meta\s*\(\s*(['"`])(.+?)\1\s*,\s*(?:(['"`])(.+?)\3|([^)]+))\s*\)/g,(A,B,E,F,G,J)=>{let L=F?G:J,R=F?L:z[(L||"").trim()]??L,U=E.includes(":")?{property:E,content:R}:{name:E,content:R};return Q({meta:[U]}),""})}export{_ as $v,$ as aw,C as bw,Q as cw,Y as dw,I as ew,h as fw,x as gw,D as hw,S as iw,M as jw,P as kw,V as lw,w as mw};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{WebView:A}=globalThis.Bun;import{existsSync as K,mkdirSync as U,readdirSync as E,statSync as V}from"fs";import R from"path";var Z=16384;function O(j){if(/^https?:\/\//.test(j)||j.startsWith("file://"))return j;return`file://${R.resolve(j)}`}function C(j,B,z){return new Promise((L)=>{let P=!1,J=()=>{if(!P)P=!0,L()};j.onNavigated=()=>setTimeout(J,B),setTimeout(J,z)})}async function H(j,B,z){let L=`!!document.querySelector(${JSON.stringify(B)})`,P=Date.now()+z;while(Date.now()<P){try{if(await j.evaluate(L))return}catch{}await new Promise((J)=>setTimeout(J,100))}}async function W(j){try{let B=await j.evaluate("Math.ceil(Math.max(document.documentElement.scrollHeight, document.documentElement.offsetHeight, document.body ? document.body.scrollHeight : 0, document.body ? document.body.offsetHeight : 0))");return typeof B==="number"&&Number.isFinite(B)&&B>0?Math.min(B,Z):0}catch{return 0}}async function X(j,B,z={}){let L=Math.min(z.width??1440,Z),P=Math.min(z.height??2200,Z),J=z.waitMs??800,G=z.timeoutMs??15000,T=z.format??"png",k=O(j),$=(Y)=>new A({url:k,width:L,height:Y,headless:!0,...z.backend?{backend:z.backend}:{}}),Q=$(P);try{if(await C(Q,J,G),z.waitSelector)await H(Q,z.waitSelector,G);if(z.fullPage){let q=await W(Q);if(q>P){if(Q.close(),Q=$(q),await C(Q,J,G),z.waitSelector)await H(Q,z.waitSelector,G)}}let Y=await Q.screenshot({encoding:"buffer",format:T});U(R.dirname(R.resolve(B)),{recursive:!0}),await Bun.write(B,Y)}finally{Q.close()}if(!K(B))throw Error(`Screenshot was not produced for ${j}`);return{input:j,output:B,bytes:V(B).size}}async function F(j,B,z={}){U(B,{recursive:!0});let L;if(!/^https?:\/\//.test(j)&&K(j)&&V(j).isDirectory())L=E(j).filter((G)=>G.endsWith(".html")).map((G)=>R.join(j,G));else L=[j];let P=z.format??"png",J=[];for(let G of L){let T=/^https?:\/\//.test(G)?new URL(G).pathname.replace(/\W+/g,"-").replace(/^-|-$/g,"")||"index":R.basename(G).replace(/\.html?$/,"");J.push(await X(G,R.join(B,`${T}.${P}`),z))}return J}
|
|
3
|
-
export{X as
|
|
3
|
+
export{X as ai,F as bi};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{B as
|
|
2
|
+
import{Lk as y,Mk as z,Ok as A}from"./chunk-ckxjqqn9.js";var E={enabled:!0,directory:".stx/media-cache",maxAge:30,maxSize:2000,cacheTranscoded:!0,cacheThumbnails:!0,cacheManifests:!0};class B{config;constructor(j={}){this.config={...E,...j}}async get(j,k){return y(j,k,"video",this.config)}async set(j,k,m){return z(j,k,m,"video",this.config)}async clear(){return A("video",this.config)}updateConfig(j){this.config={...this.config,...j}}}var w=null;function x(j){if(!w)w=new B(j);else if(j)w.updateConfig(j);return w}async function G(j,k,m){let q=m?{directory:`${m.outputDir}/../.cache`}:{};return x(q).get(j,k)}async function H(j,k,m,q){let D=q?{directory:`${q.outputDir}/../.cache`}:{};return x(D).set(j,k,m)}async function I(){return x().clear()}
|
|
3
|
+
export{B as Gj,G as Hj,H as Ij,I as Jj};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Xe as P,bf as v,df as d}from"./chunk-
|
|
2
|
+
import{Xe as P,bf as v,df as d}from"./chunk-yj4x5ehw.js";import{jf as Z,kf as _,lf as E,mf as G}from"./chunk-nd9rmddh.js";import{mB as z,nB as A,oB as R}from"./chunk-xv34zbp4.js";var H={};A(H,{isWorkboxEnabled:()=>V,getServiceWorkerFileName:()=>m,generateServiceWorkerAuto:()=>y,generateServiceWorker:()=>U});function U(j,F){let q=j.pwa;if(!q?.enabled)return"";let B=q.serviceWorker||{},X=q.routes||[],L=B.cacheVersion||"1.0.0",O=q.offline,Y=O?.page?"/offline.html":"/offline.html",Q=q.push,K=q.backgroundSync,T=q.cacheStorage,$=F?Z(F,j):null,W=$?_($):"[]",b=["/","/manifest.json",...O?.enabled?[Y]:[],...O?.precacheAssets||[]];return`/**
|
|
3
3
|
* Service Worker - Auto-generated by stx
|
|
4
4
|
* Cache Version: ${L}
|
|
5
5
|
*
|