react-html-email
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -5,2 +5,7 @@ # Change Log | ||
## 3.0.0 - 2017-09-26 | ||
### Changed | ||
- React 16.0.0 compatibility. (@chromakode) | ||
- NOTE: React 16 is generating camel-cased `cellSpacing` and `cellPadding` attributes. This should (in theory) have a negligible effect on rendering since HTML attribute names are case-insensitive. See https://github.com/facebook/react/issues/10863. | ||
## 2.0.1 - 2017-09-26 | ||
@@ -7,0 +12,0 @@ ### Fixed |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.renderEmail = exports.configStyleValidator = exports.injectReactEmailAttributes = exports.A = exports.Span = exports.Item = exports.Image = exports.Email = exports.Box = exports.PropTypes = undefined; | ||
exports.renderEmail = exports.configStyleValidator = exports.A = exports.Span = exports.Item = exports.Image = exports.Email = exports.Box = exports.PropTypes = undefined; | ||
@@ -37,6 +37,2 @@ var _PropTypes = require('./PropTypes'); | ||
var _injectReactEmailAttributes = require('./injectReactEmailAttributes'); | ||
var _injectReactEmailAttributes2 = _interopRequireDefault(_injectReactEmailAttributes); | ||
var _renderEmail = require('./renderEmail'); | ||
@@ -61,3 +57,2 @@ | ||
exports.A = _A2.default; | ||
exports.injectReactEmailAttributes = _injectReactEmailAttributes2.default; | ||
exports.configStyleValidator = _PropTypes.configStyleValidator; | ||
@@ -67,3 +62,2 @@ exports.renderEmail = _renderEmail2.default; | ||
PropTypes: _PropTypes2.default, | ||
injectReactEmailAttributes: _injectReactEmailAttributes2.default, | ||
configStyleValidator: _PropTypes.configStyleValidator, | ||
@@ -70,0 +64,0 @@ renderEmail: _renderEmail2.default, |
{ | ||
"name": "react-html-email", | ||
"description": "Create elegant HTML email templates using React.", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"keywords": [ | ||
@@ -40,8 +40,8 @@ "react", | ||
"node-fetch": "~1.7.3", | ||
"react": "^15.0.0", | ||
"react-dom": "^15.0.0" | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^15.0.0", | ||
"react-dom": "^15.0.0" | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "dependencies": { |
@@ -18,11 +18,2 @@ # react-html-email | ||
Import the library and set up React: | ||
```js | ||
import { injectReactEmailAttributes } from 'react-html-email' | ||
// set up React to support a few HTML attributes useful for legacy clients | ||
injectReactEmailAttributes() | ||
``` | ||
To render a simple email: | ||
@@ -54,6 +45,2 @@ | ||
### `injectReactEmailAttributes()` | ||
React ignores some attributes we need, such as the table `align` and `valign` properties. Call this function to expand React's attribute repertoire before using email components from the library. | ||
### `configStyleValidator(config)` | ||
@@ -60,0 +47,0 @@ |
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
45828
561
131