@marimo-team/islands 0.23.2-dev33 → 0.23.2-dev37
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-CVKwVnwD.js → chat-ui-CqkLwgnX.js} +1 -1
- package/dist/main.js +233 -80
- package/dist/{process-output-BX1UfKIX.js → process-output-Db_3pJA4.js} +2115 -2111
- package/package.json +1 -1
- package/src/components/data-table/__tests__/sentinel-cell.test.tsx +83 -0
- package/src/components/data-table/__tests__/utils.test.ts +128 -0
- package/src/components/data-table/column-header.tsx +11 -2
- package/src/components/data-table/columns.tsx +16 -2
- package/src/components/data-table/sentinel-cell.tsx +90 -0
- package/src/components/data-table/types.ts +23 -0
- package/src/components/data-table/utils.ts +74 -1
- package/src/components/ui/toast.tsx +16 -7
package/dist/main.js
CHANGED
|
@@ -22,7 +22,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
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-Bp6CK_Fg.js";
|
|
25
|
-
import { $ as createActions, $t as isUninstantiated, A as MarimoIncomingMessageEvent, An as Trash2, At as PathBuilder, B as DotFilledIcon, Bn as Database, Ct as getValidName, D as AccordionContent, Dn as Root2$4, Dt as customPythonLanguageSupport, E as Accordion, En as Item$1, Et as Checkbox, F as BorderAllIcon, Fn as Layers, Ft as generateUUID, G as base64ToDataView, Gn as esm_default$1, Gt as require_client, H as PinRightIcon, Hn as CircleX, Ht as PluralWords, In as Info, It as useChromeActions, J as extractBase64FromDataURL, K as base64ToUint8Array, Kn as import_lib, L as CheckIcon, Ln as File, Lt as repl, M as MarimoValueReadyEvent, Mn as PaintRoller, N as MarimoValueUpdateEvent, Nn as NotebookPen, Nt as goToCellLine, O as AccordionItem, On as Trigger2, Ot as MarkdownLanguageAdapter, P as createInputEvent, Pn as LoaderCircle, Pt as DeferredRequestRegistry, Qt as useRequestClient, R as ChevronDownIcon, Rn as FileText, Rt as adaptForLocalStorage, Sn as selectAtom, St as displayCellName, Tn as Content2$1, Tt as normalizeName, U as deserializeBlob, Un as CircleAlert, Ut as DATA_TYPE_ICON, V as PinLeftIcon, Vn as Columns2, Vt as PluralWord, Wn as Braces, Wt as getDataTypeColor, X as safeExtractSetUIElementMessageBuffers, Xt as getRequestClient, Y as isDataURLString, Yt as convertStatsName, Z as renderHTML, Zt as requestClientAtom, _ as useExpandedConsoleOutput, _n as jsonParseWithSpecialChar, _t as isErrorMime, a as toPng, at as reducer, b as getDatasourceContext, bn as atomWithReducer, bt as DATA_CELL_ID, c as useCellFocusActions, cn as parseDataset, ct as useCellNames, d as Spinner, dn as HTMLCellId, dt as getInitialAppMode, et as getCellEditorView, f as Popover$1, fn as SCRATCH_CELL_ID, ft as initialModeAtom, g as isOutputEmpty, gn as RANDOM_ID_ATTR, gt as outputIsStale, h as PopoverTrigger, hn as OBJECT_ID_ATTR, ht as outputIsLoading, i as PythonIcon, in as NotebookScopedLocalStorage, it as numColumnsAtom, j as MarimoValueInputEvent, jn as Table2, jt as Paths, k as AccordionTrigger, kn as Wrench, l as useLastFocusedCellId, ln as parseInitialValue, lt as createCell, m as PopoverContent, mn as findCellId, mt as viewStateAtom, n as blobToString, nn as extractAllTracebackInfo, nt as notebookAtom, o as MarkdownRenderer, on as filenameAtom, ot as useCellActions, p as PopoverClose$1, pn as UIElementId, pt as kioskModeAtom, q as dataViewToBase64, r as filesToBase64, rn as getTracebackInfo, rt as notebookOutline, s as LazyAnyLanguageCodeMirror, sn as parseAttrValue, st as useCellIds, t as processOutput, tn as elementContainsMarimoCellFile, tt as getCellNames, u as maybeAddAltairImport, un as CellOutputId, ut as AnsiUp, v as useExpandedOutput, vn as jsonToMarkdown, vt as headingToIdentifier, wn as Close$1, wt as isInternalCellName, xn as atomWithStorage, xt as getCellDomProps, yn as jsonToTSV, yt as sanitizeHtml, z as ChevronRightIcon, zn as Eye, zt as jotaiJsonStorage, __tla as __tla_0 } from "./process-output-
|
|
25
|
+
import { $ as createActions, $t as isUninstantiated, A as MarimoIncomingMessageEvent, An as Trash2, At as PathBuilder, B as DotFilledIcon, Bn as Database, Ct as getValidName, D as AccordionContent, Dn as Root2$4, Dt as customPythonLanguageSupport, E as Accordion, En as Item$1, Et as Checkbox, F as BorderAllIcon, Fn as Layers, Ft as generateUUID, G as base64ToDataView, Gn as esm_default$1, Gt as require_client, H as PinRightIcon, Hn as CircleX, Ht as PluralWords, In as Info, It as useChromeActions, J as extractBase64FromDataURL, K as base64ToUint8Array, Kn as import_lib, L as CheckIcon, Ln as File, Lt as repl, M as MarimoValueReadyEvent, Mn as PaintRoller, N as MarimoValueUpdateEvent, Nn as NotebookPen, Nt as goToCellLine, O as AccordionItem, On as Trigger2, Ot as MarkdownLanguageAdapter, P as createInputEvent, Pn as LoaderCircle, Pt as DeferredRequestRegistry, Qt as useRequestClient, R as ChevronDownIcon, Rn as FileText, Rt as adaptForLocalStorage, Sn as selectAtom, St as displayCellName, Tn as Content2$1, Tt as normalizeName, U as deserializeBlob, Un as CircleAlert, Ut as DATA_TYPE_ICON, V as PinLeftIcon, Vn as Columns2, Vt as PluralWord, Wn as Braces, Wt as getDataTypeColor, X as safeExtractSetUIElementMessageBuffers, Xt as getRequestClient, Y as isDataURLString, Yt as convertStatsName, Z as renderHTML, Zt as requestClientAtom, _ as useExpandedConsoleOutput, _n as jsonParseWithSpecialChar, _t as isErrorMime, a as toPng, at as reducer, b as getDatasourceContext, bn as atomWithReducer, bt as DATA_CELL_ID, c as useCellFocusActions, cn as parseDataset, ct as useCellNames, d as Spinner, dn as HTMLCellId, dt as getInitialAppMode, et as getCellEditorView, f as Popover$1, fn as SCRATCH_CELL_ID, ft as initialModeAtom, g as isOutputEmpty, gn as RANDOM_ID_ATTR, gt as outputIsStale, h as PopoverTrigger, hn as OBJECT_ID_ATTR, ht as outputIsLoading, i as PythonIcon, in as NotebookScopedLocalStorage, it as numColumnsAtom, j as MarimoValueInputEvent, jn as Table2, jt as Paths, k as AccordionTrigger, kn as Wrench, l as useLastFocusedCellId, ln as parseInitialValue, lt as createCell, m as PopoverContent, mn as findCellId, mt as viewStateAtom, n as blobToString, nn as extractAllTracebackInfo, nt as notebookAtom, o as MarkdownRenderer, on as filenameAtom, ot as useCellActions, p as PopoverClose$1, pn as UIElementId, pt as kioskModeAtom, q as dataViewToBase64, r as filesToBase64, rn as getTracebackInfo, rt as notebookOutline, s as LazyAnyLanguageCodeMirror, sn as parseAttrValue, st as useCellIds, t as processOutput, tn as elementContainsMarimoCellFile, tt as getCellNames, u as maybeAddAltairImport, un as CellOutputId, ut as AnsiUp, v as useExpandedOutput, vn as jsonToMarkdown, vt as headingToIdentifier, wn as Close$1, wt as isInternalCellName, xn as atomWithStorage, xt as getCellDomProps, yn as jsonToTSV, yt as sanitizeHtml, z as ChevronRightIcon, zn as Eye, zt as jotaiJsonStorage, __tla as __tla_0 } from "./process-output-Db_3pJA4.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-DDhYtPiB.js";
|
|
27
27
|
import { o as useSize, s as Root$4, u as createLucideIcon } from "./dist-CTtLBPLZ.js";
|
|
28
28
|
import { A as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as ListFilter, I as ChartPie, L as ChartColumn, M as $5a387cc49350e6db$export$722debc0e56fea39, N as Table$1, O as TIME_UNIT_DESCRIPTIONS, P as SquareFunction, 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 $fb18d541ea1ad717$export$ad991b66133851cf, 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-Budha9Vn.js";
|
|
@@ -10510,7 +10510,7 @@ Defaulting to \`null\`.`;
|
|
|
10510
10510
|
function set$1(e, r, c) {
|
|
10511
10511
|
return e == null ? e : _baseSet_default(e, r, c);
|
|
10512
10512
|
}
|
|
10513
|
-
var set_default = set$1, import_compiler_runtime$
|
|
10513
|
+
var set_default = set$1, import_compiler_runtime$143 = require_compiler_runtime(), hydratedMap = /* @__PURE__ */ new WeakMap();
|
|
10514
10514
|
function useHydrateAtoms(e, r) {
|
|
10515
10515
|
let c = useStore(r), d = getHydratedSet(c);
|
|
10516
10516
|
for (let [f, ...h] of e) (!d.has(f) || (r == null ? void 0 : r.dangerouslyForceHydrate)) && (d.add(f), c.set(f, ...h));
|
|
@@ -13803,7 +13803,7 @@ Defaulting to \`null\`.`;
|
|
|
13803
13803
|
}
|
|
13804
13804
|
repl(MODEL_MANAGER, "MODEL_MANAGER");
|
|
13805
13805
|
var NavigationMenu = import_react.forwardRef((e, r) => {
|
|
13806
|
-
let c = (0, import_compiler_runtime$
|
|
13806
|
+
let c = (0, import_compiler_runtime$143.c)(16), d, f, h, _;
|
|
13807
13807
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: f, children: d, orientation: h, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
13808
13808
|
let y = h === "horizontal" && "max-w-max flex-1 items-center justify-center", S = h === "vertical" && "", w;
|
|
13809
13809
|
c[5] !== f || c[6] !== y || c[7] !== S ? (w = cn(y, S, "relative z-10", f), c[5] = f, c[6] = y, c[7] = S, c[8] = w) : w = c[8];
|
|
@@ -13833,7 +13833,7 @@ Defaulting to \`null\`.`;
|
|
|
13833
13833
|
orientation: "horizontal"
|
|
13834
13834
|
}
|
|
13835
13835
|
}), NavigationMenuList = import_react.forwardRef((e, r) => {
|
|
13836
|
-
let c = (0, import_compiler_runtime$
|
|
13836
|
+
let c = (0, import_compiler_runtime$143.c)(11), d, f, h;
|
|
13837
13837
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: d, orientation: f, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
13838
13838
|
let _;
|
|
13839
13839
|
c[4] !== d || c[5] !== f ? (_ = cn(navigationMenuListStyle({
|
|
@@ -13858,7 +13858,7 @@ Defaulting to \`null\`.`;
|
|
|
13858
13858
|
orientation: "horizontal"
|
|
13859
13859
|
}
|
|
13860
13860
|
}), NavigationMenuTrigger = import_react.forwardRef((e, r) => {
|
|
13861
|
-
let c = (0, import_compiler_runtime$
|
|
13861
|
+
let c = (0, import_compiler_runtime$143.c)(12), d, f, h;
|
|
13862
13862
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: f, children: d, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
13863
13863
|
let _;
|
|
13864
13864
|
c[4] === f ? _ = c[5] : (_ = cn(navigationMenuTriggerStyle(), "group", f), c[4] = f, c[5] = _);
|
|
@@ -13881,7 +13881,7 @@ Defaulting to \`null\`.`;
|
|
|
13881
13881
|
});
|
|
13882
13882
|
NavigationMenuTrigger.displayName = Trigger$1.displayName;
|
|
13883
13883
|
var NavigationMenuContent = import_react.forwardRef((e, r) => {
|
|
13884
|
-
let c = (0, import_compiler_runtime$
|
|
13884
|
+
let c = (0, import_compiler_runtime$143.c)(9), d, f;
|
|
13885
13885
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
13886
13886
|
let h;
|
|
13887
13887
|
c[3] === d ? h = c[4] : (h = cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", d), c[3] = d, c[4] = h);
|
|
@@ -13894,7 +13894,7 @@ Defaulting to \`null\`.`;
|
|
|
13894
13894
|
});
|
|
13895
13895
|
NavigationMenuContent.displayName = Content$1.displayName;
|
|
13896
13896
|
var NavigationMenuLink = Link, NavigationMenuViewport = import_react.forwardRef((e, r) => {
|
|
13897
|
-
let c = (0, import_compiler_runtime$
|
|
13897
|
+
let c = (0, import_compiler_runtime$143.c)(10), d, f;
|
|
13898
13898
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
13899
13899
|
let h;
|
|
13900
13900
|
c[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = cn("absolute left-0 top-full flex justify-center"), c[3] = h) : h = c[3];
|
|
@@ -13912,7 +13912,7 @@ Defaulting to \`null\`.`;
|
|
|
13912
13912
|
});
|
|
13913
13913
|
NavigationMenuViewport.displayName = Viewport.displayName;
|
|
13914
13914
|
var NavigationMenuIndicator = import_react.forwardRef((e, r) => {
|
|
13915
|
-
let c = (0, import_compiler_runtime$
|
|
13915
|
+
let c = (0, import_compiler_runtime$143.c)(10), d, f;
|
|
13916
13916
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
13917
13917
|
let h;
|
|
13918
13918
|
c[3] === d ? h = c[4] : (h = cn("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", d), c[3] = d, c[4] = h);
|
|
@@ -13929,7 +13929,7 @@ Defaulting to \`null\`.`;
|
|
|
13929
13929
|
}), c[6] = f, c[7] = r, c[8] = h, c[9] = y) : y = c[9], y;
|
|
13930
13930
|
});
|
|
13931
13931
|
NavigationMenuIndicator.displayName = Indicator$2.displayName;
|
|
13932
|
-
var import_compiler_runtime$
|
|
13932
|
+
var import_compiler_runtime$142 = require_compiler_runtime(), NavigationMenuPlugin = class {
|
|
13933
13933
|
constructor() {
|
|
13934
13934
|
__publicField(this, "tagName", "marimo-nav-menu");
|
|
13935
13935
|
__publicField(this, "menuItemValidator", object({
|
|
@@ -13958,7 +13958,7 @@ Defaulting to \`null\`.`;
|
|
|
13958
13958
|
});
|
|
13959
13959
|
}
|
|
13960
13960
|
}, NavMenuComponent = (e) => {
|
|
13961
|
-
let r = (0, import_compiler_runtime$
|
|
13961
|
+
let r = (0, import_compiler_runtime$142.c)(13), { items: c, orientation: d } = e, f = _temp$38, h = _temp2$25, _ = _temp3$17, v;
|
|
13962
13962
|
r[0] === d ? v = r[1] : (v = (e2) => "items" in e2 ? d === "horizontal" ? (0, import_jsx_runtime.jsx)(NavigationMenu, {
|
|
13963
13963
|
orientation: "horizontal",
|
|
13964
13964
|
children: (0, import_jsx_runtime.jsx)(NavigationMenuList, {
|
|
@@ -14039,7 +14039,7 @@ Defaulting to \`null\`.`;
|
|
|
14039
14039
|
children: w
|
|
14040
14040
|
}), r[10] = d, r[11] = w, r[12] = E) : E = r[12], E;
|
|
14041
14041
|
}, ListItem = import_react.forwardRef((e, r) => {
|
|
14042
|
-
let c = (0, import_compiler_runtime$
|
|
14042
|
+
let c = (0, import_compiler_runtime$142.c)(19), d, f, h, _;
|
|
14043
14043
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: f, label: h, children: d, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
14044
14044
|
let y;
|
|
14045
14045
|
c[5] === f ? y = c[6] : (y = cn("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", f), c[5] = f, c[6] = y);
|
|
@@ -16939,9 +16939,9 @@ Defaulting to \`null\`.`;
|
|
|
16939
16939
|
isSelected: _
|
|
16940
16940
|
}
|
|
16941
16941
|
}, M.children));
|
|
16942
|
-
}), import_compiler_runtime$
|
|
16942
|
+
}), import_compiler_runtime$141 = require_compiler_runtime();
|
|
16943
16943
|
const LocaleProvider = (e) => {
|
|
16944
|
-
let r = (0, import_compiler_runtime$
|
|
16944
|
+
let r = (0, import_compiler_runtime$141.c)(5), { children: c } = e, d = useAtomValue(localeAtom), f;
|
|
16945
16945
|
r[0] === d ? f = r[1] : (f = safeLocale(d), r[0] = d, r[1] = f);
|
|
16946
16946
|
let h;
|
|
16947
16947
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)($18f2051aff69b9bf$export$a54013f0d02a8f82, {
|
|
@@ -17920,9 +17920,9 @@ Defaulting to \`null\`.`;
|
|
|
17920
17920
|
r,
|
|
17921
17921
|
d.name
|
|
17922
17922
|
]), null;
|
|
17923
|
-
}), import_compiler_runtime$
|
|
17923
|
+
}), import_compiler_runtime$140 = require_compiler_runtime();
|
|
17924
17924
|
const EmotionCacheProvider = (e) => {
|
|
17925
|
-
let r = (0, import_compiler_runtime$
|
|
17925
|
+
let r = (0, import_compiler_runtime$140.c)(6), { container: c, children: d } = e, f;
|
|
17926
17926
|
bb0: {
|
|
17927
17927
|
if (!c) {
|
|
17928
17928
|
let e3;
|
|
@@ -23090,9 +23090,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23090
23090
|
})
|
|
23091
23091
|
})
|
|
23092
23092
|
});
|
|
23093
|
-
}, import_compiler_runtime$
|
|
23093
|
+
}, import_compiler_runtime$139 = require_compiler_runtime();
|
|
23094
23094
|
const HtmlOutput = (0, import_react.memo)((e) => {
|
|
23095
|
-
let r = (0, import_compiler_runtime$
|
|
23095
|
+
let r = (0, import_compiler_runtime$139.c)(10), { html: c, inline: d, className: f, alwaysSanitizeHtml: h } = e, _ = d === void 0 ? false : d;
|
|
23096
23096
|
if (!c) return null;
|
|
23097
23097
|
let y = !_, S;
|
|
23098
23098
|
r[0] !== f || r[1] !== _ || r[2] !== y ? (S = cn(f, {
|
|
@@ -23111,9 +23111,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23111
23111
|
}), r[7] = S, r[8] = w, r[9] = E) : E = r[9], E;
|
|
23112
23112
|
});
|
|
23113
23113
|
HtmlOutput.displayName = "HtmlOutput";
|
|
23114
|
-
var import_compiler_runtime$
|
|
23114
|
+
var import_compiler_runtime$138 = require_compiler_runtime();
|
|
23115
23115
|
const ImageOutput = (e) => {
|
|
23116
|
-
let r = (0, import_compiler_runtime$
|
|
23116
|
+
let r = (0, import_compiler_runtime$138.c)(8), { src: c, alt: d, width: f, height: h, className: _ } = e, v = d === void 0 ? "" : d, y;
|
|
23117
23117
|
r[0] !== v || r[1] !== h || r[2] !== c || r[3] !== f ? (y = (0, import_jsx_runtime.jsx)("img", {
|
|
23118
23118
|
src: c,
|
|
23119
23119
|
alt: v,
|
|
@@ -23126,9 +23126,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23126
23126
|
children: y
|
|
23127
23127
|
}), r[5] = _, r[6] = y, r[7] = S) : S = r[7], S;
|
|
23128
23128
|
};
|
|
23129
|
-
var import_compiler_runtime$
|
|
23129
|
+
var import_compiler_runtime$137 = require_compiler_runtime();
|
|
23130
23130
|
const Kbd = (e) => {
|
|
23131
|
-
let r = (0, import_compiler_runtime$
|
|
23131
|
+
let r = (0, import_compiler_runtime$137.c)(5), c;
|
|
23132
23132
|
r[0] === e.className ? c = r[1] : (c = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), r[0] = e.className, r[1] = c);
|
|
23133
23133
|
let d;
|
|
23134
23134
|
return r[2] !== e.children || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -23136,9 +23136,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23136
23136
|
children: e.children
|
|
23137
23137
|
}), r[2] = e.children, r[3] = c, r[4] = d) : d = r[4], d;
|
|
23138
23138
|
};
|
|
23139
|
-
var import_compiler_runtime$
|
|
23139
|
+
var import_compiler_runtime$136 = require_compiler_runtime();
|
|
23140
23140
|
const ExternalLink$1 = (e) => {
|
|
23141
|
-
let r = (0, import_compiler_runtime$
|
|
23141
|
+
let r = (0, import_compiler_runtime$136.c)(3), { href: c, children: d } = e, f;
|
|
23142
23142
|
return r[0] !== d || r[1] !== c ? (f = (0, import_jsx_runtime.jsx)("a", {
|
|
23143
23143
|
href: c,
|
|
23144
23144
|
target: "_blank",
|
|
@@ -23309,17 +23309,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23309
23309
|
os: "os",
|
|
23310
23310
|
re: "re",
|
|
23311
23311
|
sys: "sys"
|
|
23312
|
-
}, import_compiler_runtime$
|
|
23312
|
+
}, import_compiler_runtime$135 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
23313
23313
|
function useFixMode() {
|
|
23314
|
-
let e = (0, import_compiler_runtime$
|
|
23314
|
+
let e = (0, import_compiler_runtime$135.c)(3), [r, c] = useAtom(fixModeAtom), d;
|
|
23315
23315
|
return e[0] !== r || e[1] !== c ? (d = {
|
|
23316
23316
|
fixMode: r,
|
|
23317
23317
|
setFixMode: c
|
|
23318
23318
|
}, e[0] = r, e[1] = c, e[2] = d) : d = e[2], d;
|
|
23319
23319
|
}
|
|
23320
|
-
var import_compiler_runtime$
|
|
23320
|
+
var import_compiler_runtime$134 = require_compiler_runtime();
|
|
23321
23321
|
const AutoFixButton = (e) => {
|
|
23322
|
-
let r = (0, import_compiler_runtime$
|
|
23322
|
+
let r = (0, import_compiler_runtime$134.c)(21), { errors: c, cellId: d, className: f } = e, h = useStore(), { createNewCell: _ } = useCellActions(), y = useAtomValue(aiEnabledAtom), S;
|
|
23323
23323
|
if (r[0] !== y || r[1] !== c) {
|
|
23324
23324
|
let e2;
|
|
23325
23325
|
r[3] === y ? e2 = r[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -23380,7 +23380,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23380
23380
|
};
|
|
23381
23381
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
23382
23382
|
const AIFixButton = (e) => {
|
|
23383
|
-
let r = (0, import_compiler_runtime$
|
|
23383
|
+
let r = (0, import_compiler_runtime$134.c)(21), { tooltip: c, openPrompt: d, applyAutofix: f } = e, { fixMode: h, setFixMode: _ } = useFixMode(), v = h === "prompt" ? d : f, y;
|
|
23384
23384
|
r[0] === h ? y = r[1] : (y = h === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
23385
23385
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
23386
23386
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -23449,7 +23449,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23449
23449
|
}), r[18] = G, r[19] = E, r[20] = q) : q = r[20], q;
|
|
23450
23450
|
};
|
|
23451
23451
|
var AiModeItem = (e) => {
|
|
23452
|
-
let r = (0, import_compiler_runtime$
|
|
23452
|
+
let r = (0, import_compiler_runtime$134.c)(12), { mode: c } = e, d;
|
|
23453
23453
|
r[0] === c ? d = r[1] : (d = c === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
23454
23454
|
className: "h-4 w-4"
|
|
23455
23455
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -23486,9 +23486,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23486
23486
|
function useFilename() {
|
|
23487
23487
|
return useAtomValue(filenameAtom);
|
|
23488
23488
|
}
|
|
23489
|
-
var import_compiler_runtime$
|
|
23489
|
+
var import_compiler_runtime$132 = require_compiler_runtime();
|
|
23490
23490
|
const CellLink = (e) => {
|
|
23491
|
-
let r = (0, import_compiler_runtime$
|
|
23491
|
+
let r = (0, import_compiler_runtime$132.c)(12), { className: c, cellId: d, variant: f, onClick: h, formatCellName: _, skipScroll: y } = e, S = useCellNames()[d] ?? "", w = useCellIds().inOrderIds.indexOf(d), { showCellIfHidden: E } = useCellActions(), O = _ ?? _temp$37, M;
|
|
23492
23492
|
r[0] === c ? M = r[1] : (M = cn("inline-block cursor-pointer text-link hover:underline", c), r[0] = c, r[1] = M);
|
|
23493
23493
|
let I;
|
|
23494
23494
|
r[2] !== d || r[3] !== h || r[4] !== E || r[5] !== y || r[6] !== f ? (I = (e2) => {
|
|
@@ -23508,13 +23508,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23508
23508
|
children: z
|
|
23509
23509
|
}), r[8] = M, r[9] = I, r[10] = z, r[11] = Y7) : Y7 = r[11], Y7;
|
|
23510
23510
|
}, CellLinkError = (e) => {
|
|
23511
|
-
let r = (0, import_compiler_runtime$
|
|
23511
|
+
let r = (0, import_compiler_runtime$132.c)(2), c;
|
|
23512
23512
|
return r[0] === e ? c = r[1] : (c = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
23513
23513
|
...e,
|
|
23514
23514
|
variant: "destructive"
|
|
23515
23515
|
}), r[0] = e, r[1] = c), c;
|
|
23516
23516
|
}, CellLinkTraceback = (e) => {
|
|
23517
|
-
let r = (0, import_compiler_runtime$
|
|
23517
|
+
let r = (0, import_compiler_runtime$132.c)(10), { cellId: c, lineNumber: d } = e, f = useFilename(), h;
|
|
23518
23518
|
r[0] !== c || r[1] !== d ? (h = () => goToCellLine(c, d), r[0] = c, r[1] = d, r[2] = h) : h = r[2];
|
|
23519
23519
|
let _;
|
|
23520
23520
|
r[3] !== c || r[4] !== f ? (_ = (e2) => c === "__scratch__" ? "scratch" : `marimo://${f || "untitled"}#cell=${e2}`, r[3] = c, r[4] = f, r[5] = _) : _ = r[5];
|
|
@@ -23611,7 +23611,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23611
23611
|
value: e2
|
|
23612
23612
|
});
|
|
23613
23613
|
}
|
|
23614
|
-
var import_compiler_runtime$
|
|
23614
|
+
var import_compiler_runtime$131 = require_compiler_runtime(), ansiUp = new AnsiUp();
|
|
23615
23615
|
const cleanAnsiCodes = (e) => {
|
|
23616
23616
|
let r = RegExp("\x1B\\[[0-9;]*m", "g");
|
|
23617
23617
|
return e.replaceAll(r, "");
|
|
@@ -23679,7 +23679,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23679
23679
|
});
|
|
23680
23680
|
}
|
|
23681
23681
|
var InstallPackageLink = (e) => {
|
|
23682
|
-
let r = (0, import_compiler_runtime$
|
|
23682
|
+
let r = (0, import_compiler_runtime$131.c)(6), { packages: c, children: d } = e, { handleInstallPackages: f } = useInstallPackages(), h;
|
|
23683
23683
|
r[0] !== f || r[1] !== c ? (h = (e2) => {
|
|
23684
23684
|
f(c), e2.preventDefault();
|
|
23685
23685
|
}, r[0] = f, r[1] = c, r[2] = h) : h = r[2];
|
|
@@ -23747,15 +23747,15 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23747
23747
|
replace: (e2) => r(e2)
|
|
23748
23748
|
})
|
|
23749
23749
|
}), RenderTextWithLinks = (e) => {
|
|
23750
|
-
let r = (0, import_compiler_runtime$
|
|
23750
|
+
let r = (0, import_compiler_runtime$131.c)(4), { text: c } = e, d;
|
|
23751
23751
|
r[0] === c ? d = r[1] : (d = renderTextWithReplacers(c, composeReplacers(pipInstallReplacer, urlReplacer)), r[0] = c, r[1] = d);
|
|
23752
23752
|
let f = d, h;
|
|
23753
23753
|
return r[2] === f ? h = r[3] : (h = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
23754
23754
|
children: f
|
|
23755
23755
|
}), r[2] = f, r[3] = h), h;
|
|
23756
23756
|
};
|
|
23757
|
-
var import_compiler_runtime$
|
|
23758
|
-
let r = (0, import_compiler_runtime$
|
|
23757
|
+
var import_compiler_runtime$130 = require_compiler_runtime(), Tip = (e) => {
|
|
23758
|
+
let r = (0, import_compiler_runtime$130.c)(10), c = e.title ?? "Tip", d;
|
|
23759
23759
|
r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
23760
23760
|
className: "pt-2 pb-2 font-normal",
|
|
23761
23761
|
children: c
|
|
@@ -23783,7 +23783,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23783
23783
|
}), r[7] = e.className, r[8] = h, r[9] = _) : _ = r[9], _;
|
|
23784
23784
|
};
|
|
23785
23785
|
const MarimoErrorOutput = (e) => {
|
|
23786
|
-
let r = (0, import_compiler_runtime$
|
|
23786
|
+
let r = (0, import_compiler_runtime$130.c)(31), { errors: c, cellId: d, className: f } = e, h = useChromeActions(), _ = "This cell wasn't run because it has errors", y = "destructive", S = "text-error";
|
|
23787
23787
|
if (c.some(_temp$36)) _ = "Interrupted";
|
|
23788
23788
|
else if (c.some(_temp2$24)) _ = "An internal error occurred";
|
|
23789
23789
|
else if (c.some(_temp3$16)) _ = "Ancestor prevented from running", y = "default", S = "text-secondary-foreground";
|
|
@@ -24460,9 +24460,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24460
24460
|
})
|
|
24461
24461
|
}, `sql-error-${r}`);
|
|
24462
24462
|
}
|
|
24463
|
-
var import_compiler_runtime$
|
|
24463
|
+
var import_compiler_runtime$129 = require_compiler_runtime();
|
|
24464
24464
|
const TextOutput = (e) => {
|
|
24465
|
-
let r = (0, import_compiler_runtime$
|
|
24465
|
+
let r = (0, import_compiler_runtime$129.c)(13), { text: c, channel: d, wrapText: f } = e, h = d === "stdout" || d === "stderr", _;
|
|
24466
24466
|
r[0] === f ? _ = r[1] : (_ = (e2) => (0, import_jsx_runtime.jsx)("span", {
|
|
24467
24467
|
className: f ? "whitespace-pre-wrap break-words" : "whitespace-pre",
|
|
24468
24468
|
children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
|
|
@@ -24479,17 +24479,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24479
24479
|
children: O
|
|
24480
24480
|
}), r[10] = E, r[11] = O, r[12] = M) : M = r[12], M;
|
|
24481
24481
|
};
|
|
24482
|
-
var import_compiler_runtime$
|
|
24482
|
+
var import_compiler_runtime$128 = require_compiler_runtime();
|
|
24483
24483
|
const VideoOutput = (e) => {
|
|
24484
|
-
let r = (0, import_compiler_runtime$
|
|
24484
|
+
let r = (0, import_compiler_runtime$128.c)(3), { src: c, className: d } = e, f;
|
|
24485
24485
|
return r[0] !== d || r[1] !== c ? (f = (0, import_jsx_runtime.jsx)("iframe", {
|
|
24486
24486
|
className: d,
|
|
24487
24487
|
src: c
|
|
24488
24488
|
}), r[0] = d, r[1] = c, r[2] = f) : f = r[2], f;
|
|
24489
24489
|
};
|
|
24490
|
-
var import_compiler_runtime$
|
|
24490
|
+
var import_compiler_runtime$127 = require_compiler_runtime();
|
|
24491
24491
|
function useOverflowDetection(e, r) {
|
|
24492
|
-
let c = (0, import_compiler_runtime$
|
|
24492
|
+
let c = (0, import_compiler_runtime$127.c)(4), d = r === void 0 ? true : r, [f, h] = (0, import_react.useState)(false), _, v;
|
|
24493
24493
|
return c[0] !== d || c[1] !== e ? (_ = () => {
|
|
24494
24494
|
let r2 = e.current;
|
|
24495
24495
|
if (!r2 || !d) return;
|
|
@@ -24586,9 +24586,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24586
24586
|
const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-BFLRzgl7.js").then((e) => ({
|
|
24587
24587
|
default: e.VegaEmbed
|
|
24588
24588
|
})));
|
|
24589
|
-
var import_compiler_runtime$
|
|
24589
|
+
var import_compiler_runtime$126 = require_compiler_runtime();
|
|
24590
24590
|
const ChartLoadingState = () => {
|
|
24591
|
-
let e = (0, import_compiler_runtime$
|
|
24591
|
+
let e = (0, import_compiler_runtime$126.c)(1), r;
|
|
24592
24592
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsxs)("div", {
|
|
24593
24593
|
className: "flex items-center gap-2 justify-center",
|
|
24594
24594
|
children: [
|
|
@@ -24602,7 +24602,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24602
24602
|
]
|
|
24603
24603
|
}), e[0] = r) : r = e[0], r;
|
|
24604
24604
|
}, ChartErrorState = (e) => {
|
|
24605
|
-
let r = (0, import_compiler_runtime$
|
|
24605
|
+
let r = (0, import_compiler_runtime$126.c)(2), { error: c } = e, d;
|
|
24606
24606
|
return r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)("div", {
|
|
24607
24607
|
className: "flex items-center justify-center",
|
|
24608
24608
|
children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
@@ -24610,7 +24610,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24610
24610
|
})
|
|
24611
24611
|
}), r[0] = c, r[1] = d), d;
|
|
24612
24612
|
}, ChartInfoState = (e) => {
|
|
24613
|
-
let r = (0, import_compiler_runtime$
|
|
24613
|
+
let r = (0, import_compiler_runtime$126.c)(8), { children: c, className: d } = e, f;
|
|
24614
24614
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col items-center justify-center gap-4", d), r[0] = d, r[1] = f);
|
|
24615
24615
|
let h;
|
|
24616
24616
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)(ChartPie, {
|
|
@@ -24630,8 +24630,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24630
24630
|
]
|
|
24631
24631
|
}), r[5] = f, r[6] = _, r[7] = y) : y = r[7], y;
|
|
24632
24632
|
};
|
|
24633
|
-
var import_compiler_runtime$
|
|
24634
|
-
let c = (0, import_compiler_runtime$
|
|
24633
|
+
var import_compiler_runtime$125 = require_compiler_runtime(), Tabs = Root2, TabsList = import_react.forwardRef((e, r) => {
|
|
24634
|
+
let c = (0, import_compiler_runtime$125.c)(9), d, f;
|
|
24635
24635
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
24636
24636
|
let h;
|
|
24637
24637
|
c[3] === d ? h = c[4] : (h = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -24644,7 +24644,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24644
24644
|
});
|
|
24645
24645
|
TabsList.displayName = List.displayName;
|
|
24646
24646
|
var TabsTrigger = import_react.forwardRef((e, r) => {
|
|
24647
|
-
let c = (0, import_compiler_runtime$
|
|
24647
|
+
let c = (0, import_compiler_runtime$125.c)(9), d, f;
|
|
24648
24648
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
24649
24649
|
let h;
|
|
24650
24650
|
c[3] === d ? h = c[4] : (h = cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", d), c[3] = d, c[4] = h);
|
|
@@ -24657,7 +24657,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24657
24657
|
});
|
|
24658
24658
|
TabsTrigger.displayName = Trigger.displayName;
|
|
24659
24659
|
var TabsContent = import_react.forwardRef((e, r) => {
|
|
24660
|
-
let c = (0, import_compiler_runtime$
|
|
24660
|
+
let c = (0, import_compiler_runtime$125.c)(9), d, f;
|
|
24661
24661
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
24662
24662
|
let h;
|
|
24663
24663
|
c[3] === d ? h = c[4] : (h = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", d), c[3] = d, c[4] = h);
|
|
@@ -24669,9 +24669,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24669
24669
|
}), c[5] = f, c[6] = r, c[7] = h, c[8] = _) : _ = c[8], _;
|
|
24670
24670
|
});
|
|
24671
24671
|
TabsContent.displayName = Content.displayName;
|
|
24672
|
-
var import_compiler_runtime$
|
|
24672
|
+
var import_compiler_runtime$124 = require_compiler_runtime();
|
|
24673
24673
|
const WithLocale = (e) => {
|
|
24674
|
-
let r = (0, import_compiler_runtime$
|
|
24674
|
+
let r = (0, import_compiler_runtime$124.c)(3), { children: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
|
|
24675
24675
|
return r[0] !== c || r[1] !== d ? (f = c(d), r[0] = c, r[1] = d, r[2] = f) : f = r[2], f;
|
|
24676
24676
|
};
|
|
24677
24677
|
function tzName(e, r, c = "long") {
|
|
@@ -25490,8 +25490,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25490
25490
|
function smartMatchFilter(e, r, c) {
|
|
25491
25491
|
return smartMatch(r, e) ? 1 : c && smartMatch(r, c) ? 0.8 : 0;
|
|
25492
25492
|
}
|
|
25493
|
-
var import_compiler_runtime$
|
|
25494
|
-
let c = (0, import_compiler_runtime$
|
|
25493
|
+
var import_compiler_runtime$123 = require_compiler_runtime(), Command = import_react.forwardRef((e, r) => {
|
|
25494
|
+
let c = (0, import_compiler_runtime$123.c)(9), d, f;
|
|
25495
25495
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25496
25496
|
let h;
|
|
25497
25497
|
c[3] === d ? h = c[4] : (h = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -25505,7 +25505,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25505
25505
|
});
|
|
25506
25506
|
Command.displayName = _e$1.displayName;
|
|
25507
25507
|
var CommandInput = import_react.forwardRef((e, r) => {
|
|
25508
|
-
let c = (0, import_compiler_runtime$
|
|
25508
|
+
let c = (0, import_compiler_runtime$123.c)(19), d, f, h, _;
|
|
25509
25509
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: d, icon: f, rootClassName: _, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
25510
25510
|
let y;
|
|
25511
25511
|
c[5] === _ ? y = c[6] : (y = cn("flex items-center border-b px-3", _), c[5] = _, c[6] = y);
|
|
@@ -25533,7 +25533,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25533
25533
|
});
|
|
25534
25534
|
CommandInput.displayName = _e$1.Input.displayName;
|
|
25535
25535
|
var CommandList = import_react.forwardRef((e, r) => {
|
|
25536
|
-
let c = (0, import_compiler_runtime$
|
|
25536
|
+
let c = (0, import_compiler_runtime$123.c)(9), d, f;
|
|
25537
25537
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25538
25538
|
let h;
|
|
25539
25539
|
c[3] === d ? h = c[4] : (h = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", d), c[3] = d, c[4] = h);
|
|
@@ -25546,7 +25546,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25546
25546
|
});
|
|
25547
25547
|
CommandList.displayName = _e$1.List.displayName;
|
|
25548
25548
|
var CommandEmpty = import_react.forwardRef((e, r) => {
|
|
25549
|
-
let c = (0, import_compiler_runtime$
|
|
25549
|
+
let c = (0, import_compiler_runtime$123.c)(3), d;
|
|
25550
25550
|
return c[0] !== e || c[1] !== r ? (d = (0, import_jsx_runtime.jsx)(_e$1.Empty, {
|
|
25551
25551
|
ref: r,
|
|
25552
25552
|
className: "py-6 text-center text-sm",
|
|
@@ -25555,7 +25555,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25555
25555
|
});
|
|
25556
25556
|
CommandEmpty.displayName = _e$1.Empty.displayName;
|
|
25557
25557
|
var CommandGroup = import_react.forwardRef((e, r) => {
|
|
25558
|
-
let c = (0, import_compiler_runtime$
|
|
25558
|
+
let c = (0, import_compiler_runtime$123.c)(9), d, f;
|
|
25559
25559
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25560
25560
|
let h;
|
|
25561
25561
|
c[3] === d ? h = c[4] : (h = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -25568,7 +25568,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25568
25568
|
});
|
|
25569
25569
|
CommandGroup.displayName = _e$1.Group.displayName;
|
|
25570
25570
|
var CommandSeparator = import_react.forwardRef((e, r) => {
|
|
25571
|
-
let c = (0, import_compiler_runtime$
|
|
25571
|
+
let c = (0, import_compiler_runtime$123.c)(9), d, f;
|
|
25572
25572
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25573
25573
|
let h;
|
|
25574
25574
|
c[3] === d ? h = c[4] : (h = menuSeparatorVariants({
|
|
@@ -25583,7 +25583,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25583
25583
|
});
|
|
25584
25584
|
CommandSeparator.displayName = _e$1.Separator.displayName;
|
|
25585
25585
|
var CommandItem = import_react.forwardRef((e, r) => {
|
|
25586
|
-
let c = (0, import_compiler_runtime$
|
|
25586
|
+
let c = (0, import_compiler_runtime$123.c)(17), d, f, h, _, y;
|
|
25587
25587
|
if (c[0] !== r || c[1] !== e) {
|
|
25588
25588
|
let { className: S2, variant: w, inset: E, ...O } = e;
|
|
25589
25589
|
d = _e$1.Item, f = r, c[7] !== S2 || c[8] !== E || c[9] !== w ? (h = cn(menuItemVariants({
|
|
@@ -25600,9 +25600,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25600
25600
|
}), c[11] = d, c[12] = f, c[13] = h, c[14] = _, c[15] = y, c[16] = S) : S = c[16], S;
|
|
25601
25601
|
});
|
|
25602
25602
|
CommandItem.displayName = _e$1.Item.displayName;
|
|
25603
|
-
var import_compiler_runtime$
|
|
25603
|
+
var import_compiler_runtime$122 = require_compiler_runtime();
|
|
25604
25604
|
const DraggablePopover = (e) => {
|
|
25605
|
-
let r = (0, import_compiler_runtime$
|
|
25605
|
+
let r = (0, import_compiler_runtime$122.c)(25), c, d, f;
|
|
25606
25606
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ children: c, className: d, ...f } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
25607
25607
|
let h;
|
|
25608
25608
|
r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
@@ -25842,6 +25842,98 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25842
25842
|
negate: false
|
|
25843
25843
|
};
|
|
25844
25844
|
}
|
|
25845
|
+
var import_compiler_runtime$121 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
25846
|
+
" ": {
|
|
25847
|
+
marker: "\u2423",
|
|
25848
|
+
name: "space"
|
|
25849
|
+
},
|
|
25850
|
+
" ": {
|
|
25851
|
+
marker: "\\t",
|
|
25852
|
+
name: "tab"
|
|
25853
|
+
},
|
|
25854
|
+
"\n": {
|
|
25855
|
+
marker: "\\n",
|
|
25856
|
+
name: "newline"
|
|
25857
|
+
},
|
|
25858
|
+
"\r": {
|
|
25859
|
+
marker: "\\r",
|
|
25860
|
+
name: "newline"
|
|
25861
|
+
}
|
|
25862
|
+
};
|
|
25863
|
+
function renderWhitespaceMarkers(e) {
|
|
25864
|
+
return [
|
|
25865
|
+
...e
|
|
25866
|
+
].map((e2) => {
|
|
25867
|
+
var _a3;
|
|
25868
|
+
return ((_a3 = WHITESPACE_CHARS[e2]) == null ? void 0 : _a3.marker) ?? e2;
|
|
25869
|
+
}).join("");
|
|
25870
|
+
}
|
|
25871
|
+
function describeWhitespace(e) {
|
|
25872
|
+
var _a3;
|
|
25873
|
+
let r = {};
|
|
25874
|
+
for (let c of e) {
|
|
25875
|
+
let e2 = ((_a3 = WHITESPACE_CHARS[c]) == null ? void 0 : _a3.name) ?? "character";
|
|
25876
|
+
r[e2] = (r[e2] ?? 0) + 1;
|
|
25877
|
+
}
|
|
25878
|
+
return Object.entries(r).map(([e2, r2]) => `${r2} ${e2}${r2 > 1 ? "s" : ""}`).join(", ");
|
|
25879
|
+
}
|
|
25880
|
+
var SENTINEL_CONFIG = {
|
|
25881
|
+
null: {
|
|
25882
|
+
label: () => "None",
|
|
25883
|
+
tooltip: () => "None",
|
|
25884
|
+
ariaLabel: () => "None"
|
|
25885
|
+
},
|
|
25886
|
+
"empty-string": {
|
|
25887
|
+
label: () => "<empty>",
|
|
25888
|
+
tooltip: () => "<empty>",
|
|
25889
|
+
ariaLabel: () => "empty string"
|
|
25890
|
+
},
|
|
25891
|
+
whitespace: {
|
|
25892
|
+
label: (e) => renderWhitespaceMarkers(String(e)),
|
|
25893
|
+
tooltip: (e) => describeWhitespace(String(e)),
|
|
25894
|
+
ariaLabel: (e) => describeWhitespace(String(e))
|
|
25895
|
+
},
|
|
25896
|
+
nan: {
|
|
25897
|
+
label: () => "NaN",
|
|
25898
|
+
tooltip: () => "NaN",
|
|
25899
|
+
ariaLabel: () => "NaN"
|
|
25900
|
+
},
|
|
25901
|
+
"positive-infinity": {
|
|
25902
|
+
label: () => "inf",
|
|
25903
|
+
tooltip: () => "Infinity",
|
|
25904
|
+
ariaLabel: () => "infinity"
|
|
25905
|
+
},
|
|
25906
|
+
"negative-infinity": {
|
|
25907
|
+
label: () => "-inf",
|
|
25908
|
+
tooltip: () => "-Infinity",
|
|
25909
|
+
ariaLabel: () => "negative infinity"
|
|
25910
|
+
},
|
|
25911
|
+
nat: {
|
|
25912
|
+
label: () => "NaT",
|
|
25913
|
+
tooltip: () => "NaT (Not a Time)",
|
|
25914
|
+
ariaLabel: () => "Not a Time"
|
|
25915
|
+
}
|
|
25916
|
+
};
|
|
25917
|
+
function SentinelCell(e) {
|
|
25918
|
+
let r = (0, import_compiler_runtime$121.c)(15), { sentinel: c } = e, d = SENTINEL_CONFIG[c.type], f;
|
|
25919
|
+
r[0] !== d || r[1] !== c.value ? (f = d.label(c.value), r[0] = d, r[1] = c.value, r[2] = f) : f = r[2];
|
|
25920
|
+
let h = f, _;
|
|
25921
|
+
r[3] !== d || r[4] !== c.value ? (_ = d.tooltip(c.value), r[3] = d, r[4] = c.value, r[5] = _) : _ = r[5];
|
|
25922
|
+
let v = _, y;
|
|
25923
|
+
r[6] !== d || r[7] !== c.value ? (y = d.ariaLabel(c.value), r[6] = d, r[7] = c.value, r[8] = y) : y = r[8];
|
|
25924
|
+
let S = y, w;
|
|
25925
|
+
r[9] === h ? w = r[10] : (w = (0, import_jsx_runtime.jsx)("span", {
|
|
25926
|
+
className: "opacity-70",
|
|
25927
|
+
children: h
|
|
25928
|
+
}), r[9] = h, r[10] = w);
|
|
25929
|
+
let E;
|
|
25930
|
+
return r[11] !== S || r[12] !== w || r[13] !== v ? (E = (0, import_jsx_runtime.jsx)("span", {
|
|
25931
|
+
className: "italic text-muted-foreground bg-muted rounded px-1",
|
|
25932
|
+
"aria-label": S,
|
|
25933
|
+
title: v,
|
|
25934
|
+
children: w
|
|
25935
|
+
}), r[11] = S, r[12] = w, r[13] = v, r[14] = E) : E = r[14], E;
|
|
25936
|
+
}
|
|
25845
25937
|
function functionalUpdate(e, r) {
|
|
25846
25938
|
return typeof e == "function" ? e(r) : e;
|
|
25847
25939
|
}
|
|
@@ -28179,10 +28271,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28179
28271
|
return Objects.collect(e, ([e2]) => e2, ([, [e2]]) => e2);
|
|
28180
28272
|
}
|
|
28181
28273
|
const INDEX_COLUMN_NAME = "_marimo_row_id", TOO_MANY_ROWS = "too_many";
|
|
28274
|
+
function isNumericType(e) {
|
|
28275
|
+
return e === "number" || e === "integer";
|
|
28276
|
+
}
|
|
28277
|
+
function isTemporalType(e) {
|
|
28278
|
+
return e === "date" || e === "datetime" || e === "time";
|
|
28279
|
+
}
|
|
28182
28280
|
function extractTimezone(e) {
|
|
28183
28281
|
var _a3, _b3;
|
|
28184
28282
|
if (e) return (_b3 = (_a3 = /^datetime(?:64)?\[[^,]+,([^,]+)]$/.exec(e)) == null ? void 0 : _a3[1]) == null ? void 0 : _b3.trim();
|
|
28185
28283
|
}
|
|
28284
|
+
var WHITESPACE_ONLY_RE = /^[\s]+$/;
|
|
28186
28285
|
async function loadTableData(e) {
|
|
28187
28286
|
return Array.isArray(e) ? e : e.startsWith("{") || e.startsWith("[") ? jsonParseWithSpecialChar(e) : (e = await vegaLoadData(e, {
|
|
28188
28287
|
type: "json"
|
|
@@ -28206,6 +28305,50 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28206
28305
|
let d = r * c, f = d + c - 1;
|
|
28207
28306
|
return e < d || e > f ? Math.floor(e / c) : null;
|
|
28208
28307
|
}
|
|
28308
|
+
var NUMERIC_STRING_SPECIALS = {
|
|
28309
|
+
NaN: "nan",
|
|
28310
|
+
Infinity: "positive-infinity",
|
|
28311
|
+
"-Infinity": "negative-infinity",
|
|
28312
|
+
inf: "positive-infinity",
|
|
28313
|
+
"-inf": "negative-infinity"
|
|
28314
|
+
};
|
|
28315
|
+
function detectSentinel(e, r) {
|
|
28316
|
+
if (e == null) return {
|
|
28317
|
+
type: "null",
|
|
28318
|
+
value: e
|
|
28319
|
+
};
|
|
28320
|
+
if (typeof e == "string") {
|
|
28321
|
+
if (e === "") return {
|
|
28322
|
+
type: "empty-string",
|
|
28323
|
+
value: e
|
|
28324
|
+
};
|
|
28325
|
+
if (WHITESPACE_ONLY_RE.test(e)) return {
|
|
28326
|
+
type: "whitespace",
|
|
28327
|
+
value: e
|
|
28328
|
+
};
|
|
28329
|
+
if (isNumericType(r)) {
|
|
28330
|
+
let r2 = NUMERIC_STRING_SPECIALS[e];
|
|
28331
|
+
if (r2) return {
|
|
28332
|
+
type: r2,
|
|
28333
|
+
value: e
|
|
28334
|
+
};
|
|
28335
|
+
}
|
|
28336
|
+
return isTemporalType(r) && e === "NaT" ? {
|
|
28337
|
+
type: "nat",
|
|
28338
|
+
value: e
|
|
28339
|
+
} : null;
|
|
28340
|
+
}
|
|
28341
|
+
return typeof e == "number" ? Number.isNaN(e) ? {
|
|
28342
|
+
type: "nan",
|
|
28343
|
+
value: e
|
|
28344
|
+
} : e === Infinity ? {
|
|
28345
|
+
type: "positive-infinity",
|
|
28346
|
+
value: e
|
|
28347
|
+
} : e === -Infinity ? {
|
|
28348
|
+
type: "negative-infinity",
|
|
28349
|
+
value: e
|
|
28350
|
+
} : null : null;
|
|
28351
|
+
}
|
|
28209
28352
|
function stringifyUnknownValue(e) {
|
|
28210
28353
|
let { value: r, nullAsEmptyString: c = false } = e;
|
|
28211
28354
|
return typeof r == "object" && r ? JSON.stringify(r) : r === null && c ? "" : String(r);
|
|
@@ -28645,30 +28788,33 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28645
28788
|
})
|
|
28646
28789
|
]
|
|
28647
28790
|
}),
|
|
28648
|
-
E.map(([e3, r2],
|
|
28649
|
-
|
|
28791
|
+
E.map(([e3, r2], f2) => {
|
|
28792
|
+
var _a3;
|
|
28793
|
+
let h = d.has(e3), _2 = stringifyUnknownValue({
|
|
28650
28794
|
value: e3
|
|
28651
|
-
});
|
|
28795
|
+
}), v2 = detectSentinel(e3, (_a3 = c.columnDef.meta) == null ? void 0 : _a3.dataType);
|
|
28652
28796
|
return (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
28653
|
-
value:
|
|
28797
|
+
value: _2,
|
|
28654
28798
|
className: "not-last:border-b rounded-none px-3",
|
|
28655
28799
|
onSelect: () => M(e3),
|
|
28656
28800
|
children: [
|
|
28657
28801
|
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
28658
|
-
checked:
|
|
28802
|
+
checked: h,
|
|
28659
28803
|
"aria-label": "Select row",
|
|
28660
28804
|
className: "mr-3 h-3.5 w-3.5"
|
|
28661
28805
|
}),
|
|
28662
28806
|
(0, import_jsx_runtime.jsx)("span", {
|
|
28663
28807
|
className: "flex-1 overflow-hidden max-h-20 line-clamp-3",
|
|
28664
|
-
children:
|
|
28808
|
+
children: v2 ? (0, import_jsx_runtime.jsx)(SentinelCell, {
|
|
28809
|
+
sentinel: v2
|
|
28810
|
+
}) : _2
|
|
28665
28811
|
}),
|
|
28666
28812
|
(0, import_jsx_runtime.jsx)("span", {
|
|
28667
28813
|
className: "ml-3",
|
|
28668
28814
|
children: r2
|
|
28669
28815
|
})
|
|
28670
28816
|
]
|
|
28671
|
-
},
|
|
28817
|
+
}, f2);
|
|
28672
28818
|
})
|
|
28673
28819
|
]
|
|
28674
28820
|
}),
|
|
@@ -30361,7 +30507,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30361
30507
|
}, I = (e2) => {
|
|
30362
30508
|
if (f == null ? void 0 : f[e2]) return f[e2];
|
|
30363
30509
|
let r2 = M(e2).dataType;
|
|
30364
|
-
if (r2
|
|
30510
|
+
if (isNumericType(r2)) return "right";
|
|
30365
30511
|
}, z = [
|
|
30366
30512
|
...E,
|
|
30367
30513
|
...c.map(([e2]) => e2)
|
|
@@ -30428,7 +30574,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30428
30574
|
wrapped: S2,
|
|
30429
30575
|
canSelectCell: O2,
|
|
30430
30576
|
isSelected: w2,
|
|
30431
|
-
isNumeric: M2
|
|
30577
|
+
isNumeric: isNumericType(M2)
|
|
30432
30578
|
})
|
|
30433
30579
|
});
|
|
30434
30580
|
return E.has(e2) ? (0, import_jsx_runtime.jsx)("b", {
|
|
@@ -30551,7 +30697,14 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30551
30697
|
}
|
|
30552
30698
|
function renderCellValue({ column: e, renderValue: r, getValue: c, selectCell: d, cellStyles: f }) {
|
|
30553
30699
|
var _a3, _b3, _c3, _d3, _e9;
|
|
30554
|
-
let _ = c(), y = (_a3 = e.getColumnFormatting) == null ? void 0 : _a3.call(e), S = (_b3 = e.columnDef.meta) == null ? void 0 : _b3.dataType, w = (_c3 = e.columnDef.meta) == null ? void 0 : _c3.dtype, E = ((_d3 = e.getColumnWrapping) == null ? void 0 : _d3.call(e)) === "wrap";
|
|
30700
|
+
let _ = c(), y = (_a3 = e.getColumnFormatting) == null ? void 0 : _a3.call(e), S = (_b3 = e.columnDef.meta) == null ? void 0 : _b3.dataType, w = (_c3 = e.columnDef.meta) == null ? void 0 : _c3.dtype, E = ((_d3 = e.getColumnWrapping) == null ? void 0 : _d3.call(e)) === "wrap", O = detectSentinel(_, S);
|
|
30701
|
+
if (O && O.type !== "empty-string") return (0, import_jsx_runtime.jsx)("div", {
|
|
30702
|
+
onClick: d,
|
|
30703
|
+
className: f,
|
|
30704
|
+
children: (0, import_jsx_runtime.jsx)(SentinelCell, {
|
|
30705
|
+
sentinel: O
|
|
30706
|
+
})
|
|
30707
|
+
});
|
|
30555
30708
|
if (S === "datetime" && typeof _ == "string") try {
|
|
30556
30709
|
if (!isValid(_)) return (0, import_jsx_runtime.jsx)("div", {
|
|
30557
30710
|
onClick: d,
|
|
@@ -30630,11 +30783,11 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30630
30783
|
children: e2 == null ? "" : String(e2)
|
|
30631
30784
|
});
|
|
30632
30785
|
}
|
|
30633
|
-
let
|
|
30634
|
-
return
|
|
30786
|
+
let M = getMimeValues(_);
|
|
30787
|
+
return M ? (0, import_jsx_runtime.jsx)("div", {
|
|
30635
30788
|
onClick: d,
|
|
30636
30789
|
className: f,
|
|
30637
|
-
children:
|
|
30790
|
+
children: M.map((e2, r2) => (0, import_jsx_runtime.jsx)(MimeCell, {
|
|
30638
30791
|
value: e2
|
|
30639
30792
|
}, r2))
|
|
30640
30793
|
}) : Array.isArray(_) || typeof _ == "object" ? (0, import_jsx_runtime.jsx)(PopoutColumn, {
|
|
@@ -37251,7 +37404,7 @@ ${w}`,
|
|
|
37251
37404
|
};
|
|
37252
37405
|
}
|
|
37253
37406
|
};
|
|
37254
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
37407
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-CqkLwgnX.js").then((e) => ({
|
|
37255
37408
|
default: e.Chatbot
|
|
37256
37409
|
}))), messageSchema = array(object({
|
|
37257
37410
|
id: string(),
|
|
@@ -68865,7 +69018,7 @@ ${c}
|
|
|
68865
69018
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
68866
69019
|
}
|
|
68867
69020
|
}
|
|
68868
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.2-
|
|
69021
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.2-dev37"), showCodeInRunModeAtom = atom(true);
|
|
68869
69022
|
atom(null);
|
|
68870
69023
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
68871
69024
|
constructor() {
|