@marimo-team/islands 0.23.15-dev1 → 0.23.15-dev11
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-DinOvbWu.js → chat-ui-FiwuOgQU.js} +3094 -3094
- package/dist/{code-visibility-PV_v9dwf.js → code-visibility-HO1U02IJ.js} +171 -171
- package/dist/{html-to-image-_wGfk8V-.js → html-to-image-JXL8cvmt.js} +2218 -2205
- package/dist/main.js +327 -339
- package/dist/{process-output-Mh4UrjwM.js → process-output-CnDIXtM-.js} +1 -1
- package/dist/{reveal-component-DVEmgnsr.js → reveal-component-BuQ2GKAM.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/chat/__tests__/chat-utils.test.ts +244 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +121 -0
- package/src/components/chat/chat-panel.tsx +196 -67
- package/src/components/chat/chat-utils.ts +111 -2
- package/src/components/editor/SortableCell.tsx +6 -2
- package/src/components/editor/__tests__/output-persistence.test.tsx +241 -0
- package/src/components/editor/cell/cell-context-menu.tsx +7 -0
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +105 -0
- package/src/components/editor/columns/cell-column.tsx +34 -4
- package/src/components/editor/columns/sortable-column.tsx +24 -4
- package/src/components/editor/notebook-cell.tsx +203 -106
- package/src/components/editor/renderers/__tests__/cells-renderer.test.tsx +66 -0
- package/src/components/editor/renderers/cell-array.tsx +26 -13
- package/src/components/editor/renderers/cells-renderer.tsx +8 -2
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -19
- package/src/core/cells/__tests__/utils.test.ts +59 -0
- package/src/core/cells/utils.ts +51 -0
- package/src/css/app/Cell.css +10 -0
- package/src/hooks/__tests__/useHotkey.test.tsx +88 -0
- package/src/hooks/useHotkey.ts +29 -4
- package/src/plugins/impl/anywidget/__tests__/host.test.ts +6 -9
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +22 -61
- package/src/plugins/impl/anywidget/model-proxy.ts +0 -13
- package/src/plugins/impl/anywidget/widget-binding.ts +4 -34
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +71 -3
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +1 -0
|
@@ -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 { At as goToCellLine, B as isDataURLString, C as Accordion, Cn as jsonToMarkdown, E as AccordionTrigger, Ft as jotaiJsonStorage, H as renderHTML, Hn as FileText, L as base64ToUint8Array, Ln as NotebookPen, Lt as getFeatureFlag, M as DotFilledIcon, N as PinLeftIcon, Nn as Wrench, Nt as useChromeActions, On as Close$1, Ot as toggleBreakpoint, P as PinRightIcon, Pn as Trash2, Pt as adaptForLocalStorage, Qt as useRequestClient, Rn as Minus, Sn as jsonParseWithSpecialChar, St as Checkbox, T as AccordionItem, Tn as atomWithStorage, Un as Eye, Ut as DATA_TYPE_ICON, Vn as Info, Vt as PluralWord, Wn as ExternalLink, Wt as getDataTypeColor, X as notebookAtom, Xn as esm_default, Xt as getRequestClient, Yn as Braces, Zn as import_lib, _ as getDatasourceContext, _n as SCRATCH_CELL_ID, _t as getCellDomProps, c as Popover, cn as getTracebackInfo, d as PopoverTrigger, dn as filenameAtom, dt as viewStateAtom, et as useCellActions, ft as outputIsLoading, gn as HTMLCellId, gt as DATA_CELL_ID, hn as CellOutputId, ht as sanitizeHtml, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as kioskModeAtom, m as useExpandedOutput, n as Spinner, nt as useCellNames, on as elementContainsMarimoCellFile, ot as AnsiUp, q as getCellEditorView, qn as CircleX, r as MarkdownRenderer, sn as extractAllTracebackInfo, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as displayCellName, w as AccordionContent, z as extractBase64FromDataURL, zn as LoaderCircle, __tla as __tla_0 } from "./html-to-image-JXL8cvmt.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-DegSo0lV.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 @@ ${n}` : "Please fix this error.";
|
|
|
20121
20121
|
}
|
|
20122
20122
|
let y, S, w, E, O, A;
|
|
20123
20123
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
20124
|
-
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12),
|
|
20124
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), $ = n.filter(_temp14), eJ = n.filter(_temp15), tJ = n.filter(_temp16), nJ = n.filter(_temp17), rJ = n.filter(_temp18), iJ;
|
|
20125
20125
|
t[17] === s ? iJ = t[18] : (iJ = () => {
|
|
20126
20126
|
s.openApplication("scratchpad");
|
|
20127
20127
|
}, t[17] = s, t[18] = iJ);
|
|
@@ -20500,11 +20500,11 @@ ${n}` : "Please fix this error.";
|
|
|
20500
20500
|
children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
|
|
20501
20501
|
})
|
|
20502
20502
|
]
|
|
20503
|
-
}, "strict-exception")),
|
|
20503
|
+
}, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20504
20504
|
children: [
|
|
20505
|
-
|
|
20505
|
+
J.map(_temp32),
|
|
20506
20506
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20507
|
-
errors:
|
|
20507
|
+
errors: J,
|
|
20508
20508
|
cellId: i
|
|
20509
20509
|
})
|
|
20510
20510
|
]
|
|
@@ -28673,155 +28673,155 @@ ${n}` : "Please fix this error.";
|
|
|
28673
28673
|
onSelect: Functions.NOOP
|
|
28674
28674
|
});
|
|
28675
28675
|
Combobox = (e) => {
|
|
28676
|
-
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,
|
|
28677
|
-
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],
|
|
28678
|
-
let
|
|
28679
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28676
|
+
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;
|
|
28677
|
+
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);
|
|
28678
|
+
let $ = I === void 0 ? false : I, eJ = z === void 0 ? true : z, tJ = U === void 0 ? "Search..." : U, nJ = K === void 0 ? "Nothing found." : K, rJ = q === void 0 ? false : q, iJ = J === void 0 ? false : J, aJ = s ?? false, oJ;
|
|
28679
|
+
t[25] !== v || t[26] !== w || t[27] !== aJ ? (oJ = {
|
|
28680
28680
|
prop: w,
|
|
28681
|
-
defaultProp:
|
|
28681
|
+
defaultProp: aJ,
|
|
28682
28682
|
onChange: v
|
|
28683
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28684
|
-
let [
|
|
28685
|
-
t[29] === S ?
|
|
28683
|
+
}, t[25] = v, t[26] = w, t[27] = aJ, t[28] = oJ) : oJ = t[28];
|
|
28684
|
+
let [sJ, cJ] = useControllableState(oJ), lJ = sJ === void 0 ? false : sJ, uJ;
|
|
28685
|
+
t[29] === S ? uJ = t[30] : (uJ = (e2) => {
|
|
28686
28686
|
S == null ? void 0 : S(e2);
|
|
28687
|
-
}, t[29] = S, t[30] =
|
|
28688
|
-
let
|
|
28689
|
-
t[31] !== c || t[32] !==
|
|
28690
|
-
prop:
|
|
28687
|
+
}, t[29] = S, t[30] = uJ);
|
|
28688
|
+
let dJ;
|
|
28689
|
+
t[31] !== c || t[32] !== uJ || t[33] !== Q ? (dJ = {
|
|
28690
|
+
prop: Q,
|
|
28691
28691
|
defaultProp: c,
|
|
28692
|
-
onChange:
|
|
28693
|
-
}, t[31] = c, t[32] =
|
|
28694
|
-
let [
|
|
28695
|
-
t[35] ===
|
|
28696
|
-
let
|
|
28697
|
-
t[37] !== _ || t[38] !==
|
|
28692
|
+
onChange: uJ
|
|
28693
|
+
}, t[31] = c, t[32] = uJ, t[33] = Q, t[34] = dJ) : dJ = t[34];
|
|
28694
|
+
let [fJ, pJ] = useControllableState(dJ), mJ;
|
|
28695
|
+
t[35] === fJ ? mJ = t[36] : (mJ = (e2) => Array.isArray(fJ) ? fJ.includes(e2) : fJ === e2, t[35] = fJ, t[36] = mJ);
|
|
28696
|
+
let hJ = mJ, gJ;
|
|
28697
|
+
t[37] !== _ || t[38] !== $ || t[39] !== cJ || t[40] !== pJ || t[41] !== fJ ? (gJ = (e2) => {
|
|
28698
28698
|
let t2 = e2;
|
|
28699
|
-
if (
|
|
28700
|
-
let n2 =
|
|
28699
|
+
if ($) if (Array.isArray(fJ)) if (fJ.includes(t2)) {
|
|
28700
|
+
let n2 = fJ.filter((t3) => t3 !== e2);
|
|
28701
28701
|
t2 = n2.length > 0 ? n2 : [];
|
|
28702
28702
|
} else t2 = [
|
|
28703
|
-
...
|
|
28703
|
+
...fJ,
|
|
28704
28704
|
t2
|
|
28705
28705
|
];
|
|
28706
28706
|
else t2 = [
|
|
28707
28707
|
t2
|
|
28708
28708
|
];
|
|
28709
|
-
else
|
|
28710
|
-
|
|
28711
|
-
}, t[37] = _, t[38] =
|
|
28712
|
-
let
|
|
28713
|
-
t[43] !==
|
|
28714
|
-
let
|
|
28715
|
-
t[49] !==
|
|
28716
|
-
isSelected:
|
|
28717
|
-
onSelect:
|
|
28718
|
-
}, t[49] =
|
|
28719
|
-
let
|
|
28720
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28709
|
+
else fJ === e2 && (t2 = null);
|
|
28710
|
+
pJ(t2), (_ ?? $) || cJ(false);
|
|
28711
|
+
}, t[37] = _, t[38] = $, t[39] = cJ, t[40] = pJ, t[41] = fJ, t[42] = gJ) : gJ = t[42];
|
|
28712
|
+
let _J = gJ, vJ;
|
|
28713
|
+
t[43] !== rJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== fJ ? (vJ = () => $ && rJ && E ? E : fJ == null ? E ?? "--" : Array.isArray(fJ) ? fJ.length === 0 ? E ?? "--" : fJ.length === 1 && d !== void 0 ? d(fJ[0]) : `${fJ.length} selected` : d === void 0 ? E ?? "--" : d(fJ), t[43] = rJ, t[44] = d, t[45] = $, t[46] = E, t[47] = fJ, t[48] = vJ) : vJ = t[48];
|
|
28714
|
+
let yJ = vJ, bJ;
|
|
28715
|
+
t[49] !== _J || t[50] !== hJ ? (bJ = {
|
|
28716
|
+
isSelected: hJ,
|
|
28717
|
+
onSelect: _J
|
|
28718
|
+
}, t[49] = _J, t[50] = hJ, t[51] = bJ) : bJ = t[51];
|
|
28719
|
+
let xJ = bJ, SJ;
|
|
28720
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (SJ = cn("relative"), t[52] = SJ) : SJ = t[52];
|
|
28721
|
+
let CJ;
|
|
28722
|
+
t[53] !== iJ || t[54] !== cJ ? (CJ = (e2) => {
|
|
28723
|
+
iJ && e2 || cJ(e2);
|
|
28724
|
+
}, t[53] = iJ, t[54] = cJ, t[55] = CJ) : CJ = t[55];
|
|
28725
|
+
let wJ = iJ && "cursor-not-allowed opacity-50", TJ;
|
|
28726
|
+
t[56] !== o || t[57] !== wJ ? (TJ = 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", wJ, o), t[56] = o, t[57] = wJ, t[58] = TJ) : TJ = t[58];
|
|
28721
28727
|
let EJ;
|
|
28722
|
-
t[
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
let DJ = aJ && "cursor-not-allowed opacity-50", OJ;
|
|
28726
|
-
t[56] !== o || t[57] !== DJ ? (OJ = 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", DJ, o), t[56] = o, t[57] = DJ, t[58] = OJ) : OJ = t[58];
|
|
28727
|
-
let kJ;
|
|
28728
|
-
t[59] !== O || t[60] !== bJ || t[61] !== pJ ? (kJ = O ? O(pJ ?? null) : bJ(), t[59] = O, t[60] = bJ, t[61] = pJ, t[62] = kJ) : kJ = t[62];
|
|
28729
|
-
let AJ;
|
|
28730
|
-
t[63] === kJ ? AJ = t[64] : (AJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28728
|
+
t[59] !== O || t[60] !== yJ || t[61] !== fJ ? (EJ = O ? O(fJ ?? null) : yJ(), t[59] = O, t[60] = yJ, t[61] = fJ, t[62] = EJ) : EJ = t[62];
|
|
28729
|
+
let DJ;
|
|
28730
|
+
t[63] === EJ ? DJ = t[64] : (DJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28731
28731
|
className: "truncate flex-1 min-w-0",
|
|
28732
|
-
children:
|
|
28733
|
-
}), t[63] =
|
|
28734
|
-
let
|
|
28735
|
-
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28732
|
+
children: EJ
|
|
28733
|
+
}), t[63] = EJ, t[64] = DJ);
|
|
28734
|
+
let OJ;
|
|
28735
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (OJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28736
28736
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28737
|
-
}), t[65] =
|
|
28738
|
-
let
|
|
28739
|
-
t[66] !==
|
|
28737
|
+
}), t[65] = OJ) : OJ = t[65];
|
|
28738
|
+
let AJ;
|
|
28739
|
+
t[66] !== iJ || t[67] !== h || t[68] !== lJ || t[69] !== TJ || t[70] !== DJ ? (AJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28740
28740
|
asChild: true,
|
|
28741
28741
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28742
28742
|
id: h,
|
|
28743
28743
|
type: "button",
|
|
28744
|
-
className:
|
|
28745
|
-
"aria-expanded":
|
|
28746
|
-
"aria-disabled":
|
|
28744
|
+
className: TJ,
|
|
28745
|
+
"aria-expanded": lJ,
|
|
28746
|
+
"aria-disabled": iJ,
|
|
28747
28747
|
children: [
|
|
28748
|
-
|
|
28749
|
-
|
|
28748
|
+
DJ,
|
|
28749
|
+
OJ
|
|
28750
28750
|
]
|
|
28751
28751
|
})
|
|
28752
|
-
}), t[66] =
|
|
28753
|
-
let
|
|
28754
|
-
t[72] !==
|
|
28755
|
-
placeholder:
|
|
28752
|
+
}), t[66] = iJ, t[67] = h, t[68] = lJ, t[69] = TJ, t[70] = DJ, t[71] = AJ) : AJ = t[71];
|
|
28753
|
+
let MJ;
|
|
28754
|
+
t[72] !== tJ || t[73] !== y || t[74] !== M ? (MJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28755
|
+
placeholder: tJ,
|
|
28756
28756
|
rootClassName: "px-1 h-8",
|
|
28757
28757
|
autoFocus: true,
|
|
28758
28758
|
value: M,
|
|
28759
28759
|
onValueChange: y
|
|
28760
|
-
}), t[72] =
|
|
28760
|
+
}), t[72] = tJ, t[73] = y, t[74] = M, t[75] = MJ) : MJ = t[75];
|
|
28761
|
+
let NJ;
|
|
28762
|
+
t[76] === nJ ? NJ = t[77] : (NJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28763
|
+
children: nJ
|
|
28764
|
+
}), t[76] = nJ, t[77] = NJ);
|
|
28761
28765
|
let PJ;
|
|
28762
|
-
t[
|
|
28763
|
-
|
|
28764
|
-
}), t[76] = rJ, t[77] = PJ);
|
|
28765
|
-
let FJ;
|
|
28766
|
-
t[78] !== n || t[79] !== SJ ? (FJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28767
|
-
value: SJ,
|
|
28766
|
+
t[78] !== n || t[79] !== xJ ? (PJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28767
|
+
value: xJ,
|
|
28768
28768
|
children: n
|
|
28769
|
-
}), t[78] = n, t[79] =
|
|
28770
|
-
let
|
|
28771
|
-
t[81] !==
|
|
28769
|
+
}), t[78] = n, t[79] = xJ, t[80] = PJ) : PJ = t[80];
|
|
28770
|
+
let FJ;
|
|
28771
|
+
t[81] !== NJ || t[82] !== PJ ? (FJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28772
28772
|
className: "max-h-60 py-.5",
|
|
28773
28773
|
children: [
|
|
28774
|
-
|
|
28775
|
-
|
|
28774
|
+
NJ,
|
|
28775
|
+
PJ
|
|
28776
28776
|
]
|
|
28777
|
-
}), t[81] =
|
|
28778
|
-
let
|
|
28779
|
-
t[84] !== f || t[85] !==
|
|
28777
|
+
}), t[81] = NJ, t[82] = PJ, t[83] = FJ) : FJ = t[83];
|
|
28778
|
+
let IJ;
|
|
28779
|
+
t[84] !== f || t[85] !== eJ || t[86] !== MJ || t[87] !== FJ ? (IJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28780
28780
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28781
28781
|
align: "start",
|
|
28782
28782
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28783
28783
|
filter: f,
|
|
28784
|
-
shouldFilter:
|
|
28784
|
+
shouldFilter: eJ,
|
|
28785
28785
|
children: [
|
|
28786
|
-
|
|
28787
|
-
|
|
28786
|
+
MJ,
|
|
28787
|
+
FJ
|
|
28788
28788
|
]
|
|
28789
28789
|
})
|
|
28790
|
-
}), t[84] = f, t[85] =
|
|
28791
|
-
let
|
|
28792
|
-
t[89] !==
|
|
28793
|
-
open:
|
|
28794
|
-
onOpenChange:
|
|
28790
|
+
}), t[84] = f, t[85] = eJ, t[86] = MJ, t[87] = FJ, t[88] = IJ) : IJ = t[88];
|
|
28791
|
+
let LJ;
|
|
28792
|
+
t[89] !== lJ || t[90] !== CJ || t[91] !== AJ || t[92] !== IJ ? (LJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28793
|
+
open: lJ,
|
|
28794
|
+
onOpenChange: CJ,
|
|
28795
28795
|
children: [
|
|
28796
|
-
|
|
28797
|
-
|
|
28796
|
+
AJ,
|
|
28797
|
+
IJ
|
|
28798
28798
|
]
|
|
28799
|
-
}), t[89] =
|
|
28800
|
-
let
|
|
28801
|
-
t[94] !==
|
|
28799
|
+
}), t[89] = lJ, t[90] = CJ, t[91] = AJ, t[92] = IJ, t[93] = LJ) : LJ = t[93];
|
|
28800
|
+
let RJ;
|
|
28801
|
+
t[94] !== rJ || t[95] !== i || t[96] !== iJ || t[97] !== d || t[98] !== _J || t[99] !== $ || t[100] !== fJ ? (RJ = $ && rJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28802
28802
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28803
|
-
children: Array.isArray(
|
|
28803
|
+
children: Array.isArray(fJ) && fJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28804
28804
|
variant: "secondary",
|
|
28805
28805
|
children: [
|
|
28806
28806
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28807
28807
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28808
28808
|
onClick: () => {
|
|
28809
|
-
|
|
28809
|
+
iJ || _J(e2);
|
|
28810
28810
|
},
|
|
28811
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28811
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", iJ && "pointer-events-none")
|
|
28812
28812
|
})
|
|
28813
28813
|
]
|
|
28814
28814
|
}, String(e2)))
|
|
28815
|
-
}), t[94] =
|
|
28816
|
-
let
|
|
28817
|
-
return t[102] !== A || t[103] !==
|
|
28818
|
-
className:
|
|
28815
|
+
}), t[94] = rJ, t[95] = i, t[96] = iJ, t[97] = d, t[98] = _J, t[99] = $, t[100] = fJ, t[101] = RJ) : RJ = t[101];
|
|
28816
|
+
let zJ;
|
|
28817
|
+
return t[102] !== A || t[103] !== LJ || t[104] !== RJ ? (zJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28818
|
+
className: SJ,
|
|
28819
28819
|
...A,
|
|
28820
28820
|
children: [
|
|
28821
|
-
|
|
28822
|
-
|
|
28821
|
+
LJ,
|
|
28822
|
+
RJ
|
|
28823
28823
|
]
|
|
28824
|
-
}), t[102] = A, t[103] =
|
|
28824
|
+
}), t[102] = A, t[103] = LJ, t[104] = RJ, t[105] = zJ) : zJ = t[105], zJ;
|
|
28825
28825
|
};
|
|
28826
28826
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28827
28827
|
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), _;
|
|
@@ -34064,7 +34064,7 @@ ${n}` : "Please fix this error.";
|
|
|
34064
34064
|
filename: i2.filename
|
|
34065
34065
|
};
|
|
34066
34066
|
}, t[6] = e, t[7] = O);
|
|
34067
|
-
let A = O, M,
|
|
34067
|
+
let A = O, M, z, U, K, q, J, Q, $, eJ, tJ, nJ, rJ, iJ;
|
|
34068
34068
|
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34069
34069
|
let e2 = async (t2) => {
|
|
34070
34070
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34114,7 +34114,7 @@ ${n}` : "Please fix this error.";
|
|
|
34114
34114
|
});
|
|
34115
34115
|
});
|
|
34116
34116
|
};
|
|
34117
|
-
|
|
34117
|
+
z = DropdownMenu, q = false, J = n, Q = i;
|
|
34118
34118
|
let o2 = n ? false : void 0, s2 = c ? 0 : -1, f2;
|
|
34119
34119
|
t[26] !== S || t[27] !== s2 ? (f2 = (0, import_jsx_runtime.jsx)("span", {
|
|
34120
34120
|
tabIndex: s2,
|
|
@@ -34126,14 +34126,14 @@ ${n}` : "Please fix this error.";
|
|
|
34126
34126
|
asChild: true,
|
|
34127
34127
|
disabled: c,
|
|
34128
34128
|
children: f2
|
|
34129
|
-
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? (
|
|
34129
|
+
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? ($ = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34130
34130
|
content: d,
|
|
34131
34131
|
open: o2,
|
|
34132
34132
|
children: h
|
|
34133
|
-
}), t[32] = o2, t[33] = h, t[34] = d, t[35] =
|
|
34133
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], M = DropdownMenuContent, eJ = "bottom", tJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34134
34134
|
className: "text-xs text-muted-foreground",
|
|
34135
34135
|
children: "Download"
|
|
34136
|
-
}), t[36] =
|
|
34136
|
+
}), t[36] = nJ) : nJ = t[36], rJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34137
34137
|
onSelect: () => {
|
|
34138
34138
|
e2(t2.format);
|
|
34139
34139
|
},
|
|
@@ -34154,10 +34154,10 @@ ${n}` : "Please fix this error.";
|
|
|
34154
34154
|
]
|
|
34155
34155
|
})
|
|
34156
34156
|
]
|
|
34157
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34157
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34158
34158
|
className: "text-xs text-muted-foreground",
|
|
34159
34159
|
children: "Copy to clipboard"
|
|
34160
|
-
}), t[37] =
|
|
34160
|
+
}), t[37] = U, t[38] = iJ) : (U = t[37], iJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34161
34161
|
onSelect: async () => {
|
|
34162
34162
|
try {
|
|
34163
34163
|
await a(e3.format);
|
|
@@ -34186,30 +34186,30 @@ ${n}` : "Please fix this error.";
|
|
|
34186
34186
|
]
|
|
34187
34187
|
})
|
|
34188
34188
|
]
|
|
34189
|
-
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] =
|
|
34190
|
-
} else M = t[13],
|
|
34191
|
-
let
|
|
34192
|
-
t[39] !== M || t[40] !==
|
|
34193
|
-
side:
|
|
34194
|
-
className:
|
|
34189
|
+
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = eJ, t[22] = tJ, t[23] = nJ, t[24] = rJ, t[25] = iJ;
|
|
34190
|
+
} else M = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], eJ = t[21], tJ = t[22], nJ = t[23], rJ = t[24], iJ = t[25];
|
|
34191
|
+
let aJ;
|
|
34192
|
+
t[39] !== M || t[40] !== U || t[41] !== K || t[42] !== eJ || t[43] !== tJ || t[44] !== nJ || t[45] !== rJ || t[46] !== iJ ? (aJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34193
|
+
side: eJ,
|
|
34194
|
+
className: tJ,
|
|
34195
34195
|
children: [
|
|
34196
|
-
tJ,
|
|
34197
34196
|
nJ,
|
|
34198
34197
|
rJ,
|
|
34199
|
-
|
|
34200
|
-
U
|
|
34198
|
+
iJ,
|
|
34199
|
+
U,
|
|
34200
|
+
K
|
|
34201
34201
|
]
|
|
34202
|
-
}), t[39] = M, t[40] =
|
|
34203
|
-
let
|
|
34204
|
-
return t[48] !==
|
|
34205
|
-
modal:
|
|
34206
|
-
open:
|
|
34207
|
-
onOpenChange:
|
|
34202
|
+
}), t[39] = M, t[40] = U, t[41] = K, t[42] = eJ, t[43] = tJ, t[44] = nJ, t[45] = rJ, t[46] = iJ, t[47] = aJ) : aJ = t[47];
|
|
34203
|
+
let oJ;
|
|
34204
|
+
return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== aJ ? (oJ = (0, import_jsx_runtime.jsxs)(z, {
|
|
34205
|
+
modal: q,
|
|
34206
|
+
open: J,
|
|
34207
|
+
onOpenChange: Q,
|
|
34208
34208
|
children: [
|
|
34209
|
-
|
|
34210
|
-
|
|
34209
|
+
$,
|
|
34210
|
+
aJ
|
|
34211
34211
|
]
|
|
34212
|
-
}), t[48] =
|
|
34212
|
+
}), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = aJ, t[54] = oJ) : oJ = t[54], oJ;
|
|
34213
34213
|
};
|
|
34214
34214
|
function fetchJson(e) {
|
|
34215
34215
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34563,9 +34563,9 @@ ${n}` : "Please fix this error.";
|
|
|
34563
34563
|
t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
|
|
34564
34564
|
let y = v, w;
|
|
34565
34565
|
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];
|
|
34566
|
-
let
|
|
34567
|
-
t[9] !== f || t[10] !== n ? (
|
|
34568
|
-
let
|
|
34566
|
+
let O = w, A;
|
|
34567
|
+
t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
|
|
34568
|
+
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), q;
|
|
34569
34569
|
t[12] !== d || t[13] !== n ? (q = (e2) => {
|
|
34570
34570
|
n == null ? void 0 : n({
|
|
34571
34571
|
prompt: `My code gives the following error:
|
|
@@ -34580,45 +34580,45 @@ ${d}`,
|
|
|
34580
34580
|
prompt: buildFixInChatPrompt(a, d)
|
|
34581
34581
|
});
|
|
34582
34582
|
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34583
|
-
let
|
|
34584
|
-
t[19] ===
|
|
34585
|
-
let
|
|
34586
|
-
t[21] ===
|
|
34583
|
+
let $ = Q, eJ;
|
|
34584
|
+
t[19] === z ? eJ = t[20] : (eJ = () => U(!z), t[19] = z, t[20] = eJ);
|
|
34585
|
+
let tJ = z ? "Collapse traceback" : "Expand traceback", nJ;
|
|
34586
|
+
t[21] === z ? nJ = t[22] : (nJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34587
34587
|
className: "h-3 w-3"
|
|
34588
34588
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34589
34589
|
className: "h-3 w-3"
|
|
34590
|
-
}), t[21] =
|
|
34591
|
-
let
|
|
34592
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34590
|
+
}), t[21] = z, t[22] = nJ);
|
|
34591
|
+
let rJ;
|
|
34592
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34593
34593
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34594
34594
|
children: "Traceback"
|
|
34595
|
-
}), t[23] =
|
|
34596
|
-
let
|
|
34597
|
-
t[24] !==
|
|
34595
|
+
}), t[23] = rJ) : rJ = t[23];
|
|
34596
|
+
let iJ;
|
|
34597
|
+
t[24] !== z || t[25] !== nJ || t[26] !== eJ || t[27] !== tJ ? (iJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34598
34598
|
type: "button",
|
|
34599
|
-
onClick:
|
|
34600
|
-
"aria-expanded":
|
|
34601
|
-
"aria-label":
|
|
34599
|
+
onClick: eJ,
|
|
34600
|
+
"aria-expanded": z,
|
|
34601
|
+
"aria-label": tJ,
|
|
34602
34602
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34603
34603
|
children: [
|
|
34604
|
-
|
|
34605
|
-
|
|
34604
|
+
nJ,
|
|
34605
|
+
rJ
|
|
34606
34606
|
]
|
|
34607
|
-
}), t[24] =
|
|
34608
|
-
let
|
|
34609
|
-
t[29] !== s || t[30] !==
|
|
34607
|
+
}), t[24] = z, t[25] = nJ, t[26] = eJ, t[27] = tJ, t[28] = iJ) : iJ = t[28];
|
|
34608
|
+
let aJ;
|
|
34609
|
+
t[29] !== s || t[30] !== z ? (aJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34610
34610
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34611
34611
|
children: s
|
|
34612
|
-
}), t[29] = s, t[30] =
|
|
34613
|
-
let
|
|
34614
|
-
t[32] !== J || t[33] !==
|
|
34612
|
+
}), t[29] = s, t[30] = z, t[31] = aJ) : aJ = t[31];
|
|
34613
|
+
let oJ;
|
|
34614
|
+
t[32] !== J || t[33] !== $ || t[34] !== M ? (oJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34615
34615
|
tooltip: "Fix with AI",
|
|
34616
34616
|
openPrompt: () => J(false),
|
|
34617
34617
|
applyAutofix: () => J(true),
|
|
34618
|
-
openChat:
|
|
34619
|
-
}), t[32] = J, t[33] =
|
|
34620
|
-
let
|
|
34621
|
-
t[36] !==
|
|
34618
|
+
openChat: $
|
|
34619
|
+
}), t[32] = J, t[33] = $, t[34] = M, t[35] = oJ) : oJ = t[35];
|
|
34620
|
+
let sJ;
|
|
34621
|
+
t[36] !== O || t[37] !== y ? (sJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34622
34622
|
content: "Attach pdb to the exception point.",
|
|
34623
34623
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34624
34624
|
size: "xs",
|
|
@@ -34635,9 +34635,9 @@ ${d}`,
|
|
|
34635
34635
|
"Launch debugger"
|
|
34636
34636
|
]
|
|
34637
34637
|
})
|
|
34638
|
-
}), t[36] =
|
|
34639
|
-
let
|
|
34640
|
-
t[39] !== d || t[40] !== i ? (
|
|
34638
|
+
}), t[36] = O, t[37] = y, t[38] = sJ) : sJ = t[38];
|
|
34639
|
+
let cJ;
|
|
34640
|
+
t[39] !== d || t[40] !== i ? (cJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34641
34641
|
children: [
|
|
34642
34642
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34643
34643
|
asChild: true,
|
|
@@ -34705,25 +34705,25 @@ ${d}`,
|
|
|
34705
34705
|
]
|
|
34706
34706
|
})
|
|
34707
34707
|
]
|
|
34708
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34709
|
-
let
|
|
34710
|
-
t[42] !==
|
|
34708
|
+
}), t[39] = d, t[40] = i, t[41] = cJ) : cJ = t[41];
|
|
34709
|
+
let lJ;
|
|
34710
|
+
t[42] !== oJ || t[43] !== sJ || t[44] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34711
34711
|
className: "flex gap-2",
|
|
34712
34712
|
children: [
|
|
34713
|
-
|
|
34714
|
-
|
|
34715
|
-
|
|
34713
|
+
oJ,
|
|
34714
|
+
sJ,
|
|
34715
|
+
cJ
|
|
34716
34716
|
]
|
|
34717
|
-
}), t[42] =
|
|
34718
|
-
let
|
|
34719
|
-
return t[46] !==
|
|
34717
|
+
}), t[42] = oJ, t[43] = sJ, t[44] = cJ, t[45] = lJ) : lJ = t[45];
|
|
34718
|
+
let uJ;
|
|
34719
|
+
return t[46] !== iJ || t[47] !== aJ || t[48] !== lJ ? (uJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34720
34720
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34721
34721
|
children: [
|
|
34722
|
-
|
|
34723
|
-
|
|
34724
|
-
|
|
34722
|
+
iJ,
|
|
34723
|
+
aJ,
|
|
34724
|
+
lJ
|
|
34725
34725
|
]
|
|
34726
|
-
}), t[46] =
|
|
34726
|
+
}), t[46] = iJ, t[47] = aJ, t[48] = lJ, t[49] = uJ) : uJ = t[49], uJ;
|
|
34727
34727
|
};
|
|
34728
34728
|
function lastLine(e) {
|
|
34729
34729
|
var _a2, _b;
|
|
@@ -36209,7 +36209,7 @@ ${d}`,
|
|
|
36209
36209
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36210
36210
|
}
|
|
36211
36211
|
}
|
|
36212
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-
|
|
36212
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-dev11");
|
|
36213
36213
|
showCodeInRunModeAtom = atom(true);
|
|
36214
36214
|
atom(null);
|
|
36215
36215
|
var import_compiler_runtime = require_compiler_runtime();
|