@rowsncolumns/spreadsheet 10.5.8 → 10.5.9

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 +1 @@
1
- {"version":3,"file":"formula-bar-cell-input.d.ts","sourceRoot":"","sources":["../../../../components/cell-input/formula-bar-cell-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,oBAAoB,CAAC;AAGnE,OAAO,KAA6C,MAAM,OAAO,CAAC;AAalE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,KAAK,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe,uIASvB,oBAAoB,uBAuKxB,CAAC"}
1
+ {"version":3,"file":"formula-bar-cell-input.d.ts","sourceRoot":"","sources":["../../../../components/cell-input/formula-bar-cell-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,oBAAoB,CAAC;AAGnE,OAAO,KAA6C,MAAM,OAAO,CAAC;AAalE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,KAAK,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe,uIASvB,oBAAoB,uBAgLxB,CAAC"}
@@ -34,18 +34,27 @@ exports.FormulaBarInput = (0, react_1.memo)(function (_a) {
34
34
  return !canEdit;
35
35
  }, [editingCell, editingSheetId, canEditCell]);
36
36
  var handleChange = (0, react_1.useCallback)(function (value, textFormatRuns) {
37
- var _a;
37
+ var _a, _b;
38
38
  if (!editingCell) {
39
39
  return;
40
40
  }
41
41
  if (!isEditInProgress) {
42
+ // The editor also reports the host's own transactions (the seed
43
+ // that echoes the active cell when the selection moves, the
44
+ // decorations refresh when the active editor changes) while the
45
+ // grid holds the focus. Those are not keystrokes: claiming the
46
+ // active editor for one makes `focusSheet` refuse the grid's cell
47
+ // editor the focus, so no selected cell takes a keystroke.
48
+ if (!((_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.isFocused())) {
49
+ return;
50
+ }
42
51
  // The bar kept the focus after the host ended the edit (a sheet
43
52
  // switch or an outside click commits without refocusing the grid):
44
53
  // the keystroke starts an edit, as the click into the bar did, so
45
54
  // the text is never typed into nothing. The bar stays the active
46
55
  // editor, as after that click.
47
56
  makeEditable === null || makeEditable === void 0 ? void 0 : makeEditable(sheetId, editingCell, value, { autoFocus: false });
48
- setActiveEditor((_a = editorRef.current) !== null && _a !== void 0 ? _a : undefined);
57
+ setActiveEditor((_b = editorRef.current) !== null && _b !== void 0 ? _b : undefined);
49
58
  }
50
59
  // This will update formula bar editor value too
51
60
  setEditorValue === null || setEditorValue === void 0 ? void 0 : setEditorValue(value, textFormatRuns, editingSheetId, editingCell);
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.releaseDate = void 0;
5
5
  exports.releaseDate =
6
6
  // @ts-ignore
7
- (_a = new Date("2026-10-20")) !== null && _a !== void 0 ? _a : new Date("2025-06-18");
7
+ (_a = new Date("2026-10-21")) !== null && _a !== void 0 ? _a : new Date("2025-06-18");
@@ -1 +1 @@
1
- {"version":3,"file":"formula-bar-cell-input.d.ts","sourceRoot":"","sources":["../../../../components/cell-input/formula-bar-cell-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,oBAAoB,CAAC;AAGnE,OAAO,KAA6C,MAAM,OAAO,CAAC;AAalE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,KAAK,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe,uIASvB,oBAAoB,uBAuKxB,CAAC"}
1
+ {"version":3,"file":"formula-bar-cell-input.d.ts","sourceRoot":"","sources":["../../../../components/cell-input/formula-bar-cell-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,oBAAoB,CAAC;AAGnE,OAAO,KAA6C,MAAM,OAAO,CAAC;AAalE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,KAAK,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe,uIASvB,oBAAoB,uBAgLxB,CAAC"}
@@ -32,6 +32,15 @@ export const FormulaBarInput = memo(({ activeCell, functionDescriptions, onKeyDo
32
32
  return;
33
33
  }
34
34
  if (!isEditInProgress) {
35
+ // The editor also reports the host's own transactions (the seed
36
+ // that echoes the active cell when the selection moves, the
37
+ // decorations refresh when the active editor changes) while the
38
+ // grid holds the focus. Those are not keystrokes: claiming the
39
+ // active editor for one makes `focusSheet` refuse the grid's cell
40
+ // editor the focus, so no selected cell takes a keystroke.
41
+ if (!editorRef.current?.isFocused()) {
42
+ return;
43
+ }
35
44
  // The bar kept the focus after the host ended the edit (a sheet
36
45
  // switch or an outside click commits without refocusing the grid):
37
46
  // the keystroke starts an edit, as the click into the bar did, so
@@ -1,3 +1,3 @@
1
1
  export const releaseDate =
2
2
  // @ts-ignore
3
- new Date("2026-10-20") ?? new Date("2025-06-18");
3
+ new Date("2026-10-21") ?? new Date("2025-06-18");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowsncolumns/spreadsheet",
3
- "version": "10.5.8",
3
+ "version": "10.5.9",
4
4
  "author": "Vinay M",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "./dist/cjs/index.js",