@jetbrains/ring-ui-built 6.0.32 → 6.0.34
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 +567 -1
- package/components/_helpers/anchor.js +6 -7
- package/components/_helpers/button__classes.js +14 -16
- package/components/_helpers/caption.js +20 -14
- package/components/_helpers/card.js +105 -95
- package/components/_helpers/dialog__body-scroll-preventer.js +19 -11
- package/components/_helpers/icon__svg.js +25 -22
- package/components/_helpers/input.js +176 -146
- package/components/_helpers/query-assist__suggestions.js +90 -74
- package/components/_helpers/select__filter.js +69 -48
- package/components/_helpers/services-link.js +37 -29
- package/components/_helpers/sidebar.js +107 -99
- package/components/_helpers/tab-link.js +7 -7
- package/components/_helpers/theme.js +40 -31
- package/components/_helpers/title.js +72 -57
- package/components/alert/alert.js +202 -150
- package/components/alert/container.js +41 -32
- package/components/alert-service/alert-service.js +170 -105
- package/components/analytics/analytics.js +22 -12
- package/components/analytics/analytics__custom-plugin.js +75 -54
- package/components/auth/auth.js +36 -4
- package/components/auth/auth__core.js +1471 -746
- package/components/auth/background-flow.js +127 -87
- package/components/auth/down-notification.js +73 -30
- package/components/auth/iframe-flow.js +133 -75
- package/components/auth/request-builder.js +82 -46
- package/components/auth/response-parser.js +116 -86
- package/components/auth/storage.js +334 -171
- package/components/auth/token-validator.js +242 -137
- package/components/auth/window-flow.js +134 -92
- package/components/auth-dialog/auth-dialog.js +172 -114
- package/components/auth-dialog-service/auth-dialog-service.js +31 -8
- package/components/avatar/avatar-example-datauri.js +1 -23
- package/components/avatar/avatar.js +152 -119
- package/components/avatar/fallback-avatar.js +38 -22
- package/components/badge/badge.js +45 -35
- package/components/button/button.js +107 -86
- package/components/button-group/button-group.js +33 -19
- package/components/button-set/button-set.js +32 -20
- package/components/button-toolbar/button-toolbar.js +31 -19
- package/components/caret/caret.js +220 -186
- package/components/checkbox/checkbox.js +101 -76
- package/components/clipboard/clipboard-fallback.js +10 -10
- package/components/clipboard/clipboard.js +132 -35
- package/components/code/code.js +166 -92
- package/components/collapse/collapse-content.js +64 -42
- package/components/collapse/collapse-context.js +2 -2
- package/components/collapse/collapse-control.js +14 -12
- package/components/collapse/collapse.js +17 -11
- package/components/collapse/consts.js +4 -4
- package/components/collapse/utils.js +3 -1
- package/components/confirm/confirm.js +104 -66
- package/components/confirm-service/confirm-service.js +59 -37
- package/components/content-layout/content-layout.js +64 -43
- package/components/content-layout/sidebar.js +1 -0
- package/components/contenteditable/contenteditable.js +59 -50
- package/components/control-label/control-label.js +9 -9
- package/components/data-list/data-list.js +182 -129
- package/components/data-list/data-list.mock.js +6 -2
- package/components/data-list/item.js +170 -143
- package/components/data-list/selection.js +136 -76
- package/components/data-list/title.js +12 -1
- package/components/date-picker/consts.js +26 -19
- package/components/date-picker/date-input.js +144 -113
- package/components/date-picker/date-picker.js +282 -227
- package/components/date-picker/date-popup.js +395 -350
- package/components/date-picker/day.js +116 -87
- package/components/date-picker/month-names.js +66 -43
- package/components/date-picker/month-slider.js +76 -51
- package/components/date-picker/month.js +25 -16
- package/components/date-picker/months.js +50 -43
- package/components/date-picker/weekdays.js +22 -12
- package/components/date-picker/years.js +110 -83
- package/components/dialog/dialog.js +190 -142
- package/components/dialog/dialog__body-scroll-preventer.js +4 -0
- package/components/dropdown/anchor.js +9 -0
- package/components/dropdown/dropdown.js +213 -182
- package/components/dropdown-menu/dropdown-menu.js +97 -71
- package/components/editable-heading/editable-heading.js +127 -75
- package/components/error-bubble/error-bubble.js +60 -31
- package/components/error-message/error-message.js +59 -39
- package/components/footer/footer.js +30 -27
- package/components/global/compose.js +10 -1
- package/components/global/composeRefs.js +12 -7
- package/components/global/controls-height.js +2 -2
- package/components/global/create-stateful-context.js +15 -15
- package/components/global/data-tests.js +14 -6
- package/components/global/dom.js +86 -47
- package/components/global/focus-sensor-hoc.js +132 -122
- package/components/global/fuzzy-highlight.js +36 -22
- package/components/global/get-event-key.js +8 -8
- package/components/global/get-uid.js +8 -4
- package/components/global/inject-styles.js +15 -10
- package/components/global/listeners.js +51 -27
- package/components/global/memoize.js +12 -6
- package/components/global/normalize-indent.js +50 -19
- package/components/global/promise-with-timeout.js +8 -6
- package/components/global/prop-types.js +5 -3
- package/components/global/react-dom-renderer.js +44 -28
- package/components/global/react-render-adapter.js +1 -1
- package/components/global/rerender-hoc.js +30 -12
- package/components/global/schedule-raf.js +6 -5
- package/components/global/sniffer.js +1 -1
- package/components/global/theme.js +22 -0
- package/components/global/trivial-template-tag.js +10 -3
- package/components/global/typescript-utils.js +6 -2
- package/components/global/url.js +26 -20
- package/components/global/use-event-callback.js +4 -6
- package/components/grid/col.js +52 -35
- package/components/grid/grid.js +31 -17
- package/components/grid/row.js +47 -35
- package/components/group/group.js +25 -17
- package/components/header/header.js +78 -33
- package/components/header/logo.js +36 -20
- package/components/header/profile.js +199 -166
- package/components/header/services-link.js +4 -0
- package/components/header/services.js +116 -73
- package/components/header/smart-profile.js +203 -111
- package/components/header/smart-services.js +113 -62
- package/components/header/tray-icon.js +37 -21
- package/components/header/tray.js +32 -21
- package/components/heading/heading.js +25 -24
- package/components/http/http.d.ts +1 -2
- package/components/http/http.js +345 -203
- package/components/http/http.mock.d.ts +1 -5
- package/components/http/http.mock.js +101 -49
- package/components/hub-source/hub-source.js +190 -83
- package/components/hub-source/hub-source__user.js +44 -11
- package/components/hub-source/hub-source__users-groups.js +65 -37
- package/components/i18n/i18n-context.js +10 -7
- package/components/i18n/i18n.js +10 -7
- package/components/icon/icon.js +93 -76
- package/components/icon/icon__svg.js +8 -0
- package/components/icon/index.js +8 -0
- package/components/input/input.js +13 -0
- package/components/island/adaptive-island-hoc.js +43 -30
- package/components/island/content.js +132 -115
- package/components/island/header.js +70 -57
- package/components/island/island.js +40 -28
- package/components/island-legacy/content-legacy.js +25 -17
- package/components/island-legacy/header-legacy.js +27 -19
- package/components/island-legacy/island-legacy.js +25 -17
- package/components/link/clickableLink.js +59 -44
- package/components/link/link.js +68 -57
- package/components/list/consts.js +2 -2
- package/components/list/list.js +698 -611
- package/components/list/list__custom.js +62 -44
- package/components/list/list__hint.js +19 -10
- package/components/list/list__item.js +174 -133
- package/components/list/list__link.js +50 -37
- package/components/list/list__separator.js +24 -14
- package/components/list/list__title.js +32 -22
- package/components/list/list__users-groups-source.js +126 -54
- package/components/loader/loader.js +74 -43
- package/components/loader/loader__core.js +263 -198
- package/components/loader-inline/loader-inline.js +35 -23
- package/components/loader-screen/loader-screen.js +46 -25
- package/components/login-dialog/login-dialog.js +158 -111
- package/components/login-dialog/service.js +34 -8
- package/components/markdown/markdown.js +23 -15
- package/components/message/message.js +203 -161
- package/components/old-browsers-message/old-browsers-message.js +18 -11
- package/components/old-browsers-message/old-browsers-message__stop.js +7 -0
- package/components/old-browsers-message/white-list.js +17 -9
- package/components/pager/pager.js +271 -212
- package/components/panel/panel.js +25 -17
- package/components/permissions/permissions.js +172 -127
- package/components/permissions/permissions__cache.js +224 -194
- package/components/popup/popup.consts.js +1 -1
- package/components/popup/popup.js +343 -284
- package/components/popup/popup.target.js +8 -9
- package/components/popup/position.js +106 -96
- package/components/popup-menu/popup-menu.js +81 -44
- package/components/progress-bar/progress-bar.js +104 -87
- package/components/query-assist/query-assist.js +916 -838
- package/components/query-assist/query-assist__suggestions.js +30 -1
- package/components/radio/radio.js +34 -19
- package/components/radio/radio__item.js +69 -52
- package/components/select/select.js +957 -852
- package/components/select/select__filter.js +30 -0
- package/components/select/select__popup.js +487 -373
- package/components/shortcuts/core.js +217 -166
- package/components/shortcuts/shortcut-title.js +11 -6
- package/components/shortcuts/shortcuts-hoc.js +45 -19
- package/components/shortcuts/shortcuts.js +75 -50
- package/components/slider/slider.js +122 -99
- package/components/slider/slider.utils.js +24 -14
- package/components/storage/storage.js +33 -4
- package/components/storage/storage__fallback.js +224 -149
- package/components/storage/storage__local.js +153 -90
- package/components/tab-trap/tab-trap.js +153 -122
- package/components/table/cell.js +26 -14
- package/components/table/disable-hover-hoc.js +51 -33
- package/components/table/header-cell.js +89 -64
- package/components/table/header.js +132 -104
- package/components/table/multitable.js +125 -107
- package/components/table/row-with-focus-sensor.js +69 -25
- package/components/table/row.js +216 -175
- package/components/table/selection-adapter.js +3 -1
- package/components/table/selection-shortcuts-hoc.js +181 -180
- package/components/table/selection.js +226 -156
- package/components/table/smart-table.js +88 -50
- package/components/table/table.js +358 -289
- package/components/tabs/collapsible-more.js +79 -46
- package/components/tabs/collapsible-tab.js +38 -31
- package/components/tabs/collapsible-tabs.js +153 -88
- package/components/tabs/custom-item.js +2 -4
- package/components/tabs/dumb-tabs.js +117 -74
- package/components/tabs/smart-tabs.js +69 -29
- package/components/tabs/tab-link.js +5 -1
- package/components/tabs/tab.js +31 -19
- package/components/tabs/tabs.js +31 -0
- package/components/tag/tag.js +173 -133
- package/components/tags-input/tags-input.js +427 -329
- package/components/tags-list/tags-list.js +78 -57
- package/components/text/text.js +39 -28
- package/components/toggle/toggle.js +70 -56
- package/components/tooltip/tooltip.js +190 -146
- package/components/user-agreement/service.js +371 -228
- package/components/user-agreement/toolbox.eula.js +1 -160
- package/components/user-agreement/user-agreement.js +120 -85
- package/components/user-card/card.js +29 -0
- package/components/user-card/smart-user-card-tooltip.js +111 -51
- package/components/user-card/tooltip.js +84 -47
- package/components/user-card/user-card.js +29 -0
- package/package.json +1 -2
@@ -1,3 +1,5 @@
|
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.array.concat.js';
|
1
3
|
import React, { Component } from 'react';
|
2
4
|
import PropTypes from 'prop-types';
|
3
5
|
import Dialog from '../dialog/dialog.js';
|
@@ -5,26 +7,48 @@ import '../island/island.js';
|
|
5
7
|
import LoaderScreen from '../loader-screen/loader-screen.js';
|
6
8
|
import { HUB_AUTH_PAGE_OPENED } from '../auth/background-flow.js';
|
7
9
|
import ContentWrapper from '../island/content.js';
|
8
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
9
10
|
import 'react-dom';
|
10
11
|
import 'classnames';
|
11
12
|
import '@jetbrains/icons/close';
|
12
13
|
import '../global/get-uid.js';
|
14
|
+
import 'core-js/modules/es.object.to-string.js';
|
15
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
13
16
|
import '../global/data-tests.js';
|
17
|
+
import 'core-js/modules/es.array.reduce.js';
|
18
|
+
import 'core-js/modules/es.object.entries.js';
|
14
19
|
import '../shortcuts/shortcuts.js';
|
20
|
+
import 'core-js/modules/es.array.map.js';
|
15
21
|
import '../shortcuts/core.js';
|
22
|
+
import 'core-js/modules/es.array.find-index.js';
|
23
|
+
import 'core-js/modules/es.array.includes.js';
|
24
|
+
import 'core-js/modules/es.array.slice.js';
|
25
|
+
import 'core-js/modules/es.array.splice.js';
|
26
|
+
import 'core-js/modules/es.object.assign.js';
|
27
|
+
import 'core-js/modules/es.regexp.exec.js';
|
28
|
+
import 'core-js/modules/es.string.includes.js';
|
29
|
+
import 'core-js/modules/es.string.match.js';
|
16
30
|
import 'combokeys';
|
17
31
|
import '../global/sniffer.js';
|
18
32
|
import 'sniffr';
|
19
33
|
import '../tab-trap/tab-trap.js';
|
34
|
+
import 'core-js/modules/es.array.filter.js';
|
20
35
|
import '../global/dom.js';
|
36
|
+
import 'core-js/modules/es.array.iterator.js';
|
37
|
+
import 'core-js/modules/es.set.js';
|
38
|
+
import 'core-js/modules/es.string.split.js';
|
39
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
40
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
21
41
|
import '../button/button.js';
|
22
42
|
import '@jetbrains/icons/chevron-10px';
|
23
43
|
import '../icon/icon.js';
|
24
44
|
import 'util-deprecate';
|
25
45
|
import '../icon/icon__constants.js';
|
26
46
|
import '../_helpers/icon__svg.js';
|
47
|
+
import 'core-js/modules/es.string.replace.js';
|
48
|
+
import 'core-js/modules/es.string.starts-with.js';
|
27
49
|
import '../global/memoize.js';
|
50
|
+
import 'core-js/modules/es.map.js';
|
51
|
+
import 'core-js/modules/es.weak-map.js';
|
28
52
|
import '../link/clickableLink.js';
|
29
53
|
import '../global/controls-height.js';
|
30
54
|
import '../_helpers/button__classes.js';
|
@@ -39,129 +63,152 @@ import 'element-resize-detector';
|
|
39
63
|
import '../global/schedule-raf.js';
|
40
64
|
import '../loader/loader.js';
|
41
65
|
import '../loader/loader__core.js';
|
66
|
+
import 'core-js/modules/es.array.fill.js';
|
67
|
+
import 'core-js/modules/es.promise.js';
|
42
68
|
import '../auth/response-parser.js';
|
69
|
+
import 'core-js/modules/es.array.index-of.js';
|
43
70
|
import 'es6-error';
|
44
71
|
import '../global/url.js';
|
45
72
|
|
46
73
|
var modules_45da1992 = {"light":"light_rui_2ac4","iFrame":"iFrame_rui_2d2e","dialogContent":"dialogContent_rui_2d2e","nonOpaqueLoader":"nonOpaqueLoader_rui_2d2e","fallbackLinkContainer":"fallbackLinkContainer_rui_2d2e"};
|
47
74
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
75
|
+
var HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
76
|
+
var HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
77
|
+
var DEFAULT_HEIGHT = 517;
|
78
|
+
var DEFAULT_WIDTH = 333;
|
79
|
+
var DEFAULT_SHOW_FALLBACK_TIMEOUT = 5000;
|
53
80
|
/**
|
54
81
|
* @name Login Dialog
|
55
82
|
*/
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
83
|
+
var LoginDialog = /*#__PURE__*/function (_Component) {
|
84
|
+
function LoginDialog() {
|
85
|
+
var _this;
|
86
|
+
_classCallCheck(this, LoginDialog);
|
87
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
88
|
+
args[_key] = arguments[_key];
|
89
|
+
}
|
90
|
+
_this = _callSuper(this, LoginDialog, [].concat(args));
|
91
|
+
_defineProperty(_this, "state", {
|
92
|
+
loading: true,
|
93
|
+
loggingIn: false,
|
94
|
+
showFallbackLink: false,
|
95
|
+
height: DEFAULT_HEIGHT,
|
96
|
+
width: DEFAULT_WIDTH
|
97
|
+
});
|
98
|
+
_defineProperty(_this, "showFallbackTimout", void 0);
|
99
|
+
_defineProperty(_this, "onMessage", function (event) {
|
100
|
+
var data = event.data;
|
101
|
+
if (!data) {
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
if (data === HUB_AUTH_PAGE_OPENED) {
|
105
|
+
clearTimeout(_this.showFallbackTimout);
|
106
|
+
_this.setState({
|
107
|
+
loading: false,
|
108
|
+
loggingIn: false
|
109
|
+
});
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
if (data === HUB_AUTH_PAGE_LOGIN_STARTED) {
|
113
|
+
_this.setState({
|
114
|
+
loading: true,
|
115
|
+
loggingIn: true
|
116
|
+
});
|
117
|
+
_this.startFallbackCountdown();
|
118
|
+
return;
|
119
|
+
}
|
120
|
+
if (data.message === HUB_AUTH_PAGE_LOGIN_DIMENSIONS) {
|
121
|
+
_this.setState({
|
122
|
+
height: data.height,
|
123
|
+
width: data.width
|
124
|
+
});
|
125
|
+
}
|
126
|
+
});
|
127
|
+
return _this;
|
92
128
|
}
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
129
|
+
_inherits(LoginDialog, _Component);
|
130
|
+
return _createClass(LoginDialog, [{
|
131
|
+
key: "componentDidMount",
|
132
|
+
value: function componentDidMount() {
|
133
|
+
window.addEventListener('message', this.onMessage);
|
134
|
+
this.startFallbackCountdown();
|
99
135
|
}
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
loggingIn: false
|
105
|
-
});
|
106
|
-
return;
|
136
|
+
}, {
|
137
|
+
key: "componentWillUnmount",
|
138
|
+
value: function componentWillUnmount() {
|
139
|
+
window.removeEventListener('message', this.onMessage);
|
107
140
|
}
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
141
|
+
}, {
|
142
|
+
key: "startFallbackCountdown",
|
143
|
+
value: function startFallbackCountdown() {
|
144
|
+
var _this2 = this;
|
145
|
+
this.showFallbackTimout = window.setTimeout(function () {
|
146
|
+
return _this2.setState({
|
147
|
+
showFallbackLink: true
|
148
|
+
});
|
149
|
+
}, this.props.showFallbackTimeout);
|
115
150
|
}
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
151
|
+
}, {
|
152
|
+
key: "render",
|
153
|
+
value: function render() {
|
154
|
+
var _this$props = this.props,
|
155
|
+
show = _this$props.show,
|
156
|
+
className = _this$props.className,
|
157
|
+
url = _this$props.url,
|
158
|
+
loadingMessage = _this$props.loadingMessage,
|
159
|
+
renderFallbackLink = _this$props.renderFallbackLink,
|
160
|
+
onCancel = _this$props.onCancel;
|
161
|
+
var _this$state = this.state,
|
162
|
+
loading = _this$state.loading,
|
163
|
+
height = _this$state.height,
|
164
|
+
width = _this$state.width,
|
165
|
+
loggingIn = _this$state.loggingIn,
|
166
|
+
showFallbackLink = _this$state.showFallbackLink;
|
167
|
+
var iFrameStyle = {
|
168
|
+
height,
|
169
|
+
width
|
170
|
+
};
|
171
|
+
return /*#__PURE__*/React.createElement(Dialog, {
|
172
|
+
"data-test": "ring-login-dialog",
|
173
|
+
className: className,
|
174
|
+
contentClassName: modules_45da1992.dialogContent,
|
175
|
+
trapFocus: true,
|
176
|
+
autoFocusFirst: false,
|
177
|
+
show: show,
|
178
|
+
showCloseButton: true,
|
179
|
+
onCloseAttempt: onCancel
|
180
|
+
}, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("iframe", {
|
181
|
+
title: "Login dialog",
|
182
|
+
style: iFrameStyle,
|
183
|
+
src: url,
|
184
|
+
className: modules_45da1992.iFrame,
|
185
|
+
scrolling: "no"
|
186
|
+
})), loading && /*#__PURE__*/React.createElement(LoaderScreen, {
|
187
|
+
message: loadingMessage,
|
188
|
+
containerClassName: modules_45da1992.nonOpaqueLoader
|
189
|
+
}), showFallbackLink && /*#__PURE__*/React.createElement("div", {
|
190
|
+
className: modules_45da1992.fallbackLinkContainer
|
191
|
+
}, renderFallbackLink(loggingIn)));
|
121
192
|
}
|
122
|
-
};
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
};
|
143
|
-
return /*#__PURE__*/React.createElement(Dialog, {
|
144
|
-
"data-test": "ring-login-dialog",
|
145
|
-
className: className,
|
146
|
-
contentClassName: modules_45da1992.dialogContent,
|
147
|
-
trapFocus: true,
|
148
|
-
autoFocusFirst: false,
|
149
|
-
show: show,
|
150
|
-
showCloseButton: true,
|
151
|
-
onCloseAttempt: onCancel
|
152
|
-
}, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("iframe", {
|
153
|
-
title: "Login dialog",
|
154
|
-
style: iFrameStyle,
|
155
|
-
src: url,
|
156
|
-
className: modules_45da1992.iFrame,
|
157
|
-
scrolling: "no"
|
158
|
-
})), loading && /*#__PURE__*/React.createElement(LoaderScreen, {
|
159
|
-
message: loadingMessage,
|
160
|
-
containerClassName: modules_45da1992.nonOpaqueLoader
|
161
|
-
}), showFallbackLink && /*#__PURE__*/React.createElement("div", {
|
162
|
-
className: modules_45da1992.fallbackLinkContainer
|
163
|
-
}, renderFallbackLink(loggingIn)));
|
164
|
-
}
|
165
|
-
}
|
193
|
+
}]);
|
194
|
+
}(Component);
|
195
|
+
_defineProperty(LoginDialog, "propTypes", {
|
196
|
+
show: PropTypes.bool,
|
197
|
+
className: PropTypes.string,
|
198
|
+
url: PropTypes.string,
|
199
|
+
loader: PropTypes.bool,
|
200
|
+
loadingMessage: PropTypes.string,
|
201
|
+
showFallbackTimeout: PropTypes.number,
|
202
|
+
renderFallbackLink: PropTypes.func,
|
203
|
+
onCancel: PropTypes.func.isRequired
|
204
|
+
});
|
205
|
+
_defineProperty(LoginDialog, "defaultProps", {
|
206
|
+
show: false,
|
207
|
+
url: 'about:blank',
|
208
|
+
renderFallbackLink: function renderFallbackLink() {
|
209
|
+
return null;
|
210
|
+
},
|
211
|
+
showFallbackTimeout: DEFAULT_SHOW_FALLBACK_TIMEOUT
|
212
|
+
});
|
166
213
|
|
167
214
|
export { LoginDialog as default };
|
@@ -1,15 +1,19 @@
|
|
1
|
+
import { d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
1
2
|
import React from 'react';
|
2
3
|
import { createRoot } from 'react-dom/client';
|
3
4
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
4
5
|
import LoginDialog from './login-dialog.js';
|
6
|
+
import 'core-js/modules/es.array.concat.js';
|
5
7
|
import 'prop-types';
|
6
8
|
import '../dialog/dialog.js';
|
7
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
8
9
|
import 'react-dom';
|
9
10
|
import 'classnames';
|
10
11
|
import '@jetbrains/icons/close';
|
11
12
|
import '../island/island.js';
|
12
13
|
import '../global/data-tests.js';
|
14
|
+
import 'core-js/modules/es.array.reduce.js';
|
15
|
+
import 'core-js/modules/es.object.entries.js';
|
16
|
+
import 'core-js/modules/es.object.to-string.js';
|
13
17
|
import '../island/adaptive-island-hoc.js';
|
14
18
|
import '../global/linear-function.js';
|
15
19
|
import '../_helpers/island.js';
|
@@ -18,20 +22,40 @@ import '../island/content.js';
|
|
18
22
|
import 'element-resize-detector';
|
19
23
|
import '../global/schedule-raf.js';
|
20
24
|
import '../global/get-uid.js';
|
25
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
21
26
|
import '../shortcuts/shortcuts.js';
|
27
|
+
import 'core-js/modules/es.array.map.js';
|
22
28
|
import '../shortcuts/core.js';
|
29
|
+
import 'core-js/modules/es.array.find-index.js';
|
30
|
+
import 'core-js/modules/es.array.includes.js';
|
31
|
+
import 'core-js/modules/es.array.slice.js';
|
32
|
+
import 'core-js/modules/es.array.splice.js';
|
33
|
+
import 'core-js/modules/es.object.assign.js';
|
34
|
+
import 'core-js/modules/es.regexp.exec.js';
|
35
|
+
import 'core-js/modules/es.string.includes.js';
|
36
|
+
import 'core-js/modules/es.string.match.js';
|
23
37
|
import 'combokeys';
|
24
38
|
import '../global/sniffer.js';
|
25
39
|
import 'sniffr';
|
26
40
|
import '../tab-trap/tab-trap.js';
|
41
|
+
import 'core-js/modules/es.array.filter.js';
|
27
42
|
import '../global/dom.js';
|
43
|
+
import 'core-js/modules/es.array.iterator.js';
|
44
|
+
import 'core-js/modules/es.set.js';
|
45
|
+
import 'core-js/modules/es.string.split.js';
|
46
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
47
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
28
48
|
import '../button/button.js';
|
29
49
|
import '@jetbrains/icons/chevron-10px';
|
30
50
|
import '../icon/icon.js';
|
31
51
|
import 'util-deprecate';
|
32
52
|
import '../icon/icon__constants.js';
|
33
53
|
import '../_helpers/icon__svg.js';
|
54
|
+
import 'core-js/modules/es.string.replace.js';
|
55
|
+
import 'core-js/modules/es.string.starts-with.js';
|
34
56
|
import '../global/memoize.js';
|
57
|
+
import 'core-js/modules/es.map.js';
|
58
|
+
import 'core-js/modules/es.weak-map.js';
|
35
59
|
import '../link/clickableLink.js';
|
36
60
|
import '../_helpers/button__classes.js';
|
37
61
|
import '../popup/popup.target.js';
|
@@ -40,13 +64,16 @@ import 'scrollbar-width';
|
|
40
64
|
import '../loader-screen/loader-screen.js';
|
41
65
|
import '../loader/loader.js';
|
42
66
|
import '../loader/loader__core.js';
|
67
|
+
import 'core-js/modules/es.array.fill.js';
|
43
68
|
import '../auth/background-flow.js';
|
69
|
+
import 'core-js/modules/es.promise.js';
|
44
70
|
import '../auth/response-parser.js';
|
71
|
+
import 'core-js/modules/es.array.index-of.js';
|
45
72
|
import 'es6-error';
|
46
73
|
import '../global/url.js';
|
47
74
|
|
48
|
-
|
49
|
-
|
75
|
+
var containerElement = document.createElement('div');
|
76
|
+
var reactRoot = createRoot(containerElement);
|
50
77
|
/**
|
51
78
|
* Renders LoginDialog into virtual node to skip maintaining container
|
52
79
|
*/
|
@@ -57,14 +84,13 @@ function renderLoginDialog(props) {
|
|
57
84
|
}
|
58
85
|
function noop() {}
|
59
86
|
function showAuthDialog() {
|
60
|
-
|
87
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
61
88
|
onCancel: noop
|
62
89
|
};
|
63
|
-
renderLoginDialog({
|
64
|
-
...props,
|
90
|
+
renderLoginDialog(_objectSpread2(_objectSpread2({}, props), {}, {
|
65
91
|
show: true
|
66
|
-
});
|
67
|
-
return ()
|
92
|
+
}));
|
93
|
+
return function () {
|
68
94
|
reactRoot.unmount();
|
69
95
|
};
|
70
96
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { a as _inherits, b as _createClass, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
1
2
|
import React, { PureComponent } from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import classNames from 'classnames';
|
@@ -9,22 +10,29 @@ var modules_9c709e64 = {"p-margin":"10px","light":"light_rui_2ac4","inline":"inl
|
|
9
10
|
/**
|
10
11
|
* @name Markdown
|
11
12
|
*/
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
children,
|
17
|
-
inline
|
18
|
-
} = this.props;
|
19
|
-
const classes = classNames(className, modules_901b77ec.contentWithHeadings, modules_607b0772.withLinks, {
|
20
|
-
[modules_9c709e64.markdown]: !inline,
|
21
|
-
[modules_9c709e64.inline]: inline
|
22
|
-
});
|
23
|
-
return /*#__PURE__*/React.createElement("div", {
|
24
|
-
className: classes
|
25
|
-
}, children);
|
13
|
+
var Markdown = /*#__PURE__*/function (_PureComponent) {
|
14
|
+
function Markdown() {
|
15
|
+
_classCallCheck(this, Markdown);
|
16
|
+
return _callSuper(this, Markdown, arguments);
|
26
17
|
}
|
27
|
-
|
18
|
+
_inherits(Markdown, _PureComponent);
|
19
|
+
return _createClass(Markdown, [{
|
20
|
+
key: "render",
|
21
|
+
value: function render() {
|
22
|
+
var _this$props = this.props,
|
23
|
+
className = _this$props.className,
|
24
|
+
children = _this$props.children,
|
25
|
+
inline = _this$props.inline;
|
26
|
+
var classes = classNames(className, modules_901b77ec.contentWithHeadings, modules_607b0772.withLinks, {
|
27
|
+
[modules_9c709e64.markdown]: !inline,
|
28
|
+
[modules_9c709e64.inline]: inline
|
29
|
+
});
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
31
|
+
className: classes
|
32
|
+
}, children);
|
33
|
+
}
|
34
|
+
}]);
|
35
|
+
}(PureComponent);
|
28
36
|
Markdown.propTypes = {
|
29
37
|
inline: PropTypes.bool,
|
30
38
|
className: PropTypes.string
|