@marimo-team/frontend 0.23.9-dev8 → 0.23.10-dev0
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-D_-Xs2i2.js → CellStatus-BLWR83i_.js} +1 -1
- package/dist/assets/{ConnectedDataExplorerComponent-CKOLvj_e.js → ConnectedDataExplorerComponent-W0UfNkj7.js} +1 -1
- package/dist/assets/JsonOutput-BJaeXQim.js +53 -0
- package/dist/assets/LazyAnyLanguageCodeMirror-BEvXb3VX.js +2 -0
- package/dist/assets/MarimoErrorOutput-B0h5OVW9.js +7 -0
- package/dist/assets/{RenderHTML-IGRZU9wj.js → RenderHTML-ChwPJgPd.js} +1 -1
- package/dist/assets/{RunButton-Cf9ByHXe.js → RunButton-NDsrcmxR.js} +1 -1
- package/dist/assets/{add-cell-with-ai-9EyttqGQ.js → add-cell-with-ai-FxJitVGs.js} +21 -21
- package/dist/assets/{add-connection-dialog-Bqsr9NiO.js → add-connection-dialog-EgkKupsZ.js} +1 -1
- package/dist/assets/{agent-panel-CSzzOKD1.js → agent-panel-BSt1fSQZ.js} +6 -6
- package/dist/assets/ai-model-dropdown-DxAk02Lc.js +5 -0
- package/dist/assets/{any-language-editor-Cs-Qsdlp.js → any-language-editor-CXeLf_N8.js} +1 -1
- package/dist/assets/apl-EAxnZS_5.js +1 -0
- package/dist/assets/{app-config-button-Cooknt8P.js → app-config-button-BcOcIm9W.js} +1 -1
- package/dist/assets/{arc-D0XsJSsf.js → arc-CWuN1tfc.js} +1 -1
- package/dist/assets/{architecture-7HQA4BMR-CyeFAHwy.js → architecture-7HQA4BMR-DJtUfdk-.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-1WJT-eC3.js → architectureDiagram-VXUJARFQ-Cgi4wo9P.js} +1 -1
- package/dist/assets/arrow-right-pRnMoIOW.js +1 -0
- package/dist/assets/asciiarmor-zxnaShQE.js +1 -0
- package/dist/assets/asn1-7i28Os5R.js +1 -0
- package/dist/assets/{blockDiagram-VD42YOAC-JexHZqqE.js → blockDiagram-VD42YOAC-CsHap8-F.js} +1 -1
- package/dist/assets/brainfuck-BZegPsXK.js +1 -0
- package/dist/assets/{c4Diagram-YG6GDRKO-Bq-DoY7t.js → c4Diagram-YG6GDRKO-CZuArudM.js} +1 -1
- package/dist/assets/{cache-panel-CZqzacQu.js → cache-panel-DYiVMv5x.js} +1 -1
- package/dist/assets/cell-editor-C5CDtKML.js +20 -0
- package/dist/assets/{cell-link-VlbhstGP.js → cell-link-B1pHtGWp.js} +1 -1
- package/dist/assets/{cells-WW455pbI.js → cells-BsaJrRWi.js} +60 -62
- package/dist/assets/channel-6XBTrC3Q.js +1 -0
- package/dist/assets/{chat-display-0SSKyMkt.js → chat-display-ccjE30z9.js} +1 -1
- package/dist/assets/chat-panel-CtvtP3kb.js +3 -0
- package/dist/assets/chat-ui-DV8CD_s1.js +4 -0
- package/dist/assets/{chunk-4BX2VUAB-Dhno12SW.js → chunk-4BX2VUAB-Ca6WzYTr.js} +1 -1
- package/dist/assets/chunk-55IACEB6-Cr4aqhf3.js +1 -0
- package/dist/assets/{chunk-5FQGJX7Z-BzXnQz5s.js → chunk-5FQGJX7Z-D9iBG0F7.js} +2 -2
- package/dist/assets/{chunk-ABZYJK2D-fbQovzbZ.js → chunk-ABZYJK2D-BG7Eb4WW.js} +3 -3
- package/dist/assets/{chunk-ATLVNIR6-C71UReOL.js → chunk-ATLVNIR6-CqLn9HI1.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-ChmO4xUA.js → chunk-B4BG7PRW-D4SyZNjn.js} +1 -1
- package/dist/assets/{chunk-CVBHYZKI-B6tT645I.js → chunk-CVBHYZKI-C-NWvPQL.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-DaLBJUsc.js → chunk-DI55MBZ5-t9uiMPiN.js} +1 -1
- package/dist/assets/{chunk-EXTU4WIE-B3Lv3QWb.js → chunk-EXTU4WIE-BmVk7Fyq.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-CDFiCFLp.js → chunk-FMBD7UC4-DlnzxSkO.js} +1 -1
- package/dist/assets/{chunk-HN2XXSSU-xW6J7MXn.js → chunk-HN2XXSSU-Bcaj5fRB.js} +1 -1
- package/dist/assets/{chunk-JA3XYJ7Z-jqUKn_dB.js → chunk-JA3XYJ7Z-B5b2QHOb.js} +1 -1
- package/dist/assets/{chunk-JZLCHNYA-xGZ72asD.js → chunk-JZLCHNYA-1_sVfAnw.js} +1 -1
- package/dist/assets/{chunk-MI3HLSF2-CXMqGP2w.js → chunk-MI3HLSF2-DqzZqBCh.js} +1 -1
- package/dist/assets/{chunk-N4CR4FBY-D8iMP1ch.js → chunk-N4CR4FBY-CFJoD-EQ.js} +2 -2
- package/dist/assets/{chunk-QN33PNHL-Ddzf5Xc1.js → chunk-QN33PNHL-BBE_bx9E.js} +1 -1
- package/dist/assets/{chunk-QXUST7PY-BUBd7EW9.js → chunk-QXUST7PY-Cu1nR-L2.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-37WEuSLJ.js → chunk-QZHKN3VN-BAnb9AKF.js} +1 -1
- package/dist/assets/{chunk-S3R3BYOJ-7UJSqSFb.js → chunk-S3R3BYOJ-Cl0iW04v.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-B7Xjx897.js → chunk-TZMSLE5B-f5ix6iSd.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-DlIMDu6i.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-CcIhhkQu.js +1 -0
- package/dist/assets/{clike-npv7NBwP.js → clike-bdcjLdZ4.js} +1 -1
- package/dist/assets/clojure-VUVi7fTV.js +1 -0
- package/dist/assets/cmake-DZJIDbjY.js +1 -0
- package/dist/assets/cobol-klCRwlLm.js +1 -0
- package/dist/assets/{code-block-37QAKDTI-BZVOQdyl.js → code-block-37QAKDTI-B19XL3UR.js} +1 -1
- package/dist/assets/coffeescript-C9foD9ub.js +1 -0
- package/dist/assets/{column-preview-CyyMserX.js → column-preview-BPismotx.js} +1 -1
- package/dist/assets/{command-palette-C0SuD26e.js → command-palette-Cdy8eCpi.js} +1 -1
- package/dist/assets/{common-Bei_EA1L.js → common-6n8M1qiK.js} +1 -1
- package/dist/assets/commonlisp-tHxoA35J.js +1 -0
- package/dist/assets/{components-B-vsJpY6.js → components-BzBUxUz0.js} +1 -1
- package/dist/assets/{components-cjKlTr3f.js → components-CK-WtvAJ.js} +1 -1
- package/dist/assets/config-ClMcu_sV.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-CgMkzBzk.js → cose-bilkent-S5V4N54A-CQqSLzd1.js} +1 -1
- package/dist/assets/crystal-CQ11GdrX.js +1 -0
- package/dist/assets/{css-OVjTGRm9.js → css-ACAb8MRM.js} +1 -1
- package/dist/assets/cypher-CJ0Uzw29.js +1 -0
- package/dist/assets/d-DP0SUIt1.js +1 -0
- package/dist/assets/{dagre-6UL2VRFP-rclmYCNC.js → dagre-6UL2VRFP-CVKXpDlr.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-CO7vLLX5.js → data-grid-overlay-editor-BdDYn72O.js} +1 -1
- package/dist/assets/{datasource-CrDfHWto.js → datasource-DjDpJnbt.js} +2 -2
- package/dist/assets/dependency-graph-panel-BNaXAcZr.js +5 -0
- package/dist/assets/{diagram-PSM6KHXK-Dr5x-oaJ.js → diagram-PSM6KHXK-BfzLNKp-.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-Cyino8Ci.js → diagram-QEK2KX5R-D_H77Ni5.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-DYLuU52t.js → diagram-S2PKOQOG-DJmVBeMk.js} +1 -1
- package/dist/assets/diff-CNs8MB38.js +1 -0
- package/dist/assets/{dist-K7UrYXpJ.js → dist-BtL81uwZ.js} +1 -1
- package/dist/assets/{dist-BYYXrYaA.js → dist-Bww7hlVc.js} +1 -1
- package/dist/assets/{dist-BTDGJ6yw.js → dist-CJIOLS6O.js} +1 -1
- package/dist/assets/dist-CPF3W2Y-.js +1 -0
- package/dist/assets/{dist-D6HkmGB2.js → dist-CUapWJe4.js} +1 -1
- package/dist/assets/{dist-DYXeLJlk.js → dist-CWeWT34c.js} +1 -1
- package/dist/assets/{dist-CSowihAs.js → dist-CuCuJBdf.js} +1 -1
- package/dist/assets/{dist-fQYV9WTb.js → dist-DH60fwgs.js} +1 -1
- package/dist/assets/dist-DZPpMvcR.js +1 -0
- package/dist/assets/dist-DkcQg5xD.js +1 -0
- package/dist/assets/dist-DkzFxGAX.js +1 -0
- package/dist/assets/{dist-CtCHoDJA.js → dist-DmBXXm0k.js} +1 -1
- package/dist/assets/{dist-DB3ebLb3.js → dist-W1iHBJeE.js} +1 -1
- package/dist/assets/{dist-CO_N76Iz.js → dist-cgiAP5sW.js} +1 -1
- package/dist/assets/{dist-CGC-UAcL.js → dist-vkd1160q.js} +1 -1
- package/dist/assets/{dockerfile-CrSl2ewL.js → dockerfile-BSMbgQQl.js} +1 -1
- package/dist/assets/{documentation-panel-BWa3CXAu.js → documentation-panel-5jUKZR-l.js} +1 -1
- package/dist/assets/{download-CKGdZtPf.js → download-DT8gf0PL.js} +1 -1
- package/dist/assets/dtd-BsD0uJw0.js +1 -0
- package/dist/assets/dylan-DbrGP1IP.js +1 -0
- package/dist/assets/ecl-C0rZlhHw.js +1 -0
- package/dist/assets/edit-page-B7KTvcRN.js +9 -0
- package/dist/assets/eiffel-2ZX-OpSJ.js +1 -0
- package/dist/assets/elm-CbOSKldD.js +1 -0
- package/dist/assets/{erDiagram-Q2GNP2WA-FdS4NKUh.js → erDiagram-Q2GNP2WA-ROTNwSJz.js} +1 -1
- package/dist/assets/erlang-BWiOgHIX.js +1 -0
- package/dist/assets/{error-panel-BW7R1Ohr.js → error-panel-DHcg_ER5.js} +1 -1
- package/dist/assets/{esm-CwPtnMeh.js → esm-DeiyaVAJ.js} +1 -1
- package/dist/assets/{factor-MWFhpc0o.js → factor-C-_cRSDM.js} +1 -1
- package/dist/assets/factor-CUwFIMOP.js +1 -0
- package/dist/assets/{file-explorer-panel-C5v0FnJv.js → file-explorer-panel-CbOdvGyZ.js} +3 -3
- package/dist/assets/{file-icons-B1JtCN2e.js → file-icons-BiMOJy0r.js} +1 -1
- package/dist/assets/{floating-outline-wGcVRNZu.js → floating-outline-BN9sAcQ0.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-DO4w8anv.js → flowDiagram-NV44I4VS--ee3IIVF.js} +1 -1
- package/dist/assets/{focus-COroLbWe.js → focus-q38vUCl-.js} +1 -1
- package/dist/assets/{form-Bstooyv1.js → form-BtBTvVVd.js} +2 -2
- package/dist/assets/forth-BEQA4QQL.js +1 -0
- package/dist/assets/fortran-DoPpOZgG.js +1 -0
- package/dist/assets/{ganttDiagram-JELNMOA3-Df-MBIrj.js → ganttDiagram-JELNMOA3-BGhmW2aP.js} +1 -1
- package/dist/assets/gas-BYovsvOE.js +1 -0
- package/dist/assets/gherkin-CFiRc1Pf.js +1 -0
- package/dist/assets/{gitGraph-G5XIXVHT-BAQx1hNd.js → gitGraph-G5XIXVHT-DuJ_0c_E.js} +1 -1
- package/dist/assets/{gitGraphDiagram-V2S2FVAM-fv2cmbLH.js → gitGraphDiagram-V2S2FVAM-DXFCZcxr.js} +1 -1
- package/dist/assets/{glide-data-editor-BAApVyo5.js → glide-data-editor-DqKNgyfg.js} +4 -4
- package/dist/assets/{globals-DggqXXLE.js → globals-7JnRMGd4.js} +1 -1
- package/dist/assets/groovy-DJNH7evt.js +1 -0
- package/dist/assets/haskell-duZvcePm.js +1 -0
- package/dist/assets/haxe-B2l95qvB.js +1 -0
- package/dist/assets/{home-page-B8SPyTFn.js → home-page-lXjPDNM0.js} +2 -2
- package/dist/assets/{hooks-CktFWxvJ.js → hooks-DP41kAWj.js} +1 -1
- package/dist/assets/{html-to-image-DB5sfuws.js → html-to-image-BWL3Ct4n.js} +1 -1
- package/dist/assets/idl-CZ_xwU8I.js +1 -0
- package/dist/assets/index-BIw7BKLH.css +2 -0
- package/dist/assets/index-awsLWRjZ.js +38 -0
- package/dist/assets/{info-VBDWY6EO-Cw9vVNQD.js → info-VBDWY6EO-DPQEAe2T.js} +1 -1
- package/dist/assets/infoDiagram-HS3SLOUP-CaaUieFa.js +2 -0
- package/dist/assets/javascript-CF5KGSAj.js +1 -0
- package/dist/assets/{journeyDiagram-XKPGCS4Q-C_cdVaga.js → journeyDiagram-XKPGCS4Q-9D2JCyrN.js} +1 -1
- package/dist/assets/julia-BQlq5iZn.js +1 -0
- package/dist/assets/{kanban-definition-3W4ZIXB7-CLpEm5s3.js → kanban-definition-3W4ZIXB7-DxV26rf-.js} +1 -1
- package/dist/assets/katex-CzQ1KdW3.js +1 -0
- package/dist/assets/{kiosk-mode-tHwBN3rS.js → kiosk-mode-BqvqWsFx.js} +1 -1
- package/dist/assets/layout-DXDnDtNw.js +9 -0
- package/dist/assets/{line-ortW3H6T.js → line-x4bpd_8D.js} +1 -1
- package/dist/assets/{linear-CIVE7jyt.js → linear-CW_ww8od.js} +1 -1
- package/dist/assets/livescript-sRMenfqS.js +1 -0
- package/dist/assets/{logs-panel-DZSPhsIs.js → logs-panel-BNoBKY1q.js} +1 -1
- package/dist/assets/{loro_wasm_bg-Ci19hd4D.js → loro_wasm_bg-CtNTubKN.js} +1 -1
- package/dist/assets/lua-a56ITumN.js +1 -0
- package/dist/assets/{markdown-renderer-BnUV17Tg.js → markdown-renderer-CU5Lbyax.js} +3 -3
- package/dist/assets/mathematica-B3m4jXeH.js +1 -0
- package/dist/assets/mbox-BtL7aO2I.js +1 -0
- package/dist/assets/mermaid-4DMBBIKO-CekzuCTz.js +1 -0
- package/dist/assets/{mermaid-D619LWHW.js → mermaid-Bes0ynI8.js} +3 -3
- package/dist/assets/{mermaid-parser.core-CMygPhv_.js → mermaid-parser.core-aYU6qXxk.js} +2 -2
- package/dist/assets/{mhchem-DSE1tfes.js → mhchem-8N2oE3tb.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-mbWtJhR6.js → mindmap-definition-VGOIOE7T-DTJAbAQ8.js} +1 -1
- package/dist/assets/mirc-S27kuZ31.js +1 -0
- package/dist/assets/mllike-B3kx3KeF.js +1 -0
- package/dist/assets/modelica-DgbW4dSi.js +1 -0
- package/dist/assets/mscgen-BIa_4d-0.js +1 -0
- package/dist/assets/mumps-4fnELyHs.js +1 -0
- package/dist/assets/{name-cell-input-BZQLfDw0.js → name-cell-input-BNc3X9qF.js} +1 -1
- package/dist/assets/{nsis-CDylpiaC.js → nsis-BGZ5EB-j.js} +1 -1
- package/dist/assets/nsis-BfGyMssE.js +1 -0
- package/dist/assets/ntriples-DeY1n_tC.js +1 -0
- package/dist/assets/{number-overlay-editor-CHaQ6o4_.js → number-overlay-editor-DL4IwqDH.js} +1 -1
- package/dist/assets/octave-7Qn21jzx.js +1 -0
- package/dist/assets/{ordinal-RiUP-mHf.js → ordinal-_nQ2r1qQ.js} +1 -1
- package/dist/assets/{outline-panel-C4q1Ql1i.js → outline-panel-De2gw3Ro.js} +1 -1
- package/dist/assets/oz-CiPFl3Ni.js +1 -0
- package/dist/assets/{packages-panel-D9p8Tiee.js → packages-panel-C8maQt0Q.js} +1 -1
- package/dist/assets/{packet-DYOGHKS2-BXa5LrXK.js → packet-DYOGHKS2-CxgeJpvT.js} +1 -1
- package/dist/assets/pair-with-agent-modal-1tufe5MP.js +4 -0
- package/dist/assets/panels-BKv_j2lC.js +1 -0
- package/dist/assets/pascal-BH9yQLzw.js +1 -0
- package/dist/assets/perl-DfMCx2i2.js +1 -0
- package/dist/assets/{pie-VRWISCQL-BpZiOBLl.js → pie-VRWISCQL-GZ13ReaG.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-ouQhtndl.js → pieDiagram-ADFJNKIX-_3l2XiEo.js} +1 -1
- package/dist/assets/pig-D9CNebQN.js +1 -0
- package/dist/assets/powershell-Dss0bU9F.js +1 -0
- package/dist/assets/{process-output-czqgvDia.js → process-output-B2oklQi4.js} +1 -1
- package/dist/assets/properties-CHADYQUL.js +1 -0
- package/dist/assets/protobuf-DFN-V4SD.js +1 -0
- package/dist/assets/{pug-BXVTM5jr.js → pug-CYW0agOo.js} +1 -1
- package/dist/assets/pug-DOI9FnEk.js +1 -0
- package/dist/assets/puppet-BV0HAkDS.js +1 -0
- package/dist/assets/python-C83Db0-4.js +1 -0
- package/dist/assets/q-D84S4YaJ.js +1 -0
- package/dist/assets/{quadrantDiagram-AYHSOK5B-NRkmQ1sP.js → quadrantDiagram-AYHSOK5B-CX3AMAvR.js} +1 -1
- package/dist/assets/r-jmqrRzXv.js +1 -0
- package/dist/assets/{radar-ZZBFDIW7-CB-lQl_C.js → radar-ZZBFDIW7-CbAjwmA0.js} +1 -1
- package/dist/assets/{radio-group-BHzskOrm.js → radio-group-DlVSuZ_1.js} +1 -1
- package/dist/assets/{react-vega-CFabbyYN.js → react-vega-COx3Ibyn.js} +1 -1
- package/dist/assets/{react-vega-Bzl9LfSR.js → react-vega-CXIQBUis.js} +1 -1
- package/dist/assets/{readonly-python-code-u31O1EoO.js → readonly-python-code-D3_kHsDx.js} +1 -1
- package/dist/assets/renderShortcut-CcFk3m01.js +1 -0
- package/dist/assets/{requirementDiagram-UZGBJVZJ-C0LTiV9S.js → requirementDiagram-UZGBJVZJ-ORHKBnkg.js} +1 -1
- package/dist/assets/reveal-component-C50CTy8h.js +1069 -0
- package/dist/assets/rpm-DUjG0xRk.js +1 -0
- package/dist/assets/ruby-SP4FIzir.js +1 -0
- package/dist/assets/run-page-DeOIw0On.js +1 -0
- package/dist/assets/{sankeyDiagram-TZEHDZUN-CR2AycvD.js → sankeyDiagram-TZEHDZUN-Dvb8kmWa.js} +1 -1
- package/dist/assets/sas-BxaPz2EX.js +1 -0
- package/dist/assets/scheme-HBseLApj.js +1 -0
- package/dist/assets/{scratchpad-panel-B8GVlZFc.js → scratchpad-panel-DWbD_QB3.js} +1 -1
- package/dist/assets/{secrets-panel-B3E_Dkep.js → secrets-panel-BBvdIhtU.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-CtF8-7iq.js → sequenceDiagram-WL72ISMW-DQycpQtE.js} +1 -1
- package/dist/assets/{session-panel-CeJHBx2m.js → session-panel-BHgL-7KC.js} +1 -1
- package/dist/assets/shell-w8ATY_lQ.js +1 -0
- package/dist/assets/sieve-Dyq0LGDO.js +1 -0
- package/dist/assets/smalltalk-D7mAtumc.js +1 -0
- package/dist/assets/{snippets-panel-BxEqEAeR.js → snippets-panel-FY_Ezibl.js} +1 -1
- package/dist/assets/sparql-DAeEYE_u.js +1 -0
- package/dist/assets/{src-CyeQdfB6.js → src-CvyFXpBy.js} +1 -1
- package/dist/assets/{state-D9_BpRuU.js → state-BTTshiKq.js} +3 -3
- package/dist/assets/{state-NqzCpbZn.js → state-D-2KaAHK.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-R47bQmIs.js → stateDiagram-FKZM4ZOC-D78DIR_F.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-DX9rpmwh.js +1 -0
- package/dist/assets/{step-Ca7ZnceH.js → step-D7xg1Moj.js} +1 -1
- package/dist/assets/stylus-Cw3Ugan7.js +1 -0
- package/dist/assets/swift-CPsNOBsX.js +1 -0
- package/dist/assets/{switch-C8Pev-_F.js → switch-BiU_sAcn.js} +1 -1
- package/dist/assets/tcl-BfWyQdZa.js +1 -0
- package/dist/assets/{terminal-HJ3qH9Tb.js → terminal-BYGihNNp.js} +1 -1
- package/dist/assets/{textarea-By_oENlk.js → textarea-DwltG8V6.js} +1 -1
- package/dist/assets/textile-BKgaSzSN.js +1 -0
- package/dist/assets/{time-Dfh8bLaf.js → time-DLdI7jB3.js} +1 -1
- package/dist/assets/{timeline-definition-IT6M3QCI-qZnC-_po.js → timeline-definition-IT6M3QCI-DIywx3xf.js} +1 -1
- package/dist/assets/toml-BSOdv04W.js +1 -0
- package/dist/assets/{tracing-panel-DHbxfRgn.js → tracing-panel-bN0O3PuU.js} +2 -2
- package/dist/assets/{tracing-D3RHMNJS.js → tracing-zLH-qWb2.js} +1 -1
- package/dist/assets/{treemap-GDKQZRPO-C2f4_yBW.js → treemap-GDKQZRPO-Dz_qZhuG.js} +1 -1
- package/dist/assets/troff-C0hD9kig.js +1 -0
- package/dist/assets/ttcn-DEqPxhoh.js +1 -0
- package/dist/assets/ttcn-cfg-B-7jSlUe.js +1 -0
- package/dist/assets/turtle-BTtgFsu8.js +1 -0
- package/dist/assets/{useBoolean-DRITaoFR.js → useBoolean-Bp18o6XG.js} +1 -1
- package/dist/assets/{useCellActionButton-JqNWxCAc.js → useCellActionButton-h5LjhtEx.js} +1 -1
- package/dist/assets/{useDeleteCell-DhTEQpE6.js → useDeleteCell-BBPIhnQj.js} +1 -1
- package/dist/assets/useDependencyPanelTab-BSkmlMqr.js +1 -0
- package/dist/assets/{useHotkey-CKk0vHze.js → useHotkey-TKvjHf1m.js} +1 -1
- package/dist/assets/useNotebookActions-B32eCmtG.js +1 -0
- package/dist/assets/{useRunCells-DeA7yeHJ.js → useRunCells-BiCBGyeW.js} +1 -1
- package/dist/assets/{useSplitCell-DWx-q9BJ.js → useSplitCell-uogO-7ac.js} +1 -1
- package/dist/assets/useTheme-CI2eq4XN.js +1 -0
- package/dist/assets/utils-CvI-39U6.js +1 -0
- package/dist/assets/vb-DfRPk_ji.js +1 -0
- package/dist/assets/vbscript-C8D4uv5N.js +1 -0
- package/dist/assets/{vega-component-CBW7fUCI.js → vega-component-COOhhZ3h.js} +1 -1
- package/dist/assets/velocity-DxKr2FFC.js +1 -0
- package/dist/assets/verilog-CxVhamiH.js +1 -0
- package/dist/assets/vhdl-B-IpBNOA.js +1 -0
- package/dist/assets/webidl-CBjKmBwO.js +1 -0
- package/dist/assets/xquery-ABGCbLv0.js +1 -0
- package/dist/assets/{xychartDiagram-PRI3JC2R-Ul_9KMcM.js → xychartDiagram-PRI3JC2R-CjS1dL8k.js} +1 -1
- package/dist/assets/yacas-Ckyxh7oh.js +1 -0
- package/dist/assets/z80-Dr5sQweg.js +1 -0
- package/dist/index.html +32 -32
- package/package.json +1 -1
- package/src/components/ai/__tests__/ai-utils.test.ts +43 -38
- package/src/components/ai/ai-model-dropdown.tsx +2 -2
- package/src/components/app-config/ai-config.tsx +147 -16
- package/src/components/app-config/user-config-form.tsx +37 -1
- package/src/components/chat/__tests__/chat-utils.test.ts +269 -0
- package/src/components/chat/chat-panel.tsx +38 -5
- package/src/components/chat/chat-utils.ts +14 -58
- package/src/components/data-table/TableBottomBar.tsx +5 -8
- package/src/components/data-table/__tests__/column-explorer.test.tsx +128 -0
- package/src/components/data-table/__tests__/header-items.test.tsx +220 -10
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +95 -29
- package/src/components/data-table/column-header.tsx +17 -12
- package/src/components/data-table/data-table.tsx +4 -0
- package/src/components/data-table/export-actions.tsx +19 -12
- package/src/components/data-table/header-items.tsx +40 -16
- package/src/components/data-table/hooks/use-column-visibility.ts +14 -0
- package/src/components/data-table/schemas.ts +2 -2
- package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +16 -6
- package/src/components/databases/display.tsx +2 -0
- package/src/components/datasources/__tests__/utils.test.ts +82 -0
- package/src/components/datasources/utils.ts +16 -15
- package/src/components/editor/Disconnected.tsx +1 -60
- package/src/components/editor/__tests__/viewer-banner.test.tsx +89 -0
- package/src/components/editor/actions/pair-with-agent-modal.tsx +1 -0
- package/src/components/editor/actions/useCellActionButton.tsx +3 -3
- package/src/components/editor/actions/useNotebookActions.tsx +5 -2
- package/src/components/editor/cell/code/cell-editor.tsx +25 -5
- package/src/components/editor/chrome/types.ts +13 -6
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +6 -4
- package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +10 -1
- package/src/components/editor/chrome/wrapper/sidebar.tsx +7 -5
- package/src/components/editor/errors/auto-fix.tsx +3 -3
- package/src/components/editor/header/__tests__/status.test.tsx +0 -15
- package/src/components/editor/header/app-header.tsx +1 -4
- package/src/components/editor/header/status.tsx +4 -13
- package/src/components/editor/navigation/__tests__/navigation.test.ts +15 -0
- package/src/components/editor/navigation/navigation.ts +5 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +103 -25
- package/src/components/editor/output/MarimoTracebackOutput.tsx +28 -39
- package/src/components/editor/renderers/cell-array.tsx +27 -24
- package/src/components/editor/renderers/slides-layout/__tests__/compute-slide-cells.test.ts +30 -17
- package/src/components/editor/renderers/slides-layout/compute-slide-cells.ts +17 -8
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +10 -12
- package/src/components/editor/viewer-banner.tsx +82 -0
- package/src/components/slides/minimap.tsx +45 -9
- package/src/components/slides/reveal-component.tsx +82 -37
- package/src/components/slides/slide-cell-view.tsx +12 -1
- package/src/components/slides/slide-form.tsx +11 -3
- package/src/components/static-html/static-banner.tsx +28 -22
- package/src/core/ai/__tests__/model-registry.test.ts +72 -60
- package/src/core/ai/model-registry.ts +33 -28
- package/src/core/cells/__tests__/actions.test.ts +48 -0
- package/src/core/cells/actions.ts +5 -6
- package/src/core/codemirror/__tests__/setup.test.ts +29 -0
- package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
- package/src/core/codemirror/cm.ts +50 -3
- package/src/core/codemirror/completion/hints.ts +4 -1
- package/src/core/codemirror/format.ts +1 -0
- package/src/core/codemirror/keymaps/vim.ts +63 -0
- package/src/core/codemirror/language/languages/sql/sql.ts +1 -0
- package/src/core/codemirror/language/languages/sql/utils.ts +2 -0
- package/src/core/config/__tests__/config-schema.test.ts +4 -0
- package/src/core/config/config-schema.ts +4 -0
- package/src/core/config/config.ts +16 -0
- package/src/core/edit-app.tsx +3 -0
- package/src/core/islands/bootstrap.ts +2 -0
- package/src/core/kernel/__tests__/handlers.test.ts +5 -0
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +0 -13
- package/src/core/websocket/types.ts +0 -6
- package/src/core/websocket/useMarimoKernelConnection.tsx +3 -12
- package/src/css/app/Cell.css +0 -1
- package/src/plugins/impl/DataTablePlugin.tsx +48 -22
- package/src/plugins/impl/chat/ChatPlugin.tsx +7 -1
- package/src/plugins/impl/chat/__tests__/chat-ui.test.ts +278 -0
- package/src/plugins/impl/chat/chat-ui.tsx +106 -59
- package/src/plugins/impl/chat/types.ts +5 -0
- package/src/utils/__tests__/json-parser.test.ts +1 -69
- package/src/utils/json/json-parser.ts +0 -30
- package/dist/assets/JsonOutput-DfDkDg0V.js +0 -53
- package/dist/assets/LazyAnyLanguageCodeMirror-DFv3yT20.js +0 -2
- package/dist/assets/MarimoErrorOutput-BXSRPZqF.js +0 -7
- package/dist/assets/ai-model-dropdown-D0tfwqft.js +0 -5
- package/dist/assets/apl-CZC-w0DM.js +0 -1
- package/dist/assets/asciiarmor-Dxkbb4uS.js +0 -1
- package/dist/assets/asn1-CrA2MPaL.js +0 -1
- package/dist/assets/brainfuck-B5oLVauS.js +0 -1
- package/dist/assets/cell-editor-hBNMClE6.js +0 -20
- package/dist/assets/channel-V1GV6hO1.js +0 -1
- package/dist/assets/chat-panel-BC-bG7Ms.js +0 -3
- package/dist/assets/chat-ui-B0pCMupQ.js +0 -4
- package/dist/assets/chunk-55IACEB6-BRJvcREw.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-C8jlAFC-.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-DYST6eBL.js +0 -1
- package/dist/assets/clojure-D60XavrX.js +0 -1
- package/dist/assets/cmake-CrWsGXcU.js +0 -1
- package/dist/assets/cobol-CZosvDFE.js +0 -1
- package/dist/assets/coffeescript-DQGIz3iX.js +0 -1
- package/dist/assets/commonlisp-DrWSVXOx.js +0 -1
- package/dist/assets/config-C1gn3-tv.js +0 -1
- package/dist/assets/crystal-CMu2RgP7.js +0 -1
- package/dist/assets/cypher-C4I5nX3I.js +0 -1
- package/dist/assets/d-B_OAkSA3.js +0 -1
- package/dist/assets/dependency-graph-panel-skSyvOmU.js +0 -5
- package/dist/assets/diff-f-qA4U7T.js +0 -1
- package/dist/assets/dist-B2-3vH3I.js +0 -1
- package/dist/assets/dist-B3r3gs4u.js +0 -1
- package/dist/assets/dist-Dx65VI0Y.js +0 -1
- package/dist/assets/dist-FSgOAwAH.js +0 -1
- package/dist/assets/dtd-DWRTME-w.js +0 -1
- package/dist/assets/dylan-DnEm_ULG.js +0 -1
- package/dist/assets/ecl-Dbf1A5nG.js +0 -1
- package/dist/assets/edit-page-cW6c6KHJ.js +0 -9
- package/dist/assets/eiffel-Xj76_r0X.js +0 -1
- package/dist/assets/elm-nUwO24NA.js +0 -1
- package/dist/assets/erlang-CFVqMiR0.js +0 -1
- package/dist/assets/factor-mJPTAioV.js +0 -1
- package/dist/assets/forth-DBQr6L61.js +0 -1
- package/dist/assets/fortran-BkjqlXUL.js +0 -1
- package/dist/assets/gas-BNFtcdO9.js +0 -1
- package/dist/assets/gherkin-BrOMWqkN.js +0 -1
- package/dist/assets/groovy-DuCnwFRS.js +0 -1
- package/dist/assets/haskell-BD39942g.js +0 -1
- package/dist/assets/haxe-CXsKoap0.js +0 -1
- package/dist/assets/idl-D7hb6rI1.js +0 -1
- package/dist/assets/index-Cn0RBoFD.css +0 -2
- package/dist/assets/index-Df-5tfH1.js +0 -38
- package/dist/assets/infoDiagram-HS3SLOUP-CpBkxLyN.js +0 -2
- package/dist/assets/javascript-1S1_-Xac.js +0 -1
- package/dist/assets/julia-CbOUdU45.js +0 -1
- package/dist/assets/katex-BuYoGw8D.js +0 -1
- package/dist/assets/layout-CCKaB1K9.js +0 -9
- package/dist/assets/livescript-4YbxVKEy.js +0 -1
- package/dist/assets/lua-Dp2B-Joo.js +0 -1
- package/dist/assets/mathematica-BaSnKpgq.js +0 -1
- package/dist/assets/mbox-JZJfXD_G.js +0 -1
- package/dist/assets/mermaid-4DMBBIKO-BV51xhvi.js +0 -1
- package/dist/assets/mirc-BZe50pjl.js +0 -1
- package/dist/assets/mllike-Bgkhf51-.js +0 -1
- package/dist/assets/modelica-BzrnHsaM.js +0 -1
- package/dist/assets/mscgen-C7fmiScS.js +0 -1
- package/dist/assets/mumps-DYao3Wbn.js +0 -1
- package/dist/assets/nsis-BV9URIq2.js +0 -1
- package/dist/assets/ntriples-CCTjcLNo.js +0 -1
- package/dist/assets/octave-CalSSDIP.js +0 -1
- package/dist/assets/oz-BwBvNNj4.js +0 -1
- package/dist/assets/panels-CFhryJbE.js +0 -1
- package/dist/assets/pascal-VtYjd8tX.js +0 -1
- package/dist/assets/perl-CuiQHSod.js +0 -1
- package/dist/assets/pig-CIHZG4Z9.js +0 -1
- package/dist/assets/powershell-CI2Wos2z.js +0 -1
- package/dist/assets/properties-CBOFbPgT.js +0 -1
- package/dist/assets/protobuf-CdcXLd43.js +0 -1
- package/dist/assets/pug-DJHP9Svh.js +0 -1
- package/dist/assets/puppet-B2nxuZc5.js +0 -1
- package/dist/assets/python-VpIaVd-6.js +0 -1
- package/dist/assets/q-CamvlcK6.js +0 -1
- package/dist/assets/r-CgsrYWFj.js +0 -1
- package/dist/assets/renderShortcut-U2SzoZCS.js +0 -1
- package/dist/assets/reveal-component-Ds9C9Z1D.js +0 -1069
- package/dist/assets/rpm-DBux1aMG.js +0 -1
- package/dist/assets/ruby-BWHIAyVi.js +0 -1
- package/dist/assets/run-page-BC3D2rvr.js +0 -1
- package/dist/assets/sas-DJpj3tMb.js +0 -1
- package/dist/assets/scheme-DF-J69qP.js +0 -1
- package/dist/assets/shell-m-RSMeeH.js +0 -1
- package/dist/assets/sieve-CtzQvaig.js +0 -1
- package/dist/assets/smalltalk-ClFvBgAI.js +0 -1
- package/dist/assets/sparql-icVR0QFW.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-sSKQU37N.js +0 -1
- package/dist/assets/stylus-TkCXytG7.js +0 -1
- package/dist/assets/swift-CBYBwE0m.js +0 -1
- package/dist/assets/tcl-DvyBVTw2.js +0 -1
- package/dist/assets/textile-DA3WvzuI.js +0 -1
- package/dist/assets/toml-BJa3ckRR.js +0 -1
- package/dist/assets/troff-CqZSdBAp.js +0 -1
- package/dist/assets/ttcn-BouEBguh.js +0 -1
- package/dist/assets/ttcn-cfg-C1whpGsE.js +0 -1
- package/dist/assets/turtle-DQ8l-awL.js +0 -1
- package/dist/assets/useDependencyPanelTab-BeLaV_28.js +0 -1
- package/dist/assets/useNotebookActions-C6L8GqPD.js +0 -4
- package/dist/assets/useTheme-TeWD29Uz.js +0 -1
- package/dist/assets/utils-Wvjk_Y4h.js +0 -1
- package/dist/assets/vb-B7wOdn6U.js +0 -1
- package/dist/assets/vbscript-DvH455rJ.js +0 -1
- package/dist/assets/velocity-B6C6O90i.js +0 -1
- package/dist/assets/verilog-JbcxpuFW.js +0 -1
- package/dist/assets/vhdl-SEFTp5Re.js +0 -1
- package/dist/assets/webidl-ChYZayPm.js +0 -1
- package/dist/assets/xquery-DWwllqyg.js +0 -1
- package/dist/assets/yacas-DQRdrpIp.js +0 -1
- package/dist/assets/z80-CGBxwDW7.js +0 -1
- /package/dist/assets/{ImageComparisonComponent-B5A-4CCj.js → ImageComparisonComponent-BIetTBDq.js} +0 -0
- /package/dist/assets/{Inputs-BG_nVZPt.js → Inputs-C6ftxLAJ.js} +0 -0
- /package/dist/assets/{Plot-CoEOwQq-.js → Plot-Ba3WGWNu.js} +0 -0
- /package/dist/assets/{apl-4hxG7HNk.js → apl-Byte72fT.js} +0 -0
- /package/dist/assets/{array-D5VxClQs.js → array-CC7vZNGO.js} +0 -0
- /package/dist/assets/{asciiarmor-Dv_174xi.js → asciiarmor-BU-VnG1Y.js} +0 -0
- /package/dist/assets/{asn1-iiMvplI8.js → asn1-hTvH3S4T.js} +0 -0
- /package/dist/assets/{asterisk-CC3QRUnf.js → asterisk-DIMri3P4.js} +0 -0
- /package/dist/assets/{brainfuck-C1zBqC_V.js → brainfuck-C-q1Rv8J.js} +0 -0
- /package/dist/assets/{chunk-4F5CHEZ2-DUo5vZ2r.js → chunk-4F5CHEZ2-eEwFz7fp.js} +0 -0
- /package/dist/assets/{chunk-B2363JML-BBEseLU0.js → chunk-B2363JML-COExSe0d.js} +0 -0
- /package/dist/assets/{chunk-DR5Q36YT-C0WIZcJM.js → chunk-DR5Q36YT-OB6tC_dd.js} +0 -0
- /package/dist/assets/{chunk-FRFDVMJY-CXpDqtzE.js → chunk-FRFDVMJY-CO3-6rb4.js} +0 -0
- /package/dist/assets/{chunk-PL6DKKU2-CdWr1t_8.js → chunk-PL6DKKU2-B9mDp5iV.js} +0 -0
- /package/dist/assets/{chunk-SJTYNZTY-SWJVmNtW.js → chunk-SJTYNZTY-Dh_h90Yu.js} +0 -0
- /package/dist/assets/{chunk-TQ3KTPDO-NHSLONf7.js → chunk-TQ3KTPDO-CFybjK0M.js} +0 -0
- /package/dist/assets/{chunk-UMXZTB3W-Ct179y25.js → chunk-UMXZTB3W-C3w83KpJ.js} +0 -0
- /package/dist/assets/{clear-button-CIwzVocs.js → clear-button-Cfe8K4j_.js} +0 -0
- /package/dist/assets/{click-outside-container-Bx6OOW4y.js → click-outside-container-BNVqwewc.js} +0 -0
- /package/dist/assets/{clike-DgscWMor.js → clike-BE-9Ct_H.js} +0 -0
- /package/dist/assets/{clojure-BHbbYwIQ.js → clojure-Co-TLeNo.js} +0 -0
- /package/dist/assets/{cmake-DLR6lpqL.js → cmake-B-Nm_Opd.js} +0 -0
- /package/dist/assets/{cobol-BCxTxy3w.js → cobol-BGdihAZT.js} +0 -0
- /package/dist/assets/{coffeescript-CpA2P5vm.js → coffeescript-BUZXkMUO.js} +0 -0
- /package/dist/assets/{colors-CWfEs9Oi.js → colors-BG8Z91CW.js} +0 -0
- /package/dist/assets/{common-keywords-0dB1lgek.js → common-keywords-15xBKau4.js} +0 -0
- /package/dist/assets/{commonlisp-IOtLAQXJ.js → commonlisp-CFkPbxvX.js} +0 -0
- /package/dist/assets/{crystal-D5D6_kGA.js → crystal-CqfqDl34.js} +0 -0
- /package/dist/assets/{css-DOb8-BDy.js → css-DPEtZWJi.js} +0 -0
- /package/dist/assets/{cypher-DLF7i4IG.js → cypher-B0t8FJvU.js} +0 -0
- /package/dist/assets/{cytoscape.esm-CuwfIk-V.js → cytoscape.esm-DT8iy6p1.js} +0 -0
- /package/dist/assets/{d-ByNdxjrk.js → d-DRa_XRSB.js} +0 -0
- /package/dist/assets/{diff-DgsriQcn.js → diff-GLneonpD.js} +0 -0
- /package/dist/assets/{dist-B6ehDvA-.js → dist-A7swzSTR.js} +0 -0
- /package/dist/assets/{dist-Cofj3PRM.js → dist-BF6UNR6V.js} +0 -0
- /package/dist/assets/{dist-Bc225YxE.js → dist-BQWswd1A.js} +0 -0
- /package/dist/assets/{dist-DviQ3W6h.js → dist-BQeNY9Zl.js} +0 -0
- /package/dist/assets/{dist-BA8xhrl2.js → dist-BXRWfNwi.js} +0 -0
- /package/dist/assets/{dist-fhXsH3fb.js → dist-BlOtCkpT.js} +0 -0
- /package/dist/assets/{dist-D8MaDlGc.js → dist-C78V1LRz.js} +0 -0
- /package/dist/assets/{dist-CcoNWYux.js → dist-CKT_lJKW.js} +0 -0
- /package/dist/assets/{dist-CNghxh0Q.js → dist-CNyMUs19.js} +0 -0
- /package/dist/assets/{dist-qBfIhsAs.js → dist-CXBpwk_w.js} +0 -0
- /package/dist/assets/{dist-D86l0QaP.js → dist-CciFN1z_.js} +0 -0
- /package/dist/assets/{dist-cS6yvaqe.js → dist-CocyeH0q.js} +0 -0
- /package/dist/assets/{dist-C_k5-SEy.js → dist-CpcTHxTt.js} +0 -0
- /package/dist/assets/{dist-WcxjmQmQ.js → dist-CsvFAFh9.js} +0 -0
- /package/dist/assets/{dist-oSdg9XA7.js → dist-D70Tz1Kr.js} +0 -0
- /package/dist/assets/{dist-CjBmWBr2.js → dist-DUHHizRG.js} +0 -0
- /package/dist/assets/{dist-CiOPfbN_.js → dist-DqVEVg0c.js} +0 -0
- /package/dist/assets/{dtd-BY21shY3.js → dtd-uVrZNVF0.js} +0 -0
- /package/dist/assets/{duckdb-keywords-DH8yhwVC.js → duckdb-keywords-CYQ5DEZJ.js} +0 -0
- /package/dist/assets/{dylan-D_hF5J0y.js → dylan-DkNeA4FZ.js} +0 -0
- /package/dist/assets/{ebnf-D73UE5Hl.js → ebnf-XMH6KY7E.js} +0 -0
- /package/dist/assets/{ecl-C1ORA0cg.js → ecl-CldUgvc9.js} +0 -0
- /package/dist/assets/{eiffel-1fe3g8c_.js → eiffel-CoMDRbRL.js} +0 -0
- /package/dist/assets/{elm-hjWurFzL.js → elm-Cb5XC6ev.js} +0 -0
- /package/dist/assets/{erlang-Bp4wxA5O.js → erlang-8H3fTZ3L.js} +0 -0
- /package/dist/assets/{esm-DM72gy9Q.js → esm-1wf4HygE.js} +0 -0
- /package/dist/assets/{fcl-1tMcz7c0.js → fcl-DyFJAgkq.js} +0 -0
- /package/dist/assets/{formatting-3l1CoS7X.js → formatting-CSG9kqNb.js} +0 -0
- /package/dist/assets/{forth-5O98d424.js → forth-B8kC4npz.js} +0 -0
- /package/dist/assets/{fortran-BIuAFxQ8.js → fortran-CNWGEL3c.js} +0 -0
- /package/dist/assets/{gallery-page-7ltBHWVR.js → gallery-page-Bcf7fYLy.js} +0 -0
- /package/dist/assets/{gas-CHHhShkY.js → gas-DnZQNTHK.js} +0 -0
- /package/dist/assets/{gherkin-DIjcYYBT.js → gherkin-JfGcGvci.js} +0 -0
- /package/dist/assets/{groovy-BYU3Z-yz.js → groovy-D0FWiAVm.js} +0 -0
- /package/dist/assets/{haskell-CjOVOYhk.js → haskell-wUB3uX-G.js} +0 -0
- /package/dist/assets/{haxe-Cb_U41Kf.js → haxe-g0JY6eL-.js} +0 -0
- /package/dist/assets/{http-DTsrgwMt.js → http-ySzAzH5W.js} +0 -0
- /package/dist/assets/{idl-XfUB5VqU.js → idl-CV2cLkPc.js} +0 -0
- /package/dist/assets/{init-BYCsRZEq.js → init-DsZRk2YA.js} +0 -0
- /package/dist/assets/{javascript-BZ9iuJe9.js → javascript-CT6okXEZ.js} +0 -0
- /package/dist/assets/{julia-ZgWUbR6s.js → julia-CKC48ufo.js} +0 -0
- /package/dist/assets/{katex-BNYG1in3.js → katex-BE4UDS50.js} +0 -0
- /package/dist/assets/{links-DguLoFik.js → links-1rtF1-eC.js} +0 -0
- /package/dist/assets/{livescript-PvHqMAnA.js → livescript-C43pZ6Ue.js} +0 -0
- /package/dist/assets/{loro_wasm_bg-Z5Iceaci.js → loro_wasm_bg-CXnd80ne.js} +0 -0
- /package/dist/assets/{lua-BAkgehCh.js → lua-Cs2mb10K.js} +0 -0
- /package/dist/assets/{marimo-icons-CcDNGIRM.js → marimo-icons-CiwvnnsT.js} +0 -0
- /package/dist/assets/{math-D-qpUWKO.js → math-B-ZqhQTL.js} +0 -0
- /package/dist/assets/{mathematica-sYPoESCW.js → mathematica-B5FMK3ma.js} +0 -0
- /package/dist/assets/{mbox-BFVpgB4i.js → mbox-36Zrn5Bd.js} +0 -0
- /package/dist/assets/{mirc-DAwdMlc7.js → mirc-BKTAABSX.js} +0 -0
- /package/dist/assets/{mllike-CNENYbun.js → mllike-DbuClUqc.js} +0 -0
- /package/dist/assets/{modelica-FtpuFG3d.js → modelica-CKRvBm7N.js} +0 -0
- /package/dist/assets/{mscgen-BZpZ1eAc.js → mscgen-B4BRgnCi.js} +0 -0
- /package/dist/assets/{multi-icon-aZG-rdCp.js → multi-icon-NVkxesVZ.js} +0 -0
- /package/dist/assets/{mumps-BM8g2rR9.js → mumps-BFiMcyFV.js} +0 -0
- /package/dist/assets/{nginx-CREUN6EW.js → nginx-Cz_XvoTm.js} +0 -0
- /package/dist/assets/{node-sql-parser-fWuidk6P.js → node-sql-parser-BtkrI4pN.js} +0 -0
- /package/dist/assets/{ntriples-Dpum4Lhl.js → ntriples-QQAkJYAR.js} +0 -0
- /package/dist/assets/{octave-C-8skAyy.js → octave-DsTphmGZ.js} +0 -0
- /package/dist/assets/{oz-C9dNiWs3.js → oz-CD9rr5Iz.js} +0 -0
- /package/dist/assets/{panel-context-C3ham7ZV.js → panel-context-BJbBGfoL.js} +0 -0
- /package/dist/assets/{pascal-OtDoyUlT.js → pascal-DdHEIlJE.js} +0 -0
- /package/dist/assets/{path-_EHCEa2c.js → path-DvTahePH.js} +0 -0
- /package/dist/assets/{perl-Bq6zPLry.js → perl-DHPJBQ1u.js} +0 -0
- /package/dist/assets/{pig-CzHJ3vXa.js → pig-Yz7ERgca.js} +0 -0
- /package/dist/assets/{powershell-CPgLwhmC.js → powershell-CHPZ_bsU.js} +0 -0
- /package/dist/assets/{properties-Kfp4iofx.js → properties-CI9nc7K4.js} +0 -0
- /package/dist/assets/{protobuf-BtodseUb.js → protobuf-BYSIv2pY.js} +0 -0
- /package/dist/assets/{puppet-DqMZ-3jb.js → puppet-CEpLafZX.js} +0 -0
- /package/dist/assets/{python-Du1sm3Dz.js → python-BndVuwG1.js} +0 -0
- /package/dist/assets/{q-mTJjDbkl.js → q-L_cetpiW.js} +0 -0
- /package/dist/assets/{r-CiWGt8bY.js → r-Dd37AKWk.js} +0 -0
- /package/dist/assets/{request-registry-Gm-nOP6a.js → request-registry--h6PWG50.js} +0 -0
- /package/dist/assets/{requests-Bm3bohzL.js → requests-DqJEWJ-Q.js} +0 -0
- /package/dist/assets/{rpm-DoWl8uQ-.js → rpm-CHrvhtlN.js} +0 -0
- /package/dist/assets/{ruby-EPWn7HjP.js → ruby-BPOowfX6.js} +0 -0
- /package/dist/assets/{runs-_nm7RTvJ.js → runs-BD0G-C2A.js} +0 -0
- /package/dist/assets/{sas-C49N66K9.js → sas-BsEFSvEP.js} +0 -0
- /package/dist/assets/{scheme-BKBMeaMf.js → scheme-B42INBu7.js} +0 -0
- /package/dist/assets/{shell-B3Qif7WE.js → shell-BPea12OI.js} +0 -0
- /package/dist/assets/{sieve-D2oOzUQe.js → sieve-C-yPcLw5.js} +0 -0
- /package/dist/assets/{simple-mode-awvuWmjh.js → simple-mode-CFlvn0Mm.js} +0 -0
- /package/dist/assets/{smalltalk-D2JNyQE_.js → smalltalk-e7OO1ATb.js} +0 -0
- /package/dist/assets/{solr-DD6Hdy4w.js → solr-BAO4N63o.js} +0 -0
- /package/dist/assets/{sparql-B_E2GW41.js → sparql-B4I2Ledx.js} +0 -0
- /package/dist/assets/{spreadsheet-DQc2JQ5m.js → spreadsheet-DWqd5foV.js} +0 -0
- /package/dist/assets/{sql-Cj5Wcvsd.js → sql-RBdzBYsM.js} +0 -0
- /package/dist/assets/{src-faGJHwXX.js → src-BnrQkOKh.js} +0 -0
- /package/dist/assets/{stylus-R6o8NrsG.js → stylus-CBRbZwhN.js} +0 -0
- /package/dist/assets/{swift-Dbh-hbmH.js → swift-B2hnU7ha.js} +0 -0
- /package/dist/assets/{swiper-component-Dgt-sBCT.js → swiper-component-YGJlBaCp.js} +0 -0
- /package/dist/assets/{tcl-B7hCCUdg.js → tcl-BtyamtaZ.js} +0 -0
- /package/dist/assets/{textile-3T2abjma.js → textile-M9mhyNE9.js} +0 -0
- /package/dist/assets/{tiddlywiki-Co__osNU.js → tiddlywiki-BsHUDwie.js} +0 -0
- /package/dist/assets/{tiki-CfCZczlo.js → tiki-ZqBe4Kjv.js} +0 -0
- /package/dist/assets/{timer-BgiWPhV9.js → timer-B6DpdVnC.js} +0 -0
- /package/dist/assets/{toml-BfSTXCbK.js → toml-YxyxhyRy.js} +0 -0
- /package/dist/assets/{treemap-F5PoC_M0.js → treemap-DeGcO9km.js} +0 -0
- /package/dist/assets/{troff-TmwTwfFH.js → troff-C7xpi05X.js} +0 -0
- /package/dist/assets/{ttcn-BptQ-efU.js → ttcn-D3YytrJU.js} +0 -0
- /package/dist/assets/{ttcn-cfg-BJSeQh2j.js → ttcn-cfg-DlZ5vA9E.js} +0 -0
- /package/dist/assets/{turtle-NWQZPdQh.js → turtle-BSHvAsUe.js} +0 -0
- /package/dist/assets/{types-iYXk7c05.js → types-a-yURniQ.js} +0 -0
- /package/dist/assets/{useInterval-Bc-mr0KL.js → useInterval-2YvvhIZI.js} +0 -0
- /package/dist/assets/{vb-5MAVubtN.js → vb-DdkIDLlO.js} +0 -0
- /package/dist/assets/{vbscript-C3wI-prb.js → vbscript-DhYGmk_p.js} +0 -0
- /package/dist/assets/{velocity-BZ0SsVqc.js → velocity-DAXJNEw4.js} +0 -0
- /package/dist/assets/{verilog-sCLfsuOk.js → verilog-jmuT_L3b.js} +0 -0
- /package/dist/assets/{vhdl-D8-XDERr.js → vhdl-DcVQ97RU.js} +0 -0
- /package/dist/assets/{web-vitals-CJ8ovao_.js → web-vitals-xkV-JBVF.js} +0 -0
- /package/dist/assets/{webidl-C2DK9LNJ.js → webidl-B-YB_4OQ.js} +0 -0
- /package/dist/assets/{write-secret-modal-DEx_mRHR.js → write-secret-modal-BFLlHwgU.js} +0 -0
- /package/dist/assets/{ws-YSapF1PN.js → ws-BnE9sl8z.js} +0 -0
- /package/dist/assets/{xquery-Db3HYO3C.js → xquery-DOmY3Oe8.js} +0 -0
- /package/dist/assets/{yacas-DhfMSinV.js → yacas-pL3kJRXV.js} +0 -0
- /package/dist/assets/{z80-CH-vqbta.js → z80-VwVuI_MT.js} +0 -0
|
@@ -5,7 +5,8 @@ import {
|
|
|
5
5
|
type ChatAddToolOutputFunction,
|
|
6
6
|
type FileUIPart,
|
|
7
7
|
isToolUIPart,
|
|
8
|
-
|
|
8
|
+
lastAssistantMessageIsCompleteWithApprovalResponses,
|
|
9
|
+
lastAssistantMessageIsCompleteWithToolCalls,
|
|
9
10
|
type UIMessage,
|
|
10
11
|
} from "ai";
|
|
11
12
|
import { useState } from "react";
|
|
@@ -17,7 +18,6 @@ import type {
|
|
|
17
18
|
InvokeAiToolRequest,
|
|
18
19
|
InvokeAiToolResponse,
|
|
19
20
|
} from "@/core/network/types";
|
|
20
|
-
import { logNever } from "@/utils/assertNever";
|
|
21
21
|
import { blobToString } from "@/utils/fileToBase64";
|
|
22
22
|
import { Logger } from "@/utils/Logger";
|
|
23
23
|
import { getAICompletionBodyWithAttachments } from "../editor/ai/completion-utils";
|
|
@@ -169,69 +169,25 @@ export async function handleToolCall({
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
switch (state) {
|
|
178
|
-
case "output-available":
|
|
179
|
-
case "output-error":
|
|
180
|
-
case "output-denied":
|
|
181
|
-
case "approval-responded":
|
|
182
|
-
return true;
|
|
183
|
-
case "input-streaming":
|
|
184
|
-
case "input-available":
|
|
185
|
-
case "approval-requested":
|
|
186
|
-
return false;
|
|
187
|
-
default:
|
|
188
|
-
logNever(state);
|
|
189
|
-
return false;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Checks if we should send a message automatically based on the messages.
|
|
195
|
-
* We auto-send when every tool call on the last assistant message has either
|
|
196
|
-
* finished (output-available/error/denied) or has just received a user
|
|
197
|
-
* approval response, and the assistant hasn't replied yet.
|
|
172
|
+
* Auto-send the next turn when the last assistant message ends with a
|
|
173
|
+
* tool call ready to round-trip. Any non-tool trailing part (text, file,
|
|
174
|
+
* source-*, reasoning, data-*, new step-start) means the assistant has
|
|
175
|
+
* already answered, so we leave the next turn to the user. State checks
|
|
176
|
+
* are delegated to the SDK to stay in sync with upstream.
|
|
198
177
|
*/
|
|
199
178
|
export function hasPendingToolCalls(messages: UIMessage[]): boolean {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const lastMessage = messages[messages.length - 1];
|
|
205
|
-
const parts = lastMessage.parts;
|
|
206
|
-
|
|
207
|
-
if (parts.length === 0) {
|
|
208
|
-
return false;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// Only auto-send if the last message is an assistant message
|
|
212
|
-
// Because assistant messages are the ones that can have tool calls
|
|
213
|
-
if (lastMessage.role !== "assistant") {
|
|
179
|
+
const lastMessage = messages.at(-1);
|
|
180
|
+
if (!lastMessage || lastMessage.role !== "assistant") {
|
|
214
181
|
return false;
|
|
215
182
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
if (toolParts.length === 0) {
|
|
183
|
+
const lastPart = lastMessage.parts.at(-1);
|
|
184
|
+
if (!lastPart || !isToolUIPart(lastPart)) {
|
|
220
185
|
return false;
|
|
221
186
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
187
|
+
return (
|
|
188
|
+
lastAssistantMessageIsCompleteWithToolCalls({ messages }) ||
|
|
189
|
+
lastAssistantMessageIsCompleteWithApprovalResponses({ messages })
|
|
225
190
|
);
|
|
226
|
-
|
|
227
|
-
// Check if the last part has any text content
|
|
228
|
-
const lastPart = parts[parts.length - 1];
|
|
229
|
-
const hasTextContent =
|
|
230
|
-
lastPart.type === "text" && lastPart.text?.trim().length > 0;
|
|
231
|
-
|
|
232
|
-
Logger.debug("All tool calls ready to send: %s", allToolCallsReady);
|
|
233
|
-
|
|
234
|
-
return allToolCallsReady && !hasTextContent;
|
|
235
191
|
}
|
|
236
192
|
|
|
237
193
|
export function useFileState() {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "../editor/chrome/panels/context-aware-panel/context-aware-panel";
|
|
14
14
|
import { Button } from "../ui/button";
|
|
15
15
|
import { toast } from "../ui/use-toast";
|
|
16
|
-
import {
|
|
16
|
+
import { getColumnCountForDisplay } from "./hooks/use-column-visibility";
|
|
17
17
|
import { DataTablePagination, prettifyRowColumnCount } from "./pagination";
|
|
18
18
|
import { CellSelectionStats } from "./range-focus/cell-selection-stats";
|
|
19
19
|
import type { DataTableSelection } from "./types";
|
|
@@ -147,15 +147,12 @@ export const TableBottomBar = <TData,>({
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
// subset, so the visible/hidden math must use that subset's total. The
|
|
153
|
-
// dataset-wide `totalColumns` prop is only correct for the no-hidden
|
|
154
|
-
// "N columns" label.
|
|
150
|
+
const { totalColumns: effectiveTotalColumns, hiddenColumns } =
|
|
151
|
+
getColumnCountForDisplay(table, totalColumns);
|
|
155
152
|
const { rowsAndColumns, hiddenSuffix } = prettifyRowColumnCount({
|
|
156
153
|
numRows: table.getRowCount(),
|
|
157
|
-
totalColumns:
|
|
158
|
-
hiddenColumns
|
|
154
|
+
totalColumns: effectiveTotalColumns,
|
|
155
|
+
hiddenColumns,
|
|
159
156
|
locale,
|
|
160
157
|
});
|
|
161
158
|
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
type ColumnDef,
|
|
5
|
+
getCoreRowModel,
|
|
6
|
+
useReactTable,
|
|
7
|
+
} from "@tanstack/react-table";
|
|
8
|
+
import { fireEvent, render, screen } from "@testing-library/react";
|
|
9
|
+
import { beforeAll, describe, expect, it, vi } from "vitest";
|
|
10
|
+
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
11
|
+
import { ColumnExplorerPanel } from "../column-explorer-panel/column-explorer";
|
|
12
|
+
import type { FieldTypesWithExternalType } from "../types";
|
|
13
|
+
|
|
14
|
+
beforeAll(() => {
|
|
15
|
+
global.HTMLElement.prototype.scrollIntoView = () => {};
|
|
16
|
+
if (!global.HTMLElement.prototype.hasPointerCapture) {
|
|
17
|
+
global.HTMLElement.prototype.hasPointerCapture = () => false;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const FIELD_TYPES: FieldTypesWithExternalType = [
|
|
22
|
+
["customer_name", ["string", "str"]],
|
|
23
|
+
["cust_age", ["integer", "int"]],
|
|
24
|
+
["order_total", ["number", "float"]],
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
type Row = Record<string, unknown>;
|
|
28
|
+
|
|
29
|
+
const TEST_COLUMNS: ColumnDef<Row>[] = [
|
|
30
|
+
{ id: "customer_name", accessorKey: "customer_name" },
|
|
31
|
+
{ id: "cust_age", accessorKey: "cust_age" },
|
|
32
|
+
{ id: "order_total", accessorKey: "order_total" },
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
interface HarnessProps {
|
|
36
|
+
totalColumns?: number;
|
|
37
|
+
initiallyHidden?: string[];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function PanelHarness({
|
|
41
|
+
totalColumns = 3,
|
|
42
|
+
initiallyHidden = [],
|
|
43
|
+
}: HarnessProps) {
|
|
44
|
+
const table = useReactTable<Row>({
|
|
45
|
+
data: [],
|
|
46
|
+
columns: TEST_COLUMNS,
|
|
47
|
+
getCoreRowModel: getCoreRowModel(),
|
|
48
|
+
locale: "en-US",
|
|
49
|
+
state: {
|
|
50
|
+
columnVisibility: Object.fromEntries(
|
|
51
|
+
initiallyHidden.map((id) => [id, false]),
|
|
52
|
+
),
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
return (
|
|
56
|
+
<ColumnExplorerPanel
|
|
57
|
+
previewColumn={vi.fn().mockResolvedValue({})}
|
|
58
|
+
fieldTypes={FIELD_TYPES}
|
|
59
|
+
totalRows={3}
|
|
60
|
+
totalColumns={totalColumns}
|
|
61
|
+
tableId="t1"
|
|
62
|
+
table={table}
|
|
63
|
+
/>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function renderPanel(props?: HarnessProps) {
|
|
68
|
+
return render(
|
|
69
|
+
<TooltipProvider>
|
|
70
|
+
<PanelHarness {...(props ?? {})} />
|
|
71
|
+
</TooltipProvider>,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function getSearchInput() {
|
|
76
|
+
return screen.getByPlaceholderText("Search columns...");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
describe("ColumnExplorerPanel search", () => {
|
|
80
|
+
it("shows all columns when search is empty", () => {
|
|
81
|
+
renderPanel();
|
|
82
|
+
expect(screen.getByText("customer_name")).toBeInTheDocument();
|
|
83
|
+
expect(screen.getByText("cust_age")).toBeInTheDocument();
|
|
84
|
+
expect(screen.getByText("order_total")).toBeInTheDocument();
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it("matches a word prefix against any column word", () => {
|
|
88
|
+
renderPanel();
|
|
89
|
+
fireEvent.change(getSearchInput(), { target: { value: "cust" } });
|
|
90
|
+
expect(screen.getByText("customer_name")).toBeInTheDocument();
|
|
91
|
+
expect(screen.getByText("cust_age")).toBeInTheDocument();
|
|
92
|
+
expect(screen.queryByText("order_total")).not.toBeInTheDocument();
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it("matches multi-word queries across column words in any order", () => {
|
|
96
|
+
renderPanel();
|
|
97
|
+
fireEvent.change(getSearchInput(), { target: { value: "name cust" } });
|
|
98
|
+
expect(screen.getByText("customer_name")).toBeInTheDocument();
|
|
99
|
+
expect(screen.queryByText("cust_age")).not.toBeInTheDocument();
|
|
100
|
+
expect(screen.queryByText("order_total")).not.toBeInTheDocument();
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it("filters out columns that don't match any needle word", () => {
|
|
104
|
+
renderPanel();
|
|
105
|
+
fireEvent.change(getSearchInput(), { target: { value: "xyz" } });
|
|
106
|
+
expect(screen.queryByText("customer_name")).not.toBeInTheDocument();
|
|
107
|
+
expect(screen.queryByText("cust_age")).not.toBeInTheDocument();
|
|
108
|
+
expect(screen.queryByText("order_total")).not.toBeInTheDocument();
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
describe("ColumnExplorerPanel header counts", () => {
|
|
113
|
+
it("uses rendered-subset total when a clipped column is hidden", () => {
|
|
114
|
+
// Dataset has 100 columns server-side; only 3 are rendered into the
|
|
115
|
+
// TanStack table (the clipped subset). Hiding one of the rendered columns
|
|
116
|
+
// must report "2 visible (1 hidden)", not "99 visible (1 hidden)".
|
|
117
|
+
renderPanel({ totalColumns: 100, initiallyHidden: ["cust_age"] });
|
|
118
|
+
expect(screen.getByText(/2 visible/)).toBeInTheDocument();
|
|
119
|
+
expect(screen.getByText(/\(1 hidden\)/)).toBeInTheDocument();
|
|
120
|
+
expect(screen.queryByText(/99 visible/)).not.toBeInTheDocument();
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it("uses dataset-wide total when no column is hidden", () => {
|
|
124
|
+
renderPanel({ totalColumns: 100 });
|
|
125
|
+
expect(screen.getByText(/100 columns/)).toBeInTheDocument();
|
|
126
|
+
expect(screen.queryByText(/hidden/)).not.toBeInTheDocument();
|
|
127
|
+
});
|
|
128
|
+
});
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* Copyright 2026 Marimo. All rights reserved. */
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
Column,
|
|
5
|
+
SortDirection,
|
|
6
|
+
SortingState,
|
|
7
|
+
Table,
|
|
8
|
+
} from "@tanstack/react-table";
|
|
4
9
|
import { fireEvent, render, screen } from "@testing-library/react";
|
|
5
10
|
import { describe, expect, it, vi } from "vitest";
|
|
6
11
|
import {
|
|
@@ -8,7 +13,23 @@ import {
|
|
|
8
13
|
DropdownMenuContent,
|
|
9
14
|
DropdownMenuTrigger,
|
|
10
15
|
} from "@/components/ui/dropdown-menu";
|
|
11
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
ColumnPinning,
|
|
18
|
+
ColumnWrapping,
|
|
19
|
+
CopyColumn,
|
|
20
|
+
DataType,
|
|
21
|
+
FormatOptions,
|
|
22
|
+
HideColumn,
|
|
23
|
+
Sorts,
|
|
24
|
+
} from "../header-items";
|
|
25
|
+
|
|
26
|
+
const renderInMenu = (node: React.ReactNode) =>
|
|
27
|
+
render(
|
|
28
|
+
<DropdownMenu open={true}>
|
|
29
|
+
<DropdownMenuTrigger />
|
|
30
|
+
<DropdownMenuContent>{node}</DropdownMenuContent>
|
|
31
|
+
</DropdownMenu>,
|
|
32
|
+
);
|
|
12
33
|
|
|
13
34
|
describe("multi-column sorting logic", () => {
|
|
14
35
|
// Extract the core sorting logic to test in isolation
|
|
@@ -167,14 +188,6 @@ describe("HideColumn", () => {
|
|
|
167
188
|
toggleVisibility,
|
|
168
189
|
}) as unknown as Column<unknown, unknown>;
|
|
169
190
|
|
|
170
|
-
const renderInMenu = (node: React.ReactNode) =>
|
|
171
|
-
render(
|
|
172
|
-
<DropdownMenu open={true}>
|
|
173
|
-
<DropdownMenuTrigger />
|
|
174
|
-
<DropdownMenuContent>{node}</DropdownMenuContent>
|
|
175
|
-
</DropdownMenu>,
|
|
176
|
-
);
|
|
177
|
-
|
|
178
191
|
it("renders 'Hide column' when canHide is true", () => {
|
|
179
192
|
renderInMenu(<HideColumn column={makeColumn()} />);
|
|
180
193
|
expect(screen.getByText("Hide column")).toBeInTheDocument();
|
|
@@ -192,3 +205,200 @@ describe("HideColumn", () => {
|
|
|
192
205
|
expect(toggleVisibility).toHaveBeenCalledWith(false);
|
|
193
206
|
});
|
|
194
207
|
});
|
|
208
|
+
|
|
209
|
+
describe("DataType", () => {
|
|
210
|
+
const makeColumn = (dtype?: string) =>
|
|
211
|
+
({
|
|
212
|
+
columnDef: { meta: dtype === undefined ? {} : { dtype } },
|
|
213
|
+
}) as unknown as Column<unknown, unknown>;
|
|
214
|
+
|
|
215
|
+
it("renders the dtype label when present", () => {
|
|
216
|
+
renderInMenu(<DataType column={makeColumn("int64")} />);
|
|
217
|
+
expect(screen.getByText("int64")).toBeInTheDocument();
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
it("returns null when dtype is absent", () => {
|
|
221
|
+
renderInMenu(<DataType column={makeColumn()} />);
|
|
222
|
+
expect(screen.queryByText("int64")).toBeNull();
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
describe("Sorts", () => {
|
|
227
|
+
const makeColumn = ({
|
|
228
|
+
canSort = true,
|
|
229
|
+
sorted = false,
|
|
230
|
+
sortIndex = 0,
|
|
231
|
+
}: {
|
|
232
|
+
canSort?: boolean;
|
|
233
|
+
sorted?: false | SortDirection;
|
|
234
|
+
sortIndex?: number;
|
|
235
|
+
} = {}) =>
|
|
236
|
+
({
|
|
237
|
+
getCanSort: () => canSort,
|
|
238
|
+
getIsSorted: () => sorted,
|
|
239
|
+
getSortIndex: () => sortIndex,
|
|
240
|
+
clearSorting: vi.fn(),
|
|
241
|
+
toggleSorting: vi.fn(),
|
|
242
|
+
}) as unknown as Column<unknown, unknown>;
|
|
243
|
+
|
|
244
|
+
const makeTable = (sorting: SortingState) =>
|
|
245
|
+
({
|
|
246
|
+
getState: () => ({ sorting }),
|
|
247
|
+
resetSorting: vi.fn(),
|
|
248
|
+
}) as unknown as Table<unknown>;
|
|
249
|
+
|
|
250
|
+
it("returns null when the column cannot sort", () => {
|
|
251
|
+
renderInMenu(<Sorts column={makeColumn({ canSort: false })} />);
|
|
252
|
+
expect(screen.queryByText("Asc")).toBeNull();
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
it("renders Asc and Desc items", () => {
|
|
256
|
+
renderInMenu(<Sorts column={makeColumn()} />);
|
|
257
|
+
expect(screen.getByText("Asc")).toBeInTheDocument();
|
|
258
|
+
expect(screen.getByText("Desc")).toBeInTheDocument();
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
it("offers single-column 'Clear sort' when sorted without multi-sort", () => {
|
|
262
|
+
renderInMenu(<Sorts column={makeColumn({ sorted: "asc" })} />);
|
|
263
|
+
expect(screen.getByText("Clear sort")).toBeInTheDocument();
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
it("offers 'Clear all sorts' when the table has multiple sorts", () => {
|
|
267
|
+
renderInMenu(
|
|
268
|
+
<Sorts
|
|
269
|
+
column={makeColumn({ sorted: "asc" })}
|
|
270
|
+
table={makeTable([
|
|
271
|
+
{ id: "a", desc: false },
|
|
272
|
+
{ id: "b", desc: true },
|
|
273
|
+
])}
|
|
274
|
+
/>,
|
|
275
|
+
);
|
|
276
|
+
expect(screen.getByText("Clear all sorts")).toBeInTheDocument();
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
describe("CopyColumn", () => {
|
|
281
|
+
const makeColumn = ({
|
|
282
|
+
canCopy = true,
|
|
283
|
+
id = "name",
|
|
284
|
+
}: {
|
|
285
|
+
canCopy?: boolean;
|
|
286
|
+
id?: string;
|
|
287
|
+
} = {}) =>
|
|
288
|
+
({
|
|
289
|
+
id,
|
|
290
|
+
getCanCopy: () => canCopy,
|
|
291
|
+
}) as unknown as Column<unknown, unknown>;
|
|
292
|
+
|
|
293
|
+
it("renders 'Copy column name' when copyable", () => {
|
|
294
|
+
renderInMenu(<CopyColumn column={makeColumn()} />);
|
|
295
|
+
expect(screen.getByText("Copy column name")).toBeInTheDocument();
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
it("returns null when the column cannot be copied", () => {
|
|
299
|
+
renderInMenu(<CopyColumn column={makeColumn({ canCopy: false })} />);
|
|
300
|
+
expect(screen.queryByText("Copy column name")).toBeNull();
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
|
|
304
|
+
describe("ColumnPinning", () => {
|
|
305
|
+
const makeColumn = ({
|
|
306
|
+
canPin = true,
|
|
307
|
+
pinned = false,
|
|
308
|
+
}: {
|
|
309
|
+
canPin?: boolean;
|
|
310
|
+
pinned?: false | "left" | "right";
|
|
311
|
+
} = {}) =>
|
|
312
|
+
({
|
|
313
|
+
getCanPin: () => canPin,
|
|
314
|
+
getIsPinned: () => pinned,
|
|
315
|
+
pin: vi.fn(),
|
|
316
|
+
}) as unknown as Column<unknown, unknown>;
|
|
317
|
+
|
|
318
|
+
it("returns null when the column cannot be pinned", () => {
|
|
319
|
+
renderInMenu(<ColumnPinning column={makeColumn({ canPin: false })} />);
|
|
320
|
+
expect(screen.queryByText("Freeze left")).toBeNull();
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
it("offers freeze options when unpinned", () => {
|
|
324
|
+
renderInMenu(<ColumnPinning column={makeColumn()} />);
|
|
325
|
+
expect(screen.getByText("Freeze left")).toBeInTheDocument();
|
|
326
|
+
expect(screen.getByText("Freeze right")).toBeInTheDocument();
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
it("offers 'Unfreeze' when pinned", () => {
|
|
330
|
+
renderInMenu(<ColumnPinning column={makeColumn({ pinned: "left" })} />);
|
|
331
|
+
expect(screen.getByText("Unfreeze")).toBeInTheDocument();
|
|
332
|
+
});
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
describe("ColumnWrapping", () => {
|
|
336
|
+
const makeColumn = ({
|
|
337
|
+
canWrap = true,
|
|
338
|
+
wrapping = "nowrap",
|
|
339
|
+
}: {
|
|
340
|
+
canWrap?: boolean;
|
|
341
|
+
wrapping?: "wrap" | "nowrap";
|
|
342
|
+
} = {}) =>
|
|
343
|
+
({
|
|
344
|
+
getCanWrap: () => canWrap,
|
|
345
|
+
getColumnWrapping: () => wrapping,
|
|
346
|
+
toggleColumnWrapping: vi.fn(),
|
|
347
|
+
}) as unknown as Column<unknown, unknown>;
|
|
348
|
+
|
|
349
|
+
it("returns null when the column cannot wrap", () => {
|
|
350
|
+
renderInMenu(<ColumnWrapping column={makeColumn({ canWrap: false })} />);
|
|
351
|
+
expect(screen.queryByText("Wrap text")).toBeNull();
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
it("offers 'Wrap text' when not wrapping", () => {
|
|
355
|
+
renderInMenu(<ColumnWrapping column={makeColumn()} />);
|
|
356
|
+
expect(screen.getByText("Wrap text")).toBeInTheDocument();
|
|
357
|
+
});
|
|
358
|
+
|
|
359
|
+
it("offers 'No wrap text' when wrapping", () => {
|
|
360
|
+
renderInMenu(<ColumnWrapping column={makeColumn({ wrapping: "wrap" })} />);
|
|
361
|
+
expect(screen.getByText("No wrap text")).toBeInTheDocument();
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
describe("FormatOptions", () => {
|
|
366
|
+
const makeColumn = ({
|
|
367
|
+
dataType = "number",
|
|
368
|
+
canFormat = true,
|
|
369
|
+
}: {
|
|
370
|
+
dataType?: string;
|
|
371
|
+
canFormat?: boolean;
|
|
372
|
+
} = {}) =>
|
|
373
|
+
({
|
|
374
|
+
columnDef: { meta: { dataType } },
|
|
375
|
+
getCanFormat: () => canFormat,
|
|
376
|
+
getColumnFormatting: () => undefined,
|
|
377
|
+
setColumnFormatting: vi.fn(),
|
|
378
|
+
}) as unknown as Column<unknown, unknown>;
|
|
379
|
+
|
|
380
|
+
it("renders the 'Format' submenu trigger for formattable columns", () => {
|
|
381
|
+
renderInMenu(<FormatOptions column={makeColumn()} locale="en-US" />);
|
|
382
|
+
expect(screen.getByText("Format")).toBeInTheDocument();
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
it("returns null when the column cannot be formatted", () => {
|
|
386
|
+
renderInMenu(
|
|
387
|
+
<FormatOptions
|
|
388
|
+
column={makeColumn({ canFormat: false })}
|
|
389
|
+
locale="en-US"
|
|
390
|
+
/>,
|
|
391
|
+
);
|
|
392
|
+
expect(screen.queryByText("Format")).toBeNull();
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
it("returns null when the data type has no format options", () => {
|
|
396
|
+
renderInMenu(
|
|
397
|
+
<FormatOptions
|
|
398
|
+
column={makeColumn({ dataType: "unknown" })}
|
|
399
|
+
locale="en-US"
|
|
400
|
+
/>,
|
|
401
|
+
);
|
|
402
|
+
expect(screen.queryByText("Format")).toBeNull();
|
|
403
|
+
});
|
|
404
|
+
});
|