@red-hat-developer-hub/backstage-plugin-global-header 1.2.0 → 1.3.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @red-hat-developer-hub/backstage-plugin-global-header
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d49d965: Backstage version bump to v1.36.1
8
+
9
+ ### Patch Changes
10
+
11
+ - 9562fd9: changing `Logout` text to `Sign Out`
12
+
3
13
  ## 1.2.0
4
14
 
5
15
  ### Minor Changes
@@ -15,7 +15,7 @@ const LogoutButton = () => {
15
15
  onClick: handleLogout,
16
16
  sx: { cursor: "pointer", width: "100%", color: "inherit" }
17
17
  },
18
- /* @__PURE__ */ React.createElement(MenuItemLinkContent, { icon: "logout", label: "Logout" })
18
+ /* @__PURE__ */ React.createElement(MenuItemLinkContent, { icon: "logout", label: "Sign out" })
19
19
  );
20
20
  };
21
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"LogoutButton.esm.js","sources":["../../../src/components/LogoutButton/LogoutButton.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 React from 'react';\n\nimport {\n errorApiRef,\n identityApiRef,\n useApi,\n} from '@backstage/core-plugin-api';\n\nimport Box from '@mui/material/Box';\n\nimport { MenuItemLinkContent } from '../MenuItemLink/MenuItemLinkContent';\n\nexport const LogoutButton = () => {\n const errorApi = useApi(errorApiRef);\n const identityApi = useApi(identityApiRef);\n\n const handleLogout = () => {\n identityApi.signOut().catch(error => errorApi.post(error));\n };\n\n // TODO switch to Button\n return (\n <Box\n onClick={handleLogout}\n sx={{ cursor: 'pointer', width: '100%', color: 'inherit' }}\n >\n <MenuItemLinkContent icon=\"logout\" label=\"Logout\" />\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;AA4BO,MAAM,eAAe,MAAM;AAChC,EAAM,MAAA,QAAA,GAAW,OAAO,WAAW,CAAA;AACnC,EAAM,MAAA,WAAA,GAAc,OAAO,cAAc,CAAA;AAEzC,EAAA,MAAM,eAAe,MAAM;AACzB,IAAA,WAAA,CAAY,SAAU,CAAA,KAAA,CAAM,WAAS,QAAS,CAAA,IAAA,CAAK,KAAK,CAAC,CAAA;AAAA,GAC3D;AAGA,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,OAAS,EAAA,YAAA;AAAA,MACT,IAAI,EAAE,MAAA,EAAQ,WAAW,KAAO,EAAA,MAAA,EAAQ,OAAO,SAAU;AAAA,KAAA;AAAA,oBAExD,KAAA,CAAA,aAAA,CAAA,mBAAA,EAAA,EAAoB,IAAK,EAAA,QAAA,EAAS,OAAM,QAAS,EAAA;AAAA,GACpD;AAEJ;;;;"}
1
+ {"version":3,"file":"LogoutButton.esm.js","sources":["../../../src/components/LogoutButton/LogoutButton.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 React from 'react';\n\nimport {\n errorApiRef,\n identityApiRef,\n useApi,\n} from '@backstage/core-plugin-api';\n\nimport Box from '@mui/material/Box';\n\nimport { MenuItemLinkContent } from '../MenuItemLink/MenuItemLinkContent';\n\nexport const LogoutButton = () => {\n const errorApi = useApi(errorApiRef);\n const identityApi = useApi(identityApiRef);\n\n const handleLogout = () => {\n identityApi.signOut().catch(error => errorApi.post(error));\n };\n\n // TODO switch to Button\n return (\n <Box\n onClick={handleLogout}\n sx={{ cursor: 'pointer', width: '100%', color: 'inherit' }}\n >\n <MenuItemLinkContent icon=\"logout\" label=\"Sign out\" />\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;AA4BO,MAAM,eAAe,MAAM;AAChC,EAAM,MAAA,QAAA,GAAW,OAAO,WAAW,CAAA;AACnC,EAAM,MAAA,WAAA,GAAc,OAAO,cAAc,CAAA;AAEzC,EAAA,MAAM,eAAe,MAAM;AACzB,IAAA,WAAA,CAAY,SAAU,CAAA,KAAA,CAAM,WAAS,QAAS,CAAA,IAAA,CAAK,KAAK,CAAC,CAAA;AAAA,GAC3D;AAGA,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,OAAS,EAAA,YAAA;AAAA,MACT,IAAI,EAAE,MAAA,EAAQ,WAAW,KAAO,EAAA,MAAA,EAAQ,OAAO,SAAU;AAAA,KAAA;AAAA,oBAExD,KAAA,CAAA,aAAA,CAAA,mBAAA,EAAA,EAAoB,IAAK,EAAA,QAAA,EAAS,OAAM,UAAW,EAAA;AAAA,GACtD;AAEJ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-global-header",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -34,20 +34,20 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@backstage/catalog-model": "^1.7.3",
37
- "@backstage/core-components": "^0.16.3",
38
- "@backstage/core-plugin-api": "^1.10.3",
39
- "@backstage/plugin-catalog-react": "^1.15.1",
40
- "@backstage/plugin-notifications": "^0.5.1",
37
+ "@backstage/core-components": "^0.16.4",
38
+ "@backstage/core-plugin-api": "^1.10.4",
39
+ "@backstage/plugin-catalog-react": "^1.15.2",
40
+ "@backstage/plugin-notifications": "^0.5.2",
41
41
  "@backstage/plugin-notifications-common": "^0.0.8",
42
- "@backstage/plugin-search": "^1.4.22",
43
- "@backstage/plugin-search-backend": "^1.8.1",
44
- "@backstage/plugin-search-backend-module-catalog": "^0.3.0",
45
- "@backstage/plugin-search-backend-module-pg": "^0.5.40",
46
- "@backstage/plugin-search-backend-module-techdocs": "^0.3.5",
42
+ "@backstage/plugin-search": "^1.4.23",
43
+ "@backstage/plugin-search-backend": "^1.8.2",
44
+ "@backstage/plugin-search-backend-module-catalog": "^0.3.1",
45
+ "@backstage/plugin-search-backend-module-pg": "^0.5.41",
46
+ "@backstage/plugin-search-backend-module-techdocs": "^0.3.6",
47
47
  "@backstage/plugin-search-common": "^1.2.17",
48
- "@backstage/plugin-search-react": "^1.8.5",
49
- "@backstage/plugin-signals-react": "^0.0.9",
50
- "@backstage/theme": "^0.6.3",
48
+ "@backstage/plugin-search-react": "^1.8.6",
49
+ "@backstage/plugin-signals-react": "^0.0.10",
50
+ "@backstage/theme": "^0.6.4",
51
51
  "@mui/icons-material": "5.16.14",
52
52
  "@mui/material": "5.16.14",
53
53
  "@mui/styled-engine": "5.16.14",
@@ -59,12 +59,12 @@
59
59
  "react-router-dom": "^6.0.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@backstage/cli": "^0.29.5",
63
- "@backstage/core-app-api": "^1.15.4",
64
- "@backstage/dev-utils": "^1.1.6",
65
- "@backstage/frontend-test-utils": "^0.2.5",
62
+ "@backstage/cli": "^0.30.0",
63
+ "@backstage/core-app-api": "^1.15.5",
64
+ "@backstage/dev-utils": "^1.1.7",
65
+ "@backstage/frontend-test-utils": "^0.2.6",
66
66
  "@backstage/plugin-search-common": "^1.2.17",
67
- "@backstage/test-utils": "^1.7.4",
67
+ "@backstage/test-utils": "^1.7.5",
68
68
  "@openshift/dynamic-plugin-sdk": "^5.0.1",
69
69
  "@redhat-developer/red-hat-developer-hub-theme": "^0.5.0",
70
70
  "@testing-library/jest-dom": "^6.0.0",