Allow KibanaThemeProvider
to be used in preboot plugins
#119204
Labels
enhancement
New value added to drive a business result
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
While implementing #119124, I realized that the
interactive_setup
plugin cannot have a dependency on thekibana_react
plugin, because the former is a "preboot" plugin and the latter is a "standard" plugin.I decided to copy the
KibanaThemeProvider
code to theinteractive_setup
plugin as a short-term solution. However, we should come up with a way to remove this duplication in the future.At a high level I can see a couple of viable options:
KibanaThemeProvider
to a package (e.g.,@kbn/theme-provider
).PluginsService
to allow a "preboot" plugin to require a "standard" plugin's bundle, and change theServer
,RenderingService
, andbootstrapRendererFactory
to provide a subset of "standard" bundles while in "preboot" mode. This sounds more complex, but it might be better long-term as we eventually add more "preboot" plugins and add more dependencies from other places in Kibana.More context is in my comment here: #119124 (comment)
The text was updated successfully, but these errors were encountered: