@frontile/notifications 0.13.1 → 0.14.1

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.
@@ -5,11 +5,11 @@ import { inject as service } from '@ember/service';
5
5
  import { htmlSafe } from '@ember/template';
6
6
  import { NotificationsService, Notification, CustomAction } from '../.';
7
7
  import { later } from '@ember/runloop';
8
- import { NotificationsContainerArgs } from './notifications-container';
8
+ import { NotificationsContainerSignature } from './notifications-container';
9
9
 
10
- interface NotificationCardArgs {
10
+ export interface NotificationCardArgs {
11
11
  notification: Notification;
12
- placement: NotificationsContainerArgs['placement'];
12
+ placement: NotificationsContainerSignature['Args']['placement'];
13
13
 
14
14
  /**
15
15
  * Spacing for each notification, in px.
@@ -19,7 +19,12 @@ interface NotificationCardArgs {
19
19
  spacing?: number;
20
20
  }
21
21
 
22
- export default class NotificationCard extends Component<NotificationCardArgs> {
22
+ export interface NotificationCardSignature {
23
+ Args: NotificationCardArgs;
24
+ Element: HTMLDivElement | null;
25
+ }
26
+
27
+ export default class NotificationCard extends Component<NotificationCardSignature> {
23
28
  @service notifications!: NotificationsService;
24
29
  @tracked hasEntered = false;
25
30
 
@@ -26,7 +26,12 @@ export interface NotificationsContainerArgs {
26
26
  spacing?: number;
27
27
  }
28
28
 
29
- export default class NotificationsContainer extends Component<NotificationsContainerArgs> {
29
+ export interface NotificationsContainerSignature {
30
+ Args: NotificationsContainerArgs;
31
+ Element: HTMLDivElement | null;
32
+ }
33
+
34
+ export default class NotificationsContainer extends Component<NotificationsContainerSignature> {
30
35
  @service notifications!: NotificationsService;
31
36
 
32
37
  get isTopPlacement(): boolean {
@@ -1,9 +1,9 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { NotificationsService, Notification, CustomAction } from '../.';
3
- import { NotificationsContainerArgs } from './notifications-container';
4
- interface NotificationCardArgs {
3
+ import { NotificationsContainerSignature } from './notifications-container';
4
+ export interface NotificationCardArgs {
5
5
  notification: Notification;
6
- placement: NotificationsContainerArgs['placement'];
6
+ placement: NotificationsContainerSignature['Args']['placement'];
7
7
  /**
8
8
  * Spacing for each notification, in px.
9
9
  *
@@ -11,7 +11,11 @@ interface NotificationCardArgs {
11
11
  */
12
12
  spacing?: number;
13
13
  }
14
- export default class NotificationCard extends Component<NotificationCardArgs> {
14
+ export interface NotificationCardSignature {
15
+ Args: NotificationCardArgs;
16
+ Element: HTMLDivElement | null;
17
+ }
18
+ export default class NotificationCard extends Component<NotificationCardSignature> {
15
19
  notifications: NotificationsService;
16
20
  hasEntered: boolean;
17
21
  get styles(): unknown;
@@ -23,4 +27,3 @@ export default class NotificationCard extends Component<NotificationCardArgs> {
23
27
  resume(): void;
24
28
  handleClickCustomAction(customAction: CustomAction): void;
25
29
  }
26
- export {};
@@ -15,7 +15,11 @@ export interface NotificationsContainerArgs {
15
15
  */
16
16
  spacing?: number;
17
17
  }
18
- export default class NotificationsContainer extends Component<NotificationsContainerArgs> {
18
+ export interface NotificationsContainerSignature {
19
+ Args: NotificationsContainerArgs;
20
+ Element: HTMLDivElement | null;
21
+ }
22
+ export default class NotificationsContainer extends Component<NotificationsContainerSignature> {
19
23
  notifications: NotificationsService;
20
24
  get isTopPlacement(): boolean;
21
25
  get sortedNotifications(): Notification[];
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@frontile/notifications",
3
- "version": "0.13.1",
3
+ "version": "0.14.1",
4
4
  "description": "Component Library for Ember Octane apps: Notifications",
5
5
  "keywords": [
6
- "ember-addon"
6
+ "ember-addon",
7
+ "frontile"
7
8
  ],
8
9
  "repository": "https://github.com/josemarluedke/frontile",
9
10
  "license": "MIT",
@@ -23,31 +24,32 @@
23
24
  },
24
25
  "dependencies": {
25
26
  "@ember/render-modifiers": "^2.0.4",
26
- "@frontile/core": "^0.13.1",
27
- "@frontile/tailwindcss-plugin-helpers": "^0.13.0",
27
+ "@frontile/core": "^0.14.1",
28
+ "@frontile/tailwindcss-plugin-helpers": "^0.14.0",
29
+ "ember-auto-import": "^2.4.1",
28
30
  "ember-cli-babel": "^7.26.11",
29
31
  "ember-cli-htmlbars": "^6.0.1",
30
- "ember-cli-typescript": "^4.2.1",
31
- "ember-css-transitions": "^2.1.1",
32
+ "ember-cli-typescript": "^5.0.0",
33
+ "ember-css-transitions": "^4.0.0",
32
34
  "ember-get-config": "^1.0.2"
33
35
  },
34
36
  "devDependencies": {
35
- "@babel/core": "^7.15.8",
37
+ "@babel/core": "^7.17.8",
36
38
  "@ember/optional-features": "^2.0.0",
37
39
  "@ember/test-helpers": "^2.6.0",
38
- "@embroider/test-setup": "^1.0.0",
39
- "@frontile/forms": "^0.13.1",
40
- "@glimmer/component": "^1.0.4",
40
+ "@embroider/test-setup": "^1.5.0",
41
+ "@frontile/forms": "^0.14.1",
42
+ "@glimmer/component": "^1.1.1",
41
43
  "@glimmer/tracking": "^1.0.4",
42
44
  "@types/ember-qunit": "^5.0.0",
43
45
  "@types/ember-resolver": "^5.0.11",
44
46
  "@types/ember__application": "^4.0.0",
45
47
  "@types/ember__array": "^4.0.1",
46
- "@types/ember__component": "^4.0.2",
47
- "@types/ember__debug": "^4.0.0",
48
+ "@types/ember__component": "^4.0.4",
49
+ "@types/ember__debug": "^4.0.1",
48
50
  "@types/ember__error": "^4.0.0",
49
- "@types/ember__object": "^4.0.0",
50
- "@types/ember__routing": "^4.0.2",
51
+ "@types/ember__object": "^4.0.1",
52
+ "@types/ember__routing": "^4.0.4",
51
53
  "@types/ember__runloop": "^4.0.0",
52
54
  "@types/ember__service": "^4.0.0",
53
55
  "@types/ember__string": "^3.0.9",
@@ -57,14 +59,11 @@
57
59
  "@types/htmlbars-inline-precompile": "^3.0.0",
58
60
  "@types/qunit": "^2.11.3",
59
61
  "@types/rsvp": "^4.0.4",
60
- "@types/sinon": "^10.0.9",
61
- "autoprefixer": "^10.4.2",
62
+ "@types/sinon": "^10.0.11",
62
63
  "broccoli-asset-rev": "^3.0.0",
63
- "ember-auto-import": "^2.4.0",
64
- "ember-cli": "~4.1.1",
64
+ "ember-cli": "^4.2.0",
65
65
  "ember-cli-dependency-checker": "^3.2.0",
66
66
  "ember-cli-inject-live-reload": "^2.1.0",
67
- "ember-cli-postcss": "^8.0.0",
68
67
  "ember-cli-sri": "^2.1.1",
69
68
  "ember-cli-typescript-blueprints": "^3.0.0",
70
69
  "ember-cli-uglify": "^3.0.0",
@@ -73,14 +72,14 @@
73
72
  "ember-qunit": "^5.1.5",
74
73
  "ember-resolver": "^8.0.3",
75
74
  "ember-sinon": "^5.0.0",
76
- "ember-source": "~4.1.0",
75
+ "ember-source": "^4.3.0",
77
76
  "ember-try": "^2.0.0",
78
77
  "loader.js": "^4.7.0",
79
- "qunit": "^2.17.2",
78
+ "qunit": "^2.18.0",
80
79
  "qunit-dom": "^2.0.0",
81
- "tailwindcss": "^2.2.16",
82
- "typescript": "^4.5.5",
83
- "webpack": "^5.67.0"
80
+ "tailwindcss": "^3.0.23",
81
+ "typescript": "^4.6.2",
82
+ "webpack": "^5.70.0"
84
83
  },
85
84
  "engines": {
86
85
  "node": "10.* || >= 12"
@@ -94,5 +93,5 @@
94
93
  "ember-addon": {
95
94
  "configPath": "tests/dummy/config"
96
95
  },
97
- "gitHead": "ce67c17c6426abd0df9dfb2acfeb95f3ab63bbf4"
96
+ "gitHead": "ef95beb9daeaea2205a685bc9f02fe249e66e573"
98
97
  }