@sheetxl/react 0.6.15 → 0.6.17

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.15
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.17
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,7 +1,7 @@
1
1
  import * as On from "react";
2
2
  import { forwardRef as ua, useRef as ca, useImperativeHandle as la, useEffect as fa, createElement as yr } from "react";
3
3
  /**
4
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.15
4
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.17
5
5
  *
6
6
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
7
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  import x, { memo as ce, useState as q, useRef as h, useCallback as ie, useEffect as M } from "react";
2
2
  /**
3
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.15
3
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.17
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -9,7 +9,7 @@ import ot, { memo as ft, useMemo as Ce, useState as me, forwardRef as yt, useRef
9
9
  import { STANDARD_KEY_CHARS as bl, useSelection as si, useHeaderSelection as ql, HeaderRenderer as Cl, Grid as di, HeaderDivider as Sl, SELECTION_CLIP_INSETS as _o, defaultSelectionRenderer as xl, useKeyboardEditorOverlay as kl, Selection as ci, SVGLine as ao } from "@sheetxl/grid-react";
10
10
  import { unstable_batchedUpdates as Hn, createPortal as ui } from "react-dom";
11
11
  /**
12
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.15
12
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.17
13
13
  *
14
14
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
15
15
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -774,7 +774,7 @@ function Ul(e) {
774
774
  return ie();
775
775
  }, [t, n, l]), L = le((s, y, M = !1, g) => V(s, (z) => {
776
776
  const h = z.getSelectedRanges();
777
- M && h.updateStyle(null, g), h.updateStyle(y, g), h.autoFit({ expandOnly: qe.Orientation.Column, minContent: !0, skipCustomSize: !0 });
777
+ M && h.getStyle().update(null, g), h.getStyle().update(y, g), h.autoFit({ expandOnly: qe.Orientation.Column, minContent: !0, skipCustomSize: !0 });
778
778
  }), [t]), P = le((s, y, M) => {
779
779
  V(s, (g) => {
780
780
  let z = y;
@@ -1502,7 +1502,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1502
1502
  const Qt = Ft.getSelectedRanges();
1503
1503
  if (Qt.merge({ orientations: it, discardMultipleValues: Mt }), it === qe.Orientations.Both) {
1504
1504
  const hn = { alignment: { horizontal: pe.HorizontalAlignment.Center } };
1505
- Qt.updateStyle(hn);
1505
+ Qt.getStyle().update(hn);
1506
1506
  }
1507
1507
  } catch (Qt) {
1508
1508
  throw Qt;
@@ -1528,7 +1528,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
1528
1528
  const Ft = wt.getSelectedRanges();
1529
1529
  Ft.unmerge();
1530
1530
  const Ht = { alignment: { horizontal: null } };
1531
- Ft.updateStyle(Ht);
1531
+ Ft.getStyle().update(Ht);
1532
1532
  } catch (Ft) {
1533
1533
  throw Ft;
1534
1534
  }
@@ -2358,7 +2358,7 @@ The content is not applied.` }), new Y("pasteFormulas", w, { label: "Paste Formu
2358
2358
  Be.current = !0;
2359
2359
  const oe = ot.lazy(async () => {
2360
2360
  try {
2361
- const De = await import("./CuwDDy0t-NBB0E2L.mjs");
2361
+ const De = await import("./BrF3cWIyyBnGYHZJ.mjs");
2362
2362
  return Be.current = !1, st.current = !0, w([...v]), De;
2363
2363
  } catch (De) {
2364
2364
  return console.warn(De), Je.current?.(!1), null;
@@ -4588,7 +4588,7 @@ const Ad = (e) => {
4588
4588
  }, Id = () => {
4589
4589
  const e = Jt(dr), [t] = me(() => new ll());
4590
4590
  return Ce(() => e || t, [e]);
4591
- }, Ps = "_script-editor_iy654_5", Ws = ot.lazy(() => import("./wH_d4d0657NtQeKJ.mjs")), $s = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" };
4591
+ }, Ps = "_script-editor_iy654_5", Ws = ot.lazy(() => import("./CBTmZtSd4cl5RgQX.mjs")), $s = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" };
4592
4592
  let Bn, Vn, tn = ["define", "require"], Qr = !1;
4593
4593
  const ei = async (e, t, n) => {
4594
4594
  const r = e.getModel();
@@ -4800,7 +4800,7 @@ const zd = ft(yt((e, t) => {
4800
4800
  Bn = void 0, Qr = !0;
4801
4801
  })(), ae("Loading Types");
4802
4802
  const Le = v.getScripts().getModules().getItems()[0]?.getSource() ?? "";
4803
- ge.setValue(Le), import("./D4Bdd195ABk02ep4.mjs").then((Z) => Z.c).then(async (Z) => {
4803
+ ge.setValue(Le), import("./BJF9NFa3EZpBkX1a.mjs").then((Z) => Z.c).then(async (Z) => {
4804
4804
  ae(""), Z.AutoTypings.create(ge, { shareCache: !0, dontAdaptEditorOptions: !0, monaco: $, onUpdate: (K, ee) => {
4805
4805
  if (K.type === "LookedUpPackage" && K.success !== void 0) {
4806
4806
  const re = $.languages.typescript.typescriptDefaults.getDiagnosticsOptions();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.15
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.17
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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.15
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.17
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.
@@ -741,7 +741,7 @@ function xt(e2) {
741
741
  return g2();
742
742
  }, [r2, i2, f2]), Q2 = S((e3, t2, o2 = false, n2) => Y2(e3, (e4) => {
743
743
  const l2 = e4.getSelectedRanges();
744
- o2 && l2.updateStyle(null, n2), l2.updateStyle(t2, n2), l2.autoFit({ expandOnly: s.Orientation.Column, minContent: true, skipCustomSize: true });
744
+ o2 && l2.getStyle().update(null, n2), l2.getStyle().update(t2, n2), l2.autoFit({ expandOnly: s.Orientation.Column, minContent: true, skipCustomSize: true });
745
745
  }), [r2]), ee2 = S((e3, t2, o2) => {
746
746
  Y2(e3, (e4) => {
747
747
  let n2 = t2;
@@ -1466,7 +1466,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1466
1466
  const t4 = o3.getSelectedRanges();
1467
1467
  if (t4.merge({ orientations: e4, discardMultipleValues: n4 }), e4 === s.Orientations.Both) {
1468
1468
  const e5 = { alignment: { horizontal: l.HorizontalAlignment.Center } };
1469
- t4.updateStyle(e5);
1469
+ t4.getStyle().update(e5);
1470
1470
  }
1471
1471
  } catch (e5) {
1472
1472
  throw e5;
@@ -1492,7 +1492,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1492
1492
  const t3 = e5.getSelectedRanges();
1493
1493
  t3.unmerge();
1494
1494
  const o3 = { alignment: { horizontal: null } };
1495
- t3.updateStyle(o3);
1495
+ t3.getStyle().update(o3);
1496
1496
  } catch (e6) {
1497
1497
  throw e6;
1498
1498
  }
@@ -2185,7 +2185,7 @@ const Rt = (e2, t2, o2 = null) => {
2185
2185
  Ce2.current = true;
2186
2186
  const e3 = Q.lazy(async () => {
2187
2187
  try {
2188
- const e4 = await import("./gOAPbrjPWwF5dLlV.mjs");
2188
+ const e4 = await import("./B5wXNt_H2jBDwij-.mjs");
2189
2189
  return Ce2.current = false, be2.current = true, R2([...k2]), e4;
2190
2190
  } catch (e4) {
2191
2191
  return console.warn(e4), _2.current?.(false), null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/react",
3
3
  "description": "React - React components needed to build advanced grid and spreadsheet UIs.",
4
- "version": "0.6.15",
4
+ "version": "0.6.17",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -37,10 +37,10 @@
37
37
  "@dnd-kit/sortable": "^10.0.0",
38
38
  "@dnd-kit/utilities": "^3.2.2",
39
39
  "@monaco-editor/react": "^4.6.0",
40
- "@sheetxl/grid-react": "^0.6.15",
41
- "@sheetxl/sdk": "^0.6.15",
42
- "@sheetxl/utils": "^0.6.15",
43
- "@sheetxl/utils-react": "^0.6.15",
40
+ "@sheetxl/grid-react": "^0.6.17",
41
+ "@sheetxl/sdk": "^0.6.17",
42
+ "@sheetxl/utils": "^0.6.17",
43
+ "@sheetxl/utils-react": "^0.6.17",
44
44
  "clsx": "^2.1.1",
45
45
  "monaco-editor-auto-typings": "^0.4.6",
46
46
  "react-merge-refs": "^3.0.2",