@mui/x-tree-view-pro 7.20.0 → 7.22.0

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
@@ -3,6 +3,175 @@
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
+ ## 7.22.0
7
+
8
+ _Oct 25, 2024_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🛰 Introduce [server-side support for Data Grid row grouping](https://mui.com/x/react-data-grid/server-side-data/row-grouping/)
13
+ - 🐞 Bugfixes
14
+ - 📚 Documentation improvements
15
+ - 🌍 Improve Portuguese (pt-BR) locale on the Data Grid component
16
+
17
+ Special thanks go out to the community contributors who have helped make this release possible:
18
+ @clins1994, @GITPHLAP, @k-rajat19, @kalyan90, @merotosc, @yash49.
19
+ Following are all team members who have contributed to this release:
20
+ @cherniavskii, @flaviendelangle, @LukasTy, @MBilalShafi, @romgrk.
21
+
22
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
23
+
24
+ ### Data Grid
25
+
26
+ #### `@mui/x-data-grid@7.22.0`
27
+
28
+ - [DataGrid] Fix `GridPanelAnchor` positioning (#15022) @k-rajat19
29
+ - [DataGrid] Fix ugly prop-types for the `pageStyle` prop of the `GridPrintExportMenuItem` component (#15015) @flaviendelangle
30
+ - [DataGrid] Fix value type in filter model for number and boolean column type (#14733) @k-rajat19
31
+ - [DataGrid] Focus next row when the focused row is deleted (#15067) @cherniavskii
32
+ - [DataGrid] Remove some usages of `<Box />` and `<Badge />` (#15013) @romgrk
33
+ - [DataGrid] Fix number of rows to display for page size options with negative value (#14890) @kalyan90
34
+ - [l10n] Improve Portuguese (pt-BR) locale (#15021) @k-rajat19
35
+
36
+ #### `@mui/x-data-grid-pro@7.22.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-data-grid@7.22.0`, plus:
39
+
40
+ - [DataGridPro] Fix column pinning layout (#15073) @cherniavskii
41
+
42
+ #### `@mui/x-data-grid-premium@7.22.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
43
+
44
+ Same changes as in `@mui/x-data-grid-pro@7.22.0`, plus:
45
+
46
+ - [DataGridPremium] Server-side data source with row grouping (#15109) @MBilalShafi
47
+
48
+ ### Date and Time Pickers
49
+
50
+ #### `@mui/x-date-pickers@7.22.0`
51
+
52
+ - [pickers] Fix `DateCalendar` timezone management (#15119) @LukasTy
53
+ - [pickers] Fix `DigitalClock` time options on a `DST` switch day (#15092) @LukasTy
54
+
55
+ #### `@mui/x-date-pickers-pro@7.22.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
56
+
57
+ Same changes as in `@mui/x-date-pickers@7.22.0`.
58
+
59
+ ### Charts
60
+
61
+ #### `@mui/x-charts@7.22.0`
62
+
63
+ - [charts] Export data type in `onAxisClick(_, data)` callback (#15038) @clins1994
64
+
65
+ #### `@mui/x-charts-pro@7.0.0-beta.6` [![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-charts@7.22.0`.
68
+
69
+ ### Tree View
70
+
71
+ #### `@mui/x-tree-view@7.22.0`
72
+
73
+ - [TreeView] Make the cancellable event types public (#14992) @flaviendelangle
74
+
75
+ ### Docs
76
+
77
+ - [docs] Fix typo in Tree View docs (#15047) @yash49
78
+
79
+ ### Core
80
+
81
+ - [core] Adjust cherry-pick GH actions (#15101) @LukasTy
82
+ - [core] Update prettier target branch (#15100) @MBilalShafi
83
+ - [core] Update some `default-branch-switch` instances for `v7.x` (#15085) @MBilalShafi
84
+ - [test] Revert to using `fireEvent` instead of `userEvent` (#14927) @LukasTy
85
+
86
+ ## 7.21.0
87
+
88
+ _Oct 17, 2024_
89
+
90
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
91
+
92
+ - 💫 Added [`dataset` prop support for the Scatter Chart component](https://mui.com/x/react-charts/scatter/#using-a-dataset)
93
+ - 🐞 Bugfixes
94
+ - 📚 Documentation improvements
95
+
96
+ Special thanks go out to the community contributors who have helped make this release possible:
97
+ @k-rajat19, @kalyan90, @rotembarsela, @wangkailang.
98
+ Following are all team members who have contributed to this release:
99
+ @arthurbalduini, @cherniavskii, @flaviendelangle, @JCQuintas, @LukasTy, @MBilalShafi, @arminmeh, @romgrk, @KenanYusuf, @oliviertassinari, @samuelsycamore.
100
+
101
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
102
+
103
+ ### Data Grid
104
+
105
+ #### `@mui/x-data-grid@7.21.0`
106
+
107
+ - [DataGrid] Fix `onRowSelectionModelChange` firing unnecessarily on initial render (#14909) @MBilalShafi
108
+ - [DataGrid] Fix `onRowSelectionModelChange` not being called after row is removed (#14972) @arminmeh
109
+ - [DataGrid] Fix pagination scrollbar issue on small zoom (#14911) @cherniavskii
110
+ - [DataGrid] Fix scroll jumping (#14929) @romgrk
111
+ - [DataGrid] Fix excessive white space at the end of the Data Grid (#14864) @kalyan90
112
+
113
+ #### `@mui/x-data-grid-pro@7.21.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
114
+
115
+ Same changes as in `@mui/x-data-grid@7.21.0`, plus:
116
+
117
+ - [DataGridPro] Fix indeterminate checkbox state for server-side data (#14956) @MBilalShafi
118
+ - [DataGridPro] Fix scrolling performance when `rowHeight={undefined}` (#14983) @cherniavskii
119
+ - [DataGridPro] List view (#14393) @KenanYusuf @cherniavskii
120
+
121
+ #### `@mui/x-data-grid-premium@7.21.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
122
+
123
+ Same changes as in `@mui/x-data-grid-pro@7.21.0`.
124
+
125
+ ### Date and Time Pickers
126
+
127
+ #### `@mui/x-date-pickers@7.21.0`
128
+
129
+ - [pickers] Cleanup `PageUp` and `PageDown` event handlers on time components (#14928) @arthurbalduini
130
+ - [pickers] Create the new picker's `ownerState` object (#14889) @flaviendelangle
131
+ - [pickers] Fix `PickerValidDate` usage in the Date Range Picker Toolbar (#14925) @flaviendelangle
132
+
133
+ #### `@mui/x-date-pickers-pro@7.21.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
134
+
135
+ Same changes as in `@mui/x-date-pickers@7.21.0`.
136
+
137
+ ### Charts
138
+
139
+ #### `@mui/x-charts@7.21.0`
140
+
141
+ - [charts] Allow `dataset` to be used with the Scatter Chart (#14915) @JCQuintas
142
+ - [charts] Ensure `reduce motion` preference disables animation on page load (#14417) @JCQuintas
143
+
144
+ #### `@mui/x-charts-pro@7.0.0-beta.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
145
+
146
+ Same changes as in `@mui/x-charts@7.21.0`.
147
+
148
+ ### Tree View
149
+
150
+ #### `@mui/x-tree-view@7.21.0`
151
+
152
+ - [TreeView] Fix `alpha` usage with CSS variables (#14969) @wangkailang
153
+ - [TreeView] Fix usage of the `aria-selected` attribute (#14991) @flaviendelangle
154
+ - [TreeView] Fix hydration error (#15002) @flaviendelangle
155
+
156
+ ### `@mui/x-codemod@7.21.0`
157
+
158
+ - [codemod] Add a new utility to rename imports (#14919) @flaviendelangle
159
+
160
+ ### Docs
161
+
162
+ - [docs] Add recipe showing how to toggle detail panels on row click (#14666) @k-rajat19
163
+ - [docs] Fix broken link to the validation section in the Data grid component (#14973) @arminmeh
164
+ - [docs] Update v5 migration codesandbox @oliviertassinari
165
+ - [docs] Enforce component style rules for the Tree View (#14963) @samuelsycamore
166
+
167
+ ### Core
168
+
169
+ - [core] Fix shortcut with localization keyboard (#14220) @rotembarsela
170
+ - [core] Fix docs deploy command (#14920) @arminmeh
171
+ - [code-infra] Prepare some tests to work in `vitest/playwright` (#14926) @JCQuintas
172
+ - [test] Fix `AdapterDayjs` coverage calculation (#14957) @LukasTy
173
+ - [test] Fix split infinitive API convention use @oliviertassinari
174
+
6
175
  ## 7.20.0
7
176
 
8
177
  _Oct 11, 2024_
@@ -79,7 +248,7 @@ Same changes as in `@mui/x-charts@7.20.0`.
79
248
  - [docs] Add custom columns panel demo (#14825) @cherniavskii
80
249
  - [docs] Capitalize all instances of "Data Grid" (#14884) @samuelsycamore
81
250
  - [docs] Divide charts `tooltip` and `highlighting` pages (#14824) @JCQuintas
82
- - [docs] Document the `TreeItem2` component and the `useTreeItem2` hook (#14551) @noraleonte
251
+ - [docs] Document the `<TreeItem2 />` component and the `useTreeItem2` hook (#14551) @noraleonte
83
252
  - [docs] Fix column pinning for "Disable detail panel content scroll" section (#14854 and #14885) @kalyan90
84
253
  - [docs] Fix detail panel demo not working well with pinned columns (#14883) @cherniavskii
85
254
  - [docs] New recipe of a read-only field (#14606) @flaviendelangle
@@ -367,7 +536,7 @@ Same changes as in `@mui/x-charts@7.17.0`.
367
536
 
368
537
  ### Docs
369
538
 
370
- - [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
539
+ - [docs] Add missing callout on "Imperative API" Tree View sections (#14503) @flaviendelangle
371
540
  - [docs] Fix broken redirection to MUI X v5 @oliviertassinari
372
541
  - [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
373
542
  - [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
@@ -708,7 +877,7 @@ Same changes as in `@mui/x-charts@7.13.0`.
708
877
  - [core] Fix ESLint issue (#14207) @LukasTy
709
878
  - [core] Fix Netlify build cache issue (#14182) @cherniavskii
710
879
  - [code-infra] Refactor Netlify `cache-docs` plugin setup (#14105) @LukasTy
711
- - [internals] Move utils needed for tree view virtualization to shared package (#14202) @flaviendelangle
880
+ - [internals] Move utils needed for Tree View virtualization to shared package (#14202) @flaviendelangle
712
881
 
713
882
  ## 7.12.1
714
883
 
@@ -799,7 +968,7 @@ This expansion of the Pro plan comes with some adjustments to our pricing strate
799
968
 
800
969
  We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
801
970
 
802
- - 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `RichTreeViewPro` component
971
+ - 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `<RichTreeViewPro />` component
803
972
 
804
973
  <img width="287" src="https://github.com/user-attachments/assets/78bd83c5-7ce4-4ed7-acf9-be70b2dbce54" alt="Item reordering using drag and drop" />
805
974
 
@@ -1292,7 +1461,7 @@ Same changes as in `@mui/x-date-pickers@7.8.0`.
1292
1461
 
1293
1462
  - [core] Add eslint rule to restrict import from `../internals` root (#13633) @JCQuintas
1294
1463
  - [docs-infra] Sync `\_app` folder with monorepo (#13582) @Janpot
1295
- - [license] Allow usage of charts and tree view pro package for old premium licenses (#13619) @flaviendelangle
1464
+ - [license] Allow usage of Charts and Tree View Pro package for old premium licenses (#13619) @flaviendelangle
1296
1465
 
1297
1466
  ## 7.7.1
1298
1467
 
@@ -1360,7 +1529,7 @@ Same changes as in `@mui/x-date-pickers@7.7.1`, plus:
1360
1529
  - [TreeView] Improve typing to support optional dependencies in plugins and in the item (#13523) @flaviendelangle
1361
1530
  - [TreeView] Move `useTreeViewId` to the core plugins (#13566) @flaviendelangle
1362
1531
  - [TreeView] Remove unused state from `useTreeViewId` (#13579) @flaviendelangle
1363
- - [TreeView] Support `itemId` with escaping characters when using `SimpleTreeView` (#13487) @oukunan
1532
+ - [TreeView] Support `itemId` with escaping characters when using Simple Tree View (#13487) @oukunan
1364
1533
 
1365
1534
  ### Docs
1366
1535
 
@@ -1440,7 +1609,7 @@ Same changes as in `@mui/x-date-pickers@7.7.0`.
1440
1609
  - [TreeView] Improve TypeScript for plugins (#13380) @flaviendelangle
1441
1610
  - [TreeView] Improve the typing of the cancelable events (#13152) @flaviendelangle
1442
1611
  - [TreeView] Prepare support for PigmentCSS (#13412) @flaviendelangle
1443
- - [TreeView] Refactor the tree view internals to prepare for headless API (#13311) @flaviendelangle
1612
+ - [TreeView] Refactor the Tree View internals to prepare for headless API (#13311) @flaviendelangle
1444
1613
 
1445
1614
  ### Docs
1446
1615
 
@@ -1455,7 +1624,7 @@ Same changes as in `@mui/x-date-pickers@7.7.0`.
1455
1624
  - [core] Add `eslint-plugin-react-compiler` experimental version and rules (#13415) @JCQuintas
1456
1625
  - [core] Minor setup cleanup (#13467) @LukasTy
1457
1626
  - [infra] Adjust CI setup (#13448) @LukasTy
1458
- - [test] Add tests for the custom slots of `TreeItem2` (#13314) @flaviendelangle
1627
+ - [test] Add tests for the custom slots of `<TreeItem2 />` (#13314) @flaviendelangle
1459
1628
 
1460
1629
  ## 7.6.2
1461
1630
 
@@ -1640,7 +1809,7 @@ _May 23, 2024_
1640
1809
 
1641
1810
  We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
1642
1811
 
1643
- - 🧰 Improve tree view testing
1812
+ - 🧰 Improve Tree View testing
1644
1813
  - 📊 Add `label` to be displayed in BarChart
1645
1814
 
1646
1815
  ### Data Grid
@@ -1816,7 +1985,7 @@ Same changes as in `@mui/x-date-pickers@7.4.0`.
1816
1985
 
1817
1986
  #### `@mui/x-tree-view@7.4.0`
1818
1987
 
1819
- - [TreeView] Fix props propagation and theme entry in `TreeItem2` (#12889) @flaviendelangle
1988
+ - [TreeView] Fix props propagation and theme entry in `<TreeItem2 />` (#12889) @flaviendelangle
1820
1989
 
1821
1990
  ### Docs
1822
1991
 
@@ -2126,7 +2295,7 @@ Same changes as in `@mui/x-date-pickers@7.2.0`, plus:
2126
2295
  ### Docs
2127
2296
 
2128
2297
  - [docs] Add `AxisFormatter` documentation for customizing tick/tooltip value formatting (#12700) @JCQuintas
2129
- - [docs] Add file explorer example to rich tree view customization docs (#12707) @noraleonte
2298
+ - [docs] Add file explorer example to rich Tree View customization docs (#12707) @noraleonte
2130
2299
  - [docs] Do not use import of depth 3 in the doc (#12716) @flaviendelangle
2131
2300
  - [docs] Explain how to clip plots with composition (#12679) @alexfauquette
2132
2301
  - [docs] Fix typo in Data Grid v7 migration page (#12720) @bfaulk96
@@ -2202,7 +2371,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
2202
2371
  #### `@mui/x-tree-view@7.1.1`
2203
2372
 
2204
2373
  - [TreeView] Add JSDoc to all `publicAPI` methods (#12649) @flaviendelangle
2205
- - [TreeView] Create `RichTreeViewPro` component (not released yet) (#12610) @flaviendelangle
2374
+ - [TreeView] Create `<RichTreeViewPro />` component (not released yet) (#12610) @flaviendelangle
2206
2375
  - [TreeView] Create Pro package (not released yet) (#12240) @flaviendelangle
2207
2376
  - [TreeView] Fix typo in errors (#12623) @alissa-tung
2208
2377
  - [TreeView] New API method: `setItemExpansion` (#12595) @flaviendelangle
@@ -2222,13 +2391,13 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
2222
2391
  - [docs] Move Data Grid interfaces to standard API page layout (#12016) @alexfauquette
2223
2392
  - [docs] Remove ` around @default values (#12158) @alexfauquette
2224
2393
  - [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
2225
- - [docs] Use `TreeItem2` for icon expansion example on `RichTreeView` (#12563) @flaviendelangle
2394
+ - [docs] Use `<TreeItem2 />` for icon expansion example on `<RichTreeView />` (#12563) @flaviendelangle
2226
2395
 
2227
2396
  ### Core
2228
2397
 
2229
2398
  - [core] Add cherry-pick `master` to `v6` action (#12648) @LukasTy
2230
2399
  - [core] Fix typo in `@mui/x-tree-view-pro/themeAugmentation` (#12674) @flaviendelangle
2231
- - [core] Introduce `describeTreeView` to run test on `SimpleTreeView` and `RichTreeView`, using `TreeItem` and `TreeItem2` + migrate expansion tests (#12428) @flaviendelangle
2400
+ - [core] Introduce `describeTreeView` to run test on `<SimpleTreeView />` and `<RichTreeView />`, using `<TreeItem />` and `<TreeItem2 />` + migrate expansion tests (#12428) @flaviendelangle
2232
2401
  - [core] Limit `test-types` CI step allowed memory (#12651) @LukasTy
2233
2402
  - [core] Remove explicit `express` package (#12602) @LukasTy
2234
2403
  - [core] Update to new embedded translations in the docs package (#12232) @Janpot
@@ -2293,7 +2462,7 @@ Same changes as in `@mui/x-date-pickers@7.1.0`, plus:
2293
2462
 
2294
2463
  #### `@mui/x-tree-view@7.1.0`
2295
2464
 
2296
- - [TreeView] Do not use outdated version of the state to compute new label first char in `RichTreeView` (#12512) @flaviendelangle
2465
+ - [TreeView] Do not use outdated version of the state to compute new label first char in Rich Tree View (#12512) @flaviendelangle
2297
2466
 
2298
2467
  ### Docs
2299
2468
 
@@ -2420,7 +2589,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
2420
2589
 
2421
2590
  #### Breaking changes
2422
2591
 
2423
- - The required `nodeId` prop used by the `TreeItem` has been renamed to `itemId` for consistency:
2592
+ - The required `nodeId` prop used by `<TreeItem />` has been renamed to `itemId` for consistency:
2424
2593
 
2425
2594
  ```diff
2426
2595
  <TreeView>
@@ -2573,7 +2742,7 @@ The `onNodeFocus` callback has been renamed to `onItemFocus` for consistency:
2573
2742
  #### `@mui/x-tree-view@7.0.0-beta.7`
2574
2743
 
2575
2744
  - [TreeView] Clean the usage of the term "item" and "node" in API introduced during v7 (#12368) @noraleonte
2576
- - [TreeView] Introduce a new `TreeItem2` component and a new `useTreeItem2` hook (#11721) @flaviendelangle
2745
+ - [TreeView] Introduce a new `<TreeItem2 />` component and a new `useTreeItem2` hook (#11721) @flaviendelangle
2577
2746
  - [TreeView] Rename `onNodeFocus` to `onItemFocus` (#12419) @noraleonte
2578
2747
 
2579
2748
  ### Docs
@@ -2631,9 +2800,9 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.6`.
2631
2800
 
2632
2801
  #### Breaking changes
2633
2802
 
2634
- - The component used to animate the item children is now defined as a slot on the `TreeItem` component.
2803
+ - The component used to animate the item children is now defined as a slot on the `<TreeItem />` component.
2635
2804
 
2636
- If you were passing a `TransitionComponent` or `TransitionProps` to your `TreeItem` component,
2805
+ If you were passing a `TransitionComponent` or `TransitionProps` to your `<TreeItem />` component,
2637
2806
  you need to use the new `groupTransition` slot on this component:
2638
2807
 
2639
2808
  ```diff
@@ -2649,7 +2818,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.6`.
2649
2818
  </SimpleTreeView>
2650
2819
  ```
2651
2820
 
2652
- - The `group` class of the `TreeItem` component has been renamed to `groupTransition` to match with its new slot name.
2821
+ - The `group` class of the `<TreeItem />` component has been renamed to `groupTransition` to match with its new slot name.
2653
2822
 
2654
2823
  ```diff
2655
2824
  const StyledTreeItem = styled(TreeItem)({
@@ -2663,14 +2832,14 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.6`.
2663
2832
  #### `@mui/x-tree-view@7.0.0-beta.6`
2664
2833
 
2665
2834
  - [TreeView] Fix invalid nodes state when updating `props.items` (#12359) @flaviendelangle
2666
- - [TreeView] In the `RichTreeView`, do not use the item id as the HTML id attribute (#12319) @flaviendelangle
2835
+ - [TreeView] In the Rich Tree View, do not use the item id as the HTML id attribute (#12319) @flaviendelangle
2667
2836
  - [TreeView] New instance and publicAPI method: `getItem` (#12251) @flaviendelangle
2668
2837
  - [TreeView] Replace `TransitionComponent` and `TransitionProps` with a `groupTransition` slot (#12336) @flaviendelangle
2669
2838
 
2670
2839
  ### Docs
2671
2840
 
2672
2841
  - [docs] Add a note about `z-index` usage in SVG (#12337) @alexfauquette
2673
- - [docs] `RichTreeView` customization docs (#12231) @noraleonte
2842
+ - [docs] Rich Tree View customization docs (#12231) @noraleonte
2674
2843
 
2675
2844
  ### Core
2676
2845
 
@@ -3323,7 +3492,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.0`, plus:
3323
3492
 
3324
3493
  ### Docs
3325
3494
 
3326
- - [docs] Add `contextValue` to the headless tree view doc (#11705) @flaviendelangle
3495
+ - [docs] Add `contextValue` to the headless Tree View doc (#11705) @flaviendelangle
3327
3496
  - [docs] Add section for the `disableSelection` prop (#11821) @flaviendelangle
3328
3497
  - [docs] Fix brand name non-breaking space (#11758) @oliviertassinari
3329
3498
  - [docs] Fix typo in Data Grid components page (#11775) @flaviendelangle
@@ -3346,7 +3515,7 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
3346
3515
 
3347
3516
  - 🎁 The Data Grid headers have been refactored to bring immense improvements to scrolling, state management, and overall performance of the grid.
3348
3517
  - ⚙️ The Data Grid disabled column-specific features like filtering, sorting, grouping, etc. could now be accessed programmatically. See the related [docs](https://next.mui.com/x/react-data-grid/api-object/#access-the-disabled-column-features) section.
3349
- - 🚀 Uplift the `SimpleTreeView` customization examples (#11424) @noraleonte
3518
+ - 🚀 Uplift the Simple Tree View customization examples (#11424) @noraleonte
3350
3519
  - 🌍 Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11668) on the Data Grid @BCaspari
3351
3520
  - 🐞 Bugfixes
3352
3521
  - 💔 Bump `@mui/material` peer dependency for all packages (#11692) @LukasTy
@@ -3557,7 +3726,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.9`.
3557
3726
  ```
3558
3727
 
3559
3728
  - The `useTreeItem` hook has been renamed `useTreeItemState`.
3560
- This will help create a new headless version of the `TreeItem` component based on a future `useTreeItem` hook.
3729
+ This will help create a new headless version of the Tree Item component based on a future `useTreeItem` hook.
3561
3730
 
3562
3731
  ```diff
3563
3732
  -import { TreeItem, useTreeItem } from '@mui/x-tree-view/TreeItem';
@@ -3657,13 +3826,13 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.9`.
3657
3826
  - [docs] Cleanup and fix Pickers Playground styling (#11700) @LukasTy
3658
3827
  - [docs] First draft of the Tree View custom plugin doc (#11564) @flaviendelangle
3659
3828
  - [docs] Fix Pickers migration syntax and diffs (#11695) @LukasTy
3660
- - [docs] Fix generated tree view API docs (#11737) @LukasTy
3829
+ - [docs] Fix generated Tree View API docs (#11737) @LukasTy
3661
3830
  - [docs] Generate docs for Tree View slots (#11730) @flaviendelangle
3662
3831
  - [docs] Improve codemod for v7 (#11650) @oliviertassinari
3663
3832
  - [docs] Improve Data Grid `pageSizeOptions` prop documentation (#11682) @oliviertassinari
3664
3833
  - [docs] Parse markdown on API docs demo titles (#11728) @LukasTy
3665
3834
  - [docs] Remove the description from the `className` prop (#11693) @oliviertassinari
3666
- - [docs] Uplift `SimpleTreeView` customization examples (#11424) @noraleonte
3835
+ - [docs] Uplift Simple Tree View customization examples (#11424) @noraleonte
3667
3836
  - [docs] Uplift the Date Pickers playground (#11555) @danilo-leal
3668
3837
 
3669
3838
  ### Core
@@ -3740,8 +3909,8 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.8`.
3740
3909
 
3741
3910
  ### Tree View / `@mui/x-tree-view@7.0.0-alpha.8`
3742
3911
 
3743
- - [tree view] Cleanup `onKeyDown` handler (#11481) @flaviendelangle
3744
- - [tree view] Define the parameters used by each plugin to avoid listing them in each component (#11473) @flaviendelangle
3912
+ - [TreeView] Cleanup `onKeyDown` handler (#11481) @flaviendelangle
3913
+ - [TreeView] Define the parameters used by each plugin to avoid listing them in each component (#11473) @flaviendelangle
3745
3914
 
3746
3915
  ### Docs
3747
3916
 
@@ -3768,7 +3937,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
3768
3937
 
3769
3938
  - 🎁 New component to create a Tree View from a structured data source:
3770
3939
 
3771
- You can now directly pass your data to the `RichTreeView` component instead of manually converting it into JSX `TreeItem` components:
3940
+ You can now directly pass your data to the `<RichTreeView />` component instead of manually converting it into JSX `<TreeItem />` components:
3772
3941
 
3773
3942
  ```tsx
3774
3943
  const ITEMS = [
@@ -5099,7 +5268,7 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
5099
5268
 
5100
5269
  ### Core
5101
5270
 
5102
- - [core] Adds migration docs for charts, pickers and tree view (#10926) @michelengelen
5271
+ - [core] Adds migration docs for Charts, Pickers, and Tree View (#10926) @michelengelen
5103
5272
  - [core] Bump monorepo (#10959) @LukasTy
5104
5273
  - [core] Changed prettier branch value to next (#10917) @michelengelen
5105
5274
  - [core] Fix GitHub title tag consistency @oliviertassinari
@@ -54,7 +54,7 @@ const RichTreeViewPro = /*#__PURE__*/React.forwardRef(function RichTreeViewPro(i
54
54
  useLicenseVerifier('x-tree-view-pro', releaseInfo);
55
55
  if (process.env.NODE_ENV !== 'production') {
56
56
  if (props.children != null) {
57
- warnOnce(['MUI X: The `RichTreeViewPro` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
57
+ warnOnce(['MUI X: The `<RichTreeViewPro />` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
58
58
  }
59
59
  }
60
60
  const {
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
123
123
  */
124
124
  canMoveItemToNewPosition: PropTypes.func,
125
125
  /**
126
- * If `true`, the tree view renders a checkbox at the left of its label that allows selecting it.
126
+ * If `true`, the Tree View renders a checkbox at the left of its label that allows selecting it.
127
127
  * @default false
128
128
  */
129
129
  checkboxSelection: PropTypes.bool,
@@ -241,26 +241,26 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
241
241
  */
242
242
  multiSelect: PropTypes.bool,
243
243
  /**
244
- * Callback fired when tree items are expanded/collapsed.
244
+ * Callback fired when Tree Items are expanded/collapsed.
245
245
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
246
246
  * @param {array} itemIds The ids of the expanded items.
247
247
  */
248
248
  onExpandedItemsChange: PropTypes.func,
249
249
  /**
250
- * Callback fired when the `content` slot of a given tree item is clicked.
250
+ * Callback fired when the `content` slot of a given Tree Item is clicked.
251
251
  * @param {React.MouseEvent} event The DOM event that triggered the change.
252
252
  * @param {string} itemId The id of the focused item.
253
253
  */
254
254
  onItemClick: PropTypes.func,
255
255
  /**
256
- * Callback fired when a tree item is expanded or collapsed.
256
+ * Callback fired when a Tree Item is expanded or collapsed.
257
257
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
258
258
  * @param {array} itemId The itemId of the modified item.
259
259
  * @param {array} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
260
260
  */
261
261
  onItemExpansionToggle: PropTypes.func,
262
262
  /**
263
- * Callback fired when a given tree item is focused.
263
+ * Callback fired when a given Tree Item is focused.
264
264
  * @param {React.SyntheticEvent | null} event The DOM event that triggered the change. **Warning**: This is a generic event not a focus event.
265
265
  * @param {string} itemId The id of the focused item.
266
266
  */
@@ -272,7 +272,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
272
272
  */
273
273
  onItemLabelChange: PropTypes.func,
274
274
  /**
275
- * Callback fired when a tree item is moved in the tree.
275
+ * Callback fired when a Tree Item is moved in the tree.
276
276
  * @param {object} params The params describing the item re-ordering.
277
277
  * @param {string} params.itemId The id of the item moved.
278
278
  * @param {TreeViewItemReorderPosition} params.oldPosition The old position of the item.
@@ -280,14 +280,14 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
280
280
  */
281
281
  onItemPositionChange: PropTypes.func,
282
282
  /**
283
- * Callback fired when a tree item is selected or deselected.
283
+ * Callback fired when a Tree Item is selected or deselected.
284
284
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
285
285
  * @param {array} itemId The itemId of the modified item.
286
286
  * @param {array} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
287
287
  */
288
288
  onItemSelectionToggle: PropTypes.func,
289
289
  /**
290
- * Callback fired when tree items are selected/deselected.
290
+ * Callback fired when Tree Items are selected/deselected.
291
291
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
292
292
  * @param {string[] | string} itemIds The ids of the selected items.
293
293
  * When `multiSelect` is `true`, this is an array of strings; when false (default) a string.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view-pro v7.20.0
2
+ * @mui/x-tree-view-pro v7.22.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -180,7 +180,7 @@ useTreeViewItemsReordering.getDefaultizedParams = ({
180
180
  const canUseFeature = experimentalFeatures?.indentationAtItemLevel && experimentalFeatures?.itemsReordering;
181
181
  if (process.env.NODE_ENV !== 'production') {
182
182
  if (params.itemsReordering && !canUseFeature) {
183
- warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
183
+ warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `<RichTreeViewPro />`component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
184
184
  }
185
185
  }
186
186
  return _extends({}, params, {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { DefaultizedProps, TreeViewPluginSignature, UseTreeViewItemsSignature, MuiCancellableEventHandler } from '@mui/x-tree-view/internals';
3
- import { TreeViewItemId, TreeViewItemsReorderingAction } from '@mui/x-tree-view/models';
2
+ import { DefaultizedProps, TreeViewPluginSignature, UseTreeViewItemsSignature } from '@mui/x-tree-view/internals';
3
+ import { TreeViewItemId, TreeViewItemsReorderingAction, TreeViewCancellableEventHandler } from '@mui/x-tree-view/models';
4
4
  import { TreeItem2DragAndDropOverlayProps } from '@mui/x-tree-view/TreeItem2DragAndDropOverlay';
5
5
  export interface UseTreeViewItemsReorderingInstance {
6
6
  /**
@@ -81,7 +81,7 @@ export interface UseTreeViewItemsReorderingParameters {
81
81
  newPosition: TreeViewItemReorderPosition;
82
82
  }) => boolean;
83
83
  /**
84
- * Callback fired when a tree item is moved in the tree.
84
+ * Callback fired when a Tree Item is moved in the tree.
85
85
  * @param {object} params The params describing the item re-ordering.
86
86
  * @param {string} params.itemId The id of the item moved.
87
87
  * @param {TreeViewItemReorderPosition} params.oldPosition The old position of the item.
@@ -119,13 +119,13 @@ export type UseTreeViewItemsReorderingSignature = TreeViewPluginSignature<{
119
119
  }>;
120
120
  export interface UseTreeItem2RootSlotPropsFromItemsReordering {
121
121
  draggable?: true;
122
- onDragStart?: MuiCancellableEventHandler<React.DragEvent>;
123
- onDragOver?: MuiCancellableEventHandler<React.DragEvent>;
124
- onDragEnd?: MuiCancellableEventHandler<React.DragEvent>;
122
+ onDragStart?: TreeViewCancellableEventHandler<React.DragEvent>;
123
+ onDragOver?: TreeViewCancellableEventHandler<React.DragEvent>;
124
+ onDragEnd?: TreeViewCancellableEventHandler<React.DragEvent>;
125
125
  }
126
126
  export interface UseTreeItem2ContentSlotPropsFromItemsReordering {
127
- onDragEnter?: MuiCancellableEventHandler<React.DragEvent>;
128
- onDragOver?: MuiCancellableEventHandler<React.DragEvent>;
127
+ onDragEnter?: TreeViewCancellableEventHandler<React.DragEvent>;
128
+ onDragOver?: TreeViewCancellableEventHandler<React.DragEvent>;
129
129
  }
130
130
  export interface UseTreeItem2DragAndDropOverlaySlotPropsFromItemsReordering extends TreeItem2DragAndDropOverlayProps {
131
131
  }
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcyODU5NzYwMDAwMA==";
3
+ const releaseInfo = "MTcyOTc5NjQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -54,7 +54,7 @@ const RichTreeViewPro = /*#__PURE__*/React.forwardRef(function RichTreeViewPro(i
54
54
  useLicenseVerifier('x-tree-view-pro', releaseInfo);
55
55
  if (process.env.NODE_ENV !== 'production') {
56
56
  if (props.children != null) {
57
- warnOnce(['MUI X: The `RichTreeViewPro` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
57
+ warnOnce(['MUI X: The `<RichTreeViewPro />` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
58
58
  }
59
59
  }
60
60
  const {
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
123
123
  */
124
124
  canMoveItemToNewPosition: PropTypes.func,
125
125
  /**
126
- * If `true`, the tree view renders a checkbox at the left of its label that allows selecting it.
126
+ * If `true`, the Tree View renders a checkbox at the left of its label that allows selecting it.
127
127
  * @default false
128
128
  */
129
129
  checkboxSelection: PropTypes.bool,
@@ -241,26 +241,26 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
241
241
  */
242
242
  multiSelect: PropTypes.bool,
243
243
  /**
244
- * Callback fired when tree items are expanded/collapsed.
244
+ * Callback fired when Tree Items are expanded/collapsed.
245
245
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
246
246
  * @param {array} itemIds The ids of the expanded items.
247
247
  */
248
248
  onExpandedItemsChange: PropTypes.func,
249
249
  /**
250
- * Callback fired when the `content` slot of a given tree item is clicked.
250
+ * Callback fired when the `content` slot of a given Tree Item is clicked.
251
251
  * @param {React.MouseEvent} event The DOM event that triggered the change.
252
252
  * @param {string} itemId The id of the focused item.
253
253
  */
254
254
  onItemClick: PropTypes.func,
255
255
  /**
256
- * Callback fired when a tree item is expanded or collapsed.
256
+ * Callback fired when a Tree Item is expanded or collapsed.
257
257
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
258
258
  * @param {array} itemId The itemId of the modified item.
259
259
  * @param {array} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
260
260
  */
261
261
  onItemExpansionToggle: PropTypes.func,
262
262
  /**
263
- * Callback fired when a given tree item is focused.
263
+ * Callback fired when a given Tree Item is focused.
264
264
  * @param {React.SyntheticEvent | null} event The DOM event that triggered the change. **Warning**: This is a generic event not a focus event.
265
265
  * @param {string} itemId The id of the focused item.
266
266
  */
@@ -272,7 +272,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
272
272
  */
273
273
  onItemLabelChange: PropTypes.func,
274
274
  /**
275
- * Callback fired when a tree item is moved in the tree.
275
+ * Callback fired when a Tree Item is moved in the tree.
276
276
  * @param {object} params The params describing the item re-ordering.
277
277
  * @param {string} params.itemId The id of the item moved.
278
278
  * @param {TreeViewItemReorderPosition} params.oldPosition The old position of the item.
@@ -280,14 +280,14 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
280
280
  */
281
281
  onItemPositionChange: PropTypes.func,
282
282
  /**
283
- * Callback fired when a tree item is selected or deselected.
283
+ * Callback fired when a Tree Item is selected or deselected.
284
284
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
285
285
  * @param {array} itemId The itemId of the modified item.
286
286
  * @param {array} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
287
287
  */
288
288
  onItemSelectionToggle: PropTypes.func,
289
289
  /**
290
- * Callback fired when tree items are selected/deselected.
290
+ * Callback fired when Tree Items are selected/deselected.
291
291
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
292
292
  * @param {string[] | string} itemIds The ids of the selected items.
293
293
  * When `multiSelect` is `true`, this is an array of strings; when false (default) a string.
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view-pro v7.20.0
2
+ * @mui/x-tree-view-pro v7.22.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -180,7 +180,7 @@ useTreeViewItemsReordering.getDefaultizedParams = ({
180
180
  const canUseFeature = experimentalFeatures?.indentationAtItemLevel && experimentalFeatures?.itemsReordering;
181
181
  if (process.env.NODE_ENV !== 'production') {
182
182
  if (params.itemsReordering && !canUseFeature) {
183
- warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
183
+ warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `<RichTreeViewPro />`component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
184
184
  }
185
185
  }
186
186
  return _extends({}, params, {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcyODU5NzYwMDAwMA==";
3
+ const releaseInfo = "MTcyOTc5NjQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -61,7 +61,7 @@ const RichTreeViewPro = exports.RichTreeViewPro = /*#__PURE__*/React.forwardRef(
61
61
  (0, _xLicense.useLicenseVerifier)('x-tree-view-pro', releaseInfo);
62
62
  if (process.env.NODE_ENV !== 'production') {
63
63
  if (props.children != null) {
64
- (0, _warning.warnOnce)(['MUI X: The `RichTreeViewPro` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
64
+ (0, _warning.warnOnce)(['MUI X: The `<RichTreeViewPro />` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
65
65
  }
66
66
  }
67
67
  const {
@@ -130,7 +130,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
130
130
  */
131
131
  canMoveItemToNewPosition: _propTypes.default.func,
132
132
  /**
133
- * If `true`, the tree view renders a checkbox at the left of its label that allows selecting it.
133
+ * If `true`, the Tree View renders a checkbox at the left of its label that allows selecting it.
134
134
  * @default false
135
135
  */
136
136
  checkboxSelection: _propTypes.default.bool,
@@ -248,26 +248,26 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
248
248
  */
249
249
  multiSelect: _propTypes.default.bool,
250
250
  /**
251
- * Callback fired when tree items are expanded/collapsed.
251
+ * Callback fired when Tree Items are expanded/collapsed.
252
252
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
253
253
  * @param {array} itemIds The ids of the expanded items.
254
254
  */
255
255
  onExpandedItemsChange: _propTypes.default.func,
256
256
  /**
257
- * Callback fired when the `content` slot of a given tree item is clicked.
257
+ * Callback fired when the `content` slot of a given Tree Item is clicked.
258
258
  * @param {React.MouseEvent} event The DOM event that triggered the change.
259
259
  * @param {string} itemId The id of the focused item.
260
260
  */
261
261
  onItemClick: _propTypes.default.func,
262
262
  /**
263
- * Callback fired when a tree item is expanded or collapsed.
263
+ * Callback fired when a Tree Item is expanded or collapsed.
264
264
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
265
265
  * @param {array} itemId The itemId of the modified item.
266
266
  * @param {array} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
267
267
  */
268
268
  onItemExpansionToggle: _propTypes.default.func,
269
269
  /**
270
- * Callback fired when a given tree item is focused.
270
+ * Callback fired when a given Tree Item is focused.
271
271
  * @param {React.SyntheticEvent | null} event The DOM event that triggered the change. **Warning**: This is a generic event not a focus event.
272
272
  * @param {string} itemId The id of the focused item.
273
273
  */
@@ -279,7 +279,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
279
279
  */
280
280
  onItemLabelChange: _propTypes.default.func,
281
281
  /**
282
- * Callback fired when a tree item is moved in the tree.
282
+ * Callback fired when a Tree Item is moved in the tree.
283
283
  * @param {object} params The params describing the item re-ordering.
284
284
  * @param {string} params.itemId The id of the item moved.
285
285
  * @param {TreeViewItemReorderPosition} params.oldPosition The old position of the item.
@@ -287,14 +287,14 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
287
287
  */
288
288
  onItemPositionChange: _propTypes.default.func,
289
289
  /**
290
- * Callback fired when a tree item is selected or deselected.
290
+ * Callback fired when a Tree Item is selected or deselected.
291
291
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
292
292
  * @param {array} itemId The itemId of the modified item.
293
293
  * @param {array} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
294
294
  */
295
295
  onItemSelectionToggle: _propTypes.default.func,
296
296
  /**
297
- * Callback fired when tree items are selected/deselected.
297
+ * Callback fired when Tree Items are selected/deselected.
298
298
  * @param {React.SyntheticEvent} event The DOM event that triggered the change.
299
299
  * @param {string[] | string} itemIds The ids of the selected items.
300
300
  * When `multiSelect` is `true`, this is an array of strings; when false (default) a string.
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view-pro v7.20.0
2
+ * @mui/x-tree-view-pro v7.22.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -189,7 +189,7 @@ useTreeViewItemsReordering.getDefaultizedParams = ({
189
189
  const canUseFeature = experimentalFeatures?.indentationAtItemLevel && experimentalFeatures?.itemsReordering;
190
190
  if (process.env.NODE_ENV !== 'production') {
191
191
  if (params.itemsReordering && !canUseFeature) {
192
- (0, _warning.warnOnce)(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
192
+ (0, _warning.warnOnce)(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `<RichTreeViewPro />`component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
193
193
  }
194
194
  }
195
195
  return (0, _extends2.default)({}, params, {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTcyODU5NzYwMDAwMA==";
9
+ const releaseInfo = "MTcyOTc5NjQwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-tree-view-pro",
3
- "version": "7.20.0",
3
+ "version": "7.22.0",
4
4
  "description": "The Pro plan edition of the Tree View components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -39,9 +39,9 @@
39
39
  "clsx": "^2.1.1",
40
40
  "prop-types": "^15.8.1",
41
41
  "react-transition-group": "^4.4.5",
42
- "@mui/x-internals": "7.20.0",
43
- "@mui/x-license": "7.20.0",
44
- "@mui/x-tree-view": "7.20.0"
42
+ "@mui/x-internals": "7.21.0",
43
+ "@mui/x-license": "7.21.0",
44
+ "@mui/x-tree-view": "7.22.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@emotion/react": "^11.9.0",