vc-error-handlers 1.0.0 → 1.1.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/package.json CHANGED
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "name": "vc-error-handlers",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "peerDependencies": {
5
- "@angular/common": " 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x || 23.x || 24.x ",
6
- "@angular/core": "13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x || 23.x || 24.x"
5
+ "@angular/common": " 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x",
6
+ "@angular/core": "13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x || 20.x || 21.x || 22.x"
7
7
  },
8
8
  "publishConfig": {
9
9
  "access": "public",
10
10
  "registry": "https://registry.npmjs.org/"
11
11
  },
12
12
  "module": "fesm2022/vc-error-handlers.mjs",
13
- "typings": "index.d.ts",
13
+ "typings": "types/vc-error-handlers.d.ts",
14
14
  "exports": {
15
15
  "./package.json": {
16
16
  "default": "./package.json"
17
17
  },
18
18
  ".": {
19
- "types": "./index.d.ts",
19
+ "types": "./types/vc-error-handlers.d.ts",
20
20
  "default": "./fesm2022/vc-error-handlers.mjs"
21
21
  }
22
22
  },
23
23
  "sideEffects": false,
24
+ "type": "module",
24
25
  "dependencies": {
25
26
  "tslib": "^2.3.0"
26
27
  }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, ViewContainerRef, AfterViewInit, ComponentRef, Type, ComponentFactoryResolver, ChangeDetectorRef, ApplicationRef, Injector, EventEmitter, TemplateRef, ElementRef, Renderer2, InjectionToken, ModuleWithProviders } from '@angular/core';
2
+ import { OnInit, ViewContainerRef, AfterViewInit, OnDestroy, ComponentRef, Type, ChangeDetectorRef, ApplicationRef, Injector, EventEmitter, TemplateRef, ElementRef, Renderer2, InjectionToken, ModuleWithProviders } from '@angular/core';
3
3
  import { HttpParams, HttpResponse, HttpErrorResponse, HttpRequest, HttpClient, HttpInterceptor, HttpHandler, HttpEvent } from '@angular/common/http';
4
4
  import { Router, ActivatedRoute } from '@angular/router';
5
5
  import * as rxjs from 'rxjs';
@@ -11,7 +11,7 @@ import * as i2 from '@angular/common';
11
11
  declare class VcErrorHandlersService {
12
12
  constructor();
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<VcErrorHandlersService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<VcErrorHandlersService>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
15
15
  }
16
16
 
17
17
  declare class SnackBarService {
@@ -21,7 +21,7 @@ declare class SnackBarService {
21
21
  show(message: string, type?: 'success' | 'warning' | 'info' | 'alert' | 'error'): void;
22
22
  hide(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<SnackBarService>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
25
25
  }
26
26
 
27
27
  declare class UtilsService {
@@ -35,7 +35,7 @@ declare class UtilsService {
35
35
  isSubsetOfArray(apiBody: any, requestBody: any): boolean;
36
36
  isValueInArray(apiPageCodes: string[], pageCode: string): boolean;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
39
39
  }
40
40
 
41
41
  declare class GlobalErrorService {
@@ -63,7 +63,7 @@ declare class GlobalErrorService {
63
63
  private getPageCode;
64
64
  private isApiConfigMatching;
65
65
  static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorService, never>;
66
- static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorService>;
66
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
67
67
  }
68
68
 
69
69
  declare class RouterService {
@@ -73,7 +73,7 @@ declare class RouterService {
73
73
  redirectToLogin(): void;
74
74
  redirectToHome(module_name: string): void;
75
75
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterService, never>;
76
- static ɵprov: i0.ɵɵInjectableDeclaration<RouterService>;
76
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
77
77
  }
78
78
 
79
79
  declare class Configurations {
@@ -97,10 +97,10 @@ declare class FeatureFlagService {
97
97
  buildFeatureFlags(orgId: any): void;
98
98
  isFeatureEnabled(featureFlag: string): any;
99
99
  static ɵfac: i0.ɵɵFactoryDeclaration<FeatureFlagService, [null, null, { optional: true; }]>;
100
- static ɵprov: i0.ɵɵInjectableDeclaration<FeatureFlagService>;
100
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
101
101
  }
102
102
 
103
- declare class VcErrorHandlersComponent implements OnInit, OnDestroy {
103
+ declare class VcErrorHandlersComponent implements OnInit {
104
104
  private errorService;
105
105
  private snackBarService;
106
106
  private featureFlagService;
@@ -200,7 +200,6 @@ declare class DialogConfig<D = any> {
200
200
  }
201
201
 
202
202
  declare class DialogComponent implements AfterViewInit, OnDestroy, OnInit {
203
- private componentFactoryResolver;
204
203
  private cd;
205
204
  private dialogRef;
206
205
  config: DialogConfig;
@@ -214,7 +213,7 @@ declare class DialogComponent implements AfterViewInit, OnDestroy, OnInit {
214
213
  private readonly onDialogClose;
215
214
  onClose: rxjs.Observable<any>;
216
215
  childComponentType: Type<any>;
217
- constructor(componentFactoryResolver: ComponentFactoryResolver, cd: ChangeDetectorRef, dialogRef: DialogRef, config: DialogConfig, router: Router);
216
+ constructor(cd: ChangeDetectorRef, dialogRef: DialogRef, config: DialogConfig, router: Router);
218
217
  ngOnInit(): void;
219
218
  routeAction(): void;
220
219
  ngAfterViewInit(): void;
@@ -228,16 +227,15 @@ declare class DialogComponent implements AfterViewInit, OnDestroy, OnInit {
228
227
  }
229
228
 
230
229
  declare class DialogService {
231
- private componentFactoryResolver;
232
230
  private appRef;
233
231
  private injector;
234
232
  dialogComponentRef: ComponentRef<DialogComponent>;
235
- constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
233
+ constructor(appRef: ApplicationRef, injector: Injector);
236
234
  open(componentType: Type<any>, config: DialogConfig): DialogRef;
237
235
  private appendDialogComponentToBody;
238
236
  private removeDialogComponentFromBody;
239
237
  static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
240
- static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
238
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
241
239
  }
242
240
 
243
241
  declare class ChunkUnavailableComponent implements OnInit {
@@ -434,7 +432,7 @@ declare class HttpReqInterceptor implements HttpInterceptor {
434
432
  constructor(errorService: GlobalErrorService);
435
433
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
436
434
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpReqInterceptor, never>;
437
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpReqInterceptor>;
435
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
438
436
  }
439
437
 
440
438
  export { ChunkUnavailableComponent, ComponentLevelServerErrorComponent, ErrorModalComponent, FOR_ROOT_SENTRY_OPTIONS_TOKEN, GlobalErrorService, HttpReqInterceptor, PageNotFoundComponent, RouterService, ServerErrorComponent, SessionExpiredComponent, UnauthorizedComponent, VcErrorHandlersComponent, VcErrorHandlersModule, VcErrorHandlersService };