@frontile/notifications 0.12.4 → 0.14.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.
|
@@ -10,17 +10,17 @@ export default class NotificationsService extends Service {
|
|
|
10
10
|
return this.manager.notifications;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
add(message: string, options?: NotificationOptions): Notification {
|
|
13
|
+
add = (message: string, options?: NotificationOptions): Notification => {
|
|
14
14
|
return this.manager.add(message, options);
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
|
|
17
|
-
remove(notification?: Notification): void {
|
|
17
|
+
remove = (notification?: Notification): void => {
|
|
18
18
|
this.manager.remove(notification);
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
|
|
21
|
-
removeAll(): void {
|
|
21
|
+
removeAll = (): void => {
|
|
22
22
|
this.manager.removeAll();
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
|
|
25
25
|
willDestroy(): void {
|
|
26
26
|
this.removeAll();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/notifications",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Notifications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -22,54 +22,63 @@
|
|
|
22
22
|
"postpack": "ember ts:clean"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ember/render-modifiers": "^2.0.
|
|
26
|
-
"@frontile/core": "^0.
|
|
27
|
-
"@frontile/tailwindcss-plugin-helpers": "^0.
|
|
28
|
-
"ember-
|
|
29
|
-
"ember-cli-
|
|
30
|
-
"ember-cli-
|
|
31
|
-
"ember-
|
|
32
|
-
"ember-
|
|
25
|
+
"@ember/render-modifiers": "^2.0.4",
|
|
26
|
+
"@frontile/core": "^0.14.0",
|
|
27
|
+
"@frontile/tailwindcss-plugin-helpers": "^0.14.0",
|
|
28
|
+
"ember-auto-import": "^2.4.1",
|
|
29
|
+
"ember-cli-babel": "^7.26.11",
|
|
30
|
+
"ember-cli-htmlbars": "^6.0.1",
|
|
31
|
+
"ember-cli-typescript": "^5.0.0",
|
|
32
|
+
"ember-css-transitions": "^4.0.0",
|
|
33
|
+
"ember-get-config": "^1.0.2"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@babel/core": "^7.
|
|
36
|
+
"@babel/core": "^7.17.8",
|
|
36
37
|
"@ember/optional-features": "^2.0.0",
|
|
37
|
-
"@ember/test-helpers": "^2.
|
|
38
|
-
"@embroider/test-setup": "^
|
|
39
|
-
"@frontile/forms": "^0.
|
|
38
|
+
"@ember/test-helpers": "^2.6.0",
|
|
39
|
+
"@embroider/test-setup": "^1.5.0",
|
|
40
|
+
"@frontile/forms": "^0.14.0",
|
|
40
41
|
"@glimmer/component": "^1.0.4",
|
|
41
42
|
"@glimmer/tracking": "^1.0.4",
|
|
42
|
-
"@types/ember": "^
|
|
43
|
-
"@types/ember-
|
|
44
|
-
"@types/
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/
|
|
43
|
+
"@types/ember-qunit": "^5.0.0",
|
|
44
|
+
"@types/ember-resolver": "^5.0.11",
|
|
45
|
+
"@types/ember__application": "^4.0.0",
|
|
46
|
+
"@types/ember__array": "^4.0.1",
|
|
47
|
+
"@types/ember__component": "^4.0.4",
|
|
48
|
+
"@types/ember__debug": "^4.0.1",
|
|
49
|
+
"@types/ember__error": "^4.0.0",
|
|
50
|
+
"@types/ember__object": "^4.0.1",
|
|
51
|
+
"@types/ember__routing": "^4.0.4",
|
|
52
|
+
"@types/ember__runloop": "^4.0.0",
|
|
53
|
+
"@types/ember__service": "^4.0.0",
|
|
54
|
+
"@types/ember__string": "^3.0.9",
|
|
55
|
+
"@types/ember__template": "^4.0.0",
|
|
56
|
+
"@types/ember__test": "^4.0.0",
|
|
57
|
+
"@types/ember__test-helpers": "^2.6.1",
|
|
58
|
+
"@types/htmlbars-inline-precompile": "^3.0.0",
|
|
59
|
+
"@types/qunit": "^2.11.3",
|
|
47
60
|
"@types/rsvp": "^4.0.4",
|
|
48
|
-
"@types/sinon": "^10.0.
|
|
49
|
-
"autoprefixer": "^10.3.7",
|
|
61
|
+
"@types/sinon": "^10.0.11",
|
|
50
62
|
"broccoli-asset-rev": "^3.0.0",
|
|
51
|
-
"ember-
|
|
52
|
-
"ember-cli": "~3.28.1",
|
|
63
|
+
"ember-cli": "^4.2.0",
|
|
53
64
|
"ember-cli-dependency-checker": "^3.2.0",
|
|
54
65
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
55
|
-
"ember-cli-postcss": "^7.0.2",
|
|
56
66
|
"ember-cli-sri": "^2.1.1",
|
|
57
67
|
"ember-cli-typescript-blueprints": "^3.0.0",
|
|
58
68
|
"ember-cli-uglify": "^3.0.0",
|
|
59
69
|
"ember-disable-prototype-extensions": "^1.1.3",
|
|
60
70
|
"ember-load-initializers": "^2.1.2",
|
|
61
|
-
"ember-maybe-import-regenerator": "^1.0.0",
|
|
62
71
|
"ember-qunit": "^5.1.5",
|
|
63
72
|
"ember-resolver": "^8.0.3",
|
|
64
73
|
"ember-sinon": "^5.0.0",
|
|
65
|
-
"ember-source": "
|
|
66
|
-
"ember-try": "^
|
|
74
|
+
"ember-source": "^4.3.0",
|
|
75
|
+
"ember-try": "^2.0.0",
|
|
67
76
|
"loader.js": "^4.7.0",
|
|
68
|
-
"qunit": "^2.
|
|
77
|
+
"qunit": "^2.18.0",
|
|
69
78
|
"qunit-dom": "^2.0.0",
|
|
70
|
-
"tailwindcss": "^
|
|
71
|
-
"typescript": "^4.
|
|
72
|
-
"webpack": "^5.
|
|
79
|
+
"tailwindcss": "^3.0.23",
|
|
80
|
+
"typescript": "^4.6.2",
|
|
81
|
+
"webpack": "^5.70.0"
|
|
73
82
|
},
|
|
74
83
|
"engines": {
|
|
75
84
|
"node": "10.* || >= 12"
|
|
@@ -83,5 +92,5 @@
|
|
|
83
92
|
"ember-addon": {
|
|
84
93
|
"configPath": "tests/dummy/config"
|
|
85
94
|
},
|
|
86
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "d6e03521904b6e523018a74f85c2fe3bce34b4f9"
|
|
87
96
|
}
|
|
@@ -5,9 +5,9 @@ import { NotificationOptions } from '../-private/types';
|
|
|
5
5
|
export default class NotificationsService extends Service {
|
|
6
6
|
manager: NotificationsManager;
|
|
7
7
|
get notifications(): Notification[];
|
|
8
|
-
add(message: string, options?: NotificationOptions)
|
|
9
|
-
remove(notification?: Notification)
|
|
10
|
-
removeAll()
|
|
8
|
+
add: (message: string, options?: NotificationOptions | undefined) => Notification;
|
|
9
|
+
remove: (notification?: Notification | undefined) => void;
|
|
10
|
+
removeAll: () => void;
|
|
11
11
|
willDestroy(): void;
|
|
12
12
|
}
|
|
13
13
|
declare module '@ember/service' {
|