generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

Release: 2.0.0-alpha.1

Open tomusborne opened this issue 6 months ago • 0 comments

Changelog

Note: Work in progress

New

  • New v2 Blocks
    • These blocks are enabled by default for new installs. If your site is using existing v1 blocks, only those will be available in the inserter. This behavior is overridable by PHP filter.
    • All v2 blocks use a local version of the Global Styles builder for styling. This brings the previously pro-only Styles Builder controls to local blocks in place of the previous controls.
    • Blocks List
      • Element
      • Text
      • Media
      • Query
      • Looper
      • Loop Item
  • Dynamic Tags
    • Used in v2 blocks only instead of the current Dynamic Content system in v1 blocks (which remains the same).
    • Tags are supported in all v2 blocks.
    • Custom Tags
      • In addition to built-in tags, users may add their own tags via PHP.
      • Custom tags can declare tag support and option fields as needed.
        • Ex: You can add a custom text input to support a bespoke option for your tag using the fields key on registration.
  • New Query Functionality
    • The new Query block supports a standard Post Query (WP_Query) as well as custom query types:
      • Post Meta (Pro)
      • Options (Pro)
    • ACF Integration: ACF meta keys for the selected post will display in a separate group in the list. If a meta value is from ACF the key will be processed by ACF via get_field.
    • Meta/option keys can be used even if they are nested.
    • The Looper block is used inside the query to simplify block markup and make the Loop Item contents easier to style.
    • The current object being looped over in the query is available via the dynamic tag: loop_item. Users may access properties on the current loop item using this tag.
  • New HTML Attributes Functionality (v2 blocks only)
    • The HTML attributes for a block are fully exposed in the block settings and you may enter more attributes than ever before. This makes it simple to customize your markup to suit your needs.
  • New Styles Builder Control
    • Text Shadow is now available in the Effects panel.
  • For Developers
    • New REST endpoints are available for querying meta/option values. These are used internally including in our new ACF integration in GenerateBlocks Pro. You can use these to request a value using the same id and key structure as our dynamic tags.

Improved

  • Style Indicators
    • Style indicators now work for local and global styles (pro only). Previously these only showed Global Styles being applied to someone controls. Now these indicators are applied to all controls.
  • Styles Builder UI/UX
    • Added search and filtering options for controls.
      • Hide Empty: Hide all controls that don't have a value set.
      • Show Inherited: Show controls that inherit a style you've set elsewhere (another breakpoint, selector, global style, etc).
    • Tightened up UI and added collapsible sub panels in Layout.
    • Added new icons for styles builder panels.
    • Added baseline extensibility to support additional custom filters.
  • UnitControl was refactored to be much faster and more reliable.

Fixed

  • Removed input lag in various Styles Builder controls.
  • Resolved a few logic errors that would cause infinite loops in some situations.
  • Various minor UI bugs in the Styles Builder.

tomusborne avatar Aug 06 '24 15:08 tomusborne