@sheetxl/react 0.7.22 → 0.7.24

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.22
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.24
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.7.22
4
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.24
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.7.22
3
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.24
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.
@@ -8,7 +8,7 @@ import Je, { memo as gt, useMemo as fe, useState as Ce, forwardRef as pt, useRef
8
8
  import { STANDARD_KEY_CHARS as yl, useSelection as ii, useHeaderSelection as bl, HeaderRenderer as Cl, Grid as li, HeaderDivider as ql, SELECTION_CLIP_INSETS as Ko, defaultSelectionRenderer as Sl, useKeyboardEditorOverlay as xl, Selection as ai, SVGLine as no } from "@sheetxl/grid-react";
9
9
  import { unstable_batchedUpdates as oo, createPortal as si } from "react-dom";
10
10
  /**
11
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.22
11
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.24
12
12
  *
13
13
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
14
14
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1249,12 +1249,12 @@ For example, you can prevent people from editing locked cells or making formatti
1249
1249
  }), new Q("startEditCurrentDate", o, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl] } }, function() {
1250
1250
  S?.({ text: t.createTemporaryCell({ value: go.nowWithPrecision(), style: { numberFormat: "Short Date" } }).toText() });
1251
1251
  }), new Ze("sheetZoomOut", o, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [ne.Ctrl, ne.Alt] }, { key: "NumpadSubtract", modifiers: [ne.Ctrl, ne.Alt] }] }), new Ze("sheetZoomIn", o, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [ne.Ctrl, ne.Alt] }, { key: "NumpadAdd", modifiers: [ne.Ctrl, ne.Alt] }] }), new Ze("sheetZoom100", o, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [ne.Ctrl, ne.Alt] } }), new Q("updateHyperlink", o, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", icon: "HyperlinkInset", context: () => D().cell, shortcut: [{ key: "K", modifiers: [ne.Ctrl] }, { key: "K", modifiers: [ne.Ctrl, ne.Alt] }] }, async function(a, I) {
1252
- const H = this, d = { context: I.getContext(), onInput: (M) => {
1252
+ const H = this, d = { context: () => I.getContext(), onInput: (M) => {
1253
1253
  oe(H, M);
1254
1254
  } };
1255
1255
  l.showWindow("hyperlink", d);
1256
1256
  }), new Q("openHyperlink", o, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [ne.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", icon: "HyperlinkGoto", context: () => D().cell }, async (a, I) => {
1257
- const H = I.getContext()();
1257
+ const H = I.getContext();
1258
1258
  if (!H) return;
1259
1259
  const d = H.getHyperlink();
1260
1260
  if (d) try {
@@ -1269,7 +1269,7 @@ For example, you can prevent people from editing locked cells or making formatti
1269
1269
  H?.showMessage?.(Qe("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [d, " is not yet implemented.", m("br", {}), m("br", {}), "Please see the ", m("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1270
1270
  })(l, I.getLabel());
1271
1271
  }), new Q("updateComments", o, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [ne.Ctrl, ne.Alt] }, description: "Add a comment to the current cell.", icon: "CommentInsert", context: () => D().cell }, async function(a, I) {
1272
- const H = this, d = { context: I.getContext(), onInput: (M) => {
1272
+ const H = this, d = { context: () => I.getContext(), onInput: (M) => {
1273
1273
  le(H, M);
1274
1274
  } };
1275
1275
  l.showWindow("comments", d);
@@ -2366,7 +2366,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
2366
2366
  Fe.current = !0;
2367
2367
  const d = Je.lazy(async () => {
2368
2368
  try {
2369
- const M = await import("./DpetxHCqcdvCcpAe.mjs");
2369
+ const M = await import("./Axg4DO-g2HKchmXK.mjs");
2370
2370
  return Fe.current = !1, a.current = !0, R([...h]), M;
2371
2371
  } catch (M) {
2372
2372
  return console.warn(M), Oe.current?.(!1), null;
@@ -4595,8 +4595,8 @@ const Nc = (e) => {
4595
4595
  }, Lc = () => {
4596
4596
  const e = Kt(ur), [t] = Ce(() => new il());
4597
4597
  return fe(() => e || t, [e]);
4598
- }, _s = "_script-editor_iy654_5", Gs = { 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" }, Zs = Je.lazy(() => import("./C07OMiF-GZT09DE8.mjs"));
4599
- let In, Fn, tn = ["define", "require"], Yr = !1, uo = "@0.7.22";
4598
+ }, _s = "_script-editor_iy654_5", Gs = { 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" }, Zs = Je.lazy(() => import("./BnPtC2B4STd5THbc.mjs"));
4599
+ let In, Fn, tn = ["define", "require"], Yr = !1, uo = "@0.7.24";
4600
4600
  uo !== "@local" && uo !== "@0.0.0" || (uo = "");
4601
4601
  const js = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${uo}/types/scripting.d.ts`, Xr = async (e, t, n) => {
4602
4602
  const r = e.getModel();
@@ -4793,7 +4793,7 @@ const Pc = gt(pt((e, t) => {
4793
4793
  }, [R]), We = xe(null), $e = te((ge, P) => {
4794
4794
  g.current = { monaco: P, editor: ge }, D(!0), oe("Loading Types");
4795
4795
  const Le = h?.getScripts().getModules().getItems()[0]?.getSource() ?? "";
4796
- ge.setValue(Le), import("./B-FEg36883DAwV11.mjs").then((O) => O.c).then(async (O) => {
4796
+ ge.setValue(Le), import("./7b9weMmsnwpjKTj4.mjs").then((O) => O.c).then(async (O) => {
4797
4797
  oe(""), O.AutoTypings.create(ge, { shareCache: !0, dontAdaptEditorOptions: !0, monaco: P, onUpdate: ($, he) => {
4798
4798
  if ($.type === "LookedUpPackage" && $.success !== void 0) {
4799
4799
  const de = P.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.22
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.24
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.22
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.24
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.
@@ -1230,12 +1230,12 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1230
1230
  }), new H("startEditCurrentDate", w2, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [V.Ctrl] } }, function() {
1231
1231
  b2?.({ text: l2.createTemporaryCell({ value: d.nowWithPrecision(), style: { numberFormat: "Short Date" } }).toText() });
1232
1232
  }), new N("sheetZoomOut", w2, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [V.Ctrl, V.Alt] }, { key: "NumpadSubtract", modifiers: [V.Ctrl, V.Alt] }] }), new N("sheetZoomIn", w2, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [V.Ctrl, V.Alt] }, { key: "NumpadAdd", modifiers: [V.Ctrl, V.Alt] }] }), new N("sheetZoom100", w2, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [V.Ctrl, V.Alt] } }), new H("updateHyperlink", w2, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", icon: "HyperlinkInset", context: () => ie2().cell, shortcut: [{ key: "K", modifiers: [V.Ctrl] }, { key: "K", modifiers: [V.Ctrl, V.Alt] }] }, async function(e3, t2) {
1233
- const o2 = this, n2 = { context: t2.getContext(), onInput: (e4) => {
1233
+ const o2 = this, n2 = { context: () => t2.getContext(), onInput: (e4) => {
1234
1234
  me2(o2, e4);
1235
1235
  } };
1236
1236
  y2.showWindow("hyperlink", n2);
1237
1237
  }), new H("openHyperlink", w2, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [V.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", icon: "HyperlinkGoto", context: () => ie2().cell }, async (e3, t2) => {
1238
- const o2 = t2.getContext()();
1238
+ const o2 = t2.getContext();
1239
1239
  if (!o2) return;
1240
1240
  const n2 = o2.getHyperlink();
1241
1241
  if (n2) try {
@@ -1250,7 +1250,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" })) return;
1250
1250
  e4?.showMessage?.(x("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [t3, " is not yet implemented.", S("br", {}), S("br", {}), "Please see the ", S("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
1251
1251
  })(y2, t2.getLabel());
1252
1252
  }), new H("updateComments", w2, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [V.Ctrl, V.Alt] }, description: "Add a comment to the current cell.", icon: "CommentInsert", context: () => ie2().cell }, async function(e3, t2) {
1253
- const o2 = this, n2 = { context: t2.getContext(), onInput: (e4) => {
1253
+ const o2 = this, n2 = { context: () => t2.getContext(), onInput: (e4) => {
1254
1254
  pe2(o2, e4);
1255
1255
  } };
1256
1256
  y2.showWindow("comments", n2);
@@ -2358,7 +2358,7 @@ const Vt = (e2, t2, o2 = null) => {
2358
2358
  Ce2.current = true;
2359
2359
  const e3 = le.lazy(async () => {
2360
2360
  try {
2361
- const e4 = await import("./BzmGjDsMnAeW7Hwa.mjs");
2361
+ const e4 = await import("./C5yMXysWyKNbCRd5.mjs");
2362
2362
  return Ce2.current = false, be2.current = true, k2([...b2]), e4;
2363
2363
  } catch (e4) {
2364
2364
  return console.warn(e4), j2.current?.(false), null;
@@ -3281,7 +3281,7 @@ const qn = (e2) => {
3281
3281
  return ae(() => e2 || t2, [e2]);
3282
3282
  }, Cn = "_script-editor_iy654_5", bn = { 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" }, Sn = le.lazy(() => import("@monaco-editor/react"));
3283
3283
  let xn, kn, Tn = ["define", "require"], Rn = false;
3284
- let Mn = "@0.7.22";
3284
+ let Mn = "@0.7.24";
3285
3285
  "@local" !== Mn && "@0.0.0" !== Mn || (Mn = "");
3286
3286
  const An = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Mn}/types/scripting.d.ts`, Fn = async (e2, t2, o2) => {
3287
3287
  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.22",
4
+ "version": "0.7.24",
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.22",
53
- "@sheetxl/sdk": "^0.7.22",
54
- "@sheetxl/utils": "^0.7.22",
55
- "@sheetxl/utils-react": "^0.7.22",
52
+ "@sheetxl/grid-react": "^0.7.24",
53
+ "@sheetxl/sdk": "^0.7.24",
54
+ "@sheetxl/utils": "^0.7.24",
55
+ "@sheetxl/utils-react": "^0.7.24",
56
56
  "clsx": "^2.1.1",
57
57
  "monaco-editor-auto-typings": "^0.4.6",
58
58
  "react-merge-refs": "^3.0.2",