diff --git a/.changeset/stale-laws-drive.md b/.changeset/stale-laws-drive.md deleted file mode 100644 index bbd36be..0000000 --- a/.changeset/stale-laws-drive.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@wethegit/react-modal": major ---- - -Replace the custom modal and focus trap with native `` and `showModal()`. - -BREAKING: Remove `ModalBackdrop` in favor of the native `::backdrop`. Pass the `dialogRef` returned by `useModal` to `Modal` to synchronize native closing with hook state and focus restoration. `Modal` now renders its children directly inside the dialog, centers them, and handles backdrop clicks internally. diff --git a/CHANGELOG.md b/CHANGELOG.md index bfebe4a..634c1ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # @wethegit/react-modal +## 4.0.0 + +### Major Changes + +- [#154](https://github.com/wethegit/react-modal/pull/154) [`6609cd1`](https://github.com/wethegit/react-modal/commit/6609cd1f32459900365b440c9b308a83d4024403) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Replace the custom modal and focus trap with native `` and `showModal()`. + + BREAKING: Remove `ModalBackdrop` in favor of the native `::backdrop`. Pass the `dialogRef` returned by `useModal` to `Modal` to synchronize native closing with hook state and focus restoration. `Modal` now renders its children directly inside the dialog, centers them, and handles backdrop clicks internally. + ## 3.2.0 ### Minor Changes diff --git a/package.json b/package.json index 3ca2ec2..ac43b23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wethegit/react-modal", - "version": "3.2.0", + "version": "4.0.0", "description": "A customizable, accessible modal window component for React projects.", "files": [ "dist"