@backstage/plugin-catalog-react 0.0.0-nightly-20231013021322 → 0.0.0-nightly-20231014021041

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,6 +1,6 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20231013021322
3
+ ## 0.0.0-nightly-20231014021041
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,19 +8,20 @@
8
8
  - 0b55f773a751: Removed some unused dependencies
9
9
  - 9a1fce352e6a: Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
10
10
  - f95af4e5408e: Updated dependency `@testing-library/dom` to `^9.0.0`.
11
- - Updated dependencies
12
- - @backstage/integration@0.0.0-nightly-20231013021322
13
- - @backstage/core-plugin-api@0.0.0-nightly-20231013021322
14
- - @backstage/core-components@0.0.0-nightly-20231013021322
15
- - @backstage/catalog-model@0.0.0-nightly-20231013021322
16
- - @backstage/errors@0.0.0-nightly-20231013021322
17
- - @backstage/version-bridge@0.0.0-nightly-20231013021322
18
- - @backstage/plugin-permission-react@0.0.0-nightly-20231013021322
19
- - @backstage/theme@0.0.0-nightly-20231013021322
20
- - @backstage/catalog-client@0.0.0-nightly-20231013021322
11
+ - 0296f272b40d: The `spec.type` field in entities will now always be rendered as a string.
12
+ - Updated dependencies
13
+ - @backstage/integration@0.0.0-nightly-20231014021041
14
+ - @backstage/core-plugin-api@0.0.0-nightly-20231014021041
15
+ - @backstage/core-components@0.0.0-nightly-20231014021041
16
+ - @backstage/catalog-model@0.0.0-nightly-20231014021041
17
+ - @backstage/errors@0.0.0-nightly-20231014021041
18
+ - @backstage/version-bridge@0.0.0-nightly-20231014021041
19
+ - @backstage/plugin-permission-react@0.0.0-nightly-20231014021041
20
+ - @backstage/theme@0.0.0-nightly-20231014021041
21
+ - @backstage/catalog-client@0.0.0-nightly-20231014021041
21
22
  - @backstage/types@1.1.1
22
- - @backstage/plugin-catalog-common@0.0.0-nightly-20231013021322
23
- - @backstage/plugin-permission-common@0.0.0-nightly-20231013021322
23
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20231014021041
24
+ - @backstage/plugin-permission-common@0.0.0-nightly-20231014021041
24
25
 
25
26
  ## 1.8.5-next.2
26
27
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20231013021322",
3
+ "version": "0.0.0-nightly-20231014021041",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/dist/index.esm.js CHANGED
@@ -1377,7 +1377,7 @@ const useStyles$c = makeStyles(() => {
1377
1377
  });
1378
1378
  const maxTagChips = 4;
1379
1379
  const EntityPeekAheadPopover = (props) => {
1380
- var _a, _b, _c;
1380
+ var _a, _b, _c, _d;
1381
1381
  const { entityRef, children, delayTime = 500 } = props;
1382
1382
  const classes = useStyles$c();
1383
1383
  const apiHolder = useApiHolder();
@@ -1442,9 +1442,9 @@ const EntityPeekAheadPopover = (props) => {
1442
1442
  paragraph: true
1443
1443
  },
1444
1444
  entity.metadata.description
1445
- ), /* @__PURE__ */ React.createElement(Typography, null, (_a = entity.spec) == null ? void 0 : _a.type), /* @__PURE__ */ React.createElement(Box, { marginTop: "0.5em" }, (entity.metadata.tags || []).slice(0, maxTagChips).map((tag) => {
1445
+ ), /* @__PURE__ */ React.createElement(Typography, null, (_b = (_a = entity.spec) == null ? void 0 : _a.type) == null ? void 0 : _b.toString()), /* @__PURE__ */ React.createElement(Box, { marginTop: "0.5em" }, (entity.metadata.tags || []).slice(0, maxTagChips).map((tag) => {
1446
1446
  return /* @__PURE__ */ React.createElement(Chip, { key: tag, size: "small", label: tag });
1447
- }), ((_b = entity.metadata.tags) == null ? void 0 : _b.length) && ((_c = entity.metadata.tags) == null ? void 0 : _c.length) > maxTagChips && /* @__PURE__ */ React.createElement(Tooltip, { title: "Drill into the entity to see all of the tags." }, /* @__PURE__ */ React.createElement(Chip, { key: "other-tags", size: "small", label: "..." }))))), !error && entity && /* @__PURE__ */ React.createElement(CardActions, null, /* @__PURE__ */ React.createElement(React.Fragment, null, isUserEntity(entity) && /* @__PURE__ */ React.createElement(UserCardActions, { entity }), isGroupEntity(entity) && /* @__PURE__ */ React.createElement(GroupCardActions, { entity }), /* @__PURE__ */ React.createElement(EntityCardActions, { entity }))))
1447
+ }), ((_c = entity.metadata.tags) == null ? void 0 : _c.length) && ((_d = entity.metadata.tags) == null ? void 0 : _d.length) > maxTagChips && /* @__PURE__ */ React.createElement(Tooltip, { title: "Drill into the entity to see all of the tags." }, /* @__PURE__ */ React.createElement(Chip, { key: "other-tags", size: "small", label: "..." }))))), !error && entity && /* @__PURE__ */ React.createElement(CardActions, null, /* @__PURE__ */ React.createElement(React.Fragment, null, isUserEntity(entity) && /* @__PURE__ */ React.createElement(UserCardActions, { entity }), isGroupEntity(entity) && /* @__PURE__ */ React.createElement(GroupCardActions, { entity }), /* @__PURE__ */ React.createElement(EntityCardActions, { entity }))))
1448
1448
  ));
1449
1449
  };
1450
1450
 
@@ -2102,7 +2102,7 @@ const useStyles$5 = makeStyles({
2102
2102
  }
2103
2103
  });
2104
2104
  function OverviewPage(props) {
2105
- var _a, _b;
2105
+ var _a, _b, _c;
2106
2106
  const classes = useStyles$5();
2107
2107
  const {
2108
2108
  apiVersion,
@@ -2116,14 +2116,20 @@ function OverviewPage(props) {
2116
2116
  sortBy(relations, (r) => r.targetRef),
2117
2117
  "type"
2118
2118
  );
2119
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(DialogContentText, { variant: "h2" }, "Overview"), /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(Container, { title: "Identity" }, /* @__PURE__ */ React.createElement(List, { dense: true }, /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "apiVersion", secondary: apiVersion })), /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "kind", secondary: kind })), (spec == null ? void 0 : spec.type) && /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "spec.type", secondary: spec.type })), metadata.uid && /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "uid", secondary: metadata.uid })), metadata.etag && /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "etag", secondary: metadata.etag })))), /* @__PURE__ */ React.createElement(Container, { title: "Metadata" }, !!Object.keys(metadata.annotations || {}).length && /* @__PURE__ */ React.createElement(
2119
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(DialogContentText, { variant: "h2" }, "Overview"), /* @__PURE__ */ React.createElement("div", { className: classes.root }, /* @__PURE__ */ React.createElement(Container, { title: "Identity" }, /* @__PURE__ */ React.createElement(List, { dense: true }, /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "apiVersion", secondary: apiVersion })), /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "kind", secondary: kind })), (spec == null ? void 0 : spec.type) && /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(
2120
+ ListItemText,
2121
+ {
2122
+ primary: "spec.type",
2123
+ secondary: (_a = spec.type) == null ? void 0 : _a.toString()
2124
+ }
2125
+ )), metadata.uid && /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "uid", secondary: metadata.uid })), metadata.etag && /* @__PURE__ */ React.createElement(ListItem, null, /* @__PURE__ */ React.createElement(ListItemText, { primary: "etag", secondary: metadata.etag })))), /* @__PURE__ */ React.createElement(Container, { title: "Metadata" }, !!Object.keys(metadata.annotations || {}).length && /* @__PURE__ */ React.createElement(
2120
2126
  List,
2121
2127
  {
2122
2128
  dense: true,
2123
2129
  subheader: /* @__PURE__ */ React.createElement(ListSubheader, null, "Annotations", /* @__PURE__ */ React.createElement(HelpIcon, { to: "https://backstage.io/docs/features/software-catalog/well-known-annotations" }))
2124
2130
  },
2125
2131
  Object.entries(metadata.annotations).map((entry) => /* @__PURE__ */ React.createElement(KeyValueListItem, { key: entry[0], indent: true, entry }))
2126
- ), !!Object.keys(metadata.labels || {}).length && /* @__PURE__ */ React.createElement(List, { dense: true, subheader: /* @__PURE__ */ React.createElement(ListSubheader, null, "Labels") }, Object.entries(metadata.labels).map((entry) => /* @__PURE__ */ React.createElement(KeyValueListItem, { key: entry[0], indent: true, entry }))), !!((_a = metadata.tags) == null ? void 0 : _a.length) && /* @__PURE__ */ React.createElement(List, { dense: true, subheader: /* @__PURE__ */ React.createElement(ListSubheader, null, "Tags") }, metadata.tags.map((tag, index) => /* @__PURE__ */ React.createElement(ListItem, { key: `${tag}-${index}` }, /* @__PURE__ */ React.createElement(ListItemIcon, null), /* @__PURE__ */ React.createElement(ListItemText, { primary: tag }))))), !!relations.length && /* @__PURE__ */ React.createElement(
2132
+ ), !!Object.keys(metadata.labels || {}).length && /* @__PURE__ */ React.createElement(List, { dense: true, subheader: /* @__PURE__ */ React.createElement(ListSubheader, null, "Labels") }, Object.entries(metadata.labels).map((entry) => /* @__PURE__ */ React.createElement(KeyValueListItem, { key: entry[0], indent: true, entry }))), !!((_b = metadata.tags) == null ? void 0 : _b.length) && /* @__PURE__ */ React.createElement(List, { dense: true, subheader: /* @__PURE__ */ React.createElement(ListSubheader, null, "Tags") }, metadata.tags.map((tag, index) => /* @__PURE__ */ React.createElement(ListItem, { key: `${tag}-${index}` }, /* @__PURE__ */ React.createElement(ListItemIcon, null), /* @__PURE__ */ React.createElement(ListItemText, { primary: tag }))))), !!relations.length && /* @__PURE__ */ React.createElement(
2127
2133
  Container,
2128
2134
  {
2129
2135
  title: "Relations",
@@ -2137,7 +2143,7 @@ function OverviewPage(props) {
2137
2143
  }
2138
2144
  )))))
2139
2145
  )
2140
- ), !!((_b = status.items) == null ? void 0 : _b.length) && /* @__PURE__ */ React.createElement(
2146
+ ), !!((_c = status.items) == null ? void 0 : _c.length) && /* @__PURE__ */ React.createElement(
2141
2147
  Container,
2142
2148
  {
2143
2149
  title: "Status",