react-stick
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -133,5 +133,4 @@ "use strict"; | ||
"data-sticknestingkey": nestingKey, | ||
style: _objectSpread({ | ||
position: 'absolute' | ||
}, nodeStyle, { | ||
style: _objectSpread({}, nodeStyle, { | ||
position: 'absolute', | ||
top: top, | ||
@@ -138,0 +137,0 @@ left: left |
{ | ||
"name": "react-stick", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "React component to stick a portaled node to an anchor node", | ||
@@ -19,3 +19,4 @@ "main": "lib/index.js", | ||
"lint": "eslint --max-warnings=0 --ext .js src tests demo/src", | ||
"publish-demo": "node scripts/gh-pages-publish.js $CIRCLE_BRANCH", | ||
"prenow-build": "yarn build", | ||
"now-build": "webpack", | ||
"start": "NODE_ENV=development webpack-dev-server", | ||
@@ -36,34 +37,33 @@ "semantic-release": "semantic-release", | ||
"devDependencies": { | ||
"@babel/core": "7.8.7", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.9.5", | ||
"@babel/plugin-transform-runtime": "^7.9.0", | ||
"@babel/preset-env": "^7.9.5", | ||
"@babel/preset-flow": "7.8.3", | ||
"@babel/preset-react": "^7.9.4", | ||
"@babel/core": "7.9.0", | ||
"@babel/plugin-proposal-object-rest-spread": "7.9.5", | ||
"@babel/plugin-transform-runtime": "7.9.0", | ||
"@babel/preset-env": "7.9.5", | ||
"@babel/preset-flow": "7.9.0", | ||
"@babel/preset-react": "7.9.4", | ||
"babel-eslint": "10.1.0", | ||
"babel-loader": "^8.1.0", | ||
"babel-loader": "8.1.0", | ||
"babel-plugin-syntax-dynamic-import": "6.18.0", | ||
"condition-circle": "2.0.2", | ||
"core-js": "3.6.4", | ||
"core-js": "3.6.5", | ||
"eslint": "6.8.0", | ||
"eslint-config-react-app": "5.2.0", | ||
"eslint-plugin-flowtype": "4.6.0", | ||
"eslint-plugin-import": "^2.6.0", | ||
"eslint-config-react-app": "5.2.1", | ||
"eslint-plugin-flowtype": "4.7.0", | ||
"eslint-plugin-import": "2.20.2", | ||
"eslint-plugin-jsx-a11y": "6.2.3", | ||
"eslint-plugin-react": "7.19.0", | ||
"eslint-plugin-react-hooks": "2.5.1", | ||
"flow-bin": "^0.121.0", | ||
"flow-copy-source": "^1.3.0", | ||
"gh-pages": "^1.1.0", | ||
"glamor": "^2.20.40", | ||
"html-webpack-harddisk-plugin": "^1.0.1", | ||
"html-webpack-plugin": "^4.0.4", | ||
"eslint-plugin-react-hooks": "3.0.0", | ||
"flow-bin": "0.123.0", | ||
"flow-copy-source": "2.0.9", | ||
"glamor": "2.20.40", | ||
"html-webpack-harddisk-plugin": "1.0.1", | ||
"html-webpack-plugin": "4.2.0", | ||
"inferno": "7.4.2", | ||
"nwb": "0.24.5", | ||
"prettier": "1.19.1", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"prettier": "2.0.4", | ||
"react": "16.13.1", | ||
"react-dom": "16.13.1", | ||
"regenerator-runtime": "0.13.5", | ||
"semantic-release": "17.0.4", | ||
"substyle-glamor": "^2.1.3", | ||
"semantic-release": "17.0.6", | ||
"substyle-glamor": "2.1.3", | ||
"webpack": "4.42.1", | ||
@@ -70,0 +70,0 @@ "webpack-cli": "3.3.11", |
@@ -11,3 +11,3 @@ // @flow | ||
useRef, | ||
useState | ||
useState, | ||
} from 'react' | ||
@@ -29,3 +29,3 @@ import { type HOC } from 'recompose' | ||
style: Substyle | ||
style: Substyle, | ||
|} | ||
@@ -52,3 +52,3 @@ | ||
const nestingKey = [useContext(StickContext), containerNestingKeyExtension] | ||
.filter(key => !!key) | ||
.filter((key) => !!key) | ||
.join('_') | ||
@@ -160,3 +160,3 @@ | ||
nestingKey={nestingKey} | ||
containerRef={node => { | ||
containerRef={(node) => { | ||
anchorRef.current = node | ||
@@ -180,3 +180,3 @@ containerRef.current = node | ||
component={component} | ||
ref={node => { | ||
ref={(node) => { | ||
invariant( | ||
@@ -229,3 +229,3 @@ !node || node instanceof Element, | ||
) | ||
return !some(nestedStickNodes, stickNode => stickNode.contains(target)) | ||
return !some(nestedStickNodes, (stickNode) => stickNode.contains(target)) | ||
} | ||
@@ -262,3 +262,3 @@ | ||
center: left + width / 2, | ||
right | ||
right, | ||
} | ||
@@ -288,4 +288,4 @@ | ||
zIndex: 99, | ||
textAlign: 'left' | ||
} | ||
textAlign: 'left', | ||
}, | ||
}, | ||
@@ -292,0 +292,0 @@ getModifiers |
@@ -116,6 +116,4 @@ // @flow | ||
style={{ | ||
...nodeStyle, | ||
position: 'absolute', | ||
// The position property should be be overwritten | ||
// $FlowFixMe | ||
...nodeStyle, | ||
top, | ||
@@ -122,0 +120,0 @@ left, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
34
2
0
360300
9187