@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
|
@@ -1,20 +1,65 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
+
import type { Extension } from "@codemirror/state";
|
|
4
|
+
import { EditorView } from "@codemirror/view";
|
|
3
5
|
import type { PaginationState } from "@tanstack/react-table";
|
|
4
6
|
import type React from "react";
|
|
5
|
-
import { useMemo, useState } from "react";
|
|
7
|
+
import { Suspense, useMemo, useState } from "react";
|
|
6
8
|
import {
|
|
7
9
|
generateColumns,
|
|
8
10
|
inferFieldTypes,
|
|
9
11
|
} from "@/components/data-table/columns";
|
|
10
12
|
import { DataTable } from "@/components/data-table/data-table";
|
|
13
|
+
import { LazyAnyLanguageCodeMirror } from "@/plugins/impl/code/LazyAnyLanguageCodeMirror";
|
|
11
14
|
import { parseCsvData } from "@/plugins/impl/vega/loader";
|
|
15
|
+
import { useTheme } from "@/theme/useTheme";
|
|
12
16
|
import { Arrays } from "@/utils/arrays";
|
|
13
17
|
import { type Base64String, base64ToDataURL } from "@/utils/json/base64";
|
|
14
18
|
import { Objects } from "@/utils/objects";
|
|
15
19
|
|
|
16
20
|
const PAGE_SIZE = 25;
|
|
17
21
|
|
|
22
|
+
export function isMediaMime(mime: string): boolean {
|
|
23
|
+
if (!mime) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return (
|
|
27
|
+
mime.startsWith("image/") ||
|
|
28
|
+
mime.startsWith("audio/") ||
|
|
29
|
+
mime.startsWith("video/") ||
|
|
30
|
+
mime.startsWith("application/pdf")
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const MIME_TO_LANGUAGE: Record<string, string> = {
|
|
35
|
+
"application/javascript": "javascript",
|
|
36
|
+
"text/markdown": "markdown",
|
|
37
|
+
"text/html": "html",
|
|
38
|
+
"text/css": "css",
|
|
39
|
+
"text/x-python": "python",
|
|
40
|
+
"application/json": "json",
|
|
41
|
+
"application/xml": "xml",
|
|
42
|
+
"text/x-yaml": "yaml",
|
|
43
|
+
"text/csv": "markdown",
|
|
44
|
+
"text/plain": "markdown",
|
|
45
|
+
default: "markdown",
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Media viewer props: provide either a direct `url` or `base64` + `mime`.
|
|
50
|
+
* When `url` is set it takes precedence.
|
|
51
|
+
*/
|
|
52
|
+
export type MediaSource =
|
|
53
|
+
| { url: string; base64?: undefined; mime?: string }
|
|
54
|
+
| { url?: undefined; base64: Base64String; mime: string };
|
|
55
|
+
|
|
56
|
+
function resolveMediaSrc(source: MediaSource): string {
|
|
57
|
+
if (source.url != null) {
|
|
58
|
+
return source.url;
|
|
59
|
+
}
|
|
60
|
+
return base64ToDataURL(source.base64, source.mime);
|
|
61
|
+
}
|
|
62
|
+
|
|
18
63
|
export const CsvViewer: React.FC<{ contents: string }> = ({ contents }) => {
|
|
19
64
|
const data = useMemo(() => parseCsvData(contents), [contents]);
|
|
20
65
|
const [pagination, setPagination] = useState<PaginationState>({
|
|
@@ -48,36 +93,112 @@ export const CsvViewer: React.FC<{ contents: string }> = ({ contents }) => {
|
|
|
48
93
|
/>
|
|
49
94
|
);
|
|
50
95
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}) => {
|
|
55
|
-
return <img src={base64ToDataURL(base64, mime)} alt="Preview" />;
|
|
96
|
+
|
|
97
|
+
export const ImageViewer: React.FC<MediaSource> = (props) => {
|
|
98
|
+
return <img src={resolveMediaSrc(props)} alt="Preview" />;
|
|
56
99
|
};
|
|
57
100
|
|
|
58
|
-
export const AudioViewer: React.FC<
|
|
59
|
-
|
|
60
|
-
base64,
|
|
61
|
-
}) => {
|
|
62
|
-
return <audio controls={true} src={base64ToDataURL(base64, mime)} />;
|
|
101
|
+
export const AudioViewer: React.FC<MediaSource> = (props) => {
|
|
102
|
+
return <audio controls={true} src={resolveMediaSrc(props)} />;
|
|
63
103
|
};
|
|
64
104
|
|
|
65
|
-
export const VideoViewer: React.FC<
|
|
66
|
-
|
|
67
|
-
base64,
|
|
68
|
-
}) => {
|
|
69
|
-
return <video controls={true} src={base64ToDataURL(base64, mime)} />;
|
|
105
|
+
export const VideoViewer: React.FC<MediaSource> = (props) => {
|
|
106
|
+
return <video controls={true} src={resolveMediaSrc(props)} />;
|
|
70
107
|
};
|
|
71
108
|
|
|
72
|
-
export const PdfViewer: React.FC<
|
|
73
|
-
mime,
|
|
74
|
-
base64,
|
|
75
|
-
}) => {
|
|
109
|
+
export const PdfViewer: React.FC<MediaSource> = (props) => {
|
|
76
110
|
return (
|
|
77
111
|
<iframe
|
|
78
|
-
src={
|
|
112
|
+
src={resolveMediaSrc(props)}
|
|
79
113
|
title="PDF Viewer"
|
|
80
114
|
className="w-full h-full"
|
|
81
115
|
/>
|
|
82
116
|
);
|
|
83
117
|
};
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Renders the appropriate media viewer for the given mime type.
|
|
121
|
+
* Accepts either a `url` or `base64` + `mime` via {@link MediaSource}.
|
|
122
|
+
*/
|
|
123
|
+
export const MediaRenderer: React.FC<MediaSource & { mimeType: string }> = ({
|
|
124
|
+
mimeType,
|
|
125
|
+
...source
|
|
126
|
+
}) => {
|
|
127
|
+
if (mimeType.startsWith("image/")) {
|
|
128
|
+
return <ImageViewer {...source} />;
|
|
129
|
+
}
|
|
130
|
+
if (mimeType.startsWith("audio/")) {
|
|
131
|
+
return <AudioViewer {...source} />;
|
|
132
|
+
}
|
|
133
|
+
if (mimeType.startsWith("video/")) {
|
|
134
|
+
return <VideoViewer {...source} />;
|
|
135
|
+
}
|
|
136
|
+
if (mimeType.startsWith("application/pdf")) {
|
|
137
|
+
return <PdfViewer {...source} />;
|
|
138
|
+
}
|
|
139
|
+
return null;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Unified content renderer that dispatches to the appropriate viewer
|
|
144
|
+
* based on MIME type. Used by both the local file viewer and the
|
|
145
|
+
* storage file viewer.
|
|
146
|
+
*/
|
|
147
|
+
export const FileContentRenderer: React.FC<{
|
|
148
|
+
mimeType: string;
|
|
149
|
+
/** Text content for text/CSV files. */
|
|
150
|
+
contents?: string;
|
|
151
|
+
/** Media source for image/audio/video/PDF files. */
|
|
152
|
+
mediaSource?: MediaSource;
|
|
153
|
+
readOnly?: boolean;
|
|
154
|
+
onChange?: (value: string) => void;
|
|
155
|
+
/** Additional CodeMirror extensions (e.g. save hotkey). */
|
|
156
|
+
extensions?: Extension[];
|
|
157
|
+
}> = ({
|
|
158
|
+
mimeType,
|
|
159
|
+
contents,
|
|
160
|
+
mediaSource,
|
|
161
|
+
readOnly = true,
|
|
162
|
+
onChange,
|
|
163
|
+
extensions = [],
|
|
164
|
+
}) => {
|
|
165
|
+
const { theme } = useTheme();
|
|
166
|
+
|
|
167
|
+
if (mimeType === "text/csv" && contents != null) {
|
|
168
|
+
return (
|
|
169
|
+
<div className="flex-1 overflow-hidden flex flex-col">
|
|
170
|
+
<CsvViewer contents={contents} />
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (isMediaMime(mimeType) && mediaSource) {
|
|
176
|
+
return (
|
|
177
|
+
<div className="flex-1 overflow-hidden flex flex-col">
|
|
178
|
+
<MediaRenderer {...mediaSource} mimeType={mimeType} />
|
|
179
|
+
</div>
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (contents != null) {
|
|
184
|
+
const language = MIME_TO_LANGUAGE[mimeType] || MIME_TO_LANGUAGE.default;
|
|
185
|
+
return (
|
|
186
|
+
<div className="flex-1 overflow-auto">
|
|
187
|
+
<Suspense>
|
|
188
|
+
<LazyAnyLanguageCodeMirror
|
|
189
|
+
theme={theme === "dark" ? "dark" : "light"}
|
|
190
|
+
language={language}
|
|
191
|
+
className="border-b"
|
|
192
|
+
extensions={[EditorView.lineWrapping, ...extensions]}
|
|
193
|
+
value={contents}
|
|
194
|
+
readOnly={readOnly}
|
|
195
|
+
editable={readOnly ? false : undefined}
|
|
196
|
+
onChange={readOnly ? undefined : onChange}
|
|
197
|
+
/>
|
|
198
|
+
</Suspense>
|
|
199
|
+
</div>
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return null;
|
|
204
|
+
};
|
|
@@ -125,12 +125,16 @@ export class RequestingTree {
|
|
|
125
125
|
await this.refreshAll([parentPath]);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
async createFile(
|
|
128
|
+
async createFile(
|
|
129
|
+
name: string,
|
|
130
|
+
parentId: string | null,
|
|
131
|
+
type: "file" | "notebook" = "file",
|
|
132
|
+
): Promise<void> {
|
|
129
133
|
const parentPath = parentId
|
|
130
134
|
? (this.delegate.find(parentId)?.data.path ?? parentId)
|
|
131
135
|
: this.rootPath;
|
|
132
136
|
const newFile = await this.callbacks
|
|
133
|
-
.createFileOrFolder({ path: parentPath, type:
|
|
137
|
+
.createFileOrFolder({ path: parentPath, type: type, name: name })
|
|
134
138
|
.then(this.handleResponse);
|
|
135
139
|
if (!newFile?.info) {
|
|
136
140
|
return;
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
ChevronRightIcon,
|
|
5
|
+
ChevronsDownUpIcon,
|
|
6
|
+
ChevronsUpDownIcon,
|
|
7
|
+
WrapTextIcon,
|
|
8
|
+
} from "lucide-react";
|
|
4
9
|
import React, { useLayoutEffect } from "react";
|
|
5
10
|
import { ToggleButton } from "react-aria-components";
|
|
6
11
|
import { DebuggerControls } from "@/components/debugger/debugger-code";
|
|
7
12
|
import { CopyClipboardIcon } from "@/components/icons/copy-icon";
|
|
13
|
+
import { Button } from "@/components/ui/button";
|
|
8
14
|
import { Input } from "@/components/ui/input";
|
|
9
15
|
import { Tooltip } from "@/components/ui/tooltip";
|
|
10
16
|
import type { CellId } from "@/core/cells/ids";
|
|
11
17
|
import { isInternalCellName } from "@/core/cells/names";
|
|
18
|
+
import { useExpandedConsoleOutput } from "@/core/cells/outputs";
|
|
12
19
|
import type { WithResponse } from "@/core/cells/types";
|
|
13
20
|
import type { OutputMessage } from "@/core/kernel/messages";
|
|
14
21
|
import { useInputHistory } from "@/hooks/useInputHistory";
|
|
22
|
+
import { useOverflowDetection } from "@/hooks/useOverflowDetection";
|
|
15
23
|
import { useSelectAllContent } from "@/hooks/useSelectAllContent";
|
|
16
24
|
import { cn } from "@/utils/cn";
|
|
17
25
|
import { invariant } from "@/utils/invariant";
|
|
@@ -45,6 +53,7 @@ export const ConsoleOutput = (props: Props) => {
|
|
|
45
53
|
const ConsoleOutputInternal = (props: Props): React.ReactNode => {
|
|
46
54
|
const ref = React.useRef<HTMLDivElement>(null);
|
|
47
55
|
const { wrapText, setWrapText } = useWrapText();
|
|
56
|
+
const [isExpanded, setIsExpanded] = useExpandedConsoleOutput(props.cellId);
|
|
48
57
|
const {
|
|
49
58
|
consoleOutputs,
|
|
50
59
|
stale,
|
|
@@ -72,6 +81,9 @@ const ConsoleOutputInternal = (props: Props): React.ReactNode => {
|
|
|
72
81
|
// Enable Ctrl/Cmd-A to select all content within the console output
|
|
73
82
|
const selectAllProps = useSelectAllContent(hasOutputs);
|
|
74
83
|
|
|
84
|
+
// Detect overflow on resize
|
|
85
|
+
const isOverflowing = useOverflowDetection(ref, hasOutputs);
|
|
86
|
+
|
|
75
87
|
// Keep scroll at the bottom if it is within 120px of the bottom,
|
|
76
88
|
// so when we add new content, it will lock to the bottom
|
|
77
89
|
//
|
|
@@ -121,7 +133,7 @@ const ConsoleOutputInternal = (props: Props): React.ReactNode => {
|
|
|
121
133
|
return (
|
|
122
134
|
<div className="relative group">
|
|
123
135
|
{hasOutputs && (
|
|
124
|
-
<div className="absolute top-1 right-
|
|
136
|
+
<div className="absolute top-1 right-4 z-10 opacity-0 group-hover:opacity-100 flex items-center gap-1 print:hidden">
|
|
125
137
|
<CopyClipboardIcon
|
|
126
138
|
tooltip="Copy console output"
|
|
127
139
|
value={getOutputString}
|
|
@@ -139,6 +151,25 @@ const ConsoleOutputInternal = (props: Props): React.ReactNode => {
|
|
|
139
151
|
</ToggleButton>
|
|
140
152
|
</span>
|
|
141
153
|
</Tooltip>
|
|
154
|
+
{(isOverflowing || isExpanded) && (
|
|
155
|
+
<Button
|
|
156
|
+
aria-label={isExpanded ? "Collapse output" : "Expand output"}
|
|
157
|
+
className="p-0 mb-px"
|
|
158
|
+
onClick={() => setIsExpanded(!isExpanded)}
|
|
159
|
+
size="xs"
|
|
160
|
+
variant={null}
|
|
161
|
+
>
|
|
162
|
+
{isExpanded ? (
|
|
163
|
+
<Tooltip content="Collapse output">
|
|
164
|
+
<ChevronsDownUpIcon className="h-4 w-4" />
|
|
165
|
+
</Tooltip>
|
|
166
|
+
) : (
|
|
167
|
+
<Tooltip content="Expand output">
|
|
168
|
+
<ChevronsUpDownIcon className="h-4 w-4 " />
|
|
169
|
+
</Tooltip>
|
|
170
|
+
)}
|
|
171
|
+
</Button>
|
|
172
|
+
)}
|
|
142
173
|
</div>
|
|
143
174
|
)}
|
|
144
175
|
<div
|
|
@@ -154,6 +185,7 @@ const ConsoleOutputInternal = (props: Props): React.ReactNode => {
|
|
|
154
185
|
hasOutputs ? "p-5" : "p-3",
|
|
155
186
|
className,
|
|
156
187
|
)}
|
|
188
|
+
style={isExpanded ? { maxHeight: "none" } : undefined}
|
|
157
189
|
>
|
|
158
190
|
{reversedOutputs.map((output, idx) => {
|
|
159
191
|
if (output.channel === "pdb") {
|
|
@@ -7,6 +7,19 @@ import type { CellId } from "@/core/cells/ids";
|
|
|
7
7
|
import type { OutputMessage } from "@/core/kernel/messages";
|
|
8
8
|
import { ConsoleOutput } from "../ConsoleOutput";
|
|
9
9
|
|
|
10
|
+
// Mock ResizeObserver for tests
|
|
11
|
+
global.ResizeObserver = class ResizeObserver {
|
|
12
|
+
observe() {
|
|
13
|
+
// noop
|
|
14
|
+
}
|
|
15
|
+
unobserve() {
|
|
16
|
+
// noop
|
|
17
|
+
}
|
|
18
|
+
disconnect() {
|
|
19
|
+
// noop
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
10
23
|
describe("ConsoleOutput integration", () => {
|
|
11
24
|
const createOutput = (data: string, channel = "stdout"): OutputMessage => ({
|
|
12
25
|
channel: channel as "stdout" | "stderr",
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
|
|
5
|
+
const MarimoLetterPaths = ({ stroke }: { stroke: string }) => {
|
|
6
|
+
return (
|
|
7
|
+
<g
|
|
8
|
+
// Center the original SVG: 1. Move to origin, 2. Scale to fit, 3. Shift to center of viewBox.
|
|
9
|
+
transform="translate(12 12) scale(0.115) translate(-433 -679)"
|
|
10
|
+
// The 'stroke' prop controls the color of the 'm' letter.
|
|
11
|
+
fill={stroke}
|
|
12
|
+
stroke="none"
|
|
13
|
+
>
|
|
14
|
+
{/* extracted from 'docs/_static/marimo-logotype-thick.svg' */}
|
|
15
|
+
<path d="m 388.08594,708.44141 h 23.32422 v -33.30079 c 0,-4.83203 2.625,-7.03906 6.30078,-7.03906 3.88672,0 6.19922,2.20703 6.19922,7.03906 v 33.30079 h 23.32031 v -33.30079 c 0,-4.83203 2.51953,-7.03906 6.30469,-7.03906 3.99218,0 6.30078,2.20703 6.30078,7.03906 v 33.30079 h 23.42578 V 670.625 c 0,-17.33594 -9.13672,-23.11328 -20.48438,-23.11328 -9.875,0 -15.96875,5.67578 -17.4375,10.92578 H 444.5 c -3.57422,-8.19141 -8.82422,-10.92578 -16.59766,-10.92578 -8.30078,0 -14.18359,4.9375 -15.65234,9.98047 h -0.83984 v -8.40235 h -23.32422 z" />
|
|
16
|
+
</g>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const MarimoCirclePaths = ({
|
|
21
|
+
fill,
|
|
22
|
+
stroke,
|
|
23
|
+
strokeWidth,
|
|
24
|
+
}: {
|
|
25
|
+
fill?: string;
|
|
26
|
+
stroke: string;
|
|
27
|
+
strokeWidth: number | string;
|
|
28
|
+
}) => {
|
|
29
|
+
return (
|
|
30
|
+
<>
|
|
31
|
+
{/* If provided, the 'fill' prop controls the inner fill color of the circular logo. */}
|
|
32
|
+
{fill && <circle fill={fill} stroke="none" cx="12" cy="12" r="10.3" />}
|
|
33
|
+
<g
|
|
34
|
+
// Center the original SVG: 1. Move to origin, 2. Scale to fit, 3. Shift to center of viewBox.
|
|
35
|
+
transform="translate(12 12) scale(0.094) translate(-600 -485)"
|
|
36
|
+
// The 'stroke' prop controls the fill and stroke color of the circular logo.
|
|
37
|
+
fill={stroke}
|
|
38
|
+
stroke={stroke}
|
|
39
|
+
// Adjusted by 1.5x for visual balance with other unscaled strokes.
|
|
40
|
+
strokeWidth={Number(strokeWidth) * 1.5}
|
|
41
|
+
strokeLinecap="round"
|
|
42
|
+
strokeLinejoin="round"
|
|
43
|
+
>
|
|
44
|
+
{/* extracted from 'docs/_static/marimo-logotype-thick.svg' */}
|
|
45
|
+
<path d="m 517.37109,413.55859 c 1.51172,-1.78125 3.1875,-4.15625 2.10547,-6.26172 6.04688,-3.5625 11.39063,-8.26171 15.76172,-13.76562 -2.375,1.89062 -4.96484,3.40234 -7.71875,4.58984 20.67578,-20.40625 51.76953,-29.6914 80.32422,-23.96875 -22.99609,-0.86328 -46.42188,5.23438 -65.42578,18.19141 -19.05469,12.90234 -33.51953,32.71094 -39.07813,55.05859 8.41797,-24.45312 26.17969,-45.55859 48.85157,-57.97265 -1.78125,1.83593 -3.56641,3.72265 -5.39844,5.55859 8.63672,-3.5625 16.46094,-8.90625 25.04687,-12.63281 25.20703,-11.01172 55.54297,-6.85547 79.02344,7.5039 23.48047,14.35938 40.37891,37.89454 50.20313,63.58985 4.3164,11.22656 7.33984,23.69531 3.50781,35.08594 -0.86328,-14.84375 -5.72266,-29.14844 -12.03906,-42.58985 -10.47266,-22.40234 -25.47657,-43.39844 -46.58204,-56.24609 -21.10546,-12.79297 -49.01562,-16.19531 -70.60546,-4.15625 11.0664,-1.1875 22.23828,-1.83594 33.19531,-0.26953 20.62109,2.91406 39.67578,13.71093 54.14062,28.66015 14.41407,15.00782 24.40235,33.95313 30.28516,53.8711 5.72266,19.48828 7.60937,40.97265 0.26953,59.97265 21.42969,-34.65625 17.86719,-82.91015 -8.3125,-114.05859 -10.95703,-13.00781 -25.15625,-22.99609 -40.48437,-30.22656 -17.70704,-8.3125 -37.14063,-13.11719 -56.67969,-12.57813 -19.53906,0.53906 -39.08203,6.64063 -54.67969,18.40625 12.95313,-11.44531 29.84766,-17.92187 47.01563,-19.70312 17.21875,-1.72657 34.65234,1.08203 51.01171,6.58593 34.00391,11.55079 64.98829,37.03125 74.97657,71.52344 2.53515,8.85156 3.66797,18.02735 4.69531,27.20703 0.86328,7.9336 1.56641,15.86719 1.40234,23.85547 -0.7539,39.46094 -25.96484,78.00391 -62.72265,92.41406 -10.41797,4.05079 -21.42969,6.26172 -32.4961,7.82813 -17.70703,2.48047 -36.05859,3.23828 -53.11718,-2.05078 -8.79688,-2.75391 -17.00391,-7.01953 -24.61329,-12.25391 -31.52343,-21.59375 -51.4414,-59.21484 -51.4414,-97.43359 0,-6.80078 0.59375,-13.54688 1.51172,-20.24219 0.80859,-6.15234 1.88672,-12.25391 3.66797,-18.19141 2.69921,-8.74609 6.91015,-17.0039 12.47265,-24.28906 0.96875,-0.59375 1.94141,-1.24219 2.85938,-1.89062 -12.79297,27.04297 -20.40625,59 -8.69141,86.58203 -4.21094,-17.97266 -4.48047,-36.8125 -0.75391,-54.84375 1.1875,-0.42969 2.375,-0.91406 3.50782,-1.40235 0.0547,-1.1875 0.10547,-2.32031 0.16015,-3.50781 -0.86328,0.97266 -1.67187,1.94141 -2.53515,2.85938 1.99609,-14.30469 8.14843,-27.85157 17.3789,-38.8086 m 8.69141,-0.70312 c 3.34766,-2.26563 6.69531,-4.53516 10.04297,-6.80078 -2.10547,4.26562 -5.99219,7.60937 -10.52735,9.12109 -21.05078,21.75391 -27.53125,54.19531 -25.04687,84.31641 0.97266,11.39062 3.29297,23.21093 10.63281,31.95703 -5.125,-21.05469 -5.39844,-43.29297 -0.69922,-64.45313 0.91797,-0.0547 1.23828,1.13282 1.23828,2.05078 0.37891,14.19922 -2.05078,28.39454 -1.02343,42.58985 1.02343,14.14453 6.3164,29.09765 18.1914,36.8164 9.28516,6.04297 18.51563,12.08985 27.7461,18.13672 -21.59375,-6.91015 -40.4336,-21.91797 -52.08985,-41.34765 3.12891,8.47265 7.5,16.51562 12.89844,23.75 -0.69922,-1.94532 -1.34766,-3.94141 -2.05078,-5.9375 5.45312,5.1289 10.95703,10.14843 16.41016,15.22265 3.99609,3.72266 10.25781,7.5 14.35937,3.9375 0.64844,1.35157 -0.53906,3.02344 -1.99609,3.40235 -1.46094,0.43359 -3.02344,0 -4.48047,-0.4336 6.53125,4.69922 13.33203,9.01563 20.34765,12.95703 -1.02343,0.16016 -1.34765,1.67188 -0.69921,2.53516 0.64453,0.86719 1.72656,1.08203 2.75,1.35156 25.75,5.5586 53.17187,3.50782 77.78515,-5.99218 -21.16015,4.96484 -43.72265,6.10156 -64.23437,-1.07813 -17.32813,-6.04687 -32.4961,-17.97656 -42.42969,-33.35937 -3.18359,-4.96875 -5.82813,-10.20313 -8.25781,-15.54688 -7.82813,-17.59766 -12.79297,-36.8125 -11.39063,-56.03125 1.40625,-19.21484 9.82422,-38.37891 24.94141,-50.25391 1.5625,-1.24218 3.50781,-2.42968 5.44922,-1.94531 -14.89844,10.79688 -23.75,28.66406 -26.07032,46.91016 -2.32031,18.29687 1.45704,36.86719 8.09766,54.03125 4.75,12.14844 11.0625,23.91406 19.75391,33.6289 3.72656,4.15625 7.9375,7.9375 12.73828,10.79688 8.80078,5.28906 19.21875,7.28906 29.42187,8.58203 13.8711,1.78125 27.85157,2.53906 41.83203,2.21484 -17.65234,4.15625 -36.11328,1.1875 -53.98046,-1.78125 30.33984,11.39063 65.91015,4.42579 91.98437,-14.73828 5.17969,-3.83203 10.09375,-8.09375 14.03125,-13.22265 6.04688,-7.88282 9.66406,-17.48828 11.5,-27.26172 4.75,-25.47656 -2.05078,-52.08985 -14.41406,-74.92188 -8.58203,-15.87109 -19.97266,-30.55078 -34.97656,-40.53906 -14.03516,-9.28516 -30.71485,-14.19531 -47.50391,-15.11328 -25.80078,-1.51172 -53.11328,7.01562 -70.28125,26.44922 M 576.75,588.17969 c 11.60547,2.91406 23.32031,5.01953 35.19531,6.42578 -14.57422,3.34375 -29.58203,-1.78125 -43.66797,-6.80078 -8.3164,-2.91797 -16.73437,-5.94141 -24.45312,-10.25782 -18.67969,-10.36328 -32.71485,-28.125 -40.86328,-47.8789 -1.40235,-3.50781 -2.69922,-7.01953 -3.77735,-10.58203 -0.10937,-0.42969 -0.43359,0.59375 0,0.3789 0.42969,-0.16015 0.375,-0.80859 0.16016,-1.24218 -4.85938,-11.71094 -7.82813,-24.28907 -8.74609,-36.92188 -0.91797,19.10938 3.83203,38.32422 12.46875,55.4375 9.39453,18.62109 23.48437,34.98047 41.1875,46.04297 17.65234,11.06641 38.91796,16.67969 59.64843,14.68359 29.14844,-2.85937 54.73438,-19.86328 78.21485,-37.30078 -10.36328,13.71094 -26.07032,22.1875 -41.34766,30.17578 26.39453,-7.39453 47.55469,-28.28515 60.29688,-52.57422 -6.31641,10.79297 -16.19532,19.26954 -26.9375,25.63672 -10.79688,6.3711 -22.61719,10.79688 -34.4375,15.0625 -5.1836,1.89063 -10.41797,3.72266 -15.76172,5.23438 -15.27735,4.375 -31.36328,5.88672 -47.17969,4.48047 m 107.95703,-36.48828 c 2.69922,-2.53907 5.34766,-5.12891 7.50391,-8.04297 3.40234,-4.69532 5.66797,-10.14844 7.82812,-15.54688 2.91406,-7.33984 5.88281,-14.73828 6.64063,-22.61719 -1.40625,1.24219 -1.89063,3.07813 -2.42969,4.85938 -7.17969,24.88281 -24.9375,46.58203 -47.98828,58.45703 10.85156,-2.42969 20.1875,-9.5 28.44531,-17.10937 m -131.92187,26.44921 c 1.13281,0.26954 2.53515,0.75391 2.58984,1.89063 0.42969,-0.75781 1.72656,-0.75781 2.21094,0 0.21875,-0.0547 0.0547,-0.43359 -0.21485,-0.54297 -1.61718,-0.86328 -3.23828,-1.72656 -4.80468,-2.58984 -6.53125,-3.50782 -12.52344,-7.87891 -17.86719,-12.95313 -0.64844,1.40235 -0.16016,3.1836 1.08203,4.04688 2.375,1.72656 4.75,3.45312 7.125,5.18359 2.85937,2.375 6.26172,4.10156 9.87891,4.96484 m 155.89062,-81.61718 c -0.21484,3.99609 -0.43359,8.04297 -0.70312,12.03906 -0.0508,0.53906 -0.0508,1.07812 -0.0508,1.61719 -0.0547,0.97265 -0.10937,1.94531 -0.21875,2.86328 -0.0547,1.1875 -0.10546,2.26562 -0.10546,3.45312 2.26562,-9.17578 3.07421,-18.78515 2.375,-28.17578 -0.26954,-0.10937 -0.54297,-0.26953 -0.75782,-0.43359 -0.16015,2.85937 -0.3789,5.72265 -0.53906,8.63672 m -209.8164,-59.16016 c -0.3789,0.69922 -0.70312,1.40234 -1.02734,2.10547 0.37891,0.48437 1.07813,-0.10938 1.24219,-0.70313 0.16015,-0.53906 0.32422,-1.29687 0.91797,-1.34765 -0.26953,-0.27344 -0.53907,-0.54297 -0.8086,-0.8125 -0.10937,0.21875 -0.21875,0.53906 -0.10937,0.75781 m 39.02734,-44.80469 c 0.53906,-0.42968 1.07813,-0.86328 1.61719,-1.34765 -0.91797,-0.37891 -2.10547,0.10547 -2.48047,1.07812 0.26953,0.10938 0.53906,0.21485 0.86328,0.26953 m 1.67188,-2.53515 c 1.1875,0.26953 2.53906,-0.0547 3.50781,-0.86328 -1.23828,-0.0547 -2.48047,0.21484 -3.50781,0.86328 m -42.96485,54.78906 c -0.0547,-0.26953 -0.10937,-0.53906 -0.10937,-0.75781 -1.02735,0.3789 -1.51172,1.78125 -0.91797,2.69922 0.21484,-0.69922 0.53906,-1.34766 1.02734,-1.94141 m -6.10156,27.52734 c -0.26953,0.37891 -0.0547,1.02735 0.43359,1.08203 0.26954,-0.86328 0.21485,-1.78125 -0.0547,-2.69921 -0.53907,0.26953 -0.70313,1.02343 -0.37891,1.51171" />
|
|
46
|
+
<path d="m 527.08984,398.39062 c 0.10547,0.16016 0.21485,0.375 0.32422,0.53907 -0.48828,0.69922 -1.40625,1.02343 -2.21484,0.80859 0.43359,-0.59375 1.08203,-1.02344 1.78125,-1.1875" />
|
|
47
|
+
<path d="m 522.82422,401.84375 c 0.75781,-0.26953 1.5664,-0.43359 2.375,-0.37891 -0.16016,1.1875 -2.16016,1.51172 -2.64453,0.37891" />
|
|
48
|
+
<path d="m 520.125,399.35937 c 0.48828,-0.7539 1.40234,-1.29296 2.375,-1.1875 0.21484,0.54297 0.0547,1.1875 -0.37891,1.56641 -0.7539,0.10938 -1.67187,0.21484 -2.21093,-0.37891" />
|
|
49
|
+
<path d="m 671.42969,402.92187 c 0.32422,-0.0508 0.64843,0.26954 0.59375,0.59375 -0.0547,0.32422 -0.42969,0.54297 -0.75391,0.4336 -0.48828,-0.53906 -0.97266,-1.13281 -1.45703,-1.72656 0.53906,-0.4336 1.50781,-0.0547 1.61719,0.59375" />
|
|
50
|
+
<path d="m 524.98437,394.93359 c 0.37891,-0.42968 1.13282,-0.42968 1.56641,-0.0547 -0.70312,0.70312 -1.62109,1.1875 -2.59375,1.51171 -0.10547,-0.59375 0.43359,-1.29296 1.02734,-1.24218" />
|
|
51
|
+
<path d="m 516.13281,445.13672 c 0.48438,-0.70313 1.78125,-0.4336 1.94141,0.42969 -0.64844,-0.10547 -1.34766,0.10937 -1.78125,0.59375 -0.26953,0.10937 -0.70313,-0.10547 -0.70313,-0.42969 -0.0508,-0.26953 0.27344,-0.59375 0.59375,-0.54297" />
|
|
52
|
+
<path d="m 547.00781,410.58984 c 0.26953,-0.10937 0.64844,-0.21875 0.91797,-0.10937 0.32422,0.10937 0.48438,0.59375 0.26953,0.80859 -1.02734,0.64844 -2.21484,1.02735 -3.40234,1.08203 0.54297,-0.75781 1.35156,-1.35156 2.21484,-1.78125" />
|
|
53
|
+
<path d="m 562.92969,579.27344 c 0.54297,0.3789 1.13672,0.75781 1.67578,1.13281 -1.1875,0.48828 -2.58985,0.21875 -3.5625,-0.64453 -0.21485,-0.37891 0.21484,-0.91797 0.59375,-0.91797 0.48437,-0.0547 0.91797,0.21484 1.29297,0.42969" />
|
|
54
|
+
<path d="m 538.26172,405.62109 c -0.26953,-0.80859 -0.0547,-1.78125 0.59375,-2.375 0.43359,-0.10547 0.86328,-0.42968 1.02734,-0.91797 0.69922,0.26954 1.34766,0.54297 2.05078,0.8125 -1.1875,0.8086 -2.42968,1.61719 -3.67187,2.48047" />
|
|
55
|
+
<path d="m 511.92187,463.59766 c 0,-0.32422 0,-0.64844 0,-0.97266 0.53907,-0.26953 1.13282,-0.26953 1.61719,-0.0547 -0.96875,1.02735 -1.51172,2.42969 -1.40234,3.83203 -0.59375,-0.42968 -1.24219,-0.91797 -1.89063,-1.34765 0.54297,-0.4336 1.13672,-0.91797 1.73047,-1.40625" />
|
|
56
|
+
<path d="m 508.35937,415.93359 c 0.21485,-1.67578 1.1875,-3.1875 2.53516,-4.21093 0.37891,-0.26954 0.97266,-0.4336 1.1875,-0.0547 -1.1875,1.1875 -2.16016,2.53515 -2.85937,4.04687 -0.16407,0.27344 -0.59375,0.4336 -0.86329,0.21875" />
|
|
57
|
+
<path d="m 513.91797,449.39844 c 1.07812,-0.8086 2.10547,-1.61719 3.18359,-2.42969 -0.26953,1.02734 -0.53906,1.94531 -0.80859,2.96875 -0.37891,0.21875 -0.64844,0.59766 -1.02344,0.8125 -0.37891,0.21484 -0.91797,0.26953 -1.1875,-0.10938 -0.21875,-0.3789 0.375,-0.91796 0.59375,-0.53906 -0.21875,-0.21484 -0.48828,-0.43359 -0.75781,-0.70312" />
|
|
58
|
+
<path d="m 555.05078,407.56641 c -0.10937,0.26953 -0.21484,0.53906 -0.10937,0.86328 -0.86329,0.16015 -1.67188,0.32422 -2.42969,0.48437 -0.10547,0.32422 -0.21485,0.64844 -0.32031,0.97266 -0.64844,-0.0547 -1.29688,-0.0547 -1.89063,-0.0547 -0.53906,-0.26953 0,-1.02344 0.53906,-1.29297 1.07813,-0.54297 2.21485,-0.86719 3.40235,-1.02734 -0.16407,-0.26953 -0.32422,-0.48438 -0.48828,-0.75391 0.86328,-0.70312 1.89062,-1.1875 3.02343,-1.51172 0.21485,0.375 0.26953,0.8086 0.16407,1.23828 -0.37891,0.16407 -0.75782,0.21875 -1.13672,0.10938 0.0547,0.26953 0.10937,0.53906 0.16406,0.86328 -0.37891,0.10938 -0.64844,0.16406 -0.91797,0.10938" />
|
|
59
|
+
<path d="m 512.83984,412.64062 c 0.42969,-0.26953 1.02344,-0.3789 1.51172,-0.26953 -0.21875,-0.26953 -0.3789,-0.54297 -0.54297,-0.8125 0.54297,-0.10547 1.08203,-0.21484 1.67578,-0.26953 0.21485,-0.53906 0.21485,-1.1875 0,-1.72656 0.59375,-0.0547 1.24219,0.0547 1.78125,0.26953 0.16016,0.21484 0.21485,0.53906 0.16016,0.80859 -0.26953,0.10938 -0.59375,0.21875 -0.91797,0.32422 -0.10547,0.54297 -0.26953,1.08203 -0.375,1.6211 -0.26953,0.16015 -0.70312,0.21484 -1.02734,0.10937 -0.48438,2.91406 -3.67188,4.58594 -4.80469,7.28516 -0.37891,0.91797 -0.75391,2.10547 -1.72656,2.10547 -0.26953,-0.32422 -0.21485,-0.91797 0.16015,-1.1875 -0.375,-0.10938 -0.69921,-0.21485 -1.02343,-0.32422 -0.0547,-0.59375 0.91797,-0.42969 1.40234,-0.0547 0.43359,-0.375 0.0547,-1.24219 -0.48437,-1.24219 0.59375,-0.48437 0.97265,-1.23828 1.07812,-1.99609 0.59375,0.0547 1.1875,-0.16016 1.56641,-0.59375 -0.4336,0.10937 -0.91797,-0.21484 -1.02735,-0.69922 0.86328,0.16016 1.73047,-0.64844 1.67578,-1.51172 0.64844,-0.3789 1.29297,-0.75781 1.94141,-1.13672 -0.26953,-0.16015 -0.64844,-0.42968 -1.02344,-0.69922" />
|
|
60
|
+
<path d="m 682.38672,415.5 c -1.1875,-1.61719 -2.42969,-3.18359 -3.9375,-4.53516 -2.10547,-1.88672 -4.80469,-3.5625 -5.23828,-6.36718 12.6875,10.74218 22.45703,24.9375 27.90625,40.64453 0.48828,0.43359 -0.0508,1.40625 -0.64453,1.24218 -4.75,-10.95703 -10.85157,-21.42968 -18.08594,-30.98437" />
|
|
61
|
+
<path d="m 539.88281,406.97266 c 2.21094,-1.78125 4.75,-3.45704 5.66797,-6.15625 0.26953,-0.75391 1.02344,-1.34766 1.72656,-1.78125 10.90235,-6.85547 23.64453,-10.63282 36.48828,-10.84766 -6.42187,1.72656 -12.79296,3.39844 -19.21484,5.12891 -9.98437,2.64453 -17.32812,10.90234 -24.07422,18.78515 -5.83203,6.85547 -11.71484,13.71094 -17.54297,20.61719 -0.70312,1.89062 -1.35156,3.83203 -2.05078,5.72266 -0.26953,0.86328 -0.59375,1.72656 -1.35156,2.26562 -0.69922,0.54297 -1.88672,0.54297 -2.32031,-0.26953 2.58984,-4.53125 5.18359,-9.12109 7.82812,-13.71094 4.21094,-7.125 8.41797,-14.46484 14.84375,-19.7539" />
|
|
62
|
+
</g>
|
|
63
|
+
</>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export const MarimoIcon = ({
|
|
68
|
+
size = 24,
|
|
69
|
+
width,
|
|
70
|
+
height,
|
|
71
|
+
fill,
|
|
72
|
+
stroke,
|
|
73
|
+
strokeWidth = 2,
|
|
74
|
+
viewBox = "0 0 24 24",
|
|
75
|
+
...props
|
|
76
|
+
}: React.SVGProps<SVGSVGElement> & {
|
|
77
|
+
size?: number | string;
|
|
78
|
+
}) => {
|
|
79
|
+
return (
|
|
80
|
+
<svg
|
|
81
|
+
width={width ?? size}
|
|
82
|
+
height={height ?? size}
|
|
83
|
+
viewBox={viewBox}
|
|
84
|
+
{...props}
|
|
85
|
+
>
|
|
86
|
+
<title>marimo icon</title>
|
|
87
|
+
<MarimoCirclePaths
|
|
88
|
+
fill={fill}
|
|
89
|
+
stroke={stroke ?? "currentColor"}
|
|
90
|
+
strokeWidth={strokeWidth}
|
|
91
|
+
/>
|
|
92
|
+
<MarimoLetterPaths stroke={stroke ?? "currentColor"} />
|
|
93
|
+
</svg>
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const MarimoMultiIcon = ({
|
|
98
|
+
size = 24,
|
|
99
|
+
width,
|
|
100
|
+
height,
|
|
101
|
+
fill,
|
|
102
|
+
stroke,
|
|
103
|
+
strokeWidth = 2,
|
|
104
|
+
maskCenterX,
|
|
105
|
+
maskCenterY,
|
|
106
|
+
maskRadius,
|
|
107
|
+
children,
|
|
108
|
+
viewBox = "0 0 24 24",
|
|
109
|
+
...props
|
|
110
|
+
}: React.SVGProps<SVGSVGElement> & {
|
|
111
|
+
size?: number | string;
|
|
112
|
+
maskCenterX: number | string;
|
|
113
|
+
maskCenterY: number | string;
|
|
114
|
+
maskRadius: number | string;
|
|
115
|
+
}) => {
|
|
116
|
+
const maskId = useId();
|
|
117
|
+
return (
|
|
118
|
+
<svg
|
|
119
|
+
width={width ?? size}
|
|
120
|
+
height={height ?? size}
|
|
121
|
+
viewBox={viewBox}
|
|
122
|
+
{...props}
|
|
123
|
+
>
|
|
124
|
+
<title>marimo multi icon</title>
|
|
125
|
+
<defs>
|
|
126
|
+
<mask id={maskId}>
|
|
127
|
+
<rect width="100%" height="100%" fill="white" />
|
|
128
|
+
<circle
|
|
129
|
+
cx={maskCenterX}
|
|
130
|
+
cy={maskCenterY}
|
|
131
|
+
r={maskRadius}
|
|
132
|
+
fill="black"
|
|
133
|
+
stroke="none"
|
|
134
|
+
/>
|
|
135
|
+
</mask>
|
|
136
|
+
</defs>
|
|
137
|
+
<g mask={`url(#${maskId})`}>
|
|
138
|
+
<MarimoCirclePaths
|
|
139
|
+
fill={fill}
|
|
140
|
+
stroke={stroke ?? "currentColor"}
|
|
141
|
+
strokeWidth={strokeWidth}
|
|
142
|
+
/>
|
|
143
|
+
</g>
|
|
144
|
+
{children}
|
|
145
|
+
<MarimoLetterPaths stroke={stroke ?? "currentColor"} />
|
|
146
|
+
</svg>
|
|
147
|
+
);
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export const MarimoPlusIcon = ({
|
|
151
|
+
stroke,
|
|
152
|
+
strokeWidth = 2,
|
|
153
|
+
...props
|
|
154
|
+
}: React.SVGProps<SVGSVGElement> & { size?: number | string }) => {
|
|
155
|
+
return (
|
|
156
|
+
<MarimoMultiIcon
|
|
157
|
+
stroke={stroke}
|
|
158
|
+
strokeWidth={strokeWidth}
|
|
159
|
+
maskCenterX={19} // center x of plus symbol
|
|
160
|
+
maskCenterY={19} // center y of plus symbol
|
|
161
|
+
maskRadius={Number(strokeWidth) + 3} // size of plus symbol
|
|
162
|
+
{...props}
|
|
163
|
+
>
|
|
164
|
+
{/* plus symbol at lower right corner */}
|
|
165
|
+
<path
|
|
166
|
+
stroke={stroke ?? "currentColor"}
|
|
167
|
+
strokeWidth={strokeWidth}
|
|
168
|
+
strokeLinecap="round"
|
|
169
|
+
d="M16 19h6M19 16v6"
|
|
170
|
+
/>
|
|
171
|
+
</MarimoMultiIcon>
|
|
172
|
+
);
|
|
173
|
+
};
|
|
@@ -25,22 +25,6 @@ interface CodeBlockProps {
|
|
|
25
25
|
language: string | undefined;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
const SUPPORTED_LANGUAGES = new Set([
|
|
29
|
-
"python",
|
|
30
|
-
"markdown",
|
|
31
|
-
"sql",
|
|
32
|
-
"json",
|
|
33
|
-
"yaml",
|
|
34
|
-
"toml",
|
|
35
|
-
"shell",
|
|
36
|
-
"javascript",
|
|
37
|
-
"typescript",
|
|
38
|
-
"jsx",
|
|
39
|
-
"tsx",
|
|
40
|
-
"css",
|
|
41
|
-
"html",
|
|
42
|
-
]);
|
|
43
|
-
|
|
44
28
|
function maybeTransform(
|
|
45
29
|
language: string | undefined,
|
|
46
30
|
code: string,
|
|
@@ -128,10 +112,9 @@ const CodeBlock = ({ code, language }: CodeBlockProps) => {
|
|
|
128
112
|
<Suspense>
|
|
129
113
|
<LazyAnyLanguageCodeMirror
|
|
130
114
|
theme={theme === "dark" ? "dark" : "light"}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
115
|
+
language={language}
|
|
116
|
+
// Since this may be LLM generated, we don't want show errors for unsupported languages
|
|
117
|
+
hideUnsupportedLanguageErrors={true}
|
|
135
118
|
className="cm border rounded overflow-hidden"
|
|
136
119
|
extensions={extensions}
|
|
137
120
|
value={value}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
3
|
import { Panel, PanelGroup } from "react-resizable-panels";
|
|
4
|
+
import { MarimoIcon } from "@/components/icons/marimo-icons";
|
|
4
5
|
import type { AppConfig } from "@/core/config/config-schema";
|
|
5
6
|
import { Constants } from "@/core/constants";
|
|
6
7
|
import { RunApp } from "@/core/run-app";
|
|
7
8
|
import { isStaticNotebook } from "@/core/static/static-state";
|
|
8
9
|
import { isWasm } from "@/core/wasm/utils";
|
|
9
|
-
import marimoIcon from "../../assets/icon-32x32.png";
|
|
10
10
|
import { ContextAwarePanel } from "../editor/chrome/panels/context-aware-panel/context-aware-panel";
|
|
11
11
|
import { PanelsWrapper } from "../editor/chrome/wrapper/panels";
|
|
12
12
|
import { StaticBanner } from "../static-html/static-banner";
|
|
@@ -41,7 +41,7 @@ const Watermark = () => {
|
|
|
41
41
|
className="text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2"
|
|
42
42
|
>
|
|
43
43
|
<span>made with marimo</span>
|
|
44
|
-
<
|
|
44
|
+
<MarimoIcon className="h-4 w-auto" />
|
|
45
45
|
</a>
|
|
46
46
|
</div>
|
|
47
47
|
);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import AwsIcon from "@marimo-team/llm-info/icons/aws.svg?inline";
|
|
4
|
+
import AwsDarkIcon from "@marimo-team/llm-info/icons/aws-dark.svg?inline";
|
|
5
|
+
import AzureIcon from "@marimo-team/llm-info/icons/azure.svg?inline";
|
|
6
|
+
import CloudflareIcon from "@marimo-team/llm-info/icons/cloudflare.svg?inline";
|
|
7
|
+
import CoreweaveIcon from "@marimo-team/llm-info/icons/coreweave.svg?inline";
|
|
8
|
+
import CoreweaveDarkIcon from "@marimo-team/llm-info/icons/coreweave-dark.svg?inline";
|
|
9
|
+
import {
|
|
10
|
+
DatabaseZapIcon,
|
|
11
|
+
FileCodeIcon,
|
|
12
|
+
FileIcon,
|
|
13
|
+
FileSpreadsheetIcon,
|
|
14
|
+
FileTextIcon,
|
|
15
|
+
FileVideoIcon,
|
|
16
|
+
GlobeIcon,
|
|
17
|
+
HardDriveIcon,
|
|
18
|
+
ImageIcon,
|
|
19
|
+
} from "lucide-react";
|
|
20
|
+
import GoogleCloudIcon from "@/components/databases/icons/google-cloud-storage.svg?inline";
|
|
21
|
+
import type { KnownStorageProtocol } from "@/core/storage/types";
|
|
22
|
+
import { useTheme } from "@/theme/useTheme";
|
|
23
|
+
|
|
24
|
+
export function renderFileIcon(name: string): React.ReactNode {
|
|
25
|
+
const ext = name.split(".").pop()?.toLowerCase();
|
|
26
|
+
switch (ext) {
|
|
27
|
+
case "png":
|
|
28
|
+
case "jpg":
|
|
29
|
+
case "jpeg":
|
|
30
|
+
case "gif":
|
|
31
|
+
case "svg":
|
|
32
|
+
case "webp":
|
|
33
|
+
return <ImageIcon className="h-3.5 w-3.5 text-purple-500" />;
|
|
34
|
+
case "csv":
|
|
35
|
+
case "parquet":
|
|
36
|
+
case "arrow":
|
|
37
|
+
case "xlsx":
|
|
38
|
+
return <FileSpreadsheetIcon className="h-3.5 w-3.5 text-green-500" />;
|
|
39
|
+
case "py":
|
|
40
|
+
case "js":
|
|
41
|
+
case "ts":
|
|
42
|
+
case "json":
|
|
43
|
+
return <FileCodeIcon className="h-3.5 w-3.5 text-blue-500" />;
|
|
44
|
+
case "mp4":
|
|
45
|
+
case "mpeg":
|
|
46
|
+
return <FileVideoIcon className="h-3.5 w-3.5 text-orange-500" />;
|
|
47
|
+
case "txt":
|
|
48
|
+
case "md":
|
|
49
|
+
case "log":
|
|
50
|
+
return <FileTextIcon className="h-3.5 w-3.5 text-muted-foreground" />;
|
|
51
|
+
default:
|
|
52
|
+
return <FileIcon className="h-3.5 w-3.5 text-muted-foreground" />;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type IconEntry =
|
|
57
|
+
| { src: string; dark?: string }
|
|
58
|
+
| React.ComponentType<{ className?: string }>;
|
|
59
|
+
|
|
60
|
+
const PROTOCOL_ICONS: Record<KnownStorageProtocol, IconEntry> = {
|
|
61
|
+
s3: { src: AwsIcon, dark: AwsDarkIcon },
|
|
62
|
+
coreweave: { src: CoreweaveIcon, dark: CoreweaveDarkIcon },
|
|
63
|
+
cloudflare: { src: CloudflareIcon },
|
|
64
|
+
azure: { src: AzureIcon },
|
|
65
|
+
gcs: { src: GoogleCloudIcon },
|
|
66
|
+
http: GlobeIcon,
|
|
67
|
+
file: HardDriveIcon,
|
|
68
|
+
"in-memory": DatabaseZapIcon,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const ProtocolIcon: React.FC<{
|
|
72
|
+
protocol: KnownStorageProtocol | (string & {});
|
|
73
|
+
}> = ({ protocol }) => {
|
|
74
|
+
const { theme } = useTheme();
|
|
75
|
+
const entry =
|
|
76
|
+
PROTOCOL_ICONS[protocol.toLowerCase() as KnownStorageProtocol] ??
|
|
77
|
+
HardDriveIcon;
|
|
78
|
+
|
|
79
|
+
if ("src" in entry) {
|
|
80
|
+
const src = theme === "dark" && entry.dark ? entry.dark : entry.src;
|
|
81
|
+
return <img src={src} alt={protocol} className="h-3.5 w-3.5" />;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const Icon = entry;
|
|
85
|
+
return <Icon className="h-3.5 w-3.5" />;
|
|
86
|
+
};
|