@genesislcap/foundation-notifications 14.448.0 → 14.449.1-alpha-12eee28.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/dist/dts/banner/banner-builder.d.ts.map +1 -1
- package/dist/dts/dialog/dialog-builder.d.ts.map +1 -1
- package/dist/dts/notification-util.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
- package/dist/dts/toast/toast-builder.d.ts.map +1 -1
- package/dist/esm/banner/banner-builder.js +1 -2
- package/dist/esm/dialog/dialog-builder.js +1 -2
- package/dist/esm/notification-builder.js +1 -2
- package/dist/esm/notification-util.js +2 -2
- package/dist/esm/snackbar/snackbar-builder.js +1 -2
- package/dist/esm/toast/toast-builder.js +1 -2
- package/dist/foundation-notifications.api.json +9 -9
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner-builder.d.ts","sourceRoot":"","sources":["../../../src/banner/banner-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"banner-builder.d.ts","sourceRoot":"","sources":["../../../src/banner/banner-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAyB,MAAM,UAAU,CAAC;AAGlE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GACjC,eAAe,eAAe,EAC9B,SAAS,MAAM,EACf,uBAAuB,WAAW,KACjC,IAqBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-builder.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialog-builder.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAyB,MAAM,UAAU,CAAC;AAGlE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GACjC,eAAe,eAAe,EAC9B,SAAS,MAAM,EACf,uBAAuB,WAAW,KACjC,IA0BF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-util.d.ts","sourceRoot":"","sources":["../../src/notification-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"notification-util.d.ts","sourceRoot":"","sources":["../../src/notification-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,gCAAgC,CAAC;AAGrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAOhD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,qBAAqB,KAAG,MAIvE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,qBAAqB,KAAG,QAE5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,uBAAuB,qBAAqB,SAK9E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,EAAE,SAAS,MAAM,KAAG,WAkDtE,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,eAAe,GAAI,SAAS,GAAG,KAAG,WAAW,GAAG,IAU5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar-builder.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"snackbar-builder.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GACnC,eAAe,iBAAiB,EAChC,SAAS,MAAM,KACd,IAqBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-builder.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast-builder.d.ts","sourceRoot":"","sources":["../../../src/toast/toast-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,cAAc,EAAE,MAAM,UAAU,CAAC;AAGjE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,eAAe,cAAc,EAC7B,SAAS,MAAM,EACf,wBAAwB,WAAW,KAClC,IA+BF,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevel } from '@genesislcap/foundation-logger';
|
|
2
1
|
import { showBanner } from './banner-launcher';
|
|
3
2
|
/**
|
|
4
3
|
* Shows the notification banner
|
|
@@ -12,7 +11,7 @@ export const showNotificationBanner = (configuration, tagName, notificationBound
|
|
|
12
11
|
body: configuration.body,
|
|
13
12
|
};
|
|
14
13
|
let config = {};
|
|
15
|
-
if (configuration.logLevel
|
|
14
|
+
if (configuration.logLevel != null) {
|
|
16
15
|
notificationStructure = Object.assign({ logLevel: configuration.logLevel }, notificationStructure);
|
|
17
16
|
}
|
|
18
17
|
if (configuration.banner) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevel } from '@genesislcap/foundation-logger';
|
|
2
1
|
import { showDialog } from './dialog-launcher';
|
|
3
2
|
/**
|
|
4
3
|
* Shows the notification dialog
|
|
@@ -16,7 +15,7 @@ export const showNotificationDialog = (configuration, tagName, notificationBound
|
|
|
16
15
|
body: configuration.body,
|
|
17
16
|
};
|
|
18
17
|
let config = {};
|
|
19
|
-
if (configuration.logLevel
|
|
18
|
+
if (configuration.logLevel != null) {
|
|
20
19
|
notificationStructure = Object.assign({ logLevel: configuration.logLevel }, notificationStructure);
|
|
21
20
|
}
|
|
22
21
|
if (configuration.dialog) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevel } from '@genesislcap/foundation-logger';
|
|
2
1
|
import { logger } from './logger';
|
|
3
2
|
/**
|
|
4
3
|
* NotificationBuilder to build NotificationStructure
|
|
@@ -125,7 +124,7 @@ export class NotificationBuilder {
|
|
|
125
124
|
if (this.createdAt) {
|
|
126
125
|
notificationStructure = Object.assign({ createdAt: this.createdAt }, notificationStructure);
|
|
127
126
|
}
|
|
128
|
-
if (this.logLevel
|
|
127
|
+
if (this.logLevel != null) {
|
|
129
128
|
notificationStructure = Object.assign({ logLevel: this.logLevel }, notificationStructure);
|
|
130
129
|
}
|
|
131
130
|
if (this.alert) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LogLevels } from '@genesislcap/foundation-logger';
|
|
2
2
|
import { getCurrentDesignSystem, getAllElements } from '@genesislcap/foundation-utils';
|
|
3
3
|
import { logger } from './logger';
|
|
4
4
|
// Cache for the design system provider to avoid expensive DOM traversal
|
|
@@ -25,7 +25,7 @@ export const getNotificationDetails = (details) => {
|
|
|
25
25
|
*/
|
|
26
26
|
export const getLoglevel = (details) => {
|
|
27
27
|
var _a;
|
|
28
|
-
return (details === null || details === void 0 ? void 0 : details.logLevel) || ((_a = details === null || details === void 0 ? void 0 : details.config) === null || _a === void 0 ? void 0 : _a.logLevel) ||
|
|
28
|
+
return (details === null || details === void 0 ? void 0 : details.logLevel) || ((_a = details === null || details === void 0 ? void 0 : details.config) === null || _a === void 0 ? void 0 : _a.logLevel) || LogLevels.debug;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* Shows logger with log level from NotificationStructure object
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevel } from '@genesislcap/foundation-logger';
|
|
2
1
|
import { showSnackbar } from './snackbar-launcher';
|
|
3
2
|
/**
|
|
4
3
|
* Shows the notification snackbar
|
|
@@ -12,7 +11,7 @@ export const showNotificationSnackbar = (configuration, tagName) => {
|
|
|
12
11
|
body: configuration.body,
|
|
13
12
|
};
|
|
14
13
|
let config = {};
|
|
15
|
-
if (configuration.logLevel
|
|
14
|
+
if (configuration.logLevel != null) {
|
|
16
15
|
notificationStructure = Object.assign({ logLevel: configuration.logLevel }, notificationStructure);
|
|
17
16
|
}
|
|
18
17
|
if (configuration.snackbar) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevel } from '@genesislcap/foundation-logger';
|
|
2
1
|
import { showToast } from './toast-launcher';
|
|
3
2
|
/**
|
|
4
3
|
* Shows the notification toast
|
|
@@ -20,7 +19,7 @@ export const showNotificationToast = (configuration, tagName, notificationContai
|
|
|
20
19
|
if (configuration.createdAt) {
|
|
21
20
|
notificationStructure = Object.assign({ createdAt: configuration.createdAt }, notificationStructure);
|
|
22
21
|
}
|
|
23
|
-
if (configuration.logLevel
|
|
22
|
+
if (configuration.logLevel != null) {
|
|
24
23
|
notificationStructure = Object.assign({ logLevel: configuration.logLevel }, notificationStructure);
|
|
25
24
|
}
|
|
26
25
|
if (configuration.toast) {
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
{
|
|
227
227
|
"kind": "Reference",
|
|
228
228
|
"text": "LogLevel",
|
|
229
|
-
"canonicalReference": "consola!LogLevel:
|
|
229
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"kind": "Content",
|
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
{
|
|
593
593
|
"kind": "Reference",
|
|
594
594
|
"text": "LogLevel",
|
|
595
|
-
"canonicalReference": "consola!LogLevel:
|
|
595
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
596
596
|
},
|
|
597
597
|
{
|
|
598
598
|
"kind": "Content",
|
|
@@ -1059,7 +1059,7 @@
|
|
|
1059
1059
|
{
|
|
1060
1060
|
"kind": "Reference",
|
|
1061
1061
|
"text": "LogLevel",
|
|
1062
|
-
"canonicalReference": "consola!LogLevel:
|
|
1062
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
1063
1063
|
},
|
|
1064
1064
|
{
|
|
1065
1065
|
"kind": "Content",
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
{
|
|
1296
1296
|
"kind": "Reference",
|
|
1297
1297
|
"text": "LogLevel",
|
|
1298
|
-
"canonicalReference": "consola!LogLevel:
|
|
1298
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
1299
1299
|
}
|
|
1300
1300
|
],
|
|
1301
1301
|
"fileUrlPath": "src/notification-util.ts",
|
|
@@ -1800,7 +1800,7 @@
|
|
|
1800
1800
|
{
|
|
1801
1801
|
"kind": "Reference",
|
|
1802
1802
|
"text": "LogLevel",
|
|
1803
|
-
"canonicalReference": "consola!LogLevel:
|
|
1803
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
1804
1804
|
},
|
|
1805
1805
|
{
|
|
1806
1806
|
"kind": "Content",
|
|
@@ -2428,7 +2428,7 @@
|
|
|
2428
2428
|
{
|
|
2429
2429
|
"kind": "Reference",
|
|
2430
2430
|
"text": "LogLevel",
|
|
2431
|
-
"canonicalReference": "consola!LogLevel:
|
|
2431
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
2432
2432
|
},
|
|
2433
2433
|
{
|
|
2434
2434
|
"kind": "Content",
|
|
@@ -2551,7 +2551,7 @@
|
|
|
2551
2551
|
{
|
|
2552
2552
|
"kind": "Reference",
|
|
2553
2553
|
"text": "LogLevel",
|
|
2554
|
-
"canonicalReference": "consola!LogLevel:
|
|
2554
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
2555
2555
|
},
|
|
2556
2556
|
{
|
|
2557
2557
|
"kind": "Content",
|
|
@@ -4140,7 +4140,7 @@
|
|
|
4140
4140
|
{
|
|
4141
4141
|
"kind": "Reference",
|
|
4142
4142
|
"text": "LogLevel",
|
|
4143
|
-
"canonicalReference": "consola!LogLevel:
|
|
4143
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
4144
4144
|
},
|
|
4145
4145
|
{
|
|
4146
4146
|
"kind": "Content",
|
|
@@ -5137,7 +5137,7 @@
|
|
|
5137
5137
|
{
|
|
5138
5138
|
"kind": "Reference",
|
|
5139
5139
|
"text": "LogLevel",
|
|
5140
|
-
"canonicalReference": "consola!LogLevel:
|
|
5140
|
+
"canonicalReference": "consola!LogLevel:type"
|
|
5141
5141
|
},
|
|
5142
5142
|
{
|
|
5143
5143
|
"kind": "Content",
|
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.
|
|
4
|
+
"version": "14.449.1-alpha-12eee28.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@genesislcap/foundation-testing": "14.
|
|
55
|
-
"@genesislcap/genx": "14.
|
|
56
|
-
"@genesislcap/rollup-builder": "14.
|
|
57
|
-
"@genesislcap/ts-builder": "14.
|
|
58
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
59
|
-
"@genesislcap/vite-builder": "14.
|
|
60
|
-
"@genesislcap/webpack-builder": "14.
|
|
54
|
+
"@genesislcap/foundation-testing": "14.449.1-alpha-12eee28.0",
|
|
55
|
+
"@genesislcap/genx": "14.449.1-alpha-12eee28.0",
|
|
56
|
+
"@genesislcap/rollup-builder": "14.449.1-alpha-12eee28.0",
|
|
57
|
+
"@genesislcap/ts-builder": "14.449.1-alpha-12eee28.0",
|
|
58
|
+
"@genesislcap/uvu-playwright-builder": "14.449.1-alpha-12eee28.0",
|
|
59
|
+
"@genesislcap/vite-builder": "14.449.1-alpha-12eee28.0",
|
|
60
|
+
"@genesislcap/webpack-builder": "14.449.1-alpha-12eee28.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@genesislcap/foundation-logger": "14.
|
|
64
|
-
"@genesislcap/foundation-utils": "14.
|
|
65
|
-
"@genesislcap/web-core": "14.
|
|
63
|
+
"@genesislcap/foundation-logger": "14.449.1-alpha-12eee28.0",
|
|
64
|
+
"@genesislcap/foundation-utils": "14.449.1-alpha-12eee28.0",
|
|
65
|
+
"@genesislcap/web-core": "14.449.1-alpha-12eee28.0"
|
|
66
66
|
},
|
|
67
67
|
"repository": {
|
|
68
68
|
"type": "git",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "ec3e5e01881f0b7d4ffc913bb98eb58d2d2a9c6d"
|
|
76
76
|
}
|