@tramvai/react 2.7.1 → 2.10.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/di/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ProviderDeps, ProviderDep, ProvideDepsIterator, OptionalTokenDependency, TokenInterface, ExtractDependencyType, OptionsType } from '@tinkoff/dippy';
2
- export declare const useDiContainer: () => import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<import("@tinkoff/dippy").Container>;
2
+ export declare const useDiContainer: () => import("@tinkoff/dippy").BaseTokenInterface<import("@tinkoff/dippy").Container>;
3
3
  declare function useDi<Token extends TokenInterface<unknown>>(token: Token): ExtractDependencyType<Token>;
4
4
  declare function useDi<Dep extends OptionalTokenDependency<unknown>>(dep: Dep): ExtractDependencyType<Dep['token']> | null;
5
5
  declare function useDi<T extends ProviderDeps>(deps: T): ProvideDepsIterator<T>;
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
2
  import type { UniversalErrorBoundaryFallbackProps } from './UniversalErrorBoundary';
3
3
  declare type ErrorBoundaryHandler = (error: Error, errorInfo: React.ErrorInfo) => void;
4
- export declare const ERROR_BOUNDARY_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<ErrorBoundaryHandler>;
5
- export declare const ROOT_ERROR_BOUNDARY_COMPONENT_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<React.ComponentType<UniversalErrorBoundaryFallbackProps>>;
4
+ export declare const ERROR_BOUNDARY_TOKEN: import("@tinkoff/dippy").MultiTokenInterface<ErrorBoundaryHandler>;
5
+ export declare const ROOT_ERROR_BOUNDARY_COMPONENT_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<React.ComponentType<UniversalErrorBoundaryFallbackProps>>;
6
6
  /**
7
7
  * @deprecated
8
8
  */
9
- export declare const ERROR_BOUNDARY_FALLBACK_COMPONENT_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<React.ReactElement<any, string | React.JSXElementConstructor<any>>>;
9
+ export declare const ERROR_BOUNDARY_FALLBACK_COMPONENT_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<React.ReactElement<any, string | React.JSXElementConstructor<any>>>;
10
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/react",
3
- "version": "2.7.1",
3
+ "version": "2.10.2",
4
4
  "description": "",
5
5
  "main": "lib/react.js",
6
6
  "typings": "lib/react.d.ts",
@@ -23,10 +23,10 @@
23
23
  "hoist-non-react-statics": "^3.3.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@tinkoff/dippy": "0.7.44",
26
+ "@tinkoff/dippy": "0.7.45",
27
27
  "@tinkoff/utils": "^2.1.2",
28
28
  "@tinkoff/url": "0.7.39",
29
- "@tramvai/core": "2.7.1",
29
+ "@tramvai/core": "2.10.2",
30
30
  "react": ">=16.14.0",
31
31
  "react-dom": ">=16.14.0",
32
32
  "tslib": "^2.0.3"