@jetbrains/ring-ui 7.0.86 → 7.0.87

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.
@@ -13,7 +13,7 @@ export interface QueryAssistSuggestion {
13
13
  completionStart?: number;
14
14
  completionEnd?: number;
15
15
  }
16
- export interface SuggestionItem {
16
+ export interface SuggestionItem extends ListDataItem {
17
17
  data?: QueryAssistSuggestion;
18
18
  }
19
19
  export default class QueryAssistSuggestions {
@@ -1,7 +1,7 @@
1
1
  import { Component, type ComponentRef, type ReactNode, type SyntheticEvent } from 'react';
2
2
  import * as React from 'react';
3
3
  import Caret, { type Position } from '../caret/caret';
4
- import PopupMenu from '../popup-menu/popup-menu';
4
+ import PopupMenu, { type PopupMenuAttrs } from '../popup-menu/popup-menu';
5
5
  import Button from '../button/button';
6
6
  import Icon from '../icon/icon';
7
7
  import { Size } from '../input/input';
@@ -134,6 +134,7 @@ export interface QueryAssistProps {
134
134
  'data-test'?: string | null | undefined;
135
135
  huge?: boolean | null | undefined;
136
136
  size: Size;
137
+ menuProps?: PopupMenuAttrs | null | undefined;
137
138
  }
138
139
  export interface StyleRange {
139
140
  style: string;
@@ -735,7 +735,7 @@ export default class QueryAssist extends Component {
735
735
  {actions}
736
736
  </div>) : null}
737
737
 
738
- <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} shortcutsMap={this.listShortcutsMap} 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)}/>
738
+ <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, PopupMenu.PopupProps.Directions.BOTTOM_LEFT]} data={useCustomItemRender ? this.state.suggestions : this.renderSuggestions()} data-test='ring-query-assist-popup' hint={this.props.hint} shortcutsMap={this.listShortcutsMap} 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)} {...this.props.menuProps}/>
739
739
 
740
740
  {glass && huge && (<div className={styles.rightSearchButton} data-test='query-assist-search-button'>
741
741
  <Icon glyph={searchIcon} className={classNames(styles.rightSearchIcon, this.props.searchButtonClassName)} title={translations?.searchTitle ?? translate('searchTitle')} onClick={this.handleApply} ref={this.glassRef} data-test='query-assist-search-icon'/>
@@ -39,7 +39,10 @@
39
39
 
40
40
  position: relative;
41
41
 
42
- display: inline-block;
42
+ /* Use inline-flex (not inline-block) to avoid Safari tab title alignment/layout bugs */
43
+
44
+ display: inline-flex;
45
+ align-items: center;
43
46
 
44
47
  padding: 0;
45
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "7.0.86",
3
+ "version": "7.0.87",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"
@@ -93,7 +93,7 @@
93
93
  "@babel/eslint-parser": "^7.28.5",
94
94
  "@csstools/css-parser-algorithms": "^3.0.4",
95
95
  "@csstools/stylelint-no-at-nest-rule": "^4.0.0",
96
- "@eslint/compat": "^2.0.0",
96
+ "@eslint/compat": "^2.0.1",
97
97
  "@eslint/eslintrc": "^3.3.3",
98
98
  "@eslint/js": "^9.39.2",
99
99
  "@figma/code-connect": "^1.3.12",
@@ -118,14 +118,14 @@
118
118
  "@types/chai-as-promised": "^8.0.2",
119
119
  "@types/chai-dom": "1.11.3",
120
120
  "@types/markdown-it": "^14.1.2",
121
- "@types/react": "^19.2.7",
121
+ "@types/react": "^19.2.8",
122
122
  "@types/react-dom": "^19.2.3",
123
123
  "@types/webpack-env": "^1.18.8",
124
124
  "@vitejs/plugin-react": "^5.1.2",
125
- "@vitest/eslint-plugin": "^1.6.5",
125
+ "@vitest/eslint-plugin": "^1.6.6",
126
126
  "acorn": "^8.15.0",
127
127
  "babel-plugin-require-context-hook": "^1.0.0",
128
- "caniuse-lite": "^1.0.30001762",
128
+ "caniuse-lite": "^1.0.30001763",
129
129
  "chai-as-promised": "^8.0.2",
130
130
  "chai-dom": "^1.12.1",
131
131
  "cheerio": "^1.1.2",
@@ -164,7 +164,7 @@
164
164
  "react-dom": "^19.2.3",
165
165
  "regenerator-runtime": "^0.14.1",
166
166
  "rimraf": "^6.1.2",
167
- "rollup": "^4.54.0",
167
+ "rollup": "^4.55.1",
168
168
  "rollup-plugin-clear": "^2.0.7",
169
169
  "storage-mock": "^2.1.0",
170
170
  "storybook": "10.1.11",
@@ -174,7 +174,7 @@
174
174
  "teamcity-service-messages": "^0.1.14",
175
175
  "terser-webpack-plugin": "^5.3.16",
176
176
  "typescript": "~5.9.3",
177
- "typescript-eslint": "^8.51.0",
177
+ "typescript-eslint": "^8.52.0",
178
178
  "vitest": "^4.0.16",
179
179
  "vitest-teamcity-reporter": "^0.4.1",
180
180
  "webpack": "^5.104.1",
@@ -223,7 +223,7 @@
223
223
  "element-resize-detector": "^1.2.4",
224
224
  "fastdom": "^1.0.12",
225
225
  "file-loader": "^6.2.0",
226
- "focus-trap": "^7.7.1",
226
+ "focus-trap": "^7.8.0",
227
227
  "highlight.js": "^10.7.2",
228
228
  "just-debounce-it": "^3.2.0",
229
229
  "memoize-one": "^6.0.0",
@@ -233,7 +233,7 @@
233
233
  "postcss-font-family-system-ui": "^5.0.0",
234
234
  "postcss-loader": "^8.2.0",
235
235
  "postcss-modules-values-replace": "^4.2.2",
236
- "postcss-preset-env": "^10.6.0",
236
+ "postcss-preset-env": "^10.6.1",
237
237
  "react-compiler-runtime": "^1.0.0",
238
238
  "react-movable": "^3.4.1",
239
239
  "react-virtualized": "^9.22.6",