virtua 0.50.0 → 0.50.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/svelte/Virtualizer.svelte +10 -4
- package/package.json +22 -10
|
@@ -97,19 +97,25 @@
|
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
onMount(() => {
|
|
100
|
+
let unmounted = false;
|
|
100
101
|
const container = containerRef!;
|
|
101
|
-
const assignRef = (scrollable: HTMLElement) => {
|
|
102
|
-
resizer.$observeRoot(scrollable);
|
|
103
|
-
scroller.$observe(container, scrollable);
|
|
104
|
-
};
|
|
105
102
|
// parent's ref may not exist on mount https://github.com/inokawa/virtua/issues/603 https://github.com/inokawa/virtua/issues/690
|
|
106
103
|
tick().then(() => {
|
|
104
|
+
// https://github.com/inokawa/virtua/pull/914
|
|
105
|
+
if (unmounted) return;
|
|
106
|
+
const assignRef = (scrollable: HTMLElement) => {
|
|
107
|
+
resizer.$observeRoot(scrollable);
|
|
108
|
+
scroller.$observe(container, scrollable);
|
|
109
|
+
};
|
|
107
110
|
if (scrollRef) {
|
|
108
111
|
assignRef(scrollRef);
|
|
109
112
|
} else {
|
|
110
113
|
assignRef(container.parentElement!);
|
|
111
114
|
}
|
|
112
115
|
});
|
|
116
|
+
return () => {
|
|
117
|
+
unmounted = true;
|
|
118
|
+
};
|
|
113
119
|
});
|
|
114
120
|
onDestroy(() => {
|
|
115
121
|
store.$dispose();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtua",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.1",
|
|
4
4
|
"description": "A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid, Svelte and Angular.",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.12",
|
|
84
84
|
"@babel/core": "^7.29.7",
|
|
85
85
|
"@base-ui/react": "^1.4.0",
|
|
86
|
-
"@dnd-kit/
|
|
87
|
-
"@dnd-kit/
|
|
86
|
+
"@dnd-kit/helpers": "^0.5.0",
|
|
87
|
+
"@dnd-kit/react": "^0.5.0",
|
|
88
88
|
"@emotion/react": "^11.13.5",
|
|
89
89
|
"@emotion/styled": "^11.13.5",
|
|
90
90
|
"@faker-js/faker": "^10.3.0",
|
|
91
|
-
"@formkit/auto-animate": "^0.
|
|
91
|
+
"@formkit/auto-animate": "^0.10.0",
|
|
92
92
|
"@mui/material": "^9.0.0",
|
|
93
93
|
"@playwright/test": "^1.56.0",
|
|
94
94
|
"@radix-ui/colors": "^3.0.0",
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
"@storybook/svelte-vite": "^10.4.0",
|
|
105
105
|
"@storybook/vue3-vite": "^10.4.0",
|
|
106
106
|
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
107
|
+
"@tanstack/react-table": "^9.0.0",
|
|
107
108
|
"@tanstack/react-virtual": "^3.13.24",
|
|
108
109
|
"@testing-library/dom": "^10.4.0",
|
|
109
110
|
"@testing-library/react": "^16.3.2",
|
|
@@ -119,13 +120,13 @@
|
|
|
119
120
|
"@vitest/browser-playwright": "^4.1.0",
|
|
120
121
|
"@vitest/coverage-v8": "^4.1.0",
|
|
121
122
|
"cmdk": "^1.1.1",
|
|
122
|
-
"eslint": "^
|
|
123
|
-
"eslint-import-resolver-typescript": "^4.
|
|
123
|
+
"eslint": "^10.8.0",
|
|
124
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
124
125
|
"eslint-plugin-import": "^2.31.0",
|
|
125
126
|
"eslint-plugin-react": "^7.37.5",
|
|
126
127
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
127
128
|
"eslint-plugin-solid": "^0.14.5",
|
|
128
|
-
"eslint-plugin-vue": "^10.
|
|
129
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
129
130
|
"jsdom": "^29.0.0",
|
|
130
131
|
"prettier": "^3.8.3",
|
|
131
132
|
"prettier-plugin-svelte": "^4.0.0",
|
|
@@ -152,15 +153,26 @@
|
|
|
152
153
|
"typedoc": "^0.28.4",
|
|
153
154
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
154
155
|
"typescript": "^6.0.3",
|
|
155
|
-
"typescript-eslint": "^8.
|
|
156
|
+
"typescript-eslint": "^8.65.0",
|
|
156
157
|
"unplugin-vue-jsx": "^0.10.0",
|
|
157
|
-
"virtua": "^0.
|
|
158
|
+
"virtua": "^0.50.0",
|
|
158
159
|
"vite": "^8.0.13",
|
|
159
160
|
"vite-plugin-dts": "^5.0.3",
|
|
160
161
|
"vite-plugin-solid": "^2.11.12",
|
|
161
162
|
"vitest": "^4.1.6",
|
|
162
163
|
"vue": "^3.5.34",
|
|
163
|
-
"vue-eslint-parser": "^10.
|
|
164
|
+
"vue-eslint-parser": "^10.4.1"
|
|
165
|
+
},
|
|
166
|
+
"overrides": {
|
|
167
|
+
"eslint-plugin-react": {
|
|
168
|
+
"eslint": "$eslint"
|
|
169
|
+
},
|
|
170
|
+
"eslint-plugin-import": {
|
|
171
|
+
"eslint": "$eslint"
|
|
172
|
+
},
|
|
173
|
+
"eslint-plugin-solid": {
|
|
174
|
+
"eslint": "$eslint"
|
|
175
|
+
}
|
|
164
176
|
},
|
|
165
177
|
"peerDependencies": {
|
|
166
178
|
"@angular/common": ">=20.0.0",
|