@tramvai/module-router 2.150.0 → 2.150.1
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/components/link.d.ts +1 -0
- package/lib/hooks/usePageService.d.ts +1 -0
- package/lib/hooks/usePrefetch.browser.d.ts +1 -0
- package/lib/hooks/usePrefetch.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/modules/browser.d.ts +1 -0
- package/lib/modules/child-app.d.ts +1 -0
- package/lib/modules/clientCommon.d.ts +1 -0
- package/lib/modules/common.d.ts +1 -0
- package/lib/modules/fileSystemPages.d.ts +1 -0
- package/lib/modules/guards/common/index.d.ts +1 -0
- package/lib/modules/guards/common/internalError.d.ts +1 -0
- package/lib/modules/guards/common/loadBundle.d.ts +1 -0
- package/lib/modules/guards/server/httpMethod.d.ts +1 -0
- package/lib/modules/guards/server/index.d.ts +1 -0
- package/lib/modules/hooks/common/fillRouterStore.d.ts +1 -0
- package/lib/modules/hooks/common/index.d.ts +1 -0
- package/lib/modules/hooks/runActions.d.ts +1 -0
- package/lib/modules/hooks/server/httpStatus.d.ts +1 -0
- package/lib/modules/hooks/server/index.d.ts +1 -0
- package/lib/modules/hooks/spa/index.d.ts +1 -0
- package/lib/modules/hooks/spa/runCommands.d.ts +1 -0
- package/lib/modules/no-spa.d.ts +2 -1
- package/lib/modules/server.d.ts +3 -2
- package/lib/modules/spa.d.ts +2 -1
- package/lib/modules/tokens/browser/index.d.ts +1 -0
- package/lib/modules/tokens/browser/prefetch.d.ts +1 -0
- package/lib/modules/tokens/common/index.d.ts +1 -0
- package/lib/modules/tokens/common/pageRegistry.d.ts +1 -0
- package/lib/modules/tokens/common/pageService.d.ts +1 -0
- package/lib/modules/tokens/common/render.d.ts +1 -0
- package/lib/modules/tokens/common/routeNormalize.d.ts +1 -0
- package/lib/modules/tokens/common/routeSetDefaults.d.ts +1 -0
- package/lib/modules/tokens/common/routeTransform.d.ts +1 -0
- package/lib/modules/tokens/server/bundleInfo.d.ts +2 -1
- package/lib/modules/tokens/server/index.d.ts +1 -0
- package/lib/modules/tokens/server/prefetch.d.ts +1 -0
- package/lib/modules/tokens/server/routerOptions.d.ts +1 -0
- package/lib/modules/tokens.d.ts +1 -0
- package/lib/modules/utils/forRoot.d.ts +1 -0
- package/lib/stores/PageErrorStore.d.ts +2 -1
- package/lib/stores/RouterStore.d.ts +3 -2
- package/lib/test/index.d.ts +1 -0
- package/lib/test/unit/guard.d.ts +1 -0
- package/lib/utils/requestIdleCallback.d.ts +1 -0
- package/package.json +16 -16
- package/tests.d.ts +1 -0
package/lib/components/link.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/modules/browser.d.ts
CHANGED
package/lib/modules/common.d.ts
CHANGED
package/lib/modules/no-spa.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export declare const NoSpaRouterModule: import("@tinkoff/dippy/lib/modules/modul
|
|
|
5
5
|
}) | ("after" & {
|
|
6
6
|
__type?: "base token";
|
|
7
7
|
});
|
|
8
|
-
}) => import("@tramvai/core").ModuleType
|
|
8
|
+
}) => import("@tramvai/core").ModuleType;
|
|
9
9
|
};
|
|
10
|
+
//# sourceMappingURL=no-spa.d.ts.map
|
package/lib/modules/server.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const NoSpaRouterModule: import("@tinkoff/dippy/lib/modules/modul
|
|
|
5
5
|
}) | ("after" & {
|
|
6
6
|
__type?: "base token";
|
|
7
7
|
});
|
|
8
|
-
}) => import("@tramvai/core").ModuleType
|
|
8
|
+
}) => import("@tramvai/core").ModuleType;
|
|
9
9
|
};
|
|
10
10
|
export declare const SpaRouterModule: import("@tinkoff/dippy/lib/modules/module.h").ModuleClass & Partial<import("@tinkoff/dippy/lib/modules/module.h").ModuleSecretParameters> & {
|
|
11
11
|
forRoot: (routes: import("@tinkoff/router").Route[], options?: {
|
|
@@ -14,5 +14,6 @@ export declare const SpaRouterModule: import("@tinkoff/dippy/lib/modules/module.
|
|
|
14
14
|
}) | ("after" & {
|
|
15
15
|
__type?: "base token";
|
|
16
16
|
});
|
|
17
|
-
}) => import("@tramvai/core").ModuleType
|
|
17
|
+
}) => import("@tramvai/core").ModuleType;
|
|
18
18
|
};
|
|
19
|
+
//# sourceMappingURL=server.d.ts.map
|
package/lib/modules/spa.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export declare const SpaRouterModule: import("@tinkoff/dippy/lib/modules/module.
|
|
|
5
5
|
}) | ("after" & {
|
|
6
6
|
__type?: "base token";
|
|
7
7
|
});
|
|
8
|
-
}) => import("@tramvai/core").ModuleType
|
|
8
|
+
}) => import("@tramvai/core").ModuleType;
|
|
9
9
|
};
|
|
10
|
+
//# sourceMappingURL=spa.d.ts.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const bundleInfoPapi: import("@tramvai/papi").Papi
|
|
1
|
+
export declare const bundleInfoPapi: import("@tramvai/papi").Papi;
|
|
2
|
+
//# sourceMappingURL=bundleInfo.d.ts.map
|
package/lib/modules/tokens.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import type { AnyError, SerializedError } from '@tramvai/safe-strings';
|
|
|
2
2
|
import { serializeError, deserializeError } from '@tramvai/safe-strings';
|
|
3
3
|
export { serializeError, deserializeError, SerializedError };
|
|
4
4
|
export type IPageErrorStore = SerializedError | null;
|
|
5
|
-
export declare const setPageErrorEvent: import("@tramvai/types-actions-state-context").EventCreator1<AnyError
|
|
5
|
+
export declare const setPageErrorEvent: import("@tramvai/types-actions-state-context").EventCreator1<AnyError>;
|
|
6
6
|
export declare const PageErrorStore: import("@tramvai/state").Reducer<SerializedError, "pageError", never>;
|
|
7
|
+
//# sourceMappingURL=PageErrorStore.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Url } from '@tinkoff/url';
|
|
2
2
|
import type { NavigationRoute, Navigation } from '@tinkoff/router';
|
|
3
|
-
export declare const setCurrentNavigation: import("@tramvai/types-actions-state-context").EventCreator1<Navigation
|
|
4
|
-
export declare const setUrlOnRehydrate: import("@tramvai/types-actions-state-context").EventCreator1<Url
|
|
3
|
+
export declare const setCurrentNavigation: import("@tramvai/types-actions-state-context").EventCreator1<Navigation>;
|
|
4
|
+
export declare const setUrlOnRehydrate: import("@tramvai/types-actions-state-context").EventCreator1<Url>;
|
|
5
5
|
export interface RouterState {
|
|
6
6
|
currentRoute: NavigationRoute;
|
|
7
7
|
previousRoute: NavigationRoute;
|
|
@@ -9,3 +9,4 @@ export interface RouterState {
|
|
|
9
9
|
previousUrl: Url;
|
|
10
10
|
}
|
|
11
11
|
export declare const RouterStore: import("@tramvai/state").Reducer<RouterState, "router", never>;
|
|
12
|
+
//# sourceMappingURL=RouterStore.d.ts.map
|
package/lib/test/index.d.ts
CHANGED
package/lib/test/unit/guard.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const requestIdleCallback: (((callback: IdleRequestCallback, options?: IdleRequestOptions) => number) & typeof globalThis.requestIdleCallback) | ((callback: () => void) => number);
|
|
2
2
|
export declare const cancelIdleCallback: ((handle: number) => void) & typeof globalThis.cancelIdleCallback;
|
|
3
|
+
//# sourceMappingURL=requestIdleCallback.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-router",
|
|
3
|
-
"version": "2.150.
|
|
3
|
+
"version": "2.150.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -28,25 +28,25 @@
|
|
|
28
28
|
"@tinkoff/errors": "0.3.8",
|
|
29
29
|
"@tinkoff/router": "0.2.17",
|
|
30
30
|
"@tinkoff/url": "0.8.6",
|
|
31
|
-
"@tramvai/react": "2.150.
|
|
31
|
+
"@tramvai/react": "2.150.1",
|
|
32
32
|
"@tramvai/safe-strings": "0.5.12",
|
|
33
|
-
"@tramvai/tokens-child-app": "2.150.
|
|
34
|
-
"@tramvai/tokens-render": "2.150.
|
|
35
|
-
"@tramvai/tokens-router": "2.150.
|
|
36
|
-
"@tramvai/tokens-server": "2.150.
|
|
37
|
-
"@tramvai/experiments": "2.150.
|
|
33
|
+
"@tramvai/tokens-child-app": "2.150.1",
|
|
34
|
+
"@tramvai/tokens-render": "2.150.1",
|
|
35
|
+
"@tramvai/tokens-router": "2.150.1",
|
|
36
|
+
"@tramvai/tokens-server": "2.150.1",
|
|
37
|
+
"@tramvai/experiments": "2.150.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@tinkoff/utils": "^2.1.2",
|
|
41
|
-
"@tramvai/cli": "2.150.
|
|
42
|
-
"@tramvai/core": "2.150.
|
|
43
|
-
"@tramvai/module-log": "2.150.
|
|
44
|
-
"@tramvai/module-server": "2.150.
|
|
45
|
-
"@tramvai/papi": "2.150.
|
|
46
|
-
"@tramvai/state": "2.150.
|
|
47
|
-
"@tramvai/test-helpers": "2.150.
|
|
48
|
-
"@tramvai/test-mocks": "2.150.
|
|
49
|
-
"@tramvai/tokens-common": "2.150.
|
|
41
|
+
"@tramvai/cli": "2.150.1",
|
|
42
|
+
"@tramvai/core": "2.150.1",
|
|
43
|
+
"@tramvai/module-log": "2.150.1",
|
|
44
|
+
"@tramvai/module-server": "2.150.1",
|
|
45
|
+
"@tramvai/papi": "2.150.1",
|
|
46
|
+
"@tramvai/state": "2.150.1",
|
|
47
|
+
"@tramvai/test-helpers": "2.150.1",
|
|
48
|
+
"@tramvai/test-mocks": "2.150.1",
|
|
49
|
+
"@tramvai/tokens-common": "2.150.1",
|
|
50
50
|
"@tinkoff/dippy": "0.8.16",
|
|
51
51
|
"react": "*",
|
|
52
52
|
"tslib": "^2.4.0"
|
package/tests.d.ts
CHANGED