-
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
[Mobile] - Remove circular dependencies within the components package #61102
Conversation
Size Change: 0 B Total Size: 1.75 MB ℹ️ View Unchanged
|
Flaky tests detected in 93b5efc. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8881060435
|
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. |
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 @geriux!
* Components - AutoComplete - Fix components imports * Components - ColorIndicator - Fix components imports * Components - ColorPicker - Fix components imports * Components - CustomGradient - Fix components imports * Components - DashIcon - Fix components imports * Components - Draggable - Fix components imports * Components - DropdownMenu - Fix components imports * Components - FocalPointPicker - Fix components imports * Components - FontSizePicker - Fix components imports * Components - AutoCompletion - Fix components imports * Components - BottomSheet - Fix components imports * Components - ColorSettings - Fix components imports * Components - FocalPointSettingsPanel - Fix components imports * Components - Gradient - Fix components imports * Components - Image - Fix components imports * Components - LinkPicker - Fix components imports * Components - LinkSettings - Fix components imports * Components - MediaEdit - Fix components imports * Components - Picker - Fix components imports * Components - Panel - Fix components imports * Components - QueryControls - Fix components imports * Components - SearchControl - Fix components imports * Components - Tooltip - Fix components imports Co-authored-by: geriux <[email protected]> Co-authored-by: twstokes <[email protected]>
Thanks for this @geriux 🙌 |
Thank you, @geriux! |
Related PRs:
Addresses #52692
Second part #61109
What?
This PR addresses part of the circular dependencies the native editor has.
Why?
The initial prompt started at #27751 so this is a continuation of the ongoing effort to remove/reduce circular dependencies.
How?
By removing references from other components that would result in a circular dependency.
To make the review easier, this PR is split into two parts, the second part should be merged into this branch before merging.
Before these changes, we had 80 warnings of require cycles, with these two PRs we will have only 45 remaining, none of those are from the
components
package anymore so we can focus on the rest in future iterations.Changes
AudioPlayer
component to the components of the Block Editor package where the VideoPlayer is currently located.components
package to have internal imports instead.Testing Instructions
CI checks should pass in both Gutenberg and Gutenberg Mobile.
Testing Instructions for Keyboard
N/A
Screenshots or screencast
NA