From cd874bfaf64adaf2ff31153700f41a4d785190d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 6 Apr 2023 19:03:46 +0200 Subject: [PATCH] hide the export MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/plenty-eels-listen.md | 14 ++++---------- plugins/catalog-react/api-report.md | 9 --------- .../src/components/EntityRefLink/index.ts | 2 +- 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/.changeset/plenty-eels-listen.md b/.changeset/plenty-eels-listen.md index fd2213b7b4..6b4776f808 100644 --- a/.changeset/plenty-eels-listen.md +++ b/.changeset/plenty-eels-listen.md @@ -7,19 +7,13 @@ Attempt to load entity owner names in the EntityOwnerPicker through the `by-refs **BREAKING**: `EntityOwnerFilter` now uses the full entity ref instead of the `humanizeEntityRef`. If you rely on `EntityOwnerFilter.values` or the `queryParameters.owners` of `useEntityList`, you will need to adjust your code like the following. ```tsx -const {queryParameters: {owners}} = useEntityList(); +const { queryParameters: { owners } } = useEntityList(); // or -const {filter: {owners}} = useEntityList(); +const { filter: { owners } } = useEntityList(); // Instead of, -... -if(owners.some(ref=>ref === humanizeEntityRef(myEntity))){ - ... -} +if (owners.some(ref => ref === humanizeEntityRef(myEntity))) ... // You'll need to use, -... -if(owners.some(ref=>ref === stringifyEntityRef(myEntity))){ - ... -} +if (owners.some(ref => ref === stringifyEntityRef(myEntity))) ... ``` diff --git a/plugins/catalog-react/api-report.md b/plugins/catalog-react/api-report.md index 72b654527b..20b10f18cc 100644 --- a/plugins/catalog-react/api-report.md +++ b/plugins/catalog-react/api-report.md @@ -452,15 +452,6 @@ export function getEntitySourceLocation( scmIntegrationsApi: ScmIntegrationRegistry, ): EntitySourceLocation | undefined; -// @public -export function humanizeEntity( - entity: Entity, - opts?: { - defaultKind?: string; - defaultNamespace?: string | false; - }, -): string; - // @public (undocumented) export function humanizeEntityRef( entityRef: Entity | CompoundEntityRef, diff --git a/plugins/catalog-react/src/components/EntityRefLink/index.ts b/plugins/catalog-react/src/components/EntityRefLink/index.ts index 4d71e8b10e..50ac3d4534 100644 --- a/plugins/catalog-react/src/components/EntityRefLink/index.ts +++ b/plugins/catalog-react/src/components/EntityRefLink/index.ts @@ -18,4 +18,4 @@ export { EntityRefLink } from './EntityRefLink'; export type { EntityRefLinkProps } from './EntityRefLink'; export { EntityRefLinks } from './EntityRefLinks'; export type { EntityRefLinksProps } from './EntityRefLinks'; -export { humanizeEntityRef, humanizeEntity } from './humanize'; +export { humanizeEntityRef } from './humanize';