docs: add changeset and api-report for submission

Signed-off-by: Tim Klever <tim.v.klever@aexp.com>
This commit is contained in:
Tim Klever
2025-04-01 20:31:42 -07:00
parent 2fdc9422d3
commit 0f37fa80d2
2 changed files with 14 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': minor
---
`entityRouteParams` now also accepts entity refs, and can help with encoding the resulting parameters.
+9 -1
View File
@@ -524,12 +524,20 @@ export interface EntityRefPresentationSnapshot {
}
// @public
export function entityRouteParams(entity: Entity): {
export function entityRouteParams(
entityOrRef: Entity | CompoundEntityRef | string,
options?: EntityRouteParamsOptions,
): {
readonly kind: string;
readonly namespace: string;
readonly name: string;
};
// @public
export type EntityRouteParamsOptions = {
encodeParams?: boolean;
};
// @public
export const entityRouteRef: RouteRef<{
name: string;