@equinor/eds-data-grid-react 1.2.3 → 1.2.4
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.
|
@@ -539,7 +539,8 @@ function TableRow({
|
|
|
539
539
|
} catch (error) {
|
|
540
540
|
// Silently catch any errors during measurement to prevent crashes
|
|
541
541
|
// This can happen if the virtualizer is in an inconsistent state during unmount
|
|
542
|
-
|
|
542
|
+
const g = globalThis;
|
|
543
|
+
if (g.process?.env?.NODE_ENV === 'development') {
|
|
543
544
|
console.warn('Failed to measure element during virtualization:', error);
|
|
544
545
|
}
|
|
545
546
|
}
|
|
@@ -595,7 +596,8 @@ function addPxSuffixIfInputHasNoPrefix(size) {
|
|
|
595
596
|
return size;
|
|
596
597
|
}
|
|
597
598
|
function logDevelopmentWarningOfPropUse(deprecatedProps) {
|
|
598
|
-
|
|
599
|
+
const g = globalThis;
|
|
600
|
+
if (g.process?.env?.NODE_ENV !== 'development') {
|
|
599
601
|
return;
|
|
600
602
|
}
|
|
601
603
|
for (const [key, {
|
|
@@ -36,7 +36,8 @@ function TableRow({
|
|
|
36
36
|
} catch (error) {
|
|
37
37
|
// Silently catch any errors during measurement to prevent crashes
|
|
38
38
|
// This can happen if the virtualizer is in an inconsistent state during unmount
|
|
39
|
-
|
|
39
|
+
const g = globalThis;
|
|
40
|
+
if (g.process?.env?.NODE_ENV === 'development') {
|
|
40
41
|
console.warn('Failed to measure element during virtualization:', error);
|
|
41
42
|
}
|
|
42
43
|
}
|
package/dist/esm/utils.js
CHANGED
|
@@ -24,7 +24,8 @@ function addPxSuffixIfInputHasNoPrefix(size) {
|
|
|
24
24
|
return size;
|
|
25
25
|
}
|
|
26
26
|
function logDevelopmentWarningOfPropUse(deprecatedProps) {
|
|
27
|
-
|
|
27
|
+
const g = globalThis;
|
|
28
|
+
if (g.process?.env?.NODE_ENV !== 'development') {
|
|
28
29
|
return;
|
|
29
30
|
}
|
|
30
31
|
for (const [key, {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Cell, CellContext, ColumnDef, ColumnPinningState, ColumnResizeMode, ColumnSort, ExpandedState, HeaderContext, OnChangeFn, Row, RowSelectionState, SortingState, Table, VisibilityState } from '@tanstack/react-table';
|
|
1
|
+
import type { Cell, CellContext, ColumnDef, ColumnPinningState, ColumnResizeMode, ColumnSort, ExpandedState, HeaderContext, OnChangeFn, Row, RowModel, RowSelectionState, SortingState, Table, VisibilityState } from '@tanstack/react-table';
|
|
2
2
|
import type { Virtualizer } from '@tanstack/react-virtual';
|
|
3
|
-
export type { Cell, CellContext, ColumnDef, ColumnPinningState, ColumnResizeMode, ColumnSort, ExpandedState, HeaderContext, OnChangeFn, Row, RowSelectionState, SortingState, Table, Virtualizer, VisibilityState, };
|
|
3
|
+
export type { Cell, CellContext, ColumnDef, ColumnPinningState, ColumnResizeMode, ColumnSort, ExpandedState, HeaderContext, OnChangeFn, Row, RowModel, RowSelectionState, SortingState, Table, Virtualizer, VisibilityState, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/eds-data-grid-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "A feature-rich data-grid written in React, implementing the Equinor Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -28,47 +28,47 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@tanstack/react-table": "^8.21.3",
|
|
31
|
-
"@tanstack/react-virtual": "^3.13.
|
|
32
|
-
"@equinor/eds-
|
|
31
|
+
"@tanstack/react-virtual": "^3.13.18",
|
|
32
|
+
"@equinor/eds-tokens": "^2.2.0",
|
|
33
33
|
"@equinor/eds-utils": "^2.0.0",
|
|
34
|
-
"@equinor/eds-
|
|
34
|
+
"@equinor/eds-icons": "^1.3.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@equinor/eds-core-react": "^2",
|
|
38
38
|
"@rollup/plugin-babel": "^6.1.0",
|
|
39
|
-
"@rollup/plugin-commonjs": "^
|
|
39
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
40
40
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
41
|
-
"@storybook/addon-a11y": "^
|
|
42
|
-
"@storybook/addon-docs": "^
|
|
43
|
-
"@storybook/addon-links": "^
|
|
44
|
-
"@storybook/react-vite": "^
|
|
41
|
+
"@storybook/addon-a11y": "^10.2.10",
|
|
42
|
+
"@storybook/addon-docs": "^10.2.10",
|
|
43
|
+
"@storybook/addon-links": "^10.2.10",
|
|
44
|
+
"@storybook/react-vite": "^10.2.10",
|
|
45
45
|
"@testing-library/dom": "^10.4.1",
|
|
46
46
|
"@testing-library/jest-dom": "^6.9.1",
|
|
47
|
-
"@testing-library/react": "16.3.
|
|
47
|
+
"@testing-library/react": "16.3.2",
|
|
48
48
|
"@testing-library/user-event": "^14.6.1",
|
|
49
49
|
"@types/jest": "^30.0.0",
|
|
50
50
|
"@types/mdx": "^2.0.13",
|
|
51
|
-
"@types/node": "^
|
|
51
|
+
"@types/node": "^25.3.3",
|
|
52
52
|
"@types/ramda": "^0.31.1",
|
|
53
|
-
"@types/react": "^19.2.
|
|
54
|
-
"@types/react-dom": "^19.2.
|
|
53
|
+
"@types/react": "^19.2.14",
|
|
54
|
+
"@types/react-dom": "^19.2.3",
|
|
55
55
|
"babel-plugin-styled-components": "^2.1.4",
|
|
56
|
-
"eslint-plugin-storybook": "
|
|
56
|
+
"eslint-plugin-storybook": "10.2.10",
|
|
57
57
|
"jest": "30.2.0",
|
|
58
58
|
"jest-environment-jsdom": "30.2.0",
|
|
59
59
|
"jest-styled-components": "^7.2.0",
|
|
60
60
|
"js-file-download": "^0.4.12",
|
|
61
61
|
"postcss": "^8.5.6",
|
|
62
62
|
"ramda": "^0.32.0",
|
|
63
|
-
"react": "^19.2.
|
|
64
|
-
"react-dom": "^19.2.
|
|
65
|
-
"react-hook-form": "^7.
|
|
66
|
-
"rollup": "^4.
|
|
67
|
-
"rollup-plugin-delete": "^3.0.
|
|
63
|
+
"react": "^19.2.4",
|
|
64
|
+
"react-dom": "^19.2.4",
|
|
65
|
+
"react-hook-form": "^7.71.2",
|
|
66
|
+
"rollup": "^4.59.0",
|
|
67
|
+
"rollup-plugin-delete": "^3.0.2",
|
|
68
68
|
"rollup-plugin-postcss": "^4.0.2",
|
|
69
|
-
"storybook": "^
|
|
70
|
-
"styled-components": "6.
|
|
71
|
-
"ts-jest": "29.4.
|
|
69
|
+
"storybook": "^10.2.10",
|
|
70
|
+
"styled-components": "6.3.11",
|
|
71
|
+
"ts-jest": "29.4.6",
|
|
72
72
|
"ts-node": "10.9.2",
|
|
73
73
|
"tsc-watch": "^7.2.0",
|
|
74
74
|
"typescript": "~5.9.3"
|