react-virtuoso
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
import { default as React_2 } from 'react'; | ||
import { default as default_2 } from 'react'; | ||
@@ -29,3 +29,3 @@ export declare type CalculateViewLocation = (params: CalculateViewLocationParams) => IndexLocationWithAlign | number | null; | ||
*/ | ||
Header?: React_2.ComponentType<{ | ||
Header?: default_2.ComponentType<{ | ||
context?: Context; | ||
@@ -36,3 +36,3 @@ }>; | ||
*/ | ||
Footer?: React_2.ComponentType<{ | ||
Footer?: default_2.ComponentType<{ | ||
context?: Context; | ||
@@ -43,3 +43,3 @@ }>; | ||
*/ | ||
Item?: React_2.ComponentType<ItemProps<Data> & { | ||
Item?: default_2.ComponentType<ItemProps<Data> & { | ||
context?: Context; | ||
@@ -50,3 +50,3 @@ }>; | ||
*/ | ||
Group?: React_2.ComponentType<GroupProps & { | ||
Group?: default_2.ComponentType<GroupProps & { | ||
context?: Context; | ||
@@ -58,3 +58,3 @@ }>; | ||
*/ | ||
TopItemList?: React_2.ComponentType<TopItemListProps & { | ||
TopItemList?: default_2.ComponentType<TopItemListProps & { | ||
context?: Context; | ||
@@ -66,3 +66,3 @@ }>; | ||
*/ | ||
Scroller?: React_2.ComponentType<ScrollerProps & { | ||
Scroller?: default_2.ComponentType<ScrollerProps & { | ||
context?: Context; | ||
@@ -73,3 +73,3 @@ }>; | ||
*/ | ||
List?: React_2.ComponentType<ListProps & { | ||
List?: default_2.ComponentType<ListProps & { | ||
context?: Context; | ||
@@ -80,3 +80,3 @@ }>; | ||
*/ | ||
EmptyPlaceholder?: React_2.ComponentType<{ | ||
EmptyPlaceholder?: default_2.ComponentType<{ | ||
context?: Context; | ||
@@ -87,3 +87,3 @@ }>; | ||
*/ | ||
ScrollSeekPlaceholder?: React_2.ComponentType<ScrollSeekPlaceholderProps & { | ||
ScrollSeekPlaceholder?: default_2.ComponentType<ScrollSeekPlaceholderProps & { | ||
context?: Context; | ||
@@ -94,3 +94,3 @@ }>; | ||
export declare interface ComputeItemKey<D, C> { | ||
(index: number, item: D, context: C): React_2.Key; | ||
(index: number, item: D, context: C): default_2.Key; | ||
} | ||
@@ -110,5 +110,5 @@ | ||
export declare type FixedFooterContent = (() => React_2.ReactNode) | null; | ||
export declare type FixedFooterContent = (() => default_2.ReactNode) | null; | ||
export declare type FixedHeaderContent = (() => React_2.ReactNode) | null; | ||
export declare type FixedHeaderContent = (() => default_2.ReactNode) | null; | ||
@@ -141,3 +141,3 @@ export declare interface FlatIndexLocationWithAlign extends LocationOptions { | ||
*/ | ||
Item?: React_2.ComponentType<GridItemProps & { | ||
Item?: default_2.ComponentType<GridItemProps & { | ||
context?: Context; | ||
@@ -149,3 +149,3 @@ }>; | ||
*/ | ||
Scroller?: React_2.ComponentType<ScrollerProps & { | ||
Scroller?: default_2.ComponentType<ScrollerProps & { | ||
context?: Context; | ||
@@ -156,3 +156,3 @@ }>; | ||
*/ | ||
List?: React_2.ComponentType<GridListProps & { | ||
List?: default_2.ComponentType<GridListProps & { | ||
context?: Context; | ||
@@ -165,3 +165,3 @@ }>; | ||
*/ | ||
Header?: React_2.ComponentType<{ | ||
Header?: default_2.ComponentType<{ | ||
context?: Context; | ||
@@ -172,3 +172,3 @@ }>; | ||
*/ | ||
Footer?: React_2.ComponentType<{ | ||
Footer?: default_2.ComponentType<{ | ||
context?: Context; | ||
@@ -180,3 +180,3 @@ }>; | ||
*/ | ||
ScrollSeekPlaceholder?: React_2.ComponentType<GridScrollSeekPlaceholderProps & { | ||
ScrollSeekPlaceholder?: default_2.ComponentType<GridScrollSeekPlaceholderProps & { | ||
context?: Context; | ||
@@ -187,3 +187,3 @@ }>; | ||
export declare interface GridComputeItemKey<D, C> { | ||
(index: number, item: D, context: C): React_2.Key; | ||
(index: number, item: D, context: C): default_2.Key; | ||
} | ||
@@ -199,3 +199,3 @@ | ||
export declare interface GridItemContent<D, C> { | ||
(index: number, data: D, context: C): React_2.ReactNode; | ||
(index: number, data: D, context: C): default_2.ReactNode; | ||
} | ||
@@ -206,5 +206,5 @@ | ||
*/ | ||
export declare type GridItemProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children' | 'className'> & { | ||
export declare type GridItemProps = Pick<default_2.ComponentProps<'div'>, 'style' | 'children' | 'className'> & { | ||
'data-index': number; | ||
} & React_2.RefAttributes<HTMLDivElement>; | ||
} & default_2.RefAttributes<HTMLDivElement>; | ||
@@ -214,7 +214,7 @@ /** | ||
*/ | ||
export declare type GridListProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children' | 'className'> & { | ||
export declare type GridListProps = Pick<default_2.ComponentProps<'div'>, 'style' | 'children' | 'className'> & { | ||
'data-testid': string; | ||
} & React_2.RefAttributes<HTMLDivElement>; | ||
} & default_2.RefAttributes<HTMLDivElement>; | ||
export declare type GridRootProps = Omit<React_2.HTMLProps<HTMLDivElement>, 'ref' | 'data'>; | ||
export declare type GridRootProps = Omit<default_2.HTMLProps<HTMLDivElement>, 'ref' | 'data'>; | ||
@@ -238,3 +238,3 @@ /** | ||
export declare interface GroupContent<C> { | ||
(index: number, context: C): React_2.ReactNode; | ||
(index: number, context: C): default_2.ReactNode; | ||
} | ||
@@ -247,4 +247,4 @@ | ||
export declare const GroupedVirtuoso: <ItemData = any, Context = any>(props: GroupedVirtuosoProps<ItemData, Context> & { | ||
ref?: React_2.Ref<GroupedVirtuosoHandle> | undefined; | ||
}) => React_2.ReactElement; | ||
ref?: default_2.Ref<GroupedVirtuosoHandle> | undefined; | ||
}) => default_2.ReactElement; | ||
@@ -306,6 +306,6 @@ export declare interface GroupedVirtuosoHandle { | ||
export declare interface GroupItemContent<D, C> { | ||
(index: number, groupIndex: number, data: D, context: C): React_2.ReactNode; | ||
(index: number, groupIndex: number, data: D, context: C): default_2.ReactNode; | ||
} | ||
export declare type GroupProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'> & { | ||
export declare type GroupProps = Pick<default_2.ComponentProps<'div'>, 'style' | 'children'> & { | ||
'data-index': number; | ||
@@ -326,6 +326,6 @@ 'data-item-index': number; | ||
export declare interface ItemContent<D, C> { | ||
(index: number, data: D, context: C): React_2.ReactNode; | ||
(index: number, data: D, context: C): default_2.ReactNode; | ||
} | ||
export declare type ItemProps<D> = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'> & { | ||
export declare type ItemProps<D> = Pick<default_2.ComponentProps<'div'>, 'style' | 'children'> & { | ||
'data-index': number; | ||
@@ -343,5 +343,5 @@ 'data-item-index': number; | ||
*/ | ||
export declare type ListProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'> & { | ||
export declare type ListProps = Pick<default_2.ComponentProps<'div'>, 'style' | 'children'> & { | ||
'data-testid': string; | ||
} & React_2.RefAttributes<HTMLDivElement>; | ||
} & default_2.RefAttributes<HTMLDivElement>; | ||
@@ -353,3 +353,3 @@ export declare interface ListRange { | ||
export declare type ListRootProps = Omit<React_2.HTMLProps<HTMLDivElement>, 'ref' | 'data'>; | ||
export declare type ListRootProps = Omit<default_2.HTMLProps<HTMLDivElement>, 'ref' | 'data'>; | ||
@@ -394,6 +394,6 @@ export declare interface LocationOptions { | ||
*/ | ||
export declare type ScrollerProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children' | 'tabIndex'> & { | ||
export declare type ScrollerProps = Pick<default_2.ComponentProps<'div'>, 'style' | 'children' | 'tabIndex'> & { | ||
'data-testid'?: string; | ||
'data-virtuoso-scroller'?: boolean; | ||
} & React_2.RefAttributes<HTMLDivElement>; | ||
} & default_2.RefAttributes<HTMLDivElement>; | ||
@@ -483,5 +483,5 @@ export declare type ScrollIntoViewLocation = FlatScrollIntoViewLocation | GroupedScrollIntoViewLocation; | ||
*/ | ||
export declare type TableBodyProps = Pick<React_2.ComponentProps<'tbody'>, 'style' | 'children' | 'className'> & { | ||
export declare type TableBodyProps = Pick<default_2.ComponentProps<'tbody'>, 'style' | 'children' | 'className'> & { | ||
'data-testid': string; | ||
} & React_2.RefAttributes<HTMLTableSectionElement>; | ||
} & default_2.RefAttributes<HTMLTableSectionElement>; | ||
@@ -496,3 +496,3 @@ /** | ||
*/ | ||
Table?: React_2.ComponentType<TableProps & { | ||
Table?: default_2.ComponentType<TableProps & { | ||
context?: Context; | ||
@@ -504,15 +504,15 @@ }>; | ||
*/ | ||
TableHead?: React_2.ComponentType<Pick<React_2.ComponentProps<'thead'>, 'style' | 'children'> & { | ||
TableHead?: default_2.ComponentType<Pick<default_2.ComponentProps<'thead'>, 'style' | 'children'> & { | ||
context?: Context; | ||
} & React_2.RefAttributes<HTMLTableSectionElement>>; | ||
} & default_2.RefAttributes<HTMLTableSectionElement>>; | ||
/** | ||
* Set to render a fixed footer at the bottom of the table (`tfoot`). use [[fixedFooterContent]] to set the contents | ||
*/ | ||
TableFoot?: React_2.ComponentType<Pick<React_2.ComponentProps<'tfoot'>, 'style' | 'children'> & { | ||
TableFoot?: default_2.ComponentType<Pick<default_2.ComponentProps<'tfoot'>, 'style' | 'children'> & { | ||
context?: Context; | ||
} & React_2.RefAttributes<HTMLTableSectionElement>>; | ||
} & default_2.RefAttributes<HTMLTableSectionElement>>; | ||
/** | ||
* Set to customize the item wrapping element. Default is `tr`. | ||
*/ | ||
TableRow?: React_2.ComponentType<ItemProps<Data> & { | ||
TableRow?: default_2.ComponentType<ItemProps<Data> & { | ||
context?: Context; | ||
@@ -524,3 +524,3 @@ }>; | ||
*/ | ||
Scroller?: React_2.ComponentType<ScrollerProps & { | ||
Scroller?: default_2.ComponentType<ScrollerProps & { | ||
context?: Context; | ||
@@ -531,3 +531,3 @@ }>; | ||
*/ | ||
TableBody?: React_2.ComponentType<TableBodyProps & { | ||
TableBody?: default_2.ComponentType<TableBodyProps & { | ||
context?: Context; | ||
@@ -538,3 +538,3 @@ }>; | ||
*/ | ||
EmptyPlaceholder?: React_2.ComponentType<{ | ||
EmptyPlaceholder?: default_2.ComponentType<{ | ||
context?: Context; | ||
@@ -545,3 +545,3 @@ }>; | ||
*/ | ||
ScrollSeekPlaceholder?: React_2.ComponentType<ScrollSeekPlaceholderProps & { | ||
ScrollSeekPlaceholder?: default_2.ComponentType<ScrollSeekPlaceholderProps & { | ||
context?: Context; | ||
@@ -552,3 +552,3 @@ }>; | ||
*/ | ||
FillerRow?: React_2.ComponentType<FillerRowProps & { | ||
FillerRow?: default_2.ComponentType<FillerRowProps & { | ||
context?: Context; | ||
@@ -558,9 +558,9 @@ }>; | ||
export declare type TableProps = Pick<React_2.ComponentProps<'table'>, 'style' | 'children'>; | ||
export declare type TableProps = Pick<default_2.ComponentProps<'table'>, 'style' | 'children'>; | ||
export declare type TableRootProps = Omit<React_2.HTMLProps<HTMLTableElement>, 'ref' | 'data'>; | ||
export declare type TableRootProps = Omit<default_2.HTMLProps<HTMLTableElement>, 'ref' | 'data'>; | ||
export declare const TableVirtuoso: <ItemData = any, Context = any>(props: TableVirtuosoProps<ItemData, Context> & { | ||
ref?: React_2.Ref<TableVirtuosoHandle> | undefined; | ||
}) => React_2.ReactElement; | ||
ref?: default_2.Ref<TableVirtuosoHandle> | undefined; | ||
}) => default_2.ReactElement; | ||
@@ -762,11 +762,11 @@ export declare interface TableVirtuosoHandle { | ||
export declare type TopItemListProps = Pick<React_2.ComponentProps<'div'>, 'style' | 'children'>; | ||
export declare type TopItemListProps = Pick<default_2.ComponentProps<'div'>, 'style' | 'children'>; | ||
export declare const Virtuoso: <ItemData = any, Context = any>(props: VirtuosoProps<ItemData, Context> & { | ||
ref?: React_2.Ref<VirtuosoHandle> | undefined; | ||
}) => React_2.ReactElement; | ||
ref?: default_2.Ref<VirtuosoHandle> | undefined; | ||
}) => default_2.ReactElement; | ||
export declare const VirtuosoGrid: <ItemData = any, Context = any>(props: VirtuosoGridProps<ItemData, Context> & { | ||
ref?: React_2.Ref<VirtuosoGridHandle> | undefined; | ||
}) => React_2.ReactElement; | ||
ref?: default_2.Ref<VirtuosoGridHandle> | undefined; | ||
}) => default_2.ReactElement; | ||
@@ -779,3 +779,3 @@ export declare interface VirtuosoGridHandle { | ||
export declare const VirtuosoGridMockContext: React_2.Context<VirtuosoGridMockContextValue | undefined>; | ||
export declare const VirtuosoGridMockContext: default_2.Context<VirtuosoGridMockContextValue | undefined>; | ||
@@ -925,3 +925,3 @@ export declare interface VirtuosoGridMockContextValue { | ||
export declare const VirtuosoMockContext: React_2.Context<VirtuosoMockContextValue | undefined>; | ||
export declare const VirtuosoMockContext: default_2.Context<VirtuosoMockContextValue | undefined>; | ||
@@ -928,0 +928,0 @@ export declare interface VirtuosoMockContextValue { |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "4.10.1", | ||
"version": "4.10.2", | ||
"homepage": "https://virtuoso.dev/", | ||
@@ -63,3 +63,3 @@ "license": "MIT", | ||
"@typescript-eslint/parser": "^5.59.2", | ||
"@vitejs/plugin-react": "^4.0.0", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"clsx": "^1.2.1", | ||
@@ -82,5 +82,5 @@ "eslint": "^8.39.0", | ||
"prism-react-renderer": "^1.3.5", | ||
"react": "^18.2.0", | ||
"react": "18.3.1", | ||
"react-beautiful-dnd": "^13.1.1", | ||
"react-dom": "^18.2.0", | ||
"react-dom": "18.3.1", | ||
"react-router-dom": "^6.14.0", | ||
@@ -93,5 +93,5 @@ "semantic-release": "^19.0.5", | ||
"typescript": "^5.0.4", | ||
"vite": "^4.3.5", | ||
"vite-plugin-dts": "^2.3.0", | ||
"vitest": "^0.31.0" | ||
"vite": "^5.4.2", | ||
"vite-plugin-dts": "^4.0.3", | ||
"vitest": "^2.0.5" | ||
}, | ||
@@ -98,0 +98,0 @@ "packageManager": "pnpm@8.14.3+sha256.2d0363bb6c314daa67087ef07743eea1ba2e2d360c835e8fec6b5575e4ed9484", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
258921
0.04%5678
0.32%