@marimo-team/islands 0.23.14-dev17 → 0.23.14-dev19
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-C6y6xLcn.js → chat-ui-9wA4feLE.js} +3034 -3034
- package/dist/{code-visibility-Cb6UrZYv.js → code-visibility-CxDvzm2S.js} +90 -90
- package/dist/{html-to-image-DcTkcjmm.js → html-to-image-DBHfshED.js} +63 -62
- package/dist/main.js +1111 -1090
- package/dist/{process-output-2FbS8KgW.js → process-output-Dw6We6B6.js} +1 -1
- package/dist/{reveal-component-BFhE2zHY.js → reveal-component-tJhA77Am.js} +2 -2
- package/package.json +1 -1
- package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -3
- package/src/components/editor/code/readonly-python-code.tsx +16 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -27
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -19
- package/src/components/slides/slide-cell-view.tsx +7 -6
- package/src/core/cells/__tests__/readonly-code-display.test.ts +46 -0
- package/src/core/cells/readonly-code-display.ts +35 -0
- package/src/components/editor/chrome/panels/__tests__/snippet-display.test.ts +0 -22
- package/src/components/editor/chrome/panels/snippet-display.ts +0 -27
|
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
9
|
-
import { A as ChevronRightIcon, At as goToCellLine,
|
|
9
|
+
import { A as ChevronRightIcon, At as goToCellLine, C as AccordionContent, Cn as Close$1, Ct as Checkbox, Gn as esm_default, Hn as CircleX, I as base64ToUint8Array, In as Info, It as adaptForLocalStorage, Kn as import_lib, Ln as FileText, Lt as jotaiJsonStorage, M as PinLeftIcon, Mn as NotebookPen, N as PinRightIcon, Nn as Minus, Nt as useChromeActions, O as CheckIcon, On as Wrench, Pn as LoaderCircle, Pt as getFeatureFlag, Qt as useRequestClient, R as extractBase64FromDataURL, Rn as Eye, S as Accordion, T as AccordionTrigger, Ut as DATA_TYPE_ICON, V as renderHTML, Vt as PluralWord, Wn as Braces, Wt as getDataTypeColor, X as notebookAtom, Xt as getRequestClient, _n as jsonParseWithSpecialChar, _t as DATA_CELL_ID, bn as atomWithStorage, c as Popover, d as PopoverTrigger, dn as HTMLCellId, dt as viewStateAtom, et as useCellActions, fn as SCRATCH_CELL_ID, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, j as DotFilledIcon, kn as Trash2, l as PopoverClose, lt as kioskModeAtom, m as useExpandedOutput, n as Spinner, nn as extractAllTracebackInfo, nt as useCellNames, on as filenameAtom, ot as AnsiUp, q as getCellEditorView, r as MarkdownRenderer, rn as getTracebackInfo, t as toPng, tn as elementContainsMarimoCellFile, tt as useCellIds, u as PopoverContent, un as CellOutputId, ut as useInstallAllowed, vn as jsonToMarkdown, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as ExternalLink, __tla as __tla_0 } from "./html-to-image-DBHfshED.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CxffarYV.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-CMnRuVmN.js";
|
|
@@ -20121,11 +20121,11 @@ Database schema: ${e2}`);
|
|
|
20121
20121
|
}
|
|
20122
20122
|
let y, S, w, E, O, A;
|
|
20123
20123
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
20124
|
-
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10),
|
|
20125
|
-
t[17] === s ?
|
|
20124
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), Q = n.filter(_temp13), $ = n.filter(_temp14), Qq = n.filter(_temp15), $q = n.filter(_temp16), eJ = n.filter(_temp17), nJ = n.filter(_temp18), rJ;
|
|
20125
|
+
t[17] === s ? rJ = t[18] : (rJ = () => {
|
|
20126
20126
|
s.openApplication("scratchpad");
|
|
20127
|
-
}, t[17] = s, t[18] =
|
|
20128
|
-
let
|
|
20127
|
+
}, t[17] = s, t[18] = rJ);
|
|
20128
|
+
let iJ = rJ, aJ = () => {
|
|
20129
20129
|
let t2 = [];
|
|
20130
20130
|
if ($q.length > 0 || eJ.length > 0) {
|
|
20131
20131
|
let e3 = $q.some(_temp19), n2 = !e3 && $q.some(_temp20);
|
|
@@ -20325,7 +20325,7 @@ Database schema: ${e2}`);
|
|
|
20325
20325
|
size: "xs",
|
|
20326
20326
|
variant: "link",
|
|
20327
20327
|
className: "my-2 font-normal mx-0 px-0",
|
|
20328
|
-
onClick:
|
|
20328
|
+
onClick: iJ,
|
|
20329
20329
|
children: [
|
|
20330
20330
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20331
20331
|
className: "h-3"
|
|
@@ -20394,9 +20394,9 @@ Database schema: ${e2}`);
|
|
|
20394
20394
|
cellId: i
|
|
20395
20395
|
})
|
|
20396
20396
|
]
|
|
20397
|
-
}, "interruption")),
|
|
20397
|
+
}, "interruption")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20398
20398
|
children: [
|
|
20399
|
-
|
|
20399
|
+
K.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20400
20400
|
className: "my-2",
|
|
20401
20401
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20402
20402
|
children: [
|
|
@@ -20481,23 +20481,23 @@ Database schema: ${e2}`);
|
|
|
20481
20481
|
]
|
|
20482
20482
|
})
|
|
20483
20483
|
}, `exception-${t3}`)),
|
|
20484
|
-
|
|
20484
|
+
K.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
|
|
20485
20485
|
children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
|
|
20486
20486
|
}),
|
|
20487
20487
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20488
|
-
errors:
|
|
20488
|
+
errors: K,
|
|
20489
20489
|
cellId: i
|
|
20490
20490
|
})
|
|
20491
20491
|
]
|
|
20492
|
-
}, "exception")),
|
|
20492
|
+
}, "exception")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20493
20493
|
children: [
|
|
20494
|
-
|
|
20494
|
+
q.map(_temp30),
|
|
20495
20495
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20496
|
-
errors:
|
|
20496
|
+
errors: q,
|
|
20497
20497
|
cellId: i
|
|
20498
20498
|
}),
|
|
20499
20499
|
(0, import_jsx_runtime.jsx)(Tip, {
|
|
20500
|
-
children:
|
|
20500
|
+
children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
|
|
20501
20501
|
})
|
|
20502
20502
|
]
|
|
20503
20503
|
}, "strict-exception")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -20524,18 +20524,18 @@ Database schema: ${e2}`);
|
|
|
20524
20524
|
cellId: i
|
|
20525
20525
|
})
|
|
20526
20526
|
]
|
|
20527
|
-
}, "ancestor-stopped")),
|
|
20527
|
+
}, "ancestor-stopped")), nJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20528
20528
|
children: [
|
|
20529
|
-
|
|
20529
|
+
nJ.map(_temp35),
|
|
20530
20530
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20531
|
-
errors:
|
|
20531
|
+
errors: nJ,
|
|
20532
20532
|
cellId: i,
|
|
20533
20533
|
className: "mt-2.5"
|
|
20534
20534
|
})
|
|
20535
20535
|
]
|
|
20536
20536
|
}, "sql-errors")), t2;
|
|
20537
|
-
},
|
|
20538
|
-
t[19] === v ?
|
|
20537
|
+
}, oJ;
|
|
20538
|
+
t[19] === v ? oJ = t[20] : (oJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20539
20539
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20540
20540
|
children: [
|
|
20541
20541
|
v,
|
|
@@ -20547,22 +20547,22 @@ Database schema: ${e2}`);
|
|
|
20547
20547
|
})
|
|
20548
20548
|
})
|
|
20549
20549
|
]
|
|
20550
|
-
}), t[19] = v, t[20] =
|
|
20551
|
-
let
|
|
20552
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20550
|
+
}), t[19] = v, t[20] = oJ);
|
|
20551
|
+
let sJ;
|
|
20552
|
+
t[21] !== _ || t[22] !== d ? (sJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20553
20553
|
className: `font-code font-medium ${_}`,
|
|
20554
20554
|
children: d
|
|
20555
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20556
|
-
let
|
|
20557
|
-
t[24] !==
|
|
20555
|
+
}), t[21] = _, t[22] = d, t[23] = sJ) : sJ = t[23];
|
|
20556
|
+
let cJ;
|
|
20557
|
+
t[24] !== oJ || t[25] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20558
20558
|
className: "space-y-0.5",
|
|
20559
20559
|
children: [
|
|
20560
|
-
|
|
20561
|
-
|
|
20560
|
+
oJ,
|
|
20561
|
+
sJ
|
|
20562
20562
|
]
|
|
20563
|
-
}), t[24] =
|
|
20564
|
-
let
|
|
20565
|
-
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A =
|
|
20563
|
+
}), t[24] = oJ, t[25] = sJ, t[26] = cJ) : cJ = t[26];
|
|
20564
|
+
let lJ = cJ;
|
|
20565
|
+
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = lJ, S = "flex flex-col gap-4", w = aJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
|
|
20566
20566
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20567
20567
|
let M;
|
|
20568
20568
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -28679,59 +28679,59 @@ Database schema: ${e2}`);
|
|
|
28679
28679
|
onSelect: Functions.NOOP
|
|
28680
28680
|
});
|
|
28681
28681
|
Combobox = (e) => {
|
|
28682
|
-
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U,
|
|
28683
|
-
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20],
|
|
28684
|
-
let
|
|
28685
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28682
|
+
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, q, J, Q, $;
|
|
28683
|
+
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], q = t[21], J = t[22], Q = t[23], $ = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: $, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: q, chips: J, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: Q, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = q, t[22] = J, t[23] = Q, t[24] = $);
|
|
28684
|
+
let Qq = I === void 0 ? false : I, $q = z === void 0 ? true : z, eJ = U === void 0 ? "Search..." : U, tJ = q === void 0 ? "Nothing found." : q, nJ = J === void 0 ? false : J, rJ = Q === void 0 ? false : Q, iJ = s ?? false, aJ;
|
|
28685
|
+
t[25] !== v || t[26] !== w || t[27] !== iJ ? (aJ = {
|
|
28686
28686
|
prop: w,
|
|
28687
|
-
defaultProp:
|
|
28687
|
+
defaultProp: iJ,
|
|
28688
28688
|
onChange: v
|
|
28689
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28690
|
-
let [
|
|
28691
|
-
t[29] === S ?
|
|
28689
|
+
}, t[25] = v, t[26] = w, t[27] = iJ, t[28] = aJ) : aJ = t[28];
|
|
28690
|
+
let [oJ, sJ] = useControllableState(aJ), cJ = oJ === void 0 ? false : oJ, lJ;
|
|
28691
|
+
t[29] === S ? lJ = t[30] : (lJ = (e2) => {
|
|
28692
28692
|
S == null ? void 0 : S(e2);
|
|
28693
|
-
}, t[29] = S, t[30] =
|
|
28694
|
-
let
|
|
28695
|
-
t[31] !== c || t[32] !==
|
|
28696
|
-
prop:
|
|
28693
|
+
}, t[29] = S, t[30] = lJ);
|
|
28694
|
+
let uJ;
|
|
28695
|
+
t[31] !== c || t[32] !== lJ || t[33] !== $ ? (uJ = {
|
|
28696
|
+
prop: $,
|
|
28697
28697
|
defaultProp: c,
|
|
28698
|
-
onChange:
|
|
28699
|
-
}, t[31] = c, t[32] =
|
|
28700
|
-
let [
|
|
28701
|
-
t[35] ===
|
|
28702
|
-
let
|
|
28703
|
-
t[37] !== _ || t[38] !==
|
|
28698
|
+
onChange: lJ
|
|
28699
|
+
}, t[31] = c, t[32] = lJ, t[33] = $, t[34] = uJ) : uJ = t[34];
|
|
28700
|
+
let [dJ, fJ] = useControllableState(uJ), pJ;
|
|
28701
|
+
t[35] === dJ ? pJ = t[36] : (pJ = (e2) => Array.isArray(dJ) ? dJ.includes(e2) : dJ === e2, t[35] = dJ, t[36] = pJ);
|
|
28702
|
+
let mJ = pJ, hJ;
|
|
28703
|
+
t[37] !== _ || t[38] !== Qq || t[39] !== sJ || t[40] !== fJ || t[41] !== dJ ? (hJ = (e2) => {
|
|
28704
28704
|
let t2 = e2;
|
|
28705
|
-
if (
|
|
28706
|
-
let n2 =
|
|
28705
|
+
if (Qq) if (Array.isArray(dJ)) if (dJ.includes(t2)) {
|
|
28706
|
+
let n2 = dJ.filter((t3) => t3 !== e2);
|
|
28707
28707
|
t2 = n2.length > 0 ? n2 : [];
|
|
28708
28708
|
} else t2 = [
|
|
28709
|
-
...
|
|
28709
|
+
...dJ,
|
|
28710
28710
|
t2
|
|
28711
28711
|
];
|
|
28712
28712
|
else t2 = [
|
|
28713
28713
|
t2
|
|
28714
28714
|
];
|
|
28715
|
-
else
|
|
28716
|
-
|
|
28717
|
-
}, t[37] = _, t[38] =
|
|
28718
|
-
let
|
|
28719
|
-
t[43] !==
|
|
28720
|
-
let vJ =
|
|
28721
|
-
t[49] !==
|
|
28722
|
-
isSelected:
|
|
28723
|
-
onSelect:
|
|
28724
|
-
}, t[49] =
|
|
28715
|
+
else dJ === e2 && (t2 = null);
|
|
28716
|
+
fJ(t2), (_ ?? Qq) || sJ(false);
|
|
28717
|
+
}, t[37] = _, t[38] = Qq, t[39] = sJ, t[40] = fJ, t[41] = dJ, t[42] = hJ) : hJ = t[42];
|
|
28718
|
+
let gJ = hJ, _J;
|
|
28719
|
+
t[43] !== nJ || t[44] !== d || t[45] !== Qq || t[46] !== E || t[47] !== dJ ? (_J = () => Qq && nJ && E ? E : dJ == null ? E ?? "--" : Array.isArray(dJ) ? dJ.length === 0 ? E ?? "--" : dJ.length === 1 && d !== void 0 ? d(dJ[0]) : `${dJ.length} selected` : d === void 0 ? E ?? "--" : d(dJ), t[43] = nJ, t[44] = d, t[45] = Qq, t[46] = E, t[47] = dJ, t[48] = _J) : _J = t[48];
|
|
28720
|
+
let vJ = _J, yJ;
|
|
28721
|
+
t[49] !== gJ || t[50] !== mJ ? (yJ = {
|
|
28722
|
+
isSelected: mJ,
|
|
28723
|
+
onSelect: gJ
|
|
28724
|
+
}, t[49] = gJ, t[50] = mJ, t[51] = yJ) : yJ = t[51];
|
|
28725
28725
|
let bJ = yJ, xJ;
|
|
28726
28726
|
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xJ = cn("relative"), t[52] = xJ) : xJ = t[52];
|
|
28727
28727
|
let SJ;
|
|
28728
|
-
t[53] !==
|
|
28729
|
-
|
|
28730
|
-
}, t[53] =
|
|
28731
|
-
let CJ =
|
|
28732
|
-
t[56] !== o || t[57] !== CJ ? (
|
|
28728
|
+
t[53] !== rJ || t[54] !== sJ ? (SJ = (e2) => {
|
|
28729
|
+
rJ && e2 || sJ(e2);
|
|
28730
|
+
}, t[53] = rJ, t[54] = sJ, t[55] = SJ) : SJ = t[55];
|
|
28731
|
+
let CJ = rJ && "cursor-not-allowed opacity-50", EJ;
|
|
28732
|
+
t[56] !== o || t[57] !== CJ ? (EJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", CJ, o), t[56] = o, t[57] = CJ, t[58] = EJ) : EJ = t[58];
|
|
28733
28733
|
let DJ;
|
|
28734
|
-
t[59] !== O || t[60] !== vJ || t[61] !==
|
|
28734
|
+
t[59] !== O || t[60] !== vJ || t[61] !== dJ ? (DJ = O ? O(dJ ?? null) : vJ(), t[59] = O, t[60] = vJ, t[61] = dJ, t[62] = DJ) : DJ = t[62];
|
|
28735
28735
|
let OJ;
|
|
28736
28736
|
t[63] === DJ ? OJ = t[64] : (OJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28737
28737
|
className: "truncate flex-1 min-w-0",
|
|
@@ -28742,32 +28742,32 @@ Database schema: ${e2}`);
|
|
|
28742
28742
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28743
28743
|
}), t[65] = kJ) : kJ = t[65];
|
|
28744
28744
|
let AJ;
|
|
28745
|
-
t[66] !==
|
|
28745
|
+
t[66] !== rJ || t[67] !== h || t[68] !== cJ || t[69] !== EJ || t[70] !== OJ ? (AJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28746
28746
|
asChild: true,
|
|
28747
28747
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28748
28748
|
id: h,
|
|
28749
28749
|
type: "button",
|
|
28750
|
-
className:
|
|
28751
|
-
"aria-expanded":
|
|
28752
|
-
"aria-disabled":
|
|
28750
|
+
className: EJ,
|
|
28751
|
+
"aria-expanded": cJ,
|
|
28752
|
+
"aria-disabled": rJ,
|
|
28753
28753
|
children: [
|
|
28754
28754
|
OJ,
|
|
28755
28755
|
kJ
|
|
28756
28756
|
]
|
|
28757
28757
|
})
|
|
28758
|
-
}), t[66] =
|
|
28758
|
+
}), t[66] = rJ, t[67] = h, t[68] = cJ, t[69] = EJ, t[70] = OJ, t[71] = AJ) : AJ = t[71];
|
|
28759
28759
|
let jJ;
|
|
28760
|
-
t[72] !==
|
|
28761
|
-
placeholder:
|
|
28760
|
+
t[72] !== eJ || t[73] !== y || t[74] !== M ? (jJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28761
|
+
placeholder: eJ,
|
|
28762
28762
|
rootClassName: "px-1 h-8",
|
|
28763
28763
|
autoFocus: true,
|
|
28764
28764
|
value: M,
|
|
28765
28765
|
onValueChange: y
|
|
28766
|
-
}), t[72] =
|
|
28766
|
+
}), t[72] = eJ, t[73] = y, t[74] = M, t[75] = jJ) : jJ = t[75];
|
|
28767
28767
|
let MJ;
|
|
28768
|
-
t[76] ===
|
|
28769
|
-
children:
|
|
28770
|
-
}), t[76] =
|
|
28768
|
+
t[76] === tJ ? MJ = t[77] : (MJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28769
|
+
children: tJ
|
|
28770
|
+
}), t[76] = tJ, t[77] = MJ);
|
|
28771
28771
|
let NJ;
|
|
28772
28772
|
t[78] !== n || t[79] !== bJ ? (NJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28773
28773
|
value: bJ,
|
|
@@ -28782,43 +28782,43 @@ Database schema: ${e2}`);
|
|
|
28782
28782
|
]
|
|
28783
28783
|
}), t[81] = MJ, t[82] = NJ, t[83] = PJ) : PJ = t[83];
|
|
28784
28784
|
let FJ;
|
|
28785
|
-
t[84] !== f || t[85] !==
|
|
28785
|
+
t[84] !== f || t[85] !== $q || t[86] !== jJ || t[87] !== PJ ? (FJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28786
28786
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28787
28787
|
align: "start",
|
|
28788
28788
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28789
28789
|
filter: f,
|
|
28790
|
-
shouldFilter:
|
|
28790
|
+
shouldFilter: $q,
|
|
28791
28791
|
children: [
|
|
28792
28792
|
jJ,
|
|
28793
28793
|
PJ
|
|
28794
28794
|
]
|
|
28795
28795
|
})
|
|
28796
|
-
}), t[84] = f, t[85] =
|
|
28796
|
+
}), t[84] = f, t[85] = $q, t[86] = jJ, t[87] = PJ, t[88] = FJ) : FJ = t[88];
|
|
28797
28797
|
let IJ;
|
|
28798
|
-
t[89] !==
|
|
28799
|
-
open:
|
|
28798
|
+
t[89] !== cJ || t[90] !== SJ || t[91] !== AJ || t[92] !== FJ ? (IJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28799
|
+
open: cJ,
|
|
28800
28800
|
onOpenChange: SJ,
|
|
28801
28801
|
children: [
|
|
28802
28802
|
AJ,
|
|
28803
28803
|
FJ
|
|
28804
28804
|
]
|
|
28805
|
-
}), t[89] =
|
|
28805
|
+
}), t[89] = cJ, t[90] = SJ, t[91] = AJ, t[92] = FJ, t[93] = IJ) : IJ = t[93];
|
|
28806
28806
|
let LJ;
|
|
28807
|
-
t[94] !==
|
|
28807
|
+
t[94] !== nJ || t[95] !== i || t[96] !== rJ || t[97] !== d || t[98] !== gJ || t[99] !== Qq || t[100] !== dJ ? (LJ = Qq && nJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28808
28808
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28809
|
-
children: Array.isArray(
|
|
28809
|
+
children: Array.isArray(dJ) && dJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28810
28810
|
variant: "secondary",
|
|
28811
28811
|
children: [
|
|
28812
28812
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28813
28813
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28814
28814
|
onClick: () => {
|
|
28815
|
-
|
|
28815
|
+
rJ || gJ(e2);
|
|
28816
28816
|
},
|
|
28817
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28817
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", rJ && "pointer-events-none")
|
|
28818
28818
|
})
|
|
28819
28819
|
]
|
|
28820
28820
|
}, String(e2)))
|
|
28821
|
-
}), t[94] =
|
|
28821
|
+
}), t[94] = nJ, t[95] = i, t[96] = rJ, t[97] = d, t[98] = gJ, t[99] = Qq, t[100] = dJ, t[101] = LJ) : LJ = t[101];
|
|
28822
28822
|
let RJ;
|
|
28823
28823
|
return t[102] !== A || t[103] !== IJ || t[104] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28824
28824
|
className: xJ,
|
|
@@ -36206,7 +36206,7 @@ ${d}`,
|
|
|
36206
36206
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36207
36207
|
}
|
|
36208
36208
|
}
|
|
36209
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-
|
|
36209
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev19");
|
|
36210
36210
|
showCodeInRunModeAtom = atom(true);
|
|
36211
36211
|
atom(null);
|
|
36212
36212
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -33,7 +33,7 @@ import { a as parser, i as pythonLanguage, n as localCompletionSource, r as pyth
|
|
|
33
33
|
import { n as stexMath } from "./stex-BIsgBmK4.js";
|
|
34
34
|
import { t as purify } from "./purify.es-H92eMd9-.js";
|
|
35
35
|
import { t as useAsyncData } from "./useAsyncData-BMc8itk2.js";
|
|
36
|
-
let reducer$1,
|
|
36
|
+
let reducer$1, isUninstantiated, ChevronRightIcon, Table2, goToCellLine, safeExtractSetUIElementMessageBuffers, Database, MarkdownParser, AccordionContent, Close$1, Checkbox, ChatBubbleIcon, Trigger2, PathBuilder, BorderAllIcon, Root2$2, createVariableInfoElement, base64ToDataView, Layers, repl, cellErrorsAtom, esm_default, require_client, getMarimoExportContext, CircleX, PluralWords, base64ToUint8Array, Info, adaptForLocalStorage, getCellNames, getTableType, createActions$1, import_lib$1, allTablesAtom, dataViewToBase64, FileText, jotaiJsonStorage, PinLeftIcon, NotebookPen, generateUUID, PinRightIcon, Minus, useChromeActions, CheckIcon, Wrench, Paths, base64ToDataURL, LoaderCircle, getFeatureFlag, numColumnsAtom, useRequestClient, extractBase64FromDataURL, Eye, variablesAtom, Accordion, Anchor2, normalizeName, AccordionTrigger, Item, MarkdownLanguageAdapter, hasTrustedExportContext, CircleAlert, DATA_TYPE_ICON, renderHTML, Columns2, PluralWord, hasRunAnyCellAtom, Braces, getDataTypeColor, notebookAtom, getRequestClient, hasOnlyOneCellAtom, convertStatsName, notebookOutline, requestClientAtom, Boosts, jsonParseWithSpecialChar, DATA_CELL_ID, useCellFocusActions, ZodLocalStorage, parseHtmlContent, AIContextProvider, atomWithStorage, getValidName, Popover, parseDataset, initialModeAtom, PopoverTrigger, HTMLCellId, viewStateAtom, singleFacet, useCellActions, isOutputEmpty, SCRATCH_CELL_ID, outputIsLoading, getDatasourceContext, RANDOM_ID_ATTR, sanitizeHtml, DatasourceContextProvider, OBJECT_ID_ATTR, headingToIdentifier, LazyAnyLanguageCodeMirror, NotebookScopedLocalStorage, ansiToPlainText, DotFilledIcon, PaintRoller, DeferredRequestRegistry, ChevronDownIcon, Trash2, moveToEndOfEditor, PopoverClose, parseInitialValue, kioskModeAtom, useExpandedOutput, findCellId, isErrorMime, Spinner, extractAllTracebackInfo, useCellNames, useLastFocusedCellId, filenameAtom, AnsiUp, useExpandedConsoleOutput, UIElementId, outputIsStale, getCellEditorView, dataSourceConnectionsAtom, MarkdownRenderer, getTracebackInfo, createCell, maybeAddAltairImport, parseAttrValue, getInitialAppMode, toPng$1, elementContainsMarimoCellFile, useCellIds, PopoverContent, CellOutputId, useInstallAllowed, Sections, jsonToMarkdown, getCellDomProps, AccordionItem, Content2$1, customPythonLanguageSupport, AIContextRegistry, selectAtom, isInternalCellName, contextToXml, atomWithReducer, displayCellName, isDataURLString, ExternalLink, SQLParser;
|
|
37
37
|
let __tla = Promise.all([
|
|
38
38
|
(() => {
|
|
39
39
|
try {
|
|
@@ -19042,7 +19042,7 @@ ${e}
|
|
|
19042
19042
|
function escapeRegex(e) {
|
|
19043
19043
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
19044
19044
|
}
|
|
19045
|
-
let
|
|
19045
|
+
let PythonParser, DEFAULT_ENGINE;
|
|
19046
19046
|
MarkdownParser = class {
|
|
19047
19047
|
constructor() {
|
|
19048
19048
|
__publicField(this, "type", "markdown");
|
|
@@ -28856,157 +28856,158 @@ ${t}
|
|
|
28856
28856
|
});
|
|
28857
28857
|
export {
|
|
28858
28858
|
reducer$1 as $,
|
|
28859
|
-
|
|
28859
|
+
isUninstantiated as $t,
|
|
28860
28860
|
ChevronRightIcon as A,
|
|
28861
|
-
|
|
28861
|
+
Table2 as An,
|
|
28862
28862
|
goToCellLine as At,
|
|
28863
28863
|
safeExtractSetUIElementMessageBuffers as B,
|
|
28864
|
-
|
|
28865
|
-
|
|
28864
|
+
Database as Bn,
|
|
28865
|
+
MarkdownParser as Bt,
|
|
28866
28866
|
AccordionContent as C,
|
|
28867
|
-
|
|
28867
|
+
Close$1 as Cn,
|
|
28868
28868
|
Checkbox as Ct,
|
|
28869
28869
|
ChatBubbleIcon as D,
|
|
28870
|
-
|
|
28870
|
+
Trigger2 as Dn,
|
|
28871
28871
|
PathBuilder as Dt,
|
|
28872
28872
|
BorderAllIcon as E,
|
|
28873
|
-
|
|
28873
|
+
Root2$2 as En,
|
|
28874
28874
|
createVariableInfoElement as Et,
|
|
28875
28875
|
base64ToDataView as F,
|
|
28876
|
-
|
|
28876
|
+
Layers as Fn,
|
|
28877
28877
|
repl as Ft,
|
|
28878
28878
|
cellErrorsAtom as G,
|
|
28879
|
-
|
|
28880
|
-
|
|
28879
|
+
esm_default as Gn,
|
|
28880
|
+
require_client as Gt,
|
|
28881
28881
|
getMarimoExportContext as H,
|
|
28882
|
-
|
|
28883
|
-
|
|
28882
|
+
CircleX as Hn,
|
|
28883
|
+
PluralWords as Ht,
|
|
28884
28884
|
base64ToUint8Array as I,
|
|
28885
|
-
|
|
28885
|
+
Info as In,
|
|
28886
28886
|
adaptForLocalStorage as It,
|
|
28887
28887
|
getCellNames as J,
|
|
28888
|
-
|
|
28888
|
+
getTableType as Jt,
|
|
28889
28889
|
createActions$1 as K,
|
|
28890
|
-
|
|
28890
|
+
import_lib$1 as Kn,
|
|
28891
|
+
allTablesAtom as Kt,
|
|
28891
28892
|
dataViewToBase64 as L,
|
|
28892
|
-
|
|
28893
|
+
FileText as Ln,
|
|
28893
28894
|
jotaiJsonStorage as Lt,
|
|
28894
28895
|
PinLeftIcon as M,
|
|
28895
|
-
|
|
28896
|
+
NotebookPen as Mn,
|
|
28896
28897
|
generateUUID as Mt,
|
|
28897
28898
|
PinRightIcon as N,
|
|
28898
|
-
|
|
28899
|
+
Minus as Nn,
|
|
28899
28900
|
useChromeActions as Nt,
|
|
28900
28901
|
CheckIcon as O,
|
|
28901
|
-
|
|
28902
|
+
Wrench as On,
|
|
28902
28903
|
Paths as Ot,
|
|
28903
28904
|
base64ToDataURL as P,
|
|
28904
|
-
|
|
28905
|
+
LoaderCircle as Pn,
|
|
28905
28906
|
getFeatureFlag as Pt,
|
|
28906
28907
|
numColumnsAtom as Q,
|
|
28907
|
-
|
|
28908
|
+
useRequestClient as Qt,
|
|
28908
28909
|
extractBase64FromDataURL as R,
|
|
28909
|
-
|
|
28910
|
+
Eye as Rn,
|
|
28910
28911
|
variablesAtom as Rt,
|
|
28911
28912
|
Accordion as S,
|
|
28912
|
-
|
|
28913
|
+
Anchor2 as Sn,
|
|
28913
28914
|
normalizeName as St,
|
|
28914
28915
|
AccordionTrigger as T,
|
|
28915
|
-
|
|
28916
|
+
Item as Tn,
|
|
28916
28917
|
MarkdownLanguageAdapter as Tt,
|
|
28917
28918
|
hasTrustedExportContext as U,
|
|
28918
|
-
|
|
28919
|
-
|
|
28919
|
+
CircleAlert as Un,
|
|
28920
|
+
DATA_TYPE_ICON as Ut,
|
|
28920
28921
|
renderHTML as V,
|
|
28921
|
-
|
|
28922
|
-
|
|
28922
|
+
Columns2 as Vn,
|
|
28923
|
+
PluralWord as Vt,
|
|
28923
28924
|
hasRunAnyCellAtom as W,
|
|
28924
|
-
|
|
28925
|
-
|
|
28925
|
+
Braces as Wn,
|
|
28926
|
+
getDataTypeColor as Wt,
|
|
28926
28927
|
notebookAtom as X,
|
|
28927
|
-
|
|
28928
|
+
getRequestClient as Xt,
|
|
28928
28929
|
hasOnlyOneCellAtom as Y,
|
|
28929
|
-
|
|
28930
|
+
convertStatsName as Yt,
|
|
28930
28931
|
notebookOutline as Z,
|
|
28931
|
-
|
|
28932
|
+
requestClientAtom as Zt,
|
|
28932
28933
|
Boosts as _,
|
|
28933
28934
|
__tla,
|
|
28934
|
-
|
|
28935
|
+
jsonParseWithSpecialChar as _n,
|
|
28935
28936
|
DATA_CELL_ID as _t,
|
|
28936
28937
|
useCellFocusActions as a,
|
|
28937
|
-
|
|
28938
|
+
ZodLocalStorage as an,
|
|
28938
28939
|
parseHtmlContent as at,
|
|
28939
28940
|
AIContextProvider as b,
|
|
28940
|
-
|
|
28941
|
+
atomWithStorage as bn,
|
|
28941
28942
|
getValidName as bt,
|
|
28942
28943
|
Popover as c,
|
|
28943
|
-
|
|
28944
|
+
parseDataset as cn,
|
|
28944
28945
|
initialModeAtom as ct,
|
|
28945
28946
|
PopoverTrigger as d,
|
|
28946
|
-
|
|
28947
|
+
HTMLCellId as dn,
|
|
28947
28948
|
viewStateAtom as dt,
|
|
28948
|
-
|
|
28949
|
+
singleFacet as en,
|
|
28949
28950
|
useCellActions as et,
|
|
28950
28951
|
isOutputEmpty as f,
|
|
28951
|
-
|
|
28952
|
+
SCRATCH_CELL_ID as fn,
|
|
28952
28953
|
outputIsLoading as ft,
|
|
28953
28954
|
getDatasourceContext as g,
|
|
28954
|
-
|
|
28955
|
+
RANDOM_ID_ATTR as gn,
|
|
28955
28956
|
sanitizeHtml as gt,
|
|
28956
28957
|
DatasourceContextProvider as h,
|
|
28957
|
-
|
|
28958
|
+
OBJECT_ID_ATTR as hn,
|
|
28958
28959
|
headingToIdentifier as ht,
|
|
28959
28960
|
LazyAnyLanguageCodeMirror as i,
|
|
28960
|
-
|
|
28961
|
+
NotebookScopedLocalStorage as in,
|
|
28961
28962
|
ansiToPlainText as it,
|
|
28962
28963
|
DotFilledIcon as j,
|
|
28963
|
-
|
|
28964
|
+
PaintRoller as jn,
|
|
28964
28965
|
DeferredRequestRegistry as jt,
|
|
28965
28966
|
ChevronDownIcon as k,
|
|
28966
|
-
|
|
28967
|
+
Trash2 as kn,
|
|
28967
28968
|
moveToEndOfEditor as kt,
|
|
28968
28969
|
PopoverClose as l,
|
|
28969
|
-
|
|
28970
|
+
parseInitialValue as ln,
|
|
28970
28971
|
kioskModeAtom as lt,
|
|
28971
28972
|
useExpandedOutput as m,
|
|
28972
|
-
|
|
28973
|
+
findCellId as mn,
|
|
28973
28974
|
isErrorMime as mt,
|
|
28974
28975
|
Spinner as n,
|
|
28975
|
-
|
|
28976
|
+
extractAllTracebackInfo as nn,
|
|
28976
28977
|
useCellNames as nt,
|
|
28977
28978
|
useLastFocusedCellId as o,
|
|
28978
|
-
|
|
28979
|
+
filenameAtom as on,
|
|
28979
28980
|
AnsiUp as ot,
|
|
28980
28981
|
useExpandedConsoleOutput as p,
|
|
28981
|
-
|
|
28982
|
+
UIElementId as pn,
|
|
28982
28983
|
outputIsStale as pt,
|
|
28983
28984
|
getCellEditorView as q,
|
|
28984
|
-
|
|
28985
|
+
dataSourceConnectionsAtom as qt,
|
|
28985
28986
|
MarkdownRenderer as r,
|
|
28986
|
-
|
|
28987
|
+
getTracebackInfo as rn,
|
|
28987
28988
|
createCell as rt,
|
|
28988
28989
|
maybeAddAltairImport as s,
|
|
28989
|
-
|
|
28990
|
+
parseAttrValue as sn,
|
|
28990
28991
|
getInitialAppMode as st,
|
|
28991
28992
|
toPng$1 as t,
|
|
28992
|
-
|
|
28993
|
+
elementContainsMarimoCellFile as tn,
|
|
28993
28994
|
useCellIds as tt,
|
|
28994
28995
|
PopoverContent as u,
|
|
28995
|
-
|
|
28996
|
+
CellOutputId as un,
|
|
28996
28997
|
useInstallAllowed as ut,
|
|
28997
28998
|
Sections as v,
|
|
28998
|
-
|
|
28999
|
+
jsonToMarkdown as vn,
|
|
28999
29000
|
getCellDomProps as vt,
|
|
29000
29001
|
AccordionItem as w,
|
|
29001
|
-
|
|
29002
|
+
Content2$1 as wn,
|
|
29002
29003
|
customPythonLanguageSupport as wt,
|
|
29003
29004
|
AIContextRegistry as x,
|
|
29004
|
-
|
|
29005
|
+
selectAtom as xn,
|
|
29005
29006
|
isInternalCellName as xt,
|
|
29006
29007
|
contextToXml as y,
|
|
29007
|
-
|
|
29008
|
+
atomWithReducer as yn,
|
|
29008
29009
|
displayCellName as yt,
|
|
29009
29010
|
isDataURLString as z,
|
|
29010
|
-
|
|
29011
|
+
ExternalLink as zn,
|
|
29011
29012
|
SQLParser as zt
|
|
29012
29013
|
};
|