@sheetxl/react 0.7.9 → 0.7.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.
- package/browser/cjs/{DTllJ68guWq5oyfK.cjs → DYlds16R5NgbFoDY.cjs} +1 -1
- package/browser/cjs/{iw22IxEErpMWqfjk.cjs → VFRQg8FZV_WVL_R4.cjs} +1 -1
- package/browser/cjs/index.cjs +4 -4
- package/browser/cjs/{DDzLr5SR58jIZjh1.cjs → piG12-wpqxm1oEwu.cjs} +1 -1
- package/browser/esm/{DBMJUpDmXGW92Lrn.mjs → B1tB7536-kpgAFmj.mjs} +1 -1
- package/browser/esm/{BEVTSpey87VbTNLQ.mjs → CS57off-E_z-Vv6y.mjs} +1 -1
- package/browser/esm/{DGQWHBbDCtMyJX8H.mjs → brepQl9chvnxkyvA.mjs} +1 -1
- package/browser/esm/index.mjs +396 -396
- package/node/esm/{D3merBG8bA_CZ3nh.mjs → BfC4GU1CZv1WvCN3.mjs} +1 -1
- package/node/esm/index.mjs +6 -6
- package/package.json +5 -5
- package/types/index.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.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/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.7.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.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.
|
|
@@ -688,7 +688,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
688
688
|
const l2 = n2?.fireOnAddressChange ?? true;
|
|
689
689
|
ae(() => {
|
|
690
690
|
if (!e2 || !t2 || !r2.current) {
|
|
691
|
-
const e3 = { getSource: () => null, trigger: "delete", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() };
|
|
691
|
+
const e3 = { getSource: () => null, getFrom: () => null, getTo: () => null, trigger: "delete", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() };
|
|
692
692
|
return void r2.current?.(e3);
|
|
693
693
|
}
|
|
694
694
|
const o3 = (e3) => {
|
|
@@ -696,7 +696,7 @@ const Ke = (e2 = 6e4) => new Date(Math.floor(Date.now() / e2) * e2), Xe = Object
|
|
|
696
696
|
}, i2 = e2.getRange(t2).addListener(o3, n2);
|
|
697
697
|
if (l2) {
|
|
698
698
|
const n3 = e2.getRange(t2);
|
|
699
|
-
o3({ getSource: () => n3, trigger: "modelChange", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() });
|
|
699
|
+
o3({ getSource: () => n3, getFrom: () => null, getTo: () => null, trigger: "modelChange", isDataChange: false, isTransactional: false, isUndo: false, timeStamp: Date.now() });
|
|
700
700
|
}
|
|
701
701
|
return () => {
|
|
702
702
|
i2?.();
|
|
@@ -2049,7 +2049,7 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2049
2049
|
})), Qt = "_sheet-selection_12wyx_5", eo = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, to = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, oo = { key: "dragCopy", description: "Drag selection to copy cell contents." }, no = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, ro = (e2, t2) => t2.ctrlKey && t2.shiftKey ? no : t2.ctrlKey ? oo : t2.shiftKey ? to : eo, lo = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, io = oe(le((e2, t2) => {
|
|
2050
2050
|
const { view: o2, commands: n2, className: r2, onFirstRender: l2, onShowTooltip: i2, onCloseTooltip: a2, sheet: d2, gridRef: c2, gridStyle: g2, isActive: u2, editingCoords: h2, ...m2 } = e2, p2 = o2?.getBounds(), f2 = S(i2, [i2]), w2 = S(a2, [a2]), [v2, q2] = re(() => d2?.getSelection().getCoords()), y2 = S((e3) => {
|
|
2051
2051
|
Q.isEqualSelectionCoords(e3, v2) || d2 && d2.getSelection().updateCoords(e3);
|
|
2052
|
-
}, [d2, v2]), x2 = D(), k2 = ie(null), [T2, R2] = re(d2?.getProtection().isLocked()), [M2, A2] = re(d2?.getView().getMovableSelection().length > 0), z2 = "touch" === C.detectIt().primaryInput, I2 = !z2 && u2, E2 = h2 ?? x2.getMode()?.args?.stateAndCoords?.coords, N2 = void 0 !== E2 || M2, H2 = S((e3) => {
|
|
2052
|
+
}, [d2, v2]), x2 = D(), k2 = ie(null), [T2, R2] = re(d2?.getProtection().isLocked()), [M2, A2] = re(d2?.getView().getMovableSelection().length > 0), z2 = "touch" === C.detectIt().primaryInput, I2 = !z2 && u2, E2 = h2 ?? x2.getMode()?.args?.stateAndCoords?.coords ?? null, N2 = void 0 !== E2 || M2, H2 = S((e3) => {
|
|
2053
2053
|
const t3 = Q.cellToRange(e3);
|
|
2054
2054
|
if (d2.isClosed()) return t3;
|
|
2055
2055
|
const o3 = d2.getRange(t3, { ignoreHidden: true }).getMerges();
|
|
@@ -2345,7 +2345,7 @@ const Ot = (e2, t2, o2 = null) => {
|
|
|
2345
2345
|
Ce2.current = true;
|
|
2346
2346
|
const e3 = te.lazy(async () => {
|
|
2347
2347
|
try {
|
|
2348
|
-
const e4 = await import("./
|
|
2348
|
+
const e4 = await import("./BfC4GU1CZv1WvCN3.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;
|
|
@@ -3270,7 +3270,7 @@ const Sn = (e2) => {
|
|
|
3270
3270
|
return ne(() => e2 || t2, [e2]);
|
|
3271
3271
|
}, kn = "_script-editor_iy654_5", Tn = { 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" }, Rn = te.lazy(() => import("@monaco-editor/react"));
|
|
3272
3272
|
let Mn, An, zn = ["define", "require"], Fn = false;
|
|
3273
|
-
let Dn = "@0.7.
|
|
3273
|
+
let Dn = "@0.7.10";
|
|
3274
3274
|
"@local" !== Dn && "@0.0.0" !== Dn || (Dn = "");
|
|
3275
3275
|
const In = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${Dn}/types/scripting.d.ts`, En = async (e2, t2, o2) => {
|
|
3276
3276
|
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.
|
|
4
|
+
"version": "0.7.10",
|
|
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.
|
|
53
|
-
"@sheetxl/sdk": "^0.7.
|
|
54
|
-
"@sheetxl/utils": "^0.7.
|
|
55
|
-
"@sheetxl/utils-react": "^0.7.
|
|
52
|
+
"@sheetxl/grid-react": "^0.7.10",
|
|
53
|
+
"@sheetxl/sdk": "^0.7.10",
|
|
54
|
+
"@sheetxl/utils": "^0.7.10",
|
|
55
|
+
"@sheetxl/utils-react": "^0.7.10",
|
|
56
56
|
"clsx": "^2.1.1",
|
|
57
57
|
"monaco-editor-auto-typings": "^0.4.6",
|
|
58
58
|
"react-merge-refs": "^3.0.2",
|
package/types/index.d.ts
CHANGED
|
@@ -1471,7 +1471,7 @@ export declare interface TaskPaneEntry {
|
|
|
1471
1471
|
* The icon to display to identify the task pane.
|
|
1472
1472
|
*
|
|
1473
1473
|
* @remarks
|
|
1474
|
-
* This can be either a string (
|
|
1474
|
+
* This can be either a string (iconKey) or a React element.
|
|
1475
1475
|
*/
|
|
1476
1476
|
getIcon?(): React.ReactElement | string;
|
|
1477
1477
|
/**
|