Skip to content

v1.11.0

Choose a tag to compare

@github-actions github-actions released this 25 May 08:16
49e600f

Overview

This release marks a significant milestone for CivicTheme UI Kit with the introduction of Single Directory Components (SDC) support for Drupal.

The architecture of the repository has been modified to now to support both a Twig and a SDC set of components.

Major Features

Single Directory Components (SDC) Support

  • New Package: Introduced @civictheme/sdc package alongside the existing @civictheme/twig package
  • Unified Component Schema: Both Twig and SDC implementations now share component definitions via *.component.yml files
  • Component Synchronization: New tooling ensures consistency between Twig and SDC implementations
  • SDC Validation: Added GitHub Actions workflow for automated SDC component validation

Developer Experience Improvements

  • Visual Regression Testing: Added reg-viz tool for comparing SDC vs Twig components
  • Component Management Scripts: New commands for updating and checking component implementations:
    • npm run components:update - Update all components
    • npm run components:check - Validate component consistency across the frameworks

Breaking Changes

  • Package names have changed from single package to workspace packages:
    • Use @civictheme/twig for Twig implementation
    • Use @civictheme/sdc for Drupal SDC implementation

CivicTheme (Drupal Theme) is switching to using the SDC implementation.

If you are using CivicTheme UI KIt outside of Drupal then you will need to begin using @civictheme/twig switching from @civictheme/uikit.

Migration Guide

Projects using the previous package structure should update their dependencies:

  // Before
  "@civictheme/uikit": "^1.10.0"

  // After (choose one or both)
  "@civictheme/twig": "^1.11.0"
  "@civictheme/sdc": "^1.11.0"

What's new since v1.10.0

Full Changelog: v1.10.0...v1.11.0

@AlexSkrypnyk, @alan-cole, @dependabot[bot], @renovate[bot], @richardgaunt, dependabot[bot] and renovate[bot]