@marimo-team/islands 0.25.3-dev266 → 0.25.3-dev268

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 (184) hide show
  1. package/dist/{ConnectedDataExplorerComponent-C_hj7Poi.js → ConnectedDataExplorerComponent-eLHPh6uu.js} +9 -9
  2. package/dist/{ErrorBoundary-CvxlC3F1.js → ErrorBoundary-CQYAoD7X.js} +64 -69
  3. package/dist/{abnfDiagram-VCTEODGH-DzrZZXRD.js → abnfDiagram-VCTEODGH-hqd0IBtX.js} +2 -2
  4. package/dist/{any-language-editor-CFeWfC3o.js → any-language-editor-DnG26QXh.js} +1 -1
  5. package/dist/{architectureDiagram-5GKGNRK7-iF_snyFL.js → architectureDiagram-5GKGNRK7-BzLAFcc0.js} +1 -1
  6. package/dist/{strings-BCKpLFNU.js → assertNever-DIU3JJbt.js} +14 -14
  7. package/dist/{chat-ui-DFxNgzXF.js → chat-ui-BAnLgpTe.js} +1964 -1740
  8. package/dist/{chunk-IMKFNOWR-B7xytD4B.js → chunk-IMKFNOWR-DOeVvuyE.js} +1 -1
  9. package/dist/{chunk-SHT3W25Y-I8ZFP5L1.js → chunk-SHT3W25Y-DZoFI8wR.js} +1 -1
  10. package/dist/{chunk-SVP7TREG-Di-uAPdT.js → chunk-SVP7TREG-CWu86PSW.js} +1 -1
  11. package/dist/{chunk-TICWLB2K-BFpUy0ud.js → chunk-TICWLB2K-BrM0GoP3.js} +1 -1
  12. package/dist/{classDiagram-ZZMXUADV-Cqm4JGpx.js → classDiagram-ZZMXUADV-DYi4V2bB.js} +2 -2
  13. package/dist/{classDiagram-v2-VYDZK3BY-DFHRJpN3.js → classDiagram-v2-VYDZK3BY-tN7FIk-m.js} +2 -2
  14. package/dist/{code-visibility-SRM1JiD_.js → code-visibility-DcZ_RwaH.js} +44 -47
  15. package/dist/{common-yiRhZ6ZZ.js → common-BGeQilvh.js} +5846 -5519
  16. package/dist/{config-CmeG_Pb6.js → config-BsPruWMR.js} +2 -2
  17. package/dist/{createReducer-C_syF8Td.js → createReducer-DdtT_7ji.js} +1 -1
  18. package/dist/{cynefinDiagram-5FMLGOSQ-cuGOeTBC.js → cynefinDiagram-5FMLGOSQ-D5nCnDc-.js} +1 -1
  19. package/dist/{dagre-GXQ25YYZ-DJ76aC4k.js → dagre-GXQ25YYZ-BHkd7f_i.js} +1 -1
  20. package/dist/{data-grid-overlay-editor-DLTzcQ4O.js → data-grid-overlay-editor-Dc4lW4A3.js} +1 -1
  21. package/dist/{diagram-S7CK7UJ4-DLLc0sw7.js → diagram-S7CK7UJ4-D1ALppT2.js} +1 -1
  22. package/dist/{diagram-UQ7AKVKN-Tz_d6qmk.js → diagram-UQ7AKVKN-DLv0b83L.js} +1 -1
  23. package/dist/{diagram-VX7I27RA-D7SzPrDN.js → diagram-VX7I27RA-7XJ7J6qg.js} +1 -1
  24. package/dist/{diagram-Z3DM3KII-qr37XV58.js → diagram-Z3DM3KII-7M7zbHp_.js} +1 -1
  25. package/dist/{dialog-BtprQCUw.js → dialog-DzCj1qQv.js} +1 -1
  26. package/dist/{dropdown-menu-CkJ7ErY6.js → dropdown-menu-CdXE15an.js} +1214 -1208
  27. package/dist/{ebnfDiagram-PWID7BFC-BKOQb4J0.js → ebnfDiagram-PWID7BFC-DHH1qlmV.js} +2 -2
  28. package/dist/{erDiagram-RLTQ6QDP-CM15Vq68.js → erDiagram-RLTQ6QDP-fI_0dGef.js} +1 -1
  29. package/dist/{error-banner-DbRFOd2O.js → error-banner-DPc9eIw5.js} +3 -3
  30. package/dist/{error-entries-CMoaUX9V.js → error-entries-CxN-Nq3V.js} +524 -456
  31. package/dist/{feedback-button-DBUrE4OL.js → feedback-button-BqaeQcvX.js} +77 -77
  32. package/dist/{flowDiagram-HODETNUW-Dt3N5yFT.js → flowDiagram-HODETNUW-Brg9MA6i.js} +2 -2
  33. package/dist/{formats-gGospKWJ.js → formats-DbSvAPY-.js} +1 -1
  34. package/dist/{glide-data-editor-Cfv4HeOh.js → glide-data-editor-CiijPXA7.js} +2042 -2041
  35. package/dist/{glide-utils-Ba9WD2IN.js → glide-utils-BSw3SSHF.js} +29 -35
  36. package/dist/{globals-dIbBIR5-.js → globals-CpmSWKI_.js} +2 -2
  37. package/dist/{html-to-image-D_5CMreP.js → html-to-image-8sywF4my.js} +5452 -5751
  38. package/dist/{infoDiagram-27XIBGKW-C7axJMCl.js → infoDiagram-27XIBGKW-E9e403YT.js} +1 -1
  39. package/dist/{ishikawaDiagram-5VMMS53U-CdC9Eur7.js → ishikawaDiagram-5VMMS53U-C-RlYDRo.js} +1 -1
  40. package/dist/{kanban-definition-UXKFOSKX-BHnMIgD7.js → kanban-definition-UXKFOSKX-CLFl_uqK.js} +1 -1
  41. package/dist/main.js +6294 -6324
  42. package/dist/{mermaid-DFYN_PXd.js → mermaid-rd09e1JL.js} +35 -35
  43. package/dist/{mindmap-definition-YA3MSWOX-BagHoCGU.js → mindmap-definition-YA3MSWOX-BQ8TWtyB.js} +1 -1
  44. package/dist/{number-overlay-editor-CTiJp5Mj.js → number-overlay-editor-Ft4NiAEN.js} +1 -1
  45. package/dist/{pegDiagram-XKGWAZYB-8IIZczip.js → pegDiagram-XKGWAZYB-CN8UHFPi.js} +2 -2
  46. package/dist/pencil-DcT8AE0h.js +10 -0
  47. package/dist/{pieDiagram-E7YTZNPT-CE6dKBIr.js → pieDiagram-E7YTZNPT-DGuJ0EBd.js} +1 -1
  48. package/dist/{process-output-CGFNVC60.js → process-output-Dku5POvm.js} +3 -3
  49. package/dist/{railroadDiagram-O6MQD6OU-CkexPq3b.js → railroadDiagram-O6MQD6OU-BPDA8wy8.js} +2 -2
  50. package/dist/{requirementDiagram-BXWQKSXE-B0-OkuAe.js → requirementDiagram-BXWQKSXE-ChzLGbGW.js} +1 -1
  51. package/dist/{reveal-component-DH09ygHo.js → reveal-component-D0cfwbbl.js} +1094 -1094
  52. package/dist/{select-C33FVPPN.js → select-OxgozOC8.js} +1 -1
  53. package/dist/{sequenceDiagram-WJ2MYXX4-Dxysg8DX.js → sequenceDiagram-WJ2MYXX4-DFX-bE6O.js} +1 -1
  54. package/dist/{spec-DH1lmF7Q.js → spec-oJn0RhpQ.js} +2 -2
  55. package/dist/{stateDiagram-D77RDMKH-DTEN3-OJ.js → stateDiagram-D77RDMKH-BR7cI3wK.js} +2 -2
  56. package/dist/{stateDiagram-v2-MP3YSRHH-vktk3Xc5.js → stateDiagram-v2-MP3YSRHH-oGqB5UDI.js} +2 -2
  57. package/dist/{static-state-BldGd99T.js → static-state-CuV6Pc3a.js} +1 -1
  58. package/dist/style.css +1 -1
  59. package/dist/{swimlanes-42K2YHIH-Cjveh9OM.js → swimlanes-42K2YHIH-DwSZl1yC.js} +1 -1
  60. package/dist/{swimlanesDiagram-VR7AAH4N-Bdr7Ev_2.js → swimlanesDiagram-VR7AAH4N-BHlcd-Ri.js} +2 -2
  61. package/dist/{timeline-definition-24CTP7MA-KIuDcefn.js → timeline-definition-24CTP7MA-DMmP-G2O.js} +1 -1
  62. package/dist/{toast-CY1_Qv41.js → toast-DbBHmxmB.js} +2 -2
  63. package/dist/{useAsyncData-DsZMvNXn.js → useAsyncData-BYIAoMqn.js} +1 -1
  64. package/dist/{useDateFormatter-Dk_xFci4.js → useDateFormatter-ButWkdcK.js} +1 -1
  65. package/dist/{useDeepCompareMemoize-KMBBux8C.js → useDeepCompareMemoize-Bz0c5GN6.js} +1 -1
  66. package/dist/{useTheme-BZ2GGLgm.js → useTheme-DPLobSFs.js} +7 -7
  67. package/dist/{utils-DXkj82sK.js → utils-EBklsC5R.js} +31 -31
  68. package/dist/{vega-component-C-lqjV0q.js → vega-component-rxIxAAh9.js} +7 -7
  69. package/dist/{vennDiagram-4TSXK5OY-DrIOUHfb.js → vennDiagram-4TSXK5OY-Db8GtH1G.js} +1 -1
  70. package/dist/{wardleyDiagram-VM6X3IG4-CJNjf4OH.js → wardleyDiagram-VM6X3IG4-DmIiC3FU.js} +1 -1
  71. package/dist/{xychartDiagram-S5SC5T6Z-DEshFho-.js → xychartDiagram-S5SC5T6Z-DS9OPrNq.js} +1 -1
  72. package/package.json +1 -1
  73. package/src/__mocks__/executions.ts +195 -0
  74. package/src/__mocks__/notebook.ts +0 -1
  75. package/src/__tests__/CellStatus.test.tsx +19 -20
  76. package/src/components/chat/__tests__/chat-display.test.tsx +157 -86
  77. package/src/components/chat/__tests__/chat-utils.test.ts +42 -0
  78. package/src/components/chat/__tests__/turn-timing.test.ts +84 -0
  79. package/src/components/chat/__tests__/use-assistant-turn.test.ts +95 -0
  80. package/src/components/chat/__tests__/user-message.test.tsx +27 -0
  81. package/src/components/chat/acp/agent-panel.tsx +2 -0
  82. package/src/components/chat/agent-activity.tsx +132 -0
  83. package/src/components/chat/chat-display.tsx +125 -96
  84. package/src/components/chat/chat-panel.tsx +123 -106
  85. package/src/components/chat/chat-utils.ts +12 -24
  86. package/src/components/chat/tool-call/__tests__/tool-labels.test.ts +76 -0
  87. package/src/components/chat/tool-call/__tests__/tool-step.test.tsx +57 -0
  88. package/src/components/chat/tool-call/shared.ts +6 -0
  89. package/src/components/chat/tool-call/tool-call-view.tsx +22 -76
  90. package/src/components/chat/tool-call/tool-labels.ts +172 -0
  91. package/src/components/chat/tool-call/tool-step.tsx +145 -0
  92. package/src/components/chat/turn-timing.ts +73 -0
  93. package/src/components/chat/use-assistant-turn.ts +65 -0
  94. package/src/components/chat/use-chat-generation.ts +5 -4
  95. package/src/components/chat/user-message.tsx +145 -0
  96. package/src/components/dependency-graph/minimap-content.tsx +3 -2
  97. package/src/components/editor/__tests__/data-attributes.test.tsx +0 -7
  98. package/src/components/editor/__tests__/output-persistence.test.tsx +2 -2
  99. package/src/components/editor/actions/__tests__/useCellActionButton.test.tsx +19 -1
  100. package/src/components/editor/actions/useCellActionButton.tsx +10 -3
  101. package/src/components/editor/ai/completion-handlers.tsx +0 -37
  102. package/src/components/editor/alerts/stdin-blocking-alert.tsx +3 -1
  103. package/src/components/editor/cell/CellStatus.tsx +23 -19
  104. package/src/components/editor/cell/RunButton.tsx +16 -6
  105. package/src/components/editor/cell/StagedAICell.tsx +51 -144
  106. package/src/components/editor/cell/__tests__/useRunCells.test.ts +45 -0
  107. package/src/components/editor/cell/cell-context-menu.tsx +4 -1
  108. package/src/components/editor/cell/code/cell-editor.tsx +7 -5
  109. package/src/components/editor/cell/collapse.tsx +4 -0
  110. package/src/components/editor/cell/useRunCells.ts +18 -3
  111. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +193 -32
  112. package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -2
  113. package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +145 -81
  114. package/src/components/editor/chrome/wrapper/pending-ai-changes-badge.tsx +25 -0
  115. package/src/components/editor/chrome/wrapper/sidebar.tsx +8 -4
  116. package/src/components/editor/header/status.tsx +4 -2
  117. package/src/components/editor/links/cell-link.tsx +4 -4
  118. package/src/components/editor/navigation/navigation.ts +3 -2
  119. package/src/components/editor/notebook-cell.tsx +85 -94
  120. package/src/components/editor/renderers/grid-layout/__tests__/grid-layout.test.tsx +75 -0
  121. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +22 -16
  122. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
  123. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -33
  124. package/src/components/editor/stdin-blocking-alert.tsx +3 -1
  125. package/src/components/scratchpad/scratchpad.tsx +4 -1
  126. package/src/components/slides/minimap.tsx +4 -2
  127. package/src/components/slides/reveal-component.tsx +14 -10
  128. package/src/components/slides/slide-cell-view.tsx +28 -24
  129. package/src/components/slides/slide.tsx +3 -4
  130. package/src/components/ui/toast.tsx +1 -1
  131. package/src/core/ai/__tests__/staged-cells.test.ts +74 -126
  132. package/src/core/ai/staged-cells.ts +48 -38
  133. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -389
  134. package/src/core/cells/__tests__/cell.test.ts +49 -154
  135. package/src/core/cells/__tests__/cells.test.ts +18 -127
  136. package/src/core/cells/__tests__/pending-delete-service.test.tsx +11 -20
  137. package/src/core/cells/__tests__/utils.test.ts +75 -247
  138. package/src/core/cells/actions.ts +5 -2
  139. package/src/core/cells/cell.ts +31 -133
  140. package/src/core/cells/cells.ts +14 -29
  141. package/src/core/cells/document.ts +3 -3
  142. package/src/core/cells/focus.ts +27 -6
  143. package/src/core/cells/layout.ts +1 -1
  144. package/src/core/cells/pending-delete-service.ts +5 -7
  145. package/src/core/cells/scrollCellIntoView.ts +6 -0
  146. package/src/core/cells/types.ts +13 -36
  147. package/src/core/cells/utils.ts +37 -68
  148. package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +59 -0
  149. package/src/core/codemirror/placeholder/extensions.ts +23 -0
  150. package/src/core/edit-app.tsx +2 -1
  151. package/src/core/executions/__tests__/atoms.test.ts +99 -0
  152. package/src/core/executions/__tests__/select.test.ts +268 -0
  153. package/src/core/executions/atoms.ts +206 -0
  154. package/src/core/executions/hooks.ts +31 -0
  155. package/src/core/executions/index.ts +31 -0
  156. package/src/core/executions/select.ts +175 -0
  157. package/src/core/export/__tests__/hooks.test.ts +0 -5
  158. package/src/core/islands/bootstrap.ts +4 -1
  159. package/src/core/islands/components/output-wrapper.tsx +5 -5
  160. package/src/core/kernel/handlers.ts +2 -11
  161. package/src/core/kernel/state.ts +0 -15
  162. package/src/core/lifecycle/render-policy.ts +12 -26
  163. package/src/core/network/__tests__/requests-lazy.test.ts +5 -5
  164. package/src/core/network/requests-lazy.ts +3 -3
  165. package/src/core/notebook/operations.ts +1 -1
  166. package/src/core/run-app.tsx +2 -1
  167. package/src/core/runtime/__tests__/adapter.test.ts +3 -3
  168. package/src/core/runtime/adapter.ts +4 -4
  169. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +34 -0
  170. package/src/core/session/useNotebookSession.tsx +10 -5
  171. package/src/core/wasm/bridge.ts +1 -1
  172. package/src/css/app/Cell.css +7 -36
  173. package/src/plugins/core/registerReactComponent.tsx +4 -13
  174. package/src/plugins/impl/chat/chat-ui.tsx +2 -3
  175. package/src/plugins/impl/common/error-banner.tsx +5 -3
  176. package/src/stories/cell-status.stories.tsx +17 -10
  177. package/src/stories/cell.stories.tsx +0 -31
  178. package/src/stories/layout/vertical/one-column.stories.tsx +0 -9
  179. package/src/utils/time.ts +10 -0
  180. package/src/components/chat/reasoning-accordion.tsx +0 -61
  181. package/src/components/chat/tool-call/tool-activity-group.tsx +0 -49
  182. package/src/components/chat/tool-call/tool-error-card.tsx +0 -81
  183. package/src/components/chat/tool-call/tool-history-row.tsx +0 -147
  184. package/src/components/icons/loading-ellipsis.tsx +0 -46
@@ -3,7 +3,7 @@ import { g as t, s as n } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
3
3
  import { n as r, t as i } from "./src-CA_m4ONl.js";
4
4
  import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { H as o, K as s, U as c, a as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-DU6HZSFF-BwiyaNpg.js";
6
- import { r as h } from "./mermaid-DFYN_PXd.js";
6
+ import { r as h } from "./mermaid-rd09e1JL.js";
7
7
  import { t as g } from "./chunk-F27PBJKO-ufseIn5y.js";
8
8
  import { t as _ } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
9
9
  import { t as v } from "./chunk-POPQ4Y6H-hYOXbYH_.js";
@@ -5,7 +5,7 @@ import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { G as o, H as s, K as c, U as l, a as u, d, k as f, rt as p, s as ee, v as m, w as h, x as g, y as _ } from "./chunk-DU6HZSFF-BwiyaNpg.js";
6
6
  import { t as te } from "./channel-CPObtJXj.js";
7
7
  import { i as ne } from "./chunk-4HAMMTFA-D4eFPyFh.js";
8
- import { a as re, i as v, n as y, r as b } from "./mermaid-DFYN_PXd.js";
8
+ import { a as re, i as v, n as y, r as b } from "./mermaid-rd09e1JL.js";
9
9
  import { t as x } from "./chunk-5VM5RSS4-DKsmPCL6.js";
10
10
  import { t as S } from "./chunk-F27PBJKO-ufseIn5y.js";
11
11
  import { t as C } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
@@ -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
3
  import { D as n, a as r, b as i, c as a, x as o, z as s } from "./chunk-DU6HZSFF-BwiyaNpg.js";
4
- import { p as c } from "./mermaid-DFYN_PXd.js";
4
+ import { p as c } from "./mermaid-rd09e1JL.js";
5
5
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/chunk-SVP7TREG.mjs
6
6
  var l = "", u = "", d = "", f = [], p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ t((e) => s(e, o()), "sanitizeText"), h = /* @__PURE__ */ t((e) => {
7
7
  switch (e.type) {
@@ -3,7 +3,7 @@ import { c as t, g as n } from "./chunk-75Z2AOVW-D7gxIs2Q.js";
3
3
  import { n as r, t as i } from "./src-CA_m4ONl.js";
4
4
  import { n as a } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
5
5
  import { H as o, K as s, M as c, U as l, a as u, s as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-DU6HZSFF-BwiyaNpg.js";
6
- import { n as _, r as v } from "./mermaid-DFYN_PXd.js";
6
+ import { n as _, r as v } from "./mermaid-rd09e1JL.js";
7
7
  import { t as y } from "./chunk-5VM5RSS4-DKsmPCL6.js";
8
8
  import { t as b } from "./chunk-F27PBJKO-ufseIn5y.js";
9
9
  import { t as x } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
11
  import "./chunk-OSK3NFVY-DXa-Cxbn.js";
12
- import "./mermaid-DFYN_PXd.js";
12
+ import "./mermaid-rd09e1JL.js";
13
13
  import "./chunk-F27PBJKO-ufseIn5y.js";
14
14
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
15
  import "./chunk-POPQ4Y6H-hYOXbYH_.js";
16
- import { i as t, n, r, t as i } from "./chunk-TICWLB2K-BFpUy0ud.js";
16
+ import { i as t, n, r, t as i } from "./chunk-TICWLB2K-BrM0GoP3.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-ZZMXUADV.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -9,11 +9,11 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
9
9
  import "./chunk-GVQU2GXP-Cwbt-lF0.js";
10
10
  import "./chunk-L3NEJ4N5-n-zgIVSy.js";
11
11
  import "./chunk-OSK3NFVY-DXa-Cxbn.js";
12
- import "./mermaid-DFYN_PXd.js";
12
+ import "./mermaid-rd09e1JL.js";
13
13
  import "./chunk-F27PBJKO-ufseIn5y.js";
14
14
  import "./chunk-XXDRQBXY-Dnl5VBqG.js";
15
15
  import "./chunk-POPQ4Y6H-hYOXbYH_.js";
16
- import { i as t, n, r, t as i } from "./chunk-TICWLB2K-BFpUy0ud.js";
16
+ import { i as t, n, r, t as i } from "./chunk-TICWLB2K-BrM0GoP3.js";
17
17
  //#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-VYDZK3BY.mjs
18
18
  var a = {
19
19
  parser: n,
@@ -1,40 +1,37 @@
1
1
  import { g as e } from "./button-0-RqY1DW.js";
2
- import { A as t, E as n } from "./error-entries-CMoaUX9V.js";
3
- import { i as r } from "./strings-BCKpLFNU.js";
4
- import { i, s as a, t as o, w as s, x as c } from "./utils-DXkj82sK.js";
5
- import { c as l, m as u, n as d, o as f } from "./static-state-BldGd99T.js";
2
+ import { D as t, Vt as n, j as r } from "./error-entries-CxN-Nq3V.js";
3
+ import { n as i } from "./assertNever-DIU3JJbt.js";
4
+ import { f as a, i as o, t as s, w as c, x as l } from "./utils-EBklsC5R.js";
5
+ import { c as u, m as d, n as f, o as p } from "./static-state-CuV6Pc3a.js";
6
6
  //#region src/core/islands/state.ts
7
- var p = s(!1), m = s(/* @__PURE__ */ new Set()), h = s((e) => e(m)?.size === 0), g = s(!1), _ = s((e) => e(g) && e(p) === !1), v = s({
8
- isInstantiated: !1,
9
- error: null
10
- }), y = s(!1);
7
+ var m = c(!1), h = c(/* @__PURE__ */ new Set()), g = c((e) => e(h)?.size === 0), _ = c(!1), v = c((e) => e(_) && e(m) === !1);
11
8
  //#endregion
12
9
  //#region src/core/meta/state.ts
13
- function b() {
10
+ function y() {
14
11
  try {
15
12
  return window.__MARIMO_MOUNT_CONFIG__.version;
16
13
  } catch {
17
14
  return e.warn("Failed to get version from mount config"), null;
18
15
  }
19
16
  }
20
- var x = b() || "0.25.3-dev266", S = s(x), C = s(!0);
21
- s(null);
17
+ var b = y() || "0.25.3-dev268", x = c(b), S = c(!0);
18
+ c(null);
22
19
  //#endregion
23
20
  //#region src/core/wasm/state.ts
24
- var w = s({
21
+ var C = c({
25
22
  kind: "loading",
26
23
  message: "Initializing..."
27
- }), T = {
24
+ }), w = {
28
25
  canHealthCheck: !1,
29
26
  canShutdown: !1,
30
27
  canRestart: !1,
31
28
  supportsLsp: !1
32
- }, E = {
29
+ }, T = {
33
30
  kind: "wasm",
34
31
  label: "Pyodide",
35
- capabilities: T,
36
- state: s((e) => {
37
- let t = e(w);
32
+ capabilities: w,
33
+ state: c((e) => {
34
+ let t = e(C);
38
35
  switch (t.kind) {
39
36
  case "loading": return {
40
37
  kind: "connecting",
@@ -50,7 +47,7 @@ var w = s({
50
47
  };
51
48
  }
52
49
  })
53
- }, D = {
50
+ }, E = {
54
51
  kind: "remote",
55
52
  label: "Kernel",
56
53
  capabilities: {
@@ -59,39 +56,39 @@ var w = s({
59
56
  canRestart: !0,
60
57
  supportsLsp: !0
61
58
  },
62
- state: s((e) => {
63
- let r = e(n);
64
- switch (r.state) {
65
- case t.OPEN: return { kind: "ready" };
66
- case t.CONNECTING: return {
59
+ state: c((e) => {
60
+ let n = e(t);
61
+ switch (n.state) {
62
+ case r.OPEN: return { kind: "ready" };
63
+ case r.CONNECTING: return {
67
64
  kind: "connecting",
68
65
  progress: { label: "Connecting…" }
69
66
  };
70
- case t.NOT_STARTED: return {
67
+ case r.NOT_STARTED: return {
71
68
  kind: "connecting",
72
69
  progress: { label: "Not connected" }
73
70
  };
74
- case t.CLOSING:
75
- case t.CLOSED: return {
71
+ case r.CLOSING:
72
+ case r.CLOSED: return {
76
73
  kind: "failed",
77
74
  error: {
78
- message: r.state === t.CLOSED ? r.reason : "Disconnecting",
75
+ message: n.state === r.CLOSED ? n.reason : "Disconnecting",
79
76
  errorKind: "runtime"
80
77
  }
81
78
  };
82
79
  }
83
80
  })
84
- }, O = {
81
+ }, D = {
85
82
  kind: "static",
86
83
  label: "Static",
87
- capabilities: T,
88
- state: s({ kind: "ready" })
89
- }, k = {
84
+ capabilities: w,
85
+ state: c({ kind: "ready" })
86
+ }, O = {
90
87
  kind: "islands",
91
88
  label: "Islands",
92
- capabilities: T,
93
- state: s((e) => {
94
- let t = e(p);
89
+ capabilities: w,
90
+ state: c((e) => {
91
+ let t = e(m);
95
92
  return t === !0 ? { kind: "ready" } : typeof t == "string" ? {
96
93
  kind: "failed",
97
94
  error: {
@@ -104,31 +101,31 @@ var w = s({
104
101
  };
105
102
  })
106
103
  };
107
- function A() {
108
- return d() ? O : o() ? k : u() ? E : D;
104
+ function k() {
105
+ return f() ? D : s() ? O : d() ? T : E;
109
106
  }
110
- var j = s(A());
111
- s((e) => {
112
- let t = e(j);
113
- return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(v).isInstantiated;
107
+ var A = c(k());
108
+ c((e) => {
109
+ let t = e(A);
110
+ return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(n) === "running";
114
111
  });
115
112
  //#endregion
116
113
  //#region src/core/meta/code-visibility.ts
117
- var M = s((e) => {
114
+ var j = c((e) => {
118
115
  let t = e(a);
119
116
  return t !== null && [...t.cells.values()].some((e) => e.code !== null);
120
117
  });
121
- function N() {
122
- let e = c(M), t = c(f), { mode: n } = c(l), a = c(C), o = c(j).kind;
123
- if (t && o === "remote") return !0;
118
+ function M() {
119
+ let e = l(j), t = l(p), { mode: n } = l(u), r = l(S), a = l(A).kind;
120
+ if (t && a === "remote") return !0;
124
121
  switch (n) {
125
122
  case "edit":
126
123
  case "present": return !0;
127
124
  case "home":
128
125
  case "gallery": return !1;
129
- case "read": return !a || new URLSearchParams(window.location.search).get(i.includeCode) === "false" ? !1 : e;
130
- default: return r(n), !1;
126
+ case "read": return !r || new URLSearchParams(window.location.search).get(o.includeCode) === "false" ? !1 : e;
127
+ default: return i(n), !1;
131
128
  }
132
129
  }
133
130
  //#endregion
134
- export { y as a, p as c, g as d, C as i, m as l, j as n, v as o, S as r, h as s, N as t, _ as u };
131
+ export { g as a, v as c, S as i, _ as l, A as n, m as o, x as r, h as s, M as t };