@tramvai/module-common 2.150.0 → 2.151.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.
Files changed (60) hide show
  1. package/lib/CommonModule.d.ts +1 -0
  2. package/lib/actions/ActionModule.d.ts +1 -0
  3. package/lib/actions/actionChecker.d.ts +1 -0
  4. package/lib/actions/actionExecution.d.ts +1 -0
  5. package/lib/actions/actionPageRunner.browser.d.ts +1 -0
  6. package/lib/actions/actionPageRunner.d.ts +1 -0
  7. package/lib/actions/actionRegistry.d.ts +1 -0
  8. package/lib/actions/actionTramvaiReducer.d.ts +2 -1
  9. package/lib/actions/conditions/always.d.ts +1 -0
  10. package/lib/actions/conditions/dynamic.d.ts +1 -0
  11. package/lib/actions/conditions/helpers.d.ts +1 -0
  12. package/lib/actions/conditions/onlyBrowser.d.ts +1 -0
  13. package/lib/actions/conditions/onlyServer.d.ts +1 -0
  14. package/lib/actions/conditions/pageBrowser.d.ts +1 -0
  15. package/lib/actions/conditions/pageServer.d.ts +1 -0
  16. package/lib/actions/constants.d.ts +1 -0
  17. package/lib/actions/deferred/await.d.ts +1 -0
  18. package/lib/actions/deferred/clientScriptsUtils.d.ts +1 -0
  19. package/lib/actions/deferred/deferred.d.ts +1 -0
  20. package/lib/actions/deferred/deferred.inline.d.ts +1 -0
  21. package/lib/actions/deferred/providers.browser.d.ts +1 -0
  22. package/lib/actions/deferred/providers.d.ts +1 -0
  23. package/lib/actions/test-utils/authCondition.mock.d.ts +1 -0
  24. package/lib/bundleManager/bundleManager.d.ts +1 -0
  25. package/lib/cache/CacheModule.d.ts +1 -0
  26. package/lib/cache/cacheFactory.browser.d.ts +1 -0
  27. package/lib/cache/cacheFactory.d.ts +1 -0
  28. package/lib/cache/clientProviders.d.ts +1 -0
  29. package/lib/cache/papi.d.ts +2 -1
  30. package/lib/cache/serverProviders.d.ts +1 -0
  31. package/lib/child-app/ChildAppModule.d.ts +1 -0
  32. package/lib/child-app/actions.d.ts +1 -0
  33. package/lib/child-app/cache.d.ts +1 -0
  34. package/lib/child-app/clientProviders.d.ts +1 -0
  35. package/lib/child-app/command.d.ts +1 -0
  36. package/lib/child-app/serverProviders.d.ts +1 -0
  37. package/lib/child-app/state.d.ts +1 -0
  38. package/lib/command/CommandModule.d.ts +1 -0
  39. package/lib/command/commandLineRunner.d.ts +1 -0
  40. package/lib/command/defaultLines.d.ts +1 -0
  41. package/lib/componentRegistry/componentRegistry.d.ts +1 -0
  42. package/lib/createConsumerContext/constants/priority.d.ts +1 -0
  43. package/lib/createConsumerContext/createConsumerContext.d.ts +1 -0
  44. package/lib/createConsumerContext/typings.d.ts +1 -0
  45. package/lib/executionContext/executionContextManager.d.ts +1 -0
  46. package/lib/index.d.ts +1 -0
  47. package/lib/providers/clientProviders.d.ts +1 -0
  48. package/lib/providers/serverProviders.d.ts +1 -0
  49. package/lib/pubsub/PubSubModule.d.ts +1 -0
  50. package/lib/requestManager/RequestManagerModule.browser.d.ts +1 -0
  51. package/lib/requestManager/RequestManagerModule.d.ts +1 -0
  52. package/lib/requestManager/RequestManagerStore.d.ts +2 -1
  53. package/lib/requestManager/requestManager.d.ts +1 -0
  54. package/lib/requestManager/sharedProviders.d.ts +1 -0
  55. package/lib/responseManager/ResponseManagerModule.browser.d.ts +1 -0
  56. package/lib/responseManager/ResponseManagerModule.d.ts +1 -0
  57. package/lib/responseManager/responseManager.d.ts +1 -0
  58. package/lib/responseManager/sharedProviders.d.ts +1 -0
  59. package/lib/state/StateModule.d.ts +1 -0
  60. package/package.json +17 -17
@@ -1,2 +1,3 @@
1
1
  export declare class CommonModule {
2
2
  }
3
+ //# sourceMappingURL=CommonModule.d.ts.map
@@ -8,3 +8,4 @@ export { alwaysCondition, onlyServer, onlyBrowser, pageServer, pageBrowser, dyna
8
8
  declare class ActionModule {
9
9
  }
10
10
  export { ActionModule };
11
+ //# sourceMappingURL=ActionModule.d.ts.map
@@ -20,3 +20,4 @@ export declare class ActionChecker implements ActionConditionChecker {
20
20
  allow(): void;
21
21
  private getStatus;
22
22
  }
23
+ //# sourceMappingURL=actionChecker.d.ts.map
@@ -37,3 +37,4 @@ export declare class ActionExecution implements Interface {
37
37
  private createActionContext;
38
38
  }
39
39
  export {};
40
+ //# sourceMappingURL=actionExecution.d.ts.map
@@ -13,3 +13,4 @@ export declare class ActionPageRunner {
13
13
  });
14
14
  runActions(actions: Array<Action | TramvaiAction<any[], any, any>>, stopRunAtError?: (error: Error) => boolean): Promise<void>;
15
15
  }
16
+ //# sourceMappingURL=actionPageRunner.browser.d.ts.map
@@ -26,3 +26,4 @@ export declare class ActionPageRunner implements ActionPageRunnerInterface {
26
26
  runActions(actions: Array<Action | TramvaiAction<any[], any, any>>, stopRunAtError?: (error: Error) => boolean): Promise<void>;
27
27
  private syncStateActions;
28
28
  }
29
+ //# sourceMappingURL=actionPageRunner.d.ts.map
@@ -11,3 +11,4 @@ export declare class ActionRegistry implements Interface {
11
11
  getGlobal(): PageAction[] | undefined;
12
12
  remove(type: string, actions?: PageAction | PageAction[]): void;
13
13
  }
14
+ //# sourceMappingURL=actionRegistry.d.ts.map
@@ -1,5 +1,6 @@
1
- declare const actionServerStateEvent: import("@tramvai/types-actions-state-context").EventCreator1<Record<string, boolean>, Record<string, boolean>>;
1
+ declare const actionServerStateEvent: import("@tramvai/types-actions-state-context").EventCreator1<Record<string, boolean>>;
2
2
  declare const actionTramvaiReducer: import("@tramvai/state").Reducer<{
3
3
  serverState: {};
4
4
  }, "actionTramvai", never>;
5
5
  export { actionTramvaiReducer, actionServerStateEvent };
6
+ //# sourceMappingURL=actionTramvaiReducer.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ActionCondition } from '@tramvai/tokens-common';
2
2
  export declare const alwaysCondition: ActionCondition;
3
+ //# sourceMappingURL=always.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ActionCondition } from '@tramvai/tokens-common';
2
2
  export declare const dynamicCondition: ActionCondition;
3
+ //# sourceMappingURL=dynamic.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const isServer: boolean;
2
2
  export declare const isBrowser: boolean;
3
+ //# sourceMappingURL=helpers.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ActionCondition } from '@tramvai/tokens-common';
2
2
  export declare const onlyBrowser: ActionCondition;
3
+ //# sourceMappingURL=onlyBrowser.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ActionCondition } from '@tramvai/tokens-common';
2
2
  export declare const onlyServer: ActionCondition;
3
+ //# sourceMappingURL=onlyServer.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ActionCondition } from '@tramvai/tokens-common';
2
2
  export declare const pageBrowser: ActionCondition;
3
+ //# sourceMappingURL=pageBrowser.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { ActionCondition } from '@tramvai/tokens-common';
2
2
  export declare const pageServer: ActionCondition;
3
+ //# sourceMappingURL=pageServer.d.ts.map
@@ -9,3 +9,4 @@ export declare const actionType: {
9
9
  * @deprecated only for compatibility with legacy createAction
10
10
  */
11
11
  export type ActionType = keyof typeof actionType;
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -4,3 +4,4 @@ export declare function Await<Result>({ action, children, error, }: {
4
4
  children: (data: Result extends Promise<infer R> ? R : Result) => JSX.Element;
5
5
  error?: (reason: any) => JSX.Element;
6
6
  }): JSX.Element;
7
+ //# sourceMappingURL=await.d.ts.map
@@ -6,3 +6,4 @@ export declare const generateDeferredReject: ({ key, error }: {
6
6
  key: string;
7
7
  error: Error;
8
8
  }) => string;
9
+ //# sourceMappingURL=clientScriptsUtils.d.ts.map
@@ -11,3 +11,4 @@ export declare class Deferred implements IDeferred {
11
11
  reset(): void;
12
12
  private initPromise;
13
13
  }
14
+ //# sourceMappingURL=deferred.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Deferred } from '@tramvai/tokens-common';
2
2
  export declare function __Deferred(this: Deferred & Record<string, any>): void;
3
+ //# sourceMappingURL=deferred.inline.d.ts.map
@@ -7,3 +7,4 @@ declare global {
7
7
  export declare const providers: import("@tramvai/core").Provider<unknown, import("@tramvai/tokens-common").DeferredActionsMap & {
8
8
  __type?: "base token" | undefined;
9
9
  }>[];
10
+ //# sourceMappingURL=providers.browser.d.ts.map
@@ -18,3 +18,4 @@ export declare const providers: (import("@tramvai/core").Provider<unknown, impor
18
18
  }, import("@tramvai/core").Command & {
19
19
  __type?: "multi token" | undefined;
20
20
  }>)[];
21
+ //# sourceMappingURL=providers.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const authConditionFactory: ({ context }: any) => any;
2
+ //# sourceMappingURL=authCondition.mock.d.ts.map
@@ -18,3 +18,4 @@ export declare class BundleManager implements Interface {
18
18
  private loadBundle;
19
19
  }
20
20
  export {};
21
+ //# sourceMappingURL=bundleManager.d.ts.map
@@ -4,3 +4,4 @@ export declare const cachesToken: Cache<any>[] & {
4
4
  };
5
5
  export declare class CacheModule {
6
6
  }
7
+ //# sourceMappingURL=CacheModule.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { CacheFactory } from '@tramvai/tokens-common';
2
2
  export declare const cacheFactory: CacheFactory;
3
+ //# sourceMappingURL=cacheFactory.browser.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { CacheFactory } from '@tramvai/tokens-common';
2
2
  export declare const cacheFactory: CacheFactory;
3
+ //# sourceMappingURL=cacheFactory.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const providers: Provider[];
3
+ //# sourceMappingURL=clientProviders.d.ts.map
@@ -2,4 +2,5 @@ import type { CLEAR_CACHE_TOKEN, LOGGER_TOKEN } from '@tramvai/tokens-common';
2
2
  export declare const papiClearCache: ({ clearCache, logger, }: {
3
3
  clearCache: typeof CLEAR_CACHE_TOKEN;
4
4
  logger: typeof LOGGER_TOKEN;
5
- }) => import("@tramvai/papi").Papi<any, any>;
5
+ }) => import("@tramvai/papi").Papi;
6
+ //# sourceMappingURL=papi.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const providers: Provider[];
3
+ //# sourceMappingURL=serverProviders.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class CommonChildAppModule {
2
2
  }
3
+ //# sourceMappingURL=ChildAppModule.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const actionsProviders: Provider[];
3
+ //# sourceMappingURL=actions.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const actionsProviders: Provider[];
3
+ //# sourceMappingURL=cache.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const providers: Provider[];
3
+ //# sourceMappingURL=clientProviders.d.ts.map
@@ -30,3 +30,4 @@ export declare const lines: {
30
30
  };
31
31
  };
32
32
  export declare const commandProviders: Provider[];
33
+ //# sourceMappingURL=command.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const providers: Provider[];
3
+ //# sourceMappingURL=serverProviders.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const stateProviders: Provider[];
3
+ //# sourceMappingURL=state.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class CommandModule {
2
2
  }
3
+ //# sourceMappingURL=CommandModule.d.ts.map
@@ -25,3 +25,4 @@ export declare class CommandLineRunner implements Interface {
25
25
  private throwError;
26
26
  }
27
27
  export {};
28
+ //# sourceMappingURL=commandLineRunner.d.ts.map
@@ -3,3 +3,4 @@ export declare const lines: {
3
3
  server: CommandLineDescription;
4
4
  client: CommandLineDescription;
5
5
  };
6
+ //# sourceMappingURL=defaultLines.d.ts.map
@@ -10,3 +10,4 @@ export declare class ComponentRegistry implements Interface {
10
10
  getComponentParam<T>(param: string, defaultValue: T, component: string, group: string): T;
11
11
  }
12
12
  export {};
13
+ //# sourceMappingURL=componentRegistry.d.ts.map
@@ -4,3 +4,4 @@ declare const P_HIGH = 7;
4
4
  declare const P_IMPORTANT = 10;
5
5
  export type Priority = typeof P_LOW | typeof P_NORMAL | typeof P_HIGH | typeof P_IMPORTANT;
6
6
  export {};
7
+ //# sourceMappingURL=priority.d.ts.map
@@ -36,3 +36,4 @@ export declare class ConsumerContext implements ContextType {
36
36
  }
37
37
  export declare function createConsumerContext({ di, dispatcherContext, pubsub, store }: Deps): ContextType;
38
38
  export {};
39
+ //# sourceMappingURL=createConsumerContext.d.ts.map
@@ -1 +1,2 @@
1
1
  export type { PlatformAction } from '@tramvai/tokens-common';
2
+ //# sourceMappingURL=typings.d.ts.map
@@ -2,3 +2,4 @@ import type { ExecutionContext, ExecutionContextManager as Interface, ExecutionC
2
2
  export declare class ExecutionContextManager implements Interface {
3
3
  withContext<T>(parentContext: ExecutionContext | null, nameOrOptions: string | ExecutionContextOptions, cb: (context: ExecutionContext, abortController: AbortController) => Promise<T>): Promise<T>;
4
4
  }
5
+ //# sourceMappingURL=executionContextManager.d.ts.map
package/lib/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export { createConsumerContext } from './createConsumerContext/createConsumerCon
9
9
  export { CommonChildAppModule } from './child-app/ChildAppModule';
10
10
  export * from '@tramvai/tokens-common';
11
11
  export { COOKIE_MANAGER_TOKEN } from '@tramvai/module-cookie';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -9,3 +9,4 @@ export declare const providers: (import("@tramvai/core").Provider<unknown, {
9
9
  }, import("@tramvai/core").Command & {
10
10
  __type?: "multi token" | undefined;
11
11
  }>)[];
12
+ //# sourceMappingURL=clientProviders.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const providers: never[];
2
+ //# sourceMappingURL=serverProviders.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class PubSubModule {
2
2
  }
3
+ //# sourceMappingURL=PubSubModule.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class RequestManagerModule {
2
2
  }
3
+ //# sourceMappingURL=RequestManagerModule.browser.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class RequestManagerModule {
2
2
  }
3
+ //# sourceMappingURL=RequestManagerModule.d.ts.map
@@ -1,4 +1,5 @@
1
1
  type Request = Record<string, any>;
2
- export declare const setRequest: import("@tramvai/types-actions-state-context").EventCreator1<Request, Request>;
2
+ export declare const setRequest: import("@tramvai/types-actions-state-context").EventCreator1<Request>;
3
3
  export declare const RequestManagerStore: import("@tramvai/state").Reducer<Request, "requestManager", never>;
4
4
  export {};
5
+ //# sourceMappingURL=RequestManagerStore.d.ts.map
@@ -21,3 +21,4 @@ export declare class RequestManager implements Interface {
21
21
  getHost(): string;
22
22
  }
23
23
  export {};
24
+ //# sourceMappingURL=requestManager.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const sharedProviders: Provider[];
3
+ //# sourceMappingURL=sharedProviders.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class ResponseManagerModule {
2
2
  }
3
+ //# sourceMappingURL=ResponseManagerModule.browser.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class ResponseManagerModule {
2
2
  }
3
+ //# sourceMappingURL=ResponseManagerModule.d.ts.map
@@ -20,3 +20,4 @@ export declare class ResponseManager implements Interface {
20
20
  getStatus(): number;
21
21
  }
22
22
  export {};
23
+ //# sourceMappingURL=responseManager.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { Provider } from '@tramvai/core';
2
2
  export declare const sharedProviders: Provider[];
3
+ //# sourceMappingURL=sharedProviders.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class StateModule {
2
2
  }
3
+ //# sourceMappingURL=StateModule.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-common",
3
- "version": "2.150.0",
3
+ "version": "2.151.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -36,28 +36,28 @@
36
36
  "@tinkoff/pubsub": "0.5.7",
37
37
  "@tinkoff/url": "0.8.6",
38
38
  "@tramvai/safe-strings": "0.5.12",
39
- "@tramvai/experiments": "2.150.0",
40
- "@tramvai/module-cookie": "2.150.0",
41
- "@tramvai/module-environment": "2.150.0",
42
- "@tramvai/module-log": "2.150.0",
43
- "@tramvai/tokens-child-app": "2.150.0",
44
- "@tramvai/tokens-core-private": "2.150.0",
45
- "@tramvai/tokens-common": "2.150.0",
46
- "@tramvai/tokens-render": "2.150.0",
47
- "@tramvai/tokens-server-private": "2.150.0",
48
- "@tramvai/types-actions-state-context": "2.150.0",
39
+ "@tramvai/experiments": "2.151.0",
40
+ "@tramvai/module-cookie": "2.151.0",
41
+ "@tramvai/module-environment": "2.151.0",
42
+ "@tramvai/module-log": "2.151.0",
43
+ "@tramvai/tokens-child-app": "2.151.0",
44
+ "@tramvai/tokens-core-private": "2.151.0",
45
+ "@tramvai/tokens-common": "2.151.0",
46
+ "@tramvai/tokens-render": "2.151.0",
47
+ "@tramvai/tokens-server-private": "2.151.0",
48
+ "@tramvai/types-actions-state-context": "2.151.0",
49
49
  "hoist-non-react-statics": "^3.3.1",
50
50
  "node-abort-controller": "^3.0.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@tinkoff/dippy": "0.8.16",
54
54
  "@tinkoff/utils": "^2.1.2",
55
- "@tramvai/cli": "2.150.0",
56
- "@tramvai/core": "2.150.0",
57
- "@tramvai/papi": "2.150.0",
58
- "@tramvai/react": "2.150.0",
59
- "@tramvai/state": "2.150.0",
60
- "@tramvai/tokens-server": "2.150.0",
55
+ "@tramvai/cli": "2.151.0",
56
+ "@tramvai/core": "2.151.0",
57
+ "@tramvai/papi": "2.151.0",
58
+ "@tramvai/react": "2.151.0",
59
+ "@tramvai/state": "2.151.0",
60
+ "@tramvai/tokens-server": "2.151.0",
61
61
  "react": ">=16.14.0",
62
62
  "tslib": "^2.4.0"
63
63
  },