@simple-table/react 3.9.0 → 3.9.1
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.
|
@@ -21,12 +21,20 @@ export interface DimensionManagerState {
|
|
|
21
21
|
contentHeight: number | undefined;
|
|
22
22
|
}
|
|
23
23
|
type StateChangeCallback = (state: DimensionManagerState) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Wait this long after the last container-width ResizeObserver tick before
|
|
26
|
+
* notifying subscribers. Coalesces CSS-transition / animated layout shifts
|
|
27
|
+
* (e.g. a collapsible nav) into a single trailing update instead of one full
|
|
28
|
+
* table render per animation frame.
|
|
29
|
+
*/
|
|
30
|
+
export declare const CONTAINER_RESIZE_NOTIFY_DEBOUNCE_MS = 50;
|
|
24
31
|
export declare class DimensionManager {
|
|
25
32
|
private config;
|
|
26
33
|
private state;
|
|
27
34
|
private subscribers;
|
|
28
35
|
private resizeObserver;
|
|
29
36
|
private rafId;
|
|
37
|
+
private resizeNotifyDebounceId;
|
|
30
38
|
/** Set when applyContainerWidthSync updates state before any subscriber exists. */
|
|
31
39
|
private initialNotifyPending;
|
|
32
40
|
constructor(config: DimensionManagerConfig);
|
|
@@ -35,6 +43,9 @@ export declare class DimensionManager {
|
|
|
35
43
|
private calculateHeaderHeight;
|
|
36
44
|
private convertHeightToPixels;
|
|
37
45
|
private calculateContentHeight;
|
|
46
|
+
private cancelPendingResizeNotify;
|
|
47
|
+
/** Trailing debounce for animated / continuous container resizes. */
|
|
48
|
+
private scheduleResizeNotify;
|
|
38
49
|
private observeContainer;
|
|
39
50
|
private applyContainerWidthSync;
|
|
40
51
|
updateConfig(config: Partial<DimensionManagerConfig>): void;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The animation coordinator runs FLIP-style transitions when cells move between
|
|
5
5
|
* positions. All fields are optional; omit the prop entirely to use defaults.
|
|
6
|
+
*
|
|
7
|
+
* Row group expand/collapse never animates when `rowGrouping` is configured.
|
|
6
8
|
*/
|
|
7
9
|
export interface AnimationsConfig {
|
|
8
10
|
/** Master toggle. Defaults to `true`. When `false`, no other field has effect. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-table/react",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/types/react/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-dom": ">=18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"simple-table-core": "3.9.
|
|
32
|
+
"simple-table-core": "3.9.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@rollup/plugin-alias": "^4.0.4",
|