refactoring(plugins/home): Don't export getToEntityRef
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com> Co-authored-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
committed by
Camila Belo
parent
c0700220c9
commit
09a7f8f285
@@ -22,7 +22,6 @@ import { ReactNode } from 'react';
|
||||
import { RendererProps as RendererProps_2 } from '@backstage/plugin-home-react';
|
||||
import { RouteRef } from '@backstage/core-plugin-api';
|
||||
import { SetStateAction } from 'react';
|
||||
import { stringifyEntityRef } from '@backstage/catalog-model';
|
||||
|
||||
// @public
|
||||
export type Breakpoint = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
||||
@@ -108,15 +107,6 @@ export const DoNotTrack: ({
|
||||
children?: ReactNode;
|
||||
}) => JSX.Element;
|
||||
|
||||
// @public
|
||||
export const getToEntityRef: ({
|
||||
rootPath,
|
||||
stringifyEntityRefImpl,
|
||||
}?: {
|
||||
rootPath?: string | undefined;
|
||||
stringifyEntityRefImpl?: typeof stringifyEntityRef | undefined;
|
||||
}) => ({ pathname }: { pathname: string }) => string | undefined;
|
||||
|
||||
// @public
|
||||
export const getVisitName: (document: Document) => () => string;
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ export const VisitListenerContext = createContext<VisitListenerContextValue>(
|
||||
);
|
||||
|
||||
/**
|
||||
* @public
|
||||
* This function returns an implementation of toEntityRef which is responsible
|
||||
* for receiving a pathname and maybe returning an entityRef compatible with the
|
||||
* catalog-model.
|
||||
@@ -57,7 +56,7 @@ export const VisitListenerContext = createContext<VisitListenerContextValue>(
|
||||
* toEntityRef(\{ pathname: "/catalog/default/component/playback-order" \})
|
||||
* // returns "component:default/playback-order"
|
||||
*/
|
||||
export const getToEntityRef =
|
||||
const getToEntityRef =
|
||||
({
|
||||
rootPath = 'catalog',
|
||||
stringifyEntityRefImpl = stringifyEntityRef,
|
||||
|
||||
Reference in New Issue
Block a user