@genesislcap/foundation-errors 14.441.0 → 14.443.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/error-banner-launcher.d.ts +1 -1
- package/dist/dts/dialog/error-dialog-launcher.d.ts +1 -1
- package/dist/dts/error-launcher.d.ts +1 -1
- package/dist/dts/error-util.d.ts +1 -1
- package/dist/dts/notification/notification-launcher.d.ts +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts +1 -1
- package/dist/dts/types.d.ts +2 -2
- package/dist/foundation-errors.api.json +10 -15
- package/dist/foundation-errors.d.ts +8 -8
- package/package.json +12 -12
|
@@ -6,5 +6,5 @@ import { ErrorStructure } from '../types';
|
|
|
6
6
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
7
7
|
* @returns
|
|
8
8
|
* */
|
|
9
|
-
export declare const showBanner: (error: ErrorStructure, tagName:
|
|
9
|
+
export declare const showBanner: (error: ErrorStructure, tagName: string, errorBoundary: HTMLElement) => void;
|
|
10
10
|
//# sourceMappingURL=error-banner-launcher.d.ts.map
|
|
@@ -6,5 +6,5 @@ import { ErrorStructure } from '../types';
|
|
|
6
6
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
7
7
|
* @returns
|
|
8
8
|
* */
|
|
9
|
-
export declare const showDialog: (error: ErrorStructure, tagName:
|
|
9
|
+
export declare const showDialog: (error: ErrorStructure, tagName: string) => void;
|
|
10
10
|
//# sourceMappingURL=error-dialog-launcher.d.ts.map
|
|
@@ -7,5 +7,5 @@ import { ErrorStructure } from './types';
|
|
|
7
7
|
* @param errorBoundary - The error boundary element
|
|
8
8
|
* @returns
|
|
9
9
|
* */
|
|
10
|
-
export declare const showError: (error: ErrorStructure, tagName:
|
|
10
|
+
export declare const showError: (error: ErrorStructure, tagName: string, errorBoundary?: HTMLElement) => void;
|
|
11
11
|
//# sourceMappingURL=error-launcher.d.ts.map
|
package/dist/dts/error-util.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const getLoglevel: (details: ErrorStructure) => LogLevel;
|
|
|
21
21
|
* @param tagName - The tag name to create prefix for the design system provider
|
|
22
22
|
* @returns
|
|
23
23
|
*/
|
|
24
|
-
export declare const getErrorContainer: (id: string, tagName:
|
|
24
|
+
export declare const getErrorContainer: (id: string, tagName: string) => HTMLElement;
|
|
25
25
|
/**
|
|
26
26
|
* Get the error banner anchor to attach the banner to
|
|
27
27
|
* @public
|
|
@@ -6,5 +6,5 @@ import { ErrorStructure } from '../types';
|
|
|
6
6
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
7
7
|
* @returns
|
|
8
8
|
* */
|
|
9
|
-
export declare const showNotification: (error: ErrorStructure, tagName:
|
|
9
|
+
export declare const showNotification: (error: ErrorStructure, tagName: string) => void;
|
|
10
10
|
//# sourceMappingURL=notification-launcher.d.ts.map
|
|
@@ -6,5 +6,5 @@ import { ErrorStructure } from '../types';
|
|
|
6
6
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
7
7
|
* @returns
|
|
8
8
|
* */
|
|
9
|
-
export declare const showSnackbar: (error: ErrorStructure, tagName:
|
|
9
|
+
export declare const showSnackbar: (error: ErrorStructure, tagName: string) => void;
|
|
10
10
|
//# sourceMappingURL=snackbar-launcher.d.ts.map
|
package/dist/dts/types.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export interface ErrorNotification {
|
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
33
|
export interface DismissingAction {
|
|
34
|
-
readonly label:
|
|
34
|
+
readonly label: string;
|
|
35
35
|
readonly action?: Function;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
@@ -39,7 +39,7 @@ export interface DismissingAction {
|
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
41
|
export interface ConfirmingAction {
|
|
42
|
-
readonly label:
|
|
42
|
+
readonly label: string;
|
|
43
43
|
readonly action: Function;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
@@ -225,9 +225,8 @@
|
|
|
225
225
|
"text": "readonly label: "
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
|
-
"kind": "
|
|
229
|
-
"text": "
|
|
230
|
-
"canonicalReference": "!String:interface"
|
|
228
|
+
"kind": "Content",
|
|
229
|
+
"text": "string"
|
|
231
230
|
},
|
|
232
231
|
{
|
|
233
232
|
"kind": "Content",
|
|
@@ -299,9 +298,8 @@
|
|
|
299
298
|
"text": "readonly label: "
|
|
300
299
|
},
|
|
301
300
|
{
|
|
302
|
-
"kind": "
|
|
303
|
-
"text": "
|
|
304
|
-
"canonicalReference": "!String:interface"
|
|
301
|
+
"kind": "Content",
|
|
302
|
+
"text": "string"
|
|
305
303
|
},
|
|
306
304
|
{
|
|
307
305
|
"kind": "Content",
|
|
@@ -1748,9 +1746,8 @@
|
|
|
1748
1746
|
"text": ", tagName: "
|
|
1749
1747
|
},
|
|
1750
1748
|
{
|
|
1751
|
-
"kind": "
|
|
1752
|
-
"text": "
|
|
1753
|
-
"canonicalReference": "!String:interface"
|
|
1749
|
+
"kind": "Content",
|
|
1750
|
+
"text": "string"
|
|
1754
1751
|
},
|
|
1755
1752
|
{
|
|
1756
1753
|
"kind": "Content",
|
|
@@ -2217,9 +2214,8 @@
|
|
|
2217
2214
|
"text": ", tagName: "
|
|
2218
2215
|
},
|
|
2219
2216
|
{
|
|
2220
|
-
"kind": "
|
|
2221
|
-
"text": "
|
|
2222
|
-
"canonicalReference": "!String:interface"
|
|
2217
|
+
"kind": "Content",
|
|
2218
|
+
"text": "string"
|
|
2223
2219
|
},
|
|
2224
2220
|
{
|
|
2225
2221
|
"kind": "Content",
|
|
@@ -2293,9 +2289,8 @@
|
|
|
2293
2289
|
"text": ", tagName: "
|
|
2294
2290
|
},
|
|
2295
2291
|
{
|
|
2296
|
-
"kind": "
|
|
2297
|
-
"text": "
|
|
2298
|
-
"canonicalReference": "!String:interface"
|
|
2292
|
+
"kind": "Content",
|
|
2293
|
+
"text": "string"
|
|
2299
2294
|
},
|
|
2300
2295
|
{
|
|
2301
2296
|
"kind": "Content",
|
|
@@ -5,7 +5,7 @@ import { LogLevel } from '@genesislcap/foundation-logger';
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export declare interface ConfirmingAction {
|
|
8
|
-
readonly label:
|
|
8
|
+
readonly label: string;
|
|
9
9
|
readonly action: Function;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ export declare interface ConfirmingAction {
|
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
16
|
export declare interface DismissingAction {
|
|
17
|
-
readonly label:
|
|
17
|
+
readonly label: string;
|
|
18
18
|
readonly action?: Function;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -263,7 +263,7 @@ export declare const getErrorBuilder: () => ErrorBuilder;
|
|
|
263
263
|
* @param tagName - The tag name to create prefix for the design system provider
|
|
264
264
|
* @returns
|
|
265
265
|
*/
|
|
266
|
-
export declare const getErrorContainer: (id: string, tagName:
|
|
266
|
+
export declare const getErrorContainer: (id: string, tagName: string) => HTMLElement;
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
269
|
* Retrieves the error details from an ErrorStructure object
|
|
@@ -350,7 +350,7 @@ export declare class NotificationBuilder {
|
|
|
350
350
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
351
351
|
* @returns
|
|
352
352
|
* */
|
|
353
|
-
export declare const showBanner: (error: ErrorStructure, tagName:
|
|
353
|
+
export declare const showBanner: (error: ErrorStructure, tagName: string, errorBoundary: HTMLElement) => void;
|
|
354
354
|
|
|
355
355
|
/**
|
|
356
356
|
* Shows the error dialog
|
|
@@ -359,7 +359,7 @@ export declare const showBanner: (error: ErrorStructure, tagName: String, errorB
|
|
|
359
359
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
360
360
|
* @returns
|
|
361
361
|
* */
|
|
362
|
-
export declare const showDialog: (error: ErrorStructure, tagName:
|
|
362
|
+
export declare const showDialog: (error: ErrorStructure, tagName: string) => void;
|
|
363
363
|
|
|
364
364
|
/**
|
|
365
365
|
* Shows the error in the appropriate component
|
|
@@ -369,7 +369,7 @@ export declare const showDialog: (error: ErrorStructure, tagName: String) => voi
|
|
|
369
369
|
* @param errorBoundary - The error boundary element
|
|
370
370
|
* @returns
|
|
371
371
|
* */
|
|
372
|
-
export declare const showError: (error: ErrorStructure, tagName:
|
|
372
|
+
export declare const showError: (error: ErrorStructure, tagName: string, errorBoundary?: HTMLElement) => void;
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
375
|
* Shows the error notification
|
|
@@ -378,7 +378,7 @@ export declare const showError: (error: ErrorStructure, tagName: String, errorBo
|
|
|
378
378
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
379
379
|
* @returns
|
|
380
380
|
* */
|
|
381
|
-
export declare const showNotification: (error: ErrorStructure, tagName:
|
|
381
|
+
export declare const showNotification: (error: ErrorStructure, tagName: string) => void;
|
|
382
382
|
|
|
383
383
|
/**
|
|
384
384
|
* Shows the snackbar
|
|
@@ -387,7 +387,7 @@ export declare const showNotification: (error: ErrorStructure, tagName: String)
|
|
|
387
387
|
* @param tagName - The tag name to create prefix for the design system provider & error component
|
|
388
388
|
* @returns
|
|
389
389
|
* */
|
|
390
|
-
export declare const showSnackbar: (error: ErrorStructure, tagName:
|
|
390
|
+
export declare const showSnackbar: (error: ErrorStructure, tagName: string) => void;
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
* Interface for Error Snackbar configuration
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-errors",
|
|
3
3
|
"description": "Genesis Foundation UI Error Utils",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.443.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"test:unit:browser:watch": "genx test --browser --watch",
|
|
41
41
|
"test:unit:watch": "genx test --watch",
|
|
42
42
|
"test:debug": "genx test --debug",
|
|
43
|
-
"lint": "genx lint
|
|
44
|
-
"lint:fix": "genx lint --fix"
|
|
43
|
+
"lint": "genx lint -l ox",
|
|
44
|
+
"lint:fix": "genx lint -l ox --fix"
|
|
45
45
|
},
|
|
46
46
|
"madge": {
|
|
47
47
|
"detectiveOptions": {
|
|
@@ -51,16 +51,16 @@
|
|
|
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.443.0",
|
|
55
|
+
"@genesislcap/genx": "14.443.0",
|
|
56
|
+
"@genesislcap/rollup-builder": "14.443.0",
|
|
57
|
+
"@genesislcap/ts-builder": "14.443.0",
|
|
58
|
+
"@genesislcap/uvu-playwright-builder": "14.443.0",
|
|
59
|
+
"@genesislcap/vite-builder": "14.443.0",
|
|
60
|
+
"@genesislcap/webpack-builder": "14.443.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@genesislcap/foundation-logger": "14.
|
|
63
|
+
"@genesislcap/foundation-logger": "14.443.0"
|
|
64
64
|
},
|
|
65
65
|
"repository": {
|
|
66
66
|
"type": "git",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "057cb7a0d06f339094c8634a413e4a6e1aa95659"
|
|
74
74
|
}
|