@tanstack/svelte-table 8.9.3 → 8.9.4
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/build/lib/index.d.ts +2 -22
- package/build/lib/index.esm.js.map +1 -1
- package/build/lib/index.js.map +1 -1
- package/build/lib/index.mjs.map +1 -1
- package/build/lib/render-component.d.ts +2 -25
- package/build/lib/render-component.js.map +1 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/render-component.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-table",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.9.
|
|
4
|
+
"version": "8.9.4",
|
|
5
5
|
"description": "Headless UI for building powerful tables & datagrids for Svelte.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/table#readme",
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentType } from 'svelte'
|
|
1
2
|
import {
|
|
2
3
|
RowData,
|
|
3
4
|
createTable,
|
|
@@ -44,7 +45,7 @@ function wrapInPlaceholder(content: any) {
|
|
|
44
45
|
return renderComponent(Placeholder, { content })
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
export function flexRender(component: any, props: any) {
|
|
48
|
+
export function flexRender(component: any, props: any): ComponentType | null {
|
|
48
49
|
if (!component) return null
|
|
49
50
|
|
|
50
51
|
if (isSvelteComponent(component)) {
|
package/src/render-component.ts
CHANGED
|
@@ -64,7 +64,7 @@ function renderClient<T>(
|
|
|
64
64
|
undefined
|
|
65
65
|
)
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
} as ComponentType
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
function renderServer<T>(
|
|
@@ -82,7 +82,7 @@ function renderServer<T>(
|
|
|
82
82
|
}
|
|
83
83
|
)
|
|
84
84
|
|
|
85
|
-
return WrapperComp
|
|
85
|
+
return WrapperComp as unknown as ComponentType
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export const renderComponent =
|