@coolon/angular-ui-powerups 16.1.0-alpha.272 → 16.1.0-alpha.273

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.
@@ -7,6 +7,13 @@ export interface NavigationContext {
7
7
  readonly urlService: UrlService;
8
8
  readonly routerInteractionAdapter: InteractionServiceRoutingAdapter;
9
9
  finishRoutingSession(visit?: Visit): any;
10
+ /**
11
+ * Records a completed navigation's visit (active visit + place history) WITHOUT finishing the
12
+ * session — for sessions that hand over to housekeeping (e.g. the interaction-id sync) whose own
13
+ * finish is deliberately visitless. Dropping the visit instead leaves activeVisit$ stale, and a
14
+ * later navigate() then builds its url from stale (possibly id-less) segments.
15
+ */
16
+ recordVisit(visit: Visit): any;
10
17
  transitionTo(newState: NavigationSession): any;
11
18
  navigateByUrl(urlSnapshot: UrlSnapshot, options: {
12
19
  replaceUrl: boolean;
@@ -21,8 +28,9 @@ export declare namespace NavigationContext {
21
28
  }) => Promise<boolean>;
22
29
  readonly transitionTo: (newState: NavigationSession) => void;
23
30
  readonly finishRoutingSession: (visit?: Visit) => void;
31
+ readonly recordVisit: (visit: Visit) => void;
24
32
  constructor(urlService: UrlService, routerInteractionAdapter: InteractionServiceRoutingAdapter, navigateByUrl: (urlSnapshot: UrlSnapshot, options: {
25
33
  replaceUrl: boolean;
26
- }) => Promise<boolean>, transitionTo: (newState: NavigationSession) => void, finishRoutingSession: (visit?: Visit) => void);
34
+ }) => Promise<boolean>, transitionTo: (newState: NavigationSession) => void, finishRoutingSession: (visit?: Visit) => void, recordVisit: (visit: Visit) => void);
27
35
  }
28
36
  }
@@ -84,6 +84,12 @@ export declare class PlaceRouter extends GarbageCollector {
84
84
  private createNavigationSession;
85
85
  protected transitionTo(next: NavigationSession): void;
86
86
  private routingSessionFinished;
87
+ /**
88
+ * Records a completed navigation's visit without finishing the session. Shared by the normal
89
+ * finish path and sessions that hand over to visitless housekeeping (see
90
+ * NavigationContext.recordVisit).
91
+ */
92
+ private recordFinishedVisit;
87
93
  /**
88
94
  * Runs `func` when the NEXT navigation session finishes — which may be a session that hasn't
89
95
  * started yet (the interaction-id sync registers its completion job before starting the sync
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.272",
3
+ "version": "16.1.0-alpha.273",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",