@mui/x-tree-view 7.0.0-beta.2 → 7.0.0-beta.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.
Files changed (104) hide show
  1. package/CHANGELOG.md +298 -23
  2. package/TreeItem/TreeItem.js +1 -1
  3. package/TreeItem/TreeItem.types.d.ts +1 -1
  4. package/TreeItem/useTreeItemState.js +2 -2
  5. package/index.js +1 -1
  6. package/internals/TreeViewProvider/DescendantProvider.js +1 -11
  7. package/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +2 -2
  8. package/modern/TreeItem/TreeItem.js +1 -1
  9. package/modern/TreeItem/useTreeItemState.js +2 -2
  10. package/modern/index.js +1 -1
  11. package/modern/internals/TreeViewProvider/DescendantProvider.js +1 -11
  12. package/modern/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +2 -2
  13. package/node/TreeItem/TreeItem.js +1 -1
  14. package/node/TreeItem/useTreeItemState.js +2 -2
  15. package/node/index.js +1 -1
  16. package/node/internals/TreeViewProvider/DescendantProvider.js +1 -10
  17. package/node/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +2 -2
  18. package/package.json +4 -4
  19. package/legacy/RichTreeView/RichTreeView.js +0 -255
  20. package/legacy/RichTreeView/RichTreeView.types.js +0 -1
  21. package/legacy/RichTreeView/index.js +0 -3
  22. package/legacy/RichTreeView/richTreeViewClasses.js +0 -6
  23. package/legacy/SimpleTreeView/SimpleTreeView.js +0 -190
  24. package/legacy/SimpleTreeView/SimpleTreeView.plugins.js +0 -6
  25. package/legacy/SimpleTreeView/SimpleTreeView.types.js +0 -1
  26. package/legacy/SimpleTreeView/index.js +0 -3
  27. package/legacy/SimpleTreeView/simpleTreeViewClasses.js +0 -6
  28. package/legacy/TreeItem/TreeItem.js +0 -360
  29. package/legacy/TreeItem/TreeItem.types.js +0 -1
  30. package/legacy/TreeItem/TreeItemContent.js +0 -95
  31. package/legacy/TreeItem/index.js +0 -4
  32. package/legacy/TreeItem/treeItemClasses.js +0 -6
  33. package/legacy/TreeItem/useTreeItemState.js +0 -58
  34. package/legacy/TreeView/TreeView.js +0 -165
  35. package/legacy/TreeView/TreeView.types.js +0 -1
  36. package/legacy/TreeView/index.js +0 -3
  37. package/legacy/TreeView/treeViewClasses.js +0 -6
  38. package/legacy/icons/icons.js +0 -9
  39. package/legacy/icons/index.js +0 -1
  40. package/legacy/index.js +0 -14
  41. package/legacy/internals/TreeViewProvider/DescendantProvider.js +0 -199
  42. package/legacy/internals/TreeViewProvider/TreeViewContext.js +0 -8
  43. package/legacy/internals/TreeViewProvider/TreeViewProvider.js +0 -19
  44. package/legacy/internals/TreeViewProvider/TreeViewProvider.types.js +0 -1
  45. package/legacy/internals/TreeViewProvider/index.js +0 -1
  46. package/legacy/internals/TreeViewProvider/useTreeViewContext.js +0 -9
  47. package/legacy/internals/corePlugins/corePlugins.js +0 -6
  48. package/legacy/internals/corePlugins/index.js +0 -1
  49. package/legacy/internals/corePlugins/useTreeViewInstanceEvents/index.js +0 -1
  50. package/legacy/internals/corePlugins/useTreeViewInstanceEvents/useTreeViewInstanceEvents.js +0 -40
  51. package/legacy/internals/corePlugins/useTreeViewInstanceEvents/useTreeViewInstanceEvents.types.js +0 -1
  52. package/legacy/internals/hooks/useInstanceEventHandler.js +0 -87
  53. package/legacy/internals/hooks/useLazyRef.js +0 -11
  54. package/legacy/internals/hooks/useOnMount.js +0 -7
  55. package/legacy/internals/hooks/useTimeout.js +0 -38
  56. package/legacy/internals/index.js +0 -4
  57. package/legacy/internals/models/MuiCancellableEvent.js +0 -1
  58. package/legacy/internals/models/events.js +0 -1
  59. package/legacy/internals/models/helpers.js +0 -1
  60. package/legacy/internals/models/index.js +0 -3
  61. package/legacy/internals/models/plugin.js +0 -1
  62. package/legacy/internals/models/treeView.js +0 -1
  63. package/legacy/internals/plugins/defaultPlugins.js +0 -10
  64. package/legacy/internals/plugins/index.js +0 -1
  65. package/legacy/internals/plugins/useTreeViewExpansion/index.js +0 -1
  66. package/legacy/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.js +0 -81
  67. package/legacy/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.types.js +0 -1
  68. package/legacy/internals/plugins/useTreeViewFocus/index.js +0 -1
  69. package/legacy/internals/plugins/useTreeViewFocus/useTreeViewFocus.js +0 -103
  70. package/legacy/internals/plugins/useTreeViewFocus/useTreeViewFocus.types.js +0 -1
  71. package/legacy/internals/plugins/useTreeViewIcons/index.js +0 -1
  72. package/legacy/internals/plugins/useTreeViewIcons/useTreeViewIcons.js +0 -21
  73. package/legacy/internals/plugins/useTreeViewIcons/useTreeViewIcons.types.js +0 -1
  74. package/legacy/internals/plugins/useTreeViewId/index.js +0 -1
  75. package/legacy/internals/plugins/useTreeViewId/useTreeViewId.js +0 -24
  76. package/legacy/internals/plugins/useTreeViewId/useTreeViewId.types.js +0 -1
  77. package/legacy/internals/plugins/useTreeViewJSXNodes/index.js +0 -1
  78. package/legacy/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +0 -130
  79. package/legacy/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.types.js +0 -1
  80. package/legacy/internals/plugins/useTreeViewKeyboardNavigation/index.js +0 -1
  81. package/legacy/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.js +0 -284
  82. package/legacy/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.types.js +0 -1
  83. package/legacy/internals/plugins/useTreeViewNodes/index.js +0 -1
  84. package/legacy/internals/plugins/useTreeViewNodes/useTreeViewNodes.js +0 -161
  85. package/legacy/internals/plugins/useTreeViewNodes/useTreeViewNodes.types.js +0 -1
  86. package/legacy/internals/plugins/useTreeViewSelection/index.js +0 -1
  87. package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.js +0 -219
  88. package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.types.js +0 -1
  89. package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.utils.js +0 -55
  90. package/legacy/internals/useTreeView/index.js +0 -1
  91. package/legacy/internals/useTreeView/useTreeView.js +0 -111
  92. package/legacy/internals/useTreeView/useTreeView.types.js +0 -1
  93. package/legacy/internals/useTreeView/useTreeView.utils.js +0 -46
  94. package/legacy/internals/useTreeView/useTreeViewModels.js +0 -75
  95. package/legacy/internals/utils/EventManager.js +0 -91
  96. package/legacy/internals/utils/cleanupTracking/CleanupTracking.js +0 -1
  97. package/legacy/internals/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
  98. package/legacy/internals/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
  99. package/legacy/internals/utils/extractPluginParamsFromProps.js +0 -36
  100. package/legacy/internals/utils/publishTreeViewEvent.js +0 -3
  101. package/legacy/internals/utils/warning.js +0 -15
  102. package/legacy/models/index.js +0 -1
  103. package/legacy/models/items.js +0 -1
  104. package/legacy/themeAugmentation/index.js +0 -3
package/CHANGELOG.md CHANGED
@@ -3,7 +3,221 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## v7.0.0-beta.2
6
+ ## 7.0.0-beta.4
7
+
8
+ _Feb 23, 2024_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
13
+ - 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
14
+ - 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Breaking changes
19
+
20
+ - The support for IE11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The cell inner wrapper `.MuiDataGrid-cellContent` has been removed, use `.MuiDataGrid-cell` to style the cells.
27
+
28
+ #### `@mui/x-data-grid@7.0.0-beta.4`
29
+
30
+ - [DataGrid] Simplify cell DOM structure (#12013) @romgrk
31
+ - [DataGrid] Fix values labels in `is any of` filter operator (#11939) @gitstart
32
+
33
+ #### `@mui/x-data-grid-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.4`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.0.0-beta.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
40
+
41
+ ### Date Pickers
42
+
43
+ #### Breaking changes
44
+
45
+ - The `selectedSections` prop no longer accepts start and end indexes.
46
+ When selecting several — but not all — sections, the field components were not behaving correctly, you can now only select one or all sections:
47
+
48
+ ```diff
49
+ <DateField
50
+ - selectedSections={{ startIndex: 0, endIndex: 0 }}
51
+ + selectedSections={0}
52
+
53
+ // If the field has 3 sections
54
+ - selectedSections={{ startIndex: 0, endIndex: 2 }}
55
+ + selectedSections="all"
56
+ />
57
+ ```
58
+
59
+ - The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
60
+ This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
61
+
62
+ When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
63
+
64
+ ```diff
65
+ function MyCustomTextField(props) {
66
+ const {
67
+ + // Should be ignored
68
+ + enableAccessibleFieldDOMStructure,
69
+ // ... rest of the props you are using
70
+ } = props;
71
+
72
+ return ( /* Some UI to edit the date */ )
73
+ }
74
+
75
+ function MyCustomField(props) {
76
+ const fieldResponse = useDateField<Dayjs, false, typeof textFieldProps>({
77
+ ...props,
78
+ + // If you only support one DOM structure, we advise you to hardcode it here to avoid unwanted switches in your application
79
+ + enableAccessibleFieldDOMStructure: false,
80
+ });
81
+
82
+ return <MyCustomTextField ref={ref} {...fieldResponse} />;
83
+ }
84
+
85
+ function App() {
86
+ return <DatePicker slots={{ field: MyCustomField }} />;
87
+ }
88
+ ```
89
+
90
+ - The following internal types were exported by mistake and have been removed from the public API:
91
+
92
+ - `UseDateFieldDefaultizedProps`
93
+ - `UseTimeFieldDefaultizedProps`
94
+ - `UseDateTimeFieldDefaultizedProps`
95
+ - `UseSingleInputDateRangeFieldComponentProps`
96
+ - `UseSingleInputTimeRangeFieldComponentProps`
97
+ - `UseSingleInputDateTimeRangeFieldComponentProps`
98
+
99
+ #### `@mui/x-date-pickers@7.0.0-beta.4`
100
+
101
+ - [fields] Add a11y support to multi-HTML field (#12173) @LukasTy
102
+ - [fields] Use the `PickersTextField` component in the fields (#10649) @flaviendelangle
103
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12096) @LukasTy
104
+
105
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
106
+
107
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.4`.
108
+
109
+ ### Charts / `@mui/x-charts@7.0.0-beta.4`
110
+
111
+ #### Breaking changes
112
+
113
+ These components are no longer exported from `@mui/x-charts`:
114
+
115
+ - `CartesianContextProvider`
116
+ - `DrawingProvider`
117
+
118
+ #### `@mui/x-charts@7.0.0-beta.4`
119
+
120
+ - [charts] Don't display text if no value is provided (#12127) @alexfauquette
121
+ - [charts] Remove export of context providers (#12123) @oliviertassinari
122
+
123
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
124
+
125
+ - [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
126
+
127
+ ### Docs
128
+
129
+ - [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
130
+ - [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
131
+ - [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
132
+ - [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
133
+ - [docs] Fix "Licensing" page link (#12156) @LukasTy
134
+ - [docs] Fix the Treemap illustration (#12185) @danilo-leal
135
+ - [docs] Fix error raised by Grammarly on the page @oliviertassinari
136
+ - [docs] Improve performance on Charts entry point @oliviertassinari
137
+ - [docs] Link to React Transition Group with https @oliviertassinari
138
+ - [docs] Move Heatmap to `pro` plan (#12047) @alexfauquette
139
+ - [docs] Reduce number of Vale errors @oliviertassinari
140
+ - [docs] Remove default value set to `undefined` (#12128) @alexfauquette
141
+
142
+ ### Core
143
+
144
+ - [core] Fix docs link check (#12135) @LukasTy
145
+ - [core] Fix missing context display names (#12124) @oliviertassinari
146
+ - [core] Fix shortcuts when Caps Lock enabled (#12121) @oliviertassinari
147
+ - [core] Remove IE 11 compat logic (#12119) @oliviertassinari
148
+ - [core] Simplify key utils (#12120) @oliviertassinari
149
+ - [core] Use the @mui/internal-scripts package (#12142) @michaldudak
150
+ - [all components] Remove legacy IE 11 bundle (#12151) @flaviendelangle
151
+ - [code-infra] Bump monorepo (#11880) @Janpot
152
+ - [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#12095) @Janpot
153
+ - [docs-infra] Remove randomized API page layout (#11876) @alexfauquette
154
+ - [test] Create local wrapper over `describeConformance` (#12130) @michaldudak
155
+
156
+ ## 7.0.0-beta.3
157
+
158
+ _Feb 16, 2024_
159
+
160
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
161
+
162
+ - 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
163
+
164
+ <img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
165
+
166
+ - 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
167
+
168
+ <img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
169
+
170
+ - 🐞 Bugfixes
171
+
172
+ - 📚 Documentation improvements
173
+
174
+ ### Data Grid
175
+
176
+ #### Breaking changes
177
+
178
+ - The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
179
+
180
+ #### `@mui/x-data-grid@7.0.0-beta.3`
181
+
182
+ - [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
183
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
184
+ - [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
185
+
186
+ #### `@mui/x-data-grid-pro@7.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
187
+
188
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
189
+
190
+ #### `@mui/x-data-grid-premium@7.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
191
+
192
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
193
+
194
+ ### Charts / `@mui/x-charts@7.0.0-beta.3`
195
+
196
+ - [charts] Add Gauge component (#11996) @alexfauquette
197
+ - [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
198
+
199
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
200
+
201
+ - [TreeView] Remove instance existence checks (#12066) @flaviendelangle
202
+
203
+ ### Docs
204
+
205
+ - [docs] Complete charts API pages (#12038) @alexfauquette
206
+ - [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
207
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
208
+ - [docs] Fix Tree space to match the reset of the docs @oliviertassinari
209
+ - [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
210
+ - [docs] Fix redirection @oliviertassinari
211
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
212
+ - [docs] Removed `focused` prop from demo (#12092) @michelengelen
213
+
214
+ ### Core
215
+
216
+ - [core] Fix CodeSandbox CI template @oliviertassinari
217
+ - [core] Sort prop asc (#12033) @oliviertassinari
218
+ - [core] Bump monorepo (#12055) @alexfauquette
219
+
220
+ ## 7.0.0-beta.2
7
221
 
8
222
  _Feb 9, 2024_
9
223
 
@@ -17,7 +231,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
17
231
 
18
232
  ### Data Grid
19
233
 
20
- #### `@mui/x-data-grid@v7.0.0-beta.2`
234
+ #### `@mui/x-data-grid@7.0.0-beta.2`
21
235
 
22
236
  - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
23
237
  - [DataGrid] Add slot typings (#11795) @romgrk
@@ -27,35 +241,35 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
27
241
  - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
28
242
  - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
29
243
 
30
- #### `@mui/x-data-grid-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
244
+ #### `@mui/x-data-grid-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
245
 
32
246
  Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
33
247
 
34
248
  #### `@mui/x-data-grid-premium@v7.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
249
 
36
- Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
250
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
37
251
 
38
252
  - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
39
253
  - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
40
254
 
41
255
  ### Date Pickers
42
256
 
43
- #### `@mui/x-date-pickers@v7.0.0-beta.2`
257
+ #### `@mui/x-date-pickers@7.0.0-beta.2`
44
258
 
45
259
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
46
260
  - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
47
261
 
48
- #### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
262
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
49
263
 
50
- Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
264
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
51
265
 
52
- ### Charts / `@mui/x-charts@v7.0.0-beta.2`
266
+ ### Charts / `@mui/x-charts@7.0.0-beta.2`
53
267
 
54
268
  - [charts] Add `reverse` property to axes (#11899) @alexfauquette
55
269
  - [charts] Allow series ids to be numbers (#11941) @alexfauquette
56
270
  - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
57
271
 
58
- ### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
272
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
59
273
 
60
274
  - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
61
275
  - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
@@ -71,7 +285,7 @@ Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
71
285
  +import { LicenseInfo } from '@mui/x-license';
72
286
  ```
73
287
 
74
- `@mui/x-license@v7.0.0-beta.2`
288
+ `@mui/x-license@7.0.0-beta.2`
75
289
 
76
290
  - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
77
291
 
@@ -272,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
272
486
 
273
487
  _Jan 26, 2024_
274
488
 
275
- We are glad to announce MUI X v7 beta!
489
+ We are glad to announce MUI X v7 beta!
276
490
  This version has several improvements, bug fixes, and exciting features 🎉.
277
491
  We want to offer a big thanks to the 7 contributors who made this release possible ✨:
278
492
 
@@ -1289,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1289
1503
 
1290
1504
  - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
1291
1505
 
1292
- - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
1506
+ - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
1293
1507
 
1294
1508
  - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
1295
1509
 
@@ -2138,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2138
2352
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2139
2353
  - [license] Correctly throw errors (#10924) @oliviertassinari
2140
2354
 
2141
- ## v6.19.4
2355
+ ## 6.19.5
2356
+
2357
+ _Feb 23, 2024_
2358
+
2359
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2360
+
2361
+ - 🐞 Bugfixes
2362
+ - 📚 Documentation improvements
2363
+
2364
+ ### Data Grid
2365
+
2366
+ #### `@mui/x-data-grid@6.19.5`
2367
+
2368
+ - [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
2369
+
2370
+ #### `@mui/x-data-grid-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2371
+
2372
+ Same changes as in `@mui/x-data-grid@6.19.5`.
2373
+
2374
+ #### `@mui/x-data-grid-premium@6.19.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2375
+
2376
+ Same changes as in `@mui/x-data-grid-pro@6.19.5`.
2377
+
2378
+ ### Date Pickers
2379
+
2380
+ #### `@mui/x-date-pickers@6.19.5`
2381
+
2382
+ - [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
2383
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
2384
+
2385
+ #### `@mui/x-date-pickers-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2386
+
2387
+ Same changes as in `@mui/x-date-pickers@6.19.5`.
2388
+
2389
+ ### Charts / `@mui/x-charts@6.19.5`
2390
+
2391
+ - [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
2392
+
2393
+ ### Docs
2394
+
2395
+ - [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
2396
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
2397
+ - [docs] Fix 301 to Material UI @oliviertassinari
2398
+ - [docs] Fix 301 to Material UI @oliviertassinari
2399
+ - [docs] Fix 404 links to translation source @oliviertassinari
2400
+ - [docs] Fix dead link to translations @oliviertassinari
2401
+ - [docs] Fix the Treemap illustration (#12189) @danilo-leal
2402
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
2403
+ - [docs] Improve performance on Charts entry point @oliviertassinari
2404
+ - [docs] Move Heatmap to pro (#12170) @alexfauquette
2405
+ - [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
2406
+ - [docs] Removed `focused` prop from demo (#12126) @michelengelen
2407
+ - [docs] Add missing Heatmap pro icon @oliviertassinari
2408
+ - [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
2409
+ - [docs] Avoid use of shorthand (#12009) @oliviertassinari
2410
+
2411
+ ### Core
2412
+
2413
+ - [core] Fix CI @oliviertassinari
2414
+ - [core] Fix docs link check (#12137) @LukasTy
2415
+
2416
+ ## 6.19.4
2142
2417
 
2143
2418
  _Feb 9, 2024_
2144
2419
 
@@ -2150,7 +2425,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2150
2425
 
2151
2426
  ### Data Grid
2152
2427
 
2153
- #### `@mui/x-data-grid@v6.19.4`
2428
+ #### `@mui/x-data-grid@6.19.4`
2154
2429
 
2155
2430
  - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2156
2431
  - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
@@ -2158,28 +2433,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2158
2433
  - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2159
2434
  - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2160
2435
 
2161
- #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2436
+ #### `@mui/x-data-grid-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2162
2437
 
2163
- Same changes as in `@mui/x-data-grid@v6.19.4`.
2438
+ Same changes as in `@mui/x-data-grid@6.19.4`.
2164
2439
 
2165
- #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2440
+ #### `@mui/x-data-grid-premium@6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2166
2441
 
2167
- Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2442
+ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
2168
2443
 
2169
2444
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2170
2445
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2171
2446
 
2172
2447
  ### Date Pickers
2173
2448
 
2174
- #### `@mui/x-date-pickers@v6.19.4`
2449
+ #### `@mui/x-date-pickers@6.19.4`
2175
2450
 
2176
2451
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2177
2452
 
2178
- #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2453
+ #### `@mui/x-date-pickers-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2179
2454
 
2180
- Same changes as in `@mui/x-date-pickers@v6.19.4`.
2455
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
2181
2456
 
2182
- ### Charts / `@mui/x-charts@v6.19.4`
2457
+ ### Charts / `@mui/x-charts@6.19.4`
2183
2458
 
2184
2459
  - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2185
2460
  - [charts] Allow series ids to be numbers (#11960) @alexfauquette
@@ -2240,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
2240
2515
  - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2241
2516
  - [docs] Improve Support page (#11556) @oliviertassinari
2242
2517
  - [docs] Sync support page with core @oliviertassinari
2243
- - [docs] These API don't exist in MUI X v6 @oliviertassinari
2518
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2244
2519
  - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2245
2520
 
2246
2521
  ## 6.19.2
@@ -361,7 +361,7 @@ TreeItem.propTypes = {
361
361
  TransitionComponent: PropTypes.elementType,
362
362
  /**
363
363
  * Props applied to the transition element.
364
- * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
364
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
365
365
  */
366
366
  TransitionProps: PropTypes.object
367
367
  };
@@ -85,7 +85,7 @@ export interface TreeItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>,
85
85
  TransitionComponent?: React.JSXElementConstructor<TransitionProps>;
86
86
  /**
87
87
  * Props applied to the transition element.
88
- * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
88
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
89
89
  */
90
90
  TransitionProps?: TransitionProps;
91
91
  /**
@@ -12,7 +12,7 @@ export function useTreeItemState(nodeId) {
12
12
  const selected = instance.isNodeSelected(nodeId);
13
13
  const disabled = instance.isNodeDisabled(nodeId);
14
14
  const handleExpansion = event => {
15
- if (instance && !disabled) {
15
+ if (!disabled) {
16
16
  if (!focused) {
17
17
  instance.focusNode(event, nodeId);
18
18
  }
@@ -25,7 +25,7 @@ export function useTreeItemState(nodeId) {
25
25
  }
26
26
  };
27
27
  const handleSelection = event => {
28
- if (instance && !disabled) {
28
+ if (!disabled) {
29
29
  if (!focused) {
30
30
  instance.focusNode(event, nodeId);
31
31
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.2
2
+ * @mui/x-tree-view v7.0.0-beta.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,17 +8,7 @@ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
8
8
  /** Credit: https://github.com/reach/reach-ui/blob/86a046f54d53b6420e392b3fa56dd991d9d4e458/packages/descendants/README.md
9
9
  * Modified slightly to suit our purposes.
10
10
  */
11
-
12
- // To replace with .findIndex() once we stop IE11 support.
13
11
  import { jsx as _jsx } from "react/jsx-runtime";
14
- function findIndex(array, comp) {
15
- for (let i = 0; i < array.length; i += 1) {
16
- if (comp(array[i])) {
17
- return i;
18
- }
19
- }
20
- return -1;
21
- }
22
12
  function binaryFindElement(array, element) {
23
13
  let start = 0;
24
14
  let end = array.length - 1;
@@ -84,7 +74,7 @@ export function useDescendant(descendant) {
84
74
  // index on the following render, and we will re-register descendants
85
75
  // so that everything is up-to-date before the user interacts with a
86
76
  // collection.
87
- const index = findIndex(descendants, item => item.element === descendant.element);
77
+ const index = descendants.findIndex(item => item.element === descendant.element);
88
78
  const previousDescendants = usePrevious(descendants);
89
79
 
90
80
  // We also need to re-register descendants any time ANY of the other
@@ -89,7 +89,7 @@ const useTreeViewJSXNodesItemPlugin = ({
89
89
  } = useDescendant(descendant);
90
90
  React.useEffect(() => {
91
91
  // On the first render a node's index will be -1. We want to wait for the real index.
92
- if (instance && index !== -1) {
92
+ if (index !== -1) {
93
93
  instance.insertJSXNode({
94
94
  id: nodeId,
95
95
  idAttribute: id,
@@ -103,7 +103,7 @@ const useTreeViewJSXNodesItemPlugin = ({
103
103
  return undefined;
104
104
  }, [instance, parentId, index, nodeId, expandable, disabled, id]);
105
105
  React.useEffect(() => {
106
- if (instance && label) {
106
+ if (label) {
107
107
  var _contentRef$current$t, _contentRef$current;
108
108
  return instance.mapFirstCharFromJSX(nodeId, ((_contentRef$current$t = (_contentRef$current = contentRef.current) == null ? void 0 : _contentRef$current.textContent) != null ? _contentRef$current$t : '').substring(0, 1).toLowerCase());
109
109
  }
@@ -360,7 +360,7 @@ TreeItem.propTypes = {
360
360
  TransitionComponent: PropTypes.elementType,
361
361
  /**
362
362
  * Props applied to the transition element.
363
- * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
363
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
364
364
  */
365
365
  TransitionProps: PropTypes.object
366
366
  };
@@ -12,7 +12,7 @@ export function useTreeItemState(nodeId) {
12
12
  const selected = instance.isNodeSelected(nodeId);
13
13
  const disabled = instance.isNodeDisabled(nodeId);
14
14
  const handleExpansion = event => {
15
- if (instance && !disabled) {
15
+ if (!disabled) {
16
16
  if (!focused) {
17
17
  instance.focusNode(event, nodeId);
18
18
  }
@@ -25,7 +25,7 @@ export function useTreeItemState(nodeId) {
25
25
  }
26
26
  };
27
27
  const handleSelection = event => {
28
- if (instance && !disabled) {
28
+ if (!disabled) {
29
29
  if (!focused) {
30
30
  instance.focusNode(event, nodeId);
31
31
  }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.2
2
+ * @mui/x-tree-view v7.0.0-beta.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -8,17 +8,7 @@ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
8
8
  /** Credit: https://github.com/reach/reach-ui/blob/86a046f54d53b6420e392b3fa56dd991d9d4e458/packages/descendants/README.md
9
9
  * Modified slightly to suit our purposes.
10
10
  */
11
-
12
- // To replace with .findIndex() once we stop IE11 support.
13
11
  import { jsx as _jsx } from "react/jsx-runtime";
14
- function findIndex(array, comp) {
15
- for (let i = 0; i < array.length; i += 1) {
16
- if (comp(array[i])) {
17
- return i;
18
- }
19
- }
20
- return -1;
21
- }
22
12
  function binaryFindElement(array, element) {
23
13
  let start = 0;
24
14
  let end = array.length - 1;
@@ -84,7 +74,7 @@ export function useDescendant(descendant) {
84
74
  // index on the following render, and we will re-register descendants
85
75
  // so that everything is up-to-date before the user interacts with a
86
76
  // collection.
87
- const index = findIndex(descendants, item => item.element === descendant.element);
77
+ const index = descendants.findIndex(item => item.element === descendant.element);
88
78
  const previousDescendants = usePrevious(descendants);
89
79
 
90
80
  // We also need to re-register descendants any time ANY of the other
@@ -89,7 +89,7 @@ const useTreeViewJSXNodesItemPlugin = ({
89
89
  } = useDescendant(descendant);
90
90
  React.useEffect(() => {
91
91
  // On the first render a node's index will be -1. We want to wait for the real index.
92
- if (instance && index !== -1) {
92
+ if (index !== -1) {
93
93
  instance.insertJSXNode({
94
94
  id: nodeId,
95
95
  idAttribute: id,
@@ -103,7 +103,7 @@ const useTreeViewJSXNodesItemPlugin = ({
103
103
  return undefined;
104
104
  }, [instance, parentId, index, nodeId, expandable, disabled, id]);
105
105
  React.useEffect(() => {
106
- if (instance && label) {
106
+ if (label) {
107
107
  return instance.mapFirstCharFromJSX(nodeId, (contentRef.current?.textContent ?? '').substring(0, 1).toLowerCase());
108
108
  }
109
109
  return undefined;
@@ -368,7 +368,7 @@ TreeItem.propTypes = {
368
368
  TransitionComponent: _propTypes.default.elementType,
369
369
  /**
370
370
  * Props applied to the transition element.
371
- * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
371
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
372
372
  */
373
373
  TransitionProps: _propTypes.default.object
374
374
  };
@@ -18,7 +18,7 @@ function useTreeItemState(nodeId) {
18
18
  const selected = instance.isNodeSelected(nodeId);
19
19
  const disabled = instance.isNodeDisabled(nodeId);
20
20
  const handleExpansion = event => {
21
- if (instance && !disabled) {
21
+ if (!disabled) {
22
22
  if (!focused) {
23
23
  instance.focusNode(event, nodeId);
24
24
  }
@@ -31,7 +31,7 @@ function useTreeItemState(nodeId) {
31
31
  }
32
32
  };
33
33
  const handleSelection = event => {
34
- if (instance && !disabled) {
34
+ if (!disabled) {
35
35
  if (!focused) {
36
36
  instance.focusNode(event, nodeId);
37
37
  }
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.2
2
+ * @mui/x-tree-view v7.0.0-beta.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -16,17 +16,8 @@ const _excluded = ["element"];
16
16
  /** Credit: https://github.com/reach/reach-ui/blob/86a046f54d53b6420e392b3fa56dd991d9d4e458/packages/descendants/README.md
17
17
  * Modified slightly to suit our purposes.
18
18
  */
19
- // To replace with .findIndex() once we stop IE11 support.
20
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
21
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
22
- function findIndex(array, comp) {
23
- for (let i = 0; i < array.length; i += 1) {
24
- if (comp(array[i])) {
25
- return i;
26
- }
27
- }
28
- return -1;
29
- }
30
21
  function binaryFindElement(array, element) {
31
22
  let start = 0;
32
23
  let end = array.length - 1;
@@ -92,7 +83,7 @@ function useDescendant(descendant) {
92
83
  // index on the following render, and we will re-register descendants
93
84
  // so that everything is up-to-date before the user interacts with a
94
85
  // collection.
95
- const index = findIndex(descendants, item => item.element === descendant.element);
86
+ const index = descendants.findIndex(item => item.element === descendant.element);
96
87
  const previousDescendants = usePrevious(descendants);
97
88
 
98
89
  // We also need to re-register descendants any time ANY of the other