Releases: emboldagency/embold-tailwind-blocks
Release list
v2.3.5
v2.3.4
Fixed Theme Options menu position to prevent conflicts with plugin menu registration
v2.3.3
Fix fatal error in view when using block template
Change plugin homepage to the GitHub repo
Fix fatal error in view by converting template array to JSON string
The Why?
When creating blocks through the cli before, by default it would error when rendering the view because $block->template was returning an array instead of a json encoded string as expected.
<InnerBlocks template="{{ $block->template }}">A workaround was to encode the string from the view:
<InnerBlocks template="@json_encode( $block->template )">Now, template will be converted in the render function, before it gets passed to the view, so the generated block will just work out of the box.
Update assets method signature
Update assets method signature on CustomBlock class for greater flexibility and backward compatibility.
The Why?
When creating blocks through the cli before, by default it would create them with this method signature on assets.
public function assets(array $block): voidThis would break if you tried to switch it to use CustomBlock unless you simplified it down to
public function assets($block)Now both are valid formats, but do please prefer to upgrade any blocks you work in up to the new standard:
public function assets(array $block): voidCore Block Modifier Functionality
Added a new class to our plugin CoreModifier that you can extend in the theme that will allow setting block style options in an object oriented manner.
To get started, copy the plugins app/Modifiers/CoreGroup.php.example into the Sage theme at app/Modifiers/CoreGroup.php to get started customizing the core/group block.
ACF 6.3.0 Compatibility
ACF 6.3.0 adds a major breaking change with validation properties which it expects to be there for every block that's already out there. The only option they added to skip this is using a block.json file which composer blocks do not use.
Added something to the default block initialization for now to add the 'validate' property to every single block as 'false'.
Remove extra acf/init check
Remove nested acf/init action so that default options page gets called again
Fix deprecated function
Replaces a deprecated function causing warnings in the log
Disable updates beyond 1.0.0 if requirements not met
If the plugin is deactivating itself with a notice to grab the final 1.0 version, download this release.
The plugin is preparing for a 2.0 release which will require Acorn v4 and acf-composer v3.
If the plugin detects a version lower than this in the composer.json then it will no longer check for updates.