Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support plugin wrappers [LIBS-397] #823

Merged
merged 28 commits into from
Jan 4, 2024
Merged

feat: support plugin wrappers [LIBS-397] #823

merged 28 commits into from
Jan 4, 2024

Conversation

tomzemp
Copy link
Member

@tomzemp tomzemp commented Dec 21, 2023

This PR has changes for app-platform to allow developers to use experimental plugin wrappers (see corresponding app-runtime PR: dhis2/app-runtime#1366)

The main change in this code is adding <PluginLoader> in the app shell which sets up communication with the parent window. For the communication to work, <Plugin> component needs to be used in the app, otherwise, the communication will fail (the plugin would still load, so you can still build a plugin with this updated app shell and not use <Plugin> if you do not want this communication channel, but do want a separate plugin build)

There is some additional updates in app/adapter for hoisting plugin alerts and errors.

tomzemp and others added 28 commits February 6, 2023 15:28
# [10.4.0-alpha.1](v10.3.1...v10.4.0-alpha.1) (2023-03-13)

### Bug Fixes

* merge in master branch of app-platform ([5c637c0](5c637c0))
* pass props with spread operator ([bd4dccb](bd4dccb))
* simplify error reset logic ([d40dfba](d40dfba))
* style adapter package file ([d5e17e1](d5e17e1))

### Features

* implement plugin wrapper (receiver in plugin) (alpha) ([#786](#786)) ([d4f1ee2](d4f1ee2))
* plugin error handling ([7fd0605](7fd0605))
* plugin handling ([7ee8ed6](7ee8ed6))
fix: update app-runtime dependencies
# [10.4.0-alpha.2](v10.4.0-alpha.1...v10.4.0-alpha.2) (2023-06-16)

### Bug Fixes

* update app-runtime dependencies ([3433129](3433129))
# [10.4.0-alpha.3](v10.4.0-alpha.2...v10.4.0-alpha.3) (2023-08-10)

### Bug Fixes

* move precache route to reenable navigation handler on login redirects [LIBS-473] ([#809](#809)) ([1ff29b6](1ff29b6))
* **pwa:** avoid crashing when SW is not available [LIBS-499] ([#807](#807)) ([b681022](b681022))
* omit `moment-locales` from precache ([#806](#806)) ([c8d5494](c8d5494))
* **cli:** fix envs to fix plugins in dev ([#799](#799)) ([ba29cea](ba29cea))
* **plugins:** omit launch paths when unused [LIBS-477] ([#791](#791)) ([e49a51f](e49a51f))
* **pwa:** bump ui version for headerbar connection status [LIBS-315] ([#797](#797)) ([61ff0a4](61ff0a4))
* make loading placeholders transparent ([#795](#795)) ([6e64756](6e64756))
* **plugins:** inject precache manifest correctly ([#792](#792)) ([c0d172e](c0d172e))
* **pwa:** add config option to omit files from precache [LIBS-482] ([#793](#793)) ([d089dda](d089dda))
# [10.4.0-alpha.4](v10.4.0-alpha.3...v10.4.0-alpha.4) (2023-08-22)

### Bug Fixes

* support yarn.lock discovery on non-unix ([#811](#811)) ([22a6863](22a6863))
feat: allow for auto resizing of plugins [LIBS-487]
# [10.4.0-alpha.5](v10.4.0-alpha.4...v10.4.0-alpha.5) (2023-09-28)

### Bug Fixes

* auto width adjustment ([a80ea56](a80ea56))
* clean up dependencies ([9863ae0](9863ae0))
* use useRef for previous width ([f6c07cf](f6c07cf))

### Features

* auto resizing for height ([74bbe00](74bbe00))
# [10.4.0-alpha.6](v10.4.0-alpha.5...v10.4.0-alpha.6) (2023-12-21)

### Bug Fixes

* don't open browser for plugins on start [LIBS-503] ([#821](#821)) ([7db7a69](7db7a69))
* update alpha ([e66a8ea](e66a8ea))
* update alpha [skip release] ([ec772f6](ec772f6))
Copy link
Contributor

@kabaros kabaros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomzemp tomzemp merged commit f779e13 into master Jan 4, 2024
10 checks passed
@tomzemp tomzemp deleted the alpha branch January 4, 2024 11:42
dhis2-bot added a commit that referenced this pull request Jan 4, 2024
# [10.4.0](v10.3.11...v10.4.0) (2024-01-04)

### Features

* support plugin wrappers [LIBS-397] ([#823](#823)) ([f779e13](f779e13))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

5 participants