Skip to content

feat: add @yardinternet/gutenberg-block-restrictions package#187

Merged
YvetteNikolov merged 3 commits intomasterfrom
feat/add-package-gutenberg-block-restrictions
Mar 25, 2026
Merged

feat: add @yardinternet/gutenberg-block-restrictions package#187
YvetteNikolov merged 3 commits intomasterfrom
feat/add-package-gutenberg-block-restrictions

Conversation

@YvetteNikolov
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings March 25, 2026 08:59
@YvetteNikolov YvetteNikolov requested a review from a team as a code owner March 25, 2026 08:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 registerBlockRestrictions that hooks into blocks.registerBlockType and computes allowedBlocks from blockSets plus add/remove rule lists.
  • Adds package metadata (package.json) for publishing under the @yardinternet scope.
  • 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.

@YvetteNikolov YvetteNikolov force-pushed the feat/add-package-gutenberg-block-restrictions branch from 0a8f02f to 21dcd33 Compare March 25, 2026 09:39
@YvetteNikolov YvetteNikolov force-pushed the feat/add-package-gutenberg-block-restrictions branch from 21dcd33 to 1dfffdf Compare March 25, 2026 16:01
@YvetteNikolov YvetteNikolov merged commit 6f8533b into master Mar 25, 2026
3 of 5 checks passed
@YvetteNikolov YvetteNikolov deleted the feat/add-package-gutenberg-block-restrictions branch March 25, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants