@mui/x-tree-view 7.0.0-beta.3 → 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 (98) hide show
  1. package/CHANGELOG.md +226 -15
  2. package/TreeItem/TreeItem.js +1 -1
  3. package/TreeItem/TreeItem.types.d.ts +1 -1
  4. package/index.js +1 -1
  5. package/internals/TreeViewProvider/DescendantProvider.js +1 -11
  6. package/modern/TreeItem/TreeItem.js +1 -1
  7. package/modern/index.js +1 -1
  8. package/modern/internals/TreeViewProvider/DescendantProvider.js +1 -11
  9. package/node/TreeItem/TreeItem.js +1 -1
  10. package/node/index.js +1 -1
  11. package/node/internals/TreeViewProvider/DescendantProvider.js +1 -10
  12. package/package.json +1 -1
  13. package/legacy/RichTreeView/RichTreeView.js +0 -255
  14. package/legacy/RichTreeView/RichTreeView.types.js +0 -1
  15. package/legacy/RichTreeView/index.js +0 -3
  16. package/legacy/RichTreeView/richTreeViewClasses.js +0 -6
  17. package/legacy/SimpleTreeView/SimpleTreeView.js +0 -190
  18. package/legacy/SimpleTreeView/SimpleTreeView.plugins.js +0 -6
  19. package/legacy/SimpleTreeView/SimpleTreeView.types.js +0 -1
  20. package/legacy/SimpleTreeView/index.js +0 -3
  21. package/legacy/SimpleTreeView/simpleTreeViewClasses.js +0 -6
  22. package/legacy/TreeItem/TreeItem.js +0 -360
  23. package/legacy/TreeItem/TreeItem.types.js +0 -1
  24. package/legacy/TreeItem/TreeItemContent.js +0 -95
  25. package/legacy/TreeItem/index.js +0 -4
  26. package/legacy/TreeItem/treeItemClasses.js +0 -6
  27. package/legacy/TreeItem/useTreeItemState.js +0 -58
  28. package/legacy/TreeView/TreeView.js +0 -165
  29. package/legacy/TreeView/TreeView.types.js +0 -1
  30. package/legacy/TreeView/index.js +0 -3
  31. package/legacy/TreeView/treeViewClasses.js +0 -6
  32. package/legacy/icons/icons.js +0 -9
  33. package/legacy/icons/index.js +0 -1
  34. package/legacy/index.js +0 -14
  35. package/legacy/internals/TreeViewProvider/DescendantProvider.js +0 -199
  36. package/legacy/internals/TreeViewProvider/TreeViewContext.js +0 -8
  37. package/legacy/internals/TreeViewProvider/TreeViewProvider.js +0 -19
  38. package/legacy/internals/TreeViewProvider/TreeViewProvider.types.js +0 -1
  39. package/legacy/internals/TreeViewProvider/index.js +0 -1
  40. package/legacy/internals/TreeViewProvider/useTreeViewContext.js +0 -9
  41. package/legacy/internals/corePlugins/corePlugins.js +0 -6
  42. package/legacy/internals/corePlugins/index.js +0 -1
  43. package/legacy/internals/corePlugins/useTreeViewInstanceEvents/index.js +0 -1
  44. package/legacy/internals/corePlugins/useTreeViewInstanceEvents/useTreeViewInstanceEvents.js +0 -40
  45. package/legacy/internals/corePlugins/useTreeViewInstanceEvents/useTreeViewInstanceEvents.types.js +0 -1
  46. package/legacy/internals/hooks/useInstanceEventHandler.js +0 -87
  47. package/legacy/internals/hooks/useLazyRef.js +0 -11
  48. package/legacy/internals/hooks/useOnMount.js +0 -7
  49. package/legacy/internals/hooks/useTimeout.js +0 -38
  50. package/legacy/internals/index.js +0 -4
  51. package/legacy/internals/models/MuiCancellableEvent.js +0 -1
  52. package/legacy/internals/models/events.js +0 -1
  53. package/legacy/internals/models/helpers.js +0 -1
  54. package/legacy/internals/models/index.js +0 -3
  55. package/legacy/internals/models/plugin.js +0 -1
  56. package/legacy/internals/models/treeView.js +0 -1
  57. package/legacy/internals/plugins/defaultPlugins.js +0 -10
  58. package/legacy/internals/plugins/index.js +0 -1
  59. package/legacy/internals/plugins/useTreeViewExpansion/index.js +0 -1
  60. package/legacy/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.js +0 -81
  61. package/legacy/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.types.js +0 -1
  62. package/legacy/internals/plugins/useTreeViewFocus/index.js +0 -1
  63. package/legacy/internals/plugins/useTreeViewFocus/useTreeViewFocus.js +0 -103
  64. package/legacy/internals/plugins/useTreeViewFocus/useTreeViewFocus.types.js +0 -1
  65. package/legacy/internals/plugins/useTreeViewIcons/index.js +0 -1
  66. package/legacy/internals/plugins/useTreeViewIcons/useTreeViewIcons.js +0 -21
  67. package/legacy/internals/plugins/useTreeViewIcons/useTreeViewIcons.types.js +0 -1
  68. package/legacy/internals/plugins/useTreeViewId/index.js +0 -1
  69. package/legacy/internals/plugins/useTreeViewId/useTreeViewId.js +0 -24
  70. package/legacy/internals/plugins/useTreeViewId/useTreeViewId.types.js +0 -1
  71. package/legacy/internals/plugins/useTreeViewJSXNodes/index.js +0 -1
  72. package/legacy/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +0 -130
  73. package/legacy/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.types.js +0 -1
  74. package/legacy/internals/plugins/useTreeViewKeyboardNavigation/index.js +0 -1
  75. package/legacy/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.js +0 -284
  76. package/legacy/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.types.js +0 -1
  77. package/legacy/internals/plugins/useTreeViewNodes/index.js +0 -1
  78. package/legacy/internals/plugins/useTreeViewNodes/useTreeViewNodes.js +0 -161
  79. package/legacy/internals/plugins/useTreeViewNodes/useTreeViewNodes.types.js +0 -1
  80. package/legacy/internals/plugins/useTreeViewSelection/index.js +0 -1
  81. package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.js +0 -219
  82. package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.types.js +0 -1
  83. package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.utils.js +0 -55
  84. package/legacy/internals/useTreeView/index.js +0 -1
  85. package/legacy/internals/useTreeView/useTreeView.js +0 -111
  86. package/legacy/internals/useTreeView/useTreeView.types.js +0 -1
  87. package/legacy/internals/useTreeView/useTreeView.utils.js +0 -46
  88. package/legacy/internals/useTreeView/useTreeViewModels.js +0 -75
  89. package/legacy/internals/utils/EventManager.js +0 -91
  90. package/legacy/internals/utils/cleanupTracking/CleanupTracking.js +0 -1
  91. package/legacy/internals/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
  92. package/legacy/internals/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
  93. package/legacy/internals/utils/extractPluginParamsFromProps.js +0 -36
  94. package/legacy/internals/utils/publishTreeViewEvent.js +0 -3
  95. package/legacy/internals/utils/warning.js +0 -15
  96. package/legacy/models/index.js +0 -1
  97. package/legacy/models/items.js +0 -1
  98. package/legacy/themeAugmentation/index.js +0 -3
package/CHANGELOG.md CHANGED
@@ -3,7 +3,157 @@
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.3
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
7
157
 
8
158
  _Feb 16, 2024_
9
159
 
@@ -67,7 +217,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
67
217
  - [core] Sort prop asc (#12033) @oliviertassinari
68
218
  - [core] Bump monorepo (#12055) @alexfauquette
69
219
 
70
- ## v7.0.0-beta.2
220
+ ## 7.0.0-beta.2
71
221
 
72
222
  _Feb 9, 2024_
73
223
 
@@ -336,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
336
486
 
337
487
  _Jan 26, 2024_
338
488
 
339
- We are glad to announce MUI X v7 beta!
489
+ We are glad to announce MUI X v7 beta!
340
490
  This version has several improvements, bug fixes, and exciting features 🎉.
341
491
  We want to offer a big thanks to the 7 contributors who made this release possible ✨:
342
492
 
@@ -1353,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1353
1503
 
1354
1504
  - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
1355
1505
 
1356
- - 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.
1357
1507
 
1358
1508
  - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
1359
1509
 
@@ -2202,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2202
2352
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2203
2353
  - [license] Correctly throw errors (#10924) @oliviertassinari
2204
2354
 
2205
- ## 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
2206
2417
 
2207
2418
  _Feb 9, 2024_
2208
2419
 
@@ -2214,7 +2425,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2214
2425
 
2215
2426
  ### Data Grid
2216
2427
 
2217
- #### `@mui/x-data-grid@v6.19.4`
2428
+ #### `@mui/x-data-grid@6.19.4`
2218
2429
 
2219
2430
  - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2220
2431
  - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
@@ -2222,28 +2433,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2222
2433
  - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2223
2434
  - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2224
2435
 
2225
- #### `@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')
2226
2437
 
2227
- Same changes as in `@mui/x-data-grid@v6.19.4`.
2438
+ Same changes as in `@mui/x-data-grid@6.19.4`.
2228
2439
 
2229
- #### `@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')
2230
2441
 
2231
- 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:
2232
2443
 
2233
2444
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2234
2445
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2235
2446
 
2236
2447
  ### Date Pickers
2237
2448
 
2238
- #### `@mui/x-date-pickers@v6.19.4`
2449
+ #### `@mui/x-date-pickers@6.19.4`
2239
2450
 
2240
2451
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2241
2452
 
2242
- #### `@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')
2243
2454
 
2244
- Same changes as in `@mui/x-date-pickers@v6.19.4`.
2455
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
2245
2456
 
2246
- ### Charts / `@mui/x-charts@v6.19.4`
2457
+ ### Charts / `@mui/x-charts@6.19.4`
2247
2458
 
2248
2459
  - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2249
2460
  - [charts] Allow series ids to be numbers (#11960) @alexfauquette
@@ -2304,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
2304
2515
  - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2305
2516
  - [docs] Improve Support page (#11556) @oliviertassinari
2306
2517
  - [docs] Sync support page with core @oliviertassinari
2307
- - [docs] These API don't exist in MUI X v6 @oliviertassinari
2518
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2308
2519
  - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2309
2520
 
2310
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
  /**
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.3
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
@@ -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
  };
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.3
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
@@ -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
  };
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.0.0-beta.3
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-tree-view",
3
- "version": "7.0.0-beta.3",
3
+ "version": "7.0.0-beta.4",
4
4
  "description": "The community edition of the tree view components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",