@jetbrains/ring-ui-built 7.0.26 → 7.0.28
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/_rollupPluginBabelHelpers.js +1 -1
- package/components/_helpers/button__classes.js +1 -1
- package/components/_helpers/dialog__body-scroll-preventer.js +4 -4
- package/components/_helpers/icon__svg.js +1 -0
- package/components/_helpers/theme.js +4 -4
- package/components/alert/alert.js +7 -0
- package/components/alert-service/alert-service.js +11 -4
- package/components/auth/auth.js +10 -0
- package/components/auth/auth__core.js +11 -1
- package/components/auth/background-flow.js +3 -0
- package/components/auth/down-notification.js +8 -0
- package/components/auth/iframe-flow.js +8 -0
- package/components/auth/request-builder.js +3 -0
- package/components/auth/response-parser.js +2 -0
- package/components/auth/storage.js +8 -0
- package/components/auth/token-validator.js +4 -0
- package/components/auth/window-flow.js +3 -0
- package/components/auth-dialog/auth-dialog.js +8 -0
- package/components/auth-dialog-service/auth-dialog-service.js +8 -0
- package/components/avatar/avatar.figma.js +6 -0
- package/components/avatar/avatar.js +7 -1
- package/components/avatar/fallback-avatar.js +2 -0
- package/components/avatar-stack/avatar-stack.js +14 -8
- package/components/breadcrumbs/breadcrumbs.js +1 -0
- package/components/button/button.figma.js +2 -0
- package/components/button/button.js +3 -1
- package/components/button-group/button-group.figma.js +4 -0
- package/components/button-group/button-group.js +2 -0
- package/components/caret/caret.js +3 -0
- package/components/checkbox/checkbox.js +2 -0
- package/components/clipboard/clipboard.js +11 -3
- package/components/code/code.js +4 -1
- package/components/collapse/collapse-content.js +3 -1
- package/components/confirm/confirm.js +7 -0
- package/components/confirm-service/confirm-service.js +9 -1
- package/components/content-layout/content-layout.js +1 -0
- package/components/data-list/data-list.js +9 -2
- package/components/data-list/data-list.mock.js +3 -1
- package/components/data-list/item.js +3 -0
- package/components/data-list/selection.js +1 -0
- package/components/data-list/title.js +3 -0
- package/components/date-picker/date-input.js +3 -0
- package/components/date-picker/date-picker.js +7 -0
- package/components/date-picker/date-popup.js +4 -0
- package/components/date-picker/day.js +1 -0
- package/components/date-picker/month.js +1 -0
- package/components/date-picker/months.js +1 -0
- package/components/date-picker/weekdays.js +1 -0
- package/components/date-picker/years.js +1 -1
- package/components/dialog/dialog.js +7 -0
- package/components/dropdown/anchor.js +2 -0
- package/components/dropdown/dropdown.js +2 -0
- package/components/dropdown-menu/dropdown-menu.js +16 -10
- package/components/editable-heading/editable-heading.js +7 -1
- package/components/error-bubble/error-bubble.js +5 -0
- package/components/error-message/error-message.js +2 -0
- package/components/global/dom.js +2 -0
- package/components/global/fuzzy-highlight.js +1 -1
- package/components/global/get-uid.js +2 -0
- package/components/global/listeners.js +1 -0
- package/components/global/memoize.js +1 -0
- package/components/global/normalize-indent.js +2 -1
- package/components/global/promise-with-timeout.js +2 -0
- package/components/global/rerender-hoc.js +2 -2
- package/components/global/theme.js +5 -0
- package/components/global/url.js +1 -0
- package/components/grid/col.js +0 -1
- package/components/grid/grid.js +0 -1
- package/components/grid/row.js +0 -1
- package/components/header/header-icon.js +2 -0
- package/components/header/header.js +16 -7
- package/components/header/logo.js +2 -0
- package/components/header/profile.js +13 -7
- package/components/header/services.js +8 -1
- package/components/header/smart-profile.js +14 -5
- package/components/header/smart-services.js +8 -0
- package/components/heading/heading.js +1 -1
- package/components/http/http.js +3 -0
- package/components/http/http.mock.js +4 -0
- package/components/hub-source/hub-source.js +2 -0
- package/components/hub-source/hub-source__user.js +3 -0
- package/components/hub-source/hub-source__users-groups.js +2 -0
- package/components/i18n/i18n-context.js +1 -1
- package/components/icon/icon.js +2 -0
- package/components/icon/icon__svg.js +2 -0
- package/components/icon/index.js +2 -0
- package/components/input/input.js +3 -0
- package/components/island/adaptive-island-hoc.js +1 -1
- package/components/island/content.js +1 -1
- package/components/island/header.js +2 -2
- package/components/list/list.js +17 -11
- package/components/list/list__item.js +79 -59
- package/components/list/list__users-groups-source.js +14 -8
- package/components/loader/loader.js +2 -0
- package/components/loader/loader__core.js +2 -0
- package/components/loader-screen/loader-screen.js +2 -0
- package/components/login-dialog/login-dialog.js +8 -0
- package/components/login-dialog/service.js +8 -0
- package/components/message/message.js +10 -3
- package/components/old-browsers-message/old-browsers-message.js +3 -1
- package/components/old-browsers-message/old-browsers-message__stop.js +2 -0
- package/components/old-browsers-message/white-list.js +4 -2
- package/components/pager/pager.js +12 -6
- package/components/permissions/permissions.js +1 -0
- package/components/popup/popup.js +6 -1
- package/components/popup/position.js +4 -1
- package/components/popup-menu/popup-menu.js +17 -8
- package/components/query-assist/query-assist.js +19 -9
- package/components/query-assist/query-assist__suggestions.js +13 -8
- package/components/radio/radio.js +1 -0
- package/components/radio/radio__item.js +4 -3
- package/components/select/select.js +16 -8
- package/components/select/select__filter.js +12 -7
- package/components/select/select__popup.js +13 -8
- package/components/shortcuts/core.js +3 -0
- package/components/shortcuts/shortcut-title.js +1 -0
- package/components/shortcuts/shortcuts-hoc.js +4 -0
- package/components/shortcuts/shortcuts.js +3 -0
- package/components/slider/slider.js +6 -2
- package/components/slider/slider.utils.js +2 -1
- package/components/storage/storage.js +8 -0
- package/components/storage/storage__local.js +8 -0
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +2 -0
- package/components/table/header-cell.js +2 -0
- package/components/table/header.js +3 -0
- package/components/table/multitable.js +1 -0
- package/components/table/row-with-focus-sensor.js +7 -0
- package/components/table/row.js +7 -0
- package/components/table/simple-table.js +7 -0
- package/components/table/smart-table.js +7 -0
- package/components/table/table.js +10 -5
- package/components/tabs/collapsible-more.js +14 -8
- package/components/tabs/collapsible-tabs.js +11 -5
- package/components/tabs/dumb-tabs.js +12 -5
- package/components/tabs/smart-tabs.js +12 -5
- package/components/tabs/tabs.js +12 -5
- package/components/tag/tag.js +2 -0
- package/components/tags-input/tags-input.js +13 -7
- package/components/tags-list/tags-list.js +2 -0
- package/components/tooltip/tooltip.js +6 -1
- package/components/upload/upload.js +3 -1
- package/components/user-agreement/service.js +8 -0
- package/components/user-agreement/user-agreement.js +9 -2
- package/components/user-card/card.js +8 -0
- package/components/user-card/smart-user-card-tooltip.js +8 -0
- package/components/user-card/tooltip.js +9 -1
- package/components/user-card/user-card.js +8 -0
- package/package.json +1 -1
- package/components/list/list__link.d.ts +0 -9
- package/components/list/list__link.js +0 -52
@@ -1,4 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.object.assign.js';
|
3
|
+
import 'core-js/modules/es.promise.js';
|
2
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
5
|
import HubSource from './hub-source.js';
|
4
6
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
2
2
|
import * as React from 'react';
|
3
3
|
import { useEffect } from 'react';
|
4
|
-
import {
|
4
|
+
import { translate, getTranslations, setTranslations } from './i18n.js';
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
|
package/components/icon/icon.js
CHANGED
@@ -7,7 +7,9 @@ import { Color, Size } from './icon__constants.js';
|
|
7
7
|
import { s as styles, I as IconSVG } from '../_helpers/icon__svg.js';
|
8
8
|
import 'core-js/modules/es.regexp.exec.js';
|
9
9
|
import 'core-js/modules/es.string.replace.js';
|
10
|
+
import 'core-js/modules/es.string.starts-with.js';
|
10
11
|
import '../global/memoize.js';
|
12
|
+
import 'core-js/modules/es.weak-map.js';
|
11
13
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
12
14
|
|
13
15
|
const _excluded = ["className", "size", "color", "loading", "glyph", "width", "height", "suppressSizeWarning"];
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.regexp.exec.js';
|
3
3
|
import 'core-js/modules/es.string.replace.js';
|
4
|
+
import 'core-js/modules/es.string.starts-with.js';
|
4
5
|
import 'react/jsx-runtime';
|
5
6
|
import 'react';
|
6
7
|
import 'classnames';
|
7
8
|
import '../global/memoize.js';
|
8
9
|
export { I as default } from '../_helpers/icon__svg.js';
|
10
|
+
import 'core-js/modules/es.weak-map.js';
|
9
11
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
package/components/icon/index.js
CHANGED
@@ -8,5 +8,7 @@ import 'util-deprecate';
|
|
8
8
|
import '../_helpers/icon__svg.js';
|
9
9
|
import 'core-js/modules/es.regexp.exec.js';
|
10
10
|
import 'core-js/modules/es.string.replace.js';
|
11
|
+
import 'core-js/modules/es.string.starts-with.js';
|
11
12
|
import '../global/memoize.js';
|
13
|
+
import 'core-js/modules/es.weak-map.js';
|
12
14
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
@@ -22,6 +22,9 @@ import '../icon/icon__constants.js';
|
|
22
22
|
import '../_helpers/icon__svg.js';
|
23
23
|
import 'core-js/modules/es.regexp.exec.js';
|
24
24
|
import 'core-js/modules/es.string.replace.js';
|
25
|
+
import 'core-js/modules/es.string.starts-with.js';
|
25
26
|
import '../global/memoize.js';
|
27
|
+
import 'core-js/modules/es.weak-map.js';
|
28
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
26
29
|
import '../i18n/i18n.js';
|
27
30
|
import 'memoize-one';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
4
|
-
import {
|
4
|
+
import { createContext, Component } from 'react';
|
5
5
|
import { interpolateLinear } from '../global/linear-function.js';
|
6
6
|
|
7
7
|
const TITLE_RESIZE_END = 20;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
4
4
|
import { forwardRef, Component } from 'react';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as _defineProperty,
|
2
|
-
import {
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
3
3
|
import { Component } from 'react';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import { interpolateLinear } from '../global/linear-function.js';
|
package/components/list/list.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.description.js';
|
3
|
-
import 'core-js/modules/es.
|
3
|
+
import 'core-js/modules/es.object.assign.js';
|
4
|
+
import 'core-js/modules/es.string.includes.js';
|
4
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
6
|
import { Component, createElement } from 'react';
|
6
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
@@ -18,7 +19,6 @@ import memoize from '../global/memoize.js';
|
|
18
19
|
import { preventDefault } from '../global/dom.js';
|
19
20
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
20
21
|
import createStatefulContext from '../global/create-stateful-context.js';
|
21
|
-
import ListLink from './list__link.js';
|
22
22
|
import ListItem from './list__item.js';
|
23
23
|
import ListCustom from './list__custom.js';
|
24
24
|
import ListTitle from './list__title.js';
|
@@ -26,15 +26,15 @@ import ListSeparator from './list__separator.js';
|
|
26
26
|
import ListHint from './list__hint.js';
|
27
27
|
import { Type, Dimension, DEFAULT_ITEM_TYPE } from './consts.js';
|
28
28
|
import { s as styles } from '../_helpers/list.js';
|
29
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
30
|
+
import 'core-js/modules/es.weak-map.js';
|
29
31
|
import 'core-js/modules/es.regexp.exec.js';
|
32
|
+
import 'core-js/modules/es.string.split.js';
|
30
33
|
import '../shortcuts/core.js';
|
34
|
+
import 'core-js/modules/es.string.match.js';
|
31
35
|
import 'combokeys';
|
32
36
|
import '../global/sniffer.js';
|
33
37
|
import 'sniffr';
|
34
|
-
import '../link/link.js';
|
35
|
-
import '../link/clickableLink.js';
|
36
|
-
import '../_helpers/link.js';
|
37
|
-
import './list__classes.js';
|
38
38
|
import '../avatar/avatar.js';
|
39
39
|
import '../global/url.js';
|
40
40
|
import 'core-js/modules/es.string.replace.js';
|
@@ -47,8 +47,13 @@ import '@jetbrains/icons/remove-12px';
|
|
47
47
|
import '../icon/icon.js';
|
48
48
|
import '../icon/icon__constants.js';
|
49
49
|
import '../_helpers/icon__svg.js';
|
50
|
+
import 'core-js/modules/es.string.starts-with.js';
|
50
51
|
import '../global/composeRefs.js';
|
51
52
|
import '../control-help/control-help.js';
|
53
|
+
import '../link/link.js';
|
54
|
+
import '../link/clickableLink.js';
|
55
|
+
import '../_helpers/link.js';
|
56
|
+
import './list__classes.js';
|
52
57
|
import '../global/get-event-key.js';
|
53
58
|
|
54
59
|
const _excluded = ["selectedLabel", "originalModel"];
|
@@ -280,7 +285,11 @@ class List extends Component {
|
|
280
285
|
});
|
281
286
|
} else {
|
282
287
|
// Hack around SelectNG implementation
|
283
|
-
const
|
288
|
+
const {
|
289
|
+
selectedLabel,
|
290
|
+
originalModel
|
291
|
+
} = item,
|
292
|
+
restProps = _objectWithoutProperties(item, _excluded);
|
284
293
|
const cleanedProps = restProps;
|
285
294
|
if (cleanedProps.url) {
|
286
295
|
cleanedProps.href = cleanedProps.url;
|
@@ -317,9 +326,6 @@ class List extends Component {
|
|
317
326
|
itemProps.isFirst = isFirst;
|
318
327
|
break;
|
319
328
|
case Type.LINK:
|
320
|
-
ItemComponent = ListLink;
|
321
|
-
this.addItemDataTestToProp(itemProps);
|
322
|
-
break;
|
323
329
|
case Type.ITEM:
|
324
330
|
ItemComponent = ListItem;
|
325
331
|
this.addItemDataTestToProp(itemProps);
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.description.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
4
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
5
5
|
import { PureComponent } from 'react';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import joinDataTestAttributes from '../global/data-tests.js';
|
@@ -9,17 +9,25 @@ import Avatar from '../avatar/avatar.js';
|
|
9
9
|
import Checkbox from '../checkbox/checkbox.js';
|
10
10
|
import Icon from '../icon/icon.js';
|
11
11
|
import getUID from '../global/get-uid.js';
|
12
|
+
import Link, { linkHOC } from '../link/link.js';
|
12
13
|
import { s as styles } from '../_helpers/list.js';
|
14
|
+
import { Type } from './consts.js';
|
13
15
|
import { getListClasses } from './list__classes.js';
|
14
16
|
import { Size } from '../avatar/avatar-size.js';
|
17
|
+
import 'core-js/modules/es.string.includes.js';
|
15
18
|
import 'util-deprecate';
|
16
19
|
import '../global/url.js';
|
17
20
|
import 'core-js/modules/es.regexp.exec.js';
|
21
|
+
import 'core-js/modules/es.string.match.js';
|
18
22
|
import 'core-js/modules/es.string.replace.js';
|
19
23
|
import '../global/dom.js';
|
24
|
+
import 'core-js/modules/es.object.assign.js';
|
25
|
+
import 'core-js/modules/es.string.split.js';
|
20
26
|
import '../global/memoize.js';
|
27
|
+
import 'core-js/modules/es.weak-map.js';
|
21
28
|
import '../_helpers/avatar-info.js';
|
22
29
|
import '../avatar/fallback-avatar.js';
|
30
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
23
31
|
import '@jetbrains/icons/checkmark-12px';
|
24
32
|
import '@jetbrains/icons/remove-12px';
|
25
33
|
import '../global/composeRefs.js';
|
@@ -27,8 +35,11 @@ import 'memoize-one';
|
|
27
35
|
import '../control-help/control-help.js';
|
28
36
|
import '../icon/icon__constants.js';
|
29
37
|
import '../_helpers/icon__svg.js';
|
30
|
-
import '
|
38
|
+
import 'core-js/modules/es.string.starts-with.js';
|
39
|
+
import '../link/clickableLink.js';
|
40
|
+
import '../_helpers/link.js';
|
31
41
|
|
42
|
+
const _excluded = ["disabled", "checkbox", "avatar", "subavatar", "glyph", "icon", "rightGlyph", "description", "label", "title", "details", "hover", "level", "onCheckboxChange", "rightNodes", "leftNodes", "showGeneratedAvatar", "username", "labelWrapper", "rgItemType", "scrolling", "data-test", "className", "url", "LinkComponent", "compact", "hoverClassName", "children"];
|
32
43
|
/**
|
33
44
|
* @constructor
|
34
45
|
* @extends {ReactComponent}
|
@@ -44,32 +55,38 @@ class ListItem extends PureComponent {
|
|
44
55
|
_defineProperty(this, "_isString", val => typeof val === 'string' || val instanceof String);
|
45
56
|
}
|
46
57
|
render() {
|
47
|
-
const
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
58
|
+
const _this$props = this.props,
|
59
|
+
{
|
60
|
+
disabled,
|
61
|
+
checkbox,
|
62
|
+
avatar,
|
63
|
+
subavatar,
|
64
|
+
glyph,
|
65
|
+
icon,
|
66
|
+
rightGlyph,
|
67
|
+
description,
|
68
|
+
label,
|
69
|
+
title,
|
70
|
+
details,
|
71
|
+
hover,
|
72
|
+
level,
|
73
|
+
onCheckboxChange,
|
74
|
+
rightNodes,
|
75
|
+
leftNodes,
|
76
|
+
showGeneratedAvatar,
|
77
|
+
username,
|
78
|
+
labelWrapper,
|
79
|
+
rgItemType,
|
80
|
+
scrolling,
|
81
|
+
'data-test': dataTest,
|
82
|
+
className,
|
83
|
+
url,
|
84
|
+
LinkComponent,
|
85
|
+
compact,
|
86
|
+
hoverClassName,
|
87
|
+
children
|
88
|
+
} = _this$props,
|
89
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
73
90
|
const checkable = checkbox !== undefined;
|
74
91
|
const shouldShowGeneratedAvatar = showGeneratedAvatar && username != null;
|
75
92
|
const hasLeftNodes = leftNodes || glyph || avatar || shouldShowGeneratedAvatar;
|
@@ -91,41 +108,25 @@ class ListItem extends PureComponent {
|
|
91
108
|
// label can also be an element, use empty string in this case
|
92
109
|
computedTitle = this._isString(label) ? label : '';
|
93
110
|
}
|
94
|
-
const
|
95
|
-
|
111
|
+
const isLink = rgItemType === Type.LINK;
|
112
|
+
const combinedDataTest = joinDataTestAttributes({
|
113
|
+
'ring-list-item': (dataTest || '').indexOf('ring-list-item') === -1,
|
96
114
|
'ring-list-item-action': !disabled,
|
97
|
-
'ring-list-item-selected': checkbox
|
98
|
-
|
115
|
+
'ring-list-item-selected': checkbox,
|
116
|
+
'ring-list-link': isLink
|
117
|
+
}, dataTest);
|
99
118
|
const labelElement = jsx("span", {
|
100
119
|
className: styles.label,
|
101
120
|
title: computedTitle,
|
102
121
|
"data-test": "ring-list-item-label",
|
103
|
-
children: label
|
122
|
+
children: label !== null && label !== undefined ? label : children
|
104
123
|
});
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
"aria-labelledby": this.id,
|
112
|
-
checked: checkbox,
|
113
|
-
disabled: disabled,
|
114
|
-
onChange: onCheckboxChange,
|
115
|
-
onClick: this.stopBubbling
|
116
|
-
})
|
117
|
-
}), jsxs("button", {
|
118
|
-
id: this.id,
|
119
|
-
type: "button",
|
120
|
-
tabIndex: tabIndex,
|
121
|
-
onClick: onClick,
|
122
|
-
onMouseOver: onMouseOver,
|
123
|
-
onMouseDown: onMouseDown,
|
124
|
-
onFocus: onMouseOver,
|
125
|
-
onMouseUp: onMouseUp,
|
126
|
-
className: classes,
|
127
|
-
style: style,
|
128
|
-
disabled: disabled,
|
124
|
+
const commonProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
|
125
|
+
id: this.id,
|
126
|
+
className: classes,
|
127
|
+
style,
|
128
|
+
disabled,
|
129
|
+
children: jsxs(Fragment, {
|
129
130
|
children: [jsxs("div", {
|
130
131
|
className: styles.top,
|
131
132
|
onMouseOut: this.stopBubbling,
|
@@ -166,7 +167,26 @@ class ListItem extends PureComponent {
|
|
166
167
|
className: detailsClasses,
|
167
168
|
children: details
|
168
169
|
})]
|
169
|
-
})
|
170
|
+
})
|
171
|
+
});
|
172
|
+
const LinkComponentToUse = LinkComponent ? linkHOC(LinkComponent) : Link;
|
173
|
+
return jsxs("div", {
|
174
|
+
className: styles.itemContainer,
|
175
|
+
"data-test": combinedDataTest,
|
176
|
+
children: [showCheckbox && jsx("div", {
|
177
|
+
className: styles.checkboxContainer,
|
178
|
+
children: jsx(Checkbox, {
|
179
|
+
"aria-labelledby": this.id,
|
180
|
+
checked: checkbox,
|
181
|
+
disabled: disabled,
|
182
|
+
onChange: onCheckboxChange,
|
183
|
+
onClick: this.stopBubbling
|
184
|
+
})
|
185
|
+
}), isLink ? jsx(LinkComponentToUse, _objectSpread2({
|
186
|
+
pseudo: !restProps.href
|
187
|
+
}, commonProps)) : jsx("button", _objectSpread2({
|
188
|
+
type: "button"
|
189
|
+
}, commonProps))]
|
170
190
|
});
|
171
191
|
}
|
172
192
|
}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.object.assign.js';
|
3
|
+
import 'core-js/modules/es.promise.js';
|
2
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
5
|
import GroupIcon from '@jetbrains/icons/group';
|
4
6
|
import HubSourceUsersGroups from '../hub-source/hub-source__users-groups.js';
|
5
7
|
import List from './list.js';
|
6
8
|
import '../hub-source/hub-source.js';
|
7
9
|
import 'core-js/modules/es.symbol.description.js';
|
8
|
-
import 'core-js/modules/es.string.
|
10
|
+
import 'core-js/modules/es.string.includes.js';
|
9
11
|
import 'react';
|
10
12
|
import 'react/jsx-runtime';
|
11
13
|
import 'classnames';
|
@@ -17,23 +19,20 @@ import 'util-deprecate';
|
|
17
19
|
import 'memoize-one';
|
18
20
|
import '../global/data-tests.js';
|
19
21
|
import '../global/get-uid.js';
|
22
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
20
23
|
import '../global/schedule-raf.js';
|
21
24
|
import '../global/memoize.js';
|
25
|
+
import 'core-js/modules/es.weak-map.js';
|
22
26
|
import '../global/dom.js';
|
23
27
|
import 'core-js/modules/es.regexp.exec.js';
|
28
|
+
import 'core-js/modules/es.string.split.js';
|
24
29
|
import '../shortcuts/shortcuts.js';
|
25
30
|
import '../shortcuts/core.js';
|
31
|
+
import 'core-js/modules/es.string.match.js';
|
26
32
|
import 'combokeys';
|
27
33
|
import '../global/sniffer.js';
|
28
34
|
import 'sniffr';
|
29
35
|
import '../global/create-stateful-context.js';
|
30
|
-
import './list__link.js';
|
31
|
-
import '../link/link.js';
|
32
|
-
import '../link/clickableLink.js';
|
33
|
-
import '../_helpers/link.js';
|
34
|
-
import './list__classes.js';
|
35
|
-
import './consts.js';
|
36
|
-
import '../_helpers/list.js';
|
37
36
|
import './list__item.js';
|
38
37
|
import '../avatar/avatar.js';
|
39
38
|
import '../global/url.js';
|
@@ -47,8 +46,15 @@ import '@jetbrains/icons/remove-12px';
|
|
47
46
|
import '../icon/icon.js';
|
48
47
|
import '../icon/icon__constants.js';
|
49
48
|
import '../_helpers/icon__svg.js';
|
49
|
+
import 'core-js/modules/es.string.starts-with.js';
|
50
50
|
import '../global/composeRefs.js';
|
51
51
|
import '../control-help/control-help.js';
|
52
|
+
import '../link/link.js';
|
53
|
+
import '../link/clickableLink.js';
|
54
|
+
import '../_helpers/link.js';
|
55
|
+
import '../_helpers/list.js';
|
56
|
+
import './consts.js';
|
57
|
+
import './list__classes.js';
|
52
58
|
import './list__custom.js';
|
53
59
|
import '../global/get-event-key.js';
|
54
60
|
import './list__title.js';
|
@@ -4,8 +4,10 @@ import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { PureComponent } from 'react';
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
6
6
|
import LoaderCore from './loader__core.js';
|
7
|
+
import 'core-js/modules/es.object.assign.js';
|
7
8
|
import 'core-js/modules/es.regexp.exec.js';
|
8
9
|
import '../global/dom.js';
|
10
|
+
import 'core-js/modules/es.string.split.js';
|
9
11
|
|
10
12
|
const _excluded = ["message", "size", "colors", "data-test", "stop", "deterministic"];
|
11
13
|
/**
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.object.assign.js';
|
2
3
|
import 'core-js/modules/es.regexp.exec.js';
|
3
4
|
import { getPixelRatio } from '../global/dom.js';
|
5
|
+
import 'core-js/modules/es.string.split.js';
|
4
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
7
|
|
6
8
|
var styles = {"canvas":"canvas_rui_47a4","animate":"animate_rui_47a4","rotation-keyframes":"rotation-keyframes_rui_47a4","text":"text_rui_47a4"};
|
@@ -6,8 +6,10 @@ import Loader from '../loader/loader.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
7
7
|
import '../global/data-tests.js';
|
8
8
|
import '../loader/loader__core.js';
|
9
|
+
import 'core-js/modules/es.object.assign.js';
|
9
10
|
import 'core-js/modules/es.regexp.exec.js';
|
10
11
|
import '../global/dom.js';
|
12
|
+
import 'core-js/modules/es.string.split.js';
|
11
13
|
|
12
14
|
var styles = {"loaderScreen":"loaderScreen_rui_c963","loader":"loader_rui_c963","loaderWithoutSpacing":"loaderWithoutSpacing_rui_c963"};
|
13
15
|
|
@@ -18,14 +18,19 @@ import '../global/linear-function.js';
|
|
18
18
|
import 'element-resize-detector';
|
19
19
|
import '../global/schedule-raf.js';
|
20
20
|
import '../global/get-uid.js';
|
21
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
21
22
|
import '../shortcuts/shortcuts.js';
|
22
23
|
import '../shortcuts/core.js';
|
24
|
+
import 'core-js/modules/es.object.assign.js';
|
23
25
|
import 'core-js/modules/es.regexp.exec.js';
|
26
|
+
import 'core-js/modules/es.string.includes.js';
|
27
|
+
import 'core-js/modules/es.string.match.js';
|
24
28
|
import 'combokeys';
|
25
29
|
import '../global/sniffer.js';
|
26
30
|
import 'sniffr';
|
27
31
|
import '../tab-trap/tab-trap.js';
|
28
32
|
import '../global/dom.js';
|
33
|
+
import 'core-js/modules/es.string.split.js';
|
29
34
|
import '../button/button.js';
|
30
35
|
import '@jetbrains/icons/chevron-down';
|
31
36
|
import '@jetbrains/icons/chevron-12px-down';
|
@@ -34,7 +39,9 @@ import '../icon/icon.js';
|
|
34
39
|
import '../icon/icon__constants.js';
|
35
40
|
import '../_helpers/icon__svg.js';
|
36
41
|
import 'core-js/modules/es.string.replace.js';
|
42
|
+
import 'core-js/modules/es.string.starts-with.js';
|
37
43
|
import '../global/memoize.js';
|
44
|
+
import 'core-js/modules/es.weak-map.js';
|
38
45
|
import '../link/clickableLink.js';
|
39
46
|
import '../global/controls-height.js';
|
40
47
|
import '../_helpers/button__classes.js';
|
@@ -47,6 +54,7 @@ import '../_helpers/dialog__body-scroll-preventer.js';
|
|
47
54
|
import 'scrollbar-width';
|
48
55
|
import '../loader/loader.js';
|
49
56
|
import '../loader/loader__core.js';
|
57
|
+
import 'core-js/modules/es.promise.js';
|
50
58
|
import '../auth/response-parser.js';
|
51
59
|
import 'es6-error';
|
52
60
|
import '../global/url.js';
|
@@ -19,14 +19,19 @@ import '../island/content.js';
|
|
19
19
|
import 'element-resize-detector';
|
20
20
|
import '../global/schedule-raf.js';
|
21
21
|
import '../global/get-uid.js';
|
22
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
22
23
|
import '../shortcuts/shortcuts.js';
|
23
24
|
import '../shortcuts/core.js';
|
25
|
+
import 'core-js/modules/es.object.assign.js';
|
24
26
|
import 'core-js/modules/es.regexp.exec.js';
|
27
|
+
import 'core-js/modules/es.string.includes.js';
|
28
|
+
import 'core-js/modules/es.string.match.js';
|
25
29
|
import 'combokeys';
|
26
30
|
import '../global/sniffer.js';
|
27
31
|
import 'sniffr';
|
28
32
|
import '../tab-trap/tab-trap.js';
|
29
33
|
import '../global/dom.js';
|
34
|
+
import 'core-js/modules/es.string.split.js';
|
30
35
|
import '../button/button.js';
|
31
36
|
import '@jetbrains/icons/chevron-down';
|
32
37
|
import '@jetbrains/icons/chevron-12px-down';
|
@@ -35,7 +40,9 @@ import '../icon/icon.js';
|
|
35
40
|
import '../icon/icon__constants.js';
|
36
41
|
import '../_helpers/icon__svg.js';
|
37
42
|
import 'core-js/modules/es.string.replace.js';
|
43
|
+
import 'core-js/modules/es.string.starts-with.js';
|
38
44
|
import '../global/memoize.js';
|
45
|
+
import 'core-js/modules/es.weak-map.js';
|
39
46
|
import '../link/clickableLink.js';
|
40
47
|
import '../_helpers/button__classes.js';
|
41
48
|
import '../popup/popup.target.js';
|
@@ -49,6 +56,7 @@ import '../loader-screen/loader-screen.js';
|
|
49
56
|
import '../loader/loader.js';
|
50
57
|
import '../loader/loader__core.js';
|
51
58
|
import '../auth/background-flow.js';
|
59
|
+
import 'core-js/modules/es.promise.js';
|
52
60
|
import '../auth/response-parser.js';
|
53
61
|
import 'es6-error';
|
54
62
|
import '../global/url.js';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.symbol.description.js';
|
3
|
+
import 'core-js/modules/es.string.includes.js';
|
3
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
5
6
|
import { Component } from 'react';
|
@@ -12,13 +13,17 @@ import { Button } from '../button/button.js';
|
|
12
13
|
import { I18nContext } from '../i18n/i18n-context.js';
|
13
14
|
import { T as Theme, d as darkStyles, W as WithThemeClasses, a as ThemeProvider } from '../_helpers/theme.js';
|
14
15
|
import 'core-js/modules/es.regexp.exec.js';
|
16
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
15
17
|
import 'core-js/modules/es.string.replace.js';
|
16
18
|
import 'react-dom';
|
17
19
|
import '../global/get-uid.js';
|
18
20
|
import '../global/schedule-raf.js';
|
19
21
|
import '../global/dom.js';
|
22
|
+
import 'core-js/modules/es.object.assign.js';
|
23
|
+
import 'core-js/modules/es.string.split.js';
|
20
24
|
import '../shortcuts/shortcuts.js';
|
21
25
|
import '../shortcuts/core.js';
|
26
|
+
import 'core-js/modules/es.string.match.js';
|
22
27
|
import 'combokeys';
|
23
28
|
import '../global/sniffer.js';
|
24
29
|
import 'sniffr';
|
@@ -30,7 +35,9 @@ import '../popup/popup.target.js';
|
|
30
35
|
import 'util-deprecate';
|
31
36
|
import '../icon/icon__constants.js';
|
32
37
|
import '../_helpers/icon__svg.js';
|
38
|
+
import 'core-js/modules/es.string.starts-with.js';
|
33
39
|
import '../global/memoize.js';
|
40
|
+
import 'core-js/modules/es.weak-map.js';
|
34
41
|
import '@jetbrains/icons/chevron-down';
|
35
42
|
import '@jetbrains/icons/chevron-12px-down';
|
36
43
|
import '../link/clickableLink.js';
|
@@ -147,7 +154,7 @@ class Message extends Component {
|
|
147
154
|
}
|
148
155
|
render() {
|
149
156
|
const {
|
150
|
-
children,
|
157
|
+
children: _children,
|
151
158
|
className,
|
152
159
|
tailClassName,
|
153
160
|
title,
|
@@ -197,9 +204,9 @@ class Message extends Component {
|
|
197
204
|
"data-test": "rgMessageTitle",
|
198
205
|
className: styles.title,
|
199
206
|
children: title
|
200
|
-
}),
|
207
|
+
}), _children && jsx("div", {
|
201
208
|
className: styles.description,
|
202
|
-
children:
|
209
|
+
children: _children
|
203
210
|
}), (onClose || buttonProps) && jsx(Button, _objectSpread2(_objectSpread2({
|
204
211
|
className: styles.gotIt,
|
205
212
|
onClick: onClose,
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { isBrowserInWhiteList } from './white-list.js';
|
2
2
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
3
|
+
import 'core-js/modules/es.parse-int.js';
|
3
4
|
import 'core-js/modules/es.regexp.exec.js';
|
5
|
+
import 'core-js/modules/es.string.match.js';
|
4
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
5
7
|
import '../global/sniffer.js';
|
6
8
|
import 'sniffr';
|
@@ -49,7 +51,7 @@ function attachSmileClickListener(smileNode) {
|
|
49
51
|
function startOldBrowsersDetector(onOldBrowserDetected) {
|
50
52
|
previousWindowErrorHandler = window.onerror;
|
51
53
|
window.onerror = function oldBrowsersMessageShower(errorMsg, url, lineNumber) {
|
52
|
-
{
|
54
|
+
if (onOldBrowserDetected) {
|
53
55
|
onOldBrowserDetected();
|
54
56
|
}
|
55
57
|
if (previousWindowErrorHandler) {
|
@@ -1,7 +1,9 @@
|
|
1
1
|
export { stop as default } from './old-browsers-message.js';
|
2
2
|
import './white-list.js';
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
4
|
+
import 'core-js/modules/es.parse-int.js';
|
4
5
|
import 'core-js/modules/es.regexp.exec.js';
|
6
|
+
import 'core-js/modules/es.string.match.js';
|
5
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
6
8
|
import '../global/sniffer.js';
|
7
9
|
import 'sniffr';
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.parse-int.js';
|
2
3
|
import 'core-js/modules/es.regexp.exec.js';
|
4
|
+
import 'core-js/modules/es.string.match.js';
|
3
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
6
|
import sniffr from '../global/sniffer.js';
|
5
7
|
import 'sniffr';
|
@@ -8,11 +10,11 @@ const MAJOR_VERSION_INDEX = 0;
|
|
8
10
|
/**
|
9
11
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
10
12
|
*/
|
11
|
-
if (!["and_chr 132", "chrome
|
13
|
+
if (!["and_chr 132", "chrome 132", "chrome 131", "chrome 109", "edge 132", "edge 131", "firefox 134", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 17.6-17.7", "op_mob 80", "samsung 27"]) {
|
12
14
|
// eslint-disable-next-line no-console
|
13
15
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
14
16
|
}
|
15
|
-
const SUPPORTED = ["and_chr 132", "chrome
|
17
|
+
const SUPPORTED = ["and_chr 132", "chrome 132", "chrome 131", "chrome 109", "edge 132", "edge 131", "firefox 134", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 17.6-17.7", "op_mob 80", "samsung 27"] || [];
|
16
18
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
17
19
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
18
20
|
var _item$match;
|