Skip to content

Commit

Permalink
Navigator: mark experimental exports as deprecated (#65802)
Browse files Browse the repository at this point in the history
* Navigator: mark experimental exports as deprecated

* CHANGELOG

* Update JSDocs deprecation alternatives suggestions

---

Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Oct 2, 2024
1 parent a4c88c2 commit ce30c18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit ce30c18

Please sign in to comment.