@marimo-team/islands 0.23.11-dev67 → 0.23.11-dev8
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-C4-GMW9y.js → chat-ui-c1FdlK-C.js} +2 -2
- package/dist/{code-visibility-UH2371Sv.js → code-visibility-C-06v5KM.js} +20 -18
- package/dist/{html-to-image-BwfcJJxA.js → html-to-image-D5-EpALB.js} +2158 -2132
- package/dist/main.js +5 -5
- package/dist/{process-output-DsloEDna.js → process-output-WDZE0cyS.js} +1 -1
- package/dist/{reveal-component-BNU1V1x5.js → reveal-component-yjK700z1.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/datasources/__tests__/column-preview.test.tsx +97 -0
- package/src/components/datasources/__tests__/filter-empty.test.ts +81 -0
- package/src/components/datasources/__tests__/utils.test.ts +62 -1
- package/src/components/datasources/column-preview.tsx +2 -4
- package/src/components/datasources/components.tsx +15 -7
- package/src/components/datasources/datasources.tsx +311 -178
- package/src/components/datasources/utils.ts +40 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +6 -5
- package/src/components/editor/connections/components.tsx +13 -0
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +4 -4
- package/src/components/editor/connections/storage/as-code.ts +11 -4
- package/src/core/ai/__tests__/strip-wrapping-backticks.test.ts +133 -0
- package/src/core/ai/stream-completion-text.ts +48 -0
- package/src/core/ai/strip-wrapping-backticks.ts +88 -0
- package/src/core/codemirror/ai/request.ts +2 -14
- package/src/core/datasets/__tests__/data-source.test.ts +226 -0
- package/src/core/datasets/data-source-connections.ts +88 -24
|
@@ -6,13 +6,13 @@ import { _ as Logger, c as Objects, g as cn, l as useEventListener, t as Button
|
|
|
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 { r as toast } from "./copy-UqRYxiOg.js";
|
|
9
|
-
import { C as AccordionContent, D as ChatBubbleIcon, En as Trash2, Et as createVariableInfoElement, G as cellErrorsAtom, Gt as getTableType, In as ExternalLink, It as jotaiJsonStorage, Lt as variablesAtom, Mt as generateUUID, Nn as Info, P as base64ToDataURL, Pn as FileText, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Ut as allTablesAtom, V as renderHTML, Wt as dataSourceConnectionsAtom, X as notebookAtom, Zt as singleFacet, _ as Boosts, _n as atomWithStorage, b as AIContextProvider, c as Popover, d as PopoverTrigger, f as isOutputEmpty, h as DatasourceContextProvider, jn as LoaderCircle, kt as moveToEndOfEditor, n as Spinner, nn as ZodLocalStorage, qt as getRequestClient, r as MarkdownRenderer, sn as CellOutputId, t as toPng, u as PopoverContent, v as Sections, w as AccordionItem, x as AIContextRegistry, y as contextToXml, yn as Anchor2, yt as displayCellName, zn as CircleX } from "./html-to-image-
|
|
9
|
+
import { C as AccordionContent, D as ChatBubbleIcon, En as Trash2, Et as createVariableInfoElement, G as cellErrorsAtom, Gt as getTableType, In as ExternalLink, It as jotaiJsonStorage, Lt as variablesAtom, Mt as generateUUID, Nn as Info, P as base64ToDataURL, Pn as FileText, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Ut as allTablesAtom, V as renderHTML, Wt as dataSourceConnectionsAtom, X as notebookAtom, Zt as singleFacet, _ as Boosts, _n as atomWithStorage, b as AIContextProvider, c as Popover, d as PopoverTrigger, f as isOutputEmpty, h as DatasourceContextProvider, jn as LoaderCircle, kt as moveToEndOfEditor, n as Spinner, nn as ZodLocalStorage, qt as getRequestClient, r as MarkdownRenderer, sn as CellOutputId, t as toPng, u as PopoverContent, v as Sections, w as AccordionItem, x as AIContextRegistry, y as contextToXml, yn as Anchor2, yt as displayCellName, zn as CircleX } from "./html-to-image-D5-EpALB.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-BbqSm5gU.js";
|
|
11
11
|
import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
12
12
|
import { C as logNever, I as X, R as ChevronDown, t as Strings } from "./strings-J57tzLr3.js";
|
|
13
13
|
import { C as DropdownMenuTrigger, a as NumberField, f as DropdownMenu, h as DropdownMenuItem, p as DropdownMenuContent, r as Input } from "./input-OdWHkobi.js";
|
|
14
14
|
import { p as isUrl, v as CircleQuestionMark } from "./toDate-d8RCRrRd.js";
|
|
15
|
-
import { a as MarimoIncomingMessageEvent, d as Square, f as File$1, n as blobToString, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
15
|
+
import { a as MarimoIncomingMessageEvent, d as Square, f as File$1, n as blobToString, t as processOutput, u as deserializeBlob } from "./process-output-WDZE0cyS.js";
|
|
16
16
|
import "./react-dom-BTJzcVJ9.js";
|
|
17
17
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
18
18
|
import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, H as safeParseAsync, I as record, L as strictObject, M as never, N as number, O as lazy, P as object$1, R as string, S as _null, T as boolean, V as unknown, W as toJSONSchema, b as _enum, k as literal, w as array$1, x as _instanceof } from "./zod-aLSua2NL.js";
|
|
@@ -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-UqRYxiOg.js";
|
|
9
|
-
import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Fn as Eye, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Vt as getDataTypeColor, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-
|
|
9
|
+
import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Fn as Eye, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Vt as getDataTypeColor, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-D5-EpALB.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-00mO3OSS.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-QB-3MpYr.js";
|
|
@@ -33342,13 +33342,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33342
33342
|
};
|
|
33343
33343
|
var import_compiler_runtime$14 = require_compiler_runtime();
|
|
33344
33344
|
EmptyState = (e) => {
|
|
33345
|
-
let t = (0, import_compiler_runtime$14.c)(
|
|
33346
|
-
t[0] === i ?
|
|
33347
|
-
let
|
|
33348
|
-
return t[2] !== n || t[3] !== o ? (
|
|
33349
|
-
className:
|
|
33345
|
+
let t = (0, import_compiler_runtime$14.c)(6), { content: n, className: i, style: o } = e, s;
|
|
33346
|
+
t[0] === i ? s = t[1] : (s = cn("text-sm text-muted-foreground py-1", i), t[0] = i, t[1] = s);
|
|
33347
|
+
let c;
|
|
33348
|
+
return t[2] !== n || t[3] !== o || t[4] !== s ? (c = (0, import_jsx_runtime.jsx)("div", {
|
|
33349
|
+
className: s,
|
|
33350
|
+
style: o,
|
|
33350
33351
|
children: n
|
|
33351
|
-
}), t[2] = n, t[3] = o, t[4] = s) :
|
|
33352
|
+
}), t[2] = n, t[3] = o, t[4] = s, t[5] = c) : c = t[5], c;
|
|
33352
33353
|
};
|
|
33353
33354
|
ErrorState = (e) => {
|
|
33354
33355
|
let t = (0, import_compiler_runtime$14.c)(9), { error: n, style: i, className: o, showIcon: s } = e, c = s === void 0 ? true : s, d;
|
|
@@ -33368,20 +33369,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33368
33369
|
}), t[4] = n.message, t[5] = i, t[6] = d, t[7] = f, t[8] = h) : h = t[8], h;
|
|
33369
33370
|
};
|
|
33370
33371
|
LoadingState = (e) => {
|
|
33371
|
-
let t = (0, import_compiler_runtime$14.c)(
|
|
33372
|
-
t[0] === i ?
|
|
33373
|
-
let s;
|
|
33374
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
33375
|
-
className: "h-4 w-4 animate-spin"
|
|
33376
|
-
}), t[2] = s) : s = t[2];
|
|
33372
|
+
let t = (0, import_compiler_runtime$14.c)(7), { message: n, className: i, style: o } = e, s;
|
|
33373
|
+
t[0] === i ? s = t[1] : (s = cn("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8", i), t[0] = i, t[1] = s);
|
|
33377
33374
|
let c;
|
|
33378
|
-
|
|
33379
|
-
className:
|
|
33375
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
33376
|
+
className: "h-4 w-4 animate-spin"
|
|
33377
|
+
}), t[2] = c) : c = t[2];
|
|
33378
|
+
let d;
|
|
33379
|
+
return t[3] !== n || t[4] !== o || t[5] !== s ? (d = (0, import_jsx_runtime.jsxs)("div", {
|
|
33380
|
+
className: s,
|
|
33381
|
+
style: o,
|
|
33380
33382
|
children: [
|
|
33381
|
-
|
|
33383
|
+
c,
|
|
33382
33384
|
n
|
|
33383
33385
|
]
|
|
33384
|
-
}), t[3] = n, t[4] = o, t[5] =
|
|
33386
|
+
}), t[3] = n, t[4] = o, t[5] = s, t[6] = d) : d = t[6], d;
|
|
33385
33387
|
};
|
|
33386
33388
|
ColumnPreviewContainer = (e) => {
|
|
33387
33389
|
let t = (0, import_compiler_runtime$14.c)(5), { children: n, className: i } = e, o;
|
|
@@ -35981,7 +35983,7 @@ ${d}`,
|
|
|
35981
35983
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
35982
35984
|
}
|
|
35983
35985
|
}
|
|
35984
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.11-
|
|
35986
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.11-dev8");
|
|
35985
35987
|
showCodeInRunModeAtom = atom(true);
|
|
35986
35988
|
atom(null);
|
|
35987
35989
|
var import_compiler_runtime = require_compiler_runtime();
|