acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.

MIT License

Downloads
419.1K
Stars
417
Committers
20

Bot releases are visible (Hide)

acf-composer - v3.0.11

Published by Log1x 8 months ago

Change log

Enhancements

  • ✨ Add support for registering multiple field groups in a single Field Composer (Fixes #182) (#214)

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.10...v3.0.11

acf-composer - v3.0.10

Published by Log1x 8 months ago

Change log

Bug fixes

  • 🐛 Fix block template handling (Fixes #212) (#213)
  • 🩹 Properly merge the example() method
  • 🩹 Fix typo in block stub example data (#211)

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.9...v3.0.10

acf-composer - v3.0.9

Published by Log1x 8 months ago

Change log

Enhancements

  • ✨ Add an attributes() method for cleanly & safely setting block properties instead of using __construct
  • 🧑‍💻 Simplify required arguments for block styles
  • 🎨 Improve method typing
  • 🧑‍💻 Check for assets with method_exists to prevent unnecessary clashing
  • 🎨 Remove unnecessary align_content conditional
  • 🎨 Add types to stubs
  • 🎨 Improve default typing on the assets method (Fixes #206)
  • 🎨 Simplify the default styles property on stubs
  • 🎨 Move example data into the example() method in the block construct stub
  • 🧑‍💻 Update the assets() replacement in acf:upgrade

Bug fixes

  • 🩹 Fix unnecessary JSON conversion with getTemplate() (#209)

New Contributors

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.8...v3.0.9

acf-composer - v3.0.8

Published by Log1x 8 months ago

Change log

Bug fixes

  • 🩹 Add missing Exception namespace (Fixes #205) (#207)

Enhancements

  • 🎨 Remove useless upgrade replacement patterns

New Contributors

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.7...v3.0.8

acf-composer - v3.0.7

Published by Log1x 8 months ago

Change log

Enhancements

  • 🧑‍💻 Add block construct replacements to acf:upgrade
  • 🧑‍💻 Do not retrieve the existing cache when recaching (#203)
  • 🎨 Tidy up the acf:ide-helpers command
  • 🙈 Add _ide-helpers.php to the .gitignore file

Bug fixes

  • 🩹 Use $composer in the Block construct stub (#202)

New Contributors

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.6...v3.0.7

acf-composer - v3.0.6

Published by Log1x 8 months ago

Change log

Enhancements

  • ✨ Add an acf:ide-helpers command to generate IDE helpers for configured custom field types (#201)

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.5...v3.0.6

acf-composer - v3.0.5

Published by Log1x 8 months ago

Change log

Enhancements

  • 🧑‍💻 Improve intellisense for addPartial on repeaters and groups (#200)

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.4...v3.0.5

acf-composer - v3.0.4

Published by Log1x 8 months ago

Change log

Bug fixes

  • 🩹 Fix partial detection when running acf:upgrade (#199)
acf-composer - v3.0.3

Published by Log1x 8 months ago

Change log

Enhancements

  • 🧑‍💻 Properly implement context throughout the Builder (Fixes #197)
  • 🗑️ Deprecate enqueue() in place of assets($block)
  • 🧑‍💻 Update the upgrade command to replace enqueue() with assets($block)

Full Changelog: https://github.com/Log1x/acf-composer/compare/v3.0.2...v3.0.3

acf-composer - v3.0.2

Published by Log1x 8 months ago

Change log

Bug fixes

  • 🩹 Pass empty array to enqueue()'s $block when replacing with acf:upgrade (#196)
acf-composer - v3.0.1

Published by Log1x 8 months ago

Change log

Bug fixes

  • 🩹 Fix the replacements property in acf:upgrade (Fixes #194)
acf-composer - v3.0.0

Published by Log1x 8 months ago

🎉 ACF Composer v3 has arrived!

Upgrade Guide

  1. Make sure ACF Composer is installed with Composer alongside Acorn.
  2. Run composer require log1x/acf-composer to upgrade to ^3.0.
  3. Update your class references using wp acorn acf:upgrade.

Going forward, it is recommended to use the new Builder class:

- use StoutLogic\AcfBuilder\FieldsBuilder;
+ use Log1x\AcfComposer\Builder;

- $listItems = new FieldsBuilder('listItems');
+ $listItems = Builder::make('listItems');

When using the new Builder class, you can now use ->addPartial() to add field partials:

- $listItems->addFields($this->get(Partial::class));
+ $listItems->addPartial(Partial::class);

ACF Composer now includes field group caching. It may be a good idea to add this to your deployment script:

$ wp acorn acf:cache

You can view the status of the cache by running wp acorn acf:cache --status or wp acorn about.

Please open an issue if you experience any problems.

Change log

Enhancements

  • 💥 Pass $block data to enqueue() (#154)
  • ✨ Add an acf:cache command for caching built field groups (Fixes #176)
  • ✨ Implement a FieldsBuilder wrapper for improved builder support (Fixes #173)
  • ✨ Add an acf:upgrade command to upgrade classes to v3
  • ✨ Add a acf:clear command to clear the ACF Composer cache
  • ✨ Add support for registering individual Composers (Fixes #180)
  • ✨ Add support for InnerBlocks templates (#159)
  • ✨ Add support for Acorn v4 (#183)
  • 🧑‍💻 Allow for non-static example data (#152)
  • 🧑‍💻 Add option to toggle option page visibility (#116)
  • 🧑‍💻 Add $settings property to pass additional settings to acf_add_options_page() (#156)
  • 🧑‍💻 Register paths on acf/init (#163)
  • 🧑‍💻 Add Ancestor allow list to block settings (#142)
  • 🧑‍💻 Add support for block uses_context and provides_context (#153)
  • 🧑‍💻 Add support for block text and background colors (#145)
  • ➕ Add laravel/pint to the project
  • ➕ Add roots/acorn to the project
  • ➖ Remove squizlabs/php_codesniffer from the project
  • 🎨 Improve class syntax and add types
  • 🎨 Improve the block stub docblocks
  • 👷 Tidy up the Dependabot configuration
  • 📝 Update the README for v3
  • 📝 Update docs to convey that ACF Pro is required (#158)
  • 📝 Add notes about block widgets (#172)
  • 🔧 Add types and manifest configuration to the ACF Composer config
  • 🔧 Change the Options $redirect property default value to false
  • 🔧 Change the publish tag to acf-composer to make publishing assets easier
  • 🔧 Comment out default configuration values
  • 🔧 Remove unnecessary suggest and scripts configuration
  • 🗑️ Deprecate the get() Partial method
  • 🗑️ Drop PHP 7.x Support
  • 🧑‍💻 Improve the ACF Composer lifecycle
  • 🧑‍💻 Add a --status option to the acf:cache command
  • 🧑‍💻 Add a warning when fields are generated without ACF being enabled
  • 🧑‍💻 Update generation stubs to utilize the new Builder class
  • 🧑‍💻 Add ACF Composer to acorn about
  • 🙈 Add composer.lock to .gitignore
  • 🚨 Run Pint

Bug fixes

  • 🐛 Fix children option page registration (Fixes #93)

New Contributors

Full Changelog: https://github.com/Log1x/acf-composer/compare/v2.1.0...v3.0.0

acf-composer - v2.1.0

Published by Log1x about 2 years ago

Change log

Enhancements

  • enhance(block): Add missing block render callback properties (#135)
  • enhance(block): Add $context param to block render callback (Fixes #130)
  • enhance(block): Add $wp_block param to block render callback
  • enhance(block): Add $block->context property to access $context
  • enhance(block): Add $block->instance property to access $wp_block
  • chore(block): Add missing $post_id property definition

Bug fixes

  • fix(stub): Fix the partial fields() docblock return type (#134)
  • fix(acf-composer): Fix relative path when using ACF Composer inside of a plugin (Fixes #125) (#133)
  • fix(field): Fix default field setting merge order (Fixes #127) (#132)
acf-composer - v2.0.9

Published by Log1x about 2 years ago

Change log

Enhancements

  • chore(block): Change $example conditional to explicitly require false to disable block preview (#126)
acf-composer - v2.0.8

Published by Log1x about 2 years ago

Change log

Enhancements

  • enhance(block): Conditionally check if $this->example is not null before setting it (#124)
    • This shouldn't be necessary once this bug is fixed in ACF. (#123)
  • chore(block): use acf_register_block_type instead of acf_register_block
acf-composer - v2.0.7

Published by Log1x about 2 years ago

Change log

This might fix random issues related to #109 – not sure.

Enhancements

  • chore(provider): Move $this->app->make to bottom of boot method
acf-composer - v2.0.6

Published by Log1x about 2 years ago

Change log

Bug fixes

  • fix: Replace Str::remove() with str_replace() for Acorn 1.x compatibility
acf-composer - v2.0.5

Published by Log1x over 2 years ago

Change log

Enhancements

  • feat(stubs): Allow customization of console stubs (#115)
  • feat(acf-composer): Allow registering composers in subfolders (#104)
  • chore(deps): Bump dependencies
acf-composer - v2.0.4

Published by Log1x over 2 years ago

Change log

Enhancements

  • feat(composer): Sort loaded composers by name (#99)
  • feat(block): Add support to get the active block style (#84)

Bug fixes

  • fix(partial): Prevent double fields() call (#112)
acf-composer - v2.0.3

Published by Log1x about 3 years ago

Change log

Enhancements

  • enhance(blade): Only replace last occurrence of "preview" (#87)
  • feat(block): ✨ Add support for full-height (#92)
  • chore(docs): add note for translatable block properties (#91)
  • chore(deps): Bump dependencies