@mui/x-tree-view-pro 8.0.0-alpha.1 → 8.0.0-alpha.10
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 +1903 -231
- package/README.md +1 -1
- package/RichTreeViewPro/RichTreeViewPro.types.d.ts +3 -3
- package/index.js +1 -1
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.d.ts +30 -10
- package/internals/utils/releaseInfo.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +4 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# MUI X Tree View
|
|
2
2
|
|
|
3
3
|
This package is the Pro 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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
|
-
import { SxProps } from '@mui/system';
|
|
4
|
-
import { SlotComponentProps } from '@mui/utils';
|
|
3
|
+
import { SxProps } from '@mui/system/styleFunctionSx';
|
|
4
|
+
import { SlotComponentProps } from '@mui/utils/types';
|
|
5
5
|
import { TreeViewPublicAPI, TreeViewExperimentalFeatures, RichTreeViewItemsSlots, RichTreeViewItemsSlotProps } from '@mui/x-tree-view/internals';
|
|
6
6
|
import { RichTreeViewProClasses } from './richTreeViewProClasses';
|
|
7
7
|
import { RichTreeViewProPluginParameters, RichTreeViewProPluginSlotProps, RichTreeViewProPluginSlots, RichTreeViewProPluginSignatures } from './RichTreeViewPro.plugins';
|
|
@@ -15,7 +15,7 @@ export interface RichTreeViewProSlots extends RichTreeViewProPluginSlots, RichTr
|
|
|
15
15
|
export interface RichTreeViewProSlotProps<R extends {}, Multiple extends boolean | undefined> extends RichTreeViewProPluginSlotProps, RichTreeViewItemsSlotProps {
|
|
16
16
|
root?: SlotComponentProps<'ul', {}, RichTreeViewProProps<R, Multiple>>;
|
|
17
17
|
}
|
|
18
|
-
export type RichTreeViewProApiRef = React.
|
|
18
|
+
export type RichTreeViewProApiRef = React.RefObject<TreeViewPublicAPI<RichTreeViewProPluginSignatures> | undefined>;
|
|
19
19
|
export interface RichTreeViewProPropsBase extends React.HTMLAttributes<HTMLUListElement> {
|
|
20
20
|
className?: string;
|
|
21
21
|
/**
|
package/index.js
CHANGED
package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.d.ts
CHANGED
|
@@ -31,7 +31,9 @@ export declare const selectorItemsReorderingDraggedItemProperties: ((state: any,
|
|
|
31
31
|
targetItemId: string;
|
|
32
32
|
newPosition: import("./useTreeViewItemsReordering.types").TreeViewItemReorderPosition | null;
|
|
33
33
|
action: import("@mui/x-tree-view").TreeViewItemsReorderingAction | null;
|
|
34
|
-
} | null, resultFuncArgs_1:
|
|
34
|
+
} | null, resultFuncArgs_1: {
|
|
35
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
36
|
+
}, resultFuncArgs_2: string) => {
|
|
35
37
|
newPosition: import("./useTreeViewItemsReordering.types").TreeViewItemReorderPosition | null;
|
|
36
38
|
action: import("@mui/x-tree-view").TreeViewItemsReorderingAction;
|
|
37
39
|
targetDepth: number;
|
|
@@ -41,7 +43,9 @@ export declare const selectorItemsReorderingDraggedItemProperties: ((state: any,
|
|
|
41
43
|
targetItemId: string;
|
|
42
44
|
newPosition: import("./useTreeViewItemsReordering.types").TreeViewItemReorderPosition | null;
|
|
43
45
|
action: import("@mui/x-tree-view").TreeViewItemsReorderingAction | null;
|
|
44
|
-
} | null, resultFuncArgs_1:
|
|
46
|
+
} | null, resultFuncArgs_1: {
|
|
47
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
48
|
+
}, resultFuncArgs_2: string) => {
|
|
45
49
|
newPosition: import("./useTreeViewItemsReordering.types").TreeViewItemReorderPosition | null;
|
|
46
50
|
action: import("@mui/x-tree-view").TreeViewItemsReorderingAction;
|
|
47
51
|
targetDepth: number;
|
|
@@ -62,15 +66,21 @@ export declare const selectorItemsReorderingDraggedItemProperties: ((state: any,
|
|
|
62
66
|
action: import("@mui/x-tree-view").TreeViewItemsReorderingAction | null;
|
|
63
67
|
} | null, ((state: import("@mui/x-tree-view/internals/corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("@mui/x-tree-view/internals").UseTreeViewItemsState<import("@mui/x-tree-view").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
64
68
|
cacheKey: import("@mui/x-tree-view/internals/models").TreeViewStateCacheKey;
|
|
65
|
-
}) =>
|
|
69
|
+
}) => {
|
|
70
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
71
|
+
}) & {
|
|
66
72
|
clearCache: () => void;
|
|
67
73
|
resultsCount: () => number;
|
|
68
74
|
resetResultsCount: () => void;
|
|
69
75
|
} & {
|
|
70
76
|
resultFunc: (resultFuncArgs_0: {
|
|
71
77
|
disabledItemsFocusable: boolean;
|
|
72
|
-
itemModelLookup:
|
|
73
|
-
|
|
78
|
+
itemModelLookup: {
|
|
79
|
+
[itemId: string]: import("@mui/x-tree-view").TreeViewBaseItem<import("@mui/x-tree-view").TreeViewDefaultItemModelProperties>;
|
|
80
|
+
};
|
|
81
|
+
itemMetaLookup: {
|
|
82
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
83
|
+
};
|
|
74
84
|
itemOrderedChildrenIdsLookup: {
|
|
75
85
|
[parentItemId: string]: string[];
|
|
76
86
|
};
|
|
@@ -79,11 +89,17 @@ export declare const selectorItemsReorderingDraggedItemProperties: ((state: any,
|
|
|
79
89
|
[itemId: string]: number;
|
|
80
90
|
};
|
|
81
91
|
};
|
|
82
|
-
}) =>
|
|
92
|
+
}) => {
|
|
93
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
94
|
+
};
|
|
83
95
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
84
96
|
disabledItemsFocusable: boolean;
|
|
85
|
-
itemModelLookup:
|
|
86
|
-
|
|
97
|
+
itemModelLookup: {
|
|
98
|
+
[itemId: string]: import("@mui/x-tree-view").TreeViewBaseItem<import("@mui/x-tree-view").TreeViewDefaultItemModelProperties>;
|
|
99
|
+
};
|
|
100
|
+
itemMetaLookup: {
|
|
101
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
102
|
+
};
|
|
87
103
|
itemOrderedChildrenIdsLookup: {
|
|
88
104
|
[parentItemId: string]: string[];
|
|
89
105
|
};
|
|
@@ -92,12 +108,16 @@ export declare const selectorItemsReorderingDraggedItemProperties: ((state: any,
|
|
|
92
108
|
[itemId: string]: number;
|
|
93
109
|
};
|
|
94
110
|
};
|
|
95
|
-
}) =>
|
|
111
|
+
}) => {
|
|
112
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
113
|
+
}) & {
|
|
96
114
|
clearCache: () => void;
|
|
97
115
|
resultsCount: () => number;
|
|
98
116
|
resetResultsCount: () => void;
|
|
99
117
|
};
|
|
100
|
-
lastResult: () =>
|
|
118
|
+
lastResult: () => {
|
|
119
|
+
[itemId: string]: import("@mui/x-tree-view/internals").TreeViewItemMeta;
|
|
120
|
+
};
|
|
101
121
|
dependencies: [import("@mui/x-tree-view/internals/utils/selectors").TreeViewRootSelector<import("@mui/x-tree-view/internals").UseTreeViewItemsSignature>];
|
|
102
122
|
recomputations: () => number;
|
|
103
123
|
resetRecomputations: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTczODI5OTYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTczODI5OTYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/node/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.getReleaseInfo = void 0;
|
|
7
|
-
var
|
|
8
|
+
var _ponyfillGlobal = _interopRequireDefault(require("@mui/utils/ponyfillGlobal"));
|
|
8
9
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
10
|
+
const releaseInfo = "MTczODI5OTYwMDAwMA==";
|
|
10
11
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
12
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
13
|
// eslint-disable-next-line no-useless-concat
|
|
13
14
|
if (releaseInfo === '__RELEASE' + '_INFO__') {
|
|
14
15
|
// eslint-disable-next-line no-underscore-dangle
|
|
15
|
-
return
|
|
16
|
+
return _ponyfillGlobal.default.__MUI_RELEASE_INFO__;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
return releaseInfo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view-pro",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.10",
|
|
4
4
|
"description": "The Pro plan edition of the Tree View components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"directory": "packages/x-tree-view-pro"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/runtime": "^7.26.
|
|
36
|
+
"@babel/runtime": "^7.26.7",
|
|
37
37
|
"@mui/utils": "^5.16.6 || ^6.0.0",
|
|
38
|
-
"@types/react-transition-group": "^4.4.
|
|
38
|
+
"@types/react-transition-group": "^4.4.12",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
42
|
"reselect": "^5.1.1",
|
|
43
|
-
"use-sync-external-store": "^1.
|
|
44
|
-
"@mui/x-internals": "8.0.0-alpha.
|
|
45
|
-
"@mui/x-
|
|
46
|
-
"@mui/x-
|
|
43
|
+
"use-sync-external-store": "^1.4.0",
|
|
44
|
+
"@mui/x-internals": "8.0.0-alpha.10",
|
|
45
|
+
"@mui/x-tree-view": "8.0.0-alpha.10",
|
|
46
|
+
"@mui/x-license": "8.0.0-alpha.10"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11.9.0",
|