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

Navigator: mark experimental exports as deprecated #65802

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

- `__experimentalBorderControl` can now be imported as a stable `BorderControl` ([#65475](https://github.com/WordPress/gutenberg/pull/65475)).
- `__experimentalBorderBoxControl` can now be imported as a stable `BorderBoxControl` ([#65586](https://github.com/WordPress/gutenberg/pull/65586)).
- `__experimentalNavigator*` components can now be imported as a stable `Navigator`. Similarly, the `__experimentalUseNavigator` hook can be imported as a stable `useNavigator` ([#65802](https://github.com/WordPress/gutenberg/pull/65802)).

### Enhancements

Expand Down
6 changes: 6 additions & 0 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,21 @@ export { default as __experimentalNavigationGroup } from './navigation/group';
export { default as __experimentalNavigationItem } from './navigation/item';
export { default as __experimentalNavigationMenu } from './navigation/menu';
export {
/** @deprecated Import `Navigator` instead. */
NavigatorProvider as __experimentalNavigatorProvider,
/** @deprecated Import `Navigator` and use `Navigator.Screen` instead. */
NavigatorScreen as __experimentalNavigatorScreen,
/** @deprecated Import `Navigator` and use `Navigator.Button` instead. */
NavigatorButton as __experimentalNavigatorButton,
/** @deprecated Import `Navigator` and use `Navigator.BackButton` instead. */
NavigatorBackButton as __experimentalNavigatorBackButton,
/** @deprecated Import `Navigator` and use `Navigator.BackButton` instead. */
NavigatorToParentButton as __experimentalNavigatorToParentButton,
} from './navigator/legacy';
export {
Navigator,
useNavigator,
/** @deprecated Import `useNavigator` instead. */
useNavigator as __experimentalUseNavigator,
} from './navigator';
export { default as Notice } from './notice';
Expand Down
Loading