Components: move border style utils to block-editor
package
#61135
Labels
[Feature] Block Styles
Issues or PRs that are related to the `register_block_style` API
[Feature] Component System
WordPress component system
[Package] Block editor
/packages/block-editor
[Package] Components
/packages/components
There are some border-related utilities marked as experimental being exported from the components package:
gutenberg/packages/components/src/index.ts
Lines 33 to 35 in d89e5a8
Specifically:
hasSplitBorders
isDefinedBorder
isEmptyBorder
This raised some alarms when making experimental components officially public, since they seem out of place, see comment: #60837 (comment)
These utilities are used in various different packages and places across the Gutenberg repo. Upon investigation, I believe a better home for them is probably the
block-editor
editor package. See the README: https://github.com/WordPress/gutenberg/blob/dcbccfb1ca51c560481c018a9c6f45b0ffd6aee9/packages/block-editor/README.mdThis package contains a lot of style-related utilities for blocks, including the following:
cc @mirka
The text was updated successfully, but these errors were encountered: