@teambit/notifications 1.0.227 → 1.0.229
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +23 -7
- package/dist/index.d.ts +4 -0
- package/dist/notification-reducer.d.ts +7 -0
- package/dist/notification.ui.runtime.d.ts +28 -0
- package/dist/notifications.aspect.d.ts +3 -0
- package/package.json +4 -4
- package/tsconfig.json +1 -7
- /package/dist/{preview-1712719054377.js → preview-1712822929999.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.ui-foundation/notifications@1.0.
|
|
3
|
+
<testsuite name="teambit.ui-foundation/notifications@1.0.229" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -108,7 +108,11 @@
|
|
|
108
108
|
"line": 22,
|
|
109
109
|
"character": 48
|
|
110
110
|
},
|
|
111
|
-
"name": "UiUI"
|
|
111
|
+
"name": "UiUI",
|
|
112
|
+
"componentId": {
|
|
113
|
+
"scope": "teambit.ui-foundation",
|
|
114
|
+
"name": "ui"
|
|
115
|
+
}
|
|
112
116
|
}
|
|
113
117
|
]
|
|
114
118
|
},
|
|
@@ -155,7 +159,11 @@
|
|
|
155
159
|
"line": 26,
|
|
156
160
|
"character": 35
|
|
157
161
|
},
|
|
158
|
-
"name": "UiUI"
|
|
162
|
+
"name": "UiUI",
|
|
163
|
+
"componentId": {
|
|
164
|
+
"scope": "teambit.ui-foundation",
|
|
165
|
+
"name": "ui"
|
|
166
|
+
}
|
|
159
167
|
},
|
|
160
168
|
"isOptional": false,
|
|
161
169
|
"isSpread": false
|
|
@@ -434,7 +442,7 @@
|
|
|
434
442
|
"_legacy": {
|
|
435
443
|
"scope": "teambit.ui-foundation",
|
|
436
444
|
"name": "notifications",
|
|
437
|
-
"version": "1.0.
|
|
445
|
+
"version": "1.0.229"
|
|
438
446
|
},
|
|
439
447
|
"_scope": "teambit.ui-foundation"
|
|
440
448
|
}
|
|
@@ -585,7 +593,11 @@
|
|
|
585
593
|
"line": 22,
|
|
586
594
|
"character": 48
|
|
587
595
|
},
|
|
588
|
-
"name": "UiUI"
|
|
596
|
+
"name": "UiUI",
|
|
597
|
+
"componentId": {
|
|
598
|
+
"scope": "teambit.ui-foundation",
|
|
599
|
+
"name": "ui"
|
|
600
|
+
}
|
|
589
601
|
}
|
|
590
602
|
]
|
|
591
603
|
},
|
|
@@ -632,7 +644,11 @@
|
|
|
632
644
|
"line": 26,
|
|
633
645
|
"character": 35
|
|
634
646
|
},
|
|
635
|
-
"name": "UiUI"
|
|
647
|
+
"name": "UiUI",
|
|
648
|
+
"componentId": {
|
|
649
|
+
"scope": "teambit.ui-foundation",
|
|
650
|
+
"name": "ui"
|
|
651
|
+
}
|
|
636
652
|
},
|
|
637
653
|
"isOptional": false,
|
|
638
654
|
"isSpread": false
|
|
@@ -911,7 +927,7 @@
|
|
|
911
927
|
"_legacy": {
|
|
912
928
|
"scope": "teambit.ui-foundation",
|
|
913
929
|
"name": "notifications",
|
|
914
|
-
"version": "1.0.
|
|
930
|
+
"version": "1.0.229"
|
|
915
931
|
},
|
|
916
932
|
"_scope": "teambit.ui-foundation"
|
|
917
933
|
}
|
|
@@ -984,7 +1000,7 @@
|
|
|
984
1000
|
"componentId": {
|
|
985
1001
|
"scope": "teambit.ui-foundation",
|
|
986
1002
|
"name": "notifications",
|
|
987
|
-
"version": "1.0.
|
|
1003
|
+
"version": "1.0.229"
|
|
988
1004
|
},
|
|
989
1005
|
"taggedModuleExports": []
|
|
990
1006
|
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Message } from '@teambit/ui-foundation.ui.notifications.store';
|
|
2
|
+
export type NotificationAction = {
|
|
3
|
+
type: 'add' | 'dismiss' | 'clear';
|
|
4
|
+
content?: Message;
|
|
5
|
+
id?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function notificationReducer(state: Message[], action: NotificationAction): Message[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UiUI } from '@teambit/ui';
|
|
2
|
+
import { MessageLevel, NotificationsStore } from '@teambit/ui-foundation.ui.notifications.store';
|
|
3
|
+
/**
|
|
4
|
+
* extension
|
|
5
|
+
*/
|
|
6
|
+
export default class NotificationUI implements NotificationsStore {
|
|
7
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
|
8
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
9
|
+
static provider([uiRuntimeExtension]: [UiUI]): Promise<NotificationUI>;
|
|
10
|
+
constructor(uiRuntimeExtension: UiUI);
|
|
11
|
+
private dispatch?;
|
|
12
|
+
/** adds a full message to the log */
|
|
13
|
+
add: (message: string, level: MessageLevel) => string;
|
|
14
|
+
/** removes/archives a message from the log */
|
|
15
|
+
dismiss(id: string): void;
|
|
16
|
+
/** adds a message with level "info" to the log */
|
|
17
|
+
log: (message: string) => string;
|
|
18
|
+
/** adds a message with level "warning" to the log */
|
|
19
|
+
warn: (message: string) => string;
|
|
20
|
+
/** adds a message with level "error" to the log */
|
|
21
|
+
error: (message: string) => string;
|
|
22
|
+
/** adds a message with level "success" to the log */
|
|
23
|
+
success: (message: string) => string;
|
|
24
|
+
/** removes all notifications */
|
|
25
|
+
clear: () => void;
|
|
26
|
+
private render;
|
|
27
|
+
private renderContext;
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/notifications",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.229",
|
|
4
4
|
"homepage": "https://bit.cloud/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": "1.0.
|
|
9
|
+
"version": "1.0.229"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"uuid": "8.3.2",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"@teambit/ui-foundation.ui.notifications.notification-center": "0.0.523",
|
|
15
15
|
"@teambit/ui-foundation.ui.notifications.notification-context": "0.0.501",
|
|
16
16
|
"@teambit/harmony": "0.4.6",
|
|
17
|
-
"@teambit/ui": "1.0.
|
|
17
|
+
"@teambit/ui": "1.0.229"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/uuid": "8.3.4",
|
|
21
21
|
"@types/mocha": "9.1.0",
|
|
22
22
|
"chai": "4.3.0",
|
|
23
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
23
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.33"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
24
|
-
"composite": true
|
|
23
|
+
"noImplicitAny": false
|
|
25
24
|
},
|
|
26
25
|
"exclude": [
|
|
27
26
|
"artifacts",
|
|
@@ -36,10 +35,5 @@
|
|
|
36
35
|
"include": [
|
|
37
36
|
"**/*",
|
|
38
37
|
"**/*.json"
|
|
39
|
-
],
|
|
40
|
-
"references": [
|
|
41
|
-
{
|
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.227"
|
|
43
|
-
}
|
|
44
38
|
]
|
|
45
39
|
}
|
|
File without changes
|