@bigbinary/neeto-commons-frontend 2.0.123 → 2.0.125
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/initializers.cjs.js +1 -3
- package/initializers.cjs.js.map +1 -1
- package/initializers.js +1 -3
- package/initializers.js.map +1 -1
- package/package.json +5 -3
- package/react-utils.cjs.js +9 -13
- package/react-utils.cjs.js.map +1 -1
- package/react-utils.d.ts +3 -2
- package/react-utils.js +9 -13
- package/react-utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.125",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"@bigbinary/neeto-icons": "^1.9.15",
|
|
89
89
|
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
90
90
|
"@bigbinary/neetoui": "^4.4.9",
|
|
91
|
-
"@honeybadger-io/
|
|
91
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
92
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
92
93
|
"@rails/actioncable": "^7.0.3",
|
|
93
94
|
"@rollup/plugin-alias": "^3.1.9",
|
|
94
95
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -180,7 +181,8 @@
|
|
|
180
181
|
"@bigbinary/neeto-icons": "latest",
|
|
181
182
|
"@bigbinary/neeto-molecules": "^latest",
|
|
182
183
|
"@bigbinary/neetoui": "latest",
|
|
183
|
-
"@honeybadger-io/
|
|
184
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
185
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
184
186
|
"antd": "4.18.7",
|
|
185
187
|
"autoprefixer": "^10.4.13",
|
|
186
188
|
"axios": "^0.27.2",
|
package/react-utils.cjs.js
CHANGED
|
@@ -95,7 +95,7 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
95
95
|
style: "h2",
|
|
96
96
|
weight: "semibold"
|
|
97
97
|
}, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
98
|
-
className: "
|
|
98
|
+
className: "neeto-ui-text-gray-600 mb-8",
|
|
99
99
|
component: "p",
|
|
100
100
|
style: "body1",
|
|
101
101
|
weight: "normal"
|
|
@@ -104,14 +104,12 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
104
104
|
components: {
|
|
105
105
|
reloading: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
106
106
|
style: "link",
|
|
107
|
-
label: t("neetoCommons.fallbackComponent.reloadingButtonLabel"),
|
|
108
107
|
onClick: function onClick() {
|
|
109
108
|
return window.location.reload();
|
|
110
109
|
}
|
|
111
110
|
}),
|
|
112
111
|
contactus: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
113
112
|
style: "link",
|
|
114
|
-
label: t("neetoCommons.fallbackComponent.contactusButtonLabel"),
|
|
115
113
|
onClick: function onClick() {
|
|
116
114
|
var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
|
|
117
115
|
(_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
|
|
@@ -121,7 +119,9 @@ var FallbackComponent = function FallbackComponent() {
|
|
|
121
119
|
}
|
|
122
120
|
}))));
|
|
123
121
|
};
|
|
124
|
-
var ignorableErrorsRegex = /(window\.requestAnimationFrame|ResizeObserver|ChunkLoadError)/;
|
|
122
|
+
var ignorableErrorsRegex = /(window\.requestAnimationFrame|ResizeObserver|ChunkLoadError|window\.webkit\.messageHandlers)/;
|
|
123
|
+
|
|
124
|
+
/** @type {import("neetocommons/react-utils").HoneybadgerErrorBoundary} */
|
|
125
125
|
var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
126
126
|
var children = _ref.children,
|
|
127
127
|
_ref$ErrorComponent = _ref.ErrorComponent,
|
|
@@ -129,7 +129,7 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
129
129
|
_ref$filterErrors = _ref.filterErrors,
|
|
130
130
|
filterErrors = _ref$filterErrors === void 0 ? undefined : _ref$filterErrors;
|
|
131
131
|
react.Honeybadger.beforeNotify(function (notice) {
|
|
132
|
-
if (ignorableErrorsRegex.test(notice.message) || notice.stack.includes("chrome-extension://")) {
|
|
132
|
+
if (notice && (ignorableErrorsRegex.test(notice.message) || notice.stack.includes("chrome-extension://"))) {
|
|
133
133
|
return false;
|
|
134
134
|
}
|
|
135
135
|
return filterErrors === null || filterErrors === void 0 ? void 0 : filterErrors(notice);
|
|
@@ -144,14 +144,10 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
|
|
|
144
144
|
breadcrumbsEnabled: true,
|
|
145
145
|
projectRoot: "webpack:///./"
|
|
146
146
|
});
|
|
147
|
-
return (
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
ErrorComponent: ErrorComponent,
|
|
152
|
-
honeybadger: honeybadger
|
|
153
|
-
}, children)
|
|
154
|
-
);
|
|
147
|
+
return /*#__PURE__*/React__default["default"].createElement(react.HoneybadgerErrorBoundary, {
|
|
148
|
+
ErrorComponent: ErrorComponent,
|
|
149
|
+
honeybadger: honeybadger
|
|
150
|
+
}, children);
|
|
155
151
|
};
|
|
156
152
|
|
|
157
153
|
function _objectWithoutPropertiesLoose(source, excluded) {
|