react-virtuoso 4.7.1 → 4.7.2
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/index.d.ts +16 -16
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -189,9 +189,9 @@ export declare interface GridItemProps {
|
|
|
189
189
|
/**
|
|
190
190
|
* Passed to the Components.List custom component
|
|
191
191
|
*/
|
|
192
|
-
export declare type GridListProps = Pick<React_2.
|
|
192
|
+
export declare type GridListProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children' | 'className'> & {
|
|
193
193
|
'data-test-id': string;
|
|
194
|
-
}
|
|
194
|
+
} & React_2.RefAttributes<HTMLDivElement>;
|
|
195
195
|
|
|
196
196
|
export declare type GridRootProps = Omit<React_2.HTMLProps<HTMLDivElement>, 'ref' | 'data'>;
|
|
197
197
|
|
|
@@ -281,7 +281,7 @@ export declare interface GroupItemContent<D, C> {
|
|
|
281
281
|
(index: number, groupIndex: number, data: D, context: C): React_2.ReactNode;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
export declare type GroupProps = Pick<React_2.
|
|
284
|
+
export declare type GroupProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'> & {
|
|
285
285
|
'data-index': number;
|
|
286
286
|
'data-item-index': number;
|
|
287
287
|
'data-known-size': number;
|
|
@@ -300,7 +300,7 @@ export declare interface ItemContent<D, C> {
|
|
|
300
300
|
(index: number, data: D, context: C): React_2.ReactNode;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export declare type ItemProps<D> = Pick<React_2.
|
|
303
|
+
export declare type ItemProps<D> = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'> & {
|
|
304
304
|
'data-index': number;
|
|
305
305
|
'data-item-index': number;
|
|
306
306
|
'data-item-group-index'?: number;
|
|
@@ -313,9 +313,9 @@ export declare type ListItem<D> = RecordItem<D> | GroupItem<D>;
|
|
|
313
313
|
/**
|
|
314
314
|
* Passed to the Components.List custom component
|
|
315
315
|
*/
|
|
316
|
-
export declare type ListProps = Pick<React_2.
|
|
316
|
+
export declare type ListProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'> & {
|
|
317
317
|
'data-test-id': string;
|
|
318
|
-
}
|
|
318
|
+
} & React_2.RefAttributes<HTMLDivElement>;
|
|
319
319
|
|
|
320
320
|
export declare interface ListRange {
|
|
321
321
|
startIndex: number;
|
|
@@ -362,10 +362,10 @@ export declare interface ScrollContainerState {
|
|
|
362
362
|
/**
|
|
363
363
|
* Passed to the Components.Scroller custom component
|
|
364
364
|
*/
|
|
365
|
-
export declare type ScrollerProps = Pick<React_2.
|
|
365
|
+
export declare type ScrollerProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children' | 'tabIndex'> & {
|
|
366
366
|
'data-test-id'?: string;
|
|
367
367
|
'data-virtuoso-scroller'?: boolean;
|
|
368
|
-
}
|
|
368
|
+
} & React_2.RefAttributes<HTMLDivElement>;
|
|
369
369
|
|
|
370
370
|
export declare type ScrollIntoViewLocation = FlatScrollIntoViewLocation | GroupedScrollIntoViewLocation;
|
|
371
371
|
|
|
@@ -450,9 +450,9 @@ export declare interface StateSnapshot {
|
|
|
450
450
|
/**
|
|
451
451
|
* Passed to the Components.TableBody custom component
|
|
452
452
|
*/
|
|
453
|
-
export declare type TableBodyProps = Pick<React_2.
|
|
453
|
+
export declare type TableBodyProps = Pick<React_2.ComponentProps<'tbody'>, 'style' | 'children' | 'className'> & {
|
|
454
454
|
'data-test-id': string;
|
|
455
|
-
}
|
|
455
|
+
} & React_2.RefAttributes<HTMLTableSectionElement>;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* Customize the TableVirtuoso rendering by passing a set of custom components.
|
|
@@ -469,15 +469,15 @@ export declare interface TableComponents<Data = unknown, Context = unknown> {
|
|
|
469
469
|
* Set to render a fixed header at the top of the table (`thead`). use [[fixedHeaderContent]] to set the contents
|
|
470
470
|
*
|
|
471
471
|
*/
|
|
472
|
-
TableHead?: React_2.ComponentType<Pick<React_2.
|
|
472
|
+
TableHead?: React_2.ComponentType<Pick<React_2.ComponentProps<'thead'>, 'style' | 'children'> & {
|
|
473
473
|
context?: Context;
|
|
474
|
-
}
|
|
474
|
+
} & React_2.RefAttributes<HTMLTableSectionElement>>;
|
|
475
475
|
/**
|
|
476
476
|
* Set to render a fixed footer at the bottom of the table (`tfoot`). use [[fixedFooterContent]] to set the contents
|
|
477
477
|
*/
|
|
478
|
-
TableFoot?: React_2.ComponentType<Pick<React_2.
|
|
478
|
+
TableFoot?: React_2.ComponentType<Pick<React_2.ComponentProps<'tfoot'>, 'style' | 'children'> & {
|
|
479
479
|
context?: Context;
|
|
480
|
-
}
|
|
480
|
+
} & React_2.RefAttributes<HTMLTableSectionElement>>;
|
|
481
481
|
/**
|
|
482
482
|
* Set to customize the item wrapping element. Default is `tr`.
|
|
483
483
|
*/
|
|
@@ -517,7 +517,7 @@ export declare interface TableComponents<Data = unknown, Context = unknown> {
|
|
|
517
517
|
}>;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
export declare type TableProps = Pick<React_2.
|
|
520
|
+
export declare type TableProps = Pick<React_2.ComponentProps<'table'>, 'style' | 'children'>;
|
|
521
521
|
|
|
522
522
|
export declare type TableRootProps = Omit<React_2.HTMLProps<HTMLTableElement>, 'ref' | 'data'>;
|
|
523
523
|
|
|
@@ -719,7 +719,7 @@ export declare interface TableVirtuosoProps<D, C> extends Omit<VirtuosoProps<D,
|
|
|
719
719
|
restoreStateFrom?: StateSnapshot;
|
|
720
720
|
}
|
|
721
721
|
|
|
722
|
-
export declare type TopItemListProps = Pick<React_2.
|
|
722
|
+
export declare type TopItemListProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'>;
|
|
723
723
|
|
|
724
724
|
export declare const Virtuoso: <ItemData = any, Context = any>(props: VirtuosoProps<ItemData, Context> & {
|
|
725
725
|
ref?: React_2.Ref<VirtuosoHandle> | undefined;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "react-virtuoso",
|
|
3
3
|
"author": "Petyo Ivanov",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "4.7.
|
|
5
|
+
"version": "4.7.2",
|
|
6
6
|
"homepage": "https://virtuoso.dev/",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"source": "src/index.tsx",
|
|
@@ -59,12 +59,13 @@
|
|
|
59
59
|
"@ladle/react": "^2.12.3",
|
|
60
60
|
"@mdx-js/react": "^1.6.22",
|
|
61
61
|
"@playwright/test": "^1.33.0",
|
|
62
|
+
"@tanstack/react-table": "^8.9.11",
|
|
62
63
|
"@testing-library/react": "^14.0.0",
|
|
63
64
|
"@types/jsdom": "^21.1.1",
|
|
64
65
|
"@types/lodash": "^4.14.194",
|
|
65
|
-
"@types/react": "^18.2.
|
|
66
|
+
"@types/react": "^18.2.64",
|
|
66
67
|
"@types/react-beautiful-dnd": "^13.1.4",
|
|
67
|
-
"@types/react-dom": "^18.2.
|
|
68
|
+
"@types/react-dom": "^18.2.21",
|
|
68
69
|
"@types/react-router-dom": "^5.3.3",
|
|
69
70
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
70
71
|
"@typescript-eslint/parser": "^5.59.2",
|
|
@@ -91,7 +92,6 @@
|
|
|
91
92
|
"react-beautiful-dnd": "^13.1.1",
|
|
92
93
|
"react-dom": "^18.2.0",
|
|
93
94
|
"react-router-dom": "^6.14.0",
|
|
94
|
-
"@tanstack/react-table": "^8.9.11",
|
|
95
95
|
"semantic-release": "^19.0.5",
|
|
96
96
|
"terser": "^5.17.1",
|
|
97
97
|
"tslib": "^2.5.0",
|