@marimo-team/islands 0.25.1-dev90 → 0.25.1

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 (294) hide show
  1. package/dist/{ConnectedDataExplorerComponent-KVhjDMSe.js → ConnectedDataExplorerComponent-C2d9ysUI.js} +8 -9
  2. package/dist/{ErrorBoundary-D7_peFI9.js → ErrorBoundary-1wHWKFoG.js} +1 -1
  3. package/dist/{ImageComparisonComponent-Dlm5aWnH.js → ImageComparisonComponent-Cpfz30OZ.js} +51 -52
  4. package/dist/{abnfDiagram-VCTEODGH-CpN0FRda.js → abnfDiagram-VCTEODGH-AFhOQTt8.js} +3 -3
  5. package/dist/{architectureDiagram-5GKGNRK7-DDyj5SRB.js → architectureDiagram-5GKGNRK7-BngksAAQ.js} +5 -5
  6. package/dist/{blockDiagram-I7D4REHJ-BbXEXJRu.js → blockDiagram-I7D4REHJ-CvBmppdy.js} +9 -9
  7. package/dist/{c4Diagram-7LVT6UL2-DcLsbQmR.js → c4Diagram-7LVT6UL2-EceL4_jH.js} +7 -7
  8. package/dist/{cells-DYIkSxs6.js → cells-Cv93oav_.js} +4124 -4151
  9. package/dist/{channel-B5XnTarr.js → channel-z7HZXHwv.js} +1 -1
  10. package/dist/{chat-ui-BXj3uYjy.js → chat-ui-fVyVOhYN.js} +47 -47
  11. package/dist/{chunk-4HAMMTFA-D2qv8E0X.js → chunk-4HAMMTFA-BPTTOOC5.js} +5 -5
  12. package/dist/{chunk-75Z2AOVW-5_HsvXwr.js → chunk-75Z2AOVW-C4AOleKf.js} +1 -1
  13. package/dist/{chunk-DU6HZSFF-BUgAHvnM.js → chunk-DU6HZSFF-1TwWR6gh.js} +1 -1
  14. package/dist/{chunk-F27PBJKO-DHmYWZXr.js → chunk-F27PBJKO-DMI1PBe4.js} +1 -1
  15. package/dist/{chunk-GMAD6QVW-Czynz8aA.js → chunk-GMAD6QVW-vStrMz2P.js} +3 -3
  16. package/dist/{chunk-GVQU2GXP-yQEdulRS.js → chunk-GVQU2GXP-2HwWgs4u.js} +2 -2
  17. package/dist/{chunk-IMKFNOWR-BfwTebD0.js → chunk-IMKFNOWR-UOVZuZVn.js} +5 -5
  18. package/dist/{chunk-L3NEJ4N5-DwRWnDDK.js → chunk-L3NEJ4N5-RhC7i0I2.js} +5 -5
  19. package/dist/{chunk-OSK3NFVY-BBKU_Ign.js → chunk-OSK3NFVY-CZV09N-U.js} +6 -6
  20. package/dist/{chunk-P2QGCYS3-C0iGU29N.js → chunk-P2QGCYS3-0TAWai9C.js} +1 -1
  21. package/dist/{chunk-POPQ4Y6H-BCbS3Ozc.js → chunk-POPQ4Y6H-Cc3_56GX.js} +1 -1
  22. package/dist/{chunk-PWAF6VOD-CTFCL0jI.js → chunk-PWAF6VOD-lNxB9k8z.js} +1 -1
  23. package/dist/{chunk-SHT3W25Y-BspJEJ5H.js → chunk-SHT3W25Y-CrEPyWy1.js} +7 -7
  24. package/dist/{chunk-SVP7TREG-DX3rFNTe.js → chunk-SVP7TREG-uIyyySp6.js} +2 -2
  25. package/dist/{chunk-TICWLB2K-fVF7Uujg.js → chunk-TICWLB2K-DdXM3eg6.js} +5 -5
  26. package/dist/classDiagram-ZZMXUADV-BiATbBE4.js +30 -0
  27. package/dist/classDiagram-v2-VYDZK3BY-JnH97GYw.js +30 -0
  28. package/dist/{code-visibility-Cv2cG11L.js → code-visibility-DMcT7AsU.js} +17 -17
  29. package/dist/{common-DVOYsne0.js → common-B58G5YN_.js} +6726 -6430
  30. package/dist/{cynefinDiagram-5FMLGOSQ-CFQrqzSX.js → cynefinDiagram-5FMLGOSQ-zknaAsGy.js} +3 -3
  31. package/dist/{dagre-GXQ25YYZ-xHNAUTyG.js → dagre-GXQ25YYZ-BhMOoMGJ.js} +10 -10
  32. package/dist/{data-grid-overlay-editor--Egdzm1k.js → data-grid-overlay-editor-DUWqrgYI.js} +1 -1
  33. package/dist/{diagram-S7CK7UJ4-Bt1rPbAx.js → diagram-S7CK7UJ4-V5-Z-EDY.js} +4 -4
  34. package/dist/{diagram-UQ7AKVKN-D1sq5FoZ.js → diagram-UQ7AKVKN-qw8AjDal.js} +3 -3
  35. package/dist/{diagram-VSXAHHWV-BKpmG23x.js → diagram-VSXAHHWV-CR7BJygZ.js} +2 -2
  36. package/dist/{diagram-VX7I27RA-BMwGFVD6.js → diagram-VX7I27RA-DfuqFb1E.js} +5 -5
  37. package/dist/{diagram-Z3DM3KII--KLDR9Pl.js → diagram-Z3DM3KII-DpWwlYZB.js} +3 -3
  38. package/dist/{dist-BaHjhkpZ.js → dist-CcyKTBTF.js} +1 -1
  39. package/dist/{dropdown-menu-CZgjYSAh.js → dropdown-menu-CZy06LAq.js} +12 -12
  40. package/dist/{ebnfDiagram-PWID7BFC-WnG4cvSQ.js → ebnfDiagram-PWID7BFC-C20OnNMZ.js} +3 -3
  41. package/dist/{erDiagram-RLTQ6QDP-DhzKiYHc.js → erDiagram-RLTQ6QDP-DBXLWO9v.js} +12 -12
  42. package/dist/{error-entries-C0NsUqXl.js → error-entries-DLl0XqoW.js} +18 -18
  43. package/dist/{feedback-button-WVepiUsI.js → feedback-button-BmlXbdJI.js} +19 -19
  44. package/dist/flowDiagram-HODETNUW-DL52nMkt.js +16 -0
  45. package/dist/{formats-BR5iGb4s.js → formats-Cl_67ghI.js} +2 -2
  46. package/dist/{ganttDiagram-EL5Y4UJY-DbzEBLbl.js → ganttDiagram-EL5Y4UJY-cRRaDt88.js} +2 -2
  47. package/dist/{gitGraphDiagram-WWUBYQGX-BMf0iKi1.js → gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js} +2 -2
  48. package/dist/{glide-data-editor-S0WTUxUP.js → glide-data-editor-DnxrqL3c.js} +5 -5
  49. package/dist/{globals-B0NGznoE.js → globals-C6IYCw1c.js} +1 -1
  50. package/dist/{html-to-image-CeYYvQNb.js → html-to-image-CmkwfNkf.js} +32 -31
  51. package/dist/{infoDiagram-27XIBGKW-BagtCX_5.js → infoDiagram-27XIBGKW-ntpxMfrq.js} +2 -2
  52. package/dist/{ishikawaDiagram-5VMMS53U-DByDehYy.js → ishikawaDiagram-5VMMS53U-BllIlHE5.js} +3 -3
  53. package/dist/{journeyDiagram-3NMN7TZE-D2LcKDUO.js → journeyDiagram-3NMN7TZE-EPJDPlt0.js} +2 -2
  54. package/dist/{kanban-definition-UXKFOSKX-BxwkbBI_.js → kanban-definition-UXKFOSKX-GYtNMjtS.js} +9 -9
  55. package/dist/{katex-C6D4cX_N.js → katex-BNCmKUol.js} +983 -1120
  56. package/dist/{useNumberFormatter-BfDpa21j.js → label-BslhXqL6.js} +108 -81
  57. package/dist/{loader-D2W4oM-3.js → loader-DEZSzvma.js} +253 -248
  58. package/dist/main.js +670 -661
  59. package/dist/{mermaid-DPNuhemn.js → mermaid-Dnzoxjt1.js} +49 -49
  60. package/dist/{mhchem-DWCF06w9.js → mhchem-BEc7A1or.js} +1 -1
  61. package/dist/{mindmap-definition-YA3MSWOX-Cgvojw3y.js → mindmap-definition-YA3MSWOX-Cth76xgH.js} +11 -11
  62. package/dist/{number-overlay-editor-5uyVnQ6u.js → number-overlay-editor-BO78Sr4W.js} +1 -1
  63. package/dist/{pegDiagram-XKGWAZYB-DahHhYyN.js → pegDiagram-XKGWAZYB-Cu4uOXii.js} +3 -3
  64. package/dist/{pieDiagram-E7YTZNPT-CCtX0oCK.js → pieDiagram-E7YTZNPT-Bh3eDa9s.js} +3 -3
  65. package/dist/{process-output-BCTjlyuH.js → process-output-CYN5E-iO.js} +2 -2
  66. package/dist/{quadrantDiagram-AXDQQJYC-DftINo6g.js → quadrantDiagram-AXDQQJYC--kqzFC3w.js} +1 -1
  67. package/dist/{railroadDiagram-O6MQD6OU-Du5NsPUb.js → railroadDiagram-O6MQD6OU-DG-M6Rnc.js} +3 -3
  68. package/dist/{react-vega-5AcMW8gG.js → react-vega-ewj7q_U5.js} +1 -1
  69. package/dist/{requirementDiagram-BXWQKSXE-0pmmxL6_.js → requirementDiagram-BXWQKSXE-DCwsThh0.js} +11 -11
  70. package/dist/{reveal-component-CKpvbtfe.js → reveal-component-C1yOCuj8.js} +744 -743
  71. package/dist/{sankeyDiagram-P5KCCOFB-CDKR5TJH.js → sankeyDiagram-P5KCCOFB-BdzhT0BM.js} +1 -1
  72. package/dist/{sequenceDiagram-WJ2MYXX4-DB-ChWwU.js → sequenceDiagram-WJ2MYXX4-CbXB1_PU.js} +4 -4
  73. package/dist/{spec-CAYwFeV6.js → spec-DQBRQSba.js} +123 -102
  74. package/dist/{stateDiagram-D77RDMKH-orN6AwMx.js → stateDiagram-D77RDMKH-A-Zf3Sb2.js} +13 -13
  75. package/dist/stateDiagram-v2-MP3YSRHH-D9YMnUGx.js +30 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{swimlanes-42K2YHIH-BkSDcqDT.js → swimlanes-42K2YHIH-B_pMf0J4.js} +10 -10
  78. package/dist/swimlanesDiagram-VR7AAH4N-Ctgy-yGP.js +30 -0
  79. package/dist/{timeline-definition-24CTP7MA-BuqJUIRZ.js → timeline-definition-24CTP7MA-DTXFjTTM.js} +3 -3
  80. package/dist/{toDate-WXg1yLcI.js → toDate-C67bxMWn.js} +139 -111
  81. package/dist/{useDateFormatter-BRTPsUK7.js → useDateFormatter-BXQGu86d.js} +28 -49
  82. package/dist/{vega-component-D0QXopU8.js → vega-component-tFOzgarw.js} +12 -12
  83. package/dist/{vega-embed-container-CbnTccZi.js → vega-embed-container-sSR5hAsy.js} +2 -2
  84. package/dist/{vega-loader.browser-D95WfUcj.js → vega-loader.browser-DNST6uVf.js} +2 -2
  85. package/dist/{vennDiagram-4TSXK5OY-CTUlJ2PK.js → vennDiagram-4TSXK5OY-BPHjZo0R.js} +3 -3
  86. package/dist/{wardleyDiagram-VM6X3IG4-3evLUb0M.js → wardleyDiagram-VM6X3IG4-6fTLYBuD.js} +3 -3
  87. package/dist/{xychartDiagram-S5SC5T6Z-DL2E3K8-.js → xychartDiagram-S5SC5T6Z-BYjwjrzE.js} +5 -5
  88. package/package.json +1 -2
  89. package/src/__mocks__/common.ts +3 -3
  90. package/src/__tests__/CellStatus.test.tsx +1 -1
  91. package/src/__tests__/setup.ts +7 -7
  92. package/src/components/app-config/ai-config.tsx +2 -0
  93. package/src/components/app-config/optional-features.tsx +1 -1
  94. package/src/components/chat/chat-panel.tsx +19 -8
  95. package/src/components/data-table/TableTopBar.tsx +2 -2
  96. package/src/components/data-table/__tests__/export-actions.test.tsx +662 -0
  97. package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +286 -0
  98. package/src/components/data-table/charts/charts.tsx +26 -13
  99. package/src/components/data-table/column-summary/chart-spec-model.tsx +4 -4
  100. package/src/components/data-table/data-table.tsx +1 -1
  101. package/src/components/data-table/export-actions.tsx +642 -176
  102. package/src/components/data-table/schemas.ts +25 -3
  103. package/src/components/dependency-graph/elements.ts +2 -2
  104. package/src/components/editor/__tests__/package-alert.test.tsx +140 -0
  105. package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +107 -0
  106. package/src/components/editor/actions/pair-with-agent.tsx +119 -0
  107. package/src/components/editor/actions/useNotebookActions.tsx +2 -1
  108. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -0
  109. package/src/components/editor/ai/staged-cell-submission.ts +2 -2
  110. package/src/components/editor/ai/transport/chat-transport.tsx +1 -1
  111. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +6 -1
  112. package/src/components/editor/connections/database/as-code.ts +44 -44
  113. package/src/components/editor/connections/storage/as-code.ts +3 -3
  114. package/src/components/editor/file-tree/requesting-tree.tsx +16 -13
  115. package/src/components/editor/navigation/clipboard.ts +2 -2
  116. package/src/components/editor/notebook-cell.tsx +2 -2
  117. package/src/components/editor/output/MarimoTracebackOutput.tsx +1 -1
  118. package/src/components/editor/output/VideoOutput.tsx +1 -1
  119. package/src/components/editor/output/ansi-reduce.ts +21 -17
  120. package/src/components/editor/output/console/ConsoleOutput.tsx +3 -3
  121. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +59 -0
  122. package/src/components/editor/output/console/text-rendering.tsx +3 -1
  123. package/src/components/editor/package-alert.tsx +20 -7
  124. package/src/components/home/components.tsx +1 -0
  125. package/src/components/markdown/markdown-renderer.css +1 -1
  126. package/src/components/pages/run-page.tsx +1 -0
  127. package/src/components/slides/__tests__/minimap-actions.test.tsx +7 -7
  128. package/src/components/slides/__tests__/minimap.test.ts +12 -12
  129. package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +8 -8
  130. package/src/components/static-html/__tests__/share-modal.test.tsx +154 -0
  131. package/src/components/static-html/__tests__/stage-for-publish.test.ts +111 -0
  132. package/src/components/static-html/share-modal.tsx +114 -144
  133. package/src/components/static-html/stage-for-publish.ts +56 -0
  134. package/src/components/static-html/static-banner.tsx +2 -2
  135. package/src/components/ui/links.tsx +6 -1
  136. package/src/components/ui/typography.tsx +16 -8
  137. package/src/core/ai/context/__tests__/registry.test.ts +31 -28
  138. package/src/core/ai/context/providers/cell-output.ts +8 -8
  139. package/src/core/ai/context/providers/datasource.ts +10 -7
  140. package/src/core/ai/context/providers/error.ts +7 -7
  141. package/src/core/ai/context/providers/file.ts +8 -8
  142. package/src/core/ai/context/providers/tables.ts +7 -7
  143. package/src/core/ai/context/providers/variable.ts +7 -7
  144. package/src/core/ai/context/registry.ts +18 -18
  145. package/src/core/ai/ids/ids.ts +5 -5
  146. package/src/core/ai/model-registry.ts +12 -9
  147. package/src/core/ai/staged-cells.ts +6 -6
  148. package/src/core/ai/tools/base.ts +6 -6
  149. package/src/core/ai/tools/edit-notebook-tool.ts +6 -6
  150. package/src/core/ai/tools/registry.ts +4 -4
  151. package/src/core/ai/tools/run-cells-tool.ts +7 -7
  152. package/src/core/ai/tools/sample-tool.ts +6 -6
  153. package/src/core/cells/__tests__/cells.test.ts +27 -0
  154. package/src/core/cells/cells.ts +2 -1
  155. package/src/core/codemirror/cells/debugger-decorations.ts +13 -7
  156. package/src/core/codemirror/cells/line-timing-decorations.ts +9 -9
  157. package/src/core/codemirror/cells/traceback-decorations.ts +7 -4
  158. package/src/core/codemirror/code-lens/extension.ts +13 -13
  159. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +6 -6
  160. package/src/core/codemirror/copilot/__tests__/transport.test.ts +12 -12
  161. package/src/core/codemirror/copilot/language-server.ts +13 -13
  162. package/src/core/codemirror/copilot/transport.ts +1 -1
  163. package/src/core/codemirror/find-replace/search-highlight.ts +5 -5
  164. package/src/core/codemirror/go-to-definition/underline.ts +3 -3
  165. package/src/core/codemirror/keymaps/vim.ts +3 -3
  166. package/src/core/codemirror/language/languages/markdown.ts +8 -8
  167. package/src/core/codemirror/language/languages/python.ts +7 -7
  168. package/src/core/codemirror/language/languages/sql/completion-builder.ts +5 -5
  169. package/src/core/codemirror/language/languages/sql/completion-store.ts +4 -4
  170. package/src/core/codemirror/language/languages/sql/sql.ts +21 -21
  171. package/src/core/codemirror/lsp/__tests__/transports.test.ts +10 -10
  172. package/src/core/codemirror/lsp/federated-lsp.ts +29 -27
  173. package/src/core/codemirror/lsp/notebook-lsp.ts +21 -21
  174. package/src/core/codemirror/misc/__tests__/dnd.test.ts +10 -10
  175. package/src/core/codemirror/misc/__tests__/paste.test.ts +7 -4
  176. package/src/core/codemirror/reactive-references/extension.ts +3 -3
  177. package/src/core/codemirror/rtc/loro/awareness.ts +12 -12
  178. package/src/core/codemirror/rtc/loro/sync.ts +5 -5
  179. package/src/core/codemirror/vim/cursor-visibility.ts +3 -3
  180. package/src/core/dom/ui-element.ts +5 -5
  181. package/src/core/dom/uiregistry.ts +10 -10
  182. package/src/core/hotkeys/hotkeys.ts +9 -9
  183. package/src/core/islands/__tests__/bridge.test.ts +4 -4
  184. package/src/core/islands/__tests__/test-utils.tsx +4 -4
  185. package/src/core/islands/bridge.ts +85 -82
  186. package/src/core/islands/components/web-components.tsx +7 -7
  187. package/src/core/islands/worker/__tests__/controller.test.ts +1 -1
  188. package/src/core/islands/worker/controller.ts +6 -3
  189. package/src/core/islands/worker-factory.ts +2 -2
  190. package/src/core/kernel/RuntimeState.ts +4 -4
  191. package/src/core/kernel/__tests__/session.test.ts +110 -1
  192. package/src/core/kernel/session.ts +46 -15
  193. package/src/core/lsp/__tests__/transport.test.ts +19 -19
  194. package/src/core/lsp/transport.ts +5 -5
  195. package/src/core/network/CachingRequestRegistry.ts +2 -2
  196. package/src/core/network/DeferredRequestRegistry.ts +4 -4
  197. package/src/core/network/__tests__/export-asset-url.test.ts +45 -0
  198. package/src/core/network/export-asset-url.ts +19 -0
  199. package/src/core/network/requests-network.ts +2 -7
  200. package/src/core/runtime/runtime.ts +25 -20
  201. package/src/core/static/virtual-file-tracker.ts +5 -5
  202. package/src/core/wasm/__tests__/bridge.test.ts +2 -2
  203. package/src/core/wasm/bridge.ts +132 -133
  204. package/src/core/wasm/router.ts +5 -5
  205. package/src/core/wasm/store.ts +4 -4
  206. package/src/core/wasm/worker/bootstrap.ts +8 -5
  207. package/src/core/wasm/worker/message-buffer.ts +3 -3
  208. package/src/core/websocket/transports/__tests__/ws.test.ts +8 -8
  209. package/src/core/websocket/transports/basic.ts +15 -8
  210. package/src/core/websocket/transports/sse.ts +7 -7
  211. package/src/core/websocket/transports/transport.ts +3 -3
  212. package/src/core/websocket/transports/ws.ts +9 -7
  213. package/src/css/globals.css +18 -21
  214. package/src/css/katex.min.css +260 -241
  215. package/src/hooks/__tests__/useOverflowDetection.test.tsx +5 -5
  216. package/src/hooks/__tests__/useResizeObserver.test.tsx +12 -12
  217. package/src/plugins/core/registerReactComponent.tsx +5 -5
  218. package/src/plugins/core/sidebar-element.tsx +2 -2
  219. package/src/plugins/impl/ButtonPlugin.tsx +3 -3
  220. package/src/plugins/impl/CheckboxPlugin.tsx +3 -3
  221. package/src/plugins/impl/CodeEditorPlugin.tsx +3 -3
  222. package/src/plugins/impl/DatePickerPlugin.tsx +3 -3
  223. package/src/plugins/impl/DateRangePlugin.tsx +3 -3
  224. package/src/plugins/impl/DateTimePickerPlugin.tsx +3 -3
  225. package/src/plugins/impl/DictPlugin.tsx +3 -3
  226. package/src/plugins/impl/DropdownPlugin.tsx +3 -3
  227. package/src/plugins/impl/FileUploadPlugin.tsx +3 -3
  228. package/src/plugins/impl/MatrixPlugin.tsx +4 -4
  229. package/src/plugins/impl/MicrophonePlugin.tsx +3 -3
  230. package/src/plugins/impl/MultiselectPlugin.tsx +3 -3
  231. package/src/plugins/impl/NumberPlugin.tsx +3 -3
  232. package/src/plugins/impl/RadioPlugin.tsx +9 -5
  233. package/src/plugins/impl/RangeSliderPlugin.tsx +3 -3
  234. package/src/plugins/impl/RefreshPlugin.tsx +3 -3
  235. package/src/plugins/impl/SliderPlugin.tsx +3 -3
  236. package/src/plugins/impl/SwitchPlugin.tsx +3 -3
  237. package/src/plugins/impl/TabsPlugin.tsx +3 -3
  238. package/src/plugins/impl/TextAreaPlugin.tsx +3 -3
  239. package/src/plugins/impl/TextInputPlugin.tsx +3 -3
  240. package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +2 -2
  241. package/src/plugins/impl/anywidget/model.ts +10 -10
  242. package/src/plugins/impl/anywidget/registry.ts +12 -9
  243. package/src/plugins/impl/anywidget/runtime.ts +11 -9
  244. package/src/plugins/impl/anywidget/widget-binding.ts +6 -6
  245. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +7 -6
  246. package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +3 -3
  247. package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +2 -2
  248. package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +2 -2
  249. package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +10 -10
  250. package/src/plugins/impl/panel/utils.ts +5 -5
  251. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +3 -3
  252. package/src/plugins/impl/vega/VegaPlugin.tsx +3 -3
  253. package/src/plugins/impl/vega/__tests__/use-vega-container-remeasure.test.ts +7 -7
  254. package/src/plugins/impl/vega/__tests__/utils.test.ts +16 -1
  255. package/src/plugins/impl/vega/__tests__/vega.test.ts +37 -0
  256. package/src/plugins/impl/vega/loader.ts +23 -1
  257. package/src/plugins/impl/vega/utils.ts +5 -4
  258. package/src/plugins/layout/AccordionPlugin.tsx +3 -3
  259. package/src/plugins/layout/CalloutPlugin.tsx +3 -3
  260. package/src/plugins/layout/ImageComparisonPlugin.tsx +5 -3
  261. package/src/plugins/layout/JsonOutputPlugin.tsx +3 -3
  262. package/src/plugins/layout/MimeRenderPlugin.tsx +3 -3
  263. package/src/plugins/layout/NavigationMenuPlugin.tsx +3 -3
  264. package/src/plugins/layout/OutlinePlugin.tsx +3 -3
  265. package/src/plugins/layout/ProgressPlugin.tsx +3 -3
  266. package/src/plugins/layout/RoutesPlugin.tsx +6 -8
  267. package/src/plugins/layout/StatPlugin.tsx +3 -3
  268. package/src/plugins/layout/TexPlugin.tsx +3 -3
  269. package/src/plugins/layout/carousel/CarouselPlugin.tsx +4 -4
  270. package/src/plugins/layout/mermaid/MermaidPlugin.tsx +3 -3
  271. package/src/utils/Deferred.ts +6 -6
  272. package/src/utils/async-capture-tracker.ts +10 -7
  273. package/src/utils/errors.ts +5 -5
  274. package/src/utils/id-tree.tsx +83 -80
  275. package/src/utils/lru.ts +1 -1
  276. package/src/utils/multi-map.ts +14 -12
  277. package/src/utils/paths.ts +6 -6
  278. package/src/utils/pluralize.ts +3 -3
  279. package/src/utils/progress.ts +6 -6
  280. package/src/utils/python-poet/poet.ts +14 -14
  281. package/src/utils/routes.ts +4 -2
  282. package/src/utils/semaphore.ts +6 -6
  283. package/src/utils/storage/storage.ts +6 -6
  284. package/src/utils/storage/typed.ts +16 -12
  285. package/src/utils/time.ts +9 -9
  286. package/src/utils/timed-cache.ts +4 -4
  287. package/src/utils/tracer.ts +9 -6
  288. package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +0 -30
  289. package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +0 -30
  290. package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +0 -16
  291. package/dist/katex-DFBiSucW.js +0 -21840
  292. package/dist/label-BJ49YTvk.js +0 -30
  293. package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +0 -30
  294. package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +0 -30
@@ -5,9 +5,10 @@ import { t as l } from "./compiler-runtime-Cj8ZWiNS.js";
5
5
  import { n as u, t as d } from "./copy-icon-CLdENY__.js";
6
6
  import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DrWbKnxA.js";
7
7
  import { c as _, d as v, g as y, l as b, s as x, t as ee, u as te } from "./tooltip-qB8NlSqV.js";
8
- import { A as ne, Ct as re, Dt as ie, E as ae, Et as oe, O as se, R as ce, Rt as le, St as ue, U as de, X as fe, an as pe, at as me, bt as he, h as ge, mt as _e, nn as ve, nt as ye, q as be, s as xe, t as Se, wt as Ce, xt as we, z as Te } from "./cells-DYIkSxs6.js";
9
- import { M as Ee, O as De, k as Oe } from "./select-C6plhmZr.js";
10
- import { J as ke, ht as Ae } from "./dropdown-menu-CZgjYSAh.js";
8
+ import { A as ne, E as re, G as ie, Nt as ae, O as oe, R as se, St as ce, Z as le, Zt as ue, _t as de, en as fe, et as pe, gt as me, h as he, ht as ge, lt as _e, s as ve, t as ye, vt as be, xt as xe, yt as Se, z as Ce } from "./cells-Cv93oav_.js";
9
+ import { M as we, O as Te, k as Ee } from "./select-C6plhmZr.js";
10
+ import { J as De, ht as Oe } from "./dropdown-menu-CZy06LAq.js";
11
+ import { g as ke, x as Ae } from "./toDate-C67bxMWn.js";
11
12
  import { t as je } from "./jsx-runtime-DgDPJV9S.js";
12
13
  import { Ct as S, K as Me, Q as Ne, St as Pe, Tt as C, X as Fe, Y as Ie, bt as Le, ft as Re, gt as ze, lt as Be, mt as Ve, pt as He, ut as Ue, wt as We, xt as w, yt as Ge } from "./use-restore-focus-D5D9xEjZ.js";
13
14
  import { A as Ke, C as T, E as qe, _ as E, c as D, n as Je } from "./useTheme-DzXmYZ5V.js";
@@ -1422,7 +1423,7 @@ var Et = yt, Dt = xt, Ot = Ct, N = "Accordion", kt = [
1422
1423
  "ArrowUp",
1423
1424
  "ArrowLeft",
1424
1425
  "ArrowRight"
1425
- ], [P, At, jt] = Oe(N), [F, Mt] = We(N, [jt, gt]), Nt = gt(), Pt = O.forwardRef((e, t) => {
1426
+ ], [P, At, jt] = Ee(N), [F, Mt] = We(N, [jt, gt]), Nt = gt(), Pt = O.forwardRef((e, t) => {
1426
1427
  let { type: n, ...r } = e, i = r, a = r;
1427
1428
  return /* @__PURE__ */ (0, j.jsx)(P.Provider, {
1428
1429
  scope: e.__scopeAccordion,
@@ -1479,7 +1480,7 @@ var [Ft, It] = F(N), [Lt, Rt] = F(N, { collapsible: !1 }), zt = O.forwardRef((e,
1479
1480
  })
1480
1481
  });
1481
1482
  }), [Vt, I] = F(N), Ht = O.forwardRef((e, t) => {
1482
- let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = O.useRef(null), l = i(c, t), u = At(n), d = De(a) === "ltr", f = S(e.onKeyDown, (e) => {
1483
+ let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = "vertical", ...s } = e, c = O.useRef(null), l = i(c, t), u = At(n), d = Te(a) === "ltr", f = S(e.onKeyDown, (e) => {
1483
1484
  if (!kt.includes(e.key)) return;
1484
1485
  let t = e.target, n = u().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
1485
1486
  if (r === -1) return;
@@ -1786,7 +1787,7 @@ var Tn = sn, En = ln, Dn = dn, On = mn, kn = hn, An = xn, jn = (e) => {
1786
1787
  t[6] === s ? c = t[7] : (c = { onPress: () => {
1787
1788
  s();
1788
1789
  } }, t[6] = s, t[7] = c);
1789
- let { pressProps: l } = Ae(c), u;
1790
+ let { pressProps: l } = Oe(c), u;
1790
1791
  t[8] === s ? u = t[9] : (u = (e) => {
1791
1792
  e.preventDefault(), s();
1792
1793
  }, t[8] = s, t[9] = u);
@@ -1829,15 +1830,15 @@ Ln.displayName = kn.displayName;
1829
1830
  //#endregion
1830
1831
  //#region src/core/documentation/doc-lookup.ts
1831
1832
  async function Rn(e) {
1832
- let t = xe().inOrderIds.at(0);
1833
+ let t = ve().inOrderIds.at(0);
1833
1834
  if (t) try {
1834
- let n = await ye.request({
1835
+ let n = await le.request({
1835
1836
  document: e,
1836
1837
  cellId: t
1837
1838
  });
1838
1839
  if (!n || n.options.length === 0) return;
1839
1840
  let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
1840
- a?.completion_info && E.set(me, { documentation: a.completion_info });
1841
+ a?.completion_info && E.set(pe, { documentation: a.completion_info });
1841
1842
  } catch (t) {
1842
1843
  n.debug(`Doc lookup failed for "${e}"`, t);
1843
1844
  }
@@ -1849,7 +1850,7 @@ var zn = (e) => {
1849
1850
  t[0] === n ? i = t[1] : (i = () => {
1850
1851
  Rn(n);
1851
1852
  }, t[0] = n, t[1] = i);
1852
- let a = ke(i, 100), o;
1853
+ let a = De(i, 100), o;
1853
1854
  t[2] === a ? o = t[3] : (o = () => a.cancel(), t[2] = a, t[3] = o);
1854
1855
  let s;
1855
1856
  return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0, j.jsx)("span", {
@@ -1875,7 +1876,7 @@ function W() {
1875
1876
  function Un() {
1876
1877
  if (E.get(Bn) || W() || E.get(D)) return !0;
1877
1878
  try {
1878
- if (de() === "read") return !0;
1879
+ if (ke() === "read") return !0;
1879
1880
  } catch {}
1880
1881
  return !1;
1881
1882
  }
@@ -1886,7 +1887,7 @@ var Wn = qe((e) => {
1886
1887
  if (t || n || W()) return !1;
1887
1888
  let r = !0;
1888
1889
  try {
1889
- r = de() === "read";
1890
+ r = ke() === "read";
1890
1891
  } catch {
1891
1892
  return !0;
1892
1893
  }
@@ -2003,7 +2004,7 @@ var Kn = [], qn = (e) => {
2003
2004
  bb0: {
2004
2005
  if (i || o) {
2005
2006
  let e;
2006
- t[0] === n ? e = t[1] : (e = ae(n), t[0] = n, t[1] = e), s = e;
2007
+ t[0] === n ? e = t[1] : (e = re(n), t[0] = n, t[1] = e), s = e;
2007
2008
  break bb0;
2008
2009
  }
2009
2010
  s = n;
@@ -2286,7 +2287,7 @@ var Ir = O.forwardRef((e, t) => {
2286
2287
  let s;
2287
2288
  n[4] === a ? s = n[5] : (s = r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-start", a), n[4] = a, n[5] = s);
2288
2289
  let c;
2289
- n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, j.jsx)(Ee, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
2290
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, j.jsx)(we, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
2290
2291
  let l;
2291
2292
  return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0, j.jsx)(en, {
2292
2293
  className: "flex",
@@ -2322,7 +2323,7 @@ var Lr = O.forwardRef((e, t) => {
2322
2323
  Lr.displayName = nn.displayName;
2323
2324
  //#endregion
2324
2325
  //#region src/utils/multi-map.ts
2325
- var Rr = /* @__PURE__ */ e(we(), 1), zr = class {
2326
+ var Rr = /* @__PURE__ */ e(me(), 1), zr = class {
2326
2327
  map = /* @__PURE__ */ new Map();
2327
2328
  get(e) {
2328
2329
  return this.map.get(e) ?? [];
@@ -2462,7 +2463,7 @@ var Vr = class {
2462
2463
  return (await Promise.all(i)).flat();
2463
2464
  }
2464
2465
  };
2465
- le([ve()], Hr.prototype, "getAllItems", null);
2466
+ ae([ue()], Hr.prototype, "getAllItems", null);
2466
2467
  //#endregion
2467
2468
  //#region src/core/ai/context/utils.ts
2468
2469
  function Ur(e) {
@@ -2517,12 +2518,12 @@ var Gr = {
2517
2518
  connectionsMap;
2518
2519
  dataframes;
2519
2520
  constructor(e, t) {
2520
- super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => Ce(e) === "dataframe");
2521
+ super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => Se(e) === "dataframe");
2521
2522
  }
2522
2523
  getItems() {
2523
2524
  return [...this.connectionsMap.values()].map((e) => {
2524
2525
  let t = "Database schema.", n = { connection: e };
2525
- return oe.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
2526
+ return xe.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
2526
2527
  uri: this.asURI(e.name),
2527
2528
  name: e.name,
2528
2529
  description: t,
@@ -2533,7 +2534,7 @@ var Gr = {
2533
2534
  }
2534
2535
  formatContext(e) {
2535
2536
  let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
2536
- return oe.has(n) || (o = {
2537
+ return xe.has(n) || (o = {
2537
2538
  ...a,
2538
2539
  engine_name: n
2539
2540
  }), Wr({
@@ -2546,10 +2547,10 @@ var Gr = {
2546
2547
  }
2547
2548
  formatCompletion(e) {
2548
2549
  let t = e.data, n = t.connection, r = t.tables, i = n.name;
2549
- return oe.has(n.name) && (i = "In-Memory"), {
2550
+ return xe.has(n.name) && (i = "In-Memory"), {
2550
2551
  label: `@${i}`,
2551
2552
  displayLabel: i,
2552
- detail: he(n.dialect),
2553
+ detail: ge(n.dialect),
2553
2554
  boost: Gr.MEDIUM,
2554
2555
  type: this.contextType,
2555
2556
  section: Kr.DATA_SOURCES,
@@ -2561,23 +2562,23 @@ var Gr = {
2561
2562
  }
2562
2563
  };
2563
2564
  function Yr(e, t) {
2564
- let n = t.get(Se(e))?.code;
2565
+ let n = t.get(ye(e))?.code;
2565
2566
  if (!n || n.trim() === "") return null;
2566
- let [r, i, a] = ce.sql.transformIn(n), o = t.get(re).connectionsMap.get(a.engine);
2567
+ let [r, i, a] = se.sql.transformIn(n), o = t.get(be).connectionsMap.get(a.engine);
2567
2568
  return o ? `@${qr}://${o.name}` : null;
2568
2569
  }
2569
2570
  function Xr(e, t) {
2570
2571
  let n = Yr(e, t);
2571
2572
  if (!n) return null;
2572
- let r = t.get(re).connectionsMap, i = new Jr(r, t.get(ue)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2573
+ let r = t.get(be).connectionsMap, i = new Jr(r, t.get(de)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
2573
2574
  return o ? i.formatContext(o) : null;
2574
2575
  }
2575
2576
  //#endregion
2576
2577
  //#region src/core/cells/outputs.ts
2577
2578
  var Zr = {}, Qr = {};
2578
2579
  function $r(e) {
2579
- let t = (0, k.c)(16), { mode: n } = T(be), { updateCellConfig: r } = ge(), i;
2580
- t[0] === e ? i = t[1] : (i = pe(Se(e), ti, Object.is), t[0] = e, t[1] = i);
2580
+ let t = (0, k.c)(16), { mode: n } = T(Ae), { updateCellConfig: r } = he(), i;
2581
+ t[0] === e ? i = t[1] : (i = fe(ye(e), ti, Object.is), t[0] = e, t[1] = i);
2581
2582
  let a = T(i), o;
2582
2583
  t[2] !== e || t[3] !== a ? (o = () => Zr[e] ?? a, t[2] = e, t[3] = a, t[4] = o) : o = t[4];
2583
2584
  let [s, c] = (0, O.useState)(o), l, u;
@@ -2591,7 +2592,7 @@ function $r(e) {
2591
2592
  r({
2592
2593
  cellId: e,
2593
2594
  config: n
2594
- }), ie().saveCellConfig({ configs: { [e]: n } }).catch(ei);
2595
+ }), ce().saveCellConfig({ configs: { [e]: n } }).catch(ei);
2595
2596
  }, t[9] = e, t[10] = d, t[11] = r, t[12] = p) : p = t[12];
2596
2597
  let m = Ke(p), h;
2597
2598
  return t[13] !== f || t[14] !== m ? (h = [f, m], t[13] = f, t[14] = m, t[15] = h) : h = t[15], h;
@@ -2622,10 +2623,10 @@ function oi(e, t) {
2622
2623
  code: t
2623
2624
  } : e === "sql" ? {
2624
2625
  language: "python",
2625
- code: Te.fromQuery(t)
2626
+ code: Ce.fromQuery(t)
2626
2627
  } : e === "markdown" ? {
2627
2628
  language: "python",
2628
- code: fe.fromMarkdown(t)
2629
+ code: ie.fromMarkdown(t)
2629
2630
  } : e === "shell" || e === "bash" ? {
2630
2631
  language: "python",
2631
2632
  code: `import subprocess\nsubprocess.run("${t}")`
@@ -2638,7 +2639,7 @@ function oi(e, t) {
2638
2639
  };
2639
2640
  }
2640
2641
  var si = (e) => {
2641
- let t = (0, k.c)(9), { code: n, language: r } = e, { createNewCell: i } = ge(), a = se(), s = T(D), c;
2642
+ let t = (0, k.c)(9), { code: n, language: r } = e, { createNewCell: i } = he(), a = oe(), s = T(D), c;
2642
2643
  t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
2643
2644
  let e = oi(r, n);
2644
2645
  r === "sql" && ne({
@@ -2738,7 +2739,7 @@ var si = (e) => {
2738
2739
  children: e
2739
2740
  });
2740
2741
  } }, pi, mi = () => {
2741
- let { data: e } = Xe(async () => pi || (pi = { math: (await import("./dist-BaHjhkpZ.js")).math }, pi), []);
2742
+ let { data: e } = Xe(async () => pi || (pi = { math: (await import("./dist-CcyKTBTF.js")).math }, pi), []);
2742
2743
  return e;
2743
2744
  }, hi = (0, O.memo)((e) => {
2744
2745
  let t = (0, k.c)(3), { content: n } = e, r = mi(), i;
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./src-CA_m4ONl.js";
2
2
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
3
- import { c as n } from "./chunk-DU6HZSFF-BUgAHvnM.js";
4
- import { p as r } from "./mermaid-DPNuhemn.js";
3
+ import { c as n } from "./chunk-DU6HZSFF-1TwWR6gh.js";
4
+ import { p as r } from "./mermaid-Dnzoxjt1.js";
5
5
  import { n as i } from "./mermaid-parser.core-DxuSfYwJ.js";
6
6
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-27XIBGKW.mjs
7
7
  var a = { parse: /* @__PURE__ */ t(async (t) => {
@@ -1,9 +1,9 @@
1
- import { p as e } from "./chunk-75Z2AOVW-5_HsvXwr.js";
1
+ import { p as e } from "./chunk-75Z2AOVW-C4AOleKf.js";
2
2
  import "./src-CA_m4ONl.js";
3
3
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
- import { H as n, K as r, U as i, a, c as o, s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-BUgAHvnM.js";
4
+ import { H as n, K as r, U as i, a, c as o, s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-1TwWR6gh.js";
5
5
  import { t as f } from "./rough.esm-CtV9AnV1.js";
6
- import { p } from "./mermaid-DPNuhemn.js";
6
+ import { p } from "./mermaid-Dnzoxjt1.js";
7
7
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-5VMMS53U.mjs
8
8
  var m = (function() {
9
9
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./arc-7ra3iNdN.js";
2
2
  import { t } from "./src-CA_m4ONl.js";
3
3
  import { n } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
- import { H as r, K as i, U as a, a as o, c as s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-BUgAHvnM.js";
4
+ import { H as r, K as i, U as a, a as o, c as s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-1TwWR6gh.js";
5
5
  import { t as f } from "./chunk-5VM5RSS4-DKsmPCL6.js";
6
- import { a as p, n as m, o as h, s as g } from "./chunk-F27PBJKO-DHmYWZXr.js";
6
+ import { a as p, n as m, o as h, s as g } from "./chunk-F27PBJKO-DMI1PBe4.js";
7
7
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-3NMN7TZE.mjs
8
8
  var _ = (function() {
9
9
  var e = /* @__PURE__ */ n(function(e, t, n, r) {
@@ -1,14 +1,14 @@
1
- import "./chunk-75Z2AOVW-5_HsvXwr.js";
1
+ import "./chunk-75Z2AOVW-C4AOleKf.js";
2
2
  import { n as e } from "./src-CA_m4ONl.js";
3
3
  import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
- import { $ as n, J as r, et as i, f as a, nt as o, x as s, z as c } from "./chunk-DU6HZSFF-BUgAHvnM.js";
5
- import "./chunk-P2QGCYS3-C0iGU29N.js";
6
- import "./chunk-PWAF6VOD-CTFCL0jI.js";
7
- import "./chunk-GMAD6QVW-Czynz8aA.js";
8
- import "./chunk-4HAMMTFA-D2qv8E0X.js";
9
- import { i as l, r as u } from "./chunk-GVQU2GXP-yQEdulRS.js";
10
- import { n as d } from "./chunk-L3NEJ4N5-DwRWnDDK.js";
11
- import { a as f, i as p, p as m } from "./mermaid-DPNuhemn.js";
4
+ import { $ as n, J as r, et as i, f as a, nt as o, x as s, z as c } from "./chunk-DU6HZSFF-1TwWR6gh.js";
5
+ import "./chunk-P2QGCYS3-0TAWai9C.js";
6
+ import "./chunk-PWAF6VOD-lNxB9k8z.js";
7
+ import "./chunk-GMAD6QVW-vStrMz2P.js";
8
+ import "./chunk-4HAMMTFA-BPTTOOC5.js";
9
+ import { i as l, r as u } from "./chunk-GVQU2GXP-2HwWgs4u.js";
10
+ import { n as d } from "./chunk-L3NEJ4N5-RhC7i0I2.js";
11
+ import { a as f, i as p, p as m } from "./mermaid-Dnzoxjt1.js";
12
12
  import { t as h } from "./chunk-5VM5RSS4-DKsmPCL6.js";
13
13
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-UXKFOSKX.mjs
14
14
  var g = (function() {