-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Package] Block editor/packages/block-editor/packages/block-editor[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
Description
Description
There is still some room for improvements after WordPress 5.8 release that brings some new exciting features to Block API listed in dev notes:
- https://make.wordpress.org/core/2021/06/23/block-api-enhancements-in-wordpress-5-8/
- https://make.wordpress.org/core/2021/07/01/block-styles-loading-enhancements-in-wordpress-5-8/
Based on the feedback received during the implementation and after the dev notes were published we created some follow-up tasks.
Planned tasks
- Allow more than one stylesheets per block for both
editorStyle
andstyle
- Allow more than one script per block for
editorScript
,script
, andviewScript
- Add
viewScript
- fronted only script support for the block type - Add
viewStyle
- frontend only multiple styles support for the block type- Gutenberg
- WP core
- Document new APIs:
-
viewScript
inblock.json
Blocks: Add view script to block schema and docs #36175 - multiple styles per type allowed in
block.json
- multiple scripts per type allowed in
block.json
-
skorasaurus, cr0ybot, amir2mi, luisherranz and bratvanovaristath, Mamaduka, ntsekouras, amir2mi and rmorse
Metadata
Metadata
Labels
[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Package] Block editor/packages/block-editor/packages/block-editor[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.Tactical breakdown of efforts across the codebase and/or tied to Overview issues.