@etsoo/react 1.8.54 → 1.8.56

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.
@@ -17,6 +17,10 @@ export type ScrollToCellParam = {
17
17
  rowAlign?: ScrollToRowParam["align"];
18
18
  rowIndex: number;
19
19
  };
20
+ /**
21
+ * On cells rendered data
22
+ */
23
+ export type OnCellsRenderedData = Parameters<NonNullable<GridProps<object>["onCellsRendered"]>>[0];
20
24
  /**
21
25
  * Scroller vertical grid props
22
26
  */
@@ -6,6 +6,10 @@ import { GridMethodRef } from "./GridMethodRef";
6
6
  type ScrollerListRowProps<T extends object> = {
7
7
  items: T[];
8
8
  };
9
+ /**
10
+ * On rows rendered data
11
+ */
12
+ export type OnRowsRenderedData = Parameters<NonNullable<ListProps<object>["onRowsRendered"]>>[0];
9
13
  /**
10
14
  * Scroller list forward ref
11
15
  */
@@ -31,3 +31,4 @@ export * from "./uses/useSearchParamsWithCache";
31
31
  export * from "./uses/useTimeout";
32
32
  export * from "./uses/useWindowScroll";
33
33
  export * from "./uses/useWindowSize";
34
+ export type { GridImperativeAPI, ListImperativeAPI } from "react-window";
@@ -17,6 +17,10 @@ export type ScrollToCellParam = {
17
17
  rowAlign?: ScrollToRowParam["align"];
18
18
  rowIndex: number;
19
19
  };
20
+ /**
21
+ * On cells rendered data
22
+ */
23
+ export type OnCellsRenderedData = Parameters<NonNullable<GridProps<object>["onCellsRendered"]>>[0];
20
24
  /**
21
25
  * Scroller vertical grid props
22
26
  */
@@ -6,6 +6,10 @@ import { GridMethodRef } from "./GridMethodRef";
6
6
  type ScrollerListRowProps<T extends object> = {
7
7
  items: T[];
8
8
  };
9
+ /**
10
+ * On rows rendered data
11
+ */
12
+ export type OnRowsRenderedData = Parameters<NonNullable<ListProps<object>["onRowsRendered"]>>[0];
9
13
  /**
10
14
  * Scroller list forward ref
11
15
  */
@@ -31,3 +31,4 @@ export * from "./uses/useSearchParamsWithCache";
31
31
  export * from "./uses/useTimeout";
32
32
  export * from "./uses/useWindowScroll";
33
33
  export * from "./uses/useWindowSize";
34
+ export type { GridImperativeAPI, ListImperativeAPI } from "react-window";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.8.54",
3
+ "version": "1.8.56",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -27,6 +27,13 @@ export type ScrollToCellParam = {
27
27
  rowIndex: number;
28
28
  };
29
29
 
30
+ /**
31
+ * On cells rendered data
32
+ */
33
+ export type OnCellsRenderedData = Parameters<
34
+ NonNullable<GridProps<object>["onCellsRendered"]>
35
+ >[0];
36
+
30
37
  /**
31
38
  * Scroller vertical grid props
32
39
  */
@@ -14,6 +14,13 @@ type ScrollerListRowProps<T extends object> = {
14
14
  items: T[];
15
15
  };
16
16
 
17
+ /**
18
+ * On rows rendered data
19
+ */
20
+ export type OnRowsRenderedData = Parameters<
21
+ NonNullable<ListProps<object>["onRowsRendered"]>
22
+ >[0];
23
+
17
24
  /**
18
25
  * Scroller list forward ref
19
26
  */
package/src/index.ts CHANGED
@@ -42,3 +42,6 @@ export * from "./uses/useSearchParamsWithCache";
42
42
  export * from "./uses/useTimeout";
43
43
  export * from "./uses/useWindowScroll";
44
44
  export * from "./uses/useWindowSize";
45
+
46
+ // react-window
47
+ export type { GridImperativeAPI, ListImperativeAPI } from "react-window";