@marimo-team/islands 0.23.15-dev31 → 0.23.15-dev32
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/assets/__vite-browser-external-CjNAy01L.js +1 -0
- package/dist/assets/worker-B3XPCb6y.js +98 -0
- package/dist/{chat-ui-CbyDW7Rb.js → chat-ui-C0wkSwxB.js} +33 -33
- package/dist/{code-visibility-M6TuquZp.js → code-visibility-CEHWVGz1.js} +162 -162
- package/dist/{html-to-image-CtsZpKdg.js → html-to-image-D8Q5SLSJ.js} +119 -118
- package/dist/main.js +1178 -1075
- package/dist/{process-output-DApSJpc6.js → process-output-C_A12w9J.js} +1 -1
- package/dist/{reveal-component-CV1WyDIM.js → reveal-component-kLDhMoa2.js} +2 -2
- package/package.json +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +341 -46
- package/src/core/islands/__tests__/parse.test.ts +105 -0
- package/src/core/islands/bootstrap.ts +8 -3
- package/src/core/islands/bridge.ts +116 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +214 -0
- package/src/core/islands/components/web-components.tsx +76 -15
- package/src/core/islands/constants.ts +1 -0
- package/src/core/islands/main.ts +35 -3
- package/src/core/islands/parse.ts +70 -23
- package/src/core/islands/worker/__tests__/controller.test.ts +173 -0
- package/src/core/islands/worker/worker.tsx +145 -57
- package/src/core/wasm/worker/bootstrap.ts +113 -20
- package/dist/assets/__vite-browser-external-BQCLNwri.js +0 -1
- package/dist/assets/worker-DAWRHcPq.js +0 -73
|
@@ -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 { $n as import_lib, An as Close$1, At as toggleBreakpoint, B as isDataURLString, Bn as Minus, C as Accordion, Dn as atomWithStorage, E as AccordionTrigger, Fn as Wrench, Ft as useChromeActions, Gn as Eye, Gt as DATA_TYPE_ICON, H as renderHTML, In as Trash2, It as adaptForLocalStorage, J as getCellEditorView, Kn as ExternalLink, Kt as getDataTypeColor, L as base64ToUint8Array, Lt as jotaiJsonStorage, M as DotFilledIcon, Mt as goToCellLine, N as PinLeftIcon, P as PinRightIcon, Q as notebookAtom, Qn as esm_default, Qt as getRequestClient, T as AccordionItem, Tn as jsonToMarkdown, Un as Info, Ut as PluralWord, Vn as LoaderCircle, Wn as FileText, Yn as CircleX, Zn as Braces, _ as getDatasourceContext, _n as CellOutputId, _t as sanitizeHtml, bt as displayCellName, c as Popover, cn as elementContainsMarimoCellFile, ct as AnsiUp, d as PopoverTrigger, dt as kioskModeAtom, en as useRequestClient, ft as useInstallAllowed, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, ln as extractAllTracebackInfo, m as useExpandedOutput, mt as outputIsLoading, n as Spinner, nt as useCellActions, pn as filenameAtom, pt as viewStateAtom, r as MarkdownRenderer, rt as useCellIds, t as toPng, u as PopoverContent, un as getTracebackInfo, vn as HTMLCellId, vt as DATA_CELL_ID, w as AccordionContent, wn as jsonParseWithSpecialChar, wt as Checkbox, yn as SCRATCH_CELL_ID, yt as getCellDomProps, z as extractBase64FromDataURL, zn as NotebookPen, zt as getFeatureFlag, __tla as __tla_0 } from "./html-to-image-D8Q5SLSJ.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-C6wHjkhW.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";
|
|
@@ -20120,18 +20120,18 @@ ${n}` : "Please fix this error.";
|
|
|
20120
20120
|
}
|
|
20121
20121
|
let y, S, w, E, O, A;
|
|
20122
20122
|
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) {
|
|
20123
|
-
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),
|
|
20124
|
-
t[17] === s ?
|
|
20123
|
+
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), rJ = n.filter(_temp16), iJ = n.filter(_temp17), aJ = n.filter(_temp18), oJ;
|
|
20124
|
+
t[17] === s ? oJ = t[18] : (oJ = () => {
|
|
20125
20125
|
s.openApplication("scratchpad");
|
|
20126
|
-
}, t[17] = s, t[18] =
|
|
20127
|
-
let
|
|
20126
|
+
}, t[17] = s, t[18] = oJ);
|
|
20127
|
+
let sJ = oJ, cJ = () => {
|
|
20128
20128
|
let t2 = [];
|
|
20129
|
-
if (
|
|
20130
|
-
let e3 =
|
|
20129
|
+
if (rJ.length > 0 || iJ.length > 0) {
|
|
20130
|
+
let e3 = rJ.some(_temp19), n2 = !e3 && rJ.some(_temp20);
|
|
20131
20131
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20132
20132
|
children: [
|
|
20133
|
-
|
|
20134
|
-
|
|
20133
|
+
rJ.map(_temp21),
|
|
20134
|
+
iJ.map(_temp22),
|
|
20135
20135
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20136
20136
|
size: "xs",
|
|
20137
20137
|
variant: "outline",
|
|
@@ -20162,8 +20162,8 @@ ${n}` : "Please fix this error.";
|
|
|
20162
20162
|
}),
|
|
20163
20163
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20164
20164
|
errors: [
|
|
20165
|
-
...
|
|
20166
|
-
...
|
|
20165
|
+
...rJ,
|
|
20166
|
+
...iJ
|
|
20167
20167
|
],
|
|
20168
20168
|
cellId: i
|
|
20169
20169
|
})
|
|
@@ -20324,7 +20324,7 @@ ${n}` : "Please fix this error.";
|
|
|
20324
20324
|
size: "xs",
|
|
20325
20325
|
variant: "link",
|
|
20326
20326
|
className: "my-2 font-normal mx-0 px-0",
|
|
20327
|
-
onClick:
|
|
20327
|
+
onClick: sJ,
|
|
20328
20328
|
children: [
|
|
20329
20329
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20330
20330
|
className: "h-3"
|
|
@@ -20507,34 +20507,34 @@ ${n}` : "Please fix this error.";
|
|
|
20507
20507
|
cellId: i
|
|
20508
20508
|
})
|
|
20509
20509
|
]
|
|
20510
|
-
}, "internal")),
|
|
20510
|
+
}, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20511
20511
|
children: [
|
|
20512
|
-
|
|
20512
|
+
Q.map(_temp33),
|
|
20513
20513
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20514
|
-
errors:
|
|
20514
|
+
errors: Q,
|
|
20515
20515
|
cellId: i
|
|
20516
20516
|
})
|
|
20517
20517
|
]
|
|
20518
|
-
}, "ancestor-prevented")),
|
|
20518
|
+
}, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20519
20519
|
children: [
|
|
20520
|
-
|
|
20520
|
+
$.map(_temp34),
|
|
20521
20521
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20522
|
-
errors:
|
|
20522
|
+
errors: $,
|
|
20523
20523
|
cellId: i
|
|
20524
20524
|
})
|
|
20525
20525
|
]
|
|
20526
|
-
}, "ancestor-stopped")),
|
|
20526
|
+
}, "ancestor-stopped")), aJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20527
20527
|
children: [
|
|
20528
|
-
|
|
20528
|
+
aJ.map(_temp35),
|
|
20529
20529
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20530
|
-
errors:
|
|
20530
|
+
errors: aJ,
|
|
20531
20531
|
cellId: i,
|
|
20532
20532
|
className: "mt-2.5"
|
|
20533
20533
|
})
|
|
20534
20534
|
]
|
|
20535
20535
|
}, "sql-errors")), t2;
|
|
20536
|
-
},
|
|
20537
|
-
t[19] === v ?
|
|
20536
|
+
}, lJ;
|
|
20537
|
+
t[19] === v ? lJ = t[20] : (lJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20538
20538
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20539
20539
|
children: [
|
|
20540
20540
|
v,
|
|
@@ -20546,22 +20546,22 @@ ${n}` : "Please fix this error.";
|
|
|
20546
20546
|
})
|
|
20547
20547
|
})
|
|
20548
20548
|
]
|
|
20549
|
-
}), t[19] = v, t[20] =
|
|
20550
|
-
let
|
|
20551
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20549
|
+
}), t[19] = v, t[20] = lJ);
|
|
20550
|
+
let uJ;
|
|
20551
|
+
t[21] !== _ || t[22] !== d ? (uJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20552
20552
|
className: `font-code font-medium ${_}`,
|
|
20553
20553
|
children: d
|
|
20554
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20555
|
-
let
|
|
20556
|
-
t[24] !==
|
|
20554
|
+
}), t[21] = _, t[22] = d, t[23] = uJ) : uJ = t[23];
|
|
20555
|
+
let dJ;
|
|
20556
|
+
t[24] !== lJ || t[25] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20557
20557
|
className: "space-y-0.5",
|
|
20558
20558
|
children: [
|
|
20559
|
-
|
|
20560
|
-
|
|
20559
|
+
lJ,
|
|
20560
|
+
uJ
|
|
20561
20561
|
]
|
|
20562
|
-
}), t[24] =
|
|
20563
|
-
let
|
|
20564
|
-
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 =
|
|
20562
|
+
}), t[24] = lJ, t[25] = uJ, t[26] = dJ) : dJ = t[26];
|
|
20563
|
+
let fJ = dJ;
|
|
20564
|
+
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 = fJ, S = "flex flex-col gap-4", w = cJ(), 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;
|
|
20565
20565
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20566
20566
|
let M;
|
|
20567
20567
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -28715,89 +28715,89 @@ ${n}` : "Please fix this error.";
|
|
|
28715
28715
|
isSelected: vJ,
|
|
28716
28716
|
onSelect: bJ
|
|
28717
28717
|
}, t[49] = bJ, t[50] = vJ, t[51] = CJ) : CJ = t[51];
|
|
28718
|
-
let wJ = CJ,
|
|
28719
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28720
|
-
let
|
|
28721
|
-
t[53] !== sJ || t[54] !== dJ ? (
|
|
28718
|
+
let wJ = CJ, EJ;
|
|
28719
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (EJ = cn("relative"), t[52] = EJ) : EJ = t[52];
|
|
28720
|
+
let DJ;
|
|
28721
|
+
t[53] !== sJ || t[54] !== dJ ? (DJ = (e2) => {
|
|
28722
28722
|
sJ && e2 || dJ(e2);
|
|
28723
|
-
}, t[53] = sJ, t[54] = dJ, t[55] =
|
|
28724
|
-
let
|
|
28725
|
-
t[56] !== o || t[57] !==
|
|
28726
|
-
let kJ;
|
|
28727
|
-
t[59] !== O || t[60] !== SJ || t[61] !== hJ ? (kJ = O ? O(hJ ?? null) : SJ(), t[59] = O, t[60] = SJ, t[61] = hJ, t[62] = kJ) : kJ = t[62];
|
|
28723
|
+
}, t[53] = sJ, t[54] = dJ, t[55] = DJ) : DJ = t[55];
|
|
28724
|
+
let OJ = sJ && "cursor-not-allowed opacity-50", kJ;
|
|
28725
|
+
t[56] !== o || t[57] !== OJ ? (kJ = 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", OJ, o), t[56] = o, t[57] = OJ, t[58] = kJ) : kJ = t[58];
|
|
28728
28726
|
let AJ;
|
|
28729
|
-
t[
|
|
28727
|
+
t[59] !== O || t[60] !== SJ || t[61] !== hJ ? (AJ = O ? O(hJ ?? null) : SJ(), t[59] = O, t[60] = SJ, t[61] = hJ, t[62] = AJ) : AJ = t[62];
|
|
28728
|
+
let MJ;
|
|
28729
|
+
t[63] === AJ ? MJ = t[64] : (MJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28730
28730
|
className: "truncate flex-1 min-w-0",
|
|
28731
|
-
children:
|
|
28732
|
-
}), t[63] =
|
|
28733
|
-
let jJ;
|
|
28734
|
-
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28735
|
-
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28736
|
-
}), t[65] = jJ) : jJ = t[65];
|
|
28731
|
+
children: AJ
|
|
28732
|
+
}), t[63] = AJ, t[64] = MJ);
|
|
28737
28733
|
let NJ;
|
|
28738
|
-
t[
|
|
28734
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28735
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28736
|
+
}), t[65] = NJ) : NJ = t[65];
|
|
28737
|
+
let FJ;
|
|
28738
|
+
t[66] !== sJ || t[67] !== h || t[68] !== fJ || t[69] !== kJ || t[70] !== MJ ? (FJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28739
28739
|
asChild: true,
|
|
28740
28740
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28741
28741
|
id: h,
|
|
28742
28742
|
type: "button",
|
|
28743
|
-
className:
|
|
28743
|
+
className: kJ,
|
|
28744
28744
|
"aria-expanded": fJ,
|
|
28745
28745
|
"aria-disabled": sJ,
|
|
28746
28746
|
children: [
|
|
28747
|
-
|
|
28748
|
-
|
|
28747
|
+
MJ,
|
|
28748
|
+
NJ
|
|
28749
28749
|
]
|
|
28750
28750
|
})
|
|
28751
|
-
}), t[66] = sJ, t[67] = h, t[68] = fJ, t[69] =
|
|
28752
|
-
let
|
|
28753
|
-
t[72] !== iJ || t[73] !== y || t[74] !== M ? (
|
|
28751
|
+
}), t[66] = sJ, t[67] = h, t[68] = fJ, t[69] = kJ, t[70] = MJ, t[71] = FJ) : FJ = t[71];
|
|
28752
|
+
let IJ;
|
|
28753
|
+
t[72] !== iJ || t[73] !== y || t[74] !== M ? (IJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28754
28754
|
placeholder: iJ,
|
|
28755
28755
|
rootClassName: "px-1 h-8",
|
|
28756
28756
|
autoFocus: true,
|
|
28757
28757
|
value: M,
|
|
28758
28758
|
onValueChange: y
|
|
28759
|
-
}), t[72] = iJ, t[73] = y, t[74] = M, t[75] =
|
|
28760
|
-
let IJ;
|
|
28761
|
-
t[76] === aJ ? IJ = t[77] : (IJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28762
|
-
children: aJ
|
|
28763
|
-
}), t[76] = aJ, t[77] = IJ);
|
|
28759
|
+
}), t[72] = iJ, t[73] = y, t[74] = M, t[75] = IJ) : IJ = t[75];
|
|
28764
28760
|
let LJ;
|
|
28765
|
-
t[
|
|
28761
|
+
t[76] === aJ ? LJ = t[77] : (LJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28762
|
+
children: aJ
|
|
28763
|
+
}), t[76] = aJ, t[77] = LJ);
|
|
28764
|
+
let RJ;
|
|
28765
|
+
t[78] !== n || t[79] !== wJ ? (RJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28766
28766
|
value: wJ,
|
|
28767
28767
|
children: n
|
|
28768
|
-
}), t[78] = n, t[79] = wJ, t[80] =
|
|
28769
|
-
let
|
|
28770
|
-
t[81] !==
|
|
28768
|
+
}), t[78] = n, t[79] = wJ, t[80] = RJ) : RJ = t[80];
|
|
28769
|
+
let zJ;
|
|
28770
|
+
t[81] !== LJ || t[82] !== RJ ? (zJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28771
28771
|
className: "max-h-60 py-.5",
|
|
28772
28772
|
children: [
|
|
28773
|
-
|
|
28774
|
-
|
|
28773
|
+
LJ,
|
|
28774
|
+
RJ
|
|
28775
28775
|
]
|
|
28776
|
-
}), t[81] =
|
|
28777
|
-
let
|
|
28778
|
-
t[84] !== f || t[85] !== rJ || t[86] !==
|
|
28776
|
+
}), t[81] = LJ, t[82] = RJ, t[83] = zJ) : zJ = t[83];
|
|
28777
|
+
let BJ;
|
|
28778
|
+
t[84] !== f || t[85] !== rJ || t[86] !== IJ || t[87] !== zJ ? (BJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28779
28779
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28780
28780
|
align: "start",
|
|
28781
28781
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28782
28782
|
filter: f,
|
|
28783
28783
|
shouldFilter: rJ,
|
|
28784
28784
|
children: [
|
|
28785
|
-
|
|
28786
|
-
|
|
28785
|
+
IJ,
|
|
28786
|
+
zJ
|
|
28787
28787
|
]
|
|
28788
28788
|
})
|
|
28789
|
-
}), t[84] = f, t[85] = rJ, t[86] =
|
|
28790
|
-
let
|
|
28791
|
-
t[89] !== fJ || t[90] !==
|
|
28789
|
+
}), t[84] = f, t[85] = rJ, t[86] = IJ, t[87] = zJ, t[88] = BJ) : BJ = t[88];
|
|
28790
|
+
let VJ;
|
|
28791
|
+
t[89] !== fJ || t[90] !== DJ || t[91] !== FJ || t[92] !== BJ ? (VJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28792
28792
|
open: fJ,
|
|
28793
|
-
onOpenChange:
|
|
28793
|
+
onOpenChange: DJ,
|
|
28794
28794
|
children: [
|
|
28795
|
-
|
|
28796
|
-
|
|
28795
|
+
FJ,
|
|
28796
|
+
BJ
|
|
28797
28797
|
]
|
|
28798
|
-
}), t[89] = fJ, t[90] =
|
|
28799
|
-
let
|
|
28800
|
-
t[94] !== oJ || t[95] !== i || t[96] !== sJ || t[97] !== d || t[98] !== bJ || t[99] !== $ || t[100] !== hJ ? (
|
|
28798
|
+
}), t[89] = fJ, t[90] = DJ, t[91] = FJ, t[92] = BJ, t[93] = VJ) : VJ = t[93];
|
|
28799
|
+
let HJ;
|
|
28800
|
+
t[94] !== oJ || t[95] !== i || t[96] !== sJ || t[97] !== d || t[98] !== bJ || t[99] !== $ || t[100] !== hJ ? (HJ = $ && oJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28801
28801
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28802
28802
|
children: Array.isArray(hJ) && hJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28803
28803
|
variant: "secondary",
|
|
@@ -28811,16 +28811,16 @@ ${n}` : "Please fix this error.";
|
|
|
28811
28811
|
})
|
|
28812
28812
|
]
|
|
28813
28813
|
}, String(e2)))
|
|
28814
|
-
}), t[94] = oJ, t[95] = i, t[96] = sJ, t[97] = d, t[98] = bJ, t[99] = $, t[100] = hJ, t[101] =
|
|
28815
|
-
let
|
|
28816
|
-
return t[102] !== A || t[103] !==
|
|
28817
|
-
className:
|
|
28814
|
+
}), t[94] = oJ, t[95] = i, t[96] = sJ, t[97] = d, t[98] = bJ, t[99] = $, t[100] = hJ, t[101] = HJ) : HJ = t[101];
|
|
28815
|
+
let UJ;
|
|
28816
|
+
return t[102] !== A || t[103] !== VJ || t[104] !== HJ ? (UJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28817
|
+
className: EJ,
|
|
28818
28818
|
...A,
|
|
28819
28819
|
children: [
|
|
28820
|
-
|
|
28821
|
-
|
|
28820
|
+
VJ,
|
|
28821
|
+
HJ
|
|
28822
28822
|
]
|
|
28823
|
-
}), t[102] = A, t[103] =
|
|
28823
|
+
}), t[102] = A, t[103] = VJ, t[104] = HJ, t[105] = UJ) : UJ = t[105], UJ;
|
|
28824
28824
|
};
|
|
28825
28825
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28826
28826
|
let n = (0, import_compiler_runtime$35.c)(20), { 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), _;
|
|
@@ -30259,13 +30259,13 @@ ${n}` : "Please fix this error.";
|
|
|
30259
30259
|
value: e2
|
|
30260
30260
|
}, n2;
|
|
30261
30261
|
}), i();
|
|
30262
|
-
},
|
|
30262
|
+
}, oJ = () => {
|
|
30263
30263
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30264
|
-
},
|
|
30264
|
+
}, sJ = !OPERATORS_WITHOUT_VALUE.has(E), cJ = OPERATORS_BY_TYPE[S], lJ = (0, import_react.useRef)(null), uJ = (0, import_react.useRef)(null);
|
|
30265
30265
|
return (0, import_react.useEffect)(() => {
|
|
30266
30266
|
var _a2, _b;
|
|
30267
|
-
let e2 = (_a2 =
|
|
30268
|
-
e2 ? e2.focus() : (_b =
|
|
30267
|
+
let e2 = (_a2 = lJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30268
|
+
e2 ? e2.focus() : (_b = uJ.current) == null ? void 0 : _b.focus();
|
|
30269
30269
|
}, [
|
|
30270
30270
|
S,
|
|
30271
30271
|
E
|
|
@@ -30313,13 +30313,13 @@ ${n}` : "Please fix this error.";
|
|
|
30313
30313
|
onValueChange: (e2) => J(e2),
|
|
30314
30314
|
children: [
|
|
30315
30315
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30316
|
-
ref:
|
|
30316
|
+
ref: uJ,
|
|
30317
30317
|
id: s,
|
|
30318
30318
|
className: "h-6 mb-1 bg-transparent",
|
|
30319
30319
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30320
30320
|
}),
|
|
30321
30321
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30322
|
-
children:
|
|
30322
|
+
children: cJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30323
30323
|
value: e2,
|
|
30324
30324
|
children: OPERATOR_LABELS[e2]
|
|
30325
30325
|
}, e2))
|
|
@@ -30328,8 +30328,8 @@ ${n}` : "Please fix this error.";
|
|
|
30328
30328
|
}, S)
|
|
30329
30329
|
]
|
|
30330
30330
|
}),
|
|
30331
|
-
|
|
30332
|
-
ref:
|
|
30331
|
+
sJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30332
|
+
ref: lJ,
|
|
30333
30333
|
className: "flex flex-col gap-1",
|
|
30334
30334
|
children: [
|
|
30335
30335
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30395,7 +30395,7 @@ ${n}` : "Please fix this error.";
|
|
|
30395
30395
|
size: "icon",
|
|
30396
30396
|
variant: "ghost",
|
|
30397
30397
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30398
|
-
onClick:
|
|
30398
|
+
onClick: oJ,
|
|
30399
30399
|
"aria-label": "Remove filter",
|
|
30400
30400
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30401
30401
|
className: "h-3.5 w-3.5",
|
|
@@ -34063,7 +34063,7 @@ ${n}` : "Please fix this error.";
|
|
|
34063
34063
|
filename: i2.filename
|
|
34064
34064
|
};
|
|
34065
34065
|
}, t[6] = e, t[7] = O);
|
|
34066
|
-
let A = O, M, z, U, K, q, J, Q, $, rJ, iJ, aJ, oJ
|
|
34066
|
+
let A = O, M, I, z, U, K, q, J, Q, $, rJ, iJ, aJ, oJ;
|
|
34067
34067
|
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34068
34068
|
let e2 = async (t2) => {
|
|
34069
34069
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34113,7 +34113,7 @@ ${n}` : "Please fix this error.";
|
|
|
34113
34113
|
});
|
|
34114
34114
|
});
|
|
34115
34115
|
};
|
|
34116
|
-
|
|
34116
|
+
I = DropdownMenu, K = false, q = n, J = i;
|
|
34117
34117
|
let o2 = n ? false : void 0, s2 = c ? 0 : -1, f2;
|
|
34118
34118
|
t[26] !== S || t[27] !== s2 ? (f2 = (0, import_jsx_runtime.jsx)("span", {
|
|
34119
34119
|
tabIndex: s2,
|
|
@@ -34125,14 +34125,14 @@ ${n}` : "Please fix this error.";
|
|
|
34125
34125
|
asChild: true,
|
|
34126
34126
|
disabled: c,
|
|
34127
34127
|
children: f2
|
|
34128
|
-
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? (
|
|
34128
|
+
}), 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, {
|
|
34129
34129
|
content: d,
|
|
34130
34130
|
open: o2,
|
|
34131
34131
|
children: h
|
|
34132
|
-
}), t[32] = o2, t[33] = h, t[34] = d, t[35] =
|
|
34132
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", rJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34133
34133
|
className: "text-xs text-muted-foreground",
|
|
34134
34134
|
children: "Download"
|
|
34135
|
-
}), t[36] =
|
|
34135
|
+
}), t[36] = iJ) : iJ = t[36], aJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34136
34136
|
onSelect: () => {
|
|
34137
34137
|
e2(t2.format);
|
|
34138
34138
|
},
|
|
@@ -34153,10 +34153,10 @@ ${n}` : "Please fix this error.";
|
|
|
34153
34153
|
]
|
|
34154
34154
|
})
|
|
34155
34155
|
]
|
|
34156
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34156
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34157
34157
|
className: "text-xs text-muted-foreground",
|
|
34158
34158
|
children: "Copy to clipboard"
|
|
34159
|
-
}), t[37] =
|
|
34159
|
+
}), t[37] = z, t[38] = oJ) : (z = t[37], oJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34160
34160
|
onSelect: async () => {
|
|
34161
34161
|
try {
|
|
34162
34162
|
await a(e3.format);
|
|
@@ -34185,30 +34185,30 @@ ${n}` : "Please fix this error.";
|
|
|
34185
34185
|
]
|
|
34186
34186
|
})
|
|
34187
34187
|
]
|
|
34188
|
-
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] =
|
|
34189
|
-
} else M = t[13],
|
|
34190
|
-
let
|
|
34191
|
-
t[39] !== M || t[40] !==
|
|
34192
|
-
side:
|
|
34193
|
-
className:
|
|
34188
|
+
}, 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] = rJ, t[23] = iJ, t[24] = aJ, t[25] = oJ;
|
|
34189
|
+
} 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], rJ = t[22], iJ = t[23], aJ = t[24], oJ = t[25];
|
|
34190
|
+
let sJ;
|
|
34191
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== rJ || t[44] !== iJ || t[45] !== aJ || t[46] !== oJ ? (sJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34192
|
+
side: $,
|
|
34193
|
+
className: rJ,
|
|
34194
34194
|
children: [
|
|
34195
|
+
iJ,
|
|
34195
34196
|
aJ,
|
|
34196
34197
|
oJ,
|
|
34197
|
-
|
|
34198
|
-
U
|
|
34199
|
-
K
|
|
34198
|
+
z,
|
|
34199
|
+
U
|
|
34200
34200
|
]
|
|
34201
|
-
}), t[39] = M, t[40] =
|
|
34202
|
-
let
|
|
34203
|
-
return t[48] !==
|
|
34204
|
-
modal:
|
|
34205
|
-
open:
|
|
34206
|
-
onOpenChange:
|
|
34201
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = rJ, t[44] = iJ, t[45] = aJ, t[46] = oJ, t[47] = sJ) : sJ = t[47];
|
|
34202
|
+
let cJ;
|
|
34203
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34204
|
+
modal: K,
|
|
34205
|
+
open: q,
|
|
34206
|
+
onOpenChange: J,
|
|
34207
34207
|
children: [
|
|
34208
|
-
|
|
34209
|
-
|
|
34208
|
+
Q,
|
|
34209
|
+
sJ
|
|
34210
34210
|
]
|
|
34211
|
-
}), t[48] =
|
|
34211
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = sJ, t[54] = cJ) : cJ = t[54], cJ;
|
|
34212
34212
|
};
|
|
34213
34213
|
function fetchJson(e) {
|
|
34214
34214
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34564,24 +34564,24 @@ ${n}` : "Please fix this error.";
|
|
|
34564
34564
|
t[6] !== a || t[7] !== y ? (w = y && y.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = y, t[8] = w) : w = t[8];
|
|
34565
34565
|
let O = w, A;
|
|
34566
34566
|
t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
|
|
34567
|
-
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true),
|
|
34568
|
-
t[12] !== d || t[13] !== n ? (
|
|
34567
|
+
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
|
|
34568
|
+
t[12] !== d || t[13] !== n ? (K = (e2) => {
|
|
34569
34569
|
n == null ? void 0 : n({
|
|
34570
34570
|
prompt: `My code gives the following error:
|
|
34571
34571
|
|
|
34572
34572
|
${d}`,
|
|
34573
34573
|
triggerImmediately: e2
|
|
34574
34574
|
});
|
|
34575
|
-
}, t[12] = d, t[13] = n, t[14] =
|
|
34576
|
-
let
|
|
34577
|
-
t[15] !== a || t[16] !== d || t[17] !== _ ? (
|
|
34575
|
+
}, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
|
|
34576
|
+
let q = K, J;
|
|
34577
|
+
t[15] !== a || t[16] !== d || t[17] !== _ ? (J = () => {
|
|
34578
34578
|
_({
|
|
34579
34579
|
prompt: buildFixInChatPrompt(a, d)
|
|
34580
34580
|
});
|
|
34581
|
-
}, t[15] = a, t[16] = d, t[17] = _, t[18] =
|
|
34582
|
-
let
|
|
34583
|
-
t[19] === z ?
|
|
34584
|
-
let
|
|
34581
|
+
}, t[15] = a, t[16] = d, t[17] = _, t[18] = J) : J = t[18];
|
|
34582
|
+
let Q = J, $;
|
|
34583
|
+
t[19] === z ? $ = t[20] : ($ = () => U(!z), t[19] = z, t[20] = $);
|
|
34584
|
+
let rJ = z ? "Collapse traceback" : "Expand traceback", aJ;
|
|
34585
34585
|
t[21] === z ? aJ = t[22] : (aJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34586
34586
|
className: "h-3 w-3"
|
|
34587
34587
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
@@ -34593,31 +34593,31 @@ ${d}`,
|
|
|
34593
34593
|
children: "Traceback"
|
|
34594
34594
|
}), t[23] = oJ) : oJ = t[23];
|
|
34595
34595
|
let sJ;
|
|
34596
|
-
t[24] !== z || t[25] !== aJ || t[26] !==
|
|
34596
|
+
t[24] !== z || t[25] !== aJ || t[26] !== $ || t[27] !== rJ ? (sJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34597
34597
|
type: "button",
|
|
34598
|
-
onClick:
|
|
34598
|
+
onClick: $,
|
|
34599
34599
|
"aria-expanded": z,
|
|
34600
|
-
"aria-label":
|
|
34600
|
+
"aria-label": rJ,
|
|
34601
34601
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34602
34602
|
children: [
|
|
34603
34603
|
aJ,
|
|
34604
34604
|
oJ
|
|
34605
34605
|
]
|
|
34606
|
-
}), t[24] = z, t[25] = aJ, t[26] =
|
|
34607
|
-
let
|
|
34608
|
-
t[29] !== s || t[30] !== z ? (
|
|
34606
|
+
}), t[24] = z, t[25] = aJ, t[26] = $, t[27] = rJ, t[28] = sJ) : sJ = t[28];
|
|
34607
|
+
let lJ;
|
|
34608
|
+
t[29] !== s || t[30] !== z ? (lJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34609
34609
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34610
34610
|
children: s
|
|
34611
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34612
|
-
let lJ;
|
|
34613
|
-
t[32] !== J || t[33] !== $ || t[34] !== M ? (lJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34614
|
-
tooltip: "Fix with AI",
|
|
34615
|
-
openPrompt: () => J(false),
|
|
34616
|
-
applyAutofix: () => J(true),
|
|
34617
|
-
openChat: $
|
|
34618
|
-
}), t[32] = J, t[33] = $, t[34] = M, t[35] = lJ) : lJ = t[35];
|
|
34611
|
+
}), t[29] = s, t[30] = z, t[31] = lJ) : lJ = t[31];
|
|
34619
34612
|
let uJ;
|
|
34620
|
-
t[
|
|
34613
|
+
t[32] !== q || t[33] !== Q || t[34] !== M ? (uJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34614
|
+
tooltip: "Fix with AI",
|
|
34615
|
+
openPrompt: () => q(false),
|
|
34616
|
+
applyAutofix: () => q(true),
|
|
34617
|
+
openChat: Q
|
|
34618
|
+
}), t[32] = q, t[33] = Q, t[34] = M, t[35] = uJ) : uJ = t[35];
|
|
34619
|
+
let dJ;
|
|
34620
|
+
t[36] !== O || t[37] !== y ? (dJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34621
34621
|
content: "Attach pdb to the exception point.",
|
|
34622
34622
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34623
34623
|
size: "xs",
|
|
@@ -34634,9 +34634,9 @@ ${d}`,
|
|
|
34634
34634
|
"Launch debugger"
|
|
34635
34635
|
]
|
|
34636
34636
|
})
|
|
34637
|
-
}), t[36] = O, t[37] = y, t[38] =
|
|
34638
|
-
let
|
|
34639
|
-
t[39] !== d || t[40] !== i ? (
|
|
34637
|
+
}), t[36] = O, t[37] = y, t[38] = dJ) : dJ = t[38];
|
|
34638
|
+
let fJ;
|
|
34639
|
+
t[39] !== d || t[40] !== i ? (fJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34640
34640
|
children: [
|
|
34641
34641
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34642
34642
|
asChild: true,
|
|
@@ -34704,25 +34704,25 @@ ${d}`,
|
|
|
34704
34704
|
]
|
|
34705
34705
|
})
|
|
34706
34706
|
]
|
|
34707
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34708
|
-
let
|
|
34709
|
-
t[42] !==
|
|
34707
|
+
}), t[39] = d, t[40] = i, t[41] = fJ) : fJ = t[41];
|
|
34708
|
+
let pJ;
|
|
34709
|
+
t[42] !== uJ || t[43] !== dJ || t[44] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34710
34710
|
className: "flex gap-2",
|
|
34711
34711
|
children: [
|
|
34712
|
-
lJ,
|
|
34713
34712
|
uJ,
|
|
34714
|
-
dJ
|
|
34713
|
+
dJ,
|
|
34714
|
+
fJ
|
|
34715
34715
|
]
|
|
34716
|
-
}), t[42] =
|
|
34717
|
-
let
|
|
34718
|
-
return t[46] !== sJ || t[47] !==
|
|
34716
|
+
}), t[42] = uJ, t[43] = dJ, t[44] = fJ, t[45] = pJ) : pJ = t[45];
|
|
34717
|
+
let mJ;
|
|
34718
|
+
return t[46] !== sJ || t[47] !== lJ || t[48] !== pJ ? (mJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34719
34719
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34720
34720
|
children: [
|
|
34721
34721
|
sJ,
|
|
34722
|
-
|
|
34723
|
-
|
|
34722
|
+
lJ,
|
|
34723
|
+
pJ
|
|
34724
34724
|
]
|
|
34725
|
-
}), t[46] = sJ, t[47] =
|
|
34725
|
+
}), t[46] = sJ, t[47] = lJ, t[48] = pJ, t[49] = mJ) : mJ = t[49], mJ;
|
|
34726
34726
|
};
|
|
34727
34727
|
function lastLine(e) {
|
|
34728
34728
|
var _a2, _b;
|
|
@@ -36290,7 +36290,7 @@ ${d}`,
|
|
|
36290
36290
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36291
36291
|
}
|
|
36292
36292
|
}
|
|
36293
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-
|
|
36293
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-dev32");
|
|
36294
36294
|
showCodeInRunModeAtom = atom(true);
|
|
36295
36295
|
atom(null);
|
|
36296
36296
|
var import_compiler_runtime = require_compiler_runtime();
|