Remove from public interface and make techdocs specific.

Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
This commit is contained in:
Aramis Sennyey
2023-03-24 12:35:15 -04:00
parent 383f30f9d6
commit d31664d154
6 changed files with 3 additions and 7 deletions
-1
View File
@@ -1,5 +1,4 @@
---
'@backstage/core-app-api': minor
'@backstage/plugin-techdocs': patch
---
-3
View File
@@ -576,9 +576,6 @@ export class UrlPatternDiscovery implements DiscoveryApi {
getBaseUrl(pluginId: string): Promise<string>;
}
// @public
export function useNavigateUrl(): (to: string) => void;
// @public
export class WebStorage implements StorageApi {
constructor(namespace: string, errorApi: ErrorApi);
@@ -18,5 +18,3 @@ export { FlatRoutes } from './FlatRoutes';
export type { FlatRoutesProps } from './FlatRoutes';
export { FeatureFlagged } from './FeatureFlagged';
export type { FeatureFlaggedProps } from './FeatureFlagged';
export { useNavigateUrl } from './useNavigateUrl';
@@ -46,7 +46,7 @@ import {
useSanitizerTransformer,
useStylesTransformer,
} from '../../transformers';
import { useNavigateUrl } from '@backstage/core-app-api';
import { useNavigateUrl } from './useNavigateUrl';
const MOBILE_MEDIA_QUERY = 'screen and (max-width: 76.1875em)';
@@ -46,6 +46,8 @@ export function resolveUrlToRelative(url: string, baseUrl: string) {
* NOTE: This does not support routing to external URLs. That should be done with a `Link` or `a`
* element instead, or just `window.location.href`.
*
* TODO: Update this to use `useRouteRef` instead of `useApi`.
*
* @returns Navigation function that is a wrapper over `react-router-dom`'s
* to support passing full URLs for navigation.
*