-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block registration API changes: - Introduces `allowedParents` which lets one specify which block types a block can be nested into. - Introduces `allowedPostTypes` which lets one specify which post types a block can be inserted into. - Deprecates `isPrivate`. Instead, use `allowedPostTypes: false`. Selector changes: - `getInserterItems` now respects the above properties and is the source of truth for whether a block is insertable or not. - Items returned by `getInserterItems` will include new `utility` and `frecency` attributes. `utility` indicates how useful we think inserting the block will be. This lets us show contextually useful blocks at the top of the Suggested tab. - Deprecates `getSupportedBlockTypes`. `getInserterItems` will remove any blocks that are not supported. - Deprecates `getFrecentInserterItems`. Instead, call `getInserterItems` and filter/sort by `frecency`. Inserter changes: - Both `inserter` and `inserter-with-shortcuts` have been changed to use `getInserterItems` and its new functionality.
- Loading branch information
1 parent
f922df2
commit 458a0b7
Showing
8 changed files
with
349 additions
and
556 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
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
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
Oops, something went wrong.