@sheetxl/studio-vanilla 0.4.8 → 0.4.10

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 (86) hide show
  1. package/README.md +1 -1
  2. package/browser/cjs/{CHSE1pa8SMApg4BM.cjs → B1UGqZP_7Z0Ewpog.cjs} +2 -2
  3. package/browser/cjs/{Cqymi9AOXO_JYvY4.cjs → B6m9VXoFseD4zuZ5.cjs} +2 -2
  4. package/browser/cjs/{oNi7wirDlZ81Lm0Z.cjs → BKePSaEpM6Z063z-.cjs} +1 -1
  5. package/browser/cjs/{3nTDo2EiTknjadbt.cjs → Bqn0ZeP_srNfL9rG.cjs} +1 -1
  6. package/browser/cjs/{6Wu3sLyx-7NM6CXS.cjs → C-izbj62pQuZjOrT.cjs} +62 -59
  7. package/browser/cjs/{C2B3wbeahcHlbOBZ.cjs → C-w-GX8N54TxTjjf.cjs} +2 -2
  8. package/browser/cjs/{euAV1pPrNOIb6DV4.cjs → C1QGdcqJ-9sdGTQR.cjs} +2 -2
  9. package/browser/cjs/{C6nZKAevPqj8zJY-.cjs → C38aiRglHLxZ8KRY.cjs} +2 -2
  10. package/browser/cjs/{BCnlTOmUDmizyvVV.cjs → C4JMn_hMnlOnDpQO.cjs} +2 -2
  11. package/browser/cjs/{D6pPBbRPLTNFSXuO.cjs → CApEj4LhhPUvQjIG.cjs} +1 -1
  12. package/browser/cjs/{B11W4AIKbkJQG6ug.cjs → CFcJbmmXjWjl6fQH.cjs} +2 -2
  13. package/browser/cjs/{Dds58NEqJ0OalWH3.cjs → CKiDbCZ6rGgXK7yN.cjs} +4 -4
  14. package/browser/cjs/CM8btXQsJbnFKXUm.cjs +6 -0
  15. package/browser/cjs/{CE5NVYltiso41NzK.cjs → Cb0K3Wzp7BAa4zni.cjs} +1 -1
  16. package/browser/cjs/{BIPxYhhi1F-y0gSm.cjs → CiAUhPU7v1BK-8Bb.cjs} +3 -3
  17. package/browser/cjs/{Dy4SB47It0LGbh2I.cjs → CsXS-EN0N5SZHTnQ.cjs} +1 -1
  18. package/browser/cjs/{CD_HItzF2RneMAER.cjs → Cu2eUomoF0HToa4l.cjs} +2 -2
  19. package/browser/cjs/{VJLb1uMfbKAUW1QF.cjs → Cy7ii9B_Vqx94pbu.cjs} +8 -8
  20. package/browser/cjs/{DWTMnPR33rKK87Xt.cjs → CzI4ZcsmzsyPBpWN.cjs} +5 -5
  21. package/browser/cjs/{BqLDj2GlSzX8ZN3l.cjs → DKHzUx2gKXwboKy1.cjs} +1 -1
  22. package/browser/cjs/{CTXKzcsm-W1ujL_U.cjs → DKc8wAq8dwbDddQn.cjs} +5 -5
  23. package/browser/cjs/{z1aNSOtWsEE21p2H.cjs → DMyKApbUVRtNYC4e.cjs} +2 -2
  24. package/browser/cjs/{bHWvGntvmuk8t7sX.cjs → DROR08HMGyg7rizQ.cjs} +2 -2
  25. package/browser/cjs/{i0D2haODisHW8uGg.cjs → DfGDZlbFVknGyu_X.cjs} +1 -1
  26. package/browser/cjs/{CcQjGGiCx6Qz7yJ4.cjs → OQdqVM_6m78kE5Aj.cjs} +1 -1
  27. package/browser/cjs/index.cjs +2 -2
  28. package/browser/cjs/{DMUSzq5n2k0WNFw6.cjs → v4OEtYXaUw_GeiXM.cjs} +1 -1
  29. package/{cdn/assets/CuG5WoZ4OOj9RCsv.js → browser/esm/4uEr84M4w57AMyDg.mjs} +3 -3
  30. package/{cdn/assets/CPi83FXApMlTaVbs.js → browser/esm/B8Ja5DlyKAy8xfQD.mjs} +1 -1
  31. package/{cdn/assets/O1XID2whLDb1cTWS.js → browser/esm/B9bN60uAvy62vnwt.mjs} +6 -6
  32. package/{cdn/assets/DppHXtCDGzttFdS4.js → browser/esm/BAOzSQdzHl43K9Hd.mjs} +6 -6
  33. package/browser/esm/{eXQ_1uhRMyN-hfDZ.mjs → BQYSD5Nb35y0WeeV.mjs} +1 -1
  34. package/browser/esm/{h4NbNvV8KCL9Tl1v.mjs → BVcaNvORp_uKPQgJ.mjs} +3 -3
  35. package/browser/esm/{D_FC0zteMRPriWTD.mjs → BqXO_cQhrMJu7JoQ.mjs} +1 -1
  36. package/{cdn/assets/Dbd0AFDlzQDW0tOg.js → browser/esm/C18A_DcIEHNYBDvR.mjs} +9 -9
  37. package/browser/esm/{EUFvcP5R4HFDLn2V.mjs → C7FoKZbSzjvuY3UB.mjs} +8 -8
  38. package/{cdn/assets/CjVsKZEPAncg5mIk.js → browser/esm/CCIJpHSbFPjTEF8S.mjs} +1 -1
  39. package/browser/esm/{2RGq163l1wYJKGsa.mjs → CHNPjJxb0GY_naLa.mjs} +6889 -6858
  40. package/browser/esm/{DnWiOUNTPvi_llPT.mjs → CKHsU9LUNYowimxS.mjs} +1 -1
  41. package/browser/esm/{DQ0Li3WfKbZxSFuB.mjs → C_Zx1tYjI3n7KKZH.mjs} +2 -2
  42. package/browser/esm/{B7qUiL1xPnzfOHZw.mjs → Cm-m3bZh0V44y0li.mjs} +1 -1
  43. package/browser/esm/{B1CYiJmSpyx4TD5r.mjs → D1e_ccSgcNXvWHgy.mjs} +16 -16
  44. package/browser/esm/{BP8kNG31HYSkk1VW.mjs → D47D26mVYSAdb5C8.mjs} +26 -26
  45. package/browser/esm/{CDkmbShJijwq4EBo.mjs → D9CdO3PtV12RnK8K.mjs} +59 -59
  46. package/browser/esm/{cSe92c0HnvbRwiVM.mjs → D9x-Q8y57gePf-tE.mjs} +98 -98
  47. package/{cdn/assets/CLA1BGtRbWm0K0U0.js → browser/esm/DHhXutXh7b5LsU1m.mjs} +2 -2
  48. package/{cdn/assets/xlL3Ai-ka9qMVeua.js → browser/esm/DIGFi66CQPMV3HsL.mjs} +1 -1
  49. package/{cdn/assets/DTvvMKZZfsVRhbow.js → browser/esm/DamiTeQsSMP2Cwld.mjs} +9 -9
  50. package/browser/esm/{DyUvHYGMNA9W2zL6.mjs → DhD48oFrbrnZ6Zg5.mjs} +1 -1
  51. package/browser/esm/{CA_DRvBOFOlhezCt.mjs → Ln2ZalJgj1CiJJue.mjs} +6 -6
  52. package/{cdn/assets/BEFQcBJ71bA297Zu.js → browser/esm/S9fgUO7h8YgZxoKH.mjs} +1 -1
  53. package/browser/esm/index.mjs +2 -2
  54. package/browser/esm/{DXyJaUwHLq39-Jfa.mjs → qVAHcpq07IhtAaQc.mjs} +5 -5
  55. package/browser/esm/{ClXspoNrNV-A8BaL.mjs → xrzJ8ILZHb118Oyt.mjs} +17 -17
  56. package/cdn/assets/{B2hDWpWSEoChxhVY.js → 2-xJlw77WsCoyz09.js} +5071 -5040
  57. package/cdn/assets/{Bvy1txLm7c3LbPL7.js → B-9FcTf3xBEVGdjV.js} +59 -59
  58. package/cdn/assets/{BXBP2rNGQxrgUPvU.js → B-p1i2SNRMunPXCF.js} +8 -8
  59. package/cdn/assets/{C1x5-f1q8NeSwRA2.js → B3J6oAmsS7oLNFPd.js} +3 -3
  60. package/{browser/esm/CPi83FXApMlTaVbs.mjs → cdn/assets/B8Ja5DlyKAy8xfQD.js} +1 -1
  61. package/{browser/esm/BM74iVi-iQkHbrfo.mjs → cdn/assets/BG3YTMAzNKPRGoLs.js} +6 -6
  62. package/cdn/assets/{eXQ_1uhRMyN-hfDZ.js → BQYSD5Nb35y0WeeV.js} +1 -1
  63. package/{browser/esm/Ckz080o58XOgRhqj.mjs → cdn/assets/BbzUpvQOkxsN-yIH.js} +2 -2
  64. package/cdn/assets/{D_FC0zteMRPriWTD.js → BqXO_cQhrMJu7JoQ.js} +1 -1
  65. package/{browser/esm/BEIn7yNWsHNJisB6.mjs → cdn/assets/Bt1JSlSpWXDOBfq3.js} +3 -3
  66. package/{browser/esm/CjVsKZEPAncg5mIk.mjs → cdn/assets/CCIJpHSbFPjTEF8S.js} +1 -1
  67. package/cdn/assets/{DnWiOUNTPvi_llPT.js → CKHsU9LUNYowimxS.js} +1 -1
  68. package/{browser/esm/C_hRuPoaT857EnC1.mjs → cdn/assets/CWLJZwD2GVXljoWG.js} +9 -9
  69. package/cdn/assets/{B7qUiL1xPnzfOHZw.js → Cm-m3bZh0V44y0li.js} +1 -1
  70. package/cdn/assets/{BgChN-ZVYUOMDX9_.js → CtQlXGkNWgI-vtGy.js} +26 -26
  71. package/{browser/esm/xlL3Ai-ka9qMVeua.mjs → cdn/assets/DIGFi66CQPMV3HsL.js} +1 -1
  72. package/{browser/esm/4C7Rg83L5RYFoOvl.mjs → cdn/assets/DK4S0DbayChkfTD6.js} +9 -9
  73. package/cdn/assets/{g4FhlroGKmJM7Utd.js → DQvsBz9F1GS_S7r9.js} +6 -6
  74. package/cdn/assets/{C5NMOq74C3Sme49x.js → DTOgv_zwXSur-yCq.js} +16 -16
  75. package/cdn/assets/{tJI1G_FjDgqWo3rJ.js → DYZjOnD8WWQkCYuH.js} +98 -98
  76. package/cdn/assets/{DyUvHYGMNA9W2zL6.js → DhD48oFrbrnZ6Zg5.js} +1 -1
  77. package/cdn/assets/{DuU1-7vd87A1wfGJ.js → DhyAyTCDkMBf392P.js} +2 -2
  78. package/cdn/assets/{CtDntnnwJW1rZ3sM.js → P7HeVw5SHROLSWBz.js} +5 -5
  79. package/{browser/esm/6KgR81NK4yzANTBT.mjs → cdn/assets/S4Z0SN8x6EltjsHT.js} +6 -6
  80. package/{browser/esm/BEFQcBJ71bA297Zu.mjs → cdn/assets/S9fgUO7h8YgZxoKH.js} +1 -1
  81. package/cdn/assets/{CpVan9KpuEGXgwIK.js → guYe4C_6pE93QsDV.js} +17 -17
  82. package/cdn/index.js +2 -2
  83. package/cdn/loader.js +1 -1
  84. package/package.json +3 -3
  85. package/types/index.d.ts +9 -9
  86. package/browser/cjs/BYhOQCFEzewgsKDn.cjs +0 -6
@@ -1,20 +1,20 @@
1
1
  import { jsx as o, jsxs as D } from "react/jsx-runtime";
2
2
  import { memo as N, useState as i, useCallback as T } from "react";
3
- import { w as k, b as j, B as v, aP as y, at as B, au as F } from "./2RGq163l1wYJKGsa.mjs";
3
+ import { w as k, v, B as j, aP as y, at as B, au as F } from "./2-xJlw77WsCoyz09.js";
4
4
  /**
5
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
5
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
6
6
  *
7
7
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
8
  * License: The license can be found at https://www.sheetxl.com/license.
9
9
  */
10
10
  const H = ["Ok", "Cancel"], A = N((u) => {
11
- const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...b } = u, [h, x] = i(!1), [n, O] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = k((a) => {
11
+ const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...h } = u, [x, O] = i(!1), [n, b] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = k((a) => {
12
12
  const g = { ...e, hasHeader: n, ranges: l };
13
13
  c?.(a, a === s, a === t), r?.({ option: a, tableOptions: g });
14
14
  }, [r, c, t, s, n, l, e]), w = T(async (a, g) => null, []);
15
- return o(j, { title: "Insert Table", options: d, onDone: C, onValidateOption: w, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...b, children: D(v, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
16
- h || a.target?.select(), x(!0);
17
- } }), o(B, { control: o(F, { checked: n, onChange: () => O(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
15
+ return o(v, { title: "Insert Table", options: d, onDone: C, onValidateOption: w, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...h, children: D(j, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
16
+ x || a.target?.select(), O(!0);
17
+ } }), o(B, { control: o(F, { checked: n, onChange: () => b(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
18
18
  });
19
19
  export {
20
20
  A as TableNewDialog,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
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.
@@ -1,41 +1,41 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { memo as z, forwardRef as E, useState as s } from "react";
3
- import { k as t, i as G, b as K, B as R, F as W, T as Y, a as x, G as q, Y as y } from "./B2hDWpWSEoChxhVY.js";
3
+ import { k as n, i as G, v as K, B as R, F as W, T as q, a as x, G as A, t as y } from "./2-xJlw77WsCoyz09.js";
4
4
  /**
5
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
5
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
6
6
  *
7
7
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
8
  * License: The license can be found at https://www.sheetxl.com/license.
9
9
  */
10
- const A = ["Input"], X = z(E((w, T) => {
11
- const { initialValue: F = "", onOption: I, onValidateOption: r, onInputOption: l, onValidateInputOption: p, onDone: u, inputProps: c, inputLabel: P, inputType: b, inputPlaceHolder: k, options: d = A, autoFocusSel: v = ".autoFocus", cancelOption: g, defaultOption: m = d?.[0], ...C } = w, [V, B] = s(!1), [o, D] = s(F), [S, H] = s(""), [L, M] = s(!0), e = t(async (a, n) => {
10
+ const J = ["Input"], Y = z(E((w, T) => {
11
+ const { initialValue: F = "", onOption: v, onValidateOption: r, onInputOption: l, onValidateInputOption: p, onDone: u, inputProps: c, inputLabel: I, inputType: P, inputPlaceHolder: k, options: d = J, autoFocusSel: C = ".autoFocus", cancelOption: g, defaultOption: m = d?.[0], ...b } = w, [V, B] = s(!1), [o, D] = s(F), [S, H] = s(""), [L, M] = s(!0), e = n(async (a, t) => {
12
12
  if (!p) return !0;
13
- const h = await p?.(a, n);
13
+ const h = await p?.(a, t);
14
14
  H(h?.message ?? "");
15
15
  const O = h?.valid ?? !0;
16
16
  return M(O), O;
17
- }, [p]), f = t(async (a) => {
17
+ }, [p]), f = n(async (a) => {
18
18
  l?.(o, a);
19
- }, [o, l, u, I, g, m]), N = t(async (a) => {
19
+ }, [o, l, u, v, g, m]), N = n(async (a) => {
20
20
  a.keyCode === G.Enter && await e?.(o, null);
21
- }, [o, f]), $ = t((a) => {
21
+ }, [o, f]), $ = n((a) => {
22
22
  D(a.target.value), e?.(a.target.value, null);
23
- }, [r]), j = t(async (a) => {
24
- let n = await e(o, a);
23
+ }, [r]), j = n(async (a) => {
24
+ let t = await e(o, a);
25
25
  try {
26
- n !== !1 && (n = await e(o, a));
26
+ t !== !1 && (t = await e(o, a));
27
27
  } catch {
28
28
  }
29
- return n ?? !0;
29
+ return t ?? !0;
30
30
  }, [o, r]);
31
- return i(K, { options: d, onDone: u, onOption: (a, n) => {
32
- n || f(a);
33
- }, onValidateOption: j, cancelOption: g, defaultOption: m, autoFocusSel: v, ref: T, ...C, children: i(R, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(W, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(Y, { onFocus: (a) => {
31
+ return i(K, { options: d, onDone: u, onOption: (a, t) => {
32
+ t || f(a);
33
+ }, onValidateOption: j, cancelOption: g, defaultOption: m, autoFocusSel: C, ref: T, ...b, children: i(R, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(W, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(q, { onFocus: (a) => {
34
34
  V || a.target?.select(), B(!0);
35
- }, type: b, label: P, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: L ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: k, spellCheck: !1, autoComplete: "off", ...c, className: q("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${x("#fff", y(5))}, ${x("#fff", y(5))})` } } }, value: o, onChange: $, onKeyDown: N, onContextMenu: (a) => {
35
+ }, type: P, label: I, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: L ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: k, spellCheck: !1, autoComplete: "off", ...c, className: A("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${x("#fff", y(5))}, ${x("#fff", y(5))})` } } }, value: o, onChange: $, onKeyDown: N, onContextMenu: (a) => {
36
36
  a.stopPropagation();
37
37
  } }) }) }) });
38
38
  }));
39
39
  export {
40
- X as default
40
+ Y as default
41
41
  };
package/cdn/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
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.
@@ -115,7 +115,7 @@ let c;
115
115
  const C = async (e) => c || (c = await (async (n, t) => {
116
116
  try {
117
117
  if (t?.selector && k(t?.selector, t?.loading), !n) {
118
- const { resolveDependencies: r } = await import("./assets/DuU1-7vd87A1wfGJ.js");
118
+ const { resolveDependencies: r } = await import("./assets/DhyAyTCDkMBf392P.js");
119
119
  n = await r(t?.dependencies);
120
120
  }
121
121
  t?.licenseKey && await n.StudioMUI.LicenseManager.setLicenseKey(t.licenseKey), t?.selector && h(t?.selector);
package/cdn/loader.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(e){typeof define=="function"&&define.amd?define(e):e()})(function(){"use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/studio-vanilla",
3
3
  "description": "SheetXL Studio - Vanilla entry point for integrating SheetXL UI.",
4
- "version": "0.4.8",
4
+ "version": "0.4.10",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "main": "./browser/esm/index.mjs",
@@ -41,12 +41,12 @@
41
41
  "@mui/styled-engine": "^6.5.0",
42
42
  "@mui/system": "^6.5.0",
43
43
  "@mui/utils": "^6.4.9",
44
- "@sheetxl/studio-mui": "^0.4.8",
44
+ "@sheetxl/studio-mui": "^0.4.10",
45
45
  "csstype": "^3.1.3",
46
46
  "http-server": "^14.1.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@sheetxl/sdk": "^0.4.8",
49
+ "@sheetxl/sdk": "^0.4.10",
50
50
  "react": "^19.1.0",
51
51
  "react-dom": "^19.1.0"
52
52
  }
package/types/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { IWorkbookElement as IWorkbookElement_2 } from '@sheetxl/studio-mui';
2
1
  import { sheetxlStudioMui } from '@sheetxl/studio-mui';
2
+ import { StudioElement as StudioElement_2 } from '@sheetxl/studio-mui';
3
3
  import { StudioProps as StudioProps_2 } from '@sheetxl/studio-mui';
4
4
 
5
5
  /**
@@ -75,7 +75,7 @@ export declare interface ISheetXL {
75
75
  * @param props Optional properties to pass to the SheetXL React component.
76
76
  * @returns A promise that resolves to a function that, when called, will detach the SheetXL React component from the DOM element.
77
77
  */
78
- attachStudio(selector: string | InitializationOptions, props?: StudioProps): Promise<IWorkbookElement & Attached<StudioProps>>;
78
+ attachStudio(selector: string | InitializationOptions, props?: StudioProps): Promise<StudioElement & Attached<StudioProps>>;
79
79
  /**
80
80
  * Initializes the SheetXL runtime with the provided options.
81
81
  *
@@ -88,13 +88,6 @@ export declare interface ISheetXL {
88
88
  initialize(options: InitializationOptions): Promise<void>;
89
89
  }
90
90
 
91
- /**
92
- * Reference to IWorkbookElement.
93
- *
94
- * @link [IWorkbookElement](../interfaces/_sheetxl_studio-mui.IWorkbookElement.html)
95
- */
96
- export declare type IWorkbookElement = IWorkbookElement_2;
97
-
98
91
  /**
99
92
  * Configuration for panels that appear during loading or error states.
100
93
  */
@@ -128,6 +121,13 @@ export declare interface PanelConfig {
128
121
  declare const SheetXL: ISheetXL;
129
122
  export default SheetXL;
130
123
 
124
+ /**
125
+ * Reference to IWorkbookElement.
126
+ *
127
+ * @link [IWorkbookElement](../interfaces/_sheetxl_studio-mui.IWorkbookElement.html)
128
+ */
129
+ export declare type StudioElement = StudioElement_2;
130
+
131
131
  /**
132
132
  * Reference to StudioMUI module.
133
133
  *
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),a=require("react"),n=require("./6Wu3sLyx-7NM6CXS.cjs"),L=["Input"],N=a.memo(a.forwardRef((y,O)=>{const{initialValue:b="",onOption:k,onValidateOption:l,onInputOption:s,onValidateInputOption:r,onDone:u,inputProps:c,inputLabel:T,inputType:w,inputPlaceHolder:F,options:d=L,autoFocusSel:S=".autoFocus",cancelOption:g,defaultOption:f=d?.[0],...P}=y,[v,C]=a.useState(!1),[e,I]=a.useState(b),[j,V]=a.useState(""),[q,B]=a.useState(!0),i=n.kn(async(t,o)=>{if(!r)return!0;const h=await r?.(t,o);V(h?.message??"");const x=h?.valid??!0;return B(x),x},[r]),m=n.kn(async t=>{s?.(e,t)},[e,s,u,k,g,f]),D=n.kn(async t=>{t.keyCode===n.ir.Enter&&await i?.(e,null)},[e,m]),M=n.kn(t=>{I(t.target.value),i?.(t.target.value,null)},[l]),H=n.kn(async t=>{let o=await i(e,t);try{o!==!1&&(o=await i(e,t))}catch{}return o??!0},[e,l]);return p.jsx(n.b4,{options:d,onDone:u,onOption:(t,o)=>{o||m(t)},onValidateOption:H,cancelOption:g,defaultOption:f,autoFocusSel:S,ref:O,...P,children:p.jsx(n.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:p.jsx(n.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:p.jsx(n.TextField,{onFocus:t=>{v||t.target?.select(),C(!0)},type:w,label:T,helperText:j||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:q?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:F,spellCheck:!1,autoComplete:"off",...c,className:n.Go("autoFocus",c?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",n.Yb(5))}, ${n.alpha("#fff",n.Yb(5))})`}}},value:e,onChange:M,onKeyDown:D,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=N;