@backstage/plugin-org 0.6.46-next.0 → 0.6.46

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,5 +1,29 @@
1
1
  # @backstage/plugin-org
2
2
 
3
+ ## 0.6.46
4
+
5
+ ### Patch Changes
6
+
7
+ - 6db9e7e: Improved responsiveness of GroupProfileCard component
8
+ - Updated dependencies
9
+ - @backstage/frontend-plugin-api@0.13.0
10
+ - @backstage/core-compat-api@0.5.4
11
+ - @backstage/plugin-catalog-react@1.21.3
12
+ - @backstage/core-components@0.18.3
13
+ - @backstage/core-plugin-api@1.12.0
14
+ - @backstage/catalog-model@1.7.6
15
+ - @backstage/plugin-catalog-common@1.1.7
16
+
17
+ ## 0.6.46-next.1
18
+
19
+ ### Patch Changes
20
+
21
+ - 6db9e7e: Improved responsiveness of GroupProfileCard component
22
+ - Updated dependencies
23
+ - @backstage/plugin-catalog-react@1.21.3-next.2
24
+ - @backstage/frontend-plugin-api@0.12.2-next.2
25
+ - @backstage/core-components@0.18.3-next.2
26
+
3
27
  ## 0.6.46-next.0
4
28
 
5
29
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -39,7 +39,7 @@ declare const orgTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"
39
39
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{}, {
40
40
  catalogIndex: _backstage_frontend_plugin_api.ExternalRouteRef<undefined>;
41
41
  }, {
42
- "entity-card:org/group-profile": _backstage_frontend_plugin_api.ExtensionDefinition<{
42
+ "entity-card:org/group-profile": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
43
43
  kind: "entity-card";
44
44
  name: "group-profile";
45
45
  config: {
@@ -64,7 +64,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
64
64
  type?: _backstage_plugin_catalog_react_alpha.EntityCardType;
65
65
  };
66
66
  }>;
67
- "entity-card:org/members-list": _backstage_frontend_plugin_api.ExtensionDefinition<{
67
+ "entity-card:org/members-list": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
68
68
  config: {
69
69
  initialRelationAggregation: "direct" | "aggregated" | undefined;
70
70
  showAggregateMembersToggle: boolean | undefined;
@@ -88,8 +88,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
88
88
  }>;
89
89
  inputs: {
90
90
  [x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef, {
91
- optional: boolean;
92
91
  singleton: boolean;
92
+ optional: boolean;
93
93
  }>;
94
94
  };
95
95
  kind: "entity-card";
@@ -100,7 +100,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
100
100
  type?: _backstage_plugin_catalog_react_alpha.EntityCardType;
101
101
  };
102
102
  }>;
103
- "entity-card:org/ownership": _backstage_frontend_plugin_api.ExtensionDefinition<{
103
+ "entity-card:org/ownership": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
104
104
  config: {
105
105
  initialRelationAggregation: "direct" | "aggregated" | undefined;
106
106
  showAggregateMembersToggle: boolean | undefined;
@@ -124,8 +124,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
124
124
  }>;
125
125
  inputs: {
126
126
  [x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef, {
127
- optional: boolean;
128
127
  singleton: boolean;
128
+ optional: boolean;
129
129
  }>;
130
130
  };
131
131
  kind: "entity-card";
@@ -136,7 +136,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
136
136
  type?: _backstage_plugin_catalog_react_alpha.EntityCardType;
137
137
  };
138
138
  }>;
139
- "entity-card:org/user-profile": _backstage_frontend_plugin_api.ExtensionDefinition<{
139
+ "entity-card:org/user-profile": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
140
140
  config: {
141
141
  maxRelations: number | undefined;
142
142
  hideIcons: boolean;
@@ -160,8 +160,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
160
160
  }>;
161
161
  inputs: {
162
162
  [x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef, {
163
- optional: boolean;
164
163
  singleton: boolean;
164
+ optional: boolean;
165
165
  }>;
166
166
  };
167
167
  kind: "entity-card";
@@ -2,7 +2,6 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { stringifyEntityRef, RELATION_PARENT_OF, RELATION_CHILD_OF, ANNOTATION_LOCATION, ANNOTATION_EDIT_URL } from '@backstage/catalog-model';
3
3
  import { Link, InfoCard, Avatar } from '@backstage/core-components';
4
4
  import Box from '@material-ui/core/Box';
5
- import Grid from '@material-ui/core/Grid';
6
5
  import IconButton from '@material-ui/core/IconButton';
7
6
  import List from '@material-ui/core/List';
8
7
  import ListItem from '@material-ui/core/ListItem';
@@ -24,7 +23,20 @@ import { useEntityPermission } from '@backstage/plugin-catalog-react/alpha';
24
23
  import { catalogEntityRefreshPermission } from '@backstage/plugin-catalog-common/alpha';
25
24
  import { useTranslationRef } from '@backstage/frontend-plugin-api';
26
25
  import { orgTranslationRef } from '../../../../translation.esm.js';
26
+ import { makeStyles } from '@material-ui/core/styles';
27
27
 
28
+ const useStyles = makeStyles((theme) => ({
29
+ container: {
30
+ display: "flex",
31
+ flexWrap: "wrap",
32
+ gap: theme.spacing(1),
33
+ padding: theme.spacing(1)
34
+ },
35
+ list: {
36
+ padding: 0,
37
+ marginLeft: theme.spacing(0.5)
38
+ }
39
+ }));
28
40
  const CardTitle = (props) => /* @__PURE__ */ jsxs(Box, { display: "flex", alignItems: "center", children: [
29
41
  /* @__PURE__ */ jsx(GroupIcon, { fontSize: "inherit" }),
30
42
  /* @__PURE__ */ jsx(Box, { ml: 1, children: props.title })
@@ -37,6 +49,7 @@ const GroupProfileCard = (props) => {
37
49
  catalogEntityRefreshPermission
38
50
  );
39
51
  const { t } = useTranslationRef(orgTranslationRef);
52
+ const classes = useStyles();
40
53
  const refreshEntity = useCallback(async () => {
41
54
  await catalogApi.refreshEntity(stringifyEntityRef(group));
42
55
  alertApi.post({
@@ -99,9 +112,9 @@ const GroupProfileCard = (props) => {
99
112
  ),
100
113
  infoCardAction
101
114
  ] }),
102
- children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, children: [
103
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 2, xl: 1, children: /* @__PURE__ */ jsx(Avatar, { displayName, picture: profile?.picture }) }),
104
- /* @__PURE__ */ jsx(Grid, { item: true, md: 10, xl: 11, children: /* @__PURE__ */ jsxs(List, { children: [
115
+ children: /* @__PURE__ */ jsxs(Box, { className: classes.container, children: [
116
+ /* @__PURE__ */ jsx(Avatar, { displayName, picture: profile?.picture }),
117
+ /* @__PURE__ */ jsxs(List, { className: classes.list, children: [
105
118
  /* @__PURE__ */ jsxs(ListItem, { children: [
106
119
  /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Tooltip, { title: t("groupProfileCard.listItemTitle.entityRef"), children: /* @__PURE__ */ jsx(PermIdentityIcon, {}) }) }),
107
120
  /* @__PURE__ */ jsx(
@@ -123,13 +136,7 @@ const GroupProfileCard = (props) => {
123
136
  )
124
137
  ] }),
125
138
  /* @__PURE__ */ jsxs(ListItem, { children: [
126
- /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(
127
- Tooltip,
128
- {
129
- title: t("groupProfileCard.listItemTitle.parentGroup"),
130
- children: /* @__PURE__ */ jsx(AccountTreeIcon, {})
131
- }
132
- ) }),
139
+ /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Tooltip, { title: t("groupProfileCard.listItemTitle.parentGroup"), children: /* @__PURE__ */ jsx(AccountTreeIcon, {}) }) }),
133
140
  /* @__PURE__ */ jsx(
134
141
  ListItemText,
135
142
  {
@@ -145,13 +152,7 @@ const GroupProfileCard = (props) => {
145
152
  )
146
153
  ] }),
147
154
  /* @__PURE__ */ jsxs(ListItem, { children: [
148
- /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(
149
- Tooltip,
150
- {
151
- title: t("groupProfileCard.listItemTitle.childGroups"),
152
- children: /* @__PURE__ */ jsx(GroupIcon, {})
153
- }
154
- ) }),
155
+ /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Tooltip, { title: t("groupProfileCard.listItemTitle.childGroups"), children: /* @__PURE__ */ jsx(GroupIcon, {}) }) }),
155
156
  /* @__PURE__ */ jsx(
156
157
  ListItemText,
157
158
  {
@@ -167,7 +168,7 @@ const GroupProfileCard = (props) => {
167
168
  )
168
169
  ] }),
169
170
  props?.showLinks && /* @__PURE__ */ jsx(LinksGroup, { links })
170
- ] }) })
171
+ ] })
171
172
  ] })
172
173
  }
173
174
  );
@@ -1 +1 @@
1
- {"version":3,"file":"GroupProfileCard.esm.js","sources":["../../../../../src/components/Cards/Group/GroupProfile/GroupProfileCard.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 {\n ANNOTATION_EDIT_URL,\n ANNOTATION_LOCATION,\n GroupEntity,\n RELATION_CHILD_OF,\n RELATION_PARENT_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n Avatar,\n InfoCard,\n InfoCardVariants,\n Link,\n} from '@backstage/core-components';\nimport Box from '@material-ui/core/Box';\nimport Grid from '@material-ui/core/Grid';\nimport IconButton from '@material-ui/core/IconButton';\nimport List from '@material-ui/core/List';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport {\n EntityRefLinks,\n catalogApiRef,\n getEntityRelations,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport { useCallback } from 'react';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\n\nimport AccountTreeIcon from '@material-ui/icons/AccountTree';\nimport Alert from '@material-ui/lab/Alert';\nimport CachedIcon from '@material-ui/icons/Cached';\nimport EditIcon from '@material-ui/icons/Edit';\nimport EmailIcon from '@material-ui/icons/Email';\nimport GroupIcon from '@material-ui/icons/Group';\nimport PermIdentityIcon from '@material-ui/icons/PermIdentity';\nimport { LinksGroup } from '../../Meta';\nimport { useEntityPermission } from '@backstage/plugin-catalog-react/alpha';\nimport { catalogEntityRefreshPermission } from '@backstage/plugin-catalog-common/alpha';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\nimport { orgTranslationRef } from '../../../../translation';\n\nconst CardTitle = (props: { title: string }) => (\n <Box display=\"flex\" alignItems=\"center\">\n <GroupIcon fontSize=\"inherit\" />\n <Box ml={1}>{props.title}</Box>\n </Box>\n);\n\n/** @public */\nexport const GroupProfileCard = (props: {\n variant?: InfoCardVariants;\n showLinks?: boolean;\n}) => {\n const catalogApi = useApi(catalogApiRef);\n const alertApi = useApi(alertApiRef);\n const { entity: group } = useEntity<GroupEntity>();\n const { allowed: canRefresh } = useEntityPermission(\n catalogEntityRefreshPermission,\n );\n const { t } = useTranslationRef(orgTranslationRef);\n\n const refreshEntity = useCallback(async () => {\n await catalogApi.refreshEntity(stringifyEntityRef(group));\n alertApi.post({\n message: 'Refresh scheduled',\n severity: 'info',\n display: 'transient',\n });\n }, [catalogApi, alertApi, group]);\n\n if (!group) {\n return (\n <Alert severity=\"error\">{t('groupProfileCard.groupNotFound')}</Alert>\n );\n }\n\n const {\n metadata: { name, description, title, annotations, links },\n spec: { profile },\n } = group;\n\n const childRelations = getEntityRelations(group, RELATION_PARENT_OF, {\n kind: 'Group',\n });\n const parentRelations = getEntityRelations(group, RELATION_CHILD_OF, {\n kind: 'group',\n });\n\n const entityLocation = annotations?.[ANNOTATION_LOCATION];\n const allowRefresh =\n entityLocation?.startsWith('url:') || entityLocation?.startsWith('file:');\n\n const entityMetadataEditUrl =\n group.metadata.annotations?.[ANNOTATION_EDIT_URL];\n\n const displayName = profile?.displayName ?? title ?? name;\n const emailHref = profile?.email ? `mailto:${profile.email}` : '#';\n const infoCardAction = entityMetadataEditUrl ? (\n <IconButton\n aria-label={t('groupProfileCard.editIconButtonTitle')}\n title={t('groupProfileCard.editIconButtonTitle')}\n component={Link}\n to={entityMetadataEditUrl}\n >\n <EditIcon />\n </IconButton>\n ) : (\n <IconButton\n aria-label={t('groupProfileCard.editIconButtonTitle')}\n disabled\n title={t('groupProfileCard.editIconButtonTitle')}\n >\n <EditIcon />\n </IconButton>\n );\n\n return (\n <InfoCard\n title={<CardTitle title={displayName} />}\n subheader={description}\n variant={props.variant}\n action={\n <>\n {allowRefresh && canRefresh && (\n <IconButton\n aria-label={t('groupProfileCard.refreshIconButtonAriaLabel')}\n title={t('groupProfileCard.refreshIconButtonTitle')}\n onClick={refreshEntity}\n >\n <CachedIcon />\n </IconButton>\n )}\n {infoCardAction}\n </>\n }\n >\n <Grid container spacing={3}>\n <Grid item xs={12} sm={2} xl={1}>\n <Avatar displayName={displayName} picture={profile?.picture} />\n </Grid>\n <Grid item md={10} xl={11}>\n <List>\n <ListItem>\n <ListItemIcon>\n <Tooltip title={t('groupProfileCard.listItemTitle.entityRef')}>\n <PermIdentityIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={stringifyEntityRef(group)}\n secondary={t('groupProfileCard.listItemTitle.entityRef')}\n />\n </ListItem>\n {profile?.email && (\n <ListItem>\n <ListItemIcon>\n <Tooltip title={t('groupProfileCard.listItemTitle.email')}>\n <EmailIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={<Link to={emailHref}>{profile.email}</Link>}\n secondary={t('groupProfileCard.listItemTitle.email')}\n />\n </ListItem>\n )}\n <ListItem>\n <ListItemIcon>\n <Tooltip\n title={t('groupProfileCard.listItemTitle.parentGroup')}\n >\n <AccountTreeIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={\n parentRelations.length ? (\n <EntityRefLinks\n entityRefs={parentRelations}\n defaultKind=\"Group\"\n />\n ) : (\n 'N/A'\n )\n }\n secondary={t('groupProfileCard.listItemTitle.parentGroup')}\n />\n </ListItem>\n <ListItem>\n <ListItemIcon>\n <Tooltip\n title={t('groupProfileCard.listItemTitle.childGroups')}\n >\n <GroupIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={\n childRelations.length ? (\n <EntityRefLinks\n entityRefs={childRelations}\n defaultKind=\"Group\"\n />\n ) : (\n 'N/A'\n )\n }\n secondary={t('groupProfileCard.listItemTitle.childGroups')}\n />\n </ListItem>\n {props?.showLinks && <LinksGroup links={links} />}\n </List>\n </Grid>\n </Grid>\n </InfoCard>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAM,SAAA,GAAY,CAAC,KAAA,qBACjB,IAAA,CAAC,OAAI,OAAA,EAAQ,MAAA,EAAO,YAAW,QAAA,EAC7B,QAAA,EAAA;AAAA,kBAAA,GAAA,CAAC,SAAA,EAAA,EAAU,UAAS,SAAA,EAAU,CAAA;AAAA,kBAC9B,GAAA,CAAC,GAAA,EAAA,EAAI,EAAA,EAAI,CAAA,EAAI,gBAAM,KAAA,EAAM;AAAA,CAAA,EAC3B,CAAA;AAIK,MAAM,gBAAA,GAAmB,CAAC,KAAA,KAG3B;AACJ,EAAA,MAAM,UAAA,GAAa,OAAO,aAAa,CAAA;AACvC,EAAA,MAAM,QAAA,GAAW,OAAO,WAAW,CAAA;AACnC,EAAA,MAAM,EAAE,MAAA,EAAQ,KAAA,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,SAAA,EAAW,EAAE,4CAA4C;AAAA;AAAA;AAC3D,WAAA,EACF,CAAA;AAAA,UACC,KAAA,EAAO,SAAA,oBAAa,GAAA,CAAC,UAAA,EAAA,EAAW,KAAA,EAAc;AAAA,SAAA,EACjD,CAAA,EACF;AAAA,OAAA,EACF;AAAA;AAAA,GACF;AAEJ;;;;"}
1
+ {"version":3,"file":"GroupProfileCard.esm.js","sources":["../../../../../src/components/Cards/Group/GroupProfile/GroupProfileCard.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 {\n ANNOTATION_EDIT_URL,\n ANNOTATION_LOCATION,\n GroupEntity,\n RELATION_CHILD_OF,\n RELATION_PARENT_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n Avatar,\n InfoCard,\n InfoCardVariants,\n Link,\n} from '@backstage/core-components';\nimport Box from '@material-ui/core/Box';\nimport IconButton from '@material-ui/core/IconButton';\nimport List from '@material-ui/core/List';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport {\n EntityRefLinks,\n catalogApiRef,\n getEntityRelations,\n useEntity,\n} from '@backstage/plugin-catalog-react';\nimport { useCallback } from 'react';\nimport { alertApiRef, useApi } from '@backstage/core-plugin-api';\n\nimport AccountTreeIcon from '@material-ui/icons/AccountTree';\nimport Alert from '@material-ui/lab/Alert';\nimport CachedIcon from '@material-ui/icons/Cached';\nimport EditIcon from '@material-ui/icons/Edit';\nimport EmailIcon from '@material-ui/icons/Email';\nimport GroupIcon from '@material-ui/icons/Group';\nimport PermIdentityIcon from '@material-ui/icons/PermIdentity';\nimport { LinksGroup } from '../../Meta';\nimport { useEntityPermission } from '@backstage/plugin-catalog-react/alpha';\nimport { catalogEntityRefreshPermission } from '@backstage/plugin-catalog-common/alpha';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\nimport { orgTranslationRef } from '../../../../translation';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles(theme => ({\n container: {\n display: 'flex',\n flexWrap: 'wrap',\n gap: theme.spacing(1),\n padding: theme.spacing(1),\n },\n list: {\n padding: 0,\n marginLeft: theme.spacing(0.5),\n },\n}));\n\nconst CardTitle = (props: { title: string }) => (\n <Box display=\"flex\" alignItems=\"center\">\n <GroupIcon fontSize=\"inherit\" />\n <Box ml={1}>{props.title}</Box>\n </Box>\n);\n\n/** @public */\nexport const GroupProfileCard = (props: {\n variant?: InfoCardVariants;\n showLinks?: boolean;\n}) => {\n const catalogApi = useApi(catalogApiRef);\n const alertApi = useApi(alertApiRef);\n const { entity: group } = useEntity<GroupEntity>();\n const { allowed: canRefresh } = useEntityPermission(\n catalogEntityRefreshPermission,\n );\n const { t } = useTranslationRef(orgTranslationRef);\n const classes = useStyles();\n\n const refreshEntity = useCallback(async () => {\n await catalogApi.refreshEntity(stringifyEntityRef(group));\n alertApi.post({\n message: 'Refresh scheduled',\n severity: 'info',\n display: 'transient',\n });\n }, [catalogApi, alertApi, group]);\n\n if (!group) {\n return (\n <Alert severity=\"error\">{t('groupProfileCard.groupNotFound')}</Alert>\n );\n }\n\n const {\n metadata: { name, description, title, annotations, links },\n spec: { profile },\n } = group;\n\n const childRelations = getEntityRelations(group, RELATION_PARENT_OF, {\n kind: 'Group',\n });\n const parentRelations = getEntityRelations(group, RELATION_CHILD_OF, {\n kind: 'group',\n });\n\n const entityLocation = annotations?.[ANNOTATION_LOCATION];\n const allowRefresh =\n entityLocation?.startsWith('url:') || entityLocation?.startsWith('file:');\n\n const entityMetadataEditUrl =\n group.metadata.annotations?.[ANNOTATION_EDIT_URL];\n\n const displayName = profile?.displayName ?? title ?? name;\n const emailHref = profile?.email ? `mailto:${profile.email}` : '#';\n const infoCardAction = entityMetadataEditUrl ? (\n <IconButton\n aria-label={t('groupProfileCard.editIconButtonTitle')}\n title={t('groupProfileCard.editIconButtonTitle')}\n component={Link}\n to={entityMetadataEditUrl}\n >\n <EditIcon />\n </IconButton>\n ) : (\n <IconButton\n aria-label={t('groupProfileCard.editIconButtonTitle')}\n disabled\n title={t('groupProfileCard.editIconButtonTitle')}\n >\n <EditIcon />\n </IconButton>\n );\n\n return (\n <InfoCard\n title={<CardTitle title={displayName} />}\n subheader={description}\n variant={props.variant}\n action={\n <>\n {allowRefresh && canRefresh && (\n <IconButton\n aria-label={t('groupProfileCard.refreshIconButtonAriaLabel')}\n title={t('groupProfileCard.refreshIconButtonTitle')}\n onClick={refreshEntity}\n >\n <CachedIcon />\n </IconButton>\n )}\n {infoCardAction}\n </>\n }\n >\n <Box className={classes.container}>\n <Avatar displayName={displayName} picture={profile?.picture} />\n <List className={classes.list}>\n <ListItem>\n <ListItemIcon>\n <Tooltip title={t('groupProfileCard.listItemTitle.entityRef')}>\n <PermIdentityIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={stringifyEntityRef(group)}\n secondary={t('groupProfileCard.listItemTitle.entityRef')}\n />\n </ListItem>\n {profile?.email && (\n <ListItem>\n <ListItemIcon>\n <Tooltip title={t('groupProfileCard.listItemTitle.email')}>\n <EmailIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={<Link to={emailHref}>{profile.email}</Link>}\n secondary={t('groupProfileCard.listItemTitle.email')}\n />\n </ListItem>\n )}\n <ListItem>\n <ListItemIcon>\n <Tooltip title={t('groupProfileCard.listItemTitle.parentGroup')}>\n <AccountTreeIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={\n parentRelations.length ? (\n <EntityRefLinks\n entityRefs={parentRelations}\n defaultKind=\"Group\"\n />\n ) : (\n 'N/A'\n )\n }\n secondary={t('groupProfileCard.listItemTitle.parentGroup')}\n />\n </ListItem>\n <ListItem>\n <ListItemIcon>\n <Tooltip title={t('groupProfileCard.listItemTitle.childGroups')}>\n <GroupIcon />\n </Tooltip>\n </ListItemIcon>\n <ListItemText\n primary={\n childRelations.length ? (\n <EntityRefLinks\n entityRefs={childRelations}\n defaultKind=\"Group\"\n />\n ) : (\n 'N/A'\n )\n }\n secondary={t('groupProfileCard.listItemTitle.childGroups')}\n />\n </ListItem>\n {props?.showLinks && <LinksGroup links={links} />}\n </List>\n </Box>\n </InfoCard>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAM,SAAA,GAAY,WAAW,CAAA,KAAA,MAAU;AAAA,EACrC,SAAA,EAAW;AAAA,IACT,OAAA,EAAS,MAAA;AAAA,IACT,QAAA,EAAU,MAAA;AAAA,IACV,GAAA,EAAK,KAAA,CAAM,OAAA,CAAQ,CAAC,CAAA;AAAA,IACpB,OAAA,EAAS,KAAA,CAAM,OAAA,CAAQ,CAAC;AAAA,GAC1B;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,OAAA,EAAS,CAAA;AAAA,IACT,UAAA,EAAY,KAAA,CAAM,OAAA,CAAQ,GAAG;AAAA;AAEjC,CAAA,CAAE,CAAA;AAEF,MAAM,SAAA,GAAY,CAAC,KAAA,qBACjB,IAAA,CAAC,OAAI,OAAA,EAAQ,MAAA,EAAO,YAAW,QAAA,EAC7B,QAAA,EAAA;AAAA,kBAAA,GAAA,CAAC,SAAA,EAAA,EAAU,UAAS,SAAA,EAAU,CAAA;AAAA,kBAC9B,GAAA,CAAC,GAAA,EAAA,EAAI,EAAA,EAAI,CAAA,EAAI,gBAAM,KAAA,EAAM;AAAA,CAAA,EAC3B,CAAA;AAIK,MAAM,gBAAA,GAAmB,CAAC,KAAA,KAG3B;A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AAW,EAAE,4CAA4C;AAAA;AAAA;AAC3D,WAAA,EACF,CAAA;AAAA,UACC,KAAA,EAAO,SAAA,oBAAa,GAAA,CAAC,UAAA,EAAA,EAAW,KAAA,EAAc;AAAA,SAAA,EACjD;AAAA,OAAA,EACF;AAAA;AAAA,GACF;AAEJ;;;;"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-org";
2
- var version = "0.6.46-next.0";
2
+ var version = "0.6.46";
3
3
  var description = "A Backstage plugin that helps you create entity pages for your organization";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-org",
3
- "version": "0.6.46-next.0",
3
+ "version": "0.6.46",
4
4
  "description": "A Backstage plugin that helps you create entity pages for your organization",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -63,13 +63,13 @@
63
63
  "test": "backstage-cli package test"
64
64
  },
65
65
  "dependencies": {
66
- "@backstage/catalog-model": "1.7.6-next.0",
67
- "@backstage/core-compat-api": "0.5.4-next.0",
68
- "@backstage/core-components": "0.18.3-next.0",
69
- "@backstage/core-plugin-api": "1.11.2-next.0",
70
- "@backstage/frontend-plugin-api": "0.12.2-next.0",
71
- "@backstage/plugin-catalog-common": "1.1.7-next.0",
72
- "@backstage/plugin-catalog-react": "1.21.3-next.0",
66
+ "@backstage/catalog-model": "^1.7.6",
67
+ "@backstage/core-compat-api": "^0.5.4",
68
+ "@backstage/core-components": "^0.18.3",
69
+ "@backstage/core-plugin-api": "^1.12.0",
70
+ "@backstage/frontend-plugin-api": "^0.13.0",
71
+ "@backstage/plugin-catalog-common": "^1.1.7",
72
+ "@backstage/plugin-catalog-react": "^1.21.3",
73
73
  "@material-ui/core": "^4.12.2",
74
74
  "@material-ui/icons": "^4.9.1",
75
75
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -80,15 +80,15 @@
80
80
  "react-use": "^17.2.4"
81
81
  },
82
82
  "devDependencies": {
83
- "@backstage/catalog-client": "1.12.1-next.0",
84
- "@backstage/cli": "0.34.5-next.0",
85
- "@backstage/core-app-api": "1.19.2-next.0",
86
- "@backstage/dev-utils": "1.1.17-next.0",
87
- "@backstage/plugin-catalog": "1.31.5-next.0",
88
- "@backstage/plugin-permission-common": "0.9.3-next.0",
89
- "@backstage/plugin-permission-react": "0.4.38-next.0",
90
- "@backstage/test-utils": "1.7.13-next.0",
91
- "@backstage/types": "1.2.2",
83
+ "@backstage/catalog-client": "^1.12.1",
84
+ "@backstage/cli": "^0.34.5",
85
+ "@backstage/core-app-api": "^1.19.2",
86
+ "@backstage/dev-utils": "^1.1.17",
87
+ "@backstage/plugin-catalog": "^1.32.0",
88
+ "@backstage/plugin-permission-common": "^0.9.3",
89
+ "@backstage/plugin-permission-react": "^0.4.38",
90
+ "@backstage/test-utils": "^1.7.13",
91
+ "@backstage/types": "^1.2.2",
92
92
  "@testing-library/dom": "^10.0.0",
93
93
  "@testing-library/jest-dom": "^6.0.0",
94
94
  "@testing-library/react": "^16.0.0",