@tramvai/tokens-common 2.11.0 → 2.21.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/README.md CHANGED
@@ -45,3 +45,7 @@ Tramvai tokens for integration and extension `@tramvai/module-common`.
45
45
  ## State tokens
46
46
 
47
47
  @inline src/state.ts
48
+
49
+ ## Execution tokens
50
+
51
+ @inline src/execution.ts
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<any>;
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 { ComponentType } from 'react';
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, Component>;
17
- add(name: string, component: Component, group?: string): void;
18
- get(name: string, group?: string): Component | undefined;
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.11.0",
3
+ "version": "2.21.0",
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/tokens-core": "2.11.0",
23
+ "@tramvai/react": "2.21.0",
24
+ "@tramvai/tokens-core": "2.21.0",
24
25
  "@types/express": "^4.17.9"
25
26
  },
26
27
  "peerDependencies": {
27
- "@tinkoff/dippy": "0.7.45",
28
- "@tinkoff/logger": "0.10.19",
29
- "@tramvai/types-actions-state-context": "2.11.0",
28
+ "@tinkoff/dippy": "0.8.2",
29
+ "@tinkoff/logger": "0.10.51",
30
+ "@tramvai/types-actions-state-context": "2.21.0",
30
31
  "express": "^4.17.1",
31
32
  "fastify": "^3.29.0",
32
33
  "react": ">=16.8",