@mui/x-virtualizer 0.1.3 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,127 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.11.0
9
+
10
+ _Aug 29, 2025_
11
+
12
+ We'd like to extend a big thank you to the 19 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 📊 Add new `SankeyChart`
15
+
16
+ <img height="300" alt="Screenshot 2025-07-24 at 12 54 33" src="https://github.com/user-attachments/assets/d77bcec1-044b-48c6-b37d-d7b74793b91c" />
17
+
18
+ - 🚀 Data Grid row grouping now supports row reordering
19
+
20
+ See the [Drag-and-drop group reordering](https://mui.com/x/react-data-grid/row-grouping/#drag-and-drop-group-reordering) section for more details.
21
+
22
+ - 📚 Documentation improvements
23
+
24
+ Special thanks go out to the community members for their valuable contributions:
25
+ @dwrth, @lauri865, @Webini
26
+
27
+ The following are all team members who have contributed to this release:
28
+ @alexfauquette, @arminmeh, @brijeshb42, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @mapache-salvaje, @MBilalShafi, @michelengelen, @noraleonte, @oliviertassinari, @rita-codes, @romgrk, @sai6855, @siriwatknp
29
+
30
+ ### Data Grid
31
+
32
+ #### `@mui/x-data-grid@8.11.0`
33
+
34
+ - [DataGrid] Fix focused column header scroll jump (#19323) @lauri865
35
+ - [DataGrid] Bring `columnUnsortedIcon` slot back (#19268) @arminmeh
36
+ - [DataGrid] Do not add `menu` role to the empty actions menu (#19338) @arminmeh
37
+ - [DataGrid] Fix `columnsManagementRow` style override slot not working (#19097) @dwrth
38
+ - [DataGrid] Fix pagination state synchronization issue (#19290) @MBilalShafi
39
+ - [DataGrid] Fix scroll issue in R17 (#19265) @romgrk
40
+ - [DataGrid] Hide column separator of non-resizable pinned column (#19277) @arminmeh
41
+
42
+ #### `@mui/x-data-grid-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
43
+
44
+ Same changes as in `@mui/x-data-grid@8.11.0`, plus:
45
+
46
+ - [DataGridPro] Fix column menu sort when `multipleColumnsSortingMode="always"` (#19099) @MBilalShafi
47
+ - [DataGridPro] Keep the drop effect if `keepColumnPositionIfDraggedOutside` is enabled (#19372) @arminmeh
48
+
49
+ #### `@mui/x-data-grid-premium@8.11.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
50
+
51
+ Same changes as in `@mui/x-data-grid-pro@8.11.0`, plus:
52
+
53
+ - [DataGridPremium] Fix `valueFormatter` issues when `rowGroupingColumnMode="single"` (#18967) @cherniavskii
54
+ - [DataGridPremium] Reordering support for row grouping (#18251) @MBilalShafi
55
+
56
+ ### Date and Time Pickers
57
+
58
+ #### `@mui/x-date-pickers@8.11.0`
59
+
60
+ - [pickers] Fix Firefox bug causing crash when `startContainer` is a restricted object (#18772) @Webini
61
+ - [pickers] RTL not applied correctly for Calendar Systems examples (works in v7.x but broken in latest version) (#19287) @rita-codes
62
+ - [pickers] Use the locale week day on the Luxon adapter (#19230) @flaviendelangle
63
+ - [pickers] Fix display of placeholder when label is shrunk (#19318) @sai6855
64
+
65
+ #### `@mui/x-date-pickers-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
66
+
67
+ Same changes as in `@mui/x-date-pickers@8.11.0`.
68
+
69
+ ### Charts
70
+
71
+ #### `@mui/x-charts@8.11.0`
72
+
73
+ - [charts] Add `RadarAxis` component to render labels (#19240) @alexfauquette
74
+ - [charts] Handle item identifier with data (#19295) @JCQuintas
75
+ - [charts] Refactor optional chaining for props in PieChart, PieChartPro, and ScatterChartPro components (#19292) @sai6855
76
+ - [charts] Remove unused `fill` and `stroke` properties (#19316) @sai6855
77
+ - [charts] Correct `hideLegend` prop description in docs (#19371) @sai6855
78
+
79
+ #### `@mui/x-charts-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
80
+
81
+ Same changes as in `@mui/x-charts@8.11.0`, plus:
82
+
83
+ - [charts-pro] Add new `SankeyChart` (#18895) @JCQuintas
84
+
85
+ ### Tree View
86
+
87
+ #### `@mui/x-tree-view@8.11.0`
88
+
89
+ - [tree view] Improve the typing of the item's checkbox `slotProps` (#19247) @flaviendelangle
90
+
91
+ #### `@mui/x-tree-view-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
92
+
93
+ Same changes as in `@mui/x-tree-view@8.11.0`.
94
+
95
+ ### Codemod
96
+
97
+ #### `@mui/x-codemod@8.11.0`
98
+
99
+ Internal changes.
100
+
101
+ ### Docs
102
+
103
+ - [docs][TreeView] Fix grammar and spelling mistakes (#19299) @mapache-salvaje
104
+ - [docs][DataGrid] Add pagination number formatting doc with a demo (#19221) @siriwatknp
105
+ - [docs][Charts] Correct some small grammar mistakes (#19297) @mapache-salvaje
106
+ - [docs][DataGrid] Correct grammar mistakes (#19298) @mapache-salvaje
107
+ - [docs][DataGrid] Make it clear that the API key for AI Assistant must be private (#19244) @oliviertassinari
108
+
109
+ ### Core
110
+
111
+ - [code-infra] Remove unnecessary triggers from publish workflow (#19348) @Janpot
112
+ - [code-infra] Set up publishing from GitHub actions (#19264) @Janpot
113
+ - [code-infra] Update renovate, exclude infra packages from MUI group (#19288) @Janpot
114
+ - [internal] Add comment for Codspeed triggers (#19302) @oliviertassinari
115
+ - [internal] Fix changelog generation for infra tags (#19266) @oliviertassinari
116
+ - [internal] Remove dead repository field (#19301) @oliviertassinari
117
+ - [internal] Sentence case @oliviertassinari
118
+ - [internal] Update 8.10.1 changelog with missing changes (#19345) @cherniavskii
119
+ - [support-infra] Improve GitHub Action that check PRs labels (#19303) @oliviertassinari
120
+
121
+ ### Miscellaneous
122
+
123
+ - [infra] Add `synchronize` to workflow triggers (#19342) @michelengelen
124
+ - [infra] Add charts docs folder in codowner (#19317) @alexfauquette
125
+ - [infra] Fix publish workflow complaint (#19346) @JCQuintas
126
+ - [infra] Migrate to use eslint without airbnb config (#19269) @brijeshb42
127
+ - [infra] Simplify release preparation script (#19351) @michelengelen
128
+
8
129
  ## 8.10.2
9
130
 
10
131
  _Aug 20, 2025_
@@ -27,13 +148,13 @@ The following are all team members who have contributed to this release:
27
148
  - [DataGrid] Fix column header sortable classname when using `disableColumnSorting` (#19222) @wilcoschoneveld
28
149
  - [l10n] Improve finnish (fi-FI) locale (#19163) @lauri-heinonen-2025-04
29
150
 
30
- #### `@mui/x-data-grid-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
151
+ #### `@mui/x-data-grid-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
152
 
32
153
  Same changes as in `@mui/x-data-grid@8.10.2`, plus:
33
154
 
34
155
  - [DataGridPro] Fix quick filter not working in List View mode (#19254) @cherniavskii
35
156
 
36
- #### `@mui/x-data-grid-premium@8.10.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
157
+ #### `@mui/x-data-grid-premium@8.10.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
37
158
 
38
159
  Same changes as in `@mui/x-data-grid-pro@8.10.2`.
39
160
 
@@ -43,7 +164,7 @@ Same changes as in `@mui/x-data-grid-pro@8.10.2`.
43
164
 
44
165
  Internal changes.
45
166
 
46
- #### `@mui/x-date-pickers-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
167
+ #### `@mui/x-date-pickers-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
168
 
48
169
  Same changes as in `@mui/x-date-pickers@8.10.2`.
49
170
 
@@ -53,7 +174,7 @@ Same changes as in `@mui/x-date-pickers@8.10.2`.
53
174
 
54
175
  Internal changes.
55
176
 
56
- #### `@mui/x-charts-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
177
+ #### `@mui/x-charts-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
57
178
 
58
179
  Same changes as in `@mui/x-charts@8.10.2`.
59
180
 
@@ -63,7 +184,7 @@ Same changes as in `@mui/x-charts@8.10.2`.
63
184
 
64
185
  - [tree view] Add `aria-hidden` to the Tree Item Checkbox (#19246) @flaviendelangle
65
186
 
66
- #### `@mui/x-tree-view-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
187
+ #### `@mui/x-tree-view-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
67
188
 
68
189
  Same changes as in `@mui/x-tree-view@8.10.2`.
69
190
 
@@ -95,13 +216,13 @@ Internal changes.
95
216
 
96
217
  _Aug 15, 2025_
97
218
 
98
- We'd like to extend a big thank you to the 8 contributors who made this release possible. Here are some highlights ✨:
219
+ We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
99
220
 
100
221
  - 📊 Y-axes can now be grouped by category when using `band` and `point` scales.
101
222
  - 📚 Documentation improvements
102
223
 
103
224
  The following are all team members who have contributed to this release:
104
- @alexfauquette, @bernardobelchior, @Janpot, @JCQuintas, @mnajdova, @oliviertassinari, @prakhargupta1, @romgrk
225
+ @alexfauquette, @bernardobelchior, @Janpot, @JCQuintas, @mnajdova, @oliviertassinari, @prakhargupta1, @romgrk, @brijeshb42, @noraleonte, @rita-codes
105
226
 
106
227
  ### Data Grid
107
228
 
@@ -110,12 +231,14 @@ The following are all team members who have contributed to this release:
110
231
  - [DataGrid] Fix scroll jumping (#19156) @romgrk
111
232
  - [DataGrid] Fix scroll restoration (#19182) @romgrk
112
233
  - [DataGrid] Fix "no row with id" error (#19193) @romgrk
234
+ - [DataGrid] Fix missing rows in the print export window (#19159) @cherniavskii
235
+ - [DataGrid] Fix broken scroll (#19178) @romgrk
113
236
 
114
- #### `@mui/x-data-grid-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
237
+ #### `@mui/x-data-grid-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
115
238
 
116
239
  Same changes as in `@mui/x-data-grid@8.10.1`.
117
240
 
118
- #### `@mui/x-data-grid-premium@8.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
241
+ #### `@mui/x-data-grid-premium@8.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
119
242
 
120
243
  Same changes as in `@mui/x-data-grid-pro@8.10.1`.
121
244
 
@@ -125,7 +248,7 @@ Same changes as in `@mui/x-data-grid-pro@8.10.1`.
125
248
 
126
249
  Internal changes.
127
250
 
128
- #### `@mui/x-date-pickers-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
251
+ #### `@mui/x-date-pickers-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
129
252
 
130
253
  Same changes as in `@mui/x-date-pickers@8.10.0`.
131
254
 
@@ -141,8 +264,10 @@ Same changes as in `@mui/x-date-pickers@8.10.0`.
141
264
  - [charts] Fix default axis highlight for axes without data attribute (#18985) @alexfauquette
142
265
  - [charts] Fix tooltip mark unexpected wrapping in mobile (#19122) @bernardobelchior
143
266
  - [charts] Prevent overflow on charts tooltip (#19123) @bernardobelchior
267
+ - [charts] Add demo for log-scale ticks without labels (#19152) @bernardobelchior
268
+ - [charts] Update animation customization docs (#19185) @bernardobelchior
144
269
 
145
- #### `@mui/x-charts-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
270
+ #### `@mui/x-charts-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
146
271
 
147
272
  Same changes as in `@mui/x-charts@8.10.1`.
148
273
 
@@ -150,9 +275,10 @@ Same changes as in `@mui/x-charts@8.10.1`.
150
275
 
151
276
  #### `@mui/x-tree-view@8.10.1`
152
277
 
153
- Internal changes.
278
+ - [tree view] Fix root not loading from cache on remount (#19088) @noraleonte
279
+ - [tree view] Don't overwrite childrenIds when collapsed to preserve indeterminate state of the parent (#19196) @rita-codes
154
280
 
155
- #### `@mui/x-tree-view-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
281
+ #### `@mui/x-tree-view-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
156
282
 
157
283
  Same changes as in `@mui/x-tree-view@8.10.1`.
158
284
 
@@ -182,6 +308,7 @@ Internal changes.
182
308
  - [code-infra] Fix `fs-extra` removal from `formattedTSDemos` script (#19132) @bernardobelchior
183
309
  - [code-infra] Remove unused code and dependency (#19139) @bernardobelchior
184
310
  - [code-infra] Replace `fs-extra` with `node:fs` where possible (#19127) @bernardobelchior
311
+ - [code-infra] Migrate build command to code-infra (#19006) @brijeshb42
185
312
  - [internal] Edit, keep `lockFileMaintenance` simple @oliviertassinari
186
313
  - [internal] Fix writing style action name @oliviertassinari
187
314
  - [internal] Make it clear that `lockFileMaintenance` is enabled @oliviertassinari
@@ -54,6 +54,7 @@ type RequiredAPI = Dimensions.API & AbstractAPI;
54
54
  declare function useVirtualization(store: Store<BaseState>, params: VirtualizerParams, api: RequiredAPI): {
55
55
  getters: {
56
56
  setPanels: React.Dispatch<React.SetStateAction<Readonly<Map<any, React.ReactNode>>>>;
57
+ getOffsetTop: () => number;
57
58
  getRows: (rowParams?: {
58
59
  rows?: RowEntry[];
59
60
  position?: PinnedRowPosition;
@@ -93,6 +93,7 @@ function useVirtualization(store, params, api) {
93
93
  const renderContext = useStore(store, selectors.renderContext);
94
94
  const enabledForRows = useStore(store, selectors.enabledForRows);
95
95
  const enabledForColumns = useStore(store, selectors.enabledForColumns);
96
+ const rowsMeta = useStore(store, Dimensions.selectors.rowsMeta);
96
97
  const contentHeight = useStore(store, Dimensions.selectors.contentHeight);
97
98
 
98
99
  /*
@@ -215,6 +216,9 @@ function useVirtualization(store, params, api) {
215
216
  onScrollChange?.(scrollPosition.current, nextRenderContext);
216
217
  }
217
218
  });
219
+ const getOffsetTop = () => {
220
+ return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
221
+ };
218
222
 
219
223
  /**
220
224
  * HACK: unstable_rowTree fixes the issue described below, but does it by tightly coupling this
@@ -437,6 +441,7 @@ function useVirtualization(store, params, api) {
437
441
  };
438
442
  const getters = {
439
443
  setPanels,
444
+ getOffsetTop,
440
445
  getRows,
441
446
  getContainerProps: () => ({
442
447
  ref: refSetter('container')
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-virtualizer v0.1.3
2
+ * @mui/x-virtualizer v0.1.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -113,6 +113,7 @@ export declare const useVirtualizer: (params: VirtualizerParams) => {
113
113
  } & {
114
114
  getters: {
115
115
  setPanels: React.Dispatch<React.SetStateAction<Readonly<Map<any, React.ReactNode>>>>;
116
+ getOffsetTop: () => number;
116
117
  getRows: (rowParams?: {
117
118
  rows?: RowEntry[];
118
119
  position?: import("./models/index.js").PinnedRowPosition;
@@ -54,6 +54,7 @@ type RequiredAPI = Dimensions.API & AbstractAPI;
54
54
  declare function useVirtualization(store: Store<BaseState>, params: VirtualizerParams, api: RequiredAPI): {
55
55
  getters: {
56
56
  setPanels: React.Dispatch<React.SetStateAction<Readonly<Map<any, React.ReactNode>>>>;
57
+ getOffsetTop: () => number;
57
58
  getRows: (rowParams?: {
58
59
  rows?: RowEntry[];
59
60
  position?: PinnedRowPosition;
@@ -102,6 +102,7 @@ function useVirtualization(store, params, api) {
102
102
  const renderContext = (0, _store.useStore)(store, selectors.renderContext);
103
103
  const enabledForRows = (0, _store.useStore)(store, selectors.enabledForRows);
104
104
  const enabledForColumns = (0, _store.useStore)(store, selectors.enabledForColumns);
105
+ const rowsMeta = (0, _store.useStore)(store, _dimensions.Dimensions.selectors.rowsMeta);
105
106
  const contentHeight = (0, _store.useStore)(store, _dimensions.Dimensions.selectors.contentHeight);
106
107
 
107
108
  /*
@@ -224,6 +225,9 @@ function useVirtualization(store, params, api) {
224
225
  onScrollChange?.(scrollPosition.current, nextRenderContext);
225
226
  }
226
227
  });
228
+ const getOffsetTop = () => {
229
+ return rowsMeta.positions[renderContext.firstRowIndex] ?? 0;
230
+ };
227
231
 
228
232
  /**
229
233
  * HACK: unstable_rowTree fixes the issue described below, but does it by tightly coupling this
@@ -446,6 +450,7 @@ function useVirtualization(store, params, api) {
446
450
  };
447
451
  const getters = {
448
452
  setPanels,
453
+ getOffsetTop,
449
454
  getRows,
450
455
  getContainerProps: () => ({
451
456
  ref: refSetter('container')
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-virtualizer v0.1.3
2
+ * @mui/x-virtualizer v0.1.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-virtualizer",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI virtualization library",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.28.2",
31
31
  "@mui/utils": "^7.3.1",
32
- "@mui/x-internals": "8.10.2"
32
+ "@mui/x-internals": "8.11.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
@@ -44,33 +44,33 @@
44
44
  "exports": {
45
45
  "./package.json": "./package.json",
46
46
  ".": {
47
- "require": {
48
- "types": "./index.d.ts",
49
- "default": "./index.js"
50
- },
51
47
  "import": {
52
48
  "types": "./esm/index.d.ts",
53
49
  "default": "./esm/index.js"
50
+ },
51
+ "require": {
52
+ "types": "./index.d.ts",
53
+ "default": "./index.js"
54
54
  }
55
55
  },
56
56
  "./useVirtualizer": {
57
- "require": {
58
- "types": "./useVirtualizer.d.ts",
59
- "default": "./useVirtualizer.js"
60
- },
61
57
  "import": {
62
58
  "types": "./esm/useVirtualizer.d.ts",
63
59
  "default": "./esm/useVirtualizer.js"
60
+ },
61
+ "require": {
62
+ "types": "./useVirtualizer.d.ts",
63
+ "default": "./useVirtualizer.js"
64
64
  }
65
65
  },
66
66
  "./*": {
67
- "require": {
68
- "types": "./*/index.d.ts",
69
- "default": "./*/index.js"
70
- },
71
67
  "import": {
72
68
  "types": "./esm/*/index.d.ts",
73
69
  "default": "./esm/*/index.js"
70
+ },
71
+ "require": {
72
+ "types": "./*/index.d.ts",
73
+ "default": "./*/index.js"
74
74
  }
75
75
  },
76
76
  "./esm": null
@@ -113,6 +113,7 @@ export declare const useVirtualizer: (params: VirtualizerParams) => {
113
113
  } & {
114
114
  getters: {
115
115
  setPanels: React.Dispatch<React.SetStateAction<Readonly<Map<any, React.ReactNode>>>>;
116
+ getOffsetTop: () => number;
116
117
  getRows: (rowParams?: {
117
118
  rows?: RowEntry[];
118
119
  position?: import("./models/index.js").PinnedRowPosition;