@marimo-team/islands 0.23.1-dev2 → 0.23.1-dev20

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 (57) hide show
  1. package/dist/{ConnectedDataExplorerComponent-D08JKcQg.js → ConnectedDataExplorerComponent-Eq8bCe49.js} +11 -11
  2. package/dist/{any-language-editor-BIGc8RUt.js → any-language-editor-BF8ew8wu.js} +4 -4
  3. package/dist/{button-DNlNlZY_.js → button-Cn59RsBF.js} +9 -5
  4. package/dist/{capabilities-Coe9eM9T.js → capabilities-Bml77Di-.js} +1 -1
  5. package/dist/{chat-ui-B9oZ19ii.js → chat-ui-BdrC6z8t.js} +140 -140
  6. package/dist/{check-Cex3x9fD.js → check-C51PA02v.js} +1 -1
  7. package/dist/{copy-BRF7ryOP.js → copy-DzOz_Au7.js} +2 -2
  8. package/dist/{dist-D56NKWim.js → dist-CjLQ79mo.js} +2 -2
  9. package/dist/{error-banner-DexD-5js.js → error-banner-BQcJXy6k.js} +2 -2
  10. package/dist/{esm-BGo_Mcdt.js → esm-BmYNigxi.js} +4 -4
  11. package/dist/{glide-data-editor-BmyQCm0U.js → glide-data-editor-D2X4D_xi.js} +7 -7
  12. package/dist/{input-SSWXiS6n.js → input-BRN2Mjzx.js} +6 -6
  13. package/dist/{label-CIR53v8V.js → label-J1N4mVcg.js} +4 -4
  14. package/dist/{loader-Bd1kgLn7.js → loader-JmfPBSx5.js} +1 -1
  15. package/dist/main.js +4514 -1458
  16. package/dist/{mermaid-BZ2YHhbi.js → mermaid-UMKVHs_g.js} +5 -5
  17. package/dist/{process-output-D_uZ0o1x.js → process-output-D3Q6xBZJ.js} +2215 -2198
  18. package/dist/slides-component-_3tukGh-.js +3065 -0
  19. package/dist/{spec-ByDEU1T3.js → spec-rP6otrXw.js} +3 -3
  20. package/dist/style.css +1 -1
  21. package/dist/{toDate-D0QaHNwR.js → toDate-CfGr2xZ1.js} +3 -3
  22. package/dist/{tooltip-B5EnNyok.js → tooltip-BusGYw7Q.js} +3 -4
  23. package/dist/{types-D4-TD_m0.js → types-D4CFUmPq.js} +2 -2
  24. package/dist/{useAsyncData-BG3ULuDU.js → useAsyncData-BzS3Ai32.js} +1 -1
  25. package/dist/{useDeepCompareMemoize-CkSq3l3_.js → useDeepCompareMemoize-AjORjhpL.js} +4 -4
  26. package/dist/{useIframeCapabilities-CqhrVue6.js → useIframeCapabilities---aRgGdv.js} +1 -1
  27. package/dist/{useLifecycle-2Vh-WDv6.js → useLifecycle-B90lJH4p.js} +3 -3
  28. package/dist/{useTheme-CxjbgkRc.js → useTheme-ytmywQ5O.js} +2 -2
  29. package/dist/{vega-component-z4WGXPkf.js → vega-component-C3akWtJ1.js} +9 -9
  30. package/dist/{zod-D18k8Z52.js → zod-D4UoCYGu.js} +1 -1
  31. package/package.json +1 -1
  32. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +50 -44
  33. package/src/components/slides/__tests__/minimap.test.ts +402 -0
  34. package/src/components/slides/minimap.tsx +534 -0
  35. package/src/components/slides/slide.tsx +29 -0
  36. package/src/components/slides/slides-component.tsx +16 -1
  37. package/src/components/ui/button.tsx +1 -2
  38. package/src/core/cells/__tests__/cells.test.ts +105 -1
  39. package/src/core/cells/cells.ts +43 -0
  40. package/src/core/cells/document-changes.ts +2 -1
  41. package/src/plugins/core/RenderHTML.tsx +9 -0
  42. package/src/plugins/core/__test__/RenderHTML.test.ts +27 -0
  43. package/src/plugins/core/registerReactComponent.tsx +11 -8
  44. package/src/plugins/impl/ButtonPlugin.tsx +4 -6
  45. package/src/plugins/impl/CodeEditorPlugin.tsx +15 -18
  46. package/src/plugins/impl/DataEditorPlugin.tsx +8 -14
  47. package/src/plugins/impl/DataTablePlugin.tsx +1 -6
  48. package/src/plugins/impl/FileUploadPlugin.tsx +39 -43
  49. package/src/plugins/impl/FormPlugin.tsx +2 -6
  50. package/src/plugins/impl/chat/ChatPlugin.tsx +17 -20
  51. package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +5 -8
  52. package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +38 -14
  53. package/src/plugins/impl/vega/VegaPlugin.tsx +5 -8
  54. package/src/plugins/layout/NavigationMenuPlugin.tsx +2 -6
  55. package/src/utils/__tests__/events.test.ts +223 -0
  56. package/src/utils/events.ts +28 -14
  57. package/dist/slides-component-CX2JC-Ws.js +0 -3057
@@ -1,21 +1,21 @@
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-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { u as createLucideIcon } from "./dist-D56NKWim.js";
5
- import { A as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, F as ListFilter, P as SquareFunction, t as augmentSpecWithData } from "./spec-ByDEU1T3.js";
6
- import { a as Type, c as Calendar, i as createReducerAndAtoms, o as ToggleLeft, r as Badge, s as Hash, t as useOnMount } from "./useLifecycle-2Vh-WDv6.js";
7
- import { a as SelectContent, c as SelectLabel, d as SelectValue, i as Select, l as SelectSeparator, n as Strings, o as SelectGroup, s as SelectItem, t as Label, u as SelectTrigger, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./label-CIR53v8V.js";
8
- import { c as Objects, g as Logger, t as Button, y as cn } from "./button-DNlNlZY_.js";
4
+ import { u as createLucideIcon } from "./dist-CjLQ79mo.js";
5
+ import { A as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, F as ListFilter, P as SquareFunction, t as augmentSpecWithData } from "./spec-rP6otrXw.js";
6
+ import { a as Type, c as Calendar, i as createReducerAndAtoms, o as ToggleLeft, r as Badge, s as Hash, t as useOnMount } from "./useLifecycle-B90lJH4p.js";
7
+ import { a as SelectContent, c as SelectLabel, d as SelectValue, i as Select, l as SelectSeparator, n as Strings, o as SelectGroup, s as SelectItem, t as Label, u as SelectTrigger, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./label-J1N4mVcg.js";
8
+ import { c as Objects, g as Logger, t as Button, y as cn } from "./button-Cn59RsBF.js";
9
9
  import "./react-dom-BSUuJjCR.js";
10
10
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
11
- import "./zod-D18k8Z52.js";
12
- import { n as ErrorBanner } from "./error-banner-DexD-5js.js";
13
- import { t as Tooltip } from "./tooltip-B5EnNyok.js";
14
- import { b as createStore, g as useAtomValue, m as Provider, n as useTheme, y as atom } from "./useTheme-CxjbgkRc.js";
11
+ import "./zod-D4UoCYGu.js";
12
+ import { n as ErrorBanner } from "./error-banner-BQcJXy6k.js";
13
+ import { t as Tooltip } from "./tooltip-BusGYw7Q.js";
14
+ import { b as createStore, g as useAtomValue, m as Provider, n as useTheme, y as atom } from "./useTheme-ytmywQ5O.js";
15
15
  import { t as invariant } from "./invariant-e8eBgdux.js";
16
16
  import "./vega-loader.browser-DqEcFOPD.js";
17
- import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-Bd1kgLn7.js";
18
- import { t as useAsyncData } from "./useAsyncData-BG3ULuDU.js";
17
+ import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-JmfPBSx5.js";
18
+ import { t as useAsyncData } from "./useAsyncData-BzS3Ai32.js";
19
19
  import { n as q, r as contains } from "./react-vega-CzRAIHrv.js";
20
20
  import "./defaultLocale-qS7DaAmi.js";
21
21
  import "./defaultLocale-Bxoo2-30.js";
@@ -1,12 +1,12 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import "./compiler-runtime-B_OLMU9S.js";
4
- import { g as Logger } from "./button-DNlNlZY_.js";
4
+ import { g as Logger } from "./button-Cn59RsBF.js";
5
5
  import "./react-dom-BSUuJjCR.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
7
- import "./zod-D18k8Z52.js";
8
- import { n as ErrorBanner } from "./error-banner-DexD-5js.js";
9
- import { t as esm_default, u as CopyClipboardIcon } from "./esm-BGo_Mcdt.js";
7
+ import "./zod-D4UoCYGu.js";
8
+ import { n as ErrorBanner } from "./error-banner-BQcJXy6k.js";
9
+ import { t as esm_default, u as CopyClipboardIcon } from "./esm-BmYNigxi.js";
10
10
  import "./dist-CxZvoNao.js";
11
11
  import "./dist-DbnBiLNH.js";
12
12
  import "./dist-B43sbpd0.js";
@@ -1289,12 +1289,16 @@ const Logger = getLogger(), Events = {
1289
1289
  e2.preventDefault();
1290
1290
  },
1291
1291
  fromInput: (e2) => {
1292
- let _ = e2.target;
1293
- return _.tagName === "INPUT" || _.tagName === "TEXTAREA" || _.tagName.startsWith("MARIMO") || _.isContentEditable || Events.fromCodeMirror(e2);
1292
+ let _ = Events.composedTarget(e2);
1293
+ return _.tagName === "INPUT" || _.tagName === "TEXTAREA" || _.tagName.startsWith("MARIMO") || _.isContentEditable || Events.fromCodeMirror(_);
1294
1294
  },
1295
- fromCodeMirror: (e2) => e2.target.closest(".cm-editor") !== null,
1295
+ fromCodeMirror: (e2) => e2.closest(".cm-editor") !== null,
1296
1296
  shouldIgnoreKeyboardEvent(e2) {
1297
- return e2.target instanceof HTMLInputElement || e2.target instanceof HTMLTextAreaElement || e2.target instanceof HTMLSelectElement || e2.target instanceof HTMLElement && (e2.target.isContentEditable || e2.target.tagName === "BUTTON" || e2.target.closest("[role='textbox']") !== null || e2.target.closest("[contenteditable='true']") !== null || e2.target.closest(".cm-editor") !== null);
1297
+ let _ = Events.composedTarget(e2);
1298
+ return _ instanceof HTMLInputElement || _ instanceof HTMLTextAreaElement || _ instanceof HTMLSelectElement || _ instanceof HTMLElement && (_.isContentEditable || _.tagName === "BUTTON" || _.closest("[role='textbox']") !== null || _.closest("[contenteditable='true']") !== null || Events.fromCodeMirror(_));
1299
+ },
1300
+ composedTarget(e2) {
1301
+ return "composedPath" in e2 && typeof e2.composedPath == "function" ? e2.composedPath()[0] ?? e2.target : e2.target;
1298
1302
  },
1299
1303
  hasModifier: (e2) => e2.ctrlKey || e2.metaKey || e2.altKey || e2.shiftKey,
1300
1304
  isMetaOrCtrl: (e2) => e2.metaKey || e2.ctrlKey
@@ -2020,7 +2024,7 @@ var import_compiler_runtime = require_compiler_runtime(), activeCommon = "active
2020
2024
  v[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => E.current, v[0] = D) : D = v[0], import_react.useImperativeHandle(_, D);
2021
2025
  let O;
2022
2026
  v[1] === C ? O = v[2] : (O = (e3) => {
2023
- C && (Events.shouldIgnoreKeyboardEvent(e3) || parseShortcut(C)(e3) && (e3.preventDefault(), e3.stopPropagation(), (E == null ? void 0 : E.current) && !E.current.disabled && E.current.click()));
2027
+ !C || e3.defaultPrevented || Events.shouldIgnoreKeyboardEvent(e3) || parseShortcut(C)(e3) && (e3.preventDefault(), e3.stopPropagation(), (E == null ? void 0 : E.current) && !E.current.disabled && E.current.click());
2024
2028
  }, v[1] = C, v[2] = O);
2025
2029
  let k = O;
2026
2030
  useEventListener(document, "keydown", k);
@@ -1,4 +1,4 @@
1
- import { g as Logger } from "./button-DNlNlZY_.js";
1
+ import { g as Logger } from "./button-Cn59RsBF.js";
2
2
  import { n as once } from "./once-C_TIu-kR.js";
3
3
  function testStorage(e) {
4
4
  try {