@mui/x-tree-view 7.23.2 → 7.23.6
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 +190 -0
- package/README.md +1 -1
- package/TreeItem2/TreeItem2.d.ts +1 -1
- package/index.js +1 -1
- package/internals/TreeViewProvider/TreeViewProvider.types.d.ts +1 -1
- package/internals/hooks/useInstanceEventHandler.js +1 -1
- package/internals/models/plugin.d.ts +1 -1
- package/internals/useTreeView/useTreeViewBuildContext.d.ts +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useInstanceEventHandler.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/hooks/useInstanceEventHandler.js +1 -1
- package/package.json +2 -2
- package/useTreeItem2/useTreeItem2.types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,196 @@
|
|
|
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.23.6
|
|
7
|
+
|
|
8
|
+
_Jan 9, 2025_
|
|
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
|
+
- 🌍 Add Chinese (Taiwan) (zh-TW) locale on the Date and Time Pickers
|
|
13
|
+
- 🌍 Improve Norwegian (nb-NO) locale on the Date and Time Pickers
|
|
14
|
+
- 🌍 Improve Dutch (nl-NL) locale on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
18
|
+
@josteinjhauge, @derek-0000, @nusr, @k-rajat19, @tomashauser.
|
|
19
|
+
Following are all team members who have contributed to this release:
|
|
20
|
+
@flaviendelangle, @LukasTy, @MBilalShafi, @arminmeh, @oliviertassinari, @cherniavskii.
|
|
21
|
+
|
|
22
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid@7.23.6`
|
|
27
|
+
|
|
28
|
+
- [DataGrid] Improve React 19 support (#16048) @LukasTy
|
|
29
|
+
- [DataGrid] Add `name` attribute to selection checkboxes (#16041) @derek-0000
|
|
30
|
+
- [DataGrid] Fix number filter field formatting values while typing (#16068) @arminmeh
|
|
31
|
+
- [DataGrid] Fix select all checkbox state reset with server side data (#16039) @MBilalShafi
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@7.23.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@7.23.6`.
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@7.23.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.6`.
|
|
40
|
+
|
|
41
|
+
### Date and Time Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@7.23.6`
|
|
44
|
+
|
|
45
|
+
- [pickers] Improve React 19 support (#16048) @LukasTy
|
|
46
|
+
- [l10n] Add Chinese (Taiwan) (zh-TW) locale (#16057) @nusr
|
|
47
|
+
- [l10n] Improve Norwegian (nb-NO) locale (#16083) @josteinjhauge
|
|
48
|
+
- [pickers] Support `date-fns-jalali` v4 (#16013) @LukasTy
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-date-pickers-pro@7.23.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-date-pickers@7.23.6`.
|
|
53
|
+
|
|
54
|
+
### Charts
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-charts@7.23.6`
|
|
57
|
+
|
|
58
|
+
- [charts] Improve React 19 support (#16048) @LukasTy
|
|
59
|
+
- [charts] Fix 301 redirection in the API documentation @oliviertassinari
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-charts-pro@7.23.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
62
|
+
|
|
63
|
+
Same changes as in `@mui/x-charts@7.23.6`.
|
|
64
|
+
|
|
65
|
+
### Tree View
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-tree-view@7.23.6`
|
|
68
|
+
|
|
69
|
+
- [TreeView] Improve React 19 support (#16048) @LukasTy
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-tree-view-pro@7.23.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-tree-view@7.23.6`.
|
|
74
|
+
|
|
75
|
+
### Docs
|
|
76
|
+
|
|
77
|
+
- [docs] Fix `EditingWithDatePickers` demo (#16047) @k-rajat19
|
|
78
|
+
- [docs] Fix doc warning for automatic children selection on tree view (#16037) @flaviendelangle
|
|
79
|
+
- [docs] Fix non-existing "adapter" property of `LocalizationProvider` (#16088) @tomashauser
|
|
80
|
+
|
|
81
|
+
### Core
|
|
82
|
+
|
|
83
|
+
- [core] Clarify the release strategy (#16012) @MBilalShafi
|
|
84
|
+
- [core] Update the `release:version` docs (#16040) @cherniavskii
|
|
85
|
+
|
|
86
|
+
## 7.23.5
|
|
87
|
+
|
|
88
|
+
_Dec 27, 2024_
|
|
89
|
+
|
|
90
|
+
Here are some highlights ✨:
|
|
91
|
+
|
|
92
|
+
- 🐞 Fix version mismatch issue in Data Grid codesandbox/stackblitz demos
|
|
93
|
+
|
|
94
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
95
|
+
|
|
96
|
+
### Data Grid
|
|
97
|
+
|
|
98
|
+
#### `@mui/x-data-grid@7.23.5`
|
|
99
|
+
|
|
100
|
+
No changes since `@mui/x-data-grid@v7.23.4`.
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-data-grid-pro@7.23.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
103
|
+
|
|
104
|
+
Same changes as in `@mui/x-data-grid@7.23.5`.
|
|
105
|
+
|
|
106
|
+
#### `@mui/x-data-grid-premium@7.23.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
107
|
+
|
|
108
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.5`.
|
|
109
|
+
|
|
110
|
+
## v7.23.4
|
|
111
|
+
|
|
112
|
+
_Dec 27, 2024_
|
|
113
|
+
|
|
114
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
115
|
+
|
|
116
|
+
- 🌍 Improve Dutch (nl-NL) locale on the Data Grid
|
|
117
|
+
- 🐞 Bugfixes
|
|
118
|
+
|
|
119
|
+
Special thanks go out to the community contributor who has helped make this release possible:
|
|
120
|
+
@JoepVerkoelen.
|
|
121
|
+
Following are all team members who have contributed to this release:
|
|
122
|
+
@arminmeh, @oliviertassinari.
|
|
123
|
+
|
|
124
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
125
|
+
|
|
126
|
+
### Data Grid
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-data-grid@7.23.4`
|
|
129
|
+
|
|
130
|
+
- [DataGrid] Fix header filters showing clear button while empty (#15990) @k-rajat19
|
|
131
|
+
- [DataGrid] Replace `forwardRef` with a shim for forward compatibility (#15984) @lauri865
|
|
132
|
+
- [l10n] Improve Dutch (nl-NL) locale (#15920) @JoepVerkoelen
|
|
133
|
+
|
|
134
|
+
#### `@mui/x-data-grid-pro@7.23.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
135
|
+
|
|
136
|
+
Same changes as in `@mui/x-data-grid@7.23.4`.
|
|
137
|
+
|
|
138
|
+
#### `@mui/x-data-grid-premium@7.23.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
139
|
+
|
|
140
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.4`, plus:
|
|
141
|
+
|
|
142
|
+
- [DataGridPremium] Fix column pinning with checkbox selection and row grouping (#15949) @k-rajat19
|
|
143
|
+
|
|
144
|
+
### Docs
|
|
145
|
+
|
|
146
|
+
- [docs] Fix outdated link to handbook (#15855) @oliviertassinari
|
|
147
|
+
|
|
148
|
+
## 7.23.3
|
|
149
|
+
|
|
150
|
+
_Dec 19, 2024_
|
|
151
|
+
|
|
152
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
153
|
+
|
|
154
|
+
- 🌍 Improve Korean (ko-KR) locale on the Data Grid
|
|
155
|
+
- 🐞 Bugfixes
|
|
156
|
+
|
|
157
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
158
|
+
@k-rajat19, @good-jinu.
|
|
159
|
+
Following are all team members who have contributed to this release:
|
|
160
|
+
@KenanYusuf, @MBilalShafi, @arminmeh, @flaviendelangle.
|
|
161
|
+
|
|
162
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
163
|
+
|
|
164
|
+
### Data Grid
|
|
165
|
+
|
|
166
|
+
#### `@mui/x-data-grid@7.23.3`
|
|
167
|
+
|
|
168
|
+
- [DataGrid] Allow passing custom props to `.main` element (#15919) @MBilalShafi
|
|
169
|
+
- [DataGrid] Consider `columnGroupHeaderHeight` prop in `getTotalHeaderHeight` method (#15927) @k-rajat19
|
|
170
|
+
- [DataGrid] Deprecate `indeterminateCheckboxAction` prop (#15862) @MBilalShafi
|
|
171
|
+
- [DataGrid] Fix `aria-label` value for group checkboxes (#15861) @MBilalShafi
|
|
172
|
+
- [DataGrid] Fix autosizing with virtualized columns (#15929) @k-rajat19
|
|
173
|
+
- [DataGrid] Round dimensions to avoid subpixel rendering error (#15873) @KenanYusuf
|
|
174
|
+
- [DataGrid] Toggle menu on click in `<GridActionsCell />` (#15871) @k-rajat19
|
|
175
|
+
- [DataGrid] Trigger row spanning computation on rows update (#15872) @MBilalShafi
|
|
176
|
+
- [l10n] Improve Korean (ko-KR) locale (#15906) @good-jinu
|
|
177
|
+
|
|
178
|
+
#### `@mui/x-data-grid-pro@7.23.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
179
|
+
|
|
180
|
+
Same changes as in `@mui/x-data-grid@7.23.3`.
|
|
181
|
+
|
|
182
|
+
#### `@mui/x-data-grid-premium@7.23.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
183
|
+
|
|
184
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.3`.
|
|
185
|
+
|
|
186
|
+
### Date and Time Pickers
|
|
187
|
+
|
|
188
|
+
#### `@mui/x-date-pickers@7.23.3`
|
|
189
|
+
|
|
190
|
+
- [pickers] Add verification to disable skipped hours in spring forward DST (#15918) @flaviendelangle
|
|
191
|
+
|
|
192
|
+
#### `@mui/x-date-pickers-pro@7.23.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
193
|
+
|
|
194
|
+
Same changes as in `@mui/x-date-pickers@7.23.3`.
|
|
195
|
+
|
|
6
196
|
## 7.23.2
|
|
7
197
|
|
|
8
198
|
_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
|
|
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
|
|
package/TreeItem2/TreeItem2.d.ts
CHANGED
|
@@ -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" | "
|
|
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
|
};
|
package/index.js
CHANGED
|
@@ -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) {
|
|
@@ -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> = {
|
|
@@ -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
|
@@ -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
|
@@ -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.
|
|
3
|
+
"version": "7.23.6",
|
|
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.
|
|
42
|
+
"@mui/x-internals": "7.23.6"
|
|
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;
|