react-grid-layout 1.5.1 → 1.5.2

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/lib/GridItem.jsx CHANGED
@@ -510,15 +510,15 @@ export default class GridItem extends React.Component<Props, State> {
510
510
  const { offsetParent } = node;
511
511
 
512
512
  if (offsetParent) {
513
- const { margin, rowHeight, containerPadding } = this.props;
513
+ const { margin, rowHeight } = this.props;
514
514
  const bottomBoundary =
515
515
  offsetParent.clientHeight - calcGridItemWHPx(h, rowHeight, margin[1]);
516
- top = clamp(top - containerPadding[1], 0, bottomBoundary);
516
+ top = clamp(top, 0, bottomBoundary);
517
517
 
518
518
  const colWidth = calcGridColWidth(positionParams);
519
519
  const rightBoundary =
520
520
  containerWidth - calcGridItemWHPx(w, colWidth, margin[0]);
521
- left = clamp(left - containerPadding[0], 0, rightBoundary);
521
+ left = clamp(left, 0, rightBoundary);
522
522
  }
523
523
  }
524
524
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-grid-layout",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "A draggable and resizable grid layout with responsive breakpoints, for React.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "homepage": "https://github.com/STRML/react-grid-layout",
39
39
  "dependencies": {
40
- "clsx": "^2.0.0",
40
+ "clsx": "^2.1.1",
41
41
  "fast-equals": "^4.0.3",
42
42
  "prop-types": "^15.8.1",
43
- "react-draggable": "^4.4.5",
43
+ "react-draggable": "^4.4.6",
44
44
  "react-resizable": "^3.0.5",
45
45
  "resize-observer-polyfill": "^1.5.1"
46
46
  },
@@ -48,23 +48,23 @@
48
48
  "fast-equals": "Bug in CRA5 causes fast-equals@5 to fail to import due to .cjs file. See https://github.com/react-grid-layout/react-grid-layout/issues/1904"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/cli": "^7.23.4",
52
- "@babel/core": "^7.23.3",
53
- "@babel/eslint-parser": "^7.23.3",
54
- "@babel/plugin-proposal-class-properties": "^7.18.6",
55
- "@babel/plugin-transform-flow-comments": "^7.23.3",
56
- "@babel/preset-env": "^7.23.3",
57
- "@babel/preset-flow": "^7.23.3",
58
- "@babel/preset-react": "^7.23.3",
59
- "@babel/register": "^7.22.15",
51
+ "@babel/cli": "^7.27.2",
52
+ "@babel/core": "^7.27.4",
53
+ "@babel/eslint-parser": "^7.27.5",
54
+ "@babel/plugin-transform-class-properties": "^7.18.6",
55
+ "@babel/plugin-transform-flow-comments": "^7.27.3",
56
+ "@babel/preset-env": "^7.27.2",
57
+ "@babel/preset-flow": "^7.27.1",
58
+ "@babel/preset-react": "^7.27.1",
59
+ "@babel/register": "^7.27.1",
60
60
  "@webpack-cli/serve": "^2.0.5",
61
61
  "babel-jest": "^29.7.0",
62
62
  "babel-loader": "^9.1.3",
63
63
  "babel-plugin-preval": "^5.1.0",
64
64
  "css-loader": "^6.8.1",
65
- "ejs": "^3.1.9",
65
+ "ejs": "^3.1.10",
66
66
  "enzyme": "^3.11.0",
67
- "enzyme-adapter-react-16": "^1.15.7",
67
+ "enzyme-adapter-react-16": "^1.15.8",
68
68
  "enzyme-to-json": "^3.6.2",
69
69
  "eslint": "^8.54.0",
70
70
  "eslint-plugin-flowtype": "^8.0.3",
@@ -91,6 +91,12 @@
91
91
  "webpack-cli": "^5.1.4",
92
92
  "webpack-dev-server": "^4.15.1"
93
93
  },
94
+ "resolutions": {
95
+ "**/cheerio": "npm:cheerio@1.0.0-rc.12"
96
+ },
97
+ "_resolutionNotes": {
98
+ "**/cheerio": "See https://github.com/cheeriojs/cheerio/issues/4618"
99
+ },
94
100
  "peerDependencies": {
95
101
  "react": ">= 16.3.0",
96
102
  "react-dom": ">= 16.3.0"