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.13 to 3.5.0

4

es/hooks/useChildren.d.ts

@@ -1,3 +0,3 @@

/// <reference types="react" />
import * as React from 'react';
import type { SharedConfig, RenderFunc } from '../interface';
export default function useChildren<T>(list: T[], startIndex: number, endIndex: number, setNodeRef: (item: T, element: HTMLElement) => void, renderFunc: RenderFunc<T>, { getKey }: SharedConfig<T>): JSX.Element[];
export default function useChildren<T>(list: T[], startIndex: number, endIndex: number, setNodeRef: (item: T, element: HTMLElement) => void, renderFunc: RenderFunc<T>, { getKey }: SharedConfig<T>): React.JSX.Element[];

@@ -1,3 +0,3 @@

import List, { ListRef, ListProps } from './List';
export { ListRef, ListProps };
import List from './List';
export type { ListRef, ListProps } from './List';
export default List;

@@ -36,3 +36,3 @@ import * as React from 'react';

}
export declare function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>): JSX.Element;
export declare function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>): React.JSX.Element;
declare const _default: <Item = any>(props: ListProps<Item> & {

@@ -39,0 +39,0 @@ ref?: React.Ref<ListRef>;

@@ -40,4 +40,4 @@ import * as React from 'react';

showScroll: () => boolean;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -51,2 +51,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

};
// ======================= Clean =======================
_this.patchEvents = function () {

@@ -70,2 +71,3 @@ window.addEventListener('mousemove', _this.onMouseMove);

};
// ======================= Thumb =======================
_this.onMouseDown = function (e) {

@@ -110,2 +112,3 @@ var onStartMove = _this.props.onStartMove;

};
// ===================== Calculate =====================
_this.getSpinHeight = function () {

@@ -141,2 +144,3 @@ var _this$props = _this.props,

};
// Not show scrollbar when height is large than scrollHeight
_this.showScroll = function () {

@@ -143,0 +147,0 @@ var _this$props3 = _this.props,

@@ -1,3 +0,3 @@

/// <reference types="react" />
import * as React from 'react';
import type { SharedConfig, RenderFunc } from '../interface';
export default function useChildren<T>(list: T[], startIndex: number, endIndex: number, setNodeRef: (item: T, element: HTMLElement) => void, renderFunc: RenderFunc<T>, { getKey }: SharedConfig<T>): JSX.Element[];
export default function useChildren<T>(list: T[], startIndex: number, endIndex: number, setNodeRef: (item: T, element: HTMLElement) => void, renderFunc: RenderFunc<T>, { getKey }: SharedConfig<T>): React.JSX.Element[];

@@ -1,3 +0,3 @@

import List, { ListRef, ListProps } from './List';
export { ListRef, ListProps };
import List from './List';
export type { ListRef, ListProps } from './List';
export default List;

@@ -36,3 +36,3 @@ import * as React from 'react';

}
export declare function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>): JSX.Element;
export declare function RawList<T>(props: ListProps<T>, ref: React.Ref<ListRef>): React.JSX.Element;
declare const _default: <Item = any>(props: ListProps<Item> & {

@@ -39,0 +39,0 @@ ref?: React.Ref<ListRef>;

@@ -40,4 +40,4 @@ import * as React from 'react';

showScroll: () => boolean;
render(): JSX.Element;
render(): React.JSX.Element;
}
export {};

@@ -59,2 +59,3 @@ "use strict";

};
// ======================= Clean =======================
_this.patchEvents = function () {

@@ -78,2 +79,3 @@ window.addEventListener('mousemove', _this.onMouseMove);

};
// ======================= Thumb =======================
_this.onMouseDown = function (e) {

@@ -118,2 +120,3 @@ var onStartMove = _this.props.onStartMove;

};
// ===================== Calculate =====================
_this.getSpinHeight = function () {

@@ -149,2 +152,3 @@ var _this$props = _this.props,

};
// Not show scrollbar when height is large than scrollHeight
_this.showScroll = function () {

@@ -151,0 +155,0 @@ var _this$props3 = _this.props,

{
"name": "rc-virtual-list",
"version": "3.4.13",
"version": "3.5.0",
"description": "React Virtual List Component",

@@ -48,4 +48,4 @@ "engines": {

"@types/jest": "^25.1.3",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "^18.0.8",
"@types/react-dom": "^18.0.3",
"@types/warning": "^3.0.0",

@@ -52,0 +52,0 @@ "cross-env": "^5.2.0",

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