@backstage/plugin-catalog-react 1.10.0 → 1.10.1-next.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 +19 -0
- package/alpha/package.json +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.esm.js +18 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 1.10.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 930b5c1: Added 'root' and 'label' class keys for EntityAutocompletePicker, EntityOwnerPicker and EntityProcessingStatusPicker
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/errors@1.2.4-next.0
|
|
10
|
+
- @backstage/core-components@0.14.1-next.0
|
|
11
|
+
- @backstage/integration-react@1.1.25-next.0
|
|
12
|
+
- @backstage/plugin-permission-common@0.7.13-next.0
|
|
13
|
+
- @backstage/catalog-client@1.6.1-next.0
|
|
14
|
+
- @backstage/catalog-model@1.4.5-next.0
|
|
15
|
+
- @backstage/core-plugin-api@1.9.1-next.0
|
|
16
|
+
- @backstage/frontend-plugin-api@0.6.1-next.0
|
|
17
|
+
- @backstage/types@1.1.1
|
|
18
|
+
- @backstage/version-bridge@1.0.7
|
|
19
|
+
- @backstage/plugin-catalog-common@1.0.22-next.0
|
|
20
|
+
- @backstage/plugin-permission-react@0.4.21-next.0
|
|
21
|
+
|
|
3
22
|
## 1.10.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -730,6 +730,8 @@ type EntityAutocompletePickerProps<T extends DefaultEntityFilters = DefaultEntit
|
|
|
730
730
|
initialSelectedOptions?: string[];
|
|
731
731
|
};
|
|
732
732
|
/** @public */
|
|
733
|
+
type CatalogReactEntityAutocompletePickerClassKey = 'root' | 'label';
|
|
734
|
+
/** @public */
|
|
733
735
|
declare function EntityAutocompletePicker<T extends DefaultEntityFilters = DefaultEntityFilters, Name extends AllowedEntityFilters<T> = AllowedEntityFilters<T>>(props: EntityAutocompletePickerProps<T, Name>): React.JSX.Element | null;
|
|
734
736
|
|
|
735
737
|
/** @public */
|
|
@@ -894,6 +896,7 @@ type CatalogReactComponentsNameToClassKey = {
|
|
|
894
896
|
CatalogReactEntityTagPicker: CatalogReactEntityTagPickerClassKey;
|
|
895
897
|
CatalogReactEntityOwnerPicker: CatalogReactEntityOwnerPickerClassKey;
|
|
896
898
|
CatalogReactEntityProcessingStatusPicker: CatalogReactEntityProcessingStatusPickerClassKey;
|
|
899
|
+
CatalogReactEntityAutocompletePickerClassKey: CatalogReactEntityAutocompletePickerClassKey;
|
|
897
900
|
};
|
|
898
901
|
/** @public */
|
|
899
902
|
type BackstageOverrides = Overrides & {
|
|
@@ -921,4 +924,4 @@ type EntitySourceLocation = {
|
|
|
921
924
|
/** @public */
|
|
922
925
|
declare function getEntitySourceLocation(entity: Entity, scmIntegrationsApi: typeof scmIntegrationsApiRef.T): EntitySourceLocation | undefined;
|
|
923
926
|
|
|
924
|
-
export { AllowedEntityFilters, AsyncEntityProvider, AsyncEntityProviderProps, BackstageOverrides, CatalogFilterLayout, CatalogReactComponentsNameToClassKey, CatalogReactEntityDisplayNameClassKey, CatalogReactEntityLifecyclePickerClassKey, CatalogReactEntityNamespacePickerClassKey, CatalogReactEntityOwnerPickerClassKey, CatalogReactEntityProcessingStatusPickerClassKey, CatalogReactEntitySearchBarClassKey, CatalogReactEntityTagPickerClassKey, CatalogReactUserListPickerClassKey, DefaultEntityFilters, EntityAutocompletePicker, EntityAutocompletePickerProps, EntityDisplayName, EntityDisplayNameProps, EntityErrorFilter, EntityFilter, EntityKindFilter, EntityKindPicker, EntityKindPickerProps, EntityLifecycleFilter, EntityLifecyclePicker, EntityListContext, EntityListContextProps, EntityListProvider, EntityListProviderProps, EntityLoadingStatus, EntityNamespaceFilter, EntityNamespacePicker, EntityOrphanFilter, EntityOwnerFilter, EntityOwnerPicker, EntityOwnerPickerProps, EntityPeekAheadPopover, EntityPeekAheadPopoverProps, EntityPresentationApi, EntityProcessingStatusPicker, EntityProvider, EntityProviderProps, EntityRefLink, EntityRefLinkProps, EntityRefLinks, EntityRefLinksProps, EntityRefPresentation, EntityRefPresentationSnapshot, EntitySearchBar, EntitySourceLocation, EntityTable, EntityTableProps, EntityTagFilter, EntityTagPicker, EntityTagPickerProps, EntityTextFilter, EntityTypeFilter, EntityTypePicker, EntityTypePickerProps, EntityUserFilter, FavoriteEntity, FavoriteEntityProps, InspectEntityDialog, MissingAnnotationEmptyState, MissingAnnotationEmptyStateClassKey, MockEntityListContextProvider, MockStarredEntitiesApi, StarredEntitiesApi, UnregisterEntityDialog, UnregisterEntityDialogProps, UserListFilter, UserListFilterKind, UserListPicker, UserListPickerProps, catalogApiRef, columnFactories, defaultEntityPresentation, entityPresentationApiRef, entityRouteParams, entityRouteRef, getEntityRelations, getEntitySourceLocation, humanizeEntityRef, starredEntitiesApiRef, useAsyncEntity, useEntity, useEntityList, useEntityOwnership, useEntityPresentation, useEntityTypeFilter, useRelatedEntities, useStarredEntities, useStarredEntity };
|
|
927
|
+
export { AllowedEntityFilters, AsyncEntityProvider, AsyncEntityProviderProps, BackstageOverrides, CatalogFilterLayout, CatalogReactComponentsNameToClassKey, CatalogReactEntityAutocompletePickerClassKey, CatalogReactEntityDisplayNameClassKey, CatalogReactEntityLifecyclePickerClassKey, CatalogReactEntityNamespacePickerClassKey, CatalogReactEntityOwnerPickerClassKey, CatalogReactEntityProcessingStatusPickerClassKey, CatalogReactEntitySearchBarClassKey, CatalogReactEntityTagPickerClassKey, CatalogReactUserListPickerClassKey, DefaultEntityFilters, EntityAutocompletePicker, EntityAutocompletePickerProps, EntityDisplayName, EntityDisplayNameProps, EntityErrorFilter, EntityFilter, EntityKindFilter, EntityKindPicker, EntityKindPickerProps, EntityLifecycleFilter, EntityLifecyclePicker, EntityListContext, EntityListContextProps, EntityListProvider, EntityListProviderProps, EntityLoadingStatus, EntityNamespaceFilter, EntityNamespacePicker, EntityOrphanFilter, EntityOwnerFilter, EntityOwnerPicker, EntityOwnerPickerProps, EntityPeekAheadPopover, EntityPeekAheadPopoverProps, EntityPresentationApi, EntityProcessingStatusPicker, EntityProvider, EntityProviderProps, EntityRefLink, EntityRefLinkProps, EntityRefLinks, EntityRefLinksProps, EntityRefPresentation, EntityRefPresentationSnapshot, EntitySearchBar, EntitySourceLocation, EntityTable, EntityTableProps, EntityTagFilter, EntityTagPicker, EntityTagPickerProps, EntityTextFilter, EntityTypeFilter, EntityTypePicker, EntityTypePickerProps, EntityUserFilter, FavoriteEntity, FavoriteEntityProps, InspectEntityDialog, MissingAnnotationEmptyState, MissingAnnotationEmptyStateClassKey, MockEntityListContextProvider, MockStarredEntitiesApi, StarredEntitiesApi, UnregisterEntityDialog, UnregisterEntityDialogProps, UserListFilter, UserListFilterKind, UserListPicker, UserListPickerProps, catalogApiRef, columnFactories, defaultEntityPresentation, entityPresentationApiRef, entityRouteParams, entityRouteRef, getEntityRelations, getEntitySourceLocation, humanizeEntityRef, starredEntitiesApiRef, useAsyncEntity, useEntity, useEntityList, useEntityOwnership, useEntityPresentation, useEntityTypeFilter, useRelatedEntities, useStarredEntities, useStarredEntity };
|
package/dist/index.esm.js
CHANGED
|
@@ -1024,7 +1024,7 @@ const EntityAutocompletePickerOption = memo((props) => {
|
|
|
1024
1024
|
);
|
|
1025
1025
|
});
|
|
1026
1026
|
|
|
1027
|
-
const useStyles$
|
|
1027
|
+
const useStyles$i = makeStyles(
|
|
1028
1028
|
{
|
|
1029
1029
|
input: {}
|
|
1030
1030
|
},
|
|
@@ -1033,7 +1033,7 @@ const useStyles$h = makeStyles(
|
|
|
1033
1033
|
}
|
|
1034
1034
|
);
|
|
1035
1035
|
function EntityAutocompletePickerInput(params) {
|
|
1036
|
-
const classes = useStyles$
|
|
1036
|
+
const classes = useStyles$i();
|
|
1037
1037
|
return /* @__PURE__ */ React.createElement(
|
|
1038
1038
|
TextField,
|
|
1039
1039
|
{
|
|
@@ -1044,6 +1044,13 @@ function EntityAutocompletePickerInput(params) {
|
|
|
1044
1044
|
);
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
+
const useStyles$h = makeStyles(
|
|
1048
|
+
{
|
|
1049
|
+
root: {},
|
|
1050
|
+
label: {}
|
|
1051
|
+
},
|
|
1052
|
+
{ name: "CatalogReactEntityAutocompletePicker" }
|
|
1053
|
+
);
|
|
1047
1054
|
function EntityAutocompletePicker(props) {
|
|
1048
1055
|
var _a, _b;
|
|
1049
1056
|
const {
|
|
@@ -1055,6 +1062,7 @@ function EntityAutocompletePicker(props) {
|
|
|
1055
1062
|
InputProps,
|
|
1056
1063
|
initialSelectedOptions = []
|
|
1057
1064
|
} = props;
|
|
1065
|
+
const classes = useStyles$h();
|
|
1058
1066
|
const {
|
|
1059
1067
|
updateFilters,
|
|
1060
1068
|
filters,
|
|
@@ -1097,7 +1105,7 @@ function EntityAutocompletePicker(props) {
|
|
|
1097
1105
|
}
|
|
1098
1106
|
if (availableOptions.length <= 1)
|
|
1099
1107
|
return null;
|
|
1100
|
-
return /* @__PURE__ */ React.createElement(Box, { pb: 1, pt: 1 }, /* @__PURE__ */ React.createElement(Typography, { variant: "button", component: "label" }, label, /* @__PURE__ */ React.createElement(
|
|
1108
|
+
return /* @__PURE__ */ React.createElement(Box, { className: classes.root, pb: 1, pt: 1 }, /* @__PURE__ */ React.createElement(Typography, { className: classes.label, variant: "button", component: "label" }, label, /* @__PURE__ */ React.createElement(
|
|
1101
1109
|
Autocomplete,
|
|
1102
1110
|
{
|
|
1103
1111
|
multiple: true,
|
|
@@ -1355,6 +1363,8 @@ function useSelectedOwners({
|
|
|
1355
1363
|
|
|
1356
1364
|
const useStyles$f = makeStyles(
|
|
1357
1365
|
{
|
|
1366
|
+
root: {},
|
|
1367
|
+
label: {},
|
|
1358
1368
|
input: {},
|
|
1359
1369
|
fullWidth: { width: "100%" },
|
|
1360
1370
|
boxLabel: {
|
|
@@ -1440,7 +1450,7 @@ const EntityOwnerPicker = (props) => {
|
|
|
1440
1450
|
)) {
|
|
1441
1451
|
return null;
|
|
1442
1452
|
}
|
|
1443
|
-
return /* @__PURE__ */ React.createElement(Box, { pb: 1, pt: 1 }, /* @__PURE__ */ React.createElement(Typography, { variant: "button", component: "label" }, "Owner", /* @__PURE__ */ React.createElement(
|
|
1453
|
+
return /* @__PURE__ */ React.createElement(Box, { className: classes.root, pb: 1, pt: 1 }, /* @__PURE__ */ React.createElement(Typography, { className: classes.label, variant: "button", component: "label" }, "Owner", /* @__PURE__ */ React.createElement(
|
|
1444
1454
|
Autocomplete,
|
|
1445
1455
|
{
|
|
1446
1456
|
multiple: true,
|
|
@@ -3079,7 +3089,9 @@ const UserListPicker = (props) => {
|
|
|
3079
3089
|
|
|
3080
3090
|
const useStyles$2 = makeStyles(
|
|
3081
3091
|
{
|
|
3082
|
-
|
|
3092
|
+
root: {},
|
|
3093
|
+
input: {},
|
|
3094
|
+
label: {}
|
|
3083
3095
|
},
|
|
3084
3096
|
{
|
|
3085
3097
|
name: "CatalogReactEntityProcessingStatusPickerPicker"
|
|
@@ -3104,7 +3116,7 @@ const EntityProcessingStatusPicker = () => {
|
|
|
3104
3116
|
});
|
|
3105
3117
|
}
|
|
3106
3118
|
const availableAdvancedItems = ["Is Orphan", "Has Error"];
|
|
3107
|
-
return /* @__PURE__ */ React.createElement(Box, { pb: 1, pt: 1 }, /* @__PURE__ */ React.createElement(Typography, { variant: "button", component: "label" }, "Processing Status", /* @__PURE__ */ React.createElement(
|
|
3119
|
+
return /* @__PURE__ */ React.createElement(Box, { className: classes.root, pb: 1, pt: 1 }, /* @__PURE__ */ React.createElement(Typography, { className: classes.label, variant: "button", component: "label" }, "Processing Status", /* @__PURE__ */ React.createElement(
|
|
3108
3120
|
Autocomplete,
|
|
3109
3121
|
{
|
|
3110
3122
|
multiple: true,
|