@jetbrains/ring-ui-built 6.0.1
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 +103 -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 +294 -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 +220 -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 +89 -0
- package/components/auth/auth.d.ts +3 -0
- package/components/auth/auth.js +133 -0
- package/components/auth/auth__core.d.ts +236 -0
- package/components/auth/auth__core.js +1653 -0
- package/components/auth/background-flow.d.ts +31 -0
- package/components/auth/background-flow.js +147 -0
- package/components/auth/down-notification.d.ts +15 -0
- package/components/auth/down-notification.js +157 -0
- package/components/auth/iframe-flow.d.ts +20 -0
- package/components/auth/iframe-flow.js +196 -0
- package/components/auth/request-builder.d.ts +48 -0
- package/components/auth/request-builder.js +104 -0
- package/components/auth/response-parser.d.ts +70 -0
- package/components/auth/response-parser.js +138 -0
- package/components/auth/storage.d.ts +112 -0
- package/components/auth/storage.js +429 -0
- package/components/auth/token-validator.d.ts +93 -0
- package/components/auth/token-validator.js +269 -0
- package/components/auth/window-flow.d.ts +26 -0
- package/components/auth/window-flow.js +154 -0
- package/components/auth-dialog/auth-dialog.d.ts +60 -0
- package/components/auth-dialog/auth-dialog.js +221 -0
- package/components/auth-dialog-service/auth-dialog-service.d.ts +6 -0
- package/components/auth-dialog-service/auth-dialog-service.js +92 -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 +183 -0
- package/components/avatar/fallback-avatar.d.ts +17 -0
- package/components/avatar/fallback-avatar.js +151 -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 +259 -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 +185 -0
- package/components/code/code.d.ts +44 -0
- package/components/code/code.js +191 -0
- package/components/confirm/confirm.d.ts +48 -0
- package/components/confirm/confirm.js +153 -0
- package/components/confirm-service/confirm-service.d.ts +21 -0
- package/components/confirm-service/confirm-service.js +141 -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 +251 -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 +235 -0
- package/components/data-list/selection.d.ts +16 -0
- package/components/data-list/selection.js +148 -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 +404 -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 +240 -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 +199 -0
- package/components/editable-heading/editable-heading.d.ts +32 -0
- package/components/editable-heading/editable-heading.js +276 -0
- package/components/error-bubble/error-bubble.d.ts +18 -0
- package/components/error-bubble/error-bubble.js +88 -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 +151 -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 +60 -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 +54 -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 +42 -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 +142 -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 +80 -0
- package/components/grid/grid.d.ts +14 -0
- package/components/grid/grid.js +46 -0
- package/components/grid/row.d.ts +40 -0
- package/components/grid/row.js +75 -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 +189 -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 +258 -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 +174 -0
- package/components/header/smart-profile.d.ts +36 -0
- package/components/header/smart-profile.js +303 -0
- package/components/header/smart-services.d.ts +26 -0
- package/components/header/smart-services.js +192 -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 +386 -0
- package/components/http/http.mock.d.ts +20 -0
- package/components/http/http.mock.js +113 -0
- package/components/hub-source/hub-source.d.ts +44 -0
- package/components/hub-source/hub-source.js +217 -0
- package/components/hub-source/hub-source__user.d.ts +4 -0
- package/components/hub-source/hub-source__user.js +60 -0
- package/components/hub-source/hub-source__users-groups.d.ts +24 -0
- package/components/hub-source/hub-source__users-groups.js +86 -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 +100 -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 +205 -0
- package/components/list/list.js +802 -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 +237 -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 +195 -0
- package/components/loader/loader.d.ts +28 -0
- package/components/loader/loader.js +93 -0
- package/components/loader/loader__core.d.ts +75 -0
- package/components/loader/loader__core.js +327 -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 +64 -0
- package/components/login-dialog/login-dialog.d.ts +47 -0
- package/components/login-dialog/login-dialog.js +216 -0
- package/components/login-dialog/service.d.ts +2 -0
- package/components/login-dialog/service.js +98 -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 +267 -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 +390 -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 +221 -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 +424 -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 +271 -0
- package/components/popup-menu/popup-menu.d.ts +80 -0
- package/components/popup-menu/popup-menu.js +141 -0
- package/components/progress-bar/progress-bar.d.ts +64 -0
- package/components/progress-bar/progress-bar.js +120 -0
- package/components/query-assist/query-assist.d.ts +306 -0
- package/components/query-assist/query-assist.js +1098 -0
- package/components/query-assist/query-assist__suggestions.d.ts +29 -0
- package/components/query-assist/query-assist__suggestions.js +75 -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 +1310 -0
- package/components/select/select__filter.d.ts +19 -0
- package/components/select/select__filter.js +85 -0
- package/components/select/select__popup.d.ts +166 -0
- package/components/select/select__popup.js +631 -0
- package/components/shortcuts/core.d.ts +74 -0
- package/components/shortcuts/core.js +249 -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 +61 -0
- package/components/shortcuts/shortcuts.d.ts +28 -0
- package/components/shortcuts/shortcuts.js +92 -0
- package/components/storage/storage.d.ts +18 -0
- package/components/storage/storage.js +92 -0
- package/components/storage/storage__fallback.d.ts +79 -0
- package/components/storage/storage__fallback.js +254 -0
- package/components/storage/storage__local.d.ts +38 -0
- package/components/storage/storage__local.js +217 -0
- package/components/style.css +1 -0
- package/components/tab-trap/tab-trap.d.ts +43 -0
- package/components/tab-trap/tab-trap.js +180 -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 +140 -0
- package/components/table/row-with-focus-sensor.d.ts +18 -0
- package/components/table/row-with-focus-sensor.js +117 -0
- package/components/table/row.d.ts +59 -0
- package/components/table/row.js +299 -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 +205 -0
- package/components/table/selection.d.ts +47 -0
- package/components/table/selection.js +257 -0
- package/components/table/smart-table.d.ts +64 -0
- package/components/table/smart-table.js +149 -0
- package/components/table/table.d.ts +159 -0
- package/components/table/table.js +463 -0
- package/components/tabs/collapsible-more.d.ts +29 -0
- package/components/tabs/collapsible-more.js +222 -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 +354 -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 +189 -0
- package/components/tabs/smart-tabs.d.ts +20 -0
- package/components/tabs/smart-tabs.js +141 -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 +99 -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 +534 -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 +229 -0
- package/components/user-agreement/service.d.ts +69 -0
- package/components/user-agreement/service.js +487 -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 +172 -0
- package/components/user-card/card.d.ts +70 -0
- package/components/user-card/card.js +80 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +20 -0
- package/components/user-card/smart-user-card-tooltip.js +172 -0
- package/components/user-card/tooltip.d.ts +36 -0
- package/components/user-card/tooltip.js +144 -0
- package/components/user-card/user-card.d.ts +11 -0
- package/components/user-card/user-card.js +85 -0
- package/package.json +118 -0
- package/typings.d.ts +43 -0
@@ -0,0 +1,216 @@
|
|
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.object.assign.js';
|
25
|
+
import 'core-js/modules/es.array.slice.js';
|
26
|
+
import 'core-js/modules/es.array.splice.js';
|
27
|
+
import 'core-js/modules/es.regexp.exec.js';
|
28
|
+
import 'core-js/modules/es.string.match.js';
|
29
|
+
import 'core-js/modules/es.array.find-index.js';
|
30
|
+
import 'combokeys';
|
31
|
+
import '../global/sniffer.js';
|
32
|
+
import 'sniffr';
|
33
|
+
import '../tab-trap/tab-trap.js';
|
34
|
+
import 'core-js/modules/es.array.filter.js';
|
35
|
+
import '../global/dom.js';
|
36
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
37
|
+
import 'core-js/modules/es.string.split.js';
|
38
|
+
import 'core-js/modules/es.array.iterator.js';
|
39
|
+
import 'core-js/modules/es.set.js';
|
40
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
41
|
+
import '../button/button.js';
|
42
|
+
import '@jetbrains/icons/chevron-10px';
|
43
|
+
import '../icon/icon.js';
|
44
|
+
import 'util-deprecate';
|
45
|
+
import '../icon/icon__constants.js';
|
46
|
+
import '../_helpers/icon__svg.js';
|
47
|
+
import 'core-js/modules/es.string.replace.js';
|
48
|
+
import 'core-js/modules/es.string.starts-with.js';
|
49
|
+
import '../global/memoize.js';
|
50
|
+
import 'core-js/modules/es.map.js';
|
51
|
+
import 'core-js/modules/es.weak-map.js';
|
52
|
+
import '../link/clickableLink.js';
|
53
|
+
import '../global/controls-height.js';
|
54
|
+
import '../_helpers/button__classes.js';
|
55
|
+
import '../popup/popup.target.js';
|
56
|
+
import '../_helpers/dialog__body-scroll-preventer.js';
|
57
|
+
import 'scrollbar-width';
|
58
|
+
import '../island/adaptive-island-hoc.js';
|
59
|
+
import '../global/linear-function.js';
|
60
|
+
import '../_helpers/island.js';
|
61
|
+
import '../island/header.js';
|
62
|
+
import 'element-resize-detector';
|
63
|
+
import '../global/schedule-raf.js';
|
64
|
+
import '../loader/loader.js';
|
65
|
+
import '../loader/loader__core.js';
|
66
|
+
import 'core-js/modules/es.array.fill.js';
|
67
|
+
import 'core-js/modules/es.promise.js';
|
68
|
+
import '../auth/response-parser.js';
|
69
|
+
import 'core-js/modules/es.array.index-of.js';
|
70
|
+
import 'es6-error';
|
71
|
+
import '../global/url.js';
|
72
|
+
|
73
|
+
var modules_45da1992 = {"light":"light_rui_2ac4","iFrame":"iFrame_rui_ea70","dialogContent":"dialogContent_rui_ea70","nonOpaqueLoader":"nonOpaqueLoader_rui_ea70","fallbackLinkContainer":"fallbackLinkContainer_rui_ea70"};
|
74
|
+
|
75
|
+
var HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
76
|
+
var HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
77
|
+
var DEFAULT_HEIGHT = 517;
|
78
|
+
var DEFAULT_WIDTH = 333;
|
79
|
+
var DEFAULT_SHOW_FALLBACK_TIMEOUT = 5000;
|
80
|
+
/**
|
81
|
+
* @name Login Dialog
|
82
|
+
*/
|
83
|
+
var LoginDialog = /*#__PURE__*/function (_Component) {
|
84
|
+
_inherits(LoginDialog, _Component);
|
85
|
+
var _super = _createSuper(LoginDialog);
|
86
|
+
function LoginDialog() {
|
87
|
+
var _this;
|
88
|
+
_classCallCheck(this, LoginDialog);
|
89
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
90
|
+
args[_key] = arguments[_key];
|
91
|
+
}
|
92
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
93
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
94
|
+
loading: true,
|
95
|
+
loggingIn: false,
|
96
|
+
showFallbackLink: false,
|
97
|
+
height: DEFAULT_HEIGHT,
|
98
|
+
width: DEFAULT_WIDTH
|
99
|
+
});
|
100
|
+
_defineProperty(_assertThisInitialized(_this), "showFallbackTimout", void 0);
|
101
|
+
_defineProperty(_assertThisInitialized(_this), "onMessage", function (event) {
|
102
|
+
var data = event.data;
|
103
|
+
if (!data) {
|
104
|
+
return;
|
105
|
+
}
|
106
|
+
if (data === HUB_AUTH_PAGE_OPENED) {
|
107
|
+
clearTimeout(_this.showFallbackTimout);
|
108
|
+
_this.setState({
|
109
|
+
loading: false,
|
110
|
+
loggingIn: false
|
111
|
+
});
|
112
|
+
return;
|
113
|
+
}
|
114
|
+
if (data === HUB_AUTH_PAGE_LOGIN_STARTED) {
|
115
|
+
_this.setState({
|
116
|
+
loading: true,
|
117
|
+
loggingIn: true
|
118
|
+
});
|
119
|
+
_this.startFallbackCountdown();
|
120
|
+
return;
|
121
|
+
}
|
122
|
+
if (data.message === HUB_AUTH_PAGE_LOGIN_DIMENSIONS) {
|
123
|
+
_this.setState({
|
124
|
+
height: data.height,
|
125
|
+
width: data.width
|
126
|
+
});
|
127
|
+
}
|
128
|
+
});
|
129
|
+
return _this;
|
130
|
+
}
|
131
|
+
_createClass(LoginDialog, [{
|
132
|
+
key: "componentDidMount",
|
133
|
+
value: function componentDidMount() {
|
134
|
+
window.addEventListener('message', this.onMessage);
|
135
|
+
this.startFallbackCountdown();
|
136
|
+
}
|
137
|
+
}, {
|
138
|
+
key: "componentWillUnmount",
|
139
|
+
value: function componentWillUnmount() {
|
140
|
+
window.removeEventListener('message', this.onMessage);
|
141
|
+
}
|
142
|
+
}, {
|
143
|
+
key: "startFallbackCountdown",
|
144
|
+
value: function startFallbackCountdown() {
|
145
|
+
var _this2 = this;
|
146
|
+
this.showFallbackTimout = window.setTimeout(function () {
|
147
|
+
return _this2.setState({
|
148
|
+
showFallbackLink: true
|
149
|
+
});
|
150
|
+
}, this.props.showFallbackTimeout);
|
151
|
+
}
|
152
|
+
}, {
|
153
|
+
key: "render",
|
154
|
+
value: function render() {
|
155
|
+
var _this$props = this.props,
|
156
|
+
show = _this$props.show,
|
157
|
+
className = _this$props.className,
|
158
|
+
url = _this$props.url,
|
159
|
+
loadingMessage = _this$props.loadingMessage,
|
160
|
+
renderFallbackLink = _this$props.renderFallbackLink,
|
161
|
+
onCancel = _this$props.onCancel;
|
162
|
+
var _this$state = this.state,
|
163
|
+
loading = _this$state.loading,
|
164
|
+
height = _this$state.height,
|
165
|
+
width = _this$state.width,
|
166
|
+
loggingIn = _this$state.loggingIn,
|
167
|
+
showFallbackLink = _this$state.showFallbackLink;
|
168
|
+
var iFrameStyle = {
|
169
|
+
height,
|
170
|
+
width
|
171
|
+
};
|
172
|
+
return /*#__PURE__*/React.createElement(Dialog, {
|
173
|
+
"data-test": "ring-login-dialog",
|
174
|
+
className: className,
|
175
|
+
contentClassName: modules_45da1992.dialogContent,
|
176
|
+
trapFocus: true,
|
177
|
+
autoFocusFirst: false,
|
178
|
+
show: show,
|
179
|
+
showCloseButton: true,
|
180
|
+
onCloseAttempt: onCancel
|
181
|
+
}, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("iframe", {
|
182
|
+
title: "Login dialog",
|
183
|
+
style: iFrameStyle,
|
184
|
+
src: url,
|
185
|
+
className: modules_45da1992.iFrame,
|
186
|
+
scrolling: "no"
|
187
|
+
})), loading && /*#__PURE__*/React.createElement(LoaderScreen, {
|
188
|
+
message: loadingMessage,
|
189
|
+
containerClassName: modules_45da1992.nonOpaqueLoader
|
190
|
+
}), showFallbackLink && /*#__PURE__*/React.createElement("div", {
|
191
|
+
className: modules_45da1992.fallbackLinkContainer
|
192
|
+
}, renderFallbackLink(loggingIn)));
|
193
|
+
}
|
194
|
+
}]);
|
195
|
+
return LoginDialog;
|
196
|
+
}(Component);
|
197
|
+
_defineProperty(LoginDialog, "propTypes", {
|
198
|
+
show: PropTypes.bool,
|
199
|
+
className: PropTypes.string,
|
200
|
+
url: PropTypes.string,
|
201
|
+
loader: PropTypes.bool,
|
202
|
+
loadingMessage: PropTypes.string,
|
203
|
+
showFallbackTimeout: PropTypes.number,
|
204
|
+
renderFallbackLink: PropTypes.func,
|
205
|
+
onCancel: PropTypes.func.isRequired
|
206
|
+
});
|
207
|
+
_defineProperty(LoginDialog, "defaultProps", {
|
208
|
+
show: false,
|
209
|
+
url: 'about:blank',
|
210
|
+
renderFallbackLink: function renderFallbackLink() {
|
211
|
+
return null;
|
212
|
+
},
|
213
|
+
showFallbackTimeout: DEFAULT_SHOW_FALLBACK_TIMEOUT
|
214
|
+
});
|
215
|
+
|
216
|
+
export { LoginDialog as default };
|
@@ -0,0 +1,98 @@
|
|
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.object.assign.js';
|
32
|
+
import 'core-js/modules/es.array.slice.js';
|
33
|
+
import 'core-js/modules/es.array.splice.js';
|
34
|
+
import 'core-js/modules/es.regexp.exec.js';
|
35
|
+
import 'core-js/modules/es.string.match.js';
|
36
|
+
import 'core-js/modules/es.array.find-index.js';
|
37
|
+
import 'combokeys';
|
38
|
+
import '../global/sniffer.js';
|
39
|
+
import 'sniffr';
|
40
|
+
import '../tab-trap/tab-trap.js';
|
41
|
+
import 'core-js/modules/es.array.filter.js';
|
42
|
+
import '../global/dom.js';
|
43
|
+
import 'core-js/modules/web.dom-collections.for-each.js';
|
44
|
+
import 'core-js/modules/es.string.split.js';
|
45
|
+
import 'core-js/modules/es.array.iterator.js';
|
46
|
+
import 'core-js/modules/es.set.js';
|
47
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
48
|
+
import '../button/button.js';
|
49
|
+
import '@jetbrains/icons/chevron-10px';
|
50
|
+
import '../icon/icon.js';
|
51
|
+
import 'util-deprecate';
|
52
|
+
import '../icon/icon__constants.js';
|
53
|
+
import '../_helpers/icon__svg.js';
|
54
|
+
import 'core-js/modules/es.string.replace.js';
|
55
|
+
import 'core-js/modules/es.string.starts-with.js';
|
56
|
+
import '../global/memoize.js';
|
57
|
+
import 'core-js/modules/es.map.js';
|
58
|
+
import 'core-js/modules/es.weak-map.js';
|
59
|
+
import '../link/clickableLink.js';
|
60
|
+
import '../_helpers/button__classes.js';
|
61
|
+
import '../popup/popup.target.js';
|
62
|
+
import '../_helpers/dialog__body-scroll-preventer.js';
|
63
|
+
import 'scrollbar-width';
|
64
|
+
import '../loader-screen/loader-screen.js';
|
65
|
+
import '../loader/loader.js';
|
66
|
+
import '../loader/loader__core.js';
|
67
|
+
import 'core-js/modules/es.array.fill.js';
|
68
|
+
import '../auth/background-flow.js';
|
69
|
+
import 'core-js/modules/es.promise.js';
|
70
|
+
import '../auth/response-parser.js';
|
71
|
+
import 'core-js/modules/es.array.index-of.js';
|
72
|
+
import 'es6-error';
|
73
|
+
import '../global/url.js';
|
74
|
+
|
75
|
+
var containerElement = document.createElement('div');
|
76
|
+
var reactRoot = createRoot(containerElement);
|
77
|
+
/**
|
78
|
+
* Renders LoginDialog into virtual node to skip maintaining container
|
79
|
+
*/
|
80
|
+
function renderLoginDialog(props) {
|
81
|
+
reactRoot.render( /*#__PURE__*/React.createElement(ControlsHeightContext.Provider, {
|
82
|
+
value: getGlobalControlsHeight()
|
83
|
+
}, /*#__PURE__*/React.createElement(LoginDialog, props)));
|
84
|
+
}
|
85
|
+
function noop() {}
|
86
|
+
function showAuthDialog() {
|
87
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
88
|
+
onCancel: noop
|
89
|
+
};
|
90
|
+
renderLoginDialog(_objectSpread2(_objectSpread2({}, props), {}, {
|
91
|
+
show: true
|
92
|
+
}));
|
93
|
+
return function () {
|
94
|
+
reactRoot.unmount();
|
95
|
+
};
|
96
|
+
}
|
97
|
+
|
98
|
+
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 = {"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 {};
|