@marimo-team/islands 0.19.5-dev9 → 0.19.6-dev0
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-DjQ_E5BA.js → ConnectedDataExplorerComponent-Dr9GhOQj.js} +10 -10
- package/dist/main.js +269 -225
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +1 -0
- package/src/components/ai/__tests__/ai-utils.test.ts +276 -0
- package/src/components/ai/ai-utils.ts +101 -0
- package/src/components/app-config/ai-config.tsx +56 -16
- package/src/components/app-config/user-config-form.tsx +63 -1
- package/src/components/chat/chat-panel.tsx +4 -4
- package/src/components/data-table/cell-utils.ts +10 -0
- package/src/components/editor/Output.tsx +21 -14
- package/src/components/editor/actions/useCellActionButton.tsx +2 -2
- package/src/components/editor/actions/useNotebookActions.tsx +61 -21
- package/src/components/editor/cell/cell-actions.tsx +6 -1
- package/src/components/editor/controls/Controls.tsx +1 -8
- package/src/components/editor/navigation/navigation.ts +39 -1
- package/src/components/editor/renderMimeIcon.tsx +2 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
- package/src/core/ai/model-registry.ts +21 -3
- package/src/core/codemirror/language/panel/panel.tsx +3 -0
- package/src/core/codemirror/language/panel/sql.tsx +6 -2
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/core/export/__tests__/hooks.test.ts +120 -1
- package/src/core/export/hooks.ts +48 -18
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/lsp/__tests__/transport.test.ts +149 -0
- package/src/core/lsp/transport.ts +48 -0
- package/src/core/network/requests-lazy.ts +1 -0
- package/src/core/network/requests-network.ts +9 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +1 -0
- package/src/core/network/types.ts +2 -0
- package/src/core/wasm/bridge.ts +1 -0
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
- package/src/utils/__tests__/download.test.tsx +492 -0
- package/src/utils/download.ts +161 -6
- package/src/utils/filenames.ts +3 -0
- package/src/components/export/export-output-button.tsx +0 -14
|
@@ -6177,7 +6177,7 @@ function chartOptions(e3) {
|
|
|
6177
6177
|
var ConnectedDataExplorerComponent_default = ConnectedDataExplorerComponent;
|
|
6178
6178
|
const DataExplorerComponent = (e3) => {
|
|
6179
6179
|
var _a, _b, _c, _d2, _e, _f2;
|
|
6180
|
-
let p = (0, import_compiler_runtime.c)(
|
|
6180
|
+
let p = (0, import_compiler_runtime.c)(43), { data: m } = e3, h = useChartSpecActions(), g;
|
|
6181
6181
|
p[0] !== h || p[1] !== m ? (g = async () => {
|
|
6182
6182
|
if (!m) return {};
|
|
6183
6183
|
let e4 = await vegaLoadData(m, {
|
|
@@ -6232,9 +6232,9 @@ const DataExplorerComponent = (e3) => {
|
|
|
6232
6232
|
children: [L, R]
|
|
6233
6233
|
}), p[21] = L, p[22] = R, p[23] = z) : z = p[23];
|
|
6234
6234
|
let B = (_c = w.histograms) == null ? void 0 : _c.plots, V = (_d2 = w.addCategoricalField) == null ? void 0 : _d2.plots, H = (_e = w.addQuantitativeField) == null ? void 0 : _e.plots, U = (_f2 = w.addTemporalField) == null ? void 0 : _f2.plots, W;
|
|
6235
|
-
if (p[24] !== h || p[25] !==
|
|
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
|
-
p[
|
|
6237
|
+
p[33] !== h || p[34] !== D || p[35] !== P || p[36] !== E ? (e4 = (e5, p2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HorizontalCarouselItem, {
|
|
6238
6238
|
title: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
6239
6239
|
className: "flex flex-row gap-1",
|
|
6240
6240
|
children: e5.fieldInfos.map((e6) => {
|
|
@@ -6260,22 +6260,22 @@ const DataExplorerComponent = (e3) => {
|
|
|
6260
6260
|
}),
|
|
6261
6261
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(q, {
|
|
6262
6262
|
options: chartOptions(E),
|
|
6263
|
-
spec: e5.spec
|
|
6263
|
+
spec: augmentSpecWithData(e5.spec, D)
|
|
6264
6264
|
}, p2)
|
|
6265
|
-
}, p2), p[
|
|
6265
|
+
}, p2), p[33] = h, p[34] = D, p[35] = P, p[36] = E, p[37] = e4) : e4 = p[37], W = [
|
|
6266
6266
|
B,
|
|
6267
6267
|
V,
|
|
6268
6268
|
H,
|
|
6269
6269
|
U
|
|
6270
|
-
].filter(Boolean).flat().map(e4), p[24] = h, p[25] =
|
|
6271
|
-
} else W = p[
|
|
6270
|
+
].filter(Boolean).flat().map(e4), p[24] = h, p[25] = D, p[26] = P, p[27] = H, p[28] = U, p[29] = B, p[30] = V, p[31] = E, p[32] = W;
|
|
6271
|
+
} else W = p[32];
|
|
6272
6272
|
let J;
|
|
6273
|
-
p[
|
|
6273
|
+
p[38] === W ? J = p[39] : (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HorizontalCarousel, { children: W }), p[38] = W, p[39] = J);
|
|
6274
6274
|
let X;
|
|
6275
|
-
return p[
|
|
6275
|
+
return p[40] !== J || p[41] !== z ? (X = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
6276
6276
|
className: "flex flex-col gap-2",
|
|
6277
6277
|
children: [z, J]
|
|
6278
|
-
}), p[
|
|
6278
|
+
}), p[40] = J, p[41] = z, p[42] = X) : X = p[42], X;
|
|
6279
6279
|
};
|
|
6280
6280
|
var HorizontalCarousel = (e3) => {
|
|
6281
6281
|
let p = (0, import_compiler_runtime.c)(2), { children: m } = e3;
|