@jetbrains/ring-ui-built 7.0.19 → 7.0.20

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 (103) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +5 -5
  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/avatar.d.ts +2 -0
  20. package/components/avatar/avatar.js +8 -0
  21. package/components/avatar-stack/avatar-stack.d.ts +15 -0
  22. package/components/avatar-stack/avatar-stack.js +117 -0
  23. package/components/button/button.js +2 -2
  24. package/components/caret/caret.js +6 -6
  25. package/components/checkbox/checkbox.js +1 -1
  26. package/components/clipboard/clipboard-fallback.js +3 -3
  27. package/components/code/code.js +1 -1
  28. package/components/collapse/collapse-content.js +2 -2
  29. package/components/collapse/collapse.js +1 -1
  30. package/components/data-list/data-list.js +3 -3
  31. package/components/data-list/item.js +1 -1
  32. package/components/date-picker/consts.js +1 -1
  33. package/components/date-picker/date-input.js +5 -5
  34. package/components/date-picker/date-picker.js +9 -9
  35. package/components/date-picker/date-popup.js +4 -4
  36. package/components/date-picker/years.js +1 -1
  37. package/components/dialog/dialog.js +1 -1
  38. package/components/dropdown/dropdown.js +4 -4
  39. package/components/editable-heading/editable-heading.js +4 -4
  40. package/components/global/focus-sensor-hoc.js +10 -10
  41. package/components/global/memoize.js +1 -1
  42. package/components/global/normalize-indent.js +1 -1
  43. package/components/global/react-dom-renderer.js +1 -1
  44. package/components/global/schedule-raf.js +1 -1
  45. package/components/header/profile.js +8 -8
  46. package/components/header/smart-profile.js +2 -2
  47. package/components/header/smart-services.js +4 -4
  48. package/components/http/http.js +9 -9
  49. package/components/http/http.mock.js +3 -3
  50. package/components/hub-source/hub-source.js +6 -6
  51. package/components/hub-source/hub-source__user.js +2 -2
  52. package/components/hub-source/hub-source__users-groups.js +4 -4
  53. package/components/i18n/i18n.js +1 -1
  54. package/components/island/adaptive-island-hoc.js +1 -1
  55. package/components/island/content.js +3 -3
  56. package/components/island/header.js +1 -1
  57. package/components/list/list.js +4 -4
  58. package/components/list/list__item.js +2 -2
  59. package/components/list/list__link.js +1 -1
  60. package/components/list/list__users-groups-source.js +2 -2
  61. package/components/loader/loader.js +2 -2
  62. package/components/loader/loader__core.js +27 -27
  63. package/components/login-dialog/login-dialog.js +1 -1
  64. package/components/message/message.js +14 -14
  65. package/components/old-browsers-message/white-list.js +3 -3
  66. package/components/pager/pager.js +9 -9
  67. package/components/permissions/permissions.js +7 -7
  68. package/components/permissions/permissions__cache.js +4 -4
  69. package/components/popup/popup.js +8 -8
  70. package/components/popup/position.js +1 -1
  71. package/components/popup-menu/popup-menu.js +1 -1
  72. package/components/progress-bar/progress-bar.js +2 -2
  73. package/components/query-assist/query-assist.js +43 -43
  74. package/components/radio/radio__item.js +2 -2
  75. package/components/select/select.js +27 -27
  76. package/components/select/select__popup.js +9 -9
  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-tab.js +3 -3
  91. package/components/tabs/collapsible-tabs.js +6 -6
  92. package/components/tabs/dumb-tabs.js +1 -1
  93. package/components/tabs/smart-tabs.js +1 -1
  94. package/components/tag/tag.js +2 -2
  95. package/components/tags-input/tags-input.js +17 -17
  96. package/components/tooltip/tooltip.js +7 -7
  97. package/components/upload/upload.js +3 -3
  98. package/components/user-agreement/service.js +3 -3
  99. package/components/user-agreement/user-agreement.js +8 -8
  100. package/components/user-card/card.js +2 -2
  101. package/components/user-card/user-card.js +2 -2
  102. package/package.json +2 -2
  103. package/typings.d.ts +5 -0
@@ -1,9 +1,9 @@
1
1
  function _defineProperty(e, r, t) {
2
2
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
3
3
  value: t,
4
- enumerable: !0,
5
- configurable: !0,
6
- writable: !0
4
+ enumerable: true,
5
+ configurable: true,
6
+ writable: true
7
7
  }) : e[r] = t, e;
8
8
  }
9
9
  function ownKeys(e, r) {
@@ -19,7 +19,7 @@ function ownKeys(e, r) {
19
19
  function _objectSpread2(e) {
20
20
  for (var r = 1; r < arguments.length; r++) {
21
21
  var t = null != arguments[r] ? arguments[r] : {};
22
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
22
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
23
23
  _defineProperty(e, r, t[r]);
24
24
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
25
25
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -50,7 +50,7 @@ function _objectWithoutPropertiesLoose(r, e) {
50
50
  function _toPrimitive(t, r) {
51
51
  if ("object" != typeof t || !t) return t;
52
52
  var e = t[Symbol.toPrimitive];
53
- if (void 0 !== e) {
53
+ if (undefined !== e) {
54
54
  var i = e.call(t, r || "default");
55
55
  if ("object" != typeof i) return i;
56
56
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -25,7 +25,7 @@ class UserCard extends PureComponent {
25
25
  translate
26
26
  } = this.context;
27
27
  const translations = this.props.translations;
28
- clipboard.copyText(this.props.user.email || '', (_translations$copiedT = translations === null || translations === void 0 ? void 0 : translations.copiedToClipboard) !== null && _translations$copiedT !== void 0 ? _translations$copiedT : translate('copyToClipboard'), (_translations$copingT = translations === null || translations === void 0 ? void 0 : translations.copingToClipboardError) !== null && _translations$copingT !== void 0 ? _translations$copingT : translate('copingToClipboardError'));
28
+ clipboard.copyText(this.props.user.email || '', (_translations$copiedT = translations === null || translations === undefined ? undefined : translations.copiedToClipboard) !== null && _translations$copiedT !== undefined ? _translations$copiedT : translate('copyToClipboard'), (_translations$copingT = translations === null || translations === undefined ? undefined : translations.copingToClipboardError) !== null && _translations$copingT !== undefined ? _translations$copingT : translate('copingToClipboardError'));
29
29
  });
30
30
  }
31
31
  render() {
@@ -72,7 +72,7 @@ class UserCard extends PureComponent {
72
72
  children: user.name
73
73
  }), typeof user.online === 'boolean' && jsx("span", {
74
74
  className: userActiveStatusClasses,
75
- title: user.online ? (_translations$online = translations === null || translations === void 0 ? void 0 : translations.online) !== null && _translations$online !== void 0 ? _translations$online : translate('online') : (_translations$offline = translations === null || translations === void 0 ? void 0 : translations.offline) !== null && _translations$offline !== void 0 ? _translations$offline : translate('offline')
75
+ title: user.online ? (_translations$online = translations === null || translations === undefined ? undefined : translations.online) !== null && _translations$online !== undefined ? _translations$online : translate('online') : (_translations$offline = translations === null || translations === undefined ? undefined : translations.offline) !== null && _translations$offline !== undefined ? _translations$offline : translate('offline')
76
76
  }), !!info && jsx("span", {
77
77
  className: styles.userNameInfo,
78
78
  children: info
@@ -80,7 +80,7 @@ class UserCard extends PureComponent {
80
80
  title: user.banReason,
81
81
  children: jsx(Tag, {
82
82
  className: styles.banLabel,
83
- children: (_translations$banned = translations === null || translations === void 0 ? void 0 : translations.banned) !== null && _translations$banned !== void 0 ? _translations$banned : translate('banned')
83
+ children: (_translations$banned = translations === null || translations === undefined ? undefined : translations.banned) !== null && _translations$banned !== undefined ? _translations$banned : translate('banned')
84
84
  })
85
85
  })]
86
86
  }), jsx("div", {
@@ -96,9 +96,9 @@ class UserCard extends PureComponent {
96
96
  children: user.email
97
97
  }), user.unverifiedEmail && jsx("span", {
98
98
  className: styles.unverifiedLabel,
99
- children: (_translations$unverif = translations === null || translations === void 0 ? void 0 : translations.unverified) !== null && _translations$unverif !== void 0 ? _translations$unverif : translate('unverified')
99
+ children: (_translations$unverif = translations === null || translations === undefined ? undefined : translations.unverified) !== null && _translations$unverif !== undefined ? _translations$unverif : translate('unverified')
100
100
  }), jsx(Icon, {
101
- title: (_translations$copyToC = translations === null || translations === void 0 ? void 0 : translations.copyToClipboard) !== null && _translations$copyToC !== void 0 ? _translations$copyToC : translate('copyToClipboard'),
101
+ title: (_translations$copyToC = translations === null || translations === undefined ? undefined : translations.copyToClipboard) !== null && _translations$copyToC !== undefined ? _translations$copyToC : translate('copyToClipboard'),
102
102
  className: styles.userCopyIcon,
103
103
  onClick: this.copyEmail,
104
104
  glyph: copyIcon,
@@ -34,8 +34,8 @@ class Input extends PureComponent {
34
34
  _defineProperty(this, "state", {
35
35
  empty: true
36
36
  });
37
- _defineProperty(this, "frame", void 0);
38
- _defineProperty(this, "input", void 0);
37
+ _defineProperty(this, "frame", undefined);
38
+ _defineProperty(this, "input", undefined);
39
39
  _defineProperty(this, "id", getUID('ring-input-'));
40
40
  _defineProperty(this, "inputRef", el => {
41
41
  this.input = el;
@@ -43,19 +43,19 @@ class Input extends PureComponent {
43
43
  _defineProperty(this, "composedInputRef", createComposedRef());
44
44
  _defineProperty(this, "clear", e => {
45
45
  var _this$props$onClear, _this$props;
46
- (_this$props$onClear = (_this$props = this.props).onClear) === null || _this$props$onClear === void 0 || _this$props$onClear.call(_this$props, e);
46
+ (_this$props$onClear = (_this$props = this.props).onClear) === null || _this$props$onClear === undefined || _this$props$onClear.call(_this$props, e);
47
47
  });
48
48
  _defineProperty(this, "handleInputChange", e => {
49
49
  if (!this.props.multiline) {
50
50
  var _this$props$onChange, _this$props2;
51
- (_this$props$onChange = (_this$props2 = this.props).onChange) === null || _this$props$onChange === void 0 || _this$props$onChange.call(_this$props2, e);
51
+ (_this$props$onChange = (_this$props2 = this.props).onChange) === null || _this$props$onChange === undefined || _this$props$onChange.call(_this$props2, e);
52
52
  this.checkValue();
53
53
  }
54
54
  });
55
55
  _defineProperty(this, "handleTextareaChange", e => {
56
56
  if (this.props.multiline) {
57
57
  var _this$props$onChange2, _this$props3;
58
- (_this$props$onChange2 = (_this$props3 = this.props).onChange) === null || _this$props$onChange2 === void 0 || _this$props$onChange2.call(_this$props3, e);
58
+ (_this$props$onChange2 = (_this$props3 = this.props).onChange) === null || _this$props$onChange2 === undefined || _this$props$onChange2.call(_this$props3, e);
59
59
  this.checkValue();
60
60
  }
61
61
  });
@@ -77,7 +77,7 @@ class Input extends PureComponent {
77
77
  checkValue() {
78
78
  var _this$input;
79
79
  this.setState({
80
- empty: !((_this$input = this.input) !== null && _this$input !== void 0 && _this$input.value)
80
+ empty: !((_this$input = this.input) !== null && _this$input !== undefined && _this$input.value)
81
81
  });
82
82
  if (this.props.multiline && this.input != null && this.input.scrollHeight >= this.input.clientHeight) {
83
83
  this.stretch(this.input);
@@ -171,7 +171,7 @@ class Input extends PureComponent {
171
171
  }, commonProps), restProps)) : jsx("input", _objectSpread2(_objectSpread2({
172
172
  onChange: this.handleInputChange
173
173
  }, commonProps), restProps)), clearable && !disabled && jsx(Button, {
174
- title: (_translations$clear = translations === null || translations === void 0 ? void 0 : translations.clear) !== null && _translations$clear !== void 0 ? _translations$clear : translate('clear'),
174
+ title: (_translations$clear = translations === null || translations === undefined ? undefined : translations.clear) !== null && _translations$clear !== undefined ? _translations$clear : translate('clear'),
175
175
  "data-test": "ring-input-clear",
176
176
  className: inputStyles.clear,
177
177
  icon: closeIcon,
@@ -15,7 +15,7 @@ function noop() {}
15
15
  class SelectFilter extends Component {
16
16
  constructor() {
17
17
  super(...arguments);
18
- _defineProperty(this, "input", void 0);
18
+ _defineProperty(this, "input", undefined);
19
19
  _defineProperty(this, "inputRef", el => {
20
20
  this.input = el;
21
21
  this.props.inputRef(el);
@@ -57,7 +57,7 @@ class SelectFilter extends Component {
57
57
  translate
58
58
  } = _ref;
59
59
  return jsx(Input, _objectSpread2(_objectSpread2({}, restProps), {}, {
60
- placeholder: (_restProps$placeholde = restProps.placeholder) !== null && _restProps$placeholde !== void 0 ? _restProps$placeholde : translate('filterItems'),
60
+ placeholder: (_restProps$placeholde = restProps.placeholder) !== null && _restProps$placeholde !== undefined ? _restProps$placeholde : translate('filterItems'),
61
61
  "aria-owns": listId,
62
62
  "aria-activedescendant": activeItemId,
63
63
  autoComplete: "off",
@@ -18,7 +18,7 @@ class Sidebar extends Component {
18
18
  bottomIsOutside: true,
19
19
  sidebarVisibleHeight: undefined
20
20
  });
21
- _defineProperty(this, "sidebarNode", void 0);
21
+ _defineProperty(this, "sidebarNode", undefined);
22
22
  _defineProperty(this, "handleTopWaypoint", _ref => {
23
23
  let {
24
24
  currentPosition
@@ -85,7 +85,7 @@ class Sidebar extends Component {
85
85
  [styles.sidebarRight]: right,
86
86
  [styles.sidebarFixedTop]: shouldFixateTop,
87
87
  [styles.sidebarFixedBottom]: shouldFixateBottom,
88
- [fixedClassName !== null && fixedClassName !== void 0 ? fixedClassName : '']: shouldFixateTop || shouldFixateBottom
88
+ [fixedClassName !== null && fixedClassName !== undefined ? fixedClassName : '']: shouldFixateTop || shouldFixateBottom
89
89
  });
90
90
  const style = {
91
91
  maxHeight: shouldFixateBottom && sidebarVisibleHeight ? "".concat(sidebarVisibleHeight, "px") : undefined
@@ -90,8 +90,8 @@ class Alert extends PureComponent {
90
90
  _defineProperty(this, "state", {
91
91
  height: null
92
92
  });
93
- _defineProperty(this, "node", void 0);
94
- _defineProperty(this, "hideTimeout", void 0);
93
+ _defineProperty(this, "node", undefined);
94
+ _defineProperty(this, "hideTimeout", undefined);
95
95
  _defineProperty(this, "closeRequest", event => {
96
96
  this.startCloseAnimation();
97
97
  return this.props.onCloseRequest(event);
@@ -128,11 +128,11 @@ class AlertService {
128
128
  timeout,
129
129
  isClosing: false,
130
130
  onCloseRequest: () => {
131
- onCloseRequest === null || onCloseRequest === void 0 || onCloseRequest();
131
+ onCloseRequest === null || onCloseRequest === undefined || onCloseRequest();
132
132
  this.startAlertClosing(alert);
133
133
  },
134
134
  onClose: () => {
135
- onClose === null || onClose === void 0 || onClose();
135
+ onClose === null || onClose === undefined || onClose();
136
136
  this.removeWithoutAnimation(alert.key);
137
137
  }
138
138
  }, restOptions);
@@ -5,7 +5,7 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
5
5
  */
6
6
  class Analytics {
7
7
  constructor() {
8
- _defineProperty(this, "_plugins", void 0);
8
+ _defineProperty(this, "_plugins", undefined);
9
9
  this._plugins = [];
10
10
  }
11
11
  config(plugins) {
@@ -4,12 +4,12 @@ const DEFAULT_FLUSH_INTERVAL = 10000;
4
4
  const DEFAULT_FLUSH_MAX_PACK_SIZE = 100;
5
5
  class AnalyticsCustomPlugin {
6
6
  constructor(send, isDevelopment, flushInterval) {
7
- _defineProperty(this, "_data", void 0);
8
- _defineProperty(this, "_flush", void 0);
9
- _defineProperty(this, "_isDevelopment", void 0);
10
- _defineProperty(this, "_flushInterval", void 0);
11
- _defineProperty(this, "_flushMaxPackSize", void 0);
12
- _defineProperty(this, "_hasSendSchedule", void 0);
7
+ _defineProperty(this, "_data", undefined);
8
+ _defineProperty(this, "_flush", undefined);
9
+ _defineProperty(this, "_isDevelopment", undefined);
10
+ _defineProperty(this, "_flushInterval", undefined);
11
+ _defineProperty(this, "_flushMaxPackSize", undefined);
12
+ _defineProperty(this, "_hasSendSchedule", undefined);
13
13
  this._data = [];
14
14
  this.config({
15
15
  send,
@@ -37,7 +37,7 @@ class AnalyticsCustomPlugin {
37
37
  _initSendSchedule() {
38
38
  window.addEventListener('beforeunload', () => {
39
39
  var _this$_flush;
40
- return (_this$_flush = this._flush) === null || _this$_flush === void 0 ? void 0 : _this$_flush.call(this);
40
+ return (_this$_flush = this._flush) === null || _this$_flush === undefined ? undefined : _this$_flush.call(this);
41
41
  });
42
42
  if (this._flush != null) {
43
43
  setInterval(this._flush, this._flushInterval);
@@ -64,7 +64,7 @@ class AnalyticsCustomPlugin {
64
64
  this._data.push(sendingData);
65
65
  if (this._flushMaxPackSize != null && this._data.length >= this._flushMaxPackSize) {
66
66
  var _this$_flush2;
67
- (_this$_flush2 = this._flush) === null || _this$_flush2 === void 0 || _this$_flush2.call(this);
67
+ (_this$_flush2 = this._flush) === null || _this$_flush2 === undefined || _this$_flush2.call(this);
68
68
  }
69
69
  }
70
70
  }
@@ -98,23 +98,23 @@ const DEFAULT_CONFIG = {
98
98
  };
99
99
  class Auth {
100
100
  constructor(config) {
101
- _defineProperty(this, "config", void 0);
101
+ _defineProperty(this, "config", undefined);
102
102
  _defineProperty(this, "listeners", new Listeners());
103
- _defineProperty(this, "http", void 0);
103
+ _defineProperty(this, "http", undefined);
104
104
  _defineProperty(this, "_service", {});
105
- _defineProperty(this, "_storage", void 0);
105
+ _defineProperty(this, "_storage", undefined);
106
106
  _defineProperty(this, "_responseParser", new AuthResponseParser());
107
107
  _defineProperty(this, "_requestBuilder", null);
108
- _defineProperty(this, "_backgroundFlow", void 0);
108
+ _defineProperty(this, "_backgroundFlow", undefined);
109
109
  _defineProperty(this, "_embeddedFlow", null);
110
110
  _defineProperty(this, "_tokenValidator", null);
111
111
  _defineProperty(this, "_postponed", false);
112
112
  _defineProperty(this, "_backendCheckPromise", null);
113
113
  _defineProperty(this, "_authDialogService", undefined);
114
- _defineProperty(this, "_domainStorage", void 0);
114
+ _defineProperty(this, "_domainStorage", undefined);
115
115
  _defineProperty(this, "user", null);
116
- _defineProperty(this, "_initDeferred", void 0);
117
- _defineProperty(this, "_isLoginWindowOpen", void 0);
116
+ _defineProperty(this, "_initDeferred", undefined);
117
+ _defineProperty(this, "_isLoginWindowOpen", undefined);
118
118
  if (!config) {
119
119
  throw new Error('Config is required');
120
120
  }
@@ -172,7 +172,7 @@ class Auth {
172
172
  this._backgroundFlow = new BackgroundFlow(this._requestBuilder, this._storage, backgroundRefreshTimeout);
173
173
  if (this.config.EmbeddedLoginFlow) {
174
174
  var _this$config$translat;
175
- this._embeddedFlow = new this.config.EmbeddedLoginFlow(this._requestBuilder, this._storage, (_this$config$translat = this.config.translations) !== null && _this$config$translat !== void 0 ? _this$config$translat : getTranslationsWithFallback());
175
+ this._embeddedFlow = new this.config.EmbeddedLoginFlow(this._requestBuilder, this._storage, (_this$config$translat = this.config.translations) !== null && _this$config$translat !== undefined ? _this$config$translat : getTranslationsWithFallback());
176
176
  }
177
177
  const API_BASE = this.config.serverUri + Auth.API_PATH;
178
178
  const fetchConfig = config.fetchCredentials ? {
@@ -205,11 +205,11 @@ class Auth {
205
205
  if (this.config.cacheCurrentUser) {
206
206
  this.addListener(LOGOUT_EVENT, () => {
207
207
  var _this$_storage;
208
- return (_this$_storage = this._storage) === null || _this$_storage === void 0 ? void 0 : _this$_storage.wipeCachedCurrentUser();
208
+ return (_this$_storage = this._storage) === null || _this$_storage === undefined ? undefined : _this$_storage.wipeCachedCurrentUser();
209
209
  });
210
210
  this.addListener(USER_CHANGED_EVENT, () => {
211
211
  var _this$_storage2;
212
- return (_this$_storage2 = this._storage) === null || _this$_storage2 === void 0 ? void 0 : _this$_storage2.onUserChanged();
212
+ return (_this$_storage2 = this._storage) === null || _this$_storage2 === undefined ? undefined : _this$_storage2.onUserChanged();
213
213
  });
214
214
  }
215
215
  this._createInitDeferred();
@@ -251,7 +251,7 @@ class Auth {
251
251
  */
252
252
  async init() {
253
253
  var _this$_storage3;
254
- (_this$_storage3 = this._storage) === null || _this$_storage3 === void 0 || _this$_storage3.onTokenChange(async token => {
254
+ (_this$_storage3 = this._storage) === null || _this$_storage3 === undefined || _this$_storage3.onTokenChange(async token => {
255
255
  const isGuest = this.user ? this.user.guest : false;
256
256
  if (isGuest && !token) {
257
257
  return;
@@ -325,7 +325,7 @@ class Auth {
325
325
  } catch (error) {
326
326
  if (Auth.storageIsUnavailable) {
327
327
  var _this$_initDeferred2, _this$_initDeferred2$;
328
- (_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
328
+ (_this$_initDeferred2 = this._initDeferred) === null || _this$_initDeferred2 === undefined || (_this$_initDeferred2$ = _this$_initDeferred2.resolve) === null || _this$_initDeferred2$ === undefined || _this$_initDeferred2$.call(_this$_initDeferred2); // No way to handle if cookies are disabled
329
329
  await this.requestUser(); // Someone may expect user to be loaded as a part of token validation
330
330
  return null;
331
331
  }
@@ -334,7 +334,7 @@ class Auth {
334
334
  }
335
335
  async sendRedirect(error) {
336
336
  var _this$_requestBuilder;
337
- const authRequest = await ((_this$_requestBuilder = this._requestBuilder) === null || _this$_requestBuilder === void 0 ? void 0 : _this$_requestBuilder.prepareAuthRequest());
337
+ const authRequest = await ((_this$_requestBuilder = this._requestBuilder) === null || _this$_requestBuilder === undefined ? undefined : _this$_requestBuilder.prepareAuthRequest());
338
338
  if (authRequest != null) {
339
339
  this._redirectCurrentPage(authRequest.url);
340
340
  }
@@ -364,7 +364,7 @@ class Auth {
364
364
  }
365
365
  async handleInitValidationError(error) {
366
366
  var _error$cause, _this$_initDeferred4, _this$_initDeferred4$;
367
- if ('cause' in error && error.cause instanceof Error && ((_error$cause = error.cause) === null || _error$cause === void 0 ? void 0 : _error$cause.message) === 'invalid_client') {
367
+ if ('cause' in error && error.cause instanceof Error && ((_error$cause = error.cause) === null || _error$cause === undefined ? undefined : _error$cause.message) === 'invalid_client') {
368
368
  // eslint-disable-next-line no-console
369
369
  console.error('RingUI Auth: invalid client detected. Logging out', error);
370
370
  await this.logout();
@@ -387,7 +387,7 @@ class Auth {
387
387
  return validationError instanceof Error ? this.sendRedirect(validationError) : undefined;
388
388
  }
389
389
  }
390
- (_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);
390
+ (_this$_initDeferred4 = this._initDeferred) === null || _this$_initDeferred4 === undefined || (_this$_initDeferred4$ = _this$_initDeferred4.reject) === null || _this$_initDeferred4$ === undefined || _this$_initDeferred4$.call(_this$_initDeferred4, error);
391
391
  throw error;
392
392
  }
393
393
  /**
@@ -458,7 +458,7 @@ class Auth {
458
458
  });
459
459
  } else {
460
460
  var _this$_requestBuilder2;
461
- const authRequest = await ((_this$_requestBuilder2 = this._requestBuilder) === null || _this$_requestBuilder2 === void 0 ? void 0 : _this$_requestBuilder2.prepareAuthRequest());
461
+ const authRequest = await ((_this$_requestBuilder2 = this._requestBuilder) === null || _this$_requestBuilder2 === undefined ? undefined : _this$_requestBuilder2.prepareAuthRequest());
462
462
  if (authRequest != null) {
463
463
  this._redirectCurrentPage(authRequest.url);
464
464
  }
@@ -492,7 +492,7 @@ class Auth {
492
492
  getUser(accessToken) {
493
493
  if (this.config.cacheCurrentUser) {
494
494
  var _this$_storage6;
495
- return (_this$_storage6 = this._storage) === null || _this$_storage6 === void 0 ? void 0 : _this$_storage6.getCachedUser(() => this.http.authorizedFetch(Auth.API_PROFILE_PATH, accessToken, this.config.userParams));
495
+ return (_this$_storage6 = this._storage) === null || _this$_storage6 === undefined ? undefined : _this$_storage6.getCachedUser(() => this.http.authorizedFetch(Auth.API_PROFILE_PATH, accessToken, this.config.userParams));
496
496
  } else {
497
497
  return this.http.authorizedFetch(Auth.API_PROFILE_PATH, accessToken, this.config.userParams);
498
498
  }
@@ -517,7 +517,7 @@ class Auth {
517
517
  var _this$_storage7;
518
518
  this._setPostponed(false);
519
519
  const accessToken = await this.requestToken();
520
- (_this$_storage7 = this._storage) === null || _this$_storage7 === void 0 || _this$_storage7.wipeCachedCurrentUser();
520
+ (_this$_storage7 = this._storage) === null || _this$_storage7 === undefined || _this$_storage7.wipeCachedCurrentUser();
521
521
  const user = await this.getUser(accessToken);
522
522
  this.user = user;
523
523
  this.listeners.trigger(USER_CHANGED_EVENT, user);
@@ -570,14 +570,14 @@ class Auth {
570
570
  onPostponeLogout,
571
571
  translations
572
572
  } = this.config;
573
- const cancelable = ((_this$user2 = this.user) === null || _this$user2 === void 0 ? void 0 : _this$user2.guest) || canCancel;
574
- const actualTranslations = translations !== null && translations !== void 0 ? translations : getTranslations();
573
+ const cancelable = ((_this$user2 = this.user) === null || _this$user2 === undefined ? undefined : _this$user2.guest) || canCancel;
574
+ const actualTranslations = translations !== null && translations !== undefined ? translations : getTranslations();
575
575
  this._createInitDeferred();
576
576
  const closeDialog = () => {
577
577
  /* eslint-disable @typescript-eslint/no-use-before-define */
578
- stopTokenListening === null || stopTokenListening === void 0 || stopTokenListening();
579
- stopMessageListening === null || stopMessageListening === void 0 || stopMessageListening();
580
- hide === null || hide === void 0 || hide();
578
+ stopTokenListening === null || stopTokenListening === undefined || stopTokenListening();
579
+ stopMessageListening === null || stopMessageListening === undefined || stopMessageListening();
580
+ hide === null || hide === undefined || hide();
581
581
  /* eslint-enable @typescript-eslint/no-use-before-define */
582
582
  };
583
583
  const onConfirm = () => {
@@ -590,28 +590,28 @@ class Auth {
590
590
  };
591
591
  const onCancel = () => {
592
592
  var _this$_embeddedFlow, _this$_storage8, _this$user3;
593
- (_this$_embeddedFlow = this._embeddedFlow) === null || _this$_embeddedFlow === void 0 || _this$_embeddedFlow.stop();
594
- (_this$_storage8 = this._storage) === null || _this$_storage8 === void 0 || _this$_storage8.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
593
+ (_this$_embeddedFlow = this._embeddedFlow) === null || _this$_embeddedFlow === undefined || _this$_embeddedFlow.stop();
594
+ (_this$_storage8 = this._storage) === null || _this$_storage8 === undefined || _this$_storage8.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
595
595
  closeDialog();
596
596
  if (!cancelable) {
597
597
  var _this$_initDeferred6, _this$_initDeferred6$;
598
- (_this$_initDeferred6 = this._initDeferred) === null || _this$_initDeferred6 === void 0 || (_this$_initDeferred6$ = _this$_initDeferred6.resolve) === null || _this$_initDeferred6$ === void 0 || _this$_initDeferred6$.call(_this$_initDeferred6);
598
+ (_this$_initDeferred6 = this._initDeferred) === null || _this$_initDeferred6 === undefined || (_this$_initDeferred6$ = _this$_initDeferred6.resolve) === null || _this$_initDeferred6$ === undefined || _this$_initDeferred6$.call(_this$_initDeferred6);
599
599
  this.listeners.trigger(LOGOUT_POSTPONED_EVENT);
600
600
  onPostponeLogout();
601
601
  return;
602
602
  }
603
- if ((_this$user3 = this.user) !== null && _this$user3 !== void 0 && _this$user3.guest && nonInteractive) {
603
+ if ((_this$user3 = this.user) !== null && _this$user3 !== undefined && _this$user3.guest && nonInteractive) {
604
604
  this.forceTokenUpdate();
605
605
  } else {
606
606
  var _this$_initDeferred7, _this$_initDeferred7$;
607
- (_this$_initDeferred7 = this._initDeferred) === null || _this$_initDeferred7 === void 0 || (_this$_initDeferred7$ = _this$_initDeferred7.resolve) === null || _this$_initDeferred7$ === void 0 || _this$_initDeferred7$.call(_this$_initDeferred7);
607
+ (_this$_initDeferred7 = this._initDeferred) === null || _this$_initDeferred7 === undefined || (_this$_initDeferred7$ = _this$_initDeferred7.resolve) === null || _this$_initDeferred7$ === undefined || _this$_initDeferred7$.call(_this$_initDeferred7);
608
608
  }
609
609
  };
610
610
  const onTryAgainClick = async () => {
611
- await (onTryAgain === null || onTryAgain === void 0 ? void 0 : onTryAgain());
611
+ await (onTryAgain === null || onTryAgain === undefined ? undefined : onTryAgain());
612
612
  closeDialog();
613
613
  };
614
- const hide = (_this$_authDialogServ = this._authDialogService) === null || _this$_authDialogServ === void 0 ? void 0 : _this$_authDialogServ.call(this, _objectSpread2(_objectSpread2({}, this._service), {}, {
614
+ const hide = (_this$_authDialogServ = this._authDialogService) === null || _this$_authDialogServ === undefined ? undefined : _this$_authDialogServ.call(this, _objectSpread2(_objectSpread2({}, this._service), {}, {
615
615
  loginCaption: actualTranslations.login,
616
616
  loginToCaption: actualTranslations.loginTo,
617
617
  confirmLabel: actualTranslations.login,
@@ -622,16 +622,16 @@ class Auth {
622
622
  onCancel,
623
623
  onTryAgain: onTryAgain ? onTryAgainClick : undefined
624
624
  }));
625
- const stopTokenListening = (_this$_storage9 = this._storage) === null || _this$_storage9 === void 0 ? void 0 : _this$_storage9.onTokenChange(token => {
625
+ const stopTokenListening = (_this$_storage9 = this._storage) === null || _this$_storage9 === undefined ? undefined : _this$_storage9.onTokenChange(token => {
626
626
  if (token) {
627
627
  var _this$_initDeferred8, _this$_initDeferred8$;
628
628
  closeDialog();
629
- (_this$_initDeferred8 = this._initDeferred) === null || _this$_initDeferred8 === void 0 || (_this$_initDeferred8$ = _this$_initDeferred8.resolve) === null || _this$_initDeferred8$ === void 0 || _this$_initDeferred8$.call(_this$_initDeferred8);
629
+ (_this$_initDeferred8 = this._initDeferred) === null || _this$_initDeferred8 === undefined || (_this$_initDeferred8$ = _this$_initDeferred8.resolve) === null || _this$_initDeferred8$ === undefined || _this$_initDeferred8$.call(_this$_initDeferred8);
630
630
  }
631
631
  });
632
- const stopMessageListening = (_this$_storage10 = this._storage) === null || _this$_storage10 === void 0 ? void 0 : _this$_storage10.onMessage(Auth.CLOSE_WINDOW_MESSAGE, () => {
632
+ const stopMessageListening = (_this$_storage10 = this._storage) === null || _this$_storage10 === undefined ? undefined : _this$_storage10.onMessage(Auth.CLOSE_WINDOW_MESSAGE, () => {
633
633
  var _this$_embeddedFlow2;
634
- return (_this$_embeddedFlow2 = this._embeddedFlow) === null || _this$_embeddedFlow2 === void 0 ? void 0 : _this$_embeddedFlow2.stop();
634
+ return (_this$_embeddedFlow2 = this._embeddedFlow) === null || _this$_embeddedFlow2 === undefined ? undefined : _this$_embeddedFlow2.stop();
635
635
  });
636
636
  }
637
637
  _showUserChangedDialog(_ref) {
@@ -647,17 +647,17 @@ class Auth {
647
647
  this._createInitDeferred();
648
648
  const done = () => {
649
649
  var _this$_initDeferred9, _this$_initDeferred9$;
650
- (_this$_initDeferred9 = this._initDeferred) === null || _this$_initDeferred9 === void 0 || (_this$_initDeferred9$ = _this$_initDeferred9.resolve) === null || _this$_initDeferred9$ === void 0 || _this$_initDeferred9$.call(_this$_initDeferred9);
650
+ (_this$_initDeferred9 = this._initDeferred) === null || _this$_initDeferred9 === undefined || (_this$_initDeferred9$ = _this$_initDeferred9.resolve) === null || _this$_initDeferred9$ === undefined || _this$_initDeferred9$.call(_this$_initDeferred9);
651
651
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
652
- hide === null || hide === void 0 || hide();
652
+ hide === null || hide === undefined || hide();
653
653
  };
654
- const hide = (_this$_authDialogServ2 = this._authDialogService) === null || _this$_authDialogServ2 === void 0 ? void 0 : _this$_authDialogServ2.call(this, _objectSpread2(_objectSpread2({}, this._service), {}, {
655
- 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 : ''),
656
- loginCaption: (_translations$login = translations === null || translations === void 0 ? void 0 : translations.login) !== null && _translations$login !== void 0 ? _translations$login : translate('login'),
657
- loginToCaption: (_translations$loginTo = translations === null || translations === void 0 ? void 0 : translations.loginTo) !== null && _translations$loginTo !== void 0 ? _translations$loginTo : translate('loginTo'),
658
- confirmLabel: (_translations$applyCh = translations === null || translations === void 0 ? void 0 : translations.applyChange) !== null && _translations$applyCh !== void 0 ? _translations$applyCh : translate('applyChange'),
659
- tryAgainLabel: (_translations$tryAgai = translations === null || translations === void 0 ? void 0 : translations.tryAgainLabel) !== null && _translations$tryAgai !== void 0 ? _translations$tryAgai : translate('tryAgainLabel'),
660
- cancelLabel: (_translations$postpon = translations === null || translations === void 0 ? void 0 : translations.postpone) !== null && _translations$postpon !== void 0 ? _translations$postpon : translate('postpone'),
654
+ const hide = (_this$_authDialogServ2 = this._authDialogService) === null || _this$_authDialogServ2 === undefined ? undefined : _this$_authDialogServ2.call(this, _objectSpread2(_objectSpread2({}, this._service), {}, {
655
+ title: (_translations$youHave = translations === null || translations === undefined ? undefined : translations.youHaveLoggedInAs) !== null && _translations$youHave !== undefined ? _translations$youHave : translate('youHaveLoggedInAs').replace('%userName%', (_newUser$name = newUser.name) !== null && _newUser$name !== undefined ? _newUser$name : '').replace('{{userName}}', (_newUser$name2 = newUser.name) !== null && _newUser$name2 !== undefined ? _newUser$name2 : ''),
656
+ loginCaption: (_translations$login = translations === null || translations === undefined ? undefined : translations.login) !== null && _translations$login !== undefined ? _translations$login : translate('login'),
657
+ loginToCaption: (_translations$loginTo = translations === null || translations === undefined ? undefined : translations.loginTo) !== null && _translations$loginTo !== undefined ? _translations$loginTo : translate('loginTo'),
658
+ confirmLabel: (_translations$applyCh = translations === null || translations === undefined ? undefined : translations.applyChange) !== null && _translations$applyCh !== undefined ? _translations$applyCh : translate('applyChange'),
659
+ tryAgainLabel: (_translations$tryAgai = translations === null || translations === undefined ? undefined : translations.tryAgainLabel) !== null && _translations$tryAgai !== undefined ? _translations$tryAgai : translate('tryAgainLabel'),
660
+ cancelLabel: (_translations$postpon = translations === null || translations === undefined ? undefined : translations.postpone) !== null && _translations$postpon !== undefined ? _translations$postpon : translate('postpone'),
661
661
  onConfirm: () => {
662
662
  done();
663
663
  onApply();
@@ -703,13 +703,13 @@ class Auth {
703
703
  /* eslint-disable @typescript-eslint/no-use-before-define */
704
704
  hide();
705
705
  window.removeEventListener('online', onCheckAgain);
706
- stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 || stopListeningCloseMessage();
706
+ stopListeningCloseMessage === null || stopListeningCloseMessage === undefined || stopListeningCloseMessage();
707
707
  /* eslint-enable @typescript-eslint/no-use-before-define */
708
- (_this$_storage11 = this._storage) === null || _this$_storage11 === void 0 || _this$_storage11.sendMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, Date.now());
708
+ (_this$_storage11 = this._storage) === null || _this$_storage11 === undefined || _this$_storage11.sendMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, Date.now());
709
709
  clearTimeout(timerId);
710
710
  };
711
- const stopListeningCloseMessage = (_this$_storage12 = this._storage) === null || _this$_storage12 === void 0 ? void 0 : _this$_storage12.onMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, () => {
712
- stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 || stopListeningCloseMessage();
711
+ const stopListeningCloseMessage = (_this$_storage12 = this._storage) === null || _this$_storage12 === undefined ? undefined : _this$_storage12.onMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, () => {
712
+ stopListeningCloseMessage === null || stopListeningCloseMessage === undefined || stopListeningCloseMessage();
713
713
  done();
714
714
  resolve();
715
715
  });
@@ -726,7 +726,7 @@ class Auth {
726
726
  onCheckAgain,
727
727
  onPostpone,
728
728
  backendError,
729
- translations: translations !== null && translations !== void 0 ? translations : getTranslationsWithFallback()
729
+ translations: translations !== null && translations !== undefined ? translations : getTranslationsWithFallback()
730
730
  });
731
731
  window.addEventListener('online', onCheckAgain);
732
732
  function networkWatchdog() {
@@ -750,15 +750,15 @@ class Auth {
750
750
  await this._checkBackendsStatusesIfEnabled();
751
751
  await this.listeners.trigger('logout');
752
752
  this._updateDomainUser(null);
753
- await ((_this$_storage13 = this._storage) === null || _this$_storage13 === void 0 ? void 0 : _this$_storage13.wipeToken());
754
- const authRequest = await ((_this$_requestBuilder3 = this._requestBuilder) === null || _this$_requestBuilder3 === void 0 ? void 0 : _this$_requestBuilder3.prepareAuthRequest(requestParams));
753
+ await ((_this$_storage13 = this._storage) === null || _this$_storage13 === undefined ? undefined : _this$_storage13.wipeToken());
754
+ const authRequest = await ((_this$_requestBuilder3 = this._requestBuilder) === null || _this$_requestBuilder3 === undefined ? undefined : _this$_requestBuilder3.prepareAuthRequest(requestParams));
755
755
  if (authRequest != null) {
756
756
  this._redirectCurrentPage(authRequest.url);
757
757
  }
758
758
  }
759
759
  async _runEmbeddedLogin() {
760
760
  var _this$_storage14;
761
- (_this$_storage14 = this._storage) === null || _this$_storage14 === void 0 || _this$_storage14.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
761
+ (_this$_storage14 = this._storage) === null || _this$_storage14 === undefined || _this$_storage14.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
762
762
  try {
763
763
  var _this$_embeddedFlow3;
764
764
  this._isLoginWindowOpen = true;
@@ -867,7 +867,7 @@ class Auth {
867
867
  const expires = TokenValidator._epoch() + effectiveExpiresIn;
868
868
  if (accessToken != null) {
869
869
  var _this$_storage15;
870
- await ((_this$_storage15 = this._storage) === null || _this$_storage15 === void 0 ? void 0 : _this$_storage15.saveToken({
870
+ await ((_this$_storage15 = this._storage) === null || _this$_storage15 === undefined ? undefined : _this$_storage15.saveToken({
871
871
  accessToken,
872
872
  scopes,
873
873
  expires,
@@ -882,8 +882,8 @@ class Auth {
882
882
  if (authResponse && this.config.cleanHash) {
883
883
  this.setHash('');
884
884
  }
885
- const stateId = authResponse === null || authResponse === void 0 ? void 0 : authResponse.restoreAuthState;
886
- return (await (stateId && ((_this$_storage16 = this._storage) === null || _this$_storage16 === void 0 ? void 0 : _this$_storage16.getState(stateId)))) || {};
885
+ const stateId = authResponse === null || authResponse === undefined ? undefined : authResponse.restoreAuthState;
886
+ return (await (stateId && ((_this$_storage16 = this._storage) === null || _this$_storage16 === undefined ? undefined : _this$_storage16.getState(stateId)))) || {};
887
887
  }
888
888
  _checkBackendsAreUp() {
889
889
  const abortCtrl = new AbortController();
@@ -8,10 +8,10 @@ import '../global/url.js';
8
8
  const HUB_AUTH_PAGE_OPENED = 'HUB_AUTH_PAGE_OPENED';
9
9
  class BackgroundFlow {
10
10
  constructor(requestBuilder, storage, timeout) {
11
- _defineProperty(this, "_requestBuilder", void 0);
12
- _defineProperty(this, "_storage", void 0);
13
- _defineProperty(this, "_timeout", void 0);
14
- _defineProperty(this, "_promise", void 0);
11
+ _defineProperty(this, "_requestBuilder", undefined);
12
+ _defineProperty(this, "_storage", undefined);
13
+ _defineProperty(this, "_timeout", undefined);
14
+ _defineProperty(this, "_promise", undefined);
15
15
  this._requestBuilder = requestBuilder;
16
16
  this._storage = storage;
17
17
  this._timeout = timeout;
@@ -59,12 +59,12 @@ import '../_helpers/link.js';
59
59
  class IFrameFlow {
60
60
  constructor(requestBuilder, storage, translations) {
61
61
  _defineProperty(this, "hideDialog", null);
62
- _defineProperty(this, "_requestBuilder", void 0);
63
- _defineProperty(this, "_storage", void 0);
64
- _defineProperty(this, "_translations", void 0);
65
- _defineProperty(this, "reject", void 0);
66
- _defineProperty(this, "_promise", void 0);
67
- _defineProperty(this, "_loginWindow", void 0);
62
+ _defineProperty(this, "_requestBuilder", undefined);
63
+ _defineProperty(this, "_storage", undefined);
64
+ _defineProperty(this, "_translations", undefined);
65
+ _defineProperty(this, "reject", undefined);
66
+ _defineProperty(this, "_promise", undefined);
67
+ _defineProperty(this, "_loginWindow", undefined);
68
68
  _defineProperty(this, "_reset", () => {
69
69
  this._promise = null;
70
70
  this.hideDialog = null;
@@ -119,7 +119,7 @@ class IFrameFlow {
119
119
  });
120
120
  const cleanUp = () => {
121
121
  var _this$hideDialog;
122
- (_this$hideDialog = this.hideDialog) === null || _this$hideDialog === void 0 || _this$hideDialog.call(this);
122
+ (_this$hideDialog = this.hideDialog) === null || _this$hideDialog === undefined || _this$hideDialog.call(this);
123
123
  removeStateListener();
124
124
  removeTokenListener();
125
125
  };
@@ -16,8 +16,8 @@ class AuthRequestBuilder {
16
16
  * @param {AuthStorage} storage
17
17
  */
18
18
  constructor(config, storage) {
19
- _defineProperty(this, "config", void 0);
20
- _defineProperty(this, "storage", void 0);
19
+ _defineProperty(this, "config", undefined);
20
+ _defineProperty(this, "storage", undefined);
21
21
  this.config = config;
22
22
  this.storage = storage;
23
23
  }
@@ -64,7 +64,7 @@ class AuthRequestBuilder {
64
64
  */
65
65
  _saveState(id, storedState) {
66
66
  var _this$storage;
67
- return (_this$storage = this.storage) === null || _this$storage === void 0 ? void 0 : _this$storage.saveState(id, storedState);
67
+ return (_this$storage = this.storage) === null || _this$storage === undefined ? undefined : _this$storage.saveState(id, storedState);
68
68
  }
69
69
  }
70
70
  _defineProperty(AuthRequestBuilder, "_uuid", uuid.generate);
@@ -9,9 +9,9 @@ class AuthError extends ExtendableError {
9
9
  constructor() {
10
10
  let authResponse = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
11
11
  super(authResponse.errorDescription);
12
- _defineProperty(this, "code", void 0);
13
- _defineProperty(this, "uri", void 0);
14
- _defineProperty(this, "stateId", void 0);
12
+ _defineProperty(this, "code", undefined);
13
+ _defineProperty(this, "uri", undefined);
14
+ _defineProperty(this, "stateId", undefined);
15
15
  this.code = authResponse.error;
16
16
  this.uri = authResponse.errorUri;
17
17
  this.stateId = authResponse.state;
@@ -28,7 +28,7 @@ class AuthError extends ExtendableError {
28
28
  */
29
29
  class AuthResponseParser {
30
30
  constructor() {
31
- _defineProperty(this, "_authResponse", void 0);
31
+ _defineProperty(this, "_authResponse", undefined);
32
32
  this._authResponse = this.readAuthResponseFromURL();
33
33
  }
34
34
  static convertKey(key) {