@open-pioneer/notifier 0.1.0 → 0.2.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 +14 -3
- package/api.d.ts +2 -7
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# @open-pioneer/notifier
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 70349a8: Update to new core packages major versions
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [70349a8]
|
|
12
|
+
- @open-pioneer/react-utils@0.2.0
|
|
13
|
+
|
|
3
14
|
## 0.1.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
6
17
|
|
|
7
|
-
-
|
|
18
|
+
- 182da1c: Initial release.
|
|
8
19
|
|
|
9
20
|
### Patch Changes
|
|
10
21
|
|
|
11
|
-
-
|
|
12
|
-
|
|
22
|
+
- Updated dependencies [182da1c]
|
|
23
|
+
- @open-pioneer/react-utils@0.1.0
|
package/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { DeclaredService } from "@open-pioneer/runtime";
|
|
2
3
|
/** Represents the severity or kind of a notification. */
|
|
3
4
|
export type NotificationLevel = "success" | "info" | "warning" | "error";
|
|
4
5
|
/**
|
|
@@ -28,7 +29,7 @@ export interface NotificationOptions {
|
|
|
28
29
|
*
|
|
29
30
|
* You can inject an instance of this service by referencing the interface name `notifier.NotificationService`.
|
|
30
31
|
*/
|
|
31
|
-
export interface NotificationService {
|
|
32
|
+
export interface NotificationService extends DeclaredService<"notifier.NotificationService"> {
|
|
32
33
|
/**
|
|
33
34
|
* Emits a new notification.
|
|
34
35
|
*
|
|
@@ -41,9 +42,3 @@ export interface NotificationService {
|
|
|
41
42
|
/** Closes all active notifications. */
|
|
42
43
|
closeAll(): void;
|
|
43
44
|
}
|
|
44
|
-
import "@open-pioneer/runtime";
|
|
45
|
-
declare module "@open-pioneer/runtime" {
|
|
46
|
-
interface ServiceRegistry {
|
|
47
|
-
"notifier.NotificationService": NotificationService;
|
|
48
|
-
}
|
|
49
|
-
}
|
package/index.js
CHANGED
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/notifier",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Provides support for application-wide notifications",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@open-pioneer/core": "^1.1
|
|
10
|
-
"@open-pioneer/chakra-integration": "^1.1.
|
|
11
|
-
"@chakra-ui/icons": "^2.1.
|
|
12
|
-
"@open-pioneer/runtime": "^
|
|
9
|
+
"@open-pioneer/core": "^1.2.1",
|
|
10
|
+
"@open-pioneer/chakra-integration": "^1.1.1",
|
|
11
|
+
"@chakra-ui/icons": "^2.1.1",
|
|
12
|
+
"@open-pioneer/runtime": "^2.0.2",
|
|
13
13
|
"react": "^18.2.0",
|
|
14
|
-
"@open-pioneer/react-utils": "^0.
|
|
14
|
+
"@open-pioneer/react-utils": "^0.2.0"
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
"./package.json": "./package.json",
|