@marimo-team/islands 0.23.7-dev72 → 0.23.7-dev74
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.
- package/dist/{code-visibility-BQR23MFf.js → code-visibility-M0Bv9o3Y.js} +1 -1
- package/dist/main.js +3 -3
- package/dist/{reveal-component-vcNyeDKK.js → reveal-component-D7cJUaYJ.js} +4 -1
- package/package.json +1 -1
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/slides/reveal-component.tsx +10 -0
|
@@ -35172,7 +35172,7 @@ ${_}`,
|
|
|
35172
35172
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
35173
35173
|
}
|
|
35174
35174
|
}
|
|
35175
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-
|
|
35175
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.7-dev74");
|
|
35176
35176
|
showCodeInRunModeAtom = atom(true);
|
|
35177
35177
|
atom(null);
|
|
35178
35178
|
var import_compiler_runtime = require_compiler_runtime();
|
package/dist/main.js
CHANGED
|
@@ -26,7 +26,7 @@ import { $ as useCellActions, At as DeferredRequestRegistry, B as safeExtractSet
|
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BOg95xG5.js";
|
|
27
27
|
import { o as useSize, s as Root$2, u as createLucideIcon } from "./dist-D3ZI9nhS.js";
|
|
28
28
|
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-hVaaZsY5.js";
|
|
29
|
-
import { $ as DelayMount, A as contextAwarePanelOwner, At as Kbd, B as Provider$1, Bt as Ellipsis, C as prettifyRowCount, Ct as TabsTrigger, D as ContextAwarePanelItem, Dt as LazyVegaEmbed, E as ComboboxItem, Et as ChartLoadingState, F as Toggle, Ft as TextWrap, G as TableHeader, Gt as ChevronsLeft, H as TableBody, Ht as Code, It as GripHorizontal, J as generateColumns, Jt as ArrowDownWideNarrow, K as TableRow, Kt as ChevronsDownUp, Lt as Funnel, M as isCellAwareAtom, Mt as EmotionCacheProvider, N as SlotNames, Nt as $fae977aafc393c5c$export$588937bcd60ade55, O as PANEL_TYPES, Ot as useOverflowDetection, P as slotsController, Pt as $fae977aafc393c5c$export$6b862160d295c8e, Q as ColumnChartSpecModel, Rt as EyeOff, S as prettifyRowColumnCount, St as TabsList, T as Combobox, Tt as ChartInfoState, U as TableCell, Ut as ChevronsUpDown, V as Table, Vt as Download, W as TableHead, Wt as ChevronsRight, X as renderCellValue, Y as inferFieldTypes, Z as ColumnChartContext, _ as downloadBlob, _t as CommandList, at as getPageIndexForRow, b as Progress, bt as Tabs, c as Slide, ct as INDEX_COLUMN_NAME, d as JsonOutput, dt as toFieldTypes, et as useIntersectionObserver, f as OutputArea, ft as getMimeValues, g as ADD_PRINTING_CLASS, gt as CommandItem, h as InstallPackageButton, ht as CommandInput, it as filtersToFilterGroup, j as contextAwarePanelType, jt as HtmlOutput, k as contextAwarePanelOpen, kt as RenderTextWithLinks, l as RadioGroup, lt as SELECT_COLUMN_ID, m as DataTable, mt as CommandEmpty, n as marimoVersionAtom, nt as DatePicker, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as loadTableAndRawData, p as OutputRenderer, pt as Command, q as NAMELESS_COLUMN_PREFIX, qt as ChevronLeft, r as showCodeInRunModeAtom, rt as DateRangePicker, st as loadTableData, t as useNotebookCodeAvailable, tt as usePrevious$1, u as RadioGroupItem, ut as TOO_MANY_ROWS, v as downloadByURL, vt as CommandSeparator, w as useInternalStateWithSync, wt as ChartErrorState, x as Filenames, xt as TabsContent, y as downloadHTMLAsImage, yt as Maps, z as Fill, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as DelayMount, A as contextAwarePanelOwner, At as Kbd, B as Provider$1, Bt as Ellipsis, C as prettifyRowCount, Ct as TabsTrigger, D as ContextAwarePanelItem, Dt as LazyVegaEmbed, E as ComboboxItem, Et as ChartLoadingState, F as Toggle, Ft as TextWrap, G as TableHeader, Gt as ChevronsLeft, H as TableBody, Ht as Code, It as GripHorizontal, J as generateColumns, Jt as ArrowDownWideNarrow, K as TableRow, Kt as ChevronsDownUp, Lt as Funnel, M as isCellAwareAtom, Mt as EmotionCacheProvider, N as SlotNames, Nt as $fae977aafc393c5c$export$588937bcd60ade55, O as PANEL_TYPES, Ot as useOverflowDetection, P as slotsController, Pt as $fae977aafc393c5c$export$6b862160d295c8e, Q as ColumnChartSpecModel, Rt as EyeOff, S as prettifyRowColumnCount, St as TabsList, T as Combobox, Tt as ChartInfoState, U as TableCell, Ut as ChevronsUpDown, V as Table, Vt as Download, W as TableHead, Wt as ChevronsRight, X as renderCellValue, Y as inferFieldTypes, Z as ColumnChartContext, _ as downloadBlob, _t as CommandList, at as getPageIndexForRow, b as Progress, bt as Tabs, c as Slide, ct as INDEX_COLUMN_NAME, d as JsonOutput, dt as toFieldTypes, et as useIntersectionObserver, f as OutputArea, ft as getMimeValues, g as ADD_PRINTING_CLASS, gt as CommandItem, h as InstallPackageButton, ht as CommandInput, it as filtersToFilterGroup, j as contextAwarePanelType, jt as HtmlOutput, k as contextAwarePanelOpen, kt as RenderTextWithLinks, l as RadioGroup, lt as SELECT_COLUMN_ID, m as DataTable, mt as CommandEmpty, n as marimoVersionAtom, nt as DatePicker, o as SLIDE_TYPE_OPTIONS_BY_VALUE, ot as loadTableAndRawData, p as OutputRenderer, pt as Command, q as NAMELESS_COLUMN_PREFIX, qt as ChevronLeft, r as showCodeInRunModeAtom, rt as DateRangePicker, st as loadTableData, t as useNotebookCodeAvailable, tt as usePrevious$1, u as RadioGroupItem, ut as TOO_MANY_ROWS, v as downloadByURL, vt as CommandSeparator, w as useInternalStateWithSync, wt as ChartErrorState, x as Filenames, xt as TabsContent, y as downloadHTMLAsImage, yt as Maps, z as Fill, __tla as __tla_2 } from "./code-visibility-M0Bv9o3Y.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-BF6-z62y.js";
|
|
31
31
|
import { t as Check } from "./check-BcUIXnUT.js";
|
|
32
32
|
import { A as Trigger$1, C as $a916eb452884faea$export$b7a616150fdb9f44, E as $18f2051aff69b9bf$export$a54013f0d02a8f82, F as X, L as ChevronDown, M as usePrevious$2, N as useDirection, P as createCollection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as clamp$2, k as Icon, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, x as assertNever } from "./strings-BiIhGaI8.js";
|
|
@@ -35970,7 +35970,7 @@ ${c}
|
|
|
35970
35970
|
if (l && l !== "slide") return l;
|
|
35971
35971
|
if (c == null ? void 0 : c.has(e)) return "skip";
|
|
35972
35972
|
}
|
|
35973
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
35973
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-D7cJUaYJ.js"));
|
|
35974
35974
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
35975
35975
|
var _a3;
|
|
35976
35976
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { cellsWithOutput: h, skippedIds: g, slideTypes: _, startCellIndex: v } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -35999,7 +35999,7 @@ ${c}
|
|
|
35999
35999
|
children: w
|
|
36000
36000
|
})
|
|
36001
36001
|
}) : (0, import_jsx_runtime.jsxs)("div", {
|
|
36002
|
-
className: "pr-18 pb-2 flex flex-row gap-2 min-h-0",
|
|
36002
|
+
className: "flex-1 pr-18 pb-2 flex flex-row gap-2 min-h-0",
|
|
36003
36003
|
children: [
|
|
36004
36004
|
(0, import_jsx_runtime.jsx)(SlidesMinimap, {
|
|
36005
36005
|
cells: h,
|
|
@@ -9,7 +9,7 @@ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
|
9
9
|
import { ct as kioskModeAtom } from "./html-to-image-CpggM7u1.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-BOg95xG5.js";
|
|
11
11
|
import { u as createLucideIcon } from "./dist-D3ZI9nhS.js";
|
|
12
|
-
import { Ht as Code, I as Panel, L as PanelGroup, R as PanelResizeHandle, Rt as EyeOff, a as DEFAULT_SLIDE_TYPE, c as Slide, i as DEFAULT_DECK_TRANSITION, s as SlideSidebar, t as useNotebookCodeAvailable, zt as Expand } from "./code-visibility-
|
|
12
|
+
import { Ht as Code, I as Panel, L as PanelGroup, R as PanelResizeHandle, Rt as EyeOff, a as DEFAULT_SLIDE_TYPE, c as Slide, i as DEFAULT_DECK_TRANSITION, s as SlideSidebar, t as useNotebookCodeAvailable, zt as Expand } from "./code-visibility-M0Bv9o3Y.js";
|
|
13
13
|
import { q as useDebouncedCallback } from "./input-D4kjoQUB.js";
|
|
14
14
|
import "./toDate-CIpC_34u.js";
|
|
15
15
|
import "./react-dom-BWRJ_g_k.js";
|
|
@@ -7274,11 +7274,14 @@ var NotesAside = (e5) => {
|
|
|
7274
7274
|
let zo = useEvent_default(() => {
|
|
7275
7275
|
(0, import_react.startTransition)(() => To((e6) => !e6));
|
|
7276
7276
|
}), Bo = useEvent_default((e6) => {
|
|
7277
|
+
var _a3;
|
|
7277
7278
|
Ro(e6), Do && e6.addKeyBinding({
|
|
7278
7279
|
keyCode: 67,
|
|
7279
7280
|
key: "C",
|
|
7280
7281
|
description: "Toggle code editor"
|
|
7281
7282
|
}, zo);
|
|
7283
|
+
let t = (_a3 = e6.getSlidesElement()) == null ? void 0 : _a3.closest(".reveal");
|
|
7284
|
+
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: true }));
|
|
7282
7285
|
}), Vo = (0, import_react.useMemo)(() => {
|
|
7283
7286
|
if (!ko) return null;
|
|
7284
7287
|
let e6 = No.get(ko.id);
|
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@ export const SlidesLayoutRenderer: React.FC<Props> = ({
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
return (
|
|
86
|
-
<div className="pr-18 pb-2 flex flex-row gap-2 min-h-0">
|
|
86
|
+
<div className="flex-1 pr-18 pb-2 flex flex-row gap-2 min-h-0">
|
|
87
87
|
<SlidesMinimap
|
|
88
88
|
cells={cellsWithOutput}
|
|
89
89
|
thumbnailWidth={220}
|
|
@@ -357,6 +357,16 @@ const RevealSlidesComponent = ({
|
|
|
357
357
|
toggleShowCode,
|
|
358
358
|
);
|
|
359
359
|
}
|
|
360
|
+
|
|
361
|
+
// Reveal listens for `keydown` on `document` and bails when
|
|
362
|
+
// `document.activeElement` is an input/contenteditable (e.g. the speaker
|
|
363
|
+
// notes textarea below the deck). Park focus on the deck wrapper so arrow
|
|
364
|
+
// keys reliably advance slides without the user having to click first.
|
|
365
|
+
const revealEl = deck.getSlidesElement()?.closest(".reveal");
|
|
366
|
+
if (revealEl instanceof HTMLElement) {
|
|
367
|
+
revealEl.tabIndex = -1;
|
|
368
|
+
revealEl.focus({ preventScroll: true });
|
|
369
|
+
}
|
|
360
370
|
});
|
|
361
371
|
|
|
362
372
|
const activeSubslide = useMemo(() => {
|