@jetbrains/ring-ui 6.0.10 → 6.0.11
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const isArray: (arg: unknown) => arg is readonly unknown[];
|
|
2
|
-
export declare const isTruthy: <T>(arg:
|
|
2
|
+
export declare const isTruthy: <T>(arg: T | false | '' | 0 | null | undefined) => arg is T;
|
|
@@ -53,9 +53,9 @@ export default class HTTP implements Partial<HTTPAuth> {
|
|
|
53
53
|
* Usage: const {promise, abort} = http.abortify(http.get<{id: string}>)('http://test.com');
|
|
54
54
|
* @param method
|
|
55
55
|
*/
|
|
56
|
-
abortify: <T>(method: Method<T>) => (url: string, params?: RequestParams<boolean> | undefined) => {
|
|
56
|
+
abortify: <T>(method: Method<T>) => (url: string, params?: RequestParams<boolean> | undefined) => ({
|
|
57
57
|
promise: Promise<T>;
|
|
58
58
|
abort: () => void;
|
|
59
|
-
};
|
|
59
|
+
});
|
|
60
60
|
}
|
|
61
61
|
export {};
|
|
@@ -224,8 +224,8 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
224
224
|
_getResetOption(): SelectItem<T> | null;
|
|
225
225
|
_prependResetOption(shownData: SelectItem<T>[]): SelectItem<T>[];
|
|
226
226
|
private _renderPopup;
|
|
227
|
-
_showPopup()
|
|
228
|
-
_hidePopup(tryFocusAnchor?: boolean)
|
|
227
|
+
_showPopup: () => void;
|
|
228
|
+
_hidePopup: (tryFocusAnchor?: boolean) => void;
|
|
229
229
|
addHandler: () => void;
|
|
230
230
|
getToolbar(): React.JSX.Element | null;
|
|
231
231
|
getTopbar(): React.ReactNode;
|
|
@@ -447,7 +447,7 @@ export default class Select extends Component {
|
|
|
447
447
|
}}
|
|
448
448
|
</I18nContext.Consumer>);
|
|
449
449
|
}
|
|
450
|
-
_showPopup() {
|
|
450
|
+
_showPopup = () => {
|
|
451
451
|
if (!this.node) {
|
|
452
452
|
return;
|
|
453
453
|
}
|
|
@@ -456,8 +456,8 @@ export default class Select extends Component {
|
|
|
456
456
|
showPopup: true,
|
|
457
457
|
shownData
|
|
458
458
|
});
|
|
459
|
-
}
|
|
460
|
-
_hidePopup(tryFocusAnchor) {
|
|
459
|
+
};
|
|
460
|
+
_hidePopup = (tryFocusAnchor) => {
|
|
461
461
|
if (this.node && this.state.showPopup) {
|
|
462
462
|
this.setState(prevState => ({
|
|
463
463
|
showPopup: false,
|
|
@@ -467,7 +467,7 @@ export default class Select extends Component {
|
|
|
467
467
|
this.focus();
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
}
|
|
470
|
+
};
|
|
471
471
|
addHandler = () => {
|
|
472
472
|
const value = this.filterValue();
|
|
473
473
|
this._hidePopup();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.11",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -108,16 +108,16 @@
|
|
|
108
108
|
"@types/chai-enzyme": "^0.6.13",
|
|
109
109
|
"@types/enzyme": "^3.10.18",
|
|
110
110
|
"@types/markdown-it": "^13.0.7",
|
|
111
|
-
"@types/react": "^18.2.
|
|
112
|
-
"@types/react-dom": "^18.2.
|
|
111
|
+
"@types/react": "^18.2.64",
|
|
112
|
+
"@types/react-dom": "^18.2.21",
|
|
113
113
|
"@types/sinon": "^17.0.3",
|
|
114
114
|
"@types/sinon-chai": "^3.2.12",
|
|
115
|
-
"@typescript-eslint/eslint-plugin": "^7.1.
|
|
116
|
-
"@typescript-eslint/parser": "^7.1.
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
116
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
117
117
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
118
118
|
"acorn": "^8.11.3",
|
|
119
119
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
120
|
-
"caniuse-lite": "^1.0.
|
|
120
|
+
"caniuse-lite": "^1.0.30001597",
|
|
121
121
|
"chai": "^5.1.0",
|
|
122
122
|
"chai-as-promised": "^7.1.1",
|
|
123
123
|
"chai-dom": "^1.10.0",
|
|
@@ -154,14 +154,14 @@
|
|
|
154
154
|
"mocha": "^10.3.0",
|
|
155
155
|
"pinst": "^3.0.0",
|
|
156
156
|
"prettier": "^3.2.5",
|
|
157
|
-
"puppeteer": "^22.
|
|
157
|
+
"puppeteer": "^22.4.1",
|
|
158
158
|
"raw-loader": "^4.0.2",
|
|
159
159
|
"react": "^18.2.0",
|
|
160
160
|
"react-dom": "^18.2.0",
|
|
161
161
|
"react-test-renderer": "^18.2.0",
|
|
162
162
|
"regenerator-runtime": "^0.14.1",
|
|
163
163
|
"rimraf": "^5.0.5",
|
|
164
|
-
"rollup": "^4.12.
|
|
164
|
+
"rollup": "^4.12.1",
|
|
165
165
|
"rollup-plugin-clear": "^2.0.7",
|
|
166
166
|
"rollup-plugin-styles": "^4.0.0",
|
|
167
167
|
"sinon": "^17.0.1",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"svg-inline-loader": "^0.8.2",
|
|
174
174
|
"teamcity-service-messages": "^0.1.14",
|
|
175
175
|
"terser-webpack-plugin": "^5.3.10",
|
|
176
|
-
"typescript": "~5.
|
|
176
|
+
"typescript": "~5.4.2",
|
|
177
177
|
"wallaby-webpack": "^3.9.16",
|
|
178
178
|
"webpack": "^5.90.3",
|
|
179
179
|
"webpack-cli": "^5.1.4",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"@babel/core": "^7.24.0",
|
|
203
203
|
"@babel/preset-typescript": "^7.23.3",
|
|
204
204
|
"@jetbrains/babel-preset-jetbrains": "^2.3.2",
|
|
205
|
-
"@jetbrains/icons": "^4.0
|
|
205
|
+
"@jetbrains/icons": "^4.1.0",
|
|
206
206
|
"@jetbrains/logos": "^2.2.25",
|
|
207
207
|
"@jetbrains/postcss-require-hover": "^0.1.2",
|
|
208
208
|
"@types/combokeys": "^2.4.9",
|
|
@@ -236,8 +236,8 @@
|
|
|
236
236
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
237
237
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
238
238
|
"postcss-loader": "^8.1.1",
|
|
239
|
-
"postcss-modules-values-replace": "^4.
|
|
240
|
-
"postcss-preset-env": "^9.
|
|
239
|
+
"postcss-modules-values-replace": "^4.2.0",
|
|
240
|
+
"postcss-preset-env": "^9.5.0",
|
|
241
241
|
"prop-types": "^15.8.1",
|
|
242
242
|
"react-movable": "^3.2.0",
|
|
243
243
|
"react-virtualized": "^9.22.5",
|