react-iframe
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -0,0 +0,0 @@ var React = require('react'); |
"use strict";var React=require("react");var Iframe=React.createClass({displayName:"React-Iframe",propTypes:{url:React.PropTypes.string.isRequired,width:React.PropTypes.string,height:React.PropTypes.string},getDefaultProps:function getDefaultProps(){return{height:"100%",width:"100%",position:"fixed"}},shouldComponentUpdate:function shouldComponentUpdate(nextProps){return this.props.url!==nextProps.url},render:function render(){return React.createElement("iframe",{ref:"iframe",frameBorder:"0",src:this.props.url,style:{position:this.props.position,height:this.props.height,width:this.props.width},height:this.props.height,width:this.props.width})}});module.exports=Iframe; |
@@ -0,0 +0,0 @@ var gulp = require('gulp'), |
10
index.js
"use strict"; | ||
var React = require("react"); | ||
var Iframe = React.createClass({ | ||
var createReactClass = require("create-react-class"); | ||
var PropTypes = require("prop-types"); | ||
var Iframe = createReactClass({ | ||
displayName: "React-Iframe", | ||
propTypes: { | ||
url: React.PropTypes.string.isRequired, | ||
width: React.PropTypes.string, | ||
height: React.PropTypes.string | ||
url: PropTypes.string.isRequired, | ||
width: PropTypes.string, | ||
height: PropTypes.string | ||
}, | ||
@@ -11,0 +13,0 @@ |
"use strict"; | ||
var React = require("react"); | ||
var Iframe = React.createClass({ | ||
var createReactClass = require("create-react-class"); | ||
var PropTypes = require("prop-types"); | ||
var Iframe = createReactClass({ | ||
displayName: "React-Iframe", | ||
propTypes: { | ||
url: React.PropTypes.string.isRequired, | ||
width: React.PropTypes.string, | ||
height: React.PropTypes.string | ||
url: PropTypes.string.isRequired, | ||
width: PropTypes.string, | ||
height: PropTypes.string | ||
}, | ||
@@ -11,0 +13,0 @@ |
{ | ||
"name": "react-iframe", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Iframes with react", | ||
"main": "index.js", | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"create-react-class": "^15.5.1", | ||
"prop-types": "^15.5.6", | ||
"react": ">=0.13.x" | ||
@@ -18,4 +19,4 @@ }, | ||
"gulp-rename": "^1.2.0", | ||
"uglify-js": "^2.4.20", | ||
"reactify": "^0.15.2" | ||
"reactify": "^0.15.2", | ||
"uglify-js": "^2.4.20" | ||
}, | ||
@@ -22,0 +23,0 @@ "repository": { |
@@ -0,0 +0,0 @@ # React IFrame |
var md2html = require("../index"); | ||
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
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
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
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
74674
17
86
3