Remove from public interface and make techdocs specific.
Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
---
|
||||
'@backstage/core-app-api': minor
|
||||
'@backstage/plugin-techdocs': patch
|
||||
---
|
||||
|
||||
|
||||
@@ -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)';
|
||||
|
||||
|
||||
+2
@@ -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.
|
||||
*
|
||||
Reference in New Issue
Block a user