From 74d42dde0f6c9916cdeafe0158a23e56e05b6ec5 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Wed, 18 Dec 2024 02:49:07 +0100 Subject: [PATCH] Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-reporting-services` (#202741) ## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > This PR has been auto-generated. > Do not attempt to push any changes unless you know what you are doing. > Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. #### 1 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/screenshotting-plugin` | `x-pack/platform/plugins/shared/screenshotting` |
Updated references ``` ./docs/developer/plugin-list.asciidoc ./package.json ./packages/kbn-cli-dev-mode/src/watcher.ts ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js ./src/dev/precommit_hook/casing_check_config.js ./tsconfig.base.json ./x-pack/.gitignore ./x-pack/.i18nrc.json ./x-pack/platform/plugins/shared/screenshotting/README.md ./x-pack/platform/plugins/shared/screenshotting/jest.config.js ./x-pack/platform/plugins/shared/screenshotting/jest.integration.config.js ./x-pack/platform/plugins/shared/screenshotting/server/screenshots/screenshots.test.ts ./x-pack/plugins/lens/public/app_plugin/share_action.ts ./yarn.lock ```
Updated relative paths ``` x-pack/platform/plugins/shared/screenshotting/jest.config.js:10 x-pack/platform/plugins/shared/screenshotting/jest.integration.config.js:10 x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js:14 x-pack/platform/plugins/shared/screenshotting/tsconfig.json:10 x-pack/platform/plugins/shared/screenshotting/tsconfig.json:14 x-pack/platform/plugins/shared/screenshotting/tsconfig.json:2 ```
Script errors ``` ```
--------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 0e2fc8f4e22a9dd41fc0b0f3c0ea2bd448a6c73e) # Conflicts: # .github/CODEOWNERS --- .github/CODEOWNERS | 2 +- docs/developer/plugin-list.asciidoc | 2 +- package.json | 2 +- packages/kbn-cli-dev-mode/src/watcher.ts | 2 +- .../__tests__/enumerate_patterns.test.js | 6 +++--- src/dev/precommit_hook/casing_check_config.js | 12 ++++++------ tsconfig.base.json | 4 ++-- x-pack/.gitignore | 2 +- x-pack/.i18nrc.json | 2 +- .../plugins/shared}/screenshotting/README.md | 2 +- .../plugins/shared}/screenshotting/common/errors.ts | 0 .../shared}/screenshotting/common/expression.ts | 0 .../plugins/shared}/screenshotting/common/index.ts | 0 .../plugins/shared}/screenshotting/common/layout.ts | 0 .../plugins/shared}/screenshotting/common/types.ts | 0 .../plugins/shared}/screenshotting/jest.config.js | 9 +++++---- .../screenshotting/jest.integration.config.js | 4 ++-- .../plugins/shared}/screenshotting/kibana.jsonc | 0 .../shared}/screenshotting/public/app/app.scss | 0 .../shared}/screenshotting/public/app/app.tsx | 0 .../shared}/screenshotting/public/app/index.ts | 0 .../public/app/screenshot_mode_context.ts | 0 .../plugins/shared}/screenshotting/public/index.ts | 0 .../shared}/screenshotting/public/plugin.tsx | 0 .../screenshotting/server/__mocks__/puppeteer.ts | 0 .../server/assets/fonts/noto/LICENSE_OFL.txt | 0 .../assets/fonts/noto/NotoSansCJKtc-Medium.ttf | Bin .../assets/fonts/noto/NotoSansCJKtc-Regular.ttf | Bin .../server/assets/fonts/noto/index.js | 0 .../server/assets/fonts/roboto/LICENSE.txt | 0 .../server/assets/fonts/roboto/Roboto-Italic.ttf | Bin .../server/assets/fonts/roboto/Roboto-Medium.ttf | Bin .../server/assets/fonts/roboto/Roboto-Regular.ttf | Bin .../screenshotting/server/assets/img/logo-grey.png | Bin .../server/browsers/chromium/driver.test.ts | 0 .../server/browsers/chromium/driver.ts | 0 .../browsers/chromium/driver_factory/index.test.ts | 0 .../browsers/chromium/driver_factory/index.ts | 0 .../chromium/driver_factory/metrics.test.ts | 0 .../browsers/chromium/driver_factory/metrics.ts | 0 .../server/browsers/chromium/index.ts | 0 .../chromium/integration_tests/downloads.test.ts | 0 .../browsers/chromium/strip_unsafe_headers.test.ts | 0 .../browsers/chromium/strip_unsafe_headers.ts | 0 .../chromium/templates/footer.handlebars.html | 0 .../chromium/templates/header.handlebars.html | 0 .../server/browsers/chromium/templates/index.ts | 0 .../server/browsers/download/checksum.test.ts | 0 .../server/browsers/download/checksum.ts | 0 .../server/browsers/download/fetch.test.ts | 0 .../server/browsers/download/fetch.ts | 0 .../server/browsers/download/index.test.ts | 0 .../server/browsers/download/index.ts | 0 .../server/browsers/extract/__fixtures__/file.md | 0 .../browsers/extract/__fixtures__/file.md.zip | Bin .../server/browsers/extract/extract.test.ts | 0 .../server/browsers/extract/extract.ts | 0 .../server/browsers/extract/extract_error.ts | 0 .../screenshotting/server/browsers/extract/index.ts | 0 .../server/browsers/extract/unzip.test.ts | 0 .../screenshotting/server/browsers/extract/unzip.ts | 0 .../shared}/screenshotting/server/browsers/index.ts | 0 .../screenshotting/server/browsers/install.ts | 0 .../shared}/screenshotting/server/browsers/mock.ts | 0 .../server/browsers/network_policy.test.ts | 0 .../server/browsers/network_policy.ts | 0 .../server/browsers/safe_child_process.ts | 0 .../shared}/screenshotting/server/cloud/index.ts | 0 .../screenshotting/server/config/schema.test.ts | 0 .../shared}/screenshotting/server/constants.ts | 0 .../shared}/screenshotting/server/formats/index.ts | 0 .../screenshotting/server/formats/pdf/index.ts | 0 .../server/formats/pdf/pdf_maker/README.md | 0 .../server/formats/pdf/pdf_maker/constants.ts | 0 .../server/formats/pdf/pdf_maker/get_doc_options.ts | 0 .../server/formats/pdf/pdf_maker/get_font.test.ts | 0 .../server/formats/pdf/pdf_maker/get_font.ts | 0 .../server/formats/pdf/pdf_maker/get_template.ts | 0 .../server/formats/pdf/pdf_maker/index.ts | 0 .../pdf/pdf_maker/integration_tests/buggy_worker.js | 0 .../integration_tests/memory_leak_worker.js | 0 .../pdf_maker/integration_tests/pdfmaker.test.ts | 0 .../server/formats/pdf/pdf_maker/pdfmaker.ts | 0 .../server/formats/pdf/pdf_maker/types.ts | 0 .../server/formats/pdf/pdf_maker/worker.ts | 0 .../formats/pdf/pdf_maker/worker_dependencies.ts | 0 .../formats/pdf/pdf_maker/worker_src_harness.js | 2 +- .../shared}/screenshotting/server/formats/png.ts | 0 .../plugins/shared}/screenshotting/server/index.ts | 0 .../screenshotting/server/layouts/base_layout.ts | 0 .../screenshotting/server/layouts/canvas_layout.ts | 0 .../server/layouts/create_layout.test.ts | 0 .../screenshotting/server/layouts/create_layout.ts | 0 .../shared}/screenshotting/server/layouts/index.ts | 0 .../shared}/screenshotting/server/layouts/mock.ts | 0 .../server/layouts/preserve_layout.css | 0 .../server/layouts/preserve_layout.test.ts | 0 .../server/layouts/preserve_layout.ts | 0 .../screenshotting/server/layouts/print_layout.ts | 0 .../plugins/shared}/screenshotting/server/mock.ts | 0 .../shared}/screenshotting/server/plugin.test.ts | 0 .../plugins/shared}/screenshotting/server/plugin.ts | 0 .../screenshots/__snapshots__/index.test.ts.snap | 0 .../screenshotting/server/screenshots/constants.ts | 0 .../server/screenshots/event_logger/index.test.ts | 0 .../server/screenshots/event_logger/index.ts | 0 .../screenshots/get_element_position_data.test.ts | 0 .../server/screenshots/get_element_position_data.ts | 0 .../server/screenshots/get_number_of_items.test.ts | 0 .../server/screenshots/get_number_of_items.ts | 0 .../screenshotting/server/screenshots/get_pdf.ts | 0 .../server/screenshots/get_render_errors.test.ts | 0 .../server/screenshots/get_render_errors.ts | 0 .../server/screenshots/get_screenshots.test.ts | 0 .../server/screenshots/get_screenshots.ts | 0 .../server/screenshots/get_time_range.test.ts | 0 .../server/screenshots/get_time_range.ts | 0 .../screenshotting/server/screenshots/index.test.ts | 0 .../screenshotting/server/screenshots/index.ts | 0 .../screenshotting/server/screenshots/inject_css.ts | 0 .../screenshotting/server/screenshots/mock.ts | 0 .../server/screenshots/observable.test.ts | 0 .../screenshotting/server/screenshots/observable.ts | 0 .../screenshotting/server/screenshots/open_url.ts | 0 .../server/screenshots/screenshots.test.ts | 3 ++- .../server/screenshots/screenshots.ts | 0 .../screenshotting/server/screenshots/types.ts | 0 .../server/screenshots/wait_for_render.ts | 0 .../server/screenshots/wait_for_visualizations.ts | 0 .../plugins/shared}/screenshotting/server/utils.ts | 0 .../plugins/shared}/screenshotting/tsconfig.json | 6 +++--- .../plugins/lens/public/app_plugin/share_action.ts | 2 +- yarn.lock | 2 +- 133 files changed, 33 insertions(+), 31 deletions(-) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/README.md (98%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/common/errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/common/expression.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/common/layout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/jest.config.js (52%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/jest.integration.config.js (76%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/public/app/app.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/public/app/app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/public/app/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/public/app/screenshot_mode_context.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/__mocks__/puppeteer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/noto/LICENSE_OFL.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Medium.ttf (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Regular.ttf (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/noto/index.js (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/roboto/LICENSE.txt (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/roboto/Roboto-Italic.ttf (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/roboto/Roboto-Medium.ttf (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/fonts/roboto/Roboto-Regular.ttf (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/assets/img/logo-grey.png (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/driver.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/driver.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/driver_factory/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/driver_factory/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/driver_factory/metrics.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/driver_factory/metrics.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/integration_tests/downloads.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/strip_unsafe_headers.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/strip_unsafe_headers.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/templates/footer.handlebars.html (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/templates/header.handlebars.html (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/chromium/templates/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/download/checksum.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/download/checksum.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/download/fetch.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/download/fetch.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/download/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/download/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/__fixtures__/file.md (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/__fixtures__/file.md.zip (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/extract.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/extract.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/extract_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/unzip.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/extract/unzip.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/install.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/network_policy.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/network_policy.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/browsers/safe_child_process.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/cloud/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/config/schema.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/get_doc_options.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/get_font.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/get_font.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/get_template.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/integration_tests/buggy_worker.js (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/integration_tests/memory_leak_worker.js (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/integration_tests/pdfmaker.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/pdfmaker.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/worker.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/worker_dependencies.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js (90%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/formats/png.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/base_layout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/canvas_layout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/create_layout.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/create_layout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/preserve_layout.css (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/preserve_layout.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/preserve_layout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/layouts/print_layout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/__snapshots__/index.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/event_logger/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/event_logger/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_element_position_data.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_element_position_data.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_number_of_items.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_number_of_items.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_pdf.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_render_errors.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_render_errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_screenshots.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_screenshots.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_time_range.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/get_time_range.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/inject_css.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/observable.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/observable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/open_url.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/screenshots.test.ts (98%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/screenshots.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/wait_for_render.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/screenshots/wait_for_visualizations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/server/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/screenshotting/tsconfig.json (79%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 988ef63ca4877..2c6b061310d1b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -784,7 +784,7 @@ packages/kbn-scout-reporting @elastic/appex-qa examples/screenshot_mode_example @elastic/appex-sharedux src/plugins/screenshot_mode @elastic/appex-sharedux x-pack/examples/screenshotting_example @elastic/appex-sharedux -x-pack/plugins/screenshotting @elastic/kibana-reporting-services +x-pack/platform/plugins/shared/screenshotting @elastic/kibana-reporting-services packages/kbn-screenshotting-server @elastic/appex-sharedux packages/kbn-search-api-keys-components @elastic/search-kibana packages/kbn-search-api-keys-server @elastic/search-kibana diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 60db19c0ca09f..76f5e97374040 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -811,7 +811,7 @@ Elastic. |Add tagging capability to saved objects -|{kib-repo}blob/{branch}/x-pack/plugins/screenshotting/README.md[screenshotting] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/screenshotting/README.md[screenshotting] |This plugin provides functionality to take screenshots of the Kibana pages. It uses Chromium and Puppeteer underneath to run the browser in headless mode. diff --git a/package.json b/package.json index 12e17e0d91001..b9100003a0601 100644 --- a/package.json +++ b/package.json @@ -793,7 +793,7 @@ "@kbn/screenshot-mode-example-plugin": "link:examples/screenshot_mode_example", "@kbn/screenshot-mode-plugin": "link:src/plugins/screenshot_mode", "@kbn/screenshotting-example-plugin": "link:x-pack/examples/screenshotting_example", - "@kbn/screenshotting-plugin": "link:x-pack/plugins/screenshotting", + "@kbn/screenshotting-plugin": "link:x-pack/platform/plugins/shared/screenshotting", "@kbn/screenshotting-server": "link:packages/kbn-screenshotting-server", "@kbn/search-api-keys-components": "link:packages/kbn-search-api-keys-components", "@kbn/search-api-keys-server": "link:packages/kbn-search-api-keys-server", diff --git a/packages/kbn-cli-dev-mode/src/watcher.ts b/packages/kbn-cli-dev-mode/src/watcher.ts index 6dc11371d9582..193458495aa21 100644 --- a/packages/kbn-cli-dev-mode/src/watcher.ts +++ b/packages/kbn-cli-dev-mode/src/watcher.ts @@ -19,7 +19,7 @@ import { Log } from './log'; const packageMatcher = makeMatcher([ '**/*', '!**/.*', - '!x-pack/plugins/screenshotting/chromium/**', + '!x-pack/platform/plugins/shared/screenshotting/chromium/**', '!x-pack/plugins/canvas/shareable_runtime/**', ]); diff --git a/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js b/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js index 5faeab1acb539..540b51a294983 100644 --- a/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js +++ b/src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js @@ -17,13 +17,13 @@ const log = new ToolingLog({ }); describe(`enumeratePatterns`, () => { - it(`should resolve x-pack/plugins/screenshotting/server/browsers/extract/unzip.ts to kibana-screenshotting`, () => { + it(`should resolve x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/unzip.ts to kibana-screenshotting`, () => { const actual = enumeratePatterns(REPO_ROOT)(log)( - new Map([['x-pack/plugins/screenshotting', ['kibana-screenshotting']]]) + new Map([['x-pack/platform/plugins/shared/screenshotting', ['kibana-screenshotting']]]) ); expect(actual.flat()).toContain( - 'x-pack/plugins/screenshotting/server/browsers/extract/unzip.ts kibana-screenshotting' + 'x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/unzip.ts kibana-screenshotting' ); }); it(`should resolve src/plugins/charts/common/static/color_maps/color_maps.ts to kibana-app`, () => { diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index d74fd18270198..a96d726bae612 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -178,10 +178,10 @@ export const TEMPORARILY_IGNORED_PATHS = [ 'x-pack/plugins/monitoring/public/icons/health-green.svg', 'x-pack/plugins/monitoring/public/icons/health-red.svg', 'x-pack/plugins/monitoring/public/icons/health-yellow.svg', - 'x-pack/plugins/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Medium.ttf', - 'x-pack/plugins/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Regular.ttf', - 'x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Italic.ttf', - 'x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Medium.ttf', - 'x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Regular.ttf', - 'x-pack/plugins/screenshotting/server/assets/img/logo-grey.png', + 'x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Medium.ttf', + 'x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Regular.ttf', + 'x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Italic.ttf', + 'x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Medium.ttf', + 'x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Regular.ttf', + 'x-pack/platform/plugins/shared/screenshotting/server/assets/img/logo-grey.png', ]; diff --git a/tsconfig.base.json b/tsconfig.base.json index 73e7098c444de..a6eaef2e4325a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1562,8 +1562,8 @@ "@kbn/screenshot-mode-plugin/*": ["src/plugins/screenshot_mode/*"], "@kbn/screenshotting-example-plugin": ["x-pack/examples/screenshotting_example"], "@kbn/screenshotting-example-plugin/*": ["x-pack/examples/screenshotting_example/*"], - "@kbn/screenshotting-plugin": ["x-pack/plugins/screenshotting"], - "@kbn/screenshotting-plugin/*": ["x-pack/plugins/screenshotting/*"], + "@kbn/screenshotting-plugin": ["x-pack/platform/plugins/shared/screenshotting"], + "@kbn/screenshotting-plugin/*": ["x-pack/platform/plugins/shared/screenshotting/*"], "@kbn/screenshotting-server": ["packages/kbn-screenshotting-server"], "@kbn/screenshotting-server/*": ["packages/kbn-screenshotting-server/*"], "@kbn/search-api-keys-components": ["packages/kbn-search-api-keys-components"], diff --git a/x-pack/.gitignore b/x-pack/.gitignore index 97efbef318c90..918a6a7d1c388 100644 --- a/x-pack/.gitignore +++ b/x-pack/.gitignore @@ -6,7 +6,7 @@ /test/functional/apps/**/reports/session /test/reporting/configs/failure_debug/ /plugins/reporting/.chromium/ -/plugins/screenshotting/chromium/ +/platform/plugins/shared/screenshotting/chromium/ /plugins/reporting/.phantom/ /.aws-config.json /.env diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 0f528967f90b3..9ab53f3d51968 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -107,7 +107,7 @@ "xpack.reporting": ["plugins/reporting"], "xpack.rollupJobs": ["platform/packages/private/rollup", "platform/plugins/private/rollup"], "xpack.runtimeFields": "platform/plugins/private/runtime_fields", - "xpack.screenshotting": "plugins/screenshotting", + "xpack.screenshotting": "platform/plugins/shared/screenshotting", "xpack.searchSharedUI": "packages/search/shared_ui", "xpack.searchHomepage": "plugins/search_homepage", "xpack.searchIndices": "plugins/search_indices", diff --git a/x-pack/plugins/screenshotting/README.md b/x-pack/platform/plugins/shared/screenshotting/README.md similarity index 98% rename from x-pack/plugins/screenshotting/README.md rename to x-pack/platform/plugins/shared/screenshotting/README.md index 04b7d07f223c4..5f6a5ce99aef0 100644 --- a/x-pack/plugins/screenshotting/README.md +++ b/x-pack/platform/plugins/shared/screenshotting/README.md @@ -24,7 +24,7 @@ Here is an example of how you can take a screenshot of a Kibana URL. ```typescript import { lastValueFrom } from 'rxjs'; import type { CoreSetup, Plugin } from 'src/core/server'; -import type { ScreenshottingStart } from 'x-pack/plugins/screenshotting/server'; +import type { ScreenshottingStart } from 'x-pack/platform/plugins/shared/screenshotting/server'; interface StartDeps { diff --git a/x-pack/plugins/screenshotting/common/errors.ts b/x-pack/platform/plugins/shared/screenshotting/common/errors.ts similarity index 100% rename from x-pack/plugins/screenshotting/common/errors.ts rename to x-pack/platform/plugins/shared/screenshotting/common/errors.ts diff --git a/x-pack/plugins/screenshotting/common/expression.ts b/x-pack/platform/plugins/shared/screenshotting/common/expression.ts similarity index 100% rename from x-pack/plugins/screenshotting/common/expression.ts rename to x-pack/platform/plugins/shared/screenshotting/common/expression.ts diff --git a/x-pack/plugins/screenshotting/common/index.ts b/x-pack/platform/plugins/shared/screenshotting/common/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/common/index.ts rename to x-pack/platform/plugins/shared/screenshotting/common/index.ts diff --git a/x-pack/plugins/screenshotting/common/layout.ts b/x-pack/platform/plugins/shared/screenshotting/common/layout.ts similarity index 100% rename from x-pack/plugins/screenshotting/common/layout.ts rename to x-pack/platform/plugins/shared/screenshotting/common/layout.ts diff --git a/x-pack/plugins/screenshotting/common/types.ts b/x-pack/platform/plugins/shared/screenshotting/common/types.ts similarity index 100% rename from x-pack/plugins/screenshotting/common/types.ts rename to x-pack/platform/plugins/shared/screenshotting/common/types.ts diff --git a/x-pack/plugins/screenshotting/jest.config.js b/x-pack/platform/plugins/shared/screenshotting/jest.config.js similarity index 52% rename from x-pack/plugins/screenshotting/jest.config.js rename to x-pack/platform/plugins/shared/screenshotting/jest.config.js index a02d667f86a19..0fd6d74a1d655 100644 --- a/x-pack/plugins/screenshotting/jest.config.js +++ b/x-pack/platform/plugins/shared/screenshotting/jest.config.js @@ -7,9 +7,10 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/screenshotting'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/screenshotting', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/screenshotting'], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/screenshotting', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/screenshotting/server/**/*.{ts}'], + collectCoverageFrom: ['/x-pack/platform/plugins/shared/screenshotting/server/**/*.{ts}'], }; diff --git a/x-pack/plugins/screenshotting/jest.integration.config.js b/x-pack/platform/plugins/shared/screenshotting/jest.integration.config.js similarity index 76% rename from x-pack/plugins/screenshotting/jest.integration.config.js rename to x-pack/platform/plugins/shared/screenshotting/jest.integration.config.js index 45a65c93c6af3..d0694061ed92b 100644 --- a/x-pack/plugins/screenshotting/jest.integration.config.js +++ b/x-pack/platform/plugins/shared/screenshotting/jest.integration.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test/jest_integration', - rootDir: '../../..', - roots: ['/x-pack/plugins/screenshotting'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/screenshotting'], }; diff --git a/x-pack/plugins/screenshotting/kibana.jsonc b/x-pack/platform/plugins/shared/screenshotting/kibana.jsonc similarity index 100% rename from x-pack/plugins/screenshotting/kibana.jsonc rename to x-pack/platform/plugins/shared/screenshotting/kibana.jsonc diff --git a/x-pack/plugins/screenshotting/public/app/app.scss b/x-pack/platform/plugins/shared/screenshotting/public/app/app.scss similarity index 100% rename from x-pack/plugins/screenshotting/public/app/app.scss rename to x-pack/platform/plugins/shared/screenshotting/public/app/app.scss diff --git a/x-pack/plugins/screenshotting/public/app/app.tsx b/x-pack/platform/plugins/shared/screenshotting/public/app/app.tsx similarity index 100% rename from x-pack/plugins/screenshotting/public/app/app.tsx rename to x-pack/platform/plugins/shared/screenshotting/public/app/app.tsx diff --git a/x-pack/plugins/screenshotting/public/app/index.ts b/x-pack/platform/plugins/shared/screenshotting/public/app/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/public/app/index.ts rename to x-pack/platform/plugins/shared/screenshotting/public/app/index.ts diff --git a/x-pack/plugins/screenshotting/public/app/screenshot_mode_context.ts b/x-pack/platform/plugins/shared/screenshotting/public/app/screenshot_mode_context.ts similarity index 100% rename from x-pack/plugins/screenshotting/public/app/screenshot_mode_context.ts rename to x-pack/platform/plugins/shared/screenshotting/public/app/screenshot_mode_context.ts diff --git a/x-pack/plugins/screenshotting/public/index.ts b/x-pack/platform/plugins/shared/screenshotting/public/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/public/index.ts rename to x-pack/platform/plugins/shared/screenshotting/public/index.ts diff --git a/x-pack/plugins/screenshotting/public/plugin.tsx b/x-pack/platform/plugins/shared/screenshotting/public/plugin.tsx similarity index 100% rename from x-pack/plugins/screenshotting/public/plugin.tsx rename to x-pack/platform/plugins/shared/screenshotting/public/plugin.tsx diff --git a/x-pack/plugins/screenshotting/server/__mocks__/puppeteer.ts b/x-pack/platform/plugins/shared/screenshotting/server/__mocks__/puppeteer.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/__mocks__/puppeteer.ts rename to x-pack/platform/plugins/shared/screenshotting/server/__mocks__/puppeteer.ts diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/noto/LICENSE_OFL.txt b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/LICENSE_OFL.txt similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/noto/LICENSE_OFL.txt rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/LICENSE_OFL.txt diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Medium.ttf b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Medium.ttf similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Medium.ttf rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Medium.ttf diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Regular.ttf b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Regular.ttf similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Regular.ttf rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/NotoSansCJKtc-Regular.ttf diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/noto/index.js b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/index.js similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/noto/index.js rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/noto/index.js diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/roboto/LICENSE.txt b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/LICENSE.txt similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/roboto/LICENSE.txt rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/LICENSE.txt diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Italic.ttf b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Italic.ttf similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Italic.ttf rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Italic.ttf diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Medium.ttf b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Medium.ttf similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Medium.ttf rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Medium.ttf diff --git a/x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Regular.ttf b/x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Regular.ttf similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/fonts/roboto/Roboto-Regular.ttf rename to x-pack/platform/plugins/shared/screenshotting/server/assets/fonts/roboto/Roboto-Regular.ttf diff --git a/x-pack/plugins/screenshotting/server/assets/img/logo-grey.png b/x-pack/platform/plugins/shared/screenshotting/server/assets/img/logo-grey.png similarity index 100% rename from x-pack/plugins/screenshotting/server/assets/img/logo-grey.png rename to x-pack/platform/plugins/shared/screenshotting/server/assets/img/logo-grey.png diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/driver.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/index.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/index.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/index.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/metrics.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/metrics.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/metrics.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/metrics.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/metrics.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/metrics.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/metrics.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/metrics.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/index.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/integration_tests/downloads.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/integration_tests/downloads.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/integration_tests/downloads.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/integration_tests/downloads.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/strip_unsafe_headers.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/strip_unsafe_headers.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/strip_unsafe_headers.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/strip_unsafe_headers.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/strip_unsafe_headers.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/strip_unsafe_headers.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/strip_unsafe_headers.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/strip_unsafe_headers.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/templates/footer.handlebars.html b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/templates/footer.handlebars.html similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/templates/footer.handlebars.html rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/templates/footer.handlebars.html diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/templates/header.handlebars.html b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/templates/header.handlebars.html similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/templates/header.handlebars.html rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/templates/header.handlebars.html diff --git a/x-pack/plugins/screenshotting/server/browsers/chromium/templates/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/templates/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/chromium/templates/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/templates/index.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/download/checksum.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/download/checksum.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/download/checksum.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/download/checksum.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/download/checksum.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/download/checksum.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/download/checksum.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/download/checksum.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/download/fetch.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/download/fetch.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/download/fetch.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/download/fetch.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/download/fetch.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/download/fetch.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/download/fetch.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/download/fetch.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/download/index.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/download/index.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/download/index.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/download/index.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/download/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/download/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/download/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/download/index.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/__fixtures__/file.md b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/__fixtures__/file.md similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/__fixtures__/file.md rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/__fixtures__/file.md diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/__fixtures__/file.md.zip b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/__fixtures__/file.md.zip similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/__fixtures__/file.md.zip rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/__fixtures__/file.md.zip diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/extract.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/extract.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/extract.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/extract.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/extract.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/extract.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/extract.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/extract.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/extract_error.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/extract_error.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/extract_error.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/extract_error.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/index.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/unzip.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/unzip.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/unzip.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/unzip.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/extract/unzip.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/unzip.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/extract/unzip.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/extract/unzip.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/index.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/install.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/install.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/install.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/install.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/mock.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/mock.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/mock.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/mock.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/network_policy.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/network_policy.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/network_policy.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/network_policy.test.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/network_policy.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/network_policy.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/network_policy.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/network_policy.ts diff --git a/x-pack/plugins/screenshotting/server/browsers/safe_child_process.ts b/x-pack/platform/plugins/shared/screenshotting/server/browsers/safe_child_process.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/browsers/safe_child_process.ts rename to x-pack/platform/plugins/shared/screenshotting/server/browsers/safe_child_process.ts diff --git a/x-pack/plugins/screenshotting/server/cloud/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/cloud/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/cloud/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/cloud/index.ts diff --git a/x-pack/plugins/screenshotting/server/config/schema.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/config/schema.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/config/schema.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/config/schema.test.ts diff --git a/x-pack/plugins/screenshotting/server/constants.ts b/x-pack/platform/plugins/shared/screenshotting/server/constants.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/constants.ts rename to x-pack/platform/plugins/shared/screenshotting/server/constants.ts diff --git a/x-pack/plugins/screenshotting/server/formats/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/index.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/index.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/README.md b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/README.md similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/README.md rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/README.md diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/constants.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/constants.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/constants.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/constants.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_doc_options.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_doc_options.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_doc_options.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_doc_options.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_font.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_font.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_font.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_font.test.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_font.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_font.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_font.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_font.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_template.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_template.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/get_template.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/get_template.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/index.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/integration_tests/buggy_worker.js b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/integration_tests/buggy_worker.js similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/integration_tests/buggy_worker.js rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/integration_tests/buggy_worker.js diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/integration_tests/memory_leak_worker.js b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/integration_tests/memory_leak_worker.js similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/integration_tests/memory_leak_worker.js rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/integration_tests/memory_leak_worker.js diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/integration_tests/pdfmaker.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/integration_tests/pdfmaker.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/integration_tests/pdfmaker.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/integration_tests/pdfmaker.test.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/pdfmaker.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/pdfmaker.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/pdfmaker.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/pdfmaker.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/types.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/types.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/types.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/types.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/worker.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/worker.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/worker_dependencies.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker_dependencies.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/worker_dependencies.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker_dependencies.ts diff --git a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js similarity index 90% rename from x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js rename to x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js index ca319ace9d027..05a6c8eaa9759 100644 --- a/x-pack/plugins/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js +++ b/x-pack/platform/plugins/shared/screenshotting/server/formats/pdf/pdf_maker/worker_src_harness.js @@ -11,6 +11,6 @@ */ // eslint-disable-next-line @kbn/imports/no_boundary_crossing -require('../../../../../../../src/setup_node_env'); +require('../../../../../../../../../src/setup_node_env'); // eslint-disable-next-line @kbn/imports/uniform_imports require('./worker.ts'); diff --git a/x-pack/plugins/screenshotting/server/formats/png.ts b/x-pack/platform/plugins/shared/screenshotting/server/formats/png.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/formats/png.ts rename to x-pack/platform/plugins/shared/screenshotting/server/formats/png.ts diff --git a/x-pack/plugins/screenshotting/server/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/index.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/base_layout.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/base_layout.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/base_layout.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/base_layout.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/canvas_layout.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/canvas_layout.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/canvas_layout.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/canvas_layout.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/create_layout.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/create_layout.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/create_layout.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/create_layout.test.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/create_layout.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/create_layout.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/create_layout.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/create_layout.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/index.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/mock.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/mock.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/mock.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/mock.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/preserve_layout.css b/x-pack/platform/plugins/shared/screenshotting/server/layouts/preserve_layout.css similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/preserve_layout.css rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/preserve_layout.css diff --git a/x-pack/plugins/screenshotting/server/layouts/preserve_layout.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/preserve_layout.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/preserve_layout.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/preserve_layout.test.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/preserve_layout.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/preserve_layout.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/preserve_layout.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/preserve_layout.ts diff --git a/x-pack/plugins/screenshotting/server/layouts/print_layout.ts b/x-pack/platform/plugins/shared/screenshotting/server/layouts/print_layout.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/layouts/print_layout.ts rename to x-pack/platform/plugins/shared/screenshotting/server/layouts/print_layout.ts diff --git a/x-pack/plugins/screenshotting/server/mock.ts b/x-pack/platform/plugins/shared/screenshotting/server/mock.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/mock.ts rename to x-pack/platform/plugins/shared/screenshotting/server/mock.ts diff --git a/x-pack/plugins/screenshotting/server/plugin.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/plugin.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/plugin.test.ts diff --git a/x-pack/plugins/screenshotting/server/plugin.ts b/x-pack/platform/plugins/shared/screenshotting/server/plugin.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/plugin.ts rename to x-pack/platform/plugins/shared/screenshotting/server/plugin.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/__snapshots__/index.test.ts.snap b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/__snapshots__/index.test.ts.snap similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/__snapshots__/index.test.ts.snap rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/__snapshots__/index.test.ts.snap diff --git a/x-pack/plugins/screenshotting/server/screenshots/constants.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/constants.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/constants.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/constants.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/event_logger/index.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/event_logger/index.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/event_logger/index.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/event_logger/index.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/event_logger/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/event_logger/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/event_logger/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/event_logger/index.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_element_position_data.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_element_position_data.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_element_position_data.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_element_position_data.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_element_position_data.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_element_position_data.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_element_position_data.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_element_position_data.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_number_of_items.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_number_of_items.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_number_of_items.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_number_of_items.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_number_of_items.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_number_of_items.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_number_of_items.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_number_of_items.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_pdf.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_pdf.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_pdf.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_pdf.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_render_errors.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_render_errors.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_render_errors.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_render_errors.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_render_errors.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_render_errors.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_render_errors.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_render_errors.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_screenshots.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_screenshots.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_screenshots.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_screenshots.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_screenshots.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_screenshots.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_screenshots.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_screenshots.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_time_range.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_time_range.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_time_range.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_time_range.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/get_time_range.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_time_range.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/get_time_range.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/get_time_range.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/index.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/index.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/index.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/index.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/index.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/index.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/index.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/index.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/inject_css.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/inject_css.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/inject_css.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/inject_css.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/mock.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/mock.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/mock.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/mock.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/observable.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/observable.test.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/observable.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/observable.test.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/observable.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/observable.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/observable.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/observable.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/open_url.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/open_url.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/open_url.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/open_url.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/screenshots.test.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/screenshots.test.ts similarity index 98% rename from x-pack/plugins/screenshotting/server/screenshots/screenshots.test.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/screenshots.test.ts index 4f217ef96c611..95261626e15fa 100644 --- a/x-pack/plugins/screenshotting/server/screenshots/screenshots.test.ts +++ b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/screenshots.test.ts @@ -30,7 +30,8 @@ describe('class Screenshots', () => { let mockLogger: Logger; let mockScreenshotModeSetup: ScreenshotModePluginSetup; - const mockBinaryPath = '/kibana/x-pack/plugins/screenshotting/chromium/linux/headless_shell'; + const mockBinaryPath = + '/kibana/x-pack/platform/plugins/shared/screenshotting/chromium/linux/headless_shell'; const mockBasePath = '/kibanaTest1'; beforeEach(() => { diff --git a/x-pack/plugins/screenshotting/server/screenshots/screenshots.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/screenshots.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/screenshots.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/screenshots.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/types.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/types.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/types.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/types.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/wait_for_render.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/wait_for_render.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/wait_for_render.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/wait_for_render.ts diff --git a/x-pack/plugins/screenshotting/server/screenshots/wait_for_visualizations.ts b/x-pack/platform/plugins/shared/screenshotting/server/screenshots/wait_for_visualizations.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/screenshots/wait_for_visualizations.ts rename to x-pack/platform/plugins/shared/screenshotting/server/screenshots/wait_for_visualizations.ts diff --git a/x-pack/plugins/screenshotting/server/utils.ts b/x-pack/platform/plugins/shared/screenshotting/server/utils.ts similarity index 100% rename from x-pack/plugins/screenshotting/server/utils.ts rename to x-pack/platform/plugins/shared/screenshotting/server/utils.ts diff --git a/x-pack/plugins/screenshotting/tsconfig.json b/x-pack/platform/plugins/shared/screenshotting/tsconfig.json similarity index 79% rename from x-pack/plugins/screenshotting/tsconfig.json rename to x-pack/platform/plugins/shared/screenshotting/tsconfig.json index 5e37b84bbf2e9..200c6d9c2592e 100644 --- a/x-pack/plugins/screenshotting/tsconfig.json +++ b/x-pack/platform/plugins/shared/screenshotting/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, @@ -7,11 +7,11 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", - { "path": "../../../src/setup_node_env/tsconfig.json" }, + { "path": "../../../../../src/setup_node_env/tsconfig.json" }, "@kbn/expressions-plugin", "@kbn/screenshot-mode-plugin", "@kbn/cloud-plugin", diff --git a/x-pack/plugins/lens/public/app_plugin/share_action.ts b/x-pack/plugins/lens/public/app_plugin/share_action.ts index dbb5d9d61eda9..e9e0c73cd5d67 100644 --- a/x-pack/plugins/lens/public/app_plugin/share_action.ts +++ b/x-pack/plugins/lens/public/app_plugin/share_action.ts @@ -31,7 +31,7 @@ interface ShareableConfiguration export const DEFAULT_LENS_LAYOUT_DIMENSIONS = { width: 1793, // this is a magic number from the reporting tool implementation - // see: x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.ts#L146 + // see: x-pack/platform/plugins/shared/screenshotting/server/browsers/chromium/driver_factory/index.ts#L146 height: 1086, }; diff --git a/yarn.lock b/yarn.lock index 9755e42ba06df..130577ccbdd3e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6931,7 +6931,7 @@ version "0.0.0" uid "" -"@kbn/screenshotting-plugin@link:x-pack/plugins/screenshotting": +"@kbn/screenshotting-plugin@link:x-pack/platform/plugins/shared/screenshotting": version "0.0.0" uid ""