@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.
@@ -1,7 +1,7 @@
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 { c as useComposedRefs, o as useEventListener, s as composeRefs } from "./button-BlF-78eJ.js";
4
+ import { c as useComposedRefs, o as useEventListener, s as composeRefs } from "./button-D6ZIdUA3.js";
5
5
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
6
6
  import { t as require_react_dom } from "./react-dom-DJW8xUDg.js";
7
7
  /**
@@ -1,14 +1,14 @@
1
1
  import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __commonJSMin } 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 { N as createLucideIcon } from "./Combination-33P1MEPK.js";
5
- import { A as Badge, B as ListFilter, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, V as Hash, W as Calendar, j as createReducerAndAtoms, t as augmentSpecWithData, z as SquareFunction } from "./spec-hsYzGr6F.js";
6
- import { E as useOnMount, M as $a916eb452884faea$export$b7a616150fdb9f44, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Label, u as SelectValue } from "./label-oKuiQuiM.js";
7
- import { t as Button, u as cn } from "./button-BlF-78eJ.js";
4
+ import { N as createLucideIcon } from "./Combination-BOmAhdTT.js";
5
+ import { A as Badge, B as ListFilter, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, V as Hash, W as Calendar, j as createReducerAndAtoms, t as augmentSpecWithData, z as SquareFunction } from "./spec-BY974nhI.js";
6
+ import { E as useOnMount, M as $a916eb452884faea$export$b7a616150fdb9f44, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Label, u as SelectValue } from "./label-BaX2bLJa.js";
7
+ import { t as Button, u as cn } from "./button-D6ZIdUA3.js";
8
8
  import { o as Objects, s as Logger } from "./hotkeys-C4e3s3sJ.js";
9
9
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
10
10
  import "./react-dom-DJW8xUDg.js";
11
- import { l as Tooltip, n as ErrorBanner } from "./error-banner-UH0Nxilf.js";
11
+ import { l as Tooltip, n as ErrorBanner } from "./error-banner-BhqH4mGj.js";
12
12
  import { S as createStore, g as Provider, n as useTheme, v as useAtomValue, x as atom } from "./useTheme-DdLjooMf.js";
13
13
  import { t as isString_default } from "./isString-B0JuKBai.js";
14
14
  import { a as tooltipHandler, n as vegaLoadData } from "./loader-DH7xXi-E.js";
@@ -1,12 +1,12 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DdA8EBol.js";
3
3
  import "./compiler-runtime-DHFVbq0b.js";
4
- import "./Combination-33P1MEPK.js";
4
+ import "./Combination-BOmAhdTT.js";
5
5
  import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
7
7
  import "./react-dom-DJW8xUDg.js";
8
- import { n as ErrorBanner } from "./error-banner-UH0Nxilf.js";
9
- import { d as CopyClipboardIcon, n as loadLanguage, r as esm_default, t as langs } from "./esm-D197NGQX.js";
8
+ import { n as ErrorBanner } from "./error-banner-BhqH4mGj.js";
9
+ import { d as CopyClipboardIcon, n as loadLanguage, r as esm_default, t as langs } from "./esm-DOBJQbuy.js";
10
10
  import "./dist-D7jHtwN8.js";
11
11
  import "./dist-BZXKWoES.js";
12
12
  import "./dist-CZq4mfrw.js";
@@ -1236,7 +1236,7 @@ const Events = {
1236
1236
  },
1237
1237
  fromInput: (e) => {
1238
1238
  let _ = e.target;
1239
- return _.tagName === "INPUT" || _.tagName === "TEXTAREA" || _.tagName.startsWith("MARIMO") || Events.fromCodeMirror(e);
1239
+ return _.tagName === "INPUT" || _.tagName === "TEXTAREA" || _.tagName.startsWith("MARIMO") || _.isContentEditable || Events.fromCodeMirror(e);
1240
1240
  },
1241
1241
  fromCodeMirror: (e) => e.target.closest(".cm-editor") !== null,
1242
1242
  shouldIgnoreKeyboardEvent(e) {
@@ -1,4 +1,4 @@
1
- import { N as createLucideIcon } from "./Combination-33P1MEPK.js";
1
+ import { N as createLucideIcon } from "./Combination-BOmAhdTT.js";
2
2
  var Check = createLucideIcon("check", [["path", {
3
3
  d: "M20 6 9 17l-5-5",
4
4
  key: "1gmf2c"
@@ -1,7 +1,7 @@
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 { N as createLucideIcon } from "./Combination-33P1MEPK.js";
4
+ import { N as createLucideIcon } from "./Combination-BOmAhdTT.js";
5
5
  import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
6
6
  require_compiler_runtime(), require_react();
7
7
  var TOAST_LIMIT = 1, TOAST_REMOVE_DELAY = 1e4, count = 0;
@@ -1,8 +1,8 @@
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 { A as createContext2, E as Primitive, M as composeEventHandlers, O as createSlot, S as useId, _ as Arrow, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$1, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, k as createSlottable, m as Presence, n as hideOthers, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$1, w as DismissableLayer, y as Root2$1 } from "./Combination-33P1MEPK.js";
5
- import { a as cva, c as useComposedRefs, n as buttonVariants, u as cn } from "./button-BlF-78eJ.js";
4
+ import { A as createContext2, E as Primitive, M as composeEventHandlers, O as createSlot, S as useId, _ as Arrow, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$1, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, k as createSlottable, m as Presence, n as hideOthers, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$1, w as DismissableLayer, y as Root2$1 } from "./Combination-BOmAhdTT.js";
5
+ import { a as cva, c as useComposedRefs, n as buttonVariants, u as cn } from "./button-D6ZIdUA3.js";
6
6
  import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
8
8
  import { P as object, R as string } from "./zod-LbXVxiL9.js";
@@ -1,11 +1,11 @@
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 { n as Copy, r as toast, t as copyToClipboard } from "./copy-B5nooU3m.js";
5
- import { t as Check } from "./check-DDykH_Yi.js";
6
- import { l as Events, u as cn } from "./button-BlF-78eJ.js";
4
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-ACOJ1BXr.js";
5
+ import { t as Check } from "./check-S8ldILuD.js";
6
+ import { l as Events, u as cn } from "./button-D6ZIdUA3.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
8
- import { l as Tooltip } from "./error-banner-UH0Nxilf.js";
8
+ import { l as Tooltip } from "./error-banner-BhqH4mGj.js";
9
9
  import { $ as ViewPlugin, A as indentString, At as RangeSet, B as tags, Bt as countColumn, C as foldKeymap, Ct as CharCategory, D as getIndentation, Dt as Facet, E as getIndentUnit, Et as EditorState, F as syntaxHighlighting, Ft as Text, H as NodeProp, Ht as fromCodePoint, I as syntaxTree, It as Transaction, J as parseMixed, Lt as codePointAt, N as matchBrackets, Nt as StateEffect, O as indentNodeProp, Pt as StateField, R as Tag, Rt as codePointSize, S as foldInside, St as ChangeSet, Tt as EditorSelection, Vt as findClusterBreak, X as Direction, Y as Decoration, Z as EditorView, _t as showPanel, a as HighlightStyle, bt as Annotation, ct as highlightActiveLineGutter, dt as keymap, et as WidgetType, f as StreamLanguage, ft as lineNumbers, g as defaultHighlightStyle, gt as runScopeHandlers, h as continuedIndent, ht as rectangularSelection, it as getPanel, j as indentUnit, jt as RangeSetBuilder, k as indentOnInput, kt as Prec, lt as highlightSpecialChars, mt as placeholder, n as ExternalTokenizer, nt as drawSelection, o as IndentContext, p as bracketMatching, pt as logException, r as LRParser, rt as dropCursor, s as LRLanguage, st as highlightActiveLine, t as ContextTracker, tt as crosshairCursor, u as LanguageSupport, ut as hoverTooltip, v as delimitedIndent, w as foldNodeProp, x as foldGutter, xt as ChangeDesc, yt as crelt, z as styleTags, zt as combineConfig } from "./dist-D7jHtwN8.js";
10
10
  import { a as closeBracketsKeymap, c as completionKeymap, f as snippetCompletion, i as closeBrackets, l as ifNotIn, r as autocompletion, s as completeFromList } from "./dist-g1p2PEVs.js";
11
11
  import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-DsOyFflT.js";
@@ -4,11 +4,11 @@ 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 Copy, r as toast, t as copyToClipboard } from "./copy-B5nooU3m.js";
8
- import "./Combination-33P1MEPK.js";
9
- import { A as logNever, E as useOnMount, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-oKuiQuiM.js";
10
- import { S as DropdownMenuSubTrigger, W as ErrorBoundary, b as DropdownMenuSub, fn as Trash, g as DropdownMenuItem, hn as Pencil, ht as capitalize_default, i as Input, m as DropdownMenuContent, mn as Plus, mt as marked, p as DropdownMenu, pt as useNonce, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-DEmfj_i8.js";
11
- import { l as Events, t as Button } from "./button-BlF-78eJ.js";
7
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-ACOJ1BXr.js";
8
+ import "./Combination-BOmAhdTT.js";
9
+ import { A as logNever, E as useOnMount, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, t as Label, u as SelectValue } from "./label-BaX2bLJa.js";
10
+ import { S as DropdownMenuSubTrigger, W as ErrorBoundary, b as DropdownMenuSub, fn as Trash, g as DropdownMenuItem, hn as Pencil, ht as capitalize_default, i as Input, m as DropdownMenuContent, mn as Plus, mt as marked, p as DropdownMenu, pt as useNonce, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-BtvDfOR-.js";
11
+ import { l as Events, t as Button } from "./button-D6ZIdUA3.js";
12
12
  import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
13
13
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
14
14
  import "./react-dom-DJW8xUDg.js";
@@ -1,9 +1,9 @@
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 { C as useLayoutEffect2, E as Primitive$1, M as composeEventHandlers, N as createLucideIcon, O as createSlot$1, S as useId, T as useCallbackRef, _ as Arrow, b as createPopperScope, c as withSmartCollisionBoundary, f as VISUALLY_HIDDEN_STYLES, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, n as hideOthers, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content, w as DismissableLayer, y as Root2$1 } from "./Combination-33P1MEPK.js";
5
- import { t as Check } from "./check-DDykH_Yi.js";
6
- import { a as cva, c as useComposedRefs, i as createSlot, l as Events, u as cn } from "./button-BlF-78eJ.js";
4
+ import { C as useLayoutEffect2, E as Primitive$1, M as composeEventHandlers, N as createLucideIcon, O as createSlot$1, S as useId, T as useCallbackRef, _ as Arrow, b as createPopperScope, c as withSmartCollisionBoundary, f as VISUALLY_HIDDEN_STYLES, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, n as hideOthers, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content, w as DismissableLayer, y as Root2$1 } from "./Combination-BOmAhdTT.js";
5
+ import { t as Check } from "./check-S8ldILuD.js";
6
+ import { a as cva, c as useComposedRefs, i as createSlot, l as Events, u as cn } from "./button-D6ZIdUA3.js";
7
7
  import { s as Logger } from "./hotkeys-C4e3s3sJ.js";
8
8
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
9
9
  import { t as require_react_dom } from "./react-dom-DJW8xUDg.js";
@@ -130,7 +130,7 @@ function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
130
130
  return (0, import_react.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(a), () => {
131
131
  $1e5a04cdaf7d1af8$var$listeners.delete(a), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
132
132
  }), []), e ? {
133
- locale: "en-US",
133
+ locale: typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || "en-US",
134
134
  direction: "ltr"
135
135
  } : i;
136
136
  }