Right now we have a hard coded list of supported mjml components. This PR updates to pull that list from mjml-presets-core so that by default all current mjml components are supported.
Steps:
Update to pull list of mjml components instead of hard coding list
Add a hard coded list of additional supported components
update buildTypesForComponent function to take the component itself instead of the component name so we do not need any additional require statements
renaming variables to make it more clear
Rest of changes should be in generated code files. No existing Mjml*.tsx files are changed, only added new files for new components.
Right now we have a hard coded list of supported mjml components. This PR updates to pull that list from
mjml-presets-core
so that by default all current mjml components are supported.Steps:
buildTypesForComponent
function to take the component itself instead of the component name so we do not need any additional require statementsRest of changes should be in generated code files. No existing
Mjml*.tsx
files are changed, only added new files for new components.