@jetbrains/ring-ui 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.
@@ -29,7 +29,8 @@ export default class SmartProfile extends PureComponent {
29
29
  await this.props.auth.login();
30
30
  }
31
31
  catch (err) {
32
- // do nothing
32
+ // eslint-disable-next-line no-console
33
+ console.debug('Profile login errored', err);
33
34
  }
34
35
  finally {
35
36
  this.setState({ loading: false });
@@ -18,6 +18,9 @@ export default function showAuthDialog(props = { onCancel: noop }) {
18
18
  show: true
19
19
  });
20
20
  return () => {
21
- reactRoot.unmount();
21
+ renderLoginDialog({
22
+ ...props,
23
+ show: false
24
+ });
22
25
  };
23
26
  }
@@ -156,9 +156,9 @@ class Shortcuts {
156
156
  !(element instanceof HTMLElement) ||
157
157
  key == null ||
158
158
  element.matches(this.ALLOW_SHORTCUTS_SELECTOR) ||
159
- (element.dataset.enabledShortcuts != null
160
- ? element.dataset.enabledShortcuts.split(',').includes(key)
161
- : element.closest(this.ALLOW_SHORTCUTS_SELECTOR) != null)) {
159
+ element.closest(this.ALLOW_SHORTCUTS_SELECTOR) != null ||
160
+ (element.dataset.enabledShortcuts != null &&
161
+ element.dataset.enabledShortcuts.split(',').includes(key))) {
162
162
  return false;
163
163
  }
164
164
  const elementContentEditableAttribute = element.contentEditable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "6.0.53",
3
+ "version": "6.0.54",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",