react-grid-layout 0.17.1 → 0.18.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/.babelrc.js +10 -14
- package/.flowconfig +13 -1
- package/.travis.yml +3 -1
- package/CHANGELOG.md +66 -0
- package/README.md +47 -7
- package/__mocks__/react-grid-layout.js +2 -0
- package/build/GridItem.js +125 -211
- package/build/ReactGridLayout.js +142 -220
- package/build/ReactGridLayoutPropTypes.js +129 -0
- package/build/ResponsiveReactGridLayout.js +52 -44
- package/build/calculateUtils.js +177 -0
- package/build/components/WidthProvider.js +21 -11
- package/build/fastRGLPropsEqual.js +5 -0
- package/build/responsiveUtils.js +5 -5
- package/build/utils.js +77 -10
- package/css/styles.css +4 -0
- package/flow-typed/npm/classnames_v2.x.x.js +23 -0
- package/flow-typed/npm/enzyme_v3.x.x.js +143 -0
- package/flow-typed/npm/jest_v24.x.x.js +1182 -0
- package/lib/GridItem.jsx +125 -148
- package/lib/ReactGridLayout.jsx +83 -200
- package/lib/ReactGridLayoutPropTypes.js +179 -0
- package/lib/ResponsiveReactGridLayout.jsx +36 -28
- package/lib/calculateUtils.js +142 -0
- package/lib/components/WidthProvider.jsx +35 -16
- package/lib/fastRGLPropsEqual.js +46 -0
- package/lib/responsiveUtils.js +13 -20
- package/lib/utils.js +62 -10
- package/package.json +44 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-grid-layout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "A draggable and resizable grid layout with responsive breakpoints, for React.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"dev": "make dev",
|
|
13
13
|
"prepublishOnly": "make build",
|
|
14
14
|
"validate": "npm ls",
|
|
15
|
-
"flow": "flow"
|
|
16
|
-
"precommit": "lint-staged && make lint"
|
|
15
|
+
"flow": "flow"
|
|
17
16
|
},
|
|
18
17
|
"repository": {
|
|
19
18
|
"type": "git",
|
|
@@ -43,45 +42,56 @@
|
|
|
43
42
|
"react-resizable": "^1.9.0"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
46
|
-
"@babel/cli": "^7.
|
|
47
|
-
"@babel/core": "^7.
|
|
48
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
49
|
-
"@babel/plugin-transform-flow-comments": "^7.
|
|
50
|
-
"@babel/preset-env": "^7.
|
|
51
|
-
"@babel/preset-flow": "^7.
|
|
52
|
-
"@babel/preset-react": "^7.
|
|
45
|
+
"@babel/cli": "^7.8.0",
|
|
46
|
+
"@babel/core": "^7.8.0",
|
|
47
|
+
"@babel/plugin-proposal-class-properties": "^7.8.0",
|
|
48
|
+
"@babel/plugin-transform-flow-comments": "^7.8.0",
|
|
49
|
+
"@babel/preset-env": "^7.8.2",
|
|
50
|
+
"@babel/preset-flow": "^7.8.0",
|
|
51
|
+
"@babel/preset-react": "^7.8.0",
|
|
52
|
+
"@babel/register": "^7.8.0",
|
|
53
53
|
"babel-eslint": "^10.0.3",
|
|
54
|
-
"babel-jest": "^
|
|
54
|
+
"babel-jest": "^25.1.0",
|
|
55
55
|
"babel-loader": "^8.0.6",
|
|
56
|
-
"babel-plugin-
|
|
57
|
-
"css-loader": "^3.2
|
|
58
|
-
"ejs": "^
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"eslint
|
|
56
|
+
"babel-plugin-preval": "^4.0.0",
|
|
57
|
+
"css-loader": "^3.4.2",
|
|
58
|
+
"ejs": "^3.0.1",
|
|
59
|
+
"enzyme": "^3.11.0",
|
|
60
|
+
"enzyme-adapter-react-16": "^1.15.2",
|
|
61
|
+
"enzyme-to-json": "^3.4.4",
|
|
62
|
+
"eslint": "^6.8.0",
|
|
63
|
+
"eslint-plugin-flowtype": "^4.6.0",
|
|
64
|
+
"eslint-plugin-mocha": "^6.2.2",
|
|
65
|
+
"eslint-plugin-react": "^7.17.0",
|
|
63
66
|
"exports-loader": "^0.7.0",
|
|
64
|
-
"flow-bin": "^0.
|
|
67
|
+
"flow-bin": "^0.119.0",
|
|
65
68
|
"husky": "^3.0.9",
|
|
66
69
|
"imports-loader": "^0.8.0",
|
|
67
|
-
"jest
|
|
68
|
-
"lint-staged": "^9.
|
|
70
|
+
"jest": "^24.9.0",
|
|
71
|
+
"lint-staged": "^9.5.0",
|
|
69
72
|
"lodash": "^4.17.5",
|
|
70
73
|
"opener": "^1.4.3",
|
|
71
|
-
"prettier": "^1.
|
|
72
|
-
"react": "^16.
|
|
73
|
-
"react-dom": "^16.
|
|
74
|
-
"react-hot-loader": "^4.12.
|
|
74
|
+
"prettier": "^1.19.1",
|
|
75
|
+
"react": "^16.12.0",
|
|
76
|
+
"react-dom": "^16.12.0",
|
|
77
|
+
"react-hot-loader": "^4.12.18",
|
|
75
78
|
"react-transform-hmr": "^1.0.2",
|
|
76
|
-
"style-loader": "^1.
|
|
77
|
-
"
|
|
78
|
-
"webpack
|
|
79
|
-
"webpack-
|
|
79
|
+
"style-loader": "^1.1.2",
|
|
80
|
+
"timsort": "^0.3.0",
|
|
81
|
+
"webpack": "^4.41.5",
|
|
82
|
+
"webpack-cli": "^3.3.10",
|
|
83
|
+
"webpack-dev-server": "^3.10.1"
|
|
80
84
|
},
|
|
81
85
|
"publishConfig": {
|
|
82
86
|
"registry": "https://registry.npmjs.org"
|
|
83
87
|
},
|
|
84
88
|
"jest": {
|
|
89
|
+
"setupFilesAfterEnv": [
|
|
90
|
+
"<rootDir>test/util/setupTests.js"
|
|
91
|
+
],
|
|
92
|
+
"snapshotSerializers": [
|
|
93
|
+
"enzyme-to-json/serializer"
|
|
94
|
+
],
|
|
85
95
|
"testMatch": [
|
|
86
96
|
"<rootDir>/test/spec/*.js"
|
|
87
97
|
],
|
|
@@ -92,5 +102,10 @@
|
|
|
92
102
|
"prettier --write",
|
|
93
103
|
"git add"
|
|
94
104
|
]
|
|
105
|
+
},
|
|
106
|
+
"husky": {
|
|
107
|
+
"hooks": {
|
|
108
|
+
"pre-commit": "lint-staged && make lint && make test"
|
|
109
|
+
}
|
|
95
110
|
}
|
|
96
111
|
}
|