@jetbrains/ring-ui-built 6.0.35 → 6.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_helpers/_rollupPluginBabelHelpers.js +1 -10
- package/components/_helpers/anchor.js +9 -6
- package/components/_helpers/caption.js +5 -4
- package/components/_helpers/card.js +65 -49
- package/components/_helpers/icon__svg.js +4 -3
- package/components/_helpers/input.js +45 -36
- package/components/_helpers/query-assist__suggestions.js +18 -14
- package/components/_helpers/select__filter.js +22 -17
- package/components/_helpers/services-link.js +14 -12
- package/components/_helpers/sidebar.js +20 -16
- package/components/_helpers/tab-link.js +21 -13
- package/components/_helpers/theme.js +18 -11
- package/components/_helpers/title.js +20 -16
- package/components/alert/alert.d.ts +2 -1
- package/components/alert/alert.js +20 -17
- package/components/alert/container.d.ts +2 -2
- package/components/alert/container.js +14 -11
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +14 -14
- package/components/analytics/analytics.js +1 -1
- package/components/analytics/analytics__custom-plugin.js +1 -1
- package/components/auth/auth.js +1 -0
- package/components/auth/auth__core.js +3 -2
- package/components/auth/background-flow.js +1 -1
- package/components/auth/down-notification.d.ts +1 -1
- package/components/auth/down-notification.js +21 -14
- package/components/auth/iframe-flow.js +7 -5
- package/components/auth/request-builder.js +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +42 -32
- package/components/auth-dialog-service/auth-dialog-service.js +6 -7
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +29 -28
- package/components/avatar/fallback-avatar.d.ts +2 -2
- package/components/avatar/fallback-avatar.js +50 -37
- package/components/badge/badge.d.ts +2 -2
- package/components/badge/badge.js +7 -8
- package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.js +27 -0
- package/components/button/button.d.ts +2 -1
- package/components/button/button.js +26 -25
- package/components/button-group/button-group.d.ts +4 -2
- package/components/button-group/button-group.js +19 -10
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-group/caption.js +1 -0
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-set/button-set.js +7 -8
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.js +4 -6
- package/components/caret/caret.js +1 -1
- package/components/checkbox/checkbox.d.ts +3 -2
- package/components/checkbox/checkbox.js +33 -28
- package/components/clipboard/clipboard.js +3 -2
- package/components/code/code.d.ts +3 -3
- package/components/code/code.js +14 -11
- package/components/collapse/collapse-content.d.ts +2 -1
- package/components/collapse/collapse-content.js +13 -10
- package/components/collapse/collapse-control.d.ts +1 -1
- package/components/collapse/collapse-control.js +10 -11
- package/components/collapse/collapse.d.ts +2 -1
- package/components/collapse/collapse.js +16 -16
- package/components/confirm/confirm.d.ts +2 -1
- package/components/confirm/confirm.js +29 -21
- package/components/confirm-service/confirm-service.js +6 -4
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/content-layout.js +12 -12
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/content-layout/sidebar.js +1 -0
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/contenteditable/contenteditable.js +5 -7
- package/components/control-help/control-help.d.ts +4 -0
- package/components/control-help/control-help.js +16 -0
- package/components/control-label/control-label.d.ts +2 -1
- package/components/control-label/control-label.js +7 -4
- package/components/data-list/data-list.d.ts +11 -11
- package/components/data-list/data-list.js +44 -40
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +165 -73
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +49 -40
- package/components/data-list/selection.js +1 -1
- package/components/data-list/title.d.ts +3 -3
- package/components/data-list/title.js +2 -0
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +5 -3
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +43 -34
- package/components/date-picker/date-popup.d.ts +2 -1
- package/components/date-picker/date-popup.js +51 -45
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +11 -8
- package/components/date-picker/month-names.d.ts +2 -2
- package/components/date-picker/month-names.js +27 -25
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +15 -13
- package/components/date-picker/month.d.ts +2 -2
- package/components/date-picker/month.js +18 -15
- package/components/date-picker/months.d.ts +2 -2
- package/components/date-picker/months.js +18 -15
- package/components/date-picker/weekdays.d.ts +2 -2
- package/components/date-picker/weekdays.js +14 -13
- package/components/date-picker/years.d.ts +3 -3
- package/components/date-picker/years.js +19 -17
- package/components/dialog/dialog.d.ts +2 -1
- package/components/dialog/dialog.js +48 -45
- package/components/dropdown/anchor.d.ts +3 -3
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +12 -12
- package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/components/dropdown-menu/dropdown-menu.js +41 -29
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +74 -58
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-bubble/error-bubble.js +20 -19
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +22 -20
- package/components/footer/footer.d.ts +2 -2
- package/components/footer/footer.js +31 -27
- package/components/form/form.js +1 -1
- package/components/global/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +10 -7
- package/components/global/data-tests.js +1 -1
- package/components/global/dom.js +1 -1
- package/components/global/focus-sensor-hoc.js +4 -3
- package/components/global/fuzzy-highlight.js +1 -1
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/inject-styles.js +1 -1
- package/components/global/listeners.js +1 -1
- package/components/global/normalize-indent.js +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/global/react-dom-renderer.js +4 -3
- package/components/global/rerender-hoc.d.ts +2 -2
- package/components/global/rerender-hoc.js +5 -4
- package/components/global/theme.d.ts +3 -3
- package/components/global/theme.js +1 -0
- package/components/global/trivial-template-tag.js +1 -1
- package/components/grid/col.d.ts +2 -2
- package/components/grid/col.js +7 -5
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.js +7 -8
- package/components/grid/row.d.ts +2 -2
- package/components/grid/row.js +7 -5
- package/components/group/group.d.ts +2 -2
- package/components/group/group.js +7 -8
- package/components/header/header.d.ts +2 -2
- package/components/header/header.js +12 -14
- package/components/header/logo.d.ts +2 -2
- package/components/header/logo.js +7 -5
- package/components/header/profile.d.ts +4 -3
- package/components/header/profile.js +40 -29
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services-link.js +1 -0
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +31 -31
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-profile.js +5 -3
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/smart-services.js +4 -3
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray-icon.js +4 -3
- package/components/header/tray.d.ts +2 -2
- package/components/header/tray.js +11 -8
- package/components/heading/heading.d.ts +6 -6
- package/components/heading/heading.js +8 -9
- package/components/http/http.js +1 -1
- package/components/http/http.mock.js +1 -1
- package/components/hub-source/hub-source.js +1 -1
- package/components/hub-source/hub-source__user.js +1 -1
- package/components/hub-source/hub-source__users-groups.js +1 -1
- package/components/i18n/i18n-context.d.ts +1 -1
- package/components/i18n/i18n-context.js +7 -4
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +12 -10
- package/components/icon/icon__svg.d.ts +3 -3
- package/components/icon/icon__svg.js +1 -0
- package/components/icon/index.js +1 -0
- package/components/input/input.d.ts +3 -2
- package/components/input/input.js +2 -0
- package/components/island/adaptive-island-hoc.d.ts +11 -11
- package/components/island/adaptive-island-hoc.js +10 -7
- package/components/island/content.d.ts +3 -3
- package/components/island/content.js +29 -23
- package/components/island/header.d.ts +2 -2
- package/components/island/header.js +18 -13
- package/components/island/island.d.ts +10 -10
- package/components/island/island.js +7 -8
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/content-legacy.js +7 -5
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.js +10 -7
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.js +7 -5
- package/components/link/clickableLink.d.ts +2 -1
- package/components/link/clickableLink.js +8 -6
- package/components/link/link.d.ts +15 -15
- package/components/link/link.js +12 -9
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +10 -10
- package/components/list/list.js +109 -95
- package/components/list/list__custom.d.ts +2 -1
- package/components/list/list__custom.js +7 -5
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__hint.js +7 -9
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__item.js +73 -65
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__link.js +8 -10
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__separator.js +7 -5
- package/components/list/list__title.d.ts +2 -2
- package/components/list/list__title.js +15 -11
- package/components/list/list__users-groups-source.js +3 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +5 -10
- package/components/loader/loader__core.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-inline/loader-inline.js +10 -9
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/loader-screen/loader-screen.js +10 -11
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/login-dialog/login-dialog.js +21 -16
- package/components/login-dialog/service.js +6 -4
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +7 -8
- package/components/message/message.d.ts +2 -2
- package/components/message/message.js +50 -41
- package/components/old-browsers-message/white-list.js +1 -1
- package/components/pager/pager.d.ts +2 -1
- package/components/pager/pager.js +71 -53
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +7 -8
- package/components/permissions/permissions.js +1 -1
- package/components/permissions/permissions__cache.js +1 -1
- package/components/popup/popup.d.ts +2 -1
- package/components/popup/popup.js +46 -39
- package/components/popup/popup.target.d.ts +3 -3
- package/components/popup/popup.target.js +11 -8
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/popup-menu/popup-menu.js +13 -9
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +17 -18
- package/components/query-assist/query-assist.d.ts +3 -2
- package/components/query-assist/query-assist.js +122 -109
- package/components/query-assist/query-assist__suggestions.d.ts +2 -2
- package/components/query-assist/query-assist__suggestions.js +3 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +8 -8
- package/components/radio/radio__item.d.ts +9 -6
- package/components/radio/radio__item.js +46 -37
- package/components/select/select.d.ts +5 -2
- package/components/select/select.js +201 -180
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__filter.js +2 -0
- package/components/select/select__popup.d.ts +6 -4
- package/components/select/select__popup.js +101 -84
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +8 -8
- package/components/shortcuts/shortcuts-hoc.js +10 -8
- package/components/shortcuts/shortcuts.js +1 -1
- package/components/slider/slider.d.ts +2 -1
- package/components/slider/slider.js +78 -78
- package/components/slider/slider.utils.js +1 -1
- package/components/storage/storage.js +2 -1
- package/components/storage/storage__fallback.js +1 -1
- package/components/storage/storage__local.js +3 -2
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +2 -1
- package/components/tab-trap/tab-trap.js +25 -20
- package/components/table/cell.d.ts +2 -2
- package/components/table/cell.js +7 -5
- package/components/table/disable-hover-hoc.d.ts +9 -9
- package/components/table/disable-hover-hoc.js +4 -3
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header-cell.js +17 -13
- package/components/table/header.d.ts +3 -3
- package/components/table/header.js +34 -26
- package/components/table/multitable.d.ts +2 -2
- package/components/table/multitable.js +12 -10
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -3
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +50 -44
- package/components/table/selection-adapter.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +4 -3
- package/components/table/selection.js +1 -1
- package/components/table/smart-table.d.ts +44 -44
- package/components/table/smart-table.js +5 -3
- package/components/table/table.d.ts +2 -1
- package/components/table/table.js +55 -45
- package/components/tabs/collapsible-more.d.ts +4 -4
- package/components/tabs/collapsible-more.js +37 -30
- package/components/tabs/collapsible-tab.d.ts +2 -1
- package/components/tabs/collapsible-tab.js +6 -6
- package/components/tabs/collapsible-tabs.d.ts +4 -4
- package/components/tabs/collapsible-tabs.js +51 -46
- package/components/tabs/dumb-tabs.d.ts +2 -1
- package/components/tabs/dumb-tabs.js +24 -18
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.js +8 -4
- package/components/tabs/tab-link.d.ts +3 -3
- package/components/tabs/tab-link.js +1 -0
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tab.js +7 -5
- package/components/tabs/tabs.js +2 -0
- package/components/tag/tag.d.ts +2 -1
- package/components/tag/tag.js +31 -28
- package/components/tags-input/tags-input.d.ts +3 -2
- package/components/tags-input/tags-input.js +52 -47
- package/components/tags-list/tags-list.d.ts +2 -1
- package/components/tags-list/tags-list.js +8 -5
- package/components/text/text.d.ts +2 -2
- package/components/text/text.js +7 -4
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +25 -20
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +26 -21
- package/components/user-agreement/service.js +20 -12
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +56 -39
- package/components/user-card/card.d.ts +2 -1
- package/components/user-card/card.js +1 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/smart-user-card-tooltip.js +11 -7
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +15 -11
- package/components/user-card/user-card.js +1 -0
- package/package.json +5 -5
@@ -1,10 +1,10 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, j as _toConsumableArray, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.array.map.js';
|
5
5
|
import 'core-js/modules/es.array.sort.js';
|
6
6
|
import 'core-js/modules/es.object.to-string.js';
|
7
|
-
import
|
7
|
+
import { PureComponent } from 'react';
|
8
8
|
import PropTypes from 'prop-types';
|
9
9
|
import servicesIcon from '@jetbrains/icons/services-20px';
|
10
10
|
import classNames from 'classnames';
|
@@ -13,6 +13,7 @@ import Popup from '../popup/popup.js';
|
|
13
13
|
import { T as Theme, m as modules_59717246 } from '../_helpers/theme.js';
|
14
14
|
import TrayIcon from './tray-icon.js';
|
15
15
|
import { S as ServicesLink, m as modules_74a7bf8b } from '../_helpers/services-link.js';
|
16
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
16
17
|
import '../global/data-tests.js';
|
17
18
|
import 'core-js/modules/es.array.reduce.js';
|
18
19
|
import 'core-js/modules/es.object.entries.js';
|
@@ -67,7 +68,7 @@ var _excluded = ["clientId", "loading", "services", "initShown", "theme"];
|
|
67
68
|
var makeAnchor = function makeAnchor(loading) {
|
68
69
|
var Anchor = function Anchor(_ref) {
|
69
70
|
var active = _ref.active;
|
70
|
-
return /*#__PURE__*/
|
71
|
+
return /*#__PURE__*/jsx(TrayIcon, {
|
71
72
|
loader: loading,
|
72
73
|
active: active,
|
73
74
|
icon: servicesIcon,
|
@@ -105,7 +106,7 @@ var Services = /*#__PURE__*/function (_PureComponent) {
|
|
105
106
|
theme = _this$props.theme,
|
106
107
|
props = _objectWithoutProperties(_this$props, _excluded);
|
107
108
|
if (!services) {
|
108
|
-
return /*#__PURE__*/
|
109
|
+
return /*#__PURE__*/jsx(TrayIcon, _objectSpread2(_objectSpread2({}, props), {}, {
|
109
110
|
loader: loading,
|
110
111
|
active: loading,
|
111
112
|
icon: servicesIcon,
|
@@ -120,34 +121,33 @@ var Services = /*#__PURE__*/function (_PureComponent) {
|
|
120
121
|
return !service.iconUrl && service.homeUrl;
|
121
122
|
});
|
122
123
|
var separatorIsRequired = servicesWithIcons.length !== 0 && servicesWithOutIcons.length !== 0;
|
123
|
-
return /*#__PURE__*/
|
124
|
+
return /*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2({}, props), {}, {
|
124
125
|
anchor: makeAnchor(loading),
|
125
|
-
initShown: initShown
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
})));
|
126
|
+
initShown: initShown,
|
127
|
+
children: /*#__PURE__*/jsxs(Popup, {
|
128
|
+
className: classNames(modules_74a7bf8b.services, {
|
129
|
+
[modules_59717246.dark]: theme === Theme.DARK
|
130
|
+
}),
|
131
|
+
top: -3,
|
132
|
+
children: [servicesWithIcons.map(function (service) {
|
133
|
+
var isActive = _this2.serviceIsActive(service);
|
134
|
+
return /*#__PURE__*/jsx(Services.Link, {
|
135
|
+
active: isActive,
|
136
|
+
className: isActive ? modules_74a7bf8b.activeItem : modules_74a7bf8b.item,
|
137
|
+
service: service
|
138
|
+
}, service.id);
|
139
|
+
}), separatorIsRequired && /*#__PURE__*/jsx("div", {
|
140
|
+
className: modules_74a7bf8b.line
|
141
|
+
}, "separator"), servicesWithOutIcons.map(function (service) {
|
142
|
+
var isActive = _this2.serviceIsActive(service);
|
143
|
+
return /*#__PURE__*/jsx(Services.Link, {
|
144
|
+
active: isActive,
|
145
|
+
className: isActive ? modules_74a7bf8b.activeItemStacked : modules_74a7bf8b.itemStacked,
|
146
|
+
service: service
|
147
|
+
}, service.id);
|
148
|
+
})]
|
149
|
+
})
|
150
|
+
}));
|
151
151
|
}
|
152
152
|
}]);
|
153
153
|
}(PureComponent);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import Auth, { AuthUser } from '../auth/auth';
|
4
4
|
import { Size } from '../avatar/avatar';
|
@@ -31,6 +31,6 @@ export default class SmartProfile extends PureComponent<SmartProfileProps, Smart
|
|
31
31
|
onRevertPostponement: () => void;
|
32
32
|
requestUser(): Promise<void>;
|
33
33
|
checkUserCertificateMismatch(user: AuthUser): void;
|
34
|
-
render():
|
34
|
+
render(): import("react").JSX.Element;
|
35
35
|
}
|
36
36
|
export {};
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper, g as _asyncToGenerator, h as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { PureComponent } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import '../auth/auth.js';
|
6
6
|
import alertService from '../alert-service/alert-service.js';
|
7
7
|
import Profile from './profile.js';
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
8
9
|
import Auth, { USER_CHANGED_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGE_POSTPONED_EVENT } from '../auth/auth__core.js';
|
9
10
|
import '../auth/window-flow.js';
|
10
11
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -116,6 +117,7 @@ import '@jetbrains/icons/checkmark-12px';
|
|
116
117
|
import '@jetbrains/icons/remove-12px';
|
117
118
|
import '../global/prop-types.js';
|
118
119
|
import '../global/composeRefs.js';
|
120
|
+
import '../control-help/control-help.js';
|
119
121
|
import '../list/list__custom.js';
|
120
122
|
import '../global/get-event-key.js';
|
121
123
|
import '../list/list__title.js';
|
@@ -273,7 +275,7 @@ var SmartProfile = /*#__PURE__*/function (_PureComponent) {
|
|
273
275
|
profileUrl = _this$props2.profileUrl,
|
274
276
|
props = _objectWithoutProperties(_this$props2, _excluded);
|
275
277
|
var url = profileUrl || (user ? "".concat(auth.config.serverUri, "users/").concat(user.id) : '');
|
276
|
-
return /*#__PURE__*/
|
278
|
+
return /*#__PURE__*/jsx(Profile, _objectSpread2({
|
277
279
|
onLogin: this.login,
|
278
280
|
onLogout: this.logout,
|
279
281
|
onSwitchUser: this.switchUser,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import Auth from '../auth/auth';
|
4
4
|
import HTTP from '../http/http';
|
@@ -22,5 +22,5 @@ export default class SmartServices extends Component<SmartServicesProps> {
|
|
22
22
|
stopLoading: () => void;
|
23
23
|
getServicesContent: () => void;
|
24
24
|
getServices(fields: string): Promise<Service[]> | undefined;
|
25
|
-
render():
|
25
|
+
render(): import("react").JSX.Element | null;
|
26
26
|
}
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import '../auth/auth.js';
|
6
6
|
import HTTP from '../http/http.js';
|
7
7
|
import Services from './services.js';
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
8
9
|
import Auth from '../auth/auth__core.js';
|
9
10
|
import '../auth/window-flow.js';
|
10
11
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -172,7 +173,7 @@ var SmartServices = /*#__PURE__*/function (_Component) {
|
|
172
173
|
if (!visible) {
|
173
174
|
return null;
|
174
175
|
}
|
175
|
-
return /*#__PURE__*/
|
176
|
+
return /*#__PURE__*/jsx(Services, _objectSpread2(_objectSpread2({}, props), {}, {
|
176
177
|
clientId: auth.config.clientId,
|
177
178
|
initShown: true,
|
178
179
|
loading: loading,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { ButtonAttrs } from '../button/button';
|
4
4
|
import { IconType } from '../icon/icon';
|
@@ -28,5 +28,5 @@ export default class TrayIcon extends Component<ButtonAttrs & TrayIconSpecificPr
|
|
28
28
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
29
29
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
30
30
|
};
|
31
|
-
render():
|
31
|
+
render(): import("react").JSX.Element;
|
32
32
|
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { _ as _defineProperty, d as _objectSpread2, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as
|
2
|
-
import
|
1
|
+
import { _ as _defineProperty, d as _objectSpread2, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { Component } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import { Button } from '../button/button.js';
|
6
6
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
7
8
|
import 'core-js/modules/es.array.concat.js';
|
8
9
|
import '@jetbrains/icons/chevron-10px';
|
9
10
|
import '../icon/icon.js';
|
@@ -41,7 +42,7 @@ var TrayIcon = /*#__PURE__*/function (_Component) {
|
|
41
42
|
[modules_47759f5e.rotatable]: rotatable,
|
42
43
|
[modules_47759f5e.rotated]: rotatable && restProps.active
|
43
44
|
});
|
44
|
-
return /*#__PURE__*/
|
45
|
+
return /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
45
46
|
className: classes
|
46
47
|
}));
|
47
48
|
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import { Component, HTMLAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export default class Tray extends Component<HTMLAttributes<HTMLElement>> {
|
4
4
|
static propTypes: {
|
5
5
|
className: PropTypes.Requireable<string>;
|
6
6
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
7
7
|
};
|
8
|
-
render():
|
8
|
+
render(): import("react").JSX.Element;
|
9
9
|
}
|
@@ -1,15 +1,17 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
|
-
import
|
3
|
+
import { Children, Component } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import classNames from 'classnames';
|
6
6
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
7
8
|
|
8
9
|
var _excluded = ["children", "className"];
|
9
10
|
var wrapChild = function wrapChild(child) {
|
10
|
-
return child && /*#__PURE__*/
|
11
|
-
className: modules_47759f5e.trayItem
|
12
|
-
|
11
|
+
return child && /*#__PURE__*/jsx("div", {
|
12
|
+
className: modules_47759f5e.trayItem,
|
13
|
+
children: child
|
14
|
+
});
|
13
15
|
};
|
14
16
|
var Tray = /*#__PURE__*/function (_Component) {
|
15
17
|
function Tray() {
|
@@ -25,9 +27,10 @@ var Tray = /*#__PURE__*/function (_Component) {
|
|
25
27
|
className = _this$props.className,
|
26
28
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
27
29
|
var classes = classNames(modules_47759f5e.tray, className);
|
28
|
-
return /*#__PURE__*/
|
29
|
-
className: classes
|
30
|
-
|
30
|
+
return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
31
|
+
className: classes,
|
32
|
+
children: Children.map(children, wrapChild)
|
33
|
+
}));
|
31
34
|
}
|
32
35
|
}]);
|
33
36
|
}(Component);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { HTMLAttributes, ComponentType } from 'react';
|
2
2
|
/**
|
3
3
|
* @name Heading
|
4
4
|
*/
|
@@ -11,15 +11,15 @@ export declare enum Levels {
|
|
11
11
|
export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
12
12
|
level?: Levels | undefined;
|
13
13
|
}
|
14
|
-
declare const Heading:
|
14
|
+
declare const Heading: ComponentType<HeadingProps> & {
|
15
15
|
Levels: typeof Levels;
|
16
16
|
};
|
17
17
|
export default Heading;
|
18
18
|
export interface H1Props extends HTMLAttributes<HTMLHeadingElement> {
|
19
19
|
caps?: boolean | null | undefined;
|
20
20
|
}
|
21
|
-
declare const H1:
|
22
|
-
declare const H2:
|
23
|
-
declare const H3:
|
24
|
-
declare const H4:
|
21
|
+
declare const H1: ComponentType<H1Props>;
|
22
|
+
declare const H2: ComponentType<HTMLAttributes<HTMLHeadingElement>>;
|
23
|
+
declare const H3: ComponentType<HTMLAttributes<HTMLHeadingElement>>;
|
24
|
+
declare const H4: ComponentType<HTMLAttributes<HTMLHeadingElement>>;
|
25
25
|
export { H1, H2, H3, H4 };
|
@@ -1,15 +1,13 @@
|
|
1
|
-
import { c as _objectWithoutProperties,
|
2
|
-
import
|
1
|
+
import { c as _objectWithoutProperties, d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { memo } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import deprecate from 'util-deprecate';
|
6
6
|
import { m as modules_901b77ec } from '../_helpers/heading.js';
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
7
8
|
|
8
9
|
var _excluded = ["children", "className", "level"],
|
9
10
|
_excluded2 = ["className", "caps"];
|
10
|
-
/**
|
11
|
-
* @name Heading
|
12
|
-
*/
|
13
11
|
var Levels;
|
14
12
|
(function (Levels) {
|
15
13
|
Levels[Levels["H1"] = 1] = "H1";
|
@@ -28,9 +26,10 @@ var HeadingMemo = /*#__PURE__*/memo(function Heading(_ref) {
|
|
28
26
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
29
27
|
var classes = classNames(modules_901b77ec.heading, className);
|
30
28
|
var Tag = level <= Levels.H4 ? "h".concat(level) : fallbackHeading();
|
31
|
-
return /*#__PURE__*/
|
32
|
-
className: classes
|
33
|
-
|
29
|
+
return /*#__PURE__*/jsx(Tag, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
30
|
+
className: classes,
|
31
|
+
children: children
|
32
|
+
}));
|
34
33
|
});
|
35
34
|
var Heading = HeadingMemo;
|
36
35
|
Heading.propTypes = {
|
@@ -47,7 +46,7 @@ function makeHeading(level, useCaps) {
|
|
47
46
|
var classes = classNames(className, {
|
48
47
|
[modules_901b77ec.caps]: useCaps && caps
|
49
48
|
});
|
50
|
-
return /*#__PURE__*/
|
49
|
+
return /*#__PURE__*/jsx(Heading, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
51
50
|
level: level,
|
52
51
|
className: classes
|
53
52
|
}));
|
package/components/http/http.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2,
|
1
|
+
import { a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, i as _slicedToArray, e as _classCallCheck, f as _callSuper, _ as _defineProperty, g as _asyncToGenerator, h as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.index-of.js';
|
4
4
|
import 'core-js/modules/es.array.iterator.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as _inherits, b as _createClass,
|
1
|
+
import { a as _inherits, b as _createClass, j as _toConsumableArray, d as _objectSpread2, k as _createForOfIteratorHelper, e as _classCallCheck, f as _callSuper, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.array.index-of.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as _defineProperty, b as _createClass,
|
1
|
+
import { _ as _defineProperty, b as _createClass, e as _classCallCheck, g as _asyncToGenerator, h as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.filter.js';
|
4
4
|
import 'core-js/modules/es.array.index-of.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { g as _asyncToGenerator, h as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import HTTP from '../http/http.js';
|
4
4
|
import 'core-js/modules/es.array.index-of.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { b as _createClass,
|
1
|
+
import { b as _createClass, e as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.index-of.js';
|
4
4
|
import 'core-js/modules/es.array.iterator.js';
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import * as React from 'react';
|
2
|
+
import { useEffect } from 'react';
|
2
3
|
import { getTranslations, translate, setTranslations } from './i18n.js';
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
3
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
4
6
|
import 'core-js/modules/es.array.iterator.js';
|
5
7
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -16,12 +18,13 @@ var I18nContextHolder = function I18nContextHolder(_ref) {
|
|
16
18
|
useEffect(function () {
|
17
19
|
setTranslations(messages);
|
18
20
|
}, [messages]);
|
19
|
-
return /*#__PURE__*/
|
21
|
+
return /*#__PURE__*/jsx(I18nContext.Provider, {
|
20
22
|
value: {
|
21
23
|
messages,
|
22
24
|
translate
|
23
|
-
}
|
24
|
-
|
25
|
+
},
|
26
|
+
children: children
|
27
|
+
});
|
25
28
|
};
|
26
29
|
|
27
30
|
export { I18nContext, I18nContextHolder };
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @name Icon
|
3
3
|
*/
|
4
|
-
import
|
4
|
+
import { PureComponent, ComponentType, SVGAttributes, HTMLAttributes } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import { Color, Size } from './icon__constants';
|
7
7
|
export type IconType = ComponentType<SVGAttributes<SVGSVGElement>>;
|
@@ -37,7 +37,7 @@ export default class Icon extends PureComponent<IconProps> {
|
|
37
37
|
width: number | undefined;
|
38
38
|
height: number | undefined;
|
39
39
|
} | undefined;
|
40
|
-
render():
|
40
|
+
render(): import("react").JSX.Element | null;
|
41
41
|
}
|
42
42
|
export type IconAttrs = JSX.LibraryManagedAttributes<typeof Icon, IconProps>;
|
43
43
|
export { Color, Size };
|
package/components/icon/icon.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties,
|
2
|
-
import
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import { PureComponent } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import deprecate from 'util-deprecate';
|
6
6
|
import { Color, Size } from './icon__constants.js';
|
7
7
|
import { m as modules_29747b80, I as IconSVG } from '../_helpers/icon__svg.js';
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
8
9
|
import 'core-js/modules/es.regexp.exec.js';
|
9
10
|
import 'core-js/modules/es.string.replace.js';
|
10
11
|
import 'core-js/modules/es.string.starts-with.js';
|
@@ -74,14 +75,15 @@ var Icon = /*#__PURE__*/function (_PureComponent) {
|
|
74
75
|
[modules_29747b80[color]]: !!color,
|
75
76
|
[modules_29747b80.loading]: loading
|
76
77
|
}, className);
|
77
|
-
return /*#__PURE__*/
|
78
|
-
className: classes
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
78
|
+
return /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
79
|
+
className: classes,
|
80
|
+
children: typeof Glyph === 'string' ? /*#__PURE__*/jsx(IconSVG, {
|
81
|
+
src: Glyph,
|
82
|
+
style: this.getStyle()
|
83
|
+
}) : /*#__PURE__*/jsx(Glyph, {
|
84
|
+
className: modules_29747b80.glyph,
|
85
|
+
style: this.getStyle()
|
86
|
+
})
|
85
87
|
}));
|
86
88
|
}
|
87
89
|
}]);
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import { SVGAttributes } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
export interface IconSVGProps extends SVGAttributes<SVGSVGElement> {
|
4
4
|
src: string;
|
5
5
|
}
|
6
|
-
declare function IconSVG({ src, className, ...rest }: IconSVGProps):
|
6
|
+
declare function IconSVG({ src, className, ...rest }: IconSVGProps): import("react").JSX.Element;
|
7
7
|
declare namespace IconSVG {
|
8
8
|
var propTypes: {
|
9
9
|
className: PropTypes.Requireable<string>;
|
@@ -11,5 +11,5 @@ declare namespace IconSVG {
|
|
11
11
|
style: PropTypes.Requireable<object>;
|
12
12
|
};
|
13
13
|
}
|
14
|
-
declare const _default:
|
14
|
+
declare const _default: import("react").MemoExoticComponent<typeof IconSVG>;
|
15
15
|
export default _default;
|
@@ -7,6 +7,7 @@ import 'classnames';
|
|
7
7
|
import 'prop-types';
|
8
8
|
import '../global/memoize.js';
|
9
9
|
export { I as default } from '../_helpers/icon__svg.js';
|
10
|
+
import 'react/jsx-runtime';
|
10
11
|
import 'core-js/modules/es.array.iterator.js';
|
11
12
|
import 'core-js/modules/es.map.js';
|
12
13
|
import 'core-js/modules/es.object.to-string.js';
|
package/components/icon/index.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent, Ref, ComponentType, InputHTMLAttributes, TextareaHTMLAttributes, ReactNode } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import { ControlsHeight } from '../global/controls-height';
|
3
4
|
import { LabelType } from '../control-label/control-label';
|
4
5
|
declare function noop(): void;
|
@@ -22,8 +23,8 @@ export interface InputBaseProps {
|
|
22
23
|
inputClassName?: string | null | undefined;
|
23
24
|
label?: ReactNode;
|
24
25
|
labelType?: LabelType;
|
25
|
-
active?: boolean | null | undefined;
|
26
26
|
error?: ReactNode | null | undefined;
|
27
|
+
help?: ReactNode | null | undefined;
|
27
28
|
borderless?: boolean | null | undefined;
|
28
29
|
onClear?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | null | undefined;
|
29
30
|
icon?: string | ComponentType | null | undefined;
|
@@ -13,7 +13,9 @@ import '../i18n/i18n-context.js';
|
|
13
13
|
import '../global/composeRefs.js';
|
14
14
|
import '../global/controls-height.js';
|
15
15
|
import '../control-label/control-label.js';
|
16
|
+
import '../control-help/control-help.js';
|
16
17
|
export { I as Input, S as Size, I as default } from '../_helpers/input.js';
|
18
|
+
import 'react/jsx-runtime';
|
17
19
|
import '@jetbrains/icons/chevron-10px';
|
18
20
|
import '../link/clickableLink.js';
|
19
21
|
import '../_helpers/button__classes.js';
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import
|
2
|
-
export declare const PhaseContext:
|
1
|
+
import { ComponentType } from 'react';
|
2
|
+
export declare const PhaseContext: import("react").Context<number | null>;
|
3
3
|
type ScrollHandler = (element: Element) => void;
|
4
|
-
export declare const ScrollHandlerContext:
|
4
|
+
export declare const ScrollHandlerContext: import("react").Context<ScrollHandler | null>;
|
5
5
|
export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>): {
|
6
6
|
new (props: P): {
|
7
7
|
state: {
|
8
8
|
phase: null;
|
9
9
|
};
|
10
10
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
11
|
-
render():
|
11
|
+
render(): import("react").JSX.Element;
|
12
12
|
context: unknown;
|
13
13
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
14
14
|
forceUpdate(callback?: (() => void) | undefined): void;
|
15
15
|
readonly props: Readonly<P>;
|
16
16
|
refs: {
|
17
|
-
[key: string]:
|
17
|
+
[key: string]: import("react").ReactInstance;
|
18
18
|
};
|
19
19
|
componentDidMount?(): void;
|
20
20
|
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
|
21
21
|
componentWillUnmount?(): void;
|
22
|
-
componentDidCatch?(error: Error, errorInfo:
|
22
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
23
23
|
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any;
|
24
24
|
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void;
|
25
25
|
componentWillMount?(): void;
|
@@ -34,18 +34,18 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
34
34
|
phase: null;
|
35
35
|
};
|
36
36
|
onContentScroll: ({ scrollTop, scrollHeight, clientHeight }: Element) => void;
|
37
|
-
render():
|
37
|
+
render(): import("react").JSX.Element;
|
38
38
|
context: unknown;
|
39
39
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
40
40
|
forceUpdate(callback?: (() => void) | undefined): void;
|
41
41
|
readonly props: Readonly<P>;
|
42
42
|
refs: {
|
43
|
-
[key: string]:
|
43
|
+
[key: string]: import("react").ReactInstance;
|
44
44
|
};
|
45
45
|
componentDidMount?(): void;
|
46
46
|
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): boolean;
|
47
47
|
componentWillUnmount?(): void;
|
48
|
-
componentDidCatch?(error: Error, errorInfo:
|
48
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
49
49
|
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>): any;
|
50
50
|
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<{}>, snapshot?: any): void;
|
51
51
|
componentWillMount?(): void;
|
@@ -55,7 +55,7 @@ export default function adaptiveIslandHOC<P>(ComposedComponent: ComponentType<P>
|
|
55
55
|
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
56
56
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<{}>, nextContext: any): void;
|
57
57
|
};
|
58
|
-
propTypes:
|
59
|
-
contextType?:
|
58
|
+
propTypes: import("react").WeakValidationMap<P> | undefined;
|
59
|
+
contextType?: import("react").Context<any> | undefined;
|
60
60
|
};
|
61
61
|
export {};
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
-
import
|
3
|
+
import { createContext, Component } from 'react';
|
4
4
|
import { interpolateLinear } from '../global/linear-function.js';
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
5
6
|
|
6
7
|
var TITLE_RESIZE_END = 20;
|
7
8
|
var TITLE_RESIZE_THRESHOLD = 36;
|
@@ -38,11 +39,13 @@ function adaptiveIslandHOC(ComposedComponent) {
|
|
38
39
|
return _createClass(AdaptiveIsland, [{
|
39
40
|
key: "render",
|
40
41
|
value: function render() {
|
41
|
-
return /*#__PURE__*/
|
42
|
-
value: this.state.phase
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
return /*#__PURE__*/jsx(PhaseContext.Provider, {
|
43
|
+
value: this.state.phase,
|
44
|
+
children: /*#__PURE__*/jsx(ScrollHandlerContext.Provider, {
|
45
|
+
value: this.onContentScroll,
|
46
|
+
children: /*#__PURE__*/jsx(ComposedComponent, _objectSpread2({}, this.props))
|
47
|
+
})
|
48
|
+
});
|
46
49
|
}
|
47
50
|
}]);
|
48
51
|
}(Component), _defineProperty(_AdaptiveIsland, "propTypes", ComposedComponent.propTypes), _AdaptiveIsland;
|