@tramvai/tokens-core 2.7.1 → 2.10.2

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 CHANGED
@@ -1 +1 @@
1
- export { ActionConditionsParameters, ActionParameters, Action, ActionContext, ACTION_PARAMETERS, } from '@tramvai/types-actions-state-context';
1
+ export { ActionConditionsParameters, ActionParameters, Action, TramvaiAction, TramvaiActionContext, TramvaiActionDefinition, ActionContext, ACTION_PARAMETERS, } from '@tramvai/types-actions-state-context';
package/lib/bundle.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Action } from './action';
1
+ import type { TramvaiAction, Action } from '@tramvai/types-actions-state-context';
2
2
  export interface BundleOptions {
3
3
  presets?: BundlePreset[];
4
4
  name: string;
@@ -6,7 +6,7 @@ export interface BundleOptions {
6
6
  [key: string]: any;
7
7
  };
8
8
  reducers?: any[];
9
- actions?: Action[];
9
+ actions?: (Action | TramvaiAction<any, any, any>)[];
10
10
  }
11
11
  export declare type BundlePreset = Partial<BundleOptions>;
12
12
  export interface Bundle {
package/lib/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import type { Container, Provider } from '@tinkoff/dippy';
1
+ import type { Container, Provider, MultiTokenInterface } from '@tinkoff/dippy';
2
2
  import type { Command } from './command';
3
3
  import type { Action } from './action';
4
4
  export * from './action';
5
5
  export * from './command';
6
6
  export * from './bundle';
7
7
  export declare const BUNDLE_LIST_TOKEN: any;
8
- export declare const ACTIONS_LIST_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<Action<any, any, any>[]>;
8
+ export declare const ACTIONS_LIST_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<Action<any, any, any>[]>;
9
9
  export declare const MODULES_LIST_TOKEN: any;
10
- export declare const APP_INFO_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<{
10
+ export declare const APP_INFO_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<{
11
11
  [key: string]: string;
12
12
  appName: string;
13
13
  }>;
@@ -15,22 +15,22 @@ export interface CommandLine {
15
15
  lines: CommandLines;
16
16
  run(type: keyof CommandLines, status: keyof CommandLineDescription, providers?: Provider[], customDi?: Container): Promise<Container>;
17
17
  }
18
- export declare type CommandLineDescription = Record<string, Command[]>;
18
+ export declare type CommandLineDescription = Record<string, MultiTokenInterface<Command>[]>;
19
19
  export declare type CommandLines = {
20
20
  server: CommandLineDescription;
21
21
  client: CommandLineDescription;
22
22
  };
23
- export declare const COMMAND_LINE_RUNNER_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<CommandLine>;
24
- export declare const COMMAND_LINES_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<CommandLines>;
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
25
  export declare const commandLineListTokens: {
26
- init: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
27
- listen: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
28
- customerStart: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
29
- resolveUserDeps: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
30
- resolvePageDeps: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
31
- generatePage: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
32
- clear: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
33
- spaTransition: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
34
- afterSpaTransition: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
35
- close: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<Command>;
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
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-core",
3
- "version": "2.7.1",
3
+ "version": "2.10.2",
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.7.1"
22
+ "@tramvai/types-actions-state-context": "2.10.2"
23
23
  },
24
24
  "peerDependencies": {
25
- "@tinkoff/dippy": "0.7.44",
25
+ "@tinkoff/dippy": "0.7.45",
26
26
  "tslib": "^2.0.3"
27
27
  },
28
28
  "license": "Apache-2.0"