@jetbrains/ring-ui 5.0.102 → 5.0.103
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.
|
@@ -15,10 +15,10 @@ export interface UserCardWording {
|
|
|
15
15
|
banned: string;
|
|
16
16
|
online: string;
|
|
17
17
|
offline: string;
|
|
18
|
-
copyToClipboard
|
|
19
|
-
copiedToClipboard
|
|
20
|
-
copingToClipboardError
|
|
21
|
-
unverified
|
|
18
|
+
copyToClipboard?: string;
|
|
19
|
+
copiedToClipboard?: string;
|
|
20
|
+
copingToClipboardError?: string;
|
|
21
|
+
unverified?: string;
|
|
22
22
|
}
|
|
23
23
|
export interface UserCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
24
|
user: UserCardUser;
|
|
@@ -46,11 +46,12 @@ export default class UserCard extends PureComponent {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
copyEmail = () => {
|
|
49
|
-
const {
|
|
50
|
-
clipboard.copyText(user.email || '', wording.copiedToClipboard, wording.copingToClipboardError);
|
|
49
|
+
const wording = { ...UserCard.defaultProps.wording, ...this.props.wording };
|
|
50
|
+
clipboard.copyText(this.props.user.email || '', wording.copiedToClipboard, wording.copingToClipboardError);
|
|
51
51
|
};
|
|
52
52
|
render() {
|
|
53
|
-
const { children, info, className, user,
|
|
53
|
+
const { children, info, className, user, avatarInfo, ...restProps } = this.props;
|
|
54
|
+
const wording = { ...UserCard.defaultProps.wording, ...this.props.wording };
|
|
54
55
|
const classes = classNames(className, {});
|
|
55
56
|
const userActiveStatusClasses = classNames(styles.userActiveStatus, user.online ? styles.online : '');
|
|
56
57
|
return (<div className={classes} {...restProps}>
|
package/dist/_helpers/card.js
CHANGED
|
@@ -16,11 +16,11 @@ class UserCard extends PureComponent {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
_defineProperty(this, "copyEmail", () => {
|
|
19
|
-
const {
|
|
20
|
-
|
|
21
|
-
wording
|
|
22
|
-
}
|
|
23
|
-
clipboard.copyText(user.email || '', wording.copiedToClipboard, wording.copingToClipboardError);
|
|
19
|
+
const wording = {
|
|
20
|
+
...UserCard.defaultProps.wording,
|
|
21
|
+
...this.props.wording
|
|
22
|
+
};
|
|
23
|
+
clipboard.copyText(this.props.user.email || '', wording.copiedToClipboard, wording.copingToClipboardError);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
@@ -29,10 +29,13 @@ class UserCard extends PureComponent {
|
|
|
29
29
|
info,
|
|
30
30
|
className,
|
|
31
31
|
user,
|
|
32
|
-
wording,
|
|
33
32
|
avatarInfo,
|
|
34
33
|
...restProps
|
|
35
34
|
} = this.props;
|
|
35
|
+
const wording = {
|
|
36
|
+
...UserCard.defaultProps.wording,
|
|
37
|
+
...this.props.wording
|
|
38
|
+
};
|
|
36
39
|
const classes = classNames(className, {});
|
|
37
40
|
const userActiveStatusClasses = classNames(modules_a4196c17.userActiveStatus, user.online ? modules_a4196c17.online : '');
|
|
38
41
|
return /*#__PURE__*/React.createElement("div", _extends({
|
package/dist/user-card/card.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ export interface UserCardWording {
|
|
|
15
15
|
banned: string;
|
|
16
16
|
online: string;
|
|
17
17
|
offline: string;
|
|
18
|
-
copyToClipboard
|
|
19
|
-
copiedToClipboard
|
|
20
|
-
copingToClipboardError
|
|
21
|
-
unverified
|
|
18
|
+
copyToClipboard?: string;
|
|
19
|
+
copiedToClipboard?: string;
|
|
20
|
+
copingToClipboardError?: string;
|
|
21
|
+
unverified?: string;
|
|
22
22
|
}
|
|
23
23
|
export interface UserCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
24
|
user: UserCardUser;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.103",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"merge-options": "^3.0.4",
|
|
152
152
|
"mocha": "^10.2.0",
|
|
153
153
|
"pinst": "^3.0.0",
|
|
154
|
-
"puppeteer": "^19.6.
|
|
154
|
+
"puppeteer": "^19.6.2",
|
|
155
155
|
"raw-loader": "^4.0.2",
|
|
156
156
|
"react": "^18.2.0",
|
|
157
157
|
"react-dom": "^18.2.0",
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
241
241
|
"postcss-loader": "^7.0.2",
|
|
242
242
|
"postcss-modules-values-replace": "^3.4.0",
|
|
243
|
-
"postcss-preset-env": "^8.0.
|
|
243
|
+
"postcss-preset-env": "^8.0.1",
|
|
244
244
|
"prop-types": "^15.8.1",
|
|
245
245
|
"react-markdown": "^8.0.5",
|
|
246
246
|
"react-movable": "^3.0.4",
|