Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjml-accordion

Package Overview
Dependencies
Maintainers
6
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-accordion - npm Package Compare versions

Comparing version 4.14.1 to 4.15.0

29

lib/Accordion.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {

@@ -9,27 +8,15 @@ value: true

exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _mjmlCore = require("mjml-core");
let MjAccordion = /*#__PURE__*/function (_BodyComponent) {
let MjAccordion = exports.default = /*#__PURE__*/function (_BodyComponent) {
(0, _inherits2.default)(MjAccordion, _BodyComponent);
var _super = (0, _createSuper2.default)(MjAccordion);
function MjAccordion(...args) {
var _this;
(0, _classCallCheck2.default)(this, MjAccordion);
_this = _super.call(this, ...args);
_this = (0, _callSuper2.default)(this, MjAccordion, [...args]);
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "headStyle", () => `

@@ -57,3 +44,2 @@ noinput.mj-accordion-checkbox { display:block!important; }

}
(0, _createClass2.default)(MjAccordion, [{

@@ -75,3 +61,4 @@ key: "getStyles",

value: function render() {
const childrenAttr = ['border', 'icon-align', 'icon-width', 'icon-height', 'icon-position', 'icon-wrapped-url', 'icon-wrapped-alt', 'icon-unwrapped-url', 'icon-unwrapped-alt'].reduce((res, val) => ({ ...res,
const childrenAttr = ['border', 'icon-align', 'icon-width', 'icon-height', 'icon-position', 'icon-wrapped-url', 'icon-wrapped-alt', 'icon-unwrapped-url', 'icon-unwrapped-alt'].reduce((res, val) => ({
...res,
[val]: this.getAttribute(val)

@@ -82,4 +69,4 @@ }), {});

${this.htmlAttributes({
'cellspacing': '0',
'cellpadding': '0',
cellspacing: '0',
cellpadding: '0',
class: 'mj-accordion',

@@ -100,4 +87,2 @@ style: 'table'

}(_mjmlCore.BodyComponent);
exports.default = MjAccordion;
(0, _defineProperty2.default)(MjAccordion, "componentName", 'mj-accordion');

@@ -104,0 +89,0 @@ (0, _defineProperty2.default)(MjAccordion, "allowedAttributes", {

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {

@@ -9,33 +8,18 @@ value: true

exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _find2 = _interopRequireDefault(require("lodash/find"));
var _mjmlCore = require("mjml-core");
var _conditionalTag = _interopRequireDefault(require("mjml-core/lib/helpers/conditionalTag"));
var _AccordionText = _interopRequireDefault(require("./AccordionText"));
var _AccordionTitle = _interopRequireDefault(require("./AccordionTitle"));
let MjAccordionElement = /*#__PURE__*/function (_BodyComponent) {
let MjAccordionElement = exports.default = /*#__PURE__*/function (_BodyComponent) {
(0, _inherits2.default)(MjAccordionElement, _BodyComponent);
var _super = (0, _createSuper2.default)(MjAccordionElement);
function MjAccordionElement() {
(0, _classCallCheck2.default)(this, MjAccordionElement);
return _super.apply(this, arguments);
return (0, _callSuper2.default)(this, MjAccordionElement, arguments);
}
(0, _createClass2.default)(MjAccordionElement, [{

@@ -64,7 +48,7 @@ key: "getStyles",

} = this.props;
const childrenAttr = ['border', 'icon-align', 'icon-width', 'icon-height', 'icon-position', 'icon-wrapped-url', 'icon-wrapped-alt', 'icon-unwrapped-url', 'icon-unwrapped-alt'].reduce((res, val) => ({ ...res,
const childrenAttr = ['border', 'icon-align', 'icon-width', 'icon-height', 'icon-position', 'icon-wrapped-url', 'icon-wrapped-alt', 'icon-unwrapped-url', 'icon-unwrapped-alt'].reduce((res, val) => ({
...res,
[val]: this.getAttribute(val)
}), {});
const result = [];
if (!(0, _find2.default)(children, {

@@ -78,7 +62,5 @@ tagName: 'mj-accordion-title'

}
result.push(this.renderChildren(children, {
attributes: childrenAttr
}));
if (!(0, _find2.default)(children, {

@@ -92,3 +74,2 @@ tagName: 'mj-accordion-text'

}
return result.join('\n');

@@ -134,4 +115,2 @@ }

}(_mjmlCore.BodyComponent);
exports.default = MjAccordionElement;
(0, _defineProperty2.default)(MjAccordionElement, "componentName", 'mj-accordion-element');

@@ -138,0 +117,0 @@ (0, _defineProperty2.default)(MjAccordionElement, "allowedAttributes", {

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {

@@ -9,25 +8,14 @@ value: true

exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _mjmlCore = require("mjml-core");
let MjAccordionText = /*#__PURE__*/function (_BodyComponent) {
let MjAccordionText = exports.default = /*#__PURE__*/function (_BodyComponent) {
(0, _inherits2.default)(MjAccordionText, _BodyComponent);
var _super = (0, _createSuper2.default)(MjAccordionText);
function MjAccordionText() {
(0, _classCallCheck2.default)(this, MjAccordionText);
return _super.apply(this, arguments);
return (0, _callSuper2.default)(this, MjAccordionText, arguments);
}
(0, _createClass2.default)(MjAccordionText, [{

@@ -82,4 +70,4 @@ key: "getStyles",

${this.htmlAttributes({
'cellspacing': '0',
'cellpadding': '0',
cellspacing: '0',
cellpadding: '0',
style: 'table'

@@ -100,4 +88,2 @@ })}

}(_mjmlCore.BodyComponent);
exports.default = MjAccordionText;
(0, _defineProperty2.default)(MjAccordionText, "componentName", 'mj-accordion-text');

@@ -104,0 +90,0 @@ (0, _defineProperty2.default)(MjAccordionText, "endingTag", true);

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {

@@ -9,27 +8,15 @@ value: true

exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _mjmlCore = require("mjml-core");
var _conditionalTag = _interopRequireDefault(require("mjml-core/lib/helpers/conditionalTag"));
let MjAccordionTitle = /*#__PURE__*/function (_BodyComponent) {
let MjAccordionTitle = exports.default = /*#__PURE__*/function (_BodyComponent) {
(0, _inherits2.default)(MjAccordionTitle, _BodyComponent);
var _super = (0, _createSuper2.default)(MjAccordionTitle);
function MjAccordionTitle() {
(0, _classCallCheck2.default)(this, MjAccordionTitle);
return _super.apply(this, arguments);
return (0, _callSuper2.default)(this, MjAccordionTitle, arguments);
}
(0, _createClass2.default)(MjAccordionTitle, [{

@@ -121,4 +108,4 @@ key: "getStyles",

${this.htmlAttributes({
'cellspacing': '0',
'cellpadding': '0',
cellspacing: '0',
cellpadding: '0',
style: 'table'

@@ -139,4 +126,2 @@ })}

}(_mjmlCore.BodyComponent);
exports.default = MjAccordionTitle;
(0, _defineProperty2.default)(MjAccordionTitle, "componentName", 'mj-accordion-title');

@@ -143,0 +128,0 @@ (0, _defineProperty2.default)(MjAccordionTitle, "endingTag", true);

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {

@@ -32,9 +31,5 @@ value: true

});
var _Accordion = _interopRequireDefault(require("./Accordion"));
var _AccordionElement = _interopRequireDefault(require("./AccordionElement"));
var _AccordionText = _interopRequireDefault(require("./AccordionText"));
var _AccordionTitle = _interopRequireDefault(require("./AccordionTitle"));
{
"name": "mjml-accordion",
"description": "mjml-accordion",
"version": "4.14.1",
"version": "4.15.0",
"main": "lib/index.js",

@@ -26,3 +26,3 @@ "files": [

"lodash": "^4.17.21",
"mjml-core": "4.14.1"
"mjml-core": "4.15.0"
},

@@ -33,3 +33,3 @@ "devDependencies": {

},
"gitHead": "988819de3375867c09585d28f555166b97415200"
"gitHead": "af922bd11c16f4182057077a8a060b7a7f7cc4e3"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc