@sheetxl/react 0.7.7 → 0.7.8

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.7.7
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.8
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,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.7.7
3
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.8
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.
@@ -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.7.7
4
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.8
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.
@@ -9,7 +9,7 @@ import Je, { memo as mt, useMemo as fe, useState as he, forwardRef as vt, useRef
9
9
  import { STANDARD_KEY_CHARS as Al, useSelection as hi, useHeaderSelection as El, HeaderRenderer as Il, Grid as mi, HeaderDivider as Fl, SELECTION_CLIP_INSETS as Xo, defaultSelectionRenderer as zl, useKeyboardEditorOverlay as Nl, Selection as pi, SVGLine as uo } from "@sheetxl/grid-react";
10
10
  import { unstable_batchedUpdates as On, createPortal as fi } from "react-dom";
11
11
  /**
12
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.7
12
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.8
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.
@@ -426,7 +426,7 @@ const jn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), pc = Object.fr
426
426
  F.current && document.activeElement !== F.current && requestAnimationFrame(() => {
427
427
  F.current.focus();
428
428
  });
429
- }, ref: ee, ...M, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...P }, children: f("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe * x + 1, left: ot * x, width: `calc(100% - ${Ue * x}px)`, maxWidth: `calc(100% - ${Ue * x}px)`, height: (ae ?? dt) * x, maxHeight: (ae ?? dt) * x }, children: f("textarea", { spellCheck: "false", placeholder: S.placeholder, ref: F, value: S.textValue, disabled: Ie, readOnly: H || a.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Te, fontSize: Pe ? `${Pe}px` : "inherit", textAlign: S.textAlign, lineHeight: (ie?.lines[0]?.bounds.height ?? 0) * x + "px", height: (ie?.bounds.height ?? 0) * x, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: S.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: $e, onBlur: () => {
429
+ }, ref: ee, ...M, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...P }, children: f("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe * x, left: ot * x, width: `calc(100% - ${Ue * x}px)`, maxWidth: `calc(100% - ${Ue * x}px)`, height: (ae ?? dt) * x, maxHeight: (ae ?? dt) * x }, children: f("textarea", { spellCheck: "false", placeholder: S.placeholder, ref: F, value: S.textValue, disabled: Ie, readOnly: H || a.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Te, fontSize: Pe ? `${Pe}px` : "inherit", textAlign: S.textAlign, lineHeight: (ie?.lines[0]?.bounds.height ?? 0) * x + "px", height: (ie?.bounds.height ?? 0) * x, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: S.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: $e, onBlur: () => {
430
430
  ue(!1);
431
431
  }, onSelect: (I) => {
432
432
  }, onChange: (I) => {
@@ -2509,7 +2509,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Y("pasteFormulas", u,
2509
2509
  h.current = !0;
2510
2510
  const ae = Je.lazy(async () => {
2511
2511
  try {
2512
- const Fe = await import("./BWNPJW3Cml1AVHaI.mjs");
2512
+ const Fe = await import("./DmWuIDOLzzqPSh4W.mjs");
2513
2513
  return h.current = !1, ot.current = !0, M([...u]), Fe;
2514
2514
  } catch (Fe) {
2515
2515
  return console.warn(Fe), tt.current?.(!1), null;
@@ -4741,8 +4741,8 @@ const Kc = (e) => {
4741
4741
  }, Yc = () => {
4742
4742
  const e = Kt(mr), [t] = he(() => new pl());
4743
4743
  return fe(() => e || t, [e]);
4744
- }, nc = "_script-editor_iy654_5", oc = { 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" }, rc = Je.lazy(() => import("./D7bms6i1w6TgoHus.mjs"));
4745
- let Ln, Pn, tn = ["define", "require"], ri = !1, wo = "@0.7.7";
4744
+ }, nc = "_script-editor_iy654_5", oc = { 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" }, rc = Je.lazy(() => import("./Cbreg-p-DhRLT1Yo.mjs"));
4745
+ let Ln, Pn, tn = ["define", "require"], ri = !1, wo = "@0.7.8";
4746
4746
  wo !== "@local" && wo !== "@0.0.0" || (wo = "");
4747
4747
  const ic = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${wo}/types/scripting.d.ts`, ii = async (e, t, n) => {
4748
4748
  const o = e.getModel();
@@ -4939,7 +4939,7 @@ const Xc = mt(vt((e, t) => {
4939
4939
  }, [M]), me = xe(null), Ee = oe((J, Z) => {
4940
4940
  a.current = { monaco: Z, editor: J }, q(!0), ee("Loading Types");
4941
4941
  const ge = u?.getScripts().getModules().getItems()[0]?.getSource() ?? "";
4942
- J.setValue(ge), import("./Ct2p-8MynQMS6ofc.mjs").then((G) => G.c).then(async (G) => {
4942
+ J.setValue(ge), import("./B6auHoiqIwI3976h.mjs").then((G) => G.c).then(async (G) => {
4943
4943
  ee(""), G.AutoTypings.create(J, { shareCache: !0, dontAdaptEditorOptions: !0, monaco: Z, onUpdate: (U, re) => {
4944
4944
  if (U.type === "LookedUpPackage" && U.success !== void 0) {
4945
4945
  const we = Z.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.7.7
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.8
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.7.7
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.8
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.
@@ -441,7 +441,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
441
441
  G2.current && document.activeElement !== G2.current && requestAnimationFrame(() => {
442
442
  G2.current.focus();
443
443
  });
444
- }, ref: j2, ...E2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: Z("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2 + 1, left: Re2 * F2, width: `calc(100% - ${Me2 * F2}px)`, maxWidth: `calc(100% - ${Me2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: Z("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: G2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ee2, fontSize: Ie2 ? `${Ie2}px` : "inherit", textAlign: _2.textAlign, lineHeight: (K2?.lines[0]?.bounds.height ?? 0) * F2 + "px", height: (K2?.bounds.height ?? 0) * F2, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: _2.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: ke2, onBlur: () => {
444
+ }, ref: j2, ...E2, style: { display: "flex", flexGrow: 1, alignSelf: "stretch", height: "100%", width: "100%", maxWidth: "100%", maxHeight: "100%", cursor: "initial", ...z2 }, children: Z("div", { className: "editor-placement", style: { display: "flex", flexGrow: 1, position: "relative", top: Fe2 * F2, left: Re2 * F2, width: `calc(100% - ${Me2 * F2}px)`, maxWidth: `calc(100% - ${Me2 * F2}px)`, height: (ze2 ?? Ae2) * F2, maxHeight: (ze2 ?? Ae2) * F2 }, children: Z("textarea", { spellCheck: "false", placeholder: _2.placeholder, ref: G2, value: _2.textValue, disabled: Se2, readOnly: C2 || f2.getProtection().isReadOnly(), name: "sheet-cell-editor", autoComplete: "off", autoCapitalize: "off", style: { flex: "1 1 100%", font: "inherit", ...Ee2, fontSize: Ie2 ? `${Ie2}px` : "inherit", textAlign: _2.textAlign, lineHeight: (K2?.lines[0]?.bounds.height ?? 0) * F2 + "px", height: (K2?.bounds.height ?? 0) * F2, boxSizing: "border-box", padding: "0px", margin: "0px", borderWidth: 0, outline: "none", resize: "none", overflow: "hidden", background: "transparent", maxHeight: "100%", maxWidth: "100%", width: "100%", userSelect: "text", position: "absolute", whiteSpace: _2.isWrapped ? "normal" : "pre", wordWrap: "break-word" }, onFocus: ke2, onBlur: () => {
445
445
  B2(false);
446
446
  }, onSelect: (e3) => {
447
447
  }, onChange: (e3) => {
@@ -2345,7 +2345,7 @@ const Bt = (e2, t2, o2 = null) => {
2345
2345
  Ce2.current = true;
2346
2346
  const e3 = te.lazy(async () => {
2347
2347
  try {
2348
- const e4 = await import("./DqXJWwNsMHVpV9A1.mjs");
2348
+ const e4 = await import("./KkpF4b78aMAv4WI4.mjs");
2349
2349
  return Ce2.current = false, be2.current = true, T2([...k2]), e4;
2350
2350
  } catch (e4) {
2351
2351
  return console.warn(e4), _2.current?.(false), null;
@@ -3271,7 +3271,7 @@ const bn = (e2) => {
3271
3271
  return ne(() => e2 || t2, [e2]);
3272
3272
  }, xn = "_script-editor_iy654_5", kn = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, Tn = te.lazy(() => import("@monaco-editor/react"));
3273
3273
  let Rn, Mn, An = ["define", "require"], zn = false;
3274
- let Fn = "@0.7.7";
3274
+ let Fn = "@0.7.8";
3275
3275
  "@local" !== Fn && "@0.0.0" !== Fn || (Fn = "");
3276
3276
  const Dn = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Fn}/types/scripting.d.ts`, In = async (e2, t2, o2) => {
3277
3277
  const n2 = e2.getModel();
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.7.7",
4
+ "version": "0.7.8",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -49,10 +49,10 @@
49
49
  "@dnd-kit/sortable": "^10.0.0",
50
50
  "@dnd-kit/utilities": "^3.2.2",
51
51
  "@monaco-editor/react": "^4.6.0",
52
- "@sheetxl/grid-react": "^0.7.7",
53
- "@sheetxl/sdk": "^0.7.7",
54
- "@sheetxl/utils": "^0.7.7",
55
- "@sheetxl/utils-react": "^0.7.7",
52
+ "@sheetxl/grid-react": "^0.7.8",
53
+ "@sheetxl/sdk": "^0.7.8",
54
+ "@sheetxl/utils": "^0.7.8",
55
+ "@sheetxl/utils-react": "^0.7.8",
56
56
  "clsx": "^2.1.1",
57
57
  "monaco-editor-auto-typings": "^0.4.6",
58
58
  "react-merge-refs": "^3.0.2",