@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.5
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 +0 -5
- package/components/_helpers/caption.js +1 -5
- package/components/_helpers/card.js +0 -28
- package/components/_helpers/icon__svg.js +0 -6
- package/components/_helpers/input.js +0 -21
- package/components/_helpers/select__filter.js +0 -8
- package/components/_helpers/services-link.js +1 -11
- package/components/_helpers/sidebar.js +0 -9
- package/components/_helpers/tab-link.js +0 -6
- package/components/_helpers/theme.js +1 -1
- package/components/_helpers/title.js +0 -15
- package/components/alert/alert.d.ts +7 -24
- package/components/alert/alert.js +0 -24
- package/components/alert/container.d.ts +0 -5
- package/components/alert/container.js +1 -6
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/auth.js +0 -4
- package/components/auth/auth__core.d.ts +3 -3
- package/components/auth/auth__core.js +32 -24
- package/components/auth/down-notification.js +0 -9
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +3 -7
- package/components/auth-dialog/auth-dialog.d.ts +0 -18
- package/components/auth-dialog/auth-dialog.js +7 -25
- package/components/auth-dialog-service/auth-dialog-service.js +4 -5
- package/components/avatar/avatar.d.ts +0 -13
- package/components/avatar/avatar.js +0 -13
- package/components/avatar/fallback-avatar.d.ts +1 -10
- package/components/avatar/fallback-avatar.js +0 -6
- package/components/badge/badge.d.ts +0 -10
- package/components/badge/badge.js +1 -11
- package/components/button/button.d.ts +0 -21
- package/components/button/button.js +0 -21
- package/components/button-group/button-group.d.ts +0 -5
- package/components/button-group/button-group.js +1 -6
- package/components/button-group/caption.d.ts +0 -4
- package/components/button-group/caption.js +0 -1
- package/components/button-set/button-set.d.ts +0 -6
- package/components/button-set/button-set.js +1 -7
- package/components/button-toolbar/button-toolbar.d.ts +0 -6
- package/components/button-toolbar/button-toolbar.js +1 -7
- package/components/checkbox/checkbox.d.ts +0 -19
- package/components/checkbox/checkbox.js +0 -18
- package/components/clipboard/clipboard.js +0 -1
- package/components/code/code.d.ts +0 -12
- package/components/code/code.js +0 -12
- package/components/confirm/confirm.d.ts +0 -14
- package/components/confirm/confirm.js +10 -24
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/content-layout/content-layout.d.ts +0 -7
- package/components/content-layout/content-layout.js +0 -7
- package/components/content-layout/sidebar.d.ts +0 -9
- package/components/content-layout/sidebar.js +0 -1
- package/components/contenteditable/contenteditable.d.ts +1 -22
- package/components/contenteditable/contenteditable.js +1 -16
- package/components/control-label/control-label.js +0 -6
- package/components/data-list/data-list.d.ts +0 -2
- package/components/data-list/data-list.js +2 -23
- package/components/data-list/data-list.mock.js +0 -1
- package/components/data-list/item.js +0 -26
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +0 -2
- package/components/date-picker/consts.d.ts +0 -2
- package/components/date-picker/consts.js +1 -3
- package/components/date-picker/date-input.d.ts +0 -20
- package/components/date-picker/date-input.js +0 -23
- package/components/date-picker/date-picker.d.ts +0 -29
- package/components/date-picker/date-picker.js +3 -40
- package/components/date-picker/date-popup.d.ts +0 -22
- package/components/date-picker/date-popup.js +1 -24
- package/components/date-picker/day.d.ts +0 -14
- package/components/date-picker/day.js +1 -15
- package/components/date-picker/month-names.d.ts +1 -11
- package/components/date-picker/month-names.js +2 -14
- package/components/date-picker/month-slider.d.ts +0 -9
- package/components/date-picker/month-slider.js +1 -10
- package/components/date-picker/month.d.ts +1 -9
- package/components/date-picker/month.js +1 -6
- package/components/date-picker/months.d.ts +1 -9
- package/components/date-picker/months.js +1 -6
- package/components/date-picker/weekdays.d.ts +2 -8
- package/components/date-picker/weekdays.js +0 -4
- package/components/date-picker/years.d.ts +0 -6
- package/components/date-picker/years.js +1 -7
- package/components/dialog/dialog.d.ts +0 -20
- package/components/dialog/dialog.js +2 -24
- package/components/dropdown/anchor.d.ts +1 -8
- package/components/dropdown/anchor.js +0 -1
- package/components/dropdown/dropdown.d.ts +4 -22
- package/components/dropdown/dropdown.js +0 -22
- package/components/dropdown-menu/dropdown-menu.js +9 -33
- package/components/editable-heading/editable-heading.js +0 -2
- package/components/error-bubble/error-bubble.d.ts +0 -6
- package/components/error-bubble/error-bubble.js +1 -7
- package/components/error-message/error-message.d.ts +0 -10
- package/components/error-message/error-message.js +1 -11
- package/components/footer/footer.js +0 -15
- package/components/form/form.js +1 -1
- package/components/global/create-stateful-context.d.ts +0 -4
- package/components/global/create-stateful-context.js +0 -4
- package/components/global/focus-sensor-hoc.js +7 -27
- package/components/global/react-dom-renderer.d.ts +0 -5
- package/components/global/react-dom-renderer.js +0 -5
- package/components/global/theme.d.ts +1 -0
- package/components/global/theme.js +1 -2
- package/components/grid/col.d.ts +0 -14
- package/components/grid/col.js +1 -16
- package/components/grid/grid.d.ts +0 -5
- package/components/grid/grid.js +1 -6
- package/components/grid/row.d.ts +0 -18
- package/components/grid/row.js +1 -19
- package/components/group/group.d.ts +0 -5
- package/components/group/group.js +1 -6
- package/components/header/header-icon.d.ts +0 -22
- package/components/header/header-icon.js +1 -6
- package/components/header/header.d.ts +0 -6
- package/components/header/header.js +0 -10
- package/components/header/logo.d.ts +0 -4
- package/components/header/logo.js +0 -4
- package/components/header/profile.d.ts +1 -39
- package/components/header/profile.js +1 -40
- package/components/header/services-link.d.ts +0 -10
- package/components/header/services-link.js +0 -1
- package/components/header/services.d.ts +0 -14
- package/components/header/services.js +1 -13
- package/components/header/smart-profile.d.ts +0 -9
- package/components/header/smart-profile.js +16 -28
- package/components/header/smart-services.d.ts +0 -4
- package/components/header/smart-services.js +17 -51
- package/components/header/tray.d.ts +0 -5
- package/components/header/tray.js +1 -6
- package/components/heading/heading.js +0 -6
- package/components/icon/icon.d.ts +0 -11
- package/components/icon/icon.js +0 -11
- package/components/icon/icon__svg.d.ts +0 -8
- package/components/icon/icon__svg.js +0 -1
- package/components/icon/index.js +0 -1
- package/components/input/input-legacy.js +1 -1
- package/components/input/input.js +0 -2
- package/components/input-size/input-size.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +0 -1
- package/components/island/adaptive-island-hoc.js +3 -4
- package/components/island/content.d.ts +0 -10
- package/components/island/content.js +2 -12
- package/components/island/header.js +2 -10
- package/components/island/island.d.ts +0 -9
- package/components/island/island.js +1 -9
- package/components/island-legacy/content-legacy.d.ts +0 -5
- package/components/island-legacy/content-legacy.js +1 -6
- package/components/island-legacy/header-legacy.d.ts +0 -5
- package/components/island-legacy/header-legacy.js +1 -6
- package/components/island-legacy/island-legacy.d.ts +0 -5
- package/components/island-legacy/island-legacy.js +1 -6
- package/components/link/clickableLink.d.ts +0 -9
- package/components/link/clickableLink.js +0 -9
- package/components/link/link.d.ts +0 -25
- package/components/link/link.js +3 -16
- package/components/list/list.d.ts +0 -32
- package/components/list/list.js +1 -31
- package/components/list/list__custom.js +0 -17
- package/components/list/list__hint.d.ts +0 -4
- package/components/list/list__hint.js +0 -5
- package/components/list/list__item.js +0 -33
- package/components/list/list__link.js +2 -13
- package/components/list/list__separator.js +0 -6
- package/components/list/list__title.js +0 -7
- package/components/list/list__users-groups-source.js +0 -2
- package/components/loader/loader.d.ts +0 -10
- package/components/loader/loader.js +0 -10
- package/components/loader-inline/loader-inline.d.ts +0 -6
- package/components/loader-inline/loader-inline.js +1 -7
- package/components/loader-screen/loader-screen.d.ts +0 -6
- package/components/loader-screen/loader-screen.js +1 -7
- package/components/login-dialog/login-dialog.d.ts +0 -11
- package/components/login-dialog/login-dialog.js +12 -23
- package/components/login-dialog/service.js +3 -2
- package/components/markdown/markdown.js +0 -5
- package/components/message/message.js +0 -16
- package/components/pager/pager.js +1 -21
- package/components/panel/panel.d.ts +0 -5
- package/components/panel/panel.js +1 -6
- package/components/popup/popup.js +0 -41
- package/components/popup/popup.target.js +0 -5
- package/components/popup-menu/popup-menu.js +1 -12
- package/components/progress-bar/progress-bar.d.ts +19 -33
- package/components/progress-bar/progress-bar.js +0 -33
- package/components/query-assist/query-assist.d.ts +63 -93
- package/components/query-assist/query-assist.js +2 -96
- package/components/query-assist/query-assist__suggestions.js +0 -2
- package/components/radio/radio.d.ts +0 -8
- package/components/radio/radio.js +0 -8
- package/components/radio/radio__item.d.ts +0 -9
- package/components/radio/radio__item.js +0 -10
- package/components/select/select.js +3 -68
- package/components/select/select__filter.js +0 -2
- package/components/select/select__popup.js +1 -52
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +0 -5
- package/components/shortcuts/shortcuts-hoc.js +2 -7
- package/components/shortcuts/shortcuts.d.ts +0 -8
- package/components/shortcuts/shortcuts.js +0 -8
- package/components/slider/slider.js +0 -1
- package/components/storage/storage.d.ts +2 -3
- package/components/storage/storage.js +2 -22
- package/components/storage/storage__local.js +0 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +0 -8
- package/components/table/cell.d.ts +0 -6
- package/components/table/cell.js +1 -7
- package/components/table/disable-hover-hoc.d.ts +0 -1
- package/components/table/disable-hover-hoc.js +1 -1
- package/components/table/header-cell.d.ts +0 -10
- package/components/table/header-cell.js +0 -10
- package/components/table/header.d.ts +0 -15
- package/components/table/header.js +0 -16
- package/components/table/multitable.d.ts +0 -4
- package/components/table/multitable.js +0 -4
- package/components/table/row-with-focus-sensor.d.ts +2 -2
- package/components/table/row-with-focus-sensor.js +0 -3
- package/components/table/row.js +0 -35
- package/components/table/selection-shortcuts-hoc.js +3 -22
- package/components/table/simple-table.d.ts +0 -44
- package/components/table/simple-table.js +1 -7
- package/components/table/smart-table.d.ts +0 -48
- package/components/table/smart-table.js +1 -10
- package/components/table/table.d.ts +0 -2
- package/components/table/table.js +3 -52
- package/components/tabs/collapsible-more.d.ts +1 -9
- package/components/tabs/collapsible-more.js +0 -24
- package/components/tabs/collapsible-tab.js +1 -9
- package/components/tabs/collapsible-tabs.d.ts +2 -29
- package/components/tabs/collapsible-tabs.js +0 -13
- package/components/tabs/custom-item.d.ts +1 -7
- package/components/tabs/custom-item.js +0 -5
- package/components/tabs/dumb-tabs.d.ts +0 -11
- package/components/tabs/dumb-tabs.js +0 -12
- package/components/tabs/smart-tabs.d.ts +0 -6
- package/components/tabs/smart-tabs.js +0 -7
- package/components/tabs/tab-link.d.ts +0 -8
- package/components/tabs/tab-link.js +0 -1
- package/components/tabs/tab.d.ts +0 -8
- package/components/tabs/tab.js +0 -9
- package/components/tabs/tabs.js +0 -2
- package/components/tag/tag.d.ts +0 -17
- package/components/tag/tag.js +0 -17
- package/components/tags-input/tags-input.d.ts +7 -33
- package/components/tags-input/tags-input.js +2 -35
- package/components/tags-list/tags-list.d.ts +0 -13
- package/components/tags-list/tags-list.js +0 -13
- package/components/text/text.d.ts +0 -7
- package/components/text/text.js +0 -7
- package/components/toggle/toggle.d.ts +0 -15
- package/components/toggle/toggle.js +0 -15
- package/components/tooltip/tooltip.d.ts +0 -9
- package/components/tooltip/tooltip.js +0 -9
- package/components/user-agreement/service.d.ts +2 -1
- package/components/user-agreement/service.js +2 -6
- package/components/user-agreement/user-agreement.d.ts +0 -18
- package/components/user-agreement/user-agreement.js +11 -29
- package/components/user-card/card.d.ts +0 -35
- package/components/user-card/card.js +0 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +0 -5
- package/components/user-card/smart-user-card-tooltip.js +0 -5
- package/components/user-card/tooltip.d.ts +0 -9
- package/components/user-card/tooltip.js +0 -9
- package/components/user-card/user-card.js +0 -1
- package/package.json +1 -3
- package/components/global/prop-types.d.ts +0 -4
- package/components/global/prop-types.js +0 -7
- package/components/storage/storage__fallback.d.ts +0 -79
- package/components/storage/storage__fallback.js +0 -180
@@ -1,6 +1,5 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import { memo } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import chevronDown from '@jetbrains/icons/chevron-10px';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import Icon from '../icon/icon.js';
|
@@ -27,10 +26,6 @@ const Anchor = _ref => {
|
|
27
26
|
})]
|
28
27
|
}));
|
29
28
|
};
|
30
|
-
Anchor.propTypes = {
|
31
|
-
children: PropTypes.node,
|
32
|
-
className: PropTypes.string
|
33
|
-
};
|
34
29
|
var Anchor$1 = /*#__PURE__*/memo(Anchor);
|
35
30
|
|
36
31
|
export { Anchor$1 as A, modules_d9414203 as m };
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
6
5
|
|
@@ -17,8 +16,5 @@ class Caption extends PureComponent {
|
|
17
16
|
}));
|
18
17
|
}
|
19
18
|
}
|
20
|
-
_defineProperty(Caption, "propTypes", {
|
21
|
-
className: PropTypes.node
|
22
|
-
});
|
23
19
|
|
24
20
|
export { Caption as C, modules_1068e447 as m };
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import copyIcon from '@jetbrains/icons/copy';
|
7
6
|
import Avatar, { Size } from '../avatar/avatar.js';
|
@@ -16,15 +15,6 @@ import { Size as Size$1 } from '../icon/icon__constants.js';
|
|
16
15
|
var modules_a4196c17 = {"light":"light_rui_2ac4","userCardSpaced":"userCardSpaced_rui_6680","userInformationContainer":"userInformationContainer_rui_6680","userAvatar":"userAvatar_rui_6680","userInformation":"userInformation_rui_6680","userInformationGeneral":"userInformationGeneral_rui_6680","userNameLine":"userNameLine_rui_6680","userName":"userName_rui_6680","userLogin":"userLogin_rui_6680","userEmail":"userEmail_rui_6680","userCopyIcon":"userCopyIcon_rui_6680","userEmailWrapper":"userEmailWrapper_rui_6680","unverifiedLabel":"unverifiedLabel_rui_6680","userNameInfo":"userNameInfo_rui_6680","userActiveStatus":"userActiveStatus_rui_6680","online":"online_rui_6680"};
|
17
16
|
|
18
17
|
const _excluded = ["children", "info", "className", "user", "avatarInfo"];
|
19
|
-
const translationsShape = PropTypes.shape({
|
20
|
-
banned: PropTypes.string.isRequired,
|
21
|
-
online: PropTypes.string.isRequired,
|
22
|
-
offline: PropTypes.string.isRequired,
|
23
|
-
copyToClipboard: PropTypes.string,
|
24
|
-
copiedToClipboard: PropTypes.string,
|
25
|
-
copingToClipboardError: PropTypes.string,
|
26
|
-
unverified: PropTypes.string
|
27
|
-
});
|
28
18
|
class UserCard extends PureComponent {
|
29
19
|
constructor() {
|
30
20
|
super(...arguments);
|
@@ -119,24 +109,6 @@ class UserCard extends PureComponent {
|
|
119
109
|
}));
|
120
110
|
}
|
121
111
|
}
|
122
|
-
_defineProperty(UserCard, "propTypes", {
|
123
|
-
children: PropTypes.node,
|
124
|
-
info: PropTypes.node,
|
125
|
-
className: PropTypes.string,
|
126
|
-
user: PropTypes.shape({
|
127
|
-
name: PropTypes.string.isRequired,
|
128
|
-
login: PropTypes.string.isRequired,
|
129
|
-
avatarUrl: PropTypes.string.isRequired,
|
130
|
-
email: PropTypes.string,
|
131
|
-
href: PropTypes.string,
|
132
|
-
online: PropTypes.bool,
|
133
|
-
banned: PropTypes.bool,
|
134
|
-
banReason: PropTypes.string,
|
135
|
-
unverifiedEmail: PropTypes.bool
|
136
|
-
}).isRequired,
|
137
|
-
wording: translationsShape,
|
138
|
-
translations: translationsShape
|
139
|
-
});
|
140
112
|
_defineProperty(UserCard, "contextType", I18nContext);
|
141
113
|
|
142
114
|
export { UserCard as U, modules_a4196c17 as m };
|
@@ -3,7 +3,6 @@ import 'core-js/modules/es.regexp.exec.js';
|
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
4
|
import { memo } from 'react';
|
5
5
|
import classNames from 'classnames';
|
6
|
-
import PropTypes from 'prop-types';
|
7
6
|
import memoize from '../global/memoize.js';
|
8
7
|
import { jsx } from 'react/jsx-runtime';
|
9
8
|
|
@@ -70,11 +69,6 @@ function IconSVG(_ref) {
|
|
70
69
|
}
|
71
70
|
}));
|
72
71
|
}
|
73
|
-
IconSVG.propTypes = {
|
74
|
-
className: PropTypes.string,
|
75
|
-
src: PropTypes.string.isRequired,
|
76
|
-
style: PropTypes.object
|
77
|
-
};
|
78
72
|
var IconSVG$1 = /*#__PURE__*/memo(IconSVG);
|
79
73
|
|
80
74
|
export { IconSVG$1 as I, modules_29747b80 as m };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import closeIcon from '@jetbrains/icons/close-12px';
|
7
|
-
import { refObject } from '../global/prop-types.js';
|
8
6
|
import { Button } from '../button/button.js';
|
9
7
|
import getUID from '../global/get-uid.js';
|
10
8
|
import Icon from '../icon/icon.js';
|
@@ -198,24 +196,5 @@ _defineProperty(Input, "defaultProps", {
|
|
198
196
|
enableShortcuts: ['esc']
|
199
197
|
});
|
200
198
|
_defineProperty(Input, "contextType", ControlsHeightContext);
|
201
|
-
Input.propTypes = {
|
202
|
-
value: PropTypes.string,
|
203
|
-
className: PropTypes.string,
|
204
|
-
inputClassName: PropTypes.string,
|
205
|
-
size: PropTypes.oneOf(Object.values(Size)).isRequired,
|
206
|
-
label: PropTypes.node,
|
207
|
-
error: PropTypes.string,
|
208
|
-
multiline: PropTypes.bool,
|
209
|
-
onChange: PropTypes.func,
|
210
|
-
onClear: PropTypes.func,
|
211
|
-
inputRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLInputElement)), refObject(PropTypes.instanceOf(HTMLTextAreaElement))]),
|
212
|
-
children: PropTypes.string,
|
213
|
-
enableShortcuts: PropTypes.oneOfType([PropTypes.bool, PropTypes.arrayOf(PropTypes.string.isRequired)]),
|
214
|
-
disabled: PropTypes.bool,
|
215
|
-
id: PropTypes.string,
|
216
|
-
placeholder: PropTypes.string,
|
217
|
-
translations: PropTypes.object,
|
218
|
-
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType])
|
219
|
-
};
|
220
199
|
|
221
200
|
export { Input as I, Size as S, modules_88cfaf40 as m };
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { Component } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { I as Input } from './input.js';
|
7
6
|
import sniffr from '../global/sniffer.js';
|
@@ -75,12 +74,5 @@ class SelectFilter extends Component {
|
|
75
74
|
_defineProperty(SelectFilter, "defaultProps", {
|
76
75
|
inputRef: noop
|
77
76
|
});
|
78
|
-
SelectFilter.propTypes = {
|
79
|
-
placeholder: PropTypes.string,
|
80
|
-
className: PropTypes.string,
|
81
|
-
inputRef: PropTypes.func,
|
82
|
-
listId: PropTypes.string,
|
83
|
-
activeItemId: PropTypes.string
|
84
|
-
};
|
85
77
|
|
86
78
|
export { SelectFilter as S, modules_b607bec2 as m };
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import Link from '../link/link.js';
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
6
5
|
|
@@ -29,14 +28,5 @@ class ServicesLink extends PureComponent {
|
|
29
28
|
}));
|
30
29
|
}
|
31
30
|
}
|
32
|
-
_defineProperty(ServicesLink, "propTypes", {
|
33
|
-
isActive: PropTypes.bool,
|
34
|
-
service: PropTypes.shape({
|
35
|
-
applicationName: PropTypes.string,
|
36
|
-
iconUrl: PropTypes.string,
|
37
|
-
homeUrl: PropTypes.string,
|
38
|
-
name: PropTypes.string
|
39
|
-
})
|
40
|
-
});
|
41
31
|
|
42
32
|
export { ServicesLink as S, modules_74a7bf8b as m };
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { Component } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { Waypoint } from 'react-waypoint';
|
7
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
@@ -111,13 +110,5 @@ class Sidebar extends Component {
|
|
111
110
|
});
|
112
111
|
}
|
113
112
|
}
|
114
|
-
_defineProperty(Sidebar, "propTypes", {
|
115
|
-
right: PropTypes.bool,
|
116
|
-
children: PropTypes.node,
|
117
|
-
className: PropTypes.string,
|
118
|
-
containerClassName: PropTypes.string,
|
119
|
-
fixedClassName: PropTypes.string,
|
120
|
-
contentNode: PropTypes.object
|
121
|
-
});
|
122
113
|
|
123
114
|
export { Sidebar as S, modules_b8a9dd4f as m };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import { memo } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import Link from '../link/link.js';
|
5
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
6
5
|
|
@@ -34,11 +33,6 @@ function TabLink(_ref) {
|
|
34
33
|
})
|
35
34
|
}));
|
36
35
|
}
|
37
|
-
TabLink.propTypes = {
|
38
|
-
isSelected: PropTypes.bool,
|
39
|
-
collapsed: PropTypes.bool,
|
40
|
-
title: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node])
|
41
|
-
};
|
42
36
|
var TabLink$1 = /*#__PURE__*/memo(TabLink);
|
43
37
|
|
44
38
|
export { TabLink$1 as T, modules_02138f4a as m };
|
@@ -103,4 +103,4 @@ const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(_ref2, ref)
|
|
103
103
|
});
|
104
104
|
var Theme$1 = Theme;
|
105
105
|
|
106
|
-
export { Theme$1 as T, WithThemeClasses as W, ThemeProvider as a, ThemeContext as b, useThemeClasses as c, applyTheme as d, modules_59717246 as m, useTheme as u };
|
106
|
+
export { GLOBAL_DARK_CLASS_NAME as G, Theme$1 as T, WithThemeClasses as W, ThemeProvider as a, ThemeContext as b, useThemeClasses as c, applyTheme as d, modules_59717246 as m, useTheme as u };
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
7
6
|
import Checkbox from '../checkbox/checkbox.js';
|
8
7
|
import getUID from '../global/get-uid.js';
|
9
|
-
import { refObject } from '../global/prop-types.js';
|
10
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
11
9
|
|
12
10
|
var modules_09d014b4 = {"height":"i__const_height_0","compensate":"i__const_compensate_1","light":"light_rui_2ac4","dataListWrapper":"dataListWrapper_rui_be4b","dataList":"dataList_rui_be4b","itemContent":"itemContent_rui_be4b","title":"title_rui_be4b","disabledHover":"disabledHover_rui_be4b","titleSelected":"titleSelected_rui_be4b","titleFocused":"titleFocused_rui_be4b","showMore":"showMore_rui_be4b","boxes":"boxes_rui_be4b","checkboxBox":"checkboxBox_rui_be4b","collapseButton":"collapseButton_rui_be4b","collapseIcon":"collapseIcon_rui_be4b","loadingOverlay":"loadingOverlay_rui_be4b","showMoreLoader":"showMoreLoader_rui_be4b"};
|
@@ -77,19 +75,6 @@ _defineProperty(Title, "defaultProps", {
|
|
77
75
|
selected: false,
|
78
76
|
showFocus: false
|
79
77
|
});
|
80
|
-
Title.propTypes = {
|
81
|
-
className: PropTypes.string,
|
82
|
-
title: PropTypes.node,
|
83
|
-
offset: PropTypes.number,
|
84
|
-
selectable: PropTypes.bool,
|
85
|
-
selected: PropTypes.bool,
|
86
|
-
onSelect: PropTypes.func.isRequired,
|
87
|
-
showFocus: PropTypes.bool,
|
88
|
-
collapserExpander: PropTypes.node,
|
89
|
-
innerRef: PropTypes.oneOfType([refObject(PropTypes.instanceOf(HTMLDivElement)), PropTypes.func]),
|
90
|
-
// focusSensorHOC
|
91
|
-
onFocusRestore: PropTypes.func.isRequired
|
92
|
-
};
|
93
78
|
var Title$1 = focusSensorHOC(Title);
|
94
79
|
|
95
80
|
export { Title$1 as T, modules_09d014b4 as m };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PureComponent, ReactNode } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import Theme from '../global/theme';
|
5
4
|
export declare const ANIMATION_TIME = 500;
|
6
5
|
/**
|
@@ -20,10 +19,17 @@ export declare enum AlertType {
|
|
20
19
|
export interface AlertProps {
|
21
20
|
theme: Theme;
|
22
21
|
timeout: number;
|
22
|
+
/**
|
23
|
+
* Fires when alert starts closing if timeout is out or user clicks "Close" button
|
24
|
+
*/
|
23
25
|
onCloseRequest: ((event?: React.MouseEvent<HTMLElement>) => void);
|
24
26
|
onClose: (() => void);
|
25
27
|
isShaking: boolean;
|
26
28
|
isClosing: boolean;
|
29
|
+
/**
|
30
|
+
* Whether an alert is rendered inside an **Alerts** container
|
31
|
+
* or standalone.
|
32
|
+
*/
|
27
33
|
inline: boolean;
|
28
34
|
showWithAnimation: boolean;
|
29
35
|
closeable: boolean;
|
@@ -46,29 +52,6 @@ interface State {
|
|
46
52
|
* **Alert** is a component for displaying contextual notifications. If you want to display a stack of notifications, use **Alerts** instead.
|
47
53
|
*/
|
48
54
|
export default class Alert extends PureComponent<AlertProps, State> {
|
49
|
-
static propTypes: {
|
50
|
-
timeout: PropTypes.Requireable<number>;
|
51
|
-
/**
|
52
|
-
* Fires when alert starts closing if timeout is out or user clicks "Close" button
|
53
|
-
*/
|
54
|
-
onCloseRequest: PropTypes.Requireable<(...args: any[]) => any>;
|
55
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
56
|
-
isShaking: PropTypes.Requireable<boolean>;
|
57
|
-
isClosing: PropTypes.Requireable<boolean>;
|
58
|
-
/**
|
59
|
-
* Whether an alert is rendered inside an **Alerts** container
|
60
|
-
* or standalone.
|
61
|
-
*/
|
62
|
-
inline: PropTypes.Requireable<boolean>;
|
63
|
-
showWithAnimation: PropTypes.Requireable<boolean>;
|
64
|
-
closeable: PropTypes.Requireable<boolean>;
|
65
|
-
type: PropTypes.Requireable<AlertType>;
|
66
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
67
|
-
className: PropTypes.Requireable<string>;
|
68
|
-
captionClassName: PropTypes.Requireable<string>;
|
69
|
-
closeButtonClassName: PropTypes.Requireable<string>;
|
70
|
-
'data-test': PropTypes.Requireable<string>;
|
71
|
-
};
|
72
55
|
/** @override */
|
73
56
|
static defaultProps: {
|
74
57
|
theme: Theme;
|
@@ -2,7 +2,6 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
4
|
import classNames from 'classnames';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import exceptionIcon from '@jetbrains/icons/exception';
|
7
6
|
import checkmarkIcon from '@jetbrains/icons/checkmark';
|
8
7
|
import warningIcon from '@jetbrains/icons/warning';
|
@@ -210,29 +209,6 @@ class Alert extends PureComponent {
|
|
210
209
|
});
|
211
210
|
}
|
212
211
|
}
|
213
|
-
_defineProperty(Alert, "propTypes", {
|
214
|
-
timeout: PropTypes.number,
|
215
|
-
/**
|
216
|
-
* Fires when alert starts closing if timeout is out or user clicks "Close" button
|
217
|
-
*/
|
218
|
-
onCloseRequest: PropTypes.func,
|
219
|
-
onClose: PropTypes.func,
|
220
|
-
isShaking: PropTypes.bool,
|
221
|
-
isClosing: PropTypes.bool,
|
222
|
-
/**
|
223
|
-
* Whether an alert is rendered inside an **Alerts** container
|
224
|
-
* or standalone.
|
225
|
-
*/
|
226
|
-
inline: PropTypes.bool,
|
227
|
-
showWithAnimation: PropTypes.bool,
|
228
|
-
closeable: PropTypes.bool,
|
229
|
-
type: PropTypes.oneOf(Object.values(AlertType)),
|
230
|
-
children: PropTypes.node,
|
231
|
-
className: PropTypes.string,
|
232
|
-
captionClassName: PropTypes.string,
|
233
|
-
closeButtonClassName: PropTypes.string,
|
234
|
-
'data-test': PropTypes.string
|
235
|
-
});
|
236
212
|
/** @override */
|
237
213
|
_defineProperty(Alert, "defaultProps", {
|
238
214
|
theme: Theme.DARK,
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
/**
|
4
3
|
* @name Alert Container
|
5
4
|
* @description Displays a stack of alerts on top of the page.
|
@@ -7,9 +6,5 @@ import PropTypes from 'prop-types';
|
|
7
6
|
*/
|
8
7
|
export type AlertContainerProps = HTMLAttributes<HTMLDivElement>;
|
9
8
|
export default class Alerts extends PureComponent<AlertContainerProps> {
|
10
|
-
static propTypes: {
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
12
|
-
className: PropTypes.Requireable<string>;
|
13
|
-
};
|
14
9
|
render(): import("react").ReactPortal | null;
|
15
10
|
}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent, Children, isValidElement, cloneElement } from 'react';
|
3
3
|
import { createPortal } from 'react-dom';
|
4
4
|
import classNames from 'classnames';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
7
6
|
|
8
7
|
var modules_fc8df42d = {"light":"light_rui_2ac4","alertContainer":"alertContainer_rui_971c","alertInContainer":"alertInContainer_rui_971c alert_rui_25ab"};
|
@@ -38,9 +37,5 @@ class Alerts extends PureComponent {
|
|
38
37
|
})), document.body);
|
39
38
|
}
|
40
39
|
}
|
41
|
-
_defineProperty(Alerts, "propTypes", {
|
42
|
-
children: PropTypes.node,
|
43
|
-
className: PropTypes.string
|
44
|
-
});
|
45
40
|
|
46
41
|
export { Alerts as default };
|
@@ -7,7 +7,6 @@ import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
import Alerts from '../alert/container.js';
|
8
8
|
import 'react';
|
9
9
|
import 'classnames';
|
10
|
-
import 'prop-types';
|
11
10
|
import '@jetbrains/icons/exception';
|
12
11
|
import '@jetbrains/icons/checkmark';
|
13
12
|
import '@jetbrains/icons/warning';
|
package/components/auth/auth.js
CHANGED
@@ -9,7 +9,6 @@ import 'core-js/modules/es.string.replace.js';
|
|
9
9
|
import 'es6-error';
|
10
10
|
import '../global/url.js';
|
11
11
|
import 'react';
|
12
|
-
import 'prop-types';
|
13
12
|
import '../alert-service/alert-service.js';
|
14
13
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
15
14
|
import 'react-dom/client';
|
@@ -61,10 +60,7 @@ import '../http/http.js';
|
|
61
60
|
import '../global/promise-with-timeout.js';
|
62
61
|
import '../i18n/i18n.js';
|
63
62
|
import './storage.js';
|
64
|
-
import '../storage/storage.js';
|
65
63
|
import '../storage/storage__local.js';
|
66
|
-
import '../storage/storage__fallback.js';
|
67
|
-
import 'deep-equal';
|
68
64
|
import './request-builder.js';
|
69
65
|
import 'simply-uuid';
|
70
66
|
import './background-flow.js';
|
@@ -129,7 +129,7 @@ export default class Auth implements HTTPAuth {
|
|
129
129
|
listeners: Listeners<AuthPayloadMap>;
|
130
130
|
http: HTTP;
|
131
131
|
private _service;
|
132
|
-
readonly _storage: AuthStorage<number
|
132
|
+
readonly _storage: AuthStorage<number>;
|
133
133
|
private _responseParser;
|
134
134
|
private readonly _requestBuilder;
|
135
135
|
_backgroundFlow: BackgroundFlow | null;
|
@@ -174,7 +174,7 @@ export default class Auth implements HTTPAuth {
|
|
174
174
|
/**
|
175
175
|
* @return {Promise.<object>}
|
176
176
|
*/
|
177
|
-
getUser(accessToken?: string | null | undefined): Promise<any
|
177
|
+
getUser(accessToken?: string | null | undefined): Promise<any>;
|
178
178
|
/**
|
179
179
|
* @return {Promise.<object>}
|
180
180
|
*/
|
@@ -197,7 +197,7 @@ export default class Auth implements HTTPAuth {
|
|
197
197
|
*/
|
198
198
|
login(): Promise<void>;
|
199
199
|
switchUser(): Promise<void>;
|
200
|
-
_makeStateFromResponse(authResponse: AuthResponse): AuthState;
|
200
|
+
_makeStateFromResponse(authResponse: AuthResponse): AuthState | null;
|
201
201
|
/**
|
202
202
|
* Check if the hash contains an access token.
|
203
203
|
* If it does, extract the state, compare with
|
@@ -18,7 +18,6 @@ import TokenValidator from './token-validator.js';
|
|
18
18
|
import 'es6-error';
|
19
19
|
import 'core-js/modules/es.array.reduce.js';
|
20
20
|
import 'core-js/modules/es.array.sort.js';
|
21
|
-
import '../storage/storage.js';
|
22
21
|
import '../storage/storage__local.js';
|
23
22
|
import '../alert-service/alert-service.js';
|
24
23
|
import 'react-dom/client';
|
@@ -26,7 +25,6 @@ import '../global/get-uid.js';
|
|
26
25
|
import '../alert/alert.js';
|
27
26
|
import 'react';
|
28
27
|
import 'classnames';
|
29
|
-
import 'prop-types';
|
30
28
|
import '@jetbrains/icons/exception';
|
31
29
|
import '@jetbrains/icons/checkmark';
|
32
30
|
import '@jetbrains/icons/warning';
|
@@ -59,8 +57,6 @@ import '../tab-trap/tab-trap.js';
|
|
59
57
|
import '../popup/position.js';
|
60
58
|
import '../popup/popup.consts.js';
|
61
59
|
import '../alert/container.js';
|
62
|
-
import '../storage/storage__fallback.js';
|
63
|
-
import 'deep-equal';
|
64
60
|
import 'simply-uuid';
|
65
61
|
|
66
62
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
@@ -106,7 +102,7 @@ class Auth {
|
|
106
102
|
_defineProperty(this, "listeners", new Listeners());
|
107
103
|
_defineProperty(this, "http", void 0);
|
108
104
|
_defineProperty(this, "_service", {});
|
109
|
-
_defineProperty(this, "_storage",
|
105
|
+
_defineProperty(this, "_storage", void 0);
|
110
106
|
_defineProperty(this, "_responseParser", new AuthResponseParser());
|
111
107
|
_defineProperty(this, "_requestBuilder", null);
|
112
108
|
_defineProperty(this, "_backgroundFlow", void 0);
|
@@ -193,7 +189,10 @@ class Auth {
|
|
193
189
|
this.addListener(LOGOUT_EVENT, this.config.onLogout);
|
194
190
|
}
|
195
191
|
if (this.config.reloadOnUserChange) {
|
196
|
-
this.addListener(USER_CHANGED_EVENT, () =>
|
192
|
+
this.addListener(USER_CHANGED_EVENT, () => {
|
193
|
+
// Timeout is needed to ensure all other listeners triggered before stopping current page
|
194
|
+
setTimeout(() => this._reloadCurrentPage());
|
195
|
+
});
|
197
196
|
}
|
198
197
|
this.addListener(LOGOUT_POSTPONED_EVENT, () => this._setPostponed(true));
|
199
198
|
this.addListener(USER_CHANGE_POSTPONED_EVENT, () => this._setPostponed(true));
|
@@ -805,24 +804,25 @@ class Auth {
|
|
805
804
|
state
|
806
805
|
} = authResponse;
|
807
806
|
if (!state) {
|
808
|
-
|
807
|
+
throw new Error('No state in AuthResponse');
|
809
808
|
}
|
810
809
|
const {
|
811
810
|
scope: defaultScope
|
812
811
|
} = this.config;
|
812
|
+
let urlFromState = null;
|
813
813
|
try {
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
}
|
818
|
-
return {
|
819
|
-
restoreLocation: state,
|
820
|
-
created: Date.now(),
|
821
|
-
scopes: defaultScope
|
822
|
-
};
|
823
|
-
} catch (e) {
|
824
|
-
return {};
|
814
|
+
urlFromState = new URL(state); // checking if state contains valid URL on same origin, see HUB-11514
|
815
|
+
} catch (_unused2) {
|
816
|
+
return null;
|
825
817
|
}
|
818
|
+
if (urlFromState.origin !== window.location.origin) {
|
819
|
+
throw new Error("State contains URL with different origin: \"".concat(state, "\""));
|
820
|
+
}
|
821
|
+
return {
|
822
|
+
restoreLocation: state,
|
823
|
+
created: Date.now(),
|
824
|
+
scopes: defaultScope
|
825
|
+
};
|
826
826
|
}
|
827
827
|
/**
|
828
828
|
* Check if the hash contains an access token.
|
@@ -833,7 +833,6 @@ class Auth {
|
|
833
833
|
* @private
|
834
834
|
*/
|
835
835
|
async _checkForAuthResponse() {
|
836
|
-
var _this$_storage15;
|
837
836
|
// getAuthResponseURL may throw an exception
|
838
837
|
const authResponse = this._responseParser.getAuthResponseFromURL();
|
839
838
|
const {
|
@@ -853,13 +852,22 @@ class Auth {
|
|
853
852
|
expiresIn,
|
854
853
|
accessToken
|
855
854
|
} = authResponse;
|
856
|
-
|
855
|
+
let newState = null;
|
856
|
+
if (stateId) {
|
857
|
+
newState = await this._storage.getState(stateId);
|
858
|
+
if (!newState) {
|
859
|
+
newState = this._makeStateFromResponse(authResponse);
|
860
|
+
}
|
861
|
+
}
|
862
|
+
if (!newState) {
|
863
|
+
throw new Error("Could not create state where stateId=\"".concat(stateId, "\""));
|
864
|
+
}
|
857
865
|
const scopes = scope ? scope.split(' ') : newState.scopes || defaultScope || [];
|
858
866
|
const effectiveExpiresIn = expiresIn ? parseInt(expiresIn, 10) : defaultExpiresIn;
|
859
867
|
const expires = TokenValidator._epoch() + effectiveExpiresIn;
|
860
868
|
if (accessToken != null) {
|
861
|
-
var _this$
|
862
|
-
await ((_this$
|
869
|
+
var _this$_storage15;
|
870
|
+
await ((_this$_storage15 = this._storage) === null || _this$_storage15 === void 0 ? void 0 : _this$_storage15.saveToken({
|
863
871
|
accessToken,
|
864
872
|
scopes,
|
865
873
|
expires,
|
@@ -869,13 +877,13 @@ class Auth {
|
|
869
877
|
return newState;
|
870
878
|
}
|
871
879
|
async _checkForStateRestoration() {
|
872
|
-
var _this$
|
880
|
+
var _this$_storage16;
|
873
881
|
const authResponse = this._responseParser._authResponse;
|
874
882
|
if (authResponse && this.config.cleanHash) {
|
875
883
|
this.setHash('');
|
876
884
|
}
|
877
885
|
const stateId = authResponse === null || authResponse === void 0 ? void 0 : authResponse.restoreAuthState;
|
878
|
-
return (await (stateId && ((_this$
|
886
|
+
return (await (stateId && ((_this$_storage16 = this._storage) === null || _this$_storage16 === void 0 ? void 0 : _this$_storage16.getState(stateId)))) || {};
|
879
887
|
}
|
880
888
|
_checkBackendsAreUp() {
|
881
889
|
const abortCtrl = new AbortController();
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import alertService from '../alert-service/alert-service.js';
|
4
3
|
import Alert from '../alert/alert.js';
|
5
4
|
import Link from '../link/link.js';
|
@@ -90,14 +89,6 @@ function Message(_ref) {
|
|
90
89
|
})]
|
91
90
|
});
|
92
91
|
}
|
93
|
-
Message.propTypes = {
|
94
|
-
translations: PropTypes.shape({
|
95
|
-
backendIsNotAvailable: PropTypes.string,
|
96
|
-
checkAgain: PropTypes.string,
|
97
|
-
errorMessage: PropTypes.string
|
98
|
-
}),
|
99
|
-
onCheckAgain: PropTypes.func
|
100
|
-
};
|
101
92
|
function onBackendDown(_ref2) {
|
102
93
|
let {
|
103
94
|
onCheckAgain,
|
@@ -2,15 +2,13 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/es.array.reduce.js';
|
3
3
|
import 'core-js/modules/es.array.sort.js';
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
|
-
import
|
6
|
-
import '../storage/storage__local.js';
|
5
|
+
import LocalStorage from '../storage/storage__local.js';
|
7
6
|
import '../alert-service/alert-service.js';
|
8
7
|
import 'react-dom/client';
|
9
8
|
import '../global/get-uid.js';
|
10
9
|
import '../alert/alert.js';
|
11
10
|
import 'react';
|
12
11
|
import 'classnames';
|
13
|
-
import 'prop-types';
|
14
12
|
import '@jetbrains/icons/exception';
|
15
13
|
import '@jetbrains/icons/checkmark';
|
16
14
|
import '@jetbrains/icons/warning';
|
@@ -45,8 +43,6 @@ import '../tab-trap/tab-trap.js';
|
|
45
43
|
import '../popup/position.js';
|
46
44
|
import '../popup/popup.consts.js';
|
47
45
|
import '../alert/container.js';
|
48
|
-
import '../storage/storage__fallback.js';
|
49
|
-
import 'deep-equal';
|
50
46
|
|
51
47
|
/**
|
52
48
|
* @typedef {Object} StoredToken
|
@@ -87,8 +83,8 @@ class AuthStorage {
|
|
87
83
|
this.userKey = config.userKey || 'user-key';
|
88
84
|
this.stateTTL = config.stateTTL || DEFAULT_STATE_TTL;
|
89
85
|
this._lastMessage = null;
|
90
|
-
const StorageConstructor = config.storage ||
|
91
|
-
this.stateQuota =
|
86
|
+
const StorageConstructor = config.storage || LocalStorage;
|
87
|
+
this.stateQuota = config.stateQuota || DEFAULT_STATE_QUOTA;
|
92
88
|
this._stateStorage = new StorageConstructor({
|
93
89
|
cookieName: 'ring-state'
|
94
90
|
});
|