@marimo-team/islands 0.23.16-dev13 → 0.23.16-dev15
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-JeekqoMH.js → chat-ui-CcYVurki.js} +3116 -3116
- package/dist/{code-visibility-DgtKp1AN.js → code-visibility-D3Ara34d.js} +119 -119
- package/dist/{formats-CO8cn5_K.js → formats-Dwq1THhr.js} +1 -1
- package/dist/{html-to-image-Bif4utQZ.js → html-to-image-C0Yzb7i_.js} +2201 -2223
- package/dist/main.js +89 -89
- package/dist/{process-output-TAzy-GUk.js → process-output-BAcrLXhS.js} +1 -1
- package/dist/{reveal-component-B_CE2EbA.js → reveal-component-CSYwIpfk.js} +40 -40
- package/dist/toDate-CqhBWjvO.js +713 -0
- package/dist/{vega-component-DphdxaJ_.js → vega-component-C7nO5zcf.js} +2 -2
- package/package.json +1 -1
- package/src/core/mode.ts +10 -0
- package/src/core/network/__tests__/connection.test.ts +45 -0
- package/src/core/network/__tests__/requests-network.test.ts +13 -0
- package/src/core/network/connection.ts +15 -0
- package/src/core/network/requests-network.ts +6 -3
- package/dist/toDate-CmR_xR3P.js +0 -692
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,
|
|
25
|
+
import { $ as notebookOutline, A as ChevronDownIcon, Bn as Eye, Bt as DATA_TYPE_ICON, C as Accordion, Cn as selectAtom, Ct as PathBuilder, D as BorderAllIcon, Dn as Item$1, E as AccordionTrigger, En as Content2, Ft as repl, G as hasRunAnyCellAtom, Gn as CircleAlert, H as renderHTML, Hn as Database, Ht as require_client, I as base64ToDataView, In as LoaderCircle, It as SQLParser, Jt as requestClientAtom, K as cellIdsAtom, Kn as Braces, Kt as convertStatsName, Ln as Layers, Lt as MarkdownParser, Mn as Table2, Mt as jotaiJsonStorage, Nn as PaintRoller, On as Root2$1, Ot as DeferredRequestRegistry, Q as notebookAtom, Qt as shouldHidePublishedCell, R as dataViewToBase64, Rn as Info, Sn as atomWithStorage, T as AccordionItem, U as getMarimoExportContext, Un as Columns2, V as safeExtractSetUIElementMessageBuffers, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as isUninstantiated, Y as getCellNames, Yt as useRequestClient, Z as initialNotebookState, Zt as publishedCellClasses, _n as OBJECT_ID_ATTR, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bt as customPythonLanguageSupport, dn as parseInitialValue, dt as headingToIdentifier, et as numColumnsAtom, f as isOutputEmpty, gn as findCellId, gt as getValidName, hn as UIElementId, i as LazyAnyLanguageCodeMirror, jn as Trash2, kn as Trigger2, kt as generateUUID, ln as parseAttrValue, lt as outputIsLoading, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, on as NotebookScopedLocalStorage, p as useExpandedConsoleOutput, pn as HTMLCellId, q as createActions, qt as getRequestClient, rt as useCellIds, s as maybeAddAltairImport, tt as reducer, un as parseDataset, ut as outputIsStale, vn as RANDOM_ID_ATTR, vt as normalizeName, w as AccordionContent, wt as Paths, xn as atomWithReducer, xt as MarkdownLanguageAdapter, yn as jsonParseWithSpecialChar, yt as Checkbox, zn as FileText, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-C0Yzb7i_.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 ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ChevronLeft, _t as TableHeader, an as TextWrap, at as SlotNames, b as downloadByURL, bt as generateColumns, cn as EyeOff, d as RadioGroup, dn as Download, dt as Fill, en as safeLocale, et as PANEL_TYPES, f as RadioGroupItem, fn as Code, ft as Provider$1, g as DataTable, gn as ChevronsDownUp, gt as TableHead, h as OutputRenderer, hn as ChevronsLeft, ht as TableCell, in as $fae977aafc393c5c$export$6b862160d295c8e, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, m as OutputArea, mn as ChevronsRight, mt as TableBody, n as marimoVersionAtom, nn as isRecord, nt as contextAwarePanelOwner, on as GripHorizontal, ot as slotsController, p as JsonOutput, pn as ChevronsUpDown, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as Funnel, st as Toggle, t as useNotebookCodeAvailable, tn as hasFunctionProperty, tt as contextAwarePanelOpen, u as Switch, un as Ellipsis, v as ADD_PRINTING_CLASS, vn as ArrowDownWideNarrow, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-
|
|
29
|
+
import { $ as ContextAwarePanelItem, $t as EmotionCacheProvider, A as prettifyRowColumnCount, At as loadTableData, B as useSelectList, Bt as dateToLocalISOTime, C as Filenames, Ct as ColumnChartContext, D as EmptyState, Dt as usePrevious$1, E as ColumnPreviewContainer, Et as useIntersectionObserver, F as ContextMenuContent, Ft as getMimeValues, G as ComboboxItem, Gt as ChartErrorState, H as DatePicker, Ht as TabsContent, I as ContextMenuItem, It as isNullishFilter, J as CommandInput, Jt as LazyVegaEmbed, K as Command, Kt as ChartInfoState, L as ContextMenuSeparator, Lt as Maps, M as getColumnCountForDisplay, Mt as SELECT_COLUMN_ID, N as getUserColumnVisibilityCounts, Nt as TOO_MANY_ROWS, O as ErrorState, Ot as getPageIndexForRow, P as ContextMenu, Pt as toFieldTypes, Q as smartMatch, Qt as HtmlOutput, R as ContextMenuTrigger, Rt as dateToLocalISODate, S as Progress, St as renderCellValue, T as ColumnName, Tt as DelayMount, U as DateRangePicker, Ut as TabsList, V as CompactChipRow, Vt as Tabs, W as Combobox, Wt as TabsTrigger, X as CommandList, Xt as RenderTextWithLinks, Y as CommandItem, Yt as useOverflowDetection, Z as CommandSeparator, Zt as Kbd, _ as InstallPackageButton, _n as ChevronLeft, _t as TableHeader, an as TextWrap, at as SlotNames, b as downloadByURL, bt as generateColumns, cn as EyeOff, d as RadioGroup, dn as Download, dt as Fill, en as safeLocale, et as PANEL_TYPES, f as RadioGroupItem, fn as Code, ft as Provider$1, g as DataTable, gn as ChevronsDownUp, gt as TableHead, h as OutputRenderer, hn as ChevronsLeft, ht as TableCell, in as $fae977aafc393c5c$export$6b862160d295c8e, it as isCellAwareAtom, j as prettifyRowCount, jt as INDEX_COLUMN_NAME, k as LoadingState, kt as loadTableAndRawData, l as Slide, m as OutputArea, mn as ChevronsRight, mt as TableBody, n as marimoVersionAtom, nn as isRecord, nt as contextAwarePanelOwner, on as GripHorizontal, ot as slotsController, p as JsonOutput, pn as ChevronsUpDown, pt as Table, q as CommandEmpty, qt as ChartLoadingState, r as showCodeInRunModeAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelType, s as SLIDE_TYPE_OPTIONS_BY_VALUE, sn as Funnel, st as Toggle, t as useNotebookCodeAvailable, tn as hasFunctionProperty, tt as contextAwarePanelOpen, u as Switch, un as Ellipsis, v as ADD_PRINTING_CLASS, vn as ArrowDownWideNarrow, vt as TableRow, w as downloadSizeLimitAtom, wt as ColumnChartSpecModel, x as downloadHTMLAsImage, xt as inferFieldTypes, y as downloadBlob, yt as NAMELESS_COLUMN_PREFIX, z as useInternalStateWithSync, zt as dateToLocalISODateTime, __tla as __tla_2 } from "./code-visibility-D3Ara34d.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
|
-
import {
|
|
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-
|
|
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-BAcrLXhS.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";
|
|
@@ -60,7 +60,7 @@ import "./dist-DgjbnqTg.js";
|
|
|
60
60
|
import { r as python } from "./dist-CRmSjkLP.js";
|
|
61
61
|
import { n as minimalSetup, t as esm_default } from "./esm-DzZVaNH4.js";
|
|
62
62
|
import "./purify.es-EnR5yhgI.js";
|
|
63
|
-
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-
|
|
63
|
+
import { i as AlertTitle, n as Alert, r as AlertDescription } from "./formats-Dwq1THhr.js";
|
|
64
64
|
import { H as getVegaFieldTypes, V as getContainerWidth } from "./vega-loader.browser-DmpxCJqx.js";
|
|
65
65
|
import { a as tooltipHandler, n as vegaLoadData } from "./loader-DX-IDS7n.js";
|
|
66
66
|
import "./defaultLocale-BpsHxBd7.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-CcYVurki.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 = eG.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] = nG) : nG = r[12];
|
|
18736
|
-
let rG = p == null ? void 0 : p.transforms.length,
|
|
18737
|
-
r[13] !== E || r[14] !== m || r[15] !== rG ? (
|
|
18736
|
+
let rG = p == null ? void 0 : p.transforms.length, aG;
|
|
18737
|
+
r[13] !== E || r[14] !== m || r[15] !== rG ? (aG = [
|
|
18738
18738
|
E,
|
|
18739
18739
|
rG,
|
|
18740
18740
|
eG,
|
|
18741
18741
|
m
|
|
18742
|
-
], r[13] = E, r[14] = m, r[15] = rG, r[16] =
|
|
18743
|
-
let
|
|
18744
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18742
|
+
], r[13] = E, r[14] = m, r[15] = rG, r[16] = aG) : aG = r[16], (0, import_react.useEffect)(nG, 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 cG;
|
|
18777
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cG = (0, import_jsx_runtime.jsx)("div", {
|
|
18778
|
-
className: "grow"
|
|
18779
|
-
}), r[22] = cG) : cG = r[22];
|
|
18775
|
+
}), r[20] = W, r[21] = cG);
|
|
18780
18776
|
let lG;
|
|
18781
|
-
r[
|
|
18777
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lG = (0, import_jsx_runtime.jsx)("div", {
|
|
18778
|
+
className: "grow"
|
|
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
|
-
aG,
|
|
18785
18784
|
oG,
|
|
18786
18785
|
sG,
|
|
18787
|
-
cG
|
|
18786
|
+
cG,
|
|
18787
|
+
lG
|
|
18788
18788
|
]
|
|
18789
|
-
}), r[23] =
|
|
18790
|
-
let uG;
|
|
18791
|
-
r[26] === j ? uG = r[27] : (uG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18792
|
-
size: "small"
|
|
18793
|
-
}), r[26] = j, r[27] = uG);
|
|
18789
|
+
}), r[23] = sG, r[24] = cG, r[25] = uG) : uG = r[25];
|
|
18794
18790
|
let dG;
|
|
18795
|
-
r[
|
|
18791
|
+
r[26] === j ? dG = r[27] : (dG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18792
|
+
size: "small"
|
|
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 fG;
|
|
18803
|
-
r[31] !== m || r[32] !== p ? (fG = (e2) => {
|
|
18804
|
-
dequal(e2, p) || (m(e2), Z(e2));
|
|
18805
|
-
}, r[31] = m, r[32] = p, r[33] = fG) : fG = r[33];
|
|
18801
|
+
}), r[28] = uG, r[29] = dG, r[30] = fG) : fG = r[30];
|
|
18806
18802
|
let pG;
|
|
18807
|
-
r[
|
|
18803
|
+
r[31] !== m || r[32] !== p ? (pG = (e2) => {
|
|
18804
|
+
dequal(e2, p) || (m(e2), Z(e2));
|
|
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: ZW,
|
|
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] !== $W || r[46] !==
|
|
18842
|
+
}), r[43] = W, r[44] = gG);
|
|
18843
|
+
let _G;
|
|
18844
|
+
r[45] !== $W || 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: $W,
|
|
18847
18847
|
children: [
|
|
18848
|
-
|
|
18849
|
-
pG,
|
|
18848
|
+
fG,
|
|
18850
18849
|
mG,
|
|
18851
|
-
hG
|
|
18850
|
+
hG,
|
|
18851
|
+
gG
|
|
18852
18852
|
]
|
|
18853
|
-
}), r[45] = $W, r[46] =
|
|
18854
|
-
let
|
|
18855
|
-
r[51] === O ?
|
|
18853
|
+
}), r[45] = $W, 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
|
-
gG,
|
|
18894
18893
|
_G,
|
|
18895
|
-
|
|
18894
|
+
vG,
|
|
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() {
|
|
@@ -19078,8 +19078,8 @@ ${c}
|
|
|
19078
19078
|
}, [
|
|
19079
19079
|
B
|
|
19080
19080
|
]);
|
|
19081
|
-
let H = `${g}::${L}`, [W,
|
|
19082
|
-
W !== H && (
|
|
19081
|
+
let H = `${g}::${L}`, [W, G] = (0, import_react.useState)(H);
|
|
19082
|
+
W !== H && (G(H), E(0)), (0, import_react.useLayoutEffect)(() => {
|
|
19083
19083
|
var _a6;
|
|
19084
19084
|
M.current && (M.current = false, (_a6 = O.current[0]) == null ? void 0 : _a6.focus());
|
|
19085
19085
|
}, [
|
|
@@ -19090,7 +19090,7 @@ ${c}
|
|
|
19090
19090
|
kind: "danger",
|
|
19091
19091
|
children: z.message
|
|
19092
19092
|
});
|
|
19093
|
-
let nG = PathBuilder.guessDeliminator(c).deliminator,
|
|
19093
|
+
let nG = 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 aG(e2) {
|
|
@@ -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: tG
|
|
25303
25303
|
}), r[56] = tG, r[57] = nG);
|
|
25304
|
-
let
|
|
25305
|
-
r[58] !== QW || r[59] !== nG ? (
|
|
25304
|
+
let iG;
|
|
25305
|
+
r[58] !== QW || r[59] !== nG ? (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
|
QW,
|
|
25309
25309
|
nG
|
|
25310
25310
|
]
|
|
25311
|
-
}), r[58] = QW, r[59] = nG, r[60] =
|
|
25311
|
+
}), r[58] = QW, r[59] = nG, r[60] = iG) : iG = r[60];
|
|
25312
25312
|
let aG;
|
|
25313
|
-
r[61] !== G || r[62] !==
|
|
25313
|
+
r[61] !== G || r[62] !== iG ? (aG = (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] = aG) : aG = r[63];
|
|
25320
25320
|
let oG;
|
|
25321
25321
|
r[64] !== W || r[65] !== aG || r[66] !== z || r[67] !== B ? (oG = (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] = eG, r[25] = tG, r[26] = I, r[27] = nG) : nG = r[27];
|
|
25514
|
-
let
|
|
25515
|
-
r[28] !== _ || r[29] !== nG ? (
|
|
25514
|
+
let iG;
|
|
25515
|
+
r[28] !== _ || r[29] !== nG ? (iG = withTooltip(nG, _), r[28] = _, r[29] = nG, r[30] = iG) : iG = r[30];
|
|
25516
25516
|
let aG;
|
|
25517
|
-
r[31] !==
|
|
25517
|
+
r[31] !== iG || r[32] !== $W ? (aG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25518
25518
|
className: "flex justify-end gap-2 font-code",
|
|
25519
25519
|
children: [
|
|
25520
25520
|
$W,
|
|
25521
|
-
|
|
25521
|
+
iG
|
|
25522
25522
|
]
|
|
25523
|
-
}), r[31] =
|
|
25523
|
+
}), r[31] = iG, r[32] = $W, r[33] = aG) : aG = r[33];
|
|
25524
25524
|
let oG;
|
|
25525
25525
|
r[34] !== aG || r[35] !== G || r[36] !== Z || r[37] !== ZW || r[38] !== QW ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25526
25526
|
className: G,
|
|
@@ -25532,13 +25532,13 @@ ${c}
|
|
|
25532
25532
|
aG
|
|
25533
25533
|
]
|
|
25534
25534
|
}), r[34] = aG, r[35] = G, r[36] = Z, r[37] = ZW, r[38] = QW, r[39] = oG) : oG = r[39];
|
|
25535
|
-
let
|
|
25536
|
-
return r[40] !== oG || r[41] !== H ? (
|
|
25535
|
+
let cG;
|
|
25536
|
+
return r[40] !== oG || 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: oG
|
|
25541
|
-
}), r[40] = oG, r[41] = H, r[42] =
|
|
25541
|
+
}), r[40] = oG, 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;
|
|
@@ -28375,7 +28375,7 @@ ${c}
|
|
|
28375
28375
|
return true;
|
|
28376
28376
|
}
|
|
28377
28377
|
}
|
|
28378
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
28378
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-C7nO5zcf.js")), VegaPlugin = class {
|
|
28379
28379
|
constructor() {
|
|
28380
28380
|
__publicField(this, "tagName", "marimo-vega");
|
|
28381
28381
|
__publicField(this, "validator", object({
|
|
@@ -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-CSYwIpfk.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), [
|
|
@@ -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-C0Yzb7i_.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";
|