@backstage/plugin-notifications-common 0.0.0-nightly-20240207020916
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 +13 -0
- package/README.md +5 -0
- package/dist/index.cjs.js +3 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +36 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @backstage/plugin-notifications-common
|
|
2
|
+
|
|
3
|
+
## 0.0.0-nightly-20240207020916
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fb8fc24: Initial notifications system for backstage
|
|
8
|
+
|
|
9
|
+
## 0.0.1-next.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fb8fc24: Initial notifications system for backstage
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @public */
|
|
2
|
+
type NotificationType = 'undone' | 'done' | 'saved';
|
|
3
|
+
/** @public */
|
|
4
|
+
type NotificationSeverity = 'critical' | 'high' | 'normal' | 'low';
|
|
5
|
+
/** @public */
|
|
6
|
+
type NotificationPayload = {
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
link: string;
|
|
10
|
+
severity: NotificationSeverity;
|
|
11
|
+
topic?: string;
|
|
12
|
+
scope?: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
};
|
|
15
|
+
/** @public */
|
|
16
|
+
type Notification = {
|
|
17
|
+
id: string;
|
|
18
|
+
user: string;
|
|
19
|
+
created: Date;
|
|
20
|
+
saved?: Date;
|
|
21
|
+
read?: Date;
|
|
22
|
+
done?: Date;
|
|
23
|
+
updated?: Date;
|
|
24
|
+
origin: string;
|
|
25
|
+
payload: NotificationPayload;
|
|
26
|
+
};
|
|
27
|
+
/** @public */
|
|
28
|
+
type NotificationStatus = {
|
|
29
|
+
unread: number;
|
|
30
|
+
read: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { Notification, NotificationPayload, NotificationSeverity, NotificationStatus, NotificationType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@backstage/plugin-notifications-common",
|
|
3
|
+
"description": "Common functionalities for the notifications plugin",
|
|
4
|
+
"version": "0.0.0-nightly-20240207020916",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"main": "dist/index.cjs.js",
|
|
11
|
+
"module": "dist/index.esm.js",
|
|
12
|
+
"types": "dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"backstage": {
|
|
15
|
+
"role": "common-library"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "backstage-cli package build",
|
|
20
|
+
"lint": "backstage-cli package lint",
|
|
21
|
+
"test": "backstage-cli package test",
|
|
22
|
+
"clean": "backstage-cli package clean",
|
|
23
|
+
"prepack": "backstage-cli package prepack",
|
|
24
|
+
"postpack": "backstage-cli package postpack"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@backstage/cli": "^0.0.0-nightly-20240207020916"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@material-ui/icons": "^4.9.1"
|
|
34
|
+
},
|
|
35
|
+
"module": "dist/index.esm.js"
|
|
36
|
+
}
|