@backstage/plugin-notifications 0.5.2-next.2 → 0.5.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 +18 -0
- package/dist/alpha.d.ts +40 -0
- package/dist/alpha.esm.js +34 -0
- package/dist/alpha.esm.js.map +1 -0
- package/package.json +46 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @backstage/plugin-notifications
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 438c36c: added topic filter for notifications
|
|
8
|
+
- 005d241: Added support for the new frontend system via `/alpha` export.
|
|
9
|
+
- 58ec9e7: Removed older versions of React packages as a preparatory step for upgrading to React 19. This commit does not introduce any functional changes, but removes dependencies on previous React versions, allowing for a cleaner upgrade path in subsequent commits.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/core-components@0.16.4
|
|
12
|
+
- @backstage/frontend-plugin-api@0.9.5
|
|
13
|
+
- @backstage/core-compat-api@0.3.6
|
|
14
|
+
- @backstage/core-plugin-api@1.10.4
|
|
15
|
+
- @backstage/plugin-signals-react@0.0.10
|
|
16
|
+
- @backstage/theme@0.6.4
|
|
17
|
+
- @backstage/errors@1.2.7
|
|
18
|
+
- @backstage/types@1.2.1
|
|
19
|
+
- @backstage/plugin-notifications-common@0.0.8
|
|
20
|
+
|
|
3
21
|
## 0.5.2-next.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
/** @alpha */
|
|
5
|
+
declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
6
|
+
root: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
7
|
+
}, {}, {
|
|
8
|
+
"page:notifications": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
9
|
+
kind: "page";
|
|
10
|
+
name: undefined;
|
|
11
|
+
config: {
|
|
12
|
+
path: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
configInput: {
|
|
15
|
+
path?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
18
|
+
optional: true;
|
|
19
|
+
}>;
|
|
20
|
+
inputs: {};
|
|
21
|
+
params: {
|
|
22
|
+
defaultPath: string;
|
|
23
|
+
loader: () => Promise<JSX.Element>;
|
|
24
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
"api:notifications": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
28
|
+
kind: "api";
|
|
29
|
+
name: undefined;
|
|
30
|
+
config: {};
|
|
31
|
+
configInput: {};
|
|
32
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
33
|
+
inputs: {};
|
|
34
|
+
params: {
|
|
35
|
+
factory: _backstage_frontend_plugin_api.AnyApiFactory;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
}>;
|
|
39
|
+
|
|
40
|
+
export { _default as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PageBlueprint, ApiBlueprint, createApiFactory, discoveryApiRef, fetchApiRef, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { rootRouteRef } from './routes.esm.js';
|
|
4
|
+
import { convertLegacyRouteRef, convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
5
|
+
import { notificationsApiRef } from './api/NotificationsApi.esm.js';
|
|
6
|
+
import { NotificationsClient } from './api/NotificationsClient.esm.js';
|
|
7
|
+
|
|
8
|
+
const page = PageBlueprint.make({
|
|
9
|
+
params: {
|
|
10
|
+
defaultPath: "/notifications",
|
|
11
|
+
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
12
|
+
loader: () => import('./components/NotificationsPage/index.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.NotificationsPage, null))
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const api = ApiBlueprint.make({
|
|
16
|
+
params: {
|
|
17
|
+
factory: createApiFactory({
|
|
18
|
+
api: notificationsApiRef,
|
|
19
|
+
deps: { discoveryApi: discoveryApiRef, fetchApi: fetchApiRef },
|
|
20
|
+
factory: ({ discoveryApi, fetchApi }) => new NotificationsClient({ discoveryApi, fetchApi })
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var alpha = createFrontendPlugin({
|
|
25
|
+
id: "notifications",
|
|
26
|
+
routes: convertLegacyRouteRefs({
|
|
27
|
+
root: rootRouteRef
|
|
28
|
+
}),
|
|
29
|
+
// TODO(Rugvip): Nav item (i.e. NotificationsSidebarItem) currently needs to be installed manually
|
|
30
|
+
extensions: [page, api]
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export { alpha as default };
|
|
34
|
+
//# sourceMappingURL=alpha.esm.js.map
|
|
@@ -0,0 +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 React from 'react';\nimport {\n ApiBlueprint,\n PageBlueprint,\n createApiFactory,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { rootRouteRef } from './routes';\nimport {\n convertLegacyRouteRef,\n convertLegacyRouteRefs,\n} from '@backstage/core-compat-api';\nimport { NotificationsClient, notificationsApiRef } from './api';\n\nconst page = PageBlueprint.make({\n params: {\n defaultPath: '/notifications',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('./components/NotificationsPage').then(m => (\n <m.NotificationsPage />\n )),\n },\n});\n\nconst api = ApiBlueprint.make({\n params: {\n factory: createApiFactory({\n api: notificationsApiRef,\n deps: { discoveryApi: discoveryApiRef, fetchApi: fetchApiRef },\n factory: ({ discoveryApi, fetchApi }) =>\n new NotificationsClient({ discoveryApi, fetchApi }),\n }),\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n id: 'notifications',\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":";;;;;;;AAgCA,MAAM,IAAA,GAAO,cAAc,IAAK,CAAA;AAAA,EAC9B,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,gBAAA;AAAA,IACb,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAA,EAAQ,MACN,OAAO,6CAAgC,CAAA,CAAE,IAAK,CAAA,CAAA,CAAA,qBAC3C,KAAA,CAAA,aAAA,CAAA,CAAA,CAAE,iBAAF,EAAA,IAAoB,CACtB;AAAA;AAEP,CAAC,CAAA;AAED,MAAM,GAAA,GAAM,aAAa,IAAK,CAAA;AAAA,EAC5B,MAAQ,EAAA;AAAA,IACN,SAAS,gBAAiB,CAAA;AAAA,MACxB,GAAK,EAAA,mBAAA;AAAA,MACL,IAAM,EAAA,EAAE,YAAc,EAAA,eAAA,EAAiB,UAAU,WAAY,EAAA;AAAA,MAC7D,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,QAAA,EACxB,KAAA,IAAI,mBAAoB,CAAA,EAAE,YAAc,EAAA,QAAA,EAAU;AAAA,KACrD;AAAA;AAEL,CAAC,CAAA;AAGD,YAAe,oBAAqB,CAAA;AAAA,EAClC,EAAI,EAAA,eAAA;AAAA,EACJ,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,IAAM,EAAA;AAAA,GACP,CAAA;AAAA;AAAA,EAED,UAAA,EAAY,CAAC,IAAA,EAAM,GAAG;AACxB,CAAC,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-notifications",
|
|
3
|
-
"version": "0.5.2
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "notifications",
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
"@backstage/plugin-notifications-backend",
|
|
10
10
|
"@backstage/plugin-notifications-common",
|
|
11
11
|
"@backstage/plugin-notifications-node"
|
|
12
|
-
]
|
|
12
|
+
],
|
|
13
|
+
"features": {
|
|
14
|
+
"./alpha": "@backstage/FrontendPlugin"
|
|
15
|
+
}
|
|
13
16
|
},
|
|
14
17
|
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
"main": "dist/index.esm.js",
|
|
17
|
-
"types": "dist/index.d.ts"
|
|
18
|
+
"access": "public"
|
|
18
19
|
},
|
|
19
20
|
"repository": {
|
|
20
21
|
"type": "git",
|
|
@@ -23,8 +24,32 @@
|
|
|
23
24
|
},
|
|
24
25
|
"license": "Apache-2.0",
|
|
25
26
|
"sideEffects": false,
|
|
26
|
-
"
|
|
27
|
-
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./dist/index.esm.js",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.esm.js"
|
|
32
|
+
},
|
|
33
|
+
"./alpha": {
|
|
34
|
+
"backstage": "@backstage/FrontendPlugin",
|
|
35
|
+
"import": "./dist/alpha.esm.js",
|
|
36
|
+
"types": "./dist/alpha.d.ts",
|
|
37
|
+
"default": "./dist/alpha.esm.js"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"main": "./dist/index.esm.js",
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"typesVersions": {
|
|
44
|
+
"*": {
|
|
45
|
+
"index": [
|
|
46
|
+
"dist/index.d.ts"
|
|
47
|
+
],
|
|
48
|
+
"alpha": [
|
|
49
|
+
"dist/alpha.d.ts"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
28
53
|
"files": [
|
|
29
54
|
"dist"
|
|
30
55
|
],
|
|
@@ -38,13 +63,15 @@
|
|
|
38
63
|
"test": "backstage-cli package test"
|
|
39
64
|
},
|
|
40
65
|
"dependencies": {
|
|
41
|
-
"@backstage/core-
|
|
42
|
-
"@backstage/core-
|
|
43
|
-
"@backstage/
|
|
44
|
-
"@backstage/
|
|
45
|
-
"@backstage/plugin-
|
|
46
|
-
"@backstage/
|
|
47
|
-
"@backstage/
|
|
66
|
+
"@backstage/core-compat-api": "^0.3.6",
|
|
67
|
+
"@backstage/core-components": "^0.16.4",
|
|
68
|
+
"@backstage/core-plugin-api": "^1.10.4",
|
|
69
|
+
"@backstage/errors": "^1.2.7",
|
|
70
|
+
"@backstage/frontend-plugin-api": "^0.9.5",
|
|
71
|
+
"@backstage/plugin-notifications-common": "^0.0.8",
|
|
72
|
+
"@backstage/plugin-signals-react": "^0.0.10",
|
|
73
|
+
"@backstage/theme": "^0.6.4",
|
|
74
|
+
"@backstage/types": "^1.2.1",
|
|
48
75
|
"@material-ui/core": "^4.9.13",
|
|
49
76
|
"@material-ui/icons": "^4.9.1",
|
|
50
77
|
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
@@ -55,11 +82,11 @@
|
|
|
55
82
|
"react-use": "^17.2.4"
|
|
56
83
|
},
|
|
57
84
|
"devDependencies": {
|
|
58
|
-
"@backstage/cli": "0.30.0
|
|
59
|
-
"@backstage/core-app-api": "1.15.5
|
|
60
|
-
"@backstage/dev-utils": "1.1.7
|
|
61
|
-
"@backstage/plugin-signals": "0.0.16
|
|
62
|
-
"@backstage/test-utils": "1.7.5
|
|
85
|
+
"@backstage/cli": "^0.30.0",
|
|
86
|
+
"@backstage/core-app-api": "^1.15.5",
|
|
87
|
+
"@backstage/dev-utils": "^1.1.7",
|
|
88
|
+
"@backstage/plugin-signals": "^0.0.16",
|
|
89
|
+
"@backstage/test-utils": "^1.7.5",
|
|
63
90
|
"@testing-library/jest-dom": "^6.0.0",
|
|
64
91
|
"@testing-library/react": "^16.0.0",
|
|
65
92
|
"@testing-library/user-event": "^14.0.0",
|
|
@@ -80,12 +107,5 @@
|
|
|
80
107
|
"optional": true
|
|
81
108
|
}
|
|
82
109
|
},
|
|
83
|
-
"typesVersions": {
|
|
84
|
-
"*": {
|
|
85
|
-
"index": [
|
|
86
|
-
"dist/index.d.ts"
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
110
|
"module": "./dist/index.esm.js"
|
|
91
111
|
}
|