@tanstack/svelte-table 9.0.0-beta.7 → 9.0.0-beta.9
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.
|
@@ -32,7 +32,7 @@ export function createTable(tableOptions, selector) {
|
|
|
32
32
|
// 1. Merge reactivity into options using mergeObjects (preserves getters)
|
|
33
33
|
const mergedOptions = mergeObjects(tableOptions, {
|
|
34
34
|
features: {
|
|
35
|
-
|
|
35
|
+
coreReactivityFeature: svelteReactivity(),
|
|
36
36
|
...tableOptions.features,
|
|
37
37
|
},
|
|
38
38
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-table",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.9",
|
|
4
4
|
"description": "Headless UI for building powerful tables & datagrids for Svelte.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@tanstack/svelte-store": "^0.12.0",
|
|
56
|
-
"@tanstack/table-core": "9.0.0-beta.
|
|
56
|
+
"@tanstack/table-core": "9.0.0-beta.9"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@sveltejs/package": "^2.5.8",
|
|
@@ -46,7 +46,7 @@ If a slice is supplied externally via `atoms`, `table.atoms.<slice>` reads from
|
|
|
46
46
|
|
|
47
47
|
## The Svelte bindings (what `svelteReactivity()` actually does)
|
|
48
48
|
|
|
49
|
-
The Svelte adapter ships `svelteReactivity()` and installs it as `
|
|
49
|
+
The Svelte adapter ships `svelteReactivity()` and installs it as `coreReactivityFeature`. It
|
|
50
50
|
maps Store primitives to runes:
|
|
51
51
|
|
|
52
52
|
- Readonly atoms → `$derived.by(fn)`
|
|
@@ -48,7 +48,7 @@ A table instance has three (and a half) state surfaces:
|
|
|
48
48
|
- `table.state` — the value returned by the optional selector passed as the second argument to
|
|
49
49
|
`createTable`. **Svelte-only surface.**
|
|
50
50
|
|
|
51
|
-
The Svelte adapter installs `svelteReactivity()` as the `
|
|
51
|
+
The Svelte adapter installs `svelteReactivity()` as the `coreReactivityFeature`:
|
|
52
52
|
|
|
53
53
|
| Core concept | Svelte binding |
|
|
54
54
|
| ------------- | --------------- |
|
|
@@ -73,7 +73,7 @@ export function createTable<
|
|
|
73
73
|
// 1. Merge reactivity into options using mergeObjects (preserves getters)
|
|
74
74
|
const mergedOptions = mergeObjects(tableOptions, {
|
|
75
75
|
features: {
|
|
76
|
-
|
|
76
|
+
coreReactivityFeature: svelteReactivity(),
|
|
77
77
|
...tableOptions.features,
|
|
78
78
|
},
|
|
79
79
|
}) as TableOptions<TFeatures, TData>
|