feat: add @yardinternet/gutenberg-block-restrictions package#187
Merged
YvetteNikolov merged 3 commits intomasterfrom Mar 25, 2026
Merged
feat: add @yardinternet/gutenberg-block-restrictions package#187YvetteNikolov merged 3 commits intomasterfrom
YvetteNikolov merged 3 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new workspace package (@yardinternet/gutenberg-block-restrictions) to apply configurable inner-block allow/deny rules by filtering Gutenberg block registration.
Changes:
- Introduces
registerBlockRestrictionsthat hooks intoblocks.registerBlockTypeand computesallowedBlocksfromblockSetsplusadd/removerule lists. - Adds package metadata (
package.json) for publishing under the@yardinternetscope. - Adds usage documentation and rule shape examples in a new README.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/block-restrictions/src/index.js | Implements the filter registration and allowed-block resolution logic. |
| packages/block-restrictions/package.json | Defines the new package name/version/registry metadata. |
| packages/block-restrictions/README.MD | Documents usage patterns and configuration examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
laravdiemen
approved these changes
Mar 25, 2026
0a8f02f to
21dcd33
Compare
21dcd33 to
1dfffdf
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context: yardinternet/brave@e8bdd90