@snack-uikit/tree 0.10.2-preview-c66aa175.0 → 0.10.2-preview-559f4416.0
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/README.md +0 -17
- package/dist/cjs/helpers/traverse.d.ts +1 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.js +0 -1
- package/dist/esm/helpers/traverse.d.ts +1 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/package.json +12 -4
- package/src/helpers/traverse.ts +1 -1
- package/src/index.ts +0 -1
package/README.md
CHANGED
|
@@ -106,23 +106,6 @@ function TreeAsyncLoadExample() {
|
|
|
106
106
|
### Props
|
|
107
107
|
| name | type | default value | description |
|
|
108
108
|
|------|------|---------------|-------------|
|
|
109
|
-
## useSearchableTree
|
|
110
|
-
### Props
|
|
111
|
-
| name | type | default value | description |
|
|
112
|
-
|------|------|---------------|-------------|
|
|
113
|
-
| mapNodeToRecordItem* | `(node: TTreeNode) => TRecordValue` | - | |
|
|
114
|
-
| onSearch* | `(params: SearchParams) => Promise<SearchResult<TTreeNode>>` | - | |
|
|
115
|
-
| onPreloadNodes* | `(nodes: string[]) => Promise<Record<string, TTreeNode[]>>` | - | |
|
|
116
|
-
| onPreloadNode* | `(node: any) => Promise<TTreeNode[]>` | - | |
|
|
117
|
-
| initTree* | `TTreeNode[]` | - | |
|
|
118
|
-
## useTreeMultiSelection
|
|
119
|
-
### Props
|
|
120
|
-
| name | type | default value | description |
|
|
121
|
-
|------|------|---------------|-------------|
|
|
122
|
-
| onSelect* | `SelectHandler` | - | |
|
|
123
|
-
| onDataLoad* | `PreloadNodeHandler<TTreeNode>` | - | |
|
|
124
|
-
| selected | `string[]` | - | |
|
|
125
|
-
| onChangeSelected | `(newSelected: string[]) => void` | - | |
|
|
126
109
|
|
|
127
110
|
|
|
128
111
|
[//]: DOCUMENTATION_SECTION_END
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export type { OnNodeClick, TreeNodeId, TreeNodeProps } from './types';
|
|
3
3
|
export { setNonce } from '@snack-uikit/list';
|
|
4
|
-
export * from './hooks';
|
|
5
4
|
export { setChildrenOfTreeNode, traverse, getSearchedTreeItems, getSearchedTreeNodeById } from './helpers';
|
package/dist/cjs/index.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export type { OnNodeClick, TreeNodeId, TreeNodeProps } from './types';
|
|
3
3
|
export { setNonce } from '@snack-uikit/list';
|
|
4
|
-
export * from './hooks';
|
|
5
4
|
export { setChildrenOfTreeNode, traverse, getSearchedTreeItems, getSearchedTreeNodeById } from './helpers';
|
package/dist/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Tree",
|
|
7
|
-
"version": "0.10.2-preview-
|
|
7
|
+
"version": "0.10.2-preview-559f4416.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -13,8 +13,16 @@
|
|
|
13
13
|
"description": "",
|
|
14
14
|
"types": "./dist/esm/index.d.ts",
|
|
15
15
|
"exports": {
|
|
16
|
-
"
|
|
17
|
-
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/esm/index.js",
|
|
18
|
+
"require": "./dist/cjs/index.js",
|
|
19
|
+
"types": "./dist/esm/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./hooks": {
|
|
22
|
+
"import": "./dist/esm/hooks/index.js",
|
|
23
|
+
"require": "./dist/cjs/hooks/index.js",
|
|
24
|
+
"types": "./dist/esm/hooks/index.d.ts"
|
|
25
|
+
}
|
|
18
26
|
},
|
|
19
27
|
"homepage": "https://github.com/cloud-ru-tech/snack-uikit/tree/master/packages/tree",
|
|
20
28
|
"repository": {
|
|
@@ -50,5 +58,5 @@
|
|
|
50
58
|
"react-transition-state": "2.1.1",
|
|
51
59
|
"uncontrollable": "8.0.4"
|
|
52
60
|
},
|
|
53
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "64ce37781bf1da9706bb25163ad2cad0f24e5609"
|
|
54
62
|
}
|
package/src/helpers/traverse.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './components';
|
|
2
2
|
export type { OnNodeClick, TreeNodeId, TreeNodeProps } from './types';
|
|
3
3
|
export { setNonce } from '@snack-uikit/list';
|
|
4
|
-
export * from './hooks';
|
|
5
4
|
export { setChildrenOfTreeNode, traverse, getSearchedTreeItems, getSearchedTreeNodeById } from './helpers';
|