@backstage/plugin-notifications-common 0.0.1-next.1 → 0.0.1

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,13 @@
1
1
  # @backstage/plugin-notifications-common
2
2
 
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9873c44: Add support for signal type in notifications
8
+ - 8472188: Added or fixed the `repository` field in `package.json`.
9
+ - fb8fc24: Initial notifications system for backstage
10
+
3
11
  ## 0.0.1-next.1
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -29,5 +29,17 @@ type NotificationStatus = {
29
29
  unread: number;
30
30
  read: number;
31
31
  };
32
+ /** @public */
33
+ type NewNotificationSignal = {
34
+ action: 'new_notification';
35
+ notification_id: string;
36
+ };
37
+ /** @public */
38
+ type NotificationReadSignal = {
39
+ action: 'notification_read' | 'notification_unread';
40
+ notification_ids: string[];
41
+ };
42
+ /** @public */
43
+ type NotificationSignal = NewNotificationSignal | NotificationReadSignal;
32
44
 
33
- export { Notification, NotificationPayload, NotificationSeverity, NotificationStatus, NotificationType };
45
+ export { NewNotificationSignal, Notification, NotificationPayload, NotificationReadSignal, NotificationSeverity, NotificationSignal, NotificationStatus, NotificationType };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-notifications-common",
3
3
  "description": "Common functionalities for the notifications plugin",
4
- "version": "0.0.1-next.1",
4
+ "version": "0.0.1",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  "postpack": "backstage-cli package postpack"
30
30
  },
31
31
  "devDependencies": {
32
- "@backstage/cli": "^0.25.2-next.3"
32
+ "@backstage/cli": "^0.25.2"
33
33
  },
34
34
  "files": [
35
35
  "dist"