@frontile/notifications 0.12.0 → 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.0",
3
+ "version": "0.13.0",
4
4
  "description": "Component Library for Ember Octane apps: Notifications",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -22,53 +22,65 @@
22
22
  "postpack": "ember ts:clean"
23
23
  },
24
24
  "dependencies": {
25
- "@ember/render-modifiers": "^1.0.2",
26
- "@frontile/core": "^0.12.0",
27
- "@frontile/tailwindcss-plugin-helpers": "^0.12.0",
28
- "ember-cli-babel": "^7.26.6",
29
- "ember-cli-htmlbars": "^5.7.1",
30
- "ember-cli-typescript": "^4.1.0",
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
+ "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
- "@babel/core": "^7.14.3",
35
+ "@babel/core": "^7.15.8",
36
36
  "@ember/optional-features": "^2.0.0",
37
- "@ember/test-helpers": "^2.2.5",
38
- "@frontile/forms": "^0.12.0",
37
+ "@ember/test-helpers": "^2.6.0",
38
+ "@embroider/test-setup": "^1.0.0",
39
+ "@frontile/forms": "^0.13.0",
39
40
  "@glimmer/component": "^1.0.4",
40
41
  "@glimmer/tracking": "^1.0.4",
41
- "@types/ember": "^3.16.5",
42
- "@types/ember-qunit": "^3.4.13",
43
- "@types/ember-resolver": "^5.0.10",
44
- "@types/ember__test-helpers": "^2.0.0",
45
- "@types/qunit": "^2.11.1",
46
- "@types/rsvp": "^4.0.3",
47
- "@types/sinon": "^10.0.1",
48
- "autoprefixer": "^10.2.6",
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",
59
+ "@types/rsvp": "^4.0.4",
60
+ "@types/sinon": "^10.0.8",
61
+ "autoprefixer": "^10.4.2",
49
62
  "broccoli-asset-rev": "^3.0.0",
50
- "ember-auto-import": "^2.0.1",
51
- "ember-cli": "~3.26.1",
63
+ "ember-auto-import": "^2.4.0",
64
+ "ember-cli": "~4.1.1",
52
65
  "ember-cli-dependency-checker": "^3.2.0",
53
- "ember-cli-inject-live-reload": "^2.0.2",
54
- "ember-cli-postcss": "^7.0.1",
66
+ "ember-cli-inject-live-reload": "^2.1.0",
67
+ "ember-cli-postcss": "^8.0.0",
55
68
  "ember-cli-sri": "^2.1.1",
56
69
  "ember-cli-typescript-blueprints": "^3.0.0",
57
70
  "ember-cli-uglify": "^3.0.0",
58
71
  "ember-disable-prototype-extensions": "^1.1.3",
59
72
  "ember-load-initializers": "^2.1.2",
60
- "ember-maybe-import-regenerator": "^0.1.6",
61
- "ember-qunit": "^5.1.4",
62
- "ember-resolver": "^8.0.2",
73
+ "ember-qunit": "^5.1.5",
74
+ "ember-resolver": "^8.0.3",
63
75
  "ember-sinon": "^5.0.0",
64
- "ember-source": "~3.27.2",
65
- "ember-try": "^1.4.0",
76
+ "ember-source": "~4.1.0",
77
+ "ember-try": "^2.0.0",
66
78
  "loader.js": "^4.7.0",
67
- "qunit": "^2.15.0",
68
- "qunit-dom": "^1.6.0",
69
- "tailwindcss": "^2.1.2",
70
- "typescript": "^4.3.2",
71
- "webpack": "^5.38.1"
79
+ "qunit": "^2.17.2",
80
+ "qunit-dom": "^2.0.0",
81
+ "tailwindcss": "^2.2.16",
82
+ "typescript": "^4.5.5",
83
+ "webpack": "^5.67.0"
72
84
  },
73
85
  "engines": {
74
86
  "node": "10.* || >= 12"
@@ -82,5 +94,5 @@
82
94
  "ember-addon": {
83
95
  "configPath": "tests/dummy/config"
84
96
  },
85
- "gitHead": "574e455639ee67f4724c3b501dfcb88d7b8b4e1e"
97
+ "gitHead": "ad5dc7420f12b0cb0af4daa52cd51bf5bbc189be"
86
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' {