Skip to content

Releases: bob-moore/Button-Block-Enhancements

v1.2.2

Choose a tag to compare

@bob-moore bob-moore released this 01 Jun 13:38

Fixed scoped dependency configuration so standalone ZIP installs can run alongside related plugins.

v1.2.0

Choose a tag to compare

@bob-moore bob-moore released this 21 May 16:53

Architecture refactor — foundry-se alignment

This release is a significant internal refactor that aligns the plugin with the foundry-se theme architecture. No changes to block functionality, filters, or external APIs.

What changed

New classes

  • Main — owns the DI container, handles compiled-container caching, exposes getInstance()/setInstance(), fires button_block_enhancements_loaded action
  • Module — abstract base class; all providers, processors, and services extend it to receive $package via #[Inject]
  • definitions.php — DI definitions extracted from Controller into a dedicated file
  • Services\AssetLoader — abstract base injecting FilePathResolver and UrlResolver so loaders work whether the package is loaded as a plugin or composer-embedded in a theme
  • Services\ScriptLoader / Services\StyleLoader — mirror foundry-se's loader pattern; StyleLoader gains enqueueBlockStyle()

Refactored classes

  • Controller — stripped to a pure hook registrar using #[Inject] method injection; no container awareness
  • Providers\Assets — extends Module, delegates asset enqueueing to ScriptLoader/StyleLoader
  • Providers\Icons, Processors\Colors, Processors\Icons — extend Module
  • Utilities — expanded with slugify, hyphenate, arrayMerge, classUses, isList, truthyFalsy, isPluginActive, and reflection helpers
  • Resolver inject keys updated: config.path/config.url → path/url

1.1.1

Choose a tag to compare

@bob-moore bob-moore released this 18 May 19:36

Button Block Enhancements 1.1.1

  • Standardized release metadata and package versions on 1.1.1.
  • Updated the documentation to reflect the current controller/provider/processor architecture.
  • Updated the Composer embedding example to use the current Controller bootstrap API.

v1.1.0

Choose a tag to compare

@bob-moore bob-moore released this 18 May 18:39

What's Changed

  • Moved bmd/github-wp-updater out of public Composer require — it is now bundled/scoped into vendor/scoped/ at build time. Consumers who install this plugin via Composer will no longer pull it in as a transitive dependency.

v1.0.0

Choose a tag to compare

@bob-moore bob-moore released this 18 May 13:19

What's New

  • Initial release.
  • Migrated button icon functionality from Enable Button Icons.
  • Added hover/focus color controls (text and background) to the Button block Color panel.
  • Added CSS custom properties for icon gap, icon size, and focus colors.
  • Rebuilt on service-based plugin architecture (bmd/wp-framework).
  • Added scoped GitHub updater.