@mui/x-tree-view-pro 8.21.0 → 8.22.1
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 +238 -1
- package/RichTreeViewPro/RichTreeViewPro.js +2 -2
- package/RichTreeViewPro/RichTreeViewPro.types.d.ts +1 -1
- package/esm/RichTreeViewPro/RichTreeViewPro.js +2 -2
- package/esm/RichTreeViewPro/RichTreeViewPro.types.d.ts +1 -1
- package/esm/hooks/index.d.ts +1 -0
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/useRichTreeViewProApiRef.d.ts +8 -0
- package/esm/hooks/useRichTreeViewProApiRef.js +7 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +3 -2
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +12 -0
- package/hooks/useRichTreeViewProApiRef.d.ts +8 -0
- package/hooks/useRichTreeViewProApiRef.js +14 -0
- package/index.d.ts +2 -1
- package/index.js +13 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,243 @@
|
|
|
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.22.1
|
|
9
|
+
|
|
10
|
+
_Dec 17, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🌎 Improve Swedish (sv-SE) locale on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
18
|
+
@KyeongJooni, @VismaAndreasIvarsson
|
|
19
|
+
|
|
20
|
+
The following team members contributed to this release:
|
|
21
|
+
@alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @Janpot, @JCQuintas, @mapache-salvaje, @michelengelen, @mj12albert, @prakhargupta1, @romgrk, @siriwatknp
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@8.22.1`
|
|
26
|
+
|
|
27
|
+
- [data grid] Fix column menu keyboard shortcut (#20621) @mj12albert
|
|
28
|
+
- [data grid] Fix row checkbox disabled state on first render and keep cell focusable (ARIA) (#20641) @michelengelen
|
|
29
|
+
- [data grid] Fix tree data selection bug (#20528) @michelengelen
|
|
30
|
+
- [data grid] Prevent clear cell selection on edit mode (#20544) @siriwatknp
|
|
31
|
+
- [data grid] Refactor column merge logic to prioritize defined properties only (#20640) @michelengelen
|
|
32
|
+
- [data grid] Reset row spanning on row expansion change (#20661) @siriwatknp
|
|
33
|
+
- [data grid] Resize newly added rows while resize action is happening (#20676)
|
|
34
|
+
- [l10n] Improve Swedish (sv-SE) locale (#20682) @VismaAndreasIvarsson
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid@8.22.1`.
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@8.22.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@8.22.1`, plus:
|
|
43
|
+
|
|
44
|
+
- [DataGridPremium] Import `useId()` from `@mui/utils` to maintain React 17 compatibility (#20635) @arminmeh
|
|
45
|
+
|
|
46
|
+
### Date and Time Pickers
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers@8.22.1`
|
|
49
|
+
|
|
50
|
+
- [pickers] Add minutesStep validation test (#20672) @KyeongJooni
|
|
51
|
+
- [pickers] Fix `onAccept()` returning wrong year after selecting year then month (#20639) @michelengelen
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-date-pickers-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
54
|
+
|
|
55
|
+
Same changes as in `@mui/x-date-pickers@8.22.1`.
|
|
56
|
+
|
|
57
|
+
### Charts
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-charts@8.22.1`
|
|
60
|
+
|
|
61
|
+
- [charts] Extract `FocusedPieArc` from `PieArcPlot` (#20613) @alexfauquette
|
|
62
|
+
- [charts] Fix regression on the highlight control (#20627) @alexfauquette
|
|
63
|
+
- [charts] Refactor: `useSelector()` => `store.use()` (#20681) @romgrk
|
|
64
|
+
- [charts] Remove duplicated types (#20694) @alexfauquette
|
|
65
|
+
- [charts] Remove unused generics from bar charts (#20642) @bernardobelchior
|
|
66
|
+
- [charts] Simplify tooltip position getter for pie chart (#20625) @alexfauquette
|
|
67
|
+
|
|
68
|
+
#### `@mui/x-charts-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
69
|
+
|
|
70
|
+
Same changes as in `@mui/x-charts@8.22.1`, plus:
|
|
71
|
+
|
|
72
|
+
- [charts-pro] Add heatmap performance benchmark (#20695) @bernardobelchior
|
|
73
|
+
|
|
74
|
+
#### `@mui/x-charts-premium@8.22.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
75
|
+
|
|
76
|
+
Same changes as in `@mui/x-charts-pro@8.22.1`, plus:
|
|
77
|
+
|
|
78
|
+
- [charts-premium] Create `BarChartPremium` (#20643) @bernardobelchior
|
|
79
|
+
|
|
80
|
+
### Tree View
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-tree-view@8.22.1`
|
|
83
|
+
|
|
84
|
+
Internal changes.
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-tree-view-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
87
|
+
|
|
88
|
+
Same changes as in `@mui/x-tree-view@8.22.1`.
|
|
89
|
+
|
|
90
|
+
### Codemod
|
|
91
|
+
|
|
92
|
+
#### `@mui/x-codemod@8.22.1`
|
|
93
|
+
|
|
94
|
+
Internal changes.
|
|
95
|
+
|
|
96
|
+
### Docs
|
|
97
|
+
|
|
98
|
+
- [docs] Add button to GitHub source code for the Data Grid advanced demos (DX-50) (#20633) @alelthomas
|
|
99
|
+
- [docs] Remove `seriesConfig` to prevent future confusion (#20678) @alexfauquette
|
|
100
|
+
- [docs] Revise the Data Grid's API object doc for clarity and style (#20649) @mapache-salvaje
|
|
101
|
+
- [docs] Update list of charts (#20479) @prakhargupta1
|
|
102
|
+
|
|
103
|
+
### Core
|
|
104
|
+
|
|
105
|
+
- [code-infra] Regression tests improvements (#20441) @Janpot
|
|
106
|
+
- [code-infra] Test utils upgrade (#20592) @Janpot
|
|
107
|
+
- [code-infra] Try to fix the Tree View flacky tests (#20573) @JCQuintas
|
|
108
|
+
|
|
109
|
+
## 8.22.0
|
|
110
|
+
|
|
111
|
+
_Dec 11, 2025_
|
|
112
|
+
|
|
113
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
114
|
+
|
|
115
|
+
- Each Tree View component now exposes its own hook to initialize the `apiRef` object with accurate typing:
|
|
116
|
+
|
|
117
|
+
```diff
|
|
118
|
+
-import { useTreeViewApiRef } from '@mui/x-tree-view/hooks';
|
|
119
|
+
+import { useSimpleTreeViewApiRef } from '@mui/x-tree-view/hooks';
|
|
120
|
+
-const apiRef = useTreeViewApiRef();
|
|
121
|
+
+const apiRef = useSimpleTreeViewApiRef();
|
|
122
|
+
|
|
123
|
+
-import { useTreeViewApiRef } from '@mui/x-tree-view/hooks';
|
|
124
|
+
+import { useRichTreeViewApiRef } from '@mui/x-tree-view/hooks';
|
|
125
|
+
-const apiRef = useTreeViewApiRef();
|
|
126
|
+
+const apiRef = useRichTreeViewApiRef();
|
|
127
|
+
|
|
128
|
+
-import { useTreeViewApiRef } from '@mui/x-tree-view/hooks';
|
|
129
|
+
+import { useRichTreeViewProApiRef } from '@mui/x-tree-view-pro/hooks';
|
|
130
|
+
-const apiRef = useTreeViewApiRef();
|
|
131
|
+
+const apiRef = useRichTreeViewProApiRef();
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
- 📚 [Tutorial](https://mui.com/x/react-data-grid/tutorials/server-side-data/) on building a Data Grid with server-side data
|
|
135
|
+
- 🐞 Bugfixes
|
|
136
|
+
|
|
137
|
+
Special thanks go out to this community member for their valuable contributions:
|
|
138
|
+
@kzhgit
|
|
139
|
+
|
|
140
|
+
The following team members contributed to this release:
|
|
141
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @mapache-salvaje, @michelengelen, @noraleonte, @oliviertassinari
|
|
142
|
+
|
|
143
|
+
### Data Grid
|
|
144
|
+
|
|
145
|
+
#### `@mui/x-data-grid@8.22.0`
|
|
146
|
+
|
|
147
|
+
- [DataGrid] Sync component props with theme defaults (#20590) @michelengelen
|
|
148
|
+
- [DataGrid] Add fallback for CSS `color-mix` if it is unsupported (#20597) @cherniavskii
|
|
149
|
+
- [DataGrid] Use `baseTooltip` slot for column header sort icon (#20460) @kzhgit
|
|
150
|
+
|
|
151
|
+
#### `@mui/x-data-grid-pro@8.22.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
152
|
+
|
|
153
|
+
Same changes as in `@mui/x-data-grid@8.22.0`.
|
|
154
|
+
|
|
155
|
+
#### `@mui/x-data-grid-premium@8.22.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
156
|
+
|
|
157
|
+
Same changes as in `@mui/x-data-grid-pro@8.22.0`, plus:
|
|
158
|
+
|
|
159
|
+
- [DataGridPremium] Handle pivoting column name generation for empty strings (#20608) @arminmeh
|
|
160
|
+
- [DataGridPremium] Pass a row with aggregated value to the custom aggregation function `valueFormatter` (#20607) @arminmeh
|
|
161
|
+
|
|
162
|
+
### Date and Time Pickers
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-date-pickers@8.22.0`
|
|
165
|
+
|
|
166
|
+
- [pickers] Fix invalid date tests (#20606) @michelengelen
|
|
167
|
+
|
|
168
|
+
#### `@mui/x-date-pickers-pro@8.22.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
169
|
+
|
|
170
|
+
Same changes as in `@mui/x-date-pickers@8.22.0`.
|
|
171
|
+
|
|
172
|
+
### Charts
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-charts@8.22.0`
|
|
175
|
+
|
|
176
|
+
- [charts] Add consistent animation duration and timing (#20564) @JCQuintas
|
|
177
|
+
- [charts] Extract a tooltip plugin from the interaction one (#20591) @alexfauquette
|
|
178
|
+
- [charts] General type improvements (#20565) @JCQuintas
|
|
179
|
+
- [charts] Place ordinal ticks according to a continuous scale (#19808) @alexfauquette
|
|
180
|
+
- [charts] Remove layout data from the tooltip internals (#20548) @alexfauquette
|
|
181
|
+
- [charts] Remove usage of focus outline for item highlight (#19856) @alexfauquette
|
|
182
|
+
- [charts] Simplify `MarkPlot` by moving calculation to `useMarkPlotData` (#20570) @JCQuintas
|
|
183
|
+
- [charts] Use `store.state` over `store.getSnapshot()` (#20616) @bernardobelchior
|
|
184
|
+
- [charts] Vendor flatqueue (#20610) @bernardobelchior
|
|
185
|
+
- [charts] Extract pie layout computation (#20611) @alexfauquette
|
|
186
|
+
- [charts][infra] Enable `@typescript-eslint/consistent-type-imports` eslint rules (#20560) @JCQuintas
|
|
187
|
+
- [charts][infra] Enable `import/no-cycle` eslint rules (#20554) @JCQuintas
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-charts-pro@8.22.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
190
|
+
|
|
191
|
+
Same changes as in `@mui/x-charts@8.22.0`, plus:
|
|
192
|
+
|
|
193
|
+
- [charts-pro] Display sankey labels on top of nodes (#20569) @alexfauquette
|
|
194
|
+
|
|
195
|
+
#### `@mui/x-charts-premium@8.22.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
196
|
+
|
|
197
|
+
Same changes as in `@mui/x-charts-pro@8.22.0`.
|
|
198
|
+
|
|
199
|
+
### Tree View
|
|
200
|
+
|
|
201
|
+
#### `@mui/x-tree-view@8.22.0`
|
|
202
|
+
|
|
203
|
+
- [tree view] Expose one hook per component to initialize the `apiRef` (#20235) @flaviendelangle
|
|
204
|
+
- [tree view] Update the typing of `updateItemChildren()` to accept `null` (#20483) @noraleonte
|
|
205
|
+
|
|
206
|
+
#### `@mui/x-tree-view-pro@8.22.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
207
|
+
|
|
208
|
+
Same changes as in `@mui/x-tree-view@8.22.0`.
|
|
209
|
+
|
|
210
|
+
### Codemod
|
|
211
|
+
|
|
212
|
+
#### `@mui/x-codemod@8.22.0`
|
|
213
|
+
|
|
214
|
+
Internal changes.
|
|
215
|
+
|
|
216
|
+
### Docs
|
|
217
|
+
|
|
218
|
+
- [docs] Add tutorial on building a Data Grid with server-side data (DX-22) (#19782) @mapache-salvaje
|
|
219
|
+
- [docs] Modify the default value for the stacking demo (#20596) @alexfauquette
|
|
220
|
+
- [docs] Revise the Charts Custom Components doc (#19793) @mapache-salvaje
|
|
221
|
+
- [docs] Remove copy-pasted `aria-label` (#20620) @alexfauquette
|
|
222
|
+
|
|
223
|
+
### Core
|
|
224
|
+
|
|
225
|
+
- [internal] Remove unsafe dependency version from range (#20574) @oliviertassinari
|
|
226
|
+
|
|
227
|
+
### Miscellaneous
|
|
228
|
+
|
|
229
|
+
- Bump `@mui/monorepo` digest to `800638d` (#20337) @renovate[bot]
|
|
230
|
+
- Bump `@next/eslint-plugin-next` to `15.5.7` (#20575) @renovate[bot]
|
|
231
|
+
- Bump GitHub Actions (#20577) @renovate[bot]
|
|
232
|
+
- Bump Tanstack query to `^5.90.12` (#20582) @renovate[bot]
|
|
233
|
+
- Bump Vite & Vitest (#20583) @renovate[bot]
|
|
234
|
+
- Bump `eslint` to `^8.48.1` (#20576) @renovate[bot]
|
|
235
|
+
- Bump `markdown-to-jsx` to `^9.3.2` (#20507) @renovate[bot]
|
|
236
|
+
- Bump `motion` to `^12.23.25` (#20579) @renovate[bot]
|
|
237
|
+
- Bump react monorepo to `19.2.1` (#20581) @renovate[bot]
|
|
238
|
+
- Bump `react-hook-form` to `^7.68.0` (#20584) @renovate[bot]
|
|
239
|
+
- Bump `react-router` to `^7.10.1` (#20341) @renovate[bot]
|
|
240
|
+
- Bump `tsx` to `^4.21.0` (#20585) @renovate[bot]
|
|
241
|
+
- Bump MUI infra packages (#20478) @renovate[bot]
|
|
242
|
+
- [infra] Automatically add teams to release PRs (#20558) @JCQuintas
|
|
243
|
+
- [infra] Fix codeowners typo (#20562) @JCQuintas
|
|
244
|
+
|
|
8
245
|
## 8.21.0
|
|
9
246
|
|
|
10
247
|
_Dec 3, 2025_
|
|
@@ -115,7 +352,7 @@ Internal changes.
|
|
|
115
352
|
- Bump react-hook-form to ^7.66.1 (#20497) @renovate[bot]
|
|
116
353
|
- Bump rimraf to ^6.1.2 (#20498) @renovate[bot]
|
|
117
354
|
- Bump webpack-bundle-analyzer to ^5.0.1 (#20508) @renovate[bot]
|
|
118
|
-
- Bump next to ^15.5.
|
|
355
|
+
- Bump next to ^15.5.7 [SECURITY] (#20555) @renovate[bot]
|
|
119
356
|
|
|
120
357
|
## 8.20.0
|
|
121
358
|
|
|
@@ -52,7 +52,7 @@ const RichTreeViewProRoot = exports.RichTreeViewProRoot = (0, _zeroStyled.styled
|
|
|
52
52
|
outline: 0,
|
|
53
53
|
position: 'relative'
|
|
54
54
|
});
|
|
55
|
-
const releaseInfo = "
|
|
55
|
+
const releaseInfo = "MTc2NjAxNjAwMDAwMA==";
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
@@ -120,7 +120,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
|
|
|
120
120
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
121
121
|
// ----------------------------------------------------------------------
|
|
122
122
|
/**
|
|
123
|
-
* The ref object that allows Tree View manipulation. Can be instantiated with `
|
|
123
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useRichTreeViewProApiRef()`.
|
|
124
124
|
*/
|
|
125
125
|
apiRef: _propTypes.default.shape({
|
|
126
126
|
current: _propTypes.default.shape({
|
|
@@ -39,7 +39,7 @@ export interface RichTreeViewProProps<R extends {}, Multiple extends boolean | u
|
|
|
39
39
|
*/
|
|
40
40
|
slotProps?: RichTreeViewProSlotProps<R, Multiple>;
|
|
41
41
|
/**
|
|
42
|
-
* The ref object that allows Tree View manipulation. Can be instantiated with `
|
|
42
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useRichTreeViewProApiRef()`.
|
|
43
43
|
*/
|
|
44
44
|
apiRef?: RichTreeViewProApiRef;
|
|
45
45
|
}
|
|
@@ -45,7 +45,7 @@ export const RichTreeViewProRoot = styled('ul', {
|
|
|
45
45
|
outline: 0,
|
|
46
46
|
position: 'relative'
|
|
47
47
|
});
|
|
48
|
-
const releaseInfo = "
|
|
48
|
+
const releaseInfo = "MTc2NjAxNjAwMDAwMA==";
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
@@ -113,7 +113,7 @@ process.env.NODE_ENV !== "production" ? RichTreeViewPro.propTypes = {
|
|
|
113
113
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
114
114
|
// ----------------------------------------------------------------------
|
|
115
115
|
/**
|
|
116
|
-
* The ref object that allows Tree View manipulation. Can be instantiated with `
|
|
116
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useRichTreeViewProApiRef()`.
|
|
117
117
|
*/
|
|
118
118
|
apiRef: PropTypes.shape({
|
|
119
119
|
current: PropTypes.shape({
|
|
@@ -39,7 +39,7 @@ export interface RichTreeViewProProps<R extends {}, Multiple extends boolean | u
|
|
|
39
39
|
*/
|
|
40
40
|
slotProps?: RichTreeViewProSlotProps<R, Multiple>;
|
|
41
41
|
/**
|
|
42
|
-
* The ref object that allows Tree View manipulation. Can be instantiated with `
|
|
42
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useRichTreeViewProApiRef()`.
|
|
43
43
|
*/
|
|
44
44
|
apiRef?: RichTreeViewProApiRef;
|
|
45
45
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useRichTreeViewProApiRef } from "./useRichTreeViewProApiRef.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useRichTreeViewProApiRef } from "./useRichTreeViewProApiRef.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
3
|
+
import { TreeViewDefaultItemModelProperties, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
4
|
+
import { RichTreeViewProPluginSignatures } from "../RichTreeViewPro/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Creates the ref to pass to the `apiRef` prop of the `RichTreeViewPro` component.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useRichTreeViewProApiRef<R extends TreeViewValidItem<R> = TreeViewDefaultItemModelProperties>(): React.RefObject<TreeViewPublicAPI<RichTreeViewProPluginSignatures> | undefined>;
|
package/esm/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export * from '@mui/x-tree-view/TreeItemLabelInput';
|
|
|
9
9
|
export { unstable_resetCleanupTracking } from '@mui/x-tree-view/internals';
|
|
10
10
|
export * from '@mui/x-tree-view/models';
|
|
11
11
|
export * from '@mui/x-tree-view/icons';
|
|
12
|
-
export * from '@mui/x-tree-view/hooks';
|
|
12
|
+
export * from '@mui/x-tree-view/hooks';
|
|
13
|
+
export * from "./hooks/index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view-pro v8.
|
|
2
|
+
* @mui/x-tree-view-pro v8.22.1
|
|
3
3
|
*
|
|
4
4
|
* @license SEE LICENSE IN LICENSE
|
|
5
5
|
* This source code is licensed under the SEE LICENSE IN LICENSE license found in the
|
|
@@ -19,4 +19,5 @@ export * from '@mui/x-tree-view/TreeItemLabelInput';
|
|
|
19
19
|
export { unstable_resetCleanupTracking } from '@mui/x-tree-view/internals';
|
|
20
20
|
export * from '@mui/x-tree-view/models';
|
|
21
21
|
export * from '@mui/x-tree-view/icons';
|
|
22
|
-
export * from '@mui/x-tree-view/hooks';
|
|
22
|
+
export * from '@mui/x-tree-view/hooks';
|
|
23
|
+
export * from "./hooks/index.js";
|
package/hooks/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useRichTreeViewProApiRef } from "./useRichTreeViewProApiRef.js";
|
package/hooks/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useRichTreeViewProApiRef", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _useRichTreeViewProApiRef.useRichTreeViewProApiRef;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _useRichTreeViewProApiRef = require("./useRichTreeViewProApiRef");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
3
|
+
import { TreeViewDefaultItemModelProperties, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
4
|
+
import { RichTreeViewProPluginSignatures } from "../RichTreeViewPro/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Creates the ref to pass to the `apiRef` prop of the `RichTreeViewPro` component.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useRichTreeViewProApiRef<R extends TreeViewValidItem<R> = TreeViewDefaultItemModelProperties>(): React.RefObject<TreeViewPublicAPI<RichTreeViewProPluginSignatures> | undefined>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useRichTreeViewProApiRef = useRichTreeViewProApiRef;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
/**
|
|
10
|
+
* Creates the ref to pass to the `apiRef` prop of the `RichTreeViewPro` component.
|
|
11
|
+
*/
|
|
12
|
+
function useRichTreeViewProApiRef() {
|
|
13
|
+
return React.useRef(undefined);
|
|
14
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export * from '@mui/x-tree-view/TreeItemLabelInput';
|
|
|
9
9
|
export { unstable_resetCleanupTracking } from '@mui/x-tree-view/internals';
|
|
10
10
|
export * from '@mui/x-tree-view/models';
|
|
11
11
|
export * from '@mui/x-tree-view/icons';
|
|
12
|
-
export * from '@mui/x-tree-view/hooks';
|
|
12
|
+
export * from '@mui/x-tree-view/hooks';
|
|
13
|
+
export * from "./hooks/index.js";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view-pro v8.
|
|
2
|
+
* @mui/x-tree-view-pro v8.22.1
|
|
3
3
|
*
|
|
4
4
|
* @license SEE LICENSE IN LICENSE
|
|
5
5
|
* This source code is licensed under the SEE LICENSE IN LICENSE license found in the
|
|
@@ -151,4 +151,16 @@ Object.keys(_hooks).forEach(function (key) {
|
|
|
151
151
|
return _hooks[key];
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
+
});
|
|
155
|
+
var _hooks2 = require("./hooks");
|
|
156
|
+
Object.keys(_hooks2).forEach(function (key) {
|
|
157
|
+
if (key === "default" || key === "__esModule") return;
|
|
158
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
159
|
+
if (key in exports && exports[key] === _hooks2[key]) return;
|
|
160
|
+
Object.defineProperty(exports, key, {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () {
|
|
163
|
+
return _hooks2[key];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
154
166
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view-pro",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.22.1",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Pro plan edition of the MUI X Tree View components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"react-transition-group": "^4.4.5",
|
|
41
41
|
"reselect": "^5.1.1",
|
|
42
42
|
"use-sync-external-store": "^1.6.0",
|
|
43
|
-
"@mui/x-internals": "8.
|
|
44
|
-
"@mui/x-license": "8.
|
|
45
|
-
"@mui/x-tree-view": "8.
|
|
43
|
+
"@mui/x-internals": "8.22.0",
|
|
44
|
+
"@mui/x-license": "8.22.0",
|
|
45
|
+
"@mui/x-tree-view": "8.22.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|