Skip to content

Releases: AdVitam/activemail

v1.1.0

15 Jun 18:13
03be839

Choose a tag to compare

Token-driven button variants, radius tokens, and DRY component rendering. Customization now happens through token configuration — no component forks needed.

Added

  • radius token group (button/box) and Tokens#radius/#radius! accessors.
  • Tokens#button_style(variant) resolver and the Tokens::ButtonStyle value object: button variants (incl. an outline secondary) are now token-driven — set <variant>_text/<variant>_border colors instead of forking the component.
  • Box-scoped info_box_background/info_box_border/info_box_text tokens (falling back to the page palette) plus a box border-radius.
  • Tokens#load(group: {...}) bulk-loader and a single Tokens#to_h snapshot.

Changed

  • <button> and <cta> share a bulletproof_button_table scaffold; <cta> drops its hardcoded 4px radius in favor of the radius token.
  • The corner radius is now applied by default on .button/.cta (the opt-in .radius class is gone); .button.secondary/.cta.secondary mirror the secondary color/border tokens.
  • Cta/InfoBox#transform marked overridable.

Fixed

  • Outline secondary border no longer doubled on the nested anchor (cell-only).
  • Dark mode keeps the secondary text readable on an outline (light) fill.

Removed

  • Tokens#colors/#fonts/#spacings readers — use Tokens#to_h instead.

Full Changelog: https://github.com/AdVitam/activemail/blob/master/CHANGELOG.md

v1.0.2

15 Jun 12:12
1c40b5d

Choose a tag to compare

Fixed

  • Moved the framework styles helper to app/helpers/active_mail/ so the host application's Zeitwerk loader resolves it to ActiveMail::StylesHelper. Under the previous app/helpers/activemail/ path the default inflector expected Activemail::StylesHelper, making the engine's helper ActiveMail::StylesHelper raise NameError at boot in any mounting app.

Full changelog: https://github.com/AdVitam/activemail/blob/master/CHANGELOG.md
RubyGems: https://rubygems.org/gems/activemail/versions/1.0.2

gem 'activemail', '~> 1.0'