From b5fcaaa5b8d4892f3187c85466aae0d0afe707da Mon Sep 17 00:00:00 2001 From: Ignacio Rivas Date: Tue, 24 Oct 2023 10:15:34 +0200 Subject: [PATCH 1/3] Remove all traces of es_ui_shared code editor --- .../__snapshots__/code_editor.test.tsx.snap | 627 ------------------ .../components/code_editor/_code_editor.scss | 38 -- .../public/components/code_editor/_index.scss | 1 - .../code_editor/code_editor.test.tsx | 116 ---- .../components/code_editor/code_editor.tsx | 312 --------- .../public/components/code_editor/index.tsx | 32 - .../components/code_editor/jest_mock.tsx | 32 - src/plugins/es_ui_shared/public/index.ts | 2 - .../components/json_editor/json_editor.tsx | 6 +- .../public/application/shared_imports.ts | 3 - .../template_clone.test.tsx | 1 - .../template_create.test.tsx | 1 - .../template_edit.test.tsx | 1 - .../component_template_create.test.tsx | 2 - .../component_template_edit.test.tsx | 1 - .../helpers/setup_environment.tsx | 1 - .../load_mappings_provider.test.tsx | 1 - .../load_mappings/load_mappings_provider.tsx | 1 - .../index_management/public/shared_imports.ts | 1 - .../index_management/test/global_mocks.tsx | 29 - .../ingest_pipelines_clone.test.tsx | 18 - .../ingest_pipelines_create.test.tsx | 18 - .../ingest_pipelines_edit.test.tsx | 18 - .../__jest__/test_pipeline.helpers.tsx | 1 - .../load_from_json/modal_provider.test.tsx | 1 - .../ml_job_editor/ml_job_editor.tsx | 6 +- .../plugins/osquery/public/shared_imports.ts | 2 - .../detail_panel/detail_panel.test.js | 6 +- 28 files changed, 9 insertions(+), 1269 deletions(-) delete mode 100644 src/plugins/es_ui_shared/public/components/code_editor/__snapshots__/code_editor.test.tsx.snap delete mode 100644 src/plugins/es_ui_shared/public/components/code_editor/_code_editor.scss delete mode 100644 src/plugins/es_ui_shared/public/components/code_editor/_index.scss delete mode 100644 src/plugins/es_ui_shared/public/components/code_editor/code_editor.test.tsx delete mode 100644 src/plugins/es_ui_shared/public/components/code_editor/code_editor.tsx delete mode 100644 src/plugins/es_ui_shared/public/components/code_editor/index.tsx delete mode 100644 src/plugins/es_ui_shared/public/components/code_editor/jest_mock.tsx delete mode 100644 x-pack/plugins/index_management/test/global_mocks.tsx diff --git a/src/plugins/es_ui_shared/public/components/code_editor/__snapshots__/code_editor.test.tsx.snap b/src/plugins/es_ui_shared/public/components/code_editor/__snapshots__/code_editor.test.tsx.snap deleted file mode 100644 index aeab9a66c7694..0000000000000 --- a/src/plugins/es_ui_shared/public/components/code_editor/__snapshots__/code_editor.test.tsx.snap +++ /dev/null @@ -1,627 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`EuiCodeEditor behavior hint element should be disabled when the ui ace box gains focus 1`] = ` - -`; - -exports[`EuiCodeEditor behavior hint element should be enabled when the ui ace box loses focus 1`] = ` - -`; - -exports[`EuiCodeEditor behavior hint element should be tabable 1`] = ` - -`; - -exports[`EuiCodeEditor is rendered 1`] = ` -
- -
-