@marimo-team/islands 0.23.16-dev1 → 0.23.16-dev3

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.
@@ -9,7 +9,7 @@ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
9
9
  import { dt as kioskModeAtom, ht as outputIsStale } from "./html-to-image-DDENewl2.js";
10
10
  import "./chunk-5FQGJX7Z-B9WoXK1R.js";
11
11
  import { u as createLucideIcon } from "./dist-B96tMAst.js";
12
- import { a as DEFAULT_DECK_VERTICAL_ALIGN, c as SlideSidebar, cn as Expand, ct as Panel, dn as Code, i as DEFAULT_DECK_TRANSITION, l as Slide, lt as PanelGroup, o as DEFAULT_SLIDE_TYPE, sn as EyeOff, t as useNotebookCodeAvailable, ut as PanelResizeHandle } from "./code-visibility-BasuGAOF.js";
12
+ import { a as DEFAULT_DECK_VERTICAL_ALIGN, c as SlideSidebar, cn as EyeOff, ct as Panel, fn as Code, i as DEFAULT_DECK_TRANSITION, l as Slide, ln as Expand, lt as PanelGroup, o as DEFAULT_SLIDE_TYPE, t as useNotebookCodeAvailable, ut as PanelResizeHandle } from "./code-visibility-D-umBozt.js";
13
13
  import { X as useDebouncedCallback } from "./input-DStQIuqD.js";
14
14
  import "./toDate-B3IRfHhw.js";
15
15
  import "./react-dom-BTJzcVJ9.js";
@@ -7310,7 +7310,7 @@ var ParkedPreviewContent = (e5) => {
7310
7310
  output: c,
7311
7311
  stale: u
7312
7312
  }), t[5] = n.id, t[6] = n.output, t[7] = n.status, t[8] = u, t[9] = f) : f = t[9], f;
7313
- }, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: l, activeIndex: u, onSlideChange: f, mode: co, configWidth: lo, isEditable: fo = false }) => {
7313
+ }, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: l, activeIndex: u, onSlideChange: f, mode: co, configWidth: lo, isEditable: po = false }) => {
7314
7314
  var _a2, _b2, _c;
7315
7315
  let go = (0, import_react.useRef)(null), _o = (0, import_react.useRef)(null), { width: Co, height: wo } = useSlideDimensions(go), Eo = useFullScreenElement() != null, Do = useAtomValue(kioskModeAtom), Oo = (0, import_react.useMemo)(() => Do ? [] : [ce], [Do]), [ko, Ao] = (0, import_react.useState)(() => /* @__PURE__ */ new Set()), jo = useNotebookCodeAvailable(e5), Mo = !isIslands() && jo, No = u == null ? void 0 : e5[u], Po = No ?? e5.at(0), { parkedPreviewCell: Fo, isHeldEdit: Io, isNoOutputPreview: Lo, heldEditCellId: Ro, heldShowsCode: zo, toggleHeldShowsCode: Bo } = useParkedPreview({
7316
7316
  activeCell: No,
@@ -7414,7 +7414,7 @@ var ParkedPreviewContent = (e5) => {
7414
7414
  useEventListener(document, "keydown", is, { capture: true });
7415
7415
  let os = Io ? null : Lo ? "Hidden as there is no output" : "Skipped in presentation", ss = Io ? zo : Vo(Fo == null ? void 0 : Fo.id), cs = parkedRendersSource({
7416
7416
  isNoOutputPreview: Lo,
7417
- isEditable: fo,
7417
+ isEditable: po,
7418
7418
  showCode: ss
7419
7419
  }), ls = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
7420
7420
  ref: go,
@@ -7438,13 +7438,13 @@ var ParkedPreviewContent = (e5) => {
7438
7438
  children: Go.stacks.map((e6, t) => e6.subslides.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
7439
7439
  subslide: e6.subslides[0],
7440
7440
  resolveShowCode: Vo,
7441
- isEditable: fo,
7441
+ isEditable: po,
7442
7442
  slideConfigs: o.cells,
7443
7443
  contentStyle: Yo
7444
7444
  }, t) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ne, { children: e6.subslides.map((e7, t2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
7445
7445
  subslide: e7,
7446
7446
  resolveShowCode: Vo,
7447
- isEditable: fo,
7447
+ isEditable: po,
7448
7448
  slideConfigs: o.cells,
7449
7449
  contentStyle: Yo
7450
7450
  }, t2)) }, t))
@@ -7463,7 +7463,7 @@ var ParkedPreviewContent = (e5) => {
7463
7463
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ParkedPreviewContent, {
7464
7464
  cell: Fo,
7465
7465
  isNoOutputPreview: Lo,
7466
- isEditable: fo,
7466
+ isEditable: po,
7467
7467
  showCode: ss
7468
7468
  })
7469
7469
  })