@jetbrains/ring-ui 5.0.126 → 5.0.128
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/editable-heading/editable-heading.css +2 -0
- 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 +3 -2
- 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.js +3 -2
- package/components/table/table.js +4 -2
- 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 +351 -350
- 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.js +51 -54
- package/dist/table/selection-shortcuts-hoc.js +145 -147
- package/dist/table/selection.js +7 -9
- package/dist/table/smart-table.js +21 -24
- package/dist/table/table.js +103 -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 +15 -15
|
@@ -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';
|
|
@@ -7,15 +6,12 @@ import getEventKey from '../global/get-event-key.js';
|
|
|
7
6
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
|
8
7
|
|
|
9
8
|
class ListCustom extends PureComponent {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
9
|
+
handleKeyPress = event => {
|
|
10
|
+
const key = getEventKey(event);
|
|
11
|
+
if (key === 'Enter' || key === ' ') {
|
|
12
|
+
this.props.onClick(event);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
19
15
|
render() {
|
|
20
16
|
const {
|
|
21
17
|
scrolling,
|
package/dist/list/list__hint.js
CHANGED
|
@@ -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,9 @@ import { m as modules_3b67a421 } from '../_helpers/list.js';
|
|
|
9
8
|
* @extends {ReactComponent}
|
|
10
9
|
*/
|
|
11
10
|
class ListHint extends PureComponent {
|
|
11
|
+
static propTypes = {
|
|
12
|
+
label: PropTypes.node
|
|
13
|
+
};
|
|
12
14
|
render() {
|
|
13
15
|
return /*#__PURE__*/React.createElement("span", {
|
|
14
16
|
className: classNames(modules_3b67a421.item, modules_3b67a421.hint),
|
|
@@ -16,8 +18,5 @@ class ListHint extends PureComponent {
|
|
|
16
18
|
}, this.props.label);
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
|
-
_defineProperty(ListHint, "propTypes", {
|
|
20
|
-
label: PropTypes.node
|
|
21
|
-
});
|
|
22
21
|
|
|
23
22
|
export { ListHint as default };
|
package/dist/list/list__item.js
CHANGED
|
@@ -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';
|
|
@@ -8,6 +7,7 @@ import Checkbox from '../checkbox/checkbox.js';
|
|
|
8
7
|
import Icon from '../icon/icon.js';
|
|
9
8
|
import getUID from '../global/get-uid.js';
|
|
10
9
|
import { m as modules_3b67a421 } from '../_helpers/list.js';
|
|
10
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
11
11
|
import '../global/url.js';
|
|
12
12
|
import '../global/dom.js';
|
|
13
13
|
import '../avatar/fallback-avatar.js';
|
|
@@ -32,12 +32,9 @@ const RING_UNIT = 8;
|
|
|
32
32
|
const DEFAULT_PADDING = 16;
|
|
33
33
|
const CHECKBOX_WIDTH = 28;
|
|
34
34
|
class ListItem extends PureComponent {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
_defineProperty(this, "stopBubbling", e => e.stopPropagation());
|
|
39
|
-
_defineProperty(this, "_isString", val => typeof val === 'string' || val instanceof String);
|
|
40
|
-
}
|
|
35
|
+
id = getUID('list-item-');
|
|
36
|
+
stopBubbling = e => e.stopPropagation();
|
|
37
|
+
_isString = val => typeof val === 'string' || val instanceof String;
|
|
41
38
|
render() {
|
|
42
39
|
const {
|
|
43
40
|
scrolling,
|
package/dist/list/list__link.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component, PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import GroupIcon from '@jetbrains/icons/group';
|
|
3
2
|
import HubSourceUsersGroups from '../hub-source/hub-source__users-groups.js';
|
|
4
3
|
import List from './list.js';
|
|
@@ -24,6 +23,7 @@ import '../global/sniffer.js';
|
|
|
24
23
|
import 'sniffr';
|
|
25
24
|
import '../global/create-stateful-context.js';
|
|
26
25
|
import './list__link.js';
|
|
26
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
27
27
|
import '../link/link.js';
|
|
28
28
|
import 'focus-visible';
|
|
29
29
|
import '../link/clickableLink.js';
|
|
@@ -68,9 +68,10 @@ var Filter;
|
|
|
68
68
|
Filter[Filter["GROUPS"] = 2] = "GROUPS";
|
|
69
69
|
})(Filter || (Filter = {}));
|
|
70
70
|
class ListUsersGroupsSource extends HubSourceUsersGroups {
|
|
71
|
+
static Filter = Filter;
|
|
72
|
+
listSourceOptions;
|
|
71
73
|
constructor(auth, options) {
|
|
72
74
|
super(auth, options);
|
|
73
|
-
_defineProperty(this, "listSourceOptions", void 0);
|
|
74
75
|
this.listSourceOptions = Object.assign({}, defaultOptions, options);
|
|
75
76
|
}
|
|
76
77
|
getGroupsSectionTitle(groups) {
|
|
@@ -119,6 +120,5 @@ class ListUsersGroupsSource extends HubSourceUsersGroups {
|
|
|
119
120
|
return items;
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
|
-
_defineProperty(ListUsersGroupsSource, "Filter", Filter);
|
|
123
123
|
|
|
124
124
|
export { ListUsersGroupsSource as default };
|
package/dist/loader/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
@@ -12,15 +12,15 @@ import '../global/dom.js';
|
|
|
12
12
|
* Displays a large animated loader with an optional caption. Typical use cases: page loading animation, major action animation.
|
|
13
13
|
*/
|
|
14
14
|
class Loader extends PureComponent {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
15
|
+
static propTypes = {
|
|
16
|
+
className: PropTypes.string,
|
|
17
|
+
size: PropTypes.number,
|
|
18
|
+
colors: PropTypes.array,
|
|
19
|
+
message: PropTypes.string,
|
|
20
|
+
'data-test': PropTypes.string,
|
|
21
|
+
stop: PropTypes.bool,
|
|
22
|
+
deterministic: PropTypes.bool
|
|
23
|
+
};
|
|
24
24
|
componentDidUpdate(prevProps) {
|
|
25
25
|
if (this.loader) {
|
|
26
26
|
if (!prevProps.stop && this.props.stop) {
|
|
@@ -33,6 +33,12 @@ class Loader extends PureComponent {
|
|
|
33
33
|
componentWillUnmount() {
|
|
34
34
|
this.loader?.destroy();
|
|
35
35
|
}
|
|
36
|
+
loader;
|
|
37
|
+
initLoader = el => {
|
|
38
|
+
if (el) {
|
|
39
|
+
this.loader = new LoaderCore(el, this.props);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
36
42
|
render() {
|
|
37
43
|
const {
|
|
38
44
|
message,
|
|
@@ -50,14 +56,5 @@ class Loader extends PureComponent {
|
|
|
50
56
|
}));
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
|
-
_defineProperty(Loader, "propTypes", {
|
|
54
|
-
className: PropTypes.string,
|
|
55
|
-
size: PropTypes.number,
|
|
56
|
-
colors: PropTypes.array,
|
|
57
|
-
message: PropTypes.string,
|
|
58
|
-
'data-test': PropTypes.string,
|
|
59
|
-
stop: PropTypes.bool,
|
|
60
|
-
deterministic: PropTypes.bool
|
|
61
|
-
});
|
|
62
59
|
|
|
63
60
|
export { Loader as default };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { getPixelRatio } from '../global/dom.js';
|
|
3
2
|
|
|
4
3
|
var modules_00b5ad26 = {"unit":"i__const_unit_0","light":"light_rui_47a4","canvas":"canvas_rui_47a4","animate":"animate_rui_47a4","rotation-keyframes":"rotation-keyframes_rui_47a4","text":"text_rui_47a4"};
|
|
5
4
|
|
|
6
5
|
const INITIAL_TICKS = 100;
|
|
7
6
|
class Particle {
|
|
7
|
+
radius;
|
|
8
|
+
x;
|
|
9
|
+
y;
|
|
10
|
+
color;
|
|
11
|
+
decay;
|
|
12
|
+
life;
|
|
8
13
|
constructor(_ref) {
|
|
9
14
|
let {
|
|
10
15
|
x,
|
|
@@ -12,12 +17,6 @@ class Particle {
|
|
|
12
17
|
radius,
|
|
13
18
|
color
|
|
14
19
|
} = _ref;
|
|
15
|
-
_defineProperty(this, "radius", void 0);
|
|
16
|
-
_defineProperty(this, "x", void 0);
|
|
17
|
-
_defineProperty(this, "y", void 0);
|
|
18
|
-
_defineProperty(this, "color", void 0);
|
|
19
|
-
_defineProperty(this, "decay", void 0);
|
|
20
|
-
_defineProperty(this, "life", void 0);
|
|
21
20
|
this.radius = radius;
|
|
22
21
|
this.x = x;
|
|
23
22
|
this.y = y;
|
|
@@ -44,6 +43,42 @@ function deterministic() {
|
|
|
44
43
|
return DETERMINISTIC_VALUE;
|
|
45
44
|
}
|
|
46
45
|
class LoaderCore {
|
|
46
|
+
static defaultProps = {
|
|
47
|
+
size: 64,
|
|
48
|
+
stop: false,
|
|
49
|
+
deterministic: false,
|
|
50
|
+
colors: [{
|
|
51
|
+
r: 215,
|
|
52
|
+
g: 60,
|
|
53
|
+
b: 234
|
|
54
|
+
}, {
|
|
55
|
+
r: 145,
|
|
56
|
+
g: 53,
|
|
57
|
+
b: 224
|
|
58
|
+
}, {
|
|
59
|
+
r: 88,
|
|
60
|
+
g: 72,
|
|
61
|
+
b: 224
|
|
62
|
+
}, {
|
|
63
|
+
r: 37,
|
|
64
|
+
g: 183,
|
|
65
|
+
b: 255
|
|
66
|
+
}, {
|
|
67
|
+
r: 89,
|
|
68
|
+
g: 189,
|
|
69
|
+
b: 0
|
|
70
|
+
}, {
|
|
71
|
+
r: 251,
|
|
72
|
+
g: 172,
|
|
73
|
+
b: 2
|
|
74
|
+
}, {
|
|
75
|
+
r: 227,
|
|
76
|
+
g: 37,
|
|
77
|
+
b: 129
|
|
78
|
+
} //#E32581
|
|
79
|
+
]
|
|
80
|
+
};
|
|
81
|
+
|
|
47
82
|
static calculateGradient(startColor, stopColor, position) {
|
|
48
83
|
const calculateChannelValue = (a, b) => a + Math.round((b - a) * position);
|
|
49
84
|
return {
|
|
@@ -52,27 +87,27 @@ class LoaderCore {
|
|
|
52
87
|
b: calculateChannelValue(startColor.b, stopColor.b)
|
|
53
88
|
};
|
|
54
89
|
}
|
|
90
|
+
props;
|
|
91
|
+
canvas;
|
|
92
|
+
textNode;
|
|
93
|
+
ctx;
|
|
94
|
+
height;
|
|
95
|
+
width;
|
|
96
|
+
particles;
|
|
97
|
+
baseSpeed;
|
|
98
|
+
colorIndex;
|
|
99
|
+
maxRadius;
|
|
100
|
+
minRadius;
|
|
101
|
+
colorChangeTick;
|
|
102
|
+
x;
|
|
103
|
+
y;
|
|
104
|
+
radius;
|
|
105
|
+
hSpeed;
|
|
106
|
+
vSpeed;
|
|
107
|
+
radiusSpeed;
|
|
108
|
+
tick;
|
|
109
|
+
isRunning;
|
|
55
110
|
constructor(containerNode, props) {
|
|
56
|
-
_defineProperty(this, "props", void 0);
|
|
57
|
-
_defineProperty(this, "canvas", void 0);
|
|
58
|
-
_defineProperty(this, "textNode", void 0);
|
|
59
|
-
_defineProperty(this, "ctx", void 0);
|
|
60
|
-
_defineProperty(this, "height", void 0);
|
|
61
|
-
_defineProperty(this, "width", void 0);
|
|
62
|
-
_defineProperty(this, "particles", void 0);
|
|
63
|
-
_defineProperty(this, "baseSpeed", void 0);
|
|
64
|
-
_defineProperty(this, "colorIndex", void 0);
|
|
65
|
-
_defineProperty(this, "maxRadius", void 0);
|
|
66
|
-
_defineProperty(this, "minRadius", void 0);
|
|
67
|
-
_defineProperty(this, "colorChangeTick", void 0);
|
|
68
|
-
_defineProperty(this, "x", void 0);
|
|
69
|
-
_defineProperty(this, "y", void 0);
|
|
70
|
-
_defineProperty(this, "radius", void 0);
|
|
71
|
-
_defineProperty(this, "hSpeed", void 0);
|
|
72
|
-
_defineProperty(this, "vSpeed", void 0);
|
|
73
|
-
_defineProperty(this, "radiusSpeed", void 0);
|
|
74
|
-
_defineProperty(this, "tick", void 0);
|
|
75
|
-
_defineProperty(this, "isRunning", void 0);
|
|
76
111
|
this.props = Object.assign({}, LoaderCore.defaultProps, props);
|
|
77
112
|
this.canvas = document.createElement('canvas');
|
|
78
113
|
this.canvas.dataset.test = 'ring-loader';
|
|
@@ -210,40 +245,5 @@ class LoaderCore {
|
|
|
210
245
|
this.isRunning = false;
|
|
211
246
|
}
|
|
212
247
|
}
|
|
213
|
-
_defineProperty(LoaderCore, "defaultProps", {
|
|
214
|
-
size: 64,
|
|
215
|
-
stop: false,
|
|
216
|
-
deterministic: false,
|
|
217
|
-
colors: [{
|
|
218
|
-
r: 215,
|
|
219
|
-
g: 60,
|
|
220
|
-
b: 234
|
|
221
|
-
}, {
|
|
222
|
-
r: 145,
|
|
223
|
-
g: 53,
|
|
224
|
-
b: 224
|
|
225
|
-
}, {
|
|
226
|
-
r: 88,
|
|
227
|
-
g: 72,
|
|
228
|
-
b: 224
|
|
229
|
-
}, {
|
|
230
|
-
r: 37,
|
|
231
|
-
g: 183,
|
|
232
|
-
b: 255
|
|
233
|
-
}, {
|
|
234
|
-
r: 89,
|
|
235
|
-
g: 189,
|
|
236
|
-
b: 0
|
|
237
|
-
}, {
|
|
238
|
-
r: 251,
|
|
239
|
-
g: 172,
|
|
240
|
-
b: 2
|
|
241
|
-
}, {
|
|
242
|
-
r: 227,
|
|
243
|
-
g: 37,
|
|
244
|
-
b: 129
|
|
245
|
-
} //#E32581
|
|
246
|
-
]
|
|
247
|
-
});
|
|
248
248
|
|
|
249
249
|
export { LoaderCore as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -9,6 +9,11 @@ import { m as modules_e49a3529 } from '../_helpers/loader-inline.js';
|
|
|
9
9
|
* @name Loader Inline
|
|
10
10
|
*/
|
|
11
11
|
class LoaderInline extends PureComponent {
|
|
12
|
+
static propTypes = {
|
|
13
|
+
className: PropTypes.string,
|
|
14
|
+
'data-test': PropTypes.string,
|
|
15
|
+
children: PropTypes.node
|
|
16
|
+
};
|
|
12
17
|
render() {
|
|
13
18
|
const {
|
|
14
19
|
className,
|
|
@@ -26,10 +31,5 @@ class LoaderInline extends PureComponent {
|
|
|
26
31
|
}, children)) : loader;
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
|
-
_defineProperty(LoaderInline, "propTypes", {
|
|
30
|
-
className: PropTypes.string,
|
|
31
|
-
'data-test': PropTypes.string,
|
|
32
|
-
children: PropTypes.node
|
|
33
|
-
});
|
|
34
34
|
|
|
35
35
|
export { LoaderInline as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import angular from 'angular';
|
|
3
2
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
4
3
|
import LoaderCore from '../loader/loader__core.js';
|
|
@@ -10,6 +9,9 @@ import '../global/dom.js';
|
|
|
10
9
|
|
|
11
10
|
const angularModule = angular.module('Ring.loader', []);
|
|
12
11
|
class RgLoaderComponent extends RingAngularComponent {
|
|
12
|
+
static bindings = {
|
|
13
|
+
message: '@'
|
|
14
|
+
};
|
|
13
15
|
constructor() {
|
|
14
16
|
super(...arguments);
|
|
15
17
|
const {
|
|
@@ -26,9 +28,6 @@ class RgLoaderComponent extends RingAngularComponent {
|
|
|
26
28
|
this.loader.updateMessage(changes.message.currentValue);
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
|
-
_defineProperty(RgLoaderComponent, "bindings", {
|
|
30
|
-
message: '@'
|
|
31
|
-
});
|
|
32
31
|
RgLoaderComponent.$inject = ['$element'];
|
|
33
32
|
angularModule.component('rgLoader', RgLoaderComponent);
|
|
34
33
|
var loaderNg = angularModule.name;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -12,6 +12,11 @@ import '../global/dom.js';
|
|
|
12
12
|
* @name Loader Screen
|
|
13
13
|
*/
|
|
14
14
|
class LoaderScreen extends PureComponent {
|
|
15
|
+
static propTypes = {
|
|
16
|
+
className: PropTypes.string,
|
|
17
|
+
containerClassName: PropTypes.string,
|
|
18
|
+
message: PropTypes.string
|
|
19
|
+
};
|
|
15
20
|
render() {
|
|
16
21
|
const {
|
|
17
22
|
message,
|
|
@@ -31,10 +36,5 @@ class LoaderScreen extends PureComponent {
|
|
|
31
36
|
})));
|
|
32
37
|
}
|
|
33
38
|
}
|
|
34
|
-
_defineProperty(LoaderScreen, "propTypes", {
|
|
35
|
-
className: PropTypes.string,
|
|
36
|
-
containerClassName: PropTypes.string,
|
|
37
|
-
message: PropTypes.string
|
|
38
|
-
});
|
|
39
39
|
|
|
40
40
|
export { LoaderScreen as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
import loaderNg from '../loader-ng/loader-ng.js';
|
|
3
3
|
import { m as modules_122a82e9 } from '../_helpers/loader-screen.js';
|
|
4
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
4
|
import '../global/ring-angular-component.js';
|
|
6
5
|
import '../loader/loader__core.js';
|
|
7
6
|
import '../global/dom.js';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import React, { Component } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import Dialog from '../dialog/dialog.js';
|
|
@@ -6,6 +5,7 @@ import '../island/island.js';
|
|
|
6
5
|
import LoaderScreen from '../loader-screen/loader-screen.js';
|
|
7
6
|
import { HUB_AUTH_PAGE_OPENED } from '../auth/background-flow.js';
|
|
8
7
|
import ContentWrapper from '../island/content.js';
|
|
8
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import 'classnames';
|
|
11
11
|
import '@jetbrains/icons/close';
|
|
@@ -57,47 +57,29 @@ const DEFAULT_SHOW_FALLBACK_TIMEOUT = 5000;
|
|
|
57
57
|
* @name Login Dialog
|
|
58
58
|
*/
|
|
59
59
|
class LoginDialog extends Component {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if (data === HUB_AUTH_PAGE_LOGIN_STARTED) {
|
|
86
|
-
this.setState({
|
|
87
|
-
loading: true,
|
|
88
|
-
loggingIn: true
|
|
89
|
-
});
|
|
90
|
-
this.startFallbackCountdown();
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
if (data.message === HUB_AUTH_PAGE_LOGIN_DIMENSIONS) {
|
|
94
|
-
this.setState({
|
|
95
|
-
height: data.height,
|
|
96
|
-
width: data.width
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
60
|
+
static propTypes = {
|
|
61
|
+
show: PropTypes.bool,
|
|
62
|
+
className: PropTypes.string,
|
|
63
|
+
url: PropTypes.string,
|
|
64
|
+
loader: PropTypes.bool,
|
|
65
|
+
loadingMessage: PropTypes.string,
|
|
66
|
+
showFallbackTimeout: PropTypes.number,
|
|
67
|
+
renderFallbackLink: PropTypes.func,
|
|
68
|
+
onCancel: PropTypes.func.isRequired
|
|
69
|
+
};
|
|
70
|
+
static defaultProps = {
|
|
71
|
+
show: false,
|
|
72
|
+
url: 'about:blank',
|
|
73
|
+
renderFallbackLink: () => null,
|
|
74
|
+
showFallbackTimeout: DEFAULT_SHOW_FALLBACK_TIMEOUT
|
|
75
|
+
};
|
|
76
|
+
state = {
|
|
77
|
+
loading: true,
|
|
78
|
+
loggingIn: false,
|
|
79
|
+
showFallbackLink: false,
|
|
80
|
+
height: DEFAULT_HEIGHT,
|
|
81
|
+
width: DEFAULT_WIDTH
|
|
82
|
+
};
|
|
101
83
|
componentDidMount() {
|
|
102
84
|
window.addEventListener('message', this.onMessage);
|
|
103
85
|
this.startFallbackCountdown();
|
|
@@ -105,11 +87,42 @@ class LoginDialog extends Component {
|
|
|
105
87
|
componentWillUnmount() {
|
|
106
88
|
window.removeEventListener('message', this.onMessage);
|
|
107
89
|
}
|
|
90
|
+
showFallbackTimout;
|
|
108
91
|
startFallbackCountdown() {
|
|
109
92
|
this.showFallbackTimout = window.setTimeout(() => this.setState({
|
|
110
93
|
showFallbackLink: true
|
|
111
94
|
}), this.props.showFallbackTimeout);
|
|
112
95
|
}
|
|
96
|
+
onMessage = event => {
|
|
97
|
+
const {
|
|
98
|
+
data
|
|
99
|
+
} = event;
|
|
100
|
+
if (!data) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (data === HUB_AUTH_PAGE_OPENED) {
|
|
104
|
+
clearTimeout(this.showFallbackTimout);
|
|
105
|
+
this.setState({
|
|
106
|
+
loading: false,
|
|
107
|
+
loggingIn: false
|
|
108
|
+
});
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (data === HUB_AUTH_PAGE_LOGIN_STARTED) {
|
|
112
|
+
this.setState({
|
|
113
|
+
loading: true,
|
|
114
|
+
loggingIn: true
|
|
115
|
+
});
|
|
116
|
+
this.startFallbackCountdown();
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (data.message === HUB_AUTH_PAGE_LOGIN_DIMENSIONS) {
|
|
120
|
+
this.setState({
|
|
121
|
+
height: data.height,
|
|
122
|
+
width: data.width
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
};
|
|
113
126
|
render() {
|
|
114
127
|
const {
|
|
115
128
|
show,
|
|
@@ -153,21 +166,5 @@ class LoginDialog extends Component {
|
|
|
153
166
|
}, renderFallbackLink(loggingIn)));
|
|
154
167
|
}
|
|
155
168
|
}
|
|
156
|
-
_defineProperty(LoginDialog, "propTypes", {
|
|
157
|
-
show: PropTypes.bool,
|
|
158
|
-
className: PropTypes.string,
|
|
159
|
-
url: PropTypes.string,
|
|
160
|
-
loader: PropTypes.bool,
|
|
161
|
-
loadingMessage: PropTypes.string,
|
|
162
|
-
showFallbackTimeout: PropTypes.number,
|
|
163
|
-
renderFallbackLink: PropTypes.func,
|
|
164
|
-
onCancel: PropTypes.func.isRequired
|
|
165
|
-
});
|
|
166
|
-
_defineProperty(LoginDialog, "defaultProps", {
|
|
167
|
-
show: false,
|
|
168
|
-
url: 'about:blank',
|
|
169
|
-
renderFallbackLink: () => null,
|
|
170
|
-
showFallbackTimeout: DEFAULT_SHOW_FALLBACK_TIMEOUT
|
|
171
|
-
});
|
|
172
169
|
|
|
173
170
|
export { LoginDialog as default };
|
|
@@ -3,9 +3,9 @@ import { unmountComponentAtNode, render } from '../global/react-render-adapter.j
|
|
|
3
3
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
|
4
4
|
import LoginDialog from './login-dialog.js';
|
|
5
5
|
import 'react-dom';
|
|
6
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
6
|
import 'prop-types';
|
|
8
7
|
import '../dialog/dialog.js';
|
|
8
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import '@jetbrains/icons/close';
|
|
11
11
|
import '../island/island.js';
|
package/dist/markdown/code.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ReactMarkdown from 'react-markdown';
|
package/dist/message/message.js
CHANGED
|
@@ -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 classNames from 'classnames';
|
|
@@ -105,19 +105,27 @@ const getTailOffsets = offset => ({
|
|
|
105
105
|
* Displays a popup containing a message.
|
|
106
106
|
*/
|
|
107
107
|
class Message extends Component {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
108
|
+
static defaultProps = {
|
|
109
|
+
icon: gift,
|
|
110
|
+
directions: [Directions.TOP_RIGHT, Directions.TOP_LEFT, Directions.TOP_CENTER, Directions.BOTTOM_RIGHT, Directions.BOTTOM_LEFT, Directions.BOTTOM_CENTER, Directions.RIGHT_TOP, Directions.RIGHT_BOTTOM, Directions.RIGHT_CENTER, Directions.LEFT_TOP, Directions.LEFT_BOTTOM, Directions.LEFT_CENTER],
|
|
111
|
+
translations: {
|
|
112
|
+
gotIt: 'Got it',
|
|
113
|
+
dismiss: 'Dismiss'
|
|
114
|
+
},
|
|
115
|
+
theme: Theme.DARK
|
|
116
|
+
};
|
|
117
|
+
state = {};
|
|
118
|
+
static Directions = Directions;
|
|
119
|
+
static PopupProps = Popup.PopupProps;
|
|
120
|
+
_onDirectionChange = direction => this.setState({
|
|
121
|
+
direction
|
|
122
|
+
});
|
|
123
|
+
popup;
|
|
124
|
+
node;
|
|
125
|
+
popupRef = el => {
|
|
126
|
+
this.popup = el;
|
|
127
|
+
this.node = this.popup?.node;
|
|
128
|
+
};
|
|
121
129
|
getTailOffset() {
|
|
122
130
|
const DEFAULT_OFFSET = 32;
|
|
123
131
|
const {
|
|
@@ -192,17 +200,6 @@ class Message extends Component {
|
|
|
192
200
|
}, translations.dismiss))));
|
|
193
201
|
}
|
|
194
202
|
}
|
|
195
|
-
_defineProperty(Message, "defaultProps", {
|
|
196
|
-
icon: gift,
|
|
197
|
-
directions: [Directions.TOP_RIGHT, Directions.TOP_LEFT, Directions.TOP_CENTER, Directions.BOTTOM_RIGHT, Directions.BOTTOM_LEFT, Directions.BOTTOM_CENTER, Directions.RIGHT_TOP, Directions.RIGHT_BOTTOM, Directions.RIGHT_CENTER, Directions.LEFT_TOP, Directions.LEFT_BOTTOM, Directions.LEFT_CENTER],
|
|
198
|
-
translations: {
|
|
199
|
-
gotIt: 'Got it',
|
|
200
|
-
dismiss: 'Dismiss'
|
|
201
|
-
},
|
|
202
|
-
theme: Theme.DARK
|
|
203
|
-
});
|
|
204
|
-
_defineProperty(Message, "Directions", Directions);
|
|
205
|
-
_defineProperty(Message, "PopupProps", Popup.PopupProps);
|
|
206
203
|
Message.propTypes = {
|
|
207
204
|
children: PropTypes.node,
|
|
208
205
|
className: PropTypes.string,
|