@tramvai/module-render 3.19.1 → 3.23.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.
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from 'tslib';
2
- import { Module } from '@tramvai/core';
2
+ import { Module, Scope } from '@tramvai/core';
3
3
  import { composeLayoutOptions, createLayout } from '@tinkoff/layout-factory';
4
4
  import { DEFAULT_LAYOUT_COMPONENT, LAYOUT_OPTIONS, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_ERROR_BOUNDARY_COMPONENT } from '@tramvai/tokens-render';
5
5
 
@@ -11,6 +11,7 @@ LayoutModule = __decorate([
11
11
  providers: [
12
12
  {
13
13
  provide: DEFAULT_LAYOUT_COMPONENT,
14
+ scope: Scope.SINGLETON,
14
15
  useFactory: ({ layoutOptions }) => {
15
16
  const options = composeLayoutOptions(layoutOptions);
16
17
  return createLayout(options);
@@ -21,6 +22,7 @@ LayoutModule = __decorate([
21
22
  },
22
23
  {
23
24
  provide: 'componentDefaultList',
25
+ scope: Scope.SINGLETON,
24
26
  multi: true,
25
27
  useFactory: (components) => ({
26
28
  ...components,
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from 'tslib';
2
- import { Module } from '@tramvai/core';
2
+ import { Module, Scope } from '@tramvai/core';
3
3
  import { composeLayoutOptions, createLayout } from '@tinkoff/layout-factory';
4
4
  import { DEFAULT_LAYOUT_COMPONENT, LAYOUT_OPTIONS, DEFAULT_FOOTER_COMPONENT, DEFAULT_HEADER_COMPONENT, DEFAULT_ERROR_BOUNDARY_COMPONENT } from '@tramvai/tokens-render';
5
5
 
@@ -11,6 +11,7 @@ LayoutModule = __decorate([
11
11
  providers: [
12
12
  {
13
13
  provide: DEFAULT_LAYOUT_COMPONENT,
14
+ scope: Scope.SINGLETON,
14
15
  useFactory: ({ layoutOptions }) => {
15
16
  const options = composeLayoutOptions(layoutOptions);
16
17
  return createLayout(options);
@@ -21,6 +22,7 @@ LayoutModule = __decorate([
21
22
  },
22
23
  {
23
24
  provide: 'componentDefaultList',
25
+ scope: Scope.SINGLETON,
24
26
  multi: true,
25
27
  useFactory: (components) => ({
26
28
  ...components,
@@ -15,6 +15,7 @@ exports.LayoutModule = tslib.__decorate([
15
15
  providers: [
16
16
  {
17
17
  provide: tokensRender.DEFAULT_LAYOUT_COMPONENT,
18
+ scope: core.Scope.SINGLETON,
18
19
  useFactory: ({ layoutOptions }) => {
19
20
  const options = layoutFactory.composeLayoutOptions(layoutOptions);
20
21
  return layoutFactory.createLayout(options);
@@ -25,6 +26,7 @@ exports.LayoutModule = tslib.__decorate([
25
26
  },
26
27
  {
27
28
  provide: 'componentDefaultList',
29
+ scope: core.Scope.SINGLETON,
28
30
  multi: true,
29
31
  useFactory: (components) => ({
30
32
  ...components,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-render",
3
- "version": "3.19.1",
3
+ "version": "3.23.0",
4
4
  "description": "",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -26,28 +26,28 @@
26
26
  "@tinkoff/layout-factory": "0.4.1",
27
27
  "@tinkoff/errors": "0.4.2",
28
28
  "@tinkoff/url": "0.9.2",
29
- "@tinkoff/user-agent": "0.5.47",
30
- "@tramvai/module-client-hints": "3.19.1",
31
- "@tramvai/module-router": "3.19.1",
32
- "@tramvai/react": "3.19.1",
29
+ "@tinkoff/user-agent": "0.5.51",
30
+ "@tramvai/module-client-hints": "3.23.0",
31
+ "@tramvai/module-router": "3.23.0",
32
+ "@tramvai/react": "3.23.0",
33
33
  "@tramvai/safe-strings": "0.6.2",
34
- "@tramvai/tokens-render": "3.19.1",
35
- "@tramvai/experiments": "3.19.1",
34
+ "@tramvai/tokens-render": "3.23.0",
35
+ "@tramvai/experiments": "3.23.0",
36
36
  "@types/loadable__server": "^5.12.6",
37
37
  "node-fetch": "^2.6.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@tinkoff/dippy": "0.9.1",
40
+ "@tinkoff/dippy": "0.9.2",
41
41
  "@tinkoff/utils": "^2.1.2",
42
42
  "@tinkoff/react-hooks": "0.2.1",
43
- "@tramvai/cli": "3.19.1",
44
- "@tramvai/core": "3.19.1",
45
- "@tramvai/module-common": "3.19.1",
46
- "@tramvai/state": "3.19.1",
47
- "@tramvai/test-helpers": "3.19.1",
48
- "@tramvai/tokens-common": "3.19.1",
49
- "@tramvai/tokens-router": "3.19.1",
50
- "@tramvai/tokens-server-private": "3.19.1",
43
+ "@tramvai/cli": "3.23.0",
44
+ "@tramvai/core": "3.23.0",
45
+ "@tramvai/module-common": "3.23.0",
46
+ "@tramvai/state": "3.23.0",
47
+ "@tramvai/test-helpers": "3.23.0",
48
+ "@tramvai/tokens-common": "3.23.0",
49
+ "@tramvai/tokens-router": "3.23.0",
50
+ "@tramvai/tokens-server-private": "3.23.0",
51
51
  "express": "^4.17.1",
52
52
  "prop-types": "^15.6.2",
53
53
  "react": ">=16.14.0",