feat: Export annotation helpers from allure plugin
Signed-off-by: Sergey Shevchenko <shevchenko@simple.life>
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
```
|
||||
|
||||
@@ -21,3 +21,7 @@
|
||||
*/
|
||||
|
||||
export { allurePlugin, EntityAllureReportContent } from './plugin';
|
||||
export {
|
||||
isAllureReportAvailable,
|
||||
ALLURE_PROJECT_ID_ANNOTATION,
|
||||
} from './components/annotationHelpers';
|
||||
|
||||
Reference in New Issue
Block a user