From 366bbb51474654060e89a49eb734cd774b64acd1 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 16 Jun 2026 19:31:07 +0200 Subject: [PATCH] fix: register cta and info-box in DEFAULT_COMPONENTS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Cta and InfoBox components and their styles already shipped, but the tags required manual registration to work — unlike button/callout/wrapper which are registered by default. Add 'cta' and 'info-box' to DEFAULT_COMPONENTS so they work out of the box. Bump to 1.1.1. --- CHANGELOG.md | 8 ++++++++ lib/activemail.rb | 2 ++ lib/activemail/version.rb | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c93d073..c18af5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project are documented here. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] - 2026-06-16 + +### Added + +- `cta` and `info-box` are now registered out of the box in `DEFAULT_COMPONENTS`, + alongside `button`/`callout`. The components and their styles already shipped but + the tags required manual registration; ``/`` now work by default. + ## [1.1.0] - 2026-06-15 ### Added diff --git a/lib/activemail.rb b/lib/activemail.rb index 9ffa680..bf1fa11 100644 --- a/lib/activemail.rb +++ b/lib/activemail.rb @@ -39,6 +39,8 @@ class Core DEFAULT_COMPONENTS = T.let( { 'button' => ActiveMail::Components::Button, + 'cta' => ActiveMail::Components::Cta, + 'info-box' => ActiveMail::Components::InfoBox, 'row' => ActiveMail::Components::Row, 'columns' => ActiveMail::Components::Columns, 'container' => ActiveMail::Components::Container, diff --git a/lib/activemail/version.rb b/lib/activemail/version.rb index 8303bfd..1a51d58 100644 --- a/lib/activemail/version.rb +++ b/lib/activemail/version.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module ActiveMail - VERSION = '1.1.0' + VERSION = '1.1.1' end