@jetbrains/ring-ui 6.0.10 → 6.0.12

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: false | "" | 0 | T | null | undefined) => arg is T;
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(): void;
228
- _hidePopup(tryFocusAnchor?: boolean): void;
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.10",
3
+ "version": "6.0.12",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -78,7 +78,7 @@
78
78
  "devDependencies": {
79
79
  "@babel/cli": "^7.23.9",
80
80
  "@babel/eslint-parser": "^7.23.10",
81
- "@csstools/css-parser-algorithms": "^2.6.0",
81
+ "@csstools/css-parser-algorithms": "^2.6.1",
82
82
  "@csstools/stylelint-no-at-nest-rule": "^2.0.0",
83
83
  "@jetbrains/eslint-config": "^5.4.1",
84
84
  "@jetbrains/stylelint-config": "^4.0.2",
@@ -87,19 +87,19 @@
87
87
  "@rollup/plugin-json": "^6.1.0",
88
88
  "@rollup/plugin-node-resolve": "^15.2.3",
89
89
  "@rollup/plugin-replace": "^5.0.5",
90
- "@storybook/addon-a11y": "7.6.17",
91
- "@storybook/addon-docs": "7.6.17",
90
+ "@storybook/addon-a11y": "8.0.0",
91
+ "@storybook/addon-docs": "8.0.0",
92
92
  "@storybook/addon-essentials": "7.6.17",
93
93
  "@storybook/addon-storyshots": "7.6.17",
94
94
  "@storybook/addon-storyshots-puppeteer": "7.6.17",
95
- "@storybook/addon-storysource": "7.6.17",
95
+ "@storybook/addon-storysource": "8.0.0",
96
96
  "@storybook/addons": "7.6.17",
97
- "@storybook/components": "7.6.17",
97
+ "@storybook/components": "8.0.0",
98
98
  "@storybook/preview-api": "7.6.17",
99
99
  "@storybook/react": "7.6.17",
100
100
  "@storybook/react-webpack5": "7.6.17",
101
- "@storybook/source-loader": "7.6.17",
102
- "@storybook/theming": "7.6.17",
101
+ "@storybook/source-loader": "8.0.0",
102
+ "@storybook/theming": "8.0.0",
103
103
  "@testing-library/react": "^14.2.1",
104
104
  "@testing-library/user-event": "^14.5.2",
105
105
  "@types/chai": "^4.3.12",
@@ -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.61",
112
- "@types/react-dom": "^18.2.19",
111
+ "@types/react": "^18.2.66",
112
+ "@types/react-dom": "^18.2.22",
113
113
  "@types/sinon": "^17.0.3",
114
114
  "@types/sinon-chai": "^3.2.12",
115
- "@typescript-eslint/eslint-plugin": "^7.1.0",
116
- "@typescript-eslint/parser": "^7.1.0",
115
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
116
+ "@typescript-eslint/parser": "^7.2.0",
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.30001593",
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,26 +154,26 @@
154
154
  "mocha": "^10.3.0",
155
155
  "pinst": "^3.0.0",
156
156
  "prettier": "^3.2.5",
157
- "puppeteer": "^22.3.0",
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.0",
164
+ "rollup": "^4.13.0",
165
165
  "rollup-plugin-clear": "^2.0.7",
166
166
  "rollup-plugin-styles": "^4.0.0",
167
167
  "sinon": "^17.0.1",
168
168
  "sinon-chai": "^3.7.0",
169
169
  "storage-mock": "^2.1.0",
170
- "storybook": "7.6.17",
170
+ "storybook": "8.0.0",
171
171
  "storybook-addon-themes": "^6.1.0",
172
172
  "stylelint": "^16.2.1",
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.3.3",
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,8 +202,8 @@
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.1",
206
- "@jetbrains/logos": "^2.2.25",
205
+ "@jetbrains/icons": "^4.1.0",
206
+ "@jetbrains/logos": "^2.2.26",
207
207
  "@jetbrains/postcss-require-hover": "^0.1.2",
208
208
  "@types/combokeys": "^2.4.9",
209
209
  "@types/deep-equal": "^1.0.4",
@@ -220,7 +220,7 @@
220
220
  "combokeys": "^3.0.1",
221
221
  "css-loader": "^6.10.0",
222
222
  "csstype": "^3.1.3",
223
- "date-fns": "^3.3.1",
223
+ "date-fns": "^3.5.0",
224
224
  "deep-equal": "^2.2.3",
225
225
  "element-resize-detector": "^1.2.4",
226
226
  "es6-error": "^4.1.1",
@@ -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.1.0",
240
- "postcss-preset-env": "^9.4.0",
239
+ "postcss-modules-values-replace": "^4.2.0",
240
+ "postcss-preset-env": "^9.5.1",
241
241
  "prop-types": "^15.8.1",
242
242
  "react-movable": "^3.2.0",
243
243
  "react-virtualized": "^9.22.5",