@marimo-team/islands 0.25.3-dev192 → 0.25.3-dev196
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-BBbOElk3.js → ConnectedDataExplorerComponent-BRuwLOIx.js} +9 -9
- package/dist/{ErrorBoundary-Dw6uRKVk.js → ErrorBoundary-C3Xv3yzV.js} +2 -2
- package/dist/{abnfDiagram-VCTEODGH-DhMT6Uhd.js → abnfDiagram-VCTEODGH-LlJTOOU_.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-BVbEiJLq.js → architectureDiagram-5GKGNRK7-9PQtGLLZ.js} +1 -1
- package/dist/{arrays-R6JsImiT.js → arrays-DA6KkLfq.js} +6 -12
- package/dist/assets/__vite-browser-external-BCJsx8QS.js +1 -0
- package/dist/assets/{worker-C6e9ERyd.js → worker-DodjWT_Z.js} +2 -2
- package/dist/{capabilities-CI4xUPsp.js → capabilities-CvWU-ey_.js} +1 -1
- package/dist/{chat-ui-BguxTQEL.js → chat-ui-Bl2euMBD.js} +93 -93
- package/dist/{chunk-IMKFNOWR-By5hSbJJ.js → chunk-IMKFNOWR-DcXv-BD5.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DFrEYG54.js → chunk-SHT3W25Y-VwnELN23.js} +1 -1
- package/dist/{chunk-SVP7TREG-DFXGc9ew.js → chunk-SVP7TREG-DgQpI5Zi.js} +1 -1
- package/dist/{chunk-TICWLB2K-DZdNIpoZ.js → chunk-TICWLB2K-CTg6VTJT.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-Cgj_eEQA.js → classDiagram-ZZMXUADV-UzmcFrnW.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DLAUrSqj.js → classDiagram-v2-VYDZK3BY-DhjiI6IQ.js} +2 -2
- package/dist/{code-visibility-v_7ijLtx.js → code-visibility-BCcqmP58.js} +38 -42
- package/dist/{common-BUwWHpnK.js → common-DrNB2bY2.js} +849 -849
- package/dist/{cynefinDiagram-5FMLGOSQ-Cikf9AKa.js → cynefinDiagram-5FMLGOSQ-O4ShIbJX.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-C5KEi5_l.js → dagre-GXQ25YYZ-dtHhhcPu.js} +1 -1
- package/dist/{data-grid-overlay-editor-4IZymnXZ.js → data-grid-overlay-editor-TGXV_Hf4.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-BaoBTQjR.js → diagram-S7CK7UJ4-ppPYVZ6W.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-DDufBsUA.js → diagram-UQ7AKVKN-CMZDf--k.js} +1 -1
- package/dist/{diagram-VX7I27RA-CY6RALJ8.js → diagram-VX7I27RA-CFvJdx-C.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Bc-LHsD6.js → diagram-Z3DM3KII-Dt6_uFbv.js} +1 -1
- package/dist/{dropdown-menu-drDjxJyV.js → dropdown-menu-CeaOsjWZ.js} +2 -2
- package/dist/{ebnfDiagram-PWID7BFC-Cz0J-tcC.js → ebnfDiagram-PWID7BFC-DpRFrKK-.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-DTXTDgFu.js → erDiagram-RLTQ6QDP-CqAU4b0u.js} +1 -1
- package/dist/{error-entries-CZ1NQ6Kv.js → error-entries-CYGwr5-O.js} +5596 -6012
- package/dist/feedback-button-PTiPn2GP.js +374 -0
- package/dist/{flowDiagram-HODETNUW-RbwWf2zc.js → flowDiagram-HODETNUW-i8-Gw8HO.js} +2 -2
- package/dist/{formats-DbXnijtH.js → formats-BtoHHy42.js} +1 -1
- package/dist/{glide-data-editor-DU8_EDG5.js → glide-data-editor-BSyexjkB.js} +5 -5
- package/dist/{globals-BeBDOk22.js → globals-B7gkJAxm.js} +2 -2
- package/dist/{html-to-image-D_4_hQ8U.js → html-to-image-Cy5UDpQJ.js} +56 -56
- package/dist/{infoDiagram-27XIBGKW-DlmzZjmI.js → infoDiagram-27XIBGKW-DpfOKdLL.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-EN3TYP_q.js → ishikawaDiagram-5VMMS53U-Dg7mrMG7.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CK_-Ru7Q.js → kanban-definition-UXKFOSKX-QB6e3Jrj.js} +1 -1
- package/dist/main.js +5875 -5876
- package/dist/{mermaid-DU9ZRmkG.js → mermaid-CeWG4Egr.js} +48 -48
- package/dist/{mindmap-definition-YA3MSWOX-C-hqgUvF.js → mindmap-definition-YA3MSWOX-BTz3uTGe.js} +1 -1
- package/dist/{number-overlay-editor-BoIkyh6H.js → number-overlay-editor-Bb91yQ46.js} +1 -1
- package/dist/{once-eG8Vmvjd.js → once-DWGO2mQ2.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-BiMejYPB.js → pegDiagram-XKGWAZYB-3ZIEa3mB.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-B1zCZ1eq.js → pieDiagram-E7YTZNPT-BJAlk046.js} +1 -1
- package/dist/{process-output-DxSCHBWp.js → process-output-q9MTAIMX.js} +2 -2
- package/dist/{railroadDiagram-O6MQD6OU-BLcfaASl.js → railroadDiagram-O6MQD6OU-Dn3bsSRa.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DtBOf52-.js → requirementDiagram-BXWQKSXE-wcOmQQCL.js} +1 -1
- package/dist/{reveal-component-5M3a2rpj.js → reveal-component-vTdjiyDv.js} +17 -17
- package/dist/{sequenceDiagram-WJ2MYXX4-DIwF19_n.js → sequenceDiagram-WJ2MYXX4-DSh_qxoF.js} +1 -1
- package/dist/{spec-DZDnnlgT.js → spec-C7Fos-If.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-sWk1AdYL.js → stateDiagram-D77RDMKH-DH_H8NMH.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-CiNo-OI7.js → stateDiagram-v2-MP3YSRHH-D_JM7MEK.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Bj3hiOY5.js → swimlanes-42K2YHIH-CfoTJO-9.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BzEo2r_N.js → swimlanesDiagram-VR7AAH4N-Z_QhvK0G.js} +2 -2
- package/dist/{swiper-component-BkCm-kLg.js → swiper-component-D2geL1Ku.js} +1 -1
- package/dist/{timeline-definition-24CTP7MA-CrPQk42H.js → timeline-definition-24CTP7MA-BFtdScaL.js} +1 -1
- package/dist/{toDate-Cu2pIZcC.js → toDate-CQAFSwos.js} +24 -24
- package/dist/{useAsyncData-DEhLdRIu.js → useAsyncData-BeyZyjso.js} +1 -1
- package/dist/{useDeepCompareMemoize-RjZGVhBV.js → useDeepCompareMemoize-DOQgae0W.js} +1 -1
- package/dist/{useIframeCapabilities-CSdWn6NP.js → useIframeCapabilities-DNvaj9wM.js} +1 -1
- package/dist/{useLifecycle-DtcB2s1z.js → useLifecycle-n2lnCFS8.js} +1 -1
- package/dist/{useTheme-CoEtr4mK.js → useTheme-CY777LXN.js} +303 -99
- package/dist/{vega-component-BhjTrP9-.js → vega-component-0nQzA-I8.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-BaYMoIpj.js → vennDiagram-4TSXK5OY-BXY8IGCA.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DjHeuj8p.js → wardleyDiagram-VM6X3IG4-D0tFe6eC.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-Bc_hcuXS.js → xychartDiagram-S5SC5T6Z-Dx8wFM-y.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/notebook.ts +0 -1
- package/src/__mocks__/partial.ts +26 -0
- package/src/__tests__/main.test.tsx +24 -1
- package/src/components/app-config/app-config-form.tsx +5 -9
- package/src/components/editor/__tests__/data-attributes.test.tsx +0 -1
- package/src/components/editor/__tests__/output-persistence.test.tsx +0 -1
- package/src/components/editor/actions/useCellActionButton.tsx +6 -5
- package/src/components/editor/actions/useConfigActions.tsx +3 -4
- package/src/components/editor/actions/useNotebookActions.tsx +5 -4
- package/src/components/editor/cell/code/cell-editor.tsx +13 -6
- package/src/components/editor/cell/collapse.tsx +6 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +1 -7
- package/src/components/editor/controls/Controls.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +8 -6
- package/src/components/editor/navigation/__tests__/navigation.test.ts +15 -15
- package/src/components/editor/navigation/__tests__/selection.test.ts +44 -21
- package/src/components/editor/navigation/focus-utils.ts +19 -0
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +6 -13
- package/src/components/editor/navigation/navigation.ts +52 -43
- package/src/components/editor/navigation/selection.ts +30 -29
- package/src/components/editor/notebook-cell.tsx +10 -18
- package/src/components/editor/renderers/cell-array.tsx +6 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/components/pages/edit-page.tsx +0 -13
- package/src/components/scratchpad/scratchpad.tsx +0 -1
- package/src/components/slides/reveal-component.tsx +1 -1
- package/src/components/slides/slide-cell-view.tsx +0 -1
- package/src/components/sort/SortableCellsProvider.tsx +6 -5
- package/src/core/MarimoApp.tsx +1 -1
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -37
- package/src/core/cells/__tests__/actions.test.ts +190 -80
- package/src/core/cells/__tests__/arrange.test.ts +263 -0
- package/src/core/cells/__tests__/cells.test.ts +11 -1101
- package/src/core/cells/__tests__/document.test.ts +3 -32
- package/src/core/cells/__tests__/editor.test.ts +57 -0
- package/src/core/cells/__tests__/harness.ts +82 -0
- package/src/core/cells/__tests__/layout.test.ts +189 -0
- package/src/core/cells/__tests__/notebook-outline.test.ts +7 -1
- package/src/core/cells/__tests__/session.test.ts +329 -174
- package/src/core/cells/__tests__/utils.test.ts +0 -1
- package/src/core/cells/actions.ts +247 -82
- package/src/core/cells/arrange.ts +341 -0
- package/src/core/cells/cells.ts +27 -516
- package/src/core/cells/document.ts +6 -5
- package/src/core/cells/edit.ts +30 -0
- package/src/core/cells/editor.ts +82 -0
- package/src/core/cells/layout.ts +152 -0
- package/src/core/cells/session.ts +75 -52
- package/src/core/cells/types.ts +0 -5
- package/src/core/cells/utils.ts +6 -4
- package/src/core/config/__tests__/app-config.test.ts +64 -0
- package/src/core/config/__tests__/config-schema.test.ts +1 -1
- package/src/core/config/config-schema.ts +6 -2
- package/src/core/config/config.ts +26 -12
- package/src/core/islands/bootstrap.ts +0 -1
- package/src/core/kernel/handlers.ts +1 -13
- package/src/core/meta/__tests__/code-visibility.test.tsx +78 -70
- package/src/core/meta/code-visibility.ts +18 -9
- package/src/core/notebook/__tests__/operations.test.ts +51 -0
- package/src/core/notebook/document/__tests__/codemirror.test.ts +33 -7
- package/src/core/notebook/index.ts +2 -1
- package/src/core/notebook/operations.ts +30 -0
- package/src/core/saving/__tests__/state.test.ts +111 -0
- package/src/core/saving/save-component.tsx +19 -33
- package/src/core/saving/state.ts +38 -39
- package/src/core/saving/useAutoSave.ts +8 -35
- package/src/core/session/__tests__/backend.test.ts +1 -0
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +1 -0
- package/src/core/session/active-notebook.ts +11 -0
- package/src/core/session/backend.ts +17 -19
- package/src/core/session/embedded.ts +7 -0
- package/src/core/session/useNotebookReplica.ts +3 -1
- package/src/core/session/useNotebookSession.tsx +7 -8
- package/src/core/transports/__tests__/static.test.ts +139 -8
- package/src/core/transports/static.ts +98 -16
- package/src/core/wasm/__tests__/bridge.test.ts +1 -0
- package/src/mount.tsx +19 -10
- package/src/stories/cell.stories.tsx +0 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +0 -2
- package/src/utils/__tests__/id-tree.test.ts +20 -1548
- package/src/utils/id-tree.tsx +12 -537
- package/dist/assets/__vite-browser-external-C8gQho07.js +0 -1
- package/dist/feedback-button-MpeoIn1D.js +0 -379
- package/src/components/editor/navigation/__tests__/state.test.ts +0 -81
- package/src/components/editor/navigation/state.ts +0 -65
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
import { g as e } from "./button-BQRdqQi1.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { D as l, a as u, w as d, x as f } from "./useTheme-CoEtr4mK.js";
|
|
2
|
+
import { G as t, q as n } from "./error-entries-CYGwr5-O.js";
|
|
3
|
+
import { C as r } from "./select-2KOiReNY.js";
|
|
4
|
+
import { _ as i, c as a, x as o, y as s } from "./toDate-CQAFSwos.js";
|
|
5
|
+
import { C as c, F as l, M as u, _ as d, a as f } from "./useTheme-CY777LXN.js";
|
|
7
6
|
//#region src/core/islands/state.ts
|
|
8
|
-
var p =
|
|
7
|
+
var p = l(!1), m = l(/* @__PURE__ */ new Set()), h = l((e) => e(m)?.size === 0), g = l(!1), _ = l((e) => e(g) && e(p) === !1), v = l({
|
|
9
8
|
isInstantiated: !1,
|
|
10
9
|
error: null
|
|
11
|
-
}),
|
|
10
|
+
}), y = l(!1);
|
|
12
11
|
//#endregion
|
|
13
12
|
//#region src/core/meta/state.ts
|
|
14
|
-
function
|
|
13
|
+
function b() {
|
|
15
14
|
try {
|
|
16
15
|
return window.__MARIMO_MOUNT_CONFIG__.version;
|
|
17
16
|
} catch {
|
|
18
17
|
return e.warn("Failed to get version from mount config"), null;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
var
|
|
20
|
+
var x = b() || "0.25.3-dev196", S = l(x), C = l(!0);
|
|
22
21
|
l(null);
|
|
23
22
|
//#endregion
|
|
24
23
|
//#region src/core/wasm/state.ts
|
|
25
|
-
var
|
|
24
|
+
var w = l({
|
|
26
25
|
kind: "loading",
|
|
27
26
|
message: "Initializing..."
|
|
28
|
-
}),
|
|
27
|
+
}), T = {
|
|
29
28
|
canHealthCheck: !1,
|
|
30
29
|
canShutdown: !1,
|
|
31
30
|
canRestart: !1,
|
|
32
31
|
supportsLsp: !1
|
|
33
|
-
},
|
|
32
|
+
}, E = {
|
|
34
33
|
kind: "wasm",
|
|
35
34
|
label: "Pyodide",
|
|
36
|
-
capabilities:
|
|
35
|
+
capabilities: T,
|
|
37
36
|
state: l((e) => {
|
|
38
|
-
let t = e(
|
|
37
|
+
let t = e(w);
|
|
39
38
|
switch (t.kind) {
|
|
40
39
|
case "loading": return {
|
|
41
40
|
kind: "connecting",
|
|
@@ -51,7 +50,7 @@ var T = l({
|
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
52
|
})
|
|
54
|
-
},
|
|
53
|
+
}, D = {
|
|
55
54
|
kind: "remote",
|
|
56
55
|
label: "Kernel",
|
|
57
56
|
capabilities: {
|
|
@@ -61,8 +60,8 @@ var T = l({
|
|
|
61
60
|
supportsLsp: !0
|
|
62
61
|
},
|
|
63
62
|
state: l((e) => {
|
|
64
|
-
let
|
|
65
|
-
switch (
|
|
63
|
+
let r = e(t);
|
|
64
|
+
switch (r.state) {
|
|
66
65
|
case n.OPEN: return { kind: "ready" };
|
|
67
66
|
case n.CONNECTING: return {
|
|
68
67
|
kind: "connecting",
|
|
@@ -76,23 +75,23 @@ var T = l({
|
|
|
76
75
|
case n.CLOSED: return {
|
|
77
76
|
kind: "failed",
|
|
78
77
|
error: {
|
|
79
|
-
message:
|
|
78
|
+
message: r.state === n.CLOSED ? r.reason : "Disconnecting",
|
|
80
79
|
errorKind: "runtime"
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
83
|
})
|
|
85
|
-
},
|
|
84
|
+
}, O = {
|
|
86
85
|
kind: "static",
|
|
87
86
|
label: "Static",
|
|
88
|
-
capabilities:
|
|
87
|
+
capabilities: T,
|
|
89
88
|
state: l({ kind: "ready" })
|
|
90
|
-
},
|
|
89
|
+
}, k = {
|
|
91
90
|
kind: "islands",
|
|
92
91
|
label: "Islands",
|
|
93
|
-
capabilities:
|
|
92
|
+
capabilities: T,
|
|
94
93
|
state: l((e) => {
|
|
95
|
-
let t = e(
|
|
94
|
+
let t = e(p);
|
|
96
95
|
return t === !0 ? { kind: "ready" } : typeof t == "string" ? {
|
|
97
96
|
kind: "failed",
|
|
98
97
|
error: {
|
|
@@ -105,34 +104,31 @@ var T = l({
|
|
|
105
104
|
};
|
|
106
105
|
})
|
|
107
106
|
};
|
|
108
|
-
function
|
|
109
|
-
return
|
|
107
|
+
function A() {
|
|
108
|
+
return a() ? O : c() ? k : o() ? E : D;
|
|
110
109
|
}
|
|
111
|
-
var
|
|
110
|
+
var j = l(A());
|
|
112
111
|
l((e) => {
|
|
113
|
-
let t = e(
|
|
114
|
-
return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(
|
|
112
|
+
let t = e(j);
|
|
113
|
+
return e(t.state).kind !== "ready" || t.kind === "static" ? !1 : t.kind !== "remote" || e(v).isInstantiated;
|
|
115
114
|
});
|
|
116
115
|
//#endregion
|
|
117
116
|
//#region src/core/meta/code-visibility.ts
|
|
118
|
-
|
|
119
|
-
let t = (
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
var M = l((e) => {
|
|
118
|
+
let t = e(d);
|
|
119
|
+
return t !== null && [...t.cells.values()].some((e) => e.code !== null);
|
|
120
|
+
});
|
|
121
|
+
function N() {
|
|
122
|
+
let e = u(M), t = u(i), { mode: n } = u(s), a = u(C), o = u(j).kind;
|
|
123
|
+
if (t && o === "remote") return !0;
|
|
124
|
+
switch (n) {
|
|
122
125
|
case "edit":
|
|
123
126
|
case "present": return !0;
|
|
124
127
|
case "home":
|
|
125
128
|
case "gallery": return !1;
|
|
126
|
-
case "read":
|
|
127
|
-
|
|
128
|
-
let n;
|
|
129
|
-
return t[0] === e ? n = t[1] : (n = e.some(P), t[0] = e, t[1] = n), n;
|
|
130
|
-
}
|
|
131
|
-
default: return i(r), !1;
|
|
129
|
+
case "read": return !a || new URLSearchParams(window.location.search).get(f.includeCode) === "false" ? !1 : e;
|
|
130
|
+
default: return r(n), !1;
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
|
-
function P(e) {
|
|
135
|
-
return !!e.code;
|
|
136
|
-
}
|
|
137
133
|
//#endregion
|
|
138
|
-
export {
|
|
134
|
+
export { y as a, p as c, g as d, C as i, m as l, j as n, v as o, S as r, h as s, N as t, _ as u };
|