@marimo-team/islands 0.26.1-dev6 → 0.26.1-dev61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DtwVgVpX.js → ConnectedDataExplorerComponent-yQVBQBUW.js} +16 -16
  2. package/dist/{ErrorBoundary-CLLMEsVD.js → ErrorBoundary-C-fpcKoC.js} +19 -19
  3. package/dist/{abnfDiagram-VCTEODGH-BbZOIueZ.js → abnfDiagram-VCTEODGH-Ck_lXwQR.js} +2 -2
  4. package/dist/{any-language-editor-yG-YmLaK.js → any-language-editor-Cx4idbgX.js} +5 -5
  5. package/dist/{architectureDiagram-5GKGNRK7-qjLjxapm.js → architectureDiagram-5GKGNRK7-XeVhic7Z.js} +1 -1
  6. package/dist/{assertNever-DywGMo-S.js → assertNever-473SFxLt.js} +14 -14
  7. package/dist/{button-qQhINE7z.js → button-Z2R2272J.js} +34 -31
  8. package/dist/{capabilities-DKqMqBzm.js → capabilities-ba3Dyv8n.js} +1 -1
  9. package/dist/{chat-ui-D5YPIONI.js → chat-ui-D1mRz9h6.js} +113 -113
  10. package/dist/{check-jchHMCfs.js → check-DmTIavbZ.js} +1 -1
  11. package/dist/{chunk-IMKFNOWR-BzDY1_I7.js → chunk-IMKFNOWR-DdQni67K.js} +1 -1
  12. package/dist/{chunk-SHT3W25Y-DbHsMKdo.js → chunk-SHT3W25Y-BdK-vMct.js} +1 -1
  13. package/dist/{chunk-SVP7TREG-CtwnwAE6.js → chunk-SVP7TREG-cpFZk4Ca.js} +1 -1
  14. package/dist/{chunk-TICWLB2K-C5Z5QMbO.js → chunk-TICWLB2K-DDgQFRgT.js} +1 -1
  15. package/dist/{classDiagram-ZZMXUADV-B8E5Hn78.js → classDiagram-ZZMXUADV-DeojX9X4.js} +2 -2
  16. package/dist/{classDiagram-v2-VYDZK3BY-DeGsK9bT.js → classDiagram-v2-VYDZK3BY-DPfTAiQ6.js} +2 -2
  17. package/dist/{code-visibility-D8sNdSZw.js → code-visibility-D4FVcpUd.js} +28 -28
  18. package/dist/{common-C1vcGVta.js → common-c1RIAfFl.js} +5102 -5055
  19. package/dist/{config-qTaTHnpE.js → config-D-lhQq-h.js} +31 -32
  20. package/dist/{copy-icon-BI7vZHEW.js → copy-icon-DuxRkh7T.js} +3 -3
  21. package/dist/{createReducer-DdSLRfBT.js → createReducer-D3pBhIVD.js} +2 -2
  22. package/dist/{cynefinDiagram-5FMLGOSQ-NDedRwsw.js → cynefinDiagram-5FMLGOSQ-DyY9TvuI.js} +1 -1
  23. package/dist/{dagre-GXQ25YYZ-De0sSZO7.js → dagre-GXQ25YYZ-BPCOgtKg.js} +1 -1
  24. package/dist/{data-grid-overlay-editor-DbZ4Cn8Q.js → data-grid-overlay-editor-Dl1y1kTy.js} +1 -1
  25. package/dist/{diagram-S7CK7UJ4-wBtVl61y.js → diagram-S7CK7UJ4-KaF-C6kd.js} +1 -1
  26. package/dist/{diagram-UQ7AKVKN-CKWE3c1T.js → diagram-UQ7AKVKN-DkeqoSvK.js} +1 -1
  27. package/dist/{diagram-VX7I27RA-D2Ac5198.js → diagram-VX7I27RA-DExolTAf.js} +1 -1
  28. package/dist/{diagram-Z3DM3KII-CYaFOQcI.js → diagram-Z3DM3KII-BioFuBF3.js} +1 -1
  29. package/dist/{dialog-Ic6dh09m.js → dialog-CvyFEwby.js} +32 -32
  30. package/dist/{dist-BvZpdAuG.js → dist-6B1_Ttbh.js} +1 -1
  31. package/dist/{dist-D1D56-GS.js → dist-B28poF32.js} +2 -2
  32. package/dist/{dist-BozTF_gH.js → dist-BBZ7lnMw.js} +2 -2
  33. package/dist/{dist-BfrgytDR.js → dist-BD8ZKF5t.js} +3 -3
  34. package/dist/{dist-DNkrY12t.js → dist-BG-7Qpaj.js} +3 -3
  35. package/dist/{dist-D92tYjLc.js → dist-BIaGGUbU.js} +13 -11
  36. package/dist/{dist-BagHbFqG.js → dist-BR5PU2Ph.js} +3 -3
  37. package/dist/{dist-DpYpG8Yc.js → dist-BidYR5m4.js} +3 -3
  38. package/dist/{dist-D95Cd4xm.js → dist-BkGYCvFX.js} +3 -3
  39. package/dist/{dist-DneeBk3K.js → dist-BmEyXT7K.js} +2 -2
  40. package/dist/{dist-BdUitvVW.js → dist-Bt0Wt6m9.js} +2 -2
  41. package/dist/{dist-CEomphG1.js → dist-CG2Sl0D4.js} +2 -2
  42. package/dist/{dist-BMz__bo5.js → dist-CQfpgadU.js} +3 -3
  43. package/dist/{dist-BreKIQqQ.js → dist-CVOPvfzN.js} +3 -3
  44. package/dist/{dist-BEcpQbZa.js → dist-Cm0iCeQQ.js} +3 -3
  45. package/dist/{dist-CDVvitRS.js → dist-Cnc14jEq.js} +2 -2
  46. package/dist/{dist-ChcBm3jk.js → dist-D3KPC38e.js} +4 -4
  47. package/dist/{dist-B1qu3Bez.js → dist-D7BXk27E.js} +3 -3
  48. package/dist/{dist-BsE4gQHj.js → dist-D9Qhvxvg.js} +1 -1
  49. package/dist/{dist-OmeAz0fR.js → dist-DJKajXDB.js} +3 -3
  50. package/dist/{dist-ObeTgSmf.js → dist-DYbNRTYG.js} +4 -4
  51. package/dist/{dist-Cshl6jBw.js → dist-DhtDWnzK.js} +2 -2
  52. package/dist/{dist-BunZKA_9.js → dist-_x2Jks2R.js} +2 -2
  53. package/dist/{dist-MggMo7OR.js → dist-m0MWV-aw.js} +1 -1
  54. package/dist/{dist-TGSwzj8a.js → dist-pPbYNVjd.js} +4 -4
  55. package/dist/{dropdown-menu-Dhv4fcNl.js → dropdown-menu-BiXHfje7.js} +2568 -2568
  56. package/dist/{ebnfDiagram-PWID7BFC-Ds7f42dj.js → ebnfDiagram-PWID7BFC-BSb9k1ed.js} +2 -2
  57. package/dist/{erDiagram-RLTQ6QDP-b58Sz2Mc.js → erDiagram-RLTQ6QDP-PWA30a_r.js} +1 -1
  58. package/dist/{error-banner-CJVLr5_a.js → error-banner-B9HQMSaH.js} +35 -35
  59. package/dist/{error-entries-BKlEsuk4.js → error-entries-P6Qpq6wP.js} +1032 -867
  60. package/dist/{esm-B9n0caHs.js → esm-DY8dGAjJ.js} +23 -23
  61. package/dist/{esm-Bwp_FHP0.js → esm-Dw2ZydG_.js} +3 -3
  62. package/dist/{feedback-button-CjWyhzBQ.js → feedback-button-CZqI1P6j.js} +123 -123
  63. package/dist/{flowDiagram-HODETNUW-BH9U7VZK.js → flowDiagram-HODETNUW-BPtD__Zz.js} +2 -2
  64. package/dist/{formats-BLNFWWhV.js → formats-BF95BoCT.js} +3 -3
  65. package/dist/{glide-data-editor-B0vlSuQn.js → glide-data-editor-Y8kAtMHH.js} +43 -43
  66. package/dist/{glide-utils-Ze_7l_91.js → glide-utils-iHKKQPJ8.js} +3 -3
  67. package/dist/{globals-_GdM0yI_.js → globals-CZ6NhdB_.js} +3 -3
  68. package/dist/{html-to-image-CNM0ZSFD.js → html-to-image-DhrFZL7t.js} +24150 -24028
  69. package/dist/{infoDiagram-27XIBGKW-xbjwrcNi.js → infoDiagram-27XIBGKW-SJuilBEE.js} +1 -1
  70. package/dist/{ishikawaDiagram-5VMMS53U-DKtukhGS.js → ishikawaDiagram-5VMMS53U-DjzyxMr8.js} +1 -1
  71. package/dist/{kanban-definition-UXKFOSKX-BEhlkZBb.js → kanban-definition-UXKFOSKX-D2_qopGt.js} +1 -1
  72. package/dist/{loader-Bin_dutt.js → loader-qPmiRXZd.js} +1 -1
  73. package/dist/main.js +8860 -8741
  74. package/dist/{mermaid-D1CZDNoB.js → mermaid-DcowNmCx.js} +35 -35
  75. package/dist/{mindmap-definition-YA3MSWOX-DQcnJPcV.js → mindmap-definition-YA3MSWOX-pEra10M0.js} +1 -1
  76. package/dist/{number-overlay-editor-C9qcz20o.js → number-overlay-editor-MguZuT0h.js} +1 -1
  77. package/dist/{pegDiagram-XKGWAZYB-BFQuPYfI.js → pegDiagram-XKGWAZYB-CHOPKVOf.js} +2 -2
  78. package/dist/{pencil-DVYzq-iR.js → pencil-FAv6JUvp.js} +1 -1
  79. package/dist/{pieDiagram-E7YTZNPT-l7aqNrem.js → pieDiagram-E7YTZNPT-yGDhsyEN.js} +1 -1
  80. package/dist/{process-output-DthYR2Te.js → process-output-CBPqVQBu.js} +4 -4
  81. package/dist/{railroadDiagram-O6MQD6OU-6R3C1lwQ.js → railroadDiagram-O6MQD6OU-CeKEPdyc.js} +2 -2
  82. package/dist/{requirementDiagram-BXWQKSXE-DdWYu8fn.js → requirementDiagram-BXWQKSXE-DSAbAzKe.js} +1 -1
  83. package/dist/{reveal-component-CGGipwgt.js → reveal-component-BRVOTy71.js} +1018 -1018
  84. package/dist/{select-CDUxhHZg.js → select-BszV-bbI.js} +135 -135
  85. package/dist/{sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js → sequenceDiagram-WJ2MYXX4-DVhWj_9H.js} +1 -1
  86. package/dist/{spec-ZAt4P01J.js → spec-CRfw-lOm.js} +4 -4
  87. package/dist/{stateDiagram-D77RDMKH-BGnTUhFJ.js → stateDiagram-D77RDMKH-CDQ2MltG.js} +2 -2
  88. package/dist/{stateDiagram-v2-MP3YSRHH-DsJbmDf1.js → stateDiagram-v2-MP3YSRHH-BQmvwBaz.js} +2 -2
  89. package/dist/{static-state-C4bAlKTU.js → static-state-BtDNJuc2.js} +7 -7
  90. package/dist/style.css +1 -1
  91. package/dist/{swimlanes-42K2YHIH-Bd4Bzh9r.js → swimlanes-42K2YHIH-DLOUTCEL.js} +1 -1
  92. package/dist/{swimlanesDiagram-VR7AAH4N-BlY12Jf6.js → swimlanesDiagram-VR7AAH4N-BVKrkNJ6.js} +2 -2
  93. package/dist/{swiper-component-DTdNB9wg.js → swiper-component-B2O8hF7b.js} +2 -2
  94. package/dist/{timeline-definition-24CTP7MA-m0LanyCH.js → timeline-definition-24CTP7MA-Cb2JoCSd.js} +1 -1
  95. package/dist/{toast-U3NpO2x3.js → toast-QsOAIPfq.js} +166 -166
  96. package/dist/{tooltip-UzJukb3F.js → tooltip-BQZ-Bm6h.js} +65 -65
  97. package/dist/{use-restore-focus-DaTVz6S6.js → use-restore-focus-DT1TZACX.js} +1885 -1877
  98. package/dist/{useDateFormatter-LQNtoXyh.js → useDateFormatter-D3gyMY-g.js} +2 -2
  99. package/dist/{useDeepCompareMemoize-CmNbQ9TT.js → useDeepCompareMemoize-CO6rO5Mq.js} +1 -1
  100. package/dist/{useIframeCapabilities-HTZiVlGV.js → useIframeCapabilities-_0KX0nu_.js} +1 -1
  101. package/dist/{useLifecycle-DTMczKkf.js → useLifecycle-C9UTzCY8.js} +2 -2
  102. package/dist/{vega-component-ZTdbCcwI.js → vega-component-i5lZ23n7.js} +19 -19
  103. package/dist/{vennDiagram-4TSXK5OY-BJ7vqDmn.js → vennDiagram-4TSXK5OY-Cm3EcCcP.js} +1 -1
  104. package/dist/{wardleyDiagram-VM6X3IG4-D5kWacsn.js → wardleyDiagram-VM6X3IG4-DjlUs2CC.js} +1 -1
  105. package/dist/{xychartDiagram-S5SC5T6Z-gr15Ws_z.js → xychartDiagram-S5SC5T6Z-DxNDul9l.js} +1 -1
  106. package/package.json +3 -3
  107. package/src/__mocks__/animation-frames.ts +31 -0
  108. package/src/__mocks__/executions.ts +51 -23
  109. package/src/__mocks__/intersection-observer.ts +45 -0
  110. package/src/__mocks__/notebook.ts +1 -1
  111. package/src/__tests__/branded.ts +4 -0
  112. package/src/__tests__/notebook-analysis.ts +48 -0
  113. package/src/__tests__/render-tracker.ts +15 -0
  114. package/src/__tests__/setup.ts +3 -0
  115. package/src/components/data-table/__tests__/export-actions.test.tsx +79 -0
  116. package/src/components/data-table/export-actions.tsx +64 -19
  117. package/src/components/data-table/schemas.ts +1 -0
  118. package/src/components/databases/engine-variable.tsx +2 -2
  119. package/src/components/dependency-graph/panels.tsx +2 -2
  120. package/src/components/editor/__tests__/cell-renders.test.tsx +116 -0
  121. package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +1 -1
  122. package/src/components/editor/actions/useCellActionButton.tsx +2 -8
  123. package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
  124. package/src/components/editor/cell/CreateCellButton.tsx +69 -40
  125. package/src/components/editor/cell/__tests__/CreateCellButton.test.tsx +49 -0
  126. package/src/components/editor/cell/__tests__/cell-context-menu.test.tsx +126 -0
  127. package/src/components/editor/cell/__tests__/useRunCells.test.tsx +5 -5
  128. package/src/components/editor/cell/cell-context-menu.tsx +202 -111
  129. package/src/components/editor/cell/code/__tests__/code-placeholder.test.tsx +40 -0
  130. package/src/components/editor/cell/code/cell-editor.tsx +49 -108
  131. package/src/components/editor/cell/code/code-placeholder.css +61 -11
  132. package/src/components/editor/cell/code/code-placeholder.tsx +52 -27
  133. package/src/components/editor/cell/collapse.tsx +6 -3
  134. package/src/components/editor/cell/useSplitCell.tsx +2 -2
  135. package/src/components/editor/chrome/panels/__tests__/secrets-panel.test.tsx +57 -0
  136. package/src/components/editor/chrome/panels/secrets-panel.tsx +36 -9
  137. package/src/components/editor/chrome/panels/secrets-utils.ts +20 -0
  138. package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +5 -2
  139. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +6 -10
  140. package/src/components/editor/errors/auto-fix.tsx +8 -7
  141. package/src/components/editor/header/status.tsx +5 -2
  142. package/src/components/editor/navigation/__tests__/navigation.test.ts +3 -16
  143. package/src/components/editor/navigation/focus-utils.ts +20 -8
  144. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +3 -11
  145. package/src/components/editor/navigation/navigation.ts +2 -2
  146. package/src/components/editor/notebook-cell.tsx +15 -24
  147. package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
  148. package/src/components/editor/output/console/ConsoleOutput.tsx +77 -50
  149. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +28 -0
  150. package/src/components/editor/renderers/cells-renderer.tsx +3 -2
  151. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +6 -9
  152. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +2 -5
  153. package/src/components/find-replace/find-replace.tsx +3 -7
  154. package/src/components/icons/__tests__/large-spinner.test.tsx +5 -4
  155. package/src/components/scratchpad/scratchpad.tsx +2 -2
  156. package/src/components/tracing/tracing-keyboard.test.tsx +4 -3
  157. package/src/components/ui/__tests__/button-shortcut.test.tsx +22 -0
  158. package/src/components/ui/__tests__/fullscreen.test.tsx +83 -1
  159. package/src/components/ui/button.tsx +5 -1
  160. package/src/components/ui/fullscreen.tsx +43 -89
  161. package/src/components/variables/__tests__/variables-table.test.tsx +1 -2
  162. package/src/core/MarimoApp.tsx +1 -1
  163. package/src/core/__tests__/MarimoApp.test.tsx +147 -0
  164. package/src/core/ai/__tests__/staged-cells.test.ts +6 -39
  165. package/src/core/ai/context/providers/__tests__/error.test.ts +6 -3
  166. package/src/core/ai/staged-cells.ts +8 -35
  167. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +15 -13
  168. package/src/core/ai/tools/edit-notebook-tool.ts +13 -8
  169. package/src/core/cells/__tests__/actions.test.ts +2 -2
  170. package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
  171. package/src/core/cells/__tests__/arrange.test.ts +1 -1
  172. package/src/core/cells/__tests__/cell-editor-view.test.ts +44 -0
  173. package/src/core/cells/__tests__/cells.test.ts +0 -1
  174. package/src/core/cells/__tests__/focus.test.ts +1 -7
  175. package/src/core/cells/__tests__/harness.ts +9 -8
  176. package/src/core/cells/__tests__/layout.test.ts +1 -1
  177. package/src/core/cells/__tests__/pending-delete-service.test.tsx +121 -11
  178. package/src/core/cells/__tests__/runs.test.ts +14 -14
  179. package/src/core/cells/__tests__/utils.test.ts +3 -2
  180. package/src/core/cells/actions.ts +6 -6
  181. package/src/core/cells/add-missing-import.ts +2 -3
  182. package/src/core/cells/cells.ts +40 -27
  183. package/src/core/cells/document.ts +1 -2
  184. package/src/core/cells/execution-console.ts +10 -5
  185. package/src/core/cells/focus.ts +1 -1
  186. package/src/core/cells/ids.ts +2 -4
  187. package/src/core/cells/pending-delete-service.ts +97 -85
  188. package/src/core/cells/runs.ts +7 -5
  189. package/src/core/cells/scrollCellIntoView.ts +4 -14
  190. package/src/core/cells/session.ts +8 -5
  191. package/src/core/cells/utils.ts +0 -13
  192. package/src/core/codemirror/__tests__/cell-documents.test.ts +79 -0
  193. package/src/core/codemirror/__tests__/debounced-editor-update.test.ts +72 -0
  194. package/src/core/codemirror/__tests__/editor-mount-scheduler.test.ts +75 -105
  195. package/src/core/codemirror/__tests__/format.test.ts +85 -63
  196. package/src/core/codemirror/__tests__/setup.test.ts +61 -1
  197. package/src/core/codemirror/__tests__/use-lazy-editor-mount.test.tsx +198 -0
  198. package/src/core/codemirror/cell-documents.ts +132 -0
  199. package/src/core/codemirror/cells/debugger-decorations.ts +22 -18
  200. package/src/core/codemirror/cells/line-timing-decorations.ts +13 -11
  201. package/src/core/codemirror/cells/traceback-decorations.ts +10 -11
  202. package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
  203. package/src/core/codemirror/code-lens/__tests__/extension.test.ts +38 -12
  204. package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
  205. package/src/core/codemirror/code-lens/extension.ts +21 -13
  206. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -14
  207. package/src/core/codemirror/copilot/getCodes.ts +3 -14
  208. package/src/core/codemirror/debounced-editor-update.ts +41 -0
  209. package/src/core/codemirror/editor-mount-scheduler.ts +41 -48
  210. package/src/core/codemirror/extensions.ts +2 -2
  211. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -16
  212. package/src/core/codemirror/find-replace/__tests__/search-highlight.test.ts +30 -0
  213. package/src/core/codemirror/find-replace/__tests__/unmounted-cells.test.ts +145 -0
  214. package/src/core/codemirror/find-replace/navigate.ts +88 -129
  215. package/src/core/codemirror/find-replace/search-highlight.ts +3 -1
  216. package/src/core/codemirror/find-replace/state.ts +7 -2
  217. package/src/core/codemirror/format.ts +25 -31
  218. package/src/core/codemirror/go-to-definition/__tests__/underline.test.ts +58 -0
  219. package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +24 -44
  220. package/src/core/codemirror/go-to-definition/extension.ts +9 -7
  221. package/src/core/codemirror/go-to-definition/underline.ts +39 -48
  222. package/src/core/codemirror/language/__tests__/sql.test.ts +36 -0
  223. package/src/core/codemirror/language/cell-code.ts +7 -0
  224. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
  225. package/src/core/codemirror/language/languages/sql/sql.ts +3 -0
  226. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +25 -0
  227. package/src/core/codemirror/lsp/notebook-lsp.ts +6 -16
  228. package/src/core/codemirror/placeholder/extensions.ts +26 -24
  229. package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +54 -0
  230. package/src/core/codemirror/reactive-references/extension.ts +30 -21
  231. package/src/core/codemirror/use-lazy-editor-mount.ts +70 -0
  232. package/src/core/codemirror/utils.ts +2 -6
  233. package/src/core/datasets/__tests__/data-source.test.ts +15 -17
  234. package/src/core/datasets/data-source-connections.ts +8 -11
  235. package/src/core/datasets/state.ts +7 -12
  236. package/src/core/executions/__tests__/atoms.test.ts +211 -5
  237. package/src/core/executions/__tests__/freshness.test.ts +65 -56
  238. package/src/core/executions/__tests__/interrupt.test.ts +5 -3
  239. package/src/core/executions/__tests__/output-lifecycle.test.ts +95 -7
  240. package/src/core/executions/__tests__/output.test.ts +5 -3
  241. package/src/core/executions/__tests__/run.test.ts +4 -4
  242. package/src/core/executions/__tests__/select.test.ts +108 -69
  243. package/src/core/executions/atoms.ts +248 -83
  244. package/src/core/executions/freshness.ts +7 -7
  245. package/src/core/executions/hooks.ts +15 -59
  246. package/src/core/executions/index.ts +2 -0
  247. package/src/core/executions/output.ts +49 -35
  248. package/src/core/executions/select.ts +90 -37
  249. package/src/core/export/__tests__/hooks.test.ts +1 -1
  250. package/src/core/islands/__tests__/bridge.test.ts +1 -1
  251. package/src/core/islands/bootstrap.ts +7 -7
  252. package/src/core/islands/bridge.ts +1 -1
  253. package/src/core/meta/__tests__/code-visibility.test.tsx +3 -2
  254. package/src/core/notebook/document/__tests__/codemirror.test.ts +8 -6
  255. package/src/core/notebook/document/__tests__/draft.test.ts +56 -58
  256. package/src/core/notebook/document/__tests__/fixtures.ts +8 -7
  257. package/src/core/notebook/document/__tests__/hooks.test.tsx +39 -35
  258. package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +8 -5
  259. package/src/core/notebook/document/__tests__/model.test.ts +8 -5
  260. package/src/core/notebook/document/__tests__/protocol-fixtures.ts +2 -2
  261. package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +37 -32
  262. package/src/core/notebook/document/__tests__/scenarios.test.ts +49 -45
  263. package/src/core/notebook/document/__tests__/state.test.ts +59 -56
  264. package/src/core/notebook/document/__tests__/submission.test.ts +15 -12
  265. package/src/core/notebook/document/__tests__/test-host.ts +3 -2
  266. package/src/core/notebook/document/__tests__/user.ts +7 -3
  267. package/src/core/notebook/document/draft.ts +29 -11
  268. package/src/core/notebook/document/state.ts +7 -6
  269. package/src/core/notebook/replica/__tests__/document.test.ts +9 -5
  270. package/src/core/notebook/replica/__tests__/executions.test.ts +90 -25
  271. package/src/core/notebook/replica/__tests__/fixtures.ts +6 -2
  272. package/src/core/notebook/replica/__tests__/frame.test.ts +206 -0
  273. package/src/core/notebook/replica/__tests__/once-per-frame.test.ts +95 -0
  274. package/src/core/notebook/replica/__tests__/replica.test.ts +53 -9
  275. package/src/core/notebook/replica/__tests__/results.test.ts +27 -29
  276. package/src/core/notebook/replica/execution-state.ts +2 -2
  277. package/src/core/notebook/replica/frame.ts +54 -0
  278. package/src/core/notebook/replica/index.ts +1 -0
  279. package/src/core/notebook/replica/once-per-frame.ts +60 -0
  280. package/src/core/notebook/replica/replica.ts +27 -6
  281. package/src/core/notebook/replica/resources/analysis.ts +1 -1
  282. package/src/core/notebook/replica/resources/document.ts +9 -8
  283. package/src/core/notebook/replica/resources/executions.ts +197 -78
  284. package/src/core/notebook/replica/resources/results.ts +8 -14
  285. package/src/core/saving/__tests__/document.test.tsx +1 -1
  286. package/src/core/saving/__tests__/state.test.ts +2 -2
  287. package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +55 -9
  288. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +230 -12
  289. package/src/core/session/active-notebook.ts +4 -1
  290. package/src/core/session/useNotebookReplica.ts +15 -2
  291. package/src/core/session/useNotebookSession.tsx +38 -46
  292. package/src/core/state/__tests__/atom-with-selected-inputs.test.ts +48 -0
  293. package/src/core/state/__tests__/create-keyed-selector-hook.test.tsx +137 -0
  294. package/src/core/state/atom-with-selected-inputs.ts +24 -0
  295. package/src/core/state/create-keyed-atom-hook.ts +18 -0
  296. package/src/core/state/create-keyed-selector-hook.ts +22 -0
  297. package/src/core/storage/__tests__/state.test.ts +6 -9
  298. package/src/core/storage/state.ts +5 -8
  299. package/src/core/transports/__tests__/static.test.ts +3 -2
  300. package/src/core/transports/static.ts +2 -2
  301. package/src/core/variables/state.ts +73 -68
  302. package/src/core/variables/types.ts +2 -2
  303. package/src/core/vscode/__tests__/is-in-vscode.test.ts +36 -0
  304. package/src/core/vscode/is-in-vscode.ts +2 -2
  305. package/src/core/wasm/__tests__/bridge.test.ts +73 -1
  306. package/src/core/wasm/bridge.ts +5 -4
  307. package/src/plugins/impl/TextInputPlugin.tsx +2 -1
  308. package/src/plugins/impl/__test__/text-labels.test.tsx +46 -1
  309. package/src/utils/__tests__/lazy.test.tsx +33 -0
  310. package/src/utils/__tests__/shared-intersection-observer.test.ts +49 -0
  311. package/src/utils/__tests__/shared-resource.test.ts +107 -0
  312. package/src/utils/arrays.ts +4 -1
  313. package/src/utils/lazy.tsx +74 -0
  314. package/src/utils/shared-intersection-observer.ts +53 -0
  315. package/src/utils/shared-resource.ts +59 -0
  316. package/src/core/variables/__tests__/state.test.ts +0 -148
  317. package/src/utils/lazy.ts +0 -35
@@ -1,20 +1,20 @@
1
1
  import { a as e, r as t, t as n } from "./rolldown-runtime-BPCzCO3I.js";
2
- import { m as r, t as i } from "./button-qQhINE7z.js";
2
+ import { m as r, t as i } from "./button-Z2R2272J.js";
3
3
  import { t as a } from "./react-Bgs_wQh3.js";
4
4
  import { t as o } from "./compiler-runtime-C5KHtL5D.js";
5
- import { i as s, n as c, r as l } from "./copy-icon-BI7vZHEW.js";
6
- import { d as u } from "./tooltip-UzJukb3F.js";
7
- import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-CDUxhHZg.js";
8
- import { J as _, d as v, h as y, i as b, l as x, n as S, o as C, s as w, t as T, u as E, xn as D } from "./dropdown-menu-Dhv4fcNl.js";
9
- import { t as O } from "./pencil-DVYzq-iR.js";
10
- import { c as k, f as A, l as ee, n as j, o as te, s as ne, t as re, u as ie } from "./glide-utils-Ze_7l_91.js";
11
- import { i as M, n as N } from "./assertNever-DywGMo-S.js";
5
+ import { i as s, n as c, r as l } from "./copy-icon-DuxRkh7T.js";
6
+ import { d as u } from "./tooltip-BQZ-Bm6h.js";
7
+ import { c as d, d as f, i as p, n as m, s as h, t as g } from "./select-BszV-bbI.js";
8
+ import { d as _, g as v, i as y, l as b, n as x, o as S, p as C, s as w, t as T, u as E, xn as D } from "./dropdown-menu-BiXHfje7.js";
9
+ import { t as O } from "./pencil-FAv6JUvp.js";
10
+ import { c as k, f as A, l as ee, n as j, o as te, s as ne, t as re, u as ie } from "./glide-utils-iHKKQPJ8.js";
11
+ import { i as M, n as N } from "./assertNever-473SFxLt.js";
12
12
  import { t as P } from "./react-dom-DdqGVp5N.js";
13
13
  import { t as F } from "./jsx-runtime-D8btoEHk.js";
14
- import { d as ae, r as I } from "./use-restore-focus-DaTVz6S6.js";
14
+ import { d as ae, r as I } from "./use-restore-focus-DT1TZACX.js";
15
15
  import { t as oe } from "./useEvent-BoN7U38T.js";
16
16
  import { n as L, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
17
- import { t as ce } from "./ErrorBoundary-CLLMEsVD.js";
17
+ import { t as ce } from "./ErrorBoundary-C-fpcKoC.js";
18
18
  import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as R, O as z, P as _e, R as ve, S as ye, T as be, _ as xe, a as Se, b as B, c as Ce, d as we, f as V, g as Te, h as Ee, i as De, j as H, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as U, s as Pe, t as Fe, u as Ie, v as Le, w as Re, x as ze, y as Be, z as Ve } from "./data-grid-types-DBNnjiYJ.js";
19
19
  //#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
20
20
  function He(e) {
@@ -1645,7 +1645,7 @@ var Rt = ft(), zt = (e) => {
1645
1645
  renderMarkdownIntoDiv() {
1646
1646
  let { targetElement: e, props: t } = this;
1647
1647
  if (e === null) return;
1648
- let { contents: n, createNode: r } = t, i = _(n), a = document.createRange();
1648
+ let { contents: n, createNode: r } = t, i = C(n), a = document.createRange();
1649
1649
  a.selectNodeContents(e), a.deleteContents();
1650
1650
  let o = r?.(i);
1651
1651
  if (o === void 0) {
@@ -7061,7 +7061,7 @@ function ds(e, t, n, r, i) {
7061
7061
  }
7062
7062
  //#endregion
7063
7063
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
7064
- var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-DbZ4Cn8Q.js")), hs = 0;
7064
+ var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-Dl1y1kTy.js")), hs = 0;
7065
7065
  function gs(e) {
7066
7066
  return (0, fs.default)((0, ps.default)((0, ps.default)(e).filter((e) => e.span !== void 0).map((e) => (0, ao.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7067
7067
  }
@@ -9284,7 +9284,7 @@ function Ys(e, t, n, r, i) {
9284
9284
  }
9285
9285
  //#endregion
9286
9286
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9287
- var Xs = W.lazy(async () => await import("./number-overlay-editor-C9qcz20o.js")), Zs = {
9287
+ var Xs = W.lazy(async () => await import("./number-overlay-editor-MguZuT0h.js")), Zs = {
9288
9288
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9289
9289
  kind: U.Number,
9290
9290
  needsHover: (e) => e.hoverEffect === !0,
@@ -13415,7 +13415,7 @@ var $ = F(), Zp = (e) => {
13415
13415
  e.key === "Enter" ? l() : e.key === "Escape" && a();
13416
13416
  }, t[4] = l, t[5] = a, t[6] = u) : u = t[6];
13417
13417
  let d = u, p;
13418
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, $.jsxs)(v, { children: [/* @__PURE__ */ (0, $.jsx)(O, { className: "mr-2 h-3.5 w-3.5" }), "Rename column"] }), t[7] = p) : p = t[7];
13418
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, $.jsxs)(_, { children: [/* @__PURE__ */ (0, $.jsx)(O, { className: "mr-2 h-3.5 w-3.5" }), "Rename column"] }), t[7] = p) : p = t[7];
13419
13419
  let m;
13420
13420
  t[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, $.jsx)(f, {
13421
13421
  htmlFor: "rename-input",
@@ -13424,33 +13424,33 @@ var $ = F(), Zp = (e) => {
13424
13424
  let h;
13425
13425
  t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = (e) => s(e.target.value), t[9] = h) : h = t[9];
13426
13426
  let g;
13427
- t[10] !== d || t[11] !== o ? (g = /* @__PURE__ */ (0, $.jsxs)("div", { children: [m, /* @__PURE__ */ (0, $.jsx)(y, {
13427
+ t[10] !== d || t[11] !== o ? (g = /* @__PURE__ */ (0, $.jsxs)("div", { children: [m, /* @__PURE__ */ (0, $.jsx)(v, {
13428
13428
  value: o,
13429
13429
  onChange: h,
13430
13430
  placeholder: "Enter new column name",
13431
13431
  className: "mt-1",
13432
13432
  onKeyDown: d
13433
13433
  })] }), t[10] = d, t[11] = o, t[12] = g) : g = t[12];
13434
- let _;
13435
- t[13] === o ? _ = t[14] : (_ = o.trim(), t[13] = o, t[14] = _);
13436
- let b = !_, S;
13437
- t[15] !== l || t[16] !== b ? (S = /* @__PURE__ */ (0, $.jsx)(i, {
13434
+ let y;
13435
+ t[13] === o ? y = t[14] : (y = o.trim(), t[13] = o, t[14] = y);
13436
+ let x = !y, C;
13437
+ t[15] !== l || t[16] !== x ? (C = /* @__PURE__ */ (0, $.jsx)(i, {
13438
13438
  onClick: l,
13439
- disabled: b,
13439
+ disabled: x,
13440
13440
  size: "sm",
13441
13441
  className: "w-full",
13442
13442
  children: "Rename"
13443
- }), t[15] = l, t[16] = b, t[17] = S) : S = t[17];
13443
+ }), t[15] = l, t[16] = x, t[17] = C) : C = t[17];
13444
13444
  let w;
13445
- return t[18] !== g || t[19] !== S ? (w = /* @__PURE__ */ (0, $.jsxs)(x, { children: [p, /* @__PURE__ */ (0, $.jsx)(C, { children: /* @__PURE__ */ (0, $.jsx)(E, {
13445
+ return t[18] !== g || t[19] !== C ? (w = /* @__PURE__ */ (0, $.jsxs)(b, { children: [p, /* @__PURE__ */ (0, $.jsx)(S, { children: /* @__PURE__ */ (0, $.jsx)(E, {
13446
13446
  className: "w-64 p-4",
13447
13447
  children: /* @__PURE__ */ (0, $.jsxs)("div", {
13448
13448
  className: "space-y-3",
13449
- children: [g, S]
13449
+ children: [g, C]
13450
13450
  })
13451
- }) })] }), t[18] = g, t[19] = S, t[20] = w) : w = t[20], w;
13451
+ }) })] }), t[18] = g, t[19] = C, t[20] = w) : w = t[20], w;
13452
13452
  }, Qp = (e) => {
13453
- let t = (0, Yp.c)(79), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, W.useState)(""), [c, l] = (0, W.useState)("string"), u, p, _, b, S, w, T, O, k, A, ee, j, te, ne, re;
13453
+ let t = (0, Yp.c)(79), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, W.useState)(""), [c, l] = (0, W.useState)("string"), u, p, y, x, C, w, T, O, k, A, ee, j, te, ne, re;
13454
13454
  if (t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r || t[4] !== a) {
13455
13455
  let e = [
13456
13456
  "string",
@@ -13466,13 +13466,13 @@ var $ = F(), Zp = (e) => {
13466
13466
  e.key === "Enter" ? w() : e.key === "Escape" && a();
13467
13467
  }, t[24] = w, t[25] = a, t[26] = ie) : ie = t[26];
13468
13468
  let M = ie;
13469
- S = x;
13469
+ C = b;
13470
13470
  let N;
13471
- t[27] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, $.jsx)(D, { className: "mr-2 h-3.5 w-3.5" }), t[27] = N) : N = t[27], t[28] === n ? re = t[29] : (re = /* @__PURE__ */ (0, $.jsxs)(v, { children: [
13471
+ t[27] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ (0, $.jsx)(D, { className: "mr-2 h-3.5 w-3.5" }), t[27] = N) : N = t[27], t[28] === n ? re = t[29] : (re = /* @__PURE__ */ (0, $.jsxs)(_, { children: [
13472
13472
  N,
13473
13473
  "Add column to the ",
13474
13474
  n
13475
- ] }), t[28] = n, t[29] = re), b = C, _ = E, ne = "w-64 p-4", j = "space-y-3";
13475
+ ] }), t[28] = n, t[29] = re), x = S, y = E, ne = "w-64 p-4", j = "space-y-3";
13476
13476
  let P = `add-column-input-${n}`, F;
13477
13477
  t[30] === P ? F = t[31] : (F = /* @__PURE__ */ (0, $.jsx)(f, {
13478
13478
  htmlFor: P,
@@ -13481,7 +13481,7 @@ var $ = F(), Zp = (e) => {
13481
13481
  let ae = `add-column-input-${n}`, I;
13482
13482
  t[32] === Symbol.for("react.memo_cache_sentinel") ? (I = (e) => s(e.target.value), t[32] = I) : I = t[32];
13483
13483
  let oe;
13484
- t[33] !== o || t[34] !== M || t[35] !== ae ? (oe = /* @__PURE__ */ (0, $.jsx)(y, {
13484
+ t[33] !== o || t[34] !== M || t[35] !== ae ? (oe = /* @__PURE__ */ (0, $.jsx)(v, {
13485
13485
  id: ae,
13486
13486
  value: o,
13487
13487
  onChange: I,
@@ -13499,8 +13499,8 @@ var $ = F(), Zp = (e) => {
13499
13499
  id: se,
13500
13500
  className: "mt-1",
13501
13501
  children: ce
13502
- }), t[44] = se, t[45] = A), u = m, T = e.map($p), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = p, t[7] = _, t[8] = b, t[9] = S, t[10] = w, t[11] = T, t[12] = O, t[13] = k, t[14] = A, t[15] = ee, t[16] = j, t[17] = te, t[18] = ne, t[19] = re;
13503
- } else u = t[5], p = t[6], _ = t[7], b = t[8], S = t[9], w = t[10], T = t[11], O = t[12], k = t[13], A = t[14], ee = t[15], j = t[16], te = t[17], ne = t[18], re = t[19];
13502
+ }), t[44] = se, t[45] = A), u = m, T = e.map($p), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = p, t[7] = y, t[8] = x, t[9] = C, t[10] = w, t[11] = T, t[12] = O, t[13] = k, t[14] = A, t[15] = ee, t[16] = j, t[17] = te, t[18] = ne, t[19] = re;
13503
+ } else u = t[5], p = t[6], y = t[7], x = t[8], C = t[9], w = t[10], T = t[11], O = t[12], k = t[13], A = t[14], ee = t[15], j = t[16], te = t[17], ne = t[18], re = t[19];
13504
13504
  let ie;
13505
13505
  t[46] !== u || t[47] !== T ? (ie = /* @__PURE__ */ (0, $.jsx)(u, { children: T }), t[46] = u, t[47] = T, t[48] = ie) : ie = t[48];
13506
13506
  let M;
@@ -13531,14 +13531,14 @@ var $ = F(), Zp = (e) => {
13531
13531
  ]
13532
13532
  }), t[63] = N, t[64] = ae, t[65] = j, t[66] = te, t[67] = I) : I = t[67];
13533
13533
  let oe;
13534
- t[68] !== _ || t[69] !== I || t[70] !== ne ? (oe = /* @__PURE__ */ (0, $.jsx)(_, {
13534
+ t[68] !== y || t[69] !== I || t[70] !== ne ? (oe = /* @__PURE__ */ (0, $.jsx)(y, {
13535
13535
  className: ne,
13536
13536
  children: I
13537
- }), t[68] = _, t[69] = I, t[70] = ne, t[71] = oe) : oe = t[71];
13537
+ }), t[68] = y, t[69] = I, t[70] = ne, t[71] = oe) : oe = t[71];
13538
13538
  let L;
13539
- t[72] !== b || t[73] !== oe ? (L = /* @__PURE__ */ (0, $.jsx)(b, { children: oe }), t[72] = b, t[73] = oe, t[74] = L) : L = t[74];
13539
+ t[72] !== x || t[73] !== oe ? (L = /* @__PURE__ */ (0, $.jsx)(x, { children: oe }), t[72] = x, t[73] = oe, t[74] = L) : L = t[74];
13540
13540
  let se;
13541
- return t[75] !== S || t[76] !== L || t[77] !== re ? (se = /* @__PURE__ */ (0, $.jsxs)(S, { children: [re, L] }), t[75] = S, t[76] = L, t[77] = re, t[78] = se) : se = t[78], se;
13541
+ return t[75] !== C || t[76] !== L || t[77] !== re ? (se = /* @__PURE__ */ (0, $.jsxs)(C, { children: [re, L] }), t[75] = C, t[76] = L, t[77] = re, t[78] = se) : se = t[78], se;
13542
13542
  };
13543
13543
  function $p(e) {
13544
13544
  return /* @__PURE__ */ (0, $.jsx)(p, {
@@ -13615,7 +13615,7 @@ var om = (e) => {
13615
13615
  onColumnResize: o
13616
13616
  }, s), t[4] = r, t[5] = e, t[6] = s, t[7] = c) : c = t[7], c;
13617
13617
  }, sm = (e) => {
13618
- let t = (0, Yp.c)(93), { data: n, columnFields: a, columnTypes: o, editableColumns: u, onAddEdits: d, columnWidths: f, onColumnResize: p } = e, { theme: m } = ae(), h = (0, W.useRef)(null), g = (0, W.useRef)(null), [_, v] = (0, W.useState)(), [y, x] = (0, W.useState)(!1), C;
13618
+ let t = (0, Yp.c)(93), { data: n, columnFields: a, columnTypes: o, editableColumns: u, onAddEdits: d, columnWidths: f, onColumnResize: p } = e, { theme: m } = ae(), h = (0, W.useRef)(null), g = (0, W.useRef)(null), [_, v] = (0, W.useState)(), [b, S] = (0, W.useState)(!1), C;
13619
13619
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (C = {
13620
13620
  columns: Fe.empty(),
13621
13621
  rows: Fe.empty()
@@ -13707,7 +13707,7 @@ var om = (e) => {
13707
13707
  columns: N,
13708
13708
  editableColumns: u,
13709
13709
  onAddEdits: d
13710
- }) : r.isMetaOrCtrl(e) && e.key === "f" ? (x(cm), e.stopPropagation(), e.preventDefault()) : e.key === "Escape" && x(!1));
13710
+ }) : r.isMetaOrCtrl(e) && e.key === "f" ? (S(cm), e.stopPropagation(), e.preventDefault()) : e.key === "Escape" && S(!1));
13711
13711
  }, t[20] = N, t[21] = n, t[22] = u, t[23] = d, t[24] = E, t[25] = ue) : ue = t[25];
13712
13712
  let de = ue, fe;
13713
13713
  t[26] !== N || t[27] !== n.length || t[28] !== d ? (fe = () => {
@@ -13824,7 +13824,7 @@ var om = (e) => {
13824
13824
  onCancel: () => v(void 0)
13825
13825
  }),
13826
13826
  /* @__PURE__ */ (0, $.jsx)(w, {}),
13827
- !V && ke && /* @__PURE__ */ (0, $.jsxs)(b, {
13827
+ !V && ke && /* @__PURE__ */ (0, $.jsxs)(y, {
13828
13828
  onClick: B,
13829
13829
  className: "text-destructive focus:text-destructive",
13830
13830
  children: [/* @__PURE__ */ (0, $.jsx)(A, { className: "mr-2 h-3.5 w-3.5" }), "Delete column"]
@@ -13833,13 +13833,13 @@ var om = (e) => {
13833
13833
  return /* @__PURE__ */ (0, $.jsx)(T, {
13834
13834
  open: Te,
13835
13835
  onOpenChange: (e) => !e && v(void 0),
13836
- children: /* @__PURE__ */ (0, $.jsxs)(S, {
13836
+ children: /* @__PURE__ */ (0, $.jsxs)(x, {
13837
13837
  style: {
13838
13838
  left: _?.bounds.x ?? 0,
13839
13839
  top: (_?.bounds.y ?? 0) + (_?.bounds.height ?? 0)
13840
13840
  },
13841
13841
  className: "fixed w-52",
13842
- children: [/* @__PURE__ */ (0, $.jsxs)(b, {
13842
+ children: [/* @__PURE__ */ (0, $.jsxs)(y, {
13843
13843
  onClick: _e,
13844
13844
  children: [/* @__PURE__ */ (0, $.jsx)(l, { className: "mr-2 h-3.5 w-3.5" }), "Copy column name"]
13845
13845
  }), !Oe && e]
@@ -13855,7 +13855,7 @@ var om = (e) => {
13855
13855
  let Be;
13856
13856
  t[65] === m ? Be = t[66] : (Be = Xp(m), t[65] = m, t[66] = Be);
13857
13857
  let Ve;
13858
- t[67] !== N || t[68] !== n.length || t[69] !== F || t[70] !== L || t[71] !== p || t[72] !== R || t[73] !== de || t[74] !== pe || t[75] !== E || t[76] !== y || t[77] !== Ie || t[78] !== Le || t[79] !== Re || t[80] !== Be || t[81] !== le ? (Ve = /* @__PURE__ */ (0, $.jsx)(ce, { children: /* @__PURE__ */ (0, $.jsx)(uc, {
13858
+ t[67] !== N || t[68] !== n.length || t[69] !== F || t[70] !== L || t[71] !== p || t[72] !== R || t[73] !== de || t[74] !== pe || t[75] !== E || t[76] !== b || t[77] !== Ie || t[78] !== Le || t[79] !== Re || t[80] !== Be || t[81] !== le ? (Ve = /* @__PURE__ */ (0, $.jsx)(ce, { children: /* @__PURE__ */ (0, $.jsx)(uc, {
13859
13859
  ref: h,
13860
13860
  portalElementRef: g,
13861
13861
  getCellContent: F,
@@ -13870,7 +13870,7 @@ var om = (e) => {
13870
13870
  validateCell: le,
13871
13871
  getCellsForSelection: !0,
13872
13872
  onPaste: !0,
13873
- showSearch: y,
13873
+ showSearch: b,
13874
13874
  fillHandle: !0,
13875
13875
  allowedFillDirections: "vertical",
13876
13876
  onKeyDown: de,
@@ -13886,7 +13886,7 @@ var om = (e) => {
13886
13886
  onRowAppended: pe,
13887
13887
  maxColumnAutoWidth: 600,
13888
13888
  maxColumnWidth: 600
13889
- }) }), t[67] = N, t[68] = n.length, t[69] = F, t[70] = L, t[71] = p, t[72] = R, t[73] = de, t[74] = pe, t[75] = E, t[76] = y, t[77] = Ie, t[78] = Le, t[79] = Re, t[80] = Be, t[81] = le, t[82] = Ve) : Ve = t[82];
13889
+ }) }), t[67] = N, t[68] = n.length, t[69] = F, t[70] = L, t[71] = p, t[72] = R, t[73] = de, t[74] = pe, t[75] = E, t[76] = b, t[77] = Ie, t[78] = Le, t[79] = Re, t[80] = Be, t[81] = le, t[82] = Ve) : Ve = t[82];
13890
13890
  let He;
13891
13891
  t[83] === je ? He = t[84] : (He = je(), t[83] = je, t[84] = He);
13892
13892
  let Ue = E.rows.length === 0, We = E.rows.length <= 1 ? "Delete row" : "Delete rows", Ge;
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-BPCzCO3I.js";
2
- import { g as t } from "./button-qQhINE7z.js";
3
- import { h as n } from "./tooltip-UzJukb3F.js";
4
- import { n as r } from "./assertNever-DywGMo-S.js";
2
+ import { g as t } from "./button-Z2R2272J.js";
3
+ import { h as n } from "./tooltip-BQZ-Bm6h.js";
4
+ import { n as r } from "./assertNever-473SFxLt.js";
5
5
  import { i, r as a } from "./data-grid-types-DBNnjiYJ.js";
6
6
  var o = n("trash", [
7
7
  ["path", {
@@ -1,6 +1,6 @@
1
- import { h as e } from "./tooltip-UzJukb3F.js";
2
- import { Ct as t } from "./use-restore-focus-DaTVz6S6.js";
3
- import { r as n } from "./code-visibility-D8sNdSZw.js";
1
+ import { h as e } from "./tooltip-BQZ-Bm6h.js";
2
+ import { Ct as t } from "./use-restore-focus-DT1TZACX.js";
3
+ import { r as n } from "./code-visibility-D4FVcpUd.js";
4
4
  var r = e("triangle-alert", [
5
5
  ["path", {
6
6
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",