@smartbit4all/ng-client 4.4.0 → 4.5.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.
@@ -1,11 +1,13 @@
1
1
  import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { SessionError, SmartSessionService } from './projects';
4
+ import { SmartViewContextService } from '../view-context/smart-view-context.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class SmartErrorCatchingInterceptor implements HttpInterceptor {
6
7
  private session;
8
+ private viewcontext;
7
9
  sessionErrorCodes: SessionError[];
8
- constructor(session: SmartSessionService);
10
+ constructor(session: SmartSessionService, viewcontext: SmartViewContextService);
9
11
  intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
10
12
  private handleError;
11
13
  private isSessionError;
@@ -17,5 +17,6 @@ export interface SessionError {
17
17
  }
18
18
  export declare enum SessionErrorBehaviour {
19
19
  REFRESH = 0,
20
- RESTART = 1
20
+ RESTART = 1,
21
+ RESTART_VIEWCONTEXT = 2
21
22
  }
@@ -35,6 +35,7 @@ export declare class SmartViewContextService implements OnDestroy {
35
35
  uuidOfPageHasBeenChanged: Subject<string>;
36
36
  viewContextHasBeenSynced: Subject<void>;
37
37
  private initializeRunning;
38
+ private initiNewContextRunning;
38
39
  smartViewContextApiErrors?: SmartViewContextApiErrors;
39
40
  openSmartLink: Subject<string>;
40
41
  isOpeningSmartLink: boolean;
@@ -80,6 +81,8 @@ export declare class SmartViewContextService implements OnDestroy {
80
81
  private clearSessionStorage;
81
82
  startViewContext(): Promise<ViewContextData>;
82
83
  initialize(uuid?: string): Promise<ViewContextData | undefined>;
84
+ initViewContext(): Promise<void>;
85
+ initNewViewContext(): Promise<void>;
83
86
  openView(view: ViewData): ViewStateUpdate | undefined;
84
87
  closeView(view: ViewData): ViewStateUpdate[];
85
88
  private cleanupEmbeddedChildren;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
6
6
  "@angular/common": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
Binary file
Binary file