@genesislcap/foundation-notifications 14.50.3 → 14.50.5

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.
@@ -108,7 +108,7 @@ export class NotificationBuilder {
108
108
  notificationStructure = Object.assign({ config }, notificationStructure);
109
109
  }
110
110
  if (this.toast) {
111
- config = Object.assign({ notification: this.toast }, config);
111
+ config = Object.assign({ toast: this.toast }, config);
112
112
  notificationStructure = Object.assign({ config }, notificationStructure);
113
113
  }
114
114
  if (this.banner) {
@@ -9,7 +9,7 @@ const notificationTypeToComponentMap = {
9
9
  alert: (notificationStructure) => {
10
10
  alert(getNotificationDetails(notificationStructure));
11
11
  },
12
- notification: showToast,
12
+ toast: showToast,
13
13
  dialog: showDialog,
14
14
  snackbar: showSnackbar,
15
15
  banner: showBanner,
@@ -47,20 +47,20 @@ export class ToastBuilder {
47
47
  * @returns Toast
48
48
  */
49
49
  build() {
50
- let notification = {};
50
+ let toast = {};
51
51
  if (this.position) {
52
- notification = Object.assign({ position: this.position }, notification);
52
+ toast = Object.assign({ position: this.position }, toast);
53
53
  }
54
54
  if (this.autoClose) {
55
- notification = Object.assign({ autoClose: this.autoClose }, notification);
55
+ toast = Object.assign({ autoClose: this.autoClose }, toast);
56
56
  }
57
57
  if (this.closeTimeout) {
58
- notification = Object.assign({ closeTimeout: this.closeTimeout }, notification);
58
+ toast = Object.assign({ closeTimeout: this.closeTimeout }, toast);
59
59
  }
60
60
  if (this.type) {
61
- notification = Object.assign({ type: this.type }, notification);
61
+ toast = Object.assign({ type: this.type }, toast);
62
62
  }
63
- return notification;
63
+ return toast;
64
64
  }
65
65
  }
66
66
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-notifications",
3
3
  "description": "Genesis Foundation UI Notifications Utils",
4
- "version": "14.50.3",
4
+ "version": "14.50.5",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -37,11 +37,11 @@
37
37
  "test:debug": "genx test --debug"
38
38
  },
39
39
  "devDependencies": {
40
- "@genesislcap/foundation-testing": "^14.50.3",
41
- "@genesislcap/genx": "^14.50.3"
40
+ "@genesislcap/foundation-testing": "^14.50.5",
41
+ "@genesislcap/genx": "^14.50.5"
42
42
  },
43
43
  "dependencies": {
44
- "@genesislcap/foundation-utils": "^14.50.3",
44
+ "@genesislcap/foundation-utils": "^14.50.5",
45
45
  "@microsoft/fast-element": "^1.7.0",
46
46
  "tslib": "^2.3.1"
47
47
  },
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "gitHead": "3d1fd6b809f522c7f2ff5da1603fbc57bc4fad01"
56
+ "gitHead": "d7e7900017933383d5907e01cfbb18fbffcb3c18"
57
57
  }