From 8be435714b24d198f03de83fa75e421a3fe2b41c Mon Sep 17 00:00:00 2001 From: djamaile Date: Tue, 18 Oct 2022 16:40:37 +0200 Subject: [PATCH] fix: export props and mark component public Signed-off-by: djamaile --- plugins/org-react/api-report.md | 10 +++++++--- plugins/org-react/src/index.ts | 1 + plugins/org-react/src/plugin.ts | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/org-react/api-report.md b/plugins/org-react/api-report.md index d3db0d62c4..da164ec053 100644 --- a/plugins/org-react/api-report.md +++ b/plugins/org-react/api-report.md @@ -5,11 +5,15 @@ ```ts /// -// Warning: (ae-forgotten-export) The symbol "GroupListPickerProps" needs to be exported by the entry point index.d.ts -// Warning: (ae-missing-release-tag) "GroupListPicker" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// // @public (undocumented) export const GroupListPicker: (props: GroupListPickerProps) => JSX.Element; +// @public +export type GroupListPickerProps = { + placeholder?: string; + groupTypes?: Array; + defaultGroup?: string; +}; + // (No @packageDocumentation comment for this package) ``` diff --git a/plugins/org-react/src/index.ts b/plugins/org-react/src/index.ts index 5e834bbf2f..731702c80c 100644 --- a/plugins/org-react/src/index.ts +++ b/plugins/org-react/src/index.ts @@ -14,3 +14,4 @@ * limitations under the License. */ export { GroupListPicker } from './plugin'; +export type { GroupListPickerProps } from './components/GroupListPicker'; diff --git a/plugins/org-react/src/plugin.ts b/plugins/org-react/src/plugin.ts index bc51e3cd73..0158ff1b06 100644 --- a/plugins/org-react/src/plugin.ts +++ b/plugins/org-react/src/plugin.ts @@ -27,6 +27,7 @@ export const orgReactPlugin = createPlugin({ }, }); +/** @public */ export const GroupListPicker = orgReactPlugin.provide( createRoutableExtension({ name: 'GroupListPicker',