@smartbit4all/ng-client 4.5.25 → 4.5.26

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.
@@ -4,6 +4,17 @@ import { SmartViewContextService } from '../view-context/smart-view-context.serv
4
4
  import { SessionError, SmartSessionHandlerService } from './smart-session-handler.service';
5
5
  import { SmartBackendBootstrapConfig, SmartBackendBootstrapCredentials } from './smart-backend-bootstrap.config';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * Thrown by `whenReady()` when the viewcontext was rebuilt between the
9
+ * caller's entry into `whenReady()` and the gate releasing. Any uuid the
10
+ * caller resolved before entering is now stale; `SmartComponentApiClient.run()`
11
+ * catches this and skips the load — the component is expected to receive a
12
+ * fresh uuid through `uuidOfPageHasBeenChanged` (NORMAL views) or to be
13
+ * recreated by `openView` (EMBEDDED/DIALOG views).
14
+ */
15
+ export declare class ViewContextRebuiltError extends Error {
16
+ constructor();
17
+ }
7
18
  export declare class SmartBackendBootstrapService implements SmartSessionHandlerService {
8
19
  private session;
9
20
  private viewContext;
@@ -31,6 +31,7 @@ export declare class SmartViewContextService implements OnDestroy {
31
31
  private viewHandlers;
32
32
  private openedViewUuids;
33
33
  private openedViewData;
34
+ private generation;
34
35
  private _destroy$;
35
36
  uuidOfPageHasBeenChanged: Subject<string>;
36
37
  viewContextHasBeenSynced: Subject<void>;
@@ -80,6 +81,7 @@ export declare class SmartViewContextService implements OnDestroy {
80
81
  updateViewContext(viewContextUpdate: ViewContextUpdate): Promise<ViewContextData | undefined>;
81
82
  private clearSessionStorage;
82
83
  startViewContext(): Promise<ViewContextData>;
84
+ getGeneration(): number;
83
85
  initialize(uuid?: string): Promise<ViewContextData | undefined>;
84
86
  initViewContext(): Promise<void>;
85
87
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "4.5.25",
3
+ "version": "4.5.26",
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