@jetbrains/ring-ui-built 7.0.27 → 7.0.29

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.
Files changed (104) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +1 -1
  2. package/components/_helpers/card.js +5 -5
  3. package/components/_helpers/input.js +7 -7
  4. package/components/_helpers/select__filter.js +2 -2
  5. package/components/_helpers/sidebar.js +2 -2
  6. package/components/alert/alert.js +2 -2
  7. package/components/alert-service/alert-service.js +2 -2
  8. package/components/analytics/analytics.js +1 -1
  9. package/components/analytics/analytics__custom-plugin.js +8 -8
  10. package/components/auth/auth__core.js +54 -54
  11. package/components/auth/background-flow.js +4 -4
  12. package/components/auth/iframe-flow.js +7 -7
  13. package/components/auth/request-builder.js +3 -3
  14. package/components/auth/response-parser.js +4 -4
  15. package/components/auth/storage.js +12 -12
  16. package/components/auth/token-validator.js +7 -7
  17. package/components/auth/window-flow.js +7 -7
  18. package/components/auth-dialog/auth-dialog.js +1 -1
  19. package/components/avatar-stack/avatar-stack.js +8 -9
  20. package/components/button/button.js +2 -2
  21. package/components/caret/caret.js +7 -7
  22. package/components/checkbox/checkbox.js +1 -1
  23. package/components/clipboard/clipboard-fallback.js +3 -3
  24. package/components/code/code.js +1 -1
  25. package/components/collapse/collapse-content.js +2 -2
  26. package/components/collapse/collapse.js +1 -1
  27. package/components/data-list/data-list.js +3 -3
  28. package/components/data-list/item.js +1 -1
  29. package/components/date-picker/consts.js +1 -1
  30. package/components/date-picker/date-input.js +5 -5
  31. package/components/date-picker/date-picker.js +9 -9
  32. package/components/date-picker/date-popup.js +4 -4
  33. package/components/date-picker/years.js +1 -1
  34. package/components/dialog/dialog.js +1 -1
  35. package/components/dropdown/dropdown.js +4 -4
  36. package/components/dropdown-menu/dropdown-menu.js +6 -7
  37. package/components/editable-heading/editable-heading.js +4 -4
  38. package/components/global/focus-sensor-hoc.js +10 -10
  39. package/components/global/memoize.js +1 -1
  40. package/components/global/normalize-indent.js +1 -1
  41. package/components/global/react-dom-renderer.js +1 -1
  42. package/components/global/schedule-raf.js +1 -1
  43. package/components/header/header.js +5 -6
  44. package/components/header/profile.js +11 -12
  45. package/components/header/smart-profile.js +5 -6
  46. package/components/header/smart-services.js +4 -4
  47. package/components/http/http.js +9 -9
  48. package/components/http/http.mock.js +3 -3
  49. package/components/hub-source/hub-source.js +6 -6
  50. package/components/hub-source/hub-source__user.js +2 -2
  51. package/components/hub-source/hub-source__users-groups.js +4 -4
  52. package/components/i18n/i18n.js +1 -1
  53. package/components/island/adaptive-island-hoc.js +1 -1
  54. package/components/island/content.js +3 -3
  55. package/components/island/header.js +1 -1
  56. package/components/list/list.js +8 -12
  57. package/components/list/list__item.js +83 -59
  58. package/components/list/list__users-groups-source.js +8 -9
  59. package/components/loader/loader.js +2 -2
  60. package/components/loader/loader__core.js +27 -27
  61. package/components/login-dialog/login-dialog.js +1 -1
  62. package/components/message/message.js +8 -8
  63. package/components/old-browsers-message/white-list.js +1 -1
  64. package/components/pager/pager.js +13 -14
  65. package/components/permissions/permissions.js +7 -7
  66. package/components/permissions/permissions__cache.js +4 -4
  67. package/components/popup/popup.js +8 -8
  68. package/components/popup/position.js +1 -1
  69. package/components/popup-menu/popup-menu.js +7 -8
  70. package/components/progress-bar/progress-bar.js +2 -2
  71. package/components/query-assist/query-assist.js +55 -54
  72. package/components/query-assist/query-assist__suggestions.js +6 -7
  73. package/components/radio/radio__item.js +2 -2
  74. package/components/select/select.js +32 -33
  75. package/components/select/select__filter.js +5 -6
  76. package/components/select/select__popup.js +15 -16
  77. package/components/shortcuts/core.js +1 -1
  78. package/components/slider/slider.js +8 -8
  79. package/components/slider/slider.utils.js +1 -1
  80. package/components/storage/storage__local.js +1 -1
  81. package/components/style.css +1 -1
  82. package/components/tab-trap/tab-trap.js +4 -4
  83. package/components/table/header-cell.js +2 -2
  84. package/components/table/multitable.js +7 -7
  85. package/components/table/row-with-focus-sensor.js +4 -4
  86. package/components/table/row.js +1 -1
  87. package/components/table/selection-shortcuts-hoc.js +12 -12
  88. package/components/table/selection.js +7 -7
  89. package/components/table/table.js +1 -1
  90. package/components/tabs/collapsible-more.js +6 -7
  91. package/components/tabs/collapsible-tab.js +3 -3
  92. package/components/tabs/collapsible-tabs.js +10 -11
  93. package/components/tabs/dumb-tabs.js +4 -5
  94. package/components/tabs/smart-tabs.js +4 -5
  95. package/components/tabs/tabs.js +3 -4
  96. package/components/tag/tag.js +2 -2
  97. package/components/tags-input/tags-input.js +22 -23
  98. package/components/tooltip/tooltip.js +8 -8
  99. package/components/upload/upload.js +3 -3
  100. package/components/user-agreement/service.js +3 -3
  101. package/components/user-agreement/user-agreement.js +8 -8
  102. package/package.json +2 -2
  103. package/components/list/list__link.d.ts +0 -9
  104. package/components/list/list__link.js +0 -52
@@ -13,7 +13,7 @@ function focusSensorHOC(ComposedComponent) {
13
13
  _defineProperty(this, "state", {
14
14
  focused: this.props.focused
15
15
  });
16
- _defineProperty(this, "node", undefined);
16
+ _defineProperty(this, "node", void 0);
17
17
  _defineProperty(this, "_skipNextCapture", false);
18
18
  _defineProperty(this, "onRefUpdate", node => {
19
19
  if (node) {
@@ -30,13 +30,13 @@ function focusSensorHOC(ComposedComponent) {
30
30
  this._skipNextCapture = false;
31
31
  return;
32
32
  }
33
- const focused = target instanceof Node && ((_this$node = this.node) === null || _this$node === undefined ? undefined : _this$node.contains(target));
33
+ const focused = target instanceof Node && ((_this$node = this.node) === null || _this$node === void 0 ? void 0 : _this$node.contains(target));
34
34
  if (focused && !this.state.focused) {
35
35
  var _this$props$onFocus, _this$props;
36
36
  this.setState({
37
37
  focused: true
38
38
  });
39
- (_this$props$onFocus = (_this$props = this.props).onFocus) === null || _this$props$onFocus === undefined || _this$props$onFocus.call(_this$props);
39
+ (_this$props$onFocus = (_this$props = this.props).onFocus) === null || _this$props$onFocus === void 0 || _this$props$onFocus.call(_this$props);
40
40
  }
41
41
  });
42
42
  _defineProperty(this, "onBlurCapture", _ref2 => {
@@ -51,13 +51,13 @@ function focusSensorHOC(ComposedComponent) {
51
51
  } = this;
52
52
  if (focused) {
53
53
  setTimeout(() => {
54
- const blurred = target instanceof Node && (node === null || node === undefined ? undefined : node.contains(target)) && !node.contains(document.activeElement);
54
+ const blurred = target instanceof Node && (node === null || node === void 0 ? void 0 : node.contains(target)) && !node.contains(document.activeElement);
55
55
  if (blurred) {
56
56
  var _this$props$onBlur, _this$props2;
57
57
  this.setState({
58
58
  focused: false
59
59
  });
60
- (_this$props$onBlur = (_this$props2 = this.props).onBlur) === null || _this$props$onBlur === undefined || _this$props$onBlur.call(_this$props2);
60
+ (_this$props$onBlur = (_this$props2 = this.props).onBlur) === null || _this$props$onBlur === void 0 || _this$props$onBlur.call(_this$props2);
61
61
  }
62
62
  }, 1);
63
63
  }
@@ -65,13 +65,13 @@ function focusSensorHOC(ComposedComponent) {
65
65
  _defineProperty(this, "onFocusRestore", () => {
66
66
  var _this$node2;
67
67
  this._skipNextCapture = true;
68
- (_this$node2 = this.node) === null || _this$node2 === undefined || _this$node2.focus({
68
+ (_this$node2 = this.node) === null || _this$node2 === void 0 || _this$node2.focus({
69
69
  preventScroll: !this.props.scrollOnTableFocus
70
70
  });
71
71
  });
72
72
  _defineProperty(this, "onFocusReset", () => {
73
73
  var _this$node3;
74
- (_this$node3 = this.node) === null || _this$node3 === undefined || _this$node3.blur();
74
+ (_this$node3 = this.node) === null || _this$node3 === void 0 || _this$node3.blur();
75
75
  });
76
76
  }
77
77
  componentDidMount() {
@@ -82,14 +82,14 @@ function focusSensorHOC(ComposedComponent) {
82
82
  },
83
83
  node
84
84
  } = this;
85
- node === null || node === undefined || node.setAttribute('tabindex', '0');
85
+ node === null || node === void 0 || node.setAttribute('tabindex', '0');
86
86
  if (node != null) {
87
87
  node.style.outline = 'none';
88
88
  }
89
89
  document.addEventListener('focus', this.onFocusCapture, true);
90
90
  document.addEventListener('blur', this.onBlurCapture, true);
91
91
  if (autofocus) {
92
- node === null || node === undefined || node.focus({
92
+ node === null || node === void 0 || node.focus({
93
93
  preventScroll: !scrollOnTableFocus
94
94
  });
95
95
  }
@@ -99,7 +99,7 @@ function focusSensorHOC(ComposedComponent) {
99
99
  const {
100
100
  focused
101
101
  } = this.props;
102
- const isInFocus = (_this$node4 = this.node) === null || _this$node4 === undefined ? undefined : _this$node4.contains(document.activeElement);
102
+ const isInFocus = (_this$node4 = this.node) === null || _this$node4 === void 0 ? void 0 : _this$node4.contains(document.activeElement);
103
103
  if (focused && (!isInFocus || !prevProps.focused)) {
104
104
  this.onFocusRestore();
105
105
  } else if (!focused && prevProps.focused) {
@@ -5,7 +5,7 @@ function memoize(fn) {
5
5
  const primitiveCache = new Map();
6
6
  const objectCache = new WeakMap();
7
7
  return function memoized(arg) {
8
- const key = arg !== null && arg !== undefined ? arg : '__singleValue__';
8
+ const key = arg !== null && arg !== void 0 ? arg : '__singleValue__';
9
9
  const cache = key instanceof Object ? objectCache : primitiveCache;
10
10
  const cached = cache.get(key);
11
11
  if (cached != null) {
@@ -25,7 +25,7 @@ function normalizeIndent(string) {
25
25
  }
26
26
  const indents = lines.filter(line => nonemptyRE.test(line)).map(line => {
27
27
  var _line$match$0$length, _line$match;
28
- return (_line$match$0$length = (_line$match = line.match(indentRE)) === null || _line$match === undefined ? undefined : _line$match[0].length) !== null && _line$match$0$length !== undefined ? _line$match$0$length : 0;
28
+ return (_line$match$0$length = (_line$match = line.match(indentRE)) === null || _line$match === void 0 ? void 0 : _line$match[0].length) !== null && _line$match$0$length !== void 0 ? _line$match$0$length : 0;
29
29
  });
30
30
  const minIndent = Math.min(...indents);
31
31
  return lines.map(line => line.slice(minIndent)).join('\n');
@@ -6,7 +6,7 @@ import { Component } from 'react';
6
6
  class Renderer extends Component {
7
7
  constructor() {
8
8
  super(...arguments);
9
- _defineProperty(this, "node", undefined);
9
+ _defineProperty(this, "node", void 0);
10
10
  _defineProperty(this, "nodeRef", node => {
11
11
  this.node = node;
12
12
  });
@@ -5,7 +5,7 @@ function scheduleRAF(trailingCall) {
5
5
  function doSchedule() {
6
6
  RAF = window.requestAnimationFrame(() => {
7
7
  var _scheduledCb;
8
- (_scheduledCb = scheduledCb) === null || _scheduledCb === undefined || _scheduledCb();
8
+ (_scheduledCb = scheduledCb) === null || _scheduledCb === void 0 || _scheduledCb();
9
9
  if (trailingCallScheduled) {
10
10
  trailingCallScheduled = false;
11
11
  doSchedule();
@@ -62,18 +62,17 @@ import 'react-virtualized/dist/es/WindowScroller';
62
62
  import 'react-virtualized/dist/es/CellMeasurer';
63
63
  import 'memoize-one';
64
64
  import '../global/create-stateful-context.js';
65
- import '../list/list__link.js';
66
- import '../link/link.js';
67
- import '../_helpers/link.js';
68
- import '../list/list__classes.js';
69
- import '../list/consts.js';
70
- import '../_helpers/list.js';
71
65
  import '../list/list__item.js';
72
66
  import '../checkbox/checkbox.js';
73
67
  import '@jetbrains/icons/checkmark-12px';
74
68
  import '@jetbrains/icons/remove-12px';
75
69
  import '../global/composeRefs.js';
76
70
  import '../control-help/control-help.js';
71
+ import '../link/link.js';
72
+ import '../_helpers/link.js';
73
+ import '../_helpers/list.js';
74
+ import '../list/consts.js';
75
+ import '../list/list__classes.js';
77
76
  import '../list/list__custom.js';
78
77
  import '../global/get-event-key.js';
79
78
  import '../list/list__title.js';
@@ -50,18 +50,17 @@ import 'combokeys';
50
50
  import '../global/sniffer.js';
51
51
  import 'sniffr';
52
52
  import '../global/create-stateful-context.js';
53
- import '../list/list__link.js';
54
- import '../link/link.js';
55
- import '../_helpers/link.js';
56
- import '../list/list__classes.js';
57
- import '../list/consts.js';
58
- import '../_helpers/list.js';
59
53
  import '../list/list__item.js';
60
54
  import '../checkbox/checkbox.js';
61
55
  import '@jetbrains/icons/checkmark-12px';
62
56
  import '@jetbrains/icons/remove-12px';
63
57
  import '../global/composeRefs.js';
64
58
  import '../control-help/control-help.js';
59
+ import '../link/link.js';
60
+ import '../_helpers/link.js';
61
+ import '../_helpers/list.js';
62
+ import '../list/consts.js';
63
+ import '../list/list__classes.js';
65
64
  import '../list/list__custom.js';
66
65
  import '../global/get-event-key.js';
67
66
  import '../list/list__title.js';
@@ -148,29 +147,29 @@ class Profile extends PureComponent {
148
147
  });
149
148
  const items = [showApplyChangedUser && {
150
149
  rgItemType,
151
- label: (_translations$applyCh = translations === null || translations === undefined ? undefined : translations.applyChangedUser) !== null && _translations$applyCh !== undefined ? _translations$applyCh : translate('applyChangedUser'),
150
+ label: (_translations$applyCh = translations === null || translations === void 0 ? void 0 : translations.applyChangedUser) !== null && _translations$applyCh !== void 0 ? _translations$applyCh : translate('applyChangedUser'),
152
151
  className: styles.profileMenuItem,
153
152
  onClick: onRevertPostponement
154
153
  }, showLogIn && {
155
154
  rgItemType,
156
- label: (_translations$login = translations === null || translations === undefined ? undefined : translations.login) !== null && _translations$login !== undefined ? _translations$login : translate('login'),
155
+ label: (_translations$login = translations === null || translations === void 0 ? void 0 : translations.login) !== null && _translations$login !== void 0 ? _translations$login : translate('login'),
157
156
  className: styles.profileMenuItem,
158
157
  onClick: onRevertPostponement
159
158
  }, {
160
159
  rgItemType: PopupMenu.ListProps.Type.LINK,
161
- label: (_translations$profile = translations === null || translations === undefined ? undefined : translations.profile) !== null && _translations$profile !== undefined ? _translations$profile : translate('profile'),
160
+ label: (_translations$profile = translations === null || translations === void 0 ? void 0 : translations.profile) !== null && _translations$profile !== void 0 ? _translations$profile : translate('profile'),
162
161
  target: '_self',
163
162
  // Full page reload in Angular
164
163
  href: profileUrl,
165
164
  LinkComponent
166
165
  }, showSwitchUser && {
167
166
  rgItemType,
168
- label: (_translations$switchU = translations === null || translations === undefined ? undefined : translations.switchUser) !== null && _translations$switchU !== undefined ? _translations$switchU : translate('switchUser'),
167
+ label: (_translations$switchU = translations === null || translations === void 0 ? void 0 : translations.switchUser) !== null && _translations$switchU !== void 0 ? _translations$switchU : translate('switchUser'),
169
168
  className: styles.profileMenuItem,
170
169
  onClick: onSwitchUser
171
170
  }, showLogOut && {
172
171
  rgItemType,
173
- label: (_translations$logout = translations === null || translations === undefined ? undefined : translations.logout) !== null && _translations$logout !== undefined ? _translations$logout : translate('logout'),
172
+ label: (_translations$logout = translations === null || translations === void 0 ? void 0 : translations.logout) !== null && _translations$logout !== void 0 ? _translations$logout : translate('logout'),
174
173
  onClick: onLogout
175
174
  }].filter(isTruthy);
176
175
  return jsx(DropdownMenu, _objectSpread2(_objectSpread2({}, props), {}, {
@@ -216,7 +215,7 @@ _defineProperty(Profile, "defaultProps", {
216
215
  disabled: loading,
217
216
  loader: loading,
218
217
  onClick: onLogin,
219
- children: (_translations$login2 = translations === null || translations === undefined ? undefined : translations.login) !== null && _translations$login2 !== undefined ? _translations$login2 : translate('login')
218
+ children: (_translations$login2 = translations === null || translations === void 0 ? void 0 : translations.login) !== null && _translations$login2 !== void 0 ? _translations$login2 : translate('login')
220
219
  })
221
220
  });
222
221
  }
@@ -74,16 +74,15 @@ import 'react-virtualized/dist/es/WindowScroller';
74
74
  import 'react-virtualized/dist/es/CellMeasurer';
75
75
  import 'memoize-one';
76
76
  import '../global/create-stateful-context.js';
77
- import '../list/list__link.js';
78
- import '../list/list__classes.js';
79
- import '../list/consts.js';
80
- import '../_helpers/list.js';
81
77
  import '../list/list__item.js';
82
78
  import '../checkbox/checkbox.js';
83
79
  import '@jetbrains/icons/checkmark-12px';
84
80
  import '@jetbrains/icons/remove-12px';
85
81
  import '../global/composeRefs.js';
86
82
  import '../control-help/control-help.js';
83
+ import '../_helpers/list.js';
84
+ import '../list/consts.js';
85
+ import '../list/list__classes.js';
87
86
  import '../list/list__custom.js';
88
87
  import '../global/get-event-key.js';
89
88
  import '../list/list__title.js';
@@ -190,8 +189,8 @@ class SmartProfile extends PureComponent {
190
189
  translations
191
190
  } = this.props;
192
191
  const userMeta = auth.http.getMetaForResponse(user);
193
- if (userMeta !== null && userMeta !== undefined && (_userMeta$headers = userMeta.headers) !== null && _userMeta$headers !== undefined && _userMeta$headers.has(CERTIFICATE_MISMATCH_HEADER)) {
194
- const message = (translations === null || translations === undefined ? undefined : translations.certificateMismatch) || "You are authenticated as ".concat(user.login || user.name, ". To authenticate with the client certificate for your account, log out, then click the \"Log in with certificate\" option on the login page.");
192
+ if (userMeta !== null && userMeta !== void 0 && (_userMeta$headers = userMeta.headers) !== null && _userMeta$headers !== void 0 && _userMeta$headers.has(CERTIFICATE_MISMATCH_HEADER)) {
193
+ const message = (translations === null || translations === void 0 ? void 0 : translations.certificateMismatch) || "You are authenticated as ".concat(user.login || user.name, ". To authenticate with the client certificate for your account, log out, then click the \"Log in with certificate\" option on the login page.");
195
194
  alertService.warning(message, 0);
196
195
  }
197
196
  }
@@ -65,7 +65,7 @@ class SmartServices extends Component {
65
65
  loading: false,
66
66
  services: null
67
67
  });
68
- _defineProperty(this, "http", undefined);
68
+ _defineProperty(this, "http", void 0);
69
69
  _defineProperty(this, "stopLoading", () => {
70
70
  this.setState({
71
71
  loading: false
@@ -76,7 +76,7 @@ class SmartServices extends Component {
76
76
  this.setState({
77
77
  loading: true
78
78
  });
79
- (_this$getServices = this.getServices(SmartServices.allFields)) === null || _this$getServices === undefined || _this$getServices.then(services => {
79
+ (_this$getServices = this.getServices(SmartServices.allFields)) === null || _this$getServices === void 0 || _this$getServices.then(services => {
80
80
  this.setState({
81
81
  services
82
82
  });
@@ -90,7 +90,7 @@ class SmartServices extends Component {
90
90
  auth
91
91
  } = this.props;
92
92
  this.http = new HTTP(auth, auth.getAPIPath());
93
- (_this$getServices2 = this.getServices(SmartServices.countFields)) === null || _this$getServices2 === undefined || _this$getServices2.then(services => {
93
+ (_this$getServices2 = this.getServices(SmartServices.countFields)) === null || _this$getServices2 === void 0 || _this$getServices2.then(services => {
94
94
  if (!services.length) {
95
95
  this.setState({
96
96
  visible: false
@@ -100,7 +100,7 @@ class SmartServices extends Component {
100
100
  }
101
101
  getServices(fields) {
102
102
  var _this$http;
103
- return (_this$http = this.http) === null || _this$http === undefined ? undefined : _this$http.get("services/header?fields=".concat(fields));
103
+ return (_this$http = this.http) === null || _this$http === void 0 ? void 0 : _this$http.get("services/header?fields=".concat(fields));
104
104
  }
105
105
  render() {
106
106
  const {
@@ -26,8 +26,8 @@ class HTTPError extends ExtendableError {
26
26
  constructor(response) {
27
27
  let data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28
28
  super("".concat(response.status, " ").concat(response.statusText || ''));
29
- _defineProperty(this, "data", undefined);
30
- _defineProperty(this, "status", undefined);
29
+ _defineProperty(this, "data", void 0);
30
+ _defineProperty(this, "status", void 0);
31
31
  this.data = data;
32
32
  this.status = response.status;
33
33
  }
@@ -44,10 +44,10 @@ class HTTP {
44
44
  let _fetchConfig = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
45
45
  _defineProperty(this, "baseUrl", null);
46
46
  _defineProperty(this, "_requestsMeta", new WeakMap());
47
- _defineProperty(this, "fetchConfig", undefined);
48
- _defineProperty(this, "requestToken", undefined);
49
- _defineProperty(this, "shouldRefreshToken", undefined);
50
- _defineProperty(this, "forceTokenUpdate", undefined);
47
+ _defineProperty(this, "fetchConfig", void 0);
48
+ _defineProperty(this, "requestToken", void 0);
49
+ _defineProperty(this, "shouldRefreshToken", void 0);
50
+ _defineProperty(this, "forceTokenUpdate", void 0);
51
51
  _defineProperty(this, "setAuth", auth => {
52
52
  this.requestToken = () => auth.requestToken();
53
53
  this.shouldRefreshToken = auth.constructor.shouldRefreshToken;
@@ -71,7 +71,7 @@ class HTTP {
71
71
  });
72
72
  _defineProperty(this, "request", async (url, params) => {
73
73
  var _this$requestToken;
74
- let token = await ((_this$requestToken = this.requestToken) === null || _this$requestToken === undefined ? undefined : _this$requestToken.call(this));
74
+ let token = await ((_this$requestToken = this.requestToken) === null || _this$requestToken === void 0 ? void 0 : _this$requestToken.call(this));
75
75
  let response = await this._performRequest(url, token, params);
76
76
  try {
77
77
  // Wait for result to catch an HTTP error
@@ -81,10 +81,10 @@ class HTTP {
81
81
  if (!(error instanceof HTTPError)) {
82
82
  throw error;
83
83
  }
84
- const shouldRefreshToken = typeof error.data.error === 'string' ? (_this$shouldRefreshTo = this.shouldRefreshToken) === null || _this$shouldRefreshTo === undefined ? undefined : _this$shouldRefreshTo.call(this, error.data.error) : false;
84
+ const shouldRefreshToken = typeof error.data.error === 'string' ? (_this$shouldRefreshTo = this.shouldRefreshToken) === null || _this$shouldRefreshTo === void 0 ? void 0 : _this$shouldRefreshTo.call(this, error.data.error) : false;
85
85
  if (shouldRefreshToken) {
86
86
  var _this$forceTokenUpdat;
87
- token = await ((_this$forceTokenUpdat = this.forceTokenUpdate) === null || _this$forceTokenUpdat === undefined ? undefined : _this$forceTokenUpdat.call(this));
87
+ token = await ((_this$forceTokenUpdat = this.forceTokenUpdate) === null || _this$forceTokenUpdat === void 0 ? void 0 : _this$forceTokenUpdat.call(this));
88
88
  response = await this._performRequest(url, token, params);
89
89
  return this._processResponse(response);
90
90
  }
@@ -19,9 +19,9 @@ const authMock = {
19
19
  class HTTPMock extends HTTP {
20
20
  constructor() {
21
21
  super(authMock);
22
- _defineProperty(this, "defaultResponse", undefined);
23
- _defineProperty(this, "requests", undefined);
24
- _defineProperty(this, "responsesByUrlMap", undefined);
22
+ _defineProperty(this, "defaultResponse", void 0);
23
+ _defineProperty(this, "requests", void 0);
24
+ _defineProperty(this, "responsesByUrlMap", void 0);
25
25
  this.defaultResponse = null;
26
26
  this.requests = [];
27
27
  this.responsesByUrlMap = new Map();
@@ -15,12 +15,12 @@ const defaultOptions = {
15
15
  */
16
16
  class HubSource {
17
17
  constructor(auth, relativeUrl, options) {
18
- _defineProperty(this, "http", undefined);
19
- _defineProperty(this, "relativeUrl", undefined);
20
- _defineProperty(this, "options", undefined);
21
- _defineProperty(this, "storedData", undefined);
22
- _defineProperty(this, "isClientSideSearch", undefined);
23
- _defineProperty(this, "filterFn", undefined);
18
+ _defineProperty(this, "http", void 0);
19
+ _defineProperty(this, "relativeUrl", void 0);
20
+ _defineProperty(this, "options", void 0);
21
+ _defineProperty(this, "storedData", void 0);
22
+ _defineProperty(this, "isClientSideSearch", void 0);
23
+ _defineProperty(this, "filterFn", void 0);
24
24
  this.http = auth.http;
25
25
  this.relativeUrl = relativeUrl;
26
26
  this.options = Object.assign({}, defaultOptions, options);
@@ -18,8 +18,8 @@ function convertUserForCard(hubUser) {
18
18
  login: hubUser.login,
19
19
  banned: hubUser.banned,
20
20
  banReason: hubUser.banReason,
21
- email: (_hubUser$profile = hubUser.profile) === null || _hubUser$profile === undefined || (_hubUser$profile = _hubUser$profile.email) === null || _hubUser$profile === undefined ? undefined : _hubUser$profile.email,
22
- avatarUrl: (_hubUser$profile2 = hubUser.profile) === null || _hubUser$profile2 === undefined || (_hubUser$profile2 = _hubUser$profile2.avatar) === null || _hubUser$profile2 === undefined ? undefined : _hubUser$profile2.url,
21
+ email: (_hubUser$profile = hubUser.profile) === null || _hubUser$profile === void 0 || (_hubUser$profile = _hubUser$profile.email) === null || _hubUser$profile === void 0 ? void 0 : _hubUser$profile.email,
22
+ avatarUrl: (_hubUser$profile2 = hubUser.profile) === null || _hubUser$profile2 === void 0 || (_hubUser$profile2 = _hubUser$profile2.avatar) === null || _hubUser$profile2 === void 0 ? void 0 : _hubUser$profile2.url,
23
23
  href: "".concat(serverUri, "users/").concat(hubUser.id)
24
24
  };
25
25
  }
@@ -10,10 +10,10 @@ const defaultOptions = {
10
10
  };
11
11
  class HubSourceUsersGroups {
12
12
  constructor(auth, options) {
13
- _defineProperty(this, "auth", undefined);
14
- _defineProperty(this, "options", undefined);
15
- _defineProperty(this, "usersSource", undefined);
16
- _defineProperty(this, "groupsSource", undefined);
13
+ _defineProperty(this, "auth", void 0);
14
+ _defineProperty(this, "options", void 0);
15
+ _defineProperty(this, "usersSource", void 0);
16
+ _defineProperty(this, "groupsSource", void 0);
17
17
  this.auth = auth;
18
18
  this.options = Object.assign({}, defaultOptions, options);
19
19
  this.usersSource = new HubSource(auth, 'users', {
@@ -130,7 +130,7 @@ function translate(key) {
130
130
  if (!(key in messages)) {
131
131
  warnMissedKeyOnce(key);
132
132
  }
133
- return (_messages$key = messages[key]) !== null && _messages$key !== undefined ? _messages$key : defaultMessages[key];
133
+ return (_messages$key = messages[key]) !== null && _messages$key !== void 0 ? _messages$key : defaultMessages[key];
134
134
  }
135
135
 
136
136
  export { getTranslations, getTranslationsWithFallback, setTranslations, translate };
@@ -22,7 +22,7 @@ function adaptiveIslandHOC(ComposedComponent) {
22
22
  scrollHeight,
23
23
  clientHeight
24
24
  } = _ref;
25
- if (scrollHeight - clientHeight >= interpolateLinear(TITLE_RESIZE_THRESHOLD, TITLE_RESIZE_END, (_this$state$phase = this.state.phase) !== null && _this$state$phase !== undefined ? _this$state$phase : 0)) {
25
+ if (scrollHeight - clientHeight >= interpolateLinear(TITLE_RESIZE_THRESHOLD, TITLE_RESIZE_END, (_this$state$phase = this.state.phase) !== null && _this$state$phase !== void 0 ? _this$state$phase : 0)) {
26
26
  const phase = Math.min(1, scrollTop / TITLE_RESIZE_END);
27
27
  this.setState({
28
28
  phase
@@ -23,7 +23,7 @@ class Content extends Component {
23
23
  _defineProperty(this, "resizeDetector", createResizeDetector({
24
24
  strategy: 'scroll'
25
25
  }));
26
- _defineProperty(this, "wrapperNode", undefined);
26
+ _defineProperty(this, "wrapperNode", void 0);
27
27
  _defineProperty(this, "setWrapper", node => {
28
28
  if (!node) {
29
29
  return;
@@ -48,14 +48,14 @@ class Content extends Component {
48
48
  const scrolledToBottom = offsetHeight + scrollTop >= scrollHeight - END_DISTANCE;
49
49
  if (scrolledToBottom) {
50
50
  var _this$props$onScrollT, _this$props;
51
- (_this$props$onScrollT = (_this$props = this.props).onScrollToBottom) === null || _this$props$onScrollT === undefined || _this$props$onScrollT.call(_this$props);
51
+ (_this$props$onScrollT = (_this$props = this.props).onScrollToBottom) === null || _this$props$onScrollT === void 0 || _this$props$onScrollT.call(_this$props);
52
52
  }
53
53
  this.setState({
54
54
  scrolledToTop,
55
55
  scrolledToBottom
56
56
  });
57
57
  }));
58
- _defineProperty(this, "scrollableNode", undefined);
58
+ _defineProperty(this, "scrollableNode", void 0);
59
59
  _defineProperty(this, "setScrollableNodeAndCalculatePosition", node => {
60
60
  if (!node) {
61
61
  return;
@@ -31,7 +31,7 @@ const BORDER_APPEAR_PHASE = 0.5;
31
31
  class Header extends Component {
32
32
  style(name) {
33
33
  var _this$props$phase;
34
- return interpolateLinear(Start[name], End[name], (_this$props$phase = this.props.phase) !== null && _this$props$phase !== undefined ? _this$props$phase : 0);
34
+ return interpolateLinear(Start[name], End[name], (_this$props$phase = this.props.phase) !== null && _this$props$phase !== void 0 ? _this$props$phase : 0);
35
35
  }
36
36
  render() {
37
37
  const _this$props = this.props,
@@ -19,7 +19,6 @@ import memoize from '../global/memoize.js';
19
19
  import { preventDefault } from '../global/dom.js';
20
20
  import Shortcuts from '../shortcuts/shortcuts.js';
21
21
  import createStatefulContext from '../global/create-stateful-context.js';
22
- import ListLink from './list__link.js';
23
22
  import ListItem from './list__item.js';
24
23
  import ListCustom from './list__custom.js';
25
24
  import ListTitle from './list__title.js';
@@ -36,10 +35,6 @@ import 'core-js/modules/es.string.match.js';
36
35
  import 'combokeys';
37
36
  import '../global/sniffer.js';
38
37
  import 'sniffr';
39
- import '../link/link.js';
40
- import '../link/clickableLink.js';
41
- import '../_helpers/link.js';
42
- import './list__classes.js';
43
38
  import '../avatar/avatar.js';
44
39
  import '../global/url.js';
45
40
  import 'core-js/modules/es.string.replace.js';
@@ -55,6 +50,10 @@ import '../_helpers/icon__svg.js';
55
50
  import 'core-js/modules/es.string.starts-with.js';
56
51
  import '../global/composeRefs.js';
57
52
  import '../control-help/control-help.js';
53
+ import '../link/link.js';
54
+ import '../link/clickableLink.js';
55
+ import '../_helpers/link.js';
56
+ import './list__classes.js';
58
57
  import '../global/get-event-key.js';
59
58
 
60
59
  const _excluded = ["selectedLabel", "originalModel"];
@@ -104,9 +103,9 @@ class List extends Component {
104
103
  scrolledToBottom: false
105
104
  });
106
105
  _defineProperty(this, "scheduleScrollListener", scheduleRAF());
107
- _defineProperty(this, "virtualizedList", undefined);
108
- _defineProperty(this, "unmounted", undefined);
109
- _defineProperty(this, "container", undefined);
106
+ _defineProperty(this, "virtualizedList", void 0);
107
+ _defineProperty(this, "unmounted", void 0);
108
+ _defineProperty(this, "container", void 0);
110
109
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
111
110
  _defineProperty(this, "_bufferSize", 10);
112
111
  // keep X items above and below of the visible area
@@ -327,9 +326,6 @@ class List extends Component {
327
326
  itemProps.isFirst = isFirst;
328
327
  break;
329
328
  case Type.LINK:
330
- ItemComponent = ListLink;
331
- this.addItemDataTestToProp(itemProps);
332
- break;
333
329
  case Type.ITEM:
334
330
  ItemComponent = ListItem;
335
331
  this.addItemDataTestToProp(itemProps);
@@ -390,7 +386,7 @@ class List extends Component {
390
386
  _defineProperty(this, "containerRef", el => {
391
387
  this.container = el;
392
388
  });
393
- _defineProperty(this, "_inner", undefined);
389
+ _defineProperty(this, "_inner", void 0);
394
390
  _defineProperty(this, "id", getUID('list-'));
395
391
  _defineProperty(this, "shortcutsScope", this.id);
396
392
  _defineProperty(this, "shortcutsMap", {