@mui/x-tree-view 7.29.0 → 7.29.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,83 @@
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.29.1
7
+
8
+ _Apr 23, 2025_
9
+
10
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+
14
+ Special thanks go out to the community contributors who have helped make this release possible:
15
+ @lhilgert9
16
+
17
+ Following are all team members who have contributed to this release:
18
+ @arminmeh, @cherniavskii, @flaviendelangle, @LukasTy, @romgrk.
19
+
20
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
21
+
22
+ ### Data Grid
23
+
24
+ #### `@mui/x-data-grid@7.29.1`
25
+
26
+ - [DataGrid] Prevent scrollbars from showing on top (#17410) @romgrk
27
+
28
+ #### `@mui/x-data-grid-pro@7.29.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
29
+
30
+ Same changes as in `@mui/x-data-grid@7.29.1`, plus:
31
+
32
+ - [DataGridPro] Avoid proptypes warnings with header filters in React 17 (#17492) @cherniavskii
33
+ - [DataGridPro] Fix expandable rows detail content height updates (#17509) @arminmeh
34
+ - [DataGridPro] Fix row virtualization not working in list view (#17404) @cherniavskii
35
+ - [DataGridPro] Move locales re-export to allow proper tree shaking (#17438) @lhilgert9
36
+
37
+ #### `@mui/x-data-grid-premium@7.29.1` [![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@7.29.1`, plus:
40
+
41
+ - [DataGridPremium] Use `groupingValueGetter` for row grouping on the server (#17423) @cherniavskii
42
+
43
+ ### Date and Time Pickers
44
+
45
+ #### `@mui/x-date-pickers@7.29.1`
46
+
47
+ Internal changes.
48
+
49
+ #### `@mui/x-date-pickers-pro@7.29.1` [![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.29.1`.
52
+
53
+ ### Charts
54
+
55
+ #### `@mui/x-charts@7.29.1`
56
+
57
+ Internal changes.
58
+
59
+ #### `@mui/x-charts-pro@7.29.1` [![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.29.1`.
62
+
63
+ ### Tree View
64
+
65
+ #### `@mui/x-tree-view@7.29.1`
66
+
67
+ Internal changes.
68
+
69
+ #### `@mui/x-tree-view-pro@7.29.1` [![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.29.1`, plus:
72
+
73
+ - [RichTreeViewPro] Fix drag and drop issue with label editing (#17415) @flaviendelangle
74
+
75
+ ### Docs
76
+
77
+ - [docs] Use MUI X v7 packages in CodeSandbox and StackBlitz (#17516) @cherniavskii
78
+
79
+ ### Core
80
+
81
+ - [core] Bump monorepo (#17437) @LukasTy
82
+
6
83
  ## 7.29.0
7
84
 
8
85
  _Apr 16, 2025_
@@ -40,7 +40,7 @@ export function useTreeItemState(itemId) {
40
40
  };
41
41
  const handleSelection = event => {
42
42
  if (!disabled) {
43
- if (!focused) {
43
+ if (!focused && !editing) {
44
44
  instance.focusItem(event, itemId);
45
45
  }
46
46
  const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
@@ -54,7 +54,7 @@ export const useTreeItem2Utils = ({
54
54
  if (status.disabled) {
55
55
  return;
56
56
  }
57
- if (!status.focused) {
57
+ if (!status.focused && !status.editing) {
58
58
  instance.focusItem(event, itemId);
59
59
  }
60
60
  const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TreeViewAnyPluginSignature, TreeViewPublicAPI } from '../internals/models';
3
+ import { RichTreeViewPluginSignatures } from '../RichTreeView/RichTreeView.plugins';
3
4
  /**
4
5
  * Hook that instantiates a [[TreeViewApiRef]].
5
6
  */
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>;
7
+ export declare const useTreeViewApiRef: <TSignatures extends readonly TreeViewAnyPluginSignature[] = RichTreeViewPluginSignatures>() => React.RefObject<TreeViewPublicAPI<TSignatures> | undefined>;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.29.0
2
+ * @mui/x-tree-view v7.29.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -40,7 +40,7 @@ export function useTreeItemState(itemId) {
40
40
  };
41
41
  const handleSelection = event => {
42
42
  if (!disabled) {
43
- if (!focused) {
43
+ if (!focused && !editing) {
44
44
  instance.focusItem(event, itemId);
45
45
  }
46
46
  const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
@@ -54,7 +54,7 @@ export const useTreeItem2Utils = ({
54
54
  if (status.disabled) {
55
55
  return;
56
56
  }
57
- if (!status.focused) {
57
+ if (!status.focused && !status.editing) {
58
58
  instance.focusItem(event, itemId);
59
59
  }
60
60
  const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.29.0
2
+ * @mui/x-tree-view v7.29.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -45,7 +45,7 @@ function useTreeItemState(itemId) {
45
45
  };
46
46
  const handleSelection = event => {
47
47
  if (!disabled) {
48
- if (!focused) {
48
+ if (!focused && !editing) {
49
49
  instance.focusItem(event, itemId);
50
50
  }
51
51
  const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
@@ -59,7 +59,7 @@ const useTreeItem2Utils = ({
59
59
  if (status.disabled) {
60
60
  return;
61
61
  }
62
- if (!status.focused) {
62
+ if (!status.focused && !status.editing) {
63
63
  instance.focusItem(event, itemId);
64
64
  }
65
65
  const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-tree-view v7.29.0
2
+ * @mui/x-tree-view v7.29.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.29.0",
3
+ "version": "7.29.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",
@@ -1,2 +1,2 @@
1
1
  import { UseTreeItem2Parameters, UseTreeItem2ReturnValue, UseTreeItem2MinimalPlugins, UseTreeItem2OptionalPlugins } from './useTreeItem2.types';
2
- export declare const useTreeItem2: <TSignatures extends UseTreeItem2MinimalPlugins = UseTreeItem2MinimalPlugins, TOptionalSignatures extends UseTreeItem2OptionalPlugins = readonly []>(parameters: UseTreeItem2Parameters) => UseTreeItem2ReturnValue<TSignatures, TOptionalSignatures>;
2
+ export declare const useTreeItem2: <TSignatures extends UseTreeItem2MinimalPlugins = UseTreeItem2MinimalPlugins, TOptionalSignatures extends UseTreeItem2OptionalPlugins = UseTreeItem2OptionalPlugins>(parameters: UseTreeItem2Parameters) => UseTreeItem2ReturnValue<TSignatures, TOptionalSignatures>;