Skip to content

Commit

Permalink
switch exports of LinkControl to stabilized version
Browse files Browse the repository at this point in the history
At the same the this retains the experimental versions of the exported component for better backwards compatibility for the wide usage of the LinkComponent already out there
  • Loading branch information
fabiankaegy committed Nov 21, 2023
1 parent 1111197 commit 1d0a9d8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
20 changes: 20 additions & 0 deletions packages/block-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,26 @@ _Related_

- <https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/line-height-control/README.md>

### LinkControl

Renders a link control. A link control is a controlled input which maintains a value associated with a link (HTML anchor element) and relevant settings for how that link is expected to behave.

_Parameters_

- _props_ `WPLinkControlProps`: Component props.

### LinkControlSearchInput

Undocumented declaration.

### LinkControlSearchItem

Undocumented declaration.

### LinkControlSearchResults

Undocumented declaration.

### MediaPlaceholder

_Related_
Expand Down
20 changes: 16 additions & 4 deletions packages/block-editor/src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,22 @@ export {
JustifyToolbar,
JustifyContentControl,
} from './justify-content-control';
export { default as __experimentalLinkControl } from './link-control';
export { default as __experimentalLinkControlSearchInput } from './link-control/search-input';
export { default as __experimentalLinkControlSearchResults } from './link-control/search-results';
export { default as __experimentalLinkControlSearchItem } from './link-control/search-item';
export {
default as LinkControl,
DeprecatedExperimentalLinkControl as __experimentalLinkControl,
} from './link-control';
export {
default as LinkControlSearchInput,
DeprecatedExperimentalLinkControlSearchInput as __experimentalLinkControlSearchInput,
} from './link-control/search-input';
export {
default as LinkControlSearchResults,
DeprecatedExperimentalLinkControlSearchResults as __experimentalLinkControlSearchResults,
} from './link-control/search-results';
export {
default as LinkControlSearchItem,
DeprecatedExperimentalLinkControlSearchItem as __experimentalLinkControlSearchItem,
} from './link-control/search-item';
export { default as LineHeightControl } from './line-height-control';
export { default as __experimentalListView } from './list-view';
export { default as MediaReplaceFlow } from './media-replace-flow';
Expand Down

0 comments on commit 1d0a9d8

Please sign in to comment.