From 65454876fb21ec1a8cda1dc556aa1f2af3d874fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Mon, 27 Feb 2023 15:31:15 +0100 Subject: [PATCH] unpack props inside component bodies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/clever-dogs-cheat.md | 21 +++++++++ plugins/auth-node/api-report.md | 8 ++-- .../auth-node/src/DefaultIdentityClient.ts | 9 ++-- .../api-report.md | 2 +- .../src/analyzers/GithubLocationAnalyzer.ts | 3 +- plugins/catalog-react/api-report.md | 27 +++++------- plugins/catalog-react/src/hooks/useEntity.tsx | 9 +--- .../src/hooks/useEntityListProvider.tsx | 8 ++-- .../catalog-react/src/testUtils/providers.tsx | 13 +++--- plugins/explore/api-report.md | 6 +-- plugins/explore/src/api/ExploreClient.ts | 18 ++++---- plugins/scaffolder-backend/api-report.md | 16 +++---- .../builtin/publish/githubPullRequest.ts | 14 +++--- .../src/scaffolder/tasks/DatabaseTaskStore.ts | 3 +- .../src/scaffolder/tasks/types.ts | 11 +++-- plugins/scaffolder-react/api-report.md | 6 +-- .../src/secrets/SecretsContext.tsx | 4 +- plugins/scaffolder/api-report.md | 2 +- .../src/components/TaskPage/TaskPage.tsx | 4 +- .../api-report.md | 9 ++-- .../src/engines/ElasticSearchSearchEngine.ts | 27 +++++++----- plugins/search-react/api-report.md | 21 +++------ .../HighlightedSearchResultText.tsx | 11 ++--- .../SearchAutocompleteDefaultOption.tsx | 44 +++++++++++-------- .../components/SearchFilter/SearchFilter.tsx | 8 ++-- plugins/search/api-report.md | 20 +++------ .../HomePageComponent/HomePageSearchBar.tsx | 2 +- .../components/SearchModal/SearchModal.tsx | 9 ++-- .../components/SearchModal/useSearchModal.tsx | 9 ++-- plugins/sonarqube/api-report.md | 5 +-- plugins/sonarqube/src/api/SonarQubeClient.ts | 9 ++-- plugins/splunk-on-call/api-report.md | 11 +---- plugins/splunk-on-call/src/api/client.ts | 22 +++++----- .../src/components/SplunkOnCallPage.tsx | 7 +-- .../api-report.md | 15 +------ .../src/service/JsonRulesEngineFactChecker.ts | 25 ++++------- plugins/tech-insights/api-report.md | 6 +-- .../components/BooleanCheck/BooleanCheck.tsx | 4 +- plugins/techdocs-node/api-report.md | 11 ++--- .../techdocs-node/src/stages/prepare/dir.ts | 4 +- .../src/stages/prepare/preparers.ts | 11 +++-- .../techdocs-node/src/stages/prepare/url.ts | 4 +- .../src/stages/publish/publish.ts | 4 +- plugins/techdocs-react/api-report.md | 8 +--- plugins/techdocs-react/src/component.tsx | 8 ++-- plugins/techdocs-react/src/context.tsx | 4 +- plugins/techdocs/api-report.md | 23 +++++----- .../components/Grids/EntityListDocsGrid.tsx | 10 ++--- .../src/home/components/Tables/actions.tsx | 3 +- .../TechDocsReaderPage/TechDocsReaderPage.tsx | 6 +-- .../components/TechDocsReaderProvider.tsx | 6 +-- 51 files changed, 253 insertions(+), 297 deletions(-) create mode 100644 .changeset/clever-dogs-cheat.md diff --git a/.changeset/clever-dogs-cheat.md b/.changeset/clever-dogs-cheat.md new file mode 100644 index 0000000000..56fcf3d30c --- /dev/null +++ b/.changeset/clever-dogs-cheat.md @@ -0,0 +1,21 @@ +--- +'@backstage/plugin-search-backend-module-elasticsearch': patch +'@backstage/plugin-tech-insights-backend-module-jsonfc': patch +'@backstage/plugin-catalog-backend-module-github': patch +'@backstage/plugin-scaffolder-backend': patch +'@backstage/plugin-scaffolder-react': patch +'@backstage/plugin-splunk-on-call': patch +'@backstage/plugin-techdocs-react': patch +'@backstage/plugin-catalog-react': patch +'@backstage/plugin-tech-insights': patch +'@backstage/plugin-techdocs-node': patch +'@backstage/plugin-search-react': patch +'@backstage/plugin-scaffolder': patch +'@backstage/plugin-auth-node': patch +'@backstage/plugin-sonarqube': patch +'@backstage/plugin-techdocs': patch +'@backstage/plugin-explore': patch +'@backstage/plugin-search': patch +--- + +Minor API report tweaks diff --git a/plugins/auth-node/api-report.md b/plugins/auth-node/api-report.md index c6d4b4e3f8..bc9e392929 100644 --- a/plugins/auth-node/api-report.md +++ b/plugins/auth-node/api-report.md @@ -29,11 +29,9 @@ export class DefaultIdentityClient implements IdentityApi { authenticate(token: string | undefined): Promise; static create(options: IdentityClientOptions): DefaultIdentityClient; // (undocumented) - getIdentity({ - request, - }: IdentityApiGetIdentityRequest): Promise< - BackstageIdentityResponse | undefined - >; + getIdentity( + options: IdentityApiGetIdentityRequest, + ): Promise; } // @public diff --git a/plugins/auth-node/src/DefaultIdentityClient.ts b/plugins/auth-node/src/DefaultIdentityClient.ts index b8f6b73865..8af8bf09e1 100644 --- a/plugins/auth-node/src/DefaultIdentityClient.ts +++ b/plugins/auth-node/src/DefaultIdentityClient.ts @@ -78,13 +78,16 @@ export class DefaultIdentityClient implements IdentityApi { : ['ES256']; } - async getIdentity({ request }: IdentityApiGetIdentityRequest) { - if (!request.headers.authorization) { + async getIdentity(options: IdentityApiGetIdentityRequest) { + const { + request: { headers }, + } = options; + if (!headers.authorization) { return undefined; } try { return await this.authenticate( - getBearerTokenFromAuthorizationHeader(request.headers.authorization), + getBearerTokenFromAuthorizationHeader(headers.authorization), ); } catch (e) { throw new AuthenticationError(e.message); diff --git a/plugins/catalog-backend-module-github/api-report.md b/plugins/catalog-backend-module-github/api-report.md index e2b73d267b..c732740997 100644 --- a/plugins/catalog-backend-module-github/api-report.md +++ b/plugins/catalog-backend-module-github/api-report.md @@ -103,7 +103,7 @@ export class GithubEntityProvider implements EntityProvider, EventSubscriber { export class GithubLocationAnalyzer implements ScmLocationAnalyzer { constructor(options: GithubLocationAnalyzerOptions); // (undocumented) - analyze({ url, catalogFilename }: AnalyzeOptions): Promise<{ + analyze(options: AnalyzeOptions): Promise<{ existing: { location: { type: string; diff --git a/plugins/catalog-backend-module-github/src/analyzers/GithubLocationAnalyzer.ts b/plugins/catalog-backend-module-github/src/analyzers/GithubLocationAnalyzer.ts index 139a92ee83..9341743413 100644 --- a/plugins/catalog-backend-module-github/src/analyzers/GithubLocationAnalyzer.ts +++ b/plugins/catalog-backend-module-github/src/analyzers/GithubLocationAnalyzer.ts @@ -63,7 +63,8 @@ export class GithubLocationAnalyzer implements ScmLocationAnalyzer { return integration?.type === 'github'; } - async analyze({ url, catalogFilename }: AnalyzeOptions) { + async analyze(options: AnalyzeOptions) { + const { url, catalogFilename } = options; const { owner, name: repo } = parseGitUrl(url); const catalogFile = catalogFilename || 'catalog-info.yaml'; diff --git a/plugins/catalog-react/api-report.md b/plugins/catalog-react/api-report.md index 55c72122f5..77f439018f 100644 --- a/plugins/catalog-react/api-report.md +++ b/plugins/catalog-react/api-report.md @@ -27,13 +27,9 @@ import { SystemEntity } from '@backstage/catalog-model'; import { TableColumn } from '@backstage/core-components'; // @public -export const AsyncEntityProvider: ({ - children, - entity, - loading, - error, - refresh, -}: AsyncEntityProviderProps) => JSX.Element; +export const AsyncEntityProvider: ( + props: AsyncEntityProviderProps, +) => JSX.Element; // @public export interface AsyncEntityProviderProps { @@ -220,9 +216,9 @@ export type EntityListContextProps< }; // @public -export const EntityListProvider: ({ - children, -}: PropsWithChildren<{}>) => JSX.Element; +export const EntityListProvider: ( + props: PropsWithChildren<{}>, +) => JSX.Element; // @public (undocumented) export type EntityLoadingStatus = { @@ -476,12 +472,11 @@ export function InspectEntityDialog(props: { // @public (undocumented) export function MockEntityListContextProvider< T extends DefaultEntityFilters = DefaultEntityFilters, ->({ - children, - value, -}: PropsWithChildren<{ - value?: Partial>; -}>): JSX.Element; +>( + props: PropsWithChildren<{ + value?: Partial>; + }>, +): JSX.Element; // @public export class MockStarredEntitiesApi implements StarredEntitiesApi { diff --git a/plugins/catalog-react/src/hooks/useEntity.tsx b/plugins/catalog-react/src/hooks/useEntity.tsx index 84b7883c8a..63e7c7b6d8 100644 --- a/plugins/catalog-react/src/hooks/useEntity.tsx +++ b/plugins/catalog-react/src/hooks/useEntity.tsx @@ -55,13 +55,8 @@ export interface AsyncEntityProviderProps { * * @public */ -export const AsyncEntityProvider = ({ - children, - entity, - loading, - error, - refresh, -}: AsyncEntityProviderProps) => { +export const AsyncEntityProvider = (props: AsyncEntityProviderProps) => { + const { children, entity, loading, error, refresh } = props; const value = { entity, loading, error, refresh }; // We provide both the old and the new context, since // consumers might be doing things like `useContext(EntityContext)` diff --git a/plugins/catalog-react/src/hooks/useEntityListProvider.tsx b/plugins/catalog-react/src/hooks/useEntityListProvider.tsx index b5dfb4d8f7..a2b680c02e 100644 --- a/plugins/catalog-react/src/hooks/useEntityListProvider.tsx +++ b/plugins/catalog-react/src/hooks/useEntityListProvider.tsx @@ -115,9 +115,9 @@ type OutputState = { * Provides entities and filters for a catalog listing. * @public */ -export const EntityListProvider = ({ - children, -}: PropsWithChildren<{}>) => { +export const EntityListProvider = ( + props: PropsWithChildren<{}>, +) => { const isMounted = useMountedState(); const catalogApi = useApi(catalogApiRef); const [requestedFilters, setRequestedFilters] = useState( @@ -248,7 +248,7 @@ export const EntityListProvider = ({ return ( - {children} + {props.children} ); }; diff --git a/plugins/catalog-react/src/testUtils/providers.tsx b/plugins/catalog-react/src/testUtils/providers.tsx index 9bf5b21f94..8ab6d118a9 100644 --- a/plugins/catalog-react/src/testUtils/providers.tsx +++ b/plugins/catalog-react/src/testUtils/providers.tsx @@ -29,12 +29,13 @@ import { /** @public */ export function MockEntityListContextProvider< T extends DefaultEntityFilters = DefaultEntityFilters, ->({ - children, - value, -}: PropsWithChildren<{ - value?: Partial>; -}>) { +>( + props: PropsWithChildren<{ + value?: Partial>; + }>, +) { + const { children, value } = props; + // Provides a default implementation that stores filter state, for testing components that // reflect filter state. const [filters, setFilters] = useState(value?.filters ?? ({} as T)); diff --git a/plugins/explore/api-report.md b/plugins/explore/api-report.md index 8820411392..db89db6503 100644 --- a/plugins/explore/api-report.md +++ b/plugins/explore/api-report.md @@ -50,11 +50,7 @@ export const exploreApiRef: ApiRef; // @public export class ExploreClient implements ExploreApi { - constructor({ - discoveryApi, - fetchApi, - exploreToolsConfig, - }: { + constructor(options: { discoveryApi: DiscoveryApi; fetchApi: FetchApi; exploreToolsConfig?: ExploreToolsConfig; diff --git a/plugins/explore/src/api/ExploreClient.ts b/plugins/explore/src/api/ExploreClient.ts index e913aeb041..9dca2755fe 100644 --- a/plugins/explore/src/api/ExploreClient.ts +++ b/plugins/explore/src/api/ExploreClient.ts @@ -24,7 +24,7 @@ import { ExploreToolsConfig } from '@backstage/plugin-explore-react'; import { ExploreApi } from './ExploreApi'; /** - * Default implementation of the ExploreApi. + * Default implementation of the {@link ExploreApi}. * * @public */ @@ -35,21 +35,19 @@ export class ExploreClient implements ExploreApi { private readonly exploreToolsConfig: ExploreToolsConfig | undefined; /** - * @remarks The exploreToolsConfig is for backwards compatibility with the exporeToolsConfigRef + * @remarks + * + * The `exploreToolsConfig` is for backwards compatibility with the `exploreToolsConfigRef`• * and will be removed in the future. */ - constructor({ - discoveryApi, - fetchApi, - exploreToolsConfig = undefined, - }: { + constructor(options: { discoveryApi: DiscoveryApi; fetchApi: FetchApi; exploreToolsConfig?: ExploreToolsConfig; }) { - this.discoveryApi = discoveryApi; - this.fetchApi = fetchApi; - this.exploreToolsConfig = exploreToolsConfig; + this.discoveryApi = options.discoveryApi; + this.fetchApi = options.fetchApi; + this.exploreToolsConfig = options.exploreToolsConfig; } async getTools( diff --git a/plugins/scaffolder-backend/api-report.md b/plugins/scaffolder-backend/api-report.md index 293ff7ed29..2c11e361e7 100644 --- a/plugins/scaffolder-backend/api-report.md +++ b/plugins/scaffolder-backend/api-report.md @@ -459,11 +459,9 @@ export function createPublishGithubAction(options: { }>; // @public -export const createPublishGithubPullRequestAction: ({ - integrations, - githubCredentialsProvider, - clientFactory, -}: CreateGithubPullRequestActionOptions) => TemplateAction_2<{ +export const createPublishGithubPullRequestAction: ( + options: CreateGithubPullRequestActionOptions, +) => TemplateAction_2<{ title: string; branchName: string; description: string; @@ -581,7 +579,7 @@ export class DatabaseTaskStore implements TaskStore { }[]; }>; // (undocumented) - shutdownTask({ taskId }: TaskStoreShutDownTaskOptions): Promise; + shutdownTask(options: TaskStoreShutDownTaskOptions): Promise; } // @public @@ -792,7 +790,7 @@ export interface TaskStore { options: TaskStoreCreateTaskOptions, ): Promise; // (undocumented) - emitLogEvent({ taskId, body }: TaskStoreEmitOptions): Promise; + emitLogEvent(options: TaskStoreEmitOptions): Promise; // (undocumented) getTask(taskId: string): Promise; // (undocumented) @@ -802,7 +800,7 @@ export interface TaskStore { tasks: SerializedTask[]; }>; // (undocumented) - listEvents({ taskId, after }: TaskStoreListEventsOptions): Promise<{ + listEvents(options: TaskStoreListEventsOptions): Promise<{ events: SerializedTaskEvent[]; }>; // (undocumented) @@ -812,7 +810,7 @@ export interface TaskStore { }[]; }>; // (undocumented) - shutdownTask?({ taskId }: TaskStoreShutDownTaskOptions): Promise; + shutdownTask?(options: TaskStoreShutDownTaskOptions): Promise; } // @public diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/githubPullRequest.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/githubPullRequest.ts index 764354e8ec..b8c0068d70 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/githubPullRequest.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/githubPullRequest.ts @@ -116,11 +116,15 @@ type GithubPullRequest = { * Creates a Github Pull Request action. * @public */ -export const createPublishGithubPullRequestAction = ({ - integrations, - githubCredentialsProvider, - clientFactory = defaultClientFactory, -}: CreateGithubPullRequestActionOptions) => { +export const createPublishGithubPullRequestAction = ( + options: CreateGithubPullRequestActionOptions, +) => { + const { + integrations, + githubCredentialsProvider, + clientFactory = defaultClientFactory, + } = options; + return createTemplateAction<{ title: string; branchName: string; diff --git a/plugins/scaffolder-backend/src/scaffolder/tasks/DatabaseTaskStore.ts b/plugins/scaffolder-backend/src/scaffolder/tasks/DatabaseTaskStore.ts index b61c3d2676..879b457544 100644 --- a/plugins/scaffolder-backend/src/scaffolder/tasks/DatabaseTaskStore.ts +++ b/plugins/scaffolder-backend/src/scaffolder/tasks/DatabaseTaskStore.ts @@ -381,7 +381,8 @@ export class DatabaseTaskStore implements TaskStore { return { events }; } - async shutdownTask({ taskId }: TaskStoreShutDownTaskOptions): Promise { + async shutdownTask(options: TaskStoreShutDownTaskOptions): Promise { + const { taskId } = options; const message = `This task was marked as stale as it exceeded its timeout`; const statusStepEvents = (await this.listEvents({ taskId })).events.filter( diff --git a/plugins/scaffolder-backend/src/scaffolder/tasks/types.ts b/plugins/scaffolder-backend/src/scaffolder/tasks/types.ts index 89f6c3e213..5a91802f3e 100644 --- a/plugins/scaffolder-backend/src/scaffolder/tasks/types.ts +++ b/plugins/scaffolder-backend/src/scaffolder/tasks/types.ts @@ -197,12 +197,11 @@ export interface TaskStore { }>; list?(options: { createdBy?: string }): Promise<{ tasks: SerializedTask[] }>; - emitLogEvent({ taskId, body }: TaskStoreEmitOptions): Promise; - listEvents({ - taskId, - after, - }: TaskStoreListEventsOptions): Promise<{ events: SerializedTaskEvent[] }>; - shutdownTask?({ taskId }: TaskStoreShutDownTaskOptions): Promise; + emitLogEvent(options: TaskStoreEmitOptions): Promise; + listEvents( + options: TaskStoreListEventsOptions, + ): Promise<{ events: SerializedTaskEvent[] }>; + shutdownTask?(options: TaskStoreShutDownTaskOptions): Promise; } export type WorkflowResponse = { output: { [key: string]: JsonValue } }; diff --git a/plugins/scaffolder-react/api-report.md b/plugins/scaffolder-react/api-report.md index 384c4b80f2..6f7f7d845b 100644 --- a/plugins/scaffolder-react/api-report.md +++ b/plugins/scaffolder-react/api-report.md @@ -277,9 +277,9 @@ export interface ScaffolderUseTemplateSecrets { } // @public -export const SecretsContextProvider: ({ - children, -}: PropsWithChildren<{}>) => JSX.Element; +export const SecretsContextProvider: ( + props: PropsWithChildren<{}>, +) => JSX.Element; // @public export type Step = { diff --git a/plugins/scaffolder-react/src/secrets/SecretsContext.tsx b/plugins/scaffolder-react/src/secrets/SecretsContext.tsx index af5c2393cd..3cbd23597a 100644 --- a/plugins/scaffolder-react/src/secrets/SecretsContext.tsx +++ b/plugins/scaffolder-react/src/secrets/SecretsContext.tsx @@ -43,14 +43,14 @@ const SecretsContext = createVersionedContext<{ * The Context Provider that holds the state for the secrets. * @public */ -export const SecretsContextProvider = ({ children }: PropsWithChildren<{}>) => { +export const SecretsContextProvider = (props: PropsWithChildren<{}>) => { const [secrets, setSecrets] = useState>({}); return ( - {children} + {props.children} ); }; diff --git a/plugins/scaffolder/api-report.md b/plugins/scaffolder/api-report.md index 43cc657a03..6b8d6d345f 100644 --- a/plugins/scaffolder/api-report.md +++ b/plugins/scaffolder/api-report.md @@ -460,7 +460,7 @@ export type ScaffolderTaskStatus = ScaffolderTaskStatus_2; export type ScaffolderUseTemplateSecrets = ScaffolderUseTemplateSecrets_2; // @public -export const TaskPage: ({ loadingText }: TaskPageProps) => JSX.Element; +export const TaskPage: (props: TaskPageProps) => JSX.Element; // @public export type TaskPageProps = { diff --git a/plugins/scaffolder/src/components/TaskPage/TaskPage.tsx b/plugins/scaffolder/src/components/TaskPage/TaskPage.tsx index a45f0cf413..f78d48e686 100644 --- a/plugins/scaffolder/src/components/TaskPage/TaskPage.tsx +++ b/plugins/scaffolder/src/components/TaskPage/TaskPage.tsx @@ -243,7 +243,9 @@ export type TaskPageProps = { * * @public */ -export const TaskPage = ({ loadingText }: TaskPageProps) => { +export const TaskPage = (props: TaskPageProps) => { + const { loadingText } = props; + const classes = useStyles(); const navigate = useNavigate(); const rootPath = useRouteRef(rootRouteRef); diff --git a/plugins/search-backend-module-elasticsearch/api-report.md b/plugins/search-backend-module-elasticsearch/api-report.md index 8545e3fd8f..c7add1e8cb 100644 --- a/plugins/search-backend-module-elasticsearch/api-report.md +++ b/plugins/search-backend-module-elasticsearch/api-report.md @@ -327,12 +327,9 @@ export class ElasticSearchSearchEngine implements SearchEngine { highlightOptions?: ElasticSearchHighlightOptions, ); // (undocumented) - static fromConfig({ - logger, - config, - aliasPostfix, - indexPrefix, - }: ElasticSearchOptions): Promise; + static fromConfig( + options: ElasticSearchOptions, + ): Promise; // (undocumented) getIndexer(type: string): Promise; newClient(create: (options: ElasticSearchClientOptions) => T): T; diff --git a/plugins/search-backend-module-elasticsearch/src/engines/ElasticSearchSearchEngine.ts b/plugins/search-backend-module-elasticsearch/src/engines/ElasticSearchSearchEngine.ts index c2f4224db3..25df3101de 100644 --- a/plugins/search-backend-module-elasticsearch/src/engines/ElasticSearchSearchEngine.ts +++ b/plugins/search-backend-module-elasticsearch/src/engines/ElasticSearchSearchEngine.ts @@ -138,27 +138,29 @@ export class ElasticSearchSearchEngine implements SearchEngine { }; } - static async fromConfig({ - logger, - config, - aliasPostfix = `search`, - indexPrefix = ``, - }: ElasticSearchOptions) { - const options = await createElasticSearchClientOptions( + static async fromConfig(options: ElasticSearchOptions) { + const { + logger, + config, + aliasPostfix = `search`, + indexPrefix = ``, + } = options; + + const clientOptions = await createElasticSearchClientOptions( config.getConfig('search.elasticsearch'), ); - if (options.provider === 'elastic') { + if (clientOptions.provider === 'elastic') { logger.info('Initializing Elastic.co ElasticSearch search engine.'); - } else if (options.provider === 'aws') { + } else if (clientOptions.provider === 'aws') { logger.info('Initializing AWS OpenSearch search engine.'); - } else if (options.provider === 'opensearch') { + } else if (clientOptions.provider === 'opensearch') { logger.info('Initializing OpenSearch search engine.'); } else { logger.info('Initializing ElasticSearch search engine.'); } return new ElasticSearchSearchEngine( - options, + clientOptions, aliasPostfix, indexPrefix, logger, @@ -175,12 +177,13 @@ export class ElasticSearchSearchEngine implements SearchEngine { * This need not be the same client that the engine uses internally. * * @example Instantiate an instance of an Elasticsearch client. + * * ```ts * import { isOpenSearchCompatible } from '@backstage/plugin-search-backend-module-elasticsearch'; * import { Client } from '@elastic/elasticsearch'; * * const client = searchEngine.newClient(options => { - * // This typeguard ensures options are compatible with either OpenSearch + * // This type guard ensures options are compatible with either OpenSearch * // or Elasticsearch client constructors. * if (!isOpenSearchCompatible(options)) { * return new Client(options); diff --git a/plugins/search-react/api-report.md b/plugins/search-react/api-report.md index 375af20d5c..bd8d1e0794 100644 --- a/plugins/search-react/api-report.md +++ b/plugins/search-react/api-report.md @@ -60,11 +60,9 @@ export type DefaultResultListItemProps = { }; // @public (undocumented) -export const HighlightedSearchResultText: ({ - text, - preTag, - postTag, -}: HighlightedSearchResultTextProps) => JSX.Element; +export const HighlightedSearchResultText: ( + props: HighlightedSearchResultTextProps, +) => JSX.Element; // @public export type HighlightedSearchResultTextProps = { @@ -100,14 +98,9 @@ export type SearchAutocompleteComponent =