@tramvai/tokens-common 2.10.2 → 2.20.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.
- package/README.md +4 -0
- package/lib/bundle.d.ts +1 -1
- package/lib/componentRegistry.d.ts +4 -10
- package/package.json +6 -5
package/README.md
CHANGED
package/lib/bundle.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export declare const ADDITIONAL_BUNDLE_TOKEN: import("@tinkoff/dippy").MultiToke
|
|
|
14
14
|
}>;
|
|
15
15
|
export interface BundleManager {
|
|
16
16
|
bundles: Record<string, any>;
|
|
17
|
-
get(name: string, pageComponent: string): Promise<
|
|
17
|
+
get(name: string, pageComponent: string): Promise<Bundle>;
|
|
18
18
|
has(name: string, pageComponent: string): boolean;
|
|
19
19
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Action } from '@tramvai/tokens-core';
|
|
3
|
-
export interface RegistryComponentExtend {
|
|
4
|
-
redirects?: any;
|
|
5
|
-
actions?: Action[];
|
|
6
|
-
}
|
|
7
|
-
export declare type Component = ComponentType & RegistryComponentExtend;
|
|
1
|
+
import type { TramvaiComponentDecl } from '@tramvai/react';
|
|
8
2
|
/**
|
|
9
3
|
* @description
|
|
10
4
|
* React components storage.
|
|
@@ -13,8 +7,8 @@ export declare type Component = ComponentType & RegistryComponentExtend;
|
|
|
13
7
|
*/
|
|
14
8
|
export declare const COMPONENT_REGISTRY_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<ComponentRegistry>;
|
|
15
9
|
export interface ComponentRegistry {
|
|
16
|
-
components: Record<string,
|
|
17
|
-
add(name: string, component:
|
|
18
|
-
get(name: string, group?: string):
|
|
10
|
+
components: Record<string, TramvaiComponentDecl>;
|
|
11
|
+
add(name: string, component: TramvaiComponentDecl, group?: string): void;
|
|
12
|
+
get(name: string, group?: string): TramvaiComponentDecl | undefined;
|
|
19
13
|
getComponentParam<T>(param: string, defaultValue: T, component: string, group?: string): T;
|
|
20
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.1",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-common",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -20,13 +20,14 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@tinkoff/lru-cache-nano": "^7.8.1",
|
|
23
|
-
"@tramvai/
|
|
23
|
+
"@tramvai/react": "2.20.1",
|
|
24
|
+
"@tramvai/tokens-core": "2.20.1",
|
|
24
25
|
"@types/express": "^4.17.9"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
|
-
"@tinkoff/dippy": "0.
|
|
28
|
-
"@tinkoff/logger": "0.10.
|
|
29
|
-
"@tramvai/types-actions-state-context": "2.
|
|
28
|
+
"@tinkoff/dippy": "0.8.2",
|
|
29
|
+
"@tinkoff/logger": "0.10.51",
|
|
30
|
+
"@tramvai/types-actions-state-context": "2.20.1",
|
|
30
31
|
"express": "^4.17.1",
|
|
31
32
|
"fastify": "^3.29.0",
|
|
32
33
|
"react": ">=16.8",
|