@marimo-team/islands 0.23.15-dev5 → 0.23.15-dev53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-CU4fZJzG.js → ConnectedDataExplorerComponent-DMcymmpc.js} +85 -84
- package/dist/{ErrorBoundary-DE6tzZf-.js → ErrorBoundary-DXlxsrTF.js} +3 -3
- package/dist/{ImageComparisonComponent-CHrI72em.js → ImageComparisonComponent-C3y7L3eJ.js} +173 -129
- package/dist/{any-language-editor-DN1R-1KZ.js → any-language-editor-BfTj3PPF.js} +20 -20
- package/dist/apl-e1B5LPEL.js +4 -0
- package/dist/{arc-DfkSnvZm.js → arc-CTIpFoOn.js} +2 -2
- package/dist/architecture-7HQA4BMR-DHUrQjL4.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-CT2SuxNw.js → architectureDiagram-VXUJARFQ-B3jN8fkV.js} +19 -19
- package/dist/asciiarmor-B-gwgesP.js +4 -0
- package/dist/asn1-DF2ckRB4.js +4 -0
- package/dist/assets/__vite-browser-external-CjNAy01L.js +1 -0
- package/dist/assets/worker-B3XPCb6y.js +98 -0
- package/dist/{blockDiagram-VD42YOAC-Dy7hlFla.js → blockDiagram-VD42YOAC-Dq_8lAbz.js} +12 -12
- package/dist/brainfuck-4G-7_gq_.js +4 -0
- package/dist/{button-BacYv-bE.js → button-BcSml68y.js} +12 -65
- package/dist/{c4Diagram-YG6GDRKO-BXlAmZ8Z.js → c4Diagram-YG6GDRKO-BPzX9a9A.js} +6 -6
- package/dist/{capabilities-D_4LYhSU.js → capabilities-BYLFYTYv.js} +2 -2
- package/dist/{channel-D_PHgcig.js → channel-D_qwSlm9.js} +1 -1
- package/dist/{chat-ui-DinOvbWu.js → chat-ui-CYGIiYqI.js} +3115 -3114
- package/dist/{check-C9OoNtR4.js → check-Cs-KV5XY.js} +1 -1
- package/dist/{chunk-4BX2VUAB-CzXltWHN.js → chunk-4BX2VUAB-iU5lQTDI.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-D9nGEHV8.js → chunk-4F5CHEZ2-VlodlEGo.js} +1 -1
- package/dist/{chunk-55IACEB6-B-1mjMMC.js → chunk-55IACEB6-7h71GwyW.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BbqSm5gU.js → chunk-5FQGJX7Z-B9WoXK1R.js} +3 -3
- package/dist/{chunk-ABZYJK2D-Dz0-H2B5.js → chunk-ABZYJK2D-CDSMdLBr.js} +3 -3
- package/dist/{chunk-ATLVNIR6-o0Z5MZLd.js → chunk-ATLVNIR6-BAW0e_d_.js} +2 -2
- package/dist/{chunk-B2363JML-KEJpLGGP.js → chunk-B2363JML-zL3VngtH.js} +1 -1
- package/dist/{chunk-B4BG7PRW-BL98U9B4.js → chunk-B4BG7PRW-CfEI05WL.js} +7 -7
- package/dist/{chunk-CVBHYZKI-B_c5YBcW.js → chunk-CVBHYZKI-CwazXVlJ.js} +1 -1
- package/dist/{chunk-DI55MBZ5-Dwkn0LWm.js → chunk-DI55MBZ5-CZS7hhjV.js} +6 -6
- package/dist/{chunk-EXTU4WIE-9sNjmQrB.js → chunk-EXTU4WIE-DHwKB8ls.js} +2 -2
- package/dist/{chunk-FMBD7UC4-Ie8M9q0W.js → chunk-FMBD7UC4-quJmebXa.js} +1 -1
- package/dist/{chunk-FRFDVMJY-DzQqMWrl.js → chunk-FRFDVMJY-BHBqN-vD.js} +1 -1
- package/dist/{chunk-HN2XXSSU-E3n-Ys7Z.js → chunk-HN2XXSSU-Bv0QkeMr.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-C32Y7Epf.js → chunk-JA3XYJ7Z-Cy80gDpz.js} +3 -3
- package/dist/{chunk-JZLCHNYA-C6ftyVMN.js → chunk-JZLCHNYA-yfXq27Zq.js} +6 -6
- package/dist/{chunk-MI3HLSF2-CUYEasXO.js → chunk-MI3HLSF2-HGWI-8Pg.js} +1 -1
- package/dist/{chunk-N4CR4FBY-DUhGZhZs.js → chunk-N4CR4FBY-C9D3Wsot.js} +7 -7
- package/dist/{chunk-PL6DKKU2-D7km-08O.js → chunk-PL6DKKU2-CAHKc95s.js} +1 -1
- package/dist/{chunk-QN33PNHL-0K6SDYn3.js → chunk-QN33PNHL-Bh2YDyg7.js} +2 -2
- package/dist/{chunk-QXUST7PY-DMhsRpYK.js → chunk-QXUST7PY-kDpsCDoY.js} +10 -10
- package/dist/{chunk-QZHKN3VN-DRjXVwuJ.js → chunk-QZHKN3VN-Dym5BS7y.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-oAe3dEbO.js → chunk-S3R3BYOJ-DkY8Kz3y.js} +4 -4
- package/dist/{chunk-SJTYNZTY-BkJrPRFC.js → chunk-SJTYNZTY-DnXoKWpW.js} +1 -1
- package/dist/{chunk-TCCFYFTB-D58KeXnC.js → chunk-TCCFYFTB-DPWJa9zL.js} +1 -1
- package/dist/{chunk-TQ3KTPDO-D_yA_wAb.js → chunk-TQ3KTPDO-CsDx6v37.js} +1 -1
- package/dist/{chunk-TZMSLE5B-yBKS_DQU.js → chunk-TZMSLE5B-CMZoW3vd.js} +3 -3
- package/dist/{chunk-UMXZTB3W-D7uwvNjd.js → chunk-UMXZTB3W-D1uHz8MN.js} +1 -1
- package/dist/classDiagram-2ON5EDUG-b2d3ZqfR.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-RvnJbJ5M.js +30 -0
- package/dist/{clike-DTxNUn7l.js → clike-7lgyEYRk.js} +1 -1
- package/dist/clojure-CUybM11R.js +4 -0
- package/dist/cmake-BPjGcuDL.js +4 -0
- package/dist/cobol-BETk_nb6.js +4 -0
- package/dist/{code-block-37QAKDTI-O6IH6wAi.js → code-block-37QAKDTI-MSxEjskJ.js} +1 -1
- package/dist/{code-visibility-DBuB5MVY.js → code-visibility-Ddr-Cesu.js} +1553 -1470
- package/dist/coffeescript-CManZxXL.js +4 -0
- package/dist/commonlisp-DWkn7GW8.js +4 -0
- package/dist/{copy-COam1EG7.js → copy-Cs3yt6Vt.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-kjoZoid4.js → cose-bilkent-S5V4N54A-BYj0aL7z.js} +2 -2
- package/dist/crystal-CCbg5EUH.js +4 -0
- package/dist/css-By8eo-XS.js +4 -0
- package/dist/cypher-DwfHg3nP.js +4 -0
- package/dist/d-Brs1wNbw.js +4 -0
- package/dist/{dagre-6UL2VRFP-J0JKgwOt.js → dagre-6UL2VRFP--ruFWg_S.js} +11 -11
- package/dist/{data-grid-overlay-editor-C6lxUJp-.js → data-grid-overlay-editor-BWRG2b_o.js} +2 -2
- package/dist/{constants-T20xxyNf.js → debounce-BOD3DbfP.js} +1 -24
- package/dist/{diagram-PSM6KHXK-DYgJuNk9.js → diagram-PSM6KHXK-CGakapLj.js} +22 -22
- package/dist/{diagram-QEK2KX5R-CKdBR2sb.js → diagram-QEK2KX5R-CtqD8u_P.js} +17 -17
- package/dist/{diagram-S2PKOQOG-Dpi7mo5W.js → diagram-S2PKOQOG-BS1wa35J.js} +17 -17
- package/dist/diff-DJIRmJ1g.js +4 -0
- package/dist/{dist-Dv_Y15yk.js → dist-3MT9i_N5.js} +2 -2
- package/dist/{dist-CoXAujgg.js → dist-4-bJUNMb.js} +3 -3
- package/dist/{dist-DPrYzMY0.js → dist-9yiSURLw.js} +2 -2
- package/dist/dist-9zfbSqew.js +8 -0
- package/dist/{dist-GZXUmt0b.js → dist-B1k1NmGB.js} +1 -1
- package/dist/{dist-abid3KgM.js → dist-B69xyr_D.js} +1 -1
- package/dist/{dist--2Bqjvs0.js → dist-B96tMAst.js} +2 -2
- package/dist/{dist-t9Kf7xqC.js → dist-BFgLBSJb.js} +1 -1
- package/dist/{dist-DyyjKEYf.js → dist-BGLXXYL4.js} +1 -1
- package/dist/{dist-Bf7SHuNp.js → dist-BGj6VvC-.js} +4 -4
- package/dist/{dist-Bk75fBZA.js → dist-BGtkYshf.js} +1 -1
- package/dist/{dist-CpxNdDkw.js → dist-BIdzGb3O.js} +1 -1
- package/dist/dist-BZ_VEpg8.js +8 -0
- package/dist/{dist-7QfXoMdB.js → dist-BdYVjH1C.js} +1 -1
- package/dist/{dist-D8CDTVgf.js → dist-BiIoKp92.js} +2 -2
- package/dist/dist-Bow9AUXt.js +5 -0
- package/dist/{dist-BSAt6RhH.js → dist-BvCrjp81.js} +2 -2
- package/dist/{dist-DgGbNavJ.js → dist-C-RLuUaE.js} +1 -1
- package/dist/dist-C8odMDp5.js +8 -0
- package/dist/{dist-BY018Paw.js → dist-CLBjD8zw.js} +1 -1
- package/dist/dist-CLgjZx38.js +5 -0
- package/dist/{dist-C_Y3oV3C.js → dist-CNXNPADS.js} +1 -1
- package/dist/{dist-Du8WkPuU.js → dist-CV79CsQ0.js} +2 -2
- package/dist/dist-CnMOJtGP.js +5 -0
- package/dist/dist-D-5m1nDT.js +5 -0
- package/dist/dist-D8AXqiCV.js +5 -0
- package/dist/{dist-LTU8Hdvn.js → dist-DBN2w27P.js} +2 -2
- package/dist/{dist-DL6N_q-A.js → dist-DMuf8sZd.js} +1 -1
- package/dist/{dist-M9Vag9Y0.js → dist-DPH6RMhL.js} +1 -1
- package/dist/{dist-CcWX6tmx.js → dist-DgZczohI.js} +1 -1
- package/dist/dist-DszXOVSb.js +5 -0
- package/dist/dist-GW0m0q65.js +8 -0
- package/dist/{dist-Bf9f8MuT.js → dist-SXNmlE8A.js} +1 -1
- package/dist/{dist-CxJDU6Bh.js → dist-e29IFSI0.js} +3 -3
- package/dist/{dist-BaoDKvdy.js → dist-kcg3gjx6.js} +1 -1
- package/dist/{dist-BR_gyG9L.js → dist-tJic1rC-.js} +1 -1
- package/dist/{dockerfile-twL37N91.js → dockerfile-B82Pkz_V.js} +1 -1
- package/dist/dtd-Dyiazv4N.js +4 -0
- package/dist/dylan-D8Fcw7NA.js +4 -0
- package/dist/ecl-CjKp8Vii.js +4 -0
- package/dist/eiffel-K9ViOX5r.js +4 -0
- package/dist/elm-B5NVtRco.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-BU-m41EQ.js → erDiagram-Q2GNP2WA-DmtIJBsT.js} +15 -15
- package/dist/erlang-BnLzgk7R.js +4 -0
- package/dist/{error-banner-DFPfz_Qf.js → error-banner-DR7o3CbX.js} +68 -68
- package/dist/{esm-M837UxV5.js → esm-BxhNWHqh.js} +2 -2
- package/dist/{esm-ga2Bf3O2.js → esm-D6_uCZ4z.js} +104 -104
- package/dist/{extends-9MVIxxRo.js → extends-B88Yrunj.js} +4 -4
- package/dist/{factor-CajWS6mS.js → factor-Bq2mGIHt.js} +1 -1
- package/dist/factor-C7f9Jz5R.js +4 -0
- package/dist/{flowDiagram-NV44I4VS-CRoXKjGq.js → flowDiagram-NV44I4VS-DZsgBUcQ.js} +17 -17
- package/dist/{formats-Dzx4J_z1.js → formats-DSfNdJLH.js} +3 -3
- package/dist/forth-rGM8jLao.js +4 -0
- package/dist/fortran-B3acSe0i.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-7mq5f9cO.js → ganttDiagram-JELNMOA3-CgFhg_6K.js} +10 -10
- package/dist/gas-Bb1Vmv_N.js +4 -0
- package/dist/gherkin-C9Lyidgd.js +4 -0
- package/dist/{gitGraph-G5XIXVHT-DiniR35k.js → gitGraph-G5XIXVHT-BjTx0kww.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-Dfuokq6w.js → gitGraphDiagram-V2S2FVAM-DPInyn1F.js} +17 -17
- package/dist/{glide-data-editor-CjTu7ukN.js → glide-data-editor--CaN-f27.js} +13 -13
- package/dist/groovy-DQk6XcGH.js +4 -0
- package/dist/haskell-mV0Vw9gv.js +4 -0
- package/dist/haxe-DqxN89zH.js +5 -0
- package/dist/{html-to-image-_wGfk8V-.js → html-to-image-BoXPmWps.js} +2648 -2606
- package/dist/idl-ya8W561J.js +4 -0
- package/dist/{info-VBDWY6EO-DVZvGhkQ.js → info-VBDWY6EO-CA67FznA.js} +3 -3
- package/dist/infoDiagram-HS3SLOUP-ETAzKIiE.js +30 -0
- package/dist/{input-DtsN7xm-.js → input-DStQIuqD.js} +51 -51
- package/dist/javascript-CgqgptVu.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-8XYSU1GI.js → journeyDiagram-XKPGCS4Q-Bc94zDj1.js} +7 -7
- package/dist/julia-CFQ-HusI.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7--9pT9z1R.js → kanban-definition-3W4ZIXB7-DSk8Ebci.js} +12 -12
- package/dist/{katex-9-9QRhxz.js → katex-C4t-BmrK.js} +1 -1
- package/dist/{label-WfTSU8L4.js → label-DIk0QoFe.js} +2 -2
- package/dist/{line-C5s_12ee.js → line-C43FIPBd.js} +3 -3
- package/dist/{linear-B5-AFRiR.js → linear-H_vsH9ao.js} +4 -4
- package/dist/livescript-D__3TmDo.js +4 -0
- package/dist/{loader-Boph2xIS.js → loader-BUGT0KbC.js} +11 -22
- package/dist/lua-Bytcgj_W.js +4 -0
- package/dist/main.js +2217 -2116
- package/dist/mathematica-DJhvVKvl.js +4 -0
- package/dist/mbox-IGHPCjfR.js +4 -0
- package/dist/{mermaid-4DMBBIKO-Eg3D4FVz.js → mermaid-4DMBBIKO-FXbOziy9.js} +1 -1
- package/dist/{mermaid-BYqXy_NE.js → mermaid-CYkbfJHW.js} +47 -47
- package/dist/{mermaid-parser.core-C3XRsazI.js → mermaid-parser.core-DoivvxPd.js} +8 -8
- package/dist/{mhchem-yiCCuiEF.js → mhchem-EGhUZR1V.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-B-4mnfFG.js → mindmap-definition-VGOIOE7T-BYoCqVAJ.js} +14 -14
- package/dist/mirc-tcwvVugm.js +4 -0
- package/dist/mllike-Dx91i62r.js +6 -0
- package/dist/modelica-_SRt-yU5.js +4 -0
- package/dist/mscgen-GZrGS9gt.js +6 -0
- package/dist/mumps-Cv3ygyod.js +4 -0
- package/dist/nsis-BU7GeGbI.js +4 -0
- package/dist/{nsis-ClF3r5Tr.js → nsis-i9_sgigf.js} +1 -1
- package/dist/ntriples-CL-FCYXb.js +4 -0
- package/dist/{number-overlay-editor-BLJXvX9c.js → number-overlay-editor-Ck_mc_gT.js} +1 -1
- package/dist/objects-De59twF-.js +56 -0
- package/dist/octave-Dc6_3DIu.js +4 -0
- package/dist/{ordinal-ArJavP1Q.js → ordinal-Bkv2-veX.js} +1 -1
- package/dist/oz-DpUAJCXf.js +4 -0
- package/dist/{packet-DYOGHKS2-34raHOiB.js → packet-DYOGHKS2-Bkgofxf3.js} +3 -3
- package/dist/pascal-B17mncXs.js +4 -0
- package/dist/perl-BTpK97q9.js +4 -0
- package/dist/{pie-VRWISCQL-BaLlzZa3.js → pie-VRWISCQL-B1AMhN_7.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-Cr3cNpZY.js → pieDiagram-ADFJNKIX-BaAU79Vb.js} +22 -22
- package/dist/pig-CFb638Ap.js +4 -0
- package/dist/powershell-Cxo-_2A5.js +4 -0
- package/dist/{precisionRound-Tqb4mg-H.js → precisionRound-CnHPY_5v.js} +1 -1
- package/dist/{process-output-Mh4UrjwM.js → process-output-CbRRhwQo.js} +4 -4
- package/dist/properties-BPgT1xTB.js +4 -0
- package/dist/protobuf-BgHBaIIK.js +4 -0
- package/dist/pug-25-oS0SG.js +4 -0
- package/dist/{pug-B_rby2yb.js → pug-BhE2JRSg.js} +1 -1
- package/dist/puppet-DarIr20S.js +4 -0
- package/dist/python-BqmOsBsi.js +4 -0
- package/dist/q-D3QJCTup.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BuNL8Q93.js → quadrantDiagram-AYHSOK5B-BmTWJxzo.js} +5 -5
- package/dist/r-Cz_yBX4z.js +4 -0
- package/dist/{radar-ZZBFDIW7-Ci7bfoZa.js → radar-ZZBFDIW7-C2b7A32s.js} +3 -3
- package/dist/{react-vega-B0sAlDTL.js → react-vega-DfJOSnj6.js} +372 -372
- package/dist/{requirementDiagram-UZGBJVZJ-BG2lLUN1.js → requirementDiagram-UZGBJVZJ-Jrs04ua1.js} +14 -14
- package/dist/{reveal-component-DfOZrkd6.js → reveal-component-BY5sWajR.js} +628 -621
- package/dist/rpm-DGOtYwAI.js +5 -0
- package/dist/ruby-DBZu4rPc.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-DMal8sps.js → sankeyDiagram-TZEHDZUN-YJnhmG4N.js} +5 -5
- package/dist/sas-Dd1D9qTq.js +4 -0
- package/dist/scheme-BmDjvTHX.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-DT6Tk-Eo.js → sequenceDiagram-WL72ISMW-D30L51Bn.js} +8 -8
- package/dist/shell-BL8zFSaj.js +4 -0
- package/dist/sieve-BAx2WqUP.js +4 -0
- package/dist/smalltalk-CYRzF7VV.js +4 -0
- package/dist/sparql-YWaDRO4A.js +4 -0
- package/dist/{spec-Cz-Bj1JI.js → spec-CnaxwDqy.js} +4 -4
- package/dist/{src-Bf2iLOlr.js → src-DV3ha_nA.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-CB_lodq3.js → stateDiagram-FKZM4ZOC-C0nZuUP8.js} +17 -17
- package/dist/stateDiagram-v2-4FDKWEC3-BmovmS-G.js +29 -0
- package/dist/{step-CWipAYTY.js → step-BqHnkgWE.js} +1 -1
- package/dist/stex-B5O-env2.js +4 -0
- package/dist/{strings-Dq_j3Rxw.js → strings-BYAhZnQi.js} +354 -354
- package/dist/style.css +1 -1
- package/dist/stylus-lYsyLFc1.js +4 -0
- package/dist/swift-ClQz9z1n.js +4 -0
- package/dist/{swiper-component-5HoSsPi1.js → swiper-component-DE94711u.js} +4 -4
- package/dist/tcl-B3jhsfqY.js +4 -0
- package/dist/textile-Cb1Dw7Aq.js +4 -0
- package/dist/{time-CsmIF9YZ.js → time-Bb4A7I6a.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-NfSKRvH0.js → timeline-definition-IT6M3QCI-DEoIEWAl.js} +4 -4
- package/dist/{toDate-CWNNlFEX.js → toDate-B3IRfHhw.js} +16 -7
- package/dist/toml-nHZhetdO.js +4 -0
- package/dist/{tooltip-Czds6Qr8.js → tooltip-B-qh7UPB.js} +3 -3
- package/dist/{treemap-GDKQZRPO-Cl6OQh8D.js → treemap-GDKQZRPO-SDux0AV8.js} +3 -3
- package/dist/troff-DuJAGWKH.js +4 -0
- package/dist/ttcn-BxrcwP21.js +4 -0
- package/dist/ttcn-cfg-BAg_9dcc.js +4 -0
- package/dist/turtle-zCq949as.js +4 -0
- package/dist/{types-C2Ir191_.js → types-DQl7jVYK.js} +1 -1
- package/dist/use-vega-container-remeasure-DGNrIQSk.js +27 -0
- package/dist/{useAsyncData-KfHB8wQR.js → useAsyncData-CvO8WUy3.js} +1 -1
- package/dist/{useDateFormatter-CMnRuVmN.js → useDateFormatter-BSoGim-G.js} +2 -2
- package/dist/{useDeepCompareMemoize-nJMtxhm4.js → useDeepCompareMemoize-J3MKRdA4.js} +1 -1
- package/dist/{useIframeCapabilities-DWIYvDh7.js → useIframeCapabilities-POcFXHbw.js} +1 -1
- package/dist/{useLifecycle-DegSo0lV.js → useLifecycle-DqPxHgAN.js} +3 -3
- package/dist/{useTheme-6eZ3GOTS.js → useTheme-XMq9mNf_.js} +65 -29
- package/dist/vb-De5hElus.js +4 -0
- package/dist/vbscript-Cypcpv4F.js +4 -0
- package/dist/{vega-component-DzyyM9fc.js → vega-component-uL9ZaXcH.js} +225 -223
- package/dist/vega-embed-container-DgZMMVL3.js +22 -0
- package/dist/{vega-loader.browser-CZ-J8Py3.js → vega-loader.browser-IU8eTDwM.js} +98 -86
- package/dist/velocity-Di7l-yhe.js +4 -0
- package/dist/verilog-Bzi-S3g2.js +4 -0
- package/dist/vhdl-B0ZZITaW.js +4 -0
- package/dist/webidl-0sviiRcN.js +4 -0
- package/dist/xquery-B4qMVWaB.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BvwftqMA.js → xychartDiagram-PRI3JC2R-iwKXEnYZ.js} +13 -13
- package/dist/yacas-Jt25Fuv8.js +4 -0
- package/dist/z80-CrcbYzmp.js +4 -0
- package/dist/{zod-CijjQh4u.js → zod-D0yOqoGe.js} +26 -26
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +3 -0
- package/src/components/charts/lazy.tsx +3 -1
- package/src/components/charts/vega-embed-container.tsx +18 -0
- package/src/components/chat/__tests__/chat-utils.test.ts +244 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +121 -0
- package/src/components/chat/chat-panel.tsx +196 -67
- package/src/components/chat/chat-utils.ts +111 -2
- package/src/components/editor/RecoveryButton.tsx +2 -2
- package/src/components/editor/SortableCell.tsx +6 -2
- package/src/components/editor/__tests__/output-persistence.test.tsx +241 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +153 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +109 -0
- package/src/components/editor/actions/pair-with-agent-modal.tsx +20 -64
- package/src/components/editor/actions/useNotebookActions.tsx +8 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +14 -5
- package/src/components/editor/ai/ai-completion-editor.tsx +4 -1
- package/src/components/editor/cell/cell-context-menu.tsx +7 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +221 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +308 -77
- package/src/components/editor/chrome/panels/packages-panel.tsx +11 -1
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +105 -0
- package/src/components/editor/columns/cell-column.tsx +34 -4
- package/src/components/editor/columns/sortable-column.tsx +24 -4
- package/src/components/editor/file-tree/download.ts +46 -0
- package/src/components/editor/file-tree/file-explorer.tsx +3 -21
- package/src/components/editor/file-tree/file-viewer.tsx +4 -27
- package/src/components/editor/navigation/__tests__/navigation.test.ts +33 -0
- package/src/components/editor/navigation/navigation.ts +8 -1
- package/src/components/editor/notebook-cell.tsx +203 -106
- package/src/components/editor/renderers/__tests__/cells-renderer.test.tsx +66 -0
- package/src/components/editor/renderers/cell-array.tsx +26 -13
- package/src/components/editor/renderers/cells-renderer.tsx +8 -2
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +29 -0
- package/src/components/editor/renderers/slides-layout/types.ts +4 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -19
- package/src/components/slides/reveal-component.tsx +37 -17
- package/src/components/slides/slide-form.tsx +72 -0
- package/src/components/ui/toast.tsx +11 -3
- package/src/components/ui/toaster.tsx +65 -9
- package/src/core/ai/context/providers/error.ts +6 -158
- package/src/core/cells/__tests__/utils.test.ts +59 -0
- package/src/core/cells/utils.ts +51 -0
- package/src/core/codemirror/completion/__tests__/signature-hint.test.ts +97 -3
- package/src/core/codemirror/completion/signature-hint.ts +78 -11
- package/src/core/constants.ts +8 -0
- package/src/core/diagnostics/__tests__/issue-details.test.ts +173 -0
- package/src/core/diagnostics/issue-details.ts +139 -0
- package/src/core/errors/__tests__/error-entries.test.ts +25 -0
- package/src/core/errors/error-entries.ts +176 -0
- package/src/core/islands/__tests__/bridge.test.ts +341 -46
- package/src/core/islands/__tests__/main.test.ts +176 -0
- package/src/core/islands/__tests__/parse.test.ts +105 -0
- package/src/core/islands/bootstrap.ts +8 -3
- package/src/core/islands/bridge.ts +117 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +214 -0
- package/src/core/islands/components/web-components.tsx +76 -15
- package/src/core/islands/constants.ts +1 -0
- package/src/core/islands/main.ts +69 -3
- package/src/core/islands/parse.ts +70 -23
- package/src/core/islands/worker/__tests__/controller.test.ts +173 -0
- package/src/core/islands/worker/worker.tsx +145 -57
- package/src/core/network/__tests__/requests-lazy.test.ts +18 -0
- package/src/core/network/__tests__/requests-network.test.ts +7 -0
- package/src/core/network/requests-lazy.ts +13 -1
- package/src/core/network/requests-network.ts +3 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +3 -0
- package/src/core/runtime/__tests__/runtime.test.ts +64 -0
- package/src/core/runtime/runtime.ts +30 -10
- package/src/core/wasm/bridge.ts +8 -0
- package/src/core/wasm/worker/bootstrap.ts +113 -20
- package/src/core/wasm/worker/types.ts +2 -0
- package/src/css/app/Cell.css +10 -0
- package/src/hooks/__tests__/useHotkey.test.tsx +88 -0
- package/src/hooks/useHotkey.ts +29 -4
- package/src/plugins/impl/anywidget/__tests__/host.test.ts +6 -9
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +3 -1
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +32 -61
- package/src/plugins/impl/anywidget/model-proxy.ts +0 -13
- package/src/plugins/impl/anywidget/runtime.ts +1 -0
- package/src/plugins/impl/anywidget/widget-binding.ts +8 -34
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +53 -2
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +71 -0
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +71 -3
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +1 -0
- package/src/plugins/impl/vega/__tests__/use-vega-container-remeasure.test.ts +102 -0
- package/src/plugins/impl/vega/use-vega-container-remeasure.ts +39 -0
- package/src/plugins/impl/vega/vega-component.tsx +5 -4
- package/src/theme/__tests__/useTheme.test.ts +68 -0
- package/src/theme/useTheme.ts +16 -1
- package/dist/apl-Bdc61P1y.js +0 -4
- package/dist/architecture-7HQA4BMR-Kyc44TmC.js +0 -6
- package/dist/asciiarmor-DVRHDGzT.js +0 -4
- package/dist/asn1-BmuKfkfu.js +0 -4
- package/dist/assets/__vite-browser-external-BQCLNwri.js +0 -1
- package/dist/assets/worker-DAWRHcPq.js +0 -73
- package/dist/brainfuck-DPrRpyTV.js +0 -4
- package/dist/classDiagram-2ON5EDUG-QjoAcuFE.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-bUCv4gu2.js +0 -30
- package/dist/clojure-DEttQW5T.js +0 -4
- package/dist/cmake-jNlx_DaM.js +0 -4
- package/dist/cobol-BvvIm5MJ.js +0 -4
- package/dist/coffeescript-DTpBMyFU.js +0 -4
- package/dist/commonlisp-BmmUG8jb.js +0 -4
- package/dist/crystal-BxyqmEWC.js +0 -4
- package/dist/css-BGoCtuG3.js +0 -4
- package/dist/cypher-BmCbdl3u.js +0 -4
- package/dist/d-CFrlbjZt.js +0 -4
- package/dist/diff-D6XwL6P8.js +0 -4
- package/dist/dist-BEXXyZig.js +0 -5
- package/dist/dist-BYj57OV4.js +0 -5
- package/dist/dist-BlSvQzNr.js +0 -5
- package/dist/dist-CCBlxAgS.js +0 -8
- package/dist/dist-CIDTVIUf.js +0 -5
- package/dist/dist-CqQyhAM8.js +0 -8
- package/dist/dist-CwRu2Xzh.js +0 -5
- package/dist/dist-D8DNB0nO.js +0 -8
- package/dist/dist-DOFbNV_b.js +0 -8
- package/dist/dist-cdmMjgsn.js +0 -5
- package/dist/dtd-Bw0lRN0-.js +0 -4
- package/dist/dylan-B55eBHTt.js +0 -4
- package/dist/ecl-C8G4p0wn.js +0 -4
- package/dist/eiffel-BmH46VJl.js +0 -4
- package/dist/elm-DhzeFqkl.js +0 -4
- package/dist/erlang-CY-wdlsU.js +0 -4
- package/dist/factor-DWkgl0xw.js +0 -4
- package/dist/forth-Cij_ie2t.js +0 -4
- package/dist/fortran-Br3X9cfm.js +0 -4
- package/dist/gas-DYsGcMN2.js +0 -4
- package/dist/gherkin-eVgXQ0fQ.js +0 -4
- package/dist/groovy-_NFHIXG7.js +0 -4
- package/dist/haskell-D6xNG_bH.js +0 -4
- package/dist/haxe-sU_rzAwn.js +0 -5
- package/dist/idl-Ds_VbrUx.js +0 -4
- package/dist/infoDiagram-HS3SLOUP-CEnzWruK.js +0 -30
- package/dist/javascript-CztfIl0i.js +0 -4
- package/dist/julia-DDv40QMV.js +0 -4
- package/dist/livescript-BEOngLLc.js +0 -4
- package/dist/lua-9-7BhQ4Y.js +0 -4
- package/dist/mathematica-DDa0Pfxm.js +0 -4
- package/dist/mbox-iO03mmoE.js +0 -4
- package/dist/mirc-C9z5LT4X.js +0 -4
- package/dist/mllike-jGJbdm_C.js +0 -6
- package/dist/modelica-DzF7oIEL.js +0 -4
- package/dist/mscgen-DB-u125o.js +0 -6
- package/dist/mumps-CRTFHhzh.js +0 -4
- package/dist/nsis-C4NPTuox.js +0 -4
- package/dist/ntriples-BCOoGph1.js +0 -4
- package/dist/octave-DTwNlazz.js +0 -4
- package/dist/oz-DD38AzSz.js +0 -4
- package/dist/pascal-BohSp9jV.js +0 -4
- package/dist/perl-f5OutoPM.js +0 -4
- package/dist/pig-Dv7wSmHb.js +0 -4
- package/dist/powershell-rYgjKB39.js +0 -4
- package/dist/properties-BFUNLRDN.js +0 -4
- package/dist/protobuf-B9QJQPPv.js +0 -4
- package/dist/pug-DzvWpaMC.js +0 -4
- package/dist/puppet-B_K-n_xK.js +0 -4
- package/dist/python-CAiFcaA2.js +0 -4
- package/dist/q-cLeFIBLK.js +0 -4
- package/dist/r-04Y-Wco3.js +0 -4
- package/dist/react-vega-B6ncY2Tp.js +0 -9
- package/dist/rpm-FUdrIia9.js +0 -5
- package/dist/ruby-DMjFXuEW.js +0 -4
- package/dist/sas-DzHZxjXK.js +0 -4
- package/dist/scheme-DxHd_Rb9.js +0 -4
- package/dist/shell-C8Kwypgf.js +0 -4
- package/dist/sieve-DdyqOKXZ.js +0 -4
- package/dist/smalltalk-pB7X1D9y.js +0 -4
- package/dist/sparql-NhBO6oOa.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-E0RGjKsm.js +0 -29
- package/dist/stex-KfRnSHzF.js +0 -4
- package/dist/stylus-SfWSnzPv.js +0 -4
- package/dist/swift-jRPdq2zR.js +0 -4
- package/dist/tcl-_hpTHGX3.js +0 -4
- package/dist/textile-C9h8slqH.js +0 -4
- package/dist/toml-DWvtinD4.js +0 -4
- package/dist/troff-Dwo_A0y7.js +0 -4
- package/dist/ttcn-V--CPFKq.js +0 -4
- package/dist/ttcn-cfg-CPSMchTG.js +0 -4
- package/dist/turtle-B4rPGBWu.js +0 -4
- package/dist/vb-DaMBBd4j.js +0 -4
- package/dist/vbscript-BMJQqcE2.js +0 -4
- package/dist/velocity-CGq2QRq2.js +0 -4
- package/dist/verilog-CUNo8F5u.js +0 -4
- package/dist/vhdl-CCzA0msW.js +0 -4
- package/dist/webidl-CqIMDIBL.js +0 -4
- package/dist/xquery-XC5Kbr-1.js +0 -4
- package/dist/yacas-CGOv7Dzy.js +0 -4
- package/dist/z80-CXhVmi-f.js +0 -4
- /package/dist/{Plot-CAYS29h9.js → Plot-YQOuVIei.js} +0 -0
- /package/dist/{apl-BCgCq9iM.js → apl-99A7dLQe.js} +0 -0
- /package/dist/{array-tvvEqPy7.js → array-O78LT16Y.js} +0 -0
- /package/dist/{asciiarmor-BtqU-KJQ.js → asciiarmor-DLEhpFDx.js} +0 -0
- /package/dist/{asn1-Dmb-dTMx.js → asn1-CMrcTsT4.js} +0 -0
- /package/dist/{asterisk-DaVJJDnV.js → asterisk-CqykImq7.js} +0 -0
- /package/dist/{brainfuck-C1HoZKlE.js → brainfuck-ChPt5yBe.js} +0 -0
- /package/dist/{chunk-DR5Q36YT-BflwErH1.js → chunk-DR5Q36YT-5Yp2GWwR.js} +0 -0
- /package/dist/{click-outside-container-BLPjMamz.js → click-outside-container-BSIeYt4y.js} +0 -0
- /package/dist/{clike-CdT0yHjt.js → clike-CE0fXfM_.js} +0 -0
- /package/dist/{clojure-CdyrCpUv.js → clojure-QkBEMU-g.js} +0 -0
- /package/dist/{cmake-BFlPxym7.js → cmake-CU1jX7Mo.js} +0 -0
- /package/dist/{cobol-CcJXewp8.js → cobol-DMOKzzky.js} +0 -0
- /package/dist/{coffeescript-DnKuIKRo.js → coffeescript-DjnjLyfk.js} +0 -0
- /package/dist/{colors-CQAOa8cK.js → colors-DmiH1bIH.js} +0 -0
- /package/dist/{common-keywords-FBrXPTcz.js → common-keywords-D3nPJNQP.js} +0 -0
- /package/dist/{commonlisp-B-kok83Z.js → commonlisp-CYd9iOSe.js} +0 -0
- /package/dist/{crystal-FYRYjI1I.js → crystal-Dy55yoYG.js} +0 -0
- /package/dist/{css-B45lc2V3.js → css-CNU8w3HJ.js} +0 -0
- /package/dist/{cypher-DZMLyVY_.js → cypher-q47DGzK7.js} +0 -0
- /package/dist/{cytoscape.esm-ayF70frT.js → cytoscape.esm-Dr8XzXWK.js} +0 -0
- /package/dist/{d-x-VVT4o9.js → d-jEkaLvxX.js} +0 -0
- /package/dist/{defaultLocale-u-3osm0P.js → defaultLocale-BpsHxBd7.js} +0 -0
- /package/dist/{defaultLocale-BoHTsDG6.js → defaultLocale-DoeErsX2.js} +0 -0
- /package/dist/{diff-Dxe2mpXk.js → diff-vb2-unFN.js} +0 -0
- /package/dist/{dist-D-W5ny5a.js → dist-95kpvRSY.js} +0 -0
- /package/dist/{dist-BzEzfugY.js → dist-B56Dml3A.js} +0 -0
- /package/dist/{dist-hT4QzYX-.js → dist-D3T8fCFo.js} +0 -0
- /package/dist/{dist-DZORgqKY.js → dist-DPdzbDlL.js} +0 -0
- /package/dist/{dist-A2846XWO.js → dist-Db1W16d-.js} +0 -0
- /package/dist/{dist-DZo4nSS0.js → dist-DijFs2Lk.js} +0 -0
- /package/dist/{dist-BGdYVvOu.js → dist-DsoKosxi.js} +0 -0
- /package/dist/{dist-Dax--nl9.js → dist-DvOfvWFi.js} +0 -0
- /package/dist/{dist-CIYBwstr.js → dist-Dx3eDsHX.js} +0 -0
- /package/dist/{dist-DMjWuVs8.js → dist-c6wTyIhD.js} +0 -0
- /package/dist/{dtd-C9VM_Wfu.js → dtd-C9kR-bXa.js} +0 -0
- /package/dist/{duckdb-keywords-CvJhR_Yd.js → duckdb-keywords-B6HYCMOT.js} +0 -0
- /package/dist/{dylan-DTSnEIFO.js → dylan-BLckrK-V.js} +0 -0
- /package/dist/{ebnf-2D4Ctp3y.js → ebnf-Cnp3L9jg.js} +0 -0
- /package/dist/{ecl-N04ptnRK.js → ecl-CEsf6XVg.js} +0 -0
- /package/dist/{eiffel-Dd8rpqr_.js → eiffel-2KGZNzx6.js} +0 -0
- /package/dist/{elm-GT2E866W.js → elm-D2s3K5wF.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-DzSb5hsH.js → emotion-is-prop-valid.esm-DdVSF4FD.js} +0 -0
- /package/dist/{erlang-Cf0Bp5pY.js → erlang-0PMFOndk.js} +0 -0
- /package/dist/{esm-BaaaPNGl.js → esm-CuQHjs36.js} +0 -0
- /package/dist/{fcl-Ccj8Z5Xd.js → fcl-D9nccAWI.js} +0 -0
- /package/dist/{forth-wd_XzGTg.js → forth-DG89iUsu.js} +0 -0
- /package/dist/{fortran-DcwUTZFe.js → fortran-ytKsAVvu.js} +0 -0
- /package/dist/{gas-DeALIER3.js → gas-Cg2Fm0N2.js} +0 -0
- /package/dist/{gherkin-CKTqaJNX.js → gherkin-B87FEnZ-.js} +0 -0
- /package/dist/{groovy-Bwdp_d8D.js → groovy-Dcs08AWD.js} +0 -0
- /package/dist/{haskell-DCdCcPLK.js → haskell-cwkOuhx6.js} +0 -0
- /package/dist/{haxe-DAyktQWJ.js → haxe-DWEo4q10.js} +0 -0
- /package/dist/{http-_DVAYWoR.js → http-B8jdG64J.js} +0 -0
- /package/dist/{idl-CBuZiRYu.js → idl-WWQwDcRV.js} +0 -0
- /package/dist/{init-uv0kkh4g.js → init-DNBbYZd_.js} +0 -0
- /package/dist/{javascript-DzigE11c.js → javascript-BeR74dxD.js} +0 -0
- /package/dist/{julia-PwfB-0Cm.js → julia-UlvCUYGL.js} +0 -0
- /package/dist/{katex-C_XRmjAP.js → katex-Bld7b-fk.js} +0 -0
- /package/dist/{livescript-BJLz1EbT.js → livescript-GPmFcmYV.js} +0 -0
- /package/dist/{lua-ZC-XC2jf.js → lua-DYoT_0zM.js} +0 -0
- /package/dist/{main-Tj_-QTyF.js → main-B1Jo_8pC.js} +0 -0
- /package/dist/{math-DFcdCCU8.js → math-CBNc2Ib0.js} +0 -0
- /package/dist/{mathematica-DCYMx6qB.js → mathematica-DSFIQlbG.js} +0 -0
- /package/dist/{mbox-OxMK_9XI.js → mbox-ej8lFMdL.js} +0 -0
- /package/dist/{micromark-factory-space-DF2w36zS.js → micromark-factory-space-CwHmg6iz.js} +0 -0
- /package/dist/{mirc-nJVyhA0H.js → mirc-CAdIdvHQ.js} +0 -0
- /package/dist/{mllike-DRO89bsU.js → mllike-CjTB1lHF.js} +0 -0
- /package/dist/{modelica-Don3E6ZD.js → modelica-BB68FYMa.js} +0 -0
- /package/dist/{mscgen-DJfqD3bN.js → mscgen-BkbzgGGI.js} +0 -0
- /package/dist/{mumps-SjGTvDYL.js → mumps-Cu-28E9F.js} +0 -0
- /package/dist/{nginx-DasThI7R.js → nginx-C1ofKPst.js} +0 -0
- /package/dist/{node-sql-parser-B8nBD36q.js → node-sql-parser-DLl_zNw0.js} +0 -0
- /package/dist/{ntriples-CNBKRl3I.js → ntriples-D9cQiZxZ.js} +0 -0
- /package/dist/{octave-DdeVHNlx.js → octave-BvtAnPX0.js} +0 -0
- /package/dist/{once-DPuqGUeo.js → once-B60G2fuJ.js} +0 -0
- /package/dist/{oz-CcKSoNvN.js → oz-COaVHk2E.js} +0 -0
- /package/dist/{pascal-6leftwNj.js → pascal-BFpqVD2x.js} +0 -0
- /package/dist/{path-BGaWgPKg.js → path-DwWbhZFI.js} +0 -0
- /package/dist/{perl-BhJIwWzN.js → perl-DaiORxHP.js} +0 -0
- /package/dist/{pig-r-xDHqRf.js → pig-DFzRhmsF.js} +0 -0
- /package/dist/{powershell-D-BELeNi.js → powershell-BG2LQNKN.js} +0 -0
- /package/dist/{properties-CnuDhbll.js → properties-CqJJR5QY.js} +0 -0
- /package/dist/{protobuf-CO8RBhvX.js → protobuf-WwDYV1yY.js} +0 -0
- /package/dist/{puppet-NmXHjLy8.js → puppet-QNY3w_uN.js} +0 -0
- /package/dist/{purify.es-H92eMd9-.js → purify.es-C-fIGuQm.js} +0 -0
- /package/dist/{python-DAQXi720.js → python-4QrQ3Ugi.js} +0 -0
- /package/dist/{q-DlikXfV0.js → q-DhwXuxE2.js} +0 -0
- /package/dist/{r-CuohilwT.js → r-Df-nkR25.js} +0 -0
- /package/dist/{range-C-rmrM1O.js → range-BOiA8qqU.js} +0 -0
- /package/dist/{rpm-0Pjwp0Pb.js → rpm-Cokue07s.js} +0 -0
- /package/dist/{ruby-Dq8NJTDG.js → ruby-DrYcL3qF.js} +0 -0
- /package/dist/{sas-CuwonyVP.js → sas-CoiPirA5.js} +0 -0
- /package/dist/{scheme-CYU-RRIf.js → scheme-CwFLjzHv.js} +0 -0
- /package/dist/{semaphore-CNDGTzkX.js → semaphore-C8rmHdhj.js} +0 -0
- /package/dist/{shell-COPmX2qE.js → shell-BFV-R24I.js} +0 -0
- /package/dist/{sieve-B_3zyLne.js → sieve-CxwXF5T9.js} +0 -0
- /package/dist/{simple-mode-DSBniks8.js → simple-mode-DTaJtKPt.js} +0 -0
- /package/dist/{smalltalk-DRft7iPv.js → smalltalk-QivVOCtX.js} +0 -0
- /package/dist/{solr-RZ9uTl59.js → solr-BLvysN-c.js} +0 -0
- /package/dist/{sparql-CN6qj55H.js → sparql-nKsFk8j7.js} +0 -0
- /package/dist/{spreadsheet-BNNUNXA2.js → spreadsheet-BWc8C2FT.js} +0 -0
- /package/dist/{sql-B4x8IkwU.js → sql-CWfUjlV1.js} +0 -0
- /package/dist/{stex-BIsgBmK4.js → stex-DtMAhV4-.js} +0 -0
- /package/dist/{stylus-Bn_ZjOQ3.js → stylus-BLKQAycn.js} +0 -0
- /package/dist/{swift-BLUJhMbz.js → swift-CJoKqiKj.js} +0 -0
- /package/dist/{tcl-C86fxecl.js → tcl-YTeYFNUc.js} +0 -0
- /package/dist/{textile-DmHh2rsK.js → textile-C6rKQqMQ.js} +0 -0
- /package/dist/{tiddlywiki-DI0mF2WJ.js → tiddlywiki-ZXwTHGNT.js} +0 -0
- /package/dist/{tiki-2HU6XLLn.js → tiki-C628O_u4.js} +0 -0
- /package/dist/{timer-YZl28NYN.js → timer-BpI_FKSA.js} +0 -0
- /package/dist/{toml-GWANRNAD.js → toml-DxlPGbRy.js} +0 -0
- /package/dist/{treemap-D-ka1hvx.js → treemap-DY3NBr79.js} +0 -0
- /package/dist/{troff-BHTsomIy.js → troff-DFCfH7Ku.js} +0 -0
- /package/dist/{ttcn-DQuhn5Mn.js → ttcn-DAW-ERVP.js} +0 -0
- /package/dist/{ttcn-cfg-HjFYtdB-.js → ttcn-cfg-CpJ8b7EN.js} +0 -0
- /package/dist/{turtle-nCay33Nv.js → turtle-BneV2f8L.js} +0 -0
- /package/dist/{vb-BG-XlqqJ.js → vb-D973Vxxh.js} +0 -0
- /package/dist/{vbscript-B6vyW0-D.js → vbscript-Dckaq3YO.js} +0 -0
- /package/dist/{velocity-CWegueqO.js → velocity-DKty-GUC.js} +0 -0
- /package/dist/{verilog-CzSQm4cG.js → verilog-aNaK_biA.js} +0 -0
- /package/dist/{vhdl-DqnNVL7r.js → vhdl-CQuehnQy.js} +0 -0
- /package/dist/{webidl-DXEUpDWH.js → webidl-Bhg8vaMr.js} +0 -0
- /package/dist/{xquery-Ba_NB5bD.js → xquery-D2q16GaM.js} +0 -0
- /package/dist/{yacas-HKQU6hyk.js → yacas-DHGOHnNa.js} +0 -0
- /package/dist/{z80-CXkHXLdj.js → z80-BPhTmO22.js} +0 -0
|
@@ -303,6 +303,16 @@ const PackagesList: React.FC<{
|
|
|
303
303
|
onSuccess: () => void;
|
|
304
304
|
packages: { name: string; version: string }[];
|
|
305
305
|
}> = ({ onSuccess, packages }) => {
|
|
306
|
+
// Sort case-insensitively so packages are strictly alphabetical
|
|
307
|
+
// regardless of capitalization (package managers sort inconsistently).
|
|
308
|
+
const sortedPackages = React.useMemo(
|
|
309
|
+
() =>
|
|
310
|
+
packages.toSorted((a, b) =>
|
|
311
|
+
a.name.localeCompare(b.name, undefined, { sensitivity: "base" }),
|
|
312
|
+
),
|
|
313
|
+
[packages],
|
|
314
|
+
);
|
|
315
|
+
|
|
306
316
|
if (packages.length === 0) {
|
|
307
317
|
return (
|
|
308
318
|
<PanelEmptyState
|
|
@@ -323,7 +333,7 @@ const PackagesList: React.FC<{
|
|
|
323
333
|
</TableRow>
|
|
324
334
|
</TableHeader>
|
|
325
335
|
<TableBody>
|
|
326
|
-
{
|
|
336
|
+
{sortedPackages.map((item) => (
|
|
327
337
|
<TableRow
|
|
328
338
|
key={item.name}
|
|
329
339
|
className="group"
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
import { render } from "@testing-library/react";
|
|
3
|
+
import { createStore, Provider } from "jotai";
|
|
4
|
+
import { describe, expect, it } from "vitest";
|
|
5
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
6
|
+
import type { CellColumnId } from "@/utils/id-tree";
|
|
7
|
+
import { Column } from "../cell-column";
|
|
8
|
+
|
|
9
|
+
const columnId = "col-1" as CellColumnId;
|
|
10
|
+
|
|
11
|
+
function renderColumn({
|
|
12
|
+
width,
|
|
13
|
+
presenting,
|
|
14
|
+
}: {
|
|
15
|
+
width: "compact" | "columns";
|
|
16
|
+
presenting: boolean;
|
|
17
|
+
}) {
|
|
18
|
+
const store = createStore();
|
|
19
|
+
return render(
|
|
20
|
+
<Provider store={store}>
|
|
21
|
+
<TooltipProvider>
|
|
22
|
+
<Column
|
|
23
|
+
columnId={columnId}
|
|
24
|
+
index={0}
|
|
25
|
+
width={width}
|
|
26
|
+
canDelete={false}
|
|
27
|
+
canMoveLeft={false}
|
|
28
|
+
canMoveRight={false}
|
|
29
|
+
presenting={presenting}
|
|
30
|
+
>
|
|
31
|
+
<div data-testid="column-children" />
|
|
32
|
+
</Column>
|
|
33
|
+
</TooltipProvider>
|
|
34
|
+
</Provider>,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
describe("Column (single-column notebook)", () => {
|
|
39
|
+
it("spaces cells with the --notebook-cell-gap variable", () => {
|
|
40
|
+
const { getByTestId } = renderColumn({
|
|
41
|
+
width: "compact",
|
|
42
|
+
presenting: false,
|
|
43
|
+
});
|
|
44
|
+
const column = getByTestId("cell-column");
|
|
45
|
+
expect(column.classList.contains("gap-(--notebook-cell-gap)")).toBe(true);
|
|
46
|
+
expect(column.classList.contains("[--notebook-cell-gap:0px]")).toBe(false);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it("zeroes the cell gap while presenting", () => {
|
|
50
|
+
const { getByTestId } = renderColumn({
|
|
51
|
+
width: "compact",
|
|
52
|
+
presenting: true,
|
|
53
|
+
});
|
|
54
|
+
const column = getByTestId("cell-column");
|
|
55
|
+
expect(column.classList.contains("gap-(--notebook-cell-gap)")).toBe(true);
|
|
56
|
+
expect(column.classList.contains("[--notebook-cell-gap:0px]")).toBe(true);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
describe("Column (multi-column notebook)", () => {
|
|
61
|
+
it("shows column chrome when not presenting", () => {
|
|
62
|
+
const { getByTestId, getAllByTestId } = renderColumn({
|
|
63
|
+
width: "columns",
|
|
64
|
+
presenting: false,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
expect(getByTestId("column-header").hidden).toBe(false);
|
|
68
|
+
expect(getByTestId("column-frame").classList.contains("border")).toBe(true);
|
|
69
|
+
for (const handle of getAllByTestId("column-resize-handle")) {
|
|
70
|
+
expect(handle.hidden).toBe(false);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it("hides column chrome while presenting, without unmounting it", () => {
|
|
75
|
+
const { getByTestId, getAllByTestId } = renderColumn({
|
|
76
|
+
width: "columns",
|
|
77
|
+
presenting: true,
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// Header (drag handle, move/delete/add buttons) is hidden but mounted
|
|
81
|
+
expect(getByTestId("column-header").hidden).toBe(true);
|
|
82
|
+
// No border around the column
|
|
83
|
+
expect(getByTestId("column-frame").classList.contains("border")).toBe(
|
|
84
|
+
false,
|
|
85
|
+
);
|
|
86
|
+
// Resize handles are hidden
|
|
87
|
+
const handles = getAllByTestId("column-resize-handle");
|
|
88
|
+
expect(handles.length).toBeGreaterThan(0);
|
|
89
|
+
for (const handle of handles) {
|
|
90
|
+
expect(handle.hidden).toBe(true);
|
|
91
|
+
}
|
|
92
|
+
// Cell gap is zeroed on the column root (cascades to descendants)
|
|
93
|
+
const columnRoot = getByTestId("column-frame").parentElement;
|
|
94
|
+
expect(columnRoot?.classList.contains("[--notebook-cell-gap:0px]")).toBe(
|
|
95
|
+
true,
|
|
96
|
+
);
|
|
97
|
+
// Editor geometry (saved widths, min-width, gutters) is replaced by the
|
|
98
|
+
// published content width
|
|
99
|
+
const inner = getByTestId("column-children").parentElement;
|
|
100
|
+
expect(inner?.classList.contains("min-w-[500px]")).toBe(false);
|
|
101
|
+
expect(inner?.classList.contains("w-(--content-width)")).toBe(true);
|
|
102
|
+
// Children stay mounted
|
|
103
|
+
expect(getByTestId("column-children")).toBeTruthy();
|
|
104
|
+
});
|
|
105
|
+
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import React, { memo, useRef } from "react";
|
|
4
4
|
import type { AppConfig } from "@/core/config/config-schema";
|
|
5
5
|
import { useResizeHandle } from "@/hooks/useResizeHandle";
|
|
6
|
+
import { cn } from "@/utils/cn";
|
|
6
7
|
import type { CellColumnId } from "@/utils/id-tree";
|
|
7
8
|
import { SortableColumn } from "./sortable-column";
|
|
8
9
|
import { storageFn } from "./storage";
|
|
@@ -17,6 +18,11 @@ interface Props {
|
|
|
17
18
|
canDelete: boolean;
|
|
18
19
|
canMoveLeft: boolean;
|
|
19
20
|
canMoveRight: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If true, column chrome (drag handles, resize handles, borders) is hidden
|
|
23
|
+
* while keeping the same component tree mounted.
|
|
24
|
+
*/
|
|
25
|
+
presenting?: boolean;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
const { getColumnWidth, saveColumnWidth } = storageFn;
|
|
@@ -24,6 +30,10 @@ const { getColumnWidth, saveColumnWidth } = storageFn;
|
|
|
24
30
|
export const Column = memo((props: Props) => {
|
|
25
31
|
const columnRef = useRef<HTMLDivElement>(null);
|
|
26
32
|
|
|
33
|
+
// Published cells are not spaced apart. Set once on the column root; the
|
|
34
|
+
// CSS variable cascades to the gap-using descendants.
|
|
35
|
+
const zeroGapWhenPresenting = props.presenting && "[--notebook-cell-gap:0px]";
|
|
36
|
+
|
|
27
37
|
if (props.width === "columns") {
|
|
28
38
|
return (
|
|
29
39
|
<SortableColumn
|
|
@@ -33,14 +43,16 @@ export const Column = memo((props: Props) => {
|
|
|
33
43
|
columnId={props.columnId}
|
|
34
44
|
canMoveLeft={props.canMoveLeft}
|
|
35
45
|
canMoveRight={props.canMoveRight}
|
|
36
|
-
className="group/column"
|
|
46
|
+
className={cn("group/column", zeroGapWhenPresenting)}
|
|
37
47
|
footer={props.footer}
|
|
48
|
+
presenting={props.presenting}
|
|
38
49
|
>
|
|
39
50
|
<ResizableComponent
|
|
40
51
|
startingWidth={getColumnWidth(props.index)}
|
|
41
52
|
onResize={(width: number) => {
|
|
42
53
|
saveColumnWidth(props.index, width);
|
|
43
54
|
}}
|
|
55
|
+
presenting={props.presenting}
|
|
44
56
|
>
|
|
45
57
|
{props.children}
|
|
46
58
|
</ResizableComponent>
|
|
@@ -50,7 +62,13 @@ export const Column = memo((props: Props) => {
|
|
|
50
62
|
|
|
51
63
|
return (
|
|
52
64
|
<>
|
|
53
|
-
<div
|
|
65
|
+
<div
|
|
66
|
+
data-testid="cell-column"
|
|
67
|
+
className={cn(
|
|
68
|
+
"flex flex-col gap-(--notebook-cell-gap)",
|
|
69
|
+
zeroGapWhenPresenting,
|
|
70
|
+
)}
|
|
71
|
+
>
|
|
54
72
|
{props.children}
|
|
55
73
|
</div>
|
|
56
74
|
{props.footer}
|
|
@@ -64,12 +82,14 @@ interface ResizableComponentProps {
|
|
|
64
82
|
startingWidth: number | "contentWidth";
|
|
65
83
|
onResize?: (width: number) => void;
|
|
66
84
|
children: React.ReactNode;
|
|
85
|
+
presenting?: boolean;
|
|
67
86
|
}
|
|
68
87
|
|
|
69
88
|
const ResizableComponent = ({
|
|
70
89
|
startingWidth,
|
|
71
90
|
onResize,
|
|
72
91
|
children,
|
|
92
|
+
presenting,
|
|
73
93
|
}: ResizableComponentProps) => {
|
|
74
94
|
const { resizableDivRef, handleRefs, style } = useResizeHandle({
|
|
75
95
|
startingWidth,
|
|
@@ -80,11 +100,13 @@ const ResizableComponent = ({
|
|
|
80
100
|
return (
|
|
81
101
|
<div
|
|
82
102
|
ref={ref}
|
|
103
|
+
data-testid="column-resize-handle"
|
|
83
104
|
className={`w-[3px] cursor-col-resize transition-colors duration-200 z-100
|
|
84
105
|
relative before:content-[''] before:absolute before:inset-y-0 before:left-[-3px]
|
|
85
106
|
before:right-[-3px] before:w-[9px] before:z-[-1]
|
|
86
107
|
hover/column:bg-[var(--slate-3)] dark:hover/column:bg-[var(--slate-5)]
|
|
87
108
|
hover/column:hover:bg-primary/60 dark:hover/column:hover:bg-primary/60`}
|
|
109
|
+
hidden={presenting}
|
|
88
110
|
/>
|
|
89
111
|
);
|
|
90
112
|
};
|
|
@@ -94,8 +116,16 @@ const ResizableComponent = ({
|
|
|
94
116
|
{renderResizeHandler(handleRefs.left)}
|
|
95
117
|
<div
|
|
96
118
|
ref={resizableDivRef}
|
|
97
|
-
className=
|
|
98
|
-
|
|
119
|
+
className={cn(
|
|
120
|
+
"flex flex-col gap-(--notebook-cell-gap) box-content z-1",
|
|
121
|
+
// While presenting, use the published content width instead of the
|
|
122
|
+
// editor geometry (saved pixel width, 500px minimum, gutters),
|
|
123
|
+
// which overflows narrow screens.
|
|
124
|
+
presenting
|
|
125
|
+
? "w-(--content-width)"
|
|
126
|
+
: "min-h-[100px] px-11 pt-3 pb-6 min-w-[500px]",
|
|
127
|
+
)}
|
|
128
|
+
style={presenting ? undefined : style}
|
|
99
129
|
>
|
|
100
130
|
{children}
|
|
101
131
|
</div>
|
|
@@ -30,11 +30,24 @@ interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
30
30
|
canMoveLeft: boolean;
|
|
31
31
|
canMoveRight: boolean;
|
|
32
32
|
footer?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* If true, dragging is disabled and the column chrome is hidden
|
|
35
|
+
* (e.g. while presenting).
|
|
36
|
+
*/
|
|
37
|
+
presenting?: boolean;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
const SortableColumnInternal = React.forwardRef(
|
|
36
41
|
(
|
|
37
|
-
{
|
|
42
|
+
{
|
|
43
|
+
columnId,
|
|
44
|
+
canDelete,
|
|
45
|
+
canMoveLeft,
|
|
46
|
+
canMoveRight,
|
|
47
|
+
footer,
|
|
48
|
+
presenting,
|
|
49
|
+
...props
|
|
50
|
+
}: Props,
|
|
38
51
|
ref: React.Ref<HTMLDivElement>,
|
|
39
52
|
) => {
|
|
40
53
|
const {
|
|
@@ -45,7 +58,7 @@ const SortableColumnInternal = React.forwardRef(
|
|
|
45
58
|
transition,
|
|
46
59
|
isDragging,
|
|
47
60
|
isOver,
|
|
48
|
-
} = useSortable({ id: columnId });
|
|
61
|
+
} = useSortable({ id: columnId, disabled: presenting });
|
|
49
62
|
|
|
50
63
|
const style: React.CSSProperties = {
|
|
51
64
|
transform: transform
|
|
@@ -78,7 +91,11 @@ const SortableColumnInternal = React.forwardRef(
|
|
|
78
91
|
};
|
|
79
92
|
|
|
80
93
|
const dragHandle = (
|
|
81
|
-
<div
|
|
94
|
+
<div
|
|
95
|
+
data-testid="column-header"
|
|
96
|
+
className="px-2 pb-0 group flex items-center overflow-hidden border-b border-(--slate-7)"
|
|
97
|
+
hidden={presenting}
|
|
98
|
+
>
|
|
82
99
|
<Tooltip content="Move column left" side="top" delayDuration={300}>
|
|
83
100
|
<Button
|
|
84
101
|
variant="text"
|
|
@@ -161,7 +178,10 @@ const SortableColumnInternal = React.forwardRef(
|
|
|
161
178
|
isOver && "bg-accent/20", // Add a background color when dragging over
|
|
162
179
|
)}
|
|
163
180
|
>
|
|
164
|
-
<div
|
|
181
|
+
<div
|
|
182
|
+
data-testid="column-frame"
|
|
183
|
+
className={cn(!presenting && "border border-(--slate-7)")}
|
|
184
|
+
>
|
|
165
185
|
{dragHandle}
|
|
166
186
|
{props.children}
|
|
167
187
|
</div>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import { getRequestClient } from "@/core/network/requests";
|
|
4
|
+
import { getRuntimeManager } from "@/core/runtime/config";
|
|
5
|
+
import { isWasm } from "@/core/wasm/utils";
|
|
6
|
+
import { deserializeBlob } from "@/utils/blob";
|
|
7
|
+
import { downloadBlob, downloadByURL } from "@/utils/download";
|
|
8
|
+
import { type Base64String, base64ToDataURL } from "@/utils/json/base64";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Download a workspace file by path.
|
|
12
|
+
*
|
|
13
|
+
* Over HTTP this navigates to a streaming download endpoint, so the
|
|
14
|
+
* browser's download manager handles the transfer and no file contents
|
|
15
|
+
* are buffered in memory. In WASM there is no HTTP server to stream
|
|
16
|
+
* from; contents come over the pyodide bridge as base64 and are saved
|
|
17
|
+
* via a Blob.
|
|
18
|
+
*/
|
|
19
|
+
export async function downloadFile(path: string, name: string): Promise<void> {
|
|
20
|
+
if (!isWasm()) {
|
|
21
|
+
const url = getRuntimeManager().formatNavigableHttpURL(
|
|
22
|
+
"api/files/download",
|
|
23
|
+
new URLSearchParams({ path }),
|
|
24
|
+
);
|
|
25
|
+
downloadByURL(url.toString(), name);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const details = await getRequestClient().sendFileDetails({ path });
|
|
30
|
+
if (details.isBase64 && details.contents) {
|
|
31
|
+
const blob = deserializeBlob(
|
|
32
|
+
base64ToDataURL(
|
|
33
|
+
details.contents as Base64String,
|
|
34
|
+
details.mimeType || "application/octet-stream",
|
|
35
|
+
),
|
|
36
|
+
);
|
|
37
|
+
downloadBlob(blob, name);
|
|
38
|
+
} else {
|
|
39
|
+
downloadBlob(
|
|
40
|
+
new Blob([details.contents || ""], {
|
|
41
|
+
type: details.mimeType || "application/octet-stream",
|
|
42
|
+
}),
|
|
43
|
+
name,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -62,16 +62,14 @@ import type { FileInfo } from "@/core/network/types";
|
|
|
62
62
|
import { isWasm } from "@/core/wasm/utils";
|
|
63
63
|
import { useAsyncData } from "@/hooks/useAsyncData";
|
|
64
64
|
import { ErrorBanner } from "@/plugins/impl/common/error-banner";
|
|
65
|
-
import { deserializeBlob } from "@/utils/blob";
|
|
66
65
|
import { cn } from "@/utils/cn";
|
|
67
66
|
import { copyToClipboard } from "@/utils/copy";
|
|
68
|
-
import { downloadBlob } from "@/utils/download";
|
|
69
|
-
import { type Base64String, base64ToDataURL } from "@/utils/json/base64";
|
|
70
67
|
import { openNotebook } from "@/utils/links";
|
|
71
68
|
import type { FilePath } from "@/utils/paths";
|
|
72
69
|
import { makeDuplicateName } from "@/utils/pathUtils";
|
|
73
70
|
import { jotaiJsonStorage } from "@/utils/storage/jotai";
|
|
74
71
|
import { useTreeDndManager } from "./dnd-wrapper";
|
|
72
|
+
import { downloadFile } from "./download";
|
|
75
73
|
import { FileViewer } from "./file-viewer";
|
|
76
74
|
import type { RequestingTree } from "./requesting-tree";
|
|
77
75
|
import { openStateAtom, treeAtom } from "./state";
|
|
@@ -393,7 +391,7 @@ const Show = ({
|
|
|
393
391
|
};
|
|
394
392
|
|
|
395
393
|
const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
|
|
396
|
-
const { openFile
|
|
394
|
+
const { openFile } = useRequestClient();
|
|
397
395
|
const disableFileDownloads = useAtomValue(disableFileDownloadsAtom);
|
|
398
396
|
|
|
399
397
|
const fileType: FileIconType = node.data.isDirectory
|
|
@@ -645,23 +643,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
|
|
|
645
643
|
<>
|
|
646
644
|
<DropdownMenuItem
|
|
647
645
|
onSelect={async () => {
|
|
648
|
-
|
|
649
|
-
path: node.data.path,
|
|
650
|
-
});
|
|
651
|
-
if (details.isBase64 && details.contents) {
|
|
652
|
-
const blob = deserializeBlob(
|
|
653
|
-
base64ToDataURL(
|
|
654
|
-
details.contents as Base64String,
|
|
655
|
-
details.mimeType || "application/octet-stream",
|
|
656
|
-
),
|
|
657
|
-
);
|
|
658
|
-
downloadBlob(blob, node.data.name);
|
|
659
|
-
} else {
|
|
660
|
-
downloadBlob(
|
|
661
|
-
new Blob([details.contents || ""]),
|
|
662
|
-
node.data.name,
|
|
663
|
-
);
|
|
664
|
-
}
|
|
646
|
+
await downloadFile(node.data.path, node.data.name);
|
|
665
647
|
}}
|
|
666
648
|
data-testid="file-explorer-download-menu-item"
|
|
667
649
|
>
|
|
@@ -21,10 +21,9 @@ import { filenameAtom } from "@/core/saving/file-state";
|
|
|
21
21
|
import { isWasm } from "@/core/wasm/utils";
|
|
22
22
|
import { useAsyncData } from "@/hooks/useAsyncData";
|
|
23
23
|
import { ErrorBanner } from "@/plugins/impl/common/error-banner";
|
|
24
|
-
import { deserializeBlob } from "@/utils/blob";
|
|
25
24
|
import { copyToClipboard } from "@/utils/copy";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
25
|
+
import type { Base64String } from "@/utils/json/base64";
|
|
26
|
+
import { downloadFile } from "./download";
|
|
28
27
|
import { FilePreviewHeader } from "./file-header";
|
|
29
28
|
import {
|
|
30
29
|
FileContentRenderer,
|
|
@@ -121,30 +120,8 @@ export const FileViewer: React.FC<Props> = ({ file, onOpenNotebook }) => {
|
|
|
121
120
|
);
|
|
122
121
|
}
|
|
123
122
|
|
|
124
|
-
const handleDownload = () => {
|
|
125
|
-
|
|
126
|
-
if (isMediaMime(mimeType)) {
|
|
127
|
-
const dataURL = base64ToDataURL(
|
|
128
|
-
data.contents as Base64String,
|
|
129
|
-
mimeType,
|
|
130
|
-
);
|
|
131
|
-
downloadByURL(dataURL, data.file.name);
|
|
132
|
-
} else {
|
|
133
|
-
const blob = deserializeBlob(
|
|
134
|
-
base64ToDataURL(
|
|
135
|
-
data.contents as Base64String,
|
|
136
|
-
data.mimeType || "application/octet-stream",
|
|
137
|
-
),
|
|
138
|
-
);
|
|
139
|
-
downloadBlob(blob, data.file.name);
|
|
140
|
-
}
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
downloadBlob(
|
|
145
|
-
new Blob([data.contents || internalValue], { type: mimeType }),
|
|
146
|
-
data.file.name,
|
|
147
|
-
);
|
|
123
|
+
const handleDownload = async () => {
|
|
124
|
+
await downloadFile(file.path, data.file.name);
|
|
148
125
|
};
|
|
149
126
|
|
|
150
127
|
const header = (
|
|
@@ -12,6 +12,7 @@ import { MockRequestClient } from "@/__mocks__/requests";
|
|
|
12
12
|
import { aiCompletionCellAtom } from "@/core/ai/state";
|
|
13
13
|
import type { CellActions } from "@/core/cells/cells";
|
|
14
14
|
import { notebookAtom } from "@/core/cells/cells";
|
|
15
|
+
import { signatureHintField } from "@/core/codemirror/completion/signature-hint";
|
|
15
16
|
import {
|
|
16
17
|
configOverridesAtom,
|
|
17
18
|
platformAtom,
|
|
@@ -1825,6 +1826,38 @@ describe("useCellEditorNavigationProps", () => {
|
|
|
1825
1826
|
expect(focusCell).not.toHaveBeenCalled();
|
|
1826
1827
|
});
|
|
1827
1828
|
|
|
1829
|
+
it("should dismiss the signature hint when Escape is pressed without exiting to command mode", () => {
|
|
1830
|
+
mockSimplifySelection.mockReturnValue(false);
|
|
1831
|
+
mockCompletionStatus.mockReturnValue(null);
|
|
1832
|
+
|
|
1833
|
+
const dispatch = vi.fn();
|
|
1834
|
+
const mockEditorView = {
|
|
1835
|
+
current: {
|
|
1836
|
+
state: {
|
|
1837
|
+
selection: { main: { from: 9, to: 9, empty: true } },
|
|
1838
|
+
field: vi.fn((field: unknown) =>
|
|
1839
|
+
field === signatureHintField ? { pos: 9 } : false,
|
|
1840
|
+
),
|
|
1841
|
+
},
|
|
1842
|
+
dispatch,
|
|
1843
|
+
} as unknown as EditorView,
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
const { result } = renderWithProvider(() =>
|
|
1847
|
+
useCellEditorNavigationProps(mockCellId, mockEditorView),
|
|
1848
|
+
);
|
|
1849
|
+
|
|
1850
|
+
const mockEvent = Mocks.keyboardEvent({ key: "Escape" });
|
|
1851
|
+
|
|
1852
|
+
act(() => {
|
|
1853
|
+
result.current.onKeyDown?.(mockEvent);
|
|
1854
|
+
});
|
|
1855
|
+
|
|
1856
|
+
// The hint is dismissed (dispatch called) but we stay in edit mode.
|
|
1857
|
+
expect(dispatch).toHaveBeenCalled();
|
|
1858
|
+
expect(focusCell).not.toHaveBeenCalled();
|
|
1859
|
+
});
|
|
1860
|
+
|
|
1828
1861
|
it("should continue propagation for other keys", () => {
|
|
1829
1862
|
const mockEditorView = { current: null };
|
|
1830
1863
|
const { result } = renderWithProvider(() =>
|
|
@@ -22,6 +22,10 @@ import {
|
|
|
22
22
|
} from "@/core/cells/pending-cut-service";
|
|
23
23
|
import { usePendingDeleteService } from "@/core/cells/pending-delete-service";
|
|
24
24
|
import { scrollCellIntoView } from "@/core/cells/scrollCellIntoView";
|
|
25
|
+
import {
|
|
26
|
+
closeSignatureHint,
|
|
27
|
+
signatureHintField,
|
|
28
|
+
} from "@/core/codemirror/completion/signature-hint";
|
|
25
29
|
import {
|
|
26
30
|
hotkeysAtom,
|
|
27
31
|
isAiFeatureEnabled,
|
|
@@ -713,7 +717,9 @@ export function useCellEditorNavigationProps(
|
|
|
713
717
|
return;
|
|
714
718
|
}
|
|
715
719
|
|
|
716
|
-
const hasSignatureHelp =
|
|
720
|
+
const hasSignatureHelp =
|
|
721
|
+
Boolean(state.field(signatureHelpTooltipField, false)) ||
|
|
722
|
+
Boolean(state.field(signatureHintField, false));
|
|
717
723
|
const hasAutocompletePopup = completionStatus(state) !== null;
|
|
718
724
|
if (hasSignatureHelp) {
|
|
719
725
|
closeSignatureHelp(view);
|
|
@@ -784,4 +790,5 @@ export function closeSignatureHelp(view: EditorView) {
|
|
|
784
790
|
if (view.state.field(signatureHelpTooltipField, false)) {
|
|
785
791
|
view.dispatch({ effects: setSignatureHelpTooltip.of(null) });
|
|
786
792
|
}
|
|
793
|
+
closeSignatureHint(view);
|
|
787
794
|
}
|