@n-isi-platform/design-system 1.0.15 → 1.0.16

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,10 +1,5 @@
1
- import { Injector } from "@angular/core";
2
1
  import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
3
2
  import { Observable } from 'rxjs';
4
- import { MessageService } from 'primeng/api';
5
- import { TranslateService } from '@ngx-translate/core';
6
- import { LocalStorageService } from '../services/local-storage.service';
7
- import { Router } from '@angular/router';
8
3
  import * as i0 from "@angular/core";
9
4
  /**
10
5
  * 2024-07-04 Mare:
@@ -12,12 +7,11 @@ import * as i0 from "@angular/core";
12
7
  * * loči se preko this.injector.get('ENVIRONMENT') === 'backoffice' oz. 'public'
13
8
  */
14
9
  export declare class ErrorInterceptor implements HttpInterceptor {
15
- private messageService;
10
+ private sharedAuthService;
11
+ private sharedMessageService;
16
12
  private translateService;
17
- private localStorageService;
18
13
  private router;
19
- private injector;
20
- constructor(messageService: MessageService, translateService: TranslateService, localStorageService: LocalStorageService, router: Router, injector: Injector);
14
+ constructor();
21
15
  intercept(httpRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
22
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorInterceptor, never>;
23
17
  static ɵprov: i0.ɵɵInjectableDeclaration<ErrorInterceptor>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n-isi-platform/design-system",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "19.2.6",
6
6
  "@angular/core": "19.2.6"
package/public-api.d.ts CHANGED
@@ -10,7 +10,6 @@ export * from './helpers/isFormValid.function';
10
10
  export * from './helpers/local-format-date.function';
11
11
  export * from './helpers/transform-date-time.function';
12
12
  export * from './interceptors/error.interceptor';
13
- export * from './interceptors/jwt.interceptor';
14
13
  export * from './lib/accordion/accordion.component';
15
14
  export * from './lib/autocomplete/autocomplete.component';
16
15
  export * from './lib/breadcrumbs/breadcrumbs.component';
@@ -1,13 +0,0 @@
1
- import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from "@angular/common/http";
2
- import { Observable } from "rxjs";
3
- import { LocalStorageService } from '../services/local-storage.service';
4
- import { SharedAuthService } from "../services/shared-auth.service";
5
- import * as i0 from "@angular/core";
6
- export declare class JwtInterceptor implements HttpInterceptor {
7
- private readonly localStorageService;
8
- private readonly sharedAuthService;
9
- constructor(localStorageService: LocalStorageService, sharedAuthService: SharedAuthService);
10
- intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<JwtInterceptor, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<JwtInterceptor>;
13
- }