@tramvai/tokens-common 1.30.1 → 1.32.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.
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @description
3
- * Хранилище react-компонентов.
4
- * Хранилище разделено на бандлы, поэтому при задании\получении компонента нужно указывать ключ компонента и название бандла.
5
- * Также сущность позволяет получать статические параметры компонентов через метод _getComponentParam_
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, bundle?: string): void;
11
- get(name: string, bundle?: string): any;
12
- getComponentParam<T>(param: string, defaultValue: T, component: string, bundle?: string): T;
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
- * Хранилище react-компонентов.
87
- * Хранилище разделено на бандлы, поэтому при задании\получении компонента нужно указывать ключ компонента и название бандла.
88
- * Также сущность позволяет получать статические параметры компонентов через метод _getComponentParam_
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
- * Хранилище react-компонентов.
91
- * Хранилище разделено на бандлы, поэтому при задании\получении компонента нужно указывать ключ компонента и название бандла.
92
- * Также сущность позволяет получать статические параметры компонентов через метод _getComponentParam_
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.30.1",
3
+ "version": "1.32.1",
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.30.1",
26
- "@tramvai/state": "1.30.1",
27
- "@tramvai/types-actions-state-context": "1.30.1",
28
- "@tinkoff/logger": "0.10.7",
25
+ "@tramvai/core": "1.32.1",
26
+ "@tramvai/state": "1.32.1",
27
+ "@tramvai/types-actions-state-context": "1.32.1",
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"