Avoid breaking api changes

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2022-01-14 16:09:50 +01:00
parent 2989c82825
commit 1fdf97f150
3 changed files with 4 additions and 16 deletions
-9
View File
@@ -703,15 +703,6 @@ export type MissingAnnotationEmptyStateClassKey = 'code';
// @public
export const MobileSidebar: (props: MobileSidebarProps) => JSX.Element | null;
// @public
export const MobileSidebarContext: React_2.Context<MobileSidebarContextType>;
// @public
export type MobileSidebarContextType = {
selectedMenuItemIndex: number;
setSelectedMenuItemIndex: React_2.Dispatch<React_2.SetStateAction<number>>;
};
// @public
export type MobileSidebarProps = {
children?: React_2.ReactNode;
@@ -34,7 +34,7 @@ import { SidebarGroup } from './SidebarGroup';
/**
* Type of `MobileSidebarContext`
*
* @public
* @internal
*/
export type MobileSidebarContextType = {
selectedMenuItemIndex: number;
@@ -134,7 +134,7 @@ const OverlayMenu = ({
/**
* Context on which `SidebarGroup` is currently selected
*
* @public
* @internal
*/
export const MobileSidebarContext = createContext<MobileSidebarContextType>({
selectedMenuItemIndex: -1,
@@ -15,11 +15,8 @@
*/
export { Sidebar } from './Bar';
export { MobileSidebar, MobileSidebarContext } from './MobileSidebar';
export type {
MobileSidebarContextType,
MobileSidebarProps,
} from './MobileSidebar';
export { MobileSidebar } from './MobileSidebar';
export type { MobileSidebarProps } from './MobileSidebar';
export { SidebarGroup } from './SidebarGroup';
export type { SidebarGroupProps } from './SidebarGroup';
export { SidebarSubmenuItem } from './SidebarSubmenuItem';