@backstage/plugin-catalog 0.7.7 → 0.7.10

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/esm/{index-09f72bec.esm.js → index-1d9c4228.esm.js} +2 -2
  3. package/dist/esm/{index-09f72bec.esm.js.map → index-1d9c4228.esm.js.map} +1 -1
  4. package/dist/esm/{index-36778da3.esm.js → index-57f985a3.esm.js} +3 -2
  5. package/dist/esm/index-57f985a3.esm.js.map +1 -0
  6. package/dist/esm/index-5f548c06.esm.js +6 -0
  7. package/dist/esm/index-5f548c06.esm.js.map +1 -0
  8. package/dist/esm/{index-f4427460.esm.js → index-76b6bb58.esm.js} +2 -2
  9. package/dist/esm/{index-f4427460.esm.js.map → index-76b6bb58.esm.js.map} +1 -1
  10. package/dist/esm/{index-766926dc.esm.js → index-9e441058.esm.js} +38 -53
  11. package/dist/esm/index-9e441058.esm.js.map +1 -0
  12. package/dist/esm/{index-d9ca5a48.esm.js → index-a41d9b20.esm.js} +3 -2
  13. package/dist/esm/index-a41d9b20.esm.js.map +1 -0
  14. package/dist/esm/{index-0d1fd1c3.esm.js → index-acc2d5cf.esm.js} +2 -2
  15. package/dist/esm/{index-0d1fd1c3.esm.js.map → index-acc2d5cf.esm.js.map} +1 -1
  16. package/dist/esm/{index-a83cc17f.esm.js → index-ae83ecd3.esm.js} +2 -2
  17. package/dist/esm/{index-a83cc17f.esm.js.map → index-ae83ecd3.esm.js.map} +1 -1
  18. package/dist/esm/{index-ca3eb997.esm.js → index-dd3d0aa1.esm.js} +2 -2
  19. package/dist/esm/{index-ca3eb997.esm.js.map → index-dd3d0aa1.esm.js.map} +1 -1
  20. package/dist/esm/{index-6cad9618.esm.js → index-e48f93af.esm.js} +2 -2
  21. package/dist/esm/{index-6cad9618.esm.js.map → index-e48f93af.esm.js.map} +1 -1
  22. package/dist/esm/{index-45f1acd4.esm.js → index-f38c05cb.esm.js} +2 -2
  23. package/dist/esm/{index-45f1acd4.esm.js.map → index-f38c05cb.esm.js.map} +1 -1
  24. package/dist/esm/{presets-42c2cb51.esm.js → presets-711f07f8.esm.js} +13 -12
  25. package/dist/esm/presets-711f07f8.esm.js.map +1 -0
  26. package/dist/index.d.ts +17 -1
  27. package/dist/index.esm.js +2 -1
  28. package/dist/index.esm.js.map +1 -1
  29. package/package.json +15 -13
  30. package/dist/esm/index-36778da3.esm.js.map +0 -1
  31. package/dist/esm/index-766926dc.esm.js.map +0 -1
  32. package/dist/esm/index-d9ca5a48.esm.js.map +0 -1
  33. package/dist/esm/presets-42c2cb51.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
+ ## 0.7.10
4
+
5
+ ### Patch Changes
6
+
7
+ - aac316279f: Deprecated `EntitySystemDiagramCard`
8
+ `EntitySystemDiagramCard` is replaced by `EntityCatalogGraphCard` which is imported from `@backstage/plugin-catalog-graph`. This component will be removed in an upcoming release
9
+ - Updated dependencies
10
+ - @backstage/core-components@0.8.6
11
+
12
+ ## 0.7.9
13
+
14
+ ### Patch Changes
15
+
16
+ - 7ba416be78: **@backstage/plugin-user-settings:** Hide Header on mobile screens to improve the UI & give more space to the content. Furthermore, the "Pin Sidebar" setting is removed on mobile screens, as the mobile sidebar is always pinned to the bottom.
17
+
18
+ **Other plugins:** Smaller style adjustments across plugins to improve the UI on mobile devices.
19
+
20
+ - 51fbedc445: Migrated usage of deprecated `IdentityApi` methods.
21
+ - c54c0d9d10: Add permission check to unregister entity button
22
+
23
+ If the permissions framework is disabled, this change should have no effect. If the permission framework is enabled, the unregister entity button will be disabled for those who do not have access to the `catalogEntityDeletePermission` as specified in your permission policy.
24
+
25
+ - 61ded2a863: Export the `RelatedEntitiesCard` component which is helpful in case you want to model custom relations between entities
26
+ - 2b27e49eb1: Internal update to match status field changes in `@backstage/catalog-model`.
27
+ - Updated dependencies
28
+ - @backstage/core-components@0.8.5
29
+ - @backstage/core-plugin-api@0.6.0
30
+ - @backstage/plugin-catalog-react@0.6.12
31
+ - @backstage/plugin-catalog-common@0.1.1
32
+ - @backstage/catalog-model@0.9.10
33
+ - @backstage/catalog-client@0.5.5
34
+ - @backstage/integration-react@0.1.19
35
+
36
+ ## 0.7.9-next.0
37
+
38
+ ### Patch Changes
39
+
40
+ - 7ba416be78: **@backstage/plugin-user-settings:** Hide Header on mobile screens to improve the UI & give more space to the content. Furthermore, the "Pin Sidebar" setting is removed on mobile screens, as the mobile sidebar is always pinned to the bottom.
41
+
42
+ **Other plugins:** Smaller style adjustments across plugins to improve the UI on mobile devices.
43
+
44
+ - 51fbedc445: Migrated usage of deprecated `IdentityApi` methods.
45
+ - 2b27e49eb1: Internal update to match status field changes in `@backstage/catalog-model`.
46
+ - Updated dependencies
47
+ - @backstage/core-components@0.8.5-next.0
48
+ - @backstage/core-plugin-api@0.6.0-next.0
49
+ - @backstage/plugin-catalog-react@0.6.12-next.0
50
+ - @backstage/catalog-model@0.9.10-next.0
51
+ - @backstage/integration-react@0.1.19-next.0
52
+ - @backstage/catalog-client@0.5.5-next.0
53
+
54
+ ## 0.7.8
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies
59
+ - @backstage/core-components@0.8.4
60
+ - @backstage/core-plugin-api@0.5.0
61
+ - @backstage/plugin-catalog-react@0.6.11
62
+ - @backstage/errors@0.2.0
63
+ - @backstage/catalog-client@0.5.4
64
+ - @backstage/catalog-model@0.9.9
65
+ - @backstage/integration-react@0.1.18
66
+
3
67
  ## 0.7.7
4
68
 
5
69
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { RELATION_DEPENDS_ON } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, r as resourceEntityColumns, d as componentEntityHelpLink, f as asResourceEntities } from './presets-42c2cb51.esm.js';
3
+ import { R as RelatedEntitiesCard, r as resourceEntityColumns, d as componentEntityHelpLink, f as asResourceEntities } from './presets-711f07f8.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -19,4 +19,4 @@ const DependsOnResourcesCard = ({ variant = "gridItem" }) => {
19
19
  };
20
20
 
21
21
  export { DependsOnResourcesCard };
22
- //# sourceMappingURL=index-09f72bec.esm.js.map
22
+ //# sourceMappingURL=index-1d9c4228.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-09f72bec.esm.js","sources":["../../src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RELATION_DEPENDS_ON } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const DependsOnResourcesCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Depends on resources\"\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={resourceEntityColumns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,yBAAyB,CAAC,EAAE,UAAU,iBAAwB;AACzE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
1
+ {"version":3,"file":"index-1d9c4228.esm.js","sources":["../../src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RELATION_DEPENDS_ON } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const DependsOnResourcesCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Depends on resources\"\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={resourceEntityColumns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,yBAAyB,CAAC,EAAE,UAAU,iBAAwB;AACzE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
@@ -1,4 +1,4 @@
1
- export { A as AboutCard, a as AboutContent, b as AboutField } from './index-766926dc.esm.js';
1
+ export { A as AboutCard, a as AboutContent, b as AboutField } from './index-9e441058.esm.js';
2
2
  import '@backstage/catalog-model';
3
3
  import '@backstage/core-components';
4
4
  import '@backstage/core-plugin-api';
@@ -16,10 +16,11 @@ import 'react-router';
16
16
  import '@material-ui/core/styles';
17
17
  import '@material-ui/icons/Cancel';
18
18
  import '@material-ui/icons/MoreVert';
19
+ import '@backstage/plugin-catalog-common';
19
20
  import '@backstage/errors';
20
21
  import '@backstage/catalog-client';
21
22
  import 'react-use/lib/useAsync';
22
23
  import 'react-helmet';
23
24
  import '@material-ui/icons/FilterList';
24
25
  import '../components/EntityNotFound/Illo/illo.svg';
25
- //# sourceMappingURL=index-36778da3.esm.js.map
26
+ //# sourceMappingURL=index-57f985a3.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-57f985a3.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ export { R as RelatedEntitiesCard, e as asComponentEntities, f as asResourceEntities, a as asSystemEntities, c as componentEntityColumns, d as componentEntityHelpLink, r as resourceEntityColumns, g as resourceEntityHelpLink, s as systemEntityColumns, b as systemEntityHelpLink } from './presets-711f07f8.esm.js';
2
+ import '@material-ui/core';
3
+ import '@backstage/plugin-catalog-react';
4
+ import 'react';
5
+ import '@backstage/core-components';
6
+ //# sourceMappingURL=index-5f548c06.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-5f548c06.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,6 +1,6 @@
1
1
  import { RELATION_DEPENDENCY_OF } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-42c2cb51.esm.js';
3
+ import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-711f07f8.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
@@ -22,4 +22,4 @@ const DependencyOfComponentsCard = ({
22
22
  };
23
23
 
24
24
  export { DependencyOfComponentsCard };
25
- //# sourceMappingURL=index-f4427460.esm.js.map
25
+ //# sourceMappingURL=index-76b6bb58.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-f4427460.esm.js","sources":["../../src/components/DependencyOfComponentsCard/DependencyOfComponentsCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RELATION_DEPENDENCY_OF } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n title?: string;\n};\n\nexport const DependencyOfComponentsCard = ({\n variant = 'gridItem',\n title = 'Dependency of components',\n}: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Component\"\n relationType={RELATION_DEPENDENCY_OF}\n columns={componentEntityColumns}\n emptyMessage=\"No component depends on this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA8Ba,6BAA6B,CAAC;AAAA,EACzC,UAAU;AAAA,EACV,QAAQ;AAAA,MACG;AACX,6CACG,qBAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
1
+ {"version":3,"file":"index-76b6bb58.esm.js","sources":["../../src/components/DependencyOfComponentsCard/DependencyOfComponentsCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RELATION_DEPENDENCY_OF } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n title?: string;\n};\n\nexport const DependencyOfComponentsCard = ({\n variant = 'gridItem',\n title = 'Dependency of components',\n}: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Component\"\n relationType={RELATION_DEPENDENCY_OF}\n columns={componentEntityColumns}\n emptyMessage=\"No component depends on this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA8Ba,6BAA6B,CAAC;AAAA,EACzC,UAAU;AAAA,EACV,QAAQ;AAAA,MACG;AACX,6CACG,qBAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
@@ -2,7 +2,7 @@ import { RELATION_PART_OF, RELATION_OWNED_BY, ENTITY_DEFAULT_NAMESPACE, LOCATION
2
2
  import { Link, HeaderIconLinkRow, OverflowTooltip, WarningPanel, CodeSnippet, Table, Page, Header, Progress, RoutedTabs, Content, HeaderLabel, ResponseErrorPanel, HeaderTabs, PageWithHeader, ContentHeader, CreateButton, SupportButton } from '@backstage/core-components';
3
3
  import { createExternalRouteRef, useElementFilter, useApi, alertApiRef, useRouteRef, attachComponentData, useApiHolder, configApiRef, createPlugin, createApiFactory, discoveryApiRef, fetchApiRef, storageApiRef, createRoutableExtension, createComponentExtension } from '@backstage/core-plugin-api';
4
4
  import { scmIntegrationsApiRef, ScmIntegrationIcon } from '@backstage/integration-react';
5
- import { getEntityRelations, EntityRefLinks, useEntity, catalogApiRef, getEntitySourceLocation, getEntityMetadataEditUrl, useEntityKinds, useEntityListProvider, EntityKindFilter, formatEntityRefTitle, EntityRefLink, useStarredEntities, getEntityMetadataViewUrl, favoriteEntityIcon, favoriteEntityTooltip, useEntityCompoundName, EntityContext, UnregisterEntityDialog, FavoriteEntity, catalogRouteRef, EntityListProvider, EntityTypePicker, UserListPicker, EntityOwnerPicker, EntityLifecyclePicker, EntityTagPicker, AsyncEntityProvider, useEntityFromUrl, starredEntitiesApiRef, DefaultStarredEntitiesApi, entityRouteRef } from '@backstage/plugin-catalog-react';
5
+ import { getEntityRelations, EntityRefLinks, useEntity, catalogApiRef, getEntitySourceLocation, getEntityMetadataEditUrl, useEntityKinds, useEntityListProvider, EntityKindFilter, formatEntityRefTitle, EntityRefLink, useStarredEntities, getEntityMetadataViewUrl, favoriteEntityIcon, favoriteEntityTooltip, useEntityPermission, useEntityCompoundName, EntityContext, UnregisterEntityDialog, FavoriteEntity, catalogRouteRef, EntityListProvider, EntityTypePicker, UserListPicker, EntityOwnerPicker, EntityLifecyclePicker, EntityTagPicker, AsyncEntityProvider, useEntityFromUrl, starredEntitiesApiRef, DefaultStarredEntitiesApi, entityRouteRef } from '@backstage/plugin-catalog-react';
6
6
  import { makeStyles, Typography, Grid, Chip, Card, CardHeader, IconButton, Divider, CardContent, createStyles, capitalize, Select, InputBase, MenuItem, ListItem, ListItemText, Box, ListItemIcon, Popover, MenuList, Dialog, DialogTitle, DialogActions, Button, useMediaQuery, useTheme, Drawer } from '@material-ui/core';
7
7
  import CachedIcon from '@material-ui/icons/Cached';
8
8
  import DocsIcon from '@material-ui/icons/Description';
@@ -15,6 +15,7 @@ import { useNavigate, useParams, Navigate, matchRoutes, useRoutes, useOutlet, Ro
15
15
  import { makeStyles as makeStyles$1 } from '@material-ui/core/styles';
16
16
  import Cancel from '@material-ui/icons/Cancel';
17
17
  import MoreVert from '@material-ui/icons/MoreVert';
18
+ import { catalogEntityDeletePermission } from '@backstage/plugin-catalog-common';
18
19
  import { assertError } from '@backstage/errors';
19
20
  import { ENTITY_STATUS_CATALOG_PROCESSING_TYPE, CatalogClient } from '@backstage/catalog-client';
20
21
  import useAsync from 'react-use/lib/useAsync';
@@ -28,64 +29,40 @@ class CatalogClientWrapper {
28
29
  this.identityApi = options.identityApi;
29
30
  }
30
31
  async getLocationById(id, options) {
31
- var _a;
32
- return await this.client.getLocationById(id, {
33
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
34
- });
32
+ return await this.client.getLocationById(id, await this.getCredentials(options));
35
33
  }
36
34
  async getEntities(request, options) {
37
- var _a;
38
- return await this.client.getEntities(request, {
39
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
40
- });
35
+ return await this.client.getEntities(request, await this.getCredentials(options));
41
36
  }
42
37
  async getEntityByName(compoundName, options) {
43
- var _a;
44
- return await this.client.getEntityByName(compoundName, {
45
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
46
- });
38
+ return await this.client.getEntityByName(compoundName, await this.getCredentials(options));
47
39
  }
48
40
  async addLocation(request, options) {
49
- var _a;
50
- return await this.client.addLocation(request, {
51
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
52
- });
41
+ return await this.client.addLocation(request, await this.getCredentials(options));
53
42
  }
54
43
  async getOriginLocationByEntity(entity, options) {
55
- var _a;
56
- return await this.client.getOriginLocationByEntity(entity, {
57
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
58
- });
44
+ return await this.client.getOriginLocationByEntity(entity, await this.getCredentials(options));
59
45
  }
60
46
  async getLocationByEntity(entity, options) {
61
- var _a;
62
- return await this.client.getLocationByEntity(entity, {
63
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
64
- });
47
+ return await this.client.getLocationByEntity(entity, await this.getCredentials(options));
65
48
  }
66
49
  async removeLocationById(id, options) {
67
- var _a;
68
- return await this.client.removeLocationById(id, {
69
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
70
- });
50
+ return await this.client.removeLocationById(id, await this.getCredentials(options));
71
51
  }
72
52
  async removeEntityByUid(uid, options) {
73
- var _a;
74
- return await this.client.removeEntityByUid(uid, {
75
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
76
- });
53
+ return await this.client.removeEntityByUid(uid, await this.getCredentials(options));
77
54
  }
78
55
  async refreshEntity(entityRef, options) {
79
- var _a;
80
- return await this.client.refreshEntity(entityRef, {
81
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
82
- });
56
+ return await this.client.refreshEntity(entityRef, await this.getCredentials(options));
83
57
  }
84
58
  async getEntityAncestors(request, options) {
85
- var _a;
86
- return await this.client.getEntityAncestors(request, {
87
- token: (_a = options == null ? void 0 : options.token) != null ? _a : await this.identityApi.getIdToken()
88
- });
59
+ return await this.client.getEntityAncestors(request, await this.getCredentials(options));
60
+ }
61
+ async getCredentials(options) {
62
+ if (options == null ? void 0 : options.token) {
63
+ return { token: options == null ? void 0 : options.token };
64
+ }
65
+ return this.identityApi.getCredentials();
89
66
  }
90
67
  }
91
68
 
@@ -344,6 +321,7 @@ const useStyles$3 = makeStyles({
344
321
  },
345
322
  itemText: {
346
323
  width: "100%",
324
+ wordBreak: "break-all",
347
325
  marginBottom: "1rem"
348
326
  }
349
327
  });
@@ -593,6 +571,7 @@ const EntityContextMenu = ({
593
571
  var _a;
594
572
  const [anchorEl, setAnchorEl] = useState();
595
573
  const classes = useStyles$2();
574
+ const unregisterPermission = useEntityPermission(catalogEntityDeletePermission);
596
575
  const onOpen = (event) => {
597
576
  setAnchorEl(event.currentTarget);
598
577
  };
@@ -615,7 +594,7 @@ const EntityContextMenu = ({
615
594
  key: "the divider is here!"
616
595
  })
617
596
  ];
618
- const disableUnregister = (_a = UNSTABLE_contextMenuOptions == null ? void 0 : UNSTABLE_contextMenuOptions.disableUnregister) != null ? _a : false;
597
+ const disableUnregister = (_a = !unregisterPermission.allowed || (UNSTABLE_contextMenuOptions == null ? void 0 : UNSTABLE_contextMenuOptions.disableUnregister)) != null ? _a : false;
619
598
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(IconButton, {
620
599
  "aria-label": "more",
621
600
  "aria-controls": "long-menu",
@@ -1295,7 +1274,7 @@ const catalogPlugin = createPlugin({
1295
1274
  });
1296
1275
  const CatalogIndexPage = catalogPlugin.provide(createRoutableExtension({
1297
1276
  name: "CatalogIndexPage",
1298
- component: () => import('./index-d9ca5a48.esm.js').then((m) => m.CatalogPage),
1277
+ component: () => import('./index-a41d9b20.esm.js').then((m) => m.CatalogPage),
1299
1278
  mountPoint: catalogRouteRef
1300
1279
  }));
1301
1280
  const CatalogEntityPage = catalogPlugin.provide(createRoutableExtension({
@@ -1306,7 +1285,7 @@ const CatalogEntityPage = catalogPlugin.provide(createRoutableExtension({
1306
1285
  const EntityAboutCard = catalogPlugin.provide(createComponentExtension({
1307
1286
  name: "EntityAboutCard",
1308
1287
  component: {
1309
- lazy: () => import('./index-36778da3.esm.js').then((m) => m.AboutCard)
1288
+ lazy: () => import('./index-57f985a3.esm.js').then((m) => m.AboutCard)
1310
1289
  }
1311
1290
  }));
1312
1291
  const EntityLinksCard = catalogPlugin.provide(createComponentExtension({
@@ -1318,43 +1297,43 @@ const EntityLinksCard = catalogPlugin.provide(createComponentExtension({
1318
1297
  const EntityHasSystemsCard = catalogPlugin.provide(createComponentExtension({
1319
1298
  name: "EntityHasSystemsCard",
1320
1299
  component: {
1321
- lazy: () => import('./index-0d1fd1c3.esm.js').then((m) => m.HasSystemsCard)
1300
+ lazy: () => import('./index-acc2d5cf.esm.js').then((m) => m.HasSystemsCard)
1322
1301
  }
1323
1302
  }));
1324
1303
  const EntityHasComponentsCard = catalogPlugin.provide(createComponentExtension({
1325
1304
  name: "EntityHasComponentsCard",
1326
1305
  component: {
1327
- lazy: () => import('./index-45f1acd4.esm.js').then((m) => m.HasComponentsCard)
1306
+ lazy: () => import('./index-f38c05cb.esm.js').then((m) => m.HasComponentsCard)
1328
1307
  }
1329
1308
  }));
1330
1309
  const EntityHasSubcomponentsCard = catalogPlugin.provide(createComponentExtension({
1331
1310
  name: "EntityHasSubcomponentsCard",
1332
1311
  component: {
1333
- lazy: () => import('./index-ca3eb997.esm.js').then((m) => m.HasSubcomponentsCard)
1312
+ lazy: () => import('./index-dd3d0aa1.esm.js').then((m) => m.HasSubcomponentsCard)
1334
1313
  }
1335
1314
  }));
1336
1315
  const EntityHasResourcesCard = catalogPlugin.provide(createComponentExtension({
1337
1316
  name: "EntityHasResourcesCard",
1338
1317
  component: {
1339
- lazy: () => import('./index-a83cc17f.esm.js').then((m) => m.HasResourcesCard)
1318
+ lazy: () => import('./index-ae83ecd3.esm.js').then((m) => m.HasResourcesCard)
1340
1319
  }
1341
1320
  }));
1342
1321
  const EntityDependsOnComponentsCard = catalogPlugin.provide(createComponentExtension({
1343
1322
  name: "EntityDependsOnComponentsCard",
1344
1323
  component: {
1345
- lazy: () => import('./index-6cad9618.esm.js').then((m) => m.DependsOnComponentsCard)
1324
+ lazy: () => import('./index-e48f93af.esm.js').then((m) => m.DependsOnComponentsCard)
1346
1325
  }
1347
1326
  }));
1348
1327
  const EntityDependencyOfComponentsCard = catalogPlugin.provide(createComponentExtension({
1349
1328
  name: "EntityDependencyOfComponentsCard",
1350
1329
  component: {
1351
- lazy: () => import('./index-f4427460.esm.js').then((m) => m.DependencyOfComponentsCard)
1330
+ lazy: () => import('./index-76b6bb58.esm.js').then((m) => m.DependencyOfComponentsCard)
1352
1331
  }
1353
1332
  }));
1354
1333
  const EntityDependsOnResourcesCard = catalogPlugin.provide(createComponentExtension({
1355
1334
  name: "EntityDependsOnResourcesCard",
1356
1335
  component: {
1357
- lazy: () => import('./index-09f72bec.esm.js').then((m) => m.DependsOnResourcesCard)
1336
+ lazy: () => import('./index-1d9c4228.esm.js').then((m) => m.DependsOnResourcesCard)
1358
1337
  }
1359
1338
  }));
1360
1339
  const EntitySystemDiagramCard = catalogPlugin.provide(createComponentExtension({
@@ -1363,6 +1342,12 @@ const EntitySystemDiagramCard = catalogPlugin.provide(createComponentExtension({
1363
1342
  lazy: () => import('./index-d363820f.esm.js').then((m) => m.SystemDiagramCard)
1364
1343
  }
1365
1344
  }));
1345
+ const RelatedEntitiesCard = catalogPlugin.provide(createComponentExtension({
1346
+ name: "RelatedEntitiesCard",
1347
+ component: {
1348
+ lazy: () => import('./index-5f548c06.esm.js').then((m) => m.RelatedEntitiesCard)
1349
+ }
1350
+ }));
1366
1351
 
1367
- export { AboutCard as A, EntityOrphanWarning as B, CatalogPage as C, DefaultCatalogPage as D, EntityAboutCard as E, isOrphan as F, EntityProcessingErrorsPanel as G, hasCatalogProcessingErrors as H, EntityPageLayout as I, EntitySwitch as J, isKind as K, isNamespace as L, isComponentType as M, FilteredEntityLayout as N, FilterContainer as O, EntityListContainer as P, Router as R, AboutContent as a, AboutField as b, CatalogClientWrapper as c, CatalogTable as d, CatalogEntityPage as e, CatalogIndexPage as f, catalogPlugin as g, EntityDependencyOfComponentsCard as h, EntityDependsOnComponentsCard as i, EntityDependsOnResourcesCard as j, EntityHasComponentsCard as k, EntityHasResourcesCard as l, EntityHasSubcomponentsCard as m, EntityHasSystemsCard as n, EntityLinksCard as o, EntitySystemDiagramCard as p, CatalogKindHeader as q, CatalogResultListItem as r, createNameColumn as s, createSystemColumn as t, createOwnerColumn as u, createSpecTypeColumn as v, createSpecLifecycleColumn as w, createMetadataDescriptionColumn as x, createTagsColumn as y, EntityLayout as z };
1368
- //# sourceMappingURL=index-766926dc.esm.js.map
1352
+ export { AboutCard as A, EntityLayout as B, CatalogPage as C, DefaultCatalogPage as D, EntityAboutCard as E, EntityOrphanWarning as F, isOrphan as G, EntityProcessingErrorsPanel as H, hasCatalogProcessingErrors as I, EntityPageLayout as J, EntitySwitch as K, isKind as L, isNamespace as M, isComponentType as N, FilteredEntityLayout as O, FilterContainer as P, EntityListContainer as Q, Router as R, AboutContent as a, AboutField as b, CatalogClientWrapper as c, CatalogTable as d, CatalogEntityPage as e, CatalogIndexPage as f, catalogPlugin as g, EntityDependencyOfComponentsCard as h, EntityDependsOnComponentsCard as i, EntityDependsOnResourcesCard as j, EntityHasComponentsCard as k, EntityHasResourcesCard as l, EntityHasSubcomponentsCard as m, EntityHasSystemsCard as n, EntityLinksCard as o, EntitySystemDiagramCard as p, RelatedEntitiesCard as q, CatalogKindHeader as r, CatalogResultListItem as s, createNameColumn as t, createSystemColumn as u, createOwnerColumn as v, createSpecTypeColumn as w, createSpecLifecycleColumn as x, createMetadataDescriptionColumn as y, createTagsColumn as z };
1353
+ //# sourceMappingURL=index-9e441058.esm.js.map