@marimo-team/islands 0.23.1-dev21 → 0.23.1-dev22
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-Eq8bCe49.js → ConnectedDataExplorerComponent-P92i6wYx.js} +148 -148
- package/dist/{ImageComparisonComponent-DY3J_vIU.js → ImageComparisonComponent-HF4AY8_n.js} +2 -2
- package/dist/{Plot-BxlSHo0G.js → Plot-CK0oVgQL.js} +2 -2
- package/dist/{any-language-editor-BF8ew8wu.js → any-language-editor-BCvLfvzI.js} +7 -7
- package/dist/{button-Cn59RsBF.js → button-D1C3g5GI.js} +72 -71
- package/dist/{capabilities-Bml77Di-.js → capabilities-BwpUgo4S.js} +1 -1
- package/dist/{chat-ui-BdrC6z8t.js → chat-ui-CNHw9Osh.js} +2829 -2829
- package/dist/{check-C51PA02v.js → check-BgrdTLuv.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-C428iZBW.js → chunk-5FQGJX7Z-VIref9gx.js} +4 -4
- package/dist/{click-outside-container-vCXhHl-R.js → click-outside-container-D3t6KDni.js} +1 -1
- package/dist/{code-block-37QAKDTI-D9EnJeBI.js → code-block-37QAKDTI-FQEoMOU1.js} +2 -2
- package/dist/{compiler-runtime-B_OLMU9S.js → compiler-runtime-CEbnTgxf.js} +1 -1
- package/dist/{copy-DzOz_Au7.js → copy-Bp6CK_Fg.js} +9 -9
- package/dist/{data-grid-overlay-editor-lKF301ME.js → data-grid-overlay-editor-C_sKPpLu.js} +4 -4
- package/dist/{dist-CjLQ79mo.js → dist-CTtLBPLZ.js} +11 -11
- package/dist/{dist-BoNJsA65.js → dist-DUFd1bhm.js} +1 -1
- package/dist/{error-banner-BQcJXy6k.js → error-banner-B_ioHva3.js} +121 -121
- package/dist/{esm-BmYNigxi.js → esm-CDHI9cuO.js} +15 -15
- package/dist/{glide-data-editor-D2X4D_xi.js → glide-data-editor-BFqEJGJW.js} +948 -948
- package/dist/{input-BRN2Mjzx.js → input-CSVEkmaZ.js} +288 -288
- package/dist/{label-J1N4mVcg.js → label-BebYlsDV.js} +257 -257
- package/dist/{loader-JmfPBSx5.js → loader-ZFbGsMN1.js} +15 -15
- package/dist/main.js +7092 -6951
- package/dist/mermaid-4DMBBIKO-BjtqcdX4.js +6 -0
- package/dist/{mermaid-UMKVHs_g.js → mermaid-BbhZNQeB.js} +18 -18
- package/dist/{number-overlay-editor-DxLoVuuE.js → number-overlay-editor-B02-t7Ar.js} +2 -2
- package/dist/{process-output-D3Q6xBZJ.js → process-output-Bekznt_B.js} +863 -863
- package/dist/{react-dom-BSUuJjCR.js → react-dom-D5FDLRUB.js} +1 -1
- package/dist/{react-vega-DayQmZjG.js → react-vega-BkjdpVsR.js} +2 -2
- package/dist/{react-vega-CzRAIHrv.js → react-vega-DBwal82H.js} +1 -1
- package/dist/{slides-component-_3tukGh-.js → slides-component-DLxprlqo.js} +26 -26
- package/dist/{spec-rP6otrXw.js → spec-3EPbPQZH.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{toDate-CfGr2xZ1.js → toDate-B1AzlBoW.js} +15 -15
- package/dist/{tooltip-BusGYw7Q.js → tooltip-DwNnFsxZ.js} +132 -132
- package/dist/{types-D4CFUmPq.js → types-pwjdK009.js} +15 -15
- package/dist/{useAsyncData-BzS3Ai32.js → useAsyncData-BL98MPIy.js} +3 -3
- package/dist/{useDeepCompareMemoize-AjORjhpL.js → useDeepCompareMemoize-CsyOnnjc.js} +25 -25
- package/dist/{useIframeCapabilities---aRgGdv.js → useIframeCapabilities-CsTUYYj7.js} +3 -3
- package/dist/{useLifecycle-B90lJH4p.js → useLifecycle-DrGGIsgp.js} +36 -36
- package/dist/{useTheme-ytmywQ5O.js → useTheme-CzwDokKe.js} +4 -4
- package/dist/{vega-component-C3akWtJ1.js → vega-component-KBJXEDZz.js} +42 -42
- package/dist/{zod-D4UoCYGu.js → zod-W5ZEjzaE.js} +23 -23
- package/package.json +4 -4
- package/src/core/islands/__tests__/bridge.test.ts +2 -12
- package/src/core/islands/__tests__/islands-harness.test.ts +348 -0
- package/src/core/islands/__tests__/parse.test.ts +466 -24
- package/src/core/islands/__tests__/test-utils.tsx +263 -0
- package/src/core/islands/bootstrap.ts +265 -0
- package/src/core/islands/bridge.ts +154 -75
- package/src/core/islands/components/IslandControls.tsx +103 -0
- package/src/core/islands/components/__tests__/IslandControls.test.tsx +185 -0
- package/src/core/islands/components/__tests__/useIslandControls.test.ts +208 -0
- package/src/core/islands/components/output-wrapper.tsx +76 -93
- package/src/core/islands/components/useIslandControls.ts +60 -0
- package/src/core/islands/components/web-components.tsx +168 -40
- package/src/core/islands/constants.ts +28 -0
- package/src/core/islands/main.ts +7 -205
- package/src/core/islands/parse.ts +73 -26
- package/src/core/islands/worker-factory.ts +86 -0
- package/src/plugins/impl/DataTablePlugin.tsx +7 -3
- package/dist/mermaid-4DMBBIKO-Cw46o6DN.js +0 -6
- /package/dist/{clsx-yW_RAw0K.js → clsx-CwTY0BxM.js} +0 -0
- /package/dist/{react-Bs6Z0kvn.js → react-DA-nE2FX.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import "./react-dom-
|
|
2
|
+
import { _ as Logger } from "./button-D1C3g5GI.js";
|
|
3
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
|
+
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
+
import "./react-dom-D5FDLRUB.js";
|
|
6
6
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
7
|
-
import "./zod-
|
|
8
|
-
import { n as ErrorBanner } from "./error-banner-
|
|
7
|
+
import "./zod-W5ZEjzaE.js";
|
|
8
|
+
import { n as ErrorBanner } from "./error-banner-B_ioHva3.js";
|
|
9
9
|
import { t as isEmpty_default } from "./isEmpty-B7FX9wKt.js";
|
|
10
|
-
import { n as useTheme } from "./useTheme-
|
|
10
|
+
import { n as useTheme } from "./useTheme-CzwDokKe.js";
|
|
11
11
|
import { t as purify } from "./purify.es-hTCfRGdl.js";
|
|
12
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
12
|
+
import { t as useAsyncData } from "./useAsyncData-BL98MPIy.js";
|
|
13
13
|
import { a as decodeEntities, f as isDetailedError, g as utils_default, h as removeDirectives, i as cleanAndMerge, o as encodeEntities } from "./chunk-S3R3BYOJ-B0UOFJwq.js";
|
|
14
14
|
import { a as setLogLevel, i as log, r as __name, t as select_default } from "./src-DbP20yFZ.js";
|
|
15
15
|
import { t as package_default } from "./chunk-DR5Q36YT-C40cYcy5.js";
|
|
@@ -1053,39 +1053,39 @@ ${e.themeCSS}`), e.fontFamily !== void 0 && (C += `
|
|
|
1053
1053
|
}, () => "abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random() * 26)]).join("");
|
|
1054
1054
|
}
|
|
1055
1055
|
mermaid_default = (e) => {
|
|
1056
|
-
let
|
|
1056
|
+
let C = (0, import_compiler_runtime.c)(13), { diagram: w } = e, [T] = (0, import_react.useState)(_temp), D = useTheme().theme === "dark";
|
|
1057
1057
|
mermaid_default$1.initialize({
|
|
1058
1058
|
...DEFAULT_CONFIG,
|
|
1059
1059
|
theme: D ? "dark" : "forest",
|
|
1060
1060
|
darkMode: D
|
|
1061
1061
|
});
|
|
1062
1062
|
let k;
|
|
1063
|
-
|
|
1063
|
+
C[0] === w ? k = C[1] : (k = w.trim(), C[0] = w, C[1] = k);
|
|
1064
1064
|
let j = k, M;
|
|
1065
|
-
|
|
1065
|
+
C[2] !== T || C[3] !== j ? (M = async () => (await mermaid_default$1.render(T, j, void 0).catch((e2) => {
|
|
1066
1066
|
var _a2;
|
|
1067
1067
|
throw (_a2 = document.getElementById(T)) == null ? void 0 : _a2.remove(), Logger.warn("Failed to render mermaid diagram", e2), e2;
|
|
1068
|
-
})).svg,
|
|
1068
|
+
})).svg, C[2] = T, C[3] = j, C[4] = M) : M = C[4];
|
|
1069
1069
|
let N;
|
|
1070
|
-
|
|
1070
|
+
C[5] !== D || C[6] !== T || C[7] !== j ? (N = [
|
|
1071
1071
|
j,
|
|
1072
1072
|
T,
|
|
1073
1073
|
D
|
|
1074
|
-
],
|
|
1074
|
+
], C[5] = D, C[6] = T, C[7] = j, C[8] = N) : N = C[8];
|
|
1075
1075
|
let { data: P, error: F } = useAsyncData(M, N);
|
|
1076
1076
|
if (F) {
|
|
1077
1077
|
let e2;
|
|
1078
|
-
return
|
|
1078
|
+
return C[9] === F ? e2 = C[10] : (e2 = (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
1079
1079
|
error: F
|
|
1080
|
-
}),
|
|
1080
|
+
}), C[9] = F, C[10] = e2), e2;
|
|
1081
1081
|
}
|
|
1082
1082
|
if (!P) return null;
|
|
1083
1083
|
let I;
|
|
1084
|
-
return
|
|
1084
|
+
return C[11] === P ? I = C[12] : (I = (0, import_jsx_runtime.jsx)("div", {
|
|
1085
1085
|
dangerouslySetInnerHTML: {
|
|
1086
1086
|
__html: P
|
|
1087
1087
|
}
|
|
1088
|
-
}),
|
|
1088
|
+
}), C[11] = P, C[12] = I), I;
|
|
1089
1089
|
};
|
|
1090
1090
|
function _temp() {
|
|
1091
1091
|
return randomAlpha();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { t as require_react } from "./react-
|
|
3
|
-
import { t as styled_default } from "./dist-
|
|
2
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
3
|
+
import { t as styled_default } from "./dist-DUFd1bhm.js";
|
|
4
4
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
5
5
|
const NumberOverlayEditorStyle = /* @__PURE__ */ styled_default("div")({
|
|
6
6
|
name: "NumberOverlayEditorStyle",
|