react-virtualized
Advanced tools
Comparing version
Changelog | ||
------------ | ||
##### 9.16.0 | ||
* 🐛 Fixed window check for SSR in `detectElementResize` ([eqyiel](https://github.com/eqyiel) - [#945](https://github.com/bvaughn/react-virtualized/pull/945)) | ||
* 🎉 Allowed custom `WindowScroller` child with `registerChild` in children function ([TrySound](https://github.com/TrySound) - [#940](https://github.com/bvaughn/react-virtualized/pull/940) and [#947](https://github.com/bvaughn/react-virtualized/pull/947)) | ||
* 🐛 Fixed `WindowScroller` scrollElement prop type ([TrySound](https://github.com/TrySound) - [#939](https://github.com/bvaughn/react-virtualized/pull/939)) | ||
##### 9.15.0 | ||
* 🎉 Detect `WindowScroller` container (not only window) resize similar to `AutoSizer` ([TrySound](https://github.com/TrySound) - [#918](https://github.com/bvaughn/react-virtualized/pull/918)) | ||
* 🐛 Prevent position breaking on `WindowScroller` container resize ([TrySound](https://github.com/TrySound) - [#920](https://github.com/bvaughn/react-virtualized/pull/920)) | ||
* 🎉 Detected `WindowScroller` container (not only window) resize similar to `AutoSizer` ([TrySound](https://github.com/TrySound) - [#918](https://github.com/bvaughn/react-virtualized/pull/918)) | ||
* 🐛 Prevented position breaking on `WindowScroller` container resize ([TrySound](https://github.com/TrySound) - [#920](https://github.com/bvaughn/react-virtualized/pull/920)) | ||
* 🎉 Published `AutoSizer` Flow types ([TrySound](https://github.com/TrySound) - [#934](https://github.com/bvaughn/react-virtualized/pull/934)) | ||
@@ -9,0 +15,0 @@ * 🎉 Published `WindowScroller` Flow types ([TrySound](https://github.com/TrySound) - [#915](https://github.com/bvaughn/react-virtualized/pull/915)) |
@@ -27,3 +27,3 @@ 'use strict'; | ||
} else { | ||
_window = this; | ||
_window = global; | ||
} | ||
@@ -30,0 +30,0 @@ |
@@ -84,3 +84,6 @@ 'use strict'; | ||
scrollTop: 0 | ||
}), _this._onChildScroll = function (_ref2) { | ||
}), _this._registerChild = function (element) { | ||
_this._child = element; | ||
_this.updatePosition(); | ||
}, _this._onChildScroll = function (_ref2) { | ||
var scrollTop = _ref2.scrollTop; | ||
@@ -157,3 +160,3 @@ | ||
var thisNode = _reactDom2.default.findDOMNode(this); | ||
var thisNode = this._child || _reactDom2.default.findDOMNode(this); | ||
if (thisNode instanceof Element && scrollElement) { | ||
@@ -232,2 +235,3 @@ var offset = (0, _dimensions.getPositionOffset)(thisNode, scrollElement); | ||
onChildScroll: this._onChildScroll, | ||
registerChild: this._registerChild, | ||
height: height, | ||
@@ -234,0 +238,0 @@ isScrolling: isScrolling, |
@@ -21,3 +21,3 @@ /** | ||
} else { | ||
_window = this; | ||
_window = global; | ||
} | ||
@@ -24,0 +24,0 @@ |
@@ -42,3 +42,6 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
scrollTop: 0 | ||
}), _this._onChildScroll = function (_ref2) { | ||
}), _this._registerChild = function (element) { | ||
_this._child = element; | ||
_this.updatePosition(); | ||
}, _this._onChildScroll = function (_ref2) { | ||
var scrollTop = _ref2.scrollTop; | ||
@@ -115,3 +118,3 @@ | ||
var thisNode = ReactDOM.findDOMNode(this); | ||
var thisNode = this._child || ReactDOM.findDOMNode(this); | ||
if (thisNode instanceof Element && scrollElement) { | ||
@@ -190,2 +193,3 @@ var offset = getPositionOffset(thisNode, scrollElement); | ||
onChildScroll: this._onChildScroll, | ||
registerChild: this._registerChild, | ||
height: height, | ||
@@ -192,0 +196,0 @@ isScrolling: isScrolling, |
@@ -6,3 +6,3 @@ { | ||
"user": "bvaughn", | ||
"version": "9.15.0", | ||
"version": "9.16.0", | ||
"homepage": "https://github.com/bvaughn/react-virtualized", | ||
@@ -9,0 +9,0 @@ "main": "dist/commonjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1210597
0.2%23396
0.14%4
300%