@marimo-team/islands 0.19.7-dev30 → 0.19.7-dev33
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-CukLYFVV.js → ConnectedDataExplorerComponent-DewsKLl2.js} +12 -12
- package/dist/{glide-data-editor-uGGDZv6S.js → glide-data-editor-DHsjQhtP.js} +1362 -1360
- package/dist/{label-DC2pbeUJ.js → label-C4PtQcza.js} +14 -22
- package/dist/main.js +32 -31
- package/dist/{spec-C9rnT0AN.js → spec-Dmb1KfK3.js} +24 -16
- package/dist/style.css +1 -1
- package/dist/{types-ZLLMdAtn.js → types-DBsIRhMX.js} +23 -23
- package/package.json +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +2 -2
- package/src/core/export/__tests__/hooks.test.ts +72 -33
- package/src/core/export/hooks.ts +17 -8
- package/src/plugins/impl/DataEditorPlugin.tsx +1 -1
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +49 -33
- package/src/utils/__tests__/download.test.tsx +18 -18
- package/src/utils/download.ts +9 -11
- package/src/utils/html-to-image.ts +139 -0
|
@@ -2,8 +2,8 @@ import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __c
|
|
|
2
2
|
import { t as require_react } from "./react-DdA8EBol.js";
|
|
3
3
|
import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
|
|
4
4
|
import { N as createLucideIcon } from "./Combination-Bg-xN8JV.js";
|
|
5
|
-
import { A as
|
|
6
|
-
import {
|
|
5
|
+
import { A as useOnMount, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, H as ListFilter, K as Calendar, M as Badge, N as createReducerAndAtoms, P as startCase_default, R as Type, U as Hash, V as SquareFunction, t as augmentSpecWithData, z as ToggleLeft } from "./spec-Dmb1KfK3.js";
|
|
6
|
+
import { A as $a916eb452884faea$export$b7a616150fdb9f44, a as SelectGroup, c as SelectSeparator, i as SelectContent, l as SelectTrigger, o as SelectItem, r as Select, s as SelectLabel, t as Label, u as SelectValue } from "./label-C4PtQcza.js";
|
|
7
7
|
import { t as Button, u as cn } from "./button-BWvsJ2Wr.js";
|
|
8
8
|
import { o as Objects, s as Logger } from "./hotkeys-B5WnGZXF.js";
|
|
9
9
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
@@ -6191,10 +6191,10 @@ const DataExplorerComponent = (e3) => {
|
|
|
6191
6191
|
}, p[0] = h, p[1] = m, p[2] = g) : g = p[2];
|
|
6192
6192
|
let _;
|
|
6193
6193
|
p[3] === m ? _ = p[4] : (_ = [m], p[3] = m, p[4] = _);
|
|
6194
|
-
let { data: v, isPending: y, error:
|
|
6195
|
-
if (
|
|
6194
|
+
let { data: v, isPending: y, error: b } = useAsyncData(g, _), { mark: x } = useAtomValue(chartSpecAtom), C = useAtomValue(relatedChartSpecsAtom), { theme: E } = useTheme();
|
|
6195
|
+
if (b) {
|
|
6196
6196
|
let e4;
|
|
6197
|
-
return p[5] ===
|
|
6197
|
+
return p[5] === b ? e4 = p[6] : (e4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorBanner, { error: b }), p[5] = b, p[6] = e4), e4;
|
|
6198
6198
|
}
|
|
6199
6199
|
if (!v) {
|
|
6200
6200
|
let e4;
|
|
@@ -6205,9 +6205,9 @@ const DataExplorerComponent = (e3) => {
|
|
|
6205
6205
|
let e4;
|
|
6206
6206
|
return p[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}), p[8] = e4) : e4 = p[8], e4;
|
|
6207
6207
|
}
|
|
6208
|
-
let A = (_b = (_a =
|
|
6209
|
-
p[9] === (A == null ? void 0 : A.fieldInfos) ?
|
|
6210
|
-
let P =
|
|
6208
|
+
let A = (_b = (_a = C.main) == null ? void 0 : _a.plots) == null ? void 0 : _b[0], j;
|
|
6209
|
+
p[9] === (A == null ? void 0 : A.fieldInfos) ? j = p[10] : (j = new Set(A == null ? void 0 : A.fieldInfos.map(_temp)), p[9] = A == null ? void 0 : A.fieldInfos, p[10] = j);
|
|
6210
|
+
let P = j, F;
|
|
6211
6211
|
p[11] !== D || p[12] !== A || p[13] !== k || p[14] !== E ? (F = () => {
|
|
6212
6212
|
if (!A) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ColumnSummary, { schema: k });
|
|
6213
6213
|
let e4 = A.spec;
|
|
@@ -6220,10 +6220,10 @@ const DataExplorerComponent = (e3) => {
|
|
|
6220
6220
|
});
|
|
6221
6221
|
}, p[11] = D, p[12] = A, p[13] = k, p[14] = E, p[15] = F) : F = p[15];
|
|
6222
6222
|
let I = F, L;
|
|
6223
|
-
p[16] !==
|
|
6224
|
-
mark:
|
|
6223
|
+
p[16] !== x || p[17] !== k ? (L = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryForm, {
|
|
6224
|
+
mark: x,
|
|
6225
6225
|
schema: k
|
|
6226
|
-
}), p[16] =
|
|
6226
|
+
}), p[16] = x, p[17] = k, p[18] = L) : L = p[18];
|
|
6227
6227
|
let R;
|
|
6228
6228
|
p[19] === I ? R = p[20] : (R = I(), p[19] = I, p[20] = R);
|
|
6229
6229
|
let z;
|
|
@@ -6231,7 +6231,7 @@ const DataExplorerComponent = (e3) => {
|
|
|
6231
6231
|
className: "flex items-center gap-2",
|
|
6232
6232
|
children: [L, R]
|
|
6233
6233
|
}), p[21] = L, p[22] = R, p[23] = z) : z = p[23];
|
|
6234
|
-
let B = (_c =
|
|
6234
|
+
let B = (_c = C.histograms) == null ? void 0 : _c.plots, V = (_d2 = C.addCategoricalField) == null ? void 0 : _d2.plots, H = (_e = C.addQuantitativeField) == null ? void 0 : _e.plots, U = (_f2 = C.addTemporalField) == null ? void 0 : _f2.plots, W;
|
|
6235
6235
|
if (p[24] !== h || p[25] !== D || p[26] !== P || p[27] !== H || p[28] !== U || p[29] !== B || p[30] !== V || p[31] !== E) {
|
|
6236
6236
|
let e4;
|
|
6237
6237
|
p[33] !== h || p[34] !== D || p[35] !== P || p[36] !== E ? (e4 = (e5, p2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HorizontalCarouselItem, {
|