react-html-email
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,7 @@ # Change Log | ||
## 1.1.2 - 2016-08-07 | ||
### Fixed | ||
- Removed failing redundant xmlns injection in React 15.3.0. (@orrybaram + @chromakode) | ||
- Resolved test warnings in React 15.3.0 due to https://fb.me/react-warning-dont-call-proptypes. (@chromakode) | ||
## 1.1.1 - 2016-07-25 | ||
@@ -7,0 +12,0 @@ ### Added |
@@ -9,4 +9,11 @@ 'use strict'; | ||
var _ReactInjection = require('react/lib/ReactInjection'); | ||
require('react-dom'); | ||
var _DOMProperty = require('react/lib/DOMProperty'); | ||
var _DOMProperty2 = _interopRequireDefault(_DOMProperty); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// ensure base DOM properties are already injected | ||
var emailAttributes = exports.emailAttributes = { | ||
@@ -29,6 +36,11 @@ Properties: { | ||
if (_DOMProperty2.default.properties.hasOwnProperty('xmlns')) { | ||
// already exists in React 15.3.0 | ||
delete emailAttributes.Properties.xmlns; | ||
} | ||
// make React accept some HTML attributes useful to emails | ||
_ReactInjection.DOMProperty.injectDOMPropertyConfig(emailAttributes); | ||
_DOMProperty2.default.injection.injectDOMPropertyConfig(emailAttributes); | ||
injected = true; | ||
} |
@@ -27,3 +27,9 @@ 'use strict'; | ||
style: function style(props, propName, componentName) { | ||
var objErr = _react2.default.PropTypes.object(props, propName, componentName); | ||
var _React$PropTypes; | ||
for (var _len = arguments.length, rest = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) { | ||
rest[_key - 3] = arguments[_key]; | ||
} | ||
var objErr = (_React$PropTypes = _react2.default.PropTypes).object.apply(_React$PropTypes, [props, propName, componentName].concat(rest)); | ||
if (objErr) { | ||
@@ -30,0 +36,0 @@ return objErr; |
{ | ||
"name": "react-html-email", | ||
"description": "Create elegant HTML email templates using React.", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react", |
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
42906
476