From 9eb3729706d5a7a874fb03bb0609b98801dd591b Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 11 Jun 2021 13:16:20 +0200 Subject: [PATCH] chore: fixing api-docs generation Co-authored-by: Johan Haals Signed-off-by: blam --- packages/core-app-api/api-report.md | 9 +++++++++ packages/core-plugin-api/api-report.md | 4 ++++ .../core-plugin-api/src/extensions/componentData.tsx | 2 -- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/core-app-api/api-report.md b/packages/core-app-api/api-report.md index b85c9392d7..2110bede38 100644 --- a/packages/core-app-api/api-report.md +++ b/packages/core-app-api/api-report.md @@ -234,6 +234,15 @@ export type ErrorBoundaryFallbackProps = { resetError: () => void; }; +// @public (undocumented) +export const FeatureFlagged: ({ children, flag }: FeatureFlaggedProps) => JSX.Element | null; + +// @public (undocumented) +export type FeatureFlaggedProps = { + flag: string; + children: JSX.Element | null; +}; + // @public (undocumented) export const FlatRoutes: (props: FlatRoutesProps) => JSX.Element | null; diff --git a/packages/core-plugin-api/api-report.md b/packages/core-plugin-api/api-report.md index a6f196847a..6e8cda3d83 100644 --- a/packages/core-plugin-api/api-report.md +++ b/packages/core-plugin-api/api-report.md @@ -8,6 +8,7 @@ import { BackstageTheme } from '@backstage/theme'; import { ComponentType } from 'react'; import { Config } from '@backstage/config'; import { default as React_2 } from 'react'; +import { ReactElement } from 'react'; import { ReactNode } from 'react'; import { SvgIconProps } from '@material-ui/core'; @@ -514,6 +515,9 @@ export function useApiHolder(): ApiHolder; // @public (undocumented) export const useApp: () => AppContext; +// @public (undocumented) +export function useElementFilter(node: ReactNode, filterFn: (arg: ElementCollection) => T, dependencies?: any[]): T; + // @public (undocumented) export type UserFlags = {}; diff --git a/packages/core-plugin-api/src/extensions/componentData.tsx b/packages/core-plugin-api/src/extensions/componentData.tsx index 059b8e1304..f835ad38a8 100644 --- a/packages/core-plugin-api/src/extensions/componentData.tsx +++ b/packages/core-plugin-api/src/extensions/componentData.tsx @@ -50,8 +50,6 @@ export function attachComponentData

( } container.map.set(type, data); - - return component; } export function getComponentData(