@backstage/plugin-catalog-react 0.0.0-nightly-20230104022659 → 0.0.0-nightly-20230105022800

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,23 +1,23 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-20230104022659
3
+ ## 0.0.0-nightly-20230105022800
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 37426f6f5e: Fixed bug in `EntityTagPicker` that filtered on unavailable tags for the selected kind.
8
8
  - Updated dependencies
9
- - @backstage/catalog-model@0.0.0-nightly-20230104022659
10
- - @backstage/catalog-client@0.0.0-nightly-20230104022659
11
- - @backstage/core-components@0.0.0-nightly-20230104022659
12
- - @backstage/core-plugin-api@0.0.0-nightly-20230104022659
9
+ - @backstage/catalog-model@0.0.0-nightly-20230105022800
10
+ - @backstage/catalog-client@0.0.0-nightly-20230105022800
11
+ - @backstage/core-components@0.0.0-nightly-20230105022800
12
+ - @backstage/core-plugin-api@0.0.0-nightly-20230105022800
13
13
  - @backstage/errors@1.1.4
14
- - @backstage/integration@0.0.0-nightly-20230104022659
14
+ - @backstage/integration@0.0.0-nightly-20230105022800
15
15
  - @backstage/theme@0.2.16
16
16
  - @backstage/types@1.0.2
17
17
  - @backstage/version-bridge@1.0.3
18
- - @backstage/plugin-catalog-common@0.0.0-nightly-20230104022659
19
- - @backstage/plugin-permission-common@0.0.0-nightly-20230104022659
20
- - @backstage/plugin-permission-react@0.0.0-nightly-20230104022659
18
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20230105022800
19
+ - @backstage/plugin-permission-common@0.0.0-nightly-20230105022800
20
+ - @backstage/plugin-permission-react@0.0.0-nightly-20230105022800
21
21
 
22
22
  ## 1.2.4-next.1
23
23
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20230104022659",
3
+ "version": "0.0.0-nightly-20230105022800",
4
4
  "main": "../dist/index.esm.js",
5
5
  "types": "../dist/index.alpha.d.ts"
6
6
  }
package/dist/index.esm.js CHANGED
@@ -338,6 +338,7 @@ class EntityTypeFilter {
338
338
  constructor(value) {
339
339
  this.value = value;
340
340
  }
341
+ // Simplify `string | string[]` for consumers, always returns an array
341
342
  getTypes() {
342
343
  return Array.isArray(this.value) ? this.value : [this.value];
343
344
  }
@@ -725,6 +726,7 @@ function useRelatedEntities(entity, relationFilter) {
725
726
  const batchedRelationsByKindAndNamespace = [];
726
727
  for (const rs of relationsByKindAndNamespace) {
727
728
  batchedRelationsByKindAndNamespace.push({
729
+ // All relations in a group have the same kind and namespace, so its arbitrary which we pick
728
730
  kind: rs[0].target.kind,
729
731
  namespace: rs[0].target.namespace,
730
732
  nameBatches: chunk(
@@ -1337,6 +1339,7 @@ const EntityTable = (props) => {
1337
1339
  style: tableStyle,
1338
1340
  emptyContent: emptyContent && /* @__PURE__ */ React.createElement("div", { className: classes.empty }, emptyContent),
1339
1341
  options: {
1342
+ // TODO: Toolbar padding if off compared to other cards, should be: padding: 16px 24px;
1340
1343
  search: false,
1341
1344
  paging: false,
1342
1345
  actionsColumnIndex: -1,
@@ -2248,7 +2251,8 @@ const UserListPicker = (props) => {
2248
2251
  const filterGroups = getFilterGroups(orgName).map((filterGroup) => ({
2249
2252
  ...filterGroup,
2250
2253
  items: filterGroup.items.filter(
2251
- ({ id }) => ["group", "user"].some((kind) => kind === kindParameter) ? userAndGroupFilterIds.includes(id) : !availableFilters || availableFilters.includes(id)
2254
+ ({ id }) => // TODO: avoid hardcoding kinds here
2255
+ ["group", "user"].some((kind) => kind === kindParameter) ? userAndGroupFilterIds.includes(id) : !availableFilters || availableFilters.includes(id)
2252
2256
  )
2253
2257
  })).filter(({ items }) => !!items.length);
2254
2258
  const { isStarredEntity } = useStarredEntities();