@coolon/angular-ui-powerups 0.0.106 → 0.0.108

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,5 +1,5 @@
1
1
  import { Location } from '@angular/common';
2
- import { ActivatedRoute, ActivatedRouteSnapshot, Router, UrlSerializer } from '@angular/router';
2
+ import { ActivatedRoute, ActivatedRouteSnapshot, NavigationExtras, Router, UrlSerializer } from '@angular/router';
3
3
  import { GarbageCollector, HasOneIndexChain, ListModel, ValueModel } from '@coolon/pectin';
4
4
  import { InteractionService } from '../interaction/services/interaction.service';
5
5
  import { NavigationState } from './guards/navigation-state';
@@ -42,6 +42,6 @@ export declare class PlaceRouter extends GarbageCollector {
42
42
  getCurrentRouteSnapshot(): UrlSnapshot;
43
43
  getActiveInteractionIdsFromUrl(url: string): string[];
44
44
  hasActiveInteractionIds(url: string): boolean;
45
- navigateByUrl(urlSnapshot: UrlSnapshot): void;
46
- syncInteractionIdsWithRouter(): void;
45
+ navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean>;
46
+ syncInteractionIdsWithRouter(currentIds: string[], previous: string[]): void;
47
47
  }
@@ -1,12 +1,11 @@
1
- import { NavigationExtras, UrlSegment, UrlSerializer, UrlTree } from '@angular/router';
1
+ import { UrlSegment, UrlSerializer, UrlTree } from '@angular/router';
2
2
  import { PlaceDefinition } from './place-definition';
3
3
  import { Visit } from './visit';
4
4
  export declare class UrlSnapshot {
5
5
  readonly urlSerializer: UrlSerializer;
6
6
  readonly url: string;
7
- private readonly options;
8
7
  readonly urlTree: UrlTree;
9
- constructor(urlSerializer: UrlSerializer, url: string, options: NavigationExtras);
8
+ constructor(urlSerializer: UrlSerializer, url: string);
10
9
  updateVisitSegments(visit: Visit): UrlSnapshot;
11
10
  private getPrimarySegments;
12
11
  /**
@@ -19,8 +18,6 @@ export declare class UrlSnapshot {
19
18
  hasInteractionIds(): boolean;
20
19
  updateInteractionIds(ids: string[]): UrlSnapshot;
21
20
  removeInteractionIds(): UrlSnapshot;
22
- withOptions(options: NavigationExtras): UrlSnapshot;
23
- getNavigationExtras(): NavigationExtras;
24
21
  }
25
22
  export declare namespace UrlSnapshot {
26
23
  const INTERACTION_QUERY_PARAM = "aup-interactions";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "ts-morph": "^3.1.3",