react-virtuoso 2.2.6 → 2.2.7
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/dist/Grid.d.ts +3 -9
- package/dist/components.d.ts +8 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.m.js.map +1 -1
- package/dist/interfaces.d.ts +10 -4
- package/package.json +1 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ComponentType, Key, ReactNode
|
|
1
|
+
import { ComponentPropsWithRef, ComponentType, Key, ReactNode } from 'react';
|
|
2
2
|
export interface ListRange {
|
|
3
3
|
startIndex: number;
|
|
4
4
|
endIndex: number;
|
|
@@ -45,6 +45,14 @@ export interface ScrollSeekPlaceholderProps {
|
|
|
45
45
|
index: number;
|
|
46
46
|
height: number;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Passed to the GridComponents.ScrollSeekPlaceholder custom component
|
|
50
|
+
*/
|
|
51
|
+
export interface GridScrollSeekPlaceholderProps {
|
|
52
|
+
index: number;
|
|
53
|
+
height: number;
|
|
54
|
+
width: number;
|
|
55
|
+
}
|
|
48
56
|
/**
|
|
49
57
|
* Customize the Virtuoso rendering by passing a set of custom components.
|
|
50
58
|
*/
|
|
@@ -172,9 +180,7 @@ export interface GridComponents {
|
|
|
172
180
|
* Set to render an item placeholder when the user scrolls fast.
|
|
173
181
|
* See the `scrollSeekConfiguration` property for more details.
|
|
174
182
|
*/
|
|
175
|
-
ScrollSeekPlaceholder?: ComponentType<
|
|
176
|
-
style: CSSProperties;
|
|
177
|
-
}>;
|
|
183
|
+
ScrollSeekPlaceholder?: ComponentType<GridScrollSeekPlaceholderProps>;
|
|
178
184
|
}
|
|
179
185
|
export interface GridComputeItemKey {
|
|
180
186
|
(index: number): Key;
|