@marimo-team/islands 0.21.2-dev9 → 0.21.2-dev91
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/{Combination-BBPQRrDo.js → Combination-B_FmEi05.js} +3 -3
- package/dist/{ConnectedDataExplorerComponent-D0GoOd_c.js → ConnectedDataExplorerComponent-CLLlotD4.js} +30 -29
- package/dist/{ImageComparisonComponent-BYQfAfSR.js → ImageComparisonComponent-BC00mJmw.js} +1 -1
- package/dist/{Plot-DfUav0o0.js → Plot-B1ahrLui.js} +1 -1
- package/dist/{_baseIsEqual-CvgsjYoW.js → _baseIsEqual-QWfxbVqg.js} +1 -1
- package/dist/_basePickBy-Do49cXgl.js +34 -0
- package/dist/{_baseUniq-BUFhl85h.js → _baseUniq-vFmWNipH.js} +1 -1
- package/dist/{any-language-editor-DlsjUw_l.js → any-language-editor-CSvBdMtG.js} +22 -21
- package/dist/apl-e1B5LPEL.js +4 -0
- package/dist/{arc-DXxE-tFl.js → arc-CHF8PiiF.js} +2 -2
- package/dist/architecture-7HQA4BMR-KeUc82D1.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-Df0FNeBR.js → architectureDiagram-VXUJARFQ-CIl7H_7A.js} +19 -19
- package/dist/asciiarmor-B-gwgesP.js +4 -0
- package/dist/asn1-DF2ckRB4.js +4 -0
- package/dist/{blockDiagram-VD42YOAC-DszWqlLz.js → blockDiagram-VD42YOAC-Bxg4bo7H.js} +14 -14
- package/dist/brainfuck-4G-7_gq_.js +4 -0
- package/dist/{button-BKkuUpZh.js → button-B1ZgJ7Cc.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-Dyj8LoUX.js → c4Diagram-YG6GDRKO-k4TEDUb8.js} +6 -6
- package/dist/capabilities-DAGZLwa6.js +36 -0
- package/dist/{channel-CUFaIkTh.js → channel-CCR8wXOx.js} +1 -1
- package/dist/chat-ui-CN_DUtLR.js +7710 -0
- package/dist/{check-Diwc5emq.js → check-B2OoWw2h.js} +1 -1
- package/dist/{chunk-4BX2VUAB-CwMMQLZ_.js → chunk-4BX2VUAB-BwfrWBqN.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-CRwwZ2ED.js → chunk-4F5CHEZ2-BigWQaTs.js} +1 -1
- package/dist/{chunk-55IACEB6-Dj8CzJvE.js → chunk-55IACEB6-D8THf2mi.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BkzUmppO.js → chunk-5FQGJX7Z-Cz2QbNIw.js} +1504 -2846
- package/dist/{chunk-ABZYJK2D-7QYXAAhe.js → chunk-ABZYJK2D-NPoevJcI.js} +3 -3
- package/dist/{chunk-ATLVNIR6-pmHPAPSd.js → chunk-ATLVNIR6-DAhC1FCG.js} +2 -2
- package/dist/{chunk-B2363JML-BuBMltZc.js → chunk-B2363JML-DOYwB798.js} +1 -1
- package/dist/{chunk-B4BG7PRW-Dbta9cTX.js → chunk-B4BG7PRW-BDmytgmO.js} +7 -7
- package/dist/{chunk-CVBHYZKI-D8iwHsLF.js → chunk-CVBHYZKI-B6xhgaBd.js} +1 -1
- package/dist/{chunk-DI55MBZ5-DyKB35wC.js → chunk-DI55MBZ5-C6iNEV8U.js} +6 -6
- package/dist/{chunk-EXTU4WIE-BRFl4iNd.js → chunk-EXTU4WIE-BtA6WdD4.js} +2 -2
- package/dist/{chunk-FMBD7UC4-XTL4xAvH.js → chunk-FMBD7UC4-CHdus51S.js} +1 -1
- package/dist/{chunk-FRFDVMJY-Bk2LD5Te.js → chunk-FRFDVMJY-Bo7Hv3UF.js} +1 -1
- package/dist/{chunk-HN2XXSSU-CzO5Phf0.js → chunk-HN2XXSSU-2Vfbq-kU.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-BkrY9SdL.js → chunk-JA3XYJ7Z-BeXqAsc9.js} +3 -3
- package/dist/{chunk-JZLCHNYA-Bk_Lil-q.js → chunk-JZLCHNYA-ibE7xTEx.js} +6 -6
- package/dist/{chunk-MI3HLSF2-DvCKDmpi.js → chunk-MI3HLSF2-Do0-KRc0.js} +1 -1
- package/dist/{chunk-N4CR4FBY-f5n6meOd.js → chunk-N4CR4FBY-CHAcubAf.js} +7 -7
- package/dist/{chunk-PL6DKKU2-DiFkzMfM.js → chunk-PL6DKKU2-D3wYz-iW.js} +1 -1
- package/dist/{chunk-QN33PNHL-CXfJywHv.js → chunk-QN33PNHL-CDWJY_kT.js} +2 -2
- package/dist/{chunk-QXUST7PY-D7-26sj3.js → chunk-QXUST7PY-CV37xRZd.js} +10 -10
- package/dist/{chunk-QZHKN3VN-CYbwZKgJ.js → chunk-QZHKN3VN-B_Mdb8GC.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-BRT9vd1R.js → chunk-S3R3BYOJ-CGlk8NH-.js} +6 -6
- package/dist/{chunk-SJTYNZTY-BvVkbShU.js → chunk-SJTYNZTY-Bauwp2-p.js} +1 -1
- package/dist/{chunk-TCCFYFTB-DqxhgXG0.js → chunk-TCCFYFTB-C5_FjmXA.js} +15 -14
- package/dist/{chunk-TQ3KTPDO-CPkEruAA.js → chunk-TQ3KTPDO-TjHW8xfv.js} +1 -1
- package/dist/{chunk-TZMSLE5B-DSfBOnzx.js → chunk-TZMSLE5B-DfY6C3FB.js} +3 -3
- package/dist/{chunk-UMXZTB3W-C4ypIY3V.js → chunk-UMXZTB3W-DdRiIIOF.js} +1 -1
- package/dist/classDiagram-2ON5EDUG-DbWOiPgs.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-COnXBrRA.js +30 -0
- package/dist/{clike-CLJYUAWw.js → clike-7lgyEYRk.js} +1 -1
- package/dist/clojure-CUybM11R.js +4 -0
- package/dist/{clone-CEQ-pda1.js → clone-BM9_Wkaf.js} +1 -1
- package/dist/cmake-BPjGcuDL.js +4 -0
- package/dist/cobol-BETk_nb6.js +4 -0
- package/dist/{code-block-37QAKDTI-DV_ZyoUh.js → code-block-37QAKDTI-DW3JC11U.js} +2 -2
- package/dist/coffeescript-CManZxXL.js +4 -0
- package/dist/commonlisp-DWkn7GW8.js +4 -0
- package/dist/{constants-CytQ_3LM.js → constants-LmeAawHa.js} +3 -3
- package/dist/{copy-DIK6DiIA.js → copy-B7XqFjF_.js} +14 -4
- package/dist/{cose-bilkent-S5V4N54A-BCDTZDay.js → cose-bilkent-S5V4N54A-DXHZkJKX.js} +2 -2
- package/dist/crystal-CCbg5EUH.js +4 -0
- package/dist/css-By8eo-XS.js +4 -0
- package/dist/cypher-DwfHg3nP.js +4 -0
- package/dist/d-Brs1wNbw.js +4 -0
- package/dist/{dagre-6UL2VRFP-DGEbtmgU.js → dagre-6UL2VRFP-B8UW0fXE.js} +16 -16
- package/dist/{dagre-BVnNvbvD.js → dagre-B3-rUlCT.js} +14 -14
- package/dist/{data-grid-overlay-editor-BD0BFHzy.js → data-grid-overlay-editor-CpL5Zajy.js} +3 -3
- package/dist/{diagram-PSM6KHXK-CG_usglE.js → diagram-PSM6KHXK-DGD-j1bM.js} +22 -22
- package/dist/{diagram-QEK2KX5R-CtGFEwzJ.js → diagram-QEK2KX5R-DgsT6ZW4.js} +17 -17
- package/dist/{diagram-S2PKOQOG-ClKAGmbv.js → diagram-S2PKOQOG-CDh5Ij8z.js} +17 -17
- package/dist/diff-DJIRmJ1g.js +4 -0
- package/dist/{dist-DodLQWPg.js → dist--MUqhsBh.js} +1 -1
- package/dist/{dist-CAKwXCWI.js → dist-8-jPFKws.js} +2 -2
- package/dist/{dist-i-ud9aCA.js → dist-B6ZvKwIz.js} +1 -1
- package/dist/{dist-BGZ7TWS9.js → dist-B771Ewvn.js} +3 -3
- package/dist/dist-BK8Ch8me.js +5 -0
- package/dist/dist-BPlAe3w3.js +6 -0
- package/dist/dist-BQnLGf1A.js +8 -0
- package/dist/dist-BZRBnAnM.js +5 -0
- package/dist/{dist-D4gcY469.js → dist-Bc-mOFlk.js} +2 -2
- package/dist/{dist-BUrWeMEP.js → dist-Bg1YGq2b.js} +1 -1
- package/dist/{dist-C0Rnbr-_.js → dist-BiNtCiQ9.js} +4 -4
- package/dist/{dist-B9EjSb9T.js → dist-BjYGwQ65.js} +1 -1
- package/dist/dist-BmTKj-5m.js +5 -0
- package/dist/{dist-D_-CGmlh.js → dist-BsyHyGqX.js} +2 -2
- package/dist/dist-C1UyhB0b.js +5 -0
- package/dist/dist-C1uqqTuH.js +5 -0
- package/dist/dist-CCeSY9xv.js +5 -0
- package/dist/{dist-DEj2X26M.js → dist-CEmSeYaL.js} +2 -2
- package/dist/{dist-CDHl2i1x.js → dist-CJEfzjG5.js} +4 -4
- package/dist/dist-CMWhb0s1.js +5 -0
- package/dist/{dist-BSfYc7vq.js → dist-CXsGjNbR.js} +2 -2
- package/dist/{dist-CseYuPtL.js → dist-CpNdP46s.js} +2 -2
- package/dist/{dist-CPlGUbk-.js → dist-CsToCMcA.js} +2 -2
- package/dist/dist-CwEBZkrQ.js +550 -0
- package/dist/{dist-DERtJN02.js → dist-CwP9oyR8.js} +2 -2
- package/dist/{dist-C4K7pumm.js → dist-D2nC1On3.js} +2 -2
- package/dist/{dist-BFxYppVR.js → dist-DEmPLkH9.js} +4 -4
- package/dist/{dist-lNe4i1Nm.js → dist-DKr1M-ru.js} +1 -1
- package/dist/{dist-D5NMgbbv.js → dist-DNSJBJI7.js} +2 -2
- package/dist/{dist-HoZO6brh.js → dist-DSSPn3fP.js} +2 -2
- package/dist/dist-DYoFz28E.js +8 -0
- package/dist/dist-DeSnQwvL.js +6 -0
- package/dist/{dist-COpDrwi-.js → dist-Dl9_0tkc.js} +1 -1
- package/dist/{dist-Bq5eYK43.js → dist-DlacJSaE.js} +2 -2
- package/dist/{dist-RNGn_-uD.js → dist-DoO66t8e.js} +1 -1
- package/dist/{dist-Bq9zYwJs.js → dist-DqT0O-4m.js} +5 -5
- package/dist/{dist-CSEWGuDq.js → dist-DqweMfpO.js} +1 -1
- package/dist/{dist-gc9KgJuA.js → dist-DvjVNme1.js} +1 -1
- package/dist/{dist-DOoqn-VL.js → dist-N1lm7LVK.js} +71 -37
- package/dist/{dist-Cl5iM8xL.js → dist-QxBlbqgj.js} +3 -3
- package/dist/{dist-Ux6dL_VB.js → dist-TuFHGVp2.js} +1 -1
- package/dist/dist-e8VqCQ_P.js +5 -0
- package/dist/{dist-DUretbKK.js → dist-fRW2mZtS.js} +2 -2
- package/dist/dist-kGaha3sX.js +8 -0
- package/dist/{dist-BpMlUdNO.js → dist-mpvRA2Bc.js} +3 -3
- package/dist/dist-wQD8nhf9.js +8 -0
- package/dist/{dockerfile-BxhYdLHL.js → dockerfile-DG6A2DdH.js} +1 -1
- package/dist/dtd-Dyiazv4N.js +4 -0
- package/dist/dylan-D8Fcw7NA.js +4 -0
- package/dist/ecl-CjKp8Vii.js +4 -0
- package/dist/eiffel-K9ViOX5r.js +4 -0
- package/dist/elm-B5NVtRco.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-DPMseVVp.js → erDiagram-Q2GNP2WA-CGK0SUdu.js} +15 -15
- package/dist/erlang-BnLzgk7R.js +4 -0
- package/dist/{error-banner-Dmi5ujan.js → error-banner-D-KBGvBj.js} +3 -3
- package/dist/esm-B_4hpmV_.js +1587 -0
- package/dist/esm-Bcbo0Yvz.js +2805 -0
- package/dist/{factor-Png_OsVt.js → factor-Bq2mGIHt.js} +1 -1
- package/dist/factor-C7f9Jz5R.js +4 -0
- package/dist/{flowDiagram-NV44I4VS-BpAIFwW7.js → flowDiagram-NV44I4VS-PjhviPI_.js} +17 -17
- package/dist/forth-rGM8jLao.js +4 -0
- package/dist/fortran-B3acSe0i.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-DXYghZ9C.js → ganttDiagram-JELNMOA3-CUVtQqgT.js} +10 -10
- package/dist/gas-Bb1Vmv_N.js +4 -0
- package/dist/gherkin-C9Lyidgd.js +4 -0
- package/dist/{gitGraph-G5XIXVHT-ChHUSAop.js → gitGraph-G5XIXVHT-B6b-Z3mr.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-CBL-7g3_.js → gitGraphDiagram-V2S2FVAM-CNdrlK1I.js} +17 -17
- package/dist/{glide-data-editor-pZyd9UJ_.js → glide-data-editor-DQEuWuu_.js} +94 -93
- package/dist/{graphlib-D18eZCT4.js → graphlib-CIQjMxKw.js} +6 -6
- package/dist/groovy-DQk6XcGH.js +4 -0
- package/dist/{hasIn-B9AbGLj3.js → hasIn-eLCPDloT.js} +5 -5
- package/dist/haskell-mV0Vw9gv.js +4 -0
- package/dist/haxe-DqxN89zH.js +5 -0
- package/dist/idl-ya8W561J.js +4 -0
- package/dist/{info-VBDWY6EO-CwyXEo8E.js → info-VBDWY6EO-DfFl0Z8H.js} +3 -3
- package/dist/infoDiagram-HS3SLOUP-DGimKb9k.js +30 -0
- package/dist/{types-CGc7peZV.js → input-B8CM-AuM.js} +208 -405
- package/dist/{isEmpty-C-xMag79.js → isEmpty-CI9akcsL.js} +2 -2
- package/dist/{isString-D-vNYDBA.js → isString-xiQUcgm4.js} +1 -1
- package/dist/{isSymbol-Dyt2NSnN.js → isSymbol-DFp8040B.js} +1 -1
- package/dist/javascript-CgqgptVu.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-D5BIjS4N.js → journeyDiagram-XKPGCS4Q-CyoESVVb.js} +7 -7
- package/dist/julia-CFQ-HusI.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-DhDkqxFB.js → kanban-definition-3W4ZIXB7-Doc2YV80.js} +12 -12
- package/dist/{katex-pyO_klYC.js → katex-qPqrBHZ8.js} +1 -1
- package/dist/{label-BbpGrh4j.js → label-e5-84vsp.js} +10 -10
- package/dist/{line-C1k1rG3Z.js → line-BWRi3U3S.js} +3 -3
- package/dist/{linear-DIp6l9sg.js → linear-DZ8_CGCd.js} +4 -4
- package/dist/livescript-D__3TmDo.js +4 -0
- package/dist/{loader-CABJs6GU.js → loader-C51Irhxm.js} +3 -3
- package/dist/lua-Bytcgj_W.js +4 -0
- package/dist/main.js +35443 -70505
- package/dist/mathematica-DJhvVKvl.js +4 -0
- package/dist/mbox-IGHPCjfR.js +4 -0
- package/dist/{memoize-Cs8aS5RW.js → memoize-zYM53m8l.js} +1 -1
- package/dist/{merge-NuyC7LN7.js → merge-CqBPpP0q.js} +1 -1
- package/dist/mermaid-4DMBBIKO-DQdI9xDR.js +6 -0
- package/dist/{mermaid-CrKqsE2j.js → mermaid-CzWpf81s.js} +50 -50
- package/dist/{mermaid-parser.core-OkWZ8nr-.js → mermaid-parser.core-CrrqF1ZZ.js} +8 -8
- package/dist/{mhchem-DckvwtV8.js → mhchem-BwoRNwg_.js} +1 -1
- package/dist/micromark-factory-space-DQCQsiYz.js +1341 -0
- package/dist/{min-ECVRnCdn.js → min-IJGSWMpU.js} +8 -8
- package/dist/{mindmap-definition-VGOIOE7T-BxQi78Vl.js → mindmap-definition-VGOIOE7T-L2ybicpO.js} +14 -14
- package/dist/mirc-tcwvVugm.js +4 -0
- package/dist/mllike-Dx91i62r.js +6 -0
- package/dist/modelica-_SRt-yU5.js +4 -0
- package/dist/mscgen-GZrGS9gt.js +6 -0
- package/dist/mumps-Cv3ygyod.js +4 -0
- package/dist/{now-BC2mX0ZT.js → now-CnuN5fN5.js} +1 -1
- package/dist/nsis-BU7GeGbI.js +4 -0
- package/dist/{nsis-BrAITej_.js → nsis-i9_sgigf.js} +1 -1
- package/dist/ntriples-CL-FCYXb.js +4 -0
- package/dist/{number-overlay-editor-CQrncFlP.js → number-overlay-editor-D2Y0RpcH.js} +1 -1
- package/dist/octave-Dc6_3DIu.js +4 -0
- package/dist/{once-BqS42WgZ.js → once-DjP4Kbhy.js} +1 -1
- package/dist/{ordinal-Dcvf4J1m.js → ordinal-B4zYMadD.js} +1 -1
- package/dist/oz-DpUAJCXf.js +4 -0
- package/dist/{packet-DYOGHKS2-C62XQjZh.js → packet-DYOGHKS2-DIf3Dotq.js} +3 -3
- package/dist/pascal-B17mncXs.js +4 -0
- package/dist/perl-BTpK97q9.js +4 -0
- package/dist/{pie-VRWISCQL-nfAKQJw3.js → pie-VRWISCQL-Dj_gvPcD.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-DfSJXUHa.js → pieDiagram-ADFJNKIX-x5w7q6Yp.js} +22 -22
- package/dist/pig-CFb638Ap.js +4 -0
- package/dist/powershell-Cxo-_2A5.js +4 -0
- package/dist/{precisionRound-BAc-kQ3q.js → precisionRound-C-DW449D.js} +1 -1
- package/dist/process-output-BfgNdve9.js +28024 -0
- package/dist/properties-BPgT1xTB.js +4 -0
- package/dist/protobuf-BgHBaIIK.js +4 -0
- package/dist/pug-25-oS0SG.js +4 -0
- package/dist/{pug-CH-17az-.js → pug-BhE2JRSg.js} +1 -1
- package/dist/puppet-DarIr20S.js +4 -0
- package/dist/python-BqmOsBsi.js +4 -0
- package/dist/q-D3QJCTup.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-CAcVWXc-.js → quadrantDiagram-AYHSOK5B-D5j_5qG_.js} +5 -5
- package/dist/r-Cz_yBX4z.js +4 -0
- package/dist/{radar-ZZBFDIW7-lopS8_4j.js → radar-ZZBFDIW7-DXDVq3gi.js} +3 -3
- package/dist/{range-BKaWvVUE.js → range-DffmqG6L.js} +4 -3
- package/dist/{react-vega-C6kwcd86.js → react-vega-BBUxfZoV.js} +19 -19
- package/dist/react-vega-Cs3lfDw8.js +9 -0
- package/dist/{reduce-CqQo8ppc.js → reduce-CGwzfrDo.js} +5 -5
- package/dist/{requirementDiagram-UZGBJVZJ-BU7dwzFM.js → requirementDiagram-UZGBJVZJ-3SoJH6yP.js} +14 -14
- package/dist/rpm-DGOtYwAI.js +5 -0
- package/dist/ruby-DBZu4rPc.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-BVJnR4_b.js → sankeyDiagram-TZEHDZUN-fGkFNe5q.js} +5 -5
- package/dist/sas-Dd1D9qTq.js +4 -0
- package/dist/scheme-BmDjvTHX.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-CQcFQTwX.js → sequenceDiagram-WL72ISMW-BE2uTn_d.js} +8 -8
- package/dist/shell-BL8zFSaj.js +4 -0
- package/dist/sieve-BAx2WqUP.js +4 -0
- package/dist/{slides-component-GkilRW21.js → slides-component-Cjo6LzW9.js} +3 -3
- package/dist/smalltalk-CYRzF7VV.js +4 -0
- package/dist/sparql-YWaDRO4A.js +4 -0
- package/dist/{spec-Bfvf9Hre.js → spec-UGFYIDJb.js} +12 -422
- package/dist/{src-CHUphWwL.js → src-BY0BGg6V.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-Dx9AIGDe.js → stateDiagram-FKZM4ZOC-Dmk9IAOx.js} +19 -19
- package/dist/stateDiagram-v2-4FDKWEC3-BGF0BvU6.js +29 -0
- package/dist/{step-BbmiiQdf.js → step-DGAGWg3y.js} +1 -1
- package/dist/stex-BvZqVamL.js +4 -0
- package/dist/style.css +1 -1
- package/dist/stylus-lYsyLFc1.js +4 -0
- package/dist/swift-ClQz9z1n.js +4 -0
- package/dist/tcl-B3jhsfqY.js +4 -0
- package/dist/textile-Cb1Dw7Aq.js +4 -0
- package/dist/{time-DFFVNc1Q.js → time-C_pvjzP0.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-D8B3p7ID.js → timeline-definition-IT6M3QCI-CvB4yGrN.js} +4 -4
- package/dist/toDate-COI3hP-5.js +637 -0
- package/dist/toInteger-BUeg_O0F.js +15 -0
- package/dist/{toNumber-CbZ70FdN.js → toNumber-xFPoy1OI.js} +2 -2
- package/dist/{toString-DbIAWQpF.js → toString-CtXX84W6.js} +2 -2
- package/dist/toml-nHZhetdO.js +4 -0
- package/dist/{tooltip-CKG75XQa.js → tooltip-DnI4CwIS.js} +4 -4
- package/dist/{treemap-GDKQZRPO-CkR-5ai2.js → treemap-GDKQZRPO-CIG6WH-x.js} +3 -3
- package/dist/troff-DuJAGWKH.js +4 -0
- package/dist/ttcn-BxrcwP21.js +4 -0
- package/dist/ttcn-cfg-BAg_9dcc.js +4 -0
- package/dist/turtle-zCq949as.js +4 -0
- package/dist/types-BqLAaq-i.js +209 -0
- package/dist/{uniq-H2E5nMLq.js → uniq-CCKqEs7T.js} +1 -1
- package/dist/{useAsyncData-CEjJxwFB.js → useAsyncData-BtHYXgXF.js} +2 -2
- package/dist/useDeepCompareMemoize-9dXEtK7u.js +124 -0
- package/dist/useIframeCapabilities-CzVvBDe8.js +13 -0
- package/dist/useLifecycle-Be1LUuEg.js +427 -0
- package/dist/{useTheme-CPybHVFN.js → useTheme-5GTtjXjy.js} +4 -4
- package/dist/vb-De5hElus.js +4 -0
- package/dist/vbscript-Cypcpv4F.js +4 -0
- package/dist/{vega-component-CuPTCRp5.js → vega-component-BQNW4qnB.js} +198 -197
- package/dist/{vega-loader.browser-CQ-lnUkI.js → vega-loader.browser-DnqN5nbz.js} +3 -3
- package/dist/velocity-Di7l-yhe.js +4 -0
- package/dist/verilog-Bzi-S3g2.js +4 -0
- package/dist/vhdl-B0ZZITaW.js +4 -0
- package/dist/webidl-0sviiRcN.js +4 -0
- package/dist/xquery-B4qMVWaB.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-XO8FiQjU.js → xychartDiagram-PRI3JC2R-BbEInSqY.js} +13 -13
- package/dist/yacas-Jt25Fuv8.js +4 -0
- package/dist/z80-CrcbYzmp.js +4 -0
- package/package.json +4 -3
- package/src/__mocks__/notebook.ts +9 -9
- package/src/__mocks__/requests.ts +2 -1
- package/src/__tests__/branded.ts +20 -0
- package/src/__tests__/setup.ts +15 -0
- package/src/components/app-config/__tests__/get-dirty-values.test.ts +1 -1
- package/src/components/app-config/get-dirty-values.ts +100 -0
- package/src/components/app-config/user-config-form.tsx +6 -101
- package/src/components/chat/chat-utils.ts +7 -8
- package/src/components/data-table/TableActions.tsx +8 -2
- package/src/components/data-table/__tests__/columns.test.tsx +138 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +63 -0
- 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/columns.tsx +44 -4
- package/src/components/data-table/context-menu.tsx +9 -5
- package/src/components/data-table/data-table.tsx +13 -31
- package/src/components/data-table/filters.ts +1 -0
- package/src/components/data-table/hooks/use-scroll-container-height.ts +97 -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__/use-cell-range-selection.test.ts +119 -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/use-cell-range-selection.ts +19 -0
- package/src/components/data-table/range-focus/utils.ts +50 -12
- package/src/components/data-table/renderers.tsx +103 -46
- package/src/components/data-table/types.ts +21 -0
- package/src/components/data-table/utils.ts +87 -0
- package/src/components/datasources/datasources.tsx +45 -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/package-alert.tsx +1 -1
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +8 -1
- package/src/components/markdown/markdown-renderer.tsx +18 -2
- 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/staged-cells.ts +6 -0
- 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 +572 -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 +29 -24
- 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 +35 -8
- 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 +93 -7
- package/src/core/datasets/data-source-connections.ts +44 -0
- package/src/core/datasets/request-registry.ts +13 -0
- package/src/core/datasets/state.ts +1 -1
- package/src/core/edit-app.tsx +0 -5
- 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 +2 -1
- package/src/core/islands/main.ts +5 -9
- package/src/core/kernel/__tests__/handlers.test.ts +5 -4
- package/src/core/kernel/handlers.ts +7 -4
- package/src/core/kernel/messages.ts +2 -0
- 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 +2 -1
- package/src/core/network/requests-network.ts +10 -2
- package/src/core/network/requests-static.ts +2 -1
- package/src/core/network/requests-toasting.tsx +2 -1
- package/src/core/network/types.ts +7 -2
- 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 +11 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +33 -26
- package/src/css/app/fonts.css +6 -6
- package/src/css/md-tooltip.css +4 -39
- package/src/css/md.css +10 -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 +50 -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/plugins/impl/chat/ChatPlugin.tsx +6 -3
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +5 -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__/createReducer.test.ts +2 -1
- package/src/utils/__tests__/download.test.tsx +21 -20
- package/src/utils/copy.ts +18 -5
- package/src/utils/createReducer.ts +46 -26
- 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/_basePickBy-pTDW2_2A.js +0 -47
- package/dist/apl-lHFVoxx7.js +0 -4
- package/dist/architecture-7HQA4BMR-BmtmhGMc.js +0 -6
- package/dist/asciiarmor-DqCdZUHI.js +0 -4
- package/dist/asn1-DEcwtw-q.js +0 -4
- package/dist/brainfuck-Bro9Oz5x.js +0 -4
- package/dist/classDiagram-2ON5EDUG-DphiMW3Y.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-BH1x5h4a.js +0 -30
- package/dist/clojure-B2uhdQPa.js +0 -4
- package/dist/cmake-B9WXyQcc.js +0 -4
- package/dist/cobol-CPD3EJfO.js +0 -4
- package/dist/coffeescript-KD9TnEnS.js +0 -4
- package/dist/commonlisp-DNEULz_Q.js +0 -4
- package/dist/crystal-DVPNgAPQ.js +0 -4
- package/dist/css-fq3a1AH1.js +0 -4
- package/dist/cypher-Dtzq0BP7.js +0 -4
- package/dist/d-DcZudIhJ.js +0 -4
- package/dist/diff-D9BPDC3o.js +0 -4
- package/dist/dist-B4MxkKHf.js +0 -8
- package/dist/dist-BYghZv6b.js +0 -5
- package/dist/dist-Be-uQhz5.js +0 -6
- package/dist/dist-CB_xf0ju.js +0 -5
- package/dist/dist-CK0qFAbF.js +0 -8
- package/dist/dist-CYEk-qrr.js +0 -8
- package/dist/dist-CmKoWpMk.js +0 -5
- package/dist/dist-D1nf4IQl.js +0 -5
- package/dist/dist-Df3AcKpt.js +0 -6
- package/dist/dist-DgaFHt_I.js +0 -5
- package/dist/dist-Dk10C3ui.js +0 -5
- package/dist/dist-DtyPVMHR.js +0 -5
- package/dist/dist-ko7WnHAO.js +0 -5
- package/dist/dist-of7gLRFK.js +0 -8
- package/dist/dtd-FhG-tVom.js +0 -4
- package/dist/dylan-HWpZOBPw.js +0 -4
- package/dist/ecl-B_rcje1I.js +0 -4
- package/dist/eiffel-oqHyHs6f.js +0 -4
- package/dist/elm-B62RQEds.js +0 -4
- package/dist/erlang-CjRjjA-B.js +0 -4
- package/dist/esm-BLobyqMs.js +0 -4387
- package/dist/factor-CGH_TnIV.js +0 -4
- package/dist/forth-5N06oHNp.js +0 -4
- package/dist/fortran-wZ-sNg3h.js +0 -4
- package/dist/gas-3H4_FaS8.js +0 -4
- package/dist/gherkin-PEA2uy50.js +0 -4
- package/dist/groovy-DZzbvCP1.js +0 -4
- package/dist/haskell-CExLTzho.js +0 -4
- package/dist/haxe-f3pVb8qU.js +0 -5
- package/dist/idl-BbWlJ0gk.js +0 -4
- package/dist/infoDiagram-HS3SLOUP-BXGbfBss.js +0 -30
- package/dist/javascript-eMOhp6Aq.js +0 -4
- package/dist/julia-C6w3Rvqb.js +0 -4
- package/dist/livescript-ChQl9lD-.js +0 -4
- package/dist/lua-CiDvI96j.js +0 -4
- package/dist/mathematica-ClVO4k7N.js +0 -4
- package/dist/mbox-BEI7DeUg.js +0 -4
- package/dist/mermaid-4DMBBIKO-PVrJfEpX.js +0 -6
- package/dist/mirc-DwidJ3iH.js +0 -4
- package/dist/mllike-Dspdy0xJ.js +0 -6
- package/dist/modelica-CIUejP-L.js +0 -4
- package/dist/mscgen-BWXU4Omp.js +0 -6
- package/dist/mumps-PHFFoPk5.js +0 -4
- package/dist/nsis-B7xooKLf.js +0 -4
- package/dist/ntriples-DnOgtCzG.js +0 -4
- package/dist/octave-Cn5kH_QT.js +0 -4
- package/dist/oz-DR-sROpu.js +0 -4
- package/dist/pascal-CPKK1zcS.js +0 -4
- package/dist/perl-D7FuFdyd.js +0 -4
- package/dist/pig-CEXnOAnI.js +0 -4
- package/dist/powershell-BKvWab7q.js +0 -4
- package/dist/properties-7jnK_vYx.js +0 -4
- package/dist/protobuf-4rslMjEN.js +0 -4
- package/dist/pug-BVwdEv4r.js +0 -4
- package/dist/puppet-iSHg_1Z2.js +0 -4
- package/dist/python-tK3wUCn0.js +0 -4
- package/dist/q-DP_Dcoox.js +0 -4
- package/dist/r-C32wHLYu.js +0 -4
- package/dist/react-vega-CFUuchds.js +0 -9
- package/dist/rpm-BbDBUfs9.js +0 -5
- package/dist/ruby-COfWUiIr.js +0 -4
- package/dist/sas-y_Hue2-X.js +0 -4
- package/dist/scheme-7jTCqHw8.js +0 -4
- package/dist/shell-DAqJWXDk.js +0 -4
- package/dist/sieve-EaqnbCO3.js +0 -4
- package/dist/smalltalk-DL03YKLJ.js +0 -4
- package/dist/sparql-DTA-tQ_q.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-BIeUs-Ed.js +0 -29
- package/dist/stex-KfRnSHzF.js +0 -4
- package/dist/stylus-CfjeFry_.js +0 -4
- package/dist/swift-Dl0RRDbH.js +0 -4
- package/dist/tcl-wv9O7fLZ.js +0 -4
- package/dist/textile-DzMRCBcV.js +0 -4
- package/dist/toml-CyIWqgbe.js +0 -4
- package/dist/troff-_huin_CY.js +0 -4
- package/dist/ttcn-BEiJuYYc.js +0 -4
- package/dist/ttcn-cfg-DB6Ksh67.js +0 -4
- package/dist/turtle-DzhzGEum.js +0 -4
- package/dist/useDeepCompareMemoize-BWUwfh37.js +0 -755
- package/dist/useIframeCapabilities-OQaMKgZl.js +0 -46
- package/dist/vb-CngKZQHu.js +0 -4
- package/dist/vbscript-BV_8nbeM.js +0 -4
- package/dist/velocity-IqE7qYKE.js +0 -4
- package/dist/verilog-xtyaWTnc.js +0 -4
- package/dist/vhdl-BaqXCtf3.js +0 -4
- package/dist/webidl-BDB8PTTO.js +0 -4
- package/dist/xquery-BIC-qj9Z.js +0 -4
- package/dist/yacas-ifv5tftd.js +0 -4
- package/dist/z80-B8zOMVNt.js +0 -4
- package/src/core/cells/effects.ts +0 -42
- 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/{_arrayReduce-BfFy684W.js → _arrayReduce-6BJAuN54.js} +0 -0
- /package/dist/{_baseSlice-BrVixxuc.js → _baseSlice-bwIVgwNq.js} +0 -0
- /package/dist/{_hasUnicode-C32WqUu7.js → _hasUnicode-DOFcQHhs.js} +0 -0
- /package/dist/{apl-DRxKiEot.js → apl-99A7dLQe.js} +0 -0
- /package/dist/{array-D-nrDupM.js → array-B-MVxRIF.js} +0 -0
- /package/dist/{asciiarmor-C8HoXFIm.js → asciiarmor-DLEhpFDx.js} +0 -0
- /package/dist/{asn1-9Bo0DYT-.js → asn1-CMrcTsT4.js} +0 -0
- /package/dist/{asterisk-BsiuGzWq.js → asterisk-BUZwqih-.js} +0 -0
- /package/dist/{brainfuck-Db8njC-p.js → brainfuck-ChPt5yBe.js} +0 -0
- /package/dist/{chunk-DR5Q36YT-D4q96vNV.js → chunk-DR5Q36YT-CP69aZS_.js} +0 -0
- /package/dist/{click-outside-container-CKfwEZqH.js → click-outside-container-DB_bTXRG.js} +0 -0
- /package/dist/{clike-CFhUNtI5.js → clike-CE0fXfM_.js} +0 -0
- /package/dist/{clojure-CX7oovsp.js → clojure-QkBEMU-g.js} +0 -0
- /package/dist/{clsx-D2KVTYnW.js → clsx-yW_RAw0K.js} +0 -0
- /package/dist/{cmake-C29AR2kk.js → cmake-CU1jX7Mo.js} +0 -0
- /package/dist/{cobol-CNkuRW9i.js → cobol-DMOKzzky.js} +0 -0
- /package/dist/{coffeescript-BJAbfGam.js → coffeescript-DjnjLyfk.js} +0 -0
- /package/dist/{colors-6nB_pSln.js → colors-Cn2p_FA3.js} +0 -0
- /package/dist/{common-keywords-BAkLFdud.js → common-keywords-hbLeU7VU.js} +0 -0
- /package/dist/{commonlisp-BTNhj2l9.js → commonlisp-CYd9iOSe.js} +0 -0
- /package/dist/{crystal-CZc0nIm9.js → crystal-Dy55yoYG.js} +0 -0
- /package/dist/{css-L2-0OTXc.js → css-CNU8w3HJ.js} +0 -0
- /package/dist/{cypher-Dnc6MXl0.js → cypher-q47DGzK7.js} +0 -0
- /package/dist/{cytoscape.esm-BXzSsA6N.js → cytoscape.esm-WbbDoCfu.js} +0 -0
- /package/dist/{d-C6X9iIga.js → d-jEkaLvxX.js} +0 -0
- /package/dist/{defaultLocale-CfQ4kBaV.js → defaultLocale-Dr6Bz4JK.js} +0 -0
- /package/dist/{defaultLocale-Bklbu-Tp.js → defaultLocale-I3_GfJ4U.js} +0 -0
- /package/dist/{diff-ZzKinYqY.js → diff-vb2-unFN.js} +0 -0
- /package/dist/{dist-Bymy0kEH.js → dist-C89sHDXk.js} +0 -0
- /package/dist/{dtd-CytEpkAo.js → dtd-C9kR-bXa.js} +0 -0
- /package/dist/{duckdb-keywords-C1WxmSfG.js → duckdb-keywords-CZ_ZTscu.js} +0 -0
- /package/dist/{dylan-CZByFBEQ.js → dylan-BLckrK-V.js} +0 -0
- /package/dist/{ebnf-BF2FOt-m.js → ebnf-WEXPLEWb.js} +0 -0
- /package/dist/{ecl-Cp7L1F5B.js → ecl-CEsf6XVg.js} +0 -0
- /package/dist/{eiffel-C66yjnFL.js → eiffel-2KGZNzx6.js} +0 -0
- /package/dist/{elm-DtHo-73e.js → elm-D2s3K5wF.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-DtW2o230.js → emotion-is-prop-valid.esm-CflmeIys.js} +0 -0
- /package/dist/{erlang-C_sj44mF.js → erlang-0PMFOndk.js} +0 -0
- /package/dist/{esm-BWftfC-A.js → esm-Bb_hbWan.js} +0 -0
- /package/dist/{fcl-BhLcvRo_.js → fcl-B_Gv5Jfx.js} +0 -0
- /package/dist/{forth-CIDHh56T.js → forth-DG89iUsu.js} +0 -0
- /package/dist/{fortran-BQrDVXRU.js → fortran-ytKsAVvu.js} +0 -0
- /package/dist/{gas-D4HQPB0Q.js → gas-Cg2Fm0N2.js} +0 -0
- /package/dist/{gherkin-UB2gJHdT.js → gherkin-B87FEnZ-.js} +0 -0
- /package/dist/{groovy-DVz6jkOx.js → groovy-Dcs08AWD.js} +0 -0
- /package/dist/{haskell-CpUdAPCz.js → haskell-cwkOuhx6.js} +0 -0
- /package/dist/{haxe-DCV5_cqD.js → haxe-DWEo4q10.js} +0 -0
- /package/dist/{http-C_TDb8VX.js → http-Dc2fv19V.js} +0 -0
- /package/dist/{idl-D7WCIgHw.js → idl-WWQwDcRV.js} +0 -0
- /package/dist/{init-Ci8VD8ZH.js → init-D-g0ONX1.js} +0 -0
- /package/dist/{invariant-D9QLJ4SZ.js → invariant-Ctm_8TNZ.js} +0 -0
- /package/dist/{isArrayLikeObject-BrYl-ETg.js → isArrayLikeObject-C-hFPChh.js} +0 -0
- /package/dist/{javascript-B2Rn0Lmd.js → javascript-BeR74dxD.js} +0 -0
- /package/dist/{jsx-runtime-CTBg5pdT.js → jsx-runtime-9hcJiI23.js} +0 -0
- /package/dist/{julia-ApprtEaw.js → julia-UlvCUYGL.js} +0 -0
- /package/dist/{katex-Bk_FvVSR.js → katex-B7pMJpE0.js} +0 -0
- /package/dist/{livescript-BMLIlM7C.js → livescript-GPmFcmYV.js} +0 -0
- /package/dist/{lua-DdDaW3tC.js → lua-DYoT_0zM.js} +0 -0
- /package/dist/{main-Tj_-QTyF.js → main-sxFlUO_N.js} +0 -0
- /package/dist/{math-HUZifhTs.js → math-BYK36kWZ.js} +0 -0
- /package/dist/{mathematica-PnNN7c2Z.js → mathematica-DSFIQlbG.js} +0 -0
- /package/dist/{mbox-B84OtHBK.js → mbox-ej8lFMdL.js} +0 -0
- /package/dist/{mirc-BVWXJxIq.js → mirc-CAdIdvHQ.js} +0 -0
- /package/dist/{mllike-BawXWupH.js → mllike-CjTB1lHF.js} +0 -0
- /package/dist/{modelica-C8-X4Hf_.js → modelica-BB68FYMa.js} +0 -0
- /package/dist/{mscgen-BOM6dDj8.js → mscgen-BkbzgGGI.js} +0 -0
- /package/dist/{mumps-DQOY8n05.js → mumps-Cu-28E9F.js} +0 -0
- /package/dist/{nginx-DkMgA__9.js → nginx-ComVAAGN.js} +0 -0
- /package/dist/{node-sql-parser-D53LM_7b.js → node-sql-parser-DNGGJ-Rw.js} +0 -0
- /package/dist/{ntriples-DU8VrXdW.js → ntriples-D9cQiZxZ.js} +0 -0
- /package/dist/{octave-BzTIBsQ8.js → octave-BvtAnPX0.js} +0 -0
- /package/dist/{oz-DKFcZsoi.js → oz-COaVHk2E.js} +0 -0
- /package/dist/{pascal-DHBZ15pT.js → pascal-BFpqVD2x.js} +0 -0
- /package/dist/{path-BVI7RNUv.js → path-Du6n3sOU.js} +0 -0
- /package/dist/{perl-75NMI3w0.js → perl-DaiORxHP.js} +0 -0
- /package/dist/{pig-B-HY1fo_.js → pig-DFzRhmsF.js} +0 -0
- /package/dist/{powershell-DEH22U53.js → powershell-BG2LQNKN.js} +0 -0
- /package/dist/{properties-B1MzBoJC.js → properties-CqJJR5QY.js} +0 -0
- /package/dist/{protobuf-Dr14KV0p.js → protobuf-WwDYV1yY.js} +0 -0
- /package/dist/{puppet-C4z38l7v.js → puppet-QNY3w_uN.js} +0 -0
- /package/dist/{purify.es-DGenX2XH.js → purify.es-Co_dANLh.js} +0 -0
- /package/dist/{python-D2L7Nknt.js → python-4QrQ3Ugi.js} +0 -0
- /package/dist/{q-PxipHfgS.js → q-DhwXuxE2.js} +0 -0
- /package/dist/{r-CEMMu_Tf.js → r-Df-nkR25.js} +0 -0
- /package/dist/{range-BToS7LsA.js → range-Bn3no95s.js} +0 -0
- /package/dist/{react-dom-CqtLRVZP.js → react-dom-BKwCWYPW.js} +0 -0
- /package/dist/{rpm-D3xyahkR.js → rpm-Cokue07s.js} +0 -0
- /package/dist/{ruby-DwEkwdiu.js → ruby-DrYcL3qF.js} +0 -0
- /package/dist/{sas-L1W0BRft.js → sas-CoiPirA5.js} +0 -0
- /package/dist/{scheme-CTybTrX0.js → scheme-CwFLjzHv.js} +0 -0
- /package/dist/{shell-BSx3LZnu.js → shell-BFV-R24I.js} +0 -0
- /package/dist/{sieve-BjUfbv-6.js → sieve-CxwXF5T9.js} +0 -0
- /package/dist/{simple-mode-IPZGFbI6.js → simple-mode-DTaJtKPt.js} +0 -0
- /package/dist/{smalltalk-BlzuYrMv.js → smalltalk-QivVOCtX.js} +0 -0
- /package/dist/{solr-Cj_9RM4d.js → solr-DTkyqJ-Z.js} +0 -0
- /package/dist/{sparql-BXKjQ0cK.js → sparql-nKsFk8j7.js} +0 -0
- /package/dist/{spreadsheet-CifI10GO.js → spreadsheet-CER0raqY.js} +0 -0
- /package/dist/{sql-B0bFyY1c.js → sql-ByOoEONQ.js} +0 -0
- /package/dist/{stex-BIsgBmK4.js → stex-7yEw16Ww.js} +0 -0
- /package/dist/{stylus-CqrLLVnG.js → stylus-BLKQAycn.js} +0 -0
- /package/dist/{swift-DIqvj3_G.js → swift-CJoKqiKj.js} +0 -0
- /package/dist/{tcl-B8bOIGVK.js → tcl-YTeYFNUc.js} +0 -0
- /package/dist/{textile-DZsjavD_.js → textile-C6rKQqMQ.js} +0 -0
- /package/dist/{tiddlywiki-BbGdvEjx.js → tiddlywiki-Cr9xyOY1.js} +0 -0
- /package/dist/{tiki-BYesmRDo.js → tiki-D5JONyfZ.js} +0 -0
- /package/dist/{timer-CPsmIOdm.js → timer-D7JVdX9U.js} +0 -0
- /package/dist/{toml-Uc7m08nl.js → toml-DxlPGbRy.js} +0 -0
- /package/dist/{treemap-DMn4tIJ7.js → treemap-qFGzn7xk.js} +0 -0
- /package/dist/{troff-GEl5wcXR.js → troff-DFCfH7Ku.js} +0 -0
- /package/dist/{ttcn-pr4FDOLT.js → ttcn-DAW-ERVP.js} +0 -0
- /package/dist/{ttcn-cfg-dZQ_fWTH.js → ttcn-cfg-CpJ8b7EN.js} +0 -0
- /package/dist/{turtle-TPRDOknA.js → turtle-BneV2f8L.js} +0 -0
- /package/dist/{vb-BJUAeTYr.js → vb-D973Vxxh.js} +0 -0
- /package/dist/{vbscript-CcJ6Z3ic.js → vbscript-Dckaq3YO.js} +0 -0
- /package/dist/{velocity-pq4ZMzU3.js → velocity-DKty-GUC.js} +0 -0
- /package/dist/{verilog-timMNjHt.js → verilog-aNaK_biA.js} +0 -0
- /package/dist/{vhdl-DYFbVKNm.js → vhdl-CQuehnQy.js} +0 -0
- /package/dist/{webidl-pue9oqnb.js → webidl-Bhg8vaMr.js} +0 -0
- /package/dist/{xquery-DeItGynK.js → xquery-D2q16GaM.js} +0 -0
- /package/dist/{yacas-By2Qrjba.js → yacas-DHGOHnNa.js} +0 -0
- /package/dist/{z80-C7iLsyPC.js → z80-BPhTmO22.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
|
|