@tramvai/react 5.50.0 → 5.53.78
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.
|
@@ -39,7 +39,7 @@ export declare class UniversalErrorBoundary extends Component<Props, State> {
|
|
|
39
39
|
error: AnyError;
|
|
40
40
|
};
|
|
41
41
|
componentDidCatch(error: AnyError, errorInfo: React.ErrorInfo): void;
|
|
42
|
-
render():
|
|
42
|
+
render(): React.ReactNode;
|
|
43
43
|
}
|
|
44
44
|
export {};
|
|
45
45
|
//# sourceMappingURL=UniversalErrorBoundary.d.ts.map
|
|
@@ -10,6 +10,7 @@ class UniversalErrorBoundary extends Component {
|
|
|
10
10
|
url: props.url,
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
+
static displayName = 'UniversalErrorBoundary';
|
|
13
14
|
// Reference and explanation here - https://github.com/remix-run/remix/blob/main/packages/remix-react/errorBoundaries.tsx#L35
|
|
14
15
|
static getDerivedStateFromProps(props, state) {
|
|
15
16
|
if (props.url === undefined) {
|
|
@@ -46,6 +47,5 @@ class UniversalErrorBoundary extends Component {
|
|
|
46
47
|
return jsx(FallbackError, {});
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
UniversalErrorBoundary.displayName = 'UniversalErrorBoundary';
|
|
50
50
|
|
|
51
51
|
export { UniversalErrorBoundary };
|
|
@@ -14,6 +14,7 @@ class UniversalErrorBoundary extends react.Component {
|
|
|
14
14
|
url: props.url,
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
+
static displayName = 'UniversalErrorBoundary';
|
|
17
18
|
// Reference and explanation here - https://github.com/remix-run/remix/blob/main/packages/remix-react/errorBoundaries.tsx#L35
|
|
18
19
|
static getDerivedStateFromProps(props, state) {
|
|
19
20
|
if (props.url === undefined) {
|
|
@@ -50,6 +51,5 @@ class UniversalErrorBoundary extends react.Component {
|
|
|
50
51
|
return jsxRuntime.jsx(fallback.FallbackError, {});
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
UniversalErrorBoundary.displayName = 'UniversalErrorBoundary';
|
|
54
54
|
|
|
55
55
|
exports.UniversalErrorBoundary = UniversalErrorBoundary;
|
|
@@ -15,6 +15,7 @@ let ErrorBoundary = class ErrorBoundary extends Component {
|
|
|
15
15
|
hasError: false,
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
static displayName = 'ErrorBoundary';
|
|
18
19
|
static getDerivedStateFromError() {
|
|
19
20
|
return { hasError: true };
|
|
20
21
|
}
|
|
@@ -35,7 +36,6 @@ let ErrorBoundary = class ErrorBoundary extends Component {
|
|
|
35
36
|
return fallbackComponent || fallbackComponentFromDi || jsx(FallbackError, {});
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
|
-
ErrorBoundary.displayName = 'ErrorBoundary';
|
|
39
39
|
ErrorBoundary = __decorate([
|
|
40
40
|
withDi({
|
|
41
41
|
errorHandlers: { token: ERROR_BOUNDARY_TOKEN, optional: true },
|
package/lib/error/component.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.ErrorBoundary = class ErrorBoundary extends react.Component {
|
|
|
19
19
|
hasError: false,
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
+
static displayName = 'ErrorBoundary';
|
|
22
23
|
static getDerivedStateFromError() {
|
|
23
24
|
return { hasError: true };
|
|
24
25
|
}
|
|
@@ -39,7 +40,6 @@ exports.ErrorBoundary = class ErrorBoundary extends react.Component {
|
|
|
39
40
|
return fallbackComponent || fallbackComponentFromDi || jsxRuntime.jsx(fallback.FallbackError, {});
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
|
-
exports.ErrorBoundary.displayName = 'ErrorBoundary';
|
|
43
43
|
exports.ErrorBoundary = tslib.__decorate([
|
|
44
44
|
hoc.withDi({
|
|
45
45
|
errorHandlers: { token: tokens.ERROR_BOUNDARY_TOKEN, optional: true },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.53.78",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/react.js",
|
|
6
6
|
"typings": "lib/react.d.ts",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@loadable/component": "^5.15.2",
|
|
21
|
-
"@tramvai/types-actions-state-context": "5.
|
|
21
|
+
"@tramvai/types-actions-state-context": "5.53.78",
|
|
22
22
|
"@types/loadable__component": "^5.13.4",
|
|
23
23
|
"hoist-non-react-statics": "^3.3.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@tinkoff/dippy": "0.11.
|
|
27
|
-
"@tinkoff/url": "0.11.
|
|
26
|
+
"@tinkoff/dippy": "0.11.5",
|
|
27
|
+
"@tinkoff/url": "0.11.3",
|
|
28
28
|
"@tinkoff/utils": "^2.1.2",
|
|
29
29
|
"react": ">=16.14.0",
|
|
30
30
|
"react-dom": ">=16.14.0",
|