@marimo-team/islands 0.23.10-dev22 → 0.23.10-dev24

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 (40) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DdeG-Hi-.js → ConnectedDataExplorerComponent-DmBropAy.js} +11 -11
  2. package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
  3. package/dist/{any-language-editor-CiES2a2h.js → any-language-editor-QDDrgvfh.js} +4 -4
  4. package/dist/{chat-ui-BTobdMRF.js → chat-ui-BrKSZ7Yu.js} +15 -15
  5. package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
  6. package/dist/{code-visibility-PzFbkUPt.js → code-visibility-CVmFerQM.js} +18 -18
  7. package/dist/{copy-5jQ_kGE1.js → copy-UqRYxiOg.js} +1 -1
  8. package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
  9. package/dist/{error-banner-5bz0L9hS.js → error-banner-Cc0I3C9e.js} +1 -1
  10. package/dist/{esm-CCuYCd3R.js → esm-DzhtSSSq.js} +1 -1
  11. package/dist/{extends-CkydH1Q5.js → extends-C3j0Pbh9.js} +3 -3
  12. package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
  13. package/dist/{glide-data-editor-CRvL2R9l.js → glide-data-editor-Qhu8oCX-.js} +8 -8
  14. package/dist/{html-to-image-CjsdUYrb.js → html-to-image-D5fIgQg_.js} +13 -13
  15. package/dist/{input-DVkbXbIX.js → input-CMYy4hzj.js} +5 -5
  16. package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
  17. package/dist/main.js +29 -29
  18. package/dist/{mermaid-lXOw5Py9.js → mermaid-zuLgJ8J8.js} +4 -4
  19. package/dist/{process-output-CI8a-CUx.js → process-output-B59yoBQx.js} +3 -3
  20. package/dist/{reveal-component-DEUT00rM.js → reveal-component-bghJ00sb.js} +561 -560
  21. package/dist/{spec-DMRQmLOc.js → spec-X7FwLJni.js} +4 -4
  22. package/dist/{strings-GCJA9n6d.js → strings-J57tzLr3.js} +22 -22
  23. package/dist/style.css +1 -1
  24. package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
  25. package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
  26. package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
  27. package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
  28. package/dist/{useDateFormatter-BRcO_TGJ.js → useDateFormatter-QB-3MpYr.js} +2 -2
  29. package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
  30. package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
  31. package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
  32. package/dist/{vega-component-Dq-SH463.js → vega-component-9h1ACS78.js} +8 -8
  33. package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
  34. package/package.json +1 -1
  35. package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
  36. package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
  37. package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
  38. package/src/components/slides/reveal-component.tsx +4 -0
  39. package/src/components/ui/reorderable-list.tsx +13 -0
  40. package/src/utils/lazy.ts +6 -1
@@ -1,7 +1,7 @@
1
- import { u as createLucideIcon } from "./dist-C1BYNeCR.js";
2
- import { s as Hash } from "./useLifecycle-BBO9PIph.js";
3
- import { i as Table, o as ChartPie } from "./useDateFormatter-BRcO_TGJ.js";
4
- import { C as logNever } from "./strings-GCJA9n6d.js";
1
+ import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
2
+ import { s as Hash } from "./useLifecycle-00mO3OSS.js";
3
+ import { i as Table, o as ChartPie } from "./useDateFormatter-QB-3MpYr.js";
4
+ import { C as logNever } from "./strings-J57tzLr3.js";
5
5
  var AlignCenterVertical = createLucideIcon("align-center-vertical", [
6
6
  ["path", {
7
7
  d: "M12 2v20",
@@ -2,11 +2,11 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, r as cva } from "./button-C5K9fIPF.js";
3
3
  import { t as require_react } from "./react-DA-nE2FX.js";
4
4
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
5
- import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-C1BYNeCR.js";
6
- import { t as Check } from "./check-DTbrK0zt.js";
5
+ import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-Dk6PV_d3.js";
6
+ import { t as Check } from "./check-BCaJeT-J.js";
7
7
  import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
8
8
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
9
- import { $ as StyleNamespace, X as withFullScreenAsRoot, Z as withSmartCollisionBoundary, _t as Primitive, at as FocusScope, et as hideOthers, ft as useControllableState, gt as createContextScope, it as Portal, lt as useCallbackRef, mt as composeEventHandlers, pt as useLayoutEffect2, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId } from "./zod-CoBiJ5v4.js";
9
+ import { Q as withSmartCollisionBoundary, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ht as composeEventHandlers, it as useFocusGuards, mt as useLayoutEffect2, nt as Combination_default, ot as FocusScope, pt as useControllableState, tt as hideOthers, ut as useCallbackRef, vt as Primitive } from "./zod-aLSua2NL.js";
10
10
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
11
11
  var ChevronDown = createLucideIcon("chevron-down", [["path", {
12
12
  d: "m6 9 6 6 6-6",
@@ -95,7 +95,7 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
95
95
  "ArrowUp",
96
96
  "ArrowDown"
97
97
  ], SELECTION_KEYS = [" ", "Enter"], SELECT_NAME = "Select", [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME), [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [createCollectionScope, createPopperScope]), usePopperScope = createPopperScope(), [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME), [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME), Select$1 = (e) => {
98
- let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: c, value: l, defaultValue: u, onValueChange: d, dir: f, name: p, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), E = useDirection(f), [D, k] = useControllableState({
98
+ let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: c, value: l, defaultValue: u, onValueChange: d, dir: f, name: p, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), E = useDirection(f), [O, k] = useControllableState({
99
99
  prop: o,
100
100
  defaultProp: s ?? false,
101
101
  onChange: c,
@@ -105,7 +105,7 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
105
105
  defaultProp: u,
106
106
  onChange: d,
107
107
  caller: SELECT_NAME
108
- }), M = import_react.useRef(null), N = b ? v || !!b.closest("form") : true, [P, F] = import_react.useState(/* @__PURE__ */ new Set()), I = Array.from(P).map((e2) => e2.props.value).join(";");
108
+ }), M = import_react.useRef(null), N = b ? v || !!b.closest("form") : true, [F, I] = import_react.useState(/* @__PURE__ */ new Set()), L = Array.from(F).map((e2) => e2.props.value).join(";");
109
109
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
110
110
  ...y,
111
111
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectProvider, {
@@ -120,7 +120,7 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
120
120
  contentId: useId(),
121
121
  value: A,
122
122
  onValueChange: j,
123
- open: D,
123
+ open: O,
124
124
  onOpenChange: k,
125
125
  dir: E,
126
126
  triggerPointerDownPosRef: M,
@@ -130,10 +130,10 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
130
130
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectNativeOptionsProvider, {
131
131
  scope: e.__scopeSelect,
132
132
  onNativeOptionAdd: import_react.useCallback((e2) => {
133
- F((i2) => new Set(i2).add(e2));
133
+ I((i2) => new Set(i2).add(e2));
134
134
  }, []),
135
135
  onNativeOptionRemove: import_react.useCallback((e2) => {
136
- F((i2) => {
136
+ I((i2) => {
137
137
  let a2 = new Set(i2);
138
138
  return a2.delete(e2), a2;
139
139
  });
@@ -150,8 +150,8 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
150
150
  onChange: (e2) => j(e2.target.value),
151
151
  disabled: g,
152
152
  form: v,
153
- children: [A === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "" }) : null, Array.from(P)]
154
- }, I) : null]
153
+ children: [A === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "" }) : null, Array.from(F)]
154
+ }, L) : null]
155
155
  })
156
156
  });
157
157
  };
@@ -247,16 +247,16 @@ var CONTENT_NAME = "SelectContent", SelectContent$1 = import_react.forwardRef((e
247
247
  });
248
248
  SelectContent$1.displayName = CONTENT_NAME;
249
249
  var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME), CONTENT_IMPL_NAME = "SelectContentImpl", Slot = createSlot("SelectContent.RemoveScroll"), SelectContentImpl = import_react.forwardRef((e, i) => {
250
- let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: l, onPointerDownOutside: u, side: d, sideOffset: f, align: p, alignOffset: m, arrowPadding: h, collisionBoundary: g, collisionPadding: _, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [T, O] = import_react.useState(null), k = useComposedRefs(i, (e2) => w(e2)), [A, j] = import_react.useState(null), [N, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
250
+ let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: l, onPointerDownOutside: u, side: d, sideOffset: f, align: p, alignOffset: m, arrowPadding: h, collisionBoundary: g, collisionPadding: _, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [T, D] = import_react.useState(null), O = useComposedRefs(i, (e2) => w(e2)), [j, P] = import_react.useState(null), [I, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
251
251
  import_react.useEffect(() => {
252
252
  if (C) return hideOthers(C);
253
253
  }, [C]), useFocusGuards();
254
254
  let H = import_react.useCallback((e2) => {
255
255
  let [i2, ...a2] = R().map((e3) => e3.ref.current), [o2] = a2.slice(-1), s2 = document.activeElement;
256
256
  for (let a3 of e2) if (a3 === s2 || (a3 == null ? void 0 : a3.scrollIntoView({ block: "nearest" }), a3 === i2 && T && (T.scrollTop = 0), a3 === o2 && T && (T.scrollTop = T.scrollHeight), a3 == null ? void 0 : a3.focus(), document.activeElement !== s2)) return;
257
- }, [R, T]), U = import_react.useCallback(() => H([A, C]), [
257
+ }, [R, T]), U = import_react.useCallback(() => H([j, C]), [
258
258
  H,
259
- A,
259
+ j,
260
260
  C
261
261
  ]);
262
262
  import_react.useEffect(() => {
@@ -299,7 +299,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
299
299
  a2 && setTimeout(() => a2.ref.current.focus());
300
300
  }), J = import_react.useCallback((e2, i2, a2) => {
301
301
  let o2 = !V.current && !a2;
302
- (S.value !== void 0 && S.value === i2 || o2) && (j(e2), o2 && (V.current = true));
302
+ (S.value !== void 0 && S.value === i2 || o2) && (P(e2), o2 && (V.current = true));
303
303
  }, [S.value]), Y = import_react.useCallback(() => C == null ? void 0 : C.focus(), [C]), Z = import_react.useCallback((e2, i2, a2) => {
304
304
  let o2 = !V.current && !a2;
305
305
  (S.value !== void 0 && S.value === i2 || o2) && L(e2);
@@ -319,13 +319,13 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
319
319
  scope: a,
320
320
  content: C,
321
321
  viewport: T,
322
- onViewportChange: O,
322
+ onViewportChange: D,
323
323
  itemRefCallback: J,
324
- selectedItem: A,
324
+ selectedItem: j,
325
325
  onItemLeave: Y,
326
326
  itemTextRefCallback: Z,
327
327
  focusSelectedItem: U,
328
- selectedItemText: N,
328
+ selectedItemText: I,
329
329
  position: o,
330
330
  isPositioned: z,
331
331
  searchRef: K,
@@ -358,7 +358,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
358
358
  ...x,
359
359
  ...$,
360
360
  onPlaced: () => B(true),
361
- ref: k,
361
+ ref: O,
362
362
  style: {
363
363
  display: "flex",
364
364
  flexDirection: "column",
@@ -399,7 +399,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
399
399
  let o2 = i2.right - s2.right, c2 = window.innerWidth - a2.right - o2, l2 = window.innerWidth - e2.right - c2, u3 = e2.width + l2, f3 = Math.max(u3, i2.width), p2 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p2 - f3)]);
400
400
  d.style.minWidth = u3 + "px", d.style.right = m3 + "px";
401
401
  }
402
- let c = g(), u2 = window.innerHeight - CONTENT_MARGIN * 2, f2 = y.scrollHeight, m2 = window.getComputedStyle(p), h2 = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = h2 + v2 + f2 + C2 + S2, T = Math.min(b.offsetHeight * 5, w2), E2 = window.getComputedStyle(y), D = parseInt(E2.paddingTop, 10), O = parseInt(E2.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = u2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = h2 + v2 + M, P = w2 - N;
402
+ let c = g(), u2 = window.innerHeight - CONTENT_MARGIN * 2, f2 = y.scrollHeight, m2 = window.getComputedStyle(p), h2 = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = h2 + v2 + f2 + C2 + S2, T2 = Math.min(b.offsetHeight * 5, w2), E = window.getComputedStyle(y), D = parseInt(E.paddingTop, 10), O = parseInt(E.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = u2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = h2 + v2 + M, P = w2 - N;
403
403
  if (N <= k) {
404
404
  let e3 = c.length > 0 && b === c[c.length - 1].ref.current;
405
405
  d.style.bottom = "0px";
@@ -411,7 +411,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
411
411
  let i3 = Math.max(k, h2 + y.offsetTop + (e3 ? D : 0) + j) + P;
412
412
  d.style.height = i3 + "px", y.scrollTop = N - k + y.offsetTop;
413
413
  }
414
- d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight = T + "px", d.style.maxHeight = u2 + "px", o == null ? void 0 : o(), requestAnimationFrame(() => _.current = true);
414
+ d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight = T2 + "px", d.style.maxHeight = u2 + "px", o == null ? void 0 : o(), requestAnimationFrame(() => _.current = true);
415
415
  }
416
416
  }, [
417
417
  g,
@@ -426,9 +426,9 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
426
426
  o
427
427
  ]);
428
428
  useLayoutEffect2(() => C(), [C]);
429
- let [w, E] = import_react.useState();
429
+ let [w, T] = import_react.useState();
430
430
  return useLayoutEffect2(() => {
431
- p && E(window.getComputedStyle(p).zIndex);
431
+ p && T(window.getComputedStyle(p).zIndex);
432
432
  }, [p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectViewportProvider, {
433
433
  scope: a,
434
434
  contentWrapper: d,