@marimo-team/islands 0.23.11-dev29 → 0.23.11-dev30

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 (43) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BnPKA-xR.js → ConnectedDataExplorerComponent-WqG-xX4l.js} +13 -13
  2. package/dist/{ErrorBoundary-DpbaKVv7.js → ErrorBoundary-BNx_OSVo.js} +2 -2
  3. package/dist/{any-language-editor-CAgFD4Kd.js → any-language-editor-rPSlOll9.js} +5 -5
  4. package/dist/{button-C5K9fIPF.js → button-vQhauTmO.js} +20 -0
  5. package/dist/{capabilities-BceAxrAW.js → capabilities-BEHzIS99.js} +1 -1
  6. package/dist/{chat-ui-m1SnDPdw.js → chat-ui-k2kqhCv5.js} +16 -16
  7. package/dist/{check-BCaJeT-J.js → check-nrzHDi45.js} +1 -1
  8. package/dist/{code-visibility-BtAh8-ga.js → code-visibility-CnZ5SJV5.js} +21 -21
  9. package/dist/{copy-UqRYxiOg.js → copy-UhDed7D4.js} +2 -2
  10. package/dist/{dist-Dk6PV_d3.js → dist-DYGLrbYQ.js} +2 -2
  11. package/dist/{error-banner-CJXYJ6Sb.js → error-banner-BHAkVFc2.js} +2 -2
  12. package/dist/{esm-BaH2eg5-.js → esm-Bqu9AE2K.js} +1 -1
  13. package/dist/{extends-D_hDsj6R.js → extends-9Yl5BEcg.js} +4 -4
  14. package/dist/{formats-BOYEeoL_.js → formats-BV4bOfMI.js} +3 -3
  15. package/dist/{glide-data-editor-A_l7_PQZ.js → glide-data-editor-BDTq6YUb.js} +9 -9
  16. package/dist/{html-to-image-BJbLjZyG.js → html-to-image-C86pQALH.js} +15 -15
  17. package/dist/{input-Cn-SZdXY.js → input-AKkGXdyV.js} +6 -6
  18. package/dist/{label-CC4ytI1X.js → label-E3ZJXHu8.js} +2 -2
  19. package/dist/{loader-BWLPpjKK.js → loader-YPuQvn1Y.js} +1 -1
  20. package/dist/main.js +32 -32
  21. package/dist/{mermaid-Br973nIL.js → mermaid-QFAR9YgY.js} +5 -5
  22. package/dist/{process-output-Dw_ngzH2.js → process-output-nNw4OpSj.js} +3 -3
  23. package/dist/{reveal-component-CiJIhe23.js → reveal-component-O3jTcQna.js} +10 -10
  24. package/dist/{spec-f8-xgaui.js → spec-B45_YCNI.js} +4 -4
  25. package/dist/{strings-J57tzLr3.js → strings-Cq2s9_EQ.js} +4 -4
  26. package/dist/{swiper-component-B2t5sN1q.js → swiper-component-BNa_4kh2.js} +2 -2
  27. package/dist/{toDate-B4-pUFYh.js → toDate-Do1xRzAo.js} +3 -3
  28. package/dist/{tooltip-DpcyNkQ2.js → tooltip-Bz3OAwrU.js} +3 -3
  29. package/dist/{types-ChtMFmZ2.js → types-D8gEGs4R.js} +1 -1
  30. package/dist/{useAsyncData-B3PfqrwD.js → useAsyncData-CL3o2p4i.js} +1 -1
  31. package/dist/{useDateFormatter-QB-3MpYr.js → useDateFormatter-BC6iSz9g.js} +2 -2
  32. package/dist/{useDeepCompareMemoize-YInAvJP3.js → useDeepCompareMemoize-BPx2MuOK.js} +1 -1
  33. package/dist/{useIframeCapabilities-C4JTXTIh.js → useIframeCapabilities-C6Ta3EyP.js} +1 -1
  34. package/dist/{useLifecycle-B3NOEiY5.js → useLifecycle-C3Ec71q0.js} +3 -3
  35. package/dist/{useTheme-BPeFKs1Q.js → useTheme-ZhT6uIu3.js} +2 -2
  36. package/dist/{vega-component-CMicMpWX.js → vega-component-C3AWYGAL.js} +10 -10
  37. package/dist/{zod-aLSua2NL.js → zod-DXqkaI_w.js} +1 -1
  38. package/package.json +1 -1
  39. package/src/components/editor/actions/useNotebookActions.tsx +27 -4
  40. package/src/components/editor/actions/useSetCodeVisibility.ts +57 -0
  41. package/src/core/edit-app.tsx +14 -0
  42. package/src/core/hotkeys/hotkeys.ts +20 -0
  43. package/src/components/editor/actions/useHideAllMarkdownCode.ts +0 -53
package/dist/main.js CHANGED
@@ -18,34 +18,34 @@ var __privateWrapper = (obj, member, setter, getter) => ({
18
18
  }
19
19
  });
20
20
  import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
21
- import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as useEventListener, m as useComposedRefs, n as buttonVariants, o as isPlatformMac, p as composeRefs, r as cva, t as Button, u as Slot, v as Functions, y as throwNotImplemented } from "./button-C5K9fIPF.js";
21
+ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as useEventListener, m as useComposedRefs, n as buttonVariants, o as isPlatformMac, p as composeRefs, r as cva, t as Button, u as Slot, v as Functions, y as throwNotImplemented } from "./button-vQhauTmO.js";
22
22
  import { t as require_react } from "./react-DA-nE2FX.js";
23
23
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
24
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UqRYxiOg.js";
25
- import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-BJbLjZyG.js";
24
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UhDed7D4.js";
25
+ import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-C86pQALH.js";
26
26
  import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BbqSm5gU.js";
27
- import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-Dk6PV_d3.js";
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-f8-xgaui.js";
29
- import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-BtAh8-ga.js";
30
- import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-B3NOEiY5.js";
31
- import { t as Check } from "./check-BCaJeT-J.js";
32
- import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-J57tzLr3.js";
33
- import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-Cn-SZdXY.js";
34
- import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-B4-pUFYh.js";
35
- import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-Dw_ngzH2.js";
36
- import { n as Trash, r as Pencil, t as BulkEdit } from "./types-ChtMFmZ2.js";
37
- import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DpbaKVv7.js";
27
+ import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DYGLrbYQ.js";
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-B45_YCNI.js";
29
+ import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-CnZ5SJV5.js";
30
+ import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-C3Ec71q0.js";
31
+ import { t as Check } from "./check-nrzHDi45.js";
32
+ import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-Cq2s9_EQ.js";
33
+ import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-AKkGXdyV.js";
34
+ import { _ as isWasm, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as Deferred, m as require_cuid2, u as getStaticVirtualFiles, v as CircleQuestionMark } from "./toDate-Do1xRzAo.js";
35
+ import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, d as Square, f as File, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-nNw4OpSj.js";
36
+ import { n as Trash, r as Pencil, t as BulkEdit } from "./types-D8gEGs4R.js";
37
+ import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-BNx_OSVo.js";
38
38
  import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
39
39
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
40
- import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-aLSua2NL.js";
41
- import { a as prettyError, i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-CJXYJ6Sb.js";
42
- import { t as Label } from "./label-CC4ytI1X.js";
43
- import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-DpcyNkQ2.js";
44
- import { f as CopyClipboardIcon } from "./extends-D_hDsj6R.js";
40
+ import { $ as isInVscodeExtension, A as looseObject, B as union, C as any, F as optional, G as parse$1, I as record, J as prettifyError, K as parseAsync, N as number, O as lazy$2, P as object, R as string, S as _null, T as boolean, U as ZodError, V as unknown, _ as ZodString, _t as createContextScope, a as ZodIssueCode, b as _enum, c as ZodBoolean, ct as DismissableLayer, d as ZodDiscriminatedUnion, dt as useId$11, et as StyleNamespace, f as ZodEnum, ft as Presence, g as ZodOptional, h as ZodObject, ht as composeEventHandlers$1, i as string$1, j as nan, k as literal, l as ZodDate, m as ZodNumber, mt as useLayoutEffect2, n as date, o as ZodAny, p as ZodLiteral, pt as useControllableState, q as $ZodError, r as number$1, rt as __awaiter, s as ZodArray, t as zod_default, u as ZodDefault, ut as useCallbackRef, v as ZodType, vt as Primitive, w as array, x as _instanceof, y as ZodUnion, yt as dispatchDiscreteCustomEvent, z as tuple } from "./zod-DXqkaI_w.js";
41
+ import { a as prettyError, i as FunctionNotFoundError, n as ErrorBanner, r as CellNotInitializedError, t as Banner } from "./error-banner-BHAkVFc2.js";
42
+ import { t as Label } from "./label-E3ZJXHu8.js";
43
+ import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-Bz3OAwrU.js";
44
+ import { f as CopyClipboardIcon } from "./extends-9Yl5BEcg.js";
45
45
  import { a as get_default } from "./hasIn-Deg7jl_j.js";
46
46
  import { n as _baseSet_default, t as pick_default } from "./pick-D1Qo8s2C.js";
47
47
  import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-T20xxyNf.js";
48
- import { T as useEvent_default, _ as useAtomValue, b as atom, c as useResolvedMarimoConfig, d as store, g as useAtom, h as Provider, i as autoInstantiateAtom, l as AppConfigSchema, m as isIslands, n as useTheme, o as localeAtom, w as dequal } from "./useTheme-BPeFKs1Q.js";
48
+ import { T as useEvent_default, _ as useAtomValue, b as atom, c as useResolvedMarimoConfig, d as store, g as useAtom, h as Provider, i as autoInstantiateAtom, l as AppConfigSchema, m as isIslands, n as useTheme, o as localeAtom, w as dequal } from "./useTheme-ZhT6uIu3.js";
49
49
  import { $ as EditorView } from "./dist-U4F-tbMs.js";
50
50
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
51
51
  import { l as clamp, o as arrayShallowEquals, t as Arrays } from "./arrays-sEtDRoG4.js";
@@ -57,15 +57,15 @@ import "./dist-BSAt6RhH.js";
57
57
  import "./dist-D-W5ny5a.js";
58
58
  import "./dist-M9Vag9Y0.js";
59
59
  import { r as python } from "./dist-C_Y3oV3C.js";
60
- import { n as minimalSetup, t as esm_default } from "./esm-BaH2eg5-.js";
60
+ import { n as minimalSetup, t as esm_default } from "./esm-Bqu9AE2K.js";
61
61
  import "./purify.es-H92eMd9-.js";
62
- import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-BOYEeoL_.js";
62
+ import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-BV4bOfMI.js";
63
63
  import "./vega-loader.browser-CZ-J8Py3.js";
64
- import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, s as tooltipHandler } from "./loader-BWLPpjKK.js";
64
+ import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, s as tooltipHandler } from "./loader-YPuQvn1Y.js";
65
65
  import "./defaultLocale-u-3osm0P.js";
66
66
  import "./defaultLocale-BoHTsDG6.js";
67
- import { t as useAsyncData } from "./useAsyncData-B3PfqrwD.js";
68
- import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-YInAvJP3.js";
67
+ import { t as useAsyncData } from "./useAsyncData-CL3o2p4i.js";
68
+ import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-BPx2MuOK.js";
69
69
  import "./dist-CIYBwstr.js";
70
70
  import "./dist-abid3KgM.js";
71
71
  import "./dist-A2846XWO.js";
@@ -8558,7 +8558,7 @@ let __tla = Promise.all([
8558
8558
  };
8559
8559
  }
8560
8560
  };
8561
- var LazyChatbot = import_react.lazy(() => import("./chat-ui-m1SnDPdw.js").then((e) => ({
8561
+ var LazyChatbot = import_react.lazy(() => import("./chat-ui-k2kqhCv5.js").then((e) => ({
8562
8562
  default: e.Chatbot
8563
8563
  }))), messageSchema = array(object({
8564
8564
  id: string(),
@@ -8707,7 +8707,7 @@ let __tla = Promise.all([
8707
8707
  "time",
8708
8708
  "unknown"
8709
8709
  ];
8710
- var import_compiler_runtime$77 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-A_l7_PQZ.js").then(async (m) => {
8710
+ var import_compiler_runtime$77 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-BDTq6YUb.js").then(async (m) => {
8711
8711
  await m.__tla;
8712
8712
  return m;
8713
8713
  }));
@@ -15078,7 +15078,7 @@ ${c}
15078
15078
  fullWidth: m,
15079
15079
  children: T
15080
15080
  }), r[20] = m, r[21] = g, r[22] = c, r[23] = T, r[24] = E) : E = r[24], E;
15081
- }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-BnPKA-xR.js"));
15081
+ }, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-WqG-xX4l.js"));
15082
15082
  const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
15083
15083
  label: string().nullish(),
15084
15084
  data: string()
@@ -26421,7 +26421,7 @@ ${c}
26421
26421
  return true;
26422
26422
  }
26423
26423
  }
26424
- var LazyVegaComponent = import_react.lazy(() => import("./vega-component-CMicMpWX.js")), VegaPlugin = class {
26424
+ var LazyVegaComponent = import_react.lazy(() => import("./vega-component-C3AWYGAL.js")), VegaPlugin = class {
26425
26425
  constructor() {
26426
26426
  __publicField(this, "tagName", "marimo-vega");
26427
26427
  __publicField(this, "validator", object({
@@ -26561,7 +26561,7 @@ ${c}
26561
26561
  children: e.children
26562
26562
  });
26563
26563
  }
26564
- }, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-B2t5sN1q.js"));
26564
+ }, LazySlidesComponent$1 = import_react.lazy(() => import("./swiper-component-BNa_4kh2.js"));
26565
26565
  const DownloadPlugin = createPlugin("marimo-download").withData(object({
26566
26566
  data: string(),
26567
26567
  disabled: boolean().default(false),
@@ -26751,7 +26751,7 @@ ${c}
26751
26751
  themeVariables: e.data.theme_variables
26752
26752
  });
26753
26753
  }
26754
- }, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-Br973nIL.js").then(async (m) => {
26754
+ }, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-QFAR9YgY.js").then(async (m) => {
26755
26755
  await m.__tla;
26756
26756
  return m;
26757
26757
  })), import_compiler_runtime$22 = require_compiler_runtime();
@@ -36190,7 +36190,7 @@ ${c}
36190
36190
  function _temp2$2(e) {
36191
36191
  e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
36192
36192
  }
36193
- var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-CiJIhe23.js"));
36193
+ var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-O3jTcQna.js"));
36194
36194
  const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
36195
36195
  var _a3;
36196
36196
  let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
@@ -1,15 +1,15 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { _ as Logger } from "./button-C5K9fIPF.js";
2
+ import { _ as Logger } from "./button-vQhauTmO.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
5
  import "./react-dom-BTJzcVJ9.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
7
- import "./zod-aLSua2NL.js";
8
- import { n as ErrorBanner } from "./error-banner-CJXYJ6Sb.js";
7
+ import "./zod-DXqkaI_w.js";
8
+ import { n as ErrorBanner } from "./error-banner-BHAkVFc2.js";
9
9
  import { t as isEmpty_default } from "./isEmpty-CJJMn-QP.js";
10
- import { n as useTheme } from "./useTheme-BPeFKs1Q.js";
10
+ import { n as useTheme } from "./useTheme-ZhT6uIu3.js";
11
11
  import { t as purify } from "./purify.es-H92eMd9-.js";
12
- import { t as useAsyncData } from "./useAsyncData-B3PfqrwD.js";
12
+ import { t as useAsyncData } from "./useAsyncData-CL3o2p4i.js";
13
13
  import { a as decodeEntities, f as isDetailedError, g as utils_default, h as removeDirectives, i as cleanAndMerge, o as encodeEntities } from "./chunk-S3R3BYOJ-oAe3dEbO.js";
14
14
  import { a as setLogLevel, i as log, r as __name, t as select_default } from "./src-Bf2iLOlr.js";
15
15
  import { t as package_default } from "./chunk-DR5Q36YT-BflwErH1.js";
@@ -1,8 +1,8 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
3
- import { at as parseHtmlContent, it as ansiToPlainText } from "./html-to-image-BJbLjZyG.js";
4
- import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
5
- import { t as Strings } from "./strings-J57tzLr3.js";
3
+ import { at as parseHtmlContent, it as ansiToPlainText } from "./html-to-image-C86pQALH.js";
4
+ import { u as createLucideIcon } from "./dist-DYGLrbYQ.js";
5
+ import { t as Strings } from "./strings-Cq2s9_EQ.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
7
7
  import { n as mapWithConcurrency } from "./semaphore-CNDGTzkX.js";
8
8
  var File = createLucideIcon("file", [["path", {
@@ -3,20 +3,20 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a, _b;
5
5
  import { s as __toESM } from "./chunk-BNovOVIE.js";
6
- import { _ as Logger, g as cn, h as Events, l as useEventListener, t as Button } from "./button-C5K9fIPF.js";
6
+ import { _ as Logger, g as cn, h as Events, l as useEventListener, t as Button } from "./button-vQhauTmO.js";
7
7
  import { t as require_react } from "./react-DA-nE2FX.js";
8
8
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
9
- import { lt as kioskModeAtom } from "./html-to-image-BJbLjZyG.js";
9
+ import { lt as kioskModeAtom } from "./html-to-image-C86pQALH.js";
10
10
  import "./chunk-5FQGJX7Z-BbqSm5gU.js";
11
- import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
12
- import { a as DEFAULT_SLIDE_TYPE, c as Slide, ct as PanelResizeHandle, i as DEFAULT_DECK_TRANSITION, in as Expand, ot as Panel, rn as EyeOff, s as SlideSidebar, sn as Code, st as PanelGroup, t as useNotebookCodeAvailable } from "./code-visibility-BtAh8-ga.js";
13
- import { X as useDebouncedCallback } from "./input-Cn-SZdXY.js";
14
- import "./toDate-B4-pUFYh.js";
11
+ import { u as createLucideIcon } from "./dist-DYGLrbYQ.js";
12
+ import { a as DEFAULT_SLIDE_TYPE, c as Slide, ct as PanelResizeHandle, i as DEFAULT_DECK_TRANSITION, in as Expand, ot as Panel, rn as EyeOff, s as SlideSidebar, sn as Code, st as PanelGroup, t as useNotebookCodeAvailable } from "./code-visibility-CnZ5SJV5.js";
13
+ import { X as useDebouncedCallback } from "./input-AKkGXdyV.js";
14
+ import "./toDate-Do1xRzAo.js";
15
15
  import "./react-dom-BTJzcVJ9.js";
16
16
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
17
- import { X as useFullScreenElement } from "./zod-aLSua2NL.js";
18
- import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
19
- import { T as useEvent_default, _ as useAtomValue, m as isIslands } from "./useTheme-BPeFKs1Q.js";
17
+ import { X as useFullScreenElement } from "./zod-DXqkaI_w.js";
18
+ import { t as Tooltip } from "./tooltip-Bz3OAwrU.js";
19
+ import { T as useEvent_default, _ as useAtomValue, m as isIslands } from "./useTheme-ZhT6uIu3.js";
20
20
  import "./dist-U4F-tbMs.js";
21
21
  import "./main-Tj_-QTyF.js";
22
22
  import "./dist-Dv_Y15yk.js";
@@ -26,7 +26,7 @@ import "./dist-M9Vag9Y0.js";
26
26
  import "./dist-C_Y3oV3C.js";
27
27
  import "./purify.es-H92eMd9-.js";
28
28
  import "./vega-loader.browser-CZ-J8Py3.js";
29
- import "./loader-BWLPpjKK.js";
29
+ import "./loader-YPuQvn1Y.js";
30
30
  import "./defaultLocale-u-3osm0P.js";
31
31
  import "./defaultLocale-BoHTsDG6.js";
32
32
  var StickyNote = createLucideIcon("sticky-note", [["path", {
@@ -1,7 +1,7 @@
1
- import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
2
- import { s as Hash } from "./useLifecycle-B3NOEiY5.js";
3
- import { i as Table, o as ChartPie } from "./useDateFormatter-QB-3MpYr.js";
4
- import { C as logNever } from "./strings-J57tzLr3.js";
1
+ import { u as createLucideIcon } from "./dist-DYGLrbYQ.js";
2
+ import { s as Hash } from "./useLifecycle-C3Ec71q0.js";
3
+ import { i as Table, o as ChartPie } from "./useDateFormatter-BC6iSz9g.js";
4
+ import { C as logNever } from "./strings-Cq2s9_EQ.js";
5
5
  var AlignCenterVertical = createLucideIcon("align-center-vertical", [
6
6
  ["path", {
7
7
  d: "M12 2v20",
@@ -1,12 +1,12 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, r as cva } from "./button-C5K9fIPF.js";
2
+ import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, r as cva } from "./button-vQhauTmO.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-Dk6PV_d3.js";
6
- import { t as Check } from "./check-BCaJeT-J.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-DYGLrbYQ.js";
6
+ import { t as Check } from "./check-nrzHDi45.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 { 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";
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-DXqkaI_w.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",
@@ -1,9 +1,9 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { g as cn, l as useEventListener, t as Button } from "./button-C5K9fIPF.js";
2
+ import { g as cn, l as useEventListener, t as Button } from "./button-vQhauTmO.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
5
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
6
- import { t as useIframeCapabilities } from "./useIframeCapabilities-C4JTXTIh.js";
6
+ import { t as useIframeCapabilities } from "./useIframeCapabilities-C6Ta3EyP.js";
7
7
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1);
8
8
  function isObject$2(t2) {
9
9
  return typeof t2 == "object" && !!t2 && "constructor" in t2 && t2.constructor === Object;
@@ -2,11 +2,11 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
- import { _ as Logger } from "./button-C5K9fIPF.js";
5
+ import { _ as Logger } from "./button-vQhauTmO.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
7
- import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
7
+ import { u as createLucideIcon } from "./dist-DYGLrbYQ.js";
8
8
  import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
9
- import { b as atom, d as store, m as isIslands, p as waitFor } from "./useTheme-BPeFKs1Q.js";
9
+ import { b as atom, d as store, m as isIslands, p as waitFor } from "./useTheme-ZhT6uIu3.js";
10
10
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
11
11
  var CircleQuestionMark = createLucideIcon("circle-question-mark", [
12
12
  ["circle", {
@@ -1,10 +1,10 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { f as createSlottable, g as cn, m as useComposedRefs } from "./button-C5K9fIPF.js";
2
+ import { f as createSlottable, g as cn, m as useComposedRefs } from "./button-vQhauTmO.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, i as Root2, n as Arrow, r as Content, s as Root, t as Anchor } from "./dist-Dk6PV_d3.js";
5
+ import { a as createPopperScope, i as Root2, n as Arrow, r as Content, s as Root, t as Anchor } from "./dist-DYGLrbYQ.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
7
- import { Q as withSmartCollisionBoundary, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, pt as useControllableState, vt as Primitive } from "./zod-aLSua2NL.js";
7
+ import { Q as withSmartCollisionBoundary, Z as withFullScreenAsRoot, _t as createContextScope, at as Portal, ct as DismissableLayer, dt as useId, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, pt as useControllableState, vt as Primitive } from "./zod-DXqkaI_w.js";
8
8
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [createPopperScope]), usePopperScope = createPopperScope(), PROVIDER_NAME = "TooltipProvider", DEFAULT_DELAY_DURATION = 700, TOOLTIP_OPEN = "tooltip.open", [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME), TooltipProvider$1 = (n) => {
9
9
  let { __scopeTooltip: j, delayDuration: M = DEFAULT_DELAY_DURATION, skipDelayDuration: N = 300, disableHoverableContent: P = false, children: F } = n, I = import_react.useRef(true), L = import_react.useRef(false), R = import_react.useRef(0);
10
10
  return import_react.useEffect(() => {
@@ -1,4 +1,4 @@
1
- import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
1
+ import { u as createLucideIcon } from "./dist-DYGLrbYQ.js";
2
2
  var Pencil = createLucideIcon("pencil", [["path", {
3
3
  d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
4
4
  key: "1a8usu"
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DA-nE2FX.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
4
- import { T as useEvent_default } from "./useTheme-BPeFKs1Q.js";
4
+ import { T as useEvent_default } from "./useTheme-ZhT6uIu3.js";
5
5
  import { t as invariant } from "./invariant-wRzNXIsJ.js";
6
6
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1), Result = {
7
7
  error(e, s) {
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DA-nE2FX.js";
3
- import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
4
- import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./strings-J57tzLr3.js";
3
+ import { u as createLucideIcon } from "./dist-DYGLrbYQ.js";
4
+ import { E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./strings-Cq2s9_EQ.js";
5
5
  var ChartPie = createLucideIcon("chart-pie", [["path", {
6
6
  d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
7
7
  key: "pzmjnu"
@@ -1,6 +1,6 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DA-nE2FX.js";
3
- import { w as dequal } from "./useTheme-BPeFKs1Q.js";
3
+ import { w as dequal } from "./useTheme-ZhT6uIu3.js";
4
4
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
5
5
  function useDeepCompareMemoize(e) {
6
6
  let i = import_react.useRef(e);
@@ -1,7 +1,7 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-DA-nE2FX.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
4
- import { t as getIframeCapabilities } from "./capabilities-BceAxrAW.js";
4
+ import { t as getIframeCapabilities } from "./capabilities-BEHzIS99.js";
5
5
  var import_compiler_runtime = require_compiler_runtime();
6
6
  require_react();
7
7
  function useIframeCapabilities() {
@@ -1,10 +1,10 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { _ as Logger, g as cn, r as cva } from "./button-C5K9fIPF.js";
2
+ import { _ as Logger, g as cn, r as cva } from "./button-vQhauTmO.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 { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
5
+ import { u as createLucideIcon } from "./dist-DYGLrbYQ.js";
6
6
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
7
- import { b as atom, v as useSetAtom } from "./useTheme-BPeFKs1Q.js";
7
+ import { b as atom, v as useSetAtom } from "./useTheme-ZhT6uIu3.js";
8
8
  var Calendar = createLucideIcon("calendar", [
9
9
  ["path", {
10
10
  d: "M8 2v4",
@@ -1,8 +1,8 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { _ as Logger, a as OverridingHotkeyProvider, s as resolvePlatform } from "./button-C5K9fIPF.js";
2
+ import { _ as Logger, a as OverridingHotkeyProvider, s as resolvePlatform } from "./button-vQhauTmO.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 looseObject, B as union, I as record, N as number, P as object, R as string, T as boolean, b as _enum, w as array } from "./zod-aLSua2NL.js";
5
+ import { A as looseObject, B as union, I as record, N as number, P as object, R as string, T as boolean, b as _enum, w as array } from "./zod-DXqkaI_w.js";
6
6
  import { t as merge_default } from "./merge-Be1CqGnU.js";
7
7
  var import_react = /* @__PURE__ */ __toESM(require_react()), useInsertionEffect = typeof window < "u" ? import_react.useInsertionEffect || import_react.useLayoutEffect : () => {
8
8
  };
@@ -1,24 +1,24 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { _ as Logger, c as Objects, g as cn, h as Events } from "./button-C5K9fIPF.js";
2
+ import { _ as Logger, c as Objects, g as cn, h as Events } from "./button-vQhauTmO.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 { c as asRemoteURL, v as CircleQuestionMark } from "./toDate-B4-pUFYh.js";
5
+ import { c as asRemoteURL, v as CircleQuestionMark } from "./toDate-Do1xRzAo.js";
6
6
  import "./react-dom-BTJzcVJ9.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
8
- import "./zod-aLSua2NL.js";
9
- import { n as ErrorBanner } from "./error-banner-CJXYJ6Sb.js";
10
- import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
8
+ import "./zod-DXqkaI_w.js";
9
+ import { n as ErrorBanner } from "./error-banner-BHAkVFc2.js";
10
+ import { t as Tooltip } from "./tooltip-Bz3OAwrU.js";
11
11
  import { i as debounce_default } from "./constants-T20xxyNf.js";
12
- import { T as useEvent_default, n as useTheme } from "./useTheme-BPeFKs1Q.js";
12
+ import { T as useEvent_default, n as useTheme } from "./useTheme-ZhT6uIu3.js";
13
13
  import { s as uniq } from "./arrays-sEtDRoG4.js";
14
- import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-BOYEeoL_.js";
14
+ import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-BV4bOfMI.js";
15
15
  import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
16
- import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-BWLPpjKK.js";
16
+ import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-YPuQvn1Y.js";
17
17
  import { t as j } from "./react-vega-B0sAlDTL.js";
18
18
  import "./defaultLocale-u-3osm0P.js";
19
19
  import "./defaultLocale-BoHTsDG6.js";
20
- import { t as useAsyncData } from "./useAsyncData-B3PfqrwD.js";
21
- import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-YInAvJP3.js";
20
+ import { t as useAsyncData } from "./useAsyncData-CL3o2p4i.js";
21
+ import { t as useDeepCompareMemoize } from "./useDeepCompareMemoize-BPx2MuOK.js";
22
22
  import { t as Semaphore } from "./semaphore-CNDGTzkX.js";
23
23
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1);
24
24
  function fixRelativeUrl(e) {
@@ -1,5 +1,5 @@
1
1
  import { r as __export, s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { d as createSlot, l as useEventListener, m as useComposedRefs } from "./button-C5K9fIPF.js";
2
+ import { d as createSlot, l as useEventListener, m as useComposedRefs } from "./button-vQhauTmO.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
5
  import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.23.11-dev29",
3
+ "version": "0.23.11-dev30",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -14,6 +14,7 @@ import {
14
14
  DownloadIcon,
15
15
  EditIcon,
16
16
  ExternalLinkIcon,
17
+ EyeIcon,
17
18
  EyeOffIcon,
18
19
  FastForwardIcon,
19
20
  FileIcon,
@@ -99,8 +100,8 @@ import { LAYOUT_TYPES } from "../renderers/types";
99
100
  import { runServerSidePDFDownload } from "./pdf-export";
100
101
  import type { ActionButton } from "./types";
101
102
  import { useCopyNotebook } from "./useCopyNotebook";
102
- import { useHideAllMarkdownCode } from "./useHideAllMarkdownCode";
103
103
  import { useRestartKernel } from "./useRestartKernel";
104
+ import { useSetCodeVisibility } from "./useSetCodeVisibility";
104
105
 
105
106
  const NOOP_HANDLER = (event?: Event) => {
106
107
  event?.preventDefault();
@@ -114,7 +115,7 @@ export function useNotebookActions() {
114
115
  const { selectedPanel } = useChromeState();
115
116
  const [viewState] = useAtom(viewStateAtom);
116
117
  const kioskMode = useAtomValue(kioskModeAtom);
117
- const hideAllMarkdownCode = useHideAllMarkdownCode();
118
+ const setCodeVisibility = useSetCodeVisibility();
118
119
  const [resolvedConfig] = useResolvedMarimoConfig();
119
120
  const capabilities = useAtomValue(capabilitiesAtom);
120
121
  const aiEnabled = useAtomValue(aiEnabledAtom);
@@ -578,11 +579,33 @@ export function useNotebookActions() {
578
579
  clearAllCellOutputs();
579
580
  },
580
581
  },
582
+ {
583
+ icon: <EyeIcon size={14} strokeWidth={1.5} />,
584
+ label: "Show all code",
585
+ hotkey: "global.showAllCode",
586
+ handle: () => setCodeVisibility(false, "code"),
587
+ redundant: true,
588
+ },
589
+ {
590
+ icon: <EyeOffIcon size={14} strokeWidth={1.5} />,
591
+ label: "Hide all code",
592
+ hotkey: "global.hideAllCode",
593
+ handle: () => setCodeVisibility(true, "code"),
594
+ redundant: true,
595
+ },
596
+ {
597
+ icon: <EyeIcon size={14} strokeWidth={1.5} />,
598
+ label: "Show all markdown code",
599
+ hotkey: "global.showAllMarkdownCode",
600
+ handle: () => setCodeVisibility(false, "markdown"),
601
+ redundant: true,
602
+ },
581
603
  {
582
604
  icon: <EyeOffIcon size={14} strokeWidth={1.5} />,
583
605
  label: "Hide all markdown code",
584
- handle: hideAllMarkdownCode,
585
- redundant: true, // hidden by default
606
+ hotkey: "global.hideAllMarkdownCode",
607
+ handle: () => setCodeVisibility(true, "markdown"),
608
+ redundant: true,
586
609
  },
587
610
  {
588
611
  icon: <ChevronRightCircleIcon size={14} strokeWidth={1.5} />,
@@ -0,0 +1,57 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
+
3
+ import { useCallback } from "react";
4
+ import { getNotebook, useCellActions } from "@/core/cells/cells";
5
+ import type { CellId } from "@/core/cells/ids";
6
+ import { MarkdownLanguageAdapter } from "@/core/codemirror/language/languages/markdown";
7
+ import { useRequestClient } from "@/core/network/requests";
8
+ import type { CellConfig } from "@/core/network/types";
9
+ import { Objects } from "@/utils/objects";
10
+
11
+ const markdownAdapter = new MarkdownLanguageAdapter();
12
+
13
+ /** The kind of cell a visibility change applies to. */
14
+ export type CellCodeKind = "code" | "markdown";
15
+
16
+ const cellCodeKind = (code: string): CellCodeKind =>
17
+ markdownAdapter.isSupported(code) ? "markdown" : "code";
18
+
19
+ /**
20
+ * Hook returning a callback that hides or shows the code editor for every
21
+ * cell of the given kind.
22
+ */
23
+ export const useSetCodeVisibility = () => {
24
+ const { updateCellConfig } = useCellActions();
25
+ const { saveCellConfig } = useRequestClient();
26
+
27
+ return useCallback(
28
+ async (hidden: boolean, kind: CellCodeKind) => {
29
+ const notebook = getNotebook();
30
+
31
+ const newConfigs: Record<CellId, Partial<CellConfig>> = {};
32
+
33
+ for (const cellId of notebook.cellIds.inOrderIds) {
34
+ const cell = notebook.cellData[cellId];
35
+ if (cell === undefined || cell.config.hide_code === hidden) {
36
+ continue;
37
+ }
38
+ if (cellCodeKind(cell.code) !== kind) {
39
+ continue;
40
+ }
41
+ newConfigs[cellId] = { hide_code: hidden };
42
+ }
43
+
44
+ const entries = Objects.entries(newConfigs);
45
+ if (entries.length === 0) {
46
+ return;
47
+ }
48
+
49
+ await saveCellConfig({ configs: newConfigs });
50
+
51
+ for (const [cellId, config] of entries) {
52
+ updateCellConfig({ cellId, config });
53
+ }
54
+ },
55
+ [updateCellConfig, saveCellConfig],
56
+ );
57
+ };
@@ -20,6 +20,7 @@ import {
20
20
  useRunAllCells,
21
21
  useRunStaleCells,
22
22
  } from "../components/editor/cell/useRunCells";
23
+ import { useSetCodeVisibility } from "../components/editor/actions/useSetCodeVisibility";
23
24
  import { CellArray } from "../components/editor/renderers/cell-array";
24
25
  import { CellsRenderer } from "../components/editor/renderers/cells-renderer";
25
26
  import { useHotkey } from "../hooks/useHotkey";
@@ -112,6 +113,7 @@ export const EditApp: React.FC<AppProps> = ({
112
113
  const runStaleCells = useRunStaleCells();
113
114
  const runAllCells = useRunAllCells();
114
115
  const togglePresenting = useTogglePresenting();
116
+ const setCodeVisibility = useSetCodeVisibility();
115
117
 
116
118
  // HOTKEYS
117
119
  useHotkey("global.runStale", () => {
@@ -126,6 +128,18 @@ export const EditApp: React.FC<AppProps> = ({
126
128
  useHotkey("global.runAll", () => {
127
129
  runAllCells();
128
130
  });
131
+ useHotkey("global.showAllCode", () => {
132
+ setCodeVisibility(false, "code");
133
+ });
134
+ useHotkey("global.hideAllCode", () => {
135
+ setCodeVisibility(true, "code");
136
+ });
137
+ useHotkey("global.showAllMarkdownCode", () => {
138
+ setCodeVisibility(false, "markdown");
139
+ });
140
+ useHotkey("global.hideAllMarkdownCode", () => {
141
+ setCodeVisibility(true, "markdown");
142
+ });
129
143
  useHotkey("global.collapseAllSections", () => {
130
144
  collapseAllCells();
131
145
  });