@etsoo/notificationbase 1.0.85 → 1.0.86

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.
@@ -50,20 +50,10 @@ export class NotificationContainer {
50
50
  onDismiss();
51
51
  };
52
52
  // Add to the collection
53
- if (align === NotificationAlign.Unknown) {
54
- // Dismiss the last modal window
55
- const modalCount = alignItems.length;
56
- if (modalCount > 0) {
57
- alignItems[modalCount - 1].dismiss();
58
- }
53
+ if (top)
54
+ alignItems.unshift(notification);
55
+ else
59
56
  alignItems.push(notification);
60
- }
61
- else {
62
- if (top)
63
- alignItems.unshift(notification);
64
- else
65
- alignItems.push(notification);
66
- }
67
57
  // Call the registered callback
68
58
  this.doRegister(notification, false);
69
59
  // Auto dismiss in timespan seconds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/notificationbase",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "TypeScript notification component for extending with all features described and partially implemented",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "homepage": "https://github.com/ETSOO/NotificationBase#readme",
42
42
  "dependencies": {
43
- "@etsoo/shared": "^1.0.52"
43
+ "@etsoo/shared": "^1.0.53"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/core": "^7.15.8",
@@ -48,13 +48,13 @@
48
48
  "@babel/preset-env": "^7.15.8",
49
49
  "@babel/runtime-corejs3": "^7.15.4",
50
50
  "@types/jest": "^27.0.2",
51
- "@typescript-eslint/eslint-plugin": "^5.0.0",
52
- "@typescript-eslint/parser": "^5.0.0",
53
- "babel-jest": "^27.2.5",
51
+ "@typescript-eslint/eslint-plugin": "^5.1.0",
52
+ "@typescript-eslint/parser": "^5.1.0",
53
+ "babel-jest": "^27.3.0",
54
54
  "eslint": "^8.0.1",
55
55
  "eslint-config-airbnb-base": "^14.2.1",
56
56
  "eslint-plugin-import": "^2.25.2",
57
- "jest": "^27.2.5",
57
+ "jest": "^27.3.0",
58
58
  "ts-jest": "^27.0.7",
59
59
  "typescript": "^4.4.4"
60
60
  }
@@ -243,17 +243,8 @@ export abstract class NotificationContainer<UI, C extends NotificationCallProps>
243
243
  };
244
244
 
245
245
  // Add to the collection
246
- if (align === NotificationAlign.Unknown) {
247
- // Dismiss the last modal window
248
- const modalCount = alignItems.length;
249
- if (modalCount > 0) {
250
- alignItems[modalCount - 1].dismiss();
251
- }
252
- alignItems.push(notification);
253
- } else {
254
- if (top) alignItems.unshift(notification);
255
- else alignItems.push(notification);
256
- }
246
+ if (top) alignItems.unshift(notification);
247
+ else alignItems.push(notification);
257
248
 
258
249
  // Call the registered callback
259
250
  this.doRegister(notification, false);