@jetbrains/ring-ui 5.0.28 → 5.0.30

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 (245) hide show
  1. package/components/query-assist/query-assist.css +2 -0
  2. package/components/query-assist/query-assist.js +19 -16
  3. package/dist/_helpers/button__classes.js +1 -1
  4. package/dist/_helpers/dialog__body-scroll-preventer.js +1 -2
  5. package/dist/_helpers/select__filter.js +0 -1
  6. package/dist/_helpers/services-link.js +1 -1
  7. package/dist/_helpers/sidebar.js +1 -2
  8. package/dist/_helpers/theme.js +0 -1
  9. package/dist/_helpers/title.js +0 -1
  10. package/dist/alert/alert.js +0 -2
  11. package/dist/alert-service/alert-service.js +0 -2
  12. package/dist/analytics/analytics.js +3 -4
  13. package/dist/analytics/analytics__custom-plugin.js +1 -2
  14. package/dist/analytics/analytics__fus-plugin.js +0 -1
  15. package/dist/analytics/analytics__plugin-utils.js +3 -4
  16. package/dist/analytics-ng/analytics-ng.js +2 -3
  17. package/dist/auth/auth.js +0 -2
  18. package/dist/auth/auth__core.js +10 -12
  19. package/dist/auth/background-flow.js +1 -2
  20. package/dist/auth/down-notification.js +0 -2
  21. package/dist/auth/iframe-flow.js +0 -2
  22. package/dist/auth/landing.js +4 -6
  23. package/dist/auth/request-builder.js +0 -1
  24. package/dist/auth/response-parser.js +0 -1
  25. package/dist/auth/storage.js +0 -2
  26. package/dist/auth/token-validator.js +0 -2
  27. package/dist/auth/window-flow.js +1 -2
  28. package/dist/auth-dialog/auth-dialog.js +1 -3
  29. package/dist/auth-dialog-service/auth-dialog-service.js +0 -2
  30. package/dist/auth-ng/auth-ng.js +1 -3
  31. package/dist/autofocus-ng/autofocus-ng.js +0 -1
  32. package/dist/avatar/avatar-example-datauri.js +23 -1
  33. package/dist/avatar/avatar.js +2 -4
  34. package/dist/avatar/fallback-avatar.js +3 -4
  35. package/dist/avatar-editor-ng/avatar-editor-ng.js +0 -2
  36. package/dist/avatar-editor-ng/avatar-editor-ng__template.js +28 -1
  37. package/dist/avatar-ng/avatar-ng.js +0 -2
  38. package/dist/badge/badge.js +0 -1
  39. package/dist/badge-ng/badge-ng.js +0 -1
  40. package/dist/breadcrumb-ng/breadcrumb-ng.js +27 -3
  41. package/dist/button/button.js +0 -2
  42. package/dist/button-group/button-group.js +0 -1
  43. package/dist/button-group-ng/button-group-ng.js +0 -1
  44. package/dist/button-ng/button-ng.js +10 -4
  45. package/dist/button-set/button-set.js +0 -1
  46. package/dist/button-set-ng/button-set-ng.js +1 -1
  47. package/dist/button-toolbar/button-toolbar.js +0 -1
  48. package/dist/button-toolbar-ng/button-toolbar-ng.js +0 -1
  49. package/dist/caret/caret.js +0 -2
  50. package/dist/checkbox/checkbox.js +0 -2
  51. package/dist/checkbox-ng/checkbox-ng.js +21 -4
  52. package/dist/code/code.js +1 -2
  53. package/dist/confirm/confirm.js +0 -2
  54. package/dist/confirm-ng/confirm-ng.js +0 -2
  55. package/dist/confirm-service/confirm-service.js +0 -2
  56. package/dist/content-layout/content-layout.js +0 -1
  57. package/dist/content-layout/sidebar.js +0 -1
  58. package/dist/data-list/data-list.js +0 -2
  59. package/dist/data-list/data-list.mock.js +0 -1
  60. package/dist/data-list/item.js +0 -2
  61. package/dist/data-list/selection.js +0 -1
  62. package/dist/data-list/title.js +0 -2
  63. package/dist/data-list-ng/data-list-ng.js +0 -2
  64. package/dist/date-picker/consts.js +1 -1
  65. package/dist/date-picker/date-input.js +1 -3
  66. package/dist/date-picker/date-picker.js +7 -9
  67. package/dist/date-picker/date-popup.js +0 -2
  68. package/dist/date-picker/day.js +0 -1
  69. package/dist/date-picker/month-names.js +0 -1
  70. package/dist/date-picker/month-slider.js +0 -1
  71. package/dist/date-picker/month.js +0 -1
  72. package/dist/date-picker/months.js +0 -1
  73. package/dist/date-picker/years.js +0 -1
  74. package/dist/dialog/dialog.js +0 -2
  75. package/dist/dialog/dialog__body-scroll-preventer.js +0 -1
  76. package/dist/dialog-ng/dialog-ng.js +3 -6
  77. package/dist/dialog-ng/dialog-ng__template.js +70 -1
  78. package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
  79. package/dist/dropdown/anchor.js +0 -2
  80. package/dist/dropdown/dropdown.js +0 -2
  81. package/dist/dropdown-menu/dropdown-menu.js +1 -3
  82. package/dist/error-bubble/error-bubble.js +0 -2
  83. package/dist/error-message/error-message.js +1 -3
  84. package/dist/error-message-ng/error-message-ng.js +21 -3
  85. package/dist/footer/footer.js +0 -1
  86. package/dist/footer-ng/footer-ng.js +14 -3
  87. package/dist/form-ng/form-ng.js +4 -2
  88. package/dist/global/angular-component-factory.js +2 -3
  89. package/dist/global/create-stateful-context.js +2 -3
  90. package/dist/global/data-tests.js +0 -2
  91. package/dist/global/dom.js +0 -1
  92. package/dist/global/focus-sensor-hoc.js +0 -1
  93. package/dist/global/fuzzy-highlight.js +1 -1
  94. package/dist/global/inject-styles.js +7 -5
  95. package/dist/global/listeners.js +0 -1
  96. package/dist/global/memoize.js +0 -2
  97. package/dist/global/normalize-indent.js +0 -2
  98. package/dist/global/react-dom-renderer.js +0 -1
  99. package/dist/global/react-render-adapter.js +0 -1
  100. package/dist/global/rerender-hoc.js +1 -2
  101. package/dist/global/theme.js +0 -2
  102. package/dist/global/trivial-template-tag.js +0 -2
  103. package/dist/global/url.js +1 -3
  104. package/dist/grid/col.js +1 -2
  105. package/dist/grid/grid.js +0 -1
  106. package/dist/grid/row.js +1 -1
  107. package/dist/group-ng/group-ng.js +1 -1
  108. package/dist/header/header.js +0 -2
  109. package/dist/header/logo.js +0 -2
  110. package/dist/header/profile.js +0 -2
  111. package/dist/header/services-link.js +0 -1
  112. package/dist/header/services.js +0 -2
  113. package/dist/header/smart-profile.js +2 -4
  114. package/dist/header/smart-services.js +1 -3
  115. package/dist/header/tray-icon.js +0 -2
  116. package/dist/heading/heading.js +2 -2
  117. package/dist/heading-ng/heading-ng.js +0 -1
  118. package/dist/http/http.js +2 -4
  119. package/dist/http/http.mock.js +0 -2
  120. package/dist/hub-source/hub-source.js +1 -1
  121. package/dist/hub-source/hub-source__user.js +2 -4
  122. package/dist/hub-source/hub-source__users-groups.js +2 -3
  123. package/dist/icon/icon.js +3 -3
  124. package/dist/icon/icon__svg.js +0 -2
  125. package/dist/icon/index.js +0 -2
  126. package/dist/icon-ng/icon-ng.js +5 -7
  127. package/dist/input/input.js +2 -4
  128. package/dist/input-ng/input-ng.js +58 -5
  129. package/dist/island/adaptive-island-hoc.js +0 -1
  130. package/dist/island/content.js +0 -1
  131. package/dist/island/header.js +2 -3
  132. package/dist/island/island.js +0 -1
  133. package/dist/island-ng/island-content-ng.js +16 -2
  134. package/dist/island-ng/island-header-ng.js +8 -2
  135. package/dist/island-ng/island-ng-class-fixer.js +0 -2
  136. package/dist/island-ng/island-ng.js +8 -2
  137. package/dist/link/clickableLink.js +0 -1
  138. package/dist/link/link.js +0 -1
  139. package/dist/link-ng/link-ng.js +4 -1
  140. package/dist/list/list.js +8 -10
  141. package/dist/list/list__custom.js +0 -1
  142. package/dist/list/list__item.js +2 -4
  143. package/dist/list/list__link.js +0 -1
  144. package/dist/list/list__users-groups-source.js +1 -3
  145. package/dist/loader/loader.js +0 -1
  146. package/dist/loader/loader__core.js +3 -4
  147. package/dist/loader-inline/loader-inline.js +0 -1
  148. package/dist/loader-inline-ng/loader-inline-ng.js +1 -1
  149. package/dist/loader-ng/loader-ng.js +0 -1
  150. package/dist/loader-screen/loader-screen.js +0 -1
  151. package/dist/loader-screen-ng/loader-screen-ng.js +6 -2
  152. package/dist/login-dialog/login-dialog.js +0 -2
  153. package/dist/login-dialog/service.js +0 -2
  154. package/dist/markdown/code.js +0 -2
  155. package/dist/markdown/link.js +0 -1
  156. package/dist/markdown/markdown.js +0 -2
  157. package/dist/message/message.js +0 -2
  158. package/dist/old-browsers-message/old-browsers-message.js +1 -2
  159. package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
  160. package/dist/old-browsers-message/white-list.js +2 -3
  161. package/dist/pager/pager.js +1 -3
  162. package/dist/pager-ng/pager-ng.js +0 -2
  163. package/dist/panel-ng/panel-ng.js +0 -1
  164. package/dist/permissions/permissions.js +1 -1
  165. package/dist/permissions-ng/permissions-ng.js +1 -3
  166. package/dist/place-under-ng/place-under-ng.js +2 -3
  167. package/dist/popup/popup.js +2 -4
  168. package/dist/popup/position.js +0 -1
  169. package/dist/popup-menu/popup-menu.js +0 -2
  170. package/dist/progress-bar/progress-bar.js +1 -2
  171. package/dist/progress-bar-ng/progress-bar-ng.js +0 -1
  172. package/dist/promised-click-ng/promised-click-ng.js +0 -2
  173. package/dist/proxy-attrs/proxy-attrs.js +3 -5
  174. package/dist/query-assist/query-assist.js +7 -7
  175. package/dist/query-assist/query-assist__suggestions.js +0 -2
  176. package/dist/query-assist-ng/query-assist-ng.js +0 -2
  177. package/dist/radio/radio.js +0 -1
  178. package/dist/radio/radio__item.js +0 -1
  179. package/dist/radio-ng/radio-ng.js +18 -2
  180. package/dist/save-field-ng/save-field-ng.js +1 -3
  181. package/dist/save-field-ng/save-field-ng__template.js +32 -1
  182. package/dist/select/select.js +5 -7
  183. package/dist/select/select__filter.js +0 -2
  184. package/dist/select/select__popup.js +1 -3
  185. package/dist/select-ng/select-ng.js +0 -2
  186. package/dist/select-ng/select-ng__lazy.js +0 -2
  187. package/dist/select-ng/select-ng__options.js +2 -2
  188. package/dist/shortcuts/shortcuts-hoc.js +0 -1
  189. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -3
  190. package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +48 -1
  191. package/dist/shortcuts-ng/shortcuts-ng.js +3 -4
  192. package/dist/sidebar-ng/sidebar-ng.js +0 -2
  193. package/dist/sidebar-ng/sidebar-ng__button-template.js +18 -1
  194. package/dist/sidebar-ng/sidebar-ng__template.js +10 -1
  195. package/dist/storage/storage.js +0 -2
  196. package/dist/storage/storage__fallback.js +3 -4
  197. package/dist/storage/storage__local.js +0 -2
  198. package/dist/style.css +1 -1
  199. package/dist/tab-trap/tab-trap.js +0 -1
  200. package/dist/table/cell.js +0 -1
  201. package/dist/table/disable-hover-hoc.js +0 -1
  202. package/dist/table/header-cell.js +0 -2
  203. package/dist/table/header.js +0 -2
  204. package/dist/table/multitable.js +0 -1
  205. package/dist/table/row-with-focus-sensor.js +0 -2
  206. package/dist/table/row.js +1 -3
  207. package/dist/table/selection-adapter.js +0 -2
  208. package/dist/table/selection-shortcuts-hoc.js +0 -1
  209. package/dist/table/selection.js +0 -1
  210. package/dist/table/smart-table.js +0 -2
  211. package/dist/table/table.js +0 -2
  212. package/dist/table-legacy-ng/table-legacy-ng.js +45 -10
  213. package/dist/table-legacy-ng/table-legacy-ng__pager.js +7 -3
  214. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +1 -2
  215. package/dist/table-ng/smart-table-ng.js +0 -2
  216. package/dist/table-ng/table-ng.js +0 -2
  217. package/dist/tabs/collapsible-more.js +0 -2
  218. package/dist/tabs/collapsible-tab.js +0 -1
  219. package/dist/tabs/collapsible-tabs.js +0 -2
  220. package/dist/tabs/dumb-tabs.js +0 -2
  221. package/dist/tabs/smart-tabs.js +0 -2
  222. package/dist/tabs/tab-link.js +0 -1
  223. package/dist/tabs/tab.js +0 -1
  224. package/dist/tabs/tabs.js +0 -2
  225. package/dist/tabs-ng/tabs-ng.js +0 -1
  226. package/dist/tabs-ng/tabs-ng__template.js +38 -1
  227. package/dist/tag/tag.js +0 -2
  228. package/dist/tags-input/tags-input.js +0 -2
  229. package/dist/tags-input-ng/tags-input-ng.js +0 -2
  230. package/dist/tags-list/tags-list.js +0 -2
  231. package/dist/template-ng/template-ng.js +0 -1
  232. package/dist/theme-ng/theme-ng.js +0 -1
  233. package/dist/toggle/toggle.js +0 -1
  234. package/dist/toggle-ng/toggle-ng.js +0 -1
  235. package/dist/tooltip/tooltip.js +0 -2
  236. package/dist/tooltip-ng/tooltip-ng.js +0 -2
  237. package/dist/user-agreement/service.js +0 -2
  238. package/dist/user-agreement/toolbox.eula.js +160 -1
  239. package/dist/user-agreement/user-agreement.js +0 -2
  240. package/dist/user-card/card.js +0 -2
  241. package/dist/user-card/smart-user-card-tooltip.js +0 -2
  242. package/dist/user-card/tooltip.js +0 -2
  243. package/dist/user-card/user-card.js +0 -2
  244. package/dist/user-card-ng/user-card-ng.js +0 -2
  245. package/package.json +32 -32
@@ -51,6 +51,8 @@
51
51
  padding-bottom: var(--ring-input-padding-block);
52
52
  padding-left: var(--ring-input-padding-start);
53
53
 
54
+ cursor: text;
55
+
54
56
  transition: border-color var(--ring-ease);
55
57
 
56
58
  color: var(--ring-text-color);
@@ -16,6 +16,7 @@ import Shortcuts from '../shortcuts/shortcuts';
16
16
  import rerenderHOC from '../global/rerender-hoc';
17
17
  import Button from '../button/button';
18
18
  import Icon from '../icon/icon';
19
+ import { ControlsHeight, ControlsHeightContext } from '../global/controls-height';
19
20
  import QueryAssistSuggestions from './query-assist__suggestions';
20
21
  import styles from './query-assist.css';
21
22
  const POPUP_COMPENSATION = PopupMenu.ListProps.Dimension.ITEM_PADDING +
@@ -771,34 +772,36 @@ export default class QueryAssist extends Component {
771
772
  [styles.inputLeftGap]: this.isRenderingGlassOrLoader() && glass,
772
773
  [styles.inputDisabled]: this.props.disabled
773
774
  });
774
- return (<div data-test={dataTests('ring-query-assist', dataTest)} className={containerClasses} role="presentation" ref={this.nodeRef}>
775
- {this.state.shortcuts &&
775
+ return (<ControlsHeightContext.Provider value={ControlsHeight.M}>
776
+ <div data-test={dataTests('ring-query-assist', dataTest)} className={containerClasses} role="presentation" ref={this.nodeRef}>
777
+ {this.state.shortcuts &&
776
778
  (<Shortcuts map={this.shortcutsMap} scope={this.shortcutsScope}/>)}
777
779
 
778
- {renderGlass && !huge && (<Icon glyph={searchIcon} className={styles.icon} title={this.props.translations.searchTitle} ref={this.glassRef} data-test="query-assist-search-icon"/>)}
780
+ {renderGlass && !huge && (<Icon glyph={searchIcon} className={styles.icon} title={this.props.translations.searchTitle} ref={this.glassRef} data-test="query-assist-search-icon"/>)}
779
781
 
780
- {renderLoader && (<div className={classNames(styles.icon, styles.loader, {
782
+ {renderLoader && (<div className={classNames(styles.icon, styles.loader, {
781
783
  [styles.loaderOnTheRight]: !glass
782
784
  })} ref={this.loaderRef}>
783
- <LoaderInline />
784
- </div>)}
785
+ <LoaderInline />
786
+ </div>)}
785
787
 
786
- <ContentEditable aria-label={this.props.translations.searchTitle} className={inputClasses} data-test="ring-query-assist-input" inputRef={this.inputRef} disabled={this.props.disabled} onComponentUpdate={() => this.setCaretPosition({ fromContentEditable: true })} onBlur={this.handleFocusChange} onClick={this.handleCaretMove} onCompositionStart={this.trackCompositionState} onCompositionEnd={this.trackCompositionState} onFocus={this.handleFocusChange} onInput={this.handleInput} // To support IE use the same method
788
+ <ContentEditable aria-label={this.props.translations.searchTitle} className={inputClasses} data-test="ring-query-assist-input" inputRef={this.inputRef} disabled={this.props.disabled} onComponentUpdate={() => this.setCaretPosition({ fromContentEditable: true })} onBlur={this.handleFocusChange} onClick={this.handleCaretMove} onCompositionStart={this.trackCompositionState} onCompositionEnd={this.trackCompositionState} onFocus={this.handleFocusChange} onInput={this.handleInput} // To support IE use the same method
787
789
  onKeyUp={this.handleInput} // to handle input and key up
788
790
  onKeyDown={this.handleEnter} onPaste={this.handlePaste} spellCheck="false">{this.state.query && <span>{this.renderQuery()}</span>}</ContentEditable>
789
791
 
790
- {renderPlaceholder && (<button type="button" className={styles.placeholder} ref={this.placeholderRef} onClick={this.handleCaretMove} data-test="query-assist-placeholder">
791
- {this.props.placeholder}
792
- </button>)}
792
+ {renderPlaceholder && (<button type="button" className={styles.placeholder} ref={this.placeholderRef} onClick={this.handleCaretMove} data-test="query-assist-placeholder">
793
+ {this.props.placeholder}
794
+ </button>)}
793
795
 
794
- {actions && (<div data-test="ring-query-assist-actions" className={styles.actions}>{actions}</div>)}
796
+ {actions && (<div data-test="ring-query-assist-actions" className={styles.actions}>{actions}</div>)}
795
797
 
796
- <PopupMenu hidden={!this.state.showPopup} onCloseAttempt={this.closePopup} ref={this.popupRef} anchorElement={this.node} keepMounted attached className={this.props.popupClassName} directions={[PopupMenu.PopupProps.Directions.BOTTOM_RIGHT]} data={useCustomItemRender ? this.state.suggestions : this.renderSuggestions()} data-test="ring-query-assist-popup" hint={this.props.hint} hintOnSelection={this.props.hintOnSelection} left={this.getPopupOffset(this.state.suggestions)} maxHeight={PopupMenu.PopupProps.MaxHeight.SCREEN} onMouseDown={this.trackPopupMouseState} onMouseUp={this.trackPopupMouseState} onSelect={item => this.handleComplete(item)}/>
798
+ <PopupMenu hidden={!this.state.showPopup} onCloseAttempt={this.closePopup} ref={this.popupRef} anchorElement={this.node} keepMounted attached className={this.props.popupClassName} directions={[PopupMenu.PopupProps.Directions.BOTTOM_RIGHT]} data={useCustomItemRender ? this.state.suggestions : this.renderSuggestions()} data-test="ring-query-assist-popup" hint={this.props.hint} hintOnSelection={this.props.hintOnSelection} left={this.getPopupOffset(this.state.suggestions)} maxHeight={PopupMenu.PopupProps.MaxHeight.SCREEN} onMouseDown={this.trackPopupMouseState} onMouseUp={this.trackPopupMouseState} onSelect={item => this.handleComplete(item)}/>
797
799
 
798
- {glass && huge && (<div className={styles.rightSearchButton}>
799
- <Icon glyph={searchIcon} className={styles.rightSearchIcon} title={this.props.translations.searchTitle} onClick={this.handleApply} ref={this.glassRef} data-test="query-assist-search-icon"/>
800
- </div>)}
801
- </div>);
800
+ {glass && huge && (<div className={styles.rightSearchButton}>
801
+ <Icon glyph={searchIcon} className={styles.rightSearchIcon} title={this.props.translations.searchTitle} onClick={this.handleApply} ref={this.glassRef} data-test="query-assist-search-icon"/>
802
+ </div>)}
803
+ </div>
804
+ </ControlsHeightContext.Provider>);
802
805
  }
803
806
  }
804
807
  export const RerenderableQueryAssist = rerenderHOC(QueryAssist);
@@ -18,7 +18,7 @@ function getButtonClasses(_ref) {
18
18
  height
19
19
  } = _ref;
20
20
  const withNormalIcon = icon && !active && !danger && !primary && !disabled;
21
- return classNames(modules_e81895c9.button, className, modules_e81895c9["height".concat(height)], {
21
+ return classNames(modules_e81895c9.button, className, modules_e81895c9[`height${height}`], {
22
22
  [modules_e81895c9.active]: active,
23
23
  [modules_e81895c9.danger]: danger,
24
24
  [modules_e81895c9.delayed]: delayed,
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/web.dom-collections.iterator.js';
2
1
  import scrollbarWidth from 'scrollbar-width';
3
2
 
4
3
  var modules_5e9b8c03 = {"unit":"8px","header":"header_rui_1d72","container":"container_rui_381e","innerContainer":"innerContainer_rui_381e","content":"content_rui_381e","panel":"panel_rui_381e","clickableOverlay":"clickableOverlay_rui_381e","closeIcon":"closeIcon_rui_381e","closeButton":"closeButton_rui_381e","closeButtonOutside":"closeButtonOutside_rui_381e","closeButtonInside":"closeButtonInside_rui_381e","documentWithoutScroll":"documentWithoutScroll_rui_381e","popupTarget":"popupTarget_rui_381e"};
@@ -23,7 +22,7 @@ const prevent = key => {
23
22
 
24
23
  if (documentHasScroll && scrollWidth != null && scrollWidth > 0) {
25
24
  previousDocumentWidth = document.documentElement.style.width;
26
- document.documentElement.style.width = "calc(100% - ".concat(scrollWidth, "px)");
25
+ document.documentElement.style.width = `calc(100% - ${scrollWidth}px)`;
27
26
  }
28
27
  };
29
28
 
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import React, { Component } from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  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(".concat(service.iconUrl, ")")
21
+ backgroundImage: `url(${service.iconUrl})`
22
22
  }
23
23
  }), /*#__PURE__*/React.createElement("div", {
24
24
  key: "text"
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import React, { Component } from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
@@ -96,7 +95,7 @@ class Sidebar extends Component {
96
95
  [fixedClassName !== null && fixedClassName !== void 0 ? fixedClassName : '']: shouldFixateTop || shouldFixateBottom
97
96
  });
98
97
  const style = {
99
- maxHeight: shouldFixateBottom && sidebarVisibleHeight ? "".concat(sidebarVisibleHeight, "px") : undefined
98
+ maxHeight: shouldFixateBottom && sidebarVisibleHeight ? `${sidebarVisibleHeight}px` : undefined
100
99
  };
101
100
  return /*#__PURE__*/React.createElement("aside", {
102
101
  className: containerClasses,
@@ -1,5 +1,4 @@
1
1
  import { a as _extends } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import React, { useState, useEffect, forwardRef, useMemo, useContext } from 'react';
4
3
  import classNames from 'classnames';
5
4
  import { createPortal } from 'react-dom';
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import React, { PureComponent } from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import React, { PureComponent } from 'react';
4
3
  import classNames from 'classnames';
5
4
  import PropTypes from 'prop-types';
@@ -18,7 +17,6 @@ import { Color } from '../icon/icon__constants.js';
18
17
  import 'util-deprecate';
19
18
  import '../_helpers/icon.js';
20
19
  import '../icon/icon__svg.js';
21
- import 'core-js/modules/es.string.replace.js';
22
20
  import '../global/memoize.js';
23
21
  import '../_helpers/loader-inline.js';
24
22
  import 'focus-visible';
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import React from 'react';
4
3
  import { render } from '../global/react-render-adapter.js';
5
4
  import getUID from '../global/get-uid.js';
@@ -17,7 +16,6 @@ import 'util-deprecate';
17
16
  import '../icon/icon__constants.js';
18
17
  import '../_helpers/icon.js';
19
18
  import '../icon/icon__svg.js';
20
- import 'core-js/modules/es.string.replace.js';
21
19
  import '../global/memoize.js';
22
20
  import '../loader-inline/loader-inline.js';
23
21
  import '../global/data-tests.js';
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.string.replace.js';
3
2
 
4
3
  /**
5
4
  * @name Analytics
@@ -59,7 +58,7 @@ class Analytics {
59
58
 
60
59
  trackShortcutEvent(category, action, additionalData) {
61
60
  this.trackEvent(category, action, additionalData);
62
- this.trackEvent('ring-shortcut', "".concat(category, "$").concat(action), additionalData);
61
+ this.trackEvent('ring-shortcut', `${category}$${action}`, additionalData);
63
62
  }
64
63
 
65
64
  trackEntityProperties(entityName, entity, propertiesNames, additionalData) {
@@ -84,7 +83,7 @@ class Analytics {
84
83
  value = value.toLowerCase().replace(/[._]+/g, '-');
85
84
  }
86
85
 
87
- const resultAction = "".concat(keys.join('-'), "__").concat(value);
86
+ const resultAction = `${keys.join('-')}__${value}`;
88
87
  this.trackEvent(entityName, resultAction, additionalData);
89
88
  }
90
89
  }
@@ -99,7 +98,7 @@ class Analytics {
99
98
 
100
99
  for (key in additionalData) {
101
100
  if (additionalData.hasOwnProperty(key)) {
102
- suffix += "__".concat(key, "$").concat(additionalData[key]);
101
+ suffix += `__${key}$${additionalData[key]}`;
103
102
  }
104
103
  }
105
104
 
@@ -1,6 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import AnalyticsPluginUtils from './analytics__plugin-utils.js';
3
- import 'core-js/modules/es.string.replace.js';
4
3
  import '../global/sniffer.js';
5
4
  import 'sniffr';
6
5
 
@@ -122,7 +121,7 @@ class AnalyticsCustomPlugin {
122
121
  if (this._lastPageViewTime) {
123
122
  const duration = AnalyticsPluginUtils.getPageViewDurationPresentation(currentTime - this._lastPageViewTime);
124
123
 
125
- this._processEvent("ring-pageview-duration_".concat(this._lastPagePath), duration);
124
+ this._processEvent(`ring-pageview-duration_${this._lastPagePath}`, duration);
126
125
  }
127
126
  }
128
127
 
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.string.replace.js';
3
2
  import AnalyticsPluginUtils from './analytics__plugin-utils.js';
4
3
  import '../global/sniffer.js';
5
4
  import 'sniffr';
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/es.string.replace.js';
2
1
  import sniffr from '../global/sniffer.js';
3
2
  import 'sniffr';
4
3
 
@@ -43,7 +42,7 @@ const AnalyticsPluginUtils = {
43
42
 
44
43
  let roundedDuration = Math.floor(Math.pow(2, Math.floor(Math.log2(duration)) + 1));
45
44
  roundedDuration = roundedDuration > 0 ? roundedDuration : 1;
46
- return "less-than-".concat(roundedDuration, "-sec");
45
+ return `less-than-${roundedDuration}-sec`;
47
46
  },
48
47
  getScreenWidthPresentation: () => {
49
48
  /**
@@ -54,7 +53,7 @@ const AnalyticsPluginUtils = {
54
53
 
55
54
  for (let i = 1; i < sizes.length; ++i) {
56
55
  if (window.innerWidth < sizes[i]) {
57
- return "[".concat(sizes[i - 1], "px;").concat(sizes[i], "px)");
56
+ return `[${sizes[i - 1]}px;${sizes[i]}px)`;
58
57
  }
59
58
  }
60
59
 
@@ -65,7 +64,7 @@ const AnalyticsPluginUtils = {
65
64
  const name = AnalyticsPluginUtils.npeSaveLowerCase(sniffr.browser.name || 'unknown');
66
65
  const majorVersion = sniffr.browser.version[0];
67
66
  const version = majorVersion || 'unknown';
68
- return "".concat(name, "$").concat(version);
67
+ return `${name}$${version}`;
69
68
  },
70
69
  getDevicePixelRatioPresentation: () => {
71
70
  if (!window.devicePixelRatio || !window.devicePixelRatio.toFixed) {
@@ -4,7 +4,6 @@ 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
6
  import '../_helpers/_rollupPluginBabelHelpers.js';
7
- import 'core-js/modules/es.string.replace.js';
8
7
  import '../analytics/analytics__plugin-utils.js';
9
8
  import '../global/sniffer.js';
10
9
  import 'sniffr';
@@ -37,9 +36,9 @@ angularModule.provider('analytics', function provider() {
37
36
  try {
38
37
  const plugin = $injector.get(configPlugins[i]);
39
38
  loadedPlugins.push(plugin);
40
- $log.debug("analytics: loaded plugin ".concat(configPlugins[i]));
39
+ $log.debug(`analytics: loaded plugin ${configPlugins[i]}`);
41
40
  } catch (err) {
42
- $log.debug("analytics: unable to load factory ".concat(configPlugins[i]));
41
+ $log.debug(`analytics: unable to load factory ${configPlugins[i]}`);
43
42
  }
44
43
  } else {
45
44
  loadedPlugins.push(configPlugins[i]);
package/dist/auth/auth.js CHANGED
@@ -4,13 +4,11 @@ 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';
8
7
  import 'es6-error';
9
8
  import '../global/url.js';
10
9
  import 'react';
11
10
  import 'prop-types';
12
11
  import '../alert-service/alert-service.js';
13
- import 'core-js/modules/web.dom-collections.iterator.js';
14
12
  import '../global/react-render-adapter.js';
15
13
  import 'react-dom';
16
14
  import '../global/get-uid.js';
@@ -1,6 +1,4 @@
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';
4
2
  import { getAbsoluteBaseURL, fixUrl } from '../global/url.js';
5
3
  import Listeners from '../global/listeners.js';
6
4
  import HTTP from '../http/http.js';
@@ -158,7 +156,7 @@ class Auth {
158
156
  const unsupportedParams = ['redirect_uri', 'request_credentials', 'client_id'].filter(param => config.hasOwnProperty(param));
159
157
 
160
158
  if (unsupportedParams.length !== 0) {
161
- throw new Error("The following parameters are no longer supported: ".concat(unsupportedParams.join(', '), ". Please change them from snake_case to camelCase."));
159
+ throw new Error(`The following parameters are no longer supported: ${unsupportedParams.join(', ')}. Please change them from snake_case to camelCase.`);
162
160
  }
163
161
 
164
162
  config.userFields = config.userFields || [];
@@ -189,10 +187,10 @@ class Auth {
189
187
  }
190
188
 
191
189
  this._storage = new AuthStorage({
192
- messagePrefix: "".concat(clientId, "-message-"),
193
- stateKeyPrefix: "".concat(clientId, "-states-"),
194
- tokenKey: "".concat(clientId, "-token"),
195
- userKey: "".concat(clientId, "-user-")
190
+ messagePrefix: `${clientId}-message-`,
191
+ stateKeyPrefix: `${clientId}-states-`,
192
+ tokenKey: `${clientId}-token`,
193
+ userKey: `${clientId}-user-`
196
194
  });
197
195
  this._domainStorage = new AuthStorage({
198
196
  messagePrefix: 'domain-message-'
@@ -377,7 +375,7 @@ class Auth {
377
375
  // Check if there is a valid token
378
376
  await ((_this$_tokenValidator = this._tokenValidator) === null || _this$_tokenValidator === void 0 ? void 0 : _this$_tokenValidator.validateToken()); // Checking if there is a message left by another app on this domain
379
377
 
380
- const message = await this._domainStorage._messagesStorage.get("domain-message-".concat(DOMAIN_USER_CHANGED_EVENT));
378
+ const message = await this._domainStorage._messagesStorage.get(`domain-message-${DOMAIN_USER_CHANGED_EVENT}`);
381
379
 
382
380
  if (message) {
383
381
  var _this$user;
@@ -591,7 +589,7 @@ class Auth {
591
589
  const {
592
590
  serviceName,
593
591
  iconUrl: serviceImage
594
- } = (await this.http.get("oauth2/interactive/login/settings?client_id=".concat(this.config.clientId))) || {};
592
+ } = (await this.http.get(`oauth2/interactive/login/settings?client_id=${this.config.clientId}`)) || {};
595
593
  this.setCurrentService({
596
594
  serviceImage,
597
595
  serviceName
@@ -843,7 +841,7 @@ class Auth {
843
841
  // https://www.jetbrains.com/help/youtrack/devportal/OAuth-2.0-Errors.html
844
842
  if ('code' in error && error.code && typeof error.code === 'object' && 'code' in error.code && typeof error.code.code === 'string') {
845
843
  const readableCode = error.code.code.split('_').join(' ');
846
- return "Authorization error: ".concat(readableCode);
844
+ return `Authorization error: ${readableCode}`;
847
845
  }
848
846
  } catch {// noop
849
847
  }
@@ -1142,8 +1140,8 @@ class Auth {
1142
1140
  // NB! URL to redirect is formed manually because baseURI could be messed up,
1143
1141
  // in which case it's not obvious where redirect will lead.
1144
1142
  const cleanedUrl = [window.location.pathname, window.location.search].join('');
1145
- const hashIfExist = hash ? "#".concat(hash) : '';
1146
- history.replaceState(undefined, '', "".concat(cleanedUrl).concat(hashIfExist));
1143
+ const hashIfExist = hash ? `#${hash}` : '';
1144
+ history.replaceState(undefined, '', `${cleanedUrl}${hashIfExist}`);
1147
1145
  } else {
1148
1146
  window.location.hash = hash;
1149
1147
  }
@@ -1,6 +1,5 @@
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';
4
3
  import 'es6-error';
5
4
  import '../global/url.js';
6
5
 
@@ -44,7 +43,7 @@ class BackgroundFlow {
44
43
 
45
44
 
46
45
  _redirectFrame(iframe, url) {
47
- iframe.src = "".concat(url, "&rnd=").concat(Math.random());
46
+ iframe.src = `${url}&rnd=${Math.random()}`;
48
47
  }
49
48
  /**
50
49
  * Refreshes the access token in an iframe.
@@ -5,7 +5,6 @@ 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';
9
8
  import '../global/react-render-adapter.js';
10
9
  import 'react-dom';
11
10
  import '../global/get-uid.js';
@@ -20,7 +19,6 @@ import 'util-deprecate';
20
19
  import '../icon/icon__constants.js';
21
20
  import '../_helpers/icon.js';
22
21
  import '../icon/icon__svg.js';
23
- import 'core-js/modules/es.string.replace.js';
24
22
  import '../global/memoize.js';
25
23
  import '../loader-inline/loader-inline.js';
26
24
  import '../global/data-tests.js';
@@ -4,7 +4,6 @@ import showAuthDialog from '../login-dialog/service.js';
4
4
  import Link from '../link/link.js';
5
5
  import AuthResponseParser from './response-parser.js';
6
6
  import '../global/react-render-adapter.js';
7
- import 'core-js/modules/web.dom-collections.iterator.js';
8
7
  import 'react-dom';
9
8
  import '../login-dialog/login-dialog.js';
10
9
  import 'prop-types';
@@ -36,7 +35,6 @@ import 'util-deprecate';
36
35
  import '../icon/icon__constants.js';
37
36
  import '../_helpers/icon.js';
38
37
  import '../icon/icon__svg.js';
39
- import 'core-js/modules/es.string.replace.js';
40
38
  import '../global/memoize.js';
41
39
  import '../link/clickableLink.js';
42
40
  import '../global/controls-height.js';
@@ -6,9 +6,7 @@ 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';
10
9
  import '../global/url.js';
11
- import 'core-js/modules/es.string.replace.js';
12
10
  import './window-flow.js';
13
11
  import './down-notification.js';
14
12
  import 'react';
@@ -73,10 +71,10 @@ async function parseAndStoreResponse(clientId) {
73
71
  var _this$_storage;
74
72
 
75
73
  const storage = new AuthStorage({
76
- messagePrefix: "".concat(clientId, "-message-"),
77
- stateKeyPrefix: "".concat(clientId, "-states-"),
78
- tokenKey: "".concat(clientId, "-token"),
79
- userKey: "".concat(clientId, "-user-")
74
+ messagePrefix: `${clientId}-message-`,
75
+ stateKeyPrefix: `${clientId}-states-`,
76
+ tokenKey: `${clientId}-token`,
77
+ userKey: `${clientId}-user-`
80
78
  });
81
79
 
82
80
  if (!authResponse) {
@@ -1,7 +1,6 @@
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';
5
4
 
6
5
  class AuthRequestBuilder {
7
6
  /**
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.string.replace.js';
3
2
  import ExtendableError from 'es6-error';
4
3
  import { parseQueryString } from '../global/url.js';
5
4
 
@@ -1,5 +1,4 @@
1
1
  import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import ActualStorage from '../storage/storage.js';
4
3
  import '../storage/storage__local.js';
5
4
  import '../alert-service/alert-service.js';
@@ -19,7 +18,6 @@ import 'util-deprecate';
19
18
  import '../icon/icon__constants.js';
20
19
  import '../_helpers/icon.js';
21
20
  import '../icon/icon__svg.js';
22
- import 'core-js/modules/es.string.replace.js';
23
21
  import '../global/memoize.js';
24
22
  import '../loader-inline/loader-inline.js';
25
23
  import '../global/data-tests.js';
@@ -1,9 +1,7 @@
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';
5
4
  import '../global/url.js';
6
- import 'core-js/modules/es.string.replace.js';
7
5
 
8
6
  class TokenValidationError extends ExtendableError {
9
7
  constructor(message, cause) {
@@ -1,6 +1,5 @@
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';
4
3
  import 'es6-error';
5
4
  import '../global/url.js';
6
5
 
@@ -55,7 +54,7 @@ class WindowFlow {
55
54
  const screenHalves = 2;
56
55
  const top = (window.screen.height - height - NAVBAR_HEIGHT) / screenHalves;
57
56
  const left = (window.screen.width - width) / screenHalves;
58
- return window.open(url, 'HubLoginWindow', "height=".concat(height, ", width=").concat(width, ", left=").concat(left, ", top=").concat(top));
57
+ return window.open(url, 'HubLoginWindow', `height=${height}, width=${width}, left=${left}, top=${top}`);
59
58
  }
60
59
  /**
61
60
  * Initiates authorization in window
@@ -1,6 +1,4 @@
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';
4
2
  import React, { Component } from 'react';
5
3
  import PropTypes from 'prop-types';
6
4
  import classNames from 'classnames';
@@ -117,7 +115,7 @@ class AuthDialog extends Component {
117
115
  }, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("div", {
118
116
  className: modules_ae521deb.content
119
117
  }, serviceImage && /*#__PURE__*/React.createElement("img", {
120
- alt: "".concat(serviceName, " logo"),
118
+ alt: `${serviceName} logo`,
121
119
  className: modules_ae521deb.logo,
122
120
  src: serviceImage
123
121
  }), /*#__PURE__*/React.createElement(H2, {
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import { render } from '../global/react-render-adapter.js';
3
3
  import AuthDialog from '../auth-dialog/auth-dialog.js';
4
- import 'core-js/modules/web.dom-collections.iterator.js';
5
4
  import 'react-dom';
6
5
  import '../_helpers/_rollupPluginBabelHelpers.js';
7
- import 'core-js/modules/es.string.replace.js';
8
6
  import 'prop-types';
9
7
  import 'classnames';
10
8
  import '../island/island.js';
@@ -1,4 +1,3 @@
1
- import 'core-js/modules/es.string.replace.js';
2
1
  import angular from 'angular';
3
2
  import '../auth/auth.js';
4
3
  import Auth from '../auth/auth__core.js';
@@ -11,7 +10,6 @@ import '../auth/down-notification.js';
11
10
  import 'react';
12
11
  import 'prop-types';
13
12
  import '../alert-service/alert-service.js';
14
- import 'core-js/modules/web.dom-collections.iterator.js';
15
13
  import '../global/react-render-adapter.js';
16
14
  import 'react-dom';
17
15
  import '../global/get-uid.js';
@@ -119,7 +117,7 @@ angularModule.provider('auth', ["$httpProvider", function provider($httpProvider
119
117
 
120
118
  return authInstance.promise.then(() => authInstance.auth.requestToken()).then(accessToken => {
121
119
  if (accessToken) {
122
- config.headers.Authorization = "Bearer ".concat(accessToken);
120
+ config.headers.Authorization = `Bearer ${accessToken}`;
123
121
  }
124
122
 
125
123
  return config;
@@ -1,7 +1,6 @@
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';
5
4
  import 'react';
6
5
  import 'prop-types';
7
6
  import '../global/dom.js';
@@ -1,4 +1,26 @@
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,".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"));
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
+ `)}`;
3
25
 
4
26
  export { avatarDataUri };
@@ -1,12 +1,10 @@
1
1
  import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/web.dom-collections.iterator.js';
3
2
  import React, { PureComponent } from 'react';
4
3
  import PropTypes from 'prop-types';
5
4
  import classNames from 'classnames';
6
5
  import { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
7
6
  import { getPixelRatio } from '../global/dom.js';
8
7
  import FallbackAvatar from './fallback-avatar.js';
9
- import 'core-js/modules/es.string.replace.js';
10
8
  import '../global/get-uid.js';
11
9
 
12
10
  var modules_61ca8c75 = {"avatar":"avatar_rui_a03e","subavatar":"subavatar_rui_a03e","empty":"empty_rui_a03e"};
@@ -62,8 +60,8 @@ class Avatar extends PureComponent {
62
60
  skipParams,
63
61
  ...restProps
64
62
  } = this.props;
65
- const sizeString = "".concat(size, "px");
66
- const subavatarSizeString = "".concat(subavatarSize, "px");
63
+ const sizeString = `${size}px`;
64
+ const subavatarSizeString = `${subavatarSize}px`;
67
65
  const borderRadius = size <= Size.Size18 ? 'var(--ring-border-radius-small)' : 'var(--ring-border-radius)';
68
66
  const styleObj = {
69
67
  borderRadius: round ? '50%' : borderRadius,