@marimo-team/islands 0.23.17-dev1 → 0.23.17-dev13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-ui-DsZJj75A.js → chat-ui-DH3hwWoI.js} +2 -2
- package/dist/{common-BGCQJb-W.js → common-D8DGPf0N.js} +5 -5
- package/dist/{html-to-image-CZ1kLKkq.js → html-to-image-CxlSazqu.js} +2095 -2088
- package/dist/main.js +5 -5
- package/dist/{process-output-bVfbcx5_.js → process-output-B24cDGzV.js} +1 -1
- package/dist/{reveal-component-NNi374so.js → reveal-component-UfXDaVe-.js} +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +5 -0
- package/src/components/databases/icons/huggingface.svg +8 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +1 -1
- package/src/components/editor/actions/export-dialog/__tests__/export-command.test.ts +115 -0
- package/src/components/editor/actions/export-dialog/__tests__/export-dialog.test.tsx +458 -0
- package/src/components/editor/actions/export-dialog/__tests__/export-notebook.test.ts +178 -0
- package/src/components/editor/actions/export-dialog/__tests__/state.test.ts +295 -0
- package/src/components/editor/actions/export-dialog/__tests__/use-export-dialog.test.tsx +287 -0
- package/src/components/editor/actions/export-dialog/export-command.ts +149 -0
- package/src/components/editor/actions/export-dialog/export-dialog.tsx +194 -0
- package/src/components/editor/actions/export-dialog/export-notebook.ts +98 -0
- package/src/components/editor/actions/export-dialog/format-notice.tsx +166 -0
- package/src/components/editor/actions/export-dialog/format-options.tsx +531 -0
- package/src/components/editor/actions/export-dialog/state.ts +339 -0
- package/src/components/editor/actions/export-dialog/use-export-dialog.ts +372 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +1 -21
- package/src/components/editor/actions/useNotebookActions.tsx +72 -170
- package/src/components/editor/chrome/panels/outline/__tests__/useActiveOutline.test.ts +26 -0
- package/src/components/editor/connections/add-connection-dialog.tsx +1 -1
- package/src/components/editor/connections/quick-add-data-sources.tsx +14 -7
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +14 -0
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +20 -0
- package/src/components/editor/connections/storage/add-storage-form.tsx +10 -0
- package/src/components/editor/connections/storage/as-code.ts +19 -1
- package/src/components/editor/connections/storage/schemas.ts +19 -0
- package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +187 -0
- package/src/components/editor/controls/notebook-menu-dropdown.tsx +4 -2
- package/src/components/storage/__tests__/storage-snippets.test.ts +88 -0
- package/src/components/storage/components.tsx +2 -0
- package/src/components/storage/storage-snippets.ts +58 -0
- package/src/core/__tests__/mode.test.ts +85 -0
- package/src/core/dom/outline.ts +25 -2
- package/src/core/mode.ts +11 -9
- package/src/core/network/__tests__/requests-lazy.test.ts +1 -0
- package/src/core/storage/types.ts +1 -0
- package/src/utils/__tests__/download.test.tsx +6 -4
- package/src/utils/download.ts +3 -1
- package/src/utils/shell.ts +17 -0
|
@@ -6,13 +6,13 @@ import { c as useEventListener, g as Logger, h as cn, t as Button } from "./butt
|
|
|
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-DNq8q3zw.js";
|
|
9
|
-
import { Bn as Info, Bt as PluralWord, C as Accordion, E as AccordionTrigger, En as Anchor2, Ft as variablesAtom, Gt as allTablesAtom, H as renderHTML, Kn as CircleX, Kt as dataSourceConnectionsAtom, Mn as Wrench, Nn as Trash2, O as ChatBubbleIcon, Pt as jotaiJsonStorage, Q as notebookAtom, Rn as LoaderCircle, S as AIContextRegistry, T as AccordionItem, Un as ExternalLink, Vn as FileText, Yt as getRequestClient, b as contextToXml, c as Popover, d as PopoverTrigger, f as isOutputEmpty, g as formatDatasourceContextForCell, h as DatasourceContextProvider, ht as displayCellName, in as singleFacet, jt as generateUUID, kt as moveToEndOfEditor, ln as ZodLocalStorage, mn as CellOutputId, n as Spinner, nn as isMarimoErrorsMime, qt as getTableType, r as MarkdownRenderer, rn as isTracebackMime, st as parseHtmlContent, t as toPng, tn as isErrorMime, u as PopoverContent, v as Boosts, w as AccordionContent, wn as atomWithStorage, wt as createVariableInfoElement, x as AIContextProvider, y as Sections } from "./html-to-image-
|
|
9
|
+
import { Bn as Info, Bt as PluralWord, C as Accordion, E as AccordionTrigger, En as Anchor2, Ft as variablesAtom, Gt as allTablesAtom, H as renderHTML, Kn as CircleX, Kt as dataSourceConnectionsAtom, Mn as Wrench, Nn as Trash2, O as ChatBubbleIcon, Pt as jotaiJsonStorage, Q as notebookAtom, Rn as LoaderCircle, S as AIContextRegistry, T as AccordionItem, Un as ExternalLink, Vn as FileText, Yt as getRequestClient, b as contextToXml, c as Popover, d as PopoverTrigger, f as isOutputEmpty, g as formatDatasourceContextForCell, h as DatasourceContextProvider, ht as displayCellName, in as singleFacet, jt as generateUUID, kt as moveToEndOfEditor, ln as ZodLocalStorage, mn as CellOutputId, n as Spinner, nn as isMarimoErrorsMime, qt as getTableType, r as MarkdownRenderer, rn as isTracebackMime, st as parseHtmlContent, t as toPng, tn as isErrorMime, u as PopoverContent, v as Boosts, w as AccordionContent, wn as atomWithStorage, wt as createVariableInfoElement, x as AIContextProvider, y as Sections } from "./html-to-image-CxlSazqu.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
11
11
|
import { u as createLucideIcon } from "./dist-DIlxLFXG.js";
|
|
12
12
|
import { C as logNever, I as X, R as ChevronDown, t as Strings } from "./strings-DIy9NAmg.js";
|
|
13
13
|
import { C as DropdownMenuTrigger, a as NumberField, f as DropdownMenu, h as DropdownMenuItem, p as DropdownMenuContent, r as Input } from "./input-C5K4VBvB.js";
|
|
14
14
|
import { p as isUrl, w as CircleQuestionMark } from "./toDate-CqhBWjvO.js";
|
|
15
|
-
import { a as MarimoIncomingMessageEvent, d as fileDetailsToBlob, f as Square, n as blobToString, p as File$1, t as processOutput } from "./process-output-
|
|
15
|
+
import { a as MarimoIncomingMessageEvent, d as fileDetailsToBlob, f as Square, n as blobToString, p as File$1, t as processOutput } from "./process-output-B24cDGzV.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-BUcyXSdR.js";
|
|
@@ -6,7 +6,7 @@ import { _ as Functions, f as composeRefs, g as Logger, h as cn, m as Events, n
|
|
|
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-DNq8q3zw.js";
|
|
9
|
-
import { B as isDataURLString, Bn as Info, Bt as PluralWord, C as Accordion, Dn as Close$1, Dt as toggleBreakpoint, E as AccordionTrigger, H as renderHTML, Hn as Eye, Ht as DATA_TYPE_ICON, In as NotebookPen, It as getFeatureFlag, J as getCellEditorView, Jn as Braces, Kn as CircleX, L as base64ToUint8Array, Ln as Minus, M as DotFilledIcon, Mn as Wrench, Mt as useChromeActions, N as PinLeftIcon, Nn as Trash2, Nt as adaptForLocalStorage, Ot as goToCellLine, P as PinRightIcon, Pt as jotaiJsonStorage, Q as notebookAtom, Rn as LoaderCircle, Sn as jsonToMarkdown, St as isRecord, T as AccordionItem, Un as ExternalLink, Ut as getDataTypeColor, Vn as FileText, Xn as import_lib, Yn as esm_default, Yt as getRequestClient, Zt as useRequestClient, _ as getDatasourceContext, an as elementContainsMarimoCellFile, c as Popover, ct as AnsiUp, d as PopoverTrigger, ft as sanitizeHtml, gn as SCRATCH_CELL_ID, hn as HTMLCellId, ht as displayCellName, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mn as CellOutputId, mt as getCellDomProps, n as Spinner, nt as useCellActions, on as extractAllTracebackInfo, pt as DATA_CELL_ID, r as MarkdownRenderer, rt as useCellIds, sn as getTracebackInfo, t as toPng, u as PopoverContent, un as filenameAtom, w as AccordionContent, wn as atomWithStorage, xn as jsonParseWithSpecialChar, yt as Checkbox, z as extractBase64FromDataURL, __tla as __tla_0 } from "./html-to-image-
|
|
9
|
+
import { B as isDataURLString, Bn as Info, Bt as PluralWord, C as Accordion, Dn as Close$1, Dt as toggleBreakpoint, E as AccordionTrigger, H as renderHTML, Hn as Eye, Ht as DATA_TYPE_ICON, In as NotebookPen, It as getFeatureFlag, J as getCellEditorView, Jn as Braces, Kn as CircleX, L as base64ToUint8Array, Ln as Minus, M as DotFilledIcon, Mn as Wrench, Mt as useChromeActions, N as PinLeftIcon, Nn as Trash2, Nt as adaptForLocalStorage, Ot as goToCellLine, P as PinRightIcon, Pt as jotaiJsonStorage, Q as notebookAtom, Rn as LoaderCircle, Sn as jsonToMarkdown, St as isRecord, T as AccordionItem, Un as ExternalLink, Ut as getDataTypeColor, Vn as FileText, Xn as import_lib, Yn as esm_default, Yt as getRequestClient, Zt as useRequestClient, _ as getDatasourceContext, an as elementContainsMarimoCellFile, c as Popover, ct as AnsiUp, d as PopoverTrigger, ft as sanitizeHtml, gn as SCRATCH_CELL_ID, hn as HTMLCellId, ht as displayCellName, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mn as CellOutputId, mt as getCellDomProps, n as Spinner, nt as useCellActions, on as extractAllTracebackInfo, pt as DATA_CELL_ID, r as MarkdownRenderer, rt as useCellIds, sn as getTracebackInfo, t as toPng, u as PopoverContent, un as filenameAtom, w as AccordionContent, wn as atomWithStorage, xn as jsonParseWithSpecialChar, yt as Checkbox, z as extractBase64FromDataURL, __tla as __tla_0 } from "./html-to-image-CxlSazqu.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-DIlxLFXG.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CMJGqBaY.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-Bt2qr_XS.js";
|
|
@@ -33922,13 +33922,13 @@ ${n}` : "Please fix this error.";
|
|
|
33922
33922
|
let { element: t, filename: n, prepare: i } = e, o = document.getElementById("App"), s = (o == null ? void 0 : o.scrollTop) ?? 0, c;
|
|
33923
33923
|
i && (c = i(t));
|
|
33924
33924
|
try {
|
|
33925
|
-
downloadByURL(await toPng(t), Filenames.toPNG(n));
|
|
33925
|
+
return downloadByURL(await toPng(t), Filenames.toPNG(n)), true;
|
|
33926
33926
|
} catch (e2) {
|
|
33927
|
-
Logger.error("Error downloading as PNG", e2), toast({
|
|
33927
|
+
return Logger.error("Error downloading as PNG", e2), toast({
|
|
33928
33928
|
title: "Failed to download as PNG",
|
|
33929
33929
|
description: prettyError(e2),
|
|
33930
33930
|
variant: "danger"
|
|
33931
|
-
});
|
|
33931
|
+
}), false;
|
|
33932
33932
|
} finally {
|
|
33933
33933
|
c == null ? void 0 : c(), document.body.classList.contains("printing") && document.body.classList.remove("printing"), requestAnimationFrame(() => {
|
|
33934
33934
|
o == null ? void 0 : o.scrollTo(0, s);
|
|
@@ -36338,7 +36338,7 @@ ${d}`,
|
|
|
36338
36338
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36339
36339
|
}
|
|
36340
36340
|
}
|
|
36341
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-
|
|
36341
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-dev13");
|
|
36342
36342
|
showCodeInRunModeAtom = atom(true);
|
|
36343
36343
|
atom(null);
|
|
36344
36344
|
var import_compiler_runtime = require_compiler_runtime();
|