@marimo-team/islands 0.25.3-dev20 → 0.25.3-dev23
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-CNMliVzw.js → ConnectedDataExplorerComponent-DfG3PRaJ.js} +9 -9
- package/dist/{ErrorBoundary-DAPIRYqd.js → ErrorBoundary-h0Ea26dF.js} +8 -8
- package/dist/{abnfDiagram-VCTEODGH-D-Ez91gV.js → abnfDiagram-VCTEODGH-B3w-XWX8.js} +2 -2
- package/dist/{any-language-editor-DZ_YTVus.js → any-language-editor-D4q-IFcM.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-CTpcNtO8.js → architectureDiagram-5GKGNRK7-C18U9A6k.js} +1 -1
- package/dist/{chat-ui-DaHynk8g.js → chat-ui-w8SVynkn.js} +1096 -1096
- package/dist/{check-EDwSwP89.js → check-BMKBBrdc.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DGxi-zeo.js → chunk-IMKFNOWR-CrS5bzqW.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CV9J3rAB.js → chunk-SHT3W25Y-StpvPvUG.js} +1 -1
- package/dist/{chunk-SVP7TREG-BL-9Fqgg.js → chunk-SVP7TREG-CBXjbYZC.js} +1 -1
- package/dist/{chunk-TICWLB2K-Cu_XMjDM.js → chunk-TICWLB2K-Dp6bIb-q.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-BXXV13Hq.js → classDiagram-ZZMXUADV-BFYuxV5g.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-B7FXJ1Cp.js → classDiagram-v2-VYDZK3BY-D_tjXVMl.js} +2 -2
- package/dist/{code-visibility-DkCqn-PO.js → code-visibility-vqPDeo1_.js} +5 -5
- package/dist/{common-DsUPhkD6.js → common-DNPxRLm_.js} +6265 -6262
- package/dist/{copy-icon-Ft7t9bqz.js → copy-icon-BgUO8jsi.js} +2 -2
- package/dist/{cynefinDiagram-5FMLGOSQ-CH96rwba.js → cynefinDiagram-5FMLGOSQ-DSgYrHB2.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-BD3PmpFY.js → dagre-GXQ25YYZ-GYlruCBf.js} +1 -1
- package/dist/{data-grid-overlay-editor-D7UuVsgB.js → data-grid-overlay-editor-B9QxYH-I.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BsSJJldB.js → diagram-S7CK7UJ4-DRu5LX5_.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-muQtNZc4.js → diagram-UQ7AKVKN-DD7uiejP.js} +1 -1
- package/dist/{diagram-VX7I27RA-CdhuZAqR.js → diagram-VX7I27RA-ByH9KAJJ.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BD8mXjOj.js → diagram-Z3DM3KII-BsQHPRke.js} +1 -1
- package/dist/{dialog-CEBFZNyc.js → dialog-Cc479ZEH.js} +24 -24
- package/dist/{dropdown-menu-CP_qCYHC.js → dropdown-menu-DHP9P4VE.js} +790 -790
- package/dist/{ebnfDiagram-PWID7BFC-BIN1sweE.js → ebnfDiagram-PWID7BFC-CQRK5_eT.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-Ctp5cfoN.js → erDiagram-RLTQ6QDP-BKtWrDVh.js} +1 -1
- package/dist/{error-banner-D-WCIiMt.js → error-banner-CFPHFw4h.js} +16 -16
- package/dist/{error-entries-Bv6bZPF3.js → error-entries-Damuuclv.js} +983 -985
- package/dist/{feedback-button-wnAMXOGA.js → feedback-button-BPcyKSZd.js} +28 -28
- package/dist/{flowDiagram-HODETNUW-3EfLrlFb.js → flowDiagram-HODETNUW-1IN-ih2E.js} +2 -2
- package/dist/{formats-27CW_UP4.js → formats-X4mMQWzX.js} +1 -1
- package/dist/{glide-data-editor-KvS90MGh.js → glide-data-editor-BIYjd9hQ.js} +10 -10
- package/dist/{glide-utils-DJyqh0EM.js → glide-utils-DM9zBO4W.js} +2 -2
- package/dist/{globals-yruoELTW.js → globals-BX22lYk2.js} +3 -3
- package/dist/{html-to-image-Bf8QMGi4.js → html-to-image-BdA59IUD.js} +60 -60
- package/dist/{infoDiagram-27XIBGKW-DipQoHxl.js → infoDiagram-27XIBGKW-CkB-zr4p.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DgFMjSGz.js → ishikawaDiagram-5VMMS53U-wlyLjBmM.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-w1ACVjgl.js → kanban-definition-UXKFOSKX-C2usY0i-.js} +1 -1
- package/dist/{label-BDKF3Afc.js → label-DoysmLMW.js} +1 -1
- package/dist/main.js +722 -723
- package/dist/{mermaid-CHo49Yv-.js → mermaid-BA-Z6wGL.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-CrT0KSfX.js → mindmap-definition-YA3MSWOX-nKOWS8RR.js} +1 -1
- package/dist/{number-overlay-editor-R2i0FdxV.js → number-overlay-editor-DK-HbLsV.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BqvywNJA.js → pegDiagram-XKGWAZYB-Dac9EIKD.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BfxJ_XCc.js → pieDiagram-E7YTZNPT-B7S-DsW_.js} +1 -1
- package/dist/{process-output-BZg56CCb.js → process-output-CTPTtxXB.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-8vFLVTPu.js → railroadDiagram-O6MQD6OU-Cfa5Q-hr.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-a_MxGvxe.js → requirementDiagram-BXWQKSXE-d8zXCJIk.js} +1 -1
- package/dist/{reveal-component-C42-YBfQ.js → reveal-component-Dl9ZugRb.js} +9 -9
- package/dist/{select-BButFi-d.js → select-DemoKT4G.js} +199 -199
- package/dist/{sequenceDiagram-WJ2MYXX4-CXFMnxGh.js → sequenceDiagram-WJ2MYXX4-b6pei3lJ.js} +1 -1
- package/dist/{spec-BwarBpUJ.js → spec-BJzgmvVa.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-DQeA_CwI.js → stateDiagram-D77RDMKH-Be-xSpaZ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BxxQucm1.js → stateDiagram-v2-MP3YSRHH-5Y-FxesJ.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-Do6L-cYg.js → swimlanes-42K2YHIH-nRRl4NU0.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-DUzPvSVU.js → swimlanesDiagram-VR7AAH4N-BS79510V.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-D3c46WM5.js → timeline-definition-24CTP7MA-Cfzf8WPf.js} +1 -1
- package/dist/toDate-B5mIgxwZ.js +1185 -0
- package/dist/{toast-B9UMEi8u.js → toast-PkdZraM8.js} +221 -221
- package/dist/{tooltip-BO1REbqs.js → tooltip-CtBZ5q8p.js} +51 -51
- package/dist/{use-restore-focus-BEM7sFWl.js → use-restore-focus-CKjfFjLM.js} +1 -1
- package/dist/{useAsyncData-Deh5kszT.js → useAsyncData-BD534XmW.js} +1 -1
- package/dist/{useDateFormatter-D8XruNGG.js → useDateFormatter-DkajGwwd.js} +2 -2
- package/dist/{useDeepCompareMemoize-DXwzRINI.js → useDeepCompareMemoize-C72_RNsu.js} +1 -1
- package/dist/{useLifecycle-j7D9uD1o.js → useLifecycle-BGWzTwHK.js} +2 -2
- package/dist/{useTheme-CRnjkku0.js → useTheme-BhQvec43.js} +83 -83
- package/dist/{vega-component-BeF9dfyO.js → vega-component-DfcYgj-Y.js} +7 -7
- package/dist/{vennDiagram-4TSXK5OY-BSZD8JcZ.js → vennDiagram-4TSXK5OY-CeY6Z1xZ.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-48cUWkfA.js → wardleyDiagram-VM6X3IG4-Cxs9NtVi.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-CswYgYeu.js → xychartDiagram-S5SC5T6Z-DNWbvPK7.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/chrome/wrapper/__tests__/attachment-status.test.tsx +12 -18
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +12 -23
- package/src/core/attachments/state.ts +5 -8
- package/src/core/host/__tests__/attachments.test.ts +57 -0
- package/src/core/host/__tests__/notebook-client.test.ts +131 -1
- package/src/core/host/events.ts +1 -0
- package/src/core/host/notebook-client.ts +20 -2
- package/src/core/host/resources/attachments.ts +19 -0
- package/src/core/islands/__tests__/bootstrap.test.ts +0 -26
- package/src/core/islands/bootstrap.ts +0 -1
- package/src/core/runtime/__tests__/runtime.test.ts +1 -1
- package/src/core/runtime/runtime.ts +4 -3
- package/src/core/websocket/__tests__/useNotebookClient.hook.test.tsx +30 -0
- package/src/core/websocket/__tests__/useNotebookSession.hook.test.tsx +0 -171
- package/src/core/websocket/state.ts +7 -0
- package/src/core/websocket/useNotebookClient.ts +9 -1
- package/src/core/websocket/useNotebookSession.tsx +0 -8
- package/src/utils/once.ts +19 -19
- package/dist/toDate-UtiwmnH2.js +0 -705
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e } from "./src-CA_m4ONl.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-DKKS1VyV.js";
|
|
3
3
|
import "./chunk-DU6HZSFF-BwiyaNpg.js";
|
|
4
|
-
import "./mermaid-
|
|
4
|
+
import "./mermaid-BA-Z6wGL.js";
|
|
5
5
|
import { f as n, t as r } from "./mermaid-parser.core-DxuSfYwJ.js";
|
|
6
|
-
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-
|
|
6
|
+
import { n as i, r as a, t as o } from "./chunk-SVP7TREG-CBXjbYZC.js";
|
|
7
7
|
import { t as s } from "./chunk-JWPE2WC7-DJvv1t8U.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/ebnfDiagram-PWID7BFC.mjs
|
|
9
9
|
var c = n().RailroadEbnf.parser.LangiumParser, l = /* @__PURE__ */ t((e) => {
|
|
@@ -10,7 +10,7 @@ import "./chunk-4HAMMTFA-D4eFPyFh.js";
|
|
|
10
10
|
import "./chunk-GVQU2GXP-Cwbt-lF0.js";
|
|
11
11
|
import "./chunk-L3NEJ4N5-n-zgIVSy.js";
|
|
12
12
|
import "./chunk-OSK3NFVY-DXa-Cxbn.js";
|
|
13
|
-
import { n as _, r as v } from "./mermaid-
|
|
13
|
+
import { n as _, r as v } from "./mermaid-BA-Z6wGL.js";
|
|
14
14
|
import { t as y } from "./chunk-XXDRQBXY-Dnl5VBqG.js";
|
|
15
15
|
import { t as b } from "./chunk-POPQ4Y6H-hYOXbYH_.js";
|
|
16
16
|
//#region ../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-RLTQ6QDP.mjs
|
|
@@ -3,14 +3,14 @@ import { g as t, h as n, n as r, p as i, r as a } from "./button-CvjkwdSk.js";
|
|
|
3
3
|
import { t as o } from "./react-sHtZdjeP.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-CldRdSsv.js";
|
|
5
5
|
import { t as c } from "./jsx-runtime-3BD1kT0s.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Et as l, L as u, P as d, Q as f, Tt as p, at as m, ct as h, it as g, lt as _, nt as v, ot as y, rt as b, st as ee, t as te, tt as ne, ut as x } from "./use-restore-focus-CKjfFjLM.js";
|
|
7
7
|
//#region ../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.23_@types+react-dom@19.3.0_@types+react@19.3.0__@types_490aa920fbab0adbc2c4344386ab6831/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
|
|
8
8
|
var S = /* @__PURE__ */ e(o(), 1), C = c(), re = Object.defineProperty, w = (e, t) => re(e, "name", {
|
|
9
9
|
value: t,
|
|
10
10
|
configurable: !0
|
|
11
|
-
}), [ie, ae] =
|
|
11
|
+
}), [ie, ae] = l("AlertDialog", [x]), T = x(), E = /* @__PURE__ */ w((e) => {
|
|
12
12
|
let { __scopeAlertDialog: t, ...n } = e, r = T(t);
|
|
13
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
13
|
+
return /* @__PURE__ */ (0, C.jsx)(v, {
|
|
14
14
|
...r,
|
|
15
15
|
...n,
|
|
16
16
|
modal: !0
|
|
@@ -18,7 +18,7 @@ var S = /* @__PURE__ */ e(o(), 1), C = c(), re = Object.defineProperty, w = (e,
|
|
|
18
18
|
}, "AlertDialog");
|
|
19
19
|
S.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
20
20
|
let { __scopeAlertDialog: n, ...r } = e, i = T(n);
|
|
21
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
21
|
+
return /* @__PURE__ */ (0, C.jsx)(_, {
|
|
22
22
|
...i,
|
|
23
23
|
...r,
|
|
24
24
|
ref: t
|
|
@@ -26,13 +26,13 @@ S.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
|
26
26
|
}, "AlertDialogTrigger"));
|
|
27
27
|
var D = /* @__PURE__ */ w((e) => {
|
|
28
28
|
let { __scopeAlertDialog: t, ...n } = e, r = T(t);
|
|
29
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
29
|
+
return /* @__PURE__ */ (0, C.jsx)(ee, {
|
|
30
30
|
...r,
|
|
31
31
|
...n
|
|
32
32
|
});
|
|
33
33
|
}, "AlertDialogPortal"), O = S.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
34
34
|
let { __scopeAlertDialog: n, ...r } = e, i = T(n);
|
|
35
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
35
|
+
return /* @__PURE__ */ (0, C.jsx)(y, {
|
|
36
36
|
...i,
|
|
37
37
|
...r,
|
|
38
38
|
ref: t
|
|
@@ -42,12 +42,12 @@ var D = /* @__PURE__ */ w((e) => {
|
|
|
42
42
|
return /* @__PURE__ */ (0, C.jsx)(k, {
|
|
43
43
|
scope: n,
|
|
44
44
|
cancelRef: l,
|
|
45
|
-
children: /* @__PURE__ */ (0, C.jsx)(
|
|
45
|
+
children: /* @__PURE__ */ (0, C.jsx)(g, {
|
|
46
46
|
role: "alertdialog",
|
|
47
47
|
...o,
|
|
48
48
|
...a,
|
|
49
49
|
ref: c,
|
|
50
|
-
onOpenAutoFocus:
|
|
50
|
+
onOpenAutoFocus: p(a.onOpenAutoFocus, (e) => {
|
|
51
51
|
e.preventDefault(), l.current?.focus({ preventScroll: !0 });
|
|
52
52
|
}),
|
|
53
53
|
onPointerDownOutside: (e) => e.preventDefault(),
|
|
@@ -57,35 +57,35 @@ var D = /* @__PURE__ */ w((e) => {
|
|
|
57
57
|
});
|
|
58
58
|
}, "AlertDialogContent")), ce = S.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
59
59
|
let { __scopeAlertDialog: n, ...r } = e, i = T(n);
|
|
60
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
60
|
+
return /* @__PURE__ */ (0, C.jsx)(h, {
|
|
61
61
|
...i,
|
|
62
62
|
...r,
|
|
63
63
|
ref: t
|
|
64
64
|
});
|
|
65
65
|
}, "AlertDialogTitle")), le = S.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
66
66
|
let { __scopeAlertDialog: n, ...r } = e, i = T(n);
|
|
67
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
67
|
+
return /* @__PURE__ */ (0, C.jsx)(m, {
|
|
68
68
|
...i,
|
|
69
69
|
...r,
|
|
70
70
|
ref: t
|
|
71
71
|
});
|
|
72
72
|
}, "AlertDialogDescription")), ue = S.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
73
73
|
let { __scopeAlertDialog: n, ...r } = e, i = T(n);
|
|
74
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
74
|
+
return /* @__PURE__ */ (0, C.jsx)(b, {
|
|
75
75
|
...i,
|
|
76
76
|
...r,
|
|
77
77
|
ref: t
|
|
78
78
|
});
|
|
79
79
|
}, "AlertDialogAction")), de = "AlertDialogCancel", fe = S.forwardRef(/* @__PURE__ */ w(function(e, t) {
|
|
80
80
|
let { __scopeAlertDialog: n, ...r } = e, { cancelRef: a } = oe(de, n), o = T(n), s = i(t, a);
|
|
81
|
-
return /* @__PURE__ */ (0, C.jsx)(
|
|
81
|
+
return /* @__PURE__ */ (0, C.jsx)(b, {
|
|
82
82
|
...o,
|
|
83
83
|
...r,
|
|
84
84
|
ref: s
|
|
85
85
|
});
|
|
86
|
-
}, "AlertDialogCancel")), pe = E, A = D, j = O, M = se, N = ue, P = fe, F = ce, I = le, L = s(), R = pe, z =
|
|
86
|
+
}, "AlertDialogCancel")), pe = E, A = D, j = O, M = se, N = ue, P = fe, F = ce, I = le, L = s(), R = pe, z = f(({ children: e, ...t }) => /* @__PURE__ */ (0, C.jsx)(A, {
|
|
87
87
|
...t,
|
|
88
|
-
children: /* @__PURE__ */ (0, C.jsx)(
|
|
88
|
+
children: /* @__PURE__ */ (0, C.jsx)(ne, { children: /* @__PURE__ */ (0, C.jsx)("div", {
|
|
89
89
|
className: "fixed inset-0 z-50 flex items-end justify-center sm:items-start sm:top-[15%]",
|
|
90
90
|
children: e
|
|
91
91
|
}) })
|
|
@@ -110,7 +110,7 @@ B.displayName = j.displayName;
|
|
|
110
110
|
var V = S.forwardRef((e, t) => {
|
|
111
111
|
let r = (0, L.c)(11), i, a;
|
|
112
112
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
113
|
-
let o =
|
|
113
|
+
let o = te(), s;
|
|
114
114
|
r[3] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, C.jsx)(B, {}), r[3] = s) : s = r[3];
|
|
115
115
|
let c;
|
|
116
116
|
r[4] === i ? c = r[5] : (c = n("fixed z-50 grid w-full max-w-2xl scale-100 gap-4 border bg-background p-6 opacity-100 shadow-sm animate-in fade-in-90 slide-in-from-bottom-10 sm:rounded-lg sm:zoom-in-90 sm:slide-in-from-bottom-0 md:w-full", i), r[4] = i, r[5] = c);
|
|
@@ -214,7 +214,7 @@ var J = S.forwardRef((e, t) => {
|
|
|
214
214
|
J.displayName = P.displayName;
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region src/utils/errors.ts
|
|
217
|
-
var Y =
|
|
217
|
+
var Y = d({ detail: u() }), X = d({ error: u() });
|
|
218
218
|
function Z(e) {
|
|
219
219
|
if (!e) return "Unknown error";
|
|
220
220
|
if (e instanceof Error) {
|