@sheetxl/studio-mui 0.8.0-beta.6 → 0.8.0-beta.7

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 (62) hide show
  1. package/browser/cjs/{Bi26L7L89ZK_y5Pk.cjs → 2tG9HJLr-WjsOCP3.cjs} +1 -1
  2. package/browser/cjs/4_Zy3pR6YXkzISoK.cjs +1 -0
  3. package/browser/cjs/BcBrhEv9acaTxPkO.cjs +13 -0
  4. package/browser/cjs/{BlNKpwiG-Q7eIi5t.cjs → Clzu4HOXk3QSlzUD.cjs} +3 -3
  5. package/browser/cjs/{BQMCM3iFn4MNWAkB.cjs → HuPFsmz7kyZVo3c7.cjs} +1 -1
  6. package/browser/cjs/index.cjs +1 -1
  7. package/browser/esm/{CKemMJZNIPnJ0dUE.mjs → 0Rpk1T56LoSnDrmq.mjs} +2 -2
  8. package/browser/esm/{C5swGBbBLdDzg_bm.mjs → 3L04oqyfyjRxhmzg.mjs} +2 -2
  9. package/browser/esm/{CyQk62MFBCep2ZZs.mjs → 7gisHVXYgcPxWH8-.mjs} +2 -2
  10. package/browser/esm/{BofZe0q9bsHQr0Xd.mjs → B57WM1X24rsvTF_o.mjs} +1 -1
  11. package/browser/esm/{BybBaLxSKyGAsxqO.mjs → B7k8enrhC2Rvqhn1.mjs} +3 -3
  12. package/browser/esm/{BPzT8gL3SgD0CG7V.mjs → BK4OEmeaw-kC-vAN.mjs} +1302 -1302
  13. package/browser/esm/{2_WF-hy6x4dXfEzW.mjs → BWAIbfQZ6h5xVLdB.mjs} +1 -1
  14. package/browser/esm/{aGoWX29-zbUaPh2U.mjs → B_PhUn6yySwXt2wo.mjs} +2 -2
  15. package/browser/esm/{D-JQOjmAh6Gk6wVM.mjs → C36WT3I3aIR8y7I6.mjs} +2 -2
  16. package/browser/esm/{BlWsO6M15Ii13NrV.mjs → CH7ZfljN7ru0Y9Wg.mjs} +2 -2
  17. package/browser/esm/{CsNOEAKuHLfckItX.mjs → CpTqhDZotYaKGbLl.mjs} +1 -1
  18. package/browser/esm/{D3b3dWTjvFd1Kj5g.mjs → D3BwGfI_IEjay0dA.mjs} +1 -1
  19. package/browser/esm/{BFxtcKJBbfjtMft-.mjs → D7HOLngE_1FYF6y6.mjs} +3 -3
  20. package/browser/esm/{D8FEKUKVxH32duMx.mjs → D88iVsgfDG9k-qf_.mjs} +3 -3
  21. package/browser/esm/{61ip_C1X9ls4svw6.mjs → DErAKw-lIK3RY8m-.mjs} +1 -1
  22. package/browser/esm/{Dzym1WSjYb_mnVkJ.mjs → DNhLiDpvz3lAR190.mjs} +2 -2
  23. package/browser/esm/{JYRkZ4iKzbWnNhEs.mjs → DR95Rgl8ItgWla8V.mjs} +2 -2
  24. package/browser/esm/{p62JxLmjmWD2MQq1.mjs → DvYZOxsaTNeBKuFq.mjs} +98 -97
  25. package/browser/esm/{27jPjqdDLWn5qbQ8.mjs → DyNZEBlugP-x15kP.mjs} +3 -3
  26. package/browser/esm/{BGdZT1Ka4ohDCZpW.mjs → DzWcb3yuPXS0E4_P.mjs} +3 -3
  27. package/browser/esm/{DTLKzrZGPkkNlncN.mjs → WftYXVWvPKx99H0H.mjs} +2 -2
  28. package/browser/esm/{DRUKu2I27bidfyvH.mjs → eoNyVUe5ZEpHwJ7k.mjs} +1 -1
  29. package/browser/esm/{FK7vqizwRujDsqL2.mjs → hFLn30a6N1fEy7fz.mjs} +2159 -1562
  30. package/browser/esm/index.mjs +56 -56
  31. package/browser/esm/{6EK3JgWrKYfqzAfV.mjs → jkFhDHWwKoyTSSDL.mjs} +1 -1
  32. package/licenses/dependencies.txt +79 -79
  33. package/node/esm/{CE6ZU2MVb3_-FzIk.mjs → BTI9exTFHEYzVjw9.mjs} +1 -1
  34. package/node/esm/{DDVJs9oOFXR3RfSi.mjs → BbXHuDHRHOW_6Sbs.mjs} +1 -1
  35. package/node/esm/{CtoRlEz1GwA88zTu.mjs → BlD3bHo8AAxK7O1j.mjs} +1 -1
  36. package/node/esm/{uIRinWE0OCKJvsGN.mjs → CbpkRpNbQYYOJbxH.mjs} +3 -3
  37. package/node/esm/{K6LEXUZkuqoEn5yJ.mjs → Ccrq9TNkiiSHKw-m.mjs} +1 -1
  38. package/node/esm/{qu70N1tsIwi7LmT6.mjs → CpteKzMPi39jxmYL.mjs} +1 -1
  39. package/node/esm/{D3xcuMwJvLJhlPNV.mjs → Cul_Vgip2OE8yFBQ.mjs} +1 -1
  40. package/node/esm/{CksPMsHwUSCpFnpS.mjs → DA2gosTk8L-FUVI5.mjs} +1058 -1058
  41. package/node/esm/{3J2-TRYWEsvnTDnO.mjs → DP23-d6_VRFro0_D.mjs} +103 -102
  42. package/node/esm/{CKOhL08sVy1N_Uza.mjs → DQtpY5kX99aMHygs.mjs} +1 -1
  43. package/node/esm/{Dc4t_AYLdTAnPOIT.mjs → DifZAchLTKOmWpkv.mjs} +1 -1
  44. package/node/esm/{JUUre9pYia7feetw.mjs → Dvvg1Yo2e7OGd8sv.mjs} +1 -1
  45. package/node/esm/{B2QOYsl1YmcwknsP.mjs → YKY4d8_Ckc8nPQqI.mjs} +1 -1
  46. package/node/esm/index.mjs +3123 -2526
  47. package/node/esm/{CzERDnu2VbNTjJgI.mjs → lH1iFsECniBRMubb.mjs} +2 -2
  48. package/node/esm/{ObY_iULY2ezBYD3q.mjs → v0BFuYjhq2G8zDRe.mjs} +1 -1
  49. package/package.json +9 -9
  50. package/resources/locales/de/ui.msg.json +19 -0
  51. package/resources/locales/en/ui.msg.json +19 -0
  52. package/types/src/comments/CommentCard.d.ts +41 -0
  53. package/types/src/comments/CommentsPlugin.d.ts +6 -0
  54. package/types/src/comments/CommentsTaskPane.d.ts +23 -0
  55. package/types/src/comments/index.d.ts +4 -0
  56. package/types/src/index.d.ts +1 -0
  57. package/types/src/studio/useStudioApp.d.ts +2 -2
  58. package/types/src/template/useTemplateCatalog.d.ts +5 -5
  59. package/types/src/workbook/DefaultRenderers.d.ts +3 -1
  60. package/types/src/workbook/WorkbookElement.d.ts +1 -1
  61. package/browser/cjs/iFPhqab5w95hHEsT.cjs +0 -1
  62. package/browser/cjs/xCAd86Y_REa3Xs1o.cjs +0 -13
@@ -1,28 +1,29 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { useGridColorScheme as e } from "@sheetxl/react";
8
- import { DynamicIcon as t, ReactUtils as r, useTranslator as a } from "@sheetxl/utils-react";
9
- import { forwardRef as n, memo as o, useCallback as l, useEffect as s, useLayoutEffect as c, useMemo as d, useRef as p, useState as m } from "react";
10
- import { ExhibitIconButton as u } from "@sheetxl/utils-mui";
11
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
12
- import { Box as f, Button as y, ButtonBase as x, InputAdornment as b, Skeleton as v, TextField as w, Typography as k } from "@mui/material";
7
+ import { VERSION as e } from "@sheetxl/sdk";
8
+ import { useGridColorScheme as t } from "@sheetxl/react";
9
+ import { DynamicIcon as r, ReactUtils as a, useTranslator as i } from "@sheetxl/utils-react";
10
+ import { forwardRef as o, memo as l, useCallback as s, useEffect as c, useLayoutEffect as d, useMemo as p, useRef as m, useState as u } from "react";
11
+ import { ExhibitIconButton as h } from "@sheetxl/utils-mui";
12
+ import { jsx as g, jsxs as f } from "react/jsx-runtime";
13
+ import { Box as y, Button as x, ButtonBase as b, InputAdornment as v, Skeleton as w, TextField as k, Typography as $ } from "@mui/material";
13
14
  import { listResources as C } from "@sheetxl/utils";
14
- import $ from "clsx";
15
- var A = "8 / 5", M = (t) => {
16
- const { entry: r } = t, a = ("dark" === e() ? r.thumbnailDarkUrl : void 0) ?? r.thumbnailUrl;
17
- return h(D, { src: a }, a);
18
- }, D = (e) => {
19
- const { src: r } = e, [a, i] = m(r ? "loading" : "failed");
20
- return h(f, {
15
+ import A from "clsx";
16
+ var M = "8 / 5", D = (e) => {
17
+ const { entry: r } = e, a = ("dark" === t() ? r.thumbnailDarkUrl : void 0) ?? r.thumbnailUrl;
18
+ return g(R, { src: a }, a);
19
+ }, R = (e) => {
20
+ const { src: t } = e, [a, i] = u(t ? "loading" : "failed");
21
+ return g(y, {
21
22
  className: "template-thumbnail",
22
23
  sx: {
23
24
  position: "relative",
24
25
  width: "100%",
25
- aspectRatio: A,
26
+ aspectRatio: M,
26
27
  overflow: "hidden",
27
28
  borderRadius: 1,
28
29
  border: (e) => `1px solid ${e.palette.divider}`,
@@ -32,14 +33,14 @@ var A = "8 / 5", M = (t) => {
32
33
  alignItems: "center",
33
34
  justifyContent: "center"
34
35
  },
35
- children: "failed" === a ? h(t, {
36
+ children: "failed" === a ? g(r, {
36
37
  iconKey: "FileNew",
37
38
  style: {
38
39
  fontSize: "2.5rem",
39
40
  opacity: .4
40
41
  }
41
- }) : h("img", {
42
- src: r,
42
+ }) : g("img", {
43
+ src: t,
43
44
  alt: "",
44
45
  loading: "lazy",
45
46
  draggable: !1,
@@ -55,9 +56,9 @@ var A = "8 / 5", M = (t) => {
55
56
  }
56
57
  })
57
58
  });
58
- }, R = (e) => {
59
+ }, S = (e) => {
59
60
  const { entry: t, category: r, onSelect: a } = e;
60
- return g(x, {
61
+ return f(b, {
61
62
  className: "template-tile",
62
63
  disableRipple: !0,
63
64
  onClick: a,
@@ -80,14 +81,14 @@ var A = "8 / 5", M = (t) => {
80
81
  outlineOffset: "-2px"
81
82
  }
82
83
  },
83
- children: [h(M, { entry: t }), g(f, {
84
+ children: [g(D, { entry: t }), f(y, {
84
85
  sx: { minWidth: 0 },
85
- children: [h(k, {
86
+ children: [g($, {
86
87
  variant: "subtitle2",
87
88
  component: "div",
88
89
  noWrap: !0,
89
90
  children: t.title
90
- }), r ? h(k, {
91
+ }), r ? g($, {
91
92
  variant: "caption",
92
93
  component: "div",
93
94
  noWrap: !0,
@@ -96,7 +97,7 @@ var A = "8 / 5", M = (t) => {
96
97
  }) : null]
97
98
  })]
98
99
  });
99
- }, S = () => g(f, {
100
+ }, E = () => f(y, {
100
101
  sx: {
101
102
  padding: 1,
102
103
  display: "flex",
@@ -104,45 +105,45 @@ var A = "8 / 5", M = (t) => {
104
105
  gap: .75
105
106
  },
106
107
  children: [
107
- h(v, {
108
+ g(w, {
108
109
  variant: "rectangular",
109
110
  sx: {
110
111
  width: "100%",
111
112
  height: "auto",
112
- aspectRatio: A,
113
+ aspectRatio: M,
113
114
  borderRadius: 1
114
115
  }
115
116
  }),
116
- h(v, {
117
+ g(w, {
117
118
  variant: "text",
118
119
  width: "60%"
119
120
  }),
120
- h(v, {
121
+ g(w, {
121
122
  variant: "text",
122
123
  width: "35%"
123
124
  })
124
125
  ]
125
- }), E = o(n((e, t) => {
126
- const { catalog: i, onSelect: n, filter: o, groupBy: l, renderTile: u, tileMinWidth: x = 180, emptyLabel: b, visibleRows: v, sx: w = r.EmptyCssProperties, style: C, className: A, onKeyDown: M, ...D } = e, E = a(), N = p(null), [U, z] = m(0), T = p(null);
126
+ }), N = l(o((e, t) => {
127
+ const { catalog: r, onSelect: n, filter: o, groupBy: l, renderTile: s, tileMinWidth: h = 180, emptyLabel: b, visibleRows: v, sx: w = a.EmptyCssProperties, style: k, className: C, onKeyDown: M, ...D } = e, R = i(), N = m(null), [z, U] = u(0), T = m(null);
127
128
  T.current = () => {
128
129
  const e = N.current?.querySelector(".template-grid")?.firstElementChild, t = (e?.offsetHeight ? e : e?.firstElementChild)?.getBoundingClientRect().height;
129
- t && z(t);
130
- }, c(() => {
130
+ t && U(t);
131
+ }, d(() => {
131
132
  v && T.current?.();
132
- }), s(() => {
133
+ }), c(() => {
133
134
  const e = N.current;
134
135
  if (!v || !e) return;
135
136
  const t = new ResizeObserver(() => T.current?.());
136
137
  return t.observe(e), () => t.disconnect();
137
138
  }, [v]);
138
- const I = d(() => new Map(i.categories.map((e) => [e.id, e])), [i.categories]), K = d(() => {
139
- const e = o ? i.entries.filter(o) : i.entries;
139
+ const I = p(() => new Map(r.categories.map((e) => [e.id, e])), [r.categories]), K = p(() => {
140
+ const e = o ? r.entries.filter(o) : r.entries;
140
141
  if (!l) return [{
141
142
  key: null,
142
143
  entries: e
143
144
  }];
144
145
  const t = /* @__PURE__ */ new Map();
145
- for (const e of i.categories) t.set(e.id, []);
146
+ for (const e of r.categories) t.set(e.id, []);
146
147
  for (const r of e) {
147
148
  const e = l(r);
148
149
  let a = t.get(e);
@@ -154,24 +155,24 @@ var A = "8 / 5", M = (t) => {
154
155
  entries: t
155
156
  }));
156
157
  }, [
157
- i.entries,
158
- i.categories,
158
+ r.entries,
159
+ r.categories,
159
160
  I,
160
161
  o,
161
162
  l
162
163
  ]), L = {
163
164
  display: "grid",
164
- gridTemplateColumns: `repeat(auto-fill, minmax(${x}px, 1fr))`,
165
+ gridTemplateColumns: `repeat(auto-fill, minmax(${h}px, 1fr))`,
165
166
  gap: "8px"
166
167
  };
167
168
  let P;
168
- return P = "loading" === i.status ? h(f, {
169
+ return P = "loading" === r.status ? g(y, {
169
170
  className: "template-grid",
170
171
  sx: L,
171
172
  "aria-busy": "true",
172
- "aria-label": E("template.loading"),
173
- children: Array.from({ length: 6 }, (e, t) => h(S, {}, t))
174
- }) : "error" === i.status ? g(f, {
173
+ "aria-label": R("template.loading"),
174
+ children: Array.from({ length: 6 }, (e, t) => g(E, {}, t))
175
+ }) : "error" === r.status ? f(y, {
175
176
  sx: {
176
177
  display: "flex",
177
178
  flexDirection: "column",
@@ -180,28 +181,28 @@ var A = "8 / 5", M = (t) => {
180
181
  padding: 4,
181
182
  textAlign: "center"
182
183
  },
183
- children: [h(k, {
184
+ children: [g($, {
184
185
  variant: "body2",
185
186
  sx: { color: "text.secondary" },
186
- children: E("template.loadFailed")
187
- }), h(y, {
187
+ children: R("template.loadFailed")
188
+ }), g(x, {
188
189
  variant: "outlined",
189
190
  size: "small",
190
- onClick: i.retry,
191
- children: E("template.retry")
191
+ onClick: r.retry,
192
+ children: R("template.retry")
192
193
  })]
193
- }) : K.every((e) => 0 === e.entries.length) ? h(k, {
194
+ }) : K.every((e) => 0 === e.entries.length) ? g($, {
194
195
  variant: "body2",
195
196
  sx: {
196
197
  color: "text.secondary",
197
198
  padding: 4,
198
199
  textAlign: "center"
199
200
  },
200
- children: b ?? E("template.empty")
201
- }) : K.map((e) => g(f, {
201
+ children: b ?? R("template.empty")
202
+ }) : K.map((e) => f(y, {
202
203
  role: "group",
203
204
  "aria-label": e.title,
204
- children: [e.title ? h(k, {
205
+ children: [e.title ? g($, {
205
206
  variant: "overline",
206
207
  component: "div",
207
208
  sx: {
@@ -209,7 +210,7 @@ var A = "8 / 5", M = (t) => {
209
210
  paddingX: 1
210
211
  },
211
212
  children: e.title
212
- }) : null, h(f, {
213
+ }) : null, g(y, {
213
214
  className: "template-grid",
214
215
  sx: L,
215
216
  children: e.entries.map((e) => {
@@ -217,28 +218,28 @@ var A = "8 / 5", M = (t) => {
217
218
  category: I.get(e.category),
218
219
  onSelect: () => n?.(e)
219
220
  };
220
- return u ? h(f, {
221
+ return s ? g(y, {
221
222
  sx: { display: "contents" },
222
- children: u(e, t)
223
- }, e.id) : h(R, {
223
+ children: s(e, t)
224
+ }, e.id) : g(S, {
224
225
  entry: e,
225
226
  ...t
226
227
  }, e.id);
227
228
  })
228
229
  })]
229
- }, e.key ?? "")), h(f, {
230
+ }, e.key ?? "")), g(y, {
230
231
  ref: t,
231
- className: $(A, "template-panel"),
232
+ className: A(C, "template-panel"),
232
233
  sx: w,
233
- style: v && U ? {
234
+ style: v && z ? {
234
235
  boxSizing: "content-box",
235
236
  scrollbarGutter: "stable",
236
- height: `${Math.ceil(v * U + 8 * (v - 1))}px`,
237
- minHeight: `${Math.ceil(U)}px`,
238
- ...C
239
- } : C,
237
+ height: `${Math.ceil(v * z + 8 * (v - 1))}px`,
238
+ minHeight: `${Math.ceil(z)}px`,
239
+ ...k
240
+ } : k,
240
241
  ...D,
241
- children: h(f, {
242
+ children: g(y, {
242
243
  ref: N,
243
244
  onKeyDown: (e) => {
244
245
  if (M?.(e), e.defaultPrevented) return;
@@ -277,8 +278,8 @@ var A = "8 / 5", M = (t) => {
277
278
  })
278
279
  });
279
280
  }));
280
- E.displayName = "TemplatePanel";
281
- var N = (e, t, r) => {
281
+ N.displayName = "TemplatePanel";
282
+ var z = (e, t, r) => {
282
283
  const a = t.trim().toLowerCase();
283
284
  return !a || [
284
285
  e.title,
@@ -287,33 +288,33 @@ var N = (e, t, r) => {
287
288
  ...e.tags ?? []
288
289
  ].some((e) => e?.toLowerCase().includes(a));
289
290
  }, U = (e) => {
290
- const { value: r, onChange: i, sx: n } = e, o = a();
291
- return h(w, {
291
+ const { value: t, onChange: a, sx: n } = e, o = i();
292
+ return g(k, {
292
293
  size: "small",
293
- value: r,
294
+ value: t,
294
295
  placeholder: o("template.search"),
295
- onChange: (e) => i(e.target.value),
296
+ onChange: (e) => a(e.target.value),
296
297
  onKeyDown: (e) => {
297
- "Escape" === e.key && r && (e.stopPropagation(), i(""));
298
+ "Escape" === e.key && t && (e.stopPropagation(), a(""));
298
299
  },
299
300
  sx: n,
300
301
  slotProps: {
301
302
  input: {
302
303
  sx: { backgroundColor: "background.paper" },
303
- startAdornment: h(b, {
304
+ startAdornment: g(v, {
304
305
  position: "start",
305
- children: h(t, { iconKey: "Find" })
306
+ children: g(r, { iconKey: "Find" })
306
307
  }),
307
- endAdornment: r ? h(b, {
308
+ endAdornment: t ? g(v, {
308
309
  position: "end",
309
- children: h(u, {
310
+ children: g(h, {
310
311
  "aria-label": o("template.clearSearch"),
311
312
  propsTooltip: { label: o("template.clearSearch") },
312
313
  onMouseDown: (e) => {
313
314
  0 === e.button && e.preventDefault();
314
315
  },
315
- onClick: () => i(""),
316
- icon: h(t, { iconKey: "Close" }),
316
+ onClick: () => a(""),
317
+ icon: g(r, { iconKey: "Close" }),
317
318
  size: "small"
318
319
  })
319
320
  }) : void 0
@@ -325,13 +326,13 @@ var N = (e, t, r) => {
325
326
  }
326
327
  }
327
328
  });
328
- }, z = "https://unpkg.com/@sheetxl/workbook-templates/dist", T = "workbook-templates", I = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), K = (e, t) => {
329
- const r = `${e}${e.endsWith("/") ? "" : "/"}${T}/${t}`;
329
+ }, T = /^\d+\.\d+\.\d+-([0-9A-Za-z-]+)/.exec(e)?.[1], I = `https://unpkg.com/@sheetxl/templates-workbook${T ? `@${T}` : ""}/dist`, K = "templates-workbook", L = (e) => e.replace(/\.[^/.]+$/, "").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/[-_]+/g, " ").trim().replace(/\b\w/g, (e) => e.toUpperCase()), P = (e, t) => {
330
+ const r = `${e}${e.endsWith("/") ? "" : "/"}${K}/${t}`;
330
331
  return "undefined" == typeof document ? r : new URL(r, document.baseURI).href;
331
- }, L = (e) => "string" == typeof e && e ? e : void 0, P = /* @__PURE__ */ new Map(), W = (e = z) => {
332
- let t = P.get(e);
332
+ }, W = (e) => "string" == typeof e && e ? e : void 0, j = /* @__PURE__ */ new Map(), F = (e = I) => {
333
+ let t = j.get(e);
333
334
  return t || (t = (async () => {
334
- const t = (await C("templates", T, e)).find((e) => void 0 !== e.meta?.schema);
335
+ const t = (await C("templates", K, e)).find((e) => void 0 !== e.meta?.schema);
335
336
  if (!t) throw new Error(`No template catalog found at '${e}'.`);
336
337
  return 1 !== Math.floor(Number(t.meta?.schema)) ? (console.warn(`Template catalog at '${e}' has schema ${t.meta?.schema}; expected 1.`), {
337
338
  categories: [],
@@ -339,33 +340,33 @@ var N = (e, t, r) => {
339
340
  }) : ((e, t) => {
340
341
  const r = Array.isArray(e.meta?.categories) ? e.meta.categories : [], a = [], i = /* @__PURE__ */ new Set();
341
342
  for (const e of r) {
342
- const t = L(e?.id);
343
+ const t = W(e?.id);
343
344
  t && !i.has(t) && (i.add(t), a.push({
344
345
  id: t,
345
- title: L(e.title) ?? I(t),
346
- description: L(e.description),
347
- icon: L(e.icon)
346
+ title: W(e.title) ?? L(t),
347
+ description: W(e.description),
348
+ icon: W(e.icon)
348
349
  }));
349
350
  }
350
351
  const n = [];
351
352
  for (const r of e.entries) {
352
353
  const e = r.path, o = e.split("/");
353
354
  if (2 !== o.length || !/\.(?:xlsx|sxl|csv)$/i.test(e)) continue;
354
- const l = L(r.category) ?? o[0];
355
+ const l = W(r.category) ?? o[0];
355
356
  i.has(l) || (i.add(l), a.push({
356
357
  id: l,
357
- title: I(l)
358
+ title: L(l)
358
359
  }));
359
- const s = L(r.thumbnail), c = L(r.thumbnailDark);
360
+ const s = W(r.thumbnail), c = W(r.thumbnailDark);
360
361
  n.push({
361
362
  id: e,
362
- title: L(r.title) ?? I(o[1]),
363
+ title: W(r.title) ?? L(o[1]),
363
364
  category: l,
364
- description: L(r.description),
365
+ description: W(r.description),
365
366
  tags: Array.isArray(r.tags) ? r.tags.filter((e) => "string" == typeof e) : void 0,
366
- thumbnailUrl: s ? K(t, s) : void 0,
367
- thumbnailDarkUrl: c ? K(t, c) : void 0,
368
- sourceUrl: K(t, e)
367
+ thumbnailUrl: s ? P(t, s) : void 0,
368
+ thumbnailDarkUrl: c ? P(t, c) : void 0,
369
+ sourceUrl: P(t, e)
369
370
  });
370
371
  }
371
372
  return {
@@ -373,22 +374,22 @@ var N = (e, t, r) => {
373
374
  entries: n
374
375
  };
375
376
  })(t, e);
376
- })(), P.set(e, t), t.catch(() => {
377
- P.delete(e);
377
+ })(), j.set(e, t), t.catch(() => {
378
+ j.delete(e);
378
379
  })), t;
379
- }, j = (e = {}) => {
380
- const { path: t = z } = e, [r, a] = m(0), [i, n] = m({
380
+ }, H = (e = {}) => {
381
+ const { path: t = I } = e, [r, a] = u(0), [i, n] = u({
381
382
  status: "loading",
382
383
  categories: [],
383
384
  entries: []
384
385
  });
385
- s(() => {
386
+ c(() => {
386
387
  let e = !1;
387
388
  return n((e) => "loading" === e.status ? e : {
388
389
  status: "loading",
389
390
  categories: [],
390
391
  entries: []
391
- }), W(t).then((t) => {
392
+ }), F(t).then((t) => {
392
393
  e || n({
393
394
  status: "ready",
394
395
  ...t
@@ -406,9 +407,9 @@ var N = (e, t, r) => {
406
407
  }, [t, r]);
407
408
  return {
408
409
  ...i,
409
- retry: l(() => {
410
+ retry: s(() => {
410
411
  a((e) => e + 1);
411
412
  }, [])
412
413
  };
413
414
  };
414
- export { E as a, N as i, j as n, U as r, W as t };
415
+ export { N as a, z as i, H as n, U as r, F as t };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.7
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.