@backstage/plugin-catalog-react 1.1.0-next.2 → 1.1.0
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 +22 -0
- package/alpha/package.json +1 -1
- package/dist/index.esm.js +16 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4274844a8c: Use InfoCardVariants on custom cards variant attribute
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 0418447669: Added menu parent role for menu items accessibility
|
|
12
|
+
- b7514d19ff: Update the rendering of links in the entity inspector so that values starting with `https?://` are rendered as links as well.
|
|
13
|
+
- b880c0e092: Fix `EntityTypeFilter` so generating available types is case insensitive
|
|
14
|
+
- 57f41fb8d6: Make Menu item on filters accessible through keyboard
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/core-components@0.9.4
|
|
17
|
+
- @backstage/integration@1.2.0
|
|
18
|
+
- @backstage/core-plugin-api@1.0.2
|
|
19
|
+
- @backstage/catalog-client@1.0.2
|
|
20
|
+
- @backstage/catalog-model@1.0.2
|
|
21
|
+
- @backstage/plugin-catalog-common@1.0.2
|
|
22
|
+
- @backstage/plugin-permission-common@0.6.1
|
|
23
|
+
- @backstage/plugin-permission-react@0.4.1
|
|
24
|
+
|
|
3
25
|
## 1.1.0-next.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -512,7 +512,9 @@ function useEntityTypeFilter() {
|
|
|
512
512
|
if (loading || !kind || oldFacets === facets || !facets) {
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
515
|
-
const newTypes =
|
|
515
|
+
const newTypes = [
|
|
516
|
+
...new Set(sortBy(facets, (f) => -f.count).map((f) => f.value.toLocaleLowerCase("en-US")))
|
|
517
|
+
];
|
|
516
518
|
setAvailableTypes(newTypes);
|
|
517
519
|
const stillValidTypes = selectedTypes.filter((value) => newTypes.includes(value));
|
|
518
520
|
if (!isEqual$1(selectedTypes, stillValidTypes)) {
|
|
@@ -1369,13 +1371,23 @@ function Container(props) {
|
|
|
1369
1371
|
to: props.helpLink
|
|
1370
1372
|
})), props.children)));
|
|
1371
1373
|
}
|
|
1374
|
+
function findLink(value) {
|
|
1375
|
+
if (value.match(/^url:https?:\/\//)) {
|
|
1376
|
+
return value.slice("url:".length);
|
|
1377
|
+
}
|
|
1378
|
+
if (value.match(/^https?:\/\//)) {
|
|
1379
|
+
return value;
|
|
1380
|
+
}
|
|
1381
|
+
return void 0;
|
|
1382
|
+
}
|
|
1372
1383
|
function KeyValueListItem(props) {
|
|
1373
1384
|
const [key, value] = props.entry;
|
|
1385
|
+
const link = findLink(value);
|
|
1374
1386
|
return /* @__PURE__ */ React.createElement(ListItem, null, props.indent && /* @__PURE__ */ React.createElement(ListItemIcon, null), /* @__PURE__ */ React.createElement(ListItemText, {
|
|
1375
1387
|
primary: key,
|
|
1376
|
-
secondary:
|
|
1377
|
-
to:
|
|
1378
|
-
}, value
|
|
1388
|
+
secondary: link ? /* @__PURE__ */ React.createElement(Link, {
|
|
1389
|
+
to: link
|
|
1390
|
+
}, value) : value
|
|
1379
1391
|
}));
|
|
1380
1392
|
}
|
|
1381
1393
|
function HelpIcon(props) {
|