@sheetxl/studio-mui 0.7.6 → 0.7.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 (51) hide show
  1. package/LICENSE.md +1 -1
  2. package/browser/cjs/BCf8BQb2c8ANexW4.cjs +7 -0
  3. package/browser/cjs/BJ4pZo7s81ynDlzw.cjs +6 -0
  4. package/browser/cjs/{-u6vWH9DiYlO1rsa.cjs → Bf70UQlMT3b0NoOZ.cjs} +1 -1
  5. package/browser/cjs/Bpq9GrV7al7xxJ_d.cjs +6 -0
  6. package/browser/cjs/BxlQ6aLh5_jUvk9w.cjs +20 -0
  7. package/browser/cjs/{DefYX_aeMZivbpEt.cjs → CJSNNa8ySxzuEmoy.cjs} +2 -2
  8. package/browser/cjs/{Ce6JLd3qejgMgM3r.cjs → CUND2W1xMwqPOHwD.cjs} +3 -3
  9. package/browser/cjs/{7MV1n9Y0yXU0hKpM.cjs → Cg95aBJ4kuUq7jrz.cjs} +1 -1
  10. package/browser/cjs/Dcoq8P2O8-40waHl.cjs +6 -0
  11. package/browser/cjs/{B8-dSgXI2XZKFvtp.cjs → DeoOsY5TkIAydt9W.cjs} +2 -2
  12. package/browser/cjs/index.cjs +3 -3
  13. package/browser/cjs/{BdNRaXTgqRzPmg0L.cjs → j0lD5RrJ86CRlUNT.cjs} +2 -2
  14. package/browser/esm/{BnVbG5kg41edf8oz.mjs → 7tCRjNmDM5kf3BFa.mjs} +2 -2
  15. package/browser/esm/{Dg_NRblGOcetqhnC.mjs → BWxmPJd4f8qZMxaa.mjs} +4 -4
  16. package/browser/esm/{YfJJd16cfjuXpb8G.mjs → BbHGWXif6ytyfyHI.mjs} +1 -1
  17. package/browser/esm/{yQgfM4ehXrfnEoUK.mjs → BkhHyCmy1MwVFS1b.mjs} +2 -2
  18. package/browser/esm/{DVSjscO7zuDsOD4v.mjs → Bo3cXzeDcP_Q9YvX.mjs} +2 -2
  19. package/browser/esm/CRDu7VFAa8NGcoHj.mjs +49 -0
  20. package/browser/esm/{nwvZlIH9rheqctQz.mjs → Cd02kMBZDsozIA98.mjs} +12 -12
  21. package/browser/esm/CzdBzjYgP1i3pkPL.mjs +4455 -0
  22. package/browser/esm/DFppS_p4spncePDm.mjs +156 -0
  23. package/browser/esm/{miaBr4cu9WKLs8Is.mjs → db-2uDA7mYS4QpHj.mjs} +1 -1
  24. package/browser/esm/index.mjs +38 -37
  25. package/browser/esm/{CKLhWrNo1E4r3pG7.mjs → nzc1811Pk5-sKDu5.mjs} +7 -7
  26. package/licenses/dependencies.txt +75 -108
  27. package/node/assets/style.css +1 -1
  28. package/node/esm/BVKo3uc0IreLNkkN.mjs +157 -0
  29. package/node/esm/{Dln5o1FP_HWPs0Uf.mjs → BfnEq4EhLf8jJ0Gp.mjs} +1 -1
  30. package/node/esm/{CxbA2L1Ap9NSJcxm.mjs → BgR1PWucIb0Zucr4.mjs} +1 -1
  31. package/node/esm/{B9TRK2jd_Ki2RifT.mjs → BimlBylqyslj9fNg.mjs} +1 -1
  32. package/node/esm/{BTp8XtWh47Y1g1MM.mjs → BnGsbrQwjcaUFAdt.mjs} +13 -13
  33. package/node/esm/{CNCYE_ff8SnJJMPN.mjs → CQhaL28vV1X6Xt2N.mjs} +4 -4
  34. package/node/esm/{qpKmKMfv4DDofXKf.mjs → DB2ryaj4_Y8Lgyy_.mjs} +1 -1
  35. package/node/esm/{COoX8Ir66wNuWJ_m.mjs → X3qO0PKREgY9FMZU.mjs} +8 -8
  36. package/node/esm/index.mjs +1308 -1262
  37. package/node/esm/{CN79Z_qqLiF3V5r0.mjs → rOozeXREjiU8jjPd.mjs} +14 -14
  38. package/package.json +15 -16
  39. package/types/index.d.ts +17 -7
  40. package/browser/cjs/1-LY_VyMGQ9MfeNB.cjs +0 -20
  41. package/browser/cjs/BEmcHbiMOFhIa91S.cjs +0 -6
  42. package/browser/cjs/D7AH724IJJvos02e.cjs +0 -7
  43. package/browser/cjs/KOj1qev47_vzzRFV.cjs +0 -6
  44. package/browser/cjs/St8H4B5iT2fsqOb7.cjs +0 -6
  45. package/browser/cjs/TS1uQTjkemJ22p1Y.cjs +0 -6
  46. package/browser/esm/BNxVvFkY3b2mERJf.mjs +0 -64
  47. package/browser/esm/CJsYe8TqU6tqj4UH.mjs +0 -154
  48. package/browser/esm/DdLujAMc-Cefddif.mjs +0 -49
  49. package/browser/esm/beUKtp_qQMnuYcVk.mjs +0 -4452
  50. package/node/esm/BcB8nCbI5HW5jv5q.mjs +0 -65
  51. package/node/esm/C5WzmLTAphEQU3CU.mjs +0 -155
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.7
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -7,11 +7,11 @@
7
7
  import { jsx as t } from "react/jsx-runtime";
8
8
  import { memo as n, useMemo as o, useState as e, useCallback as a } from "react";
9
9
  import { alpha as i, getOverlayAlpha as s } from "@mui/material/styles";
10
- import { Box as l, FormControl as r, TextField as p } from "@mui/material";
11
- import { useCallbackRef as c } from "@sheetxl/utils-react";
10
+ import { Box as l, FormControl as r, TextField as c } from "@mui/material";
11
+ import { useCallbackRef as p } from "@sheetxl/utils-react";
12
12
  import { OptionsDialog as m } from "@sheetxl/utils-mui";
13
13
  const u = ["Ok", "Cancel"], d = n((n2) => {
14
- const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...P } = n2, T = o(() => {
14
+ const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...T } = n2, k = o(() => {
15
15
  const t2 = d2 ?? f?.()?.getComments();
16
16
  let n3 = "";
17
17
  if (t2 && t2.content && t2.content.runs) {
@@ -22,8 +22,8 @@ const u = ["Ok", "Cancel"], d = n((n2) => {
22
22
  }
23
23
  }
24
24
  return n3;
25
- }, []), [k, v] = e(T), [I, b] = e(false), D = a(async (t2, n3) => null, []), B = c(async (t2) => {
26
- const n3 = "" === k ? [] : k.split("\n");
25
+ }, []), [v, b] = e(k), [D, I] = e(false), P = a(async (t2, n3) => null, []), B = p(async (t2) => {
26
+ const n3 = "" === v ? [] : v.split("\n");
27
27
  if (t2 !== w) {
28
28
  const t3 = [];
29
29
  for (let o3 = 0; o3 < n3.length; o3++) t3.push({ text: n3[o3] });
@@ -31,19 +31,19 @@ const u = ["Ok", "Cancel"], d = n((n2) => {
31
31
  g?.(o2);
32
32
  }
33
33
  x?.(t2, t2 === w, t2 === y), C?.();
34
- }, [k, g, C, x, y, w]), E = c((t2) => {
35
- v(t2.target.value), D(t2.target.value, null);
36
- }, [h]), M = c(async (t2) => {
34
+ }, [v, g, C, x, y, w]), E = p((t2) => {
35
+ b(t2.target.value), P(t2.target.value, null);
36
+ }, [h]), M = p(async (t2) => {
37
37
  let n3 = await Promise.resolve(h?.(t2));
38
38
  try {
39
- false !== n3 && (n3 = await D(k, t2));
39
+ false !== n3 && (n3 = await P(v, t2));
40
40
  } catch (t3) {
41
41
  }
42
42
  return n3 ?? true;
43
- }, [h, k]);
44
- return t(m, { title: (T ? "Edit" : "Insert") + " Comments", options: O, onDone: C, onOption: (t2) => B(t2), onValidateOption: M, defaultOption: y, cancelOption: w, autoFocusSel: ".autoFocus", sx: { width: "480px", ...F }, ...P, children: t(l, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0), rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(p, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t2) => {
45
- I || t2.target?.select(), b(true);
46
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, InputLabelProps: { shrink: true }, InputProps: { inputProps: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", s(5))}, ${i("#fff", s(5))})` } } }, value: k, onChange: E, onContextMenu: (t2) => {
43
+ }, [h, v]);
44
+ return t(m, { title: (k ? "Edit" : "Insert") + " Comments", options: O, onDone: C, onOption: (t2) => B(t2), onValidateOption: M, defaultOption: y, cancelOption: w, autoFocusSel: ".autoFocus", sx: { width: "480px", ...F }, ...T, children: t(l, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0), rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t2) => {
45
+ D || t2.target?.select(), I(true);
46
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", s(5))}, ${i("#fff", s(5))})` } } }, value: v, onChange: E, onContextMenu: (t2) => {
47
47
  t2.stopPropagation();
48
48
  } }) }) }) });
49
49
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/studio-mui",
3
3
  "description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
4
- "version": "0.7.6",
4
+ "version": "0.7.7",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -48,37 +48,36 @@
48
48
  "charting"
49
49
  ],
50
50
  "dependencies": {
51
- "@sheetxl/grid-react": "^0.7.6",
52
- "@sheetxl/io": "^0.7.6",
53
- "@sheetxl/react": "^0.7.6",
54
- "@sheetxl/sdk": "^0.7.6",
55
- "@sheetxl/utils": "^0.7.6",
56
- "@sheetxl/utils-mui": "^0.7.6",
57
- "@sheetxl/utils-react": "^0.7.6",
51
+ "@sheetxl/grid-react": "^0.7.7",
52
+ "@sheetxl/io": "^0.7.7",
53
+ "@sheetxl/react": "^0.7.7",
54
+ "@sheetxl/sdk": "^0.7.7",
55
+ "@sheetxl/utils": "^0.7.7",
56
+ "@sheetxl/utils-mui": "^0.7.7",
57
+ "@sheetxl/utils-react": "^0.7.7",
58
58
  "clsx": "^2.1.1",
59
59
  "csstype": "^3.1.3",
60
60
  "file-saver": "^2.0.5",
61
61
  "fuse.js": "^7.0.0",
62
62
  "notistack": "^3.0.1",
63
63
  "react-color": "^2.19.3",
64
- "react-error-boundary": "^6.0.0",
65
- "react-hook-form": "^7.54.2",
64
+ "react-hook-form": "^7.63.0",
66
65
  "react-merge-refs": "^3.0.2",
67
66
  "react-resizable": "^3.0.5",
68
67
  "react-transition-group": "^4.4.5",
69
68
  "react-use": "^17.6.0",
70
69
  "react-virtualized": "^9.22.6",
71
- "rooks": "^9.0.1",
70
+ "rooks": "^9.3.0",
72
71
  "tinycolor2": "^1.6.0"
73
72
  },
74
73
  "peerDependencies": {
75
74
  "@emotion/cache": "^11.14.0",
76
75
  "@emotion/react": "^11.14.0",
77
76
  "@emotion/styled": "^11.14.0",
78
- "@mui/material": "^6.5.0",
79
- "@mui/styled-engine": "^6.5.0",
80
- "@mui/system": "^6.5.0",
81
- "@mui/utils": "^6.4.9",
77
+ "@mui/material": "^7.3.2",
78
+ "@mui/styled-engine": "^7.3.2",
79
+ "@mui/system": "^7.3.2",
80
+ "@mui/utils": "^7.3.2",
82
81
  "react": "^19.1.0",
83
82
  "react-dom": "^19.1.0"
84
83
  },
@@ -86,6 +85,6 @@
86
85
  "@types/file-saver": "^2.0.5",
87
86
  "@types/react-resizable": "^3.0.8",
88
87
  "@types/react-transition-group": "^4.4.6",
89
- "@types/react-virtualized": "^9.22.0"
88
+ "@types/react-virtualized": "^9.22.3"
90
89
  }
91
90
  }
package/types/index.d.ts CHANGED
@@ -795,6 +795,7 @@ export declare interface PresetTableStylesCommandButtonProps extends CommandPopu
795
795
  onSelectTableStyleName?: (styleName: string) => void;
796
796
  bodyStyle?: GridSurfaceStyle;
797
797
  usePreviewIcon?: boolean;
798
+ disabledQuickKey?: boolean;
798
799
  }
799
800
 
800
801
  /**
@@ -1107,6 +1108,19 @@ declare interface SwatchProps extends default_2.HTMLAttributes<HTMLElement> {
1107
1108
  darkMode?: boolean;
1108
1109
  }
1109
1110
 
1111
+ /**
1112
+ * TODO
1113
+ * - save last searches (up/down arrow to navigate) (in preferences/workbook?)
1114
+ * - later add indexing so we can do real-time search and count
1115
+ */
1116
+ export declare const TableDetailsPanel: default_2.NamedExoticComponent<TableDetailsPanelProps & default_2.RefAttributes<HTMLDivElement>>;
1117
+
1118
+ export declare interface TableDetailsPanelProps extends default_2.HTMLAttributes<HTMLDivElement> {
1119
+ command?: ICommand<ITable, CommandContext.Table>;
1120
+ commands: ICommands.IGroup;
1121
+ context?: CommandContext.Table;
1122
+ }
1123
+
1110
1124
  /**
1111
1125
  * This is a way to canvas based TableStylePreview. It has a simple rendering but is lightweight.
1112
1126
  */
@@ -1143,7 +1157,7 @@ export declare interface TableStyleOptionsElement extends TableStyleOptionsAttri
1143
1157
  * Shows options with tables.
1144
1158
  * TODO - We will later also have the options as commands.
1145
1159
  */
1146
- export declare const TableStyleOptionsPanel: default_2.FC<TableStyleOptionsPanelProps & TableStyleOptionsAttribute>;
1160
+ export declare const TableStyleOptionsPanel: default_2.NamedExoticComponent<TableStyleOptionsPanelProps & default_2.RefAttributes<TableStyleOptionsElement>>;
1147
1161
 
1148
1162
  /**
1149
1163
  * This is a panel that is used to configure options for a table.
@@ -1507,10 +1521,6 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
1507
1521
  * Allow for customizations on loading panel.
1508
1522
  */
1509
1523
  sheetProps?: SheetProps;
1510
- /**
1511
- * Allows users to Wrap stage children in Top level Context
1512
- */
1513
- sheetWrapper?: (children: default_2.ReactNode) => default_2.ReactElement;
1514
1524
  /**
1515
1525
  * Render custom ISheetElement.
1516
1526
  * @param props
@@ -1518,9 +1528,9 @@ export declare interface WorkbookElementProps extends Omit<PaperProps, 'autoFocu
1518
1528
  */
1519
1529
  renderSheet?: (props: SheetProps) => default_2.ReactElement;
1520
1530
  /**
1521
- * Optional sidebar element.
1531
+ * Allows users to Wrap stage children in Top level Context
1522
1532
  */
1523
- sideBarElement?: default_2.ReactElement;
1533
+ mainWrapper?: (children: default_2.ReactNode) => default_2.ReactElement;
1524
1534
  /**
1525
1535
  * Show the horizontal scrollbar
1526
1536
  */