@backstage-community/plugin-announcements 0.6.0 → 0.7.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 +20 -0
- package/dist/components/AnnouncementForm/OnBehalfTeamDropdown.esm.js +33 -6
- package/dist/components/AnnouncementForm/OnBehalfTeamDropdown.esm.js.map +1 -1
- package/dist/components/Router.esm.js +3 -0
- package/dist/components/Router.esm.js.map +1 -1
- package/package.json +20 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @backstage-community/plugin-announcements
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7e38fa0: Backstage version bump to v1.39.1
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- dc57fe9: Optimize query by filtering only entries with `kind: group`. Add `displayName` to the "On behalf of" dropdown for easier group identification and selection.
|
|
12
|
+
- Updated dependencies [7e38fa0]
|
|
13
|
+
- Updated dependencies [dc57fe9]
|
|
14
|
+
- @backstage-community/plugin-announcements-common@0.5.0
|
|
15
|
+
- @backstage-community/plugin-announcements-react@0.6.0
|
|
16
|
+
|
|
17
|
+
## 0.6.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- e4bd3e6: remove direct dependency on '@types/node'
|
|
22
|
+
|
|
3
23
|
## 0.6.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -6,7 +6,16 @@ import { useApi, identityApiRef } from '@backstage/core-plugin-api';
|
|
|
6
6
|
import { useAnnouncementsTranslation, useCatalogEntities } from '@backstage-community/plugin-announcements-react';
|
|
7
7
|
import useAsync from 'react-use/esm/useAsync';
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
+
import { stringifyEntityRef } from '@backstage/catalog-model';
|
|
10
|
+
import Box from '@mui/material/Box';
|
|
11
|
+
import Typography from '@mui/material/Typography';
|
|
9
12
|
|
|
13
|
+
function getTeamDisplayName(team) {
|
|
14
|
+
if (team.kind && team.kind.toLowerCase() === "group") {
|
|
15
|
+
return team.spec?.profile?.displayName ?? "";
|
|
16
|
+
}
|
|
17
|
+
return "";
|
|
18
|
+
}
|
|
10
19
|
function OnBehalfTeamDropdown({
|
|
11
20
|
selectedTeam,
|
|
12
21
|
onChange
|
|
@@ -18,23 +27,41 @@ function OnBehalfTeamDropdown({
|
|
|
18
27
|
return [identity.userEntityRef, ...identity.ownershipEntityRefs];
|
|
19
28
|
}, [identityApi]);
|
|
20
29
|
const { entities: teams, loading: teamsLoading } = useCatalogEntities(
|
|
21
|
-
userOwns ?? []
|
|
30
|
+
userOwns ?? [],
|
|
31
|
+
// refs
|
|
32
|
+
"",
|
|
33
|
+
// searchTerm
|
|
34
|
+
10,
|
|
35
|
+
// limit
|
|
36
|
+
0,
|
|
37
|
+
// offset
|
|
38
|
+
"Group"
|
|
39
|
+
// kind
|
|
22
40
|
);
|
|
23
41
|
const teamOptions = useMemo(() => {
|
|
24
|
-
return teams.
|
|
25
|
-
(team)
|
|
26
|
-
|
|
42
|
+
return teams.map((team) => ({
|
|
43
|
+
entityRef: stringifyEntityRef(team),
|
|
44
|
+
displayName: getTeamDisplayName(team)
|
|
45
|
+
}));
|
|
27
46
|
}, [teams]);
|
|
47
|
+
const selectedTeamOption = useMemo(() => {
|
|
48
|
+
return teamOptions.find((team) => team.entityRef === selectedTeam) || null;
|
|
49
|
+
}, [teamOptions, selectedTeam]);
|
|
28
50
|
return /* @__PURE__ */ jsx(
|
|
29
51
|
Autocomplete,
|
|
30
52
|
{
|
|
31
|
-
value:
|
|
53
|
+
value: selectedTeamOption,
|
|
32
54
|
onChange: (_, newValue) => {
|
|
33
|
-
onChange(
|
|
55
|
+
onChange(newValue?.entityRef || "");
|
|
34
56
|
},
|
|
35
57
|
options: teamOptions,
|
|
58
|
+
getOptionLabel: (team) => team.entityRef,
|
|
36
59
|
loading: teamsLoading,
|
|
37
60
|
id: "team-dropdown-field",
|
|
61
|
+
renderOption: (props, team) => /* @__PURE__ */ jsx(Box, { component: "li", ...props, children: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column" }, children: [
|
|
62
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body1", children: team.entityRef }),
|
|
63
|
+
team.displayName && /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "text.secondary", children: team.displayName })
|
|
64
|
+
] }) }),
|
|
38
65
|
renderInput: (params) => /* @__PURE__ */ jsx(
|
|
39
66
|
TextField,
|
|
40
67
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfTeamDropdown.esm.js","sources":["../../../src/components/AnnouncementForm/OnBehalfTeamDropdown.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 */\nimport TextField from '@mui/material/TextField';\nimport Autocomplete from '@mui/material/Autocomplete';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { identityApiRef, useApi } from '@backstage/core-plugin-api';\nimport {\n useAnnouncementsTranslation,\n useCatalogEntities,\n} from '@backstage-community/plugin-announcements-react';\nimport useAsync from 'react-use/esm/useAsync';\nimport { useMemo } from 'react';\n\ntype OnBehalfTeamDropdownProps = {\n selectedTeam: string;\n onChange: (team: string) => void;\n};\n\nexport default function OnBehalfTeamDropdown({\n selectedTeam,\n onChange,\n}: OnBehalfTeamDropdownProps) {\n const { t } = useAnnouncementsTranslation();\n const identityApi = useApi(identityApiRef);\n\n const { value: userOwns } = useAsync(async () => {\n const identity = await identityApi.getBackstageIdentity();\n return [identity.userEntityRef, ...identity.ownershipEntityRefs];\n }, [identityApi]);\n\n const { entities: teams, loading: teamsLoading } = useCatalogEntities(\n userOwns ?? []
|
|
1
|
+
{"version":3,"file":"OnBehalfTeamDropdown.esm.js","sources":["../../../src/components/AnnouncementForm/OnBehalfTeamDropdown.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 */\nimport TextField from '@mui/material/TextField';\nimport Autocomplete from '@mui/material/Autocomplete';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport { identityApiRef, useApi } from '@backstage/core-plugin-api';\nimport {\n useAnnouncementsTranslation,\n useCatalogEntities,\n} from '@backstage-community/plugin-announcements-react';\nimport useAsync from 'react-use/esm/useAsync';\nimport { useMemo } from 'react';\nimport { stringifyEntityRef } from '@backstage/catalog-model';\nimport Box from '@mui/material/Box';\nimport Typography from '@mui/material/Typography';\n\ntype OnBehalfTeamDropdownProps = {\n selectedTeam: string;\n onChange: (team: string) => void;\n};\n\nfunction getTeamDisplayName(team: any): string {\n if (team.kind && team.kind.toLowerCase() === 'group') {\n return team.spec?.profile?.displayName ?? '';\n }\n return '';\n}\n\nexport default function OnBehalfTeamDropdown({\n selectedTeam,\n onChange,\n}: OnBehalfTeamDropdownProps) {\n const { t } = useAnnouncementsTranslation();\n const identityApi = useApi(identityApiRef);\n\n const { value: userOwns } = useAsync(async () => {\n const identity = await identityApi.getBackstageIdentity();\n return [identity.userEntityRef, ...identity.ownershipEntityRefs];\n }, [identityApi]);\n\n const { entities: teams, loading: teamsLoading } = useCatalogEntities(\n userOwns ?? [], // refs\n '', // searchTerm\n 10, // limit\n 0, // offset\n 'Group', // kind\n );\n\n const teamOptions = useMemo(() => {\n return teams.map(team => ({\n entityRef: stringifyEntityRef(team),\n displayName: getTeamDisplayName(team),\n }));\n }, [teams]);\n\n const selectedTeamOption = useMemo(() => {\n return teamOptions.find(team => team.entityRef === selectedTeam) || null;\n }, [teamOptions, selectedTeam]);\n\n return (\n <Autocomplete\n value={selectedTeamOption}\n onChange={(_, newValue) => {\n onChange(newValue?.entityRef || '');\n }}\n options={teamOptions}\n getOptionLabel={team => team.entityRef}\n loading={teamsLoading}\n id=\"team-dropdown-field\"\n renderOption={(props, team) => (\n <Box component=\"li\" {...props}>\n <Box sx={{ display: 'flex', flexDirection: 'column' }}>\n <Typography variant=\"body1\">{team.entityRef}</Typography>\n {team.displayName && (\n <Typography variant=\"caption\" color=\"text.secondary\">\n {team.displayName}\n </Typography>\n )}\n </Box>\n </Box>\n )}\n renderInput={params => (\n <TextField\n {...params}\n id=\"team\"\n label={t('announcementForm.onBehalfOf')}\n InputProps={{\n ...params.InputProps,\n endAdornment: (\n <>\n {teamsLoading ? (\n <CircularProgress color=\"inherit\" size={20} />\n ) : null}\n {params.InputProps.endAdornment}\n </>\n ),\n }}\n />\n )}\n />\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAkCA,SAAS,mBAAmB,IAAmB,EAAA;AAC7C,EAAA,IAAI,KAAK,IAAQ,IAAA,IAAA,CAAK,IAAK,CAAA,WAAA,OAAkB,OAAS,EAAA;AACpD,IAAO,OAAA,IAAA,CAAK,IAAM,EAAA,OAAA,EAAS,WAAe,IAAA,EAAA;AAAA;AAE5C,EAAO,OAAA,EAAA;AACT;AAEA,SAAwB,oBAAqB,CAAA;AAAA,EAC3C,YAAA;AAAA,EACA;AACF,CAA8B,EAAA;AAC5B,EAAM,MAAA,EAAE,CAAE,EAAA,GAAI,2BAA4B,EAAA;AAC1C,EAAM,MAAA,WAAA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,EAAA,YAAA;AAAA,MACT,EAAG,EAAA,qBAAA;AAAA,MACH,cAAc,CAAC,KAAA,EAAO,yBACnB,GAAA,CAAA,GAAA,EAAA,EAAI,WAAU,IAAM,EAAA,GAAG,KACtB,EAAA,QAAA,kBAAA,IAAA,CAAC,OAAI,EAAI,EAAA,EAAE,SAAS,MAAQ,EAAA,aAAA,EAAe,UACzC,EAAA,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,UAAW,EAAA,EAAA,OAAA,EAAQ,OAAS,EAAA,QAAA,EAAA,IAAA,CAAK,SAAU,EAAA,CAAA;AAAA,QAC3C,IAAA,CAAK,+BACH,GAAA,CAAA,UAAA,EAAA,EAAW,SAAQ,SAAU,EAAA,KAAA,EAAM,gBACjC,EAAA,QAAA,EAAA,IAAA,CAAK,WACR,EAAA;AAAA,OAAA,EAEJ,CACF,EAAA,CAAA;AAAA,MAEF,aAAa,CACX,MAAA,qBAAA,GAAA;AAAA,QAAC,SAAA;AAAA,QAAA;AAAA,UACE,GAAG,MAAA;AAAA,UACJ,EAAG,EAAA,MAAA;AAAA,UACH,KAAA,EAAO,EAAE,6BAA6B,CAAA;AAAA,UACtC,UAAY,EAAA;AAAA,YACV,GAAG,MAAO,CAAA,UAAA;AAAA,YACV,8BAEK,IAAA,CAAA,QAAA,EAAA,EAAA,QAAA,EAAA;AAAA,cAAA,YAAA,uBACE,gBAAiB,EAAA,EAAA,KAAA,EAAM,SAAU,EAAA,IAAA,EAAM,IAAI,CAC1C,GAAA,IAAA;AAAA,cACH,OAAO,UAAW,CAAA;AAAA,aACrB,EAAA;AAAA;AAEJ;AAAA;AACF;AAAA,GAEJ;AAEJ;;;;"}
|
|
@@ -21,6 +21,9 @@ import '@mui/material/TextField';
|
|
|
21
21
|
import '@mui/material/Autocomplete';
|
|
22
22
|
import '@mui/material/CircularProgress';
|
|
23
23
|
import 'react-use/esm/useAsync';
|
|
24
|
+
import '@backstage/catalog-model';
|
|
25
|
+
import '@mui/material/Box';
|
|
26
|
+
import '@mui/material/Typography';
|
|
24
27
|
import '@material-ui/icons/SaveAlt';
|
|
25
28
|
import 'luxon';
|
|
26
29
|
import 'slugify';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Router.esm.js","sources":["../../src/components/Router.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { Routes, Route } from 'react-router-dom';\nimport { RequirePermission } from '@backstage/plugin-permission-react';\nimport {\n announcementCreatePermission,\n announcementUpdatePermission,\n} from '@backstage-community/plugin-announcements-common';\nimport {\n announcementAdminRouteRef,\n announcementCreateRouteRef,\n announcementEditRouteRef,\n announcementViewRouteRef,\n categoriesListRouteRef,\n} from '../routes';\nimport { AnnouncementsPage, AnnouncementsPageProps } from './AnnouncementsPage';\nimport { AnnouncementPage } from './AnnouncementPage';\nimport { CreateAnnouncementPage } from './CreateAnnouncementPage';\nimport { EditAnnouncementPage } from './EditAnnouncementPage';\nimport { CategoriesPage } from './CategoriesPage';\nimport { AdminPortal } from './Admin';\n\ntype RouterProps = {\n themeId?: string;\n title?: string;\n subtitle?: string;\n category?: string;\n hideContextMenu?: boolean;\n cardOptions?: {\n titleLength: number | undefined;\n };\n buttonOptions?: {\n name: string | undefined;\n };\n hideInactive?: boolean;\n hideStartAt?: boolean;\n};\n\nexport const Router = (props: RouterProps) => {\n const propsWithDefaults: AnnouncementsPageProps = {\n themeId: 'home',\n title: 'Announcements',\n hideInactive: false,\n hideStartAt: false,\n ...props,\n };\n\n return (\n <Routes>\n <Route path=\"/\" element={<AnnouncementsPage {...propsWithDefaults} />} />\n <Route\n path={`${announcementViewRouteRef.path}`}\n element={<AnnouncementPage {...propsWithDefaults} />}\n />\n <Route\n path={`${announcementCreateRouteRef.path}`}\n element={\n <RequirePermission permission={announcementCreatePermission}>\n <CreateAnnouncementPage {...propsWithDefaults} />\n </RequirePermission>\n }\n />\n <Route\n path={`${announcementEditRouteRef.path}`}\n element={\n <RequirePermission permission={announcementUpdatePermission}>\n <EditAnnouncementPage {...propsWithDefaults} />\n </RequirePermission>\n }\n />\n <Route\n path={`${announcementAdminRouteRef.path}`}\n element={\n <RequirePermission permission={announcementCreatePermission}>\n <AdminPortal />\n </RequirePermission>\n }\n />\n\n <Route\n path={`${categoriesListRouteRef.path}`}\n element={<CategoriesPage themeId={propsWithDefaults.themeId} />}\n />\n </Routes>\n );\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Router.esm.js","sources":["../../src/components/Router.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { Routes, Route } from 'react-router-dom';\nimport { RequirePermission } from '@backstage/plugin-permission-react';\nimport {\n announcementCreatePermission,\n announcementUpdatePermission,\n} from '@backstage-community/plugin-announcements-common';\nimport {\n announcementAdminRouteRef,\n announcementCreateRouteRef,\n announcementEditRouteRef,\n announcementViewRouteRef,\n categoriesListRouteRef,\n} from '../routes';\nimport { AnnouncementsPage, AnnouncementsPageProps } from './AnnouncementsPage';\nimport { AnnouncementPage } from './AnnouncementPage';\nimport { CreateAnnouncementPage } from './CreateAnnouncementPage';\nimport { EditAnnouncementPage } from './EditAnnouncementPage';\nimport { CategoriesPage } from './CategoriesPage';\nimport { AdminPortal } from './Admin';\n\ntype RouterProps = {\n themeId?: string;\n title?: string;\n subtitle?: string;\n category?: string;\n hideContextMenu?: boolean;\n cardOptions?: {\n titleLength: number | undefined;\n };\n buttonOptions?: {\n name: string | undefined;\n };\n hideInactive?: boolean;\n hideStartAt?: boolean;\n};\n\nexport const Router = (props: RouterProps) => {\n const propsWithDefaults: AnnouncementsPageProps = {\n themeId: 'home',\n title: 'Announcements',\n hideInactive: false,\n hideStartAt: false,\n ...props,\n };\n\n return (\n <Routes>\n <Route path=\"/\" element={<AnnouncementsPage {...propsWithDefaults} />} />\n <Route\n path={`${announcementViewRouteRef.path}`}\n element={<AnnouncementPage {...propsWithDefaults} />}\n />\n <Route\n path={`${announcementCreateRouteRef.path}`}\n element={\n <RequirePermission permission={announcementCreatePermission}>\n <CreateAnnouncementPage {...propsWithDefaults} />\n </RequirePermission>\n }\n />\n <Route\n path={`${announcementEditRouteRef.path}`}\n element={\n <RequirePermission permission={announcementUpdatePermission}>\n <EditAnnouncementPage {...propsWithDefaults} />\n </RequirePermission>\n }\n />\n <Route\n path={`${announcementAdminRouteRef.path}`}\n element={\n <RequirePermission permission={announcementCreatePermission}>\n <AdminPortal />\n </RequirePermission>\n }\n />\n\n <Route\n path={`${categoriesListRouteRef.path}`}\n element={<CategoriesPage themeId={propsWithDefaults.themeId} />}\n />\n </Routes>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDa,MAAA,MAAA,GAAS,CAAC,KAAuB,KAAA;AAC5C,EAAA,MAAM,iBAA4C,GAAA;AAAA,IAChD,OAAS,EAAA,MAAA;AAAA,IACT,KAAO,EAAA,eAAA;AAAA,IACP,YAAc,EAAA,KAAA;AAAA,IACd,WAAa,EAAA,KAAA;AAAA,IACb,GAAG;AAAA,GACL;AAEA,EAAA,4BACG,MACC,EAAA,EAAA,QAAA,EAAA;AAAA,oBAAC,GAAA,CAAA,KAAA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AAAA,QACpC,OAAS,kBAAA,GAAA,CAAC,cAAe,EAAA,EAAA,OAAA,EAAS,kBAAkB,OAAS,EAAA;AAAA;AAAA;AAC/D,GACF,EAAA,CAAA;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-announcements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"main": "./dist/index.esm.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
"postpack": "backstage-cli package postpack"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@backstage-community/plugin-announcements-common": "^0.
|
|
65
|
-
"@backstage-community/plugin-announcements-react": "^0.
|
|
66
|
-
"@backstage/catalog-model": "^1.7.
|
|
67
|
-
"@backstage/core-app-api": "^1.
|
|
68
|
-
"@backstage/core-compat-api": "^0.4.
|
|
69
|
-
"@backstage/core-components": "^0.17.
|
|
70
|
-
"@backstage/core-plugin-api": "^1.10.
|
|
64
|
+
"@backstage-community/plugin-announcements-common": "^0.5.0",
|
|
65
|
+
"@backstage-community/plugin-announcements-react": "^0.6.0",
|
|
66
|
+
"@backstage/catalog-model": "^1.7.4",
|
|
67
|
+
"@backstage/core-app-api": "^1.17.0",
|
|
68
|
+
"@backstage/core-compat-api": "^0.4.2",
|
|
69
|
+
"@backstage/core-components": "^0.17.2",
|
|
70
|
+
"@backstage/core-plugin-api": "^1.10.7",
|
|
71
71
|
"@backstage/errors": "^1.2.7",
|
|
72
|
-
"@backstage/frontend-plugin-api": "^0.10.
|
|
73
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
74
|
-
"@backstage/plugin-permission-react": "^0.4.
|
|
75
|
-
"@backstage/plugin-search-common": "^1.2.
|
|
76
|
-
"@backstage/plugin-search-react": "^1.
|
|
77
|
-
"@backstage/plugin-signals-react": "^0.0.
|
|
78
|
-
"@backstage/theme": "^0.6.
|
|
72
|
+
"@backstage/frontend-plugin-api": "^0.10.2",
|
|
73
|
+
"@backstage/plugin-catalog-react": "^1.18.0",
|
|
74
|
+
"@backstage/plugin-permission-react": "^0.4.34",
|
|
75
|
+
"@backstage/plugin-search-common": "^1.2.18",
|
|
76
|
+
"@backstage/plugin-search-react": "^1.9.0",
|
|
77
|
+
"@backstage/plugin-signals-react": "^0.0.13",
|
|
78
|
+
"@backstage/theme": "^0.6.6",
|
|
79
79
|
"@material-ui/core": "^4.12.2",
|
|
80
80
|
"@material-ui/icons": "^4.11.3",
|
|
81
81
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -93,16 +93,15 @@
|
|
|
93
93
|
"react-router-dom": "^6.3.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@backstage/cli": "^0.32.
|
|
97
|
-
"@backstage/dev-utils": "^1.1.
|
|
98
|
-
"@backstage/frontend-test-utils": "^0.3.
|
|
99
|
-
"@backstage/plugin-signals": "^0.0.
|
|
100
|
-
"@backstage/test-utils": "^1.7.
|
|
96
|
+
"@backstage/cli": "^0.32.1",
|
|
97
|
+
"@backstage/dev-utils": "^1.1.10",
|
|
98
|
+
"@backstage/frontend-test-utils": "^0.3.2",
|
|
99
|
+
"@backstage/plugin-signals": "^0.0.19",
|
|
100
|
+
"@backstage/test-utils": "^1.7.8",
|
|
101
101
|
"@testing-library/jest-dom": "^6.3.0",
|
|
102
102
|
"@testing-library/react": "^14.0.0",
|
|
103
103
|
"@testing-library/user-event": "^14.5.1",
|
|
104
104
|
"@types/luxon": "^3.3.3",
|
|
105
|
-
"@types/node": "^18.18.7",
|
|
106
105
|
"cross-fetch": "^3.1.8",
|
|
107
106
|
"msw": "^1.3.2",
|
|
108
107
|
"react": "^17.0.0 || ^18.0.0",
|