Skip to content

Releases: FrameMuse/react-modal-global

v2.3.0

23 Aug 07:12
a158c4e
Compare
Choose a tag to compare

What's Changed

Issues

Bumps

Full Changelog: v2.2.0...v2.3.0

v2.2.0

26 May 08:27
f11130e
Compare
Choose a tag to compare

What's Changed

ModalPortal

This release only adds ony component ModalPortal, which is very useful to open modals right when the page is loaded and to control shared state between components.

See new example here
https://codesandbox.io/s/react-modal-global-examples-v2-2-0-1cj3vy

  • Added ModalPortal to make transition from react-modal smoother by @FrameMuse in #65

Full Changelog: v2.1.0...v2.2.0

v2.1.0

23 May 12:07
775fc03
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.1.0

v2.0.0

22 May 20:23
d61735b
Compare
Choose a tag to compare

What's new

Features

  • Modals now can be layered! - #28
  • ModalWindow has new serialized property
  • ModalWindow has new on method
  • ModalController has new on method
  • ModalController has new close method
  • ModalController has new show and hide methods

Breaking changes

  • ModalWindow now is a class instead of interface
  • Modal is not exporting now, instead you should create your own Modal using ModalController
  • ModalContainer now has a required property controller
  • id property in ModalWindow is now a number instead of string
  • useModalContext renamed to useModalWindow
  • observe method in ModalController is renamed to subscribe and callback doesn't have state as an argument anymore - #142
  • isClosed property in ModalWindow is renamed to closed
  • isFocused property in ModalWindow is removed
  • Renamed isOpen to active in ModalController
  • Rename ModalState to ModalSnapshot
  • Rename useModalState to useModalSnapshot

What's Changed

Full Changelog: v1.2.3...v2.0.0

Migration from v1.x.x

#1

Create local instance of ModalController

import { ModalController } from "react-modal-global"

export const Modal = new ModalController()

#2

Pass your local Modal to ModalContainer

import Modal from "./Modal"

<ModalContainer controller={Modal} />

#3

Rename properies using your IDE or create a wrapper as dependency injection.

v1.2.3

17 Apr 15:16
ba82188
Compare
Choose a tag to compare

What's Changed

Updates

For development

Bumps

New Contributors

Full Changelog: v1.2.1...v1.2.3

v1.2.1

29 Mar 07:31
b69292c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

25 Mar 23:53
49bba4b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.2.0

v1.1.0

20 Feb 10:03
64d5913
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.1.0

Fixed a bug

13 Feb 23:18
c446964
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

Major improvements

12 Feb 00:13
bc38cc7
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.9.33...v1.0.0