@jetbrains/ring-ui 5.1.19 → 5.1.21

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 (70) hide show
  1. package/README.md +1 -1
  2. package/components/auth/request-builder.d.ts +1 -0
  3. package/components/code/code.d.ts +1 -0
  4. package/components/editable-heading/editable-heading.css +5 -1
  5. package/components/editable-heading/editable-heading.d.ts +1 -1
  6. package/components/editable-heading/editable-heading.js +5 -3
  7. package/components/grid/row.js +3 -3
  8. package/components/header/profile.js +1 -1
  9. package/components/island/header.js +1 -1
  10. package/components/list/list.js +3 -3
  11. package/components/loader/loader__core.js +6 -6
  12. package/components/popup/popup.js +3 -3
  13. package/components/progress-bar/progress-bar.css +6 -0
  14. package/components/progress-bar/progress-bar.d.ts +6 -0
  15. package/components/progress-bar/progress-bar.js +9 -3
  16. package/components/query-assist/query-assist.js +1 -1
  17. package/components/select/select-popup.css +4 -0
  18. package/components/select/select.js +21 -21
  19. package/dist/_helpers/select__filter.js +1 -1
  20. package/dist/analytics/analytics__custom-plugin.js +1 -2
  21. package/dist/analytics/analytics__ga-plugin.js +1 -1
  22. package/dist/auth/auth__core.js +35 -35
  23. package/dist/auth/background-flow.js +2 -2
  24. package/dist/auth/iframe-flow.js +3 -3
  25. package/dist/auth/request-builder.d.ts +1 -0
  26. package/dist/auth/request-builder.js +2 -1
  27. package/dist/auth/storage.js +8 -4
  28. package/dist/auth/token-validator.js +4 -3
  29. package/dist/auth/window-flow.js +3 -3
  30. package/dist/auth-ng/auth-ng.js +0 -1
  31. package/dist/caret/caret.js +4 -4
  32. package/dist/clipboard/clipboard-fallback.js +3 -3
  33. package/dist/code/code.d.ts +1 -0
  34. package/dist/data-list/data-list.js +2 -2
  35. package/dist/date-picker/date-picker.js +1 -1
  36. package/dist/date-picker/date-popup.js +2 -2
  37. package/dist/dropdown/dropdown.js +2 -2
  38. package/dist/editable-heading/editable-heading.d.ts +1 -1
  39. package/dist/editable-heading/editable-heading.js +16 -9
  40. package/dist/global/focus-sensor-hoc.js +6 -6
  41. package/dist/global/schedule-raf.js +1 -1
  42. package/dist/grid/row.js +7 -1
  43. package/dist/header/profile.js +1 -0
  44. package/dist/header/smart-services.js +2 -2
  45. package/dist/input/input.js +2 -2
  46. package/dist/island/content.js +1 -1
  47. package/dist/island/header.js +1 -0
  48. package/dist/list/list.js +3 -0
  49. package/dist/loader/loader.js +1 -1
  50. package/dist/loader/loader__core.js +19 -7
  51. package/dist/loader-screen-ng/loader-screen-ng.js +0 -2
  52. package/dist/message-bundle-ng/message-bundle-ng.js +0 -1
  53. package/dist/pager/pager.js +4 -4
  54. package/dist/popup/popup.js +3 -0
  55. package/dist/progress-bar/progress-bar.d.ts +6 -0
  56. package/dist/progress-bar/progress-bar.js +11 -4
  57. package/dist/query-assist/query-assist.js +13 -12
  58. package/dist/select/select.js +22 -2
  59. package/dist/select-ng/select-ng.js +0 -2
  60. package/dist/select-ng/select-ng__lazy.js +1 -1
  61. package/dist/storage/storage__fallback.js +4 -2
  62. package/dist/style.css +1 -1
  63. package/dist/tab-trap/tab-trap.js +1 -1
  64. package/dist/table/multitable.js +7 -7
  65. package/dist/table/row-with-focus-sensor.js +4 -4
  66. package/dist/table/selection-shortcuts-hoc.js +11 -11
  67. package/dist/tag/tag.js +1 -1
  68. package/dist/tags-input/tags-input.js +7 -7
  69. package/dist/tooltip/tooltip.js +2 -2
  70. package/package.json +32 -32
@@ -318,7 +318,7 @@ var Auth = /*#__PURE__*/function () {
318
318
  */
319
319
  }, {
320
320
  key: "init",
321
- value: function () {
321
+ value: (function () {
322
322
  var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
323
323
  var _this$_storage3,
324
324
  _this2 = this;
@@ -326,7 +326,7 @@ var Auth = /*#__PURE__*/function () {
326
326
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
327
327
  while (1) switch (_context3.prev = _context3.next) {
328
328
  case 0:
329
- (_this$_storage3 = this._storage) === null || _this$_storage3 === void 0 ? void 0 : _this$_storage3.onTokenChange( /*#__PURE__*/function () {
329
+ (_this$_storage3 = this._storage) === null || _this$_storage3 === void 0 || _this$_storage3.onTokenChange( /*#__PURE__*/function () {
330
330
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(token) {
331
331
  var isGuest;
332
332
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -433,7 +433,7 @@ var Auth = /*#__PURE__*/function () {
433
433
  case 23:
434
434
  state = _context3.sent;
435
435
  case 24:
436
- (_this$_initDeferred = this._initDeferred) === null || _this$_initDeferred === void 0 || (_this$_initDeferred$r = _this$_initDeferred.resolve) === null || _this$_initDeferred$r === void 0 ? void 0 : _this$_initDeferred$r.call(_this$_initDeferred, state && state.restoreLocation);
436
+ (_this$_initDeferred = this._initDeferred) === null || _this$_initDeferred === void 0 || (_this$_initDeferred$r = _this$_initDeferred.resolve) === null || _this$_initDeferred$r === void 0 || _this$_initDeferred$r.call(_this$_initDeferred, state && state.restoreLocation);
437
437
  return _context3.abrupt("return", (_state = state) === null || _state === void 0 ? void 0 : _state.restoreLocation);
438
438
  case 28:
439
439
  _context3.prev = 28;
@@ -442,7 +442,7 @@ var Auth = /*#__PURE__*/function () {
442
442
  _context3.next = 35;
443
443
  break;
444
444
  }
445
- (_this$_initDeferred2 = this._initDeferred) === null || _this$_initDeferred2 === void 0 || (_this$_initDeferred2$ = _this$_initDeferred2.resolve) === null || _this$_initDeferred2$ === void 0 ? void 0 : _this$_initDeferred2$.call(_this$_initDeferred2); // No way to handle if cookies are disabled
445
+ (_this$_initDeferred2 = this._initDeferred) === null || _this$_initDeferred2 === void 0 || (_this$_initDeferred2$ = _this$_initDeferred2.resolve) === null || _this$_initDeferred2$ === void 0 || _this$_initDeferred2$.call(_this$_initDeferred2); // No way to handle if cookies are disabled
446
446
  _context3.next = 34;
447
447
  return this.requestUser();
448
448
  case 34:
@@ -459,7 +459,7 @@ var Auth = /*#__PURE__*/function () {
459
459
  return _init.apply(this, arguments);
460
460
  }
461
461
  return init;
462
- }()
462
+ }())
463
463
  }, {
464
464
  key: "sendRedirect",
465
465
  value: function () {
@@ -519,7 +519,7 @@ var Auth = /*#__PURE__*/function () {
519
519
  break;
520
520
  }
521
521
  state.error = error;
522
- (_this$_storage5 = this._storage) === null || _this$_storage5 === void 0 ? void 0 : _this$_storage5.saveState(error.stateId, state);
522
+ (_this$_storage5 = this._storage) === null || _this$_storage5 === void 0 || _this$_storage5.saveState(error.stateId, state);
523
523
  // Return endless promise in the background to avoid service start
524
524
  return _context5.abrupt("return", new Promise(noop));
525
525
  case 9:
@@ -578,14 +578,14 @@ var Auth = /*#__PURE__*/function () {
578
578
  _context6.next = 13;
579
579
  return (_this$_tokenValidator2 = this._tokenValidator) === null || _this$_tokenValidator2 === void 0 ? void 0 : _this$_tokenValidator2.validateToken();
580
580
  case 13:
581
- (_this$_initDeferred3 = this._initDeferred) === null || _this$_initDeferred3 === void 0 || (_this$_initDeferred3$ = _this$_initDeferred3.resolve) === null || _this$_initDeferred3$ === void 0 ? void 0 : _this$_initDeferred3$.call(_this$_initDeferred3);
581
+ (_this$_initDeferred3 = this._initDeferred) === null || _this$_initDeferred3 === void 0 || (_this$_initDeferred3$ = _this$_initDeferred3.resolve) === null || _this$_initDeferred3$ === void 0 || _this$_initDeferred3$.call(_this$_initDeferred3);
582
582
  return _context6.abrupt("return", undefined);
583
583
  case 17:
584
584
  _context6.prev = 17;
585
585
  _context6.t0 = _context6["catch"](8);
586
586
  return _context6.abrupt("return", _context6.t0 instanceof Error ? this.sendRedirect(_context6.t0) : undefined);
587
587
  case 20:
588
- (_this$_initDeferred4 = this._initDeferred) === null || _this$_initDeferred4 === void 0 || (_this$_initDeferred4$ = _this$_initDeferred4.reject) === null || _this$_initDeferred4$ === void 0 ? void 0 : _this$_initDeferred4$.call(_this$_initDeferred4, error);
588
+ (_this$_initDeferred4 = this._initDeferred) === null || _this$_initDeferred4 === void 0 || (_this$_initDeferred4$ = _this$_initDeferred4.reject) === null || _this$_initDeferred4$ === void 0 || _this$_initDeferred4$.call(_this$_initDeferred4, error);
589
589
  throw error;
590
590
  case 22:
591
591
  case "end":
@@ -605,7 +605,7 @@ var Auth = /*#__PURE__*/function () {
605
605
  */
606
606
  }, {
607
607
  key: "requestToken",
608
- value: function () {
608
+ value: (function () {
609
609
  var _requestToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
610
610
  var _this$_initDeferred5, _yield$this$_tokenVal, _this$_tokenValidator3;
611
611
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
@@ -668,9 +668,10 @@ var Auth = /*#__PURE__*/function () {
668
668
  * Get new token in the background or redirect to the login page.
669
669
  * @return {Promise.<string>}
670
670
  */
671
+ )
671
672
  }, {
672
673
  key: "forceTokenUpdate",
673
- value: function () {
674
+ value: (function () {
674
675
  var _forceTokenUpdate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
675
676
  var _this4 = this;
676
677
  var _yield$this$_backgrou, _this$_backgroundFlow2, _this$_requestBuilder2, authRequest;
@@ -793,7 +794,7 @@ var Auth = /*#__PURE__*/function () {
793
794
  return _forceTokenUpdate.apply(this, arguments);
794
795
  }
795
796
  return forceTokenUpdate;
796
- }()
797
+ }())
797
798
  }, {
798
799
  key: "loadCurrentService",
799
800
  value: function () {
@@ -868,7 +869,7 @@ var Auth = /*#__PURE__*/function () {
868
869
  */
869
870
  }, {
870
871
  key: "requestUser",
871
- value: function () {
872
+ value: (function () {
872
873
  var _requestUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
873
874
  var accessToken, user;
874
875
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
@@ -906,7 +907,7 @@ var Auth = /*#__PURE__*/function () {
906
907
  return _requestUser.apply(this, arguments);
907
908
  }
908
909
  return requestUser;
909
- }()
910
+ }())
910
911
  }, {
911
912
  key: "updateUser",
912
913
  value: function () {
@@ -921,7 +922,7 @@ var Auth = /*#__PURE__*/function () {
921
922
  return this.requestToken();
922
923
  case 3:
923
924
  accessToken = _context12.sent;
924
- (_this$_storage7 = this._storage) === null || _this$_storage7 === void 0 ? void 0 : _this$_storage7.wipeCachedCurrentUser();
925
+ (_this$_storage7 = this._storage) === null || _this$_storage7 === void 0 || _this$_storage7.wipeCachedCurrentUser();
925
926
  _context12.next = 7;
926
927
  return this.getUser(accessToken);
927
928
  case 7:
@@ -1028,12 +1029,11 @@ var Auth = /*#__PURE__*/function () {
1028
1029
  this._createInitDeferred();
1029
1030
  var closeDialog = function closeDialog() {
1030
1031
  /* eslint-disable @typescript-eslint/no-use-before-define */
1031
- stopTokenListening === null || stopTokenListening === void 0 ? void 0 : stopTokenListening();
1032
- stopMessageListening === null || stopMessageListening === void 0 ? void 0 : stopMessageListening();
1033
- hide === null || hide === void 0 ? void 0 : hide();
1032
+ stopTokenListening === null || stopTokenListening === void 0 || stopTokenListening();
1033
+ stopMessageListening === null || stopMessageListening === void 0 || stopMessageListening();
1034
+ hide === null || hide === void 0 || hide();
1034
1035
  /* eslint-enable @typescript-eslint/no-use-before-define */
1035
1036
  };
1036
-
1037
1037
  var onConfirm = function onConfirm() {
1038
1038
  if (!embeddedLogin) {
1039
1039
  closeDialog();
@@ -1044,12 +1044,12 @@ var Auth = /*#__PURE__*/function () {
1044
1044
  };
1045
1045
  var onCancel = function onCancel() {
1046
1046
  var _this7$_embeddedFlow, _this7$_storage, _this7$user;
1047
- (_this7$_embeddedFlow = _this7._embeddedFlow) === null || _this7$_embeddedFlow === void 0 ? void 0 : _this7$_embeddedFlow.stop();
1048
- (_this7$_storage = _this7._storage) === null || _this7$_storage === void 0 ? void 0 : _this7$_storage.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
1047
+ (_this7$_embeddedFlow = _this7._embeddedFlow) === null || _this7$_embeddedFlow === void 0 || _this7$_embeddedFlow.stop();
1048
+ (_this7$_storage = _this7._storage) === null || _this7$_storage === void 0 || _this7$_storage.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
1049
1049
  closeDialog();
1050
1050
  if (!cancelable) {
1051
1051
  var _this7$_initDeferred, _this7$_initDeferred$;
1052
- (_this7$_initDeferred = _this7._initDeferred) === null || _this7$_initDeferred === void 0 || (_this7$_initDeferred$ = _this7$_initDeferred.resolve) === null || _this7$_initDeferred$ === void 0 ? void 0 : _this7$_initDeferred$.call(_this7$_initDeferred);
1052
+ (_this7$_initDeferred = _this7._initDeferred) === null || _this7$_initDeferred === void 0 || (_this7$_initDeferred$ = _this7$_initDeferred.resolve) === null || _this7$_initDeferred$ === void 0 || _this7$_initDeferred$.call(_this7$_initDeferred);
1053
1053
  _this7.listeners.trigger(LOGOUT_POSTPONED_EVENT);
1054
1054
  onPostponeLogout();
1055
1055
  return;
@@ -1058,7 +1058,7 @@ var Auth = /*#__PURE__*/function () {
1058
1058
  _this7.forceTokenUpdate();
1059
1059
  } else {
1060
1060
  var _this7$_initDeferred2, _this7$_initDeferred3;
1061
- (_this7$_initDeferred2 = _this7._initDeferred) === null || _this7$_initDeferred2 === void 0 || (_this7$_initDeferred3 = _this7$_initDeferred2.resolve) === null || _this7$_initDeferred3 === void 0 ? void 0 : _this7$_initDeferred3.call(_this7$_initDeferred2);
1061
+ (_this7$_initDeferred2 = _this7._initDeferred) === null || _this7$_initDeferred2 === void 0 || (_this7$_initDeferred3 = _this7$_initDeferred2.resolve) === null || _this7$_initDeferred3 === void 0 || _this7$_initDeferred3.call(_this7$_initDeferred2);
1062
1062
  }
1063
1063
  };
1064
1064
  var onTryAgainClick = /*#__PURE__*/function () {
@@ -1095,7 +1095,7 @@ var Auth = /*#__PURE__*/function () {
1095
1095
  if (token) {
1096
1096
  var _this7$_initDeferred4, _this7$_initDeferred5;
1097
1097
  closeDialog();
1098
- (_this7$_initDeferred4 = _this7._initDeferred) === null || _this7$_initDeferred4 === void 0 || (_this7$_initDeferred5 = _this7$_initDeferred4.resolve) === null || _this7$_initDeferred5 === void 0 ? void 0 : _this7$_initDeferred5.call(_this7$_initDeferred4);
1098
+ (_this7$_initDeferred4 = _this7._initDeferred) === null || _this7$_initDeferred4 === void 0 || (_this7$_initDeferred5 = _this7$_initDeferred4.resolve) === null || _this7$_initDeferred5 === void 0 || _this7$_initDeferred5.call(_this7$_initDeferred4);
1099
1099
  }
1100
1100
  });
1101
1101
  var stopMessageListening = (_this$_storage9 = this._storage) === null || _this$_storage9 === void 0 ? void 0 : _this$_storage9.onMessage(Auth.CLOSE_WINDOW_MESSAGE, function () {
@@ -1123,9 +1123,9 @@ var Auth = /*#__PURE__*/function () {
1123
1123
  this._createInitDeferred();
1124
1124
  var done = function done() {
1125
1125
  var _this8$_initDeferred, _this8$_initDeferred$;
1126
- (_this8$_initDeferred = _this8._initDeferred) === null || _this8$_initDeferred === void 0 || (_this8$_initDeferred$ = _this8$_initDeferred.resolve) === null || _this8$_initDeferred$ === void 0 ? void 0 : _this8$_initDeferred$.call(_this8$_initDeferred);
1126
+ (_this8$_initDeferred = _this8._initDeferred) === null || _this8$_initDeferred === void 0 || (_this8$_initDeferred$ = _this8$_initDeferred.resolve) === null || _this8$_initDeferred$ === void 0 || _this8$_initDeferred$.call(_this8$_initDeferred);
1127
1127
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
1128
- hide === null || hide === void 0 ? void 0 : hide();
1128
+ hide === null || hide === void 0 || hide();
1129
1129
  };
1130
1130
  var hide = (_this$_authDialogServ2 = this._authDialogService) === null || _this$_authDialogServ2 === void 0 ? void 0 : _this$_authDialogServ2.call(this, _objectSpread2(_objectSpread2({}, this._service), {}, {
1131
1131
  title: (_translations$youHave = translations === null || translations === void 0 ? void 0 : translations.youHaveLoggedInAs) !== null && _translations$youHave !== void 0 ? _translations$youHave : translate('youHaveLoggedInAs').replace('%userName%', (_newUser$name = newUser.name) !== null && _newUser$name !== void 0 ? _newUser$name : '').replace('{{userName}}', (_newUser$name2 = newUser.name) !== null && _newUser$name2 !== void 0 ? _newUser$name2 : ''),
@@ -1183,13 +1183,13 @@ var Auth = /*#__PURE__*/function () {
1183
1183
  /* eslint-disable @typescript-eslint/no-use-before-define */
1184
1184
  hide();
1185
1185
  window.removeEventListener('online', onCheckAgain);
1186
- stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 ? void 0 : stopListeningCloseMessage();
1186
+ stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 || stopListeningCloseMessage();
1187
1187
  /* eslint-enable @typescript-eslint/no-use-before-define */
1188
- (_this9$_storage = _this9._storage) === null || _this9$_storage === void 0 ? void 0 : _this9$_storage.sendMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, Date.now());
1188
+ (_this9$_storage = _this9._storage) === null || _this9$_storage === void 0 || _this9$_storage.sendMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, Date.now());
1189
1189
  clearTimeout(timerId);
1190
1190
  };
1191
1191
  var stopListeningCloseMessage = (_this9$_storage2 = _this9._storage) === null || _this9$_storage2 === void 0 ? void 0 : _this9$_storage2.onMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, function () {
1192
- stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 ? void 0 : stopListeningCloseMessage();
1192
+ stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 || stopListeningCloseMessage();
1193
1193
  done();
1194
1194
  resolve();
1195
1195
  });
@@ -1238,7 +1238,7 @@ var Auth = /*#__PURE__*/function () {
1238
1238
  */
1239
1239
  }, {
1240
1240
  key: "logout",
1241
- value: function () {
1241
+ value: (function () {
1242
1242
  var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(extraParams) {
1243
1243
  var _this$_storage10, _this$_requestBuilder3;
1244
1244
  var requestParams, authRequest;
@@ -1276,7 +1276,7 @@ var Auth = /*#__PURE__*/function () {
1276
1276
  return _logout.apply(this, arguments);
1277
1277
  }
1278
1278
  return logout;
1279
- }()
1279
+ }())
1280
1280
  }, {
1281
1281
  key: "_runEmbeddedLogin",
1282
1282
  value: function () {
@@ -1286,7 +1286,7 @@ var Auth = /*#__PURE__*/function () {
1286
1286
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
1287
1287
  while (1) switch (_context17.prev = _context17.next) {
1288
1288
  case 0:
1289
- (_this$_storage11 = this._storage) === null || _this$_storage11 === void 0 ? void 0 : _this$_storage11.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
1289
+ (_this$_storage11 = this._storage) === null || _this$_storage11 === void 0 || _this$_storage11.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
1290
1290
  _context17.prev = 1;
1291
1291
  this._isLoginWindowOpen = true;
1292
1292
  _context17.next = 5;
@@ -1318,7 +1318,7 @@ var Auth = /*#__PURE__*/function () {
1318
1318
  */
1319
1319
  }, {
1320
1320
  key: "login",
1321
- value: function () {
1321
+ value: (function () {
1322
1322
  var _login = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
1323
1323
  var _this$_backgroundFlow3, accessToken, _user;
1324
1324
  return _regeneratorRuntime().wrap(function _callee18$(_context18) {
@@ -1367,7 +1367,7 @@ var Auth = /*#__PURE__*/function () {
1367
1367
  return _login.apply(this, arguments);
1368
1368
  }
1369
1369
  return login;
1370
- }()
1370
+ }())
1371
1371
  }, {
1372
1372
  key: "switchUser",
1373
1373
  value: function () {
@@ -1426,7 +1426,7 @@ var Auth = /*#__PURE__*/function () {
1426
1426
  */
1427
1427
  }, {
1428
1428
  key: "_checkForAuthResponse",
1429
- value: function () {
1429
+ value: (function () {
1430
1430
  var _checkForAuthResponse2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
1431
1431
  var _this$_storage12;
1432
1432
  var authResponse, _this$config4, defaultScope, defaultExpiresIn, cleanHash, stateId, scope, expiresIn, accessToken, newState, scopes, effectiveExpiresIn, expires, _this$_storage13;
@@ -1483,7 +1483,7 @@ var Auth = /*#__PURE__*/function () {
1483
1483
  return _checkForAuthResponse2.apply(this, arguments);
1484
1484
  }
1485
1485
  return _checkForAuthResponse;
1486
- }()
1486
+ }())
1487
1487
  }, {
1488
1488
  key: "_checkForStateRestoration",
1489
1489
  value: function () {
@@ -58,7 +58,7 @@ var BackgroundFlow = /*#__PURE__*/function () {
58
58
  */
59
59
  }, {
60
60
  key: "_load",
61
- value: function () {
61
+ value: (function () {
62
62
  var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
63
63
  var _this = this;
64
64
  var authRequest;
@@ -124,7 +124,7 @@ var BackgroundFlow = /*#__PURE__*/function () {
124
124
  return _load2.apply(this, arguments);
125
125
  }
126
126
  return _load;
127
- }()
127
+ }())
128
128
  }, {
129
129
  key: "authorize",
130
130
  value: function authorize() {
@@ -98,7 +98,7 @@ var IFrameFlow = /*#__PURE__*/function () {
98
98
  */
99
99
  _createClass(IFrameFlow, [{
100
100
  key: "_load",
101
- value: function () {
101
+ value: (function () {
102
102
  var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
103
103
  var _this2 = this;
104
104
  var authRequest, renderFallbackLink;
@@ -150,7 +150,7 @@ var IFrameFlow = /*#__PURE__*/function () {
150
150
  });
151
151
  var cleanUp = function cleanUp() {
152
152
  var _this2$hideDialog;
153
- (_this2$hideDialog = _this2.hideDialog) === null || _this2$hideDialog === void 0 ? void 0 : _this2$hideDialog.call(_this2);
153
+ (_this2$hideDialog = _this2.hideDialog) === null || _this2$hideDialog === void 0 || _this2$hideDialog.call(_this2);
154
154
  removeStateListener();
155
155
  removeTokenListener();
156
156
  };
@@ -165,7 +165,7 @@ var IFrameFlow = /*#__PURE__*/function () {
165
165
  return _load2.apply(this, arguments);
166
166
  }
167
167
  return _load;
168
- }()
168
+ }())
169
169
  }, {
170
170
  key: "stop",
171
171
  value: function stop() {
@@ -1,3 +1,4 @@
1
+ /// <reference types="typings" />
1
2
  import uuid from 'simply-uuid';
2
3
  import AuthStorage, { AuthState } from './storage';
3
4
  export interface AuthRequestBuilderConfig {
@@ -30,7 +30,7 @@ var AuthRequestBuilder = /*#__PURE__*/function () {
30
30
  */
31
31
  _createClass(AuthRequestBuilder, [{
32
32
  key: "prepareAuthRequest",
33
- value:
33
+ value: (
34
34
  /**
35
35
  * Save state and build an auth server redirect URL.
36
36
  *
@@ -87,6 +87,7 @@ var AuthRequestBuilder = /*#__PURE__*/function () {
87
87
  * @return {Promise}
88
88
  * @private
89
89
  */
90
+ )
90
91
  }, {
91
92
  key: "_saveState",
92
93
  value: function _saveState(id, storedState) {
@@ -175,7 +175,7 @@ var AuthStorage = /*#__PURE__*/function () {
175
175
  */
176
176
  }, {
177
177
  key: "saveState",
178
- value: function () {
178
+ value: (function () {
179
179
  var _saveState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id, state, dontCleanAndRetryOnFail) {
180
180
  return _regeneratorRuntime().wrap(function _callee$(_context) {
181
181
  while (1) switch (_context.prev = _context.next) {
@@ -218,9 +218,10 @@ var AuthStorage = /*#__PURE__*/function () {
218
218
  *
219
219
  * @return {Promise} promise that is resolved when OLD states [and some selected] are removed
220
220
  */
221
+ )
221
222
  }, {
222
223
  key: "cleanStates",
223
- value: function () {
224
+ value: (function () {
224
225
  var _cleanStates = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(removeStateId) {
225
226
  var _this = this;
226
227
  var now, removalResult, currentStates, stateStorageSize, removalPromises;
@@ -298,9 +299,10 @@ var AuthStorage = /*#__PURE__*/function () {
298
299
  * @param {string} id unique state identifier
299
300
  * @return {Promise.<StoredState>}
300
301
  */
302
+ )
301
303
  }, {
302
304
  key: "getState",
303
- value: function () {
305
+ value: (function () {
304
306
  var _getState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(id) {
305
307
  var result;
306
308
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -337,6 +339,7 @@ var AuthStorage = /*#__PURE__*/function () {
337
339
  * @param {StoredToken} token
338
340
  * @return {Promise} promise that is resolved when the token is saved
339
341
  */
342
+ )
340
343
  }, {
341
344
  key: "saveToken",
342
345
  value: function saveToken(token) {
@@ -365,7 +368,7 @@ var AuthStorage = /*#__PURE__*/function () {
365
368
  */
366
369
  }, {
367
370
  key: "getCachedUser",
368
- value: function () {
371
+ value: (function () {
369
372
  var _getCachedUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(loadUser) {
370
373
  var _this2 = this;
371
374
  var user, loadAndCache;
@@ -404,6 +407,7 @@ var AuthStorage = /*#__PURE__*/function () {
404
407
  /**
405
408
  * Remove cached user if any
406
409
  */
410
+ )
407
411
  }, {
408
412
  key: "wipeCachedCurrentUser",
409
413
  value: function wipeCachedCurrentUser() {
@@ -105,7 +105,7 @@ var TokenValidator = /*#__PURE__*/function () {
105
105
  */
106
106
  }, {
107
107
  key: "_validateAgainstUser",
108
- value:
108
+ value: (
109
109
  /**
110
110
  * Check scopes
111
111
  * @param {StoredToken} storedToken
@@ -169,9 +169,10 @@ var TokenValidator = /*#__PURE__*/function () {
169
169
  * have {authRedirect: true}.
170
170
  * @private
171
171
  */
172
+ )
172
173
  }, {
173
174
  key: "_getValidatedToken",
174
- value: function () {
175
+ value: (function () {
175
176
  var _getValidatedToken2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(validators) {
176
177
  var storedToken, i;
177
178
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -211,7 +212,7 @@ var TokenValidator = /*#__PURE__*/function () {
211
212
  return _getValidatedToken2.apply(this, arguments);
212
213
  }
213
214
  return _getValidatedToken;
214
- }()
215
+ }())
215
216
  }], [{
216
217
  key: "_epoch",
217
218
  value: function _epoch() {
@@ -60,7 +60,7 @@ var WindowFlow = /*#__PURE__*/function () {
60
60
  */
61
61
  }, {
62
62
  key: "_load",
63
- value: function () {
63
+ value: (function () {
64
64
  var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
65
65
  var _this2 = this;
66
66
  var authRequest;
@@ -91,7 +91,7 @@ var WindowFlow = /*#__PURE__*/function () {
91
91
  removeStateListener();
92
92
  removeTokenListener();
93
93
  /* eslint-enable @typescript-eslint/no-use-before-define */
94
- (_this2$_loginWindow = _this2._loginWindow) === null || _this2$_loginWindow === void 0 ? void 0 : _this2$_loginWindow.close();
94
+ (_this2$_loginWindow = _this2._loginWindow) === null || _this2$_loginWindow === void 0 || _this2$_loginWindow.close();
95
95
  clearTimeout(_this2._timeoutId);
96
96
  };
97
97
  var removeTokenListener = _this2._storage.onTokenChange(function (token) {
@@ -123,7 +123,7 @@ var WindowFlow = /*#__PURE__*/function () {
123
123
  return _load2.apply(this, arguments);
124
124
  }
125
125
  return _load;
126
- }()
126
+ }())
127
127
  }, {
128
128
  key: "stop",
129
129
  value: function stop() {
@@ -109,7 +109,6 @@ angularModule.provider('auth', ["$httpProvider", function provider($httpProvider
109
109
  var defaultConfig = {
110
110
  cleanHash: false //prevents infinite redirect on angular>1.2.26
111
111
  };
112
-
113
112
  this.init = function (authInstance) {
114
113
  auth = authInstance;
115
114
  };
@@ -197,11 +197,11 @@ var Caret = /*#__PURE__*/function () {
197
197
  try {
198
198
  if (correctedPosition instanceof Range) {
199
199
  var _window$getSelection, _window$getSelection2;
200
- (_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.removeAllRanges();
201
- (_window$getSelection2 = window.getSelection()) === null || _window$getSelection2 === void 0 ? void 0 : _window$getSelection2.addRange(correctedPosition);
200
+ (_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges();
201
+ (_window$getSelection2 = window.getSelection()) === null || _window$getSelection2 === void 0 || _window$getSelection2.addRange(correctedPosition);
202
202
  } else {
203
203
  var _window$getSelection3;
204
- (_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0 ? void 0 : _window$getSelection3.collapse(curNode || this.target, correctedPosition);
204
+ (_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0 || _window$getSelection3.collapse(curNode || this.target, correctedPosition);
205
205
  }
206
206
  } catch (e) {
207
207
  // Do nothing
@@ -224,7 +224,7 @@ var Caret = /*#__PURE__*/function () {
224
224
  var _window$getSelection4, _range;
225
225
  // Both statements may throw
226
226
  range = (_window$getSelection4 = window.getSelection()) === null || _window$getSelection4 === void 0 ? void 0 : _window$getSelection4.getRangeAt(0).cloneRange();
227
- (_range = range) === null || _range === void 0 ? void 0 : _range.setStart(range.startContainer, range.startOffset - 1);
227
+ (_range = range) === null || _range === void 0 || _range.setStart(range.startContainer, range.startOffset - 1);
228
228
  } catch (e) {
229
229
  return offset;
230
230
  }
@@ -26,12 +26,12 @@ function copyHTMLToClipboard(str) {
26
26
  var selection = document.getSelection();
27
27
  // Should restore previous selection
28
28
  var selected = selection && selection.rangeCount > 0 ? selection.getRangeAt(0) : false;
29
- selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
29
+ selection === null || selection === void 0 || selection.removeAllRanges();
30
30
  var range = document.createRange();
31
31
  range.selectNode(el);
32
- selection === null || selection === void 0 ? void 0 : selection.addRange(range);
32
+ selection === null || selection === void 0 || selection.addRange(range);
33
33
  document.execCommand('copy');
34
- selection === null || selection === void 0 ? void 0 : selection.removeAllRanges();
34
+ selection === null || selection === void 0 || selection.removeAllRanges();
35
35
  document.execCommand('copy');
36
36
  document.body.removeChild(el);
37
37
  if (selected && selection) {
@@ -1,3 +1,4 @@
1
+ /// <reference types="highlight.js" />
1
2
  import React, { PureComponent, Ref } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import highlight from 'highlight.js/lib/core';
@@ -104,10 +104,10 @@ var DataList = /*#__PURE__*/function (_PureComponent) {
104
104
  var item = itemFormatter(focused);
105
105
  if (item.collapsed) {
106
106
  var _item$onExpand;
107
- (_item$onExpand = item.onExpand) === null || _item$onExpand === void 0 ? void 0 : _item$onExpand.call(item);
107
+ (_item$onExpand = item.onExpand) === null || _item$onExpand === void 0 || _item$onExpand.call(item);
108
108
  } else {
109
109
  var _item$onCollapse;
110
- (_item$onCollapse = item.onCollapse) === null || _item$onCollapse === void 0 ? void 0 : _item$onCollapse.call(item);
110
+ (_item$onCollapse = item.onCollapse) === null || _item$onCollapse === void 0 || _item$onCollapse.call(item);
111
111
  }
112
112
  });
113
113
  _defineProperty(_assertThisInitialized(_this), "shortcutsMap", {
@@ -179,7 +179,7 @@ var DatePicker = /*#__PURE__*/function (_PureComponent) {
179
179
  });
180
180
  _defineProperty(_assertThisInitialized(_this), "closePopup", function () {
181
181
  var _this$popup;
182
- (_this$popup = _this.popup) === null || _this$popup === void 0 ? void 0 : _this$popup._onCloseAttempt();
182
+ (_this$popup = _this.popup) === null || _this$popup === void 0 || _this$popup._onCloseAttempt();
183
183
  });
184
184
  _defineProperty(_assertThisInitialized(_this), "parse", memoize(function (date) {
185
185
  var parseDateInput = _this.props.parseDateInput;
@@ -197,8 +197,8 @@ var DatePopup = /*#__PURE__*/function (_Component) {
197
197
  };
198
198
  }
199
199
  _this.select(changes);
200
- (_this$props$onClear = (_this$props = _this.props).onClear) === null || _this$props$onClear === void 0 ? void 0 : _this$props$onClear.call(_this$props, e);
201
- (_this$componentRef$cu = _this.componentRef.current) === null || _this$componentRef$cu === void 0 || (_this$componentRef$cu = _this$componentRef$cu.querySelector('input')) === null || _this$componentRef$cu === void 0 ? void 0 : _this$componentRef$cu.focus();
200
+ (_this$props$onClear = (_this$props = _this.props).onClear) === null || _this$props$onClear === void 0 || _this$props$onClear.call(_this$props, e);
201
+ (_this$componentRef$cu = _this.componentRef.current) === null || _this$componentRef$cu === void 0 || (_this$componentRef$cu = _this$componentRef$cu.querySelector('input')) === null || _this$componentRef$cu === void 0 || _this$componentRef$cu.focus();
202
202
  });
203
203
  var defaultState = {
204
204
  text: null,
@@ -83,7 +83,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
83
83
  return;
84
84
  }
85
85
  _this._clearTimer();
86
- (_this$props$onMouseEn = (_this$props = _this.props).onMouseEnter) === null || _this$props$onMouseEn === void 0 ? void 0 : _this$props$onMouseEn.call(_this$props, event);
86
+ (_this$props$onMouseEn = (_this$props = _this.props).onMouseEnter) === null || _this$props$onMouseEn === void 0 || _this$props$onMouseEn.call(_this$props, event);
87
87
  _this.hoverTimer = window.setTimeout(function () {
88
88
  if (!_this.state.show) {
89
89
  _this._toggle(true);
@@ -95,7 +95,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
95
95
  if (_this.props.disabled) {
96
96
  return;
97
97
  }
98
- (_this$props$onMouseLe = (_this$props2 = _this.props).onMouseLeave) === null || _this$props$onMouseLe === void 0 ? void 0 : _this$props$onMouseLe.call(_this$props2, event);
98
+ (_this$props$onMouseLe = (_this$props2 = _this.props).onMouseLeave) === null || _this$props$onMouseLe === void 0 || _this$props$onMouseLe.call(_this$props2, event);
99
99
  if (_this.state.pinned) {
100
100
  return;
101
101
  }
@@ -23,7 +23,7 @@ export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement | H
23
23
  'data-test'?: string | null;
24
24
  error?: string;
25
25
  multiline?: boolean;
26
- maxInputHeight?: number;
26
+ maxInputRows?: number;
27
27
  renderMenu?: () => React.ReactNode;
28
28
  translations?: EditableHeadingTranslations;
29
29
  };