@marimo-team/islands 0.25.2-dev53 → 0.25.2-dev61

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.
Files changed (32) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BDizDY3_.js → ConnectedDataExplorerComponent-BZmqc_F0.js} +3 -3
  2. package/dist/{ErrorBoundary-Bwg2kLKS.js → ErrorBoundary-BL7bFtwp.js} +1 -1
  3. package/dist/{chat-ui-DMu_DFfr.js → chat-ui-Da2o4rps.js} +4 -4
  4. package/dist/{code-visibility-D_G0XbX7.js → code-visibility-_ihZ-SEb.js} +1 -1
  5. package/dist/{common-DcLm9QJY.js → common-ukM0sIeR.js} +8901 -8619
  6. package/dist/{data-grid-overlay-editor-qKNqq_Xm.js → data-grid-overlay-editor-C1y0BPWs.js} +1 -1
  7. package/dist/dropdown-menu-Cz4TdOJh.js +4678 -0
  8. package/dist/{feedback-button-Bvjbm5Qi.js → feedback-button-B-3hznXb.js} +2 -2
  9. package/dist/{glide-data-editor-DE3Yi97D.js → glide-data-editor-CWMyztM6.js} +5 -5
  10. package/dist/{globals-C9rLC5XL.js → globals-Iua0hQv2.js} +1 -1
  11. package/dist/{html-to-image-CFSoonFo.js → html-to-image-C-XXpUFD.js} +3 -3
  12. package/dist/{label-DPWAFACU.js → label-DQO1jFjf.js} +8 -8
  13. package/dist/main.js +2612 -2566
  14. package/dist/{number-overlay-editor-BvtSmUfm.js → number-overlay-editor--czk7lAt.js} +1 -1
  15. package/dist/{process-output-D8io8maY.js → process-output-CdDN3Pdp.js} +1 -1
  16. package/dist/{reveal-component-Cpev6-I3.js → reveal-component-DYQDbLdD.js} +3 -3
  17. package/dist/{spec-rSPz3O6Q.js → spec-DVsoMvYT.js} +102 -123
  18. package/dist/style.css +1 -1
  19. package/dist/{useDateFormatter-BTtPAD2R.js → useDateFormatter-C-tz65rD.js} +51 -30
  20. package/package.json +3 -3
  21. package/src/components/data-table/TableTopBar.tsx +4 -0
  22. package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
  23. package/src/components/data-table/__tests__/schemas.test.ts +57 -0
  24. package/src/components/data-table/data-table.tsx +3 -0
  25. package/src/components/data-table/export-actions.tsx +365 -81
  26. package/src/components/data-table/schemas.ts +90 -14
  27. package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
  28. package/src/plugins/impl/DataTablePlugin.tsx +23 -2
  29. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
  30. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +15 -3
  31. package/src/stories/dataframe.stories.tsx +7 -0
  32. package/dist/dropdown-menu-R7yCbshA.js +0 -4472
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
3
  import { h as n } from "./tooltip-CuNWg2ay.js";
4
- import { i as r } from "./label-DPWAFACU.js";
4
+ import { i as r } from "./label-DQO1jFjf.js";
5
5
  var i = n("chart-pie", [["path", {
6
6
  d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
7
7
  key: "pzmjnu"
@@ -21,16 +21,37 @@ var i = n("chart-pie", [["path", {
21
21
  d: "M9 19h6",
22
22
  key: "456am0"
23
23
  }]
24
- ]), o = /* @__PURE__ */ e(t(), 1);
25
- function s(e, t) {
26
- let n = (0, o.useRef)(null);
24
+ ]), o = n("table", [
25
+ ["path", {
26
+ d: "M12 3v18",
27
+ key: "108xh3"
28
+ }],
29
+ ["rect", {
30
+ width: "18",
31
+ height: "18",
32
+ x: "3",
33
+ y: "3",
34
+ rx: "2",
35
+ key: "afitv7"
36
+ }],
37
+ ["path", {
38
+ d: "M3 9h18",
39
+ key: "1pudct"
40
+ }],
41
+ ["path", {
42
+ d: "M3 15h18",
43
+ key: "5xshup"
44
+ }]
45
+ ]), s = /* @__PURE__ */ e(t(), 1);
46
+ function c(e, t) {
47
+ let n = (0, s.useRef)(null);
27
48
  return e && n.current && t(e, n.current) && (e = n.current), n.current = e, e;
28
49
  }
29
50
  //#endregion
30
- //#region ../node_modules/.pnpm/@internationalized+date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.mjs
31
- var c = /* @__PURE__ */ new Map(), l = class {
51
+ //#region ../node_modules/.pnpm/@internationalized+date@3.12.4/node_modules/@internationalized/date/dist/private/DateFormatter.mjs
52
+ var l = /* @__PURE__ */ new Map(), u = class {
32
53
  constructor(e, t = {}) {
33
- this.formatter = d(e, t), this.options = t;
54
+ this.formatter = f(e, t), this.options = t;
34
55
  }
35
56
  format(e) {
36
57
  return this.formatter.format(e);
@@ -65,41 +86,41 @@ var c = /* @__PURE__ */ new Map(), l = class {
65
86
  }
66
87
  resolvedOptions() {
67
88
  let e = this.formatter.resolvedOptions();
68
- return h() && (this.resolvedHourCycle ||= g(e.locale, this.options), e.hourCycle = this.resolvedHourCycle, e.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), e.calendar === "ethiopic-amete-alem" && (e.calendar = "ethioaa"), e;
89
+ return g() && (this.resolvedHourCycle ||= _(e.locale, this.options), e.hourCycle = this.resolvedHourCycle, e.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), e.calendar === "ethiopic-amete-alem" && (e.calendar = "ethioaa"), e;
69
90
  }
70
- }, u = {
91
+ }, d = {
71
92
  true: { ja: "h11" },
72
93
  false: {}
73
94
  };
74
- function d(e, t = {}) {
75
- if (typeof t.hour12 == "boolean" && p()) {
95
+ function f(e, t = {}) {
96
+ if (typeof t.hour12 == "boolean" && m()) {
76
97
  t = { ...t };
77
- let n = u[String(t.hour12)][e.split("-")[0]], r = t.hour12 ? "h12" : "h23";
98
+ let n = d[String(t.hour12)][e.split("-")[0]], r = t.hour12 ? "h12" : "h23";
78
99
  t.hourCycle = n ?? r, delete t.hour12;
79
100
  }
80
101
  let n = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
81
- if (c.has(n)) return c.get(n);
102
+ if (l.has(n)) return l.get(n);
82
103
  let r = new Intl.DateTimeFormat(e, t);
83
- return c.set(n, r), r;
104
+ return l.set(n, r), r;
84
105
  }
85
- var f = null;
86
- function p() {
87
- return f ??= new Intl.DateTimeFormat("en-US", {
106
+ var p = null;
107
+ function m() {
108
+ return p ??= new Intl.DateTimeFormat("en-US", {
88
109
  hour: "numeric",
89
110
  hour12: !1
90
- }).format(new Date(2020, 2, 3, 0)) === "24", f;
111
+ }).format(new Date(2020, 2, 3, 0)) === "24", p;
91
112
  }
92
- var m = null;
93
- function h() {
94
- return m ??= new Intl.DateTimeFormat("fr", {
113
+ var h = null;
114
+ function g() {
115
+ return h ??= new Intl.DateTimeFormat("fr", {
95
116
  hour: "numeric",
96
117
  hour12: !1
97
- }).resolvedOptions().hourCycle === "h12", m;
118
+ }).resolvedOptions().hourCycle === "h12", h;
98
119
  }
99
- function g(e, t) {
120
+ function _(e, t) {
100
121
  if (!t.timeStyle && !t.hour) return;
101
122
  e = e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), e += (e.includes("-u-") ? "" : "-u") + "-nu-latn";
102
- let n = d(e, {
123
+ let n = f(e, {
103
124
  ...t,
104
125
  timeZone: void 0
105
126
  }), r = parseInt(n.formatToParts(new Date(2020, 2, 3, 0)).find((e) => e.type === "hour").value, 10), i = parseInt(n.formatToParts(new Date(2020, 2, 3, 23)).find((e) => e.type === "hour").value, 10);
@@ -110,13 +131,13 @@ function g(e, t) {
110
131
  throw Error("Unexpected hour cycle result");
111
132
  }
112
133
  //#endregion
113
- //#region ../node_modules/.pnpm/@react-aria+i18n@3.12.16_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/i18n/dist/useDateFormatter.mjs
114
- function _(e) {
115
- e = s(e ?? {}, v);
134
+ //#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/i18n/useDateFormatter.mjs
135
+ function v(e) {
136
+ e = c(e ?? {}, y);
116
137
  let { locale: t } = r();
117
- return (0, o.useMemo)(() => new l(t, e), [t, e]);
138
+ return (0, s.useMemo)(() => new u(t, e), [t, e]);
118
139
  }
119
- function v(e, t) {
140
+ function y(e, t) {
120
141
  if (e === t) return !0;
121
142
  let n = Object.keys(e), r = Object.keys(t);
122
143
  if (n.length !== r.length) return !1;
@@ -124,4 +145,4 @@ function v(e, t) {
124
145
  return !0;
125
146
  }
126
147
  //#endregion
127
- export { i as a, a as i, l as n, s as r, _ as t };
148
+ export { a, o as i, u as n, i as o, c as r, v as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.25.2-dev53",
3
+ "version": "0.25.2-dev61",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -122,8 +122,8 @@
122
122
  "pyodide": "314.0.0",
123
123
  "radix-ui": "1.6.7",
124
124
  "react-arborist": "^3.16.0",
125
- "react-aria": "3.47.0",
126
- "react-aria-components": "1.16.0",
125
+ "react-aria": "3.52.1",
126
+ "react-aria-components": "1.21.1",
127
127
  "react-codemirror-merge": "4.25.11",
128
128
  "react-dnd": "^16.0.1",
129
129
  "react-dnd-html5-backend": "^16.0.1",
@@ -54,6 +54,8 @@ export const TableTopBar = <TData,>({
54
54
  togglePanel,
55
55
  isAnyPanelOpen,
56
56
  downloadAs,
57
+ getExportMetadata,
58
+ metadataSource,
57
59
  sizeBytes,
58
60
  sizeBytesIsLoading,
59
61
  }: TableTopBarProps<TData>) => {
@@ -132,6 +134,8 @@ export const TableTopBar = <TData,>({
132
134
  {downloadAs && (
133
135
  <ExportActions
134
136
  downloadAs={downloadAs}
137
+ getExportMetadata={getExportMetadata}
138
+ metadataSource={metadataSource}
135
139
  sizeBytes={sizeBytes}
136
140
  sizeBytesIsLoading={sizeBytesIsLoading}
137
141
  />