Releases: toss/overlay-kit
[email protected]
Patch Changes
-
#113
b57d15b
Thanks @jungpaeng! - Improve overlay unmount logic and add test cases- Enhanced current overlay state management during unmount
- When unmounting a middle overlay with multiple overlays open, the last overlay becomes current
- When unmounting the last overlay, the previous overlay becomes current
- Added test cases
- Test for unmounting multiple overlays in different orders
- Test for tracking current overlay state using useCurrentOverlay hook
- Enhanced current overlay state management during unmount
[email protected]
Minor Changes
-
#102
becbd90
Thanks @jungpaeng! - feat: Add local overlay context support- Add
experimental_createOverlayContext
function to create isolated overlay contexts - Refactor context management to support multiple overlay instances
- Move overlay provider and controller logic into separate files
- Update store management to support local state
- Add documentation for new context creation API
- Improve type definitions and exports
- Add
[email protected]
[email protected]
Patch Changes
-
#74
324dab9
Thanks @jungpaeng! - Fix path resolution error by updating import path for 'use-sync-external-store/shim'The import path for
use-sync-external-store/shim
was incorrect, causing a path resolution error during build. This change updates the import statement to includeindex.js
, resolving the path issue.
[email protected]
Minor Changes
-
#72
9776fff
Thanks @jungpaeng! - Support for React versions 16.8 and 17Related Issue: Fixes #43
Patch Changes
-
#64
01eaa3c
Thanks @jungpaeng! - feat: Add cleanup effect for unmountingThis commit introduces a useEffect cleanup function in the OverlayProvider component that dispatches a 'REMOVE_ALL' action when the component unmounts.
This change ensures that all overlays are properly cleaned up during testing scenarios, preventing state leakage and side effects from persistent overlays.Related Issue: Fixes #63
[email protected]
[email protected]
Patch Changes
-
#53
6f3c26a
Thanks @jungpaeng! - fix: Enhance Overlay State Management and Prevent Duplicate EntriesThis change enhances the overlay state management to ensure overlays maintain the correct state when closed and reopened, and prevents duplicate overlay entries.
It addresses issues with the overlay'scurrent
state not updating correctly in certain scenarios.Related Issue: Fixes #46
-
#58
b35ac6f
Thanks @jungpaeng! - fix: state reset issue on overlay reopenThis change fixes an issue where overlays did not retain their state when reopened without unmounting, even though they were not removed from the DOM.
The overlayReducer has been updated to maintain the state of overlays between close and open cycles, addressing an unintended state reset.Related Issue: Fixes #57
[email protected]
Patch Changes
-
#50
5d7e84d
Thanks @jungpaeng! - Fix: Ensure 'current' reflects the last overlay when closing intermediate overlays- Resolve issue where 'current' does not update to the last overlay when closing an intermediate overlay
- Add logic to correctly update 'current' in reducer
[email protected]
Patch Changes
- #48
2aaa5ea
Thanks @jungpaeng! - fix: Change current value when closing overlay