Upgrade react-hotkeys-hooks

Not using useKey yet, let's see if this works first
pull/1064/head^2
Lim Chee Aun 2025-04-16 11:56:17 +08:00
rodzic c96bf470d9
commit 9bec44b02a
8 zmienionych plików z 30 dodań i 26 usunięć

16
package-lock.json wygenerowano
Wyświetl plik

@ -35,7 +35,7 @@
"p-throttle": "~7.0.0", "p-throttle": "~7.0.0",
"preact": "10.26.5", "preact": "10.26.5",
"punycode": "~2.3.1", "punycode": "~2.3.1",
"react-hotkeys-hook": "~4.6.1", "react-hotkeys-hook": "~5.0.1",
"react-intersection-observer": "~9.16.0", "react-intersection-observer": "~9.16.0",
"react-quick-pinch-zoom": "~5.1.0", "react-quick-pinch-zoom": "~5.1.0",
"react-router-dom": "6.6.2", "react-router-dom": "6.6.2",
@ -8596,12 +8596,16 @@
} }
}, },
"node_modules/react-hotkeys-hook": { "node_modules/react-hotkeys-hook": {
"version": "4.6.1", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-4.6.1.tgz", "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-5.0.1.tgz",
"integrity": "sha512-XlZpbKUj9tkfgPgT9gA+1p7Ey6vFIZHttUjPqpTdyT5nqQ8mHL7elxvSbaC+dpSiHUSmr21Ya1mDxBZG3aje4Q==", "integrity": "sha512-TysTwXrUSj6QclMZIEoxCfvy/6EsoZcrfE970aUVa9fO3c3vcms+IVjv3ljbhUPM/oY1iEoun7O2W8v8INl5hw==",
"license": "MIT",
"workspaces": [
"packages/*"
],
"peerDependencies": { "peerDependencies": {
"react": ">=16.8.1", "react": ">=16.8.0",
"react-dom": ">=16.8.1" "react-dom": ">=16.8.0"
} }
}, },
"node_modules/react-intersection-observer": { "node_modules/react-intersection-observer": {

Wyświetl plik

@ -43,7 +43,7 @@
"p-throttle": "~7.0.0", "p-throttle": "~7.0.0",
"preact": "10.26.5", "preact": "10.26.5",
"punycode": "~2.3.1", "punycode": "~2.3.1",
"react-hotkeys-hook": "~4.6.1", "react-hotkeys-hook": "~5.0.1",
"react-intersection-observer": "~9.16.0", "react-intersection-observer": "~9.16.0",
"react-quick-pinch-zoom": "~5.1.0", "react-quick-pinch-zoom": "~5.1.0",
"react-router-dom": "6.6.2", "react-router-dom": "6.6.2",

Wyświetl plik

@ -123,7 +123,7 @@ function Modal({ children, onClose, onClick, class: className, minimized }) {
<div <div
ref={(node) => { ref={(node) => {
modalRef.current = node; modalRef.current = node;
escRef(node?.querySelector?.('[tabindex="-1"]') || node); escRef.current = node?.querySelector?.('[tabindex="-1"]') || node;
}} }}
className={className} className={className}
onClick={(e) => { onClick={(e) => {

Wyświetl plik

@ -1677,11 +1677,11 @@ function Status({
node?.closest?.( node?.closest?.(
'.timeline-item, .timeline-item-alt, .status-link, .status-focus', '.timeline-item, .timeline-item-alt, .status-link, .status-focus',
) || node; ) || node;
rRef(nodeRef); rRef.current = nodeRef;
fRef(nodeRef); fRef.current = nodeRef;
dRef(nodeRef); dRef.current = nodeRef;
bRef(nodeRef); bRef.current = nodeRef;
xRef(nodeRef); xRef.current = nodeRef;
}} }}
tabindex="-1" tabindex="-1"
class={`status ${ class={`status ${

Wyświetl plik

@ -392,10 +392,10 @@ function Timeline({
}`} }`}
ref={(node) => { ref={(node) => {
scrollableRef.current = node; scrollableRef.current = node;
jRef(node); jRef.current = node;
kRef(node); kRef.current = node;
oRef(node); oRef.current = node;
dotRef(node); dotRef.current = node;
}} }}
tabIndex="-1" tabIndex="-1"
onClick={(e) => { onClick={(e) => {

Wyświetl plik

@ -843,10 +843,10 @@ function Catchup() {
<div <div
ref={(node) => { ref={(node) => {
scrollableRef.current = node; scrollableRef.current = node;
jRef(node); jRef.current = node;
kRef(node); kRef.current = node;
hlRef(node); hlRef.current = node;
escRef(node); escRef.current = node;
}} }}
id="catchup-page" id="catchup-page"
class="deck-container" class="deck-container"

Wyświetl plik

@ -533,9 +533,9 @@ function Notifications({ columnMode }) {
class="deck-container" class="deck-container"
ref={(node) => { ref={(node) => {
scrollableRef.current = node; scrollableRef.current = node;
jRef(node); jRef.current = node;
kRef(node); kRef.current = node;
oRef(node); oRef.current = node;
}} }}
tabIndex="-1" tabIndex="-1"
> >

Wyświetl plik

@ -277,8 +277,8 @@ function Search({ columnMode, ...props }) {
tabIndex="-1" tabIndex="-1"
ref={(node) => { ref={(node) => {
scrollableRef.current = node; scrollableRef.current = node;
jRef(node); jRef.current = node;
kRef(node); kRef.current = node;
}} }}
> >
<div class="timeline-deck deck"> <div class="timeline-deck deck">