@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
@@ -2,7 +2,7 @@ import { n as e } from "./ordinal-c7efuCSS.js";
2
2
  import { t } from "./colors-Bf2kJUGb.js";
3
3
  import { t as n } from "./src-CA_m4ONl.js";
4
4
  import { n as r } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
- import { H as i, J as a, K as o, U as s, a as c, d as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-BUgAHvnM.js";
5
+ import { H as i, J as a, K as o, U as s, a as c, d as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-1TwWR6gh.js";
6
6
  //#region ../node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js
7
7
  var h = t("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8
8
  //#endregion
@@ -1,10 +1,10 @@
1
- import { g as e, p as t } from "./chunk-75Z2AOVW-5_HsvXwr.js";
1
+ import { g as e, p as t } from "./chunk-75Z2AOVW-C4AOleKf.js";
2
2
  import { n, t as r } from "./src-CA_m4ONl.js";
3
3
  import { n as i } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
- import { A as a, F as o, G as s, H as c, K as l, O as u, U as d, a as f, b as p, c as m, i as h, r as g, s as _, v, w as y, x as b, y as x, z as S } from "./chunk-DU6HZSFF-BUgAHvnM.js";
4
+ import { A as a, F as o, G as s, H as c, K as l, O as u, U as d, a as f, b as p, c as m, i as h, r as g, s as _, v, w as y, x as b, y as x, z as S } from "./chunk-DU6HZSFF-1TwWR6gh.js";
5
5
  import { t as C } from "./dist-DUAh96QY.js";
6
- import { a as w, i as T } from "./mermaid-DPNuhemn.js";
7
- import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-F27PBJKO-DHmYWZXr.js";
6
+ import { a as w, i as T } from "./mermaid-Dnzoxjt1.js";
7
+ import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-F27PBJKO-DMI1PBe4.js";
8
8
  import { t as M } from "./chunk-2Q5K7J3B-BMkUkeuy.js";
9
9
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WJ2MYXX4.mjs
10
10
  var N = C(), P = (function() {
@@ -1,8 +1,8 @@
1
1
  import { g as e } from "./tooltip-qB8NlSqV.js";
2
2
  import { s as t } from "./useLifecycle-DPgiiwwU.js";
3
- import { i as n, o as r } from "./useDateFormatter-BRTPsUK7.js";
4
- import { C as i } from "./select-C6plhmZr.js";
5
- var a = e("align-center-vertical", [
3
+ import { a as n } from "./useDateFormatter-BXQGu86d.js";
4
+ import { C as r } from "./select-C6plhmZr.js";
5
+ var i = e("align-center-vertical", [
6
6
  ["path", {
7
7
  d: "M12 2v20",
8
8
  key: "t6zp3m"
@@ -23,7 +23,7 @@ var a = e("align-center-vertical", [
23
23
  d: "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",
24
24
  key: "1euafb"
25
25
  }]
26
- ]), o = e("arrow-down-to-line", [
26
+ ]), a = e("arrow-down-to-line", [
27
27
  ["path", {
28
28
  d: "M12 17V3",
29
29
  key: "1cwfxf"
@@ -36,7 +36,7 @@ var a = e("align-center-vertical", [
36
36
  d: "M19 21H5",
37
37
  key: "150jfl"
38
38
  }]
39
- ]), s = e("arrow-up-to-line", [
39
+ ]), o = e("arrow-up-to-line", [
40
40
  ["path", {
41
41
  d: "M5 3h14",
42
42
  key: "7usisc"
@@ -49,7 +49,7 @@ var a = e("align-center-vertical", [
49
49
  d: "M12 7v14",
50
50
  key: "1akyts"
51
51
  }]
52
- ]), c = e("baseline", [
52
+ ]), s = e("baseline", [
53
53
  ["path", {
54
54
  d: "M4 20h16",
55
55
  key: "14thso"
@@ -62,13 +62,13 @@ var a = e("align-center-vertical", [
62
62
  d: "M8 12h8",
63
63
  key: "1wcyev"
64
64
  }]
65
- ]), l = e("chart-area", [["path", {
65
+ ]), c = e("chart-area", [["path", {
66
66
  d: "M3 3v16a2 2 0 0 0 2 2h16",
67
67
  key: "c24i48"
68
68
  }], ["path", {
69
69
  d: "M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",
70
70
  key: "q0gr47"
71
- }]]), u = e("chart-column", [
71
+ }]]), l = e("chart-column", [
72
72
  ["path", {
73
73
  d: "M3 3v16a2 2 0 0 0 2 2h16",
74
74
  key: "c24i48"
@@ -85,13 +85,13 @@ var a = e("align-center-vertical", [
85
85
  d: "M8 17v-3",
86
86
  key: "17ska0"
87
87
  }]
88
- ]), d = e("chart-line", [["path", {
88
+ ]), u = e("chart-line", [["path", {
89
89
  d: "M3 3v16a2 2 0 0 0 2 2h16",
90
90
  key: "c24i48"
91
91
  }], ["path", {
92
92
  d: "m19 9-5 5-4-4-3 3",
93
93
  key: "2osh9i"
94
- }]]), f = e("chart-no-axes-column-increasing", [
94
+ }]]), d = e("chart-no-axes-column-increasing", [
95
95
  ["path", {
96
96
  d: "M5 21v-6",
97
97
  key: "1hz6c0"
@@ -104,7 +104,7 @@ var a = e("align-center-vertical", [
104
104
  d: "M19 21V3",
105
105
  key: "11j9sm"
106
106
  }]
107
- ]), p = e("chart-no-axes-column", [
107
+ ]), f = e("chart-no-axes-column", [
108
108
  ["path", {
109
109
  d: "M5 21v-6",
110
110
  key: "1hz6c0"
@@ -117,7 +117,7 @@ var a = e("align-center-vertical", [
117
117
  d: "M19 21V9",
118
118
  key: "unv183"
119
119
  }]
120
- ]), m = e("chart-scatter", [
120
+ ]), p = e("chart-scatter", [
121
121
  ["circle", {
122
122
  cx: "7.5",
123
123
  cy: "7.5",
@@ -157,7 +157,7 @@ var a = e("align-center-vertical", [
157
157
  d: "M3 3v16a2 2 0 0 0 2 2h16",
158
158
  key: "c24i48"
159
159
  }]
160
- ]), h = e("ruler-dimension-line", [
160
+ ]), m = e("ruler-dimension-line", [
161
161
  ["path", {
162
162
  d: "M10 15v-3",
163
163
  key: "1pjskw"
@@ -194,10 +194,10 @@ var a = e("align-center-vertical", [
194
194
  rx: "2",
195
195
  key: "1tqiko"
196
196
  }]
197
- ]), g = e("sigma", [["path", {
197
+ ]), h = e("sigma", [["path", {
198
198
  d: "M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",
199
199
  key: "wuwx1p"
200
- }]]), _ = e("square-function", [
200
+ }]]), g = e("square-function", [
201
201
  ["rect", {
202
202
  width: "18",
203
203
  height: "18",
@@ -215,6 +215,27 @@ var a = e("align-center-vertical", [
215
215
  d: "M9 11.2h5.7",
216
216
  key: "3zgcl2"
217
217
  }]
218
+ ]), _ = e("table", [
219
+ ["path", {
220
+ d: "M12 3v18",
221
+ key: "108xh3"
222
+ }],
223
+ ["rect", {
224
+ width: "18",
225
+ height: "18",
226
+ x: "3",
227
+ y: "3",
228
+ rx: "2",
229
+ key: "afitv7"
230
+ }],
231
+ ["path", {
232
+ d: "M3 9h18",
233
+ key: "1pudct"
234
+ }],
235
+ ["path", {
236
+ d: "M3 15h18",
237
+ key: "5xshup"
238
+ }]
218
239
  ]);
219
240
  //#endregion
220
241
  //#region src/components/data-table/charts/chart-spec/utils.ts
@@ -223,29 +244,29 @@ function v(e) {
223
244
  }
224
245
  //#endregion
225
246
  //#region src/components/data-table/charts/constants.ts
226
- var y = "__count__", b = "default", x = "yearmonthdate", ee = {
227
- line: d,
228
- bar: f,
229
- pie: r,
230
- scatter: m,
231
- heatmap: n,
232
- area: l
233
- }, S = "mean", C = {
234
- none: _,
247
+ var y = "__count__", b = "default", ee = "yearmonthdate", x = {
248
+ line: u,
249
+ bar: d,
250
+ pie: n,
251
+ scatter: p,
252
+ heatmap: _,
253
+ area: c
254
+ }, S = "mean", te = {
255
+ none: g,
235
256
  count: t,
236
- sum: g,
237
- mean: c,
238
- median: a,
239
- min: o,
240
- max: s,
257
+ sum: h,
258
+ mean: s,
259
+ median: i,
260
+ min: a,
261
+ max: o,
241
262
  distinct: t,
242
263
  valid: t,
243
- stdev: p,
244
- stdevp: p,
245
- variance: u,
246
- variancep: u,
247
- bin: h
248
- }, te = {
264
+ stdev: f,
265
+ stdevp: f,
266
+ variance: l,
267
+ variancep: l,
268
+ bin: m
269
+ }, ne = {
249
270
  none: "No aggregation",
250
271
  count: "Count of records",
251
272
  sum: "Sum of values",
@@ -260,7 +281,7 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
260
281
  variance: "Variance",
261
282
  variancep: "Variance of population",
262
283
  bin: "Group values into bins"
263
- }, ne = [
284
+ }, re = [
264
285
  b,
265
286
  "accent",
266
287
  "category10",
@@ -306,11 +327,11 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
306
327
  "spectral",
307
328
  "rainbow",
308
329
  "sinebow"
309
- ], re = {
330
+ ], C = {
310
331
  number: "Continuous numerical scale",
311
332
  string: "Discrete categorical scale (inputs treated as strings)",
312
333
  temporal: "Continuous temporal scale"
313
- }, ie = {
334
+ }, w = {
314
335
  year: ["Year", "2025"],
315
336
  quarter: ["Quarter", "Q1 2025"],
316
337
  month: ["Month", "Jan 2025"],
@@ -325,11 +346,11 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
325
346
  yearmonth: ["Year Month", "Jan 2025"],
326
347
  yearmonthdate: ["Year Month Date", "Jan 01, 2025"],
327
348
  monthdate: ["Month Date", "Jan 01"]
328
- }, w = [
349
+ }, T = [
329
350
  "number",
330
351
  "string",
331
352
  "temporal"
332
- ], T = [
353
+ ], E = [
333
354
  "year",
334
355
  "quarter",
335
356
  "month",
@@ -341,14 +362,14 @@ var y = "__count__", b = "default", x = "yearmonthdate", ee = {
341
362
  "minutes",
342
363
  "seconds",
343
364
  "milliseconds"
344
- ], E = [
365
+ ], D = [
345
366
  "yearmonth",
346
367
  "yearmonthdate",
347
368
  "monthdate"
348
- ], D = [...T, ...E];
349
- [...D];
350
- var O = ["ascending", "descending"], k = "none", A = [
351
- k,
369
+ ], O = [...E, ...D];
370
+ [...O];
371
+ var k = ["ascending", "descending"], A = "none", j = [
372
+ A,
352
373
  "bin",
353
374
  "count",
354
375
  "sum",
@@ -362,27 +383,27 @@ var O = ["ascending", "descending"], k = "none", A = [
362
383
  "stdevp",
363
384
  "variance",
364
385
  "variancep"
365
- ], j = [
366
- k,
386
+ ], M = [
387
+ A,
367
388
  "count",
368
389
  "distinct",
369
390
  "valid"
370
- ], M = {
391
+ ], N = {
371
392
  LINE: "line",
372
393
  BAR: "bar",
373
394
  PIE: "pie",
374
395
  SCATTER: "scatter",
375
396
  HEATMAP: "heatmap",
376
397
  AREA: "area"
377
- }, N = Object.values(M), ae = [
398
+ }, P = Object.values(N), ie = [
378
399
  "X",
379
400
  "Y",
380
401
  "Color",
381
- k
402
+ A
382
403
  ];
383
404
  //#endregion
384
405
  //#region src/components/data-table/charts/chart-spec/types.ts
385
- function P(e) {
406
+ function F(e) {
386
407
  switch (e) {
387
408
  case "number":
388
409
  case "integer": return "quantitative";
@@ -394,10 +415,10 @@ function P(e) {
394
415
  case "datetime":
395
416
  case "time":
396
417
  case "temporal": return "temporal";
397
- default: return i(e), "nominal";
418
+ default: return r(e), "nominal";
398
419
  }
399
420
  }
400
- function F(e) {
421
+ function I(e) {
401
422
  switch (e) {
402
423
  case "number":
403
424
  case "integer": return "number";
@@ -408,34 +429,34 @@ function F(e) {
408
429
  case "date":
409
430
  case "datetime":
410
431
  case "time": return "temporal";
411
- default: return i(e), "string";
432
+ default: return r(e), "string";
412
433
  }
413
434
  }
414
- function I(e) {
435
+ function L(e) {
415
436
  switch (e) {
416
- case M.PIE: return "arc";
417
- case M.SCATTER: return "point";
418
- case M.HEATMAP: return "rect";
437
+ case N.PIE: return "arc";
438
+ case N.SCATTER: return "point";
439
+ case N.HEATMAP: return "rect";
419
440
  default: return e;
420
441
  }
421
442
  }
422
443
  //#endregion
423
444
  //#region src/components/data-table/charts/chart-spec/encodings.ts
424
- function L(e, t, n, r) {
425
- if (e === M.HEATMAP) return n?.maxbins ? { maxbins: n?.maxbins } : void 0;
445
+ function R(e, t, n, r) {
446
+ if (e === N.HEATMAP) return n?.maxbins ? { maxbins: n?.maxbins } : void 0;
426
447
  if (t !== "number") return;
427
448
  if (!n?.binned) return r;
428
449
  let i = {};
429
450
  return n.step !== void 0 && (i.step = n.step), n.maxbins !== void 0 && (i.maxbins = n.maxbins), Object.keys(i).length === 0 || i;
430
451
  }
431
- function R(e) {
452
+ function z(e) {
432
453
  let t = e.color?.range;
433
454
  if (t?.length) return { range: t };
434
455
  let n = e.color?.scheme;
435
456
  if (n && n !== "default") return { scheme: n };
436
457
  }
437
- function z(e, t) {
438
- if (e === M.PIE) return;
458
+ function B(e, t) {
459
+ if (e === N.PIE) return;
439
460
  let n;
440
461
  if (Q(t.general?.colorByColumn?.field)) n = t.general?.colorByColumn;
441
462
  else if (Q(t.color?.field)) switch (t.color?.field) {
@@ -459,28 +480,28 @@ function z(e, t) {
459
480
  let r = t.color?.bin, i = n.selectedDataType || "string", a = n?.aggregate;
460
481
  return {
461
482
  field: v(n.field),
462
- type: P(i),
463
- scale: R(t),
464
- aggregate: V(a, i),
465
- bin: L(e, i, r)
483
+ type: F(i),
484
+ scale: z(t),
485
+ aggregate: H(a, i),
486
+ bin: R(e, i, r)
466
487
  };
467
488
  }
468
- function B(e, t) {
469
- if (!(t.general?.stacking || !Q(t.general?.colorByColumn?.field) || e !== M.BAR)) return { field: v(t.general?.colorByColumn?.field) };
489
+ function V(e, t) {
490
+ if (!(t.general?.stacking || !Q(t.general?.colorByColumn?.field) || e !== N.BAR)) return { field: v(t.general?.colorByColumn?.field) };
470
491
  }
471
- function V(e, t, n) {
472
- if (t !== "temporal" && e !== "none" && e !== "bin") return e ? t === "string" ? j.includes(e) ? e : void 0 : e : n || void 0;
492
+ function H(e, t, n) {
493
+ if (t !== "temporal" && e !== "none" && e !== "bin") return e ? t === "string" ? M.includes(e) ? e : void 0 : e : n || void 0;
473
494
  }
474
495
  //#endregion
475
496
  //#region src/components/data-table/charts/chart-spec/tooltips.ts
476
- function H(e) {
497
+ function U(e) {
477
498
  switch (e) {
478
499
  case "integer": return ",.0f";
479
500
  case "number": return ",.2f";
480
501
  default: return;
481
502
  }
482
503
  }
483
- function U(e) {
504
+ function W(e) {
484
505
  let { formValues: t, xEncoding: n, yEncoding: r, colorByEncoding: i } = e;
485
506
  if (!t.tooltips) return;
486
507
  function a(e, t, n) {
@@ -489,7 +510,7 @@ function U(e) {
489
510
  field: e.field,
490
511
  aggregate: e.aggregate,
491
512
  timeUnit: e.timeUnit,
492
- format: H(t),
513
+ format: U(t),
493
514
  title: n,
494
515
  bin: e.bin
495
516
  };
@@ -526,20 +547,20 @@ function U(e) {
526
547
  }
527
548
  //#endregion
528
549
  //#region src/components/data-table/charts/chart-spec/spec.ts
529
- var W = "X-axis column is required", G = "Y-axis column is required";
530
- function K(e, t, n, r, i) {
550
+ var G = "X-axis column is required", K = "Y-axis column is required";
551
+ function q(e, t, n, r, i) {
531
552
  let { xColumn: a, yColumn: o, colorByColumn: s, horizontal: c, stacking: l, title: u, facet: d } = t.general ?? {};
532
- if (e === M.PIE) return X(t, n, r, i);
533
- if (!Q(a?.field)) return W;
534
- if (!Q(o?.field)) return G;
535
- let f = J(a, t.xAxis?.bin, $(t.xAxis?.label), s?.field && c ? l : void 0, e), p = S;
553
+ if (e === N.PIE) return ae(t, n, r, i);
554
+ if (!Q(a?.field)) return G;
555
+ if (!Q(o?.field)) return K;
556
+ let f = Y(a, t.xAxis?.bin, $(t.xAxis?.label), s?.field && c ? l : void 0, e), p = S;
536
557
  o?.selectedDataType === "string" && (p = "count");
537
- let m = J(o, t.yAxis?.bin, $(t.yAxis?.label), s?.field && !c ? l : void 0, e, p), h = d?.row.field ? Y(d.row, e) : void 0, g = d?.column.field ? Y(d.column, e) : void 0, _ = z(e, t), v = Z(e, t, n, r, i, u), y = {
558
+ let m = Y(o, t.yAxis?.bin, $(t.yAxis?.label), s?.field && !c ? l : void 0, e, p), h = d?.row.field ? X(d.row, e) : void 0, g = d?.column.field ? X(d.column, e) : void 0, _ = B(e, t), v = Z(e, t, n, r, i, u), y = {
538
559
  x: c ? m : f,
539
560
  y: c ? f : m,
540
- xOffset: B(e, t),
561
+ xOffset: V(e, t),
541
562
  color: _,
542
- tooltip: U({
563
+ tooltip: W({
543
564
  formValues: t,
544
565
  xEncoding: f,
545
566
  yEncoding: m,
@@ -550,38 +571,38 @@ function K(e, t, n, r, i) {
550
571
  }, b = ce(d?.column, d?.row);
551
572
  return {
552
573
  ...v,
553
- mark: { type: I(e) },
574
+ mark: { type: L(e) },
554
575
  encoding: y,
555
576
  ...b
556
577
  };
557
578
  }
558
- function q(e, t) {
579
+ function J(e, t) {
559
580
  return {
560
581
  ...e,
561
582
  data: { values: t }
562
583
  };
563
584
  }
564
- function J(e, t, n, r, i, a) {
585
+ function Y(e, t, n, r, i, a) {
565
586
  let o = e.selectedDataType || "string";
566
587
  return e.field === "__count__" ? {
567
588
  aggregate: "count",
568
589
  type: "quantitative",
569
- bin: L(i, o, t),
590
+ bin: R(i, o, t),
570
591
  title: n === "__count__" ? void 0 : n,
571
592
  stack: r
572
593
  } : {
573
594
  field: v(e.field),
574
- type: P(e.selectedDataType || "unknown"),
575
- bin: L(i, o, t),
595
+ type: F(e.selectedDataType || "unknown"),
596
+ bin: R(i, o, t),
576
597
  title: n,
577
598
  stack: r,
578
- aggregate: V(e.aggregate, o, a),
599
+ aggregate: H(e.aggregate, o, a),
579
600
  sort: e.sort,
580
601
  timeUnit: oe(e)
581
602
  };
582
603
  }
583
- function Y(e, t) {
584
- let n = L(t, e.selectedDataType || "string", {
604
+ function X(e, t) {
605
+ let n = R(t, e.selectedDataType || "string", {
585
606
  maxbins: e.maxbins,
586
607
  binned: e.binned
587
608
  }, { maxbins: 6 });
@@ -589,30 +610,30 @@ function Y(e, t) {
589
610
  field: v(e.field),
590
611
  sort: e.sort,
591
612
  timeUnit: se(e),
592
- type: P(e.selectedDataType || "unknown"),
613
+ type: F(e.selectedDataType || "unknown"),
593
614
  bin: n
594
615
  };
595
616
  }
596
- function X(e, t, n, r) {
617
+ function ae(e, t, n, r) {
597
618
  let { yColumn: i, colorByColumn: a, title: o } = e.general ?? {};
598
619
  if (!Q(a?.field)) return "Color by column is required";
599
620
  if (!Q(i?.field)) return "Size by column is required";
600
- let s = J(i, e.xAxis?.bin, $(e.xAxis?.label), void 0, M.PIE), c = {
621
+ let s = Y(i, e.xAxis?.bin, $(e.xAxis?.label), void 0, N.PIE), c = {
601
622
  field: v(a.field),
602
- type: P(a.selectedDataType || "unknown"),
603
- scale: R(e),
623
+ type: F(a.selectedDataType || "unknown"),
624
+ scale: z(e),
604
625
  title: $(e.yAxis?.label)
605
626
  };
606
627
  return {
607
- ...Z(M.PIE, e, t, n, r, o),
628
+ ...Z(N.PIE, e, t, n, r, o),
608
629
  mark: {
609
- type: I(M.PIE),
630
+ type: L(N.PIE),
610
631
  innerRadius: e.style?.innerRadius
611
632
  },
612
633
  encoding: {
613
634
  theta: s,
614
635
  color: c,
615
- tooltip: U({
636
+ tooltip: W({
616
637
  formValues: e,
617
638
  xEncoding: s,
618
639
  yEncoding: s,
@@ -623,7 +644,7 @@ function X(e, t, n, r) {
623
644
  }
624
645
  function Z(e, t, n, r, i, a) {
625
646
  let o = t.style?.gridLines ?? !1;
626
- return e === M.SCATTER && (o = !0), {
647
+ return e === N.SCATTER && (o = !0), {
627
648
  $schema: "https://vega.github.io/schema/vega-lite/v6.json",
628
649
  background: n === "dark" ? "dark" : "white",
629
650
  title: a,
@@ -651,4 +672,4 @@ function ce(e, t) {
651
672
  return e?.linkXAxis === !1 && (n.x = "independent"), t?.linkYAxis === !1 && (n.y = "independent"), Object.keys(n).length > 0 ? { resolve: { axis: n } } : void 0;
652
673
  }
653
674
  //#endregion
654
- export { x as C, _ as D, v as E, u as O, b as S, ie as T, C as _, A as a, y as b, E as c, w as d, T as f, te as g, D as h, F as i, M as l, j as m, K as n, N as o, O as p, Q as r, ae as s, q as t, k as u, ee as v, re as w, S as x, ne as y };
675
+ export { ee as C, g as D, v as E, l as O, b as S, w as T, te as _, j as a, y as b, D as c, T as d, E as f, ne as g, O as h, I as i, N as l, M as m, q as n, P as o, k as p, Q as r, ie as s, J as t, A as u, x as v, C as w, S as x, re as y };
@@ -1,22 +1,22 @@
1
1
  import { t as e } from "./dagre-BGSfXNEb.js";
2
2
  import { t } from "./graphlib-BmY_CCV9.js";
3
3
  import { K as n, q as r } from "./cubic-OaEBhQPK.js";
4
- import { g as i } from "./chunk-75Z2AOVW-5_HsvXwr.js";
4
+ import { g as i } from "./chunk-75Z2AOVW-C4AOleKf.js";
5
5
  import { n as a, t as o } from "./src-CA_m4ONl.js";
6
6
  import { n as s } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
7
- import { O as c, c as l, s as u, x as d } from "./chunk-DU6HZSFF-BUgAHvnM.js";
8
- import "./chunk-P2QGCYS3-C0iGU29N.js";
9
- import "./chunk-PWAF6VOD-CTFCL0jI.js";
10
- import "./chunk-GMAD6QVW-Czynz8aA.js";
11
- import "./chunk-4HAMMTFA-D2qv8E0X.js";
12
- import "./chunk-GVQU2GXP-yQEdulRS.js";
13
- import "./chunk-L3NEJ4N5-DwRWnDDK.js";
14
- import "./chunk-OSK3NFVY-BBKU_Ign.js";
15
- import "./mermaid-DPNuhemn.js";
16
- import "./chunk-F27PBJKO-DHmYWZXr.js";
7
+ import { O as c, c as l, s as u, x as d } from "./chunk-DU6HZSFF-1TwWR6gh.js";
8
+ import "./chunk-P2QGCYS3-0TAWai9C.js";
9
+ import "./chunk-PWAF6VOD-lNxB9k8z.js";
10
+ import "./chunk-GMAD6QVW-vStrMz2P.js";
11
+ import "./chunk-4HAMMTFA-BPTTOOC5.js";
12
+ import "./chunk-GVQU2GXP-2HwWgs4u.js";
13
+ import "./chunk-L3NEJ4N5-RhC7i0I2.js";
14
+ import "./chunk-OSK3NFVY-CZV09N-U.js";
15
+ import "./mermaid-Dnzoxjt1.js";
16
+ import "./chunk-F27PBJKO-DMI1PBe4.js";
17
17
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
18
- import "./chunk-POPQ4Y6H-BCbS3Ozc.js";
19
- import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-BfwTebD0.js";
18
+ import "./chunk-POPQ4Y6H-Cc3_56GX.js";
19
+ import { i as f, n as p, t as m } from "./chunk-IMKFNOWR-UOVZuZVn.js";
20
20
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-D77RDMKH.mjs
21
21
  var h = /* @__PURE__ */ s((e) => e.append("circle").attr("class", "start-state").attr("r", d().state.sizeUnit).attr("cx", d().state.padding + d().state.sizeUnit).attr("cy", d().state.padding + d().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ s((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", d().state.textHeight).attr("class", "divider").attr("x2", d().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ s((e, t) => {
22
22
  let n = e.append("text").attr("x", 2 * d().state.padding).attr("y", d().state.textHeight + 2 * d().state.padding).attr("font-size", d().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
@@ -0,0 +1,30 @@
1
+ import "./chunk-75Z2AOVW-C4AOleKf.js";
2
+ import "./src-CA_m4ONl.js";
3
+ import { n as e } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
4
+ import "./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 "./chunk-GVQU2GXP-2HwWgs4u.js";
10
+ import "./chunk-L3NEJ4N5-RhC7i0I2.js";
11
+ import "./chunk-OSK3NFVY-CZV09N-U.js";
12
+ import "./mermaid-Dnzoxjt1.js";
13
+ import "./chunk-F27PBJKO-DMI1PBe4.js";
14
+ import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
+ import "./chunk-POPQ4Y6H-Cc3_56GX.js";
16
+ import { i as t, n, r, t as i } from "./chunk-IMKFNOWR-UOVZuZVn.js";
17
+ //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-MP3YSRHH.mjs
18
+ var a = {
19
+ parser: n,
20
+ get db() {
21
+ return new i(2);
22
+ },
23
+ renderer: r,
24
+ styles: t,
25
+ init: /* @__PURE__ */ e((e) => {
26
+ e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
27
+ }, "init")
28
+ };
29
+ //#endregion
30
+ export { a as diagram };