@marimo-team/islands 0.25.2-dev14 → 0.25.2-dev140

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.
Files changed (404) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CqhQmp74.js → ConnectedDataExplorerComponent-CNSxdKyJ.js} +15 -15
  2. package/dist/{ErrorBoundary-M1CN91UQ.js → ErrorBoundary-BkQSYCZo.js} +12 -12
  3. package/dist/{ImageComparisonComponent-Cpfz30OZ.js → ImageComparisonComponent-uU8FSKZE.js} +3 -3
  4. package/dist/{Plot-CTyjbQDT.js → Plot-DdYOe1UK.js} +2 -2
  5. package/dist/{abnfDiagram-VCTEODGH-aLGD44M7.js → abnfDiagram-VCTEODGH-DQDjNXt3.js} +3 -3
  6. package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-B9REGlD9.js} +8 -8
  7. package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
  8. package/dist/{architectureDiagram-5GKGNRK7-BGL5P81u.js → architectureDiagram-5GKGNRK7-Nmls7Wxn.js} +5 -5
  9. package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
  10. package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
  11. package/dist/assets/__vite-browser-external-BXYkiFsk.js +1 -0
  12. package/dist/assets/worker-HPY9fbhz.js +114 -0
  13. package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
  14. package/dist/{blockDiagram-I7D4REHJ-CvBmppdy.js → blockDiagram-I7D4REHJ-Cg25UrxT.js} +9 -9
  15. package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
  16. package/dist/{button-B0Xgl-Qn.js → button-CvjkwdSk.js} +304 -287
  17. package/dist/{c4Diagram-7LVT6UL2-EceL4_jH.js → c4Diagram-7LVT6UL2-BxFgrnNV.js} +7 -7
  18. package/dist/{capabilities-D7Ad8-zw.js → capabilities-CQ5IjhzL.js} +1 -1
  19. package/dist/{cells-5ppES-Un.js → cells-C8iCYvLU.js} +5949 -4892
  20. package/dist/{channel-z7HZXHwv.js → channel-CPObtJXj.js} +1 -1
  21. package/dist/{chat-ui-Dv2V95k6.js → chat-ui-BDpymeoe.js} +1595 -1402
  22. package/dist/{check-DGZ74tV2.js → check-EDwSwP89.js} +1 -1
  23. package/dist/{chunk-4HAMMTFA-BPTTOOC5.js → chunk-4HAMMTFA-D4eFPyFh.js} +5 -5
  24. package/dist/{chunk-75Z2AOVW-C4AOleKf.js → chunk-75Z2AOVW-D7gxIs2Q.js} +1 -1
  25. package/dist/{chunk-DU6HZSFF-1TwWR6gh.js → chunk-DU6HZSFF-BwiyaNpg.js} +2 -2
  26. package/dist/{chunk-F27PBJKO-DMI1PBe4.js → chunk-F27PBJKO-ufseIn5y.js} +1 -1
  27. package/dist/{chunk-GMAD6QVW-vStrMz2P.js → chunk-GMAD6QVW-BhaJx0X3.js} +3 -3
  28. package/dist/{chunk-GVQU2GXP-2HwWgs4u.js → chunk-GVQU2GXP-Cwbt-lF0.js} +2 -2
  29. package/dist/{chunk-IMKFNOWR-Cm3RgLDj.js → chunk-IMKFNOWR-CoIFEo-1.js} +6 -6
  30. package/dist/{chunk-L3NEJ4N5-RhC7i0I2.js → chunk-L3NEJ4N5-n-zgIVSy.js} +5 -5
  31. package/dist/{chunk-OSK3NFVY-CZV09N-U.js → chunk-OSK3NFVY-DXa-Cxbn.js} +6 -6
  32. package/dist/{chunk-P2QGCYS3-0TAWai9C.js → chunk-P2QGCYS3-B_Zd3-X0.js} +1 -1
  33. package/dist/{chunk-POPQ4Y6H-Cc3_56GX.js → chunk-POPQ4Y6H-hYOXbYH_.js} +1 -1
  34. package/dist/{chunk-PWAF6VOD-lNxB9k8z.js → chunk-PWAF6VOD-CQw5qATZ.js} +1 -1
  35. package/dist/{chunk-SHT3W25Y-DedDYSP5.js → chunk-SHT3W25Y-lHiGx3ZC.js} +8 -8
  36. package/dist/{chunk-SVP7TREG-B2SFkCAL.js → chunk-SVP7TREG-BvsHIrY_.js} +2 -2
  37. package/dist/{chunk-TICWLB2K-DB6hjNOL.js → chunk-TICWLB2K-BC8YIm_n.js} +6 -6
  38. package/dist/{chunk-YOKDWASO-DrWbKnxA.js → chunk-YOKDWASO-DPZk8vhS.js} +6 -6
  39. package/dist/classDiagram-ZZMXUADV-Bt98lkkv.js +30 -0
  40. package/dist/classDiagram-v2-VYDZK3BY-D9bfbcC3.js +30 -0
  41. package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
  42. package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
  43. package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
  44. package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
  45. package/dist/{code-visibility-Clbu601l.js → code-visibility-DSbYTcxC.js} +8 -8
  46. package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
  47. package/dist/{common-DnmYjCVM.js → common-CZoGPEDT.js} +13579 -14584
  48. package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
  49. package/dist/{compiler-runtime-Cj8ZWiNS.js → compiler-runtime-CldRdSsv.js} +2 -2
  50. package/dist/{copy-icon-qmRg_VTX.js → copy-icon-Ft7t9bqz.js} +6 -6
  51. package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
  52. package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
  53. package/dist/{cynefinDiagram-5FMLGOSQ-DzaZEqgD.js → cynefinDiagram-5FMLGOSQ-CgWra7wt.js} +3 -3
  54. package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
  55. package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
  56. package/dist/{dagre-GXQ25YYZ-Cjf5GjU3.js → dagre-GXQ25YYZ-CFZ8-35c.js} +10 -10
  57. package/dist/{data-grid-overlay-editor-CYhrcE4X.js → data-grid-overlay-editor-Bahjo5W-.js} +7 -7
  58. package/dist/{data-grid-types-BucVmDDp.js → data-grid-types-BH_r7g7l.js} +1 -1
  59. package/dist/{diagram-S7CK7UJ4-IhLt_khx.js → diagram-S7CK7UJ4-lCNQrW7d.js} +4 -4
  60. package/dist/{diagram-UQ7AKVKN-CQc6KLPB.js → diagram-UQ7AKVKN-CQPQ6pP_.js} +3 -3
  61. package/dist/{diagram-VSXAHHWV-CR7BJygZ.js → diagram-VSXAHHWV-BJWcVVJY.js} +2 -2
  62. package/dist/{diagram-VX7I27RA-DHmW9N1T.js → diagram-VX7I27RA-Cf3b0llz.js} +5 -5
  63. package/dist/{diagram-Z3DM3KII-zVKsg-Ty.js → diagram-Z3DM3KII-Bt4QLrpn.js} +3 -3
  64. package/dist/{dialog-CILKhbsG.js → dialog-CEBFZNyc.js} +29 -29
  65. package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
  66. package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
  67. package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
  68. package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
  69. package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
  70. package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
  71. package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
  72. package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
  73. package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
  74. package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
  75. package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
  76. package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
  77. package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
  78. package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
  79. package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
  80. package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
  81. package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
  82. package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
  83. package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
  84. package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
  85. package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
  86. package/dist/{dist-CcyKTBTF.js → dist-DpBpA_n1.js} +2 -2
  87. package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
  88. package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
  89. package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
  90. package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
  91. package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
  92. package/dist/dropdown-menu-CP_qCYHC.js +4678 -0
  93. package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
  94. package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
  95. package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
  96. package/dist/{ebnfDiagram-PWID7BFC-DDd5hCRC.js → ebnfDiagram-PWID7BFC-D3NAyPFY.js} +3 -3
  97. package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
  98. package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
  99. package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
  100. package/dist/{erDiagram-RLTQ6QDP-D10NP0eI.js → erDiagram-RLTQ6QDP-Tlu09_Nm.js} +12 -12
  101. package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
  102. package/dist/error-banner-Da600cwz.js +362 -0
  103. package/dist/{error-entries-B2Ux3Z2X.js → error-entries-CzoYkIQZ.js} +2 -2
  104. package/dist/{esm-h8f7-1CJ.js → esm-AMFssoNp.js} +380 -374
  105. package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
  106. package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
  107. package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
  108. package/dist/{feedback-button-DQUXhzxG.js → feedback-button-DzW23W2G.js} +13 -13
  109. package/dist/flowDiagram-HODETNUW-CAYbpJmV.js +16 -0
  110. package/dist/{formats-Q9gwlLyD.js → formats-BGh2thRc.js} +6 -6
  111. package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
  112. package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
  113. package/dist/{ganttDiagram-EL5Y4UJY-cRRaDt88.js → ganttDiagram-EL5Y4UJY-BQT16JSc.js} +2 -2
  114. package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
  115. package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
  116. package/dist/{gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js → gitGraphDiagram-WWUBYQGX-D5nSIzdE.js} +2 -2
  117. package/dist/{glide-data-editor-B4sl2a3f.js → glide-data-editor-VRZlRc-O.js} +60 -60
  118. package/dist/{glide-utils-CzzWU59p.js → glide-utils-DJyqh0EM.js} +4 -4
  119. package/dist/{globals-DZ0cKrtp.js → globals-FYJ8OxBd.js} +3 -3
  120. package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
  121. package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
  122. package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
  123. package/dist/{highlighted-body-KPVGNVTW-Ad3MKZ18.js → highlighted-body-KPVGNVTW-zwjq21tf.js} +4 -4
  124. package/dist/{html-to-image-BZBwkkDG.js → html-to-image-CZY1pIZH.js} +547 -569
  125. package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
  126. package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
  127. package/dist/{infoDiagram-27XIBGKW-DrYu3UZC.js → infoDiagram-27XIBGKW-XrDxhr0x.js} +2 -2
  128. package/dist/{ishikawaDiagram-5VMMS53U-pmkGQJsA.js → ishikawaDiagram-5VMMS53U-CD1muzov.js} +3 -3
  129. package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
  130. package/dist/{journeyDiagram-3NMN7TZE-EPJDPlt0.js → journeyDiagram-3NMN7TZE-BaLqn-dZ.js} +2 -2
  131. package/dist/{jsx-runtime-DgDPJV9S.js → jsx-runtime-3BD1kT0s.js} +1 -1
  132. package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
  133. package/dist/{kanban-definition-UXKFOSKX-wWGD9VLW.js → kanban-definition-UXKFOSKX-Dg9W142_.js} +9 -9
  134. package/dist/{katex-BNCmKUol.js → katex-BIdZGsyO.js} +141 -116
  135. package/dist/label-BDKF3Afc.js +281 -0
  136. package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
  137. package/dist/{loader-C9OUkMrj.js → loader-BQOfjTIJ.js} +1 -1
  138. package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
  139. package/dist/main.js +7059 -6908
  140. package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
  141. package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
  142. package/dist/{mermaid-Dfvntf3s.js → mermaid-CiAXjLpA.js} +57 -57
  143. package/dist/mermaid-HWGCJPDP-ByCsZnYF.js +2 -0
  144. package/dist/{mhchem-BEc7A1or.js → mhchem-CdWPJK6g.js} +1 -1
  145. package/dist/{mindmap-definition-YA3MSWOX-C2f1VIBR.js → mindmap-definition-YA3MSWOX-DgCidgYJ.js} +11 -11
  146. package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
  147. package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
  148. package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
  149. package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
  150. package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
  151. package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
  152. package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
  153. package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
  154. package/dist/{number-overlay-editor-CbKIioUo.js → number-overlay-editor-BZVTQDVj.js} +5 -5
  155. package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
  156. package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
  157. package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
  158. package/dist/{pegDiagram-XKGWAZYB-D6v5dz4M.js → pegDiagram-XKGWAZYB-coOYYKB6.js} +3 -3
  159. package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
  160. package/dist/{pieDiagram-E7YTZNPT-BwFAhpYD.js → pieDiagram-E7YTZNPT-BnXTc3bj.js} +3 -3
  161. package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
  162. package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
  163. package/dist/{process-output-BSsWzfnY.js → process-output-e4jj9Ijt.js} +4 -4
  164. package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
  165. package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
  166. package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
  167. package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
  168. package/dist/purify.es-DMv5zIkJ.js +866 -0
  169. package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
  170. package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
  171. package/dist/{quadrantDiagram-AXDQQJYC--kqzFC3w.js → quadrantDiagram-AXDQQJYC-Ccw0xMjN.js} +1 -1
  172. package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
  173. package/dist/{railroadDiagram-O6MQD6OU-D6eOFr6Z.js → railroadDiagram-O6MQD6OU-B28-u83n.js} +3 -3
  174. package/dist/{react-dom-BUgJ-ab_.js → react-dom-DUmH0GXv.js} +29 -21
  175. package/dist/{react-ofJbxM4x.js → react-sHtZdjeP.js} +103 -94
  176. package/dist/{react-vega-ewj7q_U5.js → react-vega-BED0DjiB.js} +3 -3
  177. package/dist/{requirementDiagram-BXWQKSXE-CHYsMgDR.js → requirementDiagram-BXWQKSXE-CdYCTMu0.js} +11 -11
  178. package/dist/{reveal-component-CSChrj7R.js → reveal-component-BU1x-Q6a.js} +906 -878
  179. package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
  180. package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
  181. package/dist/{sankeyDiagram-P5KCCOFB-BdzhT0BM.js → sankeyDiagram-P5KCCOFB-ELvOcnZH.js} +1 -1
  182. package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
  183. package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
  184. package/dist/select-BButFi-d.js +1344 -0
  185. package/dist/{sequenceDiagram-WJ2MYXX4-BPAknhBp.js → sequenceDiagram-WJ2MYXX4-CM3aRAe_.js} +4 -4
  186. package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
  187. package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
  188. package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
  189. package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
  190. package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
  191. package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
  192. package/dist/{spec-D62vWpMT.js → spec-BwarBpUJ.js} +116 -135
  193. package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
  194. package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
  195. package/dist/{stateDiagram-D77RDMKH-Cq249IQ4.js → stateDiagram-D77RDMKH-DOZUMVj8.js} +13 -13
  196. package/dist/stateDiagram-v2-MP3YSRHH-CISYxma6.js +30 -0
  197. package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
  198. package/dist/style.css +1 -1
  199. package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
  200. package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
  201. package/dist/{swimlanes-42K2YHIH-Bh_S_HKD.js → swimlanes-42K2YHIH-BkSppxp8.js} +10 -10
  202. package/dist/swimlanesDiagram-VR7AAH4N-c8G5pGxC.js +30 -0
  203. package/dist/{swiper-component-DkV7T44B.js → swiper-component-DKntyn8p.js} +5 -5
  204. package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
  205. package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
  206. package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
  207. package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
  208. package/dist/{timeline-definition-24CTP7MA-ByNMgBE7.js → timeline-definition-24CTP7MA-CaMQayqK.js} +3 -3
  209. package/dist/{toDate-DWVp6uE1.js → toDate-BNJf01u1.js} +8 -9
  210. package/dist/{toast-DcoJGS3-.js → toast-B9UMEi8u.js} +161 -165
  211. package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
  212. package/dist/{tooltip-Bi36DgYh.js → tooltip-BO1REbqs.js} +548 -584
  213. package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
  214. package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
  215. package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
  216. package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
  217. package/dist/{use-restore-focus-ZgG5Br63.js → use-restore-focus-BEM7sFWl.js} +2430 -2007
  218. package/dist/{use-vega-container-remeasure-4DwJbPWu.js → use-vega-container-remeasure-Bz4PZMtt.js} +2 -2
  219. package/dist/{useAsyncData-BD7NLQ3_.js → useAsyncData-Deh5kszT.js} +3 -3
  220. package/dist/{useDateFormatter-D8XWr8lL.js → useDateFormatter-D8XruNGG.js} +53 -32
  221. package/dist/{useDeepCompareMemoize-CawMGSRU.js → useDeepCompareMemoize-DXwzRINI.js} +2 -2
  222. package/dist/{useIframeCapabilities-BUMBOpsM.js → useIframeCapabilities-DBETvvPl.js} +2 -2
  223. package/dist/{useLifecycle-3vGhRa1o.js → useLifecycle-j7D9uD1o.js} +6 -6
  224. package/dist/{useTheme-BOw801nZ.js → useTheme-CRnjkku0.js} +7 -7
  225. package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
  226. package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
  227. package/dist/{vega-component-9siY74NS.js → vega-component-DG29TAB7.js} +14 -14
  228. package/dist/{vega-embed-container-sSR5hAsy.js → vega-embed-container-BNHE18G9.js} +5 -5
  229. package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
  230. package/dist/{vennDiagram-4TSXK5OY-DY8CySdO.js → vennDiagram-4TSXK5OY-CF8pfaK3.js} +3 -3
  231. package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
  232. package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
  233. package/dist/{wardleyDiagram-VM6X3IG4-DYC1AFni.js → wardleyDiagram-VM6X3IG4-dGPu39d-.js} +3 -3
  234. package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
  235. package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
  236. package/dist/{xychartDiagram-S5SC5T6Z-Df8LLnuY.js → xychartDiagram-S5SC5T6Z-CP6-9q56.js} +5 -5
  237. package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
  238. package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
  239. package/package.json +38 -37
  240. package/src/__tests__/mount.test.ts +6 -6
  241. package/src/components/chat/__tests__/chat-history-popover.test.tsx +157 -0
  242. package/src/components/chat/chat-history-popover.tsx +98 -17
  243. package/src/components/chat/chat-panel.tsx +29 -0
  244. package/src/components/chat/tool-call/__tests__/tool-result.test.tsx +56 -0
  245. package/src/components/chat/tool-call/tool-result.tsx +3 -3
  246. package/src/components/data-table/TableTopBar.tsx +4 -0
  247. package/src/components/data-table/__tests__/column_formatting.test.ts +30 -0
  248. package/src/components/data-table/__tests__/columns.test.tsx +70 -0
  249. package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
  250. package/src/components/data-table/__tests__/pagination.test.tsx +85 -1
  251. package/src/components/data-table/__tests__/schemas.test.ts +57 -0
  252. package/src/components/data-table/charts/__tests__/schemas.test.ts +25 -0
  253. package/src/components/data-table/charts/__tests__/slider-field.test.tsx +54 -0
  254. package/src/components/data-table/charts/__tests__/spec.test.ts +26 -23
  255. package/src/components/data-table/charts/components/form-fields.tsx +3 -1
  256. package/src/components/data-table/charts/constants.ts +11 -10
  257. package/src/components/data-table/charts/types.ts +1 -0
  258. package/src/components/data-table/column-formatting/feature.ts +20 -1
  259. package/src/components/data-table/columns.tsx +25 -18
  260. package/src/components/data-table/data-table.tsx +3 -0
  261. package/src/components/data-table/export-actions.tsx +365 -81
  262. package/src/components/data-table/pagination.tsx +16 -2
  263. package/src/components/data-table/schemas.ts +90 -14
  264. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +32 -46
  265. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +29 -40
  266. package/src/components/editor/actions/pair-with-agent-commands.ts +3 -4
  267. package/src/components/editor/actions/pair-with-agent-modal.tsx +4 -7
  268. package/src/components/editor/actions/useRestartKernel.tsx +2 -2
  269. package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +224 -17
  270. package/src/components/editor/alerts/connection-details.tsx +61 -0
  271. package/src/components/editor/alerts/connection-notice.tsx +46 -53
  272. package/src/components/editor/alerts/startup-progress.tsx +73 -129
  273. package/src/components/editor/app-container.tsx +2 -2
  274. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +2 -2
  275. package/src/components/editor/cell/CreateCellButton.tsx +2 -2
  276. package/src/components/editor/cell/DeleteButton.tsx +2 -2
  277. package/src/components/editor/cell/RunButton.tsx +3 -3
  278. package/src/components/editor/cell/StopButton.tsx +2 -2
  279. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +4 -4
  280. package/src/components/editor/chrome/components/feedback-button.tsx +3 -3
  281. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +8 -8
  282. package/src/components/editor/chrome/panels/__tests__/{sandbox-details.test.tsx → runtime-details.test.tsx} +94 -22
  283. package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +4 -4
  284. package/src/components/editor/chrome/panels/packages-panel.tsx +8 -29
  285. package/src/components/editor/chrome/panels/{sandbox-details-state.ts → runtime-details-state.ts} +1 -1
  286. package/src/components/editor/chrome/panels/{sandbox-panel.tsx → runtime-panel.tsx} +38 -66
  287. package/src/components/editor/chrome/panels/runtime-status-toggle.tsx +56 -0
  288. package/src/components/editor/chrome/panels/sandbox-controller.tsx +2 -2
  289. package/src/components/editor/chrome/wrapper/app-chrome.tsx +3 -3
  290. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +2 -2
  291. package/src/components/editor/controls/Controls.tsx +3 -3
  292. package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +6 -5
  293. package/src/components/editor/header/__tests__/status.test.tsx +4 -4
  294. package/src/components/editor/header/app-header.tsx +2 -2
  295. package/src/components/editor/header/status.tsx +3 -3
  296. package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
  297. package/src/components/editor/output/console/ConsoleOutput.tsx +5 -3
  298. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +18 -0
  299. package/src/components/storage/__tests__/storage-file-viewer.test.tsx +2 -1
  300. package/src/components/ui/__tests__/slider.test.tsx +37 -0
  301. package/src/components/ui/progress-stages.tsx +114 -0
  302. package/src/components/ui/slider.tsx +2 -0
  303. package/src/core/ai/__tests__/state.test.ts +120 -0
  304. package/src/core/ai/state.ts +36 -10
  305. package/src/core/cells/__tests__/document-roundtrip.test.ts +16 -0
  306. package/src/core/codemirror/copilot/__tests__/completion-integration.test.ts +447 -0
  307. package/src/core/codemirror/copilot/__tests__/inline-completion.test.ts +395 -0
  308. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +511 -2
  309. package/src/core/codemirror/copilot/__tests__/rpc-cancellation.test.ts +201 -0
  310. package/src/core/codemirror/copilot/extension.ts +22 -11
  311. package/src/core/codemirror/copilot/language-server.ts +109 -60
  312. package/src/core/codemirror/language/__tests__/sql.test.ts +4 -3
  313. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +138 -26
  314. package/src/core/codemirror/language/embedded/embedded-python.ts +47 -13
  315. package/src/core/codemirror/language/embedded/latex.ts +20 -13
  316. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +106 -5
  317. package/src/core/codemirror/lsp/notebook-lsp.ts +16 -2
  318. package/src/core/codemirror/readonly/__tests__/extension.test.ts +6 -6
  319. package/src/core/codemirror/readonly/extension.ts +2 -2
  320. package/src/core/config/pair.ts +0 -1
  321. package/src/core/datasets/__tests__/data-source-discovery.test.ts +20 -13
  322. package/src/core/edit-app.tsx +5 -1
  323. package/src/core/export/hooks.ts +2 -2
  324. package/src/core/islands/bootstrap.ts +1 -0
  325. package/src/core/islands/bridge.ts +2 -2
  326. package/src/core/kernel/messages.ts +4 -7
  327. package/src/core/kernel/session.ts +9 -0
  328. package/src/core/network/__tests__/api.test.ts +114 -1
  329. package/src/core/network/__tests__/connection.test.ts +3 -3
  330. package/src/core/network/api.ts +3 -2
  331. package/src/core/network/connection-notice.ts +5 -5
  332. package/src/core/network/connection.ts +9 -9
  333. package/src/core/network/requests-lazy.ts +2 -2
  334. package/src/core/packages/__tests__/useSandboxController.test.tsx +2 -2
  335. package/src/core/packages/useSandboxController.ts +6 -6
  336. package/src/core/runtime/__tests__/adapter.test.ts +6 -6
  337. package/src/core/runtime/adapter.ts +7 -7
  338. package/src/core/runtime/config.ts +2 -2
  339. package/src/core/saving/filename.ts +2 -2
  340. package/src/core/saving/save-component.tsx +5 -5
  341. package/src/core/saving/useAutoSave.ts +2 -2
  342. package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
  343. package/src/core/wasm/bridge.ts +2 -2
  344. package/src/core/wasm/worker/bootstrap.ts +22 -3
  345. package/src/core/wasm/worker/types.ts +2 -2
  346. package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +30 -25
  347. package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +5 -5
  348. package/src/core/websocket/connection-utils.ts +21 -21
  349. package/src/core/websocket/types.ts +8 -9
  350. package/src/core/websocket/useMarimoKernelConnection.tsx +33 -22
  351. package/src/css/katex-css.test.ts +166 -0
  352. package/src/css/katex.min.css +175 -169
  353. package/src/hooks/__tests__/useEventListener.test.tsx +45 -1
  354. package/src/hooks/useEventListener.ts +6 -1
  355. package/src/mount.tsx +2 -2
  356. package/src/plugins/core/__test__/registerReactComponent.test.ts +55 -0
  357. package/src/plugins/core/registerReactComponent.tsx +3 -1
  358. package/src/plugins/impl/CheckboxPlugin.tsx +1 -1
  359. package/src/plugins/impl/DataTablePlugin.tsx +23 -2
  360. package/src/plugins/impl/DatePickerPlugin.tsx +5 -3
  361. package/src/plugins/impl/DateRangePlugin.tsx +5 -3
  362. package/src/plugins/impl/DateTimePickerPlugin.tsx +5 -3
  363. package/src/plugins/impl/DropdownPlugin.tsx +1 -1
  364. package/src/plugins/impl/MultiselectPlugin.tsx +1 -1
  365. package/src/plugins/impl/NumberPlugin.tsx +21 -4
  366. package/src/plugins/impl/RadioPlugin.tsx +5 -1
  367. package/src/plugins/impl/RangeSliderPlugin.tsx +1 -1
  368. package/src/plugins/impl/SearchableSelect.tsx +1 -1
  369. package/src/plugins/impl/SliderPlugin.tsx +5 -1
  370. package/src/plugins/impl/SwitchPlugin.tsx +6 -1
  371. package/src/plugins/impl/TextAreaPlugin.tsx +23 -4
  372. package/src/plugins/impl/TextInputPlugin.tsx +10 -2
  373. package/src/plugins/impl/__test__/slider-labels.test.tsx +136 -0
  374. package/src/plugins/impl/__test__/text-labels.test.tsx +141 -0
  375. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
  376. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +159 -1
  377. package/src/plugins/impl/__tests__/widget-labels.test.tsx +122 -0
  378. package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
  379. package/src/plugins/impl/common/labeled.tsx +9 -3
  380. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +15 -3
  381. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +0 -22
  382. package/src/stories/cell.stories.tsx +2 -2
  383. package/src/stories/dataframe.stories.tsx +7 -0
  384. package/src/stories/layout/vertical/one-column.stories.tsx +5 -5
  385. package/src/stories/progress-stages.stories.tsx +62 -0
  386. package/src/stories/runtime-existing.stories.tsx +44 -0
  387. package/src/stories/runtime-maintenance.stories.tsx +40 -0
  388. package/src/stories/runtime-pixi.stories.tsx +28 -0
  389. package/src/stories/{sandbox.stories.tsx → runtime-story.tsx} +191 -152
  390. package/src/stories/runtime-uv.stories.tsx +56 -0
  391. package/dist/assets/__vite-browser-external-C9iR87Zl.js +0 -1
  392. package/dist/assets/worker-D7hWi02M.js +0 -109
  393. package/dist/classDiagram-ZZMXUADV-BwYhrSEX.js +0 -30
  394. package/dist/classDiagram-v2-VYDZK3BY-HecM04TM.js +0 -30
  395. package/dist/dropdown-menu-BaqM0t4N.js +0 -4502
  396. package/dist/error-banner-DzAmP0AQ.js +0 -391
  397. package/dist/flowDiagram-HODETNUW-DgcjSdPV.js +0 -16
  398. package/dist/label-MNhNNoN6.js +0 -278
  399. package/dist/mermaid-HWGCJPDP-DYCzSILp.js +0 -2
  400. package/dist/purify.es-DgKyQviY.js +0 -805
  401. package/dist/select-BcObMjGz.js +0 -970
  402. package/dist/stateDiagram-v2-MP3YSRHH-Dk5QgdXF.js +0 -30
  403. package/dist/swimlanesDiagram-VR7AAH4N-CbztusY8.js +0 -30
  404. package/src/components/editor/chrome/panels/sandbox-toggle.tsx +0 -52
@@ -0,0 +1,136 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
+ import { fireEvent, render, screen } from "@testing-library/react";
3
+ import { describe, expect, test, vi } from "vitest";
4
+ import { SetupMocks } from "@/__mocks__/common";
5
+ import { SliderPlugin } from "../SliderPlugin";
6
+
7
+ SetupMocks.resizeObserver();
8
+ const plugin = new SliderPlugin();
9
+ function props(label: string | null) {
10
+ return {
11
+ host: document.createElement("div"),
12
+ value: 5,
13
+ setValue: vi.fn(),
14
+ functions: {},
15
+ data: plugin.validator.parse({
16
+ initialValue: 5,
17
+ start: 0,
18
+ stop: 10,
19
+ step: 1,
20
+ steps: null,
21
+ label,
22
+ }),
23
+ };
24
+ }
25
+
26
+ describe("SliderPlugin accessible labels", () => {
27
+ test("names the actual thumb from formatted labels and updates its reference", () => {
28
+ const initial = props("<strong>Price &amp; tax</strong>");
29
+ const { rerender } = render(plugin.render(initial));
30
+ const thumb = screen.getByRole("slider", { name: "Price & tax" });
31
+ const labelId = thumb.getAttribute("aria-labelledby");
32
+ rerender(
33
+ plugin.render({
34
+ ...initial,
35
+ data: { ...initial.data, label: "Updated price" },
36
+ }),
37
+ );
38
+ const updatedThumb = screen.getByRole("slider", { name: "Updated price" });
39
+ expect(updatedThumb).toHaveAccessibleName("Updated price");
40
+ expect(updatedThumb).toHaveAttribute("aria-labelledby", labelId);
41
+ rerender(
42
+ plugin.render({ ...initial, data: { ...initial.data, label: null } }),
43
+ );
44
+ expect(screen.getByRole("slider")).toHaveAccessibleName("Slider");
45
+ expect(screen.getByRole("slider")).not.toHaveAttribute("aria-labelledby");
46
+ });
47
+
48
+ test.each([null, ""])("retains a fallback name for label %s", (label) => {
49
+ render(plugin.render(props(label)));
50
+ expect(screen.getByRole("slider")).toHaveAccessibleName("Slider");
51
+ });
52
+
53
+ test("keeps repeated widget labels independently associated", () => {
54
+ render(
55
+ <>
56
+ {plugin.render(props("Price"))}
57
+ {plugin.render(props("Price"))}
58
+ </>,
59
+ );
60
+ const thumbs = screen.getAllByRole("slider", { name: "Price" });
61
+ expect(thumbs).toHaveLength(2);
62
+ expect(thumbs[0].getAttribute("aria-labelledby")).not.toBe(
63
+ thumbs[1].getAttribute("aria-labelledby"),
64
+ );
65
+ });
66
+
67
+ test.each([false, true])(
68
+ "preserves keyboard commits with debounce=%s",
69
+ (debounce) => {
70
+ const initial = props("Price");
71
+ render(
72
+ plugin.render({ ...initial, data: { ...initial.data, debounce } }),
73
+ );
74
+ fireEvent.keyDown(screen.getByRole("slider"), { key: "ArrowRight" });
75
+ expect(initial.setValue).toHaveBeenCalledWith(6);
76
+ },
77
+ );
78
+
79
+ test("preserves maximum and minimum keyboard boundaries", () => {
80
+ const initial = props("Price");
81
+ const { rerender } = render(plugin.render({ ...initial, value: 10 }));
82
+ fireEvent.keyDown(screen.getByRole("slider"), { key: "ArrowRight" });
83
+ expect(initial.setValue).not.toHaveBeenCalled();
84
+ rerender(plugin.render({ ...initial, value: 0 }));
85
+ fireEvent.keyDown(screen.getByRole("slider"), { key: "ArrowLeft" });
86
+ expect(initial.setValue).not.toHaveBeenCalled();
87
+ });
88
+
89
+ test("retains the name while disabled and removes keyboard focusability", () => {
90
+ const initial = props("Price");
91
+ render(
92
+ plugin.render({ ...initial, data: { ...initial.data, disabled: true } }),
93
+ );
94
+ const thumb = screen.getByRole("slider", { name: "Price" });
95
+ expect(thumb).not.toHaveAttribute("tabindex");
96
+ expect(thumb).toHaveAttribute("data-disabled");
97
+ });
98
+
99
+ test("preserves vertical keyboard interaction", () => {
100
+ const initial = props("Price");
101
+ render(
102
+ plugin.render({
103
+ ...initial,
104
+ data: { ...initial.data, orientation: "vertical" },
105
+ }),
106
+ );
107
+ const thumb = screen.getByRole("slider", { name: "Price" });
108
+ expect(thumb).toHaveAttribute("aria-orientation", "vertical");
109
+ fireEvent.keyDown(thumb, { key: "ArrowUp" });
110
+ expect(initial.setValue).toHaveBeenCalledWith(6);
111
+ });
112
+
113
+ test("preserves mapped values while naming the index-space thumb", () => {
114
+ const initial = props("Mapped price");
115
+ render(
116
+ plugin.render({
117
+ ...initial,
118
+ value: 1,
119
+ data: {
120
+ ...initial.data,
121
+ start: 0,
122
+ stop: 2,
123
+ steps: [10, 20, 50],
124
+ showValue: true,
125
+ },
126
+ }),
127
+ );
128
+ expect(screen.getByText("20")).toBeInTheDocument();
129
+ fireEvent.keyDown(screen.getByRole("slider", { name: "Mapped price" }), {
130
+ key: "ArrowRight",
131
+ });
132
+ expect(initial.setValue).toHaveBeenCalledWith(2);
133
+ expect(screen.getByRole("slider")).toHaveAttribute("aria-valuenow", "2");
134
+ expect(screen.getByRole("tooltip")).toHaveTextContent("50");
135
+ });
136
+ });
@@ -0,0 +1,141 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
+ import { act, fireEvent, render, screen } from "@testing-library/react";
3
+ import { expect, test, vi } from "vitest";
4
+ import type { IPlugin } from "../../types";
5
+ import { TextInputPlugin } from "../TextInputPlugin";
6
+ import { TextAreaPlugin } from "../TextAreaPlugin";
7
+
8
+ function testLabelBehavior<D extends { label: string | null }>(
9
+ plugin: IPlugin<string, D>,
10
+ ) {
11
+ for (const debounce of [false, true, 200]) {
12
+ test(`${plugin.tagName} associates formatted label with debounce=${debounce}`, () => {
13
+ const setValue = vi.fn();
14
+ const props = {
15
+ host: document.createElement("div"),
16
+ value: "",
17
+ setValue,
18
+ functions: {},
19
+ data: plugin.validator.parse({
20
+ initialValue: "",
21
+ placeholder: "",
22
+ label: "<strong>Notes &amp; details</strong>",
23
+ debounce,
24
+ }),
25
+ };
26
+ const { rerender } = render(plugin.render(props));
27
+ const control = screen.getByLabelText("Notes & details");
28
+ expect(control).toHaveAccessibleName("Notes & details");
29
+ const id = control.id;
30
+ rerender(
31
+ plugin.render({
32
+ ...props,
33
+ data: { ...props.data, label: "Updated notes" },
34
+ }),
35
+ );
36
+ expect(screen.getByLabelText("Updated notes").id).toBe(id);
37
+ rerender(
38
+ plugin.render({ ...props, data: { ...props.data, label: null } }),
39
+ );
40
+ expect(control).toHaveAccessibleName("");
41
+ });
42
+ test(`${plugin.tagName} preserves commit timing with debounce=${debounce}`, () => {
43
+ vi.useFakeTimers();
44
+ try {
45
+ const setValue = vi.fn();
46
+ const props = {
47
+ host: document.createElement("div"),
48
+ value: "",
49
+ setValue,
50
+ functions: {},
51
+ data: plugin.validator.parse({
52
+ initialValue: "",
53
+ placeholder: "",
54
+ label: "Notes",
55
+ debounce,
56
+ }),
57
+ };
58
+ render(plugin.render(props));
59
+ const control = screen.getByLabelText("Notes");
60
+ if (debounce === false) {
61
+ fireEvent.input(control, { target: { value: "hello" } });
62
+ } else {
63
+ fireEvent.change(control, { target: { value: "hello" } });
64
+ }
65
+ const immediateCalls = debounce === false ? 1 : 0;
66
+ expect(setValue).toHaveBeenCalledTimes(immediateCalls);
67
+ act(() => vi.advanceTimersByTime(199));
68
+ expect(setValue).toHaveBeenCalledTimes(immediateCalls);
69
+ if (debounce === true) {
70
+ fireEvent.blur(control);
71
+ } else if (typeof debounce === "number") {
72
+ act(() => vi.advanceTimersByTime(1));
73
+ }
74
+ expect(setValue).toHaveBeenCalledWith("hello");
75
+ } finally {
76
+ vi.useRealTimers();
77
+ }
78
+ });
79
+ }
80
+ }
81
+
82
+ for (const kind of ["text", "password", "email", "url"] as const) {
83
+ test(`native association preserves ${kind} input attributes`, () => {
84
+ const plugin = new TextInputPlugin();
85
+ render(
86
+ plugin.render({
87
+ host: document.createElement("div"),
88
+ value: "",
89
+ setValue: vi.fn(),
90
+ functions: {},
91
+ data: plugin.validator.parse({
92
+ initialValue: "",
93
+ placeholder: "",
94
+ label: "Account",
95
+ kind,
96
+ disabled: true,
97
+ minLength: 2,
98
+ maxLength: 30,
99
+ }),
100
+ }),
101
+ );
102
+ const control = screen.getByLabelText("Account");
103
+ expect(control).toHaveAttribute("type", kind);
104
+ expect(control).toBeDisabled();
105
+ expect(control).toBeRequired();
106
+ expect(control).toHaveAttribute("minlength", "2");
107
+ expect(control).toHaveAttribute("maxlength", "30");
108
+ });
109
+ }
110
+
111
+ function testMultipleInstances<D>(plugin: IPlugin<string, D>) {
112
+ test(`${plugin.tagName} keeps repeated labels independently associated`, () => {
113
+ const props = {
114
+ host: document.createElement("div"),
115
+ value: "",
116
+ setValue: vi.fn(),
117
+ functions: {},
118
+ data: plugin.validator.parse({
119
+ initialValue: "",
120
+ placeholder: "",
121
+ label: "Notes",
122
+ }),
123
+ };
124
+ render(
125
+ <>
126
+ {plugin.render(props)}
127
+ {plugin.render(props)}
128
+ </>,
129
+ );
130
+ const controls = screen.getAllByLabelText("Notes");
131
+ expect(controls).toHaveLength(2);
132
+ expect(controls[0].id).not.toBe(controls[1].id);
133
+ expect(controls[0]).toHaveAccessibleName("Notes");
134
+ expect(controls[1]).toHaveAccessibleName("Notes");
135
+ });
136
+ }
137
+
138
+ testLabelBehavior(new TextInputPlugin());
139
+ testLabelBehavior(new TextAreaPlugin());
140
+ testMultipleInstances(new TextInputPlugin());
141
+ testMultipleInstances(new TextAreaPlugin());
@@ -4,11 +4,17 @@ import { Tooltip } from "radix-ui";
4
4
 
5
5
  const TooltipProvider = Tooltip.Provider;
6
6
 
7
- import { act, render, screen, waitFor } from "@testing-library/react";
7
+ import {
8
+ act,
9
+ fireEvent,
10
+ render,
11
+ screen,
12
+ waitFor,
13
+ } from "@testing-library/react";
8
14
  import { Provider } from "jotai";
9
15
  import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
10
16
  import { SetupMocks } from "@/__mocks__/common";
11
- import type { DownloadAsArgs } from "@/components/data-table/schemas";
17
+ import type { DownloadAsFunction } from "@/components/data-table/schemas";
12
18
  import type { FieldTypesWithExternalType } from "@/components/data-table/types";
13
19
  import { store } from "@/core/state/jotai";
14
20
  import {
@@ -19,6 +25,10 @@ import {
19
25
 
20
26
  // Default to normal (non-static) mode; individual tests flip this on.
21
27
  const mockIsStatic = vi.fn().mockReturnValue(false);
28
+ vi.mock("@/utils/download", () => ({
29
+ downloadByURL: vi.fn(),
30
+ withLoadingToast: vi.fn(async (_title, callback) => callback()),
31
+ }));
22
32
  vi.mock("@/core/static/static-state", async (importOriginal) => {
23
33
  const actual =
24
34
  await importOriginal<typeof import("@/core/static/static-state")>();
@@ -30,9 +40,15 @@ beforeAll(() => {
30
40
  });
31
41
 
32
42
  describe("LoadingDataTableComponent", () => {
33
- it("keeps data columns when inferred types include a row header", async () => {
43
+ it("keeps data columns and routes each export to its RPC", async () => {
34
44
  const host = document.createElement("div");
35
45
  const data = JSON.stringify([{ index: "first", value: 1 }]);
46
+ const downloadAs = vi
47
+ .fn()
48
+ .mockResolvedValue({ url: "export", filename: "table.csv" });
49
+ const downloadGeoJSON = vi
50
+ .fn()
51
+ .mockResolvedValue({ url: "export", filename: "table.geojson" });
36
52
 
37
53
  render(
38
54
  <Provider store={store}>
@@ -43,7 +59,7 @@ describe("LoadingDataTableComponent", () => {
43
59
  pagination={false}
44
60
  pageSize={10}
45
61
  selection={null}
46
- showDownload={false}
62
+ showDownload={true}
47
63
  showFilters={false}
48
64
  showColumnSummaries={false}
49
65
  showDataTypes={false}
@@ -68,7 +84,22 @@ describe("LoadingDataTableComponent", () => {
68
84
  cell_styles: null,
69
85
  cell_hover_texts: null,
70
86
  })}
71
- download_as={vi.fn() as DownloadAsArgs}
87
+ download_as={downloadAs}
88
+ download_geojson={downloadGeoJSON}
89
+ get_export_metadata={vi.fn().mockResolvedValue({
90
+ geometry_columns: [
91
+ { name: "value", encoding: "objects", crs: "EPSG:4326" },
92
+ ],
93
+ primary_geometry_column: "value",
94
+ default_geometry_column: "value",
95
+ formats: {
96
+ geojson: {
97
+ available: true,
98
+ reason: null,
99
+ missing_packages: [],
100
+ },
101
+ },
102
+ })}
72
103
  get_column_summaries={vi.fn()}
73
104
  get_data_url={vi.fn() as GetDataUrl}
74
105
  get_row_ids={vi.fn() as GetRowIds}
@@ -83,6 +114,26 @@ describe("LoadingDataTableComponent", () => {
83
114
  screen.getByRole("columnheader", { name: "value" }),
84
115
  ).toBeInTheDocument();
85
116
  });
117
+ fireEvent.click(screen.getByTestId("export-button"));
118
+ await screen.findByRole("dialog", { name: "Export table" });
119
+ await waitFor(() =>
120
+ expect(
121
+ screen.getByRole("button", { name: "Download GeoJSON" }),
122
+ ).toBeEnabled(),
123
+ );
124
+ fireEvent.click(screen.getByRole("button", { name: "Download GeoJSON" }));
125
+ await waitFor(() =>
126
+ expect(downloadGeoJSON).toHaveBeenCalledWith({
127
+ format: "geojson",
128
+ geometry_column: "value",
129
+ }),
130
+ );
131
+ expect(downloadAs).not.toHaveBeenCalled();
132
+ fireEvent.click(screen.getByRole("button", { name: "Download CSV" }));
133
+ await waitFor(() =>
134
+ expect(downloadAs).toHaveBeenCalledWith({ format: "csv" }),
135
+ );
136
+ expect(downloadGeoJSON).toHaveBeenCalledTimes(1);
86
137
  });
87
138
 
88
139
  it("does not log duplicate keys when a pivot becomes empty", async () => {
@@ -122,7 +173,9 @@ describe("LoadingDataTableComponent", () => {
122
173
  showSearch: false,
123
174
  value: [] as (number | string | { rowId: string; columnName?: string })[],
124
175
  setValue: vi.fn(),
125
- download_as: vi.fn() as DownloadAsArgs,
176
+ download_as: vi.fn() as DownloadAsFunction,
177
+ download_geojson: vi.fn(),
178
+ get_export_metadata: vi.fn(),
126
179
  get_column_summaries: vi.fn(),
127
180
  get_data_url: vi.fn() as GetDataUrl,
128
181
  get_row_ids: vi.fn() as GetRowIds,
@@ -263,7 +316,9 @@ describe("LoadingDataTableComponent", () => {
263
316
  showSearch: true,
264
317
  value: [] as (number | string | { rowId: string; columnName?: string })[],
265
318
  setValue,
266
- download_as: vi.fn() as DownloadAsArgs,
319
+ download_as: vi.fn() as DownloadAsFunction,
320
+ download_geojson: vi.fn(),
321
+ get_export_metadata: vi.fn(),
267
322
  get_column_summaries: vi.fn().mockResolvedValue({
268
323
  data: null,
269
324
  stats: {},
@@ -379,7 +434,9 @@ describe("static notebook control suppression", () => {
379
434
  cell_styles: null,
380
435
  cell_hover_texts: null,
381
436
  }),
382
- download_as: vi.fn() as DownloadAsArgs,
437
+ download_as: vi.fn() as DownloadAsFunction,
438
+ download_geojson: vi.fn(),
439
+ get_export_metadata: vi.fn(),
383
440
  get_column_summaries: vi.fn().mockResolvedValue({
384
441
  data: null,
385
442
  stats: {},
@@ -1,6 +1,7 @@
1
1
  /* Copyright 2026 Marimo. All rights reserved. */
2
2
 
3
- import { act, render } from "@testing-library/react";
3
+ import { act, fireEvent, render } from "@testing-library/react";
4
+ import { useState } from "react";
4
5
  import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
5
6
  import type { z } from "zod";
6
7
  import { initialModeAtom } from "@/core/mode";
@@ -474,4 +475,161 @@ describe("NumberPlugin", () => {
474
475
  );
475
476
  expect(numberField?.classList.contains("w-full")).toBe(true);
476
477
  });
478
+
479
+ describe("does not snap values to step (#9106)", () => {
480
+ // Feeds `setValue` back into `value`, as the kernel round-trip does.
481
+ const renderNumber = (
482
+ initialValue: number,
483
+ data: Pick<z.infer<NumberPlugin["validator"]>, "start" | "stop" | "step">,
484
+ { debounce = false } = {},
485
+ ) => {
486
+ const plugin = new NumberPlugin();
487
+ const setValue = vi.fn();
488
+ const Harness = () => {
489
+ const [value, setState] = useState<number | null>(initialValue);
490
+ return plugin.render({
491
+ host: document.createElement("div"),
492
+ value,
493
+ setValue: (next) => {
494
+ setValue(next);
495
+ setState(next);
496
+ },
497
+ data: {
498
+ ...data,
499
+ label: null,
500
+ debounce,
501
+ fullWidth: false,
502
+ },
503
+ functions: {},
504
+ });
505
+ };
506
+ const { getByRole } = render(<Harness />);
507
+ act(() => {
508
+ vi.advanceTimersByTime(0);
509
+ });
510
+ const input = getByRole("textbox", {
511
+ name: "Number input",
512
+ }) as HTMLInputElement;
513
+ return { input, setValue };
514
+ };
515
+
516
+ const typeAndCommit = (input: HTMLInputElement, text: string) => {
517
+ act(() => {
518
+ input.focus();
519
+ });
520
+ fireEvent.change(input, { target: { value: text } });
521
+ act(() => {
522
+ input.blur();
523
+ });
524
+ };
525
+
526
+ it.each([
527
+ { value: 2.23, start: 1.255_57, step: 0.001 },
528
+ { value: 2.233_45, start: 1, step: 0.001 },
529
+ ])(
530
+ "displays $value as-is with start=$start and step=$step",
531
+ ({ value, start, step }) => {
532
+ const { input } = renderNumber(value, { start, stop: 20, step });
533
+ expect(input.value).toBe(String(value));
534
+ },
535
+ );
536
+
537
+ it.each([
538
+ { typed: "2.3377", start: 1, step: 0.01 },
539
+ { typed: "2.23111", start: 1.222, step: 0.01 },
540
+ ])(
541
+ "keeps typed value $typed with start=$start and step=$step",
542
+ ({ typed, start, step }) => {
543
+ const { input, setValue } = renderNumber(2.233_45, {
544
+ start,
545
+ stop: 20,
546
+ step,
547
+ });
548
+ typeAndCommit(input, typed);
549
+ expect(setValue).toHaveBeenLastCalledWith(Number(typed));
550
+ expect(input.value).toBe(typed);
551
+ expect(input.getAttribute("aria-invalid")).not.toBe("true");
552
+ // React Aria sets a custom validity on this text input in native mode,
553
+ // which would block `mo.ui.form` submission.
554
+ expect(input.validity.valid).toBe(true);
555
+ },
556
+ );
557
+
558
+ it("clamps typed values to start and stop", () => {
559
+ const { input, setValue } = renderNumber(5, {
560
+ start: 2,
561
+ stop: 10,
562
+ step: 1,
563
+ });
564
+ typeAndCommit(input, "25");
565
+ expect(setValue).toHaveBeenLastCalledWith(10);
566
+ expect(input.value).toBe("10");
567
+ typeAndCommit(input, "1");
568
+ expect(setValue).toHaveBeenLastCalledWith(2);
569
+ expect(input.value).toBe("2");
570
+ });
571
+
572
+ it("shows the bound when typing past a bound it is already at", () => {
573
+ const { input, setValue } = renderNumber(10, {
574
+ start: 2,
575
+ stop: 10,
576
+ step: 1,
577
+ });
578
+ typeAndCommit(input, "50");
579
+ expect(setValue).not.toHaveBeenCalled();
580
+ expect(input.value).toBe("10");
581
+ });
582
+
583
+ it("increments and decrements by step", () => {
584
+ const { input, setValue } = renderNumber(5, {
585
+ start: 0,
586
+ stop: 10,
587
+ step: 0.5,
588
+ });
589
+ fireEvent.keyDown(input, { key: "ArrowUp" });
590
+ expect(setValue).toHaveBeenLastCalledWith(5.5);
591
+ expect(input.value).toBe("5.5");
592
+ fireEvent.keyDown(input, { key: "ArrowDown" });
593
+ expect(setValue).toHaveBeenLastCalledWith(5);
594
+ expect(input.value).toBe("5");
595
+ });
596
+
597
+ it.each([
598
+ { key: "ArrowUp", expected: 3 },
599
+ { key: "ArrowDown", expected: 2 },
600
+ ])(
601
+ "$key from an off-step value moves to the nearest step ($expected)",
602
+ ({ key, expected }) => {
603
+ const { input, setValue } = renderNumber(2.23, {
604
+ start: 0,
605
+ stop: 10,
606
+ step: 1,
607
+ });
608
+ fireEvent.keyDown(input, { key });
609
+ expect(setValue).toHaveBeenLastCalledWith(expected);
610
+ expect(input.value).toBe(String(expected));
611
+ },
612
+ );
613
+
614
+ it.each([
615
+ { typed: "2.3377", expected: 2.3377 },
616
+ { typed: "50", expected: 20 },
617
+ ])(
618
+ "commits typed $typed as $expected after the debounce delay",
619
+ ({ typed, expected }) => {
620
+ const { input, setValue } = renderNumber(
621
+ 2.233_45,
622
+ { start: 1, stop: 20, step: 0.01 },
623
+ { debounce: true },
624
+ );
625
+ typeAndCommit(input, typed);
626
+ expect(setValue).not.toHaveBeenCalled();
627
+ act(() => {
628
+ vi.advanceTimersByTime(200);
629
+ });
630
+ expect(setValue).toHaveBeenLastCalledWith(expected);
631
+ expect(input.value).toBe(String(expected));
632
+ },
633
+ );
634
+ });
477
635
  });