@marimo-team/islands 0.22.1-dev9 → 0.22.1
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-iT7t3FxV.js → ConnectedDataExplorerComponent-DuD8BVl6.js} +54 -54
- package/dist/{Plot-WhbJAbBh.js → Plot-BxlSHo0G.js} +47 -38
- package/dist/_basePickBy-Sow3pJjS.js +41 -0
- package/dist/{_baseUniq-B4eL5sTC.js → _baseUniq-C87CckHL.js} +15 -54
- package/dist/{any-language-editor-CT_9yBde.js → any-language-editor-BHH_pQ6M.js} +21 -21
- package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-vxgYGIMP.js → architectureDiagram-VXUJARFQ-B3YQo9At.js} +15 -15
- package/dist/{arrays-Du-jRBAy.js → arrays-beUWo8RF.js} +1 -1
- package/dist/assets/__vite-browser-external-WSlCcXn_.js +1 -0
- package/dist/assets/{worker-D10K3OOz.js → worker-DUYMdbtA.js} +2 -2
- package/dist/{blockDiagram-VD42YOAC-C7x6YTH7.js → blockDiagram-VD42YOAC-CpQ3TKEN.js} +7 -7
- package/dist/{button-qsiIHncQ.js → button-DNlNlZY_.js} +82 -84
- package/dist/{c4Diagram-YG6GDRKO-Cx4oseGg.js → c4Diagram-YG6GDRKO-CZSU4uqU.js} +4 -4
- package/dist/{capabilities-26mwv03y.js → capabilities-Coe9eM9T.js} +2 -2
- package/dist/{channel-C_50jIAn.js → channel-X3JKk8gE.js} +1 -1
- package/dist/{chat-ui-CtqUthFR.js → chat-ui-Cel1kBfc.js} +147 -146
- package/dist/{check-D_YwHEgY.js → check-CWUkiHmb.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-Dvo_CFnR.js → chunk-4F5CHEZ2-D5mClyDv.js} +1 -1
- package/dist/{chunk-ABZYJK2D-D5YIs71w.js → chunk-ABZYJK2D-CZYCCtLy.js} +1 -1
- package/dist/{chunk-ATLVNIR6-CyOjzOcf.js → chunk-ATLVNIR6-DaOzLLgN.js} +1 -1
- package/dist/{chunk-B2363JML-BzZqINRO.js → chunk-B2363JML-Br0eA2T3.js} +1 -1
- package/dist/{chunk-B4BG7PRW-ZJeV3KdD.js → chunk-B4BG7PRW-4BjV11Br.js} +4 -4
- package/dist/{chunk-DI55MBZ5-Dx_wwX6l.js → chunk-DI55MBZ5-DITY3EyP.js} +4 -4
- package/dist/{chunk-EXTU4WIE-CgefpSXQ.js → chunk-EXTU4WIE-jUPSAk3i.js} +1 -1
- package/dist/{chunk-FRFDVMJY-Derq8UzY.js → chunk-FRFDVMJY-DnEvEFRR.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-CcIOIFpc.js → chunk-JA3XYJ7Z-BcPEfxk_.js} +2 -2
- package/dist/{chunk-JZLCHNYA-CgO0GG1p.js → chunk-JZLCHNYA-2bnLL3xL.js} +4 -4
- package/dist/{chunk-N4CR4FBY-2qzGzAxT.js → chunk-N4CR4FBY-CpZSuGSU.js} +5 -5
- package/dist/{chunk-PL6DKKU2-KoG71Zin.js → chunk-PL6DKKU2-DnId6G-x.js} +1 -1
- package/dist/{chunk-QN33PNHL-Dp1qBo28.js → chunk-QN33PNHL-B9p5ojHB.js} +1 -1
- package/dist/{chunk-QXUST7PY-BxmmeIwf.js → chunk-QXUST7PY-Ch6F5Obl.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-D3Rys9ZW.js → chunk-S3R3BYOJ-B0UOFJwq.js} +3 -3
- package/dist/{chunk-SJTYNZTY-Co-DhKAG.js → chunk-SJTYNZTY-BsBZnJUj.js} +1 -1
- package/dist/{chunk-TCCFYFTB-BAhzIqBO.js → chunk-TCCFYFTB-Clbl-fTg.js} +8 -7
- package/dist/{chunk-TQ3KTPDO-DxYI735Z.js → chunk-TQ3KTPDO-CFkSQ30e.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Dxumt0wv.js → chunk-TZMSLE5B-D45397J2.js} +1 -1
- package/dist/{chunk-UMXZTB3W-CuahpKin.js → chunk-UMXZTB3W-D-A834Bq.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-CYoFMQKE.js → classDiagram-2ON5EDUG-C8-zE3Zv.js} +10 -10
- package/dist/{classDiagram-2ON5EDUG-DkOvXRlx.js → classDiagram-v2-WZHVMYZB-DrmbGANl.js} +10 -10
- package/dist/{clone-DDndUqI0.js → clone-DZFQCtFJ.js} +1 -1
- package/dist/{constants-D1Am36hX.js → constants-CvyfaCvs.js} +3 -3
- package/dist/{copy-CBo9JcJW.js → copy-B7781WJ3.js} +2 -2
- package/dist/{dagre-6UL2VRFP-BXBaU8PB.js → dagre-6UL2VRFP-OMItEBnY.js} +12 -12
- package/dist/{dagre-D3dlYz-r.js → dagre-QVd-lCXU.js} +13 -23
- package/dist/{data-grid-overlay-editor-nZux6_d2.js → data-grid-overlay-editor-lKF301ME.js} +1 -1
- package/dist/{diagram-PSM6KHXK-CJxjk4LG.js → diagram-PSM6KHXK-CkKbohWI.js} +16 -16
- package/dist/{diagram-QEK2KX5R-IMILPh_p.js → diagram-QEK2KX5R-DjUMpVcx.js} +14 -14
- package/dist/{diagram-S2PKOQOG-6O0g6Boj.js → diagram-S2PKOQOG-b-c0d-wZ.js} +14 -14
- package/dist/{dist-BkXs8bw0.js → dist--6TSlp8H.js} +1 -1
- package/dist/dist-7K5doRvB.js +6 -0
- package/dist/{dist-CQidOwep.js → dist-B43sbpd0.js} +3 -3
- package/dist/dist-B6I_A2-E.js +8 -0
- package/dist/dist-BEQsmaZY.js +5 -0
- package/dist/dist-BasY2RHp.js +8 -0
- package/dist/{dist-BemtTYzN.js → dist-Bfp1XXWt.js} +5 -5
- package/dist/{dist-v-1kgqZ3.js → dist-BjDuO5JW.js} +1 -1
- package/dist/dist-Bosc00dY.js +5 -0
- package/dist/{dist-DLNKBPsk.js → dist-BrxqmS9Q.js} +4 -4
- package/dist/{dist-DBYL08Lu.js → dist-BvhGByxL.js} +4 -4
- package/dist/{dist-CVqlhD3M.js → dist-C4bq5Ioy.js} +2 -2
- package/dist/{dist-DwmxBUOe.js → dist-CFKdzOIu.js} +2 -2
- package/dist/{dist-5nTQE2yt.js → dist-CIB8w0Fl.js} +2 -2
- package/dist/{dist-C-EcLtO9.js → dist-CNF0QBLR.js} +1 -1
- package/dist/dist-CQMZOn-_.js +8 -0
- package/dist/dist-CViQhWZ8.js +5 -0
- package/dist/{dist-Dg65j0em.js → dist-CcMfr7jD.js} +1 -1
- package/dist/{dist-C0XYIHKJ.js → dist-Ci0CXEFt.js} +1 -1
- package/dist/dist-Cz6rLfwY.js +5 -0
- package/dist/dist-D8eq8st3.js +6 -0
- package/dist/{dist-qoCY8giM.js → dist-DAfcmt-d.js} +2 -2
- package/dist/{dist-B6Op2ogv.js → dist-DD_cYHOl.js} +2 -2
- package/dist/{dist-BUSLKXcu.js → dist-DFK94vuS.js} +2 -2
- package/dist/{dist-DBXPlQ0D.js → dist-DGNtjMZu.js} +1 -1
- package/dist/{dist-C9qF7MRB.js → dist-DJ9F1eHs.js} +2 -2
- package/dist/{dist-Ci_jEudG.js → dist-DJKubHDd.js} +1 -1
- package/dist/{dist-CnFp2Kcl.js → dist-DLafRu9s.js} +2 -2
- package/dist/dist-DM1UDXdl.js +5 -0
- package/dist/dist-DNrtWPgS.js +5 -0
- package/dist/dist-D_UjpfOY.js +1381 -0
- package/dist/{dist-DmFS6KZW.js → dist-DbnBiLNH.js} +3 -3
- package/dist/{dist-BiZZAo22.js → dist-DlSUOIm9.js} +1 -1
- package/dist/{dist-DStU8He1.js → dist-Doy0mQDg.js} +2 -2
- package/dist/{dist-CxAX99oC.js → dist-DpkJHKB8.js} +2 -2
- package/dist/{dist-DjaZNkZ7.js → dist-LhQNUe5A.js} +3 -3
- package/dist/dist-V7q2qnpA.js +5 -0
- package/dist/{dist-BJ3fhRYu.js → dist-VqF3W_ue.js} +2 -2
- package/dist/dist-a5_hPgu2.js +8 -0
- package/dist/{dist-B9KLrfoh.js → dist-ej6AQKaS.js} +1 -1
- package/dist/{dist-Brb6VNc4.js → dist-m9tsXsFf.js} +2 -2
- package/dist/{dist-CBwMSFDu.js → dist-tGk0aZ--.js} +2 -2
- package/dist/dist-uVyZcV1-.js +5 -0
- package/dist/{erDiagram-Q2GNP2WA-sho7Cl9f.js → erDiagram-Q2GNP2WA-CDhLaOZ1.js} +10 -10
- package/dist/{error-banner-Bx9kIgrs.js → error-banner-Cjf0RU9I.js} +79 -79
- package/dist/{esm-CMg2ABu6.js → esm-4wmsH2lp.js} +6 -6
- package/dist/{esm-cqK9POGH.js → esm-CD1iby2n.js} +23 -23
- package/dist/{flowDiagram-NV44I4VS-C4nY4Fbz.js → flowDiagram-NV44I4VS-BDi4O4CL.js} +10 -10
- package/dist/{ganttDiagram-JELNMOA3-CtxNcCM2.js → ganttDiagram-JELNMOA3-BpZE6kVp.js} +3 -3
- package/dist/{gitGraph-G5XIXVHT-SL6TDof6.js → gitGraph-G5XIXVHT-B_c6xFJv.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-D9885mxd.js → gitGraphDiagram-V2S2FVAM-iQnXzbPM.js} +13 -13
- package/dist/{glide-data-editor-CkVEV-Gk.js → glide-data-editor-BqnvTmDo.js} +1739 -1708
- package/dist/{graphlib-CxWdvYQt.js → graphlib-BV1_gi0C.js} +4 -3
- package/dist/hasIn-DnfJcYpY.js +108 -0
- package/dist/{info-VBDWY6EO-6MXPTSmi.js → info-VBDWY6EO-BTyzxmhr.js} +3 -3
- package/dist/{infoDiagram-HS3SLOUP-Bw2FlRwF.js → infoDiagram-HS3SLOUP-OYrX6uO3.js} +13 -13
- package/dist/{input-BSde8uV4.js → input-CFY9gApZ.js} +5055 -5055
- package/dist/{isEmpty-BQtUinxJ.js → isEmpty-B7FX9wKt.js} +1 -1
- package/dist/{isSymbol-DFp8040B.js → isSymbol-DCbjQG_U.js} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BXlCEth8.js → journeyDiagram-XKPGCS4Q-ClPC94aN.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-CorxzSYm.js → kanban-definition-3W4ZIXB7-DHEAKdZt.js} +7 -7
- package/dist/{label-DTNqw9tv.js → label-DbZGAoCH.js} +538 -569
- package/dist/{loader-CMMa6QVT.js → loader-Bd1kgLn7.js} +15 -15
- package/dist/main.js +35011 -34898
- package/dist/{memoize-CuHciEBb.js → memoize-CSTI9eOX.js} +1 -1
- package/dist/{merge-CA_buyY3.js → merge-CVhG7q_o.js} +1 -1
- package/dist/{mermaid-CEKslOkI.js → mermaid-B2HDLx2g.js} +54 -54
- package/dist/{mermaid-parser.core-cq4YDee-.js → mermaid-parser.core-ntCgyx0x.js} +8 -8
- package/dist/min-Ds3gG0Ff.js +96 -0
- package/dist/{mindmap-definition-VGOIOE7T-DRsT8UaN.js → mindmap-definition-VGOIOE7T-CxEUZZvY.js} +9 -9
- package/dist/{now-CXAdKY5k.js → now-nrrrOr01.js} +1 -1
- package/dist/{once-CZno0h-b.js → once-C_TIu-kR.js} +1 -1
- package/dist/{packet-DYOGHKS2-Dw08gMaZ.js → packet-DYOGHKS2-BhvnpoGi.js} +3 -3
- package/dist/{pie-VRWISCQL-C5SPSvT8.js → pie-VRWISCQL-dILuA3iG.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-DhJ1Cx2O.js → pieDiagram-ADFJNKIX-U3LrUqAS.js} +14 -14
- package/dist/{process-output-KyzWazB-.js → process-output-DC1TOnIl.js} +3184 -3207
- package/dist/{quadrantDiagram-AYHSOK5B-DXUFIWlz.js → quadrantDiagram-AYHSOK5B-BVWuq-3R.js} +2 -2
- package/dist/{radar-ZZBFDIW7-BvY0bgSg.js → radar-ZZBFDIW7-DwFrOJDj.js} +3 -3
- package/dist/range-fJeId9Ri.js +30 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DO_gtQIb.js → requirementDiagram-UZGBJVZJ-D0zpQnKC.js} +9 -9
- package/dist/{sankeyDiagram-TZEHDZUN-OZzXEkuG.js → sankeyDiagram-TZEHDZUN-CExy1joT.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-K7nZRifV.js → sequenceDiagram-WL72ISMW-D1BJxLjH.js} +4 -4
- package/dist/{slides-component-CIcSvFh7.js → slides-component-CX2JC-Ws.js} +2 -2
- package/dist/{spec-DYaR1rJh.js → spec-CD7QaCV-.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-DzXJZAq7.js → stateDiagram-FKZM4ZOC-B1S8jGMn.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-BZBPUmyF.js → stateDiagram-v2-4FDKWEC3-BH5ozUbc.js} +10 -10
- package/dist/stex-CQDv3aS8.js +4 -0
- package/dist/style.css +1 -1
- package/dist/{timeline-definition-IT6M3QCI-DNoLAh-i.js → timeline-definition-IT6M3QCI-BDT9JAmn.js} +2 -2
- package/dist/{toDate-D6VXexnV.js → toDate-CUqpEbBS.js} +5 -5
- package/dist/{toNumber-xFPoy1OI.js → toNumber-55tjPCWr.js} +2 -2
- package/dist/tooltip-BXEpXV3R.js +404 -0
- package/dist/{treemap-GDKQZRPO-C5OoxpmV.js → treemap-GDKQZRPO-bx2ngsgN.js} +3 -3
- package/dist/{types-CQ-RbYxp.js → types-D_ntCXg0.js} +3 -3
- package/dist/{useAsyncData-Cd4Urlww.js → useAsyncData-rN1nzPaS.js} +2 -2
- package/dist/{useDeepCompareMemoize-DOzKCTzc.js → useDeepCompareMemoize-Ch-7Rk2x.js} +4 -4
- package/dist/{useIframeCapabilities-BVQrlRBd.js → useIframeCapabilities-CqhrVue6.js} +1 -1
- package/dist/useLifecycle-4fA1pHoh.js +177 -0
- package/dist/{useTheme-Dm1WaAGy.js → useTheme-MWfxn4oz.js} +4 -5
- package/dist/{vega-component-BaDgUvQP.js → vega-component-CPhNLfZZ.js} +25 -25
- package/dist/{xychartDiagram-PRI3JC2R-ehVeySMW.js → xychartDiagram-PRI3JC2R-CuAZiqHS.js} +5 -5
- package/dist/{Combination-B--d1_LV.js → zod-C6UGQ3fz.js} +8085 -8151
- package/package.json +8 -41
- package/src/__mocks__/common.ts +4 -4
- package/src/__tests__/main.test.tsx +12 -14
- package/src/components/ai/ai-provider-icon.tsx +3 -2
- package/src/components/app-config/user-config-form.tsx +0 -27
- package/src/components/chat/acp/agent-docs.tsx +3 -3
- package/src/components/chat/acp/agent-panel.tsx +71 -24
- package/src/components/chat/acp/agent-selector.tsx +2 -11
- package/src/components/chat/acp/state.ts +15 -3
- package/src/components/chat/chat-history-popover.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +2 -1
- package/src/components/data-table/TableBottomBar.tsx +7 -1
- package/src/components/data-table/TableTopBar.tsx +31 -35
- package/src/components/data-table/__tests__/columns.test.tsx +7 -7
- package/src/components/data-table/cell-hover-template/types.ts +1 -1
- package/src/components/data-table/cell-hover-text/types.ts +1 -1
- package/src/components/data-table/cell-selection/__tests__/feature.test.ts +1 -1
- package/src/components/data-table/cell-selection/types.ts +4 -3
- package/src/components/data-table/cell-styling/types.ts +1 -1
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -2
- package/src/components/data-table/charts/charts.tsx +2 -2
- package/src/components/data-table/charts/components/chart-items.tsx +1 -1
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-formatting/types.ts +5 -4
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +1 -1
- package/src/components/data-table/column-wrapping/types.ts +4 -3
- package/src/components/data-table/columns.tsx +4 -1
- package/src/components/data-table/copy-column/types.ts +4 -3
- package/src/components/data-table/data-table.tsx +12 -11
- package/src/components/data-table/focus-row/types.ts +4 -3
- package/src/components/data-table/loading-table.tsx +1 -1
- package/src/components/data-table/pagination.tsx +1 -1
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +13 -13
- package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +9 -11
- package/src/components/data-table/range-focus/atoms.ts +2 -2
- package/src/components/data-table/range-focus/cell-selection-stats.tsx +3 -1
- package/src/components/data-table/renderers.tsx +18 -12
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +1 -1
- package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +2 -2
- package/src/components/dependency-graph/dependency-graph-tree.tsx +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +93 -94
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +1 -1
- package/src/components/editor/actions/name-cell-input.tsx +4 -2
- package/src/components/editor/actions/pair-with-agent-modal.tsx +179 -0
- package/src/components/editor/actions/useCellActionButton.tsx +4 -2
- package/src/components/editor/actions/useNotebookActions.tsx +10 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/cell/CellStatus.tsx +4 -5
- package/src/components/editor/cell/cell-context-menu.tsx +4 -2
- package/src/components/editor/cell/code/cell-editor.tsx +3 -2
- package/src/components/editor/cell/toolbar.tsx +2 -1
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +4 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +4 -1
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/empty-state.tsx +1 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +0 -10
- package/src/components/editor/chrome/panels/snippets-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -1
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +2 -1
- package/src/components/editor/chrome/wrapper/storage.ts +2 -2
- package/src/components/editor/connections/database/as-code.ts +1 -1
- package/src/components/editor/connections/form-renderers.tsx +1 -1
- package/src/components/editor/connections/storage/as-code.ts +1 -1
- package/src/components/editor/controls/keyboard-shortcuts.tsx +1 -1
- package/src/components/editor/header/filename-input.tsx +4 -1
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/navigation/__tests__/navigation.test.ts +1 -1
- package/src/components/editor/navigation/clipboard.ts +1 -1
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +2 -2
- package/src/components/editor/navigation/navigation.ts +3 -3
- package/src/components/editor/notebook-cell.tsx +1 -1
- package/src/components/editor/output/JsonOutput.tsx +6 -6
- package/src/components/editor/output/ansi-reduce.ts +2 -2
- package/src/components/editor/output/console/ConsoleOutput.tsx +2 -2
- package/src/components/editor/renderers/cells-renderer.tsx +1 -1
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +1 -1
- package/src/components/editor/renderers/plugins.ts +1 -1
- package/src/components/editor/renderers/slides-layout/types.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -13
- package/src/components/find-replace/find-replace.tsx +3 -1
- package/src/components/forms/form.tsx +1 -1
- package/src/components/forms/options.ts +1 -1
- package/src/components/pages/gallery-page.tsx +1 -1
- package/src/components/static-html/static-banner.tsx +2 -2
- package/src/components/storage/__tests__/storage-snippets.test.ts +4 -6
- package/src/components/terminal/terminal.tsx +4 -4
- package/src/components/tracing/tracing.test.tsx +30 -30
- package/src/components/ui/accordion.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/badge.tsx +2 -1
- package/src/components/ui/button.tsx +5 -4
- package/src/components/ui/calendar.tsx +3 -2
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +2 -1
- package/src/components/ui/command.tsx +5 -2
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/date-input.tsx +7 -6
- package/src/components/ui/date-picker.tsx +6 -4
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +2 -1
- package/src/components/ui/field.tsx +1 -2
- package/src/components/ui/form.tsx +4 -5
- package/src/components/ui/fullscreen.tsx +4 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/navigation.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +4 -3
- package/src/components/ui/query-param-preserving-link.tsx +4 -2
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -2
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/variables/variables-table.tsx +1 -1
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/variable.test.ts +1 -1
- package/src/core/ai/context/providers/cell-output.ts +1 -2
- package/src/core/ai/context/registry.ts +2 -2
- package/src/core/ai/tools/edit-notebook-tool.ts +4 -3
- package/src/core/ai/tools/registry.ts +1 -1
- package/src/core/ai/tools/run-cells-tool.ts +4 -3
- package/src/core/cells/__tests__/add-missing-import.test.ts +23 -22
- package/src/core/cells/__tests__/cell.test.ts +14 -13
- package/src/core/cells/__tests__/cells.test.ts +2 -2
- package/src/core/cells/__tests__/scrollCellIntoView.test.ts +1 -1
- package/src/core/cells/__tests__/session.test.ts +1 -1
- package/src/core/cells/__tests__/utils.test.ts +1 -1
- package/src/core/cells/cells.ts +2 -2
- package/src/core/cells/ids.ts +1 -1
- package/src/core/cells/logs.ts +1 -1
- package/src/core/codemirror/ai/request.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -17
- package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +129 -3
- package/src/core/codemirror/copilot/client.ts +9 -2
- package/src/core/codemirror/copilot/getCodes.ts +1 -1
- package/src/core/codemirror/copilot/language-server.ts +12 -1
- package/src/core/codemirror/copilot/transport.ts +34 -8
- package/src/core/codemirror/copilot/types.ts +1 -1
- package/src/core/codemirror/facet.ts +1 -1
- package/src/core/codemirror/language/__tests__/sql.test.ts +4 -4
- package/src/core/codemirror/language/languages/markdown.ts +1 -3
- package/src/core/codemirror/language/languages/python.ts +4 -0
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +1 -1
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +4 -6
- package/src/core/codemirror/language/languages/sql/sql.ts +1 -3
- package/src/core/codemirror/language/metadata.ts +1 -1
- package/src/core/codemirror/language/panel/sql.tsx +4 -1
- package/src/core/codemirror/language/types.ts +1 -1
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -1
- package/src/core/codemirror/lsp/notebook-lsp.ts +1 -1
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +1 -1
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +28 -42
- package/src/core/codemirror/rtc/loro/awareness.ts +1 -1
- package/src/core/config/__tests__/config-schema.test.ts +2 -6
- package/src/core/config/config-schema.ts +0 -1
- package/src/core/config/feature-flag.tsx +1 -3
- package/src/core/datasets/data-source-connections.ts +4 -2
- package/src/core/datasets/state.ts +1 -1
- package/src/core/dom/__tests__/htmlUtils.test.ts +8 -14
- package/src/core/dom/__tests__/outline.test.ts +2 -3
- package/src/core/dom/outline.ts +1 -1
- package/src/core/dom/uiregistry.ts +42 -8
- package/src/core/edit-app.tsx +4 -1
- package/src/core/export/__tests__/hooks.test.ts +1 -1
- package/src/core/hotkeys/__tests__/hotkeys.test.ts +1 -1
- package/src/core/hotkeys/shortcuts.ts +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +2 -2
- package/src/core/islands/__tests__/parse.test.ts +8 -7
- package/src/core/islands/bridge.ts +2 -2
- package/src/core/islands/components/output-wrapper.tsx +1 -1
- package/src/core/islands/parse.ts +1 -1
- package/src/core/lsp/__tests__/transport.test.ts +1 -1
- package/src/core/network/CachingRequestRegistry.ts +1 -1
- package/src/core/network/DeferredRequestRegistry.ts +1 -1
- package/src/core/network/__tests__/requests-network.test.ts +1 -1
- package/src/core/network/api.ts +2 -2
- package/src/core/network/requests-lazy.ts +1 -1
- package/src/core/network/requests-toasting.tsx +1 -1
- package/src/core/runtime/runtime.ts +1 -0
- package/src/core/saving/__tests__/filename.test.ts +7 -6
- package/src/core/static/__tests__/download-html.test.ts +16 -15
- package/src/core/static/__tests__/files.test.ts +30 -28
- package/src/core/static/files.ts +1 -1
- package/src/core/vscode/vscode-bindings.ts +1 -1
- package/src/core/wasm/bridge.ts +3 -3
- package/src/core/wasm/worker/tracer.ts +1 -1
- package/src/core/websocket/useWebSocket.tsx +5 -3
- package/src/css/app/Cell.css +5 -2
- package/src/css/globals.css +18 -16
- package/src/custom.d.ts +1 -1
- package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +3 -3
- package/src/hooks/debug.ts +3 -3
- package/src/hooks/useDebounce.ts +1 -1
- package/src/hooks/useEventListener.ts +1 -1
- package/src/hooks/useHotkey.ts +1 -1
- package/src/hooks/useLifecycle.ts +2 -2
- package/src/hooks/useNonce.ts +1 -1
- package/src/hooks/useResizeObserver.ts +2 -2
- package/src/main.tsx +1 -1
- package/src/plugins/core/BadPlugin.tsx +7 -6
- package/src/plugins/core/RenderHTML.tsx +3 -3
- package/src/plugins/core/__test__/registerReactComponent.test.ts +1 -1
- package/src/plugins/core/registerReactComponent.tsx +4 -4
- package/src/plugins/core/rpc.ts +1 -1
- package/src/plugins/impl/CheckboxPlugin.tsx +4 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +8 -3
- package/src/plugins/impl/DataTablePlugin.tsx +5 -2
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -1
- package/src/plugins/impl/FormPlugin.tsx +2 -3
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +4 -1
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +43 -15
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +3 -12
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +2 -2
- package/src/plugins/impl/anywidget/model.ts +1 -1
- package/src/plugins/impl/anywidget/types.ts +2 -2
- package/src/plugins/impl/anywidget/widget-binding.ts +1 -1
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +5 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +2 -2
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +2 -2
- package/src/plugins/impl/data-explorer/components/query-form.tsx +1 -1
- package/src/plugins/impl/data-explorer/functions/function.ts +1 -1
- package/src/plugins/impl/data-explorer/queries/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +7 -9
- package/src/plugins/impl/data-frames/forms/renderers.tsx +1 -1
- package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
- package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +1 -1
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +1 -1
- package/src/plugins/impl/panel/PanelPlugin.tsx +2 -2
- package/src/plugins/impl/plotly/Plot.tsx +3 -3
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +65 -103
- package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +114 -0
- package/src/plugins/impl/plotly/__tests__/selection.test.ts +199 -0
- package/src/plugins/impl/plotly/selection.ts +333 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +13 -14
- package/src/plugins/impl/vega/batched.ts +1 -1
- package/src/plugins/impl/vega/make-selectable.ts +3 -3
- package/src/plugins/impl/vega/types.ts +1 -1
- package/src/plugins/layout/DownloadPlugin.tsx +1 -1
- package/src/plugins/layout/ImageComparisonPlugin.tsx +1 -3
- package/src/plugins/layout/LazyPlugin.tsx +1 -1
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/plugins/layout/mermaid/mermaid.tsx +1 -1
- package/src/plugins/plugins.ts +1 -1
- package/src/plugins/stateless-plugin.ts +4 -2
- package/src/stories/data-explorer.stories.tsx +1 -1
- package/src/stories/dataframe.stories.tsx +1 -1
- package/src/stories/editor.stories.tsx +1 -1
- package/src/stories/select.stories.tsx +1 -1
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/Logger.ts +1 -1
- package/src/utils/__tests__/arrays.test.ts +1 -1
- package/src/utils/__tests__/blob.test.ts +1 -1
- package/src/utils/__tests__/cell-urls.test.ts +24 -21
- package/src/utils/__tests__/dates.test.ts +1 -1
- package/src/utils/__tests__/errors.test.ts +1 -1
- package/src/utils/__tests__/filenames.test.ts +15 -14
- package/src/utils/__tests__/json-parser.test.ts +14 -21
- package/src/utils/__tests__/multi-map.test.ts +3 -3
- package/src/utils/__tests__/objects.test.ts +3 -3
- package/src/utils/__tests__/path.test.ts +34 -31
- package/src/utils/__tests__/urls.test.ts +19 -18
- package/src/utils/__tests__/versions.test.ts +5 -5
- package/src/utils/__tests__/waitForWs.test.ts +1 -1
- package/src/utils/arrays.ts +2 -2
- package/src/utils/assertNever.ts +1 -1
- package/src/utils/batch-requests.ts +2 -2
- package/src/utils/createReducer.ts +2 -2
- package/src/utils/id-tree.tsx +2 -2
- package/src/utils/idle.ts +1 -1
- package/src/utils/invariant.ts +1 -2
- package/src/utils/json/base64.ts +2 -5
- package/src/utils/maps.ts +1 -1
- package/src/utils/math.ts +0 -1
- package/src/utils/mime-types.ts +1 -1
- package/src/utils/multi-map.ts +1 -1
- package/src/utils/objects.ts +1 -1
- package/src/utils/once.ts +2 -2
- package/src/utils/staticImplements.ts +1 -1
- package/src/utils/storage/jotai.ts +1 -1
- package/src/utils/tracer.ts +3 -2
- package/dist/_basePickBy-QjOmBDRE.js +0 -110
- package/dist/_baseSet-xgn1IbGV.js +0 -27
- package/dist/architecture-7HQA4BMR-BRyVh_Za.js +0 -6
- package/dist/assets/__vite-browser-external-Us1ds95c.js +0 -1
- package/dist/dist-B0R_ZM4-.js +0 -6
- package/dist/dist-B4a9_9pj.js +0 -5
- package/dist/dist-BCSUKEwO.js +0 -5
- package/dist/dist-BONIDQq6.js +0 -5
- package/dist/dist-BYeRx2hb.js +0 -5
- package/dist/dist-D2Rk1j4R.js +0 -1381
- package/dist/dist-DZjX5TYv.js +0 -5
- package/dist/dist-Dkw9x6kc.js +0 -5
- package/dist/dist-Ds6UaXGR.js +0 -6
- package/dist/dist-KuEJ1Q53.js +0 -8
- package/dist/dist-S72WNyTZ.js +0 -5
- package/dist/dist-bTG-yssT.js +0 -5
- package/dist/dist-diF0sguc.js +0 -8
- package/dist/dist-mJ84BIgu.js +0 -8
- package/dist/dist-wSIhFWQz.js +0 -8
- package/dist/get-CqrzlV1v.js +0 -68
- package/dist/range-CYz5jI--.js +0 -17
- package/dist/stex-CZyTRGVB.js +0 -4
- package/dist/tooltip-DGHTbHl5.js +0 -404
- package/dist/useLifecycle-Dids8BPm.js +0 -173
- /package/dist/{dist-KZI_BHqV.js → dist-CxZvoNao.js} +0 -0
- /package/dist/{invariant-D4hPsZFI.js → invariant-e8eBgdux.js} +0 -0
- /package/dist/{isArrayLikeObject-C-hFPChh.js → isArrayLikeObject-LXbTYiBa.js} +0 -0
- /package/dist/{main-CvkAPtaq.js → main-XimWhSi_.js} +0 -0
- /package/dist/{purify.es-ukiMXY-F.js → purify.es-hTCfRGdl.js} +0 -0
- /package/dist/{react-dom-BKwCWYPW.js → react-dom-BSUuJjCR.js} +0 -0
- /package/dist/{stex-Ze8D4R_5.js → stex-D887Ylhf.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marimo-team/islands",
|
|
3
|
-
"version": "0.22.1
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -66,30 +66,7 @@
|
|
|
66
66
|
"@open-rpc/client-js": "^1.8.1",
|
|
67
67
|
"@paralleldrive/cuid2": "^2.3.1",
|
|
68
68
|
"@radix-ui/colors": "^3.0.0",
|
|
69
|
-
"@radix-ui/primitive": "~1.1.3",
|
|
70
|
-
"@radix-ui/react-accordion": "~1.2.12",
|
|
71
|
-
"@radix-ui/react-alert-dialog": "~1.1.15",
|
|
72
|
-
"@radix-ui/react-checkbox": "~1.3.3",
|
|
73
|
-
"@radix-ui/react-compose-refs": "~1.1.2",
|
|
74
|
-
"@radix-ui/react-context-menu": "~2.2.16",
|
|
75
|
-
"@radix-ui/react-dialog": "~1.1.15",
|
|
76
|
-
"@radix-ui/react-dropdown-menu": "~2.1.16",
|
|
77
69
|
"@radix-ui/react-icons": "~1.3.2",
|
|
78
|
-
"@radix-ui/react-label": "~2.1.8",
|
|
79
|
-
"@radix-ui/react-navigation-menu": "~1.2.14",
|
|
80
|
-
"@radix-ui/react-popover": "~1.1.15",
|
|
81
|
-
"@radix-ui/react-progress": "~1.1.8",
|
|
82
|
-
"@radix-ui/react-radio-group": "~1.3.8",
|
|
83
|
-
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
84
|
-
"@radix-ui/react-select": "~2.2.6",
|
|
85
|
-
"@radix-ui/react-slider": "~1.3.6",
|
|
86
|
-
"@radix-ui/react-slot": "~1.2.4",
|
|
87
|
-
"@radix-ui/react-switch": "~1.2.6",
|
|
88
|
-
"@radix-ui/react-tabs": "~1.1.13",
|
|
89
|
-
"@radix-ui/react-toast": "~1.2.15",
|
|
90
|
-
"@radix-ui/react-toggle": "~1.1.10",
|
|
91
|
-
"@radix-ui/react-tooltip": "~1.2.8",
|
|
92
|
-
"@radix-ui/react-use-callback-ref": "~1.1.1",
|
|
93
70
|
"@radix-ui/react-use-controllable-state": "~1.2.2",
|
|
94
71
|
"@replit/codemirror-vim": "^6.3.0",
|
|
95
72
|
"@streamdown/math": "^1.0.1",
|
|
@@ -126,7 +103,6 @@
|
|
|
126
103
|
"dequal": "^2.0.3",
|
|
127
104
|
"dnd-core": "^16.0.1",
|
|
128
105
|
"dompurify": "^3.3.1",
|
|
129
|
-
"eslint-plugin-header": "^3.1.1",
|
|
130
106
|
"htm": "^3.1.1",
|
|
131
107
|
"html-react-parser": "^5.2.14",
|
|
132
108
|
"html-to-image": "1.11.13",
|
|
@@ -183,7 +159,8 @@
|
|
|
183
159
|
"vscode-jsonrpc": "^8.2.1",
|
|
184
160
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
185
161
|
"web-vitals": "^4.2.4",
|
|
186
|
-
"zod": "^4.3.6"
|
|
162
|
+
"zod": "^4.3.6",
|
|
163
|
+
"radix-ui": "1.4.3"
|
|
187
164
|
},
|
|
188
165
|
"scripts": {
|
|
189
166
|
"preinstall": "npx only-allow pnpm",
|
|
@@ -194,9 +171,9 @@
|
|
|
194
171
|
"build": "cross-env vite build",
|
|
195
172
|
"test": "vitest",
|
|
196
173
|
"typecheck": "tsgo",
|
|
197
|
-
"
|
|
198
|
-
"lint
|
|
199
|
-
"lint:
|
|
174
|
+
"format": "oxfmt --config ../.oxfmtrc.json",
|
|
175
|
+
"lint": "run-s lint:oxlint lint:stylelint",
|
|
176
|
+
"lint:oxlint": "oxlint --fix",
|
|
200
177
|
"lint:stylelint": "stylelint src/**/*.css --fix",
|
|
201
178
|
"preview": "vite preview",
|
|
202
179
|
"dev:quarto": "VITE_MARIMO_ISLANDS=true vite",
|
|
@@ -213,7 +190,6 @@
|
|
|
213
190
|
"devDependencies": {
|
|
214
191
|
"@babel/plugin-proposal-decorators": "^7.28.6",
|
|
215
192
|
"@babel/preset-typescript": "^7.25.9",
|
|
216
|
-
"@biomejs/biome": "2.3.13",
|
|
217
193
|
"@codecov/vite-plugin": "^1.9.1",
|
|
218
194
|
"@csstools/postcss-light-dark-function": "^2.0.11",
|
|
219
195
|
"@playwright/test": "^1.58.2",
|
|
@@ -231,24 +207,15 @@
|
|
|
231
207
|
"@types/react": "^19.2.10",
|
|
232
208
|
"@types/react-dom": "^19.2.3",
|
|
233
209
|
"@types/timestring": "^6.0.5",
|
|
234
|
-
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
235
|
-
"@typescript-eslint/parser": "^7.15.0",
|
|
236
210
|
"@vitejs/plugin-react": "^5.1.4",
|
|
237
211
|
"babel-plugin-react-compiler": "19.1.0-rc.3",
|
|
238
212
|
"blob-polyfill": "^7.0.20220408",
|
|
239
213
|
"cross-env": "^7.0.3",
|
|
240
|
-
"eslint": "^8.57.0",
|
|
241
|
-
"eslint-config-prettier": "^9.1.0",
|
|
242
|
-
"eslint-plugin-react": "^7.34.3",
|
|
243
|
-
"eslint-plugin-react-hooks": "^6.0.0-rc.1",
|
|
244
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.5.1",
|
|
245
|
-
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
246
|
-
"eslint-plugin-storybook": "^9.0.14",
|
|
247
|
-
"eslint-plugin-unicorn": "^54.0.0",
|
|
248
|
-
"eslint-plugin-vitest": "^0.4.1",
|
|
249
214
|
"jsdom": "^24.1.3",
|
|
250
215
|
"msw": "^2.12.7",
|
|
251
216
|
"npm-run-all2": "^6.2.6",
|
|
217
|
+
"oxfmt": "^0.42.0",
|
|
218
|
+
"oxlint": "^1.58.0",
|
|
252
219
|
"postcss": "^8.5.6",
|
|
253
220
|
"postcss-plugin-namespace": "^0.0.3",
|
|
254
221
|
"react": "^19.2.4",
|
package/src/__mocks__/common.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
-
|
|
2
|
+
/* oxlint-disable no-console -- for debugging */
|
|
3
3
|
import { type Mock, vi } from "vitest";
|
|
4
4
|
import { invariant } from "@/utils/invariant";
|
|
5
5
|
|
|
@@ -137,12 +137,12 @@ export const SetupMocks = {
|
|
|
137
137
|
store[key] = value;
|
|
138
138
|
}),
|
|
139
139
|
removeItem: vi.fn((key: string) => {
|
|
140
|
-
//
|
|
140
|
+
// oxlint-disable-next-line typescript/no-dynamic-delete
|
|
141
141
|
delete store[key];
|
|
142
142
|
}),
|
|
143
143
|
clear: vi.fn(() => {
|
|
144
144
|
for (const key of Object.keys(store)) {
|
|
145
|
-
//
|
|
145
|
+
// oxlint-disable-next-line typescript/no-dynamic-delete
|
|
146
146
|
delete store[key];
|
|
147
147
|
}
|
|
148
148
|
}),
|
|
@@ -179,7 +179,7 @@ export const SetupMocks = {
|
|
|
179
179
|
},
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
//
|
|
182
|
+
// oxlint-disable-next-line typescript/no-explicit-any
|
|
183
183
|
export function asMock<T extends (...args: any[]) => unknown>(fn: T): Mock<T> {
|
|
184
184
|
invariant(
|
|
185
185
|
"mock" in fn,
|
|
@@ -45,20 +45,18 @@ describe("main", () => {
|
|
|
45
45
|
store.set(configOverridesAtom, {});
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
it.each([
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
expect(store.get(showCodeInRunModeAtom)).toBe(true);
|
|
61
|
-
});
|
|
48
|
+
it.each(["edit", "read", "home", "run"])(
|
|
49
|
+
"should mount with mode %s",
|
|
50
|
+
(_mode) => {
|
|
51
|
+
const el = document.createElement("div");
|
|
52
|
+
mount({ mode: "edit" }, el);
|
|
53
|
+
|
|
54
|
+
expect(store.get(viewStateAtom).mode).toBe("edit");
|
|
55
|
+
expect(store.get(filenameAtom)).toBeDefined();
|
|
56
|
+
expect(store.get(marimoVersionAtom)).toBe("unknown");
|
|
57
|
+
expect(store.get(showCodeInRunModeAtom)).toBe(true);
|
|
58
|
+
},
|
|
59
|
+
);
|
|
62
60
|
|
|
63
61
|
it("should not mount with invalid mode", () => {
|
|
64
62
|
const el = document.createElement("div");
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import AnthropicIcon from "@marimo-team/llm-info/icons/anthropic.svg?inline";
|
|
4
4
|
import BedrockIcon from "@marimo-team/llm-info/icons/aws.svg?inline";
|
|
5
5
|
import AzureIcon from "@marimo-team/llm-info/icons/azure.svg?inline";
|
|
6
|
+
import CursorIcon from "@marimo-team/llm-info/icons/cursor.svg?inline";
|
|
6
7
|
import DeepseekIcon from "@marimo-team/llm-info/icons/deepseek.svg?inline";
|
|
7
8
|
import GitHubIcon from "@marimo-team/llm-info/icons/github.svg?inline";
|
|
8
9
|
import GeminiIcon from "@marimo-team/llm-info/icons/googlegemini.svg?inline";
|
|
@@ -34,10 +35,10 @@ const icons: Record<ProviderId | ExternalAgentId, string> = {
|
|
|
34
35
|
wandb: WandbIcon,
|
|
35
36
|
marimo: marimoIcon,
|
|
36
37
|
opencode: OpencodeIcon,
|
|
38
|
+
cursor: CursorIcon,
|
|
37
39
|
};
|
|
38
40
|
|
|
39
|
-
export interface AiProviderIconProps
|
|
40
|
-
extends React.HTMLAttributes<HTMLImageElement> {
|
|
41
|
+
export interface AiProviderIconProps extends React.HTMLAttributes<HTMLImageElement> {
|
|
41
42
|
provider: keyof typeof icons | "openai-compatible";
|
|
42
43
|
className?: string;
|
|
43
44
|
}
|
|
@@ -1276,33 +1276,6 @@ export const UserConfigForm: React.FC = () => {
|
|
|
1276
1276
|
</div>
|
|
1277
1277
|
)}
|
|
1278
1278
|
/>
|
|
1279
|
-
<FormField
|
|
1280
|
-
control={form.control}
|
|
1281
|
-
name="experimental.storage_inspector"
|
|
1282
|
-
render={({ field }) => (
|
|
1283
|
-
<div className="flex flex-col gap-y-1">
|
|
1284
|
-
<FormItem className={formItemClasses}>
|
|
1285
|
-
<FormLabel className="font-normal">
|
|
1286
|
-
Storage Inspector
|
|
1287
|
-
</FormLabel>
|
|
1288
|
-
<FormControl>
|
|
1289
|
-
<Checkbox
|
|
1290
|
-
data-testid="storage-inspector-checkbox"
|
|
1291
|
-
checked={field.value === true}
|
|
1292
|
-
onCheckedChange={field.onChange}
|
|
1293
|
-
/>
|
|
1294
|
-
</FormControl>
|
|
1295
|
-
</FormItem>
|
|
1296
|
-
<IsOverridden
|
|
1297
|
-
userConfig={config}
|
|
1298
|
-
name="experimental.storage_inspector"
|
|
1299
|
-
/>
|
|
1300
|
-
<FormDescription>
|
|
1301
|
-
Enable experimental storage inspector.
|
|
1302
|
-
</FormDescription>
|
|
1303
|
-
</div>
|
|
1304
|
-
)}
|
|
1305
|
-
/>
|
|
1306
1279
|
</SettingGroup>
|
|
1307
1280
|
);
|
|
1308
1281
|
}
|
|
@@ -50,11 +50,11 @@ const AgentDocItem = memo<AgentDocItemProps>(
|
|
|
50
50
|
</div>
|
|
51
51
|
<div className="bg-muted/50 rounded-md p-2 border">
|
|
52
52
|
<div className="flex items-start gap-2 text-xs">
|
|
53
|
-
<TerminalIcon className="h-4 w-4 mt-0.5 text-muted-foreground
|
|
54
|
-
<code className="text-xs font-mono break-
|
|
53
|
+
<TerminalIcon className="h-4 w-4 mt-0.5 text-muted-foreground shrink-0" />
|
|
54
|
+
<code className="text-xs font-mono wrap-break-word flex-1 whitespace-pre-wrap">
|
|
55
55
|
{command}
|
|
56
56
|
</code>
|
|
57
|
-
<div className="flex items-center gap-1
|
|
57
|
+
<div className="flex items-center gap-1 shrink-0">
|
|
58
58
|
{showCopy && (
|
|
59
59
|
<Button size="xs" variant="outline" className="border">
|
|
60
60
|
<CopyClipboardIcon value={command} className="h-3 w-3" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
-
import { useAtom
|
|
3
|
+
import { useAtom } from "jotai";
|
|
4
4
|
import {
|
|
5
5
|
BotMessageSquareIcon,
|
|
6
6
|
RefreshCwIcon,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "lucide-react";
|
|
9
9
|
import React, { memo, useEffect, useMemo, useRef, useState } from "react";
|
|
10
10
|
import useEvent from "react-use-event-hook";
|
|
11
|
-
import { useAcpClient } from "use-acp";
|
|
11
|
+
import { JsonRpcError, useAcpClient } from "use-acp";
|
|
12
12
|
import {
|
|
13
13
|
ConnectionStatus,
|
|
14
14
|
PermissionRequest,
|
|
@@ -207,7 +207,6 @@ interface EmptyStateProps {
|
|
|
207
207
|
|
|
208
208
|
const EmptyState = memo<EmptyStateProps>(
|
|
209
209
|
({ currentAgentId, connectionState, onConnect, onDisconnect }) => {
|
|
210
|
-
const filename = useAtomValue(filenameAtom);
|
|
211
210
|
return (
|
|
212
211
|
<div className="flex flex-col h-full">
|
|
213
212
|
<AgentPanelHeader
|
|
@@ -223,7 +222,7 @@ const EmptyState = memo<EmptyStateProps>(
|
|
|
223
222
|
<PanelEmptyState
|
|
224
223
|
title="No Agent Sessions"
|
|
225
224
|
description="Create a new session to start a conversation"
|
|
226
|
-
action={<AgentSelector className="border-y
|
|
225
|
+
action={<AgentSelector className="border-y rounded" />}
|
|
227
226
|
icon={<BotMessageSquareIcon />}
|
|
228
227
|
/>
|
|
229
228
|
{connectionState.status === "disconnected" && (
|
|
@@ -232,10 +231,13 @@ const EmptyState = memo<EmptyStateProps>(
|
|
|
232
231
|
title="Connect to an agent"
|
|
233
232
|
description={
|
|
234
233
|
<>
|
|
235
|
-
|
|
234
|
+
<span>
|
|
235
|
+
Start agents by running these commands in your terminal.
|
|
236
|
+
</span>
|
|
236
237
|
<br />
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
<span>
|
|
239
|
+
Authenticate with the agent before starting a session.
|
|
240
|
+
</span>
|
|
239
241
|
</>
|
|
240
242
|
}
|
|
241
243
|
/>
|
|
@@ -615,6 +617,15 @@ const ChatContent = memo<ChatContentProps>(
|
|
|
615
617
|
ChatContent.displayName = "ChatContent";
|
|
616
618
|
|
|
617
619
|
const NO_WS_SET = "_skip_auto_connect_";
|
|
620
|
+
const AUTH_REQUIRED_CODE = -32_000;
|
|
621
|
+
|
|
622
|
+
function getDataMessage(data: unknown): string | undefined {
|
|
623
|
+
if (data != null && typeof data === "object" && "message" in data) {
|
|
624
|
+
const msg = (data as Record<string, unknown>).message;
|
|
625
|
+
return typeof msg === "string" ? msg : undefined;
|
|
626
|
+
}
|
|
627
|
+
return undefined;
|
|
628
|
+
}
|
|
618
629
|
|
|
619
630
|
function getCwd(): string {
|
|
620
631
|
const cwd = store.get(cwdAtom);
|
|
@@ -705,14 +716,31 @@ const AgentPanel: React.FC = () => {
|
|
|
705
716
|
} = acpClient;
|
|
706
717
|
|
|
707
718
|
useEffect(() => {
|
|
708
|
-
agent
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
719
|
+
if (!agent) {
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
const initAndAuth = async () => {
|
|
724
|
+
const response = await agent.initialize({
|
|
725
|
+
protocolVersion: 1,
|
|
726
|
+
clientCapabilities: {
|
|
727
|
+
fs: {
|
|
728
|
+
readTextFile: true,
|
|
729
|
+
writeTextFile: true,
|
|
730
|
+
},
|
|
714
731
|
},
|
|
715
|
-
}
|
|
732
|
+
});
|
|
733
|
+
|
|
734
|
+
// We try to authenticate with the agent if it supports it.
|
|
735
|
+
// The user must then restart the session
|
|
736
|
+
const authMethods = response?.authMethods;
|
|
737
|
+
if (authMethods && authMethods.length > 0) {
|
|
738
|
+
await agent.authenticate({ methodId: authMethods[0].id });
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
initAndAuth().catch((error) => {
|
|
743
|
+
logger.error("Failed to initialize/authenticate agent", { error });
|
|
716
744
|
});
|
|
717
745
|
}, [agent]);
|
|
718
746
|
|
|
@@ -735,7 +763,7 @@ const AgentPanel: React.FC = () => {
|
|
|
735
763
|
// We don't want to disconnect so users can switch between different
|
|
736
764
|
// panels without losing their session
|
|
737
765
|
};
|
|
738
|
-
//
|
|
766
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
739
767
|
}, [wsUrl]);
|
|
740
768
|
|
|
741
769
|
const handleNewSession = useEvent(async () => {
|
|
@@ -861,7 +889,7 @@ const AgentPanel: React.FC = () => {
|
|
|
861
889
|
};
|
|
862
890
|
|
|
863
891
|
createOrResumeSession();
|
|
864
|
-
//
|
|
892
|
+
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
|
865
893
|
}, [isConnected, agent, tabLastActiveSessionId, activeSessionId]);
|
|
866
894
|
|
|
867
895
|
// Handler for prompt submission
|
|
@@ -1041,18 +1069,37 @@ const AgentPanel: React.FC = () => {
|
|
|
1041
1069
|
|
|
1042
1070
|
const renderBody = () => {
|
|
1043
1071
|
if (error) {
|
|
1072
|
+
const isAuthError =
|
|
1073
|
+
error instanceof JsonRpcError && error.code === AUTH_REQUIRED_CODE;
|
|
1074
|
+
const dataMessage =
|
|
1075
|
+
error instanceof JsonRpcError ? getDataMessage(error.data) : undefined;
|
|
1076
|
+
const displayError = dataMessage ? new Error(dataMessage) : error;
|
|
1077
|
+
|
|
1044
1078
|
return (
|
|
1045
1079
|
<ErrorBanner
|
|
1046
1080
|
className="w-3/4 mx-auto mt-10"
|
|
1047
|
-
error={
|
|
1081
|
+
error={displayError}
|
|
1048
1082
|
action={
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1083
|
+
isAuthError ? (
|
|
1084
|
+
<Button
|
|
1085
|
+
variant="linkDestructive"
|
|
1086
|
+
size="sm"
|
|
1087
|
+
onClick={() => {
|
|
1088
|
+
setError(null);
|
|
1089
|
+
handleNewSession();
|
|
1090
|
+
}}
|
|
1091
|
+
>
|
|
1092
|
+
Restart session
|
|
1093
|
+
</Button>
|
|
1094
|
+
) : (
|
|
1095
|
+
<Button
|
|
1096
|
+
variant="linkDestructive"
|
|
1097
|
+
size="sm"
|
|
1098
|
+
onClick={() => setError(null)}
|
|
1099
|
+
>
|
|
1100
|
+
Dismiss
|
|
1101
|
+
</Button>
|
|
1102
|
+
)
|
|
1056
1103
|
}
|
|
1057
1104
|
/>
|
|
1058
1105
|
);
|
|
@@ -16,9 +16,7 @@ import {
|
|
|
16
16
|
DropdownMenuSubTrigger,
|
|
17
17
|
DropdownMenuTrigger,
|
|
18
18
|
} from "@/components/ui/dropdown-menu";
|
|
19
|
-
import { useFilename } from "@/core/saving/filename";
|
|
20
19
|
import { cn } from "@/utils/cn";
|
|
21
|
-
import { Paths } from "@/utils/paths";
|
|
22
20
|
import { AgentDocs } from "./agent-docs";
|
|
23
21
|
import {
|
|
24
22
|
type AgentSession,
|
|
@@ -55,17 +53,17 @@ const AVAILABLE_AGENTS = [
|
|
|
55
53
|
displayName: "OpenCode",
|
|
56
54
|
iconId: "opencode",
|
|
57
55
|
},
|
|
56
|
+
{ id: "cursor", displayName: "Cursor", iconId: "cursor" },
|
|
58
57
|
] as const;
|
|
59
58
|
|
|
60
59
|
interface AgentMenuItemProps {
|
|
61
60
|
agent: (typeof AVAILABLE_AGENTS)[number];
|
|
62
61
|
onSelect: (agentId: ExternalAgentId) => void;
|
|
63
62
|
existingSessions: AgentSession[];
|
|
64
|
-
filename: string | null;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
const AgentMenuItem = memo<AgentMenuItemProps>(
|
|
68
|
-
({ agent, onSelect, existingSessions
|
|
66
|
+
({ agent, onSelect, existingSessions }) => {
|
|
69
67
|
const sessionSupport = getAgentSessionSupport(agent.id);
|
|
70
68
|
const hasExistingSession = existingSessions.some(
|
|
71
69
|
(s) => s.agentId === agent.id,
|
|
@@ -108,11 +106,6 @@ const AgentMenuItem = memo<AgentMenuItemProps>(
|
|
|
108
106
|
<div className="text-xs font-medium text-muted-foreground mb-3">
|
|
109
107
|
To start a {agent.displayName} agent, run the following command
|
|
110
108
|
in your terminal.
|
|
111
|
-
<br />
|
|
112
|
-
Note: This must be in the directory{" "}
|
|
113
|
-
<code className="bg-muted font-mono">
|
|
114
|
-
{Paths.dirname(filename ?? "")}
|
|
115
|
-
</code>
|
|
116
109
|
</div>
|
|
117
110
|
<AgentDocs agents={[agent.id]} showCopy={true} />
|
|
118
111
|
</div>
|
|
@@ -126,7 +119,6 @@ AgentMenuItem.displayName = "AgentMenuItem";
|
|
|
126
119
|
|
|
127
120
|
export const AgentSelector: React.FC<AgentSelectorProps> = memo(
|
|
128
121
|
({ onSessionCreated, className }) => {
|
|
129
|
-
const filename = useFilename();
|
|
130
122
|
const [sessionState, setSessionState] = useAtom(agentSessionStateAtom);
|
|
131
123
|
const setActiveTab = useSetAtom(selectedTabAtom);
|
|
132
124
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -165,7 +157,6 @@ export const AgentSelector: React.FC<AgentSelectorProps> = memo(
|
|
|
165
157
|
agent={agent}
|
|
166
158
|
onSelect={handleCreateSession}
|
|
167
159
|
existingSessions={sessionState.sessions}
|
|
168
|
-
filename={filename}
|
|
169
160
|
/>
|
|
170
161
|
))}
|
|
171
162
|
</DropdownMenuContent>
|
|
@@ -11,7 +11,12 @@ import type { ExternalAgentSessionId, SessionSupportType } from "./types";
|
|
|
11
11
|
|
|
12
12
|
// Types
|
|
13
13
|
export type TabId = TypedString<"TabId">;
|
|
14
|
-
export type ExternalAgentId =
|
|
14
|
+
export type ExternalAgentId =
|
|
15
|
+
| "claude"
|
|
16
|
+
| "gemini"
|
|
17
|
+
| "codex"
|
|
18
|
+
| "opencode"
|
|
19
|
+
| "cursor";
|
|
15
20
|
|
|
16
21
|
// No agents support loading sessions, so we limit to 1, otherwise
|
|
17
22
|
// this is confusing to the user when switching between sessions
|
|
@@ -221,11 +226,11 @@ export function getSessionsByAgent(
|
|
|
221
226
|
): AgentSession[] {
|
|
222
227
|
return sessions
|
|
223
228
|
.filter((session) => session.agentId === agentId)
|
|
224
|
-
.
|
|
229
|
+
.toSorted((a, b) => b.lastUsedAt - a.lastUsedAt);
|
|
225
230
|
}
|
|
226
231
|
|
|
227
232
|
export function getAllAgentIds(): ExternalAgentId[] {
|
|
228
|
-
return ["claude", "gemini", "codex", "opencode"];
|
|
233
|
+
return ["claude", "gemini", "codex", "opencode", "cursor"];
|
|
229
234
|
}
|
|
230
235
|
|
|
231
236
|
export function getAgentDisplayName(agentId: ExternalAgentId): string {
|
|
@@ -245,6 +250,8 @@ interface AgentConfig {
|
|
|
245
250
|
port: number;
|
|
246
251
|
command: string;
|
|
247
252
|
sessionSupport: SessionSupportType;
|
|
253
|
+
/** One-time setup command the user must run before starting the agent. */
|
|
254
|
+
loginHint?: string;
|
|
248
255
|
}
|
|
249
256
|
|
|
250
257
|
const AGENT_CONFIG: Record<ExternalAgentId, AgentConfig> = {
|
|
@@ -268,6 +275,11 @@ const AGENT_CONFIG: Record<ExternalAgentId, AgentConfig> = {
|
|
|
268
275
|
command: "npx opencode-ai acp",
|
|
269
276
|
sessionSupport: "single",
|
|
270
277
|
},
|
|
278
|
+
cursor: {
|
|
279
|
+
port: 3025,
|
|
280
|
+
command: "agent acp",
|
|
281
|
+
sessionSupport: "single",
|
|
282
|
+
},
|
|
271
283
|
};
|
|
272
284
|
|
|
273
285
|
export function getAgentSessionSupport(
|
|
@@ -33,7 +33,7 @@ export const ChatHistoryPopover: React.FC<ChatHistoryPopoverProps> = ({
|
|
|
33
33
|
const [searchQuery, setSearchQuery] = useState("");
|
|
34
34
|
|
|
35
35
|
const chats = useMemo(() => {
|
|
36
|
-
return [...chatState.chats.values()].
|
|
36
|
+
return [...chatState.chats.values()].toSorted(
|
|
37
37
|
(a, b) => b.updatedAt - a.updatedAt,
|
|
38
38
|
);
|
|
39
39
|
}, [chatState.chats]);
|
|
@@ -465,7 +465,7 @@ const ChatPanelBody = () => {
|
|
|
465
465
|
messages: activeChat?.messages || [], // initial messages
|
|
466
466
|
transport: new DefaultChatTransport({
|
|
467
467
|
api: runtimeManager.getAiURL("chat").toString(),
|
|
468
|
-
headers: runtimeManager.headers(),
|
|
468
|
+
headers: () => runtimeManager.headers(),
|
|
469
469
|
prepareSendMessagesRequest: async (options) => {
|
|
470
470
|
const completionBody = await buildCompletionRequestBody(
|
|
471
471
|
options.messages,
|
|
@@ -476,6 +476,7 @@ const ChatPanelBody = () => {
|
|
|
476
476
|
const tools = FRONTEND_TOOL_REGISTRY.getToolSchemas(chatMode);
|
|
477
477
|
|
|
478
478
|
return {
|
|
479
|
+
api: runtimeManager.getAiURL("chat").toString(),
|
|
479
480
|
body: {
|
|
480
481
|
tools,
|
|
481
482
|
...options,
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import type { RowSelectionState, Table } from "@tanstack/react-table";
|
|
5
5
|
import { useLocale } from "react-aria";
|
|
6
6
|
import type { GetRowIds } from "@/plugins/impl/DataTablePlugin";
|
|
7
|
+
import { cn } from "@/utils/cn";
|
|
7
8
|
import { Events } from "@/utils/events";
|
|
8
9
|
import { prettyNumber } from "@/utils/numbers";
|
|
9
10
|
import { Button } from "../ui/button";
|
|
@@ -22,6 +23,7 @@ interface TableBottomBarProps<TData> {
|
|
|
22
23
|
showPageSizeSelector?: boolean;
|
|
23
24
|
tableLoading?: boolean;
|
|
24
25
|
part?: string;
|
|
26
|
+
className?: string;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
export const TableBottomBar = <TData,>({
|
|
@@ -34,6 +36,7 @@ export const TableBottomBar = <TData,>({
|
|
|
34
36
|
showPageSizeSelector,
|
|
35
37
|
tableLoading,
|
|
36
38
|
part,
|
|
39
|
+
className,
|
|
37
40
|
}: TableBottomBarProps<TData>) => {
|
|
38
41
|
const { locale } = useLocale();
|
|
39
42
|
const handleSelectAllRows = (value: boolean) => {
|
|
@@ -147,7 +150,10 @@ export const TableBottomBar = <TData,>({
|
|
|
147
150
|
return (
|
|
148
151
|
<div
|
|
149
152
|
part={part}
|
|
150
|
-
className=
|
|
153
|
+
className={cn(
|
|
154
|
+
"flex lg:grid lg:grid-cols-[1fr_auto_1fr] items-center shrink-0",
|
|
155
|
+
className,
|
|
156
|
+
)}
|
|
151
157
|
>
|
|
152
158
|
<div className="flex flex-col text-sm text-muted-foreground px-2 shrink-0">
|
|
153
159
|
<div className="flex items-center gap-1">{renderTotal()}</div>
|