@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.4

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.
Files changed (264) hide show
  1. package/components/_helpers/anchor.js +0 -5
  2. package/components/_helpers/caption.js +1 -5
  3. package/components/_helpers/card.js +0 -28
  4. package/components/_helpers/icon__svg.js +0 -6
  5. package/components/_helpers/input.js +0 -21
  6. package/components/_helpers/select__filter.js +0 -8
  7. package/components/_helpers/services-link.js +1 -11
  8. package/components/_helpers/sidebar.js +0 -9
  9. package/components/_helpers/tab-link.js +0 -6
  10. package/components/_helpers/theme.js +1 -1
  11. package/components/_helpers/title.js +0 -15
  12. package/components/alert/alert.d.ts +7 -24
  13. package/components/alert/alert.js +0 -24
  14. package/components/alert/container.d.ts +0 -5
  15. package/components/alert/container.js +1 -6
  16. package/components/alert-service/alert-service.js +0 -1
  17. package/components/auth/auth.js +0 -1
  18. package/components/auth/auth__core.d.ts +3 -3
  19. package/components/auth/auth__core.js +28 -20
  20. package/components/auth/down-notification.js +0 -9
  21. package/components/auth/iframe-flow.js +0 -1
  22. package/components/auth/storage.js +0 -1
  23. package/components/auth-dialog/auth-dialog.d.ts +0 -18
  24. package/components/auth-dialog/auth-dialog.js +7 -25
  25. package/components/auth-dialog-service/auth-dialog-service.js +4 -5
  26. package/components/avatar/avatar.d.ts +0 -13
  27. package/components/avatar/avatar.js +0 -13
  28. package/components/avatar/fallback-avatar.d.ts +1 -10
  29. package/components/avatar/fallback-avatar.js +0 -6
  30. package/components/badge/badge.d.ts +0 -10
  31. package/components/badge/badge.js +1 -11
  32. package/components/button/button.d.ts +0 -21
  33. package/components/button/button.js +0 -21
  34. package/components/button-group/button-group.d.ts +0 -5
  35. package/components/button-group/button-group.js +1 -6
  36. package/components/button-group/caption.d.ts +0 -4
  37. package/components/button-group/caption.js +0 -1
  38. package/components/button-set/button-set.d.ts +0 -6
  39. package/components/button-set/button-set.js +1 -7
  40. package/components/button-toolbar/button-toolbar.d.ts +0 -6
  41. package/components/button-toolbar/button-toolbar.js +1 -7
  42. package/components/checkbox/checkbox.d.ts +0 -19
  43. package/components/checkbox/checkbox.js +0 -18
  44. package/components/clipboard/clipboard.js +0 -1
  45. package/components/code/code.d.ts +0 -12
  46. package/components/code/code.js +0 -12
  47. package/components/confirm/confirm.d.ts +0 -14
  48. package/components/confirm/confirm.js +10 -24
  49. package/components/confirm-service/confirm-service.js +0 -1
  50. package/components/content-layout/content-layout.d.ts +0 -7
  51. package/components/content-layout/content-layout.js +0 -7
  52. package/components/content-layout/sidebar.d.ts +0 -9
  53. package/components/content-layout/sidebar.js +0 -1
  54. package/components/contenteditable/contenteditable.d.ts +1 -22
  55. package/components/contenteditable/contenteditable.js +1 -16
  56. package/components/control-label/control-label.js +0 -6
  57. package/components/data-list/data-list.d.ts +0 -2
  58. package/components/data-list/data-list.js +2 -23
  59. package/components/data-list/data-list.mock.js +0 -1
  60. package/components/data-list/item.js +0 -26
  61. package/components/data-list/title.d.ts +2 -2
  62. package/components/data-list/title.js +0 -2
  63. package/components/date-picker/consts.d.ts +0 -2
  64. package/components/date-picker/consts.js +1 -3
  65. package/components/date-picker/date-input.d.ts +0 -20
  66. package/components/date-picker/date-input.js +0 -23
  67. package/components/date-picker/date-picker.d.ts +0 -29
  68. package/components/date-picker/date-picker.js +3 -40
  69. package/components/date-picker/date-popup.d.ts +0 -22
  70. package/components/date-picker/date-popup.js +1 -24
  71. package/components/date-picker/day.d.ts +0 -14
  72. package/components/date-picker/day.js +1 -15
  73. package/components/date-picker/month-names.d.ts +1 -11
  74. package/components/date-picker/month-names.js +2 -14
  75. package/components/date-picker/month-slider.d.ts +0 -9
  76. package/components/date-picker/month-slider.js +1 -10
  77. package/components/date-picker/month.d.ts +1 -9
  78. package/components/date-picker/month.js +1 -6
  79. package/components/date-picker/months.d.ts +1 -9
  80. package/components/date-picker/months.js +1 -6
  81. package/components/date-picker/weekdays.d.ts +2 -8
  82. package/components/date-picker/weekdays.js +0 -4
  83. package/components/date-picker/years.d.ts +0 -6
  84. package/components/date-picker/years.js +1 -7
  85. package/components/dialog/dialog.d.ts +0 -20
  86. package/components/dialog/dialog.js +2 -24
  87. package/components/dropdown/anchor.d.ts +1 -8
  88. package/components/dropdown/anchor.js +0 -1
  89. package/components/dropdown/dropdown.d.ts +4 -22
  90. package/components/dropdown/dropdown.js +0 -22
  91. package/components/dropdown-menu/dropdown-menu.js +9 -33
  92. package/components/editable-heading/editable-heading.js +0 -2
  93. package/components/error-bubble/error-bubble.d.ts +0 -6
  94. package/components/error-bubble/error-bubble.js +1 -7
  95. package/components/error-message/error-message.d.ts +0 -10
  96. package/components/error-message/error-message.js +1 -11
  97. package/components/footer/footer.js +0 -15
  98. package/components/global/create-stateful-context.d.ts +0 -4
  99. package/components/global/create-stateful-context.js +0 -4
  100. package/components/global/focus-sensor-hoc.js +7 -27
  101. package/components/global/react-dom-renderer.d.ts +0 -5
  102. package/components/global/react-dom-renderer.js +0 -5
  103. package/components/global/theme.d.ts +1 -0
  104. package/components/global/theme.js +1 -2
  105. package/components/grid/col.d.ts +0 -14
  106. package/components/grid/col.js +1 -16
  107. package/components/grid/grid.d.ts +0 -5
  108. package/components/grid/grid.js +1 -6
  109. package/components/grid/row.d.ts +0 -18
  110. package/components/grid/row.js +1 -19
  111. package/components/group/group.d.ts +0 -5
  112. package/components/group/group.js +1 -6
  113. package/components/header/header-icon.d.ts +0 -22
  114. package/components/header/header-icon.js +1 -6
  115. package/components/header/header.d.ts +0 -6
  116. package/components/header/header.js +0 -7
  117. package/components/header/logo.d.ts +0 -4
  118. package/components/header/logo.js +0 -4
  119. package/components/header/profile.d.ts +1 -39
  120. package/components/header/profile.js +1 -40
  121. package/components/header/services-link.d.ts +0 -10
  122. package/components/header/services-link.js +0 -1
  123. package/components/header/services.d.ts +0 -14
  124. package/components/header/services.js +1 -13
  125. package/components/header/smart-profile.d.ts +0 -9
  126. package/components/header/smart-profile.js +19 -28
  127. package/components/header/smart-services.d.ts +0 -4
  128. package/components/header/smart-services.js +17 -51
  129. package/components/header/tray.d.ts +0 -5
  130. package/components/header/tray.js +1 -6
  131. package/components/heading/heading.js +0 -6
  132. package/components/icon/icon.d.ts +0 -11
  133. package/components/icon/icon.js +0 -11
  134. package/components/icon/icon__svg.d.ts +0 -8
  135. package/components/icon/icon__svg.js +0 -1
  136. package/components/icon/index.js +0 -1
  137. package/components/input/input.js +0 -2
  138. package/components/island/adaptive-island-hoc.d.ts +0 -1
  139. package/components/island/adaptive-island-hoc.js +3 -4
  140. package/components/island/content.d.ts +0 -10
  141. package/components/island/content.js +2 -12
  142. package/components/island/header.js +2 -10
  143. package/components/island/island.d.ts +0 -9
  144. package/components/island/island.js +1 -9
  145. package/components/island-legacy/content-legacy.d.ts +0 -5
  146. package/components/island-legacy/content-legacy.js +1 -6
  147. package/components/island-legacy/header-legacy.d.ts +0 -5
  148. package/components/island-legacy/header-legacy.js +1 -6
  149. package/components/island-legacy/island-legacy.d.ts +0 -5
  150. package/components/island-legacy/island-legacy.js +1 -6
  151. package/components/link/clickableLink.d.ts +0 -9
  152. package/components/link/clickableLink.js +0 -9
  153. package/components/link/link.d.ts +0 -25
  154. package/components/link/link.js +3 -16
  155. package/components/list/list.d.ts +0 -32
  156. package/components/list/list.js +1 -31
  157. package/components/list/list__custom.js +0 -17
  158. package/components/list/list__hint.d.ts +0 -4
  159. package/components/list/list__hint.js +0 -5
  160. package/components/list/list__item.js +0 -33
  161. package/components/list/list__link.js +2 -13
  162. package/components/list/list__separator.js +0 -6
  163. package/components/list/list__title.js +0 -7
  164. package/components/list/list__users-groups-source.js +0 -2
  165. package/components/loader/loader.d.ts +0 -10
  166. package/components/loader/loader.js +0 -10
  167. package/components/loader-inline/loader-inline.d.ts +0 -6
  168. package/components/loader-inline/loader-inline.js +1 -7
  169. package/components/loader-screen/loader-screen.d.ts +0 -6
  170. package/components/loader-screen/loader-screen.js +1 -7
  171. package/components/login-dialog/login-dialog.d.ts +0 -11
  172. package/components/login-dialog/login-dialog.js +12 -23
  173. package/components/login-dialog/service.js +3 -2
  174. package/components/markdown/markdown.js +0 -5
  175. package/components/message/message.js +0 -16
  176. package/components/pager/pager.js +0 -20
  177. package/components/panel/panel.d.ts +0 -5
  178. package/components/panel/panel.js +1 -6
  179. package/components/popup/popup.js +0 -41
  180. package/components/popup/popup.target.js +0 -5
  181. package/components/popup-menu/popup-menu.js +1 -12
  182. package/components/progress-bar/progress-bar.d.ts +19 -33
  183. package/components/progress-bar/progress-bar.js +0 -33
  184. package/components/query-assist/query-assist.d.ts +63 -93
  185. package/components/query-assist/query-assist.js +0 -94
  186. package/components/query-assist/query-assist__suggestions.js +0 -2
  187. package/components/radio/radio.d.ts +0 -8
  188. package/components/radio/radio.js +0 -8
  189. package/components/radio/radio__item.d.ts +0 -9
  190. package/components/radio/radio__item.js +0 -10
  191. package/components/select/select.js +0 -65
  192. package/components/select/select__filter.js +0 -2
  193. package/components/select/select__popup.js +1 -52
  194. package/components/shortcuts/core.js +1 -1
  195. package/components/shortcuts/shortcuts-hoc.d.ts +0 -5
  196. package/components/shortcuts/shortcuts-hoc.js +2 -7
  197. package/components/shortcuts/shortcuts.d.ts +0 -8
  198. package/components/shortcuts/shortcuts.js +0 -8
  199. package/components/slider/slider.js +0 -1
  200. package/components/storage/storage.js +0 -1
  201. package/components/storage/storage__local.js +0 -1
  202. package/components/style.css +1 -1
  203. package/components/tab-trap/tab-trap.js +0 -8
  204. package/components/table/cell.d.ts +0 -6
  205. package/components/table/cell.js +1 -7
  206. package/components/table/disable-hover-hoc.d.ts +0 -1
  207. package/components/table/disable-hover-hoc.js +1 -1
  208. package/components/table/header-cell.d.ts +0 -10
  209. package/components/table/header-cell.js +0 -10
  210. package/components/table/header.d.ts +0 -15
  211. package/components/table/header.js +0 -16
  212. package/components/table/multitable.d.ts +0 -4
  213. package/components/table/multitable.js +0 -4
  214. package/components/table/row-with-focus-sensor.d.ts +2 -2
  215. package/components/table/row-with-focus-sensor.js +0 -3
  216. package/components/table/row.js +0 -35
  217. package/components/table/selection-shortcuts-hoc.js +3 -22
  218. package/components/table/simple-table.d.ts +0 -44
  219. package/components/table/simple-table.js +1 -7
  220. package/components/table/smart-table.d.ts +0 -48
  221. package/components/table/smart-table.js +1 -10
  222. package/components/table/table.d.ts +0 -2
  223. package/components/table/table.js +3 -52
  224. package/components/tabs/collapsible-more.d.ts +1 -9
  225. package/components/tabs/collapsible-more.js +0 -24
  226. package/components/tabs/collapsible-tab.js +1 -9
  227. package/components/tabs/collapsible-tabs.d.ts +2 -29
  228. package/components/tabs/collapsible-tabs.js +0 -13
  229. package/components/tabs/custom-item.d.ts +1 -7
  230. package/components/tabs/custom-item.js +0 -5
  231. package/components/tabs/dumb-tabs.d.ts +0 -11
  232. package/components/tabs/dumb-tabs.js +0 -12
  233. package/components/tabs/smart-tabs.d.ts +0 -6
  234. package/components/tabs/smart-tabs.js +0 -7
  235. package/components/tabs/tab-link.d.ts +0 -8
  236. package/components/tabs/tab-link.js +0 -1
  237. package/components/tabs/tab.d.ts +0 -8
  238. package/components/tabs/tab.js +0 -9
  239. package/components/tabs/tabs.js +0 -2
  240. package/components/tag/tag.d.ts +0 -17
  241. package/components/tag/tag.js +0 -17
  242. package/components/tags-input/tags-input.d.ts +7 -33
  243. package/components/tags-input/tags-input.js +1 -34
  244. package/components/tags-list/tags-list.d.ts +0 -13
  245. package/components/tags-list/tags-list.js +0 -13
  246. package/components/text/text.d.ts +0 -7
  247. package/components/text/text.js +0 -7
  248. package/components/toggle/toggle.d.ts +0 -15
  249. package/components/toggle/toggle.js +0 -15
  250. package/components/tooltip/tooltip.d.ts +0 -9
  251. package/components/tooltip/tooltip.js +0 -9
  252. package/components/user-agreement/service.js +0 -1
  253. package/components/user-agreement/user-agreement.d.ts +0 -18
  254. package/components/user-agreement/user-agreement.js +11 -29
  255. package/components/user-card/card.d.ts +0 -35
  256. package/components/user-card/card.js +0 -1
  257. package/components/user-card/smart-user-card-tooltip.d.ts +0 -5
  258. package/components/user-card/smart-user-card-tooltip.js +0 -5
  259. package/components/user-card/tooltip.d.ts +0 -9
  260. package/components/user-card/tooltip.js +0 -9
  261. package/components/user-card/user-card.js +0 -1
  262. package/package.json +1 -2
  263. package/components/global/prop-types.d.ts +0 -4
  264. package/components/global/prop-types.js +0 -7
@@ -1,6 +1,5 @@
1
1
  import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import { memo } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import chevronDown from '@jetbrains/icons/chevron-10px';
5
4
  import classNames from 'classnames';
6
5
  import Icon from '../icon/icon.js';
@@ -27,10 +26,6 @@ const Anchor = _ref => {
27
26
  })]
28
27
  }));
29
28
  };
30
- Anchor.propTypes = {
31
- children: PropTypes.node,
32
- className: PropTypes.string
33
- };
34
29
  var Anchor$1 = /*#__PURE__*/memo(Anchor);
35
30
 
36
31
  export { Anchor$1 as A, modules_d9414203 as m };
@@ -1,6 +1,5 @@
1
- import { _ as _defineProperty, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
1
+ import { b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import { PureComponent } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import classNames from 'classnames';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
@@ -17,8 +16,5 @@ class Caption extends PureComponent {
17
16
  }));
18
17
  }
19
18
  }
20
- _defineProperty(Caption, "propTypes", {
21
- className: PropTypes.node
22
- });
23
19
 
24
20
  export { Caption as C, modules_1068e447 as m };
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { PureComponent } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import copyIcon from '@jetbrains/icons/copy';
7
6
  import Avatar, { Size } from '../avatar/avatar.js';
@@ -16,15 +15,6 @@ import { Size as Size$1 } from '../icon/icon__constants.js';
16
15
  var modules_a4196c17 = {"light":"light_rui_2ac4","userCardSpaced":"userCardSpaced_rui_6680","userInformationContainer":"userInformationContainer_rui_6680","userAvatar":"userAvatar_rui_6680","userInformation":"userInformation_rui_6680","userInformationGeneral":"userInformationGeneral_rui_6680","userNameLine":"userNameLine_rui_6680","userName":"userName_rui_6680","userLogin":"userLogin_rui_6680","userEmail":"userEmail_rui_6680","userCopyIcon":"userCopyIcon_rui_6680","userEmailWrapper":"userEmailWrapper_rui_6680","unverifiedLabel":"unverifiedLabel_rui_6680","userNameInfo":"userNameInfo_rui_6680","userActiveStatus":"userActiveStatus_rui_6680","online":"online_rui_6680"};
17
16
 
18
17
  const _excluded = ["children", "info", "className", "user", "avatarInfo"];
19
- const translationsShape = PropTypes.shape({
20
- banned: PropTypes.string.isRequired,
21
- online: PropTypes.string.isRequired,
22
- offline: PropTypes.string.isRequired,
23
- copyToClipboard: PropTypes.string,
24
- copiedToClipboard: PropTypes.string,
25
- copingToClipboardError: PropTypes.string,
26
- unverified: PropTypes.string
27
- });
28
18
  class UserCard extends PureComponent {
29
19
  constructor() {
30
20
  super(...arguments);
@@ -119,24 +109,6 @@ class UserCard extends PureComponent {
119
109
  }));
120
110
  }
121
111
  }
122
- _defineProperty(UserCard, "propTypes", {
123
- children: PropTypes.node,
124
- info: PropTypes.node,
125
- className: PropTypes.string,
126
- user: PropTypes.shape({
127
- name: PropTypes.string.isRequired,
128
- login: PropTypes.string.isRequired,
129
- avatarUrl: PropTypes.string.isRequired,
130
- email: PropTypes.string,
131
- href: PropTypes.string,
132
- online: PropTypes.bool,
133
- banned: PropTypes.bool,
134
- banReason: PropTypes.string,
135
- unverifiedEmail: PropTypes.bool
136
- }).isRequired,
137
- wording: translationsShape,
138
- translations: translationsShape
139
- });
140
112
  _defineProperty(UserCard, "contextType", I18nContext);
141
113
 
142
114
  export { UserCard as U, modules_a4196c17 as m };
@@ -3,7 +3,6 @@ import 'core-js/modules/es.regexp.exec.js';
3
3
  import 'core-js/modules/es.string.replace.js';
4
4
  import { memo } from 'react';
5
5
  import classNames from 'classnames';
6
- import PropTypes from 'prop-types';
7
6
  import memoize from '../global/memoize.js';
8
7
  import { jsx } from 'react/jsx-runtime';
9
8
 
@@ -70,11 +69,6 @@ function IconSVG(_ref) {
70
69
  }
71
70
  }));
72
71
  }
73
- IconSVG.propTypes = {
74
- className: PropTypes.string,
75
- src: PropTypes.string.isRequired,
76
- style: PropTypes.object
77
- };
78
72
  var IconSVG$1 = /*#__PURE__*/memo(IconSVG);
79
73
 
80
74
  export { IconSVG$1 as I, modules_29747b80 as m };
@@ -1,10 +1,8 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { PureComponent } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import closeIcon from '@jetbrains/icons/close-12px';
7
- import { refObject } from '../global/prop-types.js';
8
6
  import { Button } from '../button/button.js';
9
7
  import getUID from '../global/get-uid.js';
10
8
  import Icon from '../icon/icon.js';
@@ -198,24 +196,5 @@ _defineProperty(Input, "defaultProps", {
198
196
  enableShortcuts: ['esc']
199
197
  });
200
198
  _defineProperty(Input, "contextType", ControlsHeightContext);
201
- Input.propTypes = {
202
- value: PropTypes.string,
203
- className: PropTypes.string,
204
- inputClassName: PropTypes.string,
205
- size: PropTypes.oneOf(Object.values(Size)).isRequired,
206
- label: PropTypes.node,
207
- error: PropTypes.string,
208
- multiline: PropTypes.bool,
209
- onChange: PropTypes.func,
210
- onClear: PropTypes.func,
211
- inputRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLInputElement)), refObject(PropTypes.instanceOf(HTMLTextAreaElement))]),
212
- children: PropTypes.string,
213
- enableShortcuts: PropTypes.oneOfType([PropTypes.bool, PropTypes.arrayOf(PropTypes.string.isRequired)]),
214
- disabled: PropTypes.bool,
215
- id: PropTypes.string,
216
- placeholder: PropTypes.string,
217
- translations: PropTypes.object,
218
- icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType])
219
- };
220
199
 
221
200
  export { Input as I, Size as S, modules_88cfaf40 as m };
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { Component } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import { I as Input } from './input.js';
7
6
  import sniffr from '../global/sniffer.js';
@@ -75,12 +74,5 @@ class SelectFilter extends Component {
75
74
  _defineProperty(SelectFilter, "defaultProps", {
76
75
  inputRef: noop
77
76
  });
78
- SelectFilter.propTypes = {
79
- placeholder: PropTypes.string,
80
- className: PropTypes.string,
81
- inputRef: PropTypes.func,
82
- listId: PropTypes.string,
83
- activeItemId: PropTypes.string
84
- };
85
77
 
86
78
  export { SelectFilter as S, modules_b607bec2 as m };
@@ -1,6 +1,5 @@
1
- import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
1
+ import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import { PureComponent } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import Link from '../link/link.js';
5
4
  import { jsx } from 'react/jsx-runtime';
6
5
 
@@ -29,14 +28,5 @@ class ServicesLink extends PureComponent {
29
28
  }));
30
29
  }
31
30
  }
32
- _defineProperty(ServicesLink, "propTypes", {
33
- isActive: PropTypes.bool,
34
- service: PropTypes.shape({
35
- applicationName: PropTypes.string,
36
- iconUrl: PropTypes.string,
37
- homeUrl: PropTypes.string,
38
- name: PropTypes.string
39
- })
40
- });
41
31
 
42
32
  export { ServicesLink as S, modules_74a7bf8b as m };
@@ -1,7 +1,6 @@
1
1
  import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { Component } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import { Waypoint } from 'react-waypoint';
7
6
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -111,13 +110,5 @@ class Sidebar extends Component {
111
110
  });
112
111
  }
113
112
  }
114
- _defineProperty(Sidebar, "propTypes", {
115
- right: PropTypes.bool,
116
- children: PropTypes.node,
117
- className: PropTypes.string,
118
- containerClassName: PropTypes.string,
119
- fixedClassName: PropTypes.string,
120
- contentNode: PropTypes.object
121
- });
122
113
 
123
114
  export { Sidebar as S, modules_b8a9dd4f as m };
@@ -1,6 +1,5 @@
1
1
  import { a as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
2
  import { memo } from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import Link from '../link/link.js';
5
4
  import { jsx, jsxs } from 'react/jsx-runtime';
6
5
 
@@ -34,11 +33,6 @@ function TabLink(_ref) {
34
33
  })
35
34
  }));
36
35
  }
37
- TabLink.propTypes = {
38
- isSelected: PropTypes.bool,
39
- collapsed: PropTypes.bool,
40
- title: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.node])
41
- };
42
36
  var TabLink$1 = /*#__PURE__*/memo(TabLink);
43
37
 
44
38
  export { TabLink$1 as T, modules_02138f4a as m };
@@ -103,4 +103,4 @@ const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(_ref2, ref)
103
103
  });
104
104
  var Theme$1 = Theme;
105
105
 
106
- export { Theme$1 as T, WithThemeClasses as W, ThemeProvider as a, ThemeContext as b, useThemeClasses as c, applyTheme as d, modules_59717246 as m, useTheme as u };
106
+ export { GLOBAL_DARK_CLASS_NAME as G, Theme$1 as T, WithThemeClasses as W, ThemeProvider as a, ThemeContext as b, useThemeClasses as c, applyTheme as d, modules_59717246 as m, useTheme as u };
@@ -1,12 +1,10 @@
1
1
  import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { PureComponent } from 'react';
4
- import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import focusSensorHOC from '../global/focus-sensor-hoc.js';
7
6
  import Checkbox from '../checkbox/checkbox.js';
8
7
  import getUID from '../global/get-uid.js';
9
- import { refObject } from '../global/prop-types.js';
10
8
  import { jsxs, jsx } from 'react/jsx-runtime';
11
9
 
12
10
  var modules_09d014b4 = {"height":"i__const_height_0","compensate":"i__const_compensate_1","light":"light_rui_2ac4","dataListWrapper":"dataListWrapper_rui_be4b","dataList":"dataList_rui_be4b","itemContent":"itemContent_rui_be4b","title":"title_rui_be4b","disabledHover":"disabledHover_rui_be4b","titleSelected":"titleSelected_rui_be4b","titleFocused":"titleFocused_rui_be4b","showMore":"showMore_rui_be4b","boxes":"boxes_rui_be4b","checkboxBox":"checkboxBox_rui_be4b","collapseButton":"collapseButton_rui_be4b","collapseIcon":"collapseIcon_rui_be4b","loadingOverlay":"loadingOverlay_rui_be4b","showMoreLoader":"showMoreLoader_rui_be4b"};
@@ -77,19 +75,6 @@ _defineProperty(Title, "defaultProps", {
77
75
  selected: false,
78
76
  showFocus: false
79
77
  });
80
- Title.propTypes = {
81
- className: PropTypes.string,
82
- title: PropTypes.node,
83
- offset: PropTypes.number,
84
- selectable: PropTypes.bool,
85
- selected: PropTypes.bool,
86
- onSelect: PropTypes.func.isRequired,
87
- showFocus: PropTypes.bool,
88
- collapserExpander: PropTypes.node,
89
- innerRef: PropTypes.oneOfType([refObject(PropTypes.instanceOf(HTMLDivElement)), PropTypes.func]),
90
- // focusSensorHOC
91
- onFocusRestore: PropTypes.func.isRequired
92
- };
93
78
  var Title$1 = focusSensorHOC(Title);
94
79
 
95
80
  export { Title$1 as T, modules_09d014b4 as m };
@@ -1,6 +1,5 @@
1
1
  import { PureComponent, ReactNode } from 'react';
2
2
  import * as React from 'react';
3
- import PropTypes from 'prop-types';
4
3
  import Theme from '../global/theme';
5
4
  export declare const ANIMATION_TIME = 500;
6
5
  /**
@@ -20,10 +19,17 @@ export declare enum AlertType {
20
19
  export interface AlertProps {
21
20
  theme: Theme;
22
21
  timeout: number;
22
+ /**
23
+ * Fires when alert starts closing if timeout is out or user clicks "Close" button
24
+ */
23
25
  onCloseRequest: ((event?: React.MouseEvent<HTMLElement>) => void);
24
26
  onClose: (() => void);
25
27
  isShaking: boolean;
26
28
  isClosing: boolean;
29
+ /**
30
+ * Whether an alert is rendered inside an **Alerts** container
31
+ * or standalone.
32
+ */
27
33
  inline: boolean;
28
34
  showWithAnimation: boolean;
29
35
  closeable: boolean;
@@ -46,29 +52,6 @@ interface State {
46
52
  * **Alert** is a component for displaying contextual notifications. If you want to display a stack of notifications, use **Alerts** instead.
47
53
  */
48
54
  export default class Alert extends PureComponent<AlertProps, State> {
49
- static propTypes: {
50
- timeout: PropTypes.Requireable<number>;
51
- /**
52
- * Fires when alert starts closing if timeout is out or user clicks "Close" button
53
- */
54
- onCloseRequest: PropTypes.Requireable<(...args: any[]) => any>;
55
- onClose: PropTypes.Requireable<(...args: any[]) => any>;
56
- isShaking: PropTypes.Requireable<boolean>;
57
- isClosing: PropTypes.Requireable<boolean>;
58
- /**
59
- * Whether an alert is rendered inside an **Alerts** container
60
- * or standalone.
61
- */
62
- inline: PropTypes.Requireable<boolean>;
63
- showWithAnimation: PropTypes.Requireable<boolean>;
64
- closeable: PropTypes.Requireable<boolean>;
65
- type: PropTypes.Requireable<AlertType>;
66
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
67
- className: PropTypes.Requireable<string>;
68
- captionClassName: PropTypes.Requireable<string>;
69
- closeButtonClassName: PropTypes.Requireable<string>;
70
- 'data-test': PropTypes.Requireable<string>;
71
- };
72
55
  /** @override */
73
56
  static defaultProps: {
74
57
  theme: Theme;
@@ -2,7 +2,6 @@ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { PureComponent } from 'react';
4
4
  import classNames from 'classnames';
5
- import PropTypes from 'prop-types';
6
5
  import exceptionIcon from '@jetbrains/icons/exception';
7
6
  import checkmarkIcon from '@jetbrains/icons/checkmark';
8
7
  import warningIcon from '@jetbrains/icons/warning';
@@ -210,29 +209,6 @@ class Alert extends PureComponent {
210
209
  });
211
210
  }
212
211
  }
213
- _defineProperty(Alert, "propTypes", {
214
- timeout: PropTypes.number,
215
- /**
216
- * Fires when alert starts closing if timeout is out or user clicks "Close" button
217
- */
218
- onCloseRequest: PropTypes.func,
219
- onClose: PropTypes.func,
220
- isShaking: PropTypes.bool,
221
- isClosing: PropTypes.bool,
222
- /**
223
- * Whether an alert is rendered inside an **Alerts** container
224
- * or standalone.
225
- */
226
- inline: PropTypes.bool,
227
- showWithAnimation: PropTypes.bool,
228
- closeable: PropTypes.bool,
229
- type: PropTypes.oneOf(Object.values(AlertType)),
230
- children: PropTypes.node,
231
- className: PropTypes.string,
232
- captionClassName: PropTypes.string,
233
- closeButtonClassName: PropTypes.string,
234
- 'data-test': PropTypes.string
235
- });
236
212
  /** @override */
237
213
  _defineProperty(Alert, "defaultProps", {
238
214
  theme: Theme.DARK,
@@ -1,5 +1,4 @@
1
1
  import { PureComponent, HTMLAttributes } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  /**
4
3
  * @name Alert Container
5
4
  * @description Displays a stack of alerts on top of the page.
@@ -7,9 +6,5 @@ import PropTypes from 'prop-types';
7
6
  */
8
7
  export type AlertContainerProps = HTMLAttributes<HTMLDivElement>;
9
8
  export default class Alerts extends PureComponent<AlertContainerProps> {
10
- static propTypes: {
11
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
- className: PropTypes.Requireable<string>;
13
- };
14
9
  render(): import("react").ReactPortal | null;
15
10
  }
@@ -1,8 +1,7 @@
1
- import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import { PureComponent, Children, isValidElement, cloneElement } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import classNames from 'classnames';
5
- import PropTypes from 'prop-types';
6
5
  import { jsx } from 'react/jsx-runtime';
7
6
 
8
7
  var modules_fc8df42d = {"light":"light_rui_2ac4","alertContainer":"alertContainer_rui_971c","alertInContainer":"alertInContainer_rui_971c alert_rui_25ab"};
@@ -38,9 +37,5 @@ class Alerts extends PureComponent {
38
37
  })), document.body);
39
38
  }
40
39
  }
41
- _defineProperty(Alerts, "propTypes", {
42
- children: PropTypes.node,
43
- className: PropTypes.string
44
- });
45
40
 
46
41
  export { Alerts as default };
@@ -7,7 +7,6 @@ import { jsx } from 'react/jsx-runtime';
7
7
  import Alerts from '../alert/container.js';
8
8
  import 'react';
9
9
  import 'classnames';
10
- import 'prop-types';
11
10
  import '@jetbrains/icons/exception';
12
11
  import '@jetbrains/icons/checkmark';
13
12
  import '@jetbrains/icons/warning';
@@ -9,7 +9,6 @@ import 'core-js/modules/es.string.replace.js';
9
9
  import 'es6-error';
10
10
  import '../global/url.js';
11
11
  import 'react';
12
- import 'prop-types';
13
12
  import '../alert-service/alert-service.js';
14
13
  import 'core-js/modules/web.dom-collections.iterator.js';
15
14
  import 'react-dom/client';
@@ -129,7 +129,7 @@ export default class Auth implements HTTPAuth {
129
129
  listeners: Listeners<AuthPayloadMap>;
130
130
  http: HTTP;
131
131
  private _service;
132
- readonly _storage: AuthStorage<number> | null;
132
+ readonly _storage: AuthStorage<number>;
133
133
  private _responseParser;
134
134
  private readonly _requestBuilder;
135
135
  _backgroundFlow: BackgroundFlow | null;
@@ -174,7 +174,7 @@ export default class Auth implements HTTPAuth {
174
174
  /**
175
175
  * @return {Promise.<object>}
176
176
  */
177
- getUser(accessToken?: string | null | undefined): Promise<any> | undefined;
177
+ getUser(accessToken?: string | null | undefined): Promise<any>;
178
178
  /**
179
179
  * @return {Promise.<object>}
180
180
  */
@@ -197,7 +197,7 @@ export default class Auth implements HTTPAuth {
197
197
  */
198
198
  login(): Promise<void>;
199
199
  switchUser(): Promise<void>;
200
- _makeStateFromResponse(authResponse: AuthResponse): AuthState;
200
+ _makeStateFromResponse(authResponse: AuthResponse): AuthState | null;
201
201
  /**
202
202
  * Check if the hash contains an access token.
203
203
  * If it does, extract the state, compare with
@@ -26,7 +26,6 @@ import '../global/get-uid.js';
26
26
  import '../alert/alert.js';
27
27
  import 'react';
28
28
  import 'classnames';
29
- import 'prop-types';
30
29
  import '@jetbrains/icons/exception';
31
30
  import '@jetbrains/icons/checkmark';
32
31
  import '@jetbrains/icons/warning';
@@ -106,7 +105,7 @@ class Auth {
106
105
  _defineProperty(this, "listeners", new Listeners());
107
106
  _defineProperty(this, "http", void 0);
108
107
  _defineProperty(this, "_service", {});
109
- _defineProperty(this, "_storage", null);
108
+ _defineProperty(this, "_storage", void 0);
110
109
  _defineProperty(this, "_responseParser", new AuthResponseParser());
111
110
  _defineProperty(this, "_requestBuilder", null);
112
111
  _defineProperty(this, "_backgroundFlow", void 0);
@@ -805,24 +804,25 @@ class Auth {
805
804
  state
806
805
  } = authResponse;
807
806
  if (!state) {
808
- return {};
807
+ throw new Error('No state in AuthResponse');
809
808
  }
810
809
  const {
811
810
  scope: defaultScope
812
811
  } = this.config;
812
+ let urlFromState = null;
813
813
  try {
814
- const urlFromState = new URL(state); // checking if state contains valid URL on same origin, see HUB-11514
815
- if (urlFromState.origin !== window.location.origin) {
816
- return {};
817
- }
818
- return {
819
- restoreLocation: state,
820
- created: Date.now(),
821
- scopes: defaultScope
822
- };
823
- } catch (e) {
824
- return {};
814
+ urlFromState = new URL(state); // checking if state contains valid URL on same origin, see HUB-11514
815
+ } catch (_unused2) {
816
+ return null;
817
+ }
818
+ if (urlFromState.origin !== window.location.origin) {
819
+ throw new Error("State contains URL with different origin: \"".concat(state, "\""));
825
820
  }
821
+ return {
822
+ restoreLocation: state,
823
+ created: Date.now(),
824
+ scopes: defaultScope
825
+ };
826
826
  }
827
827
  /**
828
828
  * Check if the hash contains an access token.
@@ -833,7 +833,6 @@ class Auth {
833
833
  * @private
834
834
  */
835
835
  async _checkForAuthResponse() {
836
- var _this$_storage15;
837
836
  // getAuthResponseURL may throw an exception
838
837
  const authResponse = this._responseParser.getAuthResponseFromURL();
839
838
  const {
@@ -853,13 +852,22 @@ class Auth {
853
852
  expiresIn,
854
853
  accessToken
855
854
  } = authResponse;
856
- const newState = (await (stateId && ((_this$_storage15 = this._storage) === null || _this$_storage15 === void 0 ? void 0 : _this$_storage15.getState(stateId)))) || this._makeStateFromResponse(authResponse);
855
+ let newState = null;
856
+ if (stateId) {
857
+ newState = await this._storage.getState(stateId);
858
+ if (!newState) {
859
+ newState = this._makeStateFromResponse(authResponse);
860
+ }
861
+ }
862
+ if (!newState) {
863
+ throw new Error("Could not create state where stateId=\"".concat(stateId, "\""));
864
+ }
857
865
  const scopes = scope ? scope.split(' ') : newState.scopes || defaultScope || [];
858
866
  const effectiveExpiresIn = expiresIn ? parseInt(expiresIn, 10) : defaultExpiresIn;
859
867
  const expires = TokenValidator._epoch() + effectiveExpiresIn;
860
868
  if (accessToken != null) {
861
- var _this$_storage16;
862
- await ((_this$_storage16 = this._storage) === null || _this$_storage16 === void 0 ? void 0 : _this$_storage16.saveToken({
869
+ var _this$_storage15;
870
+ await ((_this$_storage15 = this._storage) === null || _this$_storage15 === void 0 ? void 0 : _this$_storage15.saveToken({
863
871
  accessToken,
864
872
  scopes,
865
873
  expires,
@@ -869,13 +877,13 @@ class Auth {
869
877
  return newState;
870
878
  }
871
879
  async _checkForStateRestoration() {
872
- var _this$_storage17;
880
+ var _this$_storage16;
873
881
  const authResponse = this._responseParser._authResponse;
874
882
  if (authResponse && this.config.cleanHash) {
875
883
  this.setHash('');
876
884
  }
877
885
  const stateId = authResponse === null || authResponse === void 0 ? void 0 : authResponse.restoreAuthState;
878
- return (await (stateId && ((_this$_storage17 = this._storage) === null || _this$_storage17 === void 0 ? void 0 : _this$_storage17.getState(stateId)))) || {};
886
+ return (await (stateId && ((_this$_storage16 = this._storage) === null || _this$_storage16 === void 0 ? void 0 : _this$_storage16.getState(stateId)))) || {};
879
887
  }
880
888
  _checkBackendsAreUp() {
881
889
  const abortCtrl = new AbortController();
@@ -1,5 +1,4 @@
1
1
  import 'react';
2
- import PropTypes from 'prop-types';
3
2
  import alertService from '../alert-service/alert-service.js';
4
3
  import Alert from '../alert/alert.js';
5
4
  import Link from '../link/link.js';
@@ -90,14 +89,6 @@ function Message(_ref) {
90
89
  })]
91
90
  });
92
91
  }
93
- Message.propTypes = {
94
- translations: PropTypes.shape({
95
- backendIsNotAvailable: PropTypes.string,
96
- checkAgain: PropTypes.string,
97
- errorMessage: PropTypes.string
98
- }),
99
- onCheckAgain: PropTypes.func
100
- };
101
92
  function onBackendDown(_ref2) {
102
93
  let {
103
94
  onCheckAgain,
@@ -8,7 +8,6 @@ import '../global/controls-height.js';
8
8
  import 'react';
9
9
  import '../login-dialog/login-dialog.js';
10
10
  import 'core-js/modules/web.dom-collections.iterator.js';
11
- import 'prop-types';
12
11
  import '../dialog/dialog.js';
13
12
  import 'react-dom';
14
13
  import 'classnames';
@@ -10,7 +10,6 @@ import '../global/get-uid.js';
10
10
  import '../alert/alert.js';
11
11
  import 'react';
12
12
  import 'classnames';
13
- import 'prop-types';
14
13
  import '@jetbrains/icons/exception';
15
14
  import '@jetbrains/icons/checkmark';
16
15
  import '@jetbrains/icons/warning';
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  /**
4
3
  * @name Auth Dialog
5
4
  */
@@ -21,23 +20,6 @@ export interface AuthDialogProps {
21
20
  onTryAgain?: () => void;
22
21
  }
23
22
  export default class AuthDialog extends Component<AuthDialogProps> {
24
- static propTypes: {
25
- className: PropTypes.Requireable<string>;
26
- title: PropTypes.Requireable<string>;
27
- errorMessage: PropTypes.Requireable<string>;
28
- serviceImage: PropTypes.Requireable<string>;
29
- serviceName: PropTypes.Requireable<string>;
30
- loginCaption: PropTypes.Requireable<string>;
31
- loginToCaption: PropTypes.Requireable<string>;
32
- show: PropTypes.Requireable<boolean>;
33
- cancelOnEsc: PropTypes.Requireable<boolean>;
34
- confirmLabel: PropTypes.Requireable<string>;
35
- cancelLabel: PropTypes.Requireable<string>;
36
- tryAgainLabel: PropTypes.Requireable<string>;
37
- onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
38
- onCancel: PropTypes.Requireable<(...args: any[]) => any>;
39
- onTryAgain: PropTypes.Requireable<(...args: any[]) => any>;
40
- };
41
23
  static defaultProps: {
42
24
  loginCaption: string;
43
25
  loginToCaption: string;