@backstage/plugin-notifications 0.5.11-next.1 → 0.5.12-next.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,31 @@
1
1
  # @backstage/plugin-notifications
2
2
 
3
+ ## 0.5.12-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
8
+ - Updated dependencies
9
+ - @backstage/frontend-plugin-api@0.13.2-next.0
10
+ - @backstage/core-plugin-api@1.12.1-next.0
11
+ - @backstage/theme@0.7.1-next.0
12
+ - @backstage/core-components@0.18.4-next.0
13
+ - @backstage/plugin-signals-react@0.0.18-next.0
14
+ - @backstage/errors@1.2.7
15
+ - @backstage/plugin-notifications-common@0.2.0
16
+
17
+ ## 0.5.11
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+ - @backstage/frontend-plugin-api@0.13.0
23
+ - @backstage/core-compat-api@0.5.4
24
+ - @backstage/plugin-notifications-common@0.2.0
25
+ - @backstage/core-components@0.18.3
26
+ - @backstage/core-plugin-api@1.12.0
27
+ - @backstage/plugin-signals-react@0.0.17
28
+
3
29
  ## 0.5.11-next.1
4
30
 
5
31
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
3
+ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
3
4
 
4
5
  /** @alpha */
5
6
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
6
- root: _backstage_frontend_plugin_api.RouteRef<undefined>;
7
+ root: _backstage_core_plugin_api.RouteRef<undefined>;
7
8
  }, {}, {
8
- "api:notifications": _backstage_frontend_plugin_api.ExtensionDefinition<{
9
+ "api:notifications": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
9
10
  kind: "api";
10
11
  name: undefined;
11
12
  config: {};
@@ -14,7 +15,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
14
15
  inputs: {};
15
16
  params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
16
17
  }>;
17
- "page:notifications": _backstage_frontend_plugin_api.ExtensionDefinition<{
18
+ "page:notifications": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
18
19
  kind: "page";
19
20
  name: undefined;
20
21
  config: {
package/dist/alpha.esm.js CHANGED
@@ -1,17 +1,14 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { PageBlueprint, ApiBlueprint, fetchApiRef, discoveryApiRef, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
3
  import { rootRouteRef } from './routes.esm.js';
4
- import { convertLegacyRouteRef, compatWrapper, convertLegacyRouteRefs } from '@backstage/core-compat-api';
5
4
  import { notificationsApiRef } from './api/NotificationsApi.esm.js';
6
5
  import { NotificationsClient } from './api/NotificationsClient.esm.js';
7
6
 
8
7
  const page = PageBlueprint.make({
9
8
  params: {
10
9
  path: "/notifications",
11
- routeRef: convertLegacyRouteRef(rootRouteRef),
12
- loader: () => import('./components/NotificationsPage/index.esm.js').then(
13
- (m) => compatWrapper(/* @__PURE__ */ jsx(m.NotificationsPage, {}))
14
- )
10
+ routeRef: rootRouteRef,
11
+ loader: () => import('./components/NotificationsPage/index.esm.js').then((m) => /* @__PURE__ */ jsx(m.NotificationsPage, {}))
15
12
  }
16
13
  });
17
14
  const api = ApiBlueprint.make({
@@ -24,9 +21,9 @@ const api = ApiBlueprint.make({
24
21
  var alpha = createFrontendPlugin({
25
22
  pluginId: "notifications",
26
23
  info: { packageJson: () => import('./package.json.esm.js') },
27
- routes: convertLegacyRouteRefs({
24
+ routes: {
28
25
  root: rootRouteRef
29
- }),
26
+ },
30
27
  // TODO(Rugvip): Nav item (i.e. NotificationsSidebarItem) currently needs to be installed manually
31
28
  extensions: [page, api]
32
29
  });
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 */\n\nimport {\n ApiBlueprint,\n PageBlueprint,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { rootRouteRef } from './routes';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport { NotificationsClient, notificationsApiRef } from './api';\n\nconst page = PageBlueprint.make({\n params: {\n path: '/notifications',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('./components/NotificationsPage').then(m =>\n compatWrapper(<m.NotificationsPage />),\n ),\n },\n});\n\nconst api = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: notificationsApiRef,\n deps: { discoveryApi: discoveryApiRef, fetchApi: fetchApiRef },\n factory: ({ discoveryApi, fetchApi }) =>\n new NotificationsClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'notifications',\n info: { packageJson: () => import('../package.json') },\n routes: convertLegacyRouteRefs({\n root: rootRouteRef,\n }),\n // TODO(Rugvip): Nav item (i.e. NotificationsSidebarItem) currently needs to be installed manually\n extensions: [page, api],\n});\n"],"names":[],"mappings":";;;;;;;AA+BA,MAAM,IAAA,GAAO,cAAc,IAAA,CAAK;AAAA,EAC9B,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,gBAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAA,EAAQ,MACN,OAAO,6CAAgC,CAAA,CAAE,IAAA;AAAA,MAAK,OAC5C,aAAA,iBAAc,GAAA,CAAC,CAAA,CAAE,iBAAA,EAAF,EAAoB,CAAE;AAAA;AACvC;AAEN,CAAC,CAAA;AAED,MAAM,GAAA,GAAM,aAAa,IAAA,CAAK;AAAA,EAC5B,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,mBAAA;AAAA,IACL,IAAA,EAAM,EAAE,YAAA,EAAc,eAAA,EAAiB,UAAU,WAAA,EAAY;AAAA,IAC7D,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,QAAA,EAAS,KACjC,IAAI,mBAAA,CAAoB,EAAE,YAAA,EAAc,QAAA,EAAU;AAAA,GACrD;AACL,CAAC,CAAA;AAGD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,eAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAA,EAAE;AAAA,EACrD,QAAQ,sBAAA,CAAuB;AAAA,IAC7B,IAAA,EAAM;AAAA,GACP,CAAA;AAAA;AAAA,EAED,UAAA,EAAY,CAAC,IAAA,EAAM,GAAG;AACxB,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 */\n\nimport {\n ApiBlueprint,\n PageBlueprint,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { rootRouteRef } from './routes';\nimport { NotificationsClient, notificationsApiRef } from './api';\n\nconst page = PageBlueprint.make({\n params: {\n path: '/notifications',\n routeRef: rootRouteRef,\n loader: () =>\n import('./components/NotificationsPage').then(m => (\n <m.NotificationsPage />\n )),\n },\n});\n\nconst api = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: notificationsApiRef,\n deps: { discoveryApi: discoveryApiRef, fetchApi: fetchApiRef },\n factory: ({ discoveryApi, fetchApi }) =>\n new NotificationsClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'notifications',\n info: { packageJson: () => import('../package.json') },\n routes: {\n root: rootRouteRef,\n },\n // TODO(Rugvip): Nav item (i.e. NotificationsSidebarItem) currently needs to be installed manually\n extensions: [page, api],\n});\n"],"names":[],"mappings":";;;;;;AA0BA,MAAM,IAAA,GAAO,cAAc,IAAA,CAAK;AAAA,EAC9B,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,gBAAA;AAAA,IACN,QAAA,EAAU,YAAA;AAAA,IACV,MAAA,EAAQ,MACN,OAAO,6CAAgC,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,qBAC5C,GAAA,CAAC,CAAA,CAAE,iBAAA,EAAF,EAAoB,CACtB;AAAA;AAEP,CAAC,CAAA;AAED,MAAM,GAAA,GAAM,aAAa,IAAA,CAAK;AAAA,EAC5B,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,mBAAA;AAAA,IACL,IAAA,EAAM,EAAE,YAAA,EAAc,eAAA,EAAiB,UAAU,WAAA,EAAY;AAAA,IAC7D,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,QAAA,EAAS,KACjC,IAAI,mBAAA,CAAoB,EAAE,YAAA,EAAc,QAAA,EAAU;AAAA,GACrD;AACL,CAAC,CAAA;AAGD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,eAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAA,EAAE;AAAA,EACrD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,EAAM,GAAG;AACxB,CAAC,CAAA;;;;"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-notifications";
2
- var version = "0.5.11-next.1";
2
+ var version = "0.5.12-next.0";
3
3
  var backstage = {
4
4
  role: "frontend-plugin",
5
5
  pluginId: "notifications",
@@ -50,7 +50,6 @@ var scripts = {
50
50
  test: "backstage-cli package test"
51
51
  };
52
52
  var dependencies = {
53
- "@backstage/core-compat-api": "workspace:^",
54
53
  "@backstage/core-components": "workspace:^",
55
54
  "@backstage/core-plugin-api": "workspace:^",
56
55
  "@backstage/errors": "workspace:^",
@@ -1 +1 @@
1
- {"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-notifications",
3
- "version": "0.5.11-next.1",
3
+ "version": "0.5.12-next.0",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "notifications",
@@ -63,14 +63,13 @@
63
63
  "test": "backstage-cli package test"
64
64
  },
65
65
  "dependencies": {
66
- "@backstage/core-compat-api": "0.5.4-next.0",
67
- "@backstage/core-components": "0.18.3-next.2",
68
- "@backstage/core-plugin-api": "1.11.2-next.1",
66
+ "@backstage/core-components": "0.18.4-next.0",
67
+ "@backstage/core-plugin-api": "1.12.1-next.0",
69
68
  "@backstage/errors": "1.2.7",
70
- "@backstage/frontend-plugin-api": "0.12.2-next.2",
71
- "@backstage/plugin-notifications-common": "0.2.0-next.1",
72
- "@backstage/plugin-signals-react": "0.0.17-next.0",
73
- "@backstage/theme": "0.7.0",
69
+ "@backstage/frontend-plugin-api": "0.13.2-next.0",
70
+ "@backstage/plugin-notifications-common": "0.2.0",
71
+ "@backstage/plugin-signals-react": "0.0.18-next.0",
72
+ "@backstage/theme": "0.7.1-next.0",
74
73
  "@material-ui/core": "^4.9.13",
75
74
  "@material-ui/icons": "^4.9.1",
76
75
  "lodash": "^4.17.21",
@@ -80,10 +79,10 @@
80
79
  "react-use": "^17.2.4"
81
80
  },
82
81
  "devDependencies": {
83
- "@backstage/cli": "0.34.5-next.1",
84
- "@backstage/dev-utils": "1.1.17-next.1",
85
- "@backstage/plugin-signals": "0.0.25-next.1",
86
- "@backstage/test-utils": "1.7.13-next.0",
82
+ "@backstage/cli": "0.34.6-next.0",
83
+ "@backstage/dev-utils": "1.1.18-next.0",
84
+ "@backstage/plugin-signals": "0.0.26-next.0",
85
+ "@backstage/test-utils": "1.7.14-next.0",
87
86
  "@testing-library/jest-dom": "^6.0.0",
88
87
  "@testing-library/react": "^16.0.0",
89
88
  "@types/react": "^18.0.0",