@tramvai/tokens-router 2.7.1 → 2.10.2

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +7 -7
  2. package/package.json +3 -3
package/lib/index.d.ts CHANGED
@@ -4,37 +4,37 @@ import type { Component } from '@tramvai/tokens-common';
4
4
  * @description
5
5
  * Token to access the router instance
6
6
  */
7
- export declare const ROUTER_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<AbstractRouter>;
7
+ export declare const ROUTER_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<AbstractRouter>;
8
8
  /**
9
9
  * @description
10
10
  * Token for defining static routes
11
11
  */
12
- export declare const ROUTES_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Route | Route[]>;
12
+ export declare const ROUTES_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<Route | Route[]>;
13
13
  /**
14
14
  * @description
15
15
  * Token for providing guard handlers for page transitions
16
16
  */
17
- export declare const ROUTER_GUARD_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<NavigationGuard>;
17
+ export declare const ROUTER_GUARD_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<NavigationGuard>;
18
18
  /**
19
19
  * @description
20
20
  * Encapsulates the logic of working with the router - contains methods for getting the configuration of the route and performing navigation
21
21
  */
22
- export declare const PAGE_SERVICE_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<PageService>;
22
+ export declare const PAGE_SERVICE_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<PageService>;
23
23
  /**
24
24
  * @description
25
25
  * Hook to resolve route dynamically
26
26
  */
27
- export declare const ROUTE_RESOLVE_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<RouteResolve>;
27
+ export declare const ROUTE_RESOLVE_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<RouteResolve>;
28
28
  /**
29
29
  * @description
30
30
  * Hook to transform route config
31
31
  */
32
- export declare const ROUTE_TRANSFORM_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<RouteTransform>;
32
+ export declare const ROUTE_TRANSFORM_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<RouteTransform>;
33
33
  /**
34
34
  * @description
35
35
  * Flag for SPA-transitions, indicating that actions must be executed before or after a route update in the stor
36
36
  */
37
- export declare const ROUTER_SPA_ACTIONS_RUN_MODE_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<"before" | "after">;
37
+ export declare const ROUTER_SPA_ACTIONS_RUN_MODE_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<"before" | "after">;
38
38
  export interface PageService {
39
39
  getCurrentRoute(): NavigationRoute;
40
40
  getCurrentUrl(): ReturnType<AbstractRouter['getCurrentUrl']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-router",
3
- "version": "2.7.1",
3
+ "version": "2.10.2",
4
4
  "description": "Tramvai tokens for @tramvai/module-router",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -20,10 +20,10 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@tinkoff/router": "0.2.0",
23
- "@tramvai/tokens-common": "2.7.1"
23
+ "@tramvai/tokens-common": "2.10.2"
24
24
  },
25
25
  "peerDependencies": {
26
- "@tinkoff/dippy": "0.7.44",
26
+ "@tinkoff/dippy": "0.7.45",
27
27
  "tslib": "^2.0.3"
28
28
  },
29
29
  "license": "Apache-2.0"