jialing-code 1.1.0
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/README.md +97 -0
- package/dist/chunk-065m026w.js +97 -0
- package/dist/chunk-06saje2v.js +39 -0
- package/dist/chunk-0731m51q.js +8 -0
- package/dist/chunk-0975ccyw.js +265 -0
- package/dist/chunk-09n3fjx5.js +67 -0
- package/dist/chunk-0bdjdzew.js +41 -0
- package/dist/chunk-0ce6kd7y.js +212 -0
- package/dist/chunk-0e1xsncc.js +969 -0
- package/dist/chunk-0m2861gw.js +154 -0
- package/dist/chunk-0paqc2yw.js +15 -0
- package/dist/chunk-0rg6yrhy.js +99 -0
- package/dist/chunk-0sakxrcf.js +643 -0
- package/dist/chunk-0v9hwxvz.js +105 -0
- package/dist/chunk-0vkfrmqm.js +690 -0
- package/dist/chunk-0vvfnhhv.js +248 -0
- package/dist/chunk-0w4rsycj.js +145 -0
- package/dist/chunk-0x9b2nmd.js +63 -0
- package/dist/chunk-0xjaqda8.js +1124 -0
- package/dist/chunk-1141xmr4.js +8 -0
- package/dist/chunk-13d1842d.js +154 -0
- package/dist/chunk-1921a6yb.js +32 -0
- package/dist/chunk-1ad8mk9g.js +527 -0
- package/dist/chunk-1ax41pws.js +28 -0
- package/dist/chunk-1c8z1b5v.js +16 -0
- package/dist/chunk-1cbn5kxf.js +7 -0
- package/dist/chunk-1eapde8a.js +726 -0
- package/dist/chunk-1h2famwb.js +49 -0
- package/dist/chunk-1jggnf7z.js +85 -0
- package/dist/chunk-1k92pn9c.js +32 -0
- package/dist/chunk-1qakq4sn.js +802 -0
- package/dist/chunk-1rvz0433.js +722 -0
- package/dist/chunk-1xkekb9y.js +19 -0
- package/dist/chunk-238g70xa.js +36 -0
- package/dist/chunk-24ge0eqa.js +106 -0
- package/dist/chunk-278vghwm.js +5395 -0
- package/dist/chunk-27xc1csx.js +104 -0
- package/dist/chunk-2a42s11t.js +412 -0
- package/dist/chunk-2aa02aw6.js +438 -0
- package/dist/chunk-2eykm0j0.js +20 -0
- package/dist/chunk-2gzv8nrw.js +205 -0
- package/dist/chunk-2k995y2x.js +880 -0
- package/dist/chunk-2nayx6q1.js +63 -0
- package/dist/chunk-2sd2w2h4.js +44 -0
- package/dist/chunk-2tw2ve8h.js +145 -0
- package/dist/chunk-30rst83v.js +168 -0
- package/dist/chunk-3aavh06g.js +1581 -0
- package/dist/chunk-3b0yvt2h.js +469 -0
- package/dist/chunk-3be7ka25.js +56 -0
- package/dist/chunk-3c25bcsw.js +17 -0
- package/dist/chunk-3dyxka97.js +584 -0
- package/dist/chunk-3f7rypmf.js +16544 -0
- package/dist/chunk-3fsd7f51.js +93 -0
- package/dist/chunk-3gqdqmzb.js +75 -0
- package/dist/chunk-3h8a89gy.js +46 -0
- package/dist/chunk-3m84sret.js +71 -0
- package/dist/chunk-3nb7j3js.js +96 -0
- package/dist/chunk-3p08nvn2.js +98 -0
- package/dist/chunk-3r09htpc.js +318 -0
- package/dist/chunk-3r24h7t6.js +113 -0
- package/dist/chunk-3rkfxjtq.js +80 -0
- package/dist/chunk-3tmk7dc2.js +604 -0
- package/dist/chunk-3w6s9m5w.js +16 -0
- package/dist/chunk-43qjymy5.js +92 -0
- package/dist/chunk-44fpr6jq.js +434 -0
- package/dist/chunk-45kxdsp8.js +444 -0
- package/dist/chunk-495d85x1.js +8066 -0
- package/dist/chunk-4ba796se.js +1095 -0
- package/dist/chunk-4g3v8y12.js +23 -0
- package/dist/chunk-4h53xj8n.js +3445 -0
- package/dist/chunk-4jm600zv.js +13 -0
- package/dist/chunk-4jy9dtwk.js +116 -0
- package/dist/chunk-4p60dd45.js +55 -0
- package/dist/chunk-4z0jsrqg.js +81 -0
- package/dist/chunk-4zfkzkt6.js +37 -0
- package/dist/chunk-55wgxwa9.js +13877 -0
- package/dist/chunk-5dbk24zg.js +890 -0
- package/dist/chunk-5hzvp4va.js +115 -0
- package/dist/chunk-5kbt1mbt.js +500 -0
- package/dist/chunk-5pen7vr8.js +176 -0
- package/dist/chunk-5r280eng.js +198 -0
- package/dist/chunk-5srym52s.js +88 -0
- package/dist/chunk-600kg7k6.js +41 -0
- package/dist/chunk-616w0qj3.js +160 -0
- package/dist/chunk-62jw1t8c.js +94 -0
- package/dist/chunk-62xmt9mk.js +372 -0
- package/dist/chunk-64bvg7c3.js +229 -0
- package/dist/chunk-65yhe4s0.js +281 -0
- package/dist/chunk-6aewh27m.js +102 -0
- package/dist/chunk-6bd8brc4.js +48 -0
- package/dist/chunk-6dj5t602.js +341 -0
- package/dist/chunk-6exxdk1p.js +6956 -0
- package/dist/chunk-6f5j8fs0.js +752 -0
- package/dist/chunk-6g62sjpf.js +328 -0
- package/dist/chunk-6gecq2ta.js +1493 -0
- package/dist/chunk-6gr3c3w9.js +378 -0
- package/dist/chunk-6kpbgc5w.js +23 -0
- package/dist/chunk-6kseqw79.js +154 -0
- package/dist/chunk-6mxm1qd0.js +40764 -0
- package/dist/chunk-6n2qgm9v.js +8 -0
- package/dist/chunk-6tq2v3rk.js +186 -0
- package/dist/chunk-6wsdhj3v.js +93 -0
- package/dist/chunk-6zw9fhgb.js +4389 -0
- package/dist/chunk-71grc1mw.js +111 -0
- package/dist/chunk-73rpbt04.js +1947 -0
- package/dist/chunk-748feghg.js +604 -0
- package/dist/chunk-75e8gtg9.js +84 -0
- package/dist/chunk-75th4717.js +780 -0
- package/dist/chunk-760252na.js +101 -0
- package/dist/chunk-7739pg2c.js +4261 -0
- package/dist/chunk-778fnx46.js +472 -0
- package/dist/chunk-77g09znh.js +391 -0
- package/dist/chunk-7aw745vx.js +40175 -0
- package/dist/chunk-7m2nd8da.js +110 -0
- package/dist/chunk-7n35vjtw.js +444 -0
- package/dist/chunk-7n5ss4sh.js +144 -0
- package/dist/chunk-7rjnxcfe.js +107 -0
- package/dist/chunk-7sb5axvf.js +122 -0
- package/dist/chunk-7wm5s02e.js +216 -0
- package/dist/chunk-7ymfj7m3.js +151 -0
- package/dist/chunk-7z8j9qfn.js +121 -0
- package/dist/chunk-7zsapntc.js +216 -0
- package/dist/chunk-805fhkfh.js +908 -0
- package/dist/chunk-80k1nj24.js +253 -0
- package/dist/chunk-83hfzbx3.js +10 -0
- package/dist/chunk-85cypsdd.js +92 -0
- package/dist/chunk-8760caxf.js +2644 -0
- package/dist/chunk-88f6egg6.js +387 -0
- package/dist/chunk-88r7kwgj.js +22 -0
- package/dist/chunk-89e1v45e.js +463 -0
- package/dist/chunk-8bedvdm1.js +32 -0
- package/dist/chunk-8c4x4vdz.js +177 -0
- package/dist/chunk-8hq5kk3y.js +44 -0
- package/dist/chunk-8ngxagxq.js +18 -0
- package/dist/chunk-8tnsngw2.js +31 -0
- package/dist/chunk-8wjnca8h.js +307 -0
- package/dist/chunk-8y12jxg8.js +10 -0
- package/dist/chunk-8ymf4e6z.js +48 -0
- package/dist/chunk-90wp6wez.js +10510 -0
- package/dist/chunk-92bp5bnf.js +650 -0
- package/dist/chunk-92q8sx5z.js +90 -0
- package/dist/chunk-958rtmtx.js +10476 -0
- package/dist/chunk-9e2kqv5g.js +125 -0
- package/dist/chunk-9f4f1hy5.js +281 -0
- package/dist/chunk-9gbamk79.js +93 -0
- package/dist/chunk-9k5s3ryh.js +167 -0
- package/dist/chunk-9xzfqm15.js +97 -0
- package/dist/chunk-9zgdvbm6.js +110 -0
- package/dist/chunk-a0p3q8jw.js +24 -0
- package/dist/chunk-a22sayzp.js +220 -0
- package/dist/chunk-a8ejc632.js +3094 -0
- package/dist/chunk-a8gj9d9z.js +120 -0
- package/dist/chunk-a9vdeb6y.js +258 -0
- package/dist/chunk-a9yev47v.js +674 -0
- package/dist/chunk-a9zh40sj.js +48 -0
- package/dist/chunk-ack5mfba.js +105 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-akjw4dh6.js +538 -0
- package/dist/chunk-asc6wz4q.js +1188 -0
- package/dist/chunk-atqejh3p.js +273 -0
- package/dist/chunk-atv2e6b7.js +61 -0
- package/dist/chunk-axvvkwz8.js +1551 -0
- package/dist/chunk-azgz7kj9.js +38 -0
- package/dist/chunk-b3zave8q.js +275 -0
- package/dist/chunk-b4wg70y1.js +54 -0
- package/dist/chunk-b8b13qn2.js +100 -0
- package/dist/chunk-bg3mt9bm.js +28 -0
- package/dist/chunk-bh4jvcjn.js +91 -0
- package/dist/chunk-bhdt6k7w.js +15 -0
- package/dist/chunk-bm1qb16p.js +17 -0
- package/dist/chunk-bpvsd1j1.js +266 -0
- package/dist/chunk-bqfnp99q.js +477 -0
- package/dist/chunk-bsbmmfyt.js +17 -0
- package/dist/chunk-bsbt34jm.js +42 -0
- package/dist/chunk-c78akdhr.js +458 -0
- package/dist/chunk-cdz5yb0r.js +57 -0
- package/dist/chunk-cfv996bs.js +22 -0
- package/dist/chunk-cgfdkzhb.js +12 -0
- package/dist/chunk-ckh4r5er.js +257 -0
- package/dist/chunk-cmgjnvn9.js +89 -0
- package/dist/chunk-cpjgvay8.js +687 -0
- package/dist/chunk-crfryjx9.js +276 -0
- package/dist/chunk-ctw5jwcd.js +213 -0
- package/dist/chunk-cvy3vntc.js +65 -0
- package/dist/chunk-cwbzz504.js +94 -0
- package/dist/chunk-cy2hswr1.js +15 -0
- package/dist/chunk-cyejkay3.js +222 -0
- package/dist/chunk-d18z9pna.js +106 -0
- package/dist/chunk-d5cq0n0v.js +162 -0
- package/dist/chunk-db45aryp.js +50 -0
- package/dist/chunk-de8nqh0z.js +790 -0
- package/dist/chunk-dfw6h350.js +2336 -0
- package/dist/chunk-dgqrcy74.js +48 -0
- package/dist/chunk-dn75ptgd.js +184 -0
- package/dist/chunk-dnh7jtpb.js +37 -0
- package/dist/chunk-dpshyv9m.js +90 -0
- package/dist/chunk-dt8cdvnm.js +642 -0
- package/dist/chunk-dtxby6fr.js +306 -0
- package/dist/chunk-dv1wfr85.js +6373 -0
- package/dist/chunk-dw363edx.js +1154 -0
- package/dist/chunk-dwrdacck.js +62 -0
- package/dist/chunk-dxnnv5e3.js +276 -0
- package/dist/chunk-e3g8q4cn.js +1646 -0
- package/dist/chunk-e3m9k9s2.js +542 -0
- package/dist/chunk-e4q49asn.js +155 -0
- package/dist/chunk-e5pntxye.js +37 -0
- package/dist/chunk-e7393td6.js +42 -0
- package/dist/chunk-ead42yrh.js +87 -0
- package/dist/chunk-eb90vwvr.js +152 -0
- package/dist/chunk-ecvwk9hg.js +250 -0
- package/dist/chunk-edjd6aay.js +173 -0
- package/dist/chunk-eg0h8mtm.js +130 -0
- package/dist/chunk-ehtwnxpg.js +1591 -0
- package/dist/chunk-ek686gx1.js +94 -0
- package/dist/chunk-eqp1rfft.js +17 -0
- package/dist/chunk-evhwt0ar.js +1015 -0
- package/dist/chunk-ewadzrm8.js +103 -0
- package/dist/chunk-ewsgsw9h.js +172291 -0
- package/dist/chunk-f0pa0r7e.js +3198 -0
- package/dist/chunk-f2mhrmww.js +62 -0
- package/dist/chunk-f39zxvwn.js +401 -0
- package/dist/chunk-f46z54tq.js +374 -0
- package/dist/chunk-f5ma3nh5.js +3436 -0
- package/dist/chunk-f60q23az.js +3038 -0
- package/dist/chunk-f6v2nz57.js +107 -0
- package/dist/chunk-f6yjan38.js +38 -0
- package/dist/chunk-fbv4apne.js +51 -0
- package/dist/chunk-fem4s778.js +70 -0
- package/dist/chunk-fezm1kn8.js +376 -0
- package/dist/chunk-fm1n3ysp.js +6108 -0
- package/dist/chunk-frg83bfw.js +225 -0
- package/dist/chunk-fscm8db0.js +692 -0
- package/dist/chunk-fyc5fepv.js +10 -0
- package/dist/chunk-g0j0t6qk.js +26 -0
- package/dist/chunk-g0nc1ftf.js +849 -0
- package/dist/chunk-g338npwr.js +1061 -0
- package/dist/chunk-g3t0act8.js +8 -0
- package/dist/chunk-g75w4hw3.js +26 -0
- package/dist/chunk-g8vp82en.js +1866 -0
- package/dist/chunk-gax0fcbx.js +182 -0
- package/dist/chunk-gsz4dh3y.js +606 -0
- package/dist/chunk-gtfffm7h.js +440 -0
- package/dist/chunk-gver9zb9.js +420 -0
- package/dist/chunk-gyj242zr.js +20 -0
- package/dist/chunk-h0qngp9w.js +157 -0
- package/dist/chunk-h14kemnk.js +123 -0
- package/dist/chunk-h8wj1a74.js +8960 -0
- package/dist/chunk-h9mcb2eg.js +87 -0
- package/dist/chunk-h9nh2980.js +91 -0
- package/dist/chunk-hakdhagh.js +16606 -0
- package/dist/chunk-hbc6ymdv.js +55 -0
- package/dist/chunk-hh7cmy4k.js +20 -0
- package/dist/chunk-hjhc4cpt.js +69 -0
- package/dist/chunk-hjwez8qc.js +5018 -0
- package/dist/chunk-hk9xz7gk.js +118 -0
- package/dist/chunk-hqmz36b3.js +552 -0
- package/dist/chunk-hrzerbfw.js +1299 -0
- package/dist/chunk-hs8ph4p8.js +8 -0
- package/dist/chunk-ht1xwrnd.js +716 -0
- package/dist/chunk-hvmfg2dc.js +338 -0
- package/dist/chunk-hx2tr4ep.js +7189 -0
- package/dist/chunk-hzhe8ygc.js +547 -0
- package/dist/chunk-j2k4p94p.js +55 -0
- package/dist/chunk-j3a4p81y.js +184 -0
- package/dist/chunk-j49g6g3s.js +57 -0
- package/dist/chunk-j5d5hp9h.js +71 -0
- package/dist/chunk-j64ga6ta.js +8035 -0
- package/dist/chunk-j7tyxan1.js +116 -0
- package/dist/chunk-j8v4774z.js +424 -0
- package/dist/chunk-jafes477.js +29 -0
- package/dist/chunk-jd32zbps.js +15 -0
- package/dist/chunk-jdgeec04.js +4249 -0
- package/dist/chunk-jftd4jq5.js +4521 -0
- package/dist/chunk-jkxqhv6y.js +812 -0
- package/dist/chunk-jmfr6h0n.js +120 -0
- package/dist/chunk-jn4aabmx.js +40 -0
- package/dist/chunk-jnhkref0.js +30 -0
- package/dist/chunk-jsbpm1gz.js +27 -0
- package/dist/chunk-jtcyjc3k.js +5802 -0
- package/dist/chunk-jx817w05.js +11 -0
- package/dist/chunk-jzmz18nn.js +65 -0
- package/dist/chunk-k0p9w03v.js +4957 -0
- package/dist/chunk-k3dcdnck.js +89 -0
- package/dist/chunk-k3wadzcd.js +88 -0
- package/dist/chunk-kaeshsk1.js +713 -0
- package/dist/chunk-kbkey9ed.js +522 -0
- package/dist/chunk-kcwfhqbb.js +196 -0
- package/dist/chunk-key6jr7p.js +224 -0
- package/dist/chunk-knay8cy9.js +173 -0
- package/dist/chunk-kr3rg2y1.js +95 -0
- package/dist/chunk-kwekc97v.js +18 -0
- package/dist/chunk-m06q12hg.js +61 -0
- package/dist/chunk-m2mcpbhk.js +43 -0
- package/dist/chunk-m8v220gz.js +71 -0
- package/dist/chunk-mgpqy78h.js +208 -0
- package/dist/chunk-mkejwh4t.js +16 -0
- package/dist/chunk-mptyw5n1.js +107 -0
- package/dist/chunk-mqajm0dp.js +66 -0
- package/dist/chunk-mrksbgxj.js +490 -0
- package/dist/chunk-msjfc5ba.js +246 -0
- package/dist/chunk-mt25echc.js +6157 -0
- package/dist/chunk-mt3jfnr8.js +277 -0
- package/dist/chunk-mtn242d4.js +9300 -0
- package/dist/chunk-mzfkvave.js +169 -0
- package/dist/chunk-n0qaeaa5.js +256 -0
- package/dist/chunk-n1erf6kh.js +22820 -0
- package/dist/chunk-n2avk1r2.js +61 -0
- package/dist/chunk-n6atnpcq.js +765 -0
- package/dist/chunk-n7ttdtk0.js +641 -0
- package/dist/chunk-ncnfzby5.js +822 -0
- package/dist/chunk-ncnr1jtf.js +2058 -0
- package/dist/chunk-nerv0jvx.js +74 -0
- package/dist/chunk-ngd2abep.js +90 -0
- package/dist/chunk-nka1g8f4.js +773 -0
- package/dist/chunk-nnaxkc2z.js +128 -0
- package/dist/chunk-npyrtj8j.js +691 -0
- package/dist/chunk-nq0fxyxh.js +752 -0
- package/dist/chunk-nrmffak7.js +114 -0
- package/dist/chunk-nsz546wq.js +1170 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nv64x1z5.js +86 -0
- package/dist/chunk-nxsh6de2.js +1711 -0
- package/dist/chunk-nz4getcr.js +40 -0
- package/dist/chunk-p1f607pa.js +83 -0
- package/dist/chunk-p2816w9z.js +1486 -0
- package/dist/chunk-p2d5nh3g.js +342 -0
- package/dist/chunk-p4r5y02t.js +90 -0
- package/dist/chunk-p7g7pf3f.js +336 -0
- package/dist/chunk-pb4ad8r2.js +110 -0
- package/dist/chunk-pbrhz0zr.js +716 -0
- package/dist/chunk-ps49ymvj.js +43 -0
- package/dist/chunk-pwnt3veb.js +103 -0
- package/dist/chunk-pwwa7s62.js +11 -0
- package/dist/chunk-px3w0kde.js +299 -0
- package/dist/chunk-pzn777jb.js +756 -0
- package/dist/chunk-q25bjaev.js +15 -0
- package/dist/chunk-q5by3da6.js +8 -0
- package/dist/chunk-q6av622g.js +38 -0
- package/dist/chunk-q6xkvtf2.js +1318 -0
- package/dist/chunk-q81jx1tq.js +476 -0
- package/dist/chunk-qehb6fk5.js +339 -0
- package/dist/chunk-qj1avx1q.js +87 -0
- package/dist/chunk-qn2dxr66.js +105 -0
- package/dist/chunk-qnfx3qtx.js +617 -0
- package/dist/chunk-qp18kd4h.js +48 -0
- package/dist/chunk-qp2qdcda.js +100 -0
- package/dist/chunk-qpjy9tcf.js +133 -0
- package/dist/chunk-qqfa0dqg.js +2343 -0
- package/dist/chunk-qwh3htcz.js +202 -0
- package/dist/chunk-qz2x630m.js +49145 -0
- package/dist/chunk-r3vakcs1.js +496 -0
- package/dist/chunk-r66hz8j6.js +34 -0
- package/dist/chunk-r6b58y3x.js +17 -0
- package/dist/chunk-rekp48rk.js +62 -0
- package/dist/chunk-rn0v1hk8.js +34 -0
- package/dist/chunk-rs1xrs6m.js +534 -0
- package/dist/chunk-rs45skes.js +123 -0
- package/dist/chunk-rzszqp82.js +524 -0
- package/dist/chunk-s274nv8k.js +8 -0
- package/dist/chunk-s3pzvdss.js +50 -0
- package/dist/chunk-s9mesaw0.js +26840 -0
- package/dist/chunk-sd36yzx8.js +954 -0
- package/dist/chunk-sdj9b9wh.js +782 -0
- package/dist/chunk-sdw2q69p.js +227 -0
- package/dist/chunk-sfgp9cc0.js +130 -0
- package/dist/chunk-spqaamnc.js +63 -0
- package/dist/chunk-spzrs4df.js +73 -0
- package/dist/chunk-sxkr7k43.js +55 -0
- package/dist/chunk-szj5wvdy.js +28 -0
- package/dist/chunk-t0rgmccj.js +39 -0
- package/dist/chunk-t1nnzjgg.js +17 -0
- package/dist/chunk-t94fcnt8.js +566 -0
- package/dist/chunk-tjaqa99q.js +125 -0
- package/dist/chunk-tjq2evtw.js +328 -0
- package/dist/chunk-ts2p6bv1.js +224 -0
- package/dist/chunk-ttk5dzz8.js +25 -0
- package/dist/chunk-tw0q7ynt.js +59 -0
- package/dist/chunk-v02jkvgy.js +131 -0
- package/dist/chunk-v084bqt3.js +1529 -0
- package/dist/chunk-v0amythm.js +164 -0
- package/dist/chunk-v1kzp02e.js +785 -0
- package/dist/chunk-v1mgv1et.js +15 -0
- package/dist/chunk-v399mzxk.js +58 -0
- package/dist/chunk-v3gm2day.js +8 -0
- package/dist/chunk-v43hrrxp.js +71 -0
- package/dist/chunk-v6aqb2aj.js +102 -0
- package/dist/chunk-v78fj8by.js +145 -0
- package/dist/chunk-v7qmhjdn.js +1921 -0
- package/dist/chunk-v9smspw2.js +4301 -0
- package/dist/chunk-vdw93s4h.js +2431 -0
- package/dist/chunk-vest0y6x.js +3830 -0
- package/dist/chunk-vf5sd1nq.js +12 -0
- package/dist/chunk-vratq94g.js +349 -0
- package/dist/chunk-vrz7t3m3.js +20 -0
- package/dist/chunk-vtb185z9.js +70 -0
- package/dist/chunk-vx01rvg8.js +654 -0
- package/dist/chunk-vyc0rjyx.js +31 -0
- package/dist/chunk-vyjeh50y.js +2149 -0
- package/dist/chunk-vzpffsza.js +269 -0
- package/dist/chunk-w2ef3kxk.js +3353 -0
- package/dist/chunk-w2z5pqd3.js +336 -0
- package/dist/chunk-w3whm4mn.js +432 -0
- package/dist/chunk-w7wgpqcp.js +157 -0
- package/dist/chunk-waa00cvb.js +301 -0
- package/dist/chunk-wb0qm4es.js +155 -0
- package/dist/chunk-wbkahkdc.js +27 -0
- package/dist/chunk-wfz0qffj.js +3939 -0
- package/dist/chunk-wn0cx0pt.js +283 -0
- package/dist/chunk-wv6gzt9c.js +726 -0
- package/dist/chunk-wx42ycm4.js +998 -0
- package/dist/chunk-wxkpgy05.js +268 -0
- package/dist/chunk-wzpdet3m.js +843 -0
- package/dist/chunk-x0mwzt38.js +714 -0
- package/dist/chunk-x592wbfh.js +244 -0
- package/dist/chunk-x5pqsp9r.js +100 -0
- package/dist/chunk-x679thag.js +825 -0
- package/dist/chunk-x8b7vft8.js +132 -0
- package/dist/chunk-x8cftch7.js +119 -0
- package/dist/chunk-x9q7r885.js +348 -0
- package/dist/chunk-xawkt0vb.js +1585 -0
- package/dist/chunk-xdw5dv00.js +8 -0
- package/dist/chunk-xe9cc860.js +287 -0
- package/dist/chunk-xjr9c3vt.js +101 -0
- package/dist/chunk-xk7zaqta.js +21933 -0
- package/dist/chunk-xktbmawc.js +678 -0
- package/dist/chunk-xn6yw46v.js +140 -0
- package/dist/chunk-xsq9ae7x.js +90 -0
- package/dist/chunk-xszk7n10.js +14358 -0
- package/dist/chunk-xt8a5r1t.js +84 -0
- package/dist/chunk-xydyndkv.js +195 -0
- package/dist/chunk-xzt10yc5.js +60 -0
- package/dist/chunk-y04y95dr.js +91 -0
- package/dist/chunk-y1784krc.js +19 -0
- package/dist/chunk-y1x32h3x.js +128 -0
- package/dist/chunk-y3s7aww5.js +99 -0
- package/dist/chunk-y47cg3kz.js +42 -0
- package/dist/chunk-y7kzvepn.js +469 -0
- package/dist/chunk-y89kbsyc.js +287 -0
- package/dist/chunk-yd87p1c3.js +159 -0
- package/dist/chunk-yf3yw8fw.js +105 -0
- package/dist/chunk-ygbf0ezx.js +1391 -0
- package/dist/chunk-yjbxnshv.js +208 -0
- package/dist/chunk-ynednmqd.js +192 -0
- package/dist/chunk-yvhez44y.js +259 -0
- package/dist/chunk-ywxd4qw4.js +22 -0
- package/dist/chunk-yzrmgpy4.js +117 -0
- package/dist/chunk-z0b2vb24.js +862 -0
- package/dist/chunk-z1zj044v.js +655 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z3w0xasa.js +165 -0
- package/dist/chunk-z7ycmrb3.js +644 -0
- package/dist/chunk-zh11tdkb.js +347 -0
- package/dist/chunk-zk2wsm7d.js +15 -0
- package/dist/chunk-zqfqcf22.js +229 -0
- package/dist/chunk-zqk2j8px.js +699 -0
- package/dist/chunk-zqvsc10j.js +2833 -0
- package/dist/chunk-zsfxha74.js +17655 -0
- package/dist/chunk-zvc4snyb.js +117 -0
- package/dist/cli.js +194 -0
- package/package.json +173 -0
|
@@ -0,0 +1,802 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
Ansi,
|
|
4
|
+
TerminalSizeContext,
|
|
5
|
+
ThemedBox_default,
|
|
6
|
+
ThemedText,
|
|
7
|
+
init_TerminalSizeContext,
|
|
8
|
+
init_ink,
|
|
9
|
+
require_compiler_runtime,
|
|
10
|
+
use_input_default
|
|
11
|
+
} from "./chunk-s9mesaw0.js";
|
|
12
|
+
import {
|
|
13
|
+
require_jsx_dev_runtime,
|
|
14
|
+
require_react
|
|
15
|
+
} from "./chunk-g338npwr.js";
|
|
16
|
+
import {
|
|
17
|
+
init_stringWidth,
|
|
18
|
+
stringWidth
|
|
19
|
+
} from "./chunk-1rvz0433.js";
|
|
20
|
+
import {
|
|
21
|
+
__esm,
|
|
22
|
+
__toESM
|
|
23
|
+
} from "./chunk-qp2qdcda.js";
|
|
24
|
+
|
|
25
|
+
// src/hooks/useTerminalSize.ts
|
|
26
|
+
function useTerminalSize() {
|
|
27
|
+
const size = import_react.useContext(TerminalSizeContext);
|
|
28
|
+
if (!size) {
|
|
29
|
+
throw new Error("useTerminalSize must be used within an Ink App component");
|
|
30
|
+
}
|
|
31
|
+
return size;
|
|
32
|
+
}
|
|
33
|
+
var import_react;
|
|
34
|
+
var init_useTerminalSize = __esm(() => {
|
|
35
|
+
init_TerminalSizeContext();
|
|
36
|
+
import_react = __toESM(require_react(), 1);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// src/keybindings/match.ts
|
|
40
|
+
function getKeyName(input, key) {
|
|
41
|
+
if (key.escape)
|
|
42
|
+
return "escape";
|
|
43
|
+
if (key.return)
|
|
44
|
+
return "enter";
|
|
45
|
+
if (key.tab)
|
|
46
|
+
return "tab";
|
|
47
|
+
if (key.backspace)
|
|
48
|
+
return "backspace";
|
|
49
|
+
if (key.delete)
|
|
50
|
+
return "delete";
|
|
51
|
+
if (key.upArrow)
|
|
52
|
+
return "up";
|
|
53
|
+
if (key.downArrow)
|
|
54
|
+
return "down";
|
|
55
|
+
if (key.leftArrow)
|
|
56
|
+
return "left";
|
|
57
|
+
if (key.rightArrow)
|
|
58
|
+
return "right";
|
|
59
|
+
if (key.pageUp)
|
|
60
|
+
return "pageup";
|
|
61
|
+
if (key.pageDown)
|
|
62
|
+
return "pagedown";
|
|
63
|
+
if (key.wheelUp)
|
|
64
|
+
return "wheelup";
|
|
65
|
+
if (key.wheelDown)
|
|
66
|
+
return "wheeldown";
|
|
67
|
+
if (key.home)
|
|
68
|
+
return "home";
|
|
69
|
+
if (key.end)
|
|
70
|
+
return "end";
|
|
71
|
+
if (input.length === 1)
|
|
72
|
+
return input.toLowerCase();
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
var init_match = () => {};
|
|
76
|
+
|
|
77
|
+
// src/keybindings/parser.ts
|
|
78
|
+
function parseKeystroke(input) {
|
|
79
|
+
const parts = input.split("+");
|
|
80
|
+
const keystroke = {
|
|
81
|
+
key: "",
|
|
82
|
+
ctrl: false,
|
|
83
|
+
alt: false,
|
|
84
|
+
shift: false,
|
|
85
|
+
meta: false,
|
|
86
|
+
super: false
|
|
87
|
+
};
|
|
88
|
+
for (const part of parts) {
|
|
89
|
+
const lower = part.toLowerCase();
|
|
90
|
+
switch (lower) {
|
|
91
|
+
case "ctrl":
|
|
92
|
+
case "control":
|
|
93
|
+
keystroke.ctrl = true;
|
|
94
|
+
break;
|
|
95
|
+
case "alt":
|
|
96
|
+
case "opt":
|
|
97
|
+
case "option":
|
|
98
|
+
keystroke.alt = true;
|
|
99
|
+
break;
|
|
100
|
+
case "shift":
|
|
101
|
+
keystroke.shift = true;
|
|
102
|
+
break;
|
|
103
|
+
case "meta":
|
|
104
|
+
keystroke.meta = true;
|
|
105
|
+
break;
|
|
106
|
+
case "cmd":
|
|
107
|
+
case "command":
|
|
108
|
+
case "super":
|
|
109
|
+
case "win":
|
|
110
|
+
keystroke.super = true;
|
|
111
|
+
break;
|
|
112
|
+
case "esc":
|
|
113
|
+
keystroke.key = "escape";
|
|
114
|
+
break;
|
|
115
|
+
case "return":
|
|
116
|
+
keystroke.key = "enter";
|
|
117
|
+
break;
|
|
118
|
+
case "space":
|
|
119
|
+
keystroke.key = " ";
|
|
120
|
+
break;
|
|
121
|
+
case "\u2191":
|
|
122
|
+
keystroke.key = "up";
|
|
123
|
+
break;
|
|
124
|
+
case "\u2193":
|
|
125
|
+
keystroke.key = "down";
|
|
126
|
+
break;
|
|
127
|
+
case "\u2190":
|
|
128
|
+
keystroke.key = "left";
|
|
129
|
+
break;
|
|
130
|
+
case "\u2192":
|
|
131
|
+
keystroke.key = "right";
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
keystroke.key = lower;
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return keystroke;
|
|
139
|
+
}
|
|
140
|
+
function parseChord(input) {
|
|
141
|
+
if (input === " ")
|
|
142
|
+
return [parseKeystroke("space")];
|
|
143
|
+
return input.trim().split(/\s+/).map(parseKeystroke);
|
|
144
|
+
}
|
|
145
|
+
function keystrokeToString(ks) {
|
|
146
|
+
const parts = [];
|
|
147
|
+
if (ks.ctrl)
|
|
148
|
+
parts.push("ctrl");
|
|
149
|
+
if (ks.alt)
|
|
150
|
+
parts.push("alt");
|
|
151
|
+
if (ks.shift)
|
|
152
|
+
parts.push("shift");
|
|
153
|
+
if (ks.meta)
|
|
154
|
+
parts.push("meta");
|
|
155
|
+
if (ks.super)
|
|
156
|
+
parts.push("cmd");
|
|
157
|
+
const displayKey = keyToDisplayName(ks.key);
|
|
158
|
+
parts.push(displayKey);
|
|
159
|
+
return parts.join("+");
|
|
160
|
+
}
|
|
161
|
+
function keyToDisplayName(key) {
|
|
162
|
+
switch (key) {
|
|
163
|
+
case "escape":
|
|
164
|
+
return "Esc";
|
|
165
|
+
case " ":
|
|
166
|
+
return "Space";
|
|
167
|
+
case "tab":
|
|
168
|
+
return "tab";
|
|
169
|
+
case "enter":
|
|
170
|
+
return "Enter";
|
|
171
|
+
case "backspace":
|
|
172
|
+
return "Backspace";
|
|
173
|
+
case "delete":
|
|
174
|
+
return "Delete";
|
|
175
|
+
case "up":
|
|
176
|
+
return "\u2191";
|
|
177
|
+
case "down":
|
|
178
|
+
return "\u2193";
|
|
179
|
+
case "left":
|
|
180
|
+
return "\u2190";
|
|
181
|
+
case "right":
|
|
182
|
+
return "\u2192";
|
|
183
|
+
case "pageup":
|
|
184
|
+
return "PageUp";
|
|
185
|
+
case "pagedown":
|
|
186
|
+
return "PageDown";
|
|
187
|
+
case "home":
|
|
188
|
+
return "Home";
|
|
189
|
+
case "end":
|
|
190
|
+
return "End";
|
|
191
|
+
default:
|
|
192
|
+
return key;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function chordToString(chord) {
|
|
196
|
+
return chord.map(keystrokeToString).join(" ");
|
|
197
|
+
}
|
|
198
|
+
function parseBindings(blocks) {
|
|
199
|
+
const bindings = [];
|
|
200
|
+
for (const block of blocks) {
|
|
201
|
+
for (const [key, action] of Object.entries(block.bindings)) {
|
|
202
|
+
bindings.push({
|
|
203
|
+
chord: parseChord(key),
|
|
204
|
+
action,
|
|
205
|
+
context: block.context
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return bindings;
|
|
210
|
+
}
|
|
211
|
+
var init_parser = () => {};
|
|
212
|
+
|
|
213
|
+
// src/keybindings/resolver.ts
|
|
214
|
+
function getBindingDisplayText(action, context, bindings) {
|
|
215
|
+
const binding = bindings.findLast((b) => b.action === action && b.context === context);
|
|
216
|
+
return binding ? chordToString(binding.chord) : undefined;
|
|
217
|
+
}
|
|
218
|
+
function buildKeystroke(input, key) {
|
|
219
|
+
const keyName = getKeyName(input, key);
|
|
220
|
+
if (!keyName)
|
|
221
|
+
return null;
|
|
222
|
+
const effectiveMeta = key.escape ? false : key.meta;
|
|
223
|
+
return {
|
|
224
|
+
key: keyName,
|
|
225
|
+
ctrl: key.ctrl,
|
|
226
|
+
alt: effectiveMeta,
|
|
227
|
+
shift: key.shift,
|
|
228
|
+
meta: effectiveMeta,
|
|
229
|
+
super: key.super
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function keystrokesEqual(a, b) {
|
|
233
|
+
return a.key === b.key && a.ctrl === b.ctrl && a.shift === b.shift && (a.alt || a.meta) === (b.alt || b.meta) && a.super === b.super;
|
|
234
|
+
}
|
|
235
|
+
function chordPrefixMatches(prefix, binding) {
|
|
236
|
+
if (prefix.length >= binding.chord.length)
|
|
237
|
+
return false;
|
|
238
|
+
for (let i = 0;i < prefix.length; i++) {
|
|
239
|
+
const prefixKey = prefix[i];
|
|
240
|
+
const bindingKey = binding.chord[i];
|
|
241
|
+
if (!prefixKey || !bindingKey)
|
|
242
|
+
return false;
|
|
243
|
+
if (!keystrokesEqual(prefixKey, bindingKey))
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
return true;
|
|
247
|
+
}
|
|
248
|
+
function chordExactlyMatches(chord, binding) {
|
|
249
|
+
if (chord.length !== binding.chord.length)
|
|
250
|
+
return false;
|
|
251
|
+
for (let i = 0;i < chord.length; i++) {
|
|
252
|
+
const chordKey = chord[i];
|
|
253
|
+
const bindingKey = binding.chord[i];
|
|
254
|
+
if (!chordKey || !bindingKey)
|
|
255
|
+
return false;
|
|
256
|
+
if (!keystrokesEqual(chordKey, bindingKey))
|
|
257
|
+
return false;
|
|
258
|
+
}
|
|
259
|
+
return true;
|
|
260
|
+
}
|
|
261
|
+
function resolveKeyWithChordState(input, key, activeContexts, bindings, pending) {
|
|
262
|
+
if (key.escape && pending !== null) {
|
|
263
|
+
return { type: "chord_cancelled" };
|
|
264
|
+
}
|
|
265
|
+
const currentKeystroke = buildKeystroke(input, key);
|
|
266
|
+
if (!currentKeystroke) {
|
|
267
|
+
if (pending !== null) {
|
|
268
|
+
return { type: "chord_cancelled" };
|
|
269
|
+
}
|
|
270
|
+
return { type: "none" };
|
|
271
|
+
}
|
|
272
|
+
const testChord = pending ? [...pending, currentKeystroke] : [currentKeystroke];
|
|
273
|
+
const ctxSet = new Set(activeContexts);
|
|
274
|
+
const contextBindings = bindings.filter((b) => ctxSet.has(b.context));
|
|
275
|
+
const chordWinners = new Map;
|
|
276
|
+
for (const binding of contextBindings) {
|
|
277
|
+
if (binding.chord.length > testChord.length && chordPrefixMatches(testChord, binding)) {
|
|
278
|
+
chordWinners.set(chordToString(binding.chord), binding.action);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
let hasLongerChords = false;
|
|
282
|
+
for (const action of chordWinners.values()) {
|
|
283
|
+
if (action !== null) {
|
|
284
|
+
hasLongerChords = true;
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (hasLongerChords) {
|
|
289
|
+
return { type: "chord_started", pending: testChord };
|
|
290
|
+
}
|
|
291
|
+
let exactMatch;
|
|
292
|
+
for (const binding of contextBindings) {
|
|
293
|
+
if (chordExactlyMatches(testChord, binding)) {
|
|
294
|
+
exactMatch = binding;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (exactMatch) {
|
|
298
|
+
if (exactMatch.action === null) {
|
|
299
|
+
return { type: "unbound" };
|
|
300
|
+
}
|
|
301
|
+
return { type: "match", action: exactMatch.action };
|
|
302
|
+
}
|
|
303
|
+
if (pending !== null) {
|
|
304
|
+
return { type: "chord_cancelled" };
|
|
305
|
+
}
|
|
306
|
+
return { type: "none" };
|
|
307
|
+
}
|
|
308
|
+
var init_resolver = __esm(() => {
|
|
309
|
+
init_match();
|
|
310
|
+
init_parser();
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
// src/keybindings/KeybindingContext.tsx
|
|
314
|
+
function KeybindingProvider(t0) {
|
|
315
|
+
const $ = import_compiler_runtime.c(24);
|
|
316
|
+
const {
|
|
317
|
+
bindings,
|
|
318
|
+
pendingChordRef,
|
|
319
|
+
pendingChord,
|
|
320
|
+
setPendingChord,
|
|
321
|
+
activeContexts,
|
|
322
|
+
registerActiveContext,
|
|
323
|
+
unregisterActiveContext,
|
|
324
|
+
handlerRegistryRef,
|
|
325
|
+
children
|
|
326
|
+
} = t0;
|
|
327
|
+
let t1;
|
|
328
|
+
if ($[0] !== bindings) {
|
|
329
|
+
t1 = (action, context) => getBindingDisplayText(action, context, bindings);
|
|
330
|
+
$[0] = bindings;
|
|
331
|
+
$[1] = t1;
|
|
332
|
+
} else {
|
|
333
|
+
t1 = $[1];
|
|
334
|
+
}
|
|
335
|
+
const getDisplay = t1;
|
|
336
|
+
let t2;
|
|
337
|
+
if ($[2] !== handlerRegistryRef) {
|
|
338
|
+
t2 = (registration) => {
|
|
339
|
+
const registry = handlerRegistryRef.current;
|
|
340
|
+
if (!registry) {
|
|
341
|
+
return _temp;
|
|
342
|
+
}
|
|
343
|
+
if (!registry.has(registration.action)) {
|
|
344
|
+
registry.set(registration.action, new Set);
|
|
345
|
+
}
|
|
346
|
+
registry.get(registration.action).add(registration);
|
|
347
|
+
return () => {
|
|
348
|
+
const handlers = registry.get(registration.action);
|
|
349
|
+
if (handlers) {
|
|
350
|
+
handlers.delete(registration);
|
|
351
|
+
if (handlers.size === 0) {
|
|
352
|
+
registry.delete(registration.action);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
$[2] = handlerRegistryRef;
|
|
358
|
+
$[3] = t2;
|
|
359
|
+
} else {
|
|
360
|
+
t2 = $[3];
|
|
361
|
+
}
|
|
362
|
+
const registerHandler = t2;
|
|
363
|
+
let t3;
|
|
364
|
+
if ($[4] !== activeContexts || $[5] !== handlerRegistryRef) {
|
|
365
|
+
t3 = (action_0) => {
|
|
366
|
+
const registry_0 = handlerRegistryRef.current;
|
|
367
|
+
if (!registry_0) {
|
|
368
|
+
return false;
|
|
369
|
+
}
|
|
370
|
+
const handlers_0 = registry_0.get(action_0);
|
|
371
|
+
if (!handlers_0 || handlers_0.size === 0) {
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
for (const registration_0 of handlers_0) {
|
|
375
|
+
if (activeContexts.has(registration_0.context)) {
|
|
376
|
+
registration_0.handler();
|
|
377
|
+
return true;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
return false;
|
|
381
|
+
};
|
|
382
|
+
$[4] = activeContexts;
|
|
383
|
+
$[5] = handlerRegistryRef;
|
|
384
|
+
$[6] = t3;
|
|
385
|
+
} else {
|
|
386
|
+
t3 = $[6];
|
|
387
|
+
}
|
|
388
|
+
const invokeAction = t3;
|
|
389
|
+
let t4;
|
|
390
|
+
if ($[7] !== bindings || $[8] !== pendingChordRef) {
|
|
391
|
+
t4 = (input, key, contexts) => resolveKeyWithChordState(input, key, contexts, bindings, pendingChordRef.current);
|
|
392
|
+
$[7] = bindings;
|
|
393
|
+
$[8] = pendingChordRef;
|
|
394
|
+
$[9] = t4;
|
|
395
|
+
} else {
|
|
396
|
+
t4 = $[9];
|
|
397
|
+
}
|
|
398
|
+
let t5;
|
|
399
|
+
if ($[10] !== activeContexts || $[11] !== bindings || $[12] !== getDisplay || $[13] !== invokeAction || $[14] !== pendingChord || $[15] !== registerActiveContext || $[16] !== registerHandler || $[17] !== setPendingChord || $[18] !== t4 || $[19] !== unregisterActiveContext) {
|
|
400
|
+
t5 = {
|
|
401
|
+
resolve: t4,
|
|
402
|
+
setPendingChord,
|
|
403
|
+
getDisplayText: getDisplay,
|
|
404
|
+
bindings,
|
|
405
|
+
pendingChord,
|
|
406
|
+
activeContexts,
|
|
407
|
+
registerActiveContext,
|
|
408
|
+
unregisterActiveContext,
|
|
409
|
+
registerHandler,
|
|
410
|
+
invokeAction
|
|
411
|
+
};
|
|
412
|
+
$[10] = activeContexts;
|
|
413
|
+
$[11] = bindings;
|
|
414
|
+
$[12] = getDisplay;
|
|
415
|
+
$[13] = invokeAction;
|
|
416
|
+
$[14] = pendingChord;
|
|
417
|
+
$[15] = registerActiveContext;
|
|
418
|
+
$[16] = registerHandler;
|
|
419
|
+
$[17] = setPendingChord;
|
|
420
|
+
$[18] = t4;
|
|
421
|
+
$[19] = unregisterActiveContext;
|
|
422
|
+
$[20] = t5;
|
|
423
|
+
} else {
|
|
424
|
+
t5 = $[20];
|
|
425
|
+
}
|
|
426
|
+
const value = t5;
|
|
427
|
+
let t6;
|
|
428
|
+
if ($[21] !== children || $[22] !== value) {
|
|
429
|
+
t6 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeybindingContext.Provider, {
|
|
430
|
+
value,
|
|
431
|
+
children
|
|
432
|
+
}, undefined, false, undefined, this);
|
|
433
|
+
$[21] = children;
|
|
434
|
+
$[22] = value;
|
|
435
|
+
$[23] = t6;
|
|
436
|
+
} else {
|
|
437
|
+
t6 = $[23];
|
|
438
|
+
}
|
|
439
|
+
return t6;
|
|
440
|
+
}
|
|
441
|
+
function _temp() {}
|
|
442
|
+
function useOptionalKeybindingContext() {
|
|
443
|
+
return import_react2.useContext(KeybindingContext);
|
|
444
|
+
}
|
|
445
|
+
function useRegisterKeybindingContext(context, t0) {
|
|
446
|
+
const $ = import_compiler_runtime.c(5);
|
|
447
|
+
const isActive = t0 === undefined ? true : t0;
|
|
448
|
+
const keybindingContext = useOptionalKeybindingContext();
|
|
449
|
+
let t1;
|
|
450
|
+
let t2;
|
|
451
|
+
if ($[0] !== context || $[1] !== isActive || $[2] !== keybindingContext) {
|
|
452
|
+
t1 = () => {
|
|
453
|
+
if (!keybindingContext || !isActive) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
keybindingContext.registerActiveContext(context);
|
|
457
|
+
return () => {
|
|
458
|
+
keybindingContext.unregisterActiveContext(context);
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
t2 = [context, keybindingContext, isActive];
|
|
462
|
+
$[0] = context;
|
|
463
|
+
$[1] = isActive;
|
|
464
|
+
$[2] = keybindingContext;
|
|
465
|
+
$[3] = t1;
|
|
466
|
+
$[4] = t2;
|
|
467
|
+
} else {
|
|
468
|
+
t1 = $[3];
|
|
469
|
+
t2 = $[4];
|
|
470
|
+
}
|
|
471
|
+
import_react2.useLayoutEffect(t1, t2);
|
|
472
|
+
}
|
|
473
|
+
var import_compiler_runtime, import_react2, jsx_dev_runtime, KeybindingContext;
|
|
474
|
+
var init_KeybindingContext = __esm(() => {
|
|
475
|
+
init_resolver();
|
|
476
|
+
import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
|
|
477
|
+
import_react2 = __toESM(require_react(), 1);
|
|
478
|
+
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
479
|
+
KeybindingContext = import_react2.createContext(null);
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
// src/keybindings/useKeybinding.ts
|
|
483
|
+
function useKeybinding(action, handler, options = {}) {
|
|
484
|
+
const { context = "Global", isActive = true } = options;
|
|
485
|
+
const keybindingContext = useOptionalKeybindingContext();
|
|
486
|
+
import_react3.useEffect(() => {
|
|
487
|
+
if (!keybindingContext || !isActive)
|
|
488
|
+
return;
|
|
489
|
+
return keybindingContext.registerHandler({ action, context, handler });
|
|
490
|
+
}, [action, context, handler, keybindingContext, isActive]);
|
|
491
|
+
const handleInput = import_react3.useCallback((input, key, event) => {
|
|
492
|
+
if (!keybindingContext)
|
|
493
|
+
return;
|
|
494
|
+
const contextsToCheck = [
|
|
495
|
+
...keybindingContext.activeContexts,
|
|
496
|
+
context,
|
|
497
|
+
"Global"
|
|
498
|
+
];
|
|
499
|
+
const uniqueContexts = [...new Set(contextsToCheck)];
|
|
500
|
+
const result = keybindingContext.resolve(input, key, uniqueContexts);
|
|
501
|
+
switch (result.type) {
|
|
502
|
+
case "match":
|
|
503
|
+
keybindingContext.setPendingChord(null);
|
|
504
|
+
if (result.action === action) {
|
|
505
|
+
if (handler() !== false) {
|
|
506
|
+
event.stopImmediatePropagation();
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
break;
|
|
510
|
+
case "chord_started":
|
|
511
|
+
keybindingContext.setPendingChord(result.pending);
|
|
512
|
+
event.stopImmediatePropagation();
|
|
513
|
+
break;
|
|
514
|
+
case "chord_cancelled":
|
|
515
|
+
keybindingContext.setPendingChord(null);
|
|
516
|
+
break;
|
|
517
|
+
case "unbound":
|
|
518
|
+
keybindingContext.setPendingChord(null);
|
|
519
|
+
event.stopImmediatePropagation();
|
|
520
|
+
break;
|
|
521
|
+
case "none":
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
}, [action, context, handler, keybindingContext]);
|
|
525
|
+
use_input_default(handleInput, { isActive });
|
|
526
|
+
}
|
|
527
|
+
function useKeybindings(handlers, options = {}) {
|
|
528
|
+
const { context = "Global", isActive = true } = options;
|
|
529
|
+
const keybindingContext = useOptionalKeybindingContext();
|
|
530
|
+
import_react3.useEffect(() => {
|
|
531
|
+
if (!keybindingContext || !isActive)
|
|
532
|
+
return;
|
|
533
|
+
const unregisterFns = [];
|
|
534
|
+
for (const [action, handler] of Object.entries(handlers)) {
|
|
535
|
+
unregisterFns.push(keybindingContext.registerHandler({ action, context, handler }));
|
|
536
|
+
}
|
|
537
|
+
return () => {
|
|
538
|
+
for (const unregister of unregisterFns) {
|
|
539
|
+
unregister();
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
}, [context, handlers, keybindingContext, isActive]);
|
|
543
|
+
const handleInput = import_react3.useCallback((input, key, event) => {
|
|
544
|
+
if (!keybindingContext)
|
|
545
|
+
return;
|
|
546
|
+
const contextsToCheck = [
|
|
547
|
+
...keybindingContext.activeContexts,
|
|
548
|
+
context,
|
|
549
|
+
"Global"
|
|
550
|
+
];
|
|
551
|
+
const uniqueContexts = [...new Set(contextsToCheck)];
|
|
552
|
+
const result = keybindingContext.resolve(input, key, uniqueContexts);
|
|
553
|
+
switch (result.type) {
|
|
554
|
+
case "match":
|
|
555
|
+
keybindingContext.setPendingChord(null);
|
|
556
|
+
if (result.action in handlers) {
|
|
557
|
+
const handler = handlers[result.action];
|
|
558
|
+
if (handler && handler() !== false) {
|
|
559
|
+
event.stopImmediatePropagation();
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
break;
|
|
563
|
+
case "chord_started":
|
|
564
|
+
keybindingContext.setPendingChord(result.pending);
|
|
565
|
+
event.stopImmediatePropagation();
|
|
566
|
+
break;
|
|
567
|
+
case "chord_cancelled":
|
|
568
|
+
keybindingContext.setPendingChord(null);
|
|
569
|
+
break;
|
|
570
|
+
case "unbound":
|
|
571
|
+
keybindingContext.setPendingChord(null);
|
|
572
|
+
event.stopImmediatePropagation();
|
|
573
|
+
break;
|
|
574
|
+
case "none":
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
}, [context, handlers, keybindingContext]);
|
|
578
|
+
use_input_default(handleInput, { isActive });
|
|
579
|
+
}
|
|
580
|
+
var import_react3;
|
|
581
|
+
var init_useKeybinding = __esm(() => {
|
|
582
|
+
init_ink();
|
|
583
|
+
init_KeybindingContext();
|
|
584
|
+
import_react3 = __toESM(require_react(), 1);
|
|
585
|
+
});
|
|
586
|
+
|
|
587
|
+
// src/context/modalContext.tsx
|
|
588
|
+
function useIsInsideModal() {
|
|
589
|
+
return import_react4.useContext(ModalContext) !== null;
|
|
590
|
+
}
|
|
591
|
+
function useModalOrTerminalSize(fallback) {
|
|
592
|
+
const $ = import_compiler_runtime2.c(3);
|
|
593
|
+
const ctx = import_react4.useContext(ModalContext);
|
|
594
|
+
let t0;
|
|
595
|
+
if ($[0] !== ctx || $[1] !== fallback) {
|
|
596
|
+
t0 = ctx ? {
|
|
597
|
+
rows: ctx.rows,
|
|
598
|
+
columns: ctx.columns
|
|
599
|
+
} : fallback;
|
|
600
|
+
$[0] = ctx;
|
|
601
|
+
$[1] = fallback;
|
|
602
|
+
$[2] = t0;
|
|
603
|
+
} else {
|
|
604
|
+
t0 = $[2];
|
|
605
|
+
}
|
|
606
|
+
return t0;
|
|
607
|
+
}
|
|
608
|
+
function useModalScrollRef() {
|
|
609
|
+
return import_react4.useContext(ModalContext)?.scrollRef ?? null;
|
|
610
|
+
}
|
|
611
|
+
var import_compiler_runtime2, import_react4, ModalContext;
|
|
612
|
+
var init_modalContext = __esm(() => {
|
|
613
|
+
import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
|
|
614
|
+
import_react4 = __toESM(require_react(), 1);
|
|
615
|
+
ModalContext = import_react4.createContext(null);
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
// src/components/design-system/Divider.tsx
|
|
619
|
+
function Divider(t0) {
|
|
620
|
+
const $ = import_compiler_runtime3.c(21);
|
|
621
|
+
const {
|
|
622
|
+
width,
|
|
623
|
+
color,
|
|
624
|
+
char: t1,
|
|
625
|
+
padding: t2,
|
|
626
|
+
title
|
|
627
|
+
} = t0;
|
|
628
|
+
const char = t1 === undefined ? "\u2500" : t1;
|
|
629
|
+
const padding = t2 === undefined ? 0 : t2;
|
|
630
|
+
const {
|
|
631
|
+
columns: terminalWidth
|
|
632
|
+
} = useTerminalSize();
|
|
633
|
+
const effectiveWidth = Math.max(0, (width ?? terminalWidth) - padding);
|
|
634
|
+
if (title) {
|
|
635
|
+
const titleWidth = stringWidth(title) + 2;
|
|
636
|
+
const sideWidth = Math.max(0, effectiveWidth - titleWidth);
|
|
637
|
+
const leftWidth = Math.floor(sideWidth / 2);
|
|
638
|
+
const rightWidth = sideWidth - leftWidth;
|
|
639
|
+
const t32 = !color;
|
|
640
|
+
let t42;
|
|
641
|
+
if ($[0] !== char || $[1] !== leftWidth) {
|
|
642
|
+
t42 = char.repeat(leftWidth);
|
|
643
|
+
$[0] = char;
|
|
644
|
+
$[1] = leftWidth;
|
|
645
|
+
$[2] = t42;
|
|
646
|
+
} else {
|
|
647
|
+
t42 = $[2];
|
|
648
|
+
}
|
|
649
|
+
let t52;
|
|
650
|
+
if ($[3] !== title) {
|
|
651
|
+
t52 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
652
|
+
dimColor: true,
|
|
653
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Ansi, {
|
|
654
|
+
children: title
|
|
655
|
+
}, undefined, false, undefined, this)
|
|
656
|
+
}, undefined, false, undefined, this);
|
|
657
|
+
$[3] = title;
|
|
658
|
+
$[4] = t52;
|
|
659
|
+
} else {
|
|
660
|
+
t52 = $[4];
|
|
661
|
+
}
|
|
662
|
+
let t6;
|
|
663
|
+
if ($[5] !== char || $[6] !== rightWidth) {
|
|
664
|
+
t6 = char.repeat(rightWidth);
|
|
665
|
+
$[5] = char;
|
|
666
|
+
$[6] = rightWidth;
|
|
667
|
+
$[7] = t6;
|
|
668
|
+
} else {
|
|
669
|
+
t6 = $[7];
|
|
670
|
+
}
|
|
671
|
+
let t7;
|
|
672
|
+
if ($[8] !== color || $[9] !== t32 || $[10] !== t42 || $[11] !== t52 || $[12] !== t6) {
|
|
673
|
+
t7 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
674
|
+
color,
|
|
675
|
+
dimColor: t32,
|
|
676
|
+
children: [
|
|
677
|
+
t42,
|
|
678
|
+
" ",
|
|
679
|
+
t52,
|
|
680
|
+
" ",
|
|
681
|
+
t6
|
|
682
|
+
]
|
|
683
|
+
}, undefined, true, undefined, this);
|
|
684
|
+
$[8] = color;
|
|
685
|
+
$[9] = t32;
|
|
686
|
+
$[10] = t42;
|
|
687
|
+
$[11] = t52;
|
|
688
|
+
$[12] = t6;
|
|
689
|
+
$[13] = t7;
|
|
690
|
+
} else {
|
|
691
|
+
t7 = $[13];
|
|
692
|
+
}
|
|
693
|
+
return t7;
|
|
694
|
+
}
|
|
695
|
+
const t3 = !color;
|
|
696
|
+
let t4;
|
|
697
|
+
if ($[14] !== char || $[15] !== effectiveWidth) {
|
|
698
|
+
t4 = char.repeat(effectiveWidth);
|
|
699
|
+
$[14] = char;
|
|
700
|
+
$[15] = effectiveWidth;
|
|
701
|
+
$[16] = t4;
|
|
702
|
+
} else {
|
|
703
|
+
t4 = $[16];
|
|
704
|
+
}
|
|
705
|
+
let t5;
|
|
706
|
+
if ($[17] !== color || $[18] !== t3 || $[19] !== t4) {
|
|
707
|
+
t5 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
708
|
+
color,
|
|
709
|
+
dimColor: t3,
|
|
710
|
+
children: t4
|
|
711
|
+
}, undefined, false, undefined, this);
|
|
712
|
+
$[17] = color;
|
|
713
|
+
$[18] = t3;
|
|
714
|
+
$[19] = t4;
|
|
715
|
+
$[20] = t5;
|
|
716
|
+
} else {
|
|
717
|
+
t5 = $[20];
|
|
718
|
+
}
|
|
719
|
+
return t5;
|
|
720
|
+
}
|
|
721
|
+
var import_compiler_runtime3, jsx_dev_runtime2;
|
|
722
|
+
var init_Divider = __esm(() => {
|
|
723
|
+
init_useTerminalSize();
|
|
724
|
+
init_stringWidth();
|
|
725
|
+
init_ink();
|
|
726
|
+
import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
|
|
727
|
+
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
728
|
+
});
|
|
729
|
+
|
|
730
|
+
// src/components/design-system/Pane.tsx
|
|
731
|
+
function Pane(t0) {
|
|
732
|
+
const $ = import_compiler_runtime4.c(9);
|
|
733
|
+
const {
|
|
734
|
+
children,
|
|
735
|
+
color
|
|
736
|
+
} = t0;
|
|
737
|
+
if (useIsInsideModal()) {
|
|
738
|
+
let t12;
|
|
739
|
+
if ($[0] !== children) {
|
|
740
|
+
t12 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
741
|
+
flexDirection: "column",
|
|
742
|
+
paddingX: 1,
|
|
743
|
+
flexShrink: 0,
|
|
744
|
+
children
|
|
745
|
+
}, undefined, false, undefined, this);
|
|
746
|
+
$[0] = children;
|
|
747
|
+
$[1] = t12;
|
|
748
|
+
} else {
|
|
749
|
+
t12 = $[1];
|
|
750
|
+
}
|
|
751
|
+
return t12;
|
|
752
|
+
}
|
|
753
|
+
let t1;
|
|
754
|
+
if ($[2] !== color) {
|
|
755
|
+
t1 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Divider, {
|
|
756
|
+
color
|
|
757
|
+
}, undefined, false, undefined, this);
|
|
758
|
+
$[2] = color;
|
|
759
|
+
$[3] = t1;
|
|
760
|
+
} else {
|
|
761
|
+
t1 = $[3];
|
|
762
|
+
}
|
|
763
|
+
let t2;
|
|
764
|
+
if ($[4] !== children) {
|
|
765
|
+
t2 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
766
|
+
flexDirection: "column",
|
|
767
|
+
paddingX: 2,
|
|
768
|
+
children
|
|
769
|
+
}, undefined, false, undefined, this);
|
|
770
|
+
$[4] = children;
|
|
771
|
+
$[5] = t2;
|
|
772
|
+
} else {
|
|
773
|
+
t2 = $[5];
|
|
774
|
+
}
|
|
775
|
+
let t3;
|
|
776
|
+
if ($[6] !== t1 || $[7] !== t2) {
|
|
777
|
+
t3 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
778
|
+
flexDirection: "column",
|
|
779
|
+
paddingTop: 1,
|
|
780
|
+
children: [
|
|
781
|
+
t1,
|
|
782
|
+
t2
|
|
783
|
+
]
|
|
784
|
+
}, undefined, true, undefined, this);
|
|
785
|
+
$[6] = t1;
|
|
786
|
+
$[7] = t2;
|
|
787
|
+
$[8] = t3;
|
|
788
|
+
} else {
|
|
789
|
+
t3 = $[8];
|
|
790
|
+
}
|
|
791
|
+
return t3;
|
|
792
|
+
}
|
|
793
|
+
var import_compiler_runtime4, jsx_dev_runtime3;
|
|
794
|
+
var init_Pane = __esm(() => {
|
|
795
|
+
init_modalContext();
|
|
796
|
+
init_ink();
|
|
797
|
+
init_Divider();
|
|
798
|
+
import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
|
|
799
|
+
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
800
|
+
});
|
|
801
|
+
|
|
802
|
+
export { useTerminalSize, init_useTerminalSize, parseKeystroke, parseChord, chordToString, parseBindings, init_parser, getBindingDisplayText, resolveKeyWithChordState, init_resolver, KeybindingProvider, useOptionalKeybindingContext, useRegisterKeybindingContext, init_KeybindingContext, useKeybinding, useKeybindings, init_useKeybinding, ModalContext, useIsInsideModal, useModalOrTerminalSize, useModalScrollRef, init_modalContext, Divider, init_Divider, Pane, init_Pane };
|