@jetbrains/ring-ui-built 6.0.53 → 6.0.54
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.
@@ -159,22 +159,24 @@ var SmartProfile = /*#__PURE__*/function (_PureComponent) {
|
|
159
159
|
_context.next = 4;
|
160
160
|
return _this.props.auth.login();
|
161
161
|
case 4:
|
162
|
-
_context.next =
|
162
|
+
_context.next = 9;
|
163
163
|
break;
|
164
164
|
case 6:
|
165
165
|
_context.prev = 6;
|
166
166
|
_context.t0 = _context["catch"](1);
|
167
|
-
|
168
|
-
|
167
|
+
// eslint-disable-next-line no-console
|
168
|
+
console.debug('Profile login errored', _context.t0);
|
169
|
+
case 9:
|
170
|
+
_context.prev = 9;
|
169
171
|
_this.setState({
|
170
172
|
loading: false
|
171
173
|
});
|
172
|
-
return _context.finish(
|
173
|
-
case
|
174
|
+
return _context.finish(9);
|
175
|
+
case 12:
|
174
176
|
case "end":
|
175
177
|
return _context.stop();
|
176
178
|
}
|
177
|
-
}, _callee, null, [[1, 6,
|
179
|
+
}, _callee, null, [[1, 6, 9, 12]]);
|
178
180
|
})));
|
179
181
|
_defineProperty(_this, "logout", function () {
|
180
182
|
return _this.props.auth.logout();
|
@@ -48,7 +48,7 @@ var Shortcuts = /*#__PURE__*/function () {
|
|
48
48
|
});
|
49
49
|
_defineProperty(this, "_defaultFilter", function (e, element, key) {
|
50
50
|
// if the element or its parents have the class "ring-js-shortcuts" then no need to stop
|
51
|
-
if (element === document || !(element instanceof HTMLElement) || key == null || element.matches(_this.ALLOW_SHORTCUTS_SELECTOR) || (element.dataset.enabledShortcuts != null
|
51
|
+
if (element === document || !(element instanceof HTMLElement) || key == null || element.matches(_this.ALLOW_SHORTCUTS_SELECTOR) || element.closest(_this.ALLOW_SHORTCUTS_SELECTOR) != null || element.dataset.enabledShortcuts != null && element.dataset.enabledShortcuts.split(',').includes(key)) {
|
52
52
|
return false;
|
53
53
|
}
|
54
54
|
var elementContentEditableAttribute = element.contentEditable;
|