Skip to content

Commit cb30e09

Browse files
chore(deps): bump mui internal (#17803)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas <[email protected]>
1 parent fad69b0 commit cb30e09

File tree

20 files changed

+88
-91
lines changed

20 files changed

+88
-91
lines changed

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@emotion/react": "^11.14.0",
2626
"@emotion/server": "^11.11.0",
2727
"@emotion/styled": "^11.14.0",
28-
"@mui/docs": "7.0.2",
28+
"@mui/docs": "7.1.0",
2929
"@mui/icons-material": "^7.0.2",
3030
"@mui/joy": "^5.0.0-beta.52",
3131
"@mui/lab": "^7.0.0-beta.11",
@@ -101,7 +101,7 @@
101101
"@babel/plugin-transform-react-constant-elements": "^7.27.1",
102102
"@babel/preset-typescript": "^7.27.1",
103103
"@mui/internal-docs-utils": "^2.0.1",
104-
"@mui/internal-scripts": "^2.0.7",
104+
"@mui/internal-scripts": "^2.0.8",
105105
"@types/chance": "^1.1.6",
106106
"@types/d3-scale": "^4.0.9",
107107
"@types/d3-scale-chromatic": "^3.1.0",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@
8686
"@emotion/styled": "^11.14.0",
8787
"@mui/icons-material": "^7.0.2",
8888
"@mui/internal-babel-plugin-display-name": "github:mui/mui-public#master&path:./packages/babel-plugin-display-name",
89-
"@mui/internal-babel-plugin-resolve-imports": "^2.0.1",
90-
"@mui/internal-markdown": "^2.0.4",
91-
"@mui/internal-test-utils": "^2.0.7",
89+
"@mui/internal-babel-plugin-resolve-imports": "^2.0.2",
90+
"@mui/internal-markdown": "^2.0.5",
91+
"@mui/internal-test-utils": "^2.0.8",
9292
"@mui/material": "^7.0.2",
9393
"@mui/monorepo": "github:mui/material-ui#adb0a76b09080d02f899789266336b297850d86b",
9494
"@mui/utils": "^7.0.2",

packages/x-charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
}
6666
},
6767
"devDependencies": {
68-
"@mui/internal-test-utils": "^2.0.7",
68+
"@mui/internal-test-utils": "^2.0.8",
6969
"@mui/material": "^7.0.2",
7070
"@mui/system": "^7.0.2",
7171
"@types/prop-types": "^15.7.14",

packages/x-charts/src/internals/animation/useAnimate.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('useAnimate', () => {
103103
const { rerender } = render(<TestComponent width={2000} />);
104104

105105
await waitNextFrame();
106-
expect(callCount()).to.be.equal(2);
106+
expect(callCount()).to.be.equal(reactMajor > 18 ? 3 : 2);
107107

108108
const lastIncreasingCall = lastCallWidth();
109109
// Should be animating from 1000 to 2000
@@ -150,7 +150,7 @@ describe('useAnimate', () => {
150150
const { rerender } = render(<TestComponent width={2000} />);
151151

152152
await waitNextFrame();
153-
expect(callCount()).to.be.equal(2);
153+
expect(callCount()).to.be.equal(reactMajor > 18 ? 3 : 2);
154154

155155
// Should be animating from 1000 to 2000
156156
expect(lastCallWidth()).to.be.greaterThan(1000);
@@ -159,7 +159,7 @@ describe('useAnimate', () => {
159159
rerender(<TestComponent width={0} skipAnimation />);
160160

161161
await waitNextFrame();
162-
expect(callCount()).to.be.equal(4);
162+
expect(callCount()).to.be.equal(reactMajor > 18 ? 5 : 4);
163163

164164
// Should jump to 0 immediately after first call
165165
expect(lastCallWidth()).to.equal(0);
@@ -214,21 +214,21 @@ describe('useAnimate', () => {
214214
const { rerender } = render(<TestComponent width={1000} skip={false} />);
215215

216216
await waitNextFrame();
217-
expect(callCount()).to.be.equal(2);
217+
expect(callCount()).to.be.equal(reactMajor > 18 ? 3 : 2);
218218
expect(lastCallWidth()).to.be.greaterThan(0);
219219
expect(lastCallWidth()).to.be.lessThan(1000);
220220

221221
rerender(<TestComponent width={2000} skip />);
222222

223223
// Transition finishes immediately
224224
await waitNextFrame();
225-
expect(callCount()).to.be.equal(4);
225+
expect(callCount()).to.be.equal(reactMajor > 18 ? 5 : 4);
226226
expect(lastCallWidth()).to.equal(2000);
227227

228228
rerender(<TestComponent width={1000} skip={false} />);
229229

230230
await waitNextFrame();
231-
expect(callCount()).to.be.equal(6);
231+
expect(callCount()).to.be.equal(reactMajor > 18 ? 7 : 6);
232232
expect(lastCallWidth()).to.be.lessThan(2000);
233233
expect(lastCallWidth()).to.be.greaterThan(1000);
234234
});

packages/x-data-grid-premium/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
}
7474
},
7575
"devDependencies": {
76-
"@mui/internal-test-utils": "^2.0.7",
76+
"@mui/internal-test-utils": "^2.0.8",
7777
"@mui/material": "^7.0.2",
7878
"@mui/system": "^7.0.2",
7979
"@types/prop-types": "^15.7.14",

packages/x-data-grid-pro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
}
7272
},
7373
"devDependencies": {
74-
"@mui/internal-test-utils": "^2.0.7",
74+
"@mui/internal-test-utils": "^2.0.8",
7575
"@mui/material": "^7.0.2",
7676
"@mui/system": "^7.0.2",
7777
"@types/prop-types": "^15.7.14",

packages/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { expect } from 'chai';
33
import { spy } from 'sinon';
44
import { RefObject } from '@mui/x-internals/types';
55
import { getCell, getColumnValues, getRows, includeRowSelection } from 'test/utils/helperFn';
6-
import { createRenderer, screen, act, reactMajor, fireEvent } from '@mui/internal-test-utils';
6+
import { createRenderer, screen, act, fireEvent } from '@mui/internal-test-utils';
77
import {
88
GridApi,
99
useGridApiRef,
@@ -812,7 +812,7 @@ describe('<DataGridPro /> - Row selection', () => {
812812
/>,
813813
);
814814

815-
expect(onRowSelectionModelChange.callCount).to.equal(reactMajor < 19 ? 2 : 1); // Dev mode calls twice on React 18
815+
expect(onRowSelectionModelChange.callCount).to.equal(2);
816816
expect(onRowSelectionModelChange.lastCall.args[0]).to.deep.equal(
817817
includeRowSelection([2, 3, 4, 5, 6, 7, 1]),
818818
);

packages/x-data-grid-pro/src/tests/rows.DataGridPro.test.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { createRenderer, act, fireEvent, waitFor, reactMajor } from '@mui/internal-test-utils';
2+
import { createRenderer, act, fireEvent, waitFor } from '@mui/internal-test-utils';
33
import { spy } from 'sinon';
44
import { expect } from 'chai';
55
import { vi } from 'vitest';
@@ -399,9 +399,7 @@ describe('<DataGridPro /> - Rows', () => {
399399
await vi.advanceTimersByTimeAsync(10);
400400
});
401401
expect(getColumnValues(0)).to.deep.equal(['Nike', 'Adidas', 'Puma']);
402-
// React 18 seems to render twice
403-
const timerCount = reactMajor < 19 ? 2 : 1;
404-
expect(vi.getTimerCount()).to.equal(timerCount);
402+
expect(vi.getTimerCount()).to.equal(2);
405403

406404
await act(async () => {
407405
await vi.advanceTimersByTimeAsync(100);

packages/x-data-grid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
}
7474
},
7575
"devDependencies": {
76-
"@mui/internal-test-utils": "^2.0.7",
76+
"@mui/internal-test-utils": "^2.0.8",
7777
"@mui/material": "^7.0.2",
7878
"@mui/system": "^7.0.2",
7979
"@mui/types": "^7.4.1",

packages/x-data-grid/src/hooks/utils/useGridEvent.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('useGridEvent', () => {
7272
// unable to unsubscribe the last listener using the cleanup function.
7373
// Since React 19, StrictMode works differently
7474
// https://react.dev/blog/2024/04/25/react-19-upgrade-guide#strict-mode-improvements
75-
const expectedCallCount = reactMajor >= 19 ? 1 : 3;
75+
const expectedCallCount = reactMajor >= 19 ? 2 : 3;
7676
expect(apiRef.current.subscribeEvent.callCount).to.equal(expectedCallCount);
7777

7878
unmount();

0 commit comments

Comments
 (0)