@marimo-team/islands 0.20.1 → 0.20.3-dev76
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-BMiGWK57.js → ConnectedDataExplorerComponent-DUS-zJoR.js} +12 -12
- package/dist/{_baseIsEqual-DN5YkPnl.js → _baseIsEqual-5cAxzk6f.js} +42 -41
- package/dist/_basePickBy-3JVb5wYm.js +47 -0
- package/dist/{_baseProperty-6juuyX7Z.js → _baseProperty-D1nWkRMz.js} +12 -12
- package/dist/_baseSlice-BrVixxuc.js +10 -0
- package/dist/{_baseUniq-BlF21ach.js → _baseUniq-DSSiFuIJ.js} +10 -6
- package/dist/{any-language-editor-1OMbohwD.js → any-language-editor-BL9o7y0_.js} +31 -30
- package/dist/apl-lHFVoxx7.js +4 -0
- package/dist/{arc-9nABupDE.js → arc-DXxE-tFl.js} +2 -2
- package/dist/architecture-7HQA4BMR-BxkNpYRp.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-DhN0C3Xf.js → architectureDiagram-VXUJARFQ-DrJeyFHq.js} +19 -19
- package/dist/asciiarmor-DqCdZUHI.js +4 -0
- package/dist/asn1-DEcwtw-q.js +4 -0
- package/dist/{blockDiagram-VD42YOAC-DrBkIcbV.js → blockDiagram-VD42YOAC-BJrP6qKc.js} +53 -53
- package/dist/brainfuck-Bro9Oz5x.js +4 -0
- package/dist/{c4Diagram-YG6GDRKO-pWt4zmu0.js → c4Diagram-YG6GDRKO-Bo4gytQ5.js} +6 -6
- package/dist/{channel-C56Jz8EL.js → channel-IWLGkaBE.js} +1 -1
- package/dist/{chunk-4BX2VUAB-WmXmzRBr.js → chunk-4BX2VUAB-CwMMQLZ_.js} +1 -1
- package/dist/{chunk-S6J4BHB3-zfWjyfUg.js → chunk-4F5CHEZ2-CxKDFd-t.js} +2 -2
- package/dist/{chunk-55IACEB6-irYMvHJu.js → chunk-55IACEB6-Dj8CzJvE.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-pOElJy8t.js → chunk-5FQGJX7Z-BkzUmppO.js} +2 -2
- package/dist/{chunk-ABZYJK2D-BwNsaa1P.js → chunk-ABZYJK2D-CRwanrkd.js} +3 -3
- package/dist/{chunk-ATLVNIR6-DtFMAawc.js → chunk-ATLVNIR6-CMMCMvOK.js} +2 -2
- package/dist/{chunk-FWNWRKHM-DmrwhAQr.js → chunk-B2363JML-e_W7KW1D.js} +2 -2
- package/dist/{chunk-B4BG7PRW-lfWcLlzS.js → chunk-B4BG7PRW-BNsHrGHG.js} +7 -7
- package/dist/{chunk-CVBHYZKI-Bb2XMuXJ.js → chunk-CVBHYZKI-D8iwHsLF.js} +1 -1
- package/dist/{chunk-DI55MBZ5-RhhAimfG.js → chunk-DI55MBZ5-DQeYbfMV.js} +6 -6
- package/dist/{chunk-XAJISQIX-CZ8Bi1-x.js → chunk-DR5Q36YT-D4q96vNV.js} +2 -2
- package/dist/{chunk-EXTU4WIE-Bmo660a9.js → chunk-EXTU4WIE-CV_DQeaX.js} +2 -2
- package/dist/{chunk-FMBD7UC4-C0DZU_4q.js → chunk-FMBD7UC4-XTL4xAvH.js} +1 -1
- package/dist/{chunk-LBM3YZW2-BkxsqkNK.js → chunk-FRFDVMJY-C7q09nvl.js} +2 -2
- package/dist/{chunk-HN2XXSSU-BsB4dtgF.js → chunk-HN2XXSSU-CzO5Phf0.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-n8UTzfok.js → chunk-JA3XYJ7Z-Cmt--e0q.js} +3 -3
- package/dist/{chunk-JZLCHNYA-ChKqHUdB.js → chunk-JZLCHNYA-CkyMJnI9.js} +6 -6
- package/dist/{chunk-MI3HLSF2-DeDZS-tQ.js → chunk-MI3HLSF2-DvCKDmpi.js} +1 -1
- package/dist/{chunk-N4CR4FBY-BxOHGL3P.js → chunk-N4CR4FBY-BJfHtJbD.js} +7 -7
- package/dist/{chunk-T53DSG4Q-Bewz1tiU.js → chunk-PL6DKKU2-ChKBqnoD.js} +2 -2
- package/dist/{chunk-QN33PNHL-Dda-55xY.js → chunk-QN33PNHL-WOLIPUAJ.js} +2 -2
- package/dist/{chunk-QXUST7PY-ClIEpoCT.js → chunk-QXUST7PY-DYuD50pU.js} +10 -10
- package/dist/{chunk-QZHKN3VN-Diy_Cdek.js → chunk-QZHKN3VN-CYbwZKgJ.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-C_1SJcWo.js → chunk-S3R3BYOJ-CsnX6RKs.js} +8 -8
- package/dist/{chunk-76Q3JFCE-CQ6a2yGJ.js → chunk-SJTYNZTY-j6_1s5om.js} +2 -2
- package/dist/{chunk-FPAJGGOC-quWdfNUB.js → chunk-TCCFYFTB-DdLCbCTn.js} +3995 -3985
- package/dist/{chunk-LHMN2FUI-CgYPnxfN.js → chunk-TQ3KTPDO-CGsUIC73.js} +2 -2
- package/dist/{chunk-TZMSLE5B-XW3duOft.js → chunk-TZMSLE5B-B3eYTGCw.js} +3 -3
- package/dist/{chunk-O7ZBX7Z2-CdpLwOP0.js → chunk-UMXZTB3W--LdAK3Bv.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-C7C-oefv.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-UTw37Gg8.js +30 -0
- package/dist/{clike-B90WKs4D.js → clike-CLJYUAWw.js} +1 -1
- package/dist/clojure-B2uhdQPa.js +4 -0
- package/dist/{clone-V9hndNcj.js → clone-BJrS4PdE.js} +1 -1
- package/dist/cmake-B9WXyQcc.js +4 -0
- package/dist/cobol-CPD3EJfO.js +4 -0
- package/dist/{code-block-37QAKDTI-zh5AeoJo.js → code-block-37QAKDTI-DV_ZyoUh.js} +1 -1
- package/dist/coffeescript-KD9TnEnS.js +4 -0
- package/dist/commonlisp-DNEULz_Q.js +4 -0
- package/dist/{constants-BGRTDzdW.js → constants-D1Tbg_6B.js} +3 -2
- package/dist/{cose-bilkent-S5V4N54A-BK1nIR2J.js → cose-bilkent-S5V4N54A-BCDTZDay.js} +2 -2
- package/dist/crystal-DVPNgAPQ.js +4 -0
- package/dist/css-fq3a1AH1.js +4 -0
- package/dist/cypher-Dtzq0BP7.js +4 -0
- package/dist/d-DcZudIhJ.js +4 -0
- package/dist/{dagre-6UL2VRFP-BArPH353.js → dagre-6UL2VRFP-BgsUhJrV.js} +88 -87
- package/dist/{dagre-Dcgyn_Uy.js → dagre-CyZCGfV_.js} +41 -84
- package/dist/{data-grid-overlay-editor-BVFT970w.js → data-grid-overlay-editor-BD0BFHzy.js} +2 -2
- package/dist/{diagram-PSM6KHXK-B1xAkr9y.js → diagram-PSM6KHXK-BIUUOfKo.js} +22 -22
- package/dist/{diagram-QEK2KX5R-CaoqwzPb.js → diagram-QEK2KX5R-BFjolZQv.js} +17 -17
- package/dist/{diagram-S2PKOQOG-NXCsFLvR.js → diagram-S2PKOQOG-4jfkWoZw.js} +17 -17
- package/dist/diff-D9BPDC3o.js +4 -0
- package/dist/{dist-IlWGXVjO.js → dist-7ZF--V_D.js} +2 -2
- package/dist/dist-BAeGo2rp.js +5 -0
- package/dist/{dist-Ey9hP8-j.js → dist-BBcqvpvP.js} +1 -1
- package/dist/{dist-DpAbrLuF.js → dist-BFL9TlzD.js} +5 -5
- package/dist/{dist-CD7uLx0M.js → dist-BLThQiU4.js} +2 -2
- package/dist/{dist-CoZ8kKKW.js → dist-BT6_J2eq.js} +1 -1
- package/dist/{dist-C_9IMrtt.js → dist-BTQbjEKU.js} +1 -1
- package/dist/dist-BqwCMSEa.js +5 -0
- package/dist/{dist-CUOuFgHt.js → dist-BuapEdlD.js} +113 -58
- package/dist/dist-Bum8FwTO.js +6 -0
- package/dist/{dist-LNp8svLl.js → dist-BwQHkjA9.js} +4 -4
- package/dist/dist-C0YiOwt_.js +5 -0
- package/dist/dist-C2uPv4iU.js +5 -0
- package/dist/{dist-Dmr_nXF6.js → dist-C4XMUaob.js} +2 -2
- package/dist/dist-C5hOLsJN.js +8 -0
- package/dist/{dist-a6Obzr07.js → dist-C6z8U-ms.js} +2 -2
- package/dist/dist-C9NIAKMs.js +8 -0
- package/dist/{dist-EZFqUJhh.js → dist-CB6qhQ8K.js} +1 -1
- package/dist/dist-CCrzTtvk.js +5 -0
- package/dist/dist-CFS9i1rS.js +8 -0
- package/dist/{dist-CMOy93xY.js → dist-CFToYDWO.js} +2 -2
- package/dist/{dist-DF_77D2B.js → dist-COpDrwi-.js} +1 -1
- package/dist/{dist-D8EhXZ4S.js → dist-CYo3w-nC.js} +3 -3
- package/dist/{dist-Dv2Phbh5.js → dist-Cb3cLT39.js} +2 -2
- package/dist/{dist-DOLQQtWK.js → dist-Ch_JuCvc.js} +3 -3
- package/dist/{dist-Cb3iqED3.js → dist-Cqpjy6bK.js} +1 -1
- package/dist/{dist-BswsDM4k.js → dist-CsqiXw7J.js} +2 -2
- package/dist/{dist-BoagoQQw.js → dist-CwtEWuFb.js} +2 -2
- package/dist/dist-CyHZuhPH.js +5 -0
- package/dist/dist-CzcjWdIk.js +6 -0
- package/dist/{dist-BUEi7EKT.js → dist-D0f6Yrrb.js} +1 -1
- package/dist/{dist-C5QB1NtD.js → dist-D7ZGWV_9.js} +3 -3
- package/dist/{dist-CrAYcS_4.js → dist-DEFZ7dnD.js} +2 -2
- package/dist/{dist-DrC0QKFK.js → dist-DMS81OrU.js} +1 -1
- package/dist/{dist-iyBCcLRa.js → dist-DUxS2paD.js} +2 -2
- package/dist/dist-DaYyUSNC.js +5 -0
- package/dist/{dist-W6TdeACj.js → dist-De9X_Des.js} +1 -1
- package/dist/dist-DpDcJYNh.js +8 -0
- package/dist/{dist-bz6WguLy.js → dist-I8MQW60_.js} +2 -2
- package/dist/{dist-BGzkWRSl.js → dist-IW_ARJ3S.js} +4 -4
- package/dist/{dist-xCB683Dh.js → dist-Qjf6pcqK.js} +2 -2
- package/dist/{dist-B_i29Q6L.js → dist-UYm1IE5s.js} +2 -2
- package/dist/dist-U_BfxcPn.js +5 -0
- package/dist/{dist-iDeoXzdN.js → dist-ovDpXuSB.js} +1 -1
- package/dist/{dockerfile-D1Q_4uCN.js → dockerfile-BxhYdLHL.js} +1 -1
- package/dist/dtd-FhG-tVom.js +4 -0
- package/dist/dylan-HWpZOBPw.js +4 -0
- package/dist/ecl-B_rcje1I.js +4 -0
- package/dist/eiffel-oqHyHs6f.js +4 -0
- package/dist/elm-B62RQEds.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-DWCa11g5.js → erDiagram-Q2GNP2WA-Cq5Bz5lG.js} +15 -15
- package/dist/erlang-CjRjjA-B.js +4 -0
- package/dist/{esm-DZSk8vt3.js → esm-BxMbHo0y.js} +107 -107
- package/dist/factor-CGH_TnIV.js +4 -0
- package/dist/{factor--4HHM8Rw.js → factor-Png_OsVt.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-BQ5PQs4L.js → flowDiagram-NV44I4VS-6WPJVFl7.js} +17 -17
- package/dist/forth-5N06oHNp.js +4 -0
- package/dist/fortran-wZ-sNg3h.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-NTOuNWeT.js → ganttDiagram-JELNMOA3-AfDhh9CI.js} +10 -10
- package/dist/gas-3H4_FaS8.js +4 -0
- package/dist/gherkin-PEA2uy50.js +4 -0
- package/dist/{gitGraph-F6HP7TQM-DfRNsaDw.js → gitGraph-G5XIXVHT-C0o6gecv.js} +3 -3
- package/dist/{gitGraphDiagram-NY62KEGX-CYke62Ot.js → gitGraphDiagram-V2S2FVAM-BRSwuj0Q.js} +17 -17
- package/dist/{glide-data-editor-DttqGjrT.js → glide-data-editor-ByPNTNVG.js} +7 -7
- package/dist/graphlib-DZnBMcsX.js +228 -0
- package/dist/groovy-DZzbvCP1.js +4 -0
- package/dist/haskell-CExLTzho.js +4 -0
- package/dist/haxe-f3pVb8qU.js +5 -0
- package/dist/idl-BbWlJ0gk.js +4 -0
- package/dist/{info-NVLQJR56-CUaoPtis.js → info-VBDWY6EO-Bzsods6X.js} +3 -3
- package/dist/infoDiagram-HS3SLOUP-Cmxo6jKx.js +30 -0
- package/dist/{_baseFor-B69PDbIz.js → isArrayLikeObject-Btu-i6_P.js} +216 -44
- package/dist/{isEmpty-6z2uv6gM.js → isEmpty-CZvUtYFp.js} +2 -2
- package/dist/{isString-D6abkXrl.js → isString-CBr7TEb7.js} +1 -1
- package/dist/{isSymbol-hk7foJ70.js → isSymbol-BuQsMXhk.js} +1 -1
- package/dist/javascript-eMOhp6Aq.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-ahXD97kr.js → journeyDiagram-XKPGCS4Q-CKYr8cSR.js} +7 -7
- package/dist/julia-C6w3Rvqb.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-CiTIpnhy.js → kanban-definition-3W4ZIXB7-DVvAZzQD.js} +12 -12
- package/dist/{katex-DaGuLbVh.js → katex-pyO_klYC.js} +1 -1
- package/dist/{label-Cc5tEavt.js → label-CV0KYhtH.js} +4 -10
- package/dist/{line-Bc27KE1D.js → line-C1k1rG3Z.js} +3 -3
- package/dist/{linear-Bnc6E9kA.js → linear-DIp6l9sg.js} +4 -4
- package/dist/livescript-ChQl9lD-.js +4 -0
- package/dist/{loader-Cob3XFOw.js → loader-eJCvvApN.js} +2 -2
- package/dist/lua-CiDvI96j.js +4 -0
- package/dist/main-Tj_-QTyF.js +4321 -0
- package/dist/main.js +2025 -5032
- package/dist/mathematica-ClVO4k7N.js +4 -0
- package/dist/mbox-BEI7DeUg.js +4 -0
- package/dist/{memoize-Ckyqzyu_.js → memoize-P1T1IGb9.js} +1 -1
- package/dist/merge-CGQkMGzr.js +51 -0
- package/dist/{mermaid-4DMBBIKO-BmJdHPwx.js → mermaid-4DMBBIKO-PVrJfEpX.js} +1 -1
- package/dist/{mermaid-B5xl_2hx.js → mermaid-COOB_abB.js} +46 -46
- package/dist/{mermaid-parser.core-BXj7Il0J.js → mermaid-parser.core-Cd-wu4tE.js} +8 -8
- package/dist/{mhchem-B_tiMbKF.js → mhchem-DckvwtV8.js} +1 -1
- package/dist/min-CMDDtXJP.js +89 -0
- package/dist/{mindmap-definition-VGOIOE7T-Mni766A_.js → mindmap-definition-VGOIOE7T-1ExmnvYy.js} +14 -14
- package/dist/mirc-DwidJ3iH.js +4 -0
- package/dist/mllike-Dspdy0xJ.js +6 -0
- package/dist/modelica-CIUejP-L.js +4 -0
- package/dist/mscgen-BWXU4Omp.js +6 -0
- package/dist/mumps-PHFFoPk5.js +4 -0
- package/dist/now-BxlRp0OQ.js +7 -0
- package/dist/nsis-B7xooKLf.js +4 -0
- package/dist/{nsis-B6EN9LWI.js → nsis-BrAITej_.js} +1 -1
- package/dist/ntriples-DnOgtCzG.js +4 -0
- package/dist/{number-overlay-editor-DKVJgXpp.js → number-overlay-editor-CQrncFlP.js} +1 -1
- package/dist/octave-Cn5kH_QT.js +4 -0
- package/dist/{once-C9dA9qgQ.js → once-BqS42WgZ.js} +1 -1
- package/dist/{ordinal-DLLbwLkP.js → ordinal-Dcvf4J1m.js} +1 -1
- package/dist/oz-DR-sROpu.js +4 -0
- package/dist/{packet-BFZMPI3H-DHtQCusE.js → packet-DYOGHKS2-Bf1CvFco.js} +3 -3
- package/dist/pascal-CPKK1zcS.js +4 -0
- package/dist/perl-D7FuFdyd.js +4 -0
- package/dist/{pie-7BOR55EZ-2sVLYbpR.js → pie-VRWISCQL-LY_wbqji.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-PbXpgT8_.js → pieDiagram-ADFJNKIX-CJlIsdsU.js} +22 -22
- package/dist/pig-CEXnOAnI.js +4 -0
- package/dist/powershell-BKvWab7q.js +4 -0
- package/dist/{precisionRound-Duzbr5ur.js → precisionRound-BAc-kQ3q.js} +1 -1
- package/dist/properties-7jnK_vYx.js +4 -0
- package/dist/protobuf-4rslMjEN.js +4 -0
- package/dist/pug-BVwdEv4r.js +4 -0
- package/dist/{pug-xrm7jQ2R.js → pug-CH-17az-.js} +1 -1
- package/dist/puppet-iSHg_1Z2.js +4 -0
- package/dist/python-tK3wUCn0.js +4 -0
- package/dist/q-DP_Dcoox.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BtXGnx8i.js → quadrantDiagram-AYHSOK5B-BU78RiaH.js} +5 -5
- package/dist/r-C32wHLYu.js +4 -0
- package/dist/{radar-NHE76QYJ-Be0pEUux.js → radar-ZZBFDIW7-Ro3iXZCk.js} +3 -3
- package/dist/range-Dh0_-r8P.js +30 -0
- package/dist/{react-vega-CCNu2JE0.js → react-vega-C6kwcd86.js} +18 -18
- package/dist/react-vega-CFUuchds.js +9 -0
- package/dist/reduce-BXFHs7IQ.js +268 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DxzXQRgq.js → requirementDiagram-UZGBJVZJ-DACHtrFr.js} +14 -14
- package/dist/rpm-BbDBUfs9.js +5 -0
- package/dist/ruby-COfWUiIr.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-D-I7dJ0_.js → sankeyDiagram-TZEHDZUN-Bzg7_UWs.js} +5 -5
- package/dist/sas-y_Hue2-X.js +4 -0
- package/dist/scheme-7jTCqHw8.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-VDme2ljw.js → sequenceDiagram-WL72ISMW-agybEe9J.js} +8 -8
- package/dist/shell-DAqJWXDk.js +4 -0
- package/dist/sieve-EaqnbCO3.js +4 -0
- package/dist/slides-component-B0yK5GXP.js +3057 -0
- package/dist/smalltalk-DL03YKLJ.js +4 -0
- package/dist/sparql-DTA-tQ_q.js +4 -0
- package/dist/{spec-GwhMEXwK.js → spec-Dq_reDGM.js} +4 -4
- package/dist/{src-jICM_d2B.js → src-CHUphWwL.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-g3GI1EcK.js → stateDiagram-FKZM4ZOC-DehQAt8g.js} +19 -19
- package/dist/stateDiagram-v2-4FDKWEC3-8VzeREl9.js +29 -0
- package/dist/{step-BqVgkWtk.js → step-BbmiiQdf.js} +1 -1
- package/dist/stex-KfRnSHzF.js +4 -0
- package/dist/style.css +1 -1
- package/dist/stylus-CfjeFry_.js +4 -0
- package/dist/swift-Dl0RRDbH.js +4 -0
- package/dist/tcl-wv9O7fLZ.js +4 -0
- package/dist/textile-DzMRCBcV.js +4 -0
- package/dist/{time-CrYsYnQU.js → time-DFFVNc1Q.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-bhvLlX_b.js → timeline-definition-IT6M3QCI-CdCfdaCF.js} +4 -4
- package/dist/toNumber-By7s5JC_.js +28 -0
- package/dist/{toString-BwTJvlyD.js → toString-Ckpb50uw.js} +8 -8
- package/dist/toml-CyIWqgbe.js +4 -0
- package/dist/{treemap-KMMF4GRG-Ba9ifjpG.js → treemap-GDKQZRPO-DRxfDG65.js} +3 -3
- package/dist/troff-_huin_CY.js +4 -0
- package/dist/ttcn-BEiJuYYc.js +4 -0
- package/dist/ttcn-cfg-DB6Ksh67.js +4 -0
- package/dist/turtle-DzhzGEum.js +4 -0
- package/dist/{types-Dsh6yC4B.js → types-BwnzGcE4.js} +31 -32
- package/dist/uniq-cCc07Q8K.js +8 -0
- package/dist/{useAsyncData-BPpyKjTJ.js → useAsyncData-B4hMFGnF.js} +2 -2
- package/dist/{useDeepCompareMemoize-C8Ms87P-.js → useDeepCompareMemoize-DuPhOXzr.js} +3 -3
- package/dist/{useIframeCapabilities-C7z8VrZ1.js → useIframeCapabilities-CAt6D2EI.js} +1 -1
- package/dist/{useTheme-Cq-gIssy.js → useTheme-BNYQnvu-.js} +2 -2
- package/dist/vb-CngKZQHu.js +4 -0
- package/dist/vbscript-BV_8nbeM.js +4 -0
- package/dist/{vega-component-B5sxdjMq.js → vega-component-DouPy8AI.js} +12 -15
- package/dist/{vega-loader.browser-DqHiiBeQ.js → vega-loader.browser-CQ-lnUkI.js} +3 -3
- package/dist/velocity-IqE7qYKE.js +4 -0
- package/dist/verilog-xtyaWTnc.js +4 -0
- package/dist/vhdl-BaqXCtf3.js +4 -0
- package/dist/webidl-BDB8PTTO.js +4 -0
- package/dist/xquery-BIC-qj9Z.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-CFxuifYY.js → xychartDiagram-PRI3JC2R-rEm_SIsC.js} +13 -13
- package/dist/yacas-ifv5tftd.js +4 -0
- package/dist/z80-B8zOMVNt.js +4 -0
- package/package.json +11 -11
- package/src/__mocks__/requests.ts +2 -0
- package/src/components/app-config/ai-config.tsx +1 -1
- package/src/components/app-config/user-config-form.tsx +27 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +16 -24
- package/src/components/data-table/charts/lazy-chart.tsx +1 -1
- package/src/components/data-table/data-table.tsx +20 -18
- package/src/components/data-table/pagination.tsx +138 -56
- package/src/components/data-table/range-focus/__tests__/cell-selection-stats.test.tsx +365 -0
- package/src/components/data-table/range-focus/__tests__/test-utils.ts +77 -0
- package/src/components/data-table/range-focus/__tests__/utils.test.ts +205 -65
- package/src/components/data-table/range-focus/cell-selection-stats.tsx +79 -0
- package/src/components/data-table/range-focus/utils.ts +69 -7
- package/src/components/data-table/types.ts +4 -0
- package/src/components/databases/engine-variable.tsx +2 -1
- package/src/components/databases/icons/google-cloud-storage.svg +38 -0
- package/src/components/datasources/components.tsx +6 -2
- package/src/components/dependency-graph/minimap-content.tsx +3 -5
- package/src/components/dependency-graph/utils/__tests__/cell-preview.test.ts +143 -0
- package/src/components/dependency-graph/utils/cell-preview.ts +46 -0
- package/src/components/editor/Output.tsx +3 -28
- package/src/components/editor/cell/cell-actions.tsx +6 -5
- package/src/components/editor/cell/cell-context-menu.tsx +11 -7
- package/src/components/editor/chrome/panels/components.tsx +88 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +120 -7
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +27 -15
- package/src/components/editor/chrome/panels/session-panel.tsx +24 -35
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +17 -1
- package/src/components/editor/file-tree/file-explorer.tsx +38 -6
- package/src/components/editor/file-tree/file-header.tsx +61 -0
- package/src/components/editor/file-tree/file-viewer.tsx +88 -167
- package/src/components/editor/file-tree/renderers.tsx +142 -21
- package/src/components/editor/file-tree/requesting-tree.tsx +6 -2
- package/src/components/editor/output/console/ConsoleOutput.tsx +34 -2
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +13 -0
- package/src/components/icons/marimo-icons.tsx +173 -0
- package/src/components/markdown/markdown-renderer.tsx +3 -20
- package/src/components/pages/run-page.tsx +2 -2
- package/src/components/storage/components.tsx +86 -0
- package/src/components/storage/storage-file-viewer.tsx +225 -0
- package/src/components/storage/storage-inspector.tsx +610 -0
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +79 -0
- package/src/core/ai/tools/edit-notebook-tool.ts +5 -0
- package/src/core/cells/__tests__/cells.test.ts +30 -0
- package/src/core/cells/cells.ts +6 -1
- package/src/core/cells/outline.ts +7 -1
- package/src/core/cells/outputs.ts +20 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +76 -62
- package/src/core/codemirror/language/panel/sql.tsx +3 -3
- package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +123 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +196 -0
- package/src/core/codemirror/lsp/normalize-markdown-math.ts +381 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +59 -3
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/core/dom/__tests__/outline.test.ts +48 -0
- package/src/core/dom/outline.ts +13 -2
- package/src/core/islands/bridge.ts +2 -0
- package/src/core/islands/main.ts +2 -0
- package/src/core/network/requests-lazy.ts +2 -0
- package/src/core/network/requests-network.ts +16 -0
- package/src/core/network/requests-static.ts +2 -0
- package/src/core/network/requests-toasting.tsx +2 -0
- package/src/core/network/types.ts +6 -0
- package/src/core/storage/__tests__/state.test.ts +345 -0
- package/src/core/storage/__tests__/types.test.ts +83 -0
- package/src/core/storage/__tests__/useStorageEntries.test.tsx +187 -0
- package/src/core/storage/request-registry.ts +36 -0
- package/src/core/storage/state.ts +132 -0
- package/src/core/storage/types.ts +57 -0
- package/src/core/wasm/bridge.ts +2 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +19 -1
- package/src/hooks/__tests__/useNonce.test.tsx +127 -0
- package/src/hooks/__tests__/useOverflowDetection.test.tsx +127 -0
- package/src/hooks/useNonce.ts +6 -5
- package/src/hooks/useOverflowDetection.ts +36 -0
- package/src/plugins/impl/MatrixPlugin.tsx +5 -2
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
- package/src/plugins/impl/code/any-language-editor.tsx +14 -3
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +37 -2
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +13 -1
- package/src/utils/__tests__/filenames.test.ts +54 -1
- package/src/utils/filenames.ts +42 -0
- package/dist/apl-C1bki_dE.js +0 -4
- package/dist/architecture-U656AL7Q-Jd2CvPgJ.js +0 -6
- package/dist/asciiarmor-BdlkCCRr.js +0 -4
- package/dist/asn1-CvE30hox.js +0 -4
- package/dist/brainfuck-BalwWy1a.js +0 -4
- package/dist/classDiagram-2ON5EDUG-CUJlS_eo.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-BhSPpbkE.js +0 -30
- package/dist/clojure-CUC2I1hM.js +0 -4
- package/dist/cmake-8PcMxXnB.js +0 -4
- package/dist/cobol-DkkkDz5v.js +0 -4
- package/dist/coffeescript-CCupxOZf.js +0 -4
- package/dist/commonlisp-DhUfGX6b.js +0 -4
- package/dist/crystal-DSaw6rFQ.js +0 -4
- package/dist/css-D4QDewkG.js +0 -4
- package/dist/cypher-CrYVqw_F.js +0 -4
- package/dist/d-Cr3H3pPx.js +0 -4
- package/dist/diff-ODiZJGls.js +0 -4
- package/dist/dist-BA-HK7pI.js +0 -5
- package/dist/dist-BD5GU948.js +0 -5
- package/dist/dist-BIYmAsND.js +0 -5
- package/dist/dist-BcKTJXJi.js +0 -5
- package/dist/dist-BgnrtcWg.js +0 -8
- package/dist/dist-C1njTlBq.js +0 -5
- package/dist/dist-CSKHwJYH.js +0 -5
- package/dist/dist-CSKKyiIq.js +0 -5
- package/dist/dist-CrQ_pOuK.js +0 -6
- package/dist/dist-Cskx1daf.js +0 -5
- package/dist/dist-D4i0Ef34.js +0 -8
- package/dist/dist-DOcn61TX.js +0 -8
- package/dist/dist-DwMejAPB.js +0 -6
- package/dist/dist-DzSe1wby.js +0 -8
- package/dist/dtd-C-t2Rk7F.js +0 -4
- package/dist/dylan-B4ctBLGp.js +0 -4
- package/dist/ecl-DqWfymni.js +0 -4
- package/dist/eiffel-DjBKKAr7.js +0 -4
- package/dist/elm--fxeC0FV.js +0 -4
- package/dist/erlang-CaKXCX6H.js +0 -4
- package/dist/factor-DlLO5EFS.js +0 -4
- package/dist/flatten-CWZjF1fc.js +0 -8
- package/dist/forth-rOO6LVj_.js +0 -4
- package/dist/fortran-CUg15VGR.js +0 -4
- package/dist/gas-BMRJspiW.js +0 -4
- package/dist/gherkin-DRxzijZU.js +0 -4
- package/dist/graphlib-CwMnCnQ9.js +0 -362
- package/dist/groovy-BmrQ8pUP.js +0 -4
- package/dist/haskell-BuaYfKOz.js +0 -4
- package/dist/haxe-DcH9eA0a.js +0 -5
- package/dist/idl-DGlcm4Ls.js +0 -4
- package/dist/infoDiagram-WHAUD3N6-B42WjAPh.js +0 -30
- package/dist/javascript-CeTk7rzr.js +0 -4
- package/dist/julia-BoP_q1gm.js +0 -4
- package/dist/livescript-B7IMN-ba.js +0 -4
- package/dist/lua-q1InavKb.js +0 -4
- package/dist/main-DmxVpB19.js +0 -1089
- package/dist/mathematica-DvR8-_EI.js +0 -4
- package/dist/mbox-7h5MNBS_.js +0 -4
- package/dist/merge-Db4Uulx4.js +0 -222
- package/dist/min-ypdVXicC.js +0 -38
- package/dist/mirc-D-XM8A5c.js +0 -4
- package/dist/mllike-BQGkkbmf.js +0 -6
- package/dist/modelica-D_yRj_WU.js +0 -4
- package/dist/mscgen-B-rltAjp.js +0 -6
- package/dist/mumps-2kh8TU2b.js +0 -4
- package/dist/now-Dwu5ou19.js +0 -31
- package/dist/nsis-CtusEqwb.js +0 -4
- package/dist/ntriples-BdAXw6zV.js +0 -4
- package/dist/octave-CsNFmVp5.js +0 -4
- package/dist/oz-odIXCrKd.js +0 -4
- package/dist/pascal-B9Mfk3Fo.js +0 -4
- package/dist/perl-C48inLcz.js +0 -4
- package/dist/pig-uwRtAssU.js +0 -4
- package/dist/powershell-CXqlca-i.js +0 -4
- package/dist/properties-D6Zu1rpK.js +0 -4
- package/dist/protobuf-BlNNWZaR.js +0 -4
- package/dist/pug-DytcK7bv.js +0 -4
- package/dist/puppet-lJ8Ok3iY.js +0 -4
- package/dist/python-cMaF7kUp.js +0 -4
- package/dist/q-Dgt2HYQh.js +0 -4
- package/dist/r-Bm4S4awf.js +0 -4
- package/dist/range-D9jxVFd_.js +0 -67
- package/dist/react-vega-1ub36dPZ.js +0 -9
- package/dist/reduce-C6NEPj6s.js +0 -133
- package/dist/rpm-_8LbzMVc.js +0 -5
- package/dist/ruby-Cr8IJ5VZ.js +0 -4
- package/dist/sas-CFcSfo2_.js +0 -4
- package/dist/scheme-N4XRoKgc.js +0 -4
- package/dist/shell-B4L7f_ds.js +0 -4
- package/dist/sieve-UI6J3Gm0.js +0 -4
- package/dist/slides-component-ql7-5GDI.js +0 -3048
- package/dist/smalltalk-BuaPZAZU.js +0 -4
- package/dist/sparql-1rKrq463.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-7i6jBXe6.js +0 -29
- package/dist/stex-D2rme5UG.js +0 -4
- package/dist/stylus-DvSovJEP.js +0 -4
- package/dist/swift-D-_E7Yyb.js +0 -4
- package/dist/tcl-Di5sAVHN.js +0 -4
- package/dist/textile-Benwt66z.js +0 -4
- package/dist/toml-CeOvPOkY.js +0 -4
- package/dist/troff-DJN9hfgu.js +0 -4
- package/dist/ttcn-DQW2Psjf.js +0 -4
- package/dist/ttcn-cfg-zFG_MNpg.js +0 -4
- package/dist/turtle-DHRyNlSc.js +0 -4
- package/dist/vb-CXWH9DD-.js +0 -4
- package/dist/vbscript-qr8qVck5.js +0 -4
- package/dist/velocity-C_9pUJRx.js +0 -4
- package/dist/verilog-DxBstgBa.js +0 -4
- package/dist/vhdl-odUxAbE6.js +0 -4
- package/dist/webidl-Dfn5Rku4.js +0 -4
- package/dist/xquery-CrJs6SXr.js +0 -4
- package/dist/yacas-B-uDDLZe.js +0 -4
- package/dist/z80-51gxgAXE.js +0 -4
- /package/dist/{ImageComparisonComponent-CRbA-1eg.js → ImageComparisonComponent-BYQfAfSR.js} +0 -0
- /package/dist/{Plot-C9vQQj4X.js → Plot-DfUav0o0.js} +0 -0
- /package/dist/{_arrayReduce-REKcIEj3.js → _arrayReduce-BfFy684W.js} +0 -0
- /package/dist/{_hasUnicode-DrSAc5A5.js → _hasUnicode-C32WqUu7.js} +0 -0
- /package/dist/{apl-Oc3bL26_.js → apl-DRxKiEot.js} +0 -0
- /package/dist/{array-CEIRxyh3.js → array-D-nrDupM.js} +0 -0
- /package/dist/{asciiarmor-DTbPh2VI.js → asciiarmor-C8HoXFIm.js} +0 -0
- /package/dist/{asn1-CGhwu1Ri.js → asn1-9Bo0DYT-.js} +0 -0
- /package/dist/{asterisk-Crp-Pien.js → asterisk-BsiuGzWq.js} +0 -0
- /package/dist/{brainfuck-CA0L8lRq.js → brainfuck-Db8njC-p.js} +0 -0
- /package/dist/{click-outside-container-C_k38vlR.js → click-outside-container-CKfwEZqH.js} +0 -0
- /package/dist/{clike-CEtUBPHD.js → clike-CFhUNtI5.js} +0 -0
- /package/dist/{clojure-BszjvdGo.js → clojure-CX7oovsp.js} +0 -0
- /package/dist/{cmake-B2Gvps8b.js → cmake-C29AR2kk.js} +0 -0
- /package/dist/{cobol-DuMch8nn.js → cobol-CNkuRW9i.js} +0 -0
- /package/dist/{coffeescript-L9aKXVsJ.js → coffeescript-BJAbfGam.js} +0 -0
- /package/dist/{colors-DR_aHfmQ.js → colors-6nB_pSln.js} +0 -0
- /package/dist/{common-keywords-NhoiR-2S.js → common-keywords-BAkLFdud.js} +0 -0
- /package/dist/{commonlisp-CrtdssxB.js → commonlisp-BTNhj2l9.js} +0 -0
- /package/dist/{crystal-vvNY0LpY.js → crystal-CZc0nIm9.js} +0 -0
- /package/dist/{css-B1GdzqT1.js → css-L2-0OTXc.js} +0 -0
- /package/dist/{cypher-BtZvV7bW.js → cypher-Dnc6MXl0.js} +0 -0
- /package/dist/{cytoscape.esm-CgJFiP_E.js → cytoscape.esm-BXzSsA6N.js} +0 -0
- /package/dist/{d-B0UN3V-Z.js → d-C6X9iIga.js} +0 -0
- /package/dist/{defaultLocale-DjFHq3Xk.js → defaultLocale-Bklbu-Tp.js} +0 -0
- /package/dist/{defaultLocale-B_A76Zpk.js → defaultLocale-CfQ4kBaV.js} +0 -0
- /package/dist/{diff-DOpgjj1W.js → diff-ZzKinYqY.js} +0 -0
- /package/dist/{dist-BYznkC5E.js → dist-Bymy0kEH.js} +0 -0
- /package/dist/{dtd-Ctnjxrle.js → dtd-CytEpkAo.js} +0 -0
- /package/dist/{duckdb-keywords-BnNtuiVz.js → duckdb-keywords-C1WxmSfG.js} +0 -0
- /package/dist/{dylan-DFXkoaZy.js → dylan-CZByFBEQ.js} +0 -0
- /package/dist/{ebnf-CFKHGc8c.js → ebnf-BF2FOt-m.js} +0 -0
- /package/dist/{ecl-C1NExZip.js → ecl-Cp7L1F5B.js} +0 -0
- /package/dist/{eiffel-uXVGgleg.js → eiffel-C66yjnFL.js} +0 -0
- /package/dist/{elm-CBOFnnib.js → elm-DtHo-73e.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm--WpIBtj8.js → emotion-is-prop-valid.esm-DtW2o230.js} +0 -0
- /package/dist/{erlang-DMnrT8XK.js → erlang-C_sj44mF.js} +0 -0
- /package/dist/{error-banner-vCG-EbUQ.js → error-banner-D0tXnwl4.js} +0 -0
- /package/dist/{esm-0_ieXYNc.js → esm-BWftfC-A.js} +0 -0
- /package/dist/{fcl-DPZwieM9.js → fcl-BhLcvRo_.js} +0 -0
- /package/dist/{forth-DDpxS4nw.js → forth-CIDHh56T.js} +0 -0
- /package/dist/{fortran-B6uYqQMz.js → fortran-BQrDVXRU.js} +0 -0
- /package/dist/{gas-BKnWzuFz.js → gas-D4HQPB0Q.js} +0 -0
- /package/dist/{gherkin-pBt0wT4X.js → gherkin-UB2gJHdT.js} +0 -0
- /package/dist/{groovy-DKsn4ppB.js → groovy-DVz6jkOx.js} +0 -0
- /package/dist/{haskell-BJVBJQcy.js → haskell-CpUdAPCz.js} +0 -0
- /package/dist/{haxe-rLN5UZU5.js → haxe-DCV5_cqD.js} +0 -0
- /package/dist/{http-AQJFxSug.js → http-C_TDb8VX.js} +0 -0
- /package/dist/{idl-B4mwMAo-.js → idl-D7WCIgHw.js} +0 -0
- /package/dist/{init-TaqZJsBY.js → init-Ci8VD8ZH.js} +0 -0
- /package/dist/{invariant-D-K49MfV.js → invariant-D9QLJ4SZ.js} +0 -0
- /package/dist/{javascript-Hf2NLNC0.js → javascript-B2Rn0Lmd.js} +0 -0
- /package/dist/{julia-GGpx21YN.js → julia-ApprtEaw.js} +0 -0
- /package/dist/{katex-Ba7xZPrx.js → katex-Bk_FvVSR.js} +0 -0
- /package/dist/{livescript-CSvXMspZ.js → livescript-BMLIlM7C.js} +0 -0
- /package/dist/{lua-CVMR5LMW.js → lua-DdDaW3tC.js} +0 -0
- /package/dist/{math-CTnb-N1W.js → math-HUZifhTs.js} +0 -0
- /package/dist/{mathematica-JENNt-p4.js → mathematica-PnNN7c2Z.js} +0 -0
- /package/dist/{mbox-mzifoc8E.js → mbox-B84OtHBK.js} +0 -0
- /package/dist/{mirc-BXoiItvN.js → mirc-BVWXJxIq.js} +0 -0
- /package/dist/{mllike-H-KR9OuH.js → mllike-BawXWupH.js} +0 -0
- /package/dist/{modelica-B6Hm3mMl.js → modelica-C8-X4Hf_.js} +0 -0
- /package/dist/{mscgen-D8TF_Hei.js → mscgen-BOM6dDj8.js} +0 -0
- /package/dist/{mumps-CD-kNPt4.js → mumps-DQOY8n05.js} +0 -0
- /package/dist/{nginx-hpek_Tnq.js → nginx-DkMgA__9.js} +0 -0
- /package/dist/{node-sql-parser-ChQUJk8A.js → node-sql-parser-D53LM_7b.js} +0 -0
- /package/dist/{ntriples-DgnpxU40.js → ntriples-DU8VrXdW.js} +0 -0
- /package/dist/{octave-CkobqyVm.js → octave-BzTIBsQ8.js} +0 -0
- /package/dist/{oz-ChDLd9tS.js → oz-DKFcZsoi.js} +0 -0
- /package/dist/{pascal-CvlkwK7E.js → pascal-DHBZ15pT.js} +0 -0
- /package/dist/{path-7gr7eZmp.js → path-BVI7RNUv.js} +0 -0
- /package/dist/{perl-BNEFTNbM.js → perl-75NMI3w0.js} +0 -0
- /package/dist/{pig-Cd1DMS7P.js → pig-B-HY1fo_.js} +0 -0
- /package/dist/{powershell-CPxA0zpc.js → powershell-DEH22U53.js} +0 -0
- /package/dist/{properties-BaFBm-Xa.js → properties-B1MzBoJC.js} +0 -0
- /package/dist/{protobuf-BQV_-X0H.js → protobuf-Dr14KV0p.js} +0 -0
- /package/dist/{puppet-LXLST0mx.js → puppet-C4z38l7v.js} +0 -0
- /package/dist/{purify.es-D4vaFt5N.js → purify.es-CyOIw8ru.js} +0 -0
- /package/dist/{python-DLjLzX4k.js → python-D2L7Nknt.js} +0 -0
- /package/dist/{q-DswTX1Y9.js → q-PxipHfgS.js} +0 -0
- /package/dist/{r-CO7NpMwE.js → r-CEMMu_Tf.js} +0 -0
- /package/dist/{range-DwpxnYuB.js → range-BToS7LsA.js} +0 -0
- /package/dist/{rpm-BlmEDT6r.js → rpm-D3xyahkR.js} +0 -0
- /package/dist/{ruby-BTPKgeZZ.js → ruby-DwEkwdiu.js} +0 -0
- /package/dist/{sas-DTDTiNO8.js → sas-L1W0BRft.js} +0 -0
- /package/dist/{scheme-UzAAg4GJ.js → scheme-CTybTrX0.js} +0 -0
- /package/dist/{shell-DQ0hQCsB.js → shell-BSx3LZnu.js} +0 -0
- /package/dist/{sieve-BVyYIx9u.js → sieve-BjUfbv-6.js} +0 -0
- /package/dist/{simple-mode-Dryu-fC9.js → simple-mode-IPZGFbI6.js} +0 -0
- /package/dist/{smalltalk-DAdMAHTu.js → smalltalk-BlzuYrMv.js} +0 -0
- /package/dist/{solr-BSTJW269.js → solr-Cj_9RM4d.js} +0 -0
- /package/dist/{sparql-Bi7quYgw.js → sparql-BXKjQ0cK.js} +0 -0
- /package/dist/{spreadsheet-CiBky1_y.js → spreadsheet-CifI10GO.js} +0 -0
- /package/dist/{sql-BXZovj-z.js → sql-B0bFyY1c.js} +0 -0
- /package/dist/{stex-DIvyJfNO.js → stex-BIsgBmK4.js} +0 -0
- /package/dist/{stylus-jhpzcQ6Y.js → stylus-CqrLLVnG.js} +0 -0
- /package/dist/{swift-BrO8qThZ.js → swift-DIqvj3_G.js} +0 -0
- /package/dist/{tcl-s5QI5gv3.js → tcl-B8bOIGVK.js} +0 -0
- /package/dist/{textile-ClhvJrxM.js → textile-DZsjavD_.js} +0 -0
- /package/dist/{tiddlywiki-DLTDKQCh.js → tiddlywiki-BbGdvEjx.js} +0 -0
- /package/dist/{tiki-tw_kBvbp.js → tiki-BYesmRDo.js} +0 -0
- /package/dist/{timer-DV8t68ti.js → timer-CPsmIOdm.js} +0 -0
- /package/dist/{toml-TFa3EJQE.js → toml-Uc7m08nl.js} +0 -0
- /package/dist/{treemap-CQJ0bIDy.js → treemap-DMn4tIJ7.js} +0 -0
- /package/dist/{troff-SqLg0heF.js → troff-GEl5wcXR.js} +0 -0
- /package/dist/{ttcn-cfg-Dopc-iwE.js → ttcn-cfg-dZQ_fWTH.js} +0 -0
- /package/dist/{ttcn-Cfrap7HJ.js → ttcn-pr4FDOLT.js} +0 -0
- /package/dist/{turtle-Dt52DvVH.js → turtle-TPRDOknA.js} +0 -0
- /package/dist/{vb-D1pAvfDe.js → vb-BJUAeTYr.js} +0 -0
- /package/dist/{vbscript-DZ7RBxn5.js → vbscript-CcJ6Z3ic.js} +0 -0
- /package/dist/{velocity-Csau7eZy.js → velocity-pq4ZMzU3.js} +0 -0
- /package/dist/{verilog-gXlZACs5.js → verilog-timMNjHt.js} +0 -0
- /package/dist/{vhdl-NaUWbI1B.js → vhdl-DYFbVKNm.js} +0 -0
- /package/dist/{webidl-BJmPjW01.js → webidl-pue9oqnb.js} +0 -0
- /package/dist/{xquery-CJIPsC0g.js → xquery-DeItGynK.js} +0 -0
- /package/dist/{yacas-8f2Vjiiz.js → yacas-By2Qrjba.js} +0 -0
- /package/dist/{z80-s5Xk2hCP.js → z80-C7iLsyPC.js} +0 -0
- /package/src/components/editor/file-tree/__tests__/{file-expolorer.test.ts → file-explorer.test.ts} +0 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import { CommandList } from "cmdk";
|
|
4
|
+
import {
|
|
5
|
+
ChevronRightIcon,
|
|
6
|
+
CopyIcon,
|
|
7
|
+
DownloadIcon,
|
|
8
|
+
FolderIcon,
|
|
9
|
+
HardDriveIcon,
|
|
10
|
+
HelpCircleIcon,
|
|
11
|
+
LoaderCircle,
|
|
12
|
+
MoreVerticalIcon,
|
|
13
|
+
RefreshCwIcon,
|
|
14
|
+
ViewIcon,
|
|
15
|
+
XIcon,
|
|
16
|
+
} from "lucide-react";
|
|
17
|
+
import React, { useCallback, useState } from "react";
|
|
18
|
+
import { useLocale } from "react-aria";
|
|
19
|
+
import { EngineVariable } from "@/components/databases/engine-variable";
|
|
20
|
+
import { PanelEmptyState } from "@/components/editor/chrome/panels/empty-state";
|
|
21
|
+
import { Command, CommandInput, CommandItem } from "@/components/ui/command";
|
|
22
|
+
import {
|
|
23
|
+
DropdownMenu,
|
|
24
|
+
DropdownMenuContent,
|
|
25
|
+
DropdownMenuItem,
|
|
26
|
+
DropdownMenuTrigger,
|
|
27
|
+
} from "@/components/ui/dropdown-menu";
|
|
28
|
+
import { Tooltip } from "@/components/ui/tooltip";
|
|
29
|
+
import { toast } from "@/components/ui/use-toast";
|
|
30
|
+
import { DownloadStorage } from "@/core/storage/request-registry";
|
|
31
|
+
import {
|
|
32
|
+
useStorage,
|
|
33
|
+
useStorageActions,
|
|
34
|
+
useStorageEntries,
|
|
35
|
+
} from "@/core/storage/state";
|
|
36
|
+
import type {
|
|
37
|
+
StorageEntry,
|
|
38
|
+
StorageNamespace,
|
|
39
|
+
StoragePathKey,
|
|
40
|
+
} from "@/core/storage/types";
|
|
41
|
+
import { storagePathKey, storageUrl } from "@/core/storage/types";
|
|
42
|
+
import type { VariableName } from "@/core/variables/types";
|
|
43
|
+
import { cn } from "@/utils/cn";
|
|
44
|
+
import { copyToClipboard } from "@/utils/copy";
|
|
45
|
+
import { downloadByURL } from "@/utils/download";
|
|
46
|
+
import { formatBytes } from "@/utils/formatting";
|
|
47
|
+
import { Logger } from "@/utils/Logger";
|
|
48
|
+
import { ErrorState } from "../datasources/components";
|
|
49
|
+
import { Button } from "../ui/button";
|
|
50
|
+
import { ProtocolIcon, renderFileIcon } from "./components";
|
|
51
|
+
import { StorageFileViewer } from "./storage-file-viewer";
|
|
52
|
+
|
|
53
|
+
interface OpenFileInfo {
|
|
54
|
+
entry: StorageEntry;
|
|
55
|
+
namespace: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Pixels per depth level. Applied as paddingLeft on each full-width item
|
|
59
|
+
// so the selection highlight still spans the entire panel.
|
|
60
|
+
const INDENT_PX = 16;
|
|
61
|
+
|
|
62
|
+
function indentStyle(depth: number): React.CSSProperties {
|
|
63
|
+
return { paddingLeft: depth * INDENT_PX };
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function formatDate(timestamp: number, locale: string): string {
|
|
67
|
+
const date = new Date(timestamp * 1000);
|
|
68
|
+
return date.toLocaleDateString(locale, {
|
|
69
|
+
month: "short",
|
|
70
|
+
day: "numeric",
|
|
71
|
+
hour: "2-digit",
|
|
72
|
+
minute: "2-digit",
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Extract display name from a full path (e.g., "folder/subfolder/" -> "subfolder") */
|
|
77
|
+
function displayName(path: string): string {
|
|
78
|
+
// Remove trailing slash
|
|
79
|
+
const trimmed = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
80
|
+
const parts = trimmed.split("/");
|
|
81
|
+
return parts[parts.length - 1] || trimmed;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Recursively check whether an entry (or any of its loaded descendants)
|
|
86
|
+
* matches the search query.
|
|
87
|
+
*/
|
|
88
|
+
function entryMatchesSearch(
|
|
89
|
+
entry: StorageEntry,
|
|
90
|
+
namespace: string,
|
|
91
|
+
searchValue: string,
|
|
92
|
+
entriesByPath: ReadonlyMap<StoragePathKey, StorageEntry[]>,
|
|
93
|
+
): boolean {
|
|
94
|
+
const query = searchValue.toLowerCase();
|
|
95
|
+
|
|
96
|
+
if (displayName(entry.path).toLowerCase().includes(query)) {
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// For directories, check loaded children recursively
|
|
101
|
+
if (entry.kind === "directory") {
|
|
102
|
+
const children = entriesByPath.get(storagePathKey(namespace, entry.path));
|
|
103
|
+
if (children) {
|
|
104
|
+
return children.some((child) =>
|
|
105
|
+
entryMatchesSearch(child, namespace, searchValue, entriesByPath),
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Filter entries to those matching the search (or having loaded descendants
|
|
115
|
+
* that match). Returns all entries when there is no active search.
|
|
116
|
+
*/
|
|
117
|
+
function filterEntries(
|
|
118
|
+
entries: StorageEntry[],
|
|
119
|
+
namespace: string,
|
|
120
|
+
searchValue: string,
|
|
121
|
+
entriesByPath: ReadonlyMap<StoragePathKey, StorageEntry[]>,
|
|
122
|
+
): StorageEntry[] {
|
|
123
|
+
if (!searchValue.trim()) {
|
|
124
|
+
return entries;
|
|
125
|
+
}
|
|
126
|
+
return entries.filter((entry) =>
|
|
127
|
+
entryMatchesSearch(entry, namespace, searchValue, entriesByPath),
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Lazily loaded children of a directory entry.
|
|
133
|
+
* Caches fetched entries in the Jotai store so re-expanding doesn't re-fetch.
|
|
134
|
+
*/
|
|
135
|
+
const StorageEntryChildren: React.FC<{
|
|
136
|
+
namespace: string;
|
|
137
|
+
protocol: string;
|
|
138
|
+
rootPath: string;
|
|
139
|
+
prefix: string;
|
|
140
|
+
depth: number;
|
|
141
|
+
locale: string;
|
|
142
|
+
searchValue: string;
|
|
143
|
+
onOpenFile: (info: OpenFileInfo) => void;
|
|
144
|
+
}> = ({
|
|
145
|
+
namespace,
|
|
146
|
+
protocol,
|
|
147
|
+
rootPath,
|
|
148
|
+
prefix,
|
|
149
|
+
depth,
|
|
150
|
+
locale,
|
|
151
|
+
searchValue,
|
|
152
|
+
onOpenFile,
|
|
153
|
+
}) => {
|
|
154
|
+
const { entriesByPath } = useStorage();
|
|
155
|
+
const {
|
|
156
|
+
entries: children,
|
|
157
|
+
isPending,
|
|
158
|
+
error,
|
|
159
|
+
} = useStorageEntries(namespace, prefix);
|
|
160
|
+
|
|
161
|
+
if (isPending) {
|
|
162
|
+
return (
|
|
163
|
+
<div
|
|
164
|
+
className="flex items-center gap-1.5 py-1 text-xs text-muted-foreground"
|
|
165
|
+
style={indentStyle(depth)}
|
|
166
|
+
>
|
|
167
|
+
<LoaderCircle className="h-3 w-3 animate-spin" />
|
|
168
|
+
Loading...
|
|
169
|
+
</div>
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (error) {
|
|
174
|
+
return (
|
|
175
|
+
<div className="py-1 text-xs text-destructive" style={indentStyle(depth)}>
|
|
176
|
+
Failed to load: {error.message}
|
|
177
|
+
</div>
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (children.length === 0) {
|
|
182
|
+
return (
|
|
183
|
+
<div
|
|
184
|
+
className="py-1 text-xs text-muted-foreground italic"
|
|
185
|
+
style={indentStyle(depth)}
|
|
186
|
+
>
|
|
187
|
+
Empty
|
|
188
|
+
</div>
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const filtered = filterEntries(
|
|
193
|
+
children,
|
|
194
|
+
namespace,
|
|
195
|
+
searchValue,
|
|
196
|
+
entriesByPath,
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
return (
|
|
200
|
+
<>
|
|
201
|
+
{filtered.map((child) => (
|
|
202
|
+
<StorageEntryRow
|
|
203
|
+
key={child.path}
|
|
204
|
+
entry={child}
|
|
205
|
+
namespace={namespace}
|
|
206
|
+
protocol={protocol}
|
|
207
|
+
rootPath={rootPath}
|
|
208
|
+
depth={depth}
|
|
209
|
+
locale={locale}
|
|
210
|
+
searchValue={searchValue}
|
|
211
|
+
onOpenFile={onOpenFile}
|
|
212
|
+
/>
|
|
213
|
+
))}
|
|
214
|
+
</>
|
|
215
|
+
);
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const StorageEntryRow: React.FC<{
|
|
219
|
+
entry: StorageEntry;
|
|
220
|
+
namespace: string;
|
|
221
|
+
protocol: string;
|
|
222
|
+
rootPath: string;
|
|
223
|
+
depth: number;
|
|
224
|
+
locale: string;
|
|
225
|
+
searchValue: string;
|
|
226
|
+
onOpenFile: (info: OpenFileInfo) => void;
|
|
227
|
+
}> = ({
|
|
228
|
+
entry,
|
|
229
|
+
namespace,
|
|
230
|
+
protocol,
|
|
231
|
+
rootPath,
|
|
232
|
+
depth,
|
|
233
|
+
locale,
|
|
234
|
+
searchValue,
|
|
235
|
+
onOpenFile,
|
|
236
|
+
}) => {
|
|
237
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
238
|
+
const { entriesByPath } = useStorage();
|
|
239
|
+
const isDir = entry.kind === "directory";
|
|
240
|
+
const name = displayName(entry.path);
|
|
241
|
+
const hasSearch = !!searchValue.trim();
|
|
242
|
+
|
|
243
|
+
// During a search, auto-expand directories whose loaded descendants match
|
|
244
|
+
const hasMatchingDescendants =
|
|
245
|
+
isDir &&
|
|
246
|
+
hasSearch &&
|
|
247
|
+
!!entriesByPath
|
|
248
|
+
.get(storagePathKey(namespace, entry.path))
|
|
249
|
+
?.some((child) =>
|
|
250
|
+
entryMatchesSearch(child, namespace, searchValue, entriesByPath),
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
// Folder is shown expanded by manual toggle OR by search auto-expand
|
|
254
|
+
const effectiveExpanded = isExpanded || hasMatchingDescendants;
|
|
255
|
+
|
|
256
|
+
const handleDownload = useCallback(async () => {
|
|
257
|
+
try {
|
|
258
|
+
const result = await DownloadStorage.request({
|
|
259
|
+
namespace,
|
|
260
|
+
path: entry.path,
|
|
261
|
+
});
|
|
262
|
+
if (result.error) {
|
|
263
|
+
toast({
|
|
264
|
+
title: "Download failed",
|
|
265
|
+
description: result.error,
|
|
266
|
+
variant: "danger",
|
|
267
|
+
});
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
if (result.url) {
|
|
271
|
+
downloadByURL(result.url, result.filename ?? "download");
|
|
272
|
+
}
|
|
273
|
+
} catch (error) {
|
|
274
|
+
Logger.error("Failed to download storage entry", error);
|
|
275
|
+
toast({
|
|
276
|
+
title: "Download failed",
|
|
277
|
+
description: String(error),
|
|
278
|
+
variant: "danger",
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}, [namespace, entry.path]);
|
|
282
|
+
|
|
283
|
+
return (
|
|
284
|
+
<>
|
|
285
|
+
<CommandItem
|
|
286
|
+
className={cn(
|
|
287
|
+
"text-xs flex items-center gap-1.5 cursor-pointer rounded-none group h-6.5",
|
|
288
|
+
isDir && "font-medium",
|
|
289
|
+
)}
|
|
290
|
+
style={indentStyle(depth)}
|
|
291
|
+
value={`${namespace}:${entry.path}`}
|
|
292
|
+
onSelect={() => {
|
|
293
|
+
if (isDir) {
|
|
294
|
+
setIsExpanded(!effectiveExpanded);
|
|
295
|
+
} else {
|
|
296
|
+
onOpenFile({ entry, namespace });
|
|
297
|
+
}
|
|
298
|
+
}}
|
|
299
|
+
>
|
|
300
|
+
{isDir ? (
|
|
301
|
+
<ChevronRightIcon
|
|
302
|
+
className={cn(
|
|
303
|
+
"h-3 w-3 shrink-0 transition-transform",
|
|
304
|
+
effectiveExpanded && "rotate-90",
|
|
305
|
+
)}
|
|
306
|
+
/>
|
|
307
|
+
) : (
|
|
308
|
+
<span className="w-3 shrink-0" />
|
|
309
|
+
)}
|
|
310
|
+
{isDir ? (
|
|
311
|
+
<FolderIcon className="h-3.5 w-3.5 text-amber-500 shrink-0" />
|
|
312
|
+
) : (
|
|
313
|
+
renderFileIcon(name)
|
|
314
|
+
)}
|
|
315
|
+
<span className="truncate flex-1 text-left">{name}</span>
|
|
316
|
+
<div className="flex items-center">
|
|
317
|
+
{entry.size > 0 && (
|
|
318
|
+
<span className="text-[10px] text-muted-foreground pr-2 opacity-0 group-hover:opacity-100 transition-opacity tabular-nums">
|
|
319
|
+
{formatBytes(entry.size, locale)}
|
|
320
|
+
</span>
|
|
321
|
+
)}
|
|
322
|
+
{entry.lastModified != null && (
|
|
323
|
+
<Tooltip
|
|
324
|
+
content={`Last modified: ${new Date(entry.lastModified * 1000).toLocaleString()}`}
|
|
325
|
+
>
|
|
326
|
+
<span className="text-[10px] text-muted-foreground pr-1 opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap">
|
|
327
|
+
{formatDate(entry.lastModified, locale)}
|
|
328
|
+
</span>
|
|
329
|
+
</Tooltip>
|
|
330
|
+
)}
|
|
331
|
+
<DropdownMenu>
|
|
332
|
+
<DropdownMenuTrigger asChild={true}>
|
|
333
|
+
<Button
|
|
334
|
+
variant="text"
|
|
335
|
+
size="icon"
|
|
336
|
+
className="opacity-0 group-hover:opacity-100 transition-opacity hover:shadow-none hover:text-link text-muted-foreground"
|
|
337
|
+
onClick={(e) => e.stopPropagation()}
|
|
338
|
+
>
|
|
339
|
+
<MoreVerticalIcon className="h-3 w-3" />
|
|
340
|
+
</Button>
|
|
341
|
+
</DropdownMenuTrigger>
|
|
342
|
+
<DropdownMenuContent
|
|
343
|
+
align="end"
|
|
344
|
+
onClick={(e) => e.stopPropagation()}
|
|
345
|
+
onCloseAutoFocus={(e) => e.preventDefault()}
|
|
346
|
+
>
|
|
347
|
+
{!isDir && (
|
|
348
|
+
<DropdownMenuItem
|
|
349
|
+
onSelect={() => onOpenFile({ entry, namespace })}
|
|
350
|
+
>
|
|
351
|
+
<ViewIcon className="h-3.5 w-3.5 mr-2" />
|
|
352
|
+
View
|
|
353
|
+
</DropdownMenuItem>
|
|
354
|
+
)}
|
|
355
|
+
<DropdownMenuItem
|
|
356
|
+
onSelect={async () => {
|
|
357
|
+
const url = storageUrl(protocol, rootPath, entry.path);
|
|
358
|
+
await copyToClipboard(url.toString());
|
|
359
|
+
toast({ title: "Copied to clipboard" });
|
|
360
|
+
}}
|
|
361
|
+
>
|
|
362
|
+
<CopyIcon className="h-3.5 w-3.5 mr-2" />
|
|
363
|
+
Copy URL
|
|
364
|
+
</DropdownMenuItem>
|
|
365
|
+
{!isDir && (
|
|
366
|
+
<DropdownMenuItem onSelect={() => handleDownload()}>
|
|
367
|
+
<DownloadIcon className="h-3.5 w-3.5 mr-2" />
|
|
368
|
+
Download
|
|
369
|
+
</DropdownMenuItem>
|
|
370
|
+
)}
|
|
371
|
+
</DropdownMenuContent>
|
|
372
|
+
</DropdownMenu>
|
|
373
|
+
</div>
|
|
374
|
+
</CommandItem>
|
|
375
|
+
{isDir && effectiveExpanded && (
|
|
376
|
+
<StorageEntryChildren
|
|
377
|
+
namespace={namespace}
|
|
378
|
+
protocol={protocol}
|
|
379
|
+
rootPath={rootPath}
|
|
380
|
+
prefix={entry.path}
|
|
381
|
+
depth={depth + 1}
|
|
382
|
+
locale={locale}
|
|
383
|
+
searchValue={searchValue}
|
|
384
|
+
onOpenFile={onOpenFile}
|
|
385
|
+
/>
|
|
386
|
+
)}
|
|
387
|
+
</>
|
|
388
|
+
);
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
const StorageNamespaceSection: React.FC<{
|
|
392
|
+
namespace: StorageNamespace;
|
|
393
|
+
locale: string;
|
|
394
|
+
searchValue: string;
|
|
395
|
+
onOpenFile: (info: OpenFileInfo) => void;
|
|
396
|
+
}> = ({ namespace, locale, searchValue, onOpenFile }) => {
|
|
397
|
+
const [isExpanded, setIsExpanded] = useState(true);
|
|
398
|
+
const [isSpinning, setIsSpinning] = useState(false);
|
|
399
|
+
const { entriesByPath } = useStorage();
|
|
400
|
+
const { clearNamespaceCache } = useStorageActions();
|
|
401
|
+
const namespaceName = namespace.name ?? namespace.displayName;
|
|
402
|
+
|
|
403
|
+
const {
|
|
404
|
+
entries: fetchedEntries,
|
|
405
|
+
isPending,
|
|
406
|
+
error,
|
|
407
|
+
refetch,
|
|
408
|
+
} = useStorageEntries(namespaceName);
|
|
409
|
+
|
|
410
|
+
const handleRefresh = useCallback(
|
|
411
|
+
(e: React.MouseEvent) => {
|
|
412
|
+
e.stopPropagation();
|
|
413
|
+
setIsSpinning(true);
|
|
414
|
+
clearNamespaceCache(namespaceName);
|
|
415
|
+
refetch();
|
|
416
|
+
setTimeout(() => setIsSpinning(false), 500);
|
|
417
|
+
},
|
|
418
|
+
[namespaceName, clearNamespaceCache, refetch],
|
|
419
|
+
);
|
|
420
|
+
|
|
421
|
+
// While loading, fall back to initial entries from the namespace notification
|
|
422
|
+
const entries = isPending ? namespace.storageEntries : fetchedEntries;
|
|
423
|
+
const filtered = filterEntries(
|
|
424
|
+
entries,
|
|
425
|
+
namespaceName,
|
|
426
|
+
searchValue,
|
|
427
|
+
entriesByPath,
|
|
428
|
+
);
|
|
429
|
+
|
|
430
|
+
return (
|
|
431
|
+
<>
|
|
432
|
+
<CommandItem
|
|
433
|
+
value={namespace.name}
|
|
434
|
+
onSelect={() => setIsExpanded(!isExpanded)}
|
|
435
|
+
className="flex flex-row font-semibold h-7 text-xs gap-1.5 bg-(--slate-2) text-muted-foreground rounded-none"
|
|
436
|
+
>
|
|
437
|
+
<ChevronRightIcon
|
|
438
|
+
className={cn(
|
|
439
|
+
"h-3 w-3 shrink-0 transition-transform",
|
|
440
|
+
isExpanded && "rotate-90",
|
|
441
|
+
)}
|
|
442
|
+
/>
|
|
443
|
+
<ProtocolIcon protocol={namespace.protocol} />
|
|
444
|
+
<span>{namespace.displayName}</span>
|
|
445
|
+
{namespace.name && (
|
|
446
|
+
<span className="text-xs text-muted-foreground font-normal">
|
|
447
|
+
(<EngineVariable variableName={namespace.name as VariableName} />)
|
|
448
|
+
</span>
|
|
449
|
+
)}
|
|
450
|
+
<Tooltip content="Refresh storage connection">
|
|
451
|
+
<Button
|
|
452
|
+
variant="ghost"
|
|
453
|
+
size="icon"
|
|
454
|
+
className="hover:bg-transparent hover:shadow-none"
|
|
455
|
+
onClick={handleRefresh}
|
|
456
|
+
>
|
|
457
|
+
<RefreshCwIcon
|
|
458
|
+
className={cn(
|
|
459
|
+
"h-3 w-3 text-muted-foreground hover:text-foreground",
|
|
460
|
+
isSpinning && "animate-[spin_0.5s]",
|
|
461
|
+
)}
|
|
462
|
+
/>
|
|
463
|
+
</Button>
|
|
464
|
+
</Tooltip>
|
|
465
|
+
<span className="text-[10px] text-muted-foreground font-normal tabular-nums ml-auto">
|
|
466
|
+
{namespace.rootPath || "(root)"}
|
|
467
|
+
</span>
|
|
468
|
+
</CommandItem>
|
|
469
|
+
{isExpanded && (
|
|
470
|
+
<>
|
|
471
|
+
{isPending && entries.length === 0 && (
|
|
472
|
+
<div
|
|
473
|
+
className="flex items-center gap-1.5 py-1 text-xs text-muted-foreground"
|
|
474
|
+
style={indentStyle(1)}
|
|
475
|
+
>
|
|
476
|
+
<LoaderCircle className="h-3 w-3 animate-spin" />
|
|
477
|
+
Loading...
|
|
478
|
+
</div>
|
|
479
|
+
)}
|
|
480
|
+
{error && entries.length === 0 && (
|
|
481
|
+
<ErrorState
|
|
482
|
+
error={error}
|
|
483
|
+
style={indentStyle(1)}
|
|
484
|
+
className="py-1 text-xs h-auto"
|
|
485
|
+
showIcon={false}
|
|
486
|
+
/>
|
|
487
|
+
)}
|
|
488
|
+
{!isPending && entries.length === 0 && !error && (
|
|
489
|
+
<div
|
|
490
|
+
className="py-1 text-xs text-muted-foreground italic"
|
|
491
|
+
style={indentStyle(1)}
|
|
492
|
+
>
|
|
493
|
+
No entries
|
|
494
|
+
</div>
|
|
495
|
+
)}
|
|
496
|
+
{searchValue && filtered.length === 0 && entries.length > 0 && (
|
|
497
|
+
<div
|
|
498
|
+
className="py-1 text-xs text-muted-foreground italic"
|
|
499
|
+
style={indentStyle(1)}
|
|
500
|
+
>
|
|
501
|
+
No matches
|
|
502
|
+
</div>
|
|
503
|
+
)}
|
|
504
|
+
{filtered.map((entry) => (
|
|
505
|
+
<StorageEntryRow
|
|
506
|
+
key={entry.path}
|
|
507
|
+
entry={entry}
|
|
508
|
+
namespace={namespaceName}
|
|
509
|
+
protocol={namespace.protocol}
|
|
510
|
+
rootPath={namespace.rootPath}
|
|
511
|
+
depth={1}
|
|
512
|
+
locale={locale}
|
|
513
|
+
searchValue={searchValue}
|
|
514
|
+
onOpenFile={onOpenFile}
|
|
515
|
+
/>
|
|
516
|
+
))}
|
|
517
|
+
</>
|
|
518
|
+
)}
|
|
519
|
+
</>
|
|
520
|
+
);
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export const StorageInspector: React.FC = () => {
|
|
524
|
+
const { namespaces } = useStorage();
|
|
525
|
+
const { locale } = useLocale();
|
|
526
|
+
const [searchValue, setSearchValue] = useState("");
|
|
527
|
+
const [openFile, setOpenFile] = useState<OpenFileInfo | null>(null);
|
|
528
|
+
const hasSearch = !!searchValue.trim();
|
|
529
|
+
|
|
530
|
+
if (namespaces.length === 0) {
|
|
531
|
+
return (
|
|
532
|
+
<PanelEmptyState
|
|
533
|
+
title="No storage connected"
|
|
534
|
+
description={
|
|
535
|
+
<span>
|
|
536
|
+
Create an Obstore or fsspec connection in your notebook. See the{" "}
|
|
537
|
+
<a
|
|
538
|
+
className="text-link"
|
|
539
|
+
href="https://docs.marimo.io/guides/working_with_data/remote_storage/#quick-start"
|
|
540
|
+
target="_blank"
|
|
541
|
+
rel="noopener noreferrer"
|
|
542
|
+
>
|
|
543
|
+
docs
|
|
544
|
+
</a>
|
|
545
|
+
.
|
|
546
|
+
</span>
|
|
547
|
+
}
|
|
548
|
+
icon={<HardDriveIcon className="h-8 w-8" />}
|
|
549
|
+
/>
|
|
550
|
+
);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
return (
|
|
554
|
+
<div className="h-full flex flex-col">
|
|
555
|
+
{openFile && (
|
|
556
|
+
<StorageFileViewer
|
|
557
|
+
entry={openFile.entry}
|
|
558
|
+
namespace={openFile.namespace}
|
|
559
|
+
onBack={() => setOpenFile(null)}
|
|
560
|
+
/>
|
|
561
|
+
)}
|
|
562
|
+
<Command
|
|
563
|
+
className={cn(
|
|
564
|
+
"border-b bg-background rounded-none h-full pb-10 overflow-auto outline-hidden scrollbar-thin",
|
|
565
|
+
// We want to keep the command open but hidden when a file is opened to preserve state (folders opened etc.)
|
|
566
|
+
// TODO: Preserve scroll position
|
|
567
|
+
openFile && "hidden",
|
|
568
|
+
)}
|
|
569
|
+
shouldFilter={false}
|
|
570
|
+
>
|
|
571
|
+
<div className="flex items-center w-full border-b">
|
|
572
|
+
<CommandInput
|
|
573
|
+
placeholder="Search entries..."
|
|
574
|
+
className="h-6 m-1"
|
|
575
|
+
value={searchValue}
|
|
576
|
+
onValueChange={setSearchValue}
|
|
577
|
+
rootClassName="flex-1 border-b-0"
|
|
578
|
+
/>
|
|
579
|
+
{hasSearch && (
|
|
580
|
+
<Button
|
|
581
|
+
variant="text"
|
|
582
|
+
size="xs"
|
|
583
|
+
className="float-right border-none px-2 m-0 h-full"
|
|
584
|
+
onClick={() => setSearchValue("")}
|
|
585
|
+
>
|
|
586
|
+
<XIcon className="h-4 w-4" />
|
|
587
|
+
</Button>
|
|
588
|
+
)}
|
|
589
|
+
<Tooltip
|
|
590
|
+
content="Filters loaded entries only. Expand directories to include their contents in the search."
|
|
591
|
+
delayDuration={200}
|
|
592
|
+
>
|
|
593
|
+
<HelpCircleIcon className="h-3.5 w-3.5 mr-2 shrink-0 cursor-help text-muted-foreground hover:text-foreground" />
|
|
594
|
+
</Tooltip>
|
|
595
|
+
</div>
|
|
596
|
+
<CommandList className="flex flex-col">
|
|
597
|
+
{namespaces.map((ns) => (
|
|
598
|
+
<StorageNamespaceSection
|
|
599
|
+
key={ns.name ?? ns.displayName}
|
|
600
|
+
namespace={ns}
|
|
601
|
+
locale={locale}
|
|
602
|
+
searchValue={searchValue}
|
|
603
|
+
onOpenFile={setOpenFile}
|
|
604
|
+
/>
|
|
605
|
+
))}
|
|
606
|
+
</CommandList>
|
|
607
|
+
</Command>
|
|
608
|
+
</div>
|
|
609
|
+
);
|
|
610
|
+
};
|
|
@@ -178,6 +178,85 @@ describe("EditNotebookTool", () => {
|
|
|
178
178
|
});
|
|
179
179
|
});
|
|
180
180
|
|
|
181
|
+
it("should skip no-op edits where code hasn't changed", async () => {
|
|
182
|
+
const code = "x = 1";
|
|
183
|
+
|
|
184
|
+
const editorView = createMockEditorView(code);
|
|
185
|
+
const notebook = MockNotebook.notebookState({
|
|
186
|
+
cellData: {
|
|
187
|
+
[cellId1]: { code },
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
notebook.cellHandles[cellId1] = { current: { editorView } } as never;
|
|
191
|
+
store.set(notebookAtom, notebook);
|
|
192
|
+
|
|
193
|
+
const result = await tool.handler(
|
|
194
|
+
{
|
|
195
|
+
edit: {
|
|
196
|
+
type: "update_cell",
|
|
197
|
+
position: { type: "relative", cellId: cellId1 },
|
|
198
|
+
code: code, // Same code as current
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
toolContext as never,
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
expect(result.status).toBe("success");
|
|
205
|
+
|
|
206
|
+
// Should NOT stage the cell or update the editor
|
|
207
|
+
expect(toolContext.addStagedCell).not.toHaveBeenCalled();
|
|
208
|
+
expect(vi.mocked(updateEditorCodeFromPython)).not.toHaveBeenCalled();
|
|
209
|
+
|
|
210
|
+
// No staged cells
|
|
211
|
+
const stagedCells = store.get(stagedAICellsAtom);
|
|
212
|
+
expect(stagedCells.size).toBe(0);
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
it("should skip no-op edits that revert to original code", async () => {
|
|
216
|
+
const originalCode = "x = 1";
|
|
217
|
+
const modifiedCode = "x = 2";
|
|
218
|
+
|
|
219
|
+
const editorView = createMockEditorView(originalCode);
|
|
220
|
+
const notebook = MockNotebook.notebookState({
|
|
221
|
+
cellData: {
|
|
222
|
+
[cellId1]: { code: originalCode },
|
|
223
|
+
},
|
|
224
|
+
});
|
|
225
|
+
notebook.cellHandles[cellId1] = { current: { editorView } } as never;
|
|
226
|
+
store.set(notebookAtom, notebook);
|
|
227
|
+
|
|
228
|
+
// First edit: change the code
|
|
229
|
+
await tool.handler(
|
|
230
|
+
{
|
|
231
|
+
edit: {
|
|
232
|
+
type: "update_cell",
|
|
233
|
+
position: { type: "relative", cellId: cellId1 },
|
|
234
|
+
code: modifiedCode,
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
toolContext as never,
|
|
238
|
+
);
|
|
239
|
+
|
|
240
|
+
expect(toolContext.addStagedCell).toHaveBeenCalledTimes(1);
|
|
241
|
+
|
|
242
|
+
// Second edit: revert back to the original code
|
|
243
|
+
const result = await tool.handler(
|
|
244
|
+
{
|
|
245
|
+
edit: {
|
|
246
|
+
type: "update_cell",
|
|
247
|
+
position: { type: "relative", cellId: cellId1 },
|
|
248
|
+
code: originalCode, // Same as the previousCode
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
toolContext as never,
|
|
252
|
+
);
|
|
253
|
+
|
|
254
|
+
expect(result.status).toBe("success");
|
|
255
|
+
|
|
256
|
+
// addStagedCell should not be called again (still 1 from the first edit)
|
|
257
|
+
expect(toolContext.addStagedCell).toHaveBeenCalledTimes(1);
|
|
258
|
+
});
|
|
259
|
+
|
|
181
260
|
it("should throw error when cell ID doesn't exist", async () => {
|
|
182
261
|
const notebook = MockNotebook.notebookState({
|
|
183
262
|
cellData: {
|
|
@@ -128,6 +128,11 @@ export class EditNotebookTool
|
|
|
128
128
|
const previousCode =
|
|
129
129
|
existingStagedCell?.previousCode ?? currentCellCode;
|
|
130
130
|
|
|
131
|
+
// Skip no-op edits where the code hasn't changed
|
|
132
|
+
if (code === previousCode) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
|
|
131
136
|
addStagedCell({
|
|
132
137
|
cellId,
|
|
133
138
|
edit: { type: "update_cell", previousCode: previousCode },
|