@jetbrains/ring-ui-built 6.0.31 → 6.0.33
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.
@@ -1,8 +1,6 @@
|
|
1
1
|
import ExtendableError from 'es6-error';
|
2
2
|
export declare const defaultFetchConfig: RequestInit;
|
3
|
-
export
|
4
|
-
error?: string;
|
5
|
-
}
|
3
|
+
export type HTTPErrorData = Record<string, unknown>;
|
6
4
|
export declare class HTTPError extends ExtendableError {
|
7
5
|
data: HTTPErrorData;
|
8
6
|
status: number | undefined;
|
package/components/http/http.js
CHANGED
@@ -136,7 +136,7 @@ var HTTP = /*#__PURE__*/function () {
|
|
136
136
|
}
|
137
137
|
throw _context2.t0;
|
138
138
|
case 16:
|
139
|
-
shouldRefreshToken = _context2.t0.data.error
|
139
|
+
shouldRefreshToken = typeof _context2.t0.data.error === 'string' ? (_this2$shouldRefreshT = _this2.shouldRefreshToken) === null || _this2$shouldRefreshT === void 0 ? void 0 : _this2$shouldRefreshT.call(_this2, _context2.t0.data.error) : false;
|
140
140
|
if (!shouldRefreshToken) {
|
141
141
|
_context2.next = 25;
|
142
142
|
break;
|
@@ -132,6 +132,7 @@ _defineProperty(PopupMenu, "defaultProps", _objectSpread2(_objectSpread2(_object
|
|
132
132
|
closeOnSelect: false
|
133
133
|
}));
|
134
134
|
PopupMenu.propTypes = _objectSpread2(_objectSpread2(_objectSpread2({}, popupPropTypes), List.propTypes), {}, {
|
135
|
+
maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
135
136
|
closeOnSelect: PropTypes.bool
|
136
137
|
});
|
137
138
|
var ListProps = List.ListProps;
|