chore: deprecate the routeRef export and favour routes.root instead
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -348,7 +348,7 @@ export type ReviewStepProps = {
|
||||
}[];
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
// @public @deprecated (undocumented)
|
||||
export const rootRouteRef: RouteRef<undefined>;
|
||||
|
||||
// @public
|
||||
|
||||
@@ -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;
|
||||
/**
|
||||
|
||||
@@ -42,7 +42,6 @@ export {
|
||||
} from './plugin';
|
||||
|
||||
export * from './components';
|
||||
export { rootRouteRef } from './routes';
|
||||
export * from './deprecated';
|
||||
|
||||
/** next exports */
|
||||
|
||||
@@ -95,6 +95,7 @@ export const scaffolderPlugin = createPlugin({
|
||||
root: rootRouteRef,
|
||||
selectedTemplate: selectedTemplateRouteRef,
|
||||
ongoingTask: scaffolderTaskRouteRef,
|
||||
|
||||
/** next routes */
|
||||
next: nextRouteRef,
|
||||
nextSelectedTemplate: nextSelectedTemplateRouteRef,
|
||||
|
||||
Reference in New Issue
Block a user