@teambit/react.ui.error-fallback 0.0.131 → 0.0.133
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/dist/error-fallback.d.ts
CHANGED
package/dist/error-fallback.js
CHANGED
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ErrorFallback =
|
|
16
|
+
exports.ErrorFallback = ErrorFallback;
|
|
17
17
|
const react_1 = __importDefault(require("react"));
|
|
18
18
|
const classnames_1 = __importDefault(require("classnames"));
|
|
19
19
|
const design_ui_icon_button_1 = require("@teambit/design.ui.icon-button");
|
|
@@ -31,5 +31,4 @@ resetErrorBoundary, className, children = 'Failed to render', cta = 'try again',
|
|
|
31
31
|
react_1.default.createElement("div", { className: error_fallback_module_scss_1.default.message }, children),
|
|
32
32
|
react_1.default.createElement(design_ui_icon_button_1.IconButton, { onClick: handleClick, className: error_fallback_module_scss_1.default.retryButton }, cta)));
|
|
33
33
|
}
|
|
34
|
-
exports.ErrorFallback = ErrorFallback;
|
|
35
34
|
//# sourceMappingURL=error-fallback.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-fallback.js","sourceRoot":"","sources":["../error-fallback.tsx"],"names":[],"mappings":";AAAA,2DAA2D
|
|
1
|
+
{"version":3,"file":"error-fallback.js","sourceRoot":"","sources":["../error-fallback.tsx"],"names":[],"mappings":";AAAA,2DAA2D;;;;;;;;;;;;;;AAY3D,sCAqBC;AA9BD,kDAA0B;AAC1B,4DAAoC;AAEpC,0EAA4D;AAC5D,oFAAiE;AAEjE,8FAAkD;AAGlD,SAAgB,aAAa,CAAC;AAC5B,YAAY;AACZ,kBAAkB,EAClB,SAAS,EACT,QAAQ,GAAG,kBAAkB,EAC7B,GAAG,GAAG,WAAW,GACE;IACnB,MAAM,WAAW,GAAG,GAAS,EAAE;QAC7B,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;QACzD,kBAAkB,EAAE,CAAC;IACvB,CAAC,CAAA,CAAC;IAEF,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,oCAAM,CAAC,aAAa,EAAE,uCAAU,EAAE,SAAS,CAAC;QACrE,uCAAK,SAAS,EAAE,oCAAM,CAAC,IAAI,GAAI;QAC/B,uCAAK,SAAS,EAAE,oCAAM,CAAC,OAAO,IAAG,QAAQ,CAAO;QAChD,8BAAC,kCAAU,IAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,oCAAM,CAAC,WAAW,IAC5D,GAAG,CACO,CACT,CACP,CAAC;AACJ,CAAC"}
|
package/error-fallback.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-misused-promises */
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import type { ReactNode } from 'react';
|
|
4
|
+
import React from 'react';
|
|
4
5
|
import classnames from 'classnames';
|
|
5
6
|
import type { FallbackProps } from 'react-error-boundary';
|
|
6
7
|
import { IconButton } from '@teambit/design.ui.icon-button';
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/react.ui.error-fallback",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.133",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/react/ui/error-fallback",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.react",
|
|
8
8
|
"name": "ui/error-fallback",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.133"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "2.2.6",
|
|
13
13
|
"react-error-boundary": "^3.0.0",
|
|
14
14
|
"core-js": "^3.0.0",
|
|
15
15
|
"@teambit/base-ui.styles.flex-center": "1.0.0",
|
|
16
|
-
"@teambit/design.ui.icon-button": "1.
|
|
16
|
+
"@teambit/design.ui.icon-button": "1.1.28"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/classnames": "2.2.11",
|
|
File without changes
|