@linzjs/step-ag-grid 27.3.1 → 27.3.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "27.3.1",
5
+ "version": "27.3.3",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -75,11 +75,15 @@
75
75
  "last 1 safari version"
76
76
  ]
77
77
  },
78
+ "optionalDependencies": {
79
+ "@rollup/rollup-linux-x64-gnu": "^4.44.0",
80
+ "@swc/core-linux-x64-gnu": "^1.12.6"
81
+ },
78
82
  "devDependencies": {
79
- "@chromatic-com/storybook": "^3.2.6",
80
- "@linzjs/lui": "^22.12.0",
83
+ "@chromatic-com/storybook": "^3.2.7",
84
+ "@linzjs/lui": "^22.12.5",
81
85
  "@linzjs/style": "^5.4.0",
82
- "@rollup/plugin-commonjs": "^28.0.3",
86
+ "@rollup/plugin-commonjs": "^28.0.6",
83
87
  "@rollup/plugin-json": "^6.1.0",
84
88
  "@rollup/plugin-node-resolve": "^16.0.1",
85
89
  "@semantic-release/git": "^10.0.1",
@@ -89,49 +93,49 @@
89
93
  "@storybook/react": "^8.6.12",
90
94
  "@storybook/react-vite": "^8.6.12",
91
95
  "@storybook/test": "^8.6.12",
92
- "@storybook/test-runner": "^0.22.0",
96
+ "@storybook/test-runner": "^0.22.1",
93
97
  "@testing-library/dom": "^10.4.0",
94
98
  "@testing-library/react": "^16.3.0",
95
99
  "@testing-library/user-event": "^14.6.1",
96
100
  "@types/debounce-promise": "^3.1.9",
97
101
  "@types/lodash-es": "^4.17.12",
98
- "@types/node": "^22.15.3",
99
- "@types/react": "^18.3.20",
102
+ "@types/node": "^22.15.33",
103
+ "@types/react": "^18.3.23",
100
104
  "@types/react-dom": "^18.3.7",
101
105
  "@types/uuid": "^10.0.0",
102
- "@vitejs/plugin-react-swc": "^3.9.0",
103
- "@vitest/ui": "^3.1.2",
104
- "ag-grid-community": "^33.2.4",
105
- "ag-grid-react": "^33.2.4",
106
+ "@vitejs/plugin-react-swc": "^3.10.2",
107
+ "@vitest/ui": "^3.2.4",
108
+ "ag-grid-community": "^33.3.2",
109
+ "ag-grid-react": "^33.3.2",
106
110
  "babel-preset-react-app": "^10.1.0",
107
- "chromatic": "^11.28.2",
111
+ "chromatic": "^11.29.0",
108
112
  "css-loader": "^7.1.2",
109
113
  "jsdom": "^26.1.0",
110
114
  "lodash-es": "^4.17.21",
111
115
  "mkdirp": "^3.0.1",
112
116
  "npm-run-all": "^4.1.5",
113
- "postcss": "^8.5.3",
117
+ "postcss": "^8.5.6",
114
118
  "postcss-loader": "^8.1.1",
115
119
  "postcss-scss": "^4.0.9",
116
120
  "react": ">=18",
117
121
  "react-app-polyfill": "^3.0.0",
118
122
  "react-dom": "^18.3.1",
119
- "rollup": "^4.40.1",
123
+ "rollup": "^4.44.0",
120
124
  "rollup-plugin-copy": "^3.5.0",
121
125
  "rollup-plugin-peer-deps-external": "^2.2.4",
122
126
  "rollup-plugin-postcss": "^4.0.2",
123
127
  "rollup-plugin-typescript2": "^0.36.0",
124
- "sass": "^1.87.0",
128
+ "sass": "^1.89.2",
125
129
  "sass-loader": "^16.0.5",
126
- "semantic-release": "^24.2.3",
130
+ "semantic-release": "^24.2.5",
127
131
  "storybook": "^8.6.12",
128
132
  "storybook-css-modules-preset": "^1.1.1",
129
133
  "style-loader": "^4.0.0",
130
134
  "typescript": "^5.8.3",
131
- "vite": "^6.3.4",
135
+ "vite": "^6.3.5",
132
136
  "vite-plugin-html": "^3.2.2",
133
137
  "vite-tsconfig-paths": "^5.1.4",
134
- "vitest": "^3.1.2",
138
+ "vitest": "^3.2.4",
135
139
  "vitest-canvas-mock": "^0.3.3"
136
140
  },
137
141
  "babel": {
@@ -365,7 +365,9 @@ export const MenuList = ({
365
365
 
366
366
  // Matt added window resize observer
367
367
  useEffect(() => {
368
- if (typeof ResizeObserver !== 'function' || reposition === 'initial') return;
368
+ if (typeof ResizeObserver !== 'function' || reposition === 'initial' || !menuRef.current) {
369
+ return;
370
+ }
369
371
 
370
372
  const callback = debounce(() => {
371
373
  const { width, height } = menuRef.current.ownerDocument.body.getBoundingClientRect();
@@ -418,7 +420,7 @@ export const MenuList = ({
418
420
  const id = setTimeout(
419
421
  () => {
420
422
  // If focus has already been set to a children element, don't set focus on menu or item
421
- if (!menuRef.current.contains(document.activeElement)) {
423
+ if (menuRef.current && !menuRef.current.contains(document.activeElement)) {
422
424
  // Handle popover portal focus
423
425
  const popupElement = focusRef.current?.nextSibling;
424
426
  if (!focusFirstInput(popupElement)) {
@@ -98,7 +98,7 @@ const _selectRow = async (
98
98
  const row = await findRow(rowId, within);
99
99
  const isSelected = row.className.includes('ag-row-selected');
100
100
  if (select === 'toggle' || (select === 'select' && !isSelected) || (select === 'deselect' && isSelected)) {
101
- const cell = await findCell(rowId, 'selection', within);
101
+ const cell = await findCell(rowId, 'ag-Grid-SelectionColumn', within);
102
102
  await user.click(cell);
103
103
  await waitFor(async () => {
104
104
  const row = await findRow(rowId, within);
@@ -99,7 +99,7 @@ const _selectRow = async (
99
99
  const row = await findRow(rowId, within);
100
100
  const isSelected = row.className.includes('ag-row-selected');
101
101
  if (select === 'toggle' || (select === 'select' && !isSelected) || (select === 'deselect' && isSelected)) {
102
- const cell = await findCell(rowId, 'selection', within);
102
+ const cell = await findCell(rowId, 'ag-Grid-SelectionColumn', within);
103
103
  await user.click(cell);
104
104
  await waitFor(async () => {
105
105
  const row = await findRow(rowId, within);