@tanstack/svelte-table 8.5.28 → 8.5.29
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/cjs/svelte-table/src/render-component.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +45 -45
- package/build/types/index.d.ts +27 -2
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/render-component.ts +9 -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.5.
|
|
4
|
+
"version": "8.5.29",
|
|
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",
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"@tanstack/table-core": "8.5.28"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"svelte": "^3.
|
|
40
|
+
"svelte": "^3.49.0"
|
|
41
41
|
}
|
|
42
42
|
}
|
package/src/render-component.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentType, ComponentProps } from 'svelte'
|
|
1
2
|
import {
|
|
2
3
|
SvelteComponent,
|
|
3
4
|
claim_component,
|
|
@@ -46,7 +47,10 @@ function create_fragment(ctx: any, Comp: any, props: any) {
|
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
function renderClient(
|
|
50
|
+
function renderClient<T>(
|
|
51
|
+
Comp: T,
|
|
52
|
+
props: T extends ComponentType<infer C> ? ComponentProps<C> : any
|
|
53
|
+
) {
|
|
50
54
|
return class WrapperComp extends SvelteComponent {
|
|
51
55
|
constructor(options: any) {
|
|
52
56
|
super()
|
|
@@ -63,7 +67,10 @@ function renderClient(Comp: any, props: any): any {
|
|
|
63
67
|
}
|
|
64
68
|
}
|
|
65
69
|
|
|
66
|
-
function renderServer(
|
|
70
|
+
function renderServer<T>(
|
|
71
|
+
Comp: T,
|
|
72
|
+
props: T extends ComponentType<infer C> ? ComponentProps<C> : any
|
|
73
|
+
) {
|
|
67
74
|
const WrapperComp = create_ssr_component(
|
|
68
75
|
($$result: any, $$props: any, $$bindings: any, slots: any) => {
|
|
69
76
|
return `${validate_component(Comp, 'TableComponent').$$render(
|