@jetbrains/ring-ui 7.0.49 → 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.
- package/components/auth/auth__core.js +1 -1
- package/components/auth/response-parser.d.ts +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/token-validator.d.ts +2 -2
- package/components/auth/token-validator.js +2 -2
- package/components/footer/footer.d.ts +1 -1
- package/components/footer/footer.js +1 -1
- package/components/global/get-event-key.js +1 -1
- package/components/global/variables.css +1 -1
- package/components/grid/col.js +1 -1
- package/components/grid/row.js +1 -1
- package/components/permissions/permissions.d.ts +2 -2
- package/components/permissions/permissions.js +2 -2
- package/package.json +13 -13
|
@@ -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
|
|
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 -
|
|
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 -
|
|
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
|
-
* @
|
|
37
|
+
* @mockReturnValue {Promise.<string>}
|
|
38
38
|
*/
|
|
39
39
|
validateTokenLocally(): Promise<string>;
|
|
40
40
|
/**
|
|
41
41
|
* Check token validity against all conditions.
|
|
42
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
|
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);
|
package/components/grid/col.js
CHANGED
|
@@ -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
|
-
* @
|
|
18
|
+
* @mockReturnValue {Array} result classnames
|
|
19
19
|
*/
|
|
20
20
|
function getClassNames(props) {
|
|
21
21
|
return Object.entries(props)
|
package/components/grid/row.js
CHANGED
|
@@ -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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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
|
-
* @
|
|
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.
|
|
3
|
+
"version": "7.0.50-beta.0",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"readmeFilename": "README.md",
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@babel/cli": "^7.27.2",
|
|
101
|
-
"@babel/eslint-parser": "^7.27.
|
|
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",
|
|
@@ -114,11 +114,11 @@
|
|
|
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": "9.0.
|
|
118
|
-
"@storybook/addon-docs": "^9.0.
|
|
119
|
-
"@storybook/addon-themes": "^9.0.
|
|
117
|
+
"@storybook/addon-a11y": "9.0.5",
|
|
118
|
+
"@storybook/addon-docs": "^9.0.5",
|
|
119
|
+
"@storybook/addon-themes": "^9.0.5",
|
|
120
120
|
"@storybook/csf": "^0.1.13",
|
|
121
|
-
"@storybook/react-webpack5": "9.0.
|
|
121
|
+
"@storybook/react-webpack5": "9.0.5",
|
|
122
122
|
"@storybook/test-runner": "^0.22.0",
|
|
123
123
|
"@testing-library/dom": "^10.4.0",
|
|
124
124
|
"@testing-library/react": "^16.3.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@types/eslint__js": "^8.42.3",
|
|
130
130
|
"@types/markdown-it": "^14.1.2",
|
|
131
131
|
"@types/react": "^19.1.6",
|
|
132
|
-
"@types/react-dom": "^19.1.
|
|
132
|
+
"@types/react-dom": "^19.1.6",
|
|
133
133
|
"@types/webpack-env": "^1.18.8",
|
|
134
134
|
"@vitejs/plugin-react": "^4.5.1",
|
|
135
135
|
"@vitest/eslint-plugin": "^1.2.1",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"chai-as-promised": "^8.0.1",
|
|
142
142
|
"chai-dom": "^1.12.1",
|
|
143
143
|
"cheerio": "^1.0.0",
|
|
144
|
-
"chromatic": "^12.
|
|
144
|
+
"chromatic": "^12.1.0",
|
|
145
145
|
"core-js": "^3.42.0",
|
|
146
146
|
"cpy-cli": "^5.0.0",
|
|
147
147
|
"dotenv-cli": "^8.0.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"eslint-plugin-prettier": "^5.4.1",
|
|
156
156
|
"eslint-plugin-react": "^7.37.5",
|
|
157
157
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
158
|
-
"eslint-plugin-storybook": "^9.0.
|
|
158
|
+
"eslint-plugin-storybook": "^9.0.5",
|
|
159
159
|
"events": "^3.3.0",
|
|
160
160
|
"glob": "^11.0.2",
|
|
161
161
|
"globals": "^16.2.0",
|
|
@@ -179,14 +179,14 @@
|
|
|
179
179
|
"rollup": "^4.41.1",
|
|
180
180
|
"rollup-plugin-clear": "^2.0.7",
|
|
181
181
|
"storage-mock": "^2.1.0",
|
|
182
|
-
"storybook": "9.0.
|
|
182
|
+
"storybook": "9.0.5",
|
|
183
183
|
"stylelint": "^16.20.0",
|
|
184
184
|
"svg-inline-loader": "^0.8.2",
|
|
185
185
|
"teamcity-service-messages": "^0.1.14",
|
|
186
186
|
"terser-webpack-plugin": "^5.3.14",
|
|
187
187
|
"typescript": "~5.8.3",
|
|
188
188
|
"typescript-eslint": "^8.33.1",
|
|
189
|
-
"vitest": "^3.2.
|
|
189
|
+
"vitest": "^3.2.2",
|
|
190
190
|
"vitest-teamcity-reporter": "^0.3.1",
|
|
191
191
|
"wallaby-webpack": "^3.9.16",
|
|
192
192
|
"webpack": "^5.99.9",
|
|
@@ -245,8 +245,8 @@
|
|
|
245
245
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
246
246
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
247
247
|
"postcss-loader": "^8.1.1",
|
|
248
|
-
"postcss-modules-values-replace": "^4.2.
|
|
249
|
-
"postcss-preset-env": "^10.2.
|
|
248
|
+
"postcss-modules-values-replace": "^4.2.2",
|
|
249
|
+
"postcss-preset-env": "^10.2.1",
|
|
250
250
|
"react-movable": "^3.4.1",
|
|
251
251
|
"react-virtualized": "^9.22.6",
|
|
252
252
|
"react-waypoint": "^10.3.0",
|