@jetbrains/ring-ui 7.0.48 → 7.0.50-beta.0

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.
@@ -775,7 +775,7 @@ export default class Auth {
775
775
  this.config.checkBackendIsUp(),
776
776
  ]).catch(err => {
777
777
  if (err instanceof TypeError) {
778
- throw new TypeError('Could not connect to the server due to network error. Please check your connection and try again.');
778
+ throw err;
779
779
  }
780
780
  throw err;
781
781
  });
@@ -41,7 +41,7 @@ export default class AuthResponseParser {
41
41
  getAuthResponseFromURL(): AuthResponse | null;
42
42
  /**
43
43
  * Validates given authResponse.
44
- * If it contains a token - returns the token, if an error is found - throws the error,
44
+ * If it contains a token - mockReturnValue the token, if an error is found - throws the error,
45
45
  * otherwise - null
46
46
  * Always clears the hash part of the URL.
47
47
  *
@@ -43,7 +43,7 @@ export default class AuthResponseParser {
43
43
  }
44
44
  /**
45
45
  * Validates given authResponse.
46
- * If it contains a token - returns the token, if an error is found - throws the error,
46
+ * If it contains a token - mockReturnValue the token, if an error is found - throws the error,
47
47
  * otherwise - null
48
48
  * Always clears the hash part of the URL.
49
49
  *
@@ -34,12 +34,12 @@ export default class TokenValidator {
34
34
  static TokenValidationError: typeof TokenValidationError;
35
35
  /**
36
36
  * Check token validity against all conditions.
37
- * @returns {Promise.<string>}
37
+ * @mockReturnValue {Promise.<string>}
38
38
  */
39
39
  validateTokenLocally(): Promise<string>;
40
40
  /**
41
41
  * Check token validity against all conditions.
42
- * @returns {Promise.<string>}
42
+ * @mockReturnValue {Promise.<string>}
43
43
  */
44
44
  validateToken(): Promise<string>;
45
45
  /**
@@ -42,7 +42,7 @@ export default class TokenValidator {
42
42
  static TokenValidationError = TokenValidationError;
43
43
  /**
44
44
  * Check token validity against all conditions.
45
- * @returns {Promise.<string>}
45
+ * @mockReturnValue {Promise.<string>}
46
46
  */
47
47
  validateTokenLocally() {
48
48
  return this._getValidatedToken([
@@ -53,7 +53,7 @@ export default class TokenValidator {
53
53
  }
54
54
  /**
55
55
  * Check token validity against all conditions.
56
- * @returns {Promise.<string>}
56
+ * @mockReturnValue {Promise.<string>}
57
57
  */
58
58
  validateToken() {
59
59
  return this._getValidatedToken([
@@ -5,7 +5,7 @@ import { HTMLAttributeAnchorTarget, ReactElement } from 'react';
5
5
  /**
6
6
  * Return copyright string
7
7
  * @param year {int}
8
- * @returns {string}
8
+ * @mockReturnValue {string}
9
9
  */
10
10
  export declare function copyright(year: number): string;
11
11
  export interface FooterLinkItem {
@@ -17,7 +17,7 @@ const FooterColumn = memo(function FooterColumn({ position, children }) {
17
17
  /**
18
18
  * Return copyright string
19
19
  * @param year {int}
20
- * @returns {string}
20
+ * @mockReturnValue {string}
21
21
  */
22
22
  export function copyright(year) {
23
23
  const currentYear = new Date().getUTCFullYear();
@@ -77,7 +77,7 @@ export default function getEventKey(nativeEvent) {
77
77
  if (nativeEvent.key) {
78
78
  // Normalize inconsistent values reported by browsers due to
79
79
  // implementations of a working draft specification.
80
- // FireFox implements `key` but returns `MozPrintableKey` for all
80
+ // FireFox implements `key` but mockReturnValue `MozPrintableKey` for all
81
81
  // printable characters (normalized to `Unidentified`), ignore it.
82
82
  const key = normalizeKey[nativeEvent.key] || nativeEvent.key;
83
83
  if (key !== 'Unidentified') {
@@ -63,7 +63,7 @@
63
63
  --ring-pale-control-color: rgb(var(--ring-pale-control-components)); /* #C2D6FC */
64
64
  --ring-popup-border-components: 0, 28, 54;
65
65
  --ring-popup-border-color: var(--ring-line-color);
66
- --ring-popup-shadow-components: rgba(var(--ring-popup-border-components), 0.1);
66
+ --ring-popup-shadow-components: rgba(var(--ring-popup-border-components, 0, 28, 54), 0.1);
67
67
  --ring-popup-shadow-color: rgba(var(--ring-popup-border-components), 0.1);
68
68
  --ring-popup-secondary-shadow-color: rgba(var(--ring-popup-border-components), 0.04);
69
69
  --ring-message-shadow-color: rgba(var(--ring-popup-border-components), 0.3);
@@ -15,7 +15,7 @@ const classMap = {
15
15
  /**
16
16
  * Converts props like "xs=9 xsOffset={2}" to classes "col-xs-9 col-xs-offset-2"
17
17
  * @param {Object} props incoming props
18
- * @returns {Array} result classnames
18
+ * @mockReturnValue {Array} result classnames
19
19
  */
20
20
  function getClassNames(props) {
21
21
  return Object.entries(props)
@@ -18,7 +18,7 @@ const modifierKeys = [
18
18
  /**
19
19
  * Converts xs="middle" to class "middle-xs"
20
20
  * @param {Object} props incoming props
21
- * @returns {Array} result modifier classes
21
+ * @mockReturnValue {Array} result modifier classes
22
22
  */
23
23
  function getModifierClassNames(props) {
24
24
  return modifierKeys.reduce((result, key) => {
@@ -55,7 +55,7 @@ export default class Permissions {
55
55
  * Returns function, which cuts off prefix from server-side permission name
56
56
  *
57
57
  * @param {string} prefix
58
- * @returns {Function}
58
+ * @mockReturnValue {Function}
59
59
  */
60
60
  static getDefaultNamesConverter(prefix: string): (storedName: string) => string;
61
61
  static getPermissionQuery(services?: readonly string[] | null | undefined): string | undefined;
@@ -73,7 +73,7 @@ export default class Permissions {
73
73
  _loadPermissions(): Promise<readonly Permission[] | null | undefined>;
74
74
  /**
75
75
  * Reloads permission cache from server
76
- * @returns {Promise.<Permissions>} promise that is resolved when the permissions are reloaded
76
+ * @mockReturnValue {Promise.<Permissions>} promise that is resolved when the permissions are reloaded
77
77
  */
78
78
  reload(): Promise<PermissionCache>;
79
79
  /**
@@ -57,7 +57,7 @@ export default class Permissions {
57
57
  * Returns function, which cuts off prefix from server-side permission name
58
58
  *
59
59
  * @param {string} prefix
60
- * @returns {Function}
60
+ * @mockReturnValue {Function}
61
61
  */
62
62
  static getDefaultNamesConverter(prefix) {
63
63
  return (storedName) => {
@@ -126,7 +126,7 @@ export default class Permissions {
126
126
  }
127
127
  /**
128
128
  * Reloads permission cache from server
129
- * @returns {Promise.<Permissions>} promise that is resolved when the permissions are reloaded
129
+ * @mockReturnValue {Promise.<Permissions>} promise that is resolved when the permissions are reloaded
130
130
  */
131
131
  reload() {
132
132
  this._resetCache();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "7.0.48",
3
+ "version": "7.0.50-beta.0",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"
@@ -98,13 +98,13 @@
98
98
  "readmeFilename": "README.md",
99
99
  "devDependencies": {
100
100
  "@babel/cli": "^7.27.2",
101
- "@babel/eslint-parser": "^7.27.1",
101
+ "@babel/eslint-parser": "^7.27.5",
102
102
  "@csstools/css-parser-algorithms": "^3.0.4",
103
103
  "@csstools/stylelint-no-at-nest-rule": "^4.0.0",
104
104
  "@eslint/compat": "^1.2.9",
105
105
  "@eslint/eslintrc": "^3.2.0",
106
- "@eslint/js": "^9.25.1",
107
- "@figma/code-connect": "^1.3.2",
106
+ "@eslint/js": "^9.28.0",
107
+ "@figma/code-connect": "^1.3.3",
108
108
  "@jetbrains/eslint-config": "^6.0.5",
109
109
  "@jetbrains/logos": "3.0.0-canary.734b213.0",
110
110
  "@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
@@ -114,18 +114,12 @@
114
114
  "@rollup/plugin-json": "^6.1.0",
115
115
  "@rollup/plugin-node-resolve": "^16.0.1",
116
116
  "@rollup/plugin-replace": "^6.0.2",
117
- "@storybook/addon-a11y": "8.6.14",
118
- "@storybook/addon-docs": "8.6.14",
119
- "@storybook/addon-essentials": "8.6.14",
120
- "@storybook/addon-themes": "^8.6.14",
121
- "@storybook/components": "8.6.14",
117
+ "@storybook/addon-a11y": "9.0.5",
118
+ "@storybook/addon-docs": "^9.0.5",
119
+ "@storybook/addon-themes": "^9.0.5",
122
120
  "@storybook/csf": "^0.1.13",
123
- "@storybook/manager-api": "8.6.14",
124
- "@storybook/preview-api": "8.6.14",
125
- "@storybook/react": "8.6.14",
126
- "@storybook/react-webpack5": "8.6.14",
121
+ "@storybook/react-webpack5": "9.0.5",
127
122
  "@storybook/test-runner": "^0.22.0",
128
- "@storybook/theming": "8.6.14",
129
123
  "@testing-library/dom": "^10.4.0",
130
124
  "@testing-library/react": "^16.3.0",
131
125
  "@testing-library/user-event": "^14.6.1",
@@ -134,35 +128,34 @@
134
128
  "@types/chai-dom": "1.11.3",
135
129
  "@types/eslint__js": "^8.42.3",
136
130
  "@types/markdown-it": "^14.1.2",
137
- "@types/react": "^19.1.5",
138
- "@types/react-dom": "^19.1.5",
139
- "@types/sinon": "^17.0.4",
140
- "@types/sinon-chai": "^4.0.0",
131
+ "@types/react": "^19.1.6",
132
+ "@types/react-dom": "^19.1.6",
141
133
  "@types/webpack-env": "^1.18.8",
142
- "@vitejs/plugin-react": "^4.5.0",
134
+ "@vitejs/plugin-react": "^4.5.1",
143
135
  "@vitest/eslint-plugin": "^1.2.1",
144
136
  "acorn": "^8.14.1",
145
137
  "axe-playwright": "^2.1.0",
146
138
  "babel-plugin-require-context-hook": "^1.0.0",
147
- "caniuse-lite": "^1.0.30001718",
139
+ "caniuse-lite": "^1.0.30001720",
148
140
  "chai": "^5.2.0",
149
141
  "chai-as-promised": "^8.0.1",
150
142
  "chai-dom": "^1.12.1",
151
143
  "cheerio": "^1.0.0",
152
- "chromatic": "^12.0.0",
144
+ "chromatic": "^12.1.0",
153
145
  "core-js": "^3.42.0",
154
146
  "cpy-cli": "^5.0.0",
155
147
  "dotenv-cli": "^8.0.0",
156
- "eslint": "^9.27.0",
148
+ "eslint": "^9.28.0",
157
149
  "eslint-config-prettier": "^10.1.5",
158
150
  "eslint-formatter-jslint-xml": "^8.40.0",
151
+ "eslint-import-resolver-exports": "^1.0.0-beta.5",
159
152
  "eslint-import-resolver-webpack": "^0.13.10",
160
153
  "eslint-plugin-import": "^2.31.0",
161
154
  "eslint-plugin-jsx-a11y": "^6.10.2",
162
- "eslint-plugin-prettier": "^5.4.0",
155
+ "eslint-plugin-prettier": "^5.4.1",
163
156
  "eslint-plugin-react": "^7.37.5",
164
157
  "eslint-plugin-react-hooks": "^5.2.0",
165
- "eslint-plugin-storybook": "^0.12.0",
158
+ "eslint-plugin-storybook": "^9.0.5",
166
159
  "events": "^3.3.0",
167
160
  "glob": "^11.0.2",
168
161
  "globals": "^16.2.0",
@@ -173,7 +166,7 @@
173
166
  "jest": "~29.7.0",
174
167
  "jest-environment-jsdom": "^29.7.0",
175
168
  "jest-teamcity": "^1.12.0",
176
- "lint-staged": "^16.0.0",
169
+ "lint-staged": "^16.1.0",
177
170
  "markdown-it": "^14.1.0",
178
171
  "merge-options": "^3.0.4",
179
172
  "pinst": "^3.0.0",
@@ -185,17 +178,15 @@
185
178
  "rimraf": "^6.0.1",
186
179
  "rollup": "^4.41.1",
187
180
  "rollup-plugin-clear": "^2.0.7",
188
- "sinon": "^20.0.0",
189
- "sinon-chai": "^4.0.0",
190
181
  "storage-mock": "^2.1.0",
191
- "storybook": "8.6.14",
192
- "stylelint": "^16.19.1",
182
+ "storybook": "9.0.5",
183
+ "stylelint": "^16.20.0",
193
184
  "svg-inline-loader": "^0.8.2",
194
185
  "teamcity-service-messages": "^0.1.14",
195
186
  "terser-webpack-plugin": "^5.3.14",
196
187
  "typescript": "~5.8.3",
197
- "typescript-eslint": "^8.32.1",
198
- "vitest": "^3.1.4",
188
+ "typescript-eslint": "^8.33.1",
189
+ "vitest": "^3.2.2",
199
190
  "vitest-teamcity-reporter": "^0.3.1",
200
191
  "wallaby-webpack": "^3.9.16",
201
192
  "webpack": "^5.99.9",
@@ -222,7 +213,7 @@
222
213
  }
223
214
  },
224
215
  "dependencies": {
225
- "@babel/core": "^7.27.1",
216
+ "@babel/core": "^7.27.4",
226
217
  "@babel/preset-typescript": "^7.27.1",
227
218
  "@jetbrains/babel-preset-jetbrains": "^2.4.0",
228
219
  "@jetbrains/icons": "^5.10.0",
@@ -233,7 +224,7 @@
233
224
  "@types/util-deprecate": "^1.0.4",
234
225
  "babel-loader": "10.0.0",
235
226
  "babel-plugin-transform-define": "^2.1.4",
236
- "browserslist": "^4.24.4",
227
+ "browserslist": "^4.25.0",
237
228
  "change-case": "^4.1.1",
238
229
  "classnames": "^2.5.1",
239
230
  "combokeys": "^3.0.1",
@@ -245,17 +236,17 @@
245
236
  "es6-error": "^4.1.1",
246
237
  "fastdom": "^1.0.12",
247
238
  "file-loader": "^6.2.0",
248
- "focus-trap": "^7.6.4",
239
+ "focus-trap": "^7.6.5",
249
240
  "highlight.js": "^10.7.2",
250
241
  "just-debounce-it": "^3.2.0",
251
242
  "memoize-one": "^6.0.0",
252
- "postcss": "^8.5.3",
243
+ "postcss": "^8.5.4",
253
244
  "postcss-calc": "^10.1.1",
254
245
  "postcss-flexbugs-fixes": "^5.0.2",
255
246
  "postcss-font-family-system-ui": "^5.0.0",
256
247
  "postcss-loader": "^8.1.1",
257
- "postcss-modules-values-replace": "^4.2.0",
258
- "postcss-preset-env": "^10.1.6",
248
+ "postcss-modules-values-replace": "^4.2.2",
249
+ "postcss-preset-env": "^10.2.1",
259
250
  "react-movable": "^3.4.1",
260
251
  "react-virtualized": "^9.22.6",
261
252
  "react-waypoint": "^10.3.0",
@@ -274,5 +265,8 @@
274
265
  "bugs": {
275
266
  "url": "https://github.com/JetBrains/ring-ui/issues"
276
267
  },
277
- "homepage": "https://github.com/JetBrains/ring-ui#readme"
268
+ "homepage": "https://github.com/JetBrains/ring-ui#readme",
269
+ "overrides": {
270
+ "storybook": "$storybook"
271
+ }
278
272
  }