@marimo-team/islands 0.19.5-dev9 → 0.19.5

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.
Files changed (39) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DjQ_E5BA.js → ConnectedDataExplorerComponent-Dr9GhOQj.js} +10 -10
  2. package/dist/main.js +269 -225
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/src/__mocks__/requests.ts +1 -0
  6. package/src/components/ai/__tests__/ai-utils.test.ts +276 -0
  7. package/src/components/ai/ai-utils.ts +101 -0
  8. package/src/components/app-config/ai-config.tsx +56 -16
  9. package/src/components/app-config/user-config-form.tsx +63 -1
  10. package/src/components/chat/chat-panel.tsx +4 -4
  11. package/src/components/data-table/cell-utils.ts +10 -0
  12. package/src/components/editor/Output.tsx +21 -14
  13. package/src/components/editor/actions/useCellActionButton.tsx +2 -2
  14. package/src/components/editor/actions/useNotebookActions.tsx +61 -21
  15. package/src/components/editor/cell/cell-actions.tsx +6 -1
  16. package/src/components/editor/controls/Controls.tsx +1 -8
  17. package/src/components/editor/navigation/navigation.ts +39 -1
  18. package/src/components/editor/renderMimeIcon.tsx +2 -0
  19. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +1 -1
  20. package/src/core/ai/model-registry.ts +21 -3
  21. package/src/core/codemirror/language/panel/panel.tsx +3 -0
  22. package/src/core/codemirror/language/panel/sql.tsx +6 -2
  23. package/src/core/config/feature-flag.tsx +2 -0
  24. package/src/core/export/__tests__/hooks.test.ts +120 -1
  25. package/src/core/export/hooks.ts +48 -18
  26. package/src/core/islands/bridge.ts +1 -0
  27. package/src/core/lsp/__tests__/transport.test.ts +149 -0
  28. package/src/core/lsp/transport.ts +48 -0
  29. package/src/core/network/requests-lazy.ts +1 -0
  30. package/src/core/network/requests-network.ts +9 -0
  31. package/src/core/network/requests-static.ts +1 -0
  32. package/src/core/network/requests-toasting.tsx +1 -0
  33. package/src/core/network/types.ts +2 -0
  34. package/src/core/wasm/bridge.ts +1 -0
  35. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +1 -1
  36. package/src/utils/__tests__/download.test.tsx +492 -0
  37. package/src/utils/download.ts +161 -6
  38. package/src/utils/filenames.ts +3 -0
  39. 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)(41), { data: m } = e3, h = useChartSpecActions(), g;
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] !== P || p[26] !== H || p[27] !== U || p[28] !== B || p[29] !== V || p[30] !== E) {
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[32] !== h || p[33] !== P || p[34] !== E ? (e4 = (e5, p2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HorizontalCarouselItem, {
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[32] = h, p[33] = P, p[34] = E, p[35] = e4) : e4 = p[35], W = [
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] = P, p[26] = H, p[27] = U, p[28] = B, p[29] = V, p[30] = E, p[31] = W;
6271
- } else W = p[31];
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[36] === W ? J = p[37] : (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HorizontalCarousel, { children: W }), p[36] = W, p[37] = J);
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[38] !== J || p[39] !== z ? (X = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
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[38] = J, p[39] = z, p[40] = X) : X = p[40], X;
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;