@jetbrains/ring-ui-built 6.0.5-beta.0
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/LICENSE.txt +202 -0
- package/README.md +99 -0
- package/babel.config.js +25 -0
- package/components/_helpers/_rollupPluginBabelHelpers.js +648 -0
- package/components/_helpers/anchor.js +31 -0
- package/components/_helpers/badge.js +3 -0
- package/components/_helpers/button__classes.js +34 -0
- package/components/_helpers/caption.js +31 -0
- package/components/_helpers/card.js +132 -0
- package/components/_helpers/date-picker.js +3 -0
- package/components/_helpers/dialog__body-scroll-preventer.js +54 -0
- package/components/_helpers/grid.js +3 -0
- package/components/_helpers/header.js +3 -0
- package/components/_helpers/heading.js +3 -0
- package/components/_helpers/icon__svg.js +75 -0
- package/components/_helpers/input.js +235 -0
- package/components/_helpers/island.js +3 -0
- package/components/_helpers/link.js +3 -0
- package/components/_helpers/list.js +3 -0
- package/components/_helpers/query-assist__suggestions.js +102 -0
- package/components/_helpers/select__filter.js +94 -0
- package/components/_helpers/services-link.js +48 -0
- package/components/_helpers/sidebar.js +123 -0
- package/components/_helpers/tab-link.js +34 -0
- package/components/_helpers/table.js +3 -0
- package/components/_helpers/theme.js +95 -0
- package/components/_helpers/title.js +103 -0
- package/components/alert/alert.d.ts +113 -0
- package/components/alert/alert.js +292 -0
- package/components/alert/container.d.ts +15 -0
- package/components/alert/container.js +52 -0
- package/components/alert-service/alert-service.d.ts +36 -0
- package/components/alert-service/alert-service.js +218 -0
- package/components/analytics/analytics.d.ts +18 -0
- package/components/analytics/analytics.js +31 -0
- package/components/analytics/analytics__custom-plugin.d.ts +28 -0
- package/components/analytics/analytics__custom-plugin.js +90 -0
- package/components/auth/auth.d.ts +3 -0
- package/components/auth/auth.js +130 -0
- package/components/auth/auth__core.d.ts +236 -0
- package/components/auth/auth__core.js +1650 -0
- package/components/auth/background-flow.d.ts +31 -0
- package/components/auth/background-flow.js +146 -0
- package/components/auth/down-notification.d.ts +15 -0
- package/components/auth/down-notification.js +155 -0
- package/components/auth/iframe-flow.d.ts +20 -0
- package/components/auth/iframe-flow.js +192 -0
- package/components/auth/request-builder.d.ts +47 -0
- package/components/auth/request-builder.js +101 -0
- package/components/auth/response-parser.d.ts +70 -0
- package/components/auth/response-parser.js +137 -0
- package/components/auth/storage.d.ts +112 -0
- package/components/auth/storage.js +422 -0
- package/components/auth/token-validator.d.ts +93 -0
- package/components/auth/token-validator.js +267 -0
- package/components/auth/window-flow.d.ts +26 -0
- package/components/auth/window-flow.js +153 -0
- package/components/auth-dialog/auth-dialog.d.ts +60 -0
- package/components/auth-dialog/auth-dialog.js +219 -0
- package/components/auth-dialog-service/auth-dialog-service.d.ts +6 -0
- package/components/auth-dialog-service/auth-dialog-service.js +90 -0
- package/components/avatar/avatar-example-datauri.d.ts +1 -0
- package/components/avatar/avatar-example-datauri.js +4 -0
- package/components/avatar/avatar.d.ts +52 -0
- package/components/avatar/avatar.js +180 -0
- package/components/avatar/fallback-avatar.d.ts +17 -0
- package/components/avatar/fallback-avatar.js +150 -0
- package/components/badge/badge.d.ts +24 -0
- package/components/badge/badge.js +59 -0
- package/components/button/button.d.ts +67 -0
- package/components/button/button.js +131 -0
- package/components/button/button__classes.d.ts +2 -0
- package/components/button/button__classes.js +2 -0
- package/components/button-group/button-group.d.ts +18 -0
- package/components/button-group/button-group.js +48 -0
- package/components/button-group/caption.d.ts +8 -0
- package/components/button-group/caption.js +5 -0
- package/components/button-set/button-set.d.ts +16 -0
- package/components/button-set/button-set.js +47 -0
- package/components/button-toolbar/button-toolbar.d.ts +16 -0
- package/components/button-toolbar/button-toolbar.js +46 -0
- package/components/caret/caret.d.ts +66 -0
- package/components/caret/caret.js +258 -0
- package/components/checkbox/checkbox.d.ts +45 -0
- package/components/checkbox/checkbox.js +130 -0
- package/components/clipboard/clipboard-fallback.d.ts +2 -0
- package/components/clipboard/clipboard-fallback.js +42 -0
- package/components/clipboard/clipboard.d.ts +5 -0
- package/components/clipboard/clipboard.js +183 -0
- package/components/code/code.d.ts +43 -0
- package/components/code/code.js +192 -0
- package/components/confirm/confirm.d.ts +48 -0
- package/components/confirm/confirm.js +151 -0
- package/components/confirm-service/confirm-service.d.ts +21 -0
- package/components/confirm-service/confirm-service.js +139 -0
- package/components/content-layout/content-layout.d.ts +26 -0
- package/components/content-layout/content-layout.js +79 -0
- package/components/content-layout/sidebar.d.ts +31 -0
- package/components/content-layout/sidebar.js +7 -0
- package/components/contenteditable/contenteditable.d.ts +47 -0
- package/components/contenteditable/contenteditable.js +84 -0
- package/components/control-label/control-label.d.ts +11 -0
- package/components/control-label/control-label.js +36 -0
- package/components/data-list/data-list.d.ts +85 -0
- package/components/data-list/data-list.js +246 -0
- package/components/data-list/data-list.mock.d.ts +16 -0
- package/components/data-list/data-list.mock.js +192 -0
- package/components/data-list/item.d.ts +50 -0
- package/components/data-list/item.js +234 -0
- package/components/data-list/selection.d.ts +16 -0
- package/components/data-list/selection.js +146 -0
- package/components/data-list/title.d.ts +26 -0
- package/components/data-list/title.js +28 -0
- package/components/date-picker/consts.d.ts +98 -0
- package/components/date-picker/consts.js +46 -0
- package/components/date-picker/date-input.d.ts +47 -0
- package/components/date-picker/date-input.js +177 -0
- package/components/date-picker/date-picker.d.ts +77 -0
- package/components/date-picker/date-picker.js +402 -0
- package/components/date-picker/date-popup.d.ts +55 -0
- package/components/date-picker/date-popup.js +488 -0
- package/components/date-picker/day.d.ts +30 -0
- package/components/date-picker/day.js +133 -0
- package/components/date-picker/formats.d.ts +2 -0
- package/components/date-picker/formats.js +3 -0
- package/components/date-picker/month-names.d.ts +13 -0
- package/components/date-picker/month-names.js +110 -0
- package/components/date-picker/month-slider.d.ts +29 -0
- package/components/date-picker/month-slider.js +93 -0
- package/components/date-picker/month.d.ts +14 -0
- package/components/date-picker/month.js +58 -0
- package/components/date-picker/months.d.ts +11 -0
- package/components/date-picker/months.js +133 -0
- package/components/date-picker/weekdays.d.ts +13 -0
- package/components/date-picker/weekdays.js +39 -0
- package/components/date-picker/years.d.ts +25 -0
- package/components/date-picker/years.js +134 -0
- package/components/dialog/dialog.d.ts +64 -0
- package/components/dialog/dialog.js +238 -0
- package/components/dialog/dialog__body-scroll-preventer.d.ts +9 -0
- package/components/dialog/dialog__body-scroll-preventer.js +6 -0
- package/components/dropdown/anchor.d.ts +11 -0
- package/components/dropdown/anchor.js +24 -0
- package/components/dropdown/dropdown.d.ts +87 -0
- package/components/dropdown/dropdown.js +247 -0
- package/components/dropdown-menu/dropdown-menu.d.ts +36 -0
- package/components/dropdown-menu/dropdown-menu.js +194 -0
- package/components/editable-heading/editable-heading.d.ts +32 -0
- package/components/editable-heading/editable-heading.js +245 -0
- package/components/error-bubble/error-bubble.d.ts +18 -0
- package/components/error-bubble/error-bubble.js +86 -0
- package/components/error-message/error-message.d.ts +27 -0
- package/components/error-message/error-message.js +78 -0
- package/components/footer/footer.d.ts +28 -0
- package/components/footer/footer.js +118 -0
- package/components/global/compose.d.ts +7 -0
- package/components/global/compose.js +17 -0
- package/components/global/composeRefs.d.ts +3 -0
- package/components/global/composeRefs.js +19 -0
- package/components/global/controls-height.d.ts +9 -0
- package/components/global/controls-height.js +19 -0
- package/components/global/create-stateful-context.d.ts +27 -0
- package/components/global/create-stateful-context.js +49 -0
- package/components/global/data-tests.d.ts +3 -0
- package/components/global/data-tests.js +30 -0
- package/components/global/dom.d.ts +37 -0
- package/components/global/dom.js +150 -0
- package/components/global/focus-sensor-hoc.d.ts +19 -0
- package/components/global/focus-sensor-hoc.js +165 -0
- package/components/global/fuzzy-highlight.d.ts +11 -0
- package/components/global/fuzzy-highlight.js +90 -0
- package/components/global/get-event-key.d.ts +2 -0
- package/components/global/get-event-key.js +101 -0
- package/components/global/get-uid.d.ts +1 -0
- package/components/global/get-uid.js +22 -0
- package/components/global/inject-styles.d.ts +3 -0
- package/components/global/inject-styles.js +22 -0
- package/components/global/linear-function.d.ts +6 -0
- package/components/global/linear-function.js +15 -0
- package/components/global/listeners.d.ts +8 -0
- package/components/global/listeners.js +58 -0
- package/components/global/memoize.d.ts +1 -0
- package/components/global/memoize.js +23 -0
- package/components/global/normalize-indent.d.ts +1 -0
- package/components/global/normalize-indent.js +61 -0
- package/components/global/promise-with-timeout.d.ts +5 -0
- package/components/global/promise-with-timeout.js +19 -0
- package/components/global/prop-types.d.ts +4 -0
- package/components/global/prop-types.js +9 -0
- package/components/global/react-dom-renderer.d.ts +16 -0
- package/components/global/react-dom-renderer.js +53 -0
- package/components/global/react-render-adapter.d.ts +1 -0
- package/components/global/react-render-adapter.js +6 -0
- package/components/global/rerender-hoc.d.ts +10 -0
- package/components/global/rerender-hoc.js +46 -0
- package/components/global/schedule-raf.d.ts +1 -0
- package/components/global/schedule-raf.js +28 -0
- package/components/global/sniffer.d.ts +3 -0
- package/components/global/sniffer.js +6 -0
- package/components/global/theme.d.ts +21 -0
- package/components/global/theme.js +40 -0
- package/components/global/trivial-template-tag.d.ts +1 -0
- package/components/global/trivial-template-tag.js +21 -0
- package/components/global/typescript-utils.d.ts +2 -0
- package/components/global/typescript-utils.js +8 -0
- package/components/global/url.d.ts +57 -0
- package/components/global/url.js +141 -0
- package/components/global/use-event-callback.d.ts +1 -0
- package/components/global/use-event-callback.js +17 -0
- package/components/global/variables.d.ts +89 -0
- package/components/global/variables.js +1 -0
- package/components/grid/col.d.ts +31 -0
- package/components/grid/col.js +81 -0
- package/components/grid/grid.d.ts +14 -0
- package/components/grid/grid.js +47 -0
- package/components/grid/row.d.ts +40 -0
- package/components/grid/row.js +70 -0
- package/components/group/group.d.ts +12 -0
- package/components/group/group.js +39 -0
- package/components/header/header.d.ts +34 -0
- package/components/header/header.js +184 -0
- package/components/header/logo.d.ts +14 -0
- package/components/header/logo.js +51 -0
- package/components/header/profile.d.ts +75 -0
- package/components/header/profile.js +252 -0
- package/components/header/services-link.d.ts +25 -0
- package/components/header/services-link.js +13 -0
- package/components/header/services.d.ts +33 -0
- package/components/header/services.js +172 -0
- package/components/header/smart-profile.d.ts +36 -0
- package/components/header/smart-profile.js +298 -0
- package/components/header/smart-services.d.ts +26 -0
- package/components/header/smart-services.js +189 -0
- package/components/header/tray-icon.d.ts +32 -0
- package/components/header/tray-icon.js +57 -0
- package/components/header/tray.d.ts +9 -0
- package/components/header/tray.js +41 -0
- package/components/heading/heading.d.ts +25 -0
- package/components/heading/heading.js +69 -0
- package/components/http/http.d.ts +61 -0
- package/components/http/http.js +385 -0
- package/components/http/http.mock.d.ts +20 -0
- package/components/http/http.mock.js +112 -0
- package/components/hub-source/hub-source.d.ts +44 -0
- package/components/hub-source/hub-source.js +215 -0
- package/components/hub-source/hub-source__user.d.ts +4 -0
- package/components/hub-source/hub-source__user.js +59 -0
- package/components/hub-source/hub-source__users-groups.d.ts +24 -0
- package/components/hub-source/hub-source__users-groups.js +84 -0
- package/components/i18n/i18n-context.d.ts +13 -0
- package/components/i18n/i18n-context.js +27 -0
- package/components/i18n/i18n.d.ts +59 -0
- package/components/i18n/i18n.js +139 -0
- package/components/icon/icon.d.ts +43 -0
- package/components/icon/icon.js +109 -0
- package/components/icon/icon__constants.d.ts +30 -0
- package/components/icon/icon__constants.js +34 -0
- package/components/icon/icon__svg.d.ts +15 -0
- package/components/icon/icon__svg.js +14 -0
- package/components/icon/index.d.ts +2 -0
- package/components/icon/index.js +17 -0
- package/components/input/input.d.ts +77 -0
- package/components/input/input.js +35 -0
- package/components/island/adaptive-island-hoc.d.ts +61 -0
- package/components/island/adaptive-island-hoc.js +53 -0
- package/components/island/content.d.ts +43 -0
- package/components/island/content.js +151 -0
- package/components/island/header.d.ts +8 -0
- package/components/island/header.js +99 -0
- package/components/island/island.d.ts +78 -0
- package/components/island/island.js +60 -0
- package/components/island-legacy/content-legacy.d.ts +10 -0
- package/components/island-legacy/content-legacy.js +34 -0
- package/components/island-legacy/header-legacy.d.ts +10 -0
- package/components/island-legacy/header-legacy.js +36 -0
- package/components/island-legacy/island-legacy.d.ts +12 -0
- package/components/island-legacy/island-legacy.js +36 -0
- package/components/link/clickableLink.d.ts +20 -0
- package/components/link/clickableLink.js +69 -0
- package/components/link/link.d.ts +138 -0
- package/components/link/link.js +86 -0
- package/components/list/consts.d.ts +77 -0
- package/components/list/consts.js +27 -0
- package/components/list/list.d.ts +206 -0
- package/components/list/list.js +795 -0
- package/components/list/list__custom.d.ts +6 -0
- package/components/list/list__custom.js +92 -0
- package/components/list/list__hint.d.ts +15 -0
- package/components/list/list__hint.js +33 -0
- package/components/list/list__item.d.ts +8 -0
- package/components/list/list__item.js +234 -0
- package/components/list/list__link.d.ts +9 -0
- package/components/list/list__link.js +76 -0
- package/components/list/list__separator.d.ts +5 -0
- package/components/list/list__separator.js +39 -0
- package/components/list/list__title.d.ts +5 -0
- package/components/list/list__title.js +48 -0
- package/components/list/list__users-groups-source.d.ts +27 -0
- package/components/list/list__users-groups-source.js +190 -0
- package/components/loader/loader.d.ts +28 -0
- package/components/loader/loader.js +91 -0
- package/components/loader/loader__core.d.ts +75 -0
- package/components/loader/loader__core.js +313 -0
- package/components/loader-inline/loader-inline.d.ts +18 -0
- package/components/loader-inline/loader-inline.js +50 -0
- package/components/loader-screen/loader-screen.d.ts +17 -0
- package/components/loader-screen/loader-screen.js +62 -0
- package/components/login-dialog/login-dialog.d.ts +47 -0
- package/components/login-dialog/login-dialog.js +212 -0
- package/components/login-dialog/service.d.ts +2 -0
- package/components/login-dialog/service.js +94 -0
- package/components/markdown/markdown.d.ts +12 -0
- package/components/markdown/markdown.js +43 -0
- package/components/message/message.d.ts +55 -0
- package/components/message/message.js +265 -0
- package/components/old-browsers-message/old-browsers-message.d.ts +2 -0
- package/components/old-browsers-message/old-browsers-message.js +92 -0
- package/components/old-browsers-message/old-browsers-message__stop.d.ts +1 -0
- package/components/old-browsers-message/old-browsers-message__stop.js +11 -0
- package/components/old-browsers-message/white-list.d.ts +2 -0
- package/components/old-browsers-message/white-list.js +37 -0
- package/components/pager/pager.d.ts +78 -0
- package/components/pager/pager.js +385 -0
- package/components/panel/panel.d.ts +12 -0
- package/components/panel/panel.js +39 -0
- package/components/permissions/permissions.d.ts +111 -0
- package/components/permissions/permissions.js +220 -0
- package/components/permissions/permissions__cache.d.ts +93 -0
- package/components/permissions/permissions__cache.js +257 -0
- package/components/popup/popup.consts.d.ts +37 -0
- package/components/popup/popup.consts.js +44 -0
- package/components/popup/popup.d.ts +147 -0
- package/components/popup/popup.js +419 -0
- package/components/popup/popup.target.d.ts +7 -0
- package/components/popup/popup.target.js +24 -0
- package/components/popup/position.d.ts +30 -0
- package/components/popup/position.js +270 -0
- package/components/popup-menu/popup-menu.d.ts +80 -0
- package/components/popup-menu/popup-menu.js +136 -0
- package/components/progress-bar/progress-bar.d.ts +58 -0
- package/components/progress-bar/progress-bar.js +113 -0
- package/components/query-assist/query-assist.d.ts +306 -0
- package/components/query-assist/query-assist.js +1092 -0
- package/components/query-assist/query-assist__suggestions.d.ts +29 -0
- package/components/query-assist/query-assist__suggestions.js +70 -0
- package/components/radio/radio.d.ts +18 -0
- package/components/radio/radio.js +48 -0
- package/components/radio/radio__item.d.ts +28 -0
- package/components/radio/radio__item.js +88 -0
- package/components/select/select.d.ts +276 -0
- package/components/select/select.js +1285 -0
- package/components/select/select__filter.d.ts +19 -0
- package/components/select/select__filter.js +80 -0
- package/components/select/select__popup.d.ts +166 -0
- package/components/select/select__popup.js +626 -0
- package/components/shortcuts/core.d.ts +74 -0
- package/components/shortcuts/core.js +247 -0
- package/components/shortcuts/shortcut-title.d.ts +1 -0
- package/components/shortcuts/shortcut-title.js +56 -0
- package/components/shortcuts/shortcuts-hoc.d.ts +65 -0
- package/components/shortcuts/shortcuts-hoc.js +59 -0
- package/components/shortcuts/shortcuts.d.ts +28 -0
- package/components/shortcuts/shortcuts.js +90 -0
- package/components/storage/storage.d.ts +18 -0
- package/components/storage/storage.js +89 -0
- package/components/storage/storage__fallback.d.ts +79 -0
- package/components/storage/storage__fallback.js +251 -0
- package/components/storage/storage__local.d.ts +38 -0
- package/components/storage/storage__local.js +215 -0
- package/components/style.css +1 -0
- package/components/tab-trap/tab-trap.d.ts +43 -0
- package/components/tab-trap/tab-trap.js +179 -0
- package/components/table/cell.d.ts +13 -0
- package/components/table/cell.js +37 -0
- package/components/table/disable-hover-hoc.d.ts +64 -0
- package/components/table/disable-hover-hoc.js +62 -0
- package/components/table/header-cell.d.ts +43 -0
- package/components/table/header-cell.js +109 -0
- package/components/table/header.d.ts +56 -0
- package/components/table/header.js +151 -0
- package/components/table/multitable.d.ts +25 -0
- package/components/table/multitable.js +139 -0
- package/components/table/row-with-focus-sensor.d.ts +18 -0
- package/components/table/row-with-focus-sensor.js +115 -0
- package/components/table/row.d.ts +59 -0
- package/components/table/row.js +297 -0
- package/components/table/selection-adapter.d.ts +5 -0
- package/components/table/selection-adapter.js +14 -0
- package/components/table/selection-shortcuts-hoc.d.ts +17 -0
- package/components/table/selection-shortcuts-hoc.js +204 -0
- package/components/table/selection.d.ts +47 -0
- package/components/table/selection.js +256 -0
- package/components/table/smart-table.d.ts +64 -0
- package/components/table/smart-table.js +145 -0
- package/components/table/table.d.ts +159 -0
- package/components/table/table.js +459 -0
- package/components/tabs/collapsible-more.d.ts +29 -0
- package/components/tabs/collapsible-more.js +217 -0
- package/components/tabs/collapsible-tab.d.ts +16 -0
- package/components/tabs/collapsible-tab.js +88 -0
- package/components/tabs/collapsible-tabs.d.ts +43 -0
- package/components/tabs/collapsible-tabs.js +349 -0
- package/components/tabs/custom-item.d.ts +9 -0
- package/components/tabs/custom-item.js +11 -0
- package/components/tabs/dumb-tabs.d.ts +35 -0
- package/components/tabs/dumb-tabs.js +184 -0
- package/components/tabs/smart-tabs.d.ts +20 -0
- package/components/tabs/smart-tabs.js +136 -0
- package/components/tabs/tab-link.d.ts +18 -0
- package/components/tabs/tab-link.js +13 -0
- package/components/tabs/tab.d.ts +27 -0
- package/components/tabs/tab.js +41 -0
- package/components/tabs/tabs.d.ts +7 -0
- package/components/tabs/tabs.js +94 -0
- package/components/tag/tag.d.ts +64 -0
- package/components/tag/tag.js +213 -0
- package/components/tags-input/tags-input.d.ts +138 -0
- package/components/tags-input/tags-input.js +529 -0
- package/components/tags-list/tags-list.d.ts +46 -0
- package/components/tags-list/tags-list.js +102 -0
- package/components/text/text.d.ts +23 -0
- package/components/text/text.js +57 -0
- package/components/toggle/toggle.d.ts +39 -0
- package/components/toggle/toggle.js +86 -0
- package/components/tooltip/tooltip.d.ts +65 -0
- package/components/tooltip/tooltip.js +227 -0
- package/components/user-agreement/service.d.ts +69 -0
- package/components/user-agreement/service.js +484 -0
- package/components/user-agreement/toolbox.eula.d.ts +2 -0
- package/components/user-agreement/toolbox.eula.js +3 -0
- package/components/user-agreement/user-agreement.d.ts +60 -0
- package/components/user-agreement/user-agreement.js +170 -0
- package/components/user-card/card.d.ts +70 -0
- package/components/user-card/card.js +76 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +20 -0
- package/components/user-card/smart-user-card-tooltip.js +168 -0
- package/components/user-card/tooltip.d.ts +36 -0
- package/components/user-card/tooltip.js +140 -0
- package/components/user-card/user-card.d.ts +11 -0
- package/components/user-card/user-card.js +81 -0
- package/jslint-xml.js +38 -0
- package/package.json +127 -0
- package/postcss.config.js +20 -0
- package/typings.d.ts +97 -0
- package/webpack.config.js +118 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
import React, { HTMLAttributes, PureComponent } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
export interface LoaderInlineProps extends HTMLAttributes<HTMLDivElement> {
|
4
|
+
'data-test'?: string | null | undefined;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* @name Loader Inline
|
8
|
+
*/
|
9
|
+
declare class LoaderInline extends PureComponent<LoaderInlineProps> {
|
10
|
+
static propTypes: {
|
11
|
+
className: PropTypes.Requireable<string>;
|
12
|
+
'data-test': PropTypes.Requireable<string>;
|
13
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
14
|
+
};
|
15
|
+
render(): React.JSX.Element;
|
16
|
+
}
|
17
|
+
export type LoaderInlineAtrrs = JSX.LibraryManagedAttributes<typeof LoaderInline, LoaderInlineProps>;
|
18
|
+
export default LoaderInline;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import React, { PureComponent } from 'react';
|
3
|
+
import classNames from 'classnames';
|
4
|
+
import PropTypes from 'prop-types';
|
5
|
+
import joinDataTestAttributes from '../global/data-tests.js';
|
6
|
+
import 'core-js/modules/es.array.reduce.js';
|
7
|
+
import 'core-js/modules/es.object.to-string.js';
|
8
|
+
import 'core-js/modules/es.object.entries.js';
|
9
|
+
import 'core-js/modules/es.array.concat.js';
|
10
|
+
|
11
|
+
var modules_e49a3529 = {"dark":"dark_rui_eb55","unit":"i__const_unit_1","light":"light_rui_2ac4","loader":"loader_rui_e6f2","spin":"spin_rui_e6f2","pulse":"pulse_rui_e6f2","children":"children_rui_e6f2"};
|
12
|
+
|
13
|
+
var _excluded = ["className", "data-test", "children"];
|
14
|
+
/**
|
15
|
+
* @name Loader Inline
|
16
|
+
*/
|
17
|
+
var LoaderInline = /*#__PURE__*/function (_PureComponent) {
|
18
|
+
_inherits(LoaderInline, _PureComponent);
|
19
|
+
var _super = _createSuper(LoaderInline);
|
20
|
+
function LoaderInline() {
|
21
|
+
_classCallCheck(this, LoaderInline);
|
22
|
+
return _super.apply(this, arguments);
|
23
|
+
}
|
24
|
+
_createClass(LoaderInline, [{
|
25
|
+
key: "render",
|
26
|
+
value: function render() {
|
27
|
+
var _this$props = this.props,
|
28
|
+
className = _this$props.className,
|
29
|
+
dataTest = _this$props['data-test'],
|
30
|
+
children = _this$props.children,
|
31
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
32
|
+
var classes = classNames(modules_e49a3529.loader, className);
|
33
|
+
var loader = /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
34
|
+
"data-test": joinDataTestAttributes('ring-loader-inline', dataTest),
|
35
|
+
className: classes
|
36
|
+
}));
|
37
|
+
return children ? /*#__PURE__*/React.createElement(React.Fragment, null, loader, /*#__PURE__*/React.createElement("span", {
|
38
|
+
className: modules_e49a3529.children
|
39
|
+
}, children)) : loader;
|
40
|
+
}
|
41
|
+
}]);
|
42
|
+
return LoaderInline;
|
43
|
+
}(PureComponent);
|
44
|
+
_defineProperty(LoaderInline, "propTypes", {
|
45
|
+
className: PropTypes.string,
|
46
|
+
'data-test': PropTypes.string,
|
47
|
+
children: PropTypes.node
|
48
|
+
});
|
49
|
+
|
50
|
+
export { LoaderInline as default };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React, { PureComponent } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import { LoaderProps } from '../loader/loader';
|
4
|
+
export interface LoaderScreenProps extends LoaderProps {
|
5
|
+
containerClassName?: string | null | undefined;
|
6
|
+
}
|
7
|
+
/**
|
8
|
+
* @name Loader Screen
|
9
|
+
*/
|
10
|
+
export default class LoaderScreen extends PureComponent<LoaderScreenProps> {
|
11
|
+
static propTypes: {
|
12
|
+
className: PropTypes.Requireable<string>;
|
13
|
+
containerClassName: PropTypes.Requireable<string>;
|
14
|
+
message: PropTypes.Requireable<string>;
|
15
|
+
};
|
16
|
+
render(): React.JSX.Element;
|
17
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import React, { PureComponent } from 'react';
|
3
|
+
import classNames from 'classnames';
|
4
|
+
import PropTypes from 'prop-types';
|
5
|
+
import Loader from '../loader/loader.js';
|
6
|
+
import 'core-js/modules/es.array.concat.js';
|
7
|
+
import '../global/data-tests.js';
|
8
|
+
import 'core-js/modules/es.array.reduce.js';
|
9
|
+
import 'core-js/modules/es.object.to-string.js';
|
10
|
+
import 'core-js/modules/es.object.entries.js';
|
11
|
+
import '../loader/loader__core.js';
|
12
|
+
import 'core-js/modules/es.regexp.exec.js';
|
13
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
14
|
+
import 'core-js/modules/es.array.filter.js';
|
15
|
+
import '../global/dom.js';
|
16
|
+
import 'core-js/modules/es.string.split.js';
|
17
|
+
import 'core-js/modules/es.array.iterator.js';
|
18
|
+
import 'core-js/modules/es.set.js';
|
19
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
20
|
+
|
21
|
+
var modules_122a82e9 = {"light":"light_rui_2ac4","loaderScreen":"loaderScreen_rui_c963","loader":"loader_rui_c963","loaderWithoutSpacing":"loaderWithoutSpacing_rui_c963"};
|
22
|
+
|
23
|
+
var _excluded = ["message", "className", "containerClassName"];
|
24
|
+
/**
|
25
|
+
* @name Loader Screen
|
26
|
+
*/
|
27
|
+
var LoaderScreen = /*#__PURE__*/function (_PureComponent) {
|
28
|
+
_inherits(LoaderScreen, _PureComponent);
|
29
|
+
var _super = _createSuper(LoaderScreen);
|
30
|
+
function LoaderScreen() {
|
31
|
+
_classCallCheck(this, LoaderScreen);
|
32
|
+
return _super.apply(this, arguments);
|
33
|
+
}
|
34
|
+
_createClass(LoaderScreen, [{
|
35
|
+
key: "render",
|
36
|
+
value: function render() {
|
37
|
+
var _this$props = this.props,
|
38
|
+
message = _this$props.message,
|
39
|
+
className = _this$props.className,
|
40
|
+
containerClassName = _this$props.containerClassName,
|
41
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
42
|
+
var containerClasses = classNames(containerClassName, modules_122a82e9.loaderScreen);
|
43
|
+
var loaderClasses = classNames(className, modules_122a82e9.loader, {
|
44
|
+
[modules_122a82e9.loaderWithoutSpacing]: !message
|
45
|
+
});
|
46
|
+
return /*#__PURE__*/React.createElement("div", {
|
47
|
+
className: containerClasses
|
48
|
+
}, /*#__PURE__*/React.createElement(Loader, _extends({}, restProps, {
|
49
|
+
message: message,
|
50
|
+
className: loaderClasses
|
51
|
+
})));
|
52
|
+
}
|
53
|
+
}]);
|
54
|
+
return LoaderScreen;
|
55
|
+
}(PureComponent);
|
56
|
+
_defineProperty(LoaderScreen, "propTypes", {
|
57
|
+
className: PropTypes.string,
|
58
|
+
containerClassName: PropTypes.string,
|
59
|
+
message: PropTypes.string
|
60
|
+
});
|
61
|
+
|
62
|
+
export { LoaderScreen as default };
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import React, { Component, ReactNode } from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
export interface LoginDialogProps {
|
4
|
+
onCancel: () => void;
|
5
|
+
show: boolean;
|
6
|
+
url: string;
|
7
|
+
renderFallbackLink: (loggingIn: boolean) => ReactNode;
|
8
|
+
showFallbackTimeout: number;
|
9
|
+
className?: string | undefined;
|
10
|
+
loader?: boolean | null | undefined;
|
11
|
+
loadingMessage?: string | null | undefined;
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* @name Login Dialog
|
15
|
+
*/
|
16
|
+
export default class LoginDialog extends Component<LoginDialogProps> {
|
17
|
+
static propTypes: {
|
18
|
+
show: PropTypes.Requireable<boolean>;
|
19
|
+
className: PropTypes.Requireable<string>;
|
20
|
+
url: PropTypes.Requireable<string>;
|
21
|
+
loader: PropTypes.Requireable<boolean>;
|
22
|
+
loadingMessage: PropTypes.Requireable<string>;
|
23
|
+
showFallbackTimeout: PropTypes.Requireable<number>;
|
24
|
+
renderFallbackLink: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
+
onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
26
|
+
};
|
27
|
+
static defaultProps: {
|
28
|
+
show: boolean;
|
29
|
+
url: string;
|
30
|
+
renderFallbackLink: () => null;
|
31
|
+
showFallbackTimeout: number;
|
32
|
+
};
|
33
|
+
state: {
|
34
|
+
loading: boolean;
|
35
|
+
loggingIn: boolean;
|
36
|
+
showFallbackLink: boolean;
|
37
|
+
height: number;
|
38
|
+
width: number;
|
39
|
+
};
|
40
|
+
componentDidMount(): void;
|
41
|
+
componentWillUnmount(): void;
|
42
|
+
showFallbackTimout?: number;
|
43
|
+
startFallbackCountdown(): void;
|
44
|
+
onMessage: (event: MessageEvent) => void;
|
45
|
+
render(): React.JSX.Element;
|
46
|
+
}
|
47
|
+
export type LoginDialogAttrs = JSX.LibraryManagedAttributes<typeof LoginDialog, LoginDialogProps>;
|
@@ -0,0 +1,212 @@
|
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.array.concat.js';
|
3
|
+
import React, { Component } from 'react';
|
4
|
+
import PropTypes from 'prop-types';
|
5
|
+
import Dialog from '../dialog/dialog.js';
|
6
|
+
import '../island/island.js';
|
7
|
+
import LoaderScreen from '../loader-screen/loader-screen.js';
|
8
|
+
import { HUB_AUTH_PAGE_OPENED } from '../auth/background-flow.js';
|
9
|
+
import ContentWrapper from '../island/content.js';
|
10
|
+
import 'react-dom';
|
11
|
+
import 'classnames';
|
12
|
+
import '@jetbrains/icons/close';
|
13
|
+
import '../global/get-uid.js';
|
14
|
+
import 'core-js/modules/es.object.to-string.js';
|
15
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
16
|
+
import '../global/data-tests.js';
|
17
|
+
import 'core-js/modules/es.array.reduce.js';
|
18
|
+
import 'core-js/modules/es.object.entries.js';
|
19
|
+
import '../shortcuts/shortcuts.js';
|
20
|
+
import 'core-js/modules/es.array.map.js';
|
21
|
+
import '../shortcuts/core.js';
|
22
|
+
import 'core-js/modules/es.array.includes.js';
|
23
|
+
import 'core-js/modules/es.string.includes.js';
|
24
|
+
import 'core-js/modules/es.array.slice.js';
|
25
|
+
import 'core-js/modules/es.array.splice.js';
|
26
|
+
import 'core-js/modules/es.regexp.exec.js';
|
27
|
+
import 'core-js/modules/es.string.match.js';
|
28
|
+
import 'combokeys';
|
29
|
+
import '../global/sniffer.js';
|
30
|
+
import 'sniffr';
|
31
|
+
import '../tab-trap/tab-trap.js';
|
32
|
+
import 'core-js/modules/es.array.filter.js';
|
33
|
+
import '../global/dom.js';
|
34
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
35
|
+
import 'core-js/modules/es.string.split.js';
|
36
|
+
import 'core-js/modules/es.array.iterator.js';
|
37
|
+
import 'core-js/modules/es.set.js';
|
38
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
39
|
+
import '../button/button.js';
|
40
|
+
import '@jetbrains/icons/chevron-10px';
|
41
|
+
import '../icon/icon.js';
|
42
|
+
import 'util-deprecate';
|
43
|
+
import '../icon/icon__constants.js';
|
44
|
+
import '../_helpers/icon__svg.js';
|
45
|
+
import 'core-js/modules/es.string.replace.js';
|
46
|
+
import 'core-js/modules/es.string.starts-with.js';
|
47
|
+
import '../global/memoize.js';
|
48
|
+
import 'core-js/modules/es.map.js';
|
49
|
+
import 'core-js/modules/es.weak-map.js';
|
50
|
+
import '../link/clickableLink.js';
|
51
|
+
import '../global/controls-height.js';
|
52
|
+
import '../_helpers/button__classes.js';
|
53
|
+
import '../popup/popup.target.js';
|
54
|
+
import '../_helpers/dialog__body-scroll-preventer.js';
|
55
|
+
import 'scrollbar-width';
|
56
|
+
import '../island/adaptive-island-hoc.js';
|
57
|
+
import '../global/linear-function.js';
|
58
|
+
import '../_helpers/island.js';
|
59
|
+
import '../island/header.js';
|
60
|
+
import 'element-resize-detector';
|
61
|
+
import '../global/schedule-raf.js';
|
62
|
+
import '../loader/loader.js';
|
63
|
+
import '../loader/loader__core.js';
|
64
|
+
import 'core-js/modules/es.promise.js';
|
65
|
+
import '../auth/response-parser.js';
|
66
|
+
import 'es6-error';
|
67
|
+
import '../global/url.js';
|
68
|
+
|
69
|
+
var modules_45da1992 = {"unit":"i__const_unit_0","light":"light_rui_2ac4","iFrame":"iFrame_rui_ea70","dialogContent":"dialogContent_rui_ea70","nonOpaqueLoader":"nonOpaqueLoader_rui_ea70","fallbackLinkContainer":"fallbackLinkContainer_rui_ea70"};
|
70
|
+
|
71
|
+
var HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
72
|
+
var HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
73
|
+
var DEFAULT_HEIGHT = 517;
|
74
|
+
var DEFAULT_WIDTH = 333;
|
75
|
+
var DEFAULT_SHOW_FALLBACK_TIMEOUT = 5000;
|
76
|
+
/**
|
77
|
+
* @name Login Dialog
|
78
|
+
*/
|
79
|
+
var LoginDialog = /*#__PURE__*/function (_Component) {
|
80
|
+
_inherits(LoginDialog, _Component);
|
81
|
+
var _super = _createSuper(LoginDialog);
|
82
|
+
function LoginDialog() {
|
83
|
+
var _this;
|
84
|
+
_classCallCheck(this, LoginDialog);
|
85
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
86
|
+
args[_key] = arguments[_key];
|
87
|
+
}
|
88
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
89
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
90
|
+
loading: true,
|
91
|
+
loggingIn: false,
|
92
|
+
showFallbackLink: false,
|
93
|
+
height: DEFAULT_HEIGHT,
|
94
|
+
width: DEFAULT_WIDTH
|
95
|
+
});
|
96
|
+
_defineProperty(_assertThisInitialized(_this), "showFallbackTimout", void 0);
|
97
|
+
_defineProperty(_assertThisInitialized(_this), "onMessage", function (event) {
|
98
|
+
var data = event.data;
|
99
|
+
if (!data) {
|
100
|
+
return;
|
101
|
+
}
|
102
|
+
if (data === HUB_AUTH_PAGE_OPENED) {
|
103
|
+
clearTimeout(_this.showFallbackTimout);
|
104
|
+
_this.setState({
|
105
|
+
loading: false,
|
106
|
+
loggingIn: false
|
107
|
+
});
|
108
|
+
return;
|
109
|
+
}
|
110
|
+
if (data === HUB_AUTH_PAGE_LOGIN_STARTED) {
|
111
|
+
_this.setState({
|
112
|
+
loading: true,
|
113
|
+
loggingIn: true
|
114
|
+
});
|
115
|
+
_this.startFallbackCountdown();
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
if (data.message === HUB_AUTH_PAGE_LOGIN_DIMENSIONS) {
|
119
|
+
_this.setState({
|
120
|
+
height: data.height,
|
121
|
+
width: data.width
|
122
|
+
});
|
123
|
+
}
|
124
|
+
});
|
125
|
+
return _this;
|
126
|
+
}
|
127
|
+
_createClass(LoginDialog, [{
|
128
|
+
key: "componentDidMount",
|
129
|
+
value: function componentDidMount() {
|
130
|
+
window.addEventListener('message', this.onMessage);
|
131
|
+
this.startFallbackCountdown();
|
132
|
+
}
|
133
|
+
}, {
|
134
|
+
key: "componentWillUnmount",
|
135
|
+
value: function componentWillUnmount() {
|
136
|
+
window.removeEventListener('message', this.onMessage);
|
137
|
+
}
|
138
|
+
}, {
|
139
|
+
key: "startFallbackCountdown",
|
140
|
+
value: function startFallbackCountdown() {
|
141
|
+
var _this2 = this;
|
142
|
+
this.showFallbackTimout = window.setTimeout(function () {
|
143
|
+
return _this2.setState({
|
144
|
+
showFallbackLink: true
|
145
|
+
});
|
146
|
+
}, this.props.showFallbackTimeout);
|
147
|
+
}
|
148
|
+
}, {
|
149
|
+
key: "render",
|
150
|
+
value: function render() {
|
151
|
+
var _this$props = this.props,
|
152
|
+
show = _this$props.show,
|
153
|
+
className = _this$props.className,
|
154
|
+
url = _this$props.url,
|
155
|
+
loadingMessage = _this$props.loadingMessage,
|
156
|
+
renderFallbackLink = _this$props.renderFallbackLink,
|
157
|
+
onCancel = _this$props.onCancel;
|
158
|
+
var _this$state = this.state,
|
159
|
+
loading = _this$state.loading,
|
160
|
+
height = _this$state.height,
|
161
|
+
width = _this$state.width,
|
162
|
+
loggingIn = _this$state.loggingIn,
|
163
|
+
showFallbackLink = _this$state.showFallbackLink;
|
164
|
+
var iFrameStyle = {
|
165
|
+
height,
|
166
|
+
width
|
167
|
+
};
|
168
|
+
return /*#__PURE__*/React.createElement(Dialog, {
|
169
|
+
"data-test": "ring-login-dialog",
|
170
|
+
className: className,
|
171
|
+
contentClassName: modules_45da1992.dialogContent,
|
172
|
+
trapFocus: true,
|
173
|
+
autoFocusFirst: false,
|
174
|
+
show: show,
|
175
|
+
showCloseButton: true,
|
176
|
+
onCloseAttempt: onCancel
|
177
|
+
}, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("iframe", {
|
178
|
+
title: "Login dialog",
|
179
|
+
style: iFrameStyle,
|
180
|
+
src: url,
|
181
|
+
className: modules_45da1992.iFrame,
|
182
|
+
scrolling: "no"
|
183
|
+
})), loading && /*#__PURE__*/React.createElement(LoaderScreen, {
|
184
|
+
message: loadingMessage,
|
185
|
+
containerClassName: modules_45da1992.nonOpaqueLoader
|
186
|
+
}), showFallbackLink && /*#__PURE__*/React.createElement("div", {
|
187
|
+
className: modules_45da1992.fallbackLinkContainer
|
188
|
+
}, renderFallbackLink(loggingIn)));
|
189
|
+
}
|
190
|
+
}]);
|
191
|
+
return LoginDialog;
|
192
|
+
}(Component);
|
193
|
+
_defineProperty(LoginDialog, "propTypes", {
|
194
|
+
show: PropTypes.bool,
|
195
|
+
className: PropTypes.string,
|
196
|
+
url: PropTypes.string,
|
197
|
+
loader: PropTypes.bool,
|
198
|
+
loadingMessage: PropTypes.string,
|
199
|
+
showFallbackTimeout: PropTypes.number,
|
200
|
+
renderFallbackLink: PropTypes.func,
|
201
|
+
onCancel: PropTypes.func.isRequired
|
202
|
+
});
|
203
|
+
_defineProperty(LoginDialog, "defaultProps", {
|
204
|
+
show: false,
|
205
|
+
url: 'about:blank',
|
206
|
+
renderFallbackLink: function renderFallbackLink() {
|
207
|
+
return null;
|
208
|
+
},
|
209
|
+
showFallbackTimeout: DEFAULT_SHOW_FALLBACK_TIMEOUT
|
210
|
+
});
|
211
|
+
|
212
|
+
export { LoginDialog as default };
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import React from 'react';
|
3
|
+
import { createRoot } from 'react-dom/client';
|
4
|
+
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
5
|
+
import LoginDialog from './login-dialog.js';
|
6
|
+
import 'core-js/modules/es.array.concat.js';
|
7
|
+
import 'prop-types';
|
8
|
+
import '../dialog/dialog.js';
|
9
|
+
import 'react-dom';
|
10
|
+
import 'classnames';
|
11
|
+
import '@jetbrains/icons/close';
|
12
|
+
import '../island/island.js';
|
13
|
+
import '../global/data-tests.js';
|
14
|
+
import 'core-js/modules/es.array.reduce.js';
|
15
|
+
import 'core-js/modules/es.object.to-string.js';
|
16
|
+
import 'core-js/modules/es.object.entries.js';
|
17
|
+
import '../island/adaptive-island-hoc.js';
|
18
|
+
import '../global/linear-function.js';
|
19
|
+
import '../_helpers/island.js';
|
20
|
+
import '../island/header.js';
|
21
|
+
import '../island/content.js';
|
22
|
+
import 'element-resize-detector';
|
23
|
+
import '../global/schedule-raf.js';
|
24
|
+
import '../global/get-uid.js';
|
25
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
26
|
+
import '../shortcuts/shortcuts.js';
|
27
|
+
import 'core-js/modules/es.array.map.js';
|
28
|
+
import '../shortcuts/core.js';
|
29
|
+
import 'core-js/modules/es.array.includes.js';
|
30
|
+
import 'core-js/modules/es.string.includes.js';
|
31
|
+
import 'core-js/modules/es.array.slice.js';
|
32
|
+
import 'core-js/modules/es.array.splice.js';
|
33
|
+
import 'core-js/modules/es.regexp.exec.js';
|
34
|
+
import 'core-js/modules/es.string.match.js';
|
35
|
+
import 'combokeys';
|
36
|
+
import '../global/sniffer.js';
|
37
|
+
import 'sniffr';
|
38
|
+
import '../tab-trap/tab-trap.js';
|
39
|
+
import 'core-js/modules/es.array.filter.js';
|
40
|
+
import '../global/dom.js';
|
41
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
42
|
+
import 'core-js/modules/es.string.split.js';
|
43
|
+
import 'core-js/modules/es.array.iterator.js';
|
44
|
+
import 'core-js/modules/es.set.js';
|
45
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
46
|
+
import '../button/button.js';
|
47
|
+
import '@jetbrains/icons/chevron-10px';
|
48
|
+
import '../icon/icon.js';
|
49
|
+
import 'util-deprecate';
|
50
|
+
import '../icon/icon__constants.js';
|
51
|
+
import '../_helpers/icon__svg.js';
|
52
|
+
import 'core-js/modules/es.string.replace.js';
|
53
|
+
import 'core-js/modules/es.string.starts-with.js';
|
54
|
+
import '../global/memoize.js';
|
55
|
+
import 'core-js/modules/es.map.js';
|
56
|
+
import 'core-js/modules/es.weak-map.js';
|
57
|
+
import '../link/clickableLink.js';
|
58
|
+
import '../_helpers/button__classes.js';
|
59
|
+
import '../popup/popup.target.js';
|
60
|
+
import '../_helpers/dialog__body-scroll-preventer.js';
|
61
|
+
import 'scrollbar-width';
|
62
|
+
import '../loader-screen/loader-screen.js';
|
63
|
+
import '../loader/loader.js';
|
64
|
+
import '../loader/loader__core.js';
|
65
|
+
import '../auth/background-flow.js';
|
66
|
+
import 'core-js/modules/es.promise.js';
|
67
|
+
import '../auth/response-parser.js';
|
68
|
+
import 'es6-error';
|
69
|
+
import '../global/url.js';
|
70
|
+
|
71
|
+
var containerElement = document.createElement('div');
|
72
|
+
var reactRoot = createRoot(containerElement);
|
73
|
+
/**
|
74
|
+
* Renders LoginDialog into virtual node to skip maintaining container
|
75
|
+
*/
|
76
|
+
function renderLoginDialog(props) {
|
77
|
+
reactRoot.render( /*#__PURE__*/React.createElement(ControlsHeightContext.Provider, {
|
78
|
+
value: getGlobalControlsHeight()
|
79
|
+
}, /*#__PURE__*/React.createElement(LoginDialog, props)));
|
80
|
+
}
|
81
|
+
function noop() {}
|
82
|
+
function showAuthDialog() {
|
83
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
84
|
+
onCancel: noop
|
85
|
+
};
|
86
|
+
renderLoginDialog(_objectSpread2(_objectSpread2({}, props), {}, {
|
87
|
+
show: true
|
88
|
+
}));
|
89
|
+
return function () {
|
90
|
+
reactRoot.unmount();
|
91
|
+
};
|
92
|
+
}
|
93
|
+
|
94
|
+
export { showAuthDialog as default };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React, { PureComponent, ReactNode } from 'react';
|
2
|
+
export interface MarkdownProps {
|
3
|
+
inline?: boolean | null | undefined;
|
4
|
+
children: ReactNode;
|
5
|
+
className?: string | null | undefined;
|
6
|
+
}
|
7
|
+
/**
|
8
|
+
* @name Markdown
|
9
|
+
*/
|
10
|
+
export default class Markdown extends PureComponent<MarkdownProps> {
|
11
|
+
render(): React.JSX.Element;
|
12
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import React, { PureComponent } from 'react';
|
3
|
+
import PropTypes from 'prop-types';
|
4
|
+
import classNames from 'classnames';
|
5
|
+
import { m as modules_901b77ec } from '../_helpers/heading.js';
|
6
|
+
import { m as modules_607b0772 } from '../_helpers/link.js';
|
7
|
+
|
8
|
+
var modules_9c709e64 = {"unit":"i__const_unit_0","p-margin":"10px","light":"light_rui_2ac4","inline":"inline_rui_e3b3","markdown":"markdown_rui_e3b3 font_rui_8bff"};
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @name Markdown
|
12
|
+
*/
|
13
|
+
var Markdown = /*#__PURE__*/function (_PureComponent) {
|
14
|
+
_inherits(Markdown, _PureComponent);
|
15
|
+
var _super = _createSuper(Markdown);
|
16
|
+
function Markdown() {
|
17
|
+
_classCallCheck(this, Markdown);
|
18
|
+
return _super.apply(this, arguments);
|
19
|
+
}
|
20
|
+
_createClass(Markdown, [{
|
21
|
+
key: "render",
|
22
|
+
value: function render() {
|
23
|
+
var _this$props = this.props,
|
24
|
+
className = _this$props.className,
|
25
|
+
children = _this$props.children,
|
26
|
+
inline = _this$props.inline;
|
27
|
+
var classes = classNames(className, modules_901b77ec.contentWithHeadings, modules_607b0772.withLinks, {
|
28
|
+
[modules_9c709e64.markdown]: !inline,
|
29
|
+
[modules_9c709e64.inline]: inline
|
30
|
+
});
|
31
|
+
return /*#__PURE__*/React.createElement("div", {
|
32
|
+
className: classes
|
33
|
+
}, children);
|
34
|
+
}
|
35
|
+
}]);
|
36
|
+
return Markdown;
|
37
|
+
}(PureComponent);
|
38
|
+
Markdown.propTypes = {
|
39
|
+
inline: PropTypes.bool,
|
40
|
+
className: PropTypes.string
|
41
|
+
};
|
42
|
+
|
43
|
+
export { Markdown as default };
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import React, { Component, ReactNode } from 'react';
|
2
|
+
import Popup, { PopupAttrs } from '../popup/popup';
|
3
|
+
import { Directions } from '../popup/popup.consts';
|
4
|
+
import { IconType } from '../icon/icon';
|
5
|
+
import { ButtonAttrs } from '../button/button';
|
6
|
+
import Theme from '../global/theme';
|
7
|
+
export interface MessageTranslations {
|
8
|
+
gotIt: string;
|
9
|
+
dismiss: string;
|
10
|
+
}
|
11
|
+
export interface MessageProps {
|
12
|
+
icon: string | IconType | null;
|
13
|
+
directions: readonly Directions[];
|
14
|
+
translations?: MessageTranslations | null | undefined;
|
15
|
+
theme: Theme;
|
16
|
+
title?: string | null | undefined;
|
17
|
+
children?: ReactNode;
|
18
|
+
className?: string | null | undefined;
|
19
|
+
tailClassName?: string | null | undefined;
|
20
|
+
direction?: Directions | null | undefined;
|
21
|
+
popupProps?: Partial<PopupAttrs> | null | undefined;
|
22
|
+
buttonProps?: ButtonAttrs | null | undefined;
|
23
|
+
tailOffset?: number | null | undefined;
|
24
|
+
onClose?: (() => void) | undefined;
|
25
|
+
onDismiss?: (() => void) | null | undefined;
|
26
|
+
}
|
27
|
+
interface MessageState {
|
28
|
+
direction?: Directions;
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* Displays a popup containing a message.
|
32
|
+
*/
|
33
|
+
export default class Message extends Component<MessageProps> {
|
34
|
+
static defaultProps: {
|
35
|
+
icon: string;
|
36
|
+
directions: Directions[];
|
37
|
+
theme: Theme;
|
38
|
+
};
|
39
|
+
state: MessageState;
|
40
|
+
static Directions: typeof Directions;
|
41
|
+
static PopupProps: {
|
42
|
+
Directions: typeof Directions;
|
43
|
+
Dimension: typeof import("../popup/popup.consts").Dimension;
|
44
|
+
MinWidth: typeof import("../popup/popup.consts").MinWidth;
|
45
|
+
MaxHeight: typeof import("../popup/popup.consts").MaxHeight;
|
46
|
+
};
|
47
|
+
private _onDirectionChange;
|
48
|
+
popup?: Popup | null;
|
49
|
+
node?: HTMLElement | null;
|
50
|
+
popupRef: (el: Popup | null) => void;
|
51
|
+
getTailOffset(): number;
|
52
|
+
render(): React.JSX.Element;
|
53
|
+
}
|
54
|
+
export type MessageAttrs = JSX.LibraryManagedAttributes<typeof Message, MessageProps>;
|
55
|
+
export {};
|