@tramvai/module-router 2.0.2 → 2.2.3
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.
- package/lib/modules/fileSystemPages.d.ts +2 -2
- package/lib/modules/server.d.ts +1 -1
- package/lib/modules/tokens.d.ts +10 -10
- package/package.json +16 -16
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const providers: import("@tramvai/core").Provider<{
|
|
2
|
-
logger: import("@tramvai/tokens-common").LoggerFactory
|
|
3
|
-
}, import("@tinkoff/router").Route[]
|
|
2
|
+
logger: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<import("@tramvai/tokens-common").LoggerFactory>;
|
|
3
|
+
}, import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<import("@tinkoff/router").Route | import("@tinkoff/router").Route[]>>[];
|
package/lib/modules/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class NoSpaRouterModule {
|
|
2
2
|
static forRoot: (routes: import("@tinkoff/router").Route[], options?: {
|
|
3
|
-
spaActionsMode?: "before" | "after"
|
|
3
|
+
spaActionsMode?: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<"before" | "after">;
|
|
4
4
|
}) => {
|
|
5
5
|
mainModule: typeof NoSpaRouterModule;
|
|
6
6
|
providers: import("@tramvai/core").Provider<any, any>[];
|
package/lib/modules/tokens.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { NavigationHook, AbstractRouter, NavigationSyncHook, Route } from '@tinkoff/router';
|
|
2
|
-
export declare const routerClassToken: AbstractRouter
|
|
3
|
-
export declare const additionalRouterParameters: Record<string, any
|
|
4
|
-
export declare const onChangeHooksToken: NavigationSyncHook
|
|
5
|
-
export declare const beforeResolveHooksToken: NavigationHook
|
|
6
|
-
export declare const beforeNavigateHooksToken: NavigationHook
|
|
7
|
-
export declare const afterNavigateHooksToken: NavigationHook
|
|
8
|
-
export declare const beforeUpdateCurrentHooksToken: NavigationHook
|
|
9
|
-
export declare const afterUpdateCurrentHooksToken: NavigationHook
|
|
10
|
-
export declare const routeTransformToken: import("@tramvai/tokens-router").RouteTransform
|
|
11
|
-
export declare const routerBundleInfoAdditionalToken: () => Promise<Route[]
|
|
2
|
+
export declare const routerClassToken: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<AbstractRouter>;
|
|
3
|
+
export declare const additionalRouterParameters: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<Record<string, any>>;
|
|
4
|
+
export declare const onChangeHooksToken: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<NavigationSyncHook>;
|
|
5
|
+
export declare const beforeResolveHooksToken: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<NavigationHook>;
|
|
6
|
+
export declare const beforeNavigateHooksToken: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<NavigationHook>;
|
|
7
|
+
export declare const afterNavigateHooksToken: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<NavigationHook>;
|
|
8
|
+
export declare const beforeUpdateCurrentHooksToken: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<NavigationHook>;
|
|
9
|
+
export declare const afterUpdateCurrentHooksToken: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<NavigationHook>;
|
|
10
|
+
export declare const routeTransformToken: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<import("@tramvai/tokens-router").RouteTransform>>;
|
|
11
|
+
export declare const routerBundleInfoAdditionalToken: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<() => Promise<Route[]>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-router",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -25,24 +25,24 @@
|
|
|
25
25
|
"@tinkoff/errors": "0.2.22",
|
|
26
26
|
"@tinkoff/router": "0.1.79",
|
|
27
27
|
"@tinkoff/url": "0.7.39",
|
|
28
|
-
"@tramvai/tokens-child-app": "2.
|
|
29
|
-
"@tramvai/tokens-render": "2.
|
|
30
|
-
"@tramvai/tokens-router": "2.
|
|
31
|
-
"@tramvai/tokens-server": "2.
|
|
32
|
-
"@tramvai/experiments": "2.
|
|
28
|
+
"@tramvai/tokens-child-app": "2.2.3",
|
|
29
|
+
"@tramvai/tokens-render": "2.2.3",
|
|
30
|
+
"@tramvai/tokens-router": "2.2.3",
|
|
31
|
+
"@tramvai/tokens-server": "2.2.3",
|
|
32
|
+
"@tramvai/experiments": "2.2.3"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@tinkoff/utils": "^2.1.2",
|
|
36
|
-
"@tramvai/cli": "2.
|
|
37
|
-
"@tramvai/core": "2.
|
|
38
|
-
"@tramvai/module-log": "2.
|
|
39
|
-
"@tramvai/module-server": "2.
|
|
40
|
-
"@tramvai/papi": "2.
|
|
41
|
-
"@tramvai/state": "2.
|
|
42
|
-
"@tramvai/test-helpers": "2.
|
|
43
|
-
"@tramvai/test-mocks": "2.
|
|
44
|
-
"@tramvai/tokens-common": "2.
|
|
45
|
-
"@tinkoff/dippy": "0.7.
|
|
36
|
+
"@tramvai/cli": "2.2.3",
|
|
37
|
+
"@tramvai/core": "2.2.3",
|
|
38
|
+
"@tramvai/module-log": "2.2.3",
|
|
39
|
+
"@tramvai/module-server": "2.2.3",
|
|
40
|
+
"@tramvai/papi": "2.2.3",
|
|
41
|
+
"@tramvai/state": "2.2.3",
|
|
42
|
+
"@tramvai/test-helpers": "2.2.3",
|
|
43
|
+
"@tramvai/test-mocks": "2.2.3",
|
|
44
|
+
"@tramvai/tokens-common": "2.2.3",
|
|
45
|
+
"@tinkoff/dippy": "0.7.43",
|
|
46
46
|
"react": "*",
|
|
47
47
|
"tslib": "^2.0.3"
|
|
48
48
|
},
|