-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blocks: Add handling for block.json viewScriptModule (#58731)
Support `viewScriptModule` block.json field for registering blocks from metadata. #57437 added `viewModule` support, but the Modules API changed in core to refer to "script modules." --- - `viewModule` is deprecated but supported. - `viewScriptModule` support is added. If both fields are present, `viewScriptModule` will be used. Two REST API fields are included for block types with the same information. `view_module_ids` (deprecated) and `view_script_module_ids`.
- Loading branch information
Showing
2 changed files
with
59 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters