Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add an attributes() method for cleanly & safely setting block properties instead of construct #210

Merged
merged 7 commits into from
Feb 29, 2024

Conversation

Log1x
Copy link
Owner

@Log1x Log1x commented Feb 29, 2024

Change log

Enhancements

  • ✨ Add an attributes() method for cleanly & safely setting block properties instead of 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 Native type hinting #206)
  • 🎨 Simplify the default styles property
  • 🎨 Move example data into the example() method in the block construct stub
  • 🧑‍💻 Update the assets() replacement in acf:upgrade

…perties instead of 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
🎨 Improve default typing on the `assets` method
🎨 Simplify the default `styles` property
…rties

🎨 Move example data into the `example()` method
🎨 Add types to methods where applicable
🎨 Simplify the default `styles` configuration
🎨 Improve default typing on the `assets` method
@Log1x Log1x merged commit a0aa436 into master Feb 29, 2024
2 checks passed
@Log1x Log1x deleted the enhance/block-improvements branch February 29, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native type hinting
1 participant