catalog-react: mark useEntityPermission as alpha

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-02-25 15:41:53 +01:00
parent f4ca12ce01
commit e26fd1c7ab
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': minor
---
Marked `useEntityPermission` as alpha since the underlying permission framework is under active development.
+1 -1
View File
@@ -564,7 +564,7 @@ export function useEntityOwnership(): {
isOwnedEntity: (entity: Entity | EntityName) => boolean;
};
// @public
// @alpha
export function useEntityPermission(permission: Permission): {
loading: boolean;
allowed: boolean;
@@ -28,7 +28,7 @@ import { useEntity } from './useEntity';
* Note: this hook blocks the permission request until the entity has loaded in
* context. If you have the entityRef and need concurrent requests, use the
* `usePermission` hook directly.
* @public
* @alpha
*/
export function useEntityPermission(permission: Permission): {
loading: boolean;