@jetbrains/ring-ui 5.0.127 → 5.0.129
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/alert/alert.js +2 -1
- package/components/alert/container.js +2 -1
- package/components/auth/auth__core.js +2 -1
- package/components/auth/request-builder.js +2 -1
- package/components/auth/response-parser.js +2 -1
- package/components/auth/token-validator.js +2 -1
- package/components/auth-dialog/auth-dialog.js +2 -1
- package/components/avatar/avatar.js +2 -1
- package/components/badge/badge.js +2 -1
- package/components/button/button.js +2 -1
- package/components/button-group/button-group.js +2 -1
- package/components/button-group/caption.js +2 -1
- package/components/button-set/button-set.js +2 -1
- package/components/button-toolbar/button-toolbar.js +2 -1
- package/components/caret/caret.js +2 -1
- package/components/checkbox/checkbox.js +2 -1
- package/components/code/code.js +2 -1
- package/components/confirm/confirm.js +2 -1
- package/components/content-layout/content-layout.js +2 -1
- package/components/content-layout/sidebar.js +2 -1
- package/components/data-list/data-list.js +2 -1
- package/components/data-list/item.js +2 -1
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.js +2 -1
- package/components/date-picker/date-popup.js +2 -1
- package/components/date-picker/day.js +2 -1
- package/components/date-picker/month-slider.js +2 -1
- package/components/date-picker/years.js +2 -1
- package/components/dialog/dialog.d.ts +4 -16
- package/components/dialog/dialog.js +6 -3
- package/components/dropdown/dropdown.js +2 -1
- package/components/error-bubble/error-bubble.js +2 -1
- package/components/error-message/error-message.js +2 -1
- package/components/footer/footer.js +1 -0
- package/components/global/react-dom-renderer.js +2 -1
- package/components/grid/col.js +2 -1
- package/components/grid/grid.js +2 -1
- package/components/grid/row.js +2 -1
- package/components/group/group.js +2 -1
- package/components/header/logo.js +2 -1
- package/components/header/profile.js +2 -1
- package/components/header/services-link.js +2 -1
- package/components/header/services.js +2 -1
- package/components/header/smart-profile.js +2 -1
- package/components/header/smart-services.js +2 -1
- package/components/header/tray-icon.js +2 -1
- package/components/header/tray.js +2 -1
- package/components/hub-source/hub-source.js +2 -1
- package/components/icon/icon.js +2 -1
- package/components/input/input.js +2 -1
- package/components/island/island.js +2 -1
- package/components/island-legacy/content-legacy.js +2 -1
- package/components/island-legacy/header-legacy.js +2 -1
- package/components/island-legacy/island-legacy.js +2 -1
- package/components/link/clickableLink.js +2 -1
- package/components/list/list.js +2 -1
- package/components/list/list__hint.js +2 -1
- package/components/list/list__users-groups-source.js +2 -1
- package/components/loader/loader.js +2 -1
- package/components/loader/loader__core.js +2 -1
- package/components/loader-screen/loader-screen.js +2 -1
- package/components/login-dialog/login-dialog.js +2 -1
- package/components/message/message.js +2 -1
- package/components/pager/pager.js +2 -1
- package/components/panel/panel.js +2 -1
- package/components/permissions/permissions.js +2 -1
- package/components/permissions/permissions__cache.js +2 -1
- package/components/popup/popup.js +2 -1
- package/components/popup-menu/popup-menu.js +2 -1
- package/components/progress-bar/progress-bar.js +2 -1
- package/components/query-assist/query-assist.js +4 -3
- package/components/radio/radio.js +2 -1
- package/components/radio/radio__item.js +2 -1
- package/components/select/select.js +2 -1
- package/components/select/select__filter.js +2 -1
- package/components/select/select__popup.js +4 -2
- package/components/shortcuts/shortcuts.js +2 -1
- package/components/storage/storage__fallback.js +2 -1
- package/components/tab-trap/tab-trap.js +2 -1
- package/components/table/cell.js +2 -1
- package/components/table/header-cell.js +2 -1
- package/components/table/header.js +2 -1
- package/components/table/multitable.js +2 -1
- package/components/table/row.d.ts +1 -0
- package/components/table/row.js +6 -4
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/table.d.ts +2 -0
- package/components/table/table.js +8 -4
- package/components/tabs/smart-tabs.js +2 -1
- package/components/tabs/tab.js +2 -1
- package/components/tag/tag.js +2 -1
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +3 -2
- package/components/tags-list/tags-list.js +2 -1
- package/components/text/text.js +2 -1
- package/components/tooltip/tooltip.js +2 -1
- package/components/user-agreement/user-agreement.js +2 -1
- package/components/user-card/card.js +2 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/components/user-card/smart-user-card-tooltip.js +2 -1
- package/components/user-card/tooltip.js +2 -1
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -29
- package/dist/_helpers/anchor.js +1 -1
- package/dist/_helpers/card.js +44 -47
- package/dist/_helpers/footer.js +1 -0
- package/dist/_helpers/select__filter.js +10 -13
- package/dist/_helpers/services-link.js +10 -10
- package/dist/_helpers/sidebar.js +34 -37
- package/dist/_helpers/theme.js +1 -1
- package/dist/_helpers/title.js +12 -16
- package/dist/alert/alert.js +63 -66
- package/dist/alert/container.js +5 -5
- package/dist/alert-service/alert-service.js +5 -7
- package/dist/analytics/analytics.js +1 -2
- package/dist/analytics/analytics__custom-plugin.js +6 -8
- package/dist/auth/auth.js +1 -1
- package/dist/auth/auth__core.js +26 -26
- package/dist/auth/background-flow.js +4 -5
- package/dist/auth/iframe-flow.js +12 -12
- package/dist/auth/landing.js +1 -1
- package/dist/auth/request-builder.js +3 -5
- package/dist/auth/response-parser.js +5 -6
- package/dist/auth/storage.js +12 -12
- package/dist/auth/token-validator.js +13 -16
- package/dist/auth/window-flow.js +18 -19
- package/dist/auth-dialog/auth-dialog.js +54 -57
- package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
- package/dist/auth-ng/auth-ng.js +1 -1
- package/dist/avatar/avatar.js +30 -33
- package/dist/avatar-ng/avatar-ng.js +1 -1
- package/dist/badge/badge.js +10 -10
- package/dist/badge-ng/badge-ng.js +1 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
- package/dist/button/button.js +24 -27
- package/dist/button-group/button-group.js +5 -5
- package/dist/button-group/caption.js +4 -4
- package/dist/button-ng/button-ng.js +68 -69
- package/dist/button-set/button-set.js +6 -6
- package/dist/button-toolbar/button-toolbar.js +6 -6
- package/dist/caret/caret.js +2 -4
- package/dist/checkbox/checkbox.js +27 -30
- package/dist/checkbox-ng/checkbox-ng.js +0 -1
- package/dist/code/code.js +17 -21
- package/dist/confirm/confirm.js +31 -34
- package/dist/confirm-ng/confirm-ng.js +1 -1
- package/dist/confirm-service/confirm-service.js +1 -1
- package/dist/content-layout/content-layout.js +17 -20
- package/dist/contenteditable/contenteditable.js +11 -11
- package/dist/data-list/data-list.js +49 -55
- package/dist/data-list/item.js +64 -67
- package/dist/data-list/selection.js +0 -1
- package/dist/data-list/title.js +1 -1
- package/dist/data-list-ng/data-list-ng.js +1 -1
- package/dist/date-picker/date-input.js +39 -42
- package/dist/date-picker/date-picker.js +162 -165
- package/dist/date-picker/date-popup.js +119 -119
- package/dist/date-picker/day.js +34 -38
- package/dist/date-picker/month-names.js +11 -14
- package/dist/date-picker/month-slider.js +24 -28
- package/dist/date-picker/month.js +1 -1
- package/dist/date-picker/months.js +1 -1
- package/dist/date-picker/years.js +9 -13
- package/dist/dialog/dialog.d.ts +4 -16
- package/dist/dialog/dialog.js +68 -65
- package/dist/dialog-ng/dialog-ng.js +21 -22
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
- package/dist/dropdown/dropdown.js +101 -104
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/editable-heading/editable-heading.js +1 -1
- package/dist/error-bubble/error-bubble.js +6 -6
- package/dist/error-message/error-message.js +10 -10
- package/dist/error-message-ng/error-message-ng.js +0 -1
- package/dist/footer-ng/footer-ng.js +19 -21
- package/dist/global/angular-component-factory.js +2 -3
- package/dist/global/dom.js +1 -5
- package/dist/global/focus-sensor-hoc.js +58 -61
- package/dist/global/listeners.js +1 -5
- package/dist/global/react-dom-renderer.js +8 -12
- package/dist/global/rerender-hoc.js +1 -5
- package/dist/global/ring-angular-component.js +1 -3
- package/dist/grid/col.js +13 -14
- package/dist/grid/grid.js +5 -5
- package/dist/grid/row.js +16 -17
- package/dist/group/group.js +5 -5
- package/dist/header/header.js +10 -10
- package/dist/header/logo.js +9 -9
- package/dist/header/profile.js +58 -58
- package/dist/header/services.js +19 -22
- package/dist/header/smart-profile.js +40 -43
- package/dist/header/smart-services.js +28 -31
- package/dist/header/tray-icon.js +6 -6
- package/dist/header/tray.js +5 -5
- package/dist/heading/heading.js +1 -1
- package/dist/heading-ng/heading-ng.js +1 -1
- package/dist/http/http.js +111 -107
- package/dist/http/http.mock.js +3 -4
- package/dist/hub-source/hub-source.js +7 -9
- package/dist/hub-source/hub-source__user.js +0 -1
- package/dist/hub-source/hub-source__users-groups.js +4 -5
- package/dist/icon/icon.js +18 -18
- package/dist/icon/icon__svg.js +1 -1
- package/dist/icon-ng/icon-ng.js +0 -1
- package/dist/input/input.js +35 -38
- package/dist/input-ng/input-ng.js +25 -26
- package/dist/island/adaptive-island-hoc.js +21 -25
- package/dist/island/content.js +62 -65
- package/dist/island/header.js +11 -11
- package/dist/island/island.js +8 -8
- package/dist/island-legacy/content-legacy.js +5 -5
- package/dist/island-legacy/header-legacy.js +5 -5
- package/dist/island-legacy/island-legacy.js +5 -5
- package/dist/link/clickableLink.js +27 -30
- package/dist/link/link.js +16 -16
- package/dist/list/list.js +389 -391
- package/dist/list/list__custom.js +6 -10
- package/dist/list/list__hint.js +3 -4
- package/dist/list/list__item.js +4 -7
- package/dist/list/list__link.js +1 -1
- package/dist/list/list__users-groups-source.js +3 -3
- package/dist/loader/loader.js +16 -19
- package/dist/loader/loader__core.js +62 -62
- package/dist/loader-inline/loader-inline.js +6 -6
- package/dist/loader-ng/loader-ng.js +3 -4
- package/dist/loader-screen/loader-screen.js +6 -6
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -1
- package/dist/login-dialog/login-dialog.js +55 -58
- package/dist/login-dialog/service.js +1 -1
- package/dist/markdown/code.js +0 -1
- package/dist/markdown/markdown.js +1 -1
- package/dist/message/message.js +22 -25
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +55 -58
- package/dist/pager-ng/pager-ng.js +1 -1
- package/dist/panel/panel.js +5 -5
- package/dist/panel-ng/panel-ng.js +0 -1
- package/dist/permissions/permissions.js +14 -16
- package/dist/permissions/permissions__cache.js +4 -6
- package/dist/permissions-ng/permissions-ng.js +1 -1
- package/dist/place-under-ng/place-under-ng.js +0 -1
- package/dist/popup/popup.js +118 -121
- package/dist/popup/popup.target.js +1 -1
- package/dist/popup/position.js +0 -1
- package/dist/popup-menu/popup-menu.js +19 -22
- package/dist/progress-bar/progress-bar.js +41 -44
- package/dist/progress-bar-ng/progress-bar-ng.js +1 -1
- package/dist/promised-click-ng/promised-click-ng.js +0 -1
- package/dist/query-assist/query-assist.js +507 -501
- package/dist/query-assist/query-assist__suggestions.js +1 -1
- package/dist/query-assist-ng/query-assist-ng.js +1 -1
- package/dist/radio/radio.js +10 -13
- package/dist/radio/radio__item.js +19 -22
- package/dist/select/select.js +350 -349
- package/dist/select/select__popup.js +148 -152
- package/dist/select-ng/select-ng.js +1 -1
- package/dist/select-ng/select-ng__lazy.js +4 -4
- package/dist/select-ng/select-ng__options.js +14 -15
- package/dist/shortcuts/core.js +35 -36
- package/dist/shortcuts/shortcuts-hoc.js +7 -11
- package/dist/shortcuts/shortcuts.js +10 -11
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -1
- package/dist/shortcuts-ng/shortcuts-ng.js +0 -1
- package/dist/sidebar-ng/sidebar-ng.js +0 -1
- package/dist/storage/storage.js +1 -1
- package/dist/storage/storage__fallback.js +8 -10
- package/dist/storage/storage__local.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +84 -86
- package/dist/table/cell.js +6 -6
- package/dist/table/disable-hover-hoc.js +23 -25
- package/dist/table/header-cell.js +28 -31
- package/dist/table/header.js +58 -61
- package/dist/table/multitable.js +91 -95
- package/dist/table/row-with-focus-sensor.js +15 -18
- package/dist/table/row.d.ts +1 -0
- package/dist/table/row.js +54 -55
- package/dist/table/selection-shortcuts-hoc.js +145 -147
- package/dist/table/selection.js +7 -9
- package/dist/table/smart-table.d.ts +1 -0
- package/dist/table/smart-table.js +21 -24
- package/dist/table/table.d.ts +2 -0
- package/dist/table/table.js +107 -109
- package/dist/table-legacy-ng/table-legacy-ng.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +1 -3
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -1
- package/dist/table-ng/smart-table-ng.js +1 -1
- package/dist/table-ng/table-ng.js +1 -1
- package/dist/tabs/collapsible-more.js +1 -1
- package/dist/tabs/collapsible-tab.js +1 -1
- package/dist/tabs/dumb-tabs.js +46 -49
- package/dist/tabs/smart-tabs.js +10 -10
- package/dist/tabs/tab.js +7 -8
- package/dist/tag/tag.js +42 -45
- package/dist/tags-input/tags-input.d.ts +1 -1
- package/dist/tags-input/tags-input.js +214 -213
- package/dist/tags-input-ng/tags-input-ng.js +1 -1
- package/dist/tags-list/tags-list.js +20 -20
- package/dist/template-ng/template-ng.js +25 -26
- package/dist/text/text.js +6 -6
- package/dist/toggle/toggle.js +19 -19
- package/dist/toggle-ng/toggle-ng.js +1 -1
- package/dist/tooltip/tooltip.js +86 -89
- package/dist/tooltip-ng/tooltip-ng.js +1 -1
- package/dist/user-agreement/service.js +207 -205
- package/dist/user-agreement/user-agreement.js +39 -42
- package/dist/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/dist/user-card/smart-user-card-tooltip.js +32 -35
- package/dist/user-card/tooltip.js +26 -26
- package/dist/user-card-ng/user-card-ng.js +1 -1
- package/package.json +17 -17
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import React, { PureComponent } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -9,6 +8,7 @@ import { Button } from '../button/button.js';
|
|
|
9
8
|
import Markdown from '../markdown/markdown.js';
|
|
10
9
|
import HeaderWrapper from '../island/header.js';
|
|
11
10
|
import ContentWrapper from '../island/content.js';
|
|
11
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '@jetbrains/icons/close';
|
|
14
14
|
import '../global/get-uid.js';
|
|
@@ -61,15 +61,44 @@ function noop() {}
|
|
|
61
61
|
* A component that displays a user agreement dialog.
|
|
62
62
|
*/
|
|
63
63
|
class UserAgreement extends PureComponent {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
static propTypes = {
|
|
65
|
+
show: PropTypes.bool,
|
|
66
|
+
preview: PropTypes.bool,
|
|
67
|
+
text: PropTypes.string.isRequired,
|
|
68
|
+
onAccept: PropTypes.func,
|
|
69
|
+
onDecline: PropTypes.func,
|
|
70
|
+
onClose: PropTypes.func,
|
|
71
|
+
onRemindLater: PropTypes.func,
|
|
72
|
+
translations: PropTypes.shape({
|
|
73
|
+
userAgreement: PropTypes.string.isRequired,
|
|
74
|
+
accept: PropTypes.string.isRequired,
|
|
75
|
+
decline: PropTypes.string.isRequired,
|
|
76
|
+
close: PropTypes.string.isRequired,
|
|
77
|
+
scrollToAccept: PropTypes.string.isRequired,
|
|
78
|
+
remindLater: PropTypes.string.isRequired
|
|
79
|
+
}),
|
|
80
|
+
className: PropTypes.string
|
|
81
|
+
};
|
|
82
|
+
static defaultProps = {
|
|
83
|
+
translations: {
|
|
84
|
+
userAgreement: 'User Agreement',
|
|
85
|
+
accept: 'Accept',
|
|
86
|
+
decline: 'Decline',
|
|
87
|
+
close: 'Close',
|
|
88
|
+
scrollToAccept: 'View the entire agreement to continue',
|
|
89
|
+
remindLater: 'Remind me later'
|
|
90
|
+
},
|
|
91
|
+
show: false,
|
|
92
|
+
onAccept: noop,
|
|
93
|
+
onDecline: noop,
|
|
94
|
+
onClose: noop
|
|
95
|
+
};
|
|
96
|
+
state = {
|
|
97
|
+
scrolledDown: false
|
|
98
|
+
};
|
|
99
|
+
onScrollToBottom = () => this.setState({
|
|
100
|
+
scrolledDown: true
|
|
101
|
+
});
|
|
73
102
|
render() {
|
|
74
103
|
const {
|
|
75
104
|
scrolledDown
|
|
@@ -120,37 +149,5 @@ class UserAgreement extends PureComponent {
|
|
|
120
149
|
}, translations.close)));
|
|
121
150
|
}
|
|
122
151
|
}
|
|
123
|
-
_defineProperty(UserAgreement, "propTypes", {
|
|
124
|
-
show: PropTypes.bool,
|
|
125
|
-
preview: PropTypes.bool,
|
|
126
|
-
text: PropTypes.string.isRequired,
|
|
127
|
-
onAccept: PropTypes.func,
|
|
128
|
-
onDecline: PropTypes.func,
|
|
129
|
-
onClose: PropTypes.func,
|
|
130
|
-
onRemindLater: PropTypes.func,
|
|
131
|
-
translations: PropTypes.shape({
|
|
132
|
-
userAgreement: PropTypes.string.isRequired,
|
|
133
|
-
accept: PropTypes.string.isRequired,
|
|
134
|
-
decline: PropTypes.string.isRequired,
|
|
135
|
-
close: PropTypes.string.isRequired,
|
|
136
|
-
scrollToAccept: PropTypes.string.isRequired,
|
|
137
|
-
remindLater: PropTypes.string.isRequired
|
|
138
|
-
}),
|
|
139
|
-
className: PropTypes.string
|
|
140
|
-
});
|
|
141
|
-
_defineProperty(UserAgreement, "defaultProps", {
|
|
142
|
-
translations: {
|
|
143
|
-
userAgreement: 'User Agreement',
|
|
144
|
-
accept: 'Accept',
|
|
145
|
-
decline: 'Decline',
|
|
146
|
-
close: 'Close',
|
|
147
|
-
scrollToAccept: 'View the entire agreement to continue',
|
|
148
|
-
remindLater: 'Remind me later'
|
|
149
|
-
},
|
|
150
|
-
show: false,
|
|
151
|
-
onAccept: noop,
|
|
152
|
-
onDecline: noop,
|
|
153
|
-
onClose: noop
|
|
154
|
-
});
|
|
155
152
|
|
|
156
153
|
export { UserAgreement as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
@@ -56,36 +56,37 @@ import '../clipboard/clipboard-fallback.js';
|
|
|
56
56
|
import '../_helpers/badge.js';
|
|
57
57
|
|
|
58
58
|
class SmartUserCardTooltip extends Component {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
59
|
+
static propTypes = {
|
|
60
|
+
children: PropTypes.node,
|
|
61
|
+
userDataSource: PropTypes.func
|
|
62
|
+
};
|
|
63
|
+
state = {
|
|
64
|
+
user: null,
|
|
65
|
+
loading: false
|
|
66
|
+
};
|
|
67
|
+
loadUser = async () => {
|
|
68
|
+
if (this.state.user) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
try {
|
|
72
|
+
this.setState({
|
|
73
|
+
loading: true
|
|
74
|
+
});
|
|
75
|
+
const user = await this.props.userDataSource();
|
|
76
|
+
this.setState({
|
|
77
|
+
user
|
|
78
|
+
});
|
|
79
|
+
} catch (e) {
|
|
80
|
+
// Skip it
|
|
81
|
+
} finally {
|
|
82
|
+
this.setState({
|
|
83
|
+
loading: false
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
renderNoUser = () => this.state.loading ? /*#__PURE__*/React.createElement("div", {
|
|
88
|
+
className: modules_a4196c17.userCardSpaced
|
|
89
|
+
}, /*#__PURE__*/React.createElement(LoaderInline, null)) : '';
|
|
89
90
|
render() {
|
|
90
91
|
const {
|
|
91
92
|
user
|
|
@@ -106,9 +107,5 @@ class SmartUserCardTooltip extends Component {
|
|
|
106
107
|
}, restProps), children);
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
_defineProperty(SmartUserCardTooltip, "propTypes", {
|
|
110
|
-
children: PropTypes.node,
|
|
111
|
-
userDataSource: PropTypes.func
|
|
112
|
-
});
|
|
113
110
|
|
|
114
111
|
export { SmartUserCardTooltip as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import Dropdown from '../dropdown/dropdown.js';
|
|
6
6
|
import Popup from '../popup/popup.js';
|
|
7
|
-
import {
|
|
7
|
+
import { U as UserCard, m as modules_a4196c17 } from '../_helpers/card.js';
|
|
8
8
|
import '../global/data-tests.js';
|
|
9
9
|
import '../global/typescript-utils.js';
|
|
10
10
|
import '../_helpers/anchor.js';
|
|
@@ -56,6 +56,30 @@ import '../_helpers/badge.js';
|
|
|
56
56
|
|
|
57
57
|
const DEFAULT_TIMEOUT = 300;
|
|
58
58
|
class UserCardTooltip extends Component {
|
|
59
|
+
static propTypes = {
|
|
60
|
+
className: PropTypes.string,
|
|
61
|
+
children: PropTypes.node,
|
|
62
|
+
dropdownProps: PropTypes.object,
|
|
63
|
+
user: PropTypes.object,
|
|
64
|
+
renderUserCard: PropTypes.func,
|
|
65
|
+
renderNoUser: PropTypes.func
|
|
66
|
+
};
|
|
67
|
+
static defaultProps = {
|
|
68
|
+
renderUserCard: props => {
|
|
69
|
+
const {
|
|
70
|
+
user,
|
|
71
|
+
...restProps
|
|
72
|
+
} = props;
|
|
73
|
+
return user && /*#__PURE__*/React.createElement(UserCard, _extends({
|
|
74
|
+
user: user
|
|
75
|
+
}, restProps));
|
|
76
|
+
},
|
|
77
|
+
renderNoUser: () => '',
|
|
78
|
+
dropdownProps: {
|
|
79
|
+
hoverShowTimeOut: DEFAULT_TIMEOUT,
|
|
80
|
+
hoverHideTimeOut: DEFAULT_TIMEOUT
|
|
81
|
+
}
|
|
82
|
+
};
|
|
59
83
|
render() {
|
|
60
84
|
const {
|
|
61
85
|
children,
|
|
@@ -78,29 +102,5 @@ class UserCardTooltip extends Component {
|
|
|
78
102
|
}) : renderNoUser()));
|
|
79
103
|
}
|
|
80
104
|
}
|
|
81
|
-
_defineProperty(UserCardTooltip, "propTypes", {
|
|
82
|
-
className: PropTypes.string,
|
|
83
|
-
children: PropTypes.node,
|
|
84
|
-
dropdownProps: PropTypes.object,
|
|
85
|
-
user: PropTypes.object,
|
|
86
|
-
renderUserCard: PropTypes.func,
|
|
87
|
-
renderNoUser: PropTypes.func
|
|
88
|
-
});
|
|
89
|
-
_defineProperty(UserCardTooltip, "defaultProps", {
|
|
90
|
-
renderUserCard: props => {
|
|
91
|
-
const {
|
|
92
|
-
user,
|
|
93
|
-
...restProps
|
|
94
|
-
} = props;
|
|
95
|
-
return user && /*#__PURE__*/React.createElement(UserCard, _extends({
|
|
96
|
-
user: user
|
|
97
|
-
}, restProps));
|
|
98
|
-
},
|
|
99
|
-
renderNoUser: () => '',
|
|
100
|
-
dropdownProps: {
|
|
101
|
-
hoverShowTimeOut: DEFAULT_TIMEOUT,
|
|
102
|
-
hoverHideTimeOut: DEFAULT_TIMEOUT
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
105
|
|
|
106
106
|
export { UserCardTooltip as default };
|
|
@@ -2,13 +2,13 @@ import angular from 'angular';
|
|
|
2
2
|
import { createAngularComponent } from '../global/angular-component-factory.js';
|
|
3
3
|
import SmartUserCardTooltip from '../user-card/smart-user-card-tooltip.js';
|
|
4
4
|
import UserCardTooltip from '../user-card/tooltip.js';
|
|
5
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
5
|
import 'react';
|
|
7
6
|
import '../global/react-render-adapter.js';
|
|
8
7
|
import 'react-dom';
|
|
9
8
|
import '../global/ring-angular-component.js';
|
|
10
9
|
import '../global/react-dom-renderer.js';
|
|
11
10
|
import 'prop-types';
|
|
11
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
12
12
|
import '../loader-inline/loader-inline.js';
|
|
13
13
|
import 'classnames';
|
|
14
14
|
import '../global/data-tests.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.129",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
"@jetbrains/stylelint-config": "^4.0.1",
|
|
81
81
|
"@primer/octicons": "^18.3.0",
|
|
82
82
|
"@rollup/plugin-babel": "^6.0.3",
|
|
83
|
-
"@rollup/plugin-node-resolve": "^15.0.
|
|
83
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
84
84
|
"@rollup/plugin-replace": "^5.0.2",
|
|
85
85
|
"@storybook/addon-a11y": "6.5.16",
|
|
86
86
|
"@storybook/addon-docs": "6.5.16",
|
|
87
87
|
"@storybook/addon-essentials": "6.5.16",
|
|
88
88
|
"@storybook/addon-storyshots": "6.5.16",
|
|
89
89
|
"@storybook/addon-storyshots-puppeteer": "6.5.16",
|
|
90
|
-
"@storybook/addon-storysource": "
|
|
90
|
+
"@storybook/addon-storysource": "7.0.2",
|
|
91
91
|
"@storybook/addons": "6.5.16",
|
|
92
92
|
"@storybook/builder-webpack5": "6.5.16",
|
|
93
93
|
"@storybook/client-api": "6.5.16",
|
|
@@ -104,19 +104,19 @@
|
|
|
104
104
|
"@types/chai-dom": "0.0.10",
|
|
105
105
|
"@types/chai-enzyme": "^0.6.8",
|
|
106
106
|
"@types/enzyme": "^3.10.12",
|
|
107
|
-
"@types/react": "^18.0.
|
|
107
|
+
"@types/react": "^18.0.33",
|
|
108
108
|
"@types/react-dom": "^18.0.11",
|
|
109
109
|
"@types/sinon": "^10.0.13",
|
|
110
110
|
"@types/sinon-chai": "^3.2.9",
|
|
111
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
112
|
-
"@typescript-eslint/parser": "^5.
|
|
111
|
+
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
112
|
+
"@typescript-eslint/parser": "^5.57.1",
|
|
113
113
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
114
114
|
"angular": "^1.8.3",
|
|
115
115
|
"angular-mocks": "^1.8.3",
|
|
116
116
|
"angular-route": "^1.8.3",
|
|
117
117
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
118
118
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
119
|
-
"caniuse-lite": "^1.0.
|
|
119
|
+
"caniuse-lite": "^1.0.30001474",
|
|
120
120
|
"chai": "^4.3.7",
|
|
121
121
|
"chai-as-promised": "^7.1.1",
|
|
122
122
|
"chai-dom": "^1.10.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"core-js": "^3.29.1",
|
|
126
126
|
"cpy-cli": "^3.1.1",
|
|
127
127
|
"enzyme": "^3.11.0",
|
|
128
|
-
"eslint": "^8.
|
|
128
|
+
"eslint": "^8.37.0",
|
|
129
129
|
"eslint-import-resolver-webpack": "^0.13.2",
|
|
130
130
|
"eslint-plugin-angular": "^4.1.0",
|
|
131
131
|
"eslint-plugin-bdd": "^2.1.1",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
134
134
|
"eslint-plugin-react": "^7.32.2",
|
|
135
135
|
"events": "^3.3.0",
|
|
136
|
-
"glob": "^9.3.
|
|
136
|
+
"glob": "^9.3.4",
|
|
137
137
|
"html-webpack-plugin": "^5.5.0",
|
|
138
138
|
"husky": "^8.0.3",
|
|
139
139
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -161,18 +161,18 @@
|
|
|
161
161
|
"rollup": "^3.20.2",
|
|
162
162
|
"rollup-plugin-clear": "^2.0.7",
|
|
163
163
|
"rollup-plugin-styles": "^4.0.0",
|
|
164
|
-
"sinon": "^15.0.
|
|
164
|
+
"sinon": "^15.0.3",
|
|
165
165
|
"sinon-chai": "^3.7.0",
|
|
166
166
|
"storage-mock": "^2.1.0",
|
|
167
167
|
"storybook-addon-themes": "^6.1.0",
|
|
168
168
|
"storybook-zeplin": "^1.7.3",
|
|
169
|
-
"stylelint": "^15.
|
|
169
|
+
"stylelint": "^15.4.0",
|
|
170
170
|
"svg-inline-loader": "^0.8.2",
|
|
171
171
|
"teamcity-service-messages": "^0.1.14",
|
|
172
172
|
"terser-webpack-plugin": "^5.3.7",
|
|
173
|
-
"typescript": "~
|
|
173
|
+
"typescript": "~5.0.3",
|
|
174
174
|
"wallaby-webpack": "^3.9.16",
|
|
175
|
-
"webpack": "^5.
|
|
175
|
+
"webpack": "^5.77.0",
|
|
176
176
|
"webpack-cli": "^5.0.1",
|
|
177
177
|
"xmlappend": "^1.0.4",
|
|
178
178
|
"yo": "^4.3.1"
|
|
@@ -197,8 +197,8 @@
|
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
"dependencies": {
|
|
200
|
-
"@babel/core": "^7.21.
|
|
201
|
-
"@babel/preset-typescript": "^7.21.
|
|
200
|
+
"@babel/core": "^7.21.4",
|
|
201
|
+
"@babel/preset-typescript": "^7.21.4",
|
|
202
202
|
"@jetbrains/babel-preset-jetbrains": "^2.3.2",
|
|
203
203
|
"@jetbrains/icons": "^3.21.0",
|
|
204
204
|
"@jetbrains/logos": "^2.2.13",
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"combokeys": "^3.0.1",
|
|
220
220
|
"compile-code-loader": "^1.0.0",
|
|
221
221
|
"css-loader": "^6.7.3",
|
|
222
|
-
"csstype": "^3.1.
|
|
222
|
+
"csstype": "^3.1.2",
|
|
223
223
|
"date-fns": "^2.29.3",
|
|
224
224
|
"deep-equal": "^2.2.0",
|
|
225
225
|
"element-resize-detector": "^1.2.4",
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
242
242
|
"postcss-loader": "^7.1.0",
|
|
243
243
|
"postcss-modules-values-replace": "^4.1.0",
|
|
244
|
-
"postcss-preset-env": "^8.0
|
|
244
|
+
"postcss-preset-env": "^8.3.0",
|
|
245
245
|
"prop-types": "^15.8.1",
|
|
246
246
|
"react-markdown": "^8.0.6",
|
|
247
247
|
"react-movable": "^3.0.4",
|