virtua 0.17.0 → 0.17.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/lib/core/cache.d.ts +1 -18
- package/lib/core/environment.d.ts +1 -5
- package/lib/core/resizer.d.ts +1 -12
- package/lib/core/scroller.d.ts +1 -15
- package/lib/core/store.d.ts +0 -46
- package/lib/core/types.d.ts +0 -6
- package/lib/core/utils.d.ts +1 -23
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/react/ListItem.d.ts +1 -13
- package/lib/react/useChildren.d.ts +1 -3
- package/lib/react/useIsomorphicLayoutEffect.d.ts +1 -2
- package/lib/react/useLatestRef.d.ts +1 -2
- package/lib/react/useRerender.d.ts +1 -1
- package/lib/react/useStatic.d.ts +1 -1
- package/lib/react/utils.d.ts +1 -11
- package/package.json +11 -11
package/lib/react/ListItem.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
2
|
-
import { ListResizer } from "../core/resizer";
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
3
2
|
/**
|
|
4
3
|
* Props of customized item component for {@link VList}.
|
|
5
4
|
*/
|
|
@@ -9,14 +8,3 @@ export interface CustomItemComponentProps {
|
|
|
9
8
|
children: ReactNode;
|
|
10
9
|
}
|
|
11
10
|
export type CustomItemComponent = React.ForwardRefExoticComponent<React.PropsWithoutRef<CustomItemComponentProps> & React.RefAttributes<any>>;
|
|
12
|
-
type ListItemProps = {
|
|
13
|
-
_children: ReactNode;
|
|
14
|
-
_resizer: ListResizer;
|
|
15
|
-
_index: number;
|
|
16
|
-
_offset: number;
|
|
17
|
-
_hide: boolean;
|
|
18
|
-
_element: "div" | CustomItemComponent;
|
|
19
|
-
_isHorizontal: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare const ListItem: import("react").MemoExoticComponent<({ _children: children, _resizer: resizer, _index: index, _offset: offset, _hide: hide, _element: Element, _isHorizontal: isHorizontal, }: ListItemProps) => ReactElement>;
|
|
22
|
-
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useLatestRef: <T>(value: T) => import("react").MutableRefObject<T>;
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
package/lib/react/useStatic.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
package/lib/react/utils.d.ts
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ScrollDirection } from "../core/store";
|
|
3
|
-
export declare const refKey = "current";
|
|
4
|
-
export declare const emptyComponents: {};
|
|
5
|
-
export type ItemElement = ReactElement | ReactFragment | string | number;
|
|
6
|
-
export declare const flattenChildren: (children: ReactNode) => ItemElement[];
|
|
7
|
-
export type MayHaveKey = {
|
|
8
|
-
key?: React.Key;
|
|
9
|
-
};
|
|
10
|
-
export declare const clampStartIndex: (startIndex: number, overscan: number, scrollDirection: ScrollDirection) => number;
|
|
11
|
-
export declare const clampEndIndex: (endIndex: number, overscan: number, scrollDirection: ScrollDirection, count: number) => number;
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virtua",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "A zero-config, fast and small (~3kB) virtual list (and grid) component for React.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@storybook/test-runner": "0.15.1",
|
|
53
53
|
"@tanstack/react-virtual": "3.0.0-beta.68",
|
|
54
54
|
"@testing-library/react": "14.1.2",
|
|
55
|
-
"@types/react": "18.2.
|
|
56
|
-
"@types/react-beautiful-dnd": "13.1.
|
|
57
|
-
"@types/react-virtualized": "9.21.
|
|
58
|
-
"@types/react-window": "1.8.
|
|
59
|
-
"@typescript-eslint/parser": "6.
|
|
55
|
+
"@types/react": "18.2.38",
|
|
56
|
+
"@types/react-beautiful-dnd": "13.1.7",
|
|
57
|
+
"@types/react-virtualized": "9.21.28",
|
|
58
|
+
"@types/react-window": "1.8.8",
|
|
59
|
+
"@typescript-eslint/parser": "6.12.0",
|
|
60
60
|
"concurrently": "8.2.2",
|
|
61
61
|
"eslint": "8.54.0",
|
|
62
62
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
@@ -73,18 +73,18 @@
|
|
|
73
73
|
"react-select": "5.8.0",
|
|
74
74
|
"react-virtualized": "9.22.5",
|
|
75
75
|
"react-virtuoso": "4.6.2",
|
|
76
|
-
"react-window": "1.8.
|
|
76
|
+
"react-window": "1.8.10",
|
|
77
77
|
"rimraf": "5.0.5",
|
|
78
|
-
"rollup": "4.5.
|
|
78
|
+
"rollup": "4.5.2",
|
|
79
79
|
"rollup-plugin-banner2": "1.2.2",
|
|
80
80
|
"size-limit": "^11.0.0",
|
|
81
81
|
"storybook": "^7.5.3",
|
|
82
82
|
"ts-jest": "29.1.1",
|
|
83
83
|
"typedoc": "0.25.3",
|
|
84
84
|
"typedoc-plugin-markdown": "3.17.1",
|
|
85
|
-
"typescript": "5.
|
|
86
|
-
"virtua": "^0.
|
|
87
|
-
"vite": "5.0.
|
|
85
|
+
"typescript": "5.3.2",
|
|
86
|
+
"virtua": "^0.17.0",
|
|
87
|
+
"vite": "5.0.2",
|
|
88
88
|
"wait-on": "7.2.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|