diff --git a/docs/api/features/expanding.md b/docs/api/features/expanding.md index 6caf3dfc02..36acdc54cc 100644 --- a/docs/api/features/expanding.md +++ b/docs/api/features/expanding.md @@ -47,7 +47,9 @@ Returns whether the row can be expanded. getToggleExpandedHandler: () => () => void ``` -Returns a function that can be used to toggle the expanded state of the row. This function can be used to bind to an event handler to a button. +Returns a function that can be used to toggle the expanded state of the row. This function can be used to bind to an event handler to a button. + +If the row does not have subrows, it cannot be expanded. In that case, the returned function will do nothing, and the expanded state of the row will remain unchanged. ## Table Options diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 67bc68d9aa..32a157cef6 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,7 +9,7 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/bootstrap/package.json b/examples/react/bootstrap/package.json index 1835b2bc79..c832c54e71 100644 --- a/examples/react/bootstrap/package.json +++ b/examples/react/bootstrap/package.json @@ -9,7 +9,7 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "bootstrap": "^5.2.3", "react": "^18.2.0", "react-bootstrap": "2.6.0", diff --git a/examples/react/column-dnd/package.json b/examples/react/column-dnd/package.json index 5afc3ec5fb..7bb7b4c47c 100644 --- a/examples/react/column-dnd/package.json +++ b/examples/react/column-dnd/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dnd": "^16.0.1", "react-dnd-html5-backend": "^16.0.1", diff --git a/examples/react/column-groups/package.json b/examples/react/column-groups/package.json index 1cea2f7cdb..89b6f47fb0 100644 --- a/examples/react/column-groups/package.json +++ b/examples/react/column-groups/package.json @@ -9,7 +9,7 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/column-ordering/package.json b/examples/react/column-ordering/package.json index d390a46ca4..6c944295c0 100644 --- a/examples/react/column-ordering/package.json +++ b/examples/react/column-ordering/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/column-pinning/package.json b/examples/react/column-pinning/package.json index e9847ccece..14c225b9f3 100644 --- a/examples/react/column-pinning/package.json +++ b/examples/react/column-pinning/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/column-sizing/package.json b/examples/react/column-sizing/package.json index 51a3ff05fe..925b04e8b5 100644 --- a/examples/react/column-sizing/package.json +++ b/examples/react/column-sizing/package.json @@ -9,7 +9,7 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/column-visibility/package.json b/examples/react/column-visibility/package.json index d43b70baa9..2476687b00 100644 --- a/examples/react/column-visibility/package.json +++ b/examples/react/column-visibility/package.json @@ -9,7 +9,7 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/editable-data/package.json b/examples/react/editable-data/package.json index e2cba2060d..ee2c920061 100644 --- a/examples/react/editable-data/package.json +++ b/examples/react/editable-data/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/expanding/package.json b/examples/react/expanding/package.json index eef2392e5b..e0b8deb6a6 100644 --- a/examples/react/expanding/package.json +++ b/examples/react/expanding/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/filters/package.json b/examples/react/filters/package.json index 18c4183fe8..dda7876a44 100644 --- a/examples/react/filters/package.json +++ b/examples/react/filters/package.json @@ -11,7 +11,7 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "@tanstack/match-sorter-utils": "8.7.6", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/full-width-resizable-table/package.json b/examples/react/full-width-resizable-table/package.json index 974c7b6cbb..802e17443d 100755 --- a/examples/react/full-width-resizable-table/package.json +++ b/examples/react/full-width-resizable-table/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/full-width-table/package.json b/examples/react/full-width-table/package.json index 8c5f1d390c..fcabd9e902 100755 --- a/examples/react/full-width-table/package.json +++ b/examples/react/full-width-table/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/fully-controlled/package.json b/examples/react/fully-controlled/package.json index 617686ba6e..46627f7c1d 100644 --- a/examples/react/fully-controlled/package.json +++ b/examples/react/fully-controlled/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/grouping/package.json b/examples/react/grouping/package.json index ea26df7381..7398563acf 100644 --- a/examples/react/grouping/package.json +++ b/examples/react/grouping/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 3acbe77ef1..f90f16e0fd 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -12,7 +12,7 @@ "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", "@tanstack/match-sorter-utils": "8.7.6", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "@types/react": "^18.0.25", "@types/react-dom": "^18.0.9", "react": "^18.2.0", diff --git a/examples/react/mui-pagination/package.json b/examples/react/mui-pagination/package.json index bf9f58af0b..bb934cff69 100644 --- a/examples/react/mui-pagination/package.json +++ b/examples/react/mui-pagination/package.json @@ -13,7 +13,7 @@ "@emotion/styled": "^11.9.3", "@mui/icons-material": "^5.8.4", "@mui/material": "^5.8.6", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/pagination-controlled/package.json b/examples/react/pagination-controlled/package.json index c131580171..e81f45e0ee 100644 --- a/examples/react/pagination-controlled/package.json +++ b/examples/react/pagination-controlled/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0", "react-query": "^3.39.0" diff --git a/examples/react/pagination/package.json b/examples/react/pagination/package.json index 5f34dc82a8..80e5e05e93 100644 --- a/examples/react/pagination/package.json +++ b/examples/react/pagination/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/row-dnd/package.json b/examples/react/row-dnd/package.json index e60b8d5b07..4c43ef37d7 100644 --- a/examples/react/row-dnd/package.json +++ b/examples/react/row-dnd/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dnd": "^16.0.1", "react-dnd-html5-backend": "^16.0.1", diff --git a/examples/react/row-selection/package.json b/examples/react/row-selection/package.json index e5a76fad83..c94fc37172 100644 --- a/examples/react/row-selection/package.json +++ b/examples/react/row-selection/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/sorting/package.json b/examples/react/sorting/package.json index 78d1447524..fc4f34cae9 100644 --- a/examples/react/sorting/package.json +++ b/examples/react/sorting/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/sub-components/package.json b/examples/react/sub-components/package.json index 26450af94b..79ffe82399 100644 --- a/examples/react/sub-components/package.json +++ b/examples/react/sub-components/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/examples/react/virtualized-infinite-scrolling/package.json b/examples/react/virtualized-infinite-scrolling/package.json index a79407986f..a87c6fcef2 100644 --- a/examples/react/virtualized-infinite-scrolling/package.json +++ b/examples/react/virtualized-infinite-scrolling/package.json @@ -11,7 +11,7 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "@tanstack/react-query": "4.16.1", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0", "react-virtual": "^2.10.4" diff --git a/examples/react/virtualized-rows/package.json b/examples/react/virtualized-rows/package.json index 1111a10d6b..2503277840 100644 --- a/examples/react/virtualized-rows/package.json +++ b/examples/react/virtualized-rows/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/react-table": "8.9.2", + "@tanstack/react-table": "8.9.3", "react": "^18.2.0", "react-dom": "^18.2.0", "react-virtual": "^2.10.4" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index 38c75d6bdd..875b7273d0 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -15,7 +15,7 @@ "vite-plugin-solid": "^2.2.6" }, "dependencies": { - "@tanstack/solid-table": "8.9.2", + "@tanstack/solid-table": "8.9.3", "solid-js": "^1.6.2" } } diff --git a/examples/solid/bootstrap/package.json b/examples/solid/bootstrap/package.json index 09c8d4a9d8..61656564c7 100644 --- a/examples/solid/bootstrap/package.json +++ b/examples/solid/bootstrap/package.json @@ -16,7 +16,7 @@ "vite-plugin-solid": "^2.4.0" }, "dependencies": { - "@tanstack/solid-table": "8.9.2", + "@tanstack/solid-table": "8.9.3", "bootstrap": "^5.2.2", "solid-bootstrap": "^1.0.8", "solid-js": "^1.6.2" diff --git a/examples/solid/column-groups/package.json b/examples/solid/column-groups/package.json index 32abdf36a8..4466d6e4a9 100644 --- a/examples/solid/column-groups/package.json +++ b/examples/solid/column-groups/package.json @@ -15,7 +15,7 @@ "vite-plugin-solid": "^2.2.6" }, "dependencies": { - "@tanstack/solid-table": "8.9.2", + "@tanstack/solid-table": "8.9.3", "solid-js": "^1.6.2" } } diff --git a/examples/solid/column-ordering/package.json b/examples/solid/column-ordering/package.json index 2305d49ae6..ee5fa6e43c 100644 --- a/examples/solid/column-ordering/package.json +++ b/examples/solid/column-ordering/package.json @@ -16,7 +16,7 @@ "vite-plugin-solid": "^2.2.6" }, "dependencies": { - "@tanstack/solid-table": "8.9.2", + "@tanstack/solid-table": "8.9.3", "solid-js": "^1.6.2" } } diff --git a/examples/solid/column-visibility/package.json b/examples/solid/column-visibility/package.json index ea7444c3bf..7ff835fc96 100644 --- a/examples/solid/column-visibility/package.json +++ b/examples/solid/column-visibility/package.json @@ -15,7 +15,7 @@ "vite-plugin-solid": "^2.2.6" }, "dependencies": { - "@tanstack/solid-table": "8.9.2", + "@tanstack/solid-table": "8.9.3", "solid-js": "^1.6.2" } } diff --git a/examples/solid/sorting/package.json b/examples/solid/sorting/package.json index 2467ea08ff..7a6cda62d3 100644 --- a/examples/solid/sorting/package.json +++ b/examples/solid/sorting/package.json @@ -16,7 +16,7 @@ "vite-plugin-solid": "^2.2.6" }, "dependencies": { - "@tanstack/solid-table": "8.9.2", + "@tanstack/solid-table": "8.9.3", "solid-js": "^1.6.2" } } diff --git a/examples/svelte/basic/package.json b/examples/svelte/basic/package.json index c1a1a6eaba..0a75de0813 100644 --- a/examples/svelte/basic/package.json +++ b/examples/svelte/basic/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@rollup/plugin-replace": "^5.0.1", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.42", - "@tanstack/svelte-table": "8.9.2", + "@tanstack/svelte-table": "8.9.4", "@tsconfig/svelte": "^3.0.0", "svelte": "^3.44.0", "svelte-check": "^2.2.7", diff --git a/examples/svelte/column-groups/package.json b/examples/svelte/column-groups/package.json index 6606f8f05a..f811170b9c 100644 --- a/examples/svelte/column-groups/package.json +++ b/examples/svelte/column-groups/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@rollup/plugin-replace": "^5.0.1", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.42", - "@tanstack/svelte-table": "8.9.2", + "@tanstack/svelte-table": "8.9.4", "@tsconfig/svelte": "^3.0.0", "svelte": "^3.44.0", "svelte-check": "^2.2.7", diff --git a/examples/svelte/column-ordering/package.json b/examples/svelte/column-ordering/package.json index 22f489b562..24c4115179 100644 --- a/examples/svelte/column-ordering/package.json +++ b/examples/svelte/column-ordering/package.json @@ -14,7 +14,7 @@ "@faker-js/faker": "^7.6.0", "@rollup/plugin-replace": "^5.0.1", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.42", - "@tanstack/svelte-table": "8.9.2", + "@tanstack/svelte-table": "8.9.4", "@tsconfig/svelte": "^3.0.0", "svelte": "^3.44.0", "svelte-check": "^2.2.7", diff --git a/examples/svelte/column-pinning/package.json b/examples/svelte/column-pinning/package.json index 52afb5a560..781437dade 100644 --- a/examples/svelte/column-pinning/package.json +++ b/examples/svelte/column-pinning/package.json @@ -14,7 +14,7 @@ "@faker-js/faker": "^7.6.0", "@rollup/plugin-replace": "^5.0.1", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.42", - "@tanstack/svelte-table": "8.9.2", + "@tanstack/svelte-table": "8.9.4", "@tsconfig/svelte": "^3.0.0", "svelte": "^3.44.0", "svelte-check": "^2.2.7", diff --git a/examples/svelte/column-visibility/package.json b/examples/svelte/column-visibility/package.json index 3c08543565..bfe1b9c4f7 100644 --- a/examples/svelte/column-visibility/package.json +++ b/examples/svelte/column-visibility/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@rollup/plugin-replace": "^5.0.1", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.42", - "@tanstack/svelte-table": "8.9.2", + "@tanstack/svelte-table": "8.9.4", "@tsconfig/svelte": "^3.0.0", "svelte": "^3.44.0", "svelte-check": "^2.2.7", diff --git a/examples/svelte/sorting/package.json b/examples/svelte/sorting/package.json index b361784908..148536548f 100644 --- a/examples/svelte/sorting/package.json +++ b/examples/svelte/sorting/package.json @@ -14,7 +14,7 @@ "@faker-js/faker": "^7.6.0", "@rollup/plugin-replace": "^5.0.1", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.42", - "@tanstack/svelte-table": "8.9.2", + "@tanstack/svelte-table": "8.9.4", "@tsconfig/svelte": "^3.0.0", "svelte": "^3.44.0", "svelte-check": "^2.2.7", diff --git a/examples/vue/basic/package.json b/examples/vue/basic/package.json index d88aad53cf..2cd032e130 100644 --- a/examples/vue/basic/package.json +++ b/examples/vue/basic/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "vue": "^3.2.33", - "@tanstack/vue-table": "8.9.2" + "@tanstack/vue-table": "8.9.3" }, "devDependencies": { "@types/node": "^16.11.27", diff --git a/examples/vue/column-ordering/package.json b/examples/vue/column-ordering/package.json index 3addf7d430..5f10f3cc01 100644 --- a/examples/vue/column-ordering/package.json +++ b/examples/vue/column-ordering/package.json @@ -10,7 +10,7 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "vue": "^3.2.33", - "@tanstack/vue-table": "8.9.2" + "@tanstack/vue-table": "8.9.3" }, "devDependencies": { "@types/node": "^16.11.27", diff --git a/examples/vue/column-pinning/package.json b/examples/vue/column-pinning/package.json index a8e6f4597d..6e2be05fdf 100644 --- a/examples/vue/column-pinning/package.json +++ b/examples/vue/column-pinning/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@faker-js/faker": "^7.6.0", - "@tanstack/vue-table": "8.9.2", + "@tanstack/vue-table": "8.9.3", "vue": "^3.2.33" }, "devDependencies": { diff --git a/examples/vue/pagination-controlled/package.json b/examples/vue/pagination-controlled/package.json index 927c0b1f4d..231db96781 100644 --- a/examples/vue/pagination-controlled/package.json +++ b/examples/vue/pagination-controlled/package.json @@ -10,7 +10,7 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "vue": "^3.2.33", - "@tanstack/vue-table": "8.9.2" + "@tanstack/vue-table": "8.9.3" }, "devDependencies": { "@types/node": "^16.11.27", diff --git a/examples/vue/pagination/package.json b/examples/vue/pagination/package.json index a47ddc8be7..68f6b975f1 100644 --- a/examples/vue/pagination/package.json +++ b/examples/vue/pagination/package.json @@ -10,7 +10,7 @@ "dependencies": { "vue": "^3.2.33", "@faker-js/faker": "^7.6.0", - "@tanstack/vue-table": "8.9.2" + "@tanstack/vue-table": "8.9.3" }, "devDependencies": { "@types/node": "^16.11.27", diff --git a/examples/vue/sorting/package.json b/examples/vue/sorting/package.json index 92656e2c27..58251d590f 100644 --- a/examples/vue/sorting/package.json +++ b/examples/vue/sorting/package.json @@ -10,7 +10,7 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "vue": "^3.2.33", - "@tanstack/vue-table": "8.9.2" + "@tanstack/vue-table": "8.9.3" }, "devDependencies": { "@types/node": "^16.11.27", diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 9a120cc217..cf2b18ab06 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/react-table", "author": "Tanner Linsley", - "version": "8.9.2", + "version": "8.9.3", "description": "Headless UI for building powerful tables & datagrids for React.", "license": "MIT", "homepage": "https://github.com/tanstack/table#readme", @@ -43,7 +43,7 @@ "src" ], "dependencies": { - "@tanstack/table-core": "8.9.2" + "@tanstack/table-core": "8.9.3" }, "peerDependencies": { "react": ">=16", diff --git a/packages/solid-table/package.json b/packages/solid-table/package.json index e8d90e248c..b8d738acf5 100644 --- a/packages/solid-table/package.json +++ b/packages/solid-table/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/solid-table", "author": "Tanner Linsley", - "version": "8.9.2", + "version": "8.9.3", "description": "Headless UI for building powerful tables & datagrids for Solid.", "license": "MIT", "homepage": "https://github.com/tanstack/table#readme", @@ -44,7 +44,7 @@ "src" ], "dependencies": { - "@tanstack/table-core": "8.9.2" + "@tanstack/table-core": "8.9.3" }, "peerDependencies": { "solid-js": "^1.3.13" diff --git a/packages/svelte-table/package.json b/packages/svelte-table/package.json index 5184ba5d50..611cb7fe15 100644 --- a/packages/svelte-table/package.json +++ b/packages/svelte-table/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/svelte-table", "author": "Tanner Linsley", - "version": "8.9.2", + "version": "8.9.4", "description": "Headless UI for building powerful tables & datagrids for Svelte.", "license": "MIT", "homepage": "https://github.com/tanstack/table#readme", @@ -42,7 +42,7 @@ "src" ], "dependencies": { - "@tanstack/table-core": "8.9.2" + "@tanstack/table-core": "8.9.3" }, "peerDependencies": { "svelte": "^3.49.0" diff --git a/packages/svelte-table/src/index.ts b/packages/svelte-table/src/index.ts index 03750b9a09..35db41275b 100755 --- a/packages/svelte-table/src/index.ts +++ b/packages/svelte-table/src/index.ts @@ -1,3 +1,4 @@ +import type { ComponentType } from 'svelte' import { RowData, createTable, @@ -44,7 +45,7 @@ function wrapInPlaceholder(content: any) { return renderComponent(Placeholder, { content }) } -export function flexRender(component: any, props: any) { +export function flexRender(component: any, props: any): ComponentType | null { if (!component) return null if (isSvelteComponent(component)) { diff --git a/packages/svelte-table/src/render-component.ts b/packages/svelte-table/src/render-component.ts index 8619506046..08f4fb1a65 100644 --- a/packages/svelte-table/src/render-component.ts +++ b/packages/svelte-table/src/render-component.ts @@ -64,7 +64,7 @@ function renderClient( undefined ) } - } + } as ComponentType } function renderServer( @@ -82,7 +82,7 @@ function renderServer( } ) - return WrapperComp + return WrapperComp as unknown as ComponentType } export const renderComponent = diff --git a/packages/table-core/package.json b/packages/table-core/package.json index f00d17ea03..989abb6af7 100644 --- a/packages/table-core/package.json +++ b/packages/table-core/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/table-core", "author": "Tanner Linsley", - "version": "8.9.2", + "version": "8.9.3", "description": "Headless UI for building powerful tables & datagrids for TS/JS.", "license": "MIT", "homepage": "https://github.com/tanstack/table#readme", diff --git a/packages/vue-table/package.json b/packages/vue-table/package.json index 5f994b0230..f08697b172 100644 --- a/packages/vue-table/package.json +++ b/packages/vue-table/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/vue-table", "author": "Tanner Linsley", - "version": "8.9.2", + "version": "8.9.3", "description": "Headless UI for building powerful tables & datagrids for Vue.", "license": "MIT", "homepage": "https://github.com/tanstack/table#readme", @@ -43,7 +43,7 @@ "src" ], "dependencies": { - "@tanstack/table-core": "8.9.2" + "@tanstack/table-core": "8.9.3" }, "peerDependencies": { "vue": "^3.2.33"