@tramvai/tokens-core 4.41.48 → 4.41.49

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/hooks.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { TapableHooks } from '@tinkoff/hook-runner';
2
+ export type { TapableHooks, SyncTapableHookInstance, AsyncTapableHookInstance, AsyncParallelTapableHookInstance, } from '@tinkoff/hook-runner';
3
+ export declare const TAPABLE_HOOK_FACTORY_TOKEN: TapableHooks & {
4
+ __type?: "base token" | undefined;
5
+ };
6
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { createToken } from '@tinkoff/dippy';
2
+
3
+ const TAPABLE_HOOK_FACTORY_TOKEN = createToken('tramvai tapable hook factory');
4
+
5
+ export { TAPABLE_HOOK_FACTORY_TOKEN };
package/lib/hooks.js ADDED
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var dippy = require('@tinkoff/dippy');
6
+
7
+ const TAPABLE_HOOK_FACTORY_TOKEN = dippy.createToken('tramvai tapable hook factory');
8
+
9
+ exports.TAPABLE_HOOK_FACTORY_TOKEN = TAPABLE_HOOK_FACTORY_TOKEN;
package/lib/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import type { PageAction } from './action';
2
2
  export * from './action';
3
3
  export * from './command';
4
4
  export * from './bundle';
5
+ export * from './hooks';
5
6
  export declare const BUNDLE_LIST_TOKEN: any;
6
7
  export declare const ACTIONS_LIST_TOKEN: PageAction[] & {
7
8
  __type?: "base token" | undefined;
package/lib/index.es.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createToken } from '@tinkoff/dippy';
2
2
  export { ACTION_PARAMETERS } from '@tramvai/types-actions-state-context';
3
3
  export { COMMAND_LINES_TOKEN, COMMAND_LINE_RUNNER_TOKEN, commandLineListTokens } from './command.es.js';
4
+ export { TAPABLE_HOOK_FACTORY_TOKEN } from './hooks.es.js';
4
5
 
5
6
  const BUNDLE_LIST_TOKEN = createToken('bundleList');
6
7
  const ACTIONS_LIST_TOKEN = createToken('actionsList');
package/lib/index.js CHANGED
@@ -5,6 +5,7 @@ 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
  var command = require('./command.js');
8
+ var hooks = require('./hooks.js');
8
9
 
9
10
  const BUNDLE_LIST_TOKEN = dippy.createToken('bundleList');
10
11
  const ACTIONS_LIST_TOKEN = dippy.createToken('actionsList');
@@ -18,6 +19,7 @@ Object.defineProperty(exports, 'ACTION_PARAMETERS', {
18
19
  exports.COMMAND_LINES_TOKEN = command.COMMAND_LINES_TOKEN;
19
20
  exports.COMMAND_LINE_RUNNER_TOKEN = command.COMMAND_LINE_RUNNER_TOKEN;
20
21
  exports.commandLineListTokens = command.commandLineListTokens;
22
+ exports.TAPABLE_HOOK_FACTORY_TOKEN = hooks.TAPABLE_HOOK_FACTORY_TOKEN;
21
23
  exports.ACTIONS_LIST_TOKEN = ACTIONS_LIST_TOKEN;
22
24
  exports.APP_INFO_TOKEN = APP_INFO_TOKEN;
23
25
  exports.BUNDLE_LIST_TOKEN = BUNDLE_LIST_TOKEN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-core",
3
- "version": "4.41.48",
3
+ "version": "4.41.49",
4
4
  "description": "Tramvai core tokens",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -18,7 +18,10 @@
18
18
  "watch": "tsc -w"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/types-actions-state-context": "4.41.48"
21
+ "@tramvai/types-actions-state-context": "4.41.49"
22
+ },
23
+ "devDependencies": {
24
+ "@tinkoff/hook-runner": "0.6.4"
22
25
  },
23
26
  "peerDependencies": {
24
27
  "@tinkoff/dippy": "0.10.11",