@marimo-team/islands 0.23.16-dev35 → 0.23.16-dev36
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/{chat-ui-DuPGKU9z.js → chat-ui-DAPduOBU.js} +77 -77
- package/dist/{common-Dm9n25i1.js → common-Bj3GHNDa.js} +701 -709
- package/dist/{html-to-image-Bza3T2dl.js → html-to-image-CRnU7G8x.js} +5069 -5540
- package/dist/main.js +113 -113
- package/dist/{process-output-pCEXvnhG.js → process-output-CK1nZFgq.js} +1 -1
- package/dist/{reveal-component-Db_uFCrL.js → reveal-component-s04jmX79.js} +11 -11
- package/package.json +2 -3
- package/src/components/editor/chrome/panels/__tests__/logs-panel.test.tsx +25 -0
- package/src/components/editor/chrome/panels/logs-panel.tsx +12 -2
- package/src/core/cells/__tests__/cells.test.ts +12 -2
- package/src/core/cells/__tests__/logs.test.ts +5 -5
- package/src/core/cells/cells.ts +13 -0
- package/src/core/cells/document-changes.ts +1 -0
- package/src/core/cells/logs.ts +14 -4
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +396 -100
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -540
- package/src/core/codemirror/copilot/language-server.ts +182 -70
- package/src/core/codemirror/copilot/transport.ts +15 -207
- package/src/core/codemirror/copilot/types.ts +9 -2
- package/src/core/codemirror/language/languages/python.ts +23 -11
- package/src/core/codemirror/lsp/__tests__/federated-lsp.test.ts +161 -0
- package/src/core/codemirror/lsp/__tests__/log-messages.test.ts +53 -0
- package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +25 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +598 -156
- package/src/core/codemirror/lsp/__tests__/transports.test.ts +112 -0
- package/src/core/codemirror/lsp/federated-lsp.ts +76 -23
- package/src/core/codemirror/lsp/log-messages.ts +37 -0
- package/src/core/codemirror/lsp/normalize-markdown-math.ts +8 -4
- package/src/core/codemirror/lsp/notebook-lsp.ts +220 -56
- package/src/core/codemirror/lsp/transports.ts +8 -1
- package/src/core/codemirror/lsp/types.ts +68 -8
- package/src/core/codemirror/lsp/utils.ts +14 -0
- package/src/core/lsp/__tests__/transport.test.ts +509 -337
- package/src/core/lsp/transport.ts +304 -132
- package/src/css/app/codemirror.css +16 -2
- package/src/stories/log-viewer.stories.tsx +12 -6
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h
|
|
|
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
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DNq8q3zw.js";
|
|
25
|
-
import { $ as notebookOutline, A as ChevronDownIcon,
|
|
25
|
+
import { $ as notebookOutline, $t as publishedCellClasses, A as ChevronDownIcon, An as Root2$1, At as DeferredRequestRegistry, Bn as Info, C as Accordion, Cn as atomWithReducer, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, Et as Paths, Fn as PaintRoller, G as hasRunAnyCellAtom, Gn as Columns2, H as renderHTML, Hn as Eye, Ht as DATA_TYPE_ICON, I as base64ToDataView, Jn as Braces, Jt as convertStatsName, K as cellIdsAtom, Lt as repl, Nn as Trash2, On as Content2, Pn as Table2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as isUninstantiated, R as dataViewToBase64, Rn as LoaderCircle, Rt as SQLParser, St as isRecord, T as AccordionItem, Tn as selectAtom, Tt as PathBuilder, U as getMarimoExportContext, V as safeExtractSetUIElementMessageBuffers, Vn as FileText, Vt as PluralWords, W as hasTrustedExportContext, Wn as Database, Wt as require_client, X as hasOnlyOneCellAtom, Xt as requestClientAtom, Y as getCellNames, Yt as getRequestClient, Z as initialNotebookState, Zt as useRequestClient, _n as UIElementId, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as RANDOM_ID_ATTR, bt as customPythonLanguageSupport, cn as NotebookScopedLocalStorage, dn as parseAttrValue, dt as headingToIdentifier, en as shouldHidePublishedCell, et as numColumnsAtom, f as isOutputEmpty, fn as parseDataset, gt as getValidName, hn as HTMLCellId, i as LazyAnyLanguageCodeMirror, jn as Trigger2, jt as generateUUID, kn as Item$1, lt as outputIsLoading, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseInitialValue, q as createActions, qn as CircleAlert, rt as useCellIds, s as maybeAddAltairImport, tt as reducer, ut as outputIsStale, vn as findCellId, vt as normalizeName, w as AccordionContent, wn as atomWithStorage, xn as jsonParseWithSpecialChar, xt as hasFunctionProperty, yn as OBJECT_ID_ATTR, yt as Checkbox, zn as Layers, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-CRnU7G8x.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DIlxLFXG.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-CQKL_D3i.js";
|
|
29
|
-
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as
|
|
29
|
+
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-Bj3GHNDa.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CMJGqBaY.js";
|
|
31
31
|
import { t as Check } from "./check-DP7U0H0G.js";
|
|
32
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-DIy9NAmg.js";
|
|
33
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-C5K4VBvB.js";
|
|
34
34
|
import { S as isWasm, _ as initialModeAtom, b as viewStateAtom, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as getInitialAppMode, m as require_cuid2, u as getStaticVirtualFiles, v as kioskModeAtom, w as CircleQuestionMark, x as Deferred } from "./toDate-CqhBWjvO.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-
|
|
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-CK1nZFgq.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-DicH9Oi0.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DhLqwSWA.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -9009,7 +9009,7 @@ let __tla = Promise.all([
|
|
|
9009
9009
|
};
|
|
9010
9010
|
}
|
|
9011
9011
|
};
|
|
9012
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
9012
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-DAPduOBU.js").then((e) => ({
|
|
9013
9013
|
default: e.Chatbot
|
|
9014
9014
|
}))), messageSchema = array(object({
|
|
9015
9015
|
id: string(),
|
|
@@ -18733,15 +18733,15 @@ ${c}
|
|
|
18733
18733
|
let e2 = tG.current;
|
|
18734
18734
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18735
18735
|
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = rG) : rG = r[12];
|
|
18736
|
-
let iG = p == null ? void 0 : p.transforms.length,
|
|
18737
|
-
r[13] !== E || r[14] !== m || r[15] !== iG ? (
|
|
18736
|
+
let iG = p == null ? void 0 : p.transforms.length, aG;
|
|
18737
|
+
r[13] !== E || r[14] !== m || r[15] !== iG ? (aG = [
|
|
18738
18738
|
E,
|
|
18739
18739
|
iG,
|
|
18740
18740
|
tG,
|
|
18741
18741
|
m
|
|
18742
|
-
], r[13] = E, r[14] = m, r[15] = iG, r[16] =
|
|
18743
|
-
let
|
|
18744
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18742
|
+
], r[13] = E, r[14] = m, r[15] = iG, r[16] = aG) : aG = r[16], (0, import_react.useEffect)(rG, aG);
|
|
18743
|
+
let oG;
|
|
18744
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18745
18745
|
value: "transform",
|
|
18746
18746
|
className: "text-xs py-1",
|
|
18747
18747
|
children: [
|
|
@@ -18750,9 +18750,9 @@ ${c}
|
|
|
18750
18750
|
}),
|
|
18751
18751
|
"Transform"
|
|
18752
18752
|
]
|
|
18753
|
-
}), r[17] =
|
|
18754
|
-
let
|
|
18755
|
-
r[18] === H ?
|
|
18753
|
+
}), r[17] = oG) : oG = r[17];
|
|
18754
|
+
let sG;
|
|
18755
|
+
r[18] === H ? sG = r[19] : (sG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18756
18756
|
value: "python-code",
|
|
18757
18757
|
className: "text-xs py-1",
|
|
18758
18758
|
children: [
|
|
@@ -18761,9 +18761,9 @@ ${c}
|
|
|
18761
18761
|
}),
|
|
18762
18762
|
"Python Code"
|
|
18763
18763
|
]
|
|
18764
|
-
}), r[18] = H, r[19] =
|
|
18765
|
-
let
|
|
18766
|
-
r[20] === W ?
|
|
18764
|
+
}), r[18] = H, r[19] = sG);
|
|
18765
|
+
let cG;
|
|
18766
|
+
r[20] === W ? cG = r[21] : (cG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18767
18767
|
value: "sql-code",
|
|
18768
18768
|
className: "text-xs py-1",
|
|
18769
18769
|
children: [
|
|
@@ -18772,54 +18772,54 @@ ${c}
|
|
|
18772
18772
|
}),
|
|
18773
18773
|
"SQL Code"
|
|
18774
18774
|
]
|
|
18775
|
-
}), r[20] = W, r[21] =
|
|
18776
|
-
let
|
|
18777
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18775
|
+
}), r[20] = W, r[21] = cG);
|
|
18776
|
+
let lG;
|
|
18777
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lG = (0, import_jsx_runtime.jsx)("div", {
|
|
18778
18778
|
className: "grow"
|
|
18779
|
-
}), r[22] =
|
|
18780
|
-
let
|
|
18781
|
-
r[23] !==
|
|
18779
|
+
}), r[22] = lG) : lG = r[22];
|
|
18780
|
+
let uG;
|
|
18781
|
+
r[23] !== sG || r[24] !== cG ? (uG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18782
18782
|
className: "h-8",
|
|
18783
18783
|
children: [
|
|
18784
|
+
oG,
|
|
18784
18785
|
sG,
|
|
18785
18786
|
cG,
|
|
18786
|
-
lG
|
|
18787
|
-
uG
|
|
18787
|
+
lG
|
|
18788
18788
|
]
|
|
18789
|
-
}), r[23] =
|
|
18790
|
-
let
|
|
18791
|
-
r[26] === j ?
|
|
18789
|
+
}), r[23] = sG, r[24] = cG, r[25] = uG) : uG = r[25];
|
|
18790
|
+
let dG;
|
|
18791
|
+
r[26] === j ? dG = r[27] : (dG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18792
18792
|
size: "small"
|
|
18793
|
-
}), r[26] = j, r[27] =
|
|
18794
|
-
let
|
|
18795
|
-
r[28] !==
|
|
18793
|
+
}), r[26] = j, r[27] = dG);
|
|
18794
|
+
let fG;
|
|
18795
|
+
r[28] !== uG || r[29] !== dG ? (fG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18796
18796
|
className: "flex items-center gap-2",
|
|
18797
18797
|
children: [
|
|
18798
|
-
|
|
18799
|
-
|
|
18798
|
+
uG,
|
|
18799
|
+
dG
|
|
18800
18800
|
]
|
|
18801
|
-
}), r[28] =
|
|
18802
|
-
let
|
|
18803
|
-
r[31] !== m || r[32] !== p ? (
|
|
18801
|
+
}), r[28] = uG, r[29] = dG, r[30] = fG) : fG = r[30];
|
|
18802
|
+
let pG;
|
|
18803
|
+
r[31] !== m || r[32] !== p ? (pG = (e2) => {
|
|
18804
18804
|
dequal(e2, p) || (m(e2), Z(e2));
|
|
18805
|
-
}, r[31] = m, r[32] = p, r[33] =
|
|
18806
|
-
let
|
|
18807
|
-
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !==
|
|
18805
|
+
}, r[31] = m, r[32] = p, r[33] = pG) : pG = r[33];
|
|
18806
|
+
let mG;
|
|
18807
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== pG ? (mG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18808
18808
|
value: "transform",
|
|
18809
18809
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18810
18810
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18811
18811
|
ref: QW,
|
|
18812
18812
|
initialValue: q,
|
|
18813
18813
|
columns: c,
|
|
18814
|
-
onChange:
|
|
18814
|
+
onChange: pG,
|
|
18815
18815
|
onInvalidChange: Z,
|
|
18816
18816
|
getColumnValues: g,
|
|
18817
18817
|
columnTypesPerStep: B,
|
|
18818
18818
|
lazy: f
|
|
18819
18819
|
})
|
|
18820
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18821
|
-
let
|
|
18822
|
-
r[41] === H ?
|
|
18820
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = pG, r[40] = mG) : mG = r[40];
|
|
18821
|
+
let hG;
|
|
18822
|
+
r[41] === H ? hG = r[42] : (hG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18823
18823
|
value: "python-code",
|
|
18824
18824
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18825
18825
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18828,9 +18828,9 @@ ${c}
|
|
|
18828
18828
|
code: H,
|
|
18829
18829
|
language: "python"
|
|
18830
18830
|
})
|
|
18831
|
-
}), r[41] = H, r[42] =
|
|
18832
|
-
let
|
|
18833
|
-
r[43] === W ?
|
|
18831
|
+
}), r[41] = H, r[42] = hG);
|
|
18832
|
+
let gG;
|
|
18833
|
+
r[43] === W ? gG = r[44] : (gG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18834
18834
|
value: "sql-code",
|
|
18835
18835
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18836
18836
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18839,35 +18839,35 @@ ${c}
|
|
|
18839
18839
|
code: W,
|
|
18840
18840
|
language: "sql"
|
|
18841
18841
|
})
|
|
18842
|
-
}), r[43] = W, r[44] =
|
|
18843
|
-
let
|
|
18844
|
-
r[45] !== eG || r[46] !==
|
|
18842
|
+
}), r[43] = W, r[44] = gG);
|
|
18843
|
+
let _G;
|
|
18844
|
+
r[45] !== eG || r[46] !== fG || r[47] !== mG || r[48] !== hG || r[49] !== gG ? (_G = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18845
18845
|
defaultValue: "transform",
|
|
18846
18846
|
onValueChange: eG,
|
|
18847
18847
|
children: [
|
|
18848
|
-
|
|
18848
|
+
fG,
|
|
18849
|
+
mG,
|
|
18849
18850
|
hG,
|
|
18850
|
-
gG
|
|
18851
|
-
_G
|
|
18851
|
+
gG
|
|
18852
18852
|
]
|
|
18853
|
-
}), r[45] = eG, r[46] =
|
|
18854
|
-
let
|
|
18855
|
-
r[51] === O ?
|
|
18853
|
+
}), r[45] = eG, r[46] = fG, r[47] = mG, r[48] = hG, r[49] = gG, r[50] = _G) : _G = r[50];
|
|
18854
|
+
let vG;
|
|
18855
|
+
r[51] === O ? vG = r[52] : (vG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18856
18856
|
error: O
|
|
18857
|
-
}), r[51] = O, r[52] =
|
|
18858
|
-
let
|
|
18859
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18857
|
+
}), r[51] = O, r[52] = vG);
|
|
18858
|
+
let yG = I || "", bG = L ?? 0, xG = G ?? 0, SG = R || Arrays.EMPTY, CG = L && L > 5 || false, wG;
|
|
18859
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== yG || r[61] !== bG || r[62] !== xG || r[63] !== SG || r[64] !== CG ? (wG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18860
18860
|
label: null,
|
|
18861
18861
|
className: "rounded-b border-x border-b",
|
|
18862
|
-
data:
|
|
18862
|
+
data: yG,
|
|
18863
18863
|
hasStableRowId: false,
|
|
18864
|
-
totalRows:
|
|
18865
|
-
totalColumns:
|
|
18864
|
+
totalRows: bG,
|
|
18865
|
+
totalColumns: xG,
|
|
18866
18866
|
maxColumns: "all",
|
|
18867
18867
|
pageSize: l,
|
|
18868
18868
|
pagination: true,
|
|
18869
18869
|
fieldTypes: z,
|
|
18870
|
-
rowHeaders:
|
|
18870
|
+
rowHeaders: SG,
|
|
18871
18871
|
showDownload: u,
|
|
18872
18872
|
download_as: v,
|
|
18873
18873
|
get_size_bytes: y,
|
|
@@ -18877,7 +18877,7 @@ ${c}
|
|
|
18877
18877
|
showColumnSummaries: false,
|
|
18878
18878
|
showDataTypes: true,
|
|
18879
18879
|
get_column_summaries: getColumnSummaries,
|
|
18880
|
-
showPageSizeSelector:
|
|
18880
|
+
showPageSizeSelector: CG,
|
|
18881
18881
|
showColumnExplorer: false,
|
|
18882
18882
|
showRowExplorer: true,
|
|
18883
18883
|
showChartBuilder: false,
|
|
@@ -18886,15 +18886,15 @@ ${c}
|
|
|
18886
18886
|
selection: null,
|
|
18887
18887
|
lazy: false,
|
|
18888
18888
|
host: b
|
|
18889
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18890
|
-
let
|
|
18891
|
-
return r[66] !==
|
|
18889
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = yG, r[61] = bG, r[62] = xG, r[63] = SG, r[64] = CG, r[65] = wG) : wG = r[65];
|
|
18890
|
+
let TG;
|
|
18891
|
+
return r[66] !== _G || r[67] !== vG || r[68] !== wG ? (TG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18892
18892
|
children: [
|
|
18893
|
+
_G,
|
|
18893
18894
|
vG,
|
|
18894
|
-
|
|
18895
|
-
TG
|
|
18895
|
+
wG
|
|
18896
18896
|
]
|
|
18897
|
-
}), r[66] =
|
|
18897
|
+
}), r[66] = _G, r[67] = vG, r[68] = wG, r[69] = TG) : TG = r[69], TG;
|
|
18898
18898
|
});
|
|
18899
18899
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18900
18900
|
function getColumnSummaries() {
|
|
@@ -19085,12 +19085,12 @@ ${c}
|
|
|
19085
19085
|
}, [
|
|
19086
19086
|
H
|
|
19087
19087
|
]);
|
|
19088
|
-
let
|
|
19088
|
+
let q = (R == null ? void 0 : R.files) ?? [], Z = new Set(e.map((e2) => e2.path)), QW = l === "directory" || l === "all", $W = l === "file" || l === "all", eG = q.filter((e2) => QW && e2.is_directory || $W && !e2.is_directory), nG = eG.length > 0 && eG.every((e2) => Z.has(e2.path));
|
|
19089
19089
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19090
19090
|
kind: "danger",
|
|
19091
19091
|
children: z.message
|
|
19092
19092
|
});
|
|
19093
|
-
let rG = PathBuilder.guessDeliminator(c).deliminator,
|
|
19093
|
+
let rG = PathBuilder.guessDeliminator(c).deliminator, iG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19094
19094
|
children: e2.path
|
|
19095
19095
|
}, e2.id));
|
|
19096
19096
|
function oG(e2) {
|
|
@@ -19128,7 +19128,7 @@ ${c}
|
|
|
19128
19128
|
name: l2,
|
|
19129
19129
|
isDirectory: d2
|
|
19130
19130
|
});
|
|
19131
|
-
|
|
19131
|
+
Z.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19132
19132
|
...e,
|
|
19133
19133
|
f2
|
|
19134
19134
|
] : [
|
|
@@ -19140,8 +19140,8 @@ ${c}
|
|
|
19140
19140
|
}
|
|
19141
19141
|
function uG() {
|
|
19142
19142
|
let c2 = [];
|
|
19143
|
-
for (let e2 of
|
|
19144
|
-
if (
|
|
19143
|
+
for (let e2 of q) {
|
|
19144
|
+
if (!QW && e2.is_directory || Z.has(e2.path)) continue;
|
|
19145
19145
|
let r2 = sG({
|
|
19146
19146
|
path: e2.path,
|
|
19147
19147
|
name: e2.name,
|
|
@@ -19164,10 +19164,10 @@ ${c}
|
|
|
19164
19164
|
onPrimary: () => oG(PARENT_DIRECTORY),
|
|
19165
19165
|
onToggleSelect: null
|
|
19166
19166
|
},
|
|
19167
|
-
...
|
|
19167
|
+
...q.map((e2) => {
|
|
19168
19168
|
let r2 = e2.path;
|
|
19169
19169
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19170
|
-
let c2 =
|
|
19170
|
+
let c2 = QW && e2.is_directory || $W && !e2.is_directory, l2 = Z.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => cG({
|
|
19171
19171
|
path: r2,
|
|
19172
19172
|
name: e2.name,
|
|
19173
19173
|
isDirectory: e2.is_directory
|
|
@@ -19260,7 +19260,7 @@ ${c}
|
|
|
19260
19260
|
}),
|
|
19261
19261
|
R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
19262
19262
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
19263
|
-
children: R.is_truncated ? `Showing ${
|
|
19263
|
+
children: R.is_truncated ? `Showing ${q.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
19264
19264
|
}),
|
|
19265
19265
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
19266
19266
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
@@ -19359,7 +19359,7 @@ ${c}
|
|
|
19359
19359
|
marginBlock: 0
|
|
19360
19360
|
},
|
|
19361
19361
|
className: "m-0 text-xs text-muted-foreground",
|
|
19362
|
-
children:
|
|
19362
|
+
children: iG
|
|
19363
19363
|
})
|
|
19364
19364
|
})
|
|
19365
19365
|
]
|
|
@@ -25301,22 +25301,22 @@ ${c}
|
|
|
25301
25301
|
strokeWidth: 1.4,
|
|
25302
25302
|
className: nG
|
|
25303
25303
|
}), r[56] = nG, r[57] = rG);
|
|
25304
|
-
let
|
|
25305
|
-
r[58] !== $W || r[59] !== rG ? (
|
|
25304
|
+
let iG;
|
|
25305
|
+
r[58] !== $W || r[59] !== rG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25306
25306
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
25307
25307
|
children: [
|
|
25308
25308
|
$W,
|
|
25309
25309
|
rG
|
|
25310
25310
|
]
|
|
25311
|
-
}), r[58] = $W, r[59] = rG, r[60] =
|
|
25311
|
+
}), r[58] = $W, r[59] = rG, r[60] = iG) : iG = r[60];
|
|
25312
25312
|
let oG;
|
|
25313
|
-
r[61] !== G || r[62] !==
|
|
25313
|
+
r[61] !== G || r[62] !== iG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25314
25314
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25315
25315
|
children: [
|
|
25316
25316
|
G,
|
|
25317
|
-
|
|
25317
|
+
iG
|
|
25318
25318
|
]
|
|
25319
|
-
}), r[61] = G, r[62] =
|
|
25319
|
+
}), r[61] = G, r[62] = iG, r[63] = oG) : oG = r[63];
|
|
25320
25320
|
let sG;
|
|
25321
25321
|
r[64] !== W || r[65] !== oG || r[66] !== z || r[67] !== B ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25322
25322
|
className: z,
|
|
@@ -25511,16 +25511,16 @@ ${c}
|
|
|
25511
25511
|
g
|
|
25512
25512
|
]
|
|
25513
25513
|
}), r[23] = g, r[24] = tG, r[25] = nG, r[26] = I, r[27] = rG) : rG = r[27];
|
|
25514
|
-
let
|
|
25515
|
-
r[28] !== _ || r[29] !== rG ? (
|
|
25514
|
+
let iG;
|
|
25515
|
+
r[28] !== _ || r[29] !== rG ? (iG = withTooltip(rG, _), r[28] = _, r[29] = rG, r[30] = iG) : iG = r[30];
|
|
25516
25516
|
let oG;
|
|
25517
|
-
r[31] !==
|
|
25517
|
+
r[31] !== iG || r[32] !== eG ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25518
25518
|
className: "flex justify-end gap-2 font-code",
|
|
25519
25519
|
children: [
|
|
25520
25520
|
eG,
|
|
25521
|
-
|
|
25521
|
+
iG
|
|
25522
25522
|
]
|
|
25523
|
-
}), r[31] =
|
|
25523
|
+
}), r[31] = iG, r[32] = eG, r[33] = oG) : oG = r[33];
|
|
25524
25524
|
let sG;
|
|
25525
25525
|
r[34] !== oG || r[35] !== G || r[36] !== Z || r[37] !== QW || r[38] !== $W ? (sG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25526
25526
|
className: G,
|
|
@@ -25532,13 +25532,13 @@ ${c}
|
|
|
25532
25532
|
oG
|
|
25533
25533
|
]
|
|
25534
25534
|
}), r[34] = oG, r[35] = G, r[36] = Z, r[37] = QW, r[38] = $W, r[39] = sG) : sG = r[39];
|
|
25535
|
-
let
|
|
25536
|
-
return r[40] !== sG || r[41] !== H ? (
|
|
25535
|
+
let cG;
|
|
25536
|
+
return r[40] !== sG || r[41] !== H ? (cG = (0, import_jsx_runtime.jsx)("form", {
|
|
25537
25537
|
className: "contents",
|
|
25538
25538
|
ref: j,
|
|
25539
25539
|
onSubmit: H,
|
|
25540
25540
|
children: sG
|
|
25541
|
-
}), r[40] = sG, r[41] = H, r[42] =
|
|
25541
|
+
}), r[40] = sG, r[41] = H, r[42] = cG) : cG = r[42], cG;
|
|
25542
25542
|
};
|
|
25543
25543
|
var Form = (e) => {
|
|
25544
25544
|
let r = (0, import_compiler_runtime$41.c)(24), c, l, u, d, f, p;
|
|
@@ -38147,7 +38147,7 @@ ${c}
|
|
|
38147
38147
|
function _temp2$2(e) {
|
|
38148
38148
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38149
38149
|
}
|
|
38150
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38150
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-s04jmX79.js"));
|
|
38151
38151
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38152
38152
|
var _a5;
|
|
38153
38153
|
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), [
|
|
@@ -39049,20 +39049,20 @@ ${c}
|
|
|
39049
39049
|
}, false), r[0] = _, r[1] = c, r[2] = y, r[3] = v, r[4] = f, r[5] = M) : M = r[5];
|
|
39050
39050
|
let I = M, L;
|
|
39051
39051
|
r[6] === f ? L = r[7] : (L = outputIsLoading(f), r[6] = f, r[7] = L);
|
|
39052
|
-
let R = L,
|
|
39053
|
-
if (r[8] !== b || r[9] !== m || r[10] !==
|
|
39052
|
+
let R = L, B = E && w !== "present", H;
|
|
39053
|
+
if (r[8] !== b || r[9] !== m || r[10] !== B || r[11] !== S || r[12] !== p) {
|
|
39054
39054
|
let e2 = new MarkdownLanguageAdapter().isSupported(b);
|
|
39055
|
-
|
|
39055
|
+
H = cn("marimo-cell", "hover-actions-parent empty:invisible", !S && !B ? publishedCellClasses({
|
|
39056
39056
|
errored: m,
|
|
39057
39057
|
stopped: p
|
|
39058
39058
|
}) : {
|
|
39059
39059
|
"has-error": m,
|
|
39060
39060
|
stopped: p,
|
|
39061
39061
|
borderless: e2
|
|
39062
|
-
}), r[8] = b, r[9] = m, r[10] =
|
|
39063
|
-
} else
|
|
39064
|
-
let
|
|
39065
|
-
if (w === "read" && S ||
|
|
39062
|
+
}), r[8] = b, r[9] = m, r[10] = B, r[11] = S, r[12] = p, r[13] = H;
|
|
39063
|
+
} else H = r[13];
|
|
39064
|
+
let W = H;
|
|
39065
|
+
if (w === "read" && S || B) {
|
|
39066
39066
|
let e2;
|
|
39067
39067
|
r[14] !== d || r[15] !== R || r[16] !== c || r[17] !== I ? (e2 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39068
39068
|
allowExpand: true,
|
|
@@ -39098,10 +39098,10 @@ ${c}
|
|
|
39098
39098
|
debuggerActive: false
|
|
39099
39099
|
}), r[31] = d, r[32] = l, r[33] = _, r[34] = T, r[35] = I, r[36] = O2) : O2 = r[36];
|
|
39100
39100
|
let M2;
|
|
39101
|
-
return r[37] !==
|
|
39101
|
+
return r[37] !== W || r[38] !== E2 || r[39] !== O2 || r[40] !== y2 || r[41] !== S2 || r[42] !== w2 ? (M2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
39102
39102
|
tabIndex: -1,
|
|
39103
39103
|
ref: j,
|
|
39104
|
-
className:
|
|
39104
|
+
className: W,
|
|
39105
39105
|
...y2,
|
|
39106
39106
|
children: [
|
|
39107
39107
|
S2,
|
|
@@ -39109,7 +39109,7 @@ ${c}
|
|
|
39109
39109
|
E2,
|
|
39110
39110
|
O2
|
|
39111
39111
|
]
|
|
39112
|
-
}), r[37] =
|
|
39112
|
+
}), r[37] = W, r[38] = E2, r[39] = O2, r[40] = y2, r[41] = S2, r[42] = w2, r[43] = M2) : M2 = r[43], M2;
|
|
39113
39113
|
}
|
|
39114
39114
|
if (shouldHidePublishedCell({
|
|
39115
39115
|
errored: m,
|
|
@@ -39118,25 +39118,25 @@ ${c}
|
|
|
39118
39118
|
output: c,
|
|
39119
39119
|
showErrorTracebacks: O
|
|
39120
39120
|
})) return null;
|
|
39121
|
-
let
|
|
39122
|
-
r[44] !== d || r[45] !== T ? (
|
|
39123
|
-
let
|
|
39124
|
-
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !==
|
|
39125
|
-
allowExpand:
|
|
39121
|
+
let G;
|
|
39122
|
+
r[44] !== d || r[45] !== T ? (G = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = G) : G = r[46];
|
|
39123
|
+
let q = w === "edit", Z;
|
|
39124
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== q ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39125
|
+
allowExpand: q,
|
|
39126
39126
|
output: c,
|
|
39127
39127
|
className: CSSClasses.outputArea,
|
|
39128
39128
|
cellId: d,
|
|
39129
39129
|
stale: I,
|
|
39130
39130
|
loading: R
|
|
39131
|
-
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] =
|
|
39132
|
-
let
|
|
39133
|
-
return r[53] !==
|
|
39131
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = q, r[52] = Z) : Z = r[52];
|
|
39132
|
+
let $W;
|
|
39133
|
+
return r[53] !== W || r[54] !== G || r[55] !== Z ? ($W = (0, import_jsx_runtime.jsx)("div", {
|
|
39134
39134
|
tabIndex: -1,
|
|
39135
39135
|
ref: j,
|
|
39136
|
-
className:
|
|
39137
|
-
...
|
|
39138
|
-
children:
|
|
39139
|
-
}), r[53] =
|
|
39136
|
+
className: W,
|
|
39137
|
+
...G,
|
|
39138
|
+
children: Z
|
|
39139
|
+
}), r[53] = W, r[54] = G, r[55] = Z, r[56] = $W) : $W = r[56], $W;
|
|
39140
39140
|
});
|
|
39141
39141
|
VerticalCell.displayName = "VerticalCell";
|
|
39142
39142
|
const VerticalLayoutPlugin = {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { ot as ansiToPlainText, st as parseHtmlContent } from "./html-to-image-
|
|
3
|
+
import { ot as ansiToPlainText, st as parseHtmlContent } from "./html-to-image-CRnU7G8x.js";
|
|
4
4
|
import { u as createLucideIcon } from "./dist-DIlxLFXG.js";
|
|
5
5
|
import { t as Strings } from "./strings-DIy9NAmg.js";
|
|
6
6
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
@@ -6,10 +6,10 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
6
6
|
import { c as useEventListener, g as Logger, h as cn, m as Events, t as Button } from "./button-BSm8IXRU.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 { ut as outputIsStale } from "./html-to-image-
|
|
9
|
+
import { ut as outputIsStale } from "./html-to-image-CRnU7G8x.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
11
11
|
import { u as createLucideIcon } from "./dist-DIlxLFXG.js";
|
|
12
|
-
import { a as DEFAULT_DECK_TRANSITION,
|
|
12
|
+
import { a as DEFAULT_DECK_TRANSITION, cn as EyeOff, dt as PanelGroup, fn as Code, ft as PanelResizeHandle, l as SlideSidebar, ln as Expand, n as useNotebookCodeAvailable, o as DEFAULT_DECK_VERTICAL_ALIGN, s as DEFAULT_SLIDE_TYPE, t as cellDomProps, u as Slide, ut as Panel } from "./common-Bj3GHNDa.js";
|
|
13
13
|
import { R as ChevronDown } from "./strings-DIy9NAmg.js";
|
|
14
14
|
import { X as useDebouncedCallback } from "./input-C5K4VBvB.js";
|
|
15
15
|
import { v as kioskModeAtom } from "./toDate-CqhBWjvO.js";
|
|
@@ -7391,9 +7391,9 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7391
7391
|
}
|
|
7392
7392
|
let o;
|
|
7393
7393
|
return t[3] === n ? o = t[4] : (o = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CellOutputBlock, { cell: n }), t[3] = n, t[4] = o), o;
|
|
7394
|
-
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: c, activeIndex: l, onSlideChange: u, mode:
|
|
7394
|
+
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: c, activeIndex: l, onSlideChange: u, mode: Co, configWidth: wo, isEditable: To = false }) => {
|
|
7395
7395
|
var _a2, _b2, _c;
|
|
7396
|
-
let
|
|
7396
|
+
let Eo = (0, import_react.useRef)(null), Oo = (0, import_react.useRef)(null), { width: ko, height: jo } = useSlideDimensions(Eo), Lo = useFullScreenElement() != null, Ro = useAtomValue(kioskModeAtom), Bo = (0, import_react.useMemo)(() => Ro ? [] : [ce], [Ro]), [Vo, Ho] = (0, import_react.useState)(() => /* @__PURE__ */ new Set()), Uo = useNotebookCodeAvailable(e5), Wo = !isIslands() && Uo, Go = l == null ? void 0 : e5[l], Ko = Go ?? e5.at(0), { parkedPreviewCell: qo, isHeldEdit: Jo, isNoOutputPreview: Yo, heldEditCellId: Xo, heldShowsCode: Zo, toggleHeldShowsCode: Qo } = useParkedPreview({
|
|
7397
7397
|
activeCell: Go,
|
|
7398
7398
|
slideConfigs: o.cells,
|
|
7399
7399
|
noOutputIds: c
|
|
@@ -7495,10 +7495,10 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7495
7495
|
useEventListener(document, "keydown", gs, { capture: true });
|
|
7496
7496
|
let vs = Jo ? null : Yo ? "Hidden as there is no output" : "Skipped in presentation", ys = Jo ? Zo : $o(qo == null ? void 0 : qo.id), bs = parkedRendersSource({
|
|
7497
7497
|
isNoOutputPreview: Yo,
|
|
7498
|
-
isEditable:
|
|
7498
|
+
isEditable: To,
|
|
7499
7499
|
showCode: ys
|
|
7500
7500
|
}), xs = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7501
|
-
ref:
|
|
7501
|
+
ref: Eo,
|
|
7502
7502
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
7503
7503
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7504
7504
|
className: "group relative",
|
|
@@ -7519,13 +7519,13 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7519
7519
|
children: as.stacks.map((e6, t) => e6.subslides.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7520
7520
|
subslide: e6.subslides[0],
|
|
7521
7521
|
resolveShowCode: $o,
|
|
7522
|
-
isEditable:
|
|
7522
|
+
isEditable: To,
|
|
7523
7523
|
slideConfigs: o.cells,
|
|
7524
7524
|
contentStyle: ls
|
|
7525
7525
|
}, t) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ne, { children: e6.subslides.map((e7, t2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7526
7526
|
subslide: e7,
|
|
7527
7527
|
resolveShowCode: $o,
|
|
7528
|
-
isEditable:
|
|
7528
|
+
isEditable: To,
|
|
7529
7529
|
slideConfigs: o.cells,
|
|
7530
7530
|
contentStyle: ls
|
|
7531
7531
|
}, t2)) }, t))
|
|
@@ -7544,7 +7544,7 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7544
7544
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ParkedPreviewContent, {
|
|
7545
7545
|
cell: qo,
|
|
7546
7546
|
isNoOutputPreview: Yo,
|
|
7547
|
-
isEditable:
|
|
7547
|
+
isEditable: To,
|
|
7548
7548
|
showCode: ys
|
|
7549
7549
|
})
|
|
7550
7550
|
})
|
|
@@ -7586,7 +7586,7 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7586
7586
|
]
|
|
7587
7587
|
})
|
|
7588
7588
|
});
|
|
7589
|
-
return
|
|
7589
|
+
return Co === "read" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7590
7590
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
7591
7591
|
children: xs
|
|
7592
7592
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -7622,7 +7622,7 @@ var ParkedPreviewContent = (e5) => {
|
|
|
7622
7622
|
})
|
|
7623
7623
|
]
|
|
7624
7624
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideSidebar, {
|
|
7625
|
-
configWidth:
|
|
7625
|
+
configWidth: wo,
|
|
7626
7626
|
layout: o,
|
|
7627
7627
|
setLayout: s,
|
|
7628
7628
|
activeConfigCell: Ko
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marimo-team/islands",
|
|
3
|
-
"version": "0.23.16-
|
|
3
|
+
"version": "0.23.16-dev36",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@lezer/markdown": "^1.6.3",
|
|
56
56
|
"@lezer/python": "^1.1.18",
|
|
57
57
|
"@marimo-team/codemirror-ai": "^0.3.7",
|
|
58
|
-
"@marimo-team/codemirror-languageserver": "^
|
|
58
|
+
"@marimo-team/codemirror-languageserver": "^2.0.0",
|
|
59
59
|
"@marimo-team/codemirror-mcp": "^0.1.7",
|
|
60
60
|
"@marimo-team/codemirror-sql": "^0.3.0",
|
|
61
61
|
"@marimo-team/llm-info": "workspace:*",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"@marimo-team/react-slotz": "^0.2.0",
|
|
64
64
|
"@marimo-team/smart-cells": "workspace:*",
|
|
65
65
|
"@mui/material": "^6.5.0",
|
|
66
|
-
"@open-rpc/client-js": "^1.8.1",
|
|
67
66
|
"@paralleldrive/cuid2": "^2.3.1",
|
|
68
67
|
"@radix-ui/colors": "^3.0.0",
|
|
69
68
|
"@radix-ui/react-icons": "~1.3.2",
|