@marimo-team/frontend 0.19.8-dev4 → 0.19.8-dev40
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/assets/{CellStatus-CTtb89yx.js → CellStatus-D-CCv4h6.js} +1 -1
- package/dist/assets/{Combination-C_mRvd_Z.js → Combination-izwufzWe.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-CX7YQX42.js → ConnectedDataExplorerComponent-C1BlkUlk.js} +1 -1
- package/dist/assets/{DeferredRequestRegistry-CO2AyNfd.js → DeferredRequestRegistry-tv0PqJZ0.js} +1 -1
- package/dist/assets/{ErrorBoundary-ChCiwl15.js → ErrorBoundary-B9Ifj8Jf.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-BVBGmVcA.js → ImageComparisonComponent-BVXYpigZ.js} +1 -1
- package/dist/assets/{ImperativeModal-CKeCkc1k.js → ImperativeModal-DZr52ffu.js} +1 -1
- package/dist/assets/{Inputs-CBxLLWdV.js → Inputs-CbenuziM.js} +1 -1
- package/dist/assets/{JsonOutput-BTBD86gT.js → JsonOutput-CU0ad2LH.js} +11 -11
- package/dist/assets/{LazyAnyLanguageCodeMirror-Be7SB10I.js → LazyAnyLanguageCodeMirror-BqosdyZU.js} +2 -2
- package/dist/assets/MarimoErrorOutput-BydcsyYP.js +7 -0
- package/dist/assets/{RenderHTML-IBhB_MjX.js → RenderHTML-3amWMGgo.js} +1 -1
- package/dist/assets/{SSRProvider-DBS9qs3r.js → SSRProvider-DrpctNAg.js} +1 -1
- package/dist/assets/__vite-browser-external-D-ioOGDE.js +1 -0
- package/dist/assets/__vite-browser-external-DBckR0WR.js +1 -0
- package/dist/assets/{add-cell-with-ai-DsiiVErB.js → add-cell-with-ai-B07D0AiE.js} +6 -6
- package/dist/assets/{add-database-form-B1frIn24.js → add-database-form-BnEY6X5s.js} +3 -3
- package/dist/assets/{agent-panel-B_Ur2utx.js → agent-panel-C1O0Y8Bi.js} +5 -5
- package/dist/assets/{ai-model-dropdown-Dix8JIRc.js → ai-model-dropdown-Cugcw6NV.js} +4 -4
- package/dist/assets/{alert-adkp2Qj8.js → alert-Cx8eFRUM.js} +1 -1
- package/dist/assets/{alert-dialog-CordKci7.js → alert-dialog-Ctz24SMn.js} +1 -1
- package/dist/assets/{any-language-editor-Z9d2XKUM.js → any-language-editor-DyXJSyeK.js} +1 -1
- package/dist/assets/{app-config-button-CYFJH9oz.js → app-config-button-66OSct-U.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-B-zQV2Ro.js → architectureDiagram-VXUJARFQ-B8zMpJcM.js} +1 -1
- package/dist/assets/{arrow-left-Cb_73j1f.js → arrow-left-VDC1u5rq.js} +1 -1
- package/dist/assets/{badge-Ce8wRjuQ.js → badge-D4keL3YC.js} +1 -1
- package/dist/assets/blob-Bgnx1kuY.js +1 -0
- package/dist/assets/{blockDiagram-VD42YOAC-B7BRAty8.js → blockDiagram-VD42YOAC-CF1a-_t0.js} +1 -1
- package/dist/assets/{bundle.esm-B-jCcPJK.js → bundle.esm-CBAPjfrh.js} +1 -1
- package/dist/assets/{button-YC1gW_kJ.js → button-CZ3Cs4qb.js} +1 -1
- package/dist/assets/{c4Diagram-YG6GDRKO-C5JyC9v_.js → c4Diagram-YG6GDRKO-YIsEsUdQ.js} +1 -1
- package/dist/assets/{cache-panel-BfCxvTOh.js → cache-panel-C_9WDApV.js} +1 -1
- package/dist/assets/{card-BAxUmnnT.js → card-DdlNjkEA.js} +1 -1
- package/dist/assets/{cell-editor-BQ5bBOiS.js → cell-editor-DZgQrVMs.js} +14 -14
- package/dist/assets/{cell-link-DW0zobk9.js → cell-link-B37i0WNz.js} +1 -1
- package/dist/assets/{cells-BcMpgRWV.js → cells-B0XKj2oa.js} +32 -32
- package/dist/assets/channel-CXFsg7SH.js +1 -0
- package/dist/assets/{chart-no-axes-column-W42b2ZIs.js → chart-no-axes-column-qvVRjhv1.js} +1 -1
- package/dist/assets/{chat-components-BpIX7pUp.js → chat-components-BNjAKvAv.js} +1 -1
- package/dist/assets/{chat-display-CVXM0cmr.js → chat-display-q9RdcWB-.js} +1 -1
- package/dist/assets/chat-panel-viPqlAXC.js +3 -0
- package/dist/assets/check-Dr3SxUsb.js +1 -0
- package/dist/assets/{chevron-right-DwagBitu.js → chevron-right--18M_6o9.js} +1 -1
- package/dist/assets/{chunk-5FQGJX7Z-Bmb7yu_c.js → chunk-5FQGJX7Z-T2jyw7ZD.js} +3 -3
- package/dist/assets/{chunk-ABZYJK2D-Coo5qi7b.js → chunk-ABZYJK2D-D1A06qKo.js} +3 -3
- package/dist/assets/{chunk-ATLVNIR6-C0ULYreM.js → chunk-ATLVNIR6-C5FWd1qN.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-D6Q5lT5Z.js → chunk-B4BG7PRW-BEayfxv_.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-BUUtkB-8.js → chunk-DI55MBZ5-BSrtupT8.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-DQy5cN5X.js → chunk-EXTU4WIE-wi_fHsHN.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-99Y1UR46.js → chunk-JA3XYJ7Z-tKDxhnhw.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-DRGkEV50.js → chunk-JZLCHNYA-DtvI9B9X.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-DHFG9ldR.js → chunk-N4CR4FBY-BQcJpHO7.js} +2 -2
- package/dist/assets/{chunk-QN33PNHL-DB8FgLRd.js → chunk-QN33PNHL-BboKw3W6.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-_zxuSm7L.js → chunk-QXUST7PY-C4Ihfbmy.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-PVCoxQeQ.js → chunk-S3R3BYOJ-D1UiABQX.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-KYGSDxPK.js → chunk-TZMSLE5B-BjrxQwUX.js} +1 -1
- package/dist/assets/{circle-check-C57eOpl0.js → circle-check-DquVD4wZ.js} +1 -1
- package/dist/assets/{circle-play-BuOtSgid.js → circle-play-EowqxNIC.js} +1 -1
- package/dist/assets/{circle-plus-CnWl9uZo.js → circle-plus-haI9GLDP.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-BHD5dOKT.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-VYd80hrd.js +1 -0
- package/dist/assets/{clear-button-CF0iBcV9.js → clear-button-DI7_bdOB.js} +1 -1
- package/dist/assets/{click-outside-container-B12FHFHm.js → click-outside-container-Npdlddni.js} +1 -1
- package/dist/assets/{clipboard-paste-BiDF-cqm.js → clipboard-paste-CpyPR-HZ.js} +1 -1
- package/dist/assets/{code-block-37QAKDTI-D5PRUB7R.js → code-block-37QAKDTI-FUPT3-7o.js} +1 -1
- package/dist/assets/{code-xml-XLwHyDBr.js → code-xml-CgN_Yig7.js} +1 -1
- package/dist/assets/{column-preview-v3J210SK.js → column-preview-DrmYyyvE.js} +1 -1
- package/dist/assets/{command-DOzj5zu3.js → command-DTFQw11F.js} +1 -1
- package/dist/assets/{command-palette-B94wuFEk.js → command-palette-CrOe4bpD.js} +1 -1
- package/dist/assets/{common-DHF6uQdA.js → common-C0Pspoza.js} +1 -1
- package/dist/assets/compiler-runtime-B3qBwwSJ.js +1 -0
- package/dist/assets/{config-C3-Nti03.js → config-D2-Bw6QC.js} +1 -1
- package/dist/assets/{context-CJp-B2dx.js → context-Ga_vV5mE.js} +1 -1
- package/dist/assets/{copy-CQ15EONK.js → copy-D-8y6iMN.js} +1 -1
- package/dist/assets/{copy-icon-C1fNHY3M.js → copy-icon-C9v8EtBA.js} +1 -1
- package/dist/assets/createLucideIcon-BCdY6lG5.js +1 -0
- package/dist/assets/{createReducer-Dnna-AUO.js → createReducer-B3rBsy4P.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-khPiqbzB.js → dagre-6UL2VRFP-CX3NGWnu.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-Ca1ELXWD.js → data-grid-overlay-editor-BTyw6887.js} +1 -1
- package/dist/assets/{database-zap-B9y7063w.js → database-zap-k4ePIFAU.js} +1 -1
- package/dist/assets/{datasource-BZ3O2HG1.js → datasource-2_-ICoTV.js} +1 -1
- package/dist/assets/{dates-Cx863TsG.js → dates-CT5PUuFo.js} +1 -1
- package/dist/assets/{dependency-graph-panel-s45LIDec.js → dependency-graph-panel-z8kf8Tus.js} +4 -4
- package/dist/assets/{diagram-PSM6KHXK-C7-DZLOE.js → diagram-PSM6KHXK-C0Sfgs1J.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-Ct2_XsRV.js → diagram-QEK2KX5R-DYSkW6Ju.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-C82IZoPA.js → diagram-S2PKOQOG-CfHqQVo3.js} +1 -1
- package/dist/assets/{dialog-Dstm3Ubn.js → dialog-tQELcltn.js} +1 -1
- package/dist/assets/{dist-oarhZoo6.js → dist-BMEHQAhk.js} +1 -1
- package/dist/assets/{dist-PT7WsOdN.js → dist-DDGMbl6p.js} +1 -1
- package/dist/assets/{dist-BhLw_JdQ.js → dist-h1RhtzUB.js} +1 -1
- package/dist/assets/{documentation-panel-DRqbOPwM.js → documentation-panel-DIp1L-6Y.js} +1 -1
- package/dist/assets/{download-zuPzhwvm.js → download-CxmzcjnR.js} +1 -1
- package/dist/assets/{download-B9SUL40m.js → download-Dg7clfkc.js} +1 -1
- package/dist/assets/{dropdown-menu-D8v7RjW8.js → dropdown-menu-BUgFWmX1.js} +1 -1
- package/dist/assets/{edit-page-Dlr4v1eI.js → edit-page-DRwTenyP.js} +7 -7
- package/dist/assets/{ellipsis-5ip-qDfN.js → ellipsis-DfDsMPvA.js} +1 -1
- package/dist/assets/{ellipsis-vertical-C7jYiLCo.js → ellipsis-vertical-J1F7_WS9.js} +1 -1
- package/dist/assets/{empty-state-BAGXXrn8.js → empty-state-DrmGF88A.js} +1 -1
- package/dist/assets/{en-US-XLBup7bs.js → en-US-DU2jJCpg.js} +1 -1
- package/dist/assets/{erDiagram-Q2GNP2WA-Ftt2qDiM.js → erDiagram-Q2GNP2WA-BfRyUS6D.js} +1 -1
- package/dist/assets/{error-banner-JIexM8h5.js → error-banner-w4pz2qUB.js} +1 -1
- package/dist/assets/{error-panel-TqjIx6nC.js → error-panel-Cz3rrpG9.js} +1 -1
- package/dist/assets/{errors-B5AI4nf5.js → errors-CPlNr33a.js} +1 -1
- package/dist/assets/{es-CPSXxuS6.js → es-GXAIFcot.js} +5 -5
- package/dist/assets/{esm-BbNm2fB0.js → esm-BK6tLEHQ.js} +1 -1
- package/dist/assets/{eye-off-BhExYOph.js → eye-off-AK_9uodG.js} +1 -1
- package/dist/assets/{field-1uCBX4j4.js → field-D9jE8HEt.js} +1 -1
- package/dist/assets/{file-Cs1JbsV6.js → file-Ch78NKWp.js} +1 -1
- package/dist/assets/{file-explorer-panel-jku_uMQn.js → file-explorer-panel-BJWXa6fg.js} +1 -1
- package/dist/assets/{file-plus-corner-Da9I6dgU.js → file-plus-corner-CvAy4H5W.js} +1 -1
- package/dist/assets/{file-video-camera-DW3v07j2.js → file-video-camera-C3wGzBnE.js} +1 -1
- package/dist/assets/{floating-outline-CZbF47gm.js → floating-outline-BSd7WV6r.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-Ca9aZp-3.js → flowDiagram-NV44I4VS-DKkZCUwG.js} +1 -1
- package/dist/assets/{focus-BxGelf2n.js → focus-CZLCQiuh.js} +1 -1
- package/dist/assets/{form-DQt-Ldr4.js → form-BQhIjeKF.js} +1 -1
- package/dist/assets/{formats-CobRswjh.js → formats-DGZwRUPy.js} +1 -1
- package/dist/assets/gallery-page-1AmSypJ6.js +1 -0
- package/dist/assets/{ganttDiagram-JELNMOA3-PYFPdyuJ.js → ganttDiagram-JELNMOA3-J8yLTqxn.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NY62KEGX-CfGWoYOo.js → gitGraphDiagram-NY62KEGX-DXw3a-uS.js} +1 -1
- package/dist/assets/{glide-data-editor-8ek3zzAO.js → glide-data-editor-Cw8eE9Xn.js} +4 -4
- package/dist/assets/globals-DvWD0xHx.js +1 -0
- package/dist/assets/{home-page-xDhfcHL1.js → home-page-BaZhe30b.js} +1 -1
- package/dist/assets/{hooks-MQa8CSUr.js → hooks-B2h7NTXb.js} +1 -1
- package/dist/assets/{house-DhFkiXz7.js → house-BI81AWSn.js} +1 -1
- package/dist/assets/{html-to-image-DKqpcM7V.js → html-to-image-Cc7t14sm.js} +1 -1
- package/dist/assets/{icons-Dw4USSvE.js → icons-DjR3qLG_.js} +1 -1
- package/dist/assets/{index-DuqUGjtK.js → index-CQQ-Toaw.js} +18 -18
- package/dist/assets/index-GcHhnSIR.css +2 -0
- package/dist/assets/{infoDiagram-WHAUD3N6-Csbwq6Ks.js → infoDiagram-WHAUD3N6-32du45zK.js} +1 -1
- package/dist/assets/{input-DcAGg_4_.js → input-DHHmNa19.js} +1 -1
- package/dist/assets/{isValid-BLB2jskA.js → isValid-DpSSOU5z.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-DArwMxlY.js → journeyDiagram-XKPGCS4Q-Bmx7dA25.js} +1 -1
- package/dist/assets/{kanban-definition-3W4ZIXB7-CPjBJiO_.js → kanban-definition-3W4ZIXB7-DJzhLwsl.js} +1 -1
- package/dist/assets/{katex-DYp6oq7P.js → katex-CbllUrnh.js} +1 -1
- package/dist/assets/katex-axIMlGRc.js +1 -0
- package/dist/assets/{kbd-uRyPZ9w_.js → kbd-k3Sn_RwW.js} +1 -1
- package/dist/assets/kiosk-mode-S90PbrZr.js +1 -0
- package/dist/assets/{label-CL9Xfexh.js → label-C--1sWU6.js} +1 -1
- package/dist/assets/{layout-D-YPCWvX.js → layout-BRVYycwo.js} +4 -4
- package/dist/assets/{linear-BxhToEEF.js → linear-DWpCiijk.js} +1 -1
- package/dist/assets/{link-BsTPF7B0.js → link-DxicfMbs.js} +1 -1
- package/dist/assets/{links-BhgWpHdU.js → links-fh_IXIKE.js} +1 -1
- package/dist/assets/{logs-panel-DKSJRyF4.js → logs-panel-DU1PTK6I.js} +1 -1
- package/dist/assets/{loro_wasm_bg-BnAHSQ7o.js → loro_wasm_bg-CdafknAX.js} +2 -2
- package/dist/assets/loro_wasm_bg-WKwciKJa.wasm +0 -0
- package/dist/assets/{loro_wasm_bg-CKQGJrH5.js → loro_wasm_bg-aCueZs8k.js} +1 -1
- package/dist/assets/{maps-t9yNKYA8.js → maps-D2_Mq1pZ.js} +1 -1
- package/dist/assets/markdown-renderer-Y3WEBmX7.js +10 -0
- package/dist/assets/{menu-items-NblnuU_B.js → menu-items-vwmjPhjW.js} +1 -1
- package/dist/assets/mermaid-4DMBBIKO-Dn0v3H8Z.js +1 -0
- package/dist/assets/{mermaid-Bzaf_nA9.js → mermaid-dAaJQU1M.js} +3 -3
- package/dist/assets/{mhchem-DLDYYsJK.js → mhchem-2XRJK9de.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-DVB4z5Yy.js → mindmap-definition-VGOIOE7T-whTFv8Zv.js} +1 -1
- package/dist/assets/{mode-CevBiFCd.js → mode-CTf4rB7H.js} +1 -1
- package/dist/assets/{multi-icon-CLzAg610.js → multi-icon-BWLbAXq5.js} +1 -1
- package/dist/assets/{multi-map-W4zci54U.js → multi-map-A4XNra08.js} +1 -1
- package/dist/assets/{name-cell-input-DwvdP1Ck.js → name-cell-input-Bmq-KdJ-.js} +1 -1
- package/dist/assets/{number-overlay-editor-CvIcqV0W.js → number-overlay-editor-65UcMR52.js} +1 -1
- package/dist/assets/{outline-panel-Bg_CP1WV.js → outline-panel-Cfpy5BTW.js} +1 -1
- package/dist/assets/{packages-panel-DBgrbk-q.js → packages-panel-C2SNGD_P.js} +1 -1
- package/dist/assets/{panel-context-C-UJlFyL.js → panel-context-2mVKaSYm.js} +1 -1
- package/dist/assets/panels-D47UNcb0.js +1 -0
- package/dist/assets/{pieDiagram-ADFJNKIX-vwwb5uL8.js → pieDiagram-ADFJNKIX-4n07I4VV.js} +1 -1
- package/dist/assets/{play-BPIh-ZEU.js → play-GLWQQs7F.js} +1 -1
- package/dist/assets/{plus-BD5o34_i.js → plus-B7DF33lD.js} +1 -1
- package/dist/assets/{popover-BZZFx3Q8.js → popover-B-131r4d.js} +1 -1
- package/dist/assets/{precisionRound-CU2C3Vxx.js → precisionRound-C3fmBb6j.js} +1 -1
- package/dist/assets/{process-output-Cl2N-HlT.js → process-output-CdIpMer6.js} +1 -1
- package/dist/assets/{quadrantDiagram-AYHSOK5B-Y8bEZ32G.js → quadrantDiagram-AYHSOK5B-CNm24EC2.js} +1 -1
- package/dist/assets/{react-BGmjiNul.js → react-Bj1aDYRI.js} +1 -1
- package/dist/assets/{react-dom-C9fstfnp.js → react-dom-CSu739Rf.js} +1 -1
- package/dist/assets/{react-plotly-CZMBCa5P.js → react-plotly-OyYr93y7.js} +1 -1
- package/dist/assets/{react-resizable-panels.browser.esm-BFvP7Upm.js → react-resizable-panels.browser.esm-Mq45xjWt.js} +1 -1
- package/dist/assets/{react-vega-BCDifxTe.js → react-vega-BEiHA2e9.js} +1 -1
- package/dist/assets/react-vega-BrNLU7si.js +1 -0
- package/dist/assets/readonly-python-code-o3TsTcFg.js +1 -0
- package/dist/assets/{refresh-ccw-DLEiQDS3.js → refresh-ccw-DN_xCV6A.js} +1 -1
- package/dist/assets/{refresh-cw-CQd-1kjx.js → refresh-cw-Dx8TEWFP.js} +1 -1
- package/dist/assets/{renderShortcut-zxgoVTeP.js → renderShortcut-Xr6z-RjZ.js} +1 -1
- package/dist/assets/request-registry-BWqkV683.js +1 -0
- package/dist/assets/{requests-BsVD4CdD.js → requests-B4FYHTZl.js} +1 -1
- package/dist/assets/requests-BQkjRazP.js +1 -0
- package/dist/assets/{requirementDiagram-UZGBJVZJ-ChckaTrX.js → requirementDiagram-UZGBJVZJ-B7BwuJGh.js} +1 -1
- package/dist/assets/{rotate-ccw-B_yU4f05.js → rotate-ccw-DPbJxVVN.js} +1 -1
- package/dist/assets/run-page-BRiD7IM8.js +1 -0
- package/dist/assets/{runs-X54OGDTq.js → runs-DyBOFmAK.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-DtU4O0-i.js → sankeyDiagram-TZEHDZUN-C8KpmdhC.js} +1 -1
- package/dist/assets/{save-PMHbdtqc.js → save-DZodxFnE.js} +1 -1
- package/dist/assets/{save-worker-DtF6B3PS.js → save-worker-CtJsIYIM.js} +3 -3
- package/dist/assets/{scratchpad-panel-CIxZIJ-1.js → scratchpad-panel-9Nh-KCKz.js} +1 -1
- package/dist/assets/{secrets-panel-TwfjwIVv.js → secrets-panel-CEMSgQv5.js} +1 -1
- package/dist/assets/{select-CX1Yi8J8.js → select-B7bfltkI.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-BGXrTemh.js → sequenceDiagram-WL72ISMW-D0_AcPzd.js} +1 -1
- package/dist/assets/{session-panel-CNeWVmTR.js → session-panel-9cibvZIi.js} +1 -1
- package/dist/assets/{settings-DOXWMfVd.js → settings-OBbrbhij.js} +1 -1
- package/dist/assets/{share-Ba-pHZtq.js → share-rXkgGlhr.js} +1 -1
- package/dist/assets/{slides-component-CGMJm_kL.js → slides-component-C0UAH9QZ.js} +1 -1
- package/dist/assets/{snippets-panel-DMN_ZSXA.js → snippets-panel-BLiaEg0s.js} +1 -1
- package/dist/assets/{spec-D1kBp3jX.js → spec-Ch0xnJY4.js} +1 -1
- package/dist/assets/{spinner-DaIKav-i.js → spinner-DA8-7wQv.js} +1 -1
- package/dist/assets/{square-C8Tw_XXG.js → square-DPZjfUaq.js} +1 -1
- package/dist/assets/{square-function-CqXXKtIq.js → square-function-B6mgCeFJ.js} +1 -1
- package/dist/assets/{state-n1Xz9vt7.js → state-DAl4qLSi.js} +1 -1
- package/dist/assets/{state-BLsnFVwy.js → state-Q32Iqos3.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-BwSf7RIr.js → stateDiagram-FKZM4ZOC-Dz_iVJd6.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-CupainMB.js +1 -0
- package/dist/assets/{switch-CfRu5JBF.js → switch-D5W4wgWK.js} +1 -1
- package/dist/assets/{table-qbh6Daed.js → table-BOsFCeLh.js} +1 -1
- package/dist/assets/{table-DZR6ewbN.js → table-CfDbAm78.js} +1 -1
- package/dist/assets/{terminal-C0fH4d_0.js → terminal-BLSSaFMR.js} +1 -1
- package/dist/assets/{textarea-3ZXdUni1.js → textarea-UfsPtSW1.js} +1 -1
- package/dist/assets/{time-EL4bnqqQ.js → time-CSCsAxXS.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-BZakpQwy.js → timeline-definition-IT6M3QCI-DPXEeoSm.js} +1 -1
- package/dist/assets/{toDate-CgbKQM5E.js → toDate-DETS9bBd.js} +1 -1
- package/dist/assets/{toggle-CWS-iCmF.js → toggle-CriARMQK.js} +1 -1
- package/dist/assets/{tooltip-DH6k_bBY.js → tooltip-C_WgOOcZ.js} +1 -1
- package/dist/assets/{tooltip-DxKBXCGp.js → tooltip-DqsDDLgU.js} +1 -1
- package/dist/assets/{tracing-zzjDz6Hy.js → tracing-BqFhwuOc.js} +1 -1
- package/dist/assets/tracing-panel-R9i0TrmX.js +2 -0
- package/dist/assets/{trash-2-CyqGun26.js → trash-2-B8SQYdQq.js} +1 -1
- package/dist/assets/{trash-DMqDgJ5r.js → trash-Cv0yH8fs.js} +1 -1
- package/dist/assets/{tree-DHpFOpHo.js → tree-Hg81oJmp.js} +1 -1
- package/dist/assets/{triangle-alert-B65rDESJ.js → triangle-alert-U93NZYDl.js} +1 -1
- package/dist/assets/{types-CS34eOZi.js → types-C1UhS3qM.js} +1 -1
- package/dist/assets/{types-CW-zyy80.js → types-DIb0tcCO.js} +1 -1
- package/dist/assets/{use-toast-rmUWldD_.js → use-toast-T0_cQDma.js} +1 -1
- package/dist/assets/useAddCell-CXRk4Ma4.js +1 -0
- package/dist/assets/{useAsyncData-BAVCkkQP.js → useAsyncData-CgmD3hjw.js} +1 -1
- package/dist/assets/{useBoolean-BjVFTMam.js → useBoolean-IZsSX_XF.js} +1 -1
- package/dist/assets/useCellActionButton-Du-bZZ06.js +1 -0
- package/dist/assets/{useDateFormatter-D89e9xZY.js → useDateFormatter-CieT0-H-.js} +1 -1
- package/dist/assets/{useDebounce-CU_caGaU.js → useDebounce-B28kFfrM.js} +1 -1
- package/dist/assets/{useDeepCompareMemoize-DiyglPgJ.js → useDeepCompareMemoize-CFtQU7An.js} +1 -1
- package/dist/assets/{useDeleteCell-B8CxYiji.js → useDeleteCell-D0DAGwMP.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-YtWR0xDK.js → useDependencyPanelTab-CN5-nxOy.js} +1 -1
- package/dist/assets/useEvent-BhXAndur.js +1 -0
- package/dist/assets/{useEventListener-DIUKKfEy.js → useEventListener-Cb-RVVEn.js} +1 -1
- package/dist/assets/{useIframeCapabilities-DzIlROXe.js → useIframeCapabilities-CC8VH6kZ.js} +1 -1
- package/dist/assets/{useInstallPackage-C-gjrVjb.js → useInstallPackage-Co79H1lQ.js} +1 -1
- package/dist/assets/{useInterval-y9MtYlSD.js → useInterval-BNfubus2.js} +1 -1
- package/dist/assets/{useLifecycle-D35CBukS.js → useLifecycle-ClI_npeg.js} +1 -1
- package/dist/assets/{useNonce-_Aax6sXd.js → useNonce-CS26E0hA.js} +1 -1
- package/dist/assets/{useNotebookActions-Dfh_7NPm.js → useNotebookActions--9xrGXss.js} +1 -1
- package/dist/assets/{useNumberFormatter-CTkflual.js → useNumberFormatter-BX4DTYtT.js} +1 -1
- package/dist/assets/{usePress-CoEeT5jq.js → usePress-3CRs0fQg.js} +1 -1
- package/dist/assets/{useRunCells-rjrIgU8v.js → useRunCells-DaW_oMnr.js} +1 -1
- package/dist/assets/{useSplitCell-fcjSuBNO.js → useSplitCell-Cjr7nuBc.js} +1 -1
- package/dist/assets/{useTheme-EGf2UOFo.js → useTheme-CTORu22_.js} +1 -1
- package/dist/assets/utilities.esm-CME5sKpT.js +3 -0
- package/dist/assets/{utils-DXvhzCGS.js → utils-YqBXNpsM.js} +1 -1
- package/dist/assets/{vega-component-DAJbxD47.js → vega-component-7jd4fFCJ.js} +1 -1
- package/dist/assets/{vega-loader.browser-DXARUlxo.js → vega-loader.browser-BegSZk0G.js} +1 -1
- package/dist/assets/{worker-CUL1lW-N.js → worker-CyCdlLVf.js} +3 -3
- package/dist/assets/{workflow-CMjI9cxl.js → workflow-B12dAR4X.js} +1 -1
- package/dist/assets/{write-secret-modal-CgAvgY9w.js → write-secret-modal-DO-EOoNO.js} +1 -1
- package/dist/assets/{x-CoXDX2vQ.js → x-ZP5cObgf.js} +1 -1
- package/dist/assets/{xychartDiagram-PRI3JC2R-CAHFvN1H.js → xychartDiagram-PRI3JC2R-DINfGlOV.js} +1 -1
- package/dist/assets/{youtube-8p26v8EM.js → youtube--tNPNRy6.js} +1 -1
- package/dist/assets/zod-H_cgTO0M.js +40 -0
- package/dist/index.html +139 -139
- package/package.json +18 -18
- package/src/components/app-config/ai-config.tsx +11 -2
- package/src/components/app-config/user-config-form.tsx +0 -54
- package/src/components/chat/acp/__tests__/state.test.ts +69 -0
- package/src/components/chat/acp/state.ts +6 -6
- package/src/components/chat/chat-panel.tsx +47 -30
- package/src/components/data-table/__tests__/data-table.test.tsx +94 -2
- package/src/components/editor/actions/useCellActionButton.tsx +14 -1
- package/src/components/editor/cell/CreateCellButton.tsx +2 -1
- package/src/components/editor/cell/code/cell-editor.tsx +12 -0
- package/src/components/editor/database/__tests__/__snapshots__/as-code.test.ts.snap +15 -0
- package/src/components/editor/database/__tests__/as-code.test.ts +8 -0
- package/src/components/editor/database/as-code.ts +3 -0
- package/src/components/editor/database/schemas.ts +9 -0
- package/src/components/editor/renderers/cell-array.tsx +2 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -0
- package/src/components/pages/gallery-page.tsx +37 -6
- package/src/core/MarimoApp.tsx +12 -8
- package/src/core/ai/context/providers/file.ts +1 -1
- package/src/core/cells/__tests__/cells.test.ts +120 -0
- package/src/core/cells/__tests__/session.test.ts +37 -1
- package/src/core/cells/cells.ts +14 -0
- package/src/core/cells/session.ts +20 -8
- package/src/core/codemirror/language/languages/markdown.ts +7 -0
- package/src/core/config/feature-flag.tsx +0 -4
- package/src/core/dom/uiregistry.ts +4 -1
- package/src/core/run-app.tsx +11 -4
- package/src/core/static/__tests__/files.test.ts +195 -1
- package/src/core/static/files.ts +39 -9
- package/src/plugins/core/registerReactComponent.tsx +9 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +164 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +7 -1
- package/src/utils/__tests__/blob.test.ts +3 -3
- package/src/utils/__tests__/id-tree.test.ts +22 -7
- package/src/utils/__tests__/mime-types.test.ts +8 -10
- package/src/utils/__tests__/url-parser.test.ts +22 -0
- package/src/utils/blob.ts +14 -27
- package/src/utils/id-tree.tsx +11 -19
- package/src/utils/mime-types.ts +5 -5
- package/src/utils/url-parser.ts +1 -1
- package/dist/assets/MarimoErrorOutput-DuaUr0W-.js +0 -7
- package/dist/assets/__vite-browser-external-BkzFKOxE.js +0 -1
- package/dist/assets/__vite-browser-external-CPyDqUtZ.js +0 -1
- package/dist/assets/blob-t6qcPM7K.js +0 -1
- package/dist/assets/channel-ownMsSXG.js +0 -1
- package/dist/assets/chat-panel-FiDMP_Qr.js +0 -3
- package/dist/assets/check-DdfN0k2d.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-CSgD2v8F.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-YTETTIT0.js +0 -1
- package/dist/assets/compiler-runtime-DeeZ7FnK.js +0 -1
- package/dist/assets/createLucideIcon-CnW3RofX.js +0 -1
- package/dist/assets/gallery-page-D_5X4kKx.js +0 -1
- package/dist/assets/globals-D4t_HyAp.js +0 -1
- package/dist/assets/index-CikhHYAB.css +0 -2
- package/dist/assets/katex-BZrXWsTs.js +0 -1
- package/dist/assets/kiosk-mode-C9XznhoS.js +0 -1
- package/dist/assets/loro_wasm_bg-DV7Kb4_M.wasm +0 -0
- package/dist/assets/markdown-renderer-Bu12gPyJ.js +0 -10
- package/dist/assets/mermaid-4DMBBIKO-RE7Z6-fl.js +0 -1
- package/dist/assets/panels-CaoDGKmF.js +0 -1
- package/dist/assets/react-vega-DkHO4e2L.js +0 -1
- package/dist/assets/readonly-python-code-H1kzT-lB.js +0 -1
- package/dist/assets/request-registry-CjZcQuTP.js +0 -1
- package/dist/assets/requests-BSPGoGJL.js +0 -1
- package/dist/assets/run-page-BmTC7uxn.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-SWMI9LKY.js +0 -1
- package/dist/assets/tracing-panel-DogOVTzf.js +0 -2
- package/dist/assets/useAddCell-mkD8zurm.js +0 -1
- package/dist/assets/useCellActionButton-BZ46_Pdt.js +0 -1
- package/dist/assets/useEvent-DO6uJBas.js +0 -1
- package/dist/assets/utilities.esm-CkqwfzLw.js +0 -3
- package/dist/assets/zod-Cg4WLWh2.js +0 -40
- /package/dist/assets/{copy-DHrHayPa.js → copy-BaRrAFL-.js} +0 -0
- /package/dist/assets/{defaultLocale-BLne0bXb.js → defaultLocale-B6z1Qyqt.js} +0 -0
- /package/dist/assets/{defaultLocale-JieDVWC_.js → defaultLocale-YteS-k_t.js} +0 -0
- /package/dist/assets/{emotion-is-prop-valid.esm-C59xfSYt.js → emotion-is-prop-valid.esm-Dangy3Bv.js} +0 -0
- /package/dist/assets/{extends-BiFDv3jB.js → extends-Dqvpuc10.js} +0 -0
- /package/dist/assets/{objectWithoutPropertiesLoose-DfWeGRFv.js → objectWithoutPropertiesLoose-DoKw85w0.js} +0 -0
- /package/dist/assets/{ordinal-C93T4L8H.js → ordinal-DAqJmfoU.js} +0 -0
- /package/dist/assets/{prop-types-DaaA-ptl.js → prop-types-DVDiRdwc.js} +0 -0
- /package/dist/assets/{purify.es-DZrAQFIu.js → purify.es-B-nzWya6.js} +0 -0
- /package/dist/assets/{range-1DwpgXvM.js → range-7fnH_zLA.js} +0 -0
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
type ExternalAgentId,
|
|
10
10
|
getAgentConnectionCommand,
|
|
11
11
|
getAgentDisplayName,
|
|
12
|
+
getAgentWebSocketUrl,
|
|
12
13
|
getSessionsByAgent,
|
|
13
14
|
removeSession,
|
|
14
15
|
type TabId,
|
|
@@ -697,4 +698,72 @@ describe("state utility functions", () => {
|
|
|
697
698
|
`);
|
|
698
699
|
});
|
|
699
700
|
});
|
|
701
|
+
|
|
702
|
+
describe("getAgentWebSocketUrl", () => {
|
|
703
|
+
const originalLocation = window.location;
|
|
704
|
+
|
|
705
|
+
afterEach(() => {
|
|
706
|
+
// Restore original window.location
|
|
707
|
+
Object.defineProperty(window, "location", {
|
|
708
|
+
value: originalLocation,
|
|
709
|
+
writable: true,
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
it("should return ws:// URL with localhost for http protocol", () => {
|
|
714
|
+
Object.defineProperty(window, "location", {
|
|
715
|
+
value: {
|
|
716
|
+
hostname: "localhost",
|
|
717
|
+
protocol: "http:",
|
|
718
|
+
},
|
|
719
|
+
writable: true,
|
|
720
|
+
});
|
|
721
|
+
|
|
722
|
+
expect(getAgentWebSocketUrl("claude")).toMatchInlineSnapshot(
|
|
723
|
+
`"ws://localhost:3017/message"`,
|
|
724
|
+
);
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
it("should return wss:// URL for https protocol", () => {
|
|
728
|
+
Object.defineProperty(window, "location", {
|
|
729
|
+
value: {
|
|
730
|
+
hostname: "example.com",
|
|
731
|
+
protocol: "https:",
|
|
732
|
+
},
|
|
733
|
+
writable: true,
|
|
734
|
+
});
|
|
735
|
+
|
|
736
|
+
expect(getAgentWebSocketUrl("claude")).toMatchInlineSnapshot(
|
|
737
|
+
`"wss://example.com:3017/message"`,
|
|
738
|
+
);
|
|
739
|
+
});
|
|
740
|
+
|
|
741
|
+
it("should work with IP addresses", () => {
|
|
742
|
+
Object.defineProperty(window, "location", {
|
|
743
|
+
value: {
|
|
744
|
+
hostname: "192.168.1.100",
|
|
745
|
+
protocol: "http:",
|
|
746
|
+
},
|
|
747
|
+
writable: true,
|
|
748
|
+
});
|
|
749
|
+
|
|
750
|
+
expect(getAgentWebSocketUrl("claude")).toMatchInlineSnapshot(
|
|
751
|
+
`"ws://192.168.1.100:3017/message"`,
|
|
752
|
+
);
|
|
753
|
+
});
|
|
754
|
+
|
|
755
|
+
it("should work with remote hostnames", () => {
|
|
756
|
+
Object.defineProperty(window, "location", {
|
|
757
|
+
value: {
|
|
758
|
+
hostname: "marimo.example.com",
|
|
759
|
+
protocol: "https:",
|
|
760
|
+
},
|
|
761
|
+
writable: true,
|
|
762
|
+
});
|
|
763
|
+
|
|
764
|
+
expect(getAgentWebSocketUrl("gemini")).toMatchInlineSnapshot(
|
|
765
|
+
`"wss://marimo.example.com:3019/message"`,
|
|
766
|
+
);
|
|
767
|
+
});
|
|
768
|
+
});
|
|
700
769
|
});
|
|
@@ -233,13 +233,17 @@ export function getAgentDisplayName(agentId: ExternalAgentId): string {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
export function getAgentWebSocketUrl(agentId: ExternalAgentId): string {
|
|
236
|
-
|
|
236
|
+
const port = AGENT_CONFIG[agentId].port;
|
|
237
|
+
// Use the current page's hostname so the agent is reachable when
|
|
238
|
+
// marimo is accessed remotely (e.g. via direct IP or reverse proxy).
|
|
239
|
+
const hostname = window.location.hostname;
|
|
240
|
+
const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
|
|
241
|
+
return `${protocol}//${hostname}:${port}/message` as const;
|
|
237
242
|
}
|
|
238
243
|
|
|
239
244
|
interface AgentConfig {
|
|
240
245
|
port: number;
|
|
241
246
|
command: string;
|
|
242
|
-
webSocketUrl: string;
|
|
243
247
|
sessionSupport: SessionSupportType;
|
|
244
248
|
}
|
|
245
249
|
|
|
@@ -247,25 +251,21 @@ const AGENT_CONFIG: Record<ExternalAgentId, AgentConfig> = {
|
|
|
247
251
|
claude: {
|
|
248
252
|
port: 3017,
|
|
249
253
|
command: "npx @zed-industries/claude-code-acp",
|
|
250
|
-
webSocketUrl: "ws://localhost:3017/message",
|
|
251
254
|
sessionSupport: "single",
|
|
252
255
|
},
|
|
253
256
|
gemini: {
|
|
254
257
|
port: 3019,
|
|
255
258
|
command: "npx @google/gemini-cli --experimental-acp",
|
|
256
|
-
webSocketUrl: "ws://localhost:3019/message",
|
|
257
259
|
sessionSupport: "single",
|
|
258
260
|
},
|
|
259
261
|
codex: {
|
|
260
262
|
port: 3021,
|
|
261
263
|
command: "npx @zed-industries/codex-acp",
|
|
262
|
-
webSocketUrl: "ws://localhost:3021/message",
|
|
263
264
|
sessionSupport: "single",
|
|
264
265
|
},
|
|
265
266
|
opencode: {
|
|
266
267
|
port: 3023,
|
|
267
268
|
command: "npx opencode-ai acp",
|
|
268
|
-
webSocketUrl: "ws://localhost:3023/message",
|
|
269
269
|
sessionSupport: "single",
|
|
270
270
|
},
|
|
271
271
|
};
|
|
@@ -9,7 +9,11 @@ import { useAtom, useAtomValue, useSetAtom, useStore } from "jotai";
|
|
|
9
9
|
import {
|
|
10
10
|
AtSignIcon,
|
|
11
11
|
BotMessageSquareIcon,
|
|
12
|
+
HatGlasses,
|
|
12
13
|
Loader2,
|
|
14
|
+
type LucideIcon,
|
|
15
|
+
MessageCircleIcon,
|
|
16
|
+
NotebookText,
|
|
13
17
|
PaperclipIcon,
|
|
14
18
|
PlusIcon,
|
|
15
19
|
SendIcon,
|
|
@@ -45,7 +49,6 @@ import {
|
|
|
45
49
|
import { useCellActions } from "@/core/cells/cells";
|
|
46
50
|
import { aiAtom, aiEnabledAtom } from "@/core/config/config";
|
|
47
51
|
import { DEFAULT_AI_MODEL } from "@/core/config/config-schema";
|
|
48
|
-
import { FeatureFlagged } from "@/core/config/feature-flag";
|
|
49
52
|
import { useRequestClient } from "@/core/network/requests";
|
|
50
53
|
import { useRuntimeManager } from "@/core/runtime/config";
|
|
51
54
|
import { ErrorBanner } from "@/plugins/impl/common/error-banner";
|
|
@@ -238,58 +241,72 @@ const ChatInputFooter: React.FC<ChatInputFooterProps> = memo(
|
|
|
238
241
|
value: CopilotMode;
|
|
239
242
|
label: string;
|
|
240
243
|
subtitle: string;
|
|
244
|
+
Icon: LucideIcon;
|
|
241
245
|
}[] = [
|
|
246
|
+
{
|
|
247
|
+
value: "manual",
|
|
248
|
+
label: "Manual",
|
|
249
|
+
subtitle: "Pure chat, no tool usage",
|
|
250
|
+
Icon: MessageCircleIcon,
|
|
251
|
+
},
|
|
242
252
|
{
|
|
243
253
|
value: "ask",
|
|
244
254
|
label: "Ask",
|
|
245
255
|
subtitle:
|
|
246
256
|
"Use AI with access to read-only tools like documentation search",
|
|
247
|
-
|
|
248
|
-
{
|
|
249
|
-
value: "manual",
|
|
250
|
-
label: "Manual",
|
|
251
|
-
subtitle: "Pure chat, no tool usage",
|
|
257
|
+
Icon: NotebookText,
|
|
252
258
|
},
|
|
253
259
|
{
|
|
254
260
|
value: "agent",
|
|
255
261
|
label: "Agent (beta)",
|
|
256
262
|
subtitle: "Use AI with access to read and write tools",
|
|
263
|
+
Icon: HatGlasses,
|
|
257
264
|
},
|
|
258
265
|
];
|
|
259
266
|
|
|
260
267
|
const isAttachmentSupported =
|
|
261
268
|
PROVIDERS_THAT_SUPPORT_ATTACHMENTS.has(currentProvider);
|
|
262
269
|
|
|
270
|
+
const CurrentModeIcon = modeOptions.find(
|
|
271
|
+
(o) => o.value === currentMode,
|
|
272
|
+
)?.Icon;
|
|
273
|
+
|
|
263
274
|
return (
|
|
264
275
|
<TooltipProvider>
|
|
265
276
|
<div className="px-3 py-2 border-t border-border/20 flex flex-row flex-wrap items-center justify-between gap-1">
|
|
266
277
|
<div className="flex items-center gap-2">
|
|
267
|
-
<
|
|
268
|
-
<
|
|
269
|
-
<
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
278
|
+
<Select value={currentMode} onValueChange={saveModeChange}>
|
|
279
|
+
<SelectTrigger className="h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1.5">
|
|
280
|
+
{CurrentModeIcon && <CurrentModeIcon className="h-3 w-3" />}
|
|
281
|
+
<span className="capitalize">{currentMode}</span>
|
|
282
|
+
</SelectTrigger>
|
|
283
|
+
<SelectContent>
|
|
284
|
+
<SelectGroup>
|
|
285
|
+
<SelectLabel className="text-xs uppercase tracking-wider text-muted-foreground/70 font-medium">
|
|
286
|
+
AI Mode
|
|
287
|
+
</SelectLabel>
|
|
288
|
+
{modeOptions.map((option) => (
|
|
289
|
+
<SelectItem
|
|
290
|
+
key={option.value}
|
|
291
|
+
value={option.value}
|
|
292
|
+
className="text-xs py-1"
|
|
293
|
+
>
|
|
294
|
+
<div className="flex items-start gap-2.5">
|
|
295
|
+
<span className="mt-1 text-muted-foreground">
|
|
296
|
+
<option.Icon className="h-3 w-3" />
|
|
297
|
+
</span>
|
|
298
|
+
<div className="flex flex-col gap-0.5">
|
|
299
|
+
<span className="font-semibold">{option.label}</span>
|
|
300
|
+
<span className="text-muted-foreground">
|
|
284
301
|
{option.subtitle}
|
|
285
|
-
</
|
|
302
|
+
</span>
|
|
286
303
|
</div>
|
|
287
|
-
</
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
</
|
|
291
|
-
</
|
|
292
|
-
</
|
|
304
|
+
</div>
|
|
305
|
+
</SelectItem>
|
|
306
|
+
))}
|
|
307
|
+
</SelectGroup>
|
|
308
|
+
</SelectContent>
|
|
309
|
+
</Select>
|
|
293
310
|
<AIModelDropdown
|
|
294
311
|
placeholder="Model"
|
|
295
312
|
triggerClassName="h-6 text-xs shadow-none! ring-0! bg-muted hover:bg-muted/30 rounded-sm"
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
ColumnDef,
|
|
4
|
+
PaginationState,
|
|
5
|
+
RowSelectionState,
|
|
6
|
+
SortingState,
|
|
7
|
+
} from "@tanstack/react-table";
|
|
8
|
+
import { render, screen, within } from "@testing-library/react";
|
|
4
9
|
import { describe, expect, it, vi } from "vitest";
|
|
5
10
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
6
11
|
import { DataTable } from "../data-table";
|
|
@@ -95,4 +100,91 @@ describe("DataTable", () => {
|
|
|
95
100
|
expect(rows[1]).toHaveAttribute("title", "Michael Scott");
|
|
96
101
|
expect(rows[2]).toHaveAttribute("title", "Jim Halpert");
|
|
97
102
|
});
|
|
103
|
+
|
|
104
|
+
it("should display updated data after rerender with manual sorting and pagination", () => {
|
|
105
|
+
// Simulates the bug from issue #8023:
|
|
106
|
+
// When a user sorts a table, rows that moved from page 2 to page 1
|
|
107
|
+
// don't visually refresh after the underlying data is updated.
|
|
108
|
+
|
|
109
|
+
interface RowData {
|
|
110
|
+
id: number;
|
|
111
|
+
status: string;
|
|
112
|
+
value: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Initial data: 4 rows, page_size=3
|
|
116
|
+
const initialData: RowData[] = [
|
|
117
|
+
{ id: 4, status: "pending", value: 40 },
|
|
118
|
+
{ id: 3, status: "pending", value: 30 },
|
|
119
|
+
{ id: 2, status: "pending", value: 20 },
|
|
120
|
+
];
|
|
121
|
+
|
|
122
|
+
const columns: ColumnDef<RowData>[] = [
|
|
123
|
+
{ id: "id", accessorFn: (row) => row.id, header: "id" },
|
|
124
|
+
{ id: "status", accessorFn: (row) => row.status, header: "status" },
|
|
125
|
+
{ id: "value", accessorFn: (row) => row.value, header: "value" },
|
|
126
|
+
];
|
|
127
|
+
|
|
128
|
+
// Simulate sorted state (value descending) - manual sorting means
|
|
129
|
+
// data comes pre-sorted from backend
|
|
130
|
+
const sorting: SortingState = [{ id: "value", desc: true }];
|
|
131
|
+
const setSorting = vi.fn();
|
|
132
|
+
|
|
133
|
+
const paginationState: PaginationState = { pageIndex: 0, pageSize: 3 };
|
|
134
|
+
const setPaginationState = vi.fn();
|
|
135
|
+
|
|
136
|
+
const commonProps = {
|
|
137
|
+
columns,
|
|
138
|
+
selection: null as "single" | "multi" | null,
|
|
139
|
+
totalRows: 4,
|
|
140
|
+
totalColumns: 3,
|
|
141
|
+
pagination: true,
|
|
142
|
+
manualPagination: true,
|
|
143
|
+
paginationState,
|
|
144
|
+
setPaginationState,
|
|
145
|
+
manualSorting: true,
|
|
146
|
+
sorting,
|
|
147
|
+
setSorting,
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const { rerender } = render(
|
|
151
|
+
<TooltipProvider>
|
|
152
|
+
<DataTable {...commonProps} data={initialData} />
|
|
153
|
+
</TooltipProvider>,
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
// Verify initial data is displayed - look for "pending" in cells
|
|
157
|
+
const rows = screen.getAllByRole("row");
|
|
158
|
+
// Row 0 is header, rows 1-3 are data rows
|
|
159
|
+
expect(rows).toHaveLength(4); // 1 header + 3 data rows
|
|
160
|
+
// All rows should show "pending"
|
|
161
|
+
expect(within(rows[1]).getByText("pending")).toBeTruthy();
|
|
162
|
+
expect(within(rows[2]).getByText("pending")).toBeTruthy();
|
|
163
|
+
expect(within(rows[3]).getByText("pending")).toBeTruthy();
|
|
164
|
+
|
|
165
|
+
// Now simulate data update: row with id=4 is now "approved"
|
|
166
|
+
// Backend returns sorted data with the update applied
|
|
167
|
+
const updatedData: RowData[] = [
|
|
168
|
+
{ id: 4, status: "approved", value: 40 },
|
|
169
|
+
{ id: 3, status: "pending", value: 30 },
|
|
170
|
+
{ id: 2, status: "pending", value: 20 },
|
|
171
|
+
];
|
|
172
|
+
|
|
173
|
+
// Rerender with updated data (same sorting, same pagination)
|
|
174
|
+
rerender(
|
|
175
|
+
<TooltipProvider>
|
|
176
|
+
<DataTable {...commonProps} data={updatedData} />
|
|
177
|
+
</TooltipProvider>,
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
// BUG: The row should show "approved" but might show stale "pending"
|
|
181
|
+
const updatedRows = screen.getAllByRole("row");
|
|
182
|
+
expect(updatedRows).toHaveLength(4);
|
|
183
|
+
|
|
184
|
+
// The first data row (id=4) should now show "approved"
|
|
185
|
+
expect(within(updatedRows[1]).getByText("approved")).toBeTruthy();
|
|
186
|
+
// Other rows should still show "pending"
|
|
187
|
+
expect(within(updatedRows[2]).getByText("pending")).toBeTruthy();
|
|
188
|
+
expect(within(updatedRows[3]).getByText("pending")).toBeTruthy();
|
|
189
|
+
});
|
|
98
190
|
});
|
|
@@ -43,6 +43,7 @@ import type { CellData } from "@/core/cells/types";
|
|
|
43
43
|
import { formatEditorViews } from "@/core/codemirror/format";
|
|
44
44
|
import { toggleToLanguage } from "@/core/codemirror/language/commands";
|
|
45
45
|
import { switchLanguage } from "@/core/codemirror/language/extension";
|
|
46
|
+
import { MARKDOWN_INITIAL_HIDE_CODE } from "@/core/codemirror/language/languages/markdown";
|
|
46
47
|
import {
|
|
47
48
|
aiEnabledAtom,
|
|
48
49
|
appWidthAtom,
|
|
@@ -85,6 +86,7 @@ export function useCellActionButtons({ cell, closePopover }: Props) {
|
|
|
85
86
|
sendToBottom,
|
|
86
87
|
addColumnBreakpoint,
|
|
87
88
|
clearCellOutput,
|
|
89
|
+
markUntouched,
|
|
88
90
|
} = useCellActions();
|
|
89
91
|
const splitCell = useSplitCellCallback();
|
|
90
92
|
const runCell = useRunCell(cell?.cellId);
|
|
@@ -209,7 +211,7 @@ export function useCellActionButtons({ cell, closePopover }: Props) {
|
|
|
209
211
|
icon: <MarkdownIcon />,
|
|
210
212
|
label: "Convert to Markdown",
|
|
211
213
|
hotkey: "cell.viewAsMarkdown",
|
|
212
|
-
handle: () => {
|
|
214
|
+
handle: async () => {
|
|
213
215
|
const editorView = getEditorView();
|
|
214
216
|
if (!editorView) {
|
|
215
217
|
return;
|
|
@@ -219,6 +221,17 @@ export function useCellActionButtons({ cell, closePopover }: Props) {
|
|
|
219
221
|
language: "markdown",
|
|
220
222
|
keepCodeAsIs: false,
|
|
221
223
|
});
|
|
224
|
+
// Code stays visible until the user blurs the cell
|
|
225
|
+
if (!config.hide_code && MARKDOWN_INITIAL_HIDE_CODE) {
|
|
226
|
+
await saveCellConfig({
|
|
227
|
+
configs: { [cellId]: { hide_code: MARKDOWN_INITIAL_HIDE_CODE } },
|
|
228
|
+
});
|
|
229
|
+
updateCellConfig({
|
|
230
|
+
cellId,
|
|
231
|
+
config: { hide_code: MARKDOWN_INITIAL_HIDE_CODE },
|
|
232
|
+
});
|
|
233
|
+
markUntouched({ cellId });
|
|
234
|
+
}
|
|
222
235
|
},
|
|
223
236
|
hidden: isSetupCell,
|
|
224
237
|
},
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
import { maybeAddMarimoImport } from "@/core/cells/add-missing-import";
|
|
13
13
|
import { useCellActions } from "@/core/cells/cells";
|
|
14
14
|
import { LanguageAdapters } from "@/core/codemirror/language/LanguageAdapters";
|
|
15
|
+
import { MARKDOWN_INITIAL_HIDE_CODE } from "@/core/codemirror/language/languages/markdown";
|
|
15
16
|
import {
|
|
16
17
|
getConnectionTooltip,
|
|
17
18
|
isAppInteractionDisabled,
|
|
@@ -63,7 +64,7 @@ export const CreateCellButton = ({
|
|
|
63
64
|
maybeAddMarimoImport({ autoInstantiate: true, createNewCell });
|
|
64
65
|
onClick?.({
|
|
65
66
|
code: LanguageAdapters.markdown.defaultCode,
|
|
66
|
-
hideCode:
|
|
67
|
+
hideCode: MARKDOWN_INITIAL_HIDE_CODE,
|
|
67
68
|
});
|
|
68
69
|
};
|
|
69
70
|
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
reconfigureLanguageEffect,
|
|
20
20
|
switchLanguage,
|
|
21
21
|
} from "@/core/codemirror/language/extension";
|
|
22
|
+
import { MARKDOWN_INITIAL_HIDE_CODE } from "@/core/codemirror/language/languages/markdown";
|
|
22
23
|
import type { LanguageAdapterType } from "@/core/codemirror/language/types";
|
|
23
24
|
import {
|
|
24
25
|
connectedDocAtom,
|
|
@@ -149,6 +150,17 @@ const CellEditorInternal = ({
|
|
|
149
150
|
autoInstantiate,
|
|
150
151
|
createNewCell: cellActions.createNewCell,
|
|
151
152
|
});
|
|
153
|
+
// Code stays visible until the user blurs the cell
|
|
154
|
+
if (!cellConfig.hide_code && MARKDOWN_INITIAL_HIDE_CODE) {
|
|
155
|
+
void saveCellConfig({
|
|
156
|
+
configs: { [cellId]: { hide_code: MARKDOWN_INITIAL_HIDE_CODE } },
|
|
157
|
+
});
|
|
158
|
+
cellActions.updateCellConfig({
|
|
159
|
+
cellId,
|
|
160
|
+
config: { hide_code: MARKDOWN_INITIAL_HIDE_CODE },
|
|
161
|
+
});
|
|
162
|
+
cellActions.markUntouched({ cellId });
|
|
163
|
+
}
|
|
152
164
|
});
|
|
153
165
|
|
|
154
166
|
const aiEnabled = isAiEnabled(userConfig);
|
|
@@ -461,6 +461,21 @@ engine = clickhouse_connect.get_client(
|
|
|
461
461
|
)"
|
|
462
462
|
`;
|
|
463
463
|
|
|
464
|
+
exports[`generateDatabaseCode > edge cases > clickhouse with proxy_path 1`] = `
|
|
465
|
+
"import clickhouse_connect
|
|
466
|
+
import os
|
|
467
|
+
|
|
468
|
+
_password = os.environ.get("CLICKHOUSE_PASSWORD", "pass")
|
|
469
|
+
engine = clickhouse_connect.get_client(
|
|
470
|
+
host="localhost",
|
|
471
|
+
user="user",
|
|
472
|
+
secure=False,
|
|
473
|
+
port=8123,
|
|
474
|
+
password=_password,
|
|
475
|
+
proxy_path="/clickhouse",
|
|
476
|
+
)"
|
|
477
|
+
`;
|
|
478
|
+
|
|
464
479
|
exports[`generateDatabaseCode > edge cases > duckdb with relative path 1`] = `
|
|
465
480
|
"import sqlmodel
|
|
466
481
|
|
|
@@ -532,6 +532,14 @@ describe("generateDatabaseCode", () => {
|
|
|
532
532
|
},
|
|
533
533
|
"clickhouse_connect",
|
|
534
534
|
],
|
|
535
|
+
[
|
|
536
|
+
"clickhouse with proxy_path",
|
|
537
|
+
{
|
|
538
|
+
...clickhouseConnection,
|
|
539
|
+
proxy_path: "/clickhouse",
|
|
540
|
+
},
|
|
541
|
+
"clickhouse_connect",
|
|
542
|
+
],
|
|
535
543
|
[
|
|
536
544
|
"timeplus with no port",
|
|
537
545
|
{
|
|
@@ -412,6 +412,9 @@ class ClickHouseGenerator extends CodeGenerator<"clickhouse_connect"> {
|
|
|
412
412
|
? this.secrets.print("port", this.connection.port)
|
|
413
413
|
: undefined,
|
|
414
414
|
password: this.connection.password ? password : undefined,
|
|
415
|
+
proxy_path: this.connection.proxy_path
|
|
416
|
+
? this.secrets.print("proxy_path", this.connection.proxy_path)
|
|
417
|
+
: undefined,
|
|
415
418
|
};
|
|
416
419
|
|
|
417
420
|
return dedent(`
|
|
@@ -267,6 +267,15 @@ export const ClickhouseConnectionSchema = z
|
|
|
267
267
|
.boolean()
|
|
268
268
|
.default(false)
|
|
269
269
|
.describe(FieldOptions.of({ label: "Use HTTPs" })),
|
|
270
|
+
proxy_path: z
|
|
271
|
+
.string()
|
|
272
|
+
.optional()
|
|
273
|
+
.describe(
|
|
274
|
+
FieldOptions.of({
|
|
275
|
+
label: "Proxy Path",
|
|
276
|
+
placeholder: "/clickhouse",
|
|
277
|
+
}),
|
|
278
|
+
),
|
|
270
279
|
})
|
|
271
280
|
.describe(FieldOptions.of({ direction: "two-columns" }));
|
|
272
281
|
|
|
@@ -23,6 +23,7 @@ import { Tooltip } from "@/components/ui/tooltip";
|
|
|
23
23
|
import { maybeAddMarimoImport } from "@/core/cells/add-missing-import";
|
|
24
24
|
import { SETUP_CELL_ID } from "@/core/cells/ids";
|
|
25
25
|
import { LanguageAdapters } from "@/core/codemirror/language/LanguageAdapters";
|
|
26
|
+
import { MARKDOWN_INITIAL_HIDE_CODE } from "@/core/codemirror/language/languages/markdown";
|
|
26
27
|
import { aiEnabledAtom } from "@/core/config/config";
|
|
27
28
|
import { canInteractWithAppAtom } from "@/core/network/connection";
|
|
28
29
|
import { useBoolean } from "@/hooks/useBoolean";
|
|
@@ -295,7 +296,7 @@ const AddCellButtons: React.FC<{
|
|
|
295
296
|
cellId: { type: "__end__", columnId },
|
|
296
297
|
before: false,
|
|
297
298
|
code: LanguageAdapters.markdown.defaultCode,
|
|
298
|
-
hideCode:
|
|
299
|
+
hideCode: MARKDOWN_INITIAL_HIDE_CODE,
|
|
299
300
|
});
|
|
300
301
|
}}
|
|
301
302
|
>
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
CodeIcon,
|
|
8
8
|
FolderDownIcon,
|
|
9
9
|
ImageIcon,
|
|
10
|
+
Loader2Icon,
|
|
10
11
|
MoreHorizontalIcon,
|
|
11
12
|
} from "lucide-react";
|
|
12
13
|
import type React from "react";
|
|
@@ -32,6 +33,7 @@ import { MarkdownLanguageAdapter } from "@/core/codemirror/language/languages/ma
|
|
|
32
33
|
import { useResolvedMarimoConfig } from "@/core/config/config";
|
|
33
34
|
import { CSSClasses, KnownQueryParams } from "@/core/constants";
|
|
34
35
|
import type { OutputMessage } from "@/core/kernel/messages";
|
|
36
|
+
import { kernelStateAtom } from "@/core/kernel/state";
|
|
35
37
|
import { showCodeInRunModeAtom } from "@/core/meta/state";
|
|
36
38
|
import { isErrorMime } from "@/core/mime";
|
|
37
39
|
import { type AppMode, kioskModeAtom } from "@/core/mode";
|
|
@@ -63,6 +65,7 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
|
|
|
63
65
|
}) => {
|
|
64
66
|
const { invisible } = useDelayVisibility(cells.length, mode);
|
|
65
67
|
const kioskMode = useAtomValue(kioskModeAtom);
|
|
68
|
+
const kernelState = useAtomValue(kernelStateAtom);
|
|
66
69
|
const [userConfig] = useResolvedMarimoConfig();
|
|
67
70
|
const showCodeInRunModePreference = useAtomValue(showCodeInRunModeAtom);
|
|
68
71
|
|
|
@@ -140,6 +143,15 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
|
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
if (cells.length === 0 && !invisible) {
|
|
146
|
+
// If kernel is not yet instantiated, show loading state
|
|
147
|
+
if (!kernelState.isInstantiated) {
|
|
148
|
+
return (
|
|
149
|
+
<div className="flex-1 flex flex-col items-center justify-center py-8">
|
|
150
|
+
<Loader2Icon className="w-8 h-8 animate-spin text-muted-foreground" />
|
|
151
|
+
</div>
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
// Kernel is ready but no cells - truly empty notebook
|
|
143
155
|
return (
|
|
144
156
|
<div className="flex-1 flex flex-col items-center justify-center py-8">
|
|
145
157
|
<Alert variant="info">
|
|
@@ -33,6 +33,15 @@ const tabTarget = (path: string): string => {
|
|
|
33
33
|
return `${getSessionId()}-${encodeURIComponent(path)}`;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
const isHttpsUrl = (value: string): boolean => {
|
|
37
|
+
try {
|
|
38
|
+
const url = new URL(value);
|
|
39
|
+
return url.protocol === "https:";
|
|
40
|
+
} catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
36
45
|
const SEARCH_THRESHOLD = 10;
|
|
37
46
|
|
|
38
47
|
const GalleryPage: React.FC = () => {
|
|
@@ -43,10 +52,10 @@ const GalleryPage: React.FC = () => {
|
|
|
43
52
|
[],
|
|
44
53
|
);
|
|
45
54
|
const workspace = response.data;
|
|
46
|
-
const files = workspace?.files ?? [];
|
|
47
|
-
const root = workspace?.root ?? "";
|
|
48
55
|
|
|
49
56
|
const formattedFiles = useMemo(() => {
|
|
57
|
+
const files = workspace?.files ?? [];
|
|
58
|
+
const root = workspace?.root ?? "";
|
|
50
59
|
return files
|
|
51
60
|
.filter((file) => !file.isDirectory)
|
|
52
61
|
.map((file) => {
|
|
@@ -54,17 +63,28 @@ const GalleryPage: React.FC = () => {
|
|
|
54
63
|
root && Paths.isAbsolute(file.path) && file.path.startsWith(root)
|
|
55
64
|
? Paths.rest(file.path, root)
|
|
56
65
|
: file.path;
|
|
57
|
-
const title =
|
|
66
|
+
const title =
|
|
67
|
+
file.opengraph?.title ?? titleCase(Paths.basename(relativePath));
|
|
58
68
|
const subtitle = titleCase(Paths.dirname(relativePath));
|
|
69
|
+
const description = file.opengraph?.description ?? "";
|
|
70
|
+
const opengraphImage = file.opengraph?.image;
|
|
71
|
+
const thumbnailUrl =
|
|
72
|
+
opengraphImage && isHttpsUrl(opengraphImage)
|
|
73
|
+
? opengraphImage
|
|
74
|
+
: asURL(
|
|
75
|
+
`/og/thumbnail?file=${encodeURIComponent(relativePath)}`,
|
|
76
|
+
).toString();
|
|
59
77
|
return {
|
|
60
78
|
...file,
|
|
61
79
|
relativePath,
|
|
62
80
|
title,
|
|
63
81
|
subtitle,
|
|
82
|
+
description,
|
|
83
|
+
thumbnailUrl,
|
|
64
84
|
};
|
|
65
85
|
})
|
|
66
86
|
.sort((a, b) => a.relativePath.localeCompare(b.relativePath));
|
|
67
|
-
}, [files, root]);
|
|
87
|
+
}, [workspace?.files, workspace?.root]);
|
|
68
88
|
|
|
69
89
|
const filteredFiles = useMemo(() => {
|
|
70
90
|
if (!searchQuery) {
|
|
@@ -130,8 +150,14 @@ const GalleryPage: React.FC = () => {
|
|
|
130
150
|
target={tabTarget(file.path)}
|
|
131
151
|
className="no-underline"
|
|
132
152
|
>
|
|
133
|
-
<Card className="h-full hover:bg-accent/20 transition-colors">
|
|
134
|
-
<
|
|
153
|
+
<Card className="h-full overflow-hidden hover:bg-accent/20 transition-colors">
|
|
154
|
+
<img
|
|
155
|
+
src={file.thumbnailUrl}
|
|
156
|
+
alt={file.title}
|
|
157
|
+
loading="lazy"
|
|
158
|
+
className="w-full aspect-1200/630 object-cover border-b border-border/60"
|
|
159
|
+
/>
|
|
160
|
+
<CardContent className="p-6 pt-4">
|
|
135
161
|
<div className="flex flex-col gap-1">
|
|
136
162
|
{file.subtitle && (
|
|
137
163
|
<div className="text-sm font-semibold text-muted-foreground">
|
|
@@ -141,6 +167,11 @@ const GalleryPage: React.FC = () => {
|
|
|
141
167
|
<div className="text-lg font-medium">
|
|
142
168
|
{file.title}
|
|
143
169
|
</div>
|
|
170
|
+
{file.description && (
|
|
171
|
+
<div className="text-sm text-muted-foreground line-clamp-3 mt-1">
|
|
172
|
+
{file.description}
|
|
173
|
+
</div>
|
|
174
|
+
)}
|
|
144
175
|
</div>
|
|
145
176
|
</CardContent>
|
|
146
177
|
</Card>
|