diff --git a/CHANGELOG.md b/CHANGELOG.md index be494b4..10ffe8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.0] - 2022-01-30 + +This release adds a number of useful features such as a default client URL placeholder, +ability to redirect to the front-end URLs when viewing a page in the Wagtail admin, and +an option to redirect the preview to the client URL rather than use the default iframe embed mechanism. + +It also moves to a single, namespaced settings dictionary - `WAGTAIL_HEADLESS_PREVIEW`: + +```python +WAGTAIL_HEADLESS_PREVIEW = { + "CLIENT_URLS": {}, # previously HEADLESS_PREVIEW_CLIENTS_URLS + "LIVE_PREVIEW": False, # previously HEADLESS_PREVIEW_LIVE + "SERVE_BASE_URL": None, # new optional setting for HeadlessServeMixin / HeadlessMixin + "REDIRECT_ON_PREVIEW": False, # new optional setting to redirect the preview to the client preview URL +} +``` + ### Added -- Add support for a `{SITE_ROOT_URL}` placeholder in "default" preview client url ([#20](https://github.com/torchbox/wagtail-headless-preview/pull/20)) - Thanks @jaap3 +- Add support for a `{SITE_ROOT_URL}` placeholder in "default" preview client URL ([#20](https://github.com/torchbox/wagtail-headless-preview/pull/20)) - Thanks @jaap3 - Add [pre-commit](https://pre-commit.com/) support ([#21](https://github.com/torchbox/wagtail-headless-preview/pull/21)) - @zerolab - Add `HeadlessMixin` and `HeadlessServeMixin` ([#22](https://github.com/torchbox/wagtail-headless-preview/pull/22)) - @zerolab - Add setting to redirect to the client preview URL ([#23](https://github.com/torchbox/wagtail-headless-preview/pull/23)) - @zerolab based on real world code from @jaap3 @@ -48,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Initial release -[unreleased]: https://github.com/wagtail/wagtail-localize/compare/v1.0.1...HEAD +[unreleased]: https://github.com/wagtail/wagtail-localize/compare/v0.2.0...HEAD +[0.2.0]: https://github.com/wagtail/wagtail-localize/compare/v0.2.0...v0.1.4 [0.1.4]: https://github.com/wagtail/wagtail-localize/compare/v0.1.4...v0.1.0 [0.1.0]: https://github.com/wagtail/wagtail-localize/compare/v0.1.0..v0.0.2 diff --git a/src/wagtail_headless_preview/version.py b/src/wagtail_headless_preview/version.py index 8946dbd..b32a761 100644 --- a/src/wagtail_headless_preview/version.py +++ b/src/wagtail_headless_preview/version.py @@ -1,2 +1,2 @@ -VERSION = (0, 1, 4) +VERSION = (0, 2, 0) __version__ = ".".join(map(str, VERSION))