@mui/x-tree-view 7.23.6 → 7.24.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 CHANGED
@@ -3,6 +3,156 @@
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.1
7
+
8
+ _Jan 24, 2025_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+ - 🌍 Improve Persian (fa-IR) locale on the Data Grid
14
+
15
+ Special thanks go out to the community contributors who have helped make this release possible:
16
+ @mostafaRoosta74, @lauri865.
17
+ Following are all team members who have contributed to this release:
18
+ @alexfauquette, @JCQuintas, @cherniavskii, @LukasTy, @arminmeh.
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.24.1`
23
+
24
+ - [DataGrid] Fix toggling preference panel from toolbar (#16276) @lauri865
25
+ - [DataGrid] Only try to mount filter button if there are filters present (#16269) @lauri865
26
+ - [DataGrid] Revert `apiRef` to be `MutableRefObject` for React versions < 19 (#16320) @arminmeh
27
+ - [l10n] Improve Persian (fa-IR) locale (#15964) @mostafaRoosta74
28
+
29
+ #### `@mui/x-data-grid-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
30
+
31
+ Same changes as in `@mui/x-data-grid@7.24.1`.
32
+
33
+ #### `@mui/x-data-grid-premium@7.24.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
34
+
35
+ Same changes as in `@mui/x-data-grid-pro@7.24.1`.
36
+
37
+ ### Date and Time Pickers
38
+
39
+ #### `@mui/x-date-pickers@7.24.1`
40
+
41
+ - [fields] Reset `all` selected state on section edit (#16232) @LukasTy
42
+
43
+ #### `@mui/x-date-pickers-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
44
+
45
+ Same changes as in `@mui/x-date-pickers@7.24.1`.
46
+
47
+ ### Charts
48
+
49
+ #### `@mui/x-charts@7.24.1`
50
+
51
+ - [charts] Handle case where gradient stop `offset` could be `Infinite` (@JCQuintas) (#16309) @JCQuintas
52
+
53
+ #### `@mui/x-charts-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
54
+
55
+ Same changes as in `@mui/x-charts@7.24.1`.
56
+
57
+ ### Tree View
58
+
59
+ #### `@mui/x-tree-view@7.24.1`
60
+
61
+ Internal changes.
62
+
63
+ #### `@mui/x-tree-view-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
64
+
65
+ Same changes as in `@mui/x-tree-view@7.24.1`.
66
+
67
+ ### Docs
68
+
69
+ - [docs] Fix `domainLimit` definition (#16271) @alexfauquette
70
+
71
+ ### Core
72
+
73
+ - [core] Make `@mui/x-internals` a dependency of `@mui/x-license` (#16265) @alexfauquette
74
+ - [test] Fix flaky column pinning tests (#16228) @cherniavskii
75
+ - [test] Fix flaky tests (#16264) @lauri865
76
+
77
+ ## 7.24.0
78
+
79
+ _Jan 17, 2025_
80
+
81
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
82
+
83
+ - 🔄 Data Grid [Scroll restoration](https://next.mui.com/x/react-data-grid/scrolling/#scroll-restoration)
84
+ - 🐞 Bugfixes
85
+
86
+ Special thanks go out to the community contributors who have helped make this release possible:
87
+ @lauri865, @AxharKhan.
88
+ Following are all team members who have contributed to this release:
89
+ @KenanYusuf, @arminmeh, @cherniavskii, @michelengelen, @samuelsycamore, @LukasTy.
90
+
91
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
92
+
93
+ ### Data Grid
94
+
95
+ #### `@mui/x-data-grid@7.24.0`
96
+
97
+ - [DataGrid] Fix resizing right pinned column (#16193) @KenanYusuf
98
+ - [DataGrid] Improve scrollbar deadzone with overlay scrollbars (#16212) @lauri865
99
+ - [DataGrid] Scroll restoration (#16208) @lauri865
100
+ - [DataGrid] Fix row, cell and header memoizations (#16195) @lauri865
101
+ - [l10n] Improve Urdu (ur-PK) locale (#16081) @AxharKhan
102
+
103
+ #### `@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')
104
+
105
+ Same changes as in `@mui/x-data-grid@7.24.0`, plus:
106
+
107
+ - [DataGridPro] Add test for column pinning with disabled column virtualization (#16196) @cherniavskii
108
+ - [DataGridPro] Fix width of right-pinned column group during resize (#16207) @cherniavskii
109
+
110
+ #### `@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')
111
+
112
+ Same changes as in `@mui/x-data-grid-pro@7.24.0`.
113
+
114
+ ### Date and Time Pickers
115
+
116
+ #### `@mui/x-date-pickers@7.24.0`
117
+
118
+ Internal changes.
119
+
120
+ #### `@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')
121
+
122
+ Same changes as in `@mui/x-date-pickers@7.24.0`.
123
+
124
+ ### Charts
125
+
126
+ #### `@mui/x-charts@7.24.0`
127
+
128
+ Internal changes.
129
+
130
+ #### `@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')
131
+
132
+ Same changes as in `@mui/x-charts@7.24.0`.
133
+
134
+ ### Tree View
135
+
136
+ #### `@mui/x-tree-view@7.24.0`
137
+
138
+ Internal changes.
139
+
140
+ #### `@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')
141
+
142
+ Same changes as in `@mui/x-tree-view@7.24.0`.
143
+
144
+ ### Docs
145
+
146
+ - [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
147
+ - [docs] Fix demo rendering issue on Codesandbox (#16129) @arminmeh
148
+
149
+ ### Core
150
+
151
+ - [core] Type all references as `RefObject` (#16125) @arminmeh
152
+ - [code-infra] Refactor `react` and `react-dom` definitions to simplify dep resolving (#16214) @LukasTy
153
+ - [infra] Improve cherry-pick action target list (#16188) @michelengelen
154
+ - [test] Fix flaky column pinning unit test (#16209) @cherniavskii
155
+
6
156
  ## 7.23.6
7
157
 
8
158
  _Jan 9, 2025_
@@ -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.
@@ -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.6
2
+ * @mui/x-tree-view v7.24.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -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
  }
@@ -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>;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.23.6
2
+ * @mui/x-tree-view v7.24.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.23.6
2
+ * @mui/x-tree-view v7.24.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-tree-view",
3
- "version": "7.23.6",
3
+ "version": "7.24.1",
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.6"
42
+ "@mui/x-internals": "7.24.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.9.0",