@aloudata/aloudata-design 3.0.0-beta.7 → 3.0.0-beta.9
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/dist/Tree/index.d.ts +4 -2
- package/dist/Tree/index.js.map +1 -1
- package/package.json +1 -1
package/dist/Tree/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BasicDataNode, TreeNode } from 'rc-tree';
|
|
2
2
|
import { DataNode } from 'rc-tree/es/interface';
|
|
3
3
|
import { default as DirectoryTree } from './DirectoryTree.js';
|
|
4
4
|
import { TreeProps } from './Tree.js';
|
|
@@ -7,8 +7,10 @@ export type { EventDataNode } from 'rc-tree/es/interface';
|
|
|
7
7
|
export type { ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, } from './DirectoryTree.js';
|
|
8
8
|
export type { AldTreeNode, AldTreeNodeAttribute, AldTreeNodeCheckedEvent, AldTreeNodeExpandedEvent, AldTreeNodeMouseEvent, AldTreeNodeProps, AldTreeNodeSelectedEvent, TreeProps, } from './Tree.js';
|
|
9
9
|
export type { DataNode };
|
|
10
|
+
/** Public Tree ref type — hides rc-tree internals from consumers */
|
|
11
|
+
export type TreeRef = any;
|
|
10
12
|
type CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(props: React.PropsWithChildren<TreeProps<T>> & {
|
|
11
|
-
ref?: React.Ref<
|
|
13
|
+
ref?: React.Ref<TreeRef>;
|
|
12
14
|
}) => React.ReactElement) & {
|
|
13
15
|
TreeNode: typeof TreeNode;
|
|
14
16
|
DirectoryTree: typeof DirectoryTree;
|
package/dist/Tree/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/Tree/index.tsx"],"sourcesContent":["import type * as React from 'react';\nimport type
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/Tree/index.tsx"],"sourcesContent":["import type * as React from 'react';\nimport type { BasicDataNode } from 'rc-tree';\nimport { TreeNode } from 'rc-tree';\nimport type { DataNode } from 'rc-tree/es/interface';\nimport DirectoryTree from './DirectoryTree';\nimport type { TreeProps } from './Tree';\nimport TreePure from './Tree';\n\nexport type { EventDataNode } from 'rc-tree/es/interface';\nexport type {\n ExpandAction as DirectoryTreeExpandAction,\n DirectoryTreeProps,\n} from './DirectoryTree';\nexport type {\n AldTreeNode,\n AldTreeNodeAttribute,\n AldTreeNodeCheckedEvent,\n AldTreeNodeExpandedEvent,\n AldTreeNodeMouseEvent,\n AldTreeNodeProps,\n AldTreeNodeSelectedEvent,\n TreeProps,\n} from './Tree';\nexport type { DataNode };\n\n/** Public Tree ref type — hides rc-tree internals from consumers */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type TreeRef = any;\n\ntype CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(\n props: React.PropsWithChildren<TreeProps<T>> & {\n ref?: React.Ref<TreeRef>;\n },\n) => React.ReactElement) & {\n TreeNode: typeof TreeNode;\n DirectoryTree: typeof DirectoryTree;\n};\n\nconst Tree = TreePure as unknown as CompoundedComponent;\nTree.DirectoryTree = DirectoryTree;\nTree.TreeNode = TreeNode;\n\nexport default Tree;\n"],"mappings":";;;;AAsCA,IAAM,OAAO;AACb,KAAK,gBAAgB;AACrB,KAAK,WAAW"}
|