@marimo-team/islands 0.25.2-dev13 → 0.25.2-dev131
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-CNSxdKyJ.js} +15 -15
- package/dist/{ErrorBoundary-C901K0Pa.js → ErrorBoundary-B3SvRdNh.js} +12 -12
- package/dist/{ImageComparisonComponent-Cpfz30OZ.js → ImageComparisonComponent-uU8FSKZE.js} +3 -3
- package/dist/{Plot-CTyjbQDT.js → Plot-DdYOe1UK.js} +2 -2
- package/dist/{abnfDiagram-VCTEODGH-aLGD44M7.js → abnfDiagram-VCTEODGH-DQDjNXt3.js} +3 -3
- package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-B9REGlD9.js} +8 -8
- package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
- package/dist/{architectureDiagram-5GKGNRK7-BGL5P81u.js → architectureDiagram-5GKGNRK7-Nmls7Wxn.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-BXYkiFsk.js +1 -0
- package/dist/assets/worker-HPY9fbhz.js +114 -0
- package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
- package/dist/{blockDiagram-I7D4REHJ-CvBmppdy.js → blockDiagram-I7D4REHJ-Cg25UrxT.js} +9 -9
- package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
- package/dist/{button-B0Xgl-Qn.js → button-CvjkwdSk.js} +304 -287
- package/dist/{c4Diagram-7LVT6UL2-EceL4_jH.js → c4Diagram-7LVT6UL2-BxFgrnNV.js} +7 -7
- package/dist/{capabilities-D7Ad8-zw.js → capabilities-CQ5IjhzL.js} +1 -1
- package/dist/{cells-5ppES-Un.js → cells-CuYwqnV8.js} +5950 -4893
- package/dist/{channel-z7HZXHwv.js → channel-CPObtJXj.js} +1 -1
- package/dist/{chat-ui-Dv2V95k6.js → chat-ui-C6oDg4Zu.js} +1595 -1402
- package/dist/{check-DGZ74tV2.js → check-EDwSwP89.js} +1 -1
- package/dist/{chunk-4HAMMTFA-BPTTOOC5.js → chunk-4HAMMTFA-D4eFPyFh.js} +5 -5
- package/dist/{chunk-75Z2AOVW-C4AOleKf.js → chunk-75Z2AOVW-D7gxIs2Q.js} +1 -1
- package/dist/{chunk-DU6HZSFF-1TwWR6gh.js → chunk-DU6HZSFF-BwiyaNpg.js} +2 -2
- package/dist/{chunk-F27PBJKO-DMI1PBe4.js → chunk-F27PBJKO-ufseIn5y.js} +1 -1
- package/dist/{chunk-GMAD6QVW-vStrMz2P.js → chunk-GMAD6QVW-BhaJx0X3.js} +3 -3
- package/dist/{chunk-GVQU2GXP-2HwWgs4u.js → chunk-GVQU2GXP-Cwbt-lF0.js} +2 -2
- package/dist/{chunk-IMKFNOWR-Cm3RgLDj.js → chunk-IMKFNOWR-CoIFEo-1.js} +6 -6
- package/dist/{chunk-L3NEJ4N5-RhC7i0I2.js → chunk-L3NEJ4N5-n-zgIVSy.js} +5 -5
- package/dist/{chunk-OSK3NFVY-CZV09N-U.js → chunk-OSK3NFVY-DXa-Cxbn.js} +6 -6
- package/dist/{chunk-P2QGCYS3-0TAWai9C.js → chunk-P2QGCYS3-B_Zd3-X0.js} +1 -1
- package/dist/{chunk-POPQ4Y6H-Cc3_56GX.js → chunk-POPQ4Y6H-hYOXbYH_.js} +1 -1
- package/dist/{chunk-PWAF6VOD-lNxB9k8z.js → chunk-PWAF6VOD-CQw5qATZ.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DedDYSP5.js → chunk-SHT3W25Y-lHiGx3ZC.js} +8 -8
- package/dist/{chunk-SVP7TREG-B2SFkCAL.js → chunk-SVP7TREG-BvsHIrY_.js} +2 -2
- package/dist/{chunk-TICWLB2K-DB6hjNOL.js → chunk-TICWLB2K-BC8YIm_n.js} +6 -6
- package/dist/{chunk-YOKDWASO-DrWbKnxA.js → chunk-YOKDWASO-DPZk8vhS.js} +6 -6
- package/dist/classDiagram-ZZMXUADV-Bt98lkkv.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-D9bfbcC3.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-DbDN7P7-.js → code-visibility-DdJ92AV9.js} +7 -7
- package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
- package/dist/{common-BT9gbOCH.js → common-BkR5VStb.js} +9639 -9291
- package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
- package/dist/{compiler-runtime-Cj8ZWiNS.js → compiler-runtime-CldRdSsv.js} +2 -2
- package/dist/{copy-icon-qmRg_VTX.js → copy-icon-Ft7t9bqz.js} +6 -6
- 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-CgWra7wt.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-CFZ8-35c.js} +10 -10
- package/dist/{data-grid-overlay-editor-CVzcJKyS.js → data-grid-overlay-editor-DO_vB_uu.js} +7 -7
- package/dist/{data-grid-types-BucVmDDp.js → data-grid-types-BH_r7g7l.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-IhLt_khx.js → diagram-S7CK7UJ4-lCNQrW7d.js} +4 -4
- package/dist/{diagram-UQ7AKVKN-CQc6KLPB.js → diagram-UQ7AKVKN-CQPQ6pP_.js} +3 -3
- package/dist/{diagram-VSXAHHWV-CR7BJygZ.js → diagram-VSXAHHWV-BJWcVVJY.js} +2 -2
- package/dist/{diagram-VX7I27RA-DHmW9N1T.js → diagram-VX7I27RA-Cf3b0llz.js} +5 -5
- package/dist/{diagram-Z3DM3KII-zVKsg-Ty.js → diagram-Z3DM3KII-Bt4QLrpn.js} +3 -3
- package/dist/{dialog-CILKhbsG.js → dialog-CEBFZNyc.js} +29 -29
- 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-CcyKTBTF.js → dist-DpBpA_n1.js} +2 -2
- 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-CP_qCYHC.js +4678 -0
- 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-D3NAyPFY.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-Tlu09_Nm.js} +12 -12
- package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
- package/dist/error-banner-Da600cwz.js +362 -0
- package/dist/{error-entries-B2Ux3Z2X.js → error-entries-zfHL6H60.js} +2 -2
- package/dist/{esm-h8f7-1CJ.js → esm-AMFssoNp.js} +380 -374
- package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
- 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-CglJWpZl.js → feedback-button-lyfTVLLs.js} +13 -13
- package/dist/flowDiagram-HODETNUW-CAYbpJmV.js +16 -0
- package/dist/{formats-Q9gwlLyD.js → formats-DLtvJPnj.js} +6 -6
- 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-BQT16JSc.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-D5nSIzdE.js} +2 -2
- package/dist/{glide-data-editor-DYVqOapE.js → glide-data-editor-lWcak3St.js} +60 -60
- package/dist/{glide-utils-CzzWU59p.js → glide-utils-DJyqh0EM.js} +4 -4
- package/dist/{globals-GIct2xJr.js → globals-CWqmfMYC.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/{highlighted-body-KPVGNVTW-Ad3MKZ18.js → highlighted-body-KPVGNVTW-zwjq21tf.js} +4 -4
- package/dist/{html-to-image-BZBwkkDG.js → html-to-image-BJJsbNZ1.js} +547 -569
- 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-XrDxhr0x.js} +2 -2
- package/dist/{ishikawaDiagram-5VMMS53U-pmkGQJsA.js → ishikawaDiagram-5VMMS53U-CD1muzov.js} +3 -3
- package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
- package/dist/{journeyDiagram-3NMN7TZE-EPJDPlt0.js → journeyDiagram-3NMN7TZE-BaLqn-dZ.js} +2 -2
- package/dist/{jsx-runtime-DgDPJV9S.js → jsx-runtime-3BD1kT0s.js} +1 -1
- package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-wWGD9VLW.js → kanban-definition-UXKFOSKX-Dg9W142_.js} +9 -9
- package/dist/{katex-BNCmKUol.js → katex-BIdZGsyO.js} +141 -116
- package/dist/label-BDKF3Afc.js +281 -0
- package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
- package/dist/{loader-C9OUkMrj.js → loader-BQOfjTIJ.js} +1 -1
- package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
- package/dist/main.js +7060 -6909
- 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-CiAXjLpA.js} +57 -57
- package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +2 -0
- package/dist/{mhchem-BEc7A1or.js → mhchem-CdWPJK6g.js} +1 -1
- package/dist/{mindmap-definition-YA3MSWOX-C2f1VIBR.js → mindmap-definition-YA3MSWOX-DgCidgYJ.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-D9ZV_sED.js → number-overlay-editor-DDayfCOW.js} +5 -5
- 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-coOYYKB6.js} +3 -3
- package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-BwFAhpYD.js → pieDiagram-E7YTZNPT-BnXTc3bj.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-C1GGFU6Q.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-Ccw0xMjN.js} +1 -1
- package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-D6eOFr6Z.js → railroadDiagram-O6MQD6OU-B28-u83n.js} +3 -3
- package/dist/{react-dom-BUgJ-ab_.js → react-dom-DUmH0GXv.js} +29 -21
- package/dist/{react-ofJbxM4x.js → react-sHtZdjeP.js} +103 -94
- package/dist/{react-vega-ewj7q_U5.js → react-vega-BED0DjiB.js} +3 -3
- package/dist/{requirementDiagram-BXWQKSXE-CHYsMgDR.js → requirementDiagram-BXWQKSXE-CdYCTMu0.js} +11 -11
- package/dist/{reveal-component-Bl8NIAua.js → reveal-component-BGy4nlCs.js} +906 -878
- 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-ELvOcnZH.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-BButFi-d.js +1344 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-BPAknhBp.js → sequenceDiagram-WJ2MYXX4-CM3aRAe_.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-BwarBpUJ.js} +116 -135
- 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-DOZUMVj8.js} +13 -13
- package/dist/stateDiagram-v2-MP3YSRHH-CISYxma6.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-BkSppxp8.js} +10 -10
- package/dist/swimlanesDiagram-VR7AAH4N-c8G5pGxC.js +30 -0
- package/dist/{swiper-component-DkV7T44B.js → swiper-component-DKntyn8p.js} +5 -5
- 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-CaMQayqK.js} +3 -3
- package/dist/{toDate-DWVp6uE1.js → toDate-Dwcg_x_5.js} +5 -6
- package/dist/{toast-DcoJGS3-.js → toast-B9UMEi8u.js} +161 -165
- package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
- package/dist/{tooltip-Bi36DgYh.js → tooltip-BO1REbqs.js} +548 -584
- 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-BEM7sFWl.js} +2430 -2007
- package/dist/{use-vega-container-remeasure-4DwJbPWu.js → use-vega-container-remeasure-Bz4PZMtt.js} +2 -2
- package/dist/{useAsyncData-BD7NLQ3_.js → useAsyncData-Deh5kszT.js} +3 -3
- package/dist/{useDateFormatter-D8XWr8lL.js → useDateFormatter-D8XruNGG.js} +53 -32
- package/dist/{useDeepCompareMemoize-CawMGSRU.js → useDeepCompareMemoize-DXwzRINI.js} +2 -2
- package/dist/{useIframeCapabilities-BUMBOpsM.js → useIframeCapabilities-DBETvvPl.js} +2 -2
- package/dist/{useLifecycle-3vGhRa1o.js → useLifecycle-j7D9uD1o.js} +6 -6
- package/dist/{useTheme-BOw801nZ.js → useTheme-CRnjkku0.js} +7 -7
- 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-DLBAQLSf.js} +14 -14
- package/dist/{vega-embed-container-sSR5hAsy.js → vega-embed-container-BNHE18G9.js} +5 -5
- package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
- package/dist/{vennDiagram-4TSXK5OY-DY8CySdO.js → vennDiagram-4TSXK5OY-CF8pfaK3.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-dGPu39d-.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-CP6-9q56.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 +38 -37
- package/src/__tests__/mount.test.ts +6 -6
- package/src/components/chat/__tests__/chat-history-popover.test.tsx +157 -0
- package/src/components/chat/chat-history-popover.tsx +98 -17
- package/src/components/chat/chat-panel.tsx +29 -0
- 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/TableTopBar.tsx +4 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
- package/src/components/data-table/__tests__/pagination.test.tsx +85 -1
- package/src/components/data-table/__tests__/schemas.test.ts +57 -0
- package/src/components/data-table/charts/__tests__/schemas.test.ts +25 -0
- package/src/components/data-table/charts/__tests__/slider-field.test.tsx +54 -0
- package/src/components/data-table/charts/__tests__/spec.test.ts +26 -23
- package/src/components/data-table/charts/components/form-fields.tsx +3 -1
- 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/data-table.tsx +3 -0
- package/src/components/data-table/export-actions.tsx +365 -81
- package/src/components/data-table/pagination.tsx +16 -2
- package/src/components/data-table/schemas.ts +90 -14
- 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/editor/actions/useRestartKernel.tsx +2 -2
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +224 -17
- package/src/components/editor/alerts/connection-details.tsx +61 -0
- package/src/components/editor/alerts/connection-notice.tsx +46 -53
- package/src/components/editor/alerts/startup-progress.tsx +73 -129
- package/src/components/editor/app-container.tsx +2 -2
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +2 -2
- package/src/components/editor/cell/CreateCellButton.tsx +2 -2
- package/src/components/editor/cell/DeleteButton.tsx +2 -2
- package/src/components/editor/cell/RunButton.tsx +3 -3
- package/src/components/editor/cell/StopButton.tsx +2 -2
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +4 -4
- package/src/components/editor/chrome/components/feedback-button.tsx +3 -3
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +8 -8
- package/src/components/editor/chrome/panels/__tests__/{sandbox-details.test.tsx → runtime-details.test.tsx} +94 -22
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +4 -4
- package/src/components/editor/chrome/panels/packages-panel.tsx +8 -29
- package/src/components/editor/chrome/panels/{sandbox-details-state.ts → runtime-details-state.ts} +1 -1
- package/src/components/editor/chrome/panels/{sandbox-panel.tsx → runtime-panel.tsx} +38 -66
- package/src/components/editor/chrome/panels/runtime-status-toggle.tsx +56 -0
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +2 -2
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +3 -3
- package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +2 -2
- package/src/components/editor/controls/Controls.tsx +3 -3
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +6 -5
- package/src/components/editor/header/__tests__/status.test.tsx +4 -4
- package/src/components/editor/header/app-header.tsx +2 -2
- package/src/components/editor/header/status.tsx +3 -3
- package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
- package/src/components/editor/output/console/ConsoleOutput.tsx +5 -3
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +18 -0
- package/src/components/storage/__tests__/storage-file-viewer.test.tsx +2 -1
- package/src/components/ui/__tests__/slider.test.tsx +37 -0
- package/src/components/ui/progress-stages.tsx +114 -0
- package/src/components/ui/slider.tsx +2 -0
- package/src/core/ai/__tests__/state.test.ts +120 -0
- package/src/core/ai/state.ts +36 -10
- package/src/core/cells/__tests__/document-roundtrip.test.ts +16 -0
- package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +447 -0
- package/src/core/codemirror/copilot/__tests__/inline-completion.test.ts +395 -0
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +511 -2
- package/src/core/codemirror/copilot/__tests__/rpc-cancellation.test.ts +201 -0
- package/src/core/codemirror/copilot/extension.ts +22 -11
- package/src/core/codemirror/copilot/language-server.ts +109 -60
- package/src/core/codemirror/language/__tests__/sql.test.ts +4 -3
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +138 -26
- package/src/core/codemirror/language/embedded/embedded-python.ts +47 -13
- package/src/core/codemirror/language/embedded/latex.ts +20 -13
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +106 -5
- package/src/core/codemirror/lsp/notebook-lsp.ts +16 -2
- package/src/core/codemirror/readonly/__tests__/extension.test.ts +6 -6
- package/src/core/codemirror/readonly/extension.ts +2 -2
- package/src/core/config/pair.ts +0 -1
- package/src/core/datasets/__tests__/data-source-discovery.test.ts +20 -13
- package/src/core/edit-app.tsx +5 -1
- package/src/core/export/hooks.ts +2 -2
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/islands/bridge.ts +2 -2
- package/src/core/kernel/messages.ts +1 -1
- package/src/core/kernel/session.ts +9 -0
- package/src/core/network/__tests__/api.test.ts +114 -1
- package/src/core/network/__tests__/connection.test.ts +3 -3
- package/src/core/network/api.ts +3 -2
- package/src/core/network/connection-notice.ts +5 -5
- package/src/core/network/connection.ts +9 -9
- package/src/core/network/requests-lazy.ts +2 -2
- package/src/core/packages/__tests__/useSandboxController.test.tsx +2 -2
- package/src/core/packages/useSandboxController.ts +6 -6
- package/src/core/runtime/__tests__/adapter.test.ts +6 -6
- package/src/core/runtime/adapter.ts +7 -7
- package/src/core/runtime/config.ts +2 -2
- package/src/core/saving/filename.ts +2 -2
- package/src/core/saving/save-component.tsx +5 -5
- package/src/core/saving/useAutoSave.ts +2 -2
- package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
- package/src/core/wasm/bridge.ts +2 -2
- package/src/core/wasm/worker/bootstrap.ts +22 -3
- package/src/core/wasm/worker/types.ts +2 -2
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +30 -25
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +5 -5
- package/src/core/websocket/connection-utils.ts +21 -21
- package/src/core/websocket/types.ts +8 -9
- package/src/core/websocket/useMarimoKernelConnection.tsx +33 -22
- package/src/css/katex-css.test.ts +166 -0
- package/src/css/katex.min.css +175 -169
- package/src/hooks/__tests__/useEventListener.test.tsx +45 -1
- package/src/hooks/useEventListener.ts +6 -1
- package/src/mount.tsx +2 -2
- package/src/plugins/core/__test__/registerReactComponent.test.ts +55 -0
- package/src/plugins/core/registerReactComponent.tsx +3 -1
- package/src/plugins/impl/CheckboxPlugin.tsx +1 -1
- package/src/plugins/impl/DataTablePlugin.tsx +23 -2
- 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/MultiselectPlugin.tsx +1 -1
- package/src/plugins/impl/NumberPlugin.tsx +21 -4
- 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 +5 -1
- package/src/plugins/impl/SwitchPlugin.tsx +6 -1
- package/src/plugins/impl/TextAreaPlugin.tsx +23 -4
- package/src/plugins/impl/TextInputPlugin.tsx +10 -2
- package/src/plugins/impl/__test__/slider-labels.test.tsx +136 -0
- package/src/plugins/impl/__test__/text-labels.test.tsx +141 -0
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +159 -1
- 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/DataFramePlugin.tsx +15 -3
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +0 -22
- package/src/stories/cell.stories.tsx +2 -2
- package/src/stories/dataframe.stories.tsx +7 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +5 -5
- package/src/stories/progress-stages.stories.tsx +62 -0
- package/src/stories/runtime-existing.stories.tsx +44 -0
- package/src/stories/runtime-maintenance.stories.tsx +40 -0
- package/src/stories/runtime-pixi.stories.tsx +28 -0
- package/src/stories/{sandbox.stories.tsx → runtime-story.tsx} +191 -152
- package/src/stories/runtime-uv.stories.tsx +56 -0
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +0 -1
- package/dist/assets/worker-D7hWi02M.js +0 -109
- package/dist/classDiagram-ZZMXUADV-BwYhrSEX.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-HecM04TM.js +0 -30
- package/dist/dropdown-menu-BaqM0t4N.js +0 -4502
- package/dist/error-banner-DzAmP0AQ.js +0 -391
- package/dist/flowDiagram-HODETNUW-DgcjSdPV.js +0 -16
- package/dist/label-MNhNNoN6.js +0 -278
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +0 -2
- 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
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +0 -52
|
@@ -5,10 +5,12 @@ import type {
|
|
|
5
5
|
JSONRPCRequest,
|
|
6
6
|
Transport,
|
|
7
7
|
} from "@marimo-team/codemirror-languageserver";
|
|
8
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
8
|
+
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
9
|
+
import type { InlineCompletionParams } from "vscode-languageserver-protocol";
|
|
9
10
|
import { store } from "@/core/state/jotai";
|
|
11
|
+
import * as notebookCodes from "../getCodes";
|
|
10
12
|
import { CopilotLanguageServerClient } from "../language-server";
|
|
11
|
-
import { copilotStatusState } from "../state";
|
|
13
|
+
import { copilotStatusState, githubCopilotLoadingVersion } from "../state";
|
|
12
14
|
|
|
13
15
|
const copilotState = vi.hoisted(() => ({ isEnabled: true }));
|
|
14
16
|
|
|
@@ -382,6 +384,7 @@ describe("CopilotLanguageServerClient", () => {
|
|
|
382
384
|
contentChanges: [{ text: "value = 2" }],
|
|
383
385
|
});
|
|
384
386
|
|
|
387
|
+
await client.flushDocumentChanges();
|
|
385
388
|
expect(notifications(mockTransport, "textDocument/didChange")).toEqual([
|
|
386
389
|
{
|
|
387
390
|
jsonrpc: "2.0",
|
|
@@ -503,3 +506,509 @@ describe("CopilotLanguageServerClient", () => {
|
|
|
503
506
|
});
|
|
504
507
|
});
|
|
505
508
|
});
|
|
509
|
+
|
|
510
|
+
describe("Copilot completion requests", () => {
|
|
511
|
+
let transport: MockTransport;
|
|
512
|
+
let client: CopilotLanguageServerClient;
|
|
513
|
+
const params: InlineCompletionParams = {
|
|
514
|
+
textDocument: { uri: "file:///test.py" },
|
|
515
|
+
position: { line: 0, character: 1 },
|
|
516
|
+
context: { triggerKind: 2 },
|
|
517
|
+
};
|
|
518
|
+
const suggestion = [{ insertText: "result" }];
|
|
519
|
+
|
|
520
|
+
function requests() {
|
|
521
|
+
return transport.sent.filter(
|
|
522
|
+
(message): message is JSONRPCRequest =>
|
|
523
|
+
isRequest(message) &&
|
|
524
|
+
message.method === "textDocument/inlineCompletion",
|
|
525
|
+
);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
async function change(text: string) {
|
|
529
|
+
await client.textDocumentDidChange({
|
|
530
|
+
textDocument: { uri: params.textDocument.uri, version: 1 },
|
|
531
|
+
contentChanges: [{ text }],
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
async function tick() {
|
|
536
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
beforeEach(async () => {
|
|
540
|
+
vi.useFakeTimers();
|
|
541
|
+
copilotState.isEnabled = true;
|
|
542
|
+
store.set(githubCopilotLoadingVersion, null);
|
|
543
|
+
transport = new MockTransport();
|
|
544
|
+
client = new CopilotLanguageServerClient({
|
|
545
|
+
rootUri: "file:///test",
|
|
546
|
+
workspaceFolders: null,
|
|
547
|
+
transport,
|
|
548
|
+
});
|
|
549
|
+
await client.initializePromise;
|
|
550
|
+
await client.textDocumentDidOpen({
|
|
551
|
+
textDocument: {
|
|
552
|
+
uri: params.textDocument.uri,
|
|
553
|
+
languageId: "python",
|
|
554
|
+
version: 1,
|
|
555
|
+
text: "x",
|
|
556
|
+
},
|
|
557
|
+
});
|
|
558
|
+
transport.sent.length = 0;
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
afterEach(() => {
|
|
562
|
+
client.close();
|
|
563
|
+
const shutdown = transport.sent.find(
|
|
564
|
+
(message) => isRequest(message) && message.method === "shutdown",
|
|
565
|
+
);
|
|
566
|
+
if (shutdown && isRequest(shutdown)) {
|
|
567
|
+
transport.emit({ jsonrpc: "2.0", id: shutdown.id, result: null });
|
|
568
|
+
}
|
|
569
|
+
vi.useRealTimers();
|
|
570
|
+
vi.restoreAllMocks();
|
|
571
|
+
});
|
|
572
|
+
|
|
573
|
+
it("coalesces edits and sends the latest document before the completion", async () => {
|
|
574
|
+
for (const text of ["p", "pr", "pri", "prin", "print"]) {
|
|
575
|
+
await change(text);
|
|
576
|
+
}
|
|
577
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([]);
|
|
578
|
+
const response = client.getCompletion(params);
|
|
579
|
+
await tick();
|
|
580
|
+
expect(transport.sent).toEqual([
|
|
581
|
+
{
|
|
582
|
+
jsonrpc: "2.0",
|
|
583
|
+
method: "textDocument/didChange",
|
|
584
|
+
params: {
|
|
585
|
+
textDocument: { uri: params.textDocument.uri, version: 6 },
|
|
586
|
+
contentChanges: [{ text: "print" }],
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
jsonrpc: "2.0",
|
|
591
|
+
id: expect.any(Number),
|
|
592
|
+
method: "textDocument/inlineCompletion",
|
|
593
|
+
params: {
|
|
594
|
+
...params,
|
|
595
|
+
textDocument: { uri: params.textDocument.uri, version: 6 },
|
|
596
|
+
},
|
|
597
|
+
},
|
|
598
|
+
]);
|
|
599
|
+
transport.emit({
|
|
600
|
+
jsonrpc: "2.0",
|
|
601
|
+
id: requests()[0].id,
|
|
602
|
+
result: suggestion,
|
|
603
|
+
});
|
|
604
|
+
await expect(response).resolves.toEqual(suggestion);
|
|
605
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
606
|
+
expect(await client.flushDocumentChanges()).toBe("print");
|
|
607
|
+
expect(notifications(transport, "textDocument/didChange")).toHaveLength(1);
|
|
608
|
+
});
|
|
609
|
+
|
|
610
|
+
it.each(["x", ""])(
|
|
611
|
+
"does not upload an unchanged focused cell %j again",
|
|
612
|
+
async (text) => {
|
|
613
|
+
const assemble = vi.spyOn(notebookCodes, "getCodes");
|
|
614
|
+
await change(text);
|
|
615
|
+
expect(await client.flushDocumentChanges(text)).toBe(text);
|
|
616
|
+
expect(await client.flushDocumentChanges(text)).toBe(text);
|
|
617
|
+
expect(await client.flushDocumentChanges(text)).toBe(text);
|
|
618
|
+
expect(assemble).toHaveBeenCalledTimes(3);
|
|
619
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([
|
|
620
|
+
{
|
|
621
|
+
jsonrpc: "2.0",
|
|
622
|
+
method: "textDocument/didChange",
|
|
623
|
+
params: {
|
|
624
|
+
textDocument: { uri: params.textDocument.uri, version: 2 },
|
|
625
|
+
contentChanges: [{ text }],
|
|
626
|
+
},
|
|
627
|
+
},
|
|
628
|
+
]);
|
|
629
|
+
|
|
630
|
+
await change("next");
|
|
631
|
+
await client.flushDocumentChanges("next");
|
|
632
|
+
expect(
|
|
633
|
+
notifications(transport, "textDocument/didChange")[1].params,
|
|
634
|
+
).toEqual({
|
|
635
|
+
textDocument: { uri: params.textDocument.uri, version: 3 },
|
|
636
|
+
contentChanges: [{ text: "next" }],
|
|
637
|
+
});
|
|
638
|
+
},
|
|
639
|
+
);
|
|
640
|
+
|
|
641
|
+
it("does not upload a document that already matches didOpen", async () => {
|
|
642
|
+
expect(await client.flushDocumentChanges("x")).toBe("x");
|
|
643
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([]);
|
|
644
|
+
});
|
|
645
|
+
|
|
646
|
+
it("compares the assembled notebook and uploads changes in another cell", async () => {
|
|
647
|
+
let otherCell = "import math";
|
|
648
|
+
const assemble = vi
|
|
649
|
+
.spyOn(notebookCodes, "getCodes")
|
|
650
|
+
.mockImplementation((code) => `${otherCell}\n${code}`);
|
|
651
|
+
await change("x");
|
|
652
|
+
expect(await client.flushDocumentChanges("x")).toBe("import math\nx");
|
|
653
|
+
expect(await client.flushDocumentChanges("x")).toBe("import math\nx");
|
|
654
|
+
otherCell = "import random";
|
|
655
|
+
expect(await client.flushDocumentChanges("x")).toBe("import random\nx");
|
|
656
|
+
expect(await client.flushDocumentChanges("x")).toBe("import random\nx");
|
|
657
|
+
expect(assemble).toHaveBeenCalledTimes(4);
|
|
658
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([
|
|
659
|
+
{
|
|
660
|
+
jsonrpc: "2.0",
|
|
661
|
+
method: "textDocument/didChange",
|
|
662
|
+
params: {
|
|
663
|
+
textDocument: { uri: params.textDocument.uri, version: 2 },
|
|
664
|
+
contentChanges: [{ text: "import math\nx" }],
|
|
665
|
+
},
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
jsonrpc: "2.0",
|
|
669
|
+
method: "textDocument/didChange",
|
|
670
|
+
params: {
|
|
671
|
+
textDocument: { uri: params.textDocument.uri, version: 3 },
|
|
672
|
+
contentChanges: [{ text: "import random\nx" }],
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
]);
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
it("assembles once with the focused cell last when another cell has a pending edit", async () => {
|
|
679
|
+
const assemble = vi
|
|
680
|
+
.spyOn(notebookCodes, "getCodes")
|
|
681
|
+
.mockImplementation((code) => `other\n${code}`);
|
|
682
|
+
await change("other");
|
|
683
|
+
expect(await client.flushDocumentChanges("x")).toBe("other\nx");
|
|
684
|
+
expect(assemble).toHaveBeenCalledExactlyOnceWith("x");
|
|
685
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([
|
|
686
|
+
{
|
|
687
|
+
jsonrpc: "2.0",
|
|
688
|
+
method: "textDocument/didChange",
|
|
689
|
+
params: {
|
|
690
|
+
textDocument: { uri: params.textDocument.uri, version: 3 },
|
|
691
|
+
contentChanges: [{ text: "other\nx" }],
|
|
692
|
+
},
|
|
693
|
+
},
|
|
694
|
+
]);
|
|
695
|
+
});
|
|
696
|
+
|
|
697
|
+
it("retries a failed upload even when its text matches the last attempted document", async () => {
|
|
698
|
+
const assemble = vi.spyOn(notebookCodes, "getCodes");
|
|
699
|
+
transport.send.mockImplementationOnce(() => {
|
|
700
|
+
throw new Error("socket closed");
|
|
701
|
+
});
|
|
702
|
+
await expect(client.flushDocumentChanges("latest")).rejects.toThrow(
|
|
703
|
+
"socket closed",
|
|
704
|
+
);
|
|
705
|
+
expect(await client.flushDocumentChanges("latest")).toBe("latest");
|
|
706
|
+
expect(await client.flushDocumentChanges("latest")).toBe("latest");
|
|
707
|
+
expect(assemble).toHaveBeenCalledTimes(3);
|
|
708
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([
|
|
709
|
+
{
|
|
710
|
+
jsonrpc: "2.0",
|
|
711
|
+
method: "textDocument/didChange",
|
|
712
|
+
params: {
|
|
713
|
+
textDocument: { uri: params.textDocument.uri, version: 2 },
|
|
714
|
+
contentChanges: [{ text: "latest" }],
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
]);
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
it("cancels a rapid request instead of giving the next caller its promise", async () => {
|
|
721
|
+
const first = client.getCompletion(params);
|
|
722
|
+
await tick();
|
|
723
|
+
const second = client.getCompletion({
|
|
724
|
+
...params,
|
|
725
|
+
position: { line: 0, character: 0 },
|
|
726
|
+
});
|
|
727
|
+
await tick();
|
|
728
|
+
expect(requests()).toHaveLength(2);
|
|
729
|
+
expect(notifications(transport, "$/cancelRequest")).toEqual([
|
|
730
|
+
{
|
|
731
|
+
jsonrpc: "2.0",
|
|
732
|
+
method: "$/cancelRequest",
|
|
733
|
+
params: { id: requests()[0].id },
|
|
734
|
+
},
|
|
735
|
+
]);
|
|
736
|
+
await expect(first).resolves.toBeNull();
|
|
737
|
+
// Both requests use the same version; old cleanup must not hide the new spinner.
|
|
738
|
+
expect(store.get(githubCopilotLoadingVersion)).toBe(1);
|
|
739
|
+
transport.emit({
|
|
740
|
+
jsonrpc: "2.0",
|
|
741
|
+
id: requests()[1].id,
|
|
742
|
+
result: suggestion,
|
|
743
|
+
});
|
|
744
|
+
await expect(second).resolves.toEqual(suggestion);
|
|
745
|
+
transport.emit({
|
|
746
|
+
jsonrpc: "2.0",
|
|
747
|
+
id: requests()[0].id,
|
|
748
|
+
result: [{ insertText: "stale" }],
|
|
749
|
+
});
|
|
750
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
751
|
+
});
|
|
752
|
+
|
|
753
|
+
it("suppresses a request superseded before it reaches the wire", async () => {
|
|
754
|
+
const first = client.getCompletion(params);
|
|
755
|
+
const second = client.getCompletion(params);
|
|
756
|
+
await tick();
|
|
757
|
+
expect(requests()).toHaveLength(1);
|
|
758
|
+
await expect(first).resolves.toBeNull();
|
|
759
|
+
transport.emit({
|
|
760
|
+
jsonrpc: "2.0",
|
|
761
|
+
id: requests()[0].id,
|
|
762
|
+
result: suggestion,
|
|
763
|
+
});
|
|
764
|
+
await expect(second).resolves.toEqual(suggestion);
|
|
765
|
+
});
|
|
766
|
+
|
|
767
|
+
it("aborts on an edit before any replacement completion is requested", async () => {
|
|
768
|
+
const response = client.getCompletion(params);
|
|
769
|
+
await tick();
|
|
770
|
+
await change("changed");
|
|
771
|
+
await expect(response).resolves.toBeNull();
|
|
772
|
+
expect(notifications(transport, "$/cancelRequest")).toHaveLength(1);
|
|
773
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([]);
|
|
774
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
it.each([false, true])(
|
|
778
|
+
"handles external cancellation (already sent: %s)",
|
|
779
|
+
async (sent) => {
|
|
780
|
+
const controller = new AbortController();
|
|
781
|
+
if (!sent) {
|
|
782
|
+
controller.abort();
|
|
783
|
+
}
|
|
784
|
+
const response = client.getCompletion(params, controller.signal);
|
|
785
|
+
if (sent) {
|
|
786
|
+
await tick();
|
|
787
|
+
controller.abort();
|
|
788
|
+
}
|
|
789
|
+
await expect(response).resolves.toBeNull();
|
|
790
|
+
expect(requests()).toHaveLength(sent ? 1 : 0);
|
|
791
|
+
expect(notifications(transport, "$/cancelRequest")).toHaveLength(
|
|
792
|
+
sent ? 1 : 0,
|
|
793
|
+
);
|
|
794
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
795
|
+
},
|
|
796
|
+
);
|
|
797
|
+
|
|
798
|
+
it.each([null, [], { items: [] }])(
|
|
799
|
+
"handles empty response %j",
|
|
800
|
+
async (result) => {
|
|
801
|
+
const response = client.getCompletion(params);
|
|
802
|
+
await tick();
|
|
803
|
+
transport.emit({ jsonrpc: "2.0", id: requests()[0].id, result });
|
|
804
|
+
await expect(response).resolves.toEqual(result);
|
|
805
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
806
|
+
},
|
|
807
|
+
);
|
|
808
|
+
|
|
809
|
+
it("fails quietly on a server error and allows a subsequent request", async () => {
|
|
810
|
+
const response = client.getCompletion(params);
|
|
811
|
+
await tick();
|
|
812
|
+
transport.emit({
|
|
813
|
+
jsonrpc: "2.0",
|
|
814
|
+
id: requests()[0].id,
|
|
815
|
+
error: { code: -32603, message: "unavailable" },
|
|
816
|
+
});
|
|
817
|
+
await expect(response).resolves.toBeNull();
|
|
818
|
+
const retry = client.getCompletion(params);
|
|
819
|
+
await tick();
|
|
820
|
+
transport.emit({
|
|
821
|
+
jsonrpc: "2.0",
|
|
822
|
+
id: requests()[1].id,
|
|
823
|
+
result: suggestion,
|
|
824
|
+
});
|
|
825
|
+
await expect(retry).resolves.toEqual(suggestion);
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
it("cancels a timed-out request and clears its loading state", async () => {
|
|
829
|
+
const response = client.getCompletion(params);
|
|
830
|
+
await vi.advanceTimersByTimeAsync(10_000);
|
|
831
|
+
await expect(response).resolves.toBeNull();
|
|
832
|
+
expect(notifications(transport, "$/cancelRequest")).toHaveLength(1);
|
|
833
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
834
|
+
});
|
|
835
|
+
|
|
836
|
+
it("does not send requests while disabled or display a response after disabling", async () => {
|
|
837
|
+
copilotState.isEnabled = false;
|
|
838
|
+
await expect(client.getCompletion(params)).resolves.toBeNull();
|
|
839
|
+
expect(requests()).toEqual([]);
|
|
840
|
+
copilotState.isEnabled = true;
|
|
841
|
+
const response = client.getCompletion(params);
|
|
842
|
+
await tick();
|
|
843
|
+
copilotState.isEnabled = false;
|
|
844
|
+
transport.emit({
|
|
845
|
+
jsonrpc: "2.0",
|
|
846
|
+
id: requests()[0].id,
|
|
847
|
+
result: suggestion,
|
|
848
|
+
});
|
|
849
|
+
await expect(response).resolves.toBeNull();
|
|
850
|
+
});
|
|
851
|
+
|
|
852
|
+
it("preserves pending edits after a failed document upload and retries them", async () => {
|
|
853
|
+
await change("latest");
|
|
854
|
+
transport.send.mockImplementationOnce(() => {
|
|
855
|
+
throw new Error("socket closed");
|
|
856
|
+
});
|
|
857
|
+
await expect(client.getCompletion(params)).resolves.toBeNull();
|
|
858
|
+
expect(requests()).toEqual([]);
|
|
859
|
+
const response = client.getCompletion(params);
|
|
860
|
+
await tick();
|
|
861
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([
|
|
862
|
+
{
|
|
863
|
+
jsonrpc: "2.0",
|
|
864
|
+
method: "textDocument/didChange",
|
|
865
|
+
params: {
|
|
866
|
+
textDocument: { uri: params.textDocument.uri, version: 2 },
|
|
867
|
+
contentChanges: [{ text: "latest" }],
|
|
868
|
+
},
|
|
869
|
+
},
|
|
870
|
+
]);
|
|
871
|
+
transport.emit({
|
|
872
|
+
jsonrpc: "2.0",
|
|
873
|
+
id: requests()[0].id,
|
|
874
|
+
result: suggestion,
|
|
875
|
+
});
|
|
876
|
+
await expect(response).resolves.toEqual(suggestion);
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
it.each(["success", "failure"])(
|
|
880
|
+
"cancels a request during a stalled reconnect before handshake %s",
|
|
881
|
+
async (outcome) => {
|
|
882
|
+
transport.send.mockImplementationOnce((message) => {
|
|
883
|
+
transport.sent.push(message);
|
|
884
|
+
});
|
|
885
|
+
const reconnect = client.reInitialize().then(
|
|
886
|
+
() => "ready",
|
|
887
|
+
(error: unknown) => error,
|
|
888
|
+
);
|
|
889
|
+
const initialize = transport.sent.find(
|
|
890
|
+
(message) => isRequest(message) && message.method === "initialize",
|
|
891
|
+
);
|
|
892
|
+
if (!initialize || !isRequest(initialize)) {
|
|
893
|
+
throw new Error("Expected initialize request");
|
|
894
|
+
}
|
|
895
|
+
const controller = new AbortController();
|
|
896
|
+
const remove = vi.spyOn(controller.signal, "removeEventListener");
|
|
897
|
+
const settled = vi.fn();
|
|
898
|
+
const response = client
|
|
899
|
+
.getCompletion(params, controller.signal)
|
|
900
|
+
.then(settled);
|
|
901
|
+
await tick();
|
|
902
|
+
expect(settled).not.toHaveBeenCalled();
|
|
903
|
+
expect(requests()).toEqual([]);
|
|
904
|
+
expect(store.get(githubCopilotLoadingVersion)).toBe(1);
|
|
905
|
+
controller.abort();
|
|
906
|
+
await tick();
|
|
907
|
+
// Assert before answering initialize so the handshake cannot hide a stuck abort.
|
|
908
|
+
expect(settled).toHaveBeenCalledExactlyOnceWith(null);
|
|
909
|
+
expect(remove).toHaveBeenCalledExactlyOnceWith(
|
|
910
|
+
"abort",
|
|
911
|
+
expect.any(Function),
|
|
912
|
+
);
|
|
913
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
914
|
+
expect(notifications(transport, "$/cancelRequest")).toEqual([]);
|
|
915
|
+
transport.emit(
|
|
916
|
+
outcome === "success"
|
|
917
|
+
? {
|
|
918
|
+
jsonrpc: "2.0",
|
|
919
|
+
id: initialize.id,
|
|
920
|
+
result: { capabilities: {} },
|
|
921
|
+
}
|
|
922
|
+
: {
|
|
923
|
+
jsonrpc: "2.0",
|
|
924
|
+
id: initialize.id,
|
|
925
|
+
error: { code: -32603, message: "handshake failed" },
|
|
926
|
+
},
|
|
927
|
+
);
|
|
928
|
+
const handshakeError = expect.objectContaining({
|
|
929
|
+
message: "handshake failed",
|
|
930
|
+
});
|
|
931
|
+
await expect(reconnect).resolves.toEqual(
|
|
932
|
+
outcome === "success" ? "ready" : handshakeError,
|
|
933
|
+
);
|
|
934
|
+
expect(requests()).toEqual([]);
|
|
935
|
+
let retryResult: unknown;
|
|
936
|
+
if (outcome === "success") {
|
|
937
|
+
const retry = client.getCompletion(params);
|
|
938
|
+
await tick();
|
|
939
|
+
transport.emit({
|
|
940
|
+
jsonrpc: "2.0",
|
|
941
|
+
id: requests()[0].id,
|
|
942
|
+
result: suggestion,
|
|
943
|
+
});
|
|
944
|
+
retryResult = await retry;
|
|
945
|
+
}
|
|
946
|
+
expect(requests()).toHaveLength(outcome === "success" ? 1 : 0);
|
|
947
|
+
expect(retryResult).toEqual(
|
|
948
|
+
outcome === "success" ? suggestion : undefined,
|
|
949
|
+
);
|
|
950
|
+
await response;
|
|
951
|
+
expect(settled).toHaveBeenCalledTimes(1);
|
|
952
|
+
},
|
|
953
|
+
);
|
|
954
|
+
|
|
955
|
+
it("replays the most recent unsent edit on reconnect", async () => {
|
|
956
|
+
await change("first");
|
|
957
|
+
await change("latest");
|
|
958
|
+
await client.reInitialize();
|
|
959
|
+
expect(notifications(transport, "textDocument/didOpen")).toEqual([
|
|
960
|
+
{
|
|
961
|
+
jsonrpc: "2.0",
|
|
962
|
+
method: "textDocument/didOpen",
|
|
963
|
+
params: {
|
|
964
|
+
textDocument: {
|
|
965
|
+
uri: params.textDocument.uri,
|
|
966
|
+
languageId: "python",
|
|
967
|
+
version: 3,
|
|
968
|
+
text: "latest",
|
|
969
|
+
},
|
|
970
|
+
},
|
|
971
|
+
},
|
|
972
|
+
]);
|
|
973
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([]);
|
|
974
|
+
});
|
|
975
|
+
|
|
976
|
+
it("cancels requests and drops pending changes when the final editor closes", async () => {
|
|
977
|
+
const response = client.getCompletion(params);
|
|
978
|
+
await tick();
|
|
979
|
+
await client.textDocumentDidClose({ textDocument: params.textDocument });
|
|
980
|
+
await expect(response).resolves.toBeNull();
|
|
981
|
+
await change("unsent");
|
|
982
|
+
await client.textDocumentDidClose({ textDocument: params.textDocument });
|
|
983
|
+
await client.flushDocumentChanges();
|
|
984
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([]);
|
|
985
|
+
});
|
|
986
|
+
it("does not request completions for a closed document", async () => {
|
|
987
|
+
await client.textDocumentDidClose({ textDocument: params.textDocument });
|
|
988
|
+
await expect(client.getCompletion(params)).resolves.toBeNull();
|
|
989
|
+
expect(requests()).toEqual([]);
|
|
990
|
+
expect(store.get(githubCopilotLoadingVersion)).toBeNull();
|
|
991
|
+
});
|
|
992
|
+
|
|
993
|
+
it("keeps a newer edit when an earlier upload fails", async () => {
|
|
994
|
+
await change("old");
|
|
995
|
+
transport.send.mockImplementationOnce(() => {
|
|
996
|
+
void change("new");
|
|
997
|
+
throw new Error("send failed");
|
|
998
|
+
});
|
|
999
|
+
await expect(client.flushDocumentChanges("old")).rejects.toThrow(
|
|
1000
|
+
"send failed",
|
|
1001
|
+
);
|
|
1002
|
+
expect(await client.flushDocumentChanges("new")).toBe("new");
|
|
1003
|
+
expect(notifications(transport, "textDocument/didChange")).toEqual([
|
|
1004
|
+
{
|
|
1005
|
+
jsonrpc: "2.0",
|
|
1006
|
+
method: "textDocument/didChange",
|
|
1007
|
+
params: {
|
|
1008
|
+
textDocument: { uri: params.textDocument.uri, version: 3 },
|
|
1009
|
+
contentChanges: [{ text: "new" }],
|
|
1010
|
+
},
|
|
1011
|
+
},
|
|
1012
|
+
]);
|
|
1013
|
+
});
|
|
1014
|
+
});
|