Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename isPrivate → supports.inserter #6766

Merged
merged 1 commit into from May 16, 2018
Merged

Conversation

noisysocks
Copy link
Member

@noisysocks noisysocks commented May 16, 2018

Description

Removes the inPrivate property in lieu of a supports flag. This came up in #6346 (comment). Also adds documentation so as to fix #4486.

How has this been tested?

  1. Open the inserter
  2. Check that Shared Block doesn't appear anywhere

@noisysocks noisysocks added the [Feature] Extensibility The ability to extend blocks or the editing experience label May 16, 2018
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

This change itself looks great.

When testing I discovered that Shared block is listed when using the / command. It can be handled separately, your call.

@@ -4,6 +4,7 @@ Gutenberg's deprecation policy is intended to support backwards-compatibility fo

- All components in `wp.blocks.*` are removed. Please use `wp.editor.*` instead.
- `wp.blocks.withEditorSettings` is removed. Please use the data module to access the editor settings `wp.data.select( "core/editor" ).getEditorSettings()`.
- `isPrivate: true` has been removed. Please use `supports.inserter: false` instead.
Copy link
Member

@gziolo gziolo May 16, 2018

Choose a reason for hiding this comment

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

Should we add here some context? E.g.:

isPrivate: true has been removed from blocks API.

@gziolo
Copy link
Member

gziolo commented May 16, 2018

I couldn't attach an image in the review message ...
screen shot 2018-05-16 at 09 41 45

@gziolo gziolo added [Feature] Block API API that allows to express the block paradigm. [Type] Enhancement A suggestion for improvement. labels May 16, 2018
@gziolo gziolo added this to the 2.9 milestone May 16, 2018
- Removes the inPrivate property in lieu of a supports flag.
- Adds documentation for the new flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block API API that allows to express the block paradigm. [Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Blocks API - isPrivate
3 participants