@marimo-team/islands 0.22.1-dev7 → 0.22.1-dev9
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-Dl1grr8z.js → ConnectedDataExplorerComponent-iT7t3FxV.js} +1 -1
- package/dist/{loader-3c9hT4kT.js → loader-CMMa6QVT.js} +4 -1
- package/dist/main.js +5 -5
- package/dist/style.css +1 -1
- package/dist/{useDeepCompareMemoize-X7clcrcQ.js → useDeepCompareMemoize-DOzKCTzc.js} +1 -1
- package/dist/{vega-component-A6unyUJS.js → vega-component-BaDgUvQP.js} +2 -2
- package/package.json +1 -1
- package/src/plugins/impl/vega/__tests__/utils.test.ts +68 -0
- package/src/plugins/impl/vega/utils.ts +14 -5
- package/src/plugins/impl/vega/vega.css +2 -1
|
@@ -14,7 +14,7 @@ import { b as createStore, g as useAtomValue, m as Provider, n as useTheme, y as
|
|
|
14
14
|
import { t as invariant } from "./invariant-D4hPsZFI.js";
|
|
15
15
|
import { n as ErrorBanner } from "./error-banner-Bx9kIgrs.js";
|
|
16
16
|
import "./vega-loader.browser-DqEcFOPD.js";
|
|
17
|
-
import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-
|
|
17
|
+
import { a as getContainerWidth, n as vegaLoadData, s as tooltipHandler } from "./loader-CMMa6QVT.js";
|
|
18
18
|
import { t as useAsyncData } from "./useAsyncData-Cd4Urlww.js";
|
|
19
19
|
import { n as q, r as contains } from "./react-vega-CzRAIHrv.js";
|
|
20
20
|
import "./defaultLocale-qS7DaAmi.js";
|
|
@@ -166,7 +166,10 @@ var Handler = class {
|
|
|
166
166
|
pkg.version;
|
|
167
167
|
const tooltipHandler = new Handler();
|
|
168
168
|
function getContainerWidth(m2) {
|
|
169
|
-
if (typeof m2 == "object" && m2
|
|
169
|
+
if (typeof m2 == "object" && m2) {
|
|
170
|
+
if ("width" in m2) return m2.width;
|
|
171
|
+
if ("spec" in m2) return getContainerWidth(m2.spec);
|
|
172
|
+
}
|
|
170
173
|
}
|
|
171
174
|
function getVegaFieldTypes(m2) {
|
|
172
175
|
return !m2 || Object.keys(m2).length === 0 ? "auto" : Objects.mapValues(m2, (m3) => m3 === "date" || m3 === "time" ? "string" : m3 === "datetime" ? "date" : m3);
|
package/dist/main.js
CHANGED
|
@@ -55,11 +55,11 @@ import "./dist-C0XYIHKJ.js";
|
|
|
55
55
|
import "./dist-C9qF7MRB.js";
|
|
56
56
|
import { a as parser, r as python } from "./dist-qoCY8giM.js";
|
|
57
57
|
import "./purify.es-ukiMXY-F.js";
|
|
58
|
-
import { a as AlertTitle, i as AlertDescription, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-
|
|
58
|
+
import { a as AlertTitle, i as AlertDescription, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-DOzKCTzc.js";
|
|
59
59
|
import { a as Portal$1, c as prettyError, i as Overlay, n as ErrorBanner, o as Root$6, r as Content$2, s as CellNotInitializedError, t as Banner } from "./error-banner-Bx9kIgrs.js";
|
|
60
60
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-CJVjyntJ.js";
|
|
61
61
|
import { n as formats } from "./vega-loader.browser-DqEcFOPD.js";
|
|
62
|
-
import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-
|
|
62
|
+
import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-CMMa6QVT.js";
|
|
63
63
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-BVQrlRBd.js";
|
|
64
64
|
import { t as useAsyncData } from "./useAsyncData-Cd4Urlww.js";
|
|
65
65
|
import "./defaultLocale-qS7DaAmi.js";
|
|
@@ -47049,7 +47049,7 @@ ${c}
|
|
|
47049
47049
|
fullWidth: v,
|
|
47050
47050
|
children: z
|
|
47051
47051
|
}), r[19] = v, r[20] = y, r[21] = c, r[22] = z, r[23] = G) : G = r[23], G;
|
|
47052
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
47052
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-iT7t3FxV.js"));
|
|
47053
47053
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object({
|
|
47054
47054
|
label: string().nullish(),
|
|
47055
47055
|
data: string()
|
|
@@ -58403,7 +58403,7 @@ ${c}
|
|
|
58403
58403
|
return true;
|
|
58404
58404
|
}
|
|
58405
58405
|
}
|
|
58406
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
58406
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-BaDgUvQP.js")), VegaPlugin = class {
|
|
58407
58407
|
constructor() {
|
|
58408
58408
|
__publicField(this, "tagName", "marimo-vega");
|
|
58409
58409
|
__publicField(this, "validator", object({
|
|
@@ -65427,7 +65427,7 @@ ${c}
|
|
|
65427
65427
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
65428
65428
|
}
|
|
65429
65429
|
}
|
|
65430
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.22.1-
|
|
65430
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.22.1-dev9"), showCodeInRunModeAtom = atom(true);
|
|
65431
65431
|
atom(null);
|
|
65432
65432
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
65433
65433
|
constructor() {
|