Closed wongjn closed 2 months ago
I couldn't find viewScriptModule
but I could find the Interactivity one.
Thank you for pointing that out, updated.
Thanks for the report.
@ajlende To fix an issue like this, would it be enough to just submit a PR to that branch adding the missing field?
@t-hamano, yes. The versioned schemas are sourced directly from the wp branches here.
@ajlende Thanks for the advice!
I plan on working on this PR, but I'll leave the diff here as a note to check if there are any other missing fields.
Another approach for viewScriptModule
description could be:
JavaScript module source that will be only enqueued on the front side of the site.
@cbravobernal Thanks for the suggestion.
Regarding the description improvements, it might be a good idea to not include them in the backport to WP6.5, but instead submit a new PR against the trunk branch.
Fixed by #62917
Description
The JSON schema for
block.json
for WordPress version 6.5 is missing theviewScriptModule
field that was introduced in WordPress 6.5. As of note, the WP 6.6 version does have this field included.Step-by-step reproduction instructions
viewScriptModule
property specified.Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes