@marimo-team/islands 0.23.10-dev34 → 0.23.10-dev36
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/{ConnectedDataExplorerComponent-DmBropAy.js → ConnectedDataExplorerComponent-Z3RP7Vmm.js} +1 -1
- package/dist/{any-language-editor-DNmoSiWL.js → any-language-editor-CAgFD4Kd.js} +1 -1
- package/dist/{chat-ui-D6oraHT2.js → chat-ui-CJOUDE_t.js} +3 -3
- package/dist/{code-visibility-D36VZAff.js → code-visibility-DC9HexXh.js} +3 -3
- package/dist/{error-banner-Cc0I3C9e.js → error-banner-CJXYJ6Sb.js} +10 -5
- package/dist/{html-to-image-UEH5lFDZ.js → html-to-image-D3CbHZwH.js} +1 -1
- package/dist/main.js +1030 -1020
- package/dist/{mermaid-zuLgJ8J8.js → mermaid-BotvIKg9.js} +1 -1
- package/dist/{process-output-CyMLTogj.js → process-output-MAetFLBT.js} +1 -1
- package/dist/{reveal-component-DyqkAt3A.js → reveal-component-BBpwXvOt.js} +2 -2
- package/dist/{vega-component-9h1ACS78.js → vega-component-DGPUhbDs.js} +1 -1
- package/package.json +1 -1
- package/src/plugins/core/__test__/registerReactComponent.test.ts +96 -0
- package/src/plugins/core/registerReactComponent.tsx +42 -10
- package/src/utils/errors.ts +9 -0
|
@@ -10,7 +10,7 @@ import { a as SelectGroup, c as SelectSeparator, i as SelectContent, l as Select
|
|
|
10
10
|
import "./react-dom-BTJzcVJ9.js";
|
|
11
11
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
12
12
|
import "./zod-aLSua2NL.js";
|
|
13
|
-
import { n as ErrorBanner } from "./error-banner-
|
|
13
|
+
import { n as ErrorBanner } from "./error-banner-CJXYJ6Sb.js";
|
|
14
14
|
import { t as Label } from "./label-CC4ytI1X.js";
|
|
15
15
|
import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
|
|
16
16
|
import { _ as useAtomValue, b as atom, h as Provider, n as useTheme, x as createStore } from "./useTheme-DEhDzATN.js";
|
|
@@ -5,7 +5,7 @@ import "./compiler-runtime-CEbnTgxf.js";
|
|
|
5
5
|
import "./react-dom-BTJzcVJ9.js";
|
|
6
6
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
7
7
|
import "./zod-aLSua2NL.js";
|
|
8
|
-
import { n as ErrorBanner } from "./error-banner-
|
|
8
|
+
import { n as ErrorBanner } from "./error-banner-CJXYJ6Sb.js";
|
|
9
9
|
import { f as CopyClipboardIcon } from "./extends-D_hDsj6R.js";
|
|
10
10
|
import "./dist-U4F-tbMs.js";
|
|
11
11
|
import "./dist-Dv_Y15yk.js";
|
|
@@ -6,17 +6,17 @@ 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-D3CbHZwH.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-BNjes6Yx.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 { a as NumberField, d as DropdownMenuContent, p as DropdownMenuItem, r as Input, u as DropdownMenu, x as DropdownMenuTrigger } from "./input-CMYy4hzj.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-MAetFLBT.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";
|
|
19
|
-
import { n as ErrorBanner } from "./error-banner-
|
|
19
|
+
import { n as ErrorBanner } from "./error-banner-CJXYJ6Sb.js";
|
|
20
20
|
import { t as Label } from "./label-CC4ytI1X.js";
|
|
21
21
|
import { t as Tooltip } from "./tooltip-DpcyNkQ2.js";
|
|
22
22
|
import { f as CopyClipboardIcon } from "./extends-D_hDsj6R.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-D3CbHZwH.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";
|
|
@@ -19,7 +19,7 @@ import { n as clsx_default } from "./clsx-CIWA5tNO.js";
|
|
|
19
19
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
20
20
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
21
21
|
import { Q as withSmartCollisionBoundary, Y as MAX_HEIGHT_OFFSET, Z as withFullScreenAsRoot, _t as createContextScope, dt as useId$2, et as StyleNamespace, ft as Presence, ht as composeEventHandlers, pt as useControllableState, ut as useCallbackRef, vt as Primitive$1 } from "./zod-aLSua2NL.js";
|
|
22
|
-
import { a as
|
|
22
|
+
import { a as prettyError, c as Portal$1, l as Root$4, n as ErrorBanner, o as Content$1, s as Overlay, t as Banner } from "./error-banner-CJXYJ6Sb.js";
|
|
23
23
|
import { a as TooltipRoot, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-DpcyNkQ2.js";
|
|
24
24
|
import { f as CopyClipboardIcon, t as _extends } from "./extends-D_hDsj6R.js";
|
|
25
25
|
import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
|
|
@@ -35981,7 +35981,7 @@ ${d}`,
|
|
|
35981
35981
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
35982
35982
|
}
|
|
35983
35983
|
}
|
|
35984
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.10-
|
|
35984
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.10-dev36");
|
|
35985
35985
|
showCodeInRunModeAtom = atom(true);
|
|
35986
35986
|
atom(null);
|
|
35987
35987
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -359,6 +359,10 @@ var CellNotInitializedError = class extends Error {
|
|
|
359
359
|
constructor(t = "The cell containing this UI element has not been run yet. Please run the cell first.") {
|
|
360
360
|
super(t), this.name = "CellNotInitializedError";
|
|
361
361
|
}
|
|
362
|
+
}, FunctionNotFoundError = class extends Error {
|
|
363
|
+
constructor(t = "This UI element could not reach its function on the kernel. Try re-running the cell.") {
|
|
364
|
+
super(t), this.name = "FunctionNotFoundError";
|
|
365
|
+
}
|
|
362
366
|
}, import_compiler_runtime$2 = require_compiler_runtime();
|
|
363
367
|
function useRestoreFocus() {
|
|
364
368
|
let t = (0, import_compiler_runtime$2.c)(3), [F, I] = (0, import_react.useState)(null), L;
|
|
@@ -608,12 +612,13 @@ const Banner = (t) => {
|
|
|
608
612
|
}), F[10] = I, F[11] = V, F[12] = H, F[13] = U) : U = F[13], U;
|
|
609
613
|
};
|
|
610
614
|
export {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
615
|
+
prettyError as a,
|
|
616
|
+
Portal$1 as c,
|
|
617
|
+
FunctionNotFoundError as i,
|
|
618
|
+
Root as l,
|
|
614
619
|
ErrorBanner as n,
|
|
615
|
-
|
|
620
|
+
Content as o,
|
|
616
621
|
CellNotInitializedError as r,
|
|
617
|
-
|
|
622
|
+
Overlay as s,
|
|
618
623
|
Banner as t
|
|
619
624
|
};
|
|
@@ -28031,7 +28031,7 @@ ${n.sqlString}
|
|
|
28031
28031
|
hasConsoleOutput: (o == null ? void 0 : o.consoleOutputs) != null
|
|
28032
28032
|
};
|
|
28033
28033
|
}
|
|
28034
|
-
LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-
|
|
28034
|
+
LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-CAgFD4Kd.js"));
|
|
28035
28035
|
var import_compiler_runtime$1 = require_compiler_runtime(), extensions = [
|
|
28036
28036
|
EditorView.lineWrapping
|
|
28037
28037
|
];
|