@backstage/plugin-catalog-react 0.6.1 → 0.6.2
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 +14 -0
- package/dist/index.cjs.js +7 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f9cc2509f8: EntityTypePicker can be hidden and have an initial filter value set, similar to EntityKindPicker
|
|
8
|
+
- 10615525f3: Switch to use the json and observable types from `@backstage/types`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/errors@0.1.4
|
|
11
|
+
- @backstage/integration@0.6.9
|
|
12
|
+
- @backstage/core-components@0.7.2
|
|
13
|
+
- @backstage/catalog-model@0.9.6
|
|
14
|
+
- @backstage/core-app-api@0.1.19
|
|
15
|
+
- @backstage/core-plugin-api@0.1.12
|
|
16
|
+
|
|
3
17
|
## 0.6.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
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
|
-
|
|
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, {
|