@react-fabric/data 1.0.0-beta.45 → 1.0.0-beta.47
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/cjs/tree/useTree.js
CHANGED
package/dist/esm/tree/useTree.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/data",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.47",
|
|
4
4
|
"description": "RUF: Data package",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"watch": "npm-run-all -p watch:rollup watch:dts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@react-fabric/core": "^1.0.0-beta.
|
|
39
|
-
"@react-fabric/date": "^1.0.0-beta.
|
|
40
|
-
"@react-fabric/form": "^1.0.0-beta.
|
|
41
|
-
"@react-fabric/utilities": "^1.0.0-beta.
|
|
38
|
+
"@react-fabric/core": "^1.0.0-beta.47",
|
|
39
|
+
"@react-fabric/date": "^1.0.0-beta.47",
|
|
40
|
+
"@react-fabric/form": "^1.0.0-beta.47",
|
|
41
|
+
"@react-fabric/utilities": "^1.0.0-beta.47",
|
|
42
42
|
"@tanstack/react-virtual": "^3.8.6",
|
|
43
43
|
"classnames": "^2.5.1",
|
|
44
44
|
"color": "^4.2.3",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"node": ">=18.12.0",
|
|
55
55
|
"npm": ">=8.19.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "832a1bce055337127ba17c505731f419248cc15e"
|
|
58
58
|
}
|
package/src/tree/useTree.ts
CHANGED
|
@@ -294,9 +294,13 @@ export const useTree = <T extends KeyValue>({
|
|
|
294
294
|
dispatch({ type: "collapseAll" });
|
|
295
295
|
}, []);
|
|
296
296
|
|
|
297
|
-
const onFilter = useDebounce(
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
const onFilter = useDebounce(
|
|
298
|
+
(query: string) => {
|
|
299
|
+
dispatch({ type: "filter", query });
|
|
300
|
+
},
|
|
301
|
+
[],
|
|
302
|
+
300,
|
|
303
|
+
);
|
|
300
304
|
|
|
301
305
|
return {
|
|
302
306
|
tree: state.tree,
|