@tramvai/module-router 1.84.2 → 1.90.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/index.browser.js +2 -2
- package/lib/index.es.js +2 -2
- package/lib/index.js +2 -3
- package/package.json +16 -16
package/lib/index.browser.js
CHANGED
|
@@ -12,7 +12,7 @@ import { createToken } from '@tinkoff/dippy';
|
|
|
12
12
|
import identity from '@tinkoff/utils/function/identity';
|
|
13
13
|
import compose from '@tinkoff/utils/function/compose';
|
|
14
14
|
import replace from '@tinkoff/utils/string/replace';
|
|
15
|
-
import
|
|
15
|
+
import { jsx } from 'react/jsx-runtime';
|
|
16
16
|
import { isFileSystemPageComponent, fileSystemPagesEnabled, getStaticFileSystemPages, fileSystemPageToRoute } from '@tramvai/experiments';
|
|
17
17
|
import uniq from '@tinkoff/utils/array/uniq';
|
|
18
18
|
import { isRedirectFoundError, isNotFoundError } from '@tinkoff/errors';
|
|
@@ -179,7 +179,7 @@ const routeNormalize = (route) => {
|
|
|
179
179
|
};
|
|
180
180
|
|
|
181
181
|
const provideRouter = ({ router }) => (render) => {
|
|
182
|
-
return
|
|
182
|
+
return jsx(Provider, Object.assign({ router: router }, { children: render }), void 0);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
const commonTokens = [
|
package/lib/index.es.js
CHANGED
|
@@ -12,7 +12,7 @@ import { EXTEND_RENDER } from '@tramvai/tokens-render';
|
|
|
12
12
|
import identity from '@tinkoff/utils/function/identity';
|
|
13
13
|
import compose from '@tinkoff/utils/function/compose';
|
|
14
14
|
import replace from '@tinkoff/utils/string/replace';
|
|
15
|
-
import
|
|
15
|
+
import { jsx } from 'react/jsx-runtime';
|
|
16
16
|
import { isFileSystemPageComponent, fileSystemPagesEnabled, getStaticFileSystemPages, fileSystemPageToRoute } from '@tramvai/experiments';
|
|
17
17
|
import uniq from '@tinkoff/utils/array/uniq';
|
|
18
18
|
import { isRedirectFoundError, isNotFoundError, throwRedirectFoundError, HttpError, makeErrorSilent } from '@tinkoff/errors';
|
|
@@ -181,7 +181,7 @@ const routeNormalize = (route) => {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
const provideRouter = ({ router }) => (render) => {
|
|
184
|
-
return
|
|
184
|
+
return jsx(Provider, Object.assign({ router: router }, { children: render }), void 0);
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
const commonTokens = [
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var tokensRender = require('@tramvai/tokens-render');
|
|
|
14
14
|
var identity = require('@tinkoff/utils/function/identity');
|
|
15
15
|
var compose = require('@tinkoff/utils/function/compose');
|
|
16
16
|
var replace = require('@tinkoff/utils/string/replace');
|
|
17
|
-
var
|
|
17
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
18
18
|
var experiments = require('@tramvai/experiments');
|
|
19
19
|
var uniq = require('@tinkoff/utils/array/uniq');
|
|
20
20
|
var errors = require('@tinkoff/errors');
|
|
@@ -29,7 +29,6 @@ var flatten__default = /*#__PURE__*/_interopDefaultLegacy(flatten);
|
|
|
29
29
|
var identity__default = /*#__PURE__*/_interopDefaultLegacy(identity);
|
|
30
30
|
var compose__default = /*#__PURE__*/_interopDefaultLegacy(compose);
|
|
31
31
|
var replace__default = /*#__PURE__*/_interopDefaultLegacy(replace);
|
|
32
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
32
|
var uniq__default = /*#__PURE__*/_interopDefaultLegacy(uniq);
|
|
34
33
|
var prop__default = /*#__PURE__*/_interopDefaultLegacy(prop);
|
|
35
34
|
|
|
@@ -193,7 +192,7 @@ const routeNormalize = (route) => {
|
|
|
193
192
|
};
|
|
194
193
|
|
|
195
194
|
const provideRouter = ({ router: router$1 }) => (render) => {
|
|
196
|
-
return
|
|
195
|
+
return jsxRuntime.jsx(router.Provider, Object.assign({ router: router$1 }, { children: render }), void 0);
|
|
197
196
|
};
|
|
198
197
|
|
|
199
198
|
const commonTokens = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-router",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.90.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@tinkoff/errors": "0.2.20",
|
|
26
|
-
"@tinkoff/router": "0.1.
|
|
26
|
+
"@tinkoff/router": "0.1.72",
|
|
27
27
|
"@tinkoff/url": "0.7.37",
|
|
28
|
-
"@tramvai/tokens-child-app": "1.
|
|
29
|
-
"@tramvai/tokens-render": "1.
|
|
30
|
-
"@tramvai/tokens-router": "1.
|
|
31
|
-
"@tramvai/tokens-server": "1.
|
|
32
|
-
"@tramvai/experiments": "1.
|
|
28
|
+
"@tramvai/tokens-child-app": "1.90.1",
|
|
29
|
+
"@tramvai/tokens-render": "1.90.1",
|
|
30
|
+
"@tramvai/tokens-router": "1.90.1",
|
|
31
|
+
"@tramvai/tokens-server": "1.90.1",
|
|
32
|
+
"@tramvai/experiments": "1.90.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@tinkoff/utils": "^2.1.2",
|
|
36
|
-
"@tramvai/cli": "1.
|
|
37
|
-
"@tramvai/core": "1.
|
|
38
|
-
"@tramvai/module-log": "1.
|
|
39
|
-
"@tramvai/module-server": "1.
|
|
40
|
-
"@tramvai/papi": "1.
|
|
41
|
-
"@tramvai/state": "1.
|
|
42
|
-
"@tramvai/test-helpers": "1.
|
|
43
|
-
"@tramvai/test-mocks": "1.
|
|
44
|
-
"@tramvai/tokens-common": "1.
|
|
36
|
+
"@tramvai/cli": "1.90.1",
|
|
37
|
+
"@tramvai/core": "1.90.1",
|
|
38
|
+
"@tramvai/module-log": "1.90.1",
|
|
39
|
+
"@tramvai/module-server": "1.90.1",
|
|
40
|
+
"@tramvai/papi": "1.90.1",
|
|
41
|
+
"@tramvai/state": "1.90.1",
|
|
42
|
+
"@tramvai/test-helpers": "1.90.1",
|
|
43
|
+
"@tramvai/test-mocks": "1.90.1",
|
|
44
|
+
"@tramvai/tokens-common": "1.90.1",
|
|
45
45
|
"@tinkoff/dippy": "0.7.39",
|
|
46
46
|
"react": "*",
|
|
47
47
|
"tslib": "^2.0.3"
|