@tramvai/tokens-core 7.26.9 → 7.27.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/bundle.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { Reducer } from '@tramvai/types-actions-state-context';
2
+ import type { ModuleType } from '@tinkoff/dippy';
2
3
  import type { PageAction } from './action';
3
4
  export interface BundleOptions {
4
5
  presets?: BundlePreset[];
@@ -6,6 +7,7 @@ export interface BundleOptions {
6
7
  components: Record<string, any>;
7
8
  reducers?: Reducer<any, any>[];
8
9
  actions?: PageAction[];
10
+ modules?: ModuleType[];
9
11
  }
10
12
  export type BundlePreset = Partial<BundleOptions>;
11
13
  export interface Bundle {
@@ -13,6 +15,7 @@ export interface Bundle {
13
15
  components: BundleOptions['components'];
14
16
  actions?: BundleOptions['actions'];
15
17
  reducers?: BundleOptions['reducers'];
18
+ modules?: BundleOptions['modules'];
16
19
  }
17
20
  export type BundleImport = () => Promise<{
18
21
  default: Bundle;
package/lib/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Container } from '@tinkoff/dippy';
1
2
  import type { PageAction } from './action';
2
3
  export * from './action';
3
4
  export * from './command';
@@ -15,4 +16,7 @@ export declare const APP_INFO_TOKEN: {
15
16
  } & {
16
17
  __type?: "base token" | undefined;
17
18
  };
19
+ export declare const ROOT_DI_TOKEN: Container & {
20
+ __type?: "base token" | undefined;
21
+ };
18
22
  //# sourceMappingURL=index.d.ts.map
package/lib/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createToken } from '@tinkoff/dippy';
1
+ import { createToken, Scope } from '@tinkoff/dippy';
2
2
  export { ACTION_PARAMETERS } from '@tramvai/types-actions-state-context';
3
3
  export { COMMAND_LINES_TOKEN, COMMAND_LINE_RUNNER_PLUGIN, COMMAND_LINE_RUNNER_TOKEN, commandLineListTokens } from './command.es.js';
4
4
  export { TAPABLE_HOOK_FACTORY_TOKEN } from './hooks.es.js';
@@ -8,5 +8,6 @@ const BUNDLE_LIST_TOKEN = createToken('bundleList');
8
8
  const ACTIONS_LIST_TOKEN = createToken('actionsList');
9
9
  const MODULES_LIST_TOKEN = createToken('modulesList');
10
10
  const APP_INFO_TOKEN = createToken('appInfo');
11
+ const ROOT_DI_TOKEN = createToken('tramvai root di', { scope: Scope.SINGLETON });
11
12
 
12
- export { ACTIONS_LIST_TOKEN, APP_INFO_TOKEN, BUNDLE_LIST_TOKEN, MODULES_LIST_TOKEN };
13
+ export { ACTIONS_LIST_TOKEN, APP_INFO_TOKEN, BUNDLE_LIST_TOKEN, MODULES_LIST_TOKEN, ROOT_DI_TOKEN };
package/lib/index.js CHANGED
@@ -12,6 +12,7 @@ const BUNDLE_LIST_TOKEN = dippy.createToken('bundleList');
12
12
  const ACTIONS_LIST_TOKEN = dippy.createToken('actionsList');
13
13
  const MODULES_LIST_TOKEN = dippy.createToken('modulesList');
14
14
  const APP_INFO_TOKEN = dippy.createToken('appInfo');
15
+ const ROOT_DI_TOKEN = dippy.createToken('tramvai root di', { scope: dippy.Scope.SINGLETON });
15
16
 
16
17
  Object.defineProperty(exports, 'ACTION_PARAMETERS', {
17
18
  enumerable: true,
@@ -27,3 +28,4 @@ exports.ACTIONS_LIST_TOKEN = ACTIONS_LIST_TOKEN;
27
28
  exports.APP_INFO_TOKEN = APP_INFO_TOKEN;
28
29
  exports.BUNDLE_LIST_TOKEN = BUNDLE_LIST_TOKEN;
29
30
  exports.MODULES_LIST_TOKEN = MODULES_LIST_TOKEN;
31
+ exports.ROOT_DI_TOKEN = ROOT_DI_TOKEN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-core",
3
- "version": "7.26.9",
3
+ "version": "7.27.0",
4
4
  "description": "Tramvai core tokens",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -18,7 +18,7 @@
18
18
  "watch": "tsc -w"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/types-actions-state-context": "7.26.9"
21
+ "@tramvai/types-actions-state-context": "7.27.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tinkoff/hook-runner": "0.9.1"