feat: Export annotation helpers from allure plugin

Signed-off-by: Sergey Shevchenko <shevchenko@simple.life>
This commit is contained in:
Sergey Shevchenko
2022-05-10 16:57:13 +03:00
parent 19a404f0a7
commit 6387b7a98a
3 changed files with 20 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-allure': patch
---
Add export for `isAllureReportAvailable` and `ALLURE_PROJECT_ID_ANNOTATION` so it can be used outside of plugin
+11
View File
@@ -6,8 +6,14 @@
/// <reference types="react" />
import { BackstagePlugin } from '@backstage/core-plugin-api';
import { Entity } from '@backstage/catalog-model';
import { RouteRef } from '@backstage/core-plugin-api';
// Warning: (ae-missing-release-tag) "ALLURE_PROJECT_ID_ANNOTATION" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const ALLURE_PROJECT_ID_ANNOTATION = 'qameta.io/allure-project';
// Warning: (ae-missing-release-tag) "allurePlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
@@ -22,4 +28,9 @@ export const allurePlugin: BackstagePlugin<
//
// @public (undocumented)
export const EntityAllureReportContent: () => JSX.Element;
// Warning: (ae-missing-release-tag) "isAllureReportAvailable" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const isAllureReportAvailable: (entity: Entity) => boolean;
```
+4
View File
@@ -21,3 +21,7 @@
*/
export { allurePlugin, EntityAllureReportContent } from './plugin';
export {
isAllureReportAvailable,
ALLURE_PROJECT_ID_ANNOTATION,
} from './components/annotationHelpers';