mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Mgmt] Remove usage of deprecated modules for mounting React, Part II (#182043)
## Summary
Partially addresses https://github.com/elastic/kibana-team/issues/805
These changes come up from searching in the code and finding where
certain kinds of deprecated AppEx-SharedUX modules are imported.
**Reviewers: Please interact with critical paths through the UI
components touched in this PR, ESPECIALLY in terms of testing dark mode
and i18n.**
This is the **2nd** PR to focus on code within **Kibana Management**,
following https://github.com/elastic/kibana/pull/180331.
<img width="1196" alt="image"
src="7f8d3707
-94f0-4746-8dd5-dd858ce027f9">
Note: this also makes inclusion of `i18n` and `analytics` dependencies
consistent. Analytics is an optional dependency for the SharedUX
modules, which wrap `KibanaErrorBoundaryProvider` and is designed to
capture telemetry about errors that are caught in the error boundary.
### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
579f5bef33
commit
2a29bde763
44 changed files with 256 additions and 216 deletions
|
@ -55,7 +55,7 @@ export const getRuntimeFieldEditorLoader =
|
|||
ctx={ctx}
|
||||
/>
|
||||
</KibanaReactContextProvider>,
|
||||
{ theme$: theme.theme$ }
|
||||
core
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
import { CoreSetup } from '@kbn/core/public';
|
||||
import { coreMock, themeServiceMock } from '@kbn/core/public/mocks';
|
||||
|
||||
jest.mock('@kbn/kibana-react-plugin/public', () => {
|
||||
const original = jest.requireActual('@kbn/kibana-react-plugin/public');
|
||||
jest.mock('@kbn/react-kibana-mount', () => {
|
||||
const original = jest.requireActual('@kbn/react-kibana-mount');
|
||||
|
||||
return {
|
||||
...original,
|
||||
|
|
|
@ -22,6 +22,8 @@ export { fieldValidators } from '@kbn/es-ui-shared-plugin/static/forms/helpers';
|
|||
|
||||
export { TextField } from '@kbn/es-ui-shared-plugin/static/forms/components';
|
||||
|
||||
export { toMountPoint, createKibanaReactContext } from '@kbn/kibana-react-plugin/public';
|
||||
export { createKibanaReactContext } from '@kbn/kibana-react-plugin/public';
|
||||
|
||||
export { toMountPoint } from '@kbn/react-kibana-mount';
|
||||
|
||||
export { CodeEditor } from '@kbn/code-editor';
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
"@kbn/monaco",
|
||||
"@kbn/code-editor",
|
||||
"@kbn/code-editor-mock",
|
||||
"@kbn/react-kibana-mount",
|
||||
],
|
||||
"exclude": [
|
||||
"target/**/*",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue