virtua 0.50.2 → 0.50.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/lib/angular/VList.d.ts +7 -7
- package/lib/angular/Virtualizer.d.ts +11 -11
- package/lib/angular/WindowVirtualizer.d.ts +13 -9
- package/lib/angular/index.js +440 -434
- package/lib/angular/index.js.map +1 -1
- package/lib/core/index.cjs +342 -335
- package/lib/core/index.cjs.map +1 -1
- package/lib/core/index.d.ts +5 -2
- package/lib/core/index.js +326 -318
- package/lib/core/index.js.map +1 -1
- package/lib/core/layouts/types.d.ts +1 -0
- package/lib/core/observer.d.ts +1 -0
- package/lib/core/scroll-to.d.ts +1 -0
- package/lib/core/types.d.ts +1 -5
- package/lib/index.cjs +534 -532
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +496 -494
- package/lib/index.js.map +1 -1
- package/lib/solid/VList.d.ts +1 -1
- package/lib/solid/Virtualizer.d.ts +4 -0
- package/lib/solid/WindowVirtualizer.d.ts +4 -0
- package/lib/solid/index.cjs +366 -378
- package/lib/solid/index.cjs.map +1 -1
- package/lib/solid/index.js +373 -386
- package/lib/solid/index.js.map +1 -1
- package/lib/solid/index.jsx +383 -368
- package/lib/solid/index.jsx.map +1 -1
- package/lib/svelte/ListItem.svelte +2 -2
- package/lib/svelte/Virtualizer.svelte +22 -32
- package/lib/svelte/WindowVirtualizer.svelte +22 -21
- package/lib/svelte/WindowVirtualizer.type.d.ts +4 -0
- package/lib/svelte/utils.js.map +1 -1
- package/lib/vue/WindowVirtualizer.d.ts +4 -0
- package/lib/vue/index.cjs +366 -385
- package/lib/vue/index.cjs.map +1 -1
- package/lib/vue/index.js +342 -361
- package/lib/vue/index.js.map +1 -1
- package/package.json +30 -29
- /package/lib/core/{resizer.d.ts → driver.d.ts} +0 -0
- /package/lib/core/{scroller.d.ts → layouts/list.d.ts} +0 -0
|
@@ -94,6 +94,10 @@ export interface VirtualizerProps<T> {
|
|
|
94
94
|
* - If set, you can opt out estimation and use the value as initial item size.
|
|
95
95
|
*/
|
|
96
96
|
itemSize?: number;
|
|
97
|
+
/**
|
|
98
|
+
* A prop for SSR. If set, the specified amount of items will be mounted in the initial rendering regardless of the container size until hydrated. The minimum value is 0.
|
|
99
|
+
*/
|
|
100
|
+
ssrCount?: number;
|
|
97
101
|
/**
|
|
98
102
|
* While true is set, scroll position will be maintained from the end not usual start when items are added to/removed from start. It's recommended to set false if you add to/remove from mid/end of the list because it can cause unexpected behavior. This prop is useful for reverse infinite scrolling.
|
|
99
103
|
*/
|
|
@@ -66,6 +66,10 @@ export interface WindowVirtualizerProps<T> {
|
|
|
66
66
|
* - If set, you can opt out estimation and use the value as initial item size.
|
|
67
67
|
*/
|
|
68
68
|
itemSize?: number;
|
|
69
|
+
/**
|
|
70
|
+
* A prop for SSR. If set, the specified amount of items will be mounted in the initial rendering regardless of the container size until hydrated. The minimum value is 0.
|
|
71
|
+
*/
|
|
72
|
+
ssrCount?: number;
|
|
69
73
|
/**
|
|
70
74
|
* While true is set, scroll position will be maintained from the end not usual start when items are added to/removed from start. It's recommended to set false if you add to/remove from mid/end of the list because it can cause unexpected behavior. This prop is useful for reverse infinite scrolling.
|
|
71
75
|
*/
|