@marimo-team/islands 0.23.1-dev9 → 0.23.2-dev25
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-tho8l5GC.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-Caoda-MR.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-Bs4egzxg.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-hRljRgfG.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 +7178 -7046
- 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-BK6F4vqt.js → process-output-Bekznt_B.js} +865 -864
- 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-CygUI9oH.js → tooltip-DwNnFsxZ.js} +132 -133
- 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-1icm1Ykb.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/core/RenderHTML.tsx +9 -0
- package/src/plugins/core/__test__/RenderHTML.test.ts +27 -0
- package/src/plugins/core/__test__/trusted-url.test.ts +48 -0
- package/src/plugins/core/registerReactComponent.tsx +11 -8
- package/src/plugins/core/trusted-url.ts +20 -0
- package/src/plugins/impl/ButtonPlugin.tsx +4 -6
- package/src/plugins/impl/CodeEditorPlugin.tsx +15 -18
- package/src/plugins/impl/DataEditorPlugin.tsx +8 -14
- package/src/plugins/impl/DataTablePlugin.tsx +8 -9
- package/src/plugins/impl/FileUploadPlugin.tsx +39 -43
- package/src/plugins/impl/FormPlugin.tsx +2 -6
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +27 -1
- package/src/plugins/impl/anywidget/widget-binding.ts +13 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +17 -20
- package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +5 -8
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +21 -0
- package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +119 -0
- package/src/plugins/impl/panel/PanelPlugin.tsx +31 -10
- package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +60 -0
- package/src/plugins/impl/vega/VegaPlugin.tsx +5 -8
- package/src/plugins/layout/NavigationMenuPlugin.tsx +2 -6
- 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,8 +1,64 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
|
-
import { t as require_react } from "./react-
|
|
3
|
-
import { t as require_compiler_runtime } from "./compiler-runtime-
|
|
4
|
-
import { t as clsx } from "./clsx-
|
|
2
|
+
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
3
|
+
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
4
|
+
import { t as clsx } from "./clsx-CwTY0BxM.js";
|
|
5
5
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
6
|
+
const Functions = {
|
|
7
|
+
NOOP: () => {
|
|
8
|
+
},
|
|
9
|
+
ASYNC_NOOP: async () => {
|
|
10
|
+
},
|
|
11
|
+
THROW: () => {
|
|
12
|
+
throw Error("Should not be called");
|
|
13
|
+
},
|
|
14
|
+
asUpdater: (e2) => typeof e2 == "function" ? e2 : () => e2,
|
|
15
|
+
identity: (e2) => e2
|
|
16
|
+
};
|
|
17
|
+
function throwNotImplemented() {
|
|
18
|
+
throw Error("Not implemented");
|
|
19
|
+
}
|
|
20
|
+
var createNamespacedLogger = (e2, _) => {
|
|
21
|
+
let v = `[${e2}]`;
|
|
22
|
+
return {
|
|
23
|
+
debug: (...e3) => console.debug(v, ...e3),
|
|
24
|
+
log: (...e3) => _.log(v, ...e3),
|
|
25
|
+
warn: (...e3) => _.warn(v, ...e3),
|
|
26
|
+
error: (...e3) => _.error(v, ...e3),
|
|
27
|
+
trace: (...e3) => _.trace(v, ...e3),
|
|
28
|
+
get: (v2) => createNamespacedLogger(`${e2}:${v2}`, _),
|
|
29
|
+
disabled: (e3 = true) => e3 ? DisabledLogger : _
|
|
30
|
+
};
|
|
31
|
+
}, ConsoleLogger = {
|
|
32
|
+
debug: (...e2) => {
|
|
33
|
+
console.debug(...e2);
|
|
34
|
+
},
|
|
35
|
+
log: (...e2) => {
|
|
36
|
+
console.log(...e2);
|
|
37
|
+
},
|
|
38
|
+
warn: (...e2) => {
|
|
39
|
+
console.warn(...e2);
|
|
40
|
+
},
|
|
41
|
+
error: (...e2) => {
|
|
42
|
+
console.error(...e2);
|
|
43
|
+
},
|
|
44
|
+
trace: (...e2) => {
|
|
45
|
+
console.trace(...e2);
|
|
46
|
+
},
|
|
47
|
+
get: (e2) => createNamespacedLogger(`marimo:${e2}`, ConsoleLogger),
|
|
48
|
+
disabled: (e2 = true) => e2 ? DisabledLogger : ConsoleLogger
|
|
49
|
+
}, DisabledLogger = {
|
|
50
|
+
debug: () => Functions.NOOP,
|
|
51
|
+
log: () => Functions.NOOP,
|
|
52
|
+
warn: () => Functions.NOOP,
|
|
53
|
+
error: () => Functions.NOOP,
|
|
54
|
+
trace: () => Functions.NOOP,
|
|
55
|
+
get: () => DisabledLogger,
|
|
56
|
+
disabled: () => DisabledLogger
|
|
57
|
+
};
|
|
58
|
+
function getLogger() {
|
|
59
|
+
return typeof window < "u" && window.Logger || ConsoleLogger;
|
|
60
|
+
}
|
|
61
|
+
const Logger = getLogger();
|
|
6
62
|
var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e2) => {
|
|
7
63
|
let _ = createClassMap(e2), { conflictingClassGroups: v, conflictingClassGroupModifiers: y } = e2;
|
|
8
64
|
return {
|
|
@@ -21,8 +77,8 @@ var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e2) => {
|
|
|
21
77
|
let v = e2[0], y = _.nextPart.get(v), b = y ? getGroupRecursive(e2.slice(1), y) : void 0;
|
|
22
78
|
if (b) return b;
|
|
23
79
|
if (_.validators.length === 0) return;
|
|
24
|
-
let
|
|
25
|
-
return (_a = _.validators.find(({ validator: e3 }) => e3(
|
|
80
|
+
let x = e2.join(CLASS_PART_SEPARATOR);
|
|
81
|
+
return (_a = _.validators.find(({ validator: e3 }) => e3(x))) == null ? void 0 : _a.classGroupId;
|
|
26
82
|
}, arbitraryPropertyRegex = /^\[(.+)\]$/, getGroupIdForArbitraryProperty = (e2) => {
|
|
27
83
|
if (arbitraryPropertyRegex.test(e2)) {
|
|
28
84
|
let _ = arbitraryPropertyRegex.exec(e2)[1], v = _ == null ? void 0 : _.substring(0, _.indexOf(":"));
|
|
@@ -139,12 +195,12 @@ var CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e2) => {
|
|
|
139
195
|
}
|
|
140
196
|
O = false;
|
|
141
197
|
}
|
|
142
|
-
let A = sortModifiers(w).join(":"), j = T ? A + IMPORTANT_MODIFIER : A,
|
|
143
|
-
if (x.includes(
|
|
144
|
-
x.push(
|
|
145
|
-
let
|
|
146
|
-
for (let e4 = 0; e4 <
|
|
147
|
-
let _3 =
|
|
198
|
+
let A = sortModifiers(w).join(":"), j = T ? A + IMPORTANT_MODIFIER : A, M = j + k;
|
|
199
|
+
if (x.includes(M)) continue;
|
|
200
|
+
x.push(M);
|
|
201
|
+
let N = b(k, O);
|
|
202
|
+
for (let e4 = 0; e4 < N.length; ++e4) {
|
|
203
|
+
let _3 = N[e4];
|
|
148
204
|
x.push(j + _3);
|
|
149
205
|
}
|
|
150
206
|
C = _2 + (C.length > 0 ? " " + C : C);
|
|
@@ -1223,62 +1279,7 @@ var fromTheme = (e2) => {
|
|
|
1223
1279
|
function cn(...e2) {
|
|
1224
1280
|
return twMerge(clsx(e2));
|
|
1225
1281
|
}
|
|
1226
|
-
const
|
|
1227
|
-
NOOP: () => {
|
|
1228
|
-
},
|
|
1229
|
-
ASYNC_NOOP: async () => {
|
|
1230
|
-
},
|
|
1231
|
-
THROW: () => {
|
|
1232
|
-
throw Error("Should not be called");
|
|
1233
|
-
},
|
|
1234
|
-
asUpdater: (e2) => typeof e2 == "function" ? e2 : () => e2,
|
|
1235
|
-
identity: (e2) => e2
|
|
1236
|
-
};
|
|
1237
|
-
function throwNotImplemented() {
|
|
1238
|
-
throw Error("Not implemented");
|
|
1239
|
-
}
|
|
1240
|
-
var createNamespacedLogger = (e2, _) => {
|
|
1241
|
-
let v = `[${e2}]`;
|
|
1242
|
-
return {
|
|
1243
|
-
debug: (...e3) => console.debug(v, ...e3),
|
|
1244
|
-
log: (...e3) => _.log(v, ...e3),
|
|
1245
|
-
warn: (...e3) => _.warn(v, ...e3),
|
|
1246
|
-
error: (...e3) => _.error(v, ...e3),
|
|
1247
|
-
trace: (...e3) => _.trace(v, ...e3),
|
|
1248
|
-
get: (v2) => createNamespacedLogger(`${e2}:${v2}`, _),
|
|
1249
|
-
disabled: (e3 = true) => e3 ? DisabledLogger : _
|
|
1250
|
-
};
|
|
1251
|
-
}, ConsoleLogger = {
|
|
1252
|
-
debug: (...e2) => {
|
|
1253
|
-
console.debug(...e2);
|
|
1254
|
-
},
|
|
1255
|
-
log: (...e2) => {
|
|
1256
|
-
console.log(...e2);
|
|
1257
|
-
},
|
|
1258
|
-
warn: (...e2) => {
|
|
1259
|
-
console.warn(...e2);
|
|
1260
|
-
},
|
|
1261
|
-
error: (...e2) => {
|
|
1262
|
-
console.error(...e2);
|
|
1263
|
-
},
|
|
1264
|
-
trace: (...e2) => {
|
|
1265
|
-
console.trace(...e2);
|
|
1266
|
-
},
|
|
1267
|
-
get: (e2) => createNamespacedLogger(`marimo:${e2}`, ConsoleLogger),
|
|
1268
|
-
disabled: (e2 = true) => e2 ? DisabledLogger : ConsoleLogger
|
|
1269
|
-
}, DisabledLogger = {
|
|
1270
|
-
debug: () => Functions.NOOP,
|
|
1271
|
-
log: () => Functions.NOOP,
|
|
1272
|
-
warn: () => Functions.NOOP,
|
|
1273
|
-
error: () => Functions.NOOP,
|
|
1274
|
-
trace: () => Functions.NOOP,
|
|
1275
|
-
get: () => DisabledLogger,
|
|
1276
|
-
disabled: () => DisabledLogger
|
|
1277
|
-
};
|
|
1278
|
-
function getLogger() {
|
|
1279
|
-
return typeof window < "u" && window.Logger || ConsoleLogger;
|
|
1280
|
-
}
|
|
1281
|
-
const Logger = getLogger(), Events = {
|
|
1282
|
+
const Events = {
|
|
1282
1283
|
stopPropagation: (e2) => (_) => {
|
|
1283
1284
|
_.stopPropagation(), e2 && e2(_);
|
|
1284
1285
|
},
|
|
@@ -2042,12 +2043,12 @@ var import_compiler_runtime = require_compiler_runtime(), activeCommon = "active
|
|
|
2042
2043
|
});
|
|
2043
2044
|
Button.displayName = "Button";
|
|
2044
2045
|
export {
|
|
2045
|
-
|
|
2046
|
+
Logger as _,
|
|
2046
2047
|
OverridingHotkeyProvider as a,
|
|
2047
2048
|
Objects as c,
|
|
2048
2049
|
createSlot as d,
|
|
2049
2050
|
createSlottable as f,
|
|
2050
|
-
|
|
2051
|
+
cn as g,
|
|
2051
2052
|
Events as h,
|
|
2052
2053
|
NOT_SET as i,
|
|
2053
2054
|
useEventListener as l,
|
|
@@ -2059,6 +2060,6 @@ export {
|
|
|
2059
2060
|
resolvePlatform as s,
|
|
2060
2061
|
Button as t,
|
|
2061
2062
|
Slot as u,
|
|
2062
|
-
|
|
2063
|
-
|
|
2063
|
+
Functions as v,
|
|
2064
|
+
throwNotImplemented as y
|
|
2064
2065
|
};
|