mjml-react
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -24,2 +24,5 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
export { MjmlWrapper } from './mjml-wrapper'; | ||
export { MjmlAttributes } from './mjml-attributes'; | ||
export { MjmlClass } from './mjml-class'; | ||
export { MjmlAll } from './mjml-all'; | ||
@@ -26,0 +29,0 @@ function render(email) { |
@@ -160,2 +160,12 @@ import React from 'react'; | ||
}); | ||
it('should render <MjmlAttributes/>', function () { | ||
expect(renderToMjml(React.createElement( | ||
tags.MjmlAttributes, | ||
null, | ||
React.createElement(tags.MjmlText, { padding: 0 }), | ||
React.createElement(tags.MjmlClass, { name: 'white', color: 'white' }), | ||
React.createElement(tags.MjmlAll, { padding: 0 }) | ||
))).to.equal('<mj-attributes><mj-text padding="0px"></mj-text><mj-class name="white" color="white"></mj-class><mj-all padding="0px"></mj-all></mj-attributes>'); | ||
}); | ||
}); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.MjmlWrapper = exports.MjmlText = exports.MjmlSpacer = exports.MjmlImage = exports.MjmlDivider = exports.MjmlButton = exports.MjmlColumn = exports.MjmlSection = exports.MjmlRaw = exports.MjmlTitle = exports.MjmlStyle = exports.MjmlPreview = exports.MjmlFont = exports.MjmlBreakpoint = exports.MjmlBody = exports.MjmlHead = exports.Mjml = exports.renderToMjml = exports.render = undefined; | ||
exports.MjmlAll = exports.MjmlClass = exports.MjmlAttributes = exports.MjmlWrapper = exports.MjmlText = exports.MjmlSpacer = exports.MjmlImage = exports.MjmlDivider = exports.MjmlButton = exports.MjmlColumn = exports.MjmlSection = exports.MjmlRaw = exports.MjmlTitle = exports.MjmlStyle = exports.MjmlPreview = exports.MjmlFont = exports.MjmlBreakpoint = exports.MjmlBody = exports.MjmlHead = exports.Mjml = exports.renderToMjml = exports.render = undefined; | ||
@@ -166,2 +166,29 @@ var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _mjmlAttributes = require('./mjml-attributes'); | ||
Object.defineProperty(exports, 'MjmlAttributes', { | ||
enumerable: true, | ||
get: function get() { | ||
return _mjmlAttributes.MjmlAttributes; | ||
} | ||
}); | ||
var _mjmlClass = require('./mjml-class'); | ||
Object.defineProperty(exports, 'MjmlClass', { | ||
enumerable: true, | ||
get: function get() { | ||
return _mjmlClass.MjmlClass; | ||
} | ||
}); | ||
var _mjmlAll = require('./mjml-all'); | ||
Object.defineProperty(exports, 'MjmlAll', { | ||
enumerable: true, | ||
get: function get() { | ||
return _mjmlAll.MjmlAll; | ||
} | ||
}); | ||
var _server = require('react-dom/server'); | ||
@@ -168,0 +195,0 @@ |
@@ -171,2 +171,12 @@ 'use strict'; | ||
}); | ||
it('should render <MjmlAttributes/>', function () { | ||
(0, _chai.expect)(renderToMjml(_react2.default.createElement( | ||
tags.MjmlAttributes, | ||
null, | ||
_react2.default.createElement(tags.MjmlText, { padding: 0 }), | ||
_react2.default.createElement(tags.MjmlClass, { name: 'white', color: 'white' }), | ||
_react2.default.createElement(tags.MjmlAll, { padding: 0 }) | ||
))).to.equal('<mj-attributes><mj-text padding="0px"></mj-text><mj-class name="white" color="white"></mj-class><mj-all padding="0px"></mj-all></mj-attributes>'); | ||
}); | ||
}); |
{ | ||
"name": "mjml-react", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "author": { |
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
136879
55
3348