diff --git a/package-lock.json b/package-lock.json index 100fa48910..6ccc77f794 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "react-chartjs-2": "^5.3.0", "react-datepicker": "^8.2.1", "react-dom": "^19.1.0", - "react-hotkeys-hook": "^4.6.1", + "react-hotkeys-hook": "^5.0.1", "react-i18next": "^15.4.1", "react-icons": "^5.5.0", "react-redux": "^9.2.0", @@ -6552,12 +6552,16 @@ "integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==" }, "node_modules/react-hotkeys-hook": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-4.6.1.tgz", - "integrity": "sha512-XlZpbKUj9tkfgPgT9gA+1p7Ey6vFIZHttUjPqpTdyT5nqQ8mHL7elxvSbaC+dpSiHUSmr21Ya1mDxBZG3aje4Q==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-5.0.1.tgz", + "integrity": "sha512-TysTwXrUSj6QclMZIEoxCfvy/6EsoZcrfE970aUVa9fO3c3vcms+IVjv3ljbhUPM/oY1iEoun7O2W8v8INl5hw==", + "license": "MIT", + "workspaces": [ + "packages/*" + ], "peerDependencies": { - "react": ">=16.8.1", - "react-dom": ">=16.8.1" + "react": ">=16.8.0", + "react-dom": ">=16.8.0" } }, "node_modules/react-i18next": { diff --git a/package.json b/package.json index 99f9c146ec..b54881f418 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "react-chartjs-2": "^5.3.0", "react-datepicker": "^8.2.1", "react-dom": "^19.1.0", - "react-hotkeys-hook": "^4.6.1", + "react-hotkeys-hook": "^5.0.1", "react-i18next": "^15.4.1", "react-icons": "^5.5.0", "react-redux": "^9.2.0", diff --git a/src/components/shared/HotKeyCheatSheet.tsx b/src/components/shared/HotKeyCheatSheet.tsx index b74221eee4..595771d494 100644 --- a/src/components/shared/HotKeyCheatSheet.tsx +++ b/src/components/shared/HotKeyCheatSheet.tsx @@ -2,7 +2,7 @@ import React from "react"; import { useTranslation } from "react-i18next"; import { availableHotkeys } from "../../configs/hotkeysConfig"; import { useHotkeysContext } from "react-hotkeys-hook"; -import { Hotkey } from "react-hotkeys-hook/dist/types"; +import { Hotkey } from "react-hotkeys-hook/packages/react-hotkeys-hook/dist/types"; import { Modal, ModalHandle } from "./modals/Modal"; import { ParseKeys } from "i18next"; import ModalContentTable from "./modals/ModalContentTable";