@marimo-team/islands 0.20.5-dev35 → 0.20.5-dev36
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
|
@@ -70710,7 +70710,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
70710
70710
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
70711
70711
|
}
|
|
70712
70712
|
}
|
|
70713
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.20.5-
|
|
70713
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.20.5-dev36"), showCodeInRunModeAtom = atom(true);
|
|
70714
70714
|
atom(null);
|
|
70715
70715
|
var import_compiler_runtime$89 = require_compiler_runtime();
|
|
70716
70716
|
function useKeydownOnElement(e, r) {
|
|
@@ -92493,6 +92493,7 @@ ${c}
|
|
|
92493
92493
|
"lon",
|
|
92494
92494
|
"curveNumber",
|
|
92495
92495
|
"pointNumber",
|
|
92496
|
+
"pointNumbers",
|
|
92496
92497
|
"pointIndex"
|
|
92497
92498
|
];
|
|
92498
92499
|
function extractPoints(e) {
|
|
@@ -92500,8 +92501,11 @@ ${c}
|
|
|
92500
92501
|
let r;
|
|
92501
92502
|
return e.map((e2) => {
|
|
92502
92503
|
var _a3;
|
|
92503
|
-
let c = Array.isArray(e2.data.hovertemplate) ? e2.data.hovertemplate[0] : e2.data.hovertemplate;
|
|
92504
|
-
return !
|
|
92504
|
+
let c = pick_default(e2, STANDARD_POINT_KEYS), d = Array.isArray(e2.data.hovertemplate) ? e2.data.hovertemplate[0] : e2.data.hovertemplate;
|
|
92505
|
+
return !d || ((_a3 = e2.data) == null ? void 0 : _a3.type) === "heatmap" ? c : (r = r ? r.update(d) : createParser(d), {
|
|
92506
|
+
...c,
|
|
92507
|
+
...r.parse(e2)
|
|
92508
|
+
});
|
|
92505
92509
|
});
|
|
92506
92510
|
}
|
|
92507
92511
|
function _temp$7(e) {
|
package/package.json
CHANGED
|
@@ -250,6 +250,7 @@ const STANDARD_POINT_KEYS: string[] = [
|
|
|
250
250
|
"lon",
|
|
251
251
|
"curveNumber",
|
|
252
252
|
"pointNumber",
|
|
253
|
+
"pointNumbers",
|
|
253
254
|
"pointIndex",
|
|
254
255
|
];
|
|
255
256
|
|
|
@@ -263,6 +264,8 @@ function extractPoints(
|
|
|
263
264
|
let parser: PlotlyTemplateParser | undefined;
|
|
264
265
|
|
|
265
266
|
return points.map((point) => {
|
|
267
|
+
const standardPointFields = pick(point, STANDARD_POINT_KEYS);
|
|
268
|
+
|
|
266
269
|
// Get the first hovertemplate
|
|
267
270
|
const hovertemplate = Array.isArray(point.data.hovertemplate)
|
|
268
271
|
? point.data.hovertemplate[0]
|
|
@@ -271,13 +274,16 @@ function extractPoints(
|
|
|
271
274
|
// For chart types with standard point keys (e.g. heatmaps),
|
|
272
275
|
// or when there's no hovertemplate, pick keys directly from the point.
|
|
273
276
|
if (!hovertemplate || point.data?.type === "heatmap") {
|
|
274
|
-
return
|
|
277
|
+
return standardPointFields;
|
|
275
278
|
}
|
|
276
279
|
|
|
277
280
|
// Update or create a parser
|
|
278
281
|
parser = parser
|
|
279
282
|
? parser.update(hovertemplate)
|
|
280
283
|
: createParser(hovertemplate);
|
|
281
|
-
return
|
|
284
|
+
return {
|
|
285
|
+
...standardPointFields,
|
|
286
|
+
...parser.parse(point),
|
|
287
|
+
};
|
|
282
288
|
});
|
|
283
289
|
}
|