@jetbrains/ring-ui 7.0.104 → 7.0.105
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.
|
@@ -45,7 +45,7 @@ const DEFAULT_CONFIG = {
|
|
|
45
45
|
defaultExpiresIn: DEFAULT_EXPIRES_TIMEOUT,
|
|
46
46
|
waitForRedirectTimeout: DEFAULT_WAIT_FOR_REDIRECT_TIMEOUT,
|
|
47
47
|
tokenRefreshRetryDelays: TOKEN_REFRESH_RETRY_DELAYS,
|
|
48
|
-
rpInitiatedLogout:
|
|
48
|
+
rpInitiatedLogout: false,
|
|
49
49
|
translations: null,
|
|
50
50
|
};
|
|
51
51
|
class Auth {
|
|
@@ -12,12 +12,6 @@
|
|
|
12
12
|
border-radius: 50%;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.avatarShadow {
|
|
16
|
-
/* See https://stackoverflow.com/questions/21414925/why-doesnt-inset-box-shadow-work-over-images */
|
|
17
|
-
|
|
18
|
-
filter: url('avatar-shadow-filter.svg#inset-shadow');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
15
|
.avatarInfo {
|
|
22
16
|
display: flex;
|
|
23
17
|
align-items: center;
|
|
@@ -75,10 +75,10 @@ export default class Avatar extends PureComponent {
|
|
|
75
75
|
};
|
|
76
76
|
subavatarSrc = skipParams ? subavatar : encodeURL(urlStart, queryParams);
|
|
77
77
|
return (<div>
|
|
78
|
-
<img {...restProps} onError={this.handleError} onLoad={this.handleSuccess} className={
|
|
78
|
+
<img {...restProps} onError={this.handleError} onLoad={this.handleSuccess} className={classes} style={styleObj} src={src} alt='User avatar'/>
|
|
79
79
|
<img {...restProps} data-test='avatar' onError={this.handleError} onLoad={this.handleSuccess} className={classNames(styles.subavatar)} style={styleObjGroup} src={subavatarSrc} alt='Subavatar'/>
|
|
80
80
|
</div>);
|
|
81
81
|
}
|
|
82
|
-
return (<img {...restProps} data-test='avatar' onError={this.handleError} onLoad={this.handleSuccess} className={
|
|
82
|
+
return (<img {...restProps} data-test='avatar' onError={this.handleError} onLoad={this.handleSuccess} className={classes} style={styleObj} src={src} alt='User avatar'/>);
|
|
83
83
|
}
|
|
84
84
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
|
|
2
|
-
<defs>
|
|
3
|
-
<filter id="inset-shadow" x="-50%" y="-50%" width="200%" height="200%">
|
|
4
|
-
<feComponentTransfer in="SourceAlpha">
|
|
5
|
-
<feFuncA type="table" tableValues="1 0" />
|
|
6
|
-
</feComponentTransfer>
|
|
7
|
-
<feGaussianBlur stdDeviation="4"/>
|
|
8
|
-
<feOffset dx="0" dy="0" result="offsetblur"/>
|
|
9
|
-
<feFlood flood-color="rgba(0, 0, 0, 0.07)"/>
|
|
10
|
-
<feComposite in2="offsetblur" operator="in"/>
|
|
11
|
-
<feComposite in="SourceAlpha" operator="in" />
|
|
12
|
-
<feMerge>
|
|
13
|
-
<feMergeNode in="SourceGraphic" />
|
|
14
|
-
<feMergeNode />
|
|
15
|
-
</feMerge>
|
|
16
|
-
</filter>
|
|
17
|
-
</defs>
|
|
18
|
-
</svg>
|