@jetbrains/ring-ui 5.0.116 → 5.0.118

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.
@@ -14,6 +14,9 @@
14
14
  flex-direction: column;
15
15
 
16
16
  pointer-events: none;
17
+
18
+ font-family: var(--ring-font-family);
19
+ font-size: var(--ring-font-size);
17
20
  }
18
21
 
19
22
  .alertInContainer {
@@ -98,10 +98,11 @@ export default function FallbackAvatar({ username, size, round }) {
98
98
  </defs>
99
99
  <g>
100
100
  <rect fill={`url(#${gradientId})`} x="0" y="0" width={sizeKey} height={sizeKey} rx={radius} ry={radius}/>
101
- <text x={sizes.text.x} y={sizes.text.y} fontFamily="Arial, Helvetica, sans-serif" fontSize={sizes.fontSize} letterSpacing={sizes.letterSpacing} fill="#FFFFFF" textAnchor={sizes.textAnchor}>
101
+ <text x={sizes.text.x} y={sizes.text.y} fontFamily="Arial, Helvetica, sans-serif" fontSize={sizes.fontSize} letterSpacing={sizes.letterSpacing} fill="#FFFFFF" textAnchor={sizes.textAnchor} cursor="default">
102
102
  <tspan>{extractLetters(username)}</tspan>
103
103
  {sizes.underscore && <tspan x={sizes.underscore.x} y={sizes.underscore.y}>{'_'}</tspan>}
104
104
  </text>
105
+ <title>{username}</title>
105
106
  </g>
106
107
  </svg>);
107
108
  }
@@ -314,7 +314,7 @@ export default class QueryAssist extends Component {
314
314
  this.immediateState.selection.startOffset !== undefined) {
315
315
  this.caret?.setPosition(this.immediateState.selection);
316
316
  }
317
- else if (!this.immediateState.selection || params.forceSetCaret) {
317
+ else if (params.forceSetCaret) {
318
318
  this.caret?.setPosition(-1);
319
319
  }
320
320
  }
@@ -119,11 +119,12 @@ function FallbackAvatar(_ref) {
119
119
  fontSize: sizes.fontSize,
120
120
  letterSpacing: sizes.letterSpacing,
121
121
  fill: "#FFFFFF",
122
- textAnchor: sizes.textAnchor
122
+ textAnchor: sizes.textAnchor,
123
+ cursor: "default"
123
124
  }, /*#__PURE__*/React.createElement("tspan", null, extractLetters(username)), sizes.underscore && /*#__PURE__*/React.createElement("tspan", {
124
125
  x: sizes.underscore.x,
125
126
  y: sizes.underscore.y
126
- }, '_'))));
127
+ }, '_')), /*#__PURE__*/React.createElement("title", null, username)));
127
128
  }
128
129
  FallbackAvatar.propTypes = {
129
130
  username: PropTypes.string.isRequired,
@@ -5,11 +5,11 @@ const MAJOR_VERSION_INDEX = 0;
5
5
  /**
6
6
  * SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
7
7
  */
8
- if (!["and_chr 110", "chrome 109", "chrome 108", "edge 109", "edge 108", "firefox 108", "ios_saf 16.2", "ios_saf 16.1", "ios_saf 16.0", "ios_saf 15.6", "op_mini all", "safari 15.6", "samsung 19.0"]) {
8
+ if (!["and_chr 110", "chrome 110", "chrome 109", "edge 110", "edge 109", "firefox 109", "ios_saf 16.3", "ios_saf 16.2", "ios_saf 16.1", "ios_saf 16.0", "ios_saf 15.6", "samsung 19.0"]) {
9
9
  // eslint-disable-next-line no-console
10
10
  console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
11
11
  }
12
- const SUPPORTED = ["and_chr 110", "chrome 109", "chrome 108", "edge 109", "edge 108", "firefox 108", "ios_saf 16.2", "ios_saf 16.1", "ios_saf 16.0", "ios_saf 15.6", "op_mini all", "safari 15.6", "samsung 19.0"] || [];
12
+ const SUPPORTED = ["and_chr 110", "chrome 110", "chrome 109", "edge 110", "edge 109", "firefox 109", "ios_saf 16.3", "ios_saf 16.2", "ios_saf 16.1", "ios_saf 16.0", "ios_saf 15.6", "samsung 19.0"] || [];
13
13
  const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
14
14
  const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
15
15
  var _item$match;
@@ -193,7 +193,7 @@ class QueryAssist extends Component {
193
193
  _this.scrollInput();
194
194
  } else if (_this.immediateState.selection && typeof _this.immediateState.selection === 'object' && _this.immediateState.selection.startOffset !== undefined) {
195
195
  _this.caret?.setPosition(_this.immediateState.selection);
196
- } else if (!_this.immediateState.selection || params.forceSetCaret) {
196
+ } else if (params.forceSetCaret) {
197
197
  _this.caret?.setPosition(-1);
198
198
  }
199
199
  }