@jetbrains/ring-ui 5.0.136 → 5.0.138
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/auth/auth__core.d.ts +1 -1
- package/components/auth/auth__core.js +21 -26
- package/components/auth-dialog/auth-dialog.js +3 -1
- package/components/button/button.css +7 -7
- package/components/button/button.d.ts +0 -1
- package/components/button/button.js +0 -1
- package/components/button-group/button-group.css +2 -2
- package/components/button-group/button-group.d.ts +0 -1
- package/components/button-group/button-group.js +0 -1
- package/components/button-group-ng/button-group-ng.js +0 -1
- package/components/button-ng/button-ng.js +0 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.d.ts +0 -1
- package/components/checkbox/checkbox.js +0 -1
- package/components/checkbox-ng/checkbox-ng.js +0 -1
- package/components/date-picker/date-input.js +3 -1
- package/components/editable-heading/editable-heading.css +7 -3
- package/components/editable-heading/editable-heading.js +29 -8
- package/components/global/react-render-adapter.js +16 -31
- package/components/header/profile.d.ts +54 -1
- package/components/header/profile.js +15 -11
- package/components/i18n/README.md +3 -0
- package/components/i18n/i18n-context.d.ts +54 -0
- package/components/i18n/i18n-context.js +3 -0
- package/components/i18n/i18n.d.ts +56 -0
- package/components/i18n/i18n.js +8 -0
- package/components/i18n/messages.json +53 -0
- package/components/input/input.d.ts +1 -4
- package/components/input/input.js +16 -16
- package/components/island/island.css +1 -1
- package/components/island/island.d.ts +0 -1
- package/components/island/island.js +0 -1
- package/components/island-ng/island-ng.js +0 -1
- package/components/link/link.css +1 -1
- package/components/link/link.d.ts +0 -1
- package/components/link/link.js +0 -1
- package/components/link-ng/link-ng.js +0 -1
- package/components/message/message.d.ts +1 -5
- package/components/message/message.js +15 -16
- package/components/pager/pager.d.ts +54 -8
- package/components/pager/pager.js +10 -12
- package/components/query-assist/query-assist.d.ts +1 -5
- package/components/query-assist/query-assist.js +30 -29
- package/components/select/select.css +2 -2
- package/components/select/select.d.ts +2 -5
- package/components/select/select.js +14 -12
- package/components/select/select__filter.d.ts +0 -1
- package/components/select/select__filter.js +4 -2
- package/components/tabs/dumb-tabs.d.ts +0 -1
- package/components/tabs/dumb-tabs.js +0 -1
- package/components/tabs/tabs.css +1 -1
- package/components/tabs-ng/tabs-ng.js +0 -1
- package/components/tag/tag.css +3 -3
- package/components/tag/tag.d.ts +0 -1
- package/components/tag/tag.js +0 -1
- package/components/user-agreement/user-agreement.d.ts +1 -9
- package/components/user-agreement/user-agreement.js +31 -30
- package/components/user-card/card.d.ts +65 -13
- package/components/user-card/card.js +19 -22
- package/dist/_helpers/card.js +19 -28
- package/dist/_helpers/select__filter.js +14 -10
- package/dist/alert/alert.js +0 -1
- package/dist/alert-service/alert-service.js +0 -1
- package/dist/auth/auth.js +1 -1
- package/dist/auth/auth__core.d.ts +1 -1
- package/dist/auth/auth__core.js +19 -28
- package/dist/auth/down-notification.js +0 -1
- package/dist/auth/iframe-flow.js +0 -1
- package/dist/auth/landing.js +1 -1
- package/dist/auth/storage.js +0 -1
- package/dist/auth-dialog/auth-dialog.js +1 -2
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -1
- package/dist/auth-ng/auth-ng.js +1 -1
- package/dist/avatar-editor-ng/avatar-editor-ng.js +0 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
- package/dist/button/button.d.ts +0 -1
- package/dist/button/button.js +0 -1
- package/dist/button-group/button-group.d.ts +0 -1
- package/dist/button-group/button-group.js +0 -1
- package/dist/button-group-ng/button-group-ng.js +0 -1
- package/dist/button-ng/button-ng.js +0 -1
- package/dist/checkbox/checkbox.d.ts +0 -1
- package/dist/checkbox/checkbox.js +0 -1
- package/dist/checkbox-ng/checkbox-ng.js +0 -1
- package/dist/clipboard/clipboard.js +0 -1
- package/dist/confirm/confirm.js +0 -1
- package/dist/confirm-ng/confirm-ng.js +0 -1
- package/dist/confirm-service/confirm-service.js +0 -1
- package/dist/data-list/data-list.js +0 -1
- package/dist/data-list/data-list.mock.js +0 -1
- package/dist/data-list/item.js +0 -1
- package/dist/data-list/title.js +0 -1
- package/dist/data-list-ng/data-list-ng.js +0 -1
- package/dist/date-picker/date-input.js +3 -2
- package/dist/date-picker/date-picker.js +2 -1
- package/dist/date-picker/date-popup.js +2 -1
- package/dist/dialog/dialog.js +0 -1
- package/dist/dialog-ng/dialog-ng.js +0 -1
- package/dist/dropdown/anchor.js +0 -1
- package/dist/dropdown/dropdown.js +0 -1
- package/dist/dropdown-menu/dropdown-menu.js +0 -1
- package/dist/editable-heading/editable-heading.js +32 -10
- package/dist/error-message-ng/error-message-ng.js +0 -1
- package/dist/footer/footer.js +0 -1
- package/dist/footer-ng/footer-ng.js +0 -1
- package/dist/global/react-render-adapter.js +0 -2
- package/dist/header/header.js +2 -1
- package/dist/header/profile.d.ts +54 -1
- package/dist/header/profile.js +22 -16
- package/dist/header/services-link.js +0 -1
- package/dist/header/services.js +0 -1
- package/dist/header/smart-profile.js +2 -1
- package/dist/header/smart-services.js +1 -1
- package/dist/header/tray-icon.js +0 -1
- package/dist/i18n/i18n-context.d.ts +54 -0
- package/dist/i18n/i18n-context.js +6 -0
- package/dist/i18n/i18n.d.ts +56 -0
- package/dist/i18n/i18n.js +114 -0
- package/dist/input/input.d.ts +1 -4
- package/dist/input/input.js +6 -8
- package/dist/input-ng/input-ng.js +0 -1
- package/dist/island/island.d.ts +0 -1
- package/dist/island/island.js +0 -1
- package/dist/island-ng/island-ng.js +0 -1
- package/dist/link/link.d.ts +0 -1
- package/dist/link/link.js +0 -1
- package/dist/link-ng/link-ng.js +0 -1
- package/dist/list/list.js +0 -1
- package/dist/list/list__item.js +0 -1
- package/dist/list/list__link.js +0 -1
- package/dist/list/list__users-groups-source.js +0 -1
- package/dist/login-dialog/login-dialog.js +0 -1
- package/dist/login-dialog/service.js +0 -1
- package/dist/markdown/link.js +0 -1
- package/dist/markdown/markdown.js +0 -1
- package/dist/message/message.d.ts +1 -5
- package/dist/message/message.js +5 -8
- package/dist/pager/pager.d.ts +54 -8
- package/dist/pager/pager.js +19 -16
- package/dist/pager-ng/pager-ng.js +2 -1
- package/dist/permissions-ng/permissions-ng.js +1 -1
- package/dist/popup-menu/popup-menu.js +0 -1
- package/dist/promised-click-ng/promised-click-ng.js +0 -1
- package/dist/query-assist/query-assist.d.ts +1 -5
- package/dist/query-assist/query-assist.js +22 -20
- package/dist/query-assist/query-assist__suggestions.js +0 -1
- package/dist/query-assist-ng/query-assist-ng.js +2 -1
- package/dist/save-field-ng/save-field-ng.js +0 -1
- package/dist/select/select.d.ts +2 -5
- package/dist/select/select.js +49 -46
- package/dist/select/select__filter.d.ts +0 -1
- package/dist/select/select__filter.js +2 -1
- package/dist/select/select__popup.js +2 -1
- package/dist/select-ng/select-ng.js +2 -1
- package/dist/select-ng/select-ng__lazy.js +2 -1
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -1
- package/dist/sidebar-ng/sidebar-ng.js +0 -1
- package/dist/storage/storage.js +0 -1
- package/dist/storage/storage__local.js +0 -1
- package/dist/style.css +1 -1
- package/dist/table/header.js +0 -1
- package/dist/table/row-with-focus-sensor.js +0 -1
- package/dist/table/row.js +0 -1
- package/dist/table/smart-table.js +0 -1
- package/dist/table/table.js +0 -1
- package/dist/table-legacy-ng/table-legacy-ng.js +2 -1
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +2 -1
- package/dist/table-ng/smart-table-ng.js +0 -1
- package/dist/table-ng/table-ng.js +0 -1
- package/dist/tabs/collapsible-more.js +0 -1
- package/dist/tabs/collapsible-tab.js +0 -1
- package/dist/tabs/collapsible-tabs.js +0 -1
- package/dist/tabs/dumb-tabs.d.ts +0 -1
- package/dist/tabs/dumb-tabs.js +0 -1
- package/dist/tabs/smart-tabs.js +0 -1
- package/dist/tabs/tab-link.js +0 -1
- package/dist/tabs/tabs.js +0 -1
- package/dist/tabs-ng/tabs-ng.js +0 -1
- package/dist/tag/tag.d.ts +0 -1
- package/dist/tag/tag.js +0 -1
- package/dist/tags-input/tags-input.js +2 -1
- package/dist/tags-input-ng/tags-input-ng.js +2 -1
- package/dist/tags-list/tags-list.js +0 -1
- package/dist/user-agreement/service.js +2 -1
- package/dist/user-agreement/user-agreement.d.ts +1 -9
- package/dist/user-agreement/user-agreement.js +11 -18
- package/dist/user-card/card.d.ts +65 -13
- package/dist/user-card/card.js +2 -1
- package/dist/user-card/smart-user-card-tooltip.js +2 -1
- package/dist/user-card/tooltip.js +2 -1
- package/dist/user-card/user-card.js +2 -1
- package/dist/user-card-ng/user-card-ng.js +2 -1
- package/package.json +37 -38
package/dist/table/header.js
CHANGED
|
@@ -7,7 +7,6 @@ import Checkbox from '../checkbox/checkbox.js';
|
|
|
7
7
|
import getUID from '../global/get-uid.js';
|
|
8
8
|
import { m as modules_1db4bbca } from '../_helpers/table.js';
|
|
9
9
|
import HeaderCell from './header-cell.js';
|
|
10
|
-
import 'focus-visible';
|
|
11
10
|
import '@jetbrains/icons/checkmark-14px';
|
|
12
11
|
import '@jetbrains/icons/remove-14px';
|
|
13
12
|
import '../icon/icon.js';
|
|
@@ -10,7 +10,6 @@ import '@jetbrains/icons/chevron-right';
|
|
|
10
10
|
import '@jetbrains/icons/chevron-down';
|
|
11
11
|
import '@jetbrains/icons/drag';
|
|
12
12
|
import '../checkbox/checkbox.js';
|
|
13
|
-
import 'focus-visible';
|
|
14
13
|
import '@jetbrains/icons/checkmark-14px';
|
|
15
14
|
import '@jetbrains/icons/remove-14px';
|
|
16
15
|
import '../icon/icon.js';
|
package/dist/table/row.js
CHANGED
|
@@ -13,7 +13,6 @@ import getUID from '../global/get-uid.js';
|
|
|
13
13
|
import composeRefs from '../global/composeRefs.js';
|
|
14
14
|
import Cell from './cell.js';
|
|
15
15
|
import { m as modules_1db4bbca } from '../_helpers/table.js';
|
|
16
|
-
import 'focus-visible';
|
|
17
16
|
import '@jetbrains/icons/checkmark-14px';
|
|
18
17
|
import '@jetbrains/icons/remove-14px';
|
|
19
18
|
import '../icon/icon.js';
|
package/dist/table/table.js
CHANGED
|
@@ -24,7 +24,6 @@ import '../loader/loader__core.js';
|
|
|
24
24
|
import '../global/dom.js';
|
|
25
25
|
import 'react-waypoint';
|
|
26
26
|
import '../checkbox/checkbox.js';
|
|
27
|
-
import 'focus-visible';
|
|
28
27
|
import '@jetbrains/icons/checkmark-14px';
|
|
29
28
|
import '@jetbrains/icons/remove-14px';
|
|
30
29
|
import '../icon/icon.js';
|
|
@@ -8,7 +8,6 @@ import SelectionNavigateActions from './table-legacy-ng__selection-navigate-acti
|
|
|
8
8
|
import TableToolbar from './table-legacy-ng__toolbar.js';
|
|
9
9
|
import TablePager from './table-legacy-ng__pager.js';
|
|
10
10
|
import 'element-resize-detector';
|
|
11
|
-
import 'focus-visible';
|
|
12
11
|
import '@jetbrains/icons/checkmark-14px';
|
|
13
12
|
import '../icon-ng/icon-ng.js';
|
|
14
13
|
import '../icon/icon__constants.js';
|
|
@@ -89,6 +88,8 @@ import '../list/list__separator.js';
|
|
|
89
88
|
import '../list/list__hint.js';
|
|
90
89
|
import '../list/consts.js';
|
|
91
90
|
import '../input/input.js';
|
|
91
|
+
import '../i18n/i18n-context.js';
|
|
92
|
+
import '../i18n/i18n.js';
|
|
92
93
|
import '../_helpers/input.js';
|
|
93
94
|
import '../input/input-label.js';
|
|
94
95
|
import '../global/rerender-hoc.js';
|
|
@@ -14,7 +14,6 @@ import 'classnames';
|
|
|
14
14
|
import '@jetbrains/icons/chevron-left';
|
|
15
15
|
import '@jetbrains/icons/chevron-right';
|
|
16
16
|
import '../button/button.js';
|
|
17
|
-
import 'focus-visible';
|
|
18
17
|
import '@jetbrains/icons/chevron-10px';
|
|
19
18
|
import '../icon/icon.js';
|
|
20
19
|
import 'util-deprecate';
|
|
@@ -79,6 +78,8 @@ import '../list/list__separator.js';
|
|
|
79
78
|
import '../list/list__hint.js';
|
|
80
79
|
import '../list/consts.js';
|
|
81
80
|
import '../input/input.js';
|
|
81
|
+
import '../i18n/i18n-context.js';
|
|
82
|
+
import '../i18n/i18n.js';
|
|
82
83
|
import '../_helpers/input.js';
|
|
83
84
|
import '../input/input-label.js';
|
|
84
85
|
import '../global/rerender-hoc.js';
|
|
@@ -28,7 +28,6 @@ import '../table/selection.js';
|
|
|
28
28
|
import '../table/header.js';
|
|
29
29
|
import 'react-waypoint';
|
|
30
30
|
import '../checkbox/checkbox.js';
|
|
31
|
-
import 'focus-visible';
|
|
32
31
|
import '@jetbrains/icons/checkmark-14px';
|
|
33
32
|
import '@jetbrains/icons/remove-14px';
|
|
34
33
|
import '../icon/icon.js';
|
|
@@ -27,7 +27,6 @@ import '../table/selection.js';
|
|
|
27
27
|
import '../table/header.js';
|
|
28
28
|
import 'react-waypoint';
|
|
29
29
|
import '../checkbox/checkbox.js';
|
|
30
|
-
import 'focus-visible';
|
|
31
30
|
import '@jetbrains/icons/checkmark-14px';
|
|
32
31
|
import '@jetbrains/icons/remove-14px';
|
|
33
32
|
import '../icon/icon.js';
|
|
@@ -41,7 +41,6 @@ import '../avatar/avatar.js';
|
|
|
41
41
|
import '../global/url.js';
|
|
42
42
|
import '../avatar/fallback-avatar.js';
|
|
43
43
|
import '../checkbox/checkbox.js';
|
|
44
|
-
import 'focus-visible';
|
|
45
44
|
import '@jetbrains/icons/checkmark-14px';
|
|
46
45
|
import '@jetbrains/icons/remove-14px';
|
|
47
46
|
import '../global/prop-types.js';
|
|
@@ -6,7 +6,6 @@ import { m as modules_02138f4a } from '../_helpers/tabs.js';
|
|
|
6
6
|
import TabLink from './tab-link.js';
|
|
7
7
|
import { CustomItem } from './custom-item.js';
|
|
8
8
|
import '../link/link.js';
|
|
9
|
-
import 'focus-visible';
|
|
10
9
|
import '../global/memoize.js';
|
|
11
10
|
import '../global/data-tests.js';
|
|
12
11
|
import '../link/clickableLink.js';
|
|
@@ -34,7 +34,6 @@ import '../global/memoize.js';
|
|
|
34
34
|
import '../global/create-stateful-context.js';
|
|
35
35
|
import '../list/list__link.js';
|
|
36
36
|
import '../link/link.js';
|
|
37
|
-
import 'focus-visible';
|
|
38
37
|
import '../link/clickableLink.js';
|
|
39
38
|
import '../_helpers/link.js';
|
|
40
39
|
import '../_helpers/list.js';
|
package/dist/tabs/dumb-tabs.d.ts
CHANGED
package/dist/tabs/dumb-tabs.js
CHANGED
package/dist/tabs/smart-tabs.js
CHANGED
|
@@ -3,7 +3,6 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
5
5
|
import Tabs from './dumb-tabs.js';
|
|
6
|
-
import 'focus-visible';
|
|
7
6
|
import 'classnames';
|
|
8
7
|
import '../global/memoize.js';
|
|
9
8
|
import '../_helpers/tabs.js';
|
package/dist/tabs/tab-link.js
CHANGED
|
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Link from '../link/link.js';
|
|
4
4
|
import { m as modules_02138f4a } from '../_helpers/tabs.js';
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
|
-
import 'focus-visible';
|
|
7
6
|
import 'classnames';
|
|
8
7
|
import '../global/memoize.js';
|
|
9
8
|
import '../global/data-tests.js';
|
package/dist/tabs/tabs.js
CHANGED
|
@@ -4,7 +4,6 @@ export { default as SmartTabs } from './smart-tabs.js';
|
|
|
4
4
|
export { default as Tab } from './tab.js';
|
|
5
5
|
import 'prop-types';
|
|
6
6
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
|
-
import 'focus-visible';
|
|
8
7
|
import 'react';
|
|
9
8
|
import 'classnames';
|
|
10
9
|
import '../global/memoize.js';
|
package/dist/tabs-ng/tabs-ng.js
CHANGED
package/dist/tag/tag.d.ts
CHANGED
package/dist/tag/tag.js
CHANGED
|
@@ -12,7 +12,6 @@ import { ControlsHeightContext } from '../global/controls-height.js';
|
|
|
12
12
|
import getUID from '../global/get-uid.js';
|
|
13
13
|
import { m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
14
14
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
15
|
-
import 'focus-visible';
|
|
16
15
|
import '@jetbrains/icons/chevron-down';
|
|
17
16
|
import '@jetbrains/icons/close-12px';
|
|
18
17
|
import 'deep-equal';
|
|
@@ -70,6 +69,8 @@ import '../list/list__hint.js';
|
|
|
70
69
|
import '../list/consts.js';
|
|
71
70
|
import '../input/input-label.js';
|
|
72
71
|
import '../global/fuzzy-highlight.js';
|
|
72
|
+
import '../i18n/i18n-context.js';
|
|
73
|
+
import '../i18n/i18n.js';
|
|
73
74
|
import '../select/select__popup.js';
|
|
74
75
|
import '@jetbrains/icons/search';
|
|
75
76
|
import '../loader-inline/loader-inline.js';
|
|
@@ -11,7 +11,6 @@ import 'classnames';
|
|
|
11
11
|
import '../global/get-event-key.js';
|
|
12
12
|
import '../select/select.js';
|
|
13
13
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
14
|
-
import 'focus-visible';
|
|
15
14
|
import '@jetbrains/icons/chevron-down';
|
|
16
15
|
import '@jetbrains/icons/close-12px';
|
|
17
16
|
import 'deep-equal';
|
|
@@ -70,6 +69,8 @@ import '../list/list__separator.js';
|
|
|
70
69
|
import '../list/list__hint.js';
|
|
71
70
|
import '../list/consts.js';
|
|
72
71
|
import '../input/input.js';
|
|
72
|
+
import '../i18n/i18n-context.js';
|
|
73
|
+
import '../i18n/i18n.js';
|
|
73
74
|
import '../_helpers/input.js';
|
|
74
75
|
import '../input/input-label.js';
|
|
75
76
|
import '../global/rerender-hoc.js';
|
|
@@ -3,7 +3,6 @@ import React, { Component } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Tag from '../tag/tag.js';
|
|
6
|
-
import 'focus-visible';
|
|
7
6
|
import '@jetbrains/icons/close-12px';
|
|
8
7
|
import '../icon/icon.js';
|
|
9
8
|
import 'util-deprecate';
|
|
@@ -16,7 +16,6 @@ import '../global/get-uid.js';
|
|
|
16
16
|
import '../alert/container.js';
|
|
17
17
|
import 'classnames';
|
|
18
18
|
import 'prop-types';
|
|
19
|
-
import 'focus-visible';
|
|
20
19
|
import '../global/memoize.js';
|
|
21
20
|
import '../global/data-tests.js';
|
|
22
21
|
import '../link/clickableLink.js';
|
|
@@ -73,6 +72,8 @@ import 'highlight.js/lib/core';
|
|
|
73
72
|
import '../markdown/link.js';
|
|
74
73
|
import '../markdown/heading.js';
|
|
75
74
|
import '../heading/heading.js';
|
|
75
|
+
import '../i18n/i18n-context.js';
|
|
76
|
+
import '../i18n/i18n.js';
|
|
76
77
|
|
|
77
78
|
const GUEST_SESSION_KEY = 'end-user-agreement-consent';
|
|
78
79
|
const ONE_HOUR = 60 * 60 * 1000; // eslint-disable-line @typescript-eslint/no-magic-numbers
|
|
@@ -14,7 +14,7 @@ export interface UserAgreementTranslations {
|
|
|
14
14
|
}
|
|
15
15
|
export interface UserAgreementProps {
|
|
16
16
|
text: string;
|
|
17
|
-
translations
|
|
17
|
+
translations?: UserAgreementTranslations | null | undefined;
|
|
18
18
|
show: boolean;
|
|
19
19
|
onAccept: () => void;
|
|
20
20
|
onDecline: () => void;
|
|
@@ -46,14 +46,6 @@ export default class UserAgreement extends PureComponent<UserAgreementProps> {
|
|
|
46
46
|
className: PropTypes.Requireable<string>;
|
|
47
47
|
};
|
|
48
48
|
static defaultProps: {
|
|
49
|
-
translations: {
|
|
50
|
-
userAgreement: string;
|
|
51
|
-
accept: string;
|
|
52
|
-
decline: string;
|
|
53
|
-
close: string;
|
|
54
|
-
scrollToAccept: string;
|
|
55
|
-
remindLater: string;
|
|
56
|
-
};
|
|
57
49
|
show: boolean;
|
|
58
50
|
onAccept: typeof noop;
|
|
59
51
|
onDecline: typeof noop;
|
|
@@ -6,6 +6,7 @@ import '../island/island.js';
|
|
|
6
6
|
import Panel from '../panel/panel.js';
|
|
7
7
|
import { Button } from '../button/button.js';
|
|
8
8
|
import Markdown from '../markdown/markdown.js';
|
|
9
|
+
import { I18nContext } from '../i18n/i18n-context.js';
|
|
9
10
|
import HeaderWrapper from '../island/header.js';
|
|
10
11
|
import ContentWrapper from '../island/content.js';
|
|
11
12
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -23,7 +24,6 @@ import '../global/dom.js';
|
|
|
23
24
|
import '../popup/popup.target.js';
|
|
24
25
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
25
26
|
import 'scrollbar-width';
|
|
26
|
-
import 'focus-visible';
|
|
27
27
|
import '../island/adaptive-island-hoc.js';
|
|
28
28
|
import '../global/linear-function.js';
|
|
29
29
|
import '../_helpers/island.js';
|
|
@@ -51,6 +51,7 @@ import '../link/link.js';
|
|
|
51
51
|
import '../_helpers/link.js';
|
|
52
52
|
import '../markdown/heading.js';
|
|
53
53
|
import '../heading/heading.js';
|
|
54
|
+
import '../i18n/i18n.js';
|
|
54
55
|
import 'element-resize-detector';
|
|
55
56
|
import '../global/schedule-raf.js';
|
|
56
57
|
|
|
@@ -80,14 +81,6 @@ class UserAgreement extends PureComponent {
|
|
|
80
81
|
className: PropTypes.string
|
|
81
82
|
};
|
|
82
83
|
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
84
|
show: false,
|
|
92
85
|
onAccept: noop,
|
|
93
86
|
onDecline: noop,
|
|
@@ -114,39 +107,39 @@ class UserAgreement extends PureComponent {
|
|
|
114
107
|
preview,
|
|
115
108
|
className
|
|
116
109
|
} = this.props;
|
|
117
|
-
return /*#__PURE__*/React.createElement(Dialog, {
|
|
118
|
-
label: translations.userAgreement,
|
|
110
|
+
return /*#__PURE__*/React.createElement(I18nContext.Consumer, null, messages => /*#__PURE__*/React.createElement(Dialog, {
|
|
111
|
+
label: (translations !== null && translations !== void 0 ? translations : messages).userAgreement,
|
|
119
112
|
show: show,
|
|
120
113
|
className: classNames(modules_f5ed85cf.agreementDialog, className),
|
|
121
114
|
contentClassName: modules_f5ed85cf.dialogContent,
|
|
122
115
|
trapFocus: true,
|
|
123
116
|
autoFocusFirst: false,
|
|
124
117
|
"data-test": "user-agreement"
|
|
125
|
-
}, /*#__PURE__*/React.createElement(HeaderWrapper, null, translations.userAgreement), /*#__PURE__*/React.createElement(ContentWrapper, {
|
|
118
|
+
}, /*#__PURE__*/React.createElement(HeaderWrapper, null, (translations !== null && translations !== void 0 ? translations : messages).userAgreement), /*#__PURE__*/React.createElement(ContentWrapper, {
|
|
126
119
|
fade: true,
|
|
127
120
|
onScrollToBottom: this.onScrollToBottom
|
|
128
121
|
}, /*#__PURE__*/React.createElement(Markdown, null, text)), !preview && /*#__PURE__*/React.createElement(Panel, null, onRemindLater && !scrolledDown && /*#__PURE__*/React.createElement("div", {
|
|
129
122
|
className: modules_f5ed85cf.suggestion
|
|
130
|
-
}, translations.scrollToAccept), /*#__PURE__*/React.createElement(Button, {
|
|
123
|
+
}, (translations !== null && translations !== void 0 ? translations : messages).scrollToAccept), /*#__PURE__*/React.createElement(Button, {
|
|
131
124
|
primary: true,
|
|
132
125
|
disabled: !scrolledDown,
|
|
133
126
|
onClick: onAccept,
|
|
134
127
|
"data-test": "accept"
|
|
135
|
-
}, translations.accept), /*#__PURE__*/React.createElement(Button, {
|
|
128
|
+
}, (translations !== null && translations !== void 0 ? translations : messages).accept), /*#__PURE__*/React.createElement(Button, {
|
|
136
129
|
onClick: onDecline,
|
|
137
130
|
autoFocus: true,
|
|
138
131
|
"data-test": "decline"
|
|
139
|
-
}, translations.decline), !onRemindLater && !scrolledDown && /*#__PURE__*/React.createElement("span", {
|
|
132
|
+
}, (translations !== null && translations !== void 0 ? translations : messages).decline), !onRemindLater && !scrolledDown && /*#__PURE__*/React.createElement("span", {
|
|
140
133
|
className: modules_f5ed85cf.suggestion
|
|
141
|
-
}, translations.scrollToAccept), onRemindLater && /*#__PURE__*/React.createElement(Button, {
|
|
134
|
+
}, (translations !== null && translations !== void 0 ? translations : messages).scrollToAccept), onRemindLater && /*#__PURE__*/React.createElement(Button, {
|
|
142
135
|
className: modules_f5ed85cf.remindLaterButton,
|
|
143
136
|
onClick: onRemindLater,
|
|
144
137
|
"data-test": "later"
|
|
145
|
-
}, translations.remindLater)), preview && /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Button, {
|
|
138
|
+
}, (translations !== null && translations !== void 0 ? translations : messages).remindLater)), preview && /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Button, {
|
|
146
139
|
onClick: onClose,
|
|
147
140
|
autoFocus: true,
|
|
148
141
|
"data-test": "close"
|
|
149
|
-
}, translations.close)));
|
|
142
|
+
}, (translations !== null && translations !== void 0 ? translations : messages).close))));
|
|
150
143
|
}
|
|
151
144
|
}
|
|
152
145
|
|
package/dist/user-card/card.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, PureComponent, ReactElement } from 'react';
|
|
1
|
+
import React, { HTMLAttributes, PureComponent, ReactElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface UserCardUser {
|
|
4
4
|
name: string;
|
|
@@ -22,7 +22,8 @@ export interface UserCardWording {
|
|
|
22
22
|
}
|
|
23
23
|
export interface UserCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
24
|
user: UserCardUser;
|
|
25
|
-
wording
|
|
25
|
+
wording?: UserCardWording | null | undefined;
|
|
26
|
+
translations?: UserCardWording | null | undefined;
|
|
26
27
|
info?: ReactElement | readonly ReactElement[] | string;
|
|
27
28
|
avatarInfo?: ReactElement | readonly ReactElement[] | string;
|
|
28
29
|
'data-test'?: string | null | undefined;
|
|
@@ -52,18 +53,69 @@ export default class UserCard extends PureComponent<UserCardProps> {
|
|
|
52
53
|
copingToClipboardError: PropTypes.Requireable<string>;
|
|
53
54
|
unverified: PropTypes.Requireable<string>;
|
|
54
55
|
}>>;
|
|
56
|
+
translations: PropTypes.Requireable<PropTypes.InferProps<{
|
|
57
|
+
banned: PropTypes.Validator<string>;
|
|
58
|
+
online: PropTypes.Validator<string>;
|
|
59
|
+
offline: PropTypes.Validator<string>;
|
|
60
|
+
copyToClipboard: PropTypes.Requireable<string>;
|
|
61
|
+
copiedToClipboard: PropTypes.Requireable<string>;
|
|
62
|
+
copingToClipboardError: PropTypes.Requireable<string>;
|
|
63
|
+
unverified: PropTypes.Requireable<string>;
|
|
64
|
+
}>>;
|
|
55
65
|
};
|
|
56
|
-
static
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
static contextType: React.Context<{
|
|
67
|
+
login: string;
|
|
68
|
+
logout: string;
|
|
69
|
+
loginTo: string;
|
|
70
|
+
ok: string;
|
|
71
|
+
cancel: string;
|
|
72
|
+
tryAgainLabel: string;
|
|
73
|
+
postpone: string;
|
|
74
|
+
youHaveLoggedInAs: string;
|
|
75
|
+
applyChange: string;
|
|
76
|
+
backendIsNotAvailable: string;
|
|
77
|
+
checkAgain: string;
|
|
78
|
+
nothingHappensLink: string;
|
|
79
|
+
errorMessage: string;
|
|
80
|
+
applyChangedUser: string;
|
|
81
|
+
profile: string;
|
|
82
|
+
switchUser: string;
|
|
83
|
+
addFirstDate: string;
|
|
84
|
+
addSecondDate: string;
|
|
85
|
+
addTime: string;
|
|
86
|
+
selectName: string;
|
|
87
|
+
setDate: string;
|
|
88
|
+
setDateTime: string;
|
|
89
|
+
setPeriod: string;
|
|
90
|
+
clear: string;
|
|
91
|
+
gotIt: string;
|
|
92
|
+
dismiss: string;
|
|
93
|
+
perPage: string;
|
|
94
|
+
firstPage: string;
|
|
95
|
+
lastPage: string;
|
|
96
|
+
nextPage: string;
|
|
97
|
+
previousPage: string;
|
|
98
|
+
searchTitle: string;
|
|
99
|
+
clearTitle: string;
|
|
100
|
+
userAgreement: string;
|
|
101
|
+
accept: string;
|
|
102
|
+
decline: string;
|
|
103
|
+
close: string;
|
|
104
|
+
scrollToAccept: string;
|
|
105
|
+
remindLater: string;
|
|
106
|
+
filterItems: string;
|
|
107
|
+
selectOption: string;
|
|
108
|
+
progress: string;
|
|
109
|
+
loading: string;
|
|
110
|
+
noOptionsFound: string;
|
|
111
|
+
banned: string;
|
|
112
|
+
online: string;
|
|
113
|
+
offline: string;
|
|
114
|
+
copyToClipboard: string;
|
|
115
|
+
copiedToClipboard: string;
|
|
116
|
+
copingToClipboardError: string;
|
|
117
|
+
unverified: string;
|
|
118
|
+
}>;
|
|
67
119
|
copyEmail: () => void;
|
|
68
120
|
render(): JSX.Element;
|
|
69
121
|
}
|
package/dist/user-card/card.js
CHANGED
|
@@ -8,13 +8,13 @@ import '../link/link.js';
|
|
|
8
8
|
import '../clipboard/clipboard.js';
|
|
9
9
|
import '../_helpers/badge.js';
|
|
10
10
|
import '../icon/icon.js';
|
|
11
|
+
import '../i18n/i18n-context.js';
|
|
11
12
|
export { U as default } from '../_helpers/card.js';
|
|
12
13
|
import '../icon/icon__constants.js';
|
|
13
14
|
import '../global/url.js';
|
|
14
15
|
import '../global/dom.js';
|
|
15
16
|
import '../avatar/fallback-avatar.js';
|
|
16
17
|
import '../global/get-uid.js';
|
|
17
|
-
import 'focus-visible';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
19
|
import '../global/data-tests.js';
|
|
20
20
|
import '../link/clickableLink.js';
|
|
@@ -50,3 +50,4 @@ import '../popup/position.js';
|
|
|
50
50
|
import '../popup/popup.consts.js';
|
|
51
51
|
import '../alert/container.js';
|
|
52
52
|
import '../clipboard/clipboard-fallback.js';
|
|
53
|
+
import '../i18n/i18n.js';
|
|
@@ -18,7 +18,6 @@ import '../_helpers/icon.js';
|
|
|
18
18
|
import '../icon/icon__svg.js';
|
|
19
19
|
import '../global/memoize.js';
|
|
20
20
|
import '../button/button.js';
|
|
21
|
-
import 'focus-visible';
|
|
22
21
|
import '../link/clickableLink.js';
|
|
23
22
|
import '../global/controls-height.js';
|
|
24
23
|
import '../_helpers/button__classes.js';
|
|
@@ -54,6 +53,8 @@ import '../_helpers/theme.js';
|
|
|
54
53
|
import '../alert/container.js';
|
|
55
54
|
import '../clipboard/clipboard-fallback.js';
|
|
56
55
|
import '../_helpers/badge.js';
|
|
56
|
+
import '../i18n/i18n-context.js';
|
|
57
|
+
import '../i18n/i18n.js';
|
|
57
58
|
|
|
58
59
|
class SmartUserCardTooltip extends Component {
|
|
59
60
|
static propTypes = {
|
|
@@ -16,7 +16,6 @@ import '../_helpers/icon.js';
|
|
|
16
16
|
import '../icon/icon__svg.js';
|
|
17
17
|
import '../global/memoize.js';
|
|
18
18
|
import '../button/button.js';
|
|
19
|
-
import 'focus-visible';
|
|
20
19
|
import '../link/clickableLink.js';
|
|
21
20
|
import '../global/controls-height.js';
|
|
22
21
|
import '../_helpers/button__classes.js';
|
|
@@ -53,6 +52,8 @@ import '../_helpers/theme.js';
|
|
|
53
52
|
import '../alert/container.js';
|
|
54
53
|
import '../clipboard/clipboard-fallback.js';
|
|
55
54
|
import '../_helpers/badge.js';
|
|
55
|
+
import '../i18n/i18n-context.js';
|
|
56
|
+
import '../i18n/i18n.js';
|
|
56
57
|
|
|
57
58
|
const DEFAULT_TIMEOUT = 300;
|
|
58
59
|
class UserCardTooltip extends Component {
|
|
@@ -12,7 +12,6 @@ import '../global/dom.js';
|
|
|
12
12
|
import '../avatar/fallback-avatar.js';
|
|
13
13
|
import '../global/get-uid.js';
|
|
14
14
|
import '../link/link.js';
|
|
15
|
-
import 'focus-visible';
|
|
16
15
|
import '../global/memoize.js';
|
|
17
16
|
import '../global/data-tests.js';
|
|
18
17
|
import '../link/clickableLink.js';
|
|
@@ -52,6 +51,8 @@ import '../popup/popup.consts.js';
|
|
|
52
51
|
import '../alert/container.js';
|
|
53
52
|
import '../clipboard/clipboard-fallback.js';
|
|
54
53
|
import '../_helpers/badge.js';
|
|
54
|
+
import '../i18n/i18n-context.js';
|
|
55
|
+
import '../i18n/i18n.js';
|
|
55
56
|
import '../dropdown/dropdown.js';
|
|
56
57
|
import '../global/typescript-utils.js';
|
|
57
58
|
import '../_helpers/anchor.js';
|
|
@@ -21,7 +21,6 @@ import '../global/dom.js';
|
|
|
21
21
|
import '../avatar/fallback-avatar.js';
|
|
22
22
|
import '../global/get-uid.js';
|
|
23
23
|
import '../link/link.js';
|
|
24
|
-
import 'focus-visible';
|
|
25
24
|
import '../global/memoize.js';
|
|
26
25
|
import '../link/clickableLink.js';
|
|
27
26
|
import '../_helpers/link.js';
|
|
@@ -56,6 +55,8 @@ import '../popup/popup.consts.js';
|
|
|
56
55
|
import '../alert/container.js';
|
|
57
56
|
import '../clipboard/clipboard-fallback.js';
|
|
58
57
|
import '../_helpers/badge.js';
|
|
58
|
+
import '../i18n/i18n-context.js';
|
|
59
|
+
import '../i18n/i18n.js';
|
|
59
60
|
import '../dropdown/dropdown.js';
|
|
60
61
|
import '../global/typescript-utils.js';
|
|
61
62
|
import '../_helpers/anchor.js';
|