@backstage/plugin-org 0.6.26-next.0 → 0.6.26-next.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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @backstage/plugin-org
2
2
 
3
+ ## 0.6.26-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d44a20a: Added additional plugin metadata to `package.json`.
8
+ - Updated dependencies
9
+ - @backstage/core-components@0.14.8-next.2
10
+ - @backstage/plugin-catalog-common@1.0.24-next.0
11
+ - @backstage/plugin-catalog-react@1.12.1-next.2
12
+ - @backstage/frontend-plugin-api@0.6.6-next.2
13
+ - @backstage/core-compat-api@0.2.6-next.2
14
+ - @backstage/catalog-model@1.5.0
15
+ - @backstage/core-plugin-api@1.9.3-next.0
16
+
17
+ ## 0.6.26-next.1
18
+
19
+ ### Patch Changes
20
+
21
+ - d8e2f53: The `catalogIndex` external route is now optional and will by default bind to the catalog index page if it is available.
22
+ - Updated dependencies
23
+ - @backstage/core-components@0.14.8-next.1
24
+ - @backstage/core-compat-api@0.2.6-next.1
25
+ - @backstage/core-plugin-api@1.9.3-next.0
26
+ - @backstage/frontend-plugin-api@0.6.6-next.1
27
+ - @backstage/plugin-catalog-react@1.12.1-next.1
28
+ - @backstage/catalog-model@1.5.0
29
+ - @backstage/plugin-catalog-common@1.0.23
30
+
3
31
  ## 0.6.26-next.0
4
32
 
5
33
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-org",
3
- "version": "0.6.26-next.0",
3
+ "version": "0.6.26-next.2",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/dist/alpha.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api'
2
2
 
3
3
  /** @alpha */
4
4
  declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{}, {
5
- catalogIndex: _backstage_frontend_plugin_api.ExternalRouteRef<undefined, false>;
5
+ catalogIndex: _backstage_frontend_plugin_api.ExternalRouteRef<undefined, true>;
6
6
  }>;
7
7
 
8
8
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import { Progress, ResponseErrorPanel, Link, OverflowTooltip } from '@backstage/core-components';
1
+ import { Progress, ResponseErrorPanel, OverflowTooltip, Link } from '@backstage/core-components';
2
2
  import { useRouteRef } from '@backstage/core-plugin-api';
3
3
  import Box from '@material-ui/core/Box';
4
4
  import Grid from '@material-ui/core/Grid';
@@ -43,7 +43,7 @@ const EntityCountTile = ({
43
43
  const classes = useStyles({ type: type ?? kind });
44
44
  const rawTitle = type ?? kind;
45
45
  const isLongText = rawTitle.length > 10;
46
- return /* @__PURE__ */ React.createElement(Link, { to: url, variant: "body2" }, /* @__PURE__ */ React.createElement(
46
+ const tile = /* @__PURE__ */ React.createElement(
47
47
  Box,
48
48
  {
49
49
  className: `${classes.card} ${classes.entityTypeBox}`,
@@ -66,7 +66,11 @@ const EntityCountTile = ({
66
66
  )
67
67
  )),
68
68
  type && /* @__PURE__ */ React.createElement(Typography, { variant: "subtitle1" }, kind)
69
- ));
69
+ );
70
+ if (url) {
71
+ return /* @__PURE__ */ React.createElement(Link, { to: url, variant: "body2" }, tile);
72
+ }
73
+ return tile;
70
74
  };
71
75
  const ComponentsGrid = ({
72
76
  className,
@@ -93,7 +97,7 @@ const ComponentsGrid = ({
93
97
  counter: c.counter,
94
98
  kind: c.kind,
95
99
  type: c.type,
96
- url: `${catalogLink()}/?${c.queryParams}`
100
+ url: catalogLink && `${catalogLink()}/?${c.queryParams}`
97
101
  }
98
102
  ))));
99
103
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentsGrid.esm.js","sources":["../../../../src/components/Cards/OwnershipCard/ComponentsGrid.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 { Entity } from '@backstage/catalog-model';\nimport {\n Link,\n OverflowTooltip,\n Progress,\n ResponseErrorPanel,\n} from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { createStyles, makeStyles } from '@material-ui/core/styles';\nimport React from 'react';\nimport pluralize from 'pluralize';\nimport { catalogIndexRouteRef } from '../../../routes';\nimport { useGetEntities } from './useGetEntities';\nimport { EntityRelationAggregation } from '../types';\n\nconst useStyles = makeStyles(theme =>\n createStyles({\n card: {\n border: `1px solid ${theme.palette.divider}`,\n boxShadow: theme.shadows[2],\n borderRadius: '4px',\n padding: theme.spacing(2),\n transition: `${theme.transitions.duration.standard}ms`,\n '&:hover': {\n boxShadow: theme.shadows[4],\n },\n height: '100%',\n },\n bold: {\n fontWeight: theme.typography.fontWeightBold,\n },\n smallFont: {\n fontSize: theme.typography.body2.fontSize,\n },\n entityTypeBox: {\n background: (props: { type: string }) =>\n theme.getPageTheme({ themeId: props.type }).backgroundImage,\n color: (props: { type: string }) =>\n theme.getPageTheme({ themeId: props.type }).fontColor,\n },\n }),\n);\n\nconst EntityCountTile = ({\n counter,\n type,\n kind,\n url,\n}: {\n counter: number;\n type?: string;\n kind: string;\n url: string;\n}) => {\n const classes = useStyles({ type: type ?? kind });\n\n const rawTitle = type ?? kind;\n const isLongText = rawTitle.length > 10;\n\n return (\n <Link to={url} variant=\"body2\">\n <Box\n className={`${classes.card} ${classes.entityTypeBox}`}\n display=\"flex\"\n flexDirection=\"column\"\n alignItems=\"center\"\n >\n <Typography className={classes.bold} variant=\"h6\">\n {counter}\n </Typography>\n <Box sx={{ width: '100%', textAlign: 'center' }}>\n <Typography\n className={`${classes.bold} ${isLongText && classes.smallFont}`}\n variant=\"h6\"\n >\n <OverflowTooltip\n text={pluralize(rawTitle.toLocaleUpperCase('en-US'), counter)}\n />\n </Typography>\n </Box>\n {type && <Typography variant=\"subtitle1\">{kind}</Typography>}\n </Box>\n </Link>\n );\n};\n\nexport const ComponentsGrid = ({\n className,\n entity,\n relationsType,\n entityFilterKind,\n entityLimit = 6,\n}: {\n className?: string;\n entity: Entity;\n relationsType: EntityRelationAggregation;\n entityFilterKind?: string[];\n entityLimit?: number;\n}) => {\n const catalogLink = useRouteRef(catalogIndexRouteRef);\n const { componentsWithCounters, loading, error } = useGetEntities(\n entity,\n relationsType,\n entityFilterKind,\n entityLimit,\n );\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n return (\n <Grid container className={className}>\n {componentsWithCounters?.map(c => (\n <Grid item xs={6} md={6} lg={4} key={c.type ?? c.kind}>\n <EntityCountTile\n counter={c.counter}\n kind={c.kind}\n type={c.type}\n url={`${catalogLink()}/?${c.queryParams}`}\n />\n </Grid>\n ))}\n </Grid>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAkCA,MAAM,SAAY,GAAA,UAAA;AAAA,EAAW,WAC3B,YAAa,CAAA;AAAA,IACX,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA,CAAA,UAAA,EAAa,KAAM,CAAA,OAAA,CAAQ,OAAO,CAAA,CAAA;AAAA,MAC1C,SAAA,EAAW,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,MAC1B,YAAc,EAAA,KAAA;AAAA,MACd,OAAA,EAAS,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,MACxB,UAAY,EAAA,CAAA,EAAG,KAAM,CAAA,WAAA,CAAY,SAAS,QAAQ,CAAA,EAAA,CAAA;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CAAA;AAAA,aACR,KAAO,EAAA;AAChB,IAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,sBAAmB,KAAc,EAAA,CAAA,CAAA;AAAA,GAC3C;AAEA,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,SAAS,EAAA,IAAA,EAAC,aACb,sBAAwB,EAAA,GAAA,CAAI,CAC3B,CAAA,qBAAA,KAAA,CAAA,aAAA,CAAC,IAAK,EAAA,EAAA,IAAA,EAAI,MAAC,EAAI,EAAA,CAAA,EAAG,IAAI,CAAG,EAAA,EAAA,EAAI,GAAG,GAAK,EAAA,CAAA,CAAE,IAAQ,IAAA,CAAA,CAAE,IAC/C,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,eAAA;AAAA,IAAA;AAAA,MACC,SAAS,CAAE,CAAA,OAAA;AAAA,MACX,MAAM,CAAE,CAAA,IAAA;AAAA,MACR,MAAM,CAAE,CAAA,IAAA;AAAA,MACR,KAAK,CAAG,EAAA,WAAA,EAAa,CAAA,EAAA,EAAK,EAAE,WAAW,CAAA,CAAA;AAAA,KAAA;AAAA,GAE3C,CACD,CACH,CAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"ComponentsGrid.esm.js","sources":["../../../../src/components/Cards/OwnershipCard/ComponentsGrid.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 { Entity } from '@backstage/catalog-model';\nimport {\n Link,\n OverflowTooltip,\n Progress,\n ResponseErrorPanel,\n} from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport { createStyles, makeStyles } from '@material-ui/core/styles';\nimport React from 'react';\nimport pluralize from 'pluralize';\nimport { catalogIndexRouteRef } from '../../../routes';\nimport { useGetEntities } from './useGetEntities';\nimport { EntityRelationAggregation } from '../types';\n\nconst useStyles = makeStyles(theme =>\n createStyles({\n card: {\n border: `1px solid ${theme.palette.divider}`,\n boxShadow: theme.shadows[2],\n borderRadius: '4px',\n padding: theme.spacing(2),\n transition: `${theme.transitions.duration.standard}ms`,\n '&:hover': {\n boxShadow: theme.shadows[4],\n },\n height: '100%',\n },\n bold: {\n fontWeight: theme.typography.fontWeightBold,\n },\n smallFont: {\n fontSize: theme.typography.body2.fontSize,\n },\n entityTypeBox: {\n background: (props: { type: string }) =>\n theme.getPageTheme({ themeId: props.type }).backgroundImage,\n color: (props: { type: string }) =>\n theme.getPageTheme({ themeId: props.type }).fontColor,\n },\n }),\n);\n\nconst EntityCountTile = ({\n counter,\n type,\n kind,\n url,\n}: {\n counter: number;\n type?: string;\n kind: string;\n url?: string;\n}) => {\n const classes = useStyles({ type: type ?? kind });\n\n const rawTitle = type ?? kind;\n const isLongText = rawTitle.length > 10;\n\n const tile = (\n <Box\n className={`${classes.card} ${classes.entityTypeBox}`}\n display=\"flex\"\n flexDirection=\"column\"\n alignItems=\"center\"\n >\n <Typography className={classes.bold} variant=\"h6\">\n {counter}\n </Typography>\n <Box sx={{ width: '100%', textAlign: 'center' }}>\n <Typography\n className={`${classes.bold} ${isLongText && classes.smallFont}`}\n variant=\"h6\"\n >\n <OverflowTooltip\n text={pluralize(rawTitle.toLocaleUpperCase('en-US'), counter)}\n />\n </Typography>\n </Box>\n {type && <Typography variant=\"subtitle1\">{kind}</Typography>}\n </Box>\n );\n\n if (url) {\n return (\n <Link to={url} variant=\"body2\">\n {tile}\n </Link>\n );\n }\n return tile;\n};\n\nexport const ComponentsGrid = ({\n className,\n entity,\n relationsType,\n entityFilterKind,\n entityLimit = 6,\n}: {\n className?: string;\n entity: Entity;\n relationsType: EntityRelationAggregation;\n entityFilterKind?: string[];\n entityLimit?: number;\n}) => {\n const catalogLink = useRouteRef(catalogIndexRouteRef);\n const { componentsWithCounters, loading, error } = useGetEntities(\n entity,\n relationsType,\n entityFilterKind,\n entityLimit,\n );\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n return (\n <Grid container className={className}>\n {componentsWithCounters?.map(c => (\n <Grid item xs={6} md={6} lg={4} key={c.type ?? c.kind}>\n <EntityCountTile\n counter={c.counter}\n kind={c.kind}\n type={c.type}\n url={catalogLink && `${catalogLink()}/?${c.queryParams}`}\n />\n </Grid>\n ))}\n </Grid>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;AAkCA,MAAM,SAAY,GAAA,UAAA;AAAA,EAAW,WAC3B,YAAa,CAAA;AAAA,IACX,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA,CAAA,UAAA,EAAa,KAAM,CAAA,OAAA,CAAQ,OAAO,CAAA,CAAA;AAAA,MAC1C,SAAA,EAAW,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,MAC1B,YAAc,EAAA,KAAA;AAAA,MACd,OAAA,EAAS,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,MACxB,UAAY,EAAA,CAAA,EAAG,KAAM,CAAA,WAAA,CAAY,SAAS,QAAQ,CAAA,EAAA,CAAA;AAAA,MAClD,SAAW,EAAA;AAAA,QACT,SAAA,EAAW,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,OAC5B;AAAA,MACA,MAAQ,EAAA,MAAA;AAAA,KACV;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,UAAA,EAAY,MAAM,UAAW,CAAA,cAAA;AAAA,KAC/B;AAAA,IACA,SAAW,EAAA;AAAA,MACT,QAAA,EAAU,KAAM,CAAA,UAAA,CAAW,KAAM,CA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AC3B,CAAA,qBAAA,KAAA,CAAA,aAAA,CAAC,IAAK,EAAA,EAAA,IAAA,EAAI,MAAC,EAAI,EAAA,CAAA,EAAG,IAAI,CAAG,EAAA,EAAA,EAAI,GAAG,GAAK,EAAA,CAAA,CAAE,IAAQ,IAAA,CAAA,CAAE,IAC/C,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,eAAA;AAAA,IAAA;AAAA,MACC,SAAS,CAAE,CAAA,OAAA;AAAA,MACX,MAAM,CAAE,CAAA,IAAA;AAAA,MACR,MAAM,CAAE,CAAA,IAAA;AAAA,MACR,KAAK,WAAe,IAAA,CAAA,EAAG,aAAa,CAAA,EAAA,EAAK,EAAE,WAAW,CAAA,CAAA;AAAA,KAAA;AAAA,GAE1D,CACD,CACH,CAAA,CAAA;AAEJ;;;;"}
package/dist/index.d.ts CHANGED
@@ -52,7 +52,7 @@ declare const MyGroupsSidebarItem: (props: {
52
52
 
53
53
  /** @public */
54
54
  declare const orgPlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {
55
- catalogIndex: _backstage_core_plugin_api.ExternalRouteRef<undefined, false>;
55
+ catalogIndex: _backstage_core_plugin_api.ExternalRouteRef<undefined, true>;
56
56
  }>;
57
57
  /** @public */
58
58
  declare const EntityGroupProfileCard: (props: {
@@ -1,7 +1,9 @@
1
1
  import { createExternalRouteRef } from '@backstage/core-plugin-api';
2
2
 
3
3
  const catalogIndexRouteRef = createExternalRouteRef({
4
- id: "catalog-index"
4
+ id: "catalog-index",
5
+ optional: true,
6
+ defaultTarget: "catalog.catalogIndex"
5
7
  });
6
8
 
7
9
  export { catalogIndexRouteRef };
@@ -1 +1 @@
1
- {"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"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 { createExternalRouteRef } from '@backstage/core-plugin-api';\n\nexport const catalogIndexRouteRef = createExternalRouteRef({\n id: 'catalog-index',\n});\n"],"names":[],"mappings":";;AAkBO,MAAM,uBAAuB,sBAAuB,CAAA;AAAA,EACzD,EAAI,EAAA,eAAA;AACN,CAAC;;;;"}
1
+ {"version":3,"file":"routes.esm.js","sources":["../src/routes.ts"],"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 { createExternalRouteRef } from '@backstage/core-plugin-api';\n\nexport const catalogIndexRouteRef = createExternalRouteRef({\n id: 'catalog-index',\n optional: true,\n defaultTarget: 'catalog.catalogIndex',\n});\n"],"names":[],"mappings":";;AAkBO,MAAM,uBAAuB,sBAAuB,CAAA;AAAA,EACzD,EAAI,EAAA,eAAA;AAAA,EACJ,QAAU,EAAA,IAAA;AAAA,EACV,aAAe,EAAA,sBAAA;AACjB,CAAC;;;;"}
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@backstage/plugin-org",
3
- "version": "0.6.26-next.0",
3
+ "version": "0.6.26-next.2",
4
4
  "description": "A Backstage plugin that helps you create entity pages for your organization",
5
5
  "backstage": {
6
- "role": "frontend-plugin"
6
+ "role": "frontend-plugin",
7
+ "pluginId": "org",
8
+ "pluginPackages": [
9
+ "@backstage/plugin-org",
10
+ "@backstage/plugin-org-react"
11
+ ]
7
12
  },
8
13
  "publishConfig": {
9
14
  "access": "public"
@@ -46,12 +51,12 @@
46
51
  },
47
52
  "dependencies": {
48
53
  "@backstage/catalog-model": "^1.5.0",
49
- "@backstage/core-compat-api": "^0.2.6-next.0",
50
- "@backstage/core-components": "^0.14.8-next.0",
51
- "@backstage/core-plugin-api": "^1.9.2",
52
- "@backstage/frontend-plugin-api": "^0.6.6-next.0",
53
- "@backstage/plugin-catalog-common": "^1.0.23",
54
- "@backstage/plugin-catalog-react": "^1.12.1-next.0",
54
+ "@backstage/core-compat-api": "^0.2.6-next.2",
55
+ "@backstage/core-components": "^0.14.8-next.2",
56
+ "@backstage/core-plugin-api": "^1.9.3-next.0",
57
+ "@backstage/frontend-plugin-api": "^0.6.6-next.2",
58
+ "@backstage/plugin-catalog-common": "^1.0.24-next.0",
59
+ "@backstage/plugin-catalog-react": "^1.12.1-next.2",
55
60
  "@material-ui/core": "^4.12.2",
56
61
  "@material-ui/icons": "^4.9.1",
57
62
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -64,13 +69,13 @@
64
69
  },
65
70
  "devDependencies": {
66
71
  "@backstage/catalog-client": "^1.6.5",
67
- "@backstage/cli": "^0.26.6-next.0",
68
- "@backstage/core-app-api": "^1.12.5",
69
- "@backstage/dev-utils": "^1.0.33-next.0",
70
- "@backstage/plugin-catalog": "^1.20.1-next.0",
71
- "@backstage/plugin-permission-common": "^0.7.13",
72
- "@backstage/plugin-permission-react": "^0.4.22",
73
- "@backstage/test-utils": "^1.5.6-next.0",
72
+ "@backstage/cli": "^0.26.7-next.3",
73
+ "@backstage/core-app-api": "^1.12.6-next.0",
74
+ "@backstage/dev-utils": "^1.0.33-next.2",
75
+ "@backstage/plugin-catalog": "^1.21.0-next.3",
76
+ "@backstage/plugin-permission-common": "^0.7.14-next.0",
77
+ "@backstage/plugin-permission-react": "^0.4.23-next.1",
78
+ "@backstage/test-utils": "^1.5.6-next.2",
74
79
  "@backstage/types": "^1.1.1",
75
80
  "@testing-library/dom": "^10.0.0",
76
81
  "@testing-library/jest-dom": "^6.0.0",