-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block Editor Storybook: Restructure the directory and add badges to private components #68352
Conversation
…rivate components
Size Change: 0 B Total Size: 1.84 MB ℹ️ View Unchanged
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Flaky tests detected in ac9535a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12516428579
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @t-hamano!
Didn't know about the badges.
@Mamaduka Thanks for the review! |
What? / Why?
Because of #58123 and #58518, badges have been added to the private components published as
@wordpress/components
.Meanwhile, private components published in the
@wordpress/block-editor
package are classified in a separate directory. That means the current Storybook is structured as follows:This PR also adds badges to the block editor package, as well as the component package.
Furthermore, because adding badges means that a directory for the private API is no longer necessary, restructure it as follows:
How?
The components that will be badged by this PR are actually the following three:
DimensionsTool
ResolutionTool
TextAlignmentControl
The
DimensionsTool
component is composed of three subcomponents,AspectRatioTool
,ScaleTool
, andWidthHeightTool
. These three subcomponents cannot be used independently. It may not be necessary to publish them as a storybook, but for now, I will give private badges to these subcomponents as well. In the future, we might be able to expose each of these three subcomponents as standalone components.Testing Instructions
npm run storybook:dev