react-combo-modal
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -43,3 +43,3 @@ 'use strict'; | ||
value: function componentDidMount() { | ||
this.popup = document.createElement("div"); | ||
this.popup = document.createElement('div'); | ||
document.body.appendChild(this.popup); | ||
@@ -64,3 +64,5 @@ this.renderLayer(); | ||
value: function componentWillUnmount() { | ||
document.body.removeChild(this.popup); | ||
if (document.body) { | ||
document.body.removeChild(this.popup); | ||
} | ||
@@ -94,12 +96,18 @@ window.removeEventListener('click', this.globalMouseClick); | ||
'div', | ||
{ style: this.props.style && this.props.style.background, | ||
className: this.props.customClassNames && this.props.customClassNames.background ? this.props.customClassNames.background : 'ReactComboModalBackground' }, | ||
{ | ||
style: this.props.style && this.props.style.background, | ||
className: this.props.customClassNames && this.props.customClassNames.background ? this.props.customClassNames.background : 'ReactComboModalBackground' | ||
}, | ||
_react2.default.createElement( | ||
'div', | ||
{ style: this.props.style && this.props.style.holder, | ||
className: this.props.customClassNames && this.props.customClassNames.holder ? this.props.customClassNames.holder : 'ReactComboModalHolder' }, | ||
{ | ||
style: this.props.style && this.props.style.holder, | ||
className: this.props.customClassNames && this.props.customClassNames.holder ? this.props.customClassNames.holder : 'ReactComboModalHolder' | ||
}, | ||
_react2.default.createElement( | ||
'div', | ||
{ style: this.props.style && this.props.style.modal, | ||
className: this.props.customClassNames && this.props.customClassNames.modal ? this.props.customClassNames.modal : 'ReactComboModal' }, | ||
{ | ||
style: this.props.style && this.props.style.modal, | ||
className: this.props.customClassNames && this.props.customClassNames.modal ? this.props.customClassNames.modal : 'ReactComboModal' | ||
}, | ||
content | ||
@@ -106,0 +114,0 @@ ) |
{ | ||
"name": "react-combo-modal", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"keywords": "react, modal, react-component", | ||
@@ -8,3 +8,3 @@ "description": "React modal component", | ||
"scripts": { | ||
"start": "./node_modules/.bin/webpack-dev-server --config webpack.config.js --hot --progress --colors --port 8080", | ||
"start": "./node_modules/.bin/webpack-dev-server --config webpack.config.js --hot --progress --colors --port 8081 --open", | ||
"test": "mocha -r mock-local-storage --compilers js:babel-core/register --require ./test/test.js \"test/**/*@(.js|.jsx)\"", | ||
@@ -16,3 +16,3 @@ "prepublish": "rm -rf ./lib && mkdir lib && ./node_modules/.bin/babel Components/Modal.jsx --out-file lib/Modal.jsx && ./node_modules/.bin/babel lib/Modal.jsx", | ||
"type": "git", | ||
"url": "git+https://github.com/markokostovski/react-combo-modal.git" | ||
"url": "git+https://github.com/gogoair/react-combo-modal.git" | ||
}, | ||
@@ -22,5 +22,5 @@ "author": "Marko Kostovski <marko.kostovski@gmail.com>", | ||
"bugs": { | ||
"url": "https://github.com/markokostovski/react-combo-select/issues" | ||
"url": "https://github.com/gogoair/react-combo-select/issues" | ||
}, | ||
"homepage": "https://github.com/markokostovski/react-combo-modal#readme", | ||
"homepage": "https://github.com/gogoair/react-combo-modal#readme", | ||
"devDependencies": { | ||
@@ -37,21 +37,15 @@ "babel": "^6.5.2", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"chai": "^3.5.0", | ||
"chai-immutable": "^1.5.4", | ||
"enzyme": "^2.3.0", | ||
"eslint": "^3.19.0", | ||
"eslint-plugin-react": "^6.10.3", | ||
"immutable": "^3.7.6", | ||
"jsdom": "^10.0.0", | ||
"mocha": "^3.3.0", | ||
"mock-local-storage": "^1.0.2", | ||
"react-addons-test-utils": "^15.1.0", | ||
"react-hot-loader": "^1.3.0", | ||
"sinon": "^2.1.0", | ||
"react-hot-loader": "^3.0.0-beta.7", | ||
"webpack": "^2.4.1", | ||
"webpack-dev-server": "^2.4.4" | ||
}, | ||
"peerDependencies": { | ||
"react": ">15.1.0", | ||
"react-dom": ">15.1.0" | ||
}, | ||
"dependencies": { | ||
"react": "^15.1.0", | ||
"react-dom": "^15.1.0" | ||
"prop-types": "^15.6.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15
11104
3
6
145
1
+ Addedprop-types@^15.6.0
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removedreact@^15.1.0
- Removedreact-dom@^15.1.0
- Removedasap@2.0.6(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpromise@7.3.1(transitive)
- Removedreact@15.7.0(transitive)
- Removedreact-dom@15.7.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.39(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)