@mui/x-tree-view-pro 8.1.0 → 8.3.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +233 -7
  2. package/RichTreeViewPro/RichTreeViewPro.js +1 -9
  3. package/RichTreeViewPro/RichTreeViewPro.plugins.d.ts +1 -1
  4. package/RichTreeViewPro/RichTreeViewPro.types.d.ts +1 -7
  5. package/RichTreeViewPro/index.d.ts +1 -1
  6. package/esm/RichTreeViewPro/RichTreeViewPro.js +1 -9
  7. package/esm/RichTreeViewPro/RichTreeViewPro.plugins.d.ts +1 -1
  8. package/esm/RichTreeViewPro/RichTreeViewPro.types.d.ts +1 -7
  9. package/esm/RichTreeViewPro/index.d.ts +1 -1
  10. package/esm/index.js +1 -1
  11. package/esm/internals/plugins/useTreeViewItemsReordering/index.d.ts +1 -1
  12. package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +7 -1
  13. package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +15 -3
  14. package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.d.ts +35 -35
  15. package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.js +2 -2
  16. package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.d.ts +9 -5
  17. package/esm/themeAugmentation/components.js +1 -0
  18. package/esm/themeAugmentation/index.d.ts +3 -3
  19. package/esm/themeAugmentation/overrides.d.ts +0 -4
  20. package/esm/themeAugmentation/overrides.js +4 -0
  21. package/esm/themeAugmentation/props.d.ts +0 -2
  22. package/esm/themeAugmentation/props.js +2 -0
  23. package/index.js +1 -1
  24. package/internals/plugins/useTreeViewItemsReordering/index.d.ts +1 -1
  25. package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +7 -1
  26. package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +15 -3
  27. package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.d.ts +35 -35
  28. package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.js +1 -1
  29. package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.d.ts +9 -5
  30. package/package.json +6 -6
  31. package/themeAugmentation/components.js +5 -0
  32. package/themeAugmentation/index.d.ts +3 -3
  33. package/themeAugmentation/overrides.d.ts +0 -4
  34. package/themeAugmentation/overrides.js +5 -0
  35. package/themeAugmentation/props.d.ts +0 -2
  36. package/themeAugmentation/props.js +5 -0
package/CHANGELOG.md CHANGED
@@ -5,13 +5,235 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.3.0
9
+
10
+ _May 8, 2025_
11
+
12
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🎨 Added new styling options and shapes for `<FunnelChart />`, including `variant`, `borderRadius`, `pyramid`, and `step-pyramid` curves.
15
+ - 📚 Documentation improvements
16
+ - 🐞 Bugfixes
17
+
18
+ Special thanks go out to this community member for a valuable contribution:
19
+ @ptuukkan.
20
+ Team members who have contributed to this release:
21
+ @alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @MBilalShafi, @rita-codes, @romgrk.
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@8.3.0`
26
+
27
+ - [DataGrid] Fix cell editing of computed columns with data source (#17684) @ptuukkan
28
+ - [DataGrid] Fix lazy loading crash with `isRowSelectable` prop (#17629) @MBilalShafi
29
+ - [DataGrid] Fix: use CSS nonce (#17726) @romgrk
30
+ - [DataGrid] Ignore `preProcessEditCellProps` for non-editable columns when starting a row update (#17732) @arminmeh
31
+ - [DataGrid] Avoid applying row selection propagation on filtered rows (#17739) @MBilalShafi
32
+
33
+ #### `@mui/x-data-grid-pro@8.3.0` [![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@8.3.0`.
36
+
37
+ #### `@mui/x-data-grid-premium@8.3.0` [![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@8.3.0`.
40
+
41
+ ### Date and Time Pickers
42
+
43
+ #### `@mui/x-date-pickers@8.3.0`
44
+
45
+ - [DateTimePicker] Fix focus behavior on desktop variant (#17719) @LukasTy
46
+ - [pickers] Avoid `DigitalClock` stealing focus from a Picker open button on close (#17686) @LukasTy
47
+
48
+ #### `@mui/x-date-pickers-pro@8.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
49
+
50
+ Same changes as in `@mui/x-date-pickers@8.3.0`, plus:
51
+
52
+ - [DateRangePicker] Fix to reset range position after closing mobile Picker (#17631) @LukasTy
53
+
54
+ ### Charts
55
+
56
+ - The `<FunnelChart />` series now accepts a `variant='outlined'` prop for a simpler style.
57
+ <img width="398" alt="Screenshot 2025-05-06 at 20 36 12" src="https://github.com/user-attachments/assets/00fef14f-9026-421e-a4b6-7e081adce1e8" />
58
+
59
+ - Add a `borderRadius` property to `<FunnelChart />`. All funnels have `8px` as a default value.
60
+ <img width="386" alt="Screenshot 2025-05-06 at 14 00 20" src="https://github.com/user-attachments/assets/4f4cc0e7-01ce-4ed6-a0e1-a387f78def23" />
61
+
62
+ - Add a `pyramid` curve to `<FunnelChart />`, which allows creation of a pyramid-shaped funnel.
63
+ <img width="344" alt="Screenshot 2025-05-06 at 14 32 59" src="https://github.com/user-attachments/assets/0b2896e0-0478-4766-bb1b-258a4977a751" />
64
+
65
+ - Add a `step-pyramid` curve to `<FunnelChart />`, which creates a stepped-pyramid like shape.
66
+ <img width="344" alt="Screenshot 2025-05-06 at 14 33 03" src="https://github.com/user-attachments/assets/894f0ab3-7898-40fe-b0df-560feea4085a" />
67
+
68
+ #### `@mui/x-charts@8.3.0`
69
+
70
+ - [charts] Add charts toolbar with zoom options (#17615) @bernardobelchior
71
+ - [charts] Add zoom slider (#17496) @bernardobelchior
72
+ - [charts] Cleanup compiler warnings (#17360) @alexfauquette
73
+ - [charts] Fix `<PieArcLabel />` not taking `arcLabelRadius` into account (#17655) @bernardobelchior
74
+ - [charts] Fix spark line not having clip path (#17501) @bernardobelchior
75
+ - [charts] Fix type issue with ESM (#17624) @alexfauquette
76
+ - [charts] Improve `<MarkElement />` performance (#17546) @bernardobelchior
77
+ - [charts] Rename `materialSlots` internal constant (#17710) @bernardobelchior
78
+ - [charts] Update zoom slider design (#17682) @bernardobelchior
79
+ - [charts] Fix zoom being documented as available for heatmap (#17657) @bernardobelchior
80
+
81
+ #### `@mui/x-charts-pro@8.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
82
+
83
+ Same changes as in `@mui/x-charts@8.3.0`, plus:
84
+
85
+ - [charts-pro] Add `pyramid` curve to `<FunnelChart />` (#17665) @JCQuintas
86
+ - [charts-pro] Add `variant='outlined'` to `<FunnelChart />` series (#17661) @JCQuintas
87
+ - [charts-pro] Add a `borderRadius` property to `<FunnelChart />` (#17660) @JCQuintas
88
+
89
+ ### Tree View
90
+
91
+ #### `@mui/x-tree-view@8.3.0`
92
+
93
+ - [tree view] Bug fix - Escape does not cancel Drag n Drop (#17735) @rita-codes
94
+ - [tree view] Fix keyboard navigation error (#17685) @rita-codes
95
+ - [tree view] Continue cleaning the plugin system (#17386) @flaviendelangle
96
+
97
+ #### `@mui/x-tree-view-pro@8.3.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
98
+
99
+ Same changes as in `@mui/x-tree-view@8.3.0`.
100
+
101
+ ### Docs
102
+
103
+ - [charts] Add population pyramid demo (#17652) @bernardobelchior
104
+ - [charts] Fix randomised argos test (#17658) @JCQuintas
105
+ - [docs] Make preview messaging consistent in charts @bernardobelchior
106
+
107
+ ### Core
108
+
109
+ - [code-infra] Avoid `node` types in the built packages (#17533) @LukasTy
110
+ - [code-infra] Add `pkg.pr.new` publishing (#17402) @Janpot
111
+ - [code-infra] Normalize author package in org @oliviertassinari
112
+ - [code-infra] Remove required checkout step (#17729) @JCQuintas
113
+ - [docs-infra] Normalize netlify.toml in org @oliviertassinari
114
+
115
+ ## 8.2.0
116
+
117
+ _May 1, 2025_
118
+
119
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
120
+
121
+ - 📊 `<FunnelChart/>` now uses the `strawberrySky` sequential color palette by default.
122
+ <img width="481" alt="Screenshot 2025-04-29 at 13 55 21" src="https://github.com/user-attachments/assets/182085d1-a7ce-4e4d-9d8d-a4fe87f27167" />
123
+ - 📊 Add API to export a chart as an image: `apiRef.exportAsImage` — [Learn more](https://mui.com/x/react-charts/export/#export-as-image).
124
+
125
+ Special thanks go out to the community members for their valuable contributions:
126
+ @federico-ntr, @nusr.
127
+ Following are all team members who have contributed to this release:
128
+ @alexfauquette, @arminmeh, @bernardobelchior, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @romgrk.
129
+
130
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
131
+
132
+ ### Data Grid
133
+
134
+ #### `@mui/x-data-grid@8.2.0`
135
+
136
+ - [DataGrid] Fix panel alignment (#17625) @KenanYusuf
137
+ - [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17490) @KenanYusuf
138
+ - [DataGrid] Fix circular reference error (#17591) @romgrk
139
+ - [DataGrid] Fix `<GridEditInputCell />` break input (#16773) @nusr
140
+
141
+ #### `@mui/x-data-grid-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
142
+
143
+ Same changes as in `@mui/x-data-grid@8.2.0`, plus:
144
+
145
+ - [DataGridPro] Use intersection observer to trigger server-side infinite loading (#17369) @arminmeh
146
+
147
+ #### `@mui/x-data-grid-premium@8.2.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
148
+
149
+ Same changes as in `@mui/x-data-grid-pro@8.2.0`.
150
+
151
+ ### Date and Time Pickers
152
+
153
+ #### `@mui/x-date-pickers@8.2.0`
154
+
155
+ - [l10n] Improve Italian (it-IT) locale (#17600) @federico-ntr
156
+ - [pickers] Refactor owner state typing (#17517) @LukasTy
157
+
158
+ #### `@mui/x-date-pickers-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
159
+
160
+ Same changes as in `@mui/x-date-pickers@8.2.0`.
161
+
162
+ ### Charts
163
+
164
+ #### `@mui/x-charts@8.2.0`
165
+
166
+ - [charts] Add library name to errors (#17547) @bernardobelchior
167
+ - [charts] Add monochrome palettes (#17610) @JCQuintas
168
+ - [charts] Add screenshot of the tooltip (#17395) @alexfauquette
169
+ - [charts] Default bar chart x-axis scale type to band (#17519) @bernardobelchior
170
+ - [charts] Document axis ID uniqueness constraints (#17630) @bernardobelchior
171
+ - [charts] Refactor axis types (#17632) @bernardobelchior
172
+ - [charts] Use `<circle />` for circular legend mark (#17590) @alexfauquette
173
+
174
+ #### `@mui/x-charts-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
175
+
176
+ Same changes as in `@mui/x-charts@8.2.0`, plus:
177
+
178
+ - [charts-pro] Add `gap` option to `<FunnelChart />` (#17642) @JCQuintas
179
+ - [charts-pro] Export charts as image (#17353) @bernardobelchior
180
+ - [charts-pro] Simplify zoom testing (#17525) @JCQuintas
181
+ - [charts-pro] Use new sequential color palette in `<FunnelChart />` (#17606) @JCQuintas
182
+
183
+ ### Tree View
184
+
185
+ #### `@mui/x-tree-view@8.2.0`
186
+
187
+ Internal changes.
188
+
189
+ #### `@mui/x-tree-view-pro@8.2.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
190
+
191
+ Same changes as in `@mui/x-tree-view@8.2.0`.
192
+
193
+ ### Docs
194
+
195
+ - [docs][charts] Add composition sections (#17377) @alexfauquette
196
+ - [docs][charts] Add docs on tooltip style (#17601) @bernardobelchior
197
+ - [docs][charts] Fix highlighting heading structure (#17581) @oliviertassinari
198
+ - [docs][charts] Improve export docs (#17538) @oliviertassinari
199
+ - [docs][charts] Similar introduction on most charts pages (#17374) @alexfauquette
200
+ - [docs][DataGrid] Clear component docs (#17540) @oliviertassinari
201
+ - [docs] Explicitly state that `groupingColDef` reference needs to be stable (#17544) @arminmeh
202
+ - [docs] Fix <kbd> a11y (#17536) @oliviertassinari
203
+ - [docs] Fix CodeSandbox spelling @oliviertassinari
204
+ - [docs] Fix coding style function @oliviertassinari
205
+ - [docs] Fix migration guide format (#17450) @oliviertassinari
206
+ - [docs] Improve data grid export docs (#17551) @MBilalShafi
207
+ - [docs] Remove leftover `@next` usages (#17542) @LukasTy
208
+
209
+ ### Core
210
+
211
+ - [core] Add security label to dependabot PRs @oliviertassinari
212
+ - [core] Allow post-install vale @oliviertassinari
213
+ - [core] Component consistency @oliviertassinari
214
+ - [core] Fix all Vale errors @oliviertassinari
215
+ - [core] Move `loadStyleSheets` to internals and use it in data grid and charts (#17548) @bernardobelchior
216
+ - [core] Remove empty version (#17582) @oliviertassinari
217
+ - [core] Remove eslint from codemod spec files (#17443) @alexfauquette
218
+ - [core] Remove unnecessary versions (#17597) @oliviertassinari
219
+ - [code-infra] Allow postinstall scripts for packages requesting it (#17635) @LukasTy
220
+ - [code-infra] Data Grid `vitest` changes (#17619) @JCQuintas
221
+ - [code-infra] Fix date-time sensitive tests (#17644) @JCQuintas
222
+ - [code-infra] Fix extension handling for type imports (#17636) @Janpot
223
+ - [code-infra] Further remove `clock=fake` and add `async act` for datagrid (#17563) @JCQuintas
224
+ - [code-infra] Latest vitest picker changes (#17577) @JCQuintas
225
+ - [docs-infra] Fix Vale no longer working (#17602) @alexfauquette
226
+ - [docs-infra] Uniformize Vale between repositories @oliviertassinari
227
+ - [infra] Updates to `branch switch comments` (#17589) @michelengelen
228
+ - [x-telemetry] Fix issue with get machineid hash (#17614) @hasdfa
229
+
8
230
  ## 8.1.0
9
231
 
10
232
  _Apr 24, 2025_
11
233
 
12
234
  We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
13
235
 
14
- - 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
236
+ - 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
15
237
  - 📚 Documentation improvements
16
238
  - 🐞 Bugfixes
17
239
 
@@ -56,7 +278,7 @@ Same changes as in `@mui/x-date-pickers@8.1.0`.
56
278
 
57
279
  ### Charts
58
280
 
59
- - Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
281
+ - Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
60
282
 
61
283
  #### `@mui/x-charts@8.1.0`
62
284
 
@@ -1821,7 +2043,7 @@ Same changes as in `@mui/x-tree-view@8.0.0-alpha.8`.
1821
2043
  - [docs] Add example for custom legend (#16169) @alexfauquette
1822
2044
  - [docs] Add full custom field creation example (#15194) @flaviendelangle
1823
2045
  - [docs] Copyedit the Data Grid cell selection page (#16099) @samuelsycamore
1824
- - [docs] Fix demo rendering issue on Codesandbox (#16118) @arminmeh
2046
+ - [docs] Fix demo rendering issue on CodeSandbox (#16118) @arminmeh
1825
2047
  - [docs] Remove broken links (#16167) @alexfauquette
1826
2048
  - [docs] Split the Data Grid editing page (#14931) @MBilalShafi
1827
2049
  - [docs] Fix wrong props warnings (#16119) @JCQuintas
@@ -2268,7 +2490,7 @@ Releasing to benefit from license package fix (#15814).
2268
2490
 
2269
2491
  - [code-infra] Add Charts sandbox generation (#15830) @JCQuintas
2270
2492
  - [code-infra] Remove redundant `@type/react-test-renderer` dep (#15766) @LukasTy
2271
- - [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15814) @arminmeh
2493
+ - [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15814) @arminmeh
2272
2494
 
2273
2495
  ## 8.0.0-alpha.3
2274
2496
 
@@ -2484,6 +2706,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
2484
2706
 
2485
2707
  ### Docs
2486
2708
 
2709
+ <!-- vale MUI.CorrectRererenceCased = NO -->
2710
+
2487
2711
  - [docs] Fix 404 links (#15575) @oliviertassinari
2488
2712
  - [docs] Fix bash comments (#15571) @oliviertassinari
2489
2713
  - [docs] Fix Pickers theme augmentation example (#15672) @LukasTy
@@ -2493,6 +2717,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
2493
2717
  - [docs] Fix `anchorEl` API page for charts (#15625) @oliviertassinari
2494
2718
  - [docs] Add documentation for the list view feature (#15344) @KenanYusuf
2495
2719
 
2720
+ <!-- vale MUI.CorrectRererenceCased = YES -->
2721
+
2496
2722
  ### Core
2497
2723
 
2498
2724
  - [core] Follow `()` function convention for docs @oliviertassinari
@@ -3401,7 +3627,7 @@ Same changes as in `@mui/x-tree-view@7.24.0`.
3401
3627
  ### Docs
3402
3628
 
3403
3629
  - [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
3404
- - [docs] Fix demo rendering issue on Codesandbox (#16129) @arminmeh
3630
+ - [docs] Fix demo rendering issue on CodeSandbox (#16129) @arminmeh
3405
3631
 
3406
3632
  ### Core
3407
3633
 
@@ -3679,7 +3905,7 @@ Releasing to benefit from license package fix (#15818).
3679
3905
  ### Core
3680
3906
 
3681
3907
  - [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
3682
- - [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15818) @arminmeh
3908
+ - [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15818) @arminmeh
3683
3909
 
3684
3910
  ## 7.23.1
3685
3911
 
@@ -7020,7 +7246,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
7020
7246
  />
7021
7247
  ```
7022
7248
 
7023
- - The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
7249
+ - The headless field hooks (for example `useDateField()`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
7024
7250
  This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
7025
7251
  Learn more about this new accessible DOM structure in the [v8 migration guide](https://v7.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
7026
7252
 
@@ -52,7 +52,7 @@ const RichTreeViewProRoot = exports.RichTreeViewProRoot = (0, _zeroStyled.styled
52
52
  outline: 0,
53
53
  position: 'relative'
54
54
  });
55
- const releaseInfo = "MTc0NTQ0NTYwMDAwMA==";
55
+ const releaseInfo = "MTc0NjY1NTIwMDAwMA==";
56
56
 
57
57
  /**
58
58
  *
@@ -195,14 +195,6 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
195
195
  * @default 'content'
196
196
  */
197
197
  expansionTrigger: _propTypes.default.oneOf(['content', 'iconContainer']),
198
- /**
199
- * Unstable features, breaking changes might be introduced.
200
- * For each feature, if the flag is not explicitly set to `true`,
201
- * the feature will be fully disabled and any property / method call will not have any effect.
202
- */
203
- experimentalFeatures: _propTypes.default.shape({
204
- lazyLoading: _propTypes.default.bool
205
- }),
206
198
  /**
207
199
  * Used to determine the id of a given item.
208
200
  *
@@ -1,5 +1,5 @@
1
1
  import { UseTreeViewItemsParameters, UseTreeViewExpansionParameters, UseTreeViewSelectionParameters, UseTreeViewFocusParameters, ConvertPluginsIntoSignatures, TreeViewCorePluginParameters, UseTreeViewLabelParameters, UseTreeViewLazyLoadingParameters } from '@mui/x-tree-view/internals';
2
2
  import { UseTreeViewItemsReorderingParameters } from "../internals/plugins/useTreeViewItemsReordering/index.js";
3
- export declare const RICH_TREE_VIEW_PRO_PLUGINS: readonly [import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewItemsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewExpansionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewSelectionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewFocusSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewKeyboardNavigationSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLabelSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLazyLoadingSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("../internals").UseTreeViewItemsReorderingSignature>];
3
+ export declare const RICH_TREE_VIEW_PRO_PLUGINS: readonly [import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewItemsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewExpansionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewSelectionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewFocusSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewKeyboardNavigationSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLabelSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLazyLoadingSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("../internals/index.js").UseTreeViewItemsReorderingSignature>];
4
4
  export type RichTreeViewProPluginSignatures = ConvertPluginsIntoSignatures<typeof RICH_TREE_VIEW_PRO_PLUGINS>;
5
5
  export interface RichTreeViewProPluginParameters<R extends {}, Multiple extends boolean | undefined> extends TreeViewCorePluginParameters, UseTreeViewItemsParameters<R>, UseTreeViewExpansionParameters, UseTreeViewFocusParameters, UseTreeViewSelectionParameters<Multiple>, UseTreeViewLabelParameters<R>, UseTreeViewLazyLoadingParameters<R>, UseTreeViewItemsReorderingParameters {}
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { Theme } from '@mui/material/styles';
3
3
  import { SxProps } from '@mui/system/styleFunctionSx';
4
4
  import { SlotComponentProps } from '@mui/utils/types';
5
- import { TreeViewPublicAPI, TreeViewExperimentalFeatures, RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps } from '@mui/x-tree-view/internals';
5
+ import { TreeViewPublicAPI, RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps } from '@mui/x-tree-view/internals';
6
6
  import { RichTreeViewProClasses } from "./richTreeViewProClasses.js";
7
7
  import { RichTreeViewProPluginParameters, RichTreeViewProPluginSignatures } from "./RichTreeViewPro.plugins.js";
8
8
  export interface RichTreeViewProSlots extends TreeViewSlots, RichTreeViewItemsSlots {
@@ -42,10 +42,4 @@ export interface RichTreeViewProProps<R extends {}, Multiple extends boolean | u
42
42
  * The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
43
43
  */
44
44
  apiRef?: RichTreeViewProApiRef;
45
- /**
46
- * Unstable features, breaking changes might be introduced.
47
- * For each feature, if the flag is not explicitly set to `true`,
48
- * the feature will be fully disabled and any property / method call will not have any effect.
49
- */
50
- experimentalFeatures?: TreeViewExperimentalFeatures<RichTreeViewProPluginSignatures>;
51
45
  }
@@ -1,3 +1,3 @@
1
1
  export * from "./RichTreeViewPro.js";
2
2
  export * from "./richTreeViewProClasses.js";
3
- export type { RichTreeViewProProps, RichTreeViewProPropsBase, RichTreeViewProSlots, RichTreeViewProSlotProps } from './RichTreeViewPro.types';
3
+ export type { RichTreeViewProProps, RichTreeViewProPropsBase, RichTreeViewProSlots, RichTreeViewProSlotProps } from "./RichTreeViewPro.types.js";
@@ -45,7 +45,7 @@ export const RichTreeViewProRoot = styled('ul', {
45
45
  outline: 0,
46
46
  position: 'relative'
47
47
  });
48
- const releaseInfo = "MTc0NTQ0NTYwMDAwMA==";
48
+ const releaseInfo = "MTc0NjY1NTIwMDAwMA==";
49
49
 
50
50
  /**
51
51
  *
@@ -188,14 +188,6 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
188
188
  * @default 'content'
189
189
  */
190
190
  expansionTrigger: PropTypes.oneOf(['content', 'iconContainer']),
191
- /**
192
- * Unstable features, breaking changes might be introduced.
193
- * For each feature, if the flag is not explicitly set to `true`,
194
- * the feature will be fully disabled and any property / method call will not have any effect.
195
- */
196
- experimentalFeatures: PropTypes.shape({
197
- lazyLoading: PropTypes.bool
198
- }),
199
191
  /**
200
192
  * Used to determine the id of a given item.
201
193
  *
@@ -1,5 +1,5 @@
1
1
  import { UseTreeViewItemsParameters, UseTreeViewExpansionParameters, UseTreeViewSelectionParameters, UseTreeViewFocusParameters, ConvertPluginsIntoSignatures, TreeViewCorePluginParameters, UseTreeViewLabelParameters, UseTreeViewLazyLoadingParameters } from '@mui/x-tree-view/internals';
2
2
  import { UseTreeViewItemsReorderingParameters } from "../internals/plugins/useTreeViewItemsReordering/index.js";
3
- export declare const RICH_TREE_VIEW_PRO_PLUGINS: readonly [import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewItemsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewExpansionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewSelectionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewFocusSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewKeyboardNavigationSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLabelSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLazyLoadingSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("../internals").UseTreeViewItemsReorderingSignature>];
3
+ export declare const RICH_TREE_VIEW_PRO_PLUGINS: readonly [import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewItemsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewExpansionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewSelectionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewFocusSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewKeyboardNavigationSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLabelSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLazyLoadingSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("../internals/index.js").UseTreeViewItemsReorderingSignature>];
4
4
  export type RichTreeViewProPluginSignatures = ConvertPluginsIntoSignatures<typeof RICH_TREE_VIEW_PRO_PLUGINS>;
5
5
  export interface RichTreeViewProPluginParameters<R extends {}, Multiple extends boolean | undefined> extends TreeViewCorePluginParameters, UseTreeViewItemsParameters<R>, UseTreeViewExpansionParameters, UseTreeViewFocusParameters, UseTreeViewSelectionParameters<Multiple>, UseTreeViewLabelParameters<R>, UseTreeViewLazyLoadingParameters<R>, UseTreeViewItemsReorderingParameters {}
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { Theme } from '@mui/material/styles';
3
3
  import { SxProps } from '@mui/system/styleFunctionSx';
4
4
  import { SlotComponentProps } from '@mui/utils/types';
5
- import { TreeViewPublicAPI, TreeViewExperimentalFeatures, RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps } from '@mui/x-tree-view/internals';
5
+ import { TreeViewPublicAPI, RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps } from '@mui/x-tree-view/internals';
6
6
  import { RichTreeViewProClasses } from "./richTreeViewProClasses.js";
7
7
  import { RichTreeViewProPluginParameters, RichTreeViewProPluginSignatures } from "./RichTreeViewPro.plugins.js";
8
8
  export interface RichTreeViewProSlots extends TreeViewSlots, RichTreeViewItemsSlots {
@@ -42,10 +42,4 @@ export interface RichTreeViewProProps<R extends {}, Multiple extends boolean | u
42
42
  * The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
43
43
  */
44
44
  apiRef?: RichTreeViewProApiRef;
45
- /**
46
- * Unstable features, breaking changes might be introduced.
47
- * For each feature, if the flag is not explicitly set to `true`,
48
- * the feature will be fully disabled and any property / method call will not have any effect.
49
- */
50
- experimentalFeatures?: TreeViewExperimentalFeatures<RichTreeViewProPluginSignatures>;
51
45
  }
@@ -1,3 +1,3 @@
1
1
  export * from "./RichTreeViewPro.js";
2
2
  export * from "./richTreeViewProClasses.js";
3
- export type { RichTreeViewProProps, RichTreeViewProPropsBase, RichTreeViewProSlots, RichTreeViewProSlotProps } from './RichTreeViewPro.types';
3
+ export type { RichTreeViewProProps, RichTreeViewProPropsBase, RichTreeViewProSlots, RichTreeViewProSlotProps } from "./RichTreeViewPro.types.js";
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view-pro v8.1.0
2
+ * @mui/x-tree-view-pro v8.3.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,2 +1,2 @@
1
1
  export { useTreeViewItemsReordering } from "./useTreeViewItemsReordering.js";
2
- export type { UseTreeViewItemsReorderingSignature, UseTreeViewItemsReorderingParameters, UseTreeViewItemsReorderingDefaultizedParameters, TreeViewItemReorderPosition } from './useTreeViewItemsReordering.types';
2
+ export type { UseTreeViewItemsReorderingSignature, UseTreeViewItemsReorderingParameters, UseTreeViewItemsReorderingParametersWithDefaults, TreeViewItemReorderPosition } from "./useTreeViewItemsReordering.types.js";
@@ -65,7 +65,13 @@ export const useTreeViewItemsReorderingItemPlugin = ({
65
65
  if (event.defaultMuiPrevented) {
66
66
  return;
67
67
  }
68
- instance.stopDraggingItem(itemId);
68
+
69
+ // Check if the drag-and-drop was cancelled, possibly by pressing Escape
70
+ if (event.dataTransfer.dropEffect === 'none') {
71
+ instance.cancelDraggingItem();
72
+ return;
73
+ }
74
+ instance.completeDraggingItem(itemId);
69
75
  };
70
76
  return {
71
77
  draggable: true,
@@ -98,7 +98,18 @@ export const useTreeViewItemsReordering = ({
98
98
  });
99
99
  });
100
100
  }, [store]);
101
- const stopDraggingItem = React.useCallback(itemId => {
101
+ const cancelDraggingItem = React.useCallback(() => {
102
+ const currentReorder = selectorCurrentItemReordering(store.value);
103
+ if (currentReorder == null) {
104
+ return;
105
+ }
106
+ store.update(prevState => _extends({}, prevState, {
107
+ itemsReordering: _extends({}, prevState.itemsReordering, {
108
+ currentReorder: null
109
+ })
110
+ }));
111
+ }, [store]);
112
+ const completeDraggingItem = React.useCallback(itemId => {
102
113
  const currentReorder = selectorCurrentItemReordering(store.value);
103
114
  if (currentReorder == null || currentReorder.draggedItemId !== itemId) {
104
115
  return;
@@ -184,13 +195,14 @@ export const useTreeViewItemsReordering = ({
184
195
  canItemBeDragged,
185
196
  getDroppingTargetValidActions,
186
197
  startDraggingItem,
187
- stopDraggingItem,
198
+ cancelDraggingItem,
199
+ completeDraggingItem,
188
200
  setDragTargetItem
189
201
  }
190
202
  };
191
203
  };
192
204
  useTreeViewItemsReordering.itemPlugin = useTreeViewItemsReorderingItemPlugin;
193
- useTreeViewItemsReordering.getDefaultizedParams = ({
205
+ useTreeViewItemsReordering.applyDefaultValuesToParams = ({
194
206
  params
195
207
  }) => _extends({}, params, {
196
208
  itemsReordering: params.itemsReordering ?? false