@tramvai/tokens-common 1.30.2 → 1.34.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/componentRegistry.d.ts +6 -6
- package/lib/index.es.js +3 -3
- package/lib/index.js +3 -3
- package/package.json +5 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* React components storage.
|
|
4
|
+
* Components in the repository are divided into groups, e.g. you can specify a bundle or a page component as a group key.
|
|
5
|
+
* The entity also allows you to get static component parameters through the `getComponentParam` method (will not work with `lazy` components)
|
|
6
6
|
*/
|
|
7
7
|
export declare const COMPONENT_REGISTRY_TOKEN: ComponentRegistry;
|
|
8
8
|
export interface ComponentRegistry {
|
|
9
9
|
components: Record<string, any>;
|
|
10
|
-
add(name: string, component: any,
|
|
11
|
-
get(name: string,
|
|
12
|
-
getComponentParam<T>(param: string, defaultValue: T, component: string,
|
|
10
|
+
add(name: string, component: any, group?: string): void;
|
|
11
|
+
get(name: string, group?: string): any;
|
|
12
|
+
getComponentParam<T>(param: string, defaultValue: T, component: string, group?: string): T;
|
|
13
13
|
}
|
package/lib/index.es.js
CHANGED
|
@@ -83,9 +83,9 @@ const CLEAR_CACHE_TOKEN = createToken('clearCache');
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* @description
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* React components storage.
|
|
87
|
+
* Components in the repository are divided into groups, e.g. you can specify a bundle or a page component as a group key.
|
|
88
|
+
* The entity also allows you to get static component parameters through the `getComponentParam` method (will not work with `lazy` components)
|
|
89
89
|
*/
|
|
90
90
|
const COMPONENT_REGISTRY_TOKEN = createToken('componentRegistry');
|
|
91
91
|
|
package/lib/index.js
CHANGED
|
@@ -87,9 +87,9 @@ const CLEAR_CACHE_TOKEN = dippy.createToken('clearCache');
|
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* @description
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
90
|
+
* React components storage.
|
|
91
|
+
* Components in the repository are divided into groups, e.g. you can specify a bundle or a page component as a group key.
|
|
92
|
+
* The entity also allows you to get static component parameters through the `getComponentParam` method (will not work with `lazy` components)
|
|
93
93
|
*/
|
|
94
94
|
const COMPONENT_REGISTRY_TOKEN = dippy.createToken('componentRegistry');
|
|
95
95
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-common",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"@types/express": "^4.17.9"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@tramvai/core": "1.
|
|
26
|
-
"@tramvai/state": "1.
|
|
27
|
-
"@tramvai/types-actions-state-context": "1.
|
|
28
|
-
"@tinkoff/logger": "0.10.
|
|
25
|
+
"@tramvai/core": "1.34.0",
|
|
26
|
+
"@tramvai/state": "1.34.0",
|
|
27
|
+
"@tramvai/types-actions-state-context": "1.34.0",
|
|
28
|
+
"@tinkoff/logger": "0.10.8",
|
|
29
29
|
"@tinkoff/dippy": "0.7.35",
|
|
30
30
|
"express": "^4.17.1",
|
|
31
31
|
"tslib": "^2.0.3"
|