@marimo-team/islands 0.25.2-dev5 → 0.25.2-dev51
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-CqhQmp74.js → ConnectedDataExplorerComponent-BDizDY3_.js} +11 -11
- package/dist/{ErrorBoundary-nmfUc8WW.js → ErrorBoundary-NirupfPN.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-aLGD44M7.js → abnfDiagram-VCTEODGH-C_Lmaa2j.js} +3 -3
- package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-BFzqhOBR.js} +5 -5
- package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
- package/dist/{architectureDiagram-5GKGNRK7-BGL5P81u.js → architectureDiagram-5GKGNRK7-BKMataHB.js} +5 -5
- package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
- package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
- package/dist/assets/__vite-browser-external-BqAtzd2P.js +1 -0
- package/dist/assets/{worker-D7hWi02M.js → worker-Bf8dt6S-.js} +5 -5
- package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
- package/dist/{blockDiagram-I7D4REHJ-CvBmppdy.js → blockDiagram-I7D4REHJ-BeHOjyDk.js} +9 -9
- package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
- package/dist/{button-B0Xgl-Qn.js → button-BtsM2UqM.js} +300 -283
- package/dist/{c4Diagram-7LVT6UL2-EceL4_jH.js → c4Diagram-7LVT6UL2-Bao10t_O.js} +7 -7
- package/dist/{capabilities-D7Ad8-zw.js → capabilities-A5jrzjCJ.js} +1 -1
- package/dist/{cells-5ppES-Un.js → cells-DzqPprAQ.js} +4323 -4313
- package/dist/{channel-z7HZXHwv.js → channel-BxCkvUgE.js} +1 -1
- package/dist/{chat-ui-Dv2V95k6.js → chat-ui-DMu_DFfr.js} +46 -46
- package/dist/{check-DGZ74tV2.js → check-CNP79M3A.js} +1 -1
- package/dist/{chunk-4HAMMTFA-BPTTOOC5.js → chunk-4HAMMTFA-CH7Gpamd.js} +5 -5
- package/dist/{chunk-75Z2AOVW-C4AOleKf.js → chunk-75Z2AOVW-AI7CvgKn.js} +1 -1
- package/dist/{chunk-DU6HZSFF-1TwWR6gh.js → chunk-DU6HZSFF-BSvuTkX4.js} +1 -1
- package/dist/{chunk-F27PBJKO-DMI1PBe4.js → chunk-F27PBJKO-CLshwT9T.js} +1 -1
- package/dist/{chunk-GMAD6QVW-vStrMz2P.js → chunk-GMAD6QVW-wnHcn-lH.js} +3 -3
- package/dist/{chunk-GVQU2GXP-2HwWgs4u.js → chunk-GVQU2GXP-7O2p8hut.js} +2 -2
- package/dist/{chunk-IMKFNOWR-Cm3RgLDj.js → chunk-IMKFNOWR-Bu0Vh_Yi.js} +6 -6
- package/dist/{chunk-L3NEJ4N5-RhC7i0I2.js → chunk-L3NEJ4N5-B9_Alrxb.js} +5 -5
- package/dist/{chunk-OSK3NFVY-CZV09N-U.js → chunk-OSK3NFVY-PeQPH2fD.js} +6 -6
- package/dist/{chunk-P2QGCYS3-0TAWai9C.js → chunk-P2QGCYS3-D9twiFuU.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-Cc3_56GX.js → chunk-POPQ4Y6H-BUiNs18s.js} +1 -1
- package/dist/{chunk-PWAF6VOD-lNxB9k8z.js → chunk-PWAF6VOD-D8S9NPCy.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DedDYSP5.js → chunk-SHT3W25Y-B2dyNZ31.js} +8 -8
- package/dist/{chunk-SVP7TREG-B2SFkCAL.js → chunk-SVP7TREG-D7UPvB10.js} +2 -2
- package/dist/{chunk-TICWLB2K-DB6hjNOL.js → chunk-TICWLB2K-BNaGoadd.js} +6 -6
- package/dist/classDiagram-ZZMXUADV-Bbo2n384.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xR8cGP0r.js +30 -0
- package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
- package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
- package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
- package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
- package/dist/{code-visibility-DEwQOq-y.js → code-visibility-BeEZujlS.js} +6 -6
- package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
- package/dist/{common-GiI6gFi-.js → common-BFYObM05.js} +5435 -5434
- package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
- package/dist/{copy-icon-qmRg_VTX.js → copy-icon-BY7jgcaV.js} +3 -3
- package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
- package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-DzaZEqgD.js → cynefinDiagram-5FMLGOSQ-CCDn4Z9e.js} +3 -3
- package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
- package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Cjf5GjU3.js → dagre-GXQ25YYZ-BJiUO_SV.js} +10 -10
- package/dist/{data-grid-overlay-editor-jTlmlnzl.js → data-grid-overlay-editor-D6TRPY-U.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-IhLt_khx.js → diagram-S7CK7UJ4-BZfxFNRR.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-CQc6KLPB.js → diagram-UQ7AKVKN-1xcsiIMg.js} +3 -3
- package/dist/{diagram-VSXAHHWV-CR7BJygZ.js → diagram-VSXAHHWV-DPAWJ9Nw.js} +2 -2
- package/dist/{diagram-VX7I27RA-DHmW9N1T.js → diagram-VX7I27RA-DmRsnHYY.js} +5 -5
- package/dist/{diagram-Z3DM3KII-zVKsg-Ty.js → diagram-Z3DM3KII--b49ryKx.js} +3 -3
- package/dist/{dialog-CILKhbsG.js → dialog-CmExhUDI.js} +26 -26
- package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
- package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
- package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
- package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
- package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
- package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
- package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
- package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
- package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
- package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
- package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
- package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
- package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
- package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
- package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
- package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
- package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
- package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
- package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
- package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
- package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
- package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
- package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
- package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
- package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
- package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
- package/dist/{dropdown-menu-BaqM0t4N.js → dropdown-menu-R7yCbshA.js} +1358 -1388
- package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
- package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
- package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-DDd5hCRC.js → ebnfDiagram-PWID7BFC-rSwVyh4y.js} +3 -3
- package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
- package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
- package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
- package/dist/{erDiagram-RLTQ6QDP-D10NP0eI.js → erDiagram-RLTQ6QDP-Bfd3iAoC.js} +12 -12
- package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
- package/dist/error-banner-D30nA9nE.js +362 -0
- package/dist/{error-entries-B2Ux3Z2X.js → error-entries-CdgPvJVz.js} +2 -2
- package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
- package/dist/{esm-h8f7-1CJ.js → esm-DAVrGVKP.js} +378 -372
- package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
- package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
- package/dist/{feedback-button-bc8pu-PN.js → feedback-button-CmxK471H.js} +10 -10
- package/dist/flowDiagram-HODETNUW-D7IBKS12.js +16 -0
- package/dist/{formats-Q9gwlLyD.js → formats-DhhbdyAH.js} +3 -3
- package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
- package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-cRRaDt88.js → ganttDiagram-EL5Y4UJY-B4m_YsKa.js} +2 -2
- package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
- package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
- package/dist/{gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js → gitGraphDiagram-WWUBYQGX-QRBbvWXh.js} +2 -2
- package/dist/{glide-data-editor-B0uO6ALd.js → glide-data-editor-xCj8qP3b.js} +11 -11
- package/dist/{glide-utils-CzzWU59p.js → glide-utils-BVJ4fkxX.js} +3 -3
- package/dist/{globals-BDtMCl5a.js → globals-CR2rgVY5.js} +3 -3
- package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
- package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
- package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
- package/dist/{html-to-image-BZBwkkDG.js → html-to-image-CFSoonFo.js} +544 -566
- package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
- package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
- package/dist/{infoDiagram-27XIBGKW-DrYu3UZC.js → infoDiagram-27XIBGKW-DVQFYvhg.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-pmkGQJsA.js → ishikawaDiagram-5VMMS53U-viPND-nm.js} +3 -3
- package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
- package/dist/{journeyDiagram-3NMN7TZE-EPJDPlt0.js → journeyDiagram-3NMN7TZE-BeeJdJo3.js} +2 -2
- package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-wWGD9VLW.js → kanban-definition-UXKFOSKX-Dcl_ECO9.js} +9 -9
- package/dist/{label-MNhNNoN6.js → label-DPWAFACU.js} +89 -86
- package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
- package/dist/{loader-C9OUkMrj.js → loader-Cm-ATtou.js} +1 -1
- package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
- package/dist/main.js +6647 -6564
- package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
- package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
- package/dist/{mermaid-Dfvntf3s.js → mermaid-BfhcnSj-.js} +54 -54
- package/dist/{mindmap-definition-YA3MSWOX-C2f1VIBR.js → mindmap-definition-YA3MSWOX-BdxxhF-5.js} +11 -11
- package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
- package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
- package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
- package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
- package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
- package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
- package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
- package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
- package/dist/{number-overlay-editor-BgKLuNYR.js → number-overlay-editor-BIPKclve.js} +1 -1
- package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
- package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
- package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-D6v5dz4M.js → pegDiagram-XKGWAZYB-Du5p2s0w.js} +3 -3
- package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-BwFAhpYD.js → pieDiagram-E7YTZNPT-DJg-SOIq.js} +3 -3
- package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
- package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
- package/dist/{process-output-BSsWzfnY.js → process-output-D8io8maY.js} +4 -4
- package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
- package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
- package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
- package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
- package/dist/purify.es-DMv5zIkJ.js +866 -0
- package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
- package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
- package/dist/{quadrantDiagram-AXDQQJYC--kqzFC3w.js → quadrantDiagram-AXDQQJYC-keLfFx9f.js} +1 -1
- package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-D6eOFr6Z.js → railroadDiagram-O6MQD6OU-C0ojm-6_.js} +3 -3
- package/dist/{requirementDiagram-BXWQKSXE-CHYsMgDR.js → requirementDiagram-BXWQKSXE-CNwNBmI3.js} +11 -11
- package/dist/{reveal-component-BIh2bHtb.js → reveal-component-rod7cte8.js} +10 -10
- package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
- package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
- package/dist/{sankeyDiagram-P5KCCOFB-BdzhT0BM.js → sankeyDiagram-P5KCCOFB-Bh4EsJox.js} +1 -1
- package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
- package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
- package/dist/select-Bs-nmvm6.js +1344 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-BPAknhBp.js → sequenceDiagram-WJ2MYXX4-DQaW5qBG.js} +4 -4
- package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
- package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
- package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
- package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
- package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
- package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
- package/dist/{spec-D62vWpMT.js → spec-rSPz3O6Q.js} +16 -14
- package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
- package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-Cq249IQ4.js → stateDiagram-D77RDMKH-BDa515QC.js} +13 -13
- package/dist/stateDiagram-v2-MP3YSRHH-ChNddepZ.js +30 -0
- package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
- package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
- package/dist/{swimlanes-42K2YHIH-Bh_S_HKD.js → swimlanes-42K2YHIH-M4IdGi8J.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-FUSwmzEp.js +30 -0
- package/dist/{swiper-component-DkV7T44B.js → swiper-component-CpN-hewZ.js} +2 -2
- package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
- package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
- package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
- package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
- package/dist/{timeline-definition-24CTP7MA-ByNMgBE7.js → timeline-definition-24CTP7MA-DH-kvakg.js} +3 -3
- package/dist/{toDate-DWVp6uE1.js → toDate-vEi5kTfY.js} +4 -5
- package/dist/{toast-DcoJGS3-.js → toast-DfEpJedt.js} +157 -161
- package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
- package/dist/{tooltip-Bi36DgYh.js → tooltip-CuNWg2ay.js} +543 -579
- package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
- package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
- package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
- package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
- package/dist/{use-restore-focus-ZgG5Br63.js → use-restore-focus-kmgwrL8q.js} +1833 -1625
- package/dist/{useAsyncData-BD7NLQ3_.js → useAsyncData-rkAlR_vh.js} +1 -1
- package/dist/{useDateFormatter-D8XWr8lL.js → useDateFormatter-BTtPAD2R.js} +2 -2
- package/dist/{useDeepCompareMemoize-CawMGSRU.js → useDeepCompareMemoize-BlHFBj5_.js} +1 -1
- package/dist/{useIframeCapabilities-BUMBOpsM.js → useIframeCapabilities-C1Bt04Iz.js} +1 -1
- package/dist/{useLifecycle-3vGhRa1o.js → useLifecycle-B68iY077.js} +3 -3
- package/dist/{useTheme-BOw801nZ.js → useTheme-BwSgeAFb.js} +2 -2
- package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
- package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
- package/dist/{vega-component-9siY74NS.js → vega-component-C-bPttRN.js} +9 -9
- package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
- package/dist/{vennDiagram-4TSXK5OY-DY8CySdO.js → vennDiagram-4TSXK5OY-d5g7XeiI.js} +3 -3
- package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
- package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DYC1AFni.js → wardleyDiagram-VM6X3IG4-BfX3bSzR.js} +3 -3
- package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
- package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-Df8LLnuY.js → xychartDiagram-S5SC5T6Z-C1QsLZg7.js} +5 -5
- package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
- package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
- package/package.json +14 -14
- package/src/components/chat/tool-call/__tests__/tool-result.test.tsx +56 -0
- package/src/components/chat/tool-call/tool-result.tsx +3 -3
- package/src/components/data-table/__tests__/pagination.test.tsx +85 -1
- package/src/components/data-table/charts/__tests__/schemas.test.ts +25 -0
- package/src/components/data-table/charts/__tests__/spec.test.ts +26 -23
- package/src/components/data-table/charts/constants.ts +11 -10
- package/src/components/data-table/charts/types.ts +1 -0
- package/src/components/data-table/pagination.tsx +16 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +32 -46
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +29 -40
- package/src/components/editor/actions/pair-with-agent-commands.ts +3 -4
- package/src/components/editor/actions/pair-with-agent-modal.tsx +4 -7
- package/src/components/ui/__tests__/slider.test.tsx +30 -0
- package/src/core/config/pair.ts +0 -1
- package/src/core/kernel/session.ts +9 -0
- package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
- package/src/core/wasm/worker/bootstrap.ts +22 -3
- package/src/core/websocket/useMarimoKernelConnection.tsx +10 -1
- package/src/css/katex.min.css +145 -144
- package/src/plugins/impl/CheckboxPlugin.tsx +1 -1
- package/src/plugins/impl/DatePickerPlugin.tsx +5 -3
- package/src/plugins/impl/DateRangePlugin.tsx +5 -3
- package/src/plugins/impl/DateTimePickerPlugin.tsx +5 -3
- package/src/plugins/impl/DropdownPlugin.tsx +1 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +45 -15
- package/src/plugins/impl/MultiselectPlugin.tsx +1 -1
- package/src/plugins/impl/NumberPlugin.tsx +1 -1
- package/src/plugins/impl/RadioPlugin.tsx +5 -1
- package/src/plugins/impl/RangeSliderPlugin.tsx +1 -1
- package/src/plugins/impl/SearchableSelect.tsx +1 -1
- package/src/plugins/impl/SliderPlugin.tsx +1 -1
- package/src/plugins/impl/SwitchPlugin.tsx +6 -1
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +85 -2
- package/src/plugins/impl/__tests__/widget-labels.test.tsx +122 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/common/labeled.tsx +9 -3
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +0 -22
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +0 -1
- package/dist/classDiagram-ZZMXUADV-BwYhrSEX.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-HecM04TM.js +0 -30
- package/dist/error-banner-DzAmP0AQ.js +0 -391
- package/dist/flowDiagram-HODETNUW-DgcjSdPV.js +0 -16
- package/dist/purify.es-DgKyQviY.js +0 -805
- package/dist/select-BcObMjGz.js +0 -970
- package/dist/stateDiagram-v2-MP3YSRHH-Dk5QgdXF.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-CbztusY8.js +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, A as t,
|
|
2
|
-
//#region ../node_modules/.pnpm/@codemirror+commands@6.11.
|
|
1
|
+
import { $ as e, A as t, At as n, Bt as r, D as i, Dt as a, E as o, Et as s, Ft as c, Gt as l, I as u, It as d, Kt as f, Mt as p, N as m, Q as ee, Rt as h, St as te, Tt as ne, Vt as g, W as _, Wt as re, Z as v, _t as ie, ct as ae, j as oe, mt as se, nt as ce, o as le, rt as ue, tt as de, wt as y, zt as fe } from "./dist-DoE4XJBC.js";
|
|
2
|
+
//#region ../node_modules/.pnpm/@codemirror+commands@6.11.1/node_modules/@codemirror/commands/dist/index.js
|
|
3
3
|
var pe = (e) => {
|
|
4
4
|
let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
|
|
5
5
|
return r.line ? me(e) : r.block ? ge(e) : !1;
|
|
@@ -132,8 +132,8 @@ function be(e, t, n = t.selection.ranges) {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var C = /*@__PURE__*/
|
|
136
|
-
return
|
|
135
|
+
var C = /*@__PURE__*/ ne.define(), xe = /*@__PURE__*/ ne.define(), Se = /*@__PURE__*/ p.define(), Ce = /*@__PURE__*/ p.define({ combine(e) {
|
|
136
|
+
return re(e, {
|
|
137
137
|
minDepth: 100,
|
|
138
138
|
newGroupDelay: 500,
|
|
139
139
|
joinToEvent: (e, t) => t
|
|
@@ -142,20 +142,20 @@ var C = /*@__PURE__*/ ue.define(), xe = /*@__PURE__*/ ue.define(), Se = /*@__PUR
|
|
|
142
142
|
newGroupDelay: Math.min,
|
|
143
143
|
joinToEvent: (e, t) => (n, r) => e(n, r) || t(n, r)
|
|
144
144
|
});
|
|
145
|
-
} }), w = /*@__PURE__*/
|
|
145
|
+
} }), w = /*@__PURE__*/ fe.define({
|
|
146
146
|
create() {
|
|
147
147
|
return j.empty;
|
|
148
148
|
},
|
|
149
149
|
update(e, t) {
|
|
150
|
-
let
|
|
151
|
-
if (
|
|
152
|
-
let
|
|
153
|
-
return o =
|
|
150
|
+
let n = t.state.facet(Ce), r = t.annotation(C);
|
|
151
|
+
if (r) {
|
|
152
|
+
let i = D.fromTransaction(t, r.selection), a = r.side, o = a == 0 ? e.undone : e.done;
|
|
153
|
+
return o = i ? O(o, o.length, n.minDepth, i) : Ne(o, t.startState.selection), new j(a == 0 ? r.rest : o, a == 0 ? o : r.rest);
|
|
154
154
|
}
|
|
155
|
-
let
|
|
156
|
-
if ((
|
|
157
|
-
let
|
|
158
|
-
return
|
|
155
|
+
let i = t.annotation(xe);
|
|
156
|
+
if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(g.addToHistory) === !1) return t.changes.empty ? e : e.addMapping(t.changes.desc);
|
|
157
|
+
let a = D.fromTransaction(t), o = t.annotation(g.time), s = t.annotation(g.userEvent);
|
|
158
|
+
return a ? e = e.addChanges(a, o, s, n, t) : t.selection && (e = e.addSelection(t.startState.selection, o, s, n.newGroupDelay)), (i == "full" || i == "after") && (e = e.isolate()), e;
|
|
159
159
|
},
|
|
160
160
|
toJSON(e) {
|
|
161
161
|
return {
|
|
@@ -203,7 +203,7 @@ var Ee = /*@__PURE__*/ T(0, !1), E = /*@__PURE__*/ T(1, !1), De = /*@__PURE__*/
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
static fromJSON(t) {
|
|
206
|
-
return new e(t.changes &&
|
|
206
|
+
return new e(t.changes && a.fromJSON(t.changes), [], t.mapped && s.fromJSON(t.mapped), t.startSelection && n.fromJSON(t.startSelection), t.selectionsAfter.map(n.fromJSON));
|
|
207
207
|
}
|
|
208
208
|
static fromTransaction(t, n) {
|
|
209
209
|
let r = k;
|
|
@@ -265,7 +265,7 @@ function Fe(e, t, n) {
|
|
|
265
265
|
let r = je(e.selectionsAfter.length ? e.selectionsAfter.map((e) => e.map(t)) : k, n);
|
|
266
266
|
if (!e.changes) return D.selection(r);
|
|
267
267
|
let i = e.changes.map(t), a = t.mapDesc(e.changes, !0), o = e.mapped ? e.mapped.composeDesc(a) : a;
|
|
268
|
-
return new D(i,
|
|
268
|
+
return new D(i, h.mapEffects(e.effects, t), o, e.startSelection.map(a), r);
|
|
269
269
|
}
|
|
270
270
|
var Ie = /^(input\.type|delete)($|\.)/, j = class e {
|
|
271
271
|
constructor(e, t, n = 0, r = void 0) {
|
|
@@ -276,7 +276,7 @@ var Ie = /^(input\.type|delete)($|\.)/, j = class e {
|
|
|
276
276
|
}
|
|
277
277
|
addChanges(t, n, r, i, a) {
|
|
278
278
|
let o = this.done, s = o[o.length - 1];
|
|
279
|
-
return o = s && s.changes && !s.changes.empty && t.changes && (!r || Ie.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, ke(s.changes, t.changes)) || r == "input.type.compose") ? O(o, o.length - 1, i.minDepth, new D(t.changes.compose(s.changes), je(
|
|
279
|
+
return o = s && s.changes && !s.changes.empty && t.changes && (!r || Ie.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, ke(s.changes, t.changes)) || r == "input.type.compose") ? O(o, o.length - 1, i.minDepth, new D(t.changes.compose(s.changes), je(h.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, k)) : O(o, o.length, i.minDepth, t), new e(o, k, n, r);
|
|
280
280
|
}
|
|
281
281
|
addSelection(t, n, r, i) {
|
|
282
282
|
let a = this.done.length ? this.done[this.done.length - 1].selectionsAfter : k;
|
|
@@ -349,7 +349,7 @@ var Le = [
|
|
|
349
349
|
}
|
|
350
350
|
];
|
|
351
351
|
function M(e, t) {
|
|
352
|
-
return
|
|
352
|
+
return n.create(e.ranges.map(t), e.mainIndex);
|
|
353
353
|
}
|
|
354
354
|
function N(e, t) {
|
|
355
355
|
return e.update({
|
|
@@ -363,13 +363,13 @@ function P({ state: e, dispatch: t }, n) {
|
|
|
363
363
|
return !r.eq(e.selection, !0) && (t(N(e, r)), !0);
|
|
364
364
|
}
|
|
365
365
|
function F(e, t) {
|
|
366
|
-
return
|
|
366
|
+
return n.cursor(t ? e.to : e.from);
|
|
367
367
|
}
|
|
368
368
|
function Re(e, t) {
|
|
369
369
|
return P(e, (n) => n.empty ? e.moveByChar(n, t) : F(n, t));
|
|
370
370
|
}
|
|
371
371
|
function I(e) {
|
|
372
|
-
return e.textDirectionAt(e.state.selection.main.head) ==
|
|
372
|
+
return e.textDirectionAt(e.state.selection.main.head) == ee.LTR;
|
|
373
373
|
}
|
|
374
374
|
var ze = (e) => Re(e, !I(e)), Be = (e) => Re(e, I(e));
|
|
375
375
|
function Ve(e, t) {
|
|
@@ -382,15 +382,15 @@ function We(e, t, n) {
|
|
|
382
382
|
let r = t.to - t.from;
|
|
383
383
|
return r && (r > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
|
|
384
384
|
}
|
|
385
|
-
function L(e, t,
|
|
386
|
-
let
|
|
387
|
-
for (let
|
|
388
|
-
let t =
|
|
385
|
+
function L(e, t, r) {
|
|
386
|
+
let i = u(e).resolveInner(t.head), a = r ? _.closedBy : _.openedBy;
|
|
387
|
+
for (let n = t.head;;) {
|
|
388
|
+
let t = r ? i.childAfter(n) : i.childBefore(n);
|
|
389
389
|
if (!t) break;
|
|
390
|
-
We(e, t,
|
|
390
|
+
We(e, t, a) ? i = t : n = r ? t.to : t.from;
|
|
391
391
|
}
|
|
392
|
-
let
|
|
393
|
-
return
|
|
392
|
+
let o = i.type.prop(a), s, c;
|
|
393
|
+
return c = o && (s = r ? m(e, i.from, 1) : m(e, i.to, -1)) && s.matched ? r ? s.end.to : s.end.from : r ? i.to : i.from, n.cursor(c, r ? -1 : 1);
|
|
394
394
|
}
|
|
395
395
|
var Ge = (e) => P(e, (t) => L(e.state, t, !I(e))), Ke = (e) => P(e, (t) => L(e.state, t, I(e)));
|
|
396
396
|
function qe(e, t) {
|
|
@@ -431,33 +431,33 @@ function Ze(t, n) {
|
|
|
431
431
|
return t.dispatch(N(i, a), { effects: o }), !0;
|
|
432
432
|
}
|
|
433
433
|
var Qe = (e) => Ze(e, !1), R = (e) => Ze(e, !0);
|
|
434
|
-
function z(e, t,
|
|
435
|
-
let
|
|
436
|
-
if (
|
|
437
|
-
let
|
|
438
|
-
|
|
434
|
+
function z(e, t, r) {
|
|
435
|
+
let i = e.lineBlockAt(t.head), a = e.moveToLineBoundary(t, r);
|
|
436
|
+
if (a.head == t.head && a.head != (r ? i.to : i.from) && (a = e.moveToLineBoundary(t, r, !1)), !r && a.head == i.from && i.length) {
|
|
437
|
+
let r = /^\s*/.exec(e.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length;
|
|
438
|
+
r && t.head != i.from + r && (a = n.cursor(i.from + r));
|
|
439
439
|
}
|
|
440
|
-
return
|
|
440
|
+
return a;
|
|
441
441
|
}
|
|
442
|
-
var $e = (e) => P(e, (t) => z(e, t, !0)), et = (e) => P(e, (t) => z(e, t, !1)), tt = (e) => P(e, (t) => z(e, t, !I(e))), nt = (e) => P(e, (t) => z(e, t, I(e))), rt = (e) => P(e, (t) =>
|
|
443
|
-
function at(e, t,
|
|
444
|
-
let
|
|
445
|
-
let
|
|
446
|
-
if (!
|
|
447
|
-
|
|
448
|
-
let
|
|
449
|
-
return
|
|
442
|
+
var $e = (e) => P(e, (t) => z(e, t, !0)), et = (e) => P(e, (t) => z(e, t, !1)), tt = (e) => P(e, (t) => z(e, t, !I(e))), nt = (e) => P(e, (t) => z(e, t, I(e))), rt = (e) => P(e, (t) => e.moveToLineBoundary(t, !1, !1)), it = (e) => P(e, (t) => e.moveToLineBoundary(t, !0, !1));
|
|
443
|
+
function at(e, t, r) {
|
|
444
|
+
let i = !1, a = M(e.selection, (t) => {
|
|
445
|
+
let a = m(e, t.head, -1) || m(e, t.head, 1) || t.head > 0 && m(e, t.head - 1, 1) || t.head < e.doc.length && m(e, t.head + 1, -1);
|
|
446
|
+
if (!a || !a.end) return t;
|
|
447
|
+
i = !0;
|
|
448
|
+
let o = a.start.from == t.head ? a.end.to : a.end.from;
|
|
449
|
+
return r ? n.range(t.anchor, o) : n.cursor(o);
|
|
450
450
|
});
|
|
451
|
-
return
|
|
451
|
+
return i ? (t(N(e, a)), !0) : !1;
|
|
452
452
|
}
|
|
453
453
|
var ot = ({ state: e, dispatch: t }) => at(e, t, !1);
|
|
454
|
-
function B(e, t,
|
|
455
|
-
let
|
|
456
|
-
e.undirectional && e.head >= e.anchor != t && (e =
|
|
457
|
-
let
|
|
458
|
-
return
|
|
454
|
+
function B(e, t, r) {
|
|
455
|
+
let i = M(e.state.selection, (e) => {
|
|
456
|
+
e.undirectional && e.head >= e.anchor != t && (e = n.range(e.head, e.anchor));
|
|
457
|
+
let i = r(e);
|
|
458
|
+
return n.range(e.anchor, i.head, i.goalColumn, i.bidiLevel || void 0, i.assoc);
|
|
459
459
|
});
|
|
460
|
-
return !
|
|
460
|
+
return !i.eq(e.state.selection) && (e.dispatch(N(e.state, i)), !0);
|
|
461
461
|
}
|
|
462
462
|
function st(e, t) {
|
|
463
463
|
return B(e, t, (n) => e.moveByChar(n, t));
|
|
@@ -486,7 +486,7 @@ var yt = (e) => vt(e, !1), bt = (e) => vt(e, !0), xt = (e) => B(e, !0, (t) => z(
|
|
|
486
486
|
}, wt = (e) => {
|
|
487
487
|
let t = I(e);
|
|
488
488
|
return B(e, t, (n) => z(e, n, t));
|
|
489
|
-
}, Tt = (e) => B(e, !1, (t) =>
|
|
489
|
+
}, Tt = (e) => B(e, !1, (t) => n.cursor(e.lineBlockAt(t.head).from)), Et = (e) => B(e, !0, (t) => n.cursor(e.lineBlockAt(t.head).to)), Dt = ({ state: e, dispatch: t }) => (t(N(e, { anchor: 0 })), !0), Ot = ({ state: e, dispatch: t }) => (t(N(e, { anchor: e.doc.length })), !0), kt = ({ state: e, dispatch: t }) => (t(N(e, {
|
|
490
490
|
anchor: e.selection.main.anchor,
|
|
491
491
|
head: 0
|
|
492
492
|
})), !0), At = ({ state: e, dispatch: t }) => (t(N(e, {
|
|
@@ -499,66 +499,66 @@ var yt = (e) => vt(e, !1), bt = (e) => vt(e, !0), xt = (e) => B(e, !0, (t) => z(
|
|
|
499
499
|
},
|
|
500
500
|
userEvent: "select"
|
|
501
501
|
})), !0), Mt = ({ state: e, dispatch: t }) => {
|
|
502
|
-
let
|
|
502
|
+
let r = W(e).map(({ from: t, to: r }) => n.undirectionalRange(t, Math.min(r + 1, e.doc.length)));
|
|
503
503
|
return t(e.update({
|
|
504
|
-
selection:
|
|
504
|
+
selection: n.create(r),
|
|
505
505
|
userEvent: "select"
|
|
506
506
|
})), !0;
|
|
507
507
|
}, Nt = ({ state: e, dispatch: t }) => {
|
|
508
|
-
let
|
|
509
|
-
let
|
|
508
|
+
let r = M(e.selection, (t) => {
|
|
509
|
+
let r = u(e), i = r.resolveStack(t.from, 1);
|
|
510
510
|
if (t.empty) {
|
|
511
|
-
let e =
|
|
512
|
-
e.node.from >=
|
|
511
|
+
let e = r.resolveStack(t.from, -1);
|
|
512
|
+
e.node.from >= i.node.from && e.node.to <= i.node.to && (i = e);
|
|
513
513
|
}
|
|
514
|
-
for (let e =
|
|
515
|
-
let { node:
|
|
516
|
-
if ((
|
|
514
|
+
for (let e = i; e; e = e.next) {
|
|
515
|
+
let { node: r } = e;
|
|
516
|
+
if ((r.from < t.from && r.to >= t.to || r.to > t.to && r.from <= t.from) && e.next) return n.undirectionalRange(r.from, r.to);
|
|
517
517
|
}
|
|
518
518
|
return t;
|
|
519
519
|
});
|
|
520
|
-
return !
|
|
520
|
+
return !r.eq(e.selection) && (t(N(e, r)), !0);
|
|
521
521
|
};
|
|
522
522
|
function Pt(e, t) {
|
|
523
|
-
let { state:
|
|
524
|
-
for (let
|
|
525
|
-
let
|
|
526
|
-
if (t ?
|
|
527
|
-
let
|
|
528
|
-
if (
|
|
529
|
-
|
|
523
|
+
let { state: r } = e, i = r.selection, a = r.selection.ranges.slice();
|
|
524
|
+
for (let n of r.selection.ranges) {
|
|
525
|
+
let i = r.doc.lineAt(n.head);
|
|
526
|
+
if (t ? i.to < e.state.doc.length : i.from > 0) for (let r = n;;) {
|
|
527
|
+
let n = e.moveVertically(r, t);
|
|
528
|
+
if (n.head < i.from || n.head > i.to) {
|
|
529
|
+
a.some((e) => e.head == n.head) || a.push(n);
|
|
530
530
|
break;
|
|
531
531
|
}
|
|
532
|
-
if (
|
|
533
|
-
|
|
532
|
+
if (n.head == r.head) break;
|
|
533
|
+
r = n;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
return
|
|
536
|
+
return a.length != i.ranges.length && (e.dispatch(N(r, n.create(a, a.length - 1))), !0);
|
|
537
537
|
}
|
|
538
538
|
var Ft = (e) => Pt(e, !1), It = (e) => Pt(e, !0), Lt = ({ state: e, dispatch: t }) => {
|
|
539
|
-
let
|
|
540
|
-
return
|
|
539
|
+
let r = e.selection, i = null;
|
|
540
|
+
return r.ranges.length > 1 ? i = n.create([r.main]) : r.main.empty || (i = n.create([n.cursor(r.main.head)])), i ? (t(N(e, i)), !0) : !1;
|
|
541
541
|
};
|
|
542
|
-
function V(t,
|
|
542
|
+
function V(t, r) {
|
|
543
543
|
if (t.state.readOnly) return !1;
|
|
544
|
-
let
|
|
545
|
-
let { from:
|
|
546
|
-
if (
|
|
547
|
-
let
|
|
548
|
-
|
|
549
|
-
} else
|
|
550
|
-
return
|
|
544
|
+
let i = "delete.selection", { state: a } = t, o = a.changeByRange((e) => {
|
|
545
|
+
let { from: a, to: o } = e;
|
|
546
|
+
if (a == o) {
|
|
547
|
+
let n = r(e);
|
|
548
|
+
n < a ? (i = "delete.backward", n = H(t, n, !1)) : n > a && (i = "delete.forward", n = H(t, n, !0)), a = Math.min(a, n), o = Math.max(o, n);
|
|
549
|
+
} else a = H(t, a, !1), o = H(t, o, !0);
|
|
550
|
+
return a == o ? { range: e } : {
|
|
551
551
|
changes: {
|
|
552
|
-
from:
|
|
553
|
-
to:
|
|
552
|
+
from: a,
|
|
553
|
+
to: o
|
|
554
554
|
},
|
|
555
|
-
range:
|
|
555
|
+
range: n.cursor(a, a < e.head ? -1 : 1)
|
|
556
556
|
};
|
|
557
557
|
});
|
|
558
|
-
return !
|
|
558
|
+
return !o.changes.empty && (t.dispatch(a.update(o, {
|
|
559
559
|
scrollIntoView: !0,
|
|
560
|
-
userEvent:
|
|
561
|
-
effects:
|
|
560
|
+
userEvent: i,
|
|
561
|
+
effects: i == "delete.selection" ? e.announce.of(a.phrase("Selection deleted")) : void 0
|
|
562
562
|
})), !0);
|
|
563
563
|
}
|
|
564
564
|
function H(t, n, r) {
|
|
@@ -568,13 +568,13 @@ function H(t, n, r) {
|
|
|
568
568
|
return n;
|
|
569
569
|
}
|
|
570
570
|
var Rt = (e, t, n) => V(e, (r) => {
|
|
571
|
-
let i = r.from, { state:
|
|
572
|
-
if (n && !t && i > s.from && i < s.from + 200 && !/[^ \t]/.test(
|
|
573
|
-
if (
|
|
574
|
-
let e =
|
|
575
|
-
for (let t = 0; t < e &&
|
|
571
|
+
let i = r.from, { state: a } = e, s = a.doc.lineAt(i), c, u;
|
|
572
|
+
if (n && !t && i > s.from && i < s.from + 200 && !/[^ \t]/.test(c = s.text.slice(0, i - s.from))) {
|
|
573
|
+
if (c[c.length - 1] == " ") return i - 1;
|
|
574
|
+
let e = l(c, a.tabSize) % o(a) || o(a);
|
|
575
|
+
for (let t = 0; t < e && c[c.length - 1 - t] == " "; t++) i--;
|
|
576
576
|
u = i;
|
|
577
|
-
} else u =
|
|
577
|
+
} else u = f(s.text, i - s.from, t, t) + s.from, u == i && s.number != (t ? a.doc.lines : 1) ? u += t ? 1 : -1 : !t && /[\ufe00-\ufe0f]/.test(s.text.slice(u - s.from, i - s.from)) && (u = f(s.text, u - s.from, !1, !1) + s.from);
|
|
578
578
|
return u;
|
|
579
579
|
}), U = (e) => Rt(e, !1, !0), zt = (e) => Rt(e, !0, !1), Bt = (e, t) => V(e, (n) => {
|
|
580
580
|
let r = n.head, { state: i } = e, a = i.doc.lineAt(r), o = i.charCategorizer(r);
|
|
@@ -583,9 +583,9 @@ var Rt = (e, t, n) => V(e, (r) => {
|
|
|
583
583
|
r == n.head && a.number != (t ? i.doc.lines : 1) && (r += t ? 1 : -1);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
|
-
let s =
|
|
587
|
-
if (e != null &&
|
|
588
|
-
(
|
|
586
|
+
let s = f(a.text, r - a.from, t) + a.from, c = a.text.slice(Math.min(r, s) - a.from, Math.max(r, s) - a.from), l = o(c);
|
|
587
|
+
if (e != null && l != e) break;
|
|
588
|
+
(c != " " || r != n.head) && (e = l), r = s;
|
|
589
589
|
}
|
|
590
590
|
return r;
|
|
591
591
|
}), Vt = (e) => Bt(e, !1), Ht = (e) => Bt(e, !0), Ut = (e) => V(e, (t) => {
|
|
@@ -599,33 +599,33 @@ var Rt = (e, t, n) => V(e, (r) => {
|
|
|
599
599
|
return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
|
|
600
600
|
}), Kt = ({ state: e, dispatch: t }) => {
|
|
601
601
|
if (e.readOnly) return !1;
|
|
602
|
-
let
|
|
602
|
+
let i = e.changeByRange((e) => ({
|
|
603
603
|
changes: {
|
|
604
604
|
from: e.from,
|
|
605
605
|
to: e.to,
|
|
606
|
-
insert:
|
|
606
|
+
insert: r.of(["", ""])
|
|
607
607
|
},
|
|
608
|
-
range:
|
|
608
|
+
range: n.cursor(e.from)
|
|
609
609
|
}));
|
|
610
|
-
return t(e.update(
|
|
610
|
+
return t(e.update(i, {
|
|
611
611
|
scrollIntoView: !0,
|
|
612
612
|
userEvent: "input"
|
|
613
613
|
})), !0;
|
|
614
614
|
}, qt = ({ state: e, dispatch: t }) => {
|
|
615
615
|
if (e.readOnly) return !1;
|
|
616
|
-
let
|
|
616
|
+
let r = e.changeByRange((t) => {
|
|
617
617
|
if (!t.empty || t.from == 0 || t.from == e.doc.length) return { range: t };
|
|
618
|
-
let
|
|
618
|
+
let r = t.from, i = e.doc.lineAt(r), a = r == i.from ? r - 1 : f(i.text, r - i.from, !1) + i.from, o = r == i.to ? r + 1 : f(i.text, r - i.from, !0) + i.from;
|
|
619
619
|
return {
|
|
620
620
|
changes: {
|
|
621
|
-
from:
|
|
622
|
-
to:
|
|
623
|
-
insert: e.doc.slice(
|
|
621
|
+
from: a,
|
|
622
|
+
to: o,
|
|
623
|
+
insert: e.doc.slice(r, o).append(e.doc.slice(a, r))
|
|
624
624
|
},
|
|
625
|
-
range:
|
|
625
|
+
range: n.cursor(o)
|
|
626
626
|
};
|
|
627
627
|
});
|
|
628
|
-
return !
|
|
628
|
+
return !r.changes.empty && (t(e.update(r, {
|
|
629
629
|
scrollIntoView: !0,
|
|
630
630
|
userEvent: "move.character"
|
|
631
631
|
})), !0);
|
|
@@ -646,36 +646,36 @@ function W(e) {
|
|
|
646
646
|
}
|
|
647
647
|
return t;
|
|
648
648
|
}
|
|
649
|
-
function Jt(e, t,
|
|
649
|
+
function Jt(e, t, r) {
|
|
650
650
|
if (e.readOnly) return !1;
|
|
651
|
-
let
|
|
651
|
+
let i = [], a = [];
|
|
652
652
|
for (let t of W(e)) {
|
|
653
|
-
if (
|
|
654
|
-
let
|
|
655
|
-
if (
|
|
656
|
-
|
|
653
|
+
if (r ? t.to == e.doc.length : t.from == 0) continue;
|
|
654
|
+
let o = e.doc.lineAt(r ? t.to + 1 : t.from - 1), s = o.length + 1;
|
|
655
|
+
if (r) {
|
|
656
|
+
i.push({
|
|
657
657
|
from: t.to,
|
|
658
|
-
to:
|
|
658
|
+
to: o.to
|
|
659
659
|
}, {
|
|
660
660
|
from: t.from,
|
|
661
|
-
insert:
|
|
661
|
+
insert: o.text + e.lineBreak
|
|
662
662
|
});
|
|
663
|
-
for (let
|
|
663
|
+
for (let r of t.ranges) a.push(n.range(Math.min(e.doc.length, r.anchor + s), Math.min(e.doc.length, r.head + s)));
|
|
664
664
|
} else {
|
|
665
|
-
|
|
666
|
-
from:
|
|
665
|
+
i.push({
|
|
666
|
+
from: o.from,
|
|
667
667
|
to: t.from
|
|
668
668
|
}, {
|
|
669
669
|
from: t.to,
|
|
670
|
-
insert: e.lineBreak +
|
|
670
|
+
insert: e.lineBreak + o.text
|
|
671
671
|
});
|
|
672
|
-
for (let e of t.ranges)
|
|
672
|
+
for (let e of t.ranges) a.push(n.range(e.anchor - s, e.head - s));
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
return
|
|
676
|
-
changes:
|
|
675
|
+
return i.length ? (t(e.update({
|
|
676
|
+
changes: i,
|
|
677
677
|
scrollIntoView: !0,
|
|
678
|
-
selection:
|
|
678
|
+
selection: n.create(a, e.selection.mainIndex),
|
|
679
679
|
userEvent: "move.line"
|
|
680
680
|
})), !0) : !1;
|
|
681
681
|
}
|
|
@@ -723,59 +723,59 @@ function tn(e, t) {
|
|
|
723
723
|
from: t,
|
|
724
724
|
to: t
|
|
725
725
|
};
|
|
726
|
-
let n =
|
|
727
|
-
return r && i && r.to <= t && i.from >= t && (a = r.type.prop(
|
|
726
|
+
let n = u(e).resolveInner(t), r = n.childBefore(t), i = n.childAfter(t), a;
|
|
727
|
+
return r && i && r.to <= t && i.from >= t && (a = r.type.prop(_.closedBy)) && a.indexOf(i.name) > -1 && e.doc.lineAt(r.to).from == e.doc.lineAt(i.from).from && !/\S/.test(e.sliceDoc(r.to, i.from)) ? {
|
|
728
728
|
from: r.to,
|
|
729
729
|
to: i.from
|
|
730
730
|
} : null;
|
|
731
731
|
}
|
|
732
732
|
var nn = /*@__PURE__*/ an(!1), rn = /*@__PURE__*/ an(!0);
|
|
733
733
|
function an(e) {
|
|
734
|
-
return ({ state:
|
|
735
|
-
if (
|
|
736
|
-
let
|
|
737
|
-
let { from:
|
|
738
|
-
e && (
|
|
739
|
-
let
|
|
740
|
-
simulateBreak:
|
|
741
|
-
simulateDoubleBreak: !!
|
|
742
|
-
}),
|
|
743
|
-
for (
|
|
744
|
-
|
|
745
|
-
let
|
|
746
|
-
return
|
|
734
|
+
return ({ state: a, dispatch: o }) => {
|
|
735
|
+
if (a.readOnly) return !1;
|
|
736
|
+
let s = a.changeByRange((o) => {
|
|
737
|
+
let { from: s, to: c } = o, u = a.doc.lineAt(s), d = !e && s == c && tn(a, s);
|
|
738
|
+
e && (s = c = (c <= u.to ? u : a.doc.lineAt(c)).to);
|
|
739
|
+
let f = new le(a, {
|
|
740
|
+
simulateBreak: s,
|
|
741
|
+
simulateDoubleBreak: !!d
|
|
742
|
+
}), p = i(f, s);
|
|
743
|
+
for (p ??= l(/^\s*/.exec(a.doc.lineAt(s).text)[0], a.tabSize); c < u.to && /\s/.test(u.text[c - u.from]);) c++;
|
|
744
|
+
d ? {from: s, to: c} = d : s > u.from && s < u.from + 100 && !/\S/.test(u.text.slice(0, s)) && (s = u.from);
|
|
745
|
+
let m = ["", t(a, p)];
|
|
746
|
+
return d && m.push(t(a, f.lineIndent(u.from, -1))), {
|
|
747
747
|
changes: {
|
|
748
|
-
from:
|
|
749
|
-
to:
|
|
750
|
-
insert:
|
|
748
|
+
from: s,
|
|
749
|
+
to: c,
|
|
750
|
+
insert: r.of(m)
|
|
751
751
|
},
|
|
752
|
-
range:
|
|
752
|
+
range: n.cursor(s + 1 + m[1].length)
|
|
753
753
|
};
|
|
754
754
|
});
|
|
755
|
-
return
|
|
755
|
+
return o(a.update(s, {
|
|
756
756
|
scrollIntoView: !0,
|
|
757
757
|
userEvent: "input"
|
|
758
758
|
})), !0;
|
|
759
759
|
};
|
|
760
760
|
}
|
|
761
761
|
function G(e, t) {
|
|
762
|
-
let
|
|
763
|
-
return e.changeByRange((
|
|
764
|
-
let
|
|
765
|
-
for (let
|
|
766
|
-
let o = e.doc.lineAt(
|
|
767
|
-
o.number >
|
|
762
|
+
let r = -1;
|
|
763
|
+
return e.changeByRange((i) => {
|
|
764
|
+
let a = [];
|
|
765
|
+
for (let n = i.from; n <= i.to;) {
|
|
766
|
+
let o = e.doc.lineAt(n);
|
|
767
|
+
o.number > r && (i.empty || i.to > o.from) && (t(o, a, i), r = o.number), n = o.to + 1;
|
|
768
768
|
}
|
|
769
|
-
let
|
|
769
|
+
let o = e.changes(a);
|
|
770
770
|
return {
|
|
771
|
-
changes:
|
|
772
|
-
range:
|
|
771
|
+
changes: a,
|
|
772
|
+
range: n.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1))
|
|
773
773
|
};
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
776
|
var on = ({ state: e, dispatch: n }) => {
|
|
777
777
|
if (e.readOnly) return !1;
|
|
778
|
-
let r = Object.create(null), a = new
|
|
778
|
+
let r = Object.create(null), a = new le(e, { overrideIndentation: (e) => r[e] ?? -1 }), o = G(e, (n, o, s) => {
|
|
779
779
|
let c = i(a, n.from);
|
|
780
780
|
if (c == null) return;
|
|
781
781
|
/\S/.test(n.text) || (c = 0);
|
|
@@ -790,12 +790,12 @@ var on = ({ state: e, dispatch: n }) => {
|
|
|
790
790
|
}, K = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(G(e, (t, n) => {
|
|
791
791
|
n.push({
|
|
792
792
|
from: t.from,
|
|
793
|
-
insert: e.facet(
|
|
793
|
+
insert: e.facet(oe)
|
|
794
794
|
});
|
|
795
795
|
}), { userEvent: "input.indent" })), !0), sn = ({ state: e, dispatch: n }) => !e.readOnly && (n(e.update(G(e, (n, r) => {
|
|
796
796
|
let i = /^\s*/.exec(n.text)[0];
|
|
797
797
|
if (!i) return;
|
|
798
|
-
let
|
|
798
|
+
let a = l(i, e.tabSize), s = 0, c = t(e, Math.max(0, a - o(e)));
|
|
799
799
|
for (; s < i.length && s < c.length && i.charCodeAt(s) == c.charCodeAt(s);) s++;
|
|
800
800
|
r.push({
|
|
801
801
|
from: n.from + s,
|
|
@@ -1121,19 +1121,19 @@ var on = ({ state: e, dispatch: n }) => {
|
|
|
1121
1121
|
static init(t, n, r) {
|
|
1122
1122
|
let i = r.facet(Q).markerFilter;
|
|
1123
1123
|
i && (t = i(t, r));
|
|
1124
|
-
let a = t.slice().sort((e, t) => e.from - t.from || e.to - t.to), o = new
|
|
1124
|
+
let a = t.slice().sort((e, t) => e.from - t.from || e.to - t.to), o = new d(), s = [], c = 0, l = r.doc.iter(), u = 0, f = r.doc.length;
|
|
1125
1125
|
for (let e = 0;;) {
|
|
1126
1126
|
let t = e == a.length ? null : a[e];
|
|
1127
|
-
if (!t && !
|
|
1127
|
+
if (!t && !s.length) break;
|
|
1128
1128
|
let n, r;
|
|
1129
|
-
if (
|
|
1129
|
+
if (s.length) n = c, r = s.reduce((e, t) => Math.min(e, t.to), t && t.from > n ? t.from : 1e8);
|
|
1130
1130
|
else {
|
|
1131
1131
|
if (n = t.from, n > f) break;
|
|
1132
|
-
r = t.to,
|
|
1132
|
+
r = t.to, s.push(t), e++;
|
|
1133
1133
|
}
|
|
1134
1134
|
for (; e < a.length;) {
|
|
1135
1135
|
let t = a[e];
|
|
1136
|
-
if (t.from == n && (t.to > t.from || t.to == n))
|
|
1136
|
+
if (t.from == n && (t.to > t.from || t.to == n)) s.push(t), e++, r = Math.min(t.to, r);
|
|
1137
1137
|
else {
|
|
1138
1138
|
r = Math.min(t.from, r);
|
|
1139
1139
|
break;
|
|
@@ -1141,33 +1141,33 @@ var on = ({ state: e, dispatch: n }) => {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
r = Math.min(r, f);
|
|
1143
1143
|
let i = !1;
|
|
1144
|
-
if (
|
|
1145
|
-
let e = n - (
|
|
1146
|
-
e > 0 && (
|
|
1144
|
+
if (s.some((e) => e.from == n && (e.to == r || r == f)) && (i = n == r, !i && r - n < 10)) {
|
|
1145
|
+
let e = n - (u + l.value.length);
|
|
1146
|
+
e > 0 && (l.next(e), u = n);
|
|
1147
1147
|
for (let e = n;;) {
|
|
1148
1148
|
if (e >= r) {
|
|
1149
1149
|
i = !0;
|
|
1150
1150
|
break;
|
|
1151
1151
|
}
|
|
1152
|
-
if (!
|
|
1153
|
-
e =
|
|
1152
|
+
if (!l.lineBreak && u + l.value.length > e) break;
|
|
1153
|
+
e = u + l.value.length, u += l.value.length, l.next();
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
-
let
|
|
1157
|
-
if (i) o.add(n, n,
|
|
1158
|
-
widget: new jn(
|
|
1159
|
-
diagnostics:
|
|
1156
|
+
let d = Ln(s);
|
|
1157
|
+
if (i) o.add(n, n, v.widget({
|
|
1158
|
+
widget: new jn(d),
|
|
1159
|
+
diagnostics: s.slice()
|
|
1160
1160
|
}));
|
|
1161
1161
|
else {
|
|
1162
|
-
let e =
|
|
1163
|
-
o.add(n, r,
|
|
1164
|
-
class: "cm-lintRange cm-lintRange-" +
|
|
1165
|
-
diagnostics:
|
|
1166
|
-
inclusiveEnd:
|
|
1162
|
+
let e = s.reduce((e, t) => t.markClass ? e + " " + t.markClass : e, "");
|
|
1163
|
+
o.add(n, r, v.mark({
|
|
1164
|
+
class: "cm-lintRange cm-lintRange-" + d + e,
|
|
1165
|
+
diagnostics: s.slice(),
|
|
1166
|
+
inclusiveEnd: s.some((e) => e.to > r)
|
|
1167
1167
|
}));
|
|
1168
1168
|
}
|
|
1169
|
-
if (
|
|
1170
|
-
for (let e = 0; e <
|
|
1169
|
+
if (c = r, c == f) break;
|
|
1170
|
+
for (let e = 0; e < s.length; e++) s[e].to <= c && s.splice(e--, 1);
|
|
1171
1171
|
}
|
|
1172
1172
|
let p = o.finish();
|
|
1173
1173
|
return new e(p, n, J(p));
|
|
@@ -1190,14 +1190,14 @@ function hn(e, t) {
|
|
|
1190
1190
|
return !!(e.effects.some((e) => e.is(Y)) || e.changes.touchesRange(a.from, Math.max(a.to, r)));
|
|
1191
1191
|
}
|
|
1192
1192
|
function gn(e, t) {
|
|
1193
|
-
return e.field(Z, !1) ? t : t.concat(
|
|
1193
|
+
return e.field(Z, !1) ? t : t.concat(h.appendConfig.of(zn));
|
|
1194
1194
|
}
|
|
1195
1195
|
function _n(e, t) {
|
|
1196
1196
|
return { effects: gn(e, [Y.of(t)]) };
|
|
1197
1197
|
}
|
|
1198
|
-
var Y = /*@__PURE__*/
|
|
1198
|
+
var Y = /*@__PURE__*/ h.define(), X = /*@__PURE__*/ h.define(), vn = /*@__PURE__*/ h.define(), Z = /*@__PURE__*/ fe.define({
|
|
1199
1199
|
create() {
|
|
1200
|
-
return new q(
|
|
1200
|
+
return new q(v.none, null, null);
|
|
1201
1201
|
},
|
|
1202
1202
|
update(e, t) {
|
|
1203
1203
|
if (t.docChanged && e.diagnostics.size) {
|
|
@@ -1214,8 +1214,8 @@ var Y = /*@__PURE__*/ u.define(), X = /*@__PURE__*/ u.define(), vn = /*@__PURE__
|
|
|
1214
1214
|
} else n.is(X) ? e = new q(e.diagnostics, n.value ? Nn.open : null, e.selected) : n.is(vn) && (e = new q(e.diagnostics, e.panel, n.value));
|
|
1215
1215
|
return e;
|
|
1216
1216
|
},
|
|
1217
|
-
provide: (t) => [
|
|
1218
|
-
}), yn = /*@__PURE__*/
|
|
1217
|
+
provide: (t) => [te.from(t, (e) => e.panel), e.decorations.from(t, (e) => e.diagnostics)]
|
|
1218
|
+
}), yn = /*@__PURE__*/ v.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
1219
1219
|
function bn(e, t, n) {
|
|
1220
1220
|
let { diagnostics: r } = e.state.field(Z), i, a = -1, o = -1;
|
|
1221
1221
|
r.between(t - +(n < 0), t + +(n > 0), (e, r, { spec: s }) => {
|
|
@@ -1232,12 +1232,12 @@ function bn(e, t, n) {
|
|
|
1232
1232
|
} : null;
|
|
1233
1233
|
}
|
|
1234
1234
|
function xn(e, t) {
|
|
1235
|
-
return
|
|
1235
|
+
return y("ul", { class: "cm-tooltip-lint" }, t.map((t) => An(e, t, !1)));
|
|
1236
1236
|
}
|
|
1237
1237
|
var Sn = (e) => {
|
|
1238
1238
|
let t = e.state.field(Z, !1);
|
|
1239
1239
|
(!t || !t.panel) && e.dispatch({ effects: gn(e.state, [X.of(!0)]) });
|
|
1240
|
-
let n =
|
|
1240
|
+
let n = ae(e, Nn.open);
|
|
1241
1241
|
return n && n.dom.querySelector(".cm-panel-lint ul").focus(), !0;
|
|
1242
1242
|
}, Cn = (e) => {
|
|
1243
1243
|
let t = e.state.field(Z, !1);
|
|
@@ -1258,12 +1258,12 @@ var Sn = (e) => {
|
|
|
1258
1258
|
head: r.to
|
|
1259
1259
|
},
|
|
1260
1260
|
scrollIntoView: !0
|
|
1261
|
-
}),
|
|
1261
|
+
}), ue(e, r.from, 1, {
|
|
1262
1262
|
tooltip: Rn,
|
|
1263
1263
|
until: (e) => e.docChanged || e.newSelection.main.head < r.from || e.newSelection.main.head > r.to
|
|
1264
1264
|
}), !0);
|
|
1265
1265
|
}
|
|
1266
|
-
}], Tn = /*@__PURE__*/
|
|
1266
|
+
}], Tn = /*@__PURE__*/ de.fromClass(class {
|
|
1267
1267
|
constructor(e) {
|
|
1268
1268
|
this.view = e, this.timeout = -1, this.set = !0;
|
|
1269
1269
|
let { delay: t } = e.state.facet(Q);
|
|
@@ -1279,7 +1279,7 @@ var Sn = (e) => {
|
|
|
1279
1279
|
t.length && En(t.map((e) => Promise.resolve(e(this.view))), (t) => {
|
|
1280
1280
|
this.view.state.doc == e.doc && this.view.dispatch(_n(this.view.state, t.reduce((e, t) => e.concat(t))));
|
|
1281
1281
|
}, (e) => {
|
|
1282
|
-
|
|
1282
|
+
ie(this.view.state, e);
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
@@ -1300,10 +1300,10 @@ function En(e, t, n) {
|
|
|
1300
1300
|
r.push(n), clearTimeout(i), r.length == e.length ? t(r) : i = setTimeout(() => t(r), 200);
|
|
1301
1301
|
}, n);
|
|
1302
1302
|
}
|
|
1303
|
-
var Q = /*@__PURE__*/
|
|
1303
|
+
var Q = /*@__PURE__*/ p.define({ combine(e) {
|
|
1304
1304
|
return {
|
|
1305
1305
|
sources: e.map((e) => e.source).filter((e) => e != null),
|
|
1306
|
-
...
|
|
1306
|
+
...re(e.map((e) => e.config), {
|
|
1307
1307
|
delay: 750,
|
|
1308
1308
|
markerFilter: null,
|
|
1309
1309
|
tooltipFilter: null,
|
|
@@ -1347,28 +1347,28 @@ function kn(e) {
|
|
|
1347
1347
|
return t;
|
|
1348
1348
|
}
|
|
1349
1349
|
function An(e, t, n) {
|
|
1350
|
-
let
|
|
1351
|
-
return
|
|
1352
|
-
let
|
|
1353
|
-
if (r.preventDefault(),
|
|
1354
|
-
|
|
1350
|
+
let r = n ? kn(t.actions) : [];
|
|
1351
|
+
return y("li", { class: "cm-diagnostic cm-diagnostic-" + t.severity }, y("span", { class: "cm-diagnosticText" }, t.renderMessage ? t.renderMessage(e) : t.message), t.actions?.map((n, i) => {
|
|
1352
|
+
let a = !1, o = (r) => {
|
|
1353
|
+
if (r.preventDefault(), a) return;
|
|
1354
|
+
a = !0;
|
|
1355
1355
|
let i = J(e.state.field(Z).diagnostics, t);
|
|
1356
1356
|
i && n.apply(e, i.from, i.to);
|
|
1357
|
-
}, { name:
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
],
|
|
1362
|
-
return
|
|
1357
|
+
}, { name: s } = n, c = r[i] ? s.indexOf(r[i]) : -1, l = c < 0 ? s : [
|
|
1358
|
+
s.slice(0, c),
|
|
1359
|
+
y("u", s.slice(c, c + 1)),
|
|
1360
|
+
s.slice(c + 1)
|
|
1361
|
+
], u = n.markClass ? " " + n.markClass : "";
|
|
1362
|
+
return y("button", {
|
|
1363
1363
|
type: "button",
|
|
1364
|
-
class: "cm-diagnosticAction" +
|
|
1365
|
-
onclick:
|
|
1366
|
-
onmousedown:
|
|
1367
|
-
"aria-label": ` Action: ${
|
|
1368
|
-
},
|
|
1369
|
-
}), t.source &&
|
|
1364
|
+
class: "cm-diagnosticAction" + u,
|
|
1365
|
+
onclick: o,
|
|
1366
|
+
onmousedown: o,
|
|
1367
|
+
"aria-label": ` Action: ${s}${c < 0 ? "" : ` (access key "${r[i]})"`}.`
|
|
1368
|
+
}, l);
|
|
1369
|
+
}), t.source && y("div", { class: "cm-diagnosticSource" }, t.source));
|
|
1370
1370
|
}
|
|
1371
|
-
var jn = class extends
|
|
1371
|
+
var jn = class extends ce {
|
|
1372
1372
|
constructor(e) {
|
|
1373
1373
|
super(), this.sev = e;
|
|
1374
1374
|
}
|
|
@@ -1376,7 +1376,7 @@ var jn = class extends ie {
|
|
|
1376
1376
|
return e.sev == this.sev;
|
|
1377
1377
|
}
|
|
1378
1378
|
toDOM() {
|
|
1379
|
-
return
|
|
1379
|
+
return y("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
|
|
1380
1380
|
}
|
|
1381
1381
|
}, Mn = class {
|
|
1382
1382
|
constructor(e, t) {
|
|
@@ -1405,13 +1405,13 @@ var jn = class extends ie {
|
|
|
1405
1405
|
}, n = (e) => {
|
|
1406
1406
|
for (let t = 0; t < this.items.length; t++) this.items[t].dom.contains(e.target) && this.moveSelection(t);
|
|
1407
1407
|
};
|
|
1408
|
-
this.list =
|
|
1408
|
+
this.list = y("ul", {
|
|
1409
1409
|
tabIndex: 0,
|
|
1410
1410
|
role: "listbox",
|
|
1411
1411
|
"aria-label": this.view.state.phrase("Diagnostics"),
|
|
1412
1412
|
onkeydown: t,
|
|
1413
1413
|
onclick: n
|
|
1414
|
-
}), this.dom =
|
|
1414
|
+
}), this.dom = y("div", { class: "cm-panel-lint" }, this.list, y("button", {
|
|
1415
1415
|
type: "button",
|
|
1416
1416
|
name: "close",
|
|
1417
1417
|
"aria-label": this.view.state.phrase("close"),
|
|
@@ -1587,11 +1587,11 @@ function Ln(e) {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
return t;
|
|
1589
1589
|
}
|
|
1590
|
-
var Rn = /*@__PURE__*/
|
|
1590
|
+
var Rn = /*@__PURE__*/ se(bn, { hideOn: hn }), zn = [
|
|
1591
1591
|
Z,
|
|
1592
1592
|
/*@__PURE__*/ e.decorations.compute([Z], (e) => {
|
|
1593
1593
|
let { selected: t, panel: n } = e.field(Z);
|
|
1594
|
-
return !t || !n || t.from == t.to ?
|
|
1594
|
+
return !t || !n || t.from == t.to ? v.none : v.set([yn.range(t.from, t.to)]);
|
|
1595
1595
|
}),
|
|
1596
1596
|
Rn,
|
|
1597
1597
|
Fn
|
|
@@ -1600,7 +1600,7 @@ function Bn(e, t) {
|
|
|
1600
1600
|
let n = e.field(Z, !1);
|
|
1601
1601
|
if (n && n.diagnostics.size) {
|
|
1602
1602
|
let e = [], r = [], i = -1;
|
|
1603
|
-
for (let a =
|
|
1603
|
+
for (let a = c.iter([n.diagnostics]);; a.next()) {
|
|
1604
1604
|
for (let n = 0; n < e.length; n++) (!a.value || a.value.spec.diagnostics.indexOf(e[n]) < 0) && (t(e[n], r[n], i), e.splice(n, 1), r.splice(n--, 1));
|
|
1605
1605
|
if (!a.value) break;
|
|
1606
1606
|
for (let t of a.value.spec.diagnostics) e.indexOf(t) < 0 && (e.push(t), r.push(a.from));
|