Releases: FrameMuse/react-modal-global
Releases · FrameMuse/react-modal-global
v2.3.0
What's Changed
Issues
- Fix layouts exports by @FrameMuse in #163
- 192 if use lazy load in component modalclosebycomponent didnt work by @FrameMuse in #193
Bumps
- Bump eslint from 8.41.0 to 8.44.0 by @dependabot in #172
- Bump tslib from 2.5.2 to 2.6.0 by @dependabot in #171
- Bump type-fest from 3.11.0 to 3.12.0 by @dependabot in #169
- Bump @types/uuid from 9.0.1 to 9.0.2 by @dependabot in #168
- Bump @types/jest from 29.5.1 to 29.5.2 by @dependabot in #165
- Bump sass from 1.62.1 to 1.63.6 by @dependabot in #175
- Bump @rollup/plugin-typescript from 11.1.1 to 11.1.2 by @dependabot in #174
- Bump type-fest from 3.12.0 to 3.13.0 by @dependabot in #173
- Bump sass from 1.63.6 to 1.64.1 by @dependabot in #180
- Bump eslint-plugin-unused-imports from 2.0.0 to 3.0.0 by @dependabot in #179
- Bump @types/jest from 29.5.2 to 29.5.3 by @dependabot in #178
- Bump eslint from 8.44.0 to 8.45.0 by @dependabot in #177
- Bump type-fest from 3.13.0 to 4.0.0 by @dependabot in #176
Full Changelog: v2.2.0...v2.3.0
v2.2.0
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 fromreact-modal
smoother by @FrameMuse in #65
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- Add
config
toModalController
by @FrameMuse in #154 - Add
MODAL_WINDOW_PARAMS_EXPLANATION
by @FrameMuse in #155 - Add Named Components by @FrameMuse in #156
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's new
Features
- Modals now can be layered! - #28
ModalWindow
has newserialized
propertyModalWindow
has newon
methodModalController
has newon
methodModalController
has newclose
methodModalController
has newshow
andhide
methods
Breaking changes
ModalWindow
now is aclass
instead ofinterface
Modal
is not exporting now, instead you should create your ownModal
usingModalController
ModalContainer
now has a required propertycontroller
id
property inModalWindow
is now anumber
instead ofstring
useModalContext
renamed touseModalWindow
observe
method inModalController
is renamed tosubscribe
andcallback
doesn't havestate
as an argument anymore - #142isClosed
property inModalWindow
is renamed toclosed
isFocused
property inModalWindow
is removed- Renamed
isOpen
toactive
inModalController
- Rename
ModalState
toModalSnapshot
- Rename
useModalState
touseModalSnapshot
What's Changed
- Update npm-publish.yml by @FrameMuse in #127
- Update package.json by @FrameMuse in #128
- Bump eslint from 8.38.0 to 8.39.0 by @dependabot in #132
- Bump @types/jest from 29.4.0 to 29.5.1 by @dependabot in #130
- Bump @types/react from 18.0.35 to 18.0.38 by @dependabot in #129
- Bump eslint-plugin-simple-import-sort from 7.0.0 to 10.0.0 by @dependabot in #110
- Fixed grammar in
README.md
by @FrameMuse in #133 - Bump sass from 1.62.0 to 1.62.1 by @dependabot in #134
- Bump @types/react from 18.0.38 to 18.2.6 by @dependabot in #139
- Bump type-fest from 3.8.0 to 3.10.0 by @dependabot in #138
- Bump eventemitter3 from 5.0.0 to 5.0.1 by @dependabot in #135
- Bump @rollup/plugin-typescript from 8.3.3 to 11.1.1 by @dependabot in #140
- Update
README.md
by @FrameMuse in #145 - Bump eslint from 8.39.0 to 8.41.0 by @dependabot in #148
- Bump type-fest from 3.10.0 to 3.11.0 by @dependabot in #147
- Bump tslib from 2.5.0 to 2.5.2 by @dependabot in #146
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
What's Changed
Updates
- Fixed export of
useModalState
by @FrameMuse in #90 - Fixed
ModalComponent
type enhancement hasn't been applied by @FrameMuse in #111 - Fixed when opening the same modals in a row isn't filtered by @FrameMuse in #112
- Add layout components by @FrameMuse in #113
- Update styles by @FrameMuse in #114
- Revamp
README.md
by @FrameMuse in #101
For development
- Update package.json by @FrameMuse in #92
- Create npm-publish.yml by @FrameMuse in #93
- Create test.yml by @FrameMuse in #94
- Create dependabot.yml by @FrameMuse in #99
Bumps
- Bump eslint from 8.6.0 to 8.38.0 by @dependabot in #100
- Bump eslint-plugin-react from 7.30.1 to 7.32.2 by @dependabot in #102
- Bump rollup from 2.77.0 to 2.79.1 by @dependabot in #105
- Bump @testing-library/react from 13.4.0 to 14.0.0 by @dependabot in #104
- Bump rollup-plugin-dts from 4.2.2 to 4.2.3 by @dependabot in #103
- Bump @types/react from 18.0.15 to 18.0.35 by @dependabot in #109
- Bump tslib from 2.4.0 to 2.5.0 by @dependabot in #106
- Bump sass from 1.53.0 to 1.62.0 by @dependabot in #107
- Bump type-fest from 3.5.5 to 3.8.0 by @dependabot in #108
New Contributors
- @dependabot made their first contribution in #100
Full Changelog: v1.2.1...v1.2.3
v1.2.1
What's Changed
- Issue templates update by @FrameMuse in #81
- fix #83 by @FrameMuse in #84
Full Changelog: v1.2.0...v1.2.1
v1.2.0
What's Changed
- Revise connection dispatching between controller and container by @FrameMuse in #60
- Added indicators to
ModalWindow
by @FrameMuse in #61 - Updated copyright by @FrameMuse in #62
- Created .github/FUNDING.yml by @FrameMuse in #68
- Fixed
ModalController.observe()
by @FrameMuse in #69 - Now
useModalContext
can be used intemplate
prop by @FrameMuse in #71 - Polishing updates by @FrameMuse in #72
package.json
scripts updated by @FrameMuse in #74- Added new hook
useModalState
by @FrameMuse in #76 - Enhanced
ModalComponent
type by @FrameMuse in #77
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
- Add
isClosed
property by @FrameMuse in #52 - Improved
serialize
util by @FrameMuse in #55 - Modal component type improved by @FrameMuse in #56
- Updated
README.md
by @FrameMuse in #57
Full Changelog: v1.0.1...v1.1.0
Fixed a bug
Major improvements
What's Changed
- Add
react
topeerDependencies
by @FrameMuse in #18 Modal
now isModalController
and constructable class by @FrameMuse in #19- Add
CONTRIBUTING.md
by @FrameMuse in #20 - Add
CODE_OF_CONDUCT.md
by @FrameMuse in #21 - Update GitHub Issues templates by @FrameMuse in #22
- Fix minor bugs & other minor improvements by @FrameMuse in #25
- Add more jsdocs by @FrameMuse in #27
- Add tests and Coverage by @FrameMuse in #23
- Add
Codecov
badge by @FrameMuse in #31 - Add new close methods to
ModalContainer
by @FrameMuse in #26 - Add Layout Concept description by @FrameMuse in #38
- Code cleaning by @FrameMuse in #40
- Make
README.md
more clear by @FrameMuse in #44
Full Changelog: v0.9.33...v1.0.0