@mui/x-tree-view 7.23.2 → 7.24.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,275 @@
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.24.0
7
+
8
+ _Jan 17, 2025_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🔄 Data Grid [Scroll restoration](https://next.mui.com/x/react-data-grid/scrolling/#scroll-restoration)
13
+ - 🐞 Bugfixes
14
+
15
+ Special thanks go out to the community contributors who have helped make this release possible:
16
+ @lauri865, @AxharKhan.
17
+ Following are all team members who have contributed to this release:
18
+ @KenanYusuf, @arminmeh, @cherniavskii, @michelengelen, @samuelsycamore, @LukasTy.
19
+
20
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
21
+
22
+ ### Data Grid
23
+
24
+ #### `@mui/x-data-grid@7.24.0`
25
+
26
+ - [DataGrid] Fix resizing right pinned column (#16193) @KenanYusuf
27
+ - [DataGrid] Improve scrollbar deadzone with overlay scrollbars (#16212) @lauri865
28
+ - [DataGrid] Scroll restoration (#16208) @lauri865
29
+ - [DataGrid] Fix row, cell and header memoizations (#16195) @lauri865
30
+ - [l10n] Improve Urdu (ur-PK) locale (#16081) @AxharKhan
31
+
32
+ #### `@mui/x-data-grid-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
33
+
34
+ Same changes as in `@mui/x-data-grid@7.24.0`, plus:
35
+
36
+ - [DataGridPro] Add test for column pinning with disabled column virtualization (#16196) @cherniavskii
37
+ - [DataGridPro] Fix width of right-pinned column group during resize (#16207) @cherniavskii
38
+
39
+ #### `@mui/x-data-grid-premium@7.24.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
40
+
41
+ Same changes as in `@mui/x-data-grid-pro@7.24.0`.
42
+
43
+ ### Date and Time Pickers
44
+
45
+ #### `@mui/x-date-pickers@7.24.0`
46
+
47
+ Internal changes.
48
+
49
+ #### `@mui/x-date-pickers-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
50
+
51
+ Same changes as in `@mui/x-date-pickers@7.24.0`.
52
+
53
+ ### Charts
54
+
55
+ #### `@mui/x-charts@7.24.0`
56
+
57
+ Internal changes.
58
+
59
+ #### `@mui/x-charts-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
60
+
61
+ Same changes as in `@mui/x-charts@7.24.0`.
62
+
63
+ ### Tree View
64
+
65
+ #### `@mui/x-tree-view@7.24.0`
66
+
67
+ Internal changes.
68
+
69
+ #### `@mui/x-tree-view-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
70
+
71
+ Same changes as in `@mui/x-tree-view@7.24.0`.
72
+
73
+ ### Docs
74
+
75
+ - [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
76
+ - [docs] Fix demo rendering issue on Codesandbox (#16129) @arminmeh
77
+
78
+ ### Core
79
+
80
+ - [core] Type all references as `RefObject` (#16125) @arminmeh
81
+ - [code-infra] Refactor `react` and `react-dom` definitions to simplify dep resolving (#16214) @LukasTy
82
+ - [infra] Improve cherry-pick action target list (#16188) @michelengelen
83
+ - [test] Fix flaky column pinning unit test (#16209) @cherniavskii
84
+
85
+ ## 7.23.6
86
+
87
+ _Jan 9, 2025_
88
+
89
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
90
+
91
+ - 🌍 Add Chinese (Taiwan) (zh-TW) locale on the Date and Time Pickers
92
+ - 🌍 Improve Norwegian (nb-NO) locale on the Date and Time Pickers
93
+ - 🌍 Improve Dutch (nl-NL) locale on the Data Grid
94
+ - 🐞 Bugfixes
95
+
96
+ Special thanks go out to the community contributors who have helped make this release possible:
97
+ @josteinjhauge, @derek-0000, @nusr, @k-rajat19, @tomashauser.
98
+ Following are all team members who have contributed to this release:
99
+ @flaviendelangle, @LukasTy, @MBilalShafi, @arminmeh, @oliviertassinari, @cherniavskii.
100
+
101
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
102
+
103
+ ### Data Grid
104
+
105
+ #### `@mui/x-data-grid@7.23.6`
106
+
107
+ - [DataGrid] Improve React 19 support (#16048) @LukasTy
108
+ - [DataGrid] Add `name` attribute to selection checkboxes (#16041) @derek-0000
109
+ - [DataGrid] Fix number filter field formatting values while typing (#16068) @arminmeh
110
+ - [DataGrid] Fix select all checkbox state reset with server side data (#16039) @MBilalShafi
111
+
112
+ #### `@mui/x-data-grid-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
113
+
114
+ Same changes as in `@mui/x-data-grid@7.23.6`.
115
+
116
+ #### `@mui/x-data-grid-premium@7.23.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
117
+
118
+ Same changes as in `@mui/x-data-grid-pro@7.23.6`.
119
+
120
+ ### Date and Time Pickers
121
+
122
+ #### `@mui/x-date-pickers@7.23.6`
123
+
124
+ - [pickers] Improve React 19 support (#16048) @LukasTy
125
+ - [l10n] Add Chinese (Taiwan) (zh-TW) locale (#16057) @nusr
126
+ - [l10n] Improve Norwegian (nb-NO) locale (#16083) @josteinjhauge
127
+ - [pickers] Support `date-fns-jalali` v4 (#16013) @LukasTy
128
+
129
+ #### `@mui/x-date-pickers-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
130
+
131
+ Same changes as in `@mui/x-date-pickers@7.23.6`.
132
+
133
+ ### Charts
134
+
135
+ #### `@mui/x-charts@7.23.6`
136
+
137
+ - [charts] Improve React 19 support (#16048) @LukasTy
138
+ - [charts] Fix 301 redirection in the API documentation @oliviertassinari
139
+
140
+ #### `@mui/x-charts-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
141
+
142
+ Same changes as in `@mui/x-charts@7.23.6`.
143
+
144
+ ### Tree View
145
+
146
+ #### `@mui/x-tree-view@7.23.6`
147
+
148
+ - [TreeView] Improve React 19 support (#16048) @LukasTy
149
+
150
+ #### `@mui/x-tree-view-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
151
+
152
+ Same changes as in `@mui/x-tree-view@7.23.6`.
153
+
154
+ ### Docs
155
+
156
+ - [docs] Fix `EditingWithDatePickers` demo (#16047) @k-rajat19
157
+ - [docs] Fix doc warning for automatic children selection on tree view (#16037) @flaviendelangle
158
+ - [docs] Fix non-existing "adapter" property of `LocalizationProvider` (#16088) @tomashauser
159
+
160
+ ### Core
161
+
162
+ - [core] Clarify the release strategy (#16012) @MBilalShafi
163
+ - [core] Update the `release:version` docs (#16040) @cherniavskii
164
+
165
+ ## 7.23.5
166
+
167
+ _Dec 27, 2024_
168
+
169
+ Here are some highlights ✨:
170
+
171
+ - 🐞 Fix version mismatch issue in Data Grid codesandbox/stackblitz demos
172
+
173
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
174
+
175
+ ### Data Grid
176
+
177
+ #### `@mui/x-data-grid@7.23.5`
178
+
179
+ No changes since `@mui/x-data-grid@v7.23.4`.
180
+
181
+ #### `@mui/x-data-grid-pro@7.23.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
182
+
183
+ Same changes as in `@mui/x-data-grid@7.23.5`.
184
+
185
+ #### `@mui/x-data-grid-premium@7.23.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
186
+
187
+ Same changes as in `@mui/x-data-grid-pro@7.23.5`.
188
+
189
+ ## v7.23.4
190
+
191
+ _Dec 27, 2024_
192
+
193
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
194
+
195
+ - 🌍 Improve Dutch (nl-NL) locale on the Data Grid
196
+ - 🐞 Bugfixes
197
+
198
+ Special thanks go out to the community contributor who has helped make this release possible:
199
+ @JoepVerkoelen.
200
+ Following are all team members who have contributed to this release:
201
+ @arminmeh, @oliviertassinari.
202
+
203
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
204
+
205
+ ### Data Grid
206
+
207
+ #### `@mui/x-data-grid@7.23.4`
208
+
209
+ - [DataGrid] Fix header filters showing clear button while empty (#15990) @k-rajat19
210
+ - [DataGrid] Replace `forwardRef` with a shim for forward compatibility (#15984) @lauri865
211
+ - [l10n] Improve Dutch (nl-NL) locale (#15920) @JoepVerkoelen
212
+
213
+ #### `@mui/x-data-grid-pro@7.23.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
214
+
215
+ Same changes as in `@mui/x-data-grid@7.23.4`.
216
+
217
+ #### `@mui/x-data-grid-premium@7.23.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
218
+
219
+ Same changes as in `@mui/x-data-grid-pro@7.23.4`, plus:
220
+
221
+ - [DataGridPremium] Fix column pinning with checkbox selection and row grouping (#15949) @k-rajat19
222
+
223
+ ### Docs
224
+
225
+ - [docs] Fix outdated link to handbook (#15855) @oliviertassinari
226
+
227
+ ## 7.23.3
228
+
229
+ _Dec 19, 2024_
230
+
231
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
232
+
233
+ - 🌍 Improve Korean (ko-KR) locale on the Data Grid
234
+ - 🐞 Bugfixes
235
+
236
+ Special thanks go out to the community contributors who have helped make this release possible:
237
+ @k-rajat19, @good-jinu.
238
+ Following are all team members who have contributed to this release:
239
+ @KenanYusuf, @MBilalShafi, @arminmeh, @flaviendelangle.
240
+
241
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
242
+
243
+ ### Data Grid
244
+
245
+ #### `@mui/x-data-grid@7.23.3`
246
+
247
+ - [DataGrid] Allow passing custom props to `.main` element (#15919) @MBilalShafi
248
+ - [DataGrid] Consider `columnGroupHeaderHeight` prop in `getTotalHeaderHeight` method (#15927) @k-rajat19
249
+ - [DataGrid] Deprecate `indeterminateCheckboxAction` prop (#15862) @MBilalShafi
250
+ - [DataGrid] Fix `aria-label` value for group checkboxes (#15861) @MBilalShafi
251
+ - [DataGrid] Fix autosizing with virtualized columns (#15929) @k-rajat19
252
+ - [DataGrid] Round dimensions to avoid subpixel rendering error (#15873) @KenanYusuf
253
+ - [DataGrid] Toggle menu on click in `<GridActionsCell />` (#15871) @k-rajat19
254
+ - [DataGrid] Trigger row spanning computation on rows update (#15872) @MBilalShafi
255
+ - [l10n] Improve Korean (ko-KR) locale (#15906) @good-jinu
256
+
257
+ #### `@mui/x-data-grid-pro@7.23.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
258
+
259
+ Same changes as in `@mui/x-data-grid@7.23.3`.
260
+
261
+ #### `@mui/x-data-grid-premium@7.23.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
262
+
263
+ Same changes as in `@mui/x-data-grid-pro@7.23.3`.
264
+
265
+ ### Date and Time Pickers
266
+
267
+ #### `@mui/x-date-pickers@7.23.3`
268
+
269
+ - [pickers] Add verification to disable skipped hours in spring forward DST (#15918) @flaviendelangle
270
+
271
+ #### `@mui/x-date-pickers-pro@7.23.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
272
+
273
+ Same changes as in `@mui/x-date-pickers@7.23.3`.
274
+
6
275
  ## 7.23.2
7
276
 
8
277
  _Dec 12, 2024_
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # MUI X Tree View
2
2
 
3
3
  This package is the Community plan edition of the Tree View components.
4
- It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
4
+ It's part of [MUI X](https://mui.com/x/), an open-core extension of our Core libraries, with advanced components.
5
5
 
6
6
  ## Installation
7
7
 
@@ -28,7 +28,7 @@ export interface RichTreeViewSlotProps<R extends {}, Multiple extends boolean |
28
28
  root?: SlotComponentProps<'ul', {}, RichTreeViewProps<R, Multiple>>;
29
29
  item?: SlotComponentPropsFromProps<TreeItemProps | TreeItem2Props, {}, RichTreeViewItemSlotOwnerState>;
30
30
  }
31
- export type RichTreeViewApiRef = React.MutableRefObject<TreeViewPublicAPI<RichTreeViewPluginSignatures> | undefined>;
31
+ export type RichTreeViewApiRef = React.RefObject<TreeViewPublicAPI<RichTreeViewPluginSignatures> | undefined>;
32
32
  export interface RichTreeViewPropsBase extends React.HTMLAttributes<HTMLUListElement> {
33
33
  className?: string;
34
34
  /**
@@ -15,7 +15,7 @@ export interface SimpleTreeViewSlots extends SimpleTreeViewPluginSlots {
15
15
  export interface SimpleTreeViewSlotProps extends SimpleTreeViewPluginSlotProps {
16
16
  root?: SlotComponentProps<'ul', {}, {}>;
17
17
  }
18
- export type SimpleTreeViewApiRef = React.MutableRefObject<TreeViewPublicAPI<SimpleTreeViewPluginSignatures> | undefined>;
18
+ export type SimpleTreeViewApiRef = React.RefObject<TreeViewPublicAPI<SimpleTreeViewPluginSignatures> | undefined>;
19
19
  export interface SimpleTreeViewProps<Multiple extends boolean | undefined> extends SimpleTreeViewPluginParameters<Multiple>, React.HTMLAttributes<HTMLUListElement> {
20
20
  /**
21
21
  * The content of the component.
@@ -16,7 +16,7 @@ export declare const TreeItem2GroupTransition: import("@emotion/styled").StyledC
16
16
  }, {}, {}>;
17
17
  export declare const TreeItem2Checkbox: import("@emotion/styled").StyledComponent<Pick<Omit<CheckboxProps & {
18
18
  visible: boolean;
19
- }, "ref"> & React.RefAttributes<HTMLButtonElement>, "hidden" | "visible" | "color" | "content" | "size" | "style" | "icon" | "translate" | "disabled" | "form" | "slot" | "title" | "suppressHydrationWarning" | "className" | "id" | "lang" | "name" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "readOnly" | "required" | "action" | "checked" | "component" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "checkedIcon" | "inputProps" | "inputRef" | "indeterminate" | "indeterminateIcon" | keyof React.RefAttributes<HTMLButtonElement>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
19
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>, "hidden" | "visible" | "color" | "content" | "size" | "style" | "icon" | "translate" | "disabled" | "form" | "slot" | "title" | "action" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "readOnly" | "required" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "checkedIcon" | "inputProps" | "inputRef" | "indeterminate" | "indeterminateIcon" | keyof React.RefAttributes<HTMLButtonElement>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
20
20
  type TreeItem2Component = ((props: TreeItem2Props & React.RefAttributes<HTMLLIElement>) => React.JSX.Element) & {
21
21
  propTypes?: any;
22
22
  };
@@ -3,4 +3,4 @@ import { TreeViewAnyPluginSignature, TreeViewPublicAPI } from '../internals/mode
3
3
  /**
4
4
  * Hook that instantiates a [[TreeViewApiRef]].
5
5
  */
6
- export declare const useTreeViewApiRef: <TSignatures extends readonly TreeViewAnyPluginSignature[] = readonly [import("../internals").UseTreeViewItemsSignature, import("../internals").UseTreeViewExpansionSignature, import("../internals").UseTreeViewSelectionSignature, import("../internals").UseTreeViewFocusSignature, import("../internals").UseTreeViewKeyboardNavigationSignature, import("../internals").UseTreeViewIconsSignature, import("../internals").UseTreeViewLabelSignature]>() => React.MutableRefObject<TreeViewPublicAPI<TSignatures> | undefined>;
6
+ export declare const useTreeViewApiRef: <TSignatures extends readonly TreeViewAnyPluginSignature[] = readonly [import("../internals").UseTreeViewItemsSignature, import("../internals").UseTreeViewExpansionSignature, import("../internals").UseTreeViewSelectionSignature, import("../internals").UseTreeViewFocusSignature, import("../internals").UseTreeViewKeyboardNavigationSignature, import("../internals").UseTreeViewIconsSignature, import("../internals").UseTreeViewLabelSignature]>() => React.RefObject<TreeViewPublicAPI<TSignatures> | undefined>;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.23.2
2
+ * @mui/x-tree-view v7.24.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -5,7 +5,7 @@ export type TreeViewItemPluginsRunner = <TProps extends {}>(props: TProps) => Re
5
5
  export type TreeViewContextValue<TSignatures extends readonly TreeViewAnyPluginSignature[], TOptionalSignatures extends readonly TreeViewAnyPluginSignature[] = []> = MergeSignaturesProperty<[...TreeViewCorePluginSignatures, ...TSignatures], 'contextValue'> & Partial<MergeSignaturesProperty<TOptionalSignatures, 'contextValue'>> & {
6
6
  instance: TreeViewInstance<TSignatures, TOptionalSignatures>;
7
7
  publicAPI: TreeViewPublicAPI<TSignatures, TOptionalSignatures>;
8
- rootRef: React.RefObject<HTMLUListElement>;
8
+ rootRef: React.RefObject<HTMLUListElement | null>;
9
9
  wrapItem: TreeItemWrapper<TSignatures>;
10
10
  wrapRoot: TreeRootWrapper<TSignatures>;
11
11
  runItemPlugins: TreeViewItemPluginsRunner;
@@ -14,7 +14,7 @@ export function createUseInstanceEventHandler(registryContainer) {
14
14
  }
15
15
  const [objectRetainedByReact] = React.useState(new ObjectToBeRetainedByReact());
16
16
  const subscription = React.useRef(null);
17
- const handlerRef = React.useRef();
17
+ const handlerRef = React.useRef(undefined);
18
18
  handlerRef.current = handler;
19
19
  const cleanupTokenRef = React.useRef(null);
20
20
  if (!subscription.current && handlerRef.current) {
@@ -3,8 +3,8 @@ import { EventHandlers } from '@mui/utils';
3
3
  import type { UseTreeItem2ContentSlotOwnProps, UseTreeItem2DragAndDropOverlaySlotOwnProps, UseTreeItem2LabelInputSlotOwnProps, UseTreeItem2RootSlotOwnProps } from '../../useTreeItem2';
4
4
  import type { UseTreeItem2Interactions } from '../../hooks/useTreeItem2Utils/useTreeItem2Utils';
5
5
  export interface TreeViewItemPluginSlotPropsEnhancerParams {
6
- rootRefObject: React.MutableRefObject<HTMLLIElement | null>;
7
- contentRefObject: React.MutableRefObject<HTMLDivElement | null>;
6
+ rootRefObject: React.RefObject<HTMLLIElement | null>;
7
+ contentRefObject: React.RefObject<HTMLDivElement | null>;
8
8
  externalEventHandlers: EventHandlers;
9
9
  interactions: Pick<UseTreeItem2Interactions, 'handleSaveItemLabel' | 'handleCancelItemLabelEditing'>;
10
10
  }
@@ -15,7 +15,7 @@ export interface TreeViewPluginOptions<TSignature extends TreeViewAnyPluginSigna
15
15
  experimentalFeatures: TreeViewUsedExperimentalFeatures<TSignature>;
16
16
  models: TreeViewUsedModels<TSignature>;
17
17
  setState: React.Dispatch<React.SetStateAction<TreeViewUsedState<TSignature>>>;
18
- rootRef: React.RefObject<HTMLUListElement>;
18
+ rootRef: React.RefObject<HTMLUListElement | null>;
19
19
  plugins: TreeViewPlugin<TreeViewAnyPluginSignature>[];
20
20
  }
21
21
  type TreeViewModelsInitializer<TSignature extends TreeViewAnyPluginSignature> = {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { TreeViewAnyPluginSignature } from '../models';
3
3
  import { UseTreeViewBaseProps, UseTreeViewParameters, UseTreeViewReturnValue } from './useTreeView.types';
4
- export declare function useTreeViewApiInitialization<T>(inputApiRef: React.MutableRefObject<T | undefined> | undefined): T;
4
+ export declare function useTreeViewApiInitialization<T>(inputApiRef: React.RefObject<T | undefined> | undefined): T;
5
5
  export declare const useTreeView: <TSignatures extends readonly TreeViewAnyPluginSignature[], TProps extends Partial<UseTreeViewBaseProps<TSignatures>>>({ plugins: inPlugins, rootRef, props, }: UseTreeViewParameters<TSignatures, TProps>) => UseTreeViewReturnValue<TSignatures>;
@@ -8,7 +8,7 @@ export interface UseTreeViewParameters<TSignatures extends readonly TreeViewAnyP
8
8
  props: TProps;
9
9
  }
10
10
  export interface UseTreeViewBaseProps<TSignatures extends readonly TreeViewAnyPluginSignature[]> {
11
- apiRef: React.MutableRefObject<TreeViewPublicAPI<TSignatures> | undefined> | undefined;
11
+ apiRef: React.RefObject<TreeViewPublicAPI<TSignatures> | undefined> | undefined;
12
12
  slots: MergeSignaturesProperty<TSignatures, 'slots'>;
13
13
  slotProps: MergeSignaturesProperty<TSignatures, 'slotProps'>;
14
14
  experimentalFeatures: TreeViewExperimentalFeatures<TSignatures>;
@@ -6,5 +6,5 @@ export declare const useTreeViewBuildContext: <TSignatures extends readonly Tree
6
6
  plugins: ConvertSignaturesIntoPlugins<readonly [...TreeViewCorePluginSignatures, ...TSignatures]>;
7
7
  instance: TreeViewInstance<TSignatures>;
8
8
  publicAPI: TreeViewPublicAPI<TSignatures>;
9
- rootRef: React.RefObject<HTMLUListElement>;
9
+ rootRef: React.RefObject<HTMLUListElement | null>;
10
10
  }) => TreeViewContextValue<TSignatures>;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.23.2
2
+ * @mui/x-tree-view v7.24.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -14,7 +14,7 @@ export function createUseInstanceEventHandler(registryContainer) {
14
14
  }
15
15
  const [objectRetainedByReact] = React.useState(new ObjectToBeRetainedByReact());
16
16
  const subscription = React.useRef(null);
17
- const handlerRef = React.useRef();
17
+ const handlerRef = React.useRef(undefined);
18
18
  handlerRef.current = handler;
19
19
  const cleanupTokenRef = React.useRef(null);
20
20
  if (!subscription.current && handlerRef.current) {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.23.2
2
+ * @mui/x-tree-view v7.24.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -22,7 +22,7 @@ function createUseInstanceEventHandler(registryContainer) {
22
22
  }
23
23
  const [objectRetainedByReact] = React.useState(new ObjectToBeRetainedByReact());
24
24
  const subscription = React.useRef(null);
25
- const handlerRef = React.useRef();
25
+ const handlerRef = React.useRef(undefined);
26
26
  handlerRef.current = handler;
27
27
  const cleanupTokenRef = React.useRef(null);
28
28
  if (!subscription.current && handlerRef.current) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-tree-view",
3
- "version": "7.23.2",
3
+ "version": "7.24.0",
4
4
  "description": "The community edition of the Tree View components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -39,7 +39,7 @@
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.23.0"
42
+ "@mui/x-internals": "7.24.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.9.0",
@@ -85,7 +85,7 @@ export interface UseTreeItem2CheckboxSlotOwnProps {
85
85
  checked: boolean;
86
86
  onChange: TreeViewCancellableEventHandler<React.ChangeEvent<HTMLInputElement>>;
87
87
  disabled: boolean;
88
- ref: React.RefObject<HTMLButtonElement>;
88
+ ref: React.RefObject<HTMLButtonElement | null>;
89
89
  tabIndex: -1;
90
90
  }
91
91
  export type UseTreeItem2CheckboxSlotProps<ExternalProps = {}> = ExternalProps & UseTreeItem2CheckboxSlotOwnProps;