@tramvai/module-render 2.28.0 → 2.29.0
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/server.es.js +3 -3
- package/lib/server.js +2 -2
- package/package.json +15 -15
package/lib/server.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Module, provide, commandLineListTokens, DI_TOKEN } from '@tramvai/core'
|
|
|
5
5
|
import { COMBINE_REDUCERS, CREATE_CACHE_TOKEN, LOGGER_TOKEN, REQUEST_MANAGER_TOKEN, RESPONSE_MANAGER_TOKEN, CONTEXT_TOKEN } from '@tramvai/tokens-common';
|
|
6
6
|
import { PAGE_SERVICE_TOKEN } from '@tramvai/tokens-router';
|
|
7
7
|
import { ClientHintsModule, USER_AGENT_TOKEN } from '@tramvai/module-client-hints';
|
|
8
|
-
import { ResourceType, ResourceSlot, DEFAULT_LAYOUT_COMPONENT, LAYOUT_OPTIONS, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, TRAMVAI_RENDER_MODE, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, RENDER_SLOTS, POLYFILL_CONDITION, HTML_ATTRS, RENDER_FLOW_AFTER_TOKEN, CUSTOM_RENDER, EXTEND_RENDER } from '@tramvai/tokens-render';
|
|
8
|
+
import { ResourceType, ResourceSlot, DEFAULT_LAYOUT_COMPONENT, LAYOUT_OPTIONS, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, TRAMVAI_RENDER_MODE, RESOURCES_REGISTRY, RESOURCE_INLINE_OPTIONS, RENDER_SLOTS, POLYFILL_CONDITION, HTML_ATTRS, MODERN_SATISFIES_TOKEN, RENDER_FLOW_AFTER_TOKEN, CUSTOM_RENDER, EXTEND_RENDER } from '@tramvai/tokens-render';
|
|
9
9
|
export * from '@tramvai/tokens-render';
|
|
10
10
|
import { createToken, Scope } from '@tinkoff/dippy';
|
|
11
11
|
import { WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN } from '@tramvai/tokens-server-private';
|
|
@@ -892,7 +892,7 @@ RenderModule = RenderModule_1 = __decorate([
|
|
|
892
892
|
renderSlots: { token: RENDER_SLOTS, optional: true },
|
|
893
893
|
polyfillCondition: POLYFILL_CONDITION,
|
|
894
894
|
htmlAttrs: HTML_ATTRS,
|
|
895
|
-
modern:
|
|
895
|
+
modern: MODERN_SATISFIES_TOKEN,
|
|
896
896
|
renderFlowAfter: { token: RENDER_FLOW_AFTER_TOKEN, optional: true },
|
|
897
897
|
logger: LOGGER_TOKEN,
|
|
898
898
|
},
|
|
@@ -995,7 +995,7 @@ RenderModule = RenderModule_1 = __decorate([
|
|
|
995
995
|
},
|
|
996
996
|
}),
|
|
997
997
|
provide({
|
|
998
|
-
provide:
|
|
998
|
+
provide: MODERN_SATISFIES_TOKEN,
|
|
999
999
|
useFactory: ({ requestManager, userAgent, cache }) => {
|
|
1000
1000
|
const reqUserAgent = requestManager.getHeader('user-agent');
|
|
1001
1001
|
if (cache.has(reqUserAgent)) {
|
package/lib/server.js
CHANGED
|
@@ -928,7 +928,7 @@ exports.RenderModule = RenderModule_1 = tslib.__decorate([
|
|
|
928
928
|
renderSlots: { token: tokensRender.RENDER_SLOTS, optional: true },
|
|
929
929
|
polyfillCondition: tokensRender.POLYFILL_CONDITION,
|
|
930
930
|
htmlAttrs: tokensRender.HTML_ATTRS,
|
|
931
|
-
modern:
|
|
931
|
+
modern: tokensRender.MODERN_SATISFIES_TOKEN,
|
|
932
932
|
renderFlowAfter: { token: tokensRender.RENDER_FLOW_AFTER_TOKEN, optional: true },
|
|
933
933
|
logger: tokensCommon.LOGGER_TOKEN,
|
|
934
934
|
},
|
|
@@ -1031,7 +1031,7 @@ exports.RenderModule = RenderModule_1 = tslib.__decorate([
|
|
|
1031
1031
|
},
|
|
1032
1032
|
}),
|
|
1033
1033
|
core.provide({
|
|
1034
|
-
provide:
|
|
1034
|
+
provide: tokensRender.MODERN_SATISFIES_TOKEN,
|
|
1035
1035
|
useFactory: ({ requestManager, userAgent: userAgent$1, cache }) => {
|
|
1036
1036
|
const reqUserAgent = requestManager.getHeader('user-agent');
|
|
1037
1037
|
if (cache.has(reqUserAgent)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-render",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"@tinkoff/htmlpagebuilder": "0.5.4",
|
|
27
27
|
"@tinkoff/layout-factory": "0.3.3",
|
|
28
28
|
"@tinkoff/url": "0.8.3",
|
|
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.69",
|
|
30
|
+
"@tramvai/module-client-hints": "2.29.0",
|
|
31
|
+
"@tramvai/module-router": "2.29.0",
|
|
32
|
+
"@tramvai/react": "2.29.0",
|
|
33
33
|
"@tramvai/safe-strings": "0.5.4",
|
|
34
|
-
"@tramvai/tokens-render": "2.
|
|
35
|
-
"@tramvai/experiments": "2.
|
|
34
|
+
"@tramvai/tokens-render": "2.29.0",
|
|
35
|
+
"@tramvai/experiments": "2.29.0",
|
|
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.6",
|
|
41
41
|
"@tinkoff/utils": "^2.1.2",
|
|
42
42
|
"@tinkoff/react-hooks": "0.1.3",
|
|
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.29.0",
|
|
44
|
+
"@tramvai/core": "2.29.0",
|
|
45
|
+
"@tramvai/module-common": "2.29.0",
|
|
46
|
+
"@tramvai/state": "2.29.0",
|
|
47
|
+
"@tramvai/test-helpers": "2.29.0",
|
|
48
|
+
"@tramvai/tokens-common": "2.29.0",
|
|
49
|
+
"@tramvai/tokens-router": "2.29.0",
|
|
50
|
+
"@tramvai/tokens-server-private": "2.29.0",
|
|
51
51
|
"express": "^4.17.1",
|
|
52
52
|
"prop-types": "^15.6.2",
|
|
53
53
|
"react": ">=16.14.0",
|