Skip to content

Commit

Permalink
Block JSON schema: Add viewScriptModule field (#59060)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: c4rl0sbr4v0 <[email protected]>
  • Loading branch information
3 people authored Feb 15, 2024
1 parent 7853838 commit fd75a20
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions schemas/json/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,20 @@
}
]
},
"viewScriptModule": {
"description": "Block type frontend script module definition. It will be enqueued only when viewing the content on the front of the site.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"editorStyle": {
"description": "Block type editor style definition. It will only be enqueued in the context of the editor.",
"oneOf": [
Expand Down

1 comment on commit fd75a20

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in fd75a20.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7914658566
📝 Reported issues:

Please sign in to comment.