chore: deprecate the routeRef export and favour routes.root instead

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-01-10 12:15:06 +01:00
parent 8b767113fe
commit 1806e0c26e
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -348,7 +348,7 @@ export type ReviewStepProps = {
}[];
};
// @public (undocumented)
// @public @deprecated (undocumented)
export const rootRouteRef: RouteRef<undefined>;
// @public
+1 -1
View File
@@ -52,7 +52,7 @@ import { rootRouteRef as rootRouteRefTemp } from './routes';
/**
* @public
* @deprecated use import from {@link @backstage/plugin-scaffolder#plugin.routes.root} instead.
* @deprecated use import from `{@link @backstage/plugin-scaffolder#scaffolderPlugin}.routes.root` instead.
*/
export const rootRouteRef = rootRouteRefTemp;
/**
-1
View File
@@ -42,7 +42,6 @@ export {
} from './plugin';
export * from './components';
export { rootRouteRef } from './routes';
export * from './deprecated';
/** next exports */
+1
View File
@@ -95,6 +95,7 @@ export const scaffolderPlugin = createPlugin({
root: rootRouteRef,
selectedTemplate: selectedTemplateRouteRef,
ongoingTask: scaffolderTaskRouteRef,
/** next routes */
next: nextRouteRef,
nextSelectedTemplate: nextSelectedTemplateRouteRef,