@tramvai/module-router 1.77.0 → 1.78.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.
@@ -17,6 +17,7 @@ import { isFileSystemPageComponent, fileSystemPagesEnabled, getStaticFileSystemP
17
17
  import uniq from '@tinkoff/utils/array/uniq';
18
18
  import { isRedirectFoundError, isNotFoundError } from '@tinkoff/errors';
19
19
  import { __decorate } from 'tslib';
20
+ import { CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN } from '@tramvai/tokens-child-app';
20
21
 
21
22
  const setCurrentNavigation = createEvent('SET_CURRENT_ROUTE');
22
23
  const setUrlOnRehydrate = createEvent('SET_URL_ON_REHYDRATE');
@@ -650,6 +651,11 @@ RouterChildAppModule = __decorate([
650
651
  router: ROUTER_TOKEN,
651
652
  },
652
653
  }),
654
+ {
655
+ provide: CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN,
656
+ multi: true,
657
+ useValue: RouterStore,
658
+ },
653
659
  ],
654
660
  })
655
661
  ], RouterChildAppModule);
package/lib/index.es.js CHANGED
@@ -19,6 +19,7 @@ import { isRedirectFoundError, isNotFoundError, throwHttpError, throwRedirectFou
19
19
  import { SERVER_MODULE_PAPI_PUBLIC_ROUTE } from '@tramvai/tokens-server';
20
20
  import prop from '@tinkoff/utils/object/prop';
21
21
  import { createPapiMethod } from '@tramvai/papi';
22
+ import { CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN } from '@tramvai/tokens-child-app';
22
23
 
23
24
  const routerClassToken = createToken('router routerClassToken');
24
25
  const additionalRouterParameters = createToken('router additionalParameters');
@@ -645,6 +646,11 @@ RouterChildAppModule = __decorate([
645
646
  router: ROUTER_TOKEN,
646
647
  },
647
648
  }),
649
+ {
650
+ provide: CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN,
651
+ multi: true,
652
+ useValue: RouterStore,
653
+ },
648
654
  ],
649
655
  })
650
656
  ], RouterChildAppModule);
package/lib/index.js CHANGED
@@ -21,6 +21,7 @@ var errors = require('@tinkoff/errors');
21
21
  var tokensServer = require('@tramvai/tokens-server');
22
22
  var prop = require('@tinkoff/utils/object/prop');
23
23
  var papi = require('@tramvai/papi');
24
+ var tokensChildApp = require('@tramvai/tokens-child-app');
24
25
 
25
26
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
26
27
 
@@ -657,6 +658,11 @@ exports.RouterChildAppModule = tslib.__decorate([
657
658
  router: tokensRouter.ROUTER_TOKEN,
658
659
  },
659
660
  }),
661
+ {
662
+ provide: tokensChildApp.CHILD_APP_INTERNAL_ROOT_STATE_ALLOWED_STORE_TOKEN,
663
+ multi: true,
664
+ useValue: RouterStore,
665
+ },
660
666
  ],
661
667
  })
662
668
  ], exports.RouterChildAppModule);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-router",
3
- "version": "1.77.0",
3
+ "version": "1.78.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "browser": {
@@ -22,25 +22,26 @@
22
22
  "build-for-publish": "true"
23
23
  },
24
24
  "dependencies": {
25
- "@tinkoff/errors": "0.2.18",
25
+ "@tinkoff/errors": "0.2.19",
26
26
  "@tinkoff/router": "0.1.70",
27
27
  "@tinkoff/url": "0.7.37",
28
- "@tramvai/tokens-render": "1.77.0",
29
- "@tramvai/tokens-router": "1.77.0",
30
- "@tramvai/tokens-server": "1.77.0",
31
- "@tramvai/experiments": "1.77.0"
28
+ "@tramvai/tokens-child-app": "1.78.2",
29
+ "@tramvai/tokens-render": "1.78.2",
30
+ "@tramvai/tokens-router": "1.78.2",
31
+ "@tramvai/tokens-server": "1.78.2",
32
+ "@tramvai/experiments": "1.78.2"
32
33
  },
33
34
  "peerDependencies": {
34
35
  "@tinkoff/utils": "^2.1.2",
35
- "@tramvai/cli": "1.77.0",
36
- "@tramvai/core": "1.77.0",
37
- "@tramvai/module-log": "1.77.0",
38
- "@tramvai/module-server": "1.77.0",
39
- "@tramvai/papi": "1.77.0",
40
- "@tramvai/state": "1.77.0",
41
- "@tramvai/test-helpers": "1.77.0",
42
- "@tramvai/test-mocks": "1.77.0",
43
- "@tramvai/tokens-common": "1.77.0",
36
+ "@tramvai/cli": "1.78.2",
37
+ "@tramvai/core": "1.78.2",
38
+ "@tramvai/module-log": "1.78.2",
39
+ "@tramvai/module-server": "1.78.2",
40
+ "@tramvai/papi": "1.78.2",
41
+ "@tramvai/state": "1.78.2",
42
+ "@tramvai/test-helpers": "1.78.2",
43
+ "@tramvai/test-mocks": "1.78.2",
44
+ "@tramvai/tokens-common": "1.78.2",
44
45
  "@tinkoff/dippy": "0.7.38",
45
46
  "react": "*",
46
47
  "tslib": "^2.0.3"