- Issue created by @fago
For previewing custom elements from within XB-previews, we need a way to generate that preview.
Provide a preview mechanism that supports multiple ways of handling previews. Lupus Decoupled needs one for Nuxt while allowing to add one for Next also. So we need some sort of provider/plugin mechanism.
Usually the same plugin/provider would be used for the whole site, but there might be use-cases to switch it based upon request, e.g. consider domain module / multi-site support.
While it makes sense to ship provides with custom elements module, the module lacks the knowledge/infrastructure to know where the frontend is running. So we could ship with the plugins and let Lupus Decouple expose UI and configuration to select and apply the suiting plugin.
For (the probably uncommon) usage of custom elements without Lupus Decoupled, we could add a dedicated module providing UI / config for that also, or leave it up the site-maintainer to add a glue module doing so.
Active
3.0
Code