@marimo-team/islands 0.23.14-dev10 → 0.23.14-dev13
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-DYBcNEdd.js → chat-ui-C6y6xLcn.js} +77 -77
- package/dist/{code-visibility-6TEcNJ_h.js → code-visibility-D5_npwSb.js} +127 -127
- package/dist/{html-to-image-MqcD07Bw.js → html-to-image-DcTkcjmm.js} +69 -64
- package/dist/main.js +1008 -994
- package/dist/{process-output-Dt3icftd.js → process-output-2FbS8KgW.js} +1 -1
- package/dist/{reveal-component-BT4BI95e.js → reveal-component-CU-VYeM8.js} +2 -2
- package/package.json +1 -1
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +27 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +23 -2
|
@@ -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 {
|
|
9
|
+
import { A as ChevronRightIcon, At as goToCellLine, Bt as PluralWord, C as AccordionContent, Ct as Checkbox, Dn as Wrench, Fn as Info, Gn as import_lib, Ht as DATA_TYPE_ICON, I as base64ToUint8Array, In as FileText, It as adaptForLocalStorage, Ln as Eye, Lt as jotaiJsonStorage, M as PinLeftIcon, Mn as Minus, N as PinRightIcon, Nn as LoaderCircle, Nt as useChromeActions, O as CheckIcon, On as Trash2, Pt as getFeatureFlag, R as extractBase64FromDataURL, Rn as ExternalLink, S as Accordion, Sn as Close$1, T as AccordionTrigger, Un as Braces, Ut as getDataTypeColor, V as renderHTML, Vn as CircleX, Wn as esm_default, X as notebookAtom, Yt as getRequestClient, Zt as useRequestClient, _n as jsonToMarkdown, _t as DATA_CELL_ID, an as filenameAtom, c as Popover, d as PopoverTrigger, dn as SCRATCH_CELL_ID, dt as viewStateAtom, en as elementContainsMarimoCellFile, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gn as jsonParseWithSpecialChar, gt as sanitizeHtml, j as DotFilledIcon, jn as NotebookPen, l as PopoverClose, ln as CellOutputId, lt as kioskModeAtom, m as useExpandedOutput, n as Spinner, nn as getTracebackInfo, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, r as MarkdownRenderer, t as toPng, tn as extractAllTracebackInfo, tt as useCellIds, u as PopoverContent, un as HTMLCellId, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yn as atomWithStorage, yt as displayCellName, z as isDataURLString, __tla as __tla_0 } from "./html-to-image-DcTkcjmm.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,7 +20121,7 @@ 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),
|
|
20124
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), q = n.filter(_temp11), J = n.filter(_temp12), Q = n.filter(_temp13), $ = n.filter(_temp14), Qq = n.filter(_temp15), $q = n.filter(_temp16), eJ = n.filter(_temp17), tJ = n.filter(_temp18), nJ;
|
|
20125
20125
|
t[17] === s ? nJ = t[18] : (nJ = () => {
|
|
20126
20126
|
s.openApplication("scratchpad");
|
|
20127
20127
|
}, t[17] = s, t[18] = nJ);
|
|
@@ -20217,7 +20217,7 @@ Database schema: ${e2}`);
|
|
|
20217
20217
|
]
|
|
20218
20218
|
})
|
|
20219
20219
|
]
|
|
20220
|
-
}, "setup-refs")),
|
|
20220
|
+
}, "setup-refs")), M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20221
20221
|
children: [
|
|
20222
20222
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20223
20223
|
className: "text-muted-foreground font-medium",
|
|
@@ -20225,10 +20225,10 @@ Database schema: ${e2}`);
|
|
|
20225
20225
|
}),
|
|
20226
20226
|
(0, import_jsx_runtime.jsx)("ul", {
|
|
20227
20227
|
className: "list-disc",
|
|
20228
|
-
children:
|
|
20228
|
+
children: M2.flatMap(_temp24)
|
|
20229
20229
|
}),
|
|
20230
20230
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20231
|
-
errors:
|
|
20231
|
+
errors: M2,
|
|
20232
20232
|
cellId: i
|
|
20233
20233
|
}),
|
|
20234
20234
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20263,17 +20263,17 @@ Database schema: ${e2}`);
|
|
|
20263
20263
|
]
|
|
20264
20264
|
})
|
|
20265
20265
|
]
|
|
20266
|
-
}, "cycle")),
|
|
20267
|
-
let e3 =
|
|
20266
|
+
}, "cycle")), I2.length > 0) {
|
|
20267
|
+
let e3 = I2[0].name;
|
|
20268
20268
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20269
20269
|
children: [
|
|
20270
20270
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20271
20271
|
className: "text-muted-foreground font-medium",
|
|
20272
20272
|
children: "This cell redefines variables from other cells."
|
|
20273
20273
|
}),
|
|
20274
|
-
|
|
20274
|
+
I2.map(_temp26),
|
|
20275
20275
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20276
|
-
errors:
|
|
20276
|
+
errors: I2,
|
|
20277
20277
|
cellId: i
|
|
20278
20278
|
}),
|
|
20279
20279
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20344,11 +20344,11 @@ Database schema: ${e2}`);
|
|
|
20344
20344
|
]
|
|
20345
20345
|
}, "multiple-defs"));
|
|
20346
20346
|
}
|
|
20347
|
-
return
|
|
20347
|
+
return z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20348
20348
|
children: [
|
|
20349
|
-
|
|
20349
|
+
z.map(_temp27),
|
|
20350
20350
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20351
|
-
errors:
|
|
20351
|
+
errors: z,
|
|
20352
20352
|
cellId: i
|
|
20353
20353
|
}),
|
|
20354
20354
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20386,11 +20386,11 @@ Database schema: ${e2}`);
|
|
|
20386
20386
|
]
|
|
20387
20387
|
})
|
|
20388
20388
|
]
|
|
20389
|
-
}, "import-star")),
|
|
20389
|
+
}, "import-star")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20390
20390
|
children: [
|
|
20391
|
-
|
|
20391
|
+
U.map(_temp28),
|
|
20392
20392
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20393
|
-
errors:
|
|
20393
|
+
errors: U,
|
|
20394
20394
|
cellId: i
|
|
20395
20395
|
})
|
|
20396
20396
|
]
|
|
@@ -20564,20 +20564,20 @@ Database schema: ${e2}`);
|
|
|
20564
20564
|
let cJ = sJ;
|
|
20565
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 = cJ, S = "flex flex-col gap-4", w = iJ(), 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
|
-
let
|
|
20568
|
-
t[29] !== S || t[30] !== w ? (
|
|
20567
|
+
let M;
|
|
20568
|
+
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
20569
20569
|
className: S,
|
|
20570
20570
|
children: w
|
|
20571
|
-
}), t[29] = S, t[30] = w, t[31] =
|
|
20572
|
-
let
|
|
20573
|
-
return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !==
|
|
20571
|
+
}), t[29] = S, t[30] = w, t[31] = M) : M = t[31];
|
|
20572
|
+
let I;
|
|
20573
|
+
return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== M ? (I = (0, import_jsx_runtime.jsxs)(y, {
|
|
20574
20574
|
variant: E,
|
|
20575
20575
|
className: O,
|
|
20576
20576
|
children: [
|
|
20577
20577
|
A,
|
|
20578
|
-
|
|
20578
|
+
M
|
|
20579
20579
|
]
|
|
20580
|
-
}), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] =
|
|
20580
|
+
}), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = M, t[37] = I) : I = t[37], I;
|
|
20581
20581
|
};
|
|
20582
20582
|
function _temp$10(e) {
|
|
20583
20583
|
return e.type === "interruption";
|
|
@@ -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, U, K, 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],
|
|
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, K, 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], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, 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] = K, t[22] = q, t[23] = J, t[24] = Q);
|
|
28684
|
+
let $ = I === void 0 ? false : I, Qq = z === void 0 ? true : z, $q = U === void 0 ? "Search..." : U, eJ = K === void 0 ? "Nothing found." : K, tJ = q === void 0 ? false : q, nJ = J === void 0 ? false : J, rJ = s ?? false, iJ;
|
|
28685
|
+
t[25] !== v || t[26] !== w || t[27] !== rJ ? (iJ = {
|
|
28686
28686
|
prop: w,
|
|
28687
|
-
defaultProp:
|
|
28687
|
+
defaultProp: rJ,
|
|
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] = rJ, t[28] = iJ) : iJ = t[28];
|
|
28690
|
+
let [aJ, oJ] = useControllableState(iJ), sJ = aJ === void 0 ? false : aJ, cJ;
|
|
28691
|
+
t[29] === S ? cJ = t[30] : (cJ = (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] = cJ);
|
|
28694
|
+
let lJ;
|
|
28695
|
+
t[31] !== c || t[32] !== cJ || t[33] !== Q ? (lJ = {
|
|
28696
|
+
prop: Q,
|
|
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: cJ
|
|
28699
|
+
}, t[31] = c, t[32] = cJ, t[33] = Q, t[34] = lJ) : lJ = t[34];
|
|
28700
|
+
let [uJ, dJ] = useControllableState(lJ), fJ;
|
|
28701
|
+
t[35] === uJ ? fJ = t[36] : (fJ = (e2) => Array.isArray(uJ) ? uJ.includes(e2) : uJ === e2, t[35] = uJ, t[36] = fJ);
|
|
28702
|
+
let pJ = fJ, mJ;
|
|
28703
|
+
t[37] !== _ || t[38] !== $ || t[39] !== oJ || t[40] !== dJ || t[41] !== uJ ? (mJ = (e2) => {
|
|
28704
28704
|
let t2 = e2;
|
|
28705
|
-
if (
|
|
28706
|
-
let n2 =
|
|
28705
|
+
if ($) if (Array.isArray(uJ)) if (uJ.includes(t2)) {
|
|
28706
|
+
let n2 = uJ.filter((t3) => t3 !== e2);
|
|
28707
28707
|
t2 = n2.length > 0 ? n2 : [];
|
|
28708
28708
|
} else t2 = [
|
|
28709
|
-
...
|
|
28709
|
+
...uJ,
|
|
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 uJ === e2 && (t2 = null);
|
|
28716
|
+
dJ(t2), (_ ?? $) || oJ(false);
|
|
28717
|
+
}, t[37] = _, t[38] = $, t[39] = oJ, t[40] = dJ, t[41] = uJ, t[42] = mJ) : mJ = t[42];
|
|
28718
|
+
let hJ = mJ, gJ;
|
|
28719
|
+
t[43] !== tJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== uJ ? (gJ = () => $ && tJ && E ? E : uJ == null ? E ?? "--" : Array.isArray(uJ) ? uJ.length === 0 ? E ?? "--" : uJ.length === 1 && d !== void 0 ? d(uJ[0]) : `${uJ.length} selected` : d === void 0 ? E ?? "--" : d(uJ), t[43] = tJ, t[44] = d, t[45] = $, t[46] = E, t[47] = uJ, t[48] = gJ) : gJ = t[48];
|
|
28720
|
+
let vJ = gJ, yJ;
|
|
28721
|
+
t[49] !== hJ || t[50] !== pJ ? (yJ = {
|
|
28722
|
+
isSelected: pJ,
|
|
28723
|
+
onSelect: hJ
|
|
28724
|
+
}, t[49] = hJ, t[50] = pJ, 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
|
-
let
|
|
28728
|
-
t[53] !==
|
|
28729
|
-
|
|
28730
|
-
}, t[53] =
|
|
28731
|
-
let
|
|
28732
|
-
t[56] !== o || t[57] !==
|
|
28727
|
+
let SJ;
|
|
28728
|
+
t[53] !== nJ || t[54] !== oJ ? (SJ = (e2) => {
|
|
28729
|
+
nJ && e2 || oJ(e2);
|
|
28730
|
+
}, t[53] = nJ, t[54] = oJ, t[55] = SJ) : SJ = t[55];
|
|
28731
|
+
let CJ = nJ && "cursor-not-allowed opacity-50", wJ;
|
|
28732
|
+
t[56] !== o || t[57] !== CJ ? (wJ = 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] = wJ) : wJ = t[58];
|
|
28733
28733
|
let DJ;
|
|
28734
|
-
t[59] !== O || t[60] !== vJ || t[61] !==
|
|
28734
|
+
t[59] !== O || t[60] !== vJ || t[61] !== uJ ? (DJ = O ? O(uJ ?? null) : vJ(), t[59] = O, t[60] = vJ, t[61] = uJ, 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] !== nJ || t[67] !== h || t[68] !== sJ || t[69] !== wJ || 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: wJ,
|
|
28751
|
+
"aria-expanded": sJ,
|
|
28752
|
+
"aria-disabled": nJ,
|
|
28753
28753
|
children: [
|
|
28754
28754
|
OJ,
|
|
28755
28755
|
kJ
|
|
28756
28756
|
]
|
|
28757
28757
|
})
|
|
28758
|
-
}), t[66] =
|
|
28758
|
+
}), t[66] = nJ, t[67] = h, t[68] = sJ, t[69] = wJ, t[70] = OJ, t[71] = AJ) : AJ = t[71];
|
|
28759
28759
|
let jJ;
|
|
28760
|
-
t[72] !==
|
|
28761
|
-
placeholder:
|
|
28760
|
+
t[72] !== $q || t[73] !== y || t[74] !== M ? (jJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28761
|
+
placeholder: $q,
|
|
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] = $q, 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] === eJ ? MJ = t[77] : (MJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28769
|
+
children: eJ
|
|
28770
|
+
}), t[76] = eJ, 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] !== Qq || 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: Qq,
|
|
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] = Qq, t[86] = jJ, t[87] = PJ, t[88] = FJ) : FJ = t[88];
|
|
28797
28797
|
let IJ;
|
|
28798
|
-
t[89] !==
|
|
28799
|
-
open:
|
|
28800
|
-
onOpenChange:
|
|
28798
|
+
t[89] !== sJ || t[90] !== SJ || t[91] !== AJ || t[92] !== FJ ? (IJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28799
|
+
open: sJ,
|
|
28800
|
+
onOpenChange: SJ,
|
|
28801
28801
|
children: [
|
|
28802
28802
|
AJ,
|
|
28803
28803
|
FJ
|
|
28804
28804
|
]
|
|
28805
|
-
}), t[89] =
|
|
28805
|
+
}), t[89] = sJ, 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] !== tJ || t[95] !== i || t[96] !== nJ || t[97] !== d || t[98] !== hJ || t[99] !== $ || t[100] !== uJ ? (LJ = $ && tJ && (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(uJ) && uJ.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
|
+
nJ || hJ(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", nJ && "pointer-events-none")
|
|
28818
28818
|
})
|
|
28819
28819
|
]
|
|
28820
28820
|
}, String(e2)))
|
|
28821
|
-
}), t[94] =
|
|
28821
|
+
}), t[94] = tJ, t[95] = i, t[96] = nJ, t[97] = d, t[98] = hJ, t[99] = $, t[100] = uJ, 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,
|
|
@@ -30227,7 +30227,7 @@ Database schema: ${e2}`);
|
|
|
30227
30227
|
const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
|
|
30228
30228
|
let o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = (0, import_react.useId)(), d = e.value.type, f = e.value.operator, _ = toDraftValue(e.value), [v, y] = (0, import_react.useState)(e.columnId), [S, w] = (0, import_react.useState)(d), [E, O] = (0, import_react.useState)(f), [A, M] = (0, import_react.useState)(_), [I, z] = (0, import_react.useState)(EMPTY_NUMBER_TEXT_DRAFT), U = editableColumns(t), K = (t2) => {
|
|
30229
30229
|
t2.id === e.columnId && t2.operator === f && M(_);
|
|
30230
|
-
},
|
|
30230
|
+
}, q = (e2) => {
|
|
30231
30231
|
if (!e2) return;
|
|
30232
30232
|
let n2 = t.getColumn(e2);
|
|
30233
30233
|
if (!n2) return;
|
|
@@ -30236,20 +30236,20 @@ Database schema: ${e2}`);
|
|
|
30236
30236
|
id: e2,
|
|
30237
30237
|
operator: a2
|
|
30238
30238
|
});
|
|
30239
|
-
},
|
|
30239
|
+
}, J = (e2) => {
|
|
30240
30240
|
O(e2);
|
|
30241
30241
|
let t2 = emptyDraftFor(S, e2);
|
|
30242
30242
|
t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
|
|
30243
30243
|
id: v,
|
|
30244
30244
|
operator: e2
|
|
30245
30245
|
});
|
|
30246
|
-
},
|
|
30246
|
+
}, Q = buildFilterValue({
|
|
30247
30247
|
type: S,
|
|
30248
30248
|
operator: E,
|
|
30249
30249
|
draft: mergeNumberTextDraft(A, I)
|
|
30250
|
-
}),
|
|
30251
|
-
if (
|
|
30252
|
-
let e2 =
|
|
30250
|
+
}), $ = Q === void 0, Qq = $ ? getMissingValueMessage(S, E) : "Apply filter", $q = () => {
|
|
30251
|
+
if (!Q) return;
|
|
30252
|
+
let e2 = Q;
|
|
30253
30253
|
t.setColumnFilters((t2) => {
|
|
30254
30254
|
if (a === void 0) return [
|
|
30255
30255
|
{
|
|
@@ -30266,20 +30266,20 @@ Database schema: ${e2}`);
|
|
|
30266
30266
|
value: e2
|
|
30267
30267
|
}, n2;
|
|
30268
30268
|
}), i();
|
|
30269
|
-
},
|
|
30269
|
+
}, eJ = () => {
|
|
30270
30270
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30271
|
-
},
|
|
30271
|
+
}, tJ = !OPERATORS_WITHOUT_VALUE.has(E), nJ = OPERATORS_BY_TYPE[S], rJ = (0, import_react.useRef)(null), iJ = (0, import_react.useRef)(null);
|
|
30272
30272
|
return (0, import_react.useEffect)(() => {
|
|
30273
30273
|
var _a2, _b;
|
|
30274
|
-
let e2 = (_a2 =
|
|
30275
|
-
e2 ? e2.focus() : (_b =
|
|
30274
|
+
let e2 = (_a2 = rJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30275
|
+
e2 ? e2.focus() : (_b = iJ.current) == null ? void 0 : _b.focus();
|
|
30276
30276
|
}, [
|
|
30277
30277
|
S,
|
|
30278
30278
|
E
|
|
30279
30279
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30280
30280
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30281
30281
|
onSubmit: (e2) => {
|
|
30282
|
-
e2.preventDefault(),
|
|
30282
|
+
e2.preventDefault(), $q();
|
|
30283
30283
|
},
|
|
30284
30284
|
onKeyDownCapture: (e2) => {
|
|
30285
30285
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30296,7 +30296,7 @@ Database schema: ${e2}`);
|
|
|
30296
30296
|
(0, import_jsx_runtime.jsx)(Combobox, {
|
|
30297
30297
|
id: o,
|
|
30298
30298
|
value: v,
|
|
30299
|
-
onValueChange:
|
|
30299
|
+
onValueChange: q,
|
|
30300
30300
|
multiple: false,
|
|
30301
30301
|
placeholder: "Select column\u2026",
|
|
30302
30302
|
displayValue: (e2) => e2,
|
|
@@ -30317,16 +30317,16 @@ Database schema: ${e2}`);
|
|
|
30317
30317
|
}),
|
|
30318
30318
|
(0, import_jsx_runtime.jsxs)(Select, {
|
|
30319
30319
|
value: E,
|
|
30320
|
-
onValueChange: (e2) =>
|
|
30320
|
+
onValueChange: (e2) => J(e2),
|
|
30321
30321
|
children: [
|
|
30322
30322
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30323
|
-
ref:
|
|
30323
|
+
ref: iJ,
|
|
30324
30324
|
id: s,
|
|
30325
30325
|
className: "h-6 mb-1 bg-transparent",
|
|
30326
30326
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30327
30327
|
}),
|
|
30328
30328
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30329
|
-
children:
|
|
30329
|
+
children: nJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30330
30330
|
value: e2,
|
|
30331
30331
|
children: OPERATOR_LABELS[e2]
|
|
30332
30332
|
}, e2))
|
|
@@ -30335,8 +30335,8 @@ Database schema: ${e2}`);
|
|
|
30335
30335
|
}, S)
|
|
30336
30336
|
]
|
|
30337
30337
|
}),
|
|
30338
|
-
|
|
30339
|
-
ref:
|
|
30338
|
+
tJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30339
|
+
ref: rJ,
|
|
30340
30340
|
className: "flex flex-col gap-1",
|
|
30341
30341
|
children: [
|
|
30342
30342
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30363,14 +30363,14 @@ Database schema: ${e2}`);
|
|
|
30363
30363
|
className: "flex gap-1 mb-1",
|
|
30364
30364
|
children: [
|
|
30365
30365
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30366
|
-
content:
|
|
30366
|
+
content: Qq,
|
|
30367
30367
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30368
30368
|
className: "inline-flex",
|
|
30369
30369
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
30370
30370
|
type: "submit",
|
|
30371
30371
|
size: "icon",
|
|
30372
30372
|
variant: "ghost",
|
|
30373
|
-
disabled:
|
|
30373
|
+
disabled: $,
|
|
30374
30374
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
30375
30375
|
"aria-label": "Apply filter",
|
|
30376
30376
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -30402,7 +30402,7 @@ Database schema: ${e2}`);
|
|
|
30402
30402
|
size: "icon",
|
|
30403
30403
|
variant: "ghost",
|
|
30404
30404
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30405
|
-
onClick:
|
|
30405
|
+
onClick: eJ,
|
|
30406
30406
|
"aria-label": "Remove filter",
|
|
30407
30407
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30408
30408
|
className: "h-3.5 w-3.5",
|
|
@@ -34599,20 +34599,20 @@ ${d}`,
|
|
|
34599
34599
|
eJ
|
|
34600
34600
|
]
|
|
34601
34601
|
}), t[24] = z, t[25] = $q, t[26] = $, t[27] = Qq, t[28] = tJ) : tJ = t[28];
|
|
34602
|
-
let
|
|
34603
|
-
t[29] !== s || t[30] !== z ? (
|
|
34602
|
+
let nJ;
|
|
34603
|
+
t[29] !== s || t[30] !== z ? (nJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34604
34604
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34605
34605
|
children: s
|
|
34606
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34607
|
-
let
|
|
34608
|
-
t[32] !== q || t[33] !== Q || t[34] !== M ? (
|
|
34606
|
+
}), t[29] = s, t[30] = z, t[31] = nJ) : nJ = t[31];
|
|
34607
|
+
let rJ;
|
|
34608
|
+
t[32] !== q || t[33] !== Q || t[34] !== M ? (rJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34609
34609
|
tooltip: "Fix with AI",
|
|
34610
34610
|
openPrompt: () => q(false),
|
|
34611
34611
|
applyAutofix: () => q(true),
|
|
34612
34612
|
openChat: Q
|
|
34613
|
-
}), t[32] = q, t[33] = Q, t[34] = M, t[35] =
|
|
34614
|
-
let
|
|
34615
|
-
t[36] !== O || t[37] !== y ? (
|
|
34613
|
+
}), t[32] = q, t[33] = Q, t[34] = M, t[35] = rJ) : rJ = t[35];
|
|
34614
|
+
let iJ;
|
|
34615
|
+
t[36] !== O || t[37] !== y ? (iJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34616
34616
|
content: "Attach pdb to the exception point.",
|
|
34617
34617
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34618
34618
|
size: "xs",
|
|
@@ -34629,9 +34629,9 @@ ${d}`,
|
|
|
34629
34629
|
"Launch debugger"
|
|
34630
34630
|
]
|
|
34631
34631
|
})
|
|
34632
|
-
}), t[36] = O, t[37] = y, t[38] =
|
|
34633
|
-
let
|
|
34634
|
-
t[39] !== d || t[40] !== i ? (
|
|
34632
|
+
}), t[36] = O, t[37] = y, t[38] = iJ) : iJ = t[38];
|
|
34633
|
+
let aJ;
|
|
34634
|
+
t[39] !== d || t[40] !== i ? (aJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34635
34635
|
children: [
|
|
34636
34636
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34637
34637
|
asChild: true,
|
|
@@ -34699,25 +34699,25 @@ ${d}`,
|
|
|
34699
34699
|
]
|
|
34700
34700
|
})
|
|
34701
34701
|
]
|
|
34702
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34703
|
-
let
|
|
34704
|
-
t[42] !==
|
|
34702
|
+
}), t[39] = d, t[40] = i, t[41] = aJ) : aJ = t[41];
|
|
34703
|
+
let oJ;
|
|
34704
|
+
t[42] !== rJ || t[43] !== iJ || t[44] !== aJ ? (oJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34705
34705
|
className: "flex gap-2",
|
|
34706
34706
|
children: [
|
|
34707
|
-
|
|
34708
|
-
|
|
34709
|
-
|
|
34707
|
+
rJ,
|
|
34708
|
+
iJ,
|
|
34709
|
+
aJ
|
|
34710
34710
|
]
|
|
34711
|
-
}), t[42] =
|
|
34712
|
-
let
|
|
34713
|
-
return t[46] !== tJ || t[47] !==
|
|
34711
|
+
}), t[42] = rJ, t[43] = iJ, t[44] = aJ, t[45] = oJ) : oJ = t[45];
|
|
34712
|
+
let sJ;
|
|
34713
|
+
return t[46] !== tJ || t[47] !== nJ || t[48] !== oJ ? (sJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34714
34714
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34715
34715
|
children: [
|
|
34716
34716
|
tJ,
|
|
34717
|
-
|
|
34718
|
-
|
|
34717
|
+
nJ,
|
|
34718
|
+
oJ
|
|
34719
34719
|
]
|
|
34720
|
-
}), t[46] = tJ, t[47] =
|
|
34720
|
+
}), t[46] = tJ, t[47] = nJ, t[48] = oJ, t[49] = sJ) : sJ = t[49], sJ;
|
|
34721
34721
|
};
|
|
34722
34722
|
function lastLine(e) {
|
|
34723
34723
|
var _a2, _b;
|
|
@@ -36194,7 +36194,7 @@ ${d}`,
|
|
|
36194
36194
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36195
36195
|
}
|
|
36196
36196
|
}
|
|
36197
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-
|
|
36197
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.14-dev13");
|
|
36198
36198
|
showCodeInRunModeAtom = atom(true);
|
|
36199
36199
|
atom(null);
|
|
36200
36200
|
var import_compiler_runtime = require_compiler_runtime();
|