@jetbrains/ring-ui 4.1.14 → 4.1.15

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 (239) hide show
  1. package/dist/_helpers/dialog__body-scroll-preventer.js +2 -1
  2. package/dist/_helpers/inject-styles.js +4 -4
  3. package/dist/_helpers/select__filter.js +1 -0
  4. package/dist/_helpers/services-link.js +1 -1
  5. package/dist/_helpers/sidebar.js +2 -1
  6. package/dist/_helpers/title.js +1 -0
  7. package/dist/alert/alert.js +2 -0
  8. package/dist/alert-service/alert-service.js +2 -0
  9. package/dist/analytics/analytics.js +5 -3
  10. package/dist/analytics/analytics__custom-plugin.js +2 -1
  11. package/dist/analytics/analytics__fus-plugin.js +1 -0
  12. package/dist/analytics/analytics__plugin-utils.js +4 -3
  13. package/dist/analytics-ng/analytics-ng.js +3 -2
  14. package/dist/auth/auth.js +2 -0
  15. package/dist/auth/auth__core.js +16 -12
  16. package/dist/auth/background-flow.js +2 -1
  17. package/dist/auth/down-notification.js +2 -0
  18. package/dist/auth/iframe-flow.js +2 -0
  19. package/dist/auth/landing.js +6 -4
  20. package/dist/auth/request-builder.js +1 -0
  21. package/dist/auth/response-parser.js +1 -0
  22. package/dist/auth/storage.js +2 -0
  23. package/dist/auth/token-validator.js +2 -0
  24. package/dist/auth/window-flow.js +2 -1
  25. package/dist/auth-dialog/auth-dialog.js +3 -1
  26. package/dist/auth-dialog-service/auth-dialog-service.js +2 -0
  27. package/dist/auth-ng/auth-ng.js +3 -1
  28. package/dist/autofocus-ng/autofocus-ng.js +1 -0
  29. package/dist/avatar/avatar-example-datauri.js +1 -23
  30. package/dist/avatar/avatar.js +4 -2
  31. package/dist/avatar/fallback-avatar.js +4 -3
  32. package/dist/avatar-editor-ng/avatar-editor-ng.js +2 -0
  33. package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
  34. package/dist/avatar-ng/avatar-ng.js +2 -0
  35. package/dist/badge/badge.js +1 -0
  36. package/dist/badge-ng/badge-ng.js +1 -0
  37. package/dist/breadcrumb-ng/breadcrumb-ng.js +3 -27
  38. package/dist/button/button.js +2 -0
  39. package/dist/button-group-ng/button-group-ng.js +1 -0
  40. package/dist/button-ng/button-ng.js +4 -10
  41. package/dist/button-set-ng/button-set-ng.js +1 -1
  42. package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -0
  43. package/dist/caret/caret.js +2 -0
  44. package/dist/checkbox/checkbox.js +2 -0
  45. package/dist/checkbox-ng/checkbox-ng.js +3 -20
  46. package/dist/code/code.js +2 -1
  47. package/dist/confirm/confirm.js +2 -0
  48. package/dist/confirm-ng/confirm-ng.js +2 -0
  49. package/dist/confirm-service/confirm-service.js +2 -0
  50. package/dist/content-layout/content-layout.js +1 -0
  51. package/dist/content-layout/sidebar.js +1 -0
  52. package/dist/data-list/data-list.js +2 -0
  53. package/dist/data-list/data-list.mock.js +1 -0
  54. package/dist/data-list/item.js +2 -0
  55. package/dist/data-list/selection.js +1 -0
  56. package/dist/data-list/title.js +2 -0
  57. package/dist/data-list-ng/data-list-ng.js +2 -0
  58. package/dist/date-picker/consts.js +2 -2
  59. package/dist/date-picker/date-input.js +3 -1
  60. package/dist/date-picker/date-picker.js +10 -8
  61. package/dist/date-picker/date-popup.js +2 -0
  62. package/dist/date-picker/day.js +1 -0
  63. package/dist/date-picker/month-names.js +1 -0
  64. package/dist/date-picker/month-slider.js +1 -0
  65. package/dist/date-picker/month.js +1 -0
  66. package/dist/date-picker/months.js +1 -0
  67. package/dist/date-picker/years.js +1 -0
  68. package/dist/dialog/dialog.js +2 -0
  69. package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
  70. package/dist/dialog-ng/dialog-ng.js +10 -5
  71. package/dist/dialog-ng/dialog-ng__template.js +1 -69
  72. package/dist/docked-panel-ng/docked-panel-ng.js +1 -0
  73. package/dist/dropdown/anchor.js +2 -0
  74. package/dist/dropdown/dropdown.js +2 -0
  75. package/dist/dropdown-menu/dropdown-menu.js +3 -1
  76. package/dist/error-bubble/error-bubble.js +2 -0
  77. package/dist/error-message/error-message.js +3 -1
  78. package/dist/error-message-ng/error-message-ng.js +3 -21
  79. package/dist/footer/footer.js +1 -0
  80. package/dist/footer-ng/footer-ng.js +3 -14
  81. package/dist/form-ng/form-ng.js +2 -4
  82. package/dist/global/angular-component-factory.js +3 -2
  83. package/dist/global/conic-gradient.js +4 -4
  84. package/dist/global/create-stateful-context.js +3 -2
  85. package/dist/global/data-tests.js +2 -0
  86. package/dist/global/dom.js +1 -0
  87. package/dist/global/focus-sensor-hoc.js +1 -0
  88. package/dist/global/fuzzy-highlight.js +1 -1
  89. package/dist/global/inject-styles.js +5 -7
  90. package/dist/global/listeners.js +2 -0
  91. package/dist/global/memoize.js +2 -0
  92. package/dist/global/normalize-indent.js +2 -0
  93. package/dist/global/radial-gradient-mask.js +8 -19
  94. package/dist/global/react-dom-renderer.js +1 -0
  95. package/dist/global/rerender-hoc.js +2 -1
  96. package/dist/global/supports-css.js +2 -0
  97. package/dist/global/theme.js +1 -1
  98. package/dist/global/trivial-template-tag.js +2 -0
  99. package/dist/global/url.js +3 -1
  100. package/dist/grid/col.js +1 -1
  101. package/dist/grid/row.js +1 -1
  102. package/dist/group-ng/group-ng.js +1 -1
  103. package/dist/header/header.js +2 -0
  104. package/dist/header/logo.js +2 -0
  105. package/dist/header/profile.js +2 -0
  106. package/dist/header/services-link.js +1 -0
  107. package/dist/header/services.js +2 -0
  108. package/dist/header/smart-profile.js +7 -3
  109. package/dist/header/smart-services.js +3 -1
  110. package/dist/header/tray-icon.js +2 -0
  111. package/dist/heading/heading.js +2 -2
  112. package/dist/http/http.js +4 -2
  113. package/dist/http/http.mock.js +2 -0
  114. package/dist/hub-source/hub-source.js +1 -1
  115. package/dist/hub-source/hub-source__user.js +4 -2
  116. package/dist/hub-source/hub-source__users-groups.js +3 -2
  117. package/dist/icon/icon.js +3 -3
  118. package/dist/icon/icon__svg.js +2 -0
  119. package/dist/icon/index.js +2 -0
  120. package/dist/icon-ng/icon-ng.js +7 -5
  121. package/dist/input/input.js +4 -2
  122. package/dist/input-ng/input-ng.js +5 -60
  123. package/dist/island/adaptive-island-hoc.js +1 -0
  124. package/dist/island/content.js +1 -0
  125. package/dist/island/header.js +3 -2
  126. package/dist/island/island.js +1 -0
  127. package/dist/island-ng/island-content-ng.js +2 -16
  128. package/dist/island-ng/island-header-ng.js +2 -8
  129. package/dist/island-ng/island-ng-class-fixer.js +2 -0
  130. package/dist/island-ng/island-ng.js +2 -8
  131. package/dist/link/clickableLink.js +1 -0
  132. package/dist/link/link.js +1 -0
  133. package/dist/link-ng/link-ng.js +1 -4
  134. package/dist/list/list.js +10 -8
  135. package/dist/list/list__custom.js +1 -0
  136. package/dist/list/list__item.js +4 -2
  137. package/dist/list/list__link.js +1 -0
  138. package/dist/list/list__users-groups-source.js +3 -1
  139. package/dist/loader/loader.js +1 -0
  140. package/dist/loader/loader__core.js +4 -3
  141. package/dist/loader-inline/inject-styles.js +2 -0
  142. package/dist/loader-inline/loader-inline.js +3 -1
  143. package/dist/loader-inline-ng/loader-inline-ng.js +4 -2
  144. package/dist/loader-ng/loader-ng.js +1 -0
  145. package/dist/loader-screen/loader-screen.js +1 -0
  146. package/dist/loader-screen-ng/loader-screen-ng.js +2 -6
  147. package/dist/login-dialog/login-dialog.js +2 -0
  148. package/dist/login-dialog/service.js +2 -0
  149. package/dist/markdown/code.js +1 -0
  150. package/dist/markdown/link.js +1 -0
  151. package/dist/markdown/markdown.js +1 -0
  152. package/dist/message/message.js +10 -4
  153. package/dist/old-browsers-message/old-browsers-message.js +2 -1
  154. package/dist/old-browsers-message/old-browsers-message__stop.js +1 -0
  155. package/dist/old-browsers-message/white-list.js +1 -0
  156. package/dist/pager/pager.js +3 -1
  157. package/dist/pager-ng/pager-ng.js +2 -0
  158. package/dist/panel-ng/panel-ng.js +1 -0
  159. package/dist/permissions/permissions.js +1 -1
  160. package/dist/permissions-ng/permissions-ng.js +3 -1
  161. package/dist/place-under-ng/place-under-ng.js +3 -2
  162. package/dist/popup/popup.js +4 -2
  163. package/dist/popup/position.js +1 -0
  164. package/dist/popup-menu/popup-menu.js +2 -0
  165. package/dist/progress-bar/progress-bar.js +2 -1
  166. package/dist/progress-bar-ng/progress-bar-ng.js +1 -0
  167. package/dist/promised-click-ng/promised-click-ng.js +2 -0
  168. package/dist/proxy-attrs/proxy-attrs.js +5 -3
  169. package/dist/query-assist/query-assist.js +10 -6
  170. package/dist/query-assist/query-assist__suggestions.js +2 -0
  171. package/dist/query-assist-ng/query-assist-ng.js +2 -0
  172. package/dist/radio/radio.js +1 -0
  173. package/dist/radio/radio__item.js +1 -0
  174. package/dist/radio-ng/radio-ng.js +2 -18
  175. package/dist/save-field-ng/save-field-ng.js +3 -1
  176. package/dist/save-field-ng/save-field-ng__template.js +1 -32
  177. package/dist/select/select.js +10 -6
  178. package/dist/select/select__filter.js +2 -0
  179. package/dist/select/select__popup.js +3 -1
  180. package/dist/select-ng/select-ng.js +2 -0
  181. package/dist/select-ng/select-ng__lazy.js +2 -0
  182. package/dist/select-ng/select-ng__options.js +2 -2
  183. package/dist/shortcuts/shortcuts-hoc.js +1 -0
  184. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +3 -0
  185. package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +1 -48
  186. package/dist/shortcuts-ng/shortcuts-ng.js +4 -3
  187. package/dist/sidebar-ng/sidebar-ng.js +2 -0
  188. package/dist/sidebar-ng/sidebar-ng__button-template.js +1 -18
  189. package/dist/sidebar-ng/sidebar-ng__template.js +1 -10
  190. package/dist/storage/storage.js +2 -0
  191. package/dist/storage/storage__fallback.js +4 -3
  192. package/dist/storage/storage__local.js +2 -0
  193. package/dist/tab-trap/tab-trap.js +1 -0
  194. package/dist/table/cell.js +1 -0
  195. package/dist/table/disable-hover-hoc.js +1 -0
  196. package/dist/table/header-cell.js +2 -0
  197. package/dist/table/header.js +2 -0
  198. package/dist/table/multitable.js +1 -0
  199. package/dist/table/row-with-focus-sensor.js +2 -0
  200. package/dist/table/row.js +3 -1
  201. package/dist/table/selection-adapter.js +2 -0
  202. package/dist/table/selection-shortcuts-hoc.js +1 -0
  203. package/dist/table/selection.js +2 -0
  204. package/dist/table/smart-table.js +2 -0
  205. package/dist/table/table.js +2 -0
  206. package/dist/table-legacy-ng/table-legacy-ng.js +10 -45
  207. package/dist/table-legacy-ng/table-legacy-ng__pager.js +3 -7
  208. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
  209. package/dist/table-ng/smart-table-ng.js +2 -0
  210. package/dist/table-ng/table-ng.js +2 -0
  211. package/dist/tabs/collapsible-more.js +2 -0
  212. package/dist/tabs/collapsible-tab.js +1 -0
  213. package/dist/tabs/collapsible-tabs.js +2 -0
  214. package/dist/tabs/dumb-tabs.js +2 -0
  215. package/dist/tabs/smart-tabs.js +2 -0
  216. package/dist/tabs/tab-link.js +1 -0
  217. package/dist/tabs/tab.js +1 -0
  218. package/dist/tabs/tabs.js +2 -0
  219. package/dist/tabs-ng/tabs-ng.js +1 -0
  220. package/dist/tabs-ng/tabs-ng__template.js +1 -38
  221. package/dist/tag/tag.js +2 -0
  222. package/dist/tags-input/tags-input.js +3 -1
  223. package/dist/tags-input-ng/tags-input-ng.js +2 -0
  224. package/dist/tags-list/tags-list.js +3 -1
  225. package/dist/template-ng/template-ng.js +1 -0
  226. package/dist/theme-ng/theme-ng.js +1 -0
  227. package/dist/toggle/toggle.js +1 -0
  228. package/dist/toggle-ng/toggle-ng.js +1 -0
  229. package/dist/tooltip/tooltip.js +8 -2
  230. package/dist/tooltip-ng/tooltip-ng.js +2 -0
  231. package/dist/user-agreement/service.js +2 -0
  232. package/dist/user-agreement/toolbox.eula.js +1 -160
  233. package/dist/user-agreement/user-agreement.js +2 -0
  234. package/dist/user-card/card.js +2 -0
  235. package/dist/user-card/smart-user-card-tooltip.js +2 -0
  236. package/dist/user-card/tooltip.js +2 -0
  237. package/dist/user-card/user-card.js +2 -0
  238. package/dist/user-card-ng/user-card-ng.js +2 -0
  239. package/package.json +6 -6
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import scrollbarWidth from 'scrollbar-width';
2
3
 
3
4
  var modules_5e9b8c03 = {"unit":"8px","container":"container_rui_2d39","innerContainer":"innerContainer_rui_2d39","content":"content_rui_2d39","panel":"panel_rui_2d39","clickableOverlay":"clickableOverlay_rui_2d39","closeIcon":"closeIcon_rui_2d39","closeButton":"closeButton_rui_2d39","closeButtonOutside":"closeButtonOutside_rui_2d39","closeButtonInside":"closeButtonInside_rui_2d39","documentWithoutScroll":"documentWithoutScroll_rui_2d39","popupTarget":"popupTarget_rui_2d39"};
@@ -22,7 +23,7 @@ const prevent = key => {
22
23
 
23
24
  if (documentHasScroll && scrollWidth > 0) {
24
25
  previousDocumentWidth = document.documentElement.style.width;
25
- document.documentElement.style.width = `calc(100% - ${scrollWidth}px)`;
26
+ document.documentElement.style.width = "calc(100% - ".concat(scrollWidth, "px)");
26
27
  }
27
28
  };
28
29
 
@@ -10,13 +10,13 @@ const IMAGE_SIZE = 32;
10
10
  var injectStyles = memoize(() => {
11
11
  const mask = radialGradientMask(modules_e49a3529.unit, {
12
12
  /* eslint-disable no-magic-numbers */
13
- transparent: `${23 / 32 * 100}%`,
14
- white: `${25 / 32 * 100}%`
13
+ transparent: "".concat(23 / 32 * 100, "%"),
14
+ white: "".concat(25 / 32 * 100, "%")
15
15
  /* eslint-enable */
16
16
 
17
17
  });
18
- injectRuleSet(`.${modules_e49a3529.loader}_${[Theme.LIGHT]}::after, .ring-loader-inline::after`, conicGradientWithMask(mask, '#ff00eb,#bd3bff,#008eff, #58ba00,#f48700,#ff00eb', IMAGE_SIZE));
19
- injectRuleSet(`.${modules_e49a3529.loader}_${[Theme.DARK]}::after, .ring-loader-inline_dark::after`, conicGradientWithMask(mask, '#ff2eef,#d178ff,#289fff,#88d444,#ffe000,#ff2eef', IMAGE_SIZE));
18
+ injectRuleSet(".".concat(modules_e49a3529.loader, "_").concat([Theme.LIGHT], "::after, .ring-loader-inline::after"), conicGradientWithMask(mask, '#ff00eb,#bd3bff,#008eff, #58ba00,#f48700,#ff00eb', IMAGE_SIZE));
19
+ injectRuleSet(".".concat(modules_e49a3529.loader, "_").concat([Theme.DARK], "::after, .ring-loader-inline_dark::after"), conicGradientWithMask(mask, '#ff2eef,#d178ff,#289fff,#88d444,#ffe000,#ff2eef', IMAGE_SIZE));
20
20
  });
21
21
 
22
22
  export { injectStyles as i, modules_e49a3529 as m };
@@ -1,4 +1,5 @@
1
1
  import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { Component } from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import classNames from 'classnames';
@@ -18,7 +18,7 @@ class ServicesLink extends PureComponent {
18
18
  key: "icon",
19
19
  className: modules_74a7bf8b.itemLogo,
20
20
  style: {
21
- backgroundImage: `url(${service.iconUrl})`
21
+ backgroundImage: "url(".concat(service.iconUrl, ")")
22
22
  }
23
23
  }), /*#__PURE__*/React.createElement("div", {
24
24
  key: "text"
@@ -1,4 +1,5 @@
1
1
  import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { Component } from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import classNames from 'classnames';
@@ -92,7 +93,7 @@ class Sidebar extends Component {
92
93
  [fixedClassName]: shouldFixateTop || shouldFixateBottom
93
94
  });
94
95
  const style = {
95
- maxHeight: shouldFixateBottom && sidebarVisibleHeight ? `${sidebarVisibleHeight}px` : null
96
+ maxHeight: shouldFixateBottom && sidebarVisibleHeight ? "".concat(sidebarVisibleHeight, "px") : null
96
97
  };
97
98
  return /*#__PURE__*/React.createElement("aside", {
98
99
  className: containerClasses,
@@ -1,4 +1,5 @@
1
1
  import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { PureComponent } from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import classNames from 'classnames';
@@ -1,4 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { PureComponent } from 'react';
3
4
  import classNames from 'classnames';
4
5
  import PropTypes from 'prop-types';
@@ -15,6 +16,7 @@ import 'util-deprecate';
15
16
  import '../icon/icon__constants.js';
16
17
  import '../_helpers/icon.js';
17
18
  import '../icon/icon__svg.js';
19
+ import 'core-js/modules/es.string.replace.js';
18
20
  import '../global/memoize.js';
19
21
  import '../global/theme.js';
20
22
  import '../_helpers/inject-styles.js';
@@ -1,4 +1,5 @@
1
1
  import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React from 'react';
3
4
  import { render } from 'react-dom';
4
5
  import getUID from '../global/get-uid.js';
@@ -15,6 +16,7 @@ import 'util-deprecate';
15
16
  import '../icon/icon__constants.js';
16
17
  import '../_helpers/icon.js';
17
18
  import '../icon/icon__svg.js';
19
+ import 'core-js/modules/es.string.replace.js';
18
20
  import '../global/memoize.js';
19
21
  import '../loader-inline/loader-inline.js';
20
22
  import '../global/theme.js';
@@ -1,3 +1,5 @@
1
+ import 'core-js/modules/es.string.replace.js';
2
+
1
3
  /**
2
4
  * @name Analytics
3
5
  */
@@ -60,7 +62,7 @@ class Analytics {
60
62
  /* optional */
61
63
  additionalData) {
62
64
  this.trackEvent(category, action, additionalData);
63
- this.trackEvent('ring-shortcut', `${category}$${action}`, additionalData);
65
+ this.trackEvent('ring-shortcut', "".concat(category, "$").concat(action), additionalData);
64
66
  }
65
67
 
66
68
  trackEntityProperties(entityName, entity, propertiesNames,
@@ -87,7 +89,7 @@ class Analytics {
87
89
  value = value.toLowerCase().replace(/[._]+/g, '-');
88
90
  }
89
91
 
90
- const resultAction = `${keys.join('-')}__${value}`;
92
+ const resultAction = "".concat(keys.join('-'), "__").concat(value);
91
93
  this.trackEvent(entityName, resultAction, additionalData);
92
94
  }
93
95
  }
@@ -102,7 +104,7 @@ class Analytics {
102
104
 
103
105
  for (key in additionalData) {
104
106
  if (additionalData.hasOwnProperty(key)) {
105
- suffix += `__${key}$${additionalData[key]}`;
107
+ suffix += "__".concat(key, "$").concat(additionalData[key]);
106
108
  }
107
109
  }
108
110
 
@@ -1,4 +1,5 @@
1
1
  import AnalyticsPluginUtils from './analytics__plugin-utils.js';
2
+ import 'core-js/modules/es.string.replace.js';
2
3
  import '../global/sniffer.js';
3
4
  import 'sniffr';
4
5
 
@@ -102,7 +103,7 @@ class AnalyticsCustomPlugin {
102
103
  if (this._lastPageViewTime) {
103
104
  const duration = AnalyticsPluginUtils.getPageViewDurationPresentation(currentTime - this._lastPageViewTime);
104
105
 
105
- this._processEvent(`ring-pageview-duration_${this._lastPagePath}`, duration);
106
+ this._processEvent("ring-pageview-duration_".concat(this._lastPagePath), duration);
106
107
  }
107
108
  }
108
109
 
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/es.string.replace.js';
1
2
  import AnalyticsPluginUtils from './analytics__plugin-utils.js';
2
3
  import '../global/sniffer.js';
3
4
  import 'sniffr';
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/es.string.replace.js';
1
2
  import sniffr from '../global/sniffer.js';
2
3
  import 'sniffr';
3
4
 
@@ -40,7 +41,7 @@ AnalyticsPluginUtils.getPageViewDurationPresentation = durationMs => {
40
41
 
41
42
  let roundedDuration = Math.floor(Math.pow(2, Math.floor(Math.log2(duration)) + 1));
42
43
  roundedDuration = roundedDuration > 0 ? roundedDuration : 1;
43
- return `less-than-${roundedDuration}-sec`;
44
+ return "less-than-".concat(roundedDuration, "-sec");
44
45
  };
45
46
 
46
47
  AnalyticsPluginUtils.getScreenWidthPresentation = () => {
@@ -52,7 +53,7 @@ AnalyticsPluginUtils.getScreenWidthPresentation = () => {
52
53
 
53
54
  for (let i = 1; i < sizes.length; ++i) {
54
55
  if (window.innerWidth < sizes[i]) {
55
- return `[${sizes[i - 1]}px;${sizes[i]}px)`;
56
+ return "[".concat(sizes[i - 1], "px;").concat(sizes[i], "px)");
56
57
  }
57
58
  }
58
59
 
@@ -65,7 +66,7 @@ AnalyticsPluginUtils.getUserAgentPresentation = () => {
65
66
  const name = AnalyticsPluginUtils.npeSaveLowerCase(sniffr.browser.name || 'unknown');
66
67
  const majorVersion = sniffr.browser.version[0];
67
68
  const version = majorVersion || 'unknown';
68
- return `${name}$${version}`;
69
+ return "".concat(name, "$").concat(version);
69
70
  };
70
71
 
71
72
  AnalyticsPluginUtils.getDevicePixelRatioPresentation = () => {
@@ -3,6 +3,7 @@ import analyticsInstance from '../analytics/analytics.js';
3
3
  import AnalyticsGAPlugin from '../analytics/analytics__ga-plugin.js';
4
4
  import AnalyticsFUSPlugin from '../analytics/analytics__fus-plugin.js';
5
5
  import AnalyticsCustomPlugin from '../analytics/analytics__custom-plugin.js';
6
+ import 'core-js/modules/es.string.replace.js';
6
7
  import '../analytics/analytics__plugin-utils.js';
7
8
  import '../global/sniffer.js';
8
9
  import 'sniffr';
@@ -35,9 +36,9 @@ angularModule.provider('analytics', function provider() {
35
36
  try {
36
37
  const plugin = $injector.get(configPlugins[i]);
37
38
  loadedPlugins.push(plugin);
38
- $log.debug(`analytics: loaded plugin ${configPlugins[i]}`);
39
+ $log.debug("analytics: loaded plugin ".concat(configPlugins[i]));
39
40
  } catch (err) {
40
- $log.debug(`analytics: unable to load factory ${configPlugins[i]}`);
41
+ $log.debug("analytics: unable to load factory ".concat(configPlugins[i]));
41
42
  }
42
43
  } else {
43
44
  loadedPlugins.push(configPlugins[i]);
package/dist/auth/auth.js CHANGED
@@ -4,11 +4,13 @@ import Auth from './auth__core.js';
4
4
  export { DEFAULT_BACKGROUND_TIMEOUT, DEFAULT_EXPIRES_TIMEOUT, DOMAIN_USER_CHANGED_EVENT, LOGOUT_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGED_EVENT, USER_CHANGE_POSTPONED_EVENT, default } from './auth__core.js';
5
5
  import '../_helpers/_rollupPluginBabelHelpers.js';
6
6
  import './response-parser.js';
7
+ import 'core-js/modules/es.string.replace.js';
7
8
  import 'es6-error';
8
9
  import '../global/url.js';
9
10
  import 'react';
10
11
  import 'prop-types';
11
12
  import '../alert-service/alert-service.js';
13
+ import 'core-js/modules/web.dom-collections.iterator.js';
12
14
  import 'react-dom';
13
15
  import '../global/get-uid.js';
14
16
  import '../alert/alert.js';
@@ -1,4 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
+ import 'core-js/modules/es.string.replace.js';
2
4
  import { getAbsoluteBaseURL, fixUrl } from '../global/url.js';
3
5
  import Listeners from '../global/listeners.js';
4
6
  import HTTP from '../http/http.js';
@@ -135,7 +137,7 @@ class Auth {
135
137
  const unsupportedParams = ['redirect_uri', 'request_credentials', 'client_id'].filter(param => config.hasOwnProperty(param));
136
138
 
137
139
  if (unsupportedParams.length !== 0) {
138
- throw new Error(`The following parameters are no longer supported: ${unsupportedParams.join(', ')}. Please change them from snake_case to camelCase.`);
140
+ throw new Error("The following parameters are no longer supported: ".concat(unsupportedParams.join(', '), ". Please change them from snake_case to camelCase."));
139
141
  }
140
142
 
141
143
  config.userFields = config.userFields || [];
@@ -166,10 +168,10 @@ class Auth {
166
168
  }
167
169
 
168
170
  this._storage = new AuthStorage({
169
- messagePrefix: `${clientId}-message-`,
170
- stateKeyPrefix: `${clientId}-states-`,
171
- tokenKey: `${clientId}-token`,
172
- userKey: `${clientId}-user-`
171
+ messagePrefix: "".concat(clientId, "-message-"),
172
+ stateKeyPrefix: "".concat(clientId, "-states-"),
173
+ tokenKey: "".concat(clientId, "-token"),
174
+ userKey: "".concat(clientId, "-user-")
173
175
  });
174
176
  this._domainStorage = new AuthStorage({
175
177
  messagePrefix: 'domain-message-'
@@ -330,10 +332,12 @@ class Auth {
330
332
  }
331
333
 
332
334
  try {
335
+ var _state;
336
+
333
337
  // Check if there is a valid token
334
338
  await this._tokenValidator.validateToken(); // Checking if there is a message left by another app on this domain
335
339
 
336
- const message = await this._domainStorage._messagesStorage.get(`domain-message-${DOMAIN_USER_CHANGED_EVENT}`);
340
+ const message = await this._domainStorage._messagesStorage.get("domain-message-".concat(DOMAIN_USER_CHANGED_EVENT));
337
341
 
338
342
  if (message) {
339
343
  const {
@@ -355,7 +359,7 @@ class Auth {
355
359
 
356
360
  this._initDeferred.resolve(state && state.restoreLocation);
357
361
 
358
- return state?.restoreLocation;
362
+ return (_state = state) === null || _state === void 0 ? void 0 : _state.restoreLocation;
359
363
  } catch (error) {
360
364
  if (Auth.storageIsUnavailable) {
361
365
  this._initDeferred.resolve(); // No way to handle if cookies are disabled
@@ -515,7 +519,7 @@ class Auth {
515
519
  const {
516
520
  serviceName,
517
521
  iconUrl: serviceImage
518
- } = (await this.http.get(`oauth2/interactive/login/settings?client_id=${this.config.clientId}`)) || {};
522
+ } = (await this.http.get("oauth2/interactive/login/settings?client_id=".concat(this.config.clientId))) || {};
519
523
  this.setCurrentService({
520
524
  serviceImage,
521
525
  serviceName
@@ -753,7 +757,7 @@ class Auth {
753
757
  // https://www.jetbrains.com/help/youtrack/devportal/OAuth-2.0-Errors.html
754
758
  if (error.code && typeof error.code.code === 'string') {
755
759
  const readableCode = error.code.code.split('_').join(' ');
756
- return `Authorization error: ${readableCode}`;
760
+ return "Authorization error: ".concat(readableCode);
757
761
  }
758
762
  } catch {// noop
759
763
  }
@@ -942,7 +946,7 @@ class Auth {
942
946
  this.setHash('');
943
947
  }
944
948
 
945
- const stateId = authResponse?.restoreAuthState;
949
+ const stateId = authResponse === null || authResponse === void 0 ? void 0 : authResponse.restoreAuthState;
946
950
  return (await (stateId && this._storage.getState(stateId))) || {};
947
951
  }
948
952
 
@@ -1022,8 +1026,8 @@ class Auth {
1022
1026
  // NB! URL to redirect is formed manually because baseURI could be messed up,
1023
1027
  // in which case it's not obvious where redirect will lead.
1024
1028
  const cleanedUrl = [window.location.pathname, window.location.search].join('');
1025
- const hashIfExist = hash ? `#${hash}` : '';
1026
- history.replaceState(undefined, undefined, `${cleanedUrl}${hashIfExist}`);
1029
+ const hashIfExist = hash ? "#".concat(hash) : '';
1030
+ history.replaceState(undefined, undefined, "".concat(cleanedUrl).concat(hashIfExist));
1027
1031
  } else {
1028
1032
  window.location.hash = hash;
1029
1033
  }
@@ -1,5 +1,6 @@
1
1
  import AuthResponseParser from './response-parser.js';
2
2
  import '../_helpers/_rollupPluginBabelHelpers.js';
3
+ import 'core-js/modules/es.string.replace.js';
3
4
  import 'es6-error';
4
5
  import '../global/url.js';
5
6
 
@@ -35,7 +36,7 @@ class BackgroundFlow {
35
36
 
36
37
 
37
38
  _redirectFrame(iframe, url) {
38
- iframe.src = `${url}&rnd=${Math.random()}`;
39
+ iframe.src = "".concat(url, "&rnd=").concat(Math.random());
39
40
  }
40
41
  /**
41
42
  * Refreshes the access token in an iframe.
@@ -5,6 +5,7 @@ import Alert from '../alert/alert.js';
5
5
  import Link from '../link/link.js';
6
6
  import Group from '../group/group.js';
7
7
  import '../_helpers/_rollupPluginBabelHelpers.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
8
9
  import 'react-dom';
9
10
  import '../global/get-uid.js';
10
11
  import '../alert/container.js';
@@ -18,6 +19,7 @@ import 'util-deprecate';
18
19
  import '../icon/icon__constants.js';
19
20
  import '../_helpers/icon.js';
20
21
  import '../icon/icon__svg.js';
22
+ import 'core-js/modules/es.string.replace.js';
21
23
  import '../global/memoize.js';
22
24
  import '../loader-inline/loader-inline.js';
23
25
  import '../global/theme.js';
@@ -5,6 +5,7 @@ import Link from '../link/link.js';
5
5
  import AuthResponseParser from './response-parser.js';
6
6
  import 'react-dom';
7
7
  import '../login-dialog/login-dialog.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
8
9
  import 'prop-types';
9
10
  import '../dialog/dialog.js';
10
11
  import 'classnames';
@@ -34,6 +35,7 @@ import 'util-deprecate';
34
35
  import '../icon/icon__constants.js';
35
36
  import '../_helpers/icon.js';
36
37
  import '../icon/icon__svg.js';
38
+ import 'core-js/modules/es.string.replace.js';
37
39
  import '../global/memoize.js';
38
40
  import '../global/theme.js';
39
41
  import '../link/clickableLink.js';
@@ -6,7 +6,9 @@ import { DEFAULT_EXPIRES_TIMEOUT } from './auth__core.js';
6
6
  import '../_helpers/_rollupPluginBabelHelpers.js';
7
7
  import 'es6-error';
8
8
  import '../http/http.js';
9
+ import 'core-js/modules/web.dom-collections.iterator.js';
9
10
  import '../global/url.js';
11
+ import 'core-js/modules/es.string.replace.js';
10
12
  import './window-flow.js';
11
13
  import './down-notification.js';
12
14
  import 'react';
@@ -57,10 +59,10 @@ const parser = new AuthResponseParser();
57
59
  const authResponse = parser.getAuthResponseFromURL();
58
60
  async function parseAndStoreResponse(clientId) {
59
61
  const storage = new AuthStorage({
60
- messagePrefix: `${clientId}-message-`,
61
- stateKeyPrefix: `${clientId}-states-`,
62
- tokenKey: `${clientId}-token`,
63
- userKey: `${clientId}-user-`
62
+ messagePrefix: "".concat(clientId, "-message-"),
63
+ stateKeyPrefix: "".concat(clientId, "-states-"),
64
+ tokenKey: "".concat(clientId, "-token"),
65
+ userKey: "".concat(clientId, "-user-")
64
66
  });
65
67
 
66
68
  if (!authResponse) {
@@ -1,6 +1,7 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import uuid from 'simply-uuid';
3
3
  import { encodeURL } from '../global/url.js';
4
+ import 'core-js/modules/es.string.replace.js';
4
5
 
5
6
  class AuthRequestBuilder {
6
7
  /**
@@ -1,4 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/es.string.replace.js';
2
3
  import ExtendableError from 'es6-error';
3
4
  import { parseQueryString } from '../global/url.js';
4
5
 
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import ActualStorage from '../storage/storage.js';
2
3
  import '../storage/storage__local.js';
3
4
  import '../alert-service/alert-service.js';
@@ -17,6 +18,7 @@ import 'util-deprecate';
17
18
  import '../icon/icon__constants.js';
18
19
  import '../_helpers/icon.js';
19
20
  import '../icon/icon__svg.js';
21
+ import 'core-js/modules/es.string.replace.js';
20
22
  import '../global/memoize.js';
21
23
  import '../loader-inline/loader-inline.js';
22
24
  import '../global/theme.js';
@@ -1,7 +1,9 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import ExtendableError from 'es6-error';
3
3
  import { CODE } from '../http/http.js';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import '../global/url.js';
6
+ import 'core-js/modules/es.string.replace.js';
5
7
 
6
8
  class TokenValidator {
7
9
  constructor(config, getUser, storage) {
@@ -1,5 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import AuthResponseParser from './response-parser.js';
3
+ import 'core-js/modules/es.string.replace.js';
3
4
  import 'es6-error';
4
5
  import '../global/url.js';
5
6
 
@@ -42,7 +43,7 @@ class WindowFlow {
42
43
  const screenHalves = 2;
43
44
  const top = (window.screen.height - height - NAVBAR_HEIGHT) / screenHalves;
44
45
  const left = (window.screen.width - width) / screenHalves;
45
- return window.open(url, 'HubLoginWindow', `height=${height}, width=${width}, left=${left}, top=${top}`);
46
+ return window.open(url, 'HubLoginWindow', "height=".concat(height, ", width=").concat(width, ", left=").concat(left, ", top=").concat(top));
46
47
  }
47
48
  /**
48
49
  * Initiates authorization in window
@@ -1,4 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
+ import 'core-js/modules/es.string.replace.js';
2
4
  import React, { Component } from 'react';
3
5
  import PropTypes from 'prop-types';
4
6
  import classNames from 'classnames';
@@ -119,7 +121,7 @@ class AuthDialog extends Component {
119
121
  }, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("div", {
120
122
  className: modules_ae521deb.content
121
123
  }, serviceImage && /*#__PURE__*/React.createElement("img", {
122
- alt: `${serviceName} logo`,
124
+ alt: "".concat(serviceName, " logo"),
123
125
  className: modules_ae521deb.logo,
124
126
  src: serviceImage
125
127
  }), /*#__PURE__*/React.createElement(H2, {
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import { render } from 'react-dom';
3
3
  import AuthDialog from '../auth-dialog/auth-dialog.js';
4
4
  import '../_helpers/_rollupPluginBabelHelpers.js';
5
+ import 'core-js/modules/web.dom-collections.iterator.js';
6
+ import 'core-js/modules/es.string.replace.js';
5
7
  import 'prop-types';
6
8
  import 'classnames';
7
9
  import '../island/island.js';
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/es.string.replace.js';
1
2
  import angular from 'angular';
2
3
  import '../auth/auth.js';
3
4
  import Auth from '../auth/auth__core.js';
@@ -10,6 +11,7 @@ import '../auth/down-notification.js';
10
11
  import 'react';
11
12
  import 'prop-types';
12
13
  import '../alert-service/alert-service.js';
14
+ import 'core-js/modules/web.dom-collections.iterator.js';
13
15
  import 'react-dom';
14
16
  import '../global/get-uid.js';
15
17
  import '../alert/alert.js';
@@ -106,7 +108,7 @@ angularModule.provider('auth', ["$httpProvider", function provider($httpProvider
106
108
 
107
109
  return authInstance.promise.then(() => authInstance.auth.requestToken()).then(accessToken => {
108
110
  if (accessToken) {
109
- config.headers.Authorization = `Bearer ${accessToken}`;
111
+ config.headers.Authorization = "Bearer ".concat(accessToken);
110
112
  }
111
113
 
112
114
  return config;
@@ -1,6 +1,7 @@
1
1
  import angular from 'angular';
2
2
  import { FOCUSABLE_ELEMENTS } from '../tab-trap/tab-trap.js';
3
3
  import '../_helpers/_rollupPluginBabelHelpers.js';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import 'react';
5
6
  import 'prop-types';
6
7
  import '../global/dom.js';
@@ -1,26 +1,4 @@
1
1
  // Taken from https://hub.jetbrains.com/api/rest/avatar/default?username=Jet%20Brains&dpr=2&size=56
2
- const avatarDataUri = `data:image/svg+xml,${encodeURIComponent(`
3
- <svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
4
- <defs>
5
- <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
6
- <stop stop-color="#D50F6B" offset="0"/>
7
- <stop stop-color="#E73AE8" offset="1"/>
8
- </linearGradient>
9
- </defs>
10
- <g>
11
- <rect fill="url(#gradient)"
12
- x="0" y="0" width="40" height="40"
13
- rx="3" ry="3"/>
14
- <text x="5" y="19"
15
- font-family="Arial, Helvetica, sans-serif"
16
- font-size="15px"
17
- letter-spacing="1"
18
- fill="#FFFFFF">
19
- <tspan>JB</tspan>
20
- <tspan x="6" y="28">_</tspan>
21
- </text>
22
- </g>
23
- </svg>
24
- `)}`;
2
+ const avatarDataUri = "data:image/svg+xml,".concat(encodeURIComponent("\n<svg viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\">\n <defs>\n <linearGradient id=\"gradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop stop-color=\"#D50F6B\" offset=\"0\"/>\n <stop stop-color=\"#E73AE8\" offset=\"1\"/>\n </linearGradient>\n </defs>\n <g>\n <rect fill=\"url(#gradient)\"\n x=\"0\" y=\"0\" width=\"40\" height=\"40\"\n rx=\"3\" ry=\"3\"/>\n <text x=\"5\" y=\"19\"\n font-family=\"Arial, Helvetica, sans-serif\"\n font-size=\"15px\"\n letter-spacing=\"1\"\n fill=\"#FFFFFF\">\n <tspan>JB</tspan>\n <tspan x=\"6\" y=\"28\">_</tspan>\n </text>\n </g>\n</svg>\n"));
25
3
 
26
4
  export { avatarDataUri };
@@ -1,10 +1,12 @@
1
1
  import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import React, { PureComponent } from 'react';
3
4
  import PropTypes from 'prop-types';
4
5
  import classNames from 'classnames';
5
6
  import { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
6
7
  import { getPixelRatio } from '../global/dom.js';
7
8
  import FallbackAvatar from './fallback-avatar.js';
9
+ import 'core-js/modules/es.string.replace.js';
8
10
  import '../global/get-uid.js';
9
11
 
10
12
  var modules_61ca8c75 = {"avatar":"avatar_rui_17da","subavatar":"subavatar_rui_17da","empty":"empty_rui_17da"};
@@ -57,8 +59,8 @@ class Avatar extends PureComponent {
57
59
  skipParams,
58
60
  ...restProps
59
61
  } = this.props;
60
- const sizeString = `${size}px`;
61
- const subavatarSizeString = `${subavatarSize}px`;
62
+ const sizeString = "".concat(size, "px");
63
+ const subavatarSizeString = "".concat(subavatarSize, "px");
62
64
  const borderRadius = size <= Size.Size18 ? 'var(--ring-border-radius-small)' : 'var(--ring-border-radius)';
63
65
  const styleObj = {
64
66
  borderRadius: round ? '50%' : borderRadius,
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import React, { useMemo } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import getUID from '../global/get-uid.js';
@@ -63,7 +64,7 @@ function extractLetters(name) {
63
64
  if (names[0].length >= 2) {
64
65
  return names[0].slice(0, 2).toUpperCase();
65
66
  } else {
66
- return `${names[0][0].toUpperCase()}X`;
67
+ return "".concat(names[0][0].toUpperCase(), "X");
67
68
  }
68
69
  } else {
69
70
  return 'XX';
@@ -97,7 +98,7 @@ function FallbackAvatar(_ref) {
97
98
  const radius = round ? '50%' : sizes.radius;
98
99
  const gradientId = useMemo(() => getUID('gradient-'), []);
99
100
  return /*#__PURE__*/React.createElement("svg", {
100
- viewBox: `0 0 ${sizeKey} ${sizeKey}`,
101
+ viewBox: "0 0 ".concat(sizeKey, " ").concat(sizeKey),
101
102
  xmlns: "http://www.w3.org/2000/svg"
102
103
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
103
104
  id: gradientId,
@@ -112,7 +113,7 @@ function FallbackAvatar(_ref) {
112
113
  stopColor: toColor,
113
114
  offset: "1"
114
115
  }))), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
115
- fill: `url(#${gradientId})`,
116
+ fill: "url(#".concat(gradientId, ")"),
116
117
  x: "0",
117
118
  y: "0",
118
119
  width: sizeKey,
@@ -5,6 +5,7 @@ import alertService from '../alert-service/alert-service.js';
5
5
  import IconNG from '../icon-ng/icon-ng.js';
6
6
  import template from './avatar-editor-ng__template.js';
7
7
  import '../_helpers/_rollupPluginBabelHelpers.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
8
9
  import 'react';
9
10
  import 'react-dom';
10
11
  import '../global/get-uid.js';
@@ -20,6 +21,7 @@ import 'util-deprecate';
20
21
  import '../icon/icon__constants.js';
21
22
  import '../_helpers/icon.js';
22
23
  import '../icon/icon__svg.js';
24
+ import 'core-js/modules/es.string.replace.js';
23
25
  import '../global/memoize.js';
24
26
  import '../loader-inline/loader-inline.js';
25
27
  import '../global/theme.js';