@jetbrains/ring-ui-built 7.0.62 → 7.0.63
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/card.js +4 -3
- package/components/_helpers/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +4 -4
- package/components/_helpers/input.js +8 -8
- package/components/_helpers/{select__filter.js → select-filter.js} +1 -1
- package/components/_helpers/services-link.js +3 -3
- package/components/_helpers/theme.js +2 -2
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +9 -8
- package/components/alert/container.d.ts +1 -1
- package/components/alert/container.js +2 -2
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +4 -4
- package/components/analytics/{analytics__custom-plugin.d.ts → analytics-custom-plugin.d.ts} +1 -1
- package/components/analytics/{analytics__custom-plugin.js → analytics-custom-plugin.js} +2 -2
- package/components/auth/{auth__core.d.ts → auth-core.d.ts} +9 -8
- package/components/auth/{auth__core.js → auth-core.js} +18 -22
- package/components/auth/auth.d.ts +2 -2
- package/components/auth/auth.js +8 -8
- package/components/auth/background-flow.d.ts +2 -2
- package/components/auth/background-flow.js +1 -3
- package/components/auth/down-notification.js +6 -6
- package/components/auth/iframe-flow.d.ts +3 -3
- package/components/auth/iframe-flow.js +9 -11
- package/components/auth/request-builder.d.ts +2 -1
- package/components/auth/request-builder.js +1 -2
- package/components/auth/storage.d.ts +3 -3
- package/components/auth/storage.js +9 -11
- package/components/auth/token-validator.d.ts +2 -1
- package/components/auth/token-validator.js +12 -3
- package/components/auth/window-flow.d.ts +3 -3
- package/components/auth/window-flow.js +5 -7
- package/components/auth-dialog/auth-dialog.js +9 -9
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +5 -5
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.figma.js +1 -2
- package/components/avatar/avatar.js +16 -17
- package/components/avatar/fallback-avatar.js +17 -18
- package/components/avatar-stack/avatar-stack.d.ts +3 -3
- package/components/avatar-stack/avatar-stack.figma.js +1 -2
- package/components/avatar-stack/avatar-stack.js +12 -12
- package/components/banner/banner.js +4 -4
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.figma.js +1 -2
- package/components/button/{button__classes.d.ts → button.classes.d.ts} +1 -1
- package/components/button/button.classes.js +2 -0
- package/components/button/button.d.ts +4 -4
- package/components/button/button.figma.js +1 -2
- package/components/button/button.js +9 -9
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/caret/caret.js +24 -17
- package/components/checkbox/checkbox-group.figma.js +1 -2
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.figma.js +1 -2
- package/components/checkbox/checkbox.js +8 -8
- package/components/clipboard/clipboard.js +8 -8
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +3 -3
- package/components/collapse/collapse-content.d.ts +3 -3
- package/components/collapse/collapse-control.d.ts +2 -2
- package/components/collapse/collapse.d.ts +3 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +8 -8
- package/components/confirm-service/confirm-service.d.ts +3 -3
- package/components/confirm-service/confirm-service.js +5 -5
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +2 -2
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/contenteditable/contenteditable.js +2 -1
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-label/control-label.d.ts +1 -1
- package/components/data-list/data-list.d.ts +5 -5
- package/components/data-list/data-list.js +8 -8
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +24 -24
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +9 -9
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +8 -1
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +3 -3
- package/components/date-picker/consts.d.ts +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +7 -7
- package/components/date-picker/date-picker.d.ts +5 -5
- package/components/date-picker/date-picker.js +27 -22
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -8
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +4 -4
- package/components/date-picker/formats.js +1 -0
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +2 -2
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +2 -2
- package/components/dialog/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +1 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +15 -15
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +4 -4
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +6 -6
- package/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/components/dropdown-menu/dropdown-menu.js +11 -11
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +8 -7
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.figma.js +1 -2
- package/components/error-bubble/error-bubble.js +2 -2
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +3 -3
- package/components/footer/footer.d.ts +1 -1
- package/components/footer/footer.js +2 -2
- package/components/global/compose-refs.d.ts +2 -0
- package/components/global/compose-refs.js +19 -0
- package/components/global/composeRefs.d.ts +6 -2
- package/components/global/composeRefs.js +6 -16
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/dom.d.ts +1 -1
- package/components/global/dom.js +2 -3
- package/components/global/focus-sensor-hoc.d.ts +1 -1
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/fuzzy-highlight.d.ts +2 -2
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/memoize.js +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/global/rerender-hoc.js +2 -2
- package/components/global/theme.d.ts +1 -1
- package/components/global/url.js +3 -3
- package/components/global/use-event-callback.js +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +1 -1
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +1 -1
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +1 -1
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +1 -1
- package/components/header/header-icon.d.ts +2 -2
- package/components/header/header-icon.js +4 -4
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +17 -17
- package/components/header/links.d.ts +1 -1
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +2 -2
- package/components/header/profile.d.ts +5 -5
- package/components/header/profile.js +14 -14
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +7 -7
- package/components/header/smart-profile.d.ts +3 -3
- package/components/header/smart-profile.js +25 -25
- package/components/header/smart-services.d.ts +3 -3
- package/components/header/smart-services.js +4 -4
- package/components/header/tray.d.ts +1 -1
- package/components/heading/heading.d.ts +1 -1
- package/components/http/http.mock.d.ts +1 -1
- package/components/hub-source/{hub-source__user.d.ts → hub-source-user.d.ts} +3 -2
- package/components/hub-source/{hub-source__users-groups.d.ts → hub-source-users-groups.d.ts} +3 -2
- package/components/hub-source/hub-source.d.ts +2 -2
- package/components/icon/{icon__svg.d.ts → icon-svg.d.ts} +1 -1
- package/components/icon/{icon__svg.js → icon-svg.js} +1 -1
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +3 -3
- package/components/icon/index.js +2 -2
- package/components/input/input.d.ts +3 -3
- package/components/input/input.figma.js +1 -2
- package/components/input/input.js +5 -5
- package/components/island/adaptive-island-hoc.d.ts +1 -1
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +2 -2
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +4 -4
- package/components/island/island.d.ts +1 -1
- package/components/link/clickable-link.d.ts +12 -0
- package/components/link/clickable-link.js +51 -0
- package/components/link/clickableLink.d.ts +11 -12
- package/components/link/clickableLink.js +5 -50
- package/components/link/link.d.ts +2 -2
- package/components/link/link.js +3 -3
- package/components/list/consts.d.ts +4 -5
- package/components/list/{list__custom.d.ts → list-custom.d.ts} +1 -1
- package/components/list/{list__custom.js → list-custom.js} +1 -1
- package/components/list/{list__hint.d.ts → list-hint.d.ts} +1 -1
- package/components/list/{list__hint.js → list-hint.js} +1 -1
- package/components/list/{list__item.d.ts → list-item.d.ts} +2 -2
- package/components/list/{list__item.js → list-item.js} +10 -9
- package/components/list/{list__separator.d.ts → list-separator.d.ts} +1 -1
- package/components/list/{list__separator.js → list-separator.js} +1 -1
- package/components/list/{list__title.d.ts → list-title.d.ts} +1 -1
- package/components/list/{list__title.js → list-title.js} +3 -3
- package/components/list/{list__users-groups-source.d.ts → list-users-groups-source.d.ts} +3 -2
- package/components/list/{list__users-groups-source.js → list-users-groups-source.js} +11 -11
- package/components/list/{list__classes.d.ts → list.classes.d.ts} +1 -1
- package/components/list/list.d.ts +7 -7
- package/components/list/list.js +36 -35
- package/components/loader/{loader__core.js → loader-core.js} +3 -2
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +9 -9
- package/components/login-dialog/service.d.ts +1 -1
- package/components/login-dialog/service.js +6 -6
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.d.ts +4 -4
- package/components/message/message.js +7 -7
- package/components/old-browsers-message/old-browsers-message.js +1 -1
- package/components/pager/pager.d.ts +2 -2
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +1 -1
- package/components/permissions/{permissions__cache.js → permissions-cache.js} +4 -4
- package/components/permissions/permissions.d.ts +2 -2
- package/components/permissions/permissions.js +2 -3
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +4 -4
- package/components/popup/popup.target.d.ts +1 -1
- package/components/popup/position-css.js +2 -4
- package/components/popup/position.js +10 -9
- package/components/popup-menu/popup-menu.d.ts +4 -4
- package/components/popup-menu/popup-menu.js +10 -10
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/{query-assist__suggestions.d.ts → query-assist-suggestions.d.ts} +1 -1
- package/components/query-assist/{query-assist__suggestions.js → query-assist-suggestions.js} +11 -11
- package/components/query-assist/query-assist.d.ts +4 -4
- package/components/query-assist/query-assist.js +30 -30
- package/components/radio/{radio__item.d.ts → radio-item.d.ts} +1 -1
- package/components/radio/{radio__item.js → radio-item.js} +3 -3
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +1 -1
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/{select__filter.d.ts → select-filter.d.ts} +2 -2
- package/components/select/{select__filter.js → select-filter.js} +12 -12
- package/components/select/{select__popup.d.ts → select-popup.d.ts} +8 -8
- package/components/select/{select__popup.js → select-popup.js} +21 -19
- package/components/select/select.d.ts +6 -6
- package/components/select/select.js +44 -42
- package/components/shortcuts/core.js +4 -4
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/slider/slider.d.ts +5 -5
- package/components/slider/slider.js +7 -6
- package/components/slider/slider.utils.d.ts +1 -1
- package/components/slider/slider.utils.js +2 -3
- package/components/storage/{storage__local.d.ts → storage-local.d.ts} +1 -1
- package/components/storage/{storage__local.js → storage-local.js} +11 -11
- package/components/storage/storage.d.ts +1 -1
- package/components/storage/storage.js +5 -5
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/tab-trap.js +1 -1
- package/components/table/cell.d.ts +1 -1
- package/components/table/disable-hover-hoc.d.ts +1 -1
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +3 -3
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +7 -7
- package/components/table/multitable.d.ts +3 -3
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -5
- package/components/table/row.d.ts +4 -4
- package/components/table/row.js +5 -5
- package/components/table/selection-adapter.d.ts +2 -1
- package/components/table/selection-shortcuts-hoc.d.ts +4 -3
- package/components/table/selection-shortcuts-hoc.js +1 -2
- package/components/table/selection.js +5 -6
- package/components/table/simple-table.d.ts +2 -2
- package/components/table/simple-table.js +6 -6
- package/components/table/smart-table.d.ts +2 -2
- package/components/table/smart-table.js +6 -6
- package/components/table/table.d.ts +7 -7
- package/components/table/table.js +11 -11
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +12 -12
- package/components/tabs/collapsible-tab.d.ts +2 -2
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +18 -18
- package/components/tabs/custom-item.d.ts +2 -2
- package/components/tabs/dumb-tabs.d.ts +3 -3
- package/components/tabs/dumb-tabs.js +14 -14
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +11 -11
- package/components/tabs/tab-link.d.ts +2 -2
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tabs.js +11 -11
- package/components/tag/tag.d.ts +2 -2
- package/components/tag/tag.js +7 -7
- package/components/tags-input/tags-input.d.ts +8 -8
- package/components/tags-input/tags-input.js +26 -20
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +5 -5
- package/components/text/text.d.ts +1 -1
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +2 -2
- package/components/tooltip/tooltip.d.ts +2 -2
- package/components/tooltip/tooltip.js +1 -1
- package/components/upload/upload.d.ts +3 -3
- package/components/upload/upload.js +7 -7
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/service.js +10 -11
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +10 -10
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +4 -4
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +4 -4
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.js +4 -4
- package/package.json +1 -1
- package/components/button/button__classes.js +0 -2
- /package/components/_helpers/{button__classes.js → button.classes.js} +0 -0
- /package/components/_helpers/{icon__svg.js → icon-svg.js} +0 -0
- /package/components/_helpers/{query-assist__suggestions.js → query-assist-suggestions.js} +0 -0
- /package/components/dialog/{dialog__body-scroll-preventer.d.ts → dialog-body-scroll-preventer.d.ts} +0 -0
- /package/components/global/{variables.d.ts → variables.interface.d.ts} +0 -0
- /package/components/global/{variables.js → variables.interface.js} +0 -0
- /package/components/hub-source/{hub-source__user.js → hub-source-user.js} +0 -0
- /package/components/hub-source/{hub-source__users-groups.js → hub-source-users-groups.js} +0 -0
- /package/components/icon/{icon__constants.d.ts → icon.constants.d.ts} +0 -0
- /package/components/icon/{icon__constants.js → icon.constants.js} +0 -0
- /package/components/list/{list__classes.js → list.classes.js} +0 -0
- /package/components/loader/{loader__core.d.ts → loader-core.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.d.ts → old-browsers-message-stop.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.js → old-browsers-message-stop.js} +0 -0
- /package/components/permissions/{permissions__cache.d.ts → permissions-cache.d.ts} +0 -0
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createComposedRef as createComposedRef$1 } from './compose-refs.js';
|
|
2
|
+
import 'memoize-one';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return value => refs.forEach(ref => {
|
|
8
|
-
if (typeof ref === 'function') {
|
|
9
|
-
ref(value);
|
|
10
|
-
} else if (ref != null) {
|
|
11
|
-
ref.current = value;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function createComposedRef() {
|
|
16
|
-
return memoizeOne(composeRefs);
|
|
17
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use createComposedRef from './compose-refs' instead
|
|
6
|
+
*/
|
|
7
|
+
const createComposedRef = createComposedRef$1;
|
|
18
8
|
|
|
19
9
|
export { createComposedRef };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name DOM
|
|
3
3
|
*/
|
|
4
|
-
import { SyntheticEvent } from 'react';
|
|
4
|
+
import { type SyntheticEvent } from 'react';
|
|
5
5
|
import type { PropertiesHyphen } from 'csstype';
|
|
6
6
|
export declare const getStyles: ((elt: Element, pseudoElt?: string | null) => CSSStyleDeclaration) & typeof getComputedStyle;
|
|
7
7
|
export declare function isMounted(node: Node | Range | null | undefined): boolean;
|
package/components/global/dom.js
CHANGED
|
@@ -21,7 +21,7 @@ const rectStub = {
|
|
|
21
21
|
height: 0
|
|
22
22
|
};
|
|
23
23
|
function getRect(node) {
|
|
24
|
-
if (node instanceof Range || node
|
|
24
|
+
if (node instanceof Range || node && isMounted(node)) {
|
|
25
25
|
const {
|
|
26
26
|
top,
|
|
27
27
|
right,
|
|
@@ -38,9 +38,8 @@ function getRect(node) {
|
|
|
38
38
|
width,
|
|
39
39
|
height
|
|
40
40
|
};
|
|
41
|
-
} else {
|
|
42
|
-
return Object.assign({}, rectStub);
|
|
43
41
|
}
|
|
42
|
+
return Object.assign({}, rectStub);
|
|
44
43
|
}
|
|
45
44
|
function getPixelRatio() {
|
|
46
45
|
return 'devicePixelRatio' in window ? window.devicePixelRatio : 1;
|
|
@@ -2,7 +2,7 @@ import { b as _objectSpread2, _ as _defineProperty, a as _objectWithoutPropertie
|
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { Component } from 'react';
|
|
5
|
-
import { createComposedRef } from './
|
|
5
|
+
import { createComposedRef } from './compose-refs.js';
|
|
6
6
|
import 'memoize-one';
|
|
7
7
|
|
|
8
8
|
const _excluded = ["autofocus", "focused", "onFocus", "onBlur", "innerRef", "scrollOnTableFocus"];
|
|
@@ -83,7 +83,7 @@ function focusSensorHOC(ComposedComponent) {
|
|
|
83
83
|
node
|
|
84
84
|
} = this;
|
|
85
85
|
node === null || node === void 0 || node.setAttribute('tabindex', '0');
|
|
86
|
-
if (node
|
|
86
|
+
if (node) {
|
|
87
87
|
node.style.outline = 'none';
|
|
88
88
|
}
|
|
89
89
|
document.addEventListener('focus', this.onFocusCapture, true);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** https://github.com/bevacqua/fuzzysearch + highlighting with Markdown */
|
|
2
|
-
|
|
2
|
+
interface Match {
|
|
3
3
|
from: number;
|
|
4
4
|
to: number;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
6
|
export default function fuzzyHighlight(needle: string, haystack: string, caseSensitive?: boolean): {
|
|
7
7
|
matched: boolean;
|
|
8
8
|
matches: Match[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
1
|
+
import type * as React from 'react';
|
|
2
2
|
export default function getEventKey(nativeEvent: KeyboardEvent | React.KeyboardEvent): string;
|
|
@@ -7,7 +7,7 @@ function memoize(fn) {
|
|
|
7
7
|
const key = arg !== null && arg !== void 0 ? arg : '__singleValue__';
|
|
8
8
|
const cache = key instanceof Object ? objectCache : primitiveCache;
|
|
9
9
|
const cached = cache.get(key);
|
|
10
|
-
if (cached
|
|
10
|
+
if (cached !== undefined) {
|
|
11
11
|
return cached;
|
|
12
12
|
}
|
|
13
13
|
const value = fn(arg);
|
|
@@ -2,7 +2,7 @@ import { _ as _defineProperty, b as _objectSpread2 } from '../_helpers/_rollupPl
|
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { forwardRef, Component } from 'react';
|
|
5
|
-
import { createComposedRef } from './
|
|
5
|
+
import { createComposedRef } from './compose-refs.js';
|
|
6
6
|
import 'memoize-one';
|
|
7
7
|
|
|
8
8
|
function rerenderHOC(ComposedComponent) {
|
|
@@ -15,7 +15,7 @@ function rerenderHOC(ComposedComponent) {
|
|
|
15
15
|
render() {
|
|
16
16
|
const ref = this.composedRef(this.props.forwardedRef);
|
|
17
17
|
return jsx(ComposedComponent, _objectSpread2(_objectSpread2({}, this.state), {}, {
|
|
18
|
-
ref: instance => ref(instance
|
|
18
|
+
ref: instance => ref(instance ? _objectSpread2(_objectSpread2({}, instance), {}, {
|
|
19
19
|
rerender: this.setState.bind(this)
|
|
20
20
|
}) : null)
|
|
21
21
|
}));
|
package/components/global/url.js
CHANGED
|
@@ -92,7 +92,7 @@ function joinBaseURLAndPath(baseUrl, path) {
|
|
|
92
92
|
* @return {AuthResponse} object with query parameters map
|
|
93
93
|
*/
|
|
94
94
|
function parseQueryString(queryString) {
|
|
95
|
-
if (queryString
|
|
95
|
+
if (!queryString) {
|
|
96
96
|
return {};
|
|
97
97
|
}
|
|
98
98
|
const queryParameterPairRE = /([^&;=]+)=?([^&;]*)/g;
|
|
@@ -103,7 +103,7 @@ function parseQueryString(queryString) {
|
|
|
103
103
|
return decodeURIComponent(s.replace(/\+/g, ' '));
|
|
104
104
|
}
|
|
105
105
|
let matchedQueryPair;
|
|
106
|
-
while ((matchedQueryPair = queryParameterPairRE.exec(queryString))
|
|
106
|
+
while (queryString && (matchedQueryPair = queryParameterPairRE.exec(queryString))) {
|
|
107
107
|
urlParams[decode(matchedQueryPair[FIRST_PAIR_ELEMENT])] = decode(matchedQueryPair[SECOND_PAIR_ELEMENT]);
|
|
108
108
|
}
|
|
109
109
|
return urlParams;
|
|
@@ -125,7 +125,7 @@ function encodeURL(url, params) {
|
|
|
125
125
|
let k;
|
|
126
126
|
let i = 0;
|
|
127
127
|
for (k in params) {
|
|
128
|
-
if (
|
|
128
|
+
if (Object.prototype.hasOwnProperty.call(params, k) && params[k] !== null && params[k] !== undefined) {
|
|
129
129
|
res += (i++ === 0 ? firstSeparator : '&') + customEncodeURIComponent(k) + equalsSign + customEncodeURIComponent(params[k]);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -10,7 +10,7 @@ function useEventCallback(fn) {
|
|
|
10
10
|
const {
|
|
11
11
|
current
|
|
12
12
|
} = ref;
|
|
13
|
-
if (current
|
|
13
|
+
if (current === null || current === undefined) {
|
|
14
14
|
throw new Error('callback created in useEventCallback can only be called from event handlers');
|
|
15
15
|
}
|
|
16
16
|
return current(...arguments);
|
package/components/grid/col.d.ts
CHANGED
package/components/grid/col.js
CHANGED
package/components/grid/grid.js
CHANGED
|
@@ -22,7 +22,7 @@ class Grid extends Component {
|
|
|
22
22
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
23
23
|
const classes = classNames(styles['container-fluid'], className);
|
|
24
24
|
return jsx("div", _objectSpread2(_objectSpread2({
|
|
25
|
-
"data-test":
|
|
25
|
+
"data-test": 'ring-grid'
|
|
26
26
|
}, restProps), {}, {
|
|
27
27
|
className: classes,
|
|
28
28
|
children: children
|
package/components/grid/row.d.ts
CHANGED
package/components/grid/row.js
CHANGED
|
@@ -19,7 +19,7 @@ class Group extends Component {
|
|
|
19
19
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
20
20
|
const classes = classNames(styles.group, className);
|
|
21
21
|
return jsx("span", _objectSpread2(_objectSpread2({
|
|
22
|
-
"data-test":
|
|
22
|
+
"data-test": 'ring-group'
|
|
23
23
|
}, restProps), {}, {
|
|
24
24
|
className: classes,
|
|
25
25
|
children: children
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { ButtonAttrs } from '../button/button';
|
|
3
|
-
import { IconType } from '../icon
|
|
2
|
+
import { type ButtonAttrs } from '../button/button';
|
|
3
|
+
import { type IconType } from '../icon';
|
|
4
4
|
export interface HeaderIconSpecificProps {
|
|
5
5
|
icon: string | IconType;
|
|
6
6
|
rotatable?: boolean | null | undefined;
|
|
@@ -9,15 +9,15 @@ import '@jetbrains/icons/chevron-down';
|
|
|
9
9
|
import '@jetbrains/icons/chevron-12px-down';
|
|
10
10
|
import 'util-deprecate';
|
|
11
11
|
import '../icon/icon.js';
|
|
12
|
-
import '../icon/
|
|
13
|
-
import '../_helpers/
|
|
12
|
+
import '../icon/icon.constants.js';
|
|
13
|
+
import '../_helpers/icon-svg.js';
|
|
14
14
|
import 'core-js/modules/es.regexp.exec.js';
|
|
15
15
|
import 'core-js/modules/es.string.replace.js';
|
|
16
16
|
import '../global/memoize.js';
|
|
17
|
-
import '../link/
|
|
17
|
+
import '../link/clickable-link.js';
|
|
18
18
|
import '../global/controls-height.js';
|
|
19
19
|
import '../global/configuration.js';
|
|
20
|
-
import '../_helpers/
|
|
20
|
+
import '../_helpers/button.classes.js';
|
|
21
21
|
|
|
22
22
|
const _excluded = ["className", "rotatable"];
|
|
23
23
|
class HeaderIcon extends Component {
|
|
@@ -34,15 +34,15 @@ import '../popup/popup.consts.js';
|
|
|
34
34
|
import '../popup/position-css.js';
|
|
35
35
|
import '../icon/icon.js';
|
|
36
36
|
import 'util-deprecate';
|
|
37
|
-
import '../icon/
|
|
38
|
-
import '../_helpers/
|
|
37
|
+
import '../icon/icon.constants.js';
|
|
38
|
+
import '../_helpers/icon-svg.js';
|
|
39
39
|
import '../global/memoize.js';
|
|
40
40
|
import '../button/button.js';
|
|
41
41
|
import '@jetbrains/icons/chevron-down';
|
|
42
42
|
import '@jetbrains/icons/chevron-12px-down';
|
|
43
|
-
import '../link/
|
|
43
|
+
import '../link/clickable-link.js';
|
|
44
44
|
import '../global/controls-height.js';
|
|
45
|
-
import '../_helpers/
|
|
45
|
+
import '../_helpers/button.classes.js';
|
|
46
46
|
import '../avatar/avatar.js';
|
|
47
47
|
import '../global/url.js';
|
|
48
48
|
import '../_helpers/avatar-info.js';
|
|
@@ -58,32 +58,28 @@ import 'react-virtualized/dist/es/WindowScroller';
|
|
|
58
58
|
import 'react-virtualized/dist/es/CellMeasurer';
|
|
59
59
|
import 'memoize-one';
|
|
60
60
|
import '../global/create-stateful-context.js';
|
|
61
|
-
import '../list/
|
|
61
|
+
import '../list/list-item.js';
|
|
62
62
|
import '../checkbox/checkbox.js';
|
|
63
63
|
import '@jetbrains/icons/checkmark-12px';
|
|
64
64
|
import '@jetbrains/icons/remove-12px';
|
|
65
|
-
import '../global/
|
|
65
|
+
import '../global/compose-refs.js';
|
|
66
66
|
import '../control-help/control-help.js';
|
|
67
67
|
import '../link/link.js';
|
|
68
68
|
import '../_helpers/link.js';
|
|
69
69
|
import '../_helpers/list.js';
|
|
70
70
|
import '../list/consts.js';
|
|
71
|
-
import '../list/
|
|
72
|
-
import '../list/
|
|
71
|
+
import '../list/list.classes.js';
|
|
72
|
+
import '../list/list-custom.js';
|
|
73
73
|
import '../global/get-event-key.js';
|
|
74
|
-
import '../list/
|
|
75
|
-
import '../list/
|
|
76
|
-
import '../list/
|
|
74
|
+
import '../list/list-title.js';
|
|
75
|
+
import '../list/list-separator.js';
|
|
76
|
+
import '../list/list-hint.js';
|
|
77
77
|
import '../dropdown/dropdown.js';
|
|
78
78
|
import '../global/typescript-utils.js';
|
|
79
79
|
import '../_helpers/anchor.js';
|
|
80
80
|
import '../popup-menu/popup-menu.js';
|
|
81
81
|
import '../i18n/i18n-context.js';
|
|
82
82
|
import '../i18n/i18n.js';
|
|
83
|
-
import '../auth/auth.js';
|
|
84
|
-
import '../auth/window-flow.js';
|
|
85
|
-
import '../auth/response-parser.js';
|
|
86
|
-
import '../auth/down-notification.js';
|
|
87
83
|
import '../alert-service/alert-service.js';
|
|
88
84
|
import 'react-dom/client';
|
|
89
85
|
import '../alert/alert.js';
|
|
@@ -93,8 +89,12 @@ import '@jetbrains/icons/warning';
|
|
|
93
89
|
import '@jetbrains/icons/close';
|
|
94
90
|
import '../loader-inline/loader-inline.js';
|
|
95
91
|
import '../alert/container.js';
|
|
92
|
+
import '../auth/auth.js';
|
|
93
|
+
import '../auth/window-flow.js';
|
|
94
|
+
import '../auth/response-parser.js';
|
|
95
|
+
import '../auth/down-notification.js';
|
|
96
96
|
import '../group/group.js';
|
|
97
|
-
import '../auth/
|
|
97
|
+
import '../auth/auth-core.js';
|
|
98
98
|
import 'core-js/modules/web.url.js';
|
|
99
99
|
import 'core-js/modules/web.url.to-json.js';
|
|
100
100
|
import 'core-js/modules/web.url-search-params.js';
|
|
@@ -102,7 +102,7 @@ import '../global/listeners.js';
|
|
|
102
102
|
import '../http/http.js';
|
|
103
103
|
import '../global/promise-with-timeout.js';
|
|
104
104
|
import '../auth/storage.js';
|
|
105
|
-
import '../storage/
|
|
105
|
+
import '../storage/storage-local.js';
|
|
106
106
|
import '../auth/request-builder.js';
|
|
107
107
|
import 'simply-uuid';
|
|
108
108
|
import '../auth/background-flow.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
export default function Links({ className, ...restProps }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,9 +4,9 @@ import { PureComponent } from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Icon from '../icon/icon.js';
|
|
6
6
|
import { s as styles } from '../_helpers/header.js';
|
|
7
|
-
import { Size } from '../icon/
|
|
7
|
+
import { Size } from '../icon/icon.constants.js';
|
|
8
8
|
import 'util-deprecate';
|
|
9
|
-
import '../_helpers/
|
|
9
|
+
import '../_helpers/icon-svg.js';
|
|
10
10
|
import 'core-js/modules/es.regexp.exec.js';
|
|
11
11
|
import 'core-js/modules/es.string.replace.js';
|
|
12
12
|
import '../global/memoize.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ComponentType, HTMLAttributes, PureComponent, ReactNode } from 'react';
|
|
1
|
+
import { type ComponentType, type HTMLAttributes, PureComponent, type ReactNode } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Size } from '../avatar/avatar';
|
|
4
|
-
import { PopupMenuAttrs } from '../popup-menu/popup-menu';
|
|
5
|
-
import { ListDataItem } from '../list/consts';
|
|
6
|
-
import { AuthUser } from '../auth/auth';
|
|
7
|
-
import { ClickableLinkProps } from '../link/
|
|
4
|
+
import { type PopupMenuAttrs } from '../popup-menu/popup-menu';
|
|
5
|
+
import { type ListDataItem } from '../list/consts';
|
|
6
|
+
import { type AuthUser } from '../auth/auth';
|
|
7
|
+
import { type ClickableLinkProps } from '../link/clickable-link';
|
|
8
8
|
export interface ProfileTranslations {
|
|
9
9
|
applyChangedUser?: string | null | undefined;
|
|
10
10
|
login?: string | null | undefined;
|
|
@@ -23,12 +23,12 @@ import '../global/get-uid.js';
|
|
|
23
23
|
import '@jetbrains/icons/chevron-down';
|
|
24
24
|
import '@jetbrains/icons/chevron-12px-down';
|
|
25
25
|
import '../icon/icon.js';
|
|
26
|
-
import '../icon/
|
|
27
|
-
import '../_helpers/
|
|
28
|
-
import '../link/
|
|
26
|
+
import '../icon/icon.constants.js';
|
|
27
|
+
import '../_helpers/icon-svg.js';
|
|
28
|
+
import '../link/clickable-link.js';
|
|
29
29
|
import '../global/controls-height.js';
|
|
30
30
|
import '../global/configuration.js';
|
|
31
|
-
import '../_helpers/
|
|
31
|
+
import '../_helpers/button.classes.js';
|
|
32
32
|
import '../list/list.js';
|
|
33
33
|
import 'core-js/modules/es.symbol.description.js';
|
|
34
34
|
import 'core-js/modules/es.string.trim.js';
|
|
@@ -45,22 +45,22 @@ import 'combokeys';
|
|
|
45
45
|
import '../global/sniffer.js';
|
|
46
46
|
import 'sniffr';
|
|
47
47
|
import '../global/create-stateful-context.js';
|
|
48
|
-
import '../list/
|
|
48
|
+
import '../list/list-item.js';
|
|
49
49
|
import '../checkbox/checkbox.js';
|
|
50
50
|
import '@jetbrains/icons/checkmark-12px';
|
|
51
51
|
import '@jetbrains/icons/remove-12px';
|
|
52
|
-
import '../global/
|
|
52
|
+
import '../global/compose-refs.js';
|
|
53
53
|
import '../control-help/control-help.js';
|
|
54
54
|
import '../link/link.js';
|
|
55
55
|
import '../_helpers/link.js';
|
|
56
56
|
import '../_helpers/list.js';
|
|
57
57
|
import '../list/consts.js';
|
|
58
|
-
import '../list/
|
|
59
|
-
import '../list/
|
|
58
|
+
import '../list/list.classes.js';
|
|
59
|
+
import '../list/list-custom.js';
|
|
60
60
|
import '../global/get-event-key.js';
|
|
61
|
-
import '../list/
|
|
62
|
-
import '../list/
|
|
63
|
-
import '../list/
|
|
61
|
+
import '../list/list-title.js';
|
|
62
|
+
import '../list/list-separator.js';
|
|
63
|
+
import '../list/list-hint.js';
|
|
64
64
|
import '../dropdown/dropdown.js';
|
|
65
65
|
import '../_helpers/anchor.js';
|
|
66
66
|
import '../popup/popup.js';
|
|
@@ -126,7 +126,7 @@ class Profile extends PureComponent {
|
|
|
126
126
|
[styles.hasUpdates]: hasUpdates
|
|
127
127
|
});
|
|
128
128
|
const anchor = jsxs("button", {
|
|
129
|
-
type:
|
|
129
|
+
type: 'button',
|
|
130
130
|
className: styles.anchorClassName,
|
|
131
131
|
children: [jsx("span", {
|
|
132
132
|
className: avatarWrapper,
|
|
@@ -173,7 +173,7 @@ class Profile extends PureComponent {
|
|
|
173
173
|
title: user.name,
|
|
174
174
|
anchor: anchor,
|
|
175
175
|
data: renderPopupItems(items),
|
|
176
|
-
"data-test":
|
|
176
|
+
"data-test": 'ring-profile',
|
|
177
177
|
className: classNames(styles.profile, className),
|
|
178
178
|
activeClassName: activeClassName,
|
|
179
179
|
menuProps: _objectSpread2({
|
|
@@ -206,7 +206,7 @@ _defineProperty(Profile, "defaultProps", {
|
|
|
206
206
|
className: classNames(styles.profileEmpty, className),
|
|
207
207
|
children: jsx(Button, {
|
|
208
208
|
primary: true,
|
|
209
|
-
"data-test":
|
|
209
|
+
"data-test": 'ring-header-login-button',
|
|
210
210
|
disabled: loading,
|
|
211
211
|
loader: loading,
|
|
212
212
|
onClick: onLogin,
|
|
@@ -6,5 +6,5 @@ export { S as default } from '../_helpers/services-link.js';
|
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../global/data-tests.js';
|
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
-
import '../link/
|
|
9
|
+
import '../link/clickable-link.js';
|
|
10
10
|
import '../_helpers/link.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HTMLAttributes, PureComponent } from 'react';
|
|
1
|
+
import { type HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import Theme from '../global/theme';
|
|
3
|
-
import ServicesLink, { Service } from './services-link';
|
|
3
|
+
import ServicesLink, { type Service } from './services-link';
|
|
4
4
|
export interface ServicesProps extends HTMLAttributes<HTMLElement> {
|
|
5
5
|
theme: Theme;
|
|
6
6
|
clientId?: string | null | undefined;
|
|
@@ -18,15 +18,15 @@ import '@jetbrains/icons/chevron-down';
|
|
|
18
18
|
import '@jetbrains/icons/chevron-12px-down';
|
|
19
19
|
import 'util-deprecate';
|
|
20
20
|
import '../icon/icon.js';
|
|
21
|
-
import '../icon/
|
|
22
|
-
import '../_helpers/
|
|
21
|
+
import '../icon/icon.constants.js';
|
|
22
|
+
import '../_helpers/icon-svg.js';
|
|
23
23
|
import 'core-js/modules/es.regexp.exec.js';
|
|
24
24
|
import 'core-js/modules/es.string.replace.js';
|
|
25
25
|
import '../global/memoize.js';
|
|
26
|
-
import '../link/
|
|
26
|
+
import '../link/clickable-link.js';
|
|
27
27
|
import '../global/controls-height.js';
|
|
28
28
|
import '../global/configuration.js';
|
|
29
|
-
import '../_helpers/
|
|
29
|
+
import '../_helpers/button.classes.js';
|
|
30
30
|
import 'react-dom';
|
|
31
31
|
import '../global/get-uid.js';
|
|
32
32
|
import '../global/schedule-raf.js';
|
|
@@ -55,7 +55,7 @@ const makeAnchor = loading => {
|
|
|
55
55
|
loader: loading,
|
|
56
56
|
active: active,
|
|
57
57
|
icon: servicesIcon,
|
|
58
|
-
"aria-label":
|
|
58
|
+
"aria-label": 'Services'
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
return Anchor;
|
|
@@ -80,7 +80,7 @@ class Services extends PureComponent {
|
|
|
80
80
|
loader: loading,
|
|
81
81
|
active: loading,
|
|
82
82
|
icon: servicesIcon,
|
|
83
|
-
"aria-label":
|
|
83
|
+
"aria-label": 'Services'
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
86
|
const sortedServices = [...services].sort(Services.sort);
|
|
@@ -104,7 +104,7 @@ class Services extends PureComponent {
|
|
|
104
104
|
}, service.id);
|
|
105
105
|
}), separatorIsRequired && jsx("div", {
|
|
106
106
|
className: styles.line
|
|
107
|
-
},
|
|
107
|
+
}, 'separator'), servicesWithOutIcons.map(service => {
|
|
108
108
|
const isActive = this.serviceIsActive(service);
|
|
109
109
|
return jsx(Services.Link, {
|
|
110
110
|
active: isActive,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { type Size } from '../avatar/avatar';
|
|
3
|
+
import { type ProfileAttrs } from './profile';
|
|
4
|
+
import { type Auth, type AuthUser } from '../auth/auth';
|
|
5
5
|
export interface SmartProfileProps extends ProfileAttrs {
|
|
6
6
|
auth: Auth;
|
|
7
7
|
}
|