From 8f5ed256872bef55c43fb7a3b043452db9d045de Mon Sep 17 00:00:00 2001 From: delangle Date: Wed, 28 Feb 2024 10:41:18 +0100 Subject: [PATCH 1/5] [Tree View] Create pro package --- .codesandbox/ci.json | 3 +- .eslintrc.js | 2 + babel.config.js | 1 + docs/babel.config.js | 1 + .../pages/x/api/tree-view/rich-tree-view.json | 3 +- .../x/api/tree-view/simple-tree-view.json | 3 +- docs/pages/x/api/tree-view/tree-item.json | 3 +- docs/pages/x/api/tree-view/tree-view.json | 3 +- docs/scripts/createXTypeScriptProjects.ts | 21 +++++- packages/x-charts/package.json | 2 +- packages/x-data-grid-premium/README.md | 2 +- packages/x-data-grid-premium/package.json | 2 +- packages/x-data-grid-pro/README.md | 2 +- packages/x-data-grid-pro/package.json | 2 +- packages/x-data-grid/README.md | 2 +- packages/x-data-grid/package.json | 2 +- packages/x-date-pickers-pro/README.md | 2 +- packages/x-date-pickers-pro/package.json | 2 +- packages/x-date-pickers/README.md | 2 +- packages/x-date-pickers/package.json | 2 +- packages/x-tree-view-pro/LICENSE | 11 +++ packages/x-tree-view-pro/README.md | 26 +++++++ packages/x-tree-view-pro/package.json | 69 +++++++++++++++++++ packages/x-tree-view-pro/src/index.ts | 1 + packages/x-tree-view-pro/tsconfig.build.json | 19 +++++ packages/x-tree-view-pro/tsconfig.json | 13 ++++ packages/x-tree-view/README.md | 2 +- packages/x-tree-view/package.json | 2 +- .../treeViewSettings/getComponentInfo.ts | 7 +- scripts/x-tree-view-pro.exports.json | 48 +++++++++++++ tsconfig.json | 2 + webpackBaseConfig.js | 1 + yarn.lock | 20 +++++- 33 files changed, 259 insertions(+), 24 deletions(-) create mode 100644 packages/x-tree-view-pro/LICENSE create mode 100644 packages/x-tree-view-pro/README.md create mode 100644 packages/x-tree-view-pro/package.json create mode 100644 packages/x-tree-view-pro/src/index.ts create mode 100644 packages/x-tree-view-pro/tsconfig.build.json create mode 100644 packages/x-tree-view-pro/tsconfig.json create mode 100644 scripts/x-tree-view-pro.exports.json diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index e08318b0ba92c..cadf03b4f49f2 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -22,7 +22,8 @@ "@mui/x-date-pickers": "packages/x-date-pickers/build", "@mui/x-date-pickers-pro": "packages/x-date-pickers-pro/build", "@mui/x-charts": "packages/x-charts/build", - "@mui/x-tree-view": "packages/x-tree-view/build" + "@mui/x-tree-view": "packages/x-tree-view/build", + "@mui/x-tree-view-pro": "packages/x-tree-view-pro/build" }, "sandboxes": ["/bug-reproductions/x-data-grid"], "silent": true diff --git a/.eslintrc.js b/.eslintrc.js index cfd1113f822de..d0d25e6ec0b6e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -163,6 +163,8 @@ module.exports = { buildPackageRestrictedImports('@mui/x-data-grid-generator', 'grid/x-data-grid-generator'), buildPackageRestrictedImports('@mui/x-pickers', 'x-pickers'), buildPackageRestrictedImports('@mui/x-pickers-pro', 'x-pickers-pro'), + buildPackageRestrictedImports('@mui/x-tree-view', 'x-tree-view'), + buildPackageRestrictedImports('@mui/x-tree-view-pro', 'x-tree-view-pro'), buildPackageRestrictedImports('@mui/x-license', 'x-license'), ], }; diff --git a/babel.config.js b/babel.config.js index 4b9c46dc91c7c..3a881927e9381 100644 --- a/babel.config.js +++ b/babel.config.js @@ -16,6 +16,7 @@ const defaultAlias = { '@mui/x-date-pickers-pro': resolveAliasPath('./packages/x-date-pickers-pro/src'), '@mui/x-charts': resolveAliasPath('./packages/x-charts/src'), '@mui/x-tree-view': resolveAliasPath('./packages/x-tree-view/src'), + '@mui/x-tree-view-pro': resolveAliasPath('./packages/x-tree-view-pro/src'), '@mui/markdown': '@mui/monorepo/packages/markdown', '@mui/material-nextjs': '@mui/monorepo/packages/mui-material-nextjs/src', '@mui-internal/api-docs-builder': resolveAliasPath( diff --git a/docs/babel.config.js b/docs/babel.config.js index d7a30a01f9136..07a1ef0354775 100644 --- a/docs/babel.config.js +++ b/docs/babel.config.js @@ -10,6 +10,7 @@ const alias = { '@mui/x-date-pickers-pro': '../packages/x-date-pickers-pro/src', '@mui/x-charts': '../packages/x-charts/src', '@mui/x-tree-view': '../packages/x-tree-view/src', + '@mui/x-tree-view-pro': '../packages/x-tree-view-pro/src', '@mui/x-license': '../packages/x-license/src', '@mui/docs': '../node_modules/@mui/monorepo/packages/mui-docs/src', '@mui/markdown': '../node_modules/@mui/monorepo/packages/markdown', diff --git a/docs/pages/x/api/tree-view/rich-tree-view.json b/docs/pages/x/api/tree-view/rich-tree-view.json index 891044b6b1873..87d065c84e040 100644 --- a/docs/pages/x/api/tree-view/rich-tree-view.json +++ b/docs/pages/x/api/tree-view/rich-tree-view.json @@ -90,7 +90,8 @@ "name": "RichTreeView", "imports": [ "import { RichTreeView } from '@mui/x-tree-view/RichTreeView';", - "import { RichTreeView } from '@mui/x-tree-view';" + "import { RichTreeView } from '@mui/x-tree-view';", + "import { RichTreeView } from '@mui/x-tree-view-pro';" ], "slots": [ { diff --git a/docs/pages/x/api/tree-view/simple-tree-view.json b/docs/pages/x/api/tree-view/simple-tree-view.json index f24417dee5b0d..05905067884b9 100644 --- a/docs/pages/x/api/tree-view/simple-tree-view.json +++ b/docs/pages/x/api/tree-view/simple-tree-view.json @@ -61,7 +61,8 @@ "name": "SimpleTreeView", "imports": [ "import { SimpleTreeView } from '@mui/x-tree-view/SimpleTreeView';", - "import { SimpleTreeView } from '@mui/x-tree-view';" + "import { SimpleTreeView } from '@mui/x-tree-view';", + "import { SimpleTreeView } from '@mui/x-tree-view-pro';" ], "slots": [ { diff --git a/docs/pages/x/api/tree-view/tree-item.json b/docs/pages/x/api/tree-view/tree-item.json index 81a9ed2ce85bb..34b98cc47deb8 100644 --- a/docs/pages/x/api/tree-view/tree-item.json +++ b/docs/pages/x/api/tree-view/tree-item.json @@ -30,7 +30,8 @@ "name": "TreeItem", "imports": [ "import { TreeItem } from '@mui/x-tree-view/TreeItem';", - "import { TreeItem } from '@mui/x-tree-view';" + "import { TreeItem } from '@mui/x-tree-view';", + "import { TreeItem } from '@mui/x-tree-view-pro';" ], "slots": [ { "name": "collapseIcon", "description": "The icon used to collapse the node.", "class": null }, diff --git a/docs/pages/x/api/tree-view/tree-view.json b/docs/pages/x/api/tree-view/tree-view.json index 5eb73fe0d4ad9..ff45de05c9cf7 100644 --- a/docs/pages/x/api/tree-view/tree-view.json +++ b/docs/pages/x/api/tree-view/tree-view.json @@ -61,7 +61,8 @@ "name": "TreeView", "imports": [ "import { TreeView } from '@mui/x-tree-view/TreeView';", - "import { TreeView } from '@mui/x-tree-view';" + "import { TreeView } from '@mui/x-tree-view';", + "import { TreeView } from '@mui/x-tree-view-pro';" ], "slots": [ { diff --git a/docs/scripts/createXTypeScriptProjects.ts b/docs/scripts/createXTypeScriptProjects.ts index 43d10d66f14b5..18f49f64dbcd6 100644 --- a/docs/scripts/createXTypeScriptProjects.ts +++ b/docs/scripts/createXTypeScriptProjects.ts @@ -37,7 +37,8 @@ export type XProjectNames = | 'x-date-pickers' | 'x-date-pickers-pro' | 'x-charts' - | 'x-tree-view'; + | 'x-tree-view' + | 'x-tree-view-pro'; export type XTypeScriptProjects = Map; @@ -264,5 +265,23 @@ export const createXTypeScriptProjects = () => { }), ); + projects.set( + 'x-tree-view-pro', + createXTypeScriptProject({ + name: 'x-tree-view-pro', + rootPath: path.join(workspaceRoot, 'packages/x-tree-view-pro'), + entryPointPath: 'src/index.ts', + documentationFolderName: 'tree-view', + getComponentsWithPropTypes: getComponentPaths({ + folders: ['src'], + includeUnstableComponents: true, + }), + getComponentsWithApiDoc: getComponentPaths({ + folders: ['src'], + includeUnstableComponents: true, + }), + }), + ); + return projects; }; diff --git a/packages/x-charts/package.json b/packages/x-charts/package.json index 884a64ad57d7e..7e53e47c81f08 100644 --- a/packages/x-charts/package.json +++ b/packages/x-charts/package.json @@ -1,7 +1,7 @@ { "name": "@mui/x-charts", "version": "7.0.0-beta.4", - "description": "The community edition of the charts components (MUI X).", + "description": "The community edition of the Charts components (MUI X).", "author": "MUI Team", "main": "./src/index.js", "license": "MIT", diff --git a/packages/x-data-grid-premium/README.md b/packages/x-data-grid-premium/README.md index 7724595d2cafd..e80a46106cbdb 100644 --- a/packages/x-data-grid-premium/README.md +++ b/packages/x-data-grid-premium/README.md @@ -1,6 +1,6 @@ # MUI X Data Grid Premium -This package is the Premium plan edition of the data grid component. +This package is the Premium plan edition of the Data Grid components. It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components. ## Installation diff --git a/packages/x-data-grid-premium/package.json b/packages/x-data-grid-premium/package.json index b30d98dfc8ff3..d8d939e3fa61e 100644 --- a/packages/x-data-grid-premium/package.json +++ b/packages/x-data-grid-premium/package.json @@ -1,7 +1,7 @@ { "name": "@mui/x-data-grid-premium", "version": "7.0.0-beta.4", - "description": "The Premium plan edition of the data grid component (MUI X).", + "description": "The Premium plan edition of the Data Grid Components (MUI X).", "author": "MUI Team", "main": "src/index.ts", "license": "SEE LICENSE IN LICENSE", diff --git a/packages/x-data-grid-pro/README.md b/packages/x-data-grid-pro/README.md index f9b2321cd2302..e6b8470ff9080 100644 --- a/packages/x-data-grid-pro/README.md +++ b/packages/x-data-grid-pro/README.md @@ -1,6 +1,6 @@ # MUI X Data Grid Pro -This package is the Pro plan edition of the data grid component. +This package is the Pro plan edition of the Data Grid component. It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components. ## Installation diff --git a/packages/x-data-grid-pro/package.json b/packages/x-data-grid-pro/package.json index b8d2031f114cb..4b204b4030dcb 100644 --- a/packages/x-data-grid-pro/package.json +++ b/packages/x-data-grid-pro/package.json @@ -1,7 +1,7 @@ { "name": "@mui/x-data-grid-pro", "version": "7.0.0-beta.4", - "description": "The Pro plan edition of the data grid component (MUI X).", + "description": "The Pro plan edition of the Data Grid components (MUI X).", "author": "MUI Team", "main": "src/index.ts", "license": "SEE LICENSE IN LICENSE", diff --git a/packages/x-data-grid/README.md b/packages/x-data-grid/README.md index 5699b96f350bc..6f6353474440e 100644 --- a/packages/x-data-grid/README.md +++ b/packages/x-data-grid/README.md @@ -1,6 +1,6 @@ # MUI X Data Grid -This package is the Community plan edition of the data grid component. +This package is the Community plan edition of the Data Grid components. It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components. ## Installation diff --git a/packages/x-data-grid/package.json b/packages/x-data-grid/package.json index 635819a74aac1..4c179aef0d3cb 100644 --- a/packages/x-data-grid/package.json +++ b/packages/x-data-grid/package.json @@ -1,7 +1,7 @@ { "name": "@mui/x-data-grid", "version": "7.0.0-beta.4", - "description": "The community edition of the data grid component (MUI X).", + "description": "The Community plan edition of the Data Grid components (MUI X).", "author": "MUI Team", "main": "src/index.ts", "license": "MIT", diff --git a/packages/x-date-pickers-pro/README.md b/packages/x-date-pickers-pro/README.md index 0ce0ae95c5d60..376dc12fafc19 100644 --- a/packages/x-date-pickers-pro/README.md +++ b/packages/x-date-pickers-pro/README.md @@ -1,6 +1,6 @@ # MUI X Date Pickers Pro -This package is the commercial edition of the date and time picker components. +This package is the Pro plan edition of the Date and Time Picker Components. It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components. ## Installation diff --git a/packages/x-date-pickers-pro/package.json b/packages/x-date-pickers-pro/package.json index 1823294ffac00..76efdf5f011b1 100644 --- a/packages/x-date-pickers-pro/package.json +++ b/packages/x-date-pickers-pro/package.json @@ -1,7 +1,7 @@ { "name": "@mui/x-date-pickers-pro", "version": "7.0.0-beta.4", - "description": "The commercial edition of the date picker components (MUI X).", + "description": "The Pro plan edition of the Date and Time Picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", "license": "SEE LICENSE IN LICENSE", diff --git a/packages/x-date-pickers/README.md b/packages/x-date-pickers/README.md index e29aeb5ea76d2..137b0b5e8d2c2 100644 --- a/packages/x-date-pickers/README.md +++ b/packages/x-date-pickers/README.md @@ -1,6 +1,6 @@ # MUI X Date Pickers -This package is the community edition of the date and time picker components. +This package is the Community plan edition of the Date and Time Picker components. It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components. ## Installation diff --git a/packages/x-date-pickers/package.json b/packages/x-date-pickers/package.json index b32a080268ca6..30dd2d8f03a5d 100644 --- a/packages/x-date-pickers/package.json +++ b/packages/x-date-pickers/package.json @@ -1,7 +1,7 @@ { "name": "@mui/x-date-pickers", "version": "7.0.0-beta.4", - "description": "The community edition of the date picker components (MUI X).", + "description": "The community edition of the Date and Time Picker components (MUI X).", "author": "MUI Team", "main": "src/index.ts", "license": "MIT", diff --git a/packages/x-tree-view-pro/LICENSE b/packages/x-tree-view-pro/LICENSE new file mode 100644 index 0000000000000..bda47bde65477 --- /dev/null +++ b/packages/x-tree-view-pro/LICENSE @@ -0,0 +1,11 @@ +Commercial License + +Copyright (c) 2020 Material-UI SAS + +MUI X Pro (https://mui.com/pricing/) is commercial software. You MUST agree to the +End User License Agreement (EULA: https://mui.com/r/x-license-eula) to be able to +use the software. + +This means that you either need to purchase a commercial license at +https://mui.com/r/x-get-license?scope=pro or be eligible for the Evaluation (trial) +licenses detailed at https://mui.com/r/x-license-trial. diff --git a/packages/x-tree-view-pro/README.md b/packages/x-tree-view-pro/README.md new file mode 100644 index 0000000000000..7f48bdf17d354 --- /dev/null +++ b/packages/x-tree-view-pro/README.md @@ -0,0 +1,26 @@ +# MUI X Tree View + +This package is the Pro plan edition of the Tree View components. +It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components. + +## Installation + +Install the package in your project directory with: + +```bash +npm install @mui/x-tree-view-pro +``` + +This component has the following peer dependencies that you will need to install as well. + +```json +"peerDependencies": { + "@mui/material": "^5.15.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" +}, +``` + +## Documentation + +Visit [https://mui.com/x/react-tree-view/](https://mui.com/x/react-tree-view/) to view the full documentation. diff --git a/packages/x-tree-view-pro/package.json b/packages/x-tree-view-pro/package.json new file mode 100644 index 0000000000000..e05208a36d601 --- /dev/null +++ b/packages/x-tree-view-pro/package.json @@ -0,0 +1,69 @@ +{ + "name": "@mui/x-tree-view-pro", + "version": "7.0.0-beta.4", + "description": "The Pro plan edition of the Tree View components (MUI X).", + "author": "MUI Team", + "main": "src/index.ts", + "license": "SEE LICENSE IN LICENSE", + "bugs": { + "url": "https://github.com/mui/mui-x/issues" + }, + "homepage": "https://mui.com/x/react-tree-view/", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui-org" + }, + "sideEffects": false, + "publishConfig": { + "access": "public" + }, + "keywords": [ + "react", + "react-component", + "mui", + "mui-x", + "material-ui", + "material design", + "treeview" + ], + "scripts": { + "typescript": "tsc -p tsconfig.json", + "build": "yarn build:modern && yarn build:node && yarn build:stable && yarn build:types && yarn build:copy-files ", + "build:modern": "node ../../scripts/build.mjs modern", + "build:node": "node ../../scripts/build.mjs node", + "build:stable": "node ../../scripts/build.mjs stable", + "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:types": "node ../../scripts/buildTypes.mjs", + "prebuild": "rimraf build tsconfig.build.tsbuildinfo" + }, + "repository": { + "type": "git", + "url": "https://github.com/mui/mui-x.git", + "directory": "packages/x-tree-view-pro" + }, + "dependencies": { + "@babel/runtime": "^7.23.9", + "@mui/base": "^5.0.0-beta.36", + "@mui/system": "^5.15.9", + "@mui/utils": "^5.15.9", + "@mui/x-license": "7.0.0-beta.0", + "@mui/x-tree-view-pro": "7.0.0-beta.4", + "@types/react-transition-group": "^4.4.10", + "clsx": "^2.1.0", + "prop-types": "^15.8.1", + "react-transition-group": "^4.4.5" + }, + "peerDependencies": { + "@emotion/react": "^11.9.0", + "@emotion/styled": "^11.8.1", + "@mui/material": "^5.15.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "setupFiles": [ + "/src/setupTests.js" + ], + "engines": { + "node": ">=14.0.0" + } +} diff --git a/packages/x-tree-view-pro/src/index.ts b/packages/x-tree-view-pro/src/index.ts new file mode 100644 index 0000000000000..a6b680db412a3 --- /dev/null +++ b/packages/x-tree-view-pro/src/index.ts @@ -0,0 +1 @@ +export * from '@mui/x-tree-view'; diff --git a/packages/x-tree-view-pro/tsconfig.build.json b/packages/x-tree-view-pro/tsconfig.build.json new file mode 100644 index 0000000000000..58dc0f54afd0a --- /dev/null +++ b/packages/x-tree-view-pro/tsconfig.build.json @@ -0,0 +1,19 @@ +{ + // This config is for emitting declarations (.d.ts) only + // Actual .ts source files are transpiled via babel + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": true, + "declaration": true, + "noEmit": false, + "emitDeclarationOnly": true, + "outDir": "build", + "rootDir": "./src" + }, + "references": [ + { "path": "../x-tree-view/tsconfig.build.json" }, + { "path": "../x-license/tsconfig.build.json" } + ], + "include": ["src/**/*.ts*", "../../node_modules/@mui/material/themeCssVarsAugmentation"], + "exclude": ["src/**/*.spec.ts*", "src/**/*.test.ts*", "src/tests/**/*"] +} diff --git a/packages/x-tree-view-pro/tsconfig.json b/packages/x-tree-view-pro/tsconfig.json new file mode 100644 index 0000000000000..b615deabf7972 --- /dev/null +++ b/packages/x-tree-view-pro/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "types": ["react", "mocha", "node"], + "noImplicitAny": false + }, + "include": [ + "src/**/*", + "../../test/utils/addChaiAssertions.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", + "../../node_modules/@mui/material/themeCssVarsAugmentation" + ] +} diff --git a/packages/x-tree-view/README.md b/packages/x-tree-view/README.md index b9f4df3645e17..55afa3e0db62e 100644 --- a/packages/x-tree-view/README.md +++ b/packages/x-tree-view/README.md @@ -1,6 +1,6 @@ # MUI X Tree View -This package is the community edition of the tree view components. +This package is the Community plan edition of the Tree View components. It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components. ## Installation diff --git a/packages/x-tree-view/package.json b/packages/x-tree-view/package.json index 0e850e131b8b9..3dfd371c1494a 100644 --- a/packages/x-tree-view/package.json +++ b/packages/x-tree-view/package.json @@ -1,7 +1,7 @@ { "name": "@mui/x-tree-view", "version": "7.0.0-beta.4", - "description": "The community edition of the tree view components (MUI X).", + "description": "The community edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts", "license": "MIT", diff --git a/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts b/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts index 89800438bbac9..bdf100d050a0d 100644 --- a/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts +++ b/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts @@ -75,10 +75,9 @@ export function getComponentImports(name: string, filename: string) { const reExportPackage = [rootImportPath]; - // TODO: uncomment when releasing the pro package - // if (rootImportPath === '@mui/x-tree-view') { - // reExportPackage.push('@mui/x-tree-view-pro'); - // } + if (rootImportPath === '@mui/x-tree-view') { + reExportPackage.push('@mui/x-tree-view-pro'); + } return [ `import { ${name} } from '${subdirectoryImportPath}';`, diff --git a/scripts/x-tree-view-pro.exports.json b/scripts/x-tree-view-pro.exports.json new file mode 100644 index 0000000000000..25189b09d2e2f --- /dev/null +++ b/scripts/x-tree-view-pro.exports.json @@ -0,0 +1,48 @@ +[ + { "name": "getRichTreeViewUtilityClass", "kind": "Function" }, + { "name": "getSimpleTreeViewUtilityClass", "kind": "Function" }, + { "name": "getTreeItemUtilityClass", "kind": "Function" }, + { "name": "getTreeViewUtilityClass", "kind": "Function" }, + { "name": "MultiSelectTreeViewProps", "kind": "TypeAlias" }, + { "name": "RichTreeView", "kind": "Variable" }, + { "name": "richTreeViewClasses", "kind": "Variable" }, + { "name": "RichTreeViewClasses", "kind": "Interface" }, + { "name": "RichTreeViewClassKey", "kind": "TypeAlias" }, + { "name": "RichTreeViewProps", "kind": "Interface" }, + { "name": "RichTreeViewPropsBase", "kind": "Interface" }, + { "name": "RichTreeViewRoot", "kind": "Variable" }, + { "name": "RichTreeViewSlotProps", "kind": "Interface" }, + { "name": "RichTreeViewSlots", "kind": "Interface" }, + { "name": "SimpleTreeView", "kind": "Variable" }, + { "name": "simpleTreeViewClasses", "kind": "Variable" }, + { "name": "SimpleTreeViewClasses", "kind": "Interface" }, + { "name": "SimpleTreeViewClassKey", "kind": "TypeAlias" }, + { "name": "SimpleTreeViewProps", "kind": "Interface" }, + { "name": "SimpleTreeViewRoot", "kind": "Variable" }, + { "name": "SimpleTreeViewSlotProps", "kind": "Interface" }, + { "name": "SimpleTreeViewSlots", "kind": "Interface" }, + { "name": "SingleSelectTreeViewProps", "kind": "TypeAlias" }, + { "name": "TreeItem", "kind": "Variable" }, + { "name": "treeItemClasses", "kind": "Variable" }, + { "name": "TreeItemClasses", "kind": "Interface" }, + { "name": "TreeItemClassKey", "kind": "TypeAlias" }, + { "name": "TreeItemContent", "kind": "Variable" }, + { "name": "TreeItemContentClassKey", "kind": "TypeAlias" }, + { "name": "TreeItemContentProps", "kind": "Interface" }, + { "name": "TreeItemProps", "kind": "Interface" }, + { "name": "TreeItemSlotProps", "kind": "Interface" }, + { "name": "TreeItemSlots", "kind": "Interface" }, + { "name": "TreeView", "kind": "Variable" }, + { "name": "TreeViewBaseItem", "kind": "TypeAlias" }, + { "name": "treeViewClasses", "kind": "Variable" }, + { "name": "TreeViewClasses", "kind": "Interface" }, + { "name": "TreeViewClassKey", "kind": "TypeAlias" }, + { "name": "TreeViewCollapseIcon", "kind": "Variable" }, + { "name": "TreeViewExpandIcon", "kind": "Variable" }, + { "name": "TreeViewItemId", "kind": "TypeAlias" }, + { "name": "TreeViewProps", "kind": "Interface" }, + { "name": "TreeViewSlotProps", "kind": "Interface" }, + { "name": "TreeViewSlots", "kind": "Interface" }, + { "name": "unstable_resetCleanupTracking", "kind": "Variable" }, + { "name": "useTreeItemState", "kind": "Function" } +] diff --git a/tsconfig.json b/tsconfig.json index 941074723d1c6..60fb7c569b555 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,6 +24,8 @@ "@mui/x-charts/*": ["./packages/x-charts/src/*"], "@mui/x-tree-view": ["./packages/x-tree-view/src"], "@mui/x-tree-view/*": ["./packages/x-tree-view/src/*"], + "@mui/x-tree-view-pro": ["./packages/x-tree-view-pro/src"], + "@mui/x-tree-view-pro/*": ["./packages/x-tree-view-pro/src/*"], "@mui/x-license": ["./packages/x-license/src"], "@mui/x-license/*": ["./packages/x-license/src/*"], "@mui-internal/test-utils": ["./node_modules/@mui/monorepo/packages/test-utils/src"], diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 12431dba8223d..991afaf5cbe29 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -16,6 +16,7 @@ module.exports = { '@mui/x-date-pickers-pro': path.resolve(__dirname, './packages/x-date-pickers-pro/src'), '@mui/x-charts': path.resolve(__dirname, './packages/x-charts/src'), '@mui/x-tree-view': path.resolve(__dirname, './packages/x-tree-view/src'), + '@mui/x-tree-view-pro': path.resolve(__dirname, './packages/x-tree-view-pro/src'), '@mui/x-license': path.resolve(__dirname, './packages/x-license/src'), '@mui/markdown': path.resolve(__dirname, './node_modules/@mui/monorepo/packages/markdown'), '@mui/material-nextjs': path.resolve( diff --git a/yarn.lock b/yarn.lock index 5c983ec7d5ac2..3dfb5d71b84b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1279,7 +1279,7 @@ core-js "^2.6.12" regenerator-runtime "^0.14.0" -"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.9", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": +"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.8", "@babel/runtime@^7.23.9", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": version "7.23.9" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.9.tgz#47791a15e4603bb5f905bc0753801cf21d6345f7" integrity sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw== @@ -1953,6 +1953,16 @@ resolved "https://registry.yarnpkg.com/@mui/types/-/types-7.2.13.tgz#d1584912942f9dc042441ecc2d1452be39c666b8" integrity sha512-qP9OgacN62s+l8rdDhSFRe05HWtLLJ5TGclC9I1+tQngbssu0m2dmFZs+Px53AcOs9fD7TbYd4gc9AXzVqO/+g== +"@mui/utils@^5.15.6": + version "5.15.11" + resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.15.11.tgz#a71804d6d6025783478fd1aca9afbf83d9b789c7" + integrity sha512-D6bwqprUa9Stf8ft0dcMqWyWDKEo7D+6pB1k8WajbqlYIRA8J8Kw9Ra7PSZKKePGBGWO+/xxrX1U8HpG/aXQCw== + dependencies: + "@babel/runtime" "^7.23.9" + "@types/prop-types" "^15.7.11" + prop-types "^15.8.1" + react-is "^18.2.0" + "@mui/utils@^5.15.9": version "5.15.9" resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.15.9.tgz#2bdf925e274d87cbe90c14eb52d0835318205e86" @@ -1963,6 +1973,14 @@ prop-types "^15.8.1" react-is "^18.2.0" +"@mui/x-license-pro@7.0.0-beta.0": + version "7.0.0-beta.0" + resolved "https://registry.yarnpkg.com/@mui/x-license-pro/-/x-license-pro-7.0.0-beta.0.tgz#bcc5df9e2031d9201e477f5a7786efed2a0b0b86" + integrity sha512-Y7WT6ZeGQidtELQTWwLNHX5x6uBIUKEX0rn2gWSq3V3UCpjxLfEM9onlgkzQo87jzPZv7cg9P58LpvimmKKQiA== + dependencies: + "@babel/runtime" "^7.23.8" + "@mui/utils" "^5.15.6" + "@next/env@14.1.0": version "14.1.0" resolved "https://registry.yarnpkg.com/@next/env/-/env-14.1.0.tgz#43d92ebb53bc0ae43dcc64fb4d418f8f17d7a341" From 603680ebe1245dc438b6e1f6657713d96b71161f Mon Sep 17 00:00:00 2001 From: delangle Date: Wed, 28 Feb 2024 10:44:35 +0100 Subject: [PATCH 2/5] Fix license version --- packages/x-tree-view-pro/package.json | 2 +- yarn.lock | 20 +------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/packages/x-tree-view-pro/package.json b/packages/x-tree-view-pro/package.json index e05208a36d601..28253e1187ef3 100644 --- a/packages/x-tree-view-pro/package.json +++ b/packages/x-tree-view-pro/package.json @@ -46,7 +46,7 @@ "@mui/base": "^5.0.0-beta.36", "@mui/system": "^5.15.9", "@mui/utils": "^5.15.9", - "@mui/x-license": "7.0.0-beta.0", + "@mui/x-license": "7.0.0-beta.2", "@mui/x-tree-view-pro": "7.0.0-beta.4", "@types/react-transition-group": "^4.4.10", "clsx": "^2.1.0", diff --git a/yarn.lock b/yarn.lock index 3dfb5d71b84b9..5c983ec7d5ac2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1279,7 +1279,7 @@ core-js "^2.6.12" regenerator-runtime "^0.14.0" -"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.8", "@babel/runtime@^7.23.9", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": +"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.21.0", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.9", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.3", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7": version "7.23.9" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.9.tgz#47791a15e4603bb5f905bc0753801cf21d6345f7" integrity sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw== @@ -1953,16 +1953,6 @@ resolved "https://registry.yarnpkg.com/@mui/types/-/types-7.2.13.tgz#d1584912942f9dc042441ecc2d1452be39c666b8" integrity sha512-qP9OgacN62s+l8rdDhSFRe05HWtLLJ5TGclC9I1+tQngbssu0m2dmFZs+Px53AcOs9fD7TbYd4gc9AXzVqO/+g== -"@mui/utils@^5.15.6": - version "5.15.11" - resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.15.11.tgz#a71804d6d6025783478fd1aca9afbf83d9b789c7" - integrity sha512-D6bwqprUa9Stf8ft0dcMqWyWDKEo7D+6pB1k8WajbqlYIRA8J8Kw9Ra7PSZKKePGBGWO+/xxrX1U8HpG/aXQCw== - dependencies: - "@babel/runtime" "^7.23.9" - "@types/prop-types" "^15.7.11" - prop-types "^15.8.1" - react-is "^18.2.0" - "@mui/utils@^5.15.9": version "5.15.9" resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.15.9.tgz#2bdf925e274d87cbe90c14eb52d0835318205e86" @@ -1973,14 +1963,6 @@ prop-types "^15.8.1" react-is "^18.2.0" -"@mui/x-license-pro@7.0.0-beta.0": - version "7.0.0-beta.0" - resolved "https://registry.yarnpkg.com/@mui/x-license-pro/-/x-license-pro-7.0.0-beta.0.tgz#bcc5df9e2031d9201e477f5a7786efed2a0b0b86" - integrity sha512-Y7WT6ZeGQidtELQTWwLNHX5x6uBIUKEX0rn2gWSq3V3UCpjxLfEM9onlgkzQo87jzPZv7cg9P58LpvimmKKQiA== - dependencies: - "@babel/runtime" "^7.23.8" - "@mui/utils" "^5.15.6" - "@next/env@14.1.0": version "14.1.0" resolved "https://registry.yarnpkg.com/@next/env/-/env-14.1.0.tgz#43d92ebb53bc0ae43dcc64fb4d418f8f17d7a341" From b8d95a85f41702ea5a58dab64b0cf938e6da665e Mon Sep 17 00:00:00 2001 From: delangle Date: Thu, 28 Mar 2024 09:15:03 +0100 Subject: [PATCH 3/5] Work --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e0d3d46d991bc..f7350c8bd0bcf 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "build:codesandbox": "yarn release:build", "install:codesandbox": "yarn install --ignore-engines", "release:changelog": "node scripts/releaseChangelog.mjs", - "release:version": "lerna version --exact --no-changelog --no-push --no-git-tag-version --no-private", + "release:version": "lerna version --exact --no-changelog --no-push --no-git-tag-version --no-private --ignore @mui/x-tree-view-pro", "release:build": "lerna run --parallel --no-private --scope \"@mui/*\" build", "release:publish": "lerna publish from-package --no-private --dist-tag latest --contents build", "release:publish:dry-run": "lerna publish from-package --dist-tag latest --contents build --registry=\"http://localhost:4873/\"", From 046eeb55418dc9988175e7c090307c2d7295bfa5 Mon Sep 17 00:00:00 2001 From: delangle Date: Thu, 28 Mar 2024 09:17:47 +0100 Subject: [PATCH 4/5] Make private --- package.json | 2 +- packages/x-tree-view-pro/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f7350c8bd0bcf..e0d3d46d991bc 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "build:codesandbox": "yarn release:build", "install:codesandbox": "yarn install --ignore-engines", "release:changelog": "node scripts/releaseChangelog.mjs", - "release:version": "lerna version --exact --no-changelog --no-push --no-git-tag-version --no-private --ignore @mui/x-tree-view-pro", + "release:version": "lerna version --exact --no-changelog --no-push --no-git-tag-version --no-private", "release:build": "lerna run --parallel --no-private --scope \"@mui/*\" build", "release:publish": "lerna publish from-package --no-private --dist-tag latest --contents build", "release:publish:dry-run": "lerna publish from-package --dist-tag latest --contents build --registry=\"http://localhost:4873/\"", diff --git a/packages/x-tree-view-pro/package.json b/packages/x-tree-view-pro/package.json index 8624d6b1f383e..58fbb33551f25 100644 --- a/packages/x-tree-view-pro/package.json +++ b/packages/x-tree-view-pro/package.json @@ -1,6 +1,7 @@ { "name": "@mui/x-tree-view-pro", "version": "7.0.0", + "private": true, "description": "The Pro plan edition of the Tree View components (MUI X).", "author": "MUI Team", "main": "src/index.ts", From 551f7cd7a05ec490db289faf7a81ff8938738d19 Mon Sep 17 00:00:00 2001 From: delangle Date: Thu, 28 Mar 2024 09:21:19 +0100 Subject: [PATCH 5/5] Work --- .../pages/x/api/tree-view/rich-tree-view.json | 3 +- .../x/api/tree-view/simple-tree-view.json | 3 +- docs/pages/x/api/tree-view/tree-item.json | 3 +- docs/pages/x/api/tree-view/tree-view.json | 3 +- docs/scripts/createXTypeScriptProjects.ts | 35 +++++++------- .../treeViewSettings/getComponentInfo.ts | 7 +-- scripts/x-tree-view-pro.exports.json | 48 ------------------- 7 files changed, 26 insertions(+), 76 deletions(-) delete mode 100644 scripts/x-tree-view-pro.exports.json diff --git a/docs/pages/x/api/tree-view/rich-tree-view.json b/docs/pages/x/api/tree-view/rich-tree-view.json index a20725b8cfce9..181ae591f91cd 100644 --- a/docs/pages/x/api/tree-view/rich-tree-view.json +++ b/docs/pages/x/api/tree-view/rich-tree-view.json @@ -93,8 +93,7 @@ "name": "RichTreeView", "imports": [ "import { RichTreeView } from '@mui/x-tree-view/RichTreeView';", - "import { RichTreeView } from '@mui/x-tree-view';", - "import { RichTreeView } from '@mui/x-tree-view-pro';" + "import { RichTreeView } from '@mui/x-tree-view';" ], "slots": [ { diff --git a/docs/pages/x/api/tree-view/simple-tree-view.json b/docs/pages/x/api/tree-view/simple-tree-view.json index c0c7782e53506..5957aad770567 100644 --- a/docs/pages/x/api/tree-view/simple-tree-view.json +++ b/docs/pages/x/api/tree-view/simple-tree-view.json @@ -64,8 +64,7 @@ "name": "SimpleTreeView", "imports": [ "import { SimpleTreeView } from '@mui/x-tree-view/SimpleTreeView';", - "import { SimpleTreeView } from '@mui/x-tree-view';", - "import { SimpleTreeView } from '@mui/x-tree-view-pro';" + "import { SimpleTreeView } from '@mui/x-tree-view';" ], "slots": [ { diff --git a/docs/pages/x/api/tree-view/tree-item.json b/docs/pages/x/api/tree-view/tree-item.json index 463e744c5aacf..e51cc365b7d30 100644 --- a/docs/pages/x/api/tree-view/tree-item.json +++ b/docs/pages/x/api/tree-view/tree-item.json @@ -28,8 +28,7 @@ "name": "TreeItem", "imports": [ "import { TreeItem } from '@mui/x-tree-view/TreeItem';", - "import { TreeItem } from '@mui/x-tree-view';", - "import { TreeItem } from '@mui/x-tree-view-pro';" + "import { TreeItem } from '@mui/x-tree-view';" ], "slots": [ { "name": "collapseIcon", "description": "The icon used to collapse the item.", "class": null }, diff --git a/docs/pages/x/api/tree-view/tree-view.json b/docs/pages/x/api/tree-view/tree-view.json index b5c8154519456..fae8965650e99 100644 --- a/docs/pages/x/api/tree-view/tree-view.json +++ b/docs/pages/x/api/tree-view/tree-view.json @@ -64,8 +64,7 @@ "name": "TreeView", "imports": [ "import { TreeView } from '@mui/x-tree-view/TreeView';", - "import { TreeView } from '@mui/x-tree-view';", - "import { TreeView } from '@mui/x-tree-view-pro';" + "import { TreeView } from '@mui/x-tree-view';" ], "slots": [ { diff --git a/docs/scripts/createXTypeScriptProjects.ts b/docs/scripts/createXTypeScriptProjects.ts index 0b455c7b29084..a997d7689b421 100644 --- a/docs/scripts/createXTypeScriptProjects.ts +++ b/docs/scripts/createXTypeScriptProjects.ts @@ -265,23 +265,24 @@ export const createXTypeScriptProjects = () => { }), ); - projects.set( - 'x-tree-view-pro', - createXTypeScriptProject({ - name: 'x-tree-view-pro', - rootPath: path.join(workspaceRoot, 'packages/x-tree-view-pro'), - entryPointPath: 'src/index.ts', - documentationFolderName: 'tree-view', - getComponentsWithPropTypes: getComponentPaths({ - folders: ['src'], - includeUnstableComponents: true, - }), - getComponentsWithApiDoc: getComponentPaths({ - folders: ['src'], - includeUnstableComponents: true, - }), - }), - ); + // TODO x-tree-view-pro uncomment when making the package public + // projects.set( + // 'x-tree-view-pro', + // createXTypeScriptProject({ + // name: 'x-tree-view-pro', + // rootPath: path.join(workspaceRoot, 'packages/x-tree-view-pro'), + // entryPointPath: 'src/index.ts', + // documentationFolderName: 'tree-view', + // getComponentsWithPropTypes: getComponentPaths({ + // folders: ['src'], + // includeUnstableComponents: true, + // }), + // getComponentsWithApiDoc: getComponentPaths({ + // folders: ['src'], + // includeUnstableComponents: true, + // }), + // }), + // ); return projects; }; diff --git a/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts b/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts index 8fd742b0e0e0d..395c5ed628228 100644 --- a/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts +++ b/scripts/buildApiDocs/treeViewSettings/getComponentInfo.ts @@ -75,9 +75,10 @@ export function getComponentImports(name: string, filename: string) { const reExportPackage = [rootImportPath]; - if (rootImportPath === '@mui/x-tree-view') { - reExportPackage.push('@mui/x-tree-view-pro'); - } + // TODO x-tree-view-pro uncomment when making the package public + // if (rootImportPath === '@mui/x-tree-view') { + // reExportPackage.push('@mui/x-tree-view-pro'); + // } return [ `import { ${name} } from '${subdirectoryImportPath}';`, diff --git a/scripts/x-tree-view-pro.exports.json b/scripts/x-tree-view-pro.exports.json deleted file mode 100644 index 25189b09d2e2f..0000000000000 --- a/scripts/x-tree-view-pro.exports.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { "name": "getRichTreeViewUtilityClass", "kind": "Function" }, - { "name": "getSimpleTreeViewUtilityClass", "kind": "Function" }, - { "name": "getTreeItemUtilityClass", "kind": "Function" }, - { "name": "getTreeViewUtilityClass", "kind": "Function" }, - { "name": "MultiSelectTreeViewProps", "kind": "TypeAlias" }, - { "name": "RichTreeView", "kind": "Variable" }, - { "name": "richTreeViewClasses", "kind": "Variable" }, - { "name": "RichTreeViewClasses", "kind": "Interface" }, - { "name": "RichTreeViewClassKey", "kind": "TypeAlias" }, - { "name": "RichTreeViewProps", "kind": "Interface" }, - { "name": "RichTreeViewPropsBase", "kind": "Interface" }, - { "name": "RichTreeViewRoot", "kind": "Variable" }, - { "name": "RichTreeViewSlotProps", "kind": "Interface" }, - { "name": "RichTreeViewSlots", "kind": "Interface" }, - { "name": "SimpleTreeView", "kind": "Variable" }, - { "name": "simpleTreeViewClasses", "kind": "Variable" }, - { "name": "SimpleTreeViewClasses", "kind": "Interface" }, - { "name": "SimpleTreeViewClassKey", "kind": "TypeAlias" }, - { "name": "SimpleTreeViewProps", "kind": "Interface" }, - { "name": "SimpleTreeViewRoot", "kind": "Variable" }, - { "name": "SimpleTreeViewSlotProps", "kind": "Interface" }, - { "name": "SimpleTreeViewSlots", "kind": "Interface" }, - { "name": "SingleSelectTreeViewProps", "kind": "TypeAlias" }, - { "name": "TreeItem", "kind": "Variable" }, - { "name": "treeItemClasses", "kind": "Variable" }, - { "name": "TreeItemClasses", "kind": "Interface" }, - { "name": "TreeItemClassKey", "kind": "TypeAlias" }, - { "name": "TreeItemContent", "kind": "Variable" }, - { "name": "TreeItemContentClassKey", "kind": "TypeAlias" }, - { "name": "TreeItemContentProps", "kind": "Interface" }, - { "name": "TreeItemProps", "kind": "Interface" }, - { "name": "TreeItemSlotProps", "kind": "Interface" }, - { "name": "TreeItemSlots", "kind": "Interface" }, - { "name": "TreeView", "kind": "Variable" }, - { "name": "TreeViewBaseItem", "kind": "TypeAlias" }, - { "name": "treeViewClasses", "kind": "Variable" }, - { "name": "TreeViewClasses", "kind": "Interface" }, - { "name": "TreeViewClassKey", "kind": "TypeAlias" }, - { "name": "TreeViewCollapseIcon", "kind": "Variable" }, - { "name": "TreeViewExpandIcon", "kind": "Variable" }, - { "name": "TreeViewItemId", "kind": "TypeAlias" }, - { "name": "TreeViewProps", "kind": "Interface" }, - { "name": "TreeViewSlotProps", "kind": "Interface" }, - { "name": "TreeViewSlots", "kind": "Interface" }, - { "name": "unstable_resetCleanupTracking", "kind": "Variable" }, - { "name": "useTreeItemState", "kind": "Function" } -]