@tramvai/tokens-common 4.18.5 → 4.19.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
@@ -31,6 +31,13 @@ export declare const ACTION_CONDITIONALS: (ActionCondition & {
31
31
  }) | (ActionCondition[] & {
32
32
  __type?: "multi token" | undefined;
33
33
  });
34
+ /**
35
+ * @description
36
+ * Limit global and page actions execution time on server-side
37
+ */
38
+ export declare const LIMIT_ACTION_GLOBAL_TIME_RUN: number & {
39
+ __type?: "base token" | undefined;
40
+ };
34
41
  export interface ActionsRegistry {
35
42
  add(type: string, actions: PageAction | PageAction[]): void;
36
43
  get(type: string, addingActions?: PageAction[]): PageAction[];
package/lib/action.es.js CHANGED
@@ -22,6 +22,11 @@ const ACTION_PAGE_RUNNER_TOKEN = createToken('actionPageRunner');
22
22
  const ACTION_CONDITIONALS = createToken('actionConditionals', {
23
23
  multi: true,
24
24
  });
25
+ /**
26
+ * @description
27
+ * Limit global and page actions execution time on server-side
28
+ */
29
+ const LIMIT_ACTION_GLOBAL_TIME_RUN = createToken('limitActionGlobalTimeRun');
25
30
  const DEFERRED_ACTIONS_MAP_TOKEN = createToken('tramvai deferred actions map');
26
31
 
27
- export { ACTION_CONDITIONALS, ACTION_EXECUTION_TOKEN, ACTION_PAGE_RUNNER_TOKEN, ACTION_REGISTRY_TOKEN, DEFERRED_ACTIONS_MAP_TOKEN };
32
+ export { ACTION_CONDITIONALS, ACTION_EXECUTION_TOKEN, ACTION_PAGE_RUNNER_TOKEN, ACTION_REGISTRY_TOKEN, DEFERRED_ACTIONS_MAP_TOKEN, LIMIT_ACTION_GLOBAL_TIME_RUN };
package/lib/action.js CHANGED
@@ -26,6 +26,11 @@ const ACTION_PAGE_RUNNER_TOKEN = dippy.createToken('actionPageRunner');
26
26
  const ACTION_CONDITIONALS = dippy.createToken('actionConditionals', {
27
27
  multi: true,
28
28
  });
29
+ /**
30
+ * @description
31
+ * Limit global and page actions execution time on server-side
32
+ */
33
+ const LIMIT_ACTION_GLOBAL_TIME_RUN = dippy.createToken('limitActionGlobalTimeRun');
29
34
  const DEFERRED_ACTIONS_MAP_TOKEN = dippy.createToken('tramvai deferred actions map');
30
35
 
31
36
  exports.ACTION_CONDITIONALS = ACTION_CONDITIONALS;
@@ -33,3 +38,4 @@ exports.ACTION_EXECUTION_TOKEN = ACTION_EXECUTION_TOKEN;
33
38
  exports.ACTION_PAGE_RUNNER_TOKEN = ACTION_PAGE_RUNNER_TOKEN;
34
39
  exports.ACTION_REGISTRY_TOKEN = ACTION_REGISTRY_TOKEN;
35
40
  exports.DEFERRED_ACTIONS_MAP_TOKEN = DEFERRED_ACTIONS_MAP_TOKEN;
41
+ exports.LIMIT_ACTION_GLOBAL_TIME_RUN = LIMIT_ACTION_GLOBAL_TIME_RUN;
package/lib/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { ADDITIONAL_BUNDLE_TOKEN, BUNDLE_MANAGER_TOKEN } from './bundle.es.js';
2
2
  export { CONTEXT_TOKEN } from './context.es.js';
3
- export { ACTION_CONDITIONALS, ACTION_EXECUTION_TOKEN, ACTION_PAGE_RUNNER_TOKEN, ACTION_REGISTRY_TOKEN, DEFERRED_ACTIONS_MAP_TOKEN } from './action.es.js';
3
+ export { ACTION_CONDITIONALS, ACTION_EXECUTION_TOKEN, ACTION_PAGE_RUNNER_TOKEN, ACTION_REGISTRY_TOKEN, DEFERRED_ACTIONS_MAP_TOKEN, LIMIT_ACTION_GLOBAL_TIME_RUN } from './action.es.js';
4
4
  export { HOOK_TOKEN } from './hook.es.js';
5
5
  export { PUBSUB_FACTORY_TOKEN, PUBSUB_TOKEN, ROOT_PUBSUB_TOKEN } from './pubsub.es.js';
6
6
  export { CLEAR_CACHE_TOKEN, CREATE_CACHE_TOKEN, REGISTER_CLEAR_CACHE_TOKEN } from './cache.es.js';
package/lib/index.js CHANGED
@@ -27,6 +27,7 @@ exports.ACTION_EXECUTION_TOKEN = action.ACTION_EXECUTION_TOKEN;
27
27
  exports.ACTION_PAGE_RUNNER_TOKEN = action.ACTION_PAGE_RUNNER_TOKEN;
28
28
  exports.ACTION_REGISTRY_TOKEN = action.ACTION_REGISTRY_TOKEN;
29
29
  exports.DEFERRED_ACTIONS_MAP_TOKEN = action.DEFERRED_ACTIONS_MAP_TOKEN;
30
+ exports.LIMIT_ACTION_GLOBAL_TIME_RUN = action.LIMIT_ACTION_GLOBAL_TIME_RUN;
30
31
  exports.HOOK_TOKEN = hook.HOOK_TOKEN;
31
32
  exports.PUBSUB_FACTORY_TOKEN = pubsub.PUBSUB_FACTORY_TOKEN;
32
33
  exports.PUBSUB_TOKEN = pubsub.PUBSUB_TOKEN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-common",
3
- "version": "4.18.5",
3
+ "version": "4.19.2",
4
4
  "description": "Tramvai tokens for @tramvai/module-common",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -20,13 +20,13 @@
20
20
  "dependencies": {
21
21
  "@tinkoff/lru-cache-nano": "^7.9.0",
22
22
  "@tinkoff/url": "0.10.1",
23
- "@tramvai/react": "4.18.5",
24
- "@tramvai/tokens-core": "4.18.5"
23
+ "@tramvai/react": "4.19.2",
24
+ "@tramvai/tokens-core": "4.19.2"
25
25
  },
26
26
  "peerDependencies": {
27
- "@tinkoff/dippy": "0.10.6",
27
+ "@tinkoff/dippy": "0.10.7",
28
28
  "@tinkoff/logger": "0.10.274",
29
- "@tramvai/types-actions-state-context": "4.18.5",
29
+ "@tramvai/types-actions-state-context": "4.19.2",
30
30
  "react": ">=16.8",
31
31
  "tslib": "^2.4.0"
32
32
  },