From bfc2e03d4ffaa871e18c6facdd3c6efc73a2c1a9 Mon Sep 17 00:00:00 2001 From: "Marco Trinelli (mtrinell)" Date: Wed, 23 Dec 2020 13:00:38 +0100 Subject: [PATCH 1/2] Add support for new props lockX, lockY, shape, dynamicPage --- packages/react-nipple/lib/ReactNipple.js | 6 +++++- packages/react-nipple/src/ReactNipple.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/react-nipple/lib/ReactNipple.js b/packages/react-nipple/lib/ReactNipple.js index 41262e2..868c463 100644 --- a/packages/react-nipple/lib/ReactNipple.js +++ b/packages/react-nipple/lib/ReactNipple.js @@ -265,7 +265,11 @@ var ReactNipple = (_class = function (_Component) { mode: _propTypes2.default.string, // 'dynamic', 'static' or 'semi' restJoystick: _propTypes2.default.bool, restOpacity: _propTypes2.default.number, // opacity when not 'dynamic' and rested - catchDistance: _propTypes2.default.number + catchDistance: _propTypes2.default.number, + lockX: _propTypes2.default.bool, + lockY: _propTypes2.default.bool, + shape: _propTypes2.default.string, + dynamicPage: _propTypes2.default.bool }), static: _propTypes2.default.bool, onStart: _propTypes2.default.func, diff --git a/packages/react-nipple/src/ReactNipple.js b/packages/react-nipple/src/ReactNipple.js index 3771c1f..7876ece 100644 --- a/packages/react-nipple/src/ReactNipple.js +++ b/packages/react-nipple/src/ReactNipple.js @@ -48,7 +48,11 @@ export default class ReactNipple extends Component { mode: PropTypes.string, // 'dynamic', 'static' or 'semi' restJoystick: PropTypes.bool, restOpacity: PropTypes.number, // opacity when not 'dynamic' and rested - catchDistance: PropTypes.number + catchDistance: PropTypes.number, + lockX: PropTypes.bool, + lockY: PropTypes.bool, + shape: PropTypes.string, + dynamicPage: PropTypes.bool }), static: PropTypes.bool, onStart: PropTypes.func, From 92b773afa78d399b142ffef1c6a8d21dca11df38 Mon Sep 17 00:00:00 2001 From: marcotrinelli <76425976+marcotrinelli@users.noreply.github.com> Date: Wed, 23 Dec 2020 15:23:33 +0100 Subject: [PATCH 2/2] Update package.json nipplejs --- packages/react-nipple/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-nipple/package.json b/packages/react-nipple/package.json index 272d5c3..031ebd1 100644 --- a/packages/react-nipple/package.json +++ b/packages/react-nipple/package.json @@ -20,7 +20,7 @@ "autobind-decorator": "^2.1.0", "classnames": "^2.2.6", "lodash.isequal": "^4.5.0", - "nipplejs": "^0.7.1" + "nipplejs": "^0.8.7" }, "devDependencies": { "@loopmode/babel6-base": "^0.0.6",