@sheetxl/react 0.6.13 → 0.6.14
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.
- package/browser/cjs/{Bm1KviNkqQll_eXT.cjs → CqKiYXeK3thq_HDv.cjs} +1 -1
- package/browser/cjs/{BoVUQN66hStPmAJ1.cjs → DXqIAzEiq18KW_px.cjs} +1 -1
- package/browser/cjs/{CyDKG7hyTvs6qE5y.cjs → DrMr49kuwB3rlwsg.cjs} +1 -1
- package/browser/cjs/index.cjs +5 -5
- package/browser/esm/{D3sU07Ol0exARsn5.mjs → BrQJ2yurmysU6Qhb.mjs} +1 -1
- package/browser/esm/{Q1BpSOK42dDI4_Y0.mjs → CqV_BHcGlglNHpl7.mjs} +1 -1
- package/browser/esm/{DeR8sLQpfJNi0frB.mjs → Cr-HaYs-zMtQ3Avd.mjs} +1 -1
- package/browser/esm/index.mjs +5 -5
- package/node/esm/{BRHMyDpUyJVrnfxi.mjs → DeGsGLAxQ77ij6lX.mjs} +1 -1
- package/node/esm/index.mjs +3 -3
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.14
|
|
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.
|
|
4
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.14
|
|
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.
|
|
3
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.14
|
|
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.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -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.
|
|
12
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.14
|
|
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.
|
|
@@ -238,7 +238,7 @@ const Zn = (e = 6e4) => new Date(Math.floor(Date.now() / e) * e), Qs = Object.fr
|
|
|
238
238
|
const xe = [Ye, Ee, i, Fe, st, Ve];
|
|
239
239
|
return f("div", { style: { ...ue, ...Ne, pointerEvents: De }, ...H, children: xe });
|
|
240
240
|
}, pr = { text: "", placeholder: "" }, fr = (e, t) => {
|
|
241
|
-
if (
|
|
241
|
+
if (e.clean().getStyle().getNumberFormat().indexOf("%") === -1) return !1;
|
|
242
242
|
const n = t ?? e.dirty ?? "";
|
|
243
243
|
return n.length === 0 || n.endsWith("%") && !isNaN(parseFloat(n.substring(0, n.length - 1)));
|
|
244
244
|
}, Ml = Object.freeze([At.Delete, At.Home, At.End]), Dl = ft(yt((e, t) => {
|
|
@@ -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("./
|
|
2361
|
+
const De = await import("./CqV_BHcGlglNHpl7.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("./
|
|
4591
|
+
}, Ps = "_script-editor_iy654_5", Ws = ot.lazy(() => import("./Cr-HaYs-zMtQ3Avd.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("./
|
|
4803
|
+
ge.setValue(Le), import("./BrQJ2yurmysU6Qhb.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.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.14
|
|
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/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.6.14
|
|
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.
|
|
@@ -252,7 +252,7 @@ const Ze = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), je = Object
|
|
|
252
252
|
const ke2 = [te2, Y2, u2, oe2, ve2, xe2];
|
|
253
253
|
return G("div", { style: { ...J2, ...fe2, pointerEvents: Se2 }, ...M2, children: ke2 });
|
|
254
254
|
}, tt = { text: "", placeholder: "" }, ot = (e2, t2) => {
|
|
255
|
-
if (
|
|
255
|
+
if (-1 === e2.clean().getStyle().getNumberFormat().indexOf("%")) return false;
|
|
256
256
|
const o2 = t2 ?? e2.dirty ?? "";
|
|
257
257
|
return 0 === o2.length || o2.endsWith("%") && !isNaN(parseFloat(o2.substring(0, o2.length - 1)));
|
|
258
258
|
}, nt = Object.freeze([x.Delete, x.Home, x.End]), lt = ee(ne((e2, t2) => {
|
|
@@ -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("./
|
|
2188
|
+
const e4 = await import("./DeGsGLAxQ77ij6lX.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.
|
|
4
|
+
"version": "0.6.14",
|
|
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.
|
|
41
|
-
"@sheetxl/sdk": "^0.6.
|
|
42
|
-
"@sheetxl/utils": "^0.6.
|
|
43
|
-
"@sheetxl/utils-react": "^0.6.
|
|
40
|
+
"@sheetxl/grid-react": "^0.6.14",
|
|
41
|
+
"@sheetxl/sdk": "^0.6.14",
|
|
42
|
+
"@sheetxl/utils": "^0.6.14",
|
|
43
|
+
"@sheetxl/utils-react": "^0.6.14",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"monaco-editor-auto-typings": "^0.4.6",
|
|
46
46
|
"react-merge-refs": "^3.0.2",
|