-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TreeView] Move all mandatory plugins to the core plugins
- Loading branch information
1 parent
58c5fe8
commit 9e8c681
Showing
24 changed files
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
packages/x-tree-view/src/internals/corePlugins/corePlugins.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
import { useTreeViewInstanceEvents } from './useTreeViewInstanceEvents'; | ||
import { useTreeViewId, UseTreeViewIdParameters } from './useTreeViewId'; | ||
import { useTreeViewNodes, UseTreeViewNodesParameters } from './useTreeViewNodes'; | ||
import { ConvertPluginsIntoSignatures, MergePlugins } from '../models'; | ||
|
||
/** | ||
* Internal plugins that create the tools used by the other plugins. | ||
* These plugins are used by the tree view components. | ||
*/ | ||
export const TREE_VIEW_CORE_PLUGINS = [useTreeViewInstanceEvents] as const; | ||
export const TREE_VIEW_CORE_PLUGINS = [ | ||
useTreeViewInstanceEvents, | ||
useTreeViewId, | ||
useTreeViewNodes, | ||
] as const; | ||
|
||
export type TreeViewCorePluginsSignature = MergePlugins< | ||
ConvertPluginsIntoSignatures<typeof TREE_VIEW_CORE_PLUGINS> | ||
>; | ||
|
||
export interface TreeViewCorePluginsParameters<R extends {}> | ||
extends UseTreeViewIdParameters, | ||
UseTreeViewNodesParameters<R> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { TREE_VIEW_CORE_PLUGINS } from './corePlugins'; | ||
export type { TreeViewCorePluginsSignature } from './corePlugins'; | ||
export type { TreeViewCorePluginsSignature, TreeViewCorePluginsParameters } from './corePlugins'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ages/x-tree-view/src/internals/plugins/useTreeViewSelection/useTreeViewSelection.utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/x-tree-view/src/internals/useTreeView/useTreeView.utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters