react-virtuoso 2.8.0 → 2.8.3

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.
@@ -26,6 +26,12 @@ export interface GroupProps {
26
26
  }
27
27
  export declare type TopItemListProps = Pick<ComponentPropsWithRef<'div'>, 'style' | 'children'>;
28
28
  export declare type TableProps = Pick<ComponentPropsWithRef<'table'>, 'style'>;
29
+ /**
30
+ * Passed to the Components.TableBody custom component
31
+ */
32
+ export declare type TableBodyProps = Pick<ComponentPropsWithRef<'tbody'>, 'style' | 'children' | 'ref' | 'className'> & {
33
+ 'data-test-id': string;
34
+ };
29
35
  /**
30
36
  * Passed to the Components.List custom component
31
37
  */
@@ -157,7 +163,7 @@ export interface TableComponents<Context = unknown> {
157
163
  /**
158
164
  * Set to customize the items wrapper. Default is `tbody`.
159
165
  */
160
- TableBody?: ComponentType<ListProps & {
166
+ TableBody?: ComponentType<TableBodyProps & {
161
167
  context?: Context;
162
168
  }>;
163
169
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-virtuoso",
3
3
  "author": "Petyo Ivanov",
4
4
  "sideEffects": false,
5
- "version": "2.8.0",
5
+ "version": "2.8.3",
6
6
  "homepage": "https://virtuoso.dev/",
7
7
  "license": "MIT",
8
8
  "source": "src/index.tsx",