@marimo-team/islands 0.19.5-dev24 → 0.19.5-dev26
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/main.js
CHANGED
|
@@ -61828,6 +61828,8 @@ ${E}`,
|
|
|
61828
61828
|
return "\u{1F4DD}";
|
|
61829
61829
|
case "application/vnd.vegalite.v5+json":
|
|
61830
61830
|
case "application/vnd.vega.v5+json":
|
|
61831
|
+
case "application/vnd.vegalite.v6+json":
|
|
61832
|
+
case "application/vnd.vega.v6+json":
|
|
61831
61833
|
return "\u{1F4CA}";
|
|
61832
61834
|
case "application/vnd.marimo+mimebundle":
|
|
61833
61835
|
return "\u{1F4E6}";
|
|
@@ -61844,7 +61846,9 @@ ${E}`,
|
|
|
61844
61846
|
case "application/json":
|
|
61845
61847
|
case "application/vnd.marimo+mimebundle":
|
|
61846
61848
|
case "application/vnd.vegalite.v5+json":
|
|
61847
|
-
case "application/vnd.vega.v5+json":
|
|
61849
|
+
case "application/vnd.vega.v5+json":
|
|
61850
|
+
case "application/vnd.vegalite.v6+json":
|
|
61851
|
+
case "application/vnd.vega.v6+json": {
|
|
61848
61852
|
let c2;
|
|
61849
61853
|
r[0] === e2 ? c2 = r[1] : (c2 = typeof e2 == "string" ? JSON.parse(e2) : e2, r[0] = e2, r[1] = c2), S = c2;
|
|
61850
61854
|
break bb0;
|
|
@@ -61950,7 +61954,9 @@ ${E}`,
|
|
|
61950
61954
|
}), r[31] = E, r[32] = O, r[33] = e2) : e2 = r[33], e2;
|
|
61951
61955
|
}
|
|
61952
61956
|
case "application/vnd.vegalite.v5+json":
|
|
61953
|
-
case "application/vnd.vega.v5+json":
|
|
61957
|
+
case "application/vnd.vega.v5+json":
|
|
61958
|
+
case "application/vnd.vegalite.v6+json":
|
|
61959
|
+
case "application/vnd.vega.v6+json": {
|
|
61954
61960
|
let e2;
|
|
61955
61961
|
r[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(ChartLoadingState, {}), r[34] = e2) : e2 = r[34];
|
|
61956
61962
|
let c2 = w, d2 = y === "dark" ? "dark" : void 0, f2;
|
|
@@ -101078,7 +101084,7 @@ Defaulting to \`null\`.`;
|
|
|
101078
101084
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
101079
101085
|
}
|
|
101080
101086
|
}
|
|
101081
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.5-
|
|
101087
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.5-dev26"), showCodeInRunModeAtom = atom(true);
|
|
101082
101088
|
atom(null);
|
|
101083
101089
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
101084
101090
|
constructor() {
|
package/package.json
CHANGED
|
@@ -90,6 +90,8 @@ export const OutputRenderer: React.FC<{
|
|
|
90
90
|
case "application/vnd.marimo+mimebundle":
|
|
91
91
|
case "application/vnd.vegalite.v5+json":
|
|
92
92
|
case "application/vnd.vega.v5+json":
|
|
93
|
+
case "application/vnd.vegalite.v6+json":
|
|
94
|
+
case "application/vnd.vega.v6+json":
|
|
93
95
|
return typeof data === "string" ? JSON.parse(data) : data;
|
|
94
96
|
default:
|
|
95
97
|
return;
|
|
@@ -199,6 +201,8 @@ export const OutputRenderer: React.FC<{
|
|
|
199
201
|
);
|
|
200
202
|
case "application/vnd.vegalite.v5+json":
|
|
201
203
|
case "application/vnd.vega.v5+json":
|
|
204
|
+
case "application/vnd.vegalite.v6+json":
|
|
205
|
+
case "application/vnd.vega.v6+json":
|
|
202
206
|
return (
|
|
203
207
|
<Suspense fallback={<ChartLoadingState />}>
|
|
204
208
|
<LazyVegaEmbed
|
|
@@ -29,6 +29,8 @@ export function renderMimeIcon(mime: string) {
|
|
|
29
29
|
return "📝";
|
|
30
30
|
case "application/vnd.vegalite.v5+json":
|
|
31
31
|
case "application/vnd.vega.v5+json":
|
|
32
|
+
case "application/vnd.vegalite.v6+json":
|
|
33
|
+
case "application/vnd.vega.v6+json":
|
|
32
34
|
return "📊";
|
|
33
35
|
case "application/vnd.marimo+mimebundle":
|
|
34
36
|
return "📦";
|
package/src/core/export/hooks.ts
CHANGED
|
@@ -85,6 +85,15 @@ export function useAutoExport() {
|
|
|
85
85
|
// We track cells that need screenshots, these will be exported to IPYNB
|
|
86
86
|
const richCellsToOutputAtom = atom<Record<CellId, unknown>>({});
|
|
87
87
|
|
|
88
|
+
// MIME types to capture screenshots for
|
|
89
|
+
const MIME_TYPES_TO_CAPTURE_SCREENSHOTS = new Set([
|
|
90
|
+
"text/html",
|
|
91
|
+
"application/vnd.vegalite.v5+json",
|
|
92
|
+
"application/vnd.vega.v5+json",
|
|
93
|
+
"application/vnd.vegalite.v6+json",
|
|
94
|
+
"application/vnd.vega.v6+json",
|
|
95
|
+
]);
|
|
96
|
+
|
|
88
97
|
/**
|
|
89
98
|
* Take screenshots of cells with HTML outputs. These images will be sent to the backend to be exported to IPYNB.
|
|
90
99
|
* @returns A map of cell IDs to their screenshots data.
|
|
@@ -103,7 +112,7 @@ export function useEnrichCellOutputs() {
|
|
|
103
112
|
// Track latest output for this cell
|
|
104
113
|
trackedCellsOutput[cellId] = outputData;
|
|
105
114
|
if (
|
|
106
|
-
runtime.output?.mimetype
|
|
115
|
+
MIME_TYPES_TO_CAPTURE_SCREENSHOTS.has(runtime.output?.mimetype ?? "") &&
|
|
107
116
|
outputData &&
|
|
108
117
|
outputHasChanged
|
|
109
118
|
) {
|