@backstage/plugin-catalog-react 0.0.0-nightly-202192621851 → 0.0.0-nightly-2021101022158

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,15 +1,29 @@
1
1
  # @backstage/plugin-catalog-react
2
2
 
3
- ## 0.0.0-nightly-202192621851
3
+ ## 0.0.0-nightly-2021101022158
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 03b47a476d: export `loadIdentityOwnerRefs` and `loadCatalogOwnerRefs` all the way
8
+ - Updated dependencies
9
+ - @backstage/core-components@0.0.0-nightly-2021101022158
10
+ - @backstage/catalog-client@0.0.0-nightly-2021101022158
11
+ - @backstage/core-app-api@0.0.0-nightly-2021101022158
12
+ - @backstage/core-plugin-api@0.0.0-nightly-2021101022158
13
+
14
+ ## 0.6.2
15
+
16
+ ### Patch Changes
17
+
18
+ - f9cc2509f8: EntityTypePicker can be hidden and have an initial filter value set, similar to EntityKindPicker
7
19
  - 10615525f3: Switch to use the json and observable types from `@backstage/types`
8
20
  - Updated dependencies
9
- - @backstage/catalog-model@0.0.0-nightly-202192621851
10
- - @backstage/core-app-api@0.0.0-nightly-202192621851
11
- - @backstage/errors@0.0.0-nightly-202192621851
12
- - @backstage/core-plugin-api@0.0.0-nightly-202192621851
21
+ - @backstage/errors@0.1.4
22
+ - @backstage/integration@0.6.9
23
+ - @backstage/core-components@0.7.2
24
+ - @backstage/catalog-model@0.9.6
25
+ - @backstage/core-app-api@0.1.19
26
+ - @backstage/core-plugin-api@0.1.12
13
27
 
14
28
  ## 0.6.1
15
29
 
package/dist/index.cjs.js CHANGED
@@ -1185,8 +1185,9 @@ const EntityTagPicker = () => {
1185
1185
  }));
1186
1186
  };
1187
1187
 
1188
- const EntityTypePicker = () => {
1188
+ const EntityTypePicker = (props) => {
1189
1189
  var _a;
1190
+ const {hidden, initialFilter} = props;
1190
1191
  const alertApi = corePluginApi.useApi(corePluginApi.alertApiRef);
1191
1192
  const {error, availableTypes, selectedTypes, setSelectedTypes} = useEntityTypeFilter();
1192
1193
  React.useEffect(() => {
@@ -1196,7 +1197,10 @@ const EntityTypePicker = () => {
1196
1197
  severity: "error"
1197
1198
  });
1198
1199
  }
1199
- }, [error, alertApi]);
1200
+ if (initialFilter) {
1201
+ setSelectedTypes([initialFilter]);
1202
+ }
1203
+ }, [error, alertApi, initialFilter, setSelectedTypes]);
1200
1204
  if (availableTypes.length === 0 || error)
1201
1205
  return null;
1202
1206
  const items = [
@@ -1206,7 +1210,7 @@ const EntityTypePicker = () => {
1206
1210
  label: capitalize__default['default'](type)
1207
1211
  }))
1208
1212
  ];
1209
- return /* @__PURE__ */ React__default['default'].createElement(core.Box, {
1213
+ return hidden ? null : /* @__PURE__ */ React__default['default'].createElement(core.Box, {
1210
1214
  pb: 1,
1211
1215
  pt: 1
1212
1216
  }, /* @__PURE__ */ React__default['default'].createElement(coreComponents.Select, {
@@ -1623,6 +1627,8 @@ exports.getEntityMetadataViewUrl = getEntityMetadataViewUrl;
1623
1627
  exports.getEntityRelations = getEntityRelations;
1624
1628
  exports.getEntitySourceLocation = getEntitySourceLocation;
1625
1629
  exports.isOwnerOf = isOwnerOf;
1630
+ exports.loadCatalogOwnerRefs = loadCatalogOwnerRefs;
1631
+ exports.loadIdentityOwnerRefs = loadIdentityOwnerRefs;
1626
1632
  exports.reduceCatalogFilters = reduceCatalogFilters;
1627
1633
  exports.reduceEntityFilters = reduceEntityFilters;
1628
1634
  exports.rootRoute = rootRoute;