@backstage/plugin-catalog-react 0.0.0-nightly-20230411021817 → 0.0.0-nightly-20230412021859

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-20230411021817
3
+ ## 0.0.0-nightly-20230412021859
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -24,21 +24,59 @@
24
24
 
25
25
  - 81bee24c5de: Fixed bug in catalog filters where you could not click on the text to select a value.
26
26
  - 8e00acb28db: Small tweaks to remove warnings in the console during development (mainly focusing on techdocs)
27
+ - d1f5324dff7: Reverted the check if the selected options list is different than the query parameters list before invoking `setSelectedOptions` method. This was preventing updating list items when a query string was already present in the URL when loading the page.
27
28
  - 2898b6c8d52: Minor type tweaks for TypeScript 5.0
28
29
  - e0c6e8b9c3c: Update peer dependencies
29
30
  - Updated dependencies
30
- - @backstage/core-components@0.0.0-nightly-20230411021817
31
- - @backstage/catalog-client@0.0.0-nightly-20230411021817
32
- - @backstage/plugin-permission-common@0.0.0-nightly-20230411021817
33
- - @backstage/catalog-model@0.0.0-nightly-20230411021817
34
- - @backstage/core-plugin-api@0.0.0-nightly-20230411021817
35
- - @backstage/plugin-permission-react@0.0.0-nightly-20230411021817
36
- - @backstage/version-bridge@0.0.0-nightly-20230411021817
37
- - @backstage/integration@0.0.0-nightly-20230411021817
38
- - @backstage/theme@0.0.0-nightly-20230411021817
31
+ - @backstage/core-components@0.0.0-nightly-20230412021859
32
+ - @backstage/catalog-client@0.0.0-nightly-20230412021859
33
+ - @backstage/plugin-permission-common@0.0.0-nightly-20230412021859
34
+ - @backstage/catalog-model@0.0.0-nightly-20230412021859
35
+ - @backstage/core-plugin-api@0.0.0-nightly-20230412021859
36
+ - @backstage/plugin-permission-react@0.0.0-nightly-20230412021859
37
+ - @backstage/version-bridge@0.0.0-nightly-20230412021859
38
+ - @backstage/integration@0.0.0-nightly-20230412021859
39
+ - @backstage/theme@0.0.0-nightly-20230412021859
39
40
  - @backstage/errors@1.1.5
40
41
  - @backstage/types@1.0.2
41
- - @backstage/plugin-catalog-common@0.0.0-nightly-20230411021817
42
+ - @backstage/plugin-catalog-common@0.0.0-nightly-20230412021859
43
+
44
+ ## 1.5.0-next.3
45
+
46
+ ### Minor Changes
47
+
48
+ - a49fb39df5a: Attempt to load entity owner names in the EntityOwnerPicker through the `by-refs` endpoint. If `spec.profile.displayName` or `metadata.title` are populated, we now attempt to show those before showing the `humanizeEntityRef`'d version.
49
+
50
+ **BREAKING**: `EntityOwnerFilter` now uses the full entity ref instead of the `humanizeEntityRef`. If you rely on `EntityOwnerFilter.values` or the `queryParameters.owners` of `useEntityList`, you will need to adjust your code like the following.
51
+
52
+ ```tsx
53
+ const { queryParameters: { owners } } = useEntityList();
54
+ // or
55
+ const { filter: { owners } } = useEntityList();
56
+
57
+ // Instead of,
58
+ if (owners.some(ref => ref === humanizeEntityRef(myEntity))) ...
59
+
60
+ // You'll need to use,
61
+ if (owners.some(ref => ref === stringifyEntityRef(myEntity))) ...
62
+ ```
63
+
64
+ ### Patch Changes
65
+
66
+ - d1f5324dff7: Reverted the check if the selected options list is different than the query parameters list before invoking `setSelectedOptions` method. This was preventing updating list items when a query string was already present in the URL when loading the page.
67
+ - Updated dependencies
68
+ - @backstage/catalog-model@1.3.0-next.0
69
+ - @backstage/core-components@0.13.0-next.3
70
+ - @backstage/catalog-client@1.4.1-next.1
71
+ - @backstage/core-plugin-api@1.5.1-next.1
72
+ - @backstage/errors@1.1.5
73
+ - @backstage/integration@1.4.4-next.0
74
+ - @backstage/theme@0.2.19-next.0
75
+ - @backstage/types@1.0.2
76
+ - @backstage/version-bridge@1.0.4-next.0
77
+ - @backstage/plugin-catalog-common@1.0.13-next.1
78
+ - @backstage/plugin-permission-common@0.7.5-next.0
79
+ - @backstage/plugin-permission-react@0.4.12-next.1
42
80
 
43
81
  ## 1.4.1-next.2
44
82
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-react",
3
- "version": "0.0.0-nightly-20230411021817",
3
+ "version": "0.0.0-nightly-20230412021859",
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
@@ -8,7 +8,7 @@ import { Select, Link, Progress, ErrorPanel, ResponseErrorPanel, OverflowTooltip
8
8
  import { ANNOTATION_SOURCE_LOCATION, parseLocationRef, stringifyEntityRef, parseEntityRef, RELATION_OWNED_BY, DEFAULT_NAMESPACE, getCompoundEntityRef, isUserEntity, isGroupEntity, RELATION_PART_OF, ANNOTATION_LOCATION, ANNOTATION_ORIGIN_LOCATION } from '@backstage/catalog-model';
9
9
  import { g as getEntityRelations } from './esm/useEntity-de64059a.esm.js';
10
10
  export { A as AsyncEntityProvider, E as EntityProvider, g as getEntityRelations, a as useAsyncEntity, u as useEntity } from './esm/useEntity-de64059a.esm.js';
11
- import _, { compact, isEqual, groupBy, chunk, debounce } from 'lodash';
11
+ import { compact, isEqual, groupBy, chunk, debounce } from 'lodash';
12
12
  import qs from 'qs';
13
13
  import { useLocation, useNavigate } from 'react-router-dom';
14
14
  import useAsyncFn from 'react-use/lib/useAsyncFn';
@@ -1517,10 +1517,10 @@ function EntityAutocompletePicker(props) {
1517
1517
  queryParameters.length ? queryParameters : (_b = (_a = filters[name]) == null ? void 0 : _a.values) != null ? _b : []
1518
1518
  );
1519
1519
  useEffect(() => {
1520
- if (queryParameters.length && !_.isEqual(selectedOptions, queryParameters)) {
1520
+ if (queryParameters.length) {
1521
1521
  setSelectedOptions(queryParameters);
1522
1522
  }
1523
- }, [selectedOptions, queryParameters]);
1523
+ }, [queryParameters]);
1524
1524
  const availableOptions = Object.keys(availableValues != null ? availableValues : {});
1525
1525
  const shouldAddFilter = selectedOptions.length && availableOptions.length;
1526
1526
  useEffect(() => {