phoenix-ui-components 2.10.0 → 2.11.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.
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ErrorMessageService {
3
+ /** A variable that stores the latest error thrown. */
4
+ private error;
5
+ /**
6
+ * Subscribe to when an error occurs.
7
+ * @param callback A function called when an error occurs.
8
+ */
9
+ subscribeToError(callback: (error: Error) => void): void;
10
+ /**
11
+ * Set the current error.
12
+ * @param error The error that has occurred.
13
+ */
14
+ setError(error: Error): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessageService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<ErrorMessageService>;
17
+ }
@@ -0,0 +1,20 @@
1
+ import { ErrorHandler, Injector } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Global handler for handling app/module wide errors.
5
+ */
6
+ export declare class GlobalErrorHandler implements ErrorHandler {
7
+ private injector;
8
+ /**
9
+ * Instantiate the global error handler.
10
+ * @param injector Injector for getting the error message service.
11
+ */
12
+ constructor(injector: Injector);
13
+ /**
14
+ * A handler for handling the global error that occurs in the app.
15
+ * @param error The error that occurred.
16
+ */
17
+ handleError(error: Error): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorHandler, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorHandler>;
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phoenix-ui-components",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "Reusable Angular components of the Phoenix event display application.",
5
5
  "author": "Phoenix contributors (https://github.com/HSF/phoenix/graphs/contributors)",
6
6
  "license": "Apache-2.0",
@@ -40,5 +40,5 @@
40
40
  "fesm2015": "dist/fesm2015/phoenix-ui-components.mjs",
41
41
  "typings": "dist/phoenix-ui-components.d.ts",
42
42
  "sideEffects": false,
43
- "gitHead": "0fdd6528570a58d48309b403def502373ca5e7f2"
43
+ "gitHead": "563b077f039730bbc32abf17eba62b45d3a94fc7"
44
44
  }