From a4a7166fd0ccb66addb80792f8c926b56050488e Mon Sep 17 00:00:00 2001 From: manusant Date: Thu, 10 Nov 2022 10:13:57 +0000 Subject: [PATCH] Cleanup exports Signed-off-by: manusant --- plugins/sonarqube/api-report.md | 15 ++++++++++++--- .../src/components/SonarQubeContentPage/index.ts | 3 ++- plugins/sonarqube/src/components/index.ts | 6 ++++-- plugins/sonarqube/src/index.ts | 15 ++------------- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/plugins/sonarqube/api-report.md b/plugins/sonarqube/api-report.md index 48cd38e97c..df9601ea8f 100644 --- a/plugins/sonarqube/api-report.md +++ b/plugins/sonarqube/api-report.md @@ -32,6 +32,17 @@ export const isSonarQubeAvailable: (entity: Entity) => boolean; // @public (undocumented) export const SONARQUBE_PROJECT_KEY_ANNOTATION = 'sonarqube.org/project-key'; +// @public (undocumented) +export const SonarQubeCard: (props: { + variant?: InfoCardVariants; + duplicationRatings?: DuplicationRating[]; +}) => JSX.Element; + +// @public (undocumented) +export const SonarQubeContentPage: ( + props: SonarQubeContentPageProps, +) => JSX.Element; + // @public (undocumented) export type SonarQubeContentPageProps = { title?: string; @@ -39,7 +50,5 @@ export type SonarQubeContentPageProps = { }; // @public (undocumented) -const sonarQubePlugin: BackstagePlugin<{}, {}, {}>; -export { sonarQubePlugin as plugin }; -export { sonarQubePlugin }; +export const sonarQubePlugin: BackstagePlugin<{}, {}, {}>; ``` diff --git a/plugins/sonarqube/src/components/SonarQubeContentPage/index.ts b/plugins/sonarqube/src/components/SonarQubeContentPage/index.ts index 27c0c59365..59327e9a88 100644 --- a/plugins/sonarqube/src/components/SonarQubeContentPage/index.ts +++ b/plugins/sonarqube/src/components/SonarQubeContentPage/index.ts @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export * from './SonarQubeContentPage'; +export { SonarQubeContentPage } from './SonarQubeContentPage'; +export type { SonarQubeContentPageProps } from './SonarQubeContentPage'; diff --git a/plugins/sonarqube/src/components/index.ts b/plugins/sonarqube/src/components/index.ts index 3edce60f37..3cb54da601 100644 --- a/plugins/sonarqube/src/components/index.ts +++ b/plugins/sonarqube/src/components/index.ts @@ -14,8 +14,10 @@ * limitations under the License. */ -export * from './SonarQubeCard'; -export * from './SonarQubeContentPage'; +export { SonarQubeCard } from './SonarQubeCard'; +export type { DuplicationRating } from './SonarQubeCard'; +export { SonarQubeContentPage } from './SonarQubeContentPage'; +export type { SonarQubeContentPageProps } from './SonarQubeContentPage'; export { isSonarQubeAvailable, SONARQUBE_PROJECT_KEY_ANNOTATION, diff --git a/plugins/sonarqube/src/index.ts b/plugins/sonarqube/src/index.ts index 9936cc04e9..30f6351d4d 100644 --- a/plugins/sonarqube/src/index.ts +++ b/plugins/sonarqube/src/index.ts @@ -21,16 +21,5 @@ * @packageDocumentation */ -export type { - DuplicationRating, - SonarQubeContentPageProps, - SONARQUBE_PROJECT_KEY_ANNOTATION, - isSonarQubeAvailable, -} from './components'; - -export { - sonarQubePlugin, - sonarQubePlugin as plugin, - EntitySonarQubeCard, - EntitySonarQubeContentPage, -} from './plugin'; +export * from './components'; +export * from './plugin';