Skip to content

Releases: toss/overlay-kit

[email protected]

12 Feb 02:40
64e9494
Compare
Choose a tag to compare

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

[email protected]

12 Feb 02:38
988fb4e
Compare
Choose a tag to compare

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

[email protected]

16 Jan 09:42
9b3ca2f
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

28 Jul 08:55
202adce
Compare
Choose a tag to compare

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 include index.js, resolving the path issue.

[email protected]

28 Jul 05:49
1f29582
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • #64 01eaa3c Thanks @jungpaeng! - feat: Add cleanup effect for unmounting

    This 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]

16 Jul 04:17
7d8b642
Compare
Choose a tag to compare

Minor Changes

  • #59 828fad5 Thanks @XionWCFM! - feat: Add overlayAsync implementation

    This change implements the openAsync method for overly-kit's promise support discussed in #47.

    Related Issue: Fixes #47

[email protected]

15 Jul 03:12
b5a5d64
Compare
Choose a tag to compare

Patch Changes

  • #53 6f3c26a Thanks @jungpaeng! - fix: Enhance Overlay State Management and Prevent Duplicate Entries

    This 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's current state not updating correctly in certain scenarios.

    Related Issue: Fixes #46

  • #58 b35ac6f Thanks @jungpaeng! - fix: state reset issue on overlay reopen

    This 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]

13 Jul 17:50
c381297
Compare
Choose a tag to compare

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]

13 Jul 16:09
43731c3
Compare
Choose a tag to compare

Patch Changes