@tramvai/tokens-core 7.11.1 → 7.16.1

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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './action';
3
3
  export * from './command';
4
4
  export * from './bundle';
5
5
  export * from './hooks';
6
+ export * from './tramvaiHooks';
6
7
  export declare const BUNDLE_LIST_TOKEN: any;
7
8
  export declare const ACTIONS_LIST_TOKEN: PageAction[] & {
8
9
  __type?: "base token" | undefined;
package/lib/index.es.js CHANGED
@@ -2,6 +2,7 @@ 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_PLUGIN, COMMAND_LINE_RUNNER_TOKEN, commandLineListTokens } from './command.es.js';
4
4
  export { TAPABLE_HOOK_FACTORY_TOKEN } from './hooks.es.js';
5
+ export { TRAMVAI_HOOKS_TOKEN } from './tramvaiHooks.es.js';
5
6
 
6
7
  const BUNDLE_LIST_TOKEN = createToken('bundleList');
7
8
  const ACTIONS_LIST_TOKEN = createToken('actionsList');
package/lib/index.js CHANGED
@@ -6,6 +6,7 @@ var dippy = require('@tinkoff/dippy');
6
6
  var typesActionsStateContext = require('@tramvai/types-actions-state-context');
7
7
  var command = require('./command.js');
8
8
  var hooks = require('./hooks.js');
9
+ var tramvaiHooks = require('./tramvaiHooks.js');
9
10
 
10
11
  const BUNDLE_LIST_TOKEN = dippy.createToken('bundleList');
11
12
  const ACTIONS_LIST_TOKEN = dippy.createToken('actionsList');
@@ -21,6 +22,7 @@ exports.COMMAND_LINE_RUNNER_PLUGIN = command.COMMAND_LINE_RUNNER_PLUGIN;
21
22
  exports.COMMAND_LINE_RUNNER_TOKEN = command.COMMAND_LINE_RUNNER_TOKEN;
22
23
  exports.commandLineListTokens = command.commandLineListTokens;
23
24
  exports.TAPABLE_HOOK_FACTORY_TOKEN = hooks.TAPABLE_HOOK_FACTORY_TOKEN;
25
+ exports.TRAMVAI_HOOKS_TOKEN = tramvaiHooks.TRAMVAI_HOOKS_TOKEN;
24
26
  exports.ACTIONS_LIST_TOKEN = ACTIONS_LIST_TOKEN;
25
27
  exports.APP_INFO_TOKEN = APP_INFO_TOKEN;
26
28
  exports.BUNDLE_LIST_TOKEN = BUNDLE_LIST_TOKEN;
@@ -0,0 +1,29 @@
1
+ import { SyncTapableHookInstance } from '@tinkoff/hook-runner';
2
+ export type TramvaiHooks = {
3
+ 'app:initialized': SyncTapableHookInstance<{}>;
4
+ 'app:initialize-failed': SyncTapableHookInstance<{
5
+ error: Error;
6
+ }>;
7
+ 'app:rendered': SyncTapableHookInstance<{}>;
8
+ 'app:render-failed': SyncTapableHookInstance<{
9
+ error: Error;
10
+ }>;
11
+ 'react:render': SyncTapableHookInstance<{}>;
12
+ 'react:error': SyncTapableHookInstance<{
13
+ event: string;
14
+ error: Error;
15
+ errorInfo?: {
16
+ componentStack?: string;
17
+ };
18
+ otherErrors?: {
19
+ error: Error;
20
+ errorInfo?: {
21
+ componentStack: string;
22
+ };
23
+ }[];
24
+ }>;
25
+ };
26
+ export declare const TRAMVAI_HOOKS_TOKEN: TramvaiHooks & {
27
+ __type?: "base token" | undefined;
28
+ };
29
+ //# sourceMappingURL=tramvaiHooks.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { createToken, Scope } from '@tinkoff/dippy';
2
+
3
+ const TRAMVAI_HOOKS_TOKEN = createToken('tramvaiHooks', {
4
+ scope: Scope.SINGLETON,
5
+ });
6
+
7
+ export { TRAMVAI_HOOKS_TOKEN };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var dippy = require('@tinkoff/dippy');
6
+
7
+ const TRAMVAI_HOOKS_TOKEN = dippy.createToken('tramvaiHooks', {
8
+ scope: dippy.Scope.SINGLETON,
9
+ });
10
+
11
+ exports.TRAMVAI_HOOKS_TOKEN = TRAMVAI_HOOKS_TOKEN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-core",
3
- "version": "7.11.1",
3
+ "version": "7.16.1",
4
4
  "description": "Tramvai core tokens",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -18,13 +18,13 @@
18
18
  "watch": "tsc -w"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/types-actions-state-context": "7.11.1"
21
+ "@tramvai/types-actions-state-context": "7.16.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tinkoff/hook-runner": "0.9.1"
25
25
  },
26
26
  "peerDependencies": {
27
- "@tinkoff/dippy": "0.13.2",
27
+ "@tinkoff/dippy": "^1.0.0",
28
28
  "tslib": "^2.4.0"
29
29
  },
30
30
  "license": "Apache-2.0"