-
Notifications
You must be signed in to change notification settings - Fork 297
chore: Use beta version of web-packages on dev [WPB-21306] #19811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
92d866e
59de699
bd2f77a
d70f2fa
6dcc1a6
1d5c874
a092a94
220d86d
7011bd3
3cd71f6
d09efa4
34b18c7
14ecacd
f968d66
4544833
75705f3
9b6e8dc
0315fc1
27da44a
95df189
29e14f0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,25 +13,25 @@ | |||||||||||||||||
| "@mediapipe/tasks-vision": "0.10.21", | ||||||||||||||||||
| "@tanstack/react-table": "8.21.3", | ||||||||||||||||||
| "@tanstack/react-virtual": "3.13.4", | ||||||||||||||||||
| "@wireapp/avs": "10.2.17", | ||||||||||||||||||
| "@wireapp/avs": "10.2.19", | ||||||||||||||||||
| "@wireapp/avs-debugger": "0.0.7", | ||||||||||||||||||
| "@wireapp/commons": "5.4.9", | ||||||||||||||||||
| "@wireapp/core": "46.46.3", | ||||||||||||||||||
| "@wireapp/commons": "5.4.10-beta.54.5ce5ca523", | ||||||||||||||||||
| "@wireapp/core": "46.46.5-beta.8.5ce5ca523", | ||||||||||||||||||
| "@wireapp/kalium-backup": "0.0.4", | ||||||||||||||||||
| "@wireapp/promise-queue": "2.4.9", | ||||||||||||||||||
| "@wireapp/react-ui-kit": "9.69.6", | ||||||||||||||||||
| "@wireapp/store-engine-dexie": "2.1.16", | ||||||||||||||||||
| "@wireapp/telemetry": "0.3.1", | ||||||||||||||||||
| "@wireapp/webapp-events": "0.28.1", | ||||||||||||||||||
| "@wireapp/promise-queue": "2.4.10-beta.54.5ce5ca523", | ||||||||||||||||||
| "@wireapp/react-ui-kit": "9.69.7-beta.11.d0ceefa60", | ||||||||||||||||||
| "@wireapp/store-engine-dexie": "2.1.21-beta.54.5ce5ca523", | ||||||||||||||||||
| "@wireapp/telemetry": "0.3.7-beta.51.d0ceefa60", | ||||||||||||||||||
| "@wireapp/webapp-events": "0.28.6-beta.51.d0ceefa60", | ||||||||||||||||||
|
Comment on lines
+22
to
+25
|
||||||||||||||||||
| "@wireapp/react-ui-kit": "9.69.7-beta.11.d0ceefa60", | |
| "@wireapp/store-engine-dexie": "2.1.21-beta.54.5ce5ca523", | |
| "@wireapp/telemetry": "0.3.7-beta.51.d0ceefa60", | |
| "@wireapp/webapp-events": "0.28.6-beta.51.d0ceefa60", | |
| "@wireapp/react-ui-kit": "9.69.7-beta.11.5ce5ca523", | |
| "@wireapp/store-engine-dexie": "2.1.21-beta.54.5ce5ca523", | |
| "@wireapp/telemetry": "0.3.7-beta.51.5ce5ca523", | |
| "@wireapp/webapp-events": "0.28.6-beta.51.5ce5ca523", |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /* | ||
| * Wire | ||
| * Copyright (C) 2025 Wire Swiss GmbH | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see http://www.gnu.org/licenses/. | ||
| * | ||
| */ | ||
|
|
||
| import {useRouteA11y} from '../hooks/useRouteA11y'; | ||
|
|
||
| export const RouteA11y: React.FC = (): null => { | ||
| useRouteA11y(); | ||
| return null; | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| /* | ||
| * Wire | ||
| * Copyright (C) 2025 Wire Swiss GmbH | ||
| * | ||
| * This program is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * This program is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU General Public License | ||
| * along with this program. If not, see http://www.gnu.org/licenses/. | ||
| * | ||
| */ | ||
|
|
||
| import {useEffect} from 'react'; | ||
|
|
||
| import {useLocation} from 'react-router-dom'; | ||
|
|
||
| export function useRouteA11y(screenKey?: string) { | ||
| const location = useLocation(); | ||
|
|
||
| useEffect(() => { | ||
| const focusTarget: HTMLElement | null = | ||
| document.querySelector<HTMLElement>('[data-page-title]') || | ||
| document.querySelector<HTMLElement>('main,[role="main"]') || | ||
| document.querySelector<HTMLElement>('h1'); | ||
|
|
||
| if (!focusTarget) { | ||
| return; | ||
| } | ||
|
|
||
| // scroll to top on each route change | ||
| window.scrollTo({top: 0, left: 0}); | ||
|
|
||
| const element = focusTarget; | ||
| element.setAttribute('tabindex', '-1'); | ||
| element.classList.add('sr-only-focus'); | ||
| element.focus({preventScroll: true}); | ||
|
|
||
| // remove tabindex after blur | ||
| const handleBlur = () => { | ||
| element.classList.remove('sr-only-focus'); | ||
| element.removeAttribute('tabindex'); | ||
| element.removeEventListener('blur', handleBlur); | ||
| }; | ||
| element.addEventListener('blur', handleBlur); | ||
| }, [location.key, screenKey]); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new @wireapp/[email protected] upgrades eslint-plugin-react-hooks from v4 to v5. Disabling these rules specifically for test files may be hiding issues that should be addressed. Consider:
These rules help prevent common React bugs:
rules-of-hooksensures hooks are only called at the top levelexhaustive-depsprevents stale closures and missing dependencies