@marimo-team/islands 0.23.9-dev36 → 0.23.9-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-IyGT4sju.js → chat-ui-BQqY0W74.js} +56 -56
- package/dist/{code-visibility-DP2xSfeW.js → code-visibility-CHwUF5vX.js} +197 -193
- package/dist/{html-to-image-CGbhD84m.js → html-to-image-BAPmFVwS.js} +2134 -2147
- package/dist/main.js +97 -96
- package/dist/{process-output-B8Cqiywi.js → process-output-B55jxGI5.js} +1 -1
- package/dist/{reveal-component-B7RA3HR2.js → reveal-component-DQF8h6lC.js} +2 -2
- package/package.json +1 -1
- package/src/components/data-table/export-actions.tsx +19 -12
- package/src/components/data-table/schemas.ts +2 -2
- package/src/utils/__tests__/json-parser.test.ts +1 -69
- package/src/utils/json/json-parser.ts +0 -30
|
@@ -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-BuQpJEzp.js";
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as LoaderCircle, Bn as Braces, C as AccordionContent, Fn as ExternalLink, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as Info, Mt as useChromeActions, N as PinRightIcon, Nn as FileText, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Trash2, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _t as getCellDomProps, at as AnsiUp, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gn as atomWithStorage, gt as DATA_CELL_ID, ht as sanitizeHtml, j as DotFilledIcon, kn as Minus, kt as goToCellLine, l as PopoverClose, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as Spinner, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, r as MarkdownRenderer, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, wn as Wrench, yn as Close$1, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-BAPmFVwS.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-C1BYNeCR.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-DVkMZA_I.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-BA4FCquG.js";
|
|
@@ -19816,11 +19816,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19816
19816
|
}
|
|
19817
19817
|
let y, S, w, E, O, A;
|
|
19818
19818
|
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) {
|
|
19819
|
-
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), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), PK = n.filter(_temp16), FK = n.filter(_temp17), IK = n.filter(_temp18),
|
|
19820
|
-
t[17] === s ?
|
|
19819
|
+
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), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), PK = n.filter(_temp16), FK = n.filter(_temp17), IK = n.filter(_temp18), RK;
|
|
19820
|
+
t[17] === s ? RK = t[18] : (RK = () => {
|
|
19821
19821
|
s.openApplication("scratchpad");
|
|
19822
|
-
}, t[17] = s, t[18] =
|
|
19823
|
-
let
|
|
19822
|
+
}, t[17] = s, t[18] = RK);
|
|
19823
|
+
let zK = RK, BK = () => {
|
|
19824
19824
|
let t2 = [];
|
|
19825
19825
|
if (PK.length > 0 || FK.length > 0) {
|
|
19826
19826
|
let e3 = PK.some(_temp19), n2 = !e3 && PK.some(_temp20);
|
|
@@ -20020,7 +20020,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20020
20020
|
size: "xs",
|
|
20021
20021
|
variant: "link",
|
|
20022
20022
|
className: "my-2 font-normal mx-0 px-0",
|
|
20023
|
-
onClick:
|
|
20023
|
+
onClick: zK,
|
|
20024
20024
|
children: [
|
|
20025
20025
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20026
20026
|
className: "h-3"
|
|
@@ -20243,21 +20243,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20243
20243
|
})
|
|
20244
20244
|
]
|
|
20245
20245
|
}), t[19] = v, t[20] = VK);
|
|
20246
|
-
let
|
|
20247
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20246
|
+
let UK;
|
|
20247
|
+
t[21] !== _ || t[22] !== d ? (UK = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20248
20248
|
className: `font-code font-medium ${_}`,
|
|
20249
20249
|
children: d
|
|
20250
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20251
|
-
let
|
|
20252
|
-
t[24] !== VK || t[25] !==
|
|
20250
|
+
}), t[21] = _, t[22] = d, t[23] = UK) : UK = t[23];
|
|
20251
|
+
let WK;
|
|
20252
|
+
t[24] !== VK || t[25] !== UK ? (WK = (0, import_jsx_runtime.jsxs)("div", {
|
|
20253
20253
|
className: "space-y-0.5",
|
|
20254
20254
|
children: [
|
|
20255
20255
|
VK,
|
|
20256
|
-
|
|
20256
|
+
UK
|
|
20257
20257
|
]
|
|
20258
|
-
}), t[24] = VK, t[25] =
|
|
20259
|
-
let
|
|
20260
|
-
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 =
|
|
20258
|
+
}), t[24] = VK, t[25] = UK, t[26] = WK) : WK = t[26];
|
|
20259
|
+
let GK = WK;
|
|
20260
|
+
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 = GK, S = "flex flex-col gap-4", w = BK(), 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;
|
|
20261
20261
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20262
20262
|
let M;
|
|
20263
20263
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -28381,10 +28381,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28381
28381
|
defaultProp: c,
|
|
28382
28382
|
onChange: UK
|
|
28383
28383
|
}, t[30] = c, t[31] = UK, t[32] = J, t[33] = WK) : WK = t[33];
|
|
28384
|
-
let [GK,
|
|
28385
|
-
t[34] === GK ?
|
|
28386
|
-
let
|
|
28387
|
-
t[36] !== _ || t[37] !== Q || t[38] !== VK || t[39] !==
|
|
28384
|
+
let [GK, qK] = useControllableState(WK), JK;
|
|
28385
|
+
t[34] === GK ? JK = t[35] : (JK = (e2) => Array.isArray(GK) ? GK.includes(e2) : GK === e2, t[34] = GK, t[35] = JK);
|
|
28386
|
+
let YK = JK, XK;
|
|
28387
|
+
t[36] !== _ || t[37] !== Q || t[38] !== VK || t[39] !== qK || t[40] !== GK ? (XK = (e2) => {
|
|
28388
28388
|
let t2 = e2;
|
|
28389
28389
|
if (Q) if (Array.isArray(GK)) if (GK.includes(t2)) {
|
|
28390
28390
|
let n2 = GK.filter((t3) => t3 !== e2);
|
|
@@ -28397,98 +28397,98 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28397
28397
|
t2
|
|
28398
28398
|
];
|
|
28399
28399
|
else GK === e2 && (t2 = null);
|
|
28400
|
-
|
|
28401
|
-
}, t[36] = _, t[37] = Q, t[38] = VK, t[39] =
|
|
28402
|
-
let
|
|
28403
|
-
t[42] !== IK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== GK ? (
|
|
28404
|
-
let
|
|
28405
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28406
|
-
let
|
|
28407
|
-
t[49] !== LK || t[50] !== VK ? (
|
|
28400
|
+
qK(t2), (_ ?? Q) || VK(false);
|
|
28401
|
+
}, t[36] = _, t[37] = Q, t[38] = VK, t[39] = qK, t[40] = GK, t[41] = XK) : XK = t[41];
|
|
28402
|
+
let ZK = XK, QK;
|
|
28403
|
+
t[42] !== IK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== GK ? (QK = () => Q && IK && E ? E : GK == null ? E ?? "--" : Array.isArray(GK) ? GK.length === 0 ? E ?? "--" : GK.length === 1 && d !== void 0 ? d(GK[0]) : `${GK.length} selected` : d === void 0 ? E ?? "--" : d(GK), t[42] = IK, t[43] = d, t[44] = Q, t[45] = E, t[46] = GK, t[47] = QK) : QK = t[47];
|
|
28404
|
+
let $K = QK, eq;
|
|
28405
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eq = cn("relative"), t[48] = eq) : eq = t[48];
|
|
28406
|
+
let tq;
|
|
28407
|
+
t[49] !== LK || t[50] !== VK ? (tq = (e2) => {
|
|
28408
28408
|
LK && e2 || VK(e2);
|
|
28409
|
-
}, t[49] = LK, t[50] = VK, t[51] =
|
|
28410
|
-
let
|
|
28411
|
-
t[52] !== o || t[53] !==
|
|
28412
|
-
let rq;
|
|
28413
|
-
t[55] === QK ? rq = t[56] : (rq = QK(), t[55] = QK, t[56] = rq);
|
|
28409
|
+
}, t[49] = LK, t[50] = VK, t[51] = tq) : tq = t[51];
|
|
28410
|
+
let nq = LK && "cursor-not-allowed opacity-50", iq;
|
|
28411
|
+
t[52] !== o || t[53] !== nq ? (iq = 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", nq, o), t[52] = o, t[53] = nq, t[54] = iq) : iq = t[54];
|
|
28414
28412
|
let aq;
|
|
28415
|
-
t[
|
|
28413
|
+
t[55] === $K ? aq = t[56] : (aq = $K(), t[55] = $K, t[56] = aq);
|
|
28414
|
+
let sq;
|
|
28415
|
+
t[57] === aq ? sq = t[58] : (sq = (0, import_jsx_runtime.jsx)("span", {
|
|
28416
28416
|
className: "truncate flex-1 min-w-0",
|
|
28417
|
-
children:
|
|
28418
|
-
}), t[57] =
|
|
28419
|
-
let oq;
|
|
28420
|
-
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28421
|
-
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28422
|
-
}), t[59] = oq) : oq = t[59];
|
|
28417
|
+
children: aq
|
|
28418
|
+
}), t[57] = aq, t[58] = sq);
|
|
28423
28419
|
let cq;
|
|
28424
|
-
t[
|
|
28420
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28421
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28422
|
+
}), t[59] = cq) : cq = t[59];
|
|
28423
|
+
let lq;
|
|
28424
|
+
t[60] !== LK || t[61] !== h || t[62] !== HK || t[63] !== iq || t[64] !== sq ? (lq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28425
28425
|
asChild: true,
|
|
28426
28426
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28427
28427
|
id: h,
|
|
28428
28428
|
type: "button",
|
|
28429
|
-
className:
|
|
28429
|
+
className: iq,
|
|
28430
28430
|
"aria-expanded": HK,
|
|
28431
28431
|
"aria-disabled": LK,
|
|
28432
28432
|
children: [
|
|
28433
|
-
|
|
28434
|
-
|
|
28433
|
+
sq,
|
|
28434
|
+
cq
|
|
28435
28435
|
]
|
|
28436
28436
|
})
|
|
28437
|
-
}), t[60] = LK, t[61] = h, t[62] = HK, t[63] =
|
|
28438
|
-
let
|
|
28439
|
-
t[66] !== PK || t[67] !== y || t[68] !== A ? (
|
|
28437
|
+
}), t[60] = LK, t[61] = h, t[62] = HK, t[63] = iq, t[64] = sq, t[65] = lq) : lq = t[65];
|
|
28438
|
+
let uq;
|
|
28439
|
+
t[66] !== PK || t[67] !== y || t[68] !== A ? (uq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28440
28440
|
placeholder: PK,
|
|
28441
28441
|
rootClassName: "px-1 h-8",
|
|
28442
28442
|
autoFocus: true,
|
|
28443
28443
|
value: A,
|
|
28444
28444
|
onValueChange: y
|
|
28445
|
-
}), t[66] = PK, t[67] = y, t[68] = A, t[69] =
|
|
28446
|
-
let uq;
|
|
28447
|
-
t[70] === FK ? uq = t[71] : (uq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28448
|
-
children: FK
|
|
28449
|
-
}), t[70] = FK, t[71] = uq);
|
|
28445
|
+
}), t[66] = PK, t[67] = y, t[68] = A, t[69] = uq) : uq = t[69];
|
|
28450
28446
|
let dq;
|
|
28451
|
-
t[
|
|
28452
|
-
|
|
28453
|
-
|
|
28454
|
-
}, t[72] = XK, t[73] = JK, t[74] = dq) : dq = t[74];
|
|
28447
|
+
t[70] === FK ? dq = t[71] : (dq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28448
|
+
children: FK
|
|
28449
|
+
}), t[70] = FK, t[71] = dq);
|
|
28455
28450
|
let fq;
|
|
28456
|
-
t[
|
|
28457
|
-
|
|
28458
|
-
|
|
28459
|
-
}
|
|
28451
|
+
t[72] !== ZK || t[73] !== YK ? (fq = {
|
|
28452
|
+
isSelected: YK,
|
|
28453
|
+
onSelect: ZK
|
|
28454
|
+
}, t[72] = ZK, t[73] = YK, t[74] = fq) : fq = t[74];
|
|
28460
28455
|
let pq;
|
|
28461
|
-
t[
|
|
28456
|
+
t[75] !== n || t[76] !== fq ? (pq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28457
|
+
value: fq,
|
|
28458
|
+
children: n
|
|
28459
|
+
}), t[75] = n, t[76] = fq, t[77] = pq) : pq = t[77];
|
|
28460
|
+
let mq;
|
|
28461
|
+
t[78] !== dq || t[79] !== pq ? (mq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28462
28462
|
className: "max-h-60 py-.5",
|
|
28463
28463
|
children: [
|
|
28464
|
-
|
|
28465
|
-
|
|
28464
|
+
dq,
|
|
28465
|
+
pq
|
|
28466
28466
|
]
|
|
28467
|
-
}), t[78] =
|
|
28468
|
-
let
|
|
28469
|
-
t[81] !== f || t[82] !== $ || t[83] !==
|
|
28467
|
+
}), t[78] = dq, t[79] = pq, t[80] = mq) : mq = t[80];
|
|
28468
|
+
let hq;
|
|
28469
|
+
t[81] !== f || t[82] !== $ || t[83] !== uq || t[84] !== mq ? (hq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28470
28470
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28471
28471
|
align: "start",
|
|
28472
28472
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28473
28473
|
filter: f,
|
|
28474
28474
|
shouldFilter: $,
|
|
28475
28475
|
children: [
|
|
28476
|
-
|
|
28477
|
-
|
|
28476
|
+
uq,
|
|
28477
|
+
mq
|
|
28478
28478
|
]
|
|
28479
28479
|
})
|
|
28480
|
-
}), t[81] = f, t[82] = $, t[83] =
|
|
28481
|
-
let
|
|
28482
|
-
t[86] !== HK || t[87] !==
|
|
28480
|
+
}), t[81] = f, t[82] = $, t[83] = uq, t[84] = mq, t[85] = hq) : hq = t[85];
|
|
28481
|
+
let gq;
|
|
28482
|
+
t[86] !== HK || t[87] !== tq || t[88] !== lq || t[89] !== hq ? (gq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28483
28483
|
open: HK,
|
|
28484
|
-
onOpenChange:
|
|
28484
|
+
onOpenChange: tq,
|
|
28485
28485
|
children: [
|
|
28486
|
-
|
|
28487
|
-
|
|
28486
|
+
lq,
|
|
28487
|
+
hq
|
|
28488
28488
|
]
|
|
28489
|
-
}), t[86] = HK, t[87] =
|
|
28490
|
-
let
|
|
28491
|
-
t[91] !== IK || t[92] !== i || t[93] !== LK || t[94] !== d || t[95] !==
|
|
28489
|
+
}), t[86] = HK, t[87] = tq, t[88] = lq, t[89] = hq, t[90] = gq) : gq = t[90];
|
|
28490
|
+
let _q;
|
|
28491
|
+
t[91] !== IK || t[92] !== i || t[93] !== LK || t[94] !== d || t[95] !== ZK || t[96] !== Q || t[97] !== GK ? (_q = Q && IK && (0, import_jsx_runtime.jsx)("div", {
|
|
28492
28492
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28493
28493
|
children: Array.isArray(GK) && GK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28494
28494
|
variant: "secondary",
|
|
@@ -28496,22 +28496,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28496
28496
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28497
28497
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28498
28498
|
onClick: () => {
|
|
28499
|
-
LK ||
|
|
28499
|
+
LK || ZK(e2);
|
|
28500
28500
|
},
|
|
28501
28501
|
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", LK && "pointer-events-none")
|
|
28502
28502
|
})
|
|
28503
28503
|
]
|
|
28504
28504
|
}, String(e2)))
|
|
28505
|
-
}), t[91] = IK, t[92] = i, t[93] = LK, t[94] = d, t[95] =
|
|
28506
|
-
let
|
|
28507
|
-
return t[99] !== O || t[100] !==
|
|
28508
|
-
className:
|
|
28505
|
+
}), t[91] = IK, t[92] = i, t[93] = LK, t[94] = d, t[95] = ZK, t[96] = Q, t[97] = GK, t[98] = _q) : _q = t[98];
|
|
28506
|
+
let vq;
|
|
28507
|
+
return t[99] !== O || t[100] !== gq || t[101] !== _q ? (vq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28508
|
+
className: eq,
|
|
28509
28509
|
...O,
|
|
28510
28510
|
children: [
|
|
28511
|
-
|
|
28512
|
-
|
|
28511
|
+
gq,
|
|
28512
|
+
_q
|
|
28513
28513
|
]
|
|
28514
|
-
}), t[99] = O, t[100] =
|
|
28514
|
+
}), t[99] = O, t[100] = gq, t[101] = _q, t[102] = vq) : vq = t[102], vq;
|
|
28515
28515
|
};
|
|
28516
28516
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28517
28517
|
let n = (0, import_compiler_runtime$30.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29259,12 +29259,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29259
29259
|
onChange: E,
|
|
29260
29260
|
className: s
|
|
29261
29261
|
}, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
|
|
29262
|
-
let
|
|
29263
|
-
return t[37] !== S || t[38] !== M ? (
|
|
29262
|
+
let I;
|
|
29263
|
+
return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
|
|
29264
29264
|
onPasteCapture: S,
|
|
29265
29265
|
className: "contents",
|
|
29266
29266
|
children: M
|
|
29267
|
-
}), t[37] = S, t[38] = M, t[39] =
|
|
29267
|
+
}), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
|
|
29268
29268
|
};
|
|
29269
29269
|
function _temp$4(e) {
|
|
29270
29270
|
return e + 1;
|
|
@@ -29621,31 +29621,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29621
29621
|
});
|
|
29622
29622
|
}
|
|
29623
29623
|
const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
|
|
29624
|
-
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),
|
|
29624
|
+
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) => {
|
|
29625
29625
|
t2.id === e.columnId && t2.operator === f && M(_);
|
|
29626
|
-
},
|
|
29626
|
+
}, q = (e2) => {
|
|
29627
29627
|
if (!e2) return;
|
|
29628
29628
|
let n2 = t.getColumn(e2);
|
|
29629
29629
|
if (!n2) return;
|
|
29630
29630
|
let i2 = columnEditableType(n2), a2 = E;
|
|
29631
|
-
i2 !== S && (a2 = DEFAULT_OPERATOR_FOR_TYPE[i2], w(i2), O(a2), M(emptyDraftFor(i2, a2)), z(EMPTY_NUMBER_TEXT_DRAFT)), y(e2),
|
|
29631
|
+
i2 !== S && (a2 = DEFAULT_OPERATOR_FOR_TYPE[i2], w(i2), O(a2), M(emptyDraftFor(i2, a2)), z(EMPTY_NUMBER_TEXT_DRAFT)), y(e2), K({
|
|
29632
29632
|
id: e2,
|
|
29633
29633
|
operator: a2
|
|
29634
29634
|
});
|
|
29635
|
-
},
|
|
29635
|
+
}, J = (e2) => {
|
|
29636
29636
|
O(e2);
|
|
29637
29637
|
let t2 = emptyDraftFor(S, e2);
|
|
29638
|
-
t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT),
|
|
29638
|
+
t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
|
|
29639
29639
|
id: v,
|
|
29640
29640
|
operator: e2
|
|
29641
29641
|
});
|
|
29642
|
-
},
|
|
29642
|
+
}, Q = buildFilterValue({
|
|
29643
29643
|
type: S,
|
|
29644
29644
|
operator: E,
|
|
29645
29645
|
draft: mergeNumberTextDraft(A, I)
|
|
29646
|
-
}),
|
|
29647
|
-
if (
|
|
29648
|
-
let e2 =
|
|
29646
|
+
}), $ = Q === void 0, PK = $ ? getMissingValueMessage(S, E) : "Apply filter", FK = () => {
|
|
29647
|
+
if (!Q) return;
|
|
29648
|
+
let e2 = Q;
|
|
29649
29649
|
t.setColumnFilters((t2) => {
|
|
29650
29650
|
if (a === void 0) return [
|
|
29651
29651
|
{
|
|
@@ -29662,20 +29662,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29662
29662
|
value: e2
|
|
29663
29663
|
}, n2;
|
|
29664
29664
|
}), i();
|
|
29665
|
-
},
|
|
29665
|
+
}, IK = () => {
|
|
29666
29666
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29667
|
-
},
|
|
29667
|
+
}, LK = !OPERATORS_WITHOUT_VALUE.has(E), RK = OPERATORS_BY_TYPE[S], zK = (0, import_react.useRef)(null), BK = (0, import_react.useRef)(null);
|
|
29668
29668
|
return (0, import_react.useEffect)(() => {
|
|
29669
29669
|
var _a2, _b;
|
|
29670
|
-
let e2 = (_a2 =
|
|
29671
|
-
e2 ? e2.focus() : (_b =
|
|
29670
|
+
let e2 = (_a2 = zK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29671
|
+
e2 ? e2.focus() : (_b = BK.current) == null ? void 0 : _b.focus();
|
|
29672
29672
|
}, [
|
|
29673
29673
|
S,
|
|
29674
29674
|
E
|
|
29675
29675
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29676
29676
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29677
29677
|
onSubmit: (e2) => {
|
|
29678
|
-
e2.preventDefault(),
|
|
29678
|
+
e2.preventDefault(), FK();
|
|
29679
29679
|
},
|
|
29680
29680
|
onKeyDownCapture: (e2) => {
|
|
29681
29681
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29692,11 +29692,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29692
29692
|
(0, import_jsx_runtime.jsx)(Combobox, {
|
|
29693
29693
|
id: o,
|
|
29694
29694
|
value: v,
|
|
29695
|
-
onValueChange:
|
|
29695
|
+
onValueChange: q,
|
|
29696
29696
|
multiple: false,
|
|
29697
29697
|
placeholder: "Select column\u2026",
|
|
29698
29698
|
displayValue: (e2) => e2,
|
|
29699
|
-
children:
|
|
29699
|
+
children: U.map((e2) => (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
29700
29700
|
value: e2.id,
|
|
29701
29701
|
children: e2.id
|
|
29702
29702
|
}, e2.id))
|
|
@@ -29713,16 +29713,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29713
29713
|
}),
|
|
29714
29714
|
(0, import_jsx_runtime.jsxs)(Select, {
|
|
29715
29715
|
value: E,
|
|
29716
|
-
onValueChange: (e2) =>
|
|
29716
|
+
onValueChange: (e2) => J(e2),
|
|
29717
29717
|
children: [
|
|
29718
29718
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29719
|
-
ref:
|
|
29719
|
+
ref: BK,
|
|
29720
29720
|
id: s,
|
|
29721
29721
|
className: "h-6 mb-1 bg-transparent",
|
|
29722
29722
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29723
29723
|
}),
|
|
29724
29724
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29725
|
-
children:
|
|
29725
|
+
children: RK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29726
29726
|
value: e2,
|
|
29727
29727
|
children: OPERATOR_LABELS[e2]
|
|
29728
29728
|
}, e2))
|
|
@@ -29731,8 +29731,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29731
29731
|
}, S)
|
|
29732
29732
|
]
|
|
29733
29733
|
}),
|
|
29734
|
-
|
|
29735
|
-
ref:
|
|
29734
|
+
LK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29735
|
+
ref: zK,
|
|
29736
29736
|
className: "flex flex-col gap-1",
|
|
29737
29737
|
children: [
|
|
29738
29738
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29759,14 +29759,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29759
29759
|
className: "flex gap-1 mb-1",
|
|
29760
29760
|
children: [
|
|
29761
29761
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29762
|
-
content:
|
|
29762
|
+
content: PK,
|
|
29763
29763
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29764
29764
|
className: "inline-flex",
|
|
29765
29765
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29766
29766
|
type: "submit",
|
|
29767
29767
|
size: "icon",
|
|
29768
29768
|
variant: "ghost",
|
|
29769
|
-
disabled:
|
|
29769
|
+
disabled: $,
|
|
29770
29770
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29771
29771
|
"aria-label": "Apply filter",
|
|
29772
29772
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -29798,7 +29798,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29798
29798
|
size: "icon",
|
|
29799
29799
|
variant: "ghost",
|
|
29800
29800
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
29801
|
-
onClick:
|
|
29801
|
+
onClick: IK,
|
|
29802
29802
|
"aria-label": "Remove filter",
|
|
29803
29803
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
29804
29804
|
className: "h-3.5 w-3.5",
|
|
@@ -33014,6 +33014,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33014
33014
|
}
|
|
33015
33015
|
}, downloadOptions = [
|
|
33016
33016
|
FILE_TYPES.CSV,
|
|
33017
|
+
FILE_TYPES.TSV,
|
|
33017
33018
|
FILE_TYPES.JSON,
|
|
33018
33019
|
FILE_TYPES.PARQUET
|
|
33019
33020
|
], copyOptions = [
|
|
@@ -33021,7 +33022,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33021
33022
|
FILE_TYPES.JSON,
|
|
33022
33023
|
FILE_TYPES.CSV,
|
|
33023
33024
|
FILE_TYPES.MARKDOWN
|
|
33024
|
-
],
|
|
33025
|
+
], COPY_SOURCE_FORMAT = {
|
|
33026
|
+
csv: "csv",
|
|
33027
|
+
tsv: "tsv",
|
|
33028
|
+
json: "json",
|
|
33029
|
+
markdown: "json"
|
|
33030
|
+
}, labelForDownloadFormat = (e) => {
|
|
33025
33031
|
var _a2;
|
|
33026
33032
|
return ((_a2 = downloadOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
33027
33033
|
}, labelForCopyFormat = (e) => {
|
|
@@ -33029,26 +33035,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33029
33035
|
return ((_a2 = copyOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
33030
33036
|
};
|
|
33031
33037
|
const ExportMenu = (e) => {
|
|
33032
|
-
let t = (0, import_compiler_runtime$8.c)(
|
|
33033
|
-
t[0] ===
|
|
33034
|
-
let
|
|
33035
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33038
|
+
let t = (0, import_compiler_runtime$8.c)(55), [n, i] = import_react.useState(false), o = useAtomValue(downloadSizeLimitAtom), s = !!(o && e.sizeBytes != null && e.sizeBytes > o.limitBytes), c = !!(o && (e.sizeBytesIsLoading || s)), d = c ? e.sizeBytesIsLoading ? "Checking download size\u2026" : o == null ? void 0 : o.unavailableMessage : "Export", f = n ? "text-primary" : "text-muted-foreground", _;
|
|
33039
|
+
t[0] === f ? _ = t[1] : (_ = cn("print:hidden text-xs gap-1", f), t[0] = f, t[1] = _);
|
|
33040
|
+
let v;
|
|
33041
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(Download, {
|
|
33036
33042
|
className: "w-3.5 h-3.5"
|
|
33037
|
-
}), t[2] =
|
|
33038
|
-
let
|
|
33039
|
-
t[3] !==
|
|
33043
|
+
}), t[2] = v) : v = t[2];
|
|
33044
|
+
let y;
|
|
33045
|
+
t[3] !== c || t[4] !== _ ? (y = (0, import_jsx_runtime.jsxs)(Button, {
|
|
33040
33046
|
"data-testid": "export-button",
|
|
33041
33047
|
size: "xs",
|
|
33042
33048
|
variant: "text",
|
|
33043
|
-
disabled:
|
|
33044
|
-
className:
|
|
33049
|
+
disabled: c,
|
|
33050
|
+
className: _,
|
|
33045
33051
|
children: [
|
|
33046
|
-
|
|
33052
|
+
v,
|
|
33047
33053
|
"Export"
|
|
33048
33054
|
]
|
|
33049
|
-
}), t[3] =
|
|
33050
|
-
let
|
|
33051
|
-
t[6] === e ?
|
|
33055
|
+
}), t[3] = c, t[4] = _, t[5] = y) : y = t[5];
|
|
33056
|
+
let S = y, O;
|
|
33057
|
+
t[6] === e ? O = t[7] : (O = async (t2, n2) => {
|
|
33052
33058
|
let i2;
|
|
33053
33059
|
try {
|
|
33054
33060
|
i2 = await e.downloadAs({
|
|
@@ -33073,50 +33079,48 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33073
33079
|
url: i2.url,
|
|
33074
33080
|
filename: i2.filename
|
|
33075
33081
|
};
|
|
33076
|
-
}, t[6] = e, t[7] =
|
|
33077
|
-
let
|
|
33078
|
-
if (t[8] !==
|
|
33082
|
+
}, t[6] = e, t[7] = O);
|
|
33083
|
+
let A = O, M, I, z, U, K, q, J, Q, $, PK, FK, IK, LK;
|
|
33084
|
+
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
33079
33085
|
let e2 = async (t2) => {
|
|
33080
33086
|
let n2 = labelForDownloadFormat(t2);
|
|
33081
33087
|
await withLoadingToast(`Preparing ${n2} export...`, async () => {
|
|
33082
|
-
let n3 = await
|
|
33088
|
+
let n3 = await A(t2, () => {
|
|
33083
33089
|
e2(t2);
|
|
33084
33090
|
});
|
|
33085
33091
|
if (!n3) return false;
|
|
33086
|
-
let i2 = (n3.filename ?? "").trim(), a2 = `${Filenames.withoutExtension(i2) || "download"}.${t2}`,
|
|
33087
|
-
if (!
|
|
33088
|
-
let e3 =
|
|
33092
|
+
let i2 = (n3.filename ?? "").trim(), a2 = `${Filenames.withoutExtension(i2) || "download"}.${t2}`, o3 = n3.url;
|
|
33093
|
+
if (!o3.startsWith("data:")) {
|
|
33094
|
+
let e3 = o3.includes("?") ? "&" : "?", t3 = new URLSearchParams({
|
|
33089
33095
|
download: "1",
|
|
33090
33096
|
filename: a2
|
|
33091
33097
|
});
|
|
33092
|
-
|
|
33098
|
+
o3 = `${o3}${e3}${t3.toString()}`;
|
|
33093
33099
|
}
|
|
33094
|
-
return downloadByURL(
|
|
33100
|
+
return downloadByURL(o3, a2), true;
|
|
33095
33101
|
}) && toast({
|
|
33096
33102
|
title: `${n2} download started`
|
|
33097
33103
|
});
|
|
33098
33104
|
}, a = async (e3) => {
|
|
33099
33105
|
await withLoadingToast(`Preparing ${labelForCopyFormat(e3)} for clipboard...`, async () => {
|
|
33100
|
-
let t2 =
|
|
33106
|
+
let t2 = COPY_SOURCE_FORMAT[e3], n2 = await A(t2, () => {
|
|
33101
33107
|
a(e3);
|
|
33102
33108
|
});
|
|
33103
|
-
if (!
|
|
33109
|
+
if (!n2) return;
|
|
33104
33110
|
let i2;
|
|
33105
|
-
|
|
33111
|
+
bb94: switch (e3) {
|
|
33106
33112
|
case "tsv":
|
|
33107
|
-
|
|
33108
|
-
|
|
33113
|
+
case "csv":
|
|
33114
|
+
i2 = await fetchText(n2.url);
|
|
33115
|
+
break bb94;
|
|
33109
33116
|
case "json": {
|
|
33110
|
-
let e4 = await fetchJson(
|
|
33117
|
+
let e4 = await fetchJson(n2.url);
|
|
33111
33118
|
i2 = JSON.stringify(e4, null, 2);
|
|
33112
|
-
break
|
|
33119
|
+
break bb94;
|
|
33113
33120
|
}
|
|
33114
|
-
case "csv":
|
|
33115
|
-
i2 = await fetchText(t2.url);
|
|
33116
|
-
break bb98;
|
|
33117
33121
|
case "markdown":
|
|
33118
|
-
i2 = jsonToMarkdown(await fetchJson(
|
|
33119
|
-
break
|
|
33122
|
+
i2 = jsonToMarkdown(await fetchJson(n2.url));
|
|
33123
|
+
break bb94;
|
|
33120
33124
|
default:
|
|
33121
33125
|
logNever(e3);
|
|
33122
33126
|
return;
|
|
@@ -33126,26 +33130,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33126
33130
|
});
|
|
33127
33131
|
});
|
|
33128
33132
|
};
|
|
33129
|
-
|
|
33130
|
-
let
|
|
33131
|
-
t[
|
|
33132
|
-
tabIndex:
|
|
33133
|
+
I = DropdownMenu, K = false, q = n, J = i;
|
|
33134
|
+
let o2 = n ? false : void 0, s2 = c ? 0 : -1, f2;
|
|
33135
|
+
t[26] !== S || t[27] !== s2 ? (f2 = (0, import_jsx_runtime.jsx)("span", {
|
|
33136
|
+
tabIndex: s2,
|
|
33133
33137
|
className: "inline-flex",
|
|
33134
|
-
children:
|
|
33135
|
-
}), t[
|
|
33136
|
-
let
|
|
33137
|
-
t[
|
|
33138
|
+
children: S
|
|
33139
|
+
}), t[26] = S, t[27] = s2, t[28] = f2) : f2 = t[28];
|
|
33140
|
+
let h;
|
|
33141
|
+
t[29] !== c || t[30] !== f2 ? (h = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33138
33142
|
asChild: true,
|
|
33139
|
-
disabled:
|
|
33143
|
+
disabled: c,
|
|
33144
|
+
children: f2
|
|
33145
|
+
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? (Q = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33146
|
+
content: d,
|
|
33147
|
+
open: o2,
|
|
33140
33148
|
children: h
|
|
33141
|
-
}), t[
|
|
33142
|
-
content: f,
|
|
33143
|
-
open: s2,
|
|
33144
|
-
children: _2
|
|
33145
|
-
}), t[33] = s2, t[34] = _2, t[35] = f, t[36] = $) : $ = t[36], I = DropdownMenuContent, PK = "bottom", FK = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (IK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33149
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", PK = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33146
33150
|
className: "text-xs text-muted-foreground",
|
|
33147
33151
|
children: "Download"
|
|
33148
|
-
}), t[
|
|
33152
|
+
}), t[36] = FK) : FK = t[36], IK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33149
33153
|
onSelect: () => {
|
|
33150
33154
|
e2(t2.format);
|
|
33151
33155
|
},
|
|
@@ -33166,10 +33170,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33166
33170
|
]
|
|
33167
33171
|
})
|
|
33168
33172
|
]
|
|
33169
|
-
}, t2.label)), t[
|
|
33173
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33170
33174
|
className: "text-xs text-muted-foreground",
|
|
33171
33175
|
children: "Copy to clipboard"
|
|
33172
|
-
}), t[
|
|
33176
|
+
}), t[37] = z, t[38] = LK) : (z = t[37], LK = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33173
33177
|
onSelect: async () => {
|
|
33174
33178
|
try {
|
|
33175
33179
|
await a(e3.format);
|
|
@@ -33198,30 +33202,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33198
33202
|
]
|
|
33199
33203
|
})
|
|
33200
33204
|
]
|
|
33201
|
-
}, e3.label)), t[8] =
|
|
33202
|
-
} else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], PK = t[22], FK = t[23], IK = t[24], LK = t[25]
|
|
33203
|
-
let
|
|
33204
|
-
t[40] !==
|
|
33205
|
-
side:
|
|
33206
|
-
className:
|
|
33205
|
+
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = PK, t[23] = FK, t[24] = IK, t[25] = LK;
|
|
33206
|
+
} else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], PK = t[22], FK = t[23], IK = t[24], LK = t[25];
|
|
33207
|
+
let RK;
|
|
33208
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== PK || t[44] !== FK || t[45] !== IK || t[46] !== LK ? (RK = (0, import_jsx_runtime.jsxs)(M, {
|
|
33209
|
+
side: $,
|
|
33210
|
+
className: PK,
|
|
33207
33211
|
children: [
|
|
33212
|
+
FK,
|
|
33208
33213
|
IK,
|
|
33209
33214
|
LK,
|
|
33210
|
-
|
|
33211
|
-
U
|
|
33212
|
-
K
|
|
33215
|
+
z,
|
|
33216
|
+
U
|
|
33213
33217
|
]
|
|
33214
|
-
}), t[40] =
|
|
33215
|
-
let
|
|
33216
|
-
return t[
|
|
33217
|
-
modal:
|
|
33218
|
-
open:
|
|
33219
|
-
onOpenChange:
|
|
33218
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = PK, t[44] = FK, t[45] = IK, t[46] = LK, t[47] = RK) : RK = t[47];
|
|
33219
|
+
let zK;
|
|
33220
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== RK ? (zK = (0, import_jsx_runtime.jsxs)(I, {
|
|
33221
|
+
modal: K,
|
|
33222
|
+
open: q,
|
|
33223
|
+
onOpenChange: J,
|
|
33220
33224
|
children: [
|
|
33221
|
-
|
|
33222
|
-
|
|
33225
|
+
Q,
|
|
33226
|
+
RK
|
|
33223
33227
|
]
|
|
33224
|
-
}), t[49] =
|
|
33228
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = RK, t[54] = zK) : zK = t[54], zK;
|
|
33225
33229
|
};
|
|
33226
33230
|
function fetchJson(e) {
|
|
33227
33231
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33582,9 +33586,9 @@ ${d}`,
|
|
|
33582
33586
|
triggerImmediately: e2
|
|
33583
33587
|
});
|
|
33584
33588
|
}, t[12] = d, t[13] = n, t[14] = U) : U = t[14];
|
|
33585
|
-
let
|
|
33586
|
-
t[15] === I ?
|
|
33587
|
-
let
|
|
33589
|
+
let q = U, J;
|
|
33590
|
+
t[15] === I ? J = t[16] : (J = () => z(!I), t[15] = I, t[16] = J);
|
|
33591
|
+
let Q = I ? "Collapse traceback" : "Expand traceback", $;
|
|
33588
33592
|
t[17] === I ? $ = t[18] : ($ = I ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33589
33593
|
className: "h-3 w-3"
|
|
33590
33594
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
@@ -33596,28 +33600,28 @@ ${d}`,
|
|
|
33596
33600
|
children: "Traceback"
|
|
33597
33601
|
}), t[19] = FK) : FK = t[19];
|
|
33598
33602
|
let IK;
|
|
33599
|
-
t[20] !== I || t[21] !==
|
|
33603
|
+
t[20] !== I || t[21] !== J || t[22] !== Q || t[23] !== $ ? (IK = (0, import_jsx_runtime.jsxs)("button", {
|
|
33600
33604
|
type: "button",
|
|
33601
|
-
onClick:
|
|
33605
|
+
onClick: J,
|
|
33602
33606
|
"aria-expanded": I,
|
|
33603
|
-
"aria-label":
|
|
33607
|
+
"aria-label": Q,
|
|
33604
33608
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
33605
33609
|
children: [
|
|
33606
33610
|
$,
|
|
33607
33611
|
FK
|
|
33608
33612
|
]
|
|
33609
|
-
}), t[20] = I, t[21] =
|
|
33613
|
+
}), t[20] = I, t[21] = J, t[22] = Q, t[23] = $, t[24] = IK) : IK = t[24];
|
|
33610
33614
|
let LK;
|
|
33611
33615
|
t[25] !== s || t[26] !== I ? (LK = I && (0, import_jsx_runtime.jsx)("div", {
|
|
33612
33616
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
33613
33617
|
children: s
|
|
33614
33618
|
}), t[25] = s, t[26] = I, t[27] = LK) : LK = t[27];
|
|
33615
33619
|
let RK;
|
|
33616
|
-
t[28] !==
|
|
33620
|
+
t[28] !== q || t[29] !== A ? (RK = A && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33617
33621
|
tooltip: "Fix with AI",
|
|
33618
|
-
openPrompt: () =>
|
|
33619
|
-
applyAutofix: () =>
|
|
33620
|
-
}), t[28] =
|
|
33622
|
+
openPrompt: () => q(false),
|
|
33623
|
+
applyAutofix: () => q(true)
|
|
33624
|
+
}), t[28] = q, t[29] = A, t[30] = RK) : RK = t[30];
|
|
33621
33625
|
let zK;
|
|
33622
33626
|
t[31] !== w || t[32] !== v ? (zK = w && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33623
33627
|
content: "Attach pdb to the exception point.",
|
|
@@ -35116,7 +35120,7 @@ ${d}`,
|
|
|
35116
35120
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
35117
35121
|
}
|
|
35118
35122
|
}
|
|
35119
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
35123
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev37");
|
|
35120
35124
|
showCodeInRunModeAtom = atom(true);
|
|
35121
35125
|
atom(null);
|
|
35122
35126
|
var import_compiler_runtime = require_compiler_runtime();
|