@frontile/notifications 0.14.1 → 0.15.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.
- package/addon/-private/timer.ts +2 -2
- package/addon/index.ts +4 -9
- package/index.d.ts +3 -2
- package/package.json +31 -43
- package/services/notifications.d.ts +2 -2
- package/types/index.d.ts +1 -0
package/addon/-private/timer.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tracked } from '@glimmer/tracking';
|
|
2
2
|
import { later, cancel } from '@ember/runloop';
|
|
3
|
-
import {
|
|
3
|
+
import type { Timer as EmberTimer } from '@ember/runloop';
|
|
4
4
|
import { action } from '@ember/object';
|
|
5
5
|
|
|
6
6
|
export default class Timer {
|
|
@@ -8,7 +8,7 @@ export default class Timer {
|
|
|
8
8
|
@tracked isRunning = true;
|
|
9
9
|
|
|
10
10
|
readonly onFinish: () => void;
|
|
11
|
-
private timer?:
|
|
11
|
+
private timer?: EmberTimer;
|
|
12
12
|
private start!: number;
|
|
13
13
|
|
|
14
14
|
constructor(duration: number, onFinish: () => void) {
|
package/addon/index.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import Notification from './-private/notification';
|
|
2
2
|
import Timer from './-private/timer';
|
|
3
3
|
import NotificationsService from './services/notifications';
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
5
|
DefaultConfig,
|
|
6
6
|
NotificationOptions,
|
|
7
7
|
CustomAction
|
|
8
8
|
} from './-private/types';
|
|
9
9
|
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
NotificationsService,
|
|
14
|
-
NotificationOptions,
|
|
15
|
-
DefaultConfig,
|
|
16
|
-
CustomAction
|
|
17
|
-
};
|
|
10
|
+
export { Notification, Timer, NotificationsService };
|
|
11
|
+
|
|
12
|
+
export type { NotificationOptions, DefaultConfig, CustomAction };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Notification from './-private/notification';
|
|
2
2
|
import Timer from './-private/timer';
|
|
3
3
|
import NotificationsService from './services/notifications';
|
|
4
|
-
import { DefaultConfig, NotificationOptions, CustomAction } from './-private/types';
|
|
5
|
-
export { Notification, Timer, NotificationsService
|
|
4
|
+
import type { DefaultConfig, NotificationOptions, CustomAction } from './-private/types';
|
|
5
|
+
export { Notification, Timer, NotificationsService };
|
|
6
|
+
export type { NotificationOptions, DefaultConfig, CustomAction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/notifications",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Notifications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -22,64 +22,52 @@
|
|
|
22
22
|
"prepack": "ember ts:precompile",
|
|
23
23
|
"postpack": "ember ts:clean"
|
|
24
24
|
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"ember-source": "^4.0.0 || ^5.0.0"
|
|
27
|
+
},
|
|
25
28
|
"dependencies": {
|
|
26
|
-
"@ember/render-modifiers": "^2.0
|
|
27
|
-
"@frontile/core": "^0.
|
|
28
|
-
"@frontile/tailwindcss-plugin-helpers": "^0.
|
|
29
|
-
"ember-auto-import": "^2.
|
|
29
|
+
"@ember/render-modifiers": "^2.1.0",
|
|
30
|
+
"@frontile/core": "^0.15.0",
|
|
31
|
+
"@frontile/tailwindcss-plugin-helpers": "^0.15.0",
|
|
32
|
+
"ember-auto-import": "^2.6.3",
|
|
30
33
|
"ember-cli-babel": "^7.26.11",
|
|
31
|
-
"ember-cli-htmlbars": "^6.0
|
|
32
|
-
"ember-cli-typescript": "^5.
|
|
33
|
-
"ember-css-transitions": "^4.
|
|
34
|
-
"ember-get-config": "^1.
|
|
34
|
+
"ember-cli-htmlbars": "^6.2.0",
|
|
35
|
+
"ember-cli-typescript": "^5.2.1",
|
|
36
|
+
"ember-css-transitions": "^4.3.2",
|
|
37
|
+
"ember-get-config": "^2.1.1"
|
|
35
38
|
},
|
|
36
39
|
"devDependencies": {
|
|
37
|
-
"@babel/core": "^7.
|
|
40
|
+
"@babel/core": "^7.22.9",
|
|
38
41
|
"@ember/optional-features": "^2.0.0",
|
|
39
|
-
"@ember/test-helpers": "^2.
|
|
40
|
-
"@embroider/test-setup": "^
|
|
41
|
-
"@frontile/forms": "^0.
|
|
42
|
-
"@glimmer/component": "^1.1.
|
|
43
|
-
"@glimmer/tracking": "^1.
|
|
44
|
-
"@types/ember-qunit": "^
|
|
45
|
-
"@types/ember-resolver": "^
|
|
46
|
-
"@types/ember__application": "^4.0.0",
|
|
47
|
-
"@types/ember__array": "^4.0.1",
|
|
48
|
-
"@types/ember__component": "^4.0.4",
|
|
49
|
-
"@types/ember__debug": "^4.0.1",
|
|
50
|
-
"@types/ember__error": "^4.0.0",
|
|
51
|
-
"@types/ember__object": "^4.0.1",
|
|
52
|
-
"@types/ember__routing": "^4.0.4",
|
|
53
|
-
"@types/ember__runloop": "^4.0.0",
|
|
54
|
-
"@types/ember__service": "^4.0.0",
|
|
55
|
-
"@types/ember__string": "^3.0.9",
|
|
56
|
-
"@types/ember__template": "^4.0.0",
|
|
57
|
-
"@types/ember__test": "^4.0.0",
|
|
58
|
-
"@types/ember__test-helpers": "^2.6.1",
|
|
42
|
+
"@ember/test-helpers": "^3.2.0",
|
|
43
|
+
"@embroider/test-setup": "^3.0.1",
|
|
44
|
+
"@frontile/forms": "^0.15.0",
|
|
45
|
+
"@glimmer/component": "^1.1.2",
|
|
46
|
+
"@glimmer/tracking": "^1.1.2",
|
|
47
|
+
"@types/ember-qunit": "^6.1.1",
|
|
48
|
+
"@types/ember-resolver": "^9.0.0",
|
|
59
49
|
"@types/htmlbars-inline-precompile": "^3.0.0",
|
|
60
|
-
"@types/qunit": "^2.
|
|
50
|
+
"@types/qunit": "^2.19.6",
|
|
61
51
|
"@types/rsvp": "^4.0.4",
|
|
62
|
-
"@types/sinon": "^10.0.11",
|
|
63
52
|
"broccoli-asset-rev": "^3.0.0",
|
|
64
|
-
"ember-cli": "^
|
|
65
|
-
"ember-cli-dependency-checker": "^3.2
|
|
53
|
+
"ember-cli": "^5.1.0",
|
|
54
|
+
"ember-cli-dependency-checker": "^3.3.2",
|
|
66
55
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
67
56
|
"ember-cli-sri": "^2.1.1",
|
|
68
57
|
"ember-cli-typescript-blueprints": "^3.0.0",
|
|
69
58
|
"ember-cli-uglify": "^3.0.0",
|
|
70
59
|
"ember-disable-prototype-extensions": "^1.1.3",
|
|
71
60
|
"ember-load-initializers": "^2.1.2",
|
|
72
|
-
"ember-qunit": "^
|
|
73
|
-
"ember-resolver": "^
|
|
74
|
-
"ember-
|
|
75
|
-
"ember-source": "^4.3.0",
|
|
61
|
+
"ember-qunit": "^7.0.0",
|
|
62
|
+
"ember-resolver": "^11.0.0",
|
|
63
|
+
"ember-source": "^5.1.2",
|
|
76
64
|
"ember-try": "^2.0.0",
|
|
77
65
|
"loader.js": "^4.7.0",
|
|
78
|
-
"qunit": "^2.
|
|
66
|
+
"qunit": "^2.19.4",
|
|
79
67
|
"qunit-dom": "^2.0.0",
|
|
80
|
-
"tailwindcss": "^3.
|
|
81
|
-
"typescript": "^
|
|
82
|
-
"webpack": "^5.
|
|
68
|
+
"tailwindcss": "^3.3.3",
|
|
69
|
+
"typescript": "^5.1.6",
|
|
70
|
+
"webpack": "^5.88.2"
|
|
83
71
|
},
|
|
84
72
|
"engines": {
|
|
85
73
|
"node": "10.* || >= 12"
|
|
@@ -93,5 +81,5 @@
|
|
|
93
81
|
"ember-addon": {
|
|
94
82
|
"configPath": "tests/dummy/config"
|
|
95
83
|
},
|
|
96
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "b038ebd4a286717de3339de658c6c32d628ae4f0"
|
|
97
85
|
}
|
|
@@ -5,8 +5,8 @@ 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
|
|
8
|
+
add: (message: string, options?: NotificationOptions) => Notification;
|
|
9
|
+
remove: (notification?: Notification) => void;
|
|
10
10
|
removeAll: () => void;
|
|
11
11
|
willDestroy(): void;
|
|
12
12
|
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'ember-source/types';
|