Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'mj-wrapper': ['mc-section'],
'mc-section': ['mj-column', 'mj-group', 'mj-raw'],
});
const makeBackgroundString = flow(filter(identity), join(' '))
export default class McSection extends MjSection {
static allowedAttributes = {
...MjSection.allowedAttributes,
'mc:hideable': 'string',
'mc:repeatable': 'string',
'mc:variant': 'string',
'mc:edit': 'string',
}
static defaultAttributes = {
...MjSection.defaultAttributes,
'mc:hideable': false,
}
isHideable() {
if (this.getAttribute('mc:hideable') !== false) {
return true
}
return false
}
// MODIFIED from https://github.com/mjmlio/mjml/blob/master/packages/mjml-section/src/index.js
renderSection() {
const hasBackground = this.hasBackground()