@frontile/notifications 0.12.4 → 0.13.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.12.4",
3
+ "version": "0.13.0",
4
4
  "description": "Component Library for Ember Octane apps: Notifications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -22,54 +22,65 @@
22
22
  "postpack": "ember ts:clean"
23
23
  },
24
24
  "dependencies": {
25
- "@ember/render-modifiers": "^2.0.0",
26
- "@frontile/core": "^0.12.4",
27
- "@frontile/tailwindcss-plugin-helpers": "^0.12.0",
28
- "ember-cli-babel": "^7.26.6",
29
- "ember-cli-htmlbars": "^5.7.1",
25
+ "@ember/render-modifiers": "^2.0.3",
26
+ "@frontile/core": "^0.13.0",
27
+ "@frontile/tailwindcss-plugin-helpers": "^0.13.0",
28
+ "ember-cli-babel": "^7.26.11",
29
+ "ember-cli-htmlbars": "^6.0.1",
30
30
  "ember-cli-typescript": "^4.2.1",
31
31
  "ember-css-transitions": "^2.1.1",
32
- "ember-get-config": "^0.3.0"
32
+ "ember-get-config": "^1.0.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/core": "^7.15.8",
36
36
  "@ember/optional-features": "^2.0.0",
37
- "@ember/test-helpers": "^2.5.0",
38
- "@embroider/test-setup": "^0.45.0",
39
- "@frontile/forms": "^0.12.4",
37
+ "@ember/test-helpers": "^2.6.0",
38
+ "@embroider/test-setup": "^1.0.0",
39
+ "@frontile/forms": "^0.13.0",
40
40
  "@glimmer/component": "^1.0.4",
41
41
  "@glimmer/tracking": "^1.0.4",
42
- "@types/ember": "^3.16.5",
43
- "@types/ember-qunit": "^3.4.14",
44
- "@types/ember-resolver": "^5.0.10",
45
- "@types/ember__test-helpers": "^2.0.2",
46
- "@types/qunit": "^2.11.2",
42
+ "@types/ember-qunit": "^5.0.0",
43
+ "@types/ember-resolver": "^5.0.11",
44
+ "@types/ember__application": "^4.0.0",
45
+ "@types/ember__array": "^4.0.1",
46
+ "@types/ember__component": "^4.0.1",
47
+ "@types/ember__debug": "^4.0.0",
48
+ "@types/ember__error": "^4.0.0",
49
+ "@types/ember__object": "^4.0.0",
50
+ "@types/ember__routing": "^4.0.2",
51
+ "@types/ember__runloop": "^4.0.0",
52
+ "@types/ember__service": "^4.0.0",
53
+ "@types/ember__string": "^3.0.9",
54
+ "@types/ember__template": "^4.0.0",
55
+ "@types/ember__test": "^4.0.0",
56
+ "@types/ember__test-helpers": "^2.6.1",
57
+ "@types/htmlbars-inline-precompile": "^3.0.0",
58
+ "@types/qunit": "^2.11.3",
47
59
  "@types/rsvp": "^4.0.4",
48
- "@types/sinon": "^10.0.4",
49
- "autoprefixer": "^10.3.7",
60
+ "@types/sinon": "^10.0.8",
61
+ "autoprefixer": "^10.4.2",
50
62
  "broccoli-asset-rev": "^3.0.0",
51
- "ember-auto-import": "^2.2.0",
52
- "ember-cli": "~3.28.1",
63
+ "ember-auto-import": "^2.4.0",
64
+ "ember-cli": "~4.1.1",
53
65
  "ember-cli-dependency-checker": "^3.2.0",
54
66
  "ember-cli-inject-live-reload": "^2.1.0",
55
- "ember-cli-postcss": "^7.0.2",
67
+ "ember-cli-postcss": "^8.0.0",
56
68
  "ember-cli-sri": "^2.1.1",
57
69
  "ember-cli-typescript-blueprints": "^3.0.0",
58
70
  "ember-cli-uglify": "^3.0.0",
59
71
  "ember-disable-prototype-extensions": "^1.1.3",
60
72
  "ember-load-initializers": "^2.1.2",
61
- "ember-maybe-import-regenerator": "^1.0.0",
62
73
  "ember-qunit": "^5.1.5",
63
74
  "ember-resolver": "^8.0.3",
64
75
  "ember-sinon": "^5.0.0",
65
- "ember-source": "~3.28.1",
66
- "ember-try": "^1.4.0",
76
+ "ember-source": "~4.1.0",
77
+ "ember-try": "^2.0.0",
67
78
  "loader.js": "^4.7.0",
68
79
  "qunit": "^2.17.2",
69
80
  "qunit-dom": "^2.0.0",
70
81
  "tailwindcss": "^2.2.16",
71
- "typescript": "^4.4.3",
72
- "webpack": "^5.58.0"
82
+ "typescript": "^4.5.5",
83
+ "webpack": "^5.67.0"
73
84
  },
74
85
  "engines": {
75
86
  "node": "10.* || >= 12"
@@ -83,5 +94,5 @@
83
94
  "ember-addon": {
84
95
  "configPath": "tests/dummy/config"
85
96
  },
86
- "gitHead": "223dcc591866f108f1b95174f4fc5a188096e489"
97
+ "gitHead": "ad5dc7420f12b0cb0af4daa52cd51bf5bbc189be"
87
98
  }
@@ -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): Notification;
9
- remove(notification?: Notification): void;
10
- removeAll(): void;
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' {