@jetbrains/ring-ui-built 7.0.72 → 7.0.74
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/_helpers/anchor.js +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +13 -12
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- package/components/list/list-custom.d.ts +1 -1
- package/components/list/list-custom.js +2 -2
- package/components/list/list-hint.d.ts +1 -1
- package/components/list/list-hint.js +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +4 -9
|
@@ -10,7 +10,6 @@ import BackgroundFlow from './background-flow.js';
|
|
|
10
10
|
import TokenValidator from './token-validator.js';
|
|
11
11
|
import '../storage/storage-local.js';
|
|
12
12
|
import '../alert-service/alert-service.js';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
13
|
import 'react-dom/client';
|
|
15
14
|
import '../global/get-uid.js';
|
|
16
15
|
import '../alert/alert.js';
|
|
@@ -24,7 +23,9 @@ import '../icon/icon.js';
|
|
|
24
23
|
import 'util-deprecate';
|
|
25
24
|
import '../icon/icon.constants.js';
|
|
26
25
|
import '../_helpers/icon-svg.js';
|
|
26
|
+
import 'react-compiler-runtime';
|
|
27
27
|
import '../global/memoize.js';
|
|
28
|
+
import 'react/jsx-runtime';
|
|
28
29
|
import '../loader-inline/loader-inline.js';
|
|
29
30
|
import '../global/data-tests.js';
|
|
30
31
|
import '../global/dom.js';
|
|
@@ -52,13 +53,12 @@ import '../popup/position-css.js';
|
|
|
52
53
|
import '../alert/container.js';
|
|
53
54
|
import 'simply-uuid';
|
|
54
55
|
|
|
55
|
-
/* eslint-disable
|
|
56
|
+
/* eslint-disable no-magic-numbers */
|
|
56
57
|
const DEFAULT_EXPIRES_TIMEOUT = 40 * 60;
|
|
57
58
|
const DEFAULT_BACKGROUND_TIMEOUT = 10 * 1000;
|
|
58
59
|
const DEFAULT_BACKEND_CHECK_TIMEOUT = 10 * 1000;
|
|
59
60
|
const BACKGROUND_REDIRECT_TIMEOUT = 20 * 1000;
|
|
60
61
|
const DEFAULT_WAIT_FOR_REDIRECT_TIMEOUT = 5 * 1000;
|
|
61
|
-
/* eslint-enable @typescript-eslint/no-magic-numbers */
|
|
62
62
|
const USER_CHANGED_EVENT = 'userChange';
|
|
63
63
|
const DOMAIN_USER_CHANGED_EVENT = 'domainUser';
|
|
64
64
|
const LOGOUT_EVENT = 'logout';
|
|
@@ -555,11 +555,11 @@ class Auth {
|
|
|
555
555
|
const actualTranslations = translations !== null && translations !== void 0 ? translations : getTranslations();
|
|
556
556
|
this._createInitDeferred();
|
|
557
557
|
const closeDialog = () => {
|
|
558
|
-
/* eslint-disable
|
|
558
|
+
/* eslint-disable no-use-before-define */
|
|
559
559
|
stopTokenListening?.();
|
|
560
560
|
stopMessageListening?.();
|
|
561
561
|
hide?.();
|
|
562
|
-
/* eslint-enable
|
|
562
|
+
/* eslint-enable no-use-before-define */
|
|
563
563
|
};
|
|
564
564
|
const onConfirm = () => {
|
|
565
565
|
if (!embeddedLogin) {
|
|
@@ -621,7 +621,7 @@ class Auth {
|
|
|
621
621
|
this._createInitDeferred();
|
|
622
622
|
const done = () => {
|
|
623
623
|
this._initDeferred?.resolve?.();
|
|
624
|
-
// eslint-disable-next-line
|
|
624
|
+
// eslint-disable-next-line no-use-before-define
|
|
625
625
|
hide?.();
|
|
626
626
|
};
|
|
627
627
|
const hide = this._authDialogService?.({
|
|
@@ -671,11 +671,11 @@ class Auth {
|
|
|
671
671
|
let timerId;
|
|
672
672
|
return new Promise((resolve, reject) => {
|
|
673
673
|
const done = () => {
|
|
674
|
-
/* eslint-disable
|
|
674
|
+
/* eslint-disable no-use-before-define */
|
|
675
675
|
hide();
|
|
676
676
|
window.removeEventListener('online', onCheckAgain);
|
|
677
677
|
stopListeningCloseMessage?.();
|
|
678
|
-
/* eslint-enable
|
|
678
|
+
/* eslint-enable no-use-before-define */
|
|
679
679
|
this._storage?.sendMessage(Auth.CLOSE_BACKEND_DOWN_MESSAGE, Date.now());
|
|
680
680
|
clearTimeout(timerId);
|
|
681
681
|
};
|
package/components/auth/auth.js
CHANGED
|
@@ -4,12 +4,12 @@ import Auth from './auth-core.js';
|
|
|
4
4
|
export { DEFAULT_BACKGROUND_TIMEOUT, DEFAULT_EXPIRES_TIMEOUT, DOMAIN_USER_CHANGED_EVENT, LOGOUT_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGED_EVENT, USER_CHANGE_POSTPONED_EVENT } from './auth-core.js';
|
|
5
5
|
import './response-parser.js';
|
|
6
6
|
import '../global/url.js';
|
|
7
|
-
import 'react
|
|
7
|
+
import 'react-compiler-runtime';
|
|
8
|
+
import 'react';
|
|
8
9
|
import '../alert-service/alert-service.js';
|
|
9
10
|
import 'react-dom/client';
|
|
10
11
|
import '../global/get-uid.js';
|
|
11
12
|
import '../alert/alert.js';
|
|
12
|
-
import 'react';
|
|
13
13
|
import 'classnames';
|
|
14
14
|
import '@jetbrains/icons/exception';
|
|
15
15
|
import '@jetbrains/icons/checkmark';
|
|
@@ -20,6 +20,7 @@ import 'util-deprecate';
|
|
|
20
20
|
import '../icon/icon.constants.js';
|
|
21
21
|
import '../_helpers/icon-svg.js';
|
|
22
22
|
import '../global/memoize.js';
|
|
23
|
+
import 'react/jsx-runtime';
|
|
23
24
|
import '../loader-inline/loader-inline.js';
|
|
24
25
|
import '../global/data-tests.js';
|
|
25
26
|
import '../global/dom.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import 'react';
|
|
2
3
|
import alertService from '../alert-service/alert-service.js';
|
|
3
4
|
import Alert from '../alert/alert.js';
|
|
4
5
|
import Link from '../link/link.js';
|
|
5
6
|
import Group from '../group/group.js';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
8
|
import 'react-dom/client';
|
|
7
9
|
import '../global/get-uid.js';
|
|
8
10
|
import '../alert/container.js';
|
|
9
|
-
import 'react';
|
|
10
11
|
import 'react-dom';
|
|
11
12
|
import 'classnames';
|
|
12
13
|
import '@jetbrains/icons/exception';
|
|
@@ -58,31 +59,74 @@ function renderAlert(message, type = Alert.Type.WARNING) {
|
|
|
58
59
|
alertService.renderAlerts();
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
function Message({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
function Message(t0) {
|
|
63
|
+
const $ = c(12);
|
|
64
|
+
if ($[0] !== "f7af74b5afecec4eb25bcdac57e8252929ea2543343e0ea7e29543844f786673") {
|
|
65
|
+
for (let $i = 0; $i < 12; $i += 1) {
|
|
66
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
67
|
+
}
|
|
68
|
+
$[0] = "f7af74b5afecec4eb25bcdac57e8252929ea2543343e0ea7e29543844f786673";
|
|
69
|
+
}
|
|
70
|
+
const {
|
|
71
|
+
translations,
|
|
72
|
+
onCheckAgain
|
|
73
|
+
} = t0;
|
|
65
74
|
const {
|
|
66
75
|
backendIsNotAvailable,
|
|
67
76
|
checkAgain,
|
|
68
77
|
errorMessage
|
|
69
78
|
} = translations;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
children: jsx("div", {
|
|
79
|
+
let t1;
|
|
80
|
+
if ($[1] !== backendIsNotAvailable) {
|
|
81
|
+
t1 = /*#__PURE__*/jsx(Group, {
|
|
82
|
+
children: /*#__PURE__*/jsx("div", {
|
|
74
83
|
className: styles.title,
|
|
75
84
|
children: backendIsNotAvailable
|
|
76
85
|
})
|
|
77
|
-
})
|
|
86
|
+
});
|
|
87
|
+
$[1] = backendIsNotAvailable;
|
|
88
|
+
$[2] = t1;
|
|
89
|
+
} else {
|
|
90
|
+
t1 = $[2];
|
|
91
|
+
}
|
|
92
|
+
let t2;
|
|
93
|
+
if ($[3] !== errorMessage) {
|
|
94
|
+
t2 = /*#__PURE__*/jsxs("span", {
|
|
78
95
|
className: styles.error,
|
|
79
96
|
children: [errorMessage, " "]
|
|
80
|
-
})
|
|
97
|
+
});
|
|
98
|
+
$[3] = errorMessage;
|
|
99
|
+
$[4] = t2;
|
|
100
|
+
} else {
|
|
101
|
+
t2 = $[4];
|
|
102
|
+
}
|
|
103
|
+
let t3;
|
|
104
|
+
if ($[5] !== checkAgain || $[6] !== onCheckAgain) {
|
|
105
|
+
t3 = /*#__PURE__*/jsx(Link, {
|
|
81
106
|
onClick: onCheckAgain,
|
|
82
|
-
"data-test":
|
|
107
|
+
"data-test": "check-again",
|
|
83
108
|
children: checkAgain
|
|
84
|
-
})
|
|
85
|
-
|
|
109
|
+
});
|
|
110
|
+
$[5] = checkAgain;
|
|
111
|
+
$[6] = onCheckAgain;
|
|
112
|
+
$[7] = t3;
|
|
113
|
+
} else {
|
|
114
|
+
t3 = $[7];
|
|
115
|
+
}
|
|
116
|
+
let t4;
|
|
117
|
+
if ($[8] !== t1 || $[9] !== t2 || $[10] !== t3) {
|
|
118
|
+
t4 = /*#__PURE__*/jsxs("div", {
|
|
119
|
+
"data-test": "ring-backend-down-notification",
|
|
120
|
+
children: [t1, t2, t3]
|
|
121
|
+
});
|
|
122
|
+
$[8] = t1;
|
|
123
|
+
$[9] = t2;
|
|
124
|
+
$[10] = t3;
|
|
125
|
+
$[11] = t4;
|
|
126
|
+
} else {
|
|
127
|
+
t4 = $[11];
|
|
128
|
+
}
|
|
129
|
+
return t4;
|
|
86
130
|
}
|
|
87
131
|
function onBackendDown({
|
|
88
132
|
onCheckAgain,
|
|
@@ -95,13 +139,13 @@ function onBackendDown({
|
|
|
95
139
|
renderAlert('Connecting...', Alert.Type.LOADING);
|
|
96
140
|
await onCheckAgain();
|
|
97
141
|
} catch (err) {
|
|
98
|
-
renderAlert(jsx(Message, {
|
|
142
|
+
renderAlert(/*#__PURE__*/jsx(Message, {
|
|
99
143
|
translations: translations,
|
|
100
144
|
onCheckAgain: checkAgainWithoutClosing
|
|
101
145
|
}));
|
|
102
146
|
}
|
|
103
147
|
}
|
|
104
|
-
renderAlert(jsx(Message, {
|
|
148
|
+
renderAlert(/*#__PURE__*/jsx(Message, {
|
|
105
149
|
translations: translations,
|
|
106
150
|
onCheckAgain: checkAgainWithoutClosing
|
|
107
151
|
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import showAuthDialog from '../login-dialog/service.js';
|
|
3
2
|
import Link from '../link/link.js';
|
|
4
3
|
import AuthResponseParser from './response-parser.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom/client';
|
|
6
6
|
import '../global/controls-height.js';
|
|
7
7
|
import 'react';
|
|
@@ -18,6 +18,7 @@ import '../island/adaptive-island-hoc.js';
|
|
|
18
18
|
import '../global/linear-function.js';
|
|
19
19
|
import '../_helpers/island.js';
|
|
20
20
|
import '../island/header.js';
|
|
21
|
+
import 'react-compiler-runtime';
|
|
21
22
|
import '../island/content.js';
|
|
22
23
|
import 'element-resize-detector';
|
|
23
24
|
import '../global/schedule-raf.js';
|
|
@@ -76,9 +77,9 @@ class IFrameFlow {
|
|
|
76
77
|
}, {
|
|
77
78
|
nonRedirect: false
|
|
78
79
|
});
|
|
79
|
-
const renderFallbackLink = () => jsx(Link, {
|
|
80
|
+
const renderFallbackLink = () => /*#__PURE__*/jsx(Link, {
|
|
80
81
|
href: authRequest.url,
|
|
81
|
-
target:
|
|
82
|
+
target: "_self",
|
|
82
83
|
children: this._translations.nothingHappensLink
|
|
83
84
|
});
|
|
84
85
|
return new Promise((resolve, reject) => {
|
|
@@ -86,7 +87,7 @@ class IFrameFlow {
|
|
|
86
87
|
url: authRequest.url,
|
|
87
88
|
loader: true,
|
|
88
89
|
onCancel: () => {
|
|
89
|
-
// eslint-disable-next-line
|
|
90
|
+
// eslint-disable-next-line no-use-before-define
|
|
90
91
|
cleanUp();
|
|
91
92
|
this.stop();
|
|
92
93
|
},
|
|
@@ -95,14 +96,14 @@ class IFrameFlow {
|
|
|
95
96
|
this.reject = reject;
|
|
96
97
|
const removeTokenListener = this._storage.onTokenChange(token => {
|
|
97
98
|
if (token) {
|
|
98
|
-
// eslint-disable-next-line
|
|
99
|
+
// eslint-disable-next-line no-use-before-define
|
|
99
100
|
cleanUp();
|
|
100
101
|
resolve(token.accessToken);
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
104
|
const removeStateListener = this._storage.onStateChange(authRequest.stateId, state => {
|
|
104
105
|
if (state && state.error) {
|
|
105
|
-
// eslint-disable-next-line
|
|
106
|
+
// eslint-disable-next-line no-use-before-define
|
|
106
107
|
cleanUp();
|
|
107
108
|
reject(new AuthResponseParser.AuthError(state));
|
|
108
109
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import LocalStorage from '../storage/storage-local.js';
|
|
2
2
|
import '../alert-service/alert-service.js';
|
|
3
|
-
import 'react/jsx-runtime';
|
|
4
3
|
import 'react-dom/client';
|
|
5
4
|
import '../global/get-uid.js';
|
|
6
5
|
import '../alert/alert.js';
|
|
@@ -14,7 +13,9 @@ import '../icon/icon.js';
|
|
|
14
13
|
import 'util-deprecate';
|
|
15
14
|
import '../icon/icon.constants.js';
|
|
16
15
|
import '../_helpers/icon-svg.js';
|
|
16
|
+
import 'react-compiler-runtime';
|
|
17
17
|
import '../global/memoize.js';
|
|
18
|
+
import 'react/jsx-runtime';
|
|
18
19
|
import '../loader-inline/loader-inline.js';
|
|
19
20
|
import '../global/data-tests.js';
|
|
20
21
|
import '../global/dom.js';
|
|
@@ -54,7 +55,7 @@ import '../alert/container.js';
|
|
|
54
55
|
* @property {string[]} scopes
|
|
55
56
|
*/
|
|
56
57
|
const DEFAULT_STATE_QUOTA = 102400; // 100 kb ~~ 200 tabs with a large list of scopes
|
|
57
|
-
// eslint-disable-next-line
|
|
58
|
+
// eslint-disable-next-line no-magic-numbers
|
|
58
59
|
const DEFAULT_STATE_TTL = 1000 * 60 * 60 * 24; // nobody will need auth state after a day
|
|
59
60
|
const UPDATE_USER_TIMEOUT = 1000;
|
|
60
61
|
class AuthStorage {
|
|
@@ -32,7 +32,7 @@ class TokenValidator {
|
|
|
32
32
|
/**
|
|
33
33
|
* @const {number}
|
|
34
34
|
*/
|
|
35
|
-
// eslint-disable-next-line
|
|
35
|
+
// eslint-disable-next-line no-magic-numbers
|
|
36
36
|
static DEFAULT_REFRESH_BEFORE = 10 * 60; // 20 min in s
|
|
37
37
|
/**
|
|
38
38
|
* Error class for auth token validation
|
|
@@ -46,10 +46,10 @@ class WindowFlow {
|
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
cleanRun = true;
|
|
49
|
-
/* eslint-disable
|
|
49
|
+
/* eslint-disable no-use-before-define */
|
|
50
50
|
removeStateListener();
|
|
51
51
|
removeTokenListener();
|
|
52
|
-
/* eslint-enable
|
|
52
|
+
/* eslint-enable no-use-before-define */
|
|
53
53
|
this._loginWindow?.close();
|
|
54
54
|
clearTimeout(this._timeoutId);
|
|
55
55
|
};
|
|
@@ -38,5 +38,5 @@ export default class AuthDialog extends Component<AuthDialogProps> {
|
|
|
38
38
|
componentWillUnmount(): void;
|
|
39
39
|
onEscPress: () => void;
|
|
40
40
|
onRetryPress: () => Promise<void>;
|
|
41
|
-
render(): import("react
|
|
41
|
+
render(): import("react").JSX.Element;
|
|
42
42
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import '../_helpers/island.js';
|
|
5
|
+
import 'react-compiler-runtime';
|
|
5
6
|
import ContentWrapper from '../island/content.js';
|
|
6
7
|
import Dialog from '../dialog/dialog.js';
|
|
7
8
|
import { Button } from '../button/button.js';
|
|
@@ -109,43 +110,43 @@ class AuthDialog extends Component {
|
|
|
109
110
|
} = this.state;
|
|
110
111
|
const defaultTitle = serviceName ? loginToCaption : loginCaption;
|
|
111
112
|
const title = (this.props.title || defaultTitle).replace('%serviceName%', serviceName !== null && serviceName !== void 0 ? serviceName : '').replace('{{serviceName}}', serviceName !== null && serviceName !== void 0 ? serviceName : '');
|
|
112
|
-
return jsx(Dialog, {
|
|
113
|
+
return /*#__PURE__*/jsx(Dialog, {
|
|
113
114
|
label: title,
|
|
114
|
-
"data-test":
|
|
115
|
+
"data-test": "ring-auth-dialog",
|
|
115
116
|
className: className,
|
|
116
117
|
contentClassName: classNames(className, styles.dialog),
|
|
117
118
|
onEscPress: this.onEscPress,
|
|
118
119
|
show: show,
|
|
119
120
|
trapFocus: true,
|
|
120
|
-
children: jsx(ContentWrapper, {
|
|
121
|
-
children: jsxs("div", {
|
|
121
|
+
children: /*#__PURE__*/jsx(ContentWrapper, {
|
|
122
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
122
123
|
className: styles.content,
|
|
123
|
-
children: [serviceImage && jsx("img", {
|
|
124
|
+
children: [serviceImage && /*#__PURE__*/jsx("img", {
|
|
124
125
|
alt: `${serviceName} logo`,
|
|
125
126
|
className: styles.logo,
|
|
126
127
|
src: serviceImage
|
|
127
|
-
}), jsx(H2, {
|
|
128
|
+
}), /*#__PURE__*/jsx(H2, {
|
|
128
129
|
className: styles.title,
|
|
129
130
|
children: title
|
|
130
|
-
}), errorMessage && jsx("div", {
|
|
131
|
+
}), errorMessage && /*#__PURE__*/jsx("div", {
|
|
131
132
|
className: styles.error,
|
|
132
133
|
children: errorMessage
|
|
133
|
-
}), jsx(Button, {
|
|
134
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
134
135
|
primary: true,
|
|
135
136
|
className: styles.firstButton,
|
|
136
|
-
"data-test":
|
|
137
|
+
"data-test": "auth-dialog-confirm-button",
|
|
137
138
|
onClick: onConfirm,
|
|
138
139
|
children: confirmLabel
|
|
139
|
-
}), onTryAgain && jsx(Button, {
|
|
140
|
+
}), onTryAgain && /*#__PURE__*/jsx(Button, {
|
|
140
141
|
className: styles.button,
|
|
141
|
-
"data-test":
|
|
142
|
+
"data-test": "auth-dialog-retry-button",
|
|
142
143
|
onClick: () => this.onRetryPress(),
|
|
143
144
|
loader: retrying,
|
|
144
145
|
disabled: retrying,
|
|
145
146
|
children: tryAgainLabel
|
|
146
|
-
}), jsx(Button, {
|
|
147
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
147
148
|
className: styles.button,
|
|
148
|
-
"data-test":
|
|
149
|
+
"data-test": "auth-dialog-cancel-button",
|
|
149
150
|
onClick: onCancel,
|
|
150
151
|
children: cancelLabel
|
|
151
152
|
})]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { createRoot } from 'react-dom/client';
|
|
3
2
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
|
4
3
|
import AuthDialog from '../auth-dialog/auth-dialog.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'util-deprecate';
|
|
7
7
|
import '../global/configuration.js';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '../_helpers/island.js';
|
|
10
|
+
import 'react-compiler-runtime';
|
|
10
11
|
import '../island/content.js';
|
|
11
12
|
import 'element-resize-detector';
|
|
12
13
|
import '../global/schedule-raf.js';
|
|
@@ -45,18 +46,15 @@ import 'scrollbar-width';
|
|
|
45
46
|
import '../heading/heading.js';
|
|
46
47
|
import '../_helpers/heading.js';
|
|
47
48
|
|
|
48
|
-
/**
|
|
49
|
-
* @name Auth Dialog Service
|
|
50
|
-
*/
|
|
51
49
|
const containerElement = document.createElement('div');
|
|
52
50
|
const reactRoot = createRoot(containerElement);
|
|
53
51
|
/**
|
|
54
52
|
* Renders AuthDialog into virtual node to skip maintaining container
|
|
55
53
|
*/
|
|
56
54
|
function renderAuthDialog(props) {
|
|
57
|
-
reactRoot.render(jsx(ControlsHeightContext.Provider, {
|
|
55
|
+
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
|
58
56
|
value: getGlobalControlsHeight(),
|
|
59
|
-
children: jsx(AuthDialog, {
|
|
57
|
+
children: /*#__PURE__*/jsx(AuthDialog, {
|
|
60
58
|
...props
|
|
61
59
|
})
|
|
62
60
|
}));
|
|
@@ -5,5 +5,5 @@ interface InfoAvatarProps {
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export declare const fontSizes: Record<Size, number>;
|
|
8
|
-
export default function AvatarInfo({ size, children }: InfoAvatarProps): import("react
|
|
8
|
+
export default function AvatarInfo({ size, children }: InfoAvatarProps): import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import 'react
|
|
1
|
+
import 'react-compiler-runtime';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
export { A as default, f as fontSizes } from '../_helpers/avatar-info.js';
|
|
4
3
|
import './avatar-size.js';
|
|
4
|
+
export { A as default, f as fontSizes } from '../_helpers/avatar-info.js';
|
|
5
|
+
import 'react/jsx-runtime';
|
|
@@ -24,6 +24,6 @@ export default class Avatar extends PureComponent<AvatarProps> {
|
|
|
24
24
|
};
|
|
25
25
|
handleError: () => void;
|
|
26
26
|
handleSuccess: () => void;
|
|
27
|
-
render(): import("react
|
|
27
|
+
render(): import("react").JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
export type AvatarAttrs = React.JSX.LibraryManagedAttributes<typeof Avatar, AvatarProps>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import deprecate from 'util-deprecate';
|
|
5
4
|
import { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
|
|
6
5
|
import { getPixelRatio } from '../global/dom.js';
|
|
7
6
|
import memoize from '../global/memoize.js';
|
|
8
|
-
import { s as styles, A as AvatarInfo } from '../_helpers/avatar-info.js';
|
|
9
7
|
import FallbackAvatar from './fallback-avatar.js';
|
|
10
8
|
import { Size } from './avatar-size.js';
|
|
9
|
+
import { s as styles, A as AvatarInfo } from '../_helpers/avatar-info.js';
|
|
10
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
|
+
import 'react-compiler-runtime';
|
|
11
12
|
import '../global/get-uid.js';
|
|
12
13
|
|
|
13
14
|
const warnSize = memoize(size => deprecate(() => {}, `Avatar: Size${size} is deprecated and will be removed in 8.0. The supported sizes are: Size20, Size24, Size28, Size32, Size40.`));
|
|
@@ -65,18 +66,18 @@ class Avatar extends PureComponent {
|
|
|
65
66
|
[styles.round]: round
|
|
66
67
|
});
|
|
67
68
|
if (!url || this.state.errorUrl === url) {
|
|
68
|
-
return jsxs("span", {
|
|
69
|
+
return /*#__PURE__*/jsxs("span", {
|
|
69
70
|
...restProps,
|
|
70
|
-
"data-test":
|
|
71
|
+
"data-test": "avatar",
|
|
71
72
|
className: classNames(classes, {
|
|
72
73
|
[styles.empty]: (username === null || username === undefined) && (info === null || info === undefined)
|
|
73
74
|
}),
|
|
74
75
|
style: styleObj,
|
|
75
|
-
children: [username && jsx(FallbackAvatar, {
|
|
76
|
+
children: [username && /*#__PURE__*/jsx(FallbackAvatar, {
|
|
76
77
|
size: size,
|
|
77
78
|
round: round,
|
|
78
79
|
username: username
|
|
79
|
-
}), info && jsx(AvatarInfo, {
|
|
80
|
+
}), info && /*#__PURE__*/jsx(AvatarInfo, {
|
|
80
81
|
size: size,
|
|
81
82
|
children: info
|
|
82
83
|
})]
|
|
@@ -101,36 +102,36 @@ class Avatar extends PureComponent {
|
|
|
101
102
|
subavatarSizeString
|
|
102
103
|
};
|
|
103
104
|
subavatarSrc = skipParams ? subavatar : encodeURL(urlStart, queryParams);
|
|
104
|
-
return jsxs("div", {
|
|
105
|
-
children: [jsx("img", {
|
|
105
|
+
return /*#__PURE__*/jsxs("div", {
|
|
106
|
+
children: [/*#__PURE__*/jsx("img", {
|
|
106
107
|
...restProps,
|
|
107
108
|
onError: this.handleError,
|
|
108
109
|
onLoad: this.handleSuccess,
|
|
109
110
|
className: classNames(classes, styles.avatarShadow),
|
|
110
111
|
style: styleObj,
|
|
111
112
|
src: src,
|
|
112
|
-
alt:
|
|
113
|
-
}), jsx("img", {
|
|
113
|
+
alt: "User avatar"
|
|
114
|
+
}), /*#__PURE__*/jsx("img", {
|
|
114
115
|
...restProps,
|
|
115
|
-
"data-test":
|
|
116
|
+
"data-test": "avatar",
|
|
116
117
|
onError: this.handleError,
|
|
117
118
|
onLoad: this.handleSuccess,
|
|
118
119
|
className: classNames(styles.subavatar),
|
|
119
120
|
style: styleObjGroup,
|
|
120
121
|
src: subavatarSrc,
|
|
121
|
-
alt:
|
|
122
|
+
alt: "Subavatar"
|
|
122
123
|
})]
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
|
-
return jsx("img", {
|
|
126
|
+
return /*#__PURE__*/jsx("img", {
|
|
126
127
|
...restProps,
|
|
127
|
-
"data-test":
|
|
128
|
+
"data-test": "avatar",
|
|
128
129
|
onError: this.handleError,
|
|
129
130
|
onLoad: this.handleSuccess,
|
|
130
131
|
className: classNames(classes, styles.avatarShadow),
|
|
131
132
|
style: styleObj,
|
|
132
133
|
src: src,
|
|
133
|
-
alt:
|
|
134
|
+
alt: "User avatar"
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
137
|
}
|
|
@@ -4,4 +4,4 @@ export interface FallbackAvatarProps {
|
|
|
4
4
|
size: Size;
|
|
5
5
|
round: boolean | null | undefined;
|
|
6
6
|
}
|
|
7
|
-
export default function FallbackAvatar({ username, size, round }: FallbackAvatarProps): import("react
|
|
7
|
+
export default function FallbackAvatar({ username, size, round }: FallbackAvatarProps): import("react").JSX.Element;
|