mjml-accordion
Advanced tools
Comparing version 4.14.1 to 4.15.0
"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" | ||
} |
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
26383
517
+ Addedcliui@8.0.1(transitive)
+ Addedhtmlparser2@9.1.0(transitive)
+ Addedjuice@10.0.1(transitive)
+ Addedmjml-core@4.15.0(transitive)
+ Addedmjml-migrate@4.15.0(transitive)
+ Addedmjml-parser-xml@4.15.0(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
- Removedcliui@7.0.4(transitive)
- Removeddetect-node@2.0.4(transitive)
- Removedjuice@9.1.0(transitive)
- Removedmjml-core@4.14.1(transitive)
- Removedmjml-migrate@4.14.1(transitive)
- Removedmjml-parser-xml@4.14.1(transitive)
- Removedyargs@16.2.0(transitive)
- Removedyargs-parser@20.2.9(transitive)
Updatedmjml-core@4.15.0