@jetbrains/ring-ui 5.1.20 → 5.1.22
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.
- package/components/auth/request-builder.d.ts +1 -0
- package/components/code/code.d.ts +1 -0
- package/components/grid/row.js +3 -3
- package/components/header/profile.js +1 -1
- package/components/island/header.js +1 -1
- package/components/list/list.d.ts +0 -1
- package/components/list/list.js +5 -6
- package/components/loader/loader__core.js +6 -6
- package/components/popup/popup.js +3 -3
- package/components/progress-bar/progress-bar.css +6 -0
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +9 -3
- package/components/query-assist/query-assist.js +1 -1
- package/components/select/select-popup.css +4 -0
- package/components/select/select.js +21 -21
- package/dist/_helpers/select__filter.js +1 -1
- package/dist/alert/alert.js +2 -0
- package/dist/alert-service/alert-service.js +2 -0
- package/dist/analytics/analytics.js +1 -0
- package/dist/analytics/analytics__custom-plugin.js +1 -2
- package/dist/analytics/analytics__ga-plugin.js +1 -1
- package/dist/auth/auth.js +3 -0
- package/dist/auth/auth__core.js +38 -35
- package/dist/auth/background-flow.js +3 -2
- package/dist/auth/down-notification.js +2 -0
- package/dist/auth/iframe-flow.js +7 -3
- package/dist/auth/landing.js +3 -0
- package/dist/auth/request-builder.d.ts +1 -0
- package/dist/auth/request-builder.js +4 -1
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +11 -4
- package/dist/auth/token-validator.js +5 -3
- package/dist/auth/window-flow.js +4 -3
- package/dist/auth-dialog/auth-dialog.js +2 -0
- package/dist/auth-dialog-service/auth-dialog-service.js +2 -0
- package/dist/auth-ng/auth-ng.js +3 -1
- package/dist/autofocus-ng/autofocus-ng.js +1 -0
- package/dist/avatar/avatar.js +3 -0
- package/dist/avatar/fallback-avatar.js +1 -0
- package/dist/avatar-editor-ng/avatar-editor-ng.js +3 -0
- package/dist/avatar-ng/avatar-ng.js +3 -0
- package/dist/badge-ng/badge-ng.js +1 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +1 -0
- package/dist/button-ng/button-ng.js +2 -0
- package/dist/caret/caret.js +5 -4
- package/dist/checkbox-ng/checkbox-ng.js +1 -0
- package/dist/clipboard/clipboard-fallback.js +3 -3
- package/dist/clipboard/clipboard.js +2 -0
- package/dist/code/code.d.ts +1 -0
- package/dist/code/code.js +0 -1
- package/dist/confirm/confirm.js +2 -0
- package/dist/confirm-ng/confirm-ng.js +2 -0
- package/dist/confirm-service/confirm-service.js +2 -0
- package/dist/data-list/data-list.js +7 -2
- package/dist/data-list/item.js +1 -0
- package/dist/data-list/selection.js +2 -0
- package/dist/data-list-ng/data-list-ng.js +6 -0
- package/dist/date-picker/date-picker.js +3 -1
- package/dist/date-picker/date-popup.js +2 -2
- package/dist/dialog/dialog.js +2 -0
- package/dist/dialog-ng/dialog-ng.js +4 -0
- package/dist/docked-panel-ng/docked-panel-ng.js +1 -0
- package/dist/dropdown/dropdown.js +2 -2
- package/dist/dropdown-menu/dropdown-menu.js +5 -0
- package/dist/editable-heading/editable-heading.js +6 -4
- package/dist/error-bubble/error-bubble.js +2 -0
- package/dist/error-message-ng/error-message-ng.js +1 -0
- package/dist/form-ng/form-ng.js +2 -0
- package/dist/global/angular-component-factory.js +1 -0
- package/dist/global/dom.js +1 -0
- package/dist/global/focus-sensor-hoc.js +6 -6
- package/dist/global/normalize-indent.js +0 -1
- package/dist/global/react-dom-renderer.js +1 -0
- package/dist/global/rerender-hoc.js +1 -0
- package/dist/global/schedule-raf.js +1 -1
- package/dist/global/theme.js +2 -0
- package/dist/global/url.js +1 -0
- package/dist/grid/col.js +0 -1
- package/dist/grid/grid.js +0 -1
- package/dist/grid/row.js +7 -2
- package/dist/header/header.js +5 -0
- package/dist/header/profile.js +6 -0
- package/dist/header/services.js +2 -0
- package/dist/header/smart-profile.js +5 -0
- package/dist/header/smart-services.js +5 -2
- package/dist/heading-ng/heading-ng.js +1 -0
- package/dist/http/http.js +1 -0
- package/dist/http/http.mock.js +1 -0
- package/dist/hub-source/hub-source.js +2 -0
- package/dist/hub-source/hub-source__user.js +1 -0
- package/dist/hub-source/hub-source__users-groups.js +2 -0
- package/dist/icon-ng/icon-ng.js +1 -0
- package/dist/input/input.js +2 -2
- package/dist/input-ng/input-ng.js +2 -0
- package/dist/island/content.js +1 -1
- package/dist/island/header.js +1 -0
- package/dist/list/list.d.ts +0 -1
- package/dist/list/list.js +10 -3
- package/dist/list/list__item.js +3 -0
- package/dist/list/list__users-groups-source.js +5 -0
- package/dist/loader/loader.js +3 -1
- package/dist/loader/loader__core.js +21 -7
- package/dist/loader-ng/loader-ng.js +2 -0
- package/dist/loader-screen/loader-screen.js +2 -0
- package/dist/loader-screen-ng/loader-screen-ng.js +2 -2
- package/dist/login-dialog/login-dialog.js +4 -0
- package/dist/login-dialog/service.js +4 -0
- package/dist/markdown/code.js +1 -1
- package/dist/markdown/markdown.js +1 -1
- package/dist/message/message.js +2 -0
- package/dist/message-bundle-ng/message-bundle-ng.js +0 -1
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +9 -4
- package/dist/pager-ng/pager-ng.js +5 -0
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -0
- package/dist/permissions-ng/permissions-ng.js +3 -0
- package/dist/place-under-ng/place-under-ng.js +1 -0
- package/dist/popup/popup.js +5 -0
- package/dist/popup/position.js +1 -0
- package/dist/popup-menu/popup-menu.js +5 -0
- package/dist/progress-bar/progress-bar.d.ts +6 -0
- package/dist/progress-bar/progress-bar.js +11 -4
- package/dist/progress-bar-ng/progress-bar-ng.js +1 -0
- package/dist/promised-click-ng/promised-click-ng.js +2 -0
- package/dist/query-assist/query-assist.js +18 -12
- package/dist/query-assist/query-assist__suggestions.js +5 -0
- package/dist/query-assist-ng/query-assist-ng.js +5 -0
- package/dist/save-field-ng/save-field-ng.js +5 -0
- package/dist/select/select.js +27 -2
- package/dist/select/select__filter.js +5 -0
- package/dist/select/select__popup.js +5 -0
- package/dist/select-ng/select-ng.js +5 -2
- package/dist/select-ng/select-ng__lazy.js +6 -1
- package/dist/select-ng/select-ng__options.js +1 -0
- package/dist/shortcuts/core.js +2 -0
- package/dist/shortcuts/shortcuts-hoc.js +2 -0
- package/dist/shortcuts/shortcuts.js +2 -0
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +4 -0
- package/dist/shortcuts-ng/shortcuts-ng.js +4 -0
- package/dist/sidebar-ng/sidebar-ng.js +2 -0
- package/dist/storage/storage.js +3 -0
- package/dist/storage/storage__fallback.js +5 -2
- package/dist/storage/storage__local.js +2 -0
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +2 -1
- package/dist/table/multitable.js +8 -7
- package/dist/table/row-with-focus-sensor.js +6 -4
- package/dist/table/row.js +2 -0
- package/dist/table/selection-shortcuts-hoc.js +12 -11
- package/dist/table/selection.js +1 -0
- package/dist/table/smart-table.js +4 -0
- package/dist/table/table.js +4 -0
- package/dist/table-legacy-ng/table-legacy-ng.js +5 -0
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +5 -0
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +2 -0
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +1 -0
- package/dist/table-ng/smart-table-ng.js +5 -0
- package/dist/table-ng/table-ng.js +5 -0
- package/dist/tabs/collapsible-more.js +5 -0
- package/dist/tabs/collapsible-tabs.js +5 -0
- package/dist/tabs/dumb-tabs.js +5 -0
- package/dist/tabs/smart-tabs.js +5 -0
- package/dist/tabs/tabs.js +5 -0
- package/dist/tabs-ng/tabs-ng.js +2 -0
- package/dist/tag/tag.js +1 -1
- package/dist/tags-input/tags-input.js +12 -7
- package/dist/tags-input-ng/tags-input-ng.js +5 -0
- package/dist/toggle-ng/toggle-ng.js +1 -0
- package/dist/tooltip/tooltip.js +4 -2
- package/dist/tooltip-ng/tooltip-ng.js +2 -0
- package/dist/user-agreement/service.js +4 -1
- package/dist/user-agreement/user-agreement.js +3 -1
- package/dist/user-card/card.js +4 -0
- package/dist/user-card/smart-user-card-tooltip.js +4 -0
- package/dist/user-card/tooltip.js +4 -0
- package/dist/user-card/user-card.js +4 -0
- package/dist/user-card-ng/user-card-ng.js +4 -0
- package/package.json +32 -32
package/dist/auth/auth__core.js
CHANGED
|
@@ -25,6 +25,7 @@ import AuthRequestBuilder from './request-builder.js';
|
|
|
25
25
|
import BackgroundFlow from './background-flow.js';
|
|
26
26
|
import TokenValidator from './token-validator.js';
|
|
27
27
|
import 'core-js/modules/es.string.match.js';
|
|
28
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
28
29
|
import 'core-js/modules/es.map.js';
|
|
29
30
|
import 'core-js/modules/es.array.map.js';
|
|
30
31
|
import 'core-js/modules/es.weak-map.js';
|
|
@@ -60,6 +61,7 @@ import '../loader-inline/loader-inline.js';
|
|
|
60
61
|
import '../global/data-tests.js';
|
|
61
62
|
import '../_helpers/loader-inline.js';
|
|
62
63
|
import '../global/dom.js';
|
|
64
|
+
import 'core-js/modules/es.object.assign.js';
|
|
63
65
|
import 'core-js/modules/es.string.split.js';
|
|
64
66
|
import '../button/button.js';
|
|
65
67
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -74,6 +76,7 @@ import '../shortcuts/shortcuts.js';
|
|
|
74
76
|
import '../shortcuts/core.js';
|
|
75
77
|
import 'core-js/modules/es.array.slice.js';
|
|
76
78
|
import 'core-js/modules/es.array.splice.js';
|
|
79
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
77
80
|
import 'combokeys';
|
|
78
81
|
import '../global/sniffer.js';
|
|
79
82
|
import 'sniffr';
|
|
@@ -318,7 +321,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
318
321
|
*/
|
|
319
322
|
}, {
|
|
320
323
|
key: "init",
|
|
321
|
-
value: function () {
|
|
324
|
+
value: (function () {
|
|
322
325
|
var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
323
326
|
var _this$_storage3,
|
|
324
327
|
_this2 = this;
|
|
@@ -326,7 +329,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
326
329
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
327
330
|
while (1) switch (_context3.prev = _context3.next) {
|
|
328
331
|
case 0:
|
|
329
|
-
(_this$_storage3 = this._storage) === null || _this$_storage3 === void 0
|
|
332
|
+
(_this$_storage3 = this._storage) === null || _this$_storage3 === void 0 || _this$_storage3.onTokenChange( /*#__PURE__*/function () {
|
|
330
333
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(token) {
|
|
331
334
|
var isGuest;
|
|
332
335
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -433,7 +436,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
433
436
|
case 23:
|
|
434
437
|
state = _context3.sent;
|
|
435
438
|
case 24:
|
|
436
|
-
(_this$_initDeferred = this._initDeferred) === null || _this$_initDeferred === void 0 || (_this$_initDeferred$r = _this$_initDeferred.resolve) === null || _this$_initDeferred$r === void 0
|
|
439
|
+
(_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
440
|
return _context3.abrupt("return", (_state = state) === null || _state === void 0 ? void 0 : _state.restoreLocation);
|
|
438
441
|
case 28:
|
|
439
442
|
_context3.prev = 28;
|
|
@@ -442,7 +445,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
442
445
|
_context3.next = 35;
|
|
443
446
|
break;
|
|
444
447
|
}
|
|
445
|
-
(_this$_initDeferred2 = this._initDeferred) === null || _this$_initDeferred2 === void 0 || (_this$_initDeferred2$ = _this$_initDeferred2.resolve) === null || _this$_initDeferred2$ === void 0
|
|
448
|
+
(_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
449
|
_context3.next = 34;
|
|
447
450
|
return this.requestUser();
|
|
448
451
|
case 34:
|
|
@@ -459,7 +462,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
459
462
|
return _init.apply(this, arguments);
|
|
460
463
|
}
|
|
461
464
|
return init;
|
|
462
|
-
}()
|
|
465
|
+
}())
|
|
463
466
|
}, {
|
|
464
467
|
key: "sendRedirect",
|
|
465
468
|
value: function () {
|
|
@@ -519,7 +522,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
519
522
|
break;
|
|
520
523
|
}
|
|
521
524
|
state.error = error;
|
|
522
|
-
(_this$_storage5 = this._storage) === null || _this$_storage5 === void 0
|
|
525
|
+
(_this$_storage5 = this._storage) === null || _this$_storage5 === void 0 || _this$_storage5.saveState(error.stateId, state);
|
|
523
526
|
// Return endless promise in the background to avoid service start
|
|
524
527
|
return _context5.abrupt("return", new Promise(noop));
|
|
525
528
|
case 9:
|
|
@@ -578,14 +581,14 @@ var Auth = /*#__PURE__*/function () {
|
|
|
578
581
|
_context6.next = 13;
|
|
579
582
|
return (_this$_tokenValidator2 = this._tokenValidator) === null || _this$_tokenValidator2 === void 0 ? void 0 : _this$_tokenValidator2.validateToken();
|
|
580
583
|
case 13:
|
|
581
|
-
(_this$_initDeferred3 = this._initDeferred) === null || _this$_initDeferred3 === void 0 || (_this$_initDeferred3$ = _this$_initDeferred3.resolve) === null || _this$_initDeferred3$ === void 0
|
|
584
|
+
(_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
585
|
return _context6.abrupt("return", undefined);
|
|
583
586
|
case 17:
|
|
584
587
|
_context6.prev = 17;
|
|
585
588
|
_context6.t0 = _context6["catch"](8);
|
|
586
589
|
return _context6.abrupt("return", _context6.t0 instanceof Error ? this.sendRedirect(_context6.t0) : undefined);
|
|
587
590
|
case 20:
|
|
588
|
-
(_this$_initDeferred4 = this._initDeferred) === null || _this$_initDeferred4 === void 0 || (_this$_initDeferred4$ = _this$_initDeferred4.reject) === null || _this$_initDeferred4$ === void 0
|
|
591
|
+
(_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
592
|
throw error;
|
|
590
593
|
case 22:
|
|
591
594
|
case "end":
|
|
@@ -605,7 +608,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
605
608
|
*/
|
|
606
609
|
}, {
|
|
607
610
|
key: "requestToken",
|
|
608
|
-
value: function () {
|
|
611
|
+
value: (function () {
|
|
609
612
|
var _requestToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
610
613
|
var _this$_initDeferred5, _yield$this$_tokenVal, _this$_tokenValidator3;
|
|
611
614
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
@@ -668,9 +671,10 @@ var Auth = /*#__PURE__*/function () {
|
|
|
668
671
|
* Get new token in the background or redirect to the login page.
|
|
669
672
|
* @return {Promise.<string>}
|
|
670
673
|
*/
|
|
674
|
+
)
|
|
671
675
|
}, {
|
|
672
676
|
key: "forceTokenUpdate",
|
|
673
|
-
value: function () {
|
|
677
|
+
value: (function () {
|
|
674
678
|
var _forceTokenUpdate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
675
679
|
var _this4 = this;
|
|
676
680
|
var _yield$this$_backgrou, _this$_backgroundFlow2, _this$_requestBuilder2, authRequest;
|
|
@@ -793,7 +797,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
793
797
|
return _forceTokenUpdate.apply(this, arguments);
|
|
794
798
|
}
|
|
795
799
|
return forceTokenUpdate;
|
|
796
|
-
}()
|
|
800
|
+
}())
|
|
797
801
|
}, {
|
|
798
802
|
key: "loadCurrentService",
|
|
799
803
|
value: function () {
|
|
@@ -868,7 +872,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
868
872
|
*/
|
|
869
873
|
}, {
|
|
870
874
|
key: "requestUser",
|
|
871
|
-
value: function () {
|
|
875
|
+
value: (function () {
|
|
872
876
|
var _requestUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
873
877
|
var accessToken, user;
|
|
874
878
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
@@ -906,7 +910,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
906
910
|
return _requestUser.apply(this, arguments);
|
|
907
911
|
}
|
|
908
912
|
return requestUser;
|
|
909
|
-
}()
|
|
913
|
+
}())
|
|
910
914
|
}, {
|
|
911
915
|
key: "updateUser",
|
|
912
916
|
value: function () {
|
|
@@ -921,7 +925,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
921
925
|
return this.requestToken();
|
|
922
926
|
case 3:
|
|
923
927
|
accessToken = _context12.sent;
|
|
924
|
-
(_this$_storage7 = this._storage) === null || _this$_storage7 === void 0
|
|
928
|
+
(_this$_storage7 = this._storage) === null || _this$_storage7 === void 0 || _this$_storage7.wipeCachedCurrentUser();
|
|
925
929
|
_context12.next = 7;
|
|
926
930
|
return this.getUser(accessToken);
|
|
927
931
|
case 7:
|
|
@@ -1028,12 +1032,11 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1028
1032
|
this._createInitDeferred();
|
|
1029
1033
|
var closeDialog = function closeDialog() {
|
|
1030
1034
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
1031
|
-
stopTokenListening === null || stopTokenListening === void 0
|
|
1032
|
-
stopMessageListening === null || stopMessageListening === void 0
|
|
1033
|
-
hide === null || hide === void 0
|
|
1035
|
+
stopTokenListening === null || stopTokenListening === void 0 || stopTokenListening();
|
|
1036
|
+
stopMessageListening === null || stopMessageListening === void 0 || stopMessageListening();
|
|
1037
|
+
hide === null || hide === void 0 || hide();
|
|
1034
1038
|
/* eslint-enable @typescript-eslint/no-use-before-define */
|
|
1035
1039
|
};
|
|
1036
|
-
|
|
1037
1040
|
var onConfirm = function onConfirm() {
|
|
1038
1041
|
if (!embeddedLogin) {
|
|
1039
1042
|
closeDialog();
|
|
@@ -1044,12 +1047,12 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1044
1047
|
};
|
|
1045
1048
|
var onCancel = function onCancel() {
|
|
1046
1049
|
var _this7$_embeddedFlow, _this7$_storage, _this7$user;
|
|
1047
|
-
(_this7$_embeddedFlow = _this7._embeddedFlow) === null || _this7$_embeddedFlow === void 0
|
|
1048
|
-
(_this7$_storage = _this7._storage) === null || _this7$_storage === void 0
|
|
1050
|
+
(_this7$_embeddedFlow = _this7._embeddedFlow) === null || _this7$_embeddedFlow === void 0 || _this7$_embeddedFlow.stop();
|
|
1051
|
+
(_this7$_storage = _this7._storage) === null || _this7$_storage === void 0 || _this7$_storage.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
|
|
1049
1052
|
closeDialog();
|
|
1050
1053
|
if (!cancelable) {
|
|
1051
1054
|
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
|
|
1055
|
+
(_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
1056
|
_this7.listeners.trigger(LOGOUT_POSTPONED_EVENT);
|
|
1054
1057
|
onPostponeLogout();
|
|
1055
1058
|
return;
|
|
@@ -1058,7 +1061,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1058
1061
|
_this7.forceTokenUpdate();
|
|
1059
1062
|
} else {
|
|
1060
1063
|
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
|
|
1064
|
+
(_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
1065
|
}
|
|
1063
1066
|
};
|
|
1064
1067
|
var onTryAgainClick = /*#__PURE__*/function () {
|
|
@@ -1095,7 +1098,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1095
1098
|
if (token) {
|
|
1096
1099
|
var _this7$_initDeferred4, _this7$_initDeferred5;
|
|
1097
1100
|
closeDialog();
|
|
1098
|
-
(_this7$_initDeferred4 = _this7._initDeferred) === null || _this7$_initDeferred4 === void 0 || (_this7$_initDeferred5 = _this7$_initDeferred4.resolve) === null || _this7$_initDeferred5 === void 0
|
|
1101
|
+
(_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
1102
|
}
|
|
1100
1103
|
});
|
|
1101
1104
|
var stopMessageListening = (_this$_storage9 = this._storage) === null || _this$_storage9 === void 0 ? void 0 : _this$_storage9.onMessage(Auth.CLOSE_WINDOW_MESSAGE, function () {
|
|
@@ -1123,9 +1126,9 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1123
1126
|
this._createInitDeferred();
|
|
1124
1127
|
var done = function done() {
|
|
1125
1128
|
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
|
|
1129
|
+
(_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
1130
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
1128
|
-
hide === null || hide === void 0
|
|
1131
|
+
hide === null || hide === void 0 || hide();
|
|
1129
1132
|
};
|
|
1130
1133
|
var hide = (_this$_authDialogServ2 = this._authDialogService) === null || _this$_authDialogServ2 === void 0 ? void 0 : _this$_authDialogServ2.call(this, _objectSpread2(_objectSpread2({}, this._service), {}, {
|
|
1131
1134
|
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 +1186,13 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1183
1186
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
1184
1187
|
hide();
|
|
1185
1188
|
window.removeEventListener('online', onCheckAgain);
|
|
1186
|
-
stopListeningCloseMessage === null || stopListeningCloseMessage === void 0
|
|
1189
|
+
stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 || stopListeningCloseMessage();
|
|
1187
1190
|
/* eslint-enable @typescript-eslint/no-use-before-define */
|
|
1188
|
-
(_this9$_storage = _this9._storage) === null || _this9$_storage === void 0
|
|
1191
|
+
(_this9$_storage = _this9._storage) === null || _this9$_storage === void 0 || _this9$_storage.sendMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, Date.now());
|
|
1189
1192
|
clearTimeout(timerId);
|
|
1190
1193
|
};
|
|
1191
1194
|
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
|
|
1195
|
+
stopListeningCloseMessage === null || stopListeningCloseMessage === void 0 || stopListeningCloseMessage();
|
|
1193
1196
|
done();
|
|
1194
1197
|
resolve();
|
|
1195
1198
|
});
|
|
@@ -1238,7 +1241,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1238
1241
|
*/
|
|
1239
1242
|
}, {
|
|
1240
1243
|
key: "logout",
|
|
1241
|
-
value: function () {
|
|
1244
|
+
value: (function () {
|
|
1242
1245
|
var _logout = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(extraParams) {
|
|
1243
1246
|
var _this$_storage10, _this$_requestBuilder3;
|
|
1244
1247
|
var requestParams, authRequest;
|
|
@@ -1276,7 +1279,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1276
1279
|
return _logout.apply(this, arguments);
|
|
1277
1280
|
}
|
|
1278
1281
|
return logout;
|
|
1279
|
-
}()
|
|
1282
|
+
}())
|
|
1280
1283
|
}, {
|
|
1281
1284
|
key: "_runEmbeddedLogin",
|
|
1282
1285
|
value: function () {
|
|
@@ -1286,7 +1289,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1286
1289
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
1287
1290
|
while (1) switch (_context17.prev = _context17.next) {
|
|
1288
1291
|
case 0:
|
|
1289
|
-
(_this$_storage11 = this._storage) === null || _this$_storage11 === void 0
|
|
1292
|
+
(_this$_storage11 = this._storage) === null || _this$_storage11 === void 0 || _this$_storage11.sendMessage(Auth.CLOSE_WINDOW_MESSAGE, Date.now());
|
|
1290
1293
|
_context17.prev = 1;
|
|
1291
1294
|
this._isLoginWindowOpen = true;
|
|
1292
1295
|
_context17.next = 5;
|
|
@@ -1318,7 +1321,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1318
1321
|
*/
|
|
1319
1322
|
}, {
|
|
1320
1323
|
key: "login",
|
|
1321
|
-
value: function () {
|
|
1324
|
+
value: (function () {
|
|
1322
1325
|
var _login = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
1323
1326
|
var _this$_backgroundFlow3, accessToken, _user;
|
|
1324
1327
|
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
@@ -1367,7 +1370,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1367
1370
|
return _login.apply(this, arguments);
|
|
1368
1371
|
}
|
|
1369
1372
|
return login;
|
|
1370
|
-
}()
|
|
1373
|
+
}())
|
|
1371
1374
|
}, {
|
|
1372
1375
|
key: "switchUser",
|
|
1373
1376
|
value: function () {
|
|
@@ -1426,7 +1429,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1426
1429
|
*/
|
|
1427
1430
|
}, {
|
|
1428
1431
|
key: "_checkForAuthResponse",
|
|
1429
|
-
value: function () {
|
|
1432
|
+
value: (function () {
|
|
1430
1433
|
var _checkForAuthResponse2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
1431
1434
|
var _this$_storage12;
|
|
1432
1435
|
var authResponse, _this$config4, defaultScope, defaultExpiresIn, cleanHash, stateId, scope, expiresIn, accessToken, newState, scopes, effectiveExpiresIn, expires, _this$_storage13;
|
|
@@ -1483,7 +1486,7 @@ var Auth = /*#__PURE__*/function () {
|
|
|
1483
1486
|
return _checkForAuthResponse2.apply(this, arguments);
|
|
1484
1487
|
}
|
|
1485
1488
|
return _checkForAuthResponse;
|
|
1486
|
-
}()
|
|
1489
|
+
}())
|
|
1487
1490
|
}, {
|
|
1488
1491
|
key: "_checkForStateRestoration",
|
|
1489
1492
|
value: function () {
|
|
@@ -4,6 +4,7 @@ import 'core-js/modules/es.object.to-string.js';
|
|
|
4
4
|
import 'core-js/modules/es.promise.js';
|
|
5
5
|
import AuthResponseParser from './response-parser.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
7
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
7
8
|
import 'core-js/modules/es.regexp.exec.js';
|
|
8
9
|
import 'core-js/modules/es.string.replace.js';
|
|
9
10
|
import 'core-js/modules/es.regexp.to-string.js';
|
|
@@ -58,7 +59,7 @@ var BackgroundFlow = /*#__PURE__*/function () {
|
|
|
58
59
|
*/
|
|
59
60
|
}, {
|
|
60
61
|
key: "_load",
|
|
61
|
-
value: function () {
|
|
62
|
+
value: (function () {
|
|
62
63
|
var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
63
64
|
var _this = this;
|
|
64
65
|
var authRequest;
|
|
@@ -124,7 +125,7 @@ var BackgroundFlow = /*#__PURE__*/function () {
|
|
|
124
125
|
return _load2.apply(this, arguments);
|
|
125
126
|
}
|
|
126
127
|
return _load;
|
|
127
|
-
}()
|
|
128
|
+
}())
|
|
128
129
|
}, {
|
|
129
130
|
key: "authorize",
|
|
130
131
|
value: function authorize() {
|
|
@@ -39,6 +39,7 @@ import 'core-js/modules/es.array.reduce.js';
|
|
|
39
39
|
import 'core-js/modules/es.object.entries.js';
|
|
40
40
|
import '../_helpers/loader-inline.js';
|
|
41
41
|
import '../global/dom.js';
|
|
42
|
+
import 'core-js/modules/es.object.assign.js';
|
|
42
43
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
43
44
|
import 'core-js/modules/es.string.split.js';
|
|
44
45
|
import 'core-js/modules/es.set.js';
|
|
@@ -58,6 +59,7 @@ import 'core-js/modules/es.string.includes.js';
|
|
|
58
59
|
import 'core-js/modules/es.array.slice.js';
|
|
59
60
|
import 'core-js/modules/es.array.splice.js';
|
|
60
61
|
import 'core-js/modules/es.string.match.js';
|
|
62
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
61
63
|
import 'combokeys';
|
|
62
64
|
import '../global/sniffer.js';
|
|
63
65
|
import 'sniffr';
|
package/dist/auth/iframe-flow.js
CHANGED
|
@@ -35,10 +35,12 @@ import 'core-js/modules/es.array.map.js';
|
|
|
35
35
|
import '../shortcuts/core.js';
|
|
36
36
|
import 'core-js/modules/es.array.includes.js';
|
|
37
37
|
import 'core-js/modules/es.string.includes.js';
|
|
38
|
+
import 'core-js/modules/es.object.assign.js';
|
|
38
39
|
import 'core-js/modules/es.array.slice.js';
|
|
39
40
|
import 'core-js/modules/es.array.splice.js';
|
|
40
41
|
import 'core-js/modules/es.regexp.exec.js';
|
|
41
42
|
import 'core-js/modules/es.string.match.js';
|
|
43
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
42
44
|
import 'combokeys';
|
|
43
45
|
import '../global/sniffer.js';
|
|
44
46
|
import 'sniffr';
|
|
@@ -67,8 +69,10 @@ import 'scrollbar-width';
|
|
|
67
69
|
import '../loader-screen/loader-screen.js';
|
|
68
70
|
import '../loader/loader.js';
|
|
69
71
|
import '../loader/loader__core.js';
|
|
72
|
+
import 'core-js/modules/es.array.fill.js';
|
|
70
73
|
import '../_helpers/loader-screen.js';
|
|
71
74
|
import './background-flow.js';
|
|
75
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
72
76
|
import 'es6-error';
|
|
73
77
|
import '../global/url.js';
|
|
74
78
|
import '../_helpers/link.js';
|
|
@@ -98,7 +102,7 @@ var IFrameFlow = /*#__PURE__*/function () {
|
|
|
98
102
|
*/
|
|
99
103
|
_createClass(IFrameFlow, [{
|
|
100
104
|
key: "_load",
|
|
101
|
-
value: function () {
|
|
105
|
+
value: (function () {
|
|
102
106
|
var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
103
107
|
var _this2 = this;
|
|
104
108
|
var authRequest, renderFallbackLink;
|
|
@@ -150,7 +154,7 @@ var IFrameFlow = /*#__PURE__*/function () {
|
|
|
150
154
|
});
|
|
151
155
|
var cleanUp = function cleanUp() {
|
|
152
156
|
var _this2$hideDialog;
|
|
153
|
-
(_this2$hideDialog = _this2.hideDialog) === null || _this2$hideDialog === void 0
|
|
157
|
+
(_this2$hideDialog = _this2.hideDialog) === null || _this2$hideDialog === void 0 || _this2$hideDialog.call(_this2);
|
|
154
158
|
removeStateListener();
|
|
155
159
|
removeTokenListener();
|
|
156
160
|
};
|
|
@@ -165,7 +169,7 @@ var IFrameFlow = /*#__PURE__*/function () {
|
|
|
165
169
|
return _load2.apply(this, arguments);
|
|
166
170
|
}
|
|
167
171
|
return _load;
|
|
168
|
-
}()
|
|
172
|
+
}())
|
|
169
173
|
}, {
|
|
170
174
|
key: "stop",
|
|
171
175
|
value: function stop() {
|
package/dist/auth/landing.js
CHANGED
|
@@ -18,6 +18,7 @@ import 'core-js/modules/es.promise.js';
|
|
|
18
18
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
19
19
|
import 'core-js/modules/es.object.entries.js';
|
|
20
20
|
import 'core-js/modules/es.reflect.delete-property.js';
|
|
21
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
21
22
|
import '../global/url.js';
|
|
22
23
|
import 'core-js/modules/es.regexp.exec.js';
|
|
23
24
|
import 'core-js/modules/es.string.match.js';
|
|
@@ -52,6 +53,7 @@ import '../global/data-tests.js';
|
|
|
52
53
|
import 'core-js/modules/es.array.reduce.js';
|
|
53
54
|
import '../_helpers/loader-inline.js';
|
|
54
55
|
import '../global/dom.js';
|
|
56
|
+
import 'core-js/modules/es.object.assign.js';
|
|
55
57
|
import 'core-js/modules/es.string.split.js';
|
|
56
58
|
import 'core-js/modules/es.set.js';
|
|
57
59
|
import '../button/button.js';
|
|
@@ -67,6 +69,7 @@ import '../shortcuts/shortcuts.js';
|
|
|
67
69
|
import '../shortcuts/core.js';
|
|
68
70
|
import 'core-js/modules/es.array.slice.js';
|
|
69
71
|
import 'core-js/modules/es.array.splice.js';
|
|
72
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
70
73
|
import 'combokeys';
|
|
71
74
|
import '../global/sniffer.js';
|
|
72
75
|
import 'sniffr';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { _ as _defineProperty, d as _createClass, c as _classCallCheck, h as _asyncToGenerator, i as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
|
3
|
+
import 'core-js/modules/es.object.assign.js';
|
|
3
4
|
import uuid from 'simply-uuid';
|
|
4
5
|
import { encodeURL } from '../global/url.js';
|
|
5
6
|
import 'core-js/modules/es.array.concat.js';
|
|
6
7
|
import 'core-js/modules/es.regexp.exec.js';
|
|
7
8
|
import 'core-js/modules/es.string.match.js';
|
|
9
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
8
10
|
import 'core-js/modules/es.string.replace.js';
|
|
9
11
|
|
|
10
12
|
var AuthRequestBuilder = /*#__PURE__*/function () {
|
|
@@ -30,7 +32,7 @@ var AuthRequestBuilder = /*#__PURE__*/function () {
|
|
|
30
32
|
*/
|
|
31
33
|
_createClass(AuthRequestBuilder, [{
|
|
32
34
|
key: "prepareAuthRequest",
|
|
33
|
-
value:
|
|
35
|
+
value: (
|
|
34
36
|
/**
|
|
35
37
|
* Save state and build an auth server redirect URL.
|
|
36
38
|
*
|
|
@@ -87,6 +89,7 @@ var AuthRequestBuilder = /*#__PURE__*/function () {
|
|
|
87
89
|
* @return {Promise}
|
|
88
90
|
* @private
|
|
89
91
|
*/
|
|
92
|
+
)
|
|
90
93
|
}, {
|
|
91
94
|
key: "_saveState",
|
|
92
95
|
value: function _saveState(id, storedState) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/es.object.to-string.js';
|
|
3
3
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
4
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
4
5
|
import 'core-js/modules/es.regexp.exec.js';
|
|
5
6
|
import 'core-js/modules/es.string.replace.js';
|
|
6
7
|
import 'core-js/modules/es.regexp.to-string.js';
|
package/dist/auth/storage.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { d as _createClass, c as _classCallCheck, _ as _defineProperty, h as _asyncToGenerator, i as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
2
3
|
import 'core-js/modules/es.array.filter.js';
|
|
3
4
|
import 'core-js/modules/es.object.to-string.js';
|
|
4
5
|
import 'core-js/modules/es.array.reduce.js';
|
|
@@ -40,6 +41,7 @@ import '../global/data-tests.js';
|
|
|
40
41
|
import 'core-js/modules/es.object.entries.js';
|
|
41
42
|
import '../_helpers/loader-inline.js';
|
|
42
43
|
import '../global/dom.js';
|
|
44
|
+
import 'core-js/modules/es.object.assign.js';
|
|
43
45
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
44
46
|
import 'core-js/modules/es.string.split.js';
|
|
45
47
|
import 'core-js/modules/es.set.js';
|
|
@@ -59,6 +61,7 @@ import 'core-js/modules/es.string.includes.js';
|
|
|
59
61
|
import 'core-js/modules/es.array.slice.js';
|
|
60
62
|
import 'core-js/modules/es.array.splice.js';
|
|
61
63
|
import 'core-js/modules/es.string.match.js';
|
|
64
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
62
65
|
import 'combokeys';
|
|
63
66
|
import '../global/sniffer.js';
|
|
64
67
|
import 'sniffr';
|
|
@@ -175,7 +178,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
175
178
|
*/
|
|
176
179
|
}, {
|
|
177
180
|
key: "saveState",
|
|
178
|
-
value: function () {
|
|
181
|
+
value: (function () {
|
|
179
182
|
var _saveState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id, state, dontCleanAndRetryOnFail) {
|
|
180
183
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
181
184
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -218,9 +221,10 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
218
221
|
*
|
|
219
222
|
* @return {Promise} promise that is resolved when OLD states [and some selected] are removed
|
|
220
223
|
*/
|
|
224
|
+
)
|
|
221
225
|
}, {
|
|
222
226
|
key: "cleanStates",
|
|
223
|
-
value: function () {
|
|
227
|
+
value: (function () {
|
|
224
228
|
var _cleanStates = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(removeStateId) {
|
|
225
229
|
var _this = this;
|
|
226
230
|
var now, removalResult, currentStates, stateStorageSize, removalPromises;
|
|
@@ -298,9 +302,10 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
298
302
|
* @param {string} id unique state identifier
|
|
299
303
|
* @return {Promise.<StoredState>}
|
|
300
304
|
*/
|
|
305
|
+
)
|
|
301
306
|
}, {
|
|
302
307
|
key: "getState",
|
|
303
|
-
value: function () {
|
|
308
|
+
value: (function () {
|
|
304
309
|
var _getState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(id) {
|
|
305
310
|
var result;
|
|
306
311
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -337,6 +342,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
337
342
|
* @param {StoredToken} token
|
|
338
343
|
* @return {Promise} promise that is resolved when the token is saved
|
|
339
344
|
*/
|
|
345
|
+
)
|
|
340
346
|
}, {
|
|
341
347
|
key: "saveToken",
|
|
342
348
|
value: function saveToken(token) {
|
|
@@ -365,7 +371,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
365
371
|
*/
|
|
366
372
|
}, {
|
|
367
373
|
key: "getCachedUser",
|
|
368
|
-
value: function () {
|
|
374
|
+
value: (function () {
|
|
369
375
|
var _getCachedUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(loadUser) {
|
|
370
376
|
var _this2 = this;
|
|
371
377
|
var user, loadAndCache;
|
|
@@ -404,6 +410,7 @@ var AuthStorage = /*#__PURE__*/function () {
|
|
|
404
410
|
/**
|
|
405
411
|
* Remove cached user if any
|
|
406
412
|
*/
|
|
413
|
+
)
|
|
407
414
|
}, {
|
|
408
415
|
key: "wipeCachedCurrentUser",
|
|
409
416
|
value: function wipeCachedCurrentUser() {
|
|
@@ -13,6 +13,7 @@ import 'core-js/modules/es.promise.js';
|
|
|
13
13
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
14
14
|
import 'core-js/modules/es.object.entries.js';
|
|
15
15
|
import 'core-js/modules/es.reflect.delete-property.js';
|
|
16
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
16
17
|
import '../global/url.js';
|
|
17
18
|
import 'core-js/modules/es.regexp.exec.js';
|
|
18
19
|
import 'core-js/modules/es.string.match.js';
|
|
@@ -105,7 +106,7 @@ var TokenValidator = /*#__PURE__*/function () {
|
|
|
105
106
|
*/
|
|
106
107
|
}, {
|
|
107
108
|
key: "_validateAgainstUser",
|
|
108
|
-
value:
|
|
109
|
+
value: (
|
|
109
110
|
/**
|
|
110
111
|
* Check scopes
|
|
111
112
|
* @param {StoredToken} storedToken
|
|
@@ -169,9 +170,10 @@ var TokenValidator = /*#__PURE__*/function () {
|
|
|
169
170
|
* have {authRedirect: true}.
|
|
170
171
|
* @private
|
|
171
172
|
*/
|
|
173
|
+
)
|
|
172
174
|
}, {
|
|
173
175
|
key: "_getValidatedToken",
|
|
174
|
-
value: function () {
|
|
176
|
+
value: (function () {
|
|
175
177
|
var _getValidatedToken2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(validators) {
|
|
176
178
|
var storedToken, i;
|
|
177
179
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -211,7 +213,7 @@ var TokenValidator = /*#__PURE__*/function () {
|
|
|
211
213
|
return _getValidatedToken2.apply(this, arguments);
|
|
212
214
|
}
|
|
213
215
|
return _getValidatedToken;
|
|
214
|
-
}()
|
|
216
|
+
}())
|
|
215
217
|
}], [{
|
|
216
218
|
key: "_epoch",
|
|
217
219
|
value: function _epoch() {
|
package/dist/auth/window-flow.js
CHANGED
|
@@ -4,6 +4,7 @@ import 'core-js/modules/es.object.to-string.js';
|
|
|
4
4
|
import 'core-js/modules/es.promise.js';
|
|
5
5
|
import AuthResponseParser from './response-parser.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
7
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
7
8
|
import 'core-js/modules/es.regexp.exec.js';
|
|
8
9
|
import 'core-js/modules/es.string.replace.js';
|
|
9
10
|
import 'core-js/modules/es.regexp.to-string.js';
|
|
@@ -60,7 +61,7 @@ var WindowFlow = /*#__PURE__*/function () {
|
|
|
60
61
|
*/
|
|
61
62
|
}, {
|
|
62
63
|
key: "_load",
|
|
63
|
-
value: function () {
|
|
64
|
+
value: (function () {
|
|
64
65
|
var _load2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
65
66
|
var _this2 = this;
|
|
66
67
|
var authRequest;
|
|
@@ -91,7 +92,7 @@ var WindowFlow = /*#__PURE__*/function () {
|
|
|
91
92
|
removeStateListener();
|
|
92
93
|
removeTokenListener();
|
|
93
94
|
/* eslint-enable @typescript-eslint/no-use-before-define */
|
|
94
|
-
(_this2$_loginWindow = _this2._loginWindow) === null || _this2$_loginWindow === void 0
|
|
95
|
+
(_this2$_loginWindow = _this2._loginWindow) === null || _this2$_loginWindow === void 0 || _this2$_loginWindow.close();
|
|
95
96
|
clearTimeout(_this2._timeoutId);
|
|
96
97
|
};
|
|
97
98
|
var removeTokenListener = _this2._storage.onTokenChange(function (token) {
|
|
@@ -123,7 +124,7 @@ var WindowFlow = /*#__PURE__*/function () {
|
|
|
123
124
|
return _load2.apply(this, arguments);
|
|
124
125
|
}
|
|
125
126
|
return _load;
|
|
126
|
-
}()
|
|
127
|
+
}())
|
|
127
128
|
}, {
|
|
128
129
|
key: "stop",
|
|
129
130
|
value: function stop() {
|
|
@@ -29,9 +29,11 @@ import 'core-js/modules/es.array.map.js';
|
|
|
29
29
|
import '../shortcuts/core.js';
|
|
30
30
|
import 'core-js/modules/es.array.includes.js';
|
|
31
31
|
import 'core-js/modules/es.string.includes.js';
|
|
32
|
+
import 'core-js/modules/es.object.assign.js';
|
|
32
33
|
import 'core-js/modules/es.array.slice.js';
|
|
33
34
|
import 'core-js/modules/es.array.splice.js';
|
|
34
35
|
import 'core-js/modules/es.string.match.js';
|
|
36
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
35
37
|
import 'combokeys';
|
|
36
38
|
import '../global/sniffer.js';
|
|
37
39
|
import 'sniffr';
|
|
@@ -33,9 +33,11 @@ import 'core-js/modules/es.array.map.js';
|
|
|
33
33
|
import '../shortcuts/core.js';
|
|
34
34
|
import 'core-js/modules/es.array.includes.js';
|
|
35
35
|
import 'core-js/modules/es.string.includes.js';
|
|
36
|
+
import 'core-js/modules/es.object.assign.js';
|
|
36
37
|
import 'core-js/modules/es.array.slice.js';
|
|
37
38
|
import 'core-js/modules/es.array.splice.js';
|
|
38
39
|
import 'core-js/modules/es.string.match.js';
|
|
40
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
39
41
|
import 'combokeys';
|
|
40
42
|
import '../global/sniffer.js';
|
|
41
43
|
import 'sniffr';
|
package/dist/auth-ng/auth-ng.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'core-js/modules/es.array.index-of.js';
|
|
1
2
|
import 'core-js/modules/es.regexp.exec.js';
|
|
2
3
|
import 'core-js/modules/es.string.replace.js';
|
|
3
4
|
import angular from 'angular';
|
|
@@ -47,6 +48,7 @@ import 'core-js/modules/es.array.reduce.js';
|
|
|
47
48
|
import 'core-js/modules/es.object.entries.js';
|
|
48
49
|
import '../_helpers/loader-inline.js';
|
|
49
50
|
import '../global/dom.js';
|
|
51
|
+
import 'core-js/modules/es.object.assign.js';
|
|
50
52
|
import 'core-js/modules/es.string.split.js';
|
|
51
53
|
import 'core-js/modules/es.set.js';
|
|
52
54
|
import '../button/button.js';
|
|
@@ -64,6 +66,7 @@ import 'core-js/modules/es.array.includes.js';
|
|
|
64
66
|
import 'core-js/modules/es.string.includes.js';
|
|
65
67
|
import 'core-js/modules/es.array.slice.js';
|
|
66
68
|
import 'core-js/modules/es.array.splice.js';
|
|
69
|
+
import 'core-js/modules/es.array.find-index.js';
|
|
67
70
|
import 'combokeys';
|
|
68
71
|
import '../global/sniffer.js';
|
|
69
72
|
import 'sniffr';
|
|
@@ -109,7 +112,6 @@ angularModule.provider('auth', ["$httpProvider", function provider($httpProvider
|
|
|
109
112
|
var defaultConfig = {
|
|
110
113
|
cleanHash: false //prevents infinite redirect on angular>1.2.26
|
|
111
114
|
};
|
|
112
|
-
|
|
113
115
|
this.init = function (authInstance) {
|
|
114
116
|
auth = authInstance;
|
|
115
117
|
};
|