@tramvai/tokens-core 2.51.2 → 2.56.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/command.d.ts +24 -0
- package/lib/index.d.ts +0 -25
- package/lib/index.es.js +6 -5
- package/lib/index.js +6 -5
- package/package.json +3 -3
package/lib/command.d.ts
CHANGED
|
@@ -1 +1,25 @@
|
|
|
1
|
+
import type { Container, MultiTokenInterface, Provider } from '@tinkoff/dippy';
|
|
1
2
|
export type Command = () => any;
|
|
3
|
+
export interface CommandLineRunner {
|
|
4
|
+
lines: CommandLines;
|
|
5
|
+
run(type: keyof CommandLines, status: keyof CommandLineDescription, providers?: Provider[], customDi?: Container): Promise<Container>;
|
|
6
|
+
}
|
|
7
|
+
export type CommandLineDescription = Record<string, MultiTokenInterface<Command>[]>;
|
|
8
|
+
export type CommandLines = {
|
|
9
|
+
server: CommandLineDescription;
|
|
10
|
+
client: CommandLineDescription;
|
|
11
|
+
};
|
|
12
|
+
export declare const COMMAND_LINE_RUNNER_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<CommandLineRunner>;
|
|
13
|
+
export declare const COMMAND_LINES_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<CommandLines>;
|
|
14
|
+
export declare const commandLineListTokens: {
|
|
15
|
+
init: MultiTokenInterface<Command>;
|
|
16
|
+
listen: MultiTokenInterface<Command>;
|
|
17
|
+
customerStart: MultiTokenInterface<Command>;
|
|
18
|
+
resolveUserDeps: MultiTokenInterface<Command>;
|
|
19
|
+
resolvePageDeps: MultiTokenInterface<Command>;
|
|
20
|
+
generatePage: MultiTokenInterface<Command>;
|
|
21
|
+
clear: MultiTokenInterface<Command>;
|
|
22
|
+
spaTransition: MultiTokenInterface<Command>;
|
|
23
|
+
afterSpaTransition: MultiTokenInterface<Command>;
|
|
24
|
+
close: MultiTokenInterface<Command>;
|
|
25
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { Container, Provider, MultiTokenInterface } from '@tinkoff/dippy';
|
|
2
|
-
import type { Command } from './command';
|
|
3
1
|
import type { Action } from './action';
|
|
4
2
|
export * from './action';
|
|
5
3
|
export * from './command';
|
|
@@ -11,26 +9,3 @@ export declare const APP_INFO_TOKEN: import("@tinkoff/dippy").BaseTokenInterface
|
|
|
11
9
|
[key: string]: string;
|
|
12
10
|
appName: string;
|
|
13
11
|
}>;
|
|
14
|
-
export interface CommandLine {
|
|
15
|
-
lines: CommandLines;
|
|
16
|
-
run(type: keyof CommandLines, status: keyof CommandLineDescription, providers?: Provider[], customDi?: Container): Promise<Container>;
|
|
17
|
-
}
|
|
18
|
-
export type CommandLineDescription = Record<string, MultiTokenInterface<Command>[]>;
|
|
19
|
-
export type CommandLines = {
|
|
20
|
-
server: CommandLineDescription;
|
|
21
|
-
client: CommandLineDescription;
|
|
22
|
-
};
|
|
23
|
-
export declare const COMMAND_LINE_RUNNER_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<CommandLine>;
|
|
24
|
-
export declare const COMMAND_LINES_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<CommandLines>;
|
|
25
|
-
export declare const commandLineListTokens: {
|
|
26
|
-
init: MultiTokenInterface<Command>;
|
|
27
|
-
listen: MultiTokenInterface<Command>;
|
|
28
|
-
customerStart: MultiTokenInterface<Command>;
|
|
29
|
-
resolveUserDeps: MultiTokenInterface<Command>;
|
|
30
|
-
resolvePageDeps: MultiTokenInterface<Command>;
|
|
31
|
-
generatePage: MultiTokenInterface<Command>;
|
|
32
|
-
clear: MultiTokenInterface<Command>;
|
|
33
|
-
spaTransition: MultiTokenInterface<Command>;
|
|
34
|
-
afterSpaTransition: MultiTokenInterface<Command>;
|
|
35
|
-
close: MultiTokenInterface<Command>;
|
|
36
|
-
};
|
package/lib/index.es.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { createToken } from '@tinkoff/dippy';
|
|
2
2
|
export { ACTION_PARAMETERS } from '@tramvai/types-actions-state-context';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
const ACTIONS_LIST_TOKEN = createToken('actionsList');
|
|
6
|
-
const MODULES_LIST_TOKEN = createToken('modulesList');
|
|
7
|
-
const APP_INFO_TOKEN = createToken('appInfo');
|
|
4
|
+
const multiOptions = { multi: true };
|
|
8
5
|
const COMMAND_LINE_RUNNER_TOKEN = createToken('commandLineRunner');
|
|
9
6
|
const COMMAND_LINES_TOKEN = createToken('commandLines');
|
|
10
|
-
const multiOptions = { multi: true };
|
|
11
7
|
const commandLineListTokens = {
|
|
12
8
|
// Block: Initializing
|
|
13
9
|
init: createToken('init', multiOptions),
|
|
@@ -25,4 +21,9 @@ const commandLineListTokens = {
|
|
|
25
21
|
close: createToken('close', multiOptions),
|
|
26
22
|
};
|
|
27
23
|
|
|
24
|
+
const BUNDLE_LIST_TOKEN = createToken('bundleList');
|
|
25
|
+
const ACTIONS_LIST_TOKEN = createToken('actionsList');
|
|
26
|
+
const MODULES_LIST_TOKEN = createToken('modulesList');
|
|
27
|
+
const APP_INFO_TOKEN = createToken('appInfo');
|
|
28
|
+
|
|
28
29
|
export { ACTIONS_LIST_TOKEN, APP_INFO_TOKEN, BUNDLE_LIST_TOKEN, COMMAND_LINES_TOKEN, COMMAND_LINE_RUNNER_TOKEN, MODULES_LIST_TOKEN, commandLineListTokens };
|
package/lib/index.js
CHANGED
|
@@ -5,13 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var dippy = require('@tinkoff/dippy');
|
|
6
6
|
var typesActionsStateContext = require('@tramvai/types-actions-state-context');
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
const ACTIONS_LIST_TOKEN = dippy.createToken('actionsList');
|
|
10
|
-
const MODULES_LIST_TOKEN = dippy.createToken('modulesList');
|
|
11
|
-
const APP_INFO_TOKEN = dippy.createToken('appInfo');
|
|
8
|
+
const multiOptions = { multi: true };
|
|
12
9
|
const COMMAND_LINE_RUNNER_TOKEN = dippy.createToken('commandLineRunner');
|
|
13
10
|
const COMMAND_LINES_TOKEN = dippy.createToken('commandLines');
|
|
14
|
-
const multiOptions = { multi: true };
|
|
15
11
|
const commandLineListTokens = {
|
|
16
12
|
// Block: Initializing
|
|
17
13
|
init: dippy.createToken('init', multiOptions),
|
|
@@ -29,6 +25,11 @@ const commandLineListTokens = {
|
|
|
29
25
|
close: dippy.createToken('close', multiOptions),
|
|
30
26
|
};
|
|
31
27
|
|
|
28
|
+
const BUNDLE_LIST_TOKEN = dippy.createToken('bundleList');
|
|
29
|
+
const ACTIONS_LIST_TOKEN = dippy.createToken('actionsList');
|
|
30
|
+
const MODULES_LIST_TOKEN = dippy.createToken('modulesList');
|
|
31
|
+
const APP_INFO_TOKEN = dippy.createToken('appInfo');
|
|
32
|
+
|
|
32
33
|
Object.defineProperty(exports, 'ACTION_PARAMETERS', {
|
|
33
34
|
enumerable: true,
|
|
34
35
|
get: function () { return typesActionsStateContext.ACTION_PARAMETERS; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.56.0",
|
|
4
4
|
"description": "Tramvai core tokens",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"build-for-publish": "true"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tramvai/types-actions-state-context": "2.
|
|
22
|
+
"@tramvai/types-actions-state-context": "2.56.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@tinkoff/dippy": "0.8.
|
|
25
|
+
"@tinkoff/dippy": "0.8.10",
|
|
26
26
|
"tslib": "^2.4.0"
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0"
|