@gridsheet/preact-core 3.0.6 → 3.1.0

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/dist/spellbook.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { allFunctions } from "@gridsheet/functions";
2
2
  import { createBook } from "@gridsheet/core";
3
- import { U as useBook } from "./hooks-DKULalw8.mjs";
3
+ import { U as useBook } from "./hooks-ykrgAwg5.mjs";
4
4
  const useSpellbook = ({ additionalFunctions, ...rest } = {}) => useBook({ ...rest, additionalFunctions: { ...allFunctions, ...additionalFunctions } });
5
5
  const createSpellbook = ({ additionalFunctions, ...rest } = {}) => createBook({ ...rest, additionalFunctions: { ...allFunctions, ...additionalFunctions } });
6
6
  export {
package/dist/types.d.ts CHANGED
@@ -6,11 +6,18 @@ export type Policies = {
6
6
  [s: string]: PolicyType;
7
7
  };
8
8
  export type OptionsType = {
9
- sheetHeight?: number;
10
- sheetWidth?: number;
9
+ sheetHeight?: number | string;
10
+ sheetWidth?: number | string;
11
11
  sheetResize?: CSSProperties['resize'];
12
12
  editingOnEnter?: boolean;
13
13
  showFormulaBar?: boolean;
14
+ /**
15
+ * Opt into eager resolution for this sheet: solve every formula cell
16
+ * regardless of the visible range, so off-screen async formulas fire instead
17
+ * of waiting to be scrolled into view. OFF by default to preserve
18
+ * virtualization. See `Sheet.eager` / `Sheet.resolveAll()`.
19
+ */
20
+ eager?: boolean;
14
21
  limits?: SheetLimits;
15
22
  mode?: ModeType;
16
23
  contextMenu?: ContextMenuItemDescriptor[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsheet/preact-core",
3
- "version": "3.0.6",
3
+ "version": "3.1.0",
4
4
  "description": "Spreadsheet component for Preact",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/walkframe/gridsheet.git"
11
11
  },
12
12
  "dependencies": {
13
- "@gridsheet/core": "3.0.6"
13
+ "@gridsheet/core": "3.1.0"
14
14
  },
15
15
  "exports": {
16
16
  ".": {
@@ -35,7 +35,7 @@
35
35
  "vite": "^6.2.2",
36
36
  "vite-plugin-dts": "^4.5.3",
37
37
  "@preact/preset-vite": "^2.10.1",
38
- "@gridsheet/functions": "3.0.6"
38
+ "@gridsheet/functions": "3.1.0"
39
39
  },
40
40
  "bugs": {
41
41
  "url": "https://github.com/walkframe/gridsheet/issues"