@marimo-team/islands 0.20.5-dev10 → 0.20.5-dev15

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 (138) hide show
  1. package/dist/{Combination-Du-o_hC9.js → Combination-DPrRlMyq.js} +1 -1
  2. package/dist/{ConnectedDataExplorerComponent-DUS-zJoR.js → ConnectedDataExplorerComponent-Bp9TusI-.js} +10 -10
  3. package/dist/{any-language-editor-BL9o7y0_.js → any-language-editor-BGcQxkAL.js} +19 -19
  4. package/dist/{architectureDiagram-VXUJARFQ-DrJeyFHq.js → architectureDiagram-VXUJARFQ-IZt4NuSd.js} +5 -5
  5. package/dist/{blockDiagram-VD42YOAC-BJrP6qKc.js → blockDiagram-VD42YOAC-mhFHC3Ty.js} +5 -5
  6. package/dist/{button-KYalaJYu.js → button-BJaX_M34.js} +8 -3
  7. package/dist/{c4Diagram-YG6GDRKO-Bo4gytQ5.js → c4Diagram-YG6GDRKO-BzStmvfT.js} +4 -4
  8. package/dist/{channel-IWLGkaBE.js → channel-CUFaIkTh.js} +1 -1
  9. package/dist/{check-C50jsehH.js → check-C9c-GtvX.js} +1 -1
  10. package/dist/{chunk-ABZYJK2D-CRwanrkd.js → chunk-ABZYJK2D-7QYXAAhe.js} +1 -1
  11. package/dist/{chunk-ATLVNIR6-CMMCMvOK.js → chunk-ATLVNIR6-pmHPAPSd.js} +1 -1
  12. package/dist/{chunk-B4BG7PRW-BNsHrGHG.js → chunk-B4BG7PRW-C9mfKT9i.js} +4 -4
  13. package/dist/{chunk-DI55MBZ5-DQeYbfMV.js → chunk-DI55MBZ5-IKrK49rX.js} +4 -4
  14. package/dist/{chunk-EXTU4WIE-CV_DQeaX.js → chunk-EXTU4WIE-BRFl4iNd.js} +1 -1
  15. package/dist/{chunk-JA3XYJ7Z-Cmt--e0q.js → chunk-JA3XYJ7Z-C9q_MXZQ.js} +2 -2
  16. package/dist/{chunk-JZLCHNYA-CkyMJnI9.js → chunk-JZLCHNYA-DVjoFib5.js} +4 -4
  17. package/dist/{chunk-N4CR4FBY-BJfHtJbD.js → chunk-N4CR4FBY-BYr5N5mX.js} +5 -5
  18. package/dist/{chunk-QN33PNHL-WOLIPUAJ.js → chunk-QN33PNHL-CXfJywHv.js} +1 -1
  19. package/dist/{chunk-QXUST7PY-DYuD50pU.js → chunk-QXUST7PY-YO0PM8b3.js} +5 -5
  20. package/dist/{chunk-S3R3BYOJ-CsnX6RKs.js → chunk-S3R3BYOJ-DgI4FlvW.js} +1 -1
  21. package/dist/{chunk-TZMSLE5B-B3eYTGCw.js → chunk-TZMSLE5B-DSfBOnzx.js} +1 -1
  22. package/dist/{classDiagram-2ON5EDUG-C7C-oefv.js → classDiagram-2ON5EDUG-CvpnTWzz.js} +10 -10
  23. package/dist/{classDiagram-v2-WZHVMYZB-UTw37Gg8.js → classDiagram-v2-WZHVMYZB-DEQrBHLI.js} +10 -10
  24. package/dist/{copy-oc-FcZzt.js → copy-DhB8Zxuz.js} +2 -2
  25. package/dist/{dagre-6UL2VRFP-BgsUhJrV.js → dagre-6UL2VRFP-DC-emrm5.js} +7 -7
  26. package/dist/{diagram-PSM6KHXK-BIUUOfKo.js → diagram-PSM6KHXK-BAgNlpL8.js} +6 -6
  27. package/dist/{diagram-QEK2KX5R-BFjolZQv.js → diagram-QEK2KX5R-BM7QE5WA.js} +4 -4
  28. package/dist/{diagram-S2PKOQOG-4jfkWoZw.js → diagram-S2PKOQOG-qs4mB1gW.js} +4 -4
  29. package/dist/dist-B4MxkKHf.js +8 -0
  30. package/dist/{dist-De9X_Des.js → dist-B9EjSb9T.js} +1 -1
  31. package/dist/{dist-IW_ARJ3S.js → dist-BFxYppVR.js} +4 -4
  32. package/dist/{dist-D7ZGWV_9.js → dist-BGZ7TWS9.js} +3 -3
  33. package/dist/{dist-CwtEWuFb.js → dist-BSfYc7vq.js} +2 -2
  34. package/dist/{dist-DMS81OrU.js → dist-BUrWeMEP.js} +1 -1
  35. package/dist/dist-BYghZv6b.js +5 -0
  36. package/dist/dist-Be-uQhz5.js +6 -0
  37. package/dist/{dist-Ch_JuCvc.js → dist-BpMlUdNO.js} +3 -3
  38. package/dist/{dist-C6z8U-ms.js → dist-Bq5eYK43.js} +2 -2
  39. package/dist/{dist-BFL9TlzD.js → dist-Bq9zYwJs.js} +5 -5
  40. package/dist/{dist-7ZF--V_D.js → dist-C4K7pumm.js} +2 -2
  41. package/dist/{dist-Qjf6pcqK.js → dist-CAKwXCWI.js} +2 -2
  42. package/dist/dist-CB_xf0ju.js +5 -0
  43. package/dist/{dist-BwQHkjA9.js → dist-CDHl2i1x.js} +4 -4
  44. package/dist/dist-CK0qFAbF.js +8 -0
  45. package/dist/{dist-C4XMUaob.js → dist-CPlGUbk-.js} +2 -2
  46. package/dist/{dist-BT6_J2eq.js → dist-CSEWGuDq.js} +7 -2
  47. package/dist/dist-CYEk-qrr.js +8 -0
  48. package/dist/{dist-CYo3w-nC.js → dist-Cl5iM8xL.js} +3 -3
  49. package/dist/dist-CmKoWpMk.js +5 -0
  50. package/dist/{dist-I8MQW60_.js → dist-CseYuPtL.js} +2 -2
  51. package/dist/dist-D1nf4IQl.js +5 -0
  52. package/dist/{dist-CsqiXw7J.js → dist-D4gcY469.js} +2 -2
  53. package/dist/{dist-DUxS2paD.js → dist-D5NMgbbv.js} +2 -2
  54. package/dist/{dist-UYm1IE5s.js → dist-DERtJN02.js} +2 -2
  55. package/dist/{dist-CFToYDWO.js → dist-DEj2X26M.js} +2 -2
  56. package/dist/{dist-BuapEdlD.js → dist-DOoqn-VL.js} +70 -67
  57. package/dist/{dist-BLThQiU4.js → dist-DUretbKK.js} +2 -2
  58. package/dist/{dist-DEFZ7dnD.js → dist-D_-CGmlh.js} +2 -2
  59. package/dist/dist-Df3AcKpt.js +6 -0
  60. package/dist/dist-DgaFHt_I.js +5 -0
  61. package/dist/dist-Dk10C3ui.js +5 -0
  62. package/dist/{dist-D0f6Yrrb.js → dist-DodLQWPg.js} +1 -1
  63. package/dist/{dist-B8Y11RWn.js → dist-DpeHj-vP.js} +2 -2
  64. package/dist/dist-DtyPVMHR.js +5 -0
  65. package/dist/{dist-Cb3cLT39.js → dist-HoZO6brh.js} +2 -2
  66. package/dist/{dist-Cqpjy6bK.js → dist-RNGn_-uD.js} +1 -1
  67. package/dist/{dist-BBcqvpvP.js → dist-Ux6dL_VB.js} +1 -1
  68. package/dist/{dist-CB6qhQ8K.js → dist-gc9KgJuA.js} +1 -1
  69. package/dist/{dist-ovDpXuSB.js → dist-i-ud9aCA.js} +1 -1
  70. package/dist/dist-ko7WnHAO.js +5 -0
  71. package/dist/{dist-BTQbjEKU.js → dist-lNe4i1Nm.js} +1 -1
  72. package/dist/dist-of7gLRFK.js +8 -0
  73. package/dist/{erDiagram-Q2GNP2WA-Cq5Bz5lG.js → erDiagram-Q2GNP2WA-Dh5nhgY3.js} +10 -10
  74. package/dist/{error-banner-D0tXnwl4.js → error-banner-CJWv_j2x.js} +2 -2
  75. package/dist/{esm-BxMbHo0y.js → esm-DxAOF89q.js} +29 -27
  76. package/dist/{flowDiagram-NV44I4VS-6WPJVFl7.js → flowDiagram-NV44I4VS-ChR1Vbmj.js} +10 -10
  77. package/dist/{ganttDiagram-JELNMOA3-AfDhh9CI.js → ganttDiagram-JELNMOA3-sK0z-5KM.js} +3 -3
  78. package/dist/{gitGraphDiagram-V2S2FVAM-BRSwuj0Q.js → gitGraphDiagram-V2S2FVAM-9S1VqQrL.js} +3 -3
  79. package/dist/{glide-data-editor-ByPNTNVG.js → glide-data-editor-C2dhh3XY.js} +6 -6
  80. package/dist/{infoDiagram-HS3SLOUP-Cmxo6jKx.js → infoDiagram-HS3SLOUP-C5A8b-2O.js} +3 -3
  81. package/dist/{journeyDiagram-XKPGCS4Q-CKYr8cSR.js → journeyDiagram-XKPGCS4Q-D5BIjS4N.js} +3 -3
  82. package/dist/{kanban-definition-3W4ZIXB7-DVvAZzQD.js → kanban-definition-3W4ZIXB7-C1vZZabj.js} +7 -7
  83. package/dist/{label-CV0KYhtH.js → label-kL_UbziI.js} +4 -4
  84. package/dist/{loader-eJCvvApN.js → loader-C6xHQhFz.js} +1 -1
  85. package/dist/main.js +151 -154
  86. package/dist/{mermaid-COOB_abB.js → mermaid-CzRLRASw.js} +41 -41
  87. package/dist/{mindmap-definition-VGOIOE7T-1ExmnvYy.js → mindmap-definition-VGOIOE7T-Cn9_H_5f.js} +9 -9
  88. package/dist/{pieDiagram-ADFJNKIX-CJlIsdsU.js → pieDiagram-ADFJNKIX-iA0mvRW9.js} +4 -4
  89. package/dist/{purify.es-CyOIw8ru.js → purify.es-DGenX2XH.js} +67 -67
  90. package/dist/{quadrantDiagram-AYHSOK5B-BU78RiaH.js → quadrantDiagram-AYHSOK5B-CAcVWXc-.js} +2 -2
  91. package/dist/{requirementDiagram-UZGBJVZJ-DACHtrFr.js → requirementDiagram-UZGBJVZJ-1HxQ6I5Z.js} +9 -9
  92. package/dist/{sankeyDiagram-TZEHDZUN-Bzg7_UWs.js → sankeyDiagram-TZEHDZUN-BVJnR4_b.js} +2 -2
  93. package/dist/{sequenceDiagram-WL72ISMW-agybEe9J.js → sequenceDiagram-WL72ISMW-ByirOtHb.js} +4 -4
  94. package/dist/{slides-component-B0yK5GXP.js → slides-component-D9AVSv2B.js} +2 -2
  95. package/dist/{spec-Dq_reDGM.js → spec-CXpiliig.js} +4 -4
  96. package/dist/{stateDiagram-FKZM4ZOC-DehQAt8g.js → stateDiagram-FKZM4ZOC-DrYNXdQr.js} +10 -10
  97. package/dist/{stateDiagram-v2-4FDKWEC3-8VzeREl9.js → stateDiagram-v2-4FDKWEC3-C9CFKCSr.js} +10 -10
  98. package/dist/style.css +1 -1
  99. package/dist/{timeline-definition-IT6M3QCI-CdCfdaCF.js → timeline-definition-IT6M3QCI-D8B3p7ID.js} +2 -2
  100. package/dist/{tooltip-CL8m4f9y.js → tooltip-CRsmtPeF.js} +3 -3
  101. package/dist/{types-BwnzGcE4.js → types-ChPKdlru.js} +6 -6
  102. package/dist/{useAsyncData-B4hMFGnF.js → useAsyncData-CHYjZCox.js} +1 -1
  103. package/dist/{useDeepCompareMemoize-DuPhOXzr.js → useDeepCompareMemoize-C1YH9SDF.js} +4 -4
  104. package/dist/{useIframeCapabilities-CAt6D2EI.js → useIframeCapabilities-Cc4UBysp.js} +1 -1
  105. package/dist/{useTheme-BNYQnvu-.js → useTheme-B-ZI3PUl.js} +2 -2
  106. package/dist/{vega-component-DouPy8AI.js → vega-component-BX_oDKB3.js} +8 -8
  107. package/dist/{xychartDiagram-PRI3JC2R-rEm_SIsC.js → xychartDiagram-PRI3JC2R-KuxgQuK9.js} +5 -5
  108. package/package.json +1 -1
  109. package/src/components/datasources/components.tsx +3 -6
  110. package/src/components/datasources/datasources.tsx +8 -21
  111. package/src/components/editor/controls/keyboard-shortcuts.tsx +3 -1
  112. package/src/components/editor/file-tree/file-explorer.tsx +48 -62
  113. package/src/components/editor/file-tree/file-icons.tsx +132 -0
  114. package/src/components/editor/file-tree/file-viewer.tsx +1 -1
  115. package/src/components/editor/file-tree/tree-actions.tsx +107 -0
  116. package/src/components/editor/file-tree/types.ts +2 -96
  117. package/src/components/editor/header/filename-input.tsx +4 -1
  118. package/src/components/pages/home-page.tsx +5 -5
  119. package/src/components/storage/components.tsx +0 -38
  120. package/src/components/storage/storage-file-viewer.tsx +1 -1
  121. package/src/components/storage/storage-inspector.tsx +28 -45
  122. package/src/core/hotkeys/__tests__/hotkeys.test.ts +64 -1
  123. package/src/core/hotkeys/hotkeys.ts +18 -2
  124. package/src/plugins/impl/FileBrowserPlugin.tsx +4 -4
  125. package/dist/dist-BAeGo2rp.js +0 -5
  126. package/dist/dist-BqwCMSEa.js +0 -5
  127. package/dist/dist-Bum8FwTO.js +0 -6
  128. package/dist/dist-C0YiOwt_.js +0 -5
  129. package/dist/dist-C2uPv4iU.js +0 -5
  130. package/dist/dist-C5hOLsJN.js +0 -8
  131. package/dist/dist-C9NIAKMs.js +0 -8
  132. package/dist/dist-CCrzTtvk.js +0 -5
  133. package/dist/dist-CFS9i1rS.js +0 -8
  134. package/dist/dist-CyHZuhPH.js +0 -5
  135. package/dist/dist-CzcjWdIk.js +0 -6
  136. package/dist/dist-DaYyUSNC.js +0 -5
  137. package/dist/dist-DpDcJYNh.js +0 -8
  138. package/dist/dist-U_BfxcPn.js +0 -5
@@ -1,7 +1,7 @@
1
- import "./purify.es-CyOIw8ru.js";
1
+ import "./purify.es-DGenX2XH.js";
2
2
  import { t as arc_default } from "./arc-DXxE-tFl.js";
3
3
  import { i as log, n as __export, r as __name, t as select_default } from "./src-CHUphWwL.js";
4
- import { G as setupGraphViewbox, Q as is_dark_default, X as darken_default, Z as lighten_default, a as clear, b as getConfig2, o as commonDb_exports } from "./chunk-ABZYJK2D-CRwanrkd.js";
4
+ import { G as setupGraphViewbox, Q as is_dark_default, X as darken_default, Z as lighten_default, a as clear, b as getConfig2, o as commonDb_exports } from "./chunk-ABZYJK2D-7QYXAAhe.js";
5
5
  var parser = (function() {
6
6
  var t = /* @__PURE__ */ __name(function(t2, S2, C2, w) {
7
7
  for (C2 || (C2 = {}), w = t2.length; w--; C2[t2[w]] = S2) ;
@@ -1,9 +1,9 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { a as Content, i as Arrow, o as Root2, r as Anchor, s as createPopperScope, t as Root } from "./dist-B8Y11RWn.js";
5
- import { m as useComposedRefs, y as cn } from "./button-KYalaJYu.js";
6
- import { _t as createContextScope, at as useControllableState, ct as useId, ft as Primitive, ht as createSlottable, it as StyleNamespace, nt as withSmartCollisionBoundary, ot as Presence, st as Portal, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-Du-o_hC9.js";
4
+ import { a as Content, i as Arrow, o as Root2, r as Anchor, s as createPopperScope, t as Root } from "./dist-DpeHj-vP.js";
5
+ import { m as useComposedRefs, y as cn } from "./button-BJaX_M34.js";
6
+ import { _t as createContextScope, at as useControllableState, ct as useId, ft as Primitive, ht as createSlottable, it as StyleNamespace, nt as withSmartCollisionBoundary, ot as Presence, st as Portal, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-DPrRlMyq.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
8
8
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [createPopperScope]), usePopperScope = createPopperScope(), PROVIDER_NAME = "TooltipProvider", DEFAULT_DELAY_DURATION = 700, TOOLTIP_OPEN = "tooltip.open", [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME), TooltipProvider$1 = (t) => {
9
9
  let { __scopeTooltip: k, delayDuration: A = DEFAULT_DELAY_DURATION, skipDelayDuration: j = 300, disableHoverableContent: M = false, children: N } = t, P = import_react.useRef(true), F = import_react.useRef(false), I = import_react.useRef(0);
@@ -5,17 +5,17 @@ var _a;
5
5
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
6
6
  import { t as require_react } from "./react-Bs6Z0kvn.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
8
- import { a as Content, i as Arrow, l as createLucideIcon, o as Root2$1, r as Anchor, s as createPopperScope } from "./dist-B8Y11RWn.js";
9
- import { t as Check } from "./check-C50jsehH.js";
10
- import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, F as $b5e257d569688ac6$export$619500959fc48b26, I as X, L as ChevronUp, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as ChevronDown, _ as menuItemVariants, b as menuSubTriggerVariants, g as menuControlVariants, h as menuControlCheckVariants, j as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, k as upperFirst_default, m as menuContentCommon, v as menuLabelVariants, w as createCollection, y as menuSeparatorVariants } from "./label-CV0KYhtH.js";
8
+ import { a as Content, i as Arrow, l as createLucideIcon, o as Root2$1, r as Anchor, s as createPopperScope } from "./dist-DpeHj-vP.js";
9
+ import { t as Check } from "./check-C9c-GtvX.js";
10
+ import { A as $a916eb452884faea$export$b7a616150fdb9f44, C as useDirection, F as $b5e257d569688ac6$export$619500959fc48b26, I as X, L as ChevronUp, M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as ChevronDown, _ as menuItemVariants, b as menuSubTriggerVariants, g as menuControlVariants, h as menuControlCheckVariants, j as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, k as upperFirst_default, m as menuContentCommon, v as menuLabelVariants, w as createCollection, y as menuSeparatorVariants } from "./label-kL_UbziI.js";
11
11
  import { n as clsx_default } from "./clsx-D2KVTYnW.js";
12
- import { g as Logger, h as Events, m as useComposedRefs, p as composeRefs, t as Button, y as cn } from "./button-KYalaJYu.js";
13
- import { _t as createContextScope, at as useControllableState, ct as useId, dt as useCallbackRef, et as MAX_HEIGHT_OFFSET, ft as Primitive, i as useFocusGuards, it as StyleNamespace, mt as createSlot, n as hideOthers, nt as withSmartCollisionBoundary, ot as Presence, pt as dispatchDiscreteCustomEvent, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-Du-o_hC9.js";
12
+ import { g as Logger, h as Events, m as useComposedRefs, p as composeRefs, t as Button, y as cn } from "./button-BJaX_M34.js";
13
+ import { _t as createContextScope, at as useControllableState, ct as useId, dt as useCallbackRef, et as MAX_HEIGHT_OFFSET, ft as Primitive, i as useFocusGuards, it as StyleNamespace, mt as createSlot, n as hideOthers, nt as withSmartCollisionBoundary, ot as Presence, pt as dispatchDiscreteCustomEvent, r as FocusScope, st as Portal, t as Combination_default, tt as withFullScreenAsRoot, ut as DismissableLayer, vt as composeEventHandlers } from "./Combination-DPrRlMyq.js";
14
14
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
15
15
  import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
16
16
  import { t as toString_default } from "./toString-Ckpb50uw.js";
17
17
  import { i as debounce_default, n as Constants } from "./constants-D1Tbg_6B.js";
18
- import { C as useEvent_default } from "./useTheme-BNYQnvu-.js";
18
+ import { C as useEvent_default } from "./useTheme-B-ZI3PUl.js";
19
19
  import { t as memoizeLastValue } from "./once-BqS42WgZ.js";
20
20
  var ChevronRight = createLucideIcon("chevron-right", [["path", {
21
21
  d: "m9 18 6-6-6-6",
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { C as useEvent_default } from "./useTheme-BNYQnvu-.js";
4
+ import { C as useEvent_default } from "./useTheme-B-ZI3PUl.js";
5
5
  import { t as invariant } from "./invariant-D9QLJ4SZ.js";
6
6
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), Result = {
7
7
  error(e, s) {
@@ -4,12 +4,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
5
  import { t as require_react } from "./react-Bs6Z0kvn.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
7
- import { l as createLucideIcon } from "./dist-B8Y11RWn.js";
8
- import { a as cva, g as Logger, y as cn } from "./button-KYalaJYu.js";
7
+ import { l as createLucideIcon } from "./dist-DpeHj-vP.js";
8
+ import { a as cva, g as Logger, y as cn } from "./button-BJaX_M34.js";
9
9
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
10
10
  import { r as KnownQueryParams } from "./constants-D1Tbg_6B.js";
11
- import { f as waitFor, p as isIslands, u as store, y as atom } from "./useTheme-BNYQnvu-.js";
12
- import { i as tableFromIPC } from "./loader-eJCvvApN.js";
11
+ import { f as waitFor, p as isIslands, u as store, y as atom } from "./useTheme-B-ZI3PUl.js";
12
+ import { i as tableFromIPC } from "./loader-C6xHQhFz.js";
13
13
  var CircleQuestionMark = createLucideIcon("circle-question-mark", [
14
14
  ["circle", {
15
15
  cx: "12",
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { g as Logger } from "./button-KYalaJYu.js";
4
+ import { g as Logger } from "./button-BJaX_M34.js";
5
5
  import { n as once } from "./once-BqS42WgZ.js";
6
6
  function testStorage(e) {
7
7
  try {
@@ -1,8 +1,8 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { g as Logger, s as OverridingHotkeyProvider, u as resolvePlatform } from "./button-KYalaJYu.js";
5
- import { B as record, H as string, L as number, O as array, P as looseObject, R as object, W as union, k as boolean, w as _enum } from "./Combination-Du-o_hC9.js";
4
+ import { g as Logger, s as OverridingHotkeyProvider, u as resolvePlatform } from "./button-BJaX_M34.js";
5
+ import { B as record, H as string, L as number, O as array, P as looseObject, R as object, W as union, k as boolean, w as _enum } from "./Combination-DPrRlMyq.js";
6
6
  import { t as _baseIsEqual_default } from "./_baseIsEqual-5cAxzk6f.js";
7
7
  import { t as merge_default } from "./merge-CGQkMGzr.js";
8
8
  function isEqual(e, A) {
@@ -1,19 +1,19 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { S as CircleQuestionMark, a as AlertTitle, m as asRemoteURL, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-DuPhOXzr.js";
5
- import { d as Objects, g as Logger, h as Events } from "./button-KYalaJYu.js";
6
- import "./Combination-Du-o_hC9.js";
4
+ import { S as CircleQuestionMark, a as AlertTitle, m as asRemoteURL, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-C1YH9SDF.js";
5
+ import { d as Objects, g as Logger, h as Events } from "./button-BJaX_M34.js";
6
+ import "./Combination-DPrRlMyq.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
8
8
  import "./react-dom-CqtLRVZP.js";
9
- import { t as Tooltip } from "./tooltip-CL8m4f9y.js";
9
+ import { t as Tooltip } from "./tooltip-CRsmtPeF.js";
10
10
  import { i as debounce_default } from "./constants-D1Tbg_6B.js";
11
- import { C as useEvent_default, n as useTheme } from "./useTheme-BNYQnvu-.js";
12
- import { a as tooltipHandler, n as vegaLoadData } from "./loader-eJCvvApN.js";
11
+ import { C as useEvent_default, n as useTheme } from "./useTheme-B-ZI3PUl.js";
12
+ import { a as tooltipHandler, n as vegaLoadData } from "./loader-C6xHQhFz.js";
13
13
  import { t as uniq_default } from "./uniq-cCc07Q8K.js";
14
- import { n as ErrorBanner } from "./error-banner-D0tXnwl4.js";
14
+ import { n as ErrorBanner } from "./error-banner-CJWv_j2x.js";
15
15
  import { n as formats } from "./vega-loader.browser-CQ-lnUkI.js";
16
- import { t as useAsyncData } from "./useAsyncData-B4hMFGnF.js";
16
+ import { t as useAsyncData } from "./useAsyncData-CHYjZCox.js";
17
17
  import { t as j } from "./react-vega-C6kwcd86.js";
18
18
  import "./defaultLocale-Bklbu-Tp.js";
19
19
  import "./defaultLocale-CfQ4kBaV.js";
@@ -1,17 +1,17 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
2
- import "./purify.es-CyOIw8ru.js";
2
+ import "./purify.es-DGenX2XH.js";
3
3
  import { t as linear } from "./linear-DIp6l9sg.js";
4
4
  import { n as ordinal } from "./ordinal-Dcvf4J1m.js";
5
5
  import { t as range } from "./range-BToS7LsA.js";
6
6
  import "./defaultLocale-Bklbu-Tp.js";
7
7
  import { t as line_default } from "./line-C1k1rG3Z.js";
8
- import { i as cleanAndMerge } from "./chunk-S3R3BYOJ-CsnX6RKs.js";
8
+ import { i as cleanAndMerge } from "./chunk-S3R3BYOJ-DgI4FlvW.js";
9
9
  import { n as initRange } from "./init-Ci8VD8ZH.js";
10
10
  import { i as log, r as __name } from "./src-CHUphWwL.js";
11
- import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D-CRwanrkd.js";
12
- import { t as selectSvgElement } from "./chunk-EXTU4WIE-CV_DQeaX.js";
11
+ import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D-7QYXAAhe.js";
12
+ import { t as selectSvgElement } from "./chunk-EXTU4WIE-BRFl4iNd.js";
13
13
  import "./dist-Bymy0kEH.js";
14
- import { t as computeDimensionOfText } from "./chunk-JA3XYJ7Z-Cmt--e0q.js";
14
+ import { t as computeDimensionOfText } from "./chunk-JA3XYJ7Z-C9q_MXZQ.js";
15
15
  function band() {
16
16
  var e = ordinal().unknown(void 0), w = e.domain, T = e.range, D = 0, O = 1, k, A, j = false, M = 0, N = 0, P = 0.5;
17
17
  delete e.unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.20.5-dev10",
3
+ "version": "0.20.5-dev15",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,18 +1,15 @@
1
1
  /* Copyright 2026 Marimo. All rights reserved. */
2
2
 
3
- import { ChevronRightIcon, LoaderCircle, XIcon } from "lucide-react";
3
+ import { LoaderCircle, XIcon } from "lucide-react";
4
4
  import type { CSSProperties } from "react";
5
+ import { TreeChevron } from "@/components/editor/file-tree/tree-actions";
5
6
  import type { DataType } from "@/core/kernel/messages";
6
7
  import { cn } from "@/utils/cn";
7
8
  import { DATA_TYPE_ICON, getDataTypeColor } from "../datasets/icons";
8
9
 
9
10
  export const RotatingChevron: React.FC<{ isExpanded: boolean }> = ({
10
11
  isExpanded,
11
- }) => (
12
- <ChevronRightIcon
13
- className={cn("h-3 w-3 transition-transform", isExpanded && "rotate-90")}
14
- />
15
- );
12
+ }) => <TreeChevron isExpanded={isExpanded} className="h-3 w-3" />;
16
13
 
17
14
  export const DatasourceLabel: React.FC<{
18
15
  children: React.ReactNode;
@@ -3,11 +3,12 @@
3
3
  import { CommandList } from "cmdk";
4
4
  import { atom, useAtomValue, useSetAtom } from "jotai";
5
5
  import { sortBy } from "lodash-es";
6
- import { PlusIcon, PlusSquareIcon, RefreshCwIcon, XIcon } from "lucide-react";
6
+ import { PlusIcon, PlusSquareIcon, XIcon } from "lucide-react";
7
7
  import React from "react";
8
8
  import { dbDisplayName } from "@/components/databases/display";
9
9
  import { EngineVariable } from "@/components/databases/engine-variable";
10
10
  import { DatabaseLogo } from "@/components/databases/icon";
11
+ import { RefreshIconButton } from "@/components/editor/file-tree/tree-actions";
11
12
  import { CopyClipboardIcon } from "@/components/icons/copy-icon";
12
13
  import { Button } from "@/components/ui/button";
13
14
  import { Command, CommandInput, CommandItem } from "@/components/ui/command";
@@ -265,15 +266,10 @@ const Engine: React.FC<{
265
266
  const engineName = internalEngine ? "In-Memory" : connection.name;
266
267
  const { previewDataSourceConnection } = useRequestClient();
267
268
 
268
- const [isSpinning, setIsSpinning] = React.useState(false);
269
-
270
269
  const handleRefreshConnection = async () => {
271
- setIsSpinning(true);
272
270
  await previewDataSourceConnection({
273
271
  engine: connection.name,
274
272
  });
275
- // Artificially spin the icon if the request is really fast
276
- setTimeout(() => setIsSpinning(false), 500);
277
273
  };
278
274
 
279
275
  return (
@@ -288,21 +284,12 @@ const Engine: React.FC<{
288
284
  (<EngineVariable variableName={engineName as VariableName} />)
289
285
  </span>
290
286
  {!internalEngine && (
291
- <Tooltip content="Refresh connection">
292
- <Button
293
- variant="ghost"
294
- size="icon"
295
- className="ml-auto hover:bg-transparent hover:shadow-none"
296
- onClick={handleRefreshConnection}
297
- >
298
- <RefreshCwIcon
299
- className={cn(
300
- "h-4 w-4 text-muted-foreground hover:text-foreground",
301
- isSpinning && "animate-[spin_0.5s]",
302
- )}
303
- />
304
- </Button>
305
- </Tooltip>
287
+ <RefreshIconButton
288
+ onClick={handleRefreshConnection}
289
+ tooltip="Refresh connection"
290
+ className="ml-auto h-4 p-0"
291
+ iconClassName="h-3.5 w-3.5"
292
+ />
306
293
  )}
307
294
  </DatasourceLabel>
308
295
  {hasChildren ? (
@@ -174,7 +174,9 @@ export const KeyboardShortcuts: React.FC = () => {
174
174
  return;
175
175
  }
176
176
 
177
- let key = e.key.toLowerCase();
177
+ // Single character keys are always lowercase (e.g. "a", "b", "c")
178
+ // But we should preserve the original case for other keys (e.g. "Enter", "Escape")
179
+ let key = e.key.length === 1 ? e.key.toLowerCase() : e.key;
178
180
  // Handle edge cases
179
181
  if (e.key === " ") {
180
182
  key = "Space";
@@ -6,8 +6,6 @@ import {
6
6
  ArrowLeftIcon,
7
7
  BetweenHorizontalStartIcon,
8
8
  BracesIcon,
9
- ChevronDownIcon,
10
- ChevronRightIcon,
11
9
  CopyIcon,
12
10
  CopyMinusIcon,
13
11
  DownloadIcon,
@@ -17,9 +15,7 @@ import {
17
15
  FilePlus2Icon,
18
16
  FolderPlusIcon,
19
17
  ListTreeIcon,
20
- MoreVerticalIcon,
21
18
  PlaySquareIcon,
22
- RefreshCcwIcon,
23
19
  Trash2Icon,
24
20
  UploadIcon,
25
21
  ViewIcon,
@@ -32,6 +28,18 @@ import {
32
28
  type TreeApi,
33
29
  } from "react-arborist";
34
30
  import useEvent from "react-use-event-hook";
31
+ import {
32
+ FILE_ICON,
33
+ FILE_ICON_COLOR,
34
+ type FileIconType,
35
+ guessFileIconType,
36
+ } from "@/components/editor/file-tree/file-icons";
37
+ import {
38
+ MENU_ITEM_ICON_CLASS,
39
+ MoreActionsButton,
40
+ RefreshIconButton,
41
+ TreeChevron,
42
+ } from "@/components/editor/file-tree/tree-actions";
35
43
  import { MarimoIcon, MarimoPlusIcon } from "@/components/icons/marimo-icons";
36
44
  import { Spinner } from "@/components/icons/spinner";
37
45
  import { useImperativeModal } from "@/components/modal/ImperativeModal";
@@ -65,12 +73,7 @@ import { useTreeDndManager } from "./dnd-wrapper";
65
73
  import { FileViewer } from "./file-viewer";
66
74
  import type { RequestingTree } from "./requesting-tree";
67
75
  import { openStateAtom, treeAtom } from "./state";
68
- import {
69
- FILE_TYPE_ICONS,
70
- type FileType,
71
- guessFileType,
72
- PYTHON_CODE_FOR_FILE_TYPE,
73
- } from "./types";
76
+ import { PYTHON_CODE_FOR_FILE_TYPE } from "./types";
74
77
  import { useFileExplorerUpload } from "./upload";
75
78
 
76
79
  const hiddenFilesState = atomWithStorage(
@@ -102,7 +105,10 @@ export const FileExplorer: React.FC<{
102
105
  const { isPending, error } = useAsyncData(() => tree.initialize(setData), []);
103
106
 
104
107
  const handleRefresh = useEvent(() => {
105
- tree.refreshAll(Object.keys(openState).filter((id) => openState[id]));
108
+ // Return the promise so callers can await refresh completion
109
+ return tree.refreshAll(
110
+ Object.keys(openState).filter((id) => openState[id]),
111
+ );
106
112
  });
107
113
 
108
114
  const handleHiddenFilesToggle = useEvent(() => {
@@ -322,16 +328,10 @@ const Toolbar = ({
322
328
  </button>
323
329
  </Tooltip>
324
330
  <input {...getInputProps({})} type="file" />
325
- <Tooltip content="Refresh">
326
- <Button
327
- data-testid="file-explorer-refresh-button"
328
- onClick={onRefresh}
329
- variant="text"
330
- size="xs"
331
- >
332
- <RefreshCcwIcon size={16} />
333
- </Button>
334
- </Tooltip>
331
+ <RefreshIconButton
332
+ data-testid="file-explorer-refresh-button"
333
+ onClick={onRefresh}
334
+ />
335
335
  <Tooltip content="Toggle hidden files">
336
336
  <Button
337
337
  data-testid="file-explorer-hidden-files-button"
@@ -421,11 +421,11 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
421
421
  useRequestClient();
422
422
  const disableFileDownloads = useAtomValue(disableFileDownloadsAtom);
423
423
 
424
- const fileType: FileType = node.data.isDirectory
424
+ const fileType: FileIconType = node.data.isDirectory
425
425
  ? "directory"
426
- : guessFileType(node.data.name);
426
+ : guessFileIconType(node.data.name);
427
427
 
428
- const Icon = FILE_TYPE_ICONS[fileType];
428
+ const Icon = FILE_ICON[fileType];
429
429
  const { openConfirm, openPrompt } = useImperativeModal();
430
430
  const { createNewCell } = useCellActions();
431
431
  const lastFocusedCellId = useLastFocusedCellId();
@@ -534,11 +534,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
534
534
  });
535
535
 
536
536
  const renderActions = () => {
537
- const iconProps = {
538
- size: 14,
539
- strokeWidth: 1.5,
540
- className: "mr-2",
541
- };
537
+ const ic = MENU_ITEM_ICON_CLASS;
542
538
  return (
543
539
  <DropdownMenuContent
544
540
  align="end"
@@ -548,7 +544,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
548
544
  >
549
545
  {!node.data.isDirectory && (
550
546
  <DropdownMenuItem onSelect={() => node.select()}>
551
- <ViewIcon {...iconProps} />
547
+ <ViewIcon className={ic} />
552
548
  Open file
553
549
  </DropdownMenuItem>
554
550
  )}
@@ -558,34 +554,34 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
558
554
  openFile({ path: node.data.path });
559
555
  }}
560
556
  >
561
- <ExternalLinkIcon {...iconProps} />
557
+ <ExternalLinkIcon className={ic} />
562
558
  Open file in external editor
563
559
  </DropdownMenuItem>
564
560
  )}
565
561
  {node.data.isDirectory && (
566
562
  <>
567
563
  <DropdownMenuItem onSelect={() => handleCreateNotebook()}>
568
- <MarimoPlusIcon {...iconProps} />
564
+ <MarimoPlusIcon className={ic} />
569
565
  Create notebook
570
566
  </DropdownMenuItem>
571
567
  <DropdownMenuItem onSelect={() => handleCreateFile()}>
572
- <FilePlus2Icon {...iconProps} />
568
+ <FilePlus2Icon className={ic} />
573
569
  Create file
574
570
  </DropdownMenuItem>
575
571
  <DropdownMenuItem onSelect={() => handleCreateFolder()}>
576
- <FolderPlusIcon {...iconProps} />
572
+ <FolderPlusIcon className={ic} />
577
573
  Create folder
578
574
  </DropdownMenuItem>
579
575
  <DropdownMenuSeparator />
580
576
  </>
581
577
  )}
582
578
  <DropdownMenuItem onSelect={() => node.edit()}>
583
- <Edit3Icon {...iconProps} />
579
+ <Edit3Icon className={ic} />
584
580
  Rename
585
581
  </DropdownMenuItem>
586
582
  {!node.data.isDirectory && (
587
583
  <DropdownMenuItem onSelect={handleDuplicate}>
588
- <CopyIcon {...iconProps} />
584
+ <CopyIcon className={ic} />
589
585
  Duplicate
590
586
  </DropdownMenuItem>
591
587
  )}
@@ -595,7 +591,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
595
591
  toast({ title: "Copied to clipboard" });
596
592
  }}
597
593
  >
598
- <ListTreeIcon {...iconProps} />
594
+ <ListTreeIcon className={ic} />
599
595
  Copy path
600
596
  </DropdownMenuItem>
601
597
  {tree && (
@@ -607,7 +603,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
607
603
  toast({ title: "Copied to clipboard" });
608
604
  }}
609
605
  >
610
- <ListTreeIcon {...iconProps} />
606
+ <ListTreeIcon className={ic} />
611
607
  Copy relative path
612
608
  </DropdownMenuItem>
613
609
  )}
@@ -620,7 +616,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
620
616
  handleInsertCode(pythonCode);
621
617
  }}
622
618
  >
623
- <BetweenHorizontalStartIcon {...iconProps} />
619
+ <BetweenHorizontalStartIcon className={ic} />
624
620
  Insert snippet for reading file
625
621
  </DropdownMenuItem>
626
622
  <DropdownMenuItem
@@ -635,7 +631,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
635
631
  await copyToClipboard(pythonCode);
636
632
  }}
637
633
  >
638
- <BracesIcon {...iconProps} />
634
+ <BracesIcon className={ic} />
639
635
  Copy snippet for reading file
640
636
  </DropdownMenuItem>
641
637
  {/* Not shown in WASM */}
@@ -643,7 +639,7 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
643
639
  <>
644
640
  <DropdownMenuSeparator />
645
641
  <DropdownMenuItem onSelect={handleOpenMarimoFile}>
646
- <PlaySquareIcon {...iconProps} />
642
+ <PlaySquareIcon className={ic} />
647
643
  Open notebook
648
644
  </DropdownMenuItem>
649
645
  </>
@@ -658,14 +654,14 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
658
654
  downloadBlob(new Blob([contents]), node.data.name);
659
655
  }}
660
656
  >
661
- <DownloadIcon {...iconProps} />
657
+ <DownloadIcon className={ic} />
662
658
  Download
663
659
  </DropdownMenuItem>
664
660
  <DropdownMenuSeparator />
665
661
  </>
666
662
  )}
667
663
  <DropdownMenuItem onSelect={handleDeleteFile} variant="danger">
668
- <Trash2Icon {...iconProps} />
664
+ <Trash2Icon className={ic} />
669
665
  Delete
670
666
  </DropdownMenuItem>
671
667
  </DropdownMenuContent>
@@ -699,7 +695,10 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
699
695
  {node.data.isMarimoFile ? (
700
696
  <MarimoIcon className="w-5 h-5 shrink-0 mr-2" strokeWidth={1.5} />
701
697
  ) : (
702
- <Icon className="w-5 h-5 shrink-0 mr-2" strokeWidth={1.5} />
698
+ <Icon
699
+ className={cn("w-5 h-5 shrink-0 mr-2", FILE_ICON_COLOR[fileType])}
700
+ strokeWidth={1.5}
701
+ />
703
702
  )}
704
703
  {node.isEditing ? (
705
704
  <Edit node={node} />
@@ -712,19 +711,10 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
712
711
  tabIndex={-1}
713
712
  onClick={(e) => e.stopPropagation()}
714
713
  >
715
- <Button
714
+ <MoreActionsButton
716
715
  data-testid="file-explorer-more-button"
717
- variant="text"
718
- tabIndex={-1}
719
- size="xs"
720
- className="mb-0"
721
- aria-label="More options"
722
- >
723
- <MoreVerticalIcon
724
- strokeWidth={2}
725
- className="w-5 h-5 hidden group-hover:block"
726
- />
727
- </Button>
716
+ iconClassName="w-5 h-5"
717
+ />
728
718
  </DropdownMenuTrigger>
729
719
  {renderActions()}
730
720
  </DropdownMenu>
@@ -735,14 +725,10 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
735
725
 
736
726
  const FolderArrow = ({ node }: { node: NodeApi<FileInfo> }) => {
737
727
  if (!node.data.isDirectory) {
738
- return <span className="w-5 h-5 shrink-0" />;
728
+ return <span className="w-4 h-4 shrink-0" />;
739
729
  }
740
730
 
741
- return node.isOpen ? (
742
- <ChevronDownIcon className="w-5 h-5 shrink-0" />
743
- ) : (
744
- <ChevronRightIcon className="w-5 h-5 shrink-0" />
745
- );
731
+ return <TreeChevron isExpanded={node.isOpen} className="w-4 h-4" />;
746
732
  };
747
733
 
748
734
  function openMarimoNotebook(