@jetbrains/ring-ui 5.0.0-beta.22 → 5.0.0-beta.23
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/link/link.js +2 -2
- package/dist/link/link.js +2 -2
- package/package.json +5 -5
package/components/link/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'focus-visible';
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { PureComponent, memo } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import memoize from '../global/memoize';
|
|
@@ -26,7 +26,7 @@ const makeWrapText = memoize((innerClassName) => {
|
|
|
26
26
|
});
|
|
27
27
|
export function linkHOC(ComposedComponent) {
|
|
28
28
|
const isCustom = typeof ComposedComponent !== 'string' && ComposedComponent !== ClickableLink;
|
|
29
|
-
return class Link extends
|
|
29
|
+
return class Link extends PureComponent {
|
|
30
30
|
static propTypes = {
|
|
31
31
|
className: PropTypes.string,
|
|
32
32
|
innerClassName: PropTypes.string,
|
package/dist/link/link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'focus-visible';
|
|
3
|
-
import React, {
|
|
3
|
+
import React, { PureComponent, memo } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import memoize from '../global/memoize.js';
|
|
@@ -39,7 +39,7 @@ function linkHOC(ComposedComponent) {
|
|
|
39
39
|
var _class;
|
|
40
40
|
|
|
41
41
|
const isCustom = typeof ComposedComponent !== 'string' && ComposedComponent !== ClickableLink;
|
|
42
|
-
return _class = class Link extends
|
|
42
|
+
return _class = class Link extends PureComponent {
|
|
43
43
|
getChildren() {
|
|
44
44
|
const {
|
|
45
45
|
children,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.23",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@storybook/source-loader": "6.5.0-alpha.63",
|
|
93
93
|
"@storybook/theming": "6.5.0-alpha.63",
|
|
94
94
|
"@testing-library/react": "^13.0.0",
|
|
95
|
-
"@testing-library/user-event": "^14.0
|
|
95
|
+
"@testing-library/user-event": "^14.1.0",
|
|
96
96
|
"@types/chai": "^4.2.21",
|
|
97
97
|
"@types/chai-as-promised": "^7.1.4",
|
|
98
98
|
"@types/chai-dom": "0.0.10",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
108
108
|
"angular": "^1.8.2",
|
|
109
109
|
"angular-mocks": "^1.8.2",
|
|
110
|
-
"angular-route": "^1.8.
|
|
110
|
+
"angular-route": "^1.8.3",
|
|
111
111
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
112
112
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
113
113
|
"chai": "^4.3.6",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"terser-webpack-plugin": "^5.3.1",
|
|
164
164
|
"typescript": "^4.5.2",
|
|
165
165
|
"wallaby-webpack": "^3.9.16",
|
|
166
|
-
"webpack": "^5.
|
|
166
|
+
"webpack": "^5.72.0",
|
|
167
167
|
"webpack-cli": "^4.9.2",
|
|
168
168
|
"xmlappend": "^1.0.4",
|
|
169
169
|
"yo": "^4.3.0"
|
|
@@ -254,5 +254,5 @@
|
|
|
254
254
|
"node": ">=7.4",
|
|
255
255
|
"npm": ">=6.0.0"
|
|
256
256
|
},
|
|
257
|
-
"gitHead": "
|
|
257
|
+
"gitHead": "5ffbab996d7fc29e17f36967f75c78883f26d1db"
|
|
258
258
|
}
|