@marimo-team/frontend 0.23.16-dev9 → 0.23.16
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-BwCqFeIT.js → CellStatus-BYH-DZdr.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-CMaZapRd.js → ConnectedDataExplorerComponent-C4zEgCZh.js} +1 -1
- package/dist/assets/JsonOutput-D2UI9WX5.js +53 -0
- package/dist/assets/LazyAnyLanguageCodeMirror-A-Ant1Ad.js +2 -0
- package/dist/assets/{MarimoErrorOutput-2CXbNUBb.js → MarimoErrorOutput-Cu5WMawt.js} +4 -4
- package/dist/assets/RenderHTML-C1rWkDWe.js +1 -0
- package/dist/assets/{RunButton-DLoWn_Jd.js → RunButton-BO02PdVH.js} +1 -1
- package/dist/assets/__vite-browser-external-mTzvI0UM.js +1 -0
- package/dist/assets/{add-cell-with-ai-C1L7x0xr.js → add-cell-with-ai-PVABTCGt.js} +35 -35
- package/dist/assets/add-connection-dialog-GskQAyZw.js +178 -0
- package/dist/assets/{agent-panel-D3_CUvz_.js → agent-panel-BitNk-Gl.js} +5 -5
- package/dist/assets/ai-model-dropdown-DzobPTdx.js +5 -0
- package/dist/assets/{any-language-editor--tRHs8C_.js → any-language-editor-BIeaxtdD.js} +1 -1
- package/dist/assets/apl-BnIcQcjL.js +1 -0
- package/dist/assets/app-config-button-D_JaIWhO.js +1 -0
- package/dist/assets/{arc-CfUZAQDm.js → arc-DPwkj0YX.js} +1 -1
- package/dist/assets/{architecture-7HQA4BMR-Bvqj37EA.js → architecture-7HQA4BMR-CzgzqOCD.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-sx_yisiZ.js → architectureDiagram-VXUJARFQ-BMZxefa_.js} +1 -1
- package/dist/assets/arrow-left-pVgT2h-8.js +1 -0
- package/dist/assets/asciiarmor-VNkYxCrW.js +1 -0
- package/dist/assets/asn1-DHaiamxN.js +1 -0
- package/dist/assets/blob-BNTWOaI9.js +1 -0
- package/dist/assets/{blockDiagram-VD42YOAC-KexI-fgH.js → blockDiagram-VD42YOAC-O9sd6I0b.js} +1 -1
- package/dist/assets/brainfuck-B7OQ4qXM.js +1 -0
- package/dist/assets/{c4Diagram-YG6GDRKO-d8NrlxRF.js → c4Diagram-YG6GDRKO-CJ4NJdbh.js} +1 -1
- package/dist/assets/{cache-panel-DcQUeUpg.js → cache-panel-B2B1ePao.js} +1 -1
- package/dist/assets/cell-editor-BuU4BDSk.js +27 -0
- package/dist/assets/cell-link-CWQ4BYr-.js +1 -0
- package/dist/assets/cells-CJLUCcQg.js +235 -0
- package/dist/assets/channel-DELDOomM.js +1 -0
- package/dist/assets/{chat-display-DomMe89U.js → chat-display-CfiA-GdA.js} +1 -1
- package/dist/assets/{chat-panel-DzLbxcWT.js → chat-panel-DghO5Y6C.js} +3 -3
- package/dist/assets/{chat-ui-BpWZ6JeY.js → chat-ui-CNXmMUI1.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-fhh1HlXH.js → chunk-4BX2VUAB-BCgdxLTg.js} +1 -1
- package/dist/assets/chunk-55IACEB6-DnPXlz-P.js +1 -0
- package/dist/assets/{chunk-5FQGJX7Z-Cp0LZT-a.js → chunk-5FQGJX7Z-CYQpNADu.js} +2 -2
- package/dist/assets/{chunk-ABZYJK2D-BtK4zInQ.js → chunk-ABZYJK2D-M8yn2N69.js} +3 -3
- package/dist/assets/{chunk-ATLVNIR6-YZDenslF.js → chunk-ATLVNIR6-CY4Q_7DV.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-DYIZwDbt.js → chunk-B4BG7PRW-0izjR6gH.js} +1 -1
- package/dist/assets/{chunk-CVBHYZKI-CIyHeK0Q.js → chunk-CVBHYZKI-Dtb0_R-R.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-TodwBGEN.js → chunk-DI55MBZ5-CeYy94Hv.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-C76bF1UD.js → chunk-EXTU4WIE-CZBftw0u.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-Yq65IDPA.js → chunk-FMBD7UC4-BTonlpoo.js} +1 -1
- package/dist/assets/{chunk-HN2XXSSU-CcbN4n6W.js → chunk-HN2XXSSU-Bqib0VeJ.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-CPXEu7AX.js → chunk-JA3XYJ7Z-CMnBpyzd.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-D8q1z6Py.js → chunk-JZLCHNYA-BWjnV_v7.js} +1 -1
- package/dist/assets/{chunk-MI3HLSF2-bmomnexd.js → chunk-MI3HLSF2-CA3zpyGZ.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-BhsjB2qn.js → chunk-N4CR4FBY-CZmndviH.js} +2 -2
- package/dist/assets/{chunk-QN33PNHL-ngvPqyQ0.js → chunk-QN33PNHL-B5rSVblq.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-C4c0Sjmn.js → chunk-QXUST7PY-Cz8b__fX.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-CkbwBDOS.js → chunk-QZHKN3VN-B7nq9C0W.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-Bt2NnquF.js → chunk-S3R3BYOJ-CUGnLh1o.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-Dysko1OC.js → chunk-TZMSLE5B-CXQovw1I.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-B3IKXY7k.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-C0Db1CRa.js +1 -0
- package/dist/assets/{clike-DKPr2D1_.js → clike-CcPLlJ3-.js} +1 -1
- package/dist/assets/clojure-DK3HqqeG.js +1 -0
- package/dist/assets/cmake-Bnhxe81D.js +1 -0
- package/dist/assets/cobol-ISPch7J4.js +1 -0
- package/dist/assets/{code-block-37QAKDTI-DlENujeV.js → code-block-37QAKDTI-21cPxSHu.js} +1 -1
- package/dist/assets/coffeescript-B3cS2ooz.js +1 -0
- package/dist/assets/{column-preview-D5Btj8aG.js → column-preview-DREOGG_c.js} +1 -1
- package/dist/assets/{command-palette-CNp7T2c5.js → command-palette-C95r8rOd.js} +1 -1
- package/dist/assets/{common-BrPgvCtD.js → common-DCWeeUhr.js} +1 -1
- package/dist/assets/commonlisp-DH0yllOU.js +1 -0
- package/dist/assets/components-BGqqoLEG.js +1 -0
- package/dist/assets/components-K_Mi0vdC.js +1 -0
- package/dist/assets/config-B-Q7J_6d.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-BlMw4-M9.js → cose-bilkent-S5V4N54A-DK9gIUQX.js} +1 -1
- package/dist/assets/crystal-CfSxbewa.js +1 -0
- package/dist/assets/{css-DsUcFZz8.js → css-IVPzYP6l.js} +1 -1
- package/dist/assets/cypher-DqUctVOg.js +1 -0
- package/dist/assets/d-DYRkEHFy.js +1 -0
- package/dist/assets/{dagre-6UL2VRFP-kJ4x17JK.js → dagre-6UL2VRFP-DQFoIrK8.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-DbobQcVo.js → data-grid-overlay-editor-CVM5ufb4.js} +1 -1
- package/dist/assets/{datasource-wn1PTlXA.js → datasource-DbljozeY.js} +2 -2
- package/dist/assets/{dependency-graph-panel-B8Q8RQNh.js → dependency-graph-panel-Bg9bLMXq.js} +4 -4
- package/dist/assets/{diagram-PSM6KHXK-d-5aQNHk.js → diagram-PSM6KHXK-DIXxW5au.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-CO-PXq75.js → diagram-QEK2KX5R-B8KoKZCY.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-Dv7pcvYC.js → diagram-S2PKOQOG-D0bjlYXx.js} +1 -1
- package/dist/assets/diff-Cd5HBT58.js +1 -0
- package/dist/assets/dist-B99-E4qp.js +1 -0
- package/dist/assets/{dist-BsphJPAV.js → dist-BiwuSVkx.js} +1 -1
- package/dist/assets/{dist-CECF_J8y.js → dist-BrZjJXDA.js} +1 -1
- package/dist/assets/{dist-Du-wcJyR.js → dist-By4rFZwg.js} +1 -1
- package/dist/assets/dist-CaZf6AoY.js +1 -0
- package/dist/assets/{dist-BMOD2Pyh.js → dist-Cgoy5550.js} +1 -1
- package/dist/assets/{dist-6c4zOh78.js → dist-D6WgndTj.js} +1 -1
- package/dist/assets/dist-DcXy-1eJ.js +1 -0
- package/dist/assets/{dist-0QUuSoRx.js → dist-DtbtRAqz.js} +1 -1
- package/dist/assets/dist-I3qeQWuP.js +1 -0
- package/dist/assets/{dist-sPfKr-vH.js → dist-aeKlrIMv.js} +1 -1
- package/dist/assets/{dist-CDUl-YL4.js → dist-gDi2I7IJ.js} +1 -1
- package/dist/assets/{dist-CRrIf3gB.js → dist-miDa4-cz.js} +1 -1
- package/dist/assets/{dist-R1kU4nzJ.js → dist-nDEBxpL6.js} +1 -1
- package/dist/assets/{dist-DQNaXfK1.js → dist-oUL4XFdB.js} +1 -1
- package/dist/assets/{dockerfile-C2PznFWk.js → dockerfile-CLtE40Sb.js} +1 -1
- package/dist/assets/{documentation-panel-hFyikugH.js → documentation-panel-BhtY-lKF.js} +1 -1
- package/dist/assets/download-DwYUg-o4.js +9 -0
- package/dist/assets/dtd-C24SyIVW.js +1 -0
- package/dist/assets/dylan-CrkzDmc1.js +1 -0
- package/dist/assets/ecl-DSuYw2WY.js +1 -0
- package/dist/assets/{edit-page-jUsez4HZ.js → edit-page-D_hRRfNq.js} +6 -6
- package/dist/assets/eiffel-D60uMU52.js +1 -0
- package/dist/assets/elm-pYZdVh3P.js +1 -0
- package/dist/assets/{erDiagram-Q2GNP2WA-BQ8HfnRu.js → erDiagram-Q2GNP2WA-D7EuT99Y.js} +1 -1
- package/dist/assets/erlang-D9MlcoAb.js +1 -0
- package/dist/assets/error-entries-4LYRQSOP.js +8 -0
- package/dist/assets/{error-panel-DAseRhAS.js → error-panel-FG7tsVQ_.js} +1 -1
- package/dist/assets/{esm-Cmv0Nuxi.js → esm-BDGraAqp.js} +1 -1
- package/dist/assets/factor-gTHEdNEJ.js +1 -0
- package/dist/assets/{factor-DMrXrOH8.js → factor-xSp9WnN7.js} +1 -1
- package/dist/assets/file-explorer-panel-CpUlOt1N.js +26 -0
- package/dist/assets/{file-icons-Chripuk-.js → file-icons-CODNoWOy.js} +1 -1
- package/dist/assets/{file-name-input-B1NJd3KY.js → file-name-input-DyvZhLvk.js} +1 -1
- package/dist/assets/{fileToBase64-C2Yy-YXq.js → fileToBase64-hLJmVjNJ.js} +1 -1
- package/dist/assets/floating-outline-DBlzcHYf.js +1 -0
- package/dist/assets/{flowDiagram-NV44I4VS-xBOzhlfg.js → flowDiagram-NV44I4VS-Bz3PhSZq.js} +1 -1
- package/dist/assets/focus-B6HBbAwF.js +1 -0
- package/dist/assets/form-BYlqbYKI.js +2 -0
- package/dist/assets/form-W6ZZMHnc.js +1 -0
- package/dist/assets/forth-CWZXTLFs.js +1 -0
- package/dist/assets/fortran-B8kNpt8O.js +1 -0
- package/dist/assets/{gallery-page-CJ3ms1Hn.js → gallery-page-DbuxknAw.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-D2O_k-Zg.js → ganttDiagram-JELNMOA3-DaS60lKW.js} +1 -1
- package/dist/assets/gas-DxuMSeqj.js +1 -0
- package/dist/assets/gherkin-ZkKEDs6K.js +1 -0
- package/dist/assets/{gitGraph-G5XIXVHT-8HJwNcdU.js → gitGraph-G5XIXVHT-Cd5ecvAE.js} +1 -1
- package/dist/assets/{gitGraphDiagram-V2S2FVAM-Nk4Ll9GY.js → gitGraphDiagram-V2S2FVAM-D7jUmjBw.js} +1 -1
- package/dist/assets/{glide-data-editor-j2igs9Y_.js → glide-data-editor-CejKKgnN.js} +4 -4
- package/dist/assets/globe-Dwo3iXzC.js +1 -0
- package/dist/assets/groovy-CqQZm41C.js +1 -0
- package/dist/assets/haskell-DWF-arrK.js +1 -0
- package/dist/assets/haxe-LmdIWMMr.js +1 -0
- package/dist/assets/home-page-DYaHMq8Q.js +4 -0
- package/dist/assets/{html-to-image-B-nAUvDC.js → html-to-image-CN9yTa5s.js} +2 -2
- package/dist/assets/idl-DEd51qv-.js +1 -0
- package/dist/assets/index-8Nlyq3mV.css +2 -0
- package/dist/assets/index-Gv23EHlE.js +38 -0
- package/dist/assets/{info-VBDWY6EO-rfe3WPvd.js → info-VBDWY6EO-BTT52JaO.js} +1 -1
- package/dist/assets/infoDiagram-HS3SLOUP-GkG80Qxa.js +2 -0
- package/dist/assets/javascript-BFIOGZ-j.js +1 -0
- package/dist/assets/{journeyDiagram-XKPGCS4Q-D61FGivn.js → journeyDiagram-XKPGCS4Q-DwL-PxSb.js} +1 -1
- package/dist/assets/julia-Chs3F4Sv.js +1 -0
- package/dist/assets/{kanban-definition-3W4ZIXB7-Bnv0X0Tu.js → kanban-definition-3W4ZIXB7-DiBaV6eK.js} +1 -1
- package/dist/assets/katex-12J11HuB.js +1 -0
- package/dist/assets/kiosk-mode-Di-gTPu2.js +1 -0
- package/dist/assets/{layout-1Z2AhO6k.js → layout-B6D_84rz.js} +5 -5
- package/dist/assets/{line-DNm2phYo.js → line-BDmwHhfs.js} +1 -1
- package/dist/assets/{linear-CTQqNbVX.js → linear-BPv4krGt.js} +1 -1
- package/dist/assets/livescript-CZOCkk31.js +1 -0
- package/dist/assets/logs-panel-V4PsZD48.js +1 -0
- package/dist/assets/{loro_wasm_bg-Duqr-kJ2.js → loro_wasm_bg-CjrUicyy.js} +1 -1
- package/dist/assets/lua-DK4FKJLN.js +1 -0
- package/dist/assets/{markdown-renderer-Cs1sISb9.js → markdown-renderer-CzJx-MnJ.js} +3 -3
- package/dist/assets/mathematica-BoEJU8On.js +1 -0
- package/dist/assets/mbox-1WJcoGln.js +1 -0
- package/dist/assets/{mermaid-4DMBBIKO-CDGmT6YQ.js → mermaid-4DMBBIKO-3ntkrgCA.js} +1 -1
- package/dist/assets/{mermaid-CYN0wOyG.js → mermaid-B8gNHyGy.js} +3 -3
- package/dist/assets/{mermaid-parser.core-Dz2GMGqQ.js → mermaid-parser.core-Ddjs6Jmy.js} +2 -2
- package/dist/assets/{mhchem-CIWniJp4.js → mhchem-Cnt1CrAX.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-C-YaKmEU.js → mindmap-definition-VGOIOE7T-DKJd1wuU.js} +1 -1
- package/dist/assets/mirc-OXxqihhx.js +1 -0
- package/dist/assets/mllike-fFPa49Ft.js +1 -0
- package/dist/assets/modelica-B2hOO40U.js +1 -0
- package/dist/assets/mscgen-BUm8DSPh.js +1 -0
- package/dist/assets/mumps-BUUE1QKi.js +1 -0
- package/dist/assets/{name-cell-input-2sM8a_OS.js → name-cell-input-Bq1sljc2.js} +1 -1
- package/dist/assets/node-sql-parser-CAudyJSw.js +68 -0
- package/dist/assets/nsis-CQPY661e.js +1 -0
- package/dist/assets/{nsis-Ccvd1gbp.js → nsis-SCfsPq8M.js} +1 -1
- package/dist/assets/ntriples-CtWbsB7O.js +1 -0
- package/dist/assets/{number-overlay-editor-BQ9P6yP7.js → number-overlay-editor-KHf1PkHr.js} +1 -1
- package/dist/assets/octave-D4HWE405.js +1 -0
- package/dist/assets/{ordinal-DyTNGK17.js → ordinal-BSXHDD5k.js} +1 -1
- package/dist/assets/{outline-panel-BXWCkGu_.js → outline-panel-Tn3DVuNl.js} +1 -1
- package/dist/assets/oz-Cp-6fXH5.js +1 -0
- package/dist/assets/{packages-panel-CJfHGfax.js → packages-panel-er2ghj4m.js} +1 -1
- package/dist/assets/{packet-DYOGHKS2-DTVloLa7.js → packet-DYOGHKS2-pYSTMj1G.js} +1 -1
- package/dist/assets/pair-with-agent-modal-CVYH-Guh.js +4 -0
- package/dist/assets/panel-accordion-state-DN1hLusu.js +1 -0
- package/dist/assets/panels-oc6cK0j0.js +4 -0
- package/dist/assets/pascal-B2F20-Dq.js +1 -0
- package/dist/assets/perl-C8I4my72.js +1 -0
- package/dist/assets/{pie-VRWISCQL-Bmght6JF.js → pie-VRWISCQL-BtGe15Zk.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-DlFYL0BN.js → pieDiagram-ADFJNKIX-BdWIv6Xr.js} +1 -1
- package/dist/assets/pig-Dg7z9udE.js +1 -0
- package/dist/assets/powershell-BjupwEXi.js +1 -0
- package/dist/assets/process-output-DXnqTuGm.js +1 -0
- package/dist/assets/properties-CWyPUxmr.js +1 -0
- package/dist/assets/protobuf-B2dHC-BL.js +1 -0
- package/dist/assets/pug-B-MnYZUt.js +1 -0
- package/dist/assets/{pug-BtXi5KiX.js → pug-D81S7inS.js} +1 -1
- package/dist/assets/puppet-CeBQQ4Li.js +1 -0
- package/dist/assets/python-DgHNYu_r.js +1 -0
- package/dist/assets/q-wSguJrTU.js +1 -0
- package/dist/assets/{quadrantDiagram-AYHSOK5B-BpJug2BH.js → quadrantDiagram-AYHSOK5B-DJuGB95-.js} +1 -1
- package/dist/assets/r-BoIJ2Zve.js +1 -0
- package/dist/assets/{radar-ZZBFDIW7-CYwWzRgW.js → radar-ZZBFDIW7-DyFu57RV.js} +1 -1
- package/dist/assets/{radio-group-PT0_zVHo.js → radio-group-CcU5wNVj.js} +1 -1
- package/dist/assets/{react-vega-TNCk_eWj.js → react-vega-BLc5RhC7.js} +1 -1
- package/dist/assets/{readonly-code-display-CFbCSGms.js → readonly-code-display-DoQFa0ET.js} +1 -1
- package/dist/assets/{readonly-python-code-DB23yd7T.js → readonly-python-code-CYfbPYQ0.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-Bd-1eny8.js → requirementDiagram-UZGBJVZJ-aWGJtWy2.js} +1 -1
- package/dist/assets/{reveal-component-fwTDxf5N.js → reveal-component-CZgRCMe1.js} +42 -42
- package/dist/assets/rpm-DmyUNIkv.js +1 -0
- package/dist/assets/{ecl-B6UC4tME.js → ruby-Djlw6kjU.js} +1 -1
- package/dist/assets/run-page-Dxm4ltqq.js +1 -0
- package/dist/assets/{sankeyDiagram-TZEHDZUN-CDWAE6GV.js → sankeyDiagram-TZEHDZUN-nJIZ3_NQ.js} +1 -1
- package/dist/assets/sas-B8AwxLVS.js +1 -0
- package/dist/assets/scheme-o4lPnt7c.js +1 -0
- package/dist/assets/{scratchpad-panel-BLC2oQ_3.js → scratchpad-panel-pQP0zGxD.js} +1 -1
- package/dist/assets/{secrets-panel-6J6wcuVR.js → secrets-panel-Cz17_MLf.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-B6hjDGBF.js → sequenceDiagram-WL72ISMW-Bvkxl3m4.js} +1 -1
- package/dist/assets/session-panel-C-y42nqB.js +1 -0
- package/dist/assets/shell-DJuOhLmg.js +1 -0
- package/dist/assets/sieve-BBDbJOX3.js +1 -0
- package/dist/assets/{skeleton-xuR254Kw.js → skeleton-Bd78PcP9.js} +1 -1
- package/dist/assets/slides-DkEgzTJB.css +1 -0
- package/dist/assets/smalltalk-CmTnbqu4.js +1 -0
- package/dist/assets/{snippets-panel-DwAjNUqR.js → snippets-panel-BRtH_9R3.js} +1 -1
- package/dist/assets/sparql-BQuPdHqO.js +1 -0
- package/dist/assets/{src-CIOdyciO.js → src-xYaLe_3f.js} +1 -1
- package/dist/assets/state-C4kiwedg.js +1 -0
- package/dist/assets/state-CsGOoEZv.js +3 -0
- package/dist/assets/{state-Tc7pRohh.js → state-Rxc-B11B.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-Bzv6j99z.js → stateDiagram-FKZM4ZOC-CVF8M4di.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-Dj-G9wuu.js +1 -0
- package/dist/assets/{step-CDlhJj9-.js → step-DkIPWA0m.js} +1 -1
- package/dist/assets/stylus-DrNz1BCZ.js +1 -0
- package/dist/assets/swift-UQ24LctC.js +1 -0
- package/dist/assets/switch-OVajJBPR.js +1 -0
- package/dist/assets/tcl-BBEwSttz.js +1 -0
- package/dist/assets/{terminal-DaLxAnKx.js → terminal-Cdd3rO1L.js} +1 -1
- package/dist/assets/textarea-DtCcemo9.js +1 -0
- package/dist/assets/textile-CYG_qV_5.js +1 -0
- package/dist/assets/{time-BuRlxEhE.js → time-p47i6wvp.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-DXwdU1og.js → timeline-definition-IT6M3QCI-D1XRbH5P.js} +1 -1
- package/dist/assets/toml-DB6lKkvi.js +1 -0
- package/dist/assets/{tracing-BmBBYynL.js → tracing-CdeezhIN.js} +1 -1
- package/dist/assets/{tracing-panel-AReiFUol.js → tracing-panel-Dl3MlGyG.js} +2 -2
- package/dist/assets/{tree-actions-Bz3fJ7p-.js → tree-actions-BiQ4VzX-.js} +1 -1
- package/dist/assets/{treemap-GDKQZRPO-4Cm6HMmj.js → treemap-GDKQZRPO-Z4m-KHQY.js} +1 -1
- package/dist/assets/troff-WrtaE-DW.js +1 -0
- package/dist/assets/ttcn-DNOLsGjD.js +1 -0
- package/dist/assets/ttcn-cfg-D2oRz-8W.js +1 -0
- package/dist/assets/turtle-hoYUNcbl.js +1 -0
- package/dist/assets/{useBoolean-CA7K8rap.js → useBoolean-CFj86iac.js} +1 -1
- package/dist/assets/useCellActionButton-B5wkKtv1.js +1 -0
- package/dist/assets/{useDeleteCell-DQP-NBq2.js → useDeleteCell-BfKWOHfk.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-BrkWlCTP.js → useDependencyPanelTab-BTipqN67.js} +1 -1
- package/dist/assets/useNotebookActions-CCwjICU_.js +12 -0
- package/dist/assets/useRunCells-DZ4glj3f.js +1 -0
- package/dist/assets/{useSplitCell-jH70A2Sz.js → useSplitCell-DXzfZTCe.js} +1 -1
- package/dist/assets/vb-CSArj0Ox.js +1 -0
- package/dist/assets/vbscript-Cy_b6RxB.js +1 -0
- package/dist/assets/{vega-component-DSvWLXIy.js → vega-component-VDedA5Cd.js} +1 -1
- package/dist/assets/{vega-embed-container-hDAVOOba.js → vega-embed-container-DxSqUOCK.js} +1 -1
- package/dist/assets/velocity-8fvVYgdA.js +1 -0
- package/dist/assets/verilog-BPXnWs06.js +1 -0
- package/dist/assets/vhdl-C4JSE7Sd.js +1 -0
- package/dist/assets/webidl-uP8WR81M.js +1 -0
- package/dist/assets/{worker-BQo2bijx.js → worker-BM73L67p.js} +3 -6
- package/dist/assets/write-secret-modal-Dtm66yVf.js +2 -0
- package/dist/assets/xquery-C8ppAT5Z.js +1 -0
- package/dist/assets/{xychartDiagram-PRI3JC2R-Cb0exSKs.js → xychartDiagram-PRI3JC2R-B8A0hi-Q.js} +1 -1
- package/dist/assets/yacas-CnXhtfs7.js +1 -0
- package/dist/assets/z80-B0aL_Tnf.js +1 -0
- package/dist/index.html +36 -34
- package/package.json +3 -4
- package/src/__mocks__/requests.ts +56 -4
- package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +174 -21
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +102 -1
- package/src/components/data-table/__tests__/columns.test.tsx +9 -1
- package/src/components/data-table/column-summary/chart-spec-model.tsx +163 -103
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +15 -7
- package/src/components/data-table/column-summary/utils.ts +26 -7
- package/src/components/data-table/columns.tsx +11 -1
- package/src/components/data-table/types.ts +1 -1
- package/src/components/editor/__tests__/viewer-banner.test.tsx +14 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +99 -18
- package/src/components/editor/actions/__tests__/pdf-export.test.ts +32 -13
- package/src/components/editor/actions/pair-with-agent-commands.ts +21 -10
- package/src/components/editor/actions/pair-with-agent-modal.tsx +2 -2
- package/src/components/editor/actions/pdf-export.ts +11 -14
- package/src/components/editor/actions/useNotebookActions.tsx +28 -19
- package/src/components/editor/cell/code/__tests__/cell-editor-activity-lifecycle.test.ts +250 -0
- package/src/components/editor/cell/code/cell-editor.tsx +13 -7
- package/src/components/editor/chrome/__tests__/state.test.ts +7 -1
- package/src/components/editor/chrome/panels/__tests__/logs-panel.test.tsx +25 -0
- package/src/components/editor/chrome/panels/__tests__/panel-accordion-state.test.ts +42 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +6 -17
- package/src/components/editor/chrome/panels/logs-panel.tsx +12 -2
- package/src/components/editor/chrome/panels/panel-accordion-state.ts +51 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +5 -16
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +40 -12
- package/src/components/editor/chrome/state.ts +10 -0
- package/src/components/editor/connections/__tests__/json-credentials.test.ts +114 -0
- package/src/components/editor/connections/__tests__/paths.test.ts +39 -0
- package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +113 -0
- package/src/components/editor/connections/add-connection-dialog.tsx +2 -0
- package/src/components/editor/connections/components.tsx +6 -2
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +27 -5
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +33 -0
- package/src/components/editor/connections/database/as-code.ts +37 -13
- package/src/components/editor/connections/database/schemas.ts +6 -5
- package/src/components/editor/connections/form-renderers.tsx +99 -1
- package/src/components/editor/connections/json-credentials.ts +57 -0
- package/src/components/editor/connections/paths.ts +21 -0
- package/src/components/editor/connections/quick-add-data-sources.tsx +106 -0
- package/src/components/editor/connections/secret-combobox.tsx +41 -20
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +88 -2
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +128 -8
- package/src/components/editor/connections/storage/as-code.ts +79 -36
- package/src/components/editor/connections/storage/schemas.ts +85 -44
- package/src/components/editor/file-tree/__tests__/renderers.test.ts +31 -0
- package/src/components/editor/file-tree/file-viewer.tsx +11 -7
- package/src/components/editor/file-tree/renderers.tsx +21 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -2
- package/src/components/editor/viewer-banner.tsx +6 -1
- package/src/components/forms/form.tsx +59 -24
- package/src/components/forms/options.ts +2 -1
- package/src/components/slides/__tests__/cell-output-block.test.tsx +40 -0
- package/src/components/slides/__tests__/slide-cell-view.test.tsx +33 -0
- package/src/components/slides/reveal-component.tsx +22 -17
- package/src/components/slides/slide-cell-view.tsx +1 -1
- package/src/components/slides/slides.css +4 -2
- package/src/components/static-html/share-modal.tsx +1 -1
- package/src/core/ai/context/providers/file.ts +8 -29
- package/src/core/cells/__tests__/cells.test.ts +12 -2
- package/src/core/cells/__tests__/logs.test.ts +5 -5
- package/src/core/cells/cells.ts +17 -4
- package/src/core/cells/document-changes.ts +1 -0
- package/src/core/cells/logs.ts +14 -4
- package/src/core/codemirror/cm.ts +3 -0
- package/src/core/codemirror/code-lens/__tests__/actions.test.ts +68 -0
- package/src/core/codemirror/code-lens/__tests__/analyzer.test.ts +224 -0
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +175 -0
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +325 -0
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +121 -0
- package/src/core/codemirror/code-lens/__tests__/popover.test.ts +93 -0
- package/src/core/codemirror/code-lens/actions.ts +33 -0
- package/src/core/codemirror/code-lens/analyzer.ts +284 -0
- package/src/core/codemirror/code-lens/entities.ts +123 -0
- package/src/core/codemirror/code-lens/extension.ts +298 -0
- package/src/core/codemirror/code-lens/icons.ts +36 -0
- package/src/core/codemirror/code-lens/popover.tsx +240 -0
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +396 -100
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -540
- package/src/core/codemirror/copilot/language-server.ts +182 -70
- package/src/core/codemirror/copilot/transport.ts +15 -207
- package/src/core/codemirror/copilot/types.ts +9 -2
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -30
- package/src/core/codemirror/find-replace/navigate.ts +2 -0
- package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +24 -3
- package/src/core/codemirror/go-to-definition/commands.ts +93 -90
- package/src/core/codemirror/language/__tests__/sql.test.ts +627 -61
- package/src/core/codemirror/language/languages/python.ts +23 -11
- package/src/core/codemirror/language/languages/sql/completion-store.ts +5 -1
- package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
- package/src/core/codemirror/language/languages/sql/sql.ts +251 -16
- package/src/core/codemirror/lsp/__tests__/federated-lsp.test.ts +161 -0
- package/src/core/codemirror/lsp/__tests__/log-messages.test.ts +53 -0
- package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +25 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +598 -156
- package/src/core/codemirror/lsp/__tests__/transports.test.ts +112 -0
- package/src/core/codemirror/lsp/federated-lsp.ts +76 -23
- package/src/core/codemirror/lsp/log-messages.ts +37 -0
- package/src/core/codemirror/lsp/normalize-markdown-math.ts +8 -4
- package/src/core/codemirror/lsp/notebook-lsp.ts +220 -56
- package/src/core/codemirror/lsp/transports.ts +8 -1
- package/src/core/codemirror/lsp/types.ts +68 -8
- package/src/core/codemirror/lsp/utils.ts +14 -0
- package/src/core/codemirror/python-node-names.ts +90 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +52 -57
- package/src/core/codemirror/utils.ts +28 -0
- package/src/core/config/feature-flag.tsx +3 -1
- package/src/core/datasets/data-source-discovery.ts +5 -0
- package/src/core/datasets/request-registry.ts +11 -0
- package/src/core/edit-app.tsx +1 -2
- package/src/core/export/__tests__/hooks.test.ts +2 -4
- package/src/core/export/hooks.ts +4 -3
- package/src/core/islands/__tests__/bridge.test.ts +107 -0
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/islands/bridge.ts +18 -0
- package/src/core/kernel/messages.ts +2 -0
- package/src/core/lsp/__tests__/transport.test.ts +509 -337
- package/src/core/lsp/transport.ts +304 -132
- package/src/core/mode.ts +10 -0
- package/src/core/network/__tests__/api.test.ts +42 -0
- package/src/core/network/__tests__/connection.test.ts +45 -0
- package/src/core/network/__tests__/requests-lazy.test.ts +47 -1
- package/src/core/network/__tests__/requests-network.test.ts +48 -0
- package/src/core/network/api.ts +27 -0
- package/src/core/network/connection.ts +15 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +31 -8
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/types.ts +27 -6
- package/src/core/rtc/state.ts +9 -0
- package/src/core/static/download-html.ts +5 -14
- package/src/core/wasm/__tests__/bridge.test.ts +99 -5
- package/src/core/wasm/bridge.ts +42 -9
- package/src/core/wasm/worker/types.ts +10 -3
- package/src/core/wasm/worker/worker.ts +7 -8
- package/src/core/websocket/useMarimoKernelConnection.tsx +4 -0
- package/src/css/app/codemirror.css +16 -2
- package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +80 -0
- package/src/hooks/useDataSourceDiscovery.ts +18 -0
- package/src/plugins/impl/DataTablePlugin.tsx +4 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +158 -0
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +55 -0
- package/src/plugins/impl/anywidget/model.ts +20 -5
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +33 -21
- package/src/plugins/impl/data-frames/forms/renderers.tsx +11 -8
- package/src/stories/log-viewer.stories.tsx +12 -6
- package/src/utils/__tests__/blob.test.ts +27 -1
- package/src/utils/__tests__/download.test.tsx +44 -4
- package/src/utils/blob.ts +24 -1
- package/src/utils/download.ts +14 -15
- package/dist/assets/JsonOutput-B0aYK7up.js +0 -53
- package/dist/assets/LazyAnyLanguageCodeMirror-B2JvSXP-.js +0 -2
- package/dist/assets/RenderHTML-uBc4LkCP.js +0 -1
- package/dist/assets/__vite-browser-external-BkrtI7wJ.js +0 -1
- package/dist/assets/add-connection-dialog-BgQ7HuWu.js +0 -170
- package/dist/assets/ai-model-dropdown-C7iiWBqP.js +0 -5
- package/dist/assets/apl-DTwRFDps.js +0 -1
- package/dist/assets/app-config-button-DhmeKMjL.js +0 -1
- package/dist/assets/asciiarmor-CiqkDK0s.js +0 -1
- package/dist/assets/asn1-RTvH5MEs.js +0 -1
- package/dist/assets/blob-C3EfaMOb.js +0 -1
- package/dist/assets/brainfuck-szH_VGzd.js +0 -1
- package/dist/assets/cell-editor-DD0zaU_N.js +0 -27
- package/dist/assets/cell-link-C0hhYyNu.js +0 -1
- package/dist/assets/cells-aqfX084m.js +0 -229
- package/dist/assets/channel-D-k8o3T1.js +0 -1
- package/dist/assets/chunk-55IACEB6-xhaY4LU6.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-C-rIg7EQ.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-MBAsRLae.js +0 -1
- package/dist/assets/clojure-CyEbLmch.js +0 -1
- package/dist/assets/cmake-Dk8f7QuI.js +0 -1
- package/dist/assets/cobol-BJJRqW1D.js +0 -1
- package/dist/assets/coffeescript-BDuWJ9WO.js +0 -1
- package/dist/assets/commonlisp-CVHm2VSp.js +0 -1
- package/dist/assets/components-1i9OlkxM.js +0 -1
- package/dist/assets/config-CR3KxW53.js +0 -1
- package/dist/assets/crystal-C2Fgr79A.js +0 -1
- package/dist/assets/cypher-CUlCm6vR.js +0 -1
- package/dist/assets/d-4ANEHA6q.js +0 -1
- package/dist/assets/diff-C-W-5V8L.js +0 -1
- package/dist/assets/dist-CCAhuqF-.js +0 -1
- package/dist/assets/dist-DGhK0kPE.js +0 -1
- package/dist/assets/dist-SVDIDTM2.js +0 -1
- package/dist/assets/dist-xSLg7wNV.js +0 -1
- package/dist/assets/download-CkMUlfM3.js +0 -9
- package/dist/assets/dtd-D9h-tL8G.js +0 -1
- package/dist/assets/dylan-D3MC56xy.js +0 -1
- package/dist/assets/eiffel-CjvEov4k.js +0 -1
- package/dist/assets/elm-DvSbvRWe.js +0 -1
- package/dist/assets/erlang-DJYaGXyq.js +0 -1
- package/dist/assets/error-entries-NXVkubuN.js +0 -8
- package/dist/assets/factor-CUQCrkTo.js +0 -1
- package/dist/assets/file-explorer-panel-D7VHUIPp.js +0 -26
- package/dist/assets/floating-outline-BOqWJRw_.js +0 -1
- package/dist/assets/focus-tOmGbv38.js +0 -1
- package/dist/assets/form-CIXAzTfC.js +0 -2
- package/dist/assets/forth-D9xegiCO.js +0 -1
- package/dist/assets/fortran-B0Oe0U8s.js +0 -1
- package/dist/assets/gas-jLjj-PIq.js +0 -1
- package/dist/assets/gherkin-3Ig8Crit.js +0 -1
- package/dist/assets/groovy-NKpNVJ-n.js +0 -1
- package/dist/assets/haskell-OPE4bAjk.js +0 -1
- package/dist/assets/haxe-DEAZF8L3.js +0 -1
- package/dist/assets/home-page-DO_MqQAB.js +0 -4
- package/dist/assets/idl-BM6265Xl.js +0 -1
- package/dist/assets/index-wLUfvfaV.js +0 -38
- package/dist/assets/index-xs-zSSrX.css +0 -2
- package/dist/assets/infoDiagram-HS3SLOUP-DQnMjKYJ.js +0 -2
- package/dist/assets/javascript-CZ9vDpAy.js +0 -1
- package/dist/assets/julia-BrY9TQnt.js +0 -1
- package/dist/assets/katex-C-lfa1AM.js +0 -1
- package/dist/assets/kiosk-mode-QsYGYiC8.js +0 -1
- package/dist/assets/livescript-CNahkUp5.js +0 -1
- package/dist/assets/logs-panel-B6AfYQb6.js +0 -1
- package/dist/assets/lua-Skr4TVu_.js +0 -1
- package/dist/assets/mathematica-BXxhrpeY.js +0 -1
- package/dist/assets/mbox-BRrQCVe9.js +0 -1
- package/dist/assets/mirc-CffYPE4R.js +0 -1
- package/dist/assets/mllike-C1DLZhEI.js +0 -1
- package/dist/assets/modelica-CvAyRRNV.js +0 -1
- package/dist/assets/mscgen-uMZWtMZv.js +0 -1
- package/dist/assets/mumps-DFJehEx7.js +0 -1
- package/dist/assets/node-sql-parser-BWgUjcfV.js +0 -68
- package/dist/assets/nsis-BVI9YULz.js +0 -1
- package/dist/assets/ntriples-Bcdh7b2H.js +0 -1
- package/dist/assets/octave-CdAKz6YS.js +0 -1
- package/dist/assets/oz-DSySeR-W.js +0 -1
- package/dist/assets/pair-with-agent-modal-C9nKHvCp.js +0 -4
- package/dist/assets/panels-Ch_sUzTx.js +0 -4
- package/dist/assets/pascal-DefziIUN.js +0 -1
- package/dist/assets/perl-BOOloBPk.js +0 -1
- package/dist/assets/pig-f0nBb-5x.js +0 -1
- package/dist/assets/powershell-DToQjbK9.js +0 -1
- package/dist/assets/process-output-BFSCpqNt.js +0 -1
- package/dist/assets/properties-BRob-nyj.js +0 -1
- package/dist/assets/protobuf-DZyC6051.js +0 -1
- package/dist/assets/pug-pVoM8FRt.js +0 -1
- package/dist/assets/puppet-9fuYG07F.js +0 -1
- package/dist/assets/python-_Mr8fyXP.js +0 -1
- package/dist/assets/q-D73s4Y77.js +0 -1
- package/dist/assets/r-BOEjz92e.js +0 -1
- package/dist/assets/rpm-LpXWTM5t.js +0 -1
- package/dist/assets/ruby-DodgSDfF.js +0 -1
- package/dist/assets/run-page-D9-9chbw.js +0 -1
- package/dist/assets/sas-D9KCtUmL.js +0 -1
- package/dist/assets/scheme-p8UJxmJw.js +0 -1
- package/dist/assets/session-panel-Dz-DQDeV.js +0 -1
- package/dist/assets/shell-BWdqyqwL.js +0 -1
- package/dist/assets/sieve-CLwJmtiQ.js +0 -1
- package/dist/assets/slides-MCbMDtlY.css +0 -1
- package/dist/assets/smalltalk-D3KV-Qah.js +0 -1
- package/dist/assets/sparql-D9Jz2mBw.js +0 -1
- package/dist/assets/state-BpkJVsmT.js +0 -3
- package/dist/assets/state-DDag0B_B.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-CA1l0rNa.js +0 -1
- package/dist/assets/stylus-ClN4l_XO.js +0 -1
- package/dist/assets/swift-Dvd_9xBv.js +0 -1
- package/dist/assets/switch-DLGijIXN.js +0 -1
- package/dist/assets/tcl-DR2p8cyi.js +0 -1
- package/dist/assets/textarea-aocYW9hl.js +0 -1
- package/dist/assets/textile-D6S27_J2.js +0 -1
- package/dist/assets/toml-B-YuQ2Id.js +0 -1
- package/dist/assets/troff-HSk8AoRF.js +0 -1
- package/dist/assets/ttcn-CehzlVdx.js +0 -1
- package/dist/assets/ttcn-cfg-CLEPwk1s.js +0 -1
- package/dist/assets/turtle-DQLHkbOu.js +0 -1
- package/dist/assets/useCellActionButton-BG7n5b0H.js +0 -1
- package/dist/assets/useNotebookActions-COdGI2fR.js +0 -12
- package/dist/assets/useRunCells-BtSwerrU.js +0 -1
- package/dist/assets/vb-o1EHrS4z.js +0 -1
- package/dist/assets/vbscript-BS8yUFpf.js +0 -1
- package/dist/assets/velocity-u_oGPFaA.js +0 -1
- package/dist/assets/verilog-CSmDH7su.js +0 -1
- package/dist/assets/vhdl-BCaWLcjw.js +0 -1
- package/dist/assets/webidl-Bf6dokXM.js +0 -1
- package/dist/assets/write-secret-modal-3-v-dHVj.js +0 -1
- package/dist/assets/xquery-Di0kkiXg.js +0 -1
- package/dist/assets/yacas-DB8tPtyp.js +0 -1
- package/dist/assets/z80-DFUvlWxk.js +0 -1
- /package/dist/assets/{ImageComparisonComponent-Cz3xVDLH.js → ImageComparisonComponent-COvcNAUu.js} +0 -0
- /package/dist/assets/{Inputs-B8-VCb_j.js → Inputs-BmtHnGKp.js} +0 -0
- /package/dist/assets/{Plot-X2G47XHf.js → Plot-CB_5AR7d.js} +0 -0
- /package/dist/assets/{apl-DVqFAlEd.js → apl-Cp4QYSh2.js} +0 -0
- /package/dist/assets/{array-Ddg9CgJT.js → array-BuhHwWF4.js} +0 -0
- /package/dist/assets/{asciiarmor-B45BhOLj.js → asciiarmor-BUxo-e6o.js} +0 -0
- /package/dist/assets/{asn1-C4T2ctU6.js → asn1-Cp_b5sxr.js} +0 -0
- /package/dist/assets/{asterisk-9U_4Kgke.js → asterisk-BKEE609E.js} +0 -0
- /package/dist/assets/{azure-nN8APleF.js → azure-t5-hyIQ1.js} +0 -0
- /package/dist/assets/{brainfuck-kVh8Eud4.js → brainfuck-DmRCaE-Q.js} +0 -0
- /package/dist/assets/{card-VUBaYDpT.js → card-P_NJTnTd.js} +0 -0
- /package/dist/assets/{chunk-4F5CHEZ2-ClSh5rxG.js → chunk-4F5CHEZ2-D6n-cT3v.js} +0 -0
- /package/dist/assets/{chunk-B2363JML-cit0ouFv.js → chunk-B2363JML-kkXnm2Yp.js} +0 -0
- /package/dist/assets/{chunk-DR5Q36YT-Bsu9Glc0.js → chunk-DR5Q36YT-DZQANAzH.js} +0 -0
- /package/dist/assets/{chunk-FRFDVMJY--Re1QfFE.js → chunk-FRFDVMJY-MdHMrSks.js} +0 -0
- /package/dist/assets/{chunk-PL6DKKU2-CAwRAr-p.js → chunk-PL6DKKU2-BPi2wKR3.js} +0 -0
- /package/dist/assets/{chunk-SJTYNZTY-G1spWesO.js → chunk-SJTYNZTY-BcV9dsih.js} +0 -0
- /package/dist/assets/{chunk-TQ3KTPDO-DBwra5xv.js → chunk-TQ3KTPDO-XDjkQ8Xj.js} +0 -0
- /package/dist/assets/{chunk-UMXZTB3W-A5RvYDPE.js → chunk-UMXZTB3W-C-xu4f6g.js} +0 -0
- /package/dist/assets/{clear-button-DQtvx6eq.js → clear-button-clPKQb-5.js} +0 -0
- /package/dist/assets/{click-outside-container-CrWZsAF5.js → click-outside-container-BU5ChL3W.js} +0 -0
- /package/dist/assets/{clike-O0gwXilc.js → clike--wVFVJzz.js} +0 -0
- /package/dist/assets/{clojure-CsbMWxp9.js → clojure-xvpMtcD1.js} +0 -0
- /package/dist/assets/{cmake-FpJvOdyj.js → cmake-ChD_WVwL.js} +0 -0
- /package/dist/assets/{cobol-Duxbpsru.js → cobol-B5K8KXv5.js} +0 -0
- /package/dist/assets/{coffeescript-D-Unz9IP.js → coffeescript-EMaA6sFP.js} +0 -0
- /package/dist/assets/{colors-C_0lIznd.js → colors-CQfhPUa2.js} +0 -0
- /package/dist/assets/{common-keywords-PqH2GDfH.js → common-keywords-DdCmdKox.js} +0 -0
- /package/dist/assets/{commonlisp-_nR12oc7.js → commonlisp-BTUt7Wms.js} +0 -0
- /package/dist/assets/{crystal-dj3W4b1A.js → crystal-CaYGQjnj.js} +0 -0
- /package/dist/assets/{css-0BG6A_BC.js → css-Ci5CSFmt.js} +0 -0
- /package/dist/assets/{cypher-CKPokaoH.js → cypher-Bt0cHBYq.js} +0 -0
- /package/dist/assets/{cytoscape.esm-DzUNSF80.js → cytoscape.esm-CbUmcCyd.js} +0 -0
- /package/dist/assets/{d-BrbqzVa2.js → d-Y6y0yT7l.js} +0 -0
- /package/dist/assets/{diff-BmdR9FsO.js → diff-DWzGHZfz.js} +0 -0
- /package/dist/assets/{dist-CpbbK4-I.js → dist-8SH6SWEG.js} +0 -0
- /package/dist/assets/{dist-DzAAhYcW.js → dist-9o0Xjd5v.js} +0 -0
- /package/dist/assets/{dist-DNGKAtWk.js → dist-BKgHjzML.js} +0 -0
- /package/dist/assets/{dist-98K4fusX.js → dist-BP4hpPAE.js} +0 -0
- /package/dist/assets/{dist-D35OyUMQ.js → dist-C-3FVUQA.js} +0 -0
- /package/dist/assets/{dist-OgwOt8T2.js → dist-C6_DArtj.js} +0 -0
- /package/dist/assets/{dist-O5-NiN3f.js → dist-CLyRge8R.js} +0 -0
- /package/dist/assets/{dist-D5ToCtv8.js → dist-CZvbHnyT.js} +0 -0
- /package/dist/assets/{dist-DrtRBAn8.js → dist-CrKffqgx.js} +0 -0
- /package/dist/assets/{dist-B8g3pNYJ.js → dist-Cros4IAo.js} +0 -0
- /package/dist/assets/{dist-3N7-WLqi.js → dist-D47O3FBX.js} +0 -0
- /package/dist/assets/{dist-BaKJ0-Tb.js → dist-DJuRuTXr.js} +0 -0
- /package/dist/assets/{dist-CM-lWxt3.js → dist-DQl27SFq.js} +0 -0
- /package/dist/assets/{dist-DokId-qM.js → dist-DeJBvhAc.js} +0 -0
- /package/dist/assets/{dist-C5kf6g-d.js → dist-fLBYOt9R.js} +0 -0
- /package/dist/assets/{dist-56ul6-mm.js → dist-kLs0VbW_.js} +0 -0
- /package/dist/assets/{dist-ByK00N0T.js → dist-l4RTzHX-.js} +0 -0
- /package/dist/assets/{dist-D9sE1udr.js → dist-ut5UbaRH.js} +0 -0
- /package/dist/assets/{dtd-DbCXDVgi.js → dtd-CkphQXbR.js} +0 -0
- /package/dist/assets/{duckdb-keywords-mPlR0SxW.js → duckdb-keywords-D9ZiGTTc.js} +0 -0
- /package/dist/assets/{dylan-CLLzL2Js.js → dylan-CPyS5Usd.js} +0 -0
- /package/dist/assets/{ebnf-Cnws41cu.js → ebnf-C4SDYpAu.js} +0 -0
- /package/dist/assets/{ecl-BC7x2nzk.js → ecl-Dy8k_w5N.js} +0 -0
- /package/dist/assets/{eiffel-CDU836rz.js → eiffel-DZMtnEo6.js} +0 -0
- /package/dist/assets/{elm-D-_bXARs.js → elm-CkuOc7z-.js} +0 -0
- /package/dist/assets/{empty-state-CqJvEFRk.js → empty-state-JOk_hLQe.js} +0 -0
- /package/dist/assets/{erlang-CwDZk2zM.js → erlang-CSyJ5dU6.js} +0 -0
- /package/dist/assets/{esm-D6WfbcL3.js → esm-7r3G8FZG.js} +0 -0
- /package/dist/assets/{fcl-CwkPc-_9.js → fcl-Px-Zskiw.js} +0 -0
- /package/dist/assets/{formatting-CDf6w1Kt.js → formatting-COz4XEaB.js} +0 -0
- /package/dist/assets/{forth-D6FsO_8x.js → forth-HHM4VU-4.js} +0 -0
- /package/dist/assets/{fortran-D4BMbIkG.js → fortran-D_hdoGUs.js} +0 -0
- /package/dist/assets/{gas-JFjzcgdY.js → gas-DwXUGevO.js} +0 -0
- /package/dist/assets/{gherkin-Cyu-qGaF.js → gherkin-6UjduaeQ.js} +0 -0
- /package/dist/assets/{github-_JH-0hIO.js → github-A_zUd4Uj.js} +0 -0
- /package/dist/assets/{groovy-CZaE9eN-.js → groovy-BMSTiLIi.js} +0 -0
- /package/dist/assets/{haskell-Dc6o0IGr.js → haskell-CwQPWeas.js} +0 -0
- /package/dist/assets/{haxe-Bsf0tzqs.js → haxe-BwgB7edi.js} +0 -0
- /package/dist/assets/{http-BQNSD-HR.js → http-CqevOCDe.js} +0 -0
- /package/dist/assets/{idl-1W91kQ8_.js → idl-DaVQAS85.js} +0 -0
- /package/dist/assets/{init-nx27Zb9l.js → init-D5qG588s.js} +0 -0
- /package/dist/assets/{javascript-BZ81-2rO.js → javascript-DgYFgf02.js} +0 -0
- /package/dist/assets/{julia-BZOsq0r_.js → julia-ZzackTsi.js} +0 -0
- /package/dist/assets/{katex-CvZ3kCGk.js → katex-Di-siZEY.js} +0 -0
- /package/dist/assets/{links-CZr5bjvo.js → links-ClNQSIal.js} +0 -0
- /package/dist/assets/{livescript-CNZfmikk.js → livescript-fyjJd0Zu.js} +0 -0
- /package/dist/assets/{loro_wasm_bg-RNUly1SE.js → loro_wasm_bg-BPjF1TWb.js} +0 -0
- /package/dist/assets/{lua-DXGRliwd.js → lua-Cx9isc8d.js} +0 -0
- /package/dist/assets/{marimo-icons-C_nFooxr.js → marimo-icons-yD_pAOm9.js} +0 -0
- /package/dist/assets/{math-CLO4uoaP.js → math-7EMdGNhR.js} +0 -0
- /package/dist/assets/{mathematica-BoUj8M7D.js → mathematica-BJvaPi1-.js} +0 -0
- /package/dist/assets/{mbox-DLVP8LAe.js → mbox-43z3jriT.js} +0 -0
- /package/dist/assets/{mirc-kI4d5fMu.js → mirc-B1ZSd8Bn.js} +0 -0
- /package/dist/assets/{mllike-CD9vBc_2.js → mllike-DZwCuWJi.js} +0 -0
- /package/dist/assets/{modelica-DgfsLJuF.js → modelica-DJJ2ie2z.js} +0 -0
- /package/dist/assets/{mscgen-B1HDwshJ.js → mscgen-CKYpxNp_.js} +0 -0
- /package/dist/assets/{multi-icon-nrKPWjDU.js → multi-icon-DVD1luis.js} +0 -0
- /package/dist/assets/{mumps-D_-b9TZD.js → mumps-DYGlTYd1.js} +0 -0
- /package/dist/assets/{nginx-Cm282mo8.js → nginx-D6Zlgok6.js} +0 -0
- /package/dist/assets/{ntriples-COX9JFZ8.js → ntriples-DizNPLuO.js} +0 -0
- /package/dist/assets/{octave-BejycR79.js → octave-DdwI7gwd.js} +0 -0
- /package/dist/assets/{oz-CFFivrGn.js → oz-DMPAJRti.js} +0 -0
- /package/dist/assets/{panel-context-CH75ubGG.js → panel-context-CckkyW-1.js} +0 -0
- /package/dist/assets/{pascal-B_p9jkCs.js → pascal-Do0zihr_.js} +0 -0
- /package/dist/assets/{path-Bz_hIzg5.js → path-WJo29M9I.js} +0 -0
- /package/dist/assets/{pathUtils-Bfcp5m-a.js → pathUtils-icFgkNy9.js} +0 -0
- /package/dist/assets/{perl-C-SFBTly.js → perl-t4XY-5wj.js} +0 -0
- /package/dist/assets/{pig-BhxDMp2k.js → pig-CgweiC6M.js} +0 -0
- /package/dist/assets/{powershell-c59M-9N2.js → powershell-OQGwpWeH.js} +0 -0
- /package/dist/assets/{properties-D1JNwCKy.js → properties-BU4KenKz.js} +0 -0
- /package/dist/assets/{protobuf-DQS7ex8R.js → protobuf--IbBPde2.js} +0 -0
- /package/dist/assets/{puppet-DaQvhvew.js → puppet-DkR_zpq4.js} +0 -0
- /package/dist/assets/{python-XHl3eRTS.js → python-PdpM9cxt.js} +0 -0
- /package/dist/assets/{q-DppnoRE3.js → q-BmGsZsKc.js} +0 -0
- /package/dist/assets/{r-D8-F_FWj.js → r-D1cPebaP.js} +0 -0
- /package/dist/assets/{request-registry-DHocQ_4I.js → request-registry-Dpk9hQrX.js} +0 -0
- /package/dist/assets/{requests-DYeT4CEe.js → requests-BMphPdzB.js} +0 -0
- /package/dist/assets/{rpm-CegJhNNO.js → rpm-CG3vlu2-.js} +0 -0
- /package/dist/assets/{ruby-YMIxufV1.js → ruby-BU2XuRQM.js} +0 -0
- /package/dist/assets/{runs-DBTXqJHS.js → runs-s9t2f_Tg.js} +0 -0
- /package/dist/assets/{sas-wTtX9UIQ.js → sas-ig9j_2iC.js} +0 -0
- /package/dist/assets/{scheme-BGenom3k.js → scheme-9DZXzBKN.js} +0 -0
- /package/dist/assets/{semaphore-DtBYRzWS.js → semaphore-C-Nli4KG.js} +0 -0
- /package/dist/assets/{shell-Bu1sLaiP.js → shell-BtigxJqY.js} +0 -0
- /package/dist/assets/{sieve-ffe6rUQh.js → sieve-DJ-mn8HY.js} +0 -0
- /package/dist/assets/{simple-mode-DBSzUJLA.js → simple-mode-lTjyt9i9.js} +0 -0
- /package/dist/assets/{smalltalk-NU5EGjHp.js → smalltalk-Bn53uNk6.js} +0 -0
- /package/dist/assets/{solr-ptw1yIqO.js → solr-BenHzQuB.js} +0 -0
- /package/dist/assets/{sparql-uqVktnwO.js → sparql-mdFRPSSw.js} +0 -0
- /package/dist/assets/{spreadsheet-VEzeu_mb.js → spreadsheet-CIIID0RN.js} +0 -0
- /package/dist/assets/{sql-tYjnWETe.js → sql-BJS8pfHr.js} +0 -0
- /package/dist/assets/{src-BshXgZd4.js → src-C042FyXq.js} +0 -0
- /package/dist/assets/{state-D10U2MwA.js → state-DCtLlFJq.js} +0 -0
- /package/dist/assets/{stylus-B2E6Ulaz.js → stylus-CUXYXPeL.js} +0 -0
- /package/dist/assets/{swift-Rmnn7ATv.js → swift-BgwlI0GN.js} +0 -0
- /package/dist/assets/{swiper-component-Che9MNs4.js → swiper-component-DXW8snlt.js} +0 -0
- /package/dist/assets/{tcl-ZPWCn2nn.js → tcl-B8Khjzwl.js} +0 -0
- /package/dist/assets/{textile-uhA33kFk.js → textile-DmfgOrXO.js} +0 -0
- /package/dist/assets/{tiddlywiki-CPkGLyXH.js → tiddlywiki-mgaN9k7_.js} +0 -0
- /package/dist/assets/{tiki-BtjLo8OF.js → tiki-B8Sxh4ZA.js} +0 -0
- /package/dist/assets/{timer-VYMLXPue.js → timer-Bt8Z3SQI.js} +0 -0
- /package/dist/assets/{toml-BFZv2Mv7.js → toml-CPrwnn25.js} +0 -0
- /package/dist/assets/{treemap-Bca0xNNq.js → treemap-CshYMgJw.js} +0 -0
- /package/dist/assets/{troff-B5eayHop.js → troff-Cb-2hp0t.js} +0 -0
- /package/dist/assets/{ttcn-cfg-CfbkL3Q_.js → ttcn-cfg-O0cle81j.js} +0 -0
- /package/dist/assets/{ttcn-BM0Yp8NY.js → ttcn-mp3DV9SP.js} +0 -0
- /package/dist/assets/{turtle-DvetLxrv.js → turtle-Bo_IjRT-.js} +0 -0
- /package/dist/assets/{types-Da7lA5YC.js → types-Bn-E0Dh-.js} +0 -0
- /package/dist/assets/{use-vega-container-remeasure-CbKTb_jy.js → use-vega-container-remeasure-C52OJt1l.js} +0 -0
- /package/dist/assets/{useInterval-CWBTUy5W.js → useInterval-CnQfyMa9.js} +0 -0
- /package/dist/assets/{vb-i5Z8scch.js → vb-B84py4l9.js} +0 -0
- /package/dist/assets/{vbscript-BiPYgIyi.js → vbscript-DCWGTF8B.js} +0 -0
- /package/dist/assets/{velocity-Dw3R3YoX.js → velocity-COls9qbE.js} +0 -0
- /package/dist/assets/{verilog-B8FhJcX6.js → verilog-Dn4JRpb3.js} +0 -0
- /package/dist/assets/{vhdl-BqPEoXdJ.js → vhdl-DxQ-aNCu.js} +0 -0
- /package/dist/assets/{web-vitals-CwE0GGzl.js → web-vitals-DBq6CjRf.js} +0 -0
- /package/dist/assets/{webidl-mMO-qW5Q.js → webidl-IlD_Nbdp.js} +0 -0
- /package/dist/assets/{ws-BmTnbVEi.js → ws-Dj1iZVFK.js} +0 -0
- /package/dist/assets/{xquery-DvqNwq7L.js → xquery-DwkwsYYE.js} +0 -0
- /package/dist/assets/{yacas-Dku9Z6Kf.js → yacas-CR27GINL.js} +0 -0
- /package/dist/assets/{z80-DvazU5Tr.js → z80-DDujbhXi.js} +0 -0
|
@@ -74,17 +74,24 @@ export const ZodForm = <T extends FieldValues>({
|
|
|
74
74
|
return (
|
|
75
75
|
<FormProvider {...form}>
|
|
76
76
|
{children}
|
|
77
|
-
{renderZodSchema(schema, form, path, renderers)}
|
|
77
|
+
{renderZodSchema({ schema, form, path, renderers })}
|
|
78
78
|
</FormProvider>
|
|
79
79
|
);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export
|
|
83
|
-
schema: z.ZodType<S
|
|
84
|
-
form: UseFormReturn<T
|
|
85
|
-
path: Path<T
|
|
86
|
-
renderers: FormRenderer<T>[]
|
|
87
|
-
|
|
82
|
+
export interface RenderZodSchemaOptions<T extends FieldValues, S> {
|
|
83
|
+
schema: z.ZodType<S>;
|
|
84
|
+
form: UseFormReturn<T>;
|
|
85
|
+
path: Path<T>;
|
|
86
|
+
renderers: FormRenderer<T>[];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function renderZodSchema<T extends FieldValues, S>({
|
|
90
|
+
schema,
|
|
91
|
+
form,
|
|
92
|
+
path,
|
|
93
|
+
renderers,
|
|
94
|
+
}: RenderZodSchemaOptions<T, S>) {
|
|
88
95
|
// Try custom renderers first
|
|
89
96
|
for (const renderer of renderers) {
|
|
90
97
|
const { isMatch, Component } = renderer;
|
|
@@ -107,7 +114,7 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
107
114
|
!inner.description && schema.description
|
|
108
115
|
? inner.describe(schema.description)
|
|
109
116
|
: inner;
|
|
110
|
-
return renderZodSchema(inner, form, path, renderers);
|
|
117
|
+
return renderZodSchema({ schema: inner, form, path, renderers });
|
|
111
118
|
}
|
|
112
119
|
|
|
113
120
|
if (schema instanceof z.ZodOptional) {
|
|
@@ -116,7 +123,7 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
116
123
|
!inner.description && schema.description
|
|
117
124
|
? inner.describe(schema.description)
|
|
118
125
|
: inner;
|
|
119
|
-
return renderZodSchema(inner, form, path, renderers);
|
|
126
|
+
return renderZodSchema({ schema: inner, form, path, renderers });
|
|
120
127
|
}
|
|
121
128
|
|
|
122
129
|
if (schema instanceof z.ZodObject) {
|
|
@@ -134,12 +141,12 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
134
141
|
<FormLabel>{label}</FormLabel>
|
|
135
142
|
{Objects.entries(schema.shape).map(([key, value]) => {
|
|
136
143
|
const isLiteral = value instanceof z.ZodLiteral;
|
|
137
|
-
const childForm = renderZodSchema(
|
|
138
|
-
value as z.ZodType,
|
|
144
|
+
const childForm = renderZodSchema({
|
|
145
|
+
schema: value as z.ZodType,
|
|
139
146
|
form,
|
|
140
|
-
joinPath(path, key),
|
|
147
|
+
path: joinPath(path, key),
|
|
141
148
|
renderers,
|
|
142
|
-
);
|
|
149
|
+
});
|
|
143
150
|
|
|
144
151
|
if (isLiteral) {
|
|
145
152
|
return <React.Fragment key={key}>{childForm}</React.Fragment>;
|
|
@@ -189,16 +196,24 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
189
196
|
name={path}
|
|
190
197
|
render={({ field }) => (
|
|
191
198
|
<FormItem>
|
|
192
|
-
<div
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
<div
|
|
200
|
+
className={cn(
|
|
201
|
+
"flex flex-row gap-2",
|
|
202
|
+
description ? "items-start" : "items-center",
|
|
203
|
+
)}
|
|
204
|
+
>
|
|
195
205
|
<FormControl>
|
|
196
206
|
<Checkbox
|
|
197
207
|
data-testid="marimo-plugin-data-frames-boolean-checkbox"
|
|
198
208
|
checked={field.value}
|
|
199
209
|
onCheckedChange={field.onChange}
|
|
210
|
+
className={description ? "mt-0.5" : undefined}
|
|
200
211
|
/>
|
|
201
212
|
</FormControl>
|
|
213
|
+
<div className="flex flex-col gap-1">
|
|
214
|
+
<FormLabel>{label}</FormLabel>
|
|
215
|
+
<FormDescription>{description}</FormDescription>
|
|
216
|
+
</div>
|
|
202
217
|
</div>
|
|
203
218
|
<FormMessage />
|
|
204
219
|
</FormItem>
|
|
@@ -363,13 +378,13 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
363
378
|
|
|
364
379
|
return (
|
|
365
380
|
<div className="flex flex-col">
|
|
366
|
-
<FormLabel>{label}</FormLabel>
|
|
367
|
-
<div className="flex border-b mb-4
|
|
381
|
+
<FormLabel className="mb-2">{label}</FormLabel>
|
|
382
|
+
<div className="flex border-b mb-4">
|
|
368
383
|
{types.map((type: string) => (
|
|
369
384
|
<button
|
|
370
385
|
key={type}
|
|
371
386
|
type="button"
|
|
372
|
-
className={`px-4 py-2 ${
|
|
387
|
+
className={`px-4 py-2 text-sm ${
|
|
373
388
|
unionTypeValue === type
|
|
374
389
|
? "border-b-2 border-primary font-medium"
|
|
375
390
|
: "text-muted-foreground"
|
|
@@ -389,7 +404,12 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
389
404
|
</div>
|
|
390
405
|
<div className="flex flex-col" key={unionTypeValue}>
|
|
391
406
|
{selectedOption &&
|
|
392
|
-
renderZodSchema(
|
|
407
|
+
renderZodSchema({
|
|
408
|
+
schema: selectedOption,
|
|
409
|
+
form,
|
|
410
|
+
path,
|
|
411
|
+
renderers,
|
|
412
|
+
})}
|
|
393
413
|
</div>
|
|
394
414
|
</div>
|
|
395
415
|
);
|
|
@@ -434,7 +454,12 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
434
454
|
})}
|
|
435
455
|
</NativeSelect>
|
|
436
456
|
{selectedOption &&
|
|
437
|
-
renderZodSchema(
|
|
457
|
+
renderZodSchema({
|
|
458
|
+
schema: selectedOption,
|
|
459
|
+
form,
|
|
460
|
+
path,
|
|
461
|
+
renderers,
|
|
462
|
+
})}
|
|
438
463
|
</div>
|
|
439
464
|
);
|
|
440
465
|
}}
|
|
@@ -459,10 +484,15 @@ export function renderZodSchema<T extends FieldValues, S>(
|
|
|
459
484
|
}
|
|
460
485
|
if ("unwrap" in schema) {
|
|
461
486
|
// Handle ZodEffects (transforms/refinements)
|
|
462
|
-
return renderZodSchema(
|
|
487
|
+
return renderZodSchema({
|
|
488
|
+
schema: maybeUnwrap(schema),
|
|
489
|
+
form,
|
|
490
|
+
path,
|
|
491
|
+
renderers,
|
|
492
|
+
});
|
|
463
493
|
}
|
|
464
494
|
if (isZodPipe(schema)) {
|
|
465
|
-
return renderZodSchema(schema.in, form, path, renderers);
|
|
495
|
+
return renderZodSchema({ schema: schema.in, form, path, renderers });
|
|
466
496
|
}
|
|
467
497
|
|
|
468
498
|
return (
|
|
@@ -512,7 +542,12 @@ const FormArray = ({
|
|
|
512
542
|
key={field.id}
|
|
513
543
|
onKeyDown={Events.onEnter((e) => e.preventDefault())}
|
|
514
544
|
>
|
|
515
|
-
{renderZodSchema(
|
|
545
|
+
{renderZodSchema({
|
|
546
|
+
schema,
|
|
547
|
+
form,
|
|
548
|
+
path: `${path}[${index}]`,
|
|
549
|
+
renderers,
|
|
550
|
+
})}
|
|
516
551
|
{canRemove && (
|
|
517
552
|
<Trash2Icon
|
|
518
553
|
className="w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import { render } from "@testing-library/react";
|
|
4
|
+
import { describe, expect, it } from "vitest";
|
|
5
|
+
import { cellId } from "@/__tests__/branded";
|
|
6
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
7
|
+
import { CellOutputId } from "@/core/cells/ids";
|
|
8
|
+
import { createCell, createCellRuntimeState } from "@/core/cells/types";
|
|
9
|
+
import { CellOutputBlock } from "../reveal-component";
|
|
10
|
+
|
|
11
|
+
describe("CellOutputBlock", () => {
|
|
12
|
+
it("renders the cell's data-cell-id and data-cell-name so it can be targeted by custom CSS", () => {
|
|
13
|
+
const id = cellId("test");
|
|
14
|
+
const cell = {
|
|
15
|
+
...createCell({ id, name: "title" }),
|
|
16
|
+
...createCellRuntimeState({
|
|
17
|
+
output: {
|
|
18
|
+
channel: "output",
|
|
19
|
+
mimetype: "text/plain",
|
|
20
|
+
data: "hello",
|
|
21
|
+
timestamp: 0,
|
|
22
|
+
},
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const { container } = render(
|
|
27
|
+
<TooltipProvider>
|
|
28
|
+
<CellOutputBlock cell={cell} />
|
|
29
|
+
</TooltipProvider>,
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
const cellElement = container.querySelector(`[data-cell-id="${id}"]`);
|
|
33
|
+
expect(cellElement).toBeTruthy();
|
|
34
|
+
expect(cellElement?.getAttribute("data-cell-name")).toBe("title");
|
|
35
|
+
|
|
36
|
+
// The wrapper's `data-cell-id` must coexist with the output's own
|
|
37
|
+
// `CellOutputId`-derived id, without colliding.
|
|
38
|
+
expect(document.getElementById(CellOutputId.create(id))).toBeTruthy();
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import { render } from "@testing-library/react";
|
|
4
|
+
import { beforeAll, describe, expect, it } from "vitest";
|
|
5
|
+
import { SetupMocks } from "@/__mocks__/common";
|
|
6
|
+
import { cellId } from "@/__tests__/branded";
|
|
7
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
8
|
+
import { createCell, createCellRuntimeState } from "@/core/cells/types";
|
|
9
|
+
import { SlideCellReadOnlyView } from "../slide-cell-view";
|
|
10
|
+
|
|
11
|
+
beforeAll(() => {
|
|
12
|
+
SetupMocks.resizeObserver();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
describe("SlideCellReadOnlyView", () => {
|
|
16
|
+
it("renders the cell's data-cell-id and data-cell-name so it can be targeted by custom CSS", () => {
|
|
17
|
+
const id = cellId("test");
|
|
18
|
+
const cell = {
|
|
19
|
+
...createCell({ id, name: "title", code: "x = 1" }),
|
|
20
|
+
...createCellRuntimeState(),
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const { container } = render(
|
|
24
|
+
<TooltipProvider>
|
|
25
|
+
<SlideCellReadOnlyView cell={cell} />
|
|
26
|
+
</TooltipProvider>,
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
const cellElement = container.querySelector(`[data-cell-id="${id}"]`);
|
|
30
|
+
expect(cellElement).toBeTruthy();
|
|
31
|
+
expect(cellElement?.getAttribute("data-cell-name")).toBe("title");
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -13,6 +13,7 @@ import useEvent from "react-use-event-hook";
|
|
|
13
13
|
import { CodeIcon, ExpandIcon, EyeOffIcon } from "lucide-react";
|
|
14
14
|
import { Deck, Fragment, Slide, Stack } from "@revealjs/react";
|
|
15
15
|
import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
|
|
16
|
+
import { cellDomProps } from "@/components/editor/common";
|
|
16
17
|
import { Slide as CellOutputSlide } from "@/components/slides/slide";
|
|
17
18
|
import { SlideScrollContainer } from "@/components/slides/slide-scroll-hint";
|
|
18
19
|
import { Button } from "@/components/ui/button";
|
|
@@ -304,6 +305,25 @@ function resolveSlideContentStyle(
|
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
307
|
|
|
308
|
+
/**
|
|
309
|
+
* Renders a cell's output wrapped in a `data-cell-id`/`data-cell-name` div
|
|
310
|
+
* (see `cellDomProps`), so it can be targeted by custom CSS in the slides
|
|
311
|
+
* view just like it can in the vertical layout. The wrapper is required
|
|
312
|
+
* because `CellOutputSlide` sets its own `id` from `CellOutputId` (a
|
|
313
|
+
* different scheme than `HTMLCellId`) and its inner `OutputArea` uses
|
|
314
|
+
* `display: contents`, which can't be targeted for background/border styling.
|
|
315
|
+
*/
|
|
316
|
+
export const CellOutputBlock = ({ cell }: { cell: RuntimeCell }) => (
|
|
317
|
+
<div className="flex flex-col" {...cellDomProps(cell.id, cell.name)}>
|
|
318
|
+
<CellOutputSlide
|
|
319
|
+
cellId={cell.id}
|
|
320
|
+
status={cell.status}
|
|
321
|
+
output={cell.output}
|
|
322
|
+
stale={outputIsStale(cell, false)}
|
|
323
|
+
/>
|
|
324
|
+
</div>
|
|
325
|
+
);
|
|
326
|
+
|
|
307
327
|
const SubslideView = ({
|
|
308
328
|
subslide,
|
|
309
329
|
resolveShowCode,
|
|
@@ -340,15 +360,7 @@ const SubslideView = ({
|
|
|
340
360
|
{subslide.blocks.map((block, i) => {
|
|
341
361
|
const rendered = block.cells.map((cell) => {
|
|
342
362
|
if (!resolveShowCode(cell.id)) {
|
|
343
|
-
return
|
|
344
|
-
<CellOutputSlide
|
|
345
|
-
key={cell.id}
|
|
346
|
-
cellId={cell.id}
|
|
347
|
-
status={cell.status}
|
|
348
|
-
output={cell.output}
|
|
349
|
-
stale={outputIsStale(cell, false)}
|
|
350
|
-
/>
|
|
351
|
-
);
|
|
363
|
+
return <CellOutputBlock key={cell.id} cell={cell} />;
|
|
352
364
|
}
|
|
353
365
|
return isEditable ? (
|
|
354
366
|
<SlideCellView key={cell.id} cell={cell} />
|
|
@@ -406,14 +418,7 @@ const ParkedPreviewContent = ({
|
|
|
406
418
|
<SlideCellReadOnlyView cell={cell} />
|
|
407
419
|
);
|
|
408
420
|
}
|
|
409
|
-
return
|
|
410
|
-
<CellOutputSlide
|
|
411
|
-
cellId={cell.id}
|
|
412
|
-
status={cell.status}
|
|
413
|
-
output={cell.output}
|
|
414
|
-
stale={outputIsStale(cell, false)}
|
|
415
|
-
/>
|
|
416
|
-
);
|
|
421
|
+
return <CellOutputBlock cell={cell} />;
|
|
417
422
|
};
|
|
418
423
|
|
|
419
424
|
// There is an upstream react bug in dev mode (https://github.com/facebook/react/issues/34840)
|
|
@@ -202,7 +202,7 @@ export const SlideCellReadOnlyView = ({ cell }: { cell: RuntimeCell }) => {
|
|
|
202
202
|
);
|
|
203
203
|
|
|
204
204
|
const editor = (
|
|
205
|
-
<div className="marimo-cell">
|
|
205
|
+
<div className="marimo-cell" {...cellDomProps(cell.id, cell.name)}>
|
|
206
206
|
<ReadonlyCode
|
|
207
207
|
code={display.code}
|
|
208
208
|
language={display.language}
|
|
@@ -15,8 +15,10 @@
|
|
|
15
15
|
width: unset;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/* If the first output is the only child, make it flex 1
|
|
19
|
-
|
|
18
|
+
/* If the first output is the only child, make it flex 1. Cells are wrapped
|
|
19
|
+
in a `data-cell-id`/`data-cell-name` div (see `cellDomProps`), so `.output`
|
|
20
|
+
is a grandchild rather than a direct child here. */
|
|
21
|
+
> *:only-child:has(> .output:only-child, > * > .output:only-child) {
|
|
20
22
|
flex: 1;
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -40,7 +40,7 @@ export const ShareStaticNotebookModal: React.FC<{
|
|
|
40
40
|
e.preventDefault();
|
|
41
41
|
|
|
42
42
|
onClose();
|
|
43
|
-
const html = await exportAsHTML({
|
|
43
|
+
const { contents: html } = await exportAsHTML({
|
|
44
44
|
download: false,
|
|
45
45
|
includeCode: true,
|
|
46
46
|
files: VirtualFileTracker.INSTANCE.filenames(),
|
|
@@ -10,8 +10,7 @@ import {
|
|
|
10
10
|
import { toast } from "@/components/ui/use-toast";
|
|
11
11
|
import { contextCallbacks } from "@/core/codemirror/ai/state";
|
|
12
12
|
import type { EditRequests, FileInfo, RunRequests } from "@/core/network/types";
|
|
13
|
-
import {
|
|
14
|
-
import { type Base64String, base64ToDataURL } from "@/utils/json/base64";
|
|
13
|
+
import { fileDetailsToBlob } from "@/utils/blob";
|
|
15
14
|
import { Logger } from "@/utils/Logger";
|
|
16
15
|
import { type AIContextItem, AIContextProvider } from "../registry";
|
|
17
16
|
import { contextToXml } from "../utils";
|
|
@@ -219,33 +218,13 @@ export class FileContextProvider extends AIContextProvider<FileContextItem> {
|
|
|
219
218
|
|
|
220
219
|
const mimeType = fileDetails.mimeType || "text/plain";
|
|
221
220
|
|
|
222
|
-
//
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
mimeType
|
|
227
|
-
|
|
228
|
-
)
|
|
229
|
-
// Text files - create blob directly from contents
|
|
230
|
-
blob = new Blob([fileDetails.contents || ""], { type: mimeType });
|
|
231
|
-
} else {
|
|
232
|
-
// Binary files - use blob utility to decode base64
|
|
233
|
-
if (fileDetails.contents) {
|
|
234
|
-
try {
|
|
235
|
-
// Create data URL using utility and deserialize blob
|
|
236
|
-
const dataURL = base64ToDataURL(
|
|
237
|
-
fileDetails.contents as Base64String,
|
|
238
|
-
mimeType,
|
|
239
|
-
);
|
|
240
|
-
blob = deserializeBlob(dataURL);
|
|
241
|
-
} catch {
|
|
242
|
-
// Fallback to treating as text
|
|
243
|
-
blob = new Blob([fileDetails.contents], { type: mimeType });
|
|
244
|
-
}
|
|
245
|
-
} else {
|
|
246
|
-
blob = new Blob([""], { type: mimeType });
|
|
247
|
-
}
|
|
248
|
-
}
|
|
221
|
+
// The backend's `isBase64` flag authoritatively distinguishes binary
|
|
222
|
+
// (base64-encoded) from UTF-8 text contents.
|
|
223
|
+
const blob = fileDetailsToBlob({
|
|
224
|
+
contents: fileDetails.contents ?? "",
|
|
225
|
+
mimeType,
|
|
226
|
+
isBase64: fileDetails.isBase64 ?? false,
|
|
227
|
+
});
|
|
249
228
|
|
|
250
229
|
const file = new File([blob], name, { type: mimeType });
|
|
251
230
|
addAttachment(file);
|
|
@@ -1870,8 +1870,18 @@ describe("cell reducer", () => {
|
|
|
1870
1870
|
|
|
1871
1871
|
it("can clear logs", () => {
|
|
1872
1872
|
state.cellLogs = [
|
|
1873
|
-
{
|
|
1874
|
-
|
|
1873
|
+
{
|
|
1874
|
+
level: "stderr",
|
|
1875
|
+
message: "log1",
|
|
1876
|
+
timestamp: 0,
|
|
1877
|
+
source: { type: "cell", cellId: firstCellId },
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
level: "stderr",
|
|
1881
|
+
message: "log1",
|
|
1882
|
+
timestamp: 0,
|
|
1883
|
+
source: { type: "cell", cellId: firstCellId },
|
|
1884
|
+
},
|
|
1875
1885
|
];
|
|
1876
1886
|
actions.clearLogs();
|
|
1877
1887
|
expect(state.cellLogs).toEqual([]);
|
|
@@ -46,7 +46,7 @@ describe("getCellLogsForMessage", () => {
|
|
|
46
46
|
timestamp: 1_234_567_890,
|
|
47
47
|
level: "stdout",
|
|
48
48
|
message: "Hello, World!",
|
|
49
|
-
cellId: "cell-1",
|
|
49
|
+
source: { type: "cell", cellId: "cell-1" },
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ describe("getCellLogsForMessage", () => {
|
|
|
74
74
|
timestamp: 1_234_567_890,
|
|
75
75
|
level: "stderr",
|
|
76
76
|
message: "Error occurred",
|
|
77
|
-
cellId: "cell-2",
|
|
77
|
+
source: { type: "cell", cellId: "cell-2" },
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
|
|
@@ -102,7 +102,7 @@ describe("getCellLogsForMessage", () => {
|
|
|
102
102
|
timestamp: 1_234_567_890,
|
|
103
103
|
level: "stdout",
|
|
104
104
|
message: "Error: Something went wrong",
|
|
105
|
-
cellId: "cell-3",
|
|
105
|
+
source: { type: "cell", cellId: "cell-3" },
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
|
|
@@ -130,7 +130,7 @@ describe("getCellLogsForMessage", () => {
|
|
|
130
130
|
timestamp: 1_234_567_890,
|
|
131
131
|
level: "stderr",
|
|
132
132
|
message: "Critical Error: System failure",
|
|
133
|
-
cellId: "cell-4",
|
|
133
|
+
source: { type: "cell", cellId: "cell-4" },
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
|
|
@@ -157,7 +157,7 @@ describe("getCellLogsForMessage", () => {
|
|
|
157
157
|
expect(logs[0].level).toBe("stderr"); // marimo-error should be treated as stderr
|
|
158
158
|
expect(logs[0].message).toContain("Traceback (most recent call last):");
|
|
159
159
|
expect(logs[0].message).toContain('File "test.py", line 1');
|
|
160
|
-
expect(logs[0].
|
|
160
|
+
expect(logs[0].source).toEqual({ type: "cell", cellId: "cell-5" });
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
test("handles multiple console outputs with different MIME types", () => {
|
package/src/core/cells/cells.ts
CHANGED
|
@@ -28,7 +28,7 @@ import { findCollapseRange, mergeOutlines } from "../dom/outline";
|
|
|
28
28
|
import type { CellMessage } from "../kernel/messages";
|
|
29
29
|
import { isErrorMime } from "../mime";
|
|
30
30
|
import type { CellConfig } from "../network/types";
|
|
31
|
-
import { isRtcEnabled } from "../rtc/state";
|
|
31
|
+
import { canUseRtc, isRtcEnabled } from "../rtc/state";
|
|
32
32
|
import { createDeepEqualAtom, store } from "../state/jotai";
|
|
33
33
|
import { isWasm } from "../wasm/utils";
|
|
34
34
|
import { prepareCellForExecution, transitionCell } from "./cell";
|
|
@@ -927,6 +927,12 @@ const {
|
|
|
927
927
|
cellLogs: [...nextState.cellLogs, ...getCellLogsForMessage(message)],
|
|
928
928
|
};
|
|
929
929
|
},
|
|
930
|
+
addLogs: (state, action: { logs: CellLog[] }) => {
|
|
931
|
+
return {
|
|
932
|
+
...state,
|
|
933
|
+
cellLogs: [...state.cellLogs, ...action.logs],
|
|
934
|
+
};
|
|
935
|
+
},
|
|
930
936
|
setCellIds: (state, action: { cellIds: CellId[] }) => {
|
|
931
937
|
const isTheSame = isEqual(state.cellIds.inOrderIds, action.cellIds);
|
|
932
938
|
if (isTheSame) {
|
|
@@ -1037,9 +1043,9 @@ const {
|
|
|
1037
1043
|
};
|
|
1038
1044
|
}
|
|
1039
1045
|
|
|
1040
|
-
// Update codemirror if mounted
|
|
1041
|
-
//
|
|
1042
|
-
if (!isRtcEnabled()) {
|
|
1046
|
+
// Update codemirror if mounted. RTC-backed cells sync via Loro; others
|
|
1047
|
+
// (e.g. scratchpad) still need an explicit editor update.
|
|
1048
|
+
if (!isRtcEnabled() || !canUseRtc(cellId)) {
|
|
1043
1049
|
const cellHandle = nextState.cellHandles[cellId].current;
|
|
1044
1050
|
if (cellHandle?.editorViewOrNull) {
|
|
1045
1051
|
updateEditorCodeFromPython(cellHandle.editorViewOrNull, code);
|
|
@@ -1698,6 +1704,13 @@ export {
|
|
|
1698
1704
|
notebookAtom,
|
|
1699
1705
|
};
|
|
1700
1706
|
|
|
1707
|
+
/** Actions for dispatching outside of React. */
|
|
1708
|
+
const imperativeActions = createActions((action) => {
|
|
1709
|
+
store.set(notebookAtom, (state) => reducer(state, action));
|
|
1710
|
+
});
|
|
1711
|
+
|
|
1712
|
+
export const addLogs = imperativeActions.addLogs;
|
|
1713
|
+
|
|
1701
1714
|
/// ATOMS
|
|
1702
1715
|
|
|
1703
1716
|
export const cellIdsAtom = atom((get) => get(notebookAtom).cellIds);
|
package/src/core/cells/logs.ts
CHANGED
|
@@ -13,11 +13,21 @@ import { tracebackModalAtom } from "../errors/traceback-atom";
|
|
|
13
13
|
import React from "react";
|
|
14
14
|
import { ToastAction } from "@/components/ui/toast";
|
|
15
15
|
|
|
16
|
+
/** Logs come from a cell, or from a language server, which has no cell. */
|
|
17
|
+
export type LogSource =
|
|
18
|
+
| { type: "cell"; cellId: CellId }
|
|
19
|
+
| { type: "lsp"; name: string };
|
|
20
|
+
|
|
16
21
|
export interface CellLog {
|
|
22
|
+
/** Unix timestamp, in seconds. */
|
|
17
23
|
timestamp: number;
|
|
18
24
|
level: "stdout" | "stderr";
|
|
19
25
|
message: string;
|
|
20
|
-
|
|
26
|
+
source: LogSource;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function logSourceLabel(source: LogSource): string {
|
|
30
|
+
return source.type === "cell" ? source.cellId : `lsp:${source.name}`;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
33
|
let didAlreadyToastError = false;
|
|
@@ -48,7 +58,7 @@ export function getCellLogsForMessage(cell: CellMessage): CellLog[] {
|
|
|
48
58
|
timestamp: output.timestamp || Date.now(),
|
|
49
59
|
level: isError ? "stderr" : "stdout",
|
|
50
60
|
message: message,
|
|
51
|
-
cellId: cell.cell_id,
|
|
61
|
+
source: { type: "cell", cellId: cell.cell_id },
|
|
52
62
|
});
|
|
53
63
|
break;
|
|
54
64
|
}
|
|
@@ -71,7 +81,7 @@ export function getCellLogsForMessage(cell: CellMessage): CellLog[] {
|
|
|
71
81
|
cell.output.data.forEach((error) => {
|
|
72
82
|
CellLogLogger.log({
|
|
73
83
|
level: "stderr",
|
|
74
|
-
cellId: cell.cell_id,
|
|
84
|
+
source: { type: "cell", cellId: cell.cell_id },
|
|
75
85
|
timestamp: cell.timestamp ?? 0,
|
|
76
86
|
message: JSON.stringify(error),
|
|
77
87
|
});
|
|
@@ -150,7 +160,7 @@ const CellLogLogger = {
|
|
|
150
160
|
`%c[${status}]`,
|
|
151
161
|
`color:${color}; padding:2px 0; border-radius:2px; font-weight:bold`,
|
|
152
162
|
`[${formatLogTimestamp(payload.timestamp)}]`,
|
|
153
|
-
`(${payload.
|
|
163
|
+
`(${logSourceLabel(payload.source)}) ${payload.message}`,
|
|
154
164
|
);
|
|
155
165
|
},
|
|
156
166
|
};
|
|
@@ -50,6 +50,7 @@ import type { HotkeyProvider } from "../hotkeys/hotkeys";
|
|
|
50
50
|
import { requestEditCompletion } from "./ai/request";
|
|
51
51
|
import { cellBundle } from "./cells/extensions";
|
|
52
52
|
import type { CodemirrorCellActions } from "./cells/state";
|
|
53
|
+
import { codeLensBundle } from "./code-lens/extension";
|
|
53
54
|
import { jupyterHelpExtension } from "./compat/jupyter";
|
|
54
55
|
import { hintTooltip } from "./completion/hints";
|
|
55
56
|
import { completionKeymap } from "./completion/keymap";
|
|
@@ -198,6 +199,8 @@ export const setupCodeMirror = (opts: CodeMirrorSetupOpts): Extension[] => {
|
|
|
198
199
|
cellId,
|
|
199
200
|
displayConfig.reference_highlighting ?? true,
|
|
200
201
|
),
|
|
202
|
+
// Inline icons linking datasources/buckets/caches to their panels
|
|
203
|
+
codeLensBundle(cellId),
|
|
201
204
|
];
|
|
202
205
|
};
|
|
203
206
|
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
4
|
+
import {
|
|
5
|
+
fileExplorerPanelAtom,
|
|
6
|
+
sessionPanelAtom,
|
|
7
|
+
} from "@/components/editor/chrome/panels/panel-accordion-state";
|
|
8
|
+
import { openPanel } from "@/components/editor/chrome/state";
|
|
9
|
+
import { store } from "@/core/state/jotai";
|
|
10
|
+
import { openLensTarget } from "../actions";
|
|
11
|
+
|
|
12
|
+
vi.mock("@/components/editor/chrome/state", () => ({
|
|
13
|
+
openPanel: vi.fn(),
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
describe("openLensTarget", () => {
|
|
17
|
+
beforeEach(() => {
|
|
18
|
+
vi.clearAllMocks();
|
|
19
|
+
store.set(sessionPanelAtom, {
|
|
20
|
+
openSections: ["variables"],
|
|
21
|
+
hasUserInteracted: false,
|
|
22
|
+
});
|
|
23
|
+
store.set(fileExplorerPanelAtom, {
|
|
24
|
+
openSections: ["files"],
|
|
25
|
+
hasUserInteracted: true,
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it.each(["table", "connection"] as const)(
|
|
30
|
+
"opens the variables panel and expands datasources for a %s",
|
|
31
|
+
(kind) => {
|
|
32
|
+
openLensTarget(kind);
|
|
33
|
+
|
|
34
|
+
expect(openPanel).toHaveBeenCalledWith("variables");
|
|
35
|
+
expect(store.get(sessionPanelAtom).openSections).toEqual([
|
|
36
|
+
"variables",
|
|
37
|
+
"datasources",
|
|
38
|
+
]);
|
|
39
|
+
},
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
it("opens the files panel and expands remote storage for a bucket", () => {
|
|
43
|
+
openLensTarget("bucket");
|
|
44
|
+
|
|
45
|
+
expect(openPanel).toHaveBeenCalledWith("files");
|
|
46
|
+
expect(store.get(fileExplorerPanelAtom).openSections).toEqual([
|
|
47
|
+
"files",
|
|
48
|
+
"remote-storage",
|
|
49
|
+
]);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
it("opens the cache panel for a cache", () => {
|
|
53
|
+
openLensTarget("cache");
|
|
54
|
+
|
|
55
|
+
expect(openPanel).toHaveBeenCalledWith("cache");
|
|
56
|
+
expect(store.get(sessionPanelAtom).openSections).toEqual(["variables"]);
|
|
57
|
+
expect(store.get(fileExplorerPanelAtom).openSections).toEqual(["files"]);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("does not duplicate an already-open section or mark interaction", () => {
|
|
61
|
+
openLensTarget("table");
|
|
62
|
+
openLensTarget("table");
|
|
63
|
+
|
|
64
|
+
const state = store.get(sessionPanelAtom);
|
|
65
|
+
expect(state.openSections).toEqual(["variables", "datasources"]);
|
|
66
|
+
expect(state.hasUserInteracted).toBe(false);
|
|
67
|
+
});
|
|
68
|
+
});
|