Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-virtual-list

Package Overview
Dependencies
Maintainers
2
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-virtual-list - npm Package Compare versions

Comparing version 3.4.11 to 3.4.12

3

es/hooks/useScrollTo.js

@@ -83,4 +83,5 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";

syncScroll(times - 1, newTargetAlign);
});
}, 2); // Delay 2 to wait for List collect heights
};
syncScroll(3);

@@ -87,0 +88,0 @@ }

/// <reference types="react" />
export declare type RenderFunc<T> = (item: T, index: number, props: {
export type RenderFunc<T> = (item: T, index: number, props: {
style?: React.CSSProperties;

@@ -8,2 +8,2 @@ }) => React.ReactNode;

}
export declare type GetKey<T> = (item: T) => React.Key;
export type GetKey<T> = (item: T) => React.Key;
import * as React from 'react';
import type { RenderFunc } from './interface';
export declare type ScrollAlign = 'top' | 'bottom' | 'auto';
export declare type ScrollConfig = {
export type ScrollAlign = 'top' | 'bottom' | 'auto';
export type ScrollConfig = {
index: number;

@@ -13,4 +13,4 @@ align?: ScrollAlign;

};
export declare type ScrollTo = (arg: number | ScrollConfig) => void;
export declare type ListRef = {
export type ScrollTo = (arg: number | ScrollConfig) => void;
export type ListRef = {
scrollTo: ScrollTo;

@@ -17,0 +17,0 @@ };

@@ -92,4 +92,5 @@ "use strict";

syncScroll(times - 1, newTargetAlign);
});
}, 2); // Delay 2 to wait for List collect heights
};
syncScroll(3);

@@ -96,0 +97,0 @@ }

/// <reference types="react" />
export declare type RenderFunc<T> = (item: T, index: number, props: {
export type RenderFunc<T> = (item: T, index: number, props: {
style?: React.CSSProperties;

@@ -8,2 +8,2 @@ }) => React.ReactNode;

}
export declare type GetKey<T> = (item: T) => React.Key;
export type GetKey<T> = (item: T) => React.Key;
import * as React from 'react';
import type { RenderFunc } from './interface';
export declare type ScrollAlign = 'top' | 'bottom' | 'auto';
export declare type ScrollConfig = {
export type ScrollAlign = 'top' | 'bottom' | 'auto';
export type ScrollConfig = {
index: number;

@@ -13,4 +13,4 @@ align?: ScrollAlign;

};
export declare type ScrollTo = (arg: number | ScrollConfig) => void;
export declare type ListRef = {
export type ScrollTo = (arg: number | ScrollConfig) => void;
export type ListRef = {
scrollTo: ScrollTo;

@@ -17,0 +17,0 @@ };

{
"name": "rc-virtual-list",
"version": "3.4.11",
"version": "3.4.12",
"description": "React Virtual List Component",

@@ -63,3 +63,3 @@ "engines": {

"react-dom": "^v16.9.0-alpha.0",
"typescript": "^3.5.2"
"typescript": "^4.0.0"
},

@@ -66,0 +66,0 @@ "dependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc