@mui/lab 5.0.0-alpha.119 → 5.0.0-alpha.121
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/CHANGELOG.md +209 -2
- package/Masonry/Masonry.js +2 -2
- package/index.js +1 -1
- package/legacy/Masonry/Masonry.js +2 -2
- package/legacy/index.js +1 -1
- package/modern/Masonry/Masonry.js +2 -2
- package/modern/index.js +1 -1
- package/node/Masonry/Masonry.js +2 -2
- package/node/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,212 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.11.11
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.11.10..master -->
|
|
6
|
+
|
|
7
|
+
_Feb 27, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 📚 added API documentation for the slots in MUI Base and Joy UI by @hbjORbj, for e.g. [SliderUnstyled API](https://mui.com/base/api/slider-unstyled/#slots)
|
|
12
|
+
- other 🐛 bug fixes and 📚 documentation improvements.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.11.11`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 30 -->[Autocomplete] Adds `sx` prop to `ListboxProps` type (#36243) @sai6855
|
|
17
|
+
- ​<!-- 11 -->[material] Add global CSS class for `readOnly` prop (#32822) @jrparish
|
|
18
|
+
- ​<!-- 10 -->[Stack][material] Use createStack from the system (#33795) @mnajdova
|
|
19
|
+
- ​<!-- 07 -->[Select] Fix incorrect selecting of first element (#36024) @michaldudak
|
|
20
|
+
- ​<!-- 06 -->[Slider] Miscellaneous improvements (#35941) @ZeeshanTamboli
|
|
21
|
+
- ​<!-- 05 -->[Slider] Remove unnecessary `data-focusvisible` attribute (#36091) @ZeeshanTamboli
|
|
22
|
+
- ​<!-- 04 -->[Snackbar] Replace component logic with `useSnackbar` hook (#36272) @ZeeshanTamboli
|
|
23
|
+
- ​<!-- 03 -->[TextField] Fix floating label position (#36246) @oliviertassinari
|
|
24
|
+
- ​<!-- 13 -->[TextField] Fix floating label position (#36288) @oliviertassinari
|
|
25
|
+
|
|
26
|
+
### `@mui/base@5.0.0-alpha.119`
|
|
27
|
+
|
|
28
|
+
#### Breaking changes
|
|
29
|
+
|
|
30
|
+
- ​<!-- 29 -->[base] Remove `classes` prop from the Base components that have it (#36157) @hbjORbj
|
|
31
|
+
These are the components affected by this change: ModalUnstyled, SliderUnstyled, TablePaginationUnstyled and TablePaginationActionsUnstyled.
|
|
32
|
+
You can replace the `classes` prop by providing the class name prop directly to the prop via `slotProps`. Below is an example of how the migration should look like:
|
|
33
|
+
|
|
34
|
+
```diff
|
|
35
|
+
<TablePaginationUnstyled
|
|
36
|
+
- classes={{ toolbar: 'toolbar-classname', menuItem: 'menuItem-classname' }}
|
|
37
|
+
+ slotProps={{ toolbar: { className: 'toolbar-classname' }, menuItem: { className: 'menuItem-classname'}}}
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- ​<!-- 28 -->[base] Move hooks to their own directories (#36235) @hbjORbj
|
|
42
|
+
Base hooks (e.g., `useSelect`) are no longer exported from `{Component}Unstyled` directories and instead they have their own directories.
|
|
43
|
+
Below is an example of how the migration should look like:
|
|
44
|
+
|
|
45
|
+
```diff
|
|
46
|
+
-import { useBadge } from '@mui/base/BadgeUnstyled';
|
|
47
|
+
+import useBadge from '@mui/base/useBadge';
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#base-hook-imports) to help with the migration.
|
|
51
|
+
|
|
52
|
+
#### Changes
|
|
53
|
+
|
|
54
|
+
- ​<!-- 31 -->[Autocomplete] Add docs interface for the hook (#36242) @HeVictor
|
|
55
|
+
- ​<!-- 09 -->[MenuUnstyled] Remove extra useMemo (#36265) @ivp-dev
|
|
56
|
+
- ​<!-- 31 -->[base] Export all slot prop overrides interfaces (#36323) @michaldudak
|
|
57
|
+
|
|
58
|
+
### `@mui/codemod@5.11.11`
|
|
59
|
+
|
|
60
|
+
- ​<!-- 35 -->[base] Codemod for hook directory migration (#36295) @hbjORbj
|
|
61
|
+
|
|
62
|
+
### `@mui/joy@5.0.0-alpha.69`
|
|
63
|
+
|
|
64
|
+
- ​<!-- 15 -->[Joy] Able to remove default tokens from theme types (#36006) @siriwatknp
|
|
65
|
+
- ​<!-- 14 -->[Joy] Fix modal dialog overflow viewport (#36103) @siriwatknp
|
|
66
|
+
- ​<!-- 13 -->[Joy] Select popup should have max-height (#36156) @Vivek-Prajapatii
|
|
67
|
+
- ​<!-- 12 -->[Joy] Fix `ListDivider` to change semantic based on `List` (#36266) @siriwatknp
|
|
68
|
+
|
|
69
|
+
### Docs
|
|
70
|
+
|
|
71
|
+
- ​<!-- 27 -->[docs][base] List slots in API documentation (#36104) @hbjORbj
|
|
72
|
+
- ​<!-- 26 -->[docs] Add missing sandbox adapter deps resolving (#36291) @LukasTy
|
|
73
|
+
- ​<!-- 25 -->[docs] Allow to pass navigation bar banner from outside (#36299) @MBilalShafi
|
|
74
|
+
- ​<!-- 24 -->[docs] Fix code on the Working with Tailwind CSS guide (#36090) @mnajdova
|
|
75
|
+
- ​<!-- 23 -->[docs] Remove See Slots Section text from Material UI slots description (#36284) @hbjORbj
|
|
76
|
+
- ​<!-- 22 -->[docs] Fix emotion warning `:first-child` (#36263) @siriwatknp
|
|
77
|
+
- ​<!-- 21 -->[docs][joy] Improve the descriptions of props in API docs (#36307) @hbjORbj
|
|
78
|
+
- ​<!-- 20 -->[docs][joy] List slots in API documentation (#36271) @hbjORbj
|
|
79
|
+
- ​<!-- 19 -->[docs][joy] Build API documentations (#36008) @hbjORbj
|
|
80
|
+
- ​<!-- 18 -->[examples] Update Next.js examples to use built-in font (#36315) @Juneezee
|
|
81
|
+
- ​<!-- 17 -->[examples] Update curl link in `material-next-ts-v4-v5-migration` example README (#36321) @ZeeshanTamboli
|
|
82
|
+
- ​<!-- 16 -->[examples] Convert Next.js \_document class components to function components (#36109) @ossan-engineer
|
|
83
|
+
|
|
84
|
+
### Core
|
|
85
|
+
|
|
86
|
+
- ​<!-- 08 -->[Rating] Add a comment in Rating component to use `readOnly` state class (#36357) @ZeeshanTamboli
|
|
87
|
+
- ​<!-- 02 -->[website] Fix broken links to role levels (#36333) @oliviertassinari
|
|
88
|
+
- ​<!-- 01 -->[website] Sync gold sponsors (#36312) @oliviertassinari
|
|
89
|
+
|
|
90
|
+
All contributors of this release in alphabetical order: @hbjORbj, @HeVictor, @ivp-dev, @jrparish, @Juneezee, @LukasTy, @MBilalShafi, @michaldudak, @mnajdova, @oliviertassinari, @ossan-engineer, @sai6855, @siriwatknp, @Vivek-Prajapatii, @ZeeshanTamboli
|
|
91
|
+
|
|
92
|
+
## 5.11.10
|
|
93
|
+
|
|
94
|
+
<!-- generated comparing v5.11.9..master -->
|
|
95
|
+
|
|
96
|
+
_Feb 20, 2023_
|
|
97
|
+
|
|
98
|
+
A big thanks to the 11 contributors who made this release possible.
|
|
99
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
100
|
+
|
|
101
|
+
### `@mui/material@5.11.10`
|
|
102
|
+
|
|
103
|
+
- ​<!-- 22 -->[Avatar] Fix ownerState usage with styleOverrides when fallback is used (#36228) @sai6855
|
|
104
|
+
- ​<!-- 21 -->[Badge][material] Replace `BadgeUnstyled` with `useBadge` hook (#36158) @hbjORbj
|
|
105
|
+
- ​<!-- 03 -->[Switch] Fix DOM warning when `type` isn't `checkbox` or `radio` (#36170) @dani-mp
|
|
106
|
+
- ​<!-- 02 -->[TextareaAutosize] Convert code to TypeScript (#35862) @sai6855
|
|
107
|
+
- ​<!-- 01 -->[useMediaQuery] Fix behavior of noSsr with React 18 (#36056) @oliviertassinari
|
|
108
|
+
|
|
109
|
+
### `@mui/joy@5.0.0-alpha.68`
|
|
110
|
+
|
|
111
|
+
- ​<!-- 05 -->[Joy] Add `zIndex` to theme (#36236) @siriwatknp
|
|
112
|
+
- ​<!-- 04 -->[Joy] Remove transition from all components (#35952) @hbjORbj
|
|
113
|
+
|
|
114
|
+
### Docs
|
|
115
|
+
|
|
116
|
+
- ​<!-- 20 -->[docs][base] Fix base Input demos for Safari (#36213) @mj12albert
|
|
117
|
+
- ​<!-- 16 -->[docs] Fix 301 links @oliviertassinari
|
|
118
|
+
- ​<!-- 15 -->[docs] Fix modal transition demos (#36137) @oliviertassinari
|
|
119
|
+
- ​<!-- 14 -->[docs] Update links to pt examples (#36237) @Aleff13
|
|
120
|
+
- ​<!-- 13 -->[docs] Update custom Typography variants example (#36185) @mj12albert
|
|
121
|
+
- ​<!-- 12 -->[docs] Change markdown numbering syntax (#36187) @mj12albert
|
|
122
|
+
- ​<!-- 11 -->[docs] Fix switch alignment in `Disabled tree items` section in Tree View docs (#36217) @PunitSoniME
|
|
123
|
+
- ​<!-- 10 -->[docs] Standardize example names (#36112) @samuelsycamore
|
|
124
|
+
- ​<!-- 09 -->[docs] Fix typo @oliviertassinari
|
|
125
|
+
- ​<!-- 08 -->[docs] Fix markdown table alignments (#36136) @oliviertassinari
|
|
126
|
+
- ​<!-- 07 -->[docs] Small color tweaks to the docs search bar (#36160) @danilo-leal
|
|
127
|
+
- ​<!-- 06 -->[docs][joy] Update class name prefixes in the `Anatomy` section (#36210) @ZeeshanTamboli
|
|
128
|
+
|
|
129
|
+
### Core
|
|
130
|
+
|
|
131
|
+
- ​<!-- 19 -->[core] Migrate nprogress to emotion (#36181) @siriwatknp
|
|
132
|
+
- ​<!-- 18 -->[core] Enforce namespace import for ReactDOM (#36208) @mj12albert
|
|
133
|
+
- ​<!-- 17 -->[core] Fix deploy preview links (#36203) @siriwatknp
|
|
134
|
+
|
|
135
|
+
All contributors of this release in alphabetical order: @Aleff13, @dani-mp, @danilo-leal, @hbjORbj, @mj12albert, @oliviertassinari, @PunitSoniME, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
136
|
+
|
|
137
|
+
## 5.11.9
|
|
138
|
+
|
|
139
|
+
<!-- generated comparing v5.11.8..master -->
|
|
140
|
+
|
|
141
|
+
_Feb 14, 2023_
|
|
142
|
+
|
|
143
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
144
|
+
|
|
145
|
+
- 🐛 @rangoo94, @sai6855, and @michaldudak fixed a couple of bugs in the Autocomplete component (#36116, #35640, #36076, #36088)
|
|
146
|
+
- many other 🐛 bug fixes and 📚 documentation improvements
|
|
147
|
+
|
|
148
|
+
### `@mui/material@5.11.9`
|
|
149
|
+
|
|
150
|
+
- [AppBar] Fix joinVars() not handling undefined (#36128) @donaldnevermore
|
|
151
|
+
- [Autocomplete] Fix tag removal regression (#36116) @michaldudak
|
|
152
|
+
- [Autocomplete] Correct padding of filled Autocomplete (#35640) @michaldudak
|
|
153
|
+
- [Grid][Stack] classNames prefixed with Mui (#36167) @sai6855
|
|
154
|
+
|
|
155
|
+
### `@mui/styled-engine@5.11.9`
|
|
156
|
+
|
|
157
|
+
- [StyledEngineProvider] Fix issue with cache not being defined (#36162) @mnajdova
|
|
158
|
+
|
|
159
|
+
### `@mui/joy@5.0.0-alpha.67`
|
|
160
|
+
|
|
161
|
+
- [Joy] Add order dashboard template (#36081) @siriwatknp
|
|
162
|
+
- [Joy] Remove classes prop from the components that have it (#36159) @hbjORbj
|
|
163
|
+
- [Joy] Miscellaneous fixes (#36163) @siriwatknp
|
|
164
|
+
|
|
165
|
+
### `@mui/base@5.0.0-alpha.118`
|
|
166
|
+
|
|
167
|
+
- [base] Override the types of `slotProps` per slot (#35964) @hbjORbj
|
|
168
|
+
- [Select][base] Prevent unnecessary rerendering of Select options (#35946) @michaldudak
|
|
169
|
+
- [Select][base] Update the generated docs (#36183) @michaldudak
|
|
170
|
+
- [useAutocomplete] Pass only valid values for the getOptionLabel prop (#36088) @rangoo94
|
|
171
|
+
- [useAutocomplete] Fix `useAutocomplete` disabled prop not disabling the input (#36076) @sai6855
|
|
172
|
+
- [useInput] Add return value interface (#36036) @Shorifpatwary
|
|
173
|
+
- [UseTabPanel] Add explicit return type (#36053) @Shorifpatwary
|
|
174
|
+
- [useTabsList] Add explicit return type (#36048) @sai6855
|
|
175
|
+
- [Tab] Add explicit return type to useTab (#36046) @sai6855
|
|
176
|
+
|
|
177
|
+
### `@mui/material-next@6.0.0-alpha.75`
|
|
178
|
+
|
|
179
|
+
- [Material You] Use `md` as a CSS var prefix (#36177) @siriwatknp
|
|
180
|
+
|
|
181
|
+
### Docs
|
|
182
|
+
|
|
183
|
+
- [docs] Fix the prop type regression on the API pages (#36168) @mnajdova
|
|
184
|
+
- [docs] Fix virtualized table column resizing (#36066) @petyosi
|
|
185
|
+
- [docs] Fix react-spring demos (#36023) @oliviertassinari
|
|
186
|
+
- [docs] Fix classname mismatch on Joy docs (#36127) @siriwatknp
|
|
187
|
+
- [docs] Fix typo in the released version of @mui/styled-engine (#36121) @m4theushw
|
|
188
|
+
- [docs] Fix demos showing TypeScript instead of JavaScript (#35850) @mj12albert
|
|
189
|
+
- [docs] Update release instructions (#36113) @mj12albert
|
|
190
|
+
- [docs] Rename `v6-alpha` to `v6-next` in navigation (#36102) @LukasTy
|
|
191
|
+
- [docs] Revise Joy UI "Input" page (#35970) @LadyBluenotes
|
|
192
|
+
- [docs] Revise Joy UI "Typography" page (#35868) @LadyBluenotes
|
|
193
|
+
|
|
194
|
+
### Examples
|
|
195
|
+
|
|
196
|
+
- [examples][vitejs] Load Roboto font (#35678) @oliv37
|
|
197
|
+
|
|
198
|
+
### Core
|
|
199
|
+
|
|
200
|
+
- [blog] Fix the look and feel of the media description (#36069) @oliviertassinari
|
|
201
|
+
- [core] Add default preview url (#36118) @siriwatknp
|
|
202
|
+
- [core] Migrate all the internals exported by `tests/utils/index.js` to TypeScript (#35382) @flaviendelangle
|
|
203
|
+
- [core] Convert the waterfall module to an internal package (#35323) @michaldudak
|
|
204
|
+
- [website] Fix homepage MD theme demo (#36027) @oliviertassinari
|
|
205
|
+
- [website] Revise the Lead Designer role job ad (#35912) @danilo-leal
|
|
206
|
+
- [POC] Add deploy preview to PR body (#35995) @siriwatknp
|
|
207
|
+
|
|
208
|
+
All contributors of this release in alphabetical order: @danilo-leal, @donaldnevermore, @flaviendelangle, @hbjORbj, @LadyBluenotes, @LukasTy, @m4theushw, @michaldudak, @mj12albert, @mnajdova, @oliv37, @oliviertassinari, @petyosi, @rangoo94, @sai6855, @Shorifpatwary, @siriwatknp
|
|
209
|
+
|
|
3
210
|
## 5.11.8
|
|
4
211
|
|
|
5
212
|
<!-- generated comparing v5.11.7..master -->
|
|
@@ -25,7 +232,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
|
|
|
25
232
|
|
|
26
233
|
- ​<!-- 05 -->[System] Fix nested grid v2 (#35994) @siriwatknp
|
|
27
234
|
|
|
28
|
-
### `@mui/styled-engine@5.11.
|
|
235
|
+
### `@mui/styled-engine@5.11.8`
|
|
29
236
|
|
|
30
237
|
- ​<!-- 06 -->[styled-engine] Create cache only if `document` is available (#36001) @m4theushw
|
|
31
238
|
|
|
@@ -3441,7 +3648,7 @@ _Feb 1, 2022_
|
|
|
3441
3648
|
|
|
3442
3649
|
A big thanks to the 22 contributors who made this release possible. Here are some highlights ✨:
|
|
3443
3650
|
|
|
3444
|
-
- 🛠 @goncalovf added an example project using [
|
|
3651
|
+
- 🛠 @goncalovf added an example project using [Material UI with Vite.js](https://github.com/mui/material-ui/tree/master/examples/material-vite) (#28241)
|
|
3445
3652
|
- Number of 🐛 bug fixes and 📚 documentation improvements.
|
|
3446
3653
|
|
|
3447
3654
|
### `@mui/material@5.4.0`
|
package/Masonry/Masonry.js
CHANGED
|
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["children", "className", "component", "columns", "spacing", "defaultColumns", "defaultHeight", "defaultSpacing"];
|
|
4
4
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
5
|
-
import
|
|
5
|
+
import * as ReactDOM from 'react-dom';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
|
|
8
8
|
import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
@@ -215,7 +215,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
215
215
|
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
216
216
|
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
217
217
|
// Related issue - https://github.com/facebook/react/issues/24331
|
|
218
|
-
flushSync(() => {
|
|
218
|
+
ReactDOM.flushSync(() => {
|
|
219
219
|
setMaxColumnHeight(Math.max(...columnHeights));
|
|
220
220
|
setNumberOfLineBreaks(currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0);
|
|
221
221
|
});
|
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
6
|
-
import
|
|
6
|
+
import * as ReactDOM from 'react-dom';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
|
|
9
9
|
import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
@@ -218,7 +218,7 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
218
218
|
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
219
219
|
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
220
220
|
// Related issue - https://github.com/facebook/react/issues/24331
|
|
221
|
-
flushSync(function () {
|
|
221
|
+
ReactDOM.flushSync(function () {
|
|
222
222
|
setMaxColumnHeight(Math.max.apply(Math, _toConsumableArray(columnHeights)));
|
|
223
223
|
setNumberOfLineBreaks(currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0);
|
|
224
224
|
});
|
package/legacy/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["children", "className", "component", "columns", "spacing", "defaultColumns", "defaultHeight", "defaultSpacing"];
|
|
4
4
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
5
|
-
import
|
|
5
|
+
import * as ReactDOM from 'react-dom';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import { createUnarySpacing, getValue, handleBreakpoints, unstable_resolveBreakpointValues as resolveBreakpointValues } from '@mui/system';
|
|
8
8
|
import { deepmerge, unstable_useForkRef as useForkRef } from '@mui/utils';
|
|
@@ -215,7 +215,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
215
215
|
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
216
216
|
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
217
217
|
// Related issue - https://github.com/facebook/react/issues/24331
|
|
218
|
-
flushSync(() => {
|
|
218
|
+
ReactDOM.flushSync(() => {
|
|
219
219
|
setMaxColumnHeight(Math.max(...columnHeights));
|
|
220
220
|
setNumberOfLineBreaks(currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0);
|
|
221
221
|
});
|
package/modern/index.js
CHANGED
package/node/Masonry/Masonry.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.parseToNumber = exports.getStyle = exports.default = void 0;
|
|
|
8
8
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _base = require("@mui/base");
|
|
11
|
-
var
|
|
11
|
+
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
12
12
|
var _styles = require("@mui/material/styles");
|
|
13
13
|
var _system = require("@mui/system");
|
|
14
14
|
var _utils = require("@mui/utils");
|
|
@@ -225,7 +225,7 @@ const Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
225
225
|
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
226
226
|
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
227
227
|
// Related issue - https://github.com/facebook/react/issues/24331
|
|
228
|
-
|
|
228
|
+
ReactDOM.flushSync(() => {
|
|
229
229
|
setMaxColumnHeight(Math.max(...columnHeights));
|
|
230
230
|
setNumberOfLineBreaks(currentNumberOfColumns > 0 ? currentNumberOfColumns - 1 : 0);
|
|
231
231
|
});
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/lab",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.121",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Laboratory for new MUI modules.",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@babel/runtime": "^7.
|
|
51
|
-
"@mui/base": "5.0.0-alpha.
|
|
52
|
-
"@mui/system": "^5.11.
|
|
50
|
+
"@babel/runtime": "^7.21.0",
|
|
51
|
+
"@mui/base": "5.0.0-alpha.119",
|
|
52
|
+
"@mui/system": "^5.11.11",
|
|
53
53
|
"@mui/types": "^7.2.3",
|
|
54
|
-
"@mui/utils": "^5.11.
|
|
54
|
+
"@mui/utils": "^5.11.11",
|
|
55
55
|
"clsx": "^1.2.1",
|
|
56
56
|
"prop-types": "^15.8.1",
|
|
57
57
|
"react-is": "^18.2.0"
|