@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.
Files changed (47) hide show
  1. package/lib/components/link.d.ts +1 -0
  2. package/lib/hooks/usePageService.d.ts +1 -0
  3. package/lib/hooks/usePrefetch.browser.d.ts +1 -0
  4. package/lib/hooks/usePrefetch.d.ts +1 -0
  5. package/lib/index.d.ts +1 -0
  6. package/lib/modules/browser.d.ts +1 -0
  7. package/lib/modules/child-app.d.ts +1 -0
  8. package/lib/modules/clientCommon.d.ts +1 -0
  9. package/lib/modules/common.d.ts +1 -0
  10. package/lib/modules/fileSystemPages.d.ts +1 -0
  11. package/lib/modules/guards/common/index.d.ts +1 -0
  12. package/lib/modules/guards/common/internalError.d.ts +1 -0
  13. package/lib/modules/guards/common/loadBundle.d.ts +1 -0
  14. package/lib/modules/guards/server/httpMethod.d.ts +1 -0
  15. package/lib/modules/guards/server/index.d.ts +1 -0
  16. package/lib/modules/hooks/common/fillRouterStore.d.ts +1 -0
  17. package/lib/modules/hooks/common/index.d.ts +1 -0
  18. package/lib/modules/hooks/runActions.d.ts +1 -0
  19. package/lib/modules/hooks/server/httpStatus.d.ts +1 -0
  20. package/lib/modules/hooks/server/index.d.ts +1 -0
  21. package/lib/modules/hooks/spa/index.d.ts +1 -0
  22. package/lib/modules/hooks/spa/runCommands.d.ts +1 -0
  23. package/lib/modules/no-spa.d.ts +2 -1
  24. package/lib/modules/server.d.ts +3 -2
  25. package/lib/modules/spa.d.ts +2 -1
  26. package/lib/modules/tokens/browser/index.d.ts +1 -0
  27. package/lib/modules/tokens/browser/prefetch.d.ts +1 -0
  28. package/lib/modules/tokens/common/index.d.ts +1 -0
  29. package/lib/modules/tokens/common/pageRegistry.d.ts +1 -0
  30. package/lib/modules/tokens/common/pageService.d.ts +1 -0
  31. package/lib/modules/tokens/common/render.d.ts +1 -0
  32. package/lib/modules/tokens/common/routeNormalize.d.ts +1 -0
  33. package/lib/modules/tokens/common/routeSetDefaults.d.ts +1 -0
  34. package/lib/modules/tokens/common/routeTransform.d.ts +1 -0
  35. package/lib/modules/tokens/server/bundleInfo.d.ts +2 -1
  36. package/lib/modules/tokens/server/index.d.ts +1 -0
  37. package/lib/modules/tokens/server/prefetch.d.ts +1 -0
  38. package/lib/modules/tokens/server/routerOptions.d.ts +1 -0
  39. package/lib/modules/tokens.d.ts +1 -0
  40. package/lib/modules/utils/forRoot.d.ts +1 -0
  41. package/lib/stores/PageErrorStore.d.ts +2 -1
  42. package/lib/stores/RouterStore.d.ts +3 -2
  43. package/lib/test/index.d.ts +1 -0
  44. package/lib/test/unit/guard.d.ts +1 -0
  45. package/lib/utils/requestIdleCallback.d.ts +1 -0
  46. package/package.json +16 -16
  47. package/tests.d.ts +1 -0
@@ -17,3 +17,4 @@ declare namespace Link {
17
17
  var displayName: string;
18
18
  }
19
19
  export { Link };
20
+ //# sourceMappingURL=link.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import type { ExtractDependencyType } from '@tinkoff/dippy';
2
2
  import { PAGE_SERVICE_TOKEN } from '@tramvai/tokens-router';
3
3
  export declare const usePageService: () => ExtractDependencyType<typeof PAGE_SERVICE_TOKEN>;
4
+ //# sourceMappingURL=usePageService.d.ts.map
@@ -3,3 +3,4 @@ export declare const usePrefetch: ({ url, target, prefetch, }: {
3
3
  target: Element | null;
4
4
  prefetch: boolean;
5
5
  }) => void;
6
+ //# sourceMappingURL=usePrefetch.browser.d.ts.map
@@ -3,3 +3,4 @@ export declare const usePrefetch: ({ url, target, prefetch, }: {
3
3
  target: Element | null;
4
4
  prefetch: boolean;
5
5
  }) => void;
6
+ //# sourceMappingURL=usePrefetch.d.ts.map
package/lib/index.d.ts CHANGED
@@ -27,3 +27,4 @@ declare module '@tramvai/react' {
27
27
  routeConfig?: RouteConfig;
28
28
  }
29
29
  }
30
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export { NoSpaRouterModule } from './no-spa';
2
2
  export { SpaRouterModule } from './spa';
3
+ //# sourceMappingURL=browser.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class RouterChildAppModule {
2
2
  }
3
+ //# sourceMappingURL=child-app.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const providers: Provider[];
3
+ //# sourceMappingURL=clientCommon.d.ts.map
@@ -9,3 +9,4 @@ declare module '@tinkoff/router' {
9
9
  }
10
10
  }
11
11
  export declare const providers: Provider[];
12
+ //# sourceMappingURL=common.d.ts.map
@@ -10,3 +10,4 @@ export declare const providers: import("@tramvai/core").Provider<{
10
10
  }) | (import("@tinkoff/router").Route[] & {
11
11
  __type?: "multi token";
12
12
  })>[];
13
+ //# sourceMappingURL=fileSystemPages.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const commonGuards: Provider[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -4,3 +4,4 @@ export declare const internalError: ({ responseManager, logger, }: {
4
4
  responseManager: typeof RESPONSE_MANAGER_TOKEN;
5
5
  logger: typeof LOGGER_TOKEN;
6
6
  }) => NavigationGuard;
7
+ //# sourceMappingURL=internalError.d.ts.map
@@ -7,3 +7,4 @@ export declare const loadBundle: ({ bundleManager, logger, responseManager, page
7
7
  responseManager: typeof RESPONSE_MANAGER_TOKEN;
8
8
  pageRegistry: typeof PAGE_REGISTRY_TOKEN;
9
9
  }) => NavigationGuard;
10
+ //# sourceMappingURL=loadBundle.d.ts.map
@@ -5,3 +5,4 @@ export declare const httpMethod: ({ requestManager, responseManager, logger, }:
5
5
  responseManager: typeof RESPONSE_MANAGER_TOKEN;
6
6
  logger: typeof LOGGER_TOKEN;
7
7
  }) => NavigationGuard;
8
+ //# sourceMappingURL=httpMethod.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const serverGuards: Provider[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -3,3 +3,4 @@ import type { CONTEXT_TOKEN } from '@tramvai/tokens-common';
3
3
  export declare const fillRouterStore: ({ context, }: {
4
4
  context: typeof CONTEXT_TOKEN;
5
5
  }) => NavigationSyncHook;
6
+ //# sourceMappingURL=fillRouterStore.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const commonHooks: Provider[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -20,3 +20,4 @@ export declare const resetDeferredActions: (deps: {
20
20
  deferredActionsMap: typeof DEFERRED_ACTIONS_MAP_TOKEN;
21
21
  actionExecution: typeof ACTION_EXECUTION_TOKEN;
22
22
  }) => void;
23
+ //# sourceMappingURL=runActions.d.ts.map
@@ -3,3 +3,4 @@ import type { RESPONSE_MANAGER_TOKEN } from '@tramvai/tokens-common';
3
3
  export declare const httpStatus: ({ responseManager }: {
4
4
  responseManager: typeof RESPONSE_MANAGER_TOKEN;
5
5
  }) => NavigationHook;
6
+ //# sourceMappingURL=httpStatus.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const serverHooks: Provider[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const spaHooks: Provider[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -8,3 +8,4 @@ export declare const runCommandsAfterSpa: ({ commandLineRunner, di, }: {
8
8
  di: typeof DI_TOKEN;
9
9
  commandLineRunner: typeof COMMAND_LINE_RUNNER_TOKEN;
10
10
  }) => NavigationHook;
11
+ //# sourceMappingURL=runCommands.d.ts.map
@@ -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<import("@tinkoff/dippy/lib/modules/module.h").ModuleClass>;
8
+ }) => import("@tramvai/core").ModuleType;
9
9
  };
10
+ //# sourceMappingURL=no-spa.d.ts.map
@@ -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<import("@tinkoff/dippy/lib/modules/module.h").ModuleClass>;
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<import("@tinkoff/dippy/lib/modules/module.h").ModuleClass>;
17
+ }) => import("@tramvai/core").ModuleType;
18
18
  };
19
+ //# sourceMappingURL=server.d.ts.map
@@ -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<import("@tinkoff/dippy/lib/modules/module.h").ModuleClass>;
8
+ }) => import("@tramvai/core").ModuleType;
9
9
  };
10
+ //# sourceMappingURL=spa.d.ts.map
@@ -106,3 +106,4 @@ export declare const clientTokens: (import("@tinkoff/dippy/lib/Provider").ValueP
106
106
  };
107
107
  };
108
108
  })[];
109
+ //# sourceMappingURL=index.d.ts.map
@@ -40,3 +40,4 @@ export declare const prefetchProviders: (import("@tramvai/core").Provider<unknow
40
40
  }, {
41
41
  prefetch: (url: string) => Promise<void>;
42
42
  }>)[];
43
+ //# sourceMappingURL=prefetch.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const commonTokens: Provider[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -21,3 +21,4 @@ export declare class PageRegistry implements Interface {
21
21
  private registerComponent;
22
22
  }
23
23
  export {};
24
+ //# sourceMappingURL=pageRegistry.d.ts.map
@@ -26,3 +26,4 @@ export declare class PageService implements PageServiceInterface {
26
26
  private getComponentsGroupName;
27
27
  }
28
28
  export {};
29
+ //# sourceMappingURL=pageService.d.ts.map
@@ -2,3 +2,4 @@ import type { AbstractRouter } from '@tinkoff/router';
2
2
  export declare const provideRouter: ({ router }: {
3
3
  router: AbstractRouter;
4
4
  }) => (render: any) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=render.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ROUTE_TRANSFORM_TOKEN } from '@tramvai/tokens-router';
2
2
  export declare const routeNormalize: typeof ROUTE_TRANSFORM_TOKEN;
3
+ //# sourceMappingURL=routeNormalize.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ROUTE_TRANSFORM_TOKEN } from '@tramvai/tokens-router';
2
2
  export declare const routeSetDefaults: typeof ROUTE_TRANSFORM_TOKEN;
3
+ //# sourceMappingURL=routeSetDefaults.d.ts.map
@@ -3,3 +3,4 @@ import type { routeTransformToken } from '../../tokens';
3
3
  export declare const routeTransform: ({ transformers, }: {
4
4
  transformers?: Array<typeof ROUTE_TRANSFORM_TOKEN>;
5
5
  }) => typeof routeTransformToken;
6
+ //# sourceMappingURL=routeTransform.d.ts.map
@@ -1 +1,2 @@
1
- export declare const bundleInfoPapi: import("@tramvai/papi").Papi<any, any>;
1
+ export declare const bundleInfoPapi: import("@tramvai/papi").Papi;
2
+ //# sourceMappingURL=bundleInfo.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const serverTokens: Provider[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare const prefetchProviders: import("@tramvai/core").Provider<unknown, {
2
2
  prefetch: (url: string) => Promise<void>;
3
3
  }>[];
4
+ //# sourceMappingURL=prefetch.d.ts.map
@@ -6,3 +6,4 @@ export declare const routerOptions: ({ requestManager, responseManager, }: {
6
6
  responseManager: typeof RESPONSE_MANAGER_TOKEN;
7
7
  }) => RouterOptions;
8
8
  export {};
9
+ //# sourceMappingURL=routerOptions.d.ts.map
@@ -30,3 +30,4 @@ export declare const routeTransformToken: RouteTransform & {
30
30
  export declare const routerBundleInfoAdditionalToken: (() => Promise<Route[]>) & {
31
31
  __type?: "base token";
32
32
  };
33
+ //# sourceMappingURL=tokens.d.ts.map
@@ -12,3 +12,4 @@ type ForRoot<T = any> = (routes: Route[], options?: {
12
12
  };
13
13
  export declare const generateForRoot: <T>(mainModule: T) => ForRoot<T>;
14
14
  export {};
15
+ //# sourceMappingURL=forRoot.d.ts.map
@@ -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, 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, Navigation>;
4
- export declare const setUrlOnRehydrate: import("@tramvai/types-actions-state-context").EventCreator1<Url, 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
@@ -1 +1,2 @@
1
1
  export { testGuard } from './unit/guard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -8,3 +8,4 @@ export declare const testGuard: (options: Options) => {
8
8
  di: import("@tinkoff/dippy").Container;
9
9
  };
10
10
  export {};
11
+ //# sourceMappingURL=guard.d.ts.map
@@ -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.0",
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.0",
31
+ "@tramvai/react": "2.150.1",
32
32
  "@tramvai/safe-strings": "0.5.12",
33
- "@tramvai/tokens-child-app": "2.150.0",
34
- "@tramvai/tokens-render": "2.150.0",
35
- "@tramvai/tokens-router": "2.150.0",
36
- "@tramvai/tokens-server": "2.150.0",
37
- "@tramvai/experiments": "2.150.0"
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.0",
42
- "@tramvai/core": "2.150.0",
43
- "@tramvai/module-log": "2.150.0",
44
- "@tramvai/module-server": "2.150.0",
45
- "@tramvai/papi": "2.150.0",
46
- "@tramvai/state": "2.150.0",
47
- "@tramvai/test-helpers": "2.150.0",
48
- "@tramvai/test-mocks": "2.150.0",
49
- "@tramvai/tokens-common": "2.150.0",
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
@@ -8,3 +8,4 @@ declare const testGuard: (options: Options) => {
8
8
  di: import("@tinkoff/dippy").Container;
9
9
  };
10
10
  export { testGuard };
11
+ //# sourceMappingURL=tests.d.ts.map