@backstage/plugin-catalog-react 0.0.0-nightly-20260306031014 → 0.0.0-nightly-20260308031310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,31 +1,32 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20260306031014
3
+ ## 0.0.0-nightly-20260308031310
4
4
 
5
5
  ### Minor Changes
6
6
 
7
7
  - 4d58894: Added `aliases` and `contentOrder` fields to `EntityContentGroupDefinition`, allowing groups to declare alias IDs and control the sort order of their content items.
8
+ - d14b6e0: Exported `useEntityRefLink` hook that returns a function for generating entity page URLs from entity references.
8
9
  - c6080eb: Added `EntityInfoCard` component to `@backstage/plugin-catalog-react` as a BUI-based card wrapper for entity page cards.
9
10
 
10
11
  ### Patch Changes
11
12
 
12
13
  - Updated dependencies
13
- - @backstage/core-compat-api@0.0.0-nightly-20260306031014
14
- - @backstage/ui@0.0.0-nightly-20260306031014
15
- - @backstage/catalog-client@0.0.0-nightly-20260306031014
16
- - @backstage/frontend-test-utils@0.0.0-nightly-20260306031014
17
- - @backstage/frontend-plugin-api@0.0.0-nightly-20260306031014
18
- - @backstage/core-plugin-api@0.0.0-nightly-20260306031014
14
+ - @backstage/core-compat-api@0.0.0-nightly-20260308031310
15
+ - @backstage/ui@0.0.0-nightly-20260308031310
16
+ - @backstage/catalog-client@0.0.0-nightly-20260308031310
17
+ - @backstage/frontend-test-utils@0.0.0-nightly-20260308031310
18
+ - @backstage/frontend-plugin-api@0.0.0-nightly-20260308031310
19
+ - @backstage/core-plugin-api@0.0.0-nightly-20260308031310
19
20
  - @backstage/catalog-model@1.7.6
20
- - @backstage/core-components@0.0.0-nightly-20260306031014
21
+ - @backstage/core-components@0.0.0-nightly-20260308031310
21
22
  - @backstage/errors@1.2.7
22
23
  - @backstage/filter-predicates@0.1.0
23
- - @backstage/integration-react@0.0.0-nightly-20260306031014
24
+ - @backstage/integration-react@0.0.0-nightly-20260308031310
24
25
  - @backstage/types@1.2.2
25
26
  - @backstage/version-bridge@1.0.12
26
27
  - @backstage/plugin-catalog-common@1.1.8
27
28
  - @backstage/plugin-permission-common@0.9.6
28
- - @backstage/plugin-permission-react@0.0.0-nightly-20260306031014
29
+ - @backstage/plugin-permission-react@0.0.0-nightly-20260308031310
29
30
 
30
31
  ## 2.1.0-next.1
31
32
 
@@ -6,6 +6,10 @@ import classNames from 'classnames';
6
6
  const useStyles = makeStyles({
7
7
  root: {
8
8
  height: "100%"
9
+ },
10
+ footer: {
11
+ display: "flex",
12
+ justifyContent: "flex-end"
9
13
  }
10
14
  });
11
15
  function EntityInfoCard(props) {
@@ -17,7 +21,7 @@ function EntityInfoCard(props) {
17
21
  headerActions && /* @__PURE__ */ jsx(Flex, { align: "center", gap: "1", children: headerActions })
18
22
  ] }) }),
19
23
  /* @__PURE__ */ jsx(CardBody, { children }),
20
- footerActions && /* @__PURE__ */ jsx(CardFooter, { children: footerActions })
24
+ footerActions && /* @__PURE__ */ jsx(CardFooter, { className: classes.footer, children: footerActions })
21
25
  ] });
22
26
  }
23
27
 
@@ -1 +1 @@
1
- {"version":3,"file":"EntityInfoCard.esm.js","sources":["../../../src/components/EntityInfoCard/EntityInfoCard.tsx"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ReactNode } from 'react';\nimport {\n Card,\n CardHeader,\n CardBody,\n CardFooter,\n Text,\n Flex,\n} from '@backstage/ui';\nimport { makeStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles({\n root: {\n height: '100%',\n },\n});\n\n/** @public */\nexport interface EntityInfoCardProps {\n title?: ReactNode;\n headerActions?: ReactNode;\n footerActions?: ReactNode;\n children?: ReactNode;\n className?: string;\n}\n\n/** @public */\nexport function EntityInfoCard(props: EntityInfoCardProps) {\n const { title, headerActions, footerActions, children, className } = props;\n const classes = useStyles();\n\n return (\n <Card className={classNames(classes.root, className)}>\n {title && (\n <CardHeader>\n <Flex justify=\"between\" align=\"center\">\n <Text as=\"h3\" variant=\"title-x-small\" weight=\"bold\">\n {title}\n </Text>\n {headerActions && (\n <Flex align=\"center\" gap=\"1\">\n {headerActions}\n </Flex>\n )}\n </Flex>\n </CardHeader>\n )}\n <CardBody>{children}</CardBody>\n {footerActions && <CardFooter>{footerActions}</CardFooter>}\n </Card>\n );\n}\n"],"names":[],"mappings":";;;;;AA4BA,MAAM,YAAY,UAAA,CAAW;AAAA,EAC3B,IAAA,EAAM;AAAA,IACJ,MAAA,EAAQ;AAAA;AAEZ,CAAC,CAAA;AAYM,SAAS,eAAe,KAAA,EAA4B;AACzD,EAAA,MAAM,EAAE,KAAA,EAAO,aAAA,EAAe,aAAA,EAAe,QAAA,EAAU,WAAU,GAAI,KAAA;AACrE,EAAA,MAAM,UAAU,SAAA,EAAU;AAE1B,EAAA,4BACG,IAAA,EAAA,EAAK,SAAA,EAAW,WAAW,OAAA,CAAQ,IAAA,EAAM,SAAS,CAAA,EAChD,QAAA,EAAA;AAAA,IAAA,KAAA,wBACE,UAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAC,QAAK,OAAA,EAAQ,SAAA,EAAU,OAAM,QAAA,EAC5B,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,QAAK,EAAA,EAAG,IAAA,EAAK,SAAQ,eAAA,EAAgB,MAAA,EAAO,QAC1C,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,MACC,iCACC,GAAA,CAAC,IAAA,EAAA,EAAK,OAAM,QAAA,EAAS,GAAA,EAAI,KACtB,QAAA,EAAA,aAAA,EACH;AAAA,KAAA,EAEJ,CAAA,EACF,CAAA;AAAA,oBAEF,GAAA,CAAC,YAAU,QAAA,EAAS,CAAA;AAAA,IACnB,aAAA,oBAAiB,GAAA,CAAC,UAAA,EAAA,EAAY,QAAA,EAAA,aAAA,EAAc;AAAA,GAAA,EAC/C,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"EntityInfoCard.esm.js","sources":["../../../src/components/EntityInfoCard/EntityInfoCard.tsx"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ReactNode } from 'react';\nimport {\n Card,\n CardHeader,\n CardBody,\n CardFooter,\n Text,\n Flex,\n} from '@backstage/ui';\nimport { makeStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\n\nconst useStyles = makeStyles({\n root: {\n height: '100%',\n },\n footer: {\n display: 'flex',\n justifyContent: 'flex-end',\n },\n});\n\n/** @public */\nexport interface EntityInfoCardProps {\n title?: ReactNode;\n headerActions?: ReactNode;\n footerActions?: ReactNode;\n children?: ReactNode;\n className?: string;\n}\n\n/** @public */\nexport function EntityInfoCard(props: EntityInfoCardProps) {\n const { title, headerActions, footerActions, children, className } = props;\n const classes = useStyles();\n\n return (\n <Card className={classNames(classes.root, className)}>\n {title && (\n <CardHeader>\n <Flex justify=\"between\" align=\"center\">\n <Text as=\"h3\" variant=\"title-x-small\" weight=\"bold\">\n {title}\n </Text>\n {headerActions && (\n <Flex align=\"center\" gap=\"1\">\n {headerActions}\n </Flex>\n )}\n </Flex>\n </CardHeader>\n )}\n <CardBody>{children}</CardBody>\n {footerActions && (\n <CardFooter className={classes.footer}>{footerActions}</CardFooter>\n )}\n </Card>\n );\n}\n"],"names":[],"mappings":";;;;;AA4BA,MAAM,YAAY,UAAA,CAAW;AAAA,EAC3B,IAAA,EAAM;AAAA,IACJ,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,OAAA,EAAS,MAAA;AAAA,IACT,cAAA,EAAgB;AAAA;AAEpB,CAAC,CAAA;AAYM,SAAS,eAAe,KAAA,EAA4B;AACzD,EAAA,MAAM,EAAE,KAAA,EAAO,aAAA,EAAe,aAAA,EAAe,QAAA,EAAU,WAAU,GAAI,KAAA;AACrE,EAAA,MAAM,UAAU,SAAA,EAAU;AAE1B,EAAA,4BACG,IAAA,EAAA,EAAK,SAAA,EAAW,WAAW,OAAA,CAAQ,IAAA,EAAM,SAAS,CAAA,EAChD,QAAA,EAAA;AAAA,IAAA,KAAA,wBACE,UAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAC,QAAK,OAAA,EAAQ,SAAA,EAAU,OAAM,QAAA,EAC5B,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,QAAK,EAAA,EAAG,IAAA,EAAK,SAAQ,eAAA,EAAgB,MAAA,EAAO,QAC1C,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,MACC,iCACC,GAAA,CAAC,IAAA,EAAA,EAAK,OAAM,QAAA,EAAS,GAAA,EAAI,KACtB,QAAA,EAAA,aAAA,EACH;AAAA,KAAA,EAEJ,CAAA,EACF,CAAA;AAAA,oBAEF,GAAA,CAAC,YAAU,QAAA,EAAS,CAAA;AAAA,IACnB,iCACC,GAAA,CAAC,UAAA,EAAA,EAAW,SAAA,EAAW,OAAA,CAAQ,QAAS,QAAA,EAAA,aAAA,EAAc;AAAA,GAAA,EAE1D,CAAA;AAEJ;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Link } from '@backstage/core-components';
3
3
  import { useRouteRef } from '@backstage/core-plugin-api';
4
- import { forwardRef } from 'react';
4
+ import { forwardRef, useCallback } from 'react';
5
5
  import { entityRouteRef, entityRouteParams } from '../../routes.esm.js';
6
6
  import { EntityDisplayName } from '../EntityDisplayName/EntityDisplayName.esm.js';
7
7
 
@@ -17,7 +17,7 @@ const EntityRefLink = forwardRef(
17
17
  disableTooltip,
18
18
  ...linkProps
19
19
  } = props;
20
- const entityRoute = useEntityRoute(props.entityRef);
20
+ const entityLink = useEntityRefLink();
21
21
  const content = children ?? title ?? /* @__PURE__ */ jsx(
22
22
  EntityDisplayName,
23
23
  {
@@ -28,14 +28,19 @@ const EntityRefLink = forwardRef(
28
28
  disableTooltip
29
29
  }
30
30
  );
31
- return /* @__PURE__ */ jsx(Link, { ...linkProps, ref, to: entityRoute, children: content });
31
+ return /* @__PURE__ */ jsx(Link, { ...linkProps, ref, to: entityLink(props.entityRef), children: content });
32
32
  }
33
33
  );
34
- function useEntityRoute(entityRef) {
34
+ function useEntityRefLink() {
35
35
  const entityRoute = useRouteRef(entityRouteRef);
36
- const routeParams = entityRouteParams(entityRef, { encodeParams: true });
37
- return entityRoute(routeParams);
36
+ return useCallback(
37
+ (entityRef) => {
38
+ const routeParams = entityRouteParams(entityRef, { encodeParams: true });
39
+ return entityRoute(routeParams);
40
+ },
41
+ [entityRoute]
42
+ );
38
43
  }
39
44
 
40
- export { EntityRefLink };
45
+ export { EntityRefLink, useEntityRefLink };
41
46
  //# sourceMappingURL=EntityRefLink.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityRefLink.esm.js","sources":["../../../src/components/EntityRefLink/EntityRefLink.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { CompoundEntityRef, Entity } from '@backstage/catalog-model';\nimport { Link, LinkProps } from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport { ReactNode, forwardRef } from 'react';\nimport { entityRouteParams, entityRouteRef } from '../../routes';\nimport { EntityDisplayName } from '../EntityDisplayName';\n\n/**\n * Props for {@link EntityRefLink}.\n *\n * @public\n */\nexport type EntityRefLinkProps = {\n entityRef: Entity | CompoundEntityRef | string;\n defaultKind?: string;\n defaultNamespace?: string;\n /** @deprecated This option should no longer be used; presentation is requested through the {@link entityPresentationApiRef} instead */\n title?: string;\n children?: ReactNode;\n hideIcon?: boolean;\n disableTooltip?: boolean;\n} & Omit<LinkProps, 'to'>;\n\n/**\n * Shows a clickable link to an entity.\n *\n * @public\n */\nexport const EntityRefLink = forwardRef<any, EntityRefLinkProps>(\n (props, ref) => {\n const {\n entityRef,\n defaultKind,\n defaultNamespace,\n title,\n children,\n hideIcon,\n disableTooltip,\n ...linkProps\n } = props;\n const entityRoute = useEntityRoute(props.entityRef);\n\n const content = children ?? title ?? (\n <EntityDisplayName\n entityRef={entityRef}\n defaultKind={defaultKind}\n defaultNamespace={defaultNamespace}\n hideIcon={hideIcon}\n disableTooltip={disableTooltip}\n />\n );\n\n return (\n <Link {...linkProps} ref={ref} to={entityRoute}>\n {content}\n </Link>\n );\n },\n) as (props: EntityRefLinkProps) => JSX.Element;\n\n// Hook that computes the route to a given entity / ref. This is a bit\n// contrived, because it tries to retain the casing of the entity name if\n// present, but not of other parts. This is in an attempt to make slightly more\n// nice-looking URLs.\nfunction useEntityRoute(\n entityRef: Entity | CompoundEntityRef | string,\n): string {\n const entityRoute = useRouteRef(entityRouteRef);\n\n const routeParams = entityRouteParams(entityRef, { encodeParams: true });\n\n return entityRoute(routeParams);\n}\n"],"names":[],"mappings":";;;;;;;AA4CO,MAAM,aAAA,GAAgB,UAAA;AAAA,EAC3B,CAAC,OAAO,GAAA,KAAQ;AACd,IAAA,MAAM;AAAA,MACJ,SAAA;AAAA,MACA,WAAA;AAAA,MACA,gBAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,MACA,cAAA;AAAA,MACA,GAAG;AAAA,KACL,GAAI,KAAA;AACJ,IAAA,MAAM,WAAA,GAAc,cAAA,CAAe,KAAA,CAAM,SAAS,CAAA;AAElD,IAAA,MAAM,OAAA,GAAU,YAAY,KAAA,oBAC1B,GAAA;AAAA,MAAC,iBAAA;AAAA,MAAA;AAAA,QACC,SAAA;AAAA,QACA,WAAA;AAAA,QACA,gBAAA;AAAA,QACA,QAAA;AAAA,QACA;AAAA;AAAA,KACF;AAGF,IAAA,2BACG,IAAA,EAAA,EAAM,GAAG,WAAW,GAAA,EAAU,EAAA,EAAI,aAChC,QAAA,EAAA,OAAA,EACH,CAAA;AAAA,EAEJ;AACF;AAMA,SAAS,eACP,SAAA,EACQ;AACR,EAAA,MAAM,WAAA,GAAc,YAAY,cAAc,CAAA;AAE9C,EAAA,MAAM,cAAc,iBAAA,CAAkB,SAAA,EAAW,EAAE,YAAA,EAAc,MAAM,CAAA;AAEvE,EAAA,OAAO,YAAY,WAAW,CAAA;AAChC;;;;"}
1
+ {"version":3,"file":"EntityRefLink.esm.js","sources":["../../../src/components/EntityRefLink/EntityRefLink.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { CompoundEntityRef, Entity } from '@backstage/catalog-model';\nimport { Link, LinkProps } from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport { ReactNode, forwardRef, useCallback } from 'react';\nimport { entityRouteParams, entityRouteRef } from '../../routes';\nimport { EntityDisplayName } from '../EntityDisplayName';\n\n/**\n * Props for {@link EntityRefLink}.\n *\n * @public\n */\nexport type EntityRefLinkProps = {\n entityRef: Entity | CompoundEntityRef | string;\n defaultKind?: string;\n defaultNamespace?: string;\n /** @deprecated This option should no longer be used; presentation is requested through the {@link entityPresentationApiRef} instead */\n title?: string;\n children?: ReactNode;\n hideIcon?: boolean;\n disableTooltip?: boolean;\n} & Omit<LinkProps, 'to'>;\n\n/**\n * Shows a clickable link to an entity.\n *\n * @public\n */\nexport const EntityRefLink = forwardRef<any, EntityRefLinkProps>(\n (props, ref) => {\n const {\n entityRef,\n defaultKind,\n defaultNamespace,\n title,\n children,\n hideIcon,\n disableTooltip,\n ...linkProps\n } = props;\n const entityLink = useEntityRefLink();\n\n const content = children ?? title ?? (\n <EntityDisplayName\n entityRef={entityRef}\n defaultKind={defaultKind}\n defaultNamespace={defaultNamespace}\n hideIcon={hideIcon}\n disableTooltip={disableTooltip}\n />\n );\n\n return (\n <Link {...linkProps} ref={ref} to={entityLink(props.entityRef)}>\n {content}\n </Link>\n );\n },\n) as (props: EntityRefLinkProps) => JSX.Element;\n\n/**\n * Returns a function that generates a route path to the given entity.\n *\n * @public\n */\nexport function useEntityRefLink(): (\n entityRef: Entity | CompoundEntityRef | string,\n) => string {\n const entityRoute = useRouteRef(entityRouteRef);\n\n return useCallback(\n (entityRef: Entity | CompoundEntityRef | string) => {\n const routeParams = entityRouteParams(entityRef, { encodeParams: true });\n return entityRoute(routeParams);\n },\n [entityRoute],\n );\n}\n"],"names":[],"mappings":";;;;;;;AA4CO,MAAM,aAAA,GAAgB,UAAA;AAAA,EAC3B,CAAC,OAAO,GAAA,KAAQ;AACd,IAAA,MAAM;AAAA,MACJ,SAAA;AAAA,MACA,WAAA;AAAA,MACA,gBAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,MACA,cAAA;AAAA,MACA,GAAG;AAAA,KACL,GAAI,KAAA;AACJ,IAAA,MAAM,aAAa,gBAAA,EAAiB;AAEpC,IAAA,MAAM,OAAA,GAAU,YAAY,KAAA,oBAC1B,GAAA;AAAA,MAAC,iBAAA;AAAA,MAAA;AAAA,QACC,SAAA;AAAA,QACA,WAAA;AAAA,QACA,gBAAA;AAAA,QACA,QAAA;AAAA,QACA;AAAA;AAAA,KACF;AAGF,IAAA,uBACE,GAAA,CAAC,IAAA,EAAA,EAAM,GAAG,SAAA,EAAW,GAAA,EAAU,IAAI,UAAA,CAAW,KAAA,CAAM,SAAS,CAAA,EAC1D,QAAA,EAAA,OAAA,EACH,CAAA;AAAA,EAEJ;AACF;AAOO,SAAS,gBAAA,GAEJ;AACV,EAAA,MAAM,WAAA,GAAc,YAAY,cAAc,CAAA;AAE9C,EAAA,OAAO,WAAA;AAAA,IACL,CAAC,SAAA,KAAmD;AAClD,MAAA,MAAM,cAAc,iBAAA,CAAkB,SAAA,EAAW,EAAE,YAAA,EAAc,MAAM,CAAA;AACvE,MAAA,OAAO,YAAY,WAAW,CAAA;AAAA,IAChC,CAAA;AAAA,IACA,CAAC,WAAW;AAAA,GACd;AACF;;;;"}
package/dist/index.d.ts CHANGED
@@ -366,6 +366,12 @@ type EntityRefLinkProps = {
366
366
  * @public
367
367
  */
368
368
  declare const EntityRefLink: (props: EntityRefLinkProps) => JSX.Element;
369
+ /**
370
+ * Returns a function that generates a route path to the given entity.
371
+ *
372
+ * @public
373
+ */
374
+ declare function useEntityRefLink(): (entityRef: Entity | CompoundEntityRef | string) => string;
369
375
 
370
376
  /**
371
377
  * Props for {@link EntityRefLink}.
@@ -1034,5 +1040,5 @@ declare function MockEntityListContextProvider<T extends DefaultEntityFilters =
1034
1040
  */
1035
1041
  declare const EntityListContext: react.Context<EntityListContextProps<any> | undefined>;
1036
1042
 
1037
- export { AsyncEntityProvider, CatalogAutocomplete, CatalogFilterLayout, DefaultFilters, EntityAutocompletePicker, EntityDisplayName, EntityErrorFilter, EntityInfoCard, EntityKindFilter, EntityKindPicker, EntityLifecycleFilter, EntityLifecyclePicker, EntityListContext, EntityListProvider, EntityNamespaceFilter, EntityNamespacePicker, EntityOrderFilter, EntityOrphanFilter, EntityOwnerFilter, EntityOwnerPicker, EntityPeekAheadPopover, EntityProcessingStatusPicker, EntityProvider, EntityRefLink, EntityRefLinks, EntitySearchBar, EntityTable, EntityTagFilter, EntityTagPicker, EntityTextFilter, EntityTypeFilter, EntityTypePicker, EntityUserFilter, FavoriteEntity, InspectEntityDialog, MissingAnnotationEmptyState, MockEntityListContextProvider, MockStarredEntitiesApi, UnregisterEntityDialog, UserListFilter, UserListPicker, catalogApiRef, columnFactories, defaultEntityPresentation, entityPresentationApiRef, entityRouteParams, entityRouteRef, getEntityRelations, getEntitySourceLocation, humanizeEntityRef, starredEntitiesApiRef, useAsyncEntity, useEntity, useEntityList, useEntityOwnership, useEntityPresentation, useEntityTypeFilter, useRelatedEntities, useStarredEntities, useStarredEntity };
1043
+ export { AsyncEntityProvider, CatalogAutocomplete, CatalogFilterLayout, DefaultFilters, EntityAutocompletePicker, EntityDisplayName, EntityErrorFilter, EntityInfoCard, EntityKindFilter, EntityKindPicker, EntityLifecycleFilter, EntityLifecyclePicker, EntityListContext, EntityListProvider, EntityNamespaceFilter, EntityNamespacePicker, EntityOrderFilter, EntityOrphanFilter, EntityOwnerFilter, EntityOwnerPicker, EntityPeekAheadPopover, EntityProcessingStatusPicker, EntityProvider, EntityRefLink, EntityRefLinks, EntitySearchBar, EntityTable, EntityTagFilter, EntityTagPicker, EntityTextFilter, EntityTypeFilter, EntityTypePicker, EntityUserFilter, FavoriteEntity, InspectEntityDialog, MissingAnnotationEmptyState, MockEntityListContextProvider, MockStarredEntitiesApi, UnregisterEntityDialog, UserListFilter, UserListPicker, catalogApiRef, columnFactories, defaultEntityPresentation, entityPresentationApiRef, entityRouteParams, entityRouteRef, getEntityRelations, getEntitySourceLocation, humanizeEntityRef, starredEntitiesApiRef, useAsyncEntity, useEntity, useEntityList, useEntityOwnership, useEntityPresentation, useEntityRefLink, useEntityTypeFilter, useRelatedEntities, useStarredEntities, useStarredEntity };
1038
1044
  export type { AllowedEntityFilters, AsyncEntityProviderProps, BackstageOverrides, CatalogAutocompleteProps, CatalogReactComponentsNameToClassKey, CatalogReactEntityAutocompletePickerClassKey, CatalogReactEntityDisplayNameClassKey, CatalogReactEntityLifecyclePickerClassKey, CatalogReactEntityNamespacePickerClassKey, CatalogReactEntityOwnerPickerClassKey, CatalogReactEntityProcessingStatusPickerClassKey, CatalogReactEntitySearchBarClassKey, CatalogReactEntityTagPickerClassKey, CatalogReactUserListPickerClassKey, DefaultEntityFilters, DefaultFiltersProps, EntityAutocompletePickerProps, EntityDisplayNameProps, EntityFilter, EntityInfoCardProps, EntityKindPickerProps, EntityListContextProps, EntityListPagination, EntityListProviderProps, EntityLoadingStatus, EntityNamespacePickerProps, EntityOwnerPickerProps, EntityPeekAheadPopoverProps, EntityPresentationApi, EntityProviderProps, EntityRefLinkProps, EntityRefLinksProps, EntityRefPresentation, EntityRefPresentationSnapshot, EntityRouteParamsOptions, EntitySourceLocation, EntityTableProps, EntityTagPickerProps, EntityTypePickerProps, FavoriteEntityProps, FixedWidthFormControlLabelClassKey, MissingAnnotationEmptyStateClassKey, PaginationMode, StarredEntitiesApi, UnregisterEntityDialogProps, UserListFilterKind, UserListPickerProps };
package/dist/index.esm.js CHANGED
@@ -12,7 +12,7 @@ export { EntityKindPicker } from './components/EntityKindPicker/EntityKindPicker
12
12
  export { EntityLifecyclePicker } from './components/EntityLifecyclePicker/EntityLifecyclePicker.esm.js';
13
13
  export { EntityOwnerPicker } from './components/EntityOwnerPicker/EntityOwnerPicker.esm.js';
14
14
  export { EntityDisplayName } from './components/EntityDisplayName/EntityDisplayName.esm.js';
15
- export { EntityRefLink } from './components/EntityRefLink/EntityRefLink.esm.js';
15
+ export { EntityRefLink, useEntityRefLink } from './components/EntityRefLink/EntityRefLink.esm.js';
16
16
  export { EntityRefLinks } from './components/EntityRefLink/EntityRefLinks.esm.js';
17
17
  export { humanizeEntityRef } from './components/EntityRefLink/humanize.esm.js';
18
18
  export { EntityPeekAheadPopover } from './components/EntityPeekAheadPopover/EntityPeekAheadPopover.esm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20260306031014",
3
+ "version": "0.0.0-nightly-20260308031310",
4
4
  "description": "A frontend library that helps other Backstage plugins interact with the catalog",
5
5
  "backstage": {
6
6
  "role": "web-library",
@@ -73,20 +73,20 @@
73
73
  "test": "backstage-cli package test"
74
74
  },
75
75
  "dependencies": {
76
- "@backstage/catalog-client": "0.0.0-nightly-20260306031014",
76
+ "@backstage/catalog-client": "0.0.0-nightly-20260308031310",
77
77
  "@backstage/catalog-model": "1.7.6",
78
- "@backstage/core-compat-api": "0.0.0-nightly-20260306031014",
79
- "@backstage/core-components": "0.0.0-nightly-20260306031014",
80
- "@backstage/core-plugin-api": "0.0.0-nightly-20260306031014",
78
+ "@backstage/core-compat-api": "0.0.0-nightly-20260308031310",
79
+ "@backstage/core-components": "0.0.0-nightly-20260308031310",
80
+ "@backstage/core-plugin-api": "0.0.0-nightly-20260308031310",
81
81
  "@backstage/errors": "1.2.7",
82
82
  "@backstage/filter-predicates": "0.1.0",
83
- "@backstage/frontend-plugin-api": "0.0.0-nightly-20260306031014",
84
- "@backstage/integration-react": "0.0.0-nightly-20260306031014",
83
+ "@backstage/frontend-plugin-api": "0.0.0-nightly-20260308031310",
84
+ "@backstage/integration-react": "0.0.0-nightly-20260308031310",
85
85
  "@backstage/plugin-catalog-common": "1.1.8",
86
86
  "@backstage/plugin-permission-common": "0.9.6",
87
- "@backstage/plugin-permission-react": "0.0.0-nightly-20260306031014",
87
+ "@backstage/plugin-permission-react": "0.0.0-nightly-20260308031310",
88
88
  "@backstage/types": "1.2.2",
89
- "@backstage/ui": "0.0.0-nightly-20260306031014",
89
+ "@backstage/ui": "0.0.0-nightly-20260308031310",
90
90
  "@backstage/version-bridge": "1.0.12",
91
91
  "@material-ui/core": "^4.12.2",
92
92
  "@material-ui/icons": "^4.9.1",
@@ -101,12 +101,12 @@
101
101
  "zen-observable": "^0.10.0"
102
102
  },
103
103
  "devDependencies": {
104
- "@backstage/cli": "0.0.0-nightly-20260306031014",
105
- "@backstage/core-app-api": "0.0.0-nightly-20260306031014",
106
- "@backstage/frontend-test-utils": "0.0.0-nightly-20260306031014",
104
+ "@backstage/cli": "0.0.0-nightly-20260308031310",
105
+ "@backstage/core-app-api": "0.0.0-nightly-20260308031310",
106
+ "@backstage/frontend-test-utils": "0.0.0-nightly-20260308031310",
107
107
  "@backstage/plugin-catalog-common": "1.1.8",
108
- "@backstage/plugin-scaffolder-common": "0.0.0-nightly-20260306031014",
109
- "@backstage/test-utils": "0.0.0-nightly-20260306031014",
108
+ "@backstage/plugin-scaffolder-common": "0.0.0-nightly-20260308031310",
109
+ "@backstage/test-utils": "0.0.0-nightly-20260308031310",
110
110
  "@testing-library/dom": "^10.0.0",
111
111
  "@testing-library/jest-dom": "^6.0.0",
112
112
  "@testing-library/react": "^16.0.0",
@@ -120,7 +120,7 @@
120
120
  "zod": "^3.25.76"
121
121
  },
122
122
  "peerDependencies": {
123
- "@backstage/frontend-test-utils": "0.0.0-nightly-20260306031014",
123
+ "@backstage/frontend-test-utils": "0.0.0-nightly-20260308031310",
124
124
  "@types/react": "^17.0.0 || ^18.0.0",
125
125
  "react": "^17.0.0 || ^18.0.0",
126
126
  "react-dom": "^17.0.0 || ^18.0.0",