@jetbrains/ring-ui 4.1.24 → 4.1.27
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__ga-plugin.js +11 -3
- package/components/date-picker/date-popup.js +0 -1
- package/components/list/list.js +11 -13
- package/components/popup/popup.js +0 -1
- package/components/select/select.js +4 -0
- package/components/tag/tag.js +0 -1
- package/dist/analytics/analytics__ga-plugin.js +15 -7
- package/dist/date-picker/date-popup.js +1 -2
- package/dist/list/list.js +13 -9
- package/dist/popup/popup.js +0 -1
- package/dist/select/select.js +4 -0
- package/dist/tag/tag.js +0 -1
- package/package.json +26 -26
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @constructor
|
|
5
5
|
*/
|
|
6
6
|
export default class AnalyticsGAPlugin {
|
|
7
|
-
constructor(gaId, isDevelopment, domain) {
|
|
7
|
+
constructor(gaId, isDevelopment, domain, cookielessUserIdentifier) {
|
|
8
8
|
if (!gaId && !isDevelopment) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
@@ -25,8 +25,16 @@ export default class AnalyticsGAPlugin {
|
|
|
25
25
|
*/
|
|
26
26
|
const key = gaId || 'UA-57284711-1';
|
|
27
27
|
/* global ga */
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
if (cookielessUserIdentifier) {
|
|
29
|
+
ga('create', key, {
|
|
30
|
+
storage: 'none',
|
|
31
|
+
clientId: cookielessUserIdentifier
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
const gaCookieParams = domain ? {cookieDomain: domain} : {};
|
|
35
|
+
ga('create', key, (!gaId ? {cookieDomain: 'none'} : gaCookieParams));
|
|
36
|
+
}
|
|
37
|
+
|
|
30
38
|
ga('set', 'anonymizeIp', true);
|
|
31
39
|
ga('set', 'allowAdFeatures', false);
|
|
32
40
|
}
|
package/components/list/list.js
CHANGED
|
@@ -171,27 +171,25 @@ export default class List extends Component {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
)
|
|
174
|
+
return nextState;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
componentDidMount() {
|
|
178
|
+
document.addEventListener('mousemove', this.onDocumentMouseMove);
|
|
179
|
+
document.addEventListener('keydown', this.onDocumentKeyDown, true);
|
|
180
|
+
|
|
181
|
+
const {data, activeIndex} = this.props;
|
|
182
|
+
|
|
183
|
+
if (activeIndex == null && shouldActivateFirstItem(this.props)) {
|
|
179
184
|
const firstActivatableIndex = data.findIndex(isActivatable);
|
|
180
185
|
if (firstActivatableIndex >= 0) {
|
|
181
|
-
|
|
186
|
+
this.setState({
|
|
182
187
|
activeIndex: firstActivatableIndex,
|
|
183
188
|
activeItem: data[firstActivatableIndex],
|
|
184
189
|
needScrollToActive: true
|
|
185
190
|
});
|
|
186
191
|
}
|
|
187
192
|
}
|
|
188
|
-
|
|
189
|
-
return nextState;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
componentDidMount() {
|
|
193
|
-
document.addEventListener('mousemove', this.onDocumentMouseMove);
|
|
194
|
-
document.addEventListener('keydown', this.onDocumentKeyDown, true);
|
|
195
193
|
}
|
|
196
194
|
|
|
197
195
|
shouldComponentUpdate(nextProps, nextState) {
|
|
@@ -386,6 +386,10 @@ export default class Select extends Component {
|
|
|
386
386
|
nextState.selected = Select._getEmptyValue(multiple);
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
+
if (multiple && !nextState.selected) {
|
|
390
|
+
nextState.selected = prevState.selected;
|
|
391
|
+
}
|
|
392
|
+
|
|
389
393
|
const {selected} = {...prevState, ...nextState};
|
|
390
394
|
if (selected && multiple) {
|
|
391
395
|
nextState.multipleMap = buildMultipleMap(selected);
|
package/components/tag/tag.js
CHANGED
|
@@ -48,7 +48,6 @@ export default class Tag extends PureComponent {
|
|
|
48
48
|
|
|
49
49
|
componentDidUpdate(prevProps) {
|
|
50
50
|
if (this.props.focused !== prevProps.focused) {
|
|
51
|
-
// eslint-disable-next-line react/no-did-update-set-state
|
|
52
51
|
this.setState({focused: this.props.focused});
|
|
53
52
|
}
|
|
54
53
|
if (this.state.focused) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @constructor
|
|
5
5
|
*/
|
|
6
6
|
class AnalyticsGAPlugin {
|
|
7
|
-
constructor(gaId, isDevelopment, domain) {
|
|
7
|
+
constructor(gaId, isDevelopment, domain, cookielessUserIdentifier) {
|
|
8
8
|
if (!gaId && !isDevelopment) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
@@ -31,12 +31,20 @@ class AnalyticsGAPlugin {
|
|
|
31
31
|
const key = gaId || 'UA-57284711-1';
|
|
32
32
|
/* global ga */
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
34
|
+
if (cookielessUserIdentifier) {
|
|
35
|
+
ga('create', key, {
|
|
36
|
+
storage: 'none',
|
|
37
|
+
clientId: cookielessUserIdentifier
|
|
38
|
+
});
|
|
39
|
+
} else {
|
|
40
|
+
const gaCookieParams = domain ? {
|
|
41
|
+
cookieDomain: domain
|
|
42
|
+
} : {};
|
|
43
|
+
ga('create', key, !gaId ? {
|
|
44
|
+
cookieDomain: 'none'
|
|
45
|
+
} : gaCookieParams);
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
ga('set', 'anonymizeIp', true);
|
|
41
49
|
ga('set', 'allowAdFeatures', false);
|
|
42
50
|
}
|
|
@@ -227,8 +227,7 @@ class DatePopup extends Component {
|
|
|
227
227
|
if (this.state.active !== prevState.active) {
|
|
228
228
|
if (this.state.text && prevState.active) {
|
|
229
229
|
this.confirm(prevState.active);
|
|
230
|
-
}
|
|
231
|
-
|
|
230
|
+
}
|
|
232
231
|
|
|
233
232
|
this.setState({
|
|
234
233
|
text: null
|
package/dist/list/list.js
CHANGED
|
@@ -518,24 +518,28 @@ class List extends Component {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
-
|
|
521
|
+
return nextState;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
componentDidMount() {
|
|
525
|
+
document.addEventListener('mousemove', this.onDocumentMouseMove);
|
|
526
|
+
document.addEventListener('keydown', this.onDocumentKeyDown, true);
|
|
527
|
+
const {
|
|
528
|
+
data,
|
|
529
|
+
activeIndex
|
|
530
|
+
} = this.props;
|
|
531
|
+
|
|
532
|
+
if (activeIndex == null && shouldActivateFirstItem(this.props)) {
|
|
522
533
|
const firstActivatableIndex = data.findIndex(isActivatable);
|
|
523
534
|
|
|
524
535
|
if (firstActivatableIndex >= 0) {
|
|
525
|
-
|
|
536
|
+
this.setState({
|
|
526
537
|
activeIndex: firstActivatableIndex,
|
|
527
538
|
activeItem: data[firstActivatableIndex],
|
|
528
539
|
needScrollToActive: true
|
|
529
540
|
});
|
|
530
541
|
}
|
|
531
542
|
}
|
|
532
|
-
|
|
533
|
-
return nextState;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
componentDidMount() {
|
|
537
|
-
document.addEventListener('mousemove', this.onDocumentMouseMove);
|
|
538
|
-
document.addEventListener('keydown', this.onDocumentKeyDown, true);
|
|
539
543
|
}
|
|
540
544
|
|
|
541
545
|
shouldComponentUpdate(nextProps, nextState) {
|
package/dist/popup/popup.js
CHANGED
package/dist/select/select.js
CHANGED
|
@@ -697,6 +697,10 @@ class Select extends Component {
|
|
|
697
697
|
nextState.selected = Select._getEmptyValue(multiple);
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
+
if (multiple && !nextState.selected) {
|
|
701
|
+
nextState.selected = prevState.selected;
|
|
702
|
+
}
|
|
703
|
+
|
|
700
704
|
const {
|
|
701
705
|
selected
|
|
702
706
|
} = { ...prevState,
|
package/dist/tag/tag.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.27",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
},
|
|
68
68
|
"readmeFilename": "README.md",
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@babel/cli": "^7.17.
|
|
70
|
+
"@babel/cli": "^7.17.6",
|
|
71
71
|
"@babel/eslint-parser": "^7.17.0",
|
|
72
72
|
"@jetbrains/eslint-config": "^5.3.2",
|
|
73
|
-
"@jetbrains/generator-ring-ui": "^4.1.
|
|
73
|
+
"@jetbrains/generator-ring-ui": "^4.1.9",
|
|
74
74
|
"@jetbrains/stylelint-config": "^3.0.2",
|
|
75
|
-
"@primer/octicons": "^
|
|
76
|
-
"@rollup/plugin-babel": "^5.3.
|
|
77
|
-
"@rollup/plugin-replace": "^
|
|
75
|
+
"@primer/octicons": "^17.0.0",
|
|
76
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
77
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
78
78
|
"@storybook/addon-a11y": "6.4.19",
|
|
79
79
|
"@storybook/addon-docs": "6.4.19",
|
|
80
80
|
"@storybook/addon-essentials": "6.4.19",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"@storybook/manager-webpack5": "^6.4.19",
|
|
90
90
|
"@storybook/source-loader": "6.4.19",
|
|
91
91
|
"@storybook/theming": "6.4.19",
|
|
92
|
-
"@testing-library/react": "^12.1.
|
|
92
|
+
"@testing-library/react": "^12.1.4",
|
|
93
93
|
"@testing-library/user-event": "^13.5.0",
|
|
94
|
-
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.
|
|
94
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
95
95
|
"angular": "^1.8.2",
|
|
96
96
|
"angular-mocks": "^1.8.2",
|
|
97
97
|
"angular-route": "^1.8.2",
|
|
@@ -104,13 +104,13 @@
|
|
|
104
104
|
"cheerio": "^0.22.0",
|
|
105
105
|
"core-js": "^3.21.1",
|
|
106
106
|
"enzyme": "^3.11.0",
|
|
107
|
-
"eslint": "^8.
|
|
107
|
+
"eslint": "^8.12.0",
|
|
108
108
|
"eslint-import-resolver-webpack": "^0.13.2",
|
|
109
109
|
"eslint-plugin-angular": "^4.1.0",
|
|
110
110
|
"eslint-plugin-bdd": "^2.1.1",
|
|
111
111
|
"eslint-plugin-import": "^2.25.4",
|
|
112
112
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
113
|
-
"eslint-plugin-react": "^7.
|
|
113
|
+
"eslint-plugin-react": "^7.29.4",
|
|
114
114
|
"events": "^3.3.0",
|
|
115
115
|
"glob": "^7.2.0",
|
|
116
116
|
"html-webpack-plugin": "^5.5.0",
|
|
@@ -119,35 +119,35 @@
|
|
|
119
119
|
"imports-loader": "^3.1.1",
|
|
120
120
|
"jest": "~27.5.1",
|
|
121
121
|
"jest-teamcity": "^1.10.0",
|
|
122
|
-
"karma": "^6.3.
|
|
123
|
-
"karma-chrome-launcher": "3.1.
|
|
122
|
+
"karma": "^6.3.17",
|
|
123
|
+
"karma-chrome-launcher": "3.1.1",
|
|
124
124
|
"karma-mocha": "^2.0.1",
|
|
125
125
|
"karma-sourcemap-loader": "^0.3.8",
|
|
126
126
|
"karma-teamcity-reporter": "^2.0.0",
|
|
127
127
|
"karma-webpack": "^5.0.0",
|
|
128
128
|
"lerna": "^4.0.0",
|
|
129
|
-
"lint-staged": "^12.3.
|
|
129
|
+
"lint-staged": "^12.3.6",
|
|
130
130
|
"merge-options": "^3.0.4",
|
|
131
|
-
"mocha": "^9.2.
|
|
131
|
+
"mocha": "^9.2.2",
|
|
132
132
|
"pinst": "^3.0.0",
|
|
133
|
-
"puppeteer": "^13.
|
|
133
|
+
"puppeteer": "^13.5.1",
|
|
134
134
|
"raw-loader": "^4.0.2",
|
|
135
135
|
"react": "^17.0.2",
|
|
136
136
|
"react-dom": "^17.0.2",
|
|
137
137
|
"react-test-renderer": "^17.0.2",
|
|
138
138
|
"regenerator-runtime": "^0.13.9",
|
|
139
|
-
"rollup": "^2.
|
|
139
|
+
"rollup": "^2.70.1",
|
|
140
140
|
"rollup-plugin-clear": "^2.0.7",
|
|
141
141
|
"rollup-plugin-styles": "^4.0.0",
|
|
142
142
|
"sinon": "^13.0.1",
|
|
143
143
|
"sinon-chai": "^3.7.0",
|
|
144
144
|
"storage-mock": "^2.1.0",
|
|
145
|
-
"stylelint": "^14.
|
|
145
|
+
"stylelint": "^14.6.1",
|
|
146
146
|
"svg-inline-loader": "^0.8.2",
|
|
147
147
|
"teamcity-service-messages": "^0.1.12",
|
|
148
148
|
"terser-webpack-plugin": "^5.3.1",
|
|
149
149
|
"wallaby-webpack": "^3.9.16",
|
|
150
|
-
"webpack": "^5.
|
|
150
|
+
"webpack": "^5.70.0",
|
|
151
151
|
"webpack-cli": "^4.9.2",
|
|
152
152
|
"xmlappend": "^1.0.4",
|
|
153
153
|
"yo": "^4.3.0"
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"core-js": ">=3.0.0",
|
|
157
157
|
"react": ">=16.8.0",
|
|
158
158
|
"react-dom": ">=16.8.0",
|
|
159
|
-
"webpack": "^5.
|
|
159
|
+
"webpack": "^5.70.0"
|
|
160
160
|
},
|
|
161
161
|
"peerDependenciesMeta": {
|
|
162
162
|
"webpack": {
|
|
@@ -164,14 +164,14 @@
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
"dependencies": {
|
|
167
|
-
"@babel/core": "^7.17.
|
|
167
|
+
"@babel/core": "^7.17.8",
|
|
168
168
|
"@jetbrains/angular-elastic": "^2.5.1",
|
|
169
169
|
"@jetbrains/babel-preset-jetbrains": "^2.3.2",
|
|
170
170
|
"@jetbrains/icons": "^3.18.0",
|
|
171
171
|
"@jetbrains/logos": "^1.4.27",
|
|
172
172
|
"@jetbrains/postcss-require-hover": "^0.1.2",
|
|
173
173
|
"@ungap/url-search-params": "^0.2.2",
|
|
174
|
-
"babel-loader": "^8.2.
|
|
174
|
+
"babel-loader": "^8.2.4",
|
|
175
175
|
"babel-plugin-transform-define": "^2.0.1",
|
|
176
176
|
"browserslist": "^4.16.6",
|
|
177
177
|
"change-case": "^4.1.1",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"combokeys": "^3.0.1",
|
|
180
180
|
"compile-code-loader": "^1.0.0",
|
|
181
181
|
"conic-gradient": "^1.0.0",
|
|
182
|
-
"css-loader": "^6.
|
|
182
|
+
"css-loader": "^6.7.1",
|
|
183
183
|
"date-fns": "^2.28.0",
|
|
184
184
|
"deep-equal": "^2.0.4",
|
|
185
185
|
"element-resize-detector": "^1.2.4",
|
|
@@ -195,16 +195,16 @@
|
|
|
195
195
|
"interpolate-loader": "^2.0.1",
|
|
196
196
|
"just-debounce-it": "^3.0.1",
|
|
197
197
|
"memoize-one": "^6.0.0",
|
|
198
|
-
"postcss": "^8.4.
|
|
198
|
+
"postcss": "^8.4.12",
|
|
199
199
|
"postcss-calc": "^8.2.4",
|
|
200
200
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
201
201
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
202
202
|
"postcss-loader": "^6.2.1",
|
|
203
203
|
"postcss-modules-values-replace": "^3.4.0",
|
|
204
|
-
"postcss-preset-env": "^7.4.
|
|
204
|
+
"postcss-preset-env": "^7.4.3",
|
|
205
205
|
"prop-types": "^15.8.1",
|
|
206
206
|
"react-markdown": "^5.0.3",
|
|
207
|
-
"react-movable": "^3.0.
|
|
207
|
+
"react-movable": "^3.0.4",
|
|
208
208
|
"react-virtualized": "^9.22.3",
|
|
209
209
|
"react-waypoint": "^10.1.0",
|
|
210
210
|
"remark-breaks": "^3.0.2",
|
|
@@ -221,5 +221,5 @@
|
|
|
221
221
|
"node": ">=7.4",
|
|
222
222
|
"npm": ">=6.0.0"
|
|
223
223
|
},
|
|
224
|
-
"gitHead": "
|
|
224
|
+
"gitHead": "91ee90ef36ff1b781a040d70e62da7eed0e9f960"
|
|
225
225
|
}
|