From 5bd7b5ce193ca4ea1a395512c519df72fa55f020 Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Sun, 1 May 2022 22:54:03 +1000 Subject: [PATCH] fix: update underlaying packages; brings React 18 and Shadow DOM support --- CHANGELOG.md | 4 + custom-typings/.gitkeep | 0 custom-typings/atlaskit.d.ts | 1 - package.json | 14 ++-- sidecar/sidecar.d.ts | 2 +- src/InteractivityDisabler.tsx | 2 +- src/UI.tsx | 24 +++--- src/medium.ts | 3 +- src/types.ts | 2 +- tsconfig.json | 5 +- yarn.lock | 138 +++++++++++++++++----------------- 11 files changed, 97 insertions(+), 98 deletions(-) delete mode 100644 custom-typings/.gitkeep delete mode 100644 custom-typings/atlaskit.d.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index d9855c8..7e1f00f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [3.5.4](https://github.com/theKashey/react-focus-on/compare/v3.5.3...v3.5.4) (2021-11-09) + + + ## [3.5.3](https://github.com/theKashey/react-focus-on/compare/v3.5.2...v3.5.3) (2021-11-09) diff --git a/custom-typings/.gitkeep b/custom-typings/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/custom-typings/atlaskit.d.ts b/custom-typings/atlaskit.d.ts deleted file mode 100644 index 0f1c4ea..0000000 --- a/custom-typings/atlaskit.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module '@atlaskit/*'; \ No newline at end of file diff --git a/package.json b/package.json index 83078f2..0059c6c 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "author": "Anton Korzunov ", "license": "MIT", "devDependencies": { - "@types/react": "^16.8.19", + "@types/react": "^18.0.8", "conventional-changelog-cli": "^2.0.12", "enzyme": "^3.10.0", "enzyme-adapter-react-16": "^1.14.0", @@ -45,12 +45,12 @@ }, "dependencies": { "aria-hidden": "^1.1.3", - "react-focus-lock": "^2.6.0", - "react-remove-scroll": "^2.4.1", - "react-style-singleton": "^2.1.1", + "react-focus-lock": "^2.9.0", + "react-remove-scroll": "^2.5.2", + "react-style-singleton": "^2.2.0", "tslib": "^2.3.1", - "use-callback-ref": "^1.2.5", - "use-sidecar": "^1.0.5" + "use-callback-ref": "^1.3.0", + "use-sidecar": "^1.1.2" }, "engines": { "node": ">=8.5.0" @@ -80,7 +80,7 @@ "isolation" ], "resolutions": { - "typescript": "^3.0.0" + "typescript": "^3.8.0" }, "homepage": "https://github.com/theKashey/react-focus-on#readme" } diff --git a/sidecar/sidecar.d.ts b/sidecar/sidecar.d.ts index 864c9f5..aaa5106 100644 --- a/sidecar/sidecar.d.ts +++ b/sidecar/sidecar.d.ts @@ -1,5 +1,5 @@ import * as React from 'react'; -declare var sidecar: React.SFC; +declare var sidecar: React.FC; export default sidecar; diff --git a/src/InteractivityDisabler.tsx b/src/InteractivityDisabler.tsx index b7874c4..0c5cff0 100644 --- a/src/InteractivityDisabler.tsx +++ b/src/InteractivityDisabler.tsx @@ -10,4 +10,4 @@ const styles = ` } `; -export const InteractivityDisabler: React.SFC = () =>