From 84c03b1fe35ade57757c852e3af157821adb9673 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Sun, 11 Jun 2023 23:57:27 +0200 Subject: [PATCH] catalog-react: api report Signed-off-by: Vincenzo Scamporlino --- plugins/catalog-react/api-report.md | 9 ++++++++- .../components/EntityOwnerPicker/EntityOwnerPicker.tsx | 3 +++ .../src/components/EntityOwnerPicker/index.ts | 5 ++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/plugins/catalog-react/api-report.md b/plugins/catalog-react/api-report.md index 2fab514de1..e9acfa76ce 100644 --- a/plugins/catalog-react/api-report.md +++ b/plugins/catalog-react/api-report.md @@ -266,7 +266,14 @@ export class EntityOwnerFilter implements EntityFilter { } // @public (undocumented) -export const EntityOwnerPicker: () => JSX.Element | null; +export const EntityOwnerPicker: ( + props?: EntityOwnerPickerProps, +) => JSX.Element | null; + +// @public (undocumented) +export type EntityOwnerPickerProps = { + mode?: 'owners-only' | 'all'; +}; // @public export const EntityPeekAheadPopover: ( diff --git a/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx b/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx index f894368a4a..47e9689004 100644 --- a/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx +++ b/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx @@ -55,6 +55,9 @@ const useStyles = makeStyles( const icon = ; const checkedIcon = ; +/** + * @public + */ export type EntityOwnerPickerProps = { mode?: 'owners-only' | 'all'; }; diff --git a/plugins/catalog-react/src/components/EntityOwnerPicker/index.ts b/plugins/catalog-react/src/components/EntityOwnerPicker/index.ts index c20db945f7..8685d838cd 100644 --- a/plugins/catalog-react/src/components/EntityOwnerPicker/index.ts +++ b/plugins/catalog-react/src/components/EntityOwnerPicker/index.ts @@ -15,4 +15,7 @@ */ export { EntityOwnerPicker } from './EntityOwnerPicker'; -export type { CatalogReactEntityOwnerPickerClassKey } from './EntityOwnerPicker'; +export type { + CatalogReactEntityOwnerPickerClassKey, + EntityOwnerPickerProps, +} from './EntityOwnerPicker';