chore: tidy up the api-reports with the nextRouteRef exports

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-01-10 13:28:04 +01:00
parent 3ea209aa12
commit cacde27e15
4 changed files with 17 additions and 17 deletions
-2
View File
@@ -43,5 +43,3 @@
NextFieldExtensionComponentProps
NextFieldExtensionOptions
```
- The `/alpha` import for `nextSelectedTemplateRouteRef` has been moved to `scaffolderPlugin.routes.nextSelectedTemplate`
+13 -5
View File
@@ -195,6 +195,9 @@ export function makeFieldSchemaFromZod<
: never
>;
// @alpha (undocumented)
export const nextRouteRef: RouteRef<undefined>;
// @alpha
export type NextRouterProps = {
components?: {
@@ -212,6 +215,16 @@ export const NextScaffolderPage: (
props: PropsWithChildren<NextRouterProps>,
) => JSX.Element;
// @alpha (undocumented)
export const nextScaffolderTaskRouteRef: SubRouteRef<
PathParams<'/tasks/:taskId'>
>;
// @alpha (undocumented)
export const nextSelectedTemplateRouteRef: SubRouteRef<
PathParams<'/templates/:namespace/:templateName'>
>;
// @public
export const OwnedEntityPickerFieldExtension: FieldExtensionComponent_2<
string,
@@ -457,11 +470,6 @@ export const scaffolderPlugin: BackstagePlugin<
PathParams<'/templates/:namespace/:templateName'>
>;
ongoingTask: SubRouteRef<PathParams<'/tasks/:taskId'>>;
next: RouteRef<undefined>;
nextSelectedTemplate: SubRouteRef<
PathParams<'/templates/:namespace/:templateName'>
>;
nextOngoingTask: SubRouteRef<PathParams<'/tasks/:taskId'>>;
},
{
registerComponent: ExternalRouteRef<undefined, true>;
+3
View File
@@ -47,6 +47,9 @@ export * from './deprecated';
/** next exports */
export { NextScaffolderPage } from './plugin';
export {
nextRouteRef,
nextScaffolderTaskRouteRef,
nextSelectedTemplateRouteRef,
type TemplateGroupFilter,
type NextRouterProps,
type FormProps,
+1 -10
View File
@@ -61,11 +61,7 @@ import {
selectedTemplateRouteRef,
scaffolderTaskRouteRef,
} from './routes';
import {
nextRouteRef,
nextSelectedTemplateRouteRef,
nextScaffolderTaskRouteRef,
} from './next';
import { nextRouteRef } from './next';
/**
* The main plugin export for the scaffolder.
@@ -95,11 +91,6 @@ export const scaffolderPlugin = createPlugin({
root: rootRouteRef,
selectedTemplate: selectedTemplateRouteRef,
ongoingTask: scaffolderTaskRouteRef,
/** next routes */
next: nextRouteRef,
nextSelectedTemplate: nextSelectedTemplateRouteRef,
nextOngoingTask: nextScaffolderTaskRouteRef,
},
externalRoutes: {
registerComponent: registerComponentRouteRef,