// Email block registry entrypoint. Requiring this module registers every // `email.*` block definition exactly once, then re-exports the registry API, the // renderer and the registry-bound validator/sanitizer. Anything that needs to // validate or render a mail template's blocks should require THIS module, not // ./registry or ./render directly, so the definitions are guaranteed loaded. // // Same shape as `blocks/index.js`, on purpose — the two families are siblings // (see ./registry.js for why they are not one registry). const registry = require('./registry') const render = require('./render') const interpolate = require('./interpolate') const variables = require('./variables') // ── Block definitions (self-register on require) ─────────────────────────── require('./types/heading') require('./types/text') require('./types/button') require('./types/divider') require('./types/image') require('./types/itemList') module.exports = { ...registry, ...render, ...interpolate, ...variables, }