@marimo-team/frontend 0.21.2-dev6 → 0.21.2-dev61
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-C-nDPVVw.js +1 -0
- package/dist/assets/ConnectedDataExplorerComponent-B5igOqdA.js +1 -0
- package/dist/assets/DeferredRequestRegistry-B8jPCuU1.js +1 -0
- package/dist/assets/FiraMono-Bold-C6PDArdf.woff2 +0 -0
- package/dist/assets/FiraMono-Medium-D5MAsWEG.woff2 +0 -0
- package/dist/assets/FiraMono-Regular-CEsLFVD9.woff2 +0 -0
- package/dist/assets/ImperativeModal-C5ZzjCQG.js +1 -0
- package/dist/assets/JsonOutput-bhD4i0Fm.js +46 -0
- package/dist/assets/LazyAnyLanguageCodeMirror-C58z97yX.js +2 -0
- package/dist/assets/Lora-VariableFont_wght-CZceb_kH.woff2 +0 -0
- package/dist/assets/MarimoErrorOutput-BIh0hMl8.js +7 -0
- package/dist/assets/PTSans-Bold-C_DwAp7Z.woff2 +0 -0
- package/dist/assets/PTSans-Regular-Bam3NpBI.woff2 +0 -0
- package/dist/assets/RenderHTML-CRY6pZVc.js +1 -0
- package/dist/assets/add-cell-with-ai-BvN8AbcB.js +92 -0
- package/dist/assets/add-connection-dialog-BvzGJCV7.js +167 -0
- package/dist/assets/agent-panel-DLrLHhZB.js +287 -0
- package/dist/assets/ai-model-dropdown-CQDhHQ1r.js +5 -0
- package/dist/assets/alert-dialog-Baw3WWPa.js +11 -0
- package/dist/assets/any-language-editor-DwTh8fpE.js +1 -0
- package/dist/assets/apl-BvMImcFf.js +1 -0
- package/dist/assets/app-config-button-CnR7XJXP.js +1 -0
- package/dist/assets/arc-DUSwcTI9.js +1 -0
- package/dist/assets/architecture-7HQA4BMR-DoF6afh3.js +1 -0
- package/dist/assets/architectureDiagram-VXUJARFQ-d3bjsML7.js +36 -0
- package/dist/assets/asciiarmor-BYYwBbrl.js +1 -0
- package/dist/assets/asn1-Dlt8rkAb.js +1 -0
- package/dist/assets/azure-DMJRLvDT.js +1 -0
- package/dist/assets/blockDiagram-VD42YOAC-CjpBwM9S.js +122 -0
- package/dist/assets/brainfuck-B1Z5ou__.js +1 -0
- package/dist/assets/c4Diagram-YG6GDRKO-BsB04ueE.js +10 -0
- package/dist/assets/cache-panel-B9gltP7l.js +1 -0
- package/dist/assets/cell-editor-D5XEomtX.js +22 -0
- package/dist/assets/cell-link-Cp4c28Yf.js +1 -0
- package/dist/assets/cells-DiVpbkA6.js +230 -0
- package/dist/assets/channel-BjUuxbyU.js +1 -0
- package/dist/assets/chat-display-DhUQL9pu.js +1 -0
- package/dist/assets/chat-panel-fxitp0Hy.js +3 -0
- package/dist/assets/chunk-4BX2VUAB-DhvNmHH5.js +1 -0
- package/dist/assets/chunk-55IACEB6-DPm6ES7n.js +1 -0
- package/dist/assets/chunk-5FQGJX7Z-BSe8eGYF.js +113 -0
- package/dist/assets/chunk-ABZYJK2D-Cw3YveaS.js +80 -0
- package/dist/assets/chunk-ATLVNIR6-ChKiaY37.js +1 -0
- package/dist/assets/chunk-B4BG7PRW-CjzWXMFh.js +165 -0
- package/dist/assets/chunk-CVBHYZKI-BX0N_ipT.js +1 -0
- package/dist/assets/chunk-DI55MBZ5-BLrTiPQ-.js +220 -0
- package/dist/assets/chunk-EXTU4WIE-DEQUOsSM.js +1 -0
- package/dist/assets/chunk-FMBD7UC4-BDlH9XLH.js +15 -0
- package/dist/assets/chunk-HN2XXSSU-ujlBpRMF.js +1 -0
- package/dist/assets/chunk-JA3XYJ7Z-DVg9ra4h.js +70 -0
- package/dist/assets/chunk-JZLCHNYA-BTjSP-Yu.js +54 -0
- package/dist/assets/chunk-MI3HLSF2-D9JXkg6-.js +32 -0
- package/dist/assets/chunk-N4CR4FBY-U_urcDYs.js +2 -0
- package/dist/assets/chunk-QN33PNHL-rFbjvOIx.js +1 -0
- package/dist/assets/chunk-QXUST7PY-BQj8er3i.js +7 -0
- package/dist/assets/chunk-QZHKN3VN-zZhG5AHT.js +1 -0
- package/dist/assets/chunk-S3R3BYOJ-ZHSbXnZr.js +2 -0
- package/dist/assets/chunk-TZMSLE5B-BAOCWmWp.js +1 -0
- package/dist/assets/classDiagram-2ON5EDUG-Dk_A06Wi.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-CI0Lejhn.js +1 -0
- package/dist/assets/clike-D1aNLn0X.js +1 -0
- package/dist/assets/clojure-DjNF1_gb.js +1 -0
- package/dist/assets/cmake-BDQMYLKM.js +1 -0
- package/dist/assets/cobol-DuPGAg14.js +1 -0
- package/dist/assets/code-block-37QAKDTI-BU3oxVk6.js +2 -0
- package/dist/assets/coffeescript-Cpt7RKvC.js +1 -0
- package/dist/assets/column-preview-CWToI8XM.js +1 -0
- package/dist/assets/command-B9VNhm0p.js +1 -0
- package/dist/assets/command-palette-ur_xyrxX.js +1 -0
- package/dist/assets/common-BqZ5L0i8.js +1 -0
- package/dist/assets/commonlisp-BRjl0xya.js +1 -0
- package/dist/assets/components-BouDP-tv.js +1 -0
- package/dist/assets/components-CUetByBv.js +1 -0
- package/dist/assets/config-DqxNMQDN.js +1 -0
- package/dist/assets/context-CqNy_uER.js +1 -0
- package/dist/assets/context-aware-panel-CD_txOWw.js +3 -0
- package/dist/assets/copy-CcUDATFX.js +1 -0
- package/dist/assets/copy-icon-WvgZ60QO.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-C4qI5Omf.js +1 -0
- package/dist/assets/createReducer-Dvh64vBW.js +1 -0
- package/dist/assets/crystal-BJ72BOy1.js +1 -0
- package/dist/assets/css-D-8RA_n9.js +1 -0
- package/dist/assets/cypher-qOLKQlRB.js +1 -0
- package/dist/assets/d-iOURkVzR.js +1 -0
- package/dist/assets/dagre-6UL2VRFP-CoEAbEhB.js +4 -0
- package/dist/assets/data-grid-overlay-editor-DXzdnLZF.js +1 -0
- package/dist/assets/datasource-C5fKDIEK.js +3 -0
- package/dist/assets/dates-CTqMeMGY.js +1 -0
- package/dist/assets/dependency-graph-panel-BCYRlR0F.js +5 -0
- package/dist/assets/diagram-PSM6KHXK-CzPUkhGz.js +24 -0
- package/dist/assets/diagram-QEK2KX5R-D5RBmWAK.js +43 -0
- package/dist/assets/diagram-S2PKOQOG-C8PeRX7S.js +24 -0
- package/dist/assets/dialog-C_NcD2pn.js +1 -0
- package/dist/assets/diff-Cdd81Zxl.js +1 -0
- package/dist/assets/dist-1u2or7ID.js +1 -0
- package/dist/assets/dist-6P6vjf93.js +1 -0
- package/dist/assets/dist-BWa7crGu.js +1 -0
- package/dist/assets/dist-BZOFXjSq.js +1 -0
- package/dist/assets/dist-BatEf-0f.js +1 -0
- package/dist/assets/dist-BgRFL8FO.js +1 -0
- package/dist/assets/dist-C6ohaMKU.js +6 -0
- package/dist/assets/dist-C8sUhiRj.js +1 -0
- package/dist/assets/dist-CO9Pg2Rc.js +1 -0
- package/dist/assets/dist-CSV6H5w_.js +1 -0
- package/dist/assets/dist-Cd9M8gLO.js +1 -0
- package/dist/assets/dist-Cj6Bv4PM.js +1 -0
- package/dist/assets/dist-CjkJ83NO.js +1 -0
- package/dist/assets/dist-D6IRobNQ.js +1 -0
- package/dist/assets/dist-DBaxVoPL.js +1 -0
- package/dist/assets/dist-DQg1jiNa.js +1 -0
- package/dist/assets/dist-DVCqT940.js +1 -0
- package/dist/assets/dist-DXjL2dGI.js +1 -0
- package/dist/assets/dist-DZurUgwR.js +1 -0
- package/dist/assets/dist-D_QUx5Gn.js +1 -0
- package/dist/assets/dist-DgEPWvX2.js +1 -0
- package/dist/assets/dist-Dq1aTs7B.js +1 -0
- package/dist/assets/dist-Dq3BlK4R.js +1 -0
- package/dist/assets/dist-EtGG9C1A.js +1 -0
- package/dist/assets/dist-NjId5Gdz.js +1 -0
- package/dist/assets/dist-NoS9f1Fr.js +1 -0
- package/dist/assets/dist-i55eG_gB.js +1 -0
- package/dist/assets/dist-rrswzGsS.js +1 -0
- package/dist/assets/dist-vu0dYsZ6.js +1 -0
- package/dist/assets/dist-wAlLVqgL.js +1 -0
- package/dist/assets/dockerfile-t2fxOBWV.js +1 -0
- package/dist/assets/documentation-panel-B-pPPA6b.js +1 -0
- package/dist/assets/download-UmTPygP7.js +9 -0
- package/dist/assets/dropdown-menu-BehqiLFL.js +1 -0
- package/dist/assets/dtd-CXebdwLo.js +1 -0
- package/dist/assets/dylan-YUx5_Nke.js +1 -0
- package/dist/assets/ecl-CktOv__x.js +1 -0
- package/dist/assets/edit-page-CxaQclsT.js +13 -0
- package/dist/assets/eiffel-Cwa25B6x.js +1 -0
- package/dist/assets/elm-COtRRWOj.js +1 -0
- package/dist/assets/en-US-f8tajDx1.js +1 -0
- package/dist/assets/erDiagram-Q2GNP2WA-Bvb9X3rD.js +60 -0
- package/dist/assets/erlang-Ir3c4mPd.js +1 -0
- package/dist/assets/error-banner-BYG94WiL.js +1 -0
- package/dist/assets/error-panel-CpC5W_ax.js +1 -0
- package/dist/assets/es-DKHH3Swu.js +5 -0
- package/dist/assets/esm-Clp2XqMu.js +1 -0
- package/dist/assets/esm-DnSMDF4m.js +1 -0
- package/dist/assets/factor-CwMUgBOu.js +1 -0
- package/dist/assets/factor-DLUSHz6o.js +1 -0
- package/dist/assets/field-BEgvDIrV.js +1 -0
- package/dist/assets/file-explorer-panel-CrD6YkZ_.js +26 -0
- package/dist/assets/file-icons-BTQcwa4T.js +1 -0
- package/dist/assets/floating-outline-Dz5Wcbfw.js +1 -0
- package/dist/assets/flowDiagram-NV44I4VS-CF0XcGrZ.js +162 -0
- package/dist/assets/focus-BRTg8M44.js +1 -0
- package/dist/assets/form-qtFXuhlh.js +2 -0
- package/dist/assets/formats-CQWEZHk-.js +1 -0
- package/dist/assets/formatting-DBrNlcJ6.js +1 -0
- package/dist/assets/forth-DdV4URDJ.js +1 -0
- package/dist/assets/fortran-rTDtSjFc.js +1 -0
- package/dist/assets/gallery-page-DhOJHDwV.js +1 -0
- package/dist/assets/ganttDiagram-JELNMOA3-BXfHO6g0.js +267 -0
- package/dist/assets/gas-B20k3keQ.js +1 -0
- package/dist/assets/gherkin-DdH6eiN0.js +1 -0
- package/dist/assets/gitGraph-G5XIXVHT-D3o7km_A.js +1 -0
- package/dist/assets/gitGraphDiagram-V2S2FVAM-Blhov9dO.js +65 -0
- package/dist/assets/glide-data-editor-CO6jMjYm.js +132 -0
- package/dist/assets/globals-DD4XdbWe.js +1 -0
- package/dist/assets/groovy-k_2ke765.js +1 -0
- package/dist/assets/haskell-JTqAy6cw.js +1 -0
- package/dist/assets/haxe-g4mjq9YQ.js +1 -0
- package/dist/assets/home-page-CwgtN9Ku.js +4 -0
- package/dist/assets/hooks-CLoML3Pf.js +1 -0
- package/dist/assets/html-to-image-CRCamxYo.js +2 -0
- package/dist/assets/idl-CQEReZIk.js +1 -0
- package/dist/assets/index-BrQynBQn.js +38 -0
- package/dist/assets/index-DtdvIKY3.css +2 -0
- package/dist/assets/info-VBDWY6EO-CPJvjUKi.js +1 -0
- package/dist/assets/infoDiagram-HS3SLOUP-CCrt0lHA.js +2 -0
- package/dist/assets/input-lyDIN6R6.js +1 -0
- package/dist/assets/isValid-DY4Mgbr7.js +1 -0
- package/dist/assets/javascript-Th71hKcK.js +1 -0
- package/dist/assets/journeyDiagram-XKPGCS4Q-Bs_9B9e_.js +139 -0
- package/dist/assets/julia-KdjfFIx7.js +1 -0
- package/dist/assets/kanban-definition-3W4ZIXB7-_GEp627b.js +89 -0
- package/dist/assets/katex-BalO4WMU.js +1 -0
- package/dist/assets/kiosk-mode-Di6uNlNd.js +1 -0
- package/dist/assets/label-CNWsXpEn.js +1 -0
- package/dist/assets/layout-OxzkS5En.js +5 -0
- package/dist/assets/line-BKm-YkCh.js +1 -0
- package/dist/assets/linear-DG7yljSg.js +1 -0
- package/dist/assets/links-Bfp-iNRX.js +1 -0
- package/dist/assets/livescript-OIMP9q9l.js +1 -0
- package/dist/assets/logs-panel-Dt4wzfgH.js +1 -0
- package/dist/assets/loro_wasm_bg-CvVVQqkx.js +1 -0
- package/dist/assets/lua-blzLZg7R.js +1 -0
- package/dist/assets/markdown-renderer-nMv2xwHt.js +10 -0
- package/dist/assets/mathematica-CMJa84MS.js +1 -0
- package/dist/assets/mbox-DVlt9Sx8.js +1 -0
- package/dist/assets/menu-items-BpHXKv51.js +1 -0
- package/dist/assets/mermaid-4DMBBIKO-gmMzGFR4.js +1 -0
- package/dist/assets/mermaid-DEOW_c2X.js +11 -0
- package/dist/assets/mermaid-parser.core-ChpHatjH.js +4 -0
- package/dist/assets/mhchem-DqNBdKjC.js +1 -0
- package/dist/assets/mindmap-definition-VGOIOE7T-CsErmnfz.js +68 -0
- package/dist/assets/mirc-CE9zFxnR.js +1 -0
- package/dist/assets/mllike-UPrOWD4R.js +1 -0
- package/dist/assets/modelica-CXEKMd0n.js +1 -0
- package/dist/assets/mscgen-CzEcWkMH.js +1 -0
- package/dist/assets/multi-map-0vmox9BD.js +1 -0
- package/dist/assets/mumps-DNi45Qjm.js +1 -0
- package/dist/assets/name-cell-input-CwvGCJkg.js +1 -0
- package/dist/assets/nsis-10Du03KF.js +1 -0
- package/dist/assets/nsis-Cjsw1q_J.js +1 -0
- package/dist/assets/ntriples-ByafJqO3.js +1 -0
- package/dist/assets/number-overlay-editor-zZDGu9D2.js +9 -0
- package/dist/assets/octave-Bg9NfY8T.js +1 -0
- package/dist/assets/ordinal-CIVqSC4M.js +1 -0
- package/dist/assets/outline-panel-CCmk1ERZ.js +1 -0
- package/dist/assets/oz-BqUh_R9x.js +1 -0
- package/dist/assets/packages-panel-BzayhsFC.js +1 -0
- package/dist/assets/packet-DYOGHKS2-0_hZggkb.js +1 -0
- package/dist/assets/panels-B7hsDiui.js +1 -0
- package/dist/assets/pascal-T5LJ_IPG.js +1 -0
- package/dist/assets/perl-QB_H1sT2.js +1 -0
- package/dist/assets/pie-VRWISCQL-QeXFV_RN.js +1 -0
- package/dist/assets/pieDiagram-ADFJNKIX-CHFQxGML.js +30 -0
- package/dist/assets/pig-BX8GE3n0.js +1 -0
- package/dist/assets/popover-BzqPa2Au.js +1 -0
- package/dist/assets/powershell-CgQaEAdZ.js +1 -0
- package/dist/assets/precisionRound-NX56vp6K.js +1 -0
- package/dist/assets/process-output-D_zUglHE.js +1 -0
- package/dist/assets/properties-obn8TWyy.js +1 -0
- package/dist/assets/protobuf-C-zxlF8D.js +1 -0
- package/dist/assets/pug--0L5ulw9.js +1 -0
- package/dist/assets/pug-C9pOca2F.js +1 -0
- package/dist/assets/puppet-05PW0eq8.js +1 -0
- package/dist/assets/python-DTi_lJAD.js +1 -0
- package/dist/assets/q-DDewC_-L.js +1 -0
- package/dist/assets/quadrantDiagram-AYHSOK5B-BWfhvbIs.js +7 -0
- package/dist/assets/r-BP2yA_lV.js +1 -0
- package/dist/assets/radar-ZZBFDIW7-CPk9iUBG.js +1 -0
- package/dist/assets/react-vega-BbTMwpa-.js +190 -0
- package/dist/assets/react-vega-_CJceHW7.js +1 -0
- package/dist/assets/readonly-python-code-BQo0UqCJ.js +1 -0
- package/dist/assets/renderShortcut-DG5sXSxr.js +1 -0
- package/dist/assets/request-registry-BPNvKw5y.js +1 -0
- package/dist/assets/requirementDiagram-UZGBJVZJ-DdZsVZPu.js +64 -0
- package/dist/assets/rpm-BTpPEnAJ.js +1 -0
- package/dist/assets/ruby-_km6sWpH.js +1 -0
- package/dist/assets/run-page-BN0QZ7-c.js +1 -0
- package/dist/assets/runs-CtxlyzdZ.js +1 -0
- package/dist/assets/sankeyDiagram-TZEHDZUN-BiKMK7q3.js +10 -0
- package/dist/assets/sas-BV0z5M7P.js +1 -0
- package/dist/assets/scheme-AMw7OHvW.js +1 -0
- package/dist/assets/scratchpad-panel-BpM3Nxzw.js +1 -0
- package/dist/assets/secrets-panel-BVJ1G2-2.js +1 -0
- package/dist/assets/select-Cnd3vm9n.js +1 -0
- package/dist/assets/sequenceDiagram-WL72ISMW-B1m5IqrQ.js +145 -0
- package/dist/assets/session-panel-CUtOop5w.js +1 -0
- package/dist/assets/share-T-ETw2Yt.js +1 -0
- package/dist/assets/shell-BepJCs0S.js +1 -0
- package/dist/assets/sieve-YvKFjNqY.js +1 -0
- package/dist/assets/slides-component-Bg8T1XwW.js +1 -0
- package/dist/assets/smalltalk-e8puLVxg.js +1 -0
- package/dist/assets/snippets-panel-CND2QIaH.js +1 -0
- package/dist/assets/sparql-IwwbUejm.js +1 -0
- package/dist/assets/spec-DnVBmJUh.js +1 -0
- package/dist/assets/src-lcGySDV2.js +1 -0
- package/dist/assets/state-C-thupmq.js +1 -0
- package/dist/assets/state-Cm3zkTs2.js +1 -0
- package/dist/assets/state-Dxl7WjW3.js +1 -0
- package/dist/assets/stateDiagram-FKZM4ZOC-B_fZr0Jz.js +1 -0
- package/dist/assets/stateDiagram-v2-4FDKWEC3-CnaooVt9.js +1 -0
- package/dist/assets/step-B5y1YzZ4.js +1 -0
- package/dist/assets/stex-CruVQx-P.js +1 -0
- package/dist/assets/stylus-C5qHDsoA.js +1 -0
- package/dist/assets/swift-CD6FyF1F.js +1 -0
- package/dist/assets/switch-C2PmTLIx.js +1 -0
- package/dist/assets/tcl-189LoKbJ.js +1 -0
- package/dist/assets/terminal-8keBq1HC.js +62 -0
- package/dist/assets/textile-dSHgbtG8.js +1 -0
- package/dist/assets/time-D8_flTb-.js +1 -0
- package/dist/assets/timeline-definition-IT6M3QCI-CiMZB-_n.js +61 -0
- package/dist/assets/toggle-DjUKacjU.js +1 -0
- package/dist/assets/toml-CWUvzxNs.js +1 -0
- package/dist/assets/tooltip-CR_izE8Q.js +1 -0
- package/dist/assets/tracing-Cab2_N64.js +1 -0
- package/dist/assets/tracing-panel-h6SS64Fd.js +2 -0
- package/dist/assets/tree-Duf22i7P.js +3 -0
- package/dist/assets/treemap-GDKQZRPO-BqT6xXWn.js +1 -0
- package/dist/assets/troff-CkFGw7sb.js +1 -0
- package/dist/assets/ttcn-B71Rl_FP.js +1 -0
- package/dist/assets/ttcn-cfg-BsJCQ8Pc.js +1 -0
- package/dist/assets/turtle-AJRCjN1N.js +1 -0
- package/dist/assets/useAddCell-fzJF_CdR.js +1 -0
- package/dist/assets/useBoolean-DJdaVVhu.js +1 -0
- package/dist/assets/useCellActionButton-C-mIavMW.js +1 -0
- package/dist/assets/useDateFormatter-CYAwsqZA.js +1 -0
- package/dist/assets/useDeleteCell-lfqkVcrN.js +1 -0
- package/dist/assets/useDependencyPanelTab-Nq81zNNI.js +1 -0
- package/dist/assets/useInstallPackage-BVUUWUU8.js +1 -0
- package/dist/assets/useNotebookActions-BAw99pt_.js +1 -0
- package/dist/assets/useNumberFormatter-D5CeG3Kn.js +1 -0
- package/dist/assets/usePress-CHKiC-9E.js +7 -0
- package/dist/assets/useRunCells-6ne-1pJW.js +1 -0
- package/dist/assets/useSplitCell-D8a8QoYd.js +1 -0
- package/dist/assets/utils-DnNnBV1N.js +61 -0
- package/dist/assets/vb-gPFTxjZr.js +1 -0
- package/dist/assets/vbscript-CMzdZB2G.js +1 -0
- package/dist/assets/vega-component-DnJzUfQO.js +1 -0
- package/dist/assets/vega-loader.browser-xq8miGHn.js +6 -0
- package/dist/assets/velocity-DBHzqIXP.js +1 -0
- package/dist/assets/verilog-CrrLE4DH.js +1 -0
- package/dist/assets/vhdl-CcYUxt_-.js +1 -0
- package/dist/assets/webidl-Cx4I26Tn.js +1 -0
- package/dist/assets/write-secret-modal-5AT0ZoJv.js +1 -0
- package/dist/assets/xquery-Cu7k_x_s.js +1 -0
- package/dist/assets/xychartDiagram-PRI3JC2R-B3F_v5OL.js +7 -0
- package/dist/assets/yacas-DEQ-2nrM.js +1 -0
- package/dist/assets/z80-D9sXBSXs.js +1 -0
- package/dist/index.html +145 -146
- package/package.json +1 -1
- package/src/__mocks__/notebook.ts +9 -9
- package/src/__mocks__/requests.ts +1 -0
- package/src/__tests__/branded.ts +20 -0
- package/src/components/app-config/user-config-form.tsx +5 -4
- package/src/components/data-table/__tests__/utils.test.ts +138 -1
- package/src/components/data-table/charts/__tests__/storage.test.ts +7 -7
- package/src/components/data-table/context-menu.tsx +9 -5
- package/src/components/data-table/data-table.tsx +3 -0
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +8 -2
- package/src/components/data-table/range-focus/__tests__/test-utils.ts +2 -0
- package/src/components/data-table/range-focus/__tests__/utils.test.ts +82 -8
- package/src/components/data-table/range-focus/atoms.ts +2 -2
- package/src/components/data-table/range-focus/utils.ts +50 -12
- package/src/components/data-table/types.ts +7 -0
- package/src/components/data-table/utils.ts +87 -0
- package/src/components/editor/__tests__/data-attributes.test.tsx +8 -8
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +15 -15
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +2 -2
- package/src/components/editor/connections/storage/as-code.ts +2 -2
- package/src/components/editor/file-tree/file-explorer.tsx +16 -2
- package/src/components/editor/file-tree/file-viewer.tsx +17 -3
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +2 -2
- package/src/components/editor/navigation/__tests__/selection.test.ts +7 -6
- package/src/components/editor/navigation/__tests__/state.test.ts +8 -7
- package/src/components/editor/output/MarimoErrorOutput.tsx +7 -7
- package/src/components/editor/output/__tests__/traceback.test.tsx +4 -4
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +4 -4
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +8 -1
- package/src/components/storage/storage-file-viewer.tsx +35 -1
- package/src/components/storage/storage-inspector.tsx +9 -4
- package/src/components/storage/storage-snippets.ts +3 -3
- package/src/components/tracing/tracing.tsx +3 -1
- package/src/components/ui/range-slider.tsx +108 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +9 -8
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +31 -31
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -3
- package/src/core/ai/context/providers/__tests__/tables.test.ts +3 -2
- package/src/core/ai/context/providers/__tests__/variable.test.ts +84 -63
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +10 -9
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +6 -6
- package/src/core/ai/tools/edit-notebook-tool.ts +3 -3
- package/src/core/cells/__tests__/add-missing-import.test.ts +3 -3
- package/src/core/cells/__tests__/apply-transaction.test.ts +279 -0
- package/src/core/cells/__tests__/cells.test.ts +198 -135
- package/src/core/cells/__tests__/document-changes.test.ts +575 -0
- package/src/core/cells/__tests__/document-roundtrip.test.ts +376 -0
- package/src/core/cells/__tests__/focus.test.ts +5 -4
- package/src/core/cells/__tests__/logs.test.ts +13 -12
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +3 -3
- package/src/core/cells/__tests__/runs.test.ts +22 -21
- package/src/core/cells/__tests__/scrollCellIntoView.test.ts +8 -7
- package/src/core/cells/__tests__/session.test.ts +23 -22
- package/src/core/cells/cells.ts +29 -4
- package/src/core/cells/document-changes.ts +644 -0
- package/src/core/cells/ids.ts +5 -5
- package/src/core/cells/logs.ts +2 -2
- package/src/core/cells/runs.ts +6 -8
- package/src/core/codemirror/__tests__/format.test.ts +34 -36
- package/src/core/codemirror/__tests__/setup.test.ts +2 -2
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +114 -0
- package/src/core/codemirror/cells/__tests__/traceback-decorations.test.ts +33 -32
- package/src/core/codemirror/cells/extensions.ts +66 -23
- package/src/core/codemirror/completion/__tests__/keymap.test.ts +15 -35
- package/src/core/codemirror/completion/keymap.ts +14 -4
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +12 -13
- package/src/core/codemirror/language/__tests__/utils.test.ts +3 -3
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +7 -8
- package/src/core/codemirror/language/languages/python.ts +4 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +4 -3
- package/src/core/codemirror/lsp/notebook-lsp.ts +28 -2
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +7 -6
- package/src/core/codemirror/reactive-references/analyzer.ts +2 -2
- package/src/core/codemirror/rtc/loro/__tests__/sync.test.ts +52 -0
- package/src/core/codemirror/rtc/loro/sync.ts +1 -0
- package/src/core/datasets/__tests__/data-source.test.ts +5 -6
- package/src/core/datasets/state.ts +1 -1
- package/src/core/errors/__tests__/errors.test.ts +2 -1
- package/src/core/export/__tests__/hooks.test.ts +37 -36
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/islands/main.ts +4 -7
- package/src/core/kernel/__tests__/handlers.test.ts +5 -4
- package/src/core/kernel/handlers.ts +7 -4
- package/src/core/network/DeferredRequestRegistry.ts +2 -2
- package/src/core/network/__tests__/CachingRequestRegistry.test.ts +9 -10
- package/src/core/network/__tests__/DeferredRequestRegistry.test.ts +4 -6
- package/src/core/network/requests-lazy.ts +1 -0
- package/src/core/network/requests-network.ts +9 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +5 -0
- package/src/core/static/__tests__/virtual-file-tracker.test.ts +8 -8
- package/src/core/static/virtual-file-tracker.ts +1 -1
- package/src/core/storage/__tests__/state.test.ts +31 -21
- package/src/core/storage/state.ts +1 -1
- package/src/core/variables/__tests__/state.test.ts +6 -6
- package/src/core/variables/types.ts +2 -2
- package/src/core/wasm/__tests__/state.test.ts +8 -8
- package/src/core/wasm/bridge.ts +1 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +31 -16
- package/src/css/app/fonts.css +6 -6
- package/src/css/md-tooltip.css +4 -39
- package/src/css/md.css +7 -0
- package/src/fonts/Fira_Mono/FiraMono-Bold.woff2 +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Medium.woff2 +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Regular.woff2 +0 -0
- package/src/fonts/Lora/Lora-VariableFont_wght.woff2 +0 -0
- package/src/fonts/PT_Sans/PTSans-Bold.woff2 +0 -0
- package/src/fonts/PT_Sans/PTSans-Regular.woff2 +0 -0
- package/src/plugins/core/RenderHTML.tsx +17 -0
- package/src/plugins/core/__test__/RenderHTML.test.ts +45 -0
- package/src/plugins/core/sanitize-html.ts +25 -18
- package/src/plugins/impl/DataTablePlugin.tsx +23 -2
- package/src/plugins/impl/SliderPlugin.tsx +1 -3
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +120 -0
- package/src/plugins/impl/anywidget/model.ts +1 -2
- package/src/stories/cell.stories.tsx +8 -8
- package/src/stories/layout/vertical/one-column.stories.tsx +9 -8
- package/src/stories/log-viewer.stories.tsx +8 -8
- package/src/stories/variables.stories.tsx +2 -2
- package/src/utils/__tests__/download.test.tsx +21 -20
- package/src/utils/copy.ts +18 -5
- package/src/utils/createReducer.ts +26 -11
- package/src/utils/download.ts +4 -3
- package/src/utils/html-to-image.ts +6 -0
- package/src/utils/json/base64.ts +3 -3
- package/src/utils/traceback.ts +5 -3
- package/dist/assets/CellStatus-CDSBsjjF.js +0 -1
- package/dist/assets/ConnectedDataExplorerComponent-Buaffg3u.js +0 -1
- package/dist/assets/DeferredRequestRegistry-O6RDJKs0.js +0 -1
- package/dist/assets/FiraMono-Bold-CLVRCuM9.ttf +0 -0
- package/dist/assets/FiraMono-Medium-DU3aDxX5.ttf +0 -0
- package/dist/assets/FiraMono-Regular-BTCkDNvf.ttf +0 -0
- package/dist/assets/ImperativeModal-qEtcJ95s.js +0 -1
- package/dist/assets/JsonOutput-DKXKGKvX.js +0 -46
- package/dist/assets/LazyAnyLanguageCodeMirror-m8w66E4s.js +0 -2
- package/dist/assets/Lora-VariableFont_wght-B2ootaw-.ttf +0 -0
- package/dist/assets/MarimoErrorOutput-az74f3Mp.js +0 -7
- package/dist/assets/PTSans-Bold-D9fedIX3.ttf +0 -0
- package/dist/assets/PTSans-Regular-CxL0S8W7.ttf +0 -0
- package/dist/assets/RenderHTML-DJ8khuob.js +0 -1
- package/dist/assets/add-cell-with-ai-DUn4LN4W.js +0 -92
- package/dist/assets/add-connection-dialog-CBz0AUVX.js +0 -167
- package/dist/assets/agent-panel-u83dsDsM.js +0 -287
- package/dist/assets/ai-model-dropdown-DPTa_EpU.js +0 -5
- package/dist/assets/alert-dialog-9WfvUF7e.js +0 -11
- package/dist/assets/any-language-editor-DwQMnAM3.js +0 -1
- package/dist/assets/apl-CWQZjEHB.js +0 -1
- package/dist/assets/app-config-button-rDu-lCIB.js +0 -1
- package/dist/assets/arc-BrTIAGt4.js +0 -1
- package/dist/assets/architecture-7HQA4BMR-BewjmwdA.js +0 -1
- package/dist/assets/architectureDiagram-VXUJARFQ-DfMHHFZ3.js +0 -36
- package/dist/assets/asciiarmor-YkqeOS7J.js +0 -1
- package/dist/assets/asn1-CXKIzj3m.js +0 -1
- package/dist/assets/azure-BTXHztTw.js +0 -1
- package/dist/assets/blockDiagram-VD42YOAC-CuEDwbg7.js +0 -122
- package/dist/assets/brainfuck-BATyDEza.js +0 -1
- package/dist/assets/c4Diagram-YG6GDRKO-CD9uz7WG.js +0 -10
- package/dist/assets/cache-panel-qIxnndwr.js +0 -1
- package/dist/assets/cell-editor-DX7IcqNr.js +0 -23
- package/dist/assets/cell-link-Q_UEP94Z.js +0 -1
- package/dist/assets/cells-fq1RMGX_.js +0 -229
- package/dist/assets/channel-CkT8Qdo2.js +0 -1
- package/dist/assets/chat-display-D_Fuuy6r.js +0 -1
- package/dist/assets/chat-panel-BO-JoQSp.js +0 -3
- package/dist/assets/chunk-4BX2VUAB-DOQhLGwX.js +0 -1
- package/dist/assets/chunk-55IACEB6-D0TKhzEY.js +0 -1
- package/dist/assets/chunk-5FQGJX7Z-CM1a_K7I.js +0 -113
- package/dist/assets/chunk-ABZYJK2D-D_Wumzom.js +0 -80
- package/dist/assets/chunk-ATLVNIR6-BZ0lTgIn.js +0 -1
- package/dist/assets/chunk-B4BG7PRW-Dw1S6osV.js +0 -165
- package/dist/assets/chunk-CVBHYZKI-BmNXddyI.js +0 -1
- package/dist/assets/chunk-DI55MBZ5-Q63FTCPP.js +0 -220
- package/dist/assets/chunk-EXTU4WIE-CfkJ_R7W.js +0 -1
- package/dist/assets/chunk-FMBD7UC4-BF_CXOnN.js +0 -15
- package/dist/assets/chunk-HN2XXSSU-BstCPYtG.js +0 -1
- package/dist/assets/chunk-JA3XYJ7Z-B41fGeoj.js +0 -70
- package/dist/assets/chunk-JZLCHNYA-D43EJxQw.js +0 -54
- package/dist/assets/chunk-MI3HLSF2-BceZdyTR.js +0 -32
- package/dist/assets/chunk-N4CR4FBY-DCtw0-ni.js +0 -2
- package/dist/assets/chunk-QN33PNHL-CLA2rsaS.js +0 -1
- package/dist/assets/chunk-QXUST7PY-De1DpbnL.js +0 -7
- package/dist/assets/chunk-QZHKN3VN-D3EIvP2i.js +0 -1
- package/dist/assets/chunk-S3R3BYOJ-qrwvlUdq.js +0 -2
- package/dist/assets/chunk-TZMSLE5B-C4KcThb0.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-BhMT_rTz.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-D-F4WEyb.js +0 -1
- package/dist/assets/clike-C3ewt06X.js +0 -1
- package/dist/assets/clojure-DSdxtK57.js +0 -1
- package/dist/assets/cmake-b6COJhkL.js +0 -1
- package/dist/assets/cobol-0au-d4Af.js +0 -1
- package/dist/assets/code-block-37QAKDTI-D4FF4cnN.js +0 -2
- package/dist/assets/coffeescript-CO6miDRN.js +0 -1
- package/dist/assets/column-preview-WsubyItX.js +0 -1
- package/dist/assets/command-palette-Bez4BqJF.js +0 -1
- package/dist/assets/command-rfxSsiHU.js +0 -1
- package/dist/assets/common-BYwO983A.js +0 -1
- package/dist/assets/commonlisp-ViswrHum.js +0 -1
- package/dist/assets/components-Bpgzv_5_.js +0 -1
- package/dist/assets/components-Ozq0825a.js +0 -1
- package/dist/assets/config-3Aq84phF.js +0 -1
- package/dist/assets/context-CIAP2NOh.js +0 -1
- package/dist/assets/context-aware-panel-CfsfBlhO.js +0 -3
- package/dist/assets/copy-YwM0Pd7v.js +0 -1
- package/dist/assets/copy-icon-BgmMM9Zg.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-Bd5HJPaN.js +0 -1
- package/dist/assets/createReducer-Drh7NmIR.js +0 -1
- package/dist/assets/crystal-BcOI1XlU.js +0 -1
- package/dist/assets/css-CCWfM5vT.js +0 -1
- package/dist/assets/cypher-BKbuDk70.js +0 -1
- package/dist/assets/d-4fbeW9Dj.js +0 -1
- package/dist/assets/dagre-6UL2VRFP-BhMnPhuU.js +0 -4
- package/dist/assets/data-grid-overlay-editor-kbv73SQ7.js +0 -1
- package/dist/assets/datasource-F9sJtuof.js +0 -3
- package/dist/assets/dates-CHaNfieI.js +0 -1
- package/dist/assets/dependency-graph-panel-AOBcX2tP.js +0 -5
- package/dist/assets/diagram-PSM6KHXK-Cr2t4zul.js +0 -24
- package/dist/assets/diagram-QEK2KX5R-DLU_hSO4.js +0 -43
- package/dist/assets/diagram-S2PKOQOG-C7EkNAO3.js +0 -24
- package/dist/assets/dialog-CVN1lcMF.js +0 -1
- package/dist/assets/diff-CV59_hp-.js +0 -1
- package/dist/assets/dist-6FIAeDIu.js +0 -1
- package/dist/assets/dist-BNC_tnlW.js +0 -6
- package/dist/assets/dist-BTqMkf4j.js +0 -1
- package/dist/assets/dist-BXXPfIam.js +0 -1
- package/dist/assets/dist-BZeePkbd.js +0 -1
- package/dist/assets/dist-BiZQlfhr.js +0 -1
- package/dist/assets/dist-BoDHthoc.js +0 -1
- package/dist/assets/dist-Br306776.js +0 -1
- package/dist/assets/dist-Br4KMeY4.js +0 -1
- package/dist/assets/dist-By6zhkxZ.js +0 -1
- package/dist/assets/dist-C3MmXcLA.js +0 -1
- package/dist/assets/dist-CXLJUPFl.js +0 -1
- package/dist/assets/dist-CblX3KGI.js +0 -1
- package/dist/assets/dist-CcGcwrUD.js +0 -1
- package/dist/assets/dist-ClzRAVN-.js +0 -1
- package/dist/assets/dist-Cp60fE5Z.js +0 -1
- package/dist/assets/dist-CsRbK9-Y.js +0 -1
- package/dist/assets/dist-DHw9sXeN.js +0 -1
- package/dist/assets/dist-DJBpXGro.js +0 -1
- package/dist/assets/dist-DVbTmqCA.js +0 -1
- package/dist/assets/dist-DbK_4_qo.js +0 -1
- package/dist/assets/dist-DlTbNRBn.js +0 -1
- package/dist/assets/dist-DrceDAhM.js +0 -1
- package/dist/assets/dist-Du0qZeXz.js +0 -1
- package/dist/assets/dist-Tk70DR_I.js +0 -1
- package/dist/assets/dist-a0FfbvMD.js +0 -1
- package/dist/assets/dist-cfkfP0ni.js +0 -1
- package/dist/assets/dist-e6Ho4upI.js +0 -1
- package/dist/assets/dist-mxGLXOFm.js +0 -1
- package/dist/assets/dist-pzQ9JG-p.js +0 -1
- package/dist/assets/dockerfile-ClV2Mqz8.js +0 -1
- package/dist/assets/documentation-panel-D28MpqbI.js +0 -1
- package/dist/assets/download-B9_ToVd4.js +0 -9
- package/dist/assets/dropdown-menu-DdPu5Kfu.js +0 -1
- package/dist/assets/dtd-BAjS2EMD.js +0 -1
- package/dist/assets/dylan-CjAEbzAl.js +0 -1
- package/dist/assets/ecl-DegMF2Uo.js +0 -1
- package/dist/assets/edit-page-otS-QvnC.js +0 -13
- package/dist/assets/eiffel-D_UXtJqE.js +0 -1
- package/dist/assets/elm-CV-6VdWh.js +0 -1
- package/dist/assets/en-US-BO8E69bZ.js +0 -1
- package/dist/assets/erDiagram-Q2GNP2WA-DqlEo_Us.js +0 -60
- package/dist/assets/erlang-C3Vp1oq_.js +0 -1
- package/dist/assets/error-banner-BRG6IPhC.js +0 -1
- package/dist/assets/error-panel-RRoj_iOR.js +0 -1
- package/dist/assets/es-CzkousWe.js +0 -5
- package/dist/assets/esm-CBkHtTOV.js +0 -1
- package/dist/assets/esm-DhTsVMLM.js +0 -1
- package/dist/assets/factor-CBMQHXUW.js +0 -1
- package/dist/assets/factor-CrpY0izf.js +0 -1
- package/dist/assets/field-B1jGbQlH.js +0 -1
- package/dist/assets/file-explorer-panel-CB8vF5ob.js +0 -26
- package/dist/assets/file-icons-CWLHDa1J.js +0 -1
- package/dist/assets/floating-outline-BvQKiC0F.js +0 -1
- package/dist/assets/flowDiagram-NV44I4VS-CQlIJ12H.js +0 -162
- package/dist/assets/focus-DYwTiH9-.js +0 -1
- package/dist/assets/form-CrQYrsUC.js +0 -2
- package/dist/assets/formats-rhOJovGE.js +0 -1
- package/dist/assets/formatting-B4ZCH3ol.js +0 -1
- package/dist/assets/forth-C_TcrpRK.js +0 -1
- package/dist/assets/fortran-DOs2FQj2.js +0 -1
- package/dist/assets/gallery-page-eRea0yic.js +0 -1
- package/dist/assets/ganttDiagram-JELNMOA3-B3EGIuZL.js +0 -267
- package/dist/assets/gas-Cg-F3pmb.js +0 -1
- package/dist/assets/gherkin-CaXqq9kA.js +0 -1
- package/dist/assets/gitGraph-G5XIXVHT-iDzw7G2X.js +0 -1
- package/dist/assets/gitGraphDiagram-V2S2FVAM-h5SlguJK.js +0 -65
- package/dist/assets/glide-data-editor-xt5xNZeV.js +0 -132
- package/dist/assets/globals-BsV5fVR-.js +0 -1
- package/dist/assets/groovy-DmxumoMi.js +0 -1
- package/dist/assets/haskell-BZ-cKqgz.js +0 -1
- package/dist/assets/haxe-x-4elm0t.js +0 -1
- package/dist/assets/home-page-itW0tRmv.js +0 -4
- package/dist/assets/hooks-CHx5dUUq.js +0 -1
- package/dist/assets/html-to-image-BnSc-Wa0.js +0 -2
- package/dist/assets/idl-DNkkzHKH.js +0 -1
- package/dist/assets/index-0n92c_W7.js +0 -38
- package/dist/assets/index-GjXovVsl.css +0 -2
- package/dist/assets/info-VBDWY6EO-CPHm9IfG.js +0 -1
- package/dist/assets/infoDiagram-HS3SLOUP-pzpClObZ.js +0 -2
- package/dist/assets/input-CUwqpKjd.js +0 -1
- package/dist/assets/isValid-BGe7pJXT.js +0 -1
- package/dist/assets/javascript-B0uQ9oZ_.js +0 -1
- package/dist/assets/journeyDiagram-XKPGCS4Q-BrdRi92v.js +0 -139
- package/dist/assets/julia-DBflXO9b.js +0 -1
- package/dist/assets/kanban-definition-3W4ZIXB7-B6WqgFqh.js +0 -89
- package/dist/assets/katex-YDobqqVd.js +0 -1
- package/dist/assets/kiosk-mode-DNjEnIWb.js +0 -1
- package/dist/assets/label-TNNaT1M9.js +0 -1
- package/dist/assets/layout-CwFtCyW8.js +0 -5
- package/dist/assets/line-BBSd2MUH.js +0 -1
- package/dist/assets/linear-BP9rwmWK.js +0 -1
- package/dist/assets/links-CIQwYQ48.js +0 -1
- package/dist/assets/livescript-DRwwdQDY.js +0 -1
- package/dist/assets/logs-panel-BU1tNEVc.js +0 -1
- package/dist/assets/loro_wasm_bg-MY7PmKYj.js +0 -1
- package/dist/assets/lua-D_CRYz1e.js +0 -1
- package/dist/assets/markdown-renderer-MR9df58W.js +0 -10
- package/dist/assets/mathematica-D28k0VAB.js +0 -1
- package/dist/assets/mbox-B74-q1nN.js +0 -1
- package/dist/assets/menu-items-UxKrm8hS.js +0 -1
- package/dist/assets/mermaid-4DMBBIKO-PoHnhmy8.js +0 -1
- package/dist/assets/mermaid-Djr3jUAB.js +0 -11
- package/dist/assets/mermaid-parser.core-DR82IMb2.js +0 -4
- package/dist/assets/mhchem-B98RQJ-y.js +0 -1
- package/dist/assets/mindmap-definition-VGOIOE7T-DAmJpbPM.js +0 -68
- package/dist/assets/mirc-CW8yiVay.js +0 -1
- package/dist/assets/mllike-BwZpH7CZ.js +0 -1
- package/dist/assets/mode-AcL8c6qH.js +0 -1
- package/dist/assets/modelica-AhRO-ii8.js +0 -1
- package/dist/assets/mscgen-CJZUmlSk.js +0 -1
- package/dist/assets/multi-map-Pp1P2DOX.js +0 -1
- package/dist/assets/mumps-BTPWDvZ1.js +0 -1
- package/dist/assets/name-cell-input-DVFEv_aO.js +0 -1
- package/dist/assets/nsis-BeaU1Q2K.js +0 -1
- package/dist/assets/nsis-CuVPiHG5.js +0 -1
- package/dist/assets/ntriples-eNmSbiOL.js +0 -1
- package/dist/assets/number-overlay-editor-D__AflXQ.js +0 -9
- package/dist/assets/octave-BboqqX2Z.js +0 -1
- package/dist/assets/ordinal-BjO5SoTk.js +0 -1
- package/dist/assets/outline-panel-CP0oIuiU.js +0 -1
- package/dist/assets/oz-eUT9rD_n.js +0 -1
- package/dist/assets/packages-panel-CzRELimG.js +0 -1
- package/dist/assets/packet-DYOGHKS2-0KdzLf9c.js +0 -1
- package/dist/assets/panels-wTweRyIv.js +0 -1
- package/dist/assets/pascal-Bl9h-Ruv.js +0 -1
- package/dist/assets/perl-B1GdYx3j.js +0 -1
- package/dist/assets/pie-VRWISCQL-C6EIS9iq.js +0 -1
- package/dist/assets/pieDiagram-ADFJNKIX-DbGIFRoq.js +0 -30
- package/dist/assets/pig-CoZHWNtw.js +0 -1
- package/dist/assets/popover-BPGG2gPG.js +0 -1
- package/dist/assets/powershell-B2p71KcT.js +0 -1
- package/dist/assets/precisionRound-BOmLQIKI.js +0 -1
- package/dist/assets/process-output-CTVsT--B.js +0 -1
- package/dist/assets/properties-Cs9aaJGK.js +0 -1
- package/dist/assets/protobuf-DFCnQG_o.js +0 -1
- package/dist/assets/pug-BShaWOtD.js +0 -1
- package/dist/assets/pug-v81J9ytZ.js +0 -1
- package/dist/assets/puppet-4yIFv98Z.js +0 -1
- package/dist/assets/python-ByMRQ0aE.js +0 -1
- package/dist/assets/q-C7EgGttK.js +0 -1
- package/dist/assets/quadrantDiagram-AYHSOK5B-CLAtyple.js +0 -7
- package/dist/assets/r-DpLLx5HE.js +0 -1
- package/dist/assets/radar-ZZBFDIW7-IOV25h32.js +0 -1
- package/dist/assets/react-vega-BZav_-2n.js +0 -190
- package/dist/assets/react-vega-Da-Ps9UW.js +0 -1
- package/dist/assets/readonly-python-code-DH-1xZGq.js +0 -1
- package/dist/assets/renderShortcut-CnD1Dah5.js +0 -1
- package/dist/assets/request-registry-B-7cIM_I.js +0 -1
- package/dist/assets/requirementDiagram-UZGBJVZJ-DDDTB1LD.js +0 -64
- package/dist/assets/rpm-DlCq0FVA.js +0 -1
- package/dist/assets/ruby-BGmSEBWH.js +0 -1
- package/dist/assets/run-page-FCvGnICa.js +0 -1
- package/dist/assets/runs-Bhy0tbWr.js +0 -1
- package/dist/assets/sankeyDiagram-TZEHDZUN-DAWPOfBw.js +0 -10
- package/dist/assets/sas-CFcv5xFe.js +0 -1
- package/dist/assets/scheme-BgRfkNY3.js +0 -1
- package/dist/assets/scratchpad-panel-k9lrm-rC.js +0 -1
- package/dist/assets/secrets-panel-B1Z-6dmz.js +0 -1
- package/dist/assets/select-CxT2Geqr.js +0 -1
- package/dist/assets/sequenceDiagram-WL72ISMW-D_qAidD2.js +0 -145
- package/dist/assets/session-panel-WhN0qilM.js +0 -1
- package/dist/assets/share-BdH_5I58.js +0 -1
- package/dist/assets/shell-CKQz0rkv.js +0 -1
- package/dist/assets/sieve-D0P6XnTD.js +0 -1
- package/dist/assets/slides-component-Brm_TS4x.js +0 -1
- package/dist/assets/smalltalk-Dcg9QwVr.js +0 -1
- package/dist/assets/snippets-panel-BCDHUuku.js +0 -1
- package/dist/assets/sparql-f01xs6VH.js +0 -1
- package/dist/assets/spec-DbmSqx09.js +0 -1
- package/dist/assets/src-Bp_72rVO.js +0 -1
- package/dist/assets/state-3V5UxC3B.js +0 -1
- package/dist/assets/state-CBmCYWFH.js +0 -1
- package/dist/assets/state-Ce7CVShi.js +0 -1
- package/dist/assets/stateDiagram-FKZM4ZOC-C7qgDrGA.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-CEqeIlM0.js +0 -1
- package/dist/assets/step-BkfKj3CL.js +0 -1
- package/dist/assets/stex-BBWVYm-R.js +0 -1
- package/dist/assets/stylus-BjzHGGgo.js +0 -1
- package/dist/assets/swift-DOptU29u.js +0 -1
- package/dist/assets/switch-CVKxYu_0.js +0 -1
- package/dist/assets/tcl-vC8etUeQ.js +0 -1
- package/dist/assets/terminal-Cr7wbEjz.js +0 -62
- package/dist/assets/textile-BfLqcKXP.js +0 -1
- package/dist/assets/time-D2GKc0U6.js +0 -1
- package/dist/assets/timeline-definition-IT6M3QCI-hd6uJKGs.js +0 -61
- package/dist/assets/toggle-RCwU-rnE.js +0 -1
- package/dist/assets/toml-rX0_Isgp.js +0 -1
- package/dist/assets/tooltip-D9723Brr.js +0 -1
- package/dist/assets/tracing-DUVd0jtl.js +0 -1
- package/dist/assets/tracing-panel-CuTxPn_x.js +0 -2
- package/dist/assets/tree-Ch2-GuhG.js +0 -3
- package/dist/assets/treemap-GDKQZRPO-BUa0eLeZ.js +0 -1
- package/dist/assets/troff-C1lPb0WN.js +0 -1
- package/dist/assets/ttcn-D5dxusfs.js +0 -1
- package/dist/assets/ttcn-cfg-Dj2ybct-.js +0 -1
- package/dist/assets/turtle-BiTItqZm.js +0 -1
- package/dist/assets/useAddCell-YC7rpcmD.js +0 -1
- package/dist/assets/useBoolean-m1e6E3Ao.js +0 -1
- package/dist/assets/useCellActionButton-GUb2fXU8.js +0 -1
- package/dist/assets/useDateFormatter-CpE7XQLs.js +0 -1
- package/dist/assets/useDeleteCell-DRUDRiy0.js +0 -1
- package/dist/assets/useDependencyPanelTab-nFVMlEx0.js +0 -1
- package/dist/assets/useInstallPackage-C9V-on2J.js +0 -1
- package/dist/assets/useNotebookActions-ChLHy-0O.js +0 -1
- package/dist/assets/useNumberFormatter-DbDKSvEd.js +0 -1
- package/dist/assets/usePress-BHGkpw8X.js +0 -7
- package/dist/assets/useRunCells-5m6jCnyo.js +0 -1
- package/dist/assets/useSplitCell-DGD9smMq.js +0 -1
- package/dist/assets/utils-CdjCA1J8.js +0 -61
- package/dist/assets/vb-roE2hgal.js +0 -1
- package/dist/assets/vbscript-2s97682t.js +0 -1
- package/dist/assets/vega-component-CRbeDmeM.js +0 -1
- package/dist/assets/vega-loader.browser-CZV6_g2i.js +0 -6
- package/dist/assets/velocity-D0YPg3VZ.js +0 -1
- package/dist/assets/verilog-Btszgjcd.js +0 -1
- package/dist/assets/vhdl-enS91NZh.js +0 -1
- package/dist/assets/webidl-DQMyFjhm.js +0 -1
- package/dist/assets/write-secret-modal-BCvuRAFb.js +0 -1
- package/dist/assets/xquery-D5Jh9c_Z.js +0 -1
- package/dist/assets/xychartDiagram-PRI3JC2R-CXlUBSbQ.js +0 -7
- package/dist/assets/yacas-CTzSIaAf.js +0 -1
- package/dist/assets/z80-Dt0hdUwP.js +0 -1
- package/src/fonts/Fira_Mono/FiraMono-Bold.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Medium.ttf +0 -0
- package/src/fonts/Fira_Mono/FiraMono-Regular.ttf +0 -0
- package/src/fonts/Lora/Lora-Italic-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/Lora-VariableFont_wght.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Bold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-BoldItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Italic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Medium.ttf +0 -0
- package/src/fonts/Lora/static/Lora-MediumItalic.ttf +0 -0
- package/src/fonts/Lora/static/Lora-Regular.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBold.ttf +0 -0
- package/src/fonts/Lora/static/Lora-SemiBoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
- package/src/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
- /package/dist/assets/{Combination-Cs9nbinQ.js → Combination-CSPK4t6z.js} +0 -0
- /package/dist/assets/{Deferred-BMfCOLaw.js → Deferred-CfyqLOPG.js} +0 -0
- /package/dist/assets/{ImageComparisonComponent-DvDPDgw3.js → ImageComparisonComponent-Cw3aoN3z.js} +0 -0
- /package/dist/assets/{Inputs-D5kI9GwB.js → Inputs-CsxDtqlI.js} +0 -0
- /package/dist/assets/{Plot-DQQQ-fLA.js → Plot-eiPFedH2.js} +0 -0
- /package/dist/assets/{SSRProvider-DC7ElCZZ.js → SSRProvider-BkypbMcb.js} +0 -0
- /package/dist/assets/{alert-OQZHipbB.js → alert-NjVFesQm.js} +0 -0
- /package/dist/assets/{apl-CexVE068.js → apl-D8X_E6Wh.js} +0 -0
- /package/dist/assets/{array-psg969PF.js → array-CEZNxKGf.js} +0 -0
- /package/dist/assets/{asciiarmor-DzdXFxI-.js → asciiarmor-DeecVuRW.js} +0 -0
- /package/dist/assets/{asn1-lKNP6w4p.js → asn1-C9WWFN1p.js} +0 -0
- /package/dist/assets/{asterisk-Bjb62jej.js → asterisk-Dykb_Qas.js} +0 -0
- /package/dist/assets/{badge-hTpPIsMT.js → badge-DImLVznf.js} +0 -0
- /package/dist/assets/{blob-CObhN-9g.js → blob-C3EfaMOb.js} +0 -0
- /package/dist/assets/{bot-message-square-CK6eoGWy.js → bot-message-square-Dw41U6lL.js} +0 -0
- /package/dist/assets/{brainfuck-pTL_9bJ7.js → brainfuck-Cl6gOsOa.js} +0 -0
- /package/dist/assets/{bundle.esm-idScn0w0.js → bundle.esm-_LzfhNmX.js} +0 -0
- /package/dist/assets/{card-C-c-4jyF.js → card-OaQlvpSl.js} +0 -0
- /package/dist/assets/{chart-no-axes-column-DV8gdCvH.js → chart-no-axes-column-a9XtWmzk.js} +0 -0
- /package/dist/assets/{check-BE0hEwVo.js → check-DZA_bRpw.js} +0 -0
- /package/dist/assets/{chevron-right-D0GQBpTb.js → chevron-right-CvVxySQk.js} +0 -0
- /package/dist/assets/{chunk-4F5CHEZ2-BGeTOmrq.js → chunk-4F5CHEZ2-Bghwh3ep.js} +0 -0
- /package/dist/assets/{chunk-B2363JML-Cmh9TPpj.js → chunk-B2363JML-B3wWt_gr.js} +0 -0
- /package/dist/assets/{chunk-DR5Q36YT-SM9ZwAOv.js → chunk-DR5Q36YT-DOSR70sR.js} +0 -0
- /package/dist/assets/{chunk-FRFDVMJY-CUDE-MUX.js → chunk-FRFDVMJY-D9fs6vlF.js} +0 -0
- /package/dist/assets/{chunk-PL6DKKU2-DMqBvHTF.js → chunk-PL6DKKU2-CdtxnIBd.js} +0 -0
- /package/dist/assets/{chunk-SJTYNZTY-C9cwtT3h.js → chunk-SJTYNZTY-CMwkFD7U.js} +0 -0
- /package/dist/assets/{chunk-TQ3KTPDO-CUyT9lNN.js → chunk-TQ3KTPDO-0Us1NWXT.js} +0 -0
- /package/dist/assets/{chunk-UMXZTB3W-Bt-_br31.js → chunk-UMXZTB3W-zYd--p4q.js} +0 -0
- /package/dist/assets/{circle-check-gLIOLu8x.js → circle-check-CbaVeozR.js} +0 -0
- /package/dist/assets/{circle-play-DYGULlKZ.js → circle-play-DYn5nR6N.js} +0 -0
- /package/dist/assets/{circle-plus-CGG-gArM.js → circle-plus-nCze0-py.js} +0 -0
- /package/dist/assets/{clear-button-DrIF5o__.js → clear-button-CsNT-Tql.js} +0 -0
- /package/dist/assets/{click-outside-container-CagwJLiG.js → click-outside-container-gHk0jCel.js} +0 -0
- /package/dist/assets/{clike-BCxd7pZ9.js → clike-BuY5U60j.js} +0 -0
- /package/dist/assets/{clipboard-paste-DoYSN8Sv.js → clipboard-paste-EHXeKq9D.js} +0 -0
- /package/dist/assets/{clojure-CPAS-74L.js → clojure-C8jGLyPy.js} +0 -0
- /package/dist/assets/{cmake-DMONEHtp.js → cmake-DcjYbevD.js} +0 -0
- /package/dist/assets/{cobol-0rQGzjf0.js → cobol-C-nFr8y5.js} +0 -0
- /package/dist/assets/{code-xml-DwHPF_nL.js → code-xml-BlrJCgNZ.js} +0 -0
- /package/dist/assets/{coffeescript-BHNUw4aR.js → coffeescript-VbbBP-Cm.js} +0 -0
- /package/dist/assets/{colors-WO6MvCS3.js → colors-Dm6L93c7.js} +0 -0
- /package/dist/assets/{common-keywords-D_14jCw0.js → common-keywords-sop6vXJR.js} +0 -0
- /package/dist/assets/{commonlisp-Cjiyl45-.js → commonlisp-mLMub2u_.js} +0 -0
- /package/dist/assets/{copy-CkudG0Ej.js → copy-D6N1-xc1.js} +0 -0
- /package/dist/assets/{crystal-CUMDisY2.js → crystal-Buc8hu84.js} +0 -0
- /package/dist/assets/{css-B6NFOUor.js → css-DtNg2SPz.js} +0 -0
- /package/dist/assets/{cypher-DcWJtLBw.js → cypher-wyT0Afvt.js} +0 -0
- /package/dist/assets/{cytoscape.esm-DuXIsNbY.js → cytoscape.esm-CuwfIk-V.js} +0 -0
- /package/dist/assets/{d-CpNp8oDv.js → d-KzUzEnwn.js} +0 -0
- /package/dist/assets/{database-zap-DTWCDKdn.js → database-zap-BIGMFOfP.js} +0 -0
- /package/dist/assets/{defaultLocale-OkOxlkkM.js → defaultLocale-DPBdGRrH.js} +0 -0
- /package/dist/assets/{defaultLocale-DK1MWd7f.js → defaultLocale-Lfi0pexn.js} +0 -0
- /package/dist/assets/{diff-BCFJsGHX.js → diff-zZX_BZ60.js} +0 -0
- /package/dist/assets/{dist-D9Vhptds.js → dist-2yYHES7B.js} +0 -0
- /package/dist/assets/{dist-CVEvQ1Ex.js → dist-4adVoHKM.js} +0 -0
- /package/dist/assets/{dist-ASlWkGgG.js → dist-8B3AWTCv.js} +0 -0
- /package/dist/assets/{dist-sVuk6mkQ.js → dist-AkjWZMeV.js} +0 -0
- /package/dist/assets/{dist-8UD0A5sU.js → dist-BF9S272t.js} +0 -0
- /package/dist/assets/{dist-BhNN2V5a.js → dist-BKm9wJTB.js} +0 -0
- /package/dist/assets/{dist-BR9zyVPH.js → dist-BacKBlEY.js} +0 -0
- /package/dist/assets/{dist-OxxI-HeS.js → dist-Bi4JuBeU.js} +0 -0
- /package/dist/assets/{dist-COnmrAVZ.js → dist-BjCIGEdQ.js} +0 -0
- /package/dist/assets/{dist-apDpadc4.js → dist-Bk1itfBD.js} +0 -0
- /package/dist/assets/{dist-DxrbvUBv.js → dist-CKX5rwHQ.js} +0 -0
- /package/dist/assets/{dist-DBPtheKQ.js → dist-CybQbPjb.js} +0 -0
- /package/dist/assets/{dist-CQqv2gQL.js → dist-Dm11d0_A.js} +0 -0
- /package/dist/assets/{dist-CgC048vN.js → dist-DzjL8iiW.js} +0 -0
- /package/dist/assets/{download-DBW9RXtT.js → download-nLboiTtW.js} +0 -0
- /package/dist/assets/{dtd-D7nO7isU.js → dtd-DrorhQz9.js} +0 -0
- /package/dist/assets/{duckdb-keywords-CSySeB8R.js → duckdb-keywords-CEWQs1NJ.js} +0 -0
- /package/dist/assets/{dylan-qEhlQv4l.js → dylan-B4r5umK9.js} +0 -0
- /package/dist/assets/{ebnf-KJaLpQez.js → ebnf-BoS8ZFT2.js} +0 -0
- /package/dist/assets/{ecl-cXHEjabG.js → ecl-Chc_DmTY.js} +0 -0
- /package/dist/assets/{eiffel-CUTEIYa-.js → eiffel-CIYqf7wj.js} +0 -0
- /package/dist/assets/{ellipsis-0_zJdF6H.js → ellipsis-d7eaKIFn.js} +0 -0
- /package/dist/assets/{ellipsis-vertical-CAB7tdza.js → ellipsis-vertical-DBQ5kWTo.js} +0 -0
- /package/dist/assets/{elm-DOfGHeKn.js → elm-Baq4wI8e.js} +0 -0
- /package/dist/assets/{emotion-is-prop-valid.esm-D1keIaYa.js → emotion-is-prop-valid.esm-lG8j6oqk.js} +0 -0
- /package/dist/assets/{empty-state-B_US46Us.js → empty-state-BBWqzODS.js} +0 -0
- /package/dist/assets/{erlang-B5R7Byby.js → erlang-xHcM8uVi.js} +0 -0
- /package/dist/assets/{errors-Bfogio62.js → errors-iwK4b4VF.js} +0 -0
- /package/dist/assets/{esm-CX-gNDKf.js → esm-DM72gy9Q.js} +0 -0
- /package/dist/assets/{extends-DRbCSry7.js → extends-B9D0JO9U.js} +0 -0
- /package/dist/assets/{eye-off-vwi9L975.js → eye-off-CF3GmvXV.js} +0 -0
- /package/dist/assets/{fcl-Cf241iHu.js → fcl-JwfU5Rr4.js} +0 -0
- /package/dist/assets/{file-DzHkbIdO.js → file-C-yMeaec.js} +0 -0
- /package/dist/assets/{file-headphone-B5q2Ow55.js → file-headphone-CPAP8asn.js} +0 -0
- /package/dist/assets/{file-plus-corner-lLQw9OnR.js → file-plus-corner-ks__N1mr.js} +0 -0
- /package/dist/assets/{forth-BjV8SV3p.js → forth-j6RT-cy6.js} +0 -0
- /package/dist/assets/{fortran-CvNblcug.js → fortran-Z7A59UbQ.js} +0 -0
- /package/dist/assets/{gas-D1YrZZUY.js → gas-5kgpLqGg.js} +0 -0
- /package/dist/assets/{gherkin-CAUl7roi.js → gherkin-KECBIOSQ.js} +0 -0
- /package/dist/assets/{github-BVtI-3F1.js → github-CRD4USKm.js} +0 -0
- /package/dist/assets/{groovy-CnmCDhLm.js → groovy-CocWwvHR.js} +0 -0
- /package/dist/assets/{haskell-qdBb4h_7.js → haskell-BVRegKDO.js} +0 -0
- /package/dist/assets/{haxe-MQhLSFhI.js → haxe-U6x7KK2i.js} +0 -0
- /package/dist/assets/{http-_roNBajA.js → http-BSf7msSy.js} +0 -0
- /package/dist/assets/{icons-CrUXojcA.js → icons-D4U3iRHj.js} +0 -0
- /package/dist/assets/{idl-CcZzcWCI.js → idl-Byd3Qhyl.js} +0 -0
- /package/dist/assets/{image-DXfkah9d.js → image-CfyJzBP9.js} +0 -0
- /package/dist/assets/{init-XMA8CWhh.js → init-BpLL1fe9.js} +0 -0
- /package/dist/assets/{javascript-hE4QNtKl.js → javascript-D0a_TZzL.js} +0 -0
- /package/dist/assets/{julia-BjrvvLkp.js → julia-CaxV2pJw.js} +0 -0
- /package/dist/assets/{katex-rvFxOCU-.js → katex-FSdXOW5Y.js} +0 -0
- /package/dist/assets/{kbd-DvKpAc6K.js → kbd-zZCuQN_1.js} +0 -0
- /package/dist/assets/{link-Cf10mh3t.js → link-_dbp0XNB.js} +0 -0
- /package/dist/assets/{links-DzgPOFJ-.js → links-BQHNKE3J.js} +0 -0
- /package/dist/assets/{livescript-B01pNEzu.js → livescript-CfGHFsX-.js} +0 -0
- /package/dist/assets/{loro_wasm_bg-CcIcmNa3.js → loro_wasm_bg-Bj93RhA2.js} +0 -0
- /package/dist/assets/{lua-BwfRgSM6.js → lua-DwgMJ83W.js} +0 -0
- /package/dist/assets/{maps-OKerBHH8.js → maps-DQsjfyTy.js} +0 -0
- /package/dist/assets/{marimo-icons-C_YDiXeg.js → marimo-icons-Cb4NA8Cp.js} +0 -0
- /package/dist/assets/{math-CeGhAAgQ.js → math-CpvW-dlE.js} +0 -0
- /package/dist/assets/{mathematica-DLi5eijp.js → mathematica-CUcY8E3Z.js} +0 -0
- /package/dist/assets/{mbox-QweTYWJQ.js → mbox-QWIxg89f.js} +0 -0
- /package/dist/assets/{mirc-1J5TZ8Tf.js → mirc-PcCLOR2R.js} +0 -0
- /package/dist/assets/{mllike-DRzCrpbj.js → mllike-JiC27gOy.js} +0 -0
- /package/dist/assets/{modelica-GZKavTLw.js → modelica-BcfhGWp8.js} +0 -0
- /package/dist/assets/{mscgen-HMNaCHuy.js → mscgen-C2sdz_zX.js} +0 -0
- /package/dist/assets/{multi-icon-DEWnuZs2.js → multi-icon-BIYBHgCy.js} +0 -0
- /package/dist/assets/{mumps-CzCxfP2m.js → mumps-DTtlu7TY.js} +0 -0
- /package/dist/assets/{nginx-Dfd7l9Sj.js → nginx-CNcs7tVC.js} +0 -0
- /package/dist/assets/{node-sql-parser-BvUFblwL.js → node-sql-parser-fWuidk6P.js} +0 -0
- /package/dist/assets/{ntriples-DT57g_ZF.js → ntriples-CHcftTy8.js} +0 -0
- /package/dist/assets/{numbers-CYnquDho.js → numbers-Bv8m4sHE.js} +0 -0
- /package/dist/assets/{objectWithoutPropertiesLoose-DP4vAkvg.js → objectWithoutPropertiesLoose-CboCOq4o.js} +0 -0
- /package/dist/assets/{octave-CtuTaUjQ.js → octave-D7F4qXl_.js} +0 -0
- /package/dist/assets/{oz-BS8LEqKx.js → oz-VftS117C.js} +0 -0
- /package/dist/assets/{panel-context-BN0DQXiK.js → panel-context-CcwYw5Eq.js} +0 -0
- /package/dist/assets/{pascal-Db0ZEHQw.js → pascal-CxVKwA9u.js} +0 -0
- /package/dist/assets/{path-CkIaQHJO.js → path-DtYs9Dst.js} +0 -0
- /package/dist/assets/{paths-D2lG83Oh.js → paths-BVwhPRFT.js} +0 -0
- /package/dist/assets/{perl-DgJKzgyz.js → perl-x4BFnPib.js} +0 -0
- /package/dist/assets/{pig-Dk6eYa40.js → pig-Dmhj3J78.js} +0 -0
- /package/dist/assets/{play-DKSqmedg.js → play-Bu_0ogGD.js} +0 -0
- /package/dist/assets/{plus-dVmh0yTy.js → plus-DJ99CUbx.js} +0 -0
- /package/dist/assets/{powershell-dW0qpS7j.js → powershell-Bg32vFxB.js} +0 -0
- /package/dist/assets/{preload-helper-BW0IMuFq.js → preload-helper-y72bE5iF.js} +0 -0
- /package/dist/assets/{prop-types-RrUi-pOT.js → prop-types-C638SUfx.js} +0 -0
- /package/dist/assets/{properties-oMha4ix2.js → properties-DQbiKM_q.js} +0 -0
- /package/dist/assets/{protobuf-CfWJ4EtB.js → protobuf-Sa3BXDQ1.js} +0 -0
- /package/dist/assets/{puppet-O2K_n-UM.js → puppet-CnXWm8bo.js} +0 -0
- /package/dist/assets/{purify.es-BBn8CPhf.js → purify.es-Cf8RQecB.js} +0 -0
- /package/dist/assets/{python-qMKsSr4L.js → python-B1WBAJzp.js} +0 -0
- /package/dist/assets/{q-ewn8d81Q.js → q-BqOVUYF0.js} +0 -0
- /package/dist/assets/{r-CqF-AjDv.js → r-BNvjQBjW.js} +0 -0
- /package/dist/assets/{range-DNqFcYmr.js → range-Dk7lXDev.js} +0 -0
- /package/dist/assets/{react-resizable-panels.browser.esm-DDRqG5ui.js → react-resizable-panels.browser.esm-RgA6v8U3.js} +0 -0
- /package/dist/assets/{refresh-ccw-DLpfIr8v.js → refresh-ccw-DQ6SJ8UC.js} +0 -0
- /package/dist/assets/{refresh-cw-CHAHPgkx.js → refresh-cw-Dg9tCj4k.js} +0 -0
- /package/dist/assets/{requests-CP6q3-4O.js → requests-xhM8i_W9.js} +0 -0
- /package/dist/assets/{rotate-ccw-hLlF_82X.js → rotate-ccw-BCkZViUZ.js} +0 -0
- /package/dist/assets/{rpm-BqLq138P.js → rpm-Cdb8SyEx.js} +0 -0
- /package/dist/assets/{ruby-CQfbO3YY.js → ruby-Csu3wroo.js} +0 -0
- /package/dist/assets/{sas-BmpgVn6Q.js → sas-NClU0xuj.js} +0 -0
- /package/dist/assets/{save-8fSvKYJT.js → save-CUdcv5qm.js} +0 -0
- /package/dist/assets/{scheme-rgyDg_wq.js → scheme-Hpx9xPN-.js} +0 -0
- /package/dist/assets/{session-BrEm7qNv.js → session-CByuQ-M-.js} +0 -0
- /package/dist/assets/{settings-CzQUw9rV.js → settings-B7nhfCat.js} +0 -0
- /package/dist/assets/{shell-Dndk6Ld6.js → shell-Cd99saJE.js} +0 -0
- /package/dist/assets/{sieve-bGgktpLX.js → sieve-D0zJ8TZ9.js} +0 -0
- /package/dist/assets/{simple-mode-oMMOWqWz.js → simple-mode-DpDBSVll.js} +0 -0
- /package/dist/assets/{smalltalk-CU43LrKS.js → smalltalk-BBBJczpn.js} +0 -0
- /package/dist/assets/{solr-CJeCgAfj.js → solr-B928KjNx.js} +0 -0
- /package/dist/assets/{sparql-BycKC3X4.js → sparql-uAF7_Z2_.js} +0 -0
- /package/dist/assets/{spinner-C5JoisA7.js → spinner-pCogyRyo.js} +0 -0
- /package/dist/assets/{spreadsheet-BYYvgLKe.js → spreadsheet-CAG48M_e.js} +0 -0
- /package/dist/assets/{sql-B5I6FC3m.js → sql-nk70rjN1.js} +0 -0
- /package/dist/assets/{square-CxAsQQ77.js → square-KVNDGpgy.js} +0 -0
- /package/dist/assets/{square-function-B006EYFX.js → square-function-BMNCw7Qb.js} +0 -0
- /package/dist/assets/{src-CW27-Kjl.js → src-BRLtyMKi.js} +0 -0
- /package/dist/assets/{stex-0ac7Aukl.js → stex-C6JeW1YI.js} +0 -0
- /package/dist/assets/{stylus-CePwhvgW.js → stylus-fMZU8VtG.js} +0 -0
- /package/dist/assets/{swift-CfgglXjR.js → swift-CkY7kBhf.js} +0 -0
- /package/dist/assets/{table-BhH-Mm8O.js → table-CA8eU1EB.js} +0 -0
- /package/dist/assets/{table-BCnp9gKC.js → table-Od8PbuV-.js} +0 -0
- /package/dist/assets/{tcl-D_gYSBm0.js → tcl-CS15Nqmn.js} +0 -0
- /package/dist/assets/{textile-BEvFU9wV.js → textile-BQsumqly.js} +0 -0
- /package/dist/assets/{tiddlywiki-hmNzZkq6.js → tiddlywiki-BiHxc-2_.js} +0 -0
- /package/dist/assets/{tiki-BL1SzuSx.js → tiki-Cwip62d7.js} +0 -0
- /package/dist/assets/{timer-CPT_vXom.js → timer-BEJidwwG.js} +0 -0
- /package/dist/assets/{toDate-BqKH-Jd9.js → toDate-Cfp9W_O9.js} +0 -0
- /package/dist/assets/{toml-DGJRpV2e.js → toml-CoHiT08x.js} +0 -0
- /package/dist/assets/{trash-2-CAoNMkjq.js → trash-2-Bc_J7TQO.js} +0 -0
- /package/dist/assets/{trash-BZMAQneW.js → trash-Cxd189Vw.js} +0 -0
- /package/dist/assets/{treemap-Cf5pgJDk.js → treemap-qinQgXo1.js} +0 -0
- /package/dist/assets/{triangle-alert-qZo1ox6x.js → triangle-alert-CzLrbLGN.js} +0 -0
- /package/dist/assets/{troff-CUlohIux.js → troff-CpFvF7Eq.js} +0 -0
- /package/dist/assets/{ttcn-nuQ3wCdy.js → ttcn-BjnqPnO0.js} +0 -0
- /package/dist/assets/{ttcn-cfg-DCxdE-sj.js → ttcn-cfg-D29EWwwv.js} +0 -0
- /package/dist/assets/{turtle-B2N96QpC.js → turtle-mWsfmaJW.js} +0 -0
- /package/dist/assets/{types-C1RN112u.js → types-CLOMZuqU.js} +0 -0
- /package/dist/assets/{types-BfP_kuAY.js → types-Myu7G9iV.js} +0 -0
- /package/dist/assets/{use-toast-Hc8CXlvz.js → use-toast-BtZldTi5.js} +0 -0
- /package/dist/assets/{useAsyncData-D-4ifFXh.js → useAsyncData-D-z1U8-c.js} +0 -0
- /package/dist/assets/{useDebounce-B0dx2Gp0.js → useDebounce-Ccai5RO4.js} +0 -0
- /package/dist/assets/{useDeepCompareMemoize-yyiB9aJX.js → useDeepCompareMemoize-D1hTncYV.js} +0 -0
- /package/dist/assets/{useIframeCapabilities-DTN9kFDq.js → useIframeCapabilities-CouCDnwL.js} +0 -0
- /package/dist/assets/{useInterval-BJucVdV-.js → useInterval-BckTGVbf.js} +0 -0
- /package/dist/assets/{useTheme-BYXBU1of.js → useTheme-KDW4sktg.js} +0 -0
- /package/dist/assets/{uuid-ClFZlR7U.js → uuid-BukULOeS.js} +0 -0
- /package/dist/assets/{vb-CBiIL_zx.js → vb-E2EKvwgc.js} +0 -0
- /package/dist/assets/{vbscript-B3Y69Iw0.js → vbscript-98sn9Pr4.js} +0 -0
- /package/dist/assets/{velocity-B5BPA7FX.js → velocity-DUbAzJtM.js} +0 -0
- /package/dist/assets/{verilog-BwmYR8E3.js → verilog-DK7zLFMr.js} +0 -0
- /package/dist/assets/{vhdl-VXFnDy2U.js → vhdl-B9Tq3stB.js} +0 -0
- /package/dist/assets/{web-vitals-BaMazlva.js → web-vitals-CJ8ovao_.js} +0 -0
- /package/dist/assets/{webidl-Bcmf9JWd.js → webidl-C5qiIEir.js} +0 -0
- /package/dist/assets/{workflow-BmeqNuSH.js → workflow-BqHyyStM.js} +0 -0
- /package/dist/assets/{ws-CBdPISJL.js → ws-D2eS61zr.js} +0 -0
- /package/dist/assets/{x-BI1M8X_v.js → x-CdLP7-v3.js} +0 -0
- /package/dist/assets/{xquery-8pWKOyFY.js → xquery-CmGczatZ.js} +0 -0
- /package/dist/assets/{yacas-BFcwo3Cx.js → yacas-BbepBpsT.js} +0 -0
- /package/dist/assets/{youtube-DE-Ej6FR.js → youtube-CfU-SnDw.js} +0 -0
- /package/dist/assets/{z80-t3SBb7Lt.js → z80-C2f-3LU8.js} +0 -0
|
@@ -6,6 +6,7 @@ import { EditorView } from "@codemirror/view";
|
|
|
6
6
|
import { createStore } from "jotai";
|
|
7
7
|
import {
|
|
8
8
|
afterAll,
|
|
9
|
+
afterEach,
|
|
9
10
|
beforeAll,
|
|
10
11
|
beforeEach,
|
|
11
12
|
describe,
|
|
@@ -14,8 +15,9 @@ import {
|
|
|
14
15
|
vi,
|
|
15
16
|
} from "vitest";
|
|
16
17
|
import { MockNotebook } from "@/__mocks__/notebook";
|
|
18
|
+
import { cellId } from "@/__tests__/branded";
|
|
17
19
|
import type { CellHandle } from "@/components/editor/notebook-cell";
|
|
18
|
-
import { CellId, SETUP_CELL_ID } from "@/core/cells/ids";
|
|
20
|
+
import { CellId, SCRATCH_CELL_ID, SETUP_CELL_ID } from "@/core/cells/ids";
|
|
19
21
|
import { foldAllBulk, unfoldAllBulk } from "@/core/codemirror/editing/commands";
|
|
20
22
|
import { adaptiveLanguageConfiguration } from "@/core/codemirror/language/extension";
|
|
21
23
|
import { OverridingHotkeyProvider } from "@/core/hotkeys/hotkeys";
|
|
@@ -28,6 +30,7 @@ import {
|
|
|
28
30
|
type NotebookState,
|
|
29
31
|
notebookAtom,
|
|
30
32
|
} from "../cells";
|
|
33
|
+
import { exportedForTesting as documentTransactionTestExports } from "../document-changes";
|
|
31
34
|
import {
|
|
32
35
|
focusAndScrollCellIntoView,
|
|
33
36
|
scrollToBottom,
|
|
@@ -84,7 +87,7 @@ function createEditor(content: string) {
|
|
|
84
87
|
extensions: [
|
|
85
88
|
python(),
|
|
86
89
|
adaptiveLanguageConfiguration({
|
|
87
|
-
cellId: "cell1"
|
|
90
|
+
cellId: cellId("cell1"),
|
|
88
91
|
completionConfig: {
|
|
89
92
|
activate_on_typing: true,
|
|
90
93
|
signature_hint_on_typing: false,
|
|
@@ -113,14 +116,16 @@ describe("cell reducer", () => {
|
|
|
113
116
|
|
|
114
117
|
const actions = createActions((action) => {
|
|
115
118
|
state = reducer(state, action);
|
|
116
|
-
for (const [
|
|
119
|
+
for (const [cellIdString, handle] of Object.entries(state.cellHandles)) {
|
|
120
|
+
// @ts-expect-error - Typescript Object.entries doesn't know that keys are CellId
|
|
121
|
+
const cid: CellId = cellIdString;
|
|
117
122
|
if (!handle.current) {
|
|
118
|
-
const view = createEditor(state.cellData[
|
|
123
|
+
const view = createEditor(state.cellData[cid].code);
|
|
119
124
|
const handle: CellHandle = {
|
|
120
125
|
editorView: view,
|
|
121
126
|
editorViewOrNull: view,
|
|
122
127
|
};
|
|
123
|
-
state.cellHandles[
|
|
128
|
+
state.cellHandles[cid] = { current: handle };
|
|
124
129
|
}
|
|
125
130
|
}
|
|
126
131
|
cells = flattenTopLevelNotebookCells(state);
|
|
@@ -131,7 +136,7 @@ describe("cell reducer", () => {
|
|
|
131
136
|
|
|
132
137
|
beforeAll(() => {
|
|
133
138
|
CellId.create = () => {
|
|
134
|
-
return `${i++}`
|
|
139
|
+
return cellId(`${i++}`);
|
|
135
140
|
};
|
|
136
141
|
});
|
|
137
142
|
|
|
@@ -144,6 +149,10 @@ describe("cell reducer", () => {
|
|
|
144
149
|
firstCellId = state.cellIds.inOrderIds[0];
|
|
145
150
|
});
|
|
146
151
|
|
|
152
|
+
afterEach(() => {
|
|
153
|
+
documentTransactionTestExports.cancelPendingChanges();
|
|
154
|
+
});
|
|
155
|
+
|
|
147
156
|
afterAll(() => {
|
|
148
157
|
CellId.create = originalCreate;
|
|
149
158
|
});
|
|
@@ -221,7 +230,7 @@ describe("cell reducer", () => {
|
|
|
221
230
|
`);
|
|
222
231
|
|
|
223
232
|
// Verify scrollKey is set to the restored cell
|
|
224
|
-
expect(state.scrollKey).toBe("2"
|
|
233
|
+
expect(state.scrollKey).toBe("2");
|
|
225
234
|
});
|
|
226
235
|
|
|
227
236
|
it("can delete a SQL cell and undo delete", () => {
|
|
@@ -362,7 +371,7 @@ describe("cell reducer", () => {
|
|
|
362
371
|
`);
|
|
363
372
|
|
|
364
373
|
// Add a column breakpoint to test left/right movement
|
|
365
|
-
actions.addColumnBreakpoint({ cellId: "1"
|
|
374
|
+
actions.addColumnBreakpoint({ cellId: cellId("1") });
|
|
366
375
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
367
376
|
"
|
|
368
377
|
> col 0
|
|
@@ -422,7 +431,7 @@ describe("cell reducer", () => {
|
|
|
422
431
|
|
|
423
432
|
// Try to move cell right when it's already in rightmost column (should noop)
|
|
424
433
|
actions.moveCell({
|
|
425
|
-
cellId: "1"
|
|
434
|
+
cellId: cellId("1"),
|
|
426
435
|
direction: "right",
|
|
427
436
|
});
|
|
428
437
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -442,7 +451,7 @@ describe("cell reducer", () => {
|
|
|
442
451
|
before: false,
|
|
443
452
|
});
|
|
444
453
|
actions.createNewCell({
|
|
445
|
-
cellId: "1"
|
|
454
|
+
cellId: cellId("1"),
|
|
446
455
|
before: false,
|
|
447
456
|
});
|
|
448
457
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -458,7 +467,7 @@ describe("cell reducer", () => {
|
|
|
458
467
|
// drag first cell to the end
|
|
459
468
|
actions.dropCellOverCell({
|
|
460
469
|
cellId: firstCellId,
|
|
461
|
-
overCellId: "2"
|
|
470
|
+
overCellId: cellId("2"),
|
|
462
471
|
});
|
|
463
472
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
464
473
|
"
|
|
@@ -473,7 +482,7 @@ describe("cell reducer", () => {
|
|
|
473
482
|
// drag it back to the middle
|
|
474
483
|
actions.dropCellOverCell({
|
|
475
484
|
cellId: firstCellId,
|
|
476
|
-
overCellId: "2"
|
|
485
|
+
overCellId: cellId("2"),
|
|
477
486
|
});
|
|
478
487
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
479
488
|
"
|
|
@@ -1001,7 +1010,7 @@ describe("cell reducer", () => {
|
|
|
1001
1010
|
data: [
|
|
1002
1011
|
{
|
|
1003
1012
|
msg: "This cell wasn't run because an ancestor was stopped with `mo.stop`: ",
|
|
1004
|
-
raising_cell: "2"
|
|
1013
|
+
raising_cell: "2",
|
|
1005
1014
|
type: "ancestor-stopped",
|
|
1006
1015
|
},
|
|
1007
1016
|
],
|
|
@@ -1284,8 +1293,8 @@ describe("cell reducer", () => {
|
|
|
1284
1293
|
|
|
1285
1294
|
it("can send a cell to the top", () => {
|
|
1286
1295
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1287
|
-
actions.createNewCell({ cellId: "1"
|
|
1288
|
-
actions.sendToTop({ cellId: "2"
|
|
1296
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1297
|
+
actions.sendToTop({ cellId: cellId("2") });
|
|
1289
1298
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
1290
1299
|
"
|
|
1291
1300
|
[2] ''
|
|
@@ -1299,7 +1308,7 @@ describe("cell reducer", () => {
|
|
|
1299
1308
|
|
|
1300
1309
|
it("can send a cell to the bottom", () => {
|
|
1301
1310
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1302
|
-
actions.createNewCell({ cellId: "1"
|
|
1311
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1303
1312
|
actions.sendToBottom({ cellId: firstCellId });
|
|
1304
1313
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
1305
1314
|
"
|
|
@@ -1314,12 +1323,12 @@ describe("cell reducer", () => {
|
|
|
1314
1323
|
|
|
1315
1324
|
it("can focus cells", () => {
|
|
1316
1325
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1317
|
-
actions.createNewCell({ cellId: "1"
|
|
1326
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1318
1327
|
|
|
1319
|
-
actions.focusCell({ cellId: "1"
|
|
1328
|
+
actions.focusCell({ cellId: cellId("1"), where: "before" });
|
|
1320
1329
|
expect(focusAndScrollCellIntoView).toHaveBeenCalledWith(
|
|
1321
1330
|
expect.objectContaining({
|
|
1322
|
-
cellId: "0"
|
|
1331
|
+
cellId: cellId("0"),
|
|
1323
1332
|
}),
|
|
1324
1333
|
);
|
|
1325
1334
|
|
|
@@ -1336,7 +1345,7 @@ describe("cell reducer", () => {
|
|
|
1336
1345
|
});
|
|
1337
1346
|
|
|
1338
1347
|
it("can set cell IDs and codes", () => {
|
|
1339
|
-
const newIds = ["3", "4", "5"]
|
|
1348
|
+
const newIds = [cellId("3"), cellId("4"), cellId("5")];
|
|
1340
1349
|
const newCodes = ["code1", "code2", "code3"];
|
|
1341
1350
|
|
|
1342
1351
|
actions.setCellIds({ cellIds: newIds });
|
|
@@ -1371,76 +1380,91 @@ describe("cell reducer", () => {
|
|
|
1371
1380
|
it("can can add a new cell with/without stale code", () => {
|
|
1372
1381
|
actions.setCellCodes({
|
|
1373
1382
|
codes: ["new code"],
|
|
1374
|
-
ids: ["2"]
|
|
1383
|
+
ids: [cellId("2")],
|
|
1375
1384
|
codeIsStale: false,
|
|
1376
1385
|
});
|
|
1377
1386
|
|
|
1378
|
-
expect(state.cellData["2"
|
|
1379
|
-
expect(state.cellData["2"
|
|
1380
|
-
expect(state.cellData["2"
|
|
1387
|
+
expect(state.cellData[cellId("2")].code).toBe("new code");
|
|
1388
|
+
expect(state.cellData[cellId("2")].edited).toBe(false);
|
|
1389
|
+
expect(state.cellData[cellId("2")].lastCodeRun).toBe("new code");
|
|
1381
1390
|
|
|
1382
1391
|
actions.setCellCodes({
|
|
1383
1392
|
codes: ["new code 2"],
|
|
1384
|
-
ids: ["9"]
|
|
1393
|
+
ids: [cellId("9")],
|
|
1385
1394
|
codeIsStale: true,
|
|
1386
1395
|
});
|
|
1387
1396
|
|
|
1388
|
-
expect(state.cellData["9"
|
|
1389
|
-
expect(state.cellData["9"
|
|
1390
|
-
expect(state.cellData["9"
|
|
1397
|
+
expect(state.cellData[cellId("9")].code).toBe("new code 2");
|
|
1398
|
+
expect(state.cellData[cellId("9")].edited).toBe(true);
|
|
1399
|
+
expect(state.cellData[cellId("9")].lastCodeRun).toBe(null);
|
|
1391
1400
|
});
|
|
1392
1401
|
|
|
1393
1402
|
it("can partial update cell codes", () => {
|
|
1394
1403
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1395
|
-
actions.createNewCell({ cellId: "1"
|
|
1404
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1396
1405
|
|
|
1397
|
-
expect(state.cellIds.inOrderIds).toEqual([
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1406
|
+
expect(state.cellIds.inOrderIds).toEqual([
|
|
1407
|
+
cellId("0"),
|
|
1408
|
+
cellId("1"),
|
|
1409
|
+
cellId("2"),
|
|
1410
|
+
]);
|
|
1411
|
+
expect(state.cellData[cellId("0")].code).toBe("");
|
|
1412
|
+
expect(state.cellData[cellId("1")].code).toBe("");
|
|
1413
|
+
expect(state.cellData[cellId("2")].code).toBe("");
|
|
1401
1414
|
|
|
1402
1415
|
// Update cell 1
|
|
1403
1416
|
actions.setCellCodes({
|
|
1404
1417
|
codes: ["new code 2"],
|
|
1405
|
-
ids: ["1"]
|
|
1418
|
+
ids: [cellId("1")],
|
|
1406
1419
|
codeIsStale: false,
|
|
1407
1420
|
});
|
|
1408
1421
|
|
|
1409
|
-
expect(state.cellIds.inOrderIds).toEqual([
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1422
|
+
expect(state.cellIds.inOrderIds).toEqual([
|
|
1423
|
+
cellId("0"),
|
|
1424
|
+
cellId("1"),
|
|
1425
|
+
cellId("2"),
|
|
1426
|
+
]);
|
|
1427
|
+
expect(state.cellData[cellId("0")].code).toBe("");
|
|
1428
|
+
expect(state.cellData[cellId("1")].code).toBe("new code 2");
|
|
1429
|
+
expect(state.cellData[cellId("1")].edited).toBe(false);
|
|
1430
|
+
expect(state.cellData[cellId("2")].code).toBe("");
|
|
1414
1431
|
});
|
|
1415
1432
|
|
|
1416
1433
|
it("can set cell codes with new cell ids, while preserving the old cell data", () => {
|
|
1417
1434
|
actions.setCellCodes({
|
|
1418
1435
|
codes: ["code1", "code2", "code3"],
|
|
1419
|
-
ids: ["3", "4", "5"]
|
|
1436
|
+
ids: [cellId("3"), cellId("4"), cellId("5")],
|
|
1420
1437
|
codeIsStale: false,
|
|
1421
1438
|
});
|
|
1422
|
-
expect(state.cellData["3"
|
|
1423
|
-
expect(state.cellData["4"
|
|
1424
|
-
expect(state.cellData["5"
|
|
1439
|
+
expect(state.cellData[cellId("3")].code).toBe("code1");
|
|
1440
|
+
expect(state.cellData[cellId("4")].code).toBe("code2");
|
|
1441
|
+
expect(state.cellData[cellId("5")].code).toBe("code3");
|
|
1425
1442
|
|
|
1426
1443
|
// Update with some new cell ids and some old cell ids
|
|
1427
|
-
actions.setCellIds({
|
|
1444
|
+
actions.setCellIds({
|
|
1445
|
+
cellIds: [cellId("1"), cellId("2"), cellId("3"), cellId("4")],
|
|
1446
|
+
});
|
|
1428
1447
|
actions.setCellCodes({
|
|
1429
1448
|
codes: ["new1", "new2", "code1", "code2"],
|
|
1430
|
-
ids: ["1", "2", "3", "4"]
|
|
1449
|
+
ids: [cellId("1"), cellId("2"), cellId("3"), cellId("4")],
|
|
1431
1450
|
codeIsStale: false,
|
|
1432
1451
|
});
|
|
1433
|
-
expect(state.cellData["1"
|
|
1434
|
-
expect(state.cellData["2"
|
|
1435
|
-
expect(state.cellData["3"
|
|
1436
|
-
expect(state.cellData["4"
|
|
1437
|
-
expect(state.cellIds.inOrderIds).toEqual([
|
|
1452
|
+
expect(state.cellData[cellId("1")].code).toBe("new1");
|
|
1453
|
+
expect(state.cellData[cellId("2")].code).toBe("new2");
|
|
1454
|
+
expect(state.cellData[cellId("3")].code).toBe("code1");
|
|
1455
|
+
expect(state.cellData[cellId("4")].code).toBe("code2");
|
|
1456
|
+
expect(state.cellIds.inOrderIds).toEqual([
|
|
1457
|
+
cellId("1"),
|
|
1458
|
+
cellId("2"),
|
|
1459
|
+
cellId("3"),
|
|
1460
|
+
cellId("4"),
|
|
1461
|
+
]);
|
|
1438
1462
|
// Cell 5 data is preserved (possibly used for tracing), but it's not in the cellIds
|
|
1439
|
-
expect(state.cellData["5"
|
|
1463
|
+
expect(state.cellData[cellId("5")]).not.toBeUndefined();
|
|
1440
1464
|
});
|
|
1441
1465
|
|
|
1442
1466
|
it("can set cell codes with names and configs", () => {
|
|
1443
|
-
const newIds = ["3", "4"]
|
|
1467
|
+
const newIds = [cellId("3"), cellId("4")];
|
|
1444
1468
|
actions.setCellIds({ cellIds: newIds });
|
|
1445
1469
|
actions.setCellCodes({
|
|
1446
1470
|
codes: ["code1", "code2"],
|
|
@@ -1453,17 +1477,17 @@ describe("cell reducer", () => {
|
|
|
1453
1477
|
],
|
|
1454
1478
|
});
|
|
1455
1479
|
|
|
1456
|
-
expect(state.cellData["3"
|
|
1457
|
-
expect(state.cellData["3"
|
|
1458
|
-
expect(state.cellData["3"
|
|
1480
|
+
expect(state.cellData[cellId("3")].name).toBe("setup_cell");
|
|
1481
|
+
expect(state.cellData[cellId("3")].config.hide_code).toBe(true);
|
|
1482
|
+
expect(state.cellData[cellId("3")].config.disabled).toBe(false);
|
|
1459
1483
|
|
|
1460
|
-
expect(state.cellData["4"
|
|
1461
|
-
expect(state.cellData["4"
|
|
1462
|
-
expect(state.cellData["4"
|
|
1484
|
+
expect(state.cellData[cellId("4")].name).toBe("analysis");
|
|
1485
|
+
expect(state.cellData[cellId("4")].config.hide_code).toBe(false);
|
|
1486
|
+
expect(state.cellData[cellId("4")].config.disabled).toBe(true);
|
|
1463
1487
|
});
|
|
1464
1488
|
|
|
1465
1489
|
it("can set cell codes without names/configs (backward compat)", () => {
|
|
1466
|
-
const newIds = ["3"]
|
|
1490
|
+
const newIds = [cellId("3")];
|
|
1467
1491
|
actions.setCellIds({ cellIds: newIds });
|
|
1468
1492
|
actions.setCellCodes({
|
|
1469
1493
|
codes: ["code1"],
|
|
@@ -1472,9 +1496,9 @@ describe("cell reducer", () => {
|
|
|
1472
1496
|
});
|
|
1473
1497
|
|
|
1474
1498
|
// Should use defaults when names/configs not provided
|
|
1475
|
-
expect(state.cellData["3"
|
|
1476
|
-
expect(state.cellData["3"
|
|
1477
|
-
expect(state.cellData["3"
|
|
1499
|
+
expect(state.cellData[cellId("3")].code).toBe("code1");
|
|
1500
|
+
expect(state.cellData[cellId("3")].config.hide_code).toBe(false);
|
|
1501
|
+
expect(state.cellData[cellId("3")].config.disabled).toBe(false);
|
|
1478
1502
|
});
|
|
1479
1503
|
|
|
1480
1504
|
it("can update names and configs on existing cells via setCellCodes", () => {
|
|
@@ -1521,12 +1545,12 @@ describe("cell reducer", () => {
|
|
|
1521
1545
|
it("can collapse and expand cells", () => {
|
|
1522
1546
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1523
1547
|
actions.createNewCell({
|
|
1524
|
-
cellId: "1"
|
|
1548
|
+
cellId: cellId("1"),
|
|
1525
1549
|
before: false,
|
|
1526
1550
|
code: "# Header",
|
|
1527
1551
|
});
|
|
1528
1552
|
actions.createNewCell({
|
|
1529
|
-
cellId: "2"
|
|
1553
|
+
cellId: cellId("2"),
|
|
1530
1554
|
before: false,
|
|
1531
1555
|
code: "## Subheader",
|
|
1532
1556
|
});
|
|
@@ -1549,25 +1573,25 @@ describe("cell reducer", () => {
|
|
|
1549
1573
|
it("can collapse and expand all cells in multiple columns", () => {
|
|
1550
1574
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1551
1575
|
actions.createNewCell({
|
|
1552
|
-
cellId: "1"
|
|
1576
|
+
cellId: cellId("1"),
|
|
1553
1577
|
before: false,
|
|
1554
1578
|
code: "# First Column Header",
|
|
1555
1579
|
});
|
|
1556
1580
|
actions.createNewCell({
|
|
1557
|
-
cellId: "2"
|
|
1581
|
+
cellId: cellId("2"),
|
|
1558
1582
|
before: false,
|
|
1559
1583
|
code: "## First Column Subheader",
|
|
1560
1584
|
});
|
|
1561
1585
|
|
|
1562
|
-
actions.addColumnBreakpoint({ cellId: "2"
|
|
1586
|
+
actions.addColumnBreakpoint({ cellId: cellId("2") });
|
|
1563
1587
|
|
|
1564
1588
|
actions.createNewCell({
|
|
1565
|
-
cellId: "3"
|
|
1589
|
+
cellId: cellId("3"),
|
|
1566
1590
|
before: false,
|
|
1567
1591
|
code: "# Second Column Header",
|
|
1568
1592
|
});
|
|
1569
1593
|
actions.createNewCell({
|
|
1570
|
-
cellId: "4"
|
|
1594
|
+
cellId: cellId("4"),
|
|
1571
1595
|
before: false,
|
|
1572
1596
|
code: "## Second Column Subheader",
|
|
1573
1597
|
});
|
|
@@ -1616,17 +1640,17 @@ describe("cell reducer", () => {
|
|
|
1616
1640
|
it("can collapse and expand nested cells in one call", () => {
|
|
1617
1641
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1618
1642
|
actions.createNewCell({
|
|
1619
|
-
cellId: "1"
|
|
1643
|
+
cellId: cellId("1"),
|
|
1620
1644
|
before: false,
|
|
1621
1645
|
code: "# Header",
|
|
1622
1646
|
});
|
|
1623
1647
|
actions.createNewCell({
|
|
1624
|
-
cellId: "2"
|
|
1648
|
+
cellId: cellId("2"),
|
|
1625
1649
|
before: false,
|
|
1626
1650
|
code: "## Subheader",
|
|
1627
1651
|
});
|
|
1628
1652
|
actions.createNewCell({
|
|
1629
|
-
cellId: "3"
|
|
1653
|
+
cellId: cellId("3"),
|
|
1630
1654
|
before: false,
|
|
1631
1655
|
code: "### Subsubheader",
|
|
1632
1656
|
});
|
|
@@ -1670,10 +1694,10 @@ describe("cell reducer", () => {
|
|
|
1670
1694
|
|
|
1671
1695
|
it("can show hidden cells", () => {
|
|
1672
1696
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1673
|
-
actions.createNewCell({ cellId: "1"
|
|
1697
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1674
1698
|
actions.collapseCell({ cellId: firstCellId });
|
|
1675
1699
|
|
|
1676
|
-
actions.showCellIfHidden({ cellId: "1"
|
|
1700
|
+
actions.showCellIfHidden({ cellId: cellId("1") });
|
|
1677
1701
|
expect(state.cellIds.atOrThrow(FIRST_COLUMN).isCollapsed(firstCellId)).toBe(
|
|
1678
1702
|
false,
|
|
1679
1703
|
);
|
|
@@ -1748,8 +1772,8 @@ describe("cell reducer", () => {
|
|
|
1748
1772
|
|
|
1749
1773
|
it("can add a column breakpoint", () => {
|
|
1750
1774
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1751
|
-
actions.createNewCell({ cellId: "1"
|
|
1752
|
-
actions.createNewCell({ cellId: "2"
|
|
1775
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1776
|
+
actions.createNewCell({ cellId: cellId("2"), before: false });
|
|
1753
1777
|
|
|
1754
1778
|
expect(state.cellIds.getColumns().length).toBe(1);
|
|
1755
1779
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1764,7 +1788,7 @@ describe("cell reducer", () => {
|
|
|
1764
1788
|
"
|
|
1765
1789
|
`);
|
|
1766
1790
|
|
|
1767
|
-
actions.addColumnBreakpoint({ cellId: "2"
|
|
1791
|
+
actions.addColumnBreakpoint({ cellId: cellId("2") });
|
|
1768
1792
|
|
|
1769
1793
|
expect(state.cellIds.getColumns().length).toBe(2);
|
|
1770
1794
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1782,23 +1806,29 @@ describe("cell reducer", () => {
|
|
|
1782
1806
|
`);
|
|
1783
1807
|
|
|
1784
1808
|
// Check that the cells are in the correct columns
|
|
1785
|
-
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([
|
|
1786
|
-
|
|
1809
|
+
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([
|
|
1810
|
+
cellId("0"),
|
|
1811
|
+
cellId("1"),
|
|
1812
|
+
]);
|
|
1813
|
+
expect(state.cellIds.getColumns()[1].topLevelIds).toEqual([
|
|
1814
|
+
cellId("2"),
|
|
1815
|
+
cellId("3"),
|
|
1816
|
+
]);
|
|
1787
1817
|
});
|
|
1788
1818
|
|
|
1789
1819
|
it("cannot add a column breakpoint before the first cell", () => {
|
|
1790
1820
|
expect(state.cellIds.getColumns().length).toBe(1);
|
|
1791
1821
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1792
|
-
actions.createNewCell({ cellId: "1"
|
|
1822
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1793
1823
|
actions.addColumnBreakpoint({ cellId: firstCellId });
|
|
1794
1824
|
expect(state.cellIds.getColumns().length).toBe(1);
|
|
1795
1825
|
});
|
|
1796
1826
|
|
|
1797
1827
|
it("can delete a column", () => {
|
|
1798
1828
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1799
|
-
actions.createNewCell({ cellId: "1"
|
|
1800
|
-
actions.createNewCell({ cellId: "2"
|
|
1801
|
-
actions.addColumnBreakpoint({ cellId: "2"
|
|
1829
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1830
|
+
actions.createNewCell({ cellId: cellId("2"), before: false });
|
|
1831
|
+
actions.addColumnBreakpoint({ cellId: cellId("2") });
|
|
1802
1832
|
|
|
1803
1833
|
expect(state.cellIds.getColumns().length).toBe(2);
|
|
1804
1834
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1842,7 +1872,7 @@ describe("cell reducer", () => {
|
|
|
1842
1872
|
|
|
1843
1873
|
it("deleting the last column does nothing", () => {
|
|
1844
1874
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1845
|
-
actions.createNewCell({ cellId: "1"
|
|
1875
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1846
1876
|
|
|
1847
1877
|
const initialState = { ...state };
|
|
1848
1878
|
|
|
@@ -1854,8 +1884,8 @@ describe("cell reducer", () => {
|
|
|
1854
1884
|
|
|
1855
1885
|
it("can drop a cell over another cell", () => {
|
|
1856
1886
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1857
|
-
actions.createNewCell({ cellId: "1"
|
|
1858
|
-
actions.createNewCell({ cellId: "2"
|
|
1887
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1888
|
+
actions.createNewCell({ cellId: cellId("2"), before: false });
|
|
1859
1889
|
|
|
1860
1890
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
1861
1891
|
"
|
|
@@ -1870,8 +1900,8 @@ describe("cell reducer", () => {
|
|
|
1870
1900
|
`);
|
|
1871
1901
|
|
|
1872
1902
|
actions.dropCellOverCell({
|
|
1873
|
-
cellId: "0"
|
|
1874
|
-
overCellId: "3"
|
|
1903
|
+
cellId: cellId("0"),
|
|
1904
|
+
overCellId: cellId("3"),
|
|
1875
1905
|
});
|
|
1876
1906
|
|
|
1877
1907
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1889,7 +1919,7 @@ describe("cell reducer", () => {
|
|
|
1889
1919
|
|
|
1890
1920
|
it("can drop a cell over a new column", () => {
|
|
1891
1921
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1892
|
-
actions.createNewCell({ cellId: "1"
|
|
1922
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1893
1923
|
|
|
1894
1924
|
expect(state.cellIds.getColumns().length).toBe(1);
|
|
1895
1925
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1902,7 +1932,7 @@ describe("cell reducer", () => {
|
|
|
1902
1932
|
"
|
|
1903
1933
|
`);
|
|
1904
1934
|
|
|
1905
|
-
actions.dropOverNewColumn({ cellId: "1"
|
|
1935
|
+
actions.dropOverNewColumn({ cellId: cellId("1") });
|
|
1906
1936
|
|
|
1907
1937
|
expect(state.cellIds.getColumns().length).toBe(2);
|
|
1908
1938
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1918,15 +1948,18 @@ describe("cell reducer", () => {
|
|
|
1918
1948
|
`);
|
|
1919
1949
|
|
|
1920
1950
|
// Check that the cells are in the correct columns
|
|
1921
|
-
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([
|
|
1922
|
-
|
|
1951
|
+
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([
|
|
1952
|
+
cellId("0"),
|
|
1953
|
+
cellId("2"),
|
|
1954
|
+
]);
|
|
1955
|
+
expect(state.cellIds.getColumns()[1].topLevelIds).toEqual([cellId("1")]);
|
|
1923
1956
|
});
|
|
1924
1957
|
|
|
1925
1958
|
it("can drop a column over another column", () => {
|
|
1926
1959
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1927
|
-
actions.createNewCell({ cellId: "1"
|
|
1928
|
-
actions.createNewCell({ cellId: "2"
|
|
1929
|
-
actions.addColumnBreakpoint({ cellId: "2"
|
|
1960
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
1961
|
+
actions.createNewCell({ cellId: cellId("2"), before: false });
|
|
1962
|
+
actions.addColumnBreakpoint({ cellId: cellId("2") });
|
|
1930
1963
|
|
|
1931
1964
|
expect(state.cellIds.getColumns().length).toBe(2);
|
|
1932
1965
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1964,17 +1997,23 @@ describe("cell reducer", () => {
|
|
|
1964
1997
|
`);
|
|
1965
1998
|
|
|
1966
1999
|
// Check that the columns have swapped positions
|
|
1967
|
-
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([
|
|
1968
|
-
|
|
2000
|
+
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([
|
|
2001
|
+
cellId("2"),
|
|
2002
|
+
cellId("3"),
|
|
2003
|
+
]);
|
|
2004
|
+
expect(state.cellIds.getColumns()[1].topLevelIds).toEqual([
|
|
2005
|
+
cellId("0"),
|
|
2006
|
+
cellId("1"),
|
|
2007
|
+
]);
|
|
1969
2008
|
});
|
|
1970
2009
|
|
|
1971
2010
|
it("can compact columns", () => {
|
|
1972
2011
|
// Create initial state with 3 columns, including an empty one
|
|
1973
2012
|
actions.createNewCell({ cellId: firstCellId, before: false });
|
|
1974
|
-
actions.createNewCell({ cellId: "1"
|
|
1975
|
-
actions.addColumnBreakpoint({ cellId: "1"
|
|
1976
|
-
actions.addColumnBreakpoint({ cellId: "2"
|
|
1977
|
-
actions.dropOverNewColumn({ cellId: "2"
|
|
2013
|
+
actions.createNewCell({ cellId: cellId("1"), before: false });
|
|
2014
|
+
actions.addColumnBreakpoint({ cellId: cellId("1") });
|
|
2015
|
+
actions.addColumnBreakpoint({ cellId: cellId("2") });
|
|
2016
|
+
actions.dropOverNewColumn({ cellId: cellId("2") });
|
|
1978
2017
|
|
|
1979
2018
|
expect(state.cellIds.getColumns().length).toBe(4);
|
|
1980
2019
|
expect(formatCells(state)).toMatchInlineSnapshot(`
|
|
@@ -1994,10 +2033,10 @@ describe("cell reducer", () => {
|
|
|
1994
2033
|
`);
|
|
1995
2034
|
|
|
1996
2035
|
// Check initial column structure
|
|
1997
|
-
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual(["0"]);
|
|
1998
|
-
expect(state.cellIds.getColumns()[1].topLevelIds).toEqual(["1"]);
|
|
2036
|
+
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([cellId("0")]);
|
|
2037
|
+
expect(state.cellIds.getColumns()[1].topLevelIds).toEqual([cellId("1")]);
|
|
1999
2038
|
expect(state.cellIds.getColumns()[2].topLevelIds).toEqual([]);
|
|
2000
|
-
expect(state.cellIds.getColumns()[3].topLevelIds).toEqual(["2"]);
|
|
2039
|
+
expect(state.cellIds.getColumns()[3].topLevelIds).toEqual([cellId("2")]);
|
|
2001
2040
|
|
|
2002
2041
|
// Compact columns
|
|
2003
2042
|
actions.compactColumns();
|
|
@@ -2017,9 +2056,9 @@ describe("cell reducer", () => {
|
|
|
2017
2056
|
`);
|
|
2018
2057
|
|
|
2019
2058
|
// Check compacted column structure
|
|
2020
|
-
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual(["0"]);
|
|
2021
|
-
expect(state.cellIds.getColumns()[1].topLevelIds).toEqual(["1"]);
|
|
2022
|
-
expect(state.cellIds.getColumns()[2].topLevelIds).toEqual(["2"]);
|
|
2059
|
+
expect(state.cellIds.getColumns()[0].topLevelIds).toEqual([cellId("0")]);
|
|
2060
|
+
expect(state.cellIds.getColumns()[1].topLevelIds).toEqual([cellId("1")]);
|
|
2061
|
+
expect(state.cellIds.getColumns()[2].topLevelIds).toEqual([cellId("2")]);
|
|
2023
2062
|
});
|
|
2024
2063
|
|
|
2025
2064
|
it("can clear output of a single cell", () => {
|
|
@@ -2406,7 +2445,7 @@ describe("cell reducer", () => {
|
|
|
2406
2445
|
const initialState = { ...state };
|
|
2407
2446
|
|
|
2408
2447
|
actions.moveToNextCell({
|
|
2409
|
-
cellId:
|
|
2448
|
+
cellId: SCRATCH_CELL_ID,
|
|
2410
2449
|
before: false,
|
|
2411
2450
|
noCreate: false,
|
|
2412
2451
|
});
|
|
@@ -2498,7 +2537,7 @@ describe("cell reducer", () => {
|
|
|
2498
2537
|
});
|
|
2499
2538
|
|
|
2500
2539
|
it("can mark a non-existent cell as touched without error", () => {
|
|
2501
|
-
const nonExistentCellId = "non-existent"
|
|
2540
|
+
const nonExistentCellId = cellId("non-existent");
|
|
2502
2541
|
|
|
2503
2542
|
expect(() => {
|
|
2504
2543
|
actions.markTouched({ cellId: nonExistentCellId });
|
|
@@ -2829,7 +2868,7 @@ describe("isCellCodeHidden", () => {
|
|
|
2829
2868
|
const firstCellId = state.cellIds.inOrderIds[0];
|
|
2830
2869
|
|
|
2831
2870
|
it("returns false when hide_code is false and cell is not untouched", () => {
|
|
2832
|
-
const testCellId = "test-cell"
|
|
2871
|
+
const testCellId = cellId("test-cell");
|
|
2833
2872
|
const testState: NotebookState = {
|
|
2834
2873
|
...state,
|
|
2835
2874
|
cellData: {
|
|
@@ -2849,7 +2888,7 @@ describe("isCellCodeHidden", () => {
|
|
|
2849
2888
|
});
|
|
2850
2889
|
|
|
2851
2890
|
it("returns true when hide_code is true and cell is not untouched", () => {
|
|
2852
|
-
const testCellId = "test-cell"
|
|
2891
|
+
const testCellId = cellId("test-cell");
|
|
2853
2892
|
const testState: NotebookState = {
|
|
2854
2893
|
...state,
|
|
2855
2894
|
cellData: {
|
|
@@ -2869,7 +2908,7 @@ describe("isCellCodeHidden", () => {
|
|
|
2869
2908
|
});
|
|
2870
2909
|
|
|
2871
2910
|
it("returns false when hide_code is true but cell is untouched", () => {
|
|
2872
|
-
const testCellId = "test-cell"
|
|
2911
|
+
const testCellId = cellId("test-cell");
|
|
2873
2912
|
const testState: NotebookState = {
|
|
2874
2913
|
...state,
|
|
2875
2914
|
cellData: {
|
|
@@ -2889,7 +2928,7 @@ describe("isCellCodeHidden", () => {
|
|
|
2889
2928
|
});
|
|
2890
2929
|
|
|
2891
2930
|
it("returns false when hide_code is false and cell is untouched", () => {
|
|
2892
|
-
const testCellId = "test-cell"
|
|
2931
|
+
const testCellId = cellId("test-cell");
|
|
2893
2932
|
const testState: NotebookState = {
|
|
2894
2933
|
...state,
|
|
2895
2934
|
cellData: {
|
|
@@ -2917,8 +2956,8 @@ describe("createTracebackInfoAtom", () => {
|
|
|
2917
2956
|
notebookAtom,
|
|
2918
2957
|
MockNotebook.notebookState({
|
|
2919
2958
|
cellData: {
|
|
2920
|
-
cell1: {
|
|
2921
|
-
id: "cell1"
|
|
2959
|
+
[cellId("cell1")]: {
|
|
2960
|
+
id: cellId("cell1"),
|
|
2922
2961
|
name: "cell1",
|
|
2923
2962
|
code: "",
|
|
2924
2963
|
},
|
|
@@ -2927,7 +2966,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
2927
2966
|
);
|
|
2928
2967
|
|
|
2929
2968
|
const tracebackAtom = exportedForTesting.createTracebackInfoAtom(
|
|
2930
|
-
"cell1"
|
|
2969
|
+
cellId("cell1"),
|
|
2931
2970
|
);
|
|
2932
2971
|
const traceback = store.get(tracebackAtom);
|
|
2933
2972
|
|
|
@@ -2939,10 +2978,14 @@ describe("createTracebackInfoAtom", () => {
|
|
|
2939
2978
|
notebookAtom,
|
|
2940
2979
|
MockNotebook.notebookState({
|
|
2941
2980
|
cellData: {
|
|
2942
|
-
|
|
2981
|
+
[cellId("cell1")]: {
|
|
2982
|
+
id: cellId("cell1"),
|
|
2983
|
+
name: "cell1",
|
|
2984
|
+
code: "x = 1",
|
|
2985
|
+
},
|
|
2943
2986
|
},
|
|
2944
2987
|
cellRuntime: {
|
|
2945
|
-
cell1: {
|
|
2988
|
+
[cellId("cell1")]: {
|
|
2946
2989
|
output: {
|
|
2947
2990
|
channel: "marimo-error",
|
|
2948
2991
|
data: [{ type: "syntax", msg: "Syntax error", lineno: 5 }],
|
|
@@ -2954,7 +2997,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
2954
2997
|
);
|
|
2955
2998
|
|
|
2956
2999
|
const tracebackAtom = exportedForTesting.createTracebackInfoAtom(
|
|
2957
|
-
"cell1"
|
|
3000
|
+
cellId("cell1"),
|
|
2958
3001
|
);
|
|
2959
3002
|
const traceback = store.get(tracebackAtom);
|
|
2960
3003
|
|
|
@@ -2962,7 +3005,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
2962
3005
|
expect(traceback).toHaveLength(1);
|
|
2963
3006
|
expect(traceback![0]).toEqual({
|
|
2964
3007
|
kind: "cell",
|
|
2965
|
-
cellId: "cell1",
|
|
3008
|
+
cellId: cellId("cell1"),
|
|
2966
3009
|
lineNumber: 5,
|
|
2967
3010
|
});
|
|
2968
3011
|
});
|
|
@@ -2972,10 +3015,14 @@ describe("createTracebackInfoAtom", () => {
|
|
|
2972
3015
|
notebookAtom,
|
|
2973
3016
|
MockNotebook.notebookState({
|
|
2974
3017
|
cellData: {
|
|
2975
|
-
|
|
3018
|
+
[cellId("cell1")]: {
|
|
3019
|
+
id: cellId("cell1"),
|
|
3020
|
+
name: "cell1",
|
|
3021
|
+
code: "x = 1",
|
|
3022
|
+
},
|
|
2976
3023
|
},
|
|
2977
3024
|
cellRuntime: {
|
|
2978
|
-
cell1: {
|
|
3025
|
+
[cellId("cell1")]: {
|
|
2979
3026
|
output: {
|
|
2980
3027
|
channel: "marimo-error",
|
|
2981
3028
|
data: [{ type: "syntax", msg: "Syntax error", lineno: 0 }],
|
|
@@ -2987,7 +3034,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
2987
3034
|
);
|
|
2988
3035
|
|
|
2989
3036
|
const tracebackAtom = exportedForTesting.createTracebackInfoAtom(
|
|
2990
|
-
"cell1"
|
|
3037
|
+
cellId("cell1"),
|
|
2991
3038
|
);
|
|
2992
3039
|
const traceback = store.get(tracebackAtom);
|
|
2993
3040
|
expect(traceback).toBeDefined();
|
|
@@ -3000,10 +3047,14 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3000
3047
|
notebookAtom,
|
|
3001
3048
|
MockNotebook.notebookState({
|
|
3002
3049
|
cellData: {
|
|
3003
|
-
|
|
3050
|
+
[cellId("cell1")]: {
|
|
3051
|
+
id: cellId("cell1"),
|
|
3052
|
+
name: "cell1",
|
|
3053
|
+
code: "x = 1",
|
|
3054
|
+
},
|
|
3004
3055
|
},
|
|
3005
3056
|
cellRuntime: {
|
|
3006
|
-
cell1: {
|
|
3057
|
+
[cellId("cell1")]: {
|
|
3007
3058
|
output: {
|
|
3008
3059
|
channel: "marimo-error",
|
|
3009
3060
|
data: [{ type: "syntax", msg: "Syntax error", lineno: null }],
|
|
@@ -3015,7 +3066,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3015
3066
|
);
|
|
3016
3067
|
|
|
3017
3068
|
const tracebackAtom = exportedForTesting.createTracebackInfoAtom(
|
|
3018
|
-
"cell1"
|
|
3069
|
+
cellId("cell1"),
|
|
3019
3070
|
);
|
|
3020
3071
|
const traceback = store.get(tracebackAtom);
|
|
3021
3072
|
|
|
@@ -3027,10 +3078,14 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3027
3078
|
notebookAtom,
|
|
3028
3079
|
MockNotebook.notebookState({
|
|
3029
3080
|
cellData: {
|
|
3030
|
-
|
|
3081
|
+
[cellId("cell1")]: {
|
|
3082
|
+
id: cellId("cell1"),
|
|
3083
|
+
name: "cell1",
|
|
3084
|
+
code: "x = 1",
|
|
3085
|
+
},
|
|
3031
3086
|
},
|
|
3032
3087
|
cellRuntime: {
|
|
3033
|
-
cell1: {
|
|
3088
|
+
[cellId("cell1")]: {
|
|
3034
3089
|
output: {
|
|
3035
3090
|
channel: "marimo-error",
|
|
3036
3091
|
data: [
|
|
@@ -3045,7 +3100,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3045
3100
|
);
|
|
3046
3101
|
|
|
3047
3102
|
const tracebackAtom = exportedForTesting.createTracebackInfoAtom(
|
|
3048
|
-
"cell1"
|
|
3103
|
+
cellId("cell1"),
|
|
3049
3104
|
);
|
|
3050
3105
|
const traceback = store.get(tracebackAtom);
|
|
3051
3106
|
expect(traceback).toBeDefined();
|
|
@@ -3059,10 +3114,14 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3059
3114
|
notebookAtom,
|
|
3060
3115
|
MockNotebook.notebookState({
|
|
3061
3116
|
cellData: {
|
|
3062
|
-
|
|
3117
|
+
[cellId("cell1")]: {
|
|
3118
|
+
id: cellId("cell1"),
|
|
3119
|
+
name: "cell1",
|
|
3120
|
+
code: "x = 1",
|
|
3121
|
+
},
|
|
3063
3122
|
},
|
|
3064
3123
|
cellRuntime: {
|
|
3065
|
-
cell1: {
|
|
3124
|
+
[cellId("cell1")]: {
|
|
3066
3125
|
output: {
|
|
3067
3126
|
channel: "marimo-error",
|
|
3068
3127
|
data: [{ type: "syntax", msg: "Syntax error", lineno: 1 }],
|
|
@@ -3075,7 +3134,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3075
3134
|
);
|
|
3076
3135
|
|
|
3077
3136
|
const tracebackAtom = exportedForTesting.createTracebackInfoAtom(
|
|
3078
|
-
"cell1"
|
|
3137
|
+
cellId("cell1"),
|
|
3079
3138
|
);
|
|
3080
3139
|
const traceback = store.get(tracebackAtom);
|
|
3081
3140
|
|
|
@@ -3087,10 +3146,14 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3087
3146
|
notebookAtom,
|
|
3088
3147
|
MockNotebook.notebookState({
|
|
3089
3148
|
cellData: {
|
|
3090
|
-
|
|
3149
|
+
[cellId("cell1")]: {
|
|
3150
|
+
id: cellId("cell1"),
|
|
3151
|
+
name: "cell1",
|
|
3152
|
+
code: "x = 1",
|
|
3153
|
+
},
|
|
3091
3154
|
},
|
|
3092
3155
|
cellRuntime: {
|
|
3093
|
-
cell1: {
|
|
3156
|
+
[cellId("cell1")]: {
|
|
3094
3157
|
output: {
|
|
3095
3158
|
channel: "marimo-error",
|
|
3096
3159
|
data: [{ type: "syntax", msg: "Syntax error", lineno: 1 }],
|
|
@@ -3103,7 +3166,7 @@ describe("createTracebackInfoAtom", () => {
|
|
|
3103
3166
|
);
|
|
3104
3167
|
|
|
3105
3168
|
const tracebackAtom = exportedForTesting.createTracebackInfoAtom(
|
|
3106
|
-
"cell1"
|
|
3169
|
+
cellId("cell1"),
|
|
3107
3170
|
);
|
|
3108
3171
|
const traceback = store.get(tracebackAtom);
|
|
3109
3172
|
|