@alaarab/ogrid-react 2.0.5 → 2.0.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.
|
@@ -15,6 +15,7 @@ export function useColumnPinning(params) {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
return initial;
|
|
18
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18
19
|
}, []); // Only on mount
|
|
19
20
|
const [internalPinnedColumns, setInternalPinnedColumns] = useState(initialPinnedColumns);
|
|
20
21
|
// Use controlled state if provided, otherwise internal
|
|
@@ -273,7 +273,9 @@ export function useOGrid(props, ref) {
|
|
|
273
273
|
// No-op at orchestration level — DataGridTable components implement
|
|
274
274
|
// this via useVirtualScroll.scrollToIndex when virtual scrolling is active.
|
|
275
275
|
},
|
|
276
|
-
}),
|
|
276
|
+
}),
|
|
277
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
278
|
+
[
|
|
277
279
|
visibleColumns,
|
|
278
280
|
sort,
|
|
279
281
|
columnOrder,
|
|
@@ -331,7 +333,6 @@ export function useOGrid(props, ref) {
|
|
|
331
333
|
const handleColumnPinned = useCallback((columnId, pinned) => {
|
|
332
334
|
setPinnedOverrides((prev) => {
|
|
333
335
|
if (pinned === null) {
|
|
334
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
335
336
|
const { [columnId]: _, ...rest } = prev;
|
|
336
337
|
return rest;
|
|
337
338
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alaarab/ogrid-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "OGrid React – React hooks, headless components, and utilities for OGrid data grids.",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,19 +31,20 @@
|
|
|
31
31
|
"README.md",
|
|
32
32
|
"LICENSE"
|
|
33
33
|
],
|
|
34
|
+
"sideEffects": false,
|
|
34
35
|
"engines": {
|
|
35
36
|
"node": ">=18"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@alaarab/ogrid-core": "2.0.
|
|
39
|
-
"@tanstack/react-virtual": "^3.
|
|
39
|
+
"@alaarab/ogrid-core": "2.0.7",
|
|
40
|
+
"@tanstack/react-virtual": "^3.13.18"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@testing-library/jest-dom": "^6.
|
|
46
|
-
"@testing-library/react": "^16.
|
|
46
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
47
|
+
"@testing-library/react": "^16.3.2",
|
|
47
48
|
"@testing-library/user-event": "^14.6.1",
|
|
48
49
|
"@types/react": "^18.3.18",
|
|
49
50
|
"@types/react-dom": "^18.3.5",
|