@gridsheet/preact-core 3.0.0-rc.5 → 3.0.0-rc.7
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/index.js +31 -8
- package/dist/index.js.map +1 -1
- package/dist/lib/book.d.ts +6 -0
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/lib/book.d.ts
CHANGED
|
@@ -72,6 +72,12 @@ export declare class Registry {
|
|
|
72
72
|
historyLimit: number;
|
|
73
73
|
lastHistory?: HistoryType;
|
|
74
74
|
currentHistory?: HistoryType;
|
|
75
|
+
/** StrictMode guard: Map from action object (identity) to cached reducer result.
|
|
76
|
+
* Using a Map instead of a single slot allows multiple batched dispatches to coexist. */
|
|
77
|
+
_strictModeCache?: Map<unknown, unknown>;
|
|
78
|
+
/** StrictMode guard: Map from useId component key to assigned sheetId.
|
|
79
|
+
* Prevents double-increment of sheetHead when useState initializer runs twice in Strict Mode. */
|
|
80
|
+
_componentSheetIds: Map<string, number>;
|
|
75
81
|
ready: boolean;
|
|
76
82
|
functions: FunctionMapping;
|
|
77
83
|
policies: {
|
package/dist/types.d.ts
CHANGED
|
@@ -91,8 +91,8 @@ export type CellType<T = any, Custom = any> = {
|
|
|
91
91
|
prevention?: OperationType;
|
|
92
92
|
/** Cached result from an async formula. Stored directly on the cell for serializability. */
|
|
93
93
|
asyncCaches?: Record<string, AsyncCache>;
|
|
94
|
-
/** Filter configuration. Set on col-header cells (y=0). */
|
|
95
|
-
filter?: FilterConfig;
|
|
94
|
+
/** Filter configuration. Set on col-header cells (y=0). null means explicitly absent (used in undo diffBefore to survive JSON serialization). */
|
|
95
|
+
filter?: FilterConfig | null;
|
|
96
96
|
/** Whether this row is hidden by a filter. Set on row-header cells (x=0). */
|
|
97
97
|
filtered?: boolean;
|
|
98
98
|
/** If true, this row is excluded from sort and stays at its original position. Set on row-header cells (x=0). */
|