-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Canvas] Added KibanaThemeProvider to expression_error. #120073
[Canvas] Added KibanaThemeProvider to expression_error. #120073
Conversation
1. Replaced renderer with getRenderer function and factory. 2. Updated storybook. 3. Moved defaultTheme$ to presentain_util.
Pinging @elastic/kibana-presentation (Team:Presentation) |
# Conflicts: # x-pack/plugins/canvas/canvas_plugin_src/renderers/markdown/index.tsx # x-pack/plugins/canvas/canvas_plugin_src/renderers/table.tsx # x-pack/plugins/canvas/canvas_plugin_src/renderers/text.tsx # x-pack/plugins/canvas/shareable_runtime/supported_renderers.js
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
To update your PR or re-run it, just comment with: cc @Kunzetsov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 This is good to go. One question that doesn't have to be addressed in this PR
@@ -26,4 +27,4 @@ export const renderFunctions = [ | |||
progressRenderer, | |||
]; | |||
|
|||
export const renderFunctionFactories = []; | |||
export const renderFunctionFactories = [debugRendererFactory, errorRendererFactory]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is including these renderers here causing them to be double registered, since htey are also being registered in the errorPlugin?
* Wrapped up debug and error with KibanaThemeProvider. 1. Replaced renderer with getRenderer function and factory. 2. Updated storybook. 3. Moved defaultTheme$ to presentain_util. * Fixed exports. Co-authored-by: Kibana Machine <[email protected]>
Summary
Performed required changes at the issue #120071.
Added KibanaThemeProvider to the expression_error plugin in all places, where
ReactDOM.render
is executed.