@tramvai/tokens-common 2.73.0 → 2.74.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/action.d.ts +5 -7
- package/package.json +4 -4
package/lib/action.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Action } from '@tramvai/tokens-core';
|
|
2
|
-
import type { TramvaiAction } from '@tramvai/types-actions-state-context';
|
|
2
|
+
import type { TramvaiAction, PageAction } from '@tramvai/types-actions-state-context';
|
|
3
3
|
import type { ExecutionContext } from './execution';
|
|
4
4
|
/**
|
|
5
5
|
* @description
|
|
@@ -31,12 +31,11 @@ export declare const ACTION_CONDITIONALS: (ActionCondition & {
|
|
|
31
31
|
}) | (ActionCondition[] & {
|
|
32
32
|
__type?: "multi token" | undefined;
|
|
33
33
|
});
|
|
34
|
-
type AnyAction = Action | TramvaiAction<any, any, any>;
|
|
35
34
|
export interface ActionsRegistry {
|
|
36
|
-
add(type: string, actions:
|
|
37
|
-
get(type: string, addingActions?:
|
|
38
|
-
getGlobal():
|
|
39
|
-
remove(type: string, actions?:
|
|
35
|
+
add(type: string, actions: PageAction | PageAction[]): void;
|
|
36
|
+
get(type: string, addingActions?: PageAction[]): PageAction[];
|
|
37
|
+
getGlobal(): PageAction[] | undefined;
|
|
38
|
+
remove(type: string, actions?: PageAction[]): void;
|
|
40
39
|
}
|
|
41
40
|
export interface ActionExecution {
|
|
42
41
|
run<Params extends any[], Result, Deps>(action: TramvaiAction<Params, Result, Deps>, ...params: Params): Result extends Promise<any> ? Result : Promise<Result>;
|
|
@@ -62,4 +61,3 @@ export type ActionCondition = {
|
|
|
62
61
|
key: string;
|
|
63
62
|
fn: (checker: ActionConditionChecker) => void;
|
|
64
63
|
};
|
|
65
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.74.0",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-common",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@tinkoff/lru-cache-nano": "^7.8.1",
|
|
22
22
|
"@tinkoff/url": "0.8.5",
|
|
23
|
-
"@tramvai/react": "2.
|
|
24
|
-
"@tramvai/tokens-core": "2.
|
|
23
|
+
"@tramvai/react": "2.74.0",
|
|
24
|
+
"@tramvai/tokens-core": "2.74.0",
|
|
25
25
|
"node-abort-controller": "^3.0.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@tinkoff/dippy": "0.8.13",
|
|
29
29
|
"@tinkoff/logger": "0.10.58",
|
|
30
|
-
"@tramvai/types-actions-state-context": "2.
|
|
30
|
+
"@tramvai/types-actions-state-context": "2.74.0",
|
|
31
31
|
"react": ">=16.8",
|
|
32
32
|
"tslib": "^2.4.0"
|
|
33
33
|
},
|