@tramvai/react 2.56.2 → 2.56.5
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 +3 -1
- package/lib/error/tokens.d.ts +11 -3
- package/package.json +3 -3
package/lib/di/hooks.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ProviderDeps, ProviderDep, ProvideDepsIterator, OptionalTokenDependency, TokenInterface, ExtractDependencyType, OptionsType } from '@tinkoff/dippy';
|
|
2
|
-
export declare const useDiContainer: () => import("@tinkoff/dippy").
|
|
2
|
+
export declare const useDiContainer: () => import("@tinkoff/dippy").Container & {
|
|
3
|
+
__type?: "base token" | undefined;
|
|
4
|
+
};
|
|
3
5
|
declare function useDi<Token extends TokenInterface<unknown>>(token: Token): ExtractDependencyType<Token>;
|
|
4
6
|
declare function useDi<Dep extends OptionalTokenDependency<unknown>>(dep: Dep): ExtractDependencyType<Dep['token']> | null;
|
|
5
7
|
declare function useDi<T extends ProviderDeps>(deps: T): ProvideDepsIterator<T>;
|
package/lib/error/tokens.d.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { UniversalErrorBoundaryFallbackProps } from './UniversalErrorBoundary';
|
|
3
3
|
type ErrorBoundaryHandler = (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
4
|
-
export declare const ERROR_BOUNDARY_TOKEN:
|
|
5
|
-
|
|
4
|
+
export declare const ERROR_BOUNDARY_TOKEN: ErrorBoundaryHandler & {
|
|
5
|
+
__type?: "multi token" | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare const ROOT_ERROR_BOUNDARY_COMPONENT_TOKEN: (React.ComponentClass<UniversalErrorBoundaryFallbackProps, any> & {
|
|
8
|
+
__type?: "base token" | undefined;
|
|
9
|
+
}) | (React.FunctionComponent<UniversalErrorBoundaryFallbackProps> & {
|
|
10
|
+
__type?: "base token" | undefined;
|
|
11
|
+
});
|
|
6
12
|
/**
|
|
7
13
|
* @deprecated
|
|
8
14
|
*/
|
|
9
|
-
export declare const ERROR_BOUNDARY_FALLBACK_COMPONENT_TOKEN:
|
|
15
|
+
export declare const ERROR_BOUNDARY_FALLBACK_COMPONENT_TOKEN: React.ReactElement<any, string | React.JSXElementConstructor<any>> & {
|
|
16
|
+
__type?: "base token" | undefined;
|
|
17
|
+
};
|
|
10
18
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/react",
|
|
3
|
-
"version": "2.56.
|
|
3
|
+
"version": "2.56.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/react.js",
|
|
6
6
|
"typings": "lib/react.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@loadable/component": "^5.15.2",
|
|
22
22
|
"@types/loadable__component": "^5.13.4",
|
|
23
|
-
"@tramvai/types-actions-state-context": "2.56.
|
|
23
|
+
"@tramvai/types-actions-state-context": "2.56.5",
|
|
24
24
|
"hoist-non-react-statics": "^3.3.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@tinkoff/dippy": "0.8.
|
|
27
|
+
"@tinkoff/dippy": "0.8.11",
|
|
28
28
|
"@tinkoff/utils": "^2.1.2",
|
|
29
29
|
"@tinkoff/url": "0.8.4",
|
|
30
30
|
"react": ">=16.14.0",
|