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

Stabilize the __experimentalDefaultControls block supports property #64314

Open
5 tasks
ndiego opened this issue Aug 6, 2024 · 0 comments
Open
5 tasks

Stabilize the __experimentalDefaultControls block supports property #64314

ndiego opened this issue Aug 6, 2024 · 0 comments
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Package] Block library /packages/block-library [Type] Enhancement A suggestion for improvement.

Comments

@ndiego
Copy link
Member

ndiego commented Aug 6, 2024

Related to #43241.

The __experimentalDefaultControls property lets developers choose which settings are displayed by default in the Editor for each block support. This property is often used when creating custom blocks that utilize block supports or when customizing the Editor experience. Removing the __experimental prefix will make it easier for third-party developers to confidently use this property.

  • __experimentalDefaultControlsdefaultControls

Note that in order to provide backward compatibility for block plugins out in the wild, fallback support for the existing __experimental prefix should be provided.

Tasks

This is a preliminary list based on the format of #63001, but it is likely incomplete.

  • Update the JS implementations of the default controls to point to the non __experimental prefix, falling back to the __experimental prefix if available.
  • Update the block.json schema to support the non __experimental prefix
  • Update the core blocks' block.json files to use the non __experimental prefixes
  • Update the supports documentation to include a section about default controls.
  • Update the block.json schema to remove the __experimental prefix. Note that the code in WordPress should still support the __experimental prefix, but at this stage, the experimental prefix will be treated as deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Package] Block library /packages/block-library [Type] Enhancement A suggestion for improvement.
Projects
Development

No branches or pull requests

1 participant