@tramvai/module-render 2.84.2 → 2.85.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/browser.js +7 -11
- package/package.json +15 -15
package/lib/browser.js
CHANGED
|
@@ -3,8 +3,7 @@ import { Module, provide, commandLineListTokens, DI_TOKEN } from '@tramvai/core'
|
|
|
3
3
|
import { STORE_TOKEN, LOGGER_TOKEN, CONTEXT_TOKEN } from '@tramvai/tokens-common';
|
|
4
4
|
import { RESOURCES_REGISTRY, CUSTOM_RENDER, EXTEND_RENDER, RENDERER_CALLBACK, USE_REACT_STRICT_MODE, RENDER_MODE } from '@tramvai/tokens-render';
|
|
5
5
|
export * from '@tramvai/tokens-render';
|
|
6
|
-
import {
|
|
7
|
-
import { PageErrorStore, setPageErrorEvent } from '@tramvai/module-router';
|
|
6
|
+
import { beforeResolveHooksToken, PageErrorStore, setPageErrorEvent } from '@tramvai/module-router';
|
|
8
7
|
export { PageErrorStore, setPageErrorEvent } from '@tramvai/module-router';
|
|
9
8
|
import { rendering } from './client/index.browser.js';
|
|
10
9
|
import { LayoutModule } from './shared/LayoutModule.browser.js';
|
|
@@ -38,19 +37,16 @@ RenderModule = RenderModule_1 = __decorate([
|
|
|
38
37
|
providers: [
|
|
39
38
|
...providers,
|
|
40
39
|
provide({
|
|
41
|
-
provide:
|
|
40
|
+
provide: beforeResolveHooksToken,
|
|
42
41
|
multi: true,
|
|
43
|
-
useFactory: ({
|
|
44
|
-
return
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
});
|
|
42
|
+
useFactory: ({ store }) => {
|
|
43
|
+
return async () => {
|
|
44
|
+
if (store.getState(PageErrorStore)) {
|
|
45
|
+
store.dispatch(setPageErrorEvent(null));
|
|
46
|
+
}
|
|
50
47
|
};
|
|
51
48
|
},
|
|
52
49
|
deps: {
|
|
53
|
-
router: ROUTER_TOKEN,
|
|
54
50
|
store: STORE_TOKEN,
|
|
55
51
|
},
|
|
56
52
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-render",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.85.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"@tinkoff/layout-factory": "0.3.8",
|
|
27
27
|
"@tinkoff/errors": "0.3.8",
|
|
28
28
|
"@tinkoff/url": "0.8.6",
|
|
29
|
-
"@tinkoff/user-agent": "0.4.
|
|
30
|
-
"@tramvai/module-client-hints": "2.
|
|
31
|
-
"@tramvai/module-router": "2.
|
|
32
|
-
"@tramvai/react": "2.
|
|
29
|
+
"@tinkoff/user-agent": "0.4.218",
|
|
30
|
+
"@tramvai/module-client-hints": "2.85.1",
|
|
31
|
+
"@tramvai/module-router": "2.85.1",
|
|
32
|
+
"@tramvai/react": "2.85.1",
|
|
33
33
|
"@tramvai/safe-strings": "0.5.8",
|
|
34
|
-
"@tramvai/tokens-render": "2.
|
|
35
|
-
"@tramvai/experiments": "2.
|
|
34
|
+
"@tramvai/tokens-render": "2.85.1",
|
|
35
|
+
"@tramvai/experiments": "2.85.1",
|
|
36
36
|
"@types/loadable__server": "^5.12.6",
|
|
37
37
|
"node-fetch": "^2.6.1"
|
|
38
38
|
},
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@tinkoff/dippy": "0.8.15",
|
|
41
41
|
"@tinkoff/utils": "^2.1.2",
|
|
42
42
|
"@tinkoff/react-hooks": "0.1.6",
|
|
43
|
-
"@tramvai/cli": "2.
|
|
44
|
-
"@tramvai/core": "2.
|
|
45
|
-
"@tramvai/module-common": "2.
|
|
46
|
-
"@tramvai/state": "2.
|
|
47
|
-
"@tramvai/test-helpers": "2.
|
|
48
|
-
"@tramvai/tokens-common": "2.
|
|
49
|
-
"@tramvai/tokens-router": "2.
|
|
50
|
-
"@tramvai/tokens-server-private": "2.
|
|
43
|
+
"@tramvai/cli": "2.85.1",
|
|
44
|
+
"@tramvai/core": "2.85.1",
|
|
45
|
+
"@tramvai/module-common": "2.85.1",
|
|
46
|
+
"@tramvai/state": "2.85.1",
|
|
47
|
+
"@tramvai/test-helpers": "2.85.1",
|
|
48
|
+
"@tramvai/tokens-common": "2.85.1",
|
|
49
|
+
"@tramvai/tokens-router": "2.85.1",
|
|
50
|
+
"@tramvai/tokens-server-private": "2.85.1",
|
|
51
51
|
"express": "^4.17.1",
|
|
52
52
|
"prop-types": "^15.6.2",
|
|
53
53
|
"react": ">=16.14.0",
|