@etsoo/react 1.8.13 → 1.8.14
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataTypes } from "@etsoo/shared";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Align, GridChildComponentProps, VariableSizeGridProps } from "react-window";
|
|
4
|
-
import { GridLoader, GridLoaderStates } from "./GridLoader";
|
|
4
|
+
import { GridJsonData, GridLoadDataProps, GridLoader, GridLoaderStates } from "./GridLoader";
|
|
5
5
|
import { GridMethodRef } from "./GridMethodRef";
|
|
6
6
|
export type ScrollerGridItemRendererProps<T> = Omit<GridChildComponentProps<T>, "data"> & {
|
|
7
7
|
/**
|
|
@@ -21,7 +21,7 @@ export type ScrollerGridItemRendererProps<T> = Omit<GridChildComponentProps<T>,
|
|
|
21
21
|
/**
|
|
22
22
|
* Scroller vertical grid props
|
|
23
23
|
*/
|
|
24
|
-
export type ScrollerGridProps<T extends object> = GridLoader<T> & Omit<VariableSizeGridProps<T>, "children" | "rowCount" | "rowHeight"> & {
|
|
24
|
+
export type ScrollerGridProps<T extends object, P extends GridJsonData = GridLoadDataProps> = GridLoader<T, P> & Omit<VariableSizeGridProps<T>, "children" | "rowCount" | "rowHeight"> & {
|
|
25
25
|
/**
|
|
26
26
|
* Footer renderer
|
|
27
27
|
*/
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
VariableSizeGridProps
|
|
9
9
|
} from "react-window";
|
|
10
10
|
import {
|
|
11
|
+
GridJsonData,
|
|
11
12
|
GridLoadDataProps,
|
|
12
13
|
GridLoader,
|
|
13
14
|
GridLoaderPartialStates,
|
|
@@ -44,7 +45,10 @@ export type ScrollerGridItemRendererProps<T> = Omit<
|
|
|
44
45
|
/**
|
|
45
46
|
* Scroller vertical grid props
|
|
46
47
|
*/
|
|
47
|
-
export type ScrollerGridProps<
|
|
48
|
+
export type ScrollerGridProps<
|
|
49
|
+
T extends object,
|
|
50
|
+
P extends GridJsonData = GridLoadDataProps
|
|
51
|
+
> = GridLoader<T, P> &
|
|
48
52
|
Omit<VariableSizeGridProps<T>, "children" | "rowCount" | "rowHeight"> & {
|
|
49
53
|
/**
|
|
50
54
|
* Footer renderer
|