@tramvai/tokens-render 4.0.4 → 4.0.6

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createToken } from '@tinkoff/dippy';
1
+ import { createToken, Scope } from '@tinkoff/dippy';
2
2
  export { StorageRecord as ResourceType } from '@tinkoff/htmlpagebuilder';
3
3
  import * as slots from './slots.es.js';
4
4
  export { slots as ResourceSlot };
@@ -86,17 +86,23 @@ const EXTEND_RENDER = createToken('EXTEND_RENDER', {
86
86
  * @description
87
87
  * Token for default layout for all pages - root layout
88
88
  */
89
- const DEFAULT_LAYOUT_COMPONENT = createToken('defaultLayoutComponent');
89
+ const DEFAULT_LAYOUT_COMPONENT = createToken('defaultLayoutComponent', {
90
+ scope: Scope.SINGLETON,
91
+ });
90
92
  /**
91
93
  * @description
92
94
  * Token for default header for page
93
95
  */
94
- const DEFAULT_HEADER_COMPONENT = createToken('defaultHeaderComponent');
96
+ const DEFAULT_HEADER_COMPONENT = createToken('defaultHeaderComponent', {
97
+ scope: Scope.SINGLETON,
98
+ });
95
99
  /**
96
100
  * @description
97
101
  * Token for default footer for page
98
102
  */
99
- const DEFAULT_FOOTER_COMPONENT = createToken('defaultFooterComponent');
103
+ const DEFAULT_FOOTER_COMPONENT = createToken('defaultFooterComponent', {
104
+ scope: Scope.SINGLETON,
105
+ });
100
106
  /**
101
107
  * @description
102
108
  * Token for default Error Boundary for page
@@ -108,6 +114,7 @@ const DEFAULT_ERROR_BOUNDARY_COMPONENT = createToken('defaultErrorBoundaryCompon
108
114
  */
109
115
  const LAYOUT_OPTIONS = createToken('layoutOptions', {
110
116
  multi: true,
117
+ scope: Scope.SINGLETON,
111
118
  });
112
119
  /**
113
120
  * @description
package/lib/index.js CHANGED
@@ -89,17 +89,23 @@ const EXTEND_RENDER = dippy.createToken('EXTEND_RENDER', {
89
89
  * @description
90
90
  * Token for default layout for all pages - root layout
91
91
  */
92
- const DEFAULT_LAYOUT_COMPONENT = dippy.createToken('defaultLayoutComponent');
92
+ const DEFAULT_LAYOUT_COMPONENT = dippy.createToken('defaultLayoutComponent', {
93
+ scope: dippy.Scope.SINGLETON,
94
+ });
93
95
  /**
94
96
  * @description
95
97
  * Token for default header for page
96
98
  */
97
- const DEFAULT_HEADER_COMPONENT = dippy.createToken('defaultHeaderComponent');
99
+ const DEFAULT_HEADER_COMPONENT = dippy.createToken('defaultHeaderComponent', {
100
+ scope: dippy.Scope.SINGLETON,
101
+ });
98
102
  /**
99
103
  * @description
100
104
  * Token for default footer for page
101
105
  */
102
- const DEFAULT_FOOTER_COMPONENT = dippy.createToken('defaultFooterComponent');
106
+ const DEFAULT_FOOTER_COMPONENT = dippy.createToken('defaultFooterComponent', {
107
+ scope: dippy.Scope.SINGLETON,
108
+ });
103
109
  /**
104
110
  * @description
105
111
  * Token for default Error Boundary for page
@@ -111,6 +117,7 @@ const DEFAULT_ERROR_BOUNDARY_COMPONENT = dippy.createToken('defaultErrorBoundary
111
117
  */
112
118
  const LAYOUT_OPTIONS = dippy.createToken('layoutOptions', {
113
119
  multi: true,
120
+ scope: dippy.Scope.SINGLETON,
114
121
  });
115
122
  /**
116
123
  * @description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-render",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "Tramvai tokens for @tramvai/module-render",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -18,13 +18,13 @@
18
18
  "watch": "tsc -w"
19
19
  },
20
20
  "devDependencies": {
21
- "@tramvai/react": "4.0.4"
21
+ "@tramvai/react": "4.0.6"
22
22
  },
23
23
  "dependencies": {
24
24
  "@tinkoff/htmlpagebuilder": "0.7.1"
25
25
  },
26
26
  "peerDependencies": {
27
- "@tinkoff/dippy": "0.10.1",
27
+ "@tinkoff/dippy": "0.10.2",
28
28
  "react": ">=16.14.0",
29
29
  "tslib": "^2.4.0"
30
30
  },