@backstage/plugin-catalog-react 1.8.5-next.2 → 1.8.5
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 +23 -0
- package/alpha/package.json +1 -1
- package/dist/index.esm.js +13 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +19 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 1.8.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a402e1dfb9: Fixed an issue causing `EntityPage` to show an error for entities containing special characters
|
|
8
|
+
- 0b55f773a7: Removed some unused dependencies
|
|
9
|
+
- 9a1fce352e: Updated dependency `@testing-library/jest-dom` to `^6.0.0`.
|
|
10
|
+
- f95af4e540: Updated dependency `@testing-library/dom` to `^9.0.0`.
|
|
11
|
+
- 0296f272b4: The `spec.type` field in entities will now always be rendered as a string.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @backstage/integration@1.7.1
|
|
14
|
+
- @backstage/core-plugin-api@1.7.0
|
|
15
|
+
- @backstage/core-components@0.13.6
|
|
16
|
+
- @backstage/catalog-model@1.4.3
|
|
17
|
+
- @backstage/errors@1.2.3
|
|
18
|
+
- @backstage/version-bridge@1.0.6
|
|
19
|
+
- @backstage/plugin-permission-react@0.4.16
|
|
20
|
+
- @backstage/theme@0.4.3
|
|
21
|
+
- @backstage/catalog-client@1.4.5
|
|
22
|
+
- @backstage/types@1.1.1
|
|
23
|
+
- @backstage/plugin-catalog-common@1.0.17
|
|
24
|
+
- @backstage/plugin-permission-common@0.7.9
|
|
25
|
+
|
|
3
26
|
## 1.8.5-next.2
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/alpha/package.json
CHANGED
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
|
-
}), ((
|
|
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(
|
|
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 }))), !!((
|
|
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
|
-
), !!((
|
|
2146
|
+
), !!((_c = status.items) == null ? void 0 : _c.length) && /* @__PURE__ */ React.createElement(
|
|
2141
2147
|
Container,
|
|
2142
2148
|
{
|
|
2143
2149
|
title: "Status",
|