Skip to content

v1.1.0 - Block Modernization

Choose a tag to compare

@daniel-vacic daniel-vacic released this 30 Dec 19:10
· 72 commits to main since this release
ca0c239

Block Modernization

This release modernizes the plugin's Gutenberg blocks using WordPress 6.5+ APIs.

Changed

  • BREAKING: Requires WordPress 6.5+ (was 5.0+)
  • Migrated copy button to WordPress Interactivity API for reactive state management
  • Copy button now fetches directly from .md endpoint (faster, cached) instead of admin-ajax.php
  • Replaced custom color/style attributes with WordPress Block Supports API
  • Buttons now inherit theme styles automatically (Brand, Dark, Light, Tint variants)
  • Split llm-buttons block into separate copy-button and view-button blocks

Removed

  • includes/class-ui-buttons.php (AJAX handler no longer needed)
  • blocks/llm-buttons/editor.css (styles now from Block Supports)
  • Custom backgroundColor, textColor, borderRadius attributes (replaced by Block Supports)

Fixed

  • Button styles now match theme design system
  • Improved performance by eliminating admin-ajax.php overhead

Requirements

  • WordPress 6.5+
  • PHP 8.2+