@teambit/notifications 0.0.554 → 0.0.555
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.
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import { UiUI } from '@teambit/ui';
|
|
2
2
|
import { MessageLevel, NotificationsStore } from '@teambit/ui-foundation.ui.notifications.store';
|
|
3
|
+
/**
|
|
4
|
+
* extension
|
|
5
|
+
*/
|
|
3
6
|
export default class NotificationUI implements NotificationsStore {
|
|
4
7
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
5
8
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
6
9
|
static provider([uiRuntimeExtension]: [UiUI]): Promise<NotificationUI>;
|
|
7
10
|
constructor(uiRuntimeExtension: UiUI);
|
|
8
11
|
private dispatch?;
|
|
12
|
+
/** adds a full message to the log */
|
|
9
13
|
add: (message: string, level: MessageLevel) => string;
|
|
14
|
+
/** removes/archives a message from the log */
|
|
10
15
|
dismiss(id: string): void;
|
|
16
|
+
/** adds a message with level "info" to the log */
|
|
11
17
|
log: (message: string) => string;
|
|
18
|
+
/** adds a message with level "warning" to the log */
|
|
12
19
|
warn: (message: string) => string;
|
|
20
|
+
/** adds a message with level "error" to the log */
|
|
13
21
|
error: (message: string) => string;
|
|
22
|
+
/** adds a message with level "success" to the log */
|
|
14
23
|
success: (message: string) => string;
|
|
24
|
+
/** removes all notifications */
|
|
15
25
|
clear: () => void;
|
|
16
26
|
private render;
|
|
17
27
|
private renderContext;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/notifications",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.555",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/ui-foundation/notifications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "notifications",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.555"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"uuid": "3.4.0",
|
|
13
13
|
"@teambit/harmony": "0.2.11",
|
|
14
14
|
"@babel/runtime": "7.12.18",
|
|
15
15
|
"core-js": "^3.0.0",
|
|
16
|
-
"@teambit/ui-foundation.ui.notifications.store": "0.0.
|
|
17
|
-
"@teambit/ui-foundation.ui.notifications.notification-center": "0.0.
|
|
18
|
-
"@teambit/ui-foundation.ui.notifications.notification-context": "0.0.
|
|
19
|
-
"@teambit/ui": "0.0.
|
|
16
|
+
"@teambit/ui-foundation.ui.notifications.store": "0.0.463",
|
|
17
|
+
"@teambit/ui-foundation.ui.notifications.notification-center": "0.0.467",
|
|
18
|
+
"@teambit/ui-foundation.ui.notifications.notification-context": "0.0.464",
|
|
19
|
+
"@teambit/ui": "0.0.555"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/react": "^17.0.8",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/node": "12.20.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@teambit/legacy": "1.0.
|
|
31
|
+
"@teambit/legacy": "1.0.172",
|
|
32
32
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
33
33
|
"react": "^16.8.0 || ^17.0.0"
|
|
34
34
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react": "-"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@teambit/legacy": "1.0.
|
|
59
|
+
"@teambit/legacy": "1.0.172",
|
|
60
60
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react": "^16.8.0 || ^17.0.0"
|
|
62
62
|
}
|
package/tsconfig.json
CHANGED
|
Binary file
|