vc-error-handlers 0.2.1 → 0.2.3

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.
@@ -1,5 +1,7 @@
1
+ import { AssetUrlService } from '../../services/assets-url.service';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class ServerErrorComponent {
4
+ private assetUrlService;
3
5
  errorConfig: {
4
6
  imageUrl: string;
5
7
  title: string;
@@ -13,6 +15,10 @@ export declare class ServerErrorComponent {
13
15
  ERROR_IMAGE: string;
14
16
  VCOMPLY_LOGO: string;
15
17
  };
18
+ fullVcomplyLogo: string;
19
+ fullErrorImageUrl: string;
20
+ constructor(assetUrlService: AssetUrlService);
21
+ private getAssetsUrl;
16
22
  refreshPage(): void;
17
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ServerErrorComponent, never>;
18
24
  static ɵcmp: i0.ɵɵComponentDeclaration<ServerErrorComponent, "lib-vc-error-server-error", never, {}, {}, never, never, false, never>;
@@ -1,5 +1,7 @@
1
+ import { AssetUrlService } from '../../services/assets-url.service';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class UnauthorizedComponent {
4
+ private assetUrlService;
3
5
  currentYear: number;
4
6
  errorConfig: {
5
7
  imageUrl: string;
@@ -17,6 +19,10 @@ export declare class UnauthorizedComponent {
17
19
  VCOMPLY_LOGO: string;
18
20
  };
19
21
  organisationName: string;
22
+ fullVcomplyLogo: string;
23
+ fullErrorImageUrl: string;
24
+ constructor(assetUrlService: AssetUrlService);
25
+ private getAssetsUrl;
20
26
  redirectToSupport(): void;
21
27
  static ɵfac: i0.ɵɵFactoryDeclaration<UnauthorizedComponent, never>;
22
28
  static ɵcmp: i0.ɵɵComponentDeclaration<UnauthorizedComponent, "lib-vc-error-unauthorized", never, {}, {}, never, never, false, never>;
@@ -0,0 +1,5 @@
1
+ export declare const ASSETS: {
2
+ VCOMPLY_LOGO: string;
3
+ ERROR_IMAGE: string;
4
+ COMPONENT_ERROR_IMAGE: string;
5
+ };
@@ -1,4 +1,4 @@
1
- export declare const VCOMPLY_LOGO_URL = "https://cdn.v-comply.com/logo/prod/v-logo.svg";
1
+ export declare const VCOMPLY_LOGO_URL: string;
2
2
  export declare const API_TIMEOUT_TIME: number;
3
3
  export declare const ORGANISATION_NAME = "VCOMPLY TECHNOLOGIES, INC.";
4
4
  export declare const ERROR_FEATURE_FLAG = "ff_error_handling";
@@ -50,7 +50,13 @@ export declare const ERROR_CONFIG: {
50
50
  };
51
51
  };
52
52
  export declare const REDIRECTION_URL: {
53
- compliance_dashboard: string;
53
+ COMPLIANCE_DASHBOARD: string;
54
+ RISK_DASHBOARD: string;
55
+ POLICY_DASHBOARD: string;
56
+ };
57
+ export declare const MODULE_NAMES: {
58
+ RISK: string;
59
+ POLICY: string;
54
60
  };
55
61
  export declare const MODAL_ERROR_TYPES: {
56
62
  CHUNK_NOT_FOUND: string;
@@ -0,0 +1,9 @@
1
+ import { Configurations } from '../../configuration';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AssetUrlService {
4
+ private BASE_URL;
5
+ constructor(config?: Configurations);
6
+ getFullUrl(relativePath: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssetUrlService, [{ optional: true; }]>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<AssetUrlService>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vc-error-handlers",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x",
6
6
  "@angular/core": "13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x"