@marimo-team/islands 0.23.15-dev7 → 0.23.15-dev71
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/{ConnectedDataExplorerComponent-CU4fZJzG.js → ConnectedDataExplorerComponent-CJaUI-S-.js} +85 -84
- package/dist/{ErrorBoundary-DE6tzZf-.js → ErrorBoundary-DXlxsrTF.js} +3 -3
- package/dist/{ImageComparisonComponent-CHrI72em.js → ImageComparisonComponent-C3y7L3eJ.js} +173 -129
- package/dist/{any-language-editor-DN1R-1KZ.js → any-language-editor-P9tjkj4n.js} +21 -21
- package/dist/apl-e1B5LPEL.js +4 -0
- package/dist/{arc-DfkSnvZm.js → arc-CTIpFoOn.js} +2 -2
- package/dist/architecture-7HQA4BMR-DHUrQjL4.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-CT2SuxNw.js → architectureDiagram-VXUJARFQ-DXwkyAaM.js} +19 -19
- package/dist/asciiarmor-B-gwgesP.js +4 -0
- package/dist/asn1-DF2ckRB4.js +4 -0
- package/dist/assets/__vite-browser-external-DltVXDv7.js +1 -0
- package/dist/assets/worker-CDEKsBgX.js +98 -0
- package/dist/{blockDiagram-VD42YOAC-Dy7hlFla.js → blockDiagram-VD42YOAC-CIOjvxeD.js} +12 -12
- package/dist/brainfuck-4G-7_gq_.js +4 -0
- package/dist/{button-BacYv-bE.js → button-BcSml68y.js} +12 -65
- package/dist/{c4Diagram-YG6GDRKO-BXlAmZ8Z.js → c4Diagram-YG6GDRKO-B6dZC_oU.js} +6 -6
- package/dist/{capabilities-D_4LYhSU.js → capabilities-BYLFYTYv.js} +2 -2
- package/dist/{channel-D_PHgcig.js → channel-BN070S0F.js} +1 -1
- package/dist/{chat-ui-DinOvbWu.js → chat-ui-BdSDiVjk.js} +3122 -3116
- package/dist/{check-C9OoNtR4.js → check-Cs-KV5XY.js} +1 -1
- package/dist/{chunk-4BX2VUAB-CzXltWHN.js → chunk-4BX2VUAB-iU5lQTDI.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-D9nGEHV8.js → chunk-4F5CHEZ2-VlodlEGo.js} +1 -1
- package/dist/{chunk-55IACEB6-B-1mjMMC.js → chunk-55IACEB6-7h71GwyW.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BbqSm5gU.js → chunk-5FQGJX7Z-B9WoXK1R.js} +3 -3
- package/dist/{chunk-ABZYJK2D-Dz0-H2B5.js → chunk-ABZYJK2D-BxBDji1u.js} +3 -3
- package/dist/{chunk-ATLVNIR6-o0Z5MZLd.js → chunk-ATLVNIR6-qFiszptQ.js} +2 -2
- package/dist/{chunk-B2363JML-KEJpLGGP.js → chunk-B2363JML-zL3VngtH.js} +1 -1
- package/dist/{chunk-B4BG7PRW-BL98U9B4.js → chunk-B4BG7PRW-B_z2FEHm.js} +7 -7
- package/dist/{chunk-CVBHYZKI-B_c5YBcW.js → chunk-CVBHYZKI-CwazXVlJ.js} +1 -1
- package/dist/{chunk-DI55MBZ5-Dwkn0LWm.js → chunk-DI55MBZ5-D4Y8yV8B.js} +6 -6
- package/dist/{chunk-EXTU4WIE-9sNjmQrB.js → chunk-EXTU4WIE-BQPBhApE.js} +2 -2
- package/dist/{chunk-FMBD7UC4-Ie8M9q0W.js → chunk-FMBD7UC4-quJmebXa.js} +1 -1
- package/dist/{chunk-FRFDVMJY-DzQqMWrl.js → chunk-FRFDVMJY-BHBqN-vD.js} +1 -1
- package/dist/{chunk-HN2XXSSU-E3n-Ys7Z.js → chunk-HN2XXSSU-Bv0QkeMr.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-C32Y7Epf.js → chunk-JA3XYJ7Z-CY4CRbV5.js} +3 -3
- package/dist/{chunk-JZLCHNYA-C6ftyVMN.js → chunk-JZLCHNYA-DWIR9m5O.js} +6 -6
- package/dist/{chunk-MI3HLSF2-CUYEasXO.js → chunk-MI3HLSF2-HGWI-8Pg.js} +1 -1
- package/dist/{chunk-N4CR4FBY-DUhGZhZs.js → chunk-N4CR4FBY-Bw2HcMNc.js} +7 -7
- package/dist/{chunk-PL6DKKU2-D7km-08O.js → chunk-PL6DKKU2-CAHKc95s.js} +1 -1
- package/dist/{chunk-QN33PNHL-0K6SDYn3.js → chunk-QN33PNHL-DPBNNzpR.js} +2 -2
- package/dist/{chunk-QXUST7PY-DMhsRpYK.js → chunk-QXUST7PY-DtC2t9Mk.js} +10 -10
- package/dist/{chunk-QZHKN3VN-DRjXVwuJ.js → chunk-QZHKN3VN-Dym5BS7y.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-oAe3dEbO.js → chunk-S3R3BYOJ-BdgLc8AM.js} +4 -4
- package/dist/{chunk-SJTYNZTY-BkJrPRFC.js → chunk-SJTYNZTY-DnXoKWpW.js} +1 -1
- package/dist/{chunk-TCCFYFTB-D58KeXnC.js → chunk-TCCFYFTB-DPWJa9zL.js} +1 -1
- package/dist/{chunk-TQ3KTPDO-D_yA_wAb.js → chunk-TQ3KTPDO-CsDx6v37.js} +1 -1
- package/dist/{chunk-TZMSLE5B-yBKS_DQU.js → chunk-TZMSLE5B-BzSHcq-K.js} +3 -3
- package/dist/{chunk-UMXZTB3W-D7uwvNjd.js → chunk-UMXZTB3W-D1uHz8MN.js} +1 -1
- package/dist/classDiagram-2ON5EDUG-BiQPjMNY.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-YHdR8fqM.js +30 -0
- package/dist/{clike-DTxNUn7l.js → clike-7lgyEYRk.js} +1 -1
- package/dist/clojure-CUybM11R.js +4 -0
- package/dist/cmake-BPjGcuDL.js +4 -0
- package/dist/cobol-BETk_nb6.js +4 -0
- package/dist/{code-block-37QAKDTI-O6IH6wAi.js → code-block-37QAKDTI-MSxEjskJ.js} +1 -1
- package/dist/{code-visibility-B8b6lh5X.js → code-visibility-CjiY9v4i.js} +1554 -1471
- package/dist/coffeescript-CManZxXL.js +4 -0
- package/dist/commonlisp-DWkn7GW8.js +4 -0
- package/dist/{copy-COam1EG7.js → copy-Cs3yt6Vt.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-kjoZoid4.js → cose-bilkent-S5V4N54A-BYj0aL7z.js} +2 -2
- package/dist/crystal-CCbg5EUH.js +4 -0
- package/dist/css-By8eo-XS.js +4 -0
- package/dist/cypher-DwfHg3nP.js +4 -0
- package/dist/d-Brs1wNbw.js +4 -0
- package/dist/{dagre-6UL2VRFP-J0JKgwOt.js → dagre-6UL2VRFP-DpYjBqQs.js} +11 -11
- package/dist/{data-grid-overlay-editor-C6lxUJp-.js → data-grid-overlay-editor-BWRG2b_o.js} +2 -2
- package/dist/{constants-T20xxyNf.js → debounce-BOD3DbfP.js} +1 -24
- package/dist/{diagram-PSM6KHXK-DYgJuNk9.js → diagram-PSM6KHXK-D4ftnaua.js} +22 -22
- package/dist/{diagram-QEK2KX5R-CKdBR2sb.js → diagram-QEK2KX5R-DVlUOgs1.js} +17 -17
- package/dist/{diagram-S2PKOQOG-Dpi7mo5W.js → diagram-S2PKOQOG-CGh4OMEV.js} +17 -17
- package/dist/diff-DJIRmJ1g.js +4 -0
- package/dist/{dist-DyyjKEYf.js → dist-3NCqaWjt.js} +2 -2
- package/dist/{dist-D-W5ny5a.js → dist-4lVIWUT3.js} +1 -1
- package/dist/dist-5o9uz19x.js +5 -0
- package/dist/{dist-GZXUmt0b.js → dist-B2jmQKKx.js} +2 -2
- package/dist/{dist--2Bqjvs0.js → dist-B96tMAst.js} +2 -2
- package/dist/{dist-BaoDKvdy.js → dist-BCX980mU.js} +2 -2
- package/dist/{dist-DMjWuVs8.js → dist-BIEt-mlF.js} +1 -1
- package/dist/{dist-BR_gyG9L.js → dist-BO5HRiTf.js} +2 -2
- package/dist/{dist-Dv_Y15yk.js → dist-BOMbzyb3.js} +85 -85
- package/dist/{dist-CIYBwstr.js → dist-BP39XM8u.js} +1 -1
- package/dist/{dist-DZo4nSS0.js → dist-BPF0gTRZ.js} +6 -6
- package/dist/{dist-BSAt6RhH.js → dist-BTdrwBWP.js} +22 -22
- package/dist/{dist-BY018Paw.js → dist-BdqCKQ1O.js} +2 -2
- package/dist/dist-BpDH0DEP.js +5 -0
- package/dist/dist-BpXhbQXO.js +8 -0
- package/dist/{dist-CcWX6tmx.js → dist-BpeiYpG2.js} +2 -2
- package/dist/{dist-A2846XWO.js → dist-BwhXBwMd.js} +1 -1
- package/dist/dist-ByadAk_L.js +5 -0
- package/dist/{dist-abid3KgM.js → dist-C18MUWTj.js} +2 -2
- package/dist/{dist-DZORgqKY.js → dist-C2_4pjuS.js} +1 -1
- package/dist/{dist-BzEzfugY.js → dist-CFSb_Frm.js} +1 -1
- package/dist/dist-CK0g7JvP.js +8 -0
- package/dist/{dist-C_Y3oV3C.js → dist-CRmSjkLP.js} +2 -2
- package/dist/{dist-hT4QzYX-.js → dist-CSlJrrAw.js} +86 -81
- package/dist/{dist-Du8WkPuU.js → dist-CV79CsQ0.js} +2 -2
- package/dist/dist-CfzCtiq2.js +5 -0
- package/dist/{dist-CoXAujgg.js → dist-D3bdsa1d.js} +4 -4
- package/dist/dist-D8JtVFrW.js +8 -0
- package/dist/dist-DK2Oocpu.js +6 -0
- package/dist/{dist-LTU8Hdvn.js → dist-DZwp8lro.js} +3 -3
- package/dist/{dist-t9Kf7xqC.js → dist-DaXJPX8F.js} +2 -2
- package/dist/{dist-U4F-tbMs.js → dist-De-GlSAs.js} +246 -184
- package/dist/{dist-M9Vag9Y0.js → dist-DgjbnqTg.js} +125 -125
- package/dist/dist-DnSu977r.js +5 -0
- package/dist/{dist-CxJDU6Bh.js → dist-DviUBLUp.js} +4 -4
- package/dist/{dist-CpxNdDkw.js → dist-DwqBJ014.js} +2 -2
- package/dist/{dist-Bf7SHuNp.js → dist-JGehap7K.js} +5 -5
- package/dist/{dist-Bk75fBZA.js → dist-LpLXa9Lb.js} +2 -2
- package/dist/{dist-Bf9f8MuT.js → dist-SXNmlE8A.js} +1 -1
- package/dist/dist-UmxJm6sW.js +8 -0
- package/dist/dist-aYSBQSyM.js +5 -0
- package/dist/dist-kkZ1Ztlh.js +6 -0
- package/dist/dist-ngPczwNi.js +5 -0
- package/dist/{dist-DgGbNavJ.js → dist-pqIwD8VD.js} +2 -2
- package/dist/dist-wQRyxyTV.js +5 -0
- package/dist/{dist-Dax--nl9.js → dist-w_gWE5Wf.js} +1 -1
- package/dist/{dockerfile-twL37N91.js → dockerfile-B82Pkz_V.js} +1 -1
- package/dist/dtd-Dyiazv4N.js +4 -0
- package/dist/dylan-D8Fcw7NA.js +4 -0
- package/dist/ecl-CjKp8Vii.js +4 -0
- package/dist/eiffel-K9ViOX5r.js +4 -0
- package/dist/elm-B5NVtRco.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-BU-m41EQ.js → erDiagram-Q2GNP2WA-BcKAHFqF.js} +15 -15
- package/dist/erlang-BnLzgk7R.js +4 -0
- package/dist/{error-banner-DFPfz_Qf.js → error-banner-DR7o3CbX.js} +68 -68
- package/dist/{esm-ga2Bf3O2.js → esm-DKOv6P2M.js} +424 -424
- package/dist/esm-k8PIvuZW.js +1180 -0
- package/dist/{extends-9MVIxxRo.js → extends-Cq2JYHKy.js} +36 -20
- package/dist/{factor-CajWS6mS.js → factor-Bq2mGIHt.js} +1 -1
- package/dist/factor-C7f9Jz5R.js +4 -0
- package/dist/{flowDiagram-NV44I4VS-CRoXKjGq.js → flowDiagram-NV44I4VS-BRhSg-ro.js} +17 -17
- package/dist/{formats-Dzx4J_z1.js → formats-BFhkZJwd.js} +3 -3
- package/dist/forth-rGM8jLao.js +4 -0
- package/dist/fortran-B3acSe0i.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-7mq5f9cO.js → ganttDiagram-JELNMOA3-CXXCN7LN.js} +10 -10
- package/dist/gas-Bb1Vmv_N.js +4 -0
- package/dist/gherkin-C9Lyidgd.js +4 -0
- package/dist/{gitGraph-G5XIXVHT-DiniR35k.js → gitGraph-G5XIXVHT-BjTx0kww.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-Dfuokq6w.js → gitGraphDiagram-V2S2FVAM-BOlkMSqK.js} +17 -17
- package/dist/{glide-data-editor-CjTu7ukN.js → glide-data-editor--CaN-f27.js} +13 -13
- package/dist/groovy-DQk6XcGH.js +4 -0
- package/dist/haskell-mV0Vw9gv.js +4 -0
- package/dist/haxe-DqxN89zH.js +5 -0
- package/dist/{html-to-image-_wGfk8V-.js → html-to-image-DDENewl2.js} +2649 -2607
- package/dist/idl-ya8W561J.js +4 -0
- package/dist/{info-VBDWY6EO-DVZvGhkQ.js → info-VBDWY6EO-CA67FznA.js} +3 -3
- package/dist/infoDiagram-HS3SLOUP-D3TyKnL_.js +30 -0
- package/dist/{input-DtsN7xm-.js → input-DStQIuqD.js} +51 -51
- package/dist/javascript-CgqgptVu.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-8XYSU1GI.js → journeyDiagram-XKPGCS4Q-DEal0aT1.js} +7 -7
- package/dist/julia-CFQ-HusI.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7--9pT9z1R.js → kanban-definition-3W4ZIXB7-Dl90wENN.js} +12 -12
- package/dist/{katex-9-9QRhxz.js → katex-C4t-BmrK.js} +1 -1
- package/dist/{label-WfTSU8L4.js → label-DIk0QoFe.js} +2 -2
- package/dist/{line-C5s_12ee.js → line-C43FIPBd.js} +3 -3
- package/dist/{linear-B5-AFRiR.js → linear-H_vsH9ao.js} +4 -4
- package/dist/livescript-D__3TmDo.js +4 -0
- package/dist/{loader-Boph2xIS.js → loader-CTHCI-qe.js} +5 -16
- package/dist/lua-Bytcgj_W.js +4 -0
- package/dist/main.js +2439 -2199
- package/dist/mathematica-DJhvVKvl.js +4 -0
- package/dist/mbox-IGHPCjfR.js +4 -0
- package/dist/{mermaid-4DMBBIKO-Eg3D4FVz.js → mermaid-4DMBBIKO-FXbOziy9.js} +1 -1
- package/dist/{mermaid-BYqXy_NE.js → mermaid-CdSvixW2.js} +47 -47
- package/dist/{mermaid-parser.core-C3XRsazI.js → mermaid-parser.core-DoivvxPd.js} +8 -8
- package/dist/{mhchem-yiCCuiEF.js → mhchem-EGhUZR1V.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-B-4mnfFG.js → mindmap-definition-VGOIOE7T-CCDupjWW.js} +14 -14
- package/dist/mirc-tcwvVugm.js +4 -0
- package/dist/mllike-Dx91i62r.js +6 -0
- package/dist/modelica-_SRt-yU5.js +4 -0
- package/dist/mscgen-GZrGS9gt.js +6 -0
- package/dist/mumps-Cv3ygyod.js +4 -0
- package/dist/nsis-BU7GeGbI.js +4 -0
- package/dist/{nsis-ClF3r5Tr.js → nsis-i9_sgigf.js} +1 -1
- package/dist/ntriples-CL-FCYXb.js +4 -0
- package/dist/{number-overlay-editor-BLJXvX9c.js → number-overlay-editor-Ck_mc_gT.js} +1 -1
- package/dist/objects-De59twF-.js +56 -0
- package/dist/octave-Dc6_3DIu.js +4 -0
- package/dist/{ordinal-ArJavP1Q.js → ordinal-Bkv2-veX.js} +1 -1
- package/dist/oz-DpUAJCXf.js +4 -0
- package/dist/{packet-DYOGHKS2-34raHOiB.js → packet-DYOGHKS2-Bkgofxf3.js} +3 -3
- package/dist/pascal-B17mncXs.js +4 -0
- package/dist/perl-BTpK97q9.js +4 -0
- package/dist/{pie-VRWISCQL-BaLlzZa3.js → pie-VRWISCQL-B1AMhN_7.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-Cr3cNpZY.js → pieDiagram-ADFJNKIX-JvXG_6hk.js} +22 -22
- package/dist/pig-CFb638Ap.js +4 -0
- package/dist/powershell-Cxo-_2A5.js +4 -0
- package/dist/{precisionRound-Tqb4mg-H.js → precisionRound-CnHPY_5v.js} +1 -1
- package/dist/{process-output-Mh4UrjwM.js → process-output-2QPcgBQg.js} +4 -4
- package/dist/properties-BPgT1xTB.js +4 -0
- package/dist/protobuf-BgHBaIIK.js +4 -0
- package/dist/pug-25-oS0SG.js +4 -0
- package/dist/{pug-B_rby2yb.js → pug-BhE2JRSg.js} +1 -1
- package/dist/puppet-DarIr20S.js +4 -0
- package/dist/purify.es-EnR5yhgI.js +783 -0
- package/dist/python-BqmOsBsi.js +4 -0
- package/dist/q-D3QJCTup.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BuNL8Q93.js → quadrantDiagram-AYHSOK5B-BqDB9tUC.js} +5 -5
- package/dist/r-Cz_yBX4z.js +4 -0
- package/dist/{radar-ZZBFDIW7-Ci7bfoZa.js → radar-ZZBFDIW7-C2b7A32s.js} +3 -3
- package/dist/{react-vega-B0sAlDTL.js → react-vega-BazDALhI.js} +469 -469
- package/dist/{requirementDiagram-UZGBJVZJ-BG2lLUN1.js → requirementDiagram-UZGBJVZJ-KbVt8SPH.js} +14 -14
- package/dist/{reveal-component-D0fwa0Mk.js → reveal-component-Bnwl3rVE.js} +629 -622
- package/dist/rpm-DGOtYwAI.js +5 -0
- package/dist/ruby-DBZu4rPc.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-DMal8sps.js → sankeyDiagram-TZEHDZUN-DgkF38jx.js} +5 -5
- package/dist/sas-Dd1D9qTq.js +4 -0
- package/dist/scheme-BmDjvTHX.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-DT6Tk-Eo.js → sequenceDiagram-WL72ISMW-BDmx9n95.js} +8 -8
- package/dist/shell-BL8zFSaj.js +4 -0
- package/dist/sieve-BAx2WqUP.js +4 -0
- package/dist/smalltalk-CYRzF7VV.js +4 -0
- package/dist/sparql-YWaDRO4A.js +4 -0
- package/dist/{spec-Cz-Bj1JI.js → spec-CnaxwDqy.js} +4 -4
- package/dist/{src-Bf2iLOlr.js → src-DV3ha_nA.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-CB_lodq3.js → stateDiagram-FKZM4ZOC-ByOvQf2n.js} +17 -17
- package/dist/stateDiagram-v2-4FDKWEC3-C3xqeavR.js +29 -0
- package/dist/{step-CWipAYTY.js → step-BqHnkgWE.js} +1 -1
- package/dist/stex-B5O-env2.js +4 -0
- package/dist/{strings-Dq_j3Rxw.js → strings-BYAhZnQi.js} +354 -354
- package/dist/style.css +1 -1
- package/dist/stylus-lYsyLFc1.js +4 -0
- package/dist/swift-ClQz9z1n.js +4 -0
- package/dist/{swiper-component-5HoSsPi1.js → swiper-component-DE94711u.js} +4 -4
- package/dist/tcl-B3jhsfqY.js +4 -0
- package/dist/textile-Cb1Dw7Aq.js +4 -0
- package/dist/{time-CsmIF9YZ.js → time-Bb4A7I6a.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-NfSKRvH0.js → timeline-definition-IT6M3QCI-CkD_trIn.js} +4 -4
- package/dist/{toDate-CWNNlFEX.js → toDate-B3IRfHhw.js} +16 -7
- package/dist/toml-nHZhetdO.js +4 -0
- package/dist/{tooltip-Czds6Qr8.js → tooltip-B-qh7UPB.js} +3 -3
- package/dist/{treemap-GDKQZRPO-Cl6OQh8D.js → treemap-GDKQZRPO-SDux0AV8.js} +3 -3
- package/dist/troff-DuJAGWKH.js +4 -0
- package/dist/ttcn-BxrcwP21.js +4 -0
- package/dist/ttcn-cfg-BAg_9dcc.js +4 -0
- package/dist/turtle-zCq949as.js +4 -0
- package/dist/{types-C2Ir191_.js → types-DQl7jVYK.js} +1 -1
- package/dist/use-vega-container-remeasure-DGNrIQSk.js +27 -0
- package/dist/{useAsyncData-KfHB8wQR.js → useAsyncData-CvO8WUy3.js} +1 -1
- package/dist/{useDateFormatter-CMnRuVmN.js → useDateFormatter-BSoGim-G.js} +2 -2
- package/dist/{useDeepCompareMemoize-nJMtxhm4.js → useDeepCompareMemoize-J3MKRdA4.js} +1 -1
- package/dist/{useIframeCapabilities-DWIYvDh7.js → useIframeCapabilities-POcFXHbw.js} +1 -1
- package/dist/{useLifecycle-DegSo0lV.js → useLifecycle-DqPxHgAN.js} +3 -3
- package/dist/{useTheme-6eZ3GOTS.js → useTheme-XMq9mNf_.js} +65 -29
- package/dist/vb-De5hElus.js +4 -0
- package/dist/vbscript-Cypcpv4F.js +4 -0
- package/dist/{vega-component-DzyyM9fc.js → vega-component-CrFoZT1S.js} +225 -223
- package/dist/vega-embed-container-DAQAMjiO.js +22 -0
- package/dist/vega-loader.browser-DmpxCJqx.js +1353 -0
- package/dist/velocity-Di7l-yhe.js +4 -0
- package/dist/verilog-Bzi-S3g2.js +4 -0
- package/dist/vhdl-B0ZZITaW.js +4 -0
- package/dist/webidl-0sviiRcN.js +4 -0
- package/dist/xquery-B4qMVWaB.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BvwftqMA.js → xychartDiagram-PRI3JC2R-BSkNxYNw.js} +13 -13
- package/dist/yacas-Jt25Fuv8.js +4 -0
- package/dist/z80-CrcbYzmp.js +4 -0
- package/dist/{zod-CijjQh4u.js → zod-D0yOqoGe.js} +26 -26
- package/package.json +3 -1
- package/src/__mocks__/requests.ts +3 -0
- package/src/components/charts/lazy.tsx +3 -1
- package/src/components/charts/vega-embed-container.tsx +18 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +244 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +121 -0
- package/src/components/chat/chat-panel.tsx +196 -67
- package/src/components/chat/chat-utils.ts +111 -2
- package/src/components/editor/RecoveryButton.tsx +2 -2
- package/src/components/editor/SortableCell.tsx +6 -2
- package/src/components/editor/__tests__/output-persistence.test.tsx +241 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +153 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +109 -0
- package/src/components/editor/actions/pair-with-agent-modal.tsx +20 -64
- package/src/components/editor/actions/useNotebookActions.tsx +8 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +14 -5
- package/src/components/editor/ai/ai-completion-editor.tsx +4 -1
- package/src/components/editor/cell/cell-context-menu.tsx +7 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +221 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +308 -77
- package/src/components/editor/chrome/panels/packages-panel.tsx +11 -1
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +3 -2
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +105 -0
- package/src/components/editor/columns/cell-column.tsx +34 -4
- package/src/components/editor/columns/sortable-column.tsx +24 -4
- package/src/components/editor/connections/__tests__/secret-combobox.test.ts +134 -0
- package/src/components/editor/connections/database/schemas.ts +35 -27
- package/src/components/editor/connections/form-renderers.tsx +42 -110
- package/src/components/editor/connections/secret-combobox.tsx +253 -0
- package/src/components/editor/connections/storage/schemas.ts +12 -6
- package/src/components/editor/file-tree/download.ts +46 -0
- package/src/components/editor/file-tree/file-explorer.tsx +3 -21
- package/src/components/editor/file-tree/file-viewer.tsx +4 -27
- package/src/components/editor/navigation/__tests__/navigation.test.ts +33 -0
- package/src/components/editor/navigation/navigation.ts +8 -1
- package/src/components/editor/notebook-cell.tsx +203 -106
- package/src/components/editor/renderers/__tests__/cells-renderer.test.tsx +66 -0
- package/src/components/editor/renderers/cell-array.tsx +26 -13
- package/src/components/editor/renderers/cells-renderer.tsx +8 -2
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +29 -0
- package/src/components/editor/renderers/slides-layout/types.ts +4 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -19
- package/src/components/slides/reveal-component.tsx +37 -17
- package/src/components/slides/slide-form.tsx +72 -0
- package/src/components/ui/toast.tsx +11 -3
- package/src/components/ui/toaster.tsx +65 -9
- package/src/core/ai/context/providers/error.ts +6 -158
- package/src/core/cells/__tests__/utils.test.ts +59 -0
- package/src/core/cells/utils.ts +51 -0
- package/src/core/codemirror/completion/__tests__/signature-hint.test.ts +97 -3
- package/src/core/codemirror/completion/signature-hint.ts +78 -11
- package/src/core/constants.ts +8 -0
- package/src/core/diagnostics/__tests__/issue-details.test.ts +173 -0
- package/src/core/diagnostics/issue-details.ts +139 -0
- package/src/core/errors/__tests__/error-entries.test.ts +25 -0
- package/src/core/errors/error-entries.ts +176 -0
- package/src/core/islands/__tests__/bootstrap.test.ts +61 -0
- package/src/core/islands/__tests__/bridge.test.ts +373 -47
- package/src/core/islands/__tests__/main.test.ts +176 -0
- package/src/core/islands/__tests__/parse.test.ts +105 -0
- package/src/core/islands/bootstrap.ts +28 -5
- package/src/core/islands/bridge.ts +140 -39
- package/src/core/islands/components/__tests__/web-components.test.tsx +248 -0
- package/src/core/islands/components/output-wrapper.tsx +4 -1
- package/src/core/islands/components/web-components.tsx +76 -15
- package/src/core/islands/constants.ts +1 -0
- package/src/core/islands/main.ts +69 -3
- package/src/core/islands/parse.ts +70 -23
- package/src/core/islands/state.ts +9 -0
- package/src/core/islands/worker/__tests__/controller.test.ts +173 -0
- package/src/core/islands/worker/worker.tsx +159 -63
- package/src/core/network/__tests__/requests-lazy.test.ts +18 -0
- package/src/core/network/__tests__/requests-network.test.ts +7 -0
- package/src/core/network/requests-lazy.ts +13 -1
- package/src/core/network/requests-network.ts +3 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +3 -0
- package/src/core/runtime/__tests__/runtime.test.ts +64 -0
- package/src/core/runtime/runtime.ts +30 -10
- package/src/core/wasm/bridge.ts +8 -0
- package/src/core/wasm/worker/bootstrap.ts +113 -20
- package/src/core/wasm/worker/types.ts +2 -0
- package/src/css/app/Cell.css +10 -0
- package/src/hooks/__tests__/useHotkey.test.tsx +88 -0
- package/src/hooks/useHotkey.ts +29 -4
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +7 -1
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +26 -1
- package/src/plugins/impl/anywidget/__tests__/host.test.ts +6 -9
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +3 -1
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +32 -61
- package/src/plugins/impl/anywidget/model-proxy.ts +0 -13
- package/src/plugins/impl/anywidget/runtime.ts +1 -0
- package/src/plugins/impl/anywidget/widget-binding.ts +8 -34
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +53 -2
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +71 -0
- package/src/plugins/impl/vega/__tests__/use-vega-container-remeasure.test.ts +102 -0
- package/src/plugins/impl/vega/use-vega-container-remeasure.ts +39 -0
- package/src/plugins/impl/vega/vega-component.tsx +5 -4
- package/src/plugins/layout/NavigationMenuPlugin.tsx +156 -25
- package/src/theme/__tests__/useTheme.test.ts +68 -0
- package/src/theme/useTheme.ts +16 -1
- package/dist/apl-Bdc61P1y.js +0 -4
- package/dist/architecture-7HQA4BMR-Kyc44TmC.js +0 -6
- package/dist/asciiarmor-DVRHDGzT.js +0 -4
- package/dist/asn1-BmuKfkfu.js +0 -4
- package/dist/assets/__vite-browser-external-BQCLNwri.js +0 -1
- package/dist/assets/worker-DAWRHcPq.js +0 -73
- package/dist/brainfuck-DPrRpyTV.js +0 -4
- package/dist/classDiagram-2ON5EDUG-QjoAcuFE.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-bUCv4gu2.js +0 -30
- package/dist/clojure-DEttQW5T.js +0 -4
- package/dist/cmake-jNlx_DaM.js +0 -4
- package/dist/cobol-BvvIm5MJ.js +0 -4
- package/dist/coffeescript-DTpBMyFU.js +0 -4
- package/dist/commonlisp-BmmUG8jb.js +0 -4
- package/dist/crystal-BxyqmEWC.js +0 -4
- package/dist/css-BGoCtuG3.js +0 -4
- package/dist/cypher-BmCbdl3u.js +0 -4
- package/dist/d-CFrlbjZt.js +0 -4
- package/dist/diff-D6XwL6P8.js +0 -4
- package/dist/dist-7QfXoMdB.js +0 -5
- package/dist/dist-BEXXyZig.js +0 -5
- package/dist/dist-BYj57OV4.js +0 -5
- package/dist/dist-BlSvQzNr.js +0 -5
- package/dist/dist-CCBlxAgS.js +0 -8
- package/dist/dist-CIDTVIUf.js +0 -5
- package/dist/dist-CqQyhAM8.js +0 -8
- package/dist/dist-CwRu2Xzh.js +0 -5
- package/dist/dist-D8CDTVgf.js +0 -6
- package/dist/dist-D8DNB0nO.js +0 -8
- package/dist/dist-DL6N_q-A.js +0 -5
- package/dist/dist-DOFbNV_b.js +0 -8
- package/dist/dist-DPrYzMY0.js +0 -6
- package/dist/dist-cdmMjgsn.js +0 -5
- package/dist/dtd-Bw0lRN0-.js +0 -4
- package/dist/dylan-B55eBHTt.js +0 -4
- package/dist/ecl-C8G4p0wn.js +0 -4
- package/dist/eiffel-BmH46VJl.js +0 -4
- package/dist/elm-DhzeFqkl.js +0 -4
- package/dist/erlang-CY-wdlsU.js +0 -4
- package/dist/esm-M837UxV5.js +0 -1171
- package/dist/factor-DWkgl0xw.js +0 -4
- package/dist/forth-Cij_ie2t.js +0 -4
- package/dist/fortran-Br3X9cfm.js +0 -4
- package/dist/gas-DYsGcMN2.js +0 -4
- package/dist/gherkin-eVgXQ0fQ.js +0 -4
- package/dist/groovy-_NFHIXG7.js +0 -4
- package/dist/haskell-D6xNG_bH.js +0 -4
- package/dist/haxe-sU_rzAwn.js +0 -5
- package/dist/idl-Ds_VbrUx.js +0 -4
- package/dist/infoDiagram-HS3SLOUP-CEnzWruK.js +0 -30
- package/dist/javascript-CztfIl0i.js +0 -4
- package/dist/julia-DDv40QMV.js +0 -4
- package/dist/livescript-BEOngLLc.js +0 -4
- package/dist/lua-9-7BhQ4Y.js +0 -4
- package/dist/mathematica-DDa0Pfxm.js +0 -4
- package/dist/mbox-iO03mmoE.js +0 -4
- package/dist/mirc-C9z5LT4X.js +0 -4
- package/dist/mllike-jGJbdm_C.js +0 -6
- package/dist/modelica-DzF7oIEL.js +0 -4
- package/dist/mscgen-DB-u125o.js +0 -6
- package/dist/mumps-CRTFHhzh.js +0 -4
- package/dist/nsis-C4NPTuox.js +0 -4
- package/dist/ntriples-BCOoGph1.js +0 -4
- package/dist/octave-DTwNlazz.js +0 -4
- package/dist/oz-DD38AzSz.js +0 -4
- package/dist/pascal-BohSp9jV.js +0 -4
- package/dist/perl-f5OutoPM.js +0 -4
- package/dist/pig-Dv7wSmHb.js +0 -4
- package/dist/powershell-rYgjKB39.js +0 -4
- package/dist/properties-BFUNLRDN.js +0 -4
- package/dist/protobuf-B9QJQPPv.js +0 -4
- package/dist/pug-DzvWpaMC.js +0 -4
- package/dist/puppet-B_K-n_xK.js +0 -4
- package/dist/purify.es-H92eMd9-.js +0 -557
- package/dist/python-CAiFcaA2.js +0 -4
- package/dist/q-cLeFIBLK.js +0 -4
- package/dist/r-04Y-Wco3.js +0 -4
- package/dist/react-vega-B6ncY2Tp.js +0 -9
- package/dist/rpm-FUdrIia9.js +0 -5
- package/dist/ruby-DMjFXuEW.js +0 -4
- package/dist/sas-DzHZxjXK.js +0 -4
- package/dist/scheme-DxHd_Rb9.js +0 -4
- package/dist/shell-C8Kwypgf.js +0 -4
- package/dist/sieve-DdyqOKXZ.js +0 -4
- package/dist/smalltalk-pB7X1D9y.js +0 -4
- package/dist/sparql-NhBO6oOa.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-E0RGjKsm.js +0 -29
- package/dist/stex-KfRnSHzF.js +0 -4
- package/dist/stylus-SfWSnzPv.js +0 -4
- package/dist/swift-jRPdq2zR.js +0 -4
- package/dist/tcl-_hpTHGX3.js +0 -4
- package/dist/textile-C9h8slqH.js +0 -4
- package/dist/toml-DWvtinD4.js +0 -4
- package/dist/troff-Dwo_A0y7.js +0 -4
- package/dist/ttcn-V--CPFKq.js +0 -4
- package/dist/ttcn-cfg-CPSMchTG.js +0 -4
- package/dist/turtle-B4rPGBWu.js +0 -4
- package/dist/vb-DaMBBd4j.js +0 -4
- package/dist/vbscript-BMJQqcE2.js +0 -4
- package/dist/vega-loader.browser-CZ-J8Py3.js +0 -1321
- package/dist/velocity-CGq2QRq2.js +0 -4
- package/dist/verilog-CUNo8F5u.js +0 -4
- package/dist/vhdl-CCzA0msW.js +0 -4
- package/dist/webidl-CqIMDIBL.js +0 -4
- package/dist/xquery-XC5Kbr-1.js +0 -4
- package/dist/yacas-CGOv7Dzy.js +0 -4
- package/dist/z80-CXhVmi-f.js +0 -4
- /package/dist/{Plot-CAYS29h9.js → Plot-YQOuVIei.js} +0 -0
- /package/dist/{apl-BCgCq9iM.js → apl-99A7dLQe.js} +0 -0
- /package/dist/{array-tvvEqPy7.js → array-O78LT16Y.js} +0 -0
- /package/dist/{asciiarmor-BtqU-KJQ.js → asciiarmor-DLEhpFDx.js} +0 -0
- /package/dist/{asn1-Dmb-dTMx.js → asn1-CMrcTsT4.js} +0 -0
- /package/dist/{asterisk-DaVJJDnV.js → asterisk-CqykImq7.js} +0 -0
- /package/dist/{brainfuck-C1HoZKlE.js → brainfuck-ChPt5yBe.js} +0 -0
- /package/dist/{chunk-DR5Q36YT-BflwErH1.js → chunk-DR5Q36YT-5Yp2GWwR.js} +0 -0
- /package/dist/{click-outside-container-BLPjMamz.js → click-outside-container-BSIeYt4y.js} +0 -0
- /package/dist/{clike-CdT0yHjt.js → clike-CE0fXfM_.js} +0 -0
- /package/dist/{clojure-CdyrCpUv.js → clojure-QkBEMU-g.js} +0 -0
- /package/dist/{cmake-BFlPxym7.js → cmake-CU1jX7Mo.js} +0 -0
- /package/dist/{cobol-CcJXewp8.js → cobol-DMOKzzky.js} +0 -0
- /package/dist/{coffeescript-DnKuIKRo.js → coffeescript-DjnjLyfk.js} +0 -0
- /package/dist/{colors-CQAOa8cK.js → colors-DmiH1bIH.js} +0 -0
- /package/dist/{common-keywords-FBrXPTcz.js → common-keywords-D3nPJNQP.js} +0 -0
- /package/dist/{commonlisp-B-kok83Z.js → commonlisp-CYd9iOSe.js} +0 -0
- /package/dist/{crystal-FYRYjI1I.js → crystal-Dy55yoYG.js} +0 -0
- /package/dist/{css-B45lc2V3.js → css-CNU8w3HJ.js} +0 -0
- /package/dist/{cypher-DZMLyVY_.js → cypher-q47DGzK7.js} +0 -0
- /package/dist/{cytoscape.esm-ayF70frT.js → cytoscape.esm-Dr8XzXWK.js} +0 -0
- /package/dist/{d-x-VVT4o9.js → d-jEkaLvxX.js} +0 -0
- /package/dist/{defaultLocale-u-3osm0P.js → defaultLocale-BpsHxBd7.js} +0 -0
- /package/dist/{defaultLocale-BoHTsDG6.js → defaultLocale-DoeErsX2.js} +0 -0
- /package/dist/{diff-Dxe2mpXk.js → diff-vb2-unFN.js} +0 -0
- /package/dist/{dist-BGdYVvOu.js → dist-DsoKosxi.js} +0 -0
- /package/dist/{dtd-C9VM_Wfu.js → dtd-C9kR-bXa.js} +0 -0
- /package/dist/{duckdb-keywords-CvJhR_Yd.js → duckdb-keywords-B6HYCMOT.js} +0 -0
- /package/dist/{dylan-DTSnEIFO.js → dylan-BLckrK-V.js} +0 -0
- /package/dist/{ebnf-2D4Ctp3y.js → ebnf-Cnp3L9jg.js} +0 -0
- /package/dist/{ecl-N04ptnRK.js → ecl-CEsf6XVg.js} +0 -0
- /package/dist/{eiffel-Dd8rpqr_.js → eiffel-2KGZNzx6.js} +0 -0
- /package/dist/{elm-GT2E866W.js → elm-D2s3K5wF.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-DzSb5hsH.js → emotion-is-prop-valid.esm-DdVSF4FD.js} +0 -0
- /package/dist/{erlang-Cf0Bp5pY.js → erlang-0PMFOndk.js} +0 -0
- /package/dist/{esm-BaaaPNGl.js → esm-CuQHjs36.js} +0 -0
- /package/dist/{fcl-Ccj8Z5Xd.js → fcl-D9nccAWI.js} +0 -0
- /package/dist/{forth-wd_XzGTg.js → forth-DG89iUsu.js} +0 -0
- /package/dist/{fortran-DcwUTZFe.js → fortran-ytKsAVvu.js} +0 -0
- /package/dist/{gas-DeALIER3.js → gas-Cg2Fm0N2.js} +0 -0
- /package/dist/{gherkin-CKTqaJNX.js → gherkin-B87FEnZ-.js} +0 -0
- /package/dist/{groovy-Bwdp_d8D.js → groovy-Dcs08AWD.js} +0 -0
- /package/dist/{haskell-DCdCcPLK.js → haskell-cwkOuhx6.js} +0 -0
- /package/dist/{haxe-DAyktQWJ.js → haxe-DWEo4q10.js} +0 -0
- /package/dist/{http-_DVAYWoR.js → http-B8jdG64J.js} +0 -0
- /package/dist/{idl-CBuZiRYu.js → idl-WWQwDcRV.js} +0 -0
- /package/dist/{init-uv0kkh4g.js → init-DNBbYZd_.js} +0 -0
- /package/dist/{javascript-DzigE11c.js → javascript-BeR74dxD.js} +0 -0
- /package/dist/{julia-PwfB-0Cm.js → julia-UlvCUYGL.js} +0 -0
- /package/dist/{katex-C_XRmjAP.js → katex-Bld7b-fk.js} +0 -0
- /package/dist/{livescript-BJLz1EbT.js → livescript-GPmFcmYV.js} +0 -0
- /package/dist/{lua-ZC-XC2jf.js → lua-DYoT_0zM.js} +0 -0
- /package/dist/{main-Tj_-QTyF.js → main-B1Jo_8pC.js} +0 -0
- /package/dist/{math-DFcdCCU8.js → math-CBNc2Ib0.js} +0 -0
- /package/dist/{mathematica-DCYMx6qB.js → mathematica-DSFIQlbG.js} +0 -0
- /package/dist/{mbox-OxMK_9XI.js → mbox-ej8lFMdL.js} +0 -0
- /package/dist/{micromark-factory-space-DF2w36zS.js → micromark-factory-space-CwHmg6iz.js} +0 -0
- /package/dist/{mirc-nJVyhA0H.js → mirc-CAdIdvHQ.js} +0 -0
- /package/dist/{mllike-DRO89bsU.js → mllike-CjTB1lHF.js} +0 -0
- /package/dist/{modelica-Don3E6ZD.js → modelica-BB68FYMa.js} +0 -0
- /package/dist/{mscgen-DJfqD3bN.js → mscgen-BkbzgGGI.js} +0 -0
- /package/dist/{mumps-SjGTvDYL.js → mumps-Cu-28E9F.js} +0 -0
- /package/dist/{nginx-DasThI7R.js → nginx-C1ofKPst.js} +0 -0
- /package/dist/{node-sql-parser-B8nBD36q.js → node-sql-parser-DLl_zNw0.js} +0 -0
- /package/dist/{ntriples-CNBKRl3I.js → ntriples-D9cQiZxZ.js} +0 -0
- /package/dist/{octave-DdeVHNlx.js → octave-BvtAnPX0.js} +0 -0
- /package/dist/{once-DPuqGUeo.js → once-B60G2fuJ.js} +0 -0
- /package/dist/{oz-CcKSoNvN.js → oz-COaVHk2E.js} +0 -0
- /package/dist/{pascal-6leftwNj.js → pascal-BFpqVD2x.js} +0 -0
- /package/dist/{path-BGaWgPKg.js → path-DwWbhZFI.js} +0 -0
- /package/dist/{perl-BhJIwWzN.js → perl-DaiORxHP.js} +0 -0
- /package/dist/{pig-r-xDHqRf.js → pig-DFzRhmsF.js} +0 -0
- /package/dist/{powershell-D-BELeNi.js → powershell-BG2LQNKN.js} +0 -0
- /package/dist/{properties-CnuDhbll.js → properties-CqJJR5QY.js} +0 -0
- /package/dist/{protobuf-CO8RBhvX.js → protobuf-WwDYV1yY.js} +0 -0
- /package/dist/{puppet-NmXHjLy8.js → puppet-QNY3w_uN.js} +0 -0
- /package/dist/{python-DAQXi720.js → python-4QrQ3Ugi.js} +0 -0
- /package/dist/{q-DlikXfV0.js → q-DhwXuxE2.js} +0 -0
- /package/dist/{r-CuohilwT.js → r-Df-nkR25.js} +0 -0
- /package/dist/{range-C-rmrM1O.js → range-BOiA8qqU.js} +0 -0
- /package/dist/{rpm-0Pjwp0Pb.js → rpm-Cokue07s.js} +0 -0
- /package/dist/{ruby-Dq8NJTDG.js → ruby-DrYcL3qF.js} +0 -0
- /package/dist/{sas-CuwonyVP.js → sas-CoiPirA5.js} +0 -0
- /package/dist/{scheme-CYU-RRIf.js → scheme-CwFLjzHv.js} +0 -0
- /package/dist/{semaphore-CNDGTzkX.js → semaphore-C8rmHdhj.js} +0 -0
- /package/dist/{shell-COPmX2qE.js → shell-BFV-R24I.js} +0 -0
- /package/dist/{sieve-B_3zyLne.js → sieve-CxwXF5T9.js} +0 -0
- /package/dist/{simple-mode-DSBniks8.js → simple-mode-DTaJtKPt.js} +0 -0
- /package/dist/{smalltalk-DRft7iPv.js → smalltalk-QivVOCtX.js} +0 -0
- /package/dist/{solr-RZ9uTl59.js → solr-BLvysN-c.js} +0 -0
- /package/dist/{sparql-CN6qj55H.js → sparql-nKsFk8j7.js} +0 -0
- /package/dist/{spreadsheet-BNNUNXA2.js → spreadsheet-BWc8C2FT.js} +0 -0
- /package/dist/{sql-B4x8IkwU.js → sql-CWfUjlV1.js} +0 -0
- /package/dist/{stex-BIsgBmK4.js → stex-DtMAhV4-.js} +0 -0
- /package/dist/{stylus-Bn_ZjOQ3.js → stylus-BLKQAycn.js} +0 -0
- /package/dist/{swift-BLUJhMbz.js → swift-CJoKqiKj.js} +0 -0
- /package/dist/{tcl-C86fxecl.js → tcl-YTeYFNUc.js} +0 -0
- /package/dist/{textile-DmHh2rsK.js → textile-C6rKQqMQ.js} +0 -0
- /package/dist/{tiddlywiki-DI0mF2WJ.js → tiddlywiki-ZXwTHGNT.js} +0 -0
- /package/dist/{tiki-2HU6XLLn.js → tiki-C628O_u4.js} +0 -0
- /package/dist/{timer-YZl28NYN.js → timer-BpI_FKSA.js} +0 -0
- /package/dist/{toml-GWANRNAD.js → toml-DxlPGbRy.js} +0 -0
- /package/dist/{treemap-D-ka1hvx.js → treemap-DY3NBr79.js} +0 -0
- /package/dist/{troff-BHTsomIy.js → troff-DFCfH7Ku.js} +0 -0
- /package/dist/{ttcn-DQuhn5Mn.js → ttcn-DAW-ERVP.js} +0 -0
- /package/dist/{ttcn-cfg-HjFYtdB-.js → ttcn-cfg-CpJ8b7EN.js} +0 -0
- /package/dist/{turtle-nCay33Nv.js → turtle-BneV2f8L.js} +0 -0
- /package/dist/{vb-BG-XlqqJ.js → vb-D973Vxxh.js} +0 -0
- /package/dist/{vbscript-B6vyW0-D.js → vbscript-Dckaq3YO.js} +0 -0
- /package/dist/{velocity-CWegueqO.js → velocity-DKty-GUC.js} +0 -0
- /package/dist/{verilog-CzSQm4cG.js → verilog-aNaK_biA.js} +0 -0
- /package/dist/{vhdl-DqnNVL7r.js → vhdl-CQuehnQy.js} +0 -0
- /package/dist/{webidl-DXEUpDWH.js → webidl-Bhg8vaMr.js} +0 -0
- /package/dist/{xquery-Ba_NB5bD.js → xquery-D2q16GaM.js} +0 -0
- /package/dist/{yacas-HKQU6hyk.js → yacas-DHGOHnNa.js} +0 -0
- /package/dist/{z80-CXkHXLdj.js → z80-BPhTmO22.js} +0 -0
|
@@ -38,7 +38,7 @@ function nextClusterBreak(e64, w, O) {
|
|
|
38
38
|
return w;
|
|
39
39
|
}
|
|
40
40
|
function prevClusterBreak(e64, w, T) {
|
|
41
|
-
for (; w >
|
|
41
|
+
for (; w > 1; ) {
|
|
42
42
|
let E = nextClusterBreak(e64, w - 2, T);
|
|
43
43
|
if (E < w) return E;
|
|
44
44
|
w--;
|
|
@@ -668,8 +668,8 @@ var SectionIter = class {
|
|
|
668
668
|
this.ins == -1 ? this.forward(e64) : e64 == this.ins ? this.next() : (this.ins -= e64, this.off += e64);
|
|
669
669
|
}
|
|
670
670
|
}, SelectionRange = class e6 {
|
|
671
|
-
constructor(e64, w, T) {
|
|
672
|
-
this.from = e64, this.to = w, this.flags = T;
|
|
671
|
+
constructor(e64, w, T, E) {
|
|
672
|
+
this.from = e64, this.to = w, this.flags = T, this.goalColumn = E;
|
|
673
673
|
}
|
|
674
674
|
get anchor() {
|
|
675
675
|
return this.flags & 32 ? this.to : this.from;
|
|
@@ -683,17 +683,16 @@ var SectionIter = class {
|
|
|
683
683
|
get assoc() {
|
|
684
684
|
return this.flags & 8 ? -1 : this.flags & 16 ? 1 : 0;
|
|
685
685
|
}
|
|
686
|
+
get undirectional() {
|
|
687
|
+
return (this.flags & 64) > 0;
|
|
688
|
+
}
|
|
686
689
|
get bidiLevel() {
|
|
687
690
|
let e64 = this.flags & 7;
|
|
688
691
|
return e64 == 7 ? null : e64;
|
|
689
692
|
}
|
|
690
|
-
get goalColumn() {
|
|
691
|
-
let e64 = this.flags >> 6;
|
|
692
|
-
return e64 == 16777215 ? void 0 : e64;
|
|
693
|
-
}
|
|
694
693
|
map(w, T = -1) {
|
|
695
694
|
let E, D;
|
|
696
|
-
return this.empty ? E = D = w.mapPos(this.from, T) : (E = w.mapPos(this.from, 1), D = w.mapPos(this.to, -1)), E == this.from && D == this.to ? this : new e6(E, D, this.flags);
|
|
695
|
+
return this.empty ? E = D = w.mapPos(this.from, T) : (E = w.mapPos(this.from, 1), D = w.mapPos(this.to, -1)), E == this.from && D == this.to ? this : new e6(E, D, this.flags, this.goalColumn);
|
|
697
696
|
}
|
|
698
697
|
extend(e64, w = e64, T = 0) {
|
|
699
698
|
if (e64 <= this.anchor && w >= this.anchor) return EditorSelection.range(e64, w, void 0, void 0, T);
|
|
@@ -713,8 +712,8 @@ var SectionIter = class {
|
|
|
713
712
|
if (!e64 || typeof e64.anchor != "number" || typeof e64.head != "number") throw RangeError("Invalid JSON representation for SelectionRange");
|
|
714
713
|
return EditorSelection.range(e64.anchor, e64.head);
|
|
715
714
|
}
|
|
716
|
-
static create(w, T, E) {
|
|
717
|
-
return new e6(w, T, E);
|
|
715
|
+
static create(w, T, E, D) {
|
|
716
|
+
return new e6(w, T, E, D);
|
|
718
717
|
}
|
|
719
718
|
}, EditorSelection = class e7 {
|
|
720
719
|
constructor(e64, w) {
|
|
@@ -764,11 +763,14 @@ var SectionIter = class {
|
|
|
764
763
|
return new e7(w, T);
|
|
765
764
|
}
|
|
766
765
|
static cursor(e64, w = 0, T, E) {
|
|
767
|
-
return SelectionRange.create(e64, e64, (w == 0 ? 0 : w < 0 ? 8 : 16) | (T == null ? 7 : Math.min(6, T))
|
|
766
|
+
return SelectionRange.create(e64, e64, (w == 0 ? 0 : w < 0 ? 8 : 16) | (T == null ? 7 : Math.min(6, T)), E);
|
|
768
767
|
}
|
|
769
768
|
static range(e64, w, T, E, D) {
|
|
770
|
-
let O =
|
|
771
|
-
return !D && e64 != w && (D = w < e64 ? 1 : -1), w < e64 ? SelectionRange.create(w, e64,
|
|
769
|
+
let O = E == null ? 7 : Math.min(6, E);
|
|
770
|
+
return !D && e64 != w && (D = w < e64 ? 1 : -1), D && (O |= D < 0 ? 8 : 16), w < e64 ? SelectionRange.create(w, e64, O | 32, T) : SelectionRange.create(e64, w, O, T);
|
|
771
|
+
}
|
|
772
|
+
static undirectionalRange(e64, w) {
|
|
773
|
+
return SelectionRange.create(e64, w, 64, void 0);
|
|
772
774
|
}
|
|
773
775
|
static normalized(w, T = 0) {
|
|
774
776
|
let E = w[T];
|
|
@@ -842,6 +844,9 @@ var FacetProvider = class {
|
|
|
842
844
|
}
|
|
843
845
|
};
|
|
844
846
|
}
|
|
847
|
+
get extension() {
|
|
848
|
+
return this;
|
|
849
|
+
}
|
|
845
850
|
};
|
|
846
851
|
function compareArray(e64, w, T) {
|
|
847
852
|
if (e64.length != w.length) return false;
|
|
@@ -937,6 +942,9 @@ var Prec = {
|
|
|
937
942
|
constructor(e64, w) {
|
|
938
943
|
this.inner = e64, this.prec = w;
|
|
939
944
|
}
|
|
945
|
+
get extension() {
|
|
946
|
+
return this;
|
|
947
|
+
}
|
|
940
948
|
}, Compartment = class e10 {
|
|
941
949
|
of(e64) {
|
|
942
950
|
return new CompartmentInstance(this, e64);
|
|
@@ -954,6 +962,9 @@ var Prec = {
|
|
|
954
962
|
constructor(e64, w) {
|
|
955
963
|
this.compartment = e64, this.inner = w;
|
|
956
964
|
}
|
|
965
|
+
get extension() {
|
|
966
|
+
return this;
|
|
967
|
+
}
|
|
957
968
|
}, Configuration = class e11 {
|
|
958
969
|
constructor(e64, w, T, E, D, O) {
|
|
959
970
|
for (this.base = e64, this.compartments = w, this.dynamicSlots = T, this.address = E, this.staticValues = D, this.facets = O, this.statusTemplate = []; this.statusTemplate.length < T.length; ) this.statusTemplate.push(0);
|
|
@@ -1008,7 +1019,8 @@ function flatten(e64, w, T) {
|
|
|
1008
1019
|
else if (e65 instanceof FacetProvider) E[k].push(e65), e65.facet.extensions && O(e65.facet.extensions, Prec_.default);
|
|
1009
1020
|
else {
|
|
1010
1021
|
let w2 = e65.extension;
|
|
1011
|
-
if (!w2) throw Error(`Unrecognized extension value in extension set (${e65})
|
|
1022
|
+
if (!w2) throw Error(`Unrecognized extension value in extension set (${e65}).`);
|
|
1023
|
+
if (w2 == e65) throw Error(`Unrecognized extension value in extension set (${e65}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);
|
|
1012
1024
|
O(w2, k);
|
|
1013
1025
|
}
|
|
1014
1026
|
}
|
|
@@ -2127,14 +2139,14 @@ function addRange(e64, w, T, E = 0) {
|
|
|
2127
2139
|
D >= 0 && T[D] + E >= e64 ? T[D] = Math.max(T[D], w) : T.push(e64, w);
|
|
2128
2140
|
}
|
|
2129
2141
|
var BlockWrapper = class e23 extends RangeValue {
|
|
2130
|
-
constructor(e64, w) {
|
|
2131
|
-
super(), this.tagName = e64, this.attributes = w;
|
|
2142
|
+
constructor(e64, w, T) {
|
|
2143
|
+
super(), this.tagName = e64, this.attributes = w, this.rank = T;
|
|
2132
2144
|
}
|
|
2133
2145
|
eq(w) {
|
|
2134
2146
|
return w == this || w instanceof e23 && this.tagName == w.tagName && attrsEq(this.attributes, w.attributes);
|
|
2135
2147
|
}
|
|
2136
2148
|
static create(w) {
|
|
2137
|
-
return new e23(w.tagName, w.attributes || noAttrs);
|
|
2149
|
+
return new e23(w.tagName, w.attributes || noAttrs, w.rank == null ? 50 : Math.max(0, Math.min(w.rank, 100)));
|
|
2138
2150
|
}
|
|
2139
2151
|
static set(e64, w = false) {
|
|
2140
2152
|
return RangeSet.of(e64, w);
|
|
@@ -2186,10 +2198,12 @@ function maxOffset(e64) {
|
|
|
2186
2198
|
return e64.nodeType == 3 ? e64.nodeValue.length : e64.childNodes.length;
|
|
2187
2199
|
}
|
|
2188
2200
|
function flattenRect(e64, w) {
|
|
2189
|
-
let T
|
|
2201
|
+
let { left: T, right: E } = e64;
|
|
2202
|
+
if (T == E) return e64;
|
|
2203
|
+
let D = w ? T : E;
|
|
2190
2204
|
return {
|
|
2191
|
-
left:
|
|
2192
|
-
right:
|
|
2205
|
+
left: D,
|
|
2206
|
+
right: D,
|
|
2193
2207
|
top: e64.top,
|
|
2194
2208
|
bottom: e64.bottom
|
|
2195
2209
|
};
|
|
@@ -2845,7 +2859,7 @@ var styleModule = /* @__PURE__ */ Facet.define(), ChangedRange = class e27 {
|
|
|
2845
2859
|
covers(e64) {
|
|
2846
2860
|
return true;
|
|
2847
2861
|
}
|
|
2848
|
-
coordsIn(e64, w) {
|
|
2862
|
+
coordsIn(e64, w, T) {
|
|
2849
2863
|
return null;
|
|
2850
2864
|
}
|
|
2851
2865
|
domPosFor(e64, w) {
|
|
@@ -2987,7 +3001,7 @@ var DocTile = class extends CompositeTile {
|
|
|
2987
3001
|
function A(e65, j2) {
|
|
2988
3002
|
for (let M = 0, N = 0; M < e65.children.length && N <= j2; M++) {
|
|
2989
3003
|
let P = e65.children[M], F = N + P.length;
|
|
2990
|
-
F >= j2 && (P.isComposite() ? A(P, j2 - N) : (!O || O.isHidden && (w > 0 || T && onSameLine(O, P))) && (F > j2 || P.flags & 32) ? (O = P, k = j2 - N) : (N < j2 || P.flags & 16 && !P.isHidden) && (E = P, D = j2 - N)), N = F;
|
|
3004
|
+
F >= j2 && (P.isComposite() ? A(P, j2 - N) : (!O || O.isHidden && (w > 0 && !(O.flags & 32) || T && onSameLine(O, P))) && (F > j2 || P.flags & 32) ? (O = P, k = j2 - N) : (N < j2 || P.flags & 16 && !P.isHidden) && (E = P, D = j2 - N)), N = F;
|
|
2991
3005
|
}
|
|
2992
3006
|
}
|
|
2993
3007
|
A(this, e64);
|
|
@@ -2997,9 +3011,9 @@ var DocTile = class extends CompositeTile {
|
|
|
2997
3011
|
offset: j == E ? D : k
|
|
2998
3012
|
} : null;
|
|
2999
3013
|
}
|
|
3000
|
-
coordsIn(e64, w) {
|
|
3001
|
-
let
|
|
3002
|
-
return
|
|
3014
|
+
coordsIn(e64, w, T) {
|
|
3015
|
+
let E = this.resolveInline(e64, w, true);
|
|
3016
|
+
return E ? E.tile.coordsIn(Math.max(0, E.offset), w, T) : fallbackRect(this);
|
|
3003
3017
|
}
|
|
3004
3018
|
domIn(e64, w) {
|
|
3005
3019
|
let T = this.resolveInline(e64, w);
|
|
@@ -3049,15 +3063,15 @@ var MarkTile = class e31 extends CompositeTile {
|
|
|
3049
3063
|
toString() {
|
|
3050
3064
|
return JSON.stringify(this.text);
|
|
3051
3065
|
}
|
|
3052
|
-
coordsIn(e64, w) {
|
|
3053
|
-
let
|
|
3054
|
-
e64 >
|
|
3055
|
-
let
|
|
3056
|
-
e64 == 0 && w < 0 || e64 ==
|
|
3057
|
-
let
|
|
3058
|
-
if (!
|
|
3059
|
-
let
|
|
3060
|
-
return browser.safari && !
|
|
3066
|
+
coordsIn(e64, w, T) {
|
|
3067
|
+
let E = this.dom.nodeValue.length;
|
|
3068
|
+
e64 > E && (e64 = E);
|
|
3069
|
+
let D = e64, O = e64, k = 0;
|
|
3070
|
+
e64 == 0 && w < 0 || e64 == E && w >= 0 ? browser.chrome || browser.gecko || (e64 ? (D--, k = 1) : O < E && (O++, k = -1)) : w < 0 ? D-- : O < E && O++;
|
|
3071
|
+
let A = textRange(this.dom, D, O).getClientRects();
|
|
3072
|
+
if (!A.length) return null;
|
|
3073
|
+
let j = A[(k ? k < 0 : w >= 0) ? 0 : A.length - 1];
|
|
3074
|
+
return browser.safari && !k && j.width == 0 && (j = Array.prototype.find.call(A, (e65) => e65.width) || j), T == null ? j : flattenRect(j, (k ? k > 0 : w < 0) == T);
|
|
3061
3075
|
}
|
|
3062
3076
|
static of(w, T) {
|
|
3063
3077
|
let E = new e32(T || document.createTextNode(w), w);
|
|
@@ -3115,8 +3129,9 @@ var MarkTile = class e31 extends CompositeTile {
|
|
|
3115
3129
|
get overrideDOMText() {
|
|
3116
3130
|
return Text.empty;
|
|
3117
3131
|
}
|
|
3118
|
-
coordsIn(e64) {
|
|
3119
|
-
|
|
3132
|
+
coordsIn(e64, w, T) {
|
|
3133
|
+
let E = this.dom.getBoundingClientRect();
|
|
3134
|
+
return T == null ? E : flattenRect(E, w > 0 == T);
|
|
3120
3135
|
}
|
|
3121
3136
|
}, TilePointer = class {
|
|
3122
3137
|
constructor(e64) {
|
|
@@ -3186,7 +3201,7 @@ var MarkTile = class e31 extends CompositeTile {
|
|
|
3186
3201
|
let D = Tile.get(e64.text);
|
|
3187
3202
|
D && this.cache.reused.set(D, 2);
|
|
3188
3203
|
let O = new TextTile(e64.text, e64.text.nodeValue);
|
|
3189
|
-
O.flags |= 8, E.append(O);
|
|
3204
|
+
O.flags |= 8, this.pos = e64.range.toB, E.append(O);
|
|
3190
3205
|
}
|
|
3191
3206
|
addInlineWidget(e64, w, T) {
|
|
3192
3207
|
let E = this.afterWidget && e64.flags & 48 && (this.afterWidget.flags & 48) == (e64.flags & 48);
|
|
@@ -3246,9 +3261,9 @@ var MarkTile = class e31 extends CompositeTile {
|
|
|
3246
3261
|
this.wrapperPos > this.pos + 1e4 && (this.blockWrappers.goto(this.pos), this.wrappers.length = 0);
|
|
3247
3262
|
for (let e64 = this.wrappers.length - 1; e64 >= 0; e64--) this.wrappers[e64].to < this.pos && this.wrappers.splice(e64, 1);
|
|
3248
3263
|
for (let e64 = this.blockWrappers; e64.value && e64.from <= this.pos; e64.next()) if (e64.to >= this.pos) {
|
|
3249
|
-
let w = new OpenWrapper(e64.from, e64.to, e64.value,
|
|
3250
|
-
for (;
|
|
3251
|
-
this.wrappers.splice(
|
|
3264
|
+
let w = e64.rank * 102 + e64.value.rank, T = new OpenWrapper(e64.from, e64.to, e64.value, w), E = this.wrappers.length;
|
|
3265
|
+
for (; E > 0 && (this.wrappers[E - 1].rank - T.rank || this.wrappers[E - 1].to - T.to) < 0; ) E--;
|
|
3266
|
+
this.wrappers.splice(E, 0, T);
|
|
3252
3267
|
}
|
|
3253
3268
|
this.wrapperPos = this.pos;
|
|
3254
3269
|
}
|
|
@@ -3315,7 +3330,7 @@ var TileCache = class {
|
|
|
3315
3330
|
}
|
|
3316
3331
|
find(e64, w, T = 2) {
|
|
3317
3332
|
let E = e64.bucket, D = this.buckets[E], O = this.index[E];
|
|
3318
|
-
for (let e65 =
|
|
3333
|
+
for (let e65 = 0; e65 < D.length; e65++) {
|
|
3319
3334
|
let k = (e65 + O) % D.length, A = D[k];
|
|
3320
3335
|
if ((!w || w(A)) && !this.reused.has(A)) return D.splice(k, 1), k < O && this.index[E]--, this.reused.set(A, T), A;
|
|
3321
3336
|
}
|
|
@@ -3363,7 +3378,7 @@ var TileCache = class {
|
|
|
3363
3378
|
this.preserve(e65, !O, !k), E = A, D += e65;
|
|
3364
3379
|
}
|
|
3365
3380
|
if (!k) break;
|
|
3366
|
-
w && k.fromA <= w.range.fromA && k.toA >= w.range.toA ? (this.forward(k.fromA, w.range.fromA, w.range.fromA < w.range.toA ? 1 : -1), this.emit(D, w.range.fromB), this.cache.clear(), this.builder.addComposition(w, T), this.text.skip(w.range.toB - w.range.fromB), this.forward(w.range.fromA, k.toA), this.emit(w.range.toB, k.toB)) : (this.forward(k.fromA, k.toA), this.emit(D, k.toB)), D = k.toB, E = k.toA;
|
|
3381
|
+
w && k.fromA <= w.range.fromA && k.toA >= w.range.toA ? (this.forward(k.fromA, w.range.fromA, w.range.fromA < w.range.toA ? 1 : -1), this.emit(D, w.range.fromB), this.builder.flushBuffer(), this.cache.clear(), this.builder.addComposition(w, T), this.text.skip(w.range.toB - w.range.fromB), this.forward(w.range.fromA, k.toA), this.emit(w.range.toB, k.toB)) : (this.forward(k.fromA, k.toA), this.emit(D, k.toB)), D = k.toB, E = k.toA;
|
|
3367
3382
|
}
|
|
3368
3383
|
return this.builder.curLine && this.builder.endLine(), this.builder.root;
|
|
3369
3384
|
}
|
|
@@ -3395,7 +3410,7 @@ var TileCache = class {
|
|
|
3395
3410
|
}), this.text.skip(e64);
|
|
3396
3411
|
}
|
|
3397
3412
|
emit(e64, w) {
|
|
3398
|
-
let T = null, E = this.builder, D =
|
|
3413
|
+
let T = null, E = this.builder, D = -1, O = RangeSet.spans(this.decorations, e64, w, {
|
|
3399
3414
|
point: (e65, w2, O2, k, A, j) => {
|
|
3400
3415
|
if (O2 instanceof PointDecoration) {
|
|
3401
3416
|
if (this.disallowBlockEffectsFor[j]) {
|
|
@@ -3411,14 +3426,15 @@ var TileCache = class {
|
|
|
3411
3426
|
} else T = addLineDeco(T, O2);
|
|
3412
3427
|
w2 > e65 && this.text.skip(w2 - e65);
|
|
3413
3428
|
},
|
|
3414
|
-
span: (e65, w2,
|
|
3415
|
-
for (let
|
|
3416
|
-
let A = this.text.next(Math.min(512, w2 -
|
|
3417
|
-
A == null ? (E.addLineStartIfNotCovered(T), E.addBreak(),
|
|
3429
|
+
span: (e65, w2, O2, k) => {
|
|
3430
|
+
for (let D2 = e65; D2 < w2; ) {
|
|
3431
|
+
let A = this.text.next(Math.min(512, w2 - D2));
|
|
3432
|
+
A == null ? (E.addLineStartIfNotCovered(T), E.addBreak(), D2++) : (E.ensureLine(T), E.addText(A, O2, D2 == e65 ? k : O2.length), D2 += A.length), T = null;
|
|
3418
3433
|
}
|
|
3434
|
+
D = O2.length;
|
|
3419
3435
|
}
|
|
3420
3436
|
});
|
|
3421
|
-
|
|
3437
|
+
D > -1 && (this.openWidget = O > D), this.openWidget || E.addLineStartIfNotCovered(T), this.openMarks = O;
|
|
3422
3438
|
}
|
|
3423
3439
|
forward(e64, w, T = 1) {
|
|
3424
3440
|
w - e64 <= 10 ? this.old.advance(w - e64, T, this.reuseWalker) : (this.old.advance(5, -1, this.reuseWalker), this.old.advance(w - e64 - 10, -1), this.old.advance(5, T, this.reuseWalker));
|
|
@@ -3628,7 +3644,7 @@ var BreakWidget = /* @__PURE__ */ new class extends WidgetType {
|
|
|
3628
3644
|
}
|
|
3629
3645
|
domAtPos(e64, w) {
|
|
3630
3646
|
let { tile: T, offset: E } = this.tile.resolveBlock(e64, w);
|
|
3631
|
-
return T.isWidget() ? T.domPosFor(
|
|
3647
|
+
return T.isWidget() ? T.domPosFor(E, w) : T.domIn(E, w);
|
|
3632
3648
|
}
|
|
3633
3649
|
inlineDOMNearPos(e64, w) {
|
|
3634
3650
|
let T, E = -1, D = false, O, k = -1, A = false;
|
|
@@ -3642,9 +3658,9 @@ var BreakWidget = /* @__PURE__ */ new class extends WidgetType {
|
|
|
3642
3658
|
}
|
|
3643
3659
|
}), !T && !O ? this.domAtPos(e64, w) : (D && O ? T = null : A && T && (O = null), T && w < 0 || !O ? T.domIn(E, w) : O.domIn(k, w));
|
|
3644
3660
|
}
|
|
3645
|
-
coordsAt(e64, w) {
|
|
3646
|
-
let { tile:
|
|
3647
|
-
return
|
|
3661
|
+
coordsAt(e64, w, T) {
|
|
3662
|
+
let { tile: E, offset: D } = this.tile.resolveBlock(e64, w);
|
|
3663
|
+
return E.isWidget() ? E.widget instanceof BlockGapWidget ? null : E.coordsInWidget(D, w, true) : E.coordsIn(D, w, T);
|
|
3648
3664
|
}
|
|
3649
3665
|
lineAt(e64, w) {
|
|
3650
3666
|
let { tile: T } = this.tile.resolveBlock(e64, w);
|
|
@@ -3766,7 +3782,7 @@ var BreakWidget = /* @__PURE__ */ new class extends WidgetType {
|
|
|
3766
3782
|
} catch (e65) {
|
|
3767
3783
|
logException(this.view.state, e65, "scroll handler");
|
|
3768
3784
|
}
|
|
3769
|
-
let { range: w } = e64, T = this.coordsAt(w.head, w.assoc
|
|
3785
|
+
let { range: w } = e64, T = this.coordsAt(w.head, w.assoc || (w.head > w.anchor ? -1 : 1)), E;
|
|
3770
3786
|
if (!T) return;
|
|
3771
3787
|
!w.empty && (E = this.coordsAt(w.anchor, w.anchor > w.head ? -1 : 1)) && (T = {
|
|
3772
3788
|
left: Math.min(T.left, E.left),
|
|
@@ -3923,7 +3939,7 @@ function groupAt(e64, w, T = 1) {
|
|
|
3923
3939
|
if (E(D.text.slice(A, e65)) != j) break;
|
|
3924
3940
|
A = e65;
|
|
3925
3941
|
}
|
|
3926
|
-
return EditorSelection.
|
|
3942
|
+
return EditorSelection.undirectionalRange(k + D.from, A + D.from);
|
|
3927
3943
|
}
|
|
3928
3944
|
function posAtCoordsImprecise(e64, w, T, E, D) {
|
|
3929
3945
|
let O = Math.round((E - w.left) * e64.defaultCharacterWidth);
|
|
@@ -4025,7 +4041,7 @@ function skipAtomsForSelection(e64, w) {
|
|
|
4025
4041
|
w2 != D.from && (O = EditorSelection.cursor(w2, -1));
|
|
4026
4042
|
} else {
|
|
4027
4043
|
let w2 = skipAtomicRanges(e64, D.from, -1), T2 = skipAtomicRanges(e64, D.to, 1);
|
|
4028
|
-
(w2 != D.from || T2 != D.to) && (O = EditorSelection.range(D.from == D.anchor ? w2 : T2, D.from == D.head ? w2 : T2));
|
|
4044
|
+
(w2 != D.from || T2 != D.to) && (O = D.undirectional ? EditorSelection.undirectionalRange(D.from, D.to) : EditorSelection.range(D.from == D.anchor ? w2 : T2, D.from == D.head ? w2 : T2));
|
|
4029
4045
|
}
|
|
4030
4046
|
O && (T || (T = w.ranges.slice()), T[E] = O);
|
|
4031
4047
|
}
|
|
@@ -4084,48 +4100,53 @@ var InlineCoordsScan = class {
|
|
|
4084
4100
|
let { spans: T, line: E } = this.bidiSpansAt(e64);
|
|
4085
4101
|
return T.length > 1 || T.length && (T[0].level != this.baseDir || T[0].to + E.from < w);
|
|
4086
4102
|
}
|
|
4087
|
-
scan(e64, w) {
|
|
4088
|
-
let
|
|
4089
|
-
search: for (;
|
|
4090
|
-
let
|
|
4091
|
-
adjust: if (
|
|
4092
|
-
let e65 =
|
|
4093
|
-
for (let w2 = 0; w2 <
|
|
4094
|
-
if (!
|
|
4095
|
-
|
|
4103
|
+
scan(e64, w, T = false) {
|
|
4104
|
+
let E = 0, D = e64.length - 1, O = /* @__PURE__ */ new Set(), k = this.bidiIn(e64[0], e64[D]), A, j, M = -1, N = 1e9, P;
|
|
4105
|
+
search: for (; E < D; ) {
|
|
4106
|
+
let T2 = D - E, F2 = E + D >> 1;
|
|
4107
|
+
adjust: if (O.has(F2)) {
|
|
4108
|
+
let e65 = E + Math.floor(Math.random() * T2);
|
|
4109
|
+
for (let w2 = 0; w2 < T2; w2++) {
|
|
4110
|
+
if (!O.has(e65)) {
|
|
4111
|
+
F2 = e65;
|
|
4096
4112
|
break adjust;
|
|
4097
4113
|
}
|
|
4098
|
-
e65++, e65 ==
|
|
4114
|
+
e65++, e65 == D && (e65 = E);
|
|
4099
4115
|
}
|
|
4100
4116
|
break search;
|
|
4101
4117
|
}
|
|
4102
|
-
|
|
4103
|
-
let I = w(
|
|
4118
|
+
O.add(F2);
|
|
4119
|
+
let I = w(F2);
|
|
4104
4120
|
if (I) for (let w2 = 0; w2 < I.length; w2++) {
|
|
4105
|
-
let
|
|
4106
|
-
if (!(
|
|
4107
|
-
if (
|
|
4108
|
-
else if (
|
|
4121
|
+
let T3 = I[w2], O2 = 0;
|
|
4122
|
+
if (!(T3.width == 0 && I.length > 1)) {
|
|
4123
|
+
if (T3.bottom < this.y) (!A || A.bottom < T3.bottom) && (A = T3), O2 = 1;
|
|
4124
|
+
else if (T3.top > this.y) (!j || j.top > T3.top) && (j = T3), O2 = -1;
|
|
4109
4125
|
else {
|
|
4110
|
-
let e65 =
|
|
4111
|
-
w3 <
|
|
4126
|
+
let e65 = T3.left > this.x ? this.x - T3.left : T3.right < this.x ? this.x - T3.right : 0, w3 = Math.abs(e65);
|
|
4127
|
+
w3 < N && (M = F2, N = w3, P = T3), e65 && (O2 = e65 < 0 == (this.baseDir == Direction.LTR) ? -1 : 1);
|
|
4112
4128
|
}
|
|
4113
|
-
|
|
4129
|
+
O2 == -1 && (!k || this.baseDirAt(e64[F2], 1)) ? D = F2 : O2 == 1 && (!k || this.baseDirAt(e64[F2 + 1], -1)) && (E = F2 + 1);
|
|
4114
4130
|
}
|
|
4115
4131
|
}
|
|
4116
4132
|
}
|
|
4117
|
-
if (!
|
|
4118
|
-
|
|
4119
|
-
|
|
4133
|
+
if (!P) {
|
|
4134
|
+
if (!j && !A) return {
|
|
4135
|
+
i: e64[0],
|
|
4136
|
+
after: false
|
|
4137
|
+
};
|
|
4138
|
+
let T2 = A && (!j || this.y - A.bottom < j.top - this.y) ? A : j;
|
|
4139
|
+
return this.y = (T2.top + T2.bottom) / 2, this.scan(e64, w, true);
|
|
4120
4140
|
}
|
|
4121
|
-
if (
|
|
4122
|
-
|
|
4123
|
-
if (A && A.
|
|
4141
|
+
if (N && !T) {
|
|
4142
|
+
let { top: T2, bottom: E2 } = P;
|
|
4143
|
+
if (A && A.bottom > (T2 + T2 + E2) / 3) return this.y = A.bottom - 1, this.scan(e64, w, true);
|
|
4144
|
+
if (j && j.top < (T2 + E2 + E2) / 3) return this.y = j.top + 1, this.scan(e64, w, true);
|
|
4124
4145
|
}
|
|
4125
|
-
let
|
|
4146
|
+
let F = (k ? this.dirAt(e64[M], 1) : this.baseDir) == Direction.LTR;
|
|
4126
4147
|
return {
|
|
4127
|
-
i:
|
|
4128
|
-
after: this.x > (
|
|
4148
|
+
i: M,
|
|
4149
|
+
after: this.x > (P.left + P.right) / 2 == F
|
|
4129
4150
|
};
|
|
4130
4151
|
}
|
|
4131
4152
|
scanText(e64, w) {
|
|
@@ -4238,7 +4259,7 @@ var DOMPoint = class {
|
|
|
4238
4259
|
T2.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = T2.text, this.newSel = selectionFromPoints(w2, this.bounds.from);
|
|
4239
4260
|
} else {
|
|
4240
4261
|
let w2 = e64.observer.selectionRange, T2 = D && D.node == w2.focusNode && D.offset == w2.focusOffset || !contains(e64.contentDOM, w2.focusNode) ? k.main.head : e64.docView.posFromDOM(w2.focusNode, w2.focusOffset), E2 = O && O.node == w2.anchorNode && O.offset == w2.anchorOffset || !contains(e64.contentDOM, w2.anchorNode) ? k.main.anchor : e64.docView.posFromDOM(w2.anchorNode, w2.anchorOffset), A = e64.viewport;
|
|
4241
|
-
if ((browser.ios || browser.chrome) && k.main.
|
|
4262
|
+
if ((browser.ios || browser.chrome) && T2 != E2 && Math.min(T2, E2) <= k.main.from && Math.max(T2, E2) >= k.main.to && (A.from > 0 || A.to < e64.state.doc.length)) {
|
|
4242
4263
|
let w3 = Math.min(T2, E2), D2 = Math.max(T2, E2), O2 = A.from - w3, k2 = A.to - D2;
|
|
4243
4264
|
(O2 == 0 || O2 == 1 || w3 == 0) && (k2 == 0 || k2 == -1 || D2 == e64.state.doc.length) && (T2 = 0, E2 = e64.state.doc.length);
|
|
4244
4265
|
}
|
|
@@ -4419,7 +4440,7 @@ var InputState = class {
|
|
|
4419
4440
|
this.lastSelectionOrigin = e64, this.lastSelectionTime = Date.now();
|
|
4420
4441
|
}
|
|
4421
4442
|
constructor(e64) {
|
|
4422
|
-
this.view = e64, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastTouchX = 0, this.lastTouchY = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.lastWheelEvent = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = false, this.compositionPendingChange = false, this.insertingText = "", this.insertingTextAt = 0, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e64.hasFocus, browser.safari && e64.contentDOM.addEventListener("input", () => null), browser.gecko && firefoxCopyCutHack(e64.contentDOM.ownerDocument);
|
|
4443
|
+
this.view = e64, this.lastKeyCode = 0, this.lastKeyTime = 0, this.touchActive = false, this.lastTouchTime = 0, this.lastTouchX = 0, this.lastTouchY = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.lastWheelEvent = 0, this.pendingIOSKey = void 0, this.lastIOSMomentumScroll = 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = false, this.compositionPendingChange = false, this.insertingText = "", this.insertingTextAt = 0, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e64.hasFocus, browser.safari && e64.contentDOM.addEventListener("input", () => null), browser.gecko && firefoxCopyCutHack(e64.contentDOM.ownerDocument);
|
|
4423
4444
|
}
|
|
4424
4445
|
handleEvent(e64) {
|
|
4425
4446
|
!eventBelongsToEditor(this.view, e64) || this.ignoreDuringComposition(e64) || e64.type == "keydown" && this.keydown(e64) || (this.view.updateState == 0 ? this.runHandlers(e64.type, e64) : Promise.resolve().then(() => this.runHandlers(e64.type, e64)));
|
|
@@ -4449,12 +4470,24 @@ var InputState = class {
|
|
|
4449
4470
|
keydown(e64) {
|
|
4450
4471
|
if (this.lastKeyCode = e64.keyCode, this.lastKeyTime = Date.now(), e64.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode)) return true;
|
|
4451
4472
|
if (this.tabFocusMode > 0 && e64.keyCode != 27 && modifierCodes.indexOf(e64.keyCode) < 0 && (this.tabFocusMode = -1), browser.android && browser.chrome && !e64.synthetic && (e64.keyCode == 13 || e64.keyCode == 8)) return this.view.observer.delayAndroidKey(e64.key, e64.keyCode), true;
|
|
4452
|
-
|
|
4453
|
-
|
|
4473
|
+
if (browser.ios && !e64.synthetic && !e64.altKey && !e64.metaKey && (PendingKeys.some((w) => w.keyCode == e64.keyCode) && !e64.ctrlKey || EmacsyPendingKeys.indexOf(e64.key) > -1 && e64.ctrlKey)) {
|
|
4474
|
+
let w = {
|
|
4475
|
+
ctrlKey: e64.ctrlKey,
|
|
4476
|
+
altKey: e64.altKey,
|
|
4477
|
+
metaKey: e64.metaKey,
|
|
4478
|
+
shiftKey: e64.shiftKey
|
|
4479
|
+
};
|
|
4480
|
+
return w.shiftKey && browser.ios && !/^(off|none)$/.test(this.view.contentDOM.autocapitalize) && iosVirtualKeyboardOpen(this.view.win) && (w.shiftKey = false), this.pendingIOSKey = {
|
|
4481
|
+
key: e64.key,
|
|
4482
|
+
keyCode: e64.keyCode,
|
|
4483
|
+
mods: w
|
|
4484
|
+
}, setTimeout(() => this.flushIOSKey(), 250), true;
|
|
4485
|
+
}
|
|
4486
|
+
return e64.keyCode != 229 && this.view.observer.forceFlush(), false;
|
|
4454
4487
|
}
|
|
4455
4488
|
flushIOSKey(e64) {
|
|
4456
4489
|
let w = this.pendingIOSKey;
|
|
4457
|
-
return !w || w.key == "Enter" && e64 && e64.from < e64.to && /^\S+$/.test(e64.insert.toString()) ? false : (this.pendingIOSKey = void 0, dispatchKey(this.view.contentDOM, w.key, w.keyCode, w
|
|
4490
|
+
return !w || w.key == "Enter" && e64 && e64.from < e64.to && /^\S+$/.test(e64.insert.toString()) ? false : (this.pendingIOSKey = void 0, dispatchKey(this.view.contentDOM, w.key, w.keyCode, w.mods));
|
|
4458
4491
|
}
|
|
4459
4492
|
ignoreDuringComposition(e64) {
|
|
4460
4493
|
return !/^key/.test(e64.type) || e64.synthetic ? false : this.composing > 0 ? true : browser.safari && !browser.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = false, true) : false;
|
|
@@ -4469,6 +4502,9 @@ var InputState = class {
|
|
|
4469
4502
|
this.mouseSelection && this.mouseSelection.destroy();
|
|
4470
4503
|
}
|
|
4471
4504
|
};
|
|
4505
|
+
function iosVirtualKeyboardOpen(e64) {
|
|
4506
|
+
return e64.visualViewport ? e64.visualViewport.height * e64.visualViewport.scale / e64.document.documentElement.clientHeight < 0.85 : false;
|
|
4507
|
+
}
|
|
4472
4508
|
function bindHandler(e64, w) {
|
|
4473
4509
|
return (T, E) => {
|
|
4474
4510
|
try {
|
|
@@ -4662,14 +4698,17 @@ function doPaste(e64, w) {
|
|
|
4662
4698
|
});
|
|
4663
4699
|
}
|
|
4664
4700
|
observers.scroll = (e64) => {
|
|
4665
|
-
|
|
4701
|
+
let w = e64.inputState;
|
|
4702
|
+
w.lastScrollTop = e64.scrollDOM.scrollTop, w.lastScrollLeft = e64.scrollDOM.scrollLeft, browser.ios && !w.touchActive && (w.lastIOSMomentumScroll = Date.now());
|
|
4666
4703
|
}, observers.wheel = observers.mousewheel = (e64) => {
|
|
4667
4704
|
e64.inputState.lastWheelEvent = Date.now();
|
|
4668
4705
|
}, handlers.keydown = (e64, w) => (e64.inputState.setSelectionOrigin("select"), w.keyCode == 27 && e64.inputState.tabFocusMode != 0 && (e64.inputState.tabFocusMode = Date.now() + 2e3), false), observers.touchstart = (e64, w) => {
|
|
4669
4706
|
let T = e64.inputState, E = w.targetTouches[0];
|
|
4670
|
-
T.lastTouchTime = Date.now(), E && (T.lastTouchX = E.clientX, T.lastTouchY = E.clientY), T.setSelectionOrigin("select.pointer");
|
|
4707
|
+
T.touchActive = true, T.lastTouchTime = Date.now(), E && (T.lastTouchX = E.clientX, T.lastTouchY = E.clientY), T.setSelectionOrigin("select.pointer");
|
|
4671
4708
|
}, observers.touchmove = (e64) => {
|
|
4672
4709
|
e64.inputState.setSelectionOrigin("select.pointer");
|
|
4710
|
+
}, observers.touchend = (e64, w) => {
|
|
4711
|
+
e64.inputState.touchActive = false;
|
|
4673
4712
|
}, handlers.mousedown = (e64, w) => {
|
|
4674
4713
|
if (e64.observer.flush(), e64.inputState.lastTouchTime > Date.now() - 2e3) return false;
|
|
4675
4714
|
let T = null;
|
|
@@ -4691,7 +4730,7 @@ function rangeForClick(e64, w, T, E) {
|
|
|
4691
4730
|
if (E == 2) return groupAt(e64.state, w, T);
|
|
4692
4731
|
{
|
|
4693
4732
|
let E2 = e64.docView.lineAt(w, T), D = e64.state.doc.lineAt(E2 ? E2.posAtEnd : w), O = E2 ? E2.posAtStart : D.from, k = E2 ? E2.posAtEnd : D.to;
|
|
4694
|
-
return k < e64.state.doc.length && k == D.to && k++, EditorSelection.
|
|
4733
|
+
return k < e64.state.doc.length && k == D.to && k++, EditorSelection.undirectionalRange(O, k);
|
|
4695
4734
|
}
|
|
4696
4735
|
}
|
|
4697
4736
|
var BadMouseDetail = browser.ie && browser.ie_version <= 11, lastMouseDown = null, lastMouseDownCount = 0, lastMouseDownTime = 0;
|
|
@@ -4735,7 +4774,7 @@ handlers.dragstart = (e64, w) => {
|
|
|
4735
4774
|
let E2 = e64.docView.tile.nearest(w.target);
|
|
4736
4775
|
if (E2 && E2.isWidget()) {
|
|
4737
4776
|
let e65 = E2.posAtStart, w2 = e65 + E2.length;
|
|
4738
|
-
(e65 >= T.to || w2 <= T.from) && (T = EditorSelection.
|
|
4777
|
+
(e65 >= T.to || w2 <= T.from) && (T = EditorSelection.undirectionalRange(e65, w2));
|
|
4739
4778
|
}
|
|
4740
4779
|
}
|
|
4741
4780
|
let { inputState: E } = e64;
|
|
@@ -4926,7 +4965,7 @@ var HeightOracle = class {
|
|
|
4926
4965
|
return w;
|
|
4927
4966
|
}
|
|
4928
4967
|
refresh(e64, w, T, E, D, O) {
|
|
4929
|
-
let k = wrappingWhiteSpace.indexOf(e64) > -1, A = Math.abs(w - this.lineHeight) > 0.3 || this.lineWrapping != k
|
|
4968
|
+
let k = wrappingWhiteSpace.indexOf(e64) > -1, A = Math.abs(w - this.lineHeight) > 0.3 || this.lineWrapping != k;
|
|
4930
4969
|
if (this.lineWrapping = k, this.lineHeight = w, this.charWidth = T, this.textHeight = E, this.lineLength = D, A) {
|
|
4931
4970
|
this.heightSamples = {};
|
|
4932
4971
|
for (let e65 = 0; e65 < O.length; e65++) {
|
|
@@ -5737,6 +5776,7 @@ var baseTheme$1$1 = /* @__PURE__ */ buildTheme("." + baseThemeID, {
|
|
|
5737
5776
|
padding: "0 2px 0 6px"
|
|
5738
5777
|
},
|
|
5739
5778
|
".cm-layer": {
|
|
5779
|
+
userSelect: "none",
|
|
5740
5780
|
position: "absolute",
|
|
5741
5781
|
left: 0,
|
|
5742
5782
|
top: 0,
|
|
@@ -6216,7 +6256,6 @@ var EditContextManager = class {
|
|
|
6216
6256
|
}
|
|
6217
6257
|
}, this.handlers) w.addEventListener(T, this.handlers[T]);
|
|
6218
6258
|
this.measureReq = { read: (e65) => {
|
|
6219
|
-
this.editContext.updateControlBounds(e65.contentDOM.getBoundingClientRect());
|
|
6220
6259
|
let w2 = getSelection(e65.root);
|
|
6221
6260
|
w2 && w2.rangeCount && this.editContext.updateSelectionBounds(w2.getRangeAt(0).getBoundingClientRect());
|
|
6222
6261
|
} };
|
|
@@ -6445,7 +6484,7 @@ var EditContextManager = class {
|
|
|
6445
6484
|
continue;
|
|
6446
6485
|
} else {
|
|
6447
6486
|
let e66 = ((D < 0 ? this.viewState.heightMap.height : this.viewState.lineBlockAt(D).top) - O) / this.scaleY;
|
|
6448
|
-
if ((e66 > 1 || e66 < -1) && (T == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
|
|
6487
|
+
if ((e66 > 1 || e66 < -1) && !(browser.ios && this.inputState.lastIOSMomentumScroll > Date.now() - 100) && (T == this.scrollDOM || this.hasFocus || Math.max(this.inputState.lastWheelEvent, this.inputState.lastTouchTime) > Date.now() - 100)) {
|
|
6449
6488
|
E += e66, T ? T.scrollTop += e66 : this.win.scrollBy(0, e66), O = -1;
|
|
6450
6489
|
continue;
|
|
6451
6490
|
}
|
|
@@ -6576,10 +6615,8 @@ var EditContextManager = class {
|
|
|
6576
6615
|
}
|
|
6577
6616
|
coordsAtPos(e64, w = 1) {
|
|
6578
6617
|
this.readMeasured();
|
|
6579
|
-
let T = this.
|
|
6580
|
-
|
|
6581
|
-
let E = this.state.doc.lineAt(e64), D = this.bidiSpans(E), O = D[BidiSpan.find(D, e64 - E.from, -1, w)];
|
|
6582
|
-
return flattenRect(T, O.dir == Direction.LTR == w > 0);
|
|
6618
|
+
let T = this.state.doc.lineAt(e64), E = this.bidiSpans(T), D = E[BidiSpan.find(E, e64 - T.from, -1, w)];
|
|
6619
|
+
return this.docView.coordsAt(e64, w, D.dir == Direction.RTL);
|
|
6583
6620
|
}
|
|
6584
6621
|
coordsForChar(e64) {
|
|
6585
6622
|
return this.readMeasured(), this.docView.coordsForChar(e64);
|
|
@@ -7672,16 +7709,16 @@ var baseTheme$2 = /* @__PURE__ */ EditorView.baseTheme({
|
|
|
7672
7709
|
above: w[0].above,
|
|
7673
7710
|
arrow: w.some((e65) => e65.arrow)
|
|
7674
7711
|
};
|
|
7675
|
-
}), HoverPlugin = class {
|
|
7676
|
-
constructor(e64, w, T, E, D) {
|
|
7677
|
-
this.view = e64, this.source = w, this.field = T, this.
|
|
7712
|
+
}), hoverPlugin = /* @__PURE__ */ Facet.define(), HoverPlugin = class {
|
|
7713
|
+
constructor(e64, w, T, E, D, O) {
|
|
7714
|
+
this.view = e64, this.source = w, this.field = T, this.locked = E, this.setHover = D, this.hoverTime = O, this.hoverTimeout = -1, this.restartTimeout = -1, this.pending = null, this.lastMove = {
|
|
7678
7715
|
x: 0,
|
|
7679
7716
|
y: 0,
|
|
7680
7717
|
target: e64.dom,
|
|
7681
7718
|
time: 0
|
|
7682
7719
|
}, this.checkHover = this.checkHover.bind(this), e64.dom.addEventListener("mouseleave", this.mouseleave = this.mouseleave.bind(this)), e64.dom.addEventListener("mousemove", this.mousemove = this.mousemove.bind(this));
|
|
7683
7720
|
}
|
|
7684
|
-
update() {
|
|
7721
|
+
update(e64) {
|
|
7685
7722
|
this.pending && (this.pending = null, clearTimeout(this.restartTimeout), this.restartTimeout = setTimeout(() => this.startHover(), 20));
|
|
7686
7723
|
}
|
|
7687
7724
|
get active() {
|
|
@@ -7702,16 +7739,24 @@ var baseTheme$2 = /* @__PURE__ */ EditorView.baseTheme({
|
|
|
7702
7739
|
if (E = e64.posAtCoords(w), E == null) return;
|
|
7703
7740
|
let T2 = e64.coordsAtPos(E);
|
|
7704
7741
|
if (!T2 || w.y < T2.top || w.y > T2.bottom || w.x < T2.left - e64.defaultCharacterWidth || w.x > T2.right + e64.defaultCharacterWidth) return;
|
|
7705
|
-
let
|
|
7742
|
+
let O = e64.bidiSpans(e64.state.doc.lineAt(E)).find((e65) => e65.from <= E && e65.to >= E), k = O && O.dir == Direction.RTL ? -1 : 1;
|
|
7706
7743
|
D = w.x < T2.left ? -k : k;
|
|
7707
7744
|
}
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7745
|
+
this.activateHover(e64, E, D);
|
|
7746
|
+
}
|
|
7747
|
+
activateHover(e64, w, T, E) {
|
|
7748
|
+
let D = this.source(e64, w, T), O = (w2) => {
|
|
7749
|
+
if (w2 && !(Array.isArray(w2) && !w2.length)) {
|
|
7750
|
+
let T2 = Array.isArray(w2) ? w2 : [w2];
|
|
7751
|
+
E && this.locked.set(T2, E), e64.dispatch({ effects: this.setHover.of(T2) });
|
|
7752
|
+
}
|
|
7753
|
+
};
|
|
7754
|
+
if (D && "then" in D) {
|
|
7755
|
+
let T2 = this.pending = { pos: w };
|
|
7756
|
+
D.then((e65) => {
|
|
7757
|
+
this.pending == T2 && (this.pending = null, O(e65));
|
|
7758
|
+
}, (w2) => logException(e64.state, w2, "hover tooltip"));
|
|
7759
|
+
} else O(D);
|
|
7715
7760
|
}
|
|
7716
7761
|
get tooltip() {
|
|
7717
7762
|
let e64 = this.view.plugin(tooltipPlugin), w = e64 ? e64.manager.tooltips.findIndex((e65) => e65.create == HoverTooltipHost.create) : -1;
|
|
@@ -7726,7 +7771,7 @@ var baseTheme$2 = /* @__PURE__ */ EditorView.baseTheme({
|
|
|
7726
7771
|
time: Date.now()
|
|
7727
7772
|
}, this.hoverTimeout < 0 && (this.hoverTimeout = setTimeout(this.checkHover, this.hoverTime));
|
|
7728
7773
|
let { active: w, tooltip: T } = this;
|
|
7729
|
-
if (w.length && T && !isInTooltip(T.dom, e64) || this.pending) {
|
|
7774
|
+
if (w.length && !this.locked.has(w) && T && !isInTooltip(T.dom, e64) || this.pending) {
|
|
7730
7775
|
let { pos: T2 } = w[0] || this.pending, E = ((_a2 = w[0]) == null ? void 0 : _a2.end) ?? T2;
|
|
7731
7776
|
(T2 == E ? this.view.posAtCoords(this.lastMove) != T2 : !isOverRange(this.view, T2, E, e64.clientX, e64.clientY)) && (this.view.dispatch({ effects: this.setHover.of([]) }), this.pending = null);
|
|
7732
7777
|
}
|
|
@@ -7734,14 +7779,16 @@ var baseTheme$2 = /* @__PURE__ */ EditorView.baseTheme({
|
|
|
7734
7779
|
mouseleave(e64) {
|
|
7735
7780
|
clearTimeout(this.hoverTimeout), this.hoverTimeout = -1;
|
|
7736
7781
|
let { active: w } = this;
|
|
7737
|
-
if (w.length) {
|
|
7782
|
+
if (w.length && !this.locked.has(w)) {
|
|
7738
7783
|
let { tooltip: w2 } = this;
|
|
7739
7784
|
w2 && w2.dom.contains(e64.relatedTarget) ? this.watchTooltipLeave(w2.dom) : this.view.dispatch({ effects: this.setHover.of([]) });
|
|
7740
7785
|
}
|
|
7741
7786
|
}
|
|
7742
7787
|
watchTooltipLeave(e64) {
|
|
7743
7788
|
let w = (T) => {
|
|
7744
|
-
e64.removeEventListener("mouseleave", w)
|
|
7789
|
+
e64.removeEventListener("mouseleave", w);
|
|
7790
|
+
let { active: E } = this;
|
|
7791
|
+
E.length && !this.locked.has(E) && !this.view.dom.contains(T.relatedTarget) && this.view.dispatch({ effects: this.setHover.of([]) });
|
|
7745
7792
|
};
|
|
7746
7793
|
e64.addEventListener("mouseleave", w);
|
|
7747
7794
|
}
|
|
@@ -7767,36 +7814,46 @@ function isOverRange(e64, w, T, E, D, O) {
|
|
|
7767
7814
|
return j >= w && j <= T;
|
|
7768
7815
|
}
|
|
7769
7816
|
function hoverTooltip(e64, w = {}) {
|
|
7770
|
-
let T = StateEffect.define(), E = StateField.define({
|
|
7817
|
+
let T = StateEffect.define(), E = /* @__PURE__ */ new WeakMap(), D = StateField.define({
|
|
7771
7818
|
create() {
|
|
7772
7819
|
return [];
|
|
7773
7820
|
},
|
|
7774
|
-
update(e65,
|
|
7775
|
-
|
|
7821
|
+
update(e65, O2) {
|
|
7822
|
+
let k = E.get(e65);
|
|
7823
|
+
if (e65.length && (w.hideOnChange && (O2.docChanged || O2.selection) || k && k(O2) ? e65 = [] : w.hideOn && (e65 = e65.filter((e66) => !w.hideOn(O2, e66)))), O2.docChanged && e65.length) {
|
|
7776
7824
|
let w2 = [];
|
|
7777
7825
|
for (let T2 of e65) {
|
|
7778
|
-
let e66 =
|
|
7826
|
+
let e66 = O2.changes.mapPos(T2.pos, -1, MapMode.TrackDel);
|
|
7779
7827
|
if (e66 != null) {
|
|
7780
|
-
let
|
|
7781
|
-
|
|
7828
|
+
let E2 = Object.assign(/* @__PURE__ */ Object.create(null), T2);
|
|
7829
|
+
E2.pos = e66, E2.end != null && (E2.end = O2.changes.mapPos(E2.end)), w2.push(E2);
|
|
7782
7830
|
}
|
|
7783
7831
|
}
|
|
7784
7832
|
e65 = w2;
|
|
7785
7833
|
}
|
|
7786
|
-
for (let w2 of
|
|
7787
|
-
return e65;
|
|
7834
|
+
for (let w2 of O2.effects) w2.is(T) && (e65 = w2.value, k = void 0), (w2.is(closeHoverTooltipEffect) && !w2.value || w2.value == D) && (e65 = []);
|
|
7835
|
+
return e65.length && k && E.set(e65, k), e65;
|
|
7788
7836
|
},
|
|
7789
7837
|
provide: (e65) => showHoverTooltip.from(e65)
|
|
7790
|
-
});
|
|
7838
|
+
}), O = ViewPlugin.define((O2) => new HoverPlugin(O2, e64, D, E, T, w.hoverTime || 300));
|
|
7791
7839
|
return {
|
|
7792
|
-
active:
|
|
7840
|
+
active: D,
|
|
7793
7841
|
extension: [
|
|
7794
|
-
|
|
7795
|
-
|
|
7842
|
+
D,
|
|
7843
|
+
O,
|
|
7844
|
+
hoverPlugin.of(O),
|
|
7796
7845
|
showHoverTooltipHost
|
|
7797
7846
|
]
|
|
7798
7847
|
};
|
|
7799
7848
|
}
|
|
7849
|
+
function activateHover(e64, w, T, E = {}) {
|
|
7850
|
+
let D = e64.state.facet(hoverPlugin).map((w2) => e64.plugin(w2)).filter((e65) => !!e65);
|
|
7851
|
+
if (E.tooltip && E.tooltip.active) {
|
|
7852
|
+
let e65 = D.find((e66) => e66.field == E.tooltip.active);
|
|
7853
|
+
e65 && (D = [e65]);
|
|
7854
|
+
}
|
|
7855
|
+
for (let O of D) O.activateHover(e64, w, T, E.until ?? (() => false));
|
|
7856
|
+
}
|
|
7800
7857
|
function getTooltip(e64, w) {
|
|
7801
7858
|
let T = e64.plugin(tooltipPlugin);
|
|
7802
7859
|
if (!T) return null;
|
|
@@ -10375,15 +10432,17 @@ var foldState = /* @__PURE__ */ StateField.define({
|
|
|
10375
10432
|
return Decoration.none;
|
|
10376
10433
|
},
|
|
10377
10434
|
update(e64, w) {
|
|
10378
|
-
w.isUserEvent("delete") && w.changes.iterChangedRanges((w2,
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
filterFrom: T.value.from,
|
|
10385
|
-
filterTo: T.value.to
|
|
10435
|
+
w.isUserEvent("delete") && w.changes.iterChangedRanges((w2, T2) => e64 = clearTouchedFolds(e64, w2, T2)), e64 = e64.map(w.changes);
|
|
10436
|
+
let T = [];
|
|
10437
|
+
for (let E of w.effects) E.is(foldEffect) && !foldExists(e64, E.value.from, E.value.to) ? T.push(E.value) : E.is(unfoldEffect) && (e64 = e64.update({
|
|
10438
|
+
filter: (e65, w2) => E.value.from != e65 || E.value.to != w2,
|
|
10439
|
+
filterFrom: E.value.from,
|
|
10440
|
+
filterTo: E.value.to
|
|
10386
10441
|
}));
|
|
10442
|
+
if (T.length) {
|
|
10443
|
+
let { preparePlaceholder: E } = w.state.facet(foldConfig), D = T.map((e65) => (E ? Decoration.replace({ widget: new PreparedFoldWidget(E(w.state, e65)) }) : foldWidget).range(e65.from, e65.to));
|
|
10444
|
+
e64 = e64.update({ add: D });
|
|
10445
|
+
}
|
|
10387
10446
|
return w.selection && (e64 = clearTouchedFolds(e64, w.selection.main.head)), e64;
|
|
10388
10447
|
},
|
|
10389
10448
|
provide: (e64) => EditorView.decorations.from(e64),
|
|
@@ -11191,10 +11250,12 @@ var Stack = class e61 {
|
|
|
11191
11250
|
var _a2;
|
|
11192
11251
|
let w = e64 >> 19, T = e64 & 65535, { parser: E } = this.p, D = this.reducePos < this.pos - 25 && this.setLookAhead(this.pos), O = E.dynamicPrecedence(T);
|
|
11193
11252
|
if (O && (this.score += O), w == 0) {
|
|
11194
|
-
this.pushState(E.getGoto(this.state, T, true), this.reducePos), T < E.minRepeatTerm && this.storeNode(T, this.reducePos, this.reducePos, D ? 8 : 4, true), this.reduceContext(T, this.reducePos);
|
|
11253
|
+
T < E.minRepeatTerm && this.reducePos < this.pos && (this.reducePos = this.pos), this.pushState(E.getGoto(this.state, T, true), this.reducePos), T < E.minRepeatTerm && this.storeNode(T, this.reducePos, this.reducePos, D ? 8 : 4, true), this.reduceContext(T, this.reducePos);
|
|
11195
11254
|
return;
|
|
11196
11255
|
}
|
|
11197
|
-
let k = this.stack.length - (w - 1) * 3 - (e64 & 262144 ? 6 : 0), A = k ? this.stack[k - 2] : this.p.ranges[0].from
|
|
11256
|
+
let k = this.stack.length - (w - 1) * 3 - (e64 & 262144 ? 6 : 0), A = k ? this.stack[k - 2] : this.p.ranges[0].from;
|
|
11257
|
+
T < E.minRepeatTerm && A == this.reducePos && this.reducePos < this.pos && (this.reducePos = this.pos);
|
|
11258
|
+
let j = this.reducePos - A;
|
|
11198
11259
|
j >= 2e3 && !((_a2 = this.p.parser.nodeSet.types[T]) == null ? void 0 : _a2.isAnonymous) && (A == this.p.lastBigReductionStart ? (this.p.bigReductionCount++, this.p.lastBigReductionSize = j) : this.p.lastBigReductionSize < j && (this.p.bigReductionCount = 1, this.p.lastBigReductionStart = A, this.p.lastBigReductionSize = j));
|
|
11199
11260
|
let M = k ? this.stack[k - 1] : 0, N = this.bufferBase + this.buffer.length - M;
|
|
11200
11261
|
if (T < E.minRepeatTerm || e64 & 131072) {
|
|
@@ -11211,11 +11272,11 @@ var Stack = class e61 {
|
|
|
11211
11272
|
}
|
|
11212
11273
|
storeNode(e64, w, T, E = 4, D = false) {
|
|
11213
11274
|
if (e64 == 0 && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
11214
|
-
let e65 = this
|
|
11215
|
-
if (
|
|
11275
|
+
let e65 = this.buffer.length;
|
|
11276
|
+
if (e65 > 0 && this.buffer[e65 - 4] == 0 && this.buffer[e65 - 1] > -1) {
|
|
11216
11277
|
if (w == T) return;
|
|
11217
|
-
if (
|
|
11218
|
-
|
|
11278
|
+
if (this.buffer[e65 - 2] >= w) {
|
|
11279
|
+
this.buffer[e65 - 2] = T;
|
|
11219
11280
|
return;
|
|
11220
11281
|
}
|
|
11221
11282
|
}
|
|
@@ -11255,7 +11316,7 @@ var Stack = class e61 {
|
|
|
11255
11316
|
}
|
|
11256
11317
|
split() {
|
|
11257
11318
|
let w = this, T = w.buffer.length;
|
|
11258
|
-
for (; T > 0 && w.buffer[T - 2] > w.reducePos; ) T -= 4;
|
|
11319
|
+
for (T && w.buffer[T - 4] == 0 && (T -= 4); T > 0 && w.buffer[T - 2] > w.reducePos; ) T -= 4;
|
|
11259
11320
|
let E = w.buffer.slice(T), D = w.bufferBase + T;
|
|
11260
11321
|
for (; w && D == w.bufferBase; ) w = w.parent;
|
|
11261
11322
|
return new e61(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, E, D, this.curContext, this.lookAhead, w);
|
|
@@ -12004,101 +12065,102 @@ function getSpecializer(e64) {
|
|
|
12004
12065
|
export {
|
|
12005
12066
|
EditorView as $,
|
|
12006
12067
|
indentString as A,
|
|
12007
|
-
|
|
12068
|
+
EditorState as At,
|
|
12008
12069
|
highlightCode as B,
|
|
12009
|
-
|
|
12070
|
+
Transaction as Bt,
|
|
12010
12071
|
foldKeymap as C,
|
|
12011
|
-
|
|
12072
|
+
crelt as Ct,
|
|
12012
12073
|
getIndentation as D,
|
|
12013
|
-
|
|
12074
|
+
CharCategory as Dt,
|
|
12014
12075
|
getIndentUnit as E,
|
|
12015
|
-
|
|
12076
|
+
ChangeSet as Et,
|
|
12016
12077
|
syntaxHighlighting as F,
|
|
12017
|
-
|
|
12078
|
+
RangeSetBuilder as Ft,
|
|
12018
12079
|
NodeSet as G,
|
|
12019
|
-
|
|
12080
|
+
findClusterBreak as Gt,
|
|
12020
12081
|
tags as H,
|
|
12021
|
-
|
|
12082
|
+
codePointSize as Ht,
|
|
12022
12083
|
syntaxTree as I,
|
|
12023
|
-
|
|
12084
|
+
RangeValue as It,
|
|
12024
12085
|
Parser as J,
|
|
12025
12086
|
NodeType as K,
|
|
12087
|
+
fromCodePoint as Kt,
|
|
12026
12088
|
unfoldAll as L,
|
|
12027
|
-
|
|
12089
|
+
StateEffect as Lt,
|
|
12028
12090
|
languageDataProp as M,
|
|
12029
|
-
|
|
12091
|
+
MapMode as Mt,
|
|
12030
12092
|
matchBrackets as N,
|
|
12031
|
-
|
|
12093
|
+
Prec as Nt,
|
|
12032
12094
|
indentNodeProp as O,
|
|
12033
|
-
|
|
12095
|
+
Compartment as Ot,
|
|
12034
12096
|
sublanguageProp as P,
|
|
12035
|
-
|
|
12097
|
+
RangeSet as Pt,
|
|
12036
12098
|
Direction as Q,
|
|
12037
12099
|
Tag as R,
|
|
12038
|
-
|
|
12100
|
+
StateField as Rt,
|
|
12039
12101
|
foldInside as S,
|
|
12040
|
-
|
|
12102
|
+
showTooltip as St,
|
|
12041
12103
|
foldService as T,
|
|
12042
|
-
|
|
12104
|
+
ChangeDesc as Tt,
|
|
12043
12105
|
IterMode as U,
|
|
12044
|
-
|
|
12106
|
+
combineConfig as Ut,
|
|
12045
12107
|
styleTags as V,
|
|
12046
|
-
|
|
12108
|
+
codePointAt as Vt,
|
|
12047
12109
|
NodeProp as W,
|
|
12048
|
-
|
|
12110
|
+
countColumn as Wt,
|
|
12049
12111
|
parseMixed as X,
|
|
12050
12112
|
Tree as Y,
|
|
12051
12113
|
Decoration as Z,
|
|
12052
12114
|
defineLanguageFacet as _,
|
|
12053
|
-
|
|
12115
|
+
placeholder as _t,
|
|
12054
12116
|
HighlightStyle as a,
|
|
12055
|
-
|
|
12117
|
+
drawSelection as at,
|
|
12056
12118
|
foldAll as b,
|
|
12057
|
-
|
|
12119
|
+
showDialog as bt,
|
|
12058
12120
|
Language as c,
|
|
12059
|
-
|
|
12121
|
+
getTooltip as ct,
|
|
12060
12122
|
ParseContext as d,
|
|
12061
|
-
|
|
12123
|
+
highlightActiveLineGutter as dt,
|
|
12062
12124
|
GutterMarker as et,
|
|
12063
12125
|
StreamLanguage as f,
|
|
12064
|
-
|
|
12126
|
+
highlightSpecialChars as ft,
|
|
12065
12127
|
defaultHighlightStyle as g,
|
|
12066
|
-
|
|
12128
|
+
logException as gt,
|
|
12067
12129
|
continuedIndent as h,
|
|
12068
|
-
|
|
12130
|
+
lineNumbers as ht,
|
|
12069
12131
|
LocalTokenGroup as i,
|
|
12070
|
-
|
|
12132
|
+
crosshairCursor as it,
|
|
12071
12133
|
indentUnit as j,
|
|
12072
|
-
|
|
12134
|
+
Facet as jt,
|
|
12073
12135
|
indentOnInput as k,
|
|
12074
|
-
|
|
12136
|
+
EditorSelection as kt,
|
|
12075
12137
|
LanguageDescription as l,
|
|
12076
|
-
|
|
12138
|
+
gutter as lt,
|
|
12077
12139
|
bracketMatchingHandle as m,
|
|
12078
|
-
|
|
12140
|
+
keymap as mt,
|
|
12079
12141
|
ExternalTokenizer as n,
|
|
12080
12142
|
WidgetType as nt,
|
|
12081
12143
|
IndentContext as o,
|
|
12082
|
-
|
|
12144
|
+
dropCursor as ot,
|
|
12083
12145
|
bracketMatching as p,
|
|
12084
|
-
|
|
12146
|
+
hoverTooltip as pt,
|
|
12085
12147
|
NodeWeakMap as q,
|
|
12086
12148
|
LRParser as r,
|
|
12087
|
-
|
|
12149
|
+
activateHover as rt,
|
|
12088
12150
|
LRLanguage as s,
|
|
12089
|
-
|
|
12151
|
+
getPanel as st,
|
|
12090
12152
|
ContextTracker as t,
|
|
12091
12153
|
ViewPlugin as tt,
|
|
12092
12154
|
LanguageSupport as u,
|
|
12093
|
-
|
|
12155
|
+
highlightActiveLine as ut,
|
|
12094
12156
|
delimitedIndent as v,
|
|
12095
|
-
|
|
12157
|
+
rectangularSelection as vt,
|
|
12096
12158
|
foldNodeProp as w,
|
|
12097
|
-
|
|
12159
|
+
Annotation as wt,
|
|
12098
12160
|
foldGutter as x,
|
|
12099
|
-
|
|
12161
|
+
showPanel as xt,
|
|
12100
12162
|
flatIndent as y,
|
|
12101
|
-
|
|
12163
|
+
runScopeHandlers as yt,
|
|
12102
12164
|
classHighlighter as z,
|
|
12103
|
-
|
|
12165
|
+
Text as zt
|
|
12104
12166
|
};
|