Upgrade dependencies (#9249)
* [create-pull-request] automated change * Delint * Hold @types/react* back * Pin axe-core until we fix a11y issues Co-authored-by: t3chguy <t3chguy@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d2109de4ca
commit
5cbb748843
6 changed files with 1289 additions and 1558 deletions
|
@ -175,7 +175,7 @@
|
||||||
"@typescript-eslint/parser": "^5.6.0",
|
"@typescript-eslint/parser": "^5.6.0",
|
||||||
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
|
||||||
"allchange": "^1.1.0",
|
"allchange": "^1.1.0",
|
||||||
"axe-core": "^4.4.3",
|
"axe-core": "4.4.3",
|
||||||
"babel-jest": "^26.6.3",
|
"babel-jest": "^26.6.3",
|
||||||
"blob-polyfill": "^6.0.20211015",
|
"blob-polyfill": "^6.0.20211015",
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
|
|
|
@ -96,8 +96,9 @@ export default class LoginWithQR extends React.Component<IProps, IState> {
|
||||||
private async updateMode(mode: Mode) {
|
private async updateMode(mode: Mode) {
|
||||||
this.setState({ phase: Phase.Loading });
|
this.setState({ phase: Phase.Loading });
|
||||||
if (this.state.rendezvous) {
|
if (this.state.rendezvous) {
|
||||||
this.state.rendezvous.onFailure = undefined;
|
const rendezvous = this.state.rendezvous;
|
||||||
await this.state.rendezvous.cancel(RendezvousFailureReason.UserCancelled);
|
rendezvous.onFailure = undefined;
|
||||||
|
await rendezvous.cancel(RendezvousFailureReason.UserCancelled);
|
||||||
this.setState({ rendezvous: undefined });
|
this.setState({ rendezvous: undefined });
|
||||||
}
|
}
|
||||||
if (mode === Mode.Show) {
|
if (mode === Mode.Show) {
|
||||||
|
|
|
@ -240,7 +240,7 @@ export default class ReplyChain extends React.Component<IProps, IState> {
|
||||||
{ _t("In reply to <a>this message</a>",
|
{ _t("In reply to <a>this message</a>",
|
||||||
{},
|
{},
|
||||||
{ a: (sub) => (
|
{ a: (sub) => (
|
||||||
<a className="mx_reply_anchor" href={`#${eventId}`} scroll-to={eventId}> { sub } </a>
|
<a className="mx_reply_anchor" href={`#${eventId}`} data-scroll-to={eventId}> { sub } </a>
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -747,13 +747,12 @@ export default class RoomSublist extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
public render(): React.ReactElement {
|
public render(): React.ReactElement {
|
||||||
const visibleTiles = this.renderVisibleTiles();
|
const visibleTiles = this.renderVisibleTiles();
|
||||||
|
const hidden = !this.state.rooms.length && !this.props.extraTiles?.length && this.props.alwaysVisible !== true;
|
||||||
const classes = classNames({
|
const classes = classNames({
|
||||||
'mx_RoomSublist': true,
|
'mx_RoomSublist': true,
|
||||||
'mx_RoomSublist_hasMenuOpen': !!this.state.contextMenuPosition,
|
'mx_RoomSublist_hasMenuOpen': !!this.state.contextMenuPosition,
|
||||||
'mx_RoomSublist_minimized': this.props.isMinimized,
|
'mx_RoomSublist_minimized': this.props.isMinimized,
|
||||||
'mx_RoomSublist_hidden': (
|
'mx_RoomSublist_hidden': hidden,
|
||||||
!this.state.rooms.length && !this.props.extraTiles?.length && this.props.alwaysVisible !== true
|
|
||||||
),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let content = null;
|
let content = null;
|
||||||
|
@ -898,6 +897,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
|
||||||
ref={this.sublistRef}
|
ref={this.sublistRef}
|
||||||
className={classes}
|
className={classes}
|
||||||
role="group"
|
role="group"
|
||||||
|
aria-hidden={hidden}
|
||||||
aria-label={this.props.label}
|
aria-label={this.props.label}
|
||||||
onKeyDown={this.onKeyDown}
|
onKeyDown={this.onKeyDown}
|
||||||
>
|
>
|
||||||
|
|
|
@ -35,7 +35,7 @@ function showToast(text) {
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
document.querySelectorAll('.mx_reply_anchor').forEach(element => {
|
document.querySelectorAll('.mx_reply_anchor').forEach(element => {
|
||||||
element.addEventListener('click', event => {
|
element.addEventListener('click', event => {
|
||||||
showToastIfNeeded(event.target.getAttribute("scroll-to"));
|
showToastIfNeeded(event.target.dataset.scrollTo);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue