@backstage/plugin-home 0.7.10-next.1 → 0.7.10-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,28 @@
1
1
  # @backstage/plugin-home
2
2
 
3
+ ## 0.7.10-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c891b69: Add `FavoriteToggle` in `core-components` to standardise favorite marking
8
+ - 836127c: Updated dependency `@testing-library/react` to `^16.0.0`.
9
+ - fa9d8da: Updated dependency `@rjsf/utils` to `5.20.1`.
10
+ Updated dependency `@rjsf/core` to `5.20.1`.
11
+ Updated dependency `@rjsf/material-ui` to `5.20.1`.
12
+ Updated dependency `@rjsf/validator-ajv8` to `5.20.1`.
13
+ - Updated dependencies
14
+ - @backstage/core-components@0.14.11-next.1
15
+ - @backstage/plugin-catalog-react@1.13.0-next.2
16
+ - @backstage/core-app-api@1.14.3-next.0
17
+ - @backstage/catalog-client@1.7.0-next.1
18
+ - @backstage/core-compat-api@0.3.0-next.2
19
+ - @backstage/core-plugin-api@1.9.4-next.0
20
+ - @backstage/frontend-plugin-api@0.8.0-next.2
21
+ - @backstage/theme@0.5.7-next.0
22
+ - @backstage/plugin-home-react@0.1.17-next.1
23
+ - @backstage/catalog-model@1.6.0
24
+ - @backstage/config@1.2.0
25
+
3
26
  ## 0.7.10-next.1
4
27
 
5
28
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home__alpha",
3
- "version": "0.7.10-next.1",
3
+ "version": "0.7.10-next.2",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
@@ -2,28 +2,26 @@ import { stringifyEntityRef } from '@backstage/catalog-model';
2
2
  import { entityRouteRef, entityRouteParams } from '@backstage/plugin-catalog-react';
3
3
  import ListItem from '@material-ui/core/ListItem';
4
4
  import ListItemIcon from '@material-ui/core/ListItemIcon';
5
- import Tooltip from '@material-ui/core/Tooltip';
6
- import IconButton from '@material-ui/core/IconButton';
7
5
  import ListItemText from '@material-ui/core/ListItemText';
8
6
  import React from 'react';
9
7
  import { Link } from 'react-router-dom';
10
8
  import { useRouteRef } from '@backstage/core-plugin-api';
11
- import StarIcon from '@material-ui/icons/Star';
9
+ import { FavoriteToggle } from '@backstage/core-components';
12
10
 
13
11
  const StarredEntityListItem = ({
14
12
  entity,
15
13
  onToggleStarredEntity
16
14
  }) => {
17
15
  const catalogEntityRoute = useRouteRef(entityRouteRef);
18
- return /* @__PURE__ */ React.createElement(ListItem, { key: stringifyEntityRef(entity) }, /* @__PURE__ */ React.createElement(ListItemIcon, null, /* @__PURE__ */ React.createElement(Tooltip, { title: "Remove from starred" }, /* @__PURE__ */ React.createElement(
19
- IconButton,
16
+ return /* @__PURE__ */ React.createElement(ListItem, { key: stringifyEntityRef(entity) }, /* @__PURE__ */ React.createElement(ListItemIcon, null, /* @__PURE__ */ React.createElement(
17
+ FavoriteToggle,
20
18
  {
21
- edge: "end",
22
- "aria-label": "unstar",
23
- onClick: () => onToggleStarredEntity(entity)
24
- },
25
- /* @__PURE__ */ React.createElement(StarIcon, { style: { color: "#f3ba37" } })
26
- ))), /* @__PURE__ */ React.createElement(Link, { to: catalogEntityRoute(entityRouteParams(entity)) }, /* @__PURE__ */ React.createElement(ListItemText, { primary: entity.metadata.title ?? entity.metadata.name })));
19
+ id: `remove-favorite-${entity.metadata.uid}`,
20
+ title: "Remove entity from favorites",
21
+ isFavorite: true,
22
+ onToggle: () => onToggleStarredEntity(entity)
23
+ }
24
+ )), /* @__PURE__ */ React.createElement(Link, { to: catalogEntityRoute(entityRouteParams(entity)) }, /* @__PURE__ */ React.createElement(ListItemText, { primary: entity.metadata.title ?? entity.metadata.name })));
27
25
  };
28
26
 
29
27
  export { StarredEntityListItem };
@@ -1 +1 @@
1
- {"version":3,"file":"StarredEntityListItem.esm.js","sources":["../../../src/components/StarredEntityListItem/StarredEntityListItem.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 { Entity, stringifyEntityRef } from '@backstage/catalog-model';\nimport { entityRouteParams } from '@backstage/plugin-catalog-react';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport IconButton from '@material-ui/core/IconButton';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport React from 'react';\nimport { Link } from 'react-router-dom';\nimport { entityRouteRef } from '@backstage/plugin-catalog-react';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport StarIcon from '@material-ui/icons/Star';\n\ntype EntityListItemProps = {\n entity: Entity;\n onToggleStarredEntity: (entity: Entity) => void;\n};\n\nexport const StarredEntityListItem = ({\n entity,\n onToggleStarredEntity,\n}: EntityListItemProps) => {\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n\n return (\n <ListItem key={stringifyEntityRef(entity)}>\n <ListItemIcon>\n <Tooltip title=\"Remove from starred\">\n <IconButton\n edge=\"end\"\n aria-label=\"unstar\"\n onClick={() => onToggleStarredEntity(entity)}\n >\n <StarIcon style={{ color: '#f3ba37' }} />\n </IconButton>\n </Tooltip>\n </ListItemIcon>\n <Link to={catalogEntityRoute(entityRouteParams(entity))}>\n <ListItemText primary={entity.metadata.title ?? entity.metadata.name} />\n </Link>\n </ListItem>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;AAiCO,MAAM,wBAAwB,CAAC;AAAA,EACpC,MAAA;AAAA,EACA,qBAAA;AACF,CAA2B,KAAA;AACzB,EAAM,MAAA,kBAAA,GAAqB,YAAY,cAAc,CAAA,CAAA;AAErD,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAS,EAAA,EAAA,GAAA,EAAK,kBAAmB,CAAA,MAAM,CACtC,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,YACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,OAAQ,EAAA,EAAA,KAAA,EAAM,qBACb,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,IAAK,EAAA,KAAA;AAAA,MACL,YAAW,EAAA,QAAA;AAAA,MACX,OAAA,EAAS,MAAM,qBAAA,CAAsB,MAAM,CAAA;AAAA,KAAA;AAAA,wCAE1C,QAAS,EAAA,EAAA,KAAA,EAAO,EAAE,KAAA,EAAO,WAAa,EAAA,CAAA;AAAA,GAE3C,CACF,CACA,kBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,EAAI,EAAA,kBAAA,CAAmB,kBAAkB,MAAM,CAAC,qBACnD,KAAA,CAAA,aAAA,CAAA,YAAA,EAAA,EAAa,SAAS,MAAO,CAAA,QAAA,CAAS,SAAS,MAAO,CAAA,QAAA,CAAS,IAAM,EAAA,CACxE,CACF,CAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"StarredEntityListItem.esm.js","sources":["../../../src/components/StarredEntityListItem/StarredEntityListItem.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 { Entity, stringifyEntityRef } from '@backstage/catalog-model';\nimport { entityRouteParams } from '@backstage/plugin-catalog-react';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\nimport React from 'react';\nimport { Link } from 'react-router-dom';\nimport { entityRouteRef } from '@backstage/plugin-catalog-react';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport { FavoriteToggle } from '@backstage/core-components';\n\ntype EntityListItemProps = {\n entity: Entity;\n onToggleStarredEntity: (entity: Entity) => void;\n};\n\nexport const StarredEntityListItem = ({\n entity,\n onToggleStarredEntity,\n}: EntityListItemProps) => {\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n\n return (\n <ListItem key={stringifyEntityRef(entity)}>\n <ListItemIcon>\n <FavoriteToggle\n id={`remove-favorite-${entity.metadata.uid}`}\n title=\"Remove entity from favorites\"\n isFavorite\n onToggle={() => onToggleStarredEntity(entity)}\n />\n </ListItemIcon>\n <Link to={catalogEntityRoute(entityRouteParams(entity))}>\n <ListItemText primary={entity.metadata.title ?? entity.metadata.name} />\n </Link>\n </ListItem>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AA+BO,MAAM,wBAAwB,CAAC;AAAA,EACpC,MAAA;AAAA,EACA,qBAAA;AACF,CAA2B,KAAA;AACzB,EAAM,MAAA,kBAAA,GAAqB,YAAY,cAAc,CAAA,CAAA;AAErD,EAAA,2CACG,QAAS,EAAA,EAAA,GAAA,EAAK,mBAAmB,MAAM,CAAA,EAAA,sCACrC,YACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,EAAI,EAAA,CAAA,gBAAA,EAAmB,MAAO,CAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AAAA,MAC1C,KAAM,EAAA,8BAAA;AAAA,MACN,UAAU,EAAA,IAAA;AAAA,MACV,QAAA,EAAU,MAAM,qBAAA,CAAsB,MAAM,CAAA;AAAA,KAAA;AAAA,GAEhD,mBACC,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAK,IAAI,kBAAmB,CAAA,iBAAA,CAAkB,MAAM,CAAC,CAAA,EAAA,sCACnD,YAAa,EAAA,EAAA,OAAA,EAAS,OAAO,QAAS,CAAA,KAAA,IAAS,OAAO,QAAS,CAAA,IAAA,EAAM,CACxE,CACF,CAAA,CAAA;AAEJ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-home",
3
- "version": "0.7.10-next.1",
3
+ "version": "0.7.10-next.2",
4
4
  "description": "A Backstage plugin that helps you build a home page",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -55,24 +55,24 @@
55
55
  "test": "backstage-cli package test"
56
56
  },
57
57
  "dependencies": {
58
- "@backstage/catalog-client": "^1.6.7-next.0",
58
+ "@backstage/catalog-client": "^1.7.0-next.1",
59
59
  "@backstage/catalog-model": "^1.6.0",
60
60
  "@backstage/config": "^1.2.0",
61
- "@backstage/core-app-api": "^1.14.2",
62
- "@backstage/core-compat-api": "^0.3.0-next.1",
63
- "@backstage/core-components": "^0.14.11-next.0",
64
- "@backstage/core-plugin-api": "^1.9.3",
65
- "@backstage/frontend-plugin-api": "^0.8.0-next.1",
66
- "@backstage/plugin-catalog-react": "^1.12.4-next.1",
67
- "@backstage/plugin-home-react": "^0.1.17-next.0",
68
- "@backstage/theme": "^0.5.6",
61
+ "@backstage/core-app-api": "^1.14.3-next.0",
62
+ "@backstage/core-compat-api": "^0.3.0-next.2",
63
+ "@backstage/core-components": "^0.14.11-next.1",
64
+ "@backstage/core-plugin-api": "^1.9.4-next.0",
65
+ "@backstage/frontend-plugin-api": "^0.8.0-next.2",
66
+ "@backstage/plugin-catalog-react": "^1.13.0-next.2",
67
+ "@backstage/plugin-home-react": "^0.1.17-next.1",
68
+ "@backstage/theme": "^0.5.7-next.0",
69
69
  "@material-ui/core": "^4.12.2",
70
70
  "@material-ui/icons": "^4.9.1",
71
71
  "@material-ui/lab": "4.0.0-alpha.61",
72
- "@rjsf/core": "5.18.5",
73
- "@rjsf/material-ui": "5.18.5",
74
- "@rjsf/utils": "5.18.5",
75
- "@rjsf/validator-ajv8": "5.18.5",
72
+ "@rjsf/core": "5.20.1",
73
+ "@rjsf/material-ui": "5.20.1",
74
+ "@rjsf/utils": "5.20.1",
75
+ "@rjsf/validator-ajv8": "5.20.1",
76
76
  "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
77
77
  "lodash": "^4.17.21",
78
78
  "luxon": "^3.4.3",
@@ -82,12 +82,12 @@
82
82
  "zod": "^3.22.4"
83
83
  },
84
84
  "devDependencies": {
85
- "@backstage/cli": "^0.27.1-next.1",
86
- "@backstage/dev-utils": "^1.0.38-next.1",
87
- "@backstage/test-utils": "^1.6.0-next.0",
85
+ "@backstage/cli": "^0.27.1-next.2",
86
+ "@backstage/dev-utils": "^1.1.0-next.2",
87
+ "@backstage/test-utils": "^1.6.0-next.1",
88
88
  "@testing-library/dom": "^10.0.0",
89
89
  "@testing-library/jest-dom": "^6.0.0",
90
- "@testing-library/react": "^15.0.0",
90
+ "@testing-library/react": "^16.0.0",
91
91
  "@testing-library/user-event": "^14.0.0",
92
92
  "@types/react-grid-layout": "^1.3.2"
93
93
  },