@marimo-team/islands 0.17.1 → 0.17.2

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
@@ -90674,7 +90674,7 @@ ${c}
90674
90674
  });
90675
90675
  }
90676
90676
  };
90677
- const LazyPlot = (0, import_react.lazy)(() => import("./react-plotly-DYyvxcRD.js").then(__toDynamicImportESM(1)));
90677
+ const LazyPlot = (0, import_react.lazy)(() => import("./react-plotly-DYyvxcRD.js").then(__toDynamicImportESM(1)).then((e) => e.default));
90678
90678
  function initialLayout(e) {
90679
90679
  return {
90680
90680
  autosize: e.layout.width === void 0,
@@ -98433,7 +98433,7 @@ Defaulting to \`null\`.`;
98433
98433
  return Logger.warn("Failed to get version from mount config"), null;
98434
98434
  }
98435
98435
  }
98436
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.17.1"), showCodeInRunModeAtom = atom(true);
98436
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.17.2"), showCodeInRunModeAtom = atom(true);
98437
98437
  atom(null);
98438
98438
  var VIRTUAL_FILE_REGEX = /\/@file\/([^\s/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
98439
98439
  constructor() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  /* Copyright 2024 Marimo. All rights reserved. */
2
2
 
3
- import type { Figure } from "react-plotly.js";
3
+ import type { Figure, PlotParams } from "react-plotly.js";
4
4
  import { z } from "zod";
5
5
  import type { IPlugin, IPluginProps, Setter } from "@/plugins/types";
6
6
  import { Logger } from "@/utils/Logger";
@@ -71,7 +71,14 @@ interface PlotlyPluginProps extends Data {
71
71
  host: HTMLElement;
72
72
  }
73
73
 
74
- export const LazyPlot = lazy(() => import("react-plotly.js"));
74
+ // For whatever reason, the version of vite-rolldown that we are one is not exporting this default export correctly.
75
+ export const LazyPlot = lazy(() =>
76
+ import("react-plotly.js").then((module) => {
77
+ return module.default as unknown as {
78
+ default: React.ComponentType<PlotParams>;
79
+ };
80
+ }),
81
+ );
75
82
 
76
83
  function initialLayout(figure: Figure): Partial<Plotly.Layout> {
77
84
  // Enable autosize if width is not specified