virtua 0.43.0 → 0.43.1
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/lib/solid/index.js +1 -1
- package/lib/solid/index.js.map +1 -1
- package/lib/solid/index.mjs +1 -1
- package/lib/solid/index.mjs.map +1 -1
- package/lib/svelte/Virtualizer.svelte +9 -6
- package/package.json +20 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" generics="T">
|
|
2
|
-
import { onMount, onDestroy } from "svelte";
|
|
2
|
+
import { onMount, onDestroy, tick } from "svelte";
|
|
3
3
|
import {
|
|
4
4
|
ACTION_ITEMS_LENGTH_CHANGE,
|
|
5
5
|
ACTION_START_OFFSET_CHANGE,
|
|
@@ -70,11 +70,14 @@
|
|
|
70
70
|
resizer.$observeRoot(scrollable);
|
|
71
71
|
scroller.$observe(scrollable);
|
|
72
72
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
// parent's ref may not exist on mount https://github.com/inokawa/virtua/issues/603 https://github.com/inokawa/virtua/issues/690
|
|
74
|
+
tick().then(() => {
|
|
75
|
+
if (scrollRef) {
|
|
76
|
+
assignRef(scrollRef);
|
|
77
|
+
} else {
|
|
78
|
+
assignRef(containerRef!.parentElement!);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
78
81
|
});
|
|
79
82
|
onDestroy(() => {
|
|
80
83
|
unsubscribeStore();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtua",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.1",
|
|
4
4
|
"description": "A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid and Svelte.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
@@ -79,34 +79,34 @@
|
|
|
79
79
|
"@rollup/plugin-terser": "^0.4.4",
|
|
80
80
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
81
81
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
82
|
-
"@storybook/addon-docs": "^9.
|
|
83
|
-
"@storybook/react-vite": "^9.
|
|
84
|
-
"@storybook/svelte-vite": "^9.
|
|
82
|
+
"@storybook/addon-docs": "^9.1.5",
|
|
83
|
+
"@storybook/react-vite": "^9.1.5",
|
|
84
|
+
"@storybook/svelte-vite": "^9.1.5",
|
|
85
85
|
"@storybook/test-runner": "^0.23.0",
|
|
86
|
-
"@storybook/vue3-vite": "^9.
|
|
86
|
+
"@storybook/vue3-vite": "^9.1.5",
|
|
87
87
|
"@sveltejs/vite-plugin-svelte": "^4.0.4",
|
|
88
88
|
"@tanstack/react-virtual": "^3.13.12",
|
|
89
89
|
"@testing-library/dom": "^10.4.0",
|
|
90
90
|
"@testing-library/react": "^16.3.0",
|
|
91
91
|
"@testing-library/vue": "^8.1.0",
|
|
92
92
|
"@types/jsdom": "^21.1.7",
|
|
93
|
-
"@types/react": "^19.1.
|
|
94
|
-
"@types/react-dom": "^19.1.
|
|
93
|
+
"@types/react": "^19.1.12",
|
|
94
|
+
"@types/react-dom": "^19.1.9",
|
|
95
95
|
"@types/react-virtualized": "^9.22.2",
|
|
96
96
|
"@types/react-window": "^1.8.8",
|
|
97
|
-
"@vitejs/plugin-react": "^
|
|
97
|
+
"@vitejs/plugin-react": "^5.0.2",
|
|
98
98
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
99
99
|
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
|
100
|
-
"babel-preset-solid": "^1.9.
|
|
100
|
+
"babel-preset-solid": "^1.9.9",
|
|
101
101
|
"cmdk": "^1.1.1",
|
|
102
102
|
"concurrently": "^9.1.2",
|
|
103
|
-
"eslint": "^9.
|
|
103
|
+
"eslint": "^9.35.0",
|
|
104
104
|
"eslint-import-resolver-typescript": "^4.3.5",
|
|
105
105
|
"eslint-plugin-import": "^2.31.0",
|
|
106
106
|
"eslint-plugin-react": "^7.37.5",
|
|
107
107
|
"eslint-plugin-react-hooks": "^6.0.0-rc.1",
|
|
108
108
|
"eslint-plugin-solid": "^0.14.5",
|
|
109
|
-
"eslint-plugin-vue": "^10.
|
|
109
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
110
110
|
"jsdom": "^26.1.0",
|
|
111
111
|
"re-resizable": "^6.11.2",
|
|
112
112
|
"react": "^19.1.0",
|
|
@@ -121,24 +121,24 @@
|
|
|
121
121
|
"rollup": "^4.27.4",
|
|
122
122
|
"rollup-plugin-banner2": "^1.3.1",
|
|
123
123
|
"size-limit": "^11.2.0",
|
|
124
|
-
"solid-js": "^1.9.
|
|
125
|
-
"storybook": "^9.
|
|
124
|
+
"solid-js": "^1.9.9",
|
|
125
|
+
"storybook": "^9.1.5",
|
|
126
126
|
"storybook-solidjs-vite": "^9.0.2",
|
|
127
|
-
"svelte": "^5.
|
|
128
|
-
"svelte-check": "^4.
|
|
127
|
+
"svelte": "^5.38.9",
|
|
128
|
+
"svelte-check": "^4.3.1",
|
|
129
129
|
"svelte2tsx": "^0.7.34",
|
|
130
130
|
"typedoc": "^0.28.4",
|
|
131
131
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
132
132
|
"typedoc-plugin-vue": "^1.5.0",
|
|
133
133
|
"typescript": "5.7.3",
|
|
134
|
-
"typescript-eslint": "^8.
|
|
134
|
+
"typescript-eslint": "^8.43.0",
|
|
135
135
|
"unplugin-vue-jsx": "^0.8.0",
|
|
136
|
-
"virtua": "^0.
|
|
136
|
+
"virtua": "^0.43.0",
|
|
137
137
|
"vite": "5.1.8",
|
|
138
|
-
"vite-plugin-solid": "^2.11.
|
|
139
|
-
"vitest": "^3.
|
|
138
|
+
"vite-plugin-solid": "^2.11.8",
|
|
139
|
+
"vitest": "^3.2.4",
|
|
140
140
|
"vue": "^3.4.34",
|
|
141
|
-
"vue-eslint-parser": "^10.
|
|
141
|
+
"vue-eslint-parser": "^10.2.0",
|
|
142
142
|
"wait-on": "^8.0.3"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|