diff --git a/.github/renovate.json5 b/.github/renovate.json5 index a418c7ef026..f0ddccf266f 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -32,9 +32,6 @@ // react-router: Requires manual upgrade 'history', 'react-router-dom', - - // react-spring: Requires manual upgrade when upgrading react - '@react-spring/web', ], matchUpdateTypes: ['major'], dependencyDashboardApproval: true, diff --git a/app/javascript/mastodon/features/video/components/hotkey_indicator.tsx b/app/javascript/mastodon/features/video/components/hotkey_indicator.tsx index 1abbb96fc0b..6251729273b 100644 --- a/app/javascript/mastodon/features/video/components/hotkey_indicator.tsx +++ b/app/javascript/mastodon/features/video/components/hotkey_indicator.tsx @@ -24,7 +24,9 @@ export const HotkeyIndicator: React.FC<{ enter: [{ opacity: 1 }], leave: [{ opacity: 0 }], onRest: (_result, _ctrl, item) => { - onDismiss(item); + if (item) { + onDismiss(item); + } }, }); diff --git a/package.json b/package.json index 82139e6fa49..2d718e091d2 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@gamestdio/websocket": "^0.3.2", "@github/webauthn-json": "^2.1.1", "@optimize-lodash/rollup-plugin": "^6.0.0", - "@react-spring/web": "^9.7.5", + "@react-spring/web": "^10.1.1", "@reduxjs/toolkit": "^2.0.1", "@rolldown/plugin-babel": "^0.2.2", "@unhead/react": "^3.1.0", diff --git a/yarn.lock b/yarn.lock index 20885523af5..d3f31e33189 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2905,7 +2905,7 @@ __metadata: "@gamestdio/websocket": "npm:^0.3.2" "@github/webauthn-json": "npm:^2.1.1" "@optimize-lodash/rollup-plugin": "npm:^6.0.0" - "@react-spring/web": "npm:^9.7.5" + "@react-spring/web": "npm:^10.1.1" "@reduxjs/toolkit": "npm:^2.0.1" "@rolldown/plugin-babel": "npm:^0.2.2" "@storybook/addon-a11y": "npm:^10.3.0" @@ -3844,69 +3844,70 @@ __metadata: languageName: node linkType: hard -"@react-spring/animated@npm:~9.7.5": - version: 9.7.5 - resolution: "@react-spring/animated@npm:9.7.5" +"@react-spring/animated@npm:~10.1.1": + version: 10.1.1 + resolution: "@react-spring/animated@npm:10.1.1" dependencies: - "@react-spring/shared": "npm:~9.7.5" - "@react-spring/types": "npm:~9.7.5" + "@react-spring/shared": "npm:~10.1.1" + "@react-spring/types": "npm:~10.1.1" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/f8c2473c60f39a878c7dd0fdfcfcdbc720521e1506aa3f63c9de64780694a0a73d5ccc535a5ccec3520ddb70a71cf43b038b32c18e99531522da5388c510ecd7 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/8cdad804109ab76e800949ecf7b01bc6378d5e60149f794b172f22e6c4d4ae67b3db345033c88be2bdb12c7485160812e10545b68aad4059c73092ff5cc6ddee languageName: node linkType: hard -"@react-spring/core@npm:~9.7.5": - version: 9.7.5 - resolution: "@react-spring/core@npm:9.7.5" +"@react-spring/core@npm:~10.1.1": + version: 10.1.1 + resolution: "@react-spring/core@npm:10.1.1" dependencies: - "@react-spring/animated": "npm:~9.7.5" - "@react-spring/shared": "npm:~9.7.5" - "@react-spring/types": "npm:~9.7.5" + "@react-spring/animated": "npm:~10.1.1" + "@react-spring/shared": "npm:~10.1.1" + "@react-spring/types": "npm:~10.1.1" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/5bfd83dfe248cd91889f215f015d908c7714ef445740fd5afa054b27ebc7d5a456abf6c309e2459d9b5b436e78d6fda16b62b9601f96352e9130552c02270830 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/908b9ef1d2d3ac2172dac91151a278a7fa8ca84b049c13402fee9f5727309926711d455879ecbf5c3fd325692050d566a0945ffa63adbb3be9c9e7f58da75ade languageName: node linkType: hard -"@react-spring/rafz@npm:~9.7.5": - version: 9.7.5 - resolution: "@react-spring/rafz@npm:9.7.5" - checksum: 10c0/8bdad180feaa9a0e870a513043a5e98a4e9b7292a9f887575b7e6fadab2677825bc894b7ff16c38511b35bfe6cc1072df5851c5fee64448d67551559578ca759 +"@react-spring/rafz@npm:~10.1.1": + version: 10.1.1 + resolution: "@react-spring/rafz@npm:10.1.1" + checksum: 10c0/517c6e923a4e54943719865806ea831383ebb47c2c452290a7082ce868cf23042a766bf54bc753437c5e6826aedd19628ceaade5016ebb72ef2f890005cf1793 languageName: node linkType: hard -"@react-spring/shared@npm:~9.7.5": - version: 9.7.5 - resolution: "@react-spring/shared@npm:9.7.5" +"@react-spring/shared@npm:~10.1.1": + version: 10.1.1 + resolution: "@react-spring/shared@npm:10.1.1" dependencies: - "@react-spring/rafz": "npm:~9.7.5" - "@react-spring/types": "npm:~9.7.5" + "@react-spring/rafz": "npm:~10.1.1" + "@react-spring/types": "npm:~10.1.1" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/0207eacccdedd918a2fc55e78356ce937f445ce27ad9abd5d3accba8f9701a39349b55115641dc2b39bb9d3a155b058c185b411d292dc8cc5686bfa56f73b94f + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/1021cf0618a9cf4691bae914f03e1a387ce834d4265438a87c9c1adf4180348b07d22d06aedd4deaaddd12921f48a17dff717f9f0d495119e442631fd17420f7 languageName: node linkType: hard -"@react-spring/types@npm:~9.7.5": - version: 9.7.5 - resolution: "@react-spring/types@npm:9.7.5" - checksum: 10c0/85c05121853cacb64f7cf63a4855e9044635e1231f70371cd7b8c78bc10be6f4dd7c68f592f92a2607e8bb68051540989b4677a2ccb525dba937f5cd95dc8bc1 +"@react-spring/types@npm:~10.1.1": + version: 10.1.1 + resolution: "@react-spring/types@npm:10.1.1" + checksum: 10c0/dd490cbcb7b5ef6c74e97691c1f0c9881bcd6672c39a6622ccb85402298c78d13a478874dbc268346672bee1b697578fb35c45bef863a2419536217afa4565bf languageName: node linkType: hard -"@react-spring/web@npm:^9.7.5": - version: 9.7.5 - resolution: "@react-spring/web@npm:9.7.5" +"@react-spring/web@npm:^10.1.1": + version: 10.1.1 + resolution: "@react-spring/web@npm:10.1.1" dependencies: - "@react-spring/animated": "npm:~9.7.5" - "@react-spring/core": "npm:~9.7.5" - "@react-spring/shared": "npm:~9.7.5" - "@react-spring/types": "npm:~9.7.5" + "@react-spring/animated": "npm:~10.1.1" + "@react-spring/core": "npm:~10.1.1" + "@react-spring/shared": "npm:~10.1.1" + "@react-spring/types": "npm:~10.1.1" + csstype: "npm:^3.2.3" peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/bcd1e052e1b16341a12a19bf4515f153ca09d1fa86ff7752a5d02d7c4db58e8baf80e6283e64411f1e388c65340dce2254b013083426806b5dbae38bd151e53e + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + checksum: 10c0/86bd8f47f88ade34bb9790b30d80256da25dd58370582d7c5f44472db00b62ad267796e43c661d89fc4c8c4cc8775a8cae21e36e85b973972cd381c0cf5a6320 languageName: node linkType: hard @@ -6771,7 +6772,7 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.0.2, csstype@npm:^3.2.2": +"csstype@npm:^3.0.2, csstype@npm:^3.2.2, csstype@npm:^3.2.3": version: 3.2.3 resolution: "csstype@npm:3.2.3" checksum: 10c0/cd29c51e70fa822f1cecd8641a1445bed7063697469d35633b516e60fe8c1bde04b08f6c5b6022136bb669b64c63d4173af54864510fbb4ee23281801841a3ce