react-window 1.8.9 → 1.8.10
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/dist/index-dev.umd.js +1 -1
- package/dist/index-dev.umd.js.map +1 -1
- package/dist/index-prod.umd.js +1 -1
- package/dist/index-prod.umd.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +25 -1
- package/src/createListComponent.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-window",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.10",
|
|
4
4
|
"description": "React components for efficiently rendering large, scrollable lists and tabular data",
|
|
5
5
|
"author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
|
|
6
6
|
"contributors": [
|
|
@@ -39,6 +39,30 @@
|
|
|
39
39
|
"src/*.js"
|
|
40
40
|
],
|
|
41
41
|
"sideEffects": false,
|
|
42
|
+
"scripts": {
|
|
43
|
+
"flow": "flow check --max-warnings=0 src && flow check website",
|
|
44
|
+
"precommit": "lint-staged",
|
|
45
|
+
"prettier": "prettier --write '**/*.{js,json,css}'",
|
|
46
|
+
"linc": "lint-staged",
|
|
47
|
+
"lint": "eslint '**/*.js'",
|
|
48
|
+
"test": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
49
|
+
"test:watch": "react-scripts test --env=jsdom",
|
|
50
|
+
"build:flow": "cp flow-template dist/index.cjs.js.flow && cp flow-template dist/index.esm.js.flow",
|
|
51
|
+
"build:source": "rollup -c",
|
|
52
|
+
"build": "del dist && mkdir dist && yarn build:flow && yarn build:source",
|
|
53
|
+
"start": "rollup -c -w",
|
|
54
|
+
"prepare": "yarn run build",
|
|
55
|
+
"website:build": "cd website && yarn build",
|
|
56
|
+
"website:deploy": "cd website && yarn deploy",
|
|
57
|
+
"website:run": "cd website && yarn start"
|
|
58
|
+
},
|
|
59
|
+
"lint-staged": {
|
|
60
|
+
"{website,src}/**/*.{js,json,css}": [
|
|
61
|
+
"prettier --write",
|
|
62
|
+
"git add"
|
|
63
|
+
],
|
|
64
|
+
"**/*.js": "eslint --max-warnings 0"
|
|
65
|
+
},
|
|
42
66
|
"dependencies": {
|
|
43
67
|
"@babel/runtime": "^7.0.0",
|
|
44
68
|
"memoize-one": ">=3.1.1 <6"
|
|
@@ -580,7 +580,7 @@ export default function createListComponent({
|
|
|
580
580
|
return {
|
|
581
581
|
isScrolling: true,
|
|
582
582
|
scrollDirection:
|
|
583
|
-
prevState.scrollOffset <
|
|
583
|
+
prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',
|
|
584
584
|
scrollOffset,
|
|
585
585
|
scrollUpdateWasRequested: false,
|
|
586
586
|
};
|