@snack-uikit/tree 0.11.1-preview-210b4b95.0 → 0.12.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.12.0 (2026-04-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **IAM-6334:** add hooks for lazy search and select ([4e38e6f](https://github.com/cloud-ru-tech/snack-uikit/commit/4e38e6f7e16bd1ddded88fbfeb602351b1c374bd))
|
|
12
|
+
* **IAM-6334:** resolve docgen entry sources from package.json exports ([e874dc3](https://github.com/cloud-ru-tech/snack-uikit/commit/e874dc3dece358ef0dfd0cd8a5a9772b932c745e))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# 0.11.0 (2026-03-27)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -67,7 +67,7 @@ function useTreeMultiSelection(_ref) {
|
|
|
67
67
|
});
|
|
68
68
|
const onSelect = (0, react_1.useCallback)((selectedKeys, node) => __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
const isSelected = selectedKeys.includes(node.id);
|
|
70
|
-
const clonedNode =
|
|
70
|
+
const clonedNode = Object.assign({}, node);
|
|
71
71
|
if (node.nested && !node.nested.length) {
|
|
72
72
|
const {
|
|
73
73
|
preloadedChildren
|
|
@@ -37,7 +37,7 @@ export function useTreeMultiSelection({ onDataLoad, onSelect: onSelectProp, sele
|
|
|
37
37
|
});
|
|
38
38
|
const onSelect = useCallback((selectedKeys, node) => __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const isSelected = selectedKeys.includes(node.id);
|
|
40
|
-
const clonedNode =
|
|
40
|
+
const clonedNode = Object.assign({}, node);
|
|
41
41
|
if (node.nested && !node.nested.length) {
|
|
42
42
|
const { preloadedChildren } = yield onDataLoad(node);
|
|
43
43
|
clonedNode.nested = preloadedChildren;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Tree",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.12.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-transition-state": "2.1.1",
|
|
67
67
|
"uncontrollable": "8.0.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "dc214772fe2cc07471ca44f7238d0cc0630e7c83"
|
|
70
70
|
}
|
|
@@ -61,7 +61,7 @@ export function useTreeMultiSelection<TTreeNode extends TreeNodeProps>({
|
|
|
61
61
|
const onSelect = useCallback(
|
|
62
62
|
async (selectedKeys: string[], node: TreeNodeProps) => {
|
|
63
63
|
const isSelected = selectedKeys.includes(node.id);
|
|
64
|
-
const clonedNode =
|
|
64
|
+
const clonedNode = { ...node };
|
|
65
65
|
|
|
66
66
|
if (node.nested && !node.nested.length) {
|
|
67
67
|
const { preloadedChildren } = await onDataLoad(node as TTreeNode);
|