@marimo-team/islands 0.19.3-dev24 → 0.19.3-dev28

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.
@@ -4,8 +4,8 @@ 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-DdA8EBol.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
7
- import { N as createLucideIcon } from "./Combination-33P1MEPK.js";
8
- import { a as cva, u as cn } from "./button-BlF-78eJ.js";
7
+ import { N as createLucideIcon } from "./Combination-BOmAhdTT.js";
8
+ import { a as cva, u as cn } from "./button-D6ZIdUA3.js";
9
9
  import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
10
10
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
11
11
  import { f as waitFor, p as isIslands, u as store, x as atom } from "./useTheme-DdLjooMf.js";
@@ -1,13 +1,13 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DdA8EBol.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
4
- import "./Combination-33P1MEPK.js";
5
- import { S as CircleQuestionMark, a as AlertTitle, m as asRemoteURL, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-1wVjsLov.js";
6
- import { l as Events } from "./button-BlF-78eJ.js";
4
+ import "./Combination-BOmAhdTT.js";
5
+ import { S as CircleQuestionMark, a as AlertTitle, m as asRemoteURL, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-Ci6rXZ_K.js";
6
+ import { l as Events } from "./button-D6ZIdUA3.js";
7
7
  import { o as Objects, s as Logger } from "./hotkeys-C4e3s3sJ.js";
8
8
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
9
9
  import "./react-dom-DJW8xUDg.js";
10
- import { l as Tooltip, n as ErrorBanner } from "./error-banner-UH0Nxilf.js";
10
+ import { l as Tooltip, n as ErrorBanner } from "./error-banner-BhqH4mGj.js";
11
11
  import { h as useEvent_default, n as useTheme } from "./useTheme-DdLjooMf.js";
12
12
  import { t as _baseUniq_default } from "./_baseUniq-BUGws47x.js";
13
13
  import { i as debounce_default } from "./constants-DuN_eoAL.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.19.3-dev24",
3
+ "version": "0.19.3-dev28",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -146,8 +146,8 @@
146
146
  "plotly.js": "^2.35.3",
147
147
  "pyodide": "0.27.7",
148
148
  "react-arborist": "^3.4.3",
149
- "react-aria": "^3.44.0",
150
- "react-aria-components": "^1.13.0",
149
+ "react-aria": "^3.45.0",
150
+ "react-aria-components": "^1.14.0",
151
151
  "react-codemirror-merge": "4.25.4",
152
152
  "react-dnd": "^16.0.1",
153
153
  "react-dnd-html5-backend": "^16.0.1",
@@ -93,11 +93,17 @@ export const NameCellContentEditable: React.FC<{
93
93
  onChange={inputProps.onChange}
94
94
  onBlur={inputProps.onBlur}
95
95
  onFocus={inputProps.onFocus}
96
- onKeyDown={Events.onEnter((e) => {
97
- if (e.target instanceof HTMLElement) {
98
- e.target.blur();
96
+ onKeyDown={(e) => {
97
+ // Prevent all key presses from triggering hotkeys
98
+ e.stopPropagation();
99
+
100
+ // On Enter, blur the input to commit the change
101
+ if (e.key === "Enter") {
102
+ if (e.target instanceof HTMLElement) {
103
+ e.target.blur();
104
+ }
99
105
  }
100
- })}
106
+ }}
101
107
  >
102
108
  {value}
103
109
  </span>
@@ -42,6 +42,7 @@ export const Events = {
42
42
  target.tagName === "INPUT" ||
43
43
  target.tagName === "TEXTAREA" ||
44
44
  target.tagName.startsWith("MARIMO") ||
45
+ target.isContentEditable ||
45
46
  Events.fromCodeMirror(e)
46
47
  );
47
48
  },