@jetbrains/ring-ui 7.0.66 → 7.0.68
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/analytics/analytics-custom-plugin.js +1 -1
- package/components/auth/auth-core.js +1 -1
- package/components/auth/window-flow.js +2 -4
- package/components/data-list/data-list.js +1 -1
- package/components/date-picker/date-picker.js +2 -4
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +2 -2
- package/components/dialog/dialog.js +1 -1
- package/components/loader/loader.css +149 -0
- package/components/loader/loader.d.ts +8 -0
- package/components/loader/loader.js +9 -3
- package/components/pager/pager.css +3 -2
- package/components/permissions/permissions-cache.js +1 -1
- package/components/popup/position-css.js +1 -1
- package/components/popup/position.js +4 -4
- package/components/query-assist/query-assist.js +1 -1
- package/components/radio/radio-item.js +1 -1
- package/components/slider/slider.js +1 -1
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tags-input/tags-input.js +2 -1
- package/components/user-agreement/service.js +1 -1
- package/package.json +39 -33
|
@@ -51,7 +51,7 @@ export default class AnalyticsCustomPlugin {
|
|
|
51
51
|
}
|
|
52
52
|
_addDataToFlushingPack(sendingData) {
|
|
53
53
|
this._data.push(sendingData);
|
|
54
|
-
if (this._flushMaxPackSize && this._data.length >= this._flushMaxPackSize) {
|
|
54
|
+
if (this._flushMaxPackSize !== undefined && this._data.length >= this._flushMaxPackSize) {
|
|
55
55
|
this._flush?.();
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -745,7 +745,7 @@ class Auth {
|
|
|
745
745
|
const scopes = scope ? scope.split(' ') : newState.scopes || defaultScope || [];
|
|
746
746
|
const effectiveExpiresIn = expiresIn ? parseInt(expiresIn, 10) : defaultExpiresIn;
|
|
747
747
|
const expires = TokenValidator._epoch() + effectiveExpiresIn;
|
|
748
|
-
if (accessToken) {
|
|
748
|
+
if (accessToken !== undefined) {
|
|
749
749
|
await this._storage?.saveToken({ accessToken, scopes, expires, lifeTime: effectiveExpiresIn });
|
|
750
750
|
}
|
|
751
751
|
return newState;
|
|
@@ -58,9 +58,7 @@ export default class WindowFlow {
|
|
|
58
58
|
reject(new AuthResponseParser.AuthError(state));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
if (this._loginWindow
|
|
62
|
-
this._loginWindow === undefined ||
|
|
63
|
-
(this._loginWindow && this._loginWindow.closed)) {
|
|
61
|
+
if (!this._loginWindow || (this._loginWindow && this._loginWindow.closed)) {
|
|
64
62
|
this._loginWindow = this._openWindow(authRequest.url);
|
|
65
63
|
}
|
|
66
64
|
else if (this._loginWindow) {
|
|
@@ -82,7 +80,7 @@ export default class WindowFlow {
|
|
|
82
80
|
clearTimeout(this._timeoutId);
|
|
83
81
|
};
|
|
84
82
|
stop() {
|
|
85
|
-
if (this._loginWindow
|
|
83
|
+
if (this._loginWindow) {
|
|
86
84
|
this._loginWindow.close();
|
|
87
85
|
}
|
|
88
86
|
if (this.reject) {
|
|
@@ -45,7 +45,7 @@ class DataList extends PureComponent {
|
|
|
45
45
|
onEqualPress = () => {
|
|
46
46
|
const { selection, itemFormatter } = this.props;
|
|
47
47
|
const focused = selection.getFocused();
|
|
48
|
-
if (
|
|
48
|
+
if (focused === null || focused === undefined) {
|
|
49
49
|
throw new Error('No focused item');
|
|
50
50
|
}
|
|
51
51
|
const item = itemFormatter(focused);
|
|
@@ -69,9 +69,7 @@ export default class DatePicker extends PureComponent {
|
|
|
69
69
|
static contextType = I18nContext;
|
|
70
70
|
handleChange = (change) => {
|
|
71
71
|
const { onChange, withTime, applyTimeInput } = this.props;
|
|
72
|
-
const adjustedChange = withTime && !(change instanceof Date) && change?.date
|
|
73
|
-
? applyTimeInput(change.date, change.time)
|
|
74
|
-
: change;
|
|
72
|
+
const adjustedChange = withTime && !(change instanceof Date) && change?.date ? applyTimeInput(change.date, change.time) : change;
|
|
75
73
|
onChange(adjustedChange);
|
|
76
74
|
};
|
|
77
75
|
clear = () => {
|
|
@@ -102,7 +100,7 @@ export default class DatePicker extends PureComponent {
|
|
|
102
100
|
formatTime() {
|
|
103
101
|
const { displayTimeFormat, locale } = this.props;
|
|
104
102
|
const date = this.parse(this.props.date);
|
|
105
|
-
if (date
|
|
103
|
+
if (date) {
|
|
106
104
|
return displayTimeFormat(date, locale);
|
|
107
105
|
}
|
|
108
106
|
return null;
|
|
@@ -11,7 +11,7 @@ export default class Day extends Component<DayProps> {
|
|
|
11
11
|
isDay: (date: Date) => boolean;
|
|
12
12
|
is: (name: "date" | "from" | "to" | "activeDate") => boolean;
|
|
13
13
|
inRange: (range: [Date, Date] | null) => boolean | null;
|
|
14
|
-
isDisabled: (date: Date) => boolean
|
|
14
|
+
isDisabled: (date: Date) => boolean;
|
|
15
15
|
parse(text: string | null | undefined): Date | null;
|
|
16
16
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
}
|
|
@@ -36,7 +36,7 @@ export default class Day extends Component {
|
|
|
36
36
|
isDisabled = (date) => {
|
|
37
37
|
const min = this.parse(this.props.minDate);
|
|
38
38
|
const max = this.parse(this.props.maxDate);
|
|
39
|
-
return (min && isBefore(startOfDay(date), startOfDay(min))) || (max && isAfter(startOfDay(date), startOfDay(max)));
|
|
39
|
+
return ((!!min && isBefore(startOfDay(date), startOfDay(min))) || (!!max && isAfter(startOfDay(date), startOfDay(max))));
|
|
40
40
|
};
|
|
41
41
|
parse(text) {
|
|
42
42
|
return this.props.parseDateInput(text);
|
|
@@ -49,7 +49,7 @@ export default class Day extends Component {
|
|
|
49
49
|
return range && [range[0], addDays(range[1], 1)];
|
|
50
50
|
}
|
|
51
51
|
const spreadRange = makeSpreadRange(currentRange);
|
|
52
|
-
const disabled =
|
|
52
|
+
const disabled = this.isDisabled(day);
|
|
53
53
|
const activeSpreadRange = makeSpreadRange(activeRange);
|
|
54
54
|
return (
|
|
55
55
|
// TODO make keyboard navigation actually work
|
|
@@ -131,7 +131,7 @@ export default class Dialog extends PureComponent {
|
|
|
131
131
|
if (portalTarget instanceof HTMLElement) {
|
|
132
132
|
targetElement = portalTarget;
|
|
133
133
|
}
|
|
134
|
-
else if (contextTarget) {
|
|
134
|
+
else if (contextTarget !== undefined) {
|
|
135
135
|
const container = getPopupContainer(contextTarget);
|
|
136
136
|
if (container) {
|
|
137
137
|
targetElement = container;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
@import '../global/variables.css';
|
|
2
2
|
|
|
3
|
+
/* stylelint-disable color-no-hex */
|
|
4
|
+
:root {
|
|
5
|
+
--ring-loader-color-1: #3bea62;
|
|
6
|
+
--ring-loader-color-2: #6b57ff;
|
|
7
|
+
--ring-loader-color-3: #07c3f2;
|
|
8
|
+
}
|
|
9
|
+
/* stylelint-enable */
|
|
10
|
+
|
|
3
11
|
@keyframes rotation-keyframes {
|
|
4
12
|
100% {
|
|
5
13
|
transform: rotate(360deg);
|
|
@@ -14,6 +22,147 @@
|
|
|
14
22
|
pointer-events: none;
|
|
15
23
|
}
|
|
16
24
|
|
|
25
|
+
.squares {
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
width: 60px;
|
|
29
|
+
height: 60px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@keyframes square-animation-main {
|
|
33
|
+
0% {
|
|
34
|
+
transform: rotate(0deg);
|
|
35
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0, 1);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
37.5% {
|
|
39
|
+
transform: rotate(182deg);
|
|
40
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0.657, 1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
50% {
|
|
44
|
+
transform: rotate(180deg);
|
|
45
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0, 1);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
87.5% {
|
|
49
|
+
transform: rotate(362deg);
|
|
50
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0.657, 1);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
100% {
|
|
54
|
+
transform: rotate(360deg);
|
|
55
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0, 1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes square-animation-pseudo {
|
|
60
|
+
0% {
|
|
61
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0, 1);
|
|
62
|
+
|
|
63
|
+
opacity: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
18.75% {
|
|
67
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0.657, 1);
|
|
68
|
+
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
25% {
|
|
73
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0, 1);
|
|
74
|
+
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
43.75% {
|
|
79
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0.657, 1);
|
|
80
|
+
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
100% {
|
|
85
|
+
animation-timing-function: cubic-bezier(0.333, 0, 0, 1);
|
|
86
|
+
|
|
87
|
+
opacity: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.square {
|
|
92
|
+
animation: square-animation-main 3.2s infinite;
|
|
93
|
+
|
|
94
|
+
background: var(--ring-loader-color-1);
|
|
95
|
+
mask-image: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
|
|
96
|
+
|
|
97
|
+
&,
|
|
98
|
+
&::before,
|
|
99
|
+
&::after {
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 0;
|
|
102
|
+
right: 0;
|
|
103
|
+
bottom: 0;
|
|
104
|
+
left: 0;
|
|
105
|
+
|
|
106
|
+
border-radius: 20%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&::before {
|
|
110
|
+
content: '';
|
|
111
|
+
animation: square-animation-pseudo 6.4s infinite;
|
|
112
|
+
|
|
113
|
+
opacity: 0;
|
|
114
|
+
|
|
115
|
+
background: var(--ring-loader-color-2);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&::after {
|
|
119
|
+
content: '';
|
|
120
|
+
animation: square-animation-pseudo 6.4s 3.2s infinite;
|
|
121
|
+
|
|
122
|
+
opacity: 0;
|
|
123
|
+
|
|
124
|
+
background: var(--ring-loader-color-3);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.inner {
|
|
129
|
+
top: 20px;
|
|
130
|
+
right: 20px;
|
|
131
|
+
bottom: 20px;
|
|
132
|
+
left: 20px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.middle {
|
|
136
|
+
top: 10px;
|
|
137
|
+
right: 10px;
|
|
138
|
+
bottom: 10px;
|
|
139
|
+
left: 10px;
|
|
140
|
+
|
|
141
|
+
opacity: 0.8;
|
|
142
|
+
|
|
143
|
+
&,
|
|
144
|
+
&::before {
|
|
145
|
+
animation-delay: 0.08s;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&::after {
|
|
149
|
+
animation-delay: 3.28s;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.outer {
|
|
154
|
+
opacity: 0.7;
|
|
155
|
+
|
|
156
|
+
&,
|
|
157
|
+
&::before {
|
|
158
|
+
animation-delay: 0.16s;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&::after {
|
|
162
|
+
animation-delay: 3.36s;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
17
166
|
.animate {
|
|
18
167
|
animation: rotation-keyframes 36s linear infinite;
|
|
19
168
|
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { type HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import LoaderCore, { type LoaderCoreProps } from './loader-core';
|
|
3
|
+
declare module 'csstype' {
|
|
4
|
+
interface Properties {
|
|
5
|
+
'--ring-loader-color-1'?: string;
|
|
6
|
+
'--ring-loader-color-2'?: string;
|
|
7
|
+
'--ring-loader-color-3'?: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
3
10
|
export interface LoaderProps extends Partial<LoaderCoreProps>, HTMLAttributes<HTMLElement> {
|
|
4
11
|
'data-test'?: string | null | undefined;
|
|
12
|
+
squares?: boolean;
|
|
5
13
|
}
|
|
6
14
|
/**
|
|
7
15
|
* @name Loader
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
3
4
|
import LoaderCore from './loader-core';
|
|
5
|
+
import styles from './loader.css';
|
|
4
6
|
/**
|
|
5
7
|
* @name Loader
|
|
6
8
|
*/
|
|
@@ -28,7 +30,11 @@ export default class Loader extends PureComponent {
|
|
|
28
30
|
}
|
|
29
31
|
};
|
|
30
32
|
render() {
|
|
31
|
-
const { message, size, colors, 'data-test': dataTest, stop, deterministic, ...restProps } = this.props;
|
|
32
|
-
return
|
|
33
|
+
const { message, size, colors, 'data-test': dataTest, stop, deterministic, squares, ...restProps } = this.props;
|
|
34
|
+
return squares ? (_jsxs("div", { ...restProps, children: [_jsxs("div", { className: classNames(styles.canvas, styles.squares), style: {
|
|
35
|
+
'--ring-loader-color-1': colors?.[0] ? `rgb(${colors[0].r}, ${colors[0].g}, ${colors[0].b})` : undefined,
|
|
36
|
+
'--ring-loader-color-2': colors?.[1] ? `rgb(${colors[1].r}, ${colors[1].g}, ${colors[1].b})` : undefined,
|
|
37
|
+
'--ring-loader-color-3': colors?.[2] ? `rgb(${colors[2].r}, ${colors[2].g}, ${colors[2].b})` : undefined,
|
|
38
|
+
}, children: [_jsx("div", { className: classNames(styles.square, styles.outer) }), _jsx("div", { className: classNames(styles.square, styles.middle) }), _jsx("div", { className: classNames(styles.square, styles.inner) })] }), message && _jsx("div", { className: styles.text, children: message })] })) : (_jsx("div", { ...restProps, ref: this.initLoader }));
|
|
33
39
|
}
|
|
34
40
|
}
|
|
@@ -43,7 +43,7 @@ export const setCSSAnchorPositioning = ({ popup, anchor, uid, minWidth, top, lef
|
|
|
43
43
|
}
|
|
44
44
|
popup.style.setProperty('position-anchor', anchorName);
|
|
45
45
|
const calculatedMinWidth = calculateMinWidth(getRect(anchor).width, minWidth);
|
|
46
|
-
if (calculatedMinWidth) {
|
|
46
|
+
if (calculatedMinWidth !== null) {
|
|
47
47
|
popup.style.minWidth = `${calculatedMinWidth}px`;
|
|
48
48
|
}
|
|
49
49
|
if (top) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDocumentScrollLeft, getDocumentScrollTop, getRect,
|
|
1
|
+
import { getDocumentScrollLeft, getDocumentScrollTop, getRect, isMounted, } from '../global/dom';
|
|
2
2
|
import { Dimension, Directions, MaxHeight, MinWidth } from './popup.consts';
|
|
3
3
|
export { Dimension, Directions, MaxHeight, MinWidth };
|
|
4
4
|
function getScrollingCoordinates(container) {
|
|
@@ -40,7 +40,7 @@ function getPositionStyles(popup, anchorRect, anchorLeft, anchorTop, offset) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
function verticalOverflow(styles, scrollingCoordinates, attrs) {
|
|
43
|
-
const containerHeight = attrs.container ? attrs.container.clientHeight :
|
|
43
|
+
const containerHeight = attrs.container ? attrs.container.clientHeight : document.documentElement.clientHeight;
|
|
44
44
|
const viewportMinX = scrollingCoordinates.top + attrs.sidePadding;
|
|
45
45
|
const viewportMaxX = scrollingCoordinates.top + containerHeight - attrs.sidePadding;
|
|
46
46
|
const topOverflow = Math.max(viewportMinX - styles.top, 0);
|
|
@@ -50,7 +50,7 @@ function verticalOverflow(styles, scrollingCoordinates, attrs) {
|
|
|
50
50
|
return topOverflow + bottomOverflow;
|
|
51
51
|
}
|
|
52
52
|
function horizontalOverflow(styles, scrollingCoordinates, attrs) {
|
|
53
|
-
const containerWidth = attrs.container ? attrs.container.clientWidth :
|
|
53
|
+
const containerWidth = attrs.container ? attrs.container.clientWidth : document.documentElement.clientWidth;
|
|
54
54
|
const viewportMinY = scrollingCoordinates.left + attrs.sidePadding;
|
|
55
55
|
const viewportMaxY = scrollingCoordinates.left + containerWidth - attrs.sidePadding;
|
|
56
56
|
const leftOverflow = Math.max(viewportMinY - styles.left, 0);
|
|
@@ -195,7 +195,7 @@ export default function position(attrs) {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
const newMinWidth = calculateMinWidth(anchorRect.width, minWidth);
|
|
198
|
-
if (newMinWidth) {
|
|
198
|
+
if (newMinWidth !== null) {
|
|
199
199
|
styles.minWidth = newMinWidth;
|
|
200
200
|
}
|
|
201
201
|
return { styles, direction: chosenDirection };
|
|
@@ -229,7 +229,7 @@ export default class QueryAssist extends Component {
|
|
|
229
229
|
const caretOffset = this.caret?.getOffset();
|
|
230
230
|
if (this.input?.clientWidth !== this.input?.scrollWidth &&
|
|
231
231
|
caretOffset &&
|
|
232
|
-
this.input?.clientWidth &&
|
|
232
|
+
this.input?.clientWidth !== undefined &&
|
|
233
233
|
caretOffset > this.input?.clientWidth) {
|
|
234
234
|
this.input.scrollLeft += caretOffset;
|
|
235
235
|
}
|
|
@@ -22,6 +22,6 @@ export class RadioItemInner extends Component {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
const RadioItem = forwardRef(function RadioItem(props, ref) {
|
|
25
|
-
return (_jsx(RadioContext.Consumer, { children: ({ value, onChange, ...restContext }) => (_jsx(RadioItemInner, { ref: ref, ...restContext, checked: value ? value === props.value : undefined, onChange: onChange ? () => onChange(props.value) : undefined, ...props })) }));
|
|
25
|
+
return (_jsx(RadioContext.Consumer, { children: ({ value, onChange, ...restContext }) => (_jsx(RadioItemInner, { ref: ref, ...restContext, checked: value !== undefined ? value === props.value : undefined, onChange: onChange ? () => onChange(props.value) : undefined, ...props })) }));
|
|
26
26
|
});
|
|
27
27
|
export default RadioItem;
|
|
@@ -78,7 +78,7 @@ export const Slider = ({ defaultValue, value, min = 0, max = HUNDRED, step = 1,
|
|
|
78
78
|
}
|
|
79
79
|
const index = e.currentTarget.getAttribute('data-index');
|
|
80
80
|
const nextValue = calculateValue(ref, e.pageX, min, max, validStep);
|
|
81
|
-
if (nextValue && !isNaN(nextValue) && !index) {
|
|
81
|
+
if (nextValue !== null && !isNaN(nextValue) && !index) {
|
|
82
82
|
const rangeIndex = Number(Math.abs(validValues[0] - nextValue) > Math.abs(validValues[1] - nextValue));
|
|
83
83
|
setDraggedIndex(isRange ? rangeIndex : 0);
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ export const CollapsibleTabs = ({ children, selected, onSelect, onLastVisibleInd
|
|
|
103
103
|
}, { visible: [], hidden: [], ready: elements.lastVisibleIndex !== null });
|
|
104
104
|
if (selectedIndex > (elements.lastVisibleIndex ?? 0)) {
|
|
105
105
|
const selectedItem = children.find(tab => !tab.props.alwaysHidden && tab.props.id === selected);
|
|
106
|
-
if (selectedItem) {
|
|
106
|
+
if (selectedItem !== null && selectedItem !== undefined) {
|
|
107
107
|
res.visible.push(selectedItem);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -206,7 +206,8 @@ export default class TagsInput extends PureComponent {
|
|
|
206
206
|
return false;
|
|
207
207
|
}
|
|
208
208
|
if ((key === 'Delete' || key === 'Backspace') &&
|
|
209
|
-
this.state.activeIndex &&
|
|
209
|
+
this.state.activeIndex !== null &&
|
|
210
|
+
this.state.activeIndex !== undefined &&
|
|
210
211
|
this.state.tags[this.state.activeIndex]) {
|
|
211
212
|
this.onRemoveTag(this.state.tags[this.state.activeIndex]).then(() => this.selectTag(true));
|
|
212
213
|
return false;
|
|
@@ -71,7 +71,7 @@ export default class UserAgreementService {
|
|
|
71
71
|
this.hideDialog();
|
|
72
72
|
};
|
|
73
73
|
onStorageEvent = (event) => {
|
|
74
|
-
if (event.key === storageKey && event.newValue) {
|
|
74
|
+
if (event.key === storageKey && event.newValue !== null) {
|
|
75
75
|
const { tabId, command } = JSON.parse(event.newValue);
|
|
76
76
|
if (tabId !== this.tabId) {
|
|
77
77
|
if (command === showMessage) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.68",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -99,24 +99,24 @@
|
|
|
99
99
|
"@babel/eslint-parser": "^7.28.4",
|
|
100
100
|
"@csstools/css-parser-algorithms": "^3.0.4",
|
|
101
101
|
"@csstools/stylelint-no-at-nest-rule": "^4.0.0",
|
|
102
|
-
"@eslint/compat": "^1.
|
|
102
|
+
"@eslint/compat": "^1.4.0",
|
|
103
103
|
"@eslint/eslintrc": "^3.2.0",
|
|
104
|
-
"@eslint/js": "^9.
|
|
105
|
-
"@figma/code-connect": "^1.3.
|
|
104
|
+
"@eslint/js": "^9.37.0",
|
|
105
|
+
"@figma/code-connect": "^1.3.6",
|
|
106
106
|
"@jetbrains/eslint-config": "^6.0.5",
|
|
107
107
|
"@jetbrains/logos": "3.0.0-canary.734b213.0",
|
|
108
108
|
"@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
|
|
109
109
|
"@jetbrains/stylelint-config": "^4.0.2",
|
|
110
|
-
"@primer/octicons": "^19.
|
|
110
|
+
"@primer/octicons": "^19.19.0",
|
|
111
111
|
"@rollup/plugin-babel": "^6.0.4",
|
|
112
112
|
"@rollup/plugin-json": "^6.1.0",
|
|
113
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
113
|
+
"@rollup/plugin-node-resolve": "^16.0.2",
|
|
114
114
|
"@rollup/plugin-replace": "^6.0.2",
|
|
115
|
-
"@storybook/addon-a11y": "9.1.
|
|
116
|
-
"@storybook/addon-docs": "^9.1.
|
|
117
|
-
"@storybook/addon-themes": "^9.1.
|
|
115
|
+
"@storybook/addon-a11y": "9.1.10",
|
|
116
|
+
"@storybook/addon-docs": "^9.1.10",
|
|
117
|
+
"@storybook/addon-themes": "^9.1.10",
|
|
118
118
|
"@storybook/csf": "^0.1.13",
|
|
119
|
-
"@storybook/react-webpack5": "9.1.
|
|
119
|
+
"@storybook/react-webpack5": "9.1.10",
|
|
120
120
|
"@storybook/test-runner": "^0.23.0",
|
|
121
121
|
"@testing-library/dom": "^10.4.1",
|
|
122
122
|
"@testing-library/react": "^16.3.0",
|
|
@@ -125,21 +125,21 @@
|
|
|
125
125
|
"@types/chai-dom": "1.11.3",
|
|
126
126
|
"@types/eslint__js": "^9.14.0",
|
|
127
127
|
"@types/markdown-it": "^14.1.2",
|
|
128
|
-
"@types/react": "^19.
|
|
129
|
-
"@types/react-dom": "^19.1
|
|
128
|
+
"@types/react": "^19.2.2",
|
|
129
|
+
"@types/react-dom": "^19.2.1",
|
|
130
130
|
"@types/webpack-env": "^1.18.8",
|
|
131
|
-
"@vitejs/plugin-react": "^5.0.
|
|
132
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
131
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
132
|
+
"@vitest/eslint-plugin": "^1.3.16",
|
|
133
133
|
"acorn": "^8.15.0",
|
|
134
134
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
135
|
-
"caniuse-lite": "^1.0.
|
|
135
|
+
"caniuse-lite": "^1.0.30001750",
|
|
136
136
|
"chai-as-promised": "^8.0.2",
|
|
137
137
|
"chai-dom": "^1.12.1",
|
|
138
138
|
"cheerio": "^1.1.2",
|
|
139
|
-
"core-js": "^3.
|
|
139
|
+
"core-js": "^3.46.0",
|
|
140
140
|
"cpy-cli": "^6.0.0",
|
|
141
141
|
"dotenv-cli": "^10.0.0",
|
|
142
|
-
"eslint": "^9.
|
|
142
|
+
"eslint": "^9.37.0",
|
|
143
143
|
"eslint-config-prettier": "^10.1.8",
|
|
144
144
|
"eslint-formatter-jslint-xml": "^8.40.0",
|
|
145
145
|
"eslint-import-resolver-exports": "^1.0.0-beta.5",
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
150
150
|
"eslint-plugin-prettier": "^5.5.4",
|
|
151
151
|
"eslint-plugin-react": "^7.37.5",
|
|
152
|
-
"eslint-plugin-react-hooks": "^
|
|
153
|
-
"eslint-plugin-storybook": "^9.1.
|
|
152
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
153
|
+
"eslint-plugin-storybook": "^9.1.10",
|
|
154
154
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
155
155
|
"events": "^3.3.0",
|
|
156
156
|
"glob": "^11.0.3",
|
|
@@ -159,34 +159,34 @@
|
|
|
159
159
|
"http-server": "^14.1.1",
|
|
160
160
|
"husky": "^9.1.7",
|
|
161
161
|
"identity-obj-proxy": "^3.0.0",
|
|
162
|
-
"jest": "~30.
|
|
163
|
-
"jest-environment-jsdom": "^30.
|
|
162
|
+
"jest": "~30.2.0",
|
|
163
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
164
164
|
"jest-teamcity": "^1.12.0",
|
|
165
|
-
"lint-staged": "^16.
|
|
165
|
+
"lint-staged": "^16.2.4",
|
|
166
166
|
"markdown-it": "^14.1.0",
|
|
167
167
|
"merge-options": "^3.0.4",
|
|
168
168
|
"pinst": "^3.0.0",
|
|
169
169
|
"prettier": "^3.6.2",
|
|
170
170
|
"raw-loader": "^4.0.2",
|
|
171
|
-
"react": "^19.
|
|
172
|
-
"react-dom": "^19.
|
|
171
|
+
"react": "^19.2.0",
|
|
172
|
+
"react-dom": "^19.2.0",
|
|
173
173
|
"regenerator-runtime": "^0.14.1",
|
|
174
174
|
"rimraf": "^6.0.1",
|
|
175
|
-
"rollup": "^4.52.
|
|
175
|
+
"rollup": "^4.52.4",
|
|
176
176
|
"rollup-plugin-clear": "^2.0.7",
|
|
177
177
|
"storage-mock": "^2.1.0",
|
|
178
|
-
"storybook": "9.1.
|
|
179
|
-
"stylelint": "^16.
|
|
178
|
+
"storybook": "9.1.10",
|
|
179
|
+
"stylelint": "^16.25.0",
|
|
180
180
|
"stylelint-config-sass-guidelines": "^12.1.0",
|
|
181
181
|
"svg-inline-loader": "^0.8.2",
|
|
182
182
|
"teamcity-service-messages": "^0.1.14",
|
|
183
183
|
"terser-webpack-plugin": "^5.3.14",
|
|
184
|
-
"typescript": "~5.9.
|
|
185
|
-
"typescript-eslint": "^8.
|
|
184
|
+
"typescript": "~5.9.3",
|
|
185
|
+
"typescript-eslint": "^8.46.0",
|
|
186
186
|
"vitest": "^3.2.4",
|
|
187
187
|
"vitest-teamcity-reporter": "^0.3.1",
|
|
188
188
|
"wallaby-webpack": "^3.9.16",
|
|
189
|
-
"webpack": "^5.
|
|
189
|
+
"webpack": "^5.102.1",
|
|
190
190
|
"webpack-cli": "^6.0.1",
|
|
191
191
|
"xmlappend": "^1.0.4"
|
|
192
192
|
},
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"@babel/core": "^7.28.4",
|
|
214
214
|
"@babel/preset-typescript": "^7.27.1",
|
|
215
215
|
"@jetbrains/babel-preset-jetbrains": "^2.4.0",
|
|
216
|
-
"@jetbrains/icons": "^5.
|
|
216
|
+
"@jetbrains/icons": "^5.15.0",
|
|
217
217
|
"@jetbrains/postcss-require-hover": "^0.2.0",
|
|
218
218
|
"@types/combokeys": "^2.4.9",
|
|
219
219
|
"@types/element-resize-detector": "^1.1.6",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
243
243
|
"postcss-loader": "^8.2.0",
|
|
244
244
|
"postcss-modules-values-replace": "^4.2.2",
|
|
245
|
-
"postcss-preset-env": "^10.
|
|
245
|
+
"postcss-preset-env": "^10.4.0",
|
|
246
246
|
"react-movable": "^3.4.1",
|
|
247
247
|
"react-virtualized": "^9.22.6",
|
|
248
248
|
"react-waypoint": "^10.3.0",
|
|
@@ -264,5 +264,11 @@
|
|
|
264
264
|
"homepage": "https://github.com/JetBrains/ring-ui#readme",
|
|
265
265
|
"overrides": {
|
|
266
266
|
"storybook": "$storybook"
|
|
267
|
-
}
|
|
267
|
+
},
|
|
268
|
+
"browserslist": [
|
|
269
|
+
"defaults",
|
|
270
|
+
">1%",
|
|
271
|
+
"baseline widely available",
|
|
272
|
+
"not dead"
|
|
273
|
+
]
|
|
268
274
|
}
|