@jetbrains/ring-ui 6.0.3-beta.0 → 6.0.3
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/README.md +10 -6
- package/components/alert/alert.css +12 -13
- package/components/alert/container.css +4 -6
- package/components/alert-service/alert-service.d.ts +4 -2
- package/components/alert-service/alert-service.js +3 -2
- package/components/alert-service/alert-service.stories.css +0 -3
- package/components/analytics/analytics.d.ts +0 -20
- package/components/analytics/analytics.js +0 -64
- package/components/analytics/analytics__custom-plugin.d.ts +0 -1
- package/components/analytics/analytics__custom-plugin.js +0 -3
- package/components/auth/down-notification.css +2 -4
- package/components/auth/request-builder.d.ts +1 -0
- package/components/auth-dialog/auth-dialog.css +10 -12
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -0
- package/components/auth-dialog-service/auth-dialog-service.js +4 -3
- package/components/badge/badge.css +1 -3
- package/components/button/button.css +13 -14
- package/components/button-group/button-group.css +22 -5
- package/components/button-set/button-set.css +1 -2
- package/components/button-toolbar/button-toolbar.css +1 -2
- package/components/checkbox/checkbox.css +3 -4
- package/components/code/code.css +3 -5
- package/components/code/code.d.ts +1 -0
- package/components/confirm/confirm.css +1 -3
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +5 -4
- package/components/content-layout/content-layout.css +7 -7
- package/components/data-list/data-list.css +4 -5
- package/components/date-picker/consts.d.ts +0 -1
- package/components/date-picker/date-input.d.ts +0 -1
- package/components/date-picker/date-input.js +2 -3
- package/components/date-picker/date-picker.css +40 -41
- package/components/date-picker/date-picker.js +2 -2
- package/components/date-picker/date-popup.d.ts +0 -1
- package/components/date-picker/date-popup.js +3 -4
- package/components/dialog/dialog.css +15 -12
- package/components/dropdown-menu/dropdown-menu.d.ts +11 -1
- package/components/editable-heading/editable-heading.css +35 -8
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +45 -6
- package/components/error-bubble/error-bubble-legacy.css +6 -8
- package/components/error-bubble/error-bubble.css +6 -8
- package/components/footer/footer.css +6 -8
- package/components/form/form.css +31 -33
- package/components/form/form.stories.js +109 -89
- package/components/global/global.css +1 -7
- package/components/global/react-render-adapter.d.ts +1 -29
- package/components/global/react-render-adapter.js +3 -24
- package/components/global/rerender-hoc.d.ts +4 -35
- package/components/global/rerender-hoc.js +10 -24
- package/components/global/variables.css +1 -3
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +2 -4
- package/components/grid/grid.css +6 -6
- package/components/grid/row.js +3 -3
- package/components/group/group.css +1 -3
- package/components/header/header.css +12 -14
- package/components/header/profile.js +1 -1
- package/components/header/services-link.js +3 -5
- package/components/header/services.css +12 -14
- package/components/header/smart-services.d.ts +2 -1
- package/components/heading/heading.css +24 -6
- package/components/http/http.d.ts +6 -6
- package/components/http/http.js +0 -12
- package/components/hub-source/hub-source.d.ts +8 -6
- package/components/icon/icon.css +2 -4
- package/components/input/input-legacy.css +2 -4
- package/components/input/input.css +8 -10
- package/components/input-size/input-size.css +4 -6
- package/components/input-size/input-size.stories.js +50 -49
- package/components/island/header.js +1 -1
- package/components/island/island.css +6 -7
- package/components/island-legacy/island-legacy.css +6 -8
- package/components/line/line.css +1 -3
- package/components/link/link.css +15 -39
- package/components/link/link.d.ts +6 -16
- package/components/link/link.js +6 -35
- package/components/list/consts.d.ts +13 -12
- package/components/list/consts.js +11 -15
- package/components/list/list.css +17 -20
- package/components/list/list.d.ts +15 -4
- package/components/list/list.js +9 -7
- package/components/list/list__item.js +3 -2
- package/components/loader/loader.css +1 -3
- package/components/loader/loader__core.js +6 -6
- package/components/loader-inline/loader-inline.css +5 -6
- package/components/login-dialog/login-dialog.css +1 -3
- package/components/login-dialog/service.js +5 -4
- package/components/markdown/markdown.css +53 -3
- package/components/markdown/markdown.d.ts +4 -7
- package/components/markdown/markdown.js +8 -27
- package/components/message/message.css +5 -8
- package/components/old-browsers-message/old-browsers-message.css +2 -4
- package/components/pager/pager.css +2 -4
- package/components/pager/pager.js +2 -8
- package/components/panel/panel.css +3 -5
- package/components/popup/popup.js +3 -3
- package/components/popup/position.js +4 -1
- package/components/popup-menu/popup-menu.d.ts +22 -2
- package/components/progress-bar/progress-bar.css +9 -4
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +9 -3
- package/components/query-assist/query-assist.css +3 -4
- package/components/query-assist/query-assist.d.ts +3 -28
- package/components/query-assist/query-assist.js +12 -5
- package/components/radio/radio.css +7 -10
- package/components/select/select-popup.css +23 -11
- package/components/select/select.css +13 -14
- package/components/select/select.d.ts +1 -28
- package/components/select/select.js +22 -22
- package/components/select/select__popup.js +5 -2
- package/components/sidebar/sidebar.css +13 -15
- package/components/table/table.css +15 -17
- package/components/table/table.js +1 -1
- package/components/table-legacy/table-legacy.css +22 -24
- package/components/table-legacy/table-legacy__toolbar.css +2 -4
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +2 -2
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/tab-link.js +7 -7
- package/components/tabs/tabs.css +3 -4
- package/components/tag/tag.css +12 -13
- package/components/tags-input/tags-input.css +1 -2
- package/components/tags-input/tags-input.d.ts +1 -28
- package/components/toggle/toggle.css +21 -22
- package/components/tooltip/tooltip.css +3 -5
- package/components/user-agreement/service.d.ts +3 -1
- package/components/user-agreement/service.js +8 -7
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-agreement/user-agreement.d.ts +2 -3
- package/components/user-agreement/user-agreement.js +2 -4
- package/components/user-card/card.d.ts +2 -3
- package/components/user-card/card.js +8 -8
- package/components/user-card/user-card.css +3 -5
- package/package.json +89 -96
- package/typings.d.ts +0 -54
- package/webpack.config.js +1 -24
- package/components/analytics/analytics__fus-plugin.d.ts +0 -52
- package/components/analytics/analytics__fus-plugin.js +0 -22
- package/components/analytics/analytics__ga-plugin.d.ts +0 -27
- package/components/analytics/analytics__ga-plugin.js +0 -89
- package/components/analytics/analytics__plugin-utils.d.ts +0 -31
- package/components/analytics/analytics__plugin-utils.js +0 -92
- package/components/auth/landing-entry.d.ts +0 -3
- package/components/auth/landing-entry.js +0 -2
- package/components/auth/landing.d.ts +0 -2
- package/components/auth/landing.html +0 -12
- package/components/auth/landing.js +0 -26
- package/components/link/link__legacy.css +0 -29
- package/components/markdown/code.d.ts +0 -7
- package/components/markdown/code.js +0 -17
- package/components/markdown/heading.d.ts +0 -11
- package/components/markdown/heading.js +0 -9
- package/components/markdown/link.d.ts +0 -12
- package/components/markdown/link.js +0 -10
- package/dist/_helpers/_rollupPluginBabelHelpers.js +0 -657
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button__classes.js +0 -24
- package/dist/_helpers/caption.js +0 -31
- package/dist/_helpers/card.js +0 -132
- package/dist/_helpers/date-picker.js +0 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -55
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/icon__svg.js +0 -73
- package/dist/_helpers/input.js +0 -229
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/list.js +0 -3
- package/dist/_helpers/query-assist__suggestions.js +0 -102
- package/dist/_helpers/select__filter.js +0 -94
- package/dist/_helpers/services-link.js +0 -50
- package/dist/_helpers/sidebar.js +0 -117
- package/dist/_helpers/tab-link.js +0 -36
- package/dist/_helpers/table.js +0 -3
- package/dist/_helpers/theme.js +0 -93
- package/dist/_helpers/title.js +0 -100
- package/dist/alert/alert.d.ts +0 -113
- package/dist/alert/alert.js +0 -281
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -34
- package/dist/alert-service/alert-service.js +0 -221
- package/dist/analytics/analytics.d.ts +0 -38
- package/dist/analytics/analytics.js +0 -108
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -29
- package/dist/analytics/analytics__custom-plugin.js +0 -95
- package/dist/analytics/analytics__fus-plugin.d.ts +0 -52
- package/dist/analytics/analytics__fus-plugin.js +0 -38
- package/dist/analytics/analytics__ga-plugin.d.ts +0 -27
- package/dist/analytics/analytics__ga-plugin.js +0 -118
- package/dist/analytics/analytics__plugin-utils.d.ts +0 -31
- package/dist/analytics/analytics__plugin-utils.js +0 -101
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -135
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1656
- package/dist/auth/background-flow.d.ts +0 -31
- package/dist/auth/background-flow.js +0 -148
- package/dist/auth/down-notification.d.ts +0 -15
- package/dist/auth/down-notification.js +0 -158
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -197
- package/dist/auth/landing-entry.d.ts +0 -3
- package/dist/auth/landing-entry.js +0 -5
- package/dist/auth/landing.d.ts +0 -2
- package/dist/auth/landing.js +0 -157
- package/dist/auth/request-builder.d.ts +0 -47
- package/dist/auth/request-builder.js +0 -103
- package/dist/auth/response-parser.d.ts +0 -70
- package/dist/auth/response-parser.js +0 -139
- package/dist/auth/storage.d.ts +0 -112
- package/dist/auth/storage.js +0 -427
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -269
- package/dist/auth/window-flow.d.ts +0 -26
- package/dist/auth/window-flow.js +0 -155
- package/dist/auth-dialog/auth-dialog.d.ts +0 -60
- package/dist/auth-dialog/auth-dialog.js +0 -222
- package/dist/auth-dialog-service/auth-dialog-service.d.ts +0 -5
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -92
- package/dist/avatar/avatar-example-datauri.d.ts +0 -1
- package/dist/avatar/avatar-example-datauri.js +0 -4
- package/dist/avatar/avatar.d.ts +0 -52
- package/dist/avatar/avatar.js +0 -184
- package/dist/avatar/fallback-avatar.d.ts +0 -17
- package/dist/avatar/fallback-avatar.js +0 -154
- package/dist/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -55
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -132
- package/dist/button/button__classes.d.ts +0 -2
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +0 -18
- package/dist/button-group/button-group.js +0 -48
- package/dist/button-group/caption.d.ts +0 -8
- package/dist/button-group/caption.js +0 -5
- package/dist/button-set/button-set.d.ts +0 -16
- package/dist/button-set/button-set.js +0 -47
- package/dist/button-toolbar/button-toolbar.d.ts +0 -16
- package/dist/button-toolbar/button-toolbar.js +0 -46
- package/dist/caret/caret.d.ts +0 -66
- package/dist/caret/caret.js +0 -261
- package/dist/checkbox/checkbox.d.ts +0 -45
- package/dist/checkbox/checkbox.js +0 -131
- package/dist/clipboard/clipboard-fallback.d.ts +0 -2
- package/dist/clipboard/clipboard-fallback.js +0 -42
- package/dist/clipboard/clipboard.d.ts +0 -5
- package/dist/clipboard/clipboard.js +0 -185
- package/dist/code/code.d.ts +0 -43
- package/dist/code/code.js +0 -191
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -155
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -142
- package/dist/content-layout/content-layout.d.ts +0 -26
- package/dist/content-layout/content-layout.js +0 -77
- package/dist/content-layout/sidebar.d.ts +0 -31
- package/dist/content-layout/sidebar.js +0 -7
- package/dist/contenteditable/contenteditable.d.ts +0 -47
- package/dist/contenteditable/contenteditable.js +0 -84
- package/dist/control-label/control-label.d.ts +0 -11
- package/dist/control-label/control-label.js +0 -32
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -249
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -197
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -236
- package/dist/data-list/selection.d.ts +0 -16
- package/dist/data-list/selection.js +0 -149
- package/dist/data-list/title.d.ts +0 -26
- package/dist/data-list/title.js +0 -29
- package/dist/date-picker/consts.d.ts +0 -99
- package/dist/date-picker/consts.js +0 -46
- package/dist/date-picker/date-input.d.ts +0 -48
- package/dist/date-picker/date-input.js +0 -180
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -406
- package/dist/date-picker/date-popup.d.ts +0 -56
- package/dist/date-picker/date-popup.js +0 -488
- package/dist/date-picker/day.d.ts +0 -30
- package/dist/date-picker/day.js +0 -119
- package/dist/date-picker/formats.d.ts +0 -2
- package/dist/date-picker/formats.js +0 -3
- package/dist/date-picker/month-names.d.ts +0 -13
- package/dist/date-picker/month-names.js +0 -109
- package/dist/date-picker/month-slider.d.ts +0 -29
- package/dist/date-picker/month-slider.js +0 -92
- package/dist/date-picker/month.d.ts +0 -14
- package/dist/date-picker/month.js +0 -58
- package/dist/date-picker/months.d.ts +0 -11
- package/dist/date-picker/months.js +0 -134
- package/dist/date-picker/weekdays.d.ts +0 -13
- package/dist/date-picker/weekdays.js +0 -38
- package/dist/date-picker/years.d.ts +0 -25
- package/dist/date-picker/years.js +0 -133
- package/dist/dialog/dialog.d.ts +0 -64
- package/dist/dialog/dialog.js +0 -238
- package/dist/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -7
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -25
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -246
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -26
- package/dist/dropdown-menu/dropdown-menu.js +0 -202
- package/dist/editable-heading/editable-heading.d.ts +0 -31
- package/dist/editable-heading/editable-heading.js +0 -203
- package/dist/error-bubble/error-bubble.d.ts +0 -18
- package/dist/error-bubble/error-bubble.js +0 -90
- package/dist/error-message/error-message.d.ts +0 -27
- package/dist/error-message/error-message.js +0 -79
- package/dist/footer/footer.d.ts +0 -28
- package/dist/footer/footer.js +0 -118
- package/dist/global/compose.d.ts +0 -7
- package/dist/global/compose.js +0 -17
- package/dist/global/composeRefs.d.ts +0 -3
- package/dist/global/composeRefs.js +0 -19
- package/dist/global/controls-height.d.ts +0 -9
- package/dist/global/controls-height.js +0 -19
- package/dist/global/create-stateful-context.d.ts +0 -27
- package/dist/global/create-stateful-context.js +0 -49
- package/dist/global/data-tests.d.ts +0 -3
- package/dist/global/data-tests.js +0 -30
- package/dist/global/dom.d.ts +0 -37
- package/dist/global/dom.js +0 -153
- package/dist/global/focus-sensor-hoc.d.ts +0 -19
- package/dist/global/focus-sensor-hoc.js +0 -165
- package/dist/global/fuzzy-highlight.d.ts +0 -11
- package/dist/global/fuzzy-highlight.js +0 -90
- package/dist/global/get-event-key.d.ts +0 -2
- package/dist/global/get-event-key.js +0 -101
- package/dist/global/get-uid.d.ts +0 -1
- package/dist/global/get-uid.js +0 -22
- package/dist/global/inject-styles.d.ts +0 -3
- package/dist/global/inject-styles.js +0 -22
- package/dist/global/linear-function.d.ts +0 -6
- package/dist/global/linear-function.js +0 -15
- package/dist/global/listeners.d.ts +0 -8
- package/dist/global/listeners.js +0 -59
- package/dist/global/memoize.d.ts +0 -1
- package/dist/global/memoize.js +0 -24
- package/dist/global/normalize-indent.d.ts +0 -1
- package/dist/global/normalize-indent.js +0 -61
- package/dist/global/promise-with-timeout.d.ts +0 -5
- package/dist/global/promise-with-timeout.js +0 -19
- package/dist/global/prop-types.d.ts +0 -4
- package/dist/global/prop-types.js +0 -9
- package/dist/global/react-dom-renderer.d.ts +0 -16
- package/dist/global/react-dom-renderer.js +0 -55
- package/dist/global/react-render-adapter.d.ts +0 -29
- package/dist/global/react-render-adapter.js +0 -36
- package/dist/global/rerender-hoc.d.ts +0 -41
- package/dist/global/rerender-hoc.js +0 -58
- package/dist/global/schedule-raf.d.ts +0 -1
- package/dist/global/schedule-raf.js +0 -28
- package/dist/global/sniffer.d.ts +0 -3
- package/dist/global/sniffer.js +0 -6
- package/dist/global/theme.d.ts +0 -21
- package/dist/global/theme.js +0 -44
- package/dist/global/trivial-template-tag.d.ts +0 -1
- package/dist/global/trivial-template-tag.js +0 -21
- package/dist/global/typescript-utils.d.ts +0 -2
- package/dist/global/typescript-utils.js +0 -8
- package/dist/global/url.d.ts +0 -57
- package/dist/global/url.js +0 -142
- package/dist/global/use-event-callback.d.ts +0 -1
- package/dist/global/use-event-callback.js +0 -17
- package/dist/global/variables.d.ts +0 -90
- package/dist/global/variables.js +0 -1
- package/dist/grid/col.d.ts +0 -31
- package/dist/grid/col.js +0 -81
- package/dist/grid/grid.d.ts +0 -14
- package/dist/grid/grid.js +0 -49
- package/dist/grid/row.d.ts +0 -40
- package/dist/grid/row.js +0 -68
- package/dist/group/group.d.ts +0 -12
- package/dist/group/group.js +0 -39
- package/dist/header/header.d.ts +0 -34
- package/dist/header/header.js +0 -191
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -52
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -258
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -18
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -173
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -307
- package/dist/header/smart-services.d.ts +0 -25
- package/dist/header/smart-services.js +0 -194
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -56
- package/dist/header/tray.d.ts +0 -9
- package/dist/header/tray.js +0 -41
- package/dist/heading/heading.d.ts +0 -25
- package/dist/heading/heading.js +0 -68
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -399
- package/dist/http/http.mock.d.ts +0 -20
- package/dist/http/http.mock.js +0 -115
- package/dist/hub-source/hub-source.d.ts +0 -42
- package/dist/hub-source/hub-source.js +0 -217
- package/dist/hub-source/hub-source__user.d.ts +0 -4
- package/dist/hub-source/hub-source__user.js +0 -61
- package/dist/hub-source/hub-source__users-groups.d.ts +0 -24
- package/dist/hub-source/hub-source__users-groups.js +0 -87
- package/dist/i18n/i18n-context.d.ts +0 -13
- package/dist/i18n/i18n-context.js +0 -28
- package/dist/i18n/i18n.d.ts +0 -59
- package/dist/i18n/i18n.js +0 -140
- package/dist/icon/icon.d.ts +0 -43
- package/dist/icon/icon.js +0 -108
- package/dist/icon/icon__constants.d.ts +0 -30
- package/dist/icon/icon__constants.js +0 -34
- package/dist/icon/icon__svg.d.ts +0 -15
- package/dist/icon/icon__svg.js +0 -15
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -18
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -36
- package/dist/island/adaptive-island-hoc.d.ts +0 -61
- package/dist/island/adaptive-island-hoc.js +0 -53
- package/dist/island/content.d.ts +0 -43
- package/dist/island/content.js +0 -147
- package/dist/island/header.d.ts +0 -8
- package/dist/island/header.js +0 -97
- package/dist/island/island.d.ts +0 -78
- package/dist/island/island.js +0 -58
- package/dist/island-legacy/content-legacy.d.ts +0 -10
- package/dist/island-legacy/content-legacy.js +0 -34
- package/dist/island-legacy/header-legacy.d.ts +0 -10
- package/dist/island-legacy/header-legacy.js +0 -36
- package/dist/island-legacy/island-legacy.d.ts +0 -12
- package/dist/island-legacy/island-legacy.js +0 -36
- package/dist/link/clickableLink.d.ts +0 -20
- package/dist/link/clickableLink.js +0 -69
- package/dist/link/link.d.ts +0 -148
- package/dist/link/link.js +0 -122
- package/dist/list/consts.d.ts +0 -76
- package/dist/list/consts.js +0 -31
- package/dist/list/list.d.ts +0 -194
- package/dist/list/list.js +0 -801
- package/dist/list/list__custom.d.ts +0 -6
- package/dist/list/list__custom.js +0 -89
- package/dist/list/list__hint.d.ts +0 -15
- package/dist/list/list__hint.js +0 -33
- package/dist/list/list__item.d.ts +0 -8
- package/dist/list/list__item.js +0 -230
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -78
- package/dist/list/list__separator.d.ts +0 -5
- package/dist/list/list__separator.js +0 -37
- package/dist/list/list__title.d.ts +0 -5
- package/dist/list/list__title.js +0 -46
- package/dist/list/list__users-groups-source.d.ts +0 -27
- package/dist/list/list__users-groups-source.js +0 -197
- package/dist/loader/loader.d.ts +0 -28
- package/dist/loader/loader.js +0 -95
- package/dist/loader/loader__core.d.ts +0 -75
- package/dist/loader/loader__core.js +0 -317
- package/dist/loader-inline/loader-inline.d.ts +0 -18
- package/dist/loader-inline/loader-inline.js +0 -50
- package/dist/loader-screen/loader-screen.d.ts +0 -17
- package/dist/loader-screen/loader-screen.js +0 -64
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -218
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -99
- package/dist/markdown/code.d.ts +0 -7
- package/dist/markdown/code.js +0 -54
- package/dist/markdown/heading.d.ts +0 -11
- package/dist/markdown/heading.js +0 -20
- package/dist/markdown/link.d.ts +0 -12
- package/dist/markdown/link.js +0 -34
- package/dist/markdown/markdown.d.ts +0 -15
- package/dist/markdown/markdown.js +0 -101
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -255
- package/dist/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +0 -93
- package/dist/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -12
- package/dist/old-browsers-message/white-list.d.ts +0 -2
- package/dist/old-browsers-message/white-list.js +0 -36
- package/dist/pager/pager.d.ts +0 -78
- package/dist/pager/pager.js +0 -394
- package/dist/panel/panel.d.ts +0 -12
- package/dist/panel/panel.js +0 -39
- package/dist/permissions/permissions.d.ts +0 -111
- package/dist/permissions/permissions.js +0 -221
- package/dist/permissions/permissions__cache.d.ts +0 -93
- package/dist/permissions/permissions__cache.js +0 -257
- package/dist/popup/popup.consts.d.ts +0 -37
- package/dist/popup/popup.consts.js +0 -44
- package/dist/popup/popup.d.ts +0 -147
- package/dist/popup/popup.js +0 -420
- package/dist/popup/popup.target.d.ts +0 -7
- package/dist/popup/popup.target.js +0 -24
- package/dist/popup/position.d.ts +0 -30
- package/dist/popup/position.js +0 -260
- package/dist/popup-menu/popup-menu.d.ts +0 -60
- package/dist/popup-menu/popup-menu.js +0 -144
- package/dist/progress-bar/progress-bar.d.ts +0 -58
- package/dist/progress-bar/progress-bar.js +0 -111
- package/dist/query-assist/query-assist.d.ts +0 -331
- package/dist/query-assist/query-assist.js +0 -1080
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -77
- package/dist/radio/radio.d.ts +0 -18
- package/dist/radio/radio.js +0 -48
- package/dist/radio/radio__item.d.ts +0 -28
- package/dist/radio/radio__item.js +0 -88
- package/dist/select/select.d.ts +0 -303
- package/dist/select/select.js +0 -1283
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -87
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -625
- package/dist/shortcuts/core.d.ts +0 -74
- package/dist/shortcuts/core.js +0 -249
- package/dist/shortcuts/shortcut-title.d.ts +0 -1
- package/dist/shortcuts/shortcut-title.js +0 -56
- package/dist/shortcuts/shortcuts-hoc.d.ts +0 -65
- package/dist/shortcuts/shortcuts-hoc.js +0 -61
- package/dist/shortcuts/shortcuts.d.ts +0 -28
- package/dist/shortcuts/shortcuts.js +0 -92
- package/dist/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -94
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -254
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -219
- package/dist/style.css +0 -1
- package/dist/tab-trap/tab-trap.d.ts +0 -43
- package/dist/tab-trap/tab-trap.js +0 -182
- package/dist/table/cell.d.ts +0 -13
- package/dist/table/cell.js +0 -37
- package/dist/table/disable-hover-hoc.d.ts +0 -64
- package/dist/table/disable-hover-hoc.js +0 -62
- package/dist/table/header-cell.d.ts +0 -43
- package/dist/table/header-cell.js +0 -105
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -150
- package/dist/table/multitable.d.ts +0 -25
- package/dist/table/multitable.js +0 -140
- package/dist/table/row-with-focus-sensor.d.ts +0 -18
- package/dist/table/row-with-focus-sensor.js +0 -119
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -294
- package/dist/table/selection-adapter.d.ts +0 -5
- package/dist/table/selection-adapter.js +0 -14
- package/dist/table/selection-shortcuts-hoc.d.ts +0 -17
- package/dist/table/selection-shortcuts-hoc.js +0 -206
- package/dist/table/selection.d.ts +0 -47
- package/dist/table/selection.js +0 -258
- package/dist/table/smart-table.d.ts +0 -64
- package/dist/table/smart-table.js +0 -151
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -457
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -226
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -89
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -355
- package/dist/tabs/custom-item.d.ts +0 -9
- package/dist/tabs/custom-item.js +0 -11
- package/dist/tabs/dumb-tabs.d.ts +0 -35
- package/dist/tabs/dumb-tabs.js +0 -191
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -144
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -18
- package/dist/tabs/tab.d.ts +0 -27
- package/dist/tabs/tab.js +0 -41
- package/dist/tabs/tabs.d.ts +0 -7
- package/dist/tabs/tabs.js +0 -102
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -208
- package/dist/tags-input/tags-input.d.ts +0 -165
- package/dist/tags-input/tags-input.js +0 -535
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -103
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -54
- package/dist/toggle/toggle.d.ts +0 -39
- package/dist/toggle/toggle.js +0 -86
- package/dist/tooltip/tooltip.d.ts +0 -65
- package/dist/tooltip/tooltip.js +0 -229
- package/dist/user-agreement/service.d.ts +0 -67
- package/dist/user-agreement/service.js +0 -501
- package/dist/user-agreement/toolbox.eula.d.ts +0 -2
- package/dist/user-agreement/toolbox.eula.js +0 -3
- package/dist/user-agreement/user-agreement.d.ts +0 -61
- package/dist/user-agreement/user-agreement.js +0 -191
- package/dist/user-card/card.d.ts +0 -71
- package/dist/user-card/card.js +0 -82
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -174
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -146
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -87
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name User Agreement
|
|
3
3
|
*/
|
|
4
|
-
import React, { PureComponent } from 'react';
|
|
4
|
+
import React, { PureComponent, ReactNode } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
declare function noop(): void;
|
|
7
7
|
export interface UserAgreementTranslations {
|
|
@@ -13,8 +13,8 @@ export interface UserAgreementTranslations {
|
|
|
13
13
|
remindLater: string;
|
|
14
14
|
}
|
|
15
15
|
export interface UserAgreementProps {
|
|
16
|
-
text: string;
|
|
17
16
|
translations?: UserAgreementTranslations | null | undefined;
|
|
17
|
+
children: ReactNode;
|
|
18
18
|
show: boolean;
|
|
19
19
|
onAccept: () => void;
|
|
20
20
|
onDecline: () => void;
|
|
@@ -30,7 +30,6 @@ export default class UserAgreement extends PureComponent<UserAgreementProps> {
|
|
|
30
30
|
static propTypes: {
|
|
31
31
|
show: PropTypes.Requireable<boolean>;
|
|
32
32
|
preview: PropTypes.Requireable<boolean>;
|
|
33
|
-
text: PropTypes.Validator<string>;
|
|
34
33
|
onAccept: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
34
|
onDecline: PropTypes.Requireable<(...args: any[]) => any>;
|
|
36
35
|
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -8,7 +8,6 @@ import Dialog from '../dialog/dialog';
|
|
|
8
8
|
import { Content, Header } from '../island/island';
|
|
9
9
|
import Panel from '../panel/panel';
|
|
10
10
|
import Button from '../button/button';
|
|
11
|
-
import Markdown from '../markdown/markdown';
|
|
12
11
|
import { I18nContext } from '../i18n/i18n-context';
|
|
13
12
|
import style from './user-agreement.css';
|
|
14
13
|
function noop() { }
|
|
@@ -19,7 +18,6 @@ export default class UserAgreement extends PureComponent {
|
|
|
19
18
|
static propTypes = {
|
|
20
19
|
show: PropTypes.bool,
|
|
21
20
|
preview: PropTypes.bool,
|
|
22
|
-
text: PropTypes.string.isRequired,
|
|
23
21
|
onAccept: PropTypes.func,
|
|
24
22
|
onDecline: PropTypes.func,
|
|
25
23
|
onClose: PropTypes.func,
|
|
@@ -46,12 +44,12 @@ export default class UserAgreement extends PureComponent {
|
|
|
46
44
|
onScrollToBottom = () => this.setState({ scrolledDown: true });
|
|
47
45
|
render() {
|
|
48
46
|
const { scrolledDown } = this.state;
|
|
49
|
-
const { translations, onAccept, onDecline, onClose, onRemindLater,
|
|
47
|
+
const { translations, onAccept, onDecline, onClose, onRemindLater, children, show, preview, className } = this.props;
|
|
50
48
|
return (<I18nContext.Consumer>
|
|
51
49
|
{({ translate }) => (<Dialog label={translations?.userAgreement ?? translate('userAgreement')} show={show} className={classNames(style.agreementDialog, className)} contentClassName={style.dialogContent} trapFocus autoFocusFirst={false} data-test="user-agreement">
|
|
52
50
|
<Header>{translations?.userAgreement ?? translate('userAgreement')}</Header>
|
|
53
51
|
<Content fade onScrollToBottom={this.onScrollToBottom}>
|
|
54
|
-
|
|
52
|
+
{children}
|
|
55
53
|
</Content>
|
|
56
54
|
{!preview && (<Panel>
|
|
57
55
|
{onRemindLater && !scrolledDown && (<div className={style.suggestion}>
|
|
@@ -11,7 +11,7 @@ export interface UserCardUser {
|
|
|
11
11
|
banReason?: string | undefined;
|
|
12
12
|
unverifiedEmail?: boolean | null | undefined;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface UserCardTranslations {
|
|
15
15
|
banned: string;
|
|
16
16
|
online: string;
|
|
17
17
|
offline: string;
|
|
@@ -22,8 +22,7 @@ export interface UserCardWording {
|
|
|
22
22
|
}
|
|
23
23
|
export interface UserCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
24
|
user: UserCardUser;
|
|
25
|
-
|
|
26
|
-
translations?: UserCardWording | null | undefined;
|
|
25
|
+
translations?: UserCardTranslations | null | undefined;
|
|
27
26
|
info?: ReactElement | readonly ReactElement[] | string;
|
|
28
27
|
avatarInfo?: ReactElement | readonly ReactElement[] | string;
|
|
29
28
|
'data-test'?: string | null | undefined;
|
|
@@ -40,13 +40,13 @@ export default class UserCard extends PureComponent {
|
|
|
40
40
|
static contextType = I18nContext;
|
|
41
41
|
copyEmail = () => {
|
|
42
42
|
const { translate } = this.context;
|
|
43
|
-
const
|
|
44
|
-
clipboard.copyText(this.props.user.email || '',
|
|
43
|
+
const translations = this.props.translations;
|
|
44
|
+
clipboard.copyText(this.props.user.email || '', translations?.copiedToClipboard ?? translate('copyToClipboard'), translations?.copingToClipboardError ?? translate('copingToClipboardError'));
|
|
45
45
|
};
|
|
46
46
|
render() {
|
|
47
47
|
const { children, info, className, user, avatarInfo, ...restProps } = this.props;
|
|
48
48
|
const { translate } = this.context;
|
|
49
|
-
const
|
|
49
|
+
const translations = this.props.translations;
|
|
50
50
|
const classes = classNames(className, {});
|
|
51
51
|
const userActiveStatusClasses = classNames(styles.userActiveStatus, user.online ? styles.online : '');
|
|
52
52
|
return (<div className={classes} {...restProps}>
|
|
@@ -64,11 +64,11 @@ export default class UserCard extends PureComponent {
|
|
|
64
64
|
{!user.href && <span className={styles.userName}>{user.name}</span>}
|
|
65
65
|
{typeof user.online === 'boolean' &&
|
|
66
66
|
(<span className={userActiveStatusClasses} title={user.online
|
|
67
|
-
? (
|
|
68
|
-
: (
|
|
67
|
+
? (translations?.online ?? translate('online'))
|
|
68
|
+
: (translations?.offline ?? translate('offline'))}/>)}
|
|
69
69
|
{!!info && <span className={styles.userNameInfo}>{info}</span>}
|
|
70
70
|
{user.banned &&
|
|
71
|
-
(<span className={classNames(badgeStyles.badge, badgeStyles.invalid)} title={user.banReason}>{
|
|
71
|
+
(<span className={classNames(badgeStyles.badge, badgeStyles.invalid)} title={user.banReason}>{translations?.banned ?? translate('banned')}</span>)}
|
|
72
72
|
</div>
|
|
73
73
|
<div className={styles.userLogin}>{user.login}</div>
|
|
74
74
|
{user.email && (<span className={styles.userEmailWrapper}>
|
|
@@ -76,9 +76,9 @@ export default class UserCard extends PureComponent {
|
|
|
76
76
|
{user.email}
|
|
77
77
|
</Link>
|
|
78
78
|
{user.unverifiedEmail && (<span className={styles.unverifiedLabel}>
|
|
79
|
-
{
|
|
79
|
+
{translations?.unverified ?? translate('unverified')}
|
|
80
80
|
</span>)}
|
|
81
|
-
<Icon title={
|
|
81
|
+
<Icon title={translations?.copyToClipboard ?? translate('copyToClipboard')} className={styles.userCopyIcon} onClick={this.copyEmail} glyph={copyIcon} size={IconSize.Size14} suppressSizeWarning/>
|
|
82
82
|
</span>)}
|
|
83
83
|
</div>
|
|
84
84
|
{children}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
@import "../global/variables.css";
|
|
2
2
|
|
|
3
|
-
@value unit from "../global/global.css";
|
|
4
|
-
|
|
5
3
|
.userCardSpaced {
|
|
6
|
-
padding: calc(unit * 2) calc(unit * 2);
|
|
4
|
+
padding: calc(var(--ring-unit) * 2) calc(var(--ring-unit) * 2);
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
.userInformationContainer {
|
|
@@ -111,8 +109,8 @@
|
|
|
111
109
|
.userActiveStatus {
|
|
112
110
|
display: inline-block;
|
|
113
111
|
|
|
114
|
-
width: unit;
|
|
115
|
-
height: unit;
|
|
112
|
+
width: var(--ring-unit);
|
|
113
|
+
height: var(--ring-unit);
|
|
116
114
|
margin-right: var(--ring-unit);
|
|
117
115
|
margin-left: 6px;
|
|
118
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "6.0.3
|
|
3
|
+
"version": "6.0.3",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"babel.config.js",
|
|
10
10
|
"components",
|
|
11
|
-
"dist",
|
|
12
11
|
"postcss.config.js",
|
|
13
12
|
"webpack.config.js",
|
|
14
13
|
"jslint-xml.js",
|
|
@@ -50,7 +49,7 @@
|
|
|
50
49
|
"postbuild": "cpy '**/*.d.ts' ../dist --parents --cwd=components/",
|
|
51
50
|
"serve": "npm --prefix packages/hermione run serve",
|
|
52
51
|
"start": "storybook dev -p 9999",
|
|
53
|
-
"storybook-debug": "node --inspect-brk node_modules/@storybook/
|
|
52
|
+
"storybook-debug": "node --inspect-brk node_modules/@storybook/react/bin -p 9999",
|
|
54
53
|
"lint:js": "eslint",
|
|
55
54
|
"lint": "npm run lint:js . && npm run stylelint",
|
|
56
55
|
"prelint-ci": "echo \"##teamcity[importData type='jslint' path='eslint-report.xml']\"",
|
|
@@ -66,6 +65,8 @@
|
|
|
66
65
|
"prerelease-ci": "git pull",
|
|
67
66
|
"release-ci": "npm version $NPM_VERSION_PARAMS && npm publish --access=public $NPM_PUBLISH_PARAMS",
|
|
68
67
|
"postrelease-ci": "git push --follow-tags",
|
|
68
|
+
"prerelease-built-ci": "node prepare-built-package.js",
|
|
69
|
+
"release-built-ci": "npm publish --access=public $NPM_PUBLISH_PARAMS",
|
|
69
70
|
"prepublishOnly": "pinst --disable",
|
|
70
71
|
"postpublish": "pinst --enable"
|
|
71
72
|
},
|
|
@@ -75,70 +76,70 @@
|
|
|
75
76
|
},
|
|
76
77
|
"readmeFilename": "README.md",
|
|
77
78
|
"devDependencies": {
|
|
78
|
-
"@babel/cli": "^7.
|
|
79
|
-
"@babel/eslint-parser": "^7.
|
|
80
|
-
"@csstools/stylelint-no-at-nest-rule": "^
|
|
79
|
+
"@babel/cli": "^7.23.4",
|
|
80
|
+
"@babel/eslint-parser": "^7.23.3",
|
|
81
|
+
"@csstools/stylelint-no-at-nest-rule": "^2.0.0",
|
|
82
|
+
"@csstools/css-parser-algorithms": "^2.5.0",
|
|
81
83
|
"@jetbrains/eslint-config": "^5.4.1",
|
|
82
|
-
"@jetbrains/stylelint-config": "^4.0.
|
|
83
|
-
"@primer/octicons": "^19.
|
|
84
|
-
"@rollup/plugin-babel": "^6.0.
|
|
85
|
-
"@rollup/plugin-json": "^6.
|
|
86
|
-
"@rollup/plugin-node-resolve": "^15.2.
|
|
87
|
-
"@rollup/plugin-replace": "^5.0.
|
|
88
|
-
"@storybook/addon-a11y": "7.
|
|
89
|
-
"@storybook/addon-docs": "7.
|
|
90
|
-
"@storybook/addon-essentials": "7.
|
|
91
|
-
"@storybook/addon-storyshots": "7.
|
|
92
|
-
"@storybook/addon-storyshots-puppeteer": "7.
|
|
93
|
-
"@storybook/addon-storysource": "7.
|
|
94
|
-
"@storybook/addons": "7.
|
|
95
|
-
"@storybook/
|
|
96
|
-
"@storybook/
|
|
97
|
-
"@storybook/
|
|
98
|
-
"@storybook/
|
|
99
|
-
"@storybook/
|
|
100
|
-
"@
|
|
101
|
-
"@testing-library/
|
|
102
|
-
"@
|
|
103
|
-
"@types/chai": "^
|
|
104
|
-
"@types/chai-as-promised": "^7.1.5",
|
|
84
|
+
"@jetbrains/stylelint-config": "^4.0.2",
|
|
85
|
+
"@primer/octicons": "^19.8.0",
|
|
86
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
87
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
88
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
89
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
90
|
+
"@storybook/addon-a11y": "7.6.8",
|
|
91
|
+
"@storybook/addon-docs": "7.6.7",
|
|
92
|
+
"@storybook/addon-essentials": "7.6.7",
|
|
93
|
+
"@storybook/addon-storyshots": "7.6.3",
|
|
94
|
+
"@storybook/addon-storyshots-puppeteer": "7.6.8",
|
|
95
|
+
"@storybook/addon-storysource": "7.6.8",
|
|
96
|
+
"@storybook/addons": "7.6.7",
|
|
97
|
+
"@storybook/preview-api": "7.6.3",
|
|
98
|
+
"@storybook/react": "7.6.3",
|
|
99
|
+
"@storybook/react-webpack5": "7.6.7",
|
|
100
|
+
"@storybook/source-loader": "7.6.8",
|
|
101
|
+
"@storybook/theming": "7.6.8",
|
|
102
|
+
"@testing-library/react": "^14.1.2",
|
|
103
|
+
"@testing-library/user-event": "^14.5.2",
|
|
104
|
+
"@types/chai": "^4.3.11",
|
|
105
|
+
"@types/chai-as-promised": "^7.1.8",
|
|
105
106
|
"@types/chai-dom": "0.0.10",
|
|
106
|
-
"@types/chai-enzyme": "^0.6.
|
|
107
|
-
"@types/enzyme": "^3.10.
|
|
108
|
-
"@types/
|
|
109
|
-
"@types/react
|
|
110
|
-
"@types/
|
|
111
|
-
"@types/sinon
|
|
112
|
-
"@
|
|
113
|
-
"@typescript-eslint/
|
|
107
|
+
"@types/chai-enzyme": "^0.6.13",
|
|
108
|
+
"@types/enzyme": "^3.10.18",
|
|
109
|
+
"@types/markdown-it": "^13.0.7",
|
|
110
|
+
"@types/react": "^18.2.48",
|
|
111
|
+
"@types/react-dom": "^18.2.18",
|
|
112
|
+
"@types/sinon": "^17.0.3",
|
|
113
|
+
"@types/sinon-chai": "^3.2.12",
|
|
114
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
115
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
114
116
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
115
|
-
"acorn": "^8.
|
|
116
|
-
"babel-plugin-react-docgen": "^4.2.1",
|
|
117
|
+
"acorn": "^8.11.3",
|
|
117
118
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
118
|
-
"caniuse-lite": "^1.0.
|
|
119
|
-
"chai": "^
|
|
119
|
+
"caniuse-lite": "^1.0.30001576",
|
|
120
|
+
"chai": "^5.0.0",
|
|
120
121
|
"chai-as-promised": "^7.1.1",
|
|
121
122
|
"chai-dom": "^1.10.0",
|
|
122
123
|
"chai-enzyme": "1.0.0-beta.1",
|
|
123
124
|
"cheerio": "^1.0.0-rc.12",
|
|
124
|
-
"core-js": "^3.
|
|
125
|
+
"core-js": "^3.35.0",
|
|
125
126
|
"cpy-cli": "^3.1.1",
|
|
126
127
|
"enzyme": "^3.11.0",
|
|
127
|
-
"eslint": "^8.
|
|
128
|
-
"eslint-import-resolver-webpack": "^0.13.
|
|
128
|
+
"eslint": "^8.56.0",
|
|
129
|
+
"eslint-import-resolver-webpack": "^0.13.8",
|
|
129
130
|
"eslint-plugin-bdd": "^2.1.1",
|
|
130
|
-
"eslint-plugin-import": "^2.
|
|
131
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
131
|
+
"eslint-plugin-import": "^2.29.1",
|
|
132
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
132
133
|
"eslint-plugin-react": "^7.33.2",
|
|
133
|
-
"eslint-plugin-storybook": "^0.6.
|
|
134
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
134
135
|
"events": "^3.3.0",
|
|
135
|
-
"glob": "^10.3.
|
|
136
|
-
"html-webpack-plugin": "^5.
|
|
136
|
+
"glob": "^10.3.10",
|
|
137
|
+
"html-webpack-plugin": "^5.6.0",
|
|
137
138
|
"husky": "^8.0.3",
|
|
138
139
|
"identity-obj-proxy": "^3.0.0",
|
|
139
140
|
"imports-loader": "^4.0.1",
|
|
140
|
-
"jest": "~29.
|
|
141
|
-
"jest-environment-jsdom": "^29.
|
|
141
|
+
"jest": "~29.7.0",
|
|
142
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
142
143
|
"jest-teamcity": "^1.10.0",
|
|
143
144
|
"karma": "^6.4.2",
|
|
144
145
|
"karma-chrome-launcher": "3.2.0",
|
|
@@ -146,34 +147,34 @@
|
|
|
146
147
|
"karma-sourcemap-loader": "^0.4.0",
|
|
147
148
|
"karma-teamcity-reporter": "^2.0.0",
|
|
148
149
|
"karma-webpack": "^5.0.0",
|
|
149
|
-
"lint-staged": "^
|
|
150
|
+
"lint-staged": "^15.2.0",
|
|
151
|
+
"markdown-it": "^14.0.0",
|
|
150
152
|
"merge-options": "^3.0.4",
|
|
151
153
|
"mocha": "^10.2.0",
|
|
152
154
|
"pinst": "^3.0.0",
|
|
153
|
-
"prettier": "^3.
|
|
154
|
-
"puppeteer": "^21.
|
|
155
|
+
"prettier": "^3.2.2",
|
|
156
|
+
"puppeteer": "^21.2.1",
|
|
155
157
|
"raw-loader": "^4.0.2",
|
|
156
158
|
"react": "^18.2.0",
|
|
157
159
|
"react-dom": "^18.2.0",
|
|
158
160
|
"react-test-renderer": "^18.2.0",
|
|
159
|
-
"regenerator-runtime": "^0.14.
|
|
160
|
-
"rimraf": "^5.0.
|
|
161
|
-
"rollup": "^
|
|
161
|
+
"regenerator-runtime": "^0.14.1",
|
|
162
|
+
"rimraf": "^5.0.5",
|
|
163
|
+
"rollup": "^4.9.5",
|
|
162
164
|
"rollup-plugin-clear": "^2.0.7",
|
|
163
165
|
"rollup-plugin-styles": "^4.0.0",
|
|
164
|
-
"sinon": "^
|
|
166
|
+
"sinon": "^17.0.1",
|
|
165
167
|
"sinon-chai": "^3.7.0",
|
|
166
168
|
"storage-mock": "^2.1.0",
|
|
167
|
-
"storybook": "^7.
|
|
169
|
+
"storybook": "^7.6.8",
|
|
168
170
|
"storybook-addon-themes": "^6.1.0",
|
|
169
|
-
"
|
|
170
|
-
"stylelint": "^15.10.3",
|
|
171
|
+
"stylelint": "^16.1.0",
|
|
171
172
|
"svg-inline-loader": "^0.8.2",
|
|
172
173
|
"teamcity-service-messages": "^0.1.14",
|
|
173
|
-
"terser-webpack-plugin": "^5.3.
|
|
174
|
-
"typescript": "~5.
|
|
174
|
+
"terser-webpack-plugin": "^5.3.10",
|
|
175
|
+
"typescript": "~5.3.3",
|
|
175
176
|
"wallaby-webpack": "^3.9.16",
|
|
176
|
-
"webpack": "^5.
|
|
177
|
+
"webpack": "^5.89.0",
|
|
177
178
|
"webpack-cli": "^5.1.4",
|
|
178
179
|
"xmlappend": "^1.0.4"
|
|
179
180
|
},
|
|
@@ -181,8 +182,8 @@
|
|
|
181
182
|
"@types/react": ">=16.8.0",
|
|
182
183
|
"@types/react-dom": ">=16.8.0",
|
|
183
184
|
"core-js": ">=3.0.0",
|
|
184
|
-
"react": ">=
|
|
185
|
-
"react-dom": ">=
|
|
185
|
+
"react": ">=18.0.0",
|
|
186
|
+
"react-dom": ">=18.0.0",
|
|
186
187
|
"webpack": ">=5.0.0"
|
|
187
188
|
},
|
|
188
189
|
"peerDependenciesMeta": {
|
|
@@ -197,62 +198,54 @@
|
|
|
197
198
|
}
|
|
198
199
|
},
|
|
199
200
|
"dependencies": {
|
|
200
|
-
"@babel/core": "^7.
|
|
201
|
-
"@babel/preset-typescript": "^7.
|
|
201
|
+
"@babel/core": "^7.23.7",
|
|
202
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
202
203
|
"@jetbrains/babel-preset-jetbrains": "^2.3.2",
|
|
203
|
-
"@jetbrains/icons": "^3.
|
|
204
|
-
"@jetbrains/logos": "^2.2.
|
|
204
|
+
"@jetbrains/icons": "^3.22.0",
|
|
205
|
+
"@jetbrains/logos": "^2.2.24",
|
|
205
206
|
"@jetbrains/postcss-require-hover": "^0.1.2",
|
|
206
|
-
"@types/combokeys": "^2.4.
|
|
207
|
-
"@types/deep-equal": "^1.0.
|
|
208
|
-
"@types/element-resize-detector": "^1.1.
|
|
209
|
-
"@types/
|
|
210
|
-
"@types/
|
|
211
|
-
"@types/
|
|
212
|
-
"@types/util-deprecate": "^1.0.0",
|
|
207
|
+
"@types/combokeys": "^2.4.9",
|
|
208
|
+
"@types/deep-equal": "^1.0.4",
|
|
209
|
+
"@types/element-resize-detector": "^1.1.6",
|
|
210
|
+
"@types/prop-types": "^15.7.11",
|
|
211
|
+
"@types/react-virtualized": "9.21.29",
|
|
212
|
+
"@types/util-deprecate": "^1.0.3",
|
|
213
213
|
"@ungap/url-search-params": "^0.2.2",
|
|
214
214
|
"babel-loader": "9.1.3",
|
|
215
|
-
"babel-plugin-transform-define": "^2.1.
|
|
216
|
-
"browserslist": "^4.
|
|
215
|
+
"babel-plugin-transform-define": "^2.1.4",
|
|
216
|
+
"browserslist": "^4.22.2",
|
|
217
217
|
"change-case": "^4.1.1",
|
|
218
|
-
"classnames": "^2.
|
|
218
|
+
"classnames": "^2.5.1",
|
|
219
219
|
"combokeys": "^3.0.1",
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"csstype": "^3.1.2",
|
|
220
|
+
"css-loader": "^6.9.0",
|
|
221
|
+
"csstype": "^3.1.3",
|
|
223
222
|
"date-fns": "^2.30.0",
|
|
224
|
-
"deep-equal": "^2.2.
|
|
223
|
+
"deep-equal": "^2.2.3",
|
|
225
224
|
"element-resize-detector": "^1.2.4",
|
|
226
225
|
"es6-error": "^4.1.1",
|
|
227
226
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
228
|
-
"extricate-loader": "^3.0.0",
|
|
229
227
|
"fastdom": "^1.0.11",
|
|
230
228
|
"file-loader": "^6.2.0",
|
|
231
|
-
"focus-trap": "^7.5.
|
|
229
|
+
"focus-trap": "^7.5.4",
|
|
232
230
|
"highlight.js": "^10.7.2",
|
|
233
|
-
"html-loader": "^4.2.0",
|
|
234
|
-
"interpolate-loader": "^2.0.1",
|
|
235
231
|
"just-debounce-it": "^3.2.0",
|
|
236
232
|
"memoize-one": "^6.0.0",
|
|
237
|
-
"postcss": "^8.4.
|
|
233
|
+
"postcss": "^8.4.33",
|
|
238
234
|
"postcss-calc": "^9.0.1",
|
|
239
235
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
240
236
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
241
|
-
"postcss-loader": "^7.3.
|
|
237
|
+
"postcss-loader": "^7.3.4",
|
|
242
238
|
"postcss-modules-values-replace": "^4.1.0",
|
|
243
|
-
"postcss-preset-env": "^9.
|
|
239
|
+
"postcss-preset-env": "^9.3.0",
|
|
244
240
|
"prop-types": "^15.8.1",
|
|
245
|
-
"react-markdown": "^8.0.7",
|
|
246
241
|
"react-movable": "^3.0.4",
|
|
247
242
|
"react-virtualized": "^9.22.5",
|
|
248
243
|
"react-waypoint": "^10.3.0",
|
|
249
|
-
"remark-breaks": "^3.0.3",
|
|
250
|
-
"remark-gfm": "^3.0.1",
|
|
251
244
|
"scrollbar-width": "^3.1.1",
|
|
252
245
|
"simply-uuid": "^1.0.1",
|
|
253
|
-
"sniffr": "^1.
|
|
246
|
+
"sniffr": "^1.3.1",
|
|
254
247
|
"style-inject": "^0.3.0",
|
|
255
|
-
"style-loader": "~3.3.
|
|
248
|
+
"style-loader": "~3.3.4",
|
|
256
249
|
"url-loader": "^4.1.1",
|
|
257
250
|
"util-deprecate": "^1.0.2"
|
|
258
251
|
},
|
package/typings.d.ts
CHANGED
|
@@ -41,57 +41,3 @@ declare module 'scrollbar-width' {
|
|
|
41
41
|
recalculate?: boolean
|
|
42
42
|
): number | null;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
declare module 'sniffr' {
|
|
46
|
-
enum Browser {
|
|
47
|
-
FIREFOX = 'firefox',
|
|
48
|
-
CHROME = 'chrome',
|
|
49
|
-
IE = 'ie',
|
|
50
|
-
SAFARI = 'safari',
|
|
51
|
-
EDGE = 'edge',
|
|
52
|
-
ANDROID = 'com.android.browser',
|
|
53
|
-
OPERA = 'opera',
|
|
54
|
-
OPERA_MINI = 'opera.mini',
|
|
55
|
-
BLACKBERRY = 'blackberry',
|
|
56
|
-
ICEWEASEL = 'iceweasel',
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
enum OS {
|
|
60
|
-
LINUX = 'linux',
|
|
61
|
-
MACOS = 'macos',
|
|
62
|
-
WINDOWS = 'windows',
|
|
63
|
-
IOS = 'ios',
|
|
64
|
-
OPENBSD = 'openbsd',
|
|
65
|
-
ANDROID = 'android',
|
|
66
|
-
FIREFOXOS = 'firefoxos',
|
|
67
|
-
WINDOWS_PHONE = 'windows.phone',
|
|
68
|
-
WINDOWS_MOBILE = 'windows.mobile',
|
|
69
|
-
BLACKBERRYOS = 'blackberryos',
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
enum Device {
|
|
73
|
-
IPAD = 'ipad',
|
|
74
|
-
IPHONE = 'iphone',
|
|
75
|
-
LUMIA = 'lumia',
|
|
76
|
-
HTC = 'htc',
|
|
77
|
-
NEXUS = 'nexus',
|
|
78
|
-
GALAXY_NEXUS = 'galaxy.nexus',
|
|
79
|
-
NOKIA = 'nokia',
|
|
80
|
-
GALAXY = 'galaxy',
|
|
81
|
-
XBOX = 'xbox',
|
|
82
|
-
BLACKBERRY = 'blackberry',
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface SnifferProperty<T extends string> {
|
|
86
|
-
name: T | 'Unknown'
|
|
87
|
-
version: number[]
|
|
88
|
-
versionString: string
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export default class Sniffer {
|
|
92
|
-
os: SnifferProperty<OS>;
|
|
93
|
-
device: SnifferProperty<Device>;
|
|
94
|
-
browser: SnifferProperty<Browser>;
|
|
95
|
-
sniff(userAgentString?: string): this
|
|
96
|
-
}
|
|
97
|
-
}
|
package/webpack.config.js
CHANGED
|
@@ -91,28 +91,5 @@ module.exports = {
|
|
|
91
91
|
createConfig,
|
|
92
92
|
config,
|
|
93
93
|
componentsPath,
|
|
94
|
-
loaders
|
|
95
|
-
...loaders,
|
|
96
|
-
get svgInlineLoader() {
|
|
97
|
-
throw new Error('***Ring UI embedded "svgInlineLoader" removed in 4.0. Please install and use own instance if you need it.***');
|
|
98
|
-
},
|
|
99
|
-
get scssLoader() {
|
|
100
|
-
throw new Error('***Ring UI embedded "scssLoader" removed in 4.0. Please install and use own instance if you need it.***');
|
|
101
|
-
},
|
|
102
|
-
get svgLoader() {
|
|
103
|
-
throw new Error('***Ring UI embedded "svgLoader" removed in 4.0. Please install and use own instance if you need it.***');
|
|
104
|
-
},
|
|
105
|
-
get vfileLoader() {
|
|
106
|
-
throw new Error('***Ring UI embedded "vfileLoader" removed in 4.0. Please install and use own instance if you need it.***');
|
|
107
|
-
},
|
|
108
|
-
get htmlLoader() {
|
|
109
|
-
// eslint-disable-next-line no-console
|
|
110
|
-
console.warn('RingUI\'s "loaders.htmlLoader" is deprecated and will be removed soon. Please don\'t use it in your build');
|
|
111
|
-
return {
|
|
112
|
-
test: /-ng(\\|\/)\S*(-ng|-ng__)\S*\.html$/,
|
|
113
|
-
include: componentsPath,
|
|
114
|
-
loader: require.resolve('html-loader')
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
}
|
|
94
|
+
loaders
|
|
118
95
|
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AnalyticsPlugin } from './analytics';
|
|
2
|
-
export interface AnalyticsFUSPluginGroup {
|
|
3
|
-
id: string;
|
|
4
|
-
version: string;
|
|
5
|
-
baseline: string;
|
|
6
|
-
}
|
|
7
|
-
interface FusraInitParams {
|
|
8
|
-
recorderCode?: string | undefined;
|
|
9
|
-
recorderVersion: number | string;
|
|
10
|
-
productCode?: string | undefined;
|
|
11
|
-
productBuild?: string | undefined;
|
|
12
|
-
internal: boolean;
|
|
13
|
-
eventCountDelay?: number | undefined;
|
|
14
|
-
reportingFrequency?: number | undefined;
|
|
15
|
-
groups?: readonly AnalyticsFUSPluginGroup[] | undefined;
|
|
16
|
-
useForSubdomains?: boolean | undefined;
|
|
17
|
-
}
|
|
18
|
-
interface FusraEventParams {
|
|
19
|
-
groupId: string;
|
|
20
|
-
groupVersion?: number | string | undefined;
|
|
21
|
-
eventData?: Record<string, unknown> | undefined;
|
|
22
|
-
eventId: string;
|
|
23
|
-
}
|
|
24
|
-
declare global {
|
|
25
|
-
interface Window {
|
|
26
|
-
fusra?: {
|
|
27
|
-
(method: 'init', params: FusraInitParams): void;
|
|
28
|
-
(method: 'event', params: FusraEventParams): void;
|
|
29
|
-
query?: ['init' | 'event', FusraInitParams | FusraEventParams][];
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated
|
|
35
|
-
* @name AnalyticsFUSPlugin
|
|
36
|
-
*/
|
|
37
|
-
declare class AnalyticsFUSPlugin implements AnalyticsPlugin {
|
|
38
|
-
/**
|
|
39
|
-
* @deprecated
|
|
40
|
-
*/
|
|
41
|
-
trackEvent(): void;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated
|
|
44
|
-
*/
|
|
45
|
-
trackPageView(): void;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated
|
|
48
|
-
*/
|
|
49
|
-
get serializeAdditionalInfo(): boolean;
|
|
50
|
-
}
|
|
51
|
-
declare const _default: typeof AnalyticsFUSPlugin;
|
|
52
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import deprecate from 'util-deprecate';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated
|
|
4
|
-
* @name AnalyticsFUSPlugin
|
|
5
|
-
*/
|
|
6
|
-
class AnalyticsFUSPlugin {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
*/
|
|
10
|
-
trackEvent() { }
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
*/
|
|
14
|
-
trackPageView() { }
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
get serializeAdditionalInfo() {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export default deprecate(AnalyticsFUSPlugin, 'AnalyticsFUSPlugin is deprecated, use AnalyticsCustomPlugin instead');
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AnalyticsPlugin, Serializable } from './analytics';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
'GoogleAnalyticsObject': string;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
* @param {string?} gaId Google Analytics ID (should be undefined in development)
|
|
10
|
-
* @constructor
|
|
11
|
-
*/
|
|
12
|
-
export default class AnalyticsGAPlugin implements AnalyticsPlugin {
|
|
13
|
-
constructor(gaId?: string | undefined, isDevelopment?: boolean | undefined, domain?: string, cookielessUserIdentifier?: string | undefined);
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
*/
|
|
17
|
-
trackEvent(rawCategory: string, rawAction: string, data?: Record<string, Serializable>): void;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
trackPageView(path: string): void;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated
|
|
24
|
-
*/
|
|
25
|
-
get serializeAdditionalInfo(): boolean;
|
|
26
|
-
private _buildSuffix;
|
|
27
|
-
}
|