virtua 0.4.2 → 0.4.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.
- package/lib/core/scroller.d.ts +1 -1
- package/lib/core/store.d.ts +2 -0
- package/lib/core/utils.d.ts +6 -0
- package/lib/index.d.ts +1 -1
- 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/VGrid.d.ts +1 -1
- package/lib/react/VList.d.ts +2 -2
- package/lib/react/WVList.d.ts +3 -3
- package/lib/react/{DefaultWindow.d.ts → Window.d.ts} +2 -2
- package/lib/react/useSelector.d.ts +2 -0
- package/lib/react/utils.d.ts +2 -2
- package/package.json +1 -1
- package/lib/react/useStore.d.ts +0 -2
package/lib/react/VGrid.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export interface VGridProps extends WindowComponentAttributes {
|
|
|
98
98
|
rtl?: boolean;
|
|
99
99
|
/**
|
|
100
100
|
* Customized element type for scrollable element. This element will get {@link CustomWindowComponentProps} as props.
|
|
101
|
-
* @defaultValue {@link
|
|
101
|
+
* @defaultValue {@link Window}
|
|
102
102
|
*/
|
|
103
103
|
element?: CustomWindowComponent;
|
|
104
104
|
/**
|
package/lib/react/VList.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { WindowComponentAttributes } from "..";
|
|
3
|
-
import { CustomWindowComponent } from "./
|
|
3
|
+
import { CustomWindowComponent } from "./Window";
|
|
4
4
|
import { CustomItemComponent } from "./ListItem";
|
|
5
5
|
export type ScrollMode = "reverse" | "rtl";
|
|
6
6
|
type CustomItemComponentOrElement = keyof JSX.IntrinsicElements | CustomItemComponent;
|
|
@@ -73,7 +73,7 @@ export interface VListProps extends WindowComponentAttributes {
|
|
|
73
73
|
mode?: ScrollMode;
|
|
74
74
|
/**
|
|
75
75
|
* Customized element type for scrollable element. This element will get {@link CustomWindowComponentProps} as props.
|
|
76
|
-
* @defaultValue {@link
|
|
76
|
+
* @defaultValue {@link Window}
|
|
77
77
|
*/
|
|
78
78
|
element?: CustomWindowComponent;
|
|
79
79
|
/**
|
package/lib/react/WVList.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
2
|
import { WindowComponentAttributes } from "..";
|
|
3
|
-
import { CustomWindowComponent } from "./
|
|
3
|
+
import { CustomWindowComponent } from "./Window";
|
|
4
4
|
import { CustomItemComponent } from "./ListItem";
|
|
5
5
|
type CustomItemComponentOrElement = keyof JSX.IntrinsicElements | CustomItemComponent;
|
|
6
6
|
/**
|
|
@@ -33,7 +33,7 @@ export interface WVListProps extends WindowComponentAttributes {
|
|
|
33
33
|
horizontal?: boolean;
|
|
34
34
|
/**
|
|
35
35
|
* Customized element type for scrollable element. This element will get {@link CustomWindowComponentProps} as props.
|
|
36
|
-
* @defaultValue {@link
|
|
36
|
+
* @defaultValue {@link Window}
|
|
37
37
|
*/
|
|
38
38
|
element?: CustomWindowComponent;
|
|
39
39
|
/**
|
|
@@ -71,5 +71,5 @@ export interface WVListProps extends WindowComponentAttributes {
|
|
|
71
71
|
/**
|
|
72
72
|
* Virtualized list component controlled by the window scrolling. See {@link WVListProps}.
|
|
73
73
|
*/
|
|
74
|
-
export declare const WVList: ({ children, overscan, initialItemSize, initialItemCount, horizontal: horizontalProp, element, itemElement, onScroll: onScrollProp, onScrollStop: onScrollStopProp, onRangeChange: onRangeChangeProp, ...windowAttrs }: WVListProps) => ReactElement;
|
|
74
|
+
export declare const WVList: ({ children, overscan, initialItemSize, initialItemCount, horizontal: horizontalProp, element: Window, itemElement, onScroll: onScrollProp, onScrollStop: onScrollStopProp, onRangeChange: onRangeChangeProp, ...windowAttrs }: WVListProps) => ReactElement;
|
|
75
75
|
export {};
|
|
@@ -25,5 +25,5 @@ export interface CustomWindowComponentProps {
|
|
|
25
25
|
*/
|
|
26
26
|
scrolling: boolean;
|
|
27
27
|
}
|
|
28
|
-
export declare const
|
|
29
|
-
export type CustomWindowComponent = typeof
|
|
28
|
+
export declare const Window: import("react").ForwardRefExoticComponent<CustomWindowComponentProps & import("react").RefAttributes<any>>;
|
|
29
|
+
export type CustomWindowComponent = typeof Window;
|
package/lib/react/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { ReactElement, ReactFragment, ReactNode } from "react";
|
|
2
2
|
export declare const refKey = "current";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const flattenChildren: (children: ReactNode) => (string | number | ReactElement<any, string | import("react").JSXElementConstructor<any>> | ReactFragment)[];
|
package/package.json
CHANGED
package/lib/react/useStore.d.ts
DELETED