@marimo-team/islands 0.23.14-dev30 → 0.23.14-dev31

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.
@@ -9,7 +9,7 @@ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
9
9
  import { lt as kioskModeAtom, pt as outputIsStale } from "./html-to-image-DLSOS-bE.js";
10
10
  import "./chunk-5FQGJX7Z-BbqSm5gU.js";
11
11
  import { u as createLucideIcon } from "./dist--2Bqjvs0.js";
12
- import { a as DEFAULT_SLIDE_TYPE, c as Slide, ct as PanelGroup, i as DEFAULT_DECK_TRANSITION, lt as PanelResizeHandle, on as EyeOff, s as SlideSidebar, sn as Expand, st as Panel, t as useNotebookCodeAvailable, un as Code } from "./code-visibility-CAkgOEA5.js";
12
+ import { a as DEFAULT_SLIDE_TYPE, c as Slide, ct as PanelGroup, i as DEFAULT_DECK_TRANSITION, lt as PanelResizeHandle, on as EyeOff, s as SlideSidebar, sn as Expand, st as Panel, t as useNotebookCodeAvailable, un as Code } from "./code-visibility-0uqOIXQg.js";
13
13
  import { X as useDebouncedCallback } from "./input-BSdZp5Ng.js";
14
14
  import "./toDate-D1Z7ZXWh.js";
15
15
  import "./react-dom-BTJzcVJ9.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.23.14-dev30",
3
+ "version": "0.23.14-dev31",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -27,6 +27,7 @@ import { useDebouncedCallback } from "@/hooks/useDebounce";
27
27
  import type { GetDataUrl } from "@/plugins/impl/DataTablePlugin";
28
28
  import { vegaLoadData } from "@/plugins/impl/vega/loader";
29
29
  import { useTheme } from "@/theme/useTheme";
30
+ import { uniqueBy } from "@/utils/arrays";
30
31
  import { inferFieldTypes } from "../columns";
31
32
  import {
32
33
  type FieldTypesWithExternalType,
@@ -67,9 +68,7 @@ export function mergeIndexFields(
67
68
  if (!rowHeaders || rowHeaders.length === 0) {
68
69
  return base;
69
70
  }
70
- const seen = new Set(base.map(([name]) => name));
71
- const indexFields = rowHeaders.filter(([name]) => !seen.has(name));
72
- return [...base, ...indexFields];
71
+ return uniqueBy([...base, ...rowHeaders], (f) => f[0]);
73
72
  }
74
73
 
75
74
  export interface TablePanelProps {