diff --git a/plugins/graphql-voyager/api-report.md b/plugins/graphql-voyager/api-report.md index 21423a8c30..9b488f9356 100644 --- a/plugins/graphql-voyager/api-report.md +++ b/plugins/graphql-voyager/api-report.md @@ -43,7 +43,14 @@ export class GraphQLVoyagerEndpoints implements GraphQLVoyagerApi { } // @public (undocumented) -export const GraphqlVoyagerPage: () => JSX.Element; +export const GraphqlVoyagerPage: ( + props: GraphQLVoyagerPageProps, +) => JSX.Element; + +// @public (undocumented) +export type GraphQLVoyagerPageProps = { + title?: string; +}; // @public (undocumented) export const graphqlVoyagerPlugin: BackstagePlugin< @@ -58,7 +65,7 @@ export const graphqlVoyagerPlugin: BackstagePlugin< export const introspectionQuery: string; // @public (undocumented) -export const Router: () => JSX.Element; +export const Router: (props: GraphQLVoyagerPageProps) => JSX.Element; // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/graphql-voyager/src/components/GraphQLVoyagerPage/GraphQLVoyagerPage.tsx b/plugins/graphql-voyager/src/components/GraphQLVoyagerPage/GraphQLVoyagerPage.tsx index 8b32a25f87..f3c4f70b4f 100644 --- a/plugins/graphql-voyager/src/components/GraphQLVoyagerPage/GraphQLVoyagerPage.tsx +++ b/plugins/graphql-voyager/src/components/GraphQLVoyagerPage/GraphQLVoyagerPage.tsx @@ -27,7 +27,8 @@ import { graphQlVoyagerApiRef } from '../../lib/api'; import useAsync from 'react-use/lib/useAsync'; import { GraphQLVoyagerBrowser } from '../GraphQLVoyagerBrowser'; -type GraphQLVoyagerPageProps = { +/** @public */ +export type GraphQLVoyagerPageProps = { title?: string; }; diff --git a/plugins/graphql-voyager/src/index.ts b/plugins/graphql-voyager/src/index.ts index 2e7852bc51..9e314c2eef 100644 --- a/plugins/graphql-voyager/src/index.ts +++ b/plugins/graphql-voyager/src/index.ts @@ -15,4 +15,5 @@ */ export { graphqlVoyagerPlugin, GraphqlVoyagerPage } from './plugin'; export { GraphQLVoyagerPage as Router } from './components'; +export type { GraphQLVoyagerPageProps } from './components'; export * from './lib/api';